@launchdarkly/session-replay 0.4.2 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/{LDObserve-BKvtLgZS.js → LDObserve-CCxZpVBp.js} +2 -2
- package/dist/{LDObserve-BKvtLgZS.js.map → LDObserve-CCxZpVBp.js.map} +1 -1
- package/dist/{index-DJm43n__.js → index-lR0hHWCE.js} +897 -883
- package/dist/index-lR0hHWCE.js.map +1 -0
- package/dist/session-replay.js +3 -3
- package/package.json +2 -2
- package/dist/index-DJm43n__.js.map +0 -1
|
@@ -2,14 +2,14 @@ var lu = Object.defineProperty, au = (e, t, i) => t in e ? lu(e, t, { enumerable
|
|
|
2
2
|
var r = (a) => {
|
|
3
3
|
try {
|
|
4
4
|
o(i.next(a));
|
|
5
|
-
} catch (
|
|
6
|
-
s(
|
|
5
|
+
} catch (c) {
|
|
6
|
+
s(c);
|
|
7
7
|
}
|
|
8
8
|
}, l = (a) => {
|
|
9
9
|
try {
|
|
10
10
|
o(i.throw(a));
|
|
11
|
-
} catch (
|
|
12
|
-
s(
|
|
11
|
+
} catch (c) {
|
|
12
|
+
s(c);
|
|
13
13
|
}
|
|
14
14
|
}, o = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(r, l);
|
|
15
15
|
o((i = i.apply(e, t)).next());
|
|
@@ -21,7 +21,7 @@ const Hr = /* @__PURE__ */ Object.create(null), Ve = (e, t, ...i) => {
|
|
|
21
21
|
Hr[`${e}-${t}`] || (Hr[`${e}-${t}`] = !0, Ve(e, i, ...n));
|
|
22
22
|
}, uu = (e, ...t) => cu(void 0, null, function* () {
|
|
23
23
|
try {
|
|
24
|
-
const { LDObserve: i } = yield import("./LDObserve-
|
|
24
|
+
const { LDObserve: i } = yield import("./LDObserve-CCxZpVBp.js");
|
|
25
25
|
i.recordLog(`${e}${t}`, "warn");
|
|
26
26
|
} catch {
|
|
27
27
|
}
|
|
@@ -101,14 +101,14 @@ var du = Object.defineProperty, hu = Object.defineProperties, pu = Object.getOwn
|
|
|
101
101
|
var r = (a) => {
|
|
102
102
|
try {
|
|
103
103
|
o(i.next(a));
|
|
104
|
-
} catch (
|
|
105
|
-
s(
|
|
104
|
+
} catch (c) {
|
|
105
|
+
s(c);
|
|
106
106
|
}
|
|
107
107
|
}, l = (a) => {
|
|
108
108
|
try {
|
|
109
109
|
o(i.throw(a));
|
|
110
|
-
} catch (
|
|
111
|
-
s(
|
|
110
|
+
} catch (c) {
|
|
111
|
+
s(c);
|
|
112
112
|
}
|
|
113
113
|
}, o = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(r, l);
|
|
114
114
|
o((i = i.apply(e, t)).next());
|
|
@@ -160,25 +160,25 @@ function gu(e) {
|
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
162
|
function Rl(e, t) {
|
|
163
|
-
const i = e.locationOffset.column - 1, n = "".padStart(i) + e.body, s = t.line - 1, r = e.locationOffset.line - 1, l = t.line + r, o = t.line === 1 ? i : 0, a = t.column + o,
|
|
164
|
-
`,
|
|
163
|
+
const i = e.locationOffset.column - 1, n = "".padStart(i) + e.body, s = t.line - 1, r = e.locationOffset.line - 1, l = t.line + r, o = t.line === 1 ? i : 0, a = t.column + o, c = `${e.name}:${l}:${a}
|
|
164
|
+
`, u = n.split(/\r\n|[\n\r]/g), h = u[s];
|
|
165
165
|
if (h.length > 120) {
|
|
166
166
|
const p = Math.floor(a / 80), m = a % 80, b = [];
|
|
167
167
|
for (let d = 0; d < h.length; d += 80)
|
|
168
168
|
b.push(h.slice(d, d + 80));
|
|
169
|
-
return
|
|
169
|
+
return c + Pr([
|
|
170
170
|
[`${l} |`, b[0]],
|
|
171
171
|
...b.slice(1, p + 1).map((d) => ["|", d]),
|
|
172
172
|
["|", "^".padStart(m)],
|
|
173
173
|
["|", b[p + 1]]
|
|
174
174
|
]);
|
|
175
175
|
}
|
|
176
|
-
return
|
|
176
|
+
return c + Pr([
|
|
177
177
|
// Lines specified like this: ["prefix", "string"],
|
|
178
|
-
[`${l - 1} |`,
|
|
178
|
+
[`${l - 1} |`, u[s - 1]],
|
|
179
179
|
[`${l} |`, h],
|
|
180
180
|
["|", "^".padStart(a)],
|
|
181
|
-
[`${l + 1} |`,
|
|
181
|
+
[`${l + 1} |`, u[s + 1]]
|
|
182
182
|
]);
|
|
183
183
|
}
|
|
184
184
|
function Pr(e) {
|
|
@@ -238,8 +238,8 @@ let Iu = class kl extends Error {
|
|
|
238
238
|
*/
|
|
239
239
|
constructor(t, ...i) {
|
|
240
240
|
var n, s, r;
|
|
241
|
-
const { nodes: l, source: o, positions: a, path:
|
|
242
|
-
super(t), this.name = "GraphQLError", this.path =
|
|
241
|
+
const { nodes: l, source: o, positions: a, path: c, originalError: u, extensions: h } = Zu(i);
|
|
242
|
+
super(t), this.name = "GraphQLError", this.path = c ?? void 0, this.originalError = u ?? void 0, this.nodes = Br(
|
|
243
243
|
Array.isArray(l) ? l : l ? [l] : void 0
|
|
244
244
|
);
|
|
245
245
|
const p = Br(
|
|
@@ -247,8 +247,8 @@ let Iu = class kl extends Error {
|
|
|
247
247
|
);
|
|
248
248
|
this.source = o ?? (p == null || (s = p[0]) === null || s === void 0 ? void 0 : s.source), this.positions = a ?? p?.map((b) => b.start), this.locations = a && o ? a.map((b) => fs(o, b)) : p?.map((b) => fs(b.source, b.start));
|
|
249
249
|
const m = bu(
|
|
250
|
-
|
|
251
|
-
) ?
|
|
250
|
+
u?.extensions
|
|
251
|
+
) ? u?.extensions : void 0;
|
|
252
252
|
this.extensions = (r = h ?? m) !== null && r !== void 0 ? r : /* @__PURE__ */ Object.create(null), Object.defineProperties(this, {
|
|
253
253
|
message: {
|
|
254
254
|
writable: !0,
|
|
@@ -269,8 +269,8 @@ let Iu = class kl extends Error {
|
|
|
269
269
|
originalError: {
|
|
270
270
|
enumerable: !1
|
|
271
271
|
}
|
|
272
|
-
}),
|
|
273
|
-
value:
|
|
272
|
+
}), u != null && u.stack ? Object.defineProperty(this, "stack", {
|
|
273
|
+
value: u.stack,
|
|
274
274
|
writable: !0,
|
|
275
275
|
configurable: !0
|
|
276
276
|
}) : Error.captureStackTrace ? Error.captureStackTrace(this, kl) : Object.defineProperty(this, "stack", {
|
|
@@ -509,20 +509,20 @@ function Cu(e) {
|
|
|
509
509
|
return t;
|
|
510
510
|
}
|
|
511
511
|
function Wu(e, t) {
|
|
512
|
-
const i = e.replace(/"""/g, '\\"""'), n = i.split(/\r\n|[\n\r]/g), s = n.length === 1, r = n.length > 1 && n.slice(1).every((m) => m.length === 0 || gs(m.charCodeAt(0))), l = i.endsWith('\\"""'), o = e.endsWith('"') && !l, a = e.endsWith("\\"),
|
|
512
|
+
const i = e.replace(/"""/g, '\\"""'), n = i.split(/\r\n|[\n\r]/g), s = n.length === 1, r = n.length > 1 && n.slice(1).every((m) => m.length === 0 || gs(m.charCodeAt(0))), l = i.endsWith('\\"""'), o = e.endsWith('"') && !l, a = e.endsWith("\\"), c = o || a, u = (
|
|
513
513
|
// add leading and trailing new lines only if it improves readability
|
|
514
|
-
!s || e.length > 70 ||
|
|
514
|
+
!s || e.length > 70 || c || r || l
|
|
515
515
|
);
|
|
516
516
|
let h = "";
|
|
517
517
|
const p = s && gs(e.charCodeAt(0));
|
|
518
|
-
return (
|
|
519
|
-
`), h += i, (
|
|
518
|
+
return (u && !p || r) && (h += `
|
|
519
|
+
`), h += i, (u || c) && (h += `
|
|
520
520
|
`), '"""' + h + '"""';
|
|
521
521
|
}
|
|
522
|
-
var
|
|
522
|
+
var Z;
|
|
523
523
|
(function(e) {
|
|
524
524
|
e.SOF = "<SOF>", e.EOF = "<EOF>", e.BANG = "!", e.DOLLAR = "$", e.AMP = "&", e.PAREN_L = "(", e.PAREN_R = ")", e.SPREAD = "...", e.COLON = ":", e.EQUALS = "=", e.AT = "@", e.BRACKET_L = "[", e.BRACKET_R = "]", e.BRACE_L = "{", e.PIPE = "|", e.BRACE_R = "}", e.NAME = "Name", e.INT = "Int", e.FLOAT = "Float", e.STRING = "String", e.BLOCK_STRING = "BlockString", e.COMMENT = "Comment";
|
|
525
|
-
})(
|
|
525
|
+
})(Z || (Z = {}));
|
|
526
526
|
let Ru = class {
|
|
527
527
|
/**
|
|
528
528
|
* The previously focused non-ignored token.
|
|
@@ -537,7 +537,7 @@ let Ru = class {
|
|
|
537
537
|
* The character offset at which the current line begins.
|
|
538
538
|
*/
|
|
539
539
|
constructor(t) {
|
|
540
|
-
const i = new vl(
|
|
540
|
+
const i = new vl(Z.SOF, 0, 0, 0, 0);
|
|
541
541
|
this.source = t, this.lastToken = i, this.token = i, this.line = 1, this.lineStart = 0;
|
|
542
542
|
}
|
|
543
543
|
get [Symbol.toStringTag]() {
|
|
@@ -555,7 +555,7 @@ let Ru = class {
|
|
|
555
555
|
*/
|
|
556
556
|
lookahead() {
|
|
557
557
|
let t = this.token;
|
|
558
|
-
if (t.kind !==
|
|
558
|
+
if (t.kind !== Z.EOF)
|
|
559
559
|
do
|
|
560
560
|
if (t.next)
|
|
561
561
|
t = t.next;
|
|
@@ -563,12 +563,12 @@ let Ru = class {
|
|
|
563
563
|
const i = vu(this, t.end);
|
|
564
564
|
t.next = i, i.prev = t, t = i;
|
|
565
565
|
}
|
|
566
|
-
while (t.kind ===
|
|
566
|
+
while (t.kind === Z.COMMENT);
|
|
567
567
|
return t;
|
|
568
568
|
}
|
|
569
569
|
};
|
|
570
570
|
function ku(e) {
|
|
571
|
-
return e ===
|
|
571
|
+
return e === Z.BANG || e === Z.DOLLAR || e === Z.AMP || e === Z.PAREN_L || e === Z.PAREN_R || e === Z.SPREAD || e === Z.COLON || e === Z.EQUALS || e === Z.AT || e === Z.BRACKET_L || e === Z.BRACKET_R || e === Z.BRACE_L || e === Z.PIPE || e === Z.BRACE_R;
|
|
572
572
|
}
|
|
573
573
|
function Yt(e) {
|
|
574
574
|
return e >= 0 && e <= 55295 || e >= 57344 && e <= 1114111;
|
|
@@ -585,7 +585,7 @@ function Ll(e) {
|
|
|
585
585
|
function lt(e, t) {
|
|
586
586
|
const i = e.source.body.codePointAt(t);
|
|
587
587
|
if (i === void 0)
|
|
588
|
-
return
|
|
588
|
+
return Z.EOF;
|
|
589
589
|
if (i >= 32 && i <= 126) {
|
|
590
590
|
const n = String.fromCodePoint(i);
|
|
591
591
|
return n === '"' ? `'"'` : `"${n}"`;
|
|
@@ -617,35 +617,35 @@ function vu(e, t) {
|
|
|
617
617
|
case 35:
|
|
618
618
|
return wu(e, s);
|
|
619
619
|
case 33:
|
|
620
|
-
return le(e,
|
|
620
|
+
return le(e, Z.BANG, s, s + 1);
|
|
621
621
|
case 36:
|
|
622
|
-
return le(e,
|
|
622
|
+
return le(e, Z.DOLLAR, s, s + 1);
|
|
623
623
|
case 38:
|
|
624
|
-
return le(e,
|
|
624
|
+
return le(e, Z.AMP, s, s + 1);
|
|
625
625
|
case 40:
|
|
626
|
-
return le(e,
|
|
626
|
+
return le(e, Z.PAREN_L, s, s + 1);
|
|
627
627
|
case 41:
|
|
628
|
-
return le(e,
|
|
628
|
+
return le(e, Z.PAREN_R, s, s + 1);
|
|
629
629
|
case 46:
|
|
630
630
|
if (i.charCodeAt(s + 1) === 46 && i.charCodeAt(s + 2) === 46)
|
|
631
|
-
return le(e,
|
|
631
|
+
return le(e, Z.SPREAD, s, s + 3);
|
|
632
632
|
break;
|
|
633
633
|
case 58:
|
|
634
|
-
return le(e,
|
|
634
|
+
return le(e, Z.COLON, s, s + 1);
|
|
635
635
|
case 61:
|
|
636
|
-
return le(e,
|
|
636
|
+
return le(e, Z.EQUALS, s, s + 1);
|
|
637
637
|
case 64:
|
|
638
|
-
return le(e,
|
|
638
|
+
return le(e, Z.AT, s, s + 1);
|
|
639
639
|
case 91:
|
|
640
|
-
return le(e,
|
|
640
|
+
return le(e, Z.BRACKET_L, s, s + 1);
|
|
641
641
|
case 93:
|
|
642
|
-
return le(e,
|
|
642
|
+
return le(e, Z.BRACKET_R, s, s + 1);
|
|
643
643
|
case 123:
|
|
644
|
-
return le(e,
|
|
644
|
+
return le(e, Z.BRACE_L, s, s + 1);
|
|
645
645
|
case 124:
|
|
646
|
-
return le(e,
|
|
646
|
+
return le(e, Z.PIPE, s, s + 1);
|
|
647
647
|
case 125:
|
|
648
|
-
return le(e,
|
|
648
|
+
return le(e, Z.BRACE_R, s, s + 1);
|
|
649
649
|
case 34:
|
|
650
650
|
return i.charCodeAt(s + 1) === 34 && i.charCodeAt(s + 2) === 34 ? Yu(e, s) : Tu(e, s);
|
|
651
651
|
}
|
|
@@ -659,7 +659,7 @@ function vu(e, t) {
|
|
|
659
659
|
r === 39 ? `Unexpected single quote character ('), did you mean to use a double quote (")?` : Yt(r) || xn(i, s) ? `Unexpected character: ${lt(e, s)}.` : `Invalid character: ${lt(e, s)}.`
|
|
660
660
|
);
|
|
661
661
|
}
|
|
662
|
-
return le(e,
|
|
662
|
+
return le(e, Z.EOF, n, n);
|
|
663
663
|
}
|
|
664
664
|
function wu(e, t) {
|
|
665
665
|
const i = e.source.body, n = i.length;
|
|
@@ -677,7 +677,7 @@ function wu(e, t) {
|
|
|
677
677
|
}
|
|
678
678
|
return le(
|
|
679
679
|
e,
|
|
680
|
-
|
|
680
|
+
Z.COMMENT,
|
|
681
681
|
t,
|
|
682
682
|
s,
|
|
683
683
|
i.slice(t + 1, s)
|
|
@@ -709,7 +709,7 @@ function xu(e, t, i) {
|
|
|
709
709
|
);
|
|
710
710
|
return le(
|
|
711
711
|
e,
|
|
712
|
-
l ?
|
|
712
|
+
l ? Z.FLOAT : Z.INT,
|
|
713
713
|
t,
|
|
714
714
|
s,
|
|
715
715
|
n.slice(t, s)
|
|
@@ -737,7 +737,7 @@ function Tu(e, t) {
|
|
|
737
737
|
for (; s < n; ) {
|
|
738
738
|
const o = i.charCodeAt(s);
|
|
739
739
|
if (o === 34)
|
|
740
|
-
return l += i.slice(r, s), le(e,
|
|
740
|
+
return l += i.slice(r, s), le(e, Z.STRING, t, s + 1, l);
|
|
741
741
|
if (o === 92) {
|
|
742
742
|
l += i.slice(r, s);
|
|
743
743
|
const a = i.charCodeAt(s + 1) === 117 ? i.charCodeAt(s + 2) === 123 ? Nu(e, s) : Lu(e, s) : Ju(e, s);
|
|
@@ -873,29 +873,29 @@ function Yu(e, t) {
|
|
|
873
873
|
let s = e.lineStart, r = t + 3, l = r, o = "";
|
|
874
874
|
const a = [];
|
|
875
875
|
for (; r < n; ) {
|
|
876
|
-
const
|
|
877
|
-
if (
|
|
876
|
+
const c = i.charCodeAt(r);
|
|
877
|
+
if (c === 34 && i.charCodeAt(r + 1) === 34 && i.charCodeAt(r + 2) === 34) {
|
|
878
878
|
o += i.slice(l, r), a.push(o);
|
|
879
|
-
const
|
|
879
|
+
const u = le(
|
|
880
880
|
e,
|
|
881
|
-
|
|
881
|
+
Z.BLOCK_STRING,
|
|
882
882
|
t,
|
|
883
883
|
r + 3,
|
|
884
884
|
// Return a string of the lines joined with U+000A.
|
|
885
885
|
Xu(a).join(`
|
|
886
886
|
`)
|
|
887
887
|
);
|
|
888
|
-
return e.line += a.length - 1, e.lineStart = s,
|
|
888
|
+
return e.line += a.length - 1, e.lineStart = s, u;
|
|
889
889
|
}
|
|
890
|
-
if (
|
|
890
|
+
if (c === 92 && i.charCodeAt(r + 1) === 34 && i.charCodeAt(r + 2) === 34 && i.charCodeAt(r + 3) === 34) {
|
|
891
891
|
o += i.slice(l, r), l = r + 1, r += 4;
|
|
892
892
|
continue;
|
|
893
893
|
}
|
|
894
|
-
if (
|
|
895
|
-
o += i.slice(l, r), a.push(o),
|
|
894
|
+
if (c === 10 || c === 13) {
|
|
895
|
+
o += i.slice(l, r), a.push(o), c === 13 && i.charCodeAt(r + 1) === 10 ? r += 2 : ++r, o = "", l = r, s = r;
|
|
896
896
|
continue;
|
|
897
897
|
}
|
|
898
|
-
if (Yt(
|
|
898
|
+
if (Yt(c))
|
|
899
899
|
++r;
|
|
900
900
|
else if (xn(i, r))
|
|
901
901
|
r += 2;
|
|
@@ -923,7 +923,7 @@ function Fu(e, t) {
|
|
|
923
923
|
}
|
|
924
924
|
return le(
|
|
925
925
|
e,
|
|
926
|
-
|
|
926
|
+
Z.NAME,
|
|
927
927
|
t,
|
|
928
928
|
s,
|
|
929
929
|
i.slice(t, s)
|
|
@@ -1060,7 +1060,7 @@ let Du = class {
|
|
|
1060
1060
|
* Converts a name lex token into a name parse node.
|
|
1061
1061
|
*/
|
|
1062
1062
|
parseName() {
|
|
1063
|
-
const t = this.expectToken(
|
|
1063
|
+
const t = this.expectToken(Z.NAME);
|
|
1064
1064
|
return this.node(t, {
|
|
1065
1065
|
kind: L.NAME,
|
|
1066
1066
|
value: t.value
|
|
@@ -1074,9 +1074,9 @@ let Du = class {
|
|
|
1074
1074
|
return this.node(this._lexer.token, {
|
|
1075
1075
|
kind: L.DOCUMENT,
|
|
1076
1076
|
definitions: this.many(
|
|
1077
|
-
|
|
1077
|
+
Z.SOF,
|
|
1078
1078
|
this.parseDefinition,
|
|
1079
|
-
|
|
1079
|
+
Z.EOF
|
|
1080
1080
|
)
|
|
1081
1081
|
});
|
|
1082
1082
|
}
|
|
@@ -1104,10 +1104,10 @@ let Du = class {
|
|
|
1104
1104
|
* - InputObjectTypeDefinition
|
|
1105
1105
|
*/
|
|
1106
1106
|
parseDefinition() {
|
|
1107
|
-
if (this.peek(
|
|
1107
|
+
if (this.peek(Z.BRACE_L))
|
|
1108
1108
|
return this.parseOperationDefinition();
|
|
1109
1109
|
const t = this.peekDescription(), i = t ? this._lexer.lookahead() : this._lexer.token;
|
|
1110
|
-
if (i.kind ===
|
|
1110
|
+
if (i.kind === Z.NAME) {
|
|
1111
1111
|
switch (i.value) {
|
|
1112
1112
|
case "schema":
|
|
1113
1113
|
return this.parseSchemaDefinition();
|
|
@@ -1153,7 +1153,7 @@ let Du = class {
|
|
|
1153
1153
|
*/
|
|
1154
1154
|
parseOperationDefinition() {
|
|
1155
1155
|
const t = this._lexer.token;
|
|
1156
|
-
if (this.peek(
|
|
1156
|
+
if (this.peek(Z.BRACE_L))
|
|
1157
1157
|
return this.node(t, {
|
|
1158
1158
|
kind: L.OPERATION_DEFINITION,
|
|
1159
1159
|
operation: It.QUERY,
|
|
@@ -1164,7 +1164,7 @@ let Du = class {
|
|
|
1164
1164
|
});
|
|
1165
1165
|
const i = this.parseOperationType();
|
|
1166
1166
|
let n;
|
|
1167
|
-
return this.peek(
|
|
1167
|
+
return this.peek(Z.NAME) && (n = this.parseName()), this.node(t, {
|
|
1168
1168
|
kind: L.OPERATION_DEFINITION,
|
|
1169
1169
|
operation: i,
|
|
1170
1170
|
name: n,
|
|
@@ -1177,7 +1177,7 @@ let Du = class {
|
|
|
1177
1177
|
* OperationType : one of query mutation subscription
|
|
1178
1178
|
*/
|
|
1179
1179
|
parseOperationType() {
|
|
1180
|
-
const t = this.expectToken(
|
|
1180
|
+
const t = this.expectToken(Z.NAME);
|
|
1181
1181
|
switch (t.value) {
|
|
1182
1182
|
case "query":
|
|
1183
1183
|
return It.QUERY;
|
|
@@ -1193,9 +1193,9 @@ let Du = class {
|
|
|
1193
1193
|
*/
|
|
1194
1194
|
parseVariableDefinitions() {
|
|
1195
1195
|
return this.optionalMany(
|
|
1196
|
-
|
|
1196
|
+
Z.PAREN_L,
|
|
1197
1197
|
this.parseVariableDefinition,
|
|
1198
|
-
|
|
1198
|
+
Z.PAREN_R
|
|
1199
1199
|
);
|
|
1200
1200
|
}
|
|
1201
1201
|
/**
|
|
@@ -1205,8 +1205,8 @@ let Du = class {
|
|
|
1205
1205
|
return this.node(this._lexer.token, {
|
|
1206
1206
|
kind: L.VARIABLE_DEFINITION,
|
|
1207
1207
|
variable: this.parseVariable(),
|
|
1208
|
-
type: (this.expectToken(
|
|
1209
|
-
defaultValue: this.expectOptionalToken(
|
|
1208
|
+
type: (this.expectToken(Z.COLON), this.parseTypeReference()),
|
|
1209
|
+
defaultValue: this.expectOptionalToken(Z.EQUALS) ? this.parseConstValueLiteral() : void 0,
|
|
1210
1210
|
directives: this.parseConstDirectives()
|
|
1211
1211
|
});
|
|
1212
1212
|
}
|
|
@@ -1215,7 +1215,7 @@ let Du = class {
|
|
|
1215
1215
|
*/
|
|
1216
1216
|
parseVariable() {
|
|
1217
1217
|
const t = this._lexer.token;
|
|
1218
|
-
return this.expectToken(
|
|
1218
|
+
return this.expectToken(Z.DOLLAR), this.node(t, {
|
|
1219
1219
|
kind: L.VARIABLE,
|
|
1220
1220
|
name: this.parseName()
|
|
1221
1221
|
});
|
|
@@ -1229,9 +1229,9 @@ let Du = class {
|
|
|
1229
1229
|
return this.node(this._lexer.token, {
|
|
1230
1230
|
kind: L.SELECTION_SET,
|
|
1231
1231
|
selections: this.many(
|
|
1232
|
-
|
|
1232
|
+
Z.BRACE_L,
|
|
1233
1233
|
this.parseSelection,
|
|
1234
|
-
|
|
1234
|
+
Z.BRACE_R
|
|
1235
1235
|
)
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
@@ -1242,7 +1242,7 @@ let Du = class {
|
|
|
1242
1242
|
* - InlineFragment
|
|
1243
1243
|
*/
|
|
1244
1244
|
parseSelection() {
|
|
1245
|
-
return this.peek(
|
|
1245
|
+
return this.peek(Z.SPREAD) ? this.parseFragment() : this.parseField();
|
|
1246
1246
|
}
|
|
1247
1247
|
/**
|
|
1248
1248
|
* Field : Alias? Name Arguments? Directives? SelectionSet?
|
|
@@ -1252,13 +1252,13 @@ let Du = class {
|
|
|
1252
1252
|
parseField() {
|
|
1253
1253
|
const t = this._lexer.token, i = this.parseName();
|
|
1254
1254
|
let n, s;
|
|
1255
|
-
return this.expectOptionalToken(
|
|
1255
|
+
return this.expectOptionalToken(Z.COLON) ? (n = i, s = this.parseName()) : s = i, this.node(t, {
|
|
1256
1256
|
kind: L.FIELD,
|
|
1257
1257
|
alias: n,
|
|
1258
1258
|
name: s,
|
|
1259
1259
|
arguments: this.parseArguments(!1),
|
|
1260
1260
|
directives: this.parseDirectives(!1),
|
|
1261
|
-
selectionSet: this.peek(
|
|
1261
|
+
selectionSet: this.peek(Z.BRACE_L) ? this.parseSelectionSet() : void 0
|
|
1262
1262
|
});
|
|
1263
1263
|
}
|
|
1264
1264
|
/**
|
|
@@ -1266,14 +1266,14 @@ let Du = class {
|
|
|
1266
1266
|
*/
|
|
1267
1267
|
parseArguments(t) {
|
|
1268
1268
|
const i = t ? this.parseConstArgument : this.parseArgument;
|
|
1269
|
-
return this.optionalMany(
|
|
1269
|
+
return this.optionalMany(Z.PAREN_L, i, Z.PAREN_R);
|
|
1270
1270
|
}
|
|
1271
1271
|
/**
|
|
1272
1272
|
* Argument[Const] : Name : Value[?Const]
|
|
1273
1273
|
*/
|
|
1274
1274
|
parseArgument(t = !1) {
|
|
1275
1275
|
const i = this._lexer.token, n = this.parseName();
|
|
1276
|
-
return this.expectToken(
|
|
1276
|
+
return this.expectToken(Z.COLON), this.node(i, {
|
|
1277
1277
|
kind: L.ARGUMENT,
|
|
1278
1278
|
name: n,
|
|
1279
1279
|
value: this.parseValueLiteral(t)
|
|
@@ -1292,9 +1292,9 @@ let Du = class {
|
|
|
1292
1292
|
*/
|
|
1293
1293
|
parseFragment() {
|
|
1294
1294
|
const t = this._lexer.token;
|
|
1295
|
-
this.expectToken(
|
|
1295
|
+
this.expectToken(Z.SPREAD);
|
|
1296
1296
|
const i = this.expectOptionalKeyword("on");
|
|
1297
|
-
return !i && this.peek(
|
|
1297
|
+
return !i && this.peek(Z.NAME) ? this.node(t, {
|
|
1298
1298
|
kind: L.FRAGMENT_SPREAD,
|
|
1299
1299
|
name: this.parseFragmentName(),
|
|
1300
1300
|
directives: this.parseDirectives(!1)
|
|
@@ -1358,24 +1358,24 @@ let Du = class {
|
|
|
1358
1358
|
parseValueLiteral(t) {
|
|
1359
1359
|
const i = this._lexer.token;
|
|
1360
1360
|
switch (i.kind) {
|
|
1361
|
-
case
|
|
1361
|
+
case Z.BRACKET_L:
|
|
1362
1362
|
return this.parseList(t);
|
|
1363
|
-
case
|
|
1363
|
+
case Z.BRACE_L:
|
|
1364
1364
|
return this.parseObject(t);
|
|
1365
|
-
case
|
|
1365
|
+
case Z.INT:
|
|
1366
1366
|
return this.advanceLexer(), this.node(i, {
|
|
1367
1367
|
kind: L.INT,
|
|
1368
1368
|
value: i.value
|
|
1369
1369
|
});
|
|
1370
|
-
case
|
|
1370
|
+
case Z.FLOAT:
|
|
1371
1371
|
return this.advanceLexer(), this.node(i, {
|
|
1372
1372
|
kind: L.FLOAT,
|
|
1373
1373
|
value: i.value
|
|
1374
1374
|
});
|
|
1375
|
-
case
|
|
1376
|
-
case
|
|
1375
|
+
case Z.STRING:
|
|
1376
|
+
case Z.BLOCK_STRING:
|
|
1377
1377
|
return this.parseStringLiteral();
|
|
1378
|
-
case
|
|
1378
|
+
case Z.NAME:
|
|
1379
1379
|
switch (this.advanceLexer(), i.value) {
|
|
1380
1380
|
case "true":
|
|
1381
1381
|
return this.node(i, {
|
|
@@ -1397,9 +1397,9 @@ let Du = class {
|
|
|
1397
1397
|
value: i.value
|
|
1398
1398
|
});
|
|
1399
1399
|
}
|
|
1400
|
-
case
|
|
1400
|
+
case Z.DOLLAR:
|
|
1401
1401
|
if (t)
|
|
1402
|
-
if (this.expectToken(
|
|
1402
|
+
if (this.expectToken(Z.DOLLAR), this._lexer.token.kind === Z.NAME) {
|
|
1403
1403
|
const n = this._lexer.token.value;
|
|
1404
1404
|
throw ue(
|
|
1405
1405
|
this._lexer.source,
|
|
@@ -1421,7 +1421,7 @@ let Du = class {
|
|
|
1421
1421
|
return this.advanceLexer(), this.node(t, {
|
|
1422
1422
|
kind: L.STRING,
|
|
1423
1423
|
value: t.value,
|
|
1424
|
-
block: t.kind ===
|
|
1424
|
+
block: t.kind === Z.BLOCK_STRING
|
|
1425
1425
|
});
|
|
1426
1426
|
}
|
|
1427
1427
|
/**
|
|
@@ -1433,7 +1433,7 @@ let Du = class {
|
|
|
1433
1433
|
const i = () => this.parseValueLiteral(t);
|
|
1434
1434
|
return this.node(this._lexer.token, {
|
|
1435
1435
|
kind: L.LIST,
|
|
1436
|
-
values: this.any(
|
|
1436
|
+
values: this.any(Z.BRACKET_L, i, Z.BRACKET_R)
|
|
1437
1437
|
});
|
|
1438
1438
|
}
|
|
1439
1439
|
/**
|
|
@@ -1447,7 +1447,7 @@ let Du = class {
|
|
|
1447
1447
|
const i = () => this.parseObjectField(t);
|
|
1448
1448
|
return this.node(this._lexer.token, {
|
|
1449
1449
|
kind: L.OBJECT,
|
|
1450
|
-
fields: this.any(
|
|
1450
|
+
fields: this.any(Z.BRACE_L, i, Z.BRACE_R)
|
|
1451
1451
|
});
|
|
1452
1452
|
}
|
|
1453
1453
|
/**
|
|
@@ -1455,7 +1455,7 @@ let Du = class {
|
|
|
1455
1455
|
*/
|
|
1456
1456
|
parseObjectField(t) {
|
|
1457
1457
|
const i = this._lexer.token, n = this.parseName();
|
|
1458
|
-
return this.expectToken(
|
|
1458
|
+
return this.expectToken(Z.COLON), this.node(i, {
|
|
1459
1459
|
kind: L.OBJECT_FIELD,
|
|
1460
1460
|
name: n,
|
|
1461
1461
|
value: this.parseValueLiteral(t)
|
|
@@ -1467,7 +1467,7 @@ let Du = class {
|
|
|
1467
1467
|
*/
|
|
1468
1468
|
parseDirectives(t) {
|
|
1469
1469
|
const i = [];
|
|
1470
|
-
for (; this.peek(
|
|
1470
|
+
for (; this.peek(Z.AT); )
|
|
1471
1471
|
i.push(this.parseDirective(t));
|
|
1472
1472
|
return i;
|
|
1473
1473
|
}
|
|
@@ -1481,7 +1481,7 @@ let Du = class {
|
|
|
1481
1481
|
*/
|
|
1482
1482
|
parseDirective(t) {
|
|
1483
1483
|
const i = this._lexer.token;
|
|
1484
|
-
return this.expectToken(
|
|
1484
|
+
return this.expectToken(Z.AT), this.node(i, {
|
|
1485
1485
|
kind: L.DIRECTIVE,
|
|
1486
1486
|
name: this.parseName(),
|
|
1487
1487
|
arguments: this.parseArguments(t)
|
|
@@ -1497,15 +1497,15 @@ let Du = class {
|
|
|
1497
1497
|
parseTypeReference() {
|
|
1498
1498
|
const t = this._lexer.token;
|
|
1499
1499
|
let i;
|
|
1500
|
-
if (this.expectOptionalToken(
|
|
1500
|
+
if (this.expectOptionalToken(Z.BRACKET_L)) {
|
|
1501
1501
|
const n = this.parseTypeReference();
|
|
1502
|
-
this.expectToken(
|
|
1502
|
+
this.expectToken(Z.BRACKET_R), i = this.node(t, {
|
|
1503
1503
|
kind: L.LIST_TYPE,
|
|
1504
1504
|
type: n
|
|
1505
1505
|
});
|
|
1506
1506
|
} else
|
|
1507
1507
|
i = this.parseNamedType();
|
|
1508
|
-
return this.expectOptionalToken(
|
|
1508
|
+
return this.expectOptionalToken(Z.BANG) ? this.node(t, {
|
|
1509
1509
|
kind: L.NON_NULL_TYPE,
|
|
1510
1510
|
type: i
|
|
1511
1511
|
}) : i;
|
|
@@ -1521,7 +1521,7 @@ let Du = class {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
// Implements the parsing rules in the Type Definition section.
|
|
1523
1523
|
peekDescription() {
|
|
1524
|
-
return this.peek(
|
|
1524
|
+
return this.peek(Z.STRING) || this.peek(Z.BLOCK_STRING);
|
|
1525
1525
|
}
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Description : StringValue
|
|
@@ -1539,9 +1539,9 @@ let Du = class {
|
|
|
1539
1539
|
const t = this._lexer.token, i = this.parseDescription();
|
|
1540
1540
|
this.expectKeyword("schema");
|
|
1541
1541
|
const n = this.parseConstDirectives(), s = this.many(
|
|
1542
|
-
|
|
1542
|
+
Z.BRACE_L,
|
|
1543
1543
|
this.parseOperationTypeDefinition,
|
|
1544
|
-
|
|
1544
|
+
Z.BRACE_R
|
|
1545
1545
|
);
|
|
1546
1546
|
return this.node(t, {
|
|
1547
1547
|
kind: L.SCHEMA_DEFINITION,
|
|
@@ -1555,7 +1555,7 @@ let Du = class {
|
|
|
1555
1555
|
*/
|
|
1556
1556
|
parseOperationTypeDefinition() {
|
|
1557
1557
|
const t = this._lexer.token, i = this.parseOperationType();
|
|
1558
|
-
this.expectToken(
|
|
1558
|
+
this.expectToken(Z.COLON);
|
|
1559
1559
|
const n = this.parseNamedType();
|
|
1560
1560
|
return this.node(t, {
|
|
1561
1561
|
kind: L.OPERATION_TYPE_DEFINITION,
|
|
@@ -1601,7 +1601,7 @@ let Du = class {
|
|
|
1601
1601
|
* - ImplementsInterfaces & NamedType
|
|
1602
1602
|
*/
|
|
1603
1603
|
parseImplementsInterfaces() {
|
|
1604
|
-
return this.expectOptionalKeyword("implements") ? this.delimitedMany(
|
|
1604
|
+
return this.expectOptionalKeyword("implements") ? this.delimitedMany(Z.AMP, this.parseNamedType) : [];
|
|
1605
1605
|
}
|
|
1606
1606
|
/**
|
|
1607
1607
|
* ```
|
|
@@ -1610,9 +1610,9 @@ let Du = class {
|
|
|
1610
1610
|
*/
|
|
1611
1611
|
parseFieldsDefinition() {
|
|
1612
1612
|
return this.optionalMany(
|
|
1613
|
-
|
|
1613
|
+
Z.BRACE_L,
|
|
1614
1614
|
this.parseFieldDefinition,
|
|
1615
|
-
|
|
1615
|
+
Z.BRACE_R
|
|
1616
1616
|
);
|
|
1617
1617
|
}
|
|
1618
1618
|
/**
|
|
@@ -1621,7 +1621,7 @@ let Du = class {
|
|
|
1621
1621
|
*/
|
|
1622
1622
|
parseFieldDefinition() {
|
|
1623
1623
|
const t = this._lexer.token, i = this.parseDescription(), n = this.parseName(), s = this.parseArgumentDefs();
|
|
1624
|
-
this.expectToken(
|
|
1624
|
+
this.expectToken(Z.COLON);
|
|
1625
1625
|
const r = this.parseTypeReference(), l = this.parseConstDirectives();
|
|
1626
1626
|
return this.node(t, {
|
|
1627
1627
|
kind: L.FIELD_DEFINITION,
|
|
@@ -1637,9 +1637,9 @@ let Du = class {
|
|
|
1637
1637
|
*/
|
|
1638
1638
|
parseArgumentDefs() {
|
|
1639
1639
|
return this.optionalMany(
|
|
1640
|
-
|
|
1640
|
+
Z.PAREN_L,
|
|
1641
1641
|
this.parseInputValueDef,
|
|
1642
|
-
|
|
1642
|
+
Z.PAREN_R
|
|
1643
1643
|
);
|
|
1644
1644
|
}
|
|
1645
1645
|
/**
|
|
@@ -1648,10 +1648,10 @@ let Du = class {
|
|
|
1648
1648
|
*/
|
|
1649
1649
|
parseInputValueDef() {
|
|
1650
1650
|
const t = this._lexer.token, i = this.parseDescription(), n = this.parseName();
|
|
1651
|
-
this.expectToken(
|
|
1651
|
+
this.expectToken(Z.COLON);
|
|
1652
1652
|
const s = this.parseTypeReference();
|
|
1653
1653
|
let r;
|
|
1654
|
-
this.expectOptionalToken(
|
|
1654
|
+
this.expectOptionalToken(Z.EQUALS) && (r = this.parseConstValueLiteral());
|
|
1655
1655
|
const l = this.parseConstDirectives();
|
|
1656
1656
|
return this.node(t, {
|
|
1657
1657
|
kind: L.INPUT_VALUE_DEFINITION,
|
|
@@ -1701,7 +1701,7 @@ let Du = class {
|
|
|
1701
1701
|
* - UnionMemberTypes | NamedType
|
|
1702
1702
|
*/
|
|
1703
1703
|
parseUnionMemberTypes() {
|
|
1704
|
-
return this.expectOptionalToken(
|
|
1704
|
+
return this.expectOptionalToken(Z.EQUALS) ? this.delimitedMany(Z.PIPE, this.parseNamedType) : [];
|
|
1705
1705
|
}
|
|
1706
1706
|
/**
|
|
1707
1707
|
* EnumTypeDefinition :
|
|
@@ -1726,9 +1726,9 @@ let Du = class {
|
|
|
1726
1726
|
*/
|
|
1727
1727
|
parseEnumValuesDefinition() {
|
|
1728
1728
|
return this.optionalMany(
|
|
1729
|
-
|
|
1729
|
+
Z.BRACE_L,
|
|
1730
1730
|
this.parseEnumValueDefinition,
|
|
1731
|
-
|
|
1731
|
+
Z.BRACE_R
|
|
1732
1732
|
);
|
|
1733
1733
|
}
|
|
1734
1734
|
/**
|
|
@@ -1780,9 +1780,9 @@ let Du = class {
|
|
|
1780
1780
|
*/
|
|
1781
1781
|
parseInputFieldsDefinition() {
|
|
1782
1782
|
return this.optionalMany(
|
|
1783
|
-
|
|
1783
|
+
Z.BRACE_L,
|
|
1784
1784
|
this.parseInputValueDef,
|
|
1785
|
-
|
|
1785
|
+
Z.BRACE_R
|
|
1786
1786
|
);
|
|
1787
1787
|
}
|
|
1788
1788
|
/**
|
|
@@ -1800,7 +1800,7 @@ let Du = class {
|
|
|
1800
1800
|
*/
|
|
1801
1801
|
parseTypeSystemExtension() {
|
|
1802
1802
|
const t = this._lexer.lookahead();
|
|
1803
|
-
if (t.kind ===
|
|
1803
|
+
if (t.kind === Z.NAME)
|
|
1804
1804
|
switch (t.value) {
|
|
1805
1805
|
case "schema":
|
|
1806
1806
|
return this.parseSchemaExtension();
|
|
@@ -1830,9 +1830,9 @@ let Du = class {
|
|
|
1830
1830
|
const t = this._lexer.token;
|
|
1831
1831
|
this.expectKeyword("extend"), this.expectKeyword("schema");
|
|
1832
1832
|
const i = this.parseConstDirectives(), n = this.optionalMany(
|
|
1833
|
-
|
|
1833
|
+
Z.BRACE_L,
|
|
1834
1834
|
this.parseOperationTypeDefinition,
|
|
1835
|
-
|
|
1835
|
+
Z.BRACE_R
|
|
1836
1836
|
);
|
|
1837
1837
|
if (i.length === 0 && n.length === 0)
|
|
1838
1838
|
throw this.unexpected();
|
|
@@ -1960,7 +1960,7 @@ let Du = class {
|
|
|
1960
1960
|
*/
|
|
1961
1961
|
parseDirectiveDefinition() {
|
|
1962
1962
|
const t = this._lexer.token, i = this.parseDescription();
|
|
1963
|
-
this.expectKeyword("directive"), this.expectToken(
|
|
1963
|
+
this.expectKeyword("directive"), this.expectToken(Z.AT);
|
|
1964
1964
|
const n = this.parseName(), s = this.parseArgumentDefs(), r = this.expectOptionalKeyword("repeatable");
|
|
1965
1965
|
this.expectKeyword("on");
|
|
1966
1966
|
const l = this.parseDirectiveLocations();
|
|
@@ -1979,7 +1979,7 @@ let Du = class {
|
|
|
1979
1979
|
* - DirectiveLocations | DirectiveLocation
|
|
1980
1980
|
*/
|
|
1981
1981
|
parseDirectiveLocations() {
|
|
1982
|
-
return this.delimitedMany(
|
|
1982
|
+
return this.delimitedMany(Z.PIPE, this.parseDirectiveLocation);
|
|
1983
1983
|
}
|
|
1984
1984
|
/*
|
|
1985
1985
|
* DirectiveLocation :
|
|
@@ -2060,7 +2060,7 @@ let Du = class {
|
|
|
2060
2060
|
*/
|
|
2061
2061
|
expectKeyword(t) {
|
|
2062
2062
|
const i = this._lexer.token;
|
|
2063
|
-
if (i.kind ===
|
|
2063
|
+
if (i.kind === Z.NAME && i.value === t)
|
|
2064
2064
|
this.advanceLexer();
|
|
2065
2065
|
else
|
|
2066
2066
|
throw ue(
|
|
@@ -2075,7 +2075,7 @@ let Du = class {
|
|
|
2075
2075
|
*/
|
|
2076
2076
|
expectOptionalKeyword(t) {
|
|
2077
2077
|
const i = this._lexer.token;
|
|
2078
|
-
return i.kind ===
|
|
2078
|
+
return i.kind === Z.NAME && i.value === t ? (this.advanceLexer(), !0) : !1;
|
|
2079
2079
|
}
|
|
2080
2080
|
/**
|
|
2081
2081
|
* Helper function for creating an error when an unexpected lexed token is encountered.
|
|
@@ -2144,7 +2144,7 @@ let Du = class {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
advanceLexer() {
|
|
2146
2146
|
const { maxTokens: t } = this._options, i = this._lexer.advance();
|
|
2147
|
-
if (i.kind !==
|
|
2147
|
+
if (i.kind !== Z.EOF && (++this._tokenCounter, t !== void 0 && this._tokenCounter > t))
|
|
2148
2148
|
throw ue(
|
|
2149
2149
|
this._lexer.source,
|
|
2150
2150
|
i.start,
|
|
@@ -2335,54 +2335,54 @@ const _u = [
|
|
|
2335
2335
|
], $u = Object.freeze({});
|
|
2336
2336
|
function qu(e, t, i = wl) {
|
|
2337
2337
|
const n = /* @__PURE__ */ new Map();
|
|
2338
|
-
for (const
|
|
2339
|
-
n.set(
|
|
2340
|
-
let s, r = Array.isArray(e), l = [e], o = -1, a = [],
|
|
2338
|
+
for (const I of Object.values(L))
|
|
2339
|
+
n.set(I, ed(t, I));
|
|
2340
|
+
let s, r = Array.isArray(e), l = [e], o = -1, a = [], c = e, u, h;
|
|
2341
2341
|
const p = [], m = [];
|
|
2342
2342
|
do {
|
|
2343
2343
|
o++;
|
|
2344
|
-
const
|
|
2345
|
-
if (
|
|
2346
|
-
if (
|
|
2344
|
+
const I = o === l.length, V = I && a.length !== 0;
|
|
2345
|
+
if (I) {
|
|
2346
|
+
if (u = m.length === 0 ? void 0 : p[p.length - 1], c = h, h = m.pop(), V)
|
|
2347
2347
|
if (r) {
|
|
2348
|
-
|
|
2349
|
-
let
|
|
2348
|
+
c = c.slice();
|
|
2349
|
+
let X = 0;
|
|
2350
2350
|
for (const [G, k] of a) {
|
|
2351
|
-
const v = G -
|
|
2352
|
-
k === null ? (
|
|
2351
|
+
const v = G - X;
|
|
2352
|
+
k === null ? (c.splice(v, 1), X++) : c[v] = k;
|
|
2353
2353
|
}
|
|
2354
2354
|
} else {
|
|
2355
|
-
|
|
2356
|
-
for (const [
|
|
2357
|
-
|
|
2355
|
+
c = z({}, c);
|
|
2356
|
+
for (const [X, G] of a)
|
|
2357
|
+
c[X] = G;
|
|
2358
2358
|
}
|
|
2359
2359
|
o = s.index, l = s.keys, a = s.edits, r = s.inArray, s = s.prev;
|
|
2360
2360
|
} else if (h) {
|
|
2361
|
-
if (
|
|
2361
|
+
if (u = r ? o : l[o], c = h[u], c == null)
|
|
2362
2362
|
continue;
|
|
2363
|
-
p.push(
|
|
2363
|
+
p.push(u);
|
|
2364
2364
|
}
|
|
2365
|
-
let
|
|
2366
|
-
if (!Array.isArray(
|
|
2365
|
+
let W;
|
|
2366
|
+
if (!Array.isArray(c)) {
|
|
2367
2367
|
var b, d;
|
|
2368
|
-
Dr(
|
|
2369
|
-
const
|
|
2370
|
-
if (
|
|
2368
|
+
Dr(c) || ji(!1, `Invalid AST Node: ${ur(c)}.`);
|
|
2369
|
+
const X = I ? (b = n.get(c.kind)) === null || b === void 0 ? void 0 : b.leave : (d = n.get(c.kind)) === null || d === void 0 ? void 0 : d.enter;
|
|
2370
|
+
if (W = X?.call(t, c, u, h, p, m), W === $u)
|
|
2371
2371
|
break;
|
|
2372
|
-
if (
|
|
2373
|
-
if (!
|
|
2372
|
+
if (W === !1) {
|
|
2373
|
+
if (!I) {
|
|
2374
2374
|
p.pop();
|
|
2375
2375
|
continue;
|
|
2376
2376
|
}
|
|
2377
|
-
} else if (
|
|
2378
|
-
if (Dr(
|
|
2379
|
-
|
|
2377
|
+
} else if (W !== void 0 && (a.push([u, W]), !I))
|
|
2378
|
+
if (Dr(W))
|
|
2379
|
+
c = W;
|
|
2380
2380
|
else {
|
|
2381
2381
|
p.pop();
|
|
2382
2382
|
continue;
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
|
-
if (
|
|
2385
|
+
if (W === void 0 && V && a.push([u, c]), I)
|
|
2386
2386
|
p.pop();
|
|
2387
2387
|
else {
|
|
2388
2388
|
var S;
|
|
@@ -2392,7 +2392,7 @@ function qu(e, t, i = wl) {
|
|
|
2392
2392
|
keys: l,
|
|
2393
2393
|
edits: a,
|
|
2394
2394
|
prev: s
|
|
2395
|
-
}, r = Array.isArray(
|
|
2395
|
+
}, r = Array.isArray(c), l = r ? c : (S = i[c.kind]) !== null && S !== void 0 ? S : [], o = -1, a = [], h && m.push(h), h = c;
|
|
2396
2396
|
}
|
|
2397
2397
|
} while (s !== void 0);
|
|
2398
2398
|
return a.length !== 0 ? a[a.length - 1][1] : e;
|
|
@@ -2750,7 +2750,7 @@ var Zs = { exports: {} };
|
|
|
2750
2750
|
return f && DataView.prototype.isPrototypeOf(f);
|
|
2751
2751
|
}
|
|
2752
2752
|
if (o.arrayBuffer)
|
|
2753
|
-
var
|
|
2753
|
+
var c = [
|
|
2754
2754
|
"[object Int8Array]",
|
|
2755
2755
|
"[object Uint8Array]",
|
|
2756
2756
|
"[object Uint8ClampedArray]",
|
|
@@ -2760,8 +2760,8 @@ var Zs = { exports: {} };
|
|
|
2760
2760
|
"[object Uint32Array]",
|
|
2761
2761
|
"[object Float32Array]",
|
|
2762
2762
|
"[object Float64Array]"
|
|
2763
|
-
],
|
|
2764
|
-
return f &&
|
|
2763
|
+
], u = ArrayBuffer.isView || function(f) {
|
|
2764
|
+
return f && c.indexOf(Object.prototype.toString.call(f)) > -1;
|
|
2765
2765
|
};
|
|
2766
2766
|
function h(f) {
|
|
2767
2767
|
if (typeof f != "string" && (f = String(f)), /[^a-z0-9\-#$%&'*+.^_`|~]/i.test(f))
|
|
@@ -2836,7 +2836,7 @@ var Zs = { exports: {} };
|
|
|
2836
2836
|
};
|
|
2837
2837
|
});
|
|
2838
2838
|
}
|
|
2839
|
-
function
|
|
2839
|
+
function I(f) {
|
|
2840
2840
|
var y = new FileReader(), T = S(y);
|
|
2841
2841
|
return y.readAsArrayBuffer(f), T;
|
|
2842
2842
|
}
|
|
@@ -2844,12 +2844,12 @@ var Zs = { exports: {} };
|
|
|
2844
2844
|
var y = new FileReader(), T = S(y);
|
|
2845
2845
|
return y.readAsText(f), T;
|
|
2846
2846
|
}
|
|
2847
|
-
function
|
|
2847
|
+
function W(f) {
|
|
2848
2848
|
for (var y = new Uint8Array(f), T = new Array(y.length), F = 0; F < y.length; F++)
|
|
2849
2849
|
T[F] = String.fromCharCode(y[F]);
|
|
2850
2850
|
return T.join("");
|
|
2851
2851
|
}
|
|
2852
|
-
function
|
|
2852
|
+
function X(f) {
|
|
2853
2853
|
if (f.slice)
|
|
2854
2854
|
return f.slice(0);
|
|
2855
2855
|
var y = new Uint8Array(f.byteLength);
|
|
@@ -2857,7 +2857,7 @@ var Zs = { exports: {} };
|
|
|
2857
2857
|
}
|
|
2858
2858
|
function G() {
|
|
2859
2859
|
return this.bodyUsed = !1, this._initBody = function(f) {
|
|
2860
|
-
this._bodyInit = f, f ? typeof f == "string" ? this._bodyText = f : o.blob && Blob.prototype.isPrototypeOf(f) ? this._bodyBlob = f : o.formData && FormData.prototype.isPrototypeOf(f) ? this._bodyFormData = f : o.searchParams && URLSearchParams.prototype.isPrototypeOf(f) ? this._bodyText = f.toString() : o.arrayBuffer && o.blob && a(f) ? (this._bodyArrayBuffer =
|
|
2860
|
+
this._bodyInit = f, f ? typeof f == "string" ? this._bodyText = f : o.blob && Blob.prototype.isPrototypeOf(f) ? this._bodyBlob = f : o.formData && FormData.prototype.isPrototypeOf(f) ? this._bodyFormData = f : o.searchParams && URLSearchParams.prototype.isPrototypeOf(f) ? this._bodyText = f.toString() : o.arrayBuffer && o.blob && a(f) ? (this._bodyArrayBuffer = X(f.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : o.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(f) || u(f)) ? this._bodyArrayBuffer = X(f) : this._bodyText = f = Object.prototype.toString.call(f) : this._bodyText = "", this.headers.get("content-type") || (typeof f == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : o.searchParams && URLSearchParams.prototype.isPrototypeOf(f) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2861
2861
|
}, o.blob && (this.blob = function() {
|
|
2862
2862
|
var f = d(this);
|
|
2863
2863
|
if (f)
|
|
@@ -2870,7 +2870,7 @@ var Zs = { exports: {} };
|
|
|
2870
2870
|
throw new Error("could not read FormData body as blob");
|
|
2871
2871
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
2872
2872
|
}, this.arrayBuffer = function() {
|
|
2873
|
-
return this._bodyArrayBuffer ? d(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(
|
|
2873
|
+
return this._bodyArrayBuffer ? d(this) || Promise.resolve(this._bodyArrayBuffer) : this.blob().then(I);
|
|
2874
2874
|
}), this.text = function() {
|
|
2875
2875
|
var f = d(this);
|
|
2876
2876
|
if (f)
|
|
@@ -2878,12 +2878,12 @@ var Zs = { exports: {} };
|
|
|
2878
2878
|
if (this._bodyBlob)
|
|
2879
2879
|
return V(this._bodyBlob);
|
|
2880
2880
|
if (this._bodyArrayBuffer)
|
|
2881
|
-
return Promise.resolve(
|
|
2881
|
+
return Promise.resolve(W(this._bodyArrayBuffer));
|
|
2882
2882
|
if (this._bodyFormData)
|
|
2883
2883
|
throw new Error("could not read FormData body as text");
|
|
2884
2884
|
return Promise.resolve(this._bodyText);
|
|
2885
2885
|
}, o.formData && (this.formData = function() {
|
|
2886
|
-
return this.text().then(
|
|
2886
|
+
return this.text().then(g);
|
|
2887
2887
|
}), this.json = function() {
|
|
2888
2888
|
return this.text().then(JSON.parse);
|
|
2889
2889
|
}, this;
|
|
@@ -2909,7 +2909,7 @@ var Zs = { exports: {} };
|
|
|
2909
2909
|
w.prototype.clone = function() {
|
|
2910
2910
|
return new w(this, { body: this._bodyInit });
|
|
2911
2911
|
};
|
|
2912
|
-
function
|
|
2912
|
+
function g(f) {
|
|
2913
2913
|
var y = new FormData();
|
|
2914
2914
|
return f.trim().split("&").forEach(function(T) {
|
|
2915
2915
|
if (T) {
|
|
@@ -2918,7 +2918,7 @@ var Zs = { exports: {} };
|
|
|
2918
2918
|
}
|
|
2919
2919
|
}), y;
|
|
2920
2920
|
}
|
|
2921
|
-
function
|
|
2921
|
+
function R(f) {
|
|
2922
2922
|
var y = new b(), T = f.replace(/\r?\n[\t ]+/g, " ");
|
|
2923
2923
|
return T.split(/\r?\n/).forEach(function(F) {
|
|
2924
2924
|
var U = F.split(":"), N = U.shift().trim();
|
|
@@ -2971,7 +2971,7 @@ var Zs = { exports: {} };
|
|
|
2971
2971
|
var j = {
|
|
2972
2972
|
status: N.status,
|
|
2973
2973
|
statusText: N.statusText,
|
|
2974
|
-
headers:
|
|
2974
|
+
headers: R(N.getAllResponseHeaders() || "")
|
|
2975
2975
|
};
|
|
2976
2976
|
j.url = "responseURL" in N ? N.responseURL : j.headers.get("X-Request-URL");
|
|
2977
2977
|
var de = "response" in N ? N.response : N.responseText;
|
|
@@ -3018,9 +3018,9 @@ const Ai = /* @__PURE__ */ hr(ln), cd = /* @__PURE__ */ mu({
|
|
|
3018
3018
|
return `query=${encodeURIComponent(t.jsonSerializer.stringify(i))}`;
|
|
3019
3019
|
}, dd = (e) => (t) => Wt(void 0, null, function* () {
|
|
3020
3020
|
var i;
|
|
3021
|
-
const { url: n, query: s, variables: r, operationName: l, fetch: o, fetchOptions: a, middleware:
|
|
3021
|
+
const { url: n, query: s, variables: r, operationName: l, fetch: o, fetchOptions: a, middleware: c } = t, u = z({}, t.headers);
|
|
3022
3022
|
let h = "", p;
|
|
3023
|
-
e === "POST" ? (p = pd(s, r, l, a.jsonSerializer), typeof p == "string" && (
|
|
3023
|
+
e === "POST" ? (p = pd(s, r, l, a.jsonSerializer), typeof p == "string" && (u["Content-Type"] = "application/json")) : h = ud({
|
|
3024
3024
|
query: s,
|
|
3025
3025
|
variables: r,
|
|
3026
3026
|
operationName: l,
|
|
@@ -3028,40 +3028,40 @@ const Ai = /* @__PURE__ */ hr(ln), cd = /* @__PURE__ */ mu({
|
|
|
3028
3028
|
});
|
|
3029
3029
|
const m = z({
|
|
3030
3030
|
method: e,
|
|
3031
|
-
headers:
|
|
3031
|
+
headers: u,
|
|
3032
3032
|
body: p
|
|
3033
3033
|
}, a);
|
|
3034
3034
|
let b = n, d = m;
|
|
3035
|
-
if (
|
|
3036
|
-
const S = yield Promise.resolve(
|
|
3037
|
-
b =
|
|
3035
|
+
if (c) {
|
|
3036
|
+
const S = yield Promise.resolve(c(Vt(z({}, m), { url: n, operationName: l, variables: r }))), { url: I } = S, V = At(S, ["url"]);
|
|
3037
|
+
b = I, d = V;
|
|
3038
3038
|
}
|
|
3039
3039
|
return h && (b = `${b}?${h}`), yield o(b, d);
|
|
3040
3040
|
});
|
|
3041
3041
|
let hd = class {
|
|
3042
3042
|
constructor(t, i = {}) {
|
|
3043
3043
|
this.url = t, this.requestConfig = i, this.rawRequest = (...n) => Wt(this, null, function* () {
|
|
3044
|
-
const [s, r, l] = n, o = od(s, r, l), a = this.requestConfig, { headers:
|
|
3044
|
+
const [s, r, l] = n, o = od(s, r, l), a = this.requestConfig, { headers: c, fetch: u = Ai, method: h = "POST", requestMiddleware: p, responseMiddleware: m } = a, b = At(a, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: d } = this;
|
|
3045
3045
|
o.signal !== void 0 && (b.signal = o.signal);
|
|
3046
3046
|
const { operationName: S } = jn(o.query);
|
|
3047
3047
|
return Qn({
|
|
3048
3048
|
url: d,
|
|
3049
3049
|
query: o.query,
|
|
3050
3050
|
variables: o.variables,
|
|
3051
|
-
headers: z(z({}, bt(An(
|
|
3051
|
+
headers: z(z({}, bt(An(c))), bt(o.requestHeaders)),
|
|
3052
3052
|
operationName: S,
|
|
3053
|
-
fetch:
|
|
3053
|
+
fetch: u,
|
|
3054
3054
|
method: h,
|
|
3055
3055
|
fetchOptions: b,
|
|
3056
3056
|
middleware: p
|
|
3057
|
-
}).then((
|
|
3058
|
-
throw m && m(
|
|
3057
|
+
}).then((I) => (m && m(I), I)).catch((I) => {
|
|
3058
|
+
throw m && m(I), I;
|
|
3059
3059
|
});
|
|
3060
3060
|
});
|
|
3061
3061
|
}
|
|
3062
3062
|
request(t, ...i) {
|
|
3063
3063
|
return Wt(this, null, function* () {
|
|
3064
|
-
const [n, s] = i, r = rd(t, n, s), l = this.requestConfig, { headers: o, fetch: a = Ai, method:
|
|
3064
|
+
const [n, s] = i, r = rd(t, n, s), l = this.requestConfig, { headers: o, fetch: a = Ai, method: c = "POST", requestMiddleware: u, responseMiddleware: h } = l, p = At(l, ["headers", "fetch", "method", "requestMiddleware", "responseMiddleware"]), { url: m } = this;
|
|
3065
3065
|
r.signal !== void 0 && (p.signal = r.signal);
|
|
3066
3066
|
const { query: b, operationName: d } = jn(r.document);
|
|
3067
3067
|
return Qn({
|
|
@@ -3071,9 +3071,9 @@ let hd = class {
|
|
|
3071
3071
|
headers: z(z({}, bt(An(o))), bt(r.requestHeaders)),
|
|
3072
3072
|
operationName: d,
|
|
3073
3073
|
fetch: a,
|
|
3074
|
-
method:
|
|
3074
|
+
method: c,
|
|
3075
3075
|
fetchOptions: p,
|
|
3076
|
-
middleware:
|
|
3076
|
+
middleware: u
|
|
3077
3077
|
}).then((S) => (h && h(S), S.data)).catch((S) => {
|
|
3078
3078
|
throw h && h(S), S;
|
|
3079
3079
|
});
|
|
@@ -3084,20 +3084,20 @@ let hd = class {
|
|
|
3084
3084
|
var n;
|
|
3085
3085
|
const s = ld(t, i), r = this.requestConfig, { headers: l } = r, o = At(r, ["headers"]);
|
|
3086
3086
|
s.signal !== void 0 && (o.signal = s.signal);
|
|
3087
|
-
const a = s.documents.map(({ document:
|
|
3087
|
+
const a = s.documents.map(({ document: u }) => jn(u).query), c = s.documents.map(({ variables: u }) => u);
|
|
3088
3088
|
return Qn({
|
|
3089
3089
|
url: this.url,
|
|
3090
3090
|
query: a,
|
|
3091
3091
|
// @ts-expect-error TODO reconcile batch variables into system.
|
|
3092
|
-
variables:
|
|
3092
|
+
variables: c,
|
|
3093
3093
|
headers: z(z({}, bt(An(l))), bt(s.requestHeaders)),
|
|
3094
3094
|
operationName: void 0,
|
|
3095
3095
|
fetch: (n = this.requestConfig.fetch) != null ? n : Ai,
|
|
3096
3096
|
method: this.requestConfig.method || "POST",
|
|
3097
3097
|
fetchOptions: o,
|
|
3098
3098
|
middleware: this.requestConfig.requestMiddleware
|
|
3099
|
-
}).then((
|
|
3100
|
-
throw this.requestConfig.responseMiddleware && this.requestConfig.responseMiddleware(
|
|
3099
|
+
}).then((u) => (this.requestConfig.responseMiddleware && this.requestConfig.responseMiddleware(u), u.data)).catch((u) => {
|
|
3100
|
+
throw this.requestConfig.responseMiddleware && this.requestConfig.responseMiddleware(u), u;
|
|
3101
3101
|
});
|
|
3102
3102
|
}
|
|
3103
3103
|
setHeaders(t) {
|
|
@@ -3119,17 +3119,17 @@ let hd = class {
|
|
|
3119
3119
|
};
|
|
3120
3120
|
const Qn = (e) => Wt(void 0, null, function* () {
|
|
3121
3121
|
var t, i;
|
|
3122
|
-
const { query: n, variables: s, fetchOptions: r } = e, l = dd(nd((t = e.method) != null ? t : "post")), o = Array.isArray(e.query), a = yield l(e),
|
|
3123
|
-
if (a.ok && h &&
|
|
3124
|
-
const p =
|
|
3122
|
+
const { query: n, variables: s, fetchOptions: r } = e, l = dd(nd((t = e.method) != null ? t : "post")), o = Array.isArray(e.query), a = yield l(e), c = yield md(a, (i = r.jsonSerializer) != null ? i : dr), u = Array.isArray(c) ? !c.some(({ data: p }) => !p) : !!c.data, h = Array.isArray(c) || !c.errors || Array.isArray(c.errors) && !c.errors.length || r.errorPolicy === "all" || r.errorPolicy === "ignore";
|
|
3123
|
+
if (a.ok && h && u) {
|
|
3124
|
+
const p = c, m = At(p, ["errors"]), b = r.errorPolicy === "ignore" ? m : c;
|
|
3125
3125
|
return Vt(z({}, o ? { data: b } : b), {
|
|
3126
3126
|
headers: a.headers,
|
|
3127
3127
|
status: a.status
|
|
3128
3128
|
});
|
|
3129
3129
|
} else {
|
|
3130
|
-
const p = typeof
|
|
3131
|
-
error:
|
|
3132
|
-
} :
|
|
3130
|
+
const p = typeof c == "string" ? {
|
|
3131
|
+
error: c
|
|
3132
|
+
} : c;
|
|
3133
3133
|
throw new Xt(
|
|
3134
3134
|
// @ts-expect-error TODO
|
|
3135
3135
|
Vt(z({}, p), { status: a.status, headers: a.headers }),
|
|
@@ -3158,14 +3158,14 @@ var Is = { exports: {} };
|
|
|
3158
3158
|
}
|
|
3159
3159
|
function n(s, r) {
|
|
3160
3160
|
var l = [], o = [];
|
|
3161
|
-
return r == null && (r = function(a,
|
|
3162
|
-
return l[0] ===
|
|
3163
|
-
}), function(a,
|
|
3161
|
+
return r == null && (r = function(a, c) {
|
|
3162
|
+
return l[0] === c ? "[Circular ~]" : "[Circular ~." + o.slice(0, l.indexOf(c)).join(".") + "]";
|
|
3163
|
+
}), function(a, c) {
|
|
3164
3164
|
if (l.length > 0) {
|
|
3165
|
-
var
|
|
3166
|
-
~
|
|
3167
|
-
} else l.push(
|
|
3168
|
-
return s == null ?
|
|
3165
|
+
var u = l.indexOf(this);
|
|
3166
|
+
~u ? l.splice(u + 1) : l.push(this), ~u ? o.splice(u, 1 / 0, a) : o.push(a), ~l.indexOf(c) && (c = r.call(this, a, c));
|
|
3167
|
+
} else l.push(c);
|
|
3168
|
+
return s == null ? c : s.call(this, a, c);
|
|
3169
3169
|
};
|
|
3170
3170
|
}
|
|
3171
3171
|
})(Is, Is.exports);
|
|
@@ -3651,10 +3651,10 @@ function Gs(e, t) {
|
|
|
3651
3651
|
function n(s) {
|
|
3652
3652
|
if (!(typeof document > "u" || arguments.length && !s)) {
|
|
3653
3653
|
for (var r = document.cookie ? document.cookie.split("; ") : [], l = {}, o = 0; o < r.length; o++) {
|
|
3654
|
-
var a = r[o].split("="),
|
|
3654
|
+
var a = r[o].split("="), c = a.slice(1).join("=");
|
|
3655
3655
|
try {
|
|
3656
|
-
var
|
|
3657
|
-
if (l[
|
|
3656
|
+
var u = decodeURIComponent(a[0]);
|
|
3657
|
+
if (l[u] = e.read(c, u), s === u)
|
|
3658
3658
|
break;
|
|
3659
3659
|
} catch {
|
|
3660
3660
|
}
|
|
@@ -4009,7 +4009,7 @@ let yh = class {
|
|
|
4009
4009
|
return this._bufferCall("track", [t, i]);
|
|
4010
4010
|
}
|
|
4011
4011
|
};
|
|
4012
|
-
const Zh = "9.
|
|
4012
|
+
const Zh = "9.22.1", Ih = {
|
|
4013
4013
|
version: Zh
|
|
4014
4014
|
}, Sh = Ih.version;
|
|
4015
4015
|
function Al(e, t) {
|
|
@@ -4164,14 +4164,14 @@ var vh = (e, t, i) => new Promise((n, s) => {
|
|
|
4164
4164
|
var r = (a) => {
|
|
4165
4165
|
try {
|
|
4166
4166
|
o(i.next(a));
|
|
4167
|
-
} catch (
|
|
4168
|
-
s(
|
|
4167
|
+
} catch (c) {
|
|
4168
|
+
s(c);
|
|
4169
4169
|
}
|
|
4170
4170
|
}, l = (a) => {
|
|
4171
4171
|
try {
|
|
4172
4172
|
o(i.throw(a));
|
|
4173
|
-
} catch (
|
|
4174
|
-
s(
|
|
4173
|
+
} catch (c) {
|
|
4174
|
+
s(c);
|
|
4175
4175
|
}
|
|
4176
4176
|
}, o = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(r, l);
|
|
4177
4177
|
o((i = i.apply(e, t)).next());
|
|
@@ -4188,6 +4188,9 @@ class oo extends Xl {
|
|
|
4188
4188
|
stop() {
|
|
4189
4189
|
return this._sdk.stop();
|
|
4190
4190
|
}
|
|
4191
|
+
addSessionProperties(t) {
|
|
4192
|
+
return this._bufferCall("addSessionProperties", [t]);
|
|
4193
|
+
}
|
|
4191
4194
|
getRecordingState() {
|
|
4192
4195
|
return this._isLoaded ? this._bufferCall("getRecordingState", []) : "NotRecording";
|
|
4193
4196
|
}
|
|
@@ -4219,14 +4222,14 @@ var wh = Object.defineProperty, xh = Object.defineProperties, Th = Object.getOwn
|
|
|
4219
4222
|
var r = (a) => {
|
|
4220
4223
|
try {
|
|
4221
4224
|
o(i.next(a));
|
|
4222
|
-
} catch (
|
|
4223
|
-
s(
|
|
4225
|
+
} catch (c) {
|
|
4226
|
+
s(c);
|
|
4224
4227
|
}
|
|
4225
4228
|
}, l = (a) => {
|
|
4226
4229
|
try {
|
|
4227
4230
|
o(i.throw(a));
|
|
4228
|
-
} catch (
|
|
4229
|
-
s(
|
|
4231
|
+
} catch (c) {
|
|
4232
|
+
s(c);
|
|
4230
4233
|
}
|
|
4231
4234
|
}, o = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(r, l);
|
|
4232
4235
|
o((i = i.apply(e, t)).next());
|
|
@@ -4246,7 +4249,7 @@ const Nh = {
|
|
|
4246
4249
|
options: t
|
|
4247
4250
|
};
|
|
4248
4251
|
};
|
|
4249
|
-
var Yh = Object.defineProperty, Fh = (e, t, i) => t in e ? Yh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i,
|
|
4252
|
+
var Yh = Object.defineProperty, Fh = (e, t, i) => t in e ? Yh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, C = (e, t, i) => Fh(e, typeof t != "symbol" ? t + "" : t, i), lo, Uh = Object.defineProperty, Kh = (e, t, i) => t in e ? Uh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, ao = (e, t, i) => Kh(e, typeof t != "symbol" ? t + "" : t, i), ae = /* @__PURE__ */ ((e) => (e[e.Document = 0] = "Document", e[e.DocumentType = 1] = "DocumentType", e[e.Element = 2] = "Element", e[e.Text = 3] = "Text", e[e.CDATA = 4] = "CDATA", e[e.Comment = 5] = "Comment", e))(ae || {});
|
|
4250
4253
|
const co = {
|
|
4251
4254
|
Node: ["childNodes", "parentNode", "parentElement", "textContent"],
|
|
4252
4255
|
ShadowRoot: ["host", "styleSheets"],
|
|
@@ -4264,8 +4267,8 @@ function mr(e) {
|
|
|
4264
4267
|
const t = globalThis[e], i = t.prototype, n = e in co ? co[e] : void 0, s = !!(n && // @ts-expect-error 2345
|
|
4265
4268
|
n.every(
|
|
4266
4269
|
(o) => {
|
|
4267
|
-
var a,
|
|
4268
|
-
return !!((
|
|
4270
|
+
var a, c;
|
|
4271
|
+
return !!((c = (a = Object.getOwnPropertyDescriptor(i, o)) == null ? void 0 : a.get) != null && c.toString().includes("[native code]"));
|
|
4269
4272
|
}
|
|
4270
4273
|
)), r = e in uo ? uo[e] : void 0, l = !!(r && r.every(
|
|
4271
4274
|
// @ts-expect-error 2345
|
|
@@ -4281,8 +4284,8 @@ function mr(e) {
|
|
|
4281
4284
|
document.body.appendChild(o);
|
|
4282
4285
|
const a = o.contentWindow;
|
|
4283
4286
|
if (!a) return t.prototype;
|
|
4284
|
-
const
|
|
4285
|
-
return document.body.removeChild(o),
|
|
4287
|
+
const c = a[e].prototype;
|
|
4288
|
+
return document.body.removeChild(o), c ? Wi[e] = c : i;
|
|
4286
4289
|
} catch {
|
|
4287
4290
|
return i;
|
|
4288
4291
|
}
|
|
@@ -4570,20 +4573,20 @@ function fn(e, t) {
|
|
|
4570
4573
|
return (e || "").replace(
|
|
4571
4574
|
ap,
|
|
4572
4575
|
(i, n, s, r, l, o) => {
|
|
4573
|
-
const a = s || l || o,
|
|
4576
|
+
const a = s || l || o, c = n || r || "";
|
|
4574
4577
|
if (!a)
|
|
4575
4578
|
return i;
|
|
4576
4579
|
if (cp.test(a) || up.test(a))
|
|
4577
|
-
return `url(${
|
|
4580
|
+
return `url(${c}${a}${c})`;
|
|
4578
4581
|
if (dp.test(a))
|
|
4579
|
-
return `url(${
|
|
4582
|
+
return `url(${c}${a}${c})`;
|
|
4580
4583
|
if (a[0] === "/")
|
|
4581
|
-
return `url(${
|
|
4582
|
-
const
|
|
4583
|
-
|
|
4584
|
+
return `url(${c}${lp(t) + a}${c})`;
|
|
4585
|
+
const u = t.split("/"), h = a.split("/");
|
|
4586
|
+
u.pop();
|
|
4584
4587
|
for (const p of h)
|
|
4585
|
-
p !== "." && (p === ".." ?
|
|
4586
|
-
return `url(${
|
|
4588
|
+
p !== "." && (p === ".." ? u.pop() : u.push(p));
|
|
4589
|
+
return `url(${c}${u.join("/")}${c})`;
|
|
4587
4590
|
}
|
|
4588
4591
|
);
|
|
4589
4592
|
}
|
|
@@ -4598,17 +4601,17 @@ function hp(e, t, i = !1) {
|
|
|
4598
4601
|
const o = l.length / e.length;
|
|
4599
4602
|
for (let a = 1; a < n.length; a++)
|
|
4600
4603
|
if (n[a].textContent && typeof n[a].textContent == "string") {
|
|
4601
|
-
const
|
|
4604
|
+
const c = Ri(
|
|
4602
4605
|
n[a].textContent,
|
|
4603
4606
|
i
|
|
4604
|
-
),
|
|
4607
|
+
), u = 100;
|
|
4605
4608
|
let h = 3;
|
|
4606
|
-
for (; h <
|
|
4607
|
-
(
|
|
4608
|
-
|
|
4609
|
+
for (; h < c.length && // keep consuming css identifiers (to get a decent chunk more quickly)
|
|
4610
|
+
(c[h].match(/[a-zA-Z0-9]/) || // substring needs to be unique to this section
|
|
4611
|
+
c.indexOf(c.substring(0, h), 1) !== -1); h++)
|
|
4609
4612
|
;
|
|
4610
|
-
for (; h <
|
|
4611
|
-
let p =
|
|
4613
|
+
for (; h < c.length; h++) {
|
|
4614
|
+
let p = c.substring(0, h), m = l.split(p), b = -1;
|
|
4612
4615
|
if (m.length === 2)
|
|
4613
4616
|
b = m[0].length;
|
|
4614
4617
|
else if (m.length > 2 && m[0] === "" && n[a - 1].textContent !== "")
|
|
@@ -4619,9 +4622,9 @@ function hp(e, t, i = !1) {
|
|
|
4619
4622
|
p.length - 1
|
|
4620
4623
|
), m = l.split(p), m.length <= 1)
|
|
4621
4624
|
return s.push(e), s;
|
|
4622
|
-
h =
|
|
4623
|
-
} else h ===
|
|
4624
|
-
if (m.length >= 2 && h >
|
|
4625
|
+
h = u + 1;
|
|
4626
|
+
} else h === c.length - 1 && (b = l.indexOf(p));
|
|
4627
|
+
if (m.length >= 2 && h > u) {
|
|
4625
4628
|
const d = n[a - 1].textContent;
|
|
4626
4629
|
if (d && typeof d == "string") {
|
|
4627
4630
|
const S = Ri(d).length;
|
|
@@ -4862,18 +4865,18 @@ function xp(e, t) {
|
|
|
4862
4865
|
needsMask: l,
|
|
4863
4866
|
inlineStylesheet: o,
|
|
4864
4867
|
maskInputOptions: a = {},
|
|
4865
|
-
maskTextClass:
|
|
4866
|
-
maskTextFn:
|
|
4868
|
+
maskTextClass: c,
|
|
4869
|
+
maskTextFn: u,
|
|
4867
4870
|
maskInputFn: h,
|
|
4868
4871
|
dataURLOptions: p = {},
|
|
4869
4872
|
inlineImages: m,
|
|
4870
4873
|
inlineVideos: b,
|
|
4871
4874
|
recordCanvas: d,
|
|
4872
4875
|
keepIframeSrcFn: S,
|
|
4873
|
-
newlyAddedElement:
|
|
4876
|
+
newlyAddedElement: I = !1,
|
|
4874
4877
|
cssCaptured: V = !1,
|
|
4875
|
-
privacySetting:
|
|
4876
|
-
} = t,
|
|
4878
|
+
privacySetting: W
|
|
4879
|
+
} = t, X = Tp(i, n);
|
|
4877
4880
|
switch (e.nodeType) {
|
|
4878
4881
|
case e.DOCUMENT_NODE:
|
|
4879
4882
|
return e.compatMode !== "CSS1Compat" ? {
|
|
@@ -4891,7 +4894,7 @@ function xp(e, t) {
|
|
|
4891
4894
|
name: e.name,
|
|
4892
4895
|
publicId: e.publicId,
|
|
4893
4896
|
systemId: e.systemId,
|
|
4894
|
-
rootId:
|
|
4897
|
+
rootId: X
|
|
4895
4898
|
};
|
|
4896
4899
|
case e.ELEMENT_NODE:
|
|
4897
4900
|
return Lp(e, {
|
|
@@ -4901,36 +4904,36 @@ function xp(e, t) {
|
|
|
4901
4904
|
inlineStylesheet: o,
|
|
4902
4905
|
maskInputOptions: a,
|
|
4903
4906
|
maskInputFn: h,
|
|
4904
|
-
maskTextClass:
|
|
4907
|
+
maskTextClass: c,
|
|
4905
4908
|
dataURLOptions: p,
|
|
4906
4909
|
inlineImages: m,
|
|
4907
4910
|
inlineVideos: b,
|
|
4908
4911
|
recordCanvas: d,
|
|
4909
4912
|
keepIframeSrcFn: S,
|
|
4910
|
-
newlyAddedElement:
|
|
4911
|
-
privacySetting:
|
|
4912
|
-
rootId:
|
|
4913
|
+
newlyAddedElement: I,
|
|
4914
|
+
privacySetting: W,
|
|
4915
|
+
rootId: X
|
|
4913
4916
|
});
|
|
4914
4917
|
case e.TEXT_NODE:
|
|
4915
4918
|
return Np(e, {
|
|
4916
4919
|
doc: i,
|
|
4917
4920
|
needsMask: l,
|
|
4918
|
-
maskTextFn:
|
|
4919
|
-
privacySetting:
|
|
4920
|
-
rootId:
|
|
4921
|
+
maskTextFn: u,
|
|
4922
|
+
privacySetting: W,
|
|
4923
|
+
rootId: X,
|
|
4921
4924
|
cssCaptured: V
|
|
4922
4925
|
});
|
|
4923
4926
|
case e.CDATA_SECTION_NODE:
|
|
4924
4927
|
return {
|
|
4925
4928
|
type: ae.CDATA,
|
|
4926
4929
|
textContent: "",
|
|
4927
|
-
rootId:
|
|
4930
|
+
rootId: X
|
|
4928
4931
|
};
|
|
4929
4932
|
case e.COMMENT_NODE:
|
|
4930
4933
|
return {
|
|
4931
4934
|
type: ae.Comment,
|
|
4932
4935
|
textContent: he.textContent(e) || "",
|
|
4933
|
-
rootId:
|
|
4936
|
+
rootId: X
|
|
4934
4937
|
};
|
|
4935
4938
|
default:
|
|
4936
4939
|
return !1;
|
|
@@ -4943,12 +4946,12 @@ function Tp(e, t) {
|
|
|
4943
4946
|
}
|
|
4944
4947
|
function Np(e, t) {
|
|
4945
4948
|
var i;
|
|
4946
|
-
const { needsMask: n, maskTextFn: s, privacySetting: r, rootId: l, cssCaptured: o } = t, a = he.parentNode(e),
|
|
4947
|
-
let
|
|
4948
|
-
const h =
|
|
4949
|
-
p ?
|
|
4950
|
-
const m = r === "strict", b = (i = e.parentElement) == null ? void 0 : i.getAttribute("data-hl-record"), d = r === "default" && ra(
|
|
4951
|
-
return (m || d) && !b &&
|
|
4949
|
+
const { needsMask: n, maskTextFn: s, privacySetting: r, rootId: l, cssCaptured: o } = t, a = he.parentNode(e), c = a && a.tagName;
|
|
4950
|
+
let u = "";
|
|
4951
|
+
const h = c === "STYLE" ? !0 : void 0, p = c === "SCRIPT" ? !0 : void 0;
|
|
4952
|
+
p ? u = "SCRIPT_PLACEHOLDER" : o || (u = he.textContent(e), h && u && (u = fn(u, fr(t.doc)))), !h && !p && u && n && (u = s ? s(u, he.parentElement(e)) : u.replace(/[\S]/g, "*"));
|
|
4953
|
+
const m = r === "strict", b = (i = e.parentElement) == null ? void 0 : i.getAttribute("data-hl-record"), d = r === "default" && ra(u);
|
|
4954
|
+
return (m || d) && !b && c && !(/* @__PURE__ */ new Set([
|
|
4952
4955
|
"HEAD",
|
|
4953
4956
|
"TITLE",
|
|
4954
4957
|
"STYLE",
|
|
@@ -4956,9 +4959,9 @@ function Np(e, t) {
|
|
|
4956
4959
|
"HTML",
|
|
4957
4960
|
"BODY",
|
|
4958
4961
|
"NOSCRIPT"
|
|
4959
|
-
])).has(
|
|
4962
|
+
])).has(c) && u && (u = br(u)), {
|
|
4960
4963
|
type: ae.Text,
|
|
4961
|
-
textContent:
|
|
4964
|
+
textContent: u || "",
|
|
4962
4965
|
rootId: l
|
|
4963
4966
|
};
|
|
4964
4967
|
}
|
|
@@ -4971,8 +4974,8 @@ function Lp(e, t) {
|
|
|
4971
4974
|
maskInputOptions: l = {},
|
|
4972
4975
|
maskInputFn: o,
|
|
4973
4976
|
maskTextClass: a,
|
|
4974
|
-
dataURLOptions:
|
|
4975
|
-
inlineImages:
|
|
4977
|
+
dataURLOptions: c = {},
|
|
4978
|
+
inlineImages: u,
|
|
4976
4979
|
inlineVideos: h,
|
|
4977
4980
|
recordCanvas: p,
|
|
4978
4981
|
keepIframeSrcFn: m,
|
|
@@ -4980,126 +4983,126 @@ function Lp(e, t) {
|
|
|
4980
4983
|
privacySetting: d,
|
|
4981
4984
|
rootId: S
|
|
4982
4985
|
} = t;
|
|
4983
|
-
let
|
|
4984
|
-
const V = bo(e, a, null),
|
|
4985
|
-
let
|
|
4986
|
+
let I = bo(e, n, s);
|
|
4987
|
+
const V = bo(e, a, null), W = d === "strict";
|
|
4988
|
+
let X = Xp(e), G = {};
|
|
4986
4989
|
const k = e.attributes.length;
|
|
4987
|
-
for (let
|
|
4988
|
-
const
|
|
4989
|
-
ca(
|
|
4990
|
+
for (let g = 0; g < k; g++) {
|
|
4991
|
+
const R = e.attributes[g];
|
|
4992
|
+
ca(X, R.name) || (G[R.name] = aa(
|
|
4990
4993
|
i,
|
|
4991
|
-
|
|
4992
|
-
kt(
|
|
4993
|
-
|
|
4994
|
+
X,
|
|
4995
|
+
kt(R.name),
|
|
4996
|
+
R.value
|
|
4994
4997
|
));
|
|
4995
4998
|
}
|
|
4996
|
-
if (
|
|
4997
|
-
const
|
|
4998
|
-
let
|
|
4999
|
-
|
|
4999
|
+
if (X === "link" && r) {
|
|
5000
|
+
const g = Array.from(i.styleSheets).find((J) => J.href === e.href);
|
|
5001
|
+
let R = null;
|
|
5002
|
+
g && (R = Ws(g)), R && (delete G.rel, delete G.href, G._cssText = R);
|
|
5000
5003
|
}
|
|
5001
|
-
if (
|
|
5002
|
-
let
|
|
5004
|
+
if (X === "style" && e.sheet) {
|
|
5005
|
+
let g = Ws(
|
|
5003
5006
|
e.sheet
|
|
5004
5007
|
);
|
|
5005
|
-
|
|
5008
|
+
g && (e.childNodes.length > 1 && (g = pp(g, e)), G._cssText = g);
|
|
5006
5009
|
}
|
|
5007
|
-
if (
|
|
5008
|
-
const
|
|
5009
|
-
G.type !== "radio" && G.type !== "checkbox" && G.type !== "submit" && G.type !== "button" &&
|
|
5010
|
+
if (X === "input" || X === "textarea" || X === "select") {
|
|
5011
|
+
const g = e.value, R = e.checked;
|
|
5012
|
+
G.type !== "radio" && G.type !== "checkbox" && G.type !== "submit" && G.type !== "button" && g ? G.value = mn({
|
|
5010
5013
|
element: e,
|
|
5011
5014
|
type: bn(e),
|
|
5012
|
-
tagName:
|
|
5013
|
-
value:
|
|
5015
|
+
tagName: X,
|
|
5016
|
+
value: g,
|
|
5014
5017
|
overwriteRecord: e.getAttribute("data-hl-record"),
|
|
5015
5018
|
maskInputOptions: l,
|
|
5016
5019
|
maskInputFn: o
|
|
5017
|
-
}) :
|
|
5020
|
+
}) : R && (G.checked = R);
|
|
5018
5021
|
}
|
|
5019
|
-
if (
|
|
5022
|
+
if (X === "option" && (e.selected && !l.select ? G.selected = !0 : delete G.selected), X === "dialog" && e.open && (G.rr_open_mode = e.matches("dialog:modal") ? "modal" : "non-modal"), X === "canvas" && p) {
|
|
5020
5023
|
if (e.__context === "2d")
|
|
5021
5024
|
op(e);
|
|
5022
5025
|
else if (!("__context" in e)) {
|
|
5023
|
-
const
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
),
|
|
5027
|
-
|
|
5028
|
-
const J =
|
|
5029
|
-
|
|
5030
|
-
|
|
5026
|
+
const g = e.toDataURL(
|
|
5027
|
+
c.type,
|
|
5028
|
+
c.quality
|
|
5029
|
+
), R = i.createElement("canvas");
|
|
5030
|
+
R.width = e.width, R.height = e.height;
|
|
5031
|
+
const J = R.toDataURL(
|
|
5032
|
+
c.type,
|
|
5033
|
+
c.quality
|
|
5031
5034
|
);
|
|
5032
|
-
|
|
5035
|
+
g !== J && (G.rr_dataURL = g);
|
|
5033
5036
|
}
|
|
5034
5037
|
}
|
|
5035
|
-
if (
|
|
5038
|
+
if (X === "img" && u && !I && !V && !W) {
|
|
5036
5039
|
yt || (yt = i.createElement("canvas"), po = yt.getContext("2d"));
|
|
5037
|
-
const
|
|
5038
|
-
|
|
5040
|
+
const g = e, R = g.currentSrc || g.getAttribute("src") || "<unknown-src>", J = g.crossOrigin, M = () => {
|
|
5041
|
+
g.removeEventListener("load", M);
|
|
5039
5042
|
try {
|
|
5040
|
-
yt.width =
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
+
yt.width = g.naturalWidth, yt.height = g.naturalHeight, po.drawImage(g, 0, 0), G.rr_dataURL = yt.toDataURL(
|
|
5044
|
+
c.type,
|
|
5045
|
+
c.quality
|
|
5043
5046
|
);
|
|
5044
5047
|
} catch ($) {
|
|
5045
|
-
if (
|
|
5046
|
-
|
|
5048
|
+
if (g.crossOrigin !== "anonymous") {
|
|
5049
|
+
g.crossOrigin = "anonymous", g.complete && g.naturalWidth !== 0 ? M() : g.addEventListener("load", M);
|
|
5047
5050
|
return;
|
|
5048
5051
|
} else
|
|
5049
5052
|
console.warn(
|
|
5050
|
-
`Cannot inline img src=${
|
|
5053
|
+
`Cannot inline img src=${R}! Error: ${$}`
|
|
5051
5054
|
);
|
|
5052
5055
|
}
|
|
5053
|
-
|
|
5056
|
+
g.crossOrigin === "anonymous" && (J ? G.crossOrigin = J : g.removeAttribute("crossorigin"));
|
|
5054
5057
|
};
|
|
5055
|
-
|
|
5058
|
+
g.complete && g.naturalWidth !== 0 ? M() : g.addEventListener("load", M);
|
|
5056
5059
|
}
|
|
5057
|
-
if (
|
|
5058
|
-
const
|
|
5059
|
-
|
|
5060
|
+
if (X === "audio" || X === "video") {
|
|
5061
|
+
const g = G;
|
|
5062
|
+
g.rr_mediaState = e.paused ? "paused" : "played", g.rr_mediaCurrentTime = e.currentTime, g.rr_mediaPlaybackRate = e.playbackRate, g.rr_mediaMuted = e.muted, g.rr_mediaLoop = e.loop, g.rr_mediaVolume = e.volume;
|
|
5060
5063
|
}
|
|
5061
|
-
if (b || (e.scrollLeft && (G.rr_scrollLeft = e.scrollLeft), e.scrollTop && (G.rr_scrollTop = e.scrollTop)),
|
|
5062
|
-
const { width:
|
|
5064
|
+
if (b || (e.scrollLeft && (G.rr_scrollLeft = e.scrollLeft), e.scrollTop && (G.rr_scrollTop = e.scrollTop)), I || V || W && Rs(X)) {
|
|
5065
|
+
const { width: g, height: R } = e.getBoundingClientRect();
|
|
5063
5066
|
G = {
|
|
5064
5067
|
class: G.class,
|
|
5065
|
-
rr_width: `${
|
|
5066
|
-
rr_height: `${
|
|
5068
|
+
rr_width: `${g}px`,
|
|
5069
|
+
rr_height: `${R}px`
|
|
5067
5070
|
};
|
|
5068
5071
|
}
|
|
5069
|
-
|
|
5072
|
+
W && Rs(X) && (I = !0), X === "iframe" && !m(G.src) && (e.contentDocument || (G.rr_src = G.src), delete G.src);
|
|
5070
5073
|
let v;
|
|
5071
5074
|
try {
|
|
5072
|
-
customElements.get(
|
|
5075
|
+
customElements.get(X) && (v = !0);
|
|
5073
5076
|
} catch {
|
|
5074
5077
|
}
|
|
5075
|
-
const w = (
|
|
5076
|
-
const { width:
|
|
5078
|
+
const w = (g) => {
|
|
5079
|
+
const { width: R, height: J } = g.getBoundingClientRect();
|
|
5077
5080
|
G = {
|
|
5078
|
-
width:
|
|
5081
|
+
width: R,
|
|
5079
5082
|
height: J,
|
|
5080
|
-
rr_width: `${
|
|
5083
|
+
rr_width: `${R}px`,
|
|
5081
5084
|
rr_height: `${J}px`,
|
|
5082
5085
|
rr_inlined_video: !0,
|
|
5083
5086
|
class: G.class,
|
|
5084
5087
|
style: G.style
|
|
5085
|
-
},
|
|
5088
|
+
}, X = "canvas";
|
|
5086
5089
|
const M = i.createElement("canvas");
|
|
5087
5090
|
M.width = e.width, M.height = e.height, G.rr_dataURL = M.toDataURL(
|
|
5088
|
-
|
|
5089
|
-
|
|
5091
|
+
c.type,
|
|
5092
|
+
c.quality
|
|
5090
5093
|
);
|
|
5091
5094
|
};
|
|
5092
|
-
if (
|
|
5093
|
-
const
|
|
5094
|
-
|
|
5095
|
+
if (X === "video") {
|
|
5096
|
+
const g = e;
|
|
5097
|
+
u && (g.src === "" || g.src.indexOf("blob:") !== -1) && w(g), h && g.src !== "" && g.src.indexOf("blob:") === -1 && w(g);
|
|
5095
5098
|
}
|
|
5096
5099
|
return {
|
|
5097
5100
|
type: ae.Element,
|
|
5098
|
-
tagName:
|
|
5101
|
+
tagName: X,
|
|
5099
5102
|
attributes: G,
|
|
5100
5103
|
childNodes: [],
|
|
5101
5104
|
isSVG: kp(e) || void 0,
|
|
5102
|
-
needBlock:
|
|
5105
|
+
needBlock: I,
|
|
5103
5106
|
needMask: V,
|
|
5104
5107
|
rootId: S,
|
|
5105
5108
|
isCustom: v
|
|
@@ -5126,24 +5129,24 @@ function St(e, t) {
|
|
|
5126
5129
|
maskTextClass: l,
|
|
5127
5130
|
maskTextSelector: o,
|
|
5128
5131
|
skipChild: a = !1,
|
|
5129
|
-
inlineStylesheet:
|
|
5130
|
-
maskInputOptions:
|
|
5132
|
+
inlineStylesheet: c = !0,
|
|
5133
|
+
maskInputOptions: u = {},
|
|
5131
5134
|
maskTextFn: h,
|
|
5132
5135
|
maskInputFn: p,
|
|
5133
5136
|
slimDOMOptions: m,
|
|
5134
5137
|
dataURLOptions: b = {},
|
|
5135
5138
|
inlineImages: d = !1,
|
|
5136
5139
|
inlineVideos: S = !1,
|
|
5137
|
-
recordCanvas:
|
|
5140
|
+
recordCanvas: I = !1,
|
|
5138
5141
|
onSerialize: V,
|
|
5139
|
-
onIframeLoad:
|
|
5140
|
-
iframeLoadTimeout:
|
|
5142
|
+
onIframeLoad: W,
|
|
5143
|
+
iframeLoadTimeout: X = 5e3,
|
|
5141
5144
|
onStylesheetLoad: G,
|
|
5142
5145
|
stylesheetLoadTimeout: k = 5e3,
|
|
5143
5146
|
keepIframeSrcFn: v = () => !1,
|
|
5144
5147
|
newlyAddedElement: w = !1,
|
|
5145
|
-
cssCaptured:
|
|
5146
|
-
privacySetting:
|
|
5148
|
+
cssCaptured: g = !1,
|
|
5149
|
+
privacySetting: R
|
|
5147
5150
|
} = t;
|
|
5148
5151
|
let { needsMask: J } = t, { preserveWhiteSpace: M = !0 } = t;
|
|
5149
5152
|
J || (J = ua(
|
|
@@ -5158,19 +5161,19 @@ function St(e, t) {
|
|
|
5158
5161
|
blockClass: s,
|
|
5159
5162
|
blockSelector: r,
|
|
5160
5163
|
needsMask: J,
|
|
5161
|
-
inlineStylesheet:
|
|
5162
|
-
maskInputOptions:
|
|
5164
|
+
inlineStylesheet: c,
|
|
5165
|
+
maskInputOptions: u,
|
|
5163
5166
|
maskTextClass: l,
|
|
5164
5167
|
maskTextFn: h,
|
|
5165
5168
|
maskInputFn: p,
|
|
5166
5169
|
dataURLOptions: b,
|
|
5167
5170
|
inlineImages: d,
|
|
5168
5171
|
inlineVideos: S,
|
|
5169
|
-
recordCanvas:
|
|
5172
|
+
recordCanvas: I,
|
|
5170
5173
|
keepIframeSrcFn: v,
|
|
5171
5174
|
newlyAddedElement: w,
|
|
5172
|
-
cssCaptured:
|
|
5173
|
-
privacySetting:
|
|
5175
|
+
cssCaptured: g,
|
|
5176
|
+
privacySetting: R
|
|
5174
5177
|
});
|
|
5175
5178
|
if (!$)
|
|
5176
5179
|
return console.warn(e, "not serialized"), null;
|
|
@@ -5180,7 +5183,7 @@ function St(e, t) {
|
|
|
5180
5183
|
if (n.add(e, y), f === li)
|
|
5181
5184
|
return null;
|
|
5182
5185
|
V && V(e);
|
|
5183
|
-
let T = !a, F =
|
|
5186
|
+
let T = !a, F = R, U = R === "strict";
|
|
5184
5187
|
if (y.type === ae.Element) {
|
|
5185
5188
|
if (T = T && !y.needBlock, U || (U = !!y.needBlock || !!y.needMask), F = U ? "strict" : F, U && Rs(y.tagName)) {
|
|
5186
5189
|
const j = e.cloneNode();
|
|
@@ -5201,19 +5204,19 @@ function St(e, t) {
|
|
|
5201
5204
|
maskTextClass: l,
|
|
5202
5205
|
maskTextSelector: o,
|
|
5203
5206
|
skipChild: a,
|
|
5204
|
-
inlineStylesheet:
|
|
5205
|
-
maskInputOptions:
|
|
5207
|
+
inlineStylesheet: c,
|
|
5208
|
+
maskInputOptions: u,
|
|
5206
5209
|
maskTextFn: h,
|
|
5207
5210
|
maskInputFn: p,
|
|
5208
5211
|
slimDOMOptions: m,
|
|
5209
5212
|
dataURLOptions: b,
|
|
5210
5213
|
inlineImages: d,
|
|
5211
5214
|
inlineVideos: S,
|
|
5212
|
-
recordCanvas:
|
|
5215
|
+
recordCanvas: I,
|
|
5213
5216
|
preserveWhiteSpace: M,
|
|
5214
5217
|
onSerialize: V,
|
|
5215
|
-
onIframeLoad:
|
|
5216
|
-
iframeLoadTimeout:
|
|
5218
|
+
onIframeLoad: W,
|
|
5219
|
+
iframeLoadTimeout: X,
|
|
5217
5220
|
onStylesheetLoad: G,
|
|
5218
5221
|
stylesheetLoadTimeout: k,
|
|
5219
5222
|
keepIframeSrcFn: v,
|
|
@@ -5239,7 +5242,7 @@ function St(e, t) {
|
|
|
5239
5242
|
e,
|
|
5240
5243
|
() => {
|
|
5241
5244
|
const A = e.contentDocument;
|
|
5242
|
-
if (A &&
|
|
5245
|
+
if (A && W) {
|
|
5243
5246
|
const j = St(A, {
|
|
5244
5247
|
doc: A,
|
|
5245
5248
|
mirror: n,
|
|
@@ -5249,31 +5252,31 @@ function St(e, t) {
|
|
|
5249
5252
|
maskTextClass: l,
|
|
5250
5253
|
maskTextSelector: o,
|
|
5251
5254
|
skipChild: !1,
|
|
5252
|
-
inlineStylesheet:
|
|
5253
|
-
maskInputOptions:
|
|
5255
|
+
inlineStylesheet: c,
|
|
5256
|
+
maskInputOptions: u,
|
|
5254
5257
|
maskTextFn: h,
|
|
5255
5258
|
maskInputFn: p,
|
|
5256
5259
|
slimDOMOptions: m,
|
|
5257
5260
|
dataURLOptions: b,
|
|
5258
5261
|
inlineImages: d,
|
|
5259
5262
|
inlineVideos: S,
|
|
5260
|
-
recordCanvas:
|
|
5263
|
+
recordCanvas: I,
|
|
5261
5264
|
preserveWhiteSpace: M,
|
|
5262
5265
|
onSerialize: V,
|
|
5263
|
-
onIframeLoad:
|
|
5264
|
-
iframeLoadTimeout:
|
|
5266
|
+
onIframeLoad: W,
|
|
5267
|
+
iframeLoadTimeout: X,
|
|
5265
5268
|
onStylesheetLoad: G,
|
|
5266
5269
|
stylesheetLoadTimeout: k,
|
|
5267
5270
|
keepIframeSrcFn: v,
|
|
5268
|
-
privacySetting:
|
|
5271
|
+
privacySetting: R
|
|
5269
5272
|
});
|
|
5270
|
-
j &&
|
|
5273
|
+
j && W(
|
|
5271
5274
|
e,
|
|
5272
5275
|
j
|
|
5273
5276
|
);
|
|
5274
5277
|
}
|
|
5275
5278
|
},
|
|
5276
|
-
|
|
5279
|
+
X
|
|
5277
5280
|
), y.type === ae.Element && y.tagName === "link" && typeof y.attributes.rel == "string" && (y.attributes.rel === "stylesheet" || y.attributes.rel === "preload" && typeof y.attributes.href == "string" && sa(y.attributes.href) === "css") && wp(
|
|
5278
5281
|
e,
|
|
5279
5282
|
() => {
|
|
@@ -5287,23 +5290,23 @@ function St(e, t) {
|
|
|
5287
5290
|
maskTextClass: l,
|
|
5288
5291
|
maskTextSelector: o,
|
|
5289
5292
|
skipChild: !1,
|
|
5290
|
-
inlineStylesheet:
|
|
5291
|
-
maskInputOptions:
|
|
5293
|
+
inlineStylesheet: c,
|
|
5294
|
+
maskInputOptions: u,
|
|
5292
5295
|
maskTextFn: h,
|
|
5293
5296
|
maskInputFn: p,
|
|
5294
5297
|
slimDOMOptions: m,
|
|
5295
5298
|
dataURLOptions: b,
|
|
5296
5299
|
inlineImages: d,
|
|
5297
5300
|
inlineVideos: S,
|
|
5298
|
-
recordCanvas:
|
|
5301
|
+
recordCanvas: I,
|
|
5299
5302
|
preserveWhiteSpace: M,
|
|
5300
5303
|
onSerialize: V,
|
|
5301
|
-
onIframeLoad:
|
|
5302
|
-
iframeLoadTimeout:
|
|
5304
|
+
onIframeLoad: W,
|
|
5305
|
+
iframeLoadTimeout: X,
|
|
5303
5306
|
onStylesheetLoad: G,
|
|
5304
5307
|
stylesheetLoadTimeout: k,
|
|
5305
5308
|
keepIframeSrcFn: v,
|
|
5306
|
-
privacySetting:
|
|
5309
|
+
privacySetting: R
|
|
5307
5310
|
});
|
|
5308
5311
|
A && G(
|
|
5309
5312
|
e,
|
|
@@ -5323,18 +5326,18 @@ function Yp(e, t) {
|
|
|
5323
5326
|
maskTextSelector: l = null,
|
|
5324
5327
|
inlineStylesheet: o = !0,
|
|
5325
5328
|
inlineImages: a = !1,
|
|
5326
|
-
inlineVideos:
|
|
5327
|
-
recordCanvas:
|
|
5329
|
+
inlineVideos: c = !1,
|
|
5330
|
+
recordCanvas: u = !1,
|
|
5328
5331
|
maskAllInputs: h = !1,
|
|
5329
5332
|
maskTextFn: p,
|
|
5330
5333
|
maskInputFn: m,
|
|
5331
5334
|
slimDOM: b = !1,
|
|
5332
5335
|
dataURLOptions: d,
|
|
5333
5336
|
preserveWhiteSpace: S,
|
|
5334
|
-
onSerialize:
|
|
5337
|
+
onSerialize: I,
|
|
5335
5338
|
onIframeLoad: V,
|
|
5336
|
-
iframeLoadTimeout:
|
|
5337
|
-
onStylesheetLoad:
|
|
5339
|
+
iframeLoadTimeout: W,
|
|
5340
|
+
onStylesheetLoad: X,
|
|
5338
5341
|
stylesheetLoadTimeout: G,
|
|
5339
5342
|
keepIframeSrcFn: k = () => !1,
|
|
5340
5343
|
privacySetting: v = "default"
|
|
@@ -5388,13 +5391,13 @@ function Yp(e, t) {
|
|
|
5388
5391
|
) : b || {},
|
|
5389
5392
|
dataURLOptions: d,
|
|
5390
5393
|
inlineImages: a,
|
|
5391
|
-
inlineVideos:
|
|
5392
|
-
recordCanvas:
|
|
5394
|
+
inlineVideos: c,
|
|
5395
|
+
recordCanvas: u,
|
|
5393
5396
|
preserveWhiteSpace: S,
|
|
5394
|
-
onSerialize:
|
|
5397
|
+
onSerialize: I,
|
|
5395
5398
|
onIframeLoad: V,
|
|
5396
|
-
iframeLoadTimeout:
|
|
5397
|
-
onStylesheetLoad:
|
|
5399
|
+
iframeLoadTimeout: W,
|
|
5400
|
+
onStylesheetLoad: X,
|
|
5398
5401
|
stylesheetLoadTimeout: G,
|
|
5399
5402
|
keepIframeSrcFn: k,
|
|
5400
5403
|
newlyAddedElement: !1,
|
|
@@ -5441,28 +5444,28 @@ let fo = Up, yo = Ne, ks = class ha extends Error {
|
|
|
5441
5444
|
if (!this.source) return "";
|
|
5442
5445
|
let i = this.source;
|
|
5443
5446
|
t == null && (t = fo.isColorSupported);
|
|
5444
|
-
let n = (
|
|
5447
|
+
let n = (u) => u, s = (u) => u, r = (u) => u;
|
|
5445
5448
|
if (t) {
|
|
5446
|
-
let { bold:
|
|
5447
|
-
s = (m) =>
|
|
5449
|
+
let { bold: u, gray: h, red: p } = fo.createColors(!0);
|
|
5450
|
+
s = (m) => u(p(m)), n = (m) => h(m), yo && (r = (m) => yo(m));
|
|
5448
5451
|
}
|
|
5449
|
-
let l = i.split(/\r?\n/), o = Math.max(this.line - 3, 0), a = Math.min(this.line + 2, l.length),
|
|
5450
|
-
return l.slice(o, a).map((
|
|
5451
|
-
let p = o + 1 + h, m = " " + (" " + p).slice(-
|
|
5452
|
+
let l = i.split(/\r?\n/), o = Math.max(this.line - 3, 0), a = Math.min(this.line + 2, l.length), c = String(a).length;
|
|
5453
|
+
return l.slice(o, a).map((u, h) => {
|
|
5454
|
+
let p = o + 1 + h, m = " " + (" " + p).slice(-c) + " | ";
|
|
5452
5455
|
if (p === this.line) {
|
|
5453
|
-
if (
|
|
5454
|
-
let d = 20, S = Math.max(0, this.column - d),
|
|
5456
|
+
if (u.length > 160) {
|
|
5457
|
+
let d = 20, S = Math.max(0, this.column - d), I = Math.max(
|
|
5455
5458
|
this.column + d,
|
|
5456
5459
|
this.endColumn + d
|
|
5457
|
-
), V =
|
|
5460
|
+
), V = u.slice(S, I), W = n(m.replace(/\d/g, " ")) + u.slice(0, Math.min(this.column - 1, d - 1)).replace(/[^\t]/g, " ");
|
|
5458
5461
|
return s(">") + n(m) + r(V) + `
|
|
5459
|
-
` +
|
|
5462
|
+
` + W + s("^");
|
|
5460
5463
|
}
|
|
5461
|
-
let b = n(m.replace(/\d/g, " ")) +
|
|
5462
|
-
return s(">") + n(m) + r(
|
|
5464
|
+
let b = n(m.replace(/\d/g, " ")) + u.slice(0, this.column - 1).replace(/[^\t]/g, " ");
|
|
5465
|
+
return s(">") + n(m) + r(u) + `
|
|
5463
5466
|
` + b + s("^");
|
|
5464
5467
|
}
|
|
5465
|
-
return " " + n(m) + r(
|
|
5468
|
+
return " " + n(m) + r(u);
|
|
5466
5469
|
}).join(`
|
|
5467
5470
|
`);
|
|
5468
5471
|
}
|
|
@@ -6306,13 +6309,13 @@ let In = class {
|
|
|
6306
6309
|
error(e, t, i, n = {}) {
|
|
6307
6310
|
let s, r, l, o, a;
|
|
6308
6311
|
if (t && typeof t == "object") {
|
|
6309
|
-
let
|
|
6310
|
-
if (typeof
|
|
6311
|
-
o =
|
|
6312
|
+
let u = t, h = i;
|
|
6313
|
+
if (typeof u.offset == "number") {
|
|
6314
|
+
o = u.offset;
|
|
6312
6315
|
let p = this.fromOffset(o);
|
|
6313
6316
|
t = p.line, i = p.col;
|
|
6314
6317
|
} else
|
|
6315
|
-
t =
|
|
6318
|
+
t = u.line, i = u.column, o = this.fromLineAndColumn(t, i);
|
|
6316
6319
|
if (typeof h.offset == "number") {
|
|
6317
6320
|
l = h.offset;
|
|
6318
6321
|
let p = this.fromOffset(l);
|
|
@@ -6323,16 +6326,16 @@ let In = class {
|
|
|
6323
6326
|
o = this.fromLineAndColumn(t, i);
|
|
6324
6327
|
else {
|
|
6325
6328
|
o = t;
|
|
6326
|
-
let
|
|
6327
|
-
t =
|
|
6329
|
+
let u = this.fromOffset(o);
|
|
6330
|
+
t = u.line, i = u.col;
|
|
6328
6331
|
}
|
|
6329
|
-
let
|
|
6330
|
-
return
|
|
6332
|
+
let c = this.origin(t, i, r, s);
|
|
6333
|
+
return c ? a = new Go(
|
|
6331
6334
|
e,
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6335
|
+
c.endLine === void 0 ? c.line : { column: c.column, line: c.line },
|
|
6336
|
+
c.endLine === void 0 ? c.column : { column: c.endColumn, line: c.endLine },
|
|
6337
|
+
c.source,
|
|
6338
|
+
c.file,
|
|
6336
6339
|
n.plugin
|
|
6337
6340
|
) : a = new Go(
|
|
6338
6341
|
e,
|
|
@@ -6393,8 +6396,8 @@ let In = class {
|
|
|
6393
6396
|
a.file = So(o);
|
|
6394
6397
|
else
|
|
6395
6398
|
throw new Error("file: protocol is not available in this PostCSS build");
|
|
6396
|
-
let
|
|
6397
|
-
return
|
|
6399
|
+
let c = s.sourceContentFor(r.source);
|
|
6400
|
+
return c && (a.source = c), a;
|
|
6398
6401
|
}
|
|
6399
6402
|
toJSON() {
|
|
6400
6403
|
let e = {};
|
|
@@ -6448,9 +6451,9 @@ let ci = {
|
|
|
6448
6451
|
return ci.split(e, t);
|
|
6449
6452
|
},
|
|
6450
6453
|
split(e, t, i) {
|
|
6451
|
-
let n = [], s = "", r = !1, l = 0, o = !1, a = "",
|
|
6452
|
-
for (let
|
|
6453
|
-
|
|
6454
|
+
let n = [], s = "", r = !1, l = 0, o = !1, a = "", c = !1;
|
|
6455
|
+
for (let u of e)
|
|
6456
|
+
c ? c = !1 : u === "\\" ? c = !0 : o ? u === a && (o = !1) : u === '"' || u === "'" ? (o = !0, a = u) : u === "(" ? l += 1 : u === ")" ? l > 0 && (l -= 1) : l === 0 && t.includes(u) && (r = !0), r ? (s !== "" && n.push(s.trim()), s = "", r = !1) : s += u;
|
|
6454
6457
|
return (i || s !== "") && n.push(s.trim()), n;
|
|
6455
6458
|
}
|
|
6456
6459
|
};
|
|
@@ -6571,8 +6574,8 @@ let { dirname: qi, relative: Ta, resolve: Na, sep: La } = Ne, { SourceMapConsume
|
|
|
6571
6574
|
this.stringify(this.root, (l, o, a) => {
|
|
6572
6575
|
if (this.css += l, o && a !== "end" && (n.generated.line = e, n.generated.column = t - 1, o.source && o.source.start ? (n.source = this.sourcePath(o), n.original.line = o.source.start.line, n.original.column = o.source.start.column - 1, this.map.addMapping(n)) : (n.source = i, n.original.line = 1, n.original.column = 0, this.map.addMapping(n))), r = l.match(/\n/g), r ? (e += r.length, s = l.lastIndexOf(`
|
|
6573
6576
|
`), t = l.length - s) : t += l.length, o && a !== "start") {
|
|
6574
|
-
let
|
|
6575
|
-
(!(o.type === "decl" || o.type === "atrule" && !o.nodes) || o !==
|
|
6577
|
+
let c = o.parent || { raws: {} };
|
|
6578
|
+
(!(o.type === "decl" || o.type === "atrule" && !o.nodes) || o !== c.last || c.raws.semicolon) && (o.source && o.source.end ? (n.source = this.sourcePath(o), n.original.line = o.source.end.line, n.original.column = o.source.end.column - 1, n.generated.line = e, n.generated.column = t - 2, this.map.addMapping(n)) : (n.source = i, n.original.line = 1, n.original.column = 0, n.generated.line = e, n.generated.column = t - 1, this.map.addMapping(n)));
|
|
6576
6579
|
}
|
|
6577
6580
|
});
|
|
6578
6581
|
}
|
|
@@ -6664,18 +6667,18 @@ let { dirname: qi, relative: Ta, resolve: Na, sep: La } = Ne, { SourceMapConsume
|
|
|
6664
6667
|
var Ya = Sm;
|
|
6665
6668
|
const ss = 39, Wo = 34, vi = 92, Ro = 47, wi = 10, Et = 32, xi = 12, Ti = 9, Ni = 13, Gm = 91, Vm = 93, Xm = 40, Cm = 41, Wm = 123, Rm = 125, km = 59, vm = 42, wm = 58, xm = 64, Li = /[\t\n\f\r "#'()/;[\\\]{}]/g, Ji = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Tm = /.[\r\n"'(/\\]/, ko = /[\da-f]/i;
|
|
6666
6669
|
var Nm = function(e, t = {}) {
|
|
6667
|
-
let i = e.css.valueOf(), n = t.ignoreErrors, s, r, l, o, a,
|
|
6670
|
+
let i = e.css.valueOf(), n = t.ignoreErrors, s, r, l, o, a, c, u, h, p, m, b = i.length, d = 0, S = [], I = [];
|
|
6668
6671
|
function V() {
|
|
6669
6672
|
return d;
|
|
6670
6673
|
}
|
|
6671
|
-
function
|
|
6674
|
+
function W(v) {
|
|
6672
6675
|
throw e.error("Unclosed " + v, d);
|
|
6673
6676
|
}
|
|
6674
|
-
function
|
|
6675
|
-
return
|
|
6677
|
+
function X() {
|
|
6678
|
+
return I.length === 0 && d >= b;
|
|
6676
6679
|
}
|
|
6677
6680
|
function G(v) {
|
|
6678
|
-
if (
|
|
6681
|
+
if (I.length) return I.pop();
|
|
6679
6682
|
if (d >= b) return;
|
|
6680
6683
|
let w = v ? v.ignoreUnclosed : !1;
|
|
6681
6684
|
switch (s = i.charCodeAt(d), s) {
|
|
@@ -6688,7 +6691,7 @@ var Nm = function(e, t = {}) {
|
|
|
6688
6691
|
do
|
|
6689
6692
|
o += 1, s = i.charCodeAt(o);
|
|
6690
6693
|
while (s === Et || s === wi || s === Ti || s === Ni || s === xi);
|
|
6691
|
-
|
|
6694
|
+
c = ["space", i.slice(d, o)], d = o - 1;
|
|
6692
6695
|
break;
|
|
6693
6696
|
}
|
|
6694
6697
|
case Gm:
|
|
@@ -6698,46 +6701,46 @@ var Nm = function(e, t = {}) {
|
|
|
6698
6701
|
case wm:
|
|
6699
6702
|
case km:
|
|
6700
6703
|
case Cm: {
|
|
6701
|
-
let
|
|
6702
|
-
|
|
6704
|
+
let g = String.fromCharCode(s);
|
|
6705
|
+
c = [g, g, d];
|
|
6703
6706
|
break;
|
|
6704
6707
|
}
|
|
6705
6708
|
case Xm: {
|
|
6706
6709
|
if (m = S.length ? S.pop()[1] : "", p = i.charCodeAt(d + 1), m === "url" && p !== ss && p !== Wo && p !== Et && p !== wi && p !== Ti && p !== xi && p !== Ni) {
|
|
6707
6710
|
o = d;
|
|
6708
6711
|
do {
|
|
6709
|
-
if (
|
|
6712
|
+
if (u = !1, o = i.indexOf(")", o + 1), o === -1)
|
|
6710
6713
|
if (n || w) {
|
|
6711
6714
|
o = d;
|
|
6712
6715
|
break;
|
|
6713
6716
|
} else
|
|
6714
|
-
|
|
6717
|
+
W("bracket");
|
|
6715
6718
|
for (h = o; i.charCodeAt(h - 1) === vi; )
|
|
6716
|
-
h -= 1,
|
|
6717
|
-
} while (
|
|
6718
|
-
|
|
6719
|
+
h -= 1, u = !u;
|
|
6720
|
+
} while (u);
|
|
6721
|
+
c = ["brackets", i.slice(d, o + 1), d, o], d = o;
|
|
6719
6722
|
} else
|
|
6720
|
-
o = i.indexOf(")", d + 1), r = i.slice(d, o + 1), o === -1 || Tm.test(r) ?
|
|
6723
|
+
o = i.indexOf(")", d + 1), r = i.slice(d, o + 1), o === -1 || Tm.test(r) ? c = ["(", "(", d] : (c = ["brackets", r, d, o], d = o);
|
|
6721
6724
|
break;
|
|
6722
6725
|
}
|
|
6723
6726
|
case ss:
|
|
6724
6727
|
case Wo: {
|
|
6725
6728
|
a = s === ss ? "'" : '"', o = d;
|
|
6726
6729
|
do {
|
|
6727
|
-
if (
|
|
6730
|
+
if (u = !1, o = i.indexOf(a, o + 1), o === -1)
|
|
6728
6731
|
if (n || w) {
|
|
6729
6732
|
o = d + 1;
|
|
6730
6733
|
break;
|
|
6731
6734
|
} else
|
|
6732
|
-
|
|
6735
|
+
W("string");
|
|
6733
6736
|
for (h = o; i.charCodeAt(h - 1) === vi; )
|
|
6734
|
-
h -= 1,
|
|
6735
|
-
} while (
|
|
6736
|
-
|
|
6737
|
+
h -= 1, u = !u;
|
|
6738
|
+
} while (u);
|
|
6739
|
+
c = ["string", i.slice(d, o + 1), d, o], d = o;
|
|
6737
6740
|
break;
|
|
6738
6741
|
}
|
|
6739
6742
|
case xm: {
|
|
6740
|
-
Li.lastIndex = d + 1, Li.test(i), Li.lastIndex === 0 ? o = i.length - 1 : o = Li.lastIndex - 2,
|
|
6743
|
+
Li.lastIndex = d + 1, Li.test(i), Li.lastIndex === 0 ? o = i.length - 1 : o = Li.lastIndex - 2, c = ["at-word", i.slice(d, o + 1), d, o], d = o;
|
|
6741
6744
|
break;
|
|
6742
6745
|
}
|
|
6743
6746
|
case vi: {
|
|
@@ -6748,22 +6751,22 @@ var Nm = function(e, t = {}) {
|
|
|
6748
6751
|
o += 1;
|
|
6749
6752
|
i.charCodeAt(o + 1) === Et && (o += 1);
|
|
6750
6753
|
}
|
|
6751
|
-
|
|
6754
|
+
c = ["word", i.slice(d, o + 1), d, o], d = o;
|
|
6752
6755
|
break;
|
|
6753
6756
|
}
|
|
6754
6757
|
default: {
|
|
6755
|
-
s === Ro && i.charCodeAt(d + 1) === vm ? (o = i.indexOf("*/", d + 2) + 1, o === 0 && (n || w ? o = i.length :
|
|
6758
|
+
s === Ro && i.charCodeAt(d + 1) === vm ? (o = i.indexOf("*/", d + 2) + 1, o === 0 && (n || w ? o = i.length : W("comment")), c = ["comment", i.slice(d, o + 1), d, o], d = o) : (Ji.lastIndex = d + 1, Ji.test(i), Ji.lastIndex === 0 ? o = i.length - 1 : o = Ji.lastIndex - 2, c = ["word", i.slice(d, o + 1), d, o], S.push(c), d = o);
|
|
6756
6759
|
break;
|
|
6757
6760
|
}
|
|
6758
6761
|
}
|
|
6759
|
-
return d++,
|
|
6762
|
+
return d++, c;
|
|
6760
6763
|
}
|
|
6761
6764
|
function k(v) {
|
|
6762
|
-
|
|
6765
|
+
I.push(v);
|
|
6763
6766
|
}
|
|
6764
6767
|
return {
|
|
6765
6768
|
back: k,
|
|
6766
|
-
endOfFile:
|
|
6769
|
+
endOfFile: X,
|
|
6767
6770
|
nextToken: G,
|
|
6768
6771
|
position: V
|
|
6769
6772
|
};
|
|
@@ -6888,14 +6891,14 @@ let Om = class {
|
|
|
6888
6891
|
a = this.spacesFromEnd(e) + a, a !== " !important" && (i.raws.important = a);
|
|
6889
6892
|
break;
|
|
6890
6893
|
} else if (s[1].toLowerCase() === "important") {
|
|
6891
|
-
let a = e.slice(0),
|
|
6892
|
-
for (let
|
|
6893
|
-
let h = a[
|
|
6894
|
-
if (
|
|
6894
|
+
let a = e.slice(0), c = "";
|
|
6895
|
+
for (let u = o; u > 0; u--) {
|
|
6896
|
+
let h = a[u][0];
|
|
6897
|
+
if (c.trim().startsWith("!") && h !== "space")
|
|
6895
6898
|
break;
|
|
6896
|
-
|
|
6899
|
+
c = a.pop()[1] + c;
|
|
6897
6900
|
}
|
|
6898
|
-
|
|
6901
|
+
c.trim().startsWith("!") && (i.important = !0, i.raws.important = c, e = a);
|
|
6899
6902
|
}
|
|
6900
6903
|
if (s[0] !== "space" && s[0] !== "comment")
|
|
6901
6904
|
break;
|
|
@@ -7003,9 +7006,9 @@ let Om = class {
|
|
|
7003
7006
|
precheckMissedSemicolon() {
|
|
7004
7007
|
}
|
|
7005
7008
|
raw(e, t, i, n) {
|
|
7006
|
-
let s, r, l = i.length, o = "", a = !0,
|
|
7009
|
+
let s, r, l = i.length, o = "", a = !0, c, u;
|
|
7007
7010
|
for (let h = 0; h < l; h += 1)
|
|
7008
|
-
s = i[h], r = s[0], r === "space" && h === l - 1 && !n ? a = !1 : r === "comment" ? (
|
|
7011
|
+
s = i[h], r = s[0], r === "space" && h === l - 1 && !n ? a = !1 : r === "comment" ? (u = i[h - 1] ? i[h - 1][0] : "empty", c = i[h + 1] ? i[h + 1][0] : "empty", !wo[u] && !wo[c] ? o.slice(-1) === "," ? a = !1 : o += s[1] : a = !1) : o += s[1];
|
|
7009
7012
|
if (!a) {
|
|
7010
7013
|
let h = i.reduce((p, m) => p + m[1], "");
|
|
7011
7014
|
e.raws[t] = { raw: h, value: o };
|
|
@@ -7675,28 +7678,28 @@ let Lo = kb, Jo = Le, zs = class Qa extends Error {
|
|
|
7675
7678
|
if (!this.source) return "";
|
|
7676
7679
|
let i = this.source;
|
|
7677
7680
|
t == null && (t = Lo.isColorSupported);
|
|
7678
|
-
let n = (
|
|
7681
|
+
let n = (u) => u, s = (u) => u, r = (u) => u;
|
|
7679
7682
|
if (t) {
|
|
7680
|
-
let { bold:
|
|
7681
|
-
s = (m) =>
|
|
7683
|
+
let { bold: u, gray: h, red: p } = Lo.createColors(!0);
|
|
7684
|
+
s = (m) => u(p(m)), n = (m) => h(m), Jo && (r = (m) => Jo(m));
|
|
7682
7685
|
}
|
|
7683
|
-
let l = i.split(/\r?\n/), o = Math.max(this.line - 3, 0), a = Math.min(this.line + 2, l.length),
|
|
7684
|
-
return l.slice(o, a).map((
|
|
7685
|
-
let p = o + 1 + h, m = " " + (" " + p).slice(-
|
|
7686
|
+
let l = i.split(/\r?\n/), o = Math.max(this.line - 3, 0), a = Math.min(this.line + 2, l.length), c = String(a).length;
|
|
7687
|
+
return l.slice(o, a).map((u, h) => {
|
|
7688
|
+
let p = o + 1 + h, m = " " + (" " + p).slice(-c) + " | ";
|
|
7686
7689
|
if (p === this.line) {
|
|
7687
|
-
if (
|
|
7688
|
-
let d = 20, S = Math.max(0, this.column - d),
|
|
7690
|
+
if (u.length > 160) {
|
|
7691
|
+
let d = 20, S = Math.max(0, this.column - d), I = Math.max(
|
|
7689
7692
|
this.column + d,
|
|
7690
7693
|
this.endColumn + d
|
|
7691
|
-
), V =
|
|
7694
|
+
), V = u.slice(S, I), W = n(m.replace(/\d/g, " ")) + u.slice(0, Math.min(this.column - 1, d - 1)).replace(/[^\t]/g, " ");
|
|
7692
7695
|
return s(">") + n(m) + r(V) + `
|
|
7693
|
-
` +
|
|
7696
|
+
` + W + s("^");
|
|
7694
7697
|
}
|
|
7695
|
-
let b = n(m.replace(/\d/g, " ")) +
|
|
7696
|
-
return s(">") + n(m) + r(
|
|
7698
|
+
let b = n(m.replace(/\d/g, " ")) + u.slice(0, this.column - 1).replace(/[^\t]/g, " ");
|
|
7699
|
+
return s(">") + n(m) + r(u) + `
|
|
7697
7700
|
` + b + s("^");
|
|
7698
7701
|
}
|
|
7699
|
-
return " " + n(m) + r(
|
|
7702
|
+
return " " + n(m) + r(u);
|
|
7700
7703
|
}).join(`
|
|
7701
7704
|
`);
|
|
7702
7705
|
}
|
|
@@ -8540,13 +8543,13 @@ let Xn = class {
|
|
|
8540
8543
|
error(e, t, i, n = {}) {
|
|
8541
8544
|
let s, r, l, o, a;
|
|
8542
8545
|
if (t && typeof t == "object") {
|
|
8543
|
-
let
|
|
8544
|
-
if (typeof
|
|
8545
|
-
o =
|
|
8546
|
+
let u = t, h = i;
|
|
8547
|
+
if (typeof u.offset == "number") {
|
|
8548
|
+
o = u.offset;
|
|
8546
8549
|
let p = this.fromOffset(o);
|
|
8547
8550
|
t = p.line, i = p.col;
|
|
8548
8551
|
} else
|
|
8549
|
-
t =
|
|
8552
|
+
t = u.line, i = u.column, o = this.fromLineAndColumn(t, i);
|
|
8550
8553
|
if (typeof h.offset == "number") {
|
|
8551
8554
|
l = h.offset;
|
|
8552
8555
|
let p = this.fromOffset(l);
|
|
@@ -8557,16 +8560,16 @@ let Xn = class {
|
|
|
8557
8560
|
o = this.fromLineAndColumn(t, i);
|
|
8558
8561
|
else {
|
|
8559
8562
|
o = t;
|
|
8560
|
-
let
|
|
8561
|
-
t =
|
|
8563
|
+
let u = this.fromOffset(o);
|
|
8564
|
+
t = u.line, i = u.col;
|
|
8562
8565
|
}
|
|
8563
|
-
let
|
|
8564
|
-
return
|
|
8566
|
+
let c = this.origin(t, i, r, s);
|
|
8567
|
+
return c ? a = new Oo(
|
|
8565
8568
|
e,
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8569
|
+
c.endLine === void 0 ? c.line : { column: c.column, line: c.line },
|
|
8570
|
+
c.endLine === void 0 ? c.column : { column: c.endColumn, line: c.endLine },
|
|
8571
|
+
c.source,
|
|
8572
|
+
c.file,
|
|
8570
8573
|
n.plugin
|
|
8571
8574
|
) : a = new Oo(
|
|
8572
8575
|
e,
|
|
@@ -8627,8 +8630,8 @@ let Xn = class {
|
|
|
8627
8630
|
a.file = Ko(o);
|
|
8628
8631
|
else
|
|
8629
8632
|
throw new Error("file: protocol is not available in this PostCSS build");
|
|
8630
|
-
let
|
|
8631
|
-
return
|
|
8633
|
+
let c = s.sourceContentFor(r.source);
|
|
8634
|
+
return c && (a.source = c), a;
|
|
8632
8635
|
}
|
|
8633
8636
|
toJSON() {
|
|
8634
8637
|
let e = {};
|
|
@@ -8682,9 +8685,9 @@ let pi = {
|
|
|
8682
8685
|
return pi.split(e, t);
|
|
8683
8686
|
},
|
|
8684
8687
|
split(e, t, i) {
|
|
8685
|
-
let n = [], s = "", r = !1, l = 0, o = !1, a = "",
|
|
8686
|
-
for (let
|
|
8687
|
-
|
|
8688
|
+
let n = [], s = "", r = !1, l = 0, o = !1, a = "", c = !1;
|
|
8689
|
+
for (let u of e)
|
|
8690
|
+
c ? c = !1 : u === "\\" ? c = !0 : o ? u === a && (o = !1) : u === '"' || u === "'" ? (o = !0, a = u) : u === "(" ? l += 1 : u === ")" ? l > 0 && (l -= 1) : l === 0 && t.includes(u) && (r = !0), r ? (s !== "" && n.push(s.trim()), s = "", r = !1) : s += u;
|
|
8688
8691
|
return (i || s !== "") && n.push(s.trim()), n;
|
|
8689
8692
|
}
|
|
8690
8693
|
};
|
|
@@ -8805,8 +8808,8 @@ let { dirname: tn, relative: bc, resolve: fc, sep: yc } = Le, { SourceMapConsume
|
|
|
8805
8808
|
this.stringify(this.root, (l, o, a) => {
|
|
8806
8809
|
if (this.css += l, o && a !== "end" && (n.generated.line = e, n.generated.column = t - 1, o.source && o.source.start ? (n.source = this.sourcePath(o), n.original.line = o.source.start.line, n.original.column = o.source.start.column - 1, this.map.addMapping(n)) : (n.source = i, n.original.line = 1, n.original.column = 0, this.map.addMapping(n))), r = l.match(/\n/g), r ? (e += r.length, s = l.lastIndexOf(`
|
|
8807
8810
|
`), t = l.length - s) : t += l.length, o && a !== "start") {
|
|
8808
|
-
let
|
|
8809
|
-
(!(o.type === "decl" || o.type === "atrule" && !o.nodes) || o !==
|
|
8811
|
+
let c = o.parent || { raws: {} };
|
|
8812
|
+
(!(o.type === "decl" || o.type === "atrule" && !o.nodes) || o !== c.last || c.raws.semicolon) && (o.source && o.source.end ? (n.source = this.sourcePath(o), n.original.line = o.source.end.line, n.original.column = o.source.end.column - 1, n.generated.line = e, n.generated.column = t - 2, this.map.addMapping(n)) : (n.source = i, n.original.line = 1, n.original.column = 0, n.generated.line = e, n.generated.column = t - 1, this.map.addMapping(n)));
|
|
8810
8813
|
}
|
|
8811
8814
|
});
|
|
8812
8815
|
}
|
|
@@ -8898,18 +8901,18 @@ let { dirname: tn, relative: bc, resolve: fc, sep: yc } = Le, { SourceMapConsume
|
|
|
8898
8901
|
var Zc = hf;
|
|
8899
8902
|
const as = 39, Ho = 34, Fi = 92, Po = 47, Ui = 10, Ht = 32, Ki = 12, Oi = 9, Ei = 13, pf = 91, mf = 93, bf = 40, ff = 41, yf = 123, gf = 125, Zf = 59, If = 42, Sf = 58, Gf = 64, Mi = /[\t\n\f\r "#'()/;[\\\]{}]/g, zi = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Vf = /.[\r\n"'(/\\]/, Bo = /[\da-f]/i;
|
|
8900
8903
|
var Xf = function(e, t = {}) {
|
|
8901
|
-
let i = e.css.valueOf(), n = t.ignoreErrors, s, r, l, o, a,
|
|
8904
|
+
let i = e.css.valueOf(), n = t.ignoreErrors, s, r, l, o, a, c, u, h, p, m, b = i.length, d = 0, S = [], I = [];
|
|
8902
8905
|
function V() {
|
|
8903
8906
|
return d;
|
|
8904
8907
|
}
|
|
8905
|
-
function
|
|
8908
|
+
function W(v) {
|
|
8906
8909
|
throw e.error("Unclosed " + v, d);
|
|
8907
8910
|
}
|
|
8908
|
-
function
|
|
8909
|
-
return
|
|
8911
|
+
function X() {
|
|
8912
|
+
return I.length === 0 && d >= b;
|
|
8910
8913
|
}
|
|
8911
8914
|
function G(v) {
|
|
8912
|
-
if (
|
|
8915
|
+
if (I.length) return I.pop();
|
|
8913
8916
|
if (d >= b) return;
|
|
8914
8917
|
let w = v ? v.ignoreUnclosed : !1;
|
|
8915
8918
|
switch (s = i.charCodeAt(d), s) {
|
|
@@ -8922,7 +8925,7 @@ var Xf = function(e, t = {}) {
|
|
|
8922
8925
|
do
|
|
8923
8926
|
o += 1, s = i.charCodeAt(o);
|
|
8924
8927
|
while (s === Ht || s === Ui || s === Oi || s === Ei || s === Ki);
|
|
8925
|
-
|
|
8928
|
+
c = ["space", i.slice(d, o)], d = o - 1;
|
|
8926
8929
|
break;
|
|
8927
8930
|
}
|
|
8928
8931
|
case pf:
|
|
@@ -8932,46 +8935,46 @@ var Xf = function(e, t = {}) {
|
|
|
8932
8935
|
case Sf:
|
|
8933
8936
|
case Zf:
|
|
8934
8937
|
case ff: {
|
|
8935
|
-
let
|
|
8936
|
-
|
|
8938
|
+
let g = String.fromCharCode(s);
|
|
8939
|
+
c = [g, g, d];
|
|
8937
8940
|
break;
|
|
8938
8941
|
}
|
|
8939
8942
|
case bf: {
|
|
8940
8943
|
if (m = S.length ? S.pop()[1] : "", p = i.charCodeAt(d + 1), m === "url" && p !== as && p !== Ho && p !== Ht && p !== Ui && p !== Oi && p !== Ki && p !== Ei) {
|
|
8941
8944
|
o = d;
|
|
8942
8945
|
do {
|
|
8943
|
-
if (
|
|
8946
|
+
if (u = !1, o = i.indexOf(")", o + 1), o === -1)
|
|
8944
8947
|
if (n || w) {
|
|
8945
8948
|
o = d;
|
|
8946
8949
|
break;
|
|
8947
8950
|
} else
|
|
8948
|
-
|
|
8951
|
+
W("bracket");
|
|
8949
8952
|
for (h = o; i.charCodeAt(h - 1) === Fi; )
|
|
8950
|
-
h -= 1,
|
|
8951
|
-
} while (
|
|
8952
|
-
|
|
8953
|
+
h -= 1, u = !u;
|
|
8954
|
+
} while (u);
|
|
8955
|
+
c = ["brackets", i.slice(d, o + 1), d, o], d = o;
|
|
8953
8956
|
} else
|
|
8954
|
-
o = i.indexOf(")", d + 1), r = i.slice(d, o + 1), o === -1 || Vf.test(r) ?
|
|
8957
|
+
o = i.indexOf(")", d + 1), r = i.slice(d, o + 1), o === -1 || Vf.test(r) ? c = ["(", "(", d] : (c = ["brackets", r, d, o], d = o);
|
|
8955
8958
|
break;
|
|
8956
8959
|
}
|
|
8957
8960
|
case as:
|
|
8958
8961
|
case Ho: {
|
|
8959
8962
|
a = s === as ? "'" : '"', o = d;
|
|
8960
8963
|
do {
|
|
8961
|
-
if (
|
|
8964
|
+
if (u = !1, o = i.indexOf(a, o + 1), o === -1)
|
|
8962
8965
|
if (n || w) {
|
|
8963
8966
|
o = d + 1;
|
|
8964
8967
|
break;
|
|
8965
8968
|
} else
|
|
8966
|
-
|
|
8969
|
+
W("string");
|
|
8967
8970
|
for (h = o; i.charCodeAt(h - 1) === Fi; )
|
|
8968
|
-
h -= 1,
|
|
8969
|
-
} while (
|
|
8970
|
-
|
|
8971
|
+
h -= 1, u = !u;
|
|
8972
|
+
} while (u);
|
|
8973
|
+
c = ["string", i.slice(d, o + 1), d, o], d = o;
|
|
8971
8974
|
break;
|
|
8972
8975
|
}
|
|
8973
8976
|
case Gf: {
|
|
8974
|
-
Mi.lastIndex = d + 1, Mi.test(i), Mi.lastIndex === 0 ? o = i.length - 1 : o = Mi.lastIndex - 2,
|
|
8977
|
+
Mi.lastIndex = d + 1, Mi.test(i), Mi.lastIndex === 0 ? o = i.length - 1 : o = Mi.lastIndex - 2, c = ["at-word", i.slice(d, o + 1), d, o], d = o;
|
|
8975
8978
|
break;
|
|
8976
8979
|
}
|
|
8977
8980
|
case Fi: {
|
|
@@ -8982,22 +8985,22 @@ var Xf = function(e, t = {}) {
|
|
|
8982
8985
|
o += 1;
|
|
8983
8986
|
i.charCodeAt(o + 1) === Ht && (o += 1);
|
|
8984
8987
|
}
|
|
8985
|
-
|
|
8988
|
+
c = ["word", i.slice(d, o + 1), d, o], d = o;
|
|
8986
8989
|
break;
|
|
8987
8990
|
}
|
|
8988
8991
|
default: {
|
|
8989
|
-
s === Po && i.charCodeAt(d + 1) === If ? (o = i.indexOf("*/", d + 2) + 1, o === 0 && (n || w ? o = i.length :
|
|
8992
|
+
s === Po && i.charCodeAt(d + 1) === If ? (o = i.indexOf("*/", d + 2) + 1, o === 0 && (n || w ? o = i.length : W("comment")), c = ["comment", i.slice(d, o + 1), d, o], d = o) : (zi.lastIndex = d + 1, zi.test(i), zi.lastIndex === 0 ? o = i.length - 1 : o = zi.lastIndex - 2, c = ["word", i.slice(d, o + 1), d, o], S.push(c), d = o);
|
|
8990
8993
|
break;
|
|
8991
8994
|
}
|
|
8992
8995
|
}
|
|
8993
|
-
return d++,
|
|
8996
|
+
return d++, c;
|
|
8994
8997
|
}
|
|
8995
8998
|
function k(v) {
|
|
8996
|
-
|
|
8999
|
+
I.push(v);
|
|
8997
9000
|
}
|
|
8998
9001
|
return {
|
|
8999
9002
|
back: k,
|
|
9000
|
-
endOfFile:
|
|
9003
|
+
endOfFile: X,
|
|
9001
9004
|
nextToken: G,
|
|
9002
9005
|
position: V
|
|
9003
9006
|
};
|
|
@@ -9122,14 +9125,14 @@ let xf = class {
|
|
|
9122
9125
|
a = this.spacesFromEnd(e) + a, a !== " !important" && (i.raws.important = a);
|
|
9123
9126
|
break;
|
|
9124
9127
|
} else if (s[1].toLowerCase() === "important") {
|
|
9125
|
-
let a = e.slice(0),
|
|
9126
|
-
for (let
|
|
9127
|
-
let h = a[
|
|
9128
|
-
if (
|
|
9128
|
+
let a = e.slice(0), c = "";
|
|
9129
|
+
for (let u = o; u > 0; u--) {
|
|
9130
|
+
let h = a[u][0];
|
|
9131
|
+
if (c.trim().startsWith("!") && h !== "space")
|
|
9129
9132
|
break;
|
|
9130
|
-
|
|
9133
|
+
c = a.pop()[1] + c;
|
|
9131
9134
|
}
|
|
9132
|
-
|
|
9135
|
+
c.trim().startsWith("!") && (i.important = !0, i.raws.important = c, e = a);
|
|
9133
9136
|
}
|
|
9134
9137
|
if (s[0] !== "space" && s[0] !== "comment")
|
|
9135
9138
|
break;
|
|
@@ -9237,9 +9240,9 @@ let xf = class {
|
|
|
9237
9240
|
precheckMissedSemicolon() {
|
|
9238
9241
|
}
|
|
9239
9242
|
raw(e, t, i, n) {
|
|
9240
|
-
let s, r, l = i.length, o = "", a = !0,
|
|
9243
|
+
let s, r, l = i.length, o = "", a = !0, c, u;
|
|
9241
9244
|
for (let h = 0; h < l; h += 1)
|
|
9242
|
-
s = i[h], r = s[0], r === "space" && h === l - 1 && !n ? a = !1 : r === "comment" ? (
|
|
9245
|
+
s = i[h], r = s[0], r === "space" && h === l - 1 && !n ? a = !1 : r === "comment" ? (u = i[h - 1] ? i[h - 1][0] : "empty", c = i[h + 1] ? i[h + 1][0] : "empty", !jo[u] && !jo[c] ? o.slice(-1) === "," ? a = !1 : o += s[1] : a = !1) : o += s[1];
|
|
9243
9246
|
if (!a) {
|
|
9244
9247
|
let h = i.reduce((p, m) => p + m[1], "");
|
|
9245
9248
|
e.raws[t] = { raw: h, value: o };
|
|
@@ -9930,8 +9933,8 @@ function Ur(e) {
|
|
|
9930
9933
|
const t = globalThis[e], i = t.prototype, n = e in $o ? $o[e] : void 0, s = !!(n && // @ts-expect-error 2345
|
|
9931
9934
|
n.every(
|
|
9932
9935
|
(o) => {
|
|
9933
|
-
var a,
|
|
9934
|
-
return !!((
|
|
9936
|
+
var a, c;
|
|
9937
|
+
return !!((c = (a = Object.getOwnPropertyDescriptor(i, o)) == null ? void 0 : a.get) != null && c.toString().includes("[native code]"));
|
|
9935
9938
|
}
|
|
9936
9939
|
)), r = e in qo ? qo[e] : void 0, l = !!(r && r.every(
|
|
9937
9940
|
// @ts-expect-error 2345
|
|
@@ -9947,8 +9950,8 @@ function Ur(e) {
|
|
|
9947
9950
|
document.body.appendChild(o);
|
|
9948
9951
|
const a = o.contentWindow;
|
|
9949
9952
|
if (!a) return t.prototype;
|
|
9950
|
-
const
|
|
9951
|
-
return document.body.removeChild(o),
|
|
9953
|
+
const c = a[e].prototype;
|
|
9954
|
+
return document.body.removeChild(o), c ? Hi[e] = c : i;
|
|
9952
9955
|
} catch {
|
|
9953
9956
|
return i;
|
|
9954
9957
|
}
|
|
@@ -10176,7 +10179,7 @@ function rr(e) {
|
|
|
10176
10179
|
}
|
|
10177
10180
|
class xy {
|
|
10178
10181
|
constructor() {
|
|
10179
|
-
|
|
10182
|
+
C(this, "id", 1), C(this, "styleIDMap", /* @__PURE__ */ new WeakMap()), C(this, "idStyleMap", /* @__PURE__ */ new Map());
|
|
10180
10183
|
}
|
|
10181
10184
|
getId(t) {
|
|
10182
10185
|
var i;
|
|
@@ -10230,7 +10233,7 @@ function tl(e) {
|
|
|
10230
10233
|
}
|
|
10231
10234
|
class Ly {
|
|
10232
10235
|
constructor() {
|
|
10233
|
-
|
|
10236
|
+
C(this, "length", 0), C(this, "head", null), C(this, "tail", null);
|
|
10234
10237
|
}
|
|
10235
10238
|
get(t) {
|
|
10236
10239
|
if (t >= this.length)
|
|
@@ -10264,28 +10267,28 @@ class Ly {
|
|
|
10264
10267
|
const il = (e, t) => `${e}@${t}`;
|
|
10265
10268
|
class Jy {
|
|
10266
10269
|
constructor() {
|
|
10267
|
-
|
|
10270
|
+
C(this, "frozen", !1), C(this, "locked", !1), C(this, "texts", []), C(this, "attributes", []), C(this, "attributeMap", /* @__PURE__ */ new WeakMap()), C(this, "removes", []), C(this, "mapRemoves", []), C(this, "movedMap", {}), C(this, "addedSet", /* @__PURE__ */ new Set()), C(this, "movedSet", /* @__PURE__ */ new Set()), C(this, "droppedSet", /* @__PURE__ */ new Set()), C(this, "removesSubTreeCache", /* @__PURE__ */ new Set()), C(this, "mutationCb"), C(this, "blockClass"), C(this, "blockSelector"), C(this, "maskTextClass"), C(this, "maskTextSelector"), C(this, "inlineStylesheet"), C(this, "maskInputOptions"), C(this, "maskTextFn"), C(this, "maskInputFn"), C(this, "keepIframeSrcFn"), C(this, "recordCanvas"), C(this, "inlineImages"), C(this, "inlineVideos"), C(this, "privacySetting"), C(this, "slimDOMOptions"), C(this, "dataURLOptions"), C(this, "doc"), C(this, "mirror"), C(this, "iframeManager"), C(this, "stylesheetManager"), C(this, "shadowDomManager"), C(this, "canvasManager"), C(this, "processedNodeManager"), C(this, "unattachedDoc"), C(this, "processMutations", (t) => {
|
|
10268
10271
|
t.forEach(this.processMutation), this.emit();
|
|
10269
|
-
}),
|
|
10272
|
+
}), C(this, "emit", () => {
|
|
10270
10273
|
if (this.frozen || this.locked)
|
|
10271
10274
|
return;
|
|
10272
10275
|
const t = [], i = /* @__PURE__ */ new Set(), n = new Ly(), s = (a) => {
|
|
10273
|
-
let
|
|
10274
|
-
for (;
|
|
10275
|
-
|
|
10276
|
-
return
|
|
10276
|
+
let c = a, u = li;
|
|
10277
|
+
for (; u === li; )
|
|
10278
|
+
c = c && c.nextSibling, u = c && this.mirror.getId(c);
|
|
10279
|
+
return u;
|
|
10277
10280
|
}, r = (a) => {
|
|
10278
|
-
const
|
|
10279
|
-
if (!
|
|
10281
|
+
const c = P.parentNode(a);
|
|
10282
|
+
if (!c || !Ec(a))
|
|
10280
10283
|
return;
|
|
10281
|
-
let
|
|
10284
|
+
let u = !1;
|
|
10282
10285
|
if (a.nodeType === Node.TEXT_NODE) {
|
|
10283
|
-
const b =
|
|
10286
|
+
const b = c.tagName;
|
|
10284
10287
|
if (b === "TEXTAREA")
|
|
10285
10288
|
return;
|
|
10286
|
-
b === "STYLE" && this.addedSet.has(
|
|
10289
|
+
b === "STYLE" && this.addedSet.has(c) && (u = !0);
|
|
10287
10290
|
}
|
|
10288
|
-
const h = qt(
|
|
10291
|
+
const h = qt(c) ? this.mirror.getId(Oc(a)) : this.mirror.getId(c), p = s(a);
|
|
10289
10292
|
if (h === -1 || p === -1)
|
|
10290
10293
|
return n.addNode(a);
|
|
10291
10294
|
const m = St(a, {
|
|
@@ -10318,7 +10321,7 @@ class Jy {
|
|
|
10318
10321
|
onStylesheetLoad: (b, d) => {
|
|
10319
10322
|
this.stylesheetManager.attachLinkElement(b, d);
|
|
10320
10323
|
},
|
|
10321
|
-
cssCaptured:
|
|
10324
|
+
cssCaptured: u
|
|
10322
10325
|
});
|
|
10323
10326
|
m && (t.push({
|
|
10324
10327
|
parentId: h,
|
|
@@ -10336,25 +10339,25 @@ class Jy {
|
|
|
10336
10339
|
for (; n.length; ) {
|
|
10337
10340
|
let a = null;
|
|
10338
10341
|
if (l) {
|
|
10339
|
-
const
|
|
10340
|
-
|
|
10342
|
+
const c = this.mirror.getId(P.parentNode(l.value)), u = s(l.value);
|
|
10343
|
+
c !== -1 && u !== -1 && (a = l);
|
|
10341
10344
|
}
|
|
10342
10345
|
if (!a) {
|
|
10343
|
-
let
|
|
10344
|
-
for (;
|
|
10345
|
-
const
|
|
10346
|
-
if (
|
|
10347
|
-
const h = this.mirror.getId(P.parentNode(
|
|
10348
|
-
if (s(
|
|
10346
|
+
let c = n.tail;
|
|
10347
|
+
for (; c; ) {
|
|
10348
|
+
const u = c;
|
|
10349
|
+
if (c = c.previous, u) {
|
|
10350
|
+
const h = this.mirror.getId(P.parentNode(u.value));
|
|
10351
|
+
if (s(u.value) === -1) continue;
|
|
10349
10352
|
if (h !== -1) {
|
|
10350
|
-
a =
|
|
10353
|
+
a = u;
|
|
10351
10354
|
break;
|
|
10352
10355
|
} else {
|
|
10353
|
-
const p =
|
|
10356
|
+
const p = u.value, m = P.parentNode(p);
|
|
10354
10357
|
if (m && m.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
|
|
10355
10358
|
const b = P.host(m);
|
|
10356
10359
|
if (this.mirror.getId(b) !== -1) {
|
|
10357
|
-
a =
|
|
10360
|
+
a = u;
|
|
10358
10361
|
break;
|
|
10359
10362
|
}
|
|
10360
10363
|
}
|
|
@@ -10371,32 +10374,32 @@ class Jy {
|
|
|
10371
10374
|
}
|
|
10372
10375
|
const o = {
|
|
10373
10376
|
texts: this.texts.map((a) => {
|
|
10374
|
-
var
|
|
10377
|
+
var c, u;
|
|
10375
10378
|
const h = a.node, p = P.parentNode(h);
|
|
10376
10379
|
p && p.tagName === "TEXTAREA" && this.genTextAreaValueMutation(p);
|
|
10377
10380
|
let m = a.value;
|
|
10378
|
-
const b = this.privacySetting === "strict", d = this.privacySetting === "default" && ra(m), S = (
|
|
10381
|
+
const b = this.privacySetting === "strict", d = this.privacySetting === "default" && ra(m), S = (u = (c = a.node) == null ? void 0 : c.parentElement) == null ? void 0 : u.getAttribute("data-hl-record");
|
|
10379
10382
|
return (b || d) && !S && m && (m = br(m)), {
|
|
10380
10383
|
id: this.mirror.getId(h),
|
|
10381
10384
|
value: m
|
|
10382
10385
|
};
|
|
10383
10386
|
}).filter((a) => !i.has(a.id)).filter((a) => this.mirror.has(a.id)),
|
|
10384
10387
|
attributes: this.attributes.map((a) => {
|
|
10385
|
-
const { attributes:
|
|
10386
|
-
if (typeof
|
|
10387
|
-
const
|
|
10388
|
-
|
|
10388
|
+
const { attributes: c } = a;
|
|
10389
|
+
if (typeof c.style == "string") {
|
|
10390
|
+
const u = JSON.stringify(a.styleDiff), h = JSON.stringify(a._unchangedStyles);
|
|
10391
|
+
u.length < c.style.length && (u + h).split("var(").length === c.style.split("var(").length && (c.style = a.styleDiff);
|
|
10389
10392
|
}
|
|
10390
10393
|
return {
|
|
10391
10394
|
id: this.mirror.getId(a.node),
|
|
10392
|
-
attributes:
|
|
10395
|
+
attributes: c
|
|
10393
10396
|
};
|
|
10394
10397
|
}).filter((a) => !i.has(a.id)).filter((a) => this.mirror.has(a.id)),
|
|
10395
10398
|
removes: this.removes,
|
|
10396
10399
|
adds: t
|
|
10397
10400
|
};
|
|
10398
10401
|
!o.texts.length && !o.attributes.length && !o.removes.length && !o.adds.length || (this.texts = [], this.attributes = [], this.attributeMap = /* @__PURE__ */ new WeakMap(), this.removes = [], this.addedSet = /* @__PURE__ */ new Set(), this.movedSet = /* @__PURE__ */ new Set(), this.droppedSet = /* @__PURE__ */ new Set(), this.removesSubTreeCache = /* @__PURE__ */ new Set(), this.movedMap = {}, this.mutationCb(o));
|
|
10399
|
-
}),
|
|
10402
|
+
}), C(this, "genTextAreaValueMutation", (t) => {
|
|
10400
10403
|
let i = this.attributeMap.get(t);
|
|
10401
10404
|
i || (i = {
|
|
10402
10405
|
node: t,
|
|
@@ -10417,7 +10420,7 @@ class Jy {
|
|
|
10417
10420
|
value: n,
|
|
10418
10421
|
maskInputFn: this.maskInputFn
|
|
10419
10422
|
});
|
|
10420
|
-
}),
|
|
10423
|
+
}), C(this, "processMutation", (t) => {
|
|
10421
10424
|
if (!ds(t.target, this.mirror, this.slimDOMOptions))
|
|
10422
10425
|
switch (t.type) {
|
|
10423
10426
|
case "characterData": {
|
|
@@ -10485,8 +10488,8 @@ class Jy {
|
|
|
10485
10488
|
const l = this.unattachedDoc.createElement("span");
|
|
10486
10489
|
t.oldValue && l.setAttribute("style", t.oldValue);
|
|
10487
10490
|
for (const o of Array.from(i.style)) {
|
|
10488
|
-
const a = i.style.getPropertyValue(o),
|
|
10489
|
-
a !== l.style.getPropertyValue(o) ||
|
|
10491
|
+
const a = i.style.getPropertyValue(o), c = i.style.getPropertyPriority(o);
|
|
10492
|
+
a !== l.style.getPropertyValue(o) || c !== l.style.getPropertyPriority(o) ? c === "" ? r.styleDiff[o] = a : r.styleDiff[o] = [a, c] : r._unchangedStyles[o] = [a, c];
|
|
10490
10493
|
}
|
|
10491
10494
|
for (const o of Array.from(l.style))
|
|
10492
10495
|
i.style.getPropertyValue(o) === "" && (r.styleDiff[o] = !1);
|
|
@@ -10512,7 +10515,7 @@ class Jy {
|
|
|
10512
10515
|
break;
|
|
10513
10516
|
}
|
|
10514
10517
|
}
|
|
10515
|
-
}),
|
|
10518
|
+
}), C(this, "genAdds", (t, i) => {
|
|
10516
10519
|
if (!this.processedNodeManager.inOtherBuffer(t, this) && !(this.addedSet.has(t) || this.movedSet.has(t))) {
|
|
10517
10520
|
if (this.mirror.hasNode(t)) {
|
|
10518
10521
|
if (ds(t, this.mirror, this.slimDOMOptions))
|
|
@@ -10665,7 +10668,7 @@ function Oy({
|
|
|
10665
10668
|
}
|
|
10666
10669
|
),
|
|
10667
10670
|
r
|
|
10668
|
-
),
|
|
10671
|
+
), c = D(
|
|
10669
10672
|
fi(
|
|
10670
10673
|
D((h) => {
|
|
10671
10674
|
const p = Gi(h), { clientX: m, clientY: b } = sr(h) ? h.changedTouches[0] : h;
|
|
@@ -10683,13 +10686,13 @@ function Oy({
|
|
|
10683
10686
|
trailing: !1
|
|
10684
10687
|
}
|
|
10685
10688
|
)
|
|
10686
|
-
),
|
|
10687
|
-
Ze("mousemove",
|
|
10688
|
-
Ze("touchmove",
|
|
10689
|
-
Ze("drag",
|
|
10689
|
+
), u = [
|
|
10690
|
+
Ze("mousemove", c, i),
|
|
10691
|
+
Ze("touchmove", c, i),
|
|
10692
|
+
Ze("drag", c, i)
|
|
10690
10693
|
];
|
|
10691
10694
|
return D(() => {
|
|
10692
|
-
|
|
10695
|
+
u.forEach((h) => h());
|
|
10693
10696
|
});
|
|
10694
10697
|
}
|
|
10695
10698
|
function Ey({
|
|
@@ -10705,12 +10708,12 @@ function Ey({
|
|
|
10705
10708
|
};
|
|
10706
10709
|
const l = r.mouseInteraction === !0 || r.mouseInteraction === void 0 ? {} : r.mouseInteraction, o = [];
|
|
10707
10710
|
let a = null;
|
|
10708
|
-
const
|
|
10711
|
+
const c = (u) => (h) => {
|
|
10709
10712
|
const p = Gi(h);
|
|
10710
10713
|
if (pe(p, n, s, !0) || // We ignore canvas elements for rage click detection because we cannot infer what inside the canvas is getting interacted with.
|
|
10711
10714
|
ky(p))
|
|
10712
10715
|
return;
|
|
10713
|
-
let m = null, b =
|
|
10716
|
+
let m = null, b = u;
|
|
10714
10717
|
if ("pointerType" in h) {
|
|
10715
10718
|
switch (h.pointerType) {
|
|
10716
10719
|
case "mouse":
|
|
@@ -10723,27 +10726,27 @@ function Ey({
|
|
|
10723
10726
|
m = _e.Pen;
|
|
10724
10727
|
break;
|
|
10725
10728
|
}
|
|
10726
|
-
m === _e.Touch && (Ge[
|
|
10729
|
+
m === _e.Touch && (Ge[u] === Ge.MouseDown ? b = "TouchStart" : Ge[u] === Ge.MouseUp && (b = "TouchEnd"));
|
|
10727
10730
|
} else sr(h) && (m = _e.Touch);
|
|
10728
|
-
m !== null ? (a = m, (b.startsWith("Touch") && m === _e.Touch || b.startsWith("Mouse") && m === _e.Mouse) && (m = null)) : Ge[
|
|
10731
|
+
m !== null ? (a = m, (b.startsWith("Touch") && m === _e.Touch || b.startsWith("Mouse") && m === _e.Mouse) && (m = null)) : Ge[u] === Ge.Click && (m = a, a = null);
|
|
10729
10732
|
const d = sr(h) ? h.changedTouches[0] : h;
|
|
10730
10733
|
if (!d)
|
|
10731
10734
|
return;
|
|
10732
|
-
const S = i.getId(p), { clientX:
|
|
10735
|
+
const S = i.getId(p), { clientX: I, clientY: V } = d;
|
|
10733
10736
|
D(e)(Y({
|
|
10734
10737
|
type: Ge[b],
|
|
10735
10738
|
id: S,
|
|
10736
|
-
x:
|
|
10739
|
+
x: I,
|
|
10737
10740
|
y: V
|
|
10738
10741
|
}, m !== null && { pointerType: m }));
|
|
10739
10742
|
};
|
|
10740
10743
|
return Object.keys(Ge).filter(
|
|
10741
|
-
(
|
|
10742
|
-
).forEach((
|
|
10743
|
-
let h = kt(
|
|
10744
|
-
const p = u
|
|
10744
|
+
(u) => Number.isNaN(Number(u)) && !u.endsWith("_Departed") && l[u] !== !1
|
|
10745
|
+
).forEach((u) => {
|
|
10746
|
+
let h = kt(u);
|
|
10747
|
+
const p = c(u);
|
|
10745
10748
|
if (window.PointerEvent)
|
|
10746
|
-
switch (Ge[
|
|
10749
|
+
switch (Ge[u]) {
|
|
10747
10750
|
case Ge.MouseDown:
|
|
10748
10751
|
case Ge.MouseUp:
|
|
10749
10752
|
h = h.replace(
|
|
@@ -10757,7 +10760,7 @@ function Ey({
|
|
|
10757
10760
|
}
|
|
10758
10761
|
o.push(Ze(h, p, t));
|
|
10759
10762
|
}), D(() => {
|
|
10760
|
-
o.forEach((
|
|
10763
|
+
o.forEach((u) => u());
|
|
10761
10764
|
});
|
|
10762
10765
|
}
|
|
10763
10766
|
function Pc({
|
|
@@ -10774,17 +10777,17 @@ function Pc({
|
|
|
10774
10777
|
const a = Gi(o);
|
|
10775
10778
|
if (!a || pe(a, n, s, !0))
|
|
10776
10779
|
return;
|
|
10777
|
-
const
|
|
10780
|
+
const c = i.getId(a);
|
|
10778
10781
|
if (a === t && t.defaultView) {
|
|
10779
|
-
const
|
|
10782
|
+
const u = Nc(t.defaultView);
|
|
10780
10783
|
e({
|
|
10781
|
-
id:
|
|
10782
|
-
x:
|
|
10783
|
-
y:
|
|
10784
|
+
id: c,
|
|
10785
|
+
x: u.left,
|
|
10786
|
+
y: u.top
|
|
10784
10787
|
});
|
|
10785
10788
|
} else
|
|
10786
10789
|
e({
|
|
10787
|
-
id:
|
|
10790
|
+
id: c,
|
|
10788
10791
|
x: a.scrollLeft,
|
|
10789
10792
|
y: a.scrollTop
|
|
10790
10793
|
});
|
|
@@ -10821,60 +10824,60 @@ function Hy({
|
|
|
10821
10824
|
ignoreSelector: l,
|
|
10822
10825
|
maskInputOptions: o,
|
|
10823
10826
|
maskInputFn: a,
|
|
10824
|
-
sampling:
|
|
10825
|
-
userTriggeredOnInput:
|
|
10827
|
+
sampling: c,
|
|
10828
|
+
userTriggeredOnInput: u
|
|
10826
10829
|
}) {
|
|
10827
|
-
function h(
|
|
10828
|
-
let V = Gi(
|
|
10829
|
-
const
|
|
10830
|
-
if (V &&
|
|
10830
|
+
function h(I) {
|
|
10831
|
+
let V = Gi(I);
|
|
10832
|
+
const W = I.isTrusted, X = V && V.tagName;
|
|
10833
|
+
if (V && X === "OPTION" && (V = P.parentElement(V)), !V || !X || zy.indexOf(X) < 0 || pe(V, n, s, !0) || V.classList.contains(r) || l && V.matches(l))
|
|
10831
10834
|
return;
|
|
10832
10835
|
let G = V.value, k = !1;
|
|
10833
10836
|
const v = bn(V) || "", w = V.getAttribute("data-hl-record");
|
|
10834
10837
|
v === "radio" || v === "checkbox" ? k = V.checked : oa({
|
|
10835
10838
|
maskInputOptions: o,
|
|
10836
10839
|
type: v,
|
|
10837
|
-
tagName:
|
|
10840
|
+
tagName: X,
|
|
10838
10841
|
overwriteRecord: w
|
|
10839
10842
|
}) && (G = mn({
|
|
10840
10843
|
element: V,
|
|
10841
10844
|
maskInputOptions: o,
|
|
10842
|
-
tagName:
|
|
10845
|
+
tagName: X,
|
|
10843
10846
|
type: v,
|
|
10844
10847
|
value: G,
|
|
10845
10848
|
overwriteRecord: w,
|
|
10846
10849
|
maskInputFn: a
|
|
10847
10850
|
})), p(
|
|
10848
10851
|
V,
|
|
10849
|
-
|
|
10852
|
+
u ? { text: G, isChecked: k, userTriggered: W } : { text: G, isChecked: k }
|
|
10850
10853
|
);
|
|
10851
|
-
const
|
|
10852
|
-
v === "radio" &&
|
|
10853
|
-
if (
|
|
10854
|
-
const J =
|
|
10854
|
+
const g = V.name;
|
|
10855
|
+
v === "radio" && g && k && t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach((R) => {
|
|
10856
|
+
if (R !== V) {
|
|
10857
|
+
const J = R.value;
|
|
10855
10858
|
p(
|
|
10856
|
-
|
|
10857
|
-
|
|
10859
|
+
R,
|
|
10860
|
+
u ? { text: J, isChecked: !k, userTriggered: !1 } : { text: J, isChecked: !k }
|
|
10858
10861
|
);
|
|
10859
10862
|
}
|
|
10860
10863
|
});
|
|
10861
10864
|
}
|
|
10862
|
-
function p(
|
|
10863
|
-
const
|
|
10864
|
-
if (!
|
|
10865
|
-
rl.set(
|
|
10866
|
-
const
|
|
10865
|
+
function p(I, V) {
|
|
10866
|
+
const W = rl.get(I);
|
|
10867
|
+
if (!W || W.text !== V.text || W.isChecked !== V.isChecked) {
|
|
10868
|
+
rl.set(I, V);
|
|
10869
|
+
const X = i.getId(I);
|
|
10867
10870
|
D(e)(Se(Y({}, V), {
|
|
10868
|
-
id:
|
|
10871
|
+
id: X
|
|
10869
10872
|
}));
|
|
10870
10873
|
}
|
|
10871
10874
|
}
|
|
10872
|
-
const m = (
|
|
10873
|
-
(
|
|
10875
|
+
const m = (c.input === "last" ? ["change"] : ["input", "change"]).map(
|
|
10876
|
+
(I) => Ze(I, D(h), t)
|
|
10874
10877
|
), b = t.defaultView;
|
|
10875
10878
|
if (!b)
|
|
10876
10879
|
return () => {
|
|
10877
|
-
m.forEach((
|
|
10880
|
+
m.forEach((I) => I());
|
|
10878
10881
|
};
|
|
10879
10882
|
const d = b.Object.getOwnPropertyDescriptor(
|
|
10880
10883
|
b.HTMLInputElement.prototype,
|
|
@@ -10890,9 +10893,9 @@ function Hy({
|
|
|
10890
10893
|
];
|
|
10891
10894
|
return d && d.set && m.push(
|
|
10892
10895
|
...S.map(
|
|
10893
|
-
(
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
+
(I) => Hn(
|
|
10897
|
+
I[0],
|
|
10898
|
+
I[1],
|
|
10896
10899
|
{
|
|
10897
10900
|
set() {
|
|
10898
10901
|
D(h)({
|
|
@@ -10907,7 +10910,7 @@ function Hy({
|
|
|
10907
10910
|
)
|
|
10908
10911
|
)
|
|
10909
10912
|
), D(() => {
|
|
10910
|
-
m.forEach((
|
|
10913
|
+
m.forEach((I) => I());
|
|
10911
10914
|
});
|
|
10912
10915
|
}
|
|
10913
10916
|
function kn(e) {
|
|
@@ -10940,7 +10943,7 @@ function Py({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: n }
|
|
|
10940
10943
|
const s = n.CSSStyleSheet.prototype.insertRule;
|
|
10941
10944
|
n.CSSStyleSheet.prototype.insertRule = new Proxy(s, {
|
|
10942
10945
|
apply: D(
|
|
10943
|
-
(
|
|
10946
|
+
(u, h, p) => {
|
|
10944
10947
|
const [m, b] = p, { id: d, styleId: S } = $e(
|
|
10945
10948
|
h,
|
|
10946
10949
|
t,
|
|
@@ -10950,17 +10953,17 @@ function Py({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: n }
|
|
|
10950
10953
|
id: d,
|
|
10951
10954
|
styleId: S,
|
|
10952
10955
|
adds: [{ rule: m, index: b }]
|
|
10953
|
-
}),
|
|
10956
|
+
}), u.apply(h, p);
|
|
10954
10957
|
}
|
|
10955
10958
|
)
|
|
10956
|
-
}), n.CSSStyleSheet.prototype.addRule = function(
|
|
10957
|
-
const m = `${
|
|
10959
|
+
}), n.CSSStyleSheet.prototype.addRule = function(u, h, p = this.cssRules.length) {
|
|
10960
|
+
const m = `${u} { ${h} }`;
|
|
10958
10961
|
return n.CSSStyleSheet.prototype.insertRule.apply(this, [m, p]);
|
|
10959
10962
|
};
|
|
10960
10963
|
const r = n.CSSStyleSheet.prototype.deleteRule;
|
|
10961
10964
|
n.CSSStyleSheet.prototype.deleteRule = new Proxy(r, {
|
|
10962
10965
|
apply: D(
|
|
10963
|
-
(
|
|
10966
|
+
(u, h, p) => {
|
|
10964
10967
|
const [m] = p, { id: b, styleId: d } = $e(
|
|
10965
10968
|
h,
|
|
10966
10969
|
t,
|
|
@@ -10970,16 +10973,16 @@ function Py({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: n }
|
|
|
10970
10973
|
id: b,
|
|
10971
10974
|
styleId: d,
|
|
10972
10975
|
removes: [{ index: m }]
|
|
10973
|
-
}),
|
|
10976
|
+
}), u.apply(h, p);
|
|
10974
10977
|
}
|
|
10975
10978
|
)
|
|
10976
|
-
}), n.CSSStyleSheet.prototype.removeRule = function(
|
|
10977
|
-
return n.CSSStyleSheet.prototype.deleteRule.apply(this, [
|
|
10979
|
+
}), n.CSSStyleSheet.prototype.removeRule = function(u) {
|
|
10980
|
+
return n.CSSStyleSheet.prototype.deleteRule.apply(this, [u]);
|
|
10978
10981
|
};
|
|
10979
10982
|
let l;
|
|
10980
10983
|
n.CSSStyleSheet.prototype.replace && (l = n.CSSStyleSheet.prototype.replace, n.CSSStyleSheet.prototype.replace = new Proxy(l, {
|
|
10981
10984
|
apply: D(
|
|
10982
|
-
(
|
|
10985
|
+
(u, h, p) => {
|
|
10983
10986
|
const [m] = p, { id: b, styleId: d } = $e(
|
|
10984
10987
|
h,
|
|
10985
10988
|
t,
|
|
@@ -10989,14 +10992,14 @@ function Py({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: n }
|
|
|
10989
10992
|
id: b,
|
|
10990
10993
|
styleId: d,
|
|
10991
10994
|
replace: m
|
|
10992
|
-
}),
|
|
10995
|
+
}), u.apply(h, p);
|
|
10993
10996
|
}
|
|
10994
10997
|
)
|
|
10995
10998
|
}));
|
|
10996
10999
|
let o;
|
|
10997
11000
|
n.CSSStyleSheet.prototype.replaceSync && (o = n.CSSStyleSheet.prototype.replaceSync, n.CSSStyleSheet.prototype.replaceSync = new Proxy(o, {
|
|
10998
11001
|
apply: D(
|
|
10999
|
-
(
|
|
11002
|
+
(u, h, p) => {
|
|
11000
11003
|
const [m] = p, { id: b, styleId: d } = $e(
|
|
11001
11004
|
h,
|
|
11002
11005
|
t,
|
|
@@ -11006,31 +11009,31 @@ function Py({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: n }
|
|
|
11006
11009
|
id: b,
|
|
11007
11010
|
styleId: d,
|
|
11008
11011
|
replaceSync: m
|
|
11009
|
-
}),
|
|
11012
|
+
}), u.apply(h, p);
|
|
11010
11013
|
}
|
|
11011
11014
|
)
|
|
11012
11015
|
}));
|
|
11013
11016
|
const a = {};
|
|
11014
11017
|
Bi("CSSGroupingRule") ? a.CSSGroupingRule = n.CSSGroupingRule : (Bi("CSSMediaRule") && (a.CSSMediaRule = n.CSSMediaRule), Bi("CSSConditionRule") && (a.CSSConditionRule = n.CSSConditionRule), Bi("CSSSupportsRule") && (a.CSSSupportsRule = n.CSSSupportsRule));
|
|
11015
|
-
const
|
|
11016
|
-
return Object.entries(a).forEach(([
|
|
11017
|
-
u
|
|
11018
|
+
const c = {};
|
|
11019
|
+
return Object.entries(a).forEach(([u, h]) => {
|
|
11020
|
+
c[u] = {
|
|
11018
11021
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
11019
11022
|
insertRule: h.prototype.insertRule,
|
|
11020
11023
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
11021
11024
|
deleteRule: h.prototype.deleteRule
|
|
11022
11025
|
}, h.prototype.insertRule = new Proxy(
|
|
11023
|
-
u
|
|
11026
|
+
c[u].insertRule,
|
|
11024
11027
|
{
|
|
11025
11028
|
apply: D(
|
|
11026
11029
|
(p, m, b) => {
|
|
11027
|
-
const [d, S] = b, { id:
|
|
11030
|
+
const [d, S] = b, { id: I, styleId: V } = $e(
|
|
11028
11031
|
m.parentStyleSheet,
|
|
11029
11032
|
t,
|
|
11030
11033
|
i.styleMirror
|
|
11031
11034
|
);
|
|
11032
|
-
return (
|
|
11033
|
-
id:
|
|
11035
|
+
return (I && I !== -1 || V && V !== -1) && e({
|
|
11036
|
+
id: I,
|
|
11034
11037
|
styleId: V,
|
|
11035
11038
|
adds: [
|
|
11036
11039
|
{
|
|
@@ -11047,18 +11050,18 @@ function Py({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: n }
|
|
|
11047
11050
|
)
|
|
11048
11051
|
}
|
|
11049
11052
|
), h.prototype.deleteRule = new Proxy(
|
|
11050
|
-
u
|
|
11053
|
+
c[u].deleteRule,
|
|
11051
11054
|
{
|
|
11052
11055
|
apply: D(
|
|
11053
11056
|
(p, m, b) => {
|
|
11054
|
-
const [d] = b, { id: S, styleId:
|
|
11057
|
+
const [d] = b, { id: S, styleId: I } = $e(
|
|
11055
11058
|
m.parentStyleSheet,
|
|
11056
11059
|
t,
|
|
11057
11060
|
i.styleMirror
|
|
11058
11061
|
);
|
|
11059
|
-
return (S && S !== -1 ||
|
|
11062
|
+
return (S && S !== -1 || I && I !== -1) && e({
|
|
11060
11063
|
id: S,
|
|
11061
|
-
styleId:
|
|
11064
|
+
styleId: I,
|
|
11062
11065
|
removes: [
|
|
11063
11066
|
{ index: [...kn(m), d] }
|
|
11064
11067
|
]
|
|
@@ -11068,8 +11071,8 @@ function Py({ styleSheetRuleCb: e, mirror: t, stylesheetManager: i }, { win: n }
|
|
|
11068
11071
|
}
|
|
11069
11072
|
);
|
|
11070
11073
|
}), D(() => {
|
|
11071
|
-
n.CSSStyleSheet.prototype.insertRule = s, n.CSSStyleSheet.prototype.deleteRule = r, l && (n.CSSStyleSheet.prototype.replace = l), o && (n.CSSStyleSheet.prototype.replaceSync = o), Object.entries(a).forEach(([
|
|
11072
|
-
h.prototype.insertRule = u
|
|
11074
|
+
n.CSSStyleSheet.prototype.insertRule = s, n.CSSStyleSheet.prototype.deleteRule = r, l && (n.CSSStyleSheet.prototype.replace = l), o && (n.CSSStyleSheet.prototype.replaceSync = o), Object.entries(a).forEach(([u, h]) => {
|
|
11075
|
+
h.prototype.insertRule = c[u].insertRule, h.prototype.deleteRule = c[u].deleteRule;
|
|
11073
11076
|
});
|
|
11074
11077
|
});
|
|
11075
11078
|
}
|
|
@@ -11089,15 +11092,15 @@ function Bc({
|
|
|
11089
11092
|
configurable: a.configurable,
|
|
11090
11093
|
enumerable: a.enumerable,
|
|
11091
11094
|
get() {
|
|
11092
|
-
var u;
|
|
11093
|
-
return (u = a.get) == null ? void 0 : u.call(this);
|
|
11094
|
-
},
|
|
11095
|
-
set(u) {
|
|
11096
11095
|
var c;
|
|
11097
|
-
|
|
11096
|
+
return (c = a.get) == null ? void 0 : c.call(this);
|
|
11097
|
+
},
|
|
11098
|
+
set(c) {
|
|
11099
|
+
var u;
|
|
11100
|
+
const h = (u = a.set) == null ? void 0 : u.call(this, c);
|
|
11098
11101
|
if (l !== null && l !== -1)
|
|
11099
11102
|
try {
|
|
11100
|
-
t.adoptStyleSheets(
|
|
11103
|
+
t.adoptStyleSheets(c, l);
|
|
11101
11104
|
} catch {
|
|
11102
11105
|
}
|
|
11103
11106
|
return h;
|
|
@@ -11122,13 +11125,13 @@ function By({
|
|
|
11122
11125
|
const r = s.CSSStyleDeclaration.prototype.setProperty;
|
|
11123
11126
|
s.CSSStyleDeclaration.prototype.setProperty = new Proxy(r, {
|
|
11124
11127
|
apply: D(
|
|
11125
|
-
(o, a,
|
|
11126
|
-
var
|
|
11127
|
-
const [h, p, m] =
|
|
11128
|
+
(o, a, c) => {
|
|
11129
|
+
var u;
|
|
11130
|
+
const [h, p, m] = c;
|
|
11128
11131
|
if (i.has(h))
|
|
11129
11132
|
return r.apply(a, [h, p, m]);
|
|
11130
11133
|
const { id: b, styleId: d } = $e(
|
|
11131
|
-
(
|
|
11134
|
+
(u = a.parentRule) == null ? void 0 : u.parentStyleSheet,
|
|
11132
11135
|
t,
|
|
11133
11136
|
n.styleMirror
|
|
11134
11137
|
);
|
|
@@ -11142,20 +11145,20 @@ function By({
|
|
|
11142
11145
|
},
|
|
11143
11146
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
11144
11147
|
index: kn(a.parentRule)
|
|
11145
|
-
}), o.apply(a,
|
|
11148
|
+
}), o.apply(a, c);
|
|
11146
11149
|
}
|
|
11147
11150
|
)
|
|
11148
11151
|
});
|
|
11149
11152
|
const l = s.CSSStyleDeclaration.prototype.removeProperty;
|
|
11150
11153
|
return s.CSSStyleDeclaration.prototype.removeProperty = new Proxy(l, {
|
|
11151
11154
|
apply: D(
|
|
11152
|
-
(o, a,
|
|
11153
|
-
var
|
|
11154
|
-
const [h] =
|
|
11155
|
+
(o, a, c) => {
|
|
11156
|
+
var u;
|
|
11157
|
+
const [h] = c;
|
|
11155
11158
|
if (i.has(h))
|
|
11156
11159
|
return l.apply(a, [h]);
|
|
11157
11160
|
const { id: p, styleId: m } = $e(
|
|
11158
|
-
(
|
|
11161
|
+
(u = a.parentRule) == null ? void 0 : u.parentStyleSheet,
|
|
11159
11162
|
t,
|
|
11160
11163
|
n.styleMirror
|
|
11161
11164
|
);
|
|
@@ -11167,7 +11170,7 @@ function By({
|
|
|
11167
11170
|
},
|
|
11168
11171
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
11169
11172
|
index: kn(a.parentRule)
|
|
11170
|
-
}), o.apply(a,
|
|
11173
|
+
}), o.apply(a, c);
|
|
11171
11174
|
}
|
|
11172
11175
|
)
|
|
11173
11176
|
}), D(() => {
|
|
@@ -11184,14 +11187,14 @@ function Dy({
|
|
|
11184
11187
|
}) {
|
|
11185
11188
|
const l = D(
|
|
11186
11189
|
(a) => fi(
|
|
11187
|
-
D((
|
|
11188
|
-
const
|
|
11189
|
-
if (!
|
|
11190
|
+
D((c) => {
|
|
11191
|
+
const u = Gi(c);
|
|
11192
|
+
if (!u || pe(u, t, i, !0))
|
|
11190
11193
|
return;
|
|
11191
|
-
const { currentTime: h, volume: p, muted: m, playbackRate: b, loop: d } =
|
|
11194
|
+
const { currentTime: h, volume: p, muted: m, playbackRate: b, loop: d } = u;
|
|
11192
11195
|
e({
|
|
11193
11196
|
type: a,
|
|
11194
|
-
id: n.getId(
|
|
11197
|
+
id: n.getId(u),
|
|
11195
11198
|
currentTime: h,
|
|
11196
11199
|
volume: p,
|
|
11197
11200
|
muted: m,
|
|
@@ -11218,14 +11221,14 @@ function jy({ fontCb: e, doc: t }) {
|
|
|
11218
11221
|
return () => {
|
|
11219
11222
|
};
|
|
11220
11223
|
const n = [], s = /* @__PURE__ */ new WeakMap(), r = i.FontFace;
|
|
11221
|
-
i.FontFace = function(o, a,
|
|
11222
|
-
const
|
|
11223
|
-
return s.set(
|
|
11224
|
+
i.FontFace = function(o, a, c) {
|
|
11225
|
+
const u = new r(o, a, c);
|
|
11226
|
+
return s.set(u, {
|
|
11224
11227
|
family: o,
|
|
11225
11228
|
buffer: typeof a != "string",
|
|
11226
|
-
descriptors:
|
|
11229
|
+
descriptors: c,
|
|
11227
11230
|
fontSource: typeof a == "string" ? a : JSON.stringify(Array.from(new Uint8Array(a)))
|
|
11228
|
-
}),
|
|
11231
|
+
}), u;
|
|
11229
11232
|
};
|
|
11230
11233
|
const l = dt(
|
|
11231
11234
|
t.fonts,
|
|
@@ -11234,8 +11237,8 @@ function jy({ fontCb: e, doc: t }) {
|
|
|
11234
11237
|
return function(a) {
|
|
11235
11238
|
return setTimeout(
|
|
11236
11239
|
D(() => {
|
|
11237
|
-
const
|
|
11238
|
-
|
|
11240
|
+
const c = s.get(a);
|
|
11241
|
+
c && (e(c), s.delete(a));
|
|
11239
11242
|
}),
|
|
11240
11243
|
0
|
|
11241
11244
|
), o.apply(this, [a]);
|
|
@@ -11255,17 +11258,17 @@ function Qy(e) {
|
|
|
11255
11258
|
const a = t.getSelection();
|
|
11256
11259
|
if (!a || l && a != null && a.isCollapsed) return;
|
|
11257
11260
|
l = a.isCollapsed || !1;
|
|
11258
|
-
const
|
|
11259
|
-
for (let h = 0; h <
|
|
11261
|
+
const c = [], u = a.rangeCount || 0;
|
|
11262
|
+
for (let h = 0; h < u; h++) {
|
|
11260
11263
|
const p = a.getRangeAt(h), { startContainer: m, startOffset: b, endContainer: d, endOffset: S } = p;
|
|
11261
|
-
pe(m, n, s, !0) || pe(d, n, s, !0) ||
|
|
11264
|
+
pe(m, n, s, !0) || pe(d, n, s, !0) || c.push({
|
|
11262
11265
|
start: i.getId(m),
|
|
11263
11266
|
startOffset: b,
|
|
11264
11267
|
end: i.getId(d),
|
|
11265
11268
|
endOffset: S
|
|
11266
11269
|
});
|
|
11267
11270
|
}
|
|
11268
|
-
r({ ranges:
|
|
11271
|
+
r({ ranges: c });
|
|
11269
11272
|
});
|
|
11270
11273
|
return o(), Ze("selectionchange", o);
|
|
11271
11274
|
}
|
|
@@ -11303,8 +11306,8 @@ function _y(e, t) {
|
|
|
11303
11306
|
viewportResizeCb: l,
|
|
11304
11307
|
inputCb: o,
|
|
11305
11308
|
mediaInteractionCb: a,
|
|
11306
|
-
styleSheetRuleCb:
|
|
11307
|
-
styleDeclarationCb:
|
|
11309
|
+
styleSheetRuleCb: c,
|
|
11310
|
+
styleDeclarationCb: u,
|
|
11308
11311
|
canvasMutationCb: h,
|
|
11309
11312
|
fontCb: p,
|
|
11310
11313
|
selectionCb: m,
|
|
@@ -11325,9 +11328,9 @@ function _y(e, t) {
|
|
|
11325
11328
|
}, e.mediaInteractionCb = (...d) => {
|
|
11326
11329
|
t.mediaInteaction && t.mediaInteaction(...d), a(...d);
|
|
11327
11330
|
}, e.styleSheetRuleCb = (...d) => {
|
|
11328
|
-
t.styleSheetRule && t.styleSheetRule(...d),
|
|
11331
|
+
t.styleSheetRule && t.styleSheetRule(...d), c(...d);
|
|
11329
11332
|
}, e.styleDeclarationCb = (...d) => {
|
|
11330
|
-
t.styleDeclaration && t.styleDeclaration(...d),
|
|
11333
|
+
t.styleDeclaration && t.styleDeclaration(...d), u(...d);
|
|
11331
11334
|
}, e.canvasMutationCb = (...d) => {
|
|
11332
11335
|
t.canvasMutation && t.canvasMutation(...d), h(...d);
|
|
11333
11336
|
}, e.fontCb = (...d) => {
|
|
@@ -11348,22 +11351,22 @@ function $y(e, t = {}) {
|
|
|
11348
11351
|
e.recordDOM && (n = Hc(e, e.doc));
|
|
11349
11352
|
const s = Oy(e), r = Ey(e), l = Pc(e), o = My(e, {
|
|
11350
11353
|
win: i
|
|
11351
|
-
}), a = Hy(e),
|
|
11352
|
-
let
|
|
11354
|
+
}), a = Hy(e), c = Dy(e);
|
|
11355
|
+
let u = () => {
|
|
11353
11356
|
}, h = () => {
|
|
11354
11357
|
}, p = () => {
|
|
11355
11358
|
}, m = () => {
|
|
11356
11359
|
};
|
|
11357
|
-
e.recordDOM && (
|
|
11360
|
+
e.recordDOM && (u = Py(e, { win: i }), h = Bc(e, e.doc), p = By(e, {
|
|
11358
11361
|
win: i
|
|
11359
11362
|
}), e.collectFonts && (m = jy(e)));
|
|
11360
11363
|
const b = Qy(e), d = Ay(e), S = [];
|
|
11361
|
-
for (const
|
|
11364
|
+
for (const I of e.plugins)
|
|
11362
11365
|
S.push(
|
|
11363
|
-
|
|
11366
|
+
I.observer(I.callback, i, I.options)
|
|
11364
11367
|
);
|
|
11365
11368
|
return D(() => {
|
|
11366
|
-
ot.forEach((
|
|
11369
|
+
ot.forEach((I) => I.reset()), n?.disconnect(), s(), r(), l(), o(), a(), c(), u(), h(), p(), m(), b(), d(), S.forEach((I) => I());
|
|
11367
11370
|
});
|
|
11368
11371
|
}
|
|
11369
11372
|
function Pi(e) {
|
|
@@ -11376,7 +11379,7 @@ function Bi(e) {
|
|
|
11376
11379
|
}
|
|
11377
11380
|
class ol {
|
|
11378
11381
|
constructor(t) {
|
|
11379
|
-
|
|
11382
|
+
C(this, "iframeIdToRemoteIdMap", /* @__PURE__ */ new WeakMap()), C(this, "iframeRemoteIdToIdMap", /* @__PURE__ */ new WeakMap()), this.generateIdFn = t;
|
|
11380
11383
|
}
|
|
11381
11384
|
getId(t, i, n, s) {
|
|
11382
11385
|
const r = n || this.getIdToRemoteIdMap(t), l = s || this.getRemoteIdToIdMap(t);
|
|
@@ -11415,7 +11418,7 @@ class ol {
|
|
|
11415
11418
|
}
|
|
11416
11419
|
class qy {
|
|
11417
11420
|
constructor(t) {
|
|
11418
|
-
|
|
11421
|
+
C(this, "iframes", /* @__PURE__ */ new WeakMap()), C(this, "crossOriginIframeMap", /* @__PURE__ */ new WeakMap()), C(this, "crossOriginIframeMirror", new ol(la)), C(this, "crossOriginIframeStyleMirror"), C(this, "crossOriginIframeRootIdMap", /* @__PURE__ */ new WeakMap()), C(this, "mirror"), C(this, "mutationCb"), C(this, "wrappedEmit"), C(this, "loadListener"), C(this, "stylesheetManager"), C(this, "recordCrossOriginIframes"), this.mutationCb = t.mutationCb, this.wrappedEmit = t.wrappedEmit, this.stylesheetManager = t.stylesheetManager, this.recordCrossOriginIframes = t.recordCrossOriginIframes, this.crossOriginIframeStyleMirror = new ol(
|
|
11419
11422
|
this.stylesheetManager.styleMirror.generateId.bind(
|
|
11420
11423
|
this.stylesheetManager.styleMirror
|
|
11421
11424
|
)
|
|
@@ -11580,7 +11583,7 @@ class qy {
|
|
|
11580
11583
|
}
|
|
11581
11584
|
class eg {
|
|
11582
11585
|
constructor(t) {
|
|
11583
|
-
|
|
11586
|
+
C(this, "shadowDoms", /* @__PURE__ */ new WeakSet()), C(this, "mutationCb"), C(this, "scrollCb"), C(this, "bypassOptions"), C(this, "mirror"), C(this, "restoreHandlers", []), this.mutationCb = t.mutationCb, this.scrollCb = t.scrollCb, this.bypassOptions = t.bypassOptions, this.mirror = t.mirror, this.init();
|
|
11584
11587
|
}
|
|
11585
11588
|
init() {
|
|
11586
11589
|
this.reset(), this.patchAttachShadow(Element, document);
|
|
@@ -11767,15 +11770,15 @@ function sg(e, t, i, n) {
|
|
|
11767
11770
|
t.CanvasRenderingContext2D.prototype,
|
|
11768
11771
|
l,
|
|
11769
11772
|
function(a) {
|
|
11770
|
-
return function(...
|
|
11773
|
+
return function(...c) {
|
|
11771
11774
|
return pe(this.canvas, i, n, !0) || setTimeout(() => {
|
|
11772
|
-
const
|
|
11775
|
+
const u = jc(c, t, this);
|
|
11773
11776
|
e(this.canvas, {
|
|
11774
11777
|
type: Jt["2D"],
|
|
11775
11778
|
property: l,
|
|
11776
|
-
args:
|
|
11779
|
+
args: u
|
|
11777
11780
|
});
|
|
11778
|
-
}, 0), a.apply(this,
|
|
11781
|
+
}, 0), a.apply(this, c);
|
|
11779
11782
|
};
|
|
11780
11783
|
}
|
|
11781
11784
|
);
|
|
@@ -11785,11 +11788,11 @@ function sg(e, t, i, n) {
|
|
|
11785
11788
|
t.CanvasRenderingContext2D.prototype,
|
|
11786
11789
|
l,
|
|
11787
11790
|
{
|
|
11788
|
-
set(
|
|
11791
|
+
set(c) {
|
|
11789
11792
|
e(this.canvas, {
|
|
11790
11793
|
type: Jt["2D"],
|
|
11791
11794
|
property: l,
|
|
11792
|
-
args: [
|
|
11795
|
+
args: [c],
|
|
11793
11796
|
setter: !0
|
|
11794
11797
|
});
|
|
11795
11798
|
}
|
|
@@ -11813,11 +11816,11 @@ function al(e, t, i, n) {
|
|
|
11813
11816
|
function(l) {
|
|
11814
11817
|
return function(o, ...a) {
|
|
11815
11818
|
if (!pe(this, t, i, !0)) {
|
|
11816
|
-
const
|
|
11817
|
-
if ("__context" in this || (this.__context =
|
|
11819
|
+
const c = rg(o);
|
|
11820
|
+
if ("__context" in this || (this.__context = c), n && ["webgl", "webgl2"].includes(c))
|
|
11818
11821
|
if (a[0] && typeof a[0] == "object") {
|
|
11819
|
-
const
|
|
11820
|
-
|
|
11822
|
+
const u = a[0];
|
|
11823
|
+
u.preserveDrawingBuffer || (u.preserveDrawingBuffer = !0);
|
|
11821
11824
|
} else
|
|
11822
11825
|
a.splice(0, 1, {
|
|
11823
11826
|
preserveDrawingBuffer: !0
|
|
@@ -11850,12 +11853,12 @@ function cl(e, t, i, n, s, r) {
|
|
|
11850
11853
|
try {
|
|
11851
11854
|
if (typeof e[a] != "function")
|
|
11852
11855
|
continue;
|
|
11853
|
-
const
|
|
11856
|
+
const c = dt(
|
|
11854
11857
|
e,
|
|
11855
11858
|
a,
|
|
11856
|
-
function(
|
|
11859
|
+
function(u) {
|
|
11857
11860
|
return function(...h) {
|
|
11858
|
-
const p =
|
|
11861
|
+
const p = u.apply(this, h);
|
|
11859
11862
|
if (Dc(p, r, this), "tagName" in this.canvas && !pe(
|
|
11860
11863
|
this.canvas,
|
|
11861
11864
|
n,
|
|
@@ -11873,9 +11876,9 @@ function cl(e, t, i, n, s, r) {
|
|
|
11873
11876
|
};
|
|
11874
11877
|
}
|
|
11875
11878
|
);
|
|
11876
|
-
l.push(
|
|
11879
|
+
l.push(c);
|
|
11877
11880
|
} catch {
|
|
11878
|
-
const
|
|
11881
|
+
const u = Hn(e, a, {
|
|
11879
11882
|
set(h) {
|
|
11880
11883
|
i(this.canvas, {
|
|
11881
11884
|
type: t,
|
|
@@ -11885,7 +11888,7 @@ function cl(e, t, i, n, s, r) {
|
|
|
11885
11888
|
});
|
|
11886
11889
|
}
|
|
11887
11890
|
});
|
|
11888
|
-
l.push(
|
|
11891
|
+
l.push(u);
|
|
11889
11892
|
}
|
|
11890
11893
|
return l;
|
|
11891
11894
|
}
|
|
@@ -11937,7 +11940,7 @@ function ag(e) {
|
|
|
11937
11940
|
}
|
|
11938
11941
|
class cg {
|
|
11939
11942
|
constructor(t) {
|
|
11940
|
-
|
|
11943
|
+
C(this, "pendingCanvasMutations", /* @__PURE__ */ new Map()), C(this, "rafStamps", { latestId: 0, invokeId: null }), C(this, "mirror"), C(this, "logger"), C(this, "worker"), C(this, "snapshotInProgressMap", /* @__PURE__ */ new Map()), C(this, "lastSnapshotTime", /* @__PURE__ */ new Map()), C(this, "options"), C(this, "mutationCb"), C(this, "resetObservers"), C(this, "frozen", !1), C(this, "locked", !1), C(this, "processMutation", (h, p) => {
|
|
11941
11944
|
(this.rafStamps.invokeId && this.rafStamps.latestId !== this.rafStamps.invokeId || !this.rafStamps.invokeId) && (this.rafStamps.invokeId = this.rafStamps.latestId), this.pendingCanvasMutations.has(h) || this.pendingCanvasMutations.set(h, []), this.pendingCanvasMutations.get(h).push(p);
|
|
11942
11945
|
});
|
|
11943
11946
|
const {
|
|
@@ -11948,8 +11951,8 @@ class cg {
|
|
|
11948
11951
|
recordCanvas: l,
|
|
11949
11952
|
recordLocalVideos: o,
|
|
11950
11953
|
recordRemoteVideos: a,
|
|
11951
|
-
initialSnapshotDelay:
|
|
11952
|
-
dataURLOptions:
|
|
11954
|
+
initialSnapshotDelay: c,
|
|
11955
|
+
dataURLOptions: u
|
|
11953
11956
|
} = t;
|
|
11954
11957
|
this.mutationCb = t.mutationCb, this.mirror = t.mirror, this.logger = t.logger, this.worker = new ag(), this.worker.onmessage = (h) => {
|
|
11955
11958
|
const { id: p } = h.data;
|
|
@@ -11961,14 +11964,14 @@ class cg {
|
|
|
11961
11964
|
});
|
|
11962
11965
|
return;
|
|
11963
11966
|
}
|
|
11964
|
-
const { base64: m, type: b, dx: d, dy: S, dw:
|
|
11967
|
+
const { base64: m, type: b, dx: d, dy: S, dw: I, dh: V } = h.data, W = {
|
|
11965
11968
|
id: p,
|
|
11966
11969
|
type: Jt["2D"],
|
|
11967
11970
|
commands: [
|
|
11968
11971
|
{
|
|
11969
11972
|
property: "clearRect",
|
|
11970
11973
|
// wipe canvas
|
|
11971
|
-
args: [d, S,
|
|
11974
|
+
args: [d, S, I, V]
|
|
11972
11975
|
},
|
|
11973
11976
|
{
|
|
11974
11977
|
property: "drawImage",
|
|
@@ -11986,13 +11989,13 @@ class cg {
|
|
|
11986
11989
|
},
|
|
11987
11990
|
d,
|
|
11988
11991
|
S,
|
|
11989
|
-
|
|
11992
|
+
I,
|
|
11990
11993
|
V
|
|
11991
11994
|
]
|
|
11992
11995
|
}
|
|
11993
11996
|
]
|
|
11994
11997
|
};
|
|
11995
|
-
this.debug(null, "canvas worker recording mutation",
|
|
11998
|
+
this.debug(null, "canvas worker recording mutation", W), this.mutationCb(W);
|
|
11996
11999
|
}, this.options = t, l && i === "all" ? (this.debug(null, "initializing canvas mutation observer", { sampling: i }), this.initCanvasMutationObserver(n, s, r)) : l && typeof i == "number" && (this.debug(null, "initializing canvas fps observer", { sampling: i }), this.initCanvasFPSObserver(
|
|
11997
12000
|
o,
|
|
11998
12001
|
a,
|
|
@@ -12001,8 +12004,8 @@ class cg {
|
|
|
12001
12004
|
s,
|
|
12002
12005
|
r,
|
|
12003
12006
|
{
|
|
12004
|
-
initialSnapshotDelay:
|
|
12005
|
-
dataURLOptions:
|
|
12007
|
+
initialSnapshotDelay: c,
|
|
12008
|
+
dataURLOptions: u
|
|
12006
12009
|
},
|
|
12007
12010
|
t.resizeFactor,
|
|
12008
12011
|
t.maxSnapshotDimension
|
|
@@ -12049,9 +12052,9 @@ class cg {
|
|
|
12049
12052
|
this.lastSnapshotTime.set(n, (/* @__PURE__ */ new Date()).getTime()), this.snapshotInProgressMap.set(n, !0);
|
|
12050
12053
|
try {
|
|
12051
12054
|
if (this.options.clearWebGLBuffer !== !1 && ["webgl", "webgl2"].includes(t.__context)) {
|
|
12052
|
-
const
|
|
12053
|
-
((i =
|
|
12054
|
-
attributes:
|
|
12055
|
+
const u = t.getContext(t.__context);
|
|
12056
|
+
((i = u?.getContextAttributes()) == null ? void 0 : i.preserveDrawingBuffer) === !1 && (u.clear(u.COLOR_BUFFER_BIT), this.debug(t, "cleared webgl canvas to load it into memory", {
|
|
12057
|
+
attributes: u?.getContextAttributes()
|
|
12055
12058
|
}));
|
|
12056
12059
|
}
|
|
12057
12060
|
if (t.width === 0 || t.height === 0) {
|
|
@@ -12063,20 +12066,20 @@ class cg {
|
|
|
12063
12066
|
}
|
|
12064
12067
|
let l = this.options.resizeFactor || 1;
|
|
12065
12068
|
if (this.options.maxSnapshotDimension) {
|
|
12066
|
-
const
|
|
12067
|
-
l = Math.min(l, this.options.maxSnapshotDimension /
|
|
12069
|
+
const u = Math.max(t.width, t.height);
|
|
12070
|
+
l = Math.min(l, this.options.maxSnapshotDimension / u);
|
|
12068
12071
|
}
|
|
12069
|
-
const o = t.width * l, a = t.height * l,
|
|
12072
|
+
const o = t.width * l, a = t.height * l, c = yield createImageBitmap(t, {
|
|
12070
12073
|
resizeWidth: o,
|
|
12071
12074
|
resizeHeight: a
|
|
12072
12075
|
});
|
|
12073
12076
|
this.debug(t, "created image bitmap", {
|
|
12074
|
-
width:
|
|
12075
|
-
height:
|
|
12077
|
+
width: c.width,
|
|
12078
|
+
height: c.height
|
|
12076
12079
|
}), this.worker.postMessage(
|
|
12077
12080
|
{
|
|
12078
12081
|
id: n,
|
|
12079
|
-
bitmap:
|
|
12082
|
+
bitmap: c,
|
|
12080
12083
|
width: o,
|
|
12081
12084
|
height: a,
|
|
12082
12085
|
dx: 0,
|
|
@@ -12086,7 +12089,7 @@ class cg {
|
|
|
12086
12089
|
dataURLOptions: this.options.dataURLOptions,
|
|
12087
12090
|
logDebug: !!this.logger
|
|
12088
12091
|
},
|
|
12089
|
-
[
|
|
12092
|
+
[c]
|
|
12090
12093
|
), this.debug(t, "sent message");
|
|
12091
12094
|
} catch (l) {
|
|
12092
12095
|
this.debug(t, "failed to snapshot", l);
|
|
@@ -12096,58 +12099,58 @@ class cg {
|
|
|
12096
12099
|
}
|
|
12097
12100
|
});
|
|
12098
12101
|
}
|
|
12099
|
-
initCanvasFPSObserver(t, i, n, s, r, l, o, a,
|
|
12100
|
-
const
|
|
12102
|
+
initCanvasFPSObserver(t, i, n, s, r, l, o, a, c) {
|
|
12103
|
+
const u = al(
|
|
12101
12104
|
s,
|
|
12102
12105
|
r,
|
|
12103
12106
|
l,
|
|
12104
12107
|
!0
|
|
12105
12108
|
), h = 1e3 / n;
|
|
12106
12109
|
let p = 0, m;
|
|
12107
|
-
const b = /* @__PURE__ */ new Map(), d = (
|
|
12110
|
+
const b = /* @__PURE__ */ new Map(), d = (W, X) => {
|
|
12108
12111
|
const G = [];
|
|
12109
|
-
|
|
12110
|
-
const k = document.createNodeIterator(
|
|
12112
|
+
W.querySelectorAll(X).forEach((w) => G.push(w));
|
|
12113
|
+
const k = document.createNodeIterator(W, Node.ELEMENT_NODE);
|
|
12111
12114
|
let v;
|
|
12112
12115
|
for (; v = k.nextNode(); )
|
|
12113
|
-
v != null && v.shadowRoot && G.push(...d(v.shadowRoot,
|
|
12116
|
+
v != null && v.shadowRoot && G.push(...d(v.shadowRoot, X));
|
|
12114
12117
|
return G;
|
|
12115
|
-
}, S = (
|
|
12116
|
-
const
|
|
12118
|
+
}, S = (W) => {
|
|
12119
|
+
const X = [];
|
|
12117
12120
|
return d(s.document, "canvas").forEach((G) => {
|
|
12118
12121
|
if (!pe(G, r, l, !0)) {
|
|
12119
|
-
this.debug(G, "discovered canvas"),
|
|
12122
|
+
this.debug(G, "discovered canvas"), X.push(G);
|
|
12120
12123
|
const k = this.mirror.getId(G);
|
|
12121
|
-
b.has(k) || b.set(k,
|
|
12124
|
+
b.has(k) || b.set(k, W);
|
|
12122
12125
|
}
|
|
12123
|
-
}),
|
|
12124
|
-
},
|
|
12125
|
-
const
|
|
12126
|
+
}), X;
|
|
12127
|
+
}, I = (W) => {
|
|
12128
|
+
const X = [];
|
|
12126
12129
|
return (t || i) && d(s.document, "video").forEach((G) => {
|
|
12127
12130
|
if (!(!i && G.src !== "" && G.src.indexOf("blob:") === -1) && !(!t && (G.src === "" || G.src.indexOf("blob:") !== -1)) && !pe(G, r, l, !0)) {
|
|
12128
|
-
|
|
12131
|
+
X.push(G);
|
|
12129
12132
|
const k = this.mirror.getId(G);
|
|
12130
|
-
b.has(k) || b.set(k,
|
|
12133
|
+
b.has(k) || b.set(k, W);
|
|
12131
12134
|
}
|
|
12132
|
-
}),
|
|
12133
|
-
}, V = (
|
|
12134
|
-
if (p &&
|
|
12135
|
+
}), X;
|
|
12136
|
+
}, V = (W) => fe(this, null, function* () {
|
|
12137
|
+
if (p && W - p < h) {
|
|
12135
12138
|
m = requestAnimationFrame(V);
|
|
12136
12139
|
return;
|
|
12137
12140
|
}
|
|
12138
|
-
p =
|
|
12139
|
-
const
|
|
12140
|
-
const v = this.mirror.getId(k), w = b.get(v),
|
|
12141
|
+
p = W;
|
|
12142
|
+
const X = (k) => {
|
|
12143
|
+
const v = this.mirror.getId(k), w = b.get(v), g = !o.initialSnapshotDelay || W - w > o.initialSnapshotDelay;
|
|
12141
12144
|
return this.debug(k, {
|
|
12142
12145
|
delay: o.initialSnapshotDelay,
|
|
12143
|
-
delta:
|
|
12144
|
-
hadLoadingTime:
|
|
12145
|
-
}),
|
|
12146
|
+
delta: W - w,
|
|
12147
|
+
hadLoadingTime: g
|
|
12148
|
+
}), g;
|
|
12146
12149
|
}, G = [];
|
|
12147
12150
|
G.push(
|
|
12148
|
-
...S(
|
|
12151
|
+
...S(W).filter(X).map((k) => this.snapshot(k))
|
|
12149
12152
|
), G.push(
|
|
12150
|
-
...
|
|
12153
|
+
...I(W).filter(X).map((k) => fe(this, null, function* () {
|
|
12151
12154
|
this.debug(k, "starting video snapshotting");
|
|
12152
12155
|
const v = this.mirror.getId(k);
|
|
12153
12156
|
if (this.snapshotInProgressMap.get(v)) {
|
|
@@ -12160,32 +12163,32 @@ class cg {
|
|
|
12160
12163
|
}
|
|
12161
12164
|
this.snapshotInProgressMap.set(v, !0);
|
|
12162
12165
|
try {
|
|
12163
|
-
const { width: w, height:
|
|
12166
|
+
const { width: w, height: g } = k.getBoundingClientRect(), { actualWidth: R, actualHeight: J } = {
|
|
12164
12167
|
actualWidth: k.videoWidth,
|
|
12165
12168
|
actualHeight: k.videoHeight
|
|
12166
|
-
}, M = Math.max(
|
|
12169
|
+
}, M = Math.max(R, J);
|
|
12167
12170
|
if (M === 0) {
|
|
12168
12171
|
this.debug(k, "not yet ready", {
|
|
12169
12172
|
width: k.width,
|
|
12170
12173
|
height: k.height,
|
|
12171
|
-
actualWidth:
|
|
12174
|
+
actualWidth: R,
|
|
12172
12175
|
actualHeight: J,
|
|
12173
12176
|
boxWidth: w,
|
|
12174
|
-
boxHeight:
|
|
12177
|
+
boxHeight: g
|
|
12175
12178
|
});
|
|
12176
12179
|
return;
|
|
12177
12180
|
}
|
|
12178
12181
|
let $ = a || 1;
|
|
12179
|
-
|
|
12180
|
-
const f =
|
|
12182
|
+
c && ($ = Math.min($, c / M));
|
|
12183
|
+
const f = R * $, y = J * $, T = yield createImageBitmap(k, {
|
|
12181
12184
|
resizeWidth: f,
|
|
12182
12185
|
resizeHeight: y
|
|
12183
|
-
}), F = Math.max(w,
|
|
12186
|
+
}), F = Math.max(w, g) / M, U = R * F, N = J * F, A = (w - U) / 2, j = (g - N) / 2;
|
|
12184
12187
|
this.debug(k, "created image bitmap", {
|
|
12185
|
-
actualWidth:
|
|
12188
|
+
actualWidth: R,
|
|
12186
12189
|
actualHeight: J,
|
|
12187
12190
|
boxWidth: w,
|
|
12188
|
-
boxHeight:
|
|
12191
|
+
boxHeight: g,
|
|
12189
12192
|
outputWidth: U,
|
|
12190
12193
|
outputHeight: N,
|
|
12191
12194
|
resizeWidth: f,
|
|
@@ -12218,7 +12221,7 @@ class cg {
|
|
|
12218
12221
|
), yield Promise.all(G).catch(console.error), m = requestAnimationFrame(V);
|
|
12219
12222
|
});
|
|
12220
12223
|
m = requestAnimationFrame(V), this.resetObservers = () => {
|
|
12221
|
-
|
|
12224
|
+
u(), m && cancelAnimationFrame(m);
|
|
12222
12225
|
};
|
|
12223
12226
|
}
|
|
12224
12227
|
initCanvasMutationObserver(t, i, n) {
|
|
@@ -12271,7 +12274,7 @@ class cg {
|
|
|
12271
12274
|
}
|
|
12272
12275
|
class ug {
|
|
12273
12276
|
constructor(t) {
|
|
12274
|
-
|
|
12277
|
+
C(this, "trackedLinkElements", /* @__PURE__ */ new WeakSet()), C(this, "mutationCb"), C(this, "adoptedStyleSheetCb"), C(this, "styleMirror", new xy()), this.mutationCb = t.mutationCb, this.adoptedStyleSheetCb = t.adoptedStyleSheetCb;
|
|
12275
12278
|
}
|
|
12276
12279
|
attachLinkElement(t, i) {
|
|
12277
12280
|
"_cssText" in i.attributes && this.mutationCb({
|
|
@@ -12316,7 +12319,7 @@ class ug {
|
|
|
12316
12319
|
}
|
|
12317
12320
|
class dg {
|
|
12318
12321
|
constructor() {
|
|
12319
|
-
|
|
12322
|
+
C(this, "nodeMap", /* @__PURE__ */ new WeakMap()), C(this, "active", !1);
|
|
12320
12323
|
}
|
|
12321
12324
|
inOtherBuffer(t, i) {
|
|
12322
12325
|
const n = this.nodeMap.get(t);
|
|
@@ -12343,24 +12346,24 @@ const Te = rp();
|
|
|
12343
12346
|
function Be(e = {}) {
|
|
12344
12347
|
var t, i, n, s, r, l, o, a;
|
|
12345
12348
|
const {
|
|
12346
|
-
emit:
|
|
12347
|
-
checkoutEveryNms:
|
|
12349
|
+
emit: c,
|
|
12350
|
+
checkoutEveryNms: u,
|
|
12348
12351
|
checkoutEveryNth: h,
|
|
12349
12352
|
blockClass: p = "highlight-block",
|
|
12350
12353
|
blockSelector: m = null,
|
|
12351
12354
|
ignoreClass: b = "highlight-ignore",
|
|
12352
12355
|
ignoreSelector: d = null,
|
|
12353
12356
|
maskTextClass: S = "highlight-mask",
|
|
12354
|
-
maskTextSelector:
|
|
12357
|
+
maskTextSelector: I = null,
|
|
12355
12358
|
inlineStylesheet: V = !0,
|
|
12356
|
-
maskAllInputs:
|
|
12357
|
-
maskInputOptions:
|
|
12359
|
+
maskAllInputs: W,
|
|
12360
|
+
maskInputOptions: X,
|
|
12358
12361
|
slimDOMOptions: G,
|
|
12359
12362
|
maskInputFn: k,
|
|
12360
12363
|
maskTextFn: v = br,
|
|
12361
12364
|
hooks: w,
|
|
12362
|
-
packFn:
|
|
12363
|
-
sampling:
|
|
12365
|
+
packFn: g,
|
|
12366
|
+
sampling: R = {},
|
|
12364
12367
|
mousemoveWait: J,
|
|
12365
12368
|
recordDOM: M = !0,
|
|
12366
12369
|
recordCanvas: $ = !1,
|
|
@@ -12386,13 +12389,13 @@ function Be(e = {}) {
|
|
|
12386
12389
|
} catch {
|
|
12387
12390
|
Ke = !0;
|
|
12388
12391
|
}
|
|
12389
|
-
if (it && !
|
|
12392
|
+
if (it && !c)
|
|
12390
12393
|
throw new Error("emit function is required");
|
|
12391
12394
|
if (!it && !Ke)
|
|
12392
12395
|
return () => {
|
|
12393
12396
|
};
|
|
12394
|
-
J !== void 0 &&
|
|
12395
|
-
const Ft =
|
|
12397
|
+
J !== void 0 && R.mousemove === void 0 && (R.mousemove = J), Te.reset();
|
|
12398
|
+
const Ft = W === !0 ? {
|
|
12396
12399
|
color: !0,
|
|
12397
12400
|
date: !0,
|
|
12398
12401
|
"datetime-local": !0,
|
|
@@ -12409,7 +12412,7 @@ function Be(e = {}) {
|
|
|
12409
12412
|
textarea: !0,
|
|
12410
12413
|
select: !0,
|
|
12411
12414
|
password: !0
|
|
12412
|
-
} :
|
|
12415
|
+
} : X !== void 0 ? X : { password: !0 }, ht = G === !0 || G === "all" ? {
|
|
12413
12416
|
script: !0,
|
|
12414
12417
|
comment: !0,
|
|
12415
12418
|
headFavicon: !0,
|
|
@@ -12429,14 +12432,14 @@ function Be(e = {}) {
|
|
|
12429
12432
|
const mt = (_) => {
|
|
12430
12433
|
for (const we of A || [])
|
|
12431
12434
|
we.eventProcessor && (_ = we.eventProcessor(_));
|
|
12432
|
-
return
|
|
12433
|
-
!Ke && (_ =
|
|
12435
|
+
return g && // Disable packing events which will be emitted to parent frames.
|
|
12436
|
+
!Ke && (_ = g(_)), _;
|
|
12434
12437
|
};
|
|
12435
12438
|
oe = (_, we) => {
|
|
12436
12439
|
var se;
|
|
12437
12440
|
const re = _;
|
|
12438
12441
|
if (re.timestamp = Rn(), (se = ot[0]) != null && se.isFrozen() && re.type !== Q.FullSnapshot && !(re.type === Q.IncrementalSnapshot && re.data.source === B.Mutation) && ot.forEach((Je) => Je.unfreeze()), it)
|
|
12439
|
-
|
|
12442
|
+
c?.(mt(re), we);
|
|
12440
12443
|
else if (Ke) {
|
|
12441
12444
|
const Je = {
|
|
12442
12445
|
type: "rrweb",
|
|
@@ -12452,7 +12455,7 @@ function Be(e = {}) {
|
|
|
12452
12455
|
if (re.data.source === B.Mutation && re.data.isAttachIframe)
|
|
12453
12456
|
return;
|
|
12454
12457
|
pt++;
|
|
12455
|
-
const Je = h && pt >= h, te =
|
|
12458
|
+
const Je = h && pt >= h, te = u && re.timestamp - Ut.timestamp > u;
|
|
12456
12459
|
(Je || te) && rn(!0);
|
|
12457
12460
|
}
|
|
12458
12461
|
};
|
|
@@ -12504,13 +12507,13 @@ function Be(e = {}) {
|
|
|
12504
12507
|
blockClass: p,
|
|
12505
12508
|
blockSelector: m,
|
|
12506
12509
|
mirror: Te,
|
|
12507
|
-
sampling: (n =
|
|
12508
|
-
samplingManual: (s =
|
|
12509
|
-
clearWebGLBuffer: (r =
|
|
12510
|
-
initialSnapshotDelay: (l =
|
|
12510
|
+
sampling: (n = R?.canvas) == null ? void 0 : n.fps,
|
|
12511
|
+
samplingManual: (s = R?.canvas) == null ? void 0 : s.fpsManual,
|
|
12512
|
+
clearWebGLBuffer: (r = R?.canvas) == null ? void 0 : r.clearWebGLBuffer,
|
|
12513
|
+
initialSnapshotDelay: (l = R?.canvas) == null ? void 0 : l.initialSnapshotDelay,
|
|
12511
12514
|
dataURLOptions: ve,
|
|
12512
|
-
resizeFactor: (o =
|
|
12513
|
-
maxSnapshotDimension: (a =
|
|
12515
|
+
resizeFactor: (o = R?.canvas) == null ? void 0 : o.resizeFactor,
|
|
12516
|
+
maxSnapshotDimension: (a = R?.canvas) == null ? void 0 : a.maxSnapshotDimension,
|
|
12514
12517
|
logger: ce
|
|
12515
12518
|
});
|
|
12516
12519
|
const Vi = new eg({
|
|
@@ -12520,7 +12523,7 @@ function Be(e = {}) {
|
|
|
12520
12523
|
blockClass: p,
|
|
12521
12524
|
blockSelector: m,
|
|
12522
12525
|
maskTextClass: S,
|
|
12523
|
-
maskTextSelector:
|
|
12526
|
+
maskTextSelector: I,
|
|
12524
12527
|
inlineStylesheet: V,
|
|
12525
12528
|
maskInputOptions: Ft,
|
|
12526
12529
|
dataURLOptions: ve,
|
|
@@ -12530,7 +12533,7 @@ function Be(e = {}) {
|
|
|
12530
12533
|
inlineImages: U,
|
|
12531
12534
|
inlineVideos: N,
|
|
12532
12535
|
privacySetting: de,
|
|
12533
|
-
sampling:
|
|
12536
|
+
sampling: R,
|
|
12534
12537
|
slimDOMOptions: ht,
|
|
12535
12538
|
iframeManager: st,
|
|
12536
12539
|
stylesheetManager: nt,
|
|
@@ -12559,7 +12562,7 @@ function Be(e = {}) {
|
|
|
12559
12562
|
blockClass: p,
|
|
12560
12563
|
blockSelector: m,
|
|
12561
12564
|
maskTextClass: S,
|
|
12562
|
-
maskTextSelector:
|
|
12565
|
+
maskTextSelector: I,
|
|
12563
12566
|
inlineStylesheet: V,
|
|
12564
12567
|
maskAllInputs: Ft,
|
|
12565
12568
|
maskTextFn: v,
|
|
@@ -12674,10 +12677,10 @@ function Be(e = {}) {
|
|
|
12674
12677
|
ignoreClass: b,
|
|
12675
12678
|
ignoreSelector: d,
|
|
12676
12679
|
maskTextClass: S,
|
|
12677
|
-
maskTextSelector:
|
|
12680
|
+
maskTextSelector: I,
|
|
12678
12681
|
maskInputOptions: Ft,
|
|
12679
12682
|
inlineStylesheet: V,
|
|
12680
|
-
sampling:
|
|
12683
|
+
sampling: R,
|
|
12681
12684
|
recordDOM: M,
|
|
12682
12685
|
recordCanvas: $,
|
|
12683
12686
|
inlineImages: U,
|
|
@@ -12858,12 +12861,12 @@ const { addCustomEvent: hl } = Be, hg = (e) => {
|
|
|
12858
12861
|
if (l) {
|
|
12859
12862
|
let a = {};
|
|
12860
12863
|
o && (a = JSON.parse(o));
|
|
12861
|
-
const
|
|
12864
|
+
const c = {
|
|
12862
12865
|
type: "identify",
|
|
12863
12866
|
userId: l.toString(),
|
|
12864
12867
|
traits: a
|
|
12865
12868
|
};
|
|
12866
|
-
hs(
|
|
12869
|
+
hs(c) && e(c);
|
|
12867
12870
|
}
|
|
12868
12871
|
}
|
|
12869
12872
|
}, { userId: n, userTraits: s } = pl();
|
|
@@ -13220,30 +13223,30 @@ var Tg = /* @__PURE__ */ ni(at, 9), Ng = /* @__PURE__ */ ni(wn, 5), tu = functio
|
|
|
13220
13223
|
i.sort(function(G, k) {
|
|
13221
13224
|
return G.f - k.f;
|
|
13222
13225
|
}), i.push({ s: -1, f: 25001 });
|
|
13223
|
-
var o = i[0], a = i[1],
|
|
13224
|
-
for (i[0] = { s: -1, f: o.f + a.f, l: o, r: a };
|
|
13225
|
-
o = i[i[
|
|
13226
|
+
var o = i[0], a = i[1], c = 0, u = 1, h = 2;
|
|
13227
|
+
for (i[0] = { s: -1, f: o.f + a.f, l: o, r: a }; u != s - 1; )
|
|
13228
|
+
o = i[i[c].f < i[h].f ? c++ : h++], a = i[c != u && i[c].f < i[h].f ? c++ : h++], i[u++] = { s: -1, f: o.f + a.f, l: o, r: a };
|
|
13226
13229
|
for (var p = r[0].s, n = 1; n < s; ++n)
|
|
13227
13230
|
r[n].s > p && (p = r[n].s);
|
|
13228
|
-
var m = new ke(p + 1), b = ar(i[
|
|
13231
|
+
var m = new ke(p + 1), b = ar(i[u - 1], m, 0);
|
|
13229
13232
|
if (b > t) {
|
|
13230
|
-
var n = 0, d = 0, S = b - t,
|
|
13233
|
+
var n = 0, d = 0, S = b - t, I = 1 << S;
|
|
13231
13234
|
for (r.sort(function(k, v) {
|
|
13232
13235
|
return m[v.s] - m[k.s] || k.f - v.f;
|
|
13233
13236
|
}); n < s; ++n) {
|
|
13234
13237
|
var V = r[n].s;
|
|
13235
13238
|
if (m[V] > t)
|
|
13236
|
-
d +=
|
|
13239
|
+
d += I - (1 << b - m[V]), m[V] = t;
|
|
13237
13240
|
else
|
|
13238
13241
|
break;
|
|
13239
13242
|
}
|
|
13240
13243
|
for (d >>= S; d > 0; ) {
|
|
13241
|
-
var
|
|
13242
|
-
m[
|
|
13244
|
+
var W = r[n].s;
|
|
13245
|
+
m[W] < t ? d -= 1 << t - m[W]++ - 1 : ++n;
|
|
13243
13246
|
}
|
|
13244
13247
|
for (; n >= 0 && d; --n) {
|
|
13245
|
-
var
|
|
13246
|
-
m[
|
|
13248
|
+
var X = r[n].s;
|
|
13249
|
+
m[X] == t && (--m[X], ++d);
|
|
13247
13250
|
}
|
|
13248
13251
|
b = t;
|
|
13249
13252
|
}
|
|
@@ -13283,29 +13286,29 @@ var Tg = /* @__PURE__ */ ni(at, 9), Ng = /* @__PURE__ */ ni(wn, 5), tu = functio
|
|
|
13283
13286
|
for (var r = 0; r < n; ++r)
|
|
13284
13287
|
e[s + r + 4] = i[r];
|
|
13285
13288
|
return (s + 4 + n) * 8;
|
|
13286
|
-
}, Il = function(e, t, i, n, s, r, l, o, a,
|
|
13287
|
-
Me(t,
|
|
13288
|
-
for (var h = ms(s, 15), p = h.t, m = h.l, b = ms(r, 15), d = b.t, S = b.l,
|
|
13289
|
+
}, Il = function(e, t, i, n, s, r, l, o, a, c, u) {
|
|
13290
|
+
Me(t, u++, i), ++s[256];
|
|
13291
|
+
for (var h = ms(s, 15), p = h.t, m = h.l, b = ms(r, 15), d = b.t, S = b.l, I = Zl(p), V = I.c, W = I.n, X = Zl(d), G = X.c, k = X.n, v = new ke(19), w = 0; w < V.length; ++w)
|
|
13289
13292
|
++v[V[w] & 31];
|
|
13290
13293
|
for (var w = 0; w < G.length; ++w)
|
|
13291
13294
|
++v[G[w] & 31];
|
|
13292
|
-
for (var
|
|
13295
|
+
for (var g = ms(v, 7), R = g.t, J = g.l, M = 19; M > 4 && !R[yl[M - 1]]; --M)
|
|
13293
13296
|
;
|
|
13294
|
-
var $ =
|
|
13297
|
+
var $ = c + 5 << 3, f = Dt(s, at) + Dt(r, wn) + l, y = Dt(s, p) + Dt(r, d) + l + 14 + 3 * M + Dt(v, R) + 2 * v[16] + 3 * v[17] + 7 * v[18];
|
|
13295
13298
|
if (a >= 0 && $ <= f && $ <= y)
|
|
13296
|
-
return nu(t,
|
|
13299
|
+
return nu(t, u, e.subarray(a, a + c));
|
|
13297
13300
|
var T, F, U, N;
|
|
13298
|
-
if (Me(t,
|
|
13301
|
+
if (Me(t, u, 1 + (y < f)), u += 2, y < f) {
|
|
13299
13302
|
T = ni(p, m), F = p, U = ni(d, S), N = d;
|
|
13300
|
-
var A = ni(
|
|
13301
|
-
Me(t,
|
|
13303
|
+
var A = ni(R, J);
|
|
13304
|
+
Me(t, u, W - 257), Me(t, u + 5, k - 1), Me(t, u + 10, M - 4), u += 14;
|
|
13302
13305
|
for (var w = 0; w < M; ++w)
|
|
13303
|
-
Me(t,
|
|
13304
|
-
|
|
13306
|
+
Me(t, u + 3 * w, R[yl[w]]);
|
|
13307
|
+
u += 3 * M;
|
|
13305
13308
|
for (var j = [V, G], de = 0; de < 2; ++de)
|
|
13306
13309
|
for (var me = j[de], w = 0; w < me.length; ++w) {
|
|
13307
13310
|
var We = me[w] & 31;
|
|
13308
|
-
Me(t,
|
|
13311
|
+
Me(t, u, A[We]), u += R[We], We > 15 && (Me(t, u, me[w] >> 5 & 127), u += me[w] >> 12);
|
|
13309
13312
|
}
|
|
13310
13313
|
} else
|
|
13311
13314
|
T = Tg, F = at, U = Ng, N = wn;
|
|
@@ -13313,41 +13316,41 @@ var Tg = /* @__PURE__ */ ni(at, 9), Ng = /* @__PURE__ */ ni(wn, 5), tu = functio
|
|
|
13313
13316
|
var ce = n[w];
|
|
13314
13317
|
if (ce > 255) {
|
|
13315
13318
|
var We = ce >> 18 & 31;
|
|
13316
|
-
Bt(t,
|
|
13319
|
+
Bt(t, u, T[We + 257]), u += F[We + 257], We > 7 && (Me(t, u, ce >> 23 & 31), u += Or[We]);
|
|
13317
13320
|
var ve = ce & 31;
|
|
13318
|
-
Bt(t,
|
|
13321
|
+
Bt(t, u, U[ve]), u += N[ve], ve > 3 && (Bt(t, u, ce >> 5 & 8191), u += Er[ve]);
|
|
13319
13322
|
} else
|
|
13320
|
-
Bt(t,
|
|
13323
|
+
Bt(t, u, T[ce]), u += F[ce];
|
|
13321
13324
|
}
|
|
13322
|
-
return Bt(t,
|
|
13325
|
+
return Bt(t, u, T[256]), u + F[256];
|
|
13323
13326
|
}, Lg = /* @__PURE__ */ new Kr([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), su = /* @__PURE__ */ new Ce(0), Jg = function(e, t, i, n, s, r) {
|
|
13324
|
-
var l = r.z || e.length, o = new Ce(n + l + 5 * (1 + Math.ceil(l / 7e3)) + s), a = o.subarray(n, o.length - s),
|
|
13327
|
+
var l = r.z || e.length, o = new Ce(n + l + 5 * (1 + Math.ceil(l / 7e3)) + s), a = o.subarray(n, o.length - s), c = r.l, u = (r.r || 0) & 7;
|
|
13325
13328
|
if (t) {
|
|
13326
|
-
|
|
13327
|
-
for (var h = Lg[t - 1], p = h >> 13, m = h & 8191, b = (1 << i) - 1, d = r.p || new ke(32768), S = r.h || new ke(b + 1),
|
|
13328
|
-
return (e[Qe] ^ e[Qe + 1] <<
|
|
13329
|
-
},
|
|
13330
|
-
var $ =
|
|
13331
|
-
if (d[f] = y, S[$] = f, J <=
|
|
13332
|
-
var T = l -
|
|
13333
|
-
if ((v > 7e3 ||
|
|
13334
|
-
|
|
13329
|
+
u && (a[0] = r.r >> 3);
|
|
13330
|
+
for (var h = Lg[t - 1], p = h >> 13, m = h & 8191, b = (1 << i) - 1, d = r.p || new ke(32768), S = r.h || new ke(b + 1), I = Math.ceil(i / 3), V = 2 * I, W = function(Qe) {
|
|
13331
|
+
return (e[Qe] ^ e[Qe + 1] << I ^ e[Qe + 2] << V) & b;
|
|
13332
|
+
}, X = new Kr(25e3), G = new ke(288), k = new ke(32), v = 0, w = 0, g = r.i || 0, R = 0, J = r.w || 0, M = 0; g + 2 < l; ++g) {
|
|
13333
|
+
var $ = W(g), f = g & 32767, y = S[$];
|
|
13334
|
+
if (d[f] = y, S[$] = f, J <= g) {
|
|
13335
|
+
var T = l - g;
|
|
13336
|
+
if ((v > 7e3 || R > 24576) && (T > 423 || !c)) {
|
|
13337
|
+
u = Il(e, a, 0, X, G, k, w, R, M, g - M, u), R = v = w = 0, M = g;
|
|
13335
13338
|
for (var F = 0; F < 286; ++F)
|
|
13336
13339
|
G[F] = 0;
|
|
13337
13340
|
for (var F = 0; F < 30; ++F)
|
|
13338
13341
|
k[F] = 0;
|
|
13339
13342
|
}
|
|
13340
13343
|
var U = 2, N = 0, A = m, j = f - y & 32767;
|
|
13341
|
-
if (T > 2 && $ ==
|
|
13342
|
-
for (var de = Math.min(p, T) - 1, me = Math.min(32767,
|
|
13343
|
-
if (e[
|
|
13344
|
-
for (var ce = 0; ce < We && e[
|
|
13344
|
+
if (T > 2 && $ == W(g - j))
|
|
13345
|
+
for (var de = Math.min(p, T) - 1, me = Math.min(32767, g), We = Math.min(258, T); j <= me && --A && f != y; ) {
|
|
13346
|
+
if (e[g + U] == e[g + U - j]) {
|
|
13347
|
+
for (var ce = 0; ce < We && e[g + ce] == e[g + ce - j]; ++ce)
|
|
13345
13348
|
;
|
|
13346
13349
|
if (ce > U) {
|
|
13347
13350
|
if (U = ce, N = j, ce > de)
|
|
13348
13351
|
break;
|
|
13349
13352
|
for (var ve = Math.min(j, ce - 2), it = 0, F = 0; F < ve; ++F) {
|
|
13350
|
-
var Ke =
|
|
13353
|
+
var Ke = g - j + F & 32767, Ft = d[Ke], ht = Ke - Ft & 32767;
|
|
13351
13354
|
ht > it && (it = ht, y = Ke);
|
|
13352
13355
|
}
|
|
13353
13356
|
}
|
|
@@ -13355,24 +13358,24 @@ var Tg = /* @__PURE__ */ ni(at, 9), Ng = /* @__PURE__ */ ni(wn, 5), tu = functio
|
|
|
13355
13358
|
f = y, y = d[f], j += f - y & 32767;
|
|
13356
13359
|
}
|
|
13357
13360
|
if (N) {
|
|
13358
|
-
|
|
13361
|
+
X[R++] = 268435456 | lr[U] << 18 | gl[N];
|
|
13359
13362
|
var Ut = lr[U] & 31, pt = gl[N] & 31;
|
|
13360
|
-
w += Or[Ut] + Er[pt], ++G[257 + Ut], ++k[pt], J =
|
|
13363
|
+
w += Or[Ut] + Er[pt], ++G[257 + Ut], ++k[pt], J = g + U, ++v;
|
|
13361
13364
|
} else
|
|
13362
|
-
|
|
13365
|
+
X[R++] = e[g], ++G[e[g]];
|
|
13363
13366
|
}
|
|
13364
13367
|
}
|
|
13365
|
-
for (
|
|
13366
|
-
|
|
13367
|
-
|
|
13368
|
+
for (g = Math.max(g, J); g < l; ++g)
|
|
13369
|
+
X[R++] = e[g], ++G[e[g]];
|
|
13370
|
+
u = Il(e, a, c, X, G, k, w, R, M, g - M, u), c || (r.r = u & 7 | a[u / 8 | 0] << 3, u -= 7, r.h = S, r.p = d, r.i = g, r.w = J);
|
|
13368
13371
|
} else {
|
|
13369
|
-
for (var
|
|
13370
|
-
var mt =
|
|
13371
|
-
mt >= l && (a[
|
|
13372
|
+
for (var g = r.w || 0; g < l + c; g += 65535) {
|
|
13373
|
+
var mt = g + 65535;
|
|
13374
|
+
mt >= l && (a[u / 8 | 0] = c, mt = l), u = nu(a, u + 1, e.subarray(g, mt));
|
|
13372
13375
|
}
|
|
13373
13376
|
r.i = l;
|
|
13374
13377
|
}
|
|
13375
|
-
return iu(o, 0, n + tu(
|
|
13378
|
+
return iu(o, 0, n + tu(u) + s);
|
|
13376
13379
|
}, Yg = /* @__PURE__ */ function() {
|
|
13377
13380
|
for (var e = new Int32Array(256), t = 0; t < 256; ++t) {
|
|
13378
13381
|
for (var i = t, n = 9; --n; )
|
|
@@ -13427,8 +13430,8 @@ function zg(e, t) {
|
|
|
13427
13430
|
var i;
|
|
13428
13431
|
if (Sl)
|
|
13429
13432
|
return Sl.encode(e);
|
|
13430
|
-
for (var n = e.length, s = new Ce(e.length + (e.length >> 1)), r = 0, l = function(
|
|
13431
|
-
s[r++] =
|
|
13433
|
+
for (var n = e.length, s = new Ce(e.length + (e.length >> 1)), r = 0, l = function(u) {
|
|
13434
|
+
s[r++] = u;
|
|
13432
13435
|
}, i = 0; i < n; ++i) {
|
|
13433
13436
|
if (r + 5 > s.length) {
|
|
13434
13437
|
var o = new Ce(r + 8 + (n - i << 1));
|
|
@@ -13505,10 +13508,10 @@ const Dg = ({
|
|
|
13505
13508
|
"preInsert",
|
|
13506
13509
|
"postInsert",
|
|
13507
13510
|
"remove"
|
|
13508
|
-
],
|
|
13509
|
-
l(o, a[
|
|
13511
|
+
], c = 0; c < a.length; c++)
|
|
13512
|
+
l(o, a[c]);
|
|
13510
13513
|
n.Identify = o;
|
|
13511
|
-
for (var
|
|
13514
|
+
for (var u = function() {
|
|
13512
13515
|
return this._q = [], this;
|
|
13513
13516
|
}, h = [
|
|
13514
13517
|
"setProductId",
|
|
@@ -13517,8 +13520,8 @@ const Dg = ({
|
|
|
13517
13520
|
"setRevenueType",
|
|
13518
13521
|
"setEventProperties"
|
|
13519
13522
|
], p = 0; p < h.length; p++)
|
|
13520
|
-
l(
|
|
13521
|
-
n.Revenue =
|
|
13523
|
+
l(u, h[p]);
|
|
13524
|
+
n.Revenue = u;
|
|
13522
13525
|
var m = [
|
|
13523
13526
|
"init",
|
|
13524
13527
|
"logEvent",
|
|
@@ -13551,8 +13554,8 @@ const Dg = ({
|
|
|
13551
13554
|
);
|
|
13552
13555
|
};
|
|
13553
13556
|
}
|
|
13554
|
-
for (var
|
|
13555
|
-
S(m[
|
|
13557
|
+
for (var I = 0; I < m.length; I++)
|
|
13558
|
+
S(m[I]);
|
|
13556
13559
|
}
|
|
13557
13560
|
b(n), n.getInstance = function(d) {
|
|
13558
13561
|
return d = (!d || d.length === 0 ? "$default_instance" : d).toLowerCase(), Object.prototype.hasOwnProperty.call(n._iq, d) || (n._iq[d] = { _q: [] }, b(n._iq[d])), n._iq[d];
|
|
@@ -13567,7 +13570,7 @@ const Dg = ({
|
|
|
13567
13570
|
if (!n.__SV) {
|
|
13568
13571
|
var s, r;
|
|
13569
13572
|
window.mixpanel = n, n._i = [], n.init = function(l, o, a) {
|
|
13570
|
-
function
|
|
13573
|
+
function c(p, m) {
|
|
13571
13574
|
var b = m.split(".");
|
|
13572
13575
|
b.length == 2 && (p = p[b[0]], m = b[1]), p[m] = function() {
|
|
13573
13576
|
p.push(
|
|
@@ -13577,22 +13580,22 @@ const Dg = ({
|
|
|
13577
13580
|
);
|
|
13578
13581
|
};
|
|
13579
13582
|
}
|
|
13580
|
-
var
|
|
13581
|
-
for (typeof a < "u" ?
|
|
13583
|
+
var u = n;
|
|
13584
|
+
for (typeof a < "u" ? u = n[a] = [] : a = "mixpanel", u.people = u.people || [], u.toString = function(p) {
|
|
13582
13585
|
var m = "mixpanel";
|
|
13583
13586
|
return a !== "mixpanel" && (m += "." + a), p || (m += " (stub)"), m;
|
|
13584
|
-
},
|
|
13585
|
-
return
|
|
13587
|
+
}, u.people.toString = function() {
|
|
13588
|
+
return u.toString(1) + ".people (stub)";
|
|
13586
13589
|
}, s = "disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(
|
|
13587
13590
|
" "
|
|
13588
|
-
), r = 0; r < s.length; r++) u
|
|
13591
|
+
), r = 0; r < s.length; r++) c(u, s[r]);
|
|
13589
13592
|
var h = "set set_once union unset remove delete".split(" ");
|
|
13590
|
-
|
|
13593
|
+
u.get_group = function() {
|
|
13591
13594
|
function p(S) {
|
|
13592
13595
|
m[S] = function() {
|
|
13593
13596
|
call2_args = arguments, call2 = [S].concat(
|
|
13594
13597
|
Array.prototype.slice.call(call2_args, 0)
|
|
13595
|
-
),
|
|
13598
|
+
), u.push([b, call2]);
|
|
13596
13599
|
};
|
|
13597
13600
|
}
|
|
13598
13601
|
for (var m = {}, b = ["get_group"].concat(
|
|
@@ -13615,11 +13618,11 @@ class Ag {
|
|
|
13615
13618
|
K(this, "options"), K(this, "isRunningOnHighlight"), K(this, "organizationID"), K(this, "graphqlSDK"), K(this, "events"), K(this, "sessionData"), K(this, "ready"), K(this, "manualStopped"), K(this, "state"), K(this, "logger"), K(this, "enableSegmentIntegration"), K(this, "privacySetting"), K(this, "enableCanvasRecording"), K(this, "samplingStrategy"), K(this, "inlineImages"), K(this, "inlineVideos"), K(this, "inlineStylesheet"), K(this, "debugOptions"), K(this, "listeners"), K(this, "firstloadVersion"), K(this, "environment"), K(this, "sessionShortcut"), K(this, "appVersion"), K(this, "serviceName"), K(this, "_worker"), K(this, "_optionsInternal"), K(this, "_backendUrl"), K(this, "_recordingStartTime"), K(this, "_isOnLocalHost"), K(this, "_onToggleFeedbackFormVisibility"), K(this, "_isCrossOriginIframe"), K(this, "_eventBytesSinceSnapshot"), K(this, "_lastSnapshotTime"), K(this, "_lastVisibilityChangeTime"), K(this, "pushPayloadTimerId"), K(this, "hasSessionUnloaded"), K(this, "hasPushedData"), K(this, "reloaded"), K(this, "_hasPreviouslyInitialized"), K(this, "_recordStop"), K(this, "_integrations", []);
|
|
13616
13619
|
var i, n, s, r, l;
|
|
13617
13620
|
this.options = t, typeof ((i = this.options) == null ? void 0 : i.debug) == "boolean" ? this.debugOptions = this.options.debug ? { clientInteractions: !0 } : {} : this.debugOptions = (s = (n = this.options) == null ? void 0 : n.debug) != null ? s : {}, this.logger = new Vl(this.debugOptions.clientInteractions), this._worker = new Bg(), this._worker.onmessage = (a) => {
|
|
13618
|
-
var
|
|
13619
|
-
((
|
|
13621
|
+
var c, u, h;
|
|
13622
|
+
((c = a.data.response) == null ? void 0 : c.type) === ze.AsyncEvents ? (this._eventBytesSinceSnapshot += a.data.response.eventsSize, this.logger.log(
|
|
13620
13623
|
`Web worker sent payloadID ${a.data.response.id} size ${a.data.response.eventsSize} bytes, compression ratio ${a.data.response.eventsSize / a.data.response.compressedSize}.
|
|
13621
13624
|
Total since snapshot: ${(this._eventBytesSinceSnapshot / 1e6).toFixed(1)}MB`
|
|
13622
|
-
)) : ((
|
|
13625
|
+
)) : ((u = a.data.response) == null ? void 0 : u.type) === ze.CustomEvent ? this.addCustomEvent(
|
|
13623
13626
|
a.data.response.tag,
|
|
13624
13627
|
a.data.response.payload
|
|
13625
13628
|
) : ((h = a.data.response) == null ? void 0 : h.type) === ze.Stop && (Ve(
|
|
@@ -13674,7 +13677,7 @@ class Ag {
|
|
|
13674
13677
|
});
|
|
13675
13678
|
}
|
|
13676
13679
|
_initMembers(t) {
|
|
13677
|
-
var i, n, s, r, l, o, a,
|
|
13680
|
+
var i, n, s, r, l, o, a, c, u;
|
|
13678
13681
|
this.sessionShortcut = !1, this._recordingStartTime = 0, this._isOnLocalHost = window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "", this.ready = !1, this.state = "NotRecording", this.manualStopped = !1, this.enableSegmentIntegration = !!t.enableSegmentIntegration, this.privacySetting = (i = t.privacySetting) != null ? i : "default", this.enableCanvasRecording = (n = t.enableCanvasRecording) != null ? n : !1, this.inlineImages = (s = t.inlineImages) != null ? s : this._isOnLocalHost, this.inlineVideos = (r = t.inlineVideos) != null ? r : this._isOnLocalHost, this.inlineStylesheet = (l = t.inlineStylesheet) != null ? l : this._isOnLocalHost, this.samplingStrategy = Y({
|
|
13679
13682
|
canvasFactor: 0.5,
|
|
13680
13683
|
canvasMaxSnapshotDimension: 360,
|
|
@@ -13686,7 +13689,7 @@ class Ag {
|
|
|
13686
13689
|
const h = new hd(`${this._backendUrl}`, {
|
|
13687
13690
|
headers: {}
|
|
13688
13691
|
});
|
|
13689
|
-
this.graphqlSDK = Ld(h, lh()), this.environment = (
|
|
13692
|
+
this.graphqlSDK = Ld(h, lh()), this.environment = (c = t.environment) != null ? c : "production", this.appVersion = t.appVersion, this.serviceName = (u = t.serviceName) != null ? u : "browser", typeof t.organizationID == "string" ? this.organizationID = t.organizationID : this.organizationID = t.organizationID.toString(), this.isRunningOnHighlight = this.organizationID === "1" || this.organizationID === "1jdkoe52", this.firstloadVersion = t.firstloadVersion || "unknown", this.sessionShortcut = t.sessionShortcut || !1, this._onToggleFeedbackFormVisibility = () => {
|
|
13690
13693
|
};
|
|
13691
13694
|
const p = t, m = Rt(p, ["firstloadVersion"]);
|
|
13692
13695
|
this._optionsInternal = m, this.listeners = [], this.events = [], this.hasSessionUnloaded = !1, this.hasPushedData = !1, window.Intercom && window.Intercom("onShow", () => {
|
|
@@ -13736,9 +13739,16 @@ class Ag {
|
|
|
13736
13739
|
}
|
|
13737
13740
|
});
|
|
13738
13741
|
}
|
|
13742
|
+
/**
|
|
13743
|
+
* Add custom session-level properties. These are attached to the current session
|
|
13744
|
+
* and are searchable, but do not create timeline Track events.
|
|
13745
|
+
*/
|
|
13746
|
+
addSessionProperties(t) {
|
|
13747
|
+
this.addProperties(t, { type: "session" });
|
|
13748
|
+
}
|
|
13739
13749
|
start(t) {
|
|
13740
13750
|
return fe(this, null, function* () {
|
|
13741
|
-
var i, n, s, r, l, o, a, u;
|
|
13751
|
+
var i, n, s, r, l, o, a, c, u, h;
|
|
13742
13752
|
if (!((i = navigator?.userAgent) != null && i.includes("Googlebot") || (n = navigator?.userAgent) != null && n.includes("AdsBot")))
|
|
13743
13753
|
try {
|
|
13744
13754
|
if (t != null && t.forceNew) {
|
|
@@ -13755,36 +13765,36 @@ class Ag {
|
|
|
13755
13765
|
this.sessionData,
|
|
13756
13766
|
this.options
|
|
13757
13767
|
), this.sessionData = (s = $i(this.sessionData.sessionSecureID)) != null ? s : this.sessionData, (r = this.sessionData) != null && r.sessionStartTime ? this._recordingStartTime = (l = this.sessionData) == null ? void 0 : l.sessionStartTime : (this._recordingStartTime = (/* @__PURE__ */ new Date()).getTime(), this.sessionData.sessionStartTime = this._recordingStartTime);
|
|
13758
|
-
let
|
|
13759
|
-
|
|
13760
|
-
let
|
|
13761
|
-
this.options.disableSessionRecording || this.options.disableNetworkRecording !== void 0 || typeof this.options.networkRecording == "boolean" ?
|
|
13762
|
-
let
|
|
13763
|
-
if (typeof this.options.networkRecording == "object" && (a = this.options.networkRecording.destinationDomains) != null && a.length && (
|
|
13768
|
+
let p = Xe(Vs.CLIENT_ID);
|
|
13769
|
+
p || (p = $t(), Pe(Vs.CLIENT_ID, p));
|
|
13770
|
+
let m;
|
|
13771
|
+
this.options.disableSessionRecording || this.options.disableNetworkRecording !== void 0 || typeof this.options.networkRecording == "boolean" ? m = !1 : m = ((o = this.options.networkRecording) == null ? void 0 : o.recordHeadersAndBody) || !1;
|
|
13772
|
+
let b = [];
|
|
13773
|
+
if (typeof this.options.networkRecording == "object" && (a = this.options.networkRecording.destinationDomains) != null && a.length && (b = this.options.networkRecording.destinationDomains), this._isCrossOriginIframe)
|
|
13764
13774
|
yield this._setupCrossOriginIframe();
|
|
13765
13775
|
else {
|
|
13766
|
-
const
|
|
13776
|
+
const W = yield this.graphqlSDK.initializeSession({
|
|
13767
13777
|
organization_verbose_id: this.organizationID,
|
|
13768
13778
|
enable_strict_privacy: this.privacySetting === "strict",
|
|
13769
13779
|
privacy_setting: this.privacySetting,
|
|
13770
|
-
enable_recording_network_contents:
|
|
13780
|
+
enable_recording_network_contents: m,
|
|
13771
13781
|
clientVersion: this.firstloadVersion,
|
|
13772
13782
|
firstloadVersion: this.firstloadVersion,
|
|
13773
13783
|
clientConfig: JSON.stringify(this._optionsInternal),
|
|
13774
13784
|
environment: this.environment,
|
|
13775
|
-
id:
|
|
13785
|
+
id: p,
|
|
13776
13786
|
appVersion: this.appVersion,
|
|
13777
13787
|
serviceName: this.serviceName,
|
|
13778
13788
|
session_secure_id: this.sessionData.sessionSecureID,
|
|
13779
13789
|
session_key: this.sessionData.sessionKey,
|
|
13780
|
-
client_id:
|
|
13781
|
-
network_recording_domains:
|
|
13790
|
+
client_id: p,
|
|
13791
|
+
network_recording_domains: b,
|
|
13782
13792
|
disable_session_recording: this.options.disableSessionRecording
|
|
13783
13793
|
});
|
|
13784
|
-
if (
|
|
13785
|
-
`Unexpected secure id returned by initializeSession: ${
|
|
13786
|
-
), this.sessionData.sessionSecureID =
|
|
13787
|
-
((
|
|
13794
|
+
if (W.initializeSession.secure_id !== this.sessionData.sessionSecureID && this.logger.log(
|
|
13795
|
+
`Unexpected secure id returned by initializeSession: ${W.initializeSession.secure_id}, expected ${this.sessionData.sessionSecureID}`
|
|
13796
|
+
), this.sessionData.sessionSecureID = W.initializeSession.secure_id, this.sessionData.projectID = parseInt(
|
|
13797
|
+
((c = W?.initializeSession) == null ? void 0 : c.project_id) || "0"
|
|
13788
13798
|
), !this.sessionData.projectID || !this.sessionData.sessionSecureID) {
|
|
13789
13799
|
console.error(
|
|
13790
13800
|
"Failed to initialize Highlight; an error occurred on our end.",
|
|
@@ -13807,8 +13817,8 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
|
|
|
13807
13817
|
recordingStartTime: this._recordingStartTime
|
|
13808
13818
|
}
|
|
13809
13819
|
});
|
|
13810
|
-
for (const
|
|
13811
|
-
|
|
13820
|
+
for (const W of this._integrations)
|
|
13821
|
+
W.init(this.sessionData.sessionSecureID);
|
|
13812
13822
|
if (this.sessionData.userIdentifier && this.identify(
|
|
13813
13823
|
this.sessionData.userIdentifier,
|
|
13814
13824
|
this.sessionData.userObject
|
|
@@ -13820,23 +13830,27 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
|
|
|
13820
13830
|
), this.ready = !0, this.state = "Recording", this.manualStopped = !1;
|
|
13821
13831
|
return;
|
|
13822
13832
|
}
|
|
13823
|
-
const
|
|
13824
|
-
|
|
13833
|
+
const d = (W, X) => {
|
|
13834
|
+
X && this.logger.log("received isCheckout emit", { event: W }), this.events.push(W);
|
|
13825
13835
|
};
|
|
13826
|
-
|
|
13827
|
-
const
|
|
13836
|
+
d.bind(this);
|
|
13837
|
+
const S = !!this._recordStop;
|
|
13828
13838
|
this._recordStop && (this._recordStop(), this._recordStop = void 0);
|
|
13829
|
-
const [
|
|
13839
|
+
const [I, V] = pg(
|
|
13830
13840
|
this.privacySetting
|
|
13831
13841
|
);
|
|
13832
13842
|
this._recordStop = Be({
|
|
13833
|
-
ignoreClass: "highlight-ignore",
|
|
13834
|
-
|
|
13835
|
-
|
|
13843
|
+
ignoreClass: (u = this.options.ignoreClass) != null ? u : "highlight-ignore",
|
|
13844
|
+
ignoreSelector: this.options.ignoreSelector,
|
|
13845
|
+
blockClass: (h = this.options.blockClass) != null ? h : "highlight-block",
|
|
13846
|
+
blockSelector: this.options.blockSelector,
|
|
13847
|
+
emit: d,
|
|
13836
13848
|
recordCrossOriginIframes: this.options.recordCrossOriginIframe,
|
|
13837
13849
|
privacySetting: this.privacySetting,
|
|
13838
|
-
maskAllInputs:
|
|
13839
|
-
maskInputOptions:
|
|
13850
|
+
maskAllInputs: I,
|
|
13851
|
+
maskInputOptions: V,
|
|
13852
|
+
maskTextClass: this.options.maskTextClass,
|
|
13853
|
+
maskTextSelector: this.options.maskTextSelector,
|
|
13840
13854
|
recordCanvas: this.enableCanvasRecording,
|
|
13841
13855
|
sampling: {
|
|
13842
13856
|
canvas: {
|
|
@@ -13849,7 +13863,7 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
|
|
|
13849
13863
|
maxSnapshotDimension: this.samplingStrategy.canvasMaxSnapshotDimension
|
|
13850
13864
|
}
|
|
13851
13865
|
},
|
|
13852
|
-
keepIframeSrcFn: (
|
|
13866
|
+
keepIframeSrcFn: (W) => !this.options.recordCrossOriginIframe,
|
|
13853
13867
|
inlineImages: this.inlineImages,
|
|
13854
13868
|
inlineVideos: this.inlineVideos,
|
|
13855
13869
|
collectFonts: this.inlineImages,
|
|
@@ -13859,7 +13873,7 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
|
|
|
13859
13873
|
debug: this.logger.log,
|
|
13860
13874
|
warn: Ve.bind("RecordSDK", "warn")
|
|
13861
13875
|
} : void 0
|
|
13862
|
-
}),
|
|
13876
|
+
}), S || this.options.recordCrossOriginIframe && this._setupCrossOriginIframeParent(), document.referrer && (window && document.referrer.includes(window.location.origin) || (this.addCustomEvent("Referrer", document.referrer), this.addProperties(
|
|
13863
13877
|
{ referrer: document.referrer },
|
|
13864
13878
|
{ type: "session" }
|
|
13865
13879
|
))), this.sessionData.sessionKey && this.addProperties(
|
|
@@ -13868,8 +13882,8 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
|
|
|
13868
13882
|
},
|
|
13869
13883
|
{ type: "session" }
|
|
13870
13884
|
), this._setupWindowListeners(), this.ready = !0, this.state = "Recording", this.manualStopped = !1;
|
|
13871
|
-
} catch (
|
|
13872
|
-
Ve("initializeSession _setupWindowListeners", "warn",
|
|
13885
|
+
} catch (p) {
|
|
13886
|
+
Ve("initializeSession _setupWindowListeners", "warn", p);
|
|
13873
13887
|
}
|
|
13874
13888
|
});
|
|
13875
13889
|
}
|
|
@@ -13962,8 +13976,8 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
|
|
|
13962
13976
|
mg((r, l) => {
|
|
13963
13977
|
let o = null, a = null;
|
|
13964
13978
|
if (l && l.target) {
|
|
13965
|
-
const
|
|
13966
|
-
o = Gh(
|
|
13979
|
+
const c = l.target;
|
|
13980
|
+
o = Gh(c), a = c.textContent, a && a.length > 2e3 && (a = a.substring(0, 2e3));
|
|
13967
13981
|
}
|
|
13968
13982
|
this.addCustomEvent("Click", {
|
|
13969
13983
|
clickTarget: r,
|
|
@@ -14127,11 +14141,11 @@ SessionSecureID: ${this.sessionData.sessionSecureID}`
|
|
|
14127
14141
|
is_beacon: !1,
|
|
14128
14142
|
has_session_unloaded: this.hasSessionUnloaded,
|
|
14129
14143
|
highlight_logs: o || void 0
|
|
14130
|
-
}, { compressedBase64:
|
|
14144
|
+
}, { compressedBase64: c } = yield Hg(a);
|
|
14131
14145
|
yield i({
|
|
14132
14146
|
session_secure_id: this.sessionData.sessionSecureID,
|
|
14133
14147
|
payload_id: l.toString(),
|
|
14134
|
-
data:
|
|
14148
|
+
data: c
|
|
14135
14149
|
});
|
|
14136
14150
|
} else
|
|
14137
14151
|
this._worker.postMessage({
|
|
@@ -14216,7 +14230,7 @@ class cZ extends kh {
|
|
|
14216
14230
|
super(t), K(this, "record"), K(this, "options"), this.options = t;
|
|
14217
14231
|
}
|
|
14218
14232
|
initialize(t, i) {
|
|
14219
|
-
var n, s, r, l, o, a,
|
|
14233
|
+
var n, s, r, l, o, a, c, u, h;
|
|
14220
14234
|
try {
|
|
14221
14235
|
if (typeof window > "u" || typeof document > "u") {
|
|
14222
14236
|
console.warn(
|
|
@@ -14245,7 +14259,7 @@ class cZ extends kh {
|
|
|
14245
14259
|
sessionSecureID: this.sessionSecureID,
|
|
14246
14260
|
privacySetting: (n = i?.privacySetting) != null ? n : "strict"
|
|
14247
14261
|
});
|
|
14248
|
-
this.record = new Ag(p), i != null && i.manualStart || this.record.start(), Qt.load(this.record), !((r = (s = i?.integrations) == null ? void 0 : s.mixpanel) != null && r.disabled) && (o = (l = i?.integrations) == null ? void 0 : l.mixpanel) != null && o.projectToken && jg(i.integrations.mixpanel), !((
|
|
14262
|
+
this.record = new Ag(p), i != null && i.manualStart || this.record.start(), Qt.load(this.record), !((r = (s = i?.integrations) == null ? void 0 : s.mixpanel) != null && r.disabled) && (o = (l = i?.integrations) == null ? void 0 : l.mixpanel) != null && o.projectToken && jg(i.integrations.mixpanel), !((c = (a = i?.integrations) == null ? void 0 : a.amplitude) != null && c.disabled) && (h = (u = i?.integrations) == null ? void 0 : u.amplitude) != null && h.apiKey && Dg(i.integrations.amplitude);
|
|
14249
14263
|
} catch (p) {
|
|
14250
14264
|
Ve(
|
|
14251
14265
|
"Error initializing @launchdarkly/session-replay SDK",
|
|
@@ -14281,11 +14295,11 @@ class cZ extends kh {
|
|
|
14281
14295
|
getMetadata: () => ({
|
|
14282
14296
|
name: "@launchdarkly/session-replay/hooks"
|
|
14283
14297
|
}),
|
|
14284
|
-
afterIdentify: (o, a,
|
|
14285
|
-
var
|
|
14286
|
-
for (const V of (p = (h = (
|
|
14287
|
-
(m = V.afterIdentify) == null || m.call(V, o, a,
|
|
14288
|
-
if (
|
|
14298
|
+
afterIdentify: (o, a, c) => {
|
|
14299
|
+
var u, h, p, m, b, d, S, I;
|
|
14300
|
+
for (const V of (p = (h = (u = this.record) == null ? void 0 : u.getHooks) == null ? void 0 : h.call(u, t)) != null ? p : [])
|
|
14301
|
+
(m = V.afterIdentify) == null || m.call(V, o, a, c);
|
|
14302
|
+
if (c.status === "completed") {
|
|
14289
14303
|
const V = Se(Y({}, fh(o.context)), {
|
|
14290
14304
|
key: (S = (d = (b = this.options) == null ? void 0 : b.contextFriendlyName) == null ? void 0 : d.call(
|
|
14291
14305
|
b,
|
|
@@ -14293,7 +14307,7 @@ class cZ extends kh {
|
|
|
14293
14307
|
)) != null ? S : so(o.context),
|
|
14294
14308
|
canonicalKey: so(o.context)
|
|
14295
14309
|
});
|
|
14296
|
-
(
|
|
14310
|
+
(I = this.record) == null || I.identify(
|
|
14297
14311
|
V.key,
|
|
14298
14312
|
Y(Y({}, l), V),
|
|
14299
14313
|
"LaunchDarkly"
|
|
@@ -14301,15 +14315,15 @@ class cZ extends kh {
|
|
|
14301
14315
|
}
|
|
14302
14316
|
return a;
|
|
14303
14317
|
},
|
|
14304
|
-
afterEvaluation: (o, a,
|
|
14305
|
-
var
|
|
14306
|
-
for (const b of (p = (h = (
|
|
14307
|
-
(m = b.afterEvaluation) == null || m.call(b, o, a,
|
|
14318
|
+
afterEvaluation: (o, a, c) => {
|
|
14319
|
+
var u, h, p, m;
|
|
14320
|
+
for (const b of (p = (h = (u = this.record) == null ? void 0 : u.getHooks) == null ? void 0 : h.call(u, t)) != null ? p : [])
|
|
14321
|
+
(m = b.afterEvaluation) == null || m.call(b, o, a, c);
|
|
14308
14322
|
return a;
|
|
14309
14323
|
},
|
|
14310
14324
|
afterTrack: (o) => {
|
|
14311
|
-
var a,
|
|
14312
|
-
for (const m of (
|
|
14325
|
+
var a, c, u, h, p;
|
|
14326
|
+
for (const m of (u = (c = (a = this.record) == null ? void 0 : a.getHooks) == null ? void 0 : c.call(a, t)) != null ? u : [])
|
|
14313
14327
|
(h = m.afterTrack) == null || h.call(m, o);
|
|
14314
14328
|
(p = this.record) == null || p.track(o.key, {
|
|
14315
14329
|
data: o.data,
|
|
@@ -14322,7 +14336,7 @@ class cZ extends kh {
|
|
|
14322
14336
|
}
|
|
14323
14337
|
export {
|
|
14324
14338
|
cZ as E,
|
|
14325
|
-
Qt as
|
|
14339
|
+
Qt as t,
|
|
14326
14340
|
Xl as x
|
|
14327
14341
|
};
|
|
14328
|
-
//# sourceMappingURL=index-
|
|
14342
|
+
//# sourceMappingURL=index-lR0hHWCE.js.map
|