@pygmalionjs/pygmalion 0.20.0 → 0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/{CameraLayer-DXeRJvoy.js → CameraLayer-D4bW_2F_.js} +1 -1
- package/dist-lib/pygmalion.js +4350 -4350
- package/dist-lib/{runtime-DcPbR8PS.js → runtime-Du2Qf5G-.js} +722 -716
- package/dist-lib/testing.js +2 -2
- package/dist-lib/types/editor/declarations.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9,9 +9,9 @@ function Gf(t) {
|
|
|
9
9
|
const e = (t == null ? void 0 : t.sizing) === "hug", n = ((t == null ? void 0 : t.crossSizing) ?? (t == null ? void 0 : t.sizing)) === "hug";
|
|
10
10
|
return (t == null ? void 0 : t.direction) === "vertical" ? { width: n, height: e } : { width: e, height: n };
|
|
11
11
|
}
|
|
12
|
-
const Lu = ["minWidth", "maxWidth", "minHeight", "maxHeight"], ju = ["gap", "padding", "crossGap", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", ...Lu],
|
|
12
|
+
const Lu = ["minWidth", "maxWidth", "minHeight", "maxHeight"], ju = ["gap", "padding", "crossGap", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", ...Lu], Jf = /* @__PURE__ */ new Set(["direction", "align", "sizing", "crossSizing", "wrap", "distribute", "columns", ...ju]), Uo = (t) => t !== null && typeof t == "object" && !Array.isArray(t), Dt = (t) => typeof t == "number" && Number.isFinite(t) && t >= 0;
|
|
13
13
|
function co(t) {
|
|
14
|
-
if (!Uo(t) || Object.keys(t).some((e) => !
|
|
14
|
+
if (!Uo(t) || Object.keys(t).some((e) => !Jf.has(e))) return "A layout uses only supported layout fields.";
|
|
15
15
|
if (!["horizontal", "vertical", "grid"].includes(String(t.direction))) return "A layout direction is horizontal, vertical, or grid.";
|
|
16
16
|
if (!Dt(t.gap) || !Dt(t.padding) || ju.some((e) => t[e] !== void 0 && !Dt(t[e]))) return "Layout measures must be finite and nonnegative.";
|
|
17
17
|
if (t.align !== void 0 && !["start", "center", "end", "stretch"].includes(String(t.align))) return "Unknown cross-axis alignment.";
|
|
@@ -32,7 +32,7 @@ function uo(t) {
|
|
|
32
32
|
function lo(t) {
|
|
33
33
|
return Uo(t.properties.layoutChild) ? t.properties.layoutChild : {};
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const Yf = (t) => lo(t).position === "absolute", Ba = (t) => t.properties.sourceGeometry !== "intrinsic" && !Yf(t), St = (t, e, n) => Math.min(Dt(e[`max${n}`]) ? e[`max${n}`] : 1 / 0, Math.max(Dt(e[`min${n}`]) ? e[`min${n}`] : 0, t)), vs = (t, e) => t === "center" ? Math.max(0, e) / 2 : t === "end" ? Math.max(0, e) : 0;
|
|
36
36
|
function zu(t, e) {
|
|
37
37
|
var K;
|
|
38
38
|
if (((K = t.properties) == null ? void 0 : K.sourceGeometry) === "intrinsic") return { width: t.width, height: t.height, children: [] };
|
|
@@ -47,62 +47,62 @@ function zu(t, e) {
|
|
|
47
47
|
const i = n.direction !== "vertical", s = i ? "width" : "height", o = i ? "height" : "width", a = i ? "Width" : "Height", u = i ? "Height" : "Width", c = n.paddingLeft ?? n.padding, l = n.paddingRight ?? n.padding, d = n.paddingTop ?? n.padding, f = n.paddingBottom ?? n.padding, h = i ? c : d, b = i ? l : f, g = i ? d : c, m = i ? f : l, w = n.sizing === "hug", S = (n.crossSizing ?? n.sizing) === "hug", v = n.gap, p = n.crossGap ?? v;
|
|
48
48
|
for (const U of e.filter(Ba)) {
|
|
49
49
|
if (!U.layout) continue;
|
|
50
|
-
const A = lo(U),
|
|
51
|
-
if (A.horizontal === "fill" &&
|
|
50
|
+
const A = lo(U), L = U.layout.direction !== "vertical", k = (L ? U.layout.sizing : U.layout.crossSizing ?? U.layout.sizing) === "hug", F = (L ? U.layout.crossSizing ?? U.layout.sizing : U.layout.sizing) === "hug";
|
|
51
|
+
if (A.horizontal === "fill" && k || A.vertical === "fill" && F) throw new Error("A child cannot hug and fill the same axis. Set that axis to fixed before filling.");
|
|
52
52
|
}
|
|
53
53
|
const _ = e.filter(Ba).map((U) => ({ node: U, participation: lo(U), width: St(U.width, U.properties, "Width"), height: St(U.height, U.properties, "Height"), column: 0, span: 1 })), R = { width: St(t.width, { ...t.properties, ...n }, "Width"), height: St(t.height, { ...t.properties, ...n }, "Height"), children: [] }, M = (U, A) => St(U, { ...t.properties, ...n }, A), $ = [];
|
|
54
54
|
if (n.direction === "grid") {
|
|
55
55
|
const U = n.columns ?? 2;
|
|
56
|
-
let A = [],
|
|
57
|
-
for (const
|
|
58
|
-
|
|
59
|
-
A.length && $.push(A), w && (R.width = M(Math.max(0, ..._.map((
|
|
60
|
-
const
|
|
61
|
-
for (const
|
|
56
|
+
let A = [], L = 0;
|
|
57
|
+
for (const F of _)
|
|
58
|
+
F.span = Math.min(U, F.participation.columnSpan ?? 1), L + F.span > U && ($.push(A), A = [], L = 0), F.column = L, L += F.span, A.push(F);
|
|
59
|
+
A.length && $.push(A), w && (R.width = M(Math.max(0, ..._.map((F) => (F.width - v * (F.span - 1)) / F.span)) * U + v * (U - 1) + c + l, "Width"));
|
|
60
|
+
const k = Math.max(0, (R.width - c - l - v * (U - 1)) / U);
|
|
61
|
+
for (const F of _) F.participation.horizontal === "fill" && (F.width = St(k * F.span + v * (F.span - 1), F.node.properties, "Width"));
|
|
62
62
|
} else {
|
|
63
|
-
w && (R[s] = M(_.reduce((
|
|
63
|
+
w && (R[s] = M(_.reduce((k, F) => k + F[s], 0) + Math.max(0, _.length - 1) * v + h + b, a));
|
|
64
64
|
const U = Math.max(0, R[s] - h - b);
|
|
65
|
-
let A = [],
|
|
66
|
-
for (const
|
|
67
|
-
n.wrap && !w && A.length &&
|
|
65
|
+
let A = [], L = 0;
|
|
66
|
+
for (const k of _)
|
|
67
|
+
n.wrap && !w && A.length && L + v + k[s] > U && ($.push(A), A = [], L = 0), L += (A.length ? v : 0) + k[s], A.push(k);
|
|
68
68
|
A.length && $.push(A);
|
|
69
|
-
for (const
|
|
70
|
-
let
|
|
71
|
-
for (;
|
|
72
|
-
const Q = Math.max(0, Z /
|
|
69
|
+
for (const k of $) {
|
|
70
|
+
let F = k.filter((Q) => Q.participation[i ? "horizontal" : "vertical"] === "fill" && !w), Z = U - Math.max(0, k.length - 1) * v - k.filter((Q) => !F.includes(Q)).reduce((Q, ue) => Q + ue[s], 0);
|
|
71
|
+
for (; F.length; ) {
|
|
72
|
+
const Q = Math.max(0, Z / F.length), ue = F.filter((G) => St(Q, G.node.properties, a) !== Q);
|
|
73
73
|
if (!ue.length) {
|
|
74
|
-
for (const G of
|
|
74
|
+
for (const G of F) G[s] = Q;
|
|
75
75
|
break;
|
|
76
76
|
}
|
|
77
77
|
for (const G of ue)
|
|
78
78
|
G[s] = St(Q, G.node.properties, a), Z -= G[s];
|
|
79
|
-
|
|
79
|
+
F = F.filter((G) => !ue.includes(G));
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
let
|
|
84
|
-
const E =
|
|
83
|
+
let T = $.map((U) => Math.max(0, ...U.map((A) => A[o])));
|
|
84
|
+
const E = T.reduce((U, A) => U + A, 0) + Math.max(0, $.length - 1) * p + g + m;
|
|
85
85
|
S && (R[o] = M(E, u));
|
|
86
86
|
const P = Math.max(0, R[o] - g - m);
|
|
87
|
-
if (!S && $.length === 1)
|
|
87
|
+
if (!S && $.length === 1) T = [P];
|
|
88
88
|
else if (!S && n.direction === "grid" && $.length && (n.align === "stretch" || _.some((U) => U.participation.vertical === "fill"))) {
|
|
89
|
-
const U = Math.max(0, P -
|
|
90
|
-
|
|
89
|
+
const U = Math.max(0, P - T.reduce((A, L) => A + L, 0) - ($.length - 1) * p) / $.length;
|
|
90
|
+
T = T.map((A) => A + U);
|
|
91
91
|
}
|
|
92
92
|
let j = g;
|
|
93
93
|
return $.forEach((U, A) => {
|
|
94
|
-
const
|
|
95
|
-
let Z = h + vs(n.distribute,
|
|
96
|
-
const Q = n.distribute === "space-between" && U.length > 1 ? v +
|
|
94
|
+
const L = T[A], k = U.reduce((ue, G) => ue + G[s], 0) + Math.max(0, U.length - 1) * v, F = Math.max(0, R[s] - h - b - k);
|
|
95
|
+
let Z = h + vs(n.distribute, F);
|
|
96
|
+
const Q = n.distribute === "space-between" && U.length > 1 ? v + F / (U.length - 1) : v;
|
|
97
97
|
for (const ue of U) {
|
|
98
|
-
if ((n.align === "stretch" || ue.participation[i ? "vertical" : "horizontal"] === "fill") && (ue[o] = St(
|
|
98
|
+
if ((n.align === "stretch" || ue.participation[i ? "vertical" : "horizontal"] === "fill") && (ue[o] = St(L, ue.node.properties, u)), n.direction === "grid") {
|
|
99
99
|
const O = Math.max(0, (R.width - c - l - v * ((n.columns ?? 2) - 1)) / (n.columns ?? 2));
|
|
100
100
|
Z = c + ue.column * (O + v) + vs(n.distribute, O * ue.span + v * (ue.span - 1) - ue.width);
|
|
101
101
|
}
|
|
102
|
-
const G = j + vs(n.align,
|
|
102
|
+
const G = j + vs(n.align, L - ue[o]);
|
|
103
103
|
R.children.push({ nodeId: ue.node.id, x: i ? Z : G, y: i ? G : Z, width: ue.width, height: ue.height }), Z += ue[s] + Q;
|
|
104
104
|
}
|
|
105
|
-
j +=
|
|
105
|
+
j += L + p;
|
|
106
106
|
}), R;
|
|
107
107
|
}
|
|
108
108
|
const ys = (t) => t !== null && typeof t == "object" && !Array.isArray(t);
|
|
@@ -178,7 +178,7 @@ function Ha(t) {
|
|
|
178
178
|
(t[1] * t[4] - t[0] * t[5]) / e
|
|
179
179
|
];
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Yr(t, e) {
|
|
182
182
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
183
183
|
let i = t.nodes[e];
|
|
184
184
|
if (!i) throw new Error(`Unknown document node: ${e}`);
|
|
@@ -323,7 +323,7 @@ function mo(t, e, n, r, i = {}) {
|
|
|
323
323
|
}
|
|
324
324
|
return n;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function Jo(t, e, n, r, i) {
|
|
327
327
|
var o;
|
|
328
328
|
const s = Zn(t, e, n, i);
|
|
329
329
|
s || le("unknown-override", "Override target does not belong to the definition.", n), Ko(r, s.kind === "instance"), r.definitionId !== void 0 && ((o = t.nodes[r.definitionId]) == null ? void 0 : o.kind) !== "component" && le("missing-definition", "Instances require a component definition.", n);
|
|
@@ -343,26 +343,26 @@ function Cr(t, e, n = {}) {
|
|
|
343
343
|
((S = t.nodes[R]) == null ? void 0 : S.kind) !== "component" && le("missing-definition", "Instances require a component definition.", o), c.has(R) && le("component-cycle", "Component definitions contain a reference cycle.", o);
|
|
344
344
|
const M = new Set(c).add(R), $ = { ...p[R] ?? {} };
|
|
345
345
|
b.width !== void 0 && ($.width = b.width), b.height !== void 0 && ($.height = b.height), Object.keys($).length && (p[R] = $);
|
|
346
|
-
for (const [E, P] of Object.entries(p))
|
|
347
|
-
const
|
|
346
|
+
for (const [E, P] of Object.entries(p)) Jo(t, R, E, P, p);
|
|
347
|
+
const T = r(R, p, u ?? o, M, R, v, f);
|
|
348
348
|
return {
|
|
349
349
|
sourceNodeId: o,
|
|
350
350
|
instanceId: u ?? o,
|
|
351
351
|
instanceProperties: Ae(g.properties),
|
|
352
352
|
node: {
|
|
353
|
-
...
|
|
353
|
+
...T.node,
|
|
354
354
|
id: o,
|
|
355
355
|
parentId: g.parentId,
|
|
356
356
|
kind: "instance",
|
|
357
357
|
name: g.name,
|
|
358
358
|
transform: g.transform,
|
|
359
|
-
width:
|
|
360
|
-
height:
|
|
361
|
-
properties: { ...
|
|
359
|
+
width: T.node.width,
|
|
360
|
+
height: T.node.height,
|
|
361
|
+
properties: { ...T.node.properties, ...g.properties },
|
|
362
362
|
definitionId: R,
|
|
363
363
|
overrides: p
|
|
364
364
|
},
|
|
365
|
-
children:
|
|
365
|
+
children: T.children
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
const m = {
|
|
@@ -404,7 +404,7 @@ function ih(t) {
|
|
|
404
404
|
else
|
|
405
405
|
try {
|
|
406
406
|
for (const [c, l] of Object.entries(u.overrides ?? {}))
|
|
407
|
-
Zn(t, u.definitionId, c, u.overrides ?? {}) ?
|
|
407
|
+
Zn(t, u.definitionId, c, u.overrides ?? {}) ? Jo(t, u.definitionId, c, l, u.overrides ?? {}) : (n("unknown-override", "An override target must belong to the component definition.", c), Ko(l));
|
|
408
408
|
} catch (c) {
|
|
409
409
|
n("invalid-override", String(c), a);
|
|
410
410
|
}
|
|
@@ -516,7 +516,7 @@ function Hu(t, e = {}) {
|
|
|
516
516
|
return f ? (o.push(r), r = f, i++, l(), !0) : !1;
|
|
517
517
|
},
|
|
518
518
|
transact(f, h) {
|
|
519
|
-
var
|
|
519
|
+
var T;
|
|
520
520
|
s && le("transaction-active", "Document transactions cannot be nested."), f.trim() || le("missing-label", "A document transaction requires a label."), s = !0;
|
|
521
521
|
let b = !0, g = !1;
|
|
522
522
|
const m = Ae(r), w = [], S = (E) => {
|
|
@@ -564,8 +564,8 @@ function Hu(t, e = {}) {
|
|
|
564
564
|
reparent(E, P, j, K = {}) {
|
|
565
565
|
const U = v(E);
|
|
566
566
|
S(P), Cn(m, E).includes(P) && le("cycle", "A node cannot become a descendant of itself.", E);
|
|
567
|
-
const A = U.parentId !== P && K.preserveWorld !== !1,
|
|
568
|
-
_(U), R(U, P, j),
|
|
567
|
+
const A = U.parentId !== P && K.preserveWorld !== !1, L = A ? Yr(m, E) : null, k = A ? Ha(Yr(m, P)) : null;
|
|
568
|
+
_(U), R(U, P, j), k && L && (U.transform = fo(k, L)), w.push(`reparent:${E}`);
|
|
569
569
|
},
|
|
570
570
|
moveOut(E) {
|
|
571
571
|
const P = v(E), j = S(P.parentId);
|
|
@@ -577,14 +577,14 @@ function Hu(t, e = {}) {
|
|
|
577
577
|
(!E.length || new Set(E).size !== E.length) && le("invalid-group", "Grouping requires a nonempty unique selection.");
|
|
578
578
|
const K = E.map(v), U = S(K[0].parentId);
|
|
579
579
|
K.some((Z) => Z.parentId !== U.id) && le("invalid-group", "Grouped nodes must share a parent.");
|
|
580
|
-
const A = U.children.filter((Z) => E.includes(Z)),
|
|
580
|
+
const A = U.children.filter((Z) => E.includes(Z)), L = K.map((Z) => eh(Z.transform, Z.width, Z.height)), k = Math.min(...L.map((Z) => Z.x)), F = Math.min(...L.map((Z) => Z.y));
|
|
581
581
|
M.add(ho({
|
|
582
582
|
id: P,
|
|
583
583
|
kind: "group",
|
|
584
584
|
name: j,
|
|
585
|
-
transform: [1, 0, 0, 1,
|
|
586
|
-
width: Math.max(...
|
|
587
|
-
height: Math.max(...
|
|
585
|
+
transform: [1, 0, 0, 1, k, F],
|
|
586
|
+
width: Math.max(...L.map((Z) => Z.x + Z.width)) - k,
|
|
587
|
+
height: Math.max(...L.map((Z) => Z.y + Z.height)) - F
|
|
588
588
|
}), U.id, U.children.indexOf(A[0]));
|
|
589
589
|
for (const Z of A) M.reparent(Z, P);
|
|
590
590
|
w.push(`group:${P}`);
|
|
@@ -623,7 +623,7 @@ function Hu(t, e = {}) {
|
|
|
623
623
|
const K = S(E);
|
|
624
624
|
if ((K.kind !== "instance" || !K.definitionId) && le("not-instance", "Overrides belong to component instances.", E), Zn(m, K.definitionId, P, K.overrides ?? {}) || le("unknown-override", "Override target does not belong to the definition.", P), K.overrides ?? (K.overrides = {}), j === null) delete K.overrides[P];
|
|
625
625
|
else {
|
|
626
|
-
|
|
626
|
+
Jo(m, K.definitionId, P, j, K.overrides);
|
|
627
627
|
const U = K.overrides[P] ?? {};
|
|
628
628
|
K.overrides[P] = {
|
|
629
629
|
...U,
|
|
@@ -637,13 +637,13 @@ function Hu(t, e = {}) {
|
|
|
637
637
|
var ue, G;
|
|
638
638
|
const K = S(E);
|
|
639
639
|
(K.kind !== "instance" || !K.definitionId) && le("not-instance", "Only a component instance can change its definition.", E), S(P).kind !== "component" && le("missing-definition", "Instances require a component definition.", P), j.incompatibleOverrides != null && !["reject", "discard"].includes(j.incompatibleOverrides) && le("invalid-swap-options", "Incompatible overrides must be rejected or explicitly discarded.", E);
|
|
640
|
-
const A = K.definitionId,
|
|
641
|
-
for (const [O, H] of Object.entries(
|
|
642
|
-
(!
|
|
640
|
+
const A = K.definitionId, L = (O) => Zn(m, A, O, K.overrides), k = (O) => Zn(m, P, O), F = j.overrideTargets ?? {};
|
|
641
|
+
for (const [O, H] of Object.entries(F))
|
|
642
|
+
(!L(O) || !k(H) || O === A && H !== P) && le("invalid-override-mapping", "Swap mappings must connect addresses in the old and new component definitions.", O);
|
|
643
643
|
const Z = {}, Q = [];
|
|
644
644
|
for (const [O, H] of Object.entries(K.overrides ?? {})) {
|
|
645
|
-
const q = O === A ? P : Object.hasOwn(
|
|
646
|
-
if (!q || ((ue =
|
|
645
|
+
const q = O === A ? P : Object.hasOwn(F, O) ? F[O] : k(O) ? O : void 0;
|
|
646
|
+
if (!q || ((ue = L(O)) == null ? void 0 : ue.kind) !== ((G = k(q)) == null ? void 0 : G.kind)) {
|
|
647
647
|
j.incompatibleOverrides !== "discard" && Q.push({
|
|
648
648
|
code: "incompatible-override",
|
|
649
649
|
message: "This override requires an explicit compatible target or explicit removal before swapping.",
|
|
@@ -665,39 +665,39 @@ function Hu(t, e = {}) {
|
|
|
665
665
|
detachInstance(E, P) {
|
|
666
666
|
const j = S(E);
|
|
667
667
|
j.kind !== "instance" && le("not-instance", "Only a component instance can be detached.", E);
|
|
668
|
-
const K = Cr(m, E), U = (A,
|
|
669
|
-
|
|
670
|
-
const
|
|
671
|
-
if (
|
|
672
|
-
return
|
|
673
|
-
(
|
|
668
|
+
const K = Cr(m, E), U = (A, L, k) => {
|
|
669
|
+
k !== E && (!k.trim() || Object.hasOwn(m.nodes, k)) && le("duplicate-node", "Detached descendants require fresh IDs.", k);
|
|
670
|
+
const F = Ae(A.node);
|
|
671
|
+
if (F.id = k, F.parentId = L, F.kind === "instance" && k !== E)
|
|
672
|
+
return F.properties = Ae(A.instanceProperties ?? {}), F.children = [], m.nodes[k] = F, F;
|
|
673
|
+
(F.kind === "instance" || F.kind === "component") && (F.kind = "frame"), delete F.definitionId, delete F.overrides, F.children = [], m.nodes[k] = F;
|
|
674
674
|
for (const Z of A.children) {
|
|
675
675
|
const Q = P(Z.sourceNodeId);
|
|
676
|
-
|
|
676
|
+
F.children.push(U(Z, k, Q).id);
|
|
677
677
|
}
|
|
678
|
-
return
|
|
678
|
+
return F;
|
|
679
679
|
};
|
|
680
680
|
U(K, j.parentId, E), w.push(`detach-instance:${E}`);
|
|
681
681
|
},
|
|
682
682
|
duplicateSubtree(E, P, j = {}) {
|
|
683
683
|
const K = v(E), U = j.parentId ?? K.parentId, A = S(U);
|
|
684
684
|
Object.keys(m.metadata).length && !j.remapMetadata && le("metadata-remap-required", "Duplicating a document with sidecars requires an explicit metadata remapper.", E);
|
|
685
|
-
const
|
|
685
|
+
const L = ln(Ae(m)), k = Cn(L, E), F = /* @__PURE__ */ new Set(), Z = k.map((q) => {
|
|
686
686
|
const V = p(() => P(q));
|
|
687
|
-
return (typeof V != "string" || !V.trim() || Object.hasOwn(m.nodes, V) ||
|
|
688
|
-
}), Q = ln(Object.fromEntries(Z)), ue = j.index ?? (U === K.parentId ? A.children.indexOf(E) + 1 : A.children.length), G =
|
|
689
|
-
for (const q of
|
|
690
|
-
const V = Ae(
|
|
687
|
+
return (typeof V != "string" || !V.trim() || Object.hasOwn(m.nodes, V) || F.has(V)) && le("duplicate-node", "Duplicated nodes require fresh, unique, nonempty IDs.", V), F.add(V), [q, V];
|
|
688
|
+
}), Q = ln(Object.fromEntries(Z)), ue = j.index ?? (U === K.parentId ? A.children.indexOf(E) + 1 : A.children.length), G = Yr(L, E), O = j.preserveWorld === !1 ? null : Ha(Yr(L, U));
|
|
689
|
+
for (const q of k) {
|
|
690
|
+
const V = Ae(L.nodes[q]);
|
|
691
691
|
V.id = Q[q], V.parentId = q === E ? U : Q[V.parentId], V.children = V.children.map((X) => Q[X]), V.properties = Xf(V.properties, Q);
|
|
692
692
|
const z = V.properties.componentProperties;
|
|
693
693
|
if (V.kind === "component" && z && typeof z == "object" && !Array.isArray(z) && Array.isArray(z.definitions))
|
|
694
694
|
for (const X of z.definitions)
|
|
695
|
-
!X || typeof X != "object" || Array.isArray(X) || (Array.isArray(X.targets) && (X.targets = X.targets.map((
|
|
696
|
-
V.definitionId && Object.hasOwn(Q, V.definitionId) && (V.definitionId = Q[V.definitionId]), V.overrides && (V.overrides = Object.fromEntries(Object.entries(V.overrides).map(([X,
|
|
695
|
+
!X || typeof X != "object" || Array.isArray(X) || (Array.isArray(X.targets) && (X.targets = X.targets.map((Y) => typeof Y == "string" ? mo(L, q, Y, Q) : Y)), Array.isArray(X.preferredValues) && (X.preferredValues = X.preferredValues.map((Y) => typeof Y == "string" && Object.hasOwn(Q, Y) ? Q[Y] : Y)));
|
|
696
|
+
V.definitionId && Object.hasOwn(Q, V.definitionId) && (V.definitionId = Q[V.definitionId]), V.overrides && (V.overrides = Object.fromEntries(Object.entries(V.overrides).map(([X, Y]) => [mo(L, L.nodes[q].definitionId, X, Q, L.nodes[q].overrides), { ...Y, ...Y.definitionId && Object.hasOwn(Q, Y.definitionId) ? { definitionId: Q[Y.definitionId] } : {} }]))), Object.defineProperty(m.nodes, V.id, { value: V, enumerable: !0, configurable: !0, writable: !0 });
|
|
697
697
|
}
|
|
698
698
|
const H = m.nodes[Q[E]];
|
|
699
699
|
if (R(H, U, ue), O && (H.transform = fo(O, G)), j.remapMetadata) {
|
|
700
|
-
const q = j.remapMetadata, V = p(() => q({ before:
|
|
700
|
+
const q = j.remapMetadata, V = p(() => q({ before: L, after: ln(Ae(m)), nodeIds: Q }));
|
|
701
701
|
(!V || typeof V != "object" || Array.isArray(V) || !wr(V)) && le("invalid-metadata", "A duplicate metadata remapper must return serializable document metadata.", E), m.metadata = Ae(V);
|
|
702
702
|
}
|
|
703
703
|
return w.push(`duplicate:${E}:${H.id}`), Q;
|
|
@@ -709,7 +709,7 @@ function Hu(t, e = {}) {
|
|
|
709
709
|
let $ = !1;
|
|
710
710
|
try {
|
|
711
711
|
h(M), Wn(m), Ka(m), Wn(m);
|
|
712
|
-
const E = ln(m), P = ((
|
|
712
|
+
const E = ln(m), P = ((T = e.preflight) == null ? void 0 : T.call(e, { before: r, after: E, operations: ln(w) })) ?? [];
|
|
713
713
|
if (P.length) throw new br(P);
|
|
714
714
|
$ = JSON.stringify(r) !== JSON.stringify(E), $ && (o.push(r), o.length > c && o.shift(), a.length = 0, r = E, i++);
|
|
715
715
|
} finally {
|
|
@@ -728,12 +728,12 @@ function t0(t) {
|
|
|
728
728
|
function We(t) {
|
|
729
729
|
return t !== null && typeof t == "object" && !Array.isArray(t) && (Object.getPrototypeOf(t) === Object.prototype || Object.getPrototypeOf(t) === null);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Yo(t, e = /* @__PURE__ */ new Set()) {
|
|
732
732
|
if (t === null || typeof t == "string" || typeof t == "boolean") return !0;
|
|
733
733
|
if (typeof t == "number") return Number.isFinite(t);
|
|
734
734
|
if (typeof t != "object" || e.has(t) || !Array.isArray(t) && !We(t)) return !1;
|
|
735
735
|
const n = new Set(e).add(t);
|
|
736
|
-
return Object.values(t).every((r) =>
|
|
736
|
+
return Object.values(t).every((r) => Yo(r, n));
|
|
737
737
|
}
|
|
738
738
|
function Ne(t) {
|
|
739
739
|
return typeof t == "string" && t.trim().length > 0;
|
|
@@ -748,7 +748,7 @@ const qa = /* @__PURE__ */ new Set(["string", "number", "boolean", "enum", "obje
|
|
|
748
748
|
function ah(t) {
|
|
749
749
|
var u;
|
|
750
750
|
const e = [], n = (c, l) => e.push({ severity: "error", code: c, message: l });
|
|
751
|
-
if (!We(t) || !
|
|
751
|
+
if (!We(t) || !Yo(t) || t.version !== 1 || !Uu(t.identity) || !Array.isArray(t.scopes) || !Array.isArray(t.fields) || !Array.isArray(t.slots))
|
|
752
752
|
return n("catalog-invalid", "A data catalog requires version 1, identity, scopes, fields, slots, and JSON-only declarations."), { valid: !1, diagnostics: e };
|
|
753
753
|
const r = /* @__PURE__ */ new Map();
|
|
754
754
|
for (const c of ["scopes", "fields", "slots", "formatters", "fixtures", "actions"]) {
|
|
@@ -794,7 +794,7 @@ function Wa(t) {
|
|
|
794
794
|
return We(t) && (t.kind === "screen" && Ne(t.scopeId) || t.kind === "item" && Ne(t.repeatId));
|
|
795
795
|
}
|
|
796
796
|
function Xo(t) {
|
|
797
|
-
if (!We(t) || !
|
|
797
|
+
if (!We(t) || !Yo(t) || t.version !== 1 || !Uu(t.catalog) || !Ne(t.screenId) || !Array.isArray(t.bindings) || !Array.isArray(t.repeats)) return !1;
|
|
798
798
|
const e = (n) => We(n) && Ne(n.nodeId) && Ne(n.slotId);
|
|
799
799
|
return t.bindings.every((n) => We(n) && Ne(n.id) && Ne(n.fieldId) && Wa(n.scope) && e(n.target) && We(n.missing) && ["empty", "hide", "text", "error"].includes(String(n.missing.kind)) && (n.missing.kind !== "text" || typeof n.missing.text == "string") && (n.formatter === void 0 || We(n.formatter) && Ne(n.formatter.id) && (n.formatter.options === void 0 || We(n.formatter.options) && Object.values(n.formatter.options).every((r) => ["string", "number", "boolean"].includes(typeof r))))) && t.repeats.every((n) => We(n) && Ne(n.id) && Ne(n.templateNodeId) && Ne(n.collectionFieldId) && Wa(n.sourceScope)) && (t.requests === void 0 || Array.isArray(t.requests) && t.requests.every((n) => We(n) && Ne(n.id) && e(n.target) && Ne(n.description)));
|
|
800
800
|
}
|
|
@@ -828,8 +828,8 @@ function Ci(t, e, n) {
|
|
|
828
828
|
d.has(p) && o("binding-id-duplicate", `Duplicate binding, repeat, or request ID "${p}".`), d.add(p);
|
|
829
829
|
}, g = (p, _, R, M, $) => {
|
|
830
830
|
var E;
|
|
831
|
-
const
|
|
832
|
-
if (p.scopeId !==
|
|
831
|
+
const T = ch(t, i, _);
|
|
832
|
+
if (p.scopeId !== T && o("binding-scope-mismatch", `Field "${p.id}" does not belong to this scope.`, $), _.kind === "screen") {
|
|
833
833
|
const P = t.scopes.find((j) => j.id === _.scopeId);
|
|
834
834
|
((P == null ? void 0 : P.kind) !== "screen" || !((E = P.screenIds) != null && E.includes(i.screenId))) && o("binding-screen-unavailable", `Scope "${_.scopeId}" is unavailable in this screen.`, $);
|
|
835
835
|
} else {
|
|
@@ -851,35 +851,35 @@ function Ci(t, e, n) {
|
|
|
851
851
|
break;
|
|
852
852
|
}
|
|
853
853
|
$.add(M.id);
|
|
854
|
-
const
|
|
855
|
-
if (!
|
|
856
|
-
M =
|
|
854
|
+
const T = l.get(M.sourceScope.repeatId);
|
|
855
|
+
if (!T) break;
|
|
856
|
+
M = T;
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
for (const p of i.bindings) {
|
|
860
860
|
b(p.id);
|
|
861
861
|
const _ = { bindingId: p.id, nodeId: p.target.nodeId, fieldId: p.fieldId }, R = JSON.stringify([p.target.nodeId, p.target.slotId]);
|
|
862
862
|
f.has(R) && o("binding-slot-conflict", "A target slot can have only one content owner.", _), f.add(R);
|
|
863
|
-
const M = a.get(p.target.nodeId), $ = c.get(p.target.slotId),
|
|
864
|
-
if (M || o("binding-target-missing", "The binding target node is unavailable.", _), !
|
|
863
|
+
const M = a.get(p.target.nodeId), $ = c.get(p.target.slotId), T = u.get(p.fieldId);
|
|
864
|
+
if (M || o("binding-target-missing", "The binding target node is unavailable.", _), !T) {
|
|
865
865
|
o("binding-field-missing", "The connected field is no longer exposed by the host.", _);
|
|
866
866
|
continue;
|
|
867
867
|
}
|
|
868
|
-
if (g(
|
|
868
|
+
if (g(T, p.scope, p.target.nodeId, !1, _), !$ || $.componentName && $.componentName !== (M == null ? void 0 : M.componentName) || $.kind === "text-content" && !$.componentName && (M == null ? void 0 : M.kind) !== "text") {
|
|
869
869
|
o("binding-slot-unavailable", "The slot is unavailable on the selected component or node kind.", _);
|
|
870
870
|
continue;
|
|
871
871
|
}
|
|
872
|
-
let E =
|
|
872
|
+
let E = T.valueType.kind;
|
|
873
873
|
if (p.formatter) {
|
|
874
874
|
const P = (m = t.formatters) == null ? void 0 : m.find((j) => j.id === p.formatter.id);
|
|
875
|
-
if (!P || !((w =
|
|
875
|
+
if (!P || !((w = T.formatterIds) != null && w.includes(P.id)) || !P.inputKinds.some((j) => j === T.valueType.kind)) o("binding-formatter-unavailable", "The formatter is not declared for this field and type.", _);
|
|
876
876
|
else {
|
|
877
877
|
E = P.outputKind;
|
|
878
878
|
for (const [j, K] of Object.entries(p.formatter.options ?? {}))
|
|
879
879
|
(v = (S = P.options) == null ? void 0 : S[j]) != null && v.some((U) => Object.is(U, K)) || o("binding-formatter-option-invalid", `Formatter option "${j}" is not allowed.`, _);
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
|
-
$.valueKinds.includes(E) || o("binding-slot-type-mismatch", `The slot does not accept ${E} values.`, _), p.missing.kind === "empty" && (
|
|
882
|
+
$.valueKinds.includes(E) || o("binding-slot-type-mismatch", `The slot does not accept ${E} values.`, _), p.missing.kind === "empty" && (T.nullable && !$.nullable || T.optional && !$.optional) && o("binding-missing-policy-invalid", "This slot requires an explicit missing-value presentation.", _), p.missing.kind === "text" && !$.valueKinds.includes("string") && o("binding-missing-policy-invalid", "A text fallback requires a string-compatible slot.", _);
|
|
883
883
|
}
|
|
884
884
|
for (const p of i.requests ?? [])
|
|
885
885
|
b(p.id), o("binding-data-requested", "The host must expose requested dynamic content before source integration.", { nodeId: p.target.nodeId });
|
|
@@ -889,7 +889,7 @@ function n0(t, e, n, r) {
|
|
|
889
889
|
const i = (o) => JSON.stringify([o.code, o.bindingId, o.repeatId, o.nodeId, o.fieldId]), s = new Set(Ci(t, e, n).diagnostics.map(i));
|
|
890
890
|
return Ci(t, e, r).diagnostics.filter((o) => !s.has(i(o)));
|
|
891
891
|
}
|
|
892
|
-
const
|
|
892
|
+
const Ja = /* @__PURE__ */ new WeakMap();
|
|
893
893
|
function uh(t) {
|
|
894
894
|
return t.__PYG_CSS_MODULES__ ?? [];
|
|
895
895
|
}
|
|
@@ -897,13 +897,13 @@ function Mr(t) {
|
|
|
897
897
|
const e = t.ownerDocument.defaultView;
|
|
898
898
|
if (!e) return null;
|
|
899
899
|
const n = uh(e);
|
|
900
|
-
let r =
|
|
900
|
+
let r = Ja.get(e);
|
|
901
901
|
if (!r || r.len !== n.length) {
|
|
902
902
|
const i = /* @__PURE__ */ new Map();
|
|
903
903
|
for (const s of n)
|
|
904
904
|
for (const [o, a] of Object.entries(s.classes))
|
|
905
905
|
typeof a == "string" && !i.has(a) && i.set(a, { file: s.file, componentFile: s.componentFile, localName: o });
|
|
906
|
-
r = { len: n.length, map: i },
|
|
906
|
+
r = { len: n.length, map: i }, Ja.set(e, r);
|
|
907
907
|
}
|
|
908
908
|
for (const i of Array.from(t.classList)) {
|
|
909
909
|
const s = r.map.get(i);
|
|
@@ -945,7 +945,7 @@ function vo(t) {
|
|
|
945
945
|
!/^[A-Za-z_$][A-Za-z0-9_$-]*(?::[A-Za-z_$][A-Za-z0-9_$-]*)?$/.test(r) || r === "__proto__" || r === "constructor" || r === "prototype" || r.startsWith("data-pygmalion-") || (typeof i == "boolean" || typeof i == "number" && Number.isFinite(i) || typeof i == "string" && i.length <= 1e4 && !i.includes("\0")) && (n[r] = i);
|
|
946
946
|
return n;
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function Ya(t) {
|
|
949
949
|
const e = t.getAttribute("data-pygmalion-slot-count");
|
|
950
950
|
if (!e || !/^\d+$/.test(e)) return null;
|
|
951
951
|
const n = Number(e);
|
|
@@ -1276,7 +1276,7 @@ class mh {
|
|
|
1276
1276
|
if (s && s.children !== "nodes")
|
|
1277
1277
|
return "The selected registration component does not support children node slots.";
|
|
1278
1278
|
const o = (s == null ? void 0 : s.children) === "nodes" && /^[A-Z]/.test(i);
|
|
1279
|
-
return (s == null ? void 0 : s.children) === "nodes" && !o ? "The JSX source location of the component call-site is not passed to the DOM, so it cannot be safely inserted." : !(!s && /^[a-z]/.test(i) && !dh.has(i.toLowerCase())) && !o ? "Only regular containers or registered components that support children nodes can be used as slots." :
|
|
1279
|
+
return (s == null ? void 0 : s.children) === "nodes" && !o ? "The JSX source location of the component call-site is not passed to the DOM, so it cannot be safely inserted." : !(!s && /^[a-z]/.test(i) && !dh.has(i.toLowerCase())) && !o ? "Only regular containers or registered components that support children nodes can be used as slots." : Ya(e) == null ? "Since the number of JSX children is not directly measured, safe insertion positions cannot be calculated." : this.hasPendingValueEdit(e) ? "Please undo this slot owner's prop/text changes first and then insert them." : this.hasPendingStructuralEdit(e) ? "This slot owner already has a pending structure change. Please insert after undo." : this.entries.find(
|
|
1280
1280
|
(c) => c.kind === "structure" && c.structureParent === e
|
|
1281
1281
|
) ? "A structural change can only be staged once in the same children slot." : null;
|
|
1282
1282
|
}
|
|
@@ -1363,7 +1363,7 @@ class mh {
|
|
|
1363
1363
|
/** Inserts the registry component directly into the children slot of the selected element. */
|
|
1364
1364
|
recordComponentInsert(e, n, r, i, s = null, o = []) {
|
|
1365
1365
|
if (this.componentInsertBlockReason(e, s)) return !1;
|
|
1366
|
-
const a = _t(e), u =
|
|
1366
|
+
const a = _t(e), u = Ya(e), c = this.registry.getRegistry()[n], l = hh(this.registry, n);
|
|
1367
1367
|
if (!a || u == null || !c || !l || !Number.isSafeInteger(r) || r < 0 || r > u)
|
|
1368
1368
|
return !1;
|
|
1369
1369
|
const d = ph(
|
|
@@ -1937,7 +1937,7 @@ function Gu(t, e, n, r, i, s, o) {
|
|
|
1937
1937
|
});
|
|
1938
1938
|
const p = l.display === "flex" || l.display === "inline-flex", _ = p && l.flexDirection.startsWith("row") ? "columns" : "rows", R = Gt(_ === "columns" ? l.columnGap : l.rowGap), M = Math.round(
|
|
1939
1939
|
(Gt(l.paddingTop) + Gt(l.paddingRight) + Gt(l.paddingBottom) + Gt(l.paddingLeft)) / 4
|
|
1940
|
-
), $ = Gt(l.borderTopWidth),
|
|
1940
|
+
), $ = Gt(l.borderTopWidth), T = Qr(_, {
|
|
1941
1941
|
name: v,
|
|
1942
1942
|
...rc(f, e, l.display, h),
|
|
1943
1943
|
gap: Number.isFinite(R) ? R : 0,
|
|
@@ -1966,7 +1966,7 @@ function Gu(t, e, n, r, i, s, o) {
|
|
|
1966
1966
|
message: `DOM capture stopped descending at depth ${u}.`,
|
|
1967
1967
|
limit: u,
|
|
1968
1968
|
actual: n
|
|
1969
|
-
}),
|
|
1969
|
+
}), T;
|
|
1970
1970
|
for (const K of Array.from(t.childNodes)) {
|
|
1971
1971
|
if (r.count >= a) {
|
|
1972
1972
|
_s(r, {
|
|
@@ -1986,16 +1986,16 @@ function Gu(t, e, n, r, i, s, o) {
|
|
|
1986
1986
|
try {
|
|
1987
1987
|
const A = t.ownerDocument.createRange();
|
|
1988
1988
|
A.selectNodeContents(K);
|
|
1989
|
-
const
|
|
1990
|
-
(
|
|
1989
|
+
const L = A.getBoundingClientRect();
|
|
1990
|
+
(L.width >= 1 || L.height >= 1) && nc(
|
|
1991
1991
|
r,
|
|
1992
|
-
[...o,
|
|
1993
|
-
|
|
1992
|
+
[...o, T.children.length],
|
|
1993
|
+
L,
|
|
1994
1994
|
h
|
|
1995
1995
|
);
|
|
1996
1996
|
} catch {
|
|
1997
1997
|
}
|
|
1998
|
-
|
|
1998
|
+
T.children.push(
|
|
1999
1999
|
Qr("text", {
|
|
2000
2000
|
name: "text",
|
|
2001
2001
|
text: U,
|
|
@@ -2009,12 +2009,12 @@ function Gu(t, e, n, r, i, s, o) {
|
|
|
2009
2009
|
} else if (K.nodeType === Node.ELEMENT_NODE) {
|
|
2010
2010
|
const U = Gu(K, f, n + 1, r, i, s, [
|
|
2011
2011
|
...o,
|
|
2012
|
-
|
|
2012
|
+
T.children.length
|
|
2013
2013
|
]);
|
|
2014
|
-
U &&
|
|
2014
|
+
U && T.children.push(U);
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
|
-
return
|
|
2017
|
+
return T;
|
|
2018
2018
|
}
|
|
2019
2019
|
function Qo(t, e, n = {}) {
|
|
2020
2020
|
const r = {
|
|
@@ -2119,7 +2119,7 @@ function jh(t) {
|
|
|
2119
2119
|
return `${n}${r}${i}${s ? `[data-testid=${s}]` : ""}`;
|
|
2120
2120
|
}
|
|
2121
2121
|
const oc = "__PYGMALION_DOCUMENT_STABILITY__", zh = 'dialog[open],[role="dialog"],[role="alertdialog"],[aria-modal="true"]';
|
|
2122
|
-
function
|
|
2122
|
+
function Ju(t, e) {
|
|
2123
2123
|
var o;
|
|
2124
2124
|
const n = t.defaultView;
|
|
2125
2125
|
if (!n)
|
|
@@ -2171,7 +2171,7 @@ function Yu(t, e) {
|
|
|
2171
2171
|
return n[oc] = i, i;
|
|
2172
2172
|
}
|
|
2173
2173
|
function Vh(t, e = []) {
|
|
2174
|
-
const n = e.join(","), r =
|
|
2174
|
+
const n = e.join(","), r = Ju(t, n), i = t.defaultView, s = t.documentElement, o = t.body, a = [...t.querySelectorAll(zh)].filter((u) => {
|
|
2175
2175
|
const c = i == null ? void 0 : i.getComputedStyle(u), l = u.getBoundingClientRect();
|
|
2176
2176
|
return !u.hasAttribute("hidden") && u.getAttribute("aria-hidden") !== "true" && (c == null ? void 0 : c.display) !== "none" && (c == null ? void 0 : c.visibility) !== "hidden" && Number.parseFloat((c == null ? void 0 : c.opacity) || "1") !== 0 && l.width > 0 && l.height > 0;
|
|
2177
2177
|
}).map((u) => {
|
|
@@ -2197,7 +2197,7 @@ function Vh(t, e = []) {
|
|
|
2197
2197
|
});
|
|
2198
2198
|
}
|
|
2199
2199
|
function Bh(t, e = [], n = 6) {
|
|
2200
|
-
return [...
|
|
2200
|
+
return [...Ju(t, e.join(",")).churn.entries()].sort((i, s) => s[1] - i[1]).slice(0, Math.max(0, n)).map(([i, s]) => ({ target: i, count: s }));
|
|
2201
2201
|
}
|
|
2202
2202
|
async function ac(t, {
|
|
2203
2203
|
volatileSelectors: e = [],
|
|
@@ -2297,7 +2297,7 @@ function ea(t) {
|
|
|
2297
2297
|
return { name: s, sourceId: ((c = t[s]) == null ? void 0 : c.importPath) ?? s, props: o, primitiveProps: a, childrenText: u };
|
|
2298
2298
|
};
|
|
2299
2299
|
}
|
|
2300
|
-
const
|
|
2300
|
+
const Yu = "data-pygmalion-auto-pseudo", Xu = "data-pygmalion-auto-pseudos", Zu = "data-pygmalion-pseudo-events", Qu = [
|
|
2301
2301
|
"hover",
|
|
2302
2302
|
"focus-visible",
|
|
2303
2303
|
"active"
|
|
@@ -2329,12 +2329,12 @@ function Gh(t) {
|
|
|
2329
2329
|
const e = el(t);
|
|
2330
2330
|
return e.length <= 52 ? e : `${e.slice(0, 49).trimEnd()}…`;
|
|
2331
2331
|
}
|
|
2332
|
-
function
|
|
2332
|
+
function Jh(t, e) {
|
|
2333
2333
|
const n = e.replaceAll("\\", "\\\\").replaceAll('"', '\\"').replaceAll(`
|
|
2334
2334
|
`, "\\a ").replaceAll("\r", "\\d ");
|
|
2335
2335
|
return `[${t}="${n}"]`;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function Yh(t) {
|
|
2338
2338
|
const e = [];
|
|
2339
2339
|
let n = 0, r = 0, i = 0, s = "";
|
|
2340
2340
|
for (let o = 0; o < t.length; o += 1) {
|
|
@@ -2439,7 +2439,7 @@ function tp(t) {
|
|
|
2439
2439
|
kt.lastIndex = 0;
|
|
2440
2440
|
const u = typeof a == "string" && kt.test(a);
|
|
2441
2441
|
if (kt.lastIndex = 0, u) {
|
|
2442
|
-
for (const l of
|
|
2442
|
+
for (const l of Yh(a)) {
|
|
2443
2443
|
kt.lastIndex = 0;
|
|
2444
2444
|
const d = new Set(
|
|
2445
2445
|
[...l.matchAll(kt)].map(
|
|
@@ -2512,7 +2512,7 @@ function rp(t, e) {
|
|
|
2512
2512
|
for (const s of n) {
|
|
2513
2513
|
const o = e.getAttribute(s);
|
|
2514
2514
|
if (!o) continue;
|
|
2515
|
-
const a =
|
|
2515
|
+
const a = Jh(s, o);
|
|
2516
2516
|
try {
|
|
2517
2517
|
const c = Array.from(t.querySelectorAll(a)).indexOf(e);
|
|
2518
2518
|
if (c >= 0) return { selector: a, index: c };
|
|
@@ -2587,7 +2587,7 @@ function ap(t, e) {
|
|
|
2587
2587
|
}
|
|
2588
2588
|
const l = c ? s.get(c) : null;
|
|
2589
2589
|
l == null || l.setAttribute(
|
|
2590
|
-
|
|
2590
|
+
Yu,
|
|
2591
2591
|
JSON.stringify(u)
|
|
2592
2592
|
);
|
|
2593
2593
|
}
|
|
@@ -2609,7 +2609,7 @@ function nl(t) {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
function cp(t) {
|
|
2611
2611
|
var n;
|
|
2612
|
-
const e = (n = t.domAttributes) == null ? void 0 : n[
|
|
2612
|
+
const e = (n = t.domAttributes) == null ? void 0 : n[Yu];
|
|
2613
2613
|
if (!e) return null;
|
|
2614
2614
|
try {
|
|
2615
2615
|
return nl(JSON.parse(e));
|
|
@@ -3931,15 +3931,15 @@ ${l.join(`
|
|
|
3931
3931
|
R.observe(m.body, { childList: !0, subtree: !0, attributes: !0, characterData: !0 });
|
|
3932
3932
|
try {
|
|
3933
3933
|
await new Promise(($) => {
|
|
3934
|
-
const
|
|
3934
|
+
const T = () => {
|
|
3935
3935
|
const E = Date.now(), P = m.body.querySelectorAll("*").length;
|
|
3936
3936
|
if (P !== p && (p = P, v = E), P >= b && E - v >= f || E - S >= h) {
|
|
3937
3937
|
$();
|
|
3938
3938
|
return;
|
|
3939
3939
|
}
|
|
3940
|
-
w.setTimeout(
|
|
3940
|
+
w.setTimeout(T, 100);
|
|
3941
3941
|
};
|
|
3942
|
-
w.setTimeout(
|
|
3942
|
+
w.setTimeout(T, 100);
|
|
3943
3943
|
});
|
|
3944
3944
|
} finally {
|
|
3945
3945
|
R.disconnect();
|
|
@@ -4408,7 +4408,7 @@ function ra(t) {
|
|
|
4408
4408
|
return e = !0, t.apply(this, arguments);
|
|
4409
4409
|
};
|
|
4410
4410
|
}
|
|
4411
|
-
var
|
|
4411
|
+
var Jn = function() {
|
|
4412
4412
|
};
|
|
4413
4413
|
function De(t) {
|
|
4414
4414
|
return typeof t == "function";
|
|
@@ -4423,11 +4423,11 @@ function hn(t) {
|
|
|
4423
4423
|
}
|
|
4424
4424
|
return !1;
|
|
4425
4425
|
}
|
|
4426
|
-
function
|
|
4426
|
+
function Ji(t) {
|
|
4427
4427
|
return t !== null && typeof t == "object";
|
|
4428
4428
|
}
|
|
4429
4429
|
function nt(t) {
|
|
4430
|
-
if (!
|
|
4430
|
+
if (!Ji(t))
|
|
4431
4431
|
return !1;
|
|
4432
4432
|
var e = Object.getPrototypeOf(t);
|
|
4433
4433
|
if (e == null)
|
|
@@ -4458,21 +4458,21 @@ function bl(t, e, n) {
|
|
|
4458
4458
|
function Ln(t, e) {
|
|
4459
4459
|
var n = "isMobX" + t;
|
|
4460
4460
|
return e.prototype[n] = !0, function(r) {
|
|
4461
|
-
return
|
|
4461
|
+
return Ji(r) && r[n] === !0;
|
|
4462
4462
|
};
|
|
4463
4463
|
}
|
|
4464
4464
|
function rr(t) {
|
|
4465
4465
|
return t != null && Object.prototype.toString.call(t) === "[object Map]";
|
|
4466
4466
|
}
|
|
4467
|
-
function
|
|
4467
|
+
function Jp(t) {
|
|
4468
4468
|
var e = Object.getPrototypeOf(t), n = Object.getPrototypeOf(e), r = Object.getPrototypeOf(n);
|
|
4469
4469
|
return r === null;
|
|
4470
4470
|
}
|
|
4471
|
-
function
|
|
4471
|
+
function Jt(t) {
|
|
4472
4472
|
return t != null && Object.prototype.toString.call(t) === "[object Set]";
|
|
4473
4473
|
}
|
|
4474
4474
|
var wl = typeof Object.getOwnPropertySymbols < "u";
|
|
4475
|
-
function
|
|
4475
|
+
function Yp(t) {
|
|
4476
4476
|
var e = Object.keys(t);
|
|
4477
4477
|
if (!wl)
|
|
4478
4478
|
return e;
|
|
@@ -4531,7 +4531,7 @@ function ir(t, e, n) {
|
|
|
4531
4531
|
writable: !1
|
|
4532
4532
|
}), t;
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function Yn(t, e) {
|
|
4535
4535
|
var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
4536
4536
|
if (n) return (n = n.call(t)).next.bind(n);
|
|
4537
4537
|
if (Array.isArray(t) || (n = rm(t)) || e) {
|
|
@@ -4662,7 +4662,7 @@ function sm(t) {
|
|
|
4662
4662
|
function $r(t) {
|
|
4663
4663
|
return typeof t == "object" && typeof t.kind == "string";
|
|
4664
4664
|
}
|
|
4665
|
-
function
|
|
4665
|
+
function Yi(t, e) {
|
|
4666
4666
|
process.env.NODE_ENV !== "production" && !e.includes(t.kind) && ne("The decorator applied to '" + String(t.name) + "' cannot be used on a " + t.kind + " element");
|
|
4667
4667
|
}
|
|
4668
4668
|
var he = /* @__PURE__ */ Symbol("mobx administration"), pn = /* @__PURE__ */ (function() {
|
|
@@ -4715,9 +4715,9 @@ pn.isPendingUnobservationMask_ = 2;
|
|
|
4715
4715
|
pn.diffValueMask_ = 4;
|
|
4716
4716
|
var sa = /* @__PURE__ */ Ln("Atom", pn);
|
|
4717
4717
|
function Il(t, e, n) {
|
|
4718
|
-
e === void 0 && (e =
|
|
4718
|
+
e === void 0 && (e = Jn), n === void 0 && (n = Jn);
|
|
4719
4719
|
var r = new pn(t);
|
|
4720
|
-
return e !==
|
|
4720
|
+
return e !== Jn && wg(r, e), n !== Jn && Wl(r, n), r;
|
|
4721
4721
|
}
|
|
4722
4722
|
function om(t, e) {
|
|
4723
4723
|
return t === e;
|
|
@@ -4744,7 +4744,7 @@ function Nn(t, e, n) {
|
|
|
4744
4744
|
name: n
|
|
4745
4745
|
}) : rr(t) ? ze.map(t, {
|
|
4746
4746
|
name: n
|
|
4747
|
-
}) :
|
|
4747
|
+
}) : Jt(t) ? ze.set(t, {
|
|
4748
4748
|
name: n
|
|
4749
4749
|
}) : typeof t == "function" && !Tn(t) && !Er(t) ? yl(t) ? tr(t) : Ar(n, t) : t;
|
|
4750
4750
|
}
|
|
@@ -4766,7 +4766,7 @@ function lm(t, e, n) {
|
|
|
4766
4766
|
name: n,
|
|
4767
4767
|
deep: !1
|
|
4768
4768
|
});
|
|
4769
|
-
if (
|
|
4769
|
+
if (Jt(t))
|
|
4770
4770
|
return ze.set(t, {
|
|
4771
4771
|
name: n,
|
|
4772
4772
|
deep: !1
|
|
@@ -4808,7 +4808,7 @@ function pm(t, e, n, r) {
|
|
|
4808
4808
|
return t.defineProperty_(e, i, r);
|
|
4809
4809
|
}
|
|
4810
4810
|
function mm(t, e) {
|
|
4811
|
-
process.env.NODE_ENV !== "production" &&
|
|
4811
|
+
process.env.NODE_ENV !== "production" && Yi(e, ["method", "field"]);
|
|
4812
4812
|
var n = e.kind, r = e.name, i = e.addInitializer, s = this, o = function(c) {
|
|
4813
4813
|
var l, d, f, h;
|
|
4814
4814
|
return Rn((l = (d = s.options_) == null ? void 0 : d.name) != null ? l : r.toString(), c, (f = (h = s.options_) == null ? void 0 : h.autoAction) != null ? f : !1);
|
|
@@ -4885,7 +4885,7 @@ function ym(t, e, n, r) {
|
|
|
4885
4885
|
}
|
|
4886
4886
|
function bm(t, e) {
|
|
4887
4887
|
var n;
|
|
4888
|
-
process.env.NODE_ENV !== "production" &&
|
|
4888
|
+
process.env.NODE_ENV !== "production" && Yi(e, ["method"]);
|
|
4889
4889
|
var r = e.name, i = e.addInitializer;
|
|
4890
4890
|
return Er(t) || (t = tr(t)), (n = this.options_) != null && n.bound && i(function() {
|
|
4891
4891
|
var s = this, o = s[r].bind(s);
|
|
@@ -4935,7 +4935,7 @@ function _m(t, e, n, r) {
|
|
|
4935
4935
|
}), r);
|
|
4936
4936
|
}
|
|
4937
4937
|
function Im(t, e) {
|
|
4938
|
-
process.env.NODE_ENV !== "production" &&
|
|
4938
|
+
process.env.NODE_ENV !== "production" && Yi(e, ["getter"]);
|
|
4939
4939
|
var n = this, r = e.name, i = e.addInitializer, s;
|
|
4940
4940
|
function o(a, u) {
|
|
4941
4941
|
var c = en({}, n.options_, {
|
|
@@ -4987,7 +4987,7 @@ function xm(t, e) {
|
|
|
4987
4987
|
if (process.env.NODE_ENV !== "production") {
|
|
4988
4988
|
if (e.kind === "field")
|
|
4989
4989
|
throw ne("Please use `@observable accessor " + String(e.name) + "` instead of `@observable " + String(e.name) + "`");
|
|
4990
|
-
|
|
4990
|
+
Yi(e, ["accessor"]);
|
|
4991
4991
|
}
|
|
4992
4992
|
var n = this, r = e.kind, i = e.name;
|
|
4993
4993
|
if (r !== "accessor")
|
|
@@ -5112,7 +5112,7 @@ function Ml(t, e, n) {
|
|
|
5112
5112
|
Rr(t, e, Eo);
|
|
5113
5113
|
return;
|
|
5114
5114
|
}
|
|
5115
|
-
return Or(t) ? t : nt(t) ? ze.object(t, e, n) : Array.isArray(t) ? ze.array(t, e) : rr(t) ? ze.map(t, e) :
|
|
5115
|
+
return Or(t) ? t : nt(t) ? ze.object(t, e, n) : Array.isArray(t) ? ze.array(t, e) : rr(t) ? ze.map(t, e) : Jt(t) ? ze.set(t, e) : typeof t == "object" && t !== null ? t : ze.box(t, e);
|
|
5116
5116
|
}
|
|
5117
5117
|
gl(Ml, Cl);
|
|
5118
5118
|
var Hm = {
|
|
@@ -5134,7 +5134,7 @@ var Hm = {
|
|
|
5134
5134
|
},
|
|
5135
5135
|
object: function(e, n, r) {
|
|
5136
5136
|
return mn(function() {
|
|
5137
|
-
return
|
|
5137
|
+
return Jl(W.useProxies === !1 || (r == null ? void 0 : r.proxy) === !1 ? zn({}, r) : $g({}, r), e, n);
|
|
5138
5138
|
});
|
|
5139
5139
|
},
|
|
5140
5140
|
ref: /* @__PURE__ */ Vt(Lm),
|
|
@@ -5179,7 +5179,7 @@ function Rl(t, e, n, r, i) {
|
|
|
5179
5179
|
} catch (o) {
|
|
5180
5180
|
throw s.error_ = o, o;
|
|
5181
5181
|
} finally {
|
|
5182
|
-
|
|
5182
|
+
Jm(s);
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
5185
|
function Gm(t, e, n, r) {
|
|
@@ -5210,12 +5210,12 @@ function Gm(t, e, n, r) {
|
|
|
5210
5210
|
};
|
|
5211
5211
|
return Di = d.actionId_, d;
|
|
5212
5212
|
}
|
|
5213
|
-
function
|
|
5213
|
+
function Jm(t) {
|
|
5214
5214
|
Di !== t.actionId_ && ne(30), Di = t.parentActionId_, t.error_ !== void 0 && (W.suppressReactionErrors = !0), ts(t.prevAllowStateChanges_), yr(t.prevAllowStateReads_), vt(), t.runAsAction_ && Qt(t.prevDerivation_), process.env.NODE_ENV !== "production" && t.notifySpy_ && lt({
|
|
5215
5215
|
time: Date.now() - t.startTime_
|
|
5216
5216
|
}), W.suppressReactionErrors = !1;
|
|
5217
5217
|
}
|
|
5218
|
-
function
|
|
5218
|
+
function Ym(t, e) {
|
|
5219
5219
|
var n = es(t);
|
|
5220
5220
|
try {
|
|
5221
5221
|
return e();
|
|
@@ -5633,7 +5633,7 @@ function og(t) {
|
|
|
5633
5633
|
function zl(t, e) {
|
|
5634
5634
|
if (console.log("[mobx.trace] '" + t.name_ + "' is invalidated due to a change in: '" + e.name_ + "'"), t.isTracing_ === bt.BREAK) {
|
|
5635
5635
|
var n = [];
|
|
5636
|
-
Vl(
|
|
5636
|
+
Vl(Yl(t), n, 1), new Function(`debugger;
|
|
5637
5637
|
/*
|
|
5638
5638
|
Tracing '` + t.name_ + `'
|
|
5639
5639
|
|
|
@@ -5912,7 +5912,7 @@ function Ro(t, e, n) {
|
|
|
5912
5912
|
if (d = !1, !b.isDisposed) {
|
|
5913
5913
|
var m = !1, w = f;
|
|
5914
5914
|
b.track(function() {
|
|
5915
|
-
var S =
|
|
5915
|
+
var S = Ym(!1, function() {
|
|
5916
5916
|
return t(b);
|
|
5917
5917
|
});
|
|
5918
5918
|
m = l || !h(f, S), f = S;
|
|
@@ -5956,7 +5956,7 @@ function Ig(t) {
|
|
|
5956
5956
|
i in t && (W[i] = !!t[i]);
|
|
5957
5957
|
}), W.allowStateReads = !W.observableRequiresReaction, process.env.NODE_ENV !== "production" && W.disableErrorBoundaries === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), t.reactionScheduler && cg(t.reactionScheduler);
|
|
5958
5958
|
}
|
|
5959
|
-
function
|
|
5959
|
+
function Jl(t, e, n, r) {
|
|
5960
5960
|
process.env.NODE_ENV !== "production" && (arguments.length > 4 && ne("'extendObservable' expected 2-4 arguments"), typeof t != "object" && ne("'extendObservable' expects an object as first argument"), nn(t) && ne("'extendObservable' should not be used on maps, use map.merge instead"), nt(e) || ne("'extendObservable' only accepts plain objects as second argument"), (Or(e) || Or(n)) && ne("Extending an object with another observable (object) is not supported"));
|
|
5961
5961
|
var i = Xp(e);
|
|
5962
5962
|
return mn(function() {
|
|
@@ -5971,7 +5971,7 @@ function Yl(t, e, n, r) {
|
|
|
5971
5971
|
});
|
|
5972
5972
|
}), t;
|
|
5973
5973
|
}
|
|
5974
|
-
function
|
|
5974
|
+
function Yl(t, e) {
|
|
5975
5975
|
return Xl(Dn(t, e));
|
|
5976
5976
|
}
|
|
5977
5977
|
function Xl(t) {
|
|
@@ -6047,7 +6047,7 @@ var Og = 0, xg = /* @__PURE__ */ (function(t) {
|
|
|
6047
6047
|
try {
|
|
6048
6048
|
f && Cc(f);
|
|
6049
6049
|
var b = l.return(void 0), g = Promise.resolve(b.value);
|
|
6050
|
-
g.then(
|
|
6050
|
+
g.then(Jn, Jn), Cc(g), d(new xg());
|
|
6051
6051
|
} catch (m) {
|
|
6052
6052
|
d(m);
|
|
6053
6053
|
}
|
|
@@ -6103,7 +6103,7 @@ function Ng(t) {
|
|
|
6103
6103
|
return Dn(t[0], t[1]);
|
|
6104
6104
|
}
|
|
6105
6105
|
}
|
|
6106
|
-
function
|
|
6106
|
+
function Yt(t, e) {
|
|
6107
6107
|
e === void 0 && (e = void 0), gt();
|
|
6108
6108
|
try {
|
|
6109
6109
|
return t.apply(e);
|
|
@@ -6193,7 +6193,7 @@ function Tg(t, e, n) {
|
|
|
6193
6193
|
}
|
|
6194
6194
|
var Ms = /* @__PURE__ */ Symbol("mobx-keys");
|
|
6195
6195
|
function la(t, e, n) {
|
|
6196
|
-
return process.env.NODE_ENV !== "production" && (!nt(t) && !nt(Object.getPrototypeOf(t)) && ne("'makeAutoObservable' can only be used for classes that don't have a superclass"), kn(t) && ne("makeAutoObservable can only be used on objects not already made observable")), nt(t) ?
|
|
6196
|
+
return process.env.NODE_ENV !== "production" && (!nt(t) && !nt(Object.getPrototypeOf(t)) && ne("'makeAutoObservable' can only be used for classes that don't have a superclass"), kn(t) && ne("makeAutoObservable can only be used on objects not already made observable")), nt(t) ? Jl(t, t, e, n) : (mn(function() {
|
|
6197
6197
|
var r = zn(t, n)[he];
|
|
6198
6198
|
if (!t[Ms]) {
|
|
6199
6199
|
var i = Object.getPrototypeOf(t), s = new Set([].concat(er(t), er(i)));
|
|
@@ -6484,7 +6484,7 @@ function ed(t) {
|
|
|
6484
6484
|
}
|
|
6485
6485
|
var Lg = /* @__PURE__ */ Ln("ObservableArrayAdministration", da);
|
|
6486
6486
|
function Fr(t) {
|
|
6487
|
-
return
|
|
6487
|
+
return Ji(t) && Lg(t[he]);
|
|
6488
6488
|
}
|
|
6489
6489
|
var jg = {}, dn = "add", zi = "delete", td = /* @__PURE__ */ (function() {
|
|
6490
6490
|
function t(n, r, i) {
|
|
@@ -6542,7 +6542,7 @@ var jg = {}, dn = "add", zi = "delete", td = /* @__PURE__ */ (function() {
|
|
|
6542
6542
|
oldValue: this.data_.get(r).value_,
|
|
6543
6543
|
name: r
|
|
6544
6544
|
} : null;
|
|
6545
|
-
return process.env.NODE_ENV !== "production" && o && ut(u),
|
|
6545
|
+
return process.env.NODE_ENV !== "production" && o && ut(u), Yt(function() {
|
|
6546
6546
|
var c;
|
|
6547
6547
|
i.keysAtom_.reportChanged(), (c = i.hasMap_.get(r)) == null || c.setNewValue_(!1);
|
|
6548
6548
|
var l = i.data_.get(r);
|
|
@@ -6566,7 +6566,7 @@ var jg = {}, dn = "add", zi = "delete", td = /* @__PURE__ */ (function() {
|
|
|
6566
6566
|
}
|
|
6567
6567
|
}, e.addValue_ = function(r, i) {
|
|
6568
6568
|
var s = this;
|
|
6569
|
-
jt(this.keysAtom_),
|
|
6569
|
+
jt(this.keysAtom_), Yt(function() {
|
|
6570
6570
|
var c, l = new Mn(i, s.enhancer_, process.env.NODE_ENV !== "production" ? s.name_ + "." + _o(r) : "ObservableMap.key", !1);
|
|
6571
6571
|
s.data_.set(r, l), i = l.value_, (c = s.hasMap_.get(r)) == null || c.setNewValue_(!0), s.keysAtom_.reportChanged();
|
|
6572
6572
|
});
|
|
@@ -6614,27 +6614,27 @@ var jg = {}, dn = "add", zi = "delete", td = /* @__PURE__ */ (function() {
|
|
|
6614
6614
|
}, e[Symbol.iterator] = function() {
|
|
6615
6615
|
return this.entries();
|
|
6616
6616
|
}, e.forEach = function(r, i) {
|
|
6617
|
-
for (var s =
|
|
6617
|
+
for (var s = Yn(this), o; !(o = s()).done; ) {
|
|
6618
6618
|
var a = o.value, u = a[0], c = a[1];
|
|
6619
6619
|
r.call(i, c, u, this);
|
|
6620
6620
|
}
|
|
6621
6621
|
}, e.merge = function(r) {
|
|
6622
6622
|
var i = this;
|
|
6623
|
-
return nn(r) && (r = new Map(r)),
|
|
6624
|
-
nt(r) ?
|
|
6623
|
+
return nn(r) && (r = new Map(r)), Yt(function() {
|
|
6624
|
+
nt(r) ? Yp(r).forEach(function(s) {
|
|
6625
6625
|
return i.set(s, r[s]);
|
|
6626
6626
|
}) : Array.isArray(r) ? r.forEach(function(s) {
|
|
6627
6627
|
var o = s[0], a = s[1];
|
|
6628
6628
|
return i.set(o, a);
|
|
6629
|
-
}) : rr(r) ? (
|
|
6629
|
+
}) : rr(r) ? (Jp(r) || ne(19, r), r.forEach(function(s, o) {
|
|
6630
6630
|
return i.set(o, s);
|
|
6631
6631
|
})) : r != null && ne(20, r);
|
|
6632
6632
|
}), this;
|
|
6633
6633
|
}, e.clear = function() {
|
|
6634
6634
|
var r = this;
|
|
6635
|
-
|
|
6635
|
+
Yt(function() {
|
|
6636
6636
|
aa(function() {
|
|
6637
|
-
for (var i =
|
|
6637
|
+
for (var i = Yn(r.keys()), s; !(s = i()).done; ) {
|
|
6638
6638
|
var o = s.value;
|
|
6639
6639
|
r.delete(o);
|
|
6640
6640
|
}
|
|
@@ -6642,8 +6642,8 @@ var jg = {}, dn = "add", zi = "delete", td = /* @__PURE__ */ (function() {
|
|
|
6642
6642
|
});
|
|
6643
6643
|
}, e.replace = function(r) {
|
|
6644
6644
|
var i = this;
|
|
6645
|
-
return
|
|
6646
|
-
for (var s = zg(r), o = /* @__PURE__ */ new Map(), a = !1, u =
|
|
6645
|
+
return Yt(function() {
|
|
6646
|
+
for (var s = zg(r), o = /* @__PURE__ */ new Map(), a = !1, u = Yn(i.data_.keys()), c; !(c = u()).done; ) {
|
|
6647
6647
|
var l = c.value;
|
|
6648
6648
|
if (!s.has(l)) {
|
|
6649
6649
|
var d = i.delete(l);
|
|
@@ -6655,7 +6655,7 @@ var jg = {}, dn = "add", zi = "delete", td = /* @__PURE__ */ (function() {
|
|
|
6655
6655
|
}
|
|
6656
6656
|
}
|
|
6657
6657
|
}
|
|
6658
|
-
for (var h =
|
|
6658
|
+
for (var h = Yn(s.entries()), b; !(b = h()).done; ) {
|
|
6659
6659
|
var g = b.value, m = g[0], w = g[1], S = i.data_.has(m);
|
|
6660
6660
|
if (i.set(m, w), i.data_.has(m)) {
|
|
6661
6661
|
var v = i.data_.get(m);
|
|
@@ -6725,16 +6725,16 @@ var Vg = {}, nd = /* @__PURE__ */ (function() {
|
|
|
6725
6725
|
return this.dehancer !== void 0 ? this.dehancer(r) : r;
|
|
6726
6726
|
}, e.clear = function() {
|
|
6727
6727
|
var r = this;
|
|
6728
|
-
|
|
6728
|
+
Yt(function() {
|
|
6729
6729
|
aa(function() {
|
|
6730
|
-
for (var i =
|
|
6730
|
+
for (var i = Yn(r.data_.values()), s; !(s = i()).done; ) {
|
|
6731
6731
|
var o = s.value;
|
|
6732
6732
|
r.delete(o);
|
|
6733
6733
|
}
|
|
6734
6734
|
});
|
|
6735
6735
|
});
|
|
6736
6736
|
}, e.forEach = function(r, i) {
|
|
6737
|
-
for (var s =
|
|
6737
|
+
for (var s = Yn(this), o; !(o = s()).done; ) {
|
|
6738
6738
|
var a = o.value;
|
|
6739
6739
|
r.call(i, a, a, this);
|
|
6740
6740
|
}
|
|
@@ -6751,7 +6751,7 @@ var Vg = {}, nd = /* @__PURE__ */ (function() {
|
|
|
6751
6751
|
r = s.newValue;
|
|
6752
6752
|
}
|
|
6753
6753
|
if (!this.has(r)) {
|
|
6754
|
-
|
|
6754
|
+
Yt(function() {
|
|
6755
6755
|
i.data_.add(i.enhancer_(r, void 0)), i.atom_.reportChanged();
|
|
6756
6756
|
});
|
|
6757
6757
|
var o = process.env.NODE_ENV !== "production" && He(), a = Ot(this), u = a || o ? {
|
|
@@ -6783,7 +6783,7 @@ var Vg = {}, nd = /* @__PURE__ */ (function() {
|
|
|
6783
6783
|
object: this,
|
|
6784
6784
|
oldValue: r
|
|
6785
6785
|
} : null;
|
|
6786
|
-
return o && process.env.NODE_ENV !== "production" && ut(u),
|
|
6786
|
+
return o && process.env.NODE_ENV !== "production" && ut(u), Yt(function() {
|
|
6787
6787
|
i.atom_.reportChanged(), i.data_.delete(r);
|
|
6788
6788
|
}), a && xt(this, u), o && process.env.NODE_ENV !== "production" && lt(), !0;
|
|
6789
6789
|
}
|
|
@@ -6822,19 +6822,19 @@ var Vg = {}, nd = /* @__PURE__ */ (function() {
|
|
|
6822
6822
|
}
|
|
6823
6823
|
});
|
|
6824
6824
|
}, e.intersection = function(r) {
|
|
6825
|
-
if (
|
|
6825
|
+
if (Jt(r) && !Lt(r))
|
|
6826
6826
|
return r.intersection(this);
|
|
6827
6827
|
var i = new Set(this);
|
|
6828
6828
|
return i.intersection(r);
|
|
6829
6829
|
}, e.union = function(r) {
|
|
6830
|
-
if (
|
|
6830
|
+
if (Jt(r) && !Lt(r))
|
|
6831
6831
|
return r.union(this);
|
|
6832
6832
|
var i = new Set(this);
|
|
6833
6833
|
return i.union(r);
|
|
6834
6834
|
}, e.difference = function(r) {
|
|
6835
6835
|
return new Set(this).difference(r);
|
|
6836
6836
|
}, e.symmetricDifference = function(r) {
|
|
6837
|
-
if (
|
|
6837
|
+
if (Jt(r) && !Lt(r))
|
|
6838
6838
|
return r.symmetricDifference(this);
|
|
6839
6839
|
var i = new Set(this);
|
|
6840
6840
|
return i.symmetricDifference(r);
|
|
@@ -6843,16 +6843,16 @@ var Vg = {}, nd = /* @__PURE__ */ (function() {
|
|
|
6843
6843
|
}, e.isSupersetOf = function(r) {
|
|
6844
6844
|
return new Set(this).isSupersetOf(r);
|
|
6845
6845
|
}, e.isDisjointFrom = function(r) {
|
|
6846
|
-
if (
|
|
6846
|
+
if (Jt(r) && !Lt(r))
|
|
6847
6847
|
return r.isDisjointFrom(this);
|
|
6848
6848
|
var i = new Set(this);
|
|
6849
6849
|
return i.isDisjointFrom(r);
|
|
6850
6850
|
}, e.replace = function(r) {
|
|
6851
6851
|
var i = this;
|
|
6852
|
-
return Lt(r) && (r = new Set(r)),
|
|
6852
|
+
return Lt(r) && (r = new Set(r)), Yt(function() {
|
|
6853
6853
|
Array.isArray(r) ? (i.clear(), r.forEach(function(s) {
|
|
6854
6854
|
return i.add(s);
|
|
6855
|
-
})) :
|
|
6855
|
+
})) : Jt(r) ? (i.clear(), r.forEach(function(s) {
|
|
6856
6856
|
return i.add(s);
|
|
6857
6857
|
})) : r != null && ne("Cannot initialize set from " + r);
|
|
6858
6858
|
}), this;
|
|
@@ -7159,7 +7159,7 @@ function kc(t) {
|
|
|
7159
7159
|
});
|
|
7160
7160
|
}
|
|
7161
7161
|
function kn(t) {
|
|
7162
|
-
return
|
|
7162
|
+
return Ji(t) ? Bg(t[he]) : !1;
|
|
7163
7163
|
}
|
|
7164
7164
|
function Dc(t, e, n) {
|
|
7165
7165
|
var r;
|
|
@@ -7387,13 +7387,13 @@ function To(t, e, n, r, i) {
|
|
|
7387
7387
|
return r.pop(), i.pop(), !0;
|
|
7388
7388
|
}
|
|
7389
7389
|
function jc(t) {
|
|
7390
|
-
return Fr(t) ? t.slice() : rr(t) || nn(t) ||
|
|
7390
|
+
return Fr(t) ? t.slice() : rr(t) || nn(t) || Jt(t) || Lt(t) ? Array.from(t.entries()) : t;
|
|
7391
7391
|
}
|
|
7392
|
-
var zc, Gg = /* @__PURE__ */ Wi(),
|
|
7392
|
+
var zc, Gg = /* @__PURE__ */ Wi(), Jg = ((zc = Gg.Iterator) == null ? void 0 : zc.prototype) || {};
|
|
7393
7393
|
function pa(t) {
|
|
7394
|
-
return t[Symbol.iterator] =
|
|
7394
|
+
return t[Symbol.iterator] = Yg, Object.assign(Object.create(Jg), t);
|
|
7395
7395
|
}
|
|
7396
|
-
function
|
|
7396
|
+
function Yg() {
|
|
7397
7397
|
return this;
|
|
7398
7398
|
}
|
|
7399
7399
|
function ad(t) {
|
|
@@ -7424,7 +7424,7 @@ function Zg(t) {
|
|
|
7424
7424
|
t || (t = Xg, process.env.NODE_ENV !== "production" && console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")), Ig({ reactionScheduler: t });
|
|
7425
7425
|
}
|
|
7426
7426
|
function Qg(t) {
|
|
7427
|
-
return
|
|
7427
|
+
return Yl(t);
|
|
7428
7428
|
}
|
|
7429
7429
|
var ev = 1e4, tv = 1e4, nv = (
|
|
7430
7430
|
/** @class */
|
|
@@ -7927,7 +7927,7 @@ const Fs = "/__pygmalion-qa", si = "/__pygmalion-storyboard", It = Object.freeze
|
|
|
7927
7927
|
sourceUsage: `${si}/source-usage`,
|
|
7928
7928
|
/** Component branches scanned from one source file. */
|
|
7929
7929
|
componentBranches: `${si}/component-branches`
|
|
7930
|
-
}), fd = "/progress",
|
|
7930
|
+
}), fd = "/progress", Jc = "/catalog", Cv = "__pygmalion_environment", Mv = Object.freeze({
|
|
7931
7931
|
/** A frame the designer selected: whatever else is queued waits. */
|
|
7932
7932
|
selected: 0,
|
|
7933
7933
|
/** The canvas in front of the designer being filled. */
|
|
@@ -7947,17 +7947,17 @@ function Nv(t, e, n) {
|
|
|
7947
7947
|
throw new Error(`Pygmalion ${n} must start and end with "/"`);
|
|
7948
7948
|
return r;
|
|
7949
7949
|
}
|
|
7950
|
-
function
|
|
7950
|
+
function Yc(t, e, n) {
|
|
7951
7951
|
return t == null ? null : t === !0 ? e : un(t, e, n);
|
|
7952
7952
|
}
|
|
7953
7953
|
function Rv(t = {}) {
|
|
7954
|
-
const e =
|
|
7954
|
+
const e = Yc(
|
|
7955
7955
|
t.previewArtifact,
|
|
7956
7956
|
It.previewArtifact,
|
|
7957
7957
|
"endpoints.previewArtifact"
|
|
7958
|
-
), n = e == null ? null : `${e}${
|
|
7958
|
+
), n = e == null ? null : `${e}${Jc}`, r = t.previewCatalog === void 0 ? n : Yc(
|
|
7959
7959
|
t.previewCatalog,
|
|
7960
|
-
n ?? `${It.previewArtifact}${
|
|
7960
|
+
n ?? `${It.previewArtifact}${Jc}`,
|
|
7961
7961
|
"endpoints.previewCatalog"
|
|
7962
7962
|
);
|
|
7963
7963
|
return Object.freeze({
|
|
@@ -8260,8 +8260,8 @@ function Hv(t, e) {
|
|
|
8260
8260
|
}, m = (() => null);
|
|
8261
8261
|
r.pushState = d, r.replaceState = f, r.back = h, r.forward = b, r.go = g, t.open = m;
|
|
8262
8262
|
const w = (_) => {
|
|
8263
|
-
var
|
|
8264
|
-
const R = _.target, M = (
|
|
8263
|
+
var T;
|
|
8264
|
+
const R = _.target, M = (T = R == null ? void 0 : R.closest) == null ? void 0 : T.call(R, "a[href]");
|
|
8265
8265
|
if (!M) return;
|
|
8266
8266
|
(M.target && M.target.toLowerCase() !== "_self" || !Ls(
|
|
8267
8267
|
n,
|
|
@@ -8353,13 +8353,13 @@ function Uv() {
|
|
|
8353
8353
|
j instanceof v.HTMLElement && (j.scrollHeight > j.clientHeight || j.scrollWidth > j.clientWidth) && (p = j), R();
|
|
8354
8354
|
}, $ = (P) => {
|
|
8355
8355
|
!(P instanceof v.KeyboardEvent) || P.key !== "Escape" || (P.preventDefault(), P.stopImmediatePropagation(), o(m));
|
|
8356
|
-
},
|
|
8356
|
+
}, T = (P) => {
|
|
8357
8357
|
var K;
|
|
8358
8358
|
const j = P.target;
|
|
8359
8359
|
(K = j == null ? void 0 : j.closest) != null && K.call(j, "a[href]") && P.preventDefault();
|
|
8360
8360
|
}, E = (P) => P.preventDefault();
|
|
8361
|
-
return w.addEventListener("scroll", M, !0), w.addEventListener("keydown", $, !0), w.addEventListener("click",
|
|
8362
|
-
w.removeEventListener("scroll", M, !0), w.removeEventListener("keydown", $, !0), w.removeEventListener("click",
|
|
8361
|
+
return w.addEventListener("scroll", M, !0), w.addEventListener("keydown", $, !0), w.addEventListener("click", T, !0), w.addEventListener("submit", E, !0), () => {
|
|
8362
|
+
w.removeEventListener("scroll", M, !0), w.removeEventListener("keydown", $, !0), w.removeEventListener("click", T, !0), w.removeEventListener("submit", E, !0);
|
|
8363
8363
|
};
|
|
8364
8364
|
}
|
|
8365
8365
|
}, "preview");
|
|
@@ -8395,14 +8395,14 @@ function Uv() {
|
|
|
8395
8395
|
const $ = Hv(
|
|
8396
8396
|
S,
|
|
8397
8397
|
v
|
|
8398
|
-
),
|
|
8398
|
+
), T = (P) => {
|
|
8399
8399
|
const j = P.target;
|
|
8400
8400
|
j != null && j.nodeType === 1 && (j.scrollHeight > j.clientHeight || j.scrollWidth > j.clientWidth) && (_ = j), M();
|
|
8401
8401
|
}, E = (P) => {
|
|
8402
8402
|
P.key === "Escape" && (P.preventDefault(), P.stopImmediatePropagation(), o(m));
|
|
8403
8403
|
};
|
|
8404
|
-
return v.addEventListener("scroll",
|
|
8405
|
-
$(), v.removeEventListener("scroll",
|
|
8404
|
+
return v.addEventListener("scroll", T, !0), S.addEventListener("resize", M), S.addEventListener("keydown", E, !0), () => {
|
|
8405
|
+
$(), v.removeEventListener("scroll", T, !0), S.removeEventListener("resize", M), S.removeEventListener("keydown", E, !0);
|
|
8406
8406
|
};
|
|
8407
8407
|
}
|
|
8408
8408
|
});
|
|
@@ -8705,7 +8705,7 @@ function In(t) {
|
|
|
8705
8705
|
function zs(t) {
|
|
8706
8706
|
return t.interactiveStateUsesDesiredState && t.interactiveStateId ? Xt(t.id, t.interactiveStateId) : In(t);
|
|
8707
8707
|
}
|
|
8708
|
-
function
|
|
8708
|
+
function Jv(t, e) {
|
|
8709
8709
|
const { sessions: n, surfaces: r } = e, i = {
|
|
8710
8710
|
calls: 0,
|
|
8711
8711
|
lastCanvas: "",
|
|
@@ -8744,10 +8744,10 @@ function Yv(t, e) {
|
|
|
8744
8744
|
) && X.push(de);
|
|
8745
8745
|
}
|
|
8746
8746
|
if (i.lastCandidates = X.length, X.length === 0) return 0;
|
|
8747
|
-
const
|
|
8747
|
+
const Y = t.store.pages.find(
|
|
8748
8748
|
(ge) => ge.id === t.store.activePageId
|
|
8749
8749
|
), oe = new Set(
|
|
8750
|
-
|
|
8750
|
+
Y ? [Y.importPageId ?? Y.id] : []
|
|
8751
8751
|
), me = V.materialize(Wv(X, oe));
|
|
8752
8752
|
return i.lastQueued = me, me;
|
|
8753
8753
|
}
|
|
@@ -8770,7 +8770,7 @@ function Yv(t, e) {
|
|
|
8770
8770
|
}
|
|
8771
8771
|
if (a = z ? { pageId: O.id, surfaceId: z } : null, O.route == null || O.importLayers !== !0 || O.interactiveStateId != null) return !1;
|
|
8772
8772
|
c.requested += 1;
|
|
8773
|
-
const X = O.importPageId ?? O.id,
|
|
8773
|
+
const X = O.importPageId ?? O.id, Y = z ? Qc(t.declarations, O, {
|
|
8774
8774
|
appOrigin: t.host.appOrigin,
|
|
8775
8775
|
id: `direct~warm:${O.id}`,
|
|
8776
8776
|
screenId: X,
|
|
@@ -8778,12 +8778,12 @@ function Yv(t, e) {
|
|
|
8778
8778
|
interactiveSurfaceId: z,
|
|
8779
8779
|
prewarmSurfacePageId: O.id
|
|
8780
8780
|
}) : null;
|
|
8781
|
-
if (
|
|
8782
|
-
if (n.warmInstanceServesPath(
|
|
8783
|
-
const _e = n.warmInstanceAtPathEnd(
|
|
8781
|
+
if (Y) {
|
|
8782
|
+
if (n.warmInstanceServesPath(Y)) {
|
|
8783
|
+
const _e = n.warmInstanceAtPathEnd(Y);
|
|
8784
8784
|
return _e && z && r.exposeInteractiveSessionSurface(z, _e), c.alreadyWarm += 1, !1;
|
|
8785
8785
|
}
|
|
8786
|
-
const Ie = p().materialize([
|
|
8786
|
+
const Ie = p().materialize([Y]) > 0;
|
|
8787
8787
|
return Ie && (c.queued += 1), Ie;
|
|
8788
8788
|
}
|
|
8789
8789
|
const oe = t.declarations.flowPathForScreen(X);
|
|
@@ -8838,10 +8838,10 @@ function Yv(t, e) {
|
|
|
8838
8838
|
Q.requested += 1;
|
|
8839
8839
|
const z = O.importPageId ?? O.id, X = t.declarations.flowPathForScreen(z);
|
|
8840
8840
|
if (!X) return !1;
|
|
8841
|
-
const
|
|
8841
|
+
const Y = /* @__PURE__ */ new Map();
|
|
8842
8842
|
for (const be of t.store.pages)
|
|
8843
|
-
be.route == null || be.importLayers !== !0 ||
|
|
8844
|
-
const oe = lr(t, X,
|
|
8843
|
+
be.route == null || be.importLayers !== !0 || Y.set(be.importPageId ?? be.id, be);
|
|
8844
|
+
const oe = lr(t, X, Y, q, t.host.appOrigin);
|
|
8845
8845
|
if (!oe)
|
|
8846
8846
|
return Q.resolvedNull += 1, !1;
|
|
8847
8847
|
const me = oe.waypoints.findIndex(
|
|
@@ -8905,7 +8905,7 @@ function Yv(t, e) {
|
|
|
8905
8905
|
throw new Error("The design import controller is not available.");
|
|
8906
8906
|
if (q.prepareScreenState) {
|
|
8907
8907
|
let X = !1;
|
|
8908
|
-
const
|
|
8908
|
+
const Y = async () => {
|
|
8909
8909
|
if (X || !V) return;
|
|
8910
8910
|
if (H.desiredState !== void 0) {
|
|
8911
8911
|
X = !0, V();
|
|
@@ -8918,12 +8918,12 @@ function Yv(t, e) {
|
|
|
8918
8918
|
}, oe = await q.prepareScreenState(O, H, {
|
|
8919
8919
|
defaultActionSettleMs: 0,
|
|
8920
8920
|
settlePolicy: "target-driven",
|
|
8921
|
-
onAfterInteractions:
|
|
8921
|
+
onAfterInteractions: Y
|
|
8922
8922
|
});
|
|
8923
8923
|
return oe.complete && H.desiredState !== void 0 && w.set(
|
|
8924
8924
|
O,
|
|
8925
8925
|
S(H.desiredState)
|
|
8926
|
-
), oe.complete && await
|
|
8926
|
+
), oe.complete && await Y(), oe;
|
|
8927
8927
|
}
|
|
8928
8928
|
const z = await q.prepareScreenCapture(O, H);
|
|
8929
8929
|
return z.complete && (V == null || V()), z;
|
|
@@ -8934,12 +8934,12 @@ function Yv(t, e) {
|
|
|
8934
8934
|
prepare: (O, H, q) => {
|
|
8935
8935
|
const V = q.prewarmSurfacePageId ? t.store.pages.find(
|
|
8936
8936
|
(oe) => oe.id === q.prewarmSurfacePageId
|
|
8937
|
-
) : null, z = a, X = z != null && (V == null ? void 0 : V.interactiveStateId) == null && z.pageId === q.prewarmSurfacePageId ? z.surfaceId : null,
|
|
8937
|
+
) : null, z = a, X = z != null && (V == null ? void 0 : V.interactiveStateId) == null && z.pageId === q.prewarmSurfacePageId ? z.surfaceId : null, Y = q.cacheKey ? q.interactiveSurfaceId ?? q.screenId : X;
|
|
8938
8938
|
return v(
|
|
8939
8939
|
O,
|
|
8940
8940
|
H,
|
|
8941
8941
|
t.declarations.getDesignImportController(),
|
|
8942
|
-
|
|
8942
|
+
Y ? () => r.exposeInteractiveSessionSurface(Y, O) : void 0
|
|
8943
8943
|
);
|
|
8944
8944
|
},
|
|
8945
8945
|
// The runner continues settling and serializing in the background after
|
|
@@ -8958,15 +8958,15 @@ function Yv(t, e) {
|
|
|
8958
8958
|
function R(O, H, q) {
|
|
8959
8959
|
const V = t.declarations.getDesignImportController();
|
|
8960
8960
|
if (!(V != null && V.prepareScreenState)) return !1;
|
|
8961
|
-
const z = H.iframe, X = S(O.desiredState),
|
|
8962
|
-
if ((
|
|
8961
|
+
const z = H.iframe, X = S(O.desiredState), Y = _.get(z);
|
|
8962
|
+
if ((Y == null ? void 0 : Y.cacheKey) === q)
|
|
8963
8963
|
return z.style.opacity = "1", z.style.zIndex = "12", z.dataset.pygmalionInteractiveSessionVisible = O.id, t.store.editMode && setTimeout(() => {
|
|
8964
8964
|
var be;
|
|
8965
|
-
if (((be = _.get(z)) == null ? void 0 : be.revision) !==
|
|
8965
|
+
if (((be = _.get(z)) == null ? void 0 : be.revision) !== Y.revision || z.isConnected === !1) return;
|
|
8966
8966
|
const ye = t.previews.serializeRoutePreview(z, t.host.appOrigin);
|
|
8967
8967
|
ye && t.previews.setRoutePreviewSnapshot(q, ye);
|
|
8968
8968
|
}, 0), !0;
|
|
8969
|
-
const oe = ((
|
|
8969
|
+
const oe = ((Y == null ? void 0 : Y.revision) ?? 0) + 1;
|
|
8970
8970
|
_.set(z, {
|
|
8971
8971
|
cacheKey: q,
|
|
8972
8972
|
revision: oe
|
|
@@ -9024,16 +9024,16 @@ function Yv(t, e) {
|
|
|
9024
9024
|
function M(O) {
|
|
9025
9025
|
m = O;
|
|
9026
9026
|
}
|
|
9027
|
-
const $ = /* @__PURE__ */ new Set(),
|
|
9027
|
+
const $ = /* @__PURE__ */ new Set(), T = /* @__PURE__ */ new Set();
|
|
9028
9028
|
function E(O) {
|
|
9029
9029
|
if (!$.has(O)) {
|
|
9030
9030
|
$.add(O);
|
|
9031
|
-
for (const H of
|
|
9031
|
+
for (const H of T) H();
|
|
9032
9032
|
}
|
|
9033
9033
|
}
|
|
9034
9034
|
function P(O, H, q = Qn(t, O, H, !0)) {
|
|
9035
9035
|
if (O.route == null || O.interactiveStateId == null) return !1;
|
|
9036
|
-
|
|
9036
|
+
F.requested += 1;
|
|
9037
9037
|
const V = O.importPageId ?? O.id, z = In(O), X = O.interactiveStateUsesDesiredState ? r.getInteractiveSessionSurface(
|
|
9038
9038
|
zs(O)
|
|
9039
9039
|
) : null;
|
|
@@ -9041,26 +9041,26 @@ function Yv(t, e) {
|
|
|
9041
9041
|
return $.delete(z), !0;
|
|
9042
9042
|
if (O.interactiveStateUsesDesiredState !== !0 && t.previews.hasExactRoutePreviewSnapshot(q))
|
|
9043
9043
|
return $.delete(z), !1;
|
|
9044
|
-
const
|
|
9044
|
+
const Y = O.interactiveStateUsesDesiredState ? Qc(t.declarations, O, {
|
|
9045
9045
|
appOrigin: t.host.appOrigin,
|
|
9046
9046
|
id: `direct!${z}`,
|
|
9047
9047
|
screenId: z,
|
|
9048
9048
|
cacheKey: q,
|
|
9049
9049
|
interactiveSurfaceId: zs(O)
|
|
9050
9050
|
}) : null;
|
|
9051
|
-
if (
|
|
9051
|
+
if (Y) {
|
|
9052
9052
|
const _e = p();
|
|
9053
|
-
return _e.forgetScreen(z), (X ? _e.materializeOnInstance(
|
|
9053
|
+
return _e.forgetScreen(z), (X ? _e.materializeOnInstance(Y, X.iframe) : _e.materialize([Y])) > 0 ? (F.queued += 1, $.delete(z), !0) : (_e.screenState(z) == null && E(z), !1);
|
|
9054
9054
|
}
|
|
9055
9055
|
const oe = t.declarations.flowPathForScreen(V);
|
|
9056
9056
|
if (!oe)
|
|
9057
|
-
return
|
|
9057
|
+
return F.noPath += 1, E(z), !1;
|
|
9058
9058
|
const me = /* @__PURE__ */ new Map();
|
|
9059
9059
|
for (const _e of t.store.pages)
|
|
9060
9060
|
_e.route == null || _e.importLayers !== !0 || me.set(_e.importPageId ?? _e.id, _e);
|
|
9061
9061
|
const ge = lr(t, oe, me, H, t.host.appOrigin);
|
|
9062
9062
|
if (!ge)
|
|
9063
|
-
return
|
|
9063
|
+
return F.resolvedNull += 1, E(z), !1;
|
|
9064
9064
|
const de = js(t.declarations, ge, oe, O, t.host.appOrigin), ye = de.waypoints.findIndex(
|
|
9065
9065
|
(_e) => _e.screenId === V
|
|
9066
9066
|
);
|
|
@@ -9081,7 +9081,7 @@ function Yv(t, e) {
|
|
|
9081
9081
|
id: `${de.id}!${z}`,
|
|
9082
9082
|
waypoints: be
|
|
9083
9083
|
}, Ie = X ? we.materializeOnInstance(Ve, X.iframe) : we.materialize([Ve]);
|
|
9084
|
-
return j(we, de, ye, O, Ie > 0), Ie > 0 ? (
|
|
9084
|
+
return j(we, de, ye, O, Ie > 0), Ie > 0 ? (F.queued += 1, $.delete(z), !0) : (we.screenState(z) == null && E(z), !1);
|
|
9085
9085
|
}
|
|
9086
9086
|
function j(O, H, q, V, z) {
|
|
9087
9087
|
var me, ge;
|
|
@@ -9090,10 +9090,10 @@ function Yv(t, e) {
|
|
|
9090
9090
|
(((me = V.interactions) == null ? void 0 : me.length) ?? 0) - (((ge = V.baseInteractions) == null ? void 0 : ge.length) ?? 0)
|
|
9091
9091
|
) : 0;
|
|
9092
9092
|
if (X === 0) {
|
|
9093
|
-
|
|
9093
|
+
F.reparkNoExtraSteps += 1;
|
|
9094
9094
|
return;
|
|
9095
9095
|
}
|
|
9096
|
-
const
|
|
9096
|
+
const Y = H.waypoints[q], oe = {
|
|
9097
9097
|
...H,
|
|
9098
9098
|
// Option-qualified id: flipping A then B while A's warming walk is still
|
|
9099
9099
|
// queued must queue B's own re-park rather than dedupe against A's.
|
|
@@ -9102,16 +9102,16 @@ function Yv(t, e) {
|
|
|
9102
9102
|
...de,
|
|
9103
9103
|
cacheKey: "",
|
|
9104
9104
|
...ye === q ? {
|
|
9105
|
-
steps:
|
|
9105
|
+
steps: Y.steps.slice(0, Y.steps.length - X),
|
|
9106
9106
|
assertions: void 0
|
|
9107
9107
|
} : {}
|
|
9108
9108
|
}))
|
|
9109
9109
|
};
|
|
9110
9110
|
if (!z && n.warmInstanceServesPath(oe)) {
|
|
9111
|
-
|
|
9111
|
+
F.reparkAlreadyParked += 1;
|
|
9112
9112
|
return;
|
|
9113
9113
|
}
|
|
9114
|
-
O.materialize([oe]) > 0 && (
|
|
9114
|
+
O.materialize([oe]) > 0 && (F.reparkQueued += 1);
|
|
9115
9115
|
}
|
|
9116
9116
|
function K(O, H, q) {
|
|
9117
9117
|
if (H.interactiveStateId == null || H.interactiveStateUsesDesiredState !== !0 && q && O.hasExactRoutePreviewSnapshot(q))
|
|
@@ -9122,21 +9122,21 @@ function Yv(t, e) {
|
|
|
9122
9122
|
return z == null ? !0 : z.status === "pending" || z.status === "running";
|
|
9123
9123
|
}
|
|
9124
9124
|
function U(O) {
|
|
9125
|
-
|
|
9125
|
+
T.add(O);
|
|
9126
9126
|
const H = p().subscribe(O);
|
|
9127
9127
|
return () => {
|
|
9128
|
-
|
|
9128
|
+
T.delete(O), H();
|
|
9129
9129
|
};
|
|
9130
9130
|
}
|
|
9131
9131
|
function A() {
|
|
9132
9132
|
return p().isIdle();
|
|
9133
9133
|
}
|
|
9134
|
-
function
|
|
9134
|
+
function L(O) {
|
|
9135
9135
|
return p().screenState(
|
|
9136
9136
|
In(O)
|
|
9137
9137
|
) != null;
|
|
9138
9138
|
}
|
|
9139
|
-
function
|
|
9139
|
+
function k(O, H) {
|
|
9140
9140
|
if (O.route == null || O.interactiveStateId == null)
|
|
9141
9141
|
return "unavailable";
|
|
9142
9142
|
const q = O.importPageId ?? O.id, V = In(O), z = p();
|
|
@@ -9144,12 +9144,12 @@ function Yv(t, e) {
|
|
|
9144
9144
|
if (!z.isIdle()) return "busy";
|
|
9145
9145
|
const X = t.declarations.flowPathForScreen(q);
|
|
9146
9146
|
if (!X) return "unavailable";
|
|
9147
|
-
const
|
|
9147
|
+
const Y = /* @__PURE__ */ new Map();
|
|
9148
9148
|
for (const we of t.store.pages)
|
|
9149
|
-
we.route == null || we.importLayers !== !0 ||
|
|
9150
|
-
if (!
|
|
9151
|
-
|
|
9152
|
-
const oe = lr(t, X,
|
|
9149
|
+
we.route == null || we.importLayers !== !0 || Y.set(we.importPageId ?? we.id, we);
|
|
9150
|
+
if (!Y.has(q)) return "unavailable";
|
|
9151
|
+
Y.set(q, O);
|
|
9152
|
+
const oe = lr(t, X, Y, H, t.host.appOrigin);
|
|
9153
9153
|
if (!oe) return "unavailable";
|
|
9154
9154
|
const me = js(
|
|
9155
9155
|
t.declarations,
|
|
@@ -9175,7 +9175,7 @@ function Yv(t, e) {
|
|
|
9175
9175
|
}
|
|
9176
9176
|
]) > 0 ? ($.delete(V), "queued") : z.screenState(V) != null ? "tracked" : "unavailable";
|
|
9177
9177
|
}
|
|
9178
|
-
const
|
|
9178
|
+
const F = {
|
|
9179
9179
|
requested: 0,
|
|
9180
9180
|
noPath: 0,
|
|
9181
9181
|
resolvedNull: 0,
|
|
@@ -9207,7 +9207,7 @@ function Yv(t, e) {
|
|
|
9207
9207
|
const H = t.store.pages.find((q) => q.id === O);
|
|
9208
9208
|
H != null && H.interactiveStateUsesDesiredState && P(H, t.host.previewRevision);
|
|
9209
9209
|
}), r.setDirectInteractiveStatePreviewHandler((O) => {
|
|
9210
|
-
const H = t.store.pages.find((
|
|
9210
|
+
const H = t.store.pages.find((Y) => Y.id === O.pageId), q = r.getInteractiveSessionSurface(
|
|
9211
9211
|
Xt(O.pageId, O.stateId)
|
|
9212
9212
|
), V = t.declarations.getDesignImportController();
|
|
9213
9213
|
if (!H || !q || !(V != null && V.prepareScreenState)) return !1;
|
|
@@ -9231,8 +9231,8 @@ function Yv(t, e) {
|
|
|
9231
9231
|
return q.iframe.style.opacity = "1", q.iframe.style.zIndex = "12", q.iframe.dataset.pygmalionInteractiveSessionVisible = O.pageId, w.set(
|
|
9232
9232
|
q.iframe,
|
|
9233
9233
|
z
|
|
9234
|
-
), X.then((
|
|
9235
|
-
|
|
9234
|
+
), X.then((Y) => {
|
|
9235
|
+
Y.complete || q.iframe.isConnected === !1 || w.get(q.iframe) === z && (w.delete(q.iframe), delete q.iframe.dataset.pygmalionInteractiveSessionVisible, q.iframe.style.opacity = "0");
|
|
9236
9236
|
}, () => {
|
|
9237
9237
|
q.iframe.isConnected !== !1 && w.get(q.iframe) === z && (w.delete(q.iframe), delete q.iframe.dataset.pygmalionInteractiveSessionVisible, q.iframe.style.opacity = "0");
|
|
9238
9238
|
}), !0;
|
|
@@ -9253,9 +9253,9 @@ function Yv(t, e) {
|
|
|
9253
9253
|
interactiveSessionWillDeliver: K,
|
|
9254
9254
|
subscribeInteractiveSessions: U,
|
|
9255
9255
|
interactiveSessionRunnerIsIdle: A,
|
|
9256
|
-
interactiveSessionTracksVariant:
|
|
9257
|
-
prefetchPageInteractiveVariant:
|
|
9258
|
-
__interactiveSessionDebug:
|
|
9256
|
+
interactiveSessionTracksVariant: L,
|
|
9257
|
+
prefetchPageInteractiveVariant: k,
|
|
9258
|
+
__interactiveSessionDebug: F,
|
|
9259
9259
|
__debugInteractiveSessionStates: Z,
|
|
9260
9260
|
__viewportCommitDebug: Q,
|
|
9261
9261
|
__debugViewportSessionStates: ue
|
|
@@ -9277,14 +9277,14 @@ function S0(t, e) {
|
|
|
9277
9277
|
const r = Number.parseInt(n.slice(1), 16), i = (u) => Math.round(u + (255 - u) * Math.min(1, Math.max(0, e))), s = i(r >> 16 & 255), o = i(r >> 8 & 255), a = i(r & 255);
|
|
9278
9278
|
return `#${(s << 16 | o << 8 | a).toString(16).padStart(6, "0")}`;
|
|
9279
9279
|
}
|
|
9280
|
-
const
|
|
9280
|
+
const Yv = {
|
|
9281
9281
|
layers: "layers",
|
|
9282
9282
|
noScenario: "no scenario",
|
|
9283
9283
|
omissions: "some omissions",
|
|
9284
9284
|
checkFlow: "check flow"
|
|
9285
9285
|
};
|
|
9286
9286
|
function _0(t) {
|
|
9287
|
-
return { ...
|
|
9287
|
+
return { ...Yv, ...t };
|
|
9288
9288
|
}
|
|
9289
9289
|
const bd = "step", wd = "variant", Xv = "#8b8b9e";
|
|
9290
9290
|
function I0(t, e = {}) {
|
|
@@ -10499,7 +10499,7 @@ function su(t) {
|
|
|
10499
10499
|
return null;
|
|
10500
10500
|
}
|
|
10501
10501
|
}
|
|
10502
|
-
function
|
|
10502
|
+
function Jy(t, e) {
|
|
10503
10503
|
for (let n = 0; n < t.length; n += 1) {
|
|
10504
10504
|
const r = t[n];
|
|
10505
10505
|
if (r === "*" || r.startsWith(":") && r.endsWith("*"))
|
|
@@ -10558,7 +10558,7 @@ function F0({
|
|
|
10558
10558
|
), o = qy(n), a = Ld(e);
|
|
10559
10559
|
return `${i}:${encodeURIComponent(s)}:capture-v${Wy}:recipe-v${o}:${a}`;
|
|
10560
10560
|
}
|
|
10561
|
-
const
|
|
10561
|
+
const Yy = 2;
|
|
10562
10562
|
function Xy(t) {
|
|
10563
10563
|
return {
|
|
10564
10564
|
route: t.route,
|
|
@@ -10568,7 +10568,7 @@ function Xy(t) {
|
|
|
10568
10568
|
gallery: t.gallery,
|
|
10569
10569
|
width: t.width,
|
|
10570
10570
|
height: t.height,
|
|
10571
|
-
screenshotScale:
|
|
10571
|
+
screenshotScale: Yy,
|
|
10572
10572
|
environment: t.environment,
|
|
10573
10573
|
preset: t.preset,
|
|
10574
10574
|
...t.desiredState === void 0 ? {} : { desiredState: t.desiredState },
|
|
@@ -10873,7 +10873,7 @@ function ib() {
|
|
|
10873
10873
|
if (u) return u;
|
|
10874
10874
|
const c = a.split("/").filter(Boolean);
|
|
10875
10875
|
return (l = e.find(
|
|
10876
|
-
(d) =>
|
|
10876
|
+
(d) => Jy(d.segments, c)
|
|
10877
10877
|
)) == null ? void 0 : l.digest;
|
|
10878
10878
|
}
|
|
10879
10879
|
function i(o, a) {
|
|
@@ -11471,8 +11471,8 @@ ${b.join(`
|
|
|
11471
11471
|
let p = v;
|
|
11472
11472
|
const _ = {}, R = {}, M = [];
|
|
11473
11473
|
for (const $ of g) {
|
|
11474
|
-
const
|
|
11475
|
-
p = Math.floor(p / $.values.length), _[$.property.designName] =
|
|
11474
|
+
const T = $.values[p % $.values.length];
|
|
11475
|
+
p = Math.floor(p / $.values.length), _[$.property.designName] = T, ($.property.kind === "variant" || $.property.kind === "boolean") && M.push(`${$.property.designName}=${T}`), $.property.codeProperty && (R[$.property.codeProperty] = li($.property, T));
|
|
11476
11476
|
}
|
|
11477
11477
|
S.push({
|
|
11478
11478
|
id: `${f.id}:case:${v + 1}`,
|
|
@@ -11568,8 +11568,8 @@ function xb(t) {
|
|
|
11568
11568
|
if (R !== n) {
|
|
11569
11569
|
e = _, n = R;
|
|
11570
11570
|
for (const [M, $] of [...r]) {
|
|
11571
|
-
const
|
|
11572
|
-
(!
|
|
11571
|
+
const T = o(M);
|
|
11572
|
+
(!T || !T.options.some((E) => E.value === $)) && r.delete(M);
|
|
11573
11573
|
}
|
|
11574
11574
|
c();
|
|
11575
11575
|
}
|
|
@@ -11599,7 +11599,7 @@ function xb(t) {
|
|
|
11599
11599
|
if (!p) return !0;
|
|
11600
11600
|
for (const [_, R] of Object.entries(p)) {
|
|
11601
11601
|
const M = o(_);
|
|
11602
|
-
if (!M || R.some((
|
|
11602
|
+
if (!M || R.some((T) => !M.options.some((E) => E.value === T)))
|
|
11603
11603
|
return !1;
|
|
11604
11604
|
const $ = a(M);
|
|
11605
11605
|
if ($ != null && !R.includes($))
|
|
@@ -11616,8 +11616,8 @@ function xb(t) {
|
|
|
11616
11616
|
_.push(`Unknown condition axis "${R}".`);
|
|
11617
11617
|
continue;
|
|
11618
11618
|
}
|
|
11619
|
-
for (const
|
|
11620
|
-
$.options.some((E) => E.value ===
|
|
11619
|
+
for (const T of M)
|
|
11620
|
+
$.options.some((E) => E.value === T) || _.push(`Condition axis "${R}" has no value "${T}".`);
|
|
11621
11621
|
}
|
|
11622
11622
|
return _;
|
|
11623
11623
|
}
|
|
@@ -12144,17 +12144,17 @@ function qb(t, e, n) {
|
|
|
12144
12144
|
}
|
|
12145
12145
|
}
|
|
12146
12146
|
const Wb = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), Gb = /* @__PURE__ */ new Set(["auto", "scroll", "overlay", "hidden", "clip"]), Ks = "data-pygmalion-captured-overflow-y";
|
|
12147
|
-
function
|
|
12147
|
+
function Jd(t) {
|
|
12148
12148
|
const e = t.domStyle ?? {};
|
|
12149
12149
|
return e.overflowY ?? e.overflow;
|
|
12150
12150
|
}
|
|
12151
|
-
function
|
|
12152
|
-
const e =
|
|
12151
|
+
function Jb(t) {
|
|
12152
|
+
const e = Jd(t);
|
|
12153
12153
|
return e != null && Gb.has(e);
|
|
12154
12154
|
}
|
|
12155
|
-
function
|
|
12155
|
+
function Yb(t) {
|
|
12156
12156
|
for (let e = t.length - 2; e >= 0; e -= 1)
|
|
12157
|
-
if (
|
|
12157
|
+
if (Jb(t[e])) return e;
|
|
12158
12158
|
return -1;
|
|
12159
12159
|
}
|
|
12160
12160
|
function Xb(t) {
|
|
@@ -12173,7 +12173,7 @@ function Zb(t) {
|
|
|
12173
12173
|
var a, u;
|
|
12174
12174
|
const e = Fn((a = t.domStyle) == null ? void 0 : a.height);
|
|
12175
12175
|
if (e == null) return;
|
|
12176
|
-
const n = { ...t.domAttributes ?? {} }, r = n[Ks], i = Xb(t) > e + 0.5, s =
|
|
12176
|
+
const n = { ...t.domAttributes ?? {} }, r = n[Ks], i = Xb(t) > e + 0.5, s = Jd(t);
|
|
12177
12177
|
if (i) {
|
|
12178
12178
|
if (s != null && Wb.has(s)) return;
|
|
12179
12179
|
r == null && (n[Ks] = ((u = t.domStyle) == null ? void 0 : u.overflowY) ?? "", t.domAttributes = n), t.domStyle = { ...t.domStyle, overflowY: "auto" };
|
|
@@ -12187,7 +12187,7 @@ function Qb(t, e, n) {
|
|
|
12187
12187
|
if (!n) return;
|
|
12188
12188
|
const r = Hd(t, e.id);
|
|
12189
12189
|
if (!r) return;
|
|
12190
|
-
const i =
|
|
12190
|
+
const i = Yb(r);
|
|
12191
12191
|
for (let s = r.length - 1; s > i; s -= 1)
|
|
12192
12192
|
Kb(r[s], n), s > 0 && qb(r[s - 1], r[s], n);
|
|
12193
12193
|
i >= 0 && Zb(r[i]);
|
|
@@ -12428,10 +12428,10 @@ function iw(t, e) {
|
|
|
12428
12428
|
(n) => (n.importPageId ?? n.id) === e
|
|
12429
12429
|
) ?? null;
|
|
12430
12430
|
}
|
|
12431
|
-
function
|
|
12431
|
+
function Yd(t, e) {
|
|
12432
12432
|
if (t.componentName === e) return t;
|
|
12433
12433
|
for (const n of t.children ?? []) {
|
|
12434
|
-
const r =
|
|
12434
|
+
const r = Yd(n, e);
|
|
12435
12435
|
if (r) return r;
|
|
12436
12436
|
}
|
|
12437
12437
|
return null;
|
|
@@ -12503,7 +12503,7 @@ function sw(t) {
|
|
|
12503
12503
|
message: `could not set "${c.list}" to ${c.count} rows`
|
|
12504
12504
|
} : { status: "failed", message: `list "${c.list}" is not declared` };
|
|
12505
12505
|
}
|
|
12506
|
-
const d =
|
|
12506
|
+
const d = Yd(l.root, c.componentName);
|
|
12507
12507
|
return d ? (u.patchComponentInstanceProp(d, c.prop, c.value), u.setSelection([d.id]), { status: "applied" }) : {
|
|
12508
12508
|
status: "failed",
|
|
12509
12509
|
message: `no "${c.componentName}" instance in the imported tree`
|
|
@@ -12629,7 +12629,7 @@ function lw(t, e) {
|
|
|
12629
12629
|
const n = (r = t.options) == null ? void 0 : r.find((i) => i.label === e);
|
|
12630
12630
|
return n ? n.props : null;
|
|
12631
12631
|
}
|
|
12632
|
-
function
|
|
12632
|
+
function J0(t, e) {
|
|
12633
12633
|
var n;
|
|
12634
12634
|
if (e.componentName !== t.component) return null;
|
|
12635
12635
|
if (t.prop) {
|
|
@@ -12665,7 +12665,7 @@ const fw = {
|
|
|
12665
12665
|
scenarios: "scenarios",
|
|
12666
12666
|
flows: "flows"
|
|
12667
12667
|
};
|
|
12668
|
-
function
|
|
12668
|
+
function Y0(t) {
|
|
12669
12669
|
return { ...fw, ...t };
|
|
12670
12670
|
}
|
|
12671
12671
|
function X0(t, e) {
|
|
@@ -13299,16 +13299,21 @@ function Pa() {
|
|
|
13299
13299
|
...i,
|
|
13300
13300
|
...r
|
|
13301
13301
|
}), h = zv(), b = {}, g = () => h.setStoryboardBaselineEnvironment(
|
|
13302
|
-
pd(Ge(
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13302
|
+
pd(Ge(
|
|
13303
|
+
Ge(b.discovery, b.session),
|
|
13304
|
+
b.axes
|
|
13305
|
+
))
|
|
13306
|
+
), m = (T) => {
|
|
13307
|
+
b.discovery = T ? JSON.parse(JSON.stringify(T)) : void 0, g();
|
|
13308
|
+
}, w = mw({
|
|
13309
|
+
setStoryboardBaselineEnvironment(T) {
|
|
13310
|
+
b.session = T, g();
|
|
13306
13311
|
}
|
|
13307
|
-
}),
|
|
13308
|
-
setStoryboardBaselineEnvironment(
|
|
13309
|
-
b.axes =
|
|
13312
|
+
}), S = xb({
|
|
13313
|
+
setStoryboardBaselineEnvironment(T) {
|
|
13314
|
+
b.axes = T, g();
|
|
13310
13315
|
}
|
|
13311
|
-
}),
|
|
13316
|
+
}), v = (T) => w.isInSelectedSessionPreset(T.runtimes) && S.isInSelectedConditions(T.conditions), p = Nb(), _ = gw(), R = Cw(), M = Tp(), $ = ib();
|
|
13312
13317
|
return {
|
|
13313
13318
|
...t,
|
|
13314
13319
|
...e,
|
|
@@ -13323,15 +13328,16 @@ function Pa() {
|
|
|
13323
13328
|
...l,
|
|
13324
13329
|
...d,
|
|
13325
13330
|
...f,
|
|
13326
|
-
...m,
|
|
13327
13331
|
...w,
|
|
13328
|
-
|
|
13329
|
-
|
|
13330
|
-
|
|
13332
|
+
...S,
|
|
13333
|
+
isPageInSelectedConditions: v,
|
|
13334
|
+
setStoryboardDiscoveryBaselineEnvironment: m,
|
|
13331
13335
|
...p,
|
|
13336
|
+
...h,
|
|
13332
13337
|
..._,
|
|
13333
13338
|
...R,
|
|
13334
|
-
...M
|
|
13339
|
+
...M,
|
|
13340
|
+
...$
|
|
13335
13341
|
};
|
|
13336
13342
|
}
|
|
13337
13343
|
const vu = 12, Qd = 32, Rw = 8, $w = 80, Ws = 8 * 1024 * 1024, Tw = 64 * 1024 * 1024, kw = 256, Dw = 256 * 1024 * 1024, Fw = 2, Gs = 32, Lw = 2, dr = 2, jw = "pygmalion-instant-canvas", qe = "route-previews", yu = "pygmalion-default";
|
|
@@ -13381,15 +13387,15 @@ function Hw(t = {}) {
|
|
|
13381
13387
|
const u = [], c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map();
|
|
13382
13388
|
let p = 0, _ = 0, R = !1;
|
|
13383
13389
|
const M = [], $ = /* @__PURE__ */ new Map();
|
|
13384
|
-
let
|
|
13385
|
-
const U = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Set(),
|
|
13386
|
-
let
|
|
13390
|
+
let T = 0, E = 0, P = yu, j, K = null;
|
|
13391
|
+
const U = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
|
|
13392
|
+
let k = 0, F = 0;
|
|
13387
13393
|
const Z = /* @__PURE__ */ new Set(), Q = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map();
|
|
13388
13394
|
let G = 0;
|
|
13389
13395
|
const O = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
|
|
13390
13396
|
let z = 0;
|
|
13391
13397
|
const X = /* @__PURE__ */ new Set();
|
|
13392
|
-
let
|
|
13398
|
+
let Y = 0;
|
|
13393
13399
|
const oe = /* @__PURE__ */ new Set();
|
|
13394
13400
|
let me = !1;
|
|
13395
13401
|
const ge = /* @__PURE__ */ new Set(), de = /* @__PURE__ */ new Set();
|
|
@@ -13413,36 +13419,36 @@ function Hw(t = {}) {
|
|
|
13413
13419
|
y.set(I, (y.get(I) ?? 0) + 1);
|
|
13414
13420
|
}
|
|
13415
13421
|
function _e(y) {
|
|
13416
|
-
if (
|
|
13422
|
+
if (Y > 0) {
|
|
13417
13423
|
y == null ? me = !0 : oe.add(y);
|
|
13418
13424
|
return;
|
|
13419
13425
|
}
|
|
13420
|
-
|
|
13421
|
-
for (const I of [...
|
|
13426
|
+
k += 1, y == null ? (G += 1, Ve(Q)) : (Ie(ue, y), we(Q, y));
|
|
13427
|
+
for (const I of [...L]) I();
|
|
13422
13428
|
}
|
|
13423
13429
|
function Te(y) {
|
|
13424
13430
|
const I = y == null ? void 0 : y.key, x = y == null ? void 0 : y.identity;
|
|
13425
|
-
if (
|
|
13431
|
+
if (Y > 0) {
|
|
13426
13432
|
I == null && x == null && (ye = !0), I != null && ge.add(I), x != null && de.add(x);
|
|
13427
13433
|
return;
|
|
13428
13434
|
}
|
|
13429
|
-
|
|
13435
|
+
F += 1, I == null && x == null ? (z += 1, Ve(O), Ve(q)) : (I != null && (Ie(H, I), we(O, I)), x != null && (Ie(V, x), we(q, x)));
|
|
13430
13436
|
for (const N of [...Z]) N();
|
|
13431
13437
|
}
|
|
13432
13438
|
function jr() {
|
|
13433
13439
|
for (const y of [...X]) y();
|
|
13434
13440
|
}
|
|
13435
13441
|
function Nt() {
|
|
13436
|
-
|
|
13442
|
+
Y += 1;
|
|
13437
13443
|
}
|
|
13438
13444
|
function Bt() {
|
|
13439
|
-
if (
|
|
13445
|
+
if (Y = Math.max(0, Y - 1), Y > 0) return;
|
|
13440
13446
|
const y = ye, I = y ? [] : [...ge], x = y ? [] : [...de];
|
|
13441
13447
|
ye = !1, ge.clear(), de.clear();
|
|
13442
|
-
const N = me,
|
|
13448
|
+
const N = me, D = N ? [] : [...oe];
|
|
13443
13449
|
if (me = !1, oe.clear(), y) Te();
|
|
13444
13450
|
else if (I.length > 0 || x.length > 0) {
|
|
13445
|
-
|
|
13451
|
+
F += 1;
|
|
13446
13452
|
for (const B of I)
|
|
13447
13453
|
Ie(H, B), we(O, B);
|
|
13448
13454
|
for (const B of x)
|
|
@@ -13450,18 +13456,18 @@ function Hw(t = {}) {
|
|
|
13450
13456
|
for (const B of [...Z]) B();
|
|
13451
13457
|
}
|
|
13452
13458
|
if (N) _e();
|
|
13453
|
-
else if (
|
|
13454
|
-
|
|
13455
|
-
for (const B of
|
|
13459
|
+
else if (D.length > 0) {
|
|
13460
|
+
k += 1;
|
|
13461
|
+
for (const B of D)
|
|
13456
13462
|
Ie(ue, B), we(Q, B);
|
|
13457
|
-
for (const B of [...
|
|
13463
|
+
for (const B of [...L]) B();
|
|
13458
13464
|
}
|
|
13459
13465
|
}
|
|
13460
13466
|
function ae(y) {
|
|
13461
|
-
return
|
|
13467
|
+
return L.add(y), () => L.delete(y);
|
|
13462
13468
|
}
|
|
13463
13469
|
function fe() {
|
|
13464
|
-
return
|
|
13470
|
+
return k;
|
|
13465
13471
|
}
|
|
13466
13472
|
function ce(y, I) {
|
|
13467
13473
|
return be(Q, y, I);
|
|
@@ -13472,7 +13478,7 @@ function Hw(t = {}) {
|
|
|
13472
13478
|
function Be(y, I) {
|
|
13473
13479
|
return be(O, y, I);
|
|
13474
13480
|
}
|
|
13475
|
-
function
|
|
13481
|
+
function Je(y) {
|
|
13476
13482
|
return (H.get(y) ?? 0) + z;
|
|
13477
13483
|
}
|
|
13478
13484
|
function Oe(y, I, x) {
|
|
@@ -13510,7 +13516,7 @@ function Hw(t = {}) {
|
|
|
13510
13516
|
return f.get(y) ?? null;
|
|
13511
13517
|
}
|
|
13512
13518
|
function Ue() {
|
|
13513
|
-
return
|
|
13519
|
+
return F;
|
|
13514
13520
|
}
|
|
13515
13521
|
function Br(y) {
|
|
13516
13522
|
return Z.add(y), () => Z.delete(y);
|
|
@@ -13519,8 +13525,8 @@ function Hw(t = {}) {
|
|
|
13519
13525
|
return `${y.id.trim()}\0${y.fingerprint ?? ""}`;
|
|
13520
13526
|
}
|
|
13521
13527
|
function Hr(y, I) {
|
|
13522
|
-
var
|
|
13523
|
-
const x = (
|
|
13528
|
+
var D;
|
|
13529
|
+
const x = (D = y.frames[I]) == null ? void 0 : D.screenshot;
|
|
13524
13530
|
if (!x) return null;
|
|
13525
13531
|
const N = y.assets.screenshots[x.hash];
|
|
13526
13532
|
return {
|
|
@@ -13542,13 +13548,13 @@ function Hw(t = {}) {
|
|
|
13542
13548
|
function Vn(y, I) {
|
|
13543
13549
|
const x = [];
|
|
13544
13550
|
for (const N of y) {
|
|
13545
|
-
const
|
|
13546
|
-
if (!
|
|
13551
|
+
const D = N.id.trim();
|
|
13552
|
+
if (!D) continue;
|
|
13547
13553
|
const B = Ut({
|
|
13548
|
-
id:
|
|
13554
|
+
id: D,
|
|
13549
13555
|
...N.fingerprint ? { fingerprint: N.fingerprint } : {}
|
|
13550
|
-
}),
|
|
13551
|
-
JSON.stringify(
|
|
13556
|
+
}), J = h.get(B);
|
|
13557
|
+
JSON.stringify(J) !== JSON.stringify(I) && (h.set(B, I), x.push(B));
|
|
13552
13558
|
}
|
|
13553
13559
|
return x;
|
|
13554
13560
|
}
|
|
@@ -13579,19 +13585,19 @@ function Hw(t = {}) {
|
|
|
13579
13585
|
I.add(y);
|
|
13580
13586
|
const x = {};
|
|
13581
13587
|
for (const N of Object.keys(y).sort()) {
|
|
13582
|
-
const
|
|
13583
|
-
|
|
13588
|
+
const D = y[N];
|
|
13589
|
+
D !== void 0 && (x[N] = it(D, I));
|
|
13584
13590
|
}
|
|
13585
13591
|
return I.delete(y), x;
|
|
13586
13592
|
}
|
|
13587
|
-
let
|
|
13593
|
+
let Ye = null, yn = !1;
|
|
13588
13594
|
const Re = /* @__PURE__ */ new Map();
|
|
13589
13595
|
let Rt = 0;
|
|
13590
13596
|
function of(y) {
|
|
13591
13597
|
Rt += 1;
|
|
13592
13598
|
const I = Rt;
|
|
13593
|
-
return
|
|
13594
|
-
Rt !== I ||
|
|
13599
|
+
return Ye = y, Re.clear(), !y && h.size > 0 && (h.clear(), Te()), () => {
|
|
13600
|
+
Rt !== I || Ye !== y || (Rt += 1, Ye = null, Re.clear(), h.size > 0 && (h.clear(), Te()));
|
|
13595
13601
|
};
|
|
13596
13602
|
}
|
|
13597
13603
|
function af(y) {
|
|
@@ -13611,14 +13617,14 @@ function Hw(t = {}) {
|
|
|
13611
13617
|
}), !yn || y || I;
|
|
13612
13618
|
}
|
|
13613
13619
|
function lf(y, I, x = {}) {
|
|
13614
|
-
const N = y.trim(),
|
|
13615
|
-
if (!
|
|
13620
|
+
const N = y.trim(), D = Ye;
|
|
13621
|
+
if (!D || !N) return null;
|
|
13616
13622
|
const B = {
|
|
13617
13623
|
id: N,
|
|
13618
13624
|
...I ? { fingerprint: I } : {},
|
|
13619
13625
|
...x.recipeFingerprint ? { recipeFingerprint: x.recipeFingerprint } : {},
|
|
13620
13626
|
...x.recipe ? { recipe: x.recipe } : {}
|
|
13621
|
-
},
|
|
13627
|
+
}, J = Ut(B), te = Re.get(J);
|
|
13622
13628
|
if (te) return te;
|
|
13623
13629
|
const re = Kt(N, I);
|
|
13624
13630
|
if (re.status === "exact" || re.status === "error" && !x.retry)
|
|
@@ -13627,7 +13633,7 @@ function Hw(t = {}) {
|
|
|
13627
13633
|
const ee = Rt;
|
|
13628
13634
|
let ie;
|
|
13629
13635
|
try {
|
|
13630
|
-
ie =
|
|
13636
|
+
ie = D(
|
|
13631
13637
|
[B],
|
|
13632
13638
|
x.priority === void 0 ? void 0 : { priority: x.priority }
|
|
13633
13639
|
);
|
|
@@ -13660,14 +13666,14 @@ function Hw(t = {}) {
|
|
|
13660
13666
|
return xe([B], ve), ve;
|
|
13661
13667
|
}
|
|
13662
13668
|
);
|
|
13663
|
-
return Re.set(
|
|
13664
|
-
Re.get(
|
|
13669
|
+
return Re.set(J, pe), pe.finally(() => {
|
|
13670
|
+
Re.get(J) === pe && Re.delete(J);
|
|
13665
13671
|
}), pe;
|
|
13666
13672
|
}
|
|
13667
13673
|
function df(y, I = {}) {
|
|
13668
|
-
const x =
|
|
13674
|
+
const x = Ye;
|
|
13669
13675
|
if (!x) return null;
|
|
13670
|
-
const N = [],
|
|
13676
|
+
const N = [], D = [], B = /* @__PURE__ */ new Set();
|
|
13671
13677
|
for (const ee of y) {
|
|
13672
13678
|
const ie = ee.id.trim();
|
|
13673
13679
|
if (!ie) continue;
|
|
@@ -13682,11 +13688,11 @@ function Hw(t = {}) {
|
|
|
13682
13688
|
ie,
|
|
13683
13689
|
ee.fingerprint
|
|
13684
13690
|
);
|
|
13685
|
-
$e.status === "exact" || $e.status === "generating" || $e.status === "error" && !I.retry || (B.add(se), N.push(pe),
|
|
13691
|
+
$e.status === "exact" || $e.status === "generating" || $e.status === "error" && !I.retry || (B.add(se), N.push(pe), D.push(se));
|
|
13686
13692
|
}
|
|
13687
13693
|
if (N.length === 0) return null;
|
|
13688
13694
|
xe(N, { status: "generating" });
|
|
13689
|
-
const
|
|
13695
|
+
const J = Rt;
|
|
13690
13696
|
let te;
|
|
13691
13697
|
try {
|
|
13692
13698
|
te = x(
|
|
@@ -13698,7 +13704,7 @@ function Hw(t = {}) {
|
|
|
13698
13704
|
}
|
|
13699
13705
|
const re = Promise.resolve(te).then(
|
|
13700
13706
|
(ee) => {
|
|
13701
|
-
if (
|
|
13707
|
+
if (J !== Rt)
|
|
13702
13708
|
return { status: "idle" };
|
|
13703
13709
|
const ie = (ee == null ? void 0 : ee.status) === "accepted" ? { status: "exact" } : (ee == null ? void 0 : ee.status) === "rejected" ? {
|
|
13704
13710
|
status: "error",
|
|
@@ -13718,7 +13724,7 @@ function Hw(t = {}) {
|
|
|
13718
13724
|
), ie) : (xe(N, ie), ie);
|
|
13719
13725
|
},
|
|
13720
13726
|
(ee) => {
|
|
13721
|
-
if (
|
|
13727
|
+
if (J !== Rt)
|
|
13722
13728
|
return { status: "idle" };
|
|
13723
13729
|
const ie = {
|
|
13724
13730
|
status: "error",
|
|
@@ -13728,10 +13734,10 @@ function Hw(t = {}) {
|
|
|
13728
13734
|
return xe(N, ie), ie;
|
|
13729
13735
|
}
|
|
13730
13736
|
);
|
|
13731
|
-
for (const ee of
|
|
13737
|
+
for (const ee of D)
|
|
13732
13738
|
Re.set(ee, re);
|
|
13733
13739
|
return re.finally(() => {
|
|
13734
|
-
for (const ee of
|
|
13740
|
+
for (const ee of D)
|
|
13735
13741
|
Re.get(ee) === re && Re.delete(ee);
|
|
13736
13742
|
}), re;
|
|
13737
13743
|
}
|
|
@@ -13756,16 +13762,16 @@ function Hw(t = {}) {
|
|
|
13756
13762
|
return typeof y != "string" || !y || y.length * 2 > Ws ? !1 : !(/<(?:script|iframe|object|embed)\b/i.test(y) || /\son[a-z]+\s*=/i.test(y) || /(?:href|src)\s*=\s*["']?\s*javascript:/i.test(y));
|
|
13757
13763
|
}
|
|
13758
13764
|
function us(y, I) {
|
|
13759
|
-
var
|
|
13760
|
-
const x = typeof ((
|
|
13765
|
+
var D;
|
|
13766
|
+
const x = typeof ((D = globalThis.location) == null ? void 0 : D.origin) == "string" ? globalThis.location.origin : "", N = y.trim() || x;
|
|
13761
13767
|
if (!N) return null;
|
|
13762
13768
|
try {
|
|
13763
13769
|
if (/^https?:\/\//i.test(I))
|
|
13764
13770
|
return new URL(I).href.replaceAll("&", "&").replaceAll('"', """);
|
|
13765
13771
|
const B = /^https?:\/\//i.test(N) ? new URL(N) : x ? new URL(N, `${x}/`) : null;
|
|
13766
13772
|
if (!B) return null;
|
|
13767
|
-
const
|
|
13768
|
-
return B.pathname = `${te}/${re}`.replace(/\/{2,}/g, "/"), B.search =
|
|
13773
|
+
const J = new URL(I || "/", "http://pygmalion.invalid"), te = B.pathname === "/" ? "" : B.pathname.replace(/\/+$/, ""), re = J.pathname.replace(/^\/+/, "");
|
|
13774
|
+
return B.pathname = `${te}/${re}`.replace(/\/{2,}/g, "/"), B.search = J.search, B.hash = J.hash, B.href.replaceAll("&", "&").replaceAll('"', """);
|
|
13769
13775
|
} catch {
|
|
13770
13776
|
return null;
|
|
13771
13777
|
}
|
|
@@ -13784,16 +13790,16 @@ function Hw(t = {}) {
|
|
|
13784
13790
|
}
|
|
13785
13791
|
function ff(y, I, x) {
|
|
13786
13792
|
var re;
|
|
13787
|
-
let N = y === "head" ? 2166136261 : 2654435769,
|
|
13793
|
+
let N = y === "head" ? 2166136261 : 2654435769, D = y === "head" ? 2246822507 : 3266489909;
|
|
13788
13794
|
for (let ee = 0; ee < I.length; ee += 1) {
|
|
13789
13795
|
const ie = I.charCodeAt(ee);
|
|
13790
|
-
N = Math.imul(N ^ ie, 16777619) >>> 0,
|
|
13796
|
+
N = Math.imul(N ^ ie, 16777619) >>> 0, D = Math.imul(D ^ ie, 1540483477) >>> 0;
|
|
13791
13797
|
}
|
|
13792
|
-
const B = `${y}:${I.length}:${N.toString(16)}:${
|
|
13793
|
-
let
|
|
13794
|
-
for (; x.has(
|
|
13795
|
-
te += 1,
|
|
13796
|
-
return
|
|
13798
|
+
const B = `${y}:${I.length}:${N.toString(16)}:${D.toString(16)}`;
|
|
13799
|
+
let J = B, te = 0;
|
|
13800
|
+
for (; x.has(J) && ((re = x.get(J)) == null ? void 0 : re.content) !== I; )
|
|
13801
|
+
te += 1, J = `${B}:${te}`;
|
|
13802
|
+
return J;
|
|
13797
13803
|
}
|
|
13798
13804
|
function hf(y) {
|
|
13799
13805
|
if (/^<style\b/i.test(y)) return !0;
|
|
@@ -13821,14 +13827,14 @@ function Hw(t = {}) {
|
|
|
13821
13827
|
(re) => /[<>]/.test(re) || /\s(?:on[a-z][\w:-]*|srcdoc)\s*=/i.test(re)
|
|
13822
13828
|
))
|
|
13823
13829
|
return null;
|
|
13824
|
-
const N = [],
|
|
13825
|
-
let
|
|
13826
|
-
for (const re of
|
|
13830
|
+
const N = [], D = I[4] ?? "", B = /<style\b[^>]*>[\s\S]*?<\/style\s*>|<link\b[^>]*>/gi;
|
|
13831
|
+
let J = 0;
|
|
13832
|
+
for (const re of D.matchAll(B)) {
|
|
13827
13833
|
if (re.index == null || !hf(re[0])) continue;
|
|
13828
|
-
const ee =
|
|
13829
|
-
ee && N.push({ kind: "head", content: ee }), N.push({ kind: "stylesheet", content: re[0] }),
|
|
13834
|
+
const ee = D.slice(J, re.index);
|
|
13835
|
+
ee && N.push({ kind: "head", content: ee }), N.push({ kind: "stylesheet", content: re[0] }), J = re.index + re[0].length;
|
|
13830
13836
|
}
|
|
13831
|
-
const te =
|
|
13837
|
+
const te = D.slice(J);
|
|
13832
13838
|
return te && N.push({ kind: "head", content: te }), {
|
|
13833
13839
|
document: x,
|
|
13834
13840
|
head: N,
|
|
@@ -13841,17 +13847,17 @@ function Hw(t = {}) {
|
|
|
13841
13847
|
function Kr(y) {
|
|
13842
13848
|
const I = b.get(y);
|
|
13843
13849
|
if (!I) return !1;
|
|
13844
|
-
b.delete(y),
|
|
13850
|
+
b.delete(y), T = Math.max(0, T - I.ownBytes);
|
|
13845
13851
|
for (const x of I.head) {
|
|
13846
|
-
const N = ls(x.kind),
|
|
13847
|
-
|
|
13852
|
+
const N = ls(x.kind), D = N.get(x.key);
|
|
13853
|
+
D && (D.references -= 1, !(D.references > 0) && (N.delete(x.key), T = Math.max(0, T - D.bytes)));
|
|
13848
13854
|
}
|
|
13849
13855
|
return !0;
|
|
13850
13856
|
}
|
|
13851
13857
|
function mf(y) {
|
|
13852
13858
|
const I = y.head.map((N) => {
|
|
13853
|
-
var
|
|
13854
|
-
return ((
|
|
13859
|
+
var D;
|
|
13860
|
+
return ((D = ls(N.kind).get(N.key)) == null ? void 0 : D.content) ?? "";
|
|
13855
13861
|
}).join(""), x = y.document;
|
|
13856
13862
|
return `${x.doctype}<html${x.htmlAttributes}><head${x.headAttributes}>${I}</head><body${x.bodyAttributes}>${y.body}</body></html>`;
|
|
13857
13863
|
}
|
|
@@ -13859,15 +13865,15 @@ function Hw(t = {}) {
|
|
|
13859
13865
|
var N;
|
|
13860
13866
|
if (y.shadow) return y.shadow;
|
|
13861
13867
|
const I = [], x = [];
|
|
13862
|
-
for (const
|
|
13863
|
-
if (
|
|
13864
|
-
const B = (N = m.get(
|
|
13868
|
+
for (const D of y.head) {
|
|
13869
|
+
if (D.kind !== "stylesheet") continue;
|
|
13870
|
+
const B = (N = m.get(D.key)) == null ? void 0 : N.content;
|
|
13865
13871
|
if (!B) continue;
|
|
13866
|
-
const
|
|
13867
|
-
if (
|
|
13868
|
-
const te = Ta(
|
|
13872
|
+
const J = B.match(/^<style\b([^>]*)>([\s\S]*?)<\/style\s*>$/i);
|
|
13873
|
+
if (J) {
|
|
13874
|
+
const te = Ta(J[1] ?? ""), re = J[2] ?? "";
|
|
13869
13875
|
I.push({
|
|
13870
|
-
key:
|
|
13876
|
+
key: D.key,
|
|
13871
13877
|
cssText: te ? `@media ${te}{${re}}` : re
|
|
13872
13878
|
});
|
|
13873
13879
|
} else /^<link\b/i.test(B) && x.push(B);
|
|
@@ -13881,47 +13887,47 @@ function Hw(t = {}) {
|
|
|
13881
13887
|
}, y.shadow;
|
|
13882
13888
|
}
|
|
13883
13889
|
function vf(y, I, x, N) {
|
|
13884
|
-
const
|
|
13885
|
-
if (!
|
|
13890
|
+
const D = pf(I);
|
|
13891
|
+
if (!D) return !1;
|
|
13886
13892
|
Kr(y);
|
|
13887
|
-
const B =
|
|
13893
|
+
const B = D.head.map(({ kind: te, content: re }) => {
|
|
13888
13894
|
const ee = ls(te), ie = ff(te, re, ee), pe = ee.get(ie);
|
|
13889
13895
|
if (pe)
|
|
13890
13896
|
pe.references += 1;
|
|
13891
13897
|
else {
|
|
13892
13898
|
const se = re.length * 2;
|
|
13893
|
-
ee.set(ie, { content: re, bytes: se, references: 1 }),
|
|
13899
|
+
ee.set(ie, { content: re, bytes: se, references: 1 }), T += se;
|
|
13894
13900
|
}
|
|
13895
13901
|
return { kind: te, key: ie };
|
|
13896
|
-
}),
|
|
13902
|
+
}), J = (D.body.length + D.document.doctype.length + D.document.htmlAttributes.length + D.document.headAttributes.length + D.document.bodyAttributes.length + B.reduce((te, re) => te + re.key.length, 0)) * 2;
|
|
13897
13903
|
return b.set(y, {
|
|
13898
13904
|
namespace: x,
|
|
13899
13905
|
lastAccess: N,
|
|
13900
|
-
ownBytes:
|
|
13901
|
-
document:
|
|
13906
|
+
ownBytes: J,
|
|
13907
|
+
document: D.document,
|
|
13902
13908
|
head: B,
|
|
13903
|
-
body:
|
|
13909
|
+
body: D.body,
|
|
13904
13910
|
shadow: null
|
|
13905
|
-
}),
|
|
13911
|
+
}), T += J, !0;
|
|
13906
13912
|
}
|
|
13907
13913
|
function yf(y, I) {
|
|
13908
13914
|
let x = w.get(y);
|
|
13909
13915
|
x || (x = /* @__PURE__ */ new Map(), w.set(y, x));
|
|
13910
13916
|
const N = x.get(I);
|
|
13911
13917
|
if (N) return N;
|
|
13912
|
-
const
|
|
13913
|
-
if (!
|
|
13914
|
-
const B =
|
|
13915
|
-
let
|
|
13918
|
+
const D = y.assets.stylesheets[I];
|
|
13919
|
+
if (!D) return null;
|
|
13920
|
+
const B = D.match(/^<style\b([^>]*)>([\s\S]*?)<\/style\s*>$/i);
|
|
13921
|
+
let J = null;
|
|
13916
13922
|
if (B) {
|
|
13917
13923
|
const te = Ta(B[1] ?? ""), re = B[2] ?? "";
|
|
13918
|
-
|
|
13924
|
+
J = {
|
|
13919
13925
|
kind: "stylesheet",
|
|
13920
13926
|
key: I,
|
|
13921
13927
|
cssText: te ? `@media ${te}{${re}}` : re
|
|
13922
13928
|
};
|
|
13923
|
-
} else /^<link\b/i.test(
|
|
13924
|
-
return
|
|
13929
|
+
} else /^<link\b/i.test(D) && (J = { kind: "link", html: D });
|
|
13930
|
+
return J && x.set(I, J), J;
|
|
13925
13931
|
}
|
|
13926
13932
|
function bf(y) {
|
|
13927
13933
|
if (y.shadow) return y.shadow;
|
|
@@ -13929,11 +13935,11 @@ function Hw(t = {}) {
|
|
|
13929
13935
|
if (!I)
|
|
13930
13936
|
throw new Error(`Route preview artifact frame not found:${y.frameId}`);
|
|
13931
13937
|
const x = [], N = [];
|
|
13932
|
-
for (const
|
|
13933
|
-
if (
|
|
13938
|
+
for (const D of I.head) {
|
|
13939
|
+
if (D.kind !== "stylesheet") continue;
|
|
13934
13940
|
const B = yf(
|
|
13935
13941
|
y.bundle,
|
|
13936
|
-
|
|
13942
|
+
D.hash
|
|
13937
13943
|
);
|
|
13938
13944
|
if (B) {
|
|
13939
13945
|
if (B.kind === "link") {
|
|
@@ -13976,15 +13982,15 @@ function Hw(t = {}) {
|
|
|
13976
13982
|
}
|
|
13977
13983
|
function Sf(y, I) {
|
|
13978
13984
|
var $e;
|
|
13979
|
-
const x = Ke(I.namespace), N = (y == null ? void 0 : y.version) === 2 ? ss(y) : null,
|
|
13980
|
-
if (!y || y.version !== 1 && y.version !== 2 && y.version !== 3 || typeof y.namespace != "string" || !y.namespace.trim() || y.namespace !== y.namespace.trim() || y.sourceRevision != null && (typeof y.sourceRevision != "string" || !y.sourceRevision.trim() || y.sourceRevision !== y.sourceRevision.trim()) || y.version === 1 && (!y.snapshots || typeof y.snapshots != "object" || Array.isArray(y.snapshots)) || y.version === 2 && !(N != null && N.valid) || y.version === 3 && !(
|
|
13985
|
+
const x = Ke(I.namespace), N = (y == null ? void 0 : y.version) === 2 ? ss(y) : null, D = (y == null ? void 0 : y.version) === 3 ? os(y) : null;
|
|
13986
|
+
if (!y || y.version !== 1 && y.version !== 2 && y.version !== 3 || typeof y.namespace != "string" || !y.namespace.trim() || y.namespace !== y.namespace.trim() || y.sourceRevision != null && (typeof y.sourceRevision != "string" || !y.sourceRevision.trim() || y.sourceRevision !== y.sourceRevision.trim()) || y.version === 1 && (!y.snapshots || typeof y.snapshots != "object" || Array.isArray(y.snapshots)) || y.version === 2 && !(N != null && N.valid) || y.version === 3 && !(D != null && D.valid))
|
|
13981
13987
|
return { accepted: 0, rejected: 0, reason: "invalid-bundle" };
|
|
13982
13988
|
const B = y.namespace !== x;
|
|
13983
13989
|
if (B && !I.allowStaleIdentity)
|
|
13984
13990
|
return { accepted: 0, rejected: 0, reason: "namespace-mismatch" };
|
|
13985
|
-
const
|
|
13991
|
+
const J = ka(
|
|
13986
13992
|
I.previewRevision
|
|
13987
|
-
), te = y.sourceRevision != null && y.sourceRevision !==
|
|
13993
|
+
), te = y.sourceRevision != null && y.sourceRevision !== J;
|
|
13988
13994
|
if (te && !I.allowStaleIdentity)
|
|
13989
13995
|
return { accepted: 0, rejected: 0, reason: "revision-mismatch" };
|
|
13990
13996
|
const re = B || te, ee = (ve, Fe) => {
|
|
@@ -14047,7 +14053,7 @@ function Hw(t = {}) {
|
|
|
14047
14053
|
if (y.version === 3) {
|
|
14048
14054
|
const Wt = y.frames[Fe];
|
|
14049
14055
|
if (!Wt) continue;
|
|
14050
|
-
const
|
|
14056
|
+
const Jr = ve.fingerprint != null && Wt.fingerprint === ve.fingerprint, za = re && !(I.allowMatchingFrameIdentity && Jr) || ve.fingerprint != null && !Jr;
|
|
14051
14057
|
if (f.set(ke, {
|
|
14052
14058
|
status: Wt.status,
|
|
14053
14059
|
diagnostics: Wt.diagnostics,
|
|
@@ -14074,11 +14080,11 @@ function Hw(t = {}) {
|
|
|
14074
14080
|
}
|
|
14075
14081
|
if (y.version === 2) {
|
|
14076
14082
|
if (!y.frames[Fe]) continue;
|
|
14077
|
-
const
|
|
14083
|
+
const Jr = us(I.appOrigin, qt);
|
|
14078
14084
|
d.delete(ke), l.set(ke, {
|
|
14079
14085
|
bundle: y,
|
|
14080
14086
|
frameId: Fe,
|
|
14081
|
-
previewBase:
|
|
14087
|
+
previewBase: Jr,
|
|
14082
14088
|
shadow: null
|
|
14083
14089
|
}), f.set(ke, {
|
|
14084
14090
|
status: "ready",
|
|
@@ -14148,9 +14154,9 @@ function Hw(t = {}) {
|
|
|
14148
14154
|
return new Promise((I, x) => {
|
|
14149
14155
|
const N = y.open(jw, 1);
|
|
14150
14156
|
N.onupgradeneeded = () => {
|
|
14151
|
-
const
|
|
14152
|
-
if (
|
|
14153
|
-
const B =
|
|
14157
|
+
const D = N.result;
|
|
14158
|
+
if (D.objectStoreNames.contains(qe)) return;
|
|
14159
|
+
const B = D.createObjectStore(qe, {
|
|
14154
14160
|
keyPath: "key"
|
|
14155
14161
|
});
|
|
14156
14162
|
B.createIndex("namespace", "namespace", { unique: !1 }), B.createIndex("lastAccess", "lastAccess", { unique: !1 });
|
|
@@ -14165,14 +14171,14 @@ function Hw(t = {}) {
|
|
|
14165
14171
|
this.database = I;
|
|
14166
14172
|
}
|
|
14167
14173
|
async read(I) {
|
|
14168
|
-
const x = this.database.transaction(qe, "readonly"), N = bn(x),
|
|
14174
|
+
const x = this.database.transaction(qe, "readonly"), N = bn(x), D = await ds(
|
|
14169
14175
|
x.objectStore(qe).get(I)
|
|
14170
14176
|
);
|
|
14171
|
-
return await N,
|
|
14177
|
+
return await N, D;
|
|
14172
14178
|
}
|
|
14173
14179
|
async readMany(I) {
|
|
14174
|
-
const x = this.database.transaction(qe, "readonly"), N = bn(x),
|
|
14175
|
-
return await N, new Map(I.map((te, re) => [te,
|
|
14180
|
+
const x = this.database.transaction(qe, "readonly"), N = bn(x), D = x.objectStore(qe), B = I.map((te) => ds(D.get(te))), J = await Promise.all(B);
|
|
14181
|
+
return await N, new Map(I.map((te, re) => [te, J[re]]));
|
|
14176
14182
|
}
|
|
14177
14183
|
async write(I) {
|
|
14178
14184
|
const x = this.database.transaction(
|
|
@@ -14201,27 +14207,27 @@ function Hw(t = {}) {
|
|
|
14201
14207
|
I.objectStore(qe).getAll()
|
|
14202
14208
|
);
|
|
14203
14209
|
await x;
|
|
14204
|
-
const
|
|
14205
|
-
if (!
|
|
14210
|
+
const D = zw(N);
|
|
14211
|
+
if (!D.length) return;
|
|
14206
14212
|
const B = this.database.transaction(
|
|
14207
14213
|
qe,
|
|
14208
14214
|
"readwrite"
|
|
14209
|
-
),
|
|
14210
|
-
|
|
14215
|
+
), J = bn(B), te = B.objectStore(qe);
|
|
14216
|
+
D.forEach((re) => te.delete(re)), await J;
|
|
14211
14217
|
}
|
|
14212
14218
|
async remove(I) {
|
|
14213
14219
|
const x = this.database.transaction(qe, "readwrite"), N = bn(x);
|
|
14214
14220
|
x.objectStore(qe).delete(I), await N;
|
|
14215
14221
|
}
|
|
14216
14222
|
async clear(I) {
|
|
14217
|
-
const x = this.database.transaction(qe, "readwrite"), N = bn(x),
|
|
14223
|
+
const x = this.database.transaction(qe, "readwrite"), N = bn(x), D = x.objectStore(qe);
|
|
14218
14224
|
if (!I)
|
|
14219
|
-
|
|
14225
|
+
D.clear();
|
|
14220
14226
|
else {
|
|
14221
|
-
const B =
|
|
14227
|
+
const B = D.index("namespace").openKeyCursor(IDBKeyRange.only(I));
|
|
14222
14228
|
B.onsuccess = () => {
|
|
14223
|
-
const
|
|
14224
|
-
|
|
14229
|
+
const J = B.result;
|
|
14230
|
+
J && (D.delete(J.primaryKey), J.continue());
|
|
14225
14231
|
};
|
|
14226
14232
|
}
|
|
14227
14233
|
await N;
|
|
@@ -14262,21 +14268,21 @@ function Hw(t = {}) {
|
|
|
14262
14268
|
const N = $.get(y);
|
|
14263
14269
|
if (N)
|
|
14264
14270
|
return N.request.priority = Math.min(N.request.priority, I), fs(), N.promise;
|
|
14265
|
-
let
|
|
14266
|
-
const B = new Promise((
|
|
14267
|
-
|
|
14271
|
+
let D;
|
|
14272
|
+
const B = new Promise((J, te) => {
|
|
14273
|
+
D = {
|
|
14268
14274
|
key: y,
|
|
14269
14275
|
order: _++,
|
|
14270
14276
|
priority: Number.isFinite(I) ? I : 0,
|
|
14271
14277
|
task: x,
|
|
14272
|
-
resolve:
|
|
14278
|
+
resolve: J,
|
|
14273
14279
|
reject: te
|
|
14274
14280
|
};
|
|
14275
14281
|
});
|
|
14276
14282
|
return $.set(y, {
|
|
14277
14283
|
promise: B,
|
|
14278
|
-
request:
|
|
14279
|
-
}), M.push(
|
|
14284
|
+
request: D
|
|
14285
|
+
}), M.push(D), fs(), B;
|
|
14280
14286
|
}
|
|
14281
14287
|
function or() {
|
|
14282
14288
|
a || (a = !0, queueMicrotask(() => {
|
|
@@ -14291,9 +14297,9 @@ function Hw(t = {}) {
|
|
|
14291
14297
|
function Cf() {
|
|
14292
14298
|
if (Pf(), u.length === 0) return null;
|
|
14293
14299
|
let y = 0, I = 0;
|
|
14294
|
-
for (let
|
|
14295
|
-
const B = u[
|
|
14296
|
-
B.order <
|
|
14300
|
+
for (let D = 1; D < u.length; D += 1) {
|
|
14301
|
+
const B = u[D], J = u[y], te = u[I];
|
|
14302
|
+
B.order < J.order && (y = D), (B.priority < te.priority || B.priority === te.priority && B.order < te.order) && (I = D);
|
|
14297
14303
|
}
|
|
14298
14304
|
const N = I !== y && o >= Rw ? y : I;
|
|
14299
14305
|
return N === y ? o = 0 : o += 1, u.splice(N, 1)[0] ?? null;
|
|
@@ -14325,8 +14331,8 @@ function Hw(t = {}) {
|
|
|
14325
14331
|
}),
|
|
14326
14332
|
updatePriority: (N) => {
|
|
14327
14333
|
if (I.cancelled || I.release) return;
|
|
14328
|
-
const
|
|
14329
|
-
I.priority = Math.min(I.priority,
|
|
14334
|
+
const D = Number.isFinite(N) ? N : 0;
|
|
14335
|
+
I.priority = Math.min(I.priority, D), or();
|
|
14330
14336
|
},
|
|
14331
14337
|
cancel: () => {
|
|
14332
14338
|
var N;
|
|
@@ -14339,7 +14345,7 @@ function Hw(t = {}) {
|
|
|
14339
14345
|
r = Math.min(Qd, Math.max(1, I)), or();
|
|
14340
14346
|
}
|
|
14341
14347
|
function ar(y) {
|
|
14342
|
-
var
|
|
14348
|
+
var J;
|
|
14343
14349
|
const I = c.get(y);
|
|
14344
14350
|
if (I)
|
|
14345
14351
|
return c.delete(y), I.lastAccess = Date.now(), c.set(y, I), I.value;
|
|
@@ -14348,38 +14354,38 @@ function Hw(t = {}) {
|
|
|
14348
14354
|
return b.delete(y), x.lastAccess = Date.now(), b.set(y, x), mf(x);
|
|
14349
14355
|
const N = l.get(y);
|
|
14350
14356
|
if (!N) return null;
|
|
14351
|
-
const
|
|
14357
|
+
const D = Md(
|
|
14352
14358
|
N.bundle,
|
|
14353
14359
|
N.frameId
|
|
14354
14360
|
);
|
|
14355
|
-
if (
|
|
14361
|
+
if (D == null) return null;
|
|
14356
14362
|
const B = Bn(
|
|
14357
|
-
|
|
14363
|
+
D,
|
|
14358
14364
|
N.previewBase
|
|
14359
14365
|
);
|
|
14360
|
-
return ((
|
|
14366
|
+
return ((J = f.get(y)) == null ? void 0 : J.stale) !== !0 && Ur(B) && !d.has(y) && (d.add(y), ps(y, B)), B;
|
|
14361
14367
|
}
|
|
14362
14368
|
function hs(y, I, x = Hn(y), N = Date.now()) {
|
|
14363
14369
|
var te, re, ee;
|
|
14364
|
-
const
|
|
14365
|
-
if (!y || !Ur(I) ||
|
|
14370
|
+
const D = I.length * 2;
|
|
14371
|
+
if (!y || !Ur(I) || D > Ws)
|
|
14366
14372
|
return !1;
|
|
14367
14373
|
l.delete(y), Kr(y);
|
|
14368
14374
|
const B = c.get(y);
|
|
14369
|
-
B && (
|
|
14370
|
-
const
|
|
14371
|
-
vf(y, I,
|
|
14372
|
-
bytes:
|
|
14375
|
+
B && (T -= B.bytes, c.delete(y));
|
|
14376
|
+
const J = Ke(x);
|
|
14377
|
+
vf(y, I, J, N) || (c.set(y, {
|
|
14378
|
+
bytes: D,
|
|
14373
14379
|
value: I,
|
|
14374
|
-
namespace:
|
|
14380
|
+
namespace: J,
|
|
14375
14381
|
lastAccess: N
|
|
14376
|
-
}),
|
|
14382
|
+
}), T += D), Nt();
|
|
14377
14383
|
try {
|
|
14378
|
-
for (((te = f.get(y)) == null ? void 0 : te.stale) === !0 && (f.delete(y), Te({ key: y })); c.size + b.size > $w ||
|
|
14384
|
+
for (((te = f.get(y)) == null ? void 0 : te.stale) === !0 && (f.delete(y), Te({ key: y })); c.size + b.size > $w || T > Tw; ) {
|
|
14379
14385
|
const ie = c.keys().next().value, pe = b.keys().next().value, se = ie ? ((re = c.get(ie)) == null ? void 0 : re.lastAccess) ?? Number.POSITIVE_INFINITY : Number.POSITIVE_INFINITY, $e = pe ? ((ee = b.get(pe)) == null ? void 0 : ee.lastAccess) ?? Number.POSITIVE_INFINITY : Number.POSITIVE_INFINITY, ve = se <= $e ? ie : pe;
|
|
14380
14386
|
if (!ve) break;
|
|
14381
14387
|
const Fe = c.get(ve);
|
|
14382
|
-
Fe ? (
|
|
14388
|
+
Fe ? (T -= Fe.bytes, c.delete(ve)) : Kr(ve), A.delete(ve), _e(ve);
|
|
14383
14389
|
}
|
|
14384
14390
|
A.add(y), _e(y);
|
|
14385
14391
|
} finally {
|
|
@@ -14418,18 +14424,18 @@ function Hw(t = {}) {
|
|
|
14418
14424
|
if (A.has(y)) return Promise.resolve(null);
|
|
14419
14425
|
const x = U.get(y);
|
|
14420
14426
|
if (x) return x;
|
|
14421
|
-
const N = E,
|
|
14427
|
+
const N = E, D = (async () => {
|
|
14422
14428
|
const B = await qr();
|
|
14423
14429
|
if (!B) return null;
|
|
14424
|
-
let
|
|
14430
|
+
let J;
|
|
14425
14431
|
try {
|
|
14426
|
-
|
|
14432
|
+
J = await B.read(y);
|
|
14427
14433
|
} catch {
|
|
14428
14434
|
return A.add(y), null;
|
|
14429
14435
|
}
|
|
14430
|
-
const te = Fa(
|
|
14436
|
+
const te = Fa(J, y);
|
|
14431
14437
|
if (!te) {
|
|
14432
|
-
if (
|
|
14438
|
+
if (J != null)
|
|
14433
14439
|
try {
|
|
14434
14440
|
await B.remove(y);
|
|
14435
14441
|
} catch {
|
|
@@ -14445,9 +14451,9 @@ function Hw(t = {}) {
|
|
|
14445
14451
|
re
|
|
14446
14452
|
), A.add(y), ps(y, te.snapshot, re), te.snapshot;
|
|
14447
14453
|
})().finally(() => {
|
|
14448
|
-
U.get(y) ===
|
|
14454
|
+
U.get(y) === D && U.delete(y);
|
|
14449
14455
|
});
|
|
14450
|
-
return U.set(y,
|
|
14456
|
+
return U.set(y, D), D;
|
|
14451
14457
|
}
|
|
14452
14458
|
async function Rf(y) {
|
|
14453
14459
|
const I = [...new Set(y.filter(Boolean))], x = /* @__PURE__ */ new Map(), N = [];
|
|
@@ -14457,8 +14463,8 @@ function Hw(t = {}) {
|
|
|
14457
14463
|
pe ? x.set(ie, pe) : A.has(ie) || N.push(ie);
|
|
14458
14464
|
}
|
|
14459
14465
|
if (!N.length) return x;
|
|
14460
|
-
const
|
|
14461
|
-
if (!
|
|
14466
|
+
const D = await qr();
|
|
14467
|
+
if (!D) {
|
|
14462
14468
|
Nt();
|
|
14463
14469
|
try {
|
|
14464
14470
|
N.forEach((ie) => {
|
|
@@ -14469,7 +14475,7 @@ function Hw(t = {}) {
|
|
|
14469
14475
|
}
|
|
14470
14476
|
return x;
|
|
14471
14477
|
}
|
|
14472
|
-
const B =
|
|
14478
|
+
const B = D, J = E, te = Array.from(
|
|
14473
14479
|
{ length: Math.ceil(N.length / Gs) },
|
|
14474
14480
|
(ie, pe) => N.slice(
|
|
14475
14481
|
pe * Gs,
|
|
@@ -14510,7 +14516,7 @@ function Hw(t = {}) {
|
|
|
14510
14516
|
}
|
|
14511
14517
|
return;
|
|
14512
14518
|
}
|
|
14513
|
-
if (E !==
|
|
14519
|
+
if (E !== J) return;
|
|
14514
14520
|
const Fe = Date.now();
|
|
14515
14521
|
hs(
|
|
14516
14522
|
se,
|
|
@@ -14538,12 +14544,12 @@ function Hw(t = {}) {
|
|
|
14538
14544
|
function $f(y) {
|
|
14539
14545
|
const I = y ? Ke(y) : null;
|
|
14540
14546
|
if (!I)
|
|
14541
|
-
c.clear(), b.clear(), g.clear(), m.clear(), l.clear(), d.clear(), f.clear(), h.clear(),
|
|
14547
|
+
c.clear(), b.clear(), g.clear(), m.clear(), l.clear(), d.clear(), f.clear(), h.clear(), T = 0;
|
|
14542
14548
|
else {
|
|
14543
|
-
for (const [N,
|
|
14544
|
-
|
|
14545
|
-
for (const [N,
|
|
14546
|
-
|
|
14549
|
+
for (const [N, D] of c)
|
|
14550
|
+
D.namespace === I && (c.delete(N), T -= D.bytes);
|
|
14551
|
+
for (const [N, D] of [...b])
|
|
14552
|
+
D.namespace === I && Kr(N);
|
|
14547
14553
|
for (const N of l.keys())
|
|
14548
14554
|
Hn(N) === I && (l.delete(N), d.delete(N));
|
|
14549
14555
|
for (const N of f.keys())
|
|
@@ -14568,44 +14574,44 @@ function Hw(t = {}) {
|
|
|
14568
14574
|
const N = S.get(y);
|
|
14569
14575
|
if (N)
|
|
14570
14576
|
return N.ticket.updatePriority(I), N.promise;
|
|
14571
|
-
const
|
|
14572
|
-
const
|
|
14577
|
+
const D = Da(I), B = (async () => {
|
|
14578
|
+
const J = await D.promise;
|
|
14573
14579
|
try {
|
|
14574
14580
|
return await x();
|
|
14575
14581
|
} finally {
|
|
14576
|
-
|
|
14582
|
+
J();
|
|
14577
14583
|
}
|
|
14578
14584
|
})();
|
|
14579
|
-
return S.set(y, { promise: B, ticket:
|
|
14585
|
+
return S.set(y, { promise: B, ticket: D }), B.then(
|
|
14580
14586
|
() => {
|
|
14581
|
-
var
|
|
14582
|
-
((
|
|
14587
|
+
var J;
|
|
14588
|
+
((J = S.get(y)) == null ? void 0 : J.promise) === B && S.delete(y);
|
|
14583
14589
|
},
|
|
14584
14590
|
() => {
|
|
14585
|
-
var
|
|
14586
|
-
((
|
|
14591
|
+
var J;
|
|
14592
|
+
((J = S.get(y)) == null ? void 0 : J.promise) === B && S.delete(y);
|
|
14587
14593
|
}
|
|
14588
14594
|
), B;
|
|
14589
14595
|
}
|
|
14590
14596
|
function Tf(y, I, x, N = y) {
|
|
14591
|
-
const
|
|
14592
|
-
if (
|
|
14597
|
+
const D = ar(y);
|
|
14598
|
+
if (D) return Promise.resolve(D);
|
|
14593
14599
|
const B = v.get(N);
|
|
14594
14600
|
if (B) {
|
|
14595
14601
|
B.priority = Math.min(B.priority, I);
|
|
14596
14602
|
const ee = S.get(B.taskKey);
|
|
14597
14603
|
return ee == null || ee.ticket.updatePriority(I), B.promise;
|
|
14598
14604
|
}
|
|
14599
|
-
const
|
|
14605
|
+
const J = E, te = `snapshot:${J}:${N}`, re = {
|
|
14600
14606
|
priority: Number.isFinite(I) ? I : 0,
|
|
14601
14607
|
taskKey: te,
|
|
14602
14608
|
promise: Promise.resolve(null)
|
|
14603
14609
|
};
|
|
14604
|
-
return re.promise = La(y).then((ee) => ee || E !==
|
|
14610
|
+
return re.promise = La(y).then((ee) => ee || E !== J ? ee : ja(te, re.priority, async () => {
|
|
14605
14611
|
const ie = ar(y);
|
|
14606
14612
|
if (ie) return ie;
|
|
14607
14613
|
const pe = await x();
|
|
14608
|
-
return pe && E ===
|
|
14614
|
+
return pe && E === J && ms(y, pe), pe;
|
|
14609
14615
|
})).finally(() => {
|
|
14610
14616
|
v.get(N) === re && v.delete(N);
|
|
14611
14617
|
}), v.set(N, re), re.promise;
|
|
@@ -14616,21 +14622,21 @@ function Hw(t = {}) {
|
|
|
14616
14622
|
), N = I.querySelectorAll(
|
|
14617
14623
|
"input, textarea, select"
|
|
14618
14624
|
);
|
|
14619
|
-
x.forEach((
|
|
14620
|
-
const
|
|
14621
|
-
if (
|
|
14622
|
-
if (
|
|
14623
|
-
const te =
|
|
14625
|
+
x.forEach((D, B) => {
|
|
14626
|
+
const J = N[B];
|
|
14627
|
+
if (J) {
|
|
14628
|
+
if (D.tagName === "INPUT" && J.tagName === "INPUT") {
|
|
14629
|
+
const te = D, re = J;
|
|
14624
14630
|
re.setAttribute("value", te.value), te.checked ? re.setAttribute("checked", "") : re.removeAttribute("checked");
|
|
14625
14631
|
return;
|
|
14626
14632
|
}
|
|
14627
|
-
if (
|
|
14628
|
-
|
|
14633
|
+
if (D.tagName === "TEXTAREA" && J.tagName === "TEXTAREA") {
|
|
14634
|
+
J.textContent = D.value;
|
|
14629
14635
|
return;
|
|
14630
14636
|
}
|
|
14631
|
-
if (
|
|
14632
|
-
const te =
|
|
14633
|
-
Array.from(
|
|
14637
|
+
if (D.tagName === "SELECT" && J.tagName === "SELECT") {
|
|
14638
|
+
const te = D;
|
|
14639
|
+
Array.from(J.options).forEach((ee, ie) => {
|
|
14634
14640
|
var pe;
|
|
14635
14641
|
(pe = te.options[ie]) != null && pe.selected ? ee.setAttribute("selected", "") : ee.removeAttribute("selected");
|
|
14636
14642
|
});
|
|
@@ -14640,12 +14646,12 @@ function Hw(t = {}) {
|
|
|
14640
14646
|
}
|
|
14641
14647
|
function Df(y, I) {
|
|
14642
14648
|
const x = y.querySelectorAll("canvas"), N = I.querySelectorAll("canvas");
|
|
14643
|
-
x.forEach((
|
|
14644
|
-
const
|
|
14645
|
-
if (
|
|
14649
|
+
x.forEach((D, B) => {
|
|
14650
|
+
const J = N[B];
|
|
14651
|
+
if (J)
|
|
14646
14652
|
try {
|
|
14647
14653
|
const te = y.createElement("img");
|
|
14648
|
-
te.src =
|
|
14654
|
+
te.src = D.toDataURL(), te.className = J.className, te.setAttribute("style", J.getAttribute("style") ?? ""), te.width = D.width, te.height = D.height, J.replaceWith(te);
|
|
14649
14655
|
} catch {
|
|
14650
14656
|
}
|
|
14651
14657
|
});
|
|
@@ -14668,10 +14674,10 @@ function Hw(t = {}) {
|
|
|
14668
14674
|
var te, re, ee;
|
|
14669
14675
|
const N = y.documentElement;
|
|
14670
14676
|
if (!N) return;
|
|
14671
|
-
const
|
|
14672
|
-
for (let ie = 0; ie <
|
|
14677
|
+
const D = N.querySelectorAll("*"), B = I.querySelectorAll("*"), J = Math.min(D.length, B.length);
|
|
14678
|
+
for (let ie = 0; ie < J; ie += 1)
|
|
14673
14679
|
try {
|
|
14674
|
-
const pe =
|
|
14680
|
+
const pe = D[ie], se = B[ie], $e = ((te = x.resolveInstance) == null ? void 0 : te.call(x, pe)) ?? null;
|
|
14675
14681
|
if ($e) {
|
|
14676
14682
|
se.setAttribute("data-pygmalion-source-component", $e.sourceId), se.setAttribute("data-pygmalion-source-component-name", $e.name);
|
|
14677
14683
|
const Fe = JSON.stringify($e.primitiveProps);
|
|
@@ -14686,42 +14692,42 @@ function Hw(t = {}) {
|
|
|
14686
14692
|
function jf(y, I, x) {
|
|
14687
14693
|
var N;
|
|
14688
14694
|
try {
|
|
14689
|
-
const
|
|
14690
|
-
if (!(
|
|
14691
|
-
const B =
|
|
14692
|
-
kf(
|
|
14695
|
+
const D = y.contentDocument;
|
|
14696
|
+
if (!(D != null && D.documentElement)) return null;
|
|
14697
|
+
const B = D.documentElement.cloneNode(!0);
|
|
14698
|
+
kf(D, B);
|
|
14693
14699
|
try {
|
|
14694
14700
|
Lf(
|
|
14695
|
-
|
|
14701
|
+
D,
|
|
14696
14702
|
B,
|
|
14697
14703
|
(x == null ? void 0 : x.annotate) ?? Ff()
|
|
14698
14704
|
);
|
|
14699
14705
|
} catch {
|
|
14700
14706
|
}
|
|
14701
14707
|
try {
|
|
14702
|
-
jp(
|
|
14708
|
+
jp(D, B);
|
|
14703
14709
|
} catch {
|
|
14704
14710
|
}
|
|
14705
14711
|
try {
|
|
14706
|
-
ap(
|
|
14712
|
+
ap(D, B);
|
|
14707
14713
|
} catch {
|
|
14708
14714
|
}
|
|
14709
14715
|
try {
|
|
14710
|
-
wb(
|
|
14716
|
+
wb(D, B);
|
|
14711
14717
|
} catch {
|
|
14712
14718
|
}
|
|
14713
|
-
Df(
|
|
14719
|
+
Df(D, B), B.querySelectorAll('script, noscript, iframe, object, embed, link[rel="modulepreload"], link[rel="preload"][as="script"]').forEach((ie) => ie.remove()), B.querySelectorAll("*").forEach((ie) => {
|
|
14714
14720
|
for (const pe of Array.from(ie.attributes))
|
|
14715
14721
|
pe.name.toLowerCase().startsWith("on") && ie.removeAttribute(pe.name);
|
|
14716
14722
|
});
|
|
14717
|
-
const
|
|
14718
|
-
if (!
|
|
14719
|
-
const te =
|
|
14720
|
-
te.httpEquiv = "Content-Security-Policy", te.content = "script-src 'none'; object-src 'none'",
|
|
14721
|
-
const re =
|
|
14723
|
+
const J = B.querySelector("head");
|
|
14724
|
+
if (!J) return null;
|
|
14725
|
+
const te = D.createElement("meta");
|
|
14726
|
+
te.httpEquiv = "Content-Security-Policy", te.content = "script-src 'none'; object-src 'none'", J.prepend(te);
|
|
14727
|
+
const re = D.createElement("base");
|
|
14722
14728
|
re.href = ((N = y.contentWindow) == null ? void 0 : N.location.href) ?? I, te.after(re);
|
|
14723
|
-
const ee =
|
|
14724
|
-
return ee.setAttribute("data-pygmalion-preview", "frozen"), ee.textContent = "*,*::before,*::after{animation-play-state:paused!important;transition:none!important;caret-color:transparent!important}html,body{pointer-events:none!important}",
|
|
14729
|
+
const ee = D.createElement("style");
|
|
14730
|
+
return ee.setAttribute("data-pygmalion-preview", "frozen"), ee.textContent = "*,*::before,*::after{animation-play-state:paused!important;transition:none!important;caret-color:transparent!important}html,body{pointer-events:none!important}", J.append(ee), `<!doctype html>${B.outerHTML}`;
|
|
14725
14731
|
} catch {
|
|
14726
14732
|
return null;
|
|
14727
14733
|
}
|
|
@@ -14734,7 +14740,7 @@ function Hw(t = {}) {
|
|
|
14734
14740
|
subscribeRoutePreviewSnapshotKey: ce,
|
|
14735
14741
|
getRoutePreviewSnapshotKeyVersion: Se,
|
|
14736
14742
|
subscribeRoutePreviewArtifactKey: Be,
|
|
14737
|
-
getRoutePreviewArtifactKeyVersion:
|
|
14743
|
+
getRoutePreviewArtifactKeyVersion: Je,
|
|
14738
14744
|
subscribeRoutePreviewArtifactIdentity: Oe,
|
|
14739
14745
|
getRoutePreviewArtifactIdentityVersion: zr,
|
|
14740
14746
|
subscribeRoutePreviewSlotCount: Vr,
|
|
@@ -14786,7 +14792,7 @@ const Uw = Object.freeze({
|
|
|
14786
14792
|
panY: 40,
|
|
14787
14793
|
zoom: 1
|
|
14788
14794
|
});
|
|
14789
|
-
function
|
|
14795
|
+
function Js(t) {
|
|
14790
14796
|
return t && Number.isFinite(t.panX) && Number.isFinite(t.panY) && Number.isFinite(t.zoom) ? {
|
|
14791
14797
|
panX: t.panX,
|
|
14792
14798
|
panY: t.panY,
|
|
@@ -14916,7 +14922,7 @@ function Su(t, e = {}) {
|
|
|
14916
14922
|
rowWidth: c
|
|
14917
14923
|
};
|
|
14918
14924
|
}
|
|
14919
|
-
function
|
|
14925
|
+
function Jw(t, e = {}) {
|
|
14920
14926
|
if (t.length === 0)
|
|
14921
14927
|
return {
|
|
14922
14928
|
frames: [],
|
|
@@ -14947,8 +14953,8 @@ function Yw(t, e = {}) {
|
|
|
14947
14953
|
let $ = 0;
|
|
14948
14954
|
for (let P = 1; P < h.length; P += 1)
|
|
14949
14955
|
h[P].height < h[$].height && ($ = P);
|
|
14950
|
-
const
|
|
14951
|
-
|
|
14956
|
+
const T = h[$], E = T.frames.length === 0 ? 0 : T.height + n;
|
|
14957
|
+
T.frames.push({ index: M, y: E }), T.width = Math.max(T.width, R.width), T.height = E + R.height;
|
|
14952
14958
|
});
|
|
14953
14959
|
const b = h.reduce((R, M) => R + M.width, 0) + n * Math.max(0, h.length - 1);
|
|
14954
14960
|
if (b > s && f > 1) continue;
|
|
@@ -14982,7 +14988,7 @@ function Yw(t, e = {}) {
|
|
|
14982
14988
|
), { score: l, ...d } = c;
|
|
14983
14989
|
return d;
|
|
14984
14990
|
}
|
|
14985
|
-
function
|
|
14991
|
+
function Yw(t) {
|
|
14986
14992
|
var r;
|
|
14987
14993
|
const e = t.getBoundingClientRect();
|
|
14988
14994
|
if (e.width >= 1 || e.height >= 1) return e;
|
|
@@ -15019,7 +15025,7 @@ function nS(t) {
|
|
|
15019
15025
|
if (!h || h.hidden) continue;
|
|
15020
15026
|
const b = f.path.length === 0 ? s : i(h.id);
|
|
15021
15027
|
if (!b) continue;
|
|
15022
|
-
const g =
|
|
15028
|
+
const g = Yw(b);
|
|
15023
15029
|
if (!g) continue;
|
|
15024
15030
|
const m = (g.x - o.x) / r - f.x, w = (g.y - o.y) / r - f.y, S = g.width / r - f.width, v = g.height / r - f.height, p = Math.max(
|
|
15025
15031
|
Math.abs(m),
|
|
@@ -15143,7 +15149,7 @@ function Ma(t, e, n, r, i) {
|
|
|
15143
15149
|
return !0;
|
|
15144
15150
|
return !1;
|
|
15145
15151
|
}
|
|
15146
|
-
function
|
|
15152
|
+
function Ys(t, e, n) {
|
|
15147
15153
|
for (const r of t) {
|
|
15148
15154
|
let i = null;
|
|
15149
15155
|
if (Ma(r.root, null, null, n, (s, o, a) => s.id !== e ? !1 : (i = { node: s, callSiteIdentity: o, ownIdentity: a, page: r }, !0)), i) return i;
|
|
@@ -15187,7 +15193,7 @@ class uS {
|
|
|
15187
15193
|
}
|
|
15188
15194
|
captureBefore(e, n, r) {
|
|
15189
15195
|
var u;
|
|
15190
|
-
const i =
|
|
15196
|
+
const i = Ys(e, n, this.parseIdentity);
|
|
15191
15197
|
if (!i) return !1;
|
|
15192
15198
|
let s = !1;
|
|
15193
15199
|
if (i.callSiteIdentity && i.node.type === "text" && Object.hasOwn(r, "text")) {
|
|
@@ -15269,7 +15275,7 @@ class uS {
|
|
|
15269
15275
|
var s;
|
|
15270
15276
|
const r = [], i = /* @__PURE__ */ new Map();
|
|
15271
15277
|
for (const o of this.baselines.values()) {
|
|
15272
|
-
const a =
|
|
15278
|
+
const a = Ys(e, o.nodeId, this.parseIdentity);
|
|
15273
15279
|
if (!a) continue;
|
|
15274
15280
|
const u = o.kind === "prop" ? "shared-source" : n(o.nodeId, o.identity);
|
|
15275
15281
|
if (o.kind === "text") {
|
|
@@ -15345,7 +15351,7 @@ class uS {
|
|
|
15345
15351
|
var i;
|
|
15346
15352
|
if (e !== this.revision) return !1;
|
|
15347
15353
|
for (const s of this.baselines.values()) {
|
|
15348
|
-
const o =
|
|
15354
|
+
const o = Ys(n, s.nodeId, this.parseIdentity);
|
|
15349
15355
|
if (o && !(s.kind === "style" && r(s.nodeId, s.identity) === "instance"))
|
|
15350
15356
|
if (s.kind === "text")
|
|
15351
15357
|
s.from = o.node.text;
|
|
@@ -16053,7 +16059,7 @@ ${e}`;
|
|
|
16053
16059
|
switchCanvas(e) {
|
|
16054
16060
|
if (e === this.activeCanvas) return;
|
|
16055
16061
|
this.canvasViews[this.activeCanvas] = { panX: this.panX, panY: this.panY, zoom: this.zoom }, this.activeCanvas = e;
|
|
16056
|
-
const n =
|
|
16062
|
+
const n = Js(this.canvasViews[e]);
|
|
16057
16063
|
this.panX = n.panX, this.panY = n.panY, this.zoom = n.zoom;
|
|
16058
16064
|
const r = this.canvasPages[0];
|
|
16059
16065
|
r && (this.activePageId = r.id, this.activationIntent = "incidental"), this.selectedIds = [], this.selectedCanvasObject = null, this.pendingDesignAssetEdit = null, this.activeDesignAssetEdit = null, this.hoveredId = null, this.editingTextId = null;
|
|
@@ -16474,7 +16480,7 @@ ${e}`;
|
|
|
16474
16480
|
const i = r.canvas ?? "default";
|
|
16475
16481
|
if (i !== this.activeCanvas) {
|
|
16476
16482
|
this.canvasViews[this.activeCanvas] = { panX: this.panX, panY: this.panY, zoom: this.zoom }, this.activeCanvas = i;
|
|
16477
|
-
const a =
|
|
16483
|
+
const a = Js(this.canvasViews[i]);
|
|
16478
16484
|
this.panX = a.panX, this.panY = a.panY, this.zoom = a.zoom;
|
|
16479
16485
|
}
|
|
16480
16486
|
this.previewOpen && !n.fromHistory && this.previewHistory.push(this.activePageId), this.activePageId = e, this.activationIntent = "chosen", this.selectedIds = [], this.selectedCanvasObject = null, this.hoveredId = null, this.editingTextId = null;
|
|
@@ -16656,7 +16662,7 @@ ${e}`;
|
|
|
16656
16662
|
}
|
|
16657
16663
|
let u = n;
|
|
16658
16664
|
for (const c of a.values()) {
|
|
16659
|
-
const l =
|
|
16665
|
+
const l = Jw(
|
|
16660
16666
|
c.map((d) => ({
|
|
16661
16667
|
width: d.width ?? 1,
|
|
16662
16668
|
height: d.height ?? 1
|
|
@@ -16797,7 +16803,7 @@ ${e}`;
|
|
|
16797
16803
|
this.revealScreenState(a);
|
|
16798
16804
|
const u = a.canvas ?? "default";
|
|
16799
16805
|
this.activeCanvas = u;
|
|
16800
|
-
const c =
|
|
16806
|
+
const c = Js(this.canvasViews[u]);
|
|
16801
16807
|
this.panX = c.panX, this.panY = c.panY, this.zoom = c.zoom, this.activePageId = a.id, this.activationIntent = "chosen", this.selectedIds = [], this.selectedCanvasObject = null, this.hoveredId = null, this.editingTextId = null;
|
|
16802
16808
|
}
|
|
16803
16809
|
}
|
|
@@ -18160,7 +18166,7 @@ function LS({
|
|
|
18160
18166
|
"style[data-pygmalion-frozen-overrides]"
|
|
18161
18167
|
);
|
|
18162
18168
|
m ? $ || ($ = _.createElement("style"), $.dataset.pygmalionFrozenOverrides = "", _.head.append($)) : $ == null || $.remove(), $ && $.textContent !== m && ($.textContent = m), u.current();
|
|
18163
|
-
const
|
|
18169
|
+
const T = [];
|
|
18164
18170
|
let E = 0, P = 0;
|
|
18165
18171
|
for (const A of w)
|
|
18166
18172
|
try {
|
|
@@ -18169,57 +18175,57 @@ function LS({
|
|
|
18169
18175
|
M.push(`Style selector cannot be applied:${A.key}`);
|
|
18170
18176
|
}
|
|
18171
18177
|
for (const A of S) {
|
|
18172
|
-
let
|
|
18178
|
+
let L = [];
|
|
18173
18179
|
try {
|
|
18174
|
-
|
|
18180
|
+
L = [..._.querySelectorAll(A.selector)];
|
|
18175
18181
|
} catch {
|
|
18176
18182
|
M.push(`DOM selector cannot be applied:${A.key}`);
|
|
18177
18183
|
continue;
|
|
18178
18184
|
}
|
|
18179
|
-
if (A.staleReason &&
|
|
18180
|
-
M.push(A.staleReason), (A.component || A.key.endsWith(":component-props")) && (P +=
|
|
18185
|
+
if (A.staleReason && L.length > 0) {
|
|
18186
|
+
M.push(A.staleReason), (A.component || A.key.endsWith(":component-props")) && (P += L.length);
|
|
18181
18187
|
continue;
|
|
18182
18188
|
}
|
|
18183
|
-
for (const
|
|
18189
|
+
for (const k of L) {
|
|
18184
18190
|
if (A.component) {
|
|
18185
18191
|
const G = A.component, O = o.declarations.getRegistry()[G.name];
|
|
18186
18192
|
if (!O) {
|
|
18187
18193
|
M.push(
|
|
18188
18194
|
`Component registry entry not found:${G.name}`
|
|
18189
|
-
), P += 1,
|
|
18190
|
-
|
|
18195
|
+
), P += 1, k.setAttribute("data-pygmalion-sandbox-replay", "stale"), T.push(() => {
|
|
18196
|
+
k.removeAttribute("data-pygmalion-sandbox-replay");
|
|
18191
18197
|
});
|
|
18192
18198
|
continue;
|
|
18193
18199
|
}
|
|
18194
18200
|
if (O.children === "nodes") {
|
|
18195
18201
|
M.push(
|
|
18196
18202
|
"Components that use node children cannot be safely replayed in a frozen sandbox."
|
|
18197
|
-
), P += 1,
|
|
18198
|
-
|
|
18203
|
+
), P += 1, k.setAttribute("data-pygmalion-sandbox-replay", "stale"), T.push(() => {
|
|
18204
|
+
k.removeAttribute("data-pygmalion-sandbox-replay");
|
|
18199
18205
|
});
|
|
18200
18206
|
continue;
|
|
18201
18207
|
}
|
|
18202
18208
|
const H = _.createElement("pygmalion-sandbox-root");
|
|
18203
|
-
H.setAttribute("data-pygmalion-sandbox-replay", "applied"), H.style.display = "contents",
|
|
18204
|
-
const q =
|
|
18205
|
-
|
|
18209
|
+
H.setAttribute("data-pygmalion-sandbox-replay", "applied"), H.style.display = "contents", k.before(H);
|
|
18210
|
+
const q = k.hasAttribute("hidden");
|
|
18211
|
+
k.setAttribute("hidden", ""), k.setAttribute("data-pygmalion-sandbox-replay", "source");
|
|
18206
18212
|
let V = Fu(H);
|
|
18207
18213
|
const z = () => {
|
|
18208
|
-
const
|
|
18209
|
-
V = null, H.remove(),
|
|
18214
|
+
const Y = V;
|
|
18215
|
+
V = null, H.remove(), k.toggleAttribute("hidden", q), k.removeAttribute("data-pygmalion-sandbox-replay"), Y && queueMicrotask(() => Y.unmount());
|
|
18210
18216
|
};
|
|
18211
|
-
|
|
18212
|
-
const X = (
|
|
18217
|
+
T.push(z);
|
|
18218
|
+
const X = (Y) => {
|
|
18213
18219
|
if (d.current !== R) return;
|
|
18214
18220
|
P += 1;
|
|
18215
|
-
const oe =
|
|
18216
|
-
M.push(me), H.setAttribute("data-pygmalion-sandbox-replay", "stale"),
|
|
18221
|
+
const oe = Y instanceof Error ? Y.message : String(Y), me = `Component sandbox rendering failed:${G.name} · ${oe}`;
|
|
18222
|
+
M.push(me), H.setAttribute("data-pygmalion-sandbox-replay", "stale"), k.toggleAttribute("hidden", q), g("stale"), h((ge) => {
|
|
18217
18223
|
const de = [.../* @__PURE__ */ new Set([...ge, me])];
|
|
18218
18224
|
return s == null || s(de), de;
|
|
18219
18225
|
});
|
|
18220
18226
|
};
|
|
18221
18227
|
try {
|
|
18222
|
-
const
|
|
18228
|
+
const Y = O.children === "text" ? G.childrenText : void 0;
|
|
18223
18229
|
V == null || V.render(
|
|
18224
18230
|
Ai(
|
|
18225
18231
|
FS,
|
|
@@ -18227,55 +18233,55 @@ function LS({
|
|
|
18227
18233
|
Ai(
|
|
18228
18234
|
O.component,
|
|
18229
18235
|
{ ...G.props },
|
|
18230
|
-
|
|
18236
|
+
Y
|
|
18231
18237
|
)
|
|
18232
18238
|
)
|
|
18233
18239
|
), E += 1;
|
|
18234
|
-
} catch (
|
|
18235
|
-
X(
|
|
18240
|
+
} catch (Y) {
|
|
18241
|
+
X(Y);
|
|
18236
18242
|
}
|
|
18237
18243
|
continue;
|
|
18238
18244
|
}
|
|
18239
18245
|
if (A.hidden != null) {
|
|
18240
|
-
const G =
|
|
18241
|
-
|
|
18246
|
+
const G = k.hasAttribute("hidden");
|
|
18247
|
+
k.toggleAttribute("hidden", A.hidden), T.push(() => k.toggleAttribute("hidden", G));
|
|
18242
18248
|
}
|
|
18243
18249
|
if (A.attributes)
|
|
18244
18250
|
for (const [G, O] of Object.entries(A.attributes)) {
|
|
18245
|
-
const H =
|
|
18246
|
-
O == null ?
|
|
18247
|
-
H == null ?
|
|
18251
|
+
const H = k.getAttribute(G);
|
|
18252
|
+
O == null ? k.removeAttribute(G) : k.setAttribute(G, O), T.push(() => {
|
|
18253
|
+
H == null ? k.removeAttribute(G) : k.setAttribute(G, H);
|
|
18248
18254
|
});
|
|
18249
18255
|
}
|
|
18250
18256
|
if (A.replaceChildrenHtml != null) {
|
|
18251
|
-
const G =
|
|
18252
|
-
|
|
18253
|
-
|
|
18257
|
+
const G = k.innerHTML;
|
|
18258
|
+
k.innerHTML = A.replaceChildrenHtml, T.push(() => {
|
|
18259
|
+
k.innerHTML = G;
|
|
18254
18260
|
});
|
|
18255
18261
|
}
|
|
18256
18262
|
if (A.text == null) continue;
|
|
18257
18263
|
if (A.textNodeOrdinal == null) {
|
|
18258
|
-
const G =
|
|
18259
|
-
|
|
18260
|
-
|
|
18264
|
+
const G = k.textContent;
|
|
18265
|
+
k.textContent = A.text, T.push(() => {
|
|
18266
|
+
k.textContent = G;
|
|
18261
18267
|
});
|
|
18262
18268
|
continue;
|
|
18263
18269
|
}
|
|
18264
|
-
const
|
|
18270
|
+
const F = ((U = _.defaultView) == null ? void 0 : U.Node.TEXT_NODE) ?? 3, Q = [...k.childNodes].filter(
|
|
18265
18271
|
(G) => {
|
|
18266
18272
|
var O;
|
|
18267
|
-
return G.nodeType ===
|
|
18273
|
+
return G.nodeType === F && !!((O = G.textContent) != null && O.trim());
|
|
18268
18274
|
}
|
|
18269
18275
|
)[A.textNodeOrdinal];
|
|
18270
18276
|
if (!Q) continue;
|
|
18271
18277
|
const ue = Q.textContent;
|
|
18272
|
-
Q.textContent = A.text,
|
|
18278
|
+
Q.textContent = A.text, T.push(() => {
|
|
18273
18279
|
Q.textContent = ue;
|
|
18274
18280
|
});
|
|
18275
18281
|
}
|
|
18276
18282
|
}
|
|
18277
18283
|
u.current = () => {
|
|
18278
|
-
for (const A of
|
|
18284
|
+
for (const A of T.reverse()) A();
|
|
18279
18285
|
};
|
|
18280
18286
|
const j = [...new Set(M)];
|
|
18281
18287
|
g(
|
|
@@ -18489,7 +18495,7 @@ function mI(t) {
|
|
|
18489
18495
|
...t.recipe ? { recipe: t.recipe } : {}
|
|
18490
18496
|
};
|
|
18491
18497
|
}
|
|
18492
|
-
const GS = 6,
|
|
18498
|
+
const GS = 6, JS = 2, YS = 1;
|
|
18493
18499
|
function Mu(t, e) {
|
|
18494
18500
|
const n = [];
|
|
18495
18501
|
for (let r = 0; r < t.length; r += e)
|
|
@@ -18555,12 +18561,12 @@ function ZS() {
|
|
|
18555
18561
|
function u(c, l = {}) {
|
|
18556
18562
|
const d = Math.max(
|
|
18557
18563
|
1,
|
|
18558
|
-
l.activeInFlight ??
|
|
18564
|
+
l.activeInFlight ?? JS
|
|
18559
18565
|
), f = Math.max(
|
|
18560
18566
|
1,
|
|
18561
|
-
l.backgroundInFlight ??
|
|
18567
|
+
l.backgroundInFlight ?? YS
|
|
18562
18568
|
), h = c.notPreparedRetryMs ?? XS, b = c.setTimeout ?? ((G, O) => setTimeout(G, O)), g = c.clearTimeout ?? ((G) => clearTimeout(G));
|
|
18563
|
-
let m = 0, w = 0, S = [], v = [], p = 0, _ = 0, R = 0, M = 0, $ = "idle",
|
|
18569
|
+
let m = 0, w = 0, S = [], v = [], p = 0, _ = 0, R = 0, M = 0, $ = "idle", T = null;
|
|
18564
18570
|
const E = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set(), j = () => ({
|
|
18565
18571
|
phase: $,
|
|
18566
18572
|
pending: S.length + v.length,
|
|
@@ -18575,7 +18581,7 @@ function ZS() {
|
|
|
18575
18581
|
for (const O of G.frames)
|
|
18576
18582
|
P.delete(fi(O));
|
|
18577
18583
|
}
|
|
18578
|
-
function
|
|
18584
|
+
function L(G) {
|
|
18579
18585
|
if (G.claimed) return G;
|
|
18580
18586
|
const O = G.frames.filter(
|
|
18581
18587
|
(H) => !P.has(fi(H))
|
|
@@ -18585,8 +18591,8 @@ function ZS() {
|
|
|
18585
18591
|
P.add(fi(H));
|
|
18586
18592
|
return { ...G, frames: O, claimed: !0 };
|
|
18587
18593
|
}
|
|
18588
|
-
function
|
|
18589
|
-
const H =
|
|
18594
|
+
function k(G, O) {
|
|
18595
|
+
const H = T == null ? O : !G.frames.some((q) => q.canvas === T);
|
|
18590
18596
|
return {
|
|
18591
18597
|
chunk: {
|
|
18592
18598
|
...G,
|
|
@@ -18595,20 +18601,20 @@ function ZS() {
|
|
|
18595
18601
|
background: H
|
|
18596
18602
|
};
|
|
18597
18603
|
}
|
|
18598
|
-
function
|
|
18599
|
-
const H =
|
|
18604
|
+
function F(G, O) {
|
|
18605
|
+
const H = k(G, O);
|
|
18600
18606
|
H.background ? v.unshift(H.chunk) : S.unshift(H.chunk);
|
|
18601
18607
|
}
|
|
18602
18608
|
function Z(G, O, H) {
|
|
18603
|
-
var
|
|
18609
|
+
var Y;
|
|
18604
18610
|
const q = h[Math.min(G.attempt, h.length - 1)];
|
|
18605
18611
|
if (q == null || G.attempt >= h.length) {
|
|
18606
|
-
A(G), M += G.frames.length, (
|
|
18612
|
+
A(G), M += G.frames.length, (Y = c.release) == null || Y.call(c, G.frames, "The capture runtime did not become ready.");
|
|
18607
18613
|
return;
|
|
18608
18614
|
}
|
|
18609
18615
|
let V;
|
|
18610
18616
|
const z = () => {
|
|
18611
|
-
E.delete(V) && H === m && (
|
|
18617
|
+
E.delete(V) && H === m && (F(
|
|
18612
18618
|
{ ...G, attempt: G.attempt + 1 },
|
|
18613
18619
|
O
|
|
18614
18620
|
), ue(w, m));
|
|
@@ -18616,7 +18622,7 @@ function ZS() {
|
|
|
18616
18622
|
V = { handle: b(z, q), chunk: G, background: O, lifecycleToken: H, fire: z }, E.add(V);
|
|
18617
18623
|
}
|
|
18618
18624
|
function Q(G, O, H, q) {
|
|
18619
|
-
const V =
|
|
18625
|
+
const V = L(G);
|
|
18620
18626
|
if (!V) return;
|
|
18621
18627
|
const z = c.request(V.frames, V.priority, {
|
|
18622
18628
|
// A chunk asked again after "not prepared" must get past the requester's
|
|
@@ -18629,10 +18635,10 @@ function ZS() {
|
|
|
18629
18635
|
}
|
|
18630
18636
|
O ? _ += 1 : p += 1, K(), z.then(
|
|
18631
18637
|
(X) => {
|
|
18632
|
-
var
|
|
18638
|
+
var Y;
|
|
18633
18639
|
if (O ? _ -= 1 : p -= 1, q === m) {
|
|
18634
18640
|
const oe = H === w;
|
|
18635
|
-
oe && (R += 1), X.status === "error" && X.reason === "not-prepared" ? Z(V, O, q) : A(V), oe && X.status === "error" && X.reason !== "not-prepared" && (M += V.frames.length, (
|
|
18641
|
+
oe && (R += 1), X.status === "error" && X.reason === "not-prepared" ? Z(V, O, q) : A(V), oe && X.status === "error" && X.reason !== "not-prepared" && (M += V.frames.length, (Y = c.release) == null || Y.call(
|
|
18636
18642
|
c,
|
|
18637
18643
|
V.frames,
|
|
18638
18644
|
X.message ?? "The capture endpoint could not answer."
|
|
@@ -18641,8 +18647,8 @@ function ZS() {
|
|
|
18641
18647
|
ue(w, m);
|
|
18642
18648
|
},
|
|
18643
18649
|
(X) => {
|
|
18644
|
-
var
|
|
18645
|
-
O ? _ -= 1 : p -= 1, q === m && A(V), q === m && H === w && (R += 1, M += V.frames.length, (
|
|
18650
|
+
var Y, oe;
|
|
18651
|
+
O ? _ -= 1 : p -= 1, q === m && A(V), q === m && H === w && (R += 1, M += V.frames.length, (Y = c.release) == null || Y.call(
|
|
18646
18652
|
c,
|
|
18647
18653
|
V.frames,
|
|
18648
18654
|
X instanceof Error ? X.message : String(X)
|
|
@@ -18675,10 +18681,10 @@ function ZS() {
|
|
|
18675
18681
|
return {
|
|
18676
18682
|
run(G) {
|
|
18677
18683
|
w += 1;
|
|
18678
|
-
const O =
|
|
18679
|
-
G.activeCanvas != null && (
|
|
18680
|
-
const H = (z) => z.claimed === !0, q = (z, X) => z.flatMap((
|
|
18681
|
-
const oe =
|
|
18684
|
+
const O = T;
|
|
18685
|
+
G.activeCanvas != null && (T = G.activeCanvas);
|
|
18686
|
+
const H = (z) => z.claimed === !0, q = (z, X) => z.flatMap((Y) => {
|
|
18687
|
+
const oe = Y.filter(
|
|
18682
18688
|
(me) => !P.has(fi(me))
|
|
18683
18689
|
);
|
|
18684
18690
|
return oe.length > 0 ? [{ frames: oe, priority: X, attempt: 0 }] : [];
|
|
@@ -18697,10 +18703,10 @@ function ZS() {
|
|
|
18697
18703
|
oi.background
|
|
18698
18704
|
);
|
|
18699
18705
|
for (const z of V)
|
|
18700
|
-
|
|
18701
|
-
if (
|
|
18706
|
+
F(z.chunk, z.background);
|
|
18707
|
+
if (T !== O && T != null)
|
|
18702
18708
|
for (const z of [...E])
|
|
18703
|
-
z.lifecycleToken === m && z.chunk.frames.some((X) => X.canvas ===
|
|
18709
|
+
z.lifecycleToken === m && z.chunk.frames.some((X) => X.canvas === T) && (g(z.handle), z.fire());
|
|
18704
18710
|
(S.length + v.length > 0 || p + _ > 0) && ($ = "running"), ue(w, m);
|
|
18705
18711
|
},
|
|
18706
18712
|
cancel() {
|
|
@@ -18820,51 +18826,51 @@ function r_() {
|
|
|
18820
18826
|
d += 1;
|
|
18821
18827
|
const $ = d;
|
|
18822
18828
|
f = !0, b = M.units.length, g = 0, m = 0;
|
|
18823
|
-
const
|
|
18829
|
+
const T = ((P = o.now) == null ? void 0 : P.call(o)) ?? Date.now();
|
|
18824
18830
|
S("running");
|
|
18825
|
-
for (const
|
|
18831
|
+
for (const L of M.units) {
|
|
18826
18832
|
for (; o.shouldPause(); ) {
|
|
18827
18833
|
if ($ !== d) return;
|
|
18828
18834
|
S("paused"), await w(u);
|
|
18829
18835
|
}
|
|
18830
18836
|
if ($ !== d) return;
|
|
18831
18837
|
S("running");
|
|
18832
|
-
let
|
|
18838
|
+
let k = null;
|
|
18833
18839
|
try {
|
|
18834
|
-
if (
|
|
18835
|
-
v(
|
|
18840
|
+
if (k = await o.leaseInstance(L), $ !== d) {
|
|
18841
|
+
v(k, !1);
|
|
18836
18842
|
return;
|
|
18837
18843
|
}
|
|
18838
|
-
if (h =
|
|
18839
|
-
h ===
|
|
18844
|
+
if (h = k, await o.produce(L, k, () => $ !== d), $ !== d) {
|
|
18845
|
+
h === k && p(!1);
|
|
18840
18846
|
return;
|
|
18841
18847
|
}
|
|
18842
18848
|
g += 1, p(!1);
|
|
18843
|
-
} catch (
|
|
18849
|
+
} catch (F) {
|
|
18844
18850
|
if ($ !== d) return;
|
|
18845
|
-
h =
|
|
18851
|
+
h = k, p(!0), m += 1, (j = o.log) == null || j.call(
|
|
18846
18852
|
o,
|
|
18847
|
-
`Preview sweep unit failed for ${
|
|
18853
|
+
`Preview sweep unit failed for ${L.pageId}: ${F instanceof Error ? F.message : String(F)}`
|
|
18848
18854
|
);
|
|
18849
18855
|
}
|
|
18850
18856
|
S("running");
|
|
18851
18857
|
}
|
|
18852
18858
|
if ($ !== d) return;
|
|
18853
18859
|
const E = M.interactionFrames.slice(0, l);
|
|
18854
|
-
for (let
|
|
18860
|
+
for (let L = 0; L < E.length; L += c) {
|
|
18855
18861
|
if ($ !== d) return;
|
|
18856
18862
|
try {
|
|
18857
|
-
o.requestArtifactFrames(E.slice(
|
|
18858
|
-
} catch (
|
|
18863
|
+
o.requestArtifactFrames(E.slice(L, L + c));
|
|
18864
|
+
} catch (k) {
|
|
18859
18865
|
(K = o.log) == null || K.call(
|
|
18860
18866
|
o,
|
|
18861
|
-
`Preview sweep delegation failed: ${
|
|
18867
|
+
`Preview sweep delegation failed: ${k instanceof Error ? k.message : String(k)}`
|
|
18862
18868
|
);
|
|
18863
18869
|
}
|
|
18864
18870
|
}
|
|
18865
18871
|
$ === d && (f = !1, (A = o.log) == null || A.call(
|
|
18866
18872
|
o,
|
|
18867
|
-
`Preview sweep finished: ${g}/${b} produced, ${m} failed in ${(((U = o.now) == null ? void 0 : U.call(o)) ?? Date.now()) -
|
|
18873
|
+
`Preview sweep finished: ${g}/${b} produced, ${m} failed in ${(((U = o.now) == null ? void 0 : U.call(o)) ?? Date.now()) - T}ms.`
|
|
18868
18874
|
), S("done"));
|
|
18869
18875
|
}
|
|
18870
18876
|
function R() {
|
|
@@ -19338,14 +19344,14 @@ function d_(t) {
|
|
|
19338
19344
|
function w($) {
|
|
19339
19345
|
for (const E of $) a.set(gi(E.element), E);
|
|
19340
19346
|
m(), u && clearTimeout(u);
|
|
19341
|
-
const
|
|
19347
|
+
const T = d;
|
|
19342
19348
|
u = setTimeout(() => {
|
|
19343
|
-
|
|
19349
|
+
T === d && (u = null, v(T).catch(() => {
|
|
19344
19350
|
}));
|
|
19345
19351
|
}, 240);
|
|
19346
19352
|
}
|
|
19347
|
-
function S($,
|
|
19348
|
-
if (
|
|
19353
|
+
function S($, T) {
|
|
19354
|
+
if (T !== d) return;
|
|
19349
19355
|
const E = new Map(
|
|
19350
19356
|
$.map((P) => [gi(P.element), P])
|
|
19351
19357
|
);
|
|
@@ -19355,7 +19361,7 @@ function d_(t) {
|
|
|
19355
19361
|
async function v($ = d) {
|
|
19356
19362
|
if ($ !== d) return;
|
|
19357
19363
|
if ((c == null ? void 0 : c.epoch) === $) return c.promise;
|
|
19358
|
-
const
|
|
19364
|
+
const T = (async () => {
|
|
19359
19365
|
for (; $ === d && a.size > 0; ) {
|
|
19360
19366
|
const E = [...a.values()];
|
|
19361
19367
|
a = /* @__PURE__ */ new Map(), m();
|
|
@@ -19387,34 +19393,34 @@ function d_(t) {
|
|
|
19387
19393
|
}
|
|
19388
19394
|
}
|
|
19389
19395
|
})();
|
|
19390
|
-
c = { epoch: $, promise:
|
|
19396
|
+
c = { epoch: $, promise: T };
|
|
19391
19397
|
try {
|
|
19392
|
-
await
|
|
19398
|
+
await T;
|
|
19393
19399
|
} finally {
|
|
19394
|
-
(c == null ? void 0 : c.promise) ===
|
|
19400
|
+
(c == null ? void 0 : c.promise) === T && (c = null);
|
|
19395
19401
|
}
|
|
19396
19402
|
}
|
|
19397
19403
|
function p() {
|
|
19398
19404
|
d += 1, f += 1, i == null || i(), i = null, u && clearTimeout(u), u = null, g.abort(), g = new AbortController(), s = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), h = void 0, b = null, m(), r.setStatus("idle", "");
|
|
19399
19405
|
}
|
|
19400
|
-
function _($,
|
|
19406
|
+
function _($, T = {}) {
|
|
19401
19407
|
var K;
|
|
19402
19408
|
i == null || i();
|
|
19403
19409
|
const E = ++f;
|
|
19404
|
-
h = ((K =
|
|
19410
|
+
h = ((K = T.sourceRevision) == null ? void 0 : K.trim()) || void 0, b = T.onDesignChange;
|
|
19405
19411
|
const P = $u(n, $);
|
|
19406
19412
|
s = new Map(P.map((U) => [gi(U), U]));
|
|
19407
19413
|
const j = Ro(
|
|
19408
19414
|
() => $u(n, $),
|
|
19409
19415
|
(U) => {
|
|
19410
|
-
const A = new Map(U.map((
|
|
19411
|
-
for (const [
|
|
19412
|
-
const Z = s.get(
|
|
19413
|
-
(!Z || Tu(Z) !== Tu(
|
|
19416
|
+
const A = new Map(U.map((k) => [gi(k), k])), L = [];
|
|
19417
|
+
for (const [k, F] of A) {
|
|
19418
|
+
const Z = s.get(k);
|
|
19419
|
+
(!Z || Tu(Z) !== Tu(F)) && L.push({ operation: "upsert", element: F });
|
|
19414
19420
|
}
|
|
19415
|
-
for (const [
|
|
19416
|
-
A.has(
|
|
19417
|
-
s = A,
|
|
19421
|
+
for (const [k, F] of s)
|
|
19422
|
+
A.has(k) || L.push({ operation: "delete", element: F });
|
|
19423
|
+
s = A, L.length && w(L);
|
|
19418
19424
|
},
|
|
19419
19425
|
{ equals: tn.structural }
|
|
19420
19426
|
);
|
|
@@ -19423,19 +19429,19 @@ function d_(t) {
|
|
|
19423
19429
|
};
|
|
19424
19430
|
}
|
|
19425
19431
|
function R($) {
|
|
19426
|
-
const
|
|
19432
|
+
const T = new Map(
|
|
19427
19433
|
$.map(({ name: P, value: j }) => [
|
|
19428
19434
|
P,
|
|
19429
19435
|
{ type: "token", id: P, kind: "design-tokens", name: P, value: j }
|
|
19430
19436
|
])
|
|
19431
19437
|
), E = [];
|
|
19432
|
-
for (const [P, j] of
|
|
19438
|
+
for (const [P, j] of T) {
|
|
19433
19439
|
const K = o.get(P);
|
|
19434
19440
|
(!K || K.value !== j.value) && E.push({ operation: "upsert", element: j });
|
|
19435
19441
|
}
|
|
19436
19442
|
for (const [P, j] of o)
|
|
19437
|
-
|
|
19438
|
-
o =
|
|
19443
|
+
T.has(P) || E.push({ operation: "delete", element: j });
|
|
19444
|
+
o = T, E.length && w(E);
|
|
19439
19445
|
}
|
|
19440
19446
|
async function M() {
|
|
19441
19447
|
u && (clearTimeout(u), u = null), await v();
|
|
@@ -19533,42 +19539,42 @@ function m_() {
|
|
|
19533
19539
|
let g = 0;
|
|
19534
19540
|
function m(w) {
|
|
19535
19541
|
const S = w.config ?? ma, v = w.now ?? (() => Date.now()), p = w.schedule ?? f_, _ = w.resolveBudget ?? h_, R = w.readDevicePixelRatio ?? p_;
|
|
19536
|
-
let M = null, $ = null,
|
|
19542
|
+
let M = null, $ = null, T = /* @__PURE__ */ new Map();
|
|
19537
19543
|
const E = () => {
|
|
19538
19544
|
var G;
|
|
19539
19545
|
$ = null;
|
|
19540
|
-
const K = v(), { camera: U, frames: A, viewport:
|
|
19546
|
+
const K = v(), { camera: U, frames: A, viewport: L } = aa(() => ({
|
|
19541
19547
|
camera: w.readCamera(),
|
|
19542
19548
|
frames: w.readFrames(),
|
|
19543
19549
|
viewport: w.readViewport()
|
|
19544
|
-
})),
|
|
19550
|
+
})), k = Pv({
|
|
19545
19551
|
frames: A,
|
|
19546
19552
|
camera: U,
|
|
19547
|
-
viewport:
|
|
19548
|
-
previous:
|
|
19553
|
+
viewport: L,
|
|
19554
|
+
previous: T,
|
|
19549
19555
|
now: K,
|
|
19550
19556
|
config: S,
|
|
19551
19557
|
budget: _(A)
|
|
19552
|
-
}),
|
|
19553
|
-
for (const [O, H] of
|
|
19554
|
-
const q =
|
|
19555
|
-
|
|
19558
|
+
}), F = /* @__PURE__ */ new Map();
|
|
19559
|
+
for (const [O, H] of k) {
|
|
19560
|
+
const q = T.get(O);
|
|
19561
|
+
F.set(
|
|
19556
19562
|
O,
|
|
19557
19563
|
(q == null ? void 0 : q.tier) === H ? q : { tier: H, since: K }
|
|
19558
19564
|
);
|
|
19559
19565
|
}
|
|
19560
|
-
|
|
19566
|
+
T = F;
|
|
19561
19567
|
const Z = U.zoom * R(), Q = dd(
|
|
19562
19568
|
A.map((O) => O.rect),
|
|
19563
19569
|
U,
|
|
19564
|
-
|
|
19570
|
+
L,
|
|
19565
19571
|
S
|
|
19566
19572
|
), ue = /* @__PURE__ */ new Map();
|
|
19567
19573
|
for (const O of A)
|
|
19568
19574
|
ue.set(
|
|
19569
19575
|
O.id,
|
|
19570
19576
|
Sv(
|
|
19571
|
-
|
|
19577
|
+
k.get(O.id) ?? pr,
|
|
19572
19578
|
Z,
|
|
19573
19579
|
O.screenshotDensity,
|
|
19574
19580
|
Q
|
|
@@ -19577,10 +19583,10 @@ function m_() {
|
|
|
19577
19583
|
d.displayDensity = Z, d.overview = Q, d.frames = A.map((O) => ({
|
|
19578
19584
|
id: O.id,
|
|
19579
19585
|
screenshotDensity: O.screenshotDensity,
|
|
19580
|
-
tier:
|
|
19586
|
+
tier: k.get(O.id) ?? pr
|
|
19581
19587
|
})), c(
|
|
19582
19588
|
_v(s, Z)
|
|
19583
|
-
), b(
|
|
19589
|
+
), b(k, ue), (G = w.onRecompute) == null || G.call(w, { frames: A, camera: U, viewport: L, tiers: k });
|
|
19584
19590
|
}, P = () => {
|
|
19585
19591
|
$ == null && ($ = p(E));
|
|
19586
19592
|
}, j = () => {
|
|
@@ -19595,7 +19601,7 @@ function m_() {
|
|
|
19595
19601
|
}), j(), E());
|
|
19596
19602
|
},
|
|
19597
19603
|
stop() {
|
|
19598
|
-
$ != null && ($(), $ = null), M == null || M.dispose(), M = null,
|
|
19604
|
+
$ != null && ($(), $ = null), M == null || M.dispose(), M = null, T = /* @__PURE__ */ new Map(), b(/* @__PURE__ */ new Map()), c(!1);
|
|
19599
19605
|
},
|
|
19600
19606
|
recompute: E
|
|
19601
19607
|
};
|
|
@@ -20046,12 +20052,12 @@ function L_(t = {}) {
|
|
|
20046
20052
|
bootsByRunner: {}
|
|
20047
20053
|
};
|
|
20048
20054
|
function s(A) {
|
|
20049
|
-
const
|
|
20050
|
-
return JSON.stringify(
|
|
20055
|
+
const L = Object.entries(A).filter(([, k]) => k !== void 0).sort(([k], [F]) => k < F ? -1 : k > F ? 1 : 0);
|
|
20056
|
+
return JSON.stringify(L);
|
|
20051
20057
|
}
|
|
20052
20058
|
function o(A) {
|
|
20053
20059
|
return A.waypoints.flatMap(
|
|
20054
|
-
(
|
|
20060
|
+
(L) => (L.steps ?? []).map(s)
|
|
20055
20061
|
);
|
|
20056
20062
|
}
|
|
20057
20063
|
function a(A) {
|
|
@@ -20061,104 +20067,104 @@ function L_(t = {}) {
|
|
|
20061
20067
|
A.timer != null && clearTimeout(A.timer), A.iframe.remove(), i.evictions += 1;
|
|
20062
20068
|
}
|
|
20063
20069
|
function c(A) {
|
|
20064
|
-
var
|
|
20070
|
+
var L;
|
|
20065
20071
|
try {
|
|
20066
|
-
return ((
|
|
20072
|
+
return ((L = A.keepAlive) == null ? void 0 : L.call(A, A.iframe)) === !0;
|
|
20067
20073
|
} catch {
|
|
20068
20074
|
return !1;
|
|
20069
20075
|
}
|
|
20070
20076
|
}
|
|
20071
|
-
function l(A,
|
|
20072
|
-
const
|
|
20073
|
-
for (let
|
|
20074
|
-
const Z = r[
|
|
20075
|
-
A != null && Z.ownerLabel !== A ||
|
|
20077
|
+
function l(A, L = {}) {
|
|
20078
|
+
const k = [];
|
|
20079
|
+
for (let F = r.length - 1; F >= 0; F -= 1) {
|
|
20080
|
+
const Z = r[F];
|
|
20081
|
+
A != null && Z.ownerLabel !== A || L.preservePinned && c(Z) || (r.splice(F, 1), k.push(Z));
|
|
20076
20082
|
}
|
|
20077
|
-
for (const
|
|
20083
|
+
for (const F of k) u(F);
|
|
20078
20084
|
}
|
|
20079
|
-
function d(A,
|
|
20080
|
-
if (A.url !==
|
|
20081
|
-
const
|
|
20082
|
-
if (
|
|
20085
|
+
function d(A, L) {
|
|
20086
|
+
if (A.url !== L.url || A.presetSignature !== a(L)) return !1;
|
|
20087
|
+
const k = o(L);
|
|
20088
|
+
if (k.length < A.executed.length) return !1;
|
|
20083
20089
|
for (let Z = 0; Z < A.executed.length; Z += 1)
|
|
20084
|
-
if (
|
|
20085
|
-
let
|
|
20086
|
-
for (const Z of
|
|
20090
|
+
if (k[Z] !== A.executed[Z]) return !1;
|
|
20091
|
+
let F = A.executed.length;
|
|
20092
|
+
for (const Z of L.waypoints) {
|
|
20087
20093
|
if (Math.round(Z.width) !== A.width || Math.round(Z.height) !== A.height)
|
|
20088
20094
|
return !1;
|
|
20089
|
-
if (
|
|
20095
|
+
if (F -= (Z.steps ?? []).length, F <= 0) break;
|
|
20090
20096
|
}
|
|
20091
20097
|
return !0;
|
|
20092
20098
|
}
|
|
20093
20099
|
function f(A) {
|
|
20094
|
-
return r.some((
|
|
20100
|
+
return r.some((L) => d(L, A));
|
|
20095
20101
|
}
|
|
20096
20102
|
function h(A) {
|
|
20097
|
-
const
|
|
20098
|
-
(
|
|
20103
|
+
const L = o(A), k = r.find(
|
|
20104
|
+
(F) => !c(F) && F.executed.length === L.length && d(F, A)
|
|
20099
20105
|
);
|
|
20100
|
-
return (
|
|
20106
|
+
return (k == null ? void 0 : k.iframe) ?? null;
|
|
20101
20107
|
}
|
|
20102
20108
|
function b(A) {
|
|
20103
|
-
const
|
|
20104
|
-
for (let
|
|
20105
|
-
const
|
|
20106
|
-
if (
|
|
20107
|
-
return r.splice(
|
|
20109
|
+
const L = o(A);
|
|
20110
|
+
for (let k = 0; k < r.length; k += 1) {
|
|
20111
|
+
const F = r[k];
|
|
20112
|
+
if (F.executed.length === L.length && d(F, A))
|
|
20113
|
+
return r.splice(k, 1), F.timer != null && clearTimeout(F.timer), w(F), r.push(F), i.refreshes += 1, !0;
|
|
20108
20114
|
}
|
|
20109
20115
|
return !1;
|
|
20110
20116
|
}
|
|
20111
20117
|
function g(A) {
|
|
20112
|
-
let
|
|
20118
|
+
let L = -1, k = -1;
|
|
20113
20119
|
for (let Z = 0; Z < r.length; Z += 1) {
|
|
20114
20120
|
const Q = r[Z];
|
|
20115
|
-
c(Q) || d(Q, A) && Q.executed.length >
|
|
20121
|
+
c(Q) || d(Q, A) && Q.executed.length > k && (k = Q.executed.length, L = Z);
|
|
20116
20122
|
}
|
|
20117
|
-
if (
|
|
20118
|
-
const [
|
|
20119
|
-
return
|
|
20123
|
+
if (L < 0) return null;
|
|
20124
|
+
const [F] = r.splice(L, 1);
|
|
20125
|
+
return F.timer != null && clearTimeout(F.timer), i.reuses += 1, { iframe: F.iframe, skip: F.executed.length };
|
|
20120
20126
|
}
|
|
20121
20127
|
function m(A) {
|
|
20122
|
-
const
|
|
20123
|
-
if (
|
|
20124
|
-
const [
|
|
20125
|
-
return
|
|
20128
|
+
const L = r.findIndex((F) => F.iframe === A);
|
|
20129
|
+
if (L < 0) return null;
|
|
20130
|
+
const [k] = r.splice(L, 1);
|
|
20131
|
+
return k.timer != null && clearTimeout(k.timer), k;
|
|
20126
20132
|
}
|
|
20127
20133
|
function w(A) {
|
|
20128
|
-
var
|
|
20134
|
+
var L, k;
|
|
20129
20135
|
A.timer = e > 0 ? setTimeout(() => {
|
|
20130
|
-
const
|
|
20131
|
-
if (!(
|
|
20136
|
+
const F = r.indexOf(A);
|
|
20137
|
+
if (!(F < 0)) {
|
|
20132
20138
|
if (c(A)) {
|
|
20133
20139
|
w(A);
|
|
20134
20140
|
return;
|
|
20135
20141
|
}
|
|
20136
|
-
r.splice(
|
|
20142
|
+
r.splice(F, 1), u(A);
|
|
20137
20143
|
}
|
|
20138
|
-
}, e) : null, (
|
|
20144
|
+
}, e) : null, (k = (L = A.timer) == null ? void 0 : L.unref) == null || k.call(L);
|
|
20139
20145
|
}
|
|
20140
20146
|
function S() {
|
|
20141
20147
|
for (let A = 0; A < r.length; A += 1) {
|
|
20142
|
-
const
|
|
20143
|
-
if (c(
|
|
20148
|
+
const L = r[A];
|
|
20149
|
+
if (c(L)) continue;
|
|
20144
20150
|
if (r.some(
|
|
20145
|
-
(
|
|
20146
|
-
(Z, Q) =>
|
|
20151
|
+
(F) => F !== L && F.url === L.url && F.presetSignature === L.presetSignature && F.width === L.width && F.height === L.height && F.executed.length <= L.executed.length && F.executed.every(
|
|
20152
|
+
(Z, Q) => L.executed[Q] === Z
|
|
20147
20153
|
)
|
|
20148
20154
|
)) return A;
|
|
20149
20155
|
}
|
|
20150
20156
|
return r.findIndex((A) => !c(A));
|
|
20151
20157
|
}
|
|
20152
|
-
function v(A,
|
|
20153
|
-
const Q =
|
|
20158
|
+
function v(A, L, k, F, Z) {
|
|
20159
|
+
const Q = L.waypoints[L.waypoints.length - 1], ue = {
|
|
20154
20160
|
iframe: A,
|
|
20155
|
-
url:
|
|
20156
|
-
presetSignature: a(
|
|
20157
|
-
executed:
|
|
20161
|
+
url: L.url,
|
|
20162
|
+
presetSignature: a(L),
|
|
20163
|
+
executed: k,
|
|
20158
20164
|
width: Math.round((Q == null ? void 0 : Q.width) ?? 0),
|
|
20159
20165
|
height: Math.round((Q == null ? void 0 : Q.height) ?? 0),
|
|
20160
20166
|
timer: null,
|
|
20161
|
-
ownerLabel:
|
|
20167
|
+
ownerLabel: F,
|
|
20162
20168
|
keepAlive: Z
|
|
20163
20169
|
};
|
|
20164
20170
|
for (w(ue), r.push(ue), i.parks += 1; r.length > D_; ) {
|
|
@@ -20169,28 +20175,28 @@ function L_(t = {}) {
|
|
|
20169
20175
|
}
|
|
20170
20176
|
}
|
|
20171
20177
|
const p = 3e4, _ = 12e4;
|
|
20172
|
-
function R(A,
|
|
20173
|
-
return new Promise((
|
|
20178
|
+
function R(A, L) {
|
|
20179
|
+
return new Promise((k, F) => {
|
|
20174
20180
|
const Z = () => {
|
|
20175
|
-
A.removeEventListener("load", Z), A.removeEventListener("error", Q),
|
|
20181
|
+
A.removeEventListener("load", Z), A.removeEventListener("error", Q), k();
|
|
20176
20182
|
}, Q = () => {
|
|
20177
|
-
A.removeEventListener("load", Z), A.removeEventListener("error", Q),
|
|
20183
|
+
A.removeEventListener("load", Z), A.removeEventListener("error", Q), F(new Error(`The flow session instance failed to load ${L}.`));
|
|
20178
20184
|
};
|
|
20179
|
-
A.addEventListener("load", Z), A.addEventListener("error", Q), A.src =
|
|
20185
|
+
A.addEventListener("load", Z), A.addEventListener("error", Q), A.src = L;
|
|
20180
20186
|
});
|
|
20181
20187
|
}
|
|
20182
20188
|
function M(A) {
|
|
20183
|
-
const
|
|
20184
|
-
return
|
|
20185
|
-
|
|
20189
|
+
const L = A.contentWindow;
|
|
20190
|
+
return L ? new Promise((k) => {
|
|
20191
|
+
L.requestAnimationFrame(() => L.requestAnimationFrame(() => k()));
|
|
20186
20192
|
}) : Promise.resolve();
|
|
20187
20193
|
}
|
|
20188
|
-
function $(A,
|
|
20189
|
-
return !Number.isFinite(
|
|
20190
|
-
const Q = setTimeout(() => Z(new Error(
|
|
20194
|
+
function $(A, L, k) {
|
|
20195
|
+
return !Number.isFinite(L) || L <= 0 ? A : new Promise((F, Z) => {
|
|
20196
|
+
const Q = setTimeout(() => Z(new Error(k)), L);
|
|
20191
20197
|
A.then(
|
|
20192
20198
|
(ue) => {
|
|
20193
|
-
clearTimeout(Q),
|
|
20199
|
+
clearTimeout(Q), F(ue);
|
|
20194
20200
|
},
|
|
20195
20201
|
(ue) => {
|
|
20196
20202
|
clearTimeout(Q), Z(ue);
|
|
@@ -20198,14 +20204,14 @@ function L_(t = {}) {
|
|
|
20198
20204
|
);
|
|
20199
20205
|
});
|
|
20200
20206
|
}
|
|
20201
|
-
function
|
|
20202
|
-
let
|
|
20203
|
-
const
|
|
20207
|
+
function T(A = {}) {
|
|
20208
|
+
let L = Math.max(1, A.concurrency ?? 1);
|
|
20209
|
+
const k = A.label ?? "unlabelled", F = A.createIframe ?? k_, Z = A.resolveContainer ?? (() => typeof document > "u" ? null : document.body), Q = A.boot ?? R, ue = A.bootTimeoutMs ?? p, G = A.walkBudgetMs ?? _, O = A.now ?? (() => Date.now()), H = A.metrics ?? t.metrics ?? Aa(), q = (ae, fe) => $(
|
|
20204
20210
|
Q(ae, fe),
|
|
20205
20211
|
ue,
|
|
20206
20212
|
`The flow session instance did not load ${fe} within ${ue}ms.`
|
|
20207
20213
|
), V = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Set();
|
|
20208
|
-
let
|
|
20214
|
+
let Y = 0;
|
|
20209
20215
|
const oe = [], me = /* @__PURE__ */ new WeakSet();
|
|
20210
20216
|
let ge = 0;
|
|
20211
20217
|
function de() {
|
|
@@ -20258,8 +20264,8 @@ function L_(t = {}) {
|
|
|
20258
20264
|
}
|
|
20259
20265
|
const Se = ae.supplied && ae.supplied.iframe.isConnected !== !1 ? ae.supplied : null;
|
|
20260
20266
|
Se && (m(Se.iframe), i.reuses += 1);
|
|
20261
|
-
const Be = Se ? null : g(ce),
|
|
20262
|
-
if (!
|
|
20267
|
+
const Be = Se ? null : g(ce), Je = Se != null || Be != null, Oe = (Se == null ? void 0 : Se.iframe) ?? (Be == null ? void 0 : Be.iframe) ?? F(), zr = Z();
|
|
20268
|
+
if (!Je && !zr) {
|
|
20263
20269
|
Te(ce, 0, "flow session container unavailable"), X.delete(ce.id), de();
|
|
20264
20270
|
return;
|
|
20265
20271
|
}
|
|
@@ -20273,13 +20279,13 @@ function L_(t = {}) {
|
|
|
20273
20279
|
rn = null;
|
|
20274
20280
|
try {
|
|
20275
20281
|
(Ke = A.onWaypointFinish) == null || Ke.call(A, Oe, Pe, xe);
|
|
20276
|
-
} catch (
|
|
20277
|
-
(it = A.onError) == null || it.call(A, ce.id,
|
|
20282
|
+
} catch (Ye) {
|
|
20283
|
+
(it = A.onError) == null || it.call(A, ce.id, Ye);
|
|
20278
20284
|
}
|
|
20279
|
-
}, cs = O(), Ue = H.beginStateSwitchWalk(
|
|
20280
|
-
Oe.style.width = `${Math.round(Br.width)}px`, Oe.style.height = `${Math.round(Br.height)}px`,
|
|
20285
|
+
}, cs = O(), Ue = H.beginStateSwitchWalk(k, ce.id, Je), Br = ce.waypoints[0];
|
|
20286
|
+
Oe.style.width = `${Math.round(Br.width)}px`, Oe.style.height = `${Math.round(Br.height)}px`, Je || zr.appendChild(Oe);
|
|
20281
20287
|
try {
|
|
20282
|
-
|
|
20288
|
+
Je || (H.markStateSwitchPhase(Ue), await q(Oe, ce.url), H.recordStateSwitchPhase(Ue, "boot"), i.boots += 1, i.bootsByRunner[k] = (i.bootsByRunner[k] ?? 0) + 1);
|
|
20283
20289
|
for (let xe = 0; xe < ce.waypoints.length; xe += 1) {
|
|
20284
20290
|
if (fe !== ge) {
|
|
20285
20291
|
for (let Re = xe; Re < ce.waypoints.length; Re += 1)
|
|
@@ -20302,16 +20308,16 @@ function L_(t = {}) {
|
|
|
20302
20308
|
}
|
|
20303
20309
|
Pe.cacheKey && (ye(Pe.screenId, { status: "running", pathId: ce.id }), de()), Oe.style.width = `${Math.round(Pe.width)}px`, Oe.style.height = `${Math.round(Pe.height)}px`;
|
|
20304
20310
|
const Ke = Pe.steps ?? [], it = Math.min(Vr, Ke.length);
|
|
20305
|
-
if (Vr -= it,
|
|
20311
|
+
if (Vr -= it, Je && !Pe.cacheKey && it === Ke.length)
|
|
20306
20312
|
continue;
|
|
20307
20313
|
rn = Pe, H.markStateSwitchPhase(Ue);
|
|
20308
|
-
const
|
|
20314
|
+
const Ye = await be(Oe, {
|
|
20309
20315
|
pageId: Pe.screenId,
|
|
20310
20316
|
route: ce.route,
|
|
20311
20317
|
// The preset installs once with the first waypoint; the instance
|
|
20312
20318
|
// keeps its mocks and identity for the rest of the walk — and a
|
|
20313
20319
|
// claimed instance already carries it from the walk that parked it.
|
|
20314
|
-
...xe === 0 && !
|
|
20320
|
+
...xe === 0 && !Je && ce.preset ? { preset: ce.preset } : {},
|
|
20315
20321
|
desiredState: Pe.desiredState,
|
|
20316
20322
|
interactions: it > 0 ? Ke.slice(it) : Ke,
|
|
20317
20323
|
assertions: Pe.fastDesiredState ? void 0 : Pe.assertions
|
|
@@ -20323,9 +20329,9 @@ function L_(t = {}) {
|
|
|
20323
20329
|
de();
|
|
20324
20330
|
return;
|
|
20325
20331
|
}
|
|
20326
|
-
if (!
|
|
20332
|
+
if (!Ye.complete) {
|
|
20327
20333
|
Ht("failed");
|
|
20328
|
-
const Re =
|
|
20334
|
+
const Re = Ye.error ?? `step "${Ye.failedLabel ?? "?"}" did not reach its screen state`;
|
|
20329
20335
|
Te(ce, xe, Re), (Hr = A.onError) == null || Hr.call(A, ce.id, new Error(Re)), de();
|
|
20330
20336
|
return;
|
|
20331
20337
|
}
|
|
@@ -20346,8 +20352,8 @@ function L_(t = {}) {
|
|
|
20346
20352
|
Ht("failed");
|
|
20347
20353
|
const Pe = xe instanceof Error ? xe.message : String(xe), Ke = ce.waypoints.findIndex(
|
|
20348
20354
|
(it) => {
|
|
20349
|
-
var
|
|
20350
|
-
return ((
|
|
20355
|
+
var Ye;
|
|
20356
|
+
return ((Ye = V.get(it.screenId)) == null ? void 0 : Ye.status) !== "delivered";
|
|
20351
20357
|
}
|
|
20352
20358
|
);
|
|
20353
20359
|
Te(ce, Math.max(0, Ke), Pe), (Vn = A.onError) == null || Vn.call(A, ce.id, xe), de();
|
|
@@ -20356,20 +20362,20 @@ function L_(t = {}) {
|
|
|
20356
20362
|
Oe,
|
|
20357
20363
|
ce,
|
|
20358
20364
|
o(ce),
|
|
20359
|
-
|
|
20365
|
+
k,
|
|
20360
20366
|
A.keepWarmInstanceAlive
|
|
20361
20367
|
) : Oe.remove(), X.delete(ce.id);
|
|
20362
20368
|
}
|
|
20363
20369
|
}
|
|
20364
20370
|
function Nt() {
|
|
20365
|
-
for (;
|
|
20371
|
+
for (; Y < L && oe.length > 0; ) {
|
|
20366
20372
|
const ae = oe.findIndex(
|
|
20367
20373
|
(Se) => !Se.supplied || !me.has(Se.supplied.iframe)
|
|
20368
20374
|
);
|
|
20369
20375
|
if (ae < 0) return;
|
|
20370
20376
|
const [fe] = oe.splice(ae, 1);
|
|
20371
|
-
|
|
20372
|
-
|
|
20377
|
+
Y += 1, jr(fe, ge).finally(() => {
|
|
20378
|
+
Y -= 1, Nt();
|
|
20373
20379
|
});
|
|
20374
20380
|
}
|
|
20375
20381
|
}
|
|
@@ -20432,8 +20438,8 @@ function L_(t = {}) {
|
|
|
20432
20438
|
oe.splice(ce, 1), X.delete(Se.id);
|
|
20433
20439
|
for (const Be of Se.waypoints) {
|
|
20434
20440
|
if (!Be.cacheKey) continue;
|
|
20435
|
-
const
|
|
20436
|
-
(
|
|
20441
|
+
const Je = V.get(Be.screenId);
|
|
20442
|
+
(Je == null ? void 0 : Je.pathId) === Se.id && Je.status === "pending" && V.delete(Be.screenId);
|
|
20437
20443
|
}
|
|
20438
20444
|
fe += 1;
|
|
20439
20445
|
}
|
|
@@ -20442,7 +20448,7 @@ function L_(t = {}) {
|
|
|
20442
20448
|
},
|
|
20443
20449
|
/** Live instances that may walk at once; takes effect at the next pump. */
|
|
20444
20450
|
setConcurrency(ae) {
|
|
20445
|
-
|
|
20451
|
+
L = Math.max(1, Math.floor(ae)), Nt();
|
|
20446
20452
|
},
|
|
20447
20453
|
/** Session state of one screen, or null when no session claims it. */
|
|
20448
20454
|
screenState(ae) {
|
|
@@ -20468,7 +20474,7 @@ function L_(t = {}) {
|
|
|
20468
20474
|
* enter an empty runner.
|
|
20469
20475
|
*/
|
|
20470
20476
|
isIdle() {
|
|
20471
|
-
return
|
|
20477
|
+
return Y === 0 && oe.length === 0;
|
|
20472
20478
|
},
|
|
20473
20479
|
subscribe(ae) {
|
|
20474
20480
|
return z.add(ae), () => z.delete(ae);
|
|
@@ -20479,7 +20485,7 @@ function L_(t = {}) {
|
|
|
20479
20485
|
* the next materialize call.
|
|
20480
20486
|
*/
|
|
20481
20487
|
reset() {
|
|
20482
|
-
ge += 1, oe.length = 0, V.clear(), X.clear(), l(
|
|
20488
|
+
ge += 1, oe.length = 0, V.clear(), X.clear(), l(k), de();
|
|
20483
20489
|
},
|
|
20484
20490
|
/** Test/diagnostic snapshot of every tracked screen. */
|
|
20485
20491
|
debugScreenStates() {
|
|
@@ -20493,7 +20499,7 @@ function L_(t = {}) {
|
|
|
20493
20499
|
}
|
|
20494
20500
|
let E = null, P = 1;
|
|
20495
20501
|
function j() {
|
|
20496
|
-
return E || (E =
|
|
20502
|
+
return E || (E = T({
|
|
20497
20503
|
label: "canonical",
|
|
20498
20504
|
concurrency: P
|
|
20499
20505
|
})), E;
|
|
@@ -20510,7 +20516,7 @@ function L_(t = {}) {
|
|
|
20510
20516
|
evictFlowSessionWarmInstances: l,
|
|
20511
20517
|
warmInstanceServesPath: f,
|
|
20512
20518
|
warmInstanceAtPathEnd: h,
|
|
20513
|
-
createFlowSessionRunner:
|
|
20519
|
+
createFlowSessionRunner: T,
|
|
20514
20520
|
getFlowSessionRunner: j,
|
|
20515
20521
|
setFlowSessionConcurrency: K,
|
|
20516
20522
|
resetFlowSessionRunner: U
|
|
@@ -20554,17 +20560,17 @@ function V_(t, e) {
|
|
|
20554
20560
|
if (p.route == null || R <= 0) return M;
|
|
20555
20561
|
const $ = pl(p, t.declarations.getInteractiveStates());
|
|
20556
20562
|
if ($.some(
|
|
20557
|
-
(
|
|
20563
|
+
(T) => T.options.some((E) => E.desiredState !== void 0)
|
|
20558
20564
|
))
|
|
20559
20565
|
return M;
|
|
20560
|
-
for (const
|
|
20561
|
-
if (!
|
|
20562
|
-
for (const E of
|
|
20566
|
+
for (const T of $)
|
|
20567
|
+
if (!T.multiple)
|
|
20568
|
+
for (const E of T.options) {
|
|
20563
20569
|
if (E.desiredState !== void 0) continue;
|
|
20564
|
-
const P = z_(p,
|
|
20570
|
+
const P = z_(p, T, E);
|
|
20565
20571
|
if (!P) continue;
|
|
20566
20572
|
const j = Qn(v, P, _, !0);
|
|
20567
|
-
if (!v.previews.hasRoutePreviewSnapshot(j) && !e.interactiveSessionTracksVariant(P) && (M.push({ axisId:
|
|
20573
|
+
if (!v.previews.hasRoutePreviewSnapshot(j) && !e.interactiveSessionTracksVariant(P) && (M.push({ axisId: T.id, optionId: E.id, cacheKey: j, variantPage: P }), M.length >= R))
|
|
20568
20574
|
return M;
|
|
20569
20575
|
}
|
|
20570
20576
|
return M;
|
|
@@ -20675,7 +20681,7 @@ function B_(t) {
|
|
|
20675
20681
|
previews: t.previews,
|
|
20676
20682
|
metrics: t.metrics,
|
|
20677
20683
|
declarations: t.declarations
|
|
20678
|
-
}), r =
|
|
20684
|
+
}), r = Jv(e, { sessions: n, surfaces: t.surfaces }), i = V_(e, r);
|
|
20679
20685
|
return {
|
|
20680
20686
|
interaction: Uv(),
|
|
20681
20687
|
frameLod: m_(),
|
|
@@ -20916,7 +20922,7 @@ function K_(t) {
|
|
|
20916
20922
|
stamped: u ? i.isStampedFrozenPreview(u.root) : null
|
|
20917
20923
|
},
|
|
20918
20924
|
lodState: a.__debugFrameLodState(),
|
|
20919
|
-
readFramesNow: (await import("./CameraLayer-
|
|
20925
|
+
readFramesNow: (await import("./CameraLayer-D4bW_2F_.js")).__debugReadEditorFrames(t).find((h) => h.id === n)
|
|
20920
20926
|
};
|
|
20921
20927
|
},
|
|
20922
20928
|
/** Flow-session delivery states for headless diagnosis of the captureless supply. */
|
|
@@ -21053,7 +21059,7 @@ export {
|
|
|
21053
21059
|
br as D,
|
|
21054
21060
|
Sa as E,
|
|
21055
21061
|
C0 as F,
|
|
21056
|
-
|
|
21062
|
+
Ya as G,
|
|
21057
21063
|
_t as H,
|
|
21058
21064
|
Z_ as I,
|
|
21059
21065
|
wn as J,
|
|
@@ -21062,7 +21068,7 @@ export {
|
|
|
21062
21068
|
Tt as M,
|
|
21063
21069
|
Iu as N,
|
|
21064
21070
|
Le as O,
|
|
21065
|
-
|
|
21071
|
+
Y0 as P,
|
|
21066
21072
|
Z0 as Q,
|
|
21067
21073
|
Pt as R,
|
|
21068
21074
|
eI as S,
|
|
@@ -21106,13 +21112,13 @@ export {
|
|
|
21106
21112
|
fI as aR,
|
|
21107
21113
|
dI as aS,
|
|
21108
21114
|
lI as aT,
|
|
21109
|
-
|
|
21115
|
+
Yr as aU,
|
|
21110
21116
|
wo as aV,
|
|
21111
21117
|
$p as aW,
|
|
21112
21118
|
Ne as aX,
|
|
21113
21119
|
Ku as aY,
|
|
21114
21120
|
We as aZ,
|
|
21115
|
-
|
|
21121
|
+
Yo as a_,
|
|
21116
21122
|
d0 as aa,
|
|
21117
21123
|
uI as ab,
|
|
21118
21124
|
oi as ac,
|
|
@@ -21137,7 +21143,7 @@ export {
|
|
|
21137
21143
|
Ci as av,
|
|
21138
21144
|
Xe as aw,
|
|
21139
21145
|
uw as ax,
|
|
21140
|
-
|
|
21146
|
+
J0 as ay,
|
|
21141
21147
|
Vb as az,
|
|
21142
21148
|
Cr as b,
|
|
21143
21149
|
Dv as b$,
|
|
@@ -21146,7 +21152,7 @@ export {
|
|
|
21146
21152
|
n0 as b2,
|
|
21147
21153
|
pi as b3,
|
|
21148
21154
|
zu as b4,
|
|
21149
|
-
|
|
21155
|
+
Yf as b5,
|
|
21150
21156
|
Gf as b6,
|
|
21151
21157
|
Vu as b7,
|
|
21152
21158
|
Ha as b8,
|