@arcgis/create 5.0.0-next.147 → 5.0.0-next.149

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.
Files changed (2) hide show
  1. package/dist/init.js +335 -334
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -1,19 +1,20 @@
1
- import mi from "node:events";
2
- import gi from "node:child_process";
3
- import Ci from "node:path";
4
- import Ei from "node:fs";
1
+ import di from "node:events";
2
+ import mi from "node:child_process";
3
+ import gi from "node:path";
4
+ import Ci from "node:fs";
5
5
  import Z, { stdin as Pr, stdout as Rr } from "node:process";
6
6
  import * as Oe from "node:readline";
7
7
  import Bt from "node:readline";
8
- import Pt, { WriteStream as Fi } from "node:tty";
9
- import bi from "node:os";
8
+ import Pt, { WriteStream as Ei } from "node:tty";
9
+ import Fi from "node:os";
10
10
  import pe from "fs/promises";
11
11
  import Ge from "path";
12
12
  import qe from "process";
13
- import Ai from "child_process";
14
- import vi, { promisify as yi } from "util";
15
- import Tr from "url";
16
- import Li from "node:module";
13
+ import bi from "child_process";
14
+ import Ai, { promisify as vi } from "util";
15
+ import yi from "node:url";
16
+ import Li from "url";
17
+ import Si from "node:module";
17
18
  function je(s) {
18
19
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
19
20
  }
@@ -143,7 +144,7 @@ function yt() {
143
144
  return xe.Argument = n, xe.humanReadableArgName = o, xe;
144
145
  }
145
146
  var Be = {}, Pe = {}, It;
146
- function Ir() {
147
+ function Tr() {
147
148
  if (It) return Pe;
148
149
  It = 1;
149
150
  const { humanReadableArgName: s } = yt();
@@ -623,7 +624,7 @@ ${C}`);
623
624
  return Pe.Help = n, Pe.stripColor = o, Pe;
624
625
  }
625
626
  var Re = {}, Nt;
626
- function Nr() {
627
+ function Ir() {
627
628
  if (Nt) return Re;
628
629
  Nt = 1;
629
630
  const { InvalidArgumentError: s } = We();
@@ -854,7 +855,7 @@ function Nr() {
854
855
  return Re.Option = n, Re.DualOptions = o, Re;
855
856
  }
856
857
  var ze = {}, Mt;
857
- function Si() {
858
+ function wi() {
858
859
  if (Mt) return ze;
859
860
  Mt = 1;
860
861
  const s = 3;
@@ -898,10 +899,10 @@ function Si() {
898
899
  return ze.suggestSimilar = o, ze;
899
900
  }
900
901
  var Gt;
901
- function wi() {
902
+ function Oi() {
902
903
  if (Gt) return Be;
903
904
  Gt = 1;
904
- const s = mi.EventEmitter, n = gi, o = Ci, h = Ei, i = Z, { Argument: r, humanReadableArgName: e } = yt(), { CommanderError: a } = We(), { Help: l, stripColor: C } = Ir(), { Option: d, DualOptions: v } = Nr(), { suggestSimilar: L } = Si();
905
+ const s = di.EventEmitter, n = mi, o = gi, h = Ci, i = Z, { Argument: r, humanReadableArgName: e } = yt(), { CommanderError: a } = We(), { Help: l, stripColor: C } = Tr(), { Option: d, DualOptions: v } = Ir(), { suggestSimilar: L } = wi();
905
906
  class D extends s {
906
907
  /**
907
908
  * Initialize a new `Command`.
@@ -2583,35 +2584,35 @@ Expecting one of '${g.join("', '")}'`);
2583
2584
  return Be.Command = D, Be.useColor = f, Be;
2584
2585
  }
2585
2586
  var kt;
