@arcgis/create 5.1.0-next.81 → 5.1.0-next.82
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/init.js +457 -454
- package/package.json +1 -3
package/dist/init.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import Ca from "node:events";
|
|
2
|
+
import Aa from "node:child_process";
|
|
3
|
+
import La from "node:path";
|
|
4
|
+
import Oa from "node:fs";
|
|
5
|
+
import ae, { stdout as Nn, stdin as yo } from "node:process";
|
|
6
6
|
import * as st from "node:readline";
|
|
7
|
-
import
|
|
7
|
+
import _a from "node:readline";
|
|
8
8
|
import Zn, { ReadStream as es } from "node:tty";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import { styleText as le } from "node:util";
|
|
10
|
+
import $a from "node:os";
|
|
11
|
+
import ie from "fs/promises";
|
|
11
12
|
import Je from "path";
|
|
12
13
|
import Ae from "process";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
14
|
+
import Na from "child_process";
|
|
15
|
+
import Pa, { promisify as Ia } from "util";
|
|
16
|
+
import Ta from "node:url";
|
|
17
|
+
import ka from "url";
|
|
18
|
+
import xa from "node:module";
|
|
19
|
+
import Ra from "buffer";
|
|
19
20
|
function Mt(e) {
|
|
20
21
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
21
22
|
}
|
|
@@ -856,7 +857,7 @@ function vo() {
|
|
|
856
857
|
return ut.Option = h, ut.DualOptions = m, ut;
|
|
857
858
|
}
|
|
858
859
|
var Xt = {}, rs;
|
|
859
|
-
function
|
|
860
|
+
function Ma() {
|
|
860
861
|
if (rs) return Xt;
|
|
861
862
|
rs = 1;
|
|
862
863
|
const e = 3;
|
|
@@ -900,10 +901,10 @@ function Ra() {
|
|
|
900
901
|
return Xt.suggestSimilar = m, Xt;
|
|
901
902
|
}
|
|
902
903
|
var os;
|
|
903
|
-
function
|
|
904
|
+
function Da() {
|
|
904
905
|
if (os) return lt;
|
|
905
906
|
os = 1;
|
|
906
|
-
const e =
|
|
907
|
+
const e = Ca.EventEmitter, h = Aa, m = La, g = Oa, f = ae, { Argument: i, humanReadableArgName: s } = Pn(), { CommanderError: a } = Dt(), { Help: o, stripColor: p } = bo(), { Option: n, DualOptions: t } = vo(), { suggestSimilar: l } = Ma();
|
|
907
908
|
class c extends e {
|
|
908
909
|
/**
|
|
909
910
|
* Initialize a new `Command`.
|
|
@@ -2585,35 +2586,35 @@ Expecting one of '${w.join("', '")}'`);
|
|
|
2585
2586
|
return lt.Command = c, lt.useColor = d, lt;
|
|
2586
2587
|
}
|
|
2587
2588
|
var as;
|
|
2588
|
-
function
|
|
2589
|
+
function Fa() {
|
|
2589
2590
|
if (as) return pe;
|
|
2590
2591
|
as = 1;
|
|
2591
|
-
const { Argument: e } = Pn(), { Command: h } =
|
|
2592
|
+
const { Argument: e } = Pn(), { Command: h } = Da(), { CommanderError: m, InvalidArgumentError: g } = Dt(), { Help: f } = bo(), { Option: i } = vo();
|
|
2592
2593
|
return pe.program = new h(), pe.createCommand = (s) => new h(s), pe.createOption = (s, a) => new i(s, a), pe.createArgument = (s, a) => new e(s, a), pe.Command = h, pe.Option = i, pe.Argument = e, pe.Help = f, pe.CommanderError = m, pe.InvalidArgumentError = g, pe.InvalidOptionArgumentError = g, pe;
|
|
2593
2594
|
}
|
|
2594
2595
|
var ls;
|
|
2595
|
-
function
|
|
2596
|
+
function Ba() {
|
|
2596
2597
|
return ls || (ls = 1, (function(e, h) {
|
|
2597
|
-
const m =
|
|
2598
|
+
const m = Fa();
|
|
2598
2599
|
h = e.exports = {}, h.program = new m.Command(), h.Argument = m.Argument, h.Command = m.Command, h.CommanderError = m.CommanderError, h.Help = m.Help, h.InvalidArgumentError = m.InvalidArgumentError, h.InvalidOptionArgumentError = m.InvalidArgumentError, h.Option = m.Option, h.createCommand = (g) => new m.Command(g), h.createOption = (g, f) => new m.Option(g, f), h.createArgument = (g, f) => new m.Argument(g, f);
|
|
2599
2600
|
})(rt, rt.exports)), rt.exports;
|
|
2600
2601
|
}
|
|
2601
|
-
var
|
|
2602
|
-
const
|
|
2603
|
-
program:
|
|
2604
|
-
createCommand:
|
|
2605
|
-
createArgument:
|
|
2606
|
-
createOption:
|
|
2607
|
-
CommanderError:
|
|
2608
|
-
InvalidArgumentError:
|
|
2609
|
-
InvalidOptionArgumentError:
|
|
2602
|
+
var Ga = Ba();
|
|
2603
|
+
const qa = /* @__PURE__ */ Mt(Ga), {
|
|
2604
|
+
program: Rf,
|
|
2605
|
+
createCommand: Mf,
|
|
2606
|
+
createArgument: Df,
|
|
2607
|
+
createOption: Ff,
|
|
2608
|
+
CommanderError: Bf,
|
|
2609
|
+
InvalidArgumentError: Gf,
|
|
2610
|
+
InvalidOptionArgumentError: qf,
|
|
2610
2611
|
// deprecated old name
|
|
2611
|
-
Command:
|
|
2612
|
-
Argument:
|
|
2613
|
-
Option:
|
|
2614
|
-
Help:
|
|
2615
|
-
} =
|
|
2616
|
-
version:
|
|
2612
|
+
Command: ja,
|
|
2613
|
+
Argument: jf,
|
|
2614
|
+
Option: Uf,
|
|
2615
|
+
Help: Hf
|
|
2616
|
+
} = qa, Ua = "5.1.0-next.82", Ha = {
|
|
2617
|
+
version: Ua
|
|
2617
2618
|
}, D = {
|
|
2618
2619
|
react: "react",
|
|
2619
2620
|
vite: "vite",
|
|
@@ -2633,7 +2634,7 @@ const Ga = /* @__PURE__ */ Mt(Ba), {
|
|
|
2633
2634
|
luminaComponents: "lumina-components"
|
|
2634
2635
|
}, In = {
|
|
2635
2636
|
webGisSdk: "web-gis-sdk"
|
|
2636
|
-
},
|
|
2637
|
+
}, Va = {
|
|
2637
2638
|
[In.webGisSdk]: {
|
|
2638
2639
|
[D.angular]: "templates/js-maps-sdk-angular",
|
|
2639
2640
|
[D.cdn]: "templates/js-maps-sdk-cdn",
|
|
@@ -2650,7 +2651,7 @@ const Ga = /* @__PURE__ */ Mt(Ba), {
|
|
|
2650
2651
|
[D.codingComponentsReact]: "templates/coding-components-react",
|
|
2651
2652
|
[D.codingComponentsVite]: "templates/coding-components-vite"
|
|
2652
2653
|
}
|
|
2653
|
-
},
|
|
2654
|
+
}, se = {
|
|
2654
2655
|
codeSample: "CODE_SAMPLE",
|
|
2655
2656
|
appSample: "APP_SAMPLE"
|
|
2656
2657
|
}, So = "github.com", Tn = "main", wo = {
|
|
@@ -2670,7 +2671,7 @@ const Ga = /* @__PURE__ */ Mt(Ba), {
|
|
|
2670
2671
|
[D.aiComponentsCustomAgentHilReact]: "Esri/jsapi-resources",
|
|
2671
2672
|
// code sample templates
|
|
2672
2673
|
[D.luminaComponents]: "WebGIS/arcgis-web-components"
|
|
2673
|
-
},
|
|
2674
|
+
}, Wa = {
|
|
2674
2675
|
[D.angular]: "templates/js-maps-sdk-angular",
|
|
2675
2676
|
[D.cdn]: "templates/js-maps-sdk-cdn",
|
|
2676
2677
|
[D.node]: "templates/js-maps-sdk-node",
|
|
@@ -2686,27 +2687,27 @@ const Ga = /* @__PURE__ */ Mt(Ba), {
|
|
|
2686
2687
|
[D.aiComponentsCustomAgentToolsReact]: "templates/ai-components-custom-agent-tools-react",
|
|
2687
2688
|
[D.aiComponentsCustomAgentHilReact]: "templates/ai-components-custom-agent-hil-react",
|
|
2688
2689
|
[D.luminaComponents]: "packages/starter-packages/lumina-components"
|
|
2689
|
-
}, Wa = {
|
|
2690
|
-
[D.angular]: re.appSample,
|
|
2691
|
-
[D.cdn]: re.appSample,
|
|
2692
|
-
[D.node]: re.appSample,
|
|
2693
|
-
[D.react]: re.appSample,
|
|
2694
|
-
[D.vite]: re.appSample,
|
|
2695
|
-
[D.vue]: re.appSample,
|
|
2696
|
-
[D.webpack]: re.appSample,
|
|
2697
|
-
[D.codingComponentsAngular]: re.appSample,
|
|
2698
|
-
[D.codingComponentsReact]: re.appSample,
|
|
2699
|
-
[D.codingComponentsVite]: re.appSample,
|
|
2700
|
-
[D.disconnectedEnvironment]: re.appSample,
|
|
2701
|
-
[D.geometryOperatorWorker]: re.appSample,
|
|
2702
|
-
[D.aiComponentsCustomAgentToolsReact]: re.appSample,
|
|
2703
|
-
[D.aiComponentsCustomAgentHilReact]: re.appSample,
|
|
2704
|
-
[D.luminaComponents]: re.codeSample
|
|
2705
2690
|
}, Ya = {
|
|
2691
|
+
[D.angular]: se.appSample,
|
|
2692
|
+
[D.cdn]: se.appSample,
|
|
2693
|
+
[D.node]: se.appSample,
|
|
2694
|
+
[D.react]: se.appSample,
|
|
2695
|
+
[D.vite]: se.appSample,
|
|
2696
|
+
[D.vue]: se.appSample,
|
|
2697
|
+
[D.webpack]: se.appSample,
|
|
2698
|
+
[D.codingComponentsAngular]: se.appSample,
|
|
2699
|
+
[D.codingComponentsReact]: se.appSample,
|
|
2700
|
+
[D.codingComponentsVite]: se.appSample,
|
|
2701
|
+
[D.disconnectedEnvironment]: se.appSample,
|
|
2702
|
+
[D.geometryOperatorWorker]: se.appSample,
|
|
2703
|
+
[D.aiComponentsCustomAgentToolsReact]: se.appSample,
|
|
2704
|
+
[D.aiComponentsCustomAgentHilReact]: se.appSample,
|
|
2705
|
+
[D.luminaComponents]: se.codeSample
|
|
2706
|
+
}, Ka = {
|
|
2706
2707
|
[D.luminaComponents]: !0
|
|
2707
2708
|
};
|
|
2708
2709
|
var ft = { exports: {} }, cs;
|
|
2709
|
-
function
|
|
2710
|
+
function Ja() {
|
|
2710
2711
|
if (cs) return ft.exports;
|
|
2711
2712
|
cs = 1;
|
|
2712
2713
|
let e = process || {}, h = e.argv || [], m = e.env || {}, g = !(m.NO_COLOR || h.includes("--no-color")) && (!!m.FORCE_COLOR || h.includes("--color") || e.platform === "win32" || (e.stdout || {}).isTTY && m.TERM !== "dumb" || !!m.CI), f = (a, o, p = a) => (n) => {
|
|
@@ -2767,10 +2768,10 @@ function Ka() {
|
|
|
2767
2768
|
};
|
|
2768
2769
|
return ft.exports = s(), ft.exports.createColors = s, ft.exports;
|
|
2769
2770
|
}
|
|
2770
|
-
var
|
|
2771
|
-
const x = /* @__PURE__ */ Mt(
|
|
2771
|
+
var za = /* @__PURE__ */ Ja();
|
|
2772
|
+
const x = /* @__PURE__ */ Mt(za);
|
|
2772
2773
|
var Qt, us;
|
|
2773
|
-
function
|
|
2774
|
+
function Xa() {
|
|
2774
2775
|
if (us) return Qt;
|
|
2775
2776
|
us = 1;
|
|
2776
2777
|
const e = "\x1B", h = `${e}[`, m = "\x07", g = {
|
|
@@ -2811,22 +2812,22 @@ function za() {
|
|
|
2811
2812
|
};
|
|
2812
2813
|
return Qt = { cursor: g, scroll: f, erase: i, beep: m }, Qt;
|
|
2813
2814
|
}
|
|
2814
|
-
var
|
|
2815
|
+
var re = Xa();
|
|
2815
2816
|
function Tt(e, h, m) {
|
|
2816
2817
|
if (!m.some((s) => !s.disabled)) return e;
|
|
2817
2818
|
const g = e + h, f = Math.max(m.length - 1, 0), i = g < 0 ? f : g > f ? 0 : g;
|
|
2818
2819
|
return m[i].disabled ? Tt(i, h < 0 ? -1 : 1, m) : i;
|
|
2819
2820
|
}
|
|
2820
|
-
const
|
|
2821
|
-
const g = h.limit ?? 1 / 0, f = h.ellipsis ?? "", i = h?.ellipsisWidth ?? (f ? Eo(f,
|
|
2821
|
+
const Qa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, Za = (e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, el = (e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, Zt = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, ht = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, pt = /\t{1,1000}/y, ei = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu"), dt = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, tl = new RegExp("\\p{M}+", "gu"), il = { limit: 1 / 0, ellipsis: "" }, Eo = (e, h = {}, m = {}) => {
|
|
2822
|
+
const g = h.limit ?? 1 / 0, f = h.ellipsis ?? "", i = h?.ellipsisWidth ?? (f ? Eo(f, il, m).width : 0), s = m.ansiWidth ?? 0, a = m.controlWidth ?? 0, o = m.tabWidth ?? 8, p = m.ambiguousWidth ?? 1, n = m.emojiWidth ?? 2, t = m.fullWidthWidth ?? 2, l = m.regularWidth ?? 1, c = m.wideWidth ?? 2;
|
|
2822
2823
|
let u = 0, d = 0, v = e.length, r = 0, b = !1, w = v, y = Math.max(0, g - i), S = 0, E = 0, C = 0, _ = 0;
|
|
2823
2824
|
e: for (; ; ) {
|
|
2824
2825
|
if (E > S || d >= v && d > u) {
|
|
2825
2826
|
const $ = e.slice(S, E) || e.slice(u, d);
|
|
2826
2827
|
r = 0;
|
|
2827
|
-
for (const N of $.replaceAll(
|
|
2828
|
+
for (const N of $.replaceAll(tl, "")) {
|
|
2828
2829
|
const P = N.codePointAt(0) || 0;
|
|
2829
|
-
if (
|
|
2830
|
+
if (Za(P) ? _ = t : el(P) ? _ = c : p !== l && Qa(P) ? _ = p : _ = l, C + _ > y && (w = Math.min(w, Math.max(S, u) + r)), C + _ > g) {
|
|
2830
2831
|
b = !0;
|
|
2831
2832
|
break e;
|
|
2832
2833
|
}
|
|
@@ -2878,7 +2879,7 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2878
2879
|
d += 1;
|
|
2879
2880
|
}
|
|
2880
2881
|
return { width: b ? y : C, index: b ? w : v, truncated: b, ellipsed: b && g >= i };
|
|
2881
|
-
},
|
|
2882
|
+
}, nl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, ze = (e, h = {}) => Eo(e, nl, h).width, Ft = "\x1B", Co = "", sl = 39, kn = "\x07", Ao = "[", rl = "]", Lo = "m", xn = `${rl}8;;`, fs = new RegExp(`(?:\\${Ao}(?<code>\\d+)m|\\${xn}(?<uri>.*)${kn})`, "y"), ol = (e) => {
|
|
2882
2883
|
if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
|
|
2883
2884
|
if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
|
|
2884
2885
|
if (e === 1 || e === 2) return 22;
|
|
@@ -2888,7 +2889,7 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2888
2889
|
if (e === 8) return 28;
|
|
2889
2890
|
if (e === 9) return 29;
|
|
2890
2891
|
if (e === 0) return 0;
|
|
2891
|
-
}, hs = (e) => `${Ft}${Ao}${e}${Lo}`, ps = (e) => `${Ft}${xn}${e}${kn}`,
|
|
2892
|
+
}, hs = (e) => `${Ft}${Ao}${e}${Lo}`, ps = (e) => `${Ft}${xn}${e}${kn}`, al = (e) => e.map((h) => ze(h)), ti = (e, h, m) => {
|
|
2892
2893
|
const g = h[Symbol.iterator]();
|
|
2893
2894
|
let f = !1, i = !1, s = e.at(-1), a = s === void 0 ? 0 : ze(s), o = g.next(), p = g.next(), n = 0;
|
|
2894
2895
|
for (; !o.done; ) {
|
|
@@ -2896,15 +2897,15 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2896
2897
|
a + l <= m ? e[e.length - 1] += t : (e.push(t), a = 0), (t === Ft || t === Co) && (f = !0, i = h.startsWith(xn, n + 1)), f ? i ? t === kn && (f = !1, i = !1) : t === Lo && (f = !1) : (a += l, a === m && !p.done && (e.push(""), a = 0)), o = p, p = g.next(), n += t.length;
|
|
2897
2898
|
}
|
|
2898
2899
|
s = e.at(-1), !a && s !== void 0 && s.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
|
|
2899
|
-
},
|
|
2900
|
+
}, ll = (e) => {
|
|
2900
2901
|
const h = e.split(" ");
|
|
2901
2902
|
let m = h.length;
|
|
2902
2903
|
for (; m > 0 && !(ze(h[m - 1]) > 0); ) m--;
|
|
2903
2904
|
return m === h.length ? e : h.slice(0, m).join(" ") + h.slice(m).join("");
|
|
2904
|
-
},
|
|
2905
|
+
}, cl = (e, h, m = {}) => {
|
|
2905
2906
|
if (m.trim !== !1 && e.trim() === "") return "";
|
|
2906
2907
|
let g = "", f, i;
|
|
2907
|
-
const s = e.split(" "), a =
|
|
2908
|
+
const s = e.split(" "), a = al(s);
|
|
2908
2909
|
let o = [""];
|
|
2909
2910
|
for (const [u, d] of s.entries()) {
|
|
2910
2911
|
m.trim !== !1 && (o[o.length - 1] = (o.at(-1) ?? "").trimStart());
|
|
@@ -2927,7 +2928,7 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2927
2928
|
}
|
|
2928
2929
|
o[o.length - 1] += d;
|
|
2929
2930
|
}
|
|
2930
|
-
m.trim !== !1 && (o = o.map((u) =>
|
|
2931
|
+
m.trim !== !1 && (o = o.map((u) => ll(u)));
|
|
2931
2932
|
const p = o.join(`
|
|
2932
2933
|
`), n = p[Symbol.iterator]();
|
|
2933
2934
|
let t = n.next(), l = n.next(), c = 0;
|
|
@@ -2938,10 +2939,10 @@ const Xa = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170
|
|
|
2938
2939
|
const r = fs.exec(p)?.groups;
|
|
2939
2940
|
if (r?.code !== void 0) {
|
|
2940
2941
|
const b = Number.parseFloat(r.code);
|
|
2941
|
-
f = b ===
|
|
2942
|
+
f = b === sl ? void 0 : b;
|
|
2942
2943
|
} else r?.uri !== void 0 && (i = r.uri.length === 0 ? void 0 : r.uri);
|
|
2943
2944
|
}
|
|
2944
|
-
const v = f ?
|
|
2945
|
+
const v = f ? ol(f) : void 0;
|
|
2945
2946
|
d === `
|
|
2946
2947
|
` ? (i && (g += ps("")), f && v && (g += hs(v))) : u === `
|
|
2947
2948
|
` && (f && v && (g += hs(f)), i && (g += ps(i))), c += u.length, t = l, l = n.next();
|
|
@@ -2952,16 +2953,16 @@ function Sn(e, h, m) {
|
|
|
2952
2953
|
return String(e).normalize().replaceAll(`\r
|
|
2953
2954
|
`, `
|
|
2954
2955
|
`).split(`
|
|
2955
|
-
`).map((g) =>
|
|
2956
|
+
`).map((g) => cl(g, h, m)).join(`
|
|
2956
2957
|
`);
|
|
2957
2958
|
}
|
|
2958
|
-
const
|
|
2959
|
+
const ul = ["up", "down", "left", "right", "space", "enter", "cancel"], Se = { actions: new Set(ul), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: !0 };
|
|
2959
2960
|
function Rn(e, h) {
|
|
2960
2961
|
if (typeof e == "string") return Se.aliases.get(e) === h;
|
|
2961
2962
|
for (const m of e) if (m !== void 0 && Rn(m, h)) return !0;
|
|
2962
2963
|
return !1;
|
|
2963
2964
|
}
|
|
2964
|
-
function
|
|
2965
|
+
function fl(e, h) {
|
|
2965
2966
|
if (e === h) return;
|
|
2966
2967
|
const m = e.split(`
|
|
2967
2968
|
`), g = h.split(`
|
|
@@ -2969,7 +2970,7 @@ function ul(e, h) {
|
|
|
2969
2970
|
for (let s = 0; s < f; s++) m[s] !== g[s] && i.push(s);
|
|
2970
2971
|
return { lines: i, numLinesBefore: m.length, numLinesAfter: g.length, numLines: f };
|
|
2971
2972
|
}
|
|
2972
|
-
const
|
|
2973
|
+
const hl = globalThis.process.platform.startsWith("win"), wn = /* @__PURE__ */ Symbol("clack:cancel");
|
|
2973
2974
|
function Oo(e) {
|
|
2974
2975
|
return e === wn;
|
|
2975
2976
|
}
|
|
@@ -2977,13 +2978,13 @@ function mt(e, h) {
|
|
|
2977
2978
|
const m = e;
|
|
2978
2979
|
m.isTTY && m.setRawMode(h);
|
|
2979
2980
|
}
|
|
2980
|
-
function
|
|
2981
|
+
function pl({ input: e = yo, output: h = Nn, overwrite: m = !0, hideCursor: g = !0 } = {}) {
|
|
2981
2982
|
const f = st.createInterface({ input: e, output: h, prompt: "", tabSize: 1 });
|
|
2982
2983
|
st.emitKeypressEvents(e, f), e instanceof es && e.isTTY && e.setRawMode(!0);
|
|
2983
2984
|
const i = (s, { name: a, sequence: o }) => {
|
|
2984
2985
|
const p = String(s);
|
|
2985
2986
|
if (Rn([p, a, o], "cancel")) {
|
|
2986
|
-
g && h.write(
|
|
2987
|
+
g && h.write(re.cursor.show), process.exit(0);
|
|
2987
2988
|
return;
|
|
2988
2989
|
}
|
|
2989
2990
|
if (!m) return;
|
|
@@ -2994,8 +2995,8 @@ function hl({ input: e = yo, output: h = Nn, overwrite: m = !0, hideCursor: g =
|
|
|
2994
2995
|
});
|
|
2995
2996
|
});
|
|
2996
2997
|
};
|
|
2997
|
-
return g && h.write(
|
|
2998
|
-
e.off("keypress", i), g && h.write(
|
|
2998
|
+
return g && h.write(re.cursor.hide), e.once("keypress", i), () => {
|
|
2999
|
+
e.off("keypress", i), g && h.write(re.cursor.show), e instanceof es && e.isTTY && !hl && e.setRawMode(!1), f.terminal = !1, f.close();
|
|
2999
3000
|
};
|
|
3000
3001
|
}
|
|
3001
3002
|
const Mn = (e) => "columns" in e && typeof e.columns == "number" ? e.columns : 80, _o = (e) => "rows" in e && typeof e.rows == "number" ? e.rows : 20;
|
|
@@ -3050,10 +3051,10 @@ let Dn = class {
|
|
|
3050
3051
|
this.state = "cancel", this.close();
|
|
3051
3052
|
}, { once: !0 });
|
|
3052
3053
|
}
|
|
3053
|
-
this.rl =
|
|
3054
|
-
this.output.write(
|
|
3054
|
+
this.rl = _a.createInterface({ input: this.input, tabSize: 2, prompt: "", escapeCodeTimeout: 50, terminal: !0 }), this.rl.prompt(), this.opts.initialUserInput !== void 0 && this._setUserInput(this.opts.initialUserInput, !0), this.input.on("keypress", this.onKeypress), mt(this.input, !0), this.output.on("resize", this.render), this.render(), this.once("submit", () => {
|
|
3055
|
+
this.output.write(re.cursor.show), this.output.off("resize", this.render), mt(this.input, !1), h(this.value);
|
|
3055
3056
|
}), this.once("cancel", () => {
|
|
3056
|
-
this.output.write(
|
|
3057
|
+
this.output.write(re.cursor.show), this.output.off("resize", this.render), mt(this.input, !1), h(wn);
|
|
3057
3058
|
});
|
|
3058
3059
|
});
|
|
3059
3060
|
}
|
|
@@ -3086,14 +3087,14 @@ let Dn = class {
|
|
|
3086
3087
|
restoreCursor() {
|
|
3087
3088
|
const h = Sn(this._prevFrame, process.stdout.columns, { hard: !0, trim: !1 }).split(`
|
|
3088
3089
|
`).length - 1;
|
|
3089
|
-
this.output.write(
|
|
3090
|
+
this.output.write(re.cursor.move(-999, h * -1));
|
|
3090
3091
|
}
|
|
3091
3092
|
render() {
|
|
3092
3093
|
const h = Sn(this._render(this) ?? "", process.stdout.columns, { hard: !0, trim: !1 });
|
|
3093
3094
|
if (h !== this._prevFrame) {
|
|
3094
|
-
if (this.state === "initial") this.output.write(
|
|
3095
|
+
if (this.state === "initial") this.output.write(re.cursor.hide);
|
|
3095
3096
|
else {
|
|
3096
|
-
const m =
|
|
3097
|
+
const m = fl(this._prevFrame, h), g = _o(this.output);
|
|
3097
3098
|
if (this.restoreCursor(), m) {
|
|
3098
3099
|
const f = Math.max(0, m.numLinesAfter - g), i = Math.max(0, m.numLinesBefore - g);
|
|
3099
3100
|
let s = m.lines.find((a) => a >= f);
|
|
@@ -3102,18 +3103,18 @@ let Dn = class {
|
|
|
3102
3103
|
return;
|
|
3103
3104
|
}
|
|
3104
3105
|
if (m.lines.length === 1) {
|
|
3105
|
-
this.output.write(
|
|
3106
|
+
this.output.write(re.cursor.move(0, s - i)), this.output.write(re.erase.lines(1));
|
|
3106
3107
|
const a = h.split(`
|
|
3107
3108
|
`);
|
|
3108
|
-
this.output.write(a[s]), this._prevFrame = h, this.output.write(
|
|
3109
|
+
this.output.write(a[s]), this._prevFrame = h, this.output.write(re.cursor.move(0, a.length - s - 1));
|
|
3109
3110
|
return;
|
|
3110
3111
|
} else if (m.lines.length > 1) {
|
|
3111
3112
|
if (f < i) s = f;
|
|
3112
3113
|
else {
|
|
3113
3114
|
const o = s - i;
|
|
3114
|
-
o > 0 && this.output.write(
|
|
3115
|
+
o > 0 && this.output.write(re.cursor.move(0, o));
|
|
3115
3116
|
}
|
|
3116
|
-
this.output.write(
|
|
3117
|
+
this.output.write(re.erase.down());
|
|
3117
3118
|
const a = h.split(`
|
|
3118
3119
|
`).slice(s);
|
|
3119
3120
|
this.output.write(a.join(`
|
|
@@ -3121,12 +3122,12 @@ let Dn = class {
|
|
|
3121
3122
|
return;
|
|
3122
3123
|
}
|
|
3123
3124
|
}
|
|
3124
|
-
this.output.write(
|
|
3125
|
+
this.output.write(re.erase.down());
|
|
3125
3126
|
}
|
|
3126
3127
|
this.output.write(h), this.state === "initial" && (this.state = "active"), this._prevFrame = h;
|
|
3127
3128
|
}
|
|
3128
3129
|
}
|
|
3129
|
-
},
|
|
3130
|
+
}, dl = class extends Dn {
|
|
3130
3131
|
_mask = "•";
|
|
3131
3132
|
get cursor() {
|
|
3132
3133
|
return this._cursor;
|
|
@@ -3150,7 +3151,7 @@ let Dn = class {
|
|
|
3150
3151
|
});
|
|
3151
3152
|
}
|
|
3152
3153
|
};
|
|
3153
|
-
class
|
|
3154
|
+
class ml extends Dn {
|
|
3154
3155
|
options;
|
|
3155
3156
|
cursor = 0;
|
|
3156
3157
|
get _selectedValue() {
|
|
@@ -3177,7 +3178,7 @@ class dl extends Dn {
|
|
|
3177
3178
|
});
|
|
3178
3179
|
}
|
|
3179
3180
|
}
|
|
3180
|
-
let
|
|
3181
|
+
let gl = class extends Dn {
|
|
3181
3182
|
get userInputWithCursor() {
|
|
3182
3183
|
if (this.state === "submit") return this.userInput;
|
|
3183
3184
|
const h = this.userInput;
|
|
@@ -3196,14 +3197,14 @@ let ml = class extends Dn {
|
|
|
3196
3197
|
});
|
|
3197
3198
|
}
|
|
3198
3199
|
};
|
|
3199
|
-
function
|
|
3200
|
-
return
|
|
3200
|
+
function yl() {
|
|
3201
|
+
return ae.platform !== "win32" ? ae.env.TERM !== "linux" : !!ae.env.CI || !!ae.env.WT_SESSION || !!ae.env.TERMINUS_SUBLIME || ae.env.ConEmuTask === "{cmd::Cmder}" || ae.env.TERM_PROGRAM === "Terminus-Sublime" || ae.env.TERM_PROGRAM === "vscode" || ae.env.TERM === "xterm-256color" || ae.env.TERM === "alacritty" || ae.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
3201
3202
|
}
|
|
3202
|
-
const En =
|
|
3203
|
+
const En = yl(), bl = () => process.env.CI === "true", he = (e, h) => En ? e : h, vl = he("◆", "*"), $o = he("■", "x"), No = he("▲", "x"), Fn = he("◇", "o"), Sl = he("┌", "T"), J = he("│", "|"), Oe = he("└", "—"), wl = he("●", ">"), ds = he("○", " "), El = he("▪", "•"), Cl = he("●", "•"), Al = he("◆", "*"), Ll = he("▲", "!"), Ol = he("■", "x"), Bn = (e) => {
|
|
3203
3204
|
switch (e) {
|
|
3204
3205
|
case "initial":
|
|
3205
3206
|
case "active":
|
|
3206
|
-
return x.cyan(
|
|
3207
|
+
return x.cyan(vl);
|
|
3207
3208
|
case "cancel":
|
|
3208
3209
|
return x.red($o);
|
|
3209
3210
|
case "error":
|
|
@@ -3211,7 +3212,7 @@ const En = gl(), yl = () => process.env.CI === "true", he = (e, h) => En ? e : h
|
|
|
3211
3212
|
case "submit":
|
|
3212
3213
|
return x.green(Fn);
|
|
3213
3214
|
}
|
|
3214
|
-
},
|
|
3215
|
+
}, _l = (e) => {
|
|
3215
3216
|
switch (e) {
|
|
3216
3217
|
case "initial":
|
|
3217
3218
|
case "active":
|
|
@@ -3223,16 +3224,16 @@ const En = gl(), yl = () => process.env.CI === "true", he = (e, h) => En ? e : h
|
|
|
3223
3224
|
case "submit":
|
|
3224
3225
|
return x.green(J);
|
|
3225
3226
|
}
|
|
3226
|
-
},
|
|
3227
|
-
const g = h.limit ?? 1 / 0, f = h.ellipsis ?? "", i = h?.ellipsisWidth ?? (f ? Po(f,
|
|
3227
|
+
}, $l = (e) => e === 161 || e === 164 || e === 167 || e === 168 || e === 170 || e === 173 || e === 174 || e >= 176 && e <= 180 || e >= 182 && e <= 186 || e >= 188 && e <= 191 || e === 198 || e === 208 || e === 215 || e === 216 || e >= 222 && e <= 225 || e === 230 || e >= 232 && e <= 234 || e === 236 || e === 237 || e === 240 || e === 242 || e === 243 || e >= 247 && e <= 250 || e === 252 || e === 254 || e === 257 || e === 273 || e === 275 || e === 283 || e === 294 || e === 295 || e === 299 || e >= 305 && e <= 307 || e === 312 || e >= 319 && e <= 322 || e === 324 || e >= 328 && e <= 331 || e === 333 || e === 338 || e === 339 || e === 358 || e === 359 || e === 363 || e === 462 || e === 464 || e === 466 || e === 468 || e === 470 || e === 472 || e === 474 || e === 476 || e === 593 || e === 609 || e === 708 || e === 711 || e >= 713 && e <= 715 || e === 717 || e === 720 || e >= 728 && e <= 731 || e === 733 || e === 735 || e >= 768 && e <= 879 || e >= 913 && e <= 929 || e >= 931 && e <= 937 || e >= 945 && e <= 961 || e >= 963 && e <= 969 || e === 1025 || e >= 1040 && e <= 1103 || e === 1105 || e === 8208 || e >= 8211 && e <= 8214 || e === 8216 || e === 8217 || e === 8220 || e === 8221 || e >= 8224 && e <= 8226 || e >= 8228 && e <= 8231 || e === 8240 || e === 8242 || e === 8243 || e === 8245 || e === 8251 || e === 8254 || e === 8308 || e === 8319 || e >= 8321 && e <= 8324 || e === 8364 || e === 8451 || e === 8453 || e === 8457 || e === 8467 || e === 8470 || e === 8481 || e === 8482 || e === 8486 || e === 8491 || e === 8531 || e === 8532 || e >= 8539 && e <= 8542 || e >= 8544 && e <= 8555 || e >= 8560 && e <= 8569 || e === 8585 || e >= 8592 && e <= 8601 || e === 8632 || e === 8633 || e === 8658 || e === 8660 || e === 8679 || e === 8704 || e === 8706 || e === 8707 || e === 8711 || e === 8712 || e === 8715 || e === 8719 || e === 8721 || e === 8725 || e === 8730 || e >= 8733 && e <= 8736 || e === 8739 || e === 8741 || e >= 8743 && e <= 8748 || e === 8750 || e >= 8756 && e <= 8759 || e === 8764 || e === 8765 || e === 8776 || e === 8780 || e === 8786 || e === 8800 || e === 8801 || e >= 8804 && e <= 8807 || e === 8810 || e === 8811 || e === 8814 || e === 8815 || e === 8834 || e === 8835 || e === 8838 || e === 8839 || e === 8853 || e === 8857 || e === 8869 || e === 8895 || e === 8978 || e >= 9312 && e <= 9449 || e >= 9451 && e <= 9547 || e >= 9552 && e <= 9587 || e >= 9600 && e <= 9615 || e >= 9618 && e <= 9621 || e === 9632 || e === 9633 || e >= 9635 && e <= 9641 || e === 9650 || e === 9651 || e === 9654 || e === 9655 || e === 9660 || e === 9661 || e === 9664 || e === 9665 || e >= 9670 && e <= 9672 || e === 9675 || e >= 9678 && e <= 9681 || e >= 9698 && e <= 9701 || e === 9711 || e === 9733 || e === 9734 || e === 9737 || e === 9742 || e === 9743 || e === 9756 || e === 9758 || e === 9792 || e === 9794 || e === 9824 || e === 9825 || e >= 9827 && e <= 9829 || e >= 9831 && e <= 9834 || e === 9836 || e === 9837 || e === 9839 || e === 9886 || e === 9887 || e === 9919 || e >= 9926 && e <= 9933 || e >= 9935 && e <= 9939 || e >= 9941 && e <= 9953 || e === 9955 || e === 9960 || e === 9961 || e >= 9963 && e <= 9969 || e === 9972 || e >= 9974 && e <= 9977 || e === 9979 || e === 9980 || e === 9982 || e === 9983 || e === 10045 || e >= 10102 && e <= 10111 || e >= 11094 && e <= 11097 || e >= 12872 && e <= 12879 || e >= 57344 && e <= 63743 || e >= 65024 && e <= 65039 || e === 65533 || e >= 127232 && e <= 127242 || e >= 127248 && e <= 127277 || e >= 127280 && e <= 127337 || e >= 127344 && e <= 127373 || e === 127375 || e === 127376 || e >= 127387 && e <= 127404 || e >= 917760 && e <= 917999 || e >= 983040 && e <= 1048573 || e >= 1048576 && e <= 1114109, Nl = (e) => e === 12288 || e >= 65281 && e <= 65376 || e >= 65504 && e <= 65510, Pl = (e) => e >= 4352 && e <= 4447 || e === 8986 || e === 8987 || e === 9001 || e === 9002 || e >= 9193 && e <= 9196 || e === 9200 || e === 9203 || e === 9725 || e === 9726 || e === 9748 || e === 9749 || e >= 9800 && e <= 9811 || e === 9855 || e === 9875 || e === 9889 || e === 9898 || e === 9899 || e === 9917 || e === 9918 || e === 9924 || e === 9925 || e === 9934 || e === 9940 || e === 9962 || e === 9970 || e === 9971 || e === 9973 || e === 9978 || e === 9981 || e === 9989 || e === 9994 || e === 9995 || e === 10024 || e === 10060 || e === 10062 || e >= 10067 && e <= 10069 || e === 10071 || e >= 10133 && e <= 10135 || e === 10160 || e === 10175 || e === 11035 || e === 11036 || e === 11088 || e === 11093 || e >= 11904 && e <= 11929 || e >= 11931 && e <= 12019 || e >= 12032 && e <= 12245 || e >= 12272 && e <= 12287 || e >= 12289 && e <= 12350 || e >= 12353 && e <= 12438 || e >= 12441 && e <= 12543 || e >= 12549 && e <= 12591 || e >= 12593 && e <= 12686 || e >= 12688 && e <= 12771 || e >= 12783 && e <= 12830 || e >= 12832 && e <= 12871 || e >= 12880 && e <= 19903 || e >= 19968 && e <= 42124 || e >= 42128 && e <= 42182 || e >= 43360 && e <= 43388 || e >= 44032 && e <= 55203 || e >= 63744 && e <= 64255 || e >= 65040 && e <= 65049 || e >= 65072 && e <= 65106 || e >= 65108 && e <= 65126 || e >= 65128 && e <= 65131 || e >= 94176 && e <= 94180 || e === 94192 || e === 94193 || e >= 94208 && e <= 100343 || e >= 100352 && e <= 101589 || e >= 101632 && e <= 101640 || e >= 110576 && e <= 110579 || e >= 110581 && e <= 110587 || e === 110589 || e === 110590 || e >= 110592 && e <= 110882 || e === 110898 || e >= 110928 && e <= 110930 || e === 110933 || e >= 110948 && e <= 110951 || e >= 110960 && e <= 111355 || e === 126980 || e === 127183 || e === 127374 || e >= 127377 && e <= 127386 || e >= 127488 && e <= 127490 || e >= 127504 && e <= 127547 || e >= 127552 && e <= 127560 || e === 127568 || e === 127569 || e >= 127584 && e <= 127589 || e >= 127744 && e <= 127776 || e >= 127789 && e <= 127797 || e >= 127799 && e <= 127868 || e >= 127870 && e <= 127891 || e >= 127904 && e <= 127946 || e >= 127951 && e <= 127955 || e >= 127968 && e <= 127984 || e === 127988 || e >= 127992 && e <= 128062 || e === 128064 || e >= 128066 && e <= 128252 || e >= 128255 && e <= 128317 || e >= 128331 && e <= 128334 || e >= 128336 && e <= 128359 || e === 128378 || e === 128405 || e === 128406 || e === 128420 || e >= 128507 && e <= 128591 || e >= 128640 && e <= 128709 || e === 128716 || e >= 128720 && e <= 128722 || e >= 128725 && e <= 128727 || e >= 128732 && e <= 128735 || e === 128747 || e === 128748 || e >= 128756 && e <= 128764 || e >= 128992 && e <= 129003 || e === 129008 || e >= 129292 && e <= 129338 || e >= 129340 && e <= 129349 || e >= 129351 && e <= 129535 || e >= 129648 && e <= 129660 || e >= 129664 && e <= 129672 || e >= 129680 && e <= 129725 || e >= 129727 && e <= 129733 || e >= 129742 && e <= 129755 || e >= 129760 && e <= 129768 || e >= 129776 && e <= 129784 || e >= 131072 && e <= 196605 || e >= 196608 && e <= 262141, ni = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/y, gt = /[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y, yt = /\t{1,1000}/y, si = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu"), bt = /(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y, Il = new RegExp("\\p{M}+", "gu"), Tl = { limit: 1 / 0, ellipsis: "" }, Po = (e, h = {}, m = {}) => {
|
|
3228
|
+
const g = h.limit ?? 1 / 0, f = h.ellipsis ?? "", i = h?.ellipsisWidth ?? (f ? Po(f, Tl, m).width : 0), s = m.ansiWidth ?? 0, a = m.controlWidth ?? 0, o = m.tabWidth ?? 8, p = m.ambiguousWidth ?? 1, n = m.emojiWidth ?? 2, t = m.fullWidthWidth ?? 2, l = m.regularWidth ?? 1, c = m.wideWidth ?? 2;
|
|
3228
3229
|
let u = 0, d = 0, v = e.length, r = 0, b = !1, w = v, y = Math.max(0, g - i), S = 0, E = 0, C = 0, _ = 0;
|
|
3229
3230
|
e: for (; ; ) {
|
|
3230
3231
|
if (E > S || d >= v && d > u) {
|
|
3231
3232
|
const $ = e.slice(S, E) || e.slice(u, d);
|
|
3232
3233
|
r = 0;
|
|
3233
|
-
for (const N of $.replaceAll(
|
|
3234
|
+
for (const N of $.replaceAll(Il, "")) {
|
|
3234
3235
|
const P = N.codePointAt(0) || 0;
|
|
3235
|
-
if (
|
|
3236
|
+
if (Nl(P) ? _ = t : Pl(P) ? _ = c : p !== l && $l(P) ? _ = p : _ = l, C + _ > y && (w = Math.min(w, Math.max(S, u) + r)), C + _ > g) {
|
|
3236
3237
|
b = !0;
|
|
3237
3238
|
break e;
|
|
3238
3239
|
}
|
|
@@ -3284,7 +3285,7 @@ const En = gl(), yl = () => process.env.CI === "true", he = (e, h) => En ? e : h
|
|
|
3284
3285
|
d += 1;
|
|
3285
3286
|
}
|
|
3286
3287
|
return { width: b ? y : C, index: b ? w : v, truncated: b, ellipsed: b && g >= i };
|
|
3287
|
-
},
|
|
3288
|
+
}, kl = { limit: 1 / 0, ellipsis: "", ellipsisWidth: 0 }, Xe = (e, h = {}) => Po(e, kl, h).width, Bt = "\x1B", Io = "", xl = 39, Gn = "\x07", To = "[", Rl = "]", ko = "m", qn = `${Rl}8;;`, ms = new RegExp(`(?:\\${To}(?<code>\\d+)m|\\${qn}(?<uri>.*)${Gn})`, "y"), Ml = (e) => {
|
|
3288
3289
|
if (e >= 30 && e <= 37 || e >= 90 && e <= 97) return 39;
|
|
3289
3290
|
if (e >= 40 && e <= 47 || e >= 100 && e <= 107) return 49;
|
|
3290
3291
|
if (e === 1 || e === 2) return 22;
|
|
@@ -3294,7 +3295,7 @@ const En = gl(), yl = () => process.env.CI === "true", he = (e, h) => En ? e : h
|
|
|
3294
3295
|
if (e === 8) return 28;
|
|
3295
3296
|
if (e === 9) return 29;
|
|
3296
3297
|
if (e === 0) return 0;
|
|
3297
|
-
}, gs = (e) => `${Bt}${To}${e}${ko}`, ys = (e) => `${Bt}${qn}${e}${Gn}`,
|
|
3298
|
+
}, gs = (e) => `${Bt}${To}${e}${ko}`, ys = (e) => `${Bt}${qn}${e}${Gn}`, Dl = (e) => e.map((h) => Xe(h)), ri = (e, h, m) => {
|
|
3298
3299
|
const g = h[Symbol.iterator]();
|
|
3299
3300
|
let f = !1, i = !1, s = e.at(-1), a = s === void 0 ? 0 : Xe(s), o = g.next(), p = g.next(), n = 0;
|
|
3300
3301
|
for (; !o.done; ) {
|
|
@@ -3302,15 +3303,15 @@ const En = gl(), yl = () => process.env.CI === "true", he = (e, h) => En ? e : h
|
|
|
3302
3303
|
a + l <= m ? e[e.length - 1] += t : (e.push(t), a = 0), (t === Bt || t === Io) && (f = !0, i = h.startsWith(qn, n + 1)), f ? i ? t === Gn && (f = !1, i = !1) : t === ko && (f = !1) : (a += l, a === m && !p.done && (e.push(""), a = 0)), o = p, p = g.next(), n += t.length;
|
|
3303
3304
|
}
|
|
3304
3305
|
s = e.at(-1), !a && s !== void 0 && s.length > 0 && e.length > 1 && (e[e.length - 2] += e.pop());
|
|
3305
|
-
},
|
|
3306
|
+
}, Fl = (e) => {
|
|
3306
3307
|
const h = e.split(" ");
|
|
3307
3308
|
let m = h.length;
|
|
3308
3309
|
for (; m > 0 && !(Xe(h[m - 1]) > 0); ) m--;
|
|
3309
3310
|
return m === h.length ? e : h.slice(0, m).join(" ") + h.slice(m).join("");
|
|
3310
|
-
},
|
|
3311
|
+
}, Bl = (e, h, m = {}) => {
|
|
3311
3312
|
if (m.trim !== !1 && e.trim() === "") return "";
|
|
3312
3313
|
let g = "", f, i;
|
|
3313
|
-
const s = e.split(" "), a =
|
|
3314
|
+
const s = e.split(" "), a = Dl(s);
|
|
3314
3315
|
let o = [""];
|
|
3315
3316
|
for (const [u, d] of s.entries()) {
|
|
3316
3317
|
m.trim !== !1 && (o[o.length - 1] = (o.at(-1) ?? "").trimStart());
|
|
@@ -3333,7 +3334,7 @@ const En = gl(), yl = () => process.env.CI === "true", he = (e, h) => En ? e : h
|
|
|
3333
3334
|
}
|
|
3334
3335
|
o[o.length - 1] += d;
|
|
3335
3336
|
}
|
|
3336
|
-
m.trim !== !1 && (o = o.map((u) =>
|
|
3337
|
+
m.trim !== !1 && (o = o.map((u) => Fl(u)));
|
|
3337
3338
|
const p = o.join(`
|
|
3338
3339
|
`), n = p[Symbol.iterator]();
|
|
3339
3340
|
let t = n.next(), l = n.next(), c = 0;
|
|
@@ -3344,10 +3345,10 @@ const En = gl(), yl = () => process.env.CI === "true", he = (e, h) => En ? e : h
|
|
|
3344
3345
|
const r = ms.exec(p)?.groups;
|
|
3345
3346
|
if (r?.code !== void 0) {
|
|
3346
3347
|
const b = Number.parseFloat(r.code);
|
|
3347
|
-
f = b ===
|
|
3348
|
+
f = b === xl ? void 0 : b;
|
|
3348
3349
|
} else r?.uri !== void 0 && (i = r.uri.length === 0 ? void 0 : r.uri);
|
|
3349
3350
|
}
|
|
3350
|
-
const v = f ?
|
|
3351
|
+
const v = f ? Ml(f) : void 0;
|
|
3351
3352
|
d === `
|
|
3352
3353
|
` ? (i && (g += ys("")), f && v && (g += gs(v))) : u === `
|
|
3353
3354
|
` && (f && v && (g += gs(f)), i && (g += ys(i))), c += u.length, t = l, l = n.next();
|
|
@@ -3358,17 +3359,17 @@ function Cn(e, h, m) {
|
|
|
3358
3359
|
return String(e).normalize().replaceAll(`\r
|
|
3359
3360
|
`, `
|
|
3360
3361
|
`).split(`
|
|
3361
|
-
`).map((g) =>
|
|
3362
|
+
`).map((g) => Bl(g, h, m)).join(`
|
|
3362
3363
|
`);
|
|
3363
3364
|
}
|
|
3364
|
-
const
|
|
3365
|
+
const Gl = (e, h, m, g, f) => {
|
|
3365
3366
|
let i = h, s = 0;
|
|
3366
3367
|
for (let a = m; a < g; a++) {
|
|
3367
3368
|
const o = e[a];
|
|
3368
3369
|
if (i = i - o.length, s++, i <= f) break;
|
|
3369
3370
|
}
|
|
3370
3371
|
return { lineCount: i, removals: s };
|
|
3371
|
-
},
|
|
3372
|
+
}, ql = (e) => {
|
|
3372
3373
|
const { cursor: h, options: m, style: g } = e, f = e.output ?? process.stdout, i = Mn(f), s = e.columnPadding ?? 0, a = e.rowPadding ?? 4, o = i - s, p = _o(f), n = x.dim("..."), t = e.maxItems ?? Number.POSITIVE_INFINITY, l = Math.max(p - a, 0), c = Math.max(Math.min(t, l), 5);
|
|
3373
3374
|
let u = 0;
|
|
3374
3375
|
h >= c - 3 && (u = Math.max(Math.min(h - c + 3, m.length - c), 0));
|
|
@@ -3384,14 +3385,14 @@ const Bl = (e, h, m, g, f) => {
|
|
|
3384
3385
|
}
|
|
3385
3386
|
if (w > l) {
|
|
3386
3387
|
let C = 0, _ = 0, $ = w;
|
|
3387
|
-
const N = h - y, P = (R, G) =>
|
|
3388
|
+
const N = h - y, P = (R, G) => Gl(b, $, R, G, l);
|
|
3388
3389
|
d ? ({ lineCount: $, removals: C } = P(0, N), $ > l && ({ lineCount: $, removals: _ } = P(N + 1, b.length))) : ({ lineCount: $, removals: _ } = P(N + 1, b.length), $ > l && ({ lineCount: $, removals: C } = P(0, N))), C > 0 && (d = !0, b.splice(0, C)), _ > 0 && (v = !0, b.splice(b.length - _, _));
|
|
3389
3390
|
}
|
|
3390
3391
|
const E = [];
|
|
3391
3392
|
d && E.push(n);
|
|
3392
3393
|
for (const C of b) for (const _ of C) E.push(_);
|
|
3393
3394
|
return v && E.push(n), E;
|
|
3394
|
-
},
|
|
3395
|
+
}, jl = async (e, h) => {
|
|
3395
3396
|
const m = {}, g = Object.keys(e);
|
|
3396
3397
|
for (const f of g) {
|
|
3397
3398
|
const i = e[f], s = await i({ results: m })?.catch((a) => {
|
|
@@ -3418,30 +3419,30 @@ const Bl = (e, h, m, g, f) => {
|
|
|
3418
3419
|
`)}
|
|
3419
3420
|
`);
|
|
3420
3421
|
}, info: (e, h) => {
|
|
3421
|
-
Le.message(e, { ...h, symbol: x.blue(
|
|
3422
|
+
Le.message(e, { ...h, symbol: x.blue(Cl) });
|
|
3422
3423
|
}, success: (e, h) => {
|
|
3423
|
-
Le.message(e, { ...h, symbol: x.green(
|
|
3424
|
+
Le.message(e, { ...h, symbol: x.green(Al) });
|
|
3424
3425
|
}, step: (e, h) => {
|
|
3425
3426
|
Le.message(e, { ...h, symbol: x.green(Fn) });
|
|
3426
3427
|
}, warn: (e, h) => {
|
|
3427
|
-
Le.message(e, { ...h, symbol: x.yellow(
|
|
3428
|
+
Le.message(e, { ...h, symbol: x.yellow(Ll) });
|
|
3428
3429
|
}, warning: (e, h) => {
|
|
3429
3430
|
Le.warn(e, h);
|
|
3430
3431
|
}, error: (e, h) => {
|
|
3431
|
-
Le.message(e, { ...h, symbol: x.red(
|
|
3432
|
+
Le.message(e, { ...h, symbol: x.red(Ol) });
|
|
3432
3433
|
} }, xo = (e = "", h) => {
|
|
3433
3434
|
process.stdout.write(`${x.gray(Oe)} ${x.red(e)}
|
|
3434
3435
|
|
|
3435
3436
|
`);
|
|
3436
|
-
},
|
|
3437
|
-
process.stdout.write(`${x.gray(
|
|
3437
|
+
}, Ul = (e = "", h) => {
|
|
3438
|
+
process.stdout.write(`${x.gray(Sl)} ${e}
|
|
3438
3439
|
`);
|
|
3439
3440
|
}, jn = (e = "", h) => {
|
|
3440
3441
|
process.stdout.write(`${x.gray(J)}
|
|
3441
3442
|
${x.gray(Oe)} ${e}
|
|
3442
3443
|
|
|
3443
3444
|
`);
|
|
3444
|
-
},
|
|
3445
|
+
}, Hl = (e) => new dl({ validate: e.validate, mask: e.mask ?? El, signal: e.signal, input: e.input, output: e.output, render() {
|
|
3445
3446
|
const h = e.withGuide ?? Se.withGuide, m = `${h ? `${x.gray(J)}
|
|
3446
3447
|
` : ""}${Bn(this.state)} ${e.message}
|
|
3447
3448
|
`, g = this.userInputWithCursor, f = this.masked;
|
|
@@ -3469,10 +3470,10 @@ ${s}
|
|
|
3469
3470
|
`;
|
|
3470
3471
|
}
|
|
3471
3472
|
}
|
|
3472
|
-
} }).prompt(),
|
|
3473
|
-
const p =
|
|
3473
|
+
} }).prompt(), Vl = x.magenta, Wl = ({ indicator: e = "dots", onCancel: h, output: m = process.stdout, cancelMessage: g, errorMessage: f, frames: i = En ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], delay: s = En ? 80 : 120, signal: a, ...o } = {}) => {
|
|
3474
|
+
const p = bl();
|
|
3474
3475
|
let n, t, l = !1, c = !1, u = "", d, v = performance.now();
|
|
3475
|
-
const r = Mn(m), b = o?.styleFrame ??
|
|
3476
|
+
const r = Mn(m), b = o?.styleFrame ?? Vl, w = (F) => {
|
|
3476
3477
|
const B = F > 1 ? f ?? Se.messages.error : g ?? Se.messages.cancel;
|
|
3477
3478
|
c = F === 1, l && (G(B, F), c && typeof h == "function" && h());
|
|
3478
3479
|
}, y = () => w(2), S = () => w(1), E = () => {
|
|
@@ -3485,12 +3486,12 @@ ${s}
|
|
|
3485
3486
|
`);
|
|
3486
3487
|
const F = Cn(d, r, { hard: !0, trim: !1 }).split(`
|
|
3487
3488
|
`);
|
|
3488
|
-
F.length > 1 && m.write(
|
|
3489
|
+
F.length > 1 && m.write(re.cursor.up(F.length - 1)), m.write(re.cursor.to(0)), m.write(re.erase.down());
|
|
3489
3490
|
}, $ = (F) => F.replace(/\.+$/, ""), N = (F) => {
|
|
3490
3491
|
const B = (performance.now() - F) / 1e3, q = Math.floor(B / 60), T = Math.floor(B % 60);
|
|
3491
3492
|
return q > 0 ? `[${q}m ${T}s]` : `[${T}s]`;
|
|
3492
3493
|
}, P = o.withGuide ?? Se.withGuide, R = (F = "") => {
|
|
3493
|
-
l = !0, n =
|
|
3494
|
+
l = !0, n = pl({ output: m }), u = $(F), v = performance.now(), P && m.write(`${x.gray(J)}
|
|
3494
3495
|
`);
|
|
3495
3496
|
let B = 0, q = 0;
|
|
3496
3497
|
E(), t = setInterval(() => {
|
|
@@ -3523,7 +3524,7 @@ ${s}
|
|
|
3523
3524
|
}, vt = (e, h) => e.includes(`
|
|
3524
3525
|
`) ? e.split(`
|
|
3525
3526
|
`).map((m) => h(m)).join(`
|
|
3526
|
-
`) : h(e),
|
|
3527
|
+
`) : h(e), Yl = (e) => {
|
|
3527
3528
|
const h = (m, g) => {
|
|
3528
3529
|
const f = m.label ?? String(m.value);
|
|
3529
3530
|
switch (g) {
|
|
@@ -3532,15 +3533,15 @@ ${s}
|
|
|
3532
3533
|
case "selected":
|
|
3533
3534
|
return `${vt(f, x.dim)}`;
|
|
3534
3535
|
case "active":
|
|
3535
|
-
return `${x.green(
|
|
3536
|
+
return `${x.green(wl)} ${f}${m.hint ? ` ${x.dim(`(${m.hint})`)}` : ""}`;
|
|
3536
3537
|
case "cancelled":
|
|
3537
3538
|
return `${vt(f, (i) => x.strikethrough(x.dim(i)))}`;
|
|
3538
3539
|
default:
|
|
3539
3540
|
return `${x.dim(ds)} ${vt(f, x.dim)}`;
|
|
3540
3541
|
}
|
|
3541
3542
|
};
|
|
3542
|
-
return new
|
|
3543
|
-
const m = e.withGuide ?? Se.withGuide, g = `${Bn(this.state)} `, f = `${
|
|
3543
|
+
return new ml({ options: e.options, signal: e.signal, input: e.input, output: e.output, initialValue: e.initialValue, render() {
|
|
3544
|
+
const m = e.withGuide ?? Se.withGuide, g = `${Bn(this.state)} `, f = `${_l(this.state)} `, i = ii(e.output, e.message, f, g), s = `${m ? `${x.gray(J)}
|
|
3544
3545
|
` : ""}${i}
|
|
3545
3546
|
`;
|
|
3546
3547
|
switch (this.state) {
|
|
@@ -3556,7 +3557,7 @@ ${x.gray(J)}` : ""}`;
|
|
|
3556
3557
|
default: {
|
|
3557
3558
|
const a = m ? `${x.cyan(J)} ` : "", o = m ? x.cyan(Oe) : "", p = s.split(`
|
|
3558
3559
|
`).length, n = m ? 2 : 1;
|
|
3559
|
-
return `${s}${a}${
|
|
3560
|
+
return `${s}${a}${ql({ output: e.output, cursor: this.cursor, options: this.options, maxItems: e.maxItems, columnPadding: a.length, rowPadding: p + n, style: (t, l) => h(t, t.disabled ? "disabled" : l ? "active" : "inactive") }).join(`
|
|
3560
3561
|
${a}`)}
|
|
3561
3562
|
${o}
|
|
3562
3563
|
`;
|
|
@@ -3565,7 +3566,7 @@ ${o}
|
|
|
3565
3566
|
} }).prompt();
|
|
3566
3567
|
};
|
|
3567
3568
|
`${x.gray(J)}`;
|
|
3568
|
-
const
|
|
3569
|
+
const Kl = (e) => new gl({ validate: e.validate, placeholder: e.placeholder, defaultValue: e.defaultValue, initialValue: e.initialValue, output: e.output, signal: e.signal, input: e.input, render() {
|
|
3569
3570
|
const h = e?.withGuide ?? Se.withGuide, m = `${`${h ? `${x.gray(J)}
|
|
3570
3571
|
` : ""}${Bn(this.state)} `}${e.message}
|
|
3571
3572
|
`, g = e.placeholder ? x.inverse(e.placeholder[0]) + x.dim(e.placeholder.slice(1)) : x.inverse(x.hidden("_")), f = this.userInput ? this.userInputWithCursor : g, i = this.value ?? "";
|
|
@@ -3654,9 +3655,9 @@ ${a}
|
|
|
3654
3655
|
}
|
|
3655
3656
|
};
|
|
3656
3657
|
Object.keys(z.modifier);
|
|
3657
|
-
const
|
|
3658
|
-
[...
|
|
3659
|
-
function
|
|
3658
|
+
const Jl = Object.keys(z.color), zl = Object.keys(z.bgColor);
|
|
3659
|
+
[...Jl, ...zl];
|
|
3660
|
+
function Xl() {
|
|
3660
3661
|
const e = /* @__PURE__ */ new Map();
|
|
3661
3662
|
for (const [h, m] of Object.entries(z)) {
|
|
3662
3663
|
for (const [g, f] of Object.entries(m))
|
|
@@ -3733,19 +3734,19 @@ function zl() {
|
|
|
3733
3734
|
}
|
|
3734
3735
|
}), z;
|
|
3735
3736
|
}
|
|
3736
|
-
const we =
|
|
3737
|
-
function ye(e, h = globalThis.Deno ? globalThis.Deno.args :
|
|
3737
|
+
const we = Xl();
|
|
3738
|
+
function ye(e, h = globalThis.Deno ? globalThis.Deno.args : ae.argv) {
|
|
3738
3739
|
const m = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", g = h.indexOf(m + e), f = h.indexOf("--");
|
|
3739
3740
|
return g !== -1 && (f === -1 || g < f);
|
|
3740
3741
|
}
|
|
3741
|
-
const { env: X } =
|
|
3742
|
+
const { env: X } = ae;
|
|
3742
3743
|
let xt;
|
|
3743
3744
|
ye("no-color") || ye("no-colors") || ye("color=false") || ye("color=never") ? xt = 0 : (ye("color") || ye("colors") || ye("color=true") || ye("color=always")) && (xt = 1);
|
|
3744
|
-
function
|
|
3745
|
+
function Ql() {
|
|
3745
3746
|
if ("FORCE_COLOR" in X)
|
|
3746
3747
|
return X.FORCE_COLOR === "true" ? 1 : X.FORCE_COLOR === "false" ? 0 : X.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(X.FORCE_COLOR, 10), 3);
|
|
3747
3748
|
}
|
|
3748
|
-
function
|
|
3749
|
+
function Zl(e) {
|
|
3749
3750
|
return e === 0 ? !1 : {
|
|
3750
3751
|
level: e,
|
|
3751
3752
|
hasBasic: !0,
|
|
@@ -3753,8 +3754,8 @@ function Ql(e) {
|
|
|
3753
3754
|
has16m: e >= 3
|
|
3754
3755
|
};
|
|
3755
3756
|
}
|
|
3756
|
-
function
|
|
3757
|
-
const g =
|
|
3757
|
+
function ec(e, { streamIsTTY: h, sniffFlags: m = !0 } = {}) {
|
|
3758
|
+
const g = Ql();
|
|
3758
3759
|
g !== void 0 && (xt = g);
|
|
3759
3760
|
const f = m ? xt : g;
|
|
3760
3761
|
if (f === 0)
|
|
@@ -3772,8 +3773,8 @@ function Zl(e, { streamIsTTY: h, sniffFlags: m = !0 } = {}) {
|
|
|
3772
3773
|
const i = f || 0;
|
|
3773
3774
|
if (X.TERM === "dumb")
|
|
3774
3775
|
return i;
|
|
3775
|
-
if (
|
|
3776
|
-
const s =
|
|
3776
|
+
if (ae.platform === "win32") {
|
|
3777
|
+
const s = $a.release().split(".");
|
|
3777
3778
|
return Number(s[0]) >= 10 && Number(s[2]) >= 10586 ? Number(s[2]) >= 14931 ? 3 : 2 : 1;
|
|
3778
3779
|
}
|
|
3779
3780
|
if ("CI" in X)
|
|
@@ -3794,17 +3795,17 @@ function Zl(e, { streamIsTTY: h, sniffFlags: m = !0 } = {}) {
|
|
|
3794
3795
|
return /-256(color)?$/i.test(X.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM) || "COLORTERM" in X ? 1 : i;
|
|
3795
3796
|
}
|
|
3796
3797
|
function ws(e, h = {}) {
|
|
3797
|
-
const m =
|
|
3798
|
+
const m = ec(e, {
|
|
3798
3799
|
streamIsTTY: e && e.isTTY,
|
|
3799
3800
|
...h
|
|
3800
3801
|
});
|
|
3801
|
-
return
|
|
3802
|
+
return Zl(m);
|
|
3802
3803
|
}
|
|
3803
|
-
const
|
|
3804
|
+
const tc = {
|
|
3804
3805
|
stdout: ws({ isTTY: Zn.isatty(1) }),
|
|
3805
3806
|
stderr: ws({ isTTY: Zn.isatty(2) })
|
|
3806
3807
|
};
|
|
3807
|
-
function
|
|
3808
|
+
function ic(e, h, m) {
|
|
3808
3809
|
let g = e.indexOf(h);
|
|
3809
3810
|
if (g === -1)
|
|
3810
3811
|
return e;
|
|
@@ -3815,7 +3816,7 @@ function tc(e, h, m) {
|
|
|
3815
3816
|
while (g !== -1);
|
|
3816
3817
|
return s += e.slice(i), s;
|
|
3817
3818
|
}
|
|
3818
|
-
function
|
|
3819
|
+
function nc(e, h, m, g) {
|
|
3819
3820
|
let f = 0, i = "";
|
|
3820
3821
|
do {
|
|
3821
3822
|
const s = e[g - 1] === "\r";
|
|
@@ -3826,22 +3827,22 @@ function ic(e, h, m, g) {
|
|
|
3826
3827
|
} while (g !== -1);
|
|
3827
3828
|
return i += e.slice(f), i;
|
|
3828
3829
|
}
|
|
3829
|
-
const { stdout: Es, stderr: Cs } =
|
|
3830
|
+
const { stdout: Es, stderr: Cs } = tc, An = /* @__PURE__ */ Symbol("GENERATOR"), Me = /* @__PURE__ */ Symbol("STYLER"), Qe = /* @__PURE__ */ Symbol("IS_EMPTY"), As = [
|
|
3830
3831
|
"ansi",
|
|
3831
3832
|
"ansi",
|
|
3832
3833
|
"ansi256",
|
|
3833
3834
|
"ansi16m"
|
|
3834
|
-
], De = /* @__PURE__ */ Object.create(null),
|
|
3835
|
+
], De = /* @__PURE__ */ Object.create(null), sc = (e, h = {}) => {
|
|
3835
3836
|
if (h.level && !(Number.isInteger(h.level) && h.level >= 0 && h.level <= 3))
|
|
3836
3837
|
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
3837
3838
|
const m = Es ? Es.level : 0;
|
|
3838
3839
|
e.level = h.level === void 0 ? m : h.level;
|
|
3839
|
-
},
|
|
3840
|
+
}, rc = (e) => {
|
|
3840
3841
|
const h = (...m) => m.join(" ");
|
|
3841
|
-
return
|
|
3842
|
+
return sc(h, e), Object.setPrototypeOf(h, Ze.prototype), h;
|
|
3842
3843
|
};
|
|
3843
3844
|
function Ze(e) {
|
|
3844
|
-
return
|
|
3845
|
+
return rc(e);
|
|
3845
3846
|
}
|
|
3846
3847
|
Object.setPrototypeOf(Ze.prototype, Function.prototype);
|
|
3847
3848
|
for (const [e, h] of Object.entries(we))
|
|
@@ -3857,8 +3858,8 @@ De.visible = {
|
|
|
3857
3858
|
return Object.defineProperty(this, "visible", { value: e }), e;
|
|
3858
3859
|
}
|
|
3859
3860
|
};
|
|
3860
|
-
const Ln = (e, h, m, ...g) => e === "rgb" ? h === "ansi16m" ? we[m].ansi16m(...g) : h === "ansi256" ? we[m].ansi256(we.rgbToAnsi256(...g)) : we[m].ansi(we.rgbToAnsi(...g)) : e === "hex" ? Ln("rgb", h, m, ...we.hexToRgb(...g)) : we[m][e](...g),
|
|
3861
|
-
for (const e of
|
|
3861
|
+
const Ln = (e, h, m, ...g) => e === "rgb" ? h === "ansi16m" ? we[m].ansi16m(...g) : h === "ansi256" ? we[m].ansi256(we.rgbToAnsi256(...g)) : we[m].ansi(we.rgbToAnsi(...g)) : e === "hex" ? Ln("rgb", h, m, ...we.hexToRgb(...g)) : we[m][e](...g), oc = ["rgb", "hex", "ansi256"];
|
|
3862
|
+
for (const e of oc) {
|
|
3862
3863
|
De[e] = {
|
|
3863
3864
|
get() {
|
|
3864
3865
|
const { level: m } = this;
|
|
@@ -3879,7 +3880,7 @@ for (const e of rc) {
|
|
|
3879
3880
|
}
|
|
3880
3881
|
};
|
|
3881
3882
|
}
|
|
3882
|
-
const
|
|
3883
|
+
const ac = Object.defineProperties(() => {
|
|
3883
3884
|
}, {
|
|
3884
3885
|
...De,
|
|
3885
3886
|
level: {
|
|
@@ -3901,9 +3902,9 @@ const oc = Object.defineProperties(() => {
|
|
|
3901
3902
|
parent: m
|
|
3902
3903
|
};
|
|
3903
3904
|
}, Rt = (e, h, m) => {
|
|
3904
|
-
const g = (...f) =>
|
|
3905
|
-
return Object.setPrototypeOf(g,
|
|
3906
|
-
},
|
|
3905
|
+
const g = (...f) => lc(g, f.length === 1 ? "" + f[0] : f.join(" "));
|
|
3906
|
+
return Object.setPrototypeOf(g, ac), g[An] = e, g[Me] = h, g[Qe] = m, g;
|
|
3907
|
+
}, lc = (e, h) => {
|
|
3907
3908
|
if (e.level <= 0 || !h)
|
|
3908
3909
|
return e[Qe] ? "" : h;
|
|
3909
3910
|
let m = e[Me];
|
|
@@ -3912,20 +3913,20 @@ const oc = Object.defineProperties(() => {
|
|
|
3912
3913
|
const { openAll: g, closeAll: f } = m;
|
|
3913
3914
|
if (h.includes("\x1B"))
|
|
3914
3915
|
for (; m !== void 0; )
|
|
3915
|
-
h =
|
|
3916
|
+
h = ic(h, m.close, m.open), m = m.parent;
|
|
3916
3917
|
const i = h.indexOf(`
|
|
3917
3918
|
`);
|
|
3918
|
-
return i !== -1 && (h =
|
|
3919
|
+
return i !== -1 && (h = nc(h, f, g, i)), g + h + f;
|
|
3919
3920
|
};
|
|
3920
3921
|
Object.defineProperties(Ze.prototype, De);
|
|
3921
|
-
const
|
|
3922
|
+
const Ro = Ze();
|
|
3922
3923
|
Ze({ level: Cs ? Cs.level : 0 });
|
|
3923
|
-
var kt = { exports: {} },
|
|
3924
|
-
function
|
|
3924
|
+
var kt = { exports: {} }, cc = kt.exports, Ls;
|
|
3925
|
+
function uc() {
|
|
3925
3926
|
return Ls || (Ls = 1, (function(e, h) {
|
|
3926
3927
|
(function(m, g) {
|
|
3927
3928
|
e.exports = g();
|
|
3928
|
-
})(
|
|
3929
|
+
})(cc, (function() {
|
|
3929
3930
|
function m(A) {
|
|
3930
3931
|
"@babel/helpers - typeof";
|
|
3931
3932
|
return m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(O) {
|
|
@@ -4107,7 +4108,7 @@ function cc() {
|
|
|
4107
4108
|
if (m(A) == "object") {
|
|
4108
4109
|
var L = {};
|
|
4109
4110
|
for (var I in A)
|
|
4110
|
-
A.hasOwnProperty(I) && (I === "a" ? L[I] = A[I] : L[I] =
|
|
4111
|
+
A.hasOwnProperty(I) && (I === "a" ? L[I] = A[I] : L[I] = ne(A[I]));
|
|
4111
4112
|
A = L;
|
|
4112
4113
|
}
|
|
4113
4114
|
return i(A, O);
|
|
@@ -4118,7 +4119,7 @@ function cc() {
|
|
|
4118
4119
|
g: 0,
|
|
4119
4120
|
b: 0
|
|
4120
4121
|
}, L = 1, I = null, M = null, k = null, V = !1, K = !1;
|
|
4121
|
-
return typeof A == "string" && (A =
|
|
4122
|
+
return typeof A == "string" && (A = wa(A)), m(A) == "object" && (Ce(A.r) && Ce(A.g) && Ce(A.b) ? (O = a(A.r, A.g, A.b), V = !0, K = String(A.r).substr(-1) === "%" ? "prgb" : "rgb") : Ce(A.h) && Ce(A.s) && Ce(A.v) ? (I = ne(A.s), M = ne(A.v), O = t(A.h, I, M), V = !0, K = "hsv") : Ce(A.h) && Ce(A.s) && Ce(A.l) && (I = ne(A.s), k = ne(A.l), O = p(A.h, I, k), V = !0, K = "hsl"), A.hasOwnProperty("a") && (L = A.a)), L = F(L), {
|
|
4122
4123
|
ok: V,
|
|
4123
4124
|
format: A.format || K,
|
|
4124
4125
|
r: Math.min(255, Math.max(O.r, 0)),
|
|
@@ -4323,7 +4324,7 @@ function cc() {
|
|
|
4323
4324
|
return (Math.max(L.getLuminance(), I.getLuminance()) + 0.05) / (Math.min(L.getLuminance(), I.getLuminance()) + 0.05);
|
|
4324
4325
|
}, i.isReadable = function(A, O, L) {
|
|
4325
4326
|
var I = i.readability(A, O), M, k;
|
|
4326
|
-
switch (k = !1, M =
|
|
4327
|
+
switch (k = !1, M = Ea(L), M.level + M.size) {
|
|
4327
4328
|
case "AAsmall":
|
|
4328
4329
|
case "AAAlarge":
|
|
4329
4330
|
k = I >= 4.5;
|
|
@@ -4526,7 +4527,7 @@ function cc() {
|
|
|
4526
4527
|
function U(A) {
|
|
4527
4528
|
return A.length == 1 ? "0" + A : "" + A;
|
|
4528
4529
|
}
|
|
4529
|
-
function
|
|
4530
|
+
function ne(A) {
|
|
4530
4531
|
return A <= 1 && (A = A * 100 + "%"), A;
|
|
4531
4532
|
}
|
|
4532
4533
|
function Ee(A) {
|
|
@@ -4554,7 +4555,7 @@ function cc() {
|
|
|
4554
4555
|
function Ce(A) {
|
|
4555
4556
|
return !!fe.CSS_UNIT.exec(A);
|
|
4556
4557
|
}
|
|
4557
|
-
function
|
|
4558
|
+
function wa(A) {
|
|
4558
4559
|
A = A.replace(g, "").replace(f, "").toLowerCase();
|
|
4559
4560
|
var O = !1;
|
|
4560
4561
|
if (P[A])
|
|
@@ -4619,7 +4620,7 @@ function cc() {
|
|
|
4619
4620
|
format: O ? "name" : "hex"
|
|
4620
4621
|
} : !1;
|
|
4621
4622
|
}
|
|
4622
|
-
function
|
|
4623
|
+
function Ea(A) {
|
|
4623
4624
|
var O, L;
|
|
4624
4625
|
return A = A || {
|
|
4625
4626
|
level: "AA",
|
|
@@ -4634,10 +4635,10 @@ function cc() {
|
|
|
4634
4635
|
})(kt)), kt.exports;
|
|
4635
4636
|
}
|
|
4636
4637
|
var ai, Os;
|
|
4637
|
-
function
|
|
4638
|
+
function fc() {
|
|
4638
4639
|
if (Os) return ai;
|
|
4639
4640
|
Os = 1;
|
|
4640
|
-
const e =
|
|
4641
|
+
const e = uc(), h = { r: 256, g: 256, b: 256, a: 1 }, m = { h: 360, s: 1, v: 1, a: 1 };
|
|
4641
4642
|
function g(n, t, l) {
|
|
4642
4643
|
let c = {};
|
|
4643
4644
|
for (let u in n)
|
|
@@ -4866,8 +4867,8 @@ function uc() {
|
|
|
4866
4867
|
return new p(n);
|
|
4867
4868
|
}, ai;
|
|
4868
4869
|
}
|
|
4869
|
-
var
|
|
4870
|
-
const _s = /* @__PURE__ */ Mt(
|
|
4870
|
+
var hc = fc();
|
|
4871
|
+
const _s = /* @__PURE__ */ Mt(hc), ce = (...e) => {
|
|
4871
4872
|
let h, m;
|
|
4872
4873
|
if (e.length === 0)
|
|
4873
4874
|
throw new Error("Missing gradient colors");
|
|
@@ -4878,24 +4879,24 @@ const _s = /* @__PURE__ */ Mt(fc), ce = (...e) => {
|
|
|
4878
4879
|
throw new Error(`Expected an array of colors, received ${JSON.stringify(e[0])}`);
|
|
4879
4880
|
h = _s(...e);
|
|
4880
4881
|
}
|
|
4881
|
-
const g = (f, i) =>
|
|
4882
|
-
return g.multiline = (f, i) =>
|
|
4883
|
-
},
|
|
4884
|
-
function
|
|
4885
|
-
const g = Un(m), f = Math.max(e.replace(/\s/g, "").length, h.stops.length), i =
|
|
4882
|
+
const g = (f, i) => pc(f ? f.toString() : "", h, i ?? m);
|
|
4883
|
+
return g.multiline = (f, i) => dc(f ? f.toString() : "", h, i ?? m), g;
|
|
4884
|
+
}, Mo = (e, h, m) => h.interpolation?.toLowerCase() === "hsv" ? e.hsv(m, h.hsvSpin?.toLowerCase() || !1) : e.rgb(m);
|
|
4885
|
+
function pc(e, h, m) {
|
|
4886
|
+
const g = Un(m), f = Math.max(e.replace(/\s/g, "").length, h.stops.length), i = Mo(h, g, f);
|
|
4886
4887
|
let s = "";
|
|
4887
4888
|
for (const a of e)
|
|
4888
|
-
s += a.match(/\s/g) ? a :
|
|
4889
|
+
s += a.match(/\s/g) ? a : Ro.hex(i.shift()?.toHex() || "#000")(a);
|
|
4889
4890
|
return s;
|
|
4890
4891
|
}
|
|
4891
|
-
function
|
|
4892
|
+
function dc(e, h, m) {
|
|
4892
4893
|
const g = Un(m), f = e.split(`
|
|
4893
|
-
`), i = Math.max(...f.map((o) => o.length), h.stops.length), s =
|
|
4894
|
+
`), i = Math.max(...f.map((o) => o.length), h.stops.length), s = Mo(h, g, i), a = [];
|
|
4894
4895
|
for (const o of f) {
|
|
4895
4896
|
const p = s.slice(0);
|
|
4896
4897
|
let n = "";
|
|
4897
4898
|
for (const t of o)
|
|
4898
|
-
n +=
|
|
4899
|
+
n += Ro.hex(p.shift()?.toHex() || "#000")(t);
|
|
4899
4900
|
a.push(n);
|
|
4900
4901
|
}
|
|
4901
4902
|
return a.join(`
|
|
@@ -4933,60 +4934,61 @@ function me(e) {
|
|
|
4933
4934
|
const h = (m) => ce(...e.colors)(m, e.options);
|
|
4934
4935
|
return h.multiline = (m = "") => ce(...e.colors).multiline(m, e.options), h;
|
|
4935
4936
|
}
|
|
4936
|
-
const
|
|
4937
|
-
ce.atlas =
|
|
4938
|
-
ce.cristal =
|
|
4939
|
-
ce.teen =
|
|
4940
|
-
ce.mind =
|
|
4941
|
-
ce.morning =
|
|
4937
|
+
const mc = me(de.atlas), gc = me(de.cristal), yc = me(de.teen), bc = me(de.mind), vc = me(de.morning), _n = me(de.vice), Sc = me(de.passion), wc = me(de.fruit), Ec = me(de.instagram), Cc = me(de.retro), Ac = me(de.summer), Lc = me(de.rainbow), Oc = me(de.pastel);
|
|
4938
|
+
ce.atlas = mc;
|
|
4939
|
+
ce.cristal = gc;
|
|
4940
|
+
ce.teen = yc;
|
|
4941
|
+
ce.mind = bc;
|
|
4942
|
+
ce.morning = vc;
|
|
4942
4943
|
ce.vice = _n;
|
|
4943
|
-
ce.passion =
|
|
4944
|
-
ce.fruit =
|
|
4945
|
-
ce.instagram =
|
|
4946
|
-
ce.retro =
|
|
4947
|
-
ce.summer =
|
|
4948
|
-
ce.rainbow =
|
|
4949
|
-
ce.pastel =
|
|
4950
|
-
const
|
|
4951
|
-
function
|
|
4952
|
-
|
|
4953
|
-
}
|
|
4954
|
-
async function
|
|
4955
|
-
return await
|
|
4944
|
+
ce.passion = Sc;
|
|
4945
|
+
ce.fruit = wc;
|
|
4946
|
+
ce.instagram = Ec;
|
|
4947
|
+
ce.retro = Cc;
|
|
4948
|
+
ce.summer = Ac;
|
|
4949
|
+
ce.rainbow = Lc;
|
|
4950
|
+
ce.pastel = Oc;
|
|
4951
|
+
const _c = "my-arcgis-app";
|
|
4952
|
+
function Do() {
|
|
4953
|
+
Ul("initialize a new arcgis project");
|
|
4954
|
+
}
|
|
4955
|
+
async function Fo() {
|
|
4956
|
+
return await Kl({
|
|
4956
4957
|
message: "What is the name of your project?",
|
|
4957
4958
|
initialValue: "",
|
|
4958
|
-
placeholder:
|
|
4959
|
+
placeholder: _c,
|
|
4959
4960
|
validate(e) {
|
|
4960
4961
|
if (!e || e.length === 0)
|
|
4961
4962
|
return "Value is required!";
|
|
4962
4963
|
}
|
|
4963
4964
|
});
|
|
4964
4965
|
}
|
|
4965
|
-
async function
|
|
4966
|
-
const e = Object.entries(D).filter(([, h]) => !
|
|
4967
|
-
return await
|
|
4966
|
+
async function $c() {
|
|
4967
|
+
const e = Object.entries(D).filter(([, h]) => !Ka[h]).map(([, h]) => ({ value: h, label: h }));
|
|
4968
|
+
return await Yl({
|
|
4968
4969
|
message: "Which template would you like to use?",
|
|
4969
4970
|
options: e
|
|
4970
4971
|
});
|
|
4971
4972
|
}
|
|
4972
4973
|
function $n() {
|
|
4973
|
-
jn(
|
|
4974
|
+
jn(le("greenBright", "Your new project is ready!"));
|
|
4974
4975
|
}
|
|
4975
|
-
function
|
|
4976
|
+
function Nc() {
|
|
4976
4977
|
jn(
|
|
4977
|
-
|
|
4978
|
+
le(
|
|
4979
|
+
"greenBright",
|
|
4978
4980
|
"Configuration files created: .npmrc, eslint.config.js, prettier.config.js, and lint-staged.config.js. If you are in a monorepo, you will need to manually integrate these files with your project configuration."
|
|
4979
4981
|
)
|
|
4980
4982
|
);
|
|
4981
4983
|
}
|
|
4982
|
-
async function
|
|
4984
|
+
async function Pc(e) {
|
|
4983
4985
|
return Le.info(`
|
|
4984
4986
|
This command requires a ${e} personal access token with the 'repo' scope.
|
|
4985
4987
|
|
|
4986
4988
|
See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic
|
|
4987
4989
|
|
|
4988
4990
|
for step-by-step instructions.
|
|
4989
|
-
`), await
|
|
4991
|
+
`), await Hl({
|
|
4990
4992
|
message: `Please enter your personal access token for ${e}`,
|
|
4991
4993
|
mask: "*",
|
|
4992
4994
|
validate(h) {
|
|
@@ -4996,12 +4998,12 @@ async function Nc(e) {
|
|
|
4996
4998
|
});
|
|
4997
4999
|
}
|
|
4998
5000
|
var li, $s;
|
|
4999
|
-
function
|
|
5001
|
+
function Bo() {
|
|
5000
5002
|
return $s || ($s = 1, li = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...h) => console.error("SEMVER", ...h) : () => {
|
|
5001
5003
|
}), li;
|
|
5002
5004
|
}
|
|
5003
5005
|
var ci, Ns;
|
|
5004
|
-
function
|
|
5006
|
+
function Go() {
|
|
5005
5007
|
if (Ns) return ci;
|
|
5006
5008
|
Ns = 1;
|
|
5007
5009
|
const e = "2.0.0", h = 256, m = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
|
|
@@ -5026,13 +5028,13 @@ function Bo() {
|
|
|
5026
5028
|
}, ci;
|
|
5027
5029
|
}
|
|
5028
5030
|
var St = { exports: {} }, Ps;
|
|
5029
|
-
function
|
|
5031
|
+
function Ic() {
|
|
5030
5032
|
return Ps || (Ps = 1, (function(e, h) {
|
|
5031
5033
|
const {
|
|
5032
5034
|
MAX_SAFE_COMPONENT_LENGTH: m,
|
|
5033
5035
|
MAX_SAFE_BUILD_LENGTH: g,
|
|
5034
5036
|
MAX_LENGTH: f
|
|
5035
|
-
} =
|
|
5037
|
+
} = Go(), i = Bo();
|
|
5036
5038
|
h = e.exports = {};
|
|
5037
5039
|
const s = h.re = [], a = h.safeRe = [], o = h.src = [], p = h.safeSrc = [], n = h.t = {};
|
|
5038
5040
|
let t = 0;
|
|
@@ -5052,14 +5054,14 @@ function Pc() {
|
|
|
5052
5054
|
})(St, St.exports)), St.exports;
|
|
5053
5055
|
}
|
|
5054
5056
|
var ui, Is;
|
|
5055
|
-
function
|
|
5057
|
+
function Tc() {
|
|
5056
5058
|
if (Is) return ui;
|
|
5057
5059
|
Is = 1;
|
|
5058
5060
|
const e = Object.freeze({ loose: !0 }), h = Object.freeze({});
|
|
5059
5061
|
return ui = (g) => g ? typeof g != "object" ? e : g : h, ui;
|
|
5060
5062
|
}
|
|
5061
5063
|
var fi, Ts;
|
|
5062
|
-
function
|
|
5064
|
+
function kc() {
|
|
5063
5065
|
if (Ts) return fi;
|
|
5064
5066
|
Ts = 1;
|
|
5065
5067
|
const e = /^[0-9]+$/, h = (g, f) => {
|
|
@@ -5074,10 +5076,10 @@ function Tc() {
|
|
|
5074
5076
|
}, fi;
|
|
5075
5077
|
}
|
|
5076
5078
|
var hi, ks;
|
|
5077
|
-
function
|
|
5079
|
+
function xc() {
|
|
5078
5080
|
if (ks) return hi;
|
|
5079
5081
|
ks = 1;
|
|
5080
|
-
const e =
|
|
5082
|
+
const e = Bo(), { MAX_LENGTH: h, MAX_SAFE_INTEGER: m } = Go(), { safeRe: g, t: f } = Ic(), i = Tc(), { compareIdentifiers: s } = kc();
|
|
5081
5083
|
class a {
|
|
5082
5084
|
constructor(p, n) {
|
|
5083
5085
|
if (n = i(n), p instanceof a) {
|
|
@@ -5235,10 +5237,10 @@ function kc() {
|
|
|
5235
5237
|
return hi = a, hi;
|
|
5236
5238
|
}
|
|
5237
5239
|
var pi, xs;
|
|
5238
|
-
function
|
|
5240
|
+
function qo() {
|
|
5239
5241
|
if (xs) return pi;
|
|
5240
5242
|
xs = 1;
|
|
5241
|
-
const e =
|
|
5243
|
+
const e = xc();
|
|
5242
5244
|
return pi = (m, g, f = !1) => {
|
|
5243
5245
|
if (m instanceof e)
|
|
5244
5246
|
return m;
|
|
@@ -5252,26 +5254,26 @@ function Go() {
|
|
|
5252
5254
|
}, pi;
|
|
5253
5255
|
}
|
|
5254
5256
|
var di, Rs;
|
|
5255
|
-
function
|
|
5257
|
+
function Rc() {
|
|
5256
5258
|
if (Rs) return di;
|
|
5257
5259
|
Rs = 1;
|
|
5258
|
-
const e =
|
|
5260
|
+
const e = qo();
|
|
5259
5261
|
return di = (m, g) => {
|
|
5260
5262
|
const f = e(m, g);
|
|
5261
5263
|
return f ? f.version : null;
|
|
5262
5264
|
}, di;
|
|
5263
5265
|
}
|
|
5264
5266
|
var mi, Ms;
|
|
5265
|
-
function
|
|
5267
|
+
function Mc() {
|
|
5266
5268
|
if (Ms) return mi;
|
|
5267
5269
|
Ms = 1;
|
|
5268
|
-
const e =
|
|
5270
|
+
const e = qo();
|
|
5269
5271
|
return mi = (m, g) => {
|
|
5270
5272
|
const f = e(m.trim().replace(/^[=v]+/, ""), g);
|
|
5271
5273
|
return f ? f.version : null;
|
|
5272
5274
|
}, mi;
|
|
5273
5275
|
}
|
|
5274
|
-
const
|
|
5276
|
+
const jo = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]'), Dc = [
|
|
5275
5277
|
"AGPL-1.0",
|
|
5276
5278
|
"AGPL-3.0",
|
|
5277
5279
|
"BSD-2-Clause-FreeBSD",
|
|
@@ -5298,7 +5300,7 @@ const qo = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
|
|
|
5298
5300
|
"bzip2-1.0.5",
|
|
5299
5301
|
"eCos-2.0",
|
|
5300
5302
|
"wxWindows"
|
|
5301
|
-
],
|
|
5303
|
+
], Fc = [
|
|
5302
5304
|
"389-exception",
|
|
5303
5305
|
"Asterisk-exception",
|
|
5304
5306
|
"Autoconf-exception-2.0",
|
|
@@ -5367,10 +5369,10 @@ const qo = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
|
|
|
5367
5369
|
"x11vnc-openssl-exception"
|
|
5368
5370
|
];
|
|
5369
5371
|
var gi, Ds;
|
|
5370
|
-
function
|
|
5372
|
+
function Bc() {
|
|
5371
5373
|
if (Ds) return gi;
|
|
5372
5374
|
Ds = 1;
|
|
5373
|
-
var e = [].concat(
|
|
5375
|
+
var e = [].concat(jo).concat(Dc), h = Fc;
|
|
5374
5376
|
return gi = function(m) {
|
|
5375
5377
|
var g = 0;
|
|
5376
5378
|
function f() {
|
|
@@ -5445,7 +5447,7 @@ function Fc() {
|
|
|
5445
5447
|
}, gi;
|
|
5446
5448
|
}
|
|
5447
5449
|
var yi, Fs;
|
|
5448
|
-
function
|
|
5450
|
+
function Gc() {
|
|
5449
5451
|
return Fs || (Fs = 1, yi = function(e) {
|
|
5450
5452
|
var h = 0;
|
|
5451
5453
|
function m() {
|
|
@@ -5526,19 +5528,19 @@ function Bc() {
|
|
|
5526
5528
|
}), yi;
|
|
5527
5529
|
}
|
|
5528
5530
|
var bi, Bs;
|
|
5529
|
-
function
|
|
5531
|
+
function Uo() {
|
|
5530
5532
|
if (Bs) return bi;
|
|
5531
5533
|
Bs = 1;
|
|
5532
|
-
var e =
|
|
5534
|
+
var e = Bc(), h = Gc();
|
|
5533
5535
|
return bi = function(m) {
|
|
5534
5536
|
return h(e(m));
|
|
5535
5537
|
}, bi;
|
|
5536
5538
|
}
|
|
5537
5539
|
var vi, Gs;
|
|
5538
|
-
function
|
|
5540
|
+
function qc() {
|
|
5539
5541
|
if (Gs) return vi;
|
|
5540
5542
|
Gs = 1;
|
|
5541
|
-
var e =
|
|
5543
|
+
var e = Uo(), h = jo;
|
|
5542
5544
|
function m(r) {
|
|
5543
5545
|
try {
|
|
5544
5546
|
return e(r), !0;
|
|
@@ -5813,10 +5815,10 @@ function Gc() {
|
|
|
5813
5815
|
return vi;
|
|
5814
5816
|
}
|
|
5815
5817
|
var Si, qs;
|
|
5816
|
-
function
|
|
5818
|
+
function jc() {
|
|
5817
5819
|
if (qs) return Si;
|
|
5818
5820
|
qs = 1;
|
|
5819
|
-
var e =
|
|
5821
|
+
var e = Uo(), h = qc(), m = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"', g = /^SEE LICEN[CS]E IN (.+)$/;
|
|
5820
5822
|
function f(s, a) {
|
|
5821
5823
|
return a.slice(0, s.length) === s;
|
|
5822
5824
|
}
|
|
@@ -5871,7 +5873,7 @@ function qc() {
|
|
|
5871
5873
|
}, Si;
|
|
5872
5874
|
}
|
|
5873
5875
|
var Be = {}, js;
|
|
5874
|
-
function
|
|
5876
|
+
function Uc() {
|
|
5875
5877
|
if (js) return Be;
|
|
5876
5878
|
js = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.LRUCache = void 0;
|
|
5877
5879
|
const e = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, h = /* @__PURE__ */ new Set(), m = typeof process == "object" && process ? process : {}, g = (l, c, u, d) => {
|
|
@@ -6682,8 +6684,8 @@ function jc() {
|
|
|
6682
6684
|
const Y = this.#m(q);
|
|
6683
6685
|
if (!R && !Y)
|
|
6684
6686
|
return G && (G.fetch = "hit"), this.#N(q), v && this.#_(q), G && this.#L(G, q), T;
|
|
6685
|
-
const j = this.#x(c, q, B, P),
|
|
6686
|
-
return G && (G.fetch = Y ? "stale" : "refresh",
|
|
6687
|
+
const j = this.#x(c, q, B, P), ne = j.__staleWhileFetching !== void 0 && d;
|
|
6688
|
+
return G && (G.fetch = Y ? "stale" : "refresh", ne && Y && (G.returnedStale = !0)), ne ? j.__staleWhileFetching : j.__returned = j;
|
|
6687
6689
|
}
|
|
6688
6690
|
}
|
|
6689
6691
|
async forceFetch(c, u = {}) {
|
|
@@ -6790,7 +6792,7 @@ function jc() {
|
|
|
6790
6792
|
return Be.LRUCache = t, Be;
|
|
6791
6793
|
}
|
|
6792
6794
|
var wi, Us;
|
|
6793
|
-
function
|
|
6795
|
+
function Hc() {
|
|
6794
6796
|
if (Us) return wi;
|
|
6795
6797
|
Us = 1;
|
|
6796
6798
|
const e = (...i) => i.every((s) => s) ? i.join("") : "", h = (i) => i ? encodeURIComponent(i) : "", m = (i) => i.toLowerCase().replace(/^\W+/g, "").replace(/(?<!\W)\W+$/, "").replace(/\//g, "").replace(/\W+/g, "-"), g = {
|
|
@@ -6908,10 +6910,10 @@ function Uc() {
|
|
|
6908
6910
|
return wi = f, wi;
|
|
6909
6911
|
}
|
|
6910
6912
|
var Ei, Hs;
|
|
6911
|
-
function
|
|
6913
|
+
function Ho() {
|
|
6912
6914
|
if (Hs) return Ei;
|
|
6913
6915
|
Hs = 1;
|
|
6914
|
-
const e =
|
|
6916
|
+
const e = ka, h = (i, s, a) => {
|
|
6915
6917
|
const o = i.indexOf(a);
|
|
6916
6918
|
return i.lastIndexOf(s, o > -1 ? o : 1 / 0);
|
|
6917
6919
|
}, m = (i) => {
|
|
@@ -6935,10 +6937,10 @@ function Uo() {
|
|
|
6935
6937
|
}, Ei;
|
|
6936
6938
|
}
|
|
6937
6939
|
var Ci, Vs;
|
|
6938
|
-
function
|
|
6940
|
+
function Vc() {
|
|
6939
6941
|
if (Vs) return Ci;
|
|
6940
6942
|
Vs = 1;
|
|
6941
|
-
const e =
|
|
6943
|
+
const e = Ho(), h = (m) => {
|
|
6942
6944
|
const g = m.indexOf("#"), f = m.indexOf("/"), i = m.indexOf("/", f + 1), s = m.indexOf(":"), a = /\s/.exec(m), o = m.indexOf("@"), p = !a || g > -1 && a.index > g, n = o === -1 || g > -1 && o > g, t = s === -1 || g > -1 && s > g, l = i === -1 || g > -1 && i > g, c = f > 0, u = g > -1 ? m[g - 1] !== "/" : !m.endsWith("/"), d = !m.startsWith(".");
|
|
6943
6945
|
return p && c && u && d && n && t && l;
|
|
6944
6946
|
};
|
|
@@ -6979,10 +6981,10 @@ function Hc() {
|
|
|
6979
6981
|
}, Ci;
|
|
6980
6982
|
}
|
|
6981
6983
|
var Ai, Ws;
|
|
6982
|
-
function
|
|
6984
|
+
function Wc() {
|
|
6983
6985
|
if (Ws) return Ai;
|
|
6984
6986
|
Ws = 1;
|
|
6985
|
-
const { LRUCache: e } = /* @__PURE__ */
|
|
6987
|
+
const { LRUCache: e } = /* @__PURE__ */ Uc(), h = Hc(), m = Vc(), g = Ho(), f = new e({ max: 1e3 });
|
|
6986
6988
|
function i(a) {
|
|
6987
6989
|
try {
|
|
6988
6990
|
const {
|
|
@@ -7118,7 +7120,7 @@ function Vc() {
|
|
|
7118
7120
|
return Ai = s, Ai;
|
|
7119
7121
|
}
|
|
7120
7122
|
var Li, Ys;
|
|
7121
|
-
function
|
|
7123
|
+
function Yc() {
|
|
7122
7124
|
if (Ys) return Li;
|
|
7123
7125
|
Ys = 1, Li = e;
|
|
7124
7126
|
function e(h) {
|
|
@@ -7137,16 +7139,16 @@ function Wc() {
|
|
|
7137
7139
|
}
|
|
7138
7140
|
return Li;
|
|
7139
7141
|
}
|
|
7140
|
-
const
|
|
7141
|
-
topLevel:
|
|
7142
|
-
bugs:
|
|
7143
|
-
script:
|
|
7142
|
+
const Kc = { dependancies: "dependencies", dependecies: "dependencies", depdenencies: "dependencies", devEependencies: "devDependencies", depends: "dependencies", "dev-dependencies": "devDependencies", devDependences: "devDependencies", devDepenencies: "devDependencies", devdependencies: "devDependencies", repostitory: "repository", repo: "repository", prefereGlobal: "preferGlobal", hompage: "homepage", hampage: "homepage", autohr: "author", autor: "author", contributers: "contributors", publicationConfig: "publishConfig", script: "scripts" }, Jc = { web: "url", name: "url" }, zc = { server: "start", tests: "test" }, Xc = {
|
|
7143
|
+
topLevel: Kc,
|
|
7144
|
+
bugs: Jc,
|
|
7145
|
+
script: zc
|
|
7144
7146
|
};
|
|
7145
7147
|
var Oi, Ks;
|
|
7146
|
-
function
|
|
7148
|
+
function Qc() {
|
|
7147
7149
|
if (Ks) return Oi;
|
|
7148
7150
|
Ks = 1;
|
|
7149
|
-
var { URL: e } =
|
|
7151
|
+
var { URL: e } = Ta, h = Rc(), m = Mc(), g = jc(), f = Wc(), { isBuiltin: i } = xa, s = ["dependencies", "devDependencies", "optionalDependencies"], a = Yc(), o = Xc, p = (y) => y.includes("@") && y.indexOf("@") < y.lastIndexOf(".");
|
|
7150
7152
|
Oi = {
|
|
7151
7153
|
// default warning function
|
|
7152
7154
|
warn: function() {
|
|
@@ -7356,41 +7358,41 @@ function Xc() {
|
|
|
7356
7358
|
}
|
|
7357
7359
|
return Oi;
|
|
7358
7360
|
}
|
|
7359
|
-
const
|
|
7360
|
-
repositories:
|
|
7361
|
-
missingRepository:
|
|
7362
|
-
brokenGitUrl:
|
|
7363
|
-
nonObjectScripts:
|
|
7364
|
-
nonStringScript:
|
|
7365
|
-
nonArrayFiles:
|
|
7366
|
-
invalidFilename:
|
|
7367
|
-
nonArrayBundleDependencies:
|
|
7368
|
-
nonStringBundleDependency:
|
|
7369
|
-
nonDependencyBundleDependency:
|
|
7370
|
-
nonObjectDependencies:
|
|
7371
|
-
nonStringDependency:
|
|
7372
|
-
deprecatedArrayDependencies:
|
|
7373
|
-
deprecatedModules:
|
|
7374
|
-
nonArrayKeywords:
|
|
7375
|
-
nonStringKeyword:
|
|
7376
|
-
conflictingName:
|
|
7377
|
-
nonStringDescription:
|
|
7378
|
-
missingDescription:
|
|
7379
|
-
missingReadme:
|
|
7380
|
-
missingLicense:
|
|
7381
|
-
nonEmailUrlBugsString:
|
|
7382
|
-
nonUrlBugsUrlField:
|
|
7383
|
-
nonEmailBugsEmailField:
|
|
7384
|
-
emptyNormalizedBugs:
|
|
7385
|
-
nonUrlHomepage:
|
|
7386
|
-
invalidLicense:
|
|
7387
|
-
typo:
|
|
7361
|
+
const Zc = "'repositories' (plural) Not supported. Please pick one as the 'repository' field", eu = "No repository field.", tu = "Probably broken git url: %s", iu = "scripts must be an object", nu = "script values must be string commands", su = "Invalid 'files' member", ru = "Invalid filename in 'files' list: %s", ou = "Invalid 'bundleDependencies' list. Must be array of package names", au = "Invalid bundleDependencies member: %s", lu = "Non-dependency in bundleDependencies: %s", cu = "%s field must be an object", uu = "Invalid dependency: %s %s", fu = "specifying %s as array is deprecated", hu = "modules field is deprecated", pu = "keywords should be an array of strings", du = "keywords should be an array of strings", mu = "%s is also the name of a node core module.", gu = "'description' field should be a string", yu = "No description", bu = "No README data", vu = "No license field.", Su = "Bug string field must be url, email, or {email,url}", wu = "bugs.url field must be a string url. Deleted.", Eu = "bugs.email field must be a string email. Deleted.", Cu = "Normalized value of bugs field is an empty object. Deleted.", Au = "homepage field must be a string url. Deleted.", Lu = "license should be a valid SPDX license expression", Ou = "%s should probably be %s.", _u = {
|
|
7362
|
+
repositories: Zc,
|
|
7363
|
+
missingRepository: eu,
|
|
7364
|
+
brokenGitUrl: tu,
|
|
7365
|
+
nonObjectScripts: iu,
|
|
7366
|
+
nonStringScript: nu,
|
|
7367
|
+
nonArrayFiles: su,
|
|
7368
|
+
invalidFilename: ru,
|
|
7369
|
+
nonArrayBundleDependencies: ou,
|
|
7370
|
+
nonStringBundleDependency: au,
|
|
7371
|
+
nonDependencyBundleDependency: lu,
|
|
7372
|
+
nonObjectDependencies: cu,
|
|
7373
|
+
nonStringDependency: uu,
|
|
7374
|
+
deprecatedArrayDependencies: fu,
|
|
7375
|
+
deprecatedModules: hu,
|
|
7376
|
+
nonArrayKeywords: pu,
|
|
7377
|
+
nonStringKeyword: du,
|
|
7378
|
+
conflictingName: mu,
|
|
7379
|
+
nonStringDescription: gu,
|
|
7380
|
+
missingDescription: yu,
|
|
7381
|
+
missingReadme: bu,
|
|
7382
|
+
missingLicense: vu,
|
|
7383
|
+
nonEmailUrlBugsString: Su,
|
|
7384
|
+
nonUrlBugsUrlField: wu,
|
|
7385
|
+
nonEmailBugsEmailField: Eu,
|
|
7386
|
+
emptyNormalizedBugs: Cu,
|
|
7387
|
+
nonUrlHomepage: Au,
|
|
7388
|
+
invalidLicense: Lu,
|
|
7389
|
+
typo: Ou
|
|
7388
7390
|
};
|
|
7389
7391
|
var _i, Js;
|
|
7390
|
-
function
|
|
7392
|
+
function $u() {
|
|
7391
7393
|
if (Js) return _i;
|
|
7392
7394
|
Js = 1;
|
|
7393
|
-
var e =
|
|
7395
|
+
var e = Pa, h = _u;
|
|
7394
7396
|
_i = function() {
|
|
7395
7397
|
var g = Array.prototype.slice.call(arguments, 0), f = g.shift();
|
|
7396
7398
|
if (f === "typo")
|
|
@@ -7404,12 +7406,12 @@ function _u() {
|
|
|
7404
7406
|
return _i;
|
|
7405
7407
|
}
|
|
7406
7408
|
var $i, zs;
|
|
7407
|
-
function
|
|
7409
|
+
function Nu() {
|
|
7408
7410
|
if (zs) return $i;
|
|
7409
7411
|
zs = 1, $i = i;
|
|
7410
|
-
var e =
|
|
7412
|
+
var e = Qc();
|
|
7411
7413
|
i.fixer = e;
|
|
7412
|
-
var h =
|
|
7414
|
+
var h = $u(), m = [
|
|
7413
7415
|
"name",
|
|
7414
7416
|
"version",
|
|
7415
7417
|
"description",
|
|
@@ -7441,8 +7443,8 @@ function $u() {
|
|
|
7441
7443
|
}
|
|
7442
7444
|
return $i;
|
|
7443
7445
|
}
|
|
7444
|
-
var
|
|
7445
|
-
const
|
|
7446
|
+
var Pu = Nu();
|
|
7447
|
+
const Iu = /* @__PURE__ */ Mt(Pu);
|
|
7446
7448
|
var W = {}, Ni = {}, Pi = {}, te = {}, Xs;
|
|
7447
7449
|
function H() {
|
|
7448
7450
|
if (Xs) return te;
|
|
@@ -7594,7 +7596,7 @@ function Gt() {
|
|
|
7594
7596
|
return wt.visit = f, wt.visitAsync = s, wt;
|
|
7595
7597
|
}
|
|
7596
7598
|
var Zs;
|
|
7597
|
-
function
|
|
7599
|
+
function Vo() {
|
|
7598
7600
|
if (Zs) return Pi;
|
|
7599
7601
|
Zs = 1;
|
|
7600
7602
|
var e = H(), h = Gt();
|
|
@@ -7774,7 +7776,7 @@ function Hn() {
|
|
|
7774
7776
|
return Ie.anchorIsValid = m, Ie.anchorNames = g, Ie.createNodeAnchors = i, Ie.findNewAnchor = f, Ie;
|
|
7775
7777
|
}
|
|
7776
7778
|
var ki = {}, xi = {}, tr;
|
|
7777
|
-
function
|
|
7779
|
+
function Wo() {
|
|
7778
7780
|
if (tr) return xi;
|
|
7779
7781
|
tr = 1;
|
|
7780
7782
|
function e(h, m, g, f) {
|
|
@@ -7829,7 +7831,7 @@ var nr;
|
|
|
7829
7831
|
function Vn() {
|
|
7830
7832
|
if (nr) return ki;
|
|
7831
7833
|
nr = 1;
|
|
7832
|
-
var e =
|
|
7834
|
+
var e = Wo(), h = H(), m = _e();
|
|
7833
7835
|
class g {
|
|
7834
7836
|
constructor(i) {
|
|
7835
7837
|
Object.defineProperty(this, h.NODE_TYPE, { value: i });
|
|
@@ -8144,7 +8146,7 @@ function Ut() {
|
|
|
8144
8146
|
return qe.indentComment = h, qe.lineComment = m, qe.stringifyComment = e, qe;
|
|
8145
8147
|
}
|
|
8146
8148
|
var Fi = {}, Te = {}, cr;
|
|
8147
|
-
function
|
|
8149
|
+
function Tu() {
|
|
8148
8150
|
if (cr) return Te;
|
|
8149
8151
|
cr = 1;
|
|
8150
8152
|
const e = "flow", h = "block", m = "quoted";
|
|
@@ -8234,7 +8236,7 @@ var ur;
|
|
|
8234
8236
|
function Ht() {
|
|
8235
8237
|
if (ur) return Fi;
|
|
8236
8238
|
ur = 1;
|
|
8237
|
-
var e = ee(), h =
|
|
8239
|
+
var e = ee(), h = Tu();
|
|
8238
8240
|
const m = (l, c) => ({
|
|
8239
8241
|
indentAtStart: c ? l.indent.length : l.indentAtStart,
|
|
8240
8242
|
lineWidth: l.options.lineWidth,
|
|
@@ -8550,7 +8552,7 @@ ${p.indent}${d}` : d;
|
|
|
8550
8552
|
return At.createStringifyContext = f, At.stringify = a, At;
|
|
8551
8553
|
}
|
|
8552
8554
|
var hr;
|
|
8553
|
-
function
|
|
8555
|
+
function ku() {
|
|
8554
8556
|
if (hr) return Di;
|
|
8555
8557
|
hr = 1;
|
|
8556
8558
|
var e = H(), h = ee(), m = Vt(), g = Ut();
|
|
@@ -8620,7 +8622,7 @@ ${a.indent}`);
|
|
|
8620
8622
|
return Di.stringifyPair = f, Di;
|
|
8621
8623
|
}
|
|
8622
8624
|
var Bi = {}, Lt = {}, pr;
|
|
8623
|
-
function
|
|
8625
|
+
function Yo() {
|
|
8624
8626
|
if (pr) return Lt;
|
|
8625
8627
|
pr = 1;
|
|
8626
8628
|
var e = Ae;
|
|
@@ -8674,10 +8676,10 @@ function Yn() {
|
|
|
8674
8676
|
return je.addMergeToJSMap = i, je.isMergeKey = f, je.merge = g, je;
|
|
8675
8677
|
}
|
|
8676
8678
|
var mr;
|
|
8677
|
-
function
|
|
8679
|
+
function Ko() {
|
|
8678
8680
|
if (mr) return Bi;
|
|
8679
8681
|
mr = 1;
|
|
8680
|
-
var e =
|
|
8682
|
+
var e = Yo(), h = Yn(), m = Vt(), g = H(), f = _e();
|
|
8681
8683
|
function i(a, o, { key: p, value: n }) {
|
|
8682
8684
|
if (g.isNode(p) && p.addToJSMap)
|
|
8683
8685
|
p.addToJSMap(a, o, n);
|
|
@@ -8727,18 +8729,18 @@ var gr;
|
|
|
8727
8729
|
function $e() {
|
|
8728
8730
|
if (gr) return Ct;
|
|
8729
8731
|
gr = 1;
|
|
8730
|
-
var e = jt(), h =
|
|
8732
|
+
var e = jt(), h = ku(), m = Ko(), g = H();
|
|
8731
8733
|
function f(s, a, o) {
|
|
8732
8734
|
const p = e.createNode(s, void 0, o), n = e.createNode(a, void 0, o);
|
|
8733
8735
|
return new i(p, n);
|
|
8734
8736
|
}
|
|
8735
|
-
let i = class
|
|
8737
|
+
let i = class Jo {
|
|
8736
8738
|
constructor(a, o = null) {
|
|
8737
8739
|
Object.defineProperty(this, g.NODE_TYPE, { value: g.PAIR }), this.key = a, this.value = o;
|
|
8738
8740
|
}
|
|
8739
8741
|
clone(a) {
|
|
8740
8742
|
let { key: o, value: p } = this;
|
|
8741
|
-
return g.isNode(o) && (o = o.clone(a)), g.isNode(p) && (p = p.clone(a)), new
|
|
8743
|
+
return g.isNode(o) && (o = o.clone(a)), g.isNode(p) && (p = p.clone(a)), new Jo(o, p);
|
|
8742
8744
|
}
|
|
8743
8745
|
toJSON(a, o) {
|
|
8744
8746
|
const p = o?.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
@@ -8751,7 +8753,7 @@ function $e() {
|
|
|
8751
8753
|
return Ct.Pair = i, Ct.createPair = f, Ct;
|
|
8752
8754
|
}
|
|
8753
8755
|
var Gi = {}, qi = {}, Ot = {}, ji = {}, yr;
|
|
8754
|
-
function
|
|
8756
|
+
function zo() {
|
|
8755
8757
|
if (yr) return ji;
|
|
8756
8758
|
yr = 1;
|
|
8757
8759
|
var e = H(), h = Vt(), m = Ut();
|
|
@@ -8846,7 +8848,7 @@ var br;
|
|
|
8846
8848
|
function Ne() {
|
|
8847
8849
|
if (br) return Ot;
|
|
8848
8850
|
br = 1;
|
|
8849
|
-
var e =
|
|
8851
|
+
var e = zo(), h = Ko(), m = Wn(), g = H(), f = $e(), i = ee();
|
|
8850
8852
|
function s(o, p) {
|
|
8851
8853
|
const n = g.isScalar(p) ? p.value : p;
|
|
8852
8854
|
for (const t of o)
|
|
@@ -8964,7 +8966,7 @@ var Ui = {}, Hi = {}, Sr;
|
|
|
8964
8966
|
function Pe() {
|
|
8965
8967
|
if (Sr) return Hi;
|
|
8966
8968
|
Sr = 1;
|
|
8967
|
-
var e = jt(), h =
|
|
8969
|
+
var e = jt(), h = zo(), m = Wn(), g = H(), f = ee(), i = _e();
|
|
8968
8970
|
let s = class extends m.Collection {
|
|
8969
8971
|
static get tagName() {
|
|
8970
8972
|
return "tag:yaml.org,2002:seq";
|
|
@@ -9106,7 +9108,7 @@ function Kn() {
|
|
|
9106
9108
|
return Wi.nullTag = h, Wi;
|
|
9107
9109
|
}
|
|
9108
9110
|
var Yi = {}, Ar;
|
|
9109
|
-
function
|
|
9111
|
+
function Xo() {
|
|
9110
9112
|
if (Ar) return Yi;
|
|
9111
9113
|
Ar = 1;
|
|
9112
9114
|
var e = ee();
|
|
@@ -9150,7 +9152,7 @@ function it() {
|
|
|
9150
9152
|
return Ki.stringifyNumber = e, Ki;
|
|
9151
9153
|
}
|
|
9152
9154
|
var Or;
|
|
9153
|
-
function
|
|
9155
|
+
function Qo() {
|
|
9154
9156
|
if (Or) return Ue;
|
|
9155
9157
|
Or = 1;
|
|
9156
9158
|
var e = ee(), h = it();
|
|
@@ -9186,7 +9188,7 @@ function Xo() {
|
|
|
9186
9188
|
return Ue.float = f, Ue.floatExp = g, Ue.floatNaN = m, Ue;
|
|
9187
9189
|
}
|
|
9188
9190
|
var He = {}, _r;
|
|
9189
|
-
function
|
|
9191
|
+
function Zo() {
|
|
9190
9192
|
if (_r) return He;
|
|
9191
9193
|
_r = 1;
|
|
9192
9194
|
var e = it();
|
|
@@ -9222,10 +9224,10 @@ function Qo() {
|
|
|
9222
9224
|
return He.int = i, He.intHex = s, He.intOct = f, He;
|
|
9223
9225
|
}
|
|
9224
9226
|
var Ji = {}, $r;
|
|
9225
|
-
function
|
|
9227
|
+
function xu() {
|
|
9226
9228
|
if ($r) return Ji;
|
|
9227
9229
|
$r = 1;
|
|
9228
|
-
var e = et(), h = Kn(), m = tt(), g = Wt(), f =
|
|
9230
|
+
var e = et(), h = Kn(), m = tt(), g = Wt(), f = Xo(), i = Qo(), s = Zo();
|
|
9229
9231
|
const a = [
|
|
9230
9232
|
e.map,
|
|
9231
9233
|
m.seq,
|
|
@@ -9242,7 +9244,7 @@ function ku() {
|
|
|
9242
9244
|
return Ji.schema = a, Ji;
|
|
9243
9245
|
}
|
|
9244
9246
|
var zi = {}, Nr;
|
|
9245
|
-
function
|
|
9247
|
+
function Ru() {
|
|
9246
9248
|
if (Nr) return zi;
|
|
9247
9249
|
Nr = 1;
|
|
9248
9250
|
var e = ee(), h = et(), m = tt();
|
|
@@ -9301,10 +9303,10 @@ function xu() {
|
|
|
9301
9303
|
return zi.schema = a, zi;
|
|
9302
9304
|
}
|
|
9303
9305
|
var Xi = {}, Pr;
|
|
9304
|
-
function
|
|
9306
|
+
function ea() {
|
|
9305
9307
|
if (Pr) return Xi;
|
|
9306
9308
|
Pr = 1;
|
|
9307
|
-
var e =
|
|
9309
|
+
var e = Ra, h = ee(), m = Ht();
|
|
9308
9310
|
const g = {
|
|
9309
9311
|
identify: (f) => f instanceof Uint8Array,
|
|
9310
9312
|
// Buffer inherits from Uint8Array
|
|
@@ -9418,7 +9420,7 @@ ${l.comment}` : n.comment;
|
|
|
9418
9420
|
return Ve.createPairs = i, Ve.pairs = s, Ve.resolvePairs = f, Ve;
|
|
9419
9421
|
}
|
|
9420
9422
|
var Tr;
|
|
9421
|
-
function
|
|
9423
|
+
function ta() {
|
|
9422
9424
|
if (Tr) return $t;
|
|
9423
9425
|
Tr = 1;
|
|
9424
9426
|
var e = H(), h = _e(), m = Ne(), g = Pe(), f = Jn();
|
|
@@ -9466,7 +9468,7 @@ function ea() {
|
|
|
9466
9468
|
return $t.YAMLOMap = i, $t.omap = s, $t;
|
|
9467
9469
|
}
|
|
9468
9470
|
var Qi = {}, Nt = {}, kr;
|
|
9469
|
-
function
|
|
9471
|
+
function Mu() {
|
|
9470
9472
|
if (kr) return Nt;
|
|
9471
9473
|
kr = 1;
|
|
9472
9474
|
var e = ee();
|
|
@@ -9491,7 +9493,7 @@ function Ru() {
|
|
|
9491
9493
|
return Nt.falseTag = g, Nt.trueTag = m, Nt;
|
|
9492
9494
|
}
|
|
9493
9495
|
var We = {}, xr;
|
|
9494
|
-
function
|
|
9496
|
+
function Du() {
|
|
9495
9497
|
if (xr) return We;
|
|
9496
9498
|
xr = 1;
|
|
9497
9499
|
var e = ee(), h = it();
|
|
@@ -9531,7 +9533,7 @@ function Mu() {
|
|
|
9531
9533
|
return We.float = f, We.floatExp = g, We.floatNaN = m, We;
|
|
9532
9534
|
}
|
|
9533
9535
|
var ke = {}, Rr;
|
|
9534
|
-
function
|
|
9536
|
+
function Fu() {
|
|
9535
9537
|
if (Rr) return ke;
|
|
9536
9538
|
Rr = 1;
|
|
9537
9539
|
var e = it();
|
|
@@ -9599,7 +9601,7 @@ function Du() {
|
|
|
9599
9601
|
return ke.int = s, ke.intBin = f, ke.intHex = a, ke.intOct = i, ke;
|
|
9600
9602
|
}
|
|
9601
9603
|
var Pt = {}, Mr;
|
|
9602
|
-
function
|
|
9604
|
+
function ia() {
|
|
9603
9605
|
if (Mr) return Pt;
|
|
9604
9606
|
Mr = 1;
|
|
9605
9607
|
var e = H(), h = $e(), m = Ne();
|
|
@@ -9664,7 +9666,7 @@ function ta() {
|
|
|
9664
9666
|
return Pt.YAMLSet = g, Pt.set = f, Pt;
|
|
9665
9667
|
}
|
|
9666
9668
|
var Ye = {}, Dr;
|
|
9667
|
-
function
|
|
9669
|
+
function na() {
|
|
9668
9670
|
if (Dr) return Ye;
|
|
9669
9671
|
Dr = 1;
|
|
9670
9672
|
var e = it();
|
|
@@ -9725,10 +9727,10 @@ function ia() {
|
|
|
9725
9727
|
return Ye.floatTime = f, Ye.intTime = g, Ye.timestamp = i, Ye;
|
|
9726
9728
|
}
|
|
9727
9729
|
var Fr;
|
|
9728
|
-
function
|
|
9730
|
+
function Bu() {
|
|
9729
9731
|
if (Fr) return Qi;
|
|
9730
9732
|
Fr = 1;
|
|
9731
|
-
var e = et(), h = Kn(), m = tt(), g = Wt(), f =
|
|
9733
|
+
var e = et(), h = Kn(), m = tt(), g = Wt(), f = ea(), i = Mu(), s = Du(), a = Fu(), o = Yn(), p = ta(), n = Jn(), t = ia(), l = na();
|
|
9732
9734
|
const c = [
|
|
9733
9735
|
e.map,
|
|
9734
9736
|
m.seq,
|
|
@@ -9755,10 +9757,10 @@ function Fu() {
|
|
|
9755
9757
|
return Qi.schema = c, Qi;
|
|
9756
9758
|
}
|
|
9757
9759
|
var Br;
|
|
9758
|
-
function
|
|
9760
|
+
function Gu() {
|
|
9759
9761
|
if (Br) return _t;
|
|
9760
9762
|
Br = 1;
|
|
9761
|
-
var e = et(), h = Kn(), m = tt(), g = Wt(), f =
|
|
9763
|
+
var e = et(), h = Kn(), m = tt(), g = Wt(), f = Xo(), i = Qo(), s = Zo(), a = xu(), o = Ru(), p = ea(), n = Yn(), t = ta(), l = Jn(), c = Bu(), u = ia(), d = na();
|
|
9762
9764
|
const v = /* @__PURE__ */ new Map([
|
|
9763
9765
|
["core", a.schema],
|
|
9764
9766
|
["failsafe", [e.map, m.seq, g.string]],
|
|
@@ -9820,24 +9822,24 @@ function Bu() {
|
|
|
9820
9822
|
return _t.coreKnownTags = b, _t.getTags = w, _t;
|
|
9821
9823
|
}
|
|
9822
9824
|
var Gr;
|
|
9823
|
-
function
|
|
9825
|
+
function ra() {
|
|
9824
9826
|
if (Gr) return Gi;
|
|
9825
9827
|
Gr = 1;
|
|
9826
|
-
var e = H(), h = et(), m = tt(), g = Wt(), f =
|
|
9828
|
+
var e = H(), h = et(), m = tt(), g = Wt(), f = Gu();
|
|
9827
9829
|
const i = (a, o) => a.key < o.key ? -1 : a.key > o.key ? 1 : 0;
|
|
9828
|
-
let s = class
|
|
9830
|
+
let s = class sa {
|
|
9829
9831
|
constructor({ compat: o, customTags: p, merge: n, resolveKnownTags: t, schema: l, sortMapEntries: c, toStringDefaults: u }) {
|
|
9830
9832
|
this.compat = Array.isArray(o) ? f.getTags(o, "compat") : o ? f.getTags(null, o) : null, this.name = typeof l == "string" && l || "core", this.knownTags = t ? f.coreKnownTags : {}, this.tags = f.getTags(p, this.name, n), this.toStringOptions = u ?? null, Object.defineProperty(this, e.MAP, { value: h.map }), Object.defineProperty(this, e.SCALAR, { value: g.string }), Object.defineProperty(this, e.SEQ, { value: m.seq }), this.sortMapEntries = typeof c == "function" ? c : c === !0 ? i : null;
|
|
9831
9833
|
}
|
|
9832
9834
|
clone() {
|
|
9833
|
-
const o = Object.create(
|
|
9835
|
+
const o = Object.create(sa.prototype, Object.getOwnPropertyDescriptors(this));
|
|
9834
9836
|
return o.tags = this.tags.slice(), o;
|
|
9835
9837
|
}
|
|
9836
9838
|
};
|
|
9837
9839
|
return Gi.Schema = s, Gi;
|
|
9838
9840
|
}
|
|
9839
9841
|
var Zi = {}, qr;
|
|
9840
|
-
function
|
|
9842
|
+
function qu() {
|
|
9841
9843
|
if (qr) return Zi;
|
|
9842
9844
|
qr = 1;
|
|
9843
9845
|
var e = H(), h = Vt(), m = Ut();
|
|
@@ -9890,8 +9892,8 @@ var jr;
|
|
|
9890
9892
|
function Yt() {
|
|
9891
9893
|
if (jr) return Ii;
|
|
9892
9894
|
jr = 1;
|
|
9893
|
-
var e = qt(), h = Wn(), m = H(), g = $e(), f = _e(), i =
|
|
9894
|
-
let t = class
|
|
9895
|
+
var e = qt(), h = Wn(), m = H(), g = $e(), f = _e(), i = ra(), s = qu(), a = Hn(), o = Wo(), p = jt(), n = Vo();
|
|
9896
|
+
let t = class oa {
|
|
9895
9897
|
constructor(u, d, v) {
|
|
9896
9898
|
this.commentBefore = null, this.comment = null, this.errors = [], this.warnings = [], Object.defineProperty(this, m.NODE_TYPE, { value: m.DOC });
|
|
9897
9899
|
let r = null;
|
|
@@ -9916,7 +9918,7 @@ function Yt() {
|
|
|
9916
9918
|
* Custom Node values that inherit from `Object` still refer to their original instances.
|
|
9917
9919
|
*/
|
|
9918
9920
|
clone() {
|
|
9919
|
-
const u = Object.create(
|
|
9921
|
+
const u = Object.create(oa.prototype, {
|
|
9920
9922
|
[m.NODE_TYPE]: { value: m.DOC }
|
|
9921
9923
|
});
|
|
9922
9924
|
return u.commentBefore = this.commentBefore, u.comment = this.comment, u.errors = this.errors.slice(), u.warnings = this.warnings.slice(), u.options = Object.assign({}, this.options), this.directives && (u.directives = this.directives.clone()), u.schema = this.schema.clone(), u.contents = m.isNode(this.contents) ? this.contents.clone(u.schema) : this.contents, this.range && (u.range = this.range.slice()), u;
|
|
@@ -10254,7 +10256,7 @@ function zn() {
|
|
|
10254
10256
|
return rn.containsNewline = e, rn;
|
|
10255
10257
|
}
|
|
10256
10258
|
var on = {}, Wr;
|
|
10257
|
-
function
|
|
10259
|
+
function aa() {
|
|
10258
10260
|
if (Wr) return on;
|
|
10259
10261
|
Wr = 1;
|
|
10260
10262
|
var e = zn();
|
|
@@ -10267,7 +10269,7 @@ function oa() {
|
|
|
10267
10269
|
return on.flowIndentCheck = h, on;
|
|
10268
10270
|
}
|
|
10269
10271
|
var an = {}, Yr;
|
|
10270
|
-
function
|
|
10272
|
+
function la() {
|
|
10271
10273
|
if (Yr) return an;
|
|
10272
10274
|
Yr = 1;
|
|
10273
10275
|
var e = H();
|
|
@@ -10281,10 +10283,10 @@ function aa() {
|
|
|
10281
10283
|
return an.mapIncludes = h, an;
|
|
10282
10284
|
}
|
|
10283
10285
|
var Kr;
|
|
10284
|
-
function
|
|
10286
|
+
function ju() {
|
|
10285
10287
|
if (Kr) return nn;
|
|
10286
10288
|
Kr = 1;
|
|
10287
|
-
var e = $e(), h = Ne(), m = Jt(), g = zn(), f =
|
|
10289
|
+
var e = $e(), h = Ne(), m = Jt(), g = zn(), f = aa(), i = la();
|
|
10288
10290
|
const s = "All mapping items must start at the same column";
|
|
10289
10291
|
function a({ composeNode: o, composeEmptyNode: p }, n, t, l, c) {
|
|
10290
10292
|
const u = c?.nodeClass ?? h.YAMLMap, d = new u(n.schema);
|
|
@@ -10336,10 +10338,10 @@ function qu() {
|
|
|
10336
10338
|
return nn.resolveBlockMap = a, nn;
|
|
10337
10339
|
}
|
|
10338
10340
|
var ln = {}, Jr;
|
|
10339
|
-
function
|
|
10341
|
+
function Uu() {
|
|
10340
10342
|
if (Jr) return ln;
|
|
10341
10343
|
Jr = 1;
|
|
10342
|
-
var e = Pe(), h = Jt(), m =
|
|
10344
|
+
var e = Pe(), h = Jt(), m = aa();
|
|
10343
10345
|
function g({ composeNode: f, composeEmptyNode: i }, s, a, o, p) {
|
|
10344
10346
|
const n = p?.nodeClass ?? e.YAMLSeq, t = new n(s.schema);
|
|
10345
10347
|
s.atRoot && (s.atRoot = !1), s.atKey && (s.atKey = !1);
|
|
@@ -10401,10 +10403,10 @@ function nt() {
|
|
|
10401
10403
|
return un.resolveEnd = e, un;
|
|
10402
10404
|
}
|
|
10403
10405
|
var Xr;
|
|
10404
|
-
function
|
|
10406
|
+
function Hu() {
|
|
10405
10407
|
if (Xr) return cn;
|
|
10406
10408
|
Xr = 1;
|
|
10407
|
-
var e = H(), h = $e(), m = Ne(), g = Pe(), f = nt(), i = Jt(), s = zn(), a =
|
|
10409
|
+
var e = H(), h = $e(), m = Ne(), g = Pe(), f = nt(), i = Jt(), s = zn(), a = la();
|
|
10408
10410
|
const o = "Block collections are not allowed within flow collections", p = (t) => t && (t.type === "block-map" || t.type === "block-seq");
|
|
10409
10411
|
function n({ composeNode: t, composeEmptyNode: l }, c, u, d, v) {
|
|
10410
10412
|
const r = u.start.source === "{", b = r ? "flow map" : "flow sequence", w = v?.nodeClass ?? (r ? m.YAMLMap : g.YAMLSeq), y = new w(c.schema);
|
|
@@ -10486,20 +10488,20 @@ function Uu() {
|
|
|
10486
10488
|
T.start < U.found.offset - 1024 && d(U.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
10487
10489
|
}
|
|
10488
10490
|
} else q && ("source" in q && q.source?.[0] === ":" ? d(q, "MISSING_CHAR", `Missing space after : in ${b}`) : d(U.start, "MISSING_CHAR", `Missing , or : between ${b} items`));
|
|
10489
|
-
const
|
|
10490
|
-
|
|
10491
|
+
const ne = q ? t(c, q, U, d) : U.found ? l(c, U.end, B, null, U, d) : null;
|
|
10492
|
+
ne ? p(q) && d(ne.range, "BLOCK_IN_FLOW", o) : U.comment && (j.comment ? j.comment += `
|
|
10491
10493
|
` + U.comment : j.comment = U.comment);
|
|
10492
|
-
const Ee = new h.Pair(j,
|
|
10494
|
+
const Ee = new h.Pair(j, ne);
|
|
10493
10495
|
if (c.options.keepSourceTokens && (Ee.srcToken = R), r) {
|
|
10494
10496
|
const ue = y;
|
|
10495
10497
|
a.mapIncludes(c, ue.items, j) && d(Y, "DUPLICATE_KEY", "Map keys must be unique"), ue.items.push(Ee);
|
|
10496
10498
|
} else {
|
|
10497
10499
|
const ue = new m.YAMLMap(c.schema);
|
|
10498
10500
|
ue.flow = !0, ue.items.push(Ee);
|
|
10499
|
-
const fe = (
|
|
10501
|
+
const fe = (ne ?? j).range;
|
|
10500
10502
|
ue.range = [j.range[0], fe[1], fe[2]], y.items.push(ue);
|
|
10501
10503
|
}
|
|
10502
|
-
E =
|
|
10504
|
+
E = ne ? ne.range[2] : U.end;
|
|
10503
10505
|
}
|
|
10504
10506
|
}
|
|
10505
10507
|
const C = r ? "}" : "]", [_, ...$] = u.end;
|
|
@@ -10521,10 +10523,10 @@ function Uu() {
|
|
|
10521
10523
|
return cn.resolveFlowCollection = n, cn;
|
|
10522
10524
|
}
|
|
10523
10525
|
var Qr;
|
|
10524
|
-
function
|
|
10526
|
+
function Vu() {
|
|
10525
10527
|
if (Qr) return tn;
|
|
10526
10528
|
Qr = 1;
|
|
10527
|
-
var e = H(), h = ee(), m = Ne(), g = Pe(), f =
|
|
10529
|
+
var e = H(), h = ee(), m = Ne(), g = Pe(), f = ju(), i = Uu(), s = Hu();
|
|
10528
10530
|
function a(p, n, t, l, c, u) {
|
|
10529
10531
|
const d = t.type === "block-map" ? f.resolveBlockMap(p, n, t, l, u) : t.type === "block-seq" ? i.resolveBlockSeq(p, n, t, l, u) : s.resolveFlowCollection(p, n, t, l, u), v = d.constructor;
|
|
10530
10532
|
return c === "!" || c === v.tagName ? (d.tag = v.tagName, d) : (c && (d.tag = c), d);
|
|
@@ -10552,7 +10554,7 @@ function Hu() {
|
|
|
10552
10554
|
return tn.composeCollection = o, tn;
|
|
10553
10555
|
}
|
|
10554
10556
|
var fn = {}, hn = {}, Zr;
|
|
10555
|
-
function
|
|
10557
|
+
function ca() {
|
|
10556
10558
|
if (Zr) return hn;
|
|
10557
10559
|
Zr = 1;
|
|
10558
10560
|
var e = ee();
|
|
@@ -10680,7 +10682,7 @@ function la() {
|
|
|
10680
10682
|
return hn.resolveBlockScalar = h, hn;
|
|
10681
10683
|
}
|
|
10682
10684
|
var pn = {}, eo;
|
|
10683
|
-
function
|
|
10685
|
+
function ua() {
|
|
10684
10686
|
if (eo) return pn;
|
|
10685
10687
|
eo = 1;
|
|
10686
10688
|
var e = ee(), h = nt();
|
|
@@ -10862,10 +10864,10 @@ function ca() {
|
|
|
10862
10864
|
return pn.resolveFlowScalar = m, pn;
|
|
10863
10865
|
}
|
|
10864
10866
|
var to;
|
|
10865
|
-
function
|
|
10867
|
+
function Wu() {
|
|
10866
10868
|
if (to) return fn;
|
|
10867
10869
|
to = 1;
|
|
10868
|
-
var e = H(), h = ee(), m =
|
|
10870
|
+
var e = H(), h = ee(), m = ca(), g = ua();
|
|
10869
10871
|
function f(a, o, p, n) {
|
|
10870
10872
|
const { value: t, type: l, comment: c, range: u } = o.type === "block-scalar" ? m.resolveBlockScalar(a, o, n) : g.resolveFlowScalar(o, a.options.strict, n), d = p ? a.directives.tagName(p.source, (b) => n(p, "TAG_RESOLVE_FAILED", b)) : null;
|
|
10871
10873
|
let v;
|
|
@@ -10910,7 +10912,7 @@ function Vu() {
|
|
|
10910
10912
|
return fn.composeScalar = f, fn;
|
|
10911
10913
|
}
|
|
10912
10914
|
var dn = {}, io;
|
|
10913
|
-
function
|
|
10915
|
+
function Yu() {
|
|
10914
10916
|
if (io) return dn;
|
|
10915
10917
|
io = 1;
|
|
10916
10918
|
function e(h, m, g) {
|
|
@@ -10935,10 +10937,10 @@ function Wu() {
|
|
|
10935
10937
|
return dn.emptyScalarPosition = e, dn;
|
|
10936
10938
|
}
|
|
10937
10939
|
var no;
|
|
10938
|
-
function
|
|
10940
|
+
function Ku() {
|
|
10939
10941
|
if (no) return It;
|
|
10940
10942
|
no = 1;
|
|
10941
|
-
var e = qt(), h = H(), m =
|
|
10943
|
+
var e = qt(), h = H(), m = Vu(), g = Wu(), f = nt(), i = Yu();
|
|
10942
10944
|
const s = { composeNode: a, composeEmptyNode: o };
|
|
10943
10945
|
function a(n, t, l, c) {
|
|
10944
10946
|
const u = n.atKey, { spaceBefore: d, comment: v, anchor: r, tag: b } = l;
|
|
@@ -10983,10 +10985,10 @@ function Yu() {
|
|
|
10983
10985
|
return It.composeEmptyNode = o, It.composeNode = a, It;
|
|
10984
10986
|
}
|
|
10985
10987
|
var so;
|
|
10986
|
-
function
|
|
10988
|
+
function Ju() {
|
|
10987
10989
|
if (so) return en;
|
|
10988
10990
|
so = 1;
|
|
10989
|
-
var e = Yt(), h =
|
|
10991
|
+
var e = Yt(), h = Ku(), m = nt(), g = Jt();
|
|
10990
10992
|
function f(i, s, { offset: a, start: o, value: p, end: n }, t) {
|
|
10991
10993
|
const l = Object.assign({ _directives: s }, i), c = new e.Document(void 0, l), u = {
|
|
10992
10994
|
atKey: !1,
|
|
@@ -11009,10 +11011,10 @@ function Ku() {
|
|
|
11009
11011
|
return en.composeDoc = f, en;
|
|
11010
11012
|
}
|
|
11011
11013
|
var ro;
|
|
11012
|
-
function
|
|
11014
|
+
function fa() {
|
|
11013
11015
|
if (ro) return Ni;
|
|
11014
11016
|
ro = 1;
|
|
11015
|
-
var e = Ae, h =
|
|
11017
|
+
var e = Ae, h = Vo(), m = Yt(), g = Kt(), f = H(), i = Ju(), s = nt();
|
|
11016
11018
|
function a(n) {
|
|
11017
11019
|
if (typeof n == "number")
|
|
11018
11020
|
return [n, n + 1];
|
|
@@ -11158,11 +11160,11 @@ ${l.comment}` : l.comment;
|
|
|
11158
11160
|
}
|
|
11159
11161
|
return Ni.Composer = p, Ni;
|
|
11160
11162
|
}
|
|
11161
|
-
var
|
|
11162
|
-
function
|
|
11163
|
+
var oe = {}, Ke = {}, oo;
|
|
11164
|
+
function zu() {
|
|
11163
11165
|
if (oo) return Ke;
|
|
11164
11166
|
oo = 1;
|
|
11165
|
-
var e =
|
|
11167
|
+
var e = ca(), h = ua(), m = Kt(), g = Ht();
|
|
11166
11168
|
function f(n, t = !0, l) {
|
|
11167
11169
|
if (n) {
|
|
11168
11170
|
const c = (u, d, v) => {
|
|
@@ -11320,7 +11322,7 @@ function Ju() {
|
|
|
11320
11322
|
return Ke.createScalarToken = i, Ke.resolveAsScalar = f, Ke.setScalarValue = s, Ke;
|
|
11321
11323
|
}
|
|
11322
11324
|
var mn = {}, ao;
|
|
11323
|
-
function
|
|
11325
|
+
function Xu() {
|
|
11324
11326
|
if (ao) return mn;
|
|
11325
11327
|
ao = 1;
|
|
11326
11328
|
const e = (g) => "type" in g ? h(g) : m(g);
|
|
@@ -11375,7 +11377,7 @@ function zu() {
|
|
|
11375
11377
|
return mn.stringify = e, mn;
|
|
11376
11378
|
}
|
|
11377
11379
|
var gn = {}, lo;
|
|
11378
|
-
function
|
|
11380
|
+
function Qu() {
|
|
11379
11381
|
if (lo) return gn;
|
|
11380
11382
|
lo = 1;
|
|
11381
11383
|
const e = /* @__PURE__ */ Symbol("break visit"), h = /* @__PURE__ */ Symbol("skip children"), m = /* @__PURE__ */ Symbol("remove item");
|
|
@@ -11424,9 +11426,9 @@ function Xu() {
|
|
|
11424
11426
|
}
|
|
11425
11427
|
var co;
|
|
11426
11428
|
function Xn() {
|
|
11427
|
-
if (co) return
|
|
11429
|
+
if (co) return oe;
|
|
11428
11430
|
co = 1;
|
|
11429
|
-
var e =
|
|
11431
|
+
var e = zu(), h = Xu(), m = Qu();
|
|
11430
11432
|
const g = "\uFEFF", f = "", i = "", s = "", a = (t) => !!t && "items" in t, o = (t) => !!t && (t.type === "scalar" || t.type === "single-quoted-scalar" || t.type === "double-quoted-scalar" || t.type === "block-scalar");
|
|
11431
11433
|
function p(t) {
|
|
11432
11434
|
switch (t) {
|
|
@@ -11503,10 +11505,10 @@ function Xn() {
|
|
|
11503
11505
|
}
|
|
11504
11506
|
return null;
|
|
11505
11507
|
}
|
|
11506
|
-
return
|
|
11508
|
+
return oe.createScalarToken = e.createScalarToken, oe.resolveAsScalar = e.resolveAsScalar, oe.setScalarValue = e.setScalarValue, oe.stringify = h.stringify, oe.visit = m.visit, oe.BOM = g, oe.DOCUMENT = f, oe.FLOW_END = i, oe.SCALAR = s, oe.isCollection = a, oe.isScalar = o, oe.prettyToken = p, oe.tokenType = n, oe;
|
|
11507
11509
|
}
|
|
11508
11510
|
var yn = {}, uo;
|
|
11509
|
-
function
|
|
11511
|
+
function ha() {
|
|
11510
11512
|
if (uo) return yn;
|
|
11511
11513
|
uo = 1;
|
|
11512
11514
|
var e = Xn();
|
|
@@ -11943,7 +11945,7 @@ function fa() {
|
|
|
11943
11945
|
return yn.Lexer = a, yn;
|
|
11944
11946
|
}
|
|
11945
11947
|
var bn = {}, fo;
|
|
11946
|
-
function
|
|
11948
|
+
function pa() {
|
|
11947
11949
|
if (fo) return bn;
|
|
11948
11950
|
fo = 1;
|
|
11949
11951
|
class e {
|
|
@@ -11966,10 +11968,10 @@ function ha() {
|
|
|
11966
11968
|
return bn.LineCounter = e, bn;
|
|
11967
11969
|
}
|
|
11968
11970
|
var vn = {}, ho;
|
|
11969
|
-
function
|
|
11971
|
+
function da() {
|
|
11970
11972
|
if (ho) return vn;
|
|
11971
11973
|
ho = 1;
|
|
11972
|
-
var e = Ae, h = Xn(), m =
|
|
11974
|
+
var e = Ae, h = Xn(), m = ha();
|
|
11973
11975
|
function g(n, t) {
|
|
11974
11976
|
for (let l = 0; l < n.length; ++l)
|
|
11975
11977
|
if (n[l].type === t)
|
|
@@ -12619,10 +12621,10 @@ function pa() {
|
|
|
12619
12621
|
return vn.Parser = p, vn;
|
|
12620
12622
|
}
|
|
12621
12623
|
var Re = {}, po;
|
|
12622
|
-
function
|
|
12624
|
+
function Zu() {
|
|
12623
12625
|
if (po) return Re;
|
|
12624
12626
|
po = 1;
|
|
12625
|
-
var e =
|
|
12627
|
+
var e = fa(), h = Yt(), m = Kt(), g = Yo(), f = H(), i = pa(), s = da();
|
|
12626
12628
|
function a(l) {
|
|
12627
12629
|
const c = l.prettyErrors !== !1;
|
|
12628
12630
|
return { lineCounter: l.lineCounter || c && new i.LineCounter() || null, prettyErrors: c };
|
|
@@ -12675,13 +12677,13 @@ function Qu() {
|
|
|
12675
12677
|
return Re.parse = n, Re.parseAllDocuments = o, Re.parseDocument = p, Re.stringify = t, Re;
|
|
12676
12678
|
}
|
|
12677
12679
|
var mo;
|
|
12678
|
-
function
|
|
12680
|
+
function ef() {
|
|
12679
12681
|
if (mo) return W;
|
|
12680
12682
|
mo = 1;
|
|
12681
|
-
var e =
|
|
12683
|
+
var e = fa(), h = Yt(), m = ra(), g = Kt(), f = qt(), i = H(), s = $e(), a = ee(), o = Ne(), p = Pe(), n = Xn(), t = ha(), l = pa(), c = da(), u = Zu(), d = Gt();
|
|
12682
12684
|
return W.Composer = e.Composer, W.Document = h.Document, W.Schema = m.Schema, W.YAMLError = g.YAMLError, W.YAMLParseError = g.YAMLParseError, W.YAMLWarning = g.YAMLWarning, W.Alias = f.Alias, W.isAlias = i.isAlias, W.isCollection = i.isCollection, W.isDocument = i.isDocument, W.isMap = i.isMap, W.isNode = i.isNode, W.isPair = i.isPair, W.isScalar = i.isScalar, W.isSeq = i.isSeq, W.Pair = s.Pair, W.Scalar = a.Scalar, W.YAMLMap = o.YAMLMap, W.YAMLSeq = p.YAMLSeq, W.CST = n, W.Lexer = t.Lexer, W.LineCounter = l.LineCounter, W.Parser = c.Parser, W.parse = u.parse, W.parseAllDocuments = u.parseAllDocuments, W.parseDocument = u.parseDocument, W.stringify = u.stringify, W.visit = d.visit, W.visitAsync = d.visitAsync, W;
|
|
12683
12685
|
}
|
|
12684
|
-
var
|
|
12686
|
+
var tf = ef();
|
|
12685
12687
|
const Q = {
|
|
12686
12688
|
missingGit: "Git is required to fetch templates, but it is not installed or not available on PATH. Please install Git and try again.",
|
|
12687
12689
|
missingTemplate: [
|
|
@@ -12702,11 +12704,11 @@ const Q = {
|
|
|
12702
12704
|
folderAlreadyExists: (e) => `Directory "${e}" already exists. Please choose a different project name or remove the existing directory and try again.`,
|
|
12703
12705
|
generic: "An unexpected error occurred while creating your project. Please try again."
|
|
12704
12706
|
};
|
|
12705
|
-
function
|
|
12707
|
+
function nf() {
|
|
12706
12708
|
return !!process.env.ARCGIS_CREATE_DEBUG_ERRORS;
|
|
12707
12709
|
}
|
|
12708
12710
|
function go(e) {
|
|
12709
|
-
if (
|
|
12711
|
+
if (nf()) {
|
|
12710
12712
|
if (e instanceof Error)
|
|
12711
12713
|
return e.stack ?? e.message;
|
|
12712
12714
|
if (typeof e == "string")
|
|
@@ -12741,71 +12743,71 @@ function Qn(e) {
|
|
|
12741
12743
|
name: e.name,
|
|
12742
12744
|
shouldCleanup: !1,
|
|
12743
12745
|
async doCleanup(m) {
|
|
12744
|
-
if (jn(
|
|
12746
|
+
if (jn(le("bgRed", go(m))), this.shouldCleanup && this.name)
|
|
12745
12747
|
try {
|
|
12746
|
-
await
|
|
12748
|
+
await uf(this.name);
|
|
12747
12749
|
} catch (g) {
|
|
12748
|
-
console.error(
|
|
12750
|
+
console.error(le("bgRed", go(g)));
|
|
12749
12751
|
}
|
|
12750
12752
|
if (process.exitCode = 1, process.env.NODE_ENV === "test")
|
|
12751
12753
|
throw m;
|
|
12752
12754
|
}
|
|
12753
12755
|
};
|
|
12754
12756
|
}
|
|
12755
|
-
const be =
|
|
12756
|
-
async function
|
|
12757
|
+
const be = Ia(Na.exec), zt = (e) => typeof e == "object" && e !== null && "code" in e;
|
|
12758
|
+
async function ma() {
|
|
12757
12759
|
try {
|
|
12758
12760
|
await be("git --version");
|
|
12759
12761
|
} catch {
|
|
12760
12762
|
throw new Error(Q.missingGit);
|
|
12761
12763
|
}
|
|
12762
12764
|
}
|
|
12763
|
-
async function
|
|
12764
|
-
await
|
|
12765
|
+
async function sf(e, h, m, g = Tn) {
|
|
12766
|
+
await ma();
|
|
12765
12767
|
const f = Ae.cwd();
|
|
12766
12768
|
try {
|
|
12767
|
-
await
|
|
12769
|
+
await ie.mkdir(e);
|
|
12768
12770
|
} catch (i) {
|
|
12769
12771
|
throw zt(i) && i.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
|
|
12770
12772
|
}
|
|
12771
12773
|
try {
|
|
12772
12774
|
Ae.chdir(e), await be("git init"), await be(`git remote add origin ${h}`), await be("git config core.sparseCheckout true"), await be(`git sparse-checkout set --no-cone ${m}/*`), await be(`git pull origin ${g}`);
|
|
12773
12775
|
try {
|
|
12774
|
-
if (!(await
|
|
12776
|
+
if (!(await ie.stat(m)).isDirectory())
|
|
12775
12777
|
throw new Error();
|
|
12776
12778
|
} catch {
|
|
12777
12779
|
throw new Error(Q.missingTemplate);
|
|
12778
12780
|
}
|
|
12779
|
-
await
|
|
12781
|
+
await ga(m, "."), await ie.rm(".git", { recursive: !0, force: !0 });
|
|
12780
12782
|
} finally {
|
|
12781
12783
|
Ae.chdir(f);
|
|
12782
12784
|
}
|
|
12783
12785
|
}
|
|
12784
|
-
async function
|
|
12785
|
-
await
|
|
12786
|
+
async function rf(e, h, m, g = Tn) {
|
|
12787
|
+
await ma();
|
|
12786
12788
|
const f = Ae.cwd();
|
|
12787
12789
|
let i = {};
|
|
12788
12790
|
try {
|
|
12789
|
-
await
|
|
12791
|
+
await ie.mkdir(e);
|
|
12790
12792
|
} catch (s) {
|
|
12791
12793
|
throw zt(s) && s.code === "EEXIST" ? new Error(Q.folderAlreadyExists(e)) : new Error(Q.generic);
|
|
12792
12794
|
}
|
|
12793
12795
|
try {
|
|
12794
12796
|
Ae.chdir(e), await be("git init"), await be(`git remote add origin ${h}`), await be("git config core.sparseCheckout true"), await be(`git sparse-checkout set --no-cone ${m}/* pnpm-workspace.yaml`), await be(`git pull origin ${g}`);
|
|
12795
12797
|
try {
|
|
12796
|
-
if (!(await
|
|
12798
|
+
if (!(await ie.stat(m)).isDirectory())
|
|
12797
12799
|
throw new Error();
|
|
12798
12800
|
} catch {
|
|
12799
12801
|
throw new Error(Q.missingTemplate);
|
|
12800
12802
|
}
|
|
12801
|
-
const s = await
|
|
12802
|
-
i =
|
|
12803
|
+
const s = await ie.readFile("pnpm-workspace.yaml", "utf-8");
|
|
12804
|
+
i = tf.parse(s).catalog ?? {}, await ga(m, "."), await ie.rm(".git", { recursive: !0, force: !0 }), await ie.rm("pnpm-workspace.yaml", { force: !0 });
|
|
12803
12805
|
} finally {
|
|
12804
12806
|
Ae.chdir(f);
|
|
12805
12807
|
}
|
|
12806
12808
|
return i;
|
|
12807
12809
|
}
|
|
12808
|
-
function
|
|
12810
|
+
function of(e, h) {
|
|
12809
12811
|
["dependencies", "devDependencies", "peerDependencies"].forEach((g) => {
|
|
12810
12812
|
if (h[g]) {
|
|
12811
12813
|
const f = h[g];
|
|
@@ -12815,38 +12817,38 @@ function rf(e, h) {
|
|
|
12815
12817
|
}
|
|
12816
12818
|
});
|
|
12817
12819
|
}
|
|
12818
|
-
async function
|
|
12820
|
+
async function ga(e, h) {
|
|
12819
12821
|
if (!(e === "." || e === "" || ["./", "/"].includes(e.split("/")[0]))) {
|
|
12820
12822
|
if (Je.isAbsolute(e))
|
|
12821
12823
|
throw new Error(Q.generic);
|
|
12822
12824
|
try {
|
|
12823
|
-
const m = await
|
|
12825
|
+
const m = await ie.readdir(e);
|
|
12824
12826
|
await Promise.all(
|
|
12825
12827
|
m.map(async (f) => {
|
|
12826
12828
|
const i = Je.join(e, f), s = Je.join(h, f);
|
|
12827
|
-
await
|
|
12829
|
+
await ie.rename(i, s);
|
|
12828
12830
|
})
|
|
12829
12831
|
);
|
|
12830
12832
|
const g = e.split("/")[0];
|
|
12831
|
-
await
|
|
12833
|
+
await ie.rm(g, { recursive: !0, force: !0 });
|
|
12832
12834
|
} catch (m) {
|
|
12833
12835
|
throw zt(m) && m.code === "ENOENT" ? new Error(Q.missingTemplate) : m;
|
|
12834
12836
|
}
|
|
12835
12837
|
}
|
|
12836
12838
|
}
|
|
12837
|
-
async function
|
|
12838
|
-
const h = await
|
|
12839
|
-
return
|
|
12839
|
+
async function ya(e) {
|
|
12840
|
+
const h = await ie.readFile(Je.join(e, "package.json"), "utf-8"), m = JSON.parse(h), g = m._id, f = m.readme;
|
|
12841
|
+
return Iu(m, (s) => {
|
|
12840
12842
|
console.error(s);
|
|
12841
12843
|
}), g || delete m._id, f || delete m.readme, m;
|
|
12842
12844
|
}
|
|
12843
|
-
async function
|
|
12844
|
-
await
|
|
12845
|
+
async function af(e, h) {
|
|
12846
|
+
await ie.writeFile(Je.join(e, "package.json"), JSON.stringify(h, null, 2));
|
|
12845
12847
|
}
|
|
12846
|
-
function
|
|
12848
|
+
function lf(e) {
|
|
12847
12849
|
return e.scripts?.start ? "start" : "dev";
|
|
12848
12850
|
}
|
|
12849
|
-
const
|
|
12851
|
+
const cf = (e) => {
|
|
12850
12852
|
const h = {};
|
|
12851
12853
|
return Object.keys(e).forEach((m) => {
|
|
12852
12854
|
const g = m;
|
|
@@ -12881,16 +12883,16 @@ const lf = (e) => {
|
|
|
12881
12883
|
}
|
|
12882
12884
|
}), h;
|
|
12883
12885
|
};
|
|
12884
|
-
async function
|
|
12886
|
+
async function uf(e) {
|
|
12885
12887
|
try {
|
|
12886
|
-
await
|
|
12888
|
+
await ie.stat(e) && await ie.rm(e, { recursive: !0 });
|
|
12887
12889
|
} catch (h) {
|
|
12888
12890
|
if (zt(h) && h.code === "ENOENT")
|
|
12889
12891
|
return;
|
|
12890
12892
|
throw h;
|
|
12891
12893
|
}
|
|
12892
12894
|
}
|
|
12893
|
-
async function
|
|
12895
|
+
async function ff(e, h) {
|
|
12894
12896
|
const m = wo[e];
|
|
12895
12897
|
let g = So;
|
|
12896
12898
|
h.host && (g = h.host);
|
|
@@ -12902,14 +12904,14 @@ async function uf(e, h) {
|
|
|
12902
12904
|
}
|
|
12903
12905
|
return !0;
|
|
12904
12906
|
}
|
|
12905
|
-
function
|
|
12907
|
+
function ba(e, h) {
|
|
12906
12908
|
const m = wo[e];
|
|
12907
12909
|
let g = So;
|
|
12908
12910
|
h.host && (g = h.host);
|
|
12909
12911
|
const f = h.ssh ? "git@" : "https://", i = h.accessToken ? `${h.accessToken}@` : "", s = h.ssh ? ":" : "/";
|
|
12910
12912
|
return `${f}${i}${g}${s}${m}`;
|
|
12911
12913
|
}
|
|
12912
|
-
function
|
|
12914
|
+
function hf(e, h) {
|
|
12913
12915
|
["dependencies", "devDependencies", "peerDependencies"].forEach((g) => {
|
|
12914
12916
|
if (h[g]) {
|
|
12915
12917
|
const f = h[g];
|
|
@@ -12919,8 +12921,8 @@ function ff(e, h) {
|
|
|
12919
12921
|
}
|
|
12920
12922
|
});
|
|
12921
12923
|
}
|
|
12922
|
-
function
|
|
12923
|
-
const m =
|
|
12924
|
+
function pf(e, h) {
|
|
12925
|
+
const m = Va[e];
|
|
12924
12926
|
if (h === D.luminaComponents)
|
|
12925
12927
|
throw new Error(Q.templateNotAvailable(h, e));
|
|
12926
12928
|
const g = m[h];
|
|
@@ -12928,23 +12930,23 @@ function hf(e, h) {
|
|
|
12928
12930
|
throw new Error(Q.templateNotAvailable(h, e));
|
|
12929
12931
|
return g;
|
|
12930
12932
|
}
|
|
12931
|
-
async function
|
|
12932
|
-
const { startMsg: g, successMsg: f, failureMsg: i } = e, s =
|
|
12933
|
+
async function va(e, h, m) {
|
|
12934
|
+
const { startMsg: g, successMsg: f, failureMsg: i } = e, s = Wl();
|
|
12933
12935
|
s.start(g);
|
|
12934
12936
|
try {
|
|
12935
12937
|
await h(), s.stop(f);
|
|
12936
12938
|
} catch (a) {
|
|
12937
|
-
s.stop(
|
|
12939
|
+
s.stop(le("bgRed", i)), m(a, s);
|
|
12938
12940
|
}
|
|
12939
12941
|
}
|
|
12940
|
-
async function
|
|
12942
|
+
async function df(e) {
|
|
12941
12943
|
const h = Qn(e);
|
|
12942
12944
|
try {
|
|
12943
|
-
|
|
12944
|
-
const m = await
|
|
12945
|
+
Do();
|
|
12946
|
+
const m = await jl(
|
|
12945
12947
|
{
|
|
12946
|
-
projectName: e.name ? async () => await Promise.resolve(e.name) :
|
|
12947
|
-
projectTemplate: e.template ? async () => await Promise.resolve(e.template) :
|
|
12948
|
+
projectName: e.name ? async () => await Promise.resolve(e.name) : Fo,
|
|
12949
|
+
projectTemplate: e.template ? async () => await Promise.resolve(e.template) : $c
|
|
12948
12950
|
},
|
|
12949
12951
|
{
|
|
12950
12952
|
// On Cancel callback that wraps the group
|
|
@@ -12956,69 +12958,70 @@ async function pf(e) {
|
|
|
12956
12958
|
);
|
|
12957
12959
|
if (h.name = m.projectName, process.env.NODE_ENV !== "test") {
|
|
12958
12960
|
try {
|
|
12959
|
-
throw await
|
|
12961
|
+
throw await ie.stat(m.projectName), new Error(Q.folderAlreadyExists(m.projectName));
|
|
12960
12962
|
} catch (a) {
|
|
12961
12963
|
if (!(a && typeof a == "object" && "code" in a && a.code === "ENOENT"))
|
|
12962
12964
|
throw a;
|
|
12963
12965
|
}
|
|
12964
12966
|
h.shouldCleanup = !0;
|
|
12965
12967
|
}
|
|
12966
|
-
const g =
|
|
12967
|
-
if (await
|
|
12968
|
+
const g = pf(In.webGisSdk, m.projectTemplate), f = ba(m.projectTemplate, e);
|
|
12969
|
+
if (await va(
|
|
12968
12970
|
{
|
|
12969
12971
|
startMsg: "Downloading project template...",
|
|
12970
12972
|
successMsg: "Project template downloaded successfully",
|
|
12971
12973
|
failureMsg: "Error downloading project template"
|
|
12972
12974
|
},
|
|
12973
12975
|
async () => {
|
|
12974
|
-
await
|
|
12976
|
+
await sf(m.projectName, f, g);
|
|
12975
12977
|
},
|
|
12976
12978
|
(a) => {
|
|
12977
12979
|
throw a;
|
|
12978
12980
|
}
|
|
12979
12981
|
), m.projectTemplate === D.cdn) {
|
|
12980
12982
|
$n(), console.log(
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
+
le(
|
|
12984
|
+
"magenta",
|
|
12985
|
+
`To get started, open the index.html file in the ${le("bold", m.projectName)} folder.`
|
|
12983
12986
|
)
|
|
12984
12987
|
), console.log(_n(`
|
|
12985
12988
|
|
|
12986
12989
|
Happy mapping!`));
|
|
12987
12990
|
return;
|
|
12988
12991
|
}
|
|
12989
|
-
const i = await
|
|
12990
|
-
$n(), console.log(
|
|
12991
|
-
`)), console.log(
|
|
12992
|
+
const i = await ya(m.projectName), s = lf(i);
|
|
12993
|
+
$n(), console.log(le("magenta", `To get started, run the following commands:
|
|
12994
|
+
`)), console.log(le("grey", `$ cd ${m.projectName}`)), console.log(le("grey", "$ npm install")), console.log(le("grey", `$ npm run ${s}`)), console.log(_n(`
|
|
12992
12995
|
|
|
12993
12996
|
Happy mapping!`));
|
|
12994
12997
|
} catch (m) {
|
|
12995
12998
|
await h.doCleanup(m);
|
|
12996
12999
|
}
|
|
12997
13000
|
}
|
|
12998
|
-
async function
|
|
13001
|
+
async function mf(e) {
|
|
12999
13002
|
const { template: h, branch: m = Tn } = e, g = Qn(e);
|
|
13000
13003
|
try {
|
|
13001
13004
|
if (h !== D.luminaComponents)
|
|
13002
13005
|
throw new Error(Q.invalidCodeSampleTemplate);
|
|
13003
13006
|
if (!e.host)
|
|
13004
13007
|
throw new Error(Q.missingHost);
|
|
13005
|
-
|
|
13006
|
-
const f = e.name ?? await
|
|
13008
|
+
Do();
|
|
13009
|
+
const f = e.name ?? await Fo();
|
|
13007
13010
|
if (Oo(f) && (xo("Operation cancelled."), process.exit(0)), g.name = f, process.env.NODE_ENV !== "test") {
|
|
13008
13011
|
try {
|
|
13009
|
-
throw await
|
|
13012
|
+
throw await ie.stat(f), new Error(Q.folderAlreadyExists(f));
|
|
13010
13013
|
} catch (y) {
|
|
13011
13014
|
if (!(y && typeof y == "object" && "code" in y && y.code === "ENOENT"))
|
|
13012
13015
|
throw y;
|
|
13013
13016
|
}
|
|
13014
13017
|
g.shouldCleanup = !0;
|
|
13015
13018
|
}
|
|
13016
|
-
const i =
|
|
13019
|
+
const i = Wa[h], s = await ff(h, e);
|
|
13017
13020
|
let a = "";
|
|
13018
|
-
s || (a = await
|
|
13019
|
-
const o =
|
|
13021
|
+
s || (a = await Pc(e.host));
|
|
13022
|
+
const o = ba(h, { ...e, ssh: s, accessToken: a });
|
|
13020
13023
|
let p = {};
|
|
13021
|
-
await
|
|
13024
|
+
await va(
|
|
13022
13025
|
{
|
|
13023
13026
|
startMsg: "Downloading project template...",
|
|
13024
13027
|
successMsg: "Project template downloaded successfully",
|
|
@@ -13026,7 +13029,7 @@ async function df(e) {
|
|
|
13026
13029
|
},
|
|
13027
13030
|
async () => {
|
|
13028
13031
|
try {
|
|
13029
|
-
p = await
|
|
13032
|
+
p = await rf(f, o, i, m);
|
|
13030
13033
|
} catch (y) {
|
|
13031
13034
|
throw y;
|
|
13032
13035
|
}
|
|
@@ -13040,7 +13043,7 @@ async function df(e) {
|
|
|
13040
13043
|
version: t,
|
|
13041
13044
|
"acme:scripts": l,
|
|
13042
13045
|
...c
|
|
13043
|
-
} = await
|
|
13046
|
+
} = await ya(f), u = t.split(".").slice(0, 2), d = m.includes("release"), v = d ? `~${u.join(".")}.0` : `>=${u.join(".")}.0-next <${u[0]}.${Number.parseInt(u[1]) + 1}.0`, r = c.files, b = d ? void 0 : {
|
|
13044
13047
|
"@esri/calcite-components>@arcgis/lumina": v,
|
|
13045
13048
|
"@esri/calcite-components>@arcgis/toolkit": v
|
|
13046
13049
|
}, w = {
|
|
@@ -13052,36 +13055,36 @@ async function df(e) {
|
|
|
13052
13055
|
...b ? { pnpm: { overrides: b } } : {},
|
|
13053
13056
|
...r ? { files: r } : {}
|
|
13054
13057
|
};
|
|
13055
|
-
|
|
13056
|
-
`)), console.log(
|
|
13058
|
+
of(p, w), hf(v, w), await af(f, w), $n(), Nc(), console.log(le("magenta", `To get started, run the following commands:
|
|
13059
|
+
`)), console.log(le("grey", `$ cd ${f}`)), console.log(le("grey", "$ pnpm install")), console.log(le("grey", "$ pnpm start"));
|
|
13057
13060
|
} catch (f) {
|
|
13058
13061
|
await g.doCleanup(f);
|
|
13059
13062
|
}
|
|
13060
13063
|
}
|
|
13061
|
-
const
|
|
13062
|
-
const h = new
|
|
13064
|
+
const Sa = (e) => {
|
|
13065
|
+
const h = new ja();
|
|
13063
13066
|
return e?.exitOverride && h.exitOverride(), e?.suppressOutput && h.configureOutput({
|
|
13064
13067
|
writeOut: () => "",
|
|
13065
13068
|
writeErr: () => ""
|
|
13066
|
-
}), h.version(
|
|
13069
|
+
}), h.version(Ha.version), h.option("-n, --name <name>", "Name of the project").option("-d, --domain <domain>", "Domain of the sample to create").option("-t, --template <template>", "Template to use").option("--host <host>", "Host to use for the source control repository").option("--branch <branch>", "Branch to checkout in the source control repository"), h.command("init").description("Initialize a new ArcGIS project").action(async () => {
|
|
13067
13070
|
let m;
|
|
13068
13071
|
try {
|
|
13069
|
-
m =
|
|
13072
|
+
m = cf(h.opts());
|
|
13070
13073
|
} catch (g) {
|
|
13071
13074
|
await Qn({}).doCleanup(g);
|
|
13072
13075
|
return;
|
|
13073
13076
|
}
|
|
13074
|
-
if (m.template &&
|
|
13075
|
-
await
|
|
13077
|
+
if (m.template && Ya[m.template] === se.codeSample) {
|
|
13078
|
+
await mf(m);
|
|
13076
13079
|
return;
|
|
13077
13080
|
}
|
|
13078
|
-
await
|
|
13081
|
+
await df(m);
|
|
13079
13082
|
}), h;
|
|
13080
13083
|
};
|
|
13081
|
-
let
|
|
13082
|
-
makeProgram:
|
|
13084
|
+
let gf = {
|
|
13085
|
+
makeProgram: Sa
|
|
13083
13086
|
};
|
|
13084
|
-
process.env.NODE_ENV !== "test" && (
|
|
13087
|
+
process.env.NODE_ENV !== "test" && (gf = void 0, Sa().parse());
|
|
13085
13088
|
export {
|
|
13086
|
-
|
|
13089
|
+
gf as exportsForTests
|
|
13087
13090
|
};
|