paas-component-library 0.0.74 → 0.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cssMode-cqO_eNHY.js → cssMode-SlkaMqwS.js} +1 -1
- package/dist/{freemarker2-8RZeE_W3.js → freemarker2-ZJn06fK_.js} +1 -1
- package/dist/{handlebars-OwZNWYMX.js → handlebars-k2rFZs8f.js} +1 -1
- package/dist/{html-kG3wtL9a.js → html-EbNQZc1f.js} +1 -1
- package/dist/{htmlMode-qvDxq6Hw.js → htmlMode-Nb9xyXta.js} +1 -1
- package/dist/{index-fC2_ifXC.js → index-X_lRmwCM.js} +31 -33
- package/dist/{javascript-9JXY1FYM.js → javascript-2erMEQ5M.js} +1 -1
- package/dist/{jsonMode-zjB9BEif.js → jsonMode-oYRGRi1R.js} +1 -1
- package/dist/{liquid-CyLFvoIe.js → liquid-7T_4h5JP.js} +1 -1
- package/dist/{mdx-H1_5C8Co.js → mdx-hg9hHijL.js} +1 -1
- package/dist/paas-ui.js +1 -1
- package/dist/paas-ui.umd.cjs +1 -1
- package/dist/{python-nIZrTCwb.js → python-ah6y9bLK.js} +1 -1
- package/dist/{razor-XHs1ArRV.js → razor-mfTF3Ltn.js} +1 -1
- package/dist/{tsMode-kcpcueMR.js → tsMode-cb-ttmO3.js} +1 -1
- package/dist/{typescript-p7sPziBS.js → typescript-0kX6bcAg.js} +1 -1
- package/dist/{xml-kZtRhYCi.js → xml-uMA9NpUB.js} +1 -1
- package/dist/{yaml-ELLes2tF.js → yaml-wTmSqPUd.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Le = Object.defineProperty;
|
|
2
2
|
var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Ne } from "./index-
|
|
4
|
+
import { m as Ne } from "./index-X_lRmwCM.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as F } from "./index-
|
|
1
|
+
import { m as F } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i } from "./index-
|
|
1
|
+
import { m as i } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as d } from "./index-
|
|
1
|
+
import { m as d } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var $e = Object.defineProperty;
|
|
2
2
|
var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Qe } from "./index-
|
|
4
|
+
import { m as Qe } from "./index-X_lRmwCM.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -72325,37 +72325,37 @@ ze({
|
|
|
72325
72325
|
id: "freemarker2",
|
|
72326
72326
|
extensions: [".ftl", ".ftlh", ".ftlx"],
|
|
72327
72327
|
aliases: ["FreeMarker2", "Apache FreeMarker2"],
|
|
72328
|
-
loader: () => import("./freemarker2-
|
|
72328
|
+
loader: () => import("./freemarker2-ZJn06fK_.js").then((o) => o.TagAutoInterpolationDollar)
|
|
72329
72329
|
});
|
|
72330
72330
|
ze({
|
|
72331
72331
|
id: "freemarker2.tag-angle.interpolation-dollar",
|
|
72332
72332
|
aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
|
|
72333
|
-
loader: () => import("./freemarker2-
|
|
72333
|
+
loader: () => import("./freemarker2-ZJn06fK_.js").then((o) => o.TagAngleInterpolationDollar)
|
|
72334
72334
|
});
|
|
72335
72335
|
ze({
|
|
72336
72336
|
id: "freemarker2.tag-bracket.interpolation-dollar",
|
|
72337
72337
|
aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
|
|
72338
|
-
loader: () => import("./freemarker2-
|
|
72338
|
+
loader: () => import("./freemarker2-ZJn06fK_.js").then((o) => o.TagBracketInterpolationDollar)
|
|
72339
72339
|
});
|
|
72340
72340
|
ze({
|
|
72341
72341
|
id: "freemarker2.tag-angle.interpolation-bracket",
|
|
72342
72342
|
aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
|
|
72343
|
-
loader: () => import("./freemarker2-
|
|
72343
|
+
loader: () => import("./freemarker2-ZJn06fK_.js").then((o) => o.TagAngleInterpolationBracket)
|
|
72344
72344
|
});
|
|
72345
72345
|
ze({
|
|
72346
72346
|
id: "freemarker2.tag-bracket.interpolation-bracket",
|
|
72347
72347
|
aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
|
|
72348
|
-
loader: () => import("./freemarker2-
|
|
72348
|
+
loader: () => import("./freemarker2-ZJn06fK_.js").then((o) => o.TagBracketInterpolationBracket)
|
|
72349
72349
|
});
|
|
72350
72350
|
ze({
|
|
72351
72351
|
id: "freemarker2.tag-auto.interpolation-dollar",
|
|
72352
72352
|
aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
|
|
72353
|
-
loader: () => import("./freemarker2-
|
|
72353
|
+
loader: () => import("./freemarker2-ZJn06fK_.js").then((o) => o.TagAutoInterpolationDollar)
|
|
72354
72354
|
});
|
|
72355
72355
|
ze({
|
|
72356
72356
|
id: "freemarker2.tag-auto.interpolation-bracket",
|
|
72357
72357
|
aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
|
|
72358
|
-
loader: () => import("./freemarker2-
|
|
72358
|
+
loader: () => import("./freemarker2-ZJn06fK_.js").then((o) => o.TagAutoInterpolationBracket)
|
|
72359
72359
|
});
|
|
72360
72360
|
/*!-----------------------------------------------------------------------------
|
|
72361
72361
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -72393,7 +72393,7 @@ ze({
|
|
|
72393
72393
|
extensions: [".handlebars", ".hbs"],
|
|
72394
72394
|
aliases: ["Handlebars", "handlebars", "hbs"],
|
|
72395
72395
|
mimetypes: ["text/x-handlebars-template"],
|
|
72396
|
-
loader: () => import("./handlebars-
|
|
72396
|
+
loader: () => import("./handlebars-k2rFZs8f.js")
|
|
72397
72397
|
});
|
|
72398
72398
|
/*!-----------------------------------------------------------------------------
|
|
72399
72399
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -72418,7 +72418,7 @@ ze({
|
|
|
72418
72418
|
extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
|
|
72419
72419
|
aliases: ["HTML", "htm", "html", "xhtml"],
|
|
72420
72420
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
72421
|
-
loader: () => import("./html-
|
|
72421
|
+
loader: () => import("./html-EbNQZc1f.js")
|
|
72422
72422
|
});
|
|
72423
72423
|
/*!-----------------------------------------------------------------------------
|
|
72424
72424
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -72459,7 +72459,7 @@ ze({
|
|
|
72459
72459
|
filenames: ["jakefile"],
|
|
72460
72460
|
aliases: ["JavaScript", "javascript", "js"],
|
|
72461
72461
|
mimetypes: ["text/javascript"],
|
|
72462
|
-
loader: () => import("./javascript-
|
|
72462
|
+
loader: () => import("./javascript-2erMEQ5M.js")
|
|
72463
72463
|
});
|
|
72464
72464
|
/*!-----------------------------------------------------------------------------
|
|
72465
72465
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -72534,7 +72534,7 @@ ze({
|
|
|
72534
72534
|
extensions: [".liquid", ".html.liquid"],
|
|
72535
72535
|
aliases: ["Liquid", "liquid"],
|
|
72536
72536
|
mimetypes: ["application/liquid"],
|
|
72537
|
-
loader: () => import("./liquid-
|
|
72537
|
+
loader: () => import("./liquid-7T_4h5JP.js")
|
|
72538
72538
|
});
|
|
72539
72539
|
/*!-----------------------------------------------------------------------------
|
|
72540
72540
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -72570,7 +72570,7 @@ ze({
|
|
|
72570
72570
|
id: "mdx",
|
|
72571
72571
|
extensions: [".mdx"],
|
|
72572
72572
|
aliases: ["MDX", "mdx"],
|
|
72573
|
-
loader: () => import("./mdx-
|
|
72573
|
+
loader: () => import("./mdx-hg9hHijL.js")
|
|
72574
72574
|
});
|
|
72575
72575
|
/*!-----------------------------------------------------------------------------
|
|
72576
72576
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -72765,7 +72765,7 @@ ze({
|
|
|
72765
72765
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
72766
72766
|
aliases: ["Python", "py"],
|
|
72767
72767
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
72768
|
-
loader: () => import("./python-
|
|
72768
|
+
loader: () => import("./python-ah6y9bLK.js")
|
|
72769
72769
|
});
|
|
72770
72770
|
/*!-----------------------------------------------------------------------------
|
|
72771
72771
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -72802,7 +72802,7 @@ ze({
|
|
|
72802
72802
|
extensions: [".cshtml"],
|
|
72803
72803
|
aliases: ["Razor", "razor"],
|
|
72804
72804
|
mimetypes: ["text/x-cshtml"],
|
|
72805
|
-
loader: () => import("./razor-
|
|
72805
|
+
loader: () => import("./razor-mfTF3Ltn.js")
|
|
72806
72806
|
});
|
|
72807
72807
|
/*!-----------------------------------------------------------------------------
|
|
72808
72808
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -73054,7 +73054,7 @@ ze({
|
|
|
73054
73054
|
extensions: [".ts", ".tsx", ".cts", ".mts"],
|
|
73055
73055
|
aliases: ["TypeScript", "ts", "typescript"],
|
|
73056
73056
|
mimetypes: ["text/typescript"],
|
|
73057
|
-
loader: () => import("./typescript-
|
|
73057
|
+
loader: () => import("./typescript-0kX6bcAg.js")
|
|
73058
73058
|
});
|
|
73059
73059
|
/*!-----------------------------------------------------------------------------
|
|
73060
73060
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -73110,7 +73110,7 @@ ze({
|
|
|
73110
73110
|
firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
|
|
73111
73111
|
aliases: ["XML", "xml"],
|
|
73112
73112
|
mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
|
|
73113
|
-
loader: () => import("./xml-
|
|
73113
|
+
loader: () => import("./xml-uMA9NpUB.js")
|
|
73114
73114
|
});
|
|
73115
73115
|
/*!-----------------------------------------------------------------------------
|
|
73116
73116
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -73123,7 +73123,7 @@ ze({
|
|
|
73123
73123
|
extensions: [".yaml", ".yml"],
|
|
73124
73124
|
aliases: ["YAML", "yaml", "YML", "yml"],
|
|
73125
73125
|
mimetypes: ["application/x-yaml", "text/x-yaml"],
|
|
73126
|
-
loader: () => import("./yaml-
|
|
73126
|
+
loader: () => import("./yaml-wTmSqPUd.js")
|
|
73127
73127
|
});
|
|
73128
73128
|
/*!-----------------------------------------------------------------------------
|
|
73129
73129
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -73218,7 +73218,7 @@ var SO = class {
|
|
|
73218
73218
|
}, GV = new SO("css", LO, xO), ZV = new SO("scss", LO, xO), YV = new SO("less", LO, xO);
|
|
73219
73219
|
i_.languages.css = { cssDefaults: GV, lessDefaults: YV, scssDefaults: ZV };
|
|
73220
73220
|
function kO() {
|
|
73221
|
-
return import("./cssMode-
|
|
73221
|
+
return import("./cssMode-SlkaMqwS.js");
|
|
73222
73222
|
}
|
|
73223
73223
|
i_.languages.onLanguage("less", () => {
|
|
73224
73224
|
kO().then((o) => o.setupMode(YV));
|
|
@@ -73313,7 +73313,7 @@ mx.languages.html = {
|
|
|
73313
73313
|
registerHTMLLanguageService: bx
|
|
73314
73314
|
};
|
|
73315
73315
|
function efe() {
|
|
73316
|
-
return import("./htmlMode-
|
|
73316
|
+
return import("./htmlMode-Nb9xyXta.js");
|
|
73317
73317
|
}
|
|
73318
73318
|
function bx(o, e = _x, t = vx(o)) {
|
|
73319
73319
|
const i = new Zhe(o, e, t);
|
|
@@ -73390,7 +73390,7 @@ var rfe = class {
|
|
|
73390
73390
|
}, eH = new rfe("json", afe, lfe);
|
|
73391
73391
|
f1.languages.json = { jsonDefaults: eH };
|
|
73392
73392
|
function cfe() {
|
|
73393
|
-
return import("./jsonMode-
|
|
73393
|
+
return import("./jsonMode-oYRGRi1R.js");
|
|
73394
73394
|
}
|
|
73395
73395
|
f1.languages.register({
|
|
73396
73396
|
id: "json",
|
|
@@ -73553,7 +73553,7 @@ Em.languages.typescript = {
|
|
|
73553
73553
|
getJavaScriptWorker: vfe
|
|
73554
73554
|
};
|
|
73555
73555
|
function Cx() {
|
|
73556
|
-
return import("./tsMode-
|
|
73556
|
+
return import("./tsMode-cb-ttmO3.js");
|
|
73557
73557
|
}
|
|
73558
73558
|
Em.languages.onLanguage("typescript", () => Cx().then((o) => o.setupTypeScript(lH)));
|
|
73559
73559
|
Em.languages.onLanguage("javascript", () => Cx().then((o) => o.setupJavaScript(cH)));
|
|
@@ -106973,6 +106973,7 @@ const Uwe = /* @__PURE__ */ ss(Fwe, [["render", zwe]]), $we = {
|
|
|
106973
106973
|
disabled: {
|
|
106974
106974
|
default: !1
|
|
106975
106975
|
},
|
|
106976
|
+
theme: "h-menu-white",
|
|
106976
106977
|
value: "",
|
|
106977
106978
|
format: {
|
|
106978
106979
|
default: "YYYY-MM-DD"
|
|
@@ -107026,11 +107027,11 @@ function jwe(o, e, t, i, n, s) {
|
|
|
107026
107027
|
const r = Xt("Menu");
|
|
107027
107028
|
return Pi(), Ss(r, {
|
|
107028
107029
|
ref: "menus",
|
|
107029
|
-
className:
|
|
107030
|
+
className: t.theme,
|
|
107030
107031
|
datas: s.data,
|
|
107031
107032
|
inlineCollapsed: s.siderCollapsed,
|
|
107032
107033
|
onSelect: s.menuSelect
|
|
107033
|
-
}, null, 8, ["datas", "inlineCollapsed", "onSelect"]);
|
|
107034
|
+
}, null, 8, ["className", "datas", "inlineCollapsed", "onSelect"]);
|
|
107034
107035
|
}
|
|
107035
107036
|
const qwe = /* @__PURE__ */ ss($we, [["render", jwe]]), Kwe = {
|
|
107036
107037
|
name: "PaasPageSelect",
|
|
@@ -108117,12 +108118,13 @@ const Yye = /* @__PURE__ */ ss(Gye, [["render", Zye]]), Xye = {
|
|
|
108117
108118
|
success: {
|
|
108118
108119
|
default: "success"
|
|
108119
108120
|
},
|
|
108120
|
-
|
|
108121
|
+
value: "",
|
|
108121
108122
|
label: "",
|
|
108122
108123
|
prop: ""
|
|
108123
108124
|
},
|
|
108124
108125
|
data() {
|
|
108125
108126
|
return {
|
|
108127
|
+
cValue: this.value,
|
|
108126
108128
|
isLoading: !1,
|
|
108127
108129
|
file: [],
|
|
108128
108130
|
message: ""
|
|
@@ -108141,7 +108143,7 @@ const Yye = /* @__PURE__ */ ss(Gye, [["render", Zye]]), Xye = {
|
|
|
108141
108143
|
this.file = o.target.files;
|
|
108142
108144
|
for (var e = new Array(), t = 0; t < this.file.length; t++)
|
|
108143
108145
|
e.push(this.file[t].name);
|
|
108144
|
-
this.
|
|
108146
|
+
this.cValue = e.join(",");
|
|
108145
108147
|
},
|
|
108146
108148
|
confirm(o) {
|
|
108147
108149
|
o.preventDefault(), this.isLoading = !0;
|
|
@@ -108152,13 +108154,10 @@ const Yye = /* @__PURE__ */ ss(Gye, [["render", Zye]]), Xye = {
|
|
|
108152
108154
|
for (var i in this.params)
|
|
108153
108155
|
e.append(i, this.params[i] || "");
|
|
108154
108156
|
this.$upload(this.url, e).then((n) => {
|
|
108155
|
-
this.isLoading = !1, n.data.code == this.$success ? (Gh.info("上传成功"), this.file = [], this.
|
|
108157
|
+
this.isLoading = !1, n.data.code == this.$success ? (Gh.info("上传成功"), this.file = [], this.cValue = n.data.data, this.$emit(this.success, n.data.data)) : Gh.error(n.data.msg);
|
|
108156
108158
|
}).catch((n) => {
|
|
108157
108159
|
this.isLoading = !1, Gh.error(n);
|
|
108158
108160
|
});
|
|
108159
|
-
},
|
|
108160
|
-
updateValue(o) {
|
|
108161
|
-
this.$emit("update:modelValue", o);
|
|
108162
108161
|
}
|
|
108163
108162
|
}
|
|
108164
108163
|
}, Qye = ["disabled", "accept", "multiple"], Jye = { class: "h-input-group" }, eSe = { class: "h-input h-input-suffix-icon" };
|
|
@@ -108185,14 +108184,13 @@ function tSe(o, e, t, i, n, s) {
|
|
|
108185
108184
|
fn(r, {
|
|
108186
108185
|
type: "text",
|
|
108187
108186
|
name: t.name,
|
|
108188
|
-
|
|
108187
|
+
value: n.cValue,
|
|
108189
108188
|
disabled: s.see,
|
|
108190
|
-
onInput: e[1] || (e[1] = (c) => s.updateValue(c.target.value)),
|
|
108191
108189
|
readonly: ""
|
|
108192
|
-
}, null, 8, ["name", "
|
|
108190
|
+
}, null, 8, ["name", "value", "disabled"]),
|
|
108193
108191
|
cf(Ei("i", {
|
|
108194
108192
|
class: "h-icon-upload",
|
|
108195
|
-
onClick: e[
|
|
108193
|
+
onClick: e[1] || (e[1] = (...c) => s.fileChange && s.fileChange(...c)),
|
|
108196
108194
|
style: { cursor: "pointer", "padding-right": "5px" }
|
|
108197
108195
|
}, null, 512), [
|
|
108198
108196
|
[Qp, !s.see]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { conf as t, language as e } from "./typescript-
|
|
1
|
+
import { conf as t, language as e } from "./typescript-0kX6bcAg.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Ge = Object.defineProperty;
|
|
2
2
|
var Qe = (e, n, i) => n in e ? Ge(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
|
|
3
3
|
var C = (e, n, i) => (Qe(e, typeof n != "symbol" ? n + "" : n, i), i);
|
|
4
|
-
import { m as Ze } from "./index-
|
|
4
|
+
import { m as Ze } from "./index-X_lRmwCM.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as d } from "./index-
|
|
1
|
+
import { m as d } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as d } from "./index-
|
|
1
|
+
import { m as d } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
package/dist/paas-ui.js
CHANGED
package/dist/paas-ui.umd.cjs
CHANGED
|
@@ -1121,7 +1121,7 @@ The flag will not be saved for the future.
|
|
|
1121
1121
|
`):void 0}:{range:R.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join(`
|
|
1122
1122
|
`):void 0}})}provideRenameEdits(e,t){return Ng(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,i,n){return Ng(this,void 0,void 0,function*(){const o=this._providers[t];if(!o)return{edits:[],rejectReason:i.join(`
|
|
1123
1123
|
`)};const r=yield o.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(b("no result","No result.")),n);return r})}}function ike(s,e,t,i){return Ng(this,void 0,void 0,function*(){const n=new XP(e,t,s),o=yield n.resolveRenameLocation(yt.None);return o!=null&&o.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(i,yt.None)})}let Ag=YP=class{static get(e){return e.getContribution(YP.ID)}constructor(e,t,i,n,o,r,a,l){this.editor=e,this._instaService=t,this._notificationService=i,this._bulkEditService=n,this._progressService=o,this._logService=r,this._configService=a,this._languageFeaturesService=l,this._disposableStore=new _e,this._cts=new en,this._renameInputField=this._disposableStore.add(this._instaService.createInstance(ZP,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return Ng(this,void 0,void 0,function*(){if(this._cts.dispose(!0),this._cts=new en,!this.editor.hasModel())return;const i=this.editor.getPosition(),n=new XP(this.editor.getModel(),i,this._languageFeaturesService.renameProvider);if(!n.hasProvider())return;const o=new Qu(this.editor,5,void 0,this._cts.token);let r;try{const g=n.resolveRenameLocation(o.token);this._progressService.showWhile(g,250),r=yield g}catch(g){(e=$o.get(this.editor))===null||e===void 0||e.showMessage(g||b("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),i);return}finally{o.dispose()}if(!r)return;if(r.rejectReason){(t=$o.get(this.editor))===null||t===void 0||t.showMessage(r.rejectReason,i);return}if(o.token.isCancellationRequested)return;const a=new Qu(this.editor,5,r.range,this._cts.token),l=this.editor.getSelection();let c=0,d=r.text.length;!R.isEmpty(l)&&!R.spansMultipleLines(l)&&R.containsRange(r.range,l)&&(c=Math.max(0,l.startColumn-r.range.startColumn),d=Math.min(r.range.endColumn,l.endColumn)-r.range.startColumn);const u=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),h=yield this._renameInputField.getInput(r.range,r.text,c,d,u,a.token);if(typeof h=="boolean"){h&&this.editor.focus(),a.dispose();return}this.editor.focus();const f=Uw(n.provideRenameEdits(h.newName,a.token),a.token).then(g=>Ng(this,void 0,void 0,function*(){if(!(!g||!this.editor.hasModel())){if(g.rejectReason){this._notificationService.info(g.rejectReason);return}this.editor.setSelection(R.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(g,{editor:this.editor,showPreview:h.wantsPreview,label:b("label","Renaming '{0}' to '{1}'",r==null?void 0:r.text,h.newName),code:"undoredo.rename",quotableLabel:b("quotableLabel","Renaming {0} to {1}",r==null?void 0:r.text,h.newName),respectAutoSaveConfig:!0}).then(p=>{p.ariaSummary&&Ss(b("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",r.text,h.newName,p.ariaSummary))}).catch(p=>{this._notificationService.error(b("rename.failedApply","Rename failed to apply edits")),this._logService.error(p)})}}),g=>{this._notificationService.error(b("rename.failed","Rename failed to compute edits")),this._logService.error(g)}).finally(()=>{a.dispose()});return this._progressService.showWhile(f,250),f})}acceptRenameInput(e){this._renameInputField.acceptInput(e)}cancelRenameInput(){this._renameInputField.cancelInput(!0)}};Ag.ID="editor.contrib.renameController",Ag=YP=tke([Ig(1,Je),Ig(2,rn),Ig(3,a0),Ig(4,Fu),Ig(5,sr),Ig(6,OI),Ig(7,Ve)],Ag);class nke extends We{constructor(){super({id:"editor.action.rename",label:b("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:fe.and(W.writable,W.hasRenameProvider),kbOpts:{kbExpr:W.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const i=e.get(zt),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return Ke.isUri(n)&&ee.isIPosition(o)?i.openCodeEditor({resource:n},i.getActiveCodeEditor()).then(r=>{r&&(r.setPosition(o),r.invokeWithinContext(a=>(this.reportTelemetry(a,r),this.run(a,r))))},lt):super.runCommand(e,t)}run(e,t){const i=Ag.get(t);return i?i.run():Promise.resolve()}}Vt(Ag.ID,Ag,4),we(nke);const QP=In.bindToContribution(Ag.get);ke(new QP({id:"acceptRenameInput",precondition:oE,handler:s=>s.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:fe.and(W.focus,fe.not("isComposing")),primary:3}})),ke(new QP({id:"acceptRenameInputWithPreview",precondition:fe.and(oE,fe.has("config.editor.rename.enablePreview")),handler:s=>s.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:fe.and(W.focus,fe.not("isComposing")),primary:1027}})),ke(new QP({id:"cancelRenameInput",precondition:oE,handler:s=>s.cancelRenameInput(),kbOpts:{weight:199,kbExpr:W.focus,primary:9,secondary:[1033]}})),Ol("_executeDocumentRenameProvider",function(s,e,t,...i){const[n]=i;Jt(typeof n=="string");const{renameProvider:o}=s.get(Ve);return ike(o,e,t,n)}),Ol("_executePrepareRename",function(s,e,t){return Ng(this,void 0,void 0,function*(){const{renameProvider:i}=s.get(Ve),o=yield new XP(e,t,i).resolveRenameLocation(yt.None);if(o!=null&&o.rejectReason)throw new Error(o.rejectReason);return o})}),Ai.as(Ga.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:b("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}});function ske(s){for(let e=0,t=s.length;e<t;e+=4){const i=s[e+0],n=s[e+1],o=s[e+2],r=s[e+3];s[e+0]=r,s[e+1]=o,s[e+2]=n,s[e+3]=i}}function oke(s){const e=new Uint8Array(s.buffer,s.byteOffset,s.length*4);return x5()||ske(e),Zw.wrap(e)}function bj(s){const e=new Uint32Array(rke(s));let t=0;if(e[t++]=s.id,s.type==="full")e[t++]=1,e[t++]=s.data.length,e.set(s.data,t),t+=s.data.length;else{e[t++]=2,e[t++]=s.deltas.length;for(const i of s.deltas)e[t++]=i.start,e[t++]=i.deleteCount,i.data?(e[t++]=i.data.length,e.set(i.data,t),t+=i.data.length):e[t++]=0}return oke(e)}function rke(s){let e=0;if(e+=2,s.type==="full")e+=1+s.data.length;else{e+=1,e+=3*s.deltas.length;for(const t of s.deltas)t.data&&(e+=t.data.length)}return e}var xh=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};function rE(s){return s&&!!s.data}function Cj(s){return s&&Array.isArray(s.edits)}class ake{constructor(e,t,i){this.provider=e,this.tokens=t,this.error=i}}function wj(s,e){return s.has(e)}function lke(s,e){const t=s.orderedGroups(e);return t.length>0?t[0]:[]}function yj(s,e,t,i,n){return xh(this,void 0,void 0,function*(){const o=lke(s,e),r=yield Promise.all(o.map(a=>xh(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||!rE(l)&&!Cj(l))&&(l=null),new ake(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 cke(s,e){const t=s.orderedGroups(e);return t.length>0?t[0]:null}class dke{constructor(e,t){this.provider=e,this.tokens=t}}function uke(s,e){return s.has(e)}function Sj(s,e){const t=s.orderedGroups(e);return t.length>0?t[0]:[]}function JP(s,e,t,i){return xh(this,void 0,void 0,function*(){const n=Sj(s,e),o=yield Promise.all(n.map(r=>xh(this,void 0,void 0,function*(){let a;try{a=yield r.provideDocumentRangeSemanticTokens(e,t,i)}catch(l){un(l),a=null}return(!a||!rE(a))&&(a=null),new dke(r,a)})));for(const r of o)if(r.tokens)return r;return o.length>0?o[0]:null})}At.registerCommand("_provideDocumentSemanticTokensLegend",(s,...e)=>xh(void 0,void 0,void 0,function*(){const[t]=e;Jt(t instanceof Ke);const i=s.get(Ei).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=s.get(Ve),o=cke(n,i);return o?o[0].getLegend():s.get(Hi).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)})),At.registerCommand("_provideDocumentSemanticTokens",(s,...e)=>xh(void 0,void 0,void 0,function*(){const[t]=e;Jt(t instanceof Ke);const i=s.get(Ei).getModel(t);if(!i)return;const{documentSemanticTokensProvider:n}=s.get(Ve);if(!wj(n,i))return s.get(Hi).executeCommand("_provideDocumentRangeSemanticTokens",t,i.getFullModelRange());const o=yield yj(n,i,null,null,yt.None);if(!o)return;const{provider:r,tokens:a}=o;if(!a||!rE(a))return;const l=bj({id:0,type:"full",data:a.data});return a.resultId&&r.releaseDocumentSemanticTokens(a.resultId),l})),At.registerCommand("_provideDocumentRangeSemanticTokensLegend",(s,...e)=>xh(void 0,void 0,void 0,function*(){const[t,i]=e;Jt(t instanceof Ke);const n=s.get(Ei).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:o}=s.get(Ve),r=Sj(o,n);if(r.length===0)return;if(r.length===1)return r[0].getLegend();if(!i||!R.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 JP(o,n,R.lift(i),yt.None);if(a)return a.provider.getLegend()})),At.registerCommand("_provideDocumentRangeSemanticTokens",(s,...e)=>xh(void 0,void 0,void 0,function*(){const[t,i]=e;Jt(t instanceof Ke),Jt(R.isIRange(i));const n=s.get(Ei).getModel(t);if(!n)return;const{documentRangeSemanticTokensProvider:o}=s.get(Ve),r=yield JP(o,n,R.lift(i),yt.None);if(!(!r||!r.tokens))return bj({id:0,type:"full",data:r.tokens.data})}));const e4="editor.semanticHighlighting";function t4(s,e,t){var i;const n=(i=t.getValue(e4,{overrideIdentifier:s.getLanguageId(),resource:s.uri}))===null||i===void 0?void 0:i.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}var xj=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},wc=function(s,e){return function(t,i){e(t,i,s)}},kh;let i4=class extends oe{constructor(e,t,i,n,o,r){super(),this._watchers=Object.create(null);const a=d=>{this._watchers[d.uri.toString()]=new Z1(d,e,i,o,r)},l=(d,u)=>{u.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(const d of t.getModels()){const u=this._watchers[d.uri.toString()];t4(d,i,n)?u||a(d):u&&l(d,u)}};this._register(t.onModelAdded(d=>{t4(d,i,n)&&a(d)})),this._register(t.onModelRemoved(d=>{const u=this._watchers[d.uri.toString()];u&&l(d,u)})),this._register(n.onDidChangeConfiguration(d=>{d.affectsConfiguration(e4)&&c()})),this._register(i.onDidColorThemeChange(c))}dispose(){for(const e of Object.values(this._watchers))e.dispose();super.dispose()}};i4=xj([wc(0,IS),wc(1,Ei),wc(2,Ln),wc(3,Et),wc(4,Kr),wc(5,Ve)],i4);let Z1=kh=class extends oe{constructor(e,t,i,n,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:kh.REQUEST_MIN_DELAY,max:kh.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new ii(()=>this._fetchDocumentSemanticTokensNow(),kh.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{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=()=>{Zt(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>{if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}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),Zt(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!wj(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;const e=new en,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,i=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=yj(this._provider,this._model,t,i,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;const o=[],r=this._model.onDidChangeContent(l=>{o.push(l)}),a=new Cs(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,o);else{const{provider:c,tokens:d}=l,u=this._semanticTokensStylingService.getStyling(c);this._setDocumentSemanticTokens(c,d||null,u,o)}},l=>{l&&(Fa(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||lt(l),this._currentDocumentRequestCancellationTokenSource=null,r.dispose(),(o.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,i,n,o){o=Math.min(o,i.length-n,e.length-t);for(let r=0;r<o;r++)i[n+r]=e[t+r]}_setDocumentSemanticTokens(e,t,i,n){const o=this._currentDocumentResponse,r=()=>{(n.length>0||this._providersChangedDuringRequest)&&!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(Cj(t)){if(!o){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:o.data};else{let a=0;for(const h of t.edits)a+=(h.data?h.data.length:0)-h.deleteCount;const l=o.data,c=new Uint32Array(l.length+a);let d=l.length,u=c.length;for(let h=t.edits.length-1;h>=0;h--){const f=t.edits[h];if(f.start>l.length){i.warnInvalidEditStart(o.resultId,t.resultId,h,f.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}const g=d-(f.start+f.deleteCount);g>0&&(kh._copy(l,d-g,c,u-g,g),u-=g),f.data&&(kh._copy(f.data,0,c,u-f.data.length,f.data.length),u-=f.data.length),d=f.start}d>0&&kh._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(rE(t)){this._currentDocumentResponse=new hke(e,t.resultId,t.data);const a=a7(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()}};Z1.REQUEST_MIN_DELAY=300,Z1.REQUEST_MAX_DELAY=2e3,Z1=kh=xj([wc(1,IS),wc(2,Ln),wc(3,Kr),wc(4,Ve)],Z1);class hke{constructor(e,t,i){this.provider=e,this.resultId=t,this.data=i}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}$x(i4);var fke=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Y1=function(s,e){return function(t,i){e(t,i,s)}};let X1=class extends oe{constructor(e,t,i,n,o,r){super(),this._semanticTokensStylingService=t,this._themeService=i,this._configurationService=n,this._editor=e,this._provider=r.documentRangeSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new ii(()=>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(e4)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()})),a()}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,i=this._outstandingRequests.length;t<i;t++)if(this._outstandingRequests[t]===e){this._outstandingRequests.splice(t,1);return}}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.tokenization.hasCompleteSemanticTokens())return;if(!t4(e,this._themeService,this._configurationService)){e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1);return}if(!uke(this._provider,e)){e.tokenization.hasSomeSemanticTokens()&&e.tokenization.setSemanticTokens(null,!1);return}const t=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(t.map(i=>this._requestRange(e,i)))}_requestRange(e,t){const i=e.getVersionId(),n=wn(r=>Promise.resolve(JP(this._provider,e,t,r))),o=new Cs(!1);return n.then(r=>{if(this._debounceInformation.update(e,o.elapsed()),!r||!r.tokens||e.isDisposed()||e.getVersionId()!==i)return;const{provider:a,tokens:l}=r,c=this._semanticTokensStylingService.getStyling(a);e.tokenization.setPartialSemanticTokens(t,a7(l,c,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(n),()=>this._removeOutstandingRequest(n)),n}};X1.ID="editor.contrib.viewportSemanticTokens",X1=fke([Y1(1,IS),Y1(2,Ln),Y1(3,Et),Y1(4,Kr),Y1(5,Ve)],X1),Vt(X1.ID,X1,1);class gke{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){const i=[];for(const n of t){const o=[];i.push(o),this.selectSubwords&&this._addInWordRanges(o,e,n),this._addWordRanges(o,e,n),this._addWhitespaceLine(o,e,n),o.push({range:e.getFullModelRange()})}return i}_addInWordRanges(e,t,i){const n=t.getWordAtPosition(i);if(!n)return;const{word:o,startColumn:r}=n,a=i.column-r;let l=a,c=a,d=0;for(;l>=0;l--){const u=o.charCodeAt(l);if(l!==a&&(u===95||u===45))break;if(tu(u)&&Tl(d))break;d=u}for(l+=1;c<o.length;c++){const u=o.charCodeAt(c);if(Tl(u)&&tu(d))break;if(u===95||u===45)break;d=u}l<c&&e.push({range:new R(i.lineNumber,r+l,i.lineNumber,r+c)})}_addWordRanges(e,t,i){const n=t.getWordAtPosition(i);n&&e.push({range:new R(i.lineNumber,n.startColumn,i.lineNumber,n.endColumn)})}_addWhitespaceLine(e,t,i){t.getLineLength(i.lineNumber)>0&&t.getLineFirstNonWhitespaceColumn(i.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(i.lineNumber)===0&&e.push({range:new R(i.lineNumber,1,i.lineNumber,t.getLineMaxColumn(i.lineNumber))})}}var pke=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},mke=function(s,e){return function(t,i){e(t,i,s)}},aE=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},n4;class s4{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 s4(t,this.ranges);return i.ranges[t].equalsRange(this.ranges[this.index])?i.mov(e):i}}let D_=n4=class{static get(e){return e.getContribution(n4.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;(e=this._selectionListener)===null||e===void 0||e.dispose()}run(e){return aE(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),i=this._editor.getModel();if(this._state||(yield Lj(this._languageFeaturesService.selectionRangeProvider,i,t.map(o=>o.getPosition()),this._editor.getOption(112),yt.None).then(o=>{var r;if(!(!vs(o)||o.length!==t.length)&&!(!this._editor.hasModel()||!qi(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;a<o.length;a++)o[a]=o[a].filter(l=>l.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),o[a].unshift(t[a]);this._state=o.map(a=>new s4(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(o=>o.mov(e));const n=this._state.map(o=>He.fromPositions(o.ranges[o.index].getStartPosition(),o.ranges[o.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}})}};D_.ID="editor.contrib.smartSelectController",D_=n4=pke([mke(1,Ve)],D_);class kj extends We{constructor(e,t){super(t),this._forward=e}run(e,t){return aE(this,void 0,void 0,function*(){const i=D_.get(t);i&&(yield i.run(this._forward))})}}class _ke extends kj{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:b("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:W.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:B.MenubarSelectionMenu,group:"1_basic",title:b({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}At.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class vke extends kj{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:b("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:W.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:B.MenubarSelectionMenu,group:"1_basic",title:b({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}Vt(D_.ID,D_,4),we(_ke),we(vke);function Lj(s,e,t,i,n){return aE(this,void 0,void 0,function*(){const o=s.all(e).concat(new gke(i.selectSubwords));o.length===1&&o.unshift(new vr);const r=[],a=[];for(const l of o)r.push(Promise.resolve(l.provideSelectionRanges(e,t,n)).then(c=>{if(vs(c)&&c.length===t.length)for(let d=0;d<t.length;d++){a[d]||(a[d]=[]);for(const u of c[d])R.isIRange(u.range)&&R.containsPosition(u.range,t[d])&&a[d].push(R.lift(u.range))}},un));return yield Promise.all(r),a.map(l=>{if(l.length===0)return[];l.sort((h,f)=>ee.isBefore(h.getStartPosition(),f.getStartPosition())?1:ee.isBefore(f.getStartPosition(),h.getStartPosition())||ee.isBefore(h.getEndPosition(),f.getEndPosition())?-1:ee.isBefore(f.getEndPosition(),h.getEndPosition())?1:0);const c=[];let d;for(const h of l)(!d||R.containsRange(h,d)&&!R.equalsRange(h,d))&&(c.push(h),d=h);if(!i.selectLeadingAndTrailingWhitespace)return c;const u=[c[0]];for(let h=1;h<c.length;h++){const f=c[h-1],g=c[h];if(g.startLineNumber!==f.startLineNumber||g.endLineNumber!==f.endLineNumber){const p=new R(f.startLineNumber,e.getLineFirstNonWhitespaceColumn(f.startLineNumber),f.endLineNumber,e.getLineLastNonWhitespaceColumn(f.endLineNumber));p.containsRange(f)&&!p.equalsRange(f)&&g.containsRange(p)&&!g.equalsRange(p)&&u.push(p);const v=new R(f.startLineNumber,1,f.endLineNumber,e.getLineMaxColumn(f.endLineNumber));v.containsRange(f)&&!v.equalsRange(p)&&g.containsRange(v)&&!g.equalsRange(v)&&u.push(v)}u.push(g)}return u})})}At.registerCommand("_executeSelectionRangeProvider",function(s,...e){return aE(this,void 0,void 0,function*(){const[t,i]=e;Jt(Ke.isUri(t));const n=s.get(Ve).selectionRangeProvider,o=yield s.get(lo).createModelReference(t);try{return Lj(n,o.object.textEditorModel,i,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},yt.None)}finally{o.dispose()}})});const bke=Object.freeze({View:{value:b("view","View"),original:"View"},Help:{value:b("help","Help"),original:"Help"},Test:{value:b("test","Test"),original:"Test"},File:{value:b("file","File"),original:"File"},Preferences:{value:b("preferences","Preferences"),original:"Preferences"},Developer:{value:b({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer"),original:"Developer"}});var Cke=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class Ej{constructor(e,t,i,n=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=i,this.showEndForLine=n}equals(e){return!!e&&this.lastLineRelativePosition===e.lastLineRelativePosition&&this.showEndForLine===e.showEndForLine&&qi(this.startLineNumbers,e.startLineNumbers)&&qi(this.endLineNumbers,e.endLineNumbers)}}const Dj=Uc("stickyScrollViewLayer",{createHTML:s=>s}),o4="data-sticky-line-index",Tj="data-sticky-is-line",wke="data-sticky-is-line-number",Ij="data-sticky-is-folding-icon";class yke extends oe{constructor(e){super(),this._editor=e,this._foldingIconStore=new _e,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(66),this._stickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof th),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const t=()=>{this._linesDomNode.style.left=this._editor.getOption(114).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration(i=>{i.hasChanged(114)&&t(),i.hasChanged(66)&&(this._lineHeight=this._editor.getOption(66))})),this._register(this._editor.onDidScrollChange(i=>{i.scrollLeftChanged&&t(),i.scrollWidthChanged&&this._updateWidgetWidth()})),this._register(this._editor.onDidChangeModel(()=>{t(),this._updateWidgetWidth()})),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange(i=>{this._updateWidgetWidth()})),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getStickyLineForLine(e){return this._stickyLines.find(t=>t.lineNumber===e)}getCurrentLines(){return this._lineNumbers}setState(e,t,i=1/0){if((!this._previousState&&!e||this._previousState&&this._previousState.equals(e))&&i===1/0)return;this._previousState=e;const n=this._stickyLines;if(this._clearStickyWidget(),!e||!this._editor._getViewModel())return;if(e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition>0){this._lastLineRelativePosition=e.lastLineRelativePosition;const r=[...e.startLineNumbers];e.showEndForLine!==null&&(r[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=r}else this._lastLineRelativePosition=0,this._lineNumbers=[];this._renderRootNode(n,t,i)}_updateWidgetWidth(){const e=this._editor.getLayoutInfo(),t=e.contentLeft;this._lineNumbersDomNode.style.width=`${t}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",`${this._editor.getScrollWidth()-e.verticalScrollbarWidth}px`),this._rootDomNode.style.width=`${e.width-e.verticalScrollbarWidth}px`}_clearStickyWidget(){this._stickyLines=[],this._foldingIconStore.clear(),Vn(this._lineNumbersDomNode),Vn(this._linesDomNode),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(const t of this._stickyLines){const i=t.foldingIcon;i&&i.setVisible(e?!0:i.isCollapsed)}}_renderRootNode(e,t,i=1/0){return Cke(this,void 0,void 0,function*(){const n=this._editor.getLayoutInfo();for(const[r,a]of this._lineNumbers.entries()){const l=e[r],c=a>=i||(l==null?void 0:l.lineNumber)!==a?this._renderChildNode(r,a,t,n):this._updateTopAndZIndexOfStickyLine(l);c&&(this._linesDomNode.appendChild(c.lineDomNode),this._lineNumbersDomNode.appendChild(c.lineNumberDomNode),this._stickyLines.push(c))}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));const o=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;if(o===0){this._clearStickyWidget();return}this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${o}px`,this._linesDomNodeScrollable.style.height=`${o}px`,this._rootDomNode.style.height=`${o}px`,this._rootDomNode.style.marginLeft="0px",this._updateMinContentWidth(),this._editor.layoutOverlayWidget(this)})}_setFoldingHoverListeners(){this._editor.getOption(109)==="mouseover"&&(this._foldingIconStore.add(ue(this._lineNumbersDomNode,Re.MOUSE_ENTER,t=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)})),this._foldingIconStore.add(ue(this._lineNumbersDomNode,Re.MOUSE_LEAVE,()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)})))}_renderChildNode(e,t,i,n){const o=this._editor._getViewModel();if(!o)return;const r=o.coordinatesConverter.convertModelPositionToViewPosition(new ee(t,1)).lineNumber,a=o.getViewLineRenderingData(r),l=this._editor.getOption(67);let c;try{c=Oo.filter(a.inlineDecorations,r,a.minColumn,a.maxColumn)}catch{c=[]}const d=new gu(!0,!0,a.content,a.continuesWithWrappedLine,a.isBasicASCII,a.containsRTL,0,a.tokens,c,a.tabSize,a.startVisibleColumn,1,1,1,500,"none",!0,!0,null),u=new bp(2e3),h=Xv(d,u);let f;Dj?f=Dj.createHTML(u.build()):f=u.build();const g=document.createElement("span");g.setAttribute(o4,String(e)),g.setAttribute(Tj,""),g.setAttribute("role","listitem"),g.tabIndex=0,g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=f;const p=document.createElement("span");p.setAttribute(o4,String(e)),p.setAttribute(wke,""),p.className="sticky-line-number",p.style.lineHeight=`${this._lineHeight}px`;const v=n.contentLeft;p.style.width=`${v}px`;const m=document.createElement("span");l.renderType===1||l.renderType===3&&t%10===0?m.innerText=t.toString():l.renderType===2&&(m.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),m.className="sticky-line-number-inner",m.style.lineHeight=`${this._lineHeight}px`,m.style.width=`${n.lineNumbersWidth}px`,m.style.paddingLeft=`${n.lineNumbersLeft}px`,p.appendChild(m);const _=this._renderFoldingIconForLine(i,t);_&&p.appendChild(_.domNode),this._editor.applyFontInfo(g),this._editor.applyFontInfo(m),p.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,p.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;const C=new Ske(e,t,g,p,_,h.characterMapping);return this._updateTopAndZIndexOfStickyLine(C)}_updateTopAndZIndexOfStickyLine(e){var t;const i=e.index,n=e.lineDomNode,o=e.lineNumberDomNode,r=i===this._lineNumbers.length-1,a="0",l="1";n.style.zIndex=r?a:l,o.style.zIndex=r?a:l;const c=`${i*this._lineHeight+this._lastLineRelativePosition+(!((t=e.foldingIcon)===null||t===void 0)&&t.isCollapsed?1:0)}px`,d=`${i*this._lineHeight}px`;return n.style.top=r?c:d,o.style.top=r?c:d,e}_renderFoldingIconForLine(e,t){const i=this._editor.getOption(109);if(!e||i==="never")return;const n=e.regions,o=n.findRange(t),r=n.getStartLineNumber(o);if(!(t===r))return;const l=n.isCollapsed(o),c=new xke(l,r,n.getEndLineNumber(o),this._lineHeight);return c.setVisible(this._isOnGlyphMargin?!0:l||i==="always"),c.domNode.setAttribute(Ij,""),c}_updateMinContentWidth(){this._minContentWidthInPx=0;for(const e of this._stickyLines)e.lineDomNode.scrollWidth>this._minContentWidthInPx&&(this._minContentWidthInPx=e.lineDomNode.scrollWidth);this._minContentWidthInPx+=this._editor.getLayoutInfo().verticalScrollbarWidth}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e<this._stickyLines.length&&this._stickyLines[e].lineDomNode.focus()}getEditorPositionFromNode(e){if(!e||e.children.length>0)return null;const t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;const i=aN(t.characterMapping,e,0);return new ee(t.lineNumber,i)}getLineNumberFromChildDomNode(e){var t,i;return(i=(t=this._getRenderedStickyLineFromChildDomNode(e))===null||t===void 0?void 0:t.lineNumber)!==null&&i!==void 0?i:null}_getRenderedStickyLineFromChildDomNode(e){const t=this.getLineIndexFromChildDomNode(e);return t===null||t<0||t>=this._stickyLines.length?null:this._stickyLines[t]}getLineIndexFromChildDomNode(e){const t=this._getAttributeValue(e,o4);return t?parseInt(t,10):null}isInStickyLine(e){return this._getAttributeValue(e,Tj)!==void 0}isInFoldingIconDomNode(e){return this._getAttributeValue(e,Ij)!==void 0}_getAttributeValue(e,t){for(;e&&e!==this._rootDomNode;){const i=e.getAttribute(t);if(i!==null)return i;e=e.parentElement}}}class Ske{constructor(e,t,i,n,o,r){this.index=e,this.lineNumber=t,this.lineDomNode=i,this.lineNumberDomNode=n,this.foldingIcon=o,this.characterMapping=r}}class xke{constructor(e,t,i,n){this.isCollapsed=e,this.foldingStartLine=t,this.foldingEndLine=i,this.dimension=n,this.domNode=document.createElement("div"),this.domNode.style.width=`${n}px`,this.domNode.style.height=`${n}px`,this.domNode.className=Ge.asClassName(e?bL:vL)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}class Q1{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}}class lE{constructor(e,t,i){this.range=e,this.children=t,this.parent=i}}class Nj{constructor(e,t,i,n){this.uri=e,this.version=t,this.element=i,this.outlineProviderId=n}}var cE=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},J1=function(s,e){return function(t,i){e(t,i,s)}},Aj=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},eC;(function(s){s.OUTLINE_MODEL="outlineModel",s.FOLDING_PROVIDER_MODEL="foldingProviderModel",s.INDENTATION_MODEL="indentationModel"})(eC||(eC={}));var Lh;(function(s){s[s.VALID=0]="VALID",s[s.INVALID=1]="INVALID",s[s.CANCELED=2]="CANCELED"})(Lh||(Lh={}));let r4=class extends oe{constructor(e,t,i,n){super(),this._editor=e,this._languageConfigurationService=t,this._languageFeaturesService=i,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new da(300)),this._updateOperation=this._register(new _e);const o=new a4(i),r=new c4(this._editor,i),a=new l4(this._editor,t);switch(n){case eC.OUTLINE_MODEL:this._modelProviders.push(o),this._modelProviders.push(r),this._modelProviders.push(a);break;case eC.FOLDING_PROVIDER_MODEL:this._modelProviders.push(r),this._modelProviders.push(a);break;case eC.INDENTATION_MODEL:this._modelProviders.push(a);break}}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}update(e,t,i){return Aj(this,void 0,void 0,function*(){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),yield this._updateScheduler.trigger(()=>Aj(this,void 0,void 0,function*(){for(const n of this._modelProviders){const{statusPromise:o,modelPromise:r}=n.computeStickyModel(e,t,i);this._modelPromise=r;const a=yield o;if(this._modelPromise!==r)return null;switch(a){case Lh.CANCELED:return this._updateOperation.clear(),null;case Lh.VALID:return n.stickyModel}}return null})).catch(n=>(lt(n),null))})}};r4=cE([J1(1,ri),J1(2,Ve)],r4);class Rj{constructor(){this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,Lh.INVALID}computeStickyModel(e,t,i){if(i.isCancellationRequested||!this.isProviderValid(e))return{statusPromise:this._invalid(),modelPromise:null};const n=wn(o=>this.createModelFromProvider(e,t,o));return{statusPromise:n.then(o=>this.isModelValid(o)?i.isCancellationRequested?Lh.CANCELED:(this._stickyModel=this.createStickyModel(e,t,i,o),Lh.VALID):this._invalid()).then(void 0,o=>(lt(o),Lh.CANCELED)),modelPromise:n}}isModelValid(e){return!0}isProviderValid(e){return!0}}let a4=class extends Rj{constructor(e){super(),this._languageFeaturesService=e}createModelFromProvider(e,t,i){return Ad.create(this._languageFeaturesService.documentSymbolProvider,e,i)}createStickyModel(e,t,i,n){var o;const{stickyOutlineElement:r,providerID:a}=this._stickyModelFromOutlineModel(n,(o=this._stickyModel)===null||o===void 0?void 0:o.outlineProviderId);return new Nj(e.uri,t,r,a)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let i;if(wt.first(e.children.values())instanceof kU){const a=wt.find(e.children.values(),l=>l.id===t);if(a)i=a.children;else{let l="",c=-1,d;for(const[u,h]of e.children.entries()){const f=this._findSumOfRangesOfGroup(h);f>c&&(d=h,c=f,l=h.id)}t=l,i=d.children}}else i=e.children;const n=[],o=Array.from(i.values()).sort((a,l)=>{const c=new Q1(a.symbol.range.startLineNumber,a.symbol.range.endLineNumber),d=new Q1(l.symbol.range.startLineNumber,l.symbol.range.endLineNumber);return this._comparator(c,d)});for(const a of o)n.push(this._stickyModelFromOutlineElement(a,a.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new lE(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){const i=[];for(const o of e.children.values())if(o.symbol.selectionRange.startLineNumber!==o.symbol.range.endLineNumber)if(o.symbol.selectionRange.startLineNumber!==t)i.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));else for(const r of o.children.values())i.push(this._stickyModelFromOutlineElement(r,o.symbol.selectionRange.startLineNumber));i.sort((o,r)=>this._comparator(o.range,r.range));const n=new Q1(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new lE(n,i,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(const i of e.children.values())t+=this._findSumOfRangesOfGroup(i);return e instanceof oP?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};a4=cE([J1(0,Ve)],a4);class Oj extends Rj{constructor(e){super(),this._foldingLimitReporter=new yU(e)}createStickyModel(e,t,i,n){const o=this._fromFoldingRegions(n);return new Nj(e.uri,t,o,void 0)}isModelValid(e){return e!==null}_fromFoldingRegions(e){const t=e.length,i=[],n=new lE(void 0,[],void 0);for(let o=0;o<t;o++){const r=e.getParentIndex(o);let a;r!==-1?a=i[r]:a=n;const l=new lE(new Q1(e.getStartLineNumber(o),e.getEndLineNumber(o)+1),[],a);a.children.push(l),i.push(l)}return n}}let l4=class extends Oj{constructor(e,t){super(e),this._languageConfigurationService=t}createModelFromProvider(e,t,i){return new eP(e,this._languageConfigurationService,this._foldingLimitReporter).compute(i)}};l4=cE([J1(1,ri)],l4);let c4=class extends Oj{constructor(e,t){super(e),this._languageFeaturesService=t}isProviderValid(e){return bc.getFoldingRangeProviders(this._languageFeaturesService,e).length>0}createModelFromProvider(e,t,i){const n=bc.getFoldingRangeProviders(this._languageFeaturesService,e);return new iP(e,n,()=>this.createModelFromProvider(e,t,i),this._foldingLimitReporter,void 0).compute(i)}};c4=cE([J1(1,Ve)],c4);var kke=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Mj=function(s,e){return function(t,i){e(t,i,s)}},Pj=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class Lke{constructor(e,t,i){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=i}}let d4=class extends oe{constructor(e,t,i){super(),this._languageFeaturesService=t,this._languageConfigurationService=i,this._onDidChangeStickyScroll=this._register(new X),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._options=null,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new _e),this._updateSoon=this._register(new ii(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(114)&&this.readConfiguration()})),this.readConfiguration()}readConfiguration(){this._stickyModelProvider=null,this._sessionStore.clear(),this._options=this._editor.getOption(114),this._options.enabled&&(this._stickyModelProvider=this._sessionStore.add(new r4(this._editor,this._languageConfigurationService,this._languageFeaturesService,this._options.defaultModel)),this._sessionStore.add(this._editor.onDidChangeModel(()=>{this._model=null,this._onDidChangeStickyScroll.fire(),this.update()})),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this.update())),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this.update())),this.update())}getVersionId(){var e;return(e=this._model)===null||e===void 0?void 0:e.version}update(){var e;return Pj(this,void 0,void 0,function*(){(e=this._cts)===null||e===void 0||e.dispose(!0),this._cts=new en,yield this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()})}updateStickyModel(e){return Pj(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization()){this._model=null;return}const t=this._editor.getModel(),i=t.getVersionId(),n=yield this._stickyModelProvider.update(t,i,e);e.isCancellationRequested||(this._model=n)})}updateIndex(e){return e===-1?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,i,n,o){if(t.children.length===0)return;let r=o;const a=[];for(let d=0;d<t.children.length;d++){const u=t.children[d];u.range&&a.push(u.range.startLineNumber)}const l=this.updateIndex(lv(a,e.startLineNumber,(d,u)=>d-u)),c=this.updateIndex(lv(a,e.startLineNumber+n,(d,u)=>d-u));for(let d=l;d<=c;d++){const u=t.children[d];if(!u)return;if(u.range){const h=u.range.startLineNumber,f=u.range.endLineNumber;e.startLineNumber<=f+1&&h-1<=e.endLineNumber&&h!==r&&(r=h,i.push(new Lke(h,f-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,i,n+1,h))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,i,n,o)}}getCandidateStickyLinesIntersecting(e){var t,i;if(!(!((t=this._model)===null||t===void 0)&&t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);const o=(i=this._editor._getViewModel())===null||i===void 0?void 0:i.getHiddenAreas();if(o)for(const r of o)n=n.filter(a=>!(a.startLineNumber>=r.startLineNumber&&a.endLineNumber<=r.endLineNumber+1));return n}};d4=kke([Mj(1,Ve),Mj(2,ri)],d4);var Eke=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},T_=function(s,e){return function(t,i){e(t,i,s)}},u4=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},h4;let yc=h4=class extends oe{constructor(e,t,i,n,o,r,a){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=i,this._instaService=n,this._contextKeyService=a,this._sessionStore=new _e,this._foldingModel=null,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._showEndForLine=null,this._stickyScrollWidget=new yke(this._editor),this._stickyLineCandidateProvider=new d4(this._editor,i,o),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new Ej([],[],0),this._readConfiguration();const l=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration(d=>{(d.hasChanged(114)||d.hasChanged(72)||d.hasChanged(66)||d.hasChanged(109))&&this._readConfiguration()})),this._register(ue(l,Re.CONTEXT_MENU,d=>u4(this,void 0,void 0,function*(){this._onContextMenu(d)}))),this._stickyScrollFocusedContextKey=W.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=W.stickyScrollVisible.bindTo(this._contextKeyService);const c=this._register(Rl(l));this._register(c.onDidBlur(d=>{this._positionRevealed===!1&&l.clientHeight===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(c.onDidFocus(d=>{this.focus()})),this._registerMouseListeners(),this._register(ue(l,Re.MOUSE_DOWN,d=>{this._onMouseDown=!0}))}static get(e){return e.getContribution(h4.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),(e=this._focusDisposableStore)===null||e===void 0||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown){this._onMouseDown=!1,this._editor.focus();return}this._stickyScrollFocusedContextKey.get()!==!0&&(this._focused=!0,this._focusDisposableStore=new _e,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex<this._stickyScrollWidget.lineNumberCount-1&&this._focusNav(!0)}focusPrevious(){this._focusedStickyElementIndex>0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,()=>this._editor.revealPosition(e))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(R.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){const e=this._register(new _e),t=this._register(new Sk(this._editor,{extractLineNumberFromMouseEvent:o=>{const r=this._stickyScrollWidget.getEditorPositionFromNode(o.target.element);return r?r.lineNumber:0}})),i=o=>{if(!this._editor.hasModel()||o.target.type!==12||o.target.detail!==this._stickyScrollWidget.getId())return null;const r=o.target.element;if(!r||r.innerText!==r.innerHTML)return null;const a=this._stickyScrollWidget.getEditorPositionFromNode(r);return a?{range:new R(a.lineNumber,a.column,a.lineNumber,a.column+r.innerText.length),textElement:r}:null},n=this._stickyScrollWidget.getDomNode();this._register(nn(n,Re.CLICK,o=>{if(o.ctrlKey||o.altKey||o.metaKey||!o.leftButton)return;if(o.shiftKey){const c=this._stickyScrollWidget.getLineIndexFromChildDomNode(o.target);if(c===null)return;const d=new ee(this._endLineNumbers[c],1);this._revealLineInCenterIfOutsideViewport(d);return}if(this._stickyScrollWidget.isInFoldingIconDomNode(o.target)){const c=this._stickyScrollWidget.getLineNumberFromChildDomNode(o.target);this._toggleFoldingRegionForLine(c);return}if(!this._stickyScrollWidget.isInStickyLine(o.target))return;let l=this._stickyScrollWidget.getEditorPositionFromNode(o.target);if(!l){const c=this._stickyScrollWidget.getLineNumberFromChildDomNode(o.target);if(c===null)return;l=new ee(c,1)}this._revealPosition(l)})),this._register(nn(n,Re.MOUSE_MOVE,o=>{if(o.shiftKey){const r=this._stickyScrollWidget.getLineIndexFromChildDomNode(o.target);if(r===null||this._showEndForLine!==null&&this._showEndForLine===r)return;this._showEndForLine=r,this._renderStickyScroll();return}this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(ue(n,Re.MOUSE_LEAVE,o=>{this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(t.onMouseMoveOrRelevantKeyDown(([o,r])=>{const a=i(o);if(!a||!o.hasTriggerModifier||!this._editor.hasModel()){e.clear();return}const{range:l,textElement:c}=a;if(!l.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=l,e.clear();else if(c.style.textDecoration==="underline")return;const d=new en;e.add(nt(()=>d.dispose(!0)));let u;Nk(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new ee(l.startLineNumber,l.startColumn+1),d.token).then(h=>{if(!d.token.isCancellationRequested)if(h.length!==0){this._candidateDefinitionsLength=h.length;const f=c;u!==f?(e.clear(),u=f,u.style.textDecoration="underline",e.add(nt(()=>{u.style.textDecoration="none"}))):u||(u=f,u.style.textDecoration="underline",e.add(nt(()=>{u.style.textDecoration="none"})))}else e.clear()})})),this._register(t.onCancel(()=>{e.clear()})),this._register(t.onExecute(o=>u4(this,void 0,void 0,function*(){if(o.target.type!==12||o.target.detail!==this._stickyScrollWidget.getId())return;const r=this._stickyScrollWidget.getEditorPositionFromNode(o.target.element);r&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:r.lineNumber,column:1})),this._instaService.invokeFunction(JU,o,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e){const t=new Rr(e);this._contextMenuService.showContextMenu({menuId:B.StickyScrollContext,getAnchor:()=>t})}_toggleFoldingRegionForLine(e){if(!this._foldingModel||e===null)return;const t=this._stickyScrollWidget.getStickyLineForLine(e),i=t==null?void 0:t.foldingIcon;if(!i)return;mU(this._foldingModel,Number.MAX_VALUE,[e]),i.isCollapsed=!i.isCollapsed;const n=(i.isCollapsed?this._editor.getTopForLineNumber(i.foldingEndLine):this._editor.getTopForLineNumber(i.foldingStartLine))-this._editor.getOption(66)*t.index+1;this._editor.setScrollTop(n),this._renderStickyScroll(e)}_readConfiguration(){const e=this._editor.getOption(114);if(e.enabled===!1){this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),this._enabled=!1;return}else e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange(i=>{i.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())})),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(i=>this._onTokensChange(i))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>{this._showEndForLine=null,this._renderStickyScroll()})),this._enabled=!0);this._editor.getOption(67).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>{this._showEndForLine=null,this._renderStickyScroll()}))}_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._renderStickyScroll(-1)}_onDidResize(){const t=this._editor.getLayoutInfo().height/this._editor.getOption(66);this._maxStickyLines=Math.round(t*.25)}_renderStickyScroll(e=1/0){var t,i;return u4(this,void 0,void 0,function*(){const n=this._editor.getModel();if(!n||n.isTooLargeForTokenization()){this._foldingModel=null,this._stickyScrollWidget.setState(void 0,null,e);return}const o=this._stickyLineCandidateProvider.getVersionId();if(o===void 0||o===n.getVersionId())if(this._foldingModel=(i=yield(t=bc.get(this._editor))===null||t===void 0?void 0:t.getFoldingModel())!==null&&i!==void 0?i:null,this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(this._widgetState.startLineNumbers.length!==0),!this._focused)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e);else if(this._focusedStickyElementIndex===-1)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,this._focusedStickyElementIndex!==-1&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const r=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,e),this._stickyScrollWidget.lineNumberCount===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(r)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}})}findScrollWidgetState(){const e=this._editor.getOption(66),t=Math.min(this._maxStickyLines,this._editor.getOption(114).maxLineCount),i=this._editor.getScrollTop();let n=0;const o=[],r=[],a=this._editor.getVisibleRanges();if(a.length!==0){const l=new Q1(a[0].startLineNumber,a[a.length-1].endLineNumber),c=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(l);for(const d of c){const u=d.startLineNumber,h=d.endLineNumber,f=d.nestingDepth;if(h-u>0){const g=(f-1)*e,p=f*e,v=this._editor.getBottomForLineNumber(u)-i,m=this._editor.getTopForLineNumber(h)-i,_=this._editor.getBottomForLineNumber(h)-i;if(g>m&&g<=_){o.push(u),r.push(h+1),n=_-p;break}else p>v&&p<=_&&(o.push(u),r.push(h+1));if(o.length===t)break}}}return this._endLineNumbers=r,new Ej(o,r,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};yc.ID="store.contrib.stickyScrollController",yc=h4=Eke([T_(1,ba),T_(2,Ve),T_(3,Je),T_(4,ri),T_(5,Kr),T_(6,st)],yc);var Dke=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};class Tke extends ir{constructor(){super({id:"editor.action.toggleStickyScroll",title:{value:b("toggleStickyScroll","Toggle Sticky Scroll"),mnemonicTitle:b({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Sticky Scroll"),original:"Toggle Sticky Scroll"},category:bke.View,toggled:{condition:fe.equals("config.editor.stickyScroll.enabled",!0),title:b("stickyScroll","Sticky Scroll"),mnemonicTitle:b({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:B.CommandPalette},{id:B.MenubarAppearanceMenu,group:"4_editor",order:3},{id:B.StickyScrollContext}]})}run(e){return Dke(this,void 0,void 0,function*(){const t=e.get(Et),i=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",i)})}}const dE=100;class Ike extends ja{constructor(){super({id:"editor.action.focusStickyScroll",title:{value:b("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:b({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll"),original:"Focus Sticky Scroll"},precondition:fe.and(fe.has("config.editor.stickyScroll.enabled"),W.stickyScrollVisible),menu:[{id:B.CommandPalette}]})}runEditorCommand(e,t){var i;(i=yc.get(t))===null||i===void 0||i.focus()}}class Nke extends ja{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:{value:b("selectNextStickyScrollLine.title","Select next sticky scroll line"),original:"Select next sticky scroll line"},precondition:W.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:dE,primary:18}})}runEditorCommand(e,t){var i;(i=yc.get(t))===null||i===void 0||i.focusNext()}}class Ake extends ja{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:{value:b("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),original:"Select previous sticky scroll line"},precondition:W.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:dE,primary:16}})}runEditorCommand(e,t){var i;(i=yc.get(t))===null||i===void 0||i.focusPrevious()}}class Rke extends ja{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:{value:b("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),original:"Go to focused sticky scroll line"},precondition:W.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:dE,primary:3}})}runEditorCommand(e,t){var i;(i=yc.get(t))===null||i===void 0||i.goToFocused()}}class Oke extends ja{constructor(){super({id:"editor.action.selectEditor",title:{value:b("selectEditor.title","Select Editor"),original:"Select Editor"},precondition:W.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:dE,primary:9}})}runEditorCommand(e,t){var i;(i=yc.get(t))===null||i===void 0||i.selectEditor()}}Vt(yc.ID,yc,1),_i(Tke),_i(Ike),_i(Ake),_i(Nke),_i(Rke),_i(Oke);var f4=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Rg=function(s,e){return function(t,i){e(t,i,s)}},Mke=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},Og;class Pke{constructor(e,t,i,n,o,r){this.range=e,this.insertText=t,this.filterText=i,this.additionalTextEdits=n,this.command=o,this.completion=r}}let g4=class extends dX{constructor(e,t,i,n,o,r){super(o.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<i.endColumn&&this.completionModel.getIncompleteProvider().size===0}get items(){var e;const t=[],{items:i}=this.completionModel,n=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},i),o=wt.slice(i,n),r=wt.slice(i,0,n);let a=5;for(const l of wt.concat(o,r)){if(l.score===el.Default)continue;const c=new R(l.editStart.lineNumber,l.editStart.column,l.editInsertEnd.lineNumber,l.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),d=l.completion.insertTextRules&&l.completion.insertTextRules&4?{snippet:l.completion.insertText}:l.completion.insertText;t.push(new Pke(c,d,(e=l.filterTextLow)!==null&&e!==void 0?e:l.labelLow,l.completion.additionalTextEdits,l.completion.command,l)),a-->=0&&l.resolve(yt.None)}return t}};g4=f4([Rg(5,TL)],g4);let p4=class{constructor(e,t,i,n){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=i,this._suggestMemoryService=n}provideInlineCompletions(e,t,i,n){var o;return Mke(this,void 0,void 0,function*(){if(i.selectedSuggestionInfo)return;const r=this._getEditorOption(88,e);if(v_.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(v_.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 u;const h=e.getValueInRange(new R(t.lineNumber,1,t.lineNumber,t.column));if(!d&&(!((o=this._lastResult)===null||o===void 0)&&o.canBeReused(e,t.lineNumber,c))){const f=new GU(h,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=f,this._lastResult.acquire(),u=this._lastResult}else{const f=yield pP(this._languageFeatureService.completionProvider,e,t,new N1(void 0,void 0,d==null?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},n);let g;f.needsClipboard&&(g=yield this._clipboardService.readText());const p=new fh(f.items,t.column,new GU(h,0),bl.None,this._getEditorOption(117,e),this._getEditorOption(111,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},g);u=new g4(e,t.lineNumber,c,p,f,this._suggestMemoryService)}return this._lastResult=u,u})}handleItemDidShow(e,t){t.completion.resolve(yt.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var i;const n=e.getValueInRange(R.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),o=new Set;for(const r of this._languageFeatureService.completionProvider.all(e))!((i=r.triggerCharacters)===null||i===void 0)&&i.includes(n)&&o.add(r);if(o.size!==0)return{providers:o,ch:n}}};p4=f4([Rg(1,Ve),Rg(2,bd),Rg(3,TL)],p4);let uE=Og=class{constructor(e,t,i,n){if(++Og._counter===1){const o=n.createInstance(p4,(r,a)=>{var l;return((l=i.listCodeEditors().find(d=>d.getModel()===a))!==null&&l!==void 0?l:e).getOption(r)});Og._disposable=t.inlineCompletionsProvider.register("*",o)}}dispose(){var e;--Og._counter===0&&((e=Og._disposable)===null||e===void 0||e.dispose(),Og._disposable=void 0)}};uE._counter=0,uE=Og=f4([Rg(1,Ve),Rg(2,zt),Rg(3,Je)],uE),Vt("suggest.inlineCompletionsProvider",uE,0);class Fke extends We{constructor(){super({id:"editor.action.forceRetokenize",label:b("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 Cs;i.tokenization.forceTokenization(i.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}}we(Fke);class hE extends ir{constructor(){super({id:hE.ID,title:{value:b({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),original:"Toggle Tab Key Moves Focus"},precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(){const t=!Pp.getTabFocusMode();Pp.setTabFocusMode(t),Ss(t?b("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element"):b("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}hE.ID="editor.action.toggleTabFocusMode",_i(hE);var Bke=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Wke=function(s,e){return function(t,i){e(t,i,s)}};let m4=class extends oe{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}constructor(e,t,i={},n){var o;super(),this._link=t,this._enabled=!0,this.el=pe(e,be("a.monaco-link",{tabIndex:(o=t.tabIndex)!==null&&o!==void 0?o:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");const r=this._register(new kt(this.el,"click")),a=this._register(new kt(this.el,"keypress")),l=Me.chain(a.event,u=>u.map(h=>new di(h)).filter(h=>h.keyCode===3)),c=this._register(new kt(this.el,ai.Tap)).event;this._register(li.addTarget(this.el));const d=Me.any(r.event,l,c);this._register(d(u=>{this.enabled&&(ft.stop(u,!0),i!=null&&i.opener?i.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}};m4=Bke([Wke(3,Bo)],m4);var Fj=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Bj=function(s,e){return function(t,i){e(t,i,s)}};const Vke=26;let _4=class extends oe{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(v4))}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,Vke)}};_4=Fj([Bj(1,Je)],_4);let v4=class extends oe{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(Sd,{}),this.element=be("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=be("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){Vn(this.element)}show(e){Vn(this.element);const t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);const i=pe(this.element,be("div.icon-container"));i.setAttribute("aria-hidden","true"),e.icon&&i.appendChild(be(`div${Ge.asCSSSelector(e.icon)}`));const n=pe(this.element,be("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=pe(this.element,be("div.message-actions-container")),e.actions)for(const r of e.actions)this._register(this.instantiationService.createInstance(m4,this.messageActionsContainer,Object.assign(Object.assign({},r),{tabIndex:-1}),{}));const o=pe(this.element,be("div.action-container"));this.actionBar=this._register(new Zr(o)),this.actionBar.push(this._register(new js("banner.close","Close Banner",Ge.asClassName(gV),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};v4=Fj([Bj(0,Je)],v4);var b4=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},I_=function(s,e){return function(t,i){e(t,i,s)}},Ts=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const Hke=Xi("extensions-warning-message",xe.warning,b("warningIcon","Icon shown with a warning message in the extensions editor."));let N_=class extends oe{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=o=>{if(o&&o.hasMore){if(this._bannerClosed)return;const r=Math.max(o.ambiguousCharacterCount,o.nonBasicAsciiCharacterCount,o.invisibleCharacterCount);let a;if(o.nonBasicAsciiCharacterCount>=r)a={message:b("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new R_};else if(o.ambiguousCharacterCount>=r)a={message:b("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Eh};else if(o.invisibleCharacterCount>=r)a={message:b("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new A_};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:Hke,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(_4,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(124),this._register(i.onDidChangeTrust(o=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(o=>{o.hasChanged(124)&&(this._options=e.getOption(124),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=$ke(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"?pY:i)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new C4(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new zke(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};N_.ID="editor.contrib.unicodeHighlighter",N_=b4([I_(1,ya),I_(2,D7),I_(3,Je)],N_);function $ke(s,e){return{nonBasicASCII:e.nonBasicASCII===Jo?!s:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===Jo?!s:e.includeComments,includeStrings:e.includeStrings===Jo?!s:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}let C4=class extends oe{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 ii(()=>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:fE.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;const t=this._editor.getModel();if(!lA(t,e))return null;const i=t.getValueInRange(e.range);return{reason:Wj(i,this._options),inComment:cA(t,e),inString:dA(t,e)}}};C4=b4([I_(3,ya)],C4);class zke extends oe{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 ii(()=>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 o=xI.computeUnicodeHighlights(this._model,this._options,n);for(const r of o.ranges)i.ranges.push(r);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||o.hasMore}if(!i.hasMore)for(const n of i.ranges)t.push({range:n,options:fE.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 lA(t,e)?{reason:Wj(i,this._options),inComment:cA(t,e),inString:dA(t,e)}:null}}let w4=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];const i=this._editor.getModel(),n=this._editor.getContribution(N_.ID);if(!n)return[];const o=[],r=new Set;let a=300;for(const l of t){const c=n.getDecorationInfo(l);if(!c)continue;const u=i.getValueInRange(l.range).codePointAt(0),h=S4(u);let f;switch(c.reason.kind){case 0:{yv(c.reason.confusableWith)?f=b("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,S4(c.reason.confusableWith.codePointAt(0))):f=b("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,S4(c.reason.confusableWith.codePointAt(0)));break}case 1:f=b("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:f=b("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h);break}if(r.has(f))continue;r.add(f);const g={codePoint:u,reason:c.reason,inComment:c.inComment,inString:c.inString},p=b("unicodeHighlight.adjustSettings","Adjust settings"),v=`command:${tC.ID}?${encodeURIComponent(JSON.stringify(g))}`,m=new ls("",!0).appendMarkdown(f).appendText(" ").appendLink(v,p);o.push(new dl(this,l.range,[m],!1,a++))}return o}renderHoverParts(e,t){return uz(e,t,this._editor,this._languageService,this._openerService)}};w4=b4([I_(1,Si),I_(2,Bo)],w4);function y4(s){return`U+${s.toString(16).padStart(4,"0")}`}function S4(s){let e=`\`${y4(s)}\``;return Il.isInvisibleCharacter(s)||(e+=` "${`${Uke(s)}`}"`),e}function Uke(s){return s===96?"`` ` ``":"`"+String.fromCodePoint(s)+"`"}function Wj(s,e){return xI.computeUnicodeHighlightReason(s,e)}class fE{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=dt.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}}fE.instance=new fE;class jke extends We{constructor(){super({id:Eh.ID,label:b("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,i){return Ts(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(Et);n&&this.runAction(n)})}runAction(e){return Ts(this,void 0,void 0,function*(){yield e.updateValue(ao.includeComments,!1,2)})}}class qke extends We{constructor(){super({id:Eh.ID,label:b("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,i){return Ts(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(Et);n&&this.runAction(n)})}runAction(e){return Ts(this,void 0,void 0,function*(){yield e.updateValue(ao.includeStrings,!1,2)})}}class Eh extends We{constructor(){super({id:Eh.ID,label:b("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,i){return Ts(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(Et);n&&this.runAction(n)})}runAction(e){return Ts(this,void 0,void 0,function*(){yield e.updateValue(ao.ambiguousCharacters,!1,2)})}}Eh.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class A_ extends We{constructor(){super({id:A_.ID,label:b("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,i){return Ts(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(Et);n&&this.runAction(n)})}runAction(e){return Ts(this,void 0,void 0,function*(){yield e.updateValue(ao.invisibleCharacters,!1,2)})}}A_.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class R_ extends We{constructor(){super({id:R_.ID,label:b("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,i){return Ts(this,void 0,void 0,function*(){const n=e==null?void 0:e.get(Et);n&&this.runAction(n)})}runAction(e){return Ts(this,void 0,void 0,function*(){yield e.updateValue(ao.nonBasicASCII,!1,2)})}}R_.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class tC extends We{constructor(){super({id:tC.ID,label:b("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,i){return Ts(this,void 0,void 0,function*(){const{codePoint:n,reason:o,inString:r,inComment:a}=i,l=String.fromCodePoint(n),c=e.get(ol),d=e.get(Et);function u(g){return Il.isInvisibleCharacter(g)?b("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",y4(g)):b("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${y4(g)} "${l}"`)}const h=[];if(o.kind===0)for(const g of o.notAmbiguousInLocales)h.push({label:b("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',g),run:()=>Ts(this,void 0,void 0,function*(){Gke(d,[g])})});if(h.push({label:u(n),run:()=>Kke(d,[n])}),a){const g=new jke;h.push({label:g.label,run:()=>Ts(this,void 0,void 0,function*(){return g.runAction(d)})})}else if(r){const g=new qke;h.push({label:g.label,run:()=>Ts(this,void 0,void 0,function*(){return g.runAction(d)})})}if(o.kind===0){const g=new Eh;h.push({label:g.label,run:()=>Ts(this,void 0,void 0,function*(){return g.runAction(d)})})}else if(o.kind===1){const g=new A_;h.push({label:g.label,run:()=>Ts(this,void 0,void 0,function*(){return g.runAction(d)})})}else if(o.kind===2){const g=new R_;h.push({label:g.label,run:()=>Ts(this,void 0,void 0,function*(){return g.runAction(d)})})}else Zke(o);const f=yield c.pick(h,{title:b("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});f&&(yield f.run())})}}tC.ID="editor.action.unicodeHighlight.showExcludeOptions";function Kke(s,e){return Ts(this,void 0,void 0,function*(){const t=s.getValue(ao.allowedCharacters);let i;typeof t=="object"&&t?i=t:i={};for(const n of e)i[String.fromCodePoint(n)]=!0;yield s.updateValue(ao.allowedCharacters,i,2)})}function Gke(s,e){var t;return Ts(this,void 0,void 0,function*(){const i=(t=s.inspect(ao.allowedLocales).user)===null||t===void 0?void 0:t.value;let n;typeof i=="object"&&i?n=Object.assign({},i):n={};for(const o of e)n[o]=!0;yield s.updateValue(ao.allowedLocales,n,2)})}function Zke(s){throw new Error(`Unexpected value: ${s}`)}we(Eh),we(A_),we(R_),we(tC),Vt(N_.ID,N_,1),gg.register(w4);var Yke=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vj=function(s,e){return function(t,i){e(t,i,s)}},Xke=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};const Hj="ignoreUnusualLineTerminators";function Qke(s,e,t){s.setModelProperty(e.uri,Hj,t)}function Jke(s,e){return s.getModelProperty(e.uri,Hj)}let iC=class extends oe{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._isPresentingDialog=!1,this._config=this._editor.getOption(125),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(125)&&(this._config=this._editor.getOption(125),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}_checkForUnusualLineTerminators(){return Xke(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||Jke(this._codeEditorService,e)===!0||this._editor.getOption(90))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let i;try{this._isPresentingDialog=!0,i=yield this._dialogService.confirm({title:b("unusualLineTerminators.title","Unusual Line Terminators"),message:b("unusualLineTerminators.message","Detected unusual line terminators"),detail:b("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`.",qr(e.uri)),primaryButton:b({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:b("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!i.confirmed){Qke(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())})}};iC.ID="editor.contrib.unusualLineTerminatorsDetector",iC=Yke([Vj(1,s0),Vj(2,zt)],iC),Vt(iC.ID,iC,1);var eLe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$j=function(s,e){return function(t,i){e(t,i,s)}},x4;const gE=new Pe("hasWordHighlights",!1);function zj(s,e,t,i){const n=s.ordered(e);return o8(n.map(o=>()=>Promise.resolve(o.provideDocumentHighlights(e,t,i)).then(void 0,un)),vs)}class Uj{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=wn(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){const i=e.getWordAtPosition(t.getPosition());return i?new R(t.startLineNumber,i.startColumn,t.startLineNumber,i.endColumn):null}isValid(e,t,i){const n=t.startLineNumber,o=t.startColumn,r=t.endColumn,a=this._getCurrentWordRange(e,t);let l=!!(this._wordRange&&this._wordRange.equalsRange(a));for(let c=0,d=i.length;!l&&c<d;c++){const u=i.getRange(c);u&&u.startLineNumber===n&&u.startColumn<=o&&u.endColumn>=r&&(l=!0)}return l}cancel(){this.result.cancel()}}class tLe extends Uj{constructor(e,t,i,n){super(e,t,i),this._providers=n}_compute(e,t,i,n){return zj(this._providers,e,t.getPosition(),n).then(o=>o||[])}}class iLe extends Uj{constructor(e,t,i){super(e,t,i),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,i,n){return ou(250,n).then(()=>{if(!t.isEmpty())return[];const o=e.getWordAtPosition(t.getPosition());return!o||o.word.length>1e3?[]:e.findMatches(o.word,!0,!1,!0,i,!1).map(a=>({range:a.range,kind:_v.Text}))})}isValid(e,t,i){const n=t.isEmpty();return this._selectionIsEmpty!==n?!1:super.isValid(e,t,i)}}function nLe(s,e,t,i){return s.has(e)?new tLe(e,t,i,s):new iLe(e,t,i)}Ol("_executeDocumentHighlights",(s,e,t)=>{const i=s.get(Ve);return zj(i.documentHighlightProvider,e,t,yt.None)});class sLe{constructor(e,t,i,n){this.toUnhook=new _e,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.linkedHighlighters=i,this._hasWordHighlights=gE.bindTo(n),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(80),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(o=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(o)})),this.toUnhook.add(e.onDidChangeModelContent(o=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(o=>{const r=this.editor.getOption(80);this.occurrencesHighlight!==r&&(this.occurrencesHighlight=r,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(R.compareRangesUsingStarts)}moveNext(){const e=this._getSortedHighlights(),i=(e.findIndex(o=>o.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[i];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);const o=this._getWord();if(o){const r=this.editor.getModel().getLineContent(n.startLineNumber);Ss(`${r}, ${i+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const e=this._getSortedHighlights(),i=(e.findIndex(o=>o.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 o=this._getWord();if(o){const r=this.editor.getModel().getLineContent(n.startLineNumber);Ss(`${r}, ${i+1} of ${e.length} for '${o.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<i){this._stopAll();return}const o=this.workerRequest&&this.workerRequest.isValid(this.model,e,this.decorations);if(this.lastCursorPositionChangeTime=new Date().getTime(),o)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();const r=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=nLe(this.providers,this.model,this.editor.getSelection(),this.editor.getOption(129)),this.workerRequest.result.then(a=>{r===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=a||[],this._beginRenderDecorations())},lt)}}_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:Txe(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations());for(const t of this.linkedHighlighters())(t==null?void 0:t.editor.getModel())===this.editor.getModel()&&(t._stopAll(),t.decorations.set(e),t._hasWordHighlights.set(t.hasDecorations()))}dispose(){this._stopAll(),this.toUnhook.dispose()}}let Mg=x4=class extends oe{static get(e){return e.getContribution(x4.ID)}constructor(e,t,i){super(),this.wordHighlighter=null,this.linkedContributions=new Set;const n=()=>{e.hasModel()&&!e.getModel().isTooLargeForTokenization()&&(this.wordHighlighter=new sLe(e,i.documentHighlightProvider,()=>wt.map(this.linkedContributions,o=>o.wordHighlighter),t))};this._register(e.onDidChangeModel(o=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}saveViewState(){return!!(this.wordHighlighter&&this.wordHighlighter.hasDecorations())}moveNext(){var e;(e=this.wordHighlighter)===null||e===void 0||e.moveNext()}moveBack(){var e;(e=this.wordHighlighter)===null||e===void 0||e.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};Mg.ID="editor.contrib.wordHighlighter",Mg=x4=eLe([$j(1,st),$j(2,Ve)],Mg);class jj extends We{constructor(e,t){super(t),this._isNext=e}run(e,t){const i=Mg.get(t);i&&(this._isNext?i.moveNext():i.moveBack())}}class oLe extends jj{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:b("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:gE,kbOpts:{kbExpr:W.editorTextFocus,primary:65,weight:100}})}}class rLe extends jj{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:b("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:gE,kbOpts:{kbExpr:W.editorTextFocus,primary:1089,weight:100}})}}class aLe extends We{constructor(){super({id:"editor.action.wordHighlight.trigger",label:b("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:gE.toNegated(),kbOpts:{kbExpr:W.editorTextFocus,primary:0,weight:100}})}run(e,t,i){const n=Mg.get(t);n&&n.restoreViewState(!0)}}Vt(Mg.ID,Mg,0),we(oLe),we(rLe),we(aLe);class pE extends In{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){if(!t.hasModel())return;const n=Wr(t.getOption(129)),o=t.getModel(),a=t.getSelections().map(l=>{const c=new ee(l.positionLineNumber,l.positionColumn),d=this._move(n,o,c,this._wordNavigationType);return this._moveTo(l,d,this._inSelectionMode)});if(o.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>Ft.fromModelSelection(l))),a.length===1){const l=new ee(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,i){return i?new He(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new He(t.lineNumber,t.column,t.lineNumber,t.column)}}class Dh extends pE{_move(e,t,i,n){return Ut.moveWordLeft(e,t,i,n)}}class Th extends pE{_move(e,t,i,n){return Ut.moveWordRight(e,t,i,n)}}class lLe extends Dh{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class cLe extends Dh{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class dLe extends Dh{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:fe.and(W.textInputFocus,(e=fe.and(sb,wx))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class uLe extends Dh{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class hLe extends Dh{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class fLe extends Dh{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:fe.and(W.textInputFocus,(e=fe.and(sb,wx))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class gLe extends Dh{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,i,n){return super._move(Wr(Pa.wordSeparators.defaultValue),t,i,n)}}class pLe extends Dh{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Wr(Pa.wordSeparators.defaultValue),t,i,n)}}class mLe extends Th{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class _Le extends Th{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:fe.and(W.textInputFocus,(e=fe.and(sb,wx))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class vLe extends Th{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class bLe extends Th{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class CLe extends Th{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:fe.and(W.textInputFocus,(e=fe.and(sb,wx))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class wLe extends Th{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class yLe extends Th{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,i,n){return super._move(Wr(Pa.wordSeparators.defaultValue),t,i,n)}}class SLe extends Th{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,i,n){return super._move(Wr(Pa.wordSeparators.defaultValue),t,i,n)}}class mE extends In{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,i){const n=e.get(ri);if(!t.hasModel())return;const o=Wr(t.getOption(129)),r=t.getModel(),a=t.getSelections(),l=t.getOption(6),c=t.getOption(11),d=n.getLanguageConfiguration(r.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),h=a.map(f=>{const g=this._delete({wordSeparators:o,model:r,selection:f,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(9),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new ss(g,"")});t.pushUndoStop(),t.executeCommands(this.id,h),t.pushUndoStop()}}class k4 extends mE{_delete(e,t){const i=Ut.deleteWordLeft(e,t);return i||new R(1,1,1,1)}}class L4 extends mE{_delete(e,t){const i=Ut.deleteWordRight(e,t);if(i)return i;const n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new R(n,o,n,o)}}class xLe extends k4{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:W.writable})}}class kLe extends k4{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:W.writable})}}class LLe extends k4{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:W.writable,kbOpts:{kbExpr:W.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class ELe extends L4{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:W.writable})}}class DLe extends L4{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:W.writable})}}class TLe extends L4{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:W.writable,kbOpts:{kbExpr:W.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class ILe extends We{constructor(){super({id:"deleteInsideWord",precondition:W.writable,label:b("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,i){if(!t.hasModel())return;const n=Wr(t.getOption(129)),o=t.getModel(),a=t.getSelections().map(l=>{const c=Ut.deleteInsideWord(n,o,l);return new ss(c,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}}ke(new lLe),ke(new cLe),ke(new dLe),ke(new uLe),ke(new hLe),ke(new fLe),ke(new mLe),ke(new _Le),ke(new vLe),ke(new bLe),ke(new CLe),ke(new wLe),ke(new gLe),ke(new pLe),ke(new yLe),ke(new SLe),ke(new xLe),ke(new kLe),ke(new LLe),ke(new ELe),ke(new DLe),ke(new TLe),we(ILe);class NLe extends mE{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:W.writable,kbOpts:{kbExpr:W.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){const i=$y.deleteWordPartLeft(e);return i||new R(1,1,1,1)}}class ALe extends mE{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:W.writable,kbOpts:{kbExpr:W.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){const i=$y.deleteWordPartRight(e);if(i)return i;const n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new R(n,o,n,o)}}class qj extends pE{_move(e,t,i,n){return $y.moveWordPartLeft(e,t,i)}}class RLe extends qj{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:W.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}At.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class OLe extends qj{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:W.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}At.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class Kj extends pE{_move(e,t,i,n){return $y.moveWordPartRight(e,t,i)}}class MLe extends Kj{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:W.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class PLe extends Kj{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:W.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}ke(new NLe),ke(new ALe),ke(new RLe),ke(new OLe),ke(new MLe),ke(new PLe);class E4 extends oe{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const e=$o.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(91);t||(this.editor.isSimpleWidget?t=new ls(b("editor.simple.readonly","Cannot edit in read-only input")):t=new ls(b("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}}E4.ID="editor.contrib.readOnlyMessageController",Vt(E4.ID,E4,2);class D4 extends oe{constructor(e){super(),this.editor=e,this.widget=null,Oa&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(90);!this.widget&&e?this.widget=new _E(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}D4.ID="editor.contrib.iPadShowKeyboard";class _E extends oe{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(ue(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(ue(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return _E.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}_E.ID="editor.contrib.ShowKeyboardWidget",Vt(D4.ID,D4,3);var FLe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Gj=function(s,e){return function(t,i){e(t,i,s)}},T4;let O_=T4=class extends oe{static get(e){return e.getContribution(T4.ID)}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(Mi.onDidChange(n=>this.stop())),this._register(this._editor.onKeyUp(n=>n.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new vE(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};O_.ID="editor.contrib.inspectTokens",O_=T4=FLe([Gj(1,fr),Gj(2,Si)],O_);class BLe extends We{constructor(){super({id:"editor.action.inspectTokens",label:$A.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){const i=O_.get(t);i==null||i.launch()}}function WLe(s){let e="";for(let t=0,i=s.length;t<i;t++){const n=s.charCodeAt(t);switch(n){case 9:e+="→";break;case 32:e+="·";break;default:e+=String.fromCharCode(n)}}return e}function VLe(s,e){const t=Mi.get(e);if(t)return t;const i=s.encodeLanguageId(e);return{getInitialState:()=>Ap,tokenize:(n,o,r)=>BI(e,r),tokenizeEncoded:(n,o,r)=>gy(i,r)}}class vE extends oe{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=VLe(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 vE._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 o=this._model.getLineContent(e.lineNumber);let r="";if(i<t.tokens1.length){const l=t.tokens1[i].offset,c=i+1<t.tokens1.length?t.tokens1[i+1].offset:o.length;r=o.substring(l,c)}Hn(this._domNode,be("h2.tm-token",void 0,WLe(r),be("span.tm-token-length",void 0,`${r.length} ${r.length===1?"char":"chars"}`))),pe(this._domNode,be("hr.tokens-inspect-separator",{style:"clear:both"}));const a=(n<<1)+1<t.tokens2.length?this._decodeMetadata(t.tokens2[(n<<1)+1]):null;pe(this._domNode,be("table.tm-metadata-table",void 0,be("tbody",void 0,be("tr",void 0,be("td.tm-metadata-key",void 0,"language"),be("td.tm-metadata-value",void 0,`${a?a.languageId:"-?-"}`)),be("tr",void 0,be("td.tm-metadata-key",void 0,"token type"),be("td.tm-metadata-value",void 0,`${a?this._tokenTypeToString(a.tokenType):"-?-"}`)),be("tr",void 0,be("td.tm-metadata-key",void 0,"font style"),be("td.tm-metadata-value",void 0,`${a?this._fontStyleToString(a.fontStyle):"-?-"}`)),be("tr",void 0,be("td.tm-metadata-key",void 0,"foreground"),be("td.tm-metadata-value",void 0,`${a?le.Format.CSS.formatHex(a.foreground):"-?-"}`)),be("tr",void 0,be("td.tm-metadata-key",void 0,"background"),be("td.tm-metadata-value",void 0,`${a?le.Format.CSS.formatHex(a.background):"-?-"}`))))),pe(this._domNode,be("hr.tokens-inspect-separator")),i<t.tokens1.length&&pe(this._domNode,be("span.tm-token-type",void 0,t.tokens1[i].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){const t=Mi.getColorMap(),i=is.getLanguageId(e),n=is.getTokenType(e),o=is.getFontStyle(e),r=is.getForeground(e),a=is.getBackground(e);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(i),tokenType:n,fontStyle:o,foreground:t[r],background:t[a]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return e&1&&(t+="italic "),e&2&&(t+="bold "),e&4&&(t+="underline "),e&8&&(t+="strikethrough "),t.length===0&&(t="---"),t}_getTokensAtLine(e){const t=this._getStateBeforeLine(e),i=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t),n=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(e),!0,t);return{startState:t,tokens1:i.tokens,tokens2:n.tokens,endState:i.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let i=1;i<e;i++)t=this._tokenizationSupport.tokenize(this._model.getLineContent(i),!0,t).endState;return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}vE._ID="editor.contrib.inspectTokensWidget",Vt(O_.ID,O_,4),we(BLe);var HLe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Zj=function(s,e){return function(t,i){e(t,i,s)}},nC;let bE=nC=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=Ai.as(Gf.Quickaccess)}provide(e){const t=new _e;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(nC.PREFIX.length));n&&n.prefix&&n.prefix!==nC.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(i=>i.prefix!==nC.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((t,i)=>t.prefix.localeCompare(i.prefix)).flatMap(t=>this.createPicks(t))}createPicks(e){return e.helpEntries.map(t=>{const i=t.prefix||e.prefix,n=i||"…";return{prefix:i,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:b("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}})}};bE.PREFIX="?",bE=nC=HLe([Zj(0,ol),Zj(1,oi)],bE),Ai.as(Gf.Quickaccess).registerQuickAccessProvider({ctor:bE,prefix:"",helpEntries:[{description:zA.helpQuickAccessActionLabel}]});class Yj{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var i;const n=new _e;e.canAcceptInBackground=!!(!((i=this.options)===null||i===void 0)&&i.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const o=n.add(new Bn);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{o.value=void 0,o.value=this.doProvide(e,t)})),n}doProvide(e,t){var i;const n=new _e,o=this.activeTextEditorControl;if(o&&this.canProvideWithTextEditor(o)){const r={editor:o},a=CH(o);if(a){let l=(i=o.saveViewState())!==null&&i!==void 0?i:void 0;n.add(a.onDidChangeCursorPosition(()=>{var c;l=(c=o.saveViewState())!==null&&c!==void 0?c:void 0})),r.restoreViewState=()=>{l&&o===this.activeTextEditorControl&&o.restoreViewState(l)},n.add(Gd(t.onCancellationRequested)(()=>{var c;return(c=r.restoreViewState)===null||c===void 0?void 0:c.call(r)}))}n.add(nt(()=>this.clearDecorations(o))),n.add(this.provideWithTextEditor(r,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();const i=e.getModel();i&&"getLineContent"in i&&vu(`${i.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return bH(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 o=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Pi(c6),position:rr.Full}}}],[r,a]=i.deltaDecorations(n,o);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 CE extends Yj{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=b("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,oe.None}provideWithTextEditor(e,t,i){const n=e.editor,o=new _e;o.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(CE.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(),o.add(t.onDidChangeValue(()=>r()));const a=CH(n);return a&&a.getOptions().get(67).renderType===2&&(a.updateOptions({lineNumbers:"on"}),o.add(nt(()=>a.updateOptions({lineNumbers:"relative"})))),o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const i=t.split(/,|:|#/).map(o=>parseInt(o,10)).filter(o=>!isNaN(o)),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)?b("gotoLineColumnLabel","Go to line {0} and character {1}.",t,i):b("gotoLineLabel","Go to line {0}.",t);const n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?b("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):b("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 o={lineNumber:t,column:i};return n.validatePosition(o).equals(o)}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}}CE.PREFIX=":";var $Le=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zLe=function(s,e){return function(t,i){e(t,i,s)}};let sC=class extends CE{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=Me.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};sC=$Le([zLe(0,zt)],sC);let I4=class jZ extends We{constructor(){super({id:jZ.ID,label:HS.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:W.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(ol).quickAccess.show(sC.PREFIX)}};I4.ID="editor.action.gotoLine",we(I4),Ai.as(Gf.Quickaccess).registerQuickAccessProvider({ctor:sC,prefix:sC.PREFIX,helpEntries:[{description:HS.gotoLineActionLabel,commandId:I4.ID}]});const Xj=[void 0,[]];function N4(s,e,t=0,i=0){const n=e;return n.values&&n.values.length>1?ULe(s,n.values,t,i):Qj(s,e,t,i)}function ULe(s,e,t,i){let n=0;const o=[];for(const r of e){const[a,l]=Qj(s,r,t,i);if(typeof a!="number")return Xj;n+=a,o.push(...l)}return[n,jLe(o)]}function Qj(s,e,t,i){const n=Mf(e.original,e.originalLowercase,t,s,s.toLowerCase(),i,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],p0(n)]:Xj}function jLe(s){const e=s.sort((n,o)=>n.start-o.start),t=[];let i;for(const n of e)!i||!qLe(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 qLe(s,e){return!(s.end<e.start||e.end<s.start)}function Jj(s){return s.startsWith('"')&&s.endsWith('"')}const eq=" ";function A4(s){typeof s!="string"&&(s="");const e=s.toLowerCase(),{pathNormalized:t,normalized:i,normalizedLowercase:n}=tq(s),o=t.indexOf(Ba)>=0,r=Jj(s);let a;const l=s.split(eq);if(l.length>1)for(const c of l){const d=Jj(c),{pathNormalized:u,normalized:h,normalizedLowercase:f}=tq(c);h&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:u,normalized:h,normalizedLowercase:f,expectContiguousMatch:d}))}return{original:s,originalLowercase:e,pathNormalized:t,normalized:i,normalizedLowercase:n,values:a,containsPathSeparator:o,expectContiguousMatch:r}}function tq(s){let e;Qn?e=s.replace(/\//g,Ba):e=s.replace(/\\/g,Ba);const t=YX(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function iq(s){return Array.isArray(s)?A4(s.map(e=>e.original).join(eq)):A4(s.original)}var KLe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},nq=function(s,e){return function(t,i){e(t,i,s)}},oC=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},M_;let Sc=M_=class extends Yj{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,b("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),oe.None}provideWithTextEditor(e,t,i){const n=e.editor,o=this.getModel(n);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,i):this.doProvideWithoutEditorSymbols(e,o,t,i):oe.None}doProvideWithoutEditorSymbols(e,t,i,n){const o=new _e;return this.provideLabelPick(i,b("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),oC(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,o))||n.isCancellationRequested||o.add(this.doProvideWithEditorSymbols(e,t,i,n))}),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return oC(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;const i=new qw,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),i.complete(!0))}));return t.add(nt(()=>i.complete(!1))),i.p})}doProvideWithEditorSymbols(e,t,i,n){var o;const r=e.editor,a=new _e;a.add(i.onDidAccept(u=>{const[h]=i.selectedItems;h&&h.range&&(this.gotoLocation(e,{range:h.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=>oC(this,void 0,void 0,function*(){c==null||c.dispose(!0),i.busy=!1,c=new en(n),i.busy=!0;try{const h=A4(i.value.substr(M_.PREFIX.length).trim()),f=yield this.doGetSymbolPicks(l,h,void 0,c.token);if(n.isCancellationRequested)return;if(f.length>0){if(i.items=f,u&&h.original.length===0){const g=uy(f,p=>!!(p.type!=="separator"&&p.range&&R.containsPosition(p.range.decoration,u)));g&&(i.activeItems=[g])}}else h.original.length>0?this.provideLabelPick(i,b("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(i,b("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(i.busy=!1)}});return a.add(i.onDidChangeValue(()=>d(void 0))),d((o=r.getSelection())===null||o===void 0?void 0:o.getPosition()),a.add(i.onDidChangeActive(()=>{const[u]=i.activeItems;u&&u.range&&(r.revealRangeInCenter(u.range.selection,0),this.addDecorations(r,u.range.decoration))})),a}doGetSymbolPicks(e,t,i,n){var o,r;return oC(this,void 0,void 0,function*(){const a=yield e;if(n.isCancellationRequested)return[];const l=t.original.indexOf(M_.SCOPE_PREFIX)===0,c=l?1:0;let d,u;t.values&&t.values.length>1?(d=iq(t.values[0]),u=iq(t.values.slice(1))):d=t;let h;const f=(r=(o=this.options)===null||o===void 0?void 0:o.openSideBySideDirection)===null||r===void 0?void 0:r.call(o);f&&(h=[{iconClass:f==="right"?Ge.asClassName(xe.splitHorizontal):Ge.asClassName(xe.splitVertical),tooltip:f==="right"?b("openToSide","Open to the Side"):b("openToBottom","Open to the Bottom")}]);const g=[];for(let m=0;m<a.length;m++){const _=a[m],C=GX(_.name),w=`$(${pw.toIcon(_.kind).id}) ${C}`,y=w.length-C.length;let x=_.containerName;i!=null&&i.extraContainerLabel&&(x?x=`${i.extraContainerLabel} • ${x}`:x=i.extraContainerLabel);let S,k,D,T;if(t.original.length>c){let E=!1;if(d!==t&&([S,k]=N4(w,Object.assign(Object.assign({},t),{values:void 0}),c,y),typeof S=="number"&&(E=!0)),typeof S!="number"&&([S,k]=N4(w,d,c,y),typeof S!="number"))continue;if(!E&&u){if(x&&u.original.length>0&&([D,T]=N4(x,u)),typeof D!="number")continue;typeof S=="number"&&(S+=D)}}const L=_.tags&&_.tags.indexOf(1)>=0;g.push({index:m,kind:_.kind,score:S,label:w,ariaLabel:UX(_.name,_.kind),description:x,highlights:L?void 0:{label:k,description:T},range:{selection:R.collapseToStart(_.selectionRange),decoration:_.range},strikethrough:L,buttons:h})}const p=g.sort((m,_)=>l?this.compareByKindAndScore(m,_):this.compareByScore(m,_));let v=[];if(l){let w=function(){_&&typeof m=="number"&&C>0&&(_.label=qh(O4[m]||R4,C))},m,_,C=0;for(const y of p)m!==y.kind?(w(),m=y.kind,C=1,_={type:"separator"},v.push(_)):C++,v.push(y);w()}else p.length>0&&(v=[{label:b("symbols","symbols ({0})",g.length),type:"separator"},...p]);return v})}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.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const i=O4[e.kind]||R4,n=O4[t.kind]||R4,o=i.localeCompare(n);return o===0?this.compareByScore(e,t):o}getDocumentSymbols(e,t){return oC(this,void 0,void 0,function*(){const i=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:i.asListOfDocumentSymbols()})}};Sc.PREFIX="@",Sc.SCOPE_PREFIX=":",Sc.PREFIX_BY_CATEGORY=`${M_.PREFIX}${M_.SCOPE_PREFIX}`,Sc=M_=KLe([nq(0,Ve),nq(1,wL)],Sc);const R4=b("property","properties ({0})"),O4={5:b("method","methods ({0})"),11:b("function","functions ({0})"),8:b("_constructor","constructors ({0})"),12:b("variable","variables ({0})"),4:b("class","classes ({0})"),22:b("struct","structs ({0})"),23:b("event","events ({0})"),24:b("operator","operators ({0})"),10:b("interface","interfaces ({0})"),2:b("namespace","namespaces ({0})"),3:b("package","packages ({0})"),25:b("typeParameter","type parameters ({0})"),1:b("modules","modules ({0})"),6:b("property","properties ({0})"),9:b("enum","enumerations ({0})"),21:b("enumMember","enumeration members ({0})"),14:b("string","strings ({0})"),0:b("file","files ({0})"),17:b("array","arrays ({0})"),15:b("number","numbers ({0})"),16:b("boolean","booleans ({0})"),18:b("object","objects ({0})"),19:b("key","keys ({0})"),7:b("field","fields ({0})"),13:b("constant","constants ({0})")};var GLe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},M4=function(s,e){return function(t,i){e(t,i,s)}};let P4=class extends Sc{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=Me.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};P4=GLe([M4(0,zt),M4(1,Ve),M4(2,wL)],P4);class rC extends We{constructor(){super({id:rC.ID,label:d0.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:W.hasDocumentSymbolProvider,kbOpts:{kbExpr:W.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(ol).quickAccess.show(Sc.PREFIX,{itemActivation:sl.NONE})}}rC.ID="editor.action.quickOutline",we(rC),Ai.as(Gf.Quickaccess).registerQuickAccessProvider({ctor:P4,prefix:Sc.PREFIX,helpEntries:[{description:d0.quickOutlineActionLabel,prefix:Sc.PREFIX,commandId:rC.ID},{description:d0.quickOutlineByCategoryActionLabel,prefix:Sc.PREFIX_BY_CATEGORY}]});function F4(s,e){return e&&(s.stack||s.stacktrace)?b("stackTrace.format","{0}: {1}",oq(s),sq(s.stack)||sq(s.stacktrace)):oq(s)}function sq(s){return Array.isArray(s)?s.join(`
|
|
1124
|
-
`):s}function oq(s){return s.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${s.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof s.code=="string"&&typeof s.errno=="number"&&typeof s.syscall=="string"?b("nodeExceptionMessage","A system error occurred ({0})",s.message):s.message||b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function rq(s=null,e=!1){if(!s)return b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(s)){const t=Sl(s),i=rq(t[0],e);return t.length>1?b("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Hs(s))return s;if(s.detail){const t=s.detail;if(t.error)return F4(t.error,e);if(t.exception)return F4(t.exception,e)}return s.stack?F4(s,e):s.message?s.message:b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function ZLe(s){var e;const t=new Map;for(const i of s)t.set(i,((e=t.get(i))!==null&&e!==void 0?e:0)+1);return t}class aC{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),n=new Map,o=[];for(const[r,a]of this.documents){if(t.isCancellationRequested)return[];for(const l of a.chunks){const c=this.computeSimilarityScore(l,i,n);c>0&&o.push({key:r,score:c})}}return o}static termFrequencies(e){return ZLe(aC.splitTerms(e))}static*splitTerms(e){const t=i=>i.toLowerCase();for(const[i]of e.matchAll(new RegExp("\\b\\p{Letter}[\\p{Letter}\\d]{2,}\\b","gu"))){yield t(i);const n=i.split(new RegExp("(?<=[a-z])(?=[A-Z])","g"));if(n.length>1)for(const o of n)o.length>2&&new RegExp("\\p{Letter}{3,}","gu").test(o)&&(yield t(o))}}updateDocuments(e){var t;for(const{key:i}of e)this.deleteDocument(i);for(const i of e){const n=[];for(const o of i.textChunks){const r=aC.termFrequencies(o);for(const a of r.keys())this.chunkOccurrences.set(a,((t=this.chunkOccurrences.get(a))!==null&&t!==void 0?t:0)+1);n.push({text:o,tf:r})}this.chunkCount+=n.length,this.documents.set(i.key,{chunks:n})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const i of t.chunks)for(const n of i.tf.keys()){const o=this.chunkOccurrences.get(n);if(typeof o=="number"){const r=o-1;r<=0?this.chunkOccurrences.delete(n):this.chunkOccurrences.set(n,r)}}}}computeSimilarityScore(e,t,i){let n=0;for(const[o,r]of Object.entries(t)){const a=e.tf.get(o);if(!a)continue;let l=i.get(o);typeof l!="number"&&(l=this.computeIdf(o),i.set(o,l));const c=a*l;n+=c*r}return n}computeEmbedding(e){const t=aC.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;const i=(t=this.chunkOccurrences.get(e))!==null&&t!==void 0?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){const t=Object.create(null);for(const[i,n]of e){const o=this.computeIdf(i);o>0&&(t[i]=n*o)}return t}}function YLe(s){var e,t;const i=s.slice(0);i.sort((o,r)=>r.score-o.score);const n=(t=(e=i[0])===null||e===void 0?void 0:e.score)!==null&&t!==void 0?t:0;if(n>0)for(const o of i)o.score/=n;return i}var lC=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},P_;(function(s){s[s.NO_ACTION=0]="NO_ACTION",s[s.CLOSE_PICKER=1]="CLOSE_PICKER",s[s.REFRESH_PICKER=2]="REFRESH_PICKER",s[s.REMOVE_ITEM=3]="REMOVE_ITEM"})(P_||(P_={}));function B4(s){const e=s;return Array.isArray(e.items)}function aq(s){const e=s;return!!e.picks&&e.additionalPicks instanceof Promise}class XLe extends oe{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){var n;const o=new _e;e.canAcceptInBackground=!!(!((n=this.options)===null||n===void 0)&&n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let r;const a=o.add(new Bn),l=()=>lC(this,void 0,void 0,function*(){const c=a.value=new _e;r==null||r.dispose(!0),e.busy=!1,r=new en(t);const d=r.token,u=e.value.substr(this.prefix.length).trim(),h=this._getPicks(u,c,d,i),f=(p,v)=>{var m;let _,C;if(B4(p)?(_=p.items,C=p.active):_=p,_.length===0){if(v)return!1;(u.length>0||e.hideInput)&&(!((m=this.options)===null||m===void 0)&&m.noResultsPick)&&(uv(this.options.noResultsPick)?_=[this.options.noResultsPick(u)]:_=[this.options.noResultsPick])}return e.items=_,C&&(e.activeItems=[C]),!0},g=p=>lC(this,void 0,void 0,function*(){let v=!1,m=!1;yield Promise.all([lC(this,void 0,void 0,function*(){typeof p.mergeDelay=="number"&&(yield ou(p.mergeDelay),d.isCancellationRequested)||m||(v=f(p.picks,!0))}),lC(this,void 0,void 0,function*(){e.busy=!0;try{const _=yield p.additionalPicks;if(d.isCancellationRequested)return;let C,w;B4(p.picks)?(C=p.picks.items,w=p.picks.active):C=p.picks;let y,x;if(B4(_)?(y=_.items,x=_.active):y=_,y.length>0||!v){let S;if(!w&&!x){const k=e.activeItems[0];k&&C.indexOf(k)!==-1&&(S=k)}f({items:[...C,...y],active:w||x||S})}}finally{d.isCancellationRequested||(e.busy=!1),m=!0}})])});if(h!==null)if(aq(h))yield g(h);else if(!(h instanceof Promise))f(h);else{e.busy=!0;try{const p=yield h;if(d.isCancellationRequested)return;aq(p)?yield g(p):f(p)}finally{d.isCancellationRequested||(e.busy=!1)}}});return o.add(e.onDidChangeValue(()=>l())),l(),o.add(e.onDidAccept(c=>{const[d]=e.selectedItems;typeof(d==null?void 0:d.accept)=="function"&&(c.inBackground||e.hide(),d.accept(e.keyMods,c))})),o.add(e.onDidTriggerItemButton(({button:c,item:d})=>lC(this,void 0,void 0,function*(){var u,h;if(typeof d.trigger=="function"){const f=(h=(u=d.buttons)===null||u===void 0?void 0:u.indexOf(c))!==null&&h!==void 0?h:-1;if(f>=0){const g=d.trigger(f,e.keyMods),p=typeof g=="number"?g:yield g;if(t.isCancellationRequested)return;switch(p){case P_.NO_ACTION:break;case P_.CLOSE_PICKER:e.hide();break;case P_.REFRESH_PICKER:l();break;case P_.REMOVE_ITEM:{const v=e.items.indexOf(d);if(v!==-1){const m=e.items.slice(),_=m.splice(v,1),C=e.activeItems.filter(y=>y!==_[0]),w=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=m,C&&(e.activeItems=C),e.keepScrollPosition=w}break}}}}}))),o}}var lq=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Pg=function(s,e){return function(t,i){e(t,i,s)}},W4=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},Fg,En;let Bg=Fg=class extends XLe{constructor(e,t,i,n,o,r){super(Fg.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=o,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(Wg)),this.options=e}_getPicks(e,t,i,n){var o,r,a,l;return W4(this,void 0,void 0,function*(){const c=yield this.getCommandPicks(i);if(i.isCancellationRequested)return[];const d=Gd(()=>{const m=new aC;m.updateDocuments(c.map(C=>({key:C.commandId,textChunks:[C.label+(C.commandAlias?` ${C.commandAlias}`:"")]})));const _=m.calculateScores(e,i);return YLe(_).filter(C=>C.score>Fg.TFIDF_THRESHOLD).slice(0,Fg.TFIDF_MAX_RESULTS)}),u=[];for(const m of c){const _=(o=Fg.WORD_FILTER(e,m.label))!==null&&o!==void 0?o:void 0,C=m.commandAlias&&(r=Fg.WORD_FILTER(e,m.commandAlias))!==null&&r!==void 0?r:void 0;if(_||C)m.highlights={label:_,detail:this.options.showAlias?C:void 0},u.push(m);else if(e===m.commandId)u.push(m);else if(e.length>=3){const w=d();if(i.isCancellationRequested)return[];const y=w.find(x=>x.key===m.commandId);y&&(m.tfIdfScore=y.score,u.push(m))}}const h=new Map;for(const m of u){const _=h.get(m.label);_?(m.description=m.commandId,_.description=_.commandId):h.set(m.label,m)}u.sort((m,_)=>{if(m.tfIdfScore&&_.tfIdfScore)return m.tfIdfScore===_.tfIdfScore?m.label.localeCompare(_.label):_.tfIdfScore-m.tfIdfScore;if(m.tfIdfScore)return 1;if(_.tfIdfScore)return-1;const C=this.commandsHistory.peek(m.commandId),w=this.commandsHistory.peek(_.commandId);if(C&&w)return C>w?-1:1;if(C)return-1;if(w)return 1;if(this.options.suggestedCommandIds){const y=this.options.suggestedCommandIds.has(m.commandId),x=this.options.suggestedCommandIds.has(_.commandId);if(y&&x)return 0;if(y)return-1;if(x)return 1}return m.label.localeCompare(_.label)});const f=[];let g=!1,p=!0,v=!!this.options.suggestedCommandIds;for(let m=0;m<u.length;m++){const _=u[m];m===0&&this.commandsHistory.peek(_.commandId)&&(f.push({type:"separator",label:b("recentlyUsed","recently used")}),g=!0),p&&_.tfIdfScore!==void 0&&(f.push({type:"separator",label:b("suggested","similar commands")}),p=!1),v&&_.tfIdfScore===void 0&&!this.commandsHistory.peek(_.commandId)&&(!((a=this.options.suggestedCommandIds)===null||a===void 0)&&a.has(_.commandId))&&(f.push({type:"separator",label:b("commonlyUsed","commonly used")}),g=!0,v=!1),g&&_.tfIdfScore===void 0&&!this.commandsHistory.peek(_.commandId)&&!(!((l=this.options.suggestedCommandIds)===null||l===void 0)&&l.has(_.commandId))&&(f.push({type:"separator",label:b("morecCommands","other commands")}),g=!1),f.push(this.toCommandPick(_,n))}return this.hasAdditionalCommandPicks(e,i)?{picks:f,additionalPicks:W4(this,void 0,void 0,function*(){var m;const _=yield this.getAdditionalCommandPicks(c,u,e,i);if(i.isCancellationRequested)return[];const C=_.map(w=>this.toCommandPick(w,n));return p&&((m=C[0])===null||m===void 0?void 0:m.type)!=="separator"&&C.unshift({type:"separator",label:b("suggested","similar commands")}),C})}:f})}toCommandPick(e,t){if(e.type==="separator")return e;const i=this.keybindingService.lookupKeybinding(e.commandId),n=i?b("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return Object.assign(Object.assign({},e),{ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:()=>W4(this,void 0,void 0,function*(){var o,r;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:(o=t==null?void 0:t.from)!==null&&o!==void 0?o:"quick open"});try{!((r=e.args)===null||r===void 0)&&r.length?yield this.commandService.executeCommand(e.commandId,...e.args):yield this.commandService.executeCommand(e.commandId)}catch(a){Fa(a)||this.dialogService.error(b("canNotRun","Command '{0}' resulted in an error",e.label),rq(a))}})})}};Bg.PREFIX=">",Bg.TFIDF_THRESHOLD=.5,Bg.TFIDF_MAX_RESULTS=5,Bg.WORD_FILTER=GA(g0,eue,O7),Bg=Fg=lq([Pg(1,Je),Pg(2,oi),Pg(3,Hi),Pg(4,nr),Pg(5,s0)],Bg);let Wg=En=class extends oe{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(e=>this.updateConfiguration(e)))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=En.getConfiguredCommandHistoryLength(this.configurationService),En.cache&&En.cache.limit!==this.configuredCommandsHistoryLength&&(En.cache.limit=this.configuredCommandsHistoryLength,En.saveState(this.storageService)))}load(){const e=this.storageService.get(En.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch{}const i=En.cache=new du(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((o,r)=>o.value-r.value),n.forEach(o=>i.set(o.key,o.value))}En.counter=this.storageService.getNumber(En.PREF_KEY_COUNTER,0,En.counter)}push(e){En.cache&&(En.cache.set(e,En.counter++),En.saveState(this.storageService))}peek(e){var t;return(t=En.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!En.cache)return;const t={usesLRU:!0,entries:[]};En.cache.forEach((i,n)=>t.entries.push({key:n,value:i})),e.store(En.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(En.PREF_KEY_COUNTER,En.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,i;const o=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof o=="number"?o:En.DEFAULT_COMMANDS_HISTORY_LENGTH}};Wg.DEFAULT_COMMANDS_HISTORY_LENGTH=50,Wg.PREF_KEY_CACHE="commandPalette.mru.cache",Wg.PREF_KEY_COUNTER="commandPalette.mru.counter",Wg.counter=1,Wg=En=lq([Pg(0,wa),Pg(1,Et)],Wg);class QLe extends Bg{constructor(e,t,i,n,o,r){super(e,t,i,n,o,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:sR(i.label)||i.id});return t}}var JLe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},F_=function(s,e){return function(t,i){e(t,i,s)}},cq=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};let cC=class extends QLe{get activeTextEditorControl(){var e;return(e=this.codeEditorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}constructor(e,t,i,n,o,r){super({showAlias:!1},e,i,n,o,r),this.codeEditorService=t}getCommandPicks(){return cq(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}hasAdditionalCommandPicks(){return!1}getAdditionalCommandPicks(){return cq(this,void 0,void 0,function*(){return[]})}};cC=JLe([F_(0,Je),F_(1,zt),F_(2,oi),F_(3,Hi),F_(4,nr),F_(5,s0)],cC);class dC extends We{constructor(){super({id:dC.ID,label:$S.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:W.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(ol).quickAccess.show(cC.PREFIX)}}dC.ID="editor.action.quickCommand",we(dC),Ai.as(Gf.Quickaccess).registerQuickAccessProvider({ctor:cC,prefix:cC.PREFIX,helpEntries:[{description:$S.quickCommandHelp,commandId:dC.ID}]});var eEe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},B_=function(s,e){return function(t,i){e(t,i,s)}};let V4=class extends sh{constructor(e,t,i,n,o,r,a){super(!0,e,t,i,n,o,r,a)}};V4=eEe([B_(1,st),B_(2,zt),B_(3,rn),B_(4,Je),B_(5,wa),B_(6,Et)],V4),Vt(sh.ID,V4,4);class tEe extends We{constructor(){super({id:"editor.action.toggleHighContrast",label:UA.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(fr),n=i.getColorTheme();Qa(n.type)?(i.setTheme(this._originalThemeName||(qp(n.type)?Wm:vd)),this._originalThemeName=null):(i.setTheme(qp(n.type)?Yf:Xf),this._originalThemeName=n.themeName)}}we(tEe);function iEe(s){return new Worker("/assets/json.worker-iFqrrWyR.js",{name:s==null?void 0:s.name})}self.MonacoEnvironment={getWorker(){return new iEe}};const nEe={name:"PaasCodeEditor",props:{modelValue:{default:""},height:{default:400},scrollEnd:{default:!1},config:{}},setup(s,{emit:e}){let t;const{proxy:i}=ie.getCurrentInstance();return ie.watch(()=>s.modelValue,n=>{n!==(t==null?void 0:t.getValue())&&t.setValue(n)}),ie.onMounted(()=>{t=_O.create(i.$refs.editContainer,{value:s.modelValue,...s.config}),t.onDidChangeModelContent(()=>{const n=t==null?void 0:t.getValue();if(e("update:modelValue",n),s.scrollEnd){var o=t.getModel().getLineCount();console.log(o),t.revealLine(o,_O.ScrollType.Immediate)}}),window.addEventListener("resize",function(){t.layout()})}),{}}};function sEe(s,e,t,i,n,o){return ie.openBlock(),ie.createElementBlock("div",{ref:"editContainer",style:ie.normalizeStyle("width: 100%;height:"+this.height+"px;")},null,4)}const oEe=dn(nEe,[["render",sEe]]),rEe={name:"PaasDate",props:{multiple:{default:!1},disabled:{default:!1},modelValue:"",format:{default:"YYYY-MM-DD"},type:{default:"date"}},data(){return{}},methods:{change(s){this.$emit("update:modelValue",s)}}};function aEe(s,e,t,i,n,o){const r=ie.resolveComponent("DatePicker");return ie.openBlock(),ie.createBlock(r,{modelValue:t.modelValue,format:t.format,onChange:o.change,disabled:t.disabled,type:t.type},null,8,["modelValue","format","onChange","disabled","type"])}const lEe=dn(rEe,[["render",aEe]]),cEe={name:"PaasIndexBar",computed:{current(){return this.$store.menus.current},menuCache(){return this.$store.menus.cache}},data(){return{selected:"",opened:!1,titles:[{title:this.$store.menus.title}]}},methods:{refresh(){this.$bus.emit("ReloadData")},upClick(){console.log(this.menuCache);let s=this.menuCache.findIndex(n=>n.url==this.current);var e=this.menuCache[s-1];if(e){var t=e.url,i=e.title;this.$store.setCurrent(t),this.$store.setTitle(i),this.$router.push(t)}},downClick(){let s=this.menuCache.findIndex(n=>n.url==this.current);var e=this.menuCache[s+1];if(e){var t=e.url,i=e.title;this.$store.setCurrent(t),this.$store.setTitle(i),this.$router.push(t)}},rightMenu(){this.opened=!0},tabChange(s){s&&(this.$store.setCurrent(url),this.$store.setTitle(title),this.$router.push(s.url))},closeTab(s){console.log(s)}}},dEe={class:"h-panel-bar h-panel-no-border"},uEe={class:"h-panel h-panel-no-border"},hEe=ie.createElementVNode("div",{class:"h-panel-bar"},[ie.createElementVNode("span",{class:"h-panel-title"},"历史记录")],-1),fEe={class:"h-panel-body"};function gEe(s,e,t,i,n,o){const r=ie.resolveComponent("Breadcrumb"),a=ie.resolveComponent("Tabs"),l=ie.resolveComponent("Modal");return ie.openBlock(),ie.createElementBlock("div",dEe,[ie.createVNode(r,{datas:n.titles},null,8,["datas"]),ie.createVNode(l,{modelValue:n.opened,"onUpdate:modelValue":e[1]||(e[1]=c=>n.opened=c),type:"drawer-right",hasMask:!0},{default:ie.withCtx(()=>[ie.createElementVNode("div",uEe,[hEe,ie.createElementVNode("div",fEe,[ie.withDirectives(ie.createVNode(a,{datas:o.menuCache,"class-name":"h-tabs-menu",modelValue:n.selected,"onUpdate:modelValue":e[0]||(e[0]=c=>n.selected=c),onChange:o.tabChange,keyName:"url"},null,8,["datas","modelValue","onChange"]),[[ie.vShow,o.menuCache.length>0]])])])]),_:1},8,["modelValue"])])}const pEe=dn(cEe,[["render",gEe]]),mEe={name:"PaasMenu",props:{url:"",disabled:{default:!1},value:"",format:{default:"YYYY-MM-DD"},type:{default:"date"}},computed:{siderCollapsed(){return this.$store.menus.siderCollapsed},current(){return this.$store.menus.current},data(){return this.$store.menus.data}},mounted(){this.$store.loginFlag&&this.data.length==0&&this.$post(this.url).then(s=>{this.initSearch(s.data.data),this.$store.setSearchData(this.searchData),this.$store.setMenuData(s.data.data)})},updated(){this.$refs.menus.select(this.current)},data(){return{searchData:[]}},watch:{$route(){let s=this.$route.path;this.$store.menus.current==s&&this.$refs.menus.select(s)}},methods:{menuSelect(s){this.$store.setCurrent(s.key),this.$store.setTitle(s.title),this.$store.setMenuId(s.id),this.$router.push(s.key),this.$store.setMenuCache({url:s.key,title:s.title})},initSearch(s){s.forEach(e=>{e.children.length>0?(this.searchData.push({label:e.title,isLabel:!0}),this.initSearch(e.children)):this.searchData.push({value:e.key,label:e.title})})}}};function _Ee(s,e,t,i,n,o){const r=ie.resolveComponent("Menu");return ie.openBlock(),ie.createBlock(r,{ref:"menus",className:"h-menu-white",datas:o.data,inlineCollapsed:o.siderCollapsed,onSelect:o.menuSelect},null,8,["datas","inlineCollapsed","onSelect"])}const vEe=dn(mEe,[["render",_Ee]]),bEe={name:"PaasPageSelect",props:{multiple:{default:!1},disabled:{default:!1},modelValue:{},url:"",vars:{}},computed:{action(){return this.$store.forms.action}},mounted(){this.modelValue&&(this.modelValue instanceof String&&this.modelValue.indexOf(",")!=-1&&(this.modelValue=this.modelValue.split(",")),this.multiple&&this.modelValue instanceof Array?this.selected=this.modelValue:this.selected=[this.modelValue]),this.action!="edit"&&this.action!="see"&&this.loadData()},watch:{vars:{deep:!0,handler(s){s&&(this.selected=[],this.filter="",this.initFlag=!1,this.loadData())}},modelValue:{deep:!0,handler(s){s&&(s instanceof String&&s.indexOf(",")!=-1&&(s=s.split(",")),this.multiple&&s instanceof Array?this.selected=s:this.selected=[this.modelValue],this.initFlag&&(this.initFlag=!1,this.loadData()))}}},data(){return{initFlag:!0,page:1,size:1e3,data:[],selected:[],filter:""}},methods:{searchInput(s){s.length<1||this.search(s)},search(s){this.current=1,this.loadData()},input(s){this.selected=[],this.multiple&&s instanceof Array&&(this.selected=s),this.$emit("update:modelValue",s),this.$emit("input",s)},change(s){let e=new Array;if(this.multiple)for(let t=0;t<s.length;t++)e.push(s[t].value);else s?e=s.value:e="";this.$emit("update:modelValue",e),this.$emit("change",s)},loadData(){this.selected&&this.selected.length>1&&(this.size=200);let s={page:{current:this.page,size:this.size+this.selected.length},label:this.filter,value:this.filter,vars:this.vars,selected:this.selected};this.$post(this.url,s).then(e=>{let t=e.data.data;t&&(this.data=t.rows)})},up(){this.page>1&&(this.page--,this.loadData())},down(){this.page++,this.loadData()}}},CEe={class:"gray-color"};function wEe(s,e,t,i,n,o){const r=ie.resolveComponent("h-search"),a=ie.resolveComponent("Button"),l=ie.resolveComponent("Select");return ie.openBlock(),ie.createBlock(l,{multiple:t.multiple,disabled:t.disabled,"model-value":t.modelValue,datas:n.data,onChange:o.change,onInput:o.input},{top:ie.withCtx(()=>[ie.createVNode(r,{onSearch:o.search,onInput:o.searchInput,block:"",modelValue:n.filter,"onUpdate:modelValue":e[0]||(e[0]=c=>n.filter=c),height:30,placeholder:"搜索"},null,8,["onSearch","onInput","modelValue"])]),bottom:ie.withCtx(()=>[ie.createVNode(a,{icon:"h-icon-left","no-border":!0,onClick:o.up},null,8,["onClick"]),ie.createElementVNode("span",CEe,ie.toDisplayString(n.page),1),ie.createVNode(a,{icon:"h-icon-right","no-border":!0,onClick:o.down},null,8,["onClick"])]),_:1},8,["multiple","disabled","model-value","datas","onChange","onInput"])}const yEe=dn(bEe,[["render",wEe]]),SEe={name:"PaasPageTable",props:{showButton:{default:1},checkbox:{default:!1},height:{default:0},radio:{default:!1},border:{default:!0},stripe:{default:!1},params:{},columns:{default:[]},id:{default:"id"},path:"",module:""},computed:{queryData(){return this.$store.queryData},current(){return this.$store.menus.current},menuData(){return this.$store.menus.data},menuId(){return this.$store.menus.menuId},buttonProxy(){return this.$store.buttonProxy}},mounted(){this.columns.forEach((s,e)=>{s.render||(this.searchData.push({value:s.prop,label:s.title}),e==0&&(this.searchKey=s.prop))}),this.module?this.url=this.module+"/page":this.path?this.url=this.path:this.url=this.$route.path+"/page",this.showButton&&this.getMenuButtons(),this.$bus.on("ReloadData",()=>{this.loadData()}),this.selectData=[],this.loadData()},data(){return{url:"",colors:["primary","blue","green","yellow","dark"],buttons:[],loadingFlag:!0,loading:!1,datas:[],searchData:[],searchKey:"",searchVal:"",selectData:[]}},methods:{getColor(s){if(s<this.colors.length)return this.colors[s];if(s>=this.colors.length*4)return this.colors[s-this.colors.length*4];if(s>=this.colors.length*3)return this.colors[s-this.colors.length*3];if(s>=this.colors.length*2)return this.colors[s-this.colors.length*2];if(s>=this.colors.length)return this.colors[s-this.colors.length]},getMenuButtons(){if(this.buttonProxy!="")this.$post(this.buttonProxy+"/sysbuttons/getButtons/"+this.menuId).then(s=>{this.buttons=s.data.data});else{let s=this.$route.path;this.buttons=this.readBtns(this.menuData,s)}},readBtns(s,e){for(var t=0;t<s.length;t++){var i=s[t];if(i.key==e)return i.buttons;if(i.children){var n=this.readBtns(i.children,e);if(n)return n}}},loadData(){if(this.loadingFlag)this.loadingFlag=!1,setTimeout(()=>{this.loadingFlag=!0},1e3);else return;this.loading=!0,this.$post(this.url,{page:{current:this.$store.page.page,size:this.$store.page.size},...this.$store.queryData[this.current],...this.params}).then(s=>{if(this.loading=!1,s.data==null){this.datas=[],this.$store.page.total=0;return}if(s.data.code!=this.$success&&s.msg!=null){Xn.message.error(s.msg);return}if(s.data.data){s.data.data.rows!=null?this.datas=s.data.data.rows:this.datas=[],this.$store.page.total=s.data.data.total;return}else this.datas=[],this.$store.page.total=0})},rowSelect(s){this.checkbox&&(this.selectData=s)},trClick(s){this.checkbox||(this.selectData=s)},handle(s){this.$store.setAction(s),this.$store.setSee(!1);var e=this.$parent[s];if(e&&e instanceof Function){e(this.selectData);return}else this[s]?this[s]():console.error("按钮事件方法未找到:",s)},search(s){let e={};this.selectData=[],e[this.searchKey]=s,this.$store.setQueryData(e),this.loadData()},query(){this.$store.setSee(!1),this.$store.setAction("query"),this.$store.setSubTitle("查询"),this.$router.push(this.current+"/query")},add(){let s=this.getColumnId();this.$store.setSee(!1),this.$store.setSubTitle("创建"),s?this.$router.push({path:this.current+"/form",query:{id:s}}):this.$router.push(this.current+"/form")},edit(){let s=this.getColumnId();s!=null&&(this.$store.setSee(!1),this.$store.setSubTitle("编辑"),this.$router.push({path:this.current+"/form",query:{id:s}}))},del(){let s=this.getColumnId();s!=null&&Xn.confirm({content:"确定删除?",onConfirm:()=>{let e=this.$store.menus.current+"/"+s;this.module&&(e=this.module+"/"+s),this.$delete(e).then(t=>{let i=t.data;this.$dyAlert(i,!1)})}})},see(){let s=this.getColumnId();s!=null&&(this.$store.setSubTitle("查看"),this.$store.setSee(!0),this.$router.push({path:this.current+"/form",query:{id:s}}))},getColumnId(){let s=this.selectData;if(this.checkbox&&(s=this.selectData[0]),s==null||s.length==0)return this.$store.forms.action!="add"&&Xn.message.warn("请选中任意列表数据"),null;let e="";return this.id?this.id instanceof Array?(this.id.forEach(t=>{e+=s[t]+"&"}),e=e.substring(0,e.length-1)):e+=s[this.id]:e=s[this.columns[0].prop],e},seClick(){this.$emit("seClick",this.selectData)}}},xEe={class:"h-panel-bar h-panel-no-border"},kEe={key:3,class:"h-panel-right"},LEe={class:"h-input-group"},EEe={class:"h-input-addon"},DEe={class:"h-panel-body h-panel-no-border"},TEe={class:"h-panel-bar"};function IEe(s,e,t,i,n,o){const r=ie.resolveComponent("Button"),a=ie.resolveComponent("Select"),l=ie.resolveComponent("Search"),c=ie.resolveComponent("Table"),d=ie.resolveComponent("Pagination");return ie.openBlock(),ie.createElementBlock("div",null,[ie.createElementVNode("div",xEe,[t.showButton==2?(ie.openBlock(),ie.createBlock(r,{key:0,onClick:o.seClick,color:"blue",icon:"h-icon-check"},{default:ie.withCtx(()=>[ie.createTextVNode("选择")]),_:1},8,["onClick"])):ie.createCommentVNode("",!0),t.showButton==1?(ie.openBlock(),ie.createBlock(r,{key:1,icon:"h-icon-search",onClick:o.query},{default:ie.withCtx(()=>[ie.createTextVNode("查询")]),_:1},8,["onClick"])):ie.createCommentVNode("",!0),t.showButton==1?(ie.openBlock(!0),ie.createElementBlock(ie.Fragment,{key:2},ie.renderList(n.buttons,(u,h)=>(ie.openBlock(),ie.createBlock(r,{key:h,color:o.getColor(h),disabled:n.selectData.length==0&&u.state==0,onClick:f=>o.handle(u.tag?u.tag:u.click,u.title)},{default:ie.withCtx(()=>[ie.createElementVNode("i",{class:ie.normalizeClass(u.icon)},null,2),ie.createTextVNode(" "+ie.toDisplayString(u.title),1)]),_:2},1032,["color","disabled","onClick"]))),128)):ie.createCommentVNode("",!0),t.showButton==1||t.showButton==2?(ie.openBlock(),ie.createElementBlock("div",kEe,[ie.createElementVNode("div",LEe,[ie.createElementVNode("div",EEe,[ie.createVNode(a,{datas:n.searchData,deletable:!1,autosize:!0,modelValue:n.searchKey,"onUpdate:modelValue":e[0]||(e[0]=u=>n.searchKey=u),"no-border":!0},null,8,["datas","modelValue"])]),ie.createVNode(l,{onSearch:o.search,modelValue:n.searchVal,"onUpdate:modelValue":e[1]||(e[1]=u=>n.searchVal=u),placeholder:"搜索"},null,8,["onSearch","modelValue"])])])):ie.createCommentVNode("",!0)]),ie.createElementVNode("div",DEe,[ie.createVNode(c,{ref:"table",datas:n.datas,checkbox:t.checkbox,"is-select-row":!t.checkbox,height:t.height,radio:t.radio,stripe:t.stripe,loading:n.loading,"select-when-click-tr":"",columns:t.columns,onSelect:o.rowSelect,onTrClick:o.trClick},null,8,["datas","checkbox","is-select-row","height","radio","stripe","loading","columns","onSelect","onTrClick"])]),ie.createElementVNode("div",TEe,[ie.createVNode(d,{modelValue:s.$store.page,"onUpdate:modelValue":e[2]||(e[2]=u=>s.$store.page=u),align:"right",onChange:o.loadData},null,8,["modelValue","onChange"])])])}const NEe=dn(SEe,[["render",IEe]]),AEe={name:"PaasSelect",props:{multiple:{default:!1},disabled:{default:!1},modelValue:{},params:""},data(){return{data:[]}},mounted(){this.data=this.$store.dicts[this.params]},methods:{input(s){this.$emit("update:modelValue",s.value),this.$emit("input",s)},change(s){this.$emit("update:modelValue",s.value),this.$emit("change",s)}}};function REe(s,e,t,i,n,o){const r=ie.resolveComponent("Select");return ie.openBlock(),ie.createBlock(r,{datas:n.data,multiple:t.multiple,"model-value":t.modelValue,onChange:o.change,onInput:o.input,disabled:t.disabled},null,8,["datas","multiple","model-value","onChange","onInput","disabled"])}const OEe=dn(AEe,[["render",REe]]),MEe={name:"PaasTitleBar",data(){return{titles:[{title:this.$store.menus.title},{title:this.$store.menus.subTitle}]}},methods:{close(){this.$router.back()}}},PEe={class:"h-panel-bar"},FEe={class:"h-panel-right"},BEe=[ie.createElementVNode("i",{class:"h-icon-close"},null,-1)];function WEe(s,e,t,i,n,o){const r=ie.resolveComponent("Breadcrumb");return ie.openBlock(),ie.createElementBlock("div",PEe,[ie.createVNode(r,{datas:n.titles},null,8,["datas"]),ie.createElementVNode("span",FEe,[ie.createElementVNode("button",{onClick:e[0]||(e[0]=(...a)=>o.close&&o.close(...a)),class:"h-btn h-btn-no-border h-btn-text-primary",style:{padding:"0px"}},BEe)])])}const VEe=dn(MEe,[["render",WEe]]),HEe={name:"PaasTree",props:{multiple:{default:!1},disabled:{default:!1},modelValue:{},params:{},url:""},data(){return{param:{keyName:"value",titleName:"label",parentName:"supperId",childrenName:"children",dataMode:"list",getTotalDatas:s=>{this.$post(this.url,{page:{current:1,size:1e6},...this.params}).then(e=>{let t=e.data.data.rows;s(t)})}}}},mounted(){},methods:{input(s){this.$emit("update:modelValue",s.value),this.$emit("input",s)},change(s){this.$emit("update:modelValue",s.value),this.$emit("change",s)}}};function $Ee(s,e,t,i,n,o){const r=ie.resolveComponent("TreePicker");return ie.openBlock(),ie.createBlock(r,{option:n.param,"model-value":t.modelValue,filterable:!0,onChange:o.change,onInput:o.input,multiple:t.multiple,disabled:t.disabled},null,8,["option","model-value","onChange","onInput","multiple","disabled"])}const zEe=dn(HEe,[["render",$Ee]]),UEe={name:"PaasUploadModal",props:{url:"",title:"",accept:"",multiple:{default:!1},name:{default:"file"},template:"",params:{default:null},success:{default:"success"}},data(){return{opend:!1,isLoading:!1,file:[],message:""}},methods:{fileChange(){this.message="",this.$refs.inputFile.click()},add(s){this.message="",this.file=s.target.files},confirm(s){if(s.preventDefault(),this.file.length==0)return this.message="未上传任何文件",!1;this.isLoading=!0;let e=new FormData;for(var t=0;t<this.file.length;t++)e.append(this.name,this.file[t]);if(this.params)for(var i in this.params)e.append(i,this.params[i]||"");this.$upload(this.url,e).then(n=>{this.isLoading=!1,n.data.code==this.$success?(Xn.message.info("上传成功"),this.file=[],this.$bus.emit(this.success,n.data.msg)):Xn.message.error(n.data.msg),this.message=n.data.msg}).catch(n=>{this.isLoading=!1,this.message=n})},show(){this.file=[],this.message="",this.opend=!0},tempDown(){location.href="/static/excel/"+this.template}}},jEe=[ie.createElementVNode("div",null,[ie.createElementVNode("p",{class:"text-center"},[ie.createElementVNode("i",{class:"h-icon-upload blue-color",style:{"font-size":"30px"}})]),ie.createElementVNode("p",{class:"text-center"},"点击这里上传")],-1)],qEe=["disabled","accept","multiple"],KEe={class:"link"},GEe=ie.createElementVNode("div",null,null,-1),ZEe={style:{"font-size":"13px",color:"red",float:"left"}};function YEe(s,e,t,i,n,o){const r=ie.resolveComponent("h-button"),a=ie.resolveComponent("Modal"),l=ie.resolveDirective("width");return ie.openBlock(),ie.createBlock(a,{modelValue:n.opend,"onUpdate:modelValue":e[4]||(e[4]=c=>n.opend=c),"close-on-mask":!1,"has-divider":!0},{header:ie.withCtx(()=>[ie.createTextVNode(ie.toDisplayString(t.title||t.template.substring(0,t.template.indexOf(".")))+" ",1),t.template!=null?(ie.openBlock(),ie.createElementBlock("span",{key:0,class:"link",style:{"font-size":"14px"},onClick:e[0]||(e[0]=(...c)=>o.tempDown&&o.tempDown(...c))},"模板下载")):ie.createCommentVNode("",!0)]),footer:ie.withCtx(()=>[ie.createElementVNode("span",ZEe,ie.toDisplayString(n.message),1),ie.createVNode(r,{color:"primary",icon:"h-icon-error",onClick:e[3]||(e[3]=c=>n.opend=!1)},{default:ie.withCtx(()=>[ie.createTextVNode("关闭")]),_:1}),ie.createVNode(r,{color:"blue",icon:"h-icon-upload",loading:n.isLoading,onClick:o.confirm},{default:ie.withCtx(()=>[ie.createTextVNode("上传")]),_:1},8,["loading","onClick"])]),default:ie.withCtx(()=>[ie.withDirectives((ie.openBlock(),ie.createElementBlock("div",null,[ie.createElementVNode("div",{class:"h-uploader-browse-button h-uploader-drop-element",style:{position:"relative","z-index":"1"},onClick:e[1]||(e[1]=(...c)=>o.fileChange&&o.fileChange(...c))},jEe),ie.withDirectives(ie.createElementVNode("input",{disabled:n.isLoading,ref:"inputFile",type:"file",accept:t.accept,onChange:e[2]||(e[2]=c=>o.add(c)),multiple:t.multiple},null,40,qEe),[[ie.vShow,!1]]),ie.createElementVNode("ol",null,[(ie.openBlock(!0),ie.createElementBlock(ie.Fragment,null,ie.renderList(n.file,(c,d)=>(ie.openBlock(),ie.createElementBlock("li",{key:d,style:{border:"solid 2px red","border-bottom-width":"2px"}},[ie.createElementVNode("span",KEe,ie.toDisplayString(c.name),1)]))),128))]),GEe])),[[l,400]])]),_:1},8,["modelValue"])}const XEe=dn(UEe,[["render",YEe]]),QEe={name:"FormDate",props:{label:"",prop:"",type:{default:"text"},single:{default:!1},icon:{default:""},readonly:{default:!1},disabled:{default:!1},modelValue:{},format:{default:"YYYY-MM-DD"},type:{default:"date"}},computed:{see(){return this.$store.forms.see}},methods:{change(s){this.$emit("update:modelValue",s)}}};function JEe(s,e,t,i,n,o){const r=ie.resolveComponent("paas-date"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,icon:t.icon,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{readonly:t.readonly,disabled:t.disabled,type:t.type,"model-value":t.modelValue,format:t.format,onChange:o.change},null,8,["readonly","disabled","type","model-value","format","onChange"])]),_:1},8,["label","prop","icon","single"])}const eDe=dn(QEe,[["render",JEe]]),tDe={name:"FormInput",props:{label:"",prop:"",type:{default:"text"},modelValue:String,single:{default:!1},icon:{default:""},readonly:{default:!1}},computed:{see(){return this.$store.forms.see}},methods:{updateValue(s){this.$emit("update:modelValue",s)}}};function iDe(s,e,t,i,n,o){const r=ie.resolveComponent("Input"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,icon:t.icon,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{type:t.type,"model-value":t.modelValue,onInput:e[0]||(e[0]=l=>o.updateValue(l.target.value)),readonly:o.see||t.readonly},null,8,["type","model-value","readonly"])]),_:1},8,["label","prop","icon","single"])}const nDe=dn(tDe,[["render",iDe]]),sDe={name:"FormNumber",mounted(){},props:{label:"",prop:"",type:{default:"text"},value:{},modelValue:{},single:{default:!1},icon:{default:""},readonly:{default:!1},precision:{default:0},max:{},min:{}},computed:{see(){return this.$store.forms.see}},methods:{updateValue(s){this.$emit("update:modelValue",s)}}};function oDe(s,e,t,i,n,o){const r=ie.resolveComponent("NumberInput"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,icon:t.icon,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{type:t.type,precision:t.precision,max:t.max,min:t.min,"model-value":t.modelValue,onInput:o.updateValue,readonly:o.see||t.readonly},null,8,["type","precision","max","min","model-value","onInput","readonly"])]),_:1},8,["label","prop","icon","single"])}const rDe=dn(sDe,[["render",oDe]]),aDe={name:"FormPageSelect",props:{multiple:{default:!1},url:"",vars:{},modelValue:String,single:{default:!1},disabled:{default:!1},label:"",prop:""},computed:{see(){return this.$store.forms.see}},methods:{input(s){this.$emit("update:modelValue",s),this.$emit("input",s)},change(s){let e=new Array;if(this.multiple)for(let t=0;t<s.length;t++)e.push(s[t].value);else e=s.value;this.$emit("update:modelValue",e),this.$emit("change",s)}}};function lDe(s,e,t,i,n,o){const r=ie.resolveComponent("paas-page-select"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{multiple:t.multiple,disabled:o.see||t.disabled,url:t.url,vars:t.vars,"model-value":t.modelValue,onInput:o.input,onChange:o.change},null,8,["multiple","disabled","url","vars","model-value","onInput","onChange"])]),_:1},8,["label","prop","single"])}const cDe=dn(aDe,[["render",lDe]]),dDe={name:"FormSelect",props:{multiple:{default:!1},single:{default:!1},modelValue:{},params:"",label:"",prop:"",disabled:{default:!1}},computed:{see(){return this.$store.forms.see}},methods:{input(s){this.$emit("update:modelValue",s.value),this.$emit("input",s)},change(s){this.$emit("update:modelValue",s.value),this.$emit("change",s)}}};function uDe(s,e,t,i,n,o){const r=ie.resolveComponent("paas-select"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{params:t.params,disabled:o.see||t.disabled,multiple:t.multiple,"model-value":t.modelValue,onChange:o.change,onInput:o.input},null,8,["params","disabled","multiple","model-value","onChange","onInput"])]),_:1},8,["label","prop","single"])}const hDe=dn(dDe,[["render",uDe]]),fDe={name:"FormSwitch",props:{label:"",prop:"",modelValue:{},single:{default:!1},icon:{default:""},readonly:{default:!1},single:{default:!1}},computed:{see(){return this.$store.forms.see}},methods:{inputEvent(s){this.$emit("update:modelValue",s)}}},gDe={slot:"open"},pDe={slot:"close"};function mDe(s,e,t,i,n,o){const r=ie.resolveComponent("Switch");return ie.openBlock(),ie.createBlock(r,{"model-value":t.modelValue,"true-value":"1","false-value":"0"},{default:ie.withCtx(()=>[ie.createElementVNode("span",gDe,ie.toDisplayString(t.label),1),ie.createElementVNode("span",pDe,ie.toDisplayString(t.label),1)]),_:1},8,["model-value"])}const _De=dn(fDe,[["render",mDe]]),vDe={name:"FormTree",props:{multiple:{default:!1},single:{default:!1},modelValue:{},params:{},label:"",prop:"",disabled:{default:!1},url:""},computed:{see(){return this.$store.forms.see}},methods:{input(s){this.$emit("update:modelValue",s.value),this.$emit("input",s)},change(s){this.$emit("update:modelValue",s.value),this.$emit("change",s)}}};function bDe(s,e,t,i,n,o){const r=ie.resolveComponent("paas-tree"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{params:t.params,disabled:o.see||t.disabled,multiple:t.multiple,"model-value":t.modelValue,onChange:o.change,onInput:o.input,url:t.url},null,8,["params","disabled","multiple","model-value","onChange","onInput","url"])]),_:1},8,["label","prop","single"])}const CDe=dn(vDe,[["render",bDe]]),wDe={name:"FormUpload",props:{url:"",accept:"",multiple:{default:!1},show:{default:!0},name:{default:"file"},single:{default:!1},params:{default:null},success:{default:"success"},modelValue:String,label:"",prop:""},data(){return{isLoading:!1,file:[],message:""}},computed:{see(){return this.$store.forms.see}},methods:{fileChange(){this.$refs.inputFile.click()},add(s){this.file=s.target.files;for(var e=new Array,t=0;t<this.file.length;t++)e.push(this.file[t].name);this.modelValue=e.join(",")},confirm(s){s.preventDefault(),this.isLoading=!0;let e=new FormData;for(var t=0;t<this.file.length;t++)e.append(this.name,this.file[t]);if(this.params)for(var i in this.params)e.append(i,this.params[i]||"");this.$upload(this.url,e).then(n=>{this.isLoading=!1,n.data.code==this.$success?(Xn.message.info("上传成功"),this.file=[],this.modelValue=n.data.data,this.$emit(this.success,n.data.data),this.$bus.emit(this.success,n.data.data)):Xn.message.error(n.data.msg)}).catch(n=>{this.isLoading=!1,Xn.message.error(n)})},updateValue(s){this.$emit("update:modelValue",s)}}},yDe=["disabled","accept","multiple"],SDe={class:"h-input-group"},xDe={class:"h-input h-input-suffix-icon"};function kDe(s,e,t,i,n,o){const r=ie.resolveComponent("Input"),a=ie.resolveComponent("h-button"),l=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(l,{label:t.label,single:t.single,prop:t.prop},{default:ie.withCtx(()=>[ie.withDirectives(ie.createElementVNode("input",{disabled:n.isLoading,ref:"inputFile",type:"file",accept:t.accept,onChange:e[0]||(e[0]=c=>o.add(c)),multiple:t.multiple},null,40,yDe),[[ie.vShow,!1]]),ie.createElementVNode("div",SDe,[ie.createElementVNode("div",xDe,[ie.createVNode(r,{type:"text",name:t.name,modelValue:t.modelValue,disabled:o.see,onInput:e[1]||(e[1]=c=>o.updateValue(c.target.value)),readonly:""},null,8,["name","modelValue","disabled"]),ie.withDirectives(ie.createElementVNode("i",{class:"h-icon-upload",onClick:e[2]||(e[2]=(...c)=>o.fileChange&&o.fileChange(...c)),style:{cursor:"pointer","padding-right":"5px"}},null,512),[[ie.vShow,!o.see]])]),ie.createVNode(a,{color:"blue",icon:"h-icon-completed",loading:n.isLoading,onClick:o.confirm,disabled:n.file.length<=0},{default:ie.withCtx(()=>[ie.createTextVNode("上传")]),_:1},8,["loading","onClick","disabled"])])]),_:1},8,["label","single","prop"])}const LDe=dn(wDe,[["render",kDe]]);var eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dq(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var uq={exports:{}};/*!
|
|
1124
|
+
`):s}function oq(s){return s.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${s.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof s.code=="string"&&typeof s.errno=="number"&&typeof s.syscall=="string"?b("nodeExceptionMessage","A system error occurred ({0})",s.message):s.message||b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function rq(s=null,e=!1){if(!s)return b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(s)){const t=Sl(s),i=rq(t[0],e);return t.length>1?b("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Hs(s))return s;if(s.detail){const t=s.detail;if(t.error)return F4(t.error,e);if(t.exception)return F4(t.exception,e)}return s.stack?F4(s,e):s.message?s.message:b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function ZLe(s){var e;const t=new Map;for(const i of s)t.set(i,((e=t.get(i))!==null&&e!==void 0?e:0)+1);return t}class aC{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(e,t){const i=this.computeEmbedding(e),n=new Map,o=[];for(const[r,a]of this.documents){if(t.isCancellationRequested)return[];for(const l of a.chunks){const c=this.computeSimilarityScore(l,i,n);c>0&&o.push({key:r,score:c})}}return o}static termFrequencies(e){return ZLe(aC.splitTerms(e))}static*splitTerms(e){const t=i=>i.toLowerCase();for(const[i]of e.matchAll(new RegExp("\\b\\p{Letter}[\\p{Letter}\\d]{2,}\\b","gu"))){yield t(i);const n=i.split(new RegExp("(?<=[a-z])(?=[A-Z])","g"));if(n.length>1)for(const o of n)o.length>2&&new RegExp("\\p{Letter}{3,}","gu").test(o)&&(yield t(o))}}updateDocuments(e){var t;for(const{key:i}of e)this.deleteDocument(i);for(const i of e){const n=[];for(const o of i.textChunks){const r=aC.termFrequencies(o);for(const a of r.keys())this.chunkOccurrences.set(a,((t=this.chunkOccurrences.get(a))!==null&&t!==void 0?t:0)+1);n.push({text:o,tf:r})}this.chunkCount+=n.length,this.documents.set(i.key,{chunks:n})}return this}deleteDocument(e){const t=this.documents.get(e);if(t){this.documents.delete(e),this.chunkCount-=t.chunks.length;for(const i of t.chunks)for(const n of i.tf.keys()){const o=this.chunkOccurrences.get(n);if(typeof o=="number"){const r=o-1;r<=0?this.chunkOccurrences.delete(n):this.chunkOccurrences.set(n,r)}}}}computeSimilarityScore(e,t,i){let n=0;for(const[o,r]of Object.entries(t)){const a=e.tf.get(o);if(!a)continue;let l=i.get(o);typeof l!="number"&&(l=this.computeIdf(o),i.set(o,l));const c=a*l;n+=c*r}return n}computeEmbedding(e){const t=aC.termFrequencies(e);return this.computeTfidf(t)}computeIdf(e){var t;const i=(t=this.chunkOccurrences.get(e))!==null&&t!==void 0?t:0;return i>0?Math.log((this.chunkCount+1)/i):0}computeTfidf(e){const t=Object.create(null);for(const[i,n]of e){const o=this.computeIdf(i);o>0&&(t[i]=n*o)}return t}}function YLe(s){var e,t;const i=s.slice(0);i.sort((o,r)=>r.score-o.score);const n=(t=(e=i[0])===null||e===void 0?void 0:e.score)!==null&&t!==void 0?t:0;if(n>0)for(const o of i)o.score/=n;return i}var lC=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},P_;(function(s){s[s.NO_ACTION=0]="NO_ACTION",s[s.CLOSE_PICKER=1]="CLOSE_PICKER",s[s.REFRESH_PICKER=2]="REFRESH_PICKER",s[s.REMOVE_ITEM=3]="REMOVE_ITEM"})(P_||(P_={}));function B4(s){const e=s;return Array.isArray(e.items)}function aq(s){const e=s;return!!e.picks&&e.additionalPicks instanceof Promise}class XLe extends oe{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,i){var n;const o=new _e;e.canAcceptInBackground=!!(!((n=this.options)===null||n===void 0)&&n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let r;const a=o.add(new Bn),l=()=>lC(this,void 0,void 0,function*(){const c=a.value=new _e;r==null||r.dispose(!0),e.busy=!1,r=new en(t);const d=r.token,u=e.value.substr(this.prefix.length).trim(),h=this._getPicks(u,c,d,i),f=(p,v)=>{var m;let _,C;if(B4(p)?(_=p.items,C=p.active):_=p,_.length===0){if(v)return!1;(u.length>0||e.hideInput)&&(!((m=this.options)===null||m===void 0)&&m.noResultsPick)&&(uv(this.options.noResultsPick)?_=[this.options.noResultsPick(u)]:_=[this.options.noResultsPick])}return e.items=_,C&&(e.activeItems=[C]),!0},g=p=>lC(this,void 0,void 0,function*(){let v=!1,m=!1;yield Promise.all([lC(this,void 0,void 0,function*(){typeof p.mergeDelay=="number"&&(yield ou(p.mergeDelay),d.isCancellationRequested)||m||(v=f(p.picks,!0))}),lC(this,void 0,void 0,function*(){e.busy=!0;try{const _=yield p.additionalPicks;if(d.isCancellationRequested)return;let C,w;B4(p.picks)?(C=p.picks.items,w=p.picks.active):C=p.picks;let y,x;if(B4(_)?(y=_.items,x=_.active):y=_,y.length>0||!v){let S;if(!w&&!x){const k=e.activeItems[0];k&&C.indexOf(k)!==-1&&(S=k)}f({items:[...C,...y],active:w||x||S})}}finally{d.isCancellationRequested||(e.busy=!1),m=!0}})])});if(h!==null)if(aq(h))yield g(h);else if(!(h instanceof Promise))f(h);else{e.busy=!0;try{const p=yield h;if(d.isCancellationRequested)return;aq(p)?yield g(p):f(p)}finally{d.isCancellationRequested||(e.busy=!1)}}});return o.add(e.onDidChangeValue(()=>l())),l(),o.add(e.onDidAccept(c=>{const[d]=e.selectedItems;typeof(d==null?void 0:d.accept)=="function"&&(c.inBackground||e.hide(),d.accept(e.keyMods,c))})),o.add(e.onDidTriggerItemButton(({button:c,item:d})=>lC(this,void 0,void 0,function*(){var u,h;if(typeof d.trigger=="function"){const f=(h=(u=d.buttons)===null||u===void 0?void 0:u.indexOf(c))!==null&&h!==void 0?h:-1;if(f>=0){const g=d.trigger(f,e.keyMods),p=typeof g=="number"?g:yield g;if(t.isCancellationRequested)return;switch(p){case P_.NO_ACTION:break;case P_.CLOSE_PICKER:e.hide();break;case P_.REFRESH_PICKER:l();break;case P_.REMOVE_ITEM:{const v=e.items.indexOf(d);if(v!==-1){const m=e.items.slice(),_=m.splice(v,1),C=e.activeItems.filter(y=>y!==_[0]),w=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=m,C&&(e.activeItems=C),e.keepScrollPosition=w}break}}}}}))),o}}var lq=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Pg=function(s,e){return function(t,i){e(t,i,s)}},W4=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})},Fg,En;let Bg=Fg=class extends XLe{constructor(e,t,i,n,o,r){super(Fg.PREFIX,e),this.instantiationService=t,this.keybindingService=i,this.commandService=n,this.telemetryService=o,this.dialogService=r,this.commandsHistory=this._register(this.instantiationService.createInstance(Wg)),this.options=e}_getPicks(e,t,i,n){var o,r,a,l;return W4(this,void 0,void 0,function*(){const c=yield this.getCommandPicks(i);if(i.isCancellationRequested)return[];const d=Gd(()=>{const m=new aC;m.updateDocuments(c.map(C=>({key:C.commandId,textChunks:[C.label+(C.commandAlias?` ${C.commandAlias}`:"")]})));const _=m.calculateScores(e,i);return YLe(_).filter(C=>C.score>Fg.TFIDF_THRESHOLD).slice(0,Fg.TFIDF_MAX_RESULTS)}),u=[];for(const m of c){const _=(o=Fg.WORD_FILTER(e,m.label))!==null&&o!==void 0?o:void 0,C=m.commandAlias&&(r=Fg.WORD_FILTER(e,m.commandAlias))!==null&&r!==void 0?r:void 0;if(_||C)m.highlights={label:_,detail:this.options.showAlias?C:void 0},u.push(m);else if(e===m.commandId)u.push(m);else if(e.length>=3){const w=d();if(i.isCancellationRequested)return[];const y=w.find(x=>x.key===m.commandId);y&&(m.tfIdfScore=y.score,u.push(m))}}const h=new Map;for(const m of u){const _=h.get(m.label);_?(m.description=m.commandId,_.description=_.commandId):h.set(m.label,m)}u.sort((m,_)=>{if(m.tfIdfScore&&_.tfIdfScore)return m.tfIdfScore===_.tfIdfScore?m.label.localeCompare(_.label):_.tfIdfScore-m.tfIdfScore;if(m.tfIdfScore)return 1;if(_.tfIdfScore)return-1;const C=this.commandsHistory.peek(m.commandId),w=this.commandsHistory.peek(_.commandId);if(C&&w)return C>w?-1:1;if(C)return-1;if(w)return 1;if(this.options.suggestedCommandIds){const y=this.options.suggestedCommandIds.has(m.commandId),x=this.options.suggestedCommandIds.has(_.commandId);if(y&&x)return 0;if(y)return-1;if(x)return 1}return m.label.localeCompare(_.label)});const f=[];let g=!1,p=!0,v=!!this.options.suggestedCommandIds;for(let m=0;m<u.length;m++){const _=u[m];m===0&&this.commandsHistory.peek(_.commandId)&&(f.push({type:"separator",label:b("recentlyUsed","recently used")}),g=!0),p&&_.tfIdfScore!==void 0&&(f.push({type:"separator",label:b("suggested","similar commands")}),p=!1),v&&_.tfIdfScore===void 0&&!this.commandsHistory.peek(_.commandId)&&(!((a=this.options.suggestedCommandIds)===null||a===void 0)&&a.has(_.commandId))&&(f.push({type:"separator",label:b("commonlyUsed","commonly used")}),g=!0,v=!1),g&&_.tfIdfScore===void 0&&!this.commandsHistory.peek(_.commandId)&&!(!((l=this.options.suggestedCommandIds)===null||l===void 0)&&l.has(_.commandId))&&(f.push({type:"separator",label:b("morecCommands","other commands")}),g=!1),f.push(this.toCommandPick(_,n))}return this.hasAdditionalCommandPicks(e,i)?{picks:f,additionalPicks:W4(this,void 0,void 0,function*(){var m;const _=yield this.getAdditionalCommandPicks(c,u,e,i);if(i.isCancellationRequested)return[];const C=_.map(w=>this.toCommandPick(w,n));return p&&((m=C[0])===null||m===void 0?void 0:m.type)!=="separator"&&C.unshift({type:"separator",label:b("suggested","similar commands")}),C})}:f})}toCommandPick(e,t){if(e.type==="separator")return e;const i=this.keybindingService.lookupKeybinding(e.commandId),n=i?b("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,i.getAriaLabel()):e.label;return Object.assign(Object.assign({},e),{ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:i,accept:()=>W4(this,void 0,void 0,function*(){var o,r;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:(o=t==null?void 0:t.from)!==null&&o!==void 0?o:"quick open"});try{!((r=e.args)===null||r===void 0)&&r.length?yield this.commandService.executeCommand(e.commandId,...e.args):yield this.commandService.executeCommand(e.commandId)}catch(a){Fa(a)||this.dialogService.error(b("canNotRun","Command '{0}' resulted in an error",e.label),rq(a))}})})}};Bg.PREFIX=">",Bg.TFIDF_THRESHOLD=.5,Bg.TFIDF_MAX_RESULTS=5,Bg.WORD_FILTER=GA(g0,eue,O7),Bg=Fg=lq([Pg(1,Je),Pg(2,oi),Pg(3,Hi),Pg(4,nr),Pg(5,s0)],Bg);let Wg=En=class extends oe{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(e=>this.updateConfiguration(e)))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=En.getConfiguredCommandHistoryLength(this.configurationService),En.cache&&En.cache.limit!==this.configuredCommandsHistoryLength&&(En.cache.limit=this.configuredCommandsHistoryLength,En.saveState(this.storageService)))}load(){const e=this.storageService.get(En.PREF_KEY_CACHE,0);let t;if(e)try{t=JSON.parse(e)}catch{}const i=En.cache=new du(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((o,r)=>o.value-r.value),n.forEach(o=>i.set(o.key,o.value))}En.counter=this.storageService.getNumber(En.PREF_KEY_COUNTER,0,En.counter)}push(e){En.cache&&(En.cache.set(e,En.counter++),En.saveState(this.storageService))}peek(e){var t;return(t=En.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!En.cache)return;const t={usesLRU:!0,entries:[]};En.cache.forEach((i,n)=>t.entries.push({key:n,value:i})),e.store(En.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(En.PREF_KEY_COUNTER,En.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,i;const o=(i=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||i===void 0?void 0:i.history;return typeof o=="number"?o:En.DEFAULT_COMMANDS_HISTORY_LENGTH}};Wg.DEFAULT_COMMANDS_HISTORY_LENGTH=50,Wg.PREF_KEY_CACHE="commandPalette.mru.cache",Wg.PREF_KEY_COUNTER="commandPalette.mru.counter",Wg.counter=1,Wg=En=lq([Pg(0,wa),Pg(1,Et)],Wg);class QLe extends Bg{constructor(e,t,i,n,o,r){super(e,t,i,n,o,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:sR(i.label)||i.id});return t}}var JLe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},F_=function(s,e){return function(t,i){e(t,i,s)}},cq=function(s,e,t,i){function n(o){return o instanceof t?o:new t(function(r){r(o)})}return new(t||(t=Promise))(function(o,r){function a(d){try{c(i.next(d))}catch(u){r(u)}}function l(d){try{c(i.throw(d))}catch(u){r(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((i=i.apply(s,e||[])).next())})};let cC=class extends QLe{get activeTextEditorControl(){var e;return(e=this.codeEditorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}constructor(e,t,i,n,o,r){super({showAlias:!1},e,i,n,o,r),this.codeEditorService=t}getCommandPicks(){return cq(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}hasAdditionalCommandPicks(){return!1}getAdditionalCommandPicks(){return cq(this,void 0,void 0,function*(){return[]})}};cC=JLe([F_(0,Je),F_(1,zt),F_(2,oi),F_(3,Hi),F_(4,nr),F_(5,s0)],cC);class dC extends We{constructor(){super({id:dC.ID,label:$S.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:W.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(ol).quickAccess.show(cC.PREFIX)}}dC.ID="editor.action.quickCommand",we(dC),Ai.as(Gf.Quickaccess).registerQuickAccessProvider({ctor:cC,prefix:cC.PREFIX,helpEntries:[{description:$S.quickCommandHelp,commandId:dC.ID}]});var eEe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},B_=function(s,e){return function(t,i){e(t,i,s)}};let V4=class extends sh{constructor(e,t,i,n,o,r,a){super(!0,e,t,i,n,o,r,a)}};V4=eEe([B_(1,st),B_(2,zt),B_(3,rn),B_(4,Je),B_(5,wa),B_(6,Et)],V4),Vt(sh.ID,V4,4);class tEe extends We{constructor(){super({id:"editor.action.toggleHighContrast",label:UA.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const i=e.get(fr),n=i.getColorTheme();Qa(n.type)?(i.setTheme(this._originalThemeName||(qp(n.type)?Wm:vd)),this._originalThemeName=null):(i.setTheme(qp(n.type)?Yf:Xf),this._originalThemeName=n.themeName)}}we(tEe);function iEe(s){return new Worker("/assets/json.worker-iFqrrWyR.js",{name:s==null?void 0:s.name})}self.MonacoEnvironment={getWorker(){return new iEe}};const nEe={name:"PaasCodeEditor",props:{modelValue:{default:""},height:{default:400},scrollEnd:{default:!1},config:{}},setup(s,{emit:e}){let t;const{proxy:i}=ie.getCurrentInstance();return ie.watch(()=>s.modelValue,n=>{n!==(t==null?void 0:t.getValue())&&t.setValue(n)}),ie.onMounted(()=>{t=_O.create(i.$refs.editContainer,{value:s.modelValue,...s.config}),t.onDidChangeModelContent(()=>{const n=t==null?void 0:t.getValue();if(e("update:modelValue",n),s.scrollEnd){var o=t.getModel().getLineCount();console.log(o),t.revealLine(o,_O.ScrollType.Immediate)}}),window.addEventListener("resize",function(){t.layout()})}),{}}};function sEe(s,e,t,i,n,o){return ie.openBlock(),ie.createElementBlock("div",{ref:"editContainer",style:ie.normalizeStyle("width: 100%;height:"+this.height+"px;")},null,4)}const oEe=dn(nEe,[["render",sEe]]),rEe={name:"PaasDate",props:{multiple:{default:!1},disabled:{default:!1},modelValue:"",format:{default:"YYYY-MM-DD"},type:{default:"date"}},data(){return{}},methods:{change(s){this.$emit("update:modelValue",s)}}};function aEe(s,e,t,i,n,o){const r=ie.resolveComponent("DatePicker");return ie.openBlock(),ie.createBlock(r,{modelValue:t.modelValue,format:t.format,onChange:o.change,disabled:t.disabled,type:t.type},null,8,["modelValue","format","onChange","disabled","type"])}const lEe=dn(rEe,[["render",aEe]]),cEe={name:"PaasIndexBar",computed:{current(){return this.$store.menus.current},menuCache(){return this.$store.menus.cache}},data(){return{selected:"",opened:!1,titles:[{title:this.$store.menus.title}]}},methods:{refresh(){this.$bus.emit("ReloadData")},upClick(){console.log(this.menuCache);let s=this.menuCache.findIndex(n=>n.url==this.current);var e=this.menuCache[s-1];if(e){var t=e.url,i=e.title;this.$store.setCurrent(t),this.$store.setTitle(i),this.$router.push(t)}},downClick(){let s=this.menuCache.findIndex(n=>n.url==this.current);var e=this.menuCache[s+1];if(e){var t=e.url,i=e.title;this.$store.setCurrent(t),this.$store.setTitle(i),this.$router.push(t)}},rightMenu(){this.opened=!0},tabChange(s){s&&(this.$store.setCurrent(url),this.$store.setTitle(title),this.$router.push(s.url))},closeTab(s){console.log(s)}}},dEe={class:"h-panel-bar h-panel-no-border"},uEe={class:"h-panel h-panel-no-border"},hEe=ie.createElementVNode("div",{class:"h-panel-bar"},[ie.createElementVNode("span",{class:"h-panel-title"},"历史记录")],-1),fEe={class:"h-panel-body"};function gEe(s,e,t,i,n,o){const r=ie.resolveComponent("Breadcrumb"),a=ie.resolveComponent("Tabs"),l=ie.resolveComponent("Modal");return ie.openBlock(),ie.createElementBlock("div",dEe,[ie.createVNode(r,{datas:n.titles},null,8,["datas"]),ie.createVNode(l,{modelValue:n.opened,"onUpdate:modelValue":e[1]||(e[1]=c=>n.opened=c),type:"drawer-right",hasMask:!0},{default:ie.withCtx(()=>[ie.createElementVNode("div",uEe,[hEe,ie.createElementVNode("div",fEe,[ie.withDirectives(ie.createVNode(a,{datas:o.menuCache,"class-name":"h-tabs-menu",modelValue:n.selected,"onUpdate:modelValue":e[0]||(e[0]=c=>n.selected=c),onChange:o.tabChange,keyName:"url"},null,8,["datas","modelValue","onChange"]),[[ie.vShow,o.menuCache.length>0]])])])]),_:1},8,["modelValue"])])}const pEe=dn(cEe,[["render",gEe]]),mEe={name:"PaasMenu",props:{url:"",disabled:{default:!1},theme:"h-menu-white",value:"",format:{default:"YYYY-MM-DD"},type:{default:"date"}},computed:{siderCollapsed(){return this.$store.menus.siderCollapsed},current(){return this.$store.menus.current},data(){return this.$store.menus.data}},mounted(){this.$store.loginFlag&&this.data.length==0&&this.$post(this.url).then(s=>{this.initSearch(s.data.data),this.$store.setSearchData(this.searchData),this.$store.setMenuData(s.data.data)})},updated(){this.$refs.menus.select(this.current)},data(){return{searchData:[]}},watch:{$route(){let s=this.$route.path;this.$store.menus.current==s&&this.$refs.menus.select(s)}},methods:{menuSelect(s){this.$store.setCurrent(s.key),this.$store.setTitle(s.title),this.$store.setMenuId(s.id),this.$router.push(s.key),this.$store.setMenuCache({url:s.key,title:s.title})},initSearch(s){s.forEach(e=>{e.children.length>0?(this.searchData.push({label:e.title,isLabel:!0}),this.initSearch(e.children)):this.searchData.push({value:e.key,label:e.title})})}}};function _Ee(s,e,t,i,n,o){const r=ie.resolveComponent("Menu");return ie.openBlock(),ie.createBlock(r,{ref:"menus",className:t.theme,datas:o.data,inlineCollapsed:o.siderCollapsed,onSelect:o.menuSelect},null,8,["className","datas","inlineCollapsed","onSelect"])}const vEe=dn(mEe,[["render",_Ee]]),bEe={name:"PaasPageSelect",props:{multiple:{default:!1},disabled:{default:!1},modelValue:{},url:"",vars:{}},computed:{action(){return this.$store.forms.action}},mounted(){this.modelValue&&(this.modelValue instanceof String&&this.modelValue.indexOf(",")!=-1&&(this.modelValue=this.modelValue.split(",")),this.multiple&&this.modelValue instanceof Array?this.selected=this.modelValue:this.selected=[this.modelValue]),this.action!="edit"&&this.action!="see"&&this.loadData()},watch:{vars:{deep:!0,handler(s){s&&(this.selected=[],this.filter="",this.initFlag=!1,this.loadData())}},modelValue:{deep:!0,handler(s){s&&(s instanceof String&&s.indexOf(",")!=-1&&(s=s.split(",")),this.multiple&&s instanceof Array?this.selected=s:this.selected=[this.modelValue],this.initFlag&&(this.initFlag=!1,this.loadData()))}}},data(){return{initFlag:!0,page:1,size:1e3,data:[],selected:[],filter:""}},methods:{searchInput(s){s.length<1||this.search(s)},search(s){this.current=1,this.loadData()},input(s){this.selected=[],this.multiple&&s instanceof Array&&(this.selected=s),this.$emit("update:modelValue",s),this.$emit("input",s)},change(s){let e=new Array;if(this.multiple)for(let t=0;t<s.length;t++)e.push(s[t].value);else s?e=s.value:e="";this.$emit("update:modelValue",e),this.$emit("change",s)},loadData(){this.selected&&this.selected.length>1&&(this.size=200);let s={page:{current:this.page,size:this.size+this.selected.length},label:this.filter,value:this.filter,vars:this.vars,selected:this.selected};this.$post(this.url,s).then(e=>{let t=e.data.data;t&&(this.data=t.rows)})},up(){this.page>1&&(this.page--,this.loadData())},down(){this.page++,this.loadData()}}},CEe={class:"gray-color"};function wEe(s,e,t,i,n,o){const r=ie.resolveComponent("h-search"),a=ie.resolveComponent("Button"),l=ie.resolveComponent("Select");return ie.openBlock(),ie.createBlock(l,{multiple:t.multiple,disabled:t.disabled,"model-value":t.modelValue,datas:n.data,onChange:o.change,onInput:o.input},{top:ie.withCtx(()=>[ie.createVNode(r,{onSearch:o.search,onInput:o.searchInput,block:"",modelValue:n.filter,"onUpdate:modelValue":e[0]||(e[0]=c=>n.filter=c),height:30,placeholder:"搜索"},null,8,["onSearch","onInput","modelValue"])]),bottom:ie.withCtx(()=>[ie.createVNode(a,{icon:"h-icon-left","no-border":!0,onClick:o.up},null,8,["onClick"]),ie.createElementVNode("span",CEe,ie.toDisplayString(n.page),1),ie.createVNode(a,{icon:"h-icon-right","no-border":!0,onClick:o.down},null,8,["onClick"])]),_:1},8,["multiple","disabled","model-value","datas","onChange","onInput"])}const yEe=dn(bEe,[["render",wEe]]),SEe={name:"PaasPageTable",props:{showButton:{default:1},checkbox:{default:!1},height:{default:0},radio:{default:!1},border:{default:!0},stripe:{default:!1},params:{},columns:{default:[]},id:{default:"id"},path:"",module:""},computed:{queryData(){return this.$store.queryData},current(){return this.$store.menus.current},menuData(){return this.$store.menus.data},menuId(){return this.$store.menus.menuId},buttonProxy(){return this.$store.buttonProxy}},mounted(){this.columns.forEach((s,e)=>{s.render||(this.searchData.push({value:s.prop,label:s.title}),e==0&&(this.searchKey=s.prop))}),this.module?this.url=this.module+"/page":this.path?this.url=this.path:this.url=this.$route.path+"/page",this.showButton&&this.getMenuButtons(),this.$bus.on("ReloadData",()=>{this.loadData()}),this.selectData=[],this.loadData()},data(){return{url:"",colors:["primary","blue","green","yellow","dark"],buttons:[],loadingFlag:!0,loading:!1,datas:[],searchData:[],searchKey:"",searchVal:"",selectData:[]}},methods:{getColor(s){if(s<this.colors.length)return this.colors[s];if(s>=this.colors.length*4)return this.colors[s-this.colors.length*4];if(s>=this.colors.length*3)return this.colors[s-this.colors.length*3];if(s>=this.colors.length*2)return this.colors[s-this.colors.length*2];if(s>=this.colors.length)return this.colors[s-this.colors.length]},getMenuButtons(){if(this.buttonProxy!="")this.$post(this.buttonProxy+"/sysbuttons/getButtons/"+this.menuId).then(s=>{this.buttons=s.data.data});else{let s=this.$route.path;this.buttons=this.readBtns(this.menuData,s)}},readBtns(s,e){for(var t=0;t<s.length;t++){var i=s[t];if(i.key==e)return i.buttons;if(i.children){var n=this.readBtns(i.children,e);if(n)return n}}},loadData(){if(this.loadingFlag)this.loadingFlag=!1,setTimeout(()=>{this.loadingFlag=!0},1e3);else return;this.loading=!0,this.$post(this.url,{page:{current:this.$store.page.page,size:this.$store.page.size},...this.$store.queryData[this.current],...this.params}).then(s=>{if(this.loading=!1,s.data==null){this.datas=[],this.$store.page.total=0;return}if(s.data.code!=this.$success&&s.msg!=null){Xn.message.error(s.msg);return}if(s.data.data){s.data.data.rows!=null?this.datas=s.data.data.rows:this.datas=[],this.$store.page.total=s.data.data.total;return}else this.datas=[],this.$store.page.total=0})},rowSelect(s){this.checkbox&&(this.selectData=s)},trClick(s){this.checkbox||(this.selectData=s)},handle(s){this.$store.setAction(s),this.$store.setSee(!1);var e=this.$parent[s];if(e&&e instanceof Function){e(this.selectData);return}else this[s]?this[s]():console.error("按钮事件方法未找到:",s)},search(s){let e={};this.selectData=[],e[this.searchKey]=s,this.$store.setQueryData(e),this.loadData()},query(){this.$store.setSee(!1),this.$store.setAction("query"),this.$store.setSubTitle("查询"),this.$router.push(this.current+"/query")},add(){let s=this.getColumnId();this.$store.setSee(!1),this.$store.setSubTitle("创建"),s?this.$router.push({path:this.current+"/form",query:{id:s}}):this.$router.push(this.current+"/form")},edit(){let s=this.getColumnId();s!=null&&(this.$store.setSee(!1),this.$store.setSubTitle("编辑"),this.$router.push({path:this.current+"/form",query:{id:s}}))},del(){let s=this.getColumnId();s!=null&&Xn.confirm({content:"确定删除?",onConfirm:()=>{let e=this.$store.menus.current+"/"+s;this.module&&(e=this.module+"/"+s),this.$delete(e).then(t=>{let i=t.data;this.$dyAlert(i,!1)})}})},see(){let s=this.getColumnId();s!=null&&(this.$store.setSubTitle("查看"),this.$store.setSee(!0),this.$router.push({path:this.current+"/form",query:{id:s}}))},getColumnId(){let s=this.selectData;if(this.checkbox&&(s=this.selectData[0]),s==null||s.length==0)return this.$store.forms.action!="add"&&Xn.message.warn("请选中任意列表数据"),null;let e="";return this.id?this.id instanceof Array?(this.id.forEach(t=>{e+=s[t]+"&"}),e=e.substring(0,e.length-1)):e+=s[this.id]:e=s[this.columns[0].prop],e},seClick(){this.$emit("seClick",this.selectData)}}},xEe={class:"h-panel-bar h-panel-no-border"},kEe={key:3,class:"h-panel-right"},LEe={class:"h-input-group"},EEe={class:"h-input-addon"},DEe={class:"h-panel-body h-panel-no-border"},TEe={class:"h-panel-bar"};function IEe(s,e,t,i,n,o){const r=ie.resolveComponent("Button"),a=ie.resolveComponent("Select"),l=ie.resolveComponent("Search"),c=ie.resolveComponent("Table"),d=ie.resolveComponent("Pagination");return ie.openBlock(),ie.createElementBlock("div",null,[ie.createElementVNode("div",xEe,[t.showButton==2?(ie.openBlock(),ie.createBlock(r,{key:0,onClick:o.seClick,color:"blue",icon:"h-icon-check"},{default:ie.withCtx(()=>[ie.createTextVNode("选择")]),_:1},8,["onClick"])):ie.createCommentVNode("",!0),t.showButton==1?(ie.openBlock(),ie.createBlock(r,{key:1,icon:"h-icon-search",onClick:o.query},{default:ie.withCtx(()=>[ie.createTextVNode("查询")]),_:1},8,["onClick"])):ie.createCommentVNode("",!0),t.showButton==1?(ie.openBlock(!0),ie.createElementBlock(ie.Fragment,{key:2},ie.renderList(n.buttons,(u,h)=>(ie.openBlock(),ie.createBlock(r,{key:h,color:o.getColor(h),disabled:n.selectData.length==0&&u.state==0,onClick:f=>o.handle(u.tag?u.tag:u.click,u.title)},{default:ie.withCtx(()=>[ie.createElementVNode("i",{class:ie.normalizeClass(u.icon)},null,2),ie.createTextVNode(" "+ie.toDisplayString(u.title),1)]),_:2},1032,["color","disabled","onClick"]))),128)):ie.createCommentVNode("",!0),t.showButton==1||t.showButton==2?(ie.openBlock(),ie.createElementBlock("div",kEe,[ie.createElementVNode("div",LEe,[ie.createElementVNode("div",EEe,[ie.createVNode(a,{datas:n.searchData,deletable:!1,autosize:!0,modelValue:n.searchKey,"onUpdate:modelValue":e[0]||(e[0]=u=>n.searchKey=u),"no-border":!0},null,8,["datas","modelValue"])]),ie.createVNode(l,{onSearch:o.search,modelValue:n.searchVal,"onUpdate:modelValue":e[1]||(e[1]=u=>n.searchVal=u),placeholder:"搜索"},null,8,["onSearch","modelValue"])])])):ie.createCommentVNode("",!0)]),ie.createElementVNode("div",DEe,[ie.createVNode(c,{ref:"table",datas:n.datas,checkbox:t.checkbox,"is-select-row":!t.checkbox,height:t.height,radio:t.radio,stripe:t.stripe,loading:n.loading,"select-when-click-tr":"",columns:t.columns,onSelect:o.rowSelect,onTrClick:o.trClick},null,8,["datas","checkbox","is-select-row","height","radio","stripe","loading","columns","onSelect","onTrClick"])]),ie.createElementVNode("div",TEe,[ie.createVNode(d,{modelValue:s.$store.page,"onUpdate:modelValue":e[2]||(e[2]=u=>s.$store.page=u),align:"right",onChange:o.loadData},null,8,["modelValue","onChange"])])])}const NEe=dn(SEe,[["render",IEe]]),AEe={name:"PaasSelect",props:{multiple:{default:!1},disabled:{default:!1},modelValue:{},params:""},data(){return{data:[]}},mounted(){this.data=this.$store.dicts[this.params]},methods:{input(s){this.$emit("update:modelValue",s.value),this.$emit("input",s)},change(s){this.$emit("update:modelValue",s.value),this.$emit("change",s)}}};function REe(s,e,t,i,n,o){const r=ie.resolveComponent("Select");return ie.openBlock(),ie.createBlock(r,{datas:n.data,multiple:t.multiple,"model-value":t.modelValue,onChange:o.change,onInput:o.input,disabled:t.disabled},null,8,["datas","multiple","model-value","onChange","onInput","disabled"])}const OEe=dn(AEe,[["render",REe]]),MEe={name:"PaasTitleBar",data(){return{titles:[{title:this.$store.menus.title},{title:this.$store.menus.subTitle}]}},methods:{close(){this.$router.back()}}},PEe={class:"h-panel-bar"},FEe={class:"h-panel-right"},BEe=[ie.createElementVNode("i",{class:"h-icon-close"},null,-1)];function WEe(s,e,t,i,n,o){const r=ie.resolveComponent("Breadcrumb");return ie.openBlock(),ie.createElementBlock("div",PEe,[ie.createVNode(r,{datas:n.titles},null,8,["datas"]),ie.createElementVNode("span",FEe,[ie.createElementVNode("button",{onClick:e[0]||(e[0]=(...a)=>o.close&&o.close(...a)),class:"h-btn h-btn-no-border h-btn-text-primary",style:{padding:"0px"}},BEe)])])}const VEe=dn(MEe,[["render",WEe]]),HEe={name:"PaasTree",props:{multiple:{default:!1},disabled:{default:!1},modelValue:{},params:{},url:""},data(){return{param:{keyName:"value",titleName:"label",parentName:"supperId",childrenName:"children",dataMode:"list",getTotalDatas:s=>{this.$post(this.url,{page:{current:1,size:1e6},...this.params}).then(e=>{let t=e.data.data.rows;s(t)})}}}},mounted(){},methods:{input(s){this.$emit("update:modelValue",s.value),this.$emit("input",s)},change(s){this.$emit("update:modelValue",s.value),this.$emit("change",s)}}};function $Ee(s,e,t,i,n,o){const r=ie.resolveComponent("TreePicker");return ie.openBlock(),ie.createBlock(r,{option:n.param,"model-value":t.modelValue,filterable:!0,onChange:o.change,onInput:o.input,multiple:t.multiple,disabled:t.disabled},null,8,["option","model-value","onChange","onInput","multiple","disabled"])}const zEe=dn(HEe,[["render",$Ee]]),UEe={name:"PaasUploadModal",props:{url:"",title:"",accept:"",multiple:{default:!1},name:{default:"file"},template:"",params:{default:null},success:{default:"success"}},data(){return{opend:!1,isLoading:!1,file:[],message:""}},methods:{fileChange(){this.message="",this.$refs.inputFile.click()},add(s){this.message="",this.file=s.target.files},confirm(s){if(s.preventDefault(),this.file.length==0)return this.message="未上传任何文件",!1;this.isLoading=!0;let e=new FormData;for(var t=0;t<this.file.length;t++)e.append(this.name,this.file[t]);if(this.params)for(var i in this.params)e.append(i,this.params[i]||"");this.$upload(this.url,e).then(n=>{this.isLoading=!1,n.data.code==this.$success?(Xn.message.info("上传成功"),this.file=[],this.$bus.emit(this.success,n.data.msg)):Xn.message.error(n.data.msg),this.message=n.data.msg}).catch(n=>{this.isLoading=!1,this.message=n})},show(){this.file=[],this.message="",this.opend=!0},tempDown(){location.href="/static/excel/"+this.template}}},jEe=[ie.createElementVNode("div",null,[ie.createElementVNode("p",{class:"text-center"},[ie.createElementVNode("i",{class:"h-icon-upload blue-color",style:{"font-size":"30px"}})]),ie.createElementVNode("p",{class:"text-center"},"点击这里上传")],-1)],qEe=["disabled","accept","multiple"],KEe={class:"link"},GEe=ie.createElementVNode("div",null,null,-1),ZEe={style:{"font-size":"13px",color:"red",float:"left"}};function YEe(s,e,t,i,n,o){const r=ie.resolveComponent("h-button"),a=ie.resolveComponent("Modal"),l=ie.resolveDirective("width");return ie.openBlock(),ie.createBlock(a,{modelValue:n.opend,"onUpdate:modelValue":e[4]||(e[4]=c=>n.opend=c),"close-on-mask":!1,"has-divider":!0},{header:ie.withCtx(()=>[ie.createTextVNode(ie.toDisplayString(t.title||t.template.substring(0,t.template.indexOf(".")))+" ",1),t.template!=null?(ie.openBlock(),ie.createElementBlock("span",{key:0,class:"link",style:{"font-size":"14px"},onClick:e[0]||(e[0]=(...c)=>o.tempDown&&o.tempDown(...c))},"模板下载")):ie.createCommentVNode("",!0)]),footer:ie.withCtx(()=>[ie.createElementVNode("span",ZEe,ie.toDisplayString(n.message),1),ie.createVNode(r,{color:"primary",icon:"h-icon-error",onClick:e[3]||(e[3]=c=>n.opend=!1)},{default:ie.withCtx(()=>[ie.createTextVNode("关闭")]),_:1}),ie.createVNode(r,{color:"blue",icon:"h-icon-upload",loading:n.isLoading,onClick:o.confirm},{default:ie.withCtx(()=>[ie.createTextVNode("上传")]),_:1},8,["loading","onClick"])]),default:ie.withCtx(()=>[ie.withDirectives((ie.openBlock(),ie.createElementBlock("div",null,[ie.createElementVNode("div",{class:"h-uploader-browse-button h-uploader-drop-element",style:{position:"relative","z-index":"1"},onClick:e[1]||(e[1]=(...c)=>o.fileChange&&o.fileChange(...c))},jEe),ie.withDirectives(ie.createElementVNode("input",{disabled:n.isLoading,ref:"inputFile",type:"file",accept:t.accept,onChange:e[2]||(e[2]=c=>o.add(c)),multiple:t.multiple},null,40,qEe),[[ie.vShow,!1]]),ie.createElementVNode("ol",null,[(ie.openBlock(!0),ie.createElementBlock(ie.Fragment,null,ie.renderList(n.file,(c,d)=>(ie.openBlock(),ie.createElementBlock("li",{key:d,style:{border:"solid 2px red","border-bottom-width":"2px"}},[ie.createElementVNode("span",KEe,ie.toDisplayString(c.name),1)]))),128))]),GEe])),[[l,400]])]),_:1},8,["modelValue"])}const XEe=dn(UEe,[["render",YEe]]),QEe={name:"FormDate",props:{label:"",prop:"",type:{default:"text"},single:{default:!1},icon:{default:""},readonly:{default:!1},disabled:{default:!1},modelValue:{},format:{default:"YYYY-MM-DD"},type:{default:"date"}},computed:{see(){return this.$store.forms.see}},methods:{change(s){this.$emit("update:modelValue",s)}}};function JEe(s,e,t,i,n,o){const r=ie.resolveComponent("paas-date"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,icon:t.icon,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{readonly:t.readonly,disabled:t.disabled,type:t.type,"model-value":t.modelValue,format:t.format,onChange:o.change},null,8,["readonly","disabled","type","model-value","format","onChange"])]),_:1},8,["label","prop","icon","single"])}const eDe=dn(QEe,[["render",JEe]]),tDe={name:"FormInput",props:{label:"",prop:"",type:{default:"text"},modelValue:String,single:{default:!1},icon:{default:""},readonly:{default:!1}},computed:{see(){return this.$store.forms.see}},methods:{updateValue(s){this.$emit("update:modelValue",s)}}};function iDe(s,e,t,i,n,o){const r=ie.resolveComponent("Input"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,icon:t.icon,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{type:t.type,"model-value":t.modelValue,onInput:e[0]||(e[0]=l=>o.updateValue(l.target.value)),readonly:o.see||t.readonly},null,8,["type","model-value","readonly"])]),_:1},8,["label","prop","icon","single"])}const nDe=dn(tDe,[["render",iDe]]),sDe={name:"FormNumber",mounted(){},props:{label:"",prop:"",type:{default:"text"},value:{},modelValue:{},single:{default:!1},icon:{default:""},readonly:{default:!1},precision:{default:0},max:{},min:{}},computed:{see(){return this.$store.forms.see}},methods:{updateValue(s){this.$emit("update:modelValue",s)}}};function oDe(s,e,t,i,n,o){const r=ie.resolveComponent("NumberInput"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,icon:t.icon,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{type:t.type,precision:t.precision,max:t.max,min:t.min,"model-value":t.modelValue,onInput:o.updateValue,readonly:o.see||t.readonly},null,8,["type","precision","max","min","model-value","onInput","readonly"])]),_:1},8,["label","prop","icon","single"])}const rDe=dn(sDe,[["render",oDe]]),aDe={name:"FormPageSelect",props:{multiple:{default:!1},url:"",vars:{},modelValue:String,single:{default:!1},disabled:{default:!1},label:"",prop:""},computed:{see(){return this.$store.forms.see}},methods:{input(s){this.$emit("update:modelValue",s),this.$emit("input",s)},change(s){let e=new Array;if(this.multiple)for(let t=0;t<s.length;t++)e.push(s[t].value);else e=s.value;this.$emit("update:modelValue",e),this.$emit("change",s)}}};function lDe(s,e,t,i,n,o){const r=ie.resolveComponent("paas-page-select"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{multiple:t.multiple,disabled:o.see||t.disabled,url:t.url,vars:t.vars,"model-value":t.modelValue,onInput:o.input,onChange:o.change},null,8,["multiple","disabled","url","vars","model-value","onInput","onChange"])]),_:1},8,["label","prop","single"])}const cDe=dn(aDe,[["render",lDe]]),dDe={name:"FormSelect",props:{multiple:{default:!1},single:{default:!1},modelValue:{},params:"",label:"",prop:"",disabled:{default:!1}},computed:{see(){return this.$store.forms.see}},methods:{input(s){this.$emit("update:modelValue",s.value),this.$emit("input",s)},change(s){this.$emit("update:modelValue",s.value),this.$emit("change",s)}}};function uDe(s,e,t,i,n,o){const r=ie.resolveComponent("paas-select"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{params:t.params,disabled:o.see||t.disabled,multiple:t.multiple,"model-value":t.modelValue,onChange:o.change,onInput:o.input},null,8,["params","disabled","multiple","model-value","onChange","onInput"])]),_:1},8,["label","prop","single"])}const hDe=dn(dDe,[["render",uDe]]),fDe={name:"FormSwitch",props:{label:"",prop:"",modelValue:{},single:{default:!1},icon:{default:""},readonly:{default:!1},single:{default:!1}},computed:{see(){return this.$store.forms.see}},methods:{inputEvent(s){this.$emit("update:modelValue",s)}}},gDe={slot:"open"},pDe={slot:"close"};function mDe(s,e,t,i,n,o){const r=ie.resolveComponent("Switch");return ie.openBlock(),ie.createBlock(r,{"model-value":t.modelValue,"true-value":"1","false-value":"0"},{default:ie.withCtx(()=>[ie.createElementVNode("span",gDe,ie.toDisplayString(t.label),1),ie.createElementVNode("span",pDe,ie.toDisplayString(t.label),1)]),_:1},8,["model-value"])}const _De=dn(fDe,[["render",mDe]]),vDe={name:"FormTree",props:{multiple:{default:!1},single:{default:!1},modelValue:{},params:{},label:"",prop:"",disabled:{default:!1},url:""},computed:{see(){return this.$store.forms.see}},methods:{input(s){this.$emit("update:modelValue",s.value),this.$emit("input",s)},change(s){this.$emit("update:modelValue",s.value),this.$emit("change",s)}}};function bDe(s,e,t,i,n,o){const r=ie.resolveComponent("paas-tree"),a=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(a,{label:t.label,prop:t.prop,single:t.single},{default:ie.withCtx(()=>[ie.createVNode(r,{params:t.params,disabled:o.see||t.disabled,multiple:t.multiple,"model-value":t.modelValue,onChange:o.change,onInput:o.input,url:t.url},null,8,["params","disabled","multiple","model-value","onChange","onInput","url"])]),_:1},8,["label","prop","single"])}const CDe=dn(vDe,[["render",bDe]]),wDe={name:"FormUpload",props:{url:"",accept:"",multiple:{default:!1},show:{default:!0},name:{default:"file"},single:{default:!1},params:{default:null},success:{default:"success"},value:"",label:"",prop:""},data(){return{cValue:this.value,isLoading:!1,file:[],message:""}},computed:{see(){return this.$store.forms.see}},methods:{fileChange(){this.$refs.inputFile.click()},add(s){this.file=s.target.files;for(var e=new Array,t=0;t<this.file.length;t++)e.push(this.file[t].name);this.cValue=e.join(",")},confirm(s){s.preventDefault(),this.isLoading=!0;let e=new FormData;for(var t=0;t<this.file.length;t++)e.append(this.name,this.file[t]);if(this.params)for(var i in this.params)e.append(i,this.params[i]||"");this.$upload(this.url,e).then(n=>{this.isLoading=!1,n.data.code==this.$success?(Xn.message.info("上传成功"),this.file=[],this.cValue=n.data.data,this.$emit(this.success,n.data.data)):Xn.message.error(n.data.msg)}).catch(n=>{this.isLoading=!1,Xn.message.error(n)})}}},yDe=["disabled","accept","multiple"],SDe={class:"h-input-group"},xDe={class:"h-input h-input-suffix-icon"};function kDe(s,e,t,i,n,o){const r=ie.resolveComponent("Input"),a=ie.resolveComponent("h-button"),l=ie.resolveComponent("FormItem");return ie.openBlock(),ie.createBlock(l,{label:t.label,single:t.single,prop:t.prop},{default:ie.withCtx(()=>[ie.withDirectives(ie.createElementVNode("input",{disabled:n.isLoading,ref:"inputFile",type:"file",accept:t.accept,onChange:e[0]||(e[0]=c=>o.add(c)),multiple:t.multiple},null,40,yDe),[[ie.vShow,!1]]),ie.createElementVNode("div",SDe,[ie.createElementVNode("div",xDe,[ie.createVNode(r,{type:"text",name:t.name,value:n.cValue,disabled:o.see,readonly:""},null,8,["name","value","disabled"]),ie.withDirectives(ie.createElementVNode("i",{class:"h-icon-upload",onClick:e[1]||(e[1]=(...c)=>o.fileChange&&o.fileChange(...c)),style:{cursor:"pointer","padding-right":"5px"}},null,512),[[ie.vShow,!o.see]])]),ie.createVNode(a,{color:"blue",icon:"h-icon-completed",loading:n.isLoading,onClick:o.confirm,disabled:n.file.length<=0},{default:ie.withCtx(()=>[ie.createTextVNode("上传")]),_:1},8,["loading","onClick","disabled"])])]),_:1},8,["label","single","prop"])}const LDe=dn(wDe,[["render",kDe]]);var eo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dq(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var uq={exports:{}};/*!
|
|
1125
1125
|
* Quill Editor v1.3.7
|
|
1126
1126
|
* https://quilljs.com/
|
|
1127
1127
|
* Copyright (c) 2014, Jason Chen
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as a } from "./index-
|
|
1
|
+
import { m as a } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as s } from "./index-
|
|
1
|
+
import { m as s } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var R = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var _ = (e, t, r) => (R(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import { t as K, m as E } from "./index-
|
|
4
|
+
import { t as K, m as E } from "./index-X_lRmwCM.js";
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
6
6
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
7
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as a } from "./index-
|
|
1
|
+
import { m as a } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m } from "./index-
|
|
1
|
+
import { m } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as i } from "./index-
|
|
1
|
+
import { m as i } from "./index-X_lRmwCM.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|