2586
- function Oi() {
2587
+ function _i() {
2587
2588
  if (kt) return te;
2588
2589
  kt = 1;
2589
- const { Argument: s } = yt(), { Command: n } = wi(), { CommanderError: o, InvalidArgumentError: h } = We(), { Help: i } = Ir(), { Option: r } = Nr();
2590
+ const { Argument: s } = yt(), { Command: n } = Oi(), { CommanderError: o, InvalidArgumentError: h } = We(), { Help: i } = Tr(), { Option: r } = Ir();
2590
2591
  return te.program = new n(), te.createCommand = (e) => new n(e), te.createOption = (e, a) => new r(e, a), te.createArgument = (e, a) => new s(e, a), te.Command = n, te.Option = r, te.Argument = s, te.Help = i, te.CommanderError = o, te.InvalidArgumentError = h, te.InvalidOptionArgumentError = h, te;
2591
2592
  }
2592
2593
  var Ht;
2593
- function _i() {
2594
+ function xi() {
2594
2595
  return Ht || (Ht = 1, (function(s, n) {
2595
- const o = Oi();
2596
+ const o = _i();
2596
2597
  n = s.exports = {}, n.program = new o.Command(), n.Argument = o.Argument, n.Command = o.Command, n.CommanderError = o.CommanderError, n.Help = o.Help, n.InvalidArgumentError = o.InvalidArgumentError, n.InvalidOptionArgumentError = o.InvalidArgumentError, n.Option = o.Option, n.createCommand = (h) => new o.Command(h), n.createOption = (h, i) => new o.Option(h, i), n.createArgument = (h, i) => new o.Argument(h, i);
2597
2598
  })(_e, _e.exports)), _e.exports;
2598
2599
  }
2599
- var xi = _i();
2600
- const $i = /* @__PURE__ */ je(xi), {
2601
- program: Vu,
2602
- createCommand: qu,
2603
- createArgument: zu,
2604
- createOption: Yu,
2605
- CommanderError: Xu,
2606
- InvalidArgumentError: Ku,
2607
- InvalidOptionArgumentError: Ju,
2600
+ var $i = xi();
2601
+ const Bi = /* @__PURE__ */ je($i), {
2602
+ program: zu,
2603
+ createCommand: Yu,
2604
+ createArgument: Xu,
2605
+ createOption: Ku,
2606
+ CommanderError: Ju,
2607
+ InvalidArgumentError: Zu,
2608
+ InvalidOptionArgumentError: Qu,
2608
2609
  // deprecated old name
2609
- Command: Bi,
2610
- Argument: Zu,
2611
- Option: Qu,
2612
- Help: eo
2613
- } = $i, Pi = "5.0.0-next.147", Ri = {
2614
- version: Pi
2610
+ Command: Pi,
2611
+ Argument: eo,
2612
+ Option: to,
2613
+ Help: ro
2614
+ } = Bi, Ri = "5.0.0-next.149", Ti = {
2615
+ version: Ri
2615
2616
  }, T = {
2616
2617
  VANILLA: "vanilla JS",
2617
2618
  REACT: "react",
@@ -2623,7 +2624,7 @@ const $i = /* @__PURE__ */ je(xi), {
2623
2624
  TYPESCRIPT: "typescript"
2624
2625
  }, ke = {
2625
2626
  MAPS_WITH_CHARTS: "map-with-charts-components"
2626
- }, Ti = {
2627
+ }, Ii = {
2627
2628
  [ke.MAPS_WITH_CHARTS]: {
2628
2629
  [T.VANILLA]: "component-samples/map-and-charts-components-vite",
2629
2630
  [T.VITE]: "component-samples/map-and-charts-components-vite",
@@ -2641,7 +2642,7 @@ const $i = /* @__PURE__ */ je(xi), {
2641
2642
  }, fe = {
2642
2643
  CODE_SAMPLE: "CODE_SAMPLE",
2643
2644
  APP_SAMPLE: "APP_SAMPLE"
2644
- }, Mr = "github.com", Gr = "main", kr = {
2645
+ }, Nr = "github.com", Mr = "main", Gr = {
2645
2646
  [T.VANILLA]: "Esri/jsapi-resources",
2646
2647
  [T.VITE]: "Esri/jsapi-resources",
2647
2648
  [T.REACT]: "Esri/jsapi-resources",
@@ -2650,7 +2651,7 @@ const $i = /* @__PURE__ */ je(xi), {
2650
2651
  [T.WEBPACK]: "Esri/jsapi-resources",
2651
2652
  [T.TYPESCRIPT]: "Esri/jsapi-resources",
2652
2653
  [T.LUMINA_COMPONENTS]: "WebGIS/arcgis-web-components"
2653
- }, Ii = {
2654
+ }, Ni = {
2654
2655
  [T.VANILLA]: "component-samples/map-and-charts-components-vite",
2655
2656
  // alias for vite template
2656
2657
  [T.VITE]: "component-samples/map-and-charts-components-vite",
@@ -2660,7 +2661,7 @@ const $i = /* @__PURE__ */ je(xi), {
2660
2661
  [T.WEBPACK]: "component-samples/map-and-charts-components-webpack",
2661
2662
  [T.TYPESCRIPT]: "component-samples/map-and-charts-components-typescript",
2662
2663
  [T.LUMINA_COMPONENTS]: "packages/starter-packages/lumina-components"
2663
- }, Ni = {
2664
+ }, Mi = {
2664
2665
  [T.VANILLA]: fe.APP_SAMPLE,
2665
2666
  [T.VITE]: fe.APP_SAMPLE,
2666
2667
  [T.REACT]: fe.APP_SAMPLE,
@@ -2669,11 +2670,11 @@ const $i = /* @__PURE__ */ je(xi), {
2669
2670
  [T.WEBPACK]: fe.APP_SAMPLE,
2670
2671
  [T.TYPESCRIPT]: fe.APP_SAMPLE,
2671
2672
  [T.LUMINA_COMPONENTS]: fe.CODE_SAMPLE
2672
- }, Mi = {
2673
+ }, Gi = {
2673
2674
  [T.LUMINA_COMPONENTS]: !0
2674
2675
  };
2675
2676
  var Ye, jt;
2676
- function Gi() {
2677
+ function ki() {
2677
2678
  if (jt) return Ye;
2678
2679
  jt = 1;
2679
2680
  const s = "\x1B", n = `${s}[`, o = "\x07", h = {
@@ -2714,8 +2715,8 @@ function Gi() {
2714
2715
  };
2715
2716
  return Ye = { cursor: h, scroll: i, erase: r, beep: o }, Ye;
2716
2717
  }
2717
- var K = Gi(), Te = { exports: {} }, Wt;
2718
- function ki() {
2718
+ var K = ki(), Te = { exports: {} }, Wt;
2719
+ function Hi() {
2719
2720
  if (Wt) return Te.exports;
2720
2721
  Wt = 1;
2721
2722
  let s = process || {}, n = s.argv || [], o = s.env || {}, h = !(o.NO_COLOR || n.includes("--no-color")) && (!!o.FORCE_COLOR || n.includes("--color") || s.platform === "win32" || (s.stdout || {}).isTTY && o.TERM !== "dumb" || !!o.CI), i = (a, l, C = a) => (d) => {
@@ -2776,21 +2777,21 @@ function ki() {
2776
2777
  };
2777
2778
  return Te.exports = e(), Te.exports.createColors = e, Te.exports;
2778
2779
  }
2779
- var Hi = /* @__PURE__ */ ki();
2780
- const $ = /* @__PURE__ */ je(Hi);
2781
- function Ui({ onlyFirst: s = !1 } = {}) {
2780
+ var Ui = /* @__PURE__ */ Hi();
2781
+ const $ = /* @__PURE__ */ je(Ui);
2782
+ function ji({ onlyFirst: s = !1 } = {}) {
2782
2783
  const n = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
2783
2784
  return new RegExp(n, s ? void 0 : "g");
2784
2785
  }
2785
- const ji = Ui();
2786
- function Hr(s) {
2786
+ const Wi = ji();
2787
+ function kr(s) {
2787
2788
  if (typeof s != "string") throw new TypeError(`Expected a \`string\`, got \`${typeof s}\``);
2788
- return s.replace(ji, "");
2789
+ return s.replace(Wi, "");
2789
2790
  }
2790
- function Ur(s) {
2791
+ function Hr(s) {
2791
2792
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
2792
2793
  }
2793
- var jr = { exports: {} };
2794
+ var Ur = { exports: {} };
2794
2795
  (function(s) {
2795
2796
  var n = {};
2796
2797
  s.exports = n, n.eastAsianWidth = function(h) {
@@ -2816,22 +2817,22 @@ var jr = { exports: {} };
2816
2817
  }
2817
2818
  return e;
2818
2819
  };
2819
- })(jr);
2820
- var Wi = jr.exports;
2821
- const Vi = Ur(Wi);
2822
- var qi = function() {
2820
+ })(Ur);
2821
+ var Vi = Ur.exports;
2822
+ const qi = Hr(Vi);
2823
+ var zi = function() {
2823
2824
  return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
2824
2825
  };
2825
- const zi = Ur(qi);
2826
+ const Yi = Hr(zi);
2826
2827
  function Le(s, n = {}) {
2827
- if (typeof s != "string" || s.length === 0 || (n = { ambiguousIsNarrow: !0, ...n }, s = Hr(s), s.length === 0)) return 0;
2828
- s = s.replace(zi(), " ");
2828
+ if (typeof s != "string" || s.length === 0 || (n = { ambiguousIsNarrow: !0, ...n }, s = kr(s), s.length === 0)) return 0;
2829
+ s = s.replace(Yi(), " ");
2829
2830
  const o = n.ambiguousIsNarrow ? 1 : 2;
2830
2831
  let h = 0;
2831
2832
  for (const i of s) {
2832
2833
  const r = i.codePointAt(0);
2833
2834
  if (!(r <= 31 || r >= 127 && r <= 159 || r >= 768 && r <= 879))
2834
- switch (Vi.eastAsianWidth(i)) {
2835
+ switch (qi.eastAsianWidth(i)) {
2835
2836
  case "F":
2836
2837
  case "W":
2837
2838
  h += 2;
@@ -2847,9 +2848,9 @@ function Le(s, n = {}) {
2847
2848
  }
2848
2849
  const Xe = 10, Vt = (s = 0) => (n) => `\x1B[${n + s}m`, qt = (s = 0) => (n) => `\x1B[${38 + s};5;${n}m`, zt = (s = 0) => (n, o, h) => `\x1B[${38 + s};2;${n};${o};${h}m`, U = { modifier: { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], overline: [53, 55], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], blackBright: [90, 39], gray: [90, 39], grey: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgGray: [100, 49], bgGrey: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } };
2849
2850
  Object.keys(U.modifier);
2850
- const Yi = Object.keys(U.color), Xi = Object.keys(U.bgColor);
2851
- [...Yi, ...Xi];
2852
- function Ki() {
2851
+ const Xi = Object.keys(U.color), Ki = Object.keys(U.bgColor);
2852
+ [...Xi, ...Ki];
2853
+ function Ji() {
2853
2854
  const s = /* @__PURE__ */ new Map();
2854
2855
  for (const [n, o] of Object.entries(U)) {
2855
2856
  for (const [h, i] of Object.entries(o)) U[h] = { open: `\x1B[${i[0]}m`, close: `\x1B[${i[1]}m` }, o[h] = U[h], s.set(i[0], i[1]);
@@ -2878,27 +2879,27 @@ function Ki() {
2878
2879
  return r === 2 && (e += 60), e;
2879
2880
  }, enumerable: !1 }, rgbToAnsi: { value: (n, o, h) => U.ansi256ToAnsi(U.rgbToAnsi256(n, o, h)), enumerable: !1 }, hexToAnsi: { value: (n) => U.ansi256ToAnsi(U.hexToAnsi256(n)), enumerable: !1 } }), U;
2880
2881
  }
2881
- const Ji = Ki(), Ve = /* @__PURE__ */ new Set(["\x1B", "›"]), Zi = 39, Lt = "\x07", Wr = "[", Qi = "]", Vr = "m", St = `${Qi}8;;`, Yt = (s) => `${Ve.values().next().value}${Wr}${s}${Vr}`, Xt = (s) => `${Ve.values().next().value}${St}${s}${Lt}`, en = (s) => s.split(" ").map((n) => Le(n)), Ke = (s, n, o) => {
2882
+ const Zi = Ji(), Ve = /* @__PURE__ */ new Set(["\x1B", "›"]), Qi = 39, Lt = "\x07", jr = "[", en = "]", Wr = "m", St = `${en}8;;`, Yt = (s) => `${Ve.values().next().value}${jr}${s}${Wr}`, Xt = (s) => `${Ve.values().next().value}${St}${s}${Lt}`, tn = (s) => s.split(" ").map((n) => Le(n)), Ke = (s, n, o) => {
2882
2883
  const h = [...n];
2883
- let i = !1, r = !1, e = Le(Hr(s[s.length - 1]));
2884
+ let i = !1, r = !1, e = Le(kr(s[s.length - 1]));
2884
2885
  for (const [a, l] of h.entries()) {
2885
2886
  const C = Le(l);
2886
2887
  if (e + C <= o ? s[s.length - 1] += l : (s.push(l), e = 0), Ve.has(l) && (i = !0, r = h.slice(a + 1).join("").startsWith(St)), i) {
2887
- r ? l === Lt && (i = !1, r = !1) : l === Vr && (i = !1);
2888
+ r ? l === Lt && (i = !1, r = !1) : l === Wr && (i = !1);
2888
2889
  continue;
2889
2890
  }
2890
2891
  e += C, e === o && a < h.length - 1 && (s.push(""), e = 0);
2891
2892
  }
2892
2893
  !e && s[s.length - 1].length > 0 && s.length > 1 && (s[s.length - 2] += s.pop());
2893
- }, tn = (s) => {
2894
+ }, rn = (s) => {
2894
2895
  const n = s.split(" ");
2895
2896
  let o = n.length;
2896
2897
  for (; o > 0 && !(Le(n[o - 1]) > 0); ) o--;
2897
2898
  return o === n.length ? s : n.slice(0, o).join(" ") + n.slice(o).join("");
2898
- }, rn = (s, n, o = {}) => {
2899
+ }, nn = (s, n, o = {}) => {
2899
2900
  if (o.trim !== !1 && s.trim() === "") return "";
2900
2901
  let h = "", i, r;
2901
- const e = en(s);
2902
+ const e = tn(s);
2902
2903
  let a = [""];
2903
2904
  for (const [C, d] of s.split(" ").entries()) {
2904
2905
  o.trim !== !1 && (a[a.length - 1] = a[a.length - 1].trimStart());
@@ -2921,18 +2922,18 @@ const Ji = Ki(), Ve = /* @__PURE__ */ new Set(["\x1B", "›"]), Zi = 39, Lt = "\x
2921
2922
  }
2922
2923
  a[a.length - 1] += d;
2923
2924
  }
2924
- o.trim !== !1 && (a = a.map((C) => tn(C)));
2925
+ o.trim !== !1 && (a = a.map((C) => rn(C)));
2925
2926
  const l = [...a.join(`
2926
2927
  `)];
2927
2928
  for (const [C, d] of l.entries()) {
2928
2929
  if (h += d, Ve.has(d)) {
2929
- const { groups: L } = new RegExp(`(?:\\${Wr}(?<code>\\d+)m|\\${St}(?<uri>.*)${Lt})`).exec(l.slice(C).join("")) || { groups: {} };
2930
+ const { groups: L } = new RegExp(`(?:\\${jr}(?<code>\\d+)m|\\${St}(?<uri>.*)${Lt})`).exec(l.slice(C).join("")) || { groups: {} };
2930
2931
  if (L.code !== void 0) {
2931
2932
  const D = Number.parseFloat(L.code);
2932
- i = D === Zi ? void 0 : D;
2933
+ i = D === Qi ? void 0 : D;
2933
2934
  } else L.uri !== void 0 && (r = L.uri.length === 0 ? void 0 : L.uri);
2934
2935
  }
2935
- const v = Ji.codes.get(Number(i));
2936
+ const v = Zi.codes.get(Number(i));
2936
2937
  l[C + 1] === `
2937
2938
  ` ? (r && (h += Xt("")), i && v && (h += Yt(v))) : d === `
2938
2939
  ` && (i && v && (h += Yt(i)), r && (h += Xt(r)));
@@ -2942,11 +2943,11 @@ const Ji = Ki(), Ve = /* @__PURE__ */ new Set(["\x1B", "›"]), Zi = 39, Lt = "\x
2942
2943
  function Kt(s, n, o) {
2943
2944
  return String(s).normalize().replace(/\r\n/g, `
2944
2945
  `).split(`
2945
- `).map((h) => rn(h, n, o)).join(`
2946
+ `).map((h) => nn(h, n, o)).join(`
2946
2947
  `);
2947
2948
  }
2948
- var nn = Object.defineProperty, sn = (s, n, o) => n in s ? nn(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, se = (s, n, o) => (sn(s, typeof n != "symbol" ? n + "" : n, o), o);
2949
- function un(s, n) {
2949
+ var sn = Object.defineProperty, un = (s, n, o) => n in s ? sn(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, se = (s, n, o) => (un(s, typeof n != "symbol" ? n + "" : n, o), o);
2950
+ function on(s, n) {
2950
2951
  if (s === n) return;
2951
2952
  const o = s.split(`
2952
2953
  `), h = n.split(`
@@ -2954,27 +2955,27 @@ function un(s, n) {
2954
2955
  for (let r = 0; r < Math.max(o.length, h.length); r++) o[r] !== h[r] && i.push(r);
2955
2956
  return i;
2956
2957
  }
2957
- const qr = Symbol("clack:cancel");
2958
- function zr(s) {
2959
- return s === qr;
2958
+ const Vr = Symbol("clack:cancel");
2959
+ function qr(s) {
2960
+ return s === Vr;
2960
2961
  }
2961
2962
  function Ie(s, n) {
2962
2963
  s.isTTY && s.setRawMode(n);
2963
2964
  }
2964
- const Jt = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]), on = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
2965
+ const Jt = /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"]]), an = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
2965
2966
  let wt = class {
2966
2967
  constructor({ render: n, input: o = Pr, output: h = Rr, ...i }, r = !0) {
2967
2968
  se(this, "input"), se(this, "output"), se(this, "rl"), se(this, "opts"), se(this, "_track", !1), se(this, "_render"), se(this, "_cursor", 0), se(this, "state", "initial"), se(this, "value"), se(this, "error", ""), se(this, "subscribers", /* @__PURE__ */ new Map()), se(this, "_prevFrame", ""), this.opts = i, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = n.bind(this), this._track = r, this.input = o, this.output = h;
2968
2969
  }
2969
2970
  prompt() {
2970
- const n = new Fi(0);
2971
+ const n = new Ei(0);
2971
2972
  return n._write = (o, h, i) => {
2972
2973
  this._track && (this.value = this.rl.line.replace(/\t/g, ""), this._cursor = this.rl.cursor, this.emit("value", this.value)), i();
2973
2974
  }, this.input.pipe(n), this.rl = Bt.createInterface({ input: this.input, output: n, tabSize: 2, prompt: "", escapeCodeTimeout: 50 }), Bt.emitKeypressEvents(this.input, this.rl), this.rl.prompt(), this.opts.initialValue !== void 0 && this._track && this.rl.write(this.opts.initialValue), this.input.on("keypress", this.onKeypress), Ie(this.input, !0), this.output.on("resize", this.render), this.render(), new Promise((o, h) => {
2974
2975
  this.once("submit", () => {
2975
2976
  this.output.write(K.cursor.show), this.output.off("resize", this.render), Ie(this.input, !1), o(this.value);
2976
2977
  }), this.once("cancel", () => {
2977
- this.output.write(K.cursor.show), this.output.off("resize", this.render), Ie(this.input, !1), o(qr);
2978
+ this.output.write(K.cursor.show), this.output.off("resize", this.render), Ie(this.input, !1), o(Vr);
2978
2979
  });
2979
2980
  });
2980
2981
  }
@@ -2995,7 +2996,7 @@ let wt = class {
2995
2996
  this.subscribers.clear();
2996
2997
  }
2997
2998
  onKeypress(n, o) {
2998
- if (this.state === "error" && (this.state = "active"), o?.name && !this._track && Jt.has(o.name) && this.emit("cursor", Jt.get(o.name)), o?.name && on.has(o.name) && this.emit("cursor", o.name), n && (n.toLowerCase() === "y" || n.toLowerCase() === "n") && this.emit("confirm", n.toLowerCase() === "y"), n === " " && this.opts.placeholder && (this.value || (this.rl.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), n && this.emit("key", n.toLowerCase()), o?.name === "return") {
2999
+ if (this.state === "error" && (this.state = "active"), o?.name && !this._track && Jt.has(o.name) && this.emit("cursor", Jt.get(o.name)), o?.name && an.has(o.name) && this.emit("cursor", o.name), n && (n.toLowerCase() === "y" || n.toLowerCase() === "n") && this.emit("confirm", n.toLowerCase() === "y"), n === " " && this.opts.placeholder && (this.value || (this.rl.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), n && this.emit("key", n.toLowerCase()), o?.name === "return") {
2999
3000
  if (this.opts.validate) {
3000
3001
  const h = this.opts.validate(this.value);
3001
3002
  h && (this.error = h, this.state = "error", this.rl.write(this.value));
@@ -3018,7 +3019,7 @@ let wt = class {
3018
3019
  if (n !== this._prevFrame) {
3019
3020
  if (this.state === "initial") this.output.write(K.cursor.hide);
3020
3021
  else {
3021
- const o = un(this._prevFrame, n);
3022
+ const o = on(this._prevFrame, n);
3022
3023
  if (this.restoreCursor(), o && o?.length === 1) {
3023
3024
  const h = o[0];
3024
3025
  this.output.write(K.cursor.move(0, h)), this.output.write(K.erase.lines(1));
@@ -3041,8 +3042,8 @@ let wt = class {
3041
3042
  }
3042
3043
  }
3043
3044
  };
3044
- var an = Object.defineProperty, ln = (s, n, o) => n in s ? an(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, Zt = (s, n, o) => (ln(s, typeof n != "symbol" ? n + "" : n, o), o);
3045
- class cn extends wt {
3045
+ var ln = Object.defineProperty, cn = (s, n, o) => n in s ? ln(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, Zt = (s, n, o) => (cn(s, typeof n != "symbol" ? n + "" : n, o), o);
3046
+ class hn extends wt {
3046
3047
  constructor({ mask: n, ...o }) {
3047
3048
  super(o), Zt(this, "valueWithCursor", ""), Zt(this, "_mask", "•"), this._mask = n ?? "•", this.on("finalize", () => {
3048
3049
  this.valueWithCursor = this.masked;
@@ -3061,8 +3062,8 @@ class cn extends wt {
3061
3062
  return this.value.replaceAll(/./g, this._mask);
3062
3063
  }
3063
3064
  }
3064
- var hn = Object.defineProperty, Dn = (s, n, o) => n in s ? hn(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, Qt = (s, n, o) => (Dn(s, typeof n != "symbol" ? n + "" : n, o), o);
3065
- let fn = class extends wt {
3065
+ var Dn = Object.defineProperty, fn = (s, n, o) => n in s ? Dn(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, Qt = (s, n, o) => (fn(s, typeof n != "symbol" ? n + "" : n, o), o);
3066
+ let pn = class extends wt {
3066
3067
  constructor(s) {
3067
3068
  super(s, !1), Qt(this, "options"), Qt(this, "cursor", 0), this.options = s.options, this.cursor = this.options.findIndex(({ value: n }) => n === s.initialValue), this.cursor === -1 && (this.cursor = 0), this.changeValue(), this.on("cursor", (n) => {
3068
3069
  switch (n) {
@@ -3085,10 +3086,10 @@ let fn = class extends wt {
3085
3086
  this.value = this._value.value;
3086
3087
  }
3087
3088
  };
3088
- var pn = Object.defineProperty, dn = (s, n, o) => n in s ? pn(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, mn = (s, n, o) => (dn(s, n + "", o), o);
3089
- class gn extends wt {
3089
+ var dn = Object.defineProperty, mn = (s, n, o) => n in s ? dn(s, n, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[n] = o, gn = (s, n, o) => (mn(s, n + "", o), o);
3090
+ class Cn extends wt {
3090
3091
  constructor(n) {
3091
- super(n), mn(this, "valueWithCursor", ""), this.on("finalize", () => {
3092
+ super(n), gn(this, "valueWithCursor", ""), this.on("finalize", () => {
3092
3093
  this.value || (this.value = n.defaultValue), this.valueWithCursor = this.value;
3093
3094
  }), this.on("value", () => {
3094
3095
  if (this.cursor >= this.value.length) this.valueWithCursor = `${this.value}${$.inverse($.hidden("_"))}`;
@@ -3102,8 +3103,8 @@ class gn extends wt {
3102
3103
  return this._cursor;
3103
3104
  }
3104
3105
  }
3105
- const Cn = globalThis.process.platform.startsWith("win");
3106
- function En({ input: s = Pr, output: n = Rr, overwrite: o = !0, hideCursor: h = !0 } = {}) {
3106
+ const En = globalThis.process.platform.startsWith("win");
3107
+ function Fn({ input: s = Pr, output: n = Rr, overwrite: o = !0, hideCursor: h = !0 } = {}) {
3107
3108
  const i = Oe.createInterface({ input: s, output: n, prompt: "", tabSize: 1 });
3108
3109
  Oe.emitKeypressEvents(s, i), s.isTTY && s.setRawMode(!0);
3109
3110
  const r = (e, { name: a }) => {
@@ -3120,25 +3121,25 @@ function En({ input: s = Pr, output: n = Rr, overwrite: o = !0, hideCursor: h =
3120
3121
  });
3121
3122
  };
3122
3123
  return h && n.write(K.cursor.hide), s.once("keypress", r), () => {
3123
- s.off("keypress", r), h && n.write(K.cursor.show), s.isTTY && !Cn && s.setRawMode(!1), i.terminal = !1, i.close();
3124
+ s.off("keypress", r), h && n.write(K.cursor.show), s.isTTY && !En && s.setRawMode(!1), i.terminal = !1, i.close();
3124
3125
  };
3125
3126
  }
3126
- function Fn() {
3127
+ function bn() {
3127
3128
  return Z.platform !== "win32" ? Z.env.TERM !== "linux" : !!Z.env.CI || !!Z.env.WT_SESSION || !!Z.env.TERMINUS_SUBLIME || Z.env.ConEmuTask === "{cmd::Cmder}" || Z.env.TERM_PROGRAM === "Terminus-Sublime" || Z.env.TERM_PROGRAM === "vscode" || Z.env.TERM === "xterm-256color" || Z.env.TERM === "alacritty" || Z.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
3128
3129
  }
3129
- const Ft = Fn(), ee = (s, n) => Ft ? s : n, bn = ee("◆", "*"), Yr = ee("■", "x"), Xr = ee("▲", "x"), Ot = ee("◇", "o"), An = ee("┌", "T"), W = ee("│", "|"), ge = ee("└", "—"), vn = ee("●", ">"), yn = ee("○", " "), Ln = ee("▪", "•"), Sn = ee("●", "•"), wn = ee("◆", "*"), On = ee("▲", "!"), _n = ee("■", "x"), _t = (s) => {
3130
+ const Ft = bn(), ee = (s, n) => Ft ? s : n, An = ee("◆", "*"), zr = ee("■", "x"), Yr = ee("▲", "x"), Ot = ee("◇", "o"), vn = ee("┌", "T"), W = ee("│", "|"), ge = ee("└", "—"), yn = ee("●", ">"), Ln = ee("○", " "), Sn = ee("▪", "•"), wn = ee("●", "•"), On = ee("◆", "*"), _n = ee("▲", "!"), xn = ee("■", "x"), _t = (s) => {
3130
3131
  switch (s) {
3131
3132
  case "initial":
3132
3133
  case "active":
3133
- return $.cyan(bn);
3134
+ return $.cyan(An);
3134
3135
  case "cancel":
3135
- return $.red(Yr);
3136
+ return $.red(zr);
3136
3137
  case "error":
3137
- return $.yellow(Xr);
3138
+ return $.yellow(Yr);
3138
3139
  case "submit":
3139
3140
  return $.green(Ot);
3140
3141
  }
3141
- }, xn = (s) => new gn({ validate: s.validate, placeholder: s.placeholder, defaultValue: s.defaultValue, initialValue: s.initialValue, render() {
3142
+ }, $n = (s) => new Cn({ validate: s.validate, placeholder: s.placeholder, defaultValue: s.defaultValue, initialValue: s.initialValue, render() {
3142
3143
  const n = `${$.gray(W)}
3143
3144
  ${_t(this.state)} ${s.message}
3144
3145
  `, o = s.placeholder ? $.inverse(s.placeholder[0]) + $.dim(s.placeholder.slice(1)) : $.inverse($.hidden("_")), h = this.value ? this.valueWithCursor : o;
@@ -3158,7 +3159,7 @@ ${$.yellow(ge)} ${$.yellow(this.error)}
3158
3159
  ${$.cyan(ge)}
3159
3160
  `;
3160
3161
  }
3161
- } }).prompt(), $n = (s) => new cn({ validate: s.validate, mask: s.mask ?? Ln, render() {
3162
+ } }).prompt(), Bn = (s) => new hn({ validate: s.validate, mask: s.mask ?? Sn, render() {
3162
3163
  const n = `${$.gray(W)}
3163
3164
  ${_t(this.state)} ${s.message}
3164
3165
  `, o = this.valueWithCursor, h = this.masked;
@@ -3178,13 +3179,13 @@ ${$.yellow(ge)} ${$.yellow(this.error)}
3178
3179
  ${$.cyan(ge)}
3179
3180
  `;
3180
3181
  }
3181
- } }).prompt(), Bn = (s) => {
3182
+ } }).prompt(), Pn = (s) => {
3182
3183
  const n = (h, i) => {
3183
3184
  const r = h.label ?? String(h.value);
3184
- return i === "active" ? `${$.green(vn)} ${r} ${h.hint ? $.dim(`(${h.hint})`) : ""}` : i === "selected" ? `${$.dim(r)}` : i === "cancelled" ? `${$.strikethrough($.dim(r))}` : `${$.dim(yn)} ${$.dim(r)}`;
3185
+ return i === "active" ? `${$.green(yn)} ${r} ${h.hint ? $.dim(`(${h.hint})`) : ""}` : i === "selected" ? `${$.dim(r)}` : i === "cancelled" ? `${$.strikethrough($.dim(r))}` : `${$.dim(Ln)} ${$.dim(r)}`;
3185
3186
  };
3186
3187
  let o = 0;
3187
- return new fn({ options: s.options, initialValue: s.initialValue, render() {
3188
+ return new pn({ options: s.options, initialValue: s.initialValue, render() {
3188
3189
  const h = `${$.gray(W)}
3189
3190
  ${_t(this.state)} ${s.message}
3190
3191
  `;
@@ -3205,12 +3206,12 @@ ${$.cyan(ge)}
3205
3206
  }
3206
3207
  }
3207
3208
  } }).prompt();
3208
- }, Kr = (s = "") => {
3209
+ }, Xr = (s = "") => {
3209
3210
  process.stdout.write(`${$.gray(ge)} ${$.red(s)}
3210
3211
 
3211
3212
  `);
3212
- }, Pn = (s = "") => {
3213
- process.stdout.write(`${$.gray(An)} ${s}
3213
+ }, Rn = (s = "") => {
3214
+ process.stdout.write(`${$.gray(vn)} ${s}
3214
3215
  `);
3215
3216
  }, Ee = (s = "") => {
3216
3217
  process.stdout.write(`${$.gray(W)}
@@ -3228,22 +3229,22 @@ ${$.gray(ge)} ${s}
3228
3229
  `)}
3229
3230
  `);
3230
3231
  }, info: (s) => {
3231
- me.message(s, { symbol: $.blue(Sn) });
3232
+ me.message(s, { symbol: $.blue(wn) });
3232
3233
  }, success: (s) => {
3233
- me.message(s, { symbol: $.green(wn) });
3234
+ me.message(s, { symbol: $.green(On) });
3234
3235
  }, step: (s) => {
3235
3236
  me.message(s, { symbol: $.green(Ot) });
3236
3237
  }, warn: (s) => {
3237
- me.message(s, { symbol: $.yellow(On) });
3238
+ me.message(s, { symbol: $.yellow(_n) });
3238
3239
  }, warning: (s) => {
3239
3240
  me.warn(s);
3240
3241
  }, error: (s) => {
3241
- me.message(s, { symbol: $.red(_n) });
3242
- } }, Rn = () => {
3242
+ me.message(s, { symbol: $.red(xn) });
3243
+ } }, Tn = () => {
3243
3244
  const s = Ft ? ["◒", "◐", "◓", "◑"] : ["•", "o", "O", "0"], n = Ft ? 80 : 120;
3244
3245
  let o, h, i = !1, r = "";
3245
3246
  const e = (d = "") => {
3246
- i = !0, o = En(), r = d.replace(/\.+$/, ""), process.stdout.write(`${$.gray(W)}
3247
+ i = !0, o = Fn(), r = d.replace(/\.+$/, ""), process.stdout.write(`${$.gray(W)}
3247
3248
  `);
3248
3249
  let v = 0, L = 0;
3249
3250
  h = setInterval(() => {
@@ -3252,7 +3253,7 @@ ${$.gray(ge)} ${s}
3252
3253
  }, n);
3253
3254
  }, a = (d = "", v = 0) => {
3254
3255
  r = d ?? r, i = !1, clearInterval(h);
3255
- const L = v === 0 ? $.green(Ot) : v === 1 ? $.red(Yr) : $.red(Xr);
3256
+ const L = v === 0 ? $.green(Ot) : v === 1 ? $.red(zr) : $.red(Yr);
3256
3257
  process.stdout.write(K.cursor.move(-999, 0)), process.stdout.write(K.erase.down(1)), process.stdout.write(`${L} ${r}
3257
3258
  `), o();
3258
3259
  }, l = (d = "") => {
@@ -3262,13 +3263,13 @@ ${$.gray(ge)} ${s}
3262
3263
  i && a(v, d);
3263
3264
  };
3264
3265
  return process.on("uncaughtExceptionMonitor", () => C(2)), process.on("unhandledRejection", () => C(2)), process.on("SIGINT", () => C(1)), process.on("SIGTERM", () => C(1)), process.on("exit", C), { start: e, stop: a, message: l };
3265
- }, Tn = async (s, n) => {
3266
+ }, In = async (s, n) => {
3266
3267
  const o = {}, h = Object.keys(s);
3267
3268
  for (const i of h) {
3268
3269
  const r = s[i], e = await r({ results: o })?.catch((a) => {
3269
3270
  throw a;
3270
3271
  });
3271
- if (typeof n?.onCancel == "function" && zr(e)) {
3272
+ if (typeof n?.onCancel == "function" && qr(e)) {
3272
3273
  o[i] = "canceled", n.onCancel({ results: o });
3273
3274
  continue;
3274
3275
  }
@@ -3336,9 +3337,9 @@ ${$.gray(ge)} ${s}
3336
3337
  }
3337
3338
  };
3338
3339
  Object.keys(j.modifier);
3339
- const In = Object.keys(j.color), Nn = Object.keys(j.bgColor);
3340
- [...In, ...Nn];
3341
- function Mn() {
3340
+ const Nn = Object.keys(j.color), Mn = Object.keys(j.bgColor);
3341
+ [...Nn, ...Mn];
3342
+ function Gn() {
3342
3343
  const s = /* @__PURE__ */ new Map();
3343
3344
  for (const [n, o] of Object.entries(j)) {
3344
3345
  for (const [h, i] of Object.entries(o))
@@ -3415,7 +3416,7 @@ function Mn() {
3415
3416
  }
3416
3417
  }), j;
3417
3418
  }
3418
- const ce = Mn();
3419
+ const ce = Gn();
3419
3420
  function ue(s, n = globalThis.Deno ? globalThis.Deno.args : Z.argv) {
3420
3421
  const o = s.startsWith("-") ? "" : s.length === 1 ? "-" : "--", h = n.indexOf(o + s), i = n.indexOf("--");
3421
3422
  return h !== -1 && (i === -1 || h < i);
@@ -3423,11 +3424,11 @@ function ue(s, n = globalThis.Deno ? globalThis.Deno.args : Z.argv) {
3423
3424
  const { env: q } = Z;
3424
3425
  let He;
3425
3426
  ue("no-color") || ue("no-colors") || ue("color=false") || ue("color=never") ? He = 0 : (ue("color") || ue("colors") || ue("color=true") || ue("color=always")) && (He = 1);
3426
- function Gn() {
3427
+ function kn() {
3427
3428
  if ("FORCE_COLOR" in q)
3428
3429
  return q.FORCE_COLOR === "true" ? 1 : q.FORCE_COLOR === "false" ? 0 : q.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(q.FORCE_COLOR, 10), 3);
3429
3430
  }
3430
- function kn(s) {
3431
+ function Hn(s) {
3431
3432
  return s === 0 ? !1 : {
3432
3433
  level: s,
3433
3434
  hasBasic: !0,
@@ -3435,8 +3436,8 @@ function kn(s) {
3435
3436
  has16m: s >= 3
3436
3437
  };
3437
3438
  }
3438
- function Hn(s, { streamIsTTY: n, sniffFlags: o = !0 } = {}) {
3439
- const h = Gn();
3439
+ function Un(s, { streamIsTTY: n, sniffFlags: o = !0 } = {}) {
3440
+ const h = kn();
3440
3441
  h !== void 0 && (He = h);
3441
3442
  const i = o ? He : h;
3442
3443
  if (i === 0)
@@ -3455,7 +3456,7 @@ function Hn(s, { streamIsTTY: n, sniffFlags: o = !0 } = {}) {
3455
3456
  if (q.TERM === "dumb")
3456
3457
  return r;
3457
3458
  if (Z.platform === "win32") {
3458
- const e = bi.release().split(".");
3459
+ const e = Fi.release().split(".");
3459
3460
  return Number(e[0]) >= 10 && Number(e[2]) >= 10586 ? Number(e[2]) >= 14931 ? 3 : 2 : 1;
3460
3461
  }
3461
3462
  if ("CI" in q)
@@ -3476,17 +3477,17 @@ function Hn(s, { streamIsTTY: n, sniffFlags: o = !0 } = {}) {
3476
3477
  return /-256(color)?$/i.test(q.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(q.TERM) || "COLORTERM" in q ? 1 : r;
3477
3478
  }
3478
3479
  function ir(s, n = {}) {
3479
- const o = Hn(s, {
3480
+ const o = Un(s, {
3480
3481
  streamIsTTY: s && s.isTTY,
3481
3482
  ...n
3482
3483
  });
3483
- return kn(o);
3484
+ return Hn(o);
3484
3485
  }
3485
- const Un = {
3486
+ const jn = {
3486
3487
  stdout: ir({ isTTY: Pt.isatty(1) }),
3487
3488
  stderr: ir({ isTTY: Pt.isatty(2) })
3488
3489
  };
3489
- function jn(s, n, o) {
3490
+ function Wn(s, n, o) {
3490
3491
  let h = s.indexOf(n);
3491
3492
  if (h === -1)
3492
3493
  return s;
@@ -3497,7 +3498,7 @@ function jn(s, n, o) {
3497
3498
  while (h !== -1);
3498
3499
  return e += s.slice(r), e;
3499
3500
  }
3500
- function Wn(s, n, o, h) {
3501
+ function Vn(s, n, o, h) {
3501
3502
  let i = 0, r = "";
3502
3503
  do {
3503
3504
  const e = s[h - 1] === "\r";
@@ -3508,22 +3509,22 @@ function Wn(s, n, o, h) {
3508
3509
  } while (h !== -1);
3509
3510
  return r += s.slice(i), r;
3510
3511
  }
3511
- const { stdout: nr, stderr: sr } = Un, bt = Symbol("GENERATOR"), Fe = Symbol("STYLER"), Se = Symbol("IS_EMPTY"), ur = [
3512
+ const { stdout: nr, stderr: sr } = jn, bt = Symbol("GENERATOR"), Fe = Symbol("STYLER"), Se = Symbol("IS_EMPTY"), ur = [
3512
3513
  "ansi",
3513
3514
  "ansi",
3514
3515
  "ansi256",
3515
3516
  "ansi16m"
3516
- ], be = /* @__PURE__ */ Object.create(null), Vn = (s, n = {}) => {
3517
+ ], be = /* @__PURE__ */ Object.create(null), qn = (s, n = {}) => {
3517
3518
  if (n.level && !(Number.isInteger(n.level) && n.level >= 0 && n.level <= 3))
3518
3519
  throw new Error("The `level` option should be an integer from 0 to 3");
3519
3520
  const o = nr ? nr.level : 0;
3520
3521
  s.level = n.level === void 0 ? o : n.level;
3521
- }, qn = (s) => {
3522
+ }, zn = (s) => {
3522
3523
  const n = (...o) => o.join(" ");
3523
- return Vn(n, s), Object.setPrototypeOf(n, we.prototype), n;
3524
+ return qn(n, s), Object.setPrototypeOf(n, we.prototype), n;
3524
3525
  };
3525
3526
  function we(s) {
3526
- return qn(s);
3527
+ return zn(s);
3527
3528
  }
3528
3529
  Object.setPrototypeOf(we.prototype, Function.prototype);
3529
3530
  for (const [s, n] of Object.entries(ce))
@@ -3539,8 +3540,8 @@ be.visible = {
3539
3540
  return Object.defineProperty(this, "visible", { value: s }), s;
3540
3541
  }
3541
3542
  };
3542
- const At = (s, n, o, ...h) => s === "rgb" ? n === "ansi16m" ? ce[o].ansi16m(...h) : n === "ansi256" ? ce[o].ansi256(ce.rgbToAnsi256(...h)) : ce[o].ansi(ce.rgbToAnsi(...h)) : s === "hex" ? At("rgb", n, o, ...ce.hexToRgb(...h)) : ce[o][s](...h), zn = ["rgb", "hex", "ansi256"];
3543
- for (const s of zn) {
3543
+ const At = (s, n, o, ...h) => s === "rgb" ? n === "ansi16m" ? ce[o].ansi16m(...h) : n === "ansi256" ? ce[o].ansi256(ce.rgbToAnsi256(...h)) : ce[o].ansi(ce.rgbToAnsi(...h)) : s === "hex" ? At("rgb", n, o, ...ce.hexToRgb(...h)) : ce[o][s](...h), Yn = ["rgb", "hex", "ansi256"];
3544
+ for (const s of Yn) {
3544
3545
  be[s] = {
3545
3546
  get() {
3546
3547
  const { level: o } = this;
@@ -3561,7 +3562,7 @@ for (const s of zn) {
3561
3562
  }
3562
3563
  };
3563
3564
  }
3564
- const Yn = Object.defineProperties(() => {
3565
+ const Xn = Object.defineProperties(() => {
3565
3566
  }, {
3566
3567
  ...be,
3567
3568
  level: {
@@ -3583,9 +3584,9 @@ const Yn = Object.defineProperties(() => {
3583
3584
  parent: o
3584
3585
  };
3585
3586
  }, Ue = (s, n, o) => {
3586
- const h = (...i) => Xn(h, i.length === 1 ? "" + i[0] : i.join(" "));
3587
- return Object.setPrototypeOf(h, Yn), h[bt] = s, h[Fe] = n, h[Se] = o, h;
3588
- }, Xn = (s, n) => {
3587
+ const h = (...i) => Kn(h, i.length === 1 ? "" + i[0] : i.join(" "));
3588
+ return Object.setPrototypeOf(h, Xn), h[bt] = s, h[Fe] = n, h[Se] = o, h;
3589
+ }, Kn = (s, n) => {
3589
3590
  if (s.level <= 0 || !n)
3590
3591
  return s[Se] ? "" : n;
3591
3592
  let o = s[Fe];
@@ -3594,20 +3595,20 @@ const Yn = Object.defineProperties(() => {
3594
3595
  const { openAll: h, closeAll: i } = o;
3595
3596
  if (n.includes("\x1B"))
3596
3597
  for (; o !== void 0; )
3597
- n = jn(n, o.close, o.open), o = o.parent;
3598
+ n = Wn(n, o.close, o.open), o = o.parent;
3598
3599
  const r = n.indexOf(`
3599
3600
  `);
3600
- return r !== -1 && (n = Wn(n, i, h, r)), h + n + i;
3601
+ return r !== -1 && (n = Vn(n, i, h, r)), h + n + i;
3601
3602
  };
3602
3603
  Object.defineProperties(we.prototype, be);
3603
3604
  const X = we();
3604
3605
  we({ level: sr ? sr.level : 0 });
3605
- var Me = { exports: {} }, Kn = Me.exports, or;
3606
- function Jn() {
3606
+ var Me = { exports: {} }, Jn = Me.exports, or;
3607
+ function Zn() {
3607
3608
  return or || (or = 1, (function(s, n) {
3608
3609
  (function(o, h) {
3609
3610
  s.exports = h();
3610
- })(Kn, (function() {
3611
+ })(Jn, (function() {
3611
3612
  function o(E) {
3612
3613
  "@babel/helpers - typeof";
3613
3614
  return o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(b) {
@@ -3800,7 +3801,7 @@ function Jn() {
3800
3801
  g: 0,
3801
3802
  b: 0
3802
3803
  }, F = 1, w = null, B = null, _ = null, G = !1, k = !1;
3803
- return typeof E == "string" && (E = pi(E)), o(E) == "object" && (De(E.r) && De(E.g) && De(E.b) ? (b = a(E.r, E.g, E.b), G = !0, k = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : De(E.h) && De(E.s) && De(E.v) ? (w = he(E.s), B = he(E.v), b = v(E.h, w, B), G = !0, k = "hsv") : De(E.h) && De(E.s) && De(E.l) && (w = he(E.s), _ = he(E.l), b = C(E.h, w, _), G = !0, k = "hsl"), E.hasOwnProperty("a") && (F = E.a)), F = Y(F), {
3804
+ return typeof E == "string" && (E = fi(E)), o(E) == "object" && (De(E.r) && De(E.g) && De(E.b) ? (b = a(E.r, E.g, E.b), G = !0, k = String(E.r).substr(-1) === "%" ? "prgb" : "rgb") : De(E.h) && De(E.s) && De(E.v) ? (w = he(E.s), B = he(E.v), b = v(E.h, w, B), G = !0, k = "hsv") : De(E.h) && De(E.s) && De(E.l) && (w = he(E.s), _ = he(E.l), b = C(E.h, w, _), G = !0, k = "hsl"), E.hasOwnProperty("a") && (F = E.a)), F = Y(F), {
3804
3805
  ok: G,
3805
3806
  format: E.format || k,
3806
3807
  r: Math.min(255, Math.max(b.r, 0)),
@@ -4005,7 +4006,7 @@ function Jn() {
4005
4006
  return (Math.max(F.getLuminance(), w.getLuminance()) + 0.05) / (Math.min(F.getLuminance(), w.getLuminance()) + 0.05);
4006
4007
  }, r.isReadable = function(E, b, F) {
4007
4008
  var w = r.readability(E, b), B, _;
4008
- switch (_ = !1, B = di(F), B.level + B.size) {
4009
+ switch (_ = !1, B = pi(F), B.level + B.size) {
4009
4010
  case "AAsmall":
4010
4011
  case "AAAlarge":
4011
4012
  _ = w >= 4.5;
@@ -4236,7 +4237,7 @@ function Jn() {
4236
4237
  function De(E) {
4237
4238
  return !!oe.CSS_UNIT.exec(E);
4238
4239
  }
4239
- function pi(E) {
4240
+ function fi(E) {
4240
4241
  E = E.replace(h, "").replace(i, "").toLowerCase();
4241
4242
  var b = !1;
4242
4243
  if (P[E])
@@ -4301,7 +4302,7 @@ function Jn() {
4301
4302
  format: b ? "name" : "hex"
4302
4303
  } : !1;
4303
4304
  }
4304
- function di(E) {
4305
+ function pi(E) {
4305
4306
  var b, F;
4306
4307
  return E = E || {
4307
4308
  level: "AA",
@@ -4316,10 +4317,10 @@ function Jn() {
4316
4317
  })(Me)), Me.exports;
4317
4318
  }
4318
4319
  var Ze, ar;
4319
- function Zn() {
4320
+ function Qn() {
4320
4321
  if (ar) return Ze;
4321
4322
  ar = 1;
4322
- const s = Jn(), n = { r: 256, g: 256, b: 256, a: 1 }, o = { h: 360, s: 1, v: 1, a: 1 };
4323
+ const s = Zn(), n = { r: 256, g: 256, b: 256, a: 1 }, o = { h: 360, s: 1, v: 1, a: 1 };
4323
4324
  function h(d, v, L) {
4324
4325
  let D = {};
4325
4326
  for (let p in d)
@@ -4548,8 +4549,8 @@ function Zn() {
4548
4549
  return new C(d);
4549
4550
  }, Ze;
4550
4551
  }
4551
- var Qn = Zn();
4552
- const lr = /* @__PURE__ */ je(Qn), Q = (...s) => {
4552
+ var es = Qn();
4553
+ const lr = /* @__PURE__ */ je(es), Q = (...s) => {
4553
4554
  let n, o;
4554
4555
  if (s.length === 0)
4555
4556
  throw new Error("Missing gradient colors");
@@ -4560,19 +4561,19 @@ const lr = /* @__PURE__ */ je(Qn), Q = (...s) => {
4560
4561
  throw new Error(`Expected an array of colors, received ${JSON.stringify(s[0])}`);
4561
4562
  n = lr(...s);
4562
4563
  }
4563
- const h = (i, r) => es(i ? i.toString() : "", n, r ?? o);
4564
- return h.multiline = (i, r) => ts(i ? i.toString() : "", n, r ?? o), h;
4565
- }, Jr = (s, n, o) => n.interpolation?.toLowerCase() === "hsv" ? s.hsv(o, n.hsvSpin?.toLowerCase() || !1) : s.rgb(o);
4566
- function es(s, n, o) {
4567
- const h = xt(o), i = Math.max(s.replace(/\s/g, "").length, n.stops.length), r = Jr(n, h, i);
4564
+ const h = (i, r) => ts(i ? i.toString() : "", n, r ?? o);
4565
+ return h.multiline = (i, r) => rs(i ? i.toString() : "", n, r ?? o), h;
4566
+ }, Kr = (s, n, o) => n.interpolation?.toLowerCase() === "hsv" ? s.hsv(o, n.hsvSpin?.toLowerCase() || !1) : s.rgb(o);
4567
+ function ts(s, n, o) {
4568
+ const h = xt(o), i = Math.max(s.replace(/\s/g, "").length, n.stops.length), r = Kr(n, h, i);
4568
4569
  let e = "";
4569
4570
  for (const a of s)
4570
4571
  e += a.match(/\s/g) ? a : X.hex(r.shift()?.toHex() || "#000")(a);
4571
4572
  return e;
4572
4573
  }
4573
- function ts(s, n, o) {
4574
+ function rs(s, n, o) {
4574
4575
  const h = xt(o), i = s.split(`
4575
- `), r = Math.max(...i.map((l) => l.length), n.stops.length), e = Jr(n, h, r), a = [];
4576
+ `), r = Math.max(...i.map((l) => l.length), n.stops.length), e = Kr(n, h, r), a = [];
4576
4577
  for (const l of i) {
4577
4578
  const C = e.slice(0);
4578
4579
  let d = "";
@@ -4615,60 +4616,60 @@ function ie(s) {
4615
4616
  const n = (o) => Q(...s.colors)(o, s.options);
4616
4617
  return n.multiline = (o = "") => Q(...s.colors).multiline(o, s.options), n;
4617
4618
  }
4618
- const rs = ie(re.atlas), is = ie(re.cristal), ns = ie(re.teen), ss = ie(re.mind), us = ie(re.morning), Zr = ie(re.vice), os = ie(re.passion), as = ie(re.fruit), ls = ie(re.instagram), cs = ie(re.retro), hs = ie(re.summer), Ds = ie(re.rainbow), fs = ie(re.pastel);
4619
- Q.atlas = rs;
4620
- Q.cristal = is;
4621
- Q.teen = ns;
4622
- Q.mind = ss;
4623
- Q.morning = us;
4624
- Q.vice = Zr;
4625
- Q.passion = os;
4626
- Q.fruit = as;
4627
- Q.instagram = ls;
4628
- Q.retro = cs;
4629
- Q.summer = hs;
4630
- Q.rainbow = Ds;
4631
- Q.pastel = fs;
4632
- const ps = "my-arcgis-app";
4633
- function Qr() {
4634
- Pn("initialize a new arcgis project");
4619
+ const is = ie(re.atlas), ns = ie(re.cristal), ss = ie(re.teen), us = ie(re.mind), os = ie(re.morning), Jr = ie(re.vice), as = ie(re.passion), ls = ie(re.fruit), cs = ie(re.instagram), hs = ie(re.retro), Ds = ie(re.summer), fs = ie(re.rainbow), ps = ie(re.pastel);
4620
+ Q.atlas = is;
4621
+ Q.cristal = ns;
4622
+ Q.teen = ss;
4623
+ Q.mind = us;
4624
+ Q.morning = os;
4625
+ Q.vice = Jr;
4626
+ Q.passion = as;
4627
+ Q.fruit = ls;
4628
+ Q.instagram = cs;
4629
+ Q.retro = hs;
4630
+ Q.summer = Ds;
4631
+ Q.rainbow = fs;
4632
+ Q.pastel = ps;
4633
+ const ds = "my-arcgis-app";
4634
+ function Zr() {
4635
+ Rn("initialize a new arcgis project");
4635
4636
  }
4636
- async function ei() {
4637
- return await xn({
4637
+ async function Qr() {
4638
+ return await $n({
4638
4639
  message: "What is the name of your project?",
4639
4640
  initialValue: "",
4640
- placeholder: ps,
4641
+ placeholder: ds,
4641
4642
  validate(s) {
4642
4643
  if (s.length === 0)
4643
4644
  return "Value is required!";
4644
4645
  }
4645
4646
  });
4646
4647
  }
4647
- async function ds() {
4648
- const s = Object.entries(T).filter(([, n]) => !Mi[n]).map(([, n]) => ({ value: n, label: n }));
4649
- return await Bn({
4648
+ async function ms() {
4649
+ const s = Object.entries(T).filter(([, n]) => !Gi[n]).map(([, n]) => ({ value: n, label: n }));
4650
+ return await Pn({
4650
4651
  message: "Which template would you like to use?",
4651
4652
  options: s
4652
4653
  });
4653
4654
  }
4654
- function ti() {
4655
+ function ei() {
4655
4656
  Ee(X.greenBright("Your new project is ready!"));
4656
4657
  }
4657
- function ms() {
4658
+ function gs() {
4658
4659
  Ee(
4659
4660
  X.greenBright(
4660
4661
  "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."
4661
4662
  )
4662
4663
  );
4663
4664
  }
4664
- async function gs(s) {
4665
+ async function Cs(s) {
4665
4666
  return me.info(`
4666
4667
  This command requires a ${s} personal access token with the 'repo' scope.
4667
4668
 
4668
4669
  See https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic
4669
4670
 
4670
4671
  for step-by-step instructions.
4671
- `), await $n({
4672
+ `), await Bn({
4672
4673
  message: `Please enter your personal access token for ${s}`,
4673
4674
  mask: "*",
4674
4675
  validate(n) {
@@ -4678,12 +4679,12 @@ async function gs(s) {
4678
4679
  });
4679
4680
  }
4680
4681
  var Qe, cr;
4681
- function ri() {
4682
+ function ti() {
4682
4683
  return cr || (cr = 1, Qe = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...n) => console.error("SEMVER", ...n) : () => {
4683
4684
  }), Qe;
4684
4685
  }
4685
4686
  var et, hr;
4686
- function ii() {
4687
+ function ri() {
4687
4688
  if (hr) return et;
4688
4689
  hr = 1;
4689
4690
  const s = "2.0.0", n = 256, o = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
@@ -4708,13 +4709,13 @@ function ii() {
4708
4709
  }, et;
4709
4710
  }
4710
4711
  var Ne = { exports: {} }, Dr;
4711
- function Cs() {
4712
+ function Es() {
4712
4713
  return Dr || (Dr = 1, (function(s, n) {
4713
4714
  const {
4714
4715
  MAX_SAFE_COMPONENT_LENGTH: o,
4715
4716
  MAX_SAFE_BUILD_LENGTH: h,
4716
4717
  MAX_LENGTH: i
4717
- } = ii(), r = ri();
4718
+ } = ri(), r = ti();
4718
4719
  n = s.exports = {};
4719
4720
  const e = n.re = [], a = n.safeRe = [], l = n.src = [], C = n.safeSrc = [], d = n.t = {};
4720
4721
  let v = 0;
@@ -4734,14 +4735,14 @@ function Cs() {
4734
4735
  })(Ne, Ne.exports)), Ne.exports;
4735
4736
  }
4736
4737
  var tt, fr;
4737
- function Es() {
4738
+ function Fs() {
4738
4739
  if (fr) return tt;
4739
4740
  fr = 1;
4740
4741
  const s = Object.freeze({ loose: !0 }), n = Object.freeze({});
4741
4742
  return tt = (h) => h ? typeof h != "object" ? s : h : n, tt;
4742
4743
  }
4743
4744
  var rt, pr;
4744
- function Fs() {
4745
+ function bs() {
4745
4746
  if (pr) return rt;
4746
4747
  pr = 1;
4747
4748
  const s = /^[0-9]+$/, n = (h, i) => {
@@ -4756,10 +4757,10 @@ function Fs() {
4756
4757
  }, rt;
4757
4758
  }
4758
4759
  var it, dr;
4759
- function bs() {
4760
+ function As() {
4760
4761
  if (dr) return it;
4761
4762
  dr = 1;
4762
- const s = ri(), { MAX_LENGTH: n, MAX_SAFE_INTEGER: o } = ii(), { safeRe: h, t: i } = Cs(), r = Es(), { compareIdentifiers: e } = Fs();
4763
+ const s = ti(), { MAX_LENGTH: n, MAX_SAFE_INTEGER: o } = ri(), { safeRe: h, t: i } = Es(), r = Fs(), { compareIdentifiers: e } = bs();
4763
4764
  class a {
4764
4765
  constructor(C, d) {
4765
4766
  if (d = r(d), C instanceof a) {
@@ -4917,10 +4918,10 @@ function bs() {
4917
4918
  return it = a, it;
4918
4919
  }
4919
4920
  var nt, mr;
4920
- function ni() {
4921
+ function ii() {
4921
4922
  if (mr) return nt;
4922
4923
  mr = 1;
4923
- const s = bs();
4924
+ const s = As();
4924
4925
  return nt = (o, h, i = !1) => {
4925
4926
  if (o instanceof s)
4926
4927
  return o;
@@ -4934,26 +4935,26 @@ function ni() {
4934
4935
  }, nt;
4935
4936
  }
4936
4937
  var st, gr;
4937
- function As() {
4938
+ function vs() {
4938
4939
  if (gr) return st;
4939
4940
  gr = 1;
4940
- const s = ni();
4941
+ const s = ii();
4941
4942
  return st = (o, h) => {
4942
4943
  const i = s(o, h);
4943
4944
  return i ? i.version : null;
4944
4945
  }, st;
4945
4946
  }
4946
4947
  var ut, Cr;
4947
- function vs() {
4948
+ function ys() {
4948
4949
  if (Cr) return ut;
4949
4950
  Cr = 1;
4950
- const s = ni();
4951
+ const s = ii();
4951
4952
  return ut = (o, h) => {
4952
4953
  const i = s(o.trim().replace(/^[=v]+/, ""), h);
4953
4954
  return i ? i.version : null;
4954
4955
  }, ut;
4955
4956
  }
4956
- const si = /* @__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"]'), ys = [
4957
+ const ni = /* @__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"]'), Ls = [
4957
4958
  "AGPL-1.0",
4958
4959
  "AGPL-3.0",
4959
4960
  "BSD-2-Clause-FreeBSD",
@@ -4980,7 +4981,7 @@ const si = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
4980
4981
  "bzip2-1.0.5",
4981
4982
  "eCos-2.0",
4982
4983
  "wxWindows"
4983
- ], Ls = [
4984
+ ], Ss = [
4984
4985
  "389-exception",
4985
4986
  "Asterisk-exception",
4986
4987
  "Autoconf-exception-2.0",
@@ -5049,10 +5050,10 @@ const si = /* @__PURE__ */ JSON.parse('["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL
5049
5050
  "x11vnc-openssl-exception"
5050
5051
  ];
5051
5052
  var ot, Er;
5052
- function Ss() {
5053
+ function ws() {
5053
5054
  if (Er) return ot;
5054
5055
  Er = 1;
5055
- var s = [].concat(si).concat(ys), n = Ls;
5056
+ var s = [].concat(ni).concat(Ls), n = Ss;
5056
5057
  return ot = function(o) {
5057
5058
  var h = 0;
5058
5059
  function i() {
@@ -5127,7 +5128,7 @@ function Ss() {
5127
5128
  }, ot;
5128
5129
  }
5129
5130
  var at, Fr;
5130
- function ws() {
5131
+ function Os() {
5131
5132
  return Fr || (Fr = 1, at = function(s) {
5132
5133
  var n = 0;
5133
5134
  function o() {
@@ -5208,19 +5209,19 @@ function ws() {
5208
5209
  }), at;
5209
5210
  }
5210
5211
  var lt, br;
5211
- function ui() {
5212
+ function si() {
5212
5213
  if (br) return lt;
5213
5214
  br = 1;
5214
- var s = Ss(), n = ws();
5215
+ var s = ws(), n = Os();
5215
5216
  return lt = function(o) {
5216
5217
  return n(s(o));
5217
5218
  }, lt;
5218
5219
  }
5219
5220
  var ct, Ar;
5220
- function Os() {
5221
+ function _s() {
5221
5222
  if (Ar) return ct;
5222
5223
  Ar = 1;
5223
- var s = ui(), n = si;
5224
+ var s = si(), n = ni;
5224
5225
  function o(t) {
5225
5226
  try {
5226
5227
  return s(t), !0;
@@ -5495,10 +5496,10 @@ function Os() {
5495
5496
  return ct;
5496
5497
  }
5497
5498
  var ht, vr;
5498
- function _s() {
5499
+ function xs() {
5499
5500
  if (vr) return ht;
5500
5501
  vr = 1;
5501
- var s = ui(), n = Os(), o = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"', h = /^SEE LICEN[CS]E IN (.+)$/;
5502
+ var s = si(), n = _s(), o = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"', h = /^SEE LICEN[CS]E IN (.+)$/;
5502
5503
  function i(e, a) {
5503
5504
  return a.slice(0, e.length) === e;
5504
5505
  }
@@ -5553,7 +5554,7 @@ function _s() {
5553
5554
  }, ht;
5554
5555
  }
5555
5556
  var ye = {}, yr;
5556
- function xs() {
5557
+ function $s() {
5557
5558
  if (yr) return ye;
5558
5559
  yr = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.LRUCache = void 0;
5559
5560
  const s = typeof performance == "object" && performance && typeof performance.now == "function" ? performance : Date, n = /* @__PURE__ */ new Set(), o = typeof process == "object" && process ? process : {}, h = (L, D, p, f) => {
@@ -6472,7 +6473,7 @@ function xs() {
6472
6473
  return ye.LRUCache = v, ye;
6473
6474
  }
6474
6475
  var Dt, Lr;
6475
- function $s() {
6476
+ function Bs() {
6476
6477
  if (Lr) return Dt;
6477
6478
  Lr = 1;
6478
6479
  const s = (...r) => r.every((e) => e) ? r.join("") : "", n = (r) => r ? encodeURIComponent(r) : "", o = (r) => r.toLowerCase().replace(/^\W+/g, "").replace(/(?<!\W)\W+$/, "").replace(/\//g, "").replace(/\W+/g, "-"), h = {
@@ -6590,10 +6591,10 @@ function $s() {
6590
6591
  return Dt = i, Dt;
6591
6592
  }
6592
6593
  var ft, Sr;
6593
- function oi() {
6594
+ function ui() {
6594
6595
  if (Sr) return ft;
6595
6596
  Sr = 1;
6596
- const s = Tr, n = (r, e, a) => {
6597
+ const s = Li, n = (r, e, a) => {
6597
6598
  const l = r.indexOf(a);
6598
6599
  return r.lastIndexOf(e, l > -1 ? l : 1 / 0);
6599
6600
  }, o = (r) => {
@@ -6617,10 +6618,10 @@ function oi() {
6617
6618
  }, ft;
6618
6619
  }
6619
6620
  var pt, wr;
6620
- function Bs() {
6621
+ function Ps() {
6621
6622
  if (wr) return pt;
6622
6623
  wr = 1;
6623
- const s = oi(), n = (o) => {
6624
+ const s = ui(), n = (o) => {
6624
6625
  const h = o.indexOf("#"), i = o.indexOf("/"), r = o.indexOf("/", i + 1), e = o.indexOf(":"), a = /\s/.exec(o), l = o.indexOf("@"), C = !a || h > -1 && a.index > h, d = l === -1 || h > -1 && l > h, v = e === -1 || h > -1 && e > h, L = r === -1 || h > -1 && r > h, D = i > 0, p = h > -1 ? o[h - 1] !== "/" : !o.endsWith("/"), f = !o.startsWith(".");
6625
6626
  return C && D && p && f && d && v && L;
6626
6627
  };
@@ -6661,10 +6662,10 @@ function Bs() {
6661
6662
  }, pt;
6662
6663
  }
6663
6664
  var dt, Or;
6664
- function Ps() {
6665
+ function Rs() {
6665
6666
  if (Or) return dt;
6666
6667
  Or = 1;
6667
- const { LRUCache: s } = /* @__PURE__ */ xs(), n = $s(), o = Bs(), h = oi(), i = new s({ max: 1e3 });
6668
+ const { LRUCache: s } = /* @__PURE__ */ $s(), n = Bs(), o = Ps(), h = ui(), i = new s({ max: 1e3 });
6668
6669
  function r(a) {
6669
6670
  try {
6670
6671
  const {
@@ -6800,7 +6801,7 @@ function Ps() {
6800
6801
  return dt = e, dt;
6801
6802
  }
6802
6803
  var mt, _r;
6803
- function Rs() {
6804
+ function Ts() {
6804
6805
  if (_r) return mt;
6805
6806
  _r = 1, mt = s;
6806
6807
  function s(n) {
@@ -6819,16 +6820,16 @@ function Rs() {
6819
6820
  }
6820
6821
  return mt;
6821
6822
  }
6822
- const Ts = { 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" }, Is = { web: "url", name: "url" }, Ns = { server: "start", tests: "test" }, Ms = {
6823
- topLevel: Ts,
6824
- bugs: Is,
6825
- script: Ns
6823
+ const Is = { 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" }, Ns = { web: "url", name: "url" }, Ms = { server: "start", tests: "test" }, Gs = {
6824
+ topLevel: Is,
6825
+ bugs: Ns,
6826
+ script: Ms
6826
6827
  };
6827
6828
  var gt, xr;
6828
- function Gs() {
6829
+ function ks() {
6829
6830
  if (xr) return gt;
6830
6831
  xr = 1;
6831
- var s = As(), n = vs(), o = _s(), h = Ps(), i = Li, r = ["dependencies", "devDependencies", "optionalDependencies"], e = Rs(), a = Tr, l = Ms, C = (u) => u.includes("@") && u.indexOf("@") < u.lastIndexOf(".");
6832
+ var { URL: s } = yi, n = vs(), o = ys(), h = xs(), i = Rs(), { isBuiltin: r } = Si, e = ["dependencies", "devDependencies", "optionalDependencies"], a = Ts(), l = Gs, C = (u) => u.includes("@") && u.indexOf("@") < u.lastIndexOf(".");
6832
6833
  gt = {
6833
6834
  // default warning function
6834
6835
  warn: function() {
@@ -6842,7 +6843,7 @@ function Gs() {
6842
6843
  });
6843
6844
  var m = u.repository.url || "";
6844
6845
  if (m) {
6845
- var y = h.fromUrl(m);
6846
+ var y = i.fromUrl(m);
6846
6847
  y && (m = u.repository.url = y.getDefaultRepresentation() === "shortcut" ? y.https() : y.toString());
6847
6848
  }
6848
6849
  m.match(/github.com\/[^/]+\/[^/]+\.git\.git$/) && this.warn("brokenGitUrl", m);
@@ -6894,7 +6895,7 @@ function Gs() {
6894
6895
  Object.keys(u[m]).forEach(function(y) {
6895
6896
  var S = u[m][y];
6896
6897
  typeof S != "string" && (this.warn("nonStringDependency", y, JSON.stringify(S)), delete u[m][y]);
6897
- var O = h.fromUrl(u[m][y]);
6898
+ var O = i.fromUrl(u[m][y]);
6898
6899
  O && (u[m][y] = O.toString());
6899
6900
  }, this);
6900
6901
  }
@@ -6912,9 +6913,9 @@ function Gs() {
6912
6913
  var y = !m;
6913
6914
  if (!u.version)
6914
6915
  return u.version = "", !0;
6915
- if (!s(u.version, y))
6916
+ if (!n(u.version, y))
6916
6917
  throw new Error('Invalid version: "' + u.version + '"');
6917
- return u.version = n(u.version, y), !0;
6918
+ return u.version = o(u.version, y), !0;
6918
6919
  },
6919
6920
  fixPeople: function(u) {
6920
6921
  D(u, p), D(u, f);
@@ -6928,38 +6929,38 @@ function Gs() {
6928
6929
  }
6929
6930
  if (typeof u.name != "string")
6930
6931
  throw new Error("name field must be a string.");
6931
- y || (u.name = u.name.trim()), L(u.name, y, m.allowLegacyCase), i.builtinModules.includes(u.name) && this.warn("conflictingName", u.name);
6932
+ y || (u.name = u.name.trim()), L(u.name, y, m.allowLegacyCase), r(u.name) && this.warn("conflictingName", u.name);
6932
6933
  },
6933
6934
  fixDescriptionField: function(u) {
6934
- u.description && typeof u.description != "string" && (this.warn("nonStringDescription"), delete u.description), u.readme && !u.description && (u.description = e(u.readme)), u.description === void 0 && delete u.description, u.description || this.warn("missingDescription");
6935
+ u.description && typeof u.description != "string" && (this.warn("nonStringDescription"), delete u.description), u.readme && !u.description && (u.description = a(u.readme)), u.description === void 0 && delete u.description, u.description || this.warn("missingDescription");
6935
6936
  },
6936
6937
  fixReadmeField: function(u) {
6937
6938
  u.readme || (this.warn("missingReadme"), u.readme = "ERROR: No README data found!");
6938
6939
  },
6939
6940
  fixBugsField: function(u) {
6940
6941
  if (!u.bugs && u.repository && u.repository.url) {
6941
- var m = h.fromUrl(u.repository.url);
6942
+ var m = i.fromUrl(u.repository.url);
6942
6943
  m && m.bugs() && (u.bugs = { url: m.bugs() });
6943
6944
  } else if (u.bugs) {
6944
6945
  if (typeof u.bugs == "string")
6945
- C(u.bugs) ? u.bugs = { email: u.bugs } : a.parse(u.bugs).protocol ? u.bugs = { url: u.bugs } : this.warn("nonEmailUrlBugsString");
6946
+ C(u.bugs) ? u.bugs = { email: u.bugs } : s.canParse(u.bugs) ? u.bugs = { url: u.bugs } : this.warn("nonEmailUrlBugsString");
6946
6947
  else {
6947
6948
  g(u.bugs, this.warn);
6948
6949
  var y = u.bugs;
6949
- u.bugs = {}, y.url && (typeof y.url == "string" && a.parse(y.url).protocol ? u.bugs.url = y.url : this.warn("nonUrlBugsUrlField")), y.email && (typeof y.email == "string" && C(y.email) ? u.bugs.email = y.email : this.warn("nonEmailBugsEmailField"));
6950
+ u.bugs = {}, y.url && (s.canParse(y.url) ? u.bugs.url = y.url : this.warn("nonUrlBugsUrlField")), y.email && (typeof y.email == "string" && C(y.email) ? u.bugs.email = y.email : this.warn("nonEmailBugsEmailField"));
6950
6951
  }
6951
6952
  !u.bugs.email && !u.bugs.url && (delete u.bugs, this.warn("emptyNormalizedBugs"));
6952
6953
  }
6953
6954
  },
6954
6955
  fixHomepageField: function(u) {
6955
6956
  if (!u.homepage && u.repository && u.repository.url) {
6956
- var m = h.fromUrl(u.repository.url);
6957
+ var m = i.fromUrl(u.repository.url);
6957
6958
  m && m.docs() && (u.homepage = m.docs());
6958
6959
  }
6959
6960
  if (u.homepage) {
6960
6961
  if (typeof u.homepage != "string")
6961
6962
  return this.warn("nonUrlHomepage"), delete u.homepage;
6962
- a.parse(u.homepage).protocol || (u.homepage = "http://" + u.homepage);
6963
+ s.canParse(u.homepage) || (u.homepage = "http://" + u.homepage);
6963
6964
  }
6964
6965
  },
6965
6966
  fixLicenseField: function(u) {
@@ -6968,7 +6969,7 @@ function Gs() {
6968
6969
  return this.warn("missingLicense");
6969
6970
  if (typeof m != "string" || m.length < 1 || m.trim() === "")
6970
6971
  return this.warn("invalidLicense");
6971
- if (!o(m).validForNewPackages)
6972
+ if (!h(m).validForNewPackages)
6972
6973
  return this.warn("invalidLicense");
6973
6974
  }
6974
6975
  };
@@ -7027,7 +7028,7 @@ function Gs() {
7027
7028
  }), S;
7028
7029
  }
7029
7030
  function c(u, m) {
7030
- r.forEach(function(y) {
7031
+ e.forEach(function(y) {
7031
7032
  u[y] && (u[y] = t(u[y], y, m));
7032
7033
  });
7033
7034
  }
@@ -7038,41 +7039,41 @@ function Gs() {
7038
7039
  }
7039
7040
  return gt;
7040
7041
  }
7041
- const ks = "'repositories' (plural) Not supported. Please pick one as the 'repository' field", Hs = "No repository field.", Us = "Probably broken git url: %s", js = "scripts must be an object", Ws = "script values must be string commands", Vs = "Invalid 'files' member", qs = "Invalid filename in 'files' list: %s", zs = "Invalid 'bundleDependencies' list. Must be array of package names", Ys = "Invalid bundleDependencies member: %s", Xs = "Non-dependency in bundleDependencies: %s", Ks = "%s field must be an object", Js = "Invalid dependency: %s %s", Zs = "specifying %s as array is deprecated", Qs = "modules field is deprecated", eu = "keywords should be an array of strings", tu = "keywords should be an array of strings", ru = "%s is also the name of a node core module.", iu = "'description' field should be a string", nu = "No description", su = "No README data", uu = "No license field.", ou = "Bug string field must be url, email, or {email,url}", au = "bugs.url field must be a string url. Deleted.", lu = "bugs.email field must be a string email. Deleted.", cu = "Normalized value of bugs field is an empty object. Deleted.", hu = "homepage field must be a string url. Deleted.", Du = "license should be a valid SPDX license expression", fu = "%s should probably be %s.", pu = {
7042
- repositories: ks,
7043
- missingRepository: Hs,
7044
- brokenGitUrl: Us,
7045
- nonObjectScripts: js,
7046
- nonStringScript: Ws,
7047
- nonArrayFiles: Vs,
7048
- invalidFilename: qs,
7049
- nonArrayBundleDependencies: zs,
7050
- nonStringBundleDependency: Ys,
7051
- nonDependencyBundleDependency: Xs,
7052
- nonObjectDependencies: Ks,
7053
- nonStringDependency: Js,
7054
- deprecatedArrayDependencies: Zs,
7055
- deprecatedModules: Qs,
7056
- nonArrayKeywords: eu,
7057
- nonStringKeyword: tu,
7058
- conflictingName: ru,
7059
- nonStringDescription: iu,
7060
- missingDescription: nu,
7061
- missingReadme: su,
7062
- missingLicense: uu,
7063
- nonEmailUrlBugsString: ou,
7064
- nonUrlBugsUrlField: au,
7065
- nonEmailBugsEmailField: lu,
7066
- emptyNormalizedBugs: cu,
7067
- nonUrlHomepage: hu,
7068
- invalidLicense: Du,
7069
- typo: fu
7042
+ const Hs = "'repositories' (plural) Not supported. Please pick one as the 'repository' field", Us = "No repository field.", js = "Probably broken git url: %s", Ws = "scripts must be an object", Vs = "script values must be string commands", qs = "Invalid 'files' member", zs = "Invalid filename in 'files' list: %s", Ys = "Invalid 'bundleDependencies' list. Must be array of package names", Xs = "Invalid bundleDependencies member: %s", Ks = "Non-dependency in bundleDependencies: %s", Js = "%s field must be an object", Zs = "Invalid dependency: %s %s", Qs = "specifying %s as array is deprecated", eu = "modules field is deprecated", tu = "keywords should be an array of strings", ru = "keywords should be an array of strings", iu = "%s is also the name of a node core module.", nu = "'description' field should be a string", su = "No description", uu = "No README data", ou = "No license field.", au = "Bug string field must be url, email, or {email,url}", lu = "bugs.url field must be a string url. Deleted.", cu = "bugs.email field must be a string email. Deleted.", hu = "Normalized value of bugs field is an empty object. Deleted.", Du = "homepage field must be a string url. Deleted.", fu = "license should be a valid SPDX license expression", pu = "%s should probably be %s.", du = {
7043
+ repositories: Hs,
7044
+ missingRepository: Us,
7045
+ brokenGitUrl: js,
7046
+ nonObjectScripts: Ws,
7047
+ nonStringScript: Vs,
7048
+ nonArrayFiles: qs,
7049
+ invalidFilename: zs,
7050
+ nonArrayBundleDependencies: Ys,
7051
+ nonStringBundleDependency: Xs,
7052
+ nonDependencyBundleDependency: Ks,
7053
+ nonObjectDependencies: Js,
7054
+ nonStringDependency: Zs,
7055
+ deprecatedArrayDependencies: Qs,
7056
+ deprecatedModules: eu,
7057
+ nonArrayKeywords: tu,
7058
+ nonStringKeyword: ru,
7059
+ conflictingName: iu,
7060
+ nonStringDescription: nu,
7061
+ missingDescription: su,
7062
+ missingReadme: uu,
7063
+ missingLicense: ou,
7064
+ nonEmailUrlBugsString: au,
7065
+ nonUrlBugsUrlField: lu,
7066
+ nonEmailBugsEmailField: cu,
7067
+ emptyNormalizedBugs: hu,
7068
+ nonUrlHomepage: Du,
7069
+ invalidLicense: fu,
7070
+ typo: pu
7070
7071
  };
7071
7072
  var Ct, $r;
7072
- function du() {
7073
+ function mu() {
7073
7074
  if ($r) return Ct;
7074
7075
  $r = 1;
7075
- var s = vi, n = pu;
7076
+ var s = Ai, n = du;
7076
7077
  Ct = function() {
7077
7078
  var h = Array.prototype.slice.call(arguments, 0), i = h.shift();
7078
7079
  if (i === "typo")
@@ -7086,12 +7087,12 @@ function du() {
7086
7087
  return Ct;
7087
7088
  }
7088
7089
  var Et, Br;
7089
- function mu() {
7090
+ function gu() {
7090
7091
  if (Br) return Et;
7091
7092
  Br = 1, Et = r;
7092
- var s = Gs();
7093
+ var s = ks();
7093
7094
  r.fixer = s;
7094
- var n = du(), o = [
7095
+ var n = mu(), o = [
7095
7096
  "name",
7096
7097
  "version",
7097
7098
  "description",
@@ -7123,18 +7124,18 @@ function mu() {
7123
7124
  }
7124
7125
  return Et;
7125
7126
  }
7126
- var gu = mu();
7127
- const Cu = /* @__PURE__ */ je(gu), Ce = yi(Ai.exec);
7128
- async function ai(s, n, o, h = Gr) {
7127
+ var Cu = gu();
7128
+ const Eu = /* @__PURE__ */ je(Cu), Ce = vi(bi.exec);
7129
+ async function oi(s, n, o, h = Mr) {
7129
7130
  const i = qe.cwd();
7130
7131
  try {
7131
7132
  await pe.mkdir(s);
7132
7133
  } catch (r) {
7133
7134
  throw new Error(`could not create new directory in file system, details: ${String(r)}`);
7134
7135
  }
7135
- qe.chdir(s), await Ce("git init"), await Ce(`git remote add origin ${n}`), await Ce("git config core.sparseCheckout true"), await Ce(`git sparse-checkout set --no-cone ${o}/*`), await Ce(`git pull origin ${h}`), await Eu(o, "."), await pe.rm(".git", { recursive: !0 }), qe.chdir(i);
7136
+ qe.chdir(s), await Ce("git init"), await Ce(`git remote add origin ${n}`), await Ce("git config core.sparseCheckout true"), await Ce(`git sparse-checkout set --no-cone ${o}/*`), await Ce(`git pull origin ${h}`), await Fu(o, "."), await pe.rm(".git", { recursive: !0 }), qe.chdir(i);
7136
7137
  }
7137
- async function Eu(s, n) {
7138
+ async function Fu(s, n) {
7138
7139
  if (!(s === "." || s === "" || ["./", "/"].includes(s.split("/")[0])))
7139
7140
  try {
7140
7141
  const o = await pe.readdir(s);
@@ -7150,19 +7151,19 @@ async function Eu(s, n) {
7150
7151
  console.error("Error:", o);
7151
7152
  }
7152
7153
  }
7153
- async function li(s) {
7154
+ async function ai(s) {
7154
7155
  const n = await pe.readFile(Ge.join(s, "package.json"), "utf-8"), o = JSON.parse(n), h = o._id, i = o.readme;
7155
- return Cu(o, (e) => {
7156
+ return Eu(o, (e) => {
7156
7157
  console.error(e);
7157
7158
  }), h || delete o._id, i || delete o.readme, o;
7158
7159
  }
7159
- async function Fu(s, n) {
7160
+ async function bu(s, n) {
7160
7161
  await pe.writeFile(Ge.join(s, "package.json"), JSON.stringify(n, null, 2));
7161
7162
  }
7162
- function bu(s) {
7163
+ function Au(s) {
7163
7164
  return s.scripts?.start ? "start" : "dev";
7164
7165
  }
7165
- const Au = (s) => {
7166
+ const vu = (s) => {
7166
7167
  const n = {};
7167
7168
  return Object.keys(s).forEach((o) => {
7168
7169
  const h = o;
@@ -7205,12 +7206,12 @@ const Au = (s) => {
7205
7206
  }
7206
7207
  }), n;
7207
7208
  };
7208
- async function vu(s) {
7209
+ async function yu(s) {
7209
7210
  await pe.stat(s) && await pe.rm(s, { recursive: !0 });
7210
7211
  }
7211
- async function yu(s, n) {
7212
- const o = kr[s];
7213
- let h = Mr;
7212
+ async function Lu(s, n) {
7213
+ const o = Gr[s];
7214
+ let h = Nr;
7214
7215
  n.host && (h = n.host);
7215
7216
  const i = `git@${h}:${o}.git`;
7216
7217
  try {
@@ -7220,14 +7221,14 @@ async function yu(s, n) {
7220
7221
  }
7221
7222
  return !0;
7222
7223
  }
7223
- function ci(s, n) {
7224
- const o = kr[s];
7225
- let h = Mr;
7224
+ function li(s, n) {
7225
+ const o = Gr[s];
7226
+ let h = Nr;
7226
7227
  n.host && (h = n.host);
7227
7228
  const i = n.ssh ? "git@" : "https://", r = n.accessToken ? `${n.accessToken}@` : "", e = n.ssh ? ":" : "/";
7228
7229
  return `${i}${r}${h}${e}${o}`;
7229
7230
  }
7230
- function Lu(s, n) {
7231
+ function Su(s, n) {
7231
7232
  ["dependencies", "devDependencies", "peerDependencies"].forEach((h) => {
7232
7233
  if (n[h]) {
7233
7234
  const i = n[h];
@@ -7237,20 +7238,20 @@ function Lu(s, n) {
7237
7238
  }
7238
7239
  });
7239
7240
  }
7240
- function Su(s, n) {
7241
- const h = Ti[s]?.[n];
7241
+ function wu(s, n) {
7242
+ const h = Ii[s]?.[n];
7242
7243
  if (!h)
7243
7244
  throw new Error(`Template "${n}" is not available for domain "${s}"`);
7244
7245
  return h;
7245
7246
  }
7246
- function hi(s) {
7247
+ function ci(s) {
7247
7248
  return {
7248
7249
  name: s.name,
7249
7250
  shouldCleanup: !1,
7250
7251
  async doCleanup(o) {
7251
7252
  if (console.error(X.bgRed(o)), this.shouldCleanup && this.name)
7252
7253
  try {
7253
- await vu(this.name);
7254
+ await yu(this.name);
7254
7255
  } catch (h) {
7255
7256
  console.error(X.bgRed(h));
7256
7257
  }
@@ -7258,73 +7259,73 @@ function hi(s) {
7258
7259
  }
7259
7260
  };
7260
7261
  }
7261
- async function Di(s, n, o) {
7262
- const { startMsg: h, successMsg: i, failureMsg: r } = s, e = Rn();
7262
+ async function hi(s, n, o) {
7263
+ const { startMsg: h, successMsg: i, failureMsg: r } = s, e = Tn();
7263
7264
  e.start(h), await n().then(() => e.stop(i)).catch((a) => {
7264
7265
  e.stop(X.bgRed(r), 1), o(a, e);
7265
7266
  });
7266
7267
  }
7267
- async function wu(s) {
7268
- const n = hi(s);
7268
+ async function Ou(s) {
7269
+ const n = ci(s);
7269
7270
  try {
7270
- Qr();
7271
- const o = await Tn(
7271
+ Zr();
7272
+ const o = await In(
7272
7273
  {
7273
- projectName: s.name ? async () => await Promise.resolve(s.name) : ei,
7274
- projectTemplate: s.template ? async () => await Promise.resolve(s.template) : ds
7274
+ projectName: s.name ? async () => await Promise.resolve(s.name) : Qr,
7275
+ projectTemplate: s.template ? async () => await Promise.resolve(s.template) : ms
7275
7276
  },
7276
7277
  {
7277
7278
  // On Cancel callback that wraps the group
7278
7279
  // So if the user cancels one of the prompts in the group this function will be called
7279
7280
  onCancel: () => {
7280
- Kr("Operation cancelled."), process.exit(0);
7281
+ Xr("Operation cancelled."), process.exit(0);
7281
7282
  }
7282
7283
  }
7283
7284
  );
7284
7285
  n.name = o.projectName;
7285
- const h = Su(ke.MAPS_WITH_CHARTS, o.projectTemplate), i = ci(o.projectTemplate, s);
7286
- await Di(
7286
+ const h = wu(ke.MAPS_WITH_CHARTS, o.projectTemplate), i = li(o.projectTemplate, s);
7287
+ await hi(
7287
7288
  {
7288
7289
  startMsg: "Downloading project template...",
7289
7290
  successMsg: "Project template downloaded successfully",
7290
7291
  failureMsg: "Error downloading project template"
7291
7292
  },
7292
7293
  async () => {
7293
- await ai(o.projectName, i, h), n.shouldCleanup = !0;
7294
+ await oi(o.projectName, i, h), n.shouldCleanup = !0;
7294
7295
  },
7295
7296
  (a) => {
7296
7297
  throw Ee(X.bgRed("Please ensure git is installed and try again.")), a;
7297
7298
  }
7298
7299
  );
7299
- const r = await li(o.projectName), e = bu(r);
7300
- ti(), console.log(X.magenta(`To get started, run the following commands:
7301
- `)), console.log(X.grey(`$ cd ${o.projectName}`)), console.log(X.grey("$ npm install")), console.log(X.grey(`$ npm run ${e}`)), console.log(Zr(`
7300
+ const r = await ai(o.projectName), e = Au(r);
7301
+ ei(), console.log(X.magenta(`To get started, run the following commands:
7302
+ `)), console.log(X.grey(`$ cd ${o.projectName}`)), console.log(X.grey("$ npm install")), console.log(X.grey(`$ npm run ${e}`)), console.log(Jr(`
7302
7303
 
7303
7304
  Happy mapping!`));
7304
7305
  } catch (o) {
7305
7306
  await n.doCleanup(o);
7306
7307
  }
7307
7308
  }
7308
- async function Ou(s) {
7309
- const { template: n, branch: o = Gr } = s;
7309
+ async function _u(s) {
7310
+ const { template: n, branch: o = Mr } = s;
7310
7311
  n !== T.LUMINA_COMPONENTS && (Ee(X.red("Template is not a code sample")), process.exit(1)), s.host || (Ee(X.red("Host option is required for the lumina-components template")), process.exit(1));
7311
- const h = hi(s);
7312
+ const h = ci(s);
7312
7313
  try {
7313
- Qr();
7314
- const i = s.name ?? await ei();
7315
- zr(i) && (Kr("Operation cancelled."), process.exit(0)), h.name = i;
7316
- const r = Ii[n], e = await yu(n, s);
7314
+ Zr();
7315
+ const i = s.name ?? await Qr();
7316
+ qr(i) && (Xr("Operation cancelled."), process.exit(0)), h.name = i;
7317
+ const r = Ni[n], e = await Lu(n, s);
7317
7318
  let a = "";
7318
- e || (a = await gs(s.host));
7319
- const l = ci(n, { ...s, ssh: e, accessToken: a });
7320
- await Di(
7319
+ e || (a = await Cs(s.host));
7320
+ const l = li(n, { ...s, ssh: e, accessToken: a });
7321
+ await hi(
7321
7322
  {
7322
7323
  startMsg: "Downloading project template...",
7323
7324
  successMsg: "Project template downloaded successfully",
7324
7325
  failureMsg: "Error downloading project template"
7325
7326
  },
7326
7327
  async () => {
7327
- await ai(i, l, r, o), h.shouldCleanup = !0;
7328
+ await oi(i, l, r, o), h.shouldCleanup = !0;
7328
7329
  },
7329
7330
  (g) => {
7330
7331
  throw Ee(X.bgRed("Please ensure git is installed and try again.")), g;
@@ -7335,7 +7336,7 @@ async function Ou(s) {
7335
7336
  version: d,
7336
7337
  "acme:scripts": v,
7337
7338
  ...L
7338
- } = await li(i), D = d.split(".").slice(0, 2), p = o.includes("release"), f = p ? `~${D.join(".")}.0` : `>=${D.join(".")}.0-next <${D[0]}.${Number.parseInt(D[1]) + 1}.0`, A = L.files, t = p ? void 0 : {
7339
+ } = await ai(i), D = d.split(".").slice(0, 2), p = o.includes("release"), f = p ? `~${D.join(".")}.0` : `>=${D.join(".")}.0-next <${D[0]}.${Number.parseInt(D[1]) + 1}.0`, A = L.files, t = p ? void 0 : {
7339
7340
  "@esri/calcite-components/@arcgis/lumina": f,
7340
7341
  "@esri/calcite-components/@arcgis/toolkit": f
7341
7342
  }, c = {
@@ -7347,30 +7348,30 @@ async function Ou(s) {
7347
7348
  ...t ? { resolutions: t } : {},
7348
7349
  ...A ? { files: A } : {}
7349
7350
  };
7350
- Lu(f, c), await Fu(i, c), ti(), ms(), console.log(X.magenta(`To get started, run the following commands:
7351
+ Su(f, c), await bu(i, c), ei(), gs(), console.log(X.magenta(`To get started, run the following commands:
7351
7352
  `)), console.log(X.grey(`$ cd ${i}`)), console.log(X.grey("$ pnpm install")), console.log(X.grey("$ pnpm start"));
7352
7353
  } catch (i) {
7353
7354
  await h.doCleanup(i);
7354
7355
  }
7355
7356
  }
7356
- const fi = (s) => {
7357
- const n = new Bi();
7357
+ const Di = (s) => {
7358
+ const n = new Pi();
7358
7359
  return s?.exitOverride && n.exitOverride(), s?.suppressOutput && n.configureOutput({
7359
7360
  writeOut: () => "",
7360
7361
  writeErr: () => ""
7361
- }), n.version(Ri.version), n.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("-p, --packages <packages>", "Additional packages to add").option("--host <host>", "Host to use for the source control repository").option("--branch <branch>", "Branch to checkout in the source control repository"), n.command("init").description("Initialize a new ArcGIS project").action(async () => {
7362
- const o = Au(n.opts());
7363
- if (o.template && Ni[o.template] === fe.CODE_SAMPLE) {
7364
- await Ou(o);
7362
+ }), n.version(Ti.version), n.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("-p, --packages <packages>", "Additional packages to add").option("--host <host>", "Host to use for the source control repository").option("--branch <branch>", "Branch to checkout in the source control repository"), n.command("init").description("Initialize a new ArcGIS project").action(async () => {
7363
+ const o = vu(n.opts());
7364
+ if (o.template && Mi[o.template] === fe.CODE_SAMPLE) {
7365
+ await _u(o);
7365
7366
  return;
7366
7367
  }
7367
- await wu(o);
7368
+ await Ou(o);
7368
7369
  }), n;
7369
7370
  };
7370
- let _u = {
7371
- makeProgram: fi
7371
+ let xu = {
7372
+ makeProgram: Di
7372
7373
  };
7373
- process.env.NODE_ENV !== "test" && (_u = void 0, fi().parse());
7374
+ process.env.NODE_ENV !== "test" && (xu = void 0, Di().parse());
7374
7375
  export {
7375
- _u as exportsForTests
7376
+ xu as exportsForTests
7376
7377
  };