easycomponentstools 1.1.45 → 1.2.1
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.
|
@@ -101478,11 +101478,11 @@ var oU = /* @__PURE__ */ f({
|
|
|
101478
101478
|
};
|
|
101479
101479
|
t.exports = i, i.default = i;
|
|
101480
101480
|
})), qU = /* @__PURE__ */ G(((e, t) => {
|
|
101481
|
-
var n = /(<)(\/?style\b)/gi, r = /(<)(!--)/g
|
|
101482
|
-
function
|
|
101481
|
+
var n = /(<)(\/?style\b)/gi, r = /(<)(!--)/g, i = /[\t\n\f\r "#'()/;[\\\]{}]/;
|
|
101482
|
+
function a(e) {
|
|
101483
101483
|
return typeof e != "string" || !e.includes("<") ? e : e.replace(n, "\\3c $2").replace(r, "\\3c $2");
|
|
101484
101484
|
}
|
|
101485
|
-
var
|
|
101485
|
+
var o = {
|
|
101486
101486
|
after: "\n",
|
|
101487
101487
|
beforeClose: "\n",
|
|
101488
101488
|
beforeComment: "\n",
|
|
@@ -101496,19 +101496,45 @@ var oU = /* @__PURE__ */ f({
|
|
|
101496
101496
|
indent: " ",
|
|
101497
101497
|
semicolon: !1
|
|
101498
101498
|
};
|
|
101499
|
-
function
|
|
101499
|
+
function s(e) {
|
|
101500
101500
|
return e[0].toUpperCase() + e.slice(1);
|
|
101501
101501
|
}
|
|
101502
|
-
|
|
101502
|
+
function c(e, t) {
|
|
101503
|
+
let n = "@" + t.name, r = t.params ? e.rawValue(t, "params") : "", a = t.raws.afterName;
|
|
101504
|
+
return a === void 0 ? a = r ? " " : "" : a === "" && r && !i.test(r[0]) && (a = " "), n + a + r;
|
|
101505
|
+
}
|
|
101506
|
+
function l(e, t, n) {
|
|
101507
|
+
let r = n.nodes, i = r.length - 1;
|
|
101508
|
+
for (; i > 0 && r[i].type === "comment";) --i;
|
|
101509
|
+
let a = e.raw(n, "semicolon"), o = n.type === "document";
|
|
101510
|
+
for (let e = r.length - 1; e >= 0; e--) {
|
|
101511
|
+
let n = r[e], s = i !== e || a;
|
|
101512
|
+
!s && e < r.length - 1 && (n.type === "atrule" && !n.nodes || n.type === "decl" && n.prop.startsWith("--")) && (s = !0), t.push({
|
|
101513
|
+
document: o,
|
|
101514
|
+
node: n,
|
|
101515
|
+
semicolon: s
|
|
101516
|
+
});
|
|
101517
|
+
}
|
|
101518
|
+
}
|
|
101519
|
+
function u(e, t, n, r) {
|
|
101520
|
+
let i = e.raw(n, "between", "beforeOpen");
|
|
101521
|
+
e.builder(a(r + i) + "{", n, "start");
|
|
101522
|
+
let o = n.nodes && n.nodes.length, s = () => {
|
|
101523
|
+
let t = o ? e.raw(n, "after") : e.raw(n, "after", "emptyBody");
|
|
101524
|
+
t && e.builder(a(t)), e.builder("}", n, "end"), n.type === "rule" && n.raws.ownSemicolon && e.builder(a(n.raws.ownSemicolon), n, "end");
|
|
101525
|
+
};
|
|
101526
|
+
o ? (t.push(s), l(e, t, n)) : s();
|
|
101527
|
+
}
|
|
101528
|
+
var d = class e {
|
|
101503
101529
|
constructor(e) {
|
|
101504
101530
|
this.builder = e;
|
|
101505
101531
|
}
|
|
101506
101532
|
atrule(e, t) {
|
|
101507
|
-
let n =
|
|
101508
|
-
if (
|
|
101533
|
+
let n = c(this, e);
|
|
101534
|
+
if (e.nodes) this.block(e, n);
|
|
101509
101535
|
else {
|
|
101510
|
-
let
|
|
101511
|
-
this.builder(
|
|
101536
|
+
let r = (e.raws.between || "") + (t ? ";" : "");
|
|
101537
|
+
this.builder(a(n + r), e);
|
|
101512
101538
|
}
|
|
101513
101539
|
}
|
|
101514
101540
|
beforeAfter(e, t) {
|
|
@@ -101524,26 +101550,35 @@ var oU = /* @__PURE__ */ f({
|
|
|
101524
101550
|
}
|
|
101525
101551
|
block(e, t) {
|
|
101526
101552
|
let n = this.raw(e, "between", "beforeOpen");
|
|
101527
|
-
this.builder(
|
|
101553
|
+
this.builder(a(t + n) + "{", e, "start");
|
|
101528
101554
|
let r;
|
|
101529
|
-
e.nodes && e.nodes.length ? (this.body(e), r = this.raw(e, "after")) : r = this.raw(e, "after", "emptyBody"), r && this.builder(
|
|
101530
|
-
}
|
|
101531
|
-
body(
|
|
101532
|
-
let
|
|
101533
|
-
|
|
101534
|
-
|
|
101535
|
-
|
|
101536
|
-
|
|
101537
|
-
|
|
101555
|
+
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");
|
|
101556
|
+
}
|
|
101557
|
+
body(t) {
|
|
101558
|
+
let n = e.prototype, r = [
|
|
101559
|
+
"atrule",
|
|
101560
|
+
"block",
|
|
101561
|
+
"body",
|
|
101562
|
+
"rule",
|
|
101563
|
+
"stringify"
|
|
101564
|
+
].every((e) => this[e] === n[e]), i = [];
|
|
101565
|
+
for (l(this, i, t); i.length > 0;) {
|
|
101566
|
+
let e = i.pop();
|
|
101567
|
+
if (typeof e == "function") {
|
|
101568
|
+
e();
|
|
101569
|
+
continue;
|
|
101570
|
+
}
|
|
101571
|
+
let t = e.node, n = this.raw(t, "before");
|
|
101572
|
+
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);
|
|
101538
101573
|
}
|
|
101539
101574
|
}
|
|
101540
101575
|
comment(e) {
|
|
101541
101576
|
let t = this.raw(e, "left", "commentLeft"), n = this.raw(e, "right", "commentRight");
|
|
101542
|
-
this.builder(
|
|
101577
|
+
this.builder(a("/*" + t + e.text + n + "*/"), e);
|
|
101543
101578
|
}
|
|
101544
101579
|
decl(e, t) {
|
|
101545
|
-
let n = e.raws, r = this.raw(e, "between", "colon"),
|
|
101546
|
-
e.important && (
|
|
101580
|
+
let n = e.raws, r = this.raw(e, "between", "colon"), i = e.prop + r + this.rawValue(e, "value");
|
|
101581
|
+
e.important && (i += n.important || " !important"), t && (i += ";"), this.builder(a(i), e);
|
|
101547
101582
|
}
|
|
101548
101583
|
document(e) {
|
|
101549
101584
|
this.body(e);
|
|
@@ -101553,17 +101588,17 @@ var oU = /* @__PURE__ */ f({
|
|
|
101553
101588
|
if (n ||= t, t && (r = e.raws[t], r !== void 0)) return r;
|
|
101554
101589
|
let i = e.parent;
|
|
101555
101590
|
if (n === "before" && (!i || i.type === "root" && i.first === e || i && i.type === "document")) return "";
|
|
101556
|
-
if (!i) return
|
|
101557
|
-
let
|
|
101591
|
+
if (!i) return o[n];
|
|
101592
|
+
let a = e.root(), c = a.rawCache ||= {};
|
|
101558
101593
|
if (c[n] !== void 0) return c[n];
|
|
101559
101594
|
if (n === "before" || n === "after") return this.beforeAfter(e, n);
|
|
101560
101595
|
{
|
|
101561
|
-
let i = "raw" +
|
|
101562
|
-
this[i] ? r = this[i](
|
|
101596
|
+
let i = "raw" + s(n);
|
|
101597
|
+
this[i] ? r = this[i](a, e) : a.walk((e) => {
|
|
101563
101598
|
if (r = e.raws[t], r !== void 0) return !1;
|
|
101564
101599
|
});
|
|
101565
101600
|
}
|
|
101566
|
-
return r === void 0 && (r =
|
|
101601
|
+
return r === void 0 && (r = o[n]), c[n] = r, r;
|
|
101567
101602
|
}
|
|
101568
101603
|
rawBeforeClose(e) {
|
|
101569
101604
|
let t;
|
|
@@ -101629,13 +101664,13 @@ var oU = /* @__PURE__ */ f({
|
|
|
101629
101664
|
return r && r.value === n ? r.raw : n;
|
|
101630
101665
|
}
|
|
101631
101666
|
root(e) {
|
|
101632
|
-
if (this.body(e), e.raws.after) {
|
|
101667
|
+
if (e.source && e.source.input.hasBOM && this.builder("", e, "start"), this.body(e), e.raws.after) {
|
|
101633
101668
|
let t = e.raws.after, n = e.parent && e.parent.type === "document";
|
|
101634
|
-
this.builder(n ? t :
|
|
101669
|
+
this.builder(n ? t : a(t));
|
|
101635
101670
|
}
|
|
101636
101671
|
}
|
|
101637
101672
|
rule(e) {
|
|
101638
|
-
this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(
|
|
101673
|
+
this.block(e, this.rawValue(e, "selector")), e.raws.ownSemicolon && this.builder(a(e.raws.ownSemicolon), e, "end");
|
|
101639
101674
|
}
|
|
101640
101675
|
stringify(e, t) {
|
|
101641
101676
|
/* c8 ignore start */
|
|
@@ -101644,7 +101679,7 @@ var oU = /* @__PURE__ */ f({
|
|
|
101644
101679
|
this[e.type](e, t);
|
|
101645
101680
|
}
|
|
101646
101681
|
};
|
|
101647
|
-
t.exports =
|
|
101682
|
+
t.exports = d, d.default = d;
|
|
101648
101683
|
})), JU = /* @__PURE__ */ G(((e, t) => {
|
|
101649
101684
|
var n = qU();
|
|
101650
101685
|
function r(e, t) {
|
|
@@ -101656,11 +101691,41 @@ var oU = /* @__PURE__ */ f({
|
|
|
101656
101691
|
})), XU = /* @__PURE__ */ G(((e, t) => {
|
|
101657
101692
|
var n = KU(), r = qU(), i = JU(), { isClean: a, my: o } = YU();
|
|
101658
101693
|
function s(e, t) {
|
|
101659
|
-
let n = new e.constructor()
|
|
101660
|
-
|
|
101661
|
-
|
|
101662
|
-
|
|
101663
|
-
|
|
101694
|
+
let n = new e.constructor(), r = [[
|
|
101695
|
+
e,
|
|
101696
|
+
n,
|
|
101697
|
+
t
|
|
101698
|
+
]];
|
|
101699
|
+
for (; r.length > 0;) {
|
|
101700
|
+
let [e, t, n] = r.pop();
|
|
101701
|
+
for (let i in e) {
|
|
101702
|
+
if (!Object.prototype.hasOwnProperty.call(e, i) || i === "proxyCache") continue;
|
|
101703
|
+
let a = e[i], o = typeof a;
|
|
101704
|
+
if (i === "parent" && o === "object") n && (t[i] = n);
|
|
101705
|
+
else if (i === "source") t[i] = a;
|
|
101706
|
+
else if (Array.isArray(a)) {
|
|
101707
|
+
let e = [];
|
|
101708
|
+
t[i] = e;
|
|
101709
|
+
for (let n of a) {
|
|
101710
|
+
let i = new n.constructor();
|
|
101711
|
+
e.push(i), r.push([
|
|
101712
|
+
n,
|
|
101713
|
+
i,
|
|
101714
|
+
t
|
|
101715
|
+
]);
|
|
101716
|
+
}
|
|
101717
|
+
} else {
|
|
101718
|
+
if (o === "object" && a !== null) {
|
|
101719
|
+
let e = new a.constructor();
|
|
101720
|
+
r.push([
|
|
101721
|
+
a,
|
|
101722
|
+
e,
|
|
101723
|
+
void 0
|
|
101724
|
+
]), a = e;
|
|
101725
|
+
}
|
|
101726
|
+
t[i] = a;
|
|
101727
|
+
}
|
|
101728
|
+
}
|
|
101664
101729
|
}
|
|
101665
101730
|
return n;
|
|
101666
101731
|
}
|
|
@@ -101676,15 +101741,15 @@ var oU = /* @__PURE__ */ f({
|
|
|
101676
101741
|
}
|
|
101677
101742
|
return i;
|
|
101678
101743
|
}
|
|
101679
|
-
var l = class {
|
|
101744
|
+
var l = class e {
|
|
101680
101745
|
get proxyOf() {
|
|
101681
101746
|
return this;
|
|
101682
101747
|
}
|
|
101683
101748
|
constructor(e = {}) {
|
|
101684
101749
|
this.raws = {}, this[a] = !1, this[o] = !0;
|
|
101685
|
-
for (let t
|
|
101750
|
+
for (let t of Object.keys(e)) if (t !== "__proto__") if (t === "nodes") {
|
|
101686
101751
|
this.nodes = [];
|
|
101687
|
-
for (let n of e[t]) typeof n.clone == "function" ? this.append(n.clone()) : this.append(n);
|
|
101752
|
+
for (let n of e[t]) typeof n.clone == "function" && n.parent ? this.append(n.clone()) : this.append(n);
|
|
101688
101753
|
} else this[t] = e[t];
|
|
101689
101754
|
}
|
|
101690
101755
|
addToError(e) {
|
|
@@ -101760,13 +101825,17 @@ var oU = /* @__PURE__ */ f({
|
|
|
101760
101825
|
return this.parent.nodes[e + 1];
|
|
101761
101826
|
}
|
|
101762
101827
|
positionBy(e = {}) {
|
|
101763
|
-
let t = this.source.
|
|
101764
|
-
|
|
101828
|
+
let t = "document" in this.source.input ? this.source.input.document : this.source.input.css, n = {
|
|
101829
|
+
column: this.source.start.column,
|
|
101830
|
+
line: this.source.start.line,
|
|
101831
|
+
offset: c(t, this.source.start)
|
|
101832
|
+
};
|
|
101833
|
+
if (e.index) n = this.positionInside(e.index);
|
|
101765
101834
|
else if (e.word) {
|
|
101766
|
-
let
|
|
101767
|
-
r !== -1 && (
|
|
101835
|
+
let r = t.slice(c(t, this.source.start), c(t, this.source.end)).indexOf(e.word);
|
|
101836
|
+
r !== -1 && (n = this.positionInside(r));
|
|
101768
101837
|
}
|
|
101769
|
-
return
|
|
101838
|
+
return n;
|
|
101770
101839
|
}
|
|
101771
101840
|
positionInside(e) {
|
|
101772
101841
|
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;
|
|
@@ -101803,11 +101872,11 @@ var oU = /* @__PURE__ */ f({
|
|
|
101803
101872
|
column: e.start.column,
|
|
101804
101873
|
line: e.start.line,
|
|
101805
101874
|
offset: c(t, e.start)
|
|
101806
|
-
} : e.index && (n = this.positionInside(e.index)), e.end ? r = {
|
|
101875
|
+
} : typeof e.index == "number" && (n = this.positionInside(e.index)), e.end ? r = {
|
|
101807
101876
|
column: e.end.column,
|
|
101808
101877
|
line: e.end.line,
|
|
101809
101878
|
offset: c(t, e.end)
|
|
101810
|
-
} : typeof e.endIndex == "number" ? r = this.positionInside(e.endIndex) : e.index && (r = this.positionInside(e.index + 1));
|
|
101879
|
+
} : typeof e.endIndex == "number" ? r = this.positionInside(e.endIndex) : typeof e.index == "number" && (r = this.positionInside(e.index + 1));
|
|
101811
101880
|
return (r.line < n.line || r.line === n.line && r.column <= n.column) && (r = {
|
|
101812
101881
|
column: n.column + 1,
|
|
101813
101882
|
line: n.line,
|
|
@@ -101836,26 +101905,49 @@ var oU = /* @__PURE__ */ f({
|
|
|
101836
101905
|
for (; e.parent && e.parent.type !== "document";) e = e.parent;
|
|
101837
101906
|
return e;
|
|
101838
101907
|
}
|
|
101839
|
-
toJSON(
|
|
101840
|
-
let
|
|
101841
|
-
|
|
101842
|
-
let i =
|
|
101843
|
-
|
|
101844
|
-
|
|
101845
|
-
|
|
101846
|
-
|
|
101847
|
-
|
|
101848
|
-
|
|
101849
|
-
|
|
101850
|
-
|
|
101851
|
-
|
|
101852
|
-
|
|
101853
|
-
|
|
101854
|
-
|
|
101855
|
-
|
|
101856
|
-
|
|
101908
|
+
toJSON(t, n) {
|
|
101909
|
+
let r = n == null;
|
|
101910
|
+
n ||= /* @__PURE__ */ new Map();
|
|
101911
|
+
let i = [], a = [[
|
|
101912
|
+
this,
|
|
101913
|
+
i,
|
|
101914
|
+
0
|
|
101915
|
+
]];
|
|
101916
|
+
for (let t = 0; t < a.length; t++) {
|
|
101917
|
+
let [r, i, o] = a[t], s = {};
|
|
101918
|
+
i[o] = s;
|
|
101919
|
+
for (let t in r) {
|
|
101920
|
+
if (!Object.prototype.hasOwnProperty.call(r, t) || t === "parent" || t === "proxyCache") continue;
|
|
101921
|
+
let i = r[t];
|
|
101922
|
+
if (Array.isArray(i)) {
|
|
101923
|
+
let r = [];
|
|
101924
|
+
s[t] = r;
|
|
101925
|
+
for (let t = 0; t < i.length; t++) {
|
|
101926
|
+
let o = i[t];
|
|
101927
|
+
typeof o == "object" && o.toJSON ? o.toJSON === e.prototype.toJSON ? a.push([
|
|
101928
|
+
o,
|
|
101929
|
+
r,
|
|
101930
|
+
t
|
|
101931
|
+
]) : r[t] = o.toJSON(null, n) : r[t] = o;
|
|
101932
|
+
}
|
|
101933
|
+
} else if (typeof i == "object" && i.toJSON) i.toJSON === e.prototype.toJSON ? a.push([
|
|
101934
|
+
i,
|
|
101935
|
+
s,
|
|
101936
|
+
t
|
|
101937
|
+
]) : s[t] = i.toJSON(null, n);
|
|
101938
|
+
else if (t === "source") {
|
|
101939
|
+
if (i == null) continue;
|
|
101940
|
+
let e = n.get(i.input);
|
|
101941
|
+
e ?? (e = n.size, n.set(i.input, e)), s[t] = {
|
|
101942
|
+
end: i.end,
|
|
101943
|
+
inputId: e,
|
|
101944
|
+
start: i.start
|
|
101945
|
+
};
|
|
101946
|
+
} else s[t] = i;
|
|
101947
|
+
}
|
|
101857
101948
|
}
|
|
101858
|
-
|
|
101949
|
+
let o = i[0];
|
|
101950
|
+
return r && (o.inputs = [...n.keys()].map((e) => e.toJSON())), o;
|
|
101859
101951
|
}
|
|
101860
101952
|
toProxy() {
|
|
101861
101953
|
return this.proxyCache ||= new Proxy(this, this.getProxyProcessor()), this.proxyCache;
|
|
@@ -101897,10 +101989,22 @@ var oU = /* @__PURE__ */ f({
|
|
|
101897
101989
|
})), $U = /* @__PURE__ */ G(((e, t) => {
|
|
101898
101990
|
var n = ZU(), r = QU(), i = XU(), { isClean: a, my: o } = YU(), s, c, l, u;
|
|
101899
101991
|
function d(e) {
|
|
101900
|
-
|
|
101992
|
+
let t = e.slice();
|
|
101993
|
+
for (; t.length > 0;) {
|
|
101994
|
+
let e = t.pop();
|
|
101995
|
+
if (delete e.source, e.nodes) {
|
|
101996
|
+
e.nodes = e.nodes.slice();
|
|
101997
|
+
for (let n of e.nodes) t.push(n);
|
|
101998
|
+
}
|
|
101999
|
+
}
|
|
102000
|
+
return e.slice();
|
|
101901
102001
|
}
|
|
101902
102002
|
function f(e) {
|
|
101903
|
-
|
|
102003
|
+
let t = [e];
|
|
102004
|
+
for (; t.length > 0;) {
|
|
102005
|
+
let e = t.pop();
|
|
102006
|
+
if (e[a] = !1, e.proxyOf.nodes) for (let n of e.proxyOf.nodes) t.push(n);
|
|
102007
|
+
}
|
|
101904
102008
|
}
|
|
101905
102009
|
var p = class e extends i {
|
|
101906
102010
|
get first() {
|
|
@@ -101916,8 +102020,16 @@ var oU = /* @__PURE__ */ f({
|
|
|
101916
102020
|
}
|
|
101917
102021
|
return this.markDirty(), this;
|
|
101918
102022
|
}
|
|
101919
|
-
cleanRaws(
|
|
101920
|
-
|
|
102023
|
+
cleanRaws(t) {
|
|
102024
|
+
let n = [this];
|
|
102025
|
+
for (; n.length > 0;) {
|
|
102026
|
+
let r = n.pop();
|
|
102027
|
+
if (r !== this && r.cleanRaws !== e.prototype.cleanRaws) {
|
|
102028
|
+
r.cleanRaws(t);
|
|
102029
|
+
continue;
|
|
102030
|
+
}
|
|
102031
|
+
if (i.prototype.cleanRaws.call(r, t), r.nodes) for (let e of r.nodes) n.push(e);
|
|
102032
|
+
}
|
|
101921
102033
|
}
|
|
101922
102034
|
each(e) {
|
|
101923
102035
|
if (!this.proxyOf.nodes) return;
|
|
@@ -102012,15 +102124,34 @@ var oU = /* @__PURE__ */ f({
|
|
|
102012
102124
|
return this.nodes.some(e);
|
|
102013
102125
|
}
|
|
102014
102126
|
walk(e) {
|
|
102015
|
-
|
|
102016
|
-
|
|
102127
|
+
if (!this.proxyOf.nodes) return;
|
|
102128
|
+
let t = [{
|
|
102129
|
+
iterator: this.getIterator(),
|
|
102130
|
+
node: this.proxyOf
|
|
102131
|
+
}];
|
|
102132
|
+
for (; t.length > 0;) {
|
|
102133
|
+
let { iterator: n, node: r } = t[t.length - 1], i = r.indexes[n];
|
|
102134
|
+
if (i >= r.proxyOf.nodes.length) {
|
|
102135
|
+
delete r.indexes[n], t.pop();
|
|
102136
|
+
let e = t[t.length - 1];
|
|
102137
|
+
e && (e.node.indexes[e.iterator] += 1);
|
|
102138
|
+
continue;
|
|
102139
|
+
}
|
|
102140
|
+
let a = r.proxyOf.nodes[i], o;
|
|
102017
102141
|
try {
|
|
102018
|
-
|
|
102142
|
+
o = e(a, i);
|
|
102019
102143
|
} catch (e) {
|
|
102020
|
-
throw
|
|
102144
|
+
throw a.addToError(e);
|
|
102021
102145
|
}
|
|
102022
|
-
|
|
102023
|
-
|
|
102146
|
+
if (o === !1) {
|
|
102147
|
+
for (let e of t) delete e.node.indexes[e.iterator];
|
|
102148
|
+
return !1;
|
|
102149
|
+
}
|
|
102150
|
+
a.walk && a.proxyOf.nodes ? t.push({
|
|
102151
|
+
iterator: a.getIterator(),
|
|
102152
|
+
node: a
|
|
102153
|
+
}) : r.indexes[n] += 1;
|
|
102154
|
+
}
|
|
102024
102155
|
}
|
|
102025
102156
|
walkAtRules(e, t) {
|
|
102026
102157
|
return t ? e instanceof RegExp ? this.walk((n, r) => {
|
|
@@ -102065,9 +102196,11 @@ var oU = /* @__PURE__ */ f({
|
|
|
102065
102196
|
}, p.registerRoot = (e) => {
|
|
102066
102197
|
l = e;
|
|
102067
102198
|
}, t.exports = p, p.default = p, p.rebuild = (e) => {
|
|
102068
|
-
|
|
102069
|
-
|
|
102070
|
-
|
|
102199
|
+
let t = [e];
|
|
102200
|
+
for (; t.length > 0;) {
|
|
102201
|
+
let e = t.pop();
|
|
102202
|
+
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);
|
|
102203
|
+
}
|
|
102071
102204
|
};
|
|
102072
102205
|
})), eW = /* @__PURE__ */ G(((e, t) => {
|
|
102073
102206
|
var n = $U(), r = class extends n {
|
|
@@ -102104,36 +102237,43 @@ var oU = /* @__PURE__ */ f({
|
|
|
102104
102237
|
t.exports = {
|
|
102105
102238
|
nanoid: (e = 21) => {
|
|
102106
102239
|
let t = "", r = e | 0;
|
|
102107
|
-
for (; r
|
|
102240
|
+
for (; r-- > 0;) t += n[Math.random() * 64 | 0];
|
|
102108
102241
|
return t;
|
|
102109
102242
|
},
|
|
102110
102243
|
customAlphabet: (e, t = 21) => (n = t) => {
|
|
102111
102244
|
let r = "", i = n | 0;
|
|
102112
|
-
for (; i
|
|
102245
|
+
for (; i-- > 0;) r += e[Math.random() * e.length | 0];
|
|
102113
102246
|
return r;
|
|
102114
102247
|
}
|
|
102115
102248
|
};
|
|
102116
102249
|
})), rW = /* @__PURE__ */ G(((e, t) => {
|
|
102117
|
-
var { existsSync: n, readFileSync: r } = XH(), { dirname:
|
|
102118
|
-
function
|
|
102250
|
+
var { existsSync: n, readFileSync: r, realpathSync: i } = XH(), { dirname: a, isAbsolute: o, join: s, relative: c, sep: l } = XH(), { SourceMapConsumer: u, SourceMapGenerator: d } = XH();
|
|
102251
|
+
function f(e) {
|
|
102252
|
+
try {
|
|
102253
|
+
return i(e);
|
|
102254
|
+
} catch {
|
|
102255
|
+
return e;
|
|
102256
|
+
}
|
|
102257
|
+
}
|
|
102258
|
+
function p(e) {
|
|
102119
102259
|
/* c8 ignore next 2 */
|
|
102120
102260
|
return Buffer ? Buffer.from(e, "base64").toString() : window.atob(e);
|
|
102121
102261
|
}
|
|
102122
|
-
var
|
|
102262
|
+
var m = class {
|
|
102123
102263
|
constructor(e, t) {
|
|
102124
102264
|
if (t.map === !1) return;
|
|
102125
102265
|
t.unsafeMap && (this.unsafeMap = !0), this.loadAnnotation(e), this.inline = this.startWith(this.annotation, "data:");
|
|
102126
102266
|
let n = t.map ? t.map.prev : void 0, r = this.loadMap(t.from, n);
|
|
102127
|
-
!this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root =
|
|
102267
|
+
!this.mapFile && t.from && (this.mapFile = t.from), this.mapFile && (this.root = a(this.mapFile)), r && (this.text = r);
|
|
102128
102268
|
}
|
|
102129
102269
|
consumer() {
|
|
102130
|
-
return this.consumerCache ||= new
|
|
102270
|
+
return this.consumerCache ||= new u(this.json || this.text), this.consumerCache;
|
|
102131
102271
|
}
|
|
102132
102272
|
decodeInline(e) {
|
|
102133
102273
|
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,/);
|
|
102134
102274
|
if (r) return decodeURIComponent(e.substr(r[0].length));
|
|
102135
102275
|
let i = e.match(t) || e.match(n);
|
|
102136
|
-
if (i) return
|
|
102276
|
+
if (i) return p(e.substr(i[0].length));
|
|
102137
102277
|
let a = e.slice(22);
|
|
102138
102278
|
throw a = a.slice(0, a.indexOf(",")), Error("Unsupported source map encoding " + a);
|
|
102139
102279
|
}
|
|
@@ -102149,8 +102289,13 @@ var oU = /* @__PURE__ */ f({
|
|
|
102149
102289
|
let n = e.lastIndexOf(t.pop()), r = e.indexOf("*/", n);
|
|
102150
102290
|
n > -1 && r > -1 && (this.annotation = this.getAnnotationURL(e.substring(n, r)));
|
|
102151
102291
|
}
|
|
102152
|
-
loadFile(e, t,
|
|
102153
|
-
if (!
|
|
102292
|
+
loadFile(e, t, i) {
|
|
102293
|
+
if (!i && !this.unsafeMap) {
|
|
102294
|
+
if (!/\.map$/i.test(e) || !t) return;
|
|
102295
|
+
let n = c(f(a(t)), f(e));
|
|
102296
|
+
if (n === ".." || n.startsWith(".." + l) || o(n)) return;
|
|
102297
|
+
}
|
|
102298
|
+
if (this.root = a(e), n(e)) return this.mapFile = e, r(e, "utf-8").toString().trim();
|
|
102154
102299
|
}
|
|
102155
102300
|
loadMap(e, t) {
|
|
102156
102301
|
if (t === !1) return !1;
|
|
@@ -102163,14 +102308,14 @@ var oU = /* @__PURE__ */ f({
|
|
|
102163
102308
|
if (!t) throw Error("Unable to load previous source map: " + n.toString());
|
|
102164
102309
|
return t;
|
|
102165
102310
|
}
|
|
102166
|
-
} else if (t instanceof
|
|
102167
|
-
else if (t instanceof
|
|
102311
|
+
} else if (t instanceof u) return d.fromSourceMap(t).toString();
|
|
102312
|
+
else if (t instanceof d) return t.toString();
|
|
102168
102313
|
else if (this.isMap(t)) return JSON.stringify(t);
|
|
102169
102314
|
else throw Error("Unsupported previous source map format: " + t.toString());
|
|
102170
102315
|
} else if (this.inline) return this.decodeInline(this.annotation);
|
|
102171
102316
|
else if (this.annotation) {
|
|
102172
102317
|
let t = this.annotation;
|
|
102173
|
-
e && (t = a(
|
|
102318
|
+
e && (t = s(a(e), t));
|
|
102174
102319
|
let n = this.loadFile(t, e, !1);
|
|
102175
102320
|
if (n) try {
|
|
102176
102321
|
/* c8 ignore next 4 */
|
|
@@ -102188,7 +102333,7 @@ var oU = /* @__PURE__ */ f({
|
|
|
102188
102333
|
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
102189
102334
|
}
|
|
102190
102335
|
};
|
|
102191
|
-
t.exports =
|
|
102336
|
+
t.exports = m, m.default = m;
|
|
102192
102337
|
})), iW = /* @__PURE__ */ G(((e, t) => {
|
|
102193
102338
|
var { nanoid: n } = nW(), { isAbsolute: r, resolve: i } = XH(), { SourceMapConsumer: a, SourceMapGenerator: o } = XH(), { fileURLToPath: s, pathToFileURL: c } = XH(), l = KU(), u = rW(), d = XH(), f = Symbol("lineToIndexCache"), p = !!(a && o), m = !!(i && r);
|
|
102194
102339
|
function h(e) {
|
|
@@ -102282,20 +102427,23 @@ var oU = /* @__PURE__ */ f({
|
|
|
102282
102427
|
origin(e, t, n, i) {
|
|
102283
102428
|
if (!this.map) return !1;
|
|
102284
102429
|
let a = this.map.consumer(), o = a.originalPositionFor({
|
|
102285
|
-
column: t,
|
|
102430
|
+
column: t - 1,
|
|
102286
102431
|
line: e
|
|
102287
102432
|
});
|
|
102288
102433
|
if (!o.source) return !1;
|
|
102289
102434
|
let l;
|
|
102290
|
-
typeof n == "number"
|
|
102291
|
-
|
|
102292
|
-
|
|
102293
|
-
|
|
102435
|
+
if (typeof n == "number") {
|
|
102436
|
+
let e = a.originalPositionFor({
|
|
102437
|
+
column: i - 1,
|
|
102438
|
+
line: n
|
|
102439
|
+
});
|
|
102440
|
+
e.source && (l = e);
|
|
102441
|
+
}
|
|
102294
102442
|
let u;
|
|
102295
102443
|
u = r(o.source) ? c(o.source) : new URL(o.source, this.map.consumer().sourceRoot || c(this.map.mapFile));
|
|
102296
102444
|
let d = {
|
|
102297
|
-
column: o.column,
|
|
102298
|
-
endColumn: l && l.column,
|
|
102445
|
+
column: o.column + 1,
|
|
102446
|
+
endColumn: l && l.column + 1,
|
|
102299
102447
|
endLine: l && l.line,
|
|
102300
102448
|
line: o.line,
|
|
102301
102449
|
url: u.toString()
|
|
@@ -102325,12 +102473,14 @@ var oU = /* @__PURE__ */ f({
|
|
|
102325
102473
|
super(e), this.type = "root", this.nodes ||= [];
|
|
102326
102474
|
}
|
|
102327
102475
|
normalize(e, t, n) {
|
|
102328
|
-
let r =
|
|
102476
|
+
let r = /* @__PURE__ */ new Set();
|
|
102477
|
+
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);
|
|
102478
|
+
let i = super.normalize(e);
|
|
102329
102479
|
if (t) {
|
|
102330
102480
|
if (n === "prepend") this.nodes.length > 1 ? t.raws.before = this.nodes[1].raws.before : delete t.raws.before;
|
|
102331
|
-
else if (this.first !== t) for (let e of r) e.raws.before = t.raws.before;
|
|
102481
|
+
else if (this.first !== t) for (let e of i) r.has(e.raws) || (e.raws.before = t.raws.before);
|
|
102332
102482
|
}
|
|
102333
|
-
return
|
|
102483
|
+
return i;
|
|
102334
102484
|
}
|
|
102335
102485
|
removeChild(e, t) {
|
|
102336
102486
|
let n = this.index(e);
|
|
@@ -102358,6 +102508,7 @@ var oU = /* @__PURE__ */ f({
|
|
|
102358
102508
|
]);
|
|
102359
102509
|
},
|
|
102360
102510
|
split(e, t, n) {
|
|
102511
|
+
if (typeof e != "string") return [];
|
|
102361
102512
|
let r = [], i = "", a = !1, o = 0, s = !1, c = "", l = !1;
|
|
102362
102513
|
for (let n of e) l ? l = !1 : n === "\\" ? l = !0 : s ? n === c && (s = !1) : n === "\"" || n === "'" ? (s = !0, c = n) : n === "(" ? o += 1 : n === ")" ? o > 0 && --o : o === 0 && t.includes(n) && (a = !0), a ? (i !== "" && r.push(i.trim()), i = "", a = !1) : i += n;
|
|
102363
102514
|
return (n || i !== "") && r.push(i.trim()), r;
|
|
@@ -102381,33 +102532,63 @@ var oU = /* @__PURE__ */ f({
|
|
|
102381
102532
|
})), cW = /* @__PURE__ */ G(((e, t) => {
|
|
102382
102533
|
var n = eW(), r = ZU(), i = QU(), a = iW(), o = rW(), s = aW(), c = sW();
|
|
102383
102534
|
function l(e, t) {
|
|
102384
|
-
|
|
102385
|
-
|
|
102386
|
-
|
|
102387
|
-
|
|
102388
|
-
|
|
102389
|
-
|
|
102390
|
-
|
|
102391
|
-
|
|
102392
|
-
|
|
102393
|
-
|
|
102394
|
-
|
|
102395
|
-
|
|
102396
|
-
|
|
102397
|
-
|
|
102535
|
+
return e.inputs ? e.inputs.map((e) => {
|
|
102536
|
+
let t = {
|
|
102537
|
+
...e,
|
|
102538
|
+
__proto__: a.prototype
|
|
102539
|
+
};
|
|
102540
|
+
return t.map &&= {
|
|
102541
|
+
...t.map,
|
|
102542
|
+
__proto__: o.prototype
|
|
102543
|
+
}, t;
|
|
102544
|
+
}) : t;
|
|
102545
|
+
}
|
|
102546
|
+
function u(e, t, a) {
|
|
102547
|
+
let o = { ...e };
|
|
102548
|
+
if (delete o.inputs, delete o.nodes, o.source) {
|
|
102549
|
+
let { inputId: e, ...n } = o.source;
|
|
102550
|
+
o.source = n, e != null && (o.source.input = t[e]);
|
|
102551
|
+
}
|
|
102552
|
+
let l;
|
|
102553
|
+
if (o.type === "root") l = new s(o);
|
|
102554
|
+
else if (o.type === "decl") l = new i(o);
|
|
102555
|
+
else if (o.type === "rule") l = new c(o);
|
|
102556
|
+
else if (o.type === "comment") l = new r(o);
|
|
102557
|
+
else if (o.type === "atrule") l = new n(o);
|
|
102558
|
+
else throw Error("Unknown node type: " + e.type);
|
|
102559
|
+
if (a) {
|
|
102560
|
+
l.nodes = a;
|
|
102561
|
+
for (let e of a) e.parent = l;
|
|
102398
102562
|
}
|
|
102399
|
-
|
|
102400
|
-
|
|
102401
|
-
|
|
102563
|
+
return l;
|
|
102564
|
+
}
|
|
102565
|
+
function d(e, t) {
|
|
102566
|
+
if (Array.isArray(e)) return e.map((e) => d(e));
|
|
102567
|
+
let n, r = [{
|
|
102568
|
+
childIndex: 0,
|
|
102569
|
+
children: [],
|
|
102570
|
+
inputs: l(e, t),
|
|
102571
|
+
json: e
|
|
102572
|
+
}];
|
|
102573
|
+
for (; r.length > 0;) {
|
|
102574
|
+
let e = r[r.length - 1], t = e.json.nodes;
|
|
102575
|
+
if (t && e.childIndex < t.length) {
|
|
102576
|
+
let n = t[e.childIndex];
|
|
102577
|
+
e.childIndex += 1, r.push({
|
|
102578
|
+
childIndex: 0,
|
|
102579
|
+
children: [],
|
|
102580
|
+
inputs: l(n, e.inputs),
|
|
102581
|
+
json: n
|
|
102582
|
+
});
|
|
102583
|
+
continue;
|
|
102584
|
+
}
|
|
102585
|
+
r.pop();
|
|
102586
|
+
let i = u(e.json, e.inputs, t ? e.children : void 0);
|
|
102587
|
+
r.length > 0 ? r[r.length - 1].children.push(i) : n = i;
|
|
102402
102588
|
}
|
|
102403
|
-
|
|
102404
|
-
if (d.type === "decl") return new i(d);
|
|
102405
|
-
if (d.type === "rule") return new c(d);
|
|
102406
|
-
if (d.type === "comment") return new r(d);
|
|
102407
|
-
if (d.type === "atrule") return new n(d);
|
|
102408
|
-
throw Error("Unknown node type: " + e.type);
|
|
102589
|
+
return n;
|
|
102409
102590
|
}
|
|
102410
|
-
t.exports =
|
|
102591
|
+
t.exports = d, d.default = d;
|
|
102411
102592
|
})), lW = /* @__PURE__ */ G(((e, t) => {
|
|
102412
102593
|
var { dirname: n, relative: r, resolve: i, sep: a } = XH(), { SourceMapConsumer: o, SourceMapGenerator: s } = XH(), { pathToFileURL: c } = XH(), l = iW(), u = !!(o && s), d = !!(n && i && r && a);
|
|
102413
102594
|
t.exports = class {
|
|
@@ -102993,9 +103174,10 @@ var oU = /* @__PURE__ */ f({
|
|
|
102993
103174
|
}
|
|
102994
103175
|
t.exports = a, a.default = a, n.registerParse(a);
|
|
102995
103176
|
})), pW = /* @__PURE__ */ G(((e, t) => {
|
|
102996
|
-
var n = class {
|
|
103177
|
+
var n = $U(), { my: r } = YU(), i = class {
|
|
102997
103178
|
constructor(e, t = {}) {
|
|
102998
103179
|
if (this.type = "warning", this.text = e, t.node && t.node.source) {
|
|
103180
|
+
t.node[r] || n.rebuild(t.node);
|
|
102999
103181
|
let e = t.node.rangeBy(t);
|
|
103000
103182
|
this.line = e.start.line, this.column = e.start.column, this.endLine = e.end.line, this.endColumn = e.end.column;
|
|
103001
103183
|
}
|
|
@@ -103009,7 +103191,7 @@ var oU = /* @__PURE__ */ f({
|
|
|
103009
103191
|
}).message : this.plugin ? this.plugin + ": " + this.text : this.text;
|
|
103010
103192
|
}
|
|
103011
103193
|
};
|
|
103012
|
-
t.exports =
|
|
103194
|
+
t.exports = i, i.default = i;
|
|
103013
103195
|
})), mW = /* @__PURE__ */ G(((e, t) => {
|
|
103014
103196
|
var n = pW(), r = class {
|
|
103015
103197
|
get content() {
|
|
@@ -103108,7 +103290,12 @@ var oU = /* @__PURE__ */ f({
|
|
|
103108
103290
|
};
|
|
103109
103291
|
}
|
|
103110
103292
|
function y(e) {
|
|
103111
|
-
|
|
103293
|
+
let t = [e];
|
|
103294
|
+
for (; t.length > 0;) {
|
|
103295
|
+
let e = t.pop();
|
|
103296
|
+
if (e[l] = !1, e.nodes) for (let n of e.nodes) t.push(n);
|
|
103297
|
+
}
|
|
103298
|
+
return e;
|
|
103112
103299
|
}
|
|
103113
103300
|
var b = {}, x = class e {
|
|
103114
103301
|
get content() {
|
|
@@ -103314,10 +103501,15 @@ var oU = /* @__PURE__ */ f({
|
|
|
103314
103501
|
}
|
|
103315
103502
|
}
|
|
103316
103503
|
if (t.iterator !== 0) {
|
|
103317
|
-
let r = t.iterator
|
|
103318
|
-
|
|
103319
|
-
|
|
103320
|
-
|
|
103504
|
+
let r = t.iterator;
|
|
103505
|
+
t.descending && (t.descending = !1, n.indexes[r] += 1);
|
|
103506
|
+
let i;
|
|
103507
|
+
for (; i = n.nodes[n.indexes[r]];) {
|
|
103508
|
+
if (!i[l]) {
|
|
103509
|
+
i[l] = !0, t.descending = !0, e.push(v(i));
|
|
103510
|
+
return;
|
|
103511
|
+
}
|
|
103512
|
+
n.indexes[r] += 1;
|
|
103321
103513
|
}
|
|
103322
103514
|
t.iterator = 0, delete n.indexes[r];
|
|
103323
103515
|
}
|
|
@@ -103336,13 +103528,43 @@ var oU = /* @__PURE__ */ f({
|
|
|
103336
103528
|
}
|
|
103337
103529
|
walkSync(e) {
|
|
103338
103530
|
e[l] = !0;
|
|
103339
|
-
let t =
|
|
103340
|
-
|
|
103341
|
-
|
|
103342
|
-
|
|
103343
|
-
|
|
103344
|
-
|
|
103345
|
-
|
|
103531
|
+
let t = [{
|
|
103532
|
+
eventIndex: 0,
|
|
103533
|
+
events: _(e),
|
|
103534
|
+
iterator: 0,
|
|
103535
|
+
node: e
|
|
103536
|
+
}];
|
|
103537
|
+
for (; t.length > 0;) {
|
|
103538
|
+
let e = t[t.length - 1], n = e.node;
|
|
103539
|
+
if (e.iterator !== 0) {
|
|
103540
|
+
let r = e.iterator;
|
|
103541
|
+
e.descending && (e.descending = !1, n.indexes[r] += 1);
|
|
103542
|
+
let i, a = !1;
|
|
103543
|
+
for (; i = n.nodes[n.indexes[r]];) {
|
|
103544
|
+
if (!i[l]) {
|
|
103545
|
+
i[l] = !0, e.descending = !0, t.push({
|
|
103546
|
+
eventIndex: 0,
|
|
103547
|
+
events: _(i),
|
|
103548
|
+
iterator: 0,
|
|
103549
|
+
node: i
|
|
103550
|
+
}), a = !0;
|
|
103551
|
+
break;
|
|
103552
|
+
}
|
|
103553
|
+
n.indexes[r] += 1;
|
|
103554
|
+
}
|
|
103555
|
+
if (a) continue;
|
|
103556
|
+
e.iterator = 0, delete n.indexes[r];
|
|
103557
|
+
}
|
|
103558
|
+
if (e.eventIndex < e.events.length) {
|
|
103559
|
+
let r = e.events[e.eventIndex];
|
|
103560
|
+
if (e.eventIndex += 1, r === h) n.nodes && n.nodes.length && (e.iterator = n.getIterator());
|
|
103561
|
+
else {
|
|
103562
|
+
let e = this.listeners[r];
|
|
103563
|
+
e && this.visitSync(e, n.toProxy()) && t.pop();
|
|
103564
|
+
}
|
|
103565
|
+
continue;
|
|
103566
|
+
}
|
|
103567
|
+
t.pop();
|
|
103346
103568
|
}
|
|
103347
103569
|
}
|
|
103348
103570
|
warnings() {
|
|
@@ -103427,7 +103649,7 @@ var oU = /* @__PURE__ */ f({
|
|
|
103427
103649
|
})), vW = /* @__PURE__ */ G(((e, t) => {
|
|
103428
103650
|
var n = tW(), r = gW(), i = _W(), a = aW(), o = class {
|
|
103429
103651
|
constructor(e = []) {
|
|
103430
|
-
this.version = "8.5.
|
|
103652
|
+
this.version = "8.5.26", this.plugins = this.normalize(e);
|
|
103431
103653
|
}
|
|
103432
103654
|
normalize(e) {
|
|
103433
103655
|
let t = [];
|