@n8n/chat 1.35.0 → 1.35.2

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.
@@ -1,6 +1,6 @@
1
- /*! Package version @n8n/chat@1.35.0 */
2
- import { At as e, B as t, Bt as n, C as r, Ct as i, D as a, Dt as o, E as s, Et as c, F as l, Ft as u, G as d, H as f, I as p, It as m, J as h, K as g, L as _, Lt as v, M as y, Mt as b, N as x, Nt as S, O as C, Ot as w, P as T, Pt as E, Q as D, R as O, Rt as k, S as A, St as j, T as M, Tt as N, U as P, V as F, Vt as ee, W as I, X as L, Y as te, _ as R, _t as ne, a as re, at as ie, b as ae, bt as oe, c as se, ct as ce, d as le, dt as ue, et as de, f as fe, ft as pe, g as z, gt as me, h as B, ht as he, i as ge, it as V, j as _e, jt as H, k as ve, kt as ye, l as be, lt as xe, m as U, mt as W, n as Se, nt as Ce, o as we, ot as Te, p as Ee, pt as De, q as Oe, r as ke, rt as Ae, s as je, st as Me, t as Ne, tt as G, u as Pe, ut as K, v as q, vt as Fe, w as Ie, wt as Le, x as Re, xt as ze, y as Be, yt as Ve, z as J, zt as He } from "./vue.runtime.esm-bundler-CGcjDedZ.mjs";
3
- import "./en-Dvx8tZIA-Dp0dM4oR.mjs";
1
+ /*! Package version @n8n/chat@1.35.2 */
2
+ import { At as e, B as t, Bt as n, C as r, Ct as i, D as a, Dt as o, E as s, Et as c, F as l, Ft as u, G as d, H as f, I as p, It as m, J as h, K as g, L as _, Lt as v, M as y, Mt as b, N as x, Nt as S, O as C, Ot as w, P as T, Pt as E, Q as D, R as O, Rt as k, S as A, St as j, T as M, Tt as N, U as P, V as F, Vt as ee, W as I, X as L, Y as te, _ as R, _t as ne, a as re, at as ie, b as ae, bt as oe, c as se, ct as ce, d as le, dt as ue, et as de, f as fe, ft as pe, g as z, gt as me, h as B, ht as he, i as ge, it as V, j as _e, jt as H, k as ve, kt as ye, l as be, lt as xe, m as U, mt as W, n as Se, nt as Ce, o as we, ot as Te, p as Ee, pt as De, q as Oe, r as ke, rt as Ae, s as je, st as Me, t as Ne, tt as G, u as Pe, ut as K, v as q, vt as Fe, w as Ie, wt as Le, x as Re, xt as ze, y as Be, yt as Ve, z as J, zt as He } from "./vue.runtime.esm-bundler-C_XUdnqs.mjs";
3
+ import "./en-Dvx8tZIA-c6S9bOWU.mjs";
4
4
  //#region src/composables/useChat.ts
5
5
  function Ue() {
6
6
  return a(Na);
@@ -196,7 +196,7 @@ var Ke = /* @__PURE__ */ r({
196
196
  let n = e && e.exec(t);
197
197
  return n && n.index === 0;
198
198
  }
199
- var S = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;
199
+ var S = new RegExp(y(/\[(?:[^\\\]]|\\.)*\]/, /\(\?<(?![=!])[^>]+>/, /\(\?'[^']+'/, /\(\??/, /\\([1-9][0-9]*)/, /\\./));
200
200
  function C(e, { joinWith: t }) {
201
201
  let n = 0;
202
202
  return e.map((e) => {
@@ -208,7 +208,7 @@ var Ke = /* @__PURE__ */ r({
208
208
  i += r;
209
209
  break;
210
210
  }
211
- i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], e[0] === "(" && n++);
211
+ i += r.substring(0, e.index), r = r.substring(e.index + e[0].length), e[0][0] === "\\" && e[1] ? i += "\\" + String(Number(e[1]) + t) : (i += e[0], (e[0] === "(" || /^\(\?[<']/.test(e[0])) && n++);
212
212
  }
213
213
  return i;
214
214
  }).map((e) => `(${e})`).join(t);
@@ -268,18 +268,14 @@ var Ke = /* @__PURE__ */ r({
268
268
  begin: k,
269
269
  relevance: 0
270
270
  }, ie = {
271
- begin: /(?=\/[^/\n]*\/)/,
272
- contains: [{
273
- scope: "regexp",
274
- begin: /\//,
275
- end: /\/[gimuy]*/,
276
- illegal: /\n/,
277
- contains: [M, {
278
- begin: /\[/,
279
- end: /\]/,
280
- relevance: 0,
281
- contains: [M]
282
- }]
271
+ scope: "regexp",
272
+ begin: /\/(?=[^/\n]*\/)/,
273
+ end: /\/[gimuy]*/,
274
+ contains: [M, {
275
+ begin: /\[/,
276
+ end: /\]/,
277
+ relevance: 0,
278
+ contains: [M]
283
279
  }]
284
280
  }, ae = {
285
281
  scope: "title",
@@ -294,29 +290,15 @@ var Ke = /* @__PURE__ */ r({
294
290
  relevance: 0
295
291
  }, ce = /* @__PURE__ */ Object.freeze({
296
292
  __proto__: null,
297
- MATCH_NOTHING_RE: w,
298
- IDENT_RE: T,
299
- UNDERSCORE_IDENT_RE: E,
300
- NUMBER_RE: D,
301
- C_NUMBER_RE: O,
302
- BINARY_NUMBER_RE: k,
303
- RE_STARTERS_RE: A,
304
- SHEBANG: j,
305
- BACKSLASH_ESCAPE: M,
306
293
  APOS_STRING_MODE: N,
307
- QUOTE_STRING_MODE: P,
308
- PHRASAL_WORDS_MODE: F,
294
+ BACKSLASH_ESCAPE: M,
295
+ BINARY_NUMBER_MODE: re,
296
+ BINARY_NUMBER_RE: k,
309
297
  COMMENT: ee,
310
- C_LINE_COMMENT_MODE: I,
311
298
  C_BLOCK_COMMENT_MODE: L,
312
- HASH_COMMENT_MODE: te,
313
- NUMBER_MODE: R,
299
+ C_LINE_COMMENT_MODE: I,
314
300
  C_NUMBER_MODE: ne,
315
- BINARY_NUMBER_MODE: re,
316
- REGEXP_MODE: ie,
317
- TITLE_MODE: ae,
318
- UNDERSCORE_TITLE_MODE: oe,
319
- METHOD_GUARD: se,
301
+ C_NUMBER_RE: O,
320
302
  END_SAME_AS_BEGIN: function(e) {
321
303
  return Object.assign(e, {
322
304
  "on:begin": (e, t) => {
@@ -326,7 +308,21 @@ var Ke = /* @__PURE__ */ r({
326
308
  t.data._beginMatch !== e[1] && t.ignoreMatch();
327
309
  }
328
310
  });
329
- }
311
+ },
312
+ HASH_COMMENT_MODE: te,
313
+ IDENT_RE: T,
314
+ MATCH_NOTHING_RE: w,
315
+ METHOD_GUARD: se,
316
+ NUMBER_MODE: R,
317
+ NUMBER_RE: D,
318
+ PHRASAL_WORDS_MODE: F,
319
+ QUOTE_STRING_MODE: P,
320
+ REGEXP_MODE: ie,
321
+ RE_STARTERS_RE: A,
322
+ SHEBANG: j,
323
+ TITLE_MODE: ae,
324
+ UNDERSCORE_IDENT_RE: E,
325
+ UNDERSCORE_TITLE_MODE: oe
330
326
  });
331
327
  function le(e, t) {
332
328
  e.input[e.index - 1] === "." && t.ignoreMatch();
@@ -511,7 +507,7 @@ var Ke = /* @__PURE__ */ r({
511
507
  return a(e, { variants: null }, t);
512
508
  })), e.cachedVariants ? e.cachedVariants : Ee(e) ? a(e, { starts: e.starts ? a(e.starts) : null }) : Object.isFrozen(e) ? a(e) : e;
513
509
  }
514
- var Oe = "11.8.0", ke = class extends Error {
510
+ var Oe = "11.12.0", ke = class extends Error {
515
511
  constructor(e, t) {
516
512
  super(e), this.name = "HTMLInjectionError", this.html = t;
517
513
  }
@@ -538,10 +534,10 @@ var Ke = /* @__PURE__ */ r({
538
534
  t += e.parentNode ? e.parentNode.className : "";
539
535
  let n = l.languageDetectRe.exec(t);
540
536
  if (n) {
541
- let t = P(n[1]);
537
+ let t = N(n[1]);
542
538
  return t || (ye(s.replace("{}", n[1])), ye("Falling back to no-highlight mode for this block.", e)), t ? n[1] : "no-highlight";
543
539
  }
544
- return t.split(/\s+/).find((e) => u(e) || P(e));
540
+ return t.split(/\s+/).find((e) => u(e) || N(e));
545
541
  }
546
542
  function p(e, t, n) {
547
543
  let r = "", i = "";
@@ -550,9 +546,9 @@ var Ke = /* @__PURE__ */ r({
550
546
  code: r,
551
547
  language: i
552
548
  };
553
- R("before:highlight", a);
549
+ te("before:highlight", a);
554
550
  let o = a.result ? a.result : v(a.language, a.code, n);
555
- return o.code = a.code, R("after:highlight", o), o;
551
+ return o.code = a.code, te("after:highlight", o), o;
556
552
  }
557
553
  function v(e, n, i, a) {
558
554
  let c = Object.create(null);
@@ -561,14 +557,14 @@ var Ke = /* @__PURE__ */ r({
561
557
  }
562
558
  function d() {
563
559
  if (!A.keywords) {
564
- M.addText(N);
560
+ M.addText(P);
565
561
  return;
566
562
  }
567
563
  let e = 0;
568
564
  A.keywordPatternRe.lastIndex = 0;
569
- let t = A.keywordPatternRe.exec(N), n = "";
565
+ let t = A.keywordPatternRe.exec(P), n = "";
570
566
  for (; t;) {
571
- n += N.substring(e, t.index);
567
+ n += P.substring(e, t.index);
572
568
  let r = D.case_insensitive ? t[0].toLowerCase() : t[0], i = u(A, r);
573
569
  if (i) {
574
570
  let [e, a] = i;
@@ -578,24 +574,24 @@ var Ke = /* @__PURE__ */ r({
578
574
  m(t[0], n);
579
575
  }
580
576
  } else n += t[0];
581
- e = A.keywordPatternRe.lastIndex, t = A.keywordPatternRe.exec(N);
577
+ e = A.keywordPatternRe.lastIndex, t = A.keywordPatternRe.exec(P);
582
578
  }
583
- n += N.substring(e), M.addText(n);
579
+ n += P.substring(e), M.addText(n);
584
580
  }
585
581
  function f() {
586
- if (N === "") return;
582
+ if (P === "") return;
587
583
  let e = null;
588
584
  if (typeof A.subLanguage == "string") {
589
585
  if (!t[A.subLanguage]) {
590
- M.addText(N);
586
+ M.addText(P);
591
587
  return;
592
588
  }
593
- e = v(A.subLanguage, N, !0, j[A.subLanguage]), j[A.subLanguage] = e._top;
594
- } else e = S(N, A.subLanguage.length ? A.subLanguage : null);
589
+ e = v(A.subLanguage, P, !0, j[A.subLanguage]), j[A.subLanguage] = e._top;
590
+ } else e = S(P, A.subLanguage.length ? A.subLanguage : null);
595
591
  A.relevance > 0 && (F += e.relevance), M.__addSublanguage(e._emitter, e.language);
596
592
  }
597
593
  function p() {
598
- A.subLanguage == null ? d() : f(), N = "";
594
+ A.subLanguage == null ? d() : f(), P = "";
599
595
  }
600
596
  function m(e, t) {
601
597
  e !== "" && (M.startScope(t), M.addText(e), M.endScope());
@@ -608,11 +604,11 @@ var Ke = /* @__PURE__ */ r({
608
604
  continue;
609
605
  }
610
606
  let r = D.classNameAliases[e[n]] || e[n], i = t[n];
611
- r ? m(i, r) : (N = i, d(), N = ""), n++;
607
+ r ? m(i, r) : (P = i, d(), P = ""), n++;
612
608
  }
613
609
  }
614
610
  function g(e, t) {
615
- return e.scope && typeof e.scope == "string" && M.openNode(D.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (m(N, D.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), N = "") : e.beginScope._multi && (h(e.beginScope, t), N = "")), A = Object.create(e, { parent: { value: A } }), A;
611
+ return e.scope && typeof e.scope == "string" && M.openNode(D.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (m(P, D.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), P = "") : e.beginScope._multi && (h(e.beginScope, t), P = "")), A = Object.create(e, { parent: { value: A } }), A;
616
612
  }
617
613
  function _(e, t, n) {
618
614
  let i = x(e.endRe, n);
@@ -629,18 +625,18 @@ var Ke = /* @__PURE__ */ r({
629
625
  if (e.endsWithParent) return _(e.parent, t, n);
630
626
  }
631
627
  function y(e) {
632
- return A.matcher.regexIndex === 0 ? (N += e[0], 1) : (L = !0, 0);
628
+ return A.matcher.regexIndex === 0 ? (P += e[0], 1) : (L = !0, 0);
633
629
  }
634
630
  function b(e) {
635
631
  let t = e[0], n = e.rule, i = new r(n), a = [n.__beforeBegin, n["on:begin"]];
636
632
  for (let n of a) if (n && (n(e, i), i.isMatchIgnored)) return y(t);
637
- return n.skip ? N += t : (n.excludeBegin && (N += t), p(), !n.returnBegin && !n.excludeBegin && (N = t)), g(n, e), n.returnBegin ? 0 : t.length;
633
+ return n.skip ? P += t : (n.excludeBegin && (P += t), p(), !n.returnBegin && !n.excludeBegin && (P = t)), g(n, e), n.returnBegin ? 0 : t.length;
638
634
  }
639
635
  function C(e) {
640
636
  let t = e[0], r = n.substring(e.index), i = _(A, e, r);
641
637
  if (!i) return Me;
642
638
  let a = A;
643
- A.endScope && A.endScope._wrap ? (p(), m(t, A.endScope._wrap)) : A.endScope && A.endScope._multi ? (p(), h(A.endScope, e)) : a.skip ? N += t : (a.returnEnd || a.excludeEnd || (N += t), p(), a.excludeEnd && (N = t));
639
+ A.endScope && A.endScope._wrap ? (p(), m(t, A.endScope._wrap)) : A.endScope && A.endScope._multi ? (p(), h(A.endScope, e)) : a.skip ? P += t : (a.returnEnd || a.excludeEnd || (P += t), p(), a.excludeEnd && (P = t));
644
640
  do
645
641
  A.scope && M.closeNode(), !A.skip && !A.subLanguage && (F += A.relevance), A = A.parent;
646
642
  while (A !== i.parent);
@@ -654,9 +650,9 @@ var Ke = /* @__PURE__ */ r({
654
650
  let T = {};
655
651
  function E(t, r) {
656
652
  let a = r && r[0];
657
- if (N += t, a == null) return p(), 0;
653
+ if (P += t, a == null) return p(), 0;
658
654
  if (T.type === "begin" && r.type === "end" && T.index === r.index && a === "") {
659
- if (N += n.slice(r.index, r.index + 1), !o) {
655
+ if (P += n.slice(r.index, r.index + 1), !o) {
660
656
  let t = /* @__PURE__ */ Error(`0 width match regex (${e})`);
661
657
  throw t.languageName = e, t.badRule = T.rule, t;
662
658
  }
@@ -670,15 +666,15 @@ var Ke = /* @__PURE__ */ r({
670
666
  let e = C(r);
671
667
  if (e !== Me) return e;
672
668
  }
673
- if (r.type === "illegal" && a === "") return 1;
669
+ if (r.type === "illegal" && a === "") return r.index === n.length || (P += "\n"), 1;
674
670
  if (I > 1e5 && I > r.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
675
- return N += a, a.length;
671
+ return P += a, a.length;
676
672
  }
677
- let D = P(e);
673
+ let D = N(e);
678
674
  if (!D) throw ve(s.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
679
675
  let O = Te(D), k = "", A = a || O, j = {}, M = new l.__emitter(l);
680
676
  w();
681
- let N = "", F = 0, ee = 0, I = 0, L = !1;
677
+ let P = "", F = 0, ee = 0, I = 0, L = !1;
682
678
  try {
683
679
  if (D.__emitTokens) D.__emitTokens(n, M);
684
680
  else {
@@ -738,13 +734,13 @@ var Ke = /* @__PURE__ */ r({
738
734
  }
739
735
  function S(e, n) {
740
736
  n = n || l.languages || Object.keys(t);
741
- let r = b(e), i = n.filter(P).filter(ee).map((t) => v(t, e, !1));
737
+ let r = b(e), i = n.filter(N).filter(F).map((t) => v(t, e, !1));
742
738
  i.unshift(r);
743
739
  let [a, o] = i.sort((e, t) => {
744
740
  if (e.relevance !== t.relevance) return t.relevance - e.relevance;
745
741
  if (e.language && t.language) {
746
- if (P(e.language).supersetOf === t.language) return 1;
747
- if (P(t.language).supersetOf === e.language) return -1;
742
+ if (N(e.language).supersetOf === t.language) return 1;
743
+ if (N(t.language).supersetOf === e.language) return -1;
748
744
  }
749
745
  return 0;
750
746
  }), s = a;
@@ -757,23 +753,27 @@ var Ke = /* @__PURE__ */ r({
757
753
  function w(e) {
758
754
  let t = null, n = d(e);
759
755
  if (u(n)) return;
760
- if (R("before:highlightElement", {
756
+ if (te("before:highlightElement", {
761
757
  el: e,
762
758
  language: n
763
- }), e.children.length > 0 && (l.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), l.throwUnescapedHTML)) throw new ke("One of your code blocks includes unescaped HTML.", e.innerHTML);
759
+ }), e.dataset.highlighted) {
760
+ console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
761
+ return;
762
+ }
763
+ if (e.children.length > 0 && (l.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), l.throwUnescapedHTML)) throw new ke("One of your code blocks includes unescaped HTML.", e.innerHTML);
764
764
  t = e;
765
765
  let r = t.textContent, i = n ? p(r, {
766
766
  language: n,
767
767
  ignoreIllegals: !0
768
768
  }) : S(r);
769
- e.innerHTML = i.value, C(e, n, i.language), e.result = {
769
+ e.innerHTML = i.value, e.dataset.highlighted = "yes", C(e, n, i.language), e.result = {
770
770
  language: i.language,
771
771
  re: i.relevance,
772
772
  relevance: i.relevance
773
773
  }, i.secondBest && (e.secondBest = {
774
774
  language: i.secondBest.language,
775
775
  relevance: i.secondBest.relevance
776
- }), R("after:highlightElement", {
776
+ }), te("after:highlightElement", {
777
777
  el: e,
778
778
  result: i,
779
779
  text: r
@@ -790,17 +790,16 @@ var Ke = /* @__PURE__ */ r({
790
790
  }
791
791
  let O = !1;
792
792
  function k() {
793
+ function e() {
794
+ k();
795
+ }
793
796
  if (document.readyState === "loading") {
794
- O = !0;
797
+ O || window.addEventListener("DOMContentLoaded", e, !1), O = !0;
795
798
  return;
796
799
  }
797
800
  document.querySelectorAll(l.cssSelector).forEach(w);
798
801
  }
799
- function A() {
800
- O && k();
801
- }
802
- typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", A, !1);
803
- function j(n, r) {
802
+ function A(n, r) {
804
803
  let i = null;
805
804
  try {
806
805
  i = r(e);
@@ -809,48 +808,48 @@ var Ke = /* @__PURE__ */ r({
809
808
  else throw e;
810
809
  i = c;
811
810
  }
812
- i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && F(i.aliases, { languageName: n });
811
+ i.name ||= n, t[n] = i, i.rawDefinition = r.bind(null, e), i.aliases && P(i.aliases, { languageName: n });
813
812
  }
814
- function M(e) {
813
+ function j(e) {
815
814
  delete t[e];
816
815
  for (let t of Object.keys(i)) i[t] === e && delete i[t];
817
816
  }
818
- function N() {
817
+ function M() {
819
818
  return Object.keys(t);
820
819
  }
821
- function P(e) {
820
+ function N(e) {
822
821
  return e = (e || "").toLowerCase(), t[e] || t[i[e]];
823
822
  }
824
- function F(e, { languageName: t }) {
823
+ function P(e, { languageName: t }) {
825
824
  typeof e == "string" && (e = [e]), e.forEach((e) => {
826
825
  i[e.toLowerCase()] = t;
827
826
  });
828
827
  }
829
- function ee(e) {
830
- let t = P(e);
828
+ function F(e) {
829
+ let t = N(e);
831
830
  return t && !t.disableAutodetect;
832
831
  }
833
- function I(e) {
832
+ function ee(e) {
834
833
  e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => {
835
834
  e["before:highlightBlock"](Object.assign({ block: t.el }, t));
836
835
  }), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => {
837
836
  e["after:highlightBlock"](Object.assign({ block: t.el }, t));
838
837
  });
839
838
  }
840
- function L(e) {
841
- I(e), a.push(e);
839
+ function I(e) {
840
+ ee(e), a.push(e);
842
841
  }
843
- function te(e) {
842
+ function L(e) {
844
843
  let t = a.indexOf(e);
845
844
  t !== -1 && a.splice(t, 1);
846
845
  }
847
- function R(e, t) {
846
+ function te(e, t) {
848
847
  let n = e;
849
848
  a.forEach(function(e) {
850
849
  e[n] && e[n](t);
851
850
  });
852
851
  }
853
- function ne(e) {
852
+ function R(e) {
854
853
  return be("10.7.0", "highlightBlock will be removed entirely in v12.0"), be("10.7.0", "Please use highlightElement now."), w(e);
855
854
  }
856
855
  Object.assign(e, {
@@ -858,19 +857,19 @@ var Ke = /* @__PURE__ */ r({
858
857
  highlightAuto: S,
859
858
  highlightAll: k,
860
859
  highlightElement: w,
861
- highlightBlock: ne,
860
+ highlightBlock: R,
862
861
  configure: T,
863
862
  initHighlighting: E,
864
863
  initHighlightingOnLoad: D,
865
- registerLanguage: j,
866
- unregisterLanguage: M,
867
- listLanguages: N,
868
- getLanguage: P,
869
- registerAliases: F,
870
- autoDetection: ee,
864
+ registerLanguage: A,
865
+ unregisterLanguage: j,
866
+ listLanguages: M,
867
+ getLanguage: N,
868
+ registerAliases: P,
869
+ autoDetection: F,
871
870
  inherit: je,
872
- addPlugin: L,
873
- removePlugin: te
871
+ addPlugin: I,
872
+ removePlugin: L
874
873
  }), e.debugMode = function() {
875
874
  o = !1;
876
875
  }, e.safeMode = function() {
@@ -888,7 +887,7 @@ var Ke = /* @__PURE__ */ r({
888
887
  Pe.newInstance = () => G({}), t.exports = Pe, Pe.HighlightJS = Pe, Pe.default = Pe;
889
888
  })))())).default;
890
889
  //#endregion
891
- //#region ../../../../node_modules/.pnpm/highlight.js@11.8.0/node_modules/highlight.js/es/languages/bash.js
890
+ //#region ../../../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/bash.js
892
891
  function eee(e) {
893
892
  let t = e.regex, n = {}, r = {
894
893
  begin: /\$\{/,
@@ -907,14 +906,17 @@ function eee(e) {
907
906
  begin: /\$\(/,
908
907
  end: /\)/,
909
908
  contains: [e.BACKSLASH_ESCAPE]
910
- }, a = {
909
+ }, a = e.inherit(e.COMMENT(), {
910
+ match: [/(^|\s)/, /#.*$/],
911
+ scope: { 2: "comment" }
912
+ }), o = {
911
913
  begin: /<<-?\s*(?=\w+)/,
912
914
  starts: { contains: [e.END_SAME_AS_BEGIN({
913
915
  begin: /(\w+)/,
914
916
  end: /(\w+)/,
915
917
  className: "string"
916
918
  })] }
917
- }, o = {
919
+ }, s = {
918
920
  className: "string",
919
921
  begin: /"/,
920
922
  end: /"/,
@@ -924,15 +926,12 @@ function eee(e) {
924
926
  i
925
927
  ]
926
928
  };
927
- i.contains.push(o);
928
- let s = {
929
- className: "",
930
- begin: /\\"/
931
- }, c = {
929
+ i.contains.push(s);
930
+ let c = { match: /\\"/ }, l = {
932
931
  className: "string",
933
932
  begin: /'/,
934
933
  end: /'/
935
- }, l = {
934
+ }, u = { match: /\\'/ }, d = {
936
935
  begin: /\$?\(\(/,
937
936
  end: /\)\)/,
938
937
  contains: [
@@ -943,7 +942,7 @@ function eee(e) {
943
942
  e.NUMBER_MODE,
944
943
  n
945
944
  ]
946
- }, u = e.SHEBANG({
945
+ }, f = e.SHEBANG({
947
946
  binary: `(${[
948
947
  "fish",
949
948
  "bash",
@@ -956,18 +955,19 @@ function eee(e) {
956
955
  "scsh"
957
956
  ].join("|")})`,
958
957
  relevance: 10
959
- }), d = {
958
+ }), p = {
960
959
  className: "function",
961
960
  begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
962
961
  returnBegin: !0,
963
962
  contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
964
963
  relevance: 0
965
- }, f = [
964
+ }, m = [
966
965
  "if",
967
966
  "then",
968
967
  "else",
969
968
  "elif",
970
969
  "fi",
970
+ "time",
971
971
  "for",
972
972
  "while",
973
973
  "until",
@@ -976,9 +976,10 @@ function eee(e) {
976
976
  "done",
977
977
  "case",
978
978
  "esac",
979
+ "coproc",
979
980
  "function",
980
981
  "select"
981
- ], p = ["true", "false"], m = { match: /(\/[a-z._-]+)+/ }, h = [
982
+ ], h = ["true", "false"], g = { match: /(\/[a-z._-]+)+/ }, _ = [
982
983
  "break",
983
984
  "cd",
984
985
  "continue",
@@ -997,7 +998,7 @@ function eee(e) {
997
998
  "trap",
998
999
  "umask",
999
1000
  "unset"
1000
- ], g = [
1001
+ ], v = [
1001
1002
  "alias",
1002
1003
  "bind",
1003
1004
  "builtin",
@@ -1015,45 +1016,47 @@ function eee(e) {
1015
1016
  "read",
1016
1017
  "readarray",
1017
1018
  "source",
1019
+ "sudo",
1018
1020
  "type",
1019
1021
  "typeset",
1020
1022
  "ulimit",
1021
1023
  "unalias"
1022
- ], _ = /* @__PURE__ */ "autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp".split("."), v = /* @__PURE__ */ "chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes".split(".");
1024
+ ], y = /* @__PURE__ */ "autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp".split("."), b = /* @__PURE__ */ "chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes".split(".");
1023
1025
  return {
1024
1026
  name: "Bash",
1025
- aliases: ["sh"],
1027
+ aliases: ["sh", "zsh"],
1026
1028
  keywords: {
1027
1029
  $pattern: /\b[a-z][a-z0-9._-]+\b/,
1028
- keyword: f,
1029
- literal: p,
1030
+ keyword: m,
1031
+ literal: h,
1030
1032
  built_in: [
1031
- ...h,
1032
- ...g,
1033
+ ..._,
1034
+ ...v,
1033
1035
  "set",
1034
1036
  "shopt",
1035
- ..._,
1036
- ...v
1037
+ ...y,
1038
+ ...b
1037
1039
  ]
1038
1040
  },
1039
1041
  contains: [
1040
- u,
1042
+ f,
1041
1043
  e.SHEBANG(),
1044
+ p,
1042
1045
  d,
1043
- l,
1044
- e.HASH_COMMENT_MODE,
1045
1046
  a,
1046
- m,
1047
1047
  o,
1048
+ g,
1048
1049
  s,
1049
1050
  c,
1051
+ l,
1052
+ u,
1050
1053
  n
1051
1054
  ]
1052
1055
  };
1053
1056
  }
1054
1057
  //#endregion
1055
- //#region ../../../../node_modules/.pnpm/highlight.js@11.8.0/node_modules/highlight.js/es/languages/javascript.js
1056
- var Je = "[A-Za-z$_][0-9A-Za-z$_]*", tee = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), nee = [
1058
+ //#region ../../../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/javascript.js
1059
+ var Je = "[A-Za-z$_][0-9A-Za-z$_]*", tee = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), nee = [
1057
1060
  "true",
1058
1061
  "false",
1059
1062
  "null",
@@ -1097,6 +1100,7 @@ var Je = "[A-Za-z$_][0-9A-Za-z$_]*", tee = /* @__PURE__ */ "as.in.of.if.for.whil
1097
1100
  "localStorage",
1098
1101
  "sessionStorage",
1099
1102
  "module",
1103
+ "self",
1100
1104
  "global"
1101
1105
  ], iee = [].concat(Ze, Ye, Xe);
1102
1106
  function Qe(e) {
@@ -1151,7 +1155,7 @@ function Qe(e) {
1151
1155
  keywords: s,
1152
1156
  contains: []
1153
1157
  }, p = {
1154
- begin: "html`",
1158
+ begin: ".?html`",
1155
1159
  end: "",
1156
1160
  starts: {
1157
1161
  end: "`",
@@ -1160,7 +1164,7 @@ function Qe(e) {
1160
1164
  subLanguage: "xml"
1161
1165
  }
1162
1166
  }, m = {
1163
- begin: "css`",
1167
+ begin: ".?css`",
1164
1168
  end: "",
1165
1169
  starts: {
1166
1170
  end: "`",
@@ -1169,7 +1173,7 @@ function Qe(e) {
1169
1173
  subLanguage: "css"
1170
1174
  }
1171
1175
  }, h = {
1172
- begin: "gql`",
1176
+ begin: ".?gql`",
1173
1177
  end: "",
1174
1178
  starts: {
1175
1179
  end: "`",
@@ -1236,13 +1240,13 @@ function Qe(e) {
1236
1240
  contains: ["self"].concat(v)
1237
1241
  });
1238
1242
  let y = [].concat(_, f.contains), b = y.concat([{
1239
- begin: /\(/,
1243
+ begin: /(\s*)\(/,
1240
1244
  end: /\)/,
1241
1245
  keywords: s,
1242
1246
  contains: ["self"].concat(y)
1243
1247
  }]), x = {
1244
1248
  className: "params",
1245
- begin: /\(/,
1249
+ begin: /(\s*)\(/,
1246
1250
  end: /\)/,
1247
1251
  excludeBegin: !0,
1248
1252
  excludeEnd: !0,
@@ -1310,8 +1314,9 @@ function Qe(e) {
1310
1314
  match: t.concat(/\b/, D([
1311
1315
  ...Ze,
1312
1316
  "super",
1313
- "import"
1314
- ]), r, t.lookahead(/\(/)),
1317
+ "import",
1318
+ "await"
1319
+ ].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
1315
1320
  className: "title.function",
1316
1321
  relevance: 0
1317
1322
  }, k = {
@@ -1363,7 +1368,7 @@ function Qe(e) {
1363
1368
  PARAMS_CONTAINS: b,
1364
1369
  CLASS_REFERENCE: C
1365
1370
  },
1366
- illegal: /#(?![$_A-z])/,
1371
+ illegal: /#(?![$_A-Za-z])/,
1367
1372
  contains: [
1368
1373
  e.SHEBANG({
1369
1374
  label: "shebang",
@@ -1382,8 +1387,8 @@ function Qe(e) {
1382
1387
  d,
1383
1388
  C,
1384
1389
  {
1385
- className: "attr",
1386
- begin: r + t.lookahead(":"),
1390
+ scope: "attr",
1391
+ match: r + t.lookahead(":"),
1387
1392
  relevance: 0
1388
1393
  },
1389
1394
  M,
@@ -1412,7 +1417,7 @@ function Qe(e) {
1412
1417
  skip: !0
1413
1418
  },
1414
1419
  {
1415
- begin: /\(/,
1420
+ begin: /(\s*)\(/,
1416
1421
  end: /\)/,
1417
1422
  excludeBegin: !0,
1418
1423
  excludeEnd: !0,
@@ -1487,12 +1492,12 @@ function Qe(e) {
1487
1492
  };
1488
1493
  }
1489
1494
  //#endregion
1490
- //#region ../../../../node_modules/.pnpm/highlight.js@11.8.0/node_modules/highlight.js/es/languages/python.js
1495
+ //#region ../../../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/python.js
1491
1496
  function aee(e) {
1492
- let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
1497
+ let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.lazy.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
1493
1498
  $pattern: /[A-Za-z]\w+|__\w+__/,
1494
1499
  keyword: r,
1495
- built_in: /* @__PURE__ */ "__import__.abs.all.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
1500
+ built_in: /* @__PURE__ */ "__import__.abs.aiter.all.anext.any.ascii.bin.bool.breakpoint.bytearray.bytes.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.exec.filter.float.format.frozendict.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.print.property.range.repr.reversed.round.sentinel.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip".split("."),
1496
1501
  literal: [
1497
1502
  "__debug__",
1498
1503
  "Ellipsis",
@@ -1545,7 +1550,7 @@ function aee(e) {
1545
1550
  relevance: 10
1546
1551
  },
1547
1552
  {
1548
- begin: /([fF][rR]|[rR][fF]|[fF])'''/,
1553
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'''/,
1549
1554
  end: /'''/,
1550
1555
  contains: [
1551
1556
  e.BACKSLASH_ESCAPE,
@@ -1555,7 +1560,7 @@ function aee(e) {
1555
1560
  ]
1556
1561
  },
1557
1562
  {
1558
- begin: /([fF][rR]|[rR][fF]|[fF])"""/,
1563
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"""/,
1559
1564
  end: /"""/,
1560
1565
  contains: [
1561
1566
  e.BACKSLASH_ESCAPE,
@@ -1583,7 +1588,7 @@ function aee(e) {
1583
1588
  end: /"/
1584
1589
  },
1585
1590
  {
1586
- begin: /([fF][rR]|[rR][fF]|[fF])'/,
1591
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])'/,
1587
1592
  end: /'/,
1588
1593
  contains: [
1589
1594
  e.BACKSLASH_ESCAPE,
@@ -1592,7 +1597,7 @@ function aee(e) {
1592
1597
  ]
1593
1598
  },
1594
1599
  {
1595
- begin: /([fF][rR]|[rR][fF]|[fF])"/,
1600
+ begin: /([fFtT][rR]|[rR][fFtT]|[fFtT])"/,
1596
1601
  end: /"/,
1597
1602
  contains: [
1598
1603
  e.BACKSLASH_ESCAPE,
@@ -1663,11 +1668,18 @@ function aee(e) {
1663
1668
  contains: [
1664
1669
  a,
1665
1670
  f,
1666
- { begin: /\bself\b/ },
1671
+ {
1672
+ scope: "variable.language",
1673
+ match: /\bself\b/
1674
+ },
1667
1675
  {
1668
1676
  beginKeywords: "if",
1669
1677
  relevance: 0
1670
1678
  },
1679
+ {
1680
+ match: /\bor\b/,
1681
+ scope: "keyword"
1682
+ },
1671
1683
  c,
1672
1684
  p,
1673
1685
  e.HASH_COMMENT_MODE,
@@ -1717,8 +1729,8 @@ function aee(e) {
1717
1729
  };
1718
1730
  }
1719
1731
  //#endregion
1720
- //#region ../../../../node_modules/.pnpm/highlight.js@11.8.0/node_modules/highlight.js/es/languages/typescript.js
1721
- var $e = "[A-Za-z$_][0-9A-Za-z$_]*", et = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends".split("."), tt = [
1732
+ //#region ../../../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/typescript.js
1733
+ var $e = "[A-Za-z$_][0-9A-Za-z$_]*", et = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), tt = [
1722
1734
  "true",
1723
1735
  "false",
1724
1736
  "null",
@@ -1762,6 +1774,7 @@ var $e = "[A-Za-z$_][0-9A-Za-z$_]*", et = /* @__PURE__ */ "as.in.of.if.for.while
1762
1774
  "localStorage",
1763
1775
  "sessionStorage",
1764
1776
  "module",
1777
+ "self",
1765
1778
  "global"
1766
1779
  ], ot = [].concat(it, nt, rt);
1767
1780
  function oee(e) {
@@ -1816,7 +1829,7 @@ function oee(e) {
1816
1829
  keywords: s,
1817
1830
  contains: []
1818
1831
  }, p = {
1819
- begin: "html`",
1832
+ begin: ".?html`",
1820
1833
  end: "",
1821
1834
  starts: {
1822
1835
  end: "`",
@@ -1825,7 +1838,7 @@ function oee(e) {
1825
1838
  subLanguage: "xml"
1826
1839
  }
1827
1840
  }, m = {
1828
- begin: "css`",
1841
+ begin: ".?css`",
1829
1842
  end: "",
1830
1843
  starts: {
1831
1844
  end: "`",
@@ -1834,7 +1847,7 @@ function oee(e) {
1834
1847
  subLanguage: "css"
1835
1848
  }
1836
1849
  }, h = {
1837
- begin: "gql`",
1850
+ begin: ".?gql`",
1838
1851
  end: "",
1839
1852
  starts: {
1840
1853
  end: "`",
@@ -1901,13 +1914,13 @@ function oee(e) {
1901
1914
  contains: ["self"].concat(v)
1902
1915
  });
1903
1916
  let y = [].concat(_, f.contains), b = y.concat([{
1904
- begin: /\(/,
1917
+ begin: /(\s*)\(/,
1905
1918
  end: /\)/,
1906
1919
  keywords: s,
1907
1920
  contains: ["self"].concat(y)
1908
1921
  }]), x = {
1909
1922
  className: "params",
1910
- begin: /\(/,
1923
+ begin: /(\s*)\(/,
1911
1924
  end: /\)/,
1912
1925
  excludeBegin: !0,
1913
1926
  excludeEnd: !0,
@@ -1975,8 +1988,9 @@ function oee(e) {
1975
1988
  match: t.concat(/\b/, D([
1976
1989
  ...it,
1977
1990
  "super",
1978
- "import"
1979
- ]), r, t.lookahead(/\(/)),
1991
+ "import",
1992
+ "await"
1993
+ ].map((e) => `${e}\\s*\\(`)), r, t.lookahead(/\s*\(/)),
1980
1994
  className: "title.function",
1981
1995
  relevance: 0
1982
1996
  }, k = {
@@ -2028,7 +2042,7 @@ function oee(e) {
2028
2042
  PARAMS_CONTAINS: b,
2029
2043
  CLASS_REFERENCE: C
2030
2044
  },
2031
- illegal: /#(?![$_A-z])/,
2045
+ illegal: /#(?![$_A-Za-z])/,
2032
2046
  contains: [
2033
2047
  e.SHEBANG({
2034
2048
  label: "shebang",
@@ -2047,8 +2061,8 @@ function oee(e) {
2047
2061
  d,
2048
2062
  C,
2049
2063
  {
2050
- className: "attr",
2051
- begin: r + t.lookahead(":"),
2064
+ scope: "attr",
2065
+ match: r + t.lookahead(":"),
2052
2066
  relevance: 0
2053
2067
  },
2054
2068
  M,
@@ -2077,7 +2091,7 @@ function oee(e) {
2077
2091
  skip: !0
2078
2092
  },
2079
2093
  {
2080
- begin: /\(/,
2094
+ begin: /(\s*)\(/,
2081
2095
  end: /\)/,
2082
2096
  excludeBegin: !0,
2083
2097
  excludeEnd: !0,
@@ -2152,7 +2166,7 @@ function oee(e) {
2152
2166
  };
2153
2167
  }
2154
2168
  function see(e) {
2155
- let t = oee(e), n = $e, r = [
2169
+ let t = e.regex, n = oee(e), r = $e, i = [
2156
2170
  "any",
2157
2171
  "void",
2158
2172
  "number",
@@ -2163,29 +2177,33 @@ function see(e) {
2163
2177
  "symbol",
2164
2178
  "bigint",
2165
2179
  "unknown"
2166
- ], i = {
2167
- beginKeywords: "namespace",
2168
- end: /\{/,
2169
- excludeEnd: !0,
2170
- contains: [t.exports.CLASS_REFERENCE]
2171
- }, a = {
2180
+ ], a = {
2181
+ begin: [
2182
+ /namespace/,
2183
+ /\s+/,
2184
+ e.IDENT_RE
2185
+ ],
2186
+ beginScope: {
2187
+ 1: "keyword",
2188
+ 3: "title.class"
2189
+ }
2190
+ }, o = {
2172
2191
  beginKeywords: "interface",
2173
2192
  end: /\{/,
2174
2193
  excludeEnd: !0,
2175
2194
  keywords: {
2176
2195
  keyword: "interface extends",
2177
- built_in: r
2196
+ built_in: i
2178
2197
  },
2179
- contains: [t.exports.CLASS_REFERENCE]
2180
- }, o = {
2198
+ contains: [n.exports.CLASS_REFERENCE]
2199
+ }, s = {
2181
2200
  className: "meta",
2182
2201
  relevance: 10,
2183
2202
  begin: /^\s*['"]use strict['"]/
2184
- }, s = {
2203
+ }, c = {
2185
2204
  $pattern: $e,
2186
2205
  keyword: et.concat([
2187
2206
  "type",
2188
- "namespace",
2189
2207
  "interface",
2190
2208
  "public",
2191
2209
  "private",
@@ -2195,26 +2213,34 @@ function see(e) {
2195
2213
  "abstract",
2196
2214
  "readonly",
2197
2215
  "enum",
2198
- "override"
2216
+ "override",
2217
+ "satisfies"
2199
2218
  ]),
2200
2219
  literal: tt,
2201
- built_in: ot.concat(r),
2220
+ built_in: ot.concat(i),
2202
2221
  "variable.language": at
2203
- }, c = {
2222
+ }, l = {
2204
2223
  className: "meta",
2205
- begin: "@" + n
2206
- }, l = (e, t, n) => {
2224
+ begin: "@" + r
2225
+ }, u = (e, t, n) => {
2207
2226
  let r = e.contains.findIndex((e) => e.label === t);
2208
2227
  if (r === -1) throw Error("can not find mode to replace");
2209
2228
  e.contains.splice(r, 1, n);
2210
2229
  };
2211
- Object.assign(t.keywords, s), t.exports.PARAMS_CONTAINS.push(c), t.contains = t.contains.concat([
2212
- c,
2213
- i,
2214
- a
2215
- ]), l(t, "shebang", e.SHEBANG()), l(t, "use_strict", o);
2216
- let u = t.contains.find((e) => e.label === "func.def");
2217
- return u.relevance = 0, Object.assign(t, {
2230
+ Object.assign(n.keywords, c), n.exports.PARAMS_CONTAINS.push(l);
2231
+ let d = n.contains.find((e) => e.scope === "attr"), f = Object.assign({}, d, { match: t.concat(r, t.lookahead(/\s*\?:/)) });
2232
+ n.exports.PARAMS_CONTAINS.push([
2233
+ n.exports.CLASS_REFERENCE,
2234
+ d,
2235
+ f
2236
+ ]), n.contains = n.contains.concat([
2237
+ l,
2238
+ a,
2239
+ o,
2240
+ f
2241
+ ]), u(n, "shebang", e.SHEBANG()), u(n, "use_strict", s);
2242
+ let p = n.contains.find((e) => e.label === "func.def");
2243
+ return p.relevance = 0, Object.assign(n, {
2218
2244
  name: "TypeScript",
2219
2245
  aliases: [
2220
2246
  "ts",
@@ -2222,10 +2248,10 @@ function see(e) {
2222
2248
  "mts",
2223
2249
  "cts"
2224
2250
  ]
2225
- }), t;
2251
+ }), n;
2226
2252
  }
2227
2253
  //#endregion
2228
- //#region ../../../../node_modules/.pnpm/highlight.js@11.8.0/node_modules/highlight.js/es/languages/xml.js
2254
+ //#region ../../../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/xml.js
2229
2255
  function st(e) {
2230
2256
  let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = {
2231
2257
  className: "symbol",
@@ -2339,7 +2365,7 @@ function st(e) {
2339
2365
  starts: {
2340
2366
  end: /<\/style>/,
2341
2367
  returnEnd: !0,
2342
- subLanguage: ["css", "xml"]
2368
+ subLanguage: "css"
2343
2369
  }
2344
2370
  },
2345
2371
  {
@@ -2351,11 +2377,7 @@ function st(e) {
2351
2377
  starts: {
2352
2378
  end: /<\/script>/,
2353
2379
  returnEnd: !0,
2354
- subLanguage: [
2355
- "javascript",
2356
- "handlebars",
2357
- "xml"
2358
- ]
2380
+ subLanguage: "javascript"
2359
2381
  }
2360
2382
  },
2361
2383
  {
@@ -8094,7 +8116,7 @@ var cee = /* @__PURE__ */ v(((e, t) => {
8094
8116
  t.src_Cc
8095
8117
  ].join("|"), t.src_ZCc = [t.src_Z, t.src_Cc].join("|");
8096
8118
  let r = "[><|]";
8097
- return t.src_pseudo_letter = "(?:(?!" + r + "|" + t.src_ZPCc + ")" + t.src_Any + ")", t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = "(?:(?:(?!" + t.src_ZCc + "|[@/\\[\\]()]).)+@)?", t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = "(?=$|" + r + "|" + t.src_ZPCc + ")(?!" + (e["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + t.src_ZPCc + "))", t.src_path = "(?:[/?#](?:(?!" + t.src_ZCc + "|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!" + t.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + t.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + t.src_ZCc + "|[}]).)*\\}|\\\"(?:(?!" + t.src_ZCc + "|[\"]).)+\\\"|\\'(?:(?!" + t.src_ZCc + "|[']).)+\\'|\\'(?=" + t.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + t.src_ZCc + "|[.]|$)|" + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + ",(?!" + t.src_ZCc + "|$)|;(?!" + t.src_ZCc + "|$)|\\!+(?!" + t.src_ZCc + "|[!]|$)|\\?(?!" + t.src_ZCc + "|[?]|$))+|\\/)?", t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]*", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + "|" + t.src_pseudo_letter + "{1,63})", t.src_domain = "(?:" + t.src_xn + "|(?:" + t.src_pseudo_letter + ")|(?:" + t.src_pseudo_letter + "(?:-|" + t.src_pseudo_letter + "){0,61}" + t.src_pseudo_letter + "))", t.src_host = "(?:(?:(?:(?:" + t.src_domain + ")\\.)*" + t.src_domain + "))", t.tpl_host_fuzzy = "(?:" + t.src_ip4 + "|(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%)))", t.tpl_host_no_ip_fuzzy = "(?:(?:(?:" + t.src_domain + ")\\.)+(?:%TLDS%))", t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = "localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:" + t.src_ZPCc + "|>|$))", t.tpl_email_fuzzy = "(^|" + r + "|\"|\\(|" + t.src_ZCc + ")(" + t.src_email_name + "@" + t.tpl_host_fuzzy_strict + ")", t.tpl_link_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_fuzzy_strict + t.src_path + ")", t.tpl_link_no_ip_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + t.src_ZPCc + "))((?![$+<=>^`||])" + t.tpl_host_port_no_ip_fuzzy_strict + t.src_path + ")", t;
8119
+ return t.src_pseudo_letter = `(?:(?!${r}|${t.src_ZPCc})${t.src_Any})`, t.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", t.src_auth = `(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`, t.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", t.src_host_terminator = `(?=$|${r}|${t.src_ZPCc})(?!${e["---"] ? "-(?!--)|" : "-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`, t.src_path = `(?:[/?#](?:(?!${t.src_ZCc}|${r}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|` + (e["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + `,(?!${t.src_ZCc}|$)|;(?!${t.src_ZCc}|$)|\\!+(?!${t.src_ZCc}|[!]|$)|\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`, t.src_email_name = "[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\\"\\.a-zA-Z0-9_]{0,63}", t.src_xn = "xn--[a-z0-9\\-]{1,59}", t.src_domain_root = "(?:" + t.src_xn + `|${t.src_pseudo_letter}{1,63})`, t.src_domain = "(?:" + t.src_xn + `|(?:${t.src_pseudo_letter})|(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`, t.src_host = `(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`, t.tpl_host_fuzzy = "(?:" + t.src_ip4 + `|(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`, t.tpl_host_no_ip_fuzzy = `(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`, t.src_host_strict = t.src_host + t.src_host_terminator, t.tpl_host_fuzzy_strict = t.tpl_host_fuzzy + t.src_host_terminator, t.src_host_port_strict = t.src_host + t.src_port + t.src_host_terminator, t.tpl_host_port_fuzzy_strict = t.tpl_host_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_port_no_ip_fuzzy_strict = t.tpl_host_no_ip_fuzzy + t.src_port + t.src_host_terminator, t.tpl_host_fuzzy_test = `localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`, t.tpl_email_fuzzy = `(^|${r}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`, t.tpl_link_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_fuzzy_strict}${t.src_path})`, t.tpl_link_no_ip_fuzzy = `(^|(?![.:/\\-_@])(?:[$+<=>^\`|\uff5c]|${t.src_ZPCc}))((?![$+<=>^\`|\uff5c])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`, t;
8098
8120
  }
8099
8121
  function i(e) {
8100
8122
  return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
@@ -8134,17 +8156,17 @@ var cee = /* @__PURE__ */ v(((e, t) => {
8134
8156
  var p = {
8135
8157
  "http:": { validate: function(e, t, n) {
8136
8158
  let r = e.slice(t);
8137
- return n.re.http || (n.re.http = RegExp("^\\/\\/" + n.re.src_auth + n.re.src_host_port_strict + n.re.src_path, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
8159
+ return n.re.http || (n.re.http = RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`, "i")), n.re.http.test(r) ? r.match(n.re.http)[0].length : 0;
8138
8160
  } },
8139
8161
  "https:": "http:",
8140
8162
  "ftp:": "http:",
8141
8163
  "//": { validate: function(e, t, n) {
8142
8164
  let r = e.slice(t);
8143
- return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth + "(?:localhost|(?:(?:" + n.re.src_domain + ")\\.)+" + n.re.src_domain_root + ")" + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? t >= 3 && e[t - 3] === ":" || t >= 3 && e[t - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
8165
+ return n.re.no_http || (n.re.no_http = RegExp("^" + n.re.src_auth + `(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})` + n.re.src_port + n.re.src_host_terminator + n.re.src_path, "i")), n.re.no_http.test(r) ? t >= 3 && e[t - 3] === ":" || t >= 3 && e[t - 3] === "/" ? 0 : r.match(n.re.no_http)[0].length : 0;
8144
8166
  } },
8145
8167
  "mailto:": { validate: function(e, t, n) {
8146
8168
  let r = e.slice(t);
8147
- return n.re.mailto || (n.re.mailto = RegExp("^" + n.re.src_email_name + "@" + n.re.src_host_strict, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
8169
+ return n.re.mailto || (n.re.mailto = RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`, "i")), n.re.mailto.test(r) ? r.match(n.re.mailto)[0].length : 0;
8148
8170
  } }
8149
8171
  }, m = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", h = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
8150
8172
  function g(e) {
@@ -8168,7 +8190,7 @@ var cee = /* @__PURE__ */ v(((e, t) => {
8168
8190
  let a = [];
8169
8191
  e.__compiled__ = {};
8170
8192
  function d(e, t) {
8171
- throw Error("(LinkifyIt) Invalid schema \"" + e + "\": " + t);
8193
+ throw Error(`(LinkifyIt) Invalid schema "${e}": ${t}`);
8172
8194
  }
8173
8195
  Object.keys(e.__schemas__).forEach(function(t) {
8174
8196
  let n = e.__schemas__[t];
@@ -8195,7 +8217,7 @@ var cee = /* @__PURE__ */ v(((e, t) => {
8195
8217
  let f = Object.keys(e.__compiled__).filter(function(t) {
8196
8218
  return t.length > 0 && e.__compiled__[t];
8197
8219
  }).map(u).join("|");
8198
- e.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + f + ")", "i"), e.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + t.src_ZPCc + "))(" + f + ")", "ig"), e.re.schema_at_start = RegExp("^" + e.re.schema_search.source, "i"), e.re.pretest = RegExp("(" + e.re.schema_test.source + ")|(" + e.re.host_fuzzy_test.source + ")|@", "i");
8220
+ e.re.schema_test = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${f})`, "i"), e.re.schema_search = RegExp(`(^|(?!_)(?:[><\uff5c]|${t.src_ZPCc}))(${f})`, "ig"), e.re.schema_at_start = RegExp(`^${e.re.schema_search.source}`, "i"), e.re.pretest = RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`, "i");
8199
8221
  }
8200
8222
  function y(e, t, n, r) {
8201
8223
  let i = e.slice(n, r);
@@ -8271,7 +8293,7 @@ var cee = /* @__PURE__ */ v(((e, t) => {
8271
8293
  return e !== n[t - 1];
8272
8294
  }).reverse(), v(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, v(this), this);
8273
8295
  }, b.prototype.normalize = function(e) {
8274
- e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
8296
+ e.schema || (e.url = `http://${e.url}`), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = `mailto:${e.url}`);
8275
8297
  }, b.prototype.onCompile = function() {}, t.exports = b;
8276
8298
  })), ute = /* @__PURE__ */ v(((e, t) => {
8277
8299
  (function(n) {
@@ -17972,11 +17994,11 @@ var Hc = /* @__PURE__ */ v(((e) => {
17972
17994
  };
17973
17995
  t.exports = i, i.default = i;
17974
17996
  })), cl = /* @__PURE__ */ v(((e, t) => {
17975
- var n = /(<)(\/?style\b)/gi, r = /(<)(!--)/g;
17976
- function i(e) {
17997
+ var n = /(<)(\/?style\b)/gi, r = /(<)(!--)/g, i = /[\t\n\f\r "#'()/;[\\\]{}]/;
17998
+ function a(e) {
17977
17999
  return typeof e != "string" || !e.includes("<") ? e : e.replace(n, "\\3c $2").replace(r, "\\3c $2");
17978
18000
  }
17979
- var a = {
18001
+ var o = {
17980
18002
  after: "\n",
17981
18003
  beforeClose: "\n",
17982
18004
  beforeComment: "\n",
@@ -17990,19 +18012,45 @@ var Hc = /* @__PURE__ */ v(((e) => {
17990
18012
  indent: " ",
17991
18013
  semicolon: !1
17992
18014
  };
17993
- function o(e) {
18015
+ function s(e) {
17994
18016
  return e[0].toUpperCase() + e.slice(1);
17995
18017
  }
17996
- var s = class {
18018
+ function c(e, t) {
18019
+ let n = "@" + t.name, r = t.params ? e.rawValue(t, "params") : "", a = t.raws.afterName;
18020
+ return a === void 0 ? a = r ? " " : "" : a === "" && r && !i.test(r[0]) && (a = " "), n + a + r;
18021
+ }
18022
+ function l(e, t, n) {
18023
+ let r = n.nodes, i = r.length - 1;
18024
+ for (; i > 0 && r[i].type === "comment";) --i;
18025
+ let a = e.raw(n, "semicolon"), o = n.type === "document";
18026
+ for (let e = r.length - 1; e >= 0; e--) {
18027
+ let n = r[e], s = i !== e || a;
18028
+ !s && e < r.length - 1 && (n.type === "atrule" && !n.nodes || n.type === "decl" && n.prop.startsWith("--")) && (s = !0), t.push({
18029
+ document: o,
18030
+ node: n,
18031
+ semicolon: s
18032
+ });
18033
+ }
18034
+ }
18035
+ function u(e, t, n, r) {
18036
+ let i = e.raw(n, "between", "beforeOpen");
18037
+ e.builder(a(r + i) + "{", n, "start");
18038
+ let o = n.nodes && n.nodes.length, s = () => {
18039
+ let t = o ? e.raw(n, "after") : e.raw(n, "after", "emptyBody");
18040
+ t && e.builder(a(t)), e.builder("}", n, "end"), n.type === "rule" && n.raws.ownSemicolon && e.builder(a(n.raws.ownSemicolon), n, "end");
18041
+ };
18042
+ o ? (t.push(s), l(e, t, n)) : s();
18043
+ }
18044
+ var d = class e {
17997
18045
  constructor(e) {
17998
18046
  this.builder = e;
17999
18047
  }
18000
18048
  atrule(e, t) {
18001
- let n = "@" + e.name, r = e.params ? this.rawValue(e, "params") : "";
18002
- if (e.raws.afterName === void 0 ? r && (n += " ") : n += e.raws.afterName, e.nodes) this.block(e, n + r);
18049
+ let n = c(this, e);
18050
+ if (e.nodes) this.block(e, n);
18003
18051
  else {
18004
- let a = (e.raws.between || "") + (t ? ";" : "");
18005
- this.builder(i(n + r + a), e);
18052
+ let r = (e.raws.between || "") + (t ? ";" : "");
18053
+ this.builder(a(n + r), e);
18006
18054
  }
18007
18055
  }
18008
18056
  beforeAfter(e, t) {
@@ -18018,26 +18066,35 @@ var Hc = /* @__PURE__ */ v(((e) => {
18018
18066
  }
18019
18067
  block(e, t) {
18020
18068
  let n = this.raw(e, "between", "beforeOpen");
18021
- this.builder(i(t + n) + "{", e, "start");
18069
+ this.builder(a(t + n) + "{", e, "start");
18022
18070
  let r;
18023
- e.nodes && e.nodes.length ? (this.body(e), r = this.raw(e, "after")) : r = this.raw(e, "after", "emptyBody"), r && this.builder(i(r)), this.builder("}", e, "end");
18071
+ e.nodes && e.nodes.length ? (this.body(e), r = this.raw(e, "after")) : r = this.raw(e, "after", "emptyBody"), r && this.builder(a(r)), this.builder("}", e, "end");
18024
18072
  }
18025
- body(e) {
18026
- let t = e.nodes.length - 1;
18027
- for (; t > 0 && e.nodes[t].type === "comment";) --t;
18028
- let n = this.raw(e, "semicolon"), r = e.type === "document";
18029
- for (let a = 0; a < e.nodes.length; a++) {
18030
- let o = e.nodes[a], s = this.raw(o, "before");
18031
- s && this.builder(r ? s : i(s)), this.stringify(o, t !== a || n);
18073
+ body(t) {
18074
+ let n = e.prototype, r = [
18075
+ "atrule",
18076
+ "block",
18077
+ "body",
18078
+ "rule",
18079
+ "stringify"
18080
+ ].every((e) => this[e] === n[e]), i = [];
18081
+ for (l(this, i, t); i.length > 0;) {
18082
+ let e = i.pop();
18083
+ if (typeof e == "function") {
18084
+ e();
18085
+ continue;
18086
+ }
18087
+ let t = e.node, n = this.raw(t, "before");
18088
+ n && this.builder(e.document ? n : a(n)), r && t.type === "rule" ? u(this, i, t, this.rawValue(t, "selector")) : r && t.type === "atrule" && t.nodes ? u(this, i, t, c(this, t)) : this.stringify(t, e.semicolon);
18032
18089
  }
18033
18090
  }
18034
18091
  comment(e) {
18035
18092
  let t = this.raw(e, "left", "commentLeft"), n = this.raw(e, "right", "commentRight");
18036
- this.builder(i("/*" + t + e.text + n + "*/"), e);
18093
+ this.builder(a("/*" + t + e.text + n + "*/"), e);
18037
18094
  }
18038
18095
  decl(e, t) {
18039
- let n = this.raw(e, "between", "colon"), r = e.prop + n + this.rawValue(e, "value");
18040
- e.important && (r += e.raws.important || " !important"), t && (r += ";"), this.builder(i(r), e);
18096
+ let n = e.raws, r = this.raw(e, "between", "colon"), i = e.prop + r + this.rawValue(e, "value");
18097
+ e.important && (i += n.important || " !important"), t && (i += ";"), this.builder(a(i), e);
18041
18098
  }
18042
18099
  document(e) {
18043
18100
  this.body(e);
@@ -18047,17 +18104,17 @@ var Hc = /* @__PURE__ */ v(((e) => {
18047
18104
  if (n ||= t, t && (r = e.raws[t], r !== void 0)) return r;
18048
18105
  let i = e.parent;
18049
18106
  if (n === "before" && (!i || i.type === "root" && i.first === e || i && i.type === "document")) return "";
18050
- if (!i) return a[n];
18051
- let s = e.root();
18052
- if (s.rawCache ||= {}, s.rawCache[n] !== void 0) return s.rawCache[n];
18107
+ if (!i) return o[n];
18108
+ let a = e.root(), c = a.rawCache ||= {};
18109
+ if (c[n] !== void 0) return c[n];
18053
18110
  if (n === "before" || n === "after") return this.beforeAfter(e, n);
18054
18111
  {
18055
- let i = "raw" + o(n);
18056
- this[i] ? r = this[i](s, e) : s.walk((e) => {
18112
+ let i = "raw" + s(n);
18113
+ this[i] ? r = this[i](a, e) : a.walk((e) => {
18057
18114
  if (r = e.raws[t], r !== void 0) return !1;
18058
18115
  });
18059
18116
  }
18060
- return r === void 0 && (r = a[n]), s.rawCache[n] = r, r;
18117
+ return r === void 0 && (r = o[n]), c[n] = r, r;
18061
18118
  }
18062
18119
  rawBeforeClose(e) {
18063
18120
  let t;
@@ -18125,11 +18182,11 @@ var Hc = /* @__PURE__ */ v(((e) => {
18125
18182
  root(e) {
18126
18183
  if (this.body(e), e.raws.after) {
18127
18184
  let t = e.raws.after, n = e.parent && e.parent.type === "document";
18128
- this.builder(n ? t : i(t));
18185
+ this.builder(n ? t : a(t));
18129
18186
  }
18130
18187
  }
18131
18188
  rule(e) {
18132
- this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(i(e.raws.ownSemicolon), e, "end");
18189
+ this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(a(e.raws.ownSemicolon), e, "end");
18133
18190
  }
18134
18191
  stringify(e, t) {
18135
18192
  /* c8 ignore start */
@@ -18138,7 +18195,7 @@ var Hc = /* @__PURE__ */ v(((e) => {
18138
18195
  this[e.type](e, t);
18139
18196
  }
18140
18197
  };
18141
- t.exports = s, s.default = s;
18198
+ t.exports = d, d.default = d;
18142
18199
  })), ll = /* @__PURE__ */ v(((e, t) => {
18143
18200
  var n = cl();
18144
18201
  function r(e, t) {
@@ -18150,11 +18207,41 @@ var Hc = /* @__PURE__ */ v(((e) => {
18150
18207
  })), dl = /* @__PURE__ */ v(((e, t) => {
18151
18208
  var n = sl(), r = cl(), i = ll(), { isClean: a, my: o } = ul();
18152
18209
  function s(e, t) {
18153
- let n = new e.constructor();
18154
- for (let r in e) {
18155
- if (!Object.prototype.hasOwnProperty.call(e, r) || r === "proxyCache") continue;
18156
- let i = e[r], a = typeof i;
18157
- r === "parent" && a === "object" ? t && (n[r] = t) : r === "source" ? n[r] = i : Array.isArray(i) ? n[r] = i.map((e) => s(e, n)) : (a === "object" && i !== null && (i = s(i)), n[r] = i);
18210
+ let n = new e.constructor(), r = [[
18211
+ e,
18212
+ n,
18213
+ t
18214
+ ]];
18215
+ for (; r.length > 0;) {
18216
+ let [e, t, n] = r.pop();
18217
+ for (let i in e) {
18218
+ if (!Object.prototype.hasOwnProperty.call(e, i) || i === "proxyCache") continue;
18219
+ let a = e[i], o = typeof a;
18220
+ if (i === "parent" && o === "object") n && (t[i] = n);
18221
+ else if (i === "source") t[i] = a;
18222
+ else if (Array.isArray(a)) {
18223
+ let e = [];
18224
+ t[i] = e;
18225
+ for (let n of a) {
18226
+ let i = new n.constructor();
18227
+ e.push(i), r.push([
18228
+ n,
18229
+ i,
18230
+ t
18231
+ ]);
18232
+ }
18233
+ } else {
18234
+ if (o === "object" && a !== null) {
18235
+ let e = new a.constructor();
18236
+ r.push([
18237
+ a,
18238
+ e,
18239
+ void 0
18240
+ ]), a = e;
18241
+ }
18242
+ t[i] = a;
18243
+ }
18244
+ }
18158
18245
  }
18159
18246
  return n;
18160
18247
  }
@@ -18170,15 +18257,15 @@ var Hc = /* @__PURE__ */ v(((e) => {
18170
18257
  }
18171
18258
  return i;
18172
18259
  }
18173
- var l = class {
18260
+ var l = class e {
18174
18261
  get proxyOf() {
18175
18262
  return this;
18176
18263
  }
18177
18264
  constructor(e = {}) {
18178
18265
  this.raws = {}, this[a] = !1, this[o] = !0;
18179
- for (let t in e) if (t === "nodes") {
18266
+ for (let t of Object.keys(e)) if (t !== "__proto__") if (t === "nodes") {
18180
18267
  this.nodes = [];
18181
- for (let n of e[t]) typeof n.clone == "function" ? this.append(n.clone()) : this.append(n);
18268
+ for (let n of e[t]) typeof n.clone == "function" && n.parent ? this.append(n.clone()) : this.append(n);
18182
18269
  } else this[t] = e[t];
18183
18270
  }
18184
18271
  addToError(e) {
@@ -18254,13 +18341,17 @@ var Hc = /* @__PURE__ */ v(((e) => {
18254
18341
  return this.parent.nodes[e + 1];
18255
18342
  }
18256
18343
  positionBy(e = {}) {
18257
- let t = this.source.start;
18258
- if (e.index) t = this.positionInside(e.index);
18344
+ let t = "document" in this.source.input ? this.source.input.document : this.source.input.css, n = {
18345
+ column: this.source.start.column,
18346
+ line: this.source.start.line,
18347
+ offset: c(t, this.source.start)
18348
+ };
18349
+ if (e.index) n = this.positionInside(e.index);
18259
18350
  else if (e.word) {
18260
- let n = "document" in this.source.input ? this.source.input.document : this.source.input.css, r = n.slice(c(n, this.source.start), c(n, this.source.end)).indexOf(e.word);
18261
- r !== -1 && (t = this.positionInside(r));
18351
+ let r = t.slice(c(t, this.source.start), c(t, this.source.end)).indexOf(e.word);
18352
+ r !== -1 && (n = this.positionInside(r));
18262
18353
  }
18263
- return t;
18354
+ return n;
18264
18355
  }
18265
18356
  positionInside(e) {
18266
18357
  let t = this.source.start.column, n = this.source.start.line, r = "document" in this.source.input ? this.source.input.document : this.source.input.css, i = c(r, this.source.start), a = i + e;
@@ -18297,11 +18388,11 @@ var Hc = /* @__PURE__ */ v(((e) => {
18297
18388
  column: e.start.column,
18298
18389
  line: e.start.line,
18299
18390
  offset: c(t, e.start)
18300
- } : e.index && (n = this.positionInside(e.index)), e.end ? r = {
18391
+ } : typeof e.index == "number" && (n = this.positionInside(e.index)), e.end ? r = {
18301
18392
  column: e.end.column,
18302
18393
  line: e.end.line,
18303
18394
  offset: c(t, e.end)
18304
- } : typeof e.endIndex == "number" ? r = this.positionInside(e.endIndex) : e.index && (r = this.positionInside(e.index + 1));
18395
+ } : typeof e.endIndex == "number" ? r = this.positionInside(e.endIndex) : typeof e.index == "number" && (r = this.positionInside(e.index + 1));
18305
18396
  return (r.line < n.line || r.line === n.line && r.column <= n.column) && (r = {
18306
18397
  column: n.column + 1,
18307
18398
  line: n.line,
@@ -18330,26 +18421,49 @@ var Hc = /* @__PURE__ */ v(((e) => {
18330
18421
  for (; e.parent && e.parent.type !== "document";) e = e.parent;
18331
18422
  return e;
18332
18423
  }
18333
- toJSON(e, t) {
18334
- let n = {}, r = t == null;
18335
- t ||= /* @__PURE__ */ new Map();
18336
- let i = 0;
18337
- for (let e in this) {
18338
- if (!Object.prototype.hasOwnProperty.call(this, e) || e === "parent" || e === "proxyCache") continue;
18339
- let r = this[e];
18340
- if (Array.isArray(r)) n[e] = r.map((e) => typeof e == "object" && e.toJSON ? e.toJSON(null, t) : e);
18341
- else if (typeof r == "object" && r.toJSON) n[e] = r.toJSON(null, t);
18342
- else if (e === "source") {
18343
- if (r == null) continue;
18344
- let a = t.get(r.input);
18345
- a ?? (a = i, t.set(r.input, i), i++), n[e] = {
18346
- end: r.end,
18347
- inputId: a,
18348
- start: r.start
18349
- };
18350
- } else n[e] = r;
18424
+ toJSON(t, n) {
18425
+ let r = n == null;
18426
+ n ||= /* @__PURE__ */ new Map();
18427
+ let i = [], a = [[
18428
+ this,
18429
+ i,
18430
+ 0
18431
+ ]];
18432
+ for (let t = 0; t < a.length; t++) {
18433
+ let [r, i, o] = a[t], s = {};
18434
+ i[o] = s;
18435
+ for (let t in r) {
18436
+ if (!Object.prototype.hasOwnProperty.call(r, t) || t === "parent" || t === "proxyCache") continue;
18437
+ let i = r[t];
18438
+ if (Array.isArray(i)) {
18439
+ let r = [];
18440
+ s[t] = r;
18441
+ for (let t = 0; t < i.length; t++) {
18442
+ let o = i[t];
18443
+ typeof o == "object" && o.toJSON ? o.toJSON === e.prototype.toJSON ? a.push([
18444
+ o,
18445
+ r,
18446
+ t
18447
+ ]) : r[t] = o.toJSON(null, n) : r[t] = o;
18448
+ }
18449
+ } else if (typeof i == "object" && i.toJSON) i.toJSON === e.prototype.toJSON ? a.push([
18450
+ i,
18451
+ s,
18452
+ t
18453
+ ]) : s[t] = i.toJSON(null, n);
18454
+ else if (t === "source") {
18455
+ if (i == null) continue;
18456
+ let e = n.get(i.input);
18457
+ e ?? (e = n.size, n.set(i.input, e)), s[t] = {
18458
+ end: i.end,
18459
+ inputId: e,
18460
+ start: i.start
18461
+ };
18462
+ } else s[t] = i;
18463
+ }
18351
18464
  }
18352
- return r && (n.inputs = [...t.keys()].map((e) => e.toJSON())), n;
18465
+ let o = i[0];
18466
+ return r && (o.inputs = [...n.keys()].map((e) => e.toJSON())), o;
18353
18467
  }
18354
18468
  toProxy() {
18355
18469
  return this.proxyCache ||= new Proxy(this, this.getProxyProcessor()), this.proxyCache;
@@ -18391,10 +18505,22 @@ var Hc = /* @__PURE__ */ v(((e) => {
18391
18505
  })), ml = /* @__PURE__ */ v(((e, t) => {
18392
18506
  var n = fl(), r = pl(), i = dl(), { isClean: a, my: o } = ul(), s, c, l, u;
18393
18507
  function d(e) {
18394
- return e.map((e) => (e.nodes &&= d(e.nodes), delete e.source, e));
18508
+ let t = e.slice();
18509
+ for (; t.length > 0;) {
18510
+ let e = t.pop();
18511
+ if (delete e.source, e.nodes) {
18512
+ e.nodes = e.nodes.slice();
18513
+ for (let n of e.nodes) t.push(n);
18514
+ }
18515
+ }
18516
+ return e.slice();
18395
18517
  }
18396
18518
  function f(e) {
18397
- if (e[a] = !1, e.proxyOf.nodes) for (let t of e.proxyOf.nodes) f(t);
18519
+ let t = [e];
18520
+ for (; t.length > 0;) {
18521
+ let e = t.pop();
18522
+ if (e[a] = !1, e.proxyOf.nodes) for (let n of e.proxyOf.nodes) t.push(n);
18523
+ }
18398
18524
  }
18399
18525
  var p = class e extends i {
18400
18526
  get first() {
@@ -18410,8 +18536,16 @@ var Hc = /* @__PURE__ */ v(((e) => {
18410
18536
  }
18411
18537
  return this.markDirty(), this;
18412
18538
  }
18413
- cleanRaws(e) {
18414
- if (super.cleanRaws(e), this.nodes) for (let t of this.nodes) t.cleanRaws(e);
18539
+ cleanRaws(t) {
18540
+ let n = [this];
18541
+ for (; n.length > 0;) {
18542
+ let r = n.pop();
18543
+ if (r !== this && r.cleanRaws !== e.prototype.cleanRaws) {
18544
+ r.cleanRaws(t);
18545
+ continue;
18546
+ }
18547
+ if (i.prototype.cleanRaws.call(r, t), r.nodes) for (let e of r.nodes) n.push(e);
18548
+ }
18415
18549
  }
18416
18550
  each(e) {
18417
18551
  if (!this.proxyOf.nodes) return;
@@ -18506,15 +18640,34 @@ var Hc = /* @__PURE__ */ v(((e) => {
18506
18640
  return this.nodes.some(e);
18507
18641
  }
18508
18642
  walk(e) {
18509
- return this.each((t, n) => {
18510
- let r;
18643
+ if (!this.proxyOf.nodes) return;
18644
+ let t = [{
18645
+ iterator: this.getIterator(),
18646
+ node: this.proxyOf
18647
+ }];
18648
+ for (; t.length > 0;) {
18649
+ let { iterator: n, node: r } = t[t.length - 1], i = r.indexes[n];
18650
+ if (i >= r.proxyOf.nodes.length) {
18651
+ delete r.indexes[n], t.pop();
18652
+ let e = t[t.length - 1];
18653
+ e && (e.node.indexes[e.iterator] += 1);
18654
+ continue;
18655
+ }
18656
+ let a = r.proxyOf.nodes[i], o;
18511
18657
  try {
18512
- r = e(t, n);
18658
+ o = e(a, i);
18513
18659
  } catch (e) {
18514
- throw t.addToError(e);
18660
+ throw a.addToError(e);
18515
18661
  }
18516
- return r !== !1 && t.walk && (r = t.walk(e)), r;
18517
- });
18662
+ if (o === !1) {
18663
+ for (let e of t) delete e.node.indexes[e.iterator];
18664
+ return !1;
18665
+ }
18666
+ a.walk && a.proxyOf.nodes ? t.push({
18667
+ iterator: a.getIterator(),
18668
+ node: a
18669
+ }) : r.indexes[n] += 1;
18670
+ }
18518
18671
  }
18519
18672
  walkAtRules(e, t) {
18520
18673
  return t ? e instanceof RegExp ? this.walk((n, r) => {
@@ -18559,9 +18712,11 @@ var Hc = /* @__PURE__ */ v(((e) => {
18559
18712
  }, p.registerRoot = (e) => {
18560
18713
  l = e;
18561
18714
  }, t.exports = p, p.default = p, p.rebuild = (e) => {
18562
- e.type === "atrule" ? Object.setPrototypeOf(e, s.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, u.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, r.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, n.prototype) : e.type === "root" && Object.setPrototypeOf(e, l.prototype), e[o] = !0, e.nodes && e.nodes.forEach((e) => {
18563
- p.rebuild(e);
18564
- });
18715
+ let t = [e];
18716
+ for (; t.length > 0;) {
18717
+ let e = t.pop();
18718
+ if (e.type === "atrule" ? Object.setPrototypeOf(e, s.prototype) : e.type === "rule" ? Object.setPrototypeOf(e, u.prototype) : e.type === "decl" ? Object.setPrototypeOf(e, r.prototype) : e.type === "comment" ? Object.setPrototypeOf(e, n.prototype) : e.type === "root" && Object.setPrototypeOf(e, l.prototype), e[o] = !0, e.nodes) for (let n of e.nodes) t.push(n);
18719
+ }
18565
18720
  };
18566
18721
  })), hl = /* @__PURE__ */ v(((e, t) => {
18567
18722
  var n = ml(), r = class extends n {
@@ -18608,26 +18763,26 @@ var Hc = /* @__PURE__ */ v(((e) => {
18608
18763
  }
18609
18764
  };
18610
18765
  })), _l = /* @__PURE__ */ v(((e, t) => {
18611
- var { existsSync: n, readFileSync: r } = ol(), { dirname: i, join: a } = ol(), { SourceMapConsumer: o, SourceMapGenerator: s } = ol();
18612
- function c(e) {
18766
+ var { existsSync: n, readFileSync: r } = ol(), { dirname: i, isAbsolute: a, join: o, relative: s, sep: c } = ol(), { SourceMapConsumer: l, SourceMapGenerator: u } = ol();
18767
+ function d(e) {
18613
18768
  /* c8 ignore next 2 */
18614
18769
  return Buffer ? Buffer.from(e, "base64").toString() : window.atob(e);
18615
18770
  }
18616
- var l = class {
18771
+ var f = class {
18617
18772
  constructor(e, t) {
18618
18773
  if (t.map === !1) return;
18619
- this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
18774
+ t.unsafeMap && (this.unsafeMap = !0), this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
18620
18775
  let n = t.map ? t.map.prev : void 0, r = this.loadMap(t.from, n);
18621
18776
  !this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root = i(this.mapFile)), r && (this.text = r);
18622
18777
  }
18623
18778
  consumer() {
18624
- return this.consumerCache ||= new o(this.text), this.consumerCache;
18779
+ return this.consumerCache ||= new l(this.json || this.text), this.consumerCache;
18625
18780
  }
18626
18781
  decodeInline(e) {
18627
18782
  let t = /^data:application\/json;charset=utf-?8;base64,/, n = /^data:application\/json;base64,/, r = e.match(/^data:application\/json;charset=utf-?8,/) || e.match(/^data:application\/json,/);
18628
18783
  if (r) return decodeURIComponent(e.substr(r[0].length));
18629
18784
  let i = e.match(t) || e.match(n);
18630
- if (i) return c(e.substr(i[0].length));
18785
+ if (i) return d(e.substr(i[0].length));
18631
18786
  let a = e.slice(22);
18632
18787
  throw a = a.slice(0, a.indexOf(",")), Error("Unsupported source map encoding " + a);
18633
18788
  }
@@ -18643,7 +18798,12 @@ var Hc = /* @__PURE__ */ v(((e) => {
18643
18798
  let n = e.lastIndexOf(t.pop()), r = e.indexOf("*/", n);
18644
18799
  n > -1 && r > -1 && (this.annotation = this.getAnnotationURL(e.substring(n, r)));
18645
18800
  }
18646
- loadFile(e) {
18801
+ loadFile(e, t, o) {
18802
+ if (!o && !this.unsafeMap) {
18803
+ if (!/\.map$/i.test(e) || !t) return;
18804
+ let n = s(i(t), e);
18805
+ if (n === ".." || n.startsWith(".." + c) || a(n)) return;
18806
+ }
18647
18807
  if (this.root = i(e), n(e)) return this.mapFile = e, r(e, "utf-8").toString().trim();
18648
18808
  }
18649
18809
  loadMap(e, t) {
@@ -18653,18 +18813,26 @@ var Hc = /* @__PURE__ */ v(((e) => {
18653
18813
  if (typeof t == "function") {
18654
18814
  let n = t(e);
18655
18815
  if (n) {
18656
- let e = this.loadFile(n);
18657
- if (!e) throw Error("Unable to load previous source map: " + n.toString());
18658
- return e;
18816
+ let t = this.loadFile(n, e, !0);
18817
+ if (!t) throw Error("Unable to load previous source map: " + n.toString());
18818
+ return t;
18659
18819
  }
18660
- } else if (t instanceof o) return s.fromSourceMap(t).toString();
18661
- else if (t instanceof s) return t.toString();
18820
+ } else if (t instanceof l) return u.fromSourceMap(t).toString();
18821
+ else if (t instanceof u) return t.toString();
18662
18822
  else if (this.isMap(t)) return JSON.stringify(t);
18663
18823
  else throw Error("Unsupported previous source map format: " + t.toString());
18664
18824
  } else if (this.inline) return this.decodeInline(this.annotation);
18665
18825
  else if (this.annotation) {
18666
18826
  let t = this.annotation;
18667
- return e && (t = a(i(e), t)), this.loadFile(t);
18827
+ e && (t = o(i(e), t));
18828
+ let n = this.loadFile(t, e, !1);
18829
+ if (n) try {
18830
+ /* c8 ignore next 4 */
18831
+ this.json = JSON.parse(n.replace(/^\)]}'[^\n]*\n/, ""));
18832
+ } catch {
18833
+ return;
18834
+ }
18835
+ return n;
18668
18836
  }
18669
18837
  }
18670
18838
  startWith(e, t) {
@@ -18674,7 +18842,7 @@ var Hc = /* @__PURE__ */ v(((e) => {
18674
18842
  return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
18675
18843
  }
18676
18844
  };
18677
- t.exports = l, l.default = l;
18845
+ t.exports = f, f.default = f;
18678
18846
  })), vl = /* @__PURE__ */ v(((e, t) => {
18679
18847
  var { nanoid: n } = _se(), { isAbsolute: r, resolve: i } = ol(), { SourceMapConsumer: a, SourceMapGenerator: o } = ol(), { fileURLToPath: s, pathToFileURL: c } = ol(), l = sl(), u = _l(), d = ol(), f = Symbol("lineToIndexCache"), p = !!(a && o), m = !!(i && r);
18680
18848
  function h(e) {
@@ -18768,20 +18936,23 @@ var Hc = /* @__PURE__ */ v(((e) => {
18768
18936
  origin(e, t, n, i) {
18769
18937
  if (!this.map) return !1;
18770
18938
  let a = this.map.consumer(), o = a.originalPositionFor({
18771
- column: t,
18939
+ column: t - 1,
18772
18940
  line: e
18773
18941
  });
18774
18942
  if (!o.source) return !1;
18775
18943
  let l;
18776
- typeof n == "number" && (l = a.originalPositionFor({
18777
- column: i,
18778
- line: n
18779
- }));
18944
+ if (typeof n == "number") {
18945
+ let e = a.originalPositionFor({
18946
+ column: i - 1,
18947
+ line: n
18948
+ });
18949
+ e.source && (l = e);
18950
+ }
18780
18951
  let u;
18781
18952
  u = r(o.source) ? c(o.source) : new URL(o.source, this.map.consumer().sourceRoot || c(this.map.mapFile));
18782
18953
  let d = {
18783
- column: o.column,
18784
- endColumn: l && l.column,
18954
+ column: o.column + 1,
18955
+ endColumn: l && l.column + 1,
18785
18956
  endLine: l && l.line,
18786
18957
  line: o.line,
18787
18958
  url: u.toString()
@@ -18811,12 +18982,14 @@ var Hc = /* @__PURE__ */ v(((e) => {
18811
18982
  super(e), this.type = "root", this.nodes ||= [];
18812
18983
  }
18813
18984
  normalize(e, t, n) {
18814
- let r = super.normalize(e);
18985
+ let r = /* @__PURE__ */ new Set();
18986
+ for (let t of Array.isArray(e) ? e : [e]) t && typeof t == "object" && !t.parent && t.raws && t.raws.before !== void 0 && r.add(t.raws);
18987
+ let i = super.normalize(e);
18815
18988
  if (t) {
18816
18989
  if (n === "prepend") this.nodes.length > 1 ? t.raws.before = this.nodes[1].raws.before : delete t.raws.before;
18817
- else if (this.first !== t) for (let e of r) e.raws.before = t.raws.before;
18990
+ else if (this.first !== t) for (let e of i) r.has(e.raws) || (e.raws.before = t.raws.before);
18818
18991
  }
18819
- return r;
18992
+ return i;
18820
18993
  }
18821
18994
  removeChild(e, t) {
18822
18995
  let n = this.index(e);
@@ -18867,33 +19040,63 @@ var Hc = /* @__PURE__ */ v(((e) => {
18867
19040
  })), vse = /* @__PURE__ */ v(((e, t) => {
18868
19041
  var n = hl(), r = fl(), i = pl(), a = vl(), o = _l(), s = yl(), c = xl();
18869
19042
  function l(e, t) {
18870
- if (Array.isArray(e)) return e.map((e) => l(e));
18871
- let { inputs: u, ...d } = e;
18872
- if (u) {
18873
- t = [];
18874
- for (let e of u) {
18875
- let n = {
18876
- ...e,
18877
- __proto__: a.prototype
18878
- };
18879
- n.map &&= {
18880
- ...n.map,
18881
- __proto__: o.prototype
18882
- }, t.push(n);
18883
- }
19043
+ return e.inputs ? e.inputs.map((e) => {
19044
+ let t = {
19045
+ ...e,
19046
+ __proto__: a.prototype
19047
+ };
19048
+ return t.map &&= {
19049
+ ...t.map,
19050
+ __proto__: o.prototype
19051
+ }, t;
19052
+ }) : t;
19053
+ }
19054
+ function u(e, t, a) {
19055
+ let o = { ...e };
19056
+ if (delete o.inputs, delete o.nodes, o.source) {
19057
+ let { inputId: e, ...n } = o.source;
19058
+ o.source = n, e != null && (o.source.input = t[e]);
19059
+ }
19060
+ let l;
19061
+ if (o.type === "root") l = new s(o);
19062
+ else if (o.type === "decl") l = new i(o);
19063
+ else if (o.type === "rule") l = new c(o);
19064
+ else if (o.type === "comment") l = new r(o);
19065
+ else if (o.type === "atrule") l = new n(o);
19066
+ else throw Error("Unknown node type: " + e.type);
19067
+ if (a) {
19068
+ l.nodes = a;
19069
+ for (let e of a) e.parent = l;
18884
19070
  }
18885
- if (d.nodes &&= e.nodes.map((e) => l(e, t)), d.source) {
18886
- let { inputId: e, ...n } = d.source;
18887
- d.source = n, e != null && (d.source.input = t[e]);
19071
+ return l;
19072
+ }
19073
+ function d(e, t) {
19074
+ if (Array.isArray(e)) return e.map((e) => d(e));
19075
+ let n, r = [{
19076
+ childIndex: 0,
19077
+ children: [],
19078
+ inputs: l(e, t),
19079
+ json: e
19080
+ }];
19081
+ for (; r.length > 0;) {
19082
+ let e = r[r.length - 1], t = e.json.nodes;
19083
+ if (t && e.childIndex < t.length) {
19084
+ let n = t[e.childIndex];
19085
+ e.childIndex += 1, r.push({
19086
+ childIndex: 0,
19087
+ children: [],
19088
+ inputs: l(n, e.inputs),
19089
+ json: n
19090
+ });
19091
+ continue;
19092
+ }
19093
+ r.pop();
19094
+ let i = u(e.json, e.inputs, t ? e.children : void 0);
19095
+ r.length > 0 ? r[r.length - 1].children.push(i) : n = i;
18888
19096
  }
18889
- if (d.type === "root") return new s(d);
18890
- if (d.type === "decl") return new i(d);
18891
- if (d.type === "rule") return new c(d);
18892
- if (d.type === "comment") return new r(d);
18893
- if (d.type === "atrule") return new n(d);
18894
- throw Error("Unknown node type: " + e.type);
19097
+ return n;
18895
19098
  }
18896
- t.exports = l, l.default = l;
19099
+ t.exports = d, d.default = d;
18897
19100
  })), Sl = /* @__PURE__ */ v(((e, t) => {
18898
19101
  var { dirname: n, relative: r, resolve: i, sep: a } = ol(), { SourceMapConsumer: o, SourceMapGenerator: s } = ol(), { pathToFileURL: c } = ol(), l = vl(), u = !!(o && s), d = !!(n && i && r && a);
18899
19102
  t.exports = class {
@@ -19062,17 +19265,17 @@ var Hc = /* @__PURE__ */ v(((e) => {
19062
19265
  })), yse = /* @__PURE__ */ v(((e, t) => {
19063
19266
  var n = 39, r = 34, i = 92, a = 47, o = 10, s = 32, c = 12, l = 9, u = 13, d = 91, f = 93, p = 40, m = 41, h = 123, g = 125, _ = 59, v = 42, y = 58, b = 64, x = /[\t\n\f\r "#'()/;[\\\]{}]/g, S = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, C = /.[\r\n"'(/\\]/, w = /[\da-f]/i;
19064
19267
  t.exports = function(e, t = {}) {
19065
- let T = e.css.valueOf(), E = t.ignoreErrors, D, O, k, A, j, M, N, P, F, ee, I = T.length, L = 0, te = [], R = [];
19066
- function ne() {
19268
+ let T = e.css.valueOf(), E = t.ignoreErrors, D, O, k, A, j, M, N, P, F, ee, I = T.length, L = 0, te = [], R = [], ne = -1;
19269
+ function re() {
19067
19270
  return L;
19068
19271
  }
19069
- function re(t) {
19272
+ function ie(t) {
19070
19273
  throw e.error("Unclosed " + t, L);
19071
19274
  }
19072
- function ie() {
19275
+ function ae() {
19073
19276
  return R.length === 0 && L >= I;
19074
19277
  }
19075
- function ae(e) {
19278
+ function oe(e) {
19076
19279
  if (R.length) return R.pop();
19077
19280
  if (L >= I) return;
19078
19281
  let t = e ? e.ignoreUnclosed : !1;
@@ -19110,7 +19313,7 @@ var Hc = /* @__PURE__ */ v(((e) => {
19110
19313
  if (N = !1, A = T.indexOf(")", A + 1), A === -1) if (E || t) {
19111
19314
  A = L;
19112
19315
  break;
19113
- } else re("bracket");
19316
+ } else ie("bracket");
19114
19317
  for (P = A; T.charCodeAt(P - 1) === i;) --P, N = !N;
19115
19318
  } while (N);
19116
19319
  M = [
@@ -19119,16 +19322,20 @@ var Hc = /* @__PURE__ */ v(((e) => {
19119
19322
  L,
19120
19323
  A
19121
19324
  ], L = A;
19122
- } else A = T.indexOf(")", L + 1), O = T.slice(L, A + 1), A === -1 || C.test(O) ? M = [
19325
+ } else L <= ne ? M = [
19123
19326
  "(",
19124
19327
  "(",
19125
19328
  L
19126
- ] : (M = [
19329
+ ] : (A = T.indexOf(")", L + 1), O = T.slice(L, A + 1), A === -1 || C.test(O) ? (ne = A === -1 ? I : A, M = [
19330
+ "(",
19331
+ "(",
19332
+ L
19333
+ ]) : (M = [
19127
19334
  "brackets",
19128
19335
  O,
19129
19336
  L,
19130
19337
  A
19131
- ], L = A);
19338
+ ], L = A));
19132
19339
  break;
19133
19340
  case n:
19134
19341
  case r:
@@ -19137,7 +19344,7 @@ var Hc = /* @__PURE__ */ v(((e) => {
19137
19344
  if (N = !1, A = T.indexOf(j, A + 1), A === -1) if (E || t) {
19138
19345
  A = L + 1;
19139
19346
  break;
19140
- } else re("string");
19347
+ } else ie("string");
19141
19348
  for (P = A; T.charCodeAt(P - 1) === i;) --P, N = !N;
19142
19349
  } while (N);
19143
19350
  M = [
@@ -19169,7 +19376,7 @@ var Hc = /* @__PURE__ */ v(((e) => {
19169
19376
  ], L = A;
19170
19377
  break;
19171
19378
  default:
19172
- D === a && T.charCodeAt(L + 1) === v ? (A = T.indexOf("*/", L + 2) + 1, A === 0 && (E || t ? A = T.length : re("comment")), M = [
19379
+ D === a && T.charCodeAt(L + 1) === v ? (A = T.indexOf("*/", L + 2) + 1, A === 0 && (E || t ? A = T.length : ie("comment")), M = [
19173
19380
  "comment",
19174
19381
  T.slice(L, A + 1),
19175
19382
  L,
@@ -19184,14 +19391,14 @@ var Hc = /* @__PURE__ */ v(((e) => {
19184
19391
  }
19185
19392
  return L++, M;
19186
19393
  }
19187
- function oe(e) {
19394
+ function se(e) {
19188
19395
  R.push(e);
19189
19396
  }
19190
19397
  return {
19191
- back: oe,
19192
- endOfFile: ie,
19193
- nextToken: ae,
19194
- position: ne
19398
+ back: se,
19399
+ endOfFile: ae,
19400
+ nextToken: oe,
19401
+ position: re
19195
19402
  };
19196
19403
  };
19197
19404
  })), bse = /* @__PURE__ */ v(((e, t) => {
@@ -19205,6 +19412,11 @@ var Hc = /* @__PURE__ */ v(((e) => {
19205
19412
  if (r) return r;
19206
19413
  }
19207
19414
  }
19415
+ function u(e, t, n) {
19416
+ let r = "";
19417
+ for (let i = t; i < n; i++) r += e[i][1];
19418
+ return r;
19419
+ }
19208
19420
  t.exports = class {
19209
19421
  constructor(e) {
19210
19422
  this.input = e, this.root = new a(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = {
@@ -19277,29 +19489,35 @@ var Hc = /* @__PURE__ */ v(((e) => {
19277
19489
  let n = new i();
19278
19490
  this.init(n, e[0][2]);
19279
19491
  let r = e[e.length - 1];
19280
- for (r[0] === ";" && (this.semicolon = !0, e.pop()), n.source.end = this.getPosition(r[3] || r[2] || l(e)), n.source.end.offset++; e[0][0] !== "word";) e.length === 1 && this.unknownWord(e), n.raws.before += e.shift()[1];
19281
- for (n.source.start = this.getPosition(e[0][2]), n.prop = ""; e.length;) {
19282
- let t = e[0][0];
19492
+ r[0] === ";" && (this.semicolon = !0, e.pop()), n.source.end = this.getPosition(r[3] || r[2] || l(e)), n.source.end.offset++;
19493
+ let a = 0;
19494
+ for (; e[a][0] !== "word";) a === e.length - 1 && this.unknownWord([e[a]]), a++;
19495
+ n.raws.before += u(e, 0, a), n.source.start = this.getPosition(e[a][2]);
19496
+ let o = a;
19497
+ for (; a < e.length;) {
19498
+ let t = e[a][0];
19283
19499
  if (t === ":" || t === "space" || t === "comment") break;
19284
- n.prop += e.shift()[1];
19285
- }
19286
- n.raws.between = "";
19287
- let a;
19288
- for (; e.length;) if (a = e.shift(), a[0] === ":") {
19289
- n.raws.between += a[1];
19290
- break;
19291
- } else a[0] === "word" && /\w/.test(a[1]) && this.unknownWord([a]), n.raws.between += a[1];
19292
- (n.prop[0] === "_" || n.prop[0] === "*") && (n.raws.before += n.prop[0], n.prop = n.prop.slice(1));
19293
- let o = [], s;
19294
- for (; e.length && (s = e[0][0], !(s !== "space" && s !== "comment"));) o.push(e.shift());
19295
- this.precheckMissedSemicolon(e);
19500
+ a++;
19501
+ }
19502
+ n.prop = u(e, o, a);
19503
+ let s = a, c;
19504
+ for (; a < e.length && (c = e[a], a++, c[0] !== ":");) c[0] === "word" && /\w/.test(c[1]) && this.unknownWord([c]);
19505
+ n.raws.between = u(e, s, a), (n.prop[0] === "_" || n.prop[0] === "*") && (n.raws.before += n.prop[0], n.prop = n.prop.slice(1));
19506
+ let d = a;
19507
+ for (; a < e.length;) {
19508
+ let t = e[a][0];
19509
+ if (t !== "space" && t !== "comment") break;
19510
+ a++;
19511
+ }
19512
+ let f = e.slice(d, a);
19513
+ e = e.slice(a), this.precheckMissedSemicolon(e);
19296
19514
  for (let t = e.length - 1; t >= 0; t--) {
19297
- if (a = e[t], a[1].toLowerCase() === "!important") {
19515
+ if (c = e[t], c[1].toLowerCase() === "!important") {
19298
19516
  n.important = !0;
19299
19517
  let r = this.stringFrom(e, t);
19300
19518
  r = this.spacesFromEnd(e) + r, r !== " !important" && (n.raws.important = r);
19301
19519
  break;
19302
- } else if (a[1].toLowerCase() === "important") {
19520
+ } else if (c[1].toLowerCase() === "important") {
19303
19521
  let r = e.slice(0), i = "";
19304
19522
  for (let e = t; e > 0; e--) {
19305
19523
  let t = r[e][0];
@@ -19308,9 +19526,9 @@ var Hc = /* @__PURE__ */ v(((e) => {
19308
19526
  }
19309
19527
  i.trim().startsWith("!") && (n.important = !0, n.raws.important = i, e = r);
19310
19528
  }
19311
- if (a[0] !== "space" && a[0] !== "comment") break;
19529
+ if (c[0] !== "space" && c[0] !== "comment") break;
19312
19530
  }
19313
- e.some((e) => e[0] !== "space" && e[0] !== "comment") && (n.raws.between += o.map((e) => e[1]).join(""), o = []), this.raw(n, "value", o.concat(e), t), n.value.includes(":") && !t && this.checkMissedSemicolon(e);
19531
+ e.some((e) => e[0] !== "space" && e[0] !== "comment") && (n.raws.between += f.map((e) => e[1]).join(""), f = []), this.raw(n, "value", f.concat(e), t), n.value.includes(":") && !t && this.checkMissedSemicolon(e);
19314
19532
  }
19315
19533
  doubleColon(e) {
19316
19534
  throw this.input.error("Double colon", { offset: e[2] }, { offset: e[2] + e[1].length });
@@ -19464,9 +19682,10 @@ var Hc = /* @__PURE__ */ v(((e) => {
19464
19682
  }
19465
19683
  t.exports = a, a.default = a, n.registerParse(a);
19466
19684
  })), wl = /* @__PURE__ */ v(((e, t) => {
19467
- var n = class {
19685
+ var n = ml(), { my: r } = ul(), i = class {
19468
19686
  constructor(e, t = {}) {
19469
19687
  if (this.type = "warning", this.text = e, t.node && t.node.source) {
19688
+ t.node[r] || n.rebuild(t.node);
19470
19689
  let e = t.node.rangeBy(t);
19471
19690
  this.line = e.start.line, this.column = e.start.column, this.endLine = e.end.line, this.endColumn = e.end.column;
19472
19691
  }
@@ -19480,7 +19699,7 @@ var Hc = /* @__PURE__ */ v(((e) => {
19480
19699
  }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
19481
19700
  }
19482
19701
  };
19483
- t.exports = n, n.default = n;
19702
+ t.exports = i, i.default = i;
19484
19703
  })), Tl = /* @__PURE__ */ v(((e, t) => {
19485
19704
  var n = wl(), r = class {
19486
19705
  get content() {
@@ -19581,7 +19800,12 @@ var Hc = /* @__PURE__ */ v(((e) => {
19581
19800
  };
19582
19801
  }
19583
19802
  function v(e) {
19584
- return e[l] = !1, e.nodes && e.nodes.forEach((e) => v(e)), e;
19803
+ let t = [e];
19804
+ for (; t.length > 0;) {
19805
+ let e = t.pop();
19806
+ if (e[l] = !1, e.nodes) for (let n of e.nodes) t.push(n);
19807
+ }
19808
+ return e;
19585
19809
  }
19586
19810
  var y = {}, b = class e {
19587
19811
  get content() {
@@ -19725,8 +19949,15 @@ var Hc = /* @__PURE__ */ v(((e) => {
19725
19949
  this.stringified = !0, this.sync();
19726
19950
  let e = this.result.opts, t = c;
19727
19951
  e.syntax && (t = e.syntax.stringify), e.stringifier && (t = e.stringifier), t.stringify && (t = t.stringify);
19728
- let n = new i(t, this.result.root, this.result.opts).generate();
19729
- return this.result.css = n[0], this.result.map = n[1], this.result;
19952
+ let n = this.result.root.source;
19953
+ if (e.map === void 0 && !(n && n.input && n.input.map)) {
19954
+ let e = "";
19955
+ return t(this.result.root, (t) => {
19956
+ e += t;
19957
+ }), this.result.css = e, this.result;
19958
+ }
19959
+ let r = new i(t, this.result.root, this.result.opts).generate();
19960
+ return this.result.css = r[0], this.result.map = r[1], this.result;
19730
19961
  }
19731
19962
  sync() {
19732
19963
  if (this.error) throw this.error;
@@ -19798,13 +20029,38 @@ var Hc = /* @__PURE__ */ v(((e) => {
19798
20029
  }
19799
20030
  walkSync(e) {
19800
20031
  e[l] = !0;
19801
- let t = g(e);
19802
- for (let n of t) if (n === m) e.nodes && e.each((e) => {
19803
- e[l] || this.walkSync(e);
19804
- });
19805
- else {
19806
- let t = this.listeners[n];
19807
- if (t && this.visitSync(t, e.toProxy())) return;
20032
+ let t = [{
20033
+ eventIndex: 0,
20034
+ events: g(e),
20035
+ iterator: 0,
20036
+ node: e
20037
+ }];
20038
+ for (; t.length > 0;) {
20039
+ let e = t[t.length - 1], n = e.node;
20040
+ if (e.iterator !== 0) {
20041
+ let r = e.iterator, i, a = !1;
20042
+ for (; i = n.nodes[n.indexes[r]];) if (n.indexes[r] += 1, !i[l]) {
20043
+ i[l] = !0, t.push({
20044
+ eventIndex: 0,
20045
+ events: g(i),
20046
+ iterator: 0,
20047
+ node: i
20048
+ }), a = !0;
20049
+ break;
20050
+ }
20051
+ if (a) continue;
20052
+ e.iterator = 0, delete n.indexes[r];
20053
+ }
20054
+ if (e.eventIndex < e.events.length) {
20055
+ let r = e.events[e.eventIndex];
20056
+ if (e.eventIndex += 1, r === m) n.nodes && n.nodes.length && (e.iterator = n.getIterator());
20057
+ else {
20058
+ let e = this.listeners[r];
20059
+ e && this.visitSync(e, n.toProxy()) && t.pop();
20060
+ }
20061
+ continue;
20062
+ }
20063
+ t.pop();
19808
20064
  }
19809
20065
  }
19810
20066
  warnings() {
@@ -19891,7 +20147,7 @@ var Hc = /* @__PURE__ */ v(((e) => {
19891
20147
  })), Sse = /* @__PURE__ */ v(((e, t) => {
19892
20148
  var n = gl(), r = Dl(), i = xse(), a = yl(), o = class {
19893
20149
  constructor(e = []) {
19894
- this.version = "8.5.10", this.plugins = this.normalize(e);
20150
+ this.version = "8.5.23", this.plugins = this.normalize(e);
19895
20151
  }
19896
20152
  normalize(e) {
19897
20153
  let t = [];
@@ -20526,10 +20782,10 @@ var Hc = /* @__PURE__ */ v(((e) => {
20526
20782
  return;
20527
20783
  }
20528
20784
  }
20529
- if (c === "srcset") try {
20785
+ if (c === "srcset" || c === "imagesrcset") try {
20530
20786
  let e = o(n);
20531
20787
  if (e.forEach(function(e) {
20532
- re("srcset", e.url) && (e.evil = !0);
20788
+ re(c, e.url) && (e.evil = !0);
20533
20789
  }), e = p(e, function(e) {
20534
20790
  return !e.evil;
20535
20791
  }), e.length) n = h(p(e, function(e) {
@@ -20572,8 +20828,8 @@ var Hc = /* @__PURE__ */ v(((e) => {
20572
20828
  if (ee) return;
20573
20829
  let n = N[N.length - 1], r;
20574
20830
  if (n && (r = n.tag, e = n.innerText === void 0 ? e : n.innerText), t.disallowedTagsMode === "completelyDiscard" && !C(r)) e = "";
20575
- else if ((t.disallowedTagsMode === "discard" || t.disallowedTagsMode === "completelyDiscard") && (r === "script" || r === "style")) b += e;
20576
- else if ((t.disallowedTagsMode === "discard" || t.disallowedTagsMode === "completelyDiscard") && (r === "textarea" || r === "xmp")) b += e;
20831
+ else if (r && C(r) && (t.disallowedTagsMode === "discard" || t.disallowedTagsMode === "completelyDiscard") && (r === "script" || r === "style")) b += e;
20832
+ else if (r && C(r) && (t.disallowedTagsMode === "discard" || t.disallowedTagsMode === "completelyDiscard") && (r === "textarea" || r === "xmp")) b += e;
20577
20833
  else if (!L) {
20578
20834
  let n = ne(e, !1);
20579
20835
  t.textFilter ? b += t.textFilter(n, r) : b += n;
@@ -20717,7 +20973,24 @@ var Hc = /* @__PURE__ */ v(((e) => {
20717
20973
  allowedSchemesAppliedToAttributes: [
20718
20974
  "href",
20719
20975
  "src",
20720
- "cite"
20976
+ "cite",
20977
+ "action",
20978
+ "formaction",
20979
+ "data",
20980
+ "xlink:href",
20981
+ "poster",
20982
+ "background",
20983
+ "ping",
20984
+ "longdesc",
20985
+ "usemap",
20986
+ "codebase",
20987
+ "classid",
20988
+ "archive",
20989
+ "profile",
20990
+ "manifest",
20991
+ "itemid",
20992
+ "dynsrc",
20993
+ "lowsrc"
20721
20994
  ],
20722
20995
  allowProtocolRelative: !0,
20723
20996
  enforceHtmlBoundary: !1,
@@ -61765,7 +62038,7 @@ var dGe = [
61765
62038
  }), s = me(null), c = U(() => s.value?.[t.icon] ?? rGe[t.icon] ?? nGe[t.icon] ?? null);
61766
62039
  G(() => t.icon, async (e) => {
61767
62040
  if (typeof e == "string" && e.startsWith("node:") && !s.value) {
61768
- let { nodeIconSet: e } = await import("./node-icons-C_zc8eJj-DIcOu3bd.mjs");
62041
+ let { nodeIconSet: e } = await import("./node-icons-C_zc8eJj-ULO1c_-3.mjs");
61769
62042
  s.value = e;
61770
62043
  }
61771
62044
  }, { immediate: !0 });