@pygmalionjs/pygmalion 0.5.19 → 0.5.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var b = (t, e, n) =>
|
|
1
|
+
var ra = Object.defineProperty;
|
|
2
|
+
var ia = (t, e, n) => e in t ? ra(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
|
+
var b = (t, e, n) => ia(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import { jsxs as Gr, jsx as qr } from "react/jsx-runtime";
|
|
5
|
-
import Wt, { useState as qn, forwardRef as Yn, memo as Jn, createElement as Gt, useRef as pt, useEffect as Yr, Component as
|
|
6
|
-
import { unstable_batchedUpdates as
|
|
5
|
+
import Wt, { useState as qn, forwardRef as Yn, memo as Jn, createElement as Gt, useRef as pt, useEffect as Yr, Component as sa } from "react";
|
|
6
|
+
import { unstable_batchedUpdates as oa, flushSync as aa } from "react-dom";
|
|
7
7
|
import { createRoot as Xi } from "react-dom/client";
|
|
8
|
-
var
|
|
8
|
+
var ca = {
|
|
9
9
|
0: "Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",
|
|
10
10
|
1: function(e, n) {
|
|
11
11
|
return "Cannot apply '" + e + "' to '" + n.toString() + "': Field not found.";
|
|
@@ -80,27 +80,27 @@ var oa = {
|
|
|
80
80
|
},
|
|
81
81
|
38: "'ownKeys()' can only be used on observable objects",
|
|
82
82
|
39: "'defineProperty()' can only be used on observable objects"
|
|
83
|
-
},
|
|
83
|
+
}, ua = process.env.NODE_ENV !== "production" ? ca : {};
|
|
84
84
|
function _(t) {
|
|
85
85
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
|
|
86
86
|
n[r - 1] = arguments[r];
|
|
87
87
|
if (process.env.NODE_ENV !== "production") {
|
|
88
|
-
var i = typeof t == "string" ? t :
|
|
88
|
+
var i = typeof t == "string" ? t : ua[t];
|
|
89
89
|
throw typeof i == "function" && (i = i.apply(null, n)), new Error("[MobX] " + i);
|
|
90
90
|
}
|
|
91
91
|
throw new Error(typeof t == "number" ? "[MobX] minified error nr: " + t + (n.length ? " " + n.map(String).join(",") : "") + ". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts" : "[MobX] " + t);
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var la = {};
|
|
94
94
|
function hn() {
|
|
95
|
-
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self :
|
|
95
|
+
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : la;
|
|
96
96
|
}
|
|
97
97
|
var Zi = Object.assign, qt = Object.getOwnPropertyDescriptor, be = Object.defineProperty, pn = Object.prototype, Yt = [];
|
|
98
98
|
Object.freeze(Yt);
|
|
99
99
|
var Sr = {};
|
|
100
100
|
Object.freeze(Sr);
|
|
101
|
-
var
|
|
101
|
+
var da = typeof Proxy < "u", fa = /* @__PURE__ */ Object.toString();
|
|
102
102
|
function Qi() {
|
|
103
|
-
|
|
103
|
+
da || _(process.env.NODE_ENV !== "production" ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`" : "Proxy not available");
|
|
104
104
|
}
|
|
105
105
|
function mt(t) {
|
|
106
106
|
process.env.NODE_ENV !== "production" && y.verifyProxies && _("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to " + t);
|
|
@@ -140,7 +140,7 @@ function z(t) {
|
|
|
140
140
|
if (e == null)
|
|
141
141
|
return !0;
|
|
142
142
|
var n = Object.hasOwnProperty.call(e, "constructor") && e.constructor;
|
|
143
|
-
return typeof n == "function" && n.toString() ===
|
|
143
|
+
return typeof n == "function" && n.toString() === fa;
|
|
144
144
|
}
|
|
145
145
|
function es(t) {
|
|
146
146
|
var e = t == null ? void 0 : t.constructor;
|
|
@@ -171,7 +171,7 @@ function Xe(t, e) {
|
|
|
171
171
|
function dt(t) {
|
|
172
172
|
return t != null && Object.prototype.toString.call(t) === "[object Map]";
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function ha(t) {
|
|
175
175
|
var e = Object.getPrototypeOf(t), n = Object.getPrototypeOf(e), r = Object.getPrototypeOf(n);
|
|
176
176
|
return r === null;
|
|
177
177
|
}
|
|
@@ -179,7 +179,7 @@ function Ee(t) {
|
|
|
179
179
|
return t != null && Object.prototype.toString.call(t) === "[object Set]";
|
|
180
180
|
}
|
|
181
181
|
var ns = typeof Object.getOwnPropertySymbols < "u";
|
|
182
|
-
function
|
|
182
|
+
function pa(t) {
|
|
183
183
|
var e = Object.keys(t);
|
|
184
184
|
if (!ns)
|
|
185
185
|
return e;
|
|
@@ -203,7 +203,7 @@ function rs(t) {
|
|
|
203
203
|
function ne(t, e) {
|
|
204
204
|
return pn.hasOwnProperty.call(t, e);
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var ma = Object.getOwnPropertyDescriptors || function(e) {
|
|
207
207
|
var n = {};
|
|
208
208
|
return ut(e).forEach(function(r) {
|
|
209
209
|
n[r] = qt(e, r);
|
|
@@ -220,28 +220,28 @@ function Jr(t, e) {
|
|
|
220
220
|
for (var n = 0, r = Array(e); n < e; n++) r[n] = t[n];
|
|
221
221
|
return r;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function ga(t, e, n) {
|
|
224
224
|
if (is()) return Reflect.construct.apply(null, arguments);
|
|
225
225
|
var r = [null];
|
|
226
226
|
r.push.apply(r, e);
|
|
227
227
|
var i = new (t.bind.apply(t, r))();
|
|
228
228
|
return n && yt(i, n.prototype), i;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function va(t, e) {
|
|
231
231
|
for (var n = 0; n < e.length; n++) {
|
|
232
232
|
var r = e[n];
|
|
233
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t,
|
|
233
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, _a(r.key), r);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
function ft(t, e, n) {
|
|
237
|
-
return e &&
|
|
237
|
+
return e && va(t.prototype, e), Object.defineProperty(t, "prototype", {
|
|
238
238
|
writable: !1
|
|
239
239
|
}), t;
|
|
240
240
|
}
|
|
241
241
|
function st(t, e) {
|
|
242
242
|
var n = typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
243
243
|
if (n) return (n = n.call(t)).next.bind(n);
|
|
244
|
-
if (Array.isArray(t) || (n =
|
|
244
|
+
if (Array.isArray(t) || (n = Sa(t)) || e) {
|
|
245
245
|
n && (t = n);
|
|
246
246
|
var r = 0;
|
|
247
247
|
return function() {
|
|
@@ -273,7 +273,7 @@ function Zn(t) {
|
|
|
273
273
|
function Or(t, e) {
|
|
274
274
|
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, yt(t, e);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function ba(t) {
|
|
277
277
|
try {
|
|
278
278
|
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
|
279
279
|
} catch {
|
|
@@ -295,7 +295,7 @@ function yt(t, e) {
|
|
|
295
295
|
return n.__proto__ = r, n;
|
|
296
296
|
}, yt(t, e);
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function ya(t, e) {
|
|
299
299
|
if (typeof t != "object" || !t) return t;
|
|
300
300
|
var n = t[Symbol.toPrimitive];
|
|
301
301
|
if (n !== void 0) {
|
|
@@ -305,11 +305,11 @@ function va(t, e) {
|
|
|
305
305
|
}
|
|
306
306
|
return String(t);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
var e =
|
|
308
|
+
function _a(t) {
|
|
309
|
+
var e = ya(t, "string");
|
|
310
310
|
return typeof e == "symbol" ? e : e + "";
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Sa(t, e) {
|
|
313
313
|
if (t) {
|
|
314
314
|
if (typeof t == "string") return Jr(t, e);
|
|
315
315
|
var n = {}.toString.call(t).slice(8, -1);
|
|
@@ -319,14 +319,14 @@ function ya(t, e) {
|
|
|
319
319
|
function Qn(t) {
|
|
320
320
|
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
321
321
|
return Qn = function(n) {
|
|
322
|
-
if (n === null || !
|
|
322
|
+
if (n === null || !ba(n)) return n;
|
|
323
323
|
if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
|
|
324
324
|
if (e !== void 0) {
|
|
325
325
|
if (e.has(n)) return e.get(n);
|
|
326
326
|
e.set(n, r);
|
|
327
327
|
}
|
|
328
328
|
function r() {
|
|
329
|
-
return
|
|
329
|
+
return ga(n, arguments, Zn(this).constructor);
|
|
330
330
|
}
|
|
331
331
|
return r.prototype = Object.create(n.prototype, {
|
|
332
332
|
constructor: {
|
|
@@ -352,9 +352,9 @@ function At(t, e, n) {
|
|
|
352
352
|
var r = t.constructor.name + ".prototype." + e.toString();
|
|
353
353
|
_("'" + r + "' is decorated with 'override', but no such decorated member was found on prototype.");
|
|
354
354
|
}
|
|
355
|
-
|
|
355
|
+
wa(t, n, e), Jt(n) || (t[F][e] = n);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function wa(t, e, n) {
|
|
358
358
|
if (process.env.NODE_ENV !== "production" && !Jt(e) && ne(t[F], n)) {
|
|
359
359
|
var r = t.constructor.name + ".prototype." + n.toString(), i = t[F][n].annotationType_, s = e.annotationType_;
|
|
360
360
|
_("Cannot apply '@" + s + "' to '" + r + "':" + (`
|
|
@@ -363,7 +363,7 @@ Re-decorating fields is not allowed.
|
|
|
363
363
|
Use '@override' decorator for methods overridden by subclass.`);
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function Oa(t) {
|
|
367
367
|
return ne(t, F) || xt(t, F, Ne({}, t[F])), t[F];
|
|
368
368
|
}
|
|
369
369
|
function Nt(t) {
|
|
@@ -424,17 +424,17 @@ var Er = /* @__PURE__ */ Xe("Atom", Le);
|
|
|
424
424
|
function ss(t, e, n) {
|
|
425
425
|
e === void 0 && (e = it), n === void 0 && (n = it);
|
|
426
426
|
var r = new Le(t);
|
|
427
|
-
return e !== it &&
|
|
427
|
+
return e !== it && Fc(r, e), n !== it && Is(r, n), r;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Ea(t, e) {
|
|
430
430
|
return Hs(t, e);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function xa(t, e) {
|
|
433
433
|
return Object.is ? Object.is(t, e) : t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
|
|
434
434
|
}
|
|
435
435
|
var He = {
|
|
436
|
-
structural:
|
|
437
|
-
default:
|
|
436
|
+
structural: Ea,
|
|
437
|
+
default: xa
|
|
438
438
|
};
|
|
439
439
|
function Ke(t, e, n) {
|
|
440
440
|
return wt(t) ? t : Array.isArray(t) ? L.array(t, {
|
|
@@ -447,7 +447,7 @@ function Ke(t, e, n) {
|
|
|
447
447
|
name: n
|
|
448
448
|
}) : typeof t == "function" && !Ge(t) && !St(t) ? es(t) ? lt(t) : _t(n, t) : t;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Aa(t, e, n) {
|
|
451
451
|
if (t == null || qe(t) || Ct(t) || Ie(t) || ge(t))
|
|
452
452
|
return t;
|
|
453
453
|
if (Array.isArray(t))
|
|
@@ -475,23 +475,23 @@ function Ea(t, e, n) {
|
|
|
475
475
|
function vn(t) {
|
|
476
476
|
return t;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Na(t, e) {
|
|
479
479
|
return process.env.NODE_ENV !== "production" && wt(t) && _("observable.struct should not be used with observable values"), Hs(t, e) ? e : t;
|
|
480
480
|
}
|
|
481
|
-
var
|
|
481
|
+
var Ia = "override";
|
|
482
482
|
function Jt(t) {
|
|
483
|
-
return t.annotationType_ ===
|
|
483
|
+
return t.annotationType_ === Ia;
|
|
484
484
|
}
|
|
485
485
|
function It(t, e) {
|
|
486
486
|
return {
|
|
487
487
|
annotationType_: t,
|
|
488
488
|
options_: e,
|
|
489
|
-
make_:
|
|
490
|
-
extend_:
|
|
491
|
-
decorate_20223_:
|
|
489
|
+
make_: Pa,
|
|
490
|
+
extend_: Ma,
|
|
491
|
+
decorate_20223_: Ca
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Pa(t, e, n, r) {
|
|
495
495
|
var i;
|
|
496
496
|
if ((i = this.options_) != null && i.bound)
|
|
497
497
|
return this.extend_(t, e, n, !1) === null ? 0 : 1;
|
|
@@ -502,11 +502,11 @@ function Na(t, e, n, r) {
|
|
|
502
502
|
var s = os(t, this, e, n, !1);
|
|
503
503
|
return be(r, e, s), 2;
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Ma(t, e, n, r) {
|
|
506
506
|
var i = os(t, this, e, n);
|
|
507
507
|
return t.defineProperty_(e, i, r);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Ca(t, e) {
|
|
510
510
|
process.env.NODE_ENV !== "production" && gn(e, ["method", "field"]);
|
|
511
511
|
var n = e.kind, r = e.name, i = e.addInitializer, s = this, o = function(u) {
|
|
512
512
|
var l, d, f, h;
|
|
@@ -527,14 +527,14 @@ function Pa(t, e) {
|
|
|
527
527
|
_("Cannot apply '" + s.annotationType_ + "' to '" + String(r) + "' (kind: " + n + "):" + (`
|
|
528
528
|
'` + s.annotationType_ + "' can only be used on properties with a function value."));
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function Ta(t, e, n, r) {
|
|
531
531
|
var i = e.annotationType_, s = r.value;
|
|
532
532
|
process.env.NODE_ENV !== "production" && !T(s) && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
|
|
533
533
|
'` + i + "' can only be used on properties with a function value."));
|
|
534
534
|
}
|
|
535
535
|
function os(t, e, n, r, i) {
|
|
536
536
|
var s, o, a, c, u, l, d;
|
|
537
|
-
i === void 0 && (i = y.safeDescriptors),
|
|
537
|
+
i === void 0 && (i = y.safeDescriptors), Ta(t, e, n, r);
|
|
538
538
|
var f = r.value;
|
|
539
539
|
if ((s = e.options_) != null && s.bound) {
|
|
540
540
|
var h;
|
|
@@ -562,12 +562,12 @@ function as(t, e) {
|
|
|
562
562
|
return {
|
|
563
563
|
annotationType_: t,
|
|
564
564
|
options_: e,
|
|
565
|
-
make_:
|
|
566
|
-
extend_:
|
|
567
|
-
decorate_20223_:
|
|
565
|
+
make_: $a,
|
|
566
|
+
extend_: Da,
|
|
567
|
+
decorate_20223_: Ra
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function $a(t, e, n, r) {
|
|
571
571
|
var i;
|
|
572
572
|
if (r === t.target_)
|
|
573
573
|
return this.extend_(t, e, n, !1) === null ? 0 : 2;
|
|
@@ -578,11 +578,11 @@ function Ca(t, e, n, r) {
|
|
|
578
578
|
var s = cs(t, this, e, n, !1, !1);
|
|
579
579
|
return be(r, e, s), 2;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Da(t, e, n, r) {
|
|
582
582
|
var i, s = cs(t, this, e, n, (i = this.options_) == null ? void 0 : i.bound);
|
|
583
583
|
return t.defineProperty_(e, s, r);
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Ra(t, e) {
|
|
586
586
|
var n;
|
|
587
587
|
process.env.NODE_ENV !== "production" && gn(e, ["method"]);
|
|
588
588
|
var r = e.name, i = e.addInitializer;
|
|
@@ -591,13 +591,13 @@ function $a(t, e) {
|
|
|
591
591
|
o.isMobXFlow = !0, s[r] = o;
|
|
592
592
|
}), t;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function La(t, e, n, r) {
|
|
595
595
|
var i = e.annotationType_, s = r.value;
|
|
596
596
|
process.env.NODE_ENV !== "production" && !T(s) && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
|
|
597
597
|
'` + i + "' can only be used on properties with a generator function value."));
|
|
598
598
|
}
|
|
599
599
|
function cs(t, e, n, r, i, s) {
|
|
600
|
-
s === void 0 && (s = y.safeDescriptors),
|
|
600
|
+
s === void 0 && (s = y.safeDescriptors), La(t, e, n, r);
|
|
601
601
|
var o = r.value;
|
|
602
602
|
if (St(o) || (o = lt(o)), i) {
|
|
603
603
|
var a;
|
|
@@ -619,21 +619,21 @@ function xr(t, e) {
|
|
|
619
619
|
return {
|
|
620
620
|
annotationType_: t,
|
|
621
621
|
options_: e,
|
|
622
|
-
make_:
|
|
623
|
-
extend_:
|
|
624
|
-
decorate_20223_:
|
|
622
|
+
make_: ka,
|
|
623
|
+
extend_: ja,
|
|
624
|
+
decorate_20223_: Fa
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function ka(t, e, n) {
|
|
628
628
|
return this.extend_(t, e, n, !1) === null ? 0 : 1;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
return
|
|
630
|
+
function ja(t, e, n, r) {
|
|
631
|
+
return za(t, this, e, n), t.defineComputedProperty_(e, Ne({}, this.options_, {
|
|
632
632
|
get: n.get,
|
|
633
633
|
set: n.set
|
|
634
634
|
}), r);
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function Fa(t, e) {
|
|
637
637
|
process.env.NODE_ENV !== "production" && gn(e, ["getter"]);
|
|
638
638
|
var n = this, r = e.name, i = e.addInitializer, s;
|
|
639
639
|
function o(a, c) {
|
|
@@ -661,7 +661,7 @@ function ja(t, e) {
|
|
|
661
661
|
return a.getObservablePropValue_(r);
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function za(t, e, n, r) {
|
|
665
665
|
var i = e.annotationType_, s = r.get;
|
|
666
666
|
process.env.NODE_ENV !== "production" && !s && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
|
|
667
667
|
'` + i + "' can only be used on getter(+setter) properties."));
|
|
@@ -670,19 +670,19 @@ function bn(t, e) {
|
|
|
670
670
|
return {
|
|
671
671
|
annotationType_: t,
|
|
672
672
|
options_: e,
|
|
673
|
-
make_:
|
|
674
|
-
extend_:
|
|
675
|
-
decorate_20223_:
|
|
673
|
+
make_: Va,
|
|
674
|
+
extend_: Ba,
|
|
675
|
+
decorate_20223_: Ha
|
|
676
676
|
};
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Va(t, e, n) {
|
|
679
679
|
return this.extend_(t, e, n, !1) === null ? 0 : 1;
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Ba(t, e, n, r) {
|
|
682
682
|
var i, s;
|
|
683
|
-
return
|
|
683
|
+
return Ka(t, this, e, n), t.defineObservableProperty_(e, n.value, (i = (s = this.options_) == null ? void 0 : s.enhancer) != null ? i : Ke, r);
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function Ha(t, e) {
|
|
686
686
|
if (process.env.NODE_ENV !== "production") {
|
|
687
687
|
if (e.kind === "field")
|
|
688
688
|
throw _("Please use `@observable accessor " + String(e.name) + "` instead of `@observable " + String(e.name) + "`");
|
|
@@ -712,22 +712,22 @@ function Va(t, e) {
|
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
714
|
}
|
|
715
|
-
function
|
|
715
|
+
function Ka(t, e, n, r) {
|
|
716
716
|
var i = e.annotationType_;
|
|
717
717
|
process.env.NODE_ENV !== "production" && !("value" in r) && _("Cannot apply '" + i + "' to '" + t.name_ + "." + n.toString() + "':" + (`
|
|
718
718
|
'` + i + "' cannot be used on getter/setter properties"));
|
|
719
719
|
}
|
|
720
|
-
var
|
|
720
|
+
var Ua = "true", Wa = /* @__PURE__ */ us();
|
|
721
721
|
function us(t) {
|
|
722
722
|
return {
|
|
723
|
-
annotationType_:
|
|
723
|
+
annotationType_: Ua,
|
|
724
724
|
options_: t,
|
|
725
|
-
make_:
|
|
726
|
-
extend_:
|
|
727
|
-
decorate_20223_:
|
|
725
|
+
make_: Ga,
|
|
726
|
+
extend_: qa,
|
|
727
|
+
decorate_20223_: Ya
|
|
728
728
|
};
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function Ga(t, e, n, r) {
|
|
731
731
|
var i, s;
|
|
732
732
|
if (n.get)
|
|
733
733
|
return yn.make_(t, e, n, r);
|
|
@@ -757,7 +757,7 @@ function Ua(t, e, n, r) {
|
|
|
757
757
|
}
|
|
758
758
|
return d.make_(t, e, n, r);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function qa(t, e, n, r) {
|
|
761
761
|
var i, s;
|
|
762
762
|
if (n.get)
|
|
763
763
|
return yn.extend_(t, e, n, r);
|
|
@@ -773,10 +773,10 @@ function Wa(t, e, n, r) {
|
|
|
773
773
|
var a = ((s = this.options_) == null ? void 0 : s.deep) === !1 ? L.ref : L;
|
|
774
774
|
return a.extend_(t, e, n, r);
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Ya(t, e) {
|
|
777
777
|
_("'" + this.annotationType_ + "' cannot be used as a decorator");
|
|
778
778
|
}
|
|
779
|
-
var
|
|
779
|
+
var Ja = "observable", Xa = "observable.ref", Za = "observable.shallow", Qa = "observable.struct", ls = {
|
|
780
780
|
deep: !0,
|
|
781
781
|
name: void 0,
|
|
782
782
|
defaultDecorator: void 0,
|
|
@@ -786,21 +786,21 @@ Object.freeze(ls);
|
|
|
786
786
|
function Dt(t) {
|
|
787
787
|
return t || ls;
|
|
788
788
|
}
|
|
789
|
-
var er = /* @__PURE__ */ bn(
|
|
789
|
+
var er = /* @__PURE__ */ bn(Ja), ec = /* @__PURE__ */ bn(Xa, {
|
|
790
790
|
enhancer: vn
|
|
791
|
-
}),
|
|
792
|
-
enhancer:
|
|
793
|
-
}),
|
|
794
|
-
enhancer:
|
|
791
|
+
}), tc = /* @__PURE__ */ bn(Za, {
|
|
792
|
+
enhancer: Aa
|
|
793
|
+
}), nc = /* @__PURE__ */ bn(Qa, {
|
|
794
|
+
enhancer: Na
|
|
795
795
|
}), ds = /* @__PURE__ */ ye(er);
|
|
796
796
|
function Rt(t) {
|
|
797
|
-
return t.deep === !0 ? Ke : t.deep === !1 ? vn :
|
|
797
|
+
return t.deep === !0 ? Ke : t.deep === !1 ? vn : ic(t.defaultDecorator);
|
|
798
798
|
}
|
|
799
|
-
function
|
|
799
|
+
function rc(t) {
|
|
800
800
|
var e;
|
|
801
801
|
return t ? (e = t.defaultDecorator) != null ? e : us(t) : void 0;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function ic(t) {
|
|
804
804
|
var e, n;
|
|
805
805
|
return t && (e = (n = t.options_) == null ? void 0 : n.enhancer) != null ? e : Ke;
|
|
806
806
|
}
|
|
@@ -814,33 +814,33 @@ function fs(t, e, n) {
|
|
|
814
814
|
return wt(t) ? t : z(t) ? L.object(t, e, n) : Array.isArray(t) ? L.array(t, e) : dt(t) ? L.map(t, e) : Ee(t) ? L.set(t, e) : typeof t == "object" && t !== null ? t : L.box(t, e);
|
|
815
815
|
}
|
|
816
816
|
Zi(fs, ds);
|
|
817
|
-
var
|
|
817
|
+
var sc = {
|
|
818
818
|
box: function(e, n) {
|
|
819
819
|
var r = Dt(n);
|
|
820
820
|
return new Be(e, Rt(r), r.name, !0, r.equals);
|
|
821
821
|
},
|
|
822
822
|
array: function(e, n) {
|
|
823
823
|
var r = Dt(n);
|
|
824
|
-
return (y.useProxies === !1 || r.proxy === !1 ?
|
|
824
|
+
return (y.useProxies === !1 || r.proxy === !1 ? lu : eu)(e, Rt(r), r.name);
|
|
825
825
|
},
|
|
826
826
|
map: function(e, n) {
|
|
827
827
|
var r = Dt(n);
|
|
828
|
-
return new
|
|
828
|
+
return new ks(e, Rt(r), r.name);
|
|
829
829
|
},
|
|
830
830
|
set: function(e, n) {
|
|
831
831
|
var r = Dt(n);
|
|
832
|
-
return new
|
|
832
|
+
return new js(e, Rt(r), r.name);
|
|
833
833
|
},
|
|
834
834
|
object: function(e, n, r) {
|
|
835
|
-
return
|
|
836
|
-
return Ms(y.useProxies === !1 || (r == null ? void 0 : r.proxy) === !1 ? Qe({}, r) :
|
|
835
|
+
return ke(function() {
|
|
836
|
+
return Ms(y.useProxies === !1 || (r == null ? void 0 : r.proxy) === !1 ? Qe({}, r) : Jc({}, r), e, n);
|
|
837
837
|
});
|
|
838
838
|
},
|
|
839
|
-
ref: /* @__PURE__ */ ye(
|
|
840
|
-
shallow: /* @__PURE__ */ ye(
|
|
839
|
+
ref: /* @__PURE__ */ ye(ec),
|
|
840
|
+
shallow: /* @__PURE__ */ ye(tc),
|
|
841
841
|
deep: ds,
|
|
842
|
-
struct: /* @__PURE__ */ ye(
|
|
843
|
-
}, L = /* @__PURE__ */ Zi(fs,
|
|
842
|
+
struct: /* @__PURE__ */ ye(nc)
|
|
843
|
+
}, L = /* @__PURE__ */ Zi(fs, sc), hs = "computed", oc = "computed.struct", tr = /* @__PURE__ */ xr(hs), ac = /* @__PURE__ */ xr(oc, {
|
|
844
844
|
equals: He.structural
|
|
845
845
|
}), yn = function(e, n) {
|
|
846
846
|
if (Nt(n))
|
|
@@ -854,8 +854,8 @@ var rc = {
|
|
|
854
854
|
return r.get = e, r.name || (r.name = e.name || ""), new V(r);
|
|
855
855
|
};
|
|
856
856
|
Object.assign(yn, tr);
|
|
857
|
-
yn.struct = /* @__PURE__ */ ye(
|
|
858
|
-
var Xr, Zr, Xt = 0,
|
|
857
|
+
yn.struct = /* @__PURE__ */ ye(ac);
|
|
858
|
+
var Xr, Zr, Xt = 0, cc = 1, uc = (Xr = (Zr = /* @__PURE__ */ qt(function() {
|
|
859
859
|
}, "name")) == null ? void 0 : Zr.configurable) != null ? Xr : !1, Qr = {
|
|
860
860
|
value: "action",
|
|
861
861
|
configurable: !0,
|
|
@@ -865,24 +865,24 @@ var Xr, Zr, Xt = 0, oc = 1, ac = (Xr = (Zr = /* @__PURE__ */ qt(function() {
|
|
|
865
865
|
function Ue(t, e, n, r) {
|
|
866
866
|
n === void 0 && (n = !1), process.env.NODE_ENV !== "production" && (T(e) || _("`action` can only be invoked on functions"), (typeof t != "string" || !t) && _("actions should have valid names, got: '" + t + "'"));
|
|
867
867
|
function i() {
|
|
868
|
-
return
|
|
868
|
+
return lc(t, n, e, r || this, arguments);
|
|
869
869
|
}
|
|
870
870
|
return i.isMobxAction = !0, i.toString = function() {
|
|
871
871
|
return e.toString();
|
|
872
|
-
},
|
|
872
|
+
}, uc && (Qr.value = t, be(i, "name", Qr)), i;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
var s =
|
|
874
|
+
function lc(t, e, n, r, i) {
|
|
875
|
+
var s = dc(t, e, r, i);
|
|
876
876
|
try {
|
|
877
877
|
return n.apply(r, i);
|
|
878
878
|
} catch (o) {
|
|
879
879
|
throw s.error_ = o, o;
|
|
880
880
|
} finally {
|
|
881
|
-
|
|
881
|
+
fc(s);
|
|
882
882
|
}
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
var i = process.env.NODE_ENV !== "production" &&
|
|
884
|
+
function dc(t, e, n, r) {
|
|
885
|
+
var i = process.env.NODE_ENV !== "production" && j() && !!t, s = 0;
|
|
886
886
|
if (process.env.NODE_ENV !== "production" && i) {
|
|
887
887
|
s = Date.now();
|
|
888
888
|
var o = r ? Array.from(r) : Yt;
|
|
@@ -904,17 +904,17 @@ function uc(t, e, n, r) {
|
|
|
904
904
|
prevAllowStateReads_: l,
|
|
905
905
|
notifySpy_: i,
|
|
906
906
|
startTime_: s,
|
|
907
|
-
actionId_:
|
|
907
|
+
actionId_: cc++,
|
|
908
908
|
parentActionId_: Xt
|
|
909
909
|
};
|
|
910
910
|
return Xt = d.actionId_, d;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function fc(t) {
|
|
913
913
|
Xt !== t.actionId_ && _(30), Xt = t.parentActionId_, t.error_ !== void 0 && (y.suppressReactionErrors = !0), Sn(t.prevAllowStateChanges_), bt(t.prevAllowStateReads_), te(), t.runAsAction_ && Ae(t.prevDerivation_), process.env.NODE_ENV !== "production" && t.notifySpy_ && G({
|
|
914
914
|
time: Date.now() - t.startTime_
|
|
915
915
|
}), y.suppressReactionErrors = !1;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function hc(t, e) {
|
|
918
918
|
var n = _n(t);
|
|
919
919
|
try {
|
|
920
920
|
return e();
|
|
@@ -929,13 +929,13 @@ function _n(t) {
|
|
|
929
929
|
function Sn(t) {
|
|
930
930
|
y.allowStateChanges = t;
|
|
931
931
|
}
|
|
932
|
-
var
|
|
932
|
+
var pc = "create", Be = /* @__PURE__ */ (function(t) {
|
|
933
933
|
function e(r, i, s, o, a) {
|
|
934
934
|
var c;
|
|
935
|
-
if (s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableValue@" + ie() : "ObservableValue"), o === void 0 && (o = !0), a === void 0 && (a = He.default), c = t.call(this, s) || this, c.enhancer = void 0, c.name_ = void 0, c.equals = void 0, c.hasUnreportedChange_ = !1, c.interceptors_ = void 0, c.changeListeners_ = void 0, c.value_ = void 0, c.dehancer = void 0, c.enhancer = i, c.name_ = s, c.equals = a, c.value_ = i(r, void 0, s), process.env.NODE_ENV !== "production" && o &&
|
|
935
|
+
if (s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableValue@" + ie() : "ObservableValue"), o === void 0 && (o = !0), a === void 0 && (a = He.default), c = t.call(this, s) || this, c.enhancer = void 0, c.name_ = void 0, c.equals = void 0, c.hasUnreportedChange_ = !1, c.interceptors_ = void 0, c.changeListeners_ = void 0, c.value_ = void 0, c.dehancer = void 0, c.enhancer = i, c.name_ = s, c.equals = a, c.value_ = i(r, void 0, s), process.env.NODE_ENV !== "production" && o && j()) {
|
|
936
936
|
var u;
|
|
937
937
|
We({
|
|
938
|
-
type:
|
|
938
|
+
type: pc,
|
|
939
939
|
object: c,
|
|
940
940
|
observableKind: "value",
|
|
941
941
|
debugObjectName: c.name_,
|
|
@@ -951,7 +951,7 @@ var fc = "create", Be = /* @__PURE__ */ (function(t) {
|
|
|
951
951
|
}, n.set = function(i) {
|
|
952
952
|
var s = this.value_;
|
|
953
953
|
if (i = this.prepareNewValue_(i), i !== y.UNCHANGED) {
|
|
954
|
-
var o =
|
|
954
|
+
var o = j();
|
|
955
955
|
process.env.NODE_ENV !== "production" && o && W({
|
|
956
956
|
type: ue,
|
|
957
957
|
object: this,
|
|
@@ -1011,7 +1011,7 @@ var fc = "create", Be = /* @__PURE__ */ (function(t) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
var e = t.prototype;
|
|
1013
1013
|
return e.onBecomeStale_ = function() {
|
|
1014
|
-
|
|
1014
|
+
Oc(this);
|
|
1015
1015
|
}, e.onBO = function() {
|
|
1016
1016
|
this.onBOL && this.onBOL.forEach(function(r) {
|
|
1017
1017
|
return r();
|
|
@@ -1026,7 +1026,7 @@ var fc = "create", Be = /* @__PURE__ */ (function(t) {
|
|
|
1026
1026
|
nr(this) && (this.warnAboutUntrackedRead_(), ee(), this.value_ = this.computeValue_(!1), te());
|
|
1027
1027
|
else if (_s(this), nr(this)) {
|
|
1028
1028
|
var r = y.trackingContext;
|
|
1029
|
-
this.keepAlive_ && !r && (y.trackingContext = this), this.trackAndCompute() &&
|
|
1029
|
+
this.keepAlive_ && !r && (y.trackingContext = this), this.trackAndCompute() && wc(this), y.trackingContext = r;
|
|
1030
1030
|
}
|
|
1031
1031
|
var i = this.value_;
|
|
1032
1032
|
if (Vt(i))
|
|
@@ -1047,7 +1047,7 @@ var fc = "create", Be = /* @__PURE__ */ (function(t) {
|
|
|
1047
1047
|
/* see #1208 */
|
|
1048
1048
|
this.dependenciesState_ === x.NOT_TRACKING_
|
|
1049
1049
|
), s = this.computeValue_(!0), o = i || Vt(r) || Vt(s) || !this.equals_(r, s);
|
|
1050
|
-
return o && (this.value_ = s, process.env.NODE_ENV !== "production" &&
|
|
1050
|
+
return o && (this.value_ = s, process.env.NODE_ENV !== "production" && j() && We({
|
|
1051
1051
|
observableKind: "computed",
|
|
1052
1052
|
debugObjectName: this.name_,
|
|
1053
1053
|
object: this.scope_,
|
|
@@ -1073,7 +1073,7 @@ var fc = "create", Be = /* @__PURE__ */ (function(t) {
|
|
|
1073
1073
|
this.keepAlive_ || (rr(this), this.value_ = void 0, process.env.NODE_ENV !== "production" && this.isTracing_ !== re.NONE && console.log("[mobx.trace] Computed value '" + this.name_ + "' was suspended and it will recompute on the next access."));
|
|
1074
1074
|
}, e.observe_ = function(r, i) {
|
|
1075
1075
|
var s = this, o = !0, a = void 0;
|
|
1076
|
-
return
|
|
1076
|
+
return $c(function() {
|
|
1077
1077
|
var c = s.get();
|
|
1078
1078
|
if (!o || i) {
|
|
1079
1079
|
var u = Ze();
|
|
@@ -1190,7 +1190,7 @@ function ve(t) {
|
|
|
1190
1190
|
!y.allowStateChanges && (e || y.enforceActions === "always") && console.warn("[MobX] " + (y.enforceActions ? "Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed. Tried to modify: " : "Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, a computed value or the render function of a React component? You can wrap side effects in 'runInAction' (or decorate functions with 'action') if needed. Tried to modify: ") + t.name_);
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function mc(t) {
|
|
1194
1194
|
process.env.NODE_ENV !== "production" && !y.allowStateReads && y.observableRequiresReaction && console.warn("[mobx] Observable '" + t.name_ + "' being read outside a reactive context.");
|
|
1195
1195
|
}
|
|
1196
1196
|
function ps(t, e, n) {
|
|
@@ -1211,12 +1211,12 @@ function ps(t, e, n) {
|
|
|
1211
1211
|
} catch (o) {
|
|
1212
1212
|
s = new Zt(o);
|
|
1213
1213
|
}
|
|
1214
|
-
return y.inBatch--, y.trackingDerivation = i,
|
|
1214
|
+
return y.inBatch--, y.trackingDerivation = i, vc(t), gc(t), bt(r), s;
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function gc(t) {
|
|
1217
1217
|
process.env.NODE_ENV !== "production" && t.observing_.length === 0 && (typeof t.requiresObservable_ == "boolean" ? t.requiresObservable_ : y.reactionRequiresObservable) && console.warn("[mobx] Derivation '" + t.name_ + "' is created/updated without reading any observable value.");
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function vc(t) {
|
|
1220
1220
|
for (var e = t.observing_, n = t.observing_ = t.newObserving_, r = x.UP_TO_DATE_, i = 0, s = t.unboundDepsCount_, o = 0; o < s; o++) {
|
|
1221
1221
|
var a = n[o];
|
|
1222
1222
|
a.diffValue === 0 && (a.diffValue = 1, i !== o && (n[i] = a), i++), a.dependenciesState_ > r && (r = a.dependenciesState_);
|
|
@@ -1227,7 +1227,7 @@ function mc(t) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
for (; i--; ) {
|
|
1229
1229
|
var u = n[i];
|
|
1230
|
-
u.diffValue === 1 && (u.diffValue = 0,
|
|
1230
|
+
u.diffValue === 1 && (u.diffValue = 0, Sc(u, t));
|
|
1231
1231
|
}
|
|
1232
1232
|
r !== x.UP_TO_DATE_ && (t.dependenciesState_ = r, t.onBecomeStale_());
|
|
1233
1233
|
}
|
|
@@ -1275,19 +1275,19 @@ var Bt = function() {
|
|
|
1275
1275
|
vs || _(35);
|
|
1276
1276
|
}, 1), new Bt());
|
|
1277
1277
|
})();
|
|
1278
|
-
function
|
|
1278
|
+
function bc() {
|
|
1279
1279
|
if ((y.pendingReactions.length || y.inBatch || y.isRunningReactions) && _(36), vs = !0, Ht) {
|
|
1280
1280
|
var t = hn();
|
|
1281
1281
|
--t.__mobxInstanceCount === 0 && (t.__mobxGlobals = void 0), y = new Bt();
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function yc(t) {
|
|
1285
1285
|
return t.observers_ && t.observers_.size > 0;
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function _c(t) {
|
|
1288
1288
|
return t.observers_;
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function Sc(t, e) {
|
|
1291
1291
|
t.observers_.add(e), t.lowestObserverState_ > e.dependenciesState_ && (t.lowestObserverState_ = e.dependenciesState_);
|
|
1292
1292
|
}
|
|
1293
1293
|
function bs(t, e) {
|
|
@@ -1310,7 +1310,7 @@ function te() {
|
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
1312
|
function _s(t) {
|
|
1313
|
-
|
|
1313
|
+
mc(t);
|
|
1314
1314
|
var e = y.trackingDerivation;
|
|
1315
1315
|
return e !== null ? (e.runId_ !== t.lastAccessedBy_ && (t.lastAccessedBy_ = e.runId_, e.newObserving_[e.unboundDepsCount_++] = t, !t.isBeingObserved && y.trackingContext && (t.isBeingObserved = !0, t.onBO())), t.isBeingObserved) : (t.observers_.size === 0 && y.inBatch > 0 && ys(t), !1);
|
|
1316
1316
|
}
|
|
@@ -1319,12 +1319,12 @@ function Ss(t) {
|
|
|
1319
1319
|
e.dependenciesState_ === x.UP_TO_DATE_ && (process.env.NODE_ENV !== "production" && e.isTracing_ !== re.NONE && ws(e, t), e.onBecomeStale_()), e.dependenciesState_ = x.STALE_;
|
|
1320
1320
|
}));
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function wc(t) {
|
|
1323
1323
|
t.lowestObserverState_ !== x.STALE_ && (t.lowestObserverState_ = x.STALE_, t.observers_.forEach(function(e) {
|
|
1324
1324
|
e.dependenciesState_ === x.POSSIBLY_STALE_ ? (e.dependenciesState_ = x.STALE_, process.env.NODE_ENV !== "production" && e.isTracing_ !== re.NONE && ws(e, t)) : e.dependenciesState_ === x.UP_TO_DATE_ && (t.lowestObserverState_ = x.UP_TO_DATE_);
|
|
1325
1325
|
}));
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function Oc(t) {
|
|
1328
1328
|
t.lowestObserverState_ === x.UP_TO_DATE_ && (t.lowestObserverState_ = x.POSSIBLY_STALE_, t.observers_.forEach(function(e) {
|
|
1329
1329
|
e.dependenciesState_ === x.UP_TO_DATE_ && (e.dependenciesState_ = x.POSSIBLY_STALE_, e.onBecomeStale_());
|
|
1330
1330
|
}));
|
|
@@ -1375,7 +1375,7 @@ var _e = /* @__PURE__ */ (function() {
|
|
|
1375
1375
|
if (y.trackingContext = this, nr(this)) {
|
|
1376
1376
|
this.isTrackPending = !0;
|
|
1377
1377
|
try {
|
|
1378
|
-
this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending &&
|
|
1378
|
+
this.onInvalidate_(), process.env.NODE_ENV !== "production" && this.isTrackPending && j() && We({
|
|
1379
1379
|
name: this.name_,
|
|
1380
1380
|
type: "scheduled-reaction"
|
|
1381
1381
|
});
|
|
@@ -1388,7 +1388,7 @@ var _e = /* @__PURE__ */ (function() {
|
|
|
1388
1388
|
}, e.track = function(r) {
|
|
1389
1389
|
if (!this.isDisposed) {
|
|
1390
1390
|
ee();
|
|
1391
|
-
var i =
|
|
1391
|
+
var i = j(), s;
|
|
1392
1392
|
process.env.NODE_ENV !== "production" && i && (s = Date.now(), W({
|
|
1393
1393
|
name: this.name_,
|
|
1394
1394
|
type: "reaction"
|
|
@@ -1409,7 +1409,7 @@ var _e = /* @__PURE__ */ (function() {
|
|
|
1409
1409
|
if (y.disableErrorBoundaries)
|
|
1410
1410
|
throw r;
|
|
1411
1411
|
var s = process.env.NODE_ENV !== "production" ? "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'" : "[mobx] uncaught error in '" + this + "'";
|
|
1412
|
-
y.suppressReactionErrors ? process.env.NODE_ENV !== "production" && console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)") : console.error(s, r), process.env.NODE_ENV !== "production" &&
|
|
1412
|
+
y.suppressReactionErrors ? process.env.NODE_ENV !== "production" && console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)") : console.error(s, r), process.env.NODE_ENV !== "production" && j() && We({
|
|
1413
1413
|
type: "error",
|
|
1414
1414
|
name: this.name_,
|
|
1415
1415
|
message: s,
|
|
@@ -1427,7 +1427,7 @@ var _e = /* @__PURE__ */ (function() {
|
|
|
1427
1427
|
}, e.toString = function() {
|
|
1428
1428
|
return "Reaction[" + this.name_ + "]";
|
|
1429
1429
|
}, e.trace = function(r) {
|
|
1430
|
-
r === void 0 && (r = !1),
|
|
1430
|
+
r === void 0 && (r = !1), Gc(this, r);
|
|
1431
1431
|
}, ft(t, [{
|
|
1432
1432
|
key: "isDisposed",
|
|
1433
1433
|
get: function() {
|
|
@@ -1479,9 +1479,9 @@ var ei = 100, ir = function(e) {
|
|
|
1479
1479
|
return e();
|
|
1480
1480
|
};
|
|
1481
1481
|
function Es() {
|
|
1482
|
-
y.inBatch > 0 || y.isRunningReactions || ir(
|
|
1482
|
+
y.inBatch > 0 || y.isRunningReactions || ir(Ec);
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1484
|
+
function Ec() {
|
|
1485
1485
|
y.isRunningReactions = !0;
|
|
1486
1486
|
for (var t = y.pendingReactions, e = 0; t.length > 0; ) {
|
|
1487
1487
|
++e === ei && (console.error(process.env.NODE_ENV !== "production" ? "Reaction doesn't converge to a stable state after " + ei + " iterations." + (" Probably there is a cycle in the reactive function: " + t[0]) : "[mobx] cycle in reaction: " + t[0]), t.splice(0));
|
|
@@ -1491,7 +1491,7 @@ function wc() {
|
|
|
1491
1491
|
y.isRunningReactions = !1;
|
|
1492
1492
|
}
|
|
1493
1493
|
var Qt = /* @__PURE__ */ Xe("Reaction", _e);
|
|
1494
|
-
function
|
|
1494
|
+
function xc(t) {
|
|
1495
1495
|
var e = ir;
|
|
1496
1496
|
ir = function(r) {
|
|
1497
1497
|
return t(function() {
|
|
@@ -1499,7 +1499,7 @@ function Oc(t) {
|
|
|
1499
1499
|
});
|
|
1500
1500
|
};
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function j() {
|
|
1503
1503
|
return process.env.NODE_ENV !== "production" && !!y.spyListeners.length;
|
|
1504
1504
|
}
|
|
1505
1505
|
function We(t) {
|
|
@@ -1515,7 +1515,7 @@ function W(t) {
|
|
|
1515
1515
|
We(e);
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
|
-
var
|
|
1518
|
+
var Ac = {
|
|
1519
1519
|
type: "report-end",
|
|
1520
1520
|
spyReportEnd: !0
|
|
1521
1521
|
};
|
|
@@ -1523,9 +1523,9 @@ function G(t) {
|
|
|
1523
1523
|
process.env.NODE_ENV !== "production" && We(t ? Ne({}, t, {
|
|
1524
1524
|
type: "report-end",
|
|
1525
1525
|
spyReportEnd: !0
|
|
1526
|
-
}) :
|
|
1526
|
+
}) : Ac);
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1528
|
+
function Nc(t) {
|
|
1529
1529
|
return process.env.NODE_ENV === "production" ? (console.warn("[mobx.spy] Is a no-op in production builds"), function() {
|
|
1530
1530
|
}) : (y.spyListeners.push(t), wr(function() {
|
|
1531
1531
|
y.spyListeners = y.spyListeners.filter(function(e) {
|
|
@@ -1533,18 +1533,18 @@ function xc(t) {
|
|
|
1533
1533
|
});
|
|
1534
1534
|
}));
|
|
1535
1535
|
}
|
|
1536
|
-
var Nr = "action",
|
|
1536
|
+
var Nr = "action", Ic = "action.bound", xs = "autoAction", Pc = "autoAction.bound", Mc = "<unnamed action>", sr = /* @__PURE__ */ It(Nr), Cc = /* @__PURE__ */ It(Ic, {
|
|
1537
1537
|
bound: !0
|
|
1538
1538
|
}), or = /* @__PURE__ */ It(xs, {
|
|
1539
1539
|
autoAction: !0
|
|
1540
|
-
}),
|
|
1540
|
+
}), Tc = /* @__PURE__ */ It(Pc, {
|
|
1541
1541
|
autoAction: !0,
|
|
1542
1542
|
bound: !0
|
|
1543
1543
|
});
|
|
1544
1544
|
function As(t) {
|
|
1545
1545
|
var e = function(r, i) {
|
|
1546
1546
|
if (T(r))
|
|
1547
|
-
return Ue(r.name ||
|
|
1547
|
+
return Ue(r.name || Mc, r, t);
|
|
1548
1548
|
if (T(i))
|
|
1549
1549
|
return Ue(r, i, t);
|
|
1550
1550
|
if (Nt(i))
|
|
@@ -1564,12 +1564,12 @@ var Ve = /* @__PURE__ */ As(!1);
|
|
|
1564
1564
|
Object.assign(Ve, sr);
|
|
1565
1565
|
var _t = /* @__PURE__ */ As(!0);
|
|
1566
1566
|
Object.assign(_t, or);
|
|
1567
|
-
Ve.bound = /* @__PURE__ */ ye(
|
|
1568
|
-
_t.bound = /* @__PURE__ */ ye(
|
|
1567
|
+
Ve.bound = /* @__PURE__ */ ye(Cc);
|
|
1568
|
+
_t.bound = /* @__PURE__ */ ye(Tc);
|
|
1569
1569
|
function Ge(t) {
|
|
1570
1570
|
return T(t) && t.isMobxAction === !0;
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function $c(t, e) {
|
|
1573
1573
|
var n, r, i, s;
|
|
1574
1574
|
e === void 0 && (e = Sr), process.env.NODE_ENV !== "production" && (T(t) || _("Autorun expects a function as first argument"), Ge(t) && _("Autorun does not accept actions since actions are untrackable"));
|
|
1575
1575
|
var o = (n = (r = e) == null ? void 0 : r.name) != null ? n : process.env.NODE_ENV !== "production" ? t.name || "Autorun@" + ie() : "Autorun", a = !e.scheduler && !e.delay, c;
|
|
@@ -1590,25 +1590,25 @@ function Cc(t, e) {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
return (i = e) != null && (i = i.signal) != null && i.aborted || c.schedule_(), c.getDisposer_((s = e) == null ? void 0 : s.signal);
|
|
1592
1592
|
}
|
|
1593
|
-
var
|
|
1593
|
+
var Dc = function(e) {
|
|
1594
1594
|
return e();
|
|
1595
1595
|
};
|
|
1596
1596
|
function Ns(t) {
|
|
1597
1597
|
return t.scheduler ? t.scheduler : t.delay ? function(e) {
|
|
1598
1598
|
return setTimeout(e, t.delay);
|
|
1599
|
-
} :
|
|
1599
|
+
} : Dc;
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function Rc(t, e, n) {
|
|
1602
1602
|
var r, i, s;
|
|
1603
1603
|
n === void 0 && (n = Sr), process.env.NODE_ENV !== "production" && ((!T(t) || !T(e)) && _("First and second argument to reaction should be functions"), z(n) || _("Third argument of reactions should be an object"));
|
|
1604
|
-
var o = (r = n.name) != null ? r : process.env.NODE_ENV !== "production" ? "Reaction@" + ie() : "Reaction", a = Ve(o, n.onError ?
|
|
1604
|
+
var o = (r = n.name) != null ? r : process.env.NODE_ENV !== "production" ? "Reaction@" + ie() : "Reaction", a = Ve(o, n.onError ? Lc(n.onError, e) : e), c = !n.scheduler && !n.delay, u = Ns(n), l = !0, d = !1, f, h = n.compareStructural ? He.structural : n.equals || He.default, v = new _e(o, function() {
|
|
1605
1605
|
l || c ? p() : d || (d = !0, u(p));
|
|
1606
1606
|
}, n.onError, n.requiresObservable);
|
|
1607
1607
|
function p() {
|
|
1608
1608
|
if (d = !1, !v.isDisposed) {
|
|
1609
1609
|
var m = !1, w = f;
|
|
1610
1610
|
v.track(function() {
|
|
1611
|
-
var g =
|
|
1611
|
+
var g = hc(!1, function() {
|
|
1612
1612
|
return t(v);
|
|
1613
1613
|
});
|
|
1614
1614
|
m = l || !h(f, g), f = g;
|
|
@@ -1617,7 +1617,7 @@ function $c(t, e, n) {
|
|
|
1617
1617
|
}
|
|
1618
1618
|
return (i = n) != null && (i = i.signal) != null && i.aborted || v.schedule_(), v.getDisposer_((s = n) == null ? void 0 : s.signal);
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function Lc(t, e) {
|
|
1621
1621
|
return function() {
|
|
1622
1622
|
try {
|
|
1623
1623
|
return e.apply(this, arguments);
|
|
@@ -1626,12 +1626,12 @@ function Dc(t, e) {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
};
|
|
1628
1628
|
}
|
|
1629
|
-
var
|
|
1630
|
-
function
|
|
1631
|
-
return Ps(
|
|
1629
|
+
var kc = "onBO", jc = "onBUO";
|
|
1630
|
+
function Fc(t, e, n) {
|
|
1631
|
+
return Ps(kc, t, e, n);
|
|
1632
1632
|
}
|
|
1633
1633
|
function Is(t, e, n) {
|
|
1634
|
-
return Ps(
|
|
1634
|
+
return Ps(jc, t, e, n);
|
|
1635
1635
|
}
|
|
1636
1636
|
function Ps(t, e, n, r) {
|
|
1637
1637
|
var i = Ye(e), s = T(r) ? r : n, o = t + "L";
|
|
@@ -1640,22 +1640,22 @@ function Ps(t, e, n, r) {
|
|
|
1640
1640
|
a && (a.delete(s), a.size === 0 && delete i[o]);
|
|
1641
1641
|
};
|
|
1642
1642
|
}
|
|
1643
|
-
var
|
|
1644
|
-
function
|
|
1645
|
-
t.isolateGlobalState === !0 &&
|
|
1643
|
+
var zc = "never", Lt = "always", Vc = "observed";
|
|
1644
|
+
function Bc(t) {
|
|
1645
|
+
t.isolateGlobalState === !0 && bc();
|
|
1646
1646
|
var e = t.useProxies, n = t.enforceActions;
|
|
1647
|
-
if (e !== void 0 && (y.useProxies = e === Lt ? !0 : e ===
|
|
1648
|
-
var r = n === Lt ? Lt : n ===
|
|
1647
|
+
if (e !== void 0 && (y.useProxies = e === Lt ? !0 : e === zc ? !1 : typeof Proxy < "u"), e === "ifavailable" && (y.verifyProxies = !0), n !== void 0) {
|
|
1648
|
+
var r = n === Lt ? Lt : n === Vc;
|
|
1649
1649
|
y.enforceActions = r, y.allowStateChanges = !(r === !0 || r === Lt);
|
|
1650
1650
|
}
|
|
1651
1651
|
["computedRequiresReaction", "reactionRequiresObservable", "observableRequiresReaction", "disableErrorBoundaries", "safeDescriptors"].forEach(function(i) {
|
|
1652
1652
|
i in t && (y[i] = !!t[i]);
|
|
1653
|
-
}), y.allowStateReads = !y.observableRequiresReaction, process.env.NODE_ENV !== "production" && y.disableErrorBoundaries === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), t.reactionScheduler &&
|
|
1653
|
+
}), y.allowStateReads = !y.observableRequiresReaction, process.env.NODE_ENV !== "production" && y.disableErrorBoundaries === !0 && console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."), t.reactionScheduler && xc(t.reactionScheduler);
|
|
1654
1654
|
}
|
|
1655
1655
|
function Ms(t, e, n, r) {
|
|
1656
1656
|
process.env.NODE_ENV !== "production" && (arguments.length > 4 && _("'extendObservable' expected 2-4 arguments"), typeof t != "object" && _("'extendObservable' expects an object as first argument"), Ie(t) && _("'extendObservable' should not be used on maps, use map.merge instead"), z(e) || _("'extendObservable' only accepts plain objects as second argument"), (wt(e) || wt(n)) && _("Extending an object with another observable (object) is not supported"));
|
|
1657
|
-
var i =
|
|
1658
|
-
return
|
|
1657
|
+
var i = ma(e);
|
|
1658
|
+
return ke(function() {
|
|
1659
1659
|
var s = Qe(t, r)[O];
|
|
1660
1660
|
ut(i).forEach(function(o) {
|
|
1661
1661
|
s.extend_(
|
|
@@ -1674,21 +1674,21 @@ function Ts(t) {
|
|
|
1674
1674
|
var e = {
|
|
1675
1675
|
name: t.name_
|
|
1676
1676
|
};
|
|
1677
|
-
return t.observing_ && t.observing_.length > 0 && (e.dependencies =
|
|
1677
|
+
return t.observing_ && t.observing_.length > 0 && (e.dependencies = Hc(t.observing_).map(Ts)), e;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function jf(t, e) {
|
|
1680
1680
|
return $s(Ye(t, e));
|
|
1681
1681
|
}
|
|
1682
1682
|
function $s(t) {
|
|
1683
1683
|
var e = {
|
|
1684
1684
|
name: t.name_
|
|
1685
1685
|
};
|
|
1686
|
-
return
|
|
1686
|
+
return yc(t) && (e.observers = Array.from(_c(t)).map($s)), e;
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function Hc(t) {
|
|
1689
1689
|
return Array.from(new Set(t));
|
|
1690
1690
|
}
|
|
1691
|
-
var
|
|
1691
|
+
var Kc = 0, Uc = /* @__PURE__ */ (function(t) {
|
|
1692
1692
|
function e() {
|
|
1693
1693
|
var r;
|
|
1694
1694
|
return r = t.call(this, "FLOW_CANCELLED") || this, Object.setPrototypeOf(r, (this instanceof e ? this.constructor : void 0).prototype), r.name = "FlowCancellationError", r;
|
|
@@ -1698,7 +1698,7 @@ var Bc = 0, Hc = /* @__PURE__ */ (function(t) {
|
|
|
1698
1698
|
return n.toString = function() {
|
|
1699
1699
|
return "Error: " + this.message;
|
|
1700
1700
|
}, e;
|
|
1701
|
-
})(/* @__PURE__ */ Qn(Error)), xn = /* @__PURE__ */ as("flow"),
|
|
1701
|
+
})(/* @__PURE__ */ Qn(Error)), xn = /* @__PURE__ */ as("flow"), Wc = /* @__PURE__ */ as("flow.bound", {
|
|
1702
1702
|
bound: !0
|
|
1703
1703
|
}), lt = /* @__PURE__ */ Object.assign(function(e, n) {
|
|
1704
1704
|
if (Nt(n))
|
|
@@ -1707,7 +1707,7 @@ var Bc = 0, Hc = /* @__PURE__ */ (function(t) {
|
|
|
1707
1707
|
return At(e, n, xn);
|
|
1708
1708
|
process.env.NODE_ENV !== "production" && arguments.length !== 1 && _("Flow expects single argument with generator function");
|
|
1709
1709
|
var r = e, i = r.name || "<unnamed flow>", s = function() {
|
|
1710
|
-
var a = this, c = arguments, u = ++
|
|
1710
|
+
var a = this, c = arguments, u = ++Kc, l = Ve(i + " - runid: " + u + " - init", r).apply(a, c), d, f = void 0, h = new Promise(function(v, p) {
|
|
1711
1711
|
var m = 0;
|
|
1712
1712
|
d = p;
|
|
1713
1713
|
function w(S) {
|
|
@@ -1743,7 +1743,7 @@ var Bc = 0, Hc = /* @__PURE__ */ (function(t) {
|
|
|
1743
1743
|
try {
|
|
1744
1744
|
f && ti(f);
|
|
1745
1745
|
var v = l.return(void 0), p = Promise.resolve(v.value);
|
|
1746
|
-
p.then(it, it), ti(p), d(new
|
|
1746
|
+
p.then(it, it), ti(p), d(new Uc());
|
|
1747
1747
|
} catch (m) {
|
|
1748
1748
|
d(m);
|
|
1749
1749
|
}
|
|
@@ -1751,7 +1751,7 @@ var Bc = 0, Hc = /* @__PURE__ */ (function(t) {
|
|
|
1751
1751
|
};
|
|
1752
1752
|
return s.isMobXFlow = !0, s;
|
|
1753
1753
|
}, xn);
|
|
1754
|
-
lt.bound = /* @__PURE__ */ ye(
|
|
1754
|
+
lt.bound = /* @__PURE__ */ ye(Wc);
|
|
1755
1755
|
function ti(t) {
|
|
1756
1756
|
T(t.cancel) && t.cancel();
|
|
1757
1757
|
}
|
|
@@ -1775,21 +1775,21 @@ function Ds(t, e) {
|
|
|
1775
1775
|
function wt(t) {
|
|
1776
1776
|
return process.env.NODE_ENV !== "production" && arguments.length !== 1 && _("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"), Ds(t);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function Ff(t, e) {
|
|
1779
1779
|
return process.env.NODE_ENV !== "production" && !De(e) ? _("expected a property name as second argument") : Ds(t, e);
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Gc() {
|
|
1782
1782
|
if (process.env.NODE_ENV !== "production") {
|
|
1783
1783
|
for (var t = !1, e = arguments.length, n = new Array(e), r = 0; r < e; r++)
|
|
1784
1784
|
n[r] = arguments[r];
|
|
1785
1785
|
typeof n[n.length - 1] == "boolean" && (t = n.pop());
|
|
1786
|
-
var i =
|
|
1786
|
+
var i = qc(n);
|
|
1787
1787
|
if (!i)
|
|
1788
1788
|
return _("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");
|
|
1789
1789
|
i.isTracing_ === re.NONE && console.log("[mobx.trace] '" + i.name_ + "' tracing enabled"), i.isTracing_ = t ? re.BREAK : re.LOG;
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function qc(t) {
|
|
1793
1793
|
switch (t.length) {
|
|
1794
1794
|
case 0:
|
|
1795
1795
|
return y.trackingDerivation;
|
|
@@ -1810,7 +1810,7 @@ function xe(t, e) {
|
|
|
1810
1810
|
function Fe(t) {
|
|
1811
1811
|
return t[O];
|
|
1812
1812
|
}
|
|
1813
|
-
var
|
|
1813
|
+
var Yc = {
|
|
1814
1814
|
has: function(e, n) {
|
|
1815
1815
|
return process.env.NODE_ENV !== "production" && y.trackingDerivation && mt("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead."), Fe(e).has_(n);
|
|
1816
1816
|
},
|
|
@@ -1836,9 +1836,9 @@ var Gc = {
|
|
|
1836
1836
|
_(13);
|
|
1837
1837
|
}
|
|
1838
1838
|
};
|
|
1839
|
-
function
|
|
1839
|
+
function Jc(t, e) {
|
|
1840
1840
|
var n, r;
|
|
1841
|
-
return Qi(), t = Qe(t, e), (r = (n = t[O]).proxy_) != null ? r : n.proxy_ = new Proxy(t,
|
|
1841
|
+
return Qi(), t = Qe(t, e), (r = (n = t[O]).proxy_) != null ? r : n.proxy_ = new Proxy(t, Yc);
|
|
1842
1842
|
}
|
|
1843
1843
|
function Z(t) {
|
|
1844
1844
|
return t.interceptors_ !== void 0 && t.interceptors_.length > 0;
|
|
@@ -1879,17 +1879,17 @@ function de(t, e) {
|
|
|
1879
1879
|
Ae(n);
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
|
-
function
|
|
1883
|
-
return
|
|
1882
|
+
function Xc(t, e, n) {
|
|
1883
|
+
return ke(function() {
|
|
1884
1884
|
var r, i = Qe(t, n)[O];
|
|
1885
|
-
process.env.NODE_ENV !== "production" && e && t[F] && _("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."), (r = e) != null || (e =
|
|
1885
|
+
process.env.NODE_ENV !== "production" && e && t[F] && _("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported."), (r = e) != null || (e = Oa(t)), ut(e).forEach(function(s) {
|
|
1886
1886
|
return i.make_(s, e[s]);
|
|
1887
1887
|
});
|
|
1888
1888
|
}), t;
|
|
1889
1889
|
}
|
|
1890
1890
|
var An = /* @__PURE__ */ Symbol("mobx-keys");
|
|
1891
1891
|
function Rs(t, e, n) {
|
|
1892
|
-
return process.env.NODE_ENV !== "production" && (!z(t) && !z(Object.getPrototypeOf(t)) && _("'makeAutoObservable' can only be used for classes that don't have a superclass"), qe(t) && _("makeAutoObservable can only be used on objects not already made observable")), z(t) ? Ms(t, t, e, n) : (
|
|
1892
|
+
return process.env.NODE_ENV !== "production" && (!z(t) && !z(Object.getPrototypeOf(t)) && _("'makeAutoObservable' can only be used for classes that don't have a superclass"), qe(t) && _("makeAutoObservable can only be used on objects not already made observable")), z(t) ? Ms(t, t, e, n) : (ke(function() {
|
|
1893
1893
|
var r = Qe(t, n)[O];
|
|
1894
1894
|
if (!t[An]) {
|
|
1895
1895
|
var i = Object.getPrototypeOf(t), s = new Set([].concat(ut(t), ut(i)));
|
|
@@ -1904,7 +1904,7 @@ function Rs(t, e, n) {
|
|
|
1904
1904
|
});
|
|
1905
1905
|
}), t);
|
|
1906
1906
|
}
|
|
1907
|
-
var ni = "splice", ue = "update",
|
|
1907
|
+
var ni = "splice", ue = "update", Zc = 1e4, Qc = {
|
|
1908
1908
|
get: function(e, n) {
|
|
1909
1909
|
var r = e[O];
|
|
1910
1910
|
return n === O ? r : n === "length" ? r.getArrayLength_() : typeof n == "string" && !isNaN(n) ? r.get_(parseInt(n)) : ne(en, n) ? en[n] : e[n];
|
|
@@ -1980,7 +1980,7 @@ var ni = "splice", ue = "update", Jc = 1e4, Xc = {
|
|
|
1980
1980
|
var l = this.spliceItemsIntoValues_(r, i, s);
|
|
1981
1981
|
return (i !== 0 || s.length !== 0) && this.notifyArraySplice_(r, s, l), this.dehanceValues_(l);
|
|
1982
1982
|
}, e.spliceItemsIntoValues_ = function(r, i, s) {
|
|
1983
|
-
if (s.length <
|
|
1983
|
+
if (s.length < Zc) {
|
|
1984
1984
|
var o;
|
|
1985
1985
|
return (o = this.values_).splice.apply(o, [r, i].concat(s));
|
|
1986
1986
|
} else {
|
|
@@ -1993,7 +1993,7 @@ var ni = "splice", ue = "update", Jc = 1e4, Xc = {
|
|
|
1993
1993
|
return a;
|
|
1994
1994
|
}
|
|
1995
1995
|
}, e.notifyArrayChildUpdate_ = function(r, i, s) {
|
|
1996
|
-
var o = !this.owned_ &&
|
|
1996
|
+
var o = !this.owned_ && j(), a = le(this), c = a || o ? {
|
|
1997
1997
|
observableKind: "array",
|
|
1998
1998
|
object: this.proxy_,
|
|
1999
1999
|
type: ue,
|
|
@@ -2004,7 +2004,7 @@ var ni = "splice", ue = "update", Jc = 1e4, Xc = {
|
|
|
2004
2004
|
} : null;
|
|
2005
2005
|
process.env.NODE_ENV !== "production" && o && W(c), this.atom_.reportChanged(), a && de(this, c), process.env.NODE_ENV !== "production" && o && G();
|
|
2006
2006
|
}, e.notifyArraySplice_ = function(r, i, s) {
|
|
2007
|
-
var o = !this.owned_ &&
|
|
2007
|
+
var o = !this.owned_ && j(), a = le(this), c = a || o ? {
|
|
2008
2008
|
observableKind: "array",
|
|
2009
2009
|
object: this.proxy_,
|
|
2010
2010
|
debugObjectName: this.atom_.name_,
|
|
@@ -2049,11 +2049,11 @@ var ni = "splice", ue = "update", Jc = 1e4, Xc = {
|
|
|
2049
2049
|
}
|
|
2050
2050
|
}, t;
|
|
2051
2051
|
})();
|
|
2052
|
-
function
|
|
2053
|
-
return n === void 0 && (n = process.env.NODE_ENV !== "production" ? "ObservableArray@" + ie() : "ObservableArray"), r === void 0 && (r = !1), Qi(),
|
|
2052
|
+
function eu(t, e, n, r) {
|
|
2053
|
+
return n === void 0 && (n = process.env.NODE_ENV !== "production" ? "ObservableArray@" + ie() : "ObservableArray"), r === void 0 && (r = !1), Qi(), ke(function() {
|
|
2054
2054
|
var i = new Ir(n, e, r, !1);
|
|
2055
2055
|
ts(i.values_, O, i);
|
|
2056
|
-
var s = new Proxy(i.values_,
|
|
2056
|
+
var s = new Proxy(i.values_, Qc);
|
|
2057
2057
|
return i.proxy_ = s, t && t.length && i.spliceWithArray_(0, 0, t), s;
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
@@ -2178,14 +2178,14 @@ function Ls(t) {
|
|
|
2178
2178
|
}, r[t].apply(r, arguments);
|
|
2179
2179
|
};
|
|
2180
2180
|
}
|
|
2181
|
-
var
|
|
2181
|
+
var tu = /* @__PURE__ */ Xe("ObservableArrayAdministration", Ir);
|
|
2182
2182
|
function Ct(t) {
|
|
2183
|
-
return mn(t) &&
|
|
2183
|
+
return mn(t) && tu(t[O]);
|
|
2184
2184
|
}
|
|
2185
|
-
var
|
|
2185
|
+
var nu = {}, $e = "add", tn = "delete", ks = /* @__PURE__ */ (function() {
|
|
2186
2186
|
function t(n, r, i) {
|
|
2187
2187
|
var s = this;
|
|
2188
|
-
r === void 0 && (r = Ke), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + ie() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[O] =
|
|
2188
|
+
r === void 0 && (r = Ke), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableMap@" + ie() : "ObservableMap"), this.enhancer_ = void 0, this.name_ = void 0, this[O] = nu, this.data_ = void 0, this.hasMap_ = void 0, this.keysAtom_ = void 0, this.interceptors_ = void 0, this.changeListeners_ = void 0, this.dehancer = void 0, this.enhancer_ = r, this.name_ = i, T(Map) || _(18), ke(function() {
|
|
2189
2189
|
s.keysAtom_ = ss(process.env.NODE_ENV !== "production" ? s.name_ + ".keys()" : "ObservableMap.keys()"), s.data_ = /* @__PURE__ */ new Map(), s.hasMap_ = /* @__PURE__ */ new Map(), n && s.merge(n);
|
|
2190
2190
|
});
|
|
2191
2191
|
}
|
|
@@ -2230,7 +2230,7 @@ var eu = {}, $e = "add", tn = "delete", js = /* @__PURE__ */ (function() {
|
|
|
2230
2230
|
return !1;
|
|
2231
2231
|
}
|
|
2232
2232
|
if (this.has_(r)) {
|
|
2233
|
-
var o =
|
|
2233
|
+
var o = j(), a = le(this), c = a || o ? {
|
|
2234
2234
|
observableKind: "map",
|
|
2235
2235
|
debugObjectName: this.name_,
|
|
2236
2236
|
type: tn,
|
|
@@ -2249,7 +2249,7 @@ var eu = {}, $e = "add", tn = "delete", js = /* @__PURE__ */ (function() {
|
|
|
2249
2249
|
}, e.updateValue_ = function(r, i) {
|
|
2250
2250
|
var s = this.data_.get(r);
|
|
2251
2251
|
if (i = s.prepareNewValue_(i), i !== y.UNCHANGED) {
|
|
2252
|
-
var o =
|
|
2252
|
+
var o = j(), a = le(this), c = a || o ? {
|
|
2253
2253
|
observableKind: "map",
|
|
2254
2254
|
debugObjectName: this.name_,
|
|
2255
2255
|
type: ue,
|
|
@@ -2266,7 +2266,7 @@ var eu = {}, $e = "add", tn = "delete", js = /* @__PURE__ */ (function() {
|
|
|
2266
2266
|
var u, l = new Be(i, s.enhancer_, process.env.NODE_ENV !== "production" ? s.name_ + "." + Xn(r) : "ObservableMap.key", !1);
|
|
2267
2267
|
s.data_.set(r, l), i = l.value_, (u = s.hasMap_.get(r)) == null || u.setNewValue_(!0), s.keysAtom_.reportChanged();
|
|
2268
2268
|
});
|
|
2269
|
-
var o =
|
|
2269
|
+
var o = j(), a = le(this), c = a || o ? {
|
|
2270
2270
|
observableKind: "map",
|
|
2271
2271
|
debugObjectName: this.name_,
|
|
2272
2272
|
type: $e,
|
|
@@ -2317,12 +2317,12 @@ var eu = {}, $e = "add", tn = "delete", js = /* @__PURE__ */ (function() {
|
|
|
2317
2317
|
}, e.merge = function(r) {
|
|
2318
2318
|
var i = this;
|
|
2319
2319
|
return Ie(r) && (r = new Map(r)), xe(function() {
|
|
2320
|
-
z(r) ?
|
|
2320
|
+
z(r) ? pa(r).forEach(function(s) {
|
|
2321
2321
|
return i.set(s, r[s]);
|
|
2322
2322
|
}) : Array.isArray(r) ? r.forEach(function(s) {
|
|
2323
2323
|
var o = s[0], a = s[1];
|
|
2324
2324
|
return i.set(o, a);
|
|
2325
|
-
}) : dt(r) ? (
|
|
2325
|
+
}) : dt(r) ? (ha(r) || _(19, r), r.forEach(function(s, o) {
|
|
2326
2326
|
return i.set(o, s);
|
|
2327
2327
|
})) : r != null && _(20, r);
|
|
2328
2328
|
}), this;
|
|
@@ -2339,7 +2339,7 @@ var eu = {}, $e = "add", tn = "delete", js = /* @__PURE__ */ (function() {
|
|
|
2339
2339
|
}, e.replace = function(r) {
|
|
2340
2340
|
var i = this;
|
|
2341
2341
|
return xe(function() {
|
|
2342
|
-
for (var s =
|
|
2342
|
+
for (var s = ru(r), o = /* @__PURE__ */ new Map(), a = !1, c = st(i.data_.keys()), u; !(u = c()).done; ) {
|
|
2343
2343
|
var l = u.value;
|
|
2344
2344
|
if (!s.has(l)) {
|
|
2345
2345
|
var d = i.delete(l);
|
|
@@ -2390,11 +2390,11 @@ var eu = {}, $e = "add", tn = "delete", js = /* @__PURE__ */ (function() {
|
|
|
2390
2390
|
return "Map";
|
|
2391
2391
|
}
|
|
2392
2392
|
}]);
|
|
2393
|
-
})(), Ie = /* @__PURE__ */ Xe("ObservableMap",
|
|
2393
|
+
})(), Ie = /* @__PURE__ */ Xe("ObservableMap", ks);
|
|
2394
2394
|
function ri(t) {
|
|
2395
2395
|
return t[Symbol.toStringTag] = "MapIterator", Mr(t);
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function ru(t) {
|
|
2398
2398
|
if (dt(t) || Ie(t))
|
|
2399
2399
|
return t;
|
|
2400
2400
|
if (Array.isArray(t))
|
|
@@ -2407,12 +2407,12 @@ function tu(t) {
|
|
|
2407
2407
|
} else
|
|
2408
2408
|
return _(21, t);
|
|
2409
2409
|
}
|
|
2410
|
-
var
|
|
2410
|
+
var iu = {}, js = /* @__PURE__ */ (function() {
|
|
2411
2411
|
function t(n, r, i) {
|
|
2412
2412
|
var s = this;
|
|
2413
|
-
r === void 0 && (r = Ke), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableSet@" + ie() : "ObservableSet"), this.name_ = void 0, this[O] =
|
|
2413
|
+
r === void 0 && (r = Ke), i === void 0 && (i = process.env.NODE_ENV !== "production" ? "ObservableSet@" + ie() : "ObservableSet"), this.name_ = void 0, this[O] = iu, this.data_ = /* @__PURE__ */ new Set(), this.atom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.dehancer = void 0, this.enhancer_ = void 0, this.name_ = i, T(Set) || _(22), this.enhancer_ = function(o, a) {
|
|
2414
2414
|
return r(o, a, i);
|
|
2415
|
-
},
|
|
2415
|
+
}, ke(function() {
|
|
2416
2416
|
s.atom_ = ss(s.name_), n && s.replace(n);
|
|
2417
2417
|
});
|
|
2418
2418
|
}
|
|
@@ -2450,7 +2450,7 @@ var nu = {}, ks = /* @__PURE__ */ (function() {
|
|
|
2450
2450
|
xe(function() {
|
|
2451
2451
|
i.data_.add(i.enhancer_(r, void 0)), i.atom_.reportChanged();
|
|
2452
2452
|
});
|
|
2453
|
-
var o = process.env.NODE_ENV !== "production" &&
|
|
2453
|
+
var o = process.env.NODE_ENV !== "production" && j(), a = le(this), c = a || o ? {
|
|
2454
2454
|
observableKind: "set",
|
|
2455
2455
|
debugObjectName: this.name_,
|
|
2456
2456
|
type: $e,
|
|
@@ -2472,7 +2472,7 @@ var nu = {}, ks = /* @__PURE__ */ (function() {
|
|
|
2472
2472
|
return !1;
|
|
2473
2473
|
}
|
|
2474
2474
|
if (this.has(r)) {
|
|
2475
|
-
var o = process.env.NODE_ENV !== "production" &&
|
|
2475
|
+
var o = process.env.NODE_ENV !== "production" && j(), a = le(this), c = a || o ? {
|
|
2476
2476
|
observableKind: "set",
|
|
2477
2477
|
debugObjectName: this.name_,
|
|
2478
2478
|
type: tn,
|
|
@@ -2573,13 +2573,13 @@ var nu = {}, ks = /* @__PURE__ */ (function() {
|
|
|
2573
2573
|
return "Set";
|
|
2574
2574
|
}
|
|
2575
2575
|
}]);
|
|
2576
|
-
})(), ge = /* @__PURE__ */ Xe("ObservableSet",
|
|
2576
|
+
})(), ge = /* @__PURE__ */ Xe("ObservableSet", js);
|
|
2577
2577
|
function ii(t) {
|
|
2578
2578
|
return t[Symbol.toStringTag] = "SetIterator", Mr(t);
|
|
2579
2579
|
}
|
|
2580
2580
|
var si = /* @__PURE__ */ Object.create(null), oi = "remove", ar = /* @__PURE__ */ (function() {
|
|
2581
2581
|
function t(n, r, i, s) {
|
|
2582
|
-
r === void 0 && (r = /* @__PURE__ */ new Map()), s === void 0 && (s =
|
|
2582
|
+
r === void 0 && (r = /* @__PURE__ */ new Map()), s === void 0 && (s = Wa), this.target_ = void 0, this.values_ = void 0, this.name_ = void 0, this.defaultAnnotation_ = void 0, this.keysAtom_ = void 0, this.changeListeners_ = void 0, this.interceptors_ = void 0, this.proxy_ = void 0, this.isPlainObject_ = void 0, this.appliedAnnotations_ = void 0, this.pendingKeys_ = void 0, this.lazyComputedKeys_ = void 0, this.lazyObservableKeys_ = void 0, this.target_ = n, this.values_ = r, this.name_ = i, this.defaultAnnotation_ = s, this.keysAtom_ = new Le(process.env.NODE_ENV !== "production" ? this.name_ + ".keys" : "ObservableObject.keys"), this.isPlainObject_ = z(this.target_), process.env.NODE_ENV !== "production" && !Ks(this.defaultAnnotation_) && _("defaultAnnotation must be valid annotation"), process.env.NODE_ENV !== "production" && (this.appliedAnnotations_ = {});
|
|
2583
2583
|
}
|
|
2584
2584
|
var e = t.prototype;
|
|
2585
2585
|
return e.getObservablePropValue_ = function(r) {
|
|
@@ -2615,7 +2615,7 @@ var si = /* @__PURE__ */ Object.create(null), oi = "remove", ar = /* @__PURE__ *
|
|
|
2615
2615
|
i = c.newValue;
|
|
2616
2616
|
}
|
|
2617
2617
|
if (i = a.prepareNewValue_(i), i !== y.UNCHANGED) {
|
|
2618
|
-
var u = le(this), l = process.env.NODE_ENV !== "production" &&
|
|
2618
|
+
var u = le(this), l = process.env.NODE_ENV !== "production" && j(), d = u || l ? {
|
|
2619
2619
|
type: ue,
|
|
2620
2620
|
observableKind: "object",
|
|
2621
2621
|
debugObjectName: this.name_,
|
|
@@ -2784,7 +2784,7 @@ var si = /* @__PURE__ */ Object.create(null), oi = "remove", ar = /* @__PURE__ *
|
|
|
2784
2784
|
try {
|
|
2785
2785
|
var o;
|
|
2786
2786
|
ee();
|
|
2787
|
-
var a = le(this), c = process.env.NODE_ENV !== "production" &&
|
|
2787
|
+
var a = le(this), c = process.env.NODE_ENV !== "production" && j(), u = this.values_.get(r), l = void 0;
|
|
2788
2788
|
if (!u && (a || c)) {
|
|
2789
2789
|
var d;
|
|
2790
2790
|
l = (d = qt(this.target_, r)) == null ? void 0 : d.value;
|
|
@@ -2814,7 +2814,7 @@ var si = /* @__PURE__ */ Object.create(null), oi = "remove", ar = /* @__PURE__ *
|
|
|
2814
2814
|
}, e.intercept_ = function(r) {
|
|
2815
2815
|
return Pt(this, r);
|
|
2816
2816
|
}, e.notifyPropertyAddition_ = function(r, i) {
|
|
2817
|
-
var s, o = le(this), a = process.env.NODE_ENV !== "production" &&
|
|
2817
|
+
var s, o = le(this), a = process.env.NODE_ENV !== "production" && j();
|
|
2818
2818
|
if (o || a) {
|
|
2819
2819
|
var c = o || a ? {
|
|
2820
2820
|
type: $e,
|
|
@@ -2840,10 +2840,10 @@ function Qe(t, e) {
|
|
|
2840
2840
|
The target is already observable of different type.
|
|
2841
2841
|
Extending builtins is not supported.`), t;
|
|
2842
2842
|
process.env.NODE_ENV !== "production" && !Object.isExtensible(t) && _("Cannot make the designated object observable; it is not extensible");
|
|
2843
|
-
var r = (n = e == null ? void 0 : e.name) != null ? n : process.env.NODE_ENV !== "production" ? (z(t) ? "ObservableObject" : t.constructor.name) + "@" + ie() : "ObservableObject", i = new ar(t, /* @__PURE__ */ new Map(), String(r),
|
|
2843
|
+
var r = (n = e == null ? void 0 : e.name) != null ? n : process.env.NODE_ENV !== "production" ? (z(t) ? "ObservableObject" : t.constructor.name) + "@" + ie() : "ObservableObject", i = new ar(t, /* @__PURE__ */ new Map(), String(r), rc(e));
|
|
2844
2844
|
return xt(t, O, i), t;
|
|
2845
2845
|
}
|
|
2846
|
-
var
|
|
2846
|
+
var su = /* @__PURE__ */ Xe("ObservableObjectAdministration", ar);
|
|
2847
2847
|
function ai(t) {
|
|
2848
2848
|
return si[t] || (si[t] = {
|
|
2849
2849
|
get: function() {
|
|
@@ -2855,7 +2855,7 @@ function ai(t) {
|
|
|
2855
2855
|
});
|
|
2856
2856
|
}
|
|
2857
2857
|
function qe(t) {
|
|
2858
|
-
return mn(t) ?
|
|
2858
|
+
return mn(t) ? su(t[O]) : !1;
|
|
2859
2859
|
}
|
|
2860
2860
|
function ci(t, e, n) {
|
|
2861
2861
|
var r;
|
|
@@ -2870,7 +2870,7 @@ Re-annotating fields is not allowed.
|
|
|
2870
2870
|
Use 'override' annotation for methods overridden by subclass.`);
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
2873
|
-
var
|
|
2873
|
+
var ou = /* @__PURE__ */ zs(0), au = /* @__PURE__ */ (function() {
|
|
2874
2874
|
var t = !1, e = {};
|
|
2875
2875
|
return Object.defineProperty(e, "0", {
|
|
2876
2876
|
set: function() {
|
|
@@ -2879,16 +2879,16 @@ var iu = /* @__PURE__ */ zs(0), su = /* @__PURE__ */ (function() {
|
|
|
2879
2879
|
}), Object.create(e)[0] = 1, t === !1;
|
|
2880
2880
|
})(), Nn = 0, Fs = function() {
|
|
2881
2881
|
};
|
|
2882
|
-
function
|
|
2882
|
+
function cu(t, e) {
|
|
2883
2883
|
Object.setPrototypeOf ? Object.setPrototypeOf(t.prototype, e) : t.prototype.__proto__ !== void 0 ? t.prototype.__proto__ = e : t.prototype = e;
|
|
2884
2884
|
}
|
|
2885
|
-
|
|
2885
|
+
cu(Fs, Array.prototype);
|
|
2886
2886
|
var Pr = /* @__PURE__ */ (function(t) {
|
|
2887
2887
|
function e(r, i, s, o) {
|
|
2888
2888
|
var a;
|
|
2889
|
-
return s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableArray@" + ie() : "ObservableArray"), o === void 0 && (o = !1), a = t.call(this) || this,
|
|
2889
|
+
return s === void 0 && (s = process.env.NODE_ENV !== "production" ? "ObservableArray@" + ie() : "ObservableArray"), o === void 0 && (o = !1), a = t.call(this) || this, ke(function() {
|
|
2890
2890
|
var c = new Ir(s, i, o, !0);
|
|
2891
|
-
c.proxy_ = a, ts(a, O, c), r && r.length && a.spliceWithArray(0, 0, r),
|
|
2891
|
+
c.proxy_ = a, ts(a, O, c), r && r.length && a.spliceWithArray(0, 0, r), au && Object.defineProperty(a, "0", ou);
|
|
2892
2892
|
}), a;
|
|
2893
2893
|
}
|
|
2894
2894
|
Or(e, t);
|
|
@@ -2948,18 +2948,18 @@ function zs(t) {
|
|
|
2948
2948
|
}
|
|
2949
2949
|
};
|
|
2950
2950
|
}
|
|
2951
|
-
function
|
|
2951
|
+
function uu(t) {
|
|
2952
2952
|
be(Pr.prototype, "" + t, zs(t));
|
|
2953
2953
|
}
|
|
2954
2954
|
function Vs(t) {
|
|
2955
2955
|
if (t > Nn) {
|
|
2956
2956
|
for (var e = Nn; e < t + 100; e++)
|
|
2957
|
-
|
|
2957
|
+
uu(e);
|
|
2958
2958
|
Nn = t;
|
|
2959
2959
|
}
|
|
2960
2960
|
}
|
|
2961
2961
|
Vs(1e3);
|
|
2962
|
-
function
|
|
2962
|
+
function lu(t, e, n) {
|
|
2963
2963
|
return new Pr(t, e, n);
|
|
2964
2964
|
}
|
|
2965
2965
|
function Ye(t, e) {
|
|
@@ -3005,7 +3005,7 @@ function nn(t, e) {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
return n.name_;
|
|
3007
3007
|
}
|
|
3008
|
-
function
|
|
3008
|
+
function ke(t) {
|
|
3009
3009
|
var e = Ze(), n = _n(!0);
|
|
3010
3010
|
ee();
|
|
3011
3011
|
try {
|
|
@@ -3085,11 +3085,11 @@ function cr(t, e, n, r, i) {
|
|
|
3085
3085
|
function di(t) {
|
|
3086
3086
|
return Ct(t) ? t.slice() : dt(t) || Ie(t) || Ee(t) || ge(t) ? Array.from(t.entries()) : t;
|
|
3087
3087
|
}
|
|
3088
|
-
var fi,
|
|
3088
|
+
var fi, du = /* @__PURE__ */ hn(), fu = ((fi = du.Iterator) == null ? void 0 : fi.prototype) || {};
|
|
3089
3089
|
function Mr(t) {
|
|
3090
|
-
return t[Symbol.iterator] =
|
|
3090
|
+
return t[Symbol.iterator] = hu, Object.assign(Object.create(fu), t);
|
|
3091
3091
|
}
|
|
3092
|
-
function
|
|
3092
|
+
function hu() {
|
|
3093
3093
|
return this;
|
|
3094
3094
|
}
|
|
3095
3095
|
function Ks(t) {
|
|
@@ -3103,7 +3103,7 @@ function Ks(t) {
|
|
|
3103
3103
|
typeof e[t] > "u" && _("MobX requires global '" + t + "' to be available or polyfilled");
|
|
3104
3104
|
});
|
|
3105
3105
|
typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({
|
|
3106
|
-
spy:
|
|
3106
|
+
spy: Nc,
|
|
3107
3107
|
extras: {
|
|
3108
3108
|
getDebugName: nn
|
|
3109
3109
|
},
|
|
@@ -3111,18 +3111,18 @@ typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ == "object" && __MOBX_DEVTOOLS_GLOBAL_HOOK_
|
|
|
3111
3111
|
});
|
|
3112
3112
|
if (!qn)
|
|
3113
3113
|
throw new Error("mobx-react-lite requires React with Hooks support");
|
|
3114
|
-
if (!
|
|
3114
|
+
if (!Xc)
|
|
3115
3115
|
throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");
|
|
3116
|
-
function
|
|
3116
|
+
function pu(t) {
|
|
3117
3117
|
t();
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3120
|
-
t || (t =
|
|
3119
|
+
function mu(t) {
|
|
3120
|
+
t || (t = pu, process.env.NODE_ENV !== "production" && console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native")), Bc({ reactionScheduler: t });
|
|
3121
3121
|
}
|
|
3122
|
-
function
|
|
3122
|
+
function gu(t) {
|
|
3123
3123
|
return Cs(t);
|
|
3124
3124
|
}
|
|
3125
|
-
var
|
|
3125
|
+
var vu = 1e4, bu = 1e4, yu = (
|
|
3126
3126
|
/** @class */
|
|
3127
3127
|
(function() {
|
|
3128
3128
|
function t(e) {
|
|
@@ -3147,7 +3147,7 @@ var mu = 1e4, gu = 1e4, vu = (
|
|
|
3147
3147
|
configurable: !0,
|
|
3148
3148
|
writable: !0,
|
|
3149
3149
|
value: function(r) {
|
|
3150
|
-
r === void 0 && (r =
|
|
3150
|
+
r === void 0 && (r = vu), clearTimeout(n.sweepTimeout), n.sweepTimeout = void 0;
|
|
3151
3151
|
var i = Date.now();
|
|
3152
3152
|
n.registrations.forEach(function(s, o) {
|
|
3153
3153
|
i - s.registeredAt >= r && (n.finalize(s.value), n.registrations.delete(o));
|
|
@@ -3184,14 +3184,14 @@ var mu = 1e4, gu = 1e4, vu = (
|
|
|
3184
3184
|
configurable: !0,
|
|
3185
3185
|
writable: !0,
|
|
3186
3186
|
value: function() {
|
|
3187
|
-
this.sweepTimeout === void 0 && (this.sweepTimeout = setTimeout(this.sweep,
|
|
3187
|
+
this.sweepTimeout === void 0 && (this.sweepTimeout = setTimeout(this.sweep, bu));
|
|
3188
3188
|
}
|
|
3189
3189
|
}), t;
|
|
3190
3190
|
})()
|
|
3191
|
-
),
|
|
3191
|
+
), _u = typeof FinalizationRegistry < "u" ? FinalizationRegistry : yu, ur = new _u(function(t) {
|
|
3192
3192
|
var e;
|
|
3193
3193
|
(e = t.reaction) === null || e === void 0 || e.dispose(), t.reaction = null;
|
|
3194
|
-
}),
|
|
3194
|
+
}), kt = { exports: {} }, In = {};
|
|
3195
3195
|
/**
|
|
3196
3196
|
* @license React
|
|
3197
3197
|
* use-sync-external-store-shim.production.js
|
|
@@ -3202,7 +3202,7 @@ var mu = 1e4, gu = 1e4, vu = (
|
|
|
3202
3202
|
* LICENSE file in the root directory of this source tree.
|
|
3203
3203
|
*/
|
|
3204
3204
|
var hi;
|
|
3205
|
-
function
|
|
3205
|
+
function Su() {
|
|
3206
3206
|
if (hi) return In;
|
|
3207
3207
|
hi = 1;
|
|
3208
3208
|
var t = Wt;
|
|
@@ -3253,7 +3253,7 @@ var Pn = {};
|
|
|
3253
3253
|
* LICENSE file in the root directory of this source tree.
|
|
3254
3254
|
*/
|
|
3255
3255
|
var pi;
|
|
3256
|
-
function
|
|
3256
|
+
function wu() {
|
|
3257
3257
|
return pi || (pi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3258
3258
|
function t(h, v) {
|
|
3259
3259
|
return h === v && (h !== 0 || 1 / h === 1 / v) || h !== h && v !== v;
|
|
@@ -3306,17 +3306,17 @@ function _u() {
|
|
|
3306
3306
|
})()), Pn;
|
|
3307
3307
|
}
|
|
3308
3308
|
var mi;
|
|
3309
|
-
function
|
|
3310
|
-
return mi || (mi = 1, process.env.NODE_ENV === "production" ?
|
|
3309
|
+
function Ou() {
|
|
3310
|
+
return mi || (mi = 1, process.env.NODE_ENV === "production" ? kt.exports = Su() : kt.exports = wu()), kt.exports;
|
|
3311
3311
|
}
|
|
3312
|
-
var
|
|
3312
|
+
var Eu = Ou();
|
|
3313
3313
|
function gi(t) {
|
|
3314
3314
|
t.reaction = new _e("observer".concat(t.name), function() {
|
|
3315
3315
|
var e;
|
|
3316
3316
|
t.stateVersion = Symbol(), (e = t.onStoreChange) === null || e === void 0 || e.call(t);
|
|
3317
3317
|
});
|
|
3318
3318
|
}
|
|
3319
|
-
function
|
|
3319
|
+
function xu(t, e) {
|
|
3320
3320
|
e === void 0 && (e = "observed");
|
|
3321
3321
|
var n = Wt.useRef(null);
|
|
3322
3322
|
if (!n.current) {
|
|
@@ -3338,7 +3338,7 @@ function Ou(t, e) {
|
|
|
3338
3338
|
n.current = r;
|
|
3339
3339
|
}
|
|
3340
3340
|
var i = n.current;
|
|
3341
|
-
i.reaction || (gi(i), ur.register(n, i, i)), Wt.useDebugValue(i.reaction,
|
|
3341
|
+
i.reaction || (gi(i), ur.register(n, i, i)), Wt.useDebugValue(i.reaction, gu), Eu.useSyncExternalStore(
|
|
3342
3342
|
// Both of these must be stable, otherwise it would keep resubscribing every render.
|
|
3343
3343
|
i.subscribe,
|
|
3344
3344
|
i.getSnapshot,
|
|
@@ -3355,13 +3355,13 @@ function Ou(t, e) {
|
|
|
3355
3355
|
throw o;
|
|
3356
3356
|
return s;
|
|
3357
3357
|
}
|
|
3358
|
-
var Mn, Cn,
|
|
3358
|
+
var Mn, Cn, Au = !0, vi = !0, Us = typeof Symbol == "function" && Symbol.for, Nu = (Cn = (Mn = Object.getOwnPropertyDescriptor(function() {
|
|
3359
3359
|
}, "name")) === null || Mn === void 0 ? void 0 : Mn.configurable) !== null && Cn !== void 0 ? Cn : !1, bi = Us ? Symbol.for("react.forward_ref") : typeof Yn == "function" && Yn(function(t) {
|
|
3360
3360
|
return null;
|
|
3361
3361
|
}).$$typeof, yi = Us ? Symbol.for("react.memo") : typeof Jn == "function" && Jn(function(t) {
|
|
3362
3362
|
return null;
|
|
3363
3363
|
}).$$typeof;
|
|
3364
|
-
function
|
|
3364
|
+
function Iu(t, e) {
|
|
3365
3365
|
var n;
|
|
3366
3366
|
if (process.env.NODE_ENV, yi && t.$$typeof === yi)
|
|
3367
3367
|
throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");
|
|
@@ -3369,22 +3369,22 @@ function Au(t, e) {
|
|
|
3369
3369
|
if (bi && t.$$typeof === bi && (r = !0, i = t.render, typeof i != "function"))
|
|
3370
3370
|
throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");
|
|
3371
3371
|
var o = function(a, c) {
|
|
3372
|
-
return
|
|
3372
|
+
return xu(function() {
|
|
3373
3373
|
return i(a, c);
|
|
3374
3374
|
}, s);
|
|
3375
3375
|
};
|
|
3376
|
-
return o.displayName = t.displayName,
|
|
3376
|
+
return o.displayName = t.displayName, Nu && Object.defineProperty(o, "name", {
|
|
3377
3377
|
value: t.name,
|
|
3378
3378
|
writable: !0,
|
|
3379
3379
|
configurable: !0
|
|
3380
|
-
}), t.contextTypes && (o.contextTypes = t.contextTypes, process.env.NODE_ENV !== "production" && vi && (vi = !1, console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))), r && (o = Yn(o)), o = Jn(o),
|
|
3380
|
+
}), t.contextTypes && (o.contextTypes = t.contextTypes, process.env.NODE_ENV !== "production" && vi && (vi = !1, console.warn("[mobx-react-lite] Support for Legacy Context in function components will be removed in the next major release."))), r && (o = Yn(o)), o = Jn(o), Mu(t, o), process.env.NODE_ENV !== "production" && Object.defineProperty(o, "contextTypes", {
|
|
3381
3381
|
set: function() {
|
|
3382
3382
|
var a, c;
|
|
3383
3383
|
throw new Error("[mobx-react-lite] `".concat(this.displayName || ((a = this.type) === null || a === void 0 ? void 0 : a.displayName) || ((c = this.type) === null || c === void 0 ? void 0 : c.name) || "Component", ".contextTypes` must be set before applying `observer`."));
|
|
3384
3384
|
}
|
|
3385
3385
|
}), o;
|
|
3386
3386
|
}
|
|
3387
|
-
var
|
|
3387
|
+
var Pu = {
|
|
3388
3388
|
$$typeof: !0,
|
|
3389
3389
|
render: !0,
|
|
3390
3390
|
compare: !0,
|
|
@@ -3393,30 +3393,30 @@ var Nu = {
|
|
|
3393
3393
|
// it's defined as getter-setter pair on `memo` (see #3192).
|
|
3394
3394
|
displayName: !0
|
|
3395
3395
|
};
|
|
3396
|
-
function
|
|
3396
|
+
function Mu(t, e) {
|
|
3397
3397
|
Object.keys(t).forEach(function(n) {
|
|
3398
|
-
|
|
3398
|
+
Pu[n] || Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
3399
3399
|
});
|
|
3400
3400
|
}
|
|
3401
3401
|
process.env.NODE_ENV;
|
|
3402
3402
|
var Tn;
|
|
3403
|
-
|
|
3403
|
+
mu(oa);
|
|
3404
3404
|
Tn = ur.finalizeAllImmediately;
|
|
3405
|
-
const
|
|
3406
|
-
function
|
|
3405
|
+
const Cu = 12e3, Tu = 32e3;
|
|
3406
|
+
function $u(t) {
|
|
3407
3407
|
return typeof t == "number" && Number.isFinite(t) && t > 0;
|
|
3408
3408
|
}
|
|
3409
3409
|
function rn(t, e) {
|
|
3410
|
-
return
|
|
3410
|
+
return $u(t) ? Math.max(1, Math.round(t)) : e;
|
|
3411
3411
|
}
|
|
3412
|
-
function
|
|
3412
|
+
function Du(t, e) {
|
|
3413
3413
|
const n = rn(t, 600), r = rn(
|
|
3414
3414
|
e,
|
|
3415
|
-
|
|
3415
|
+
Cu
|
|
3416
3416
|
);
|
|
3417
3417
|
return Math.max(
|
|
3418
3418
|
n,
|
|
3419
|
-
Math.min(
|
|
3419
|
+
Math.min(Tu, r)
|
|
3420
3420
|
);
|
|
3421
3421
|
}
|
|
3422
3422
|
function oe(t) {
|
|
@@ -3424,11 +3424,11 @@ function oe(t) {
|
|
|
3424
3424
|
if (t.heightMode !== "document") return e;
|
|
3425
3425
|
const n = rn(t.resolvedDocumentHeight, e);
|
|
3426
3426
|
return Math.min(
|
|
3427
|
-
|
|
3427
|
+
Du(e, t.maxHeight),
|
|
3428
3428
|
Math.max(e, n)
|
|
3429
3429
|
);
|
|
3430
3430
|
}
|
|
3431
|
-
function
|
|
3431
|
+
function Ru(t) {
|
|
3432
3432
|
if (!t) return 0;
|
|
3433
3433
|
const e = t, n = typeof t.getBoundingClientRect == "function" ? t.getBoundingClientRect().height : 0;
|
|
3434
3434
|
return Math.max(
|
|
@@ -3449,18 +3449,18 @@ function Ws(t) {
|
|
|
3449
3449
|
t.querySelector("body")
|
|
3450
3450
|
].filter((n) => n != null);
|
|
3451
3451
|
}
|
|
3452
|
-
function
|
|
3452
|
+
function Lu(t) {
|
|
3453
3453
|
return Math.ceil(
|
|
3454
|
-
Math.max(0, ...Ws(t).map(
|
|
3454
|
+
Math.max(0, ...Ws(t).map(Ru))
|
|
3455
3455
|
);
|
|
3456
3456
|
}
|
|
3457
|
-
function
|
|
3457
|
+
function ku(t, e) {
|
|
3458
3458
|
var p;
|
|
3459
3459
|
const n = "documentElement" in t ? t : t.ownerDocument, r = n.defaultView, i = Ws(t);
|
|
3460
3460
|
let s = !1, o = 0, a = -1;
|
|
3461
3461
|
const c = () => {
|
|
3462
3462
|
if (o = 0, s) return;
|
|
3463
|
-
const m =
|
|
3463
|
+
const m = Lu(t);
|
|
3464
3464
|
m !== a && (a = m, e(m));
|
|
3465
3465
|
}, u = () => {
|
|
3466
3466
|
s || o || (r != null && r.requestAnimationFrame ? o = r.requestAnimationFrame(c) : c());
|
|
@@ -3477,7 +3477,7 @@ function Ru(t, e) {
|
|
|
3477
3477
|
s = !0, d == null || d.disconnect(), h == null || h.disconnect(), o && (r != null && r.cancelAnimationFrame) && r.cancelAnimationFrame(o);
|
|
3478
3478
|
};
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3480
|
+
function ju(t) {
|
|
3481
3481
|
for (const e in t) if (e.startsWith("__reactFiber$")) return t[e];
|
|
3482
3482
|
return null;
|
|
3483
3483
|
}
|
|
@@ -3490,7 +3490,7 @@ function _i(t) {
|
|
|
3490
3490
|
}
|
|
3491
3491
|
return e;
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function Fu(t) {
|
|
3494
3494
|
let e = t.child;
|
|
3495
3495
|
for (; e; ) {
|
|
3496
3496
|
const n = e.stateNode;
|
|
@@ -3505,7 +3505,7 @@ function ju(t) {
|
|
|
3505
3505
|
}
|
|
3506
3506
|
return null;
|
|
3507
3507
|
}
|
|
3508
|
-
function
|
|
3508
|
+
function zu(t) {
|
|
3509
3509
|
const e = {}, n = {};
|
|
3510
3510
|
let r = "";
|
|
3511
3511
|
for (const [i, s] of Object.entries(t ?? {})) {
|
|
@@ -3524,7 +3524,7 @@ function Gs(t) {
|
|
|
3524
3524
|
return (n, r) => {
|
|
3525
3525
|
var u;
|
|
3526
3526
|
let i = null, s = "";
|
|
3527
|
-
for (let l =
|
|
3527
|
+
for (let l = ju(n); l; l = l.return) {
|
|
3528
3528
|
const d = l.type;
|
|
3529
3529
|
if (d == null || typeof d == "string") continue;
|
|
3530
3530
|
const f = _i(d);
|
|
@@ -3533,28 +3533,28 @@ function Gs(t) {
|
|
|
3533
3533
|
const v = f, p = v.displayName ?? v.name;
|
|
3534
3534
|
p && t[p] && (h = p);
|
|
3535
3535
|
}
|
|
3536
|
-
!h || r != null && r.has(h) ||
|
|
3536
|
+
!h || r != null && r.has(h) || Fu(l) === n && (i = l, s = h);
|
|
3537
3537
|
}
|
|
3538
3538
|
if (!i) return null;
|
|
3539
|
-
const { props: o, primitiveProps: a, childrenText: c } =
|
|
3539
|
+
const { props: o, primitiveProps: a, childrenText: c } = zu(i.memoizedProps);
|
|
3540
3540
|
return { name: s, sourceId: ((u = t[s]) == null ? void 0 : u.importPath) ?? s, props: o, primitiveProps: a, childrenText: c };
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
3543
|
let qs = {};
|
|
3544
|
-
function
|
|
3544
|
+
function zf(t) {
|
|
3545
3545
|
qs = t;
|
|
3546
3546
|
}
|
|
3547
3547
|
function ae() {
|
|
3548
3548
|
return qs;
|
|
3549
3549
|
}
|
|
3550
3550
|
const Si = /* @__PURE__ */ new WeakMap();
|
|
3551
|
-
function
|
|
3551
|
+
function Vu(t) {
|
|
3552
3552
|
return t.__PYG_CSS_MODULES__ ?? [];
|
|
3553
3553
|
}
|
|
3554
3554
|
function On(t) {
|
|
3555
3555
|
const e = t.ownerDocument.defaultView;
|
|
3556
3556
|
if (!e) return null;
|
|
3557
|
-
const n =
|
|
3557
|
+
const n = Vu(e);
|
|
3558
3558
|
let r = Si.get(e);
|
|
3559
3559
|
if (!r || r.len !== n.length) {
|
|
3560
3560
|
const i = /* @__PURE__ */ new Map();
|
|
@@ -3569,7 +3569,7 @@ function On(t) {
|
|
|
3569
3569
|
}
|
|
3570
3570
|
return null;
|
|
3571
3571
|
}
|
|
3572
|
-
function
|
|
3572
|
+
function Bu(t) {
|
|
3573
3573
|
for (let e = t; e && e !== t.ownerDocument.documentElement; e = e.parentElement) {
|
|
3574
3574
|
const n = On(e);
|
|
3575
3575
|
if (n) return n.componentFile;
|
|
@@ -3647,7 +3647,7 @@ function Ei(t, e, n) {
|
|
|
3647
3647
|
return !1;
|
|
3648
3648
|
}
|
|
3649
3649
|
}
|
|
3650
|
-
function
|
|
3650
|
+
function jt(t, e) {
|
|
3651
3651
|
return !!t && !!e && t.componentFile === e.componentFile && t.sourceStart === e.sourceStart && t.elementName === e.elementName;
|
|
3652
3652
|
}
|
|
3653
3653
|
function vt(t, e = t.parentElement) {
|
|
@@ -3663,7 +3663,7 @@ function xi(t, e, n) {
|
|
|
3663
3663
|
const r = Array.from(t.children).filter((i) => i !== e);
|
|
3664
3664
|
return !Number.isSafeInteger(n) || n < 0 || n > r.length ? !1 : (t.insertBefore(e, r[n] ?? null), vt(e, t) === n);
|
|
3665
3665
|
}
|
|
3666
|
-
const
|
|
3666
|
+
const Hu = /* @__PURE__ */ new Set([
|
|
3667
3667
|
"area",
|
|
3668
3668
|
"base",
|
|
3669
3669
|
"br",
|
|
@@ -3679,13 +3679,13 @@ const Vu = /* @__PURE__ */ new Set([
|
|
|
3679
3679
|
"track",
|
|
3680
3680
|
"wbr"
|
|
3681
3681
|
]);
|
|
3682
|
-
function
|
|
3682
|
+
function Ku(t) {
|
|
3683
3683
|
return /^@\/[A-Za-z0-9_$@./-]+$/.test(t) || /^(?:@[A-Za-z0-9_.-]+\/)?[A-Za-z0-9_.-]+(?:\/[A-Za-z0-9_.$-]+)*$/.test(t);
|
|
3684
3684
|
}
|
|
3685
3685
|
const Ai = /[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/;
|
|
3686
|
-
function
|
|
3686
|
+
function Uu(t) {
|
|
3687
3687
|
const e = ae()[t];
|
|
3688
|
-
if (!(e != null && e.importPath) || !/^[A-Z][A-Za-z0-9_$]*$/.test(t) || !
|
|
3688
|
+
if (!(e != null && e.importPath) || !/^[A-Z][A-Za-z0-9_$]*$/.test(t) || !Ku(e.importPath))
|
|
3689
3689
|
return null;
|
|
3690
3690
|
const n = e.defaultProps ?? {}, r = Object.entries(n);
|
|
3691
3691
|
if (Reflect.ownKeys(n).length !== r.length) return null;
|
|
@@ -3714,7 +3714,7 @@ function Ni(t, e, n) {
|
|
|
3714
3714
|
font: "600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace"
|
|
3715
3715
|
}), t.replaceChildren(r);
|
|
3716
3716
|
}
|
|
3717
|
-
function
|
|
3717
|
+
function Wu(t, e, n, r) {
|
|
3718
3718
|
const i = t.ownerDocument.createElement("span");
|
|
3719
3719
|
i.dataset.pygmalionComponentInsert = n.name, i.style.display = "contents";
|
|
3720
3720
|
let s = null, o = 0, a = "component";
|
|
@@ -3739,7 +3739,7 @@ function Ku(t, e, n, r) {
|
|
|
3739
3739
|
}
|
|
3740
3740
|
});
|
|
3741
3741
|
const d = n.children;
|
|
3742
|
-
return
|
|
3742
|
+
return aa(() => {
|
|
3743
3743
|
s == null || s.render(
|
|
3744
3744
|
Gt(
|
|
3745
3745
|
r.component,
|
|
@@ -3762,7 +3762,7 @@ function Ku(t, e, n, r) {
|
|
|
3762
3762
|
i.replaceChildren(), i.remove();
|
|
3763
3763
|
}, status: () => a };
|
|
3764
3764
|
}
|
|
3765
|
-
class
|
|
3765
|
+
class Gu {
|
|
3766
3766
|
constructor() {
|
|
3767
3767
|
/** Final commit candidate. Only one combination of the same element, attribute, and breakpoint is always maintained. */
|
|
3768
3768
|
b(this, "entries", []);
|
|
@@ -3891,20 +3891,20 @@ class Uu {
|
|
|
3891
3891
|
hasPendingValueEdit(e) {
|
|
3892
3892
|
const n = se(e);
|
|
3893
3893
|
return this.entries.some(
|
|
3894
|
-
(r) => (r.kind === "text" || r.kind === "prop") && (n &&
|
|
3894
|
+
(r) => (r.kind === "text" || r.kind === "prop") && (n && jt(n, r.sourceIdentity) || r.el === e)
|
|
3895
3895
|
);
|
|
3896
3896
|
}
|
|
3897
3897
|
hasPendingStructuralEdit(e) {
|
|
3898
3898
|
const n = se(e);
|
|
3899
3899
|
return this.entries.some(
|
|
3900
|
-
(r) => r.kind === "structure" && (n &&
|
|
3900
|
+
(r) => r.kind === "structure" && (n && jt(n, r.sourceIdentity) || r.el === e)
|
|
3901
3901
|
);
|
|
3902
3902
|
}
|
|
3903
3903
|
structuralEditKind(e) {
|
|
3904
3904
|
var r;
|
|
3905
3905
|
const n = se(e);
|
|
3906
3906
|
return ((r = this.entries.find(
|
|
3907
|
-
(i) => i.kind === "structure" && (n &&
|
|
3907
|
+
(i) => i.kind === "structure" && (n && jt(n, i.sourceIdentity) || i.el === e)
|
|
3908
3908
|
)) == null ? void 0 : r.structureKind) ?? null;
|
|
3909
3909
|
}
|
|
3910
3910
|
/** A source element stages only one value or structure, and a DOM parent stages only one structure change. */
|
|
@@ -3917,7 +3917,7 @@ class Uu {
|
|
|
3917
3917
|
return "Please undo changes to the prop/text of this element first and then change the structure.";
|
|
3918
3918
|
const o = this.structuralEditKind(e);
|
|
3919
3919
|
return o && !(o === "move" && n === "move") ? "This element already has a structural change pending. After Undo, select another structure change." : this.entries.find(
|
|
3920
|
-
(c) => c.kind === "structure" && c.structureParent === i && !
|
|
3920
|
+
(c) => c.kind === "structure" && c.structureParent === i && !jt(c.sourceIdentity, r)
|
|
3921
3921
|
) ? "Multiple structural changes cannot be applied simultaneously on the same parent. Please apply or undo the current changes first." : null;
|
|
3922
3922
|
}
|
|
3923
3923
|
/** Check whether the registry component can be placed in the children slot of the selection element. */
|
|
@@ -3928,7 +3928,7 @@ class Uu {
|
|
|
3928
3928
|
if (s && s.children !== "nodes")
|
|
3929
3929
|
return "The selected registration component does not support children node slots.";
|
|
3930
3930
|
const o = (s == null ? void 0 : s.children) === "nodes" && /^[A-Z]/.test(i);
|
|
3931
|
-
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) && !
|
|
3931
|
+
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) && !Hu.has(i.toLowerCase())) && !o ? "Only regular containers or registered components that support children nodes can be used as slots." : wi(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(
|
|
3932
3932
|
(u) => u.kind === "structure" && u.structureParent === e
|
|
3933
3933
|
) ? "A structural change can only be staged once in the same children slot." : null;
|
|
3934
3934
|
}
|
|
@@ -3949,7 +3949,7 @@ class Uu {
|
|
|
3949
3949
|
to: n,
|
|
3950
3950
|
token: !1,
|
|
3951
3951
|
source: null,
|
|
3952
|
-
componentFile: (a == null ? void 0 : a.componentFile) ??
|
|
3952
|
+
componentFile: (a == null ? void 0 : a.componentFile) ?? Bu(e),
|
|
3953
3953
|
media: null,
|
|
3954
3954
|
sourceIdentity: a,
|
|
3955
3955
|
sourceScope: a ? et(a) : null,
|
|
@@ -4015,10 +4015,10 @@ class Uu {
|
|
|
4015
4015
|
/** Inserts the registry component directly into the children slot of the selected element. */
|
|
4016
4016
|
recordComponentInsert(e, n, r, i, s = null, o = []) {
|
|
4017
4017
|
if (this.componentInsertBlockReason(e, s)) return !1;
|
|
4018
|
-
const a = se(e), c = wi(e), u = ae()[n], l =
|
|
4018
|
+
const a = se(e), c = wi(e), u = ae()[n], l = Uu(n);
|
|
4019
4019
|
if (!a || c == null || !u || !l || !Number.isSafeInteger(r) || r < 0 || r > c)
|
|
4020
4020
|
return !1;
|
|
4021
|
-
const d =
|
|
4021
|
+
const d = Wu(
|
|
4022
4022
|
e,
|
|
4023
4023
|
Math.min(r, e.children.length),
|
|
4024
4024
|
l,
|
|
@@ -4242,23 +4242,23 @@ class Uu {
|
|
|
4242
4242
|
function ze(t) {
|
|
4243
4243
|
return t.kind === "style" ? t.source != null : t.sourceIdentity ? !0 : t.kind === "text" && t.componentFile != null;
|
|
4244
4244
|
}
|
|
4245
|
-
const
|
|
4245
|
+
const Vf = new Gu();
|
|
4246
4246
|
let Xs = 0;
|
|
4247
|
-
function
|
|
4247
|
+
function qu() {
|
|
4248
4248
|
Xs += 1;
|
|
4249
4249
|
}
|
|
4250
|
-
function
|
|
4250
|
+
function Bf() {
|
|
4251
4251
|
return Xs;
|
|
4252
4252
|
}
|
|
4253
|
-
const
|
|
4253
|
+
const Yu = "__pygmalion_environment", Hf = "/__pygmalion-storyboard/environment";
|
|
4254
4254
|
let Zs;
|
|
4255
4255
|
function ot(t) {
|
|
4256
4256
|
return t ? JSON.parse(JSON.stringify(t)) : void 0;
|
|
4257
4257
|
}
|
|
4258
|
-
function
|
|
4259
|
-
Zs = ot(t),
|
|
4258
|
+
function Kf(t) {
|
|
4259
|
+
Zs = ot(t), qu();
|
|
4260
4260
|
}
|
|
4261
|
-
function
|
|
4261
|
+
function Uf() {
|
|
4262
4262
|
return ot(Zs);
|
|
4263
4263
|
}
|
|
4264
4264
|
function Ii(t, e) {
|
|
@@ -4299,7 +4299,7 @@ function Ii(t, e) {
|
|
|
4299
4299
|
} : {}
|
|
4300
4300
|
} : ot(t) : ot(e);
|
|
4301
4301
|
}
|
|
4302
|
-
function
|
|
4302
|
+
function Wf(t) {
|
|
4303
4303
|
var s, o;
|
|
4304
4304
|
if (!t) return;
|
|
4305
4305
|
const e = t, n = (a) => a ? Object.fromEntries(
|
|
@@ -4316,13 +4316,13 @@ function zf(t) {
|
|
|
4316
4316
|
screenPreset: t
|
|
4317
4317
|
};
|
|
4318
4318
|
}
|
|
4319
|
-
function
|
|
4319
|
+
function Ju(t) {
|
|
4320
4320
|
const e = new TextEncoder().encode(t);
|
|
4321
4321
|
let n = "";
|
|
4322
4322
|
for (const r of e) n += String.fromCharCode(r);
|
|
4323
4323
|
return btoa(n).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "");
|
|
4324
4324
|
}
|
|
4325
|
-
function
|
|
4325
|
+
function Gf(t, e, n) {
|
|
4326
4326
|
var s;
|
|
4327
4327
|
const r = `${t}${e}`;
|
|
4328
4328
|
if (!n || Object.keys(n).length === 0) return r;
|
|
@@ -4336,14 +4336,14 @@ function Vf(t, e, n) {
|
|
|
4336
4336
|
), o.search = c.search, o.hash = c.hash, o;
|
|
4337
4337
|
})();
|
|
4338
4338
|
return a.searchParams.set(
|
|
4339
|
-
|
|
4340
|
-
|
|
4339
|
+
Yu,
|
|
4340
|
+
Ju(JSON.stringify(n))
|
|
4341
4341
|
), a.href;
|
|
4342
4342
|
} catch {
|
|
4343
4343
|
return r;
|
|
4344
4344
|
}
|
|
4345
4345
|
}
|
|
4346
|
-
const
|
|
4346
|
+
const Xu = Object.freeze({
|
|
4347
4347
|
panX: 300,
|
|
4348
4348
|
panY: 40,
|
|
4349
4349
|
zoom: 1
|
|
@@ -4353,9 +4353,9 @@ function Pi(t) {
|
|
|
4353
4353
|
panX: t.panX,
|
|
4354
4354
|
panY: t.panY,
|
|
4355
4355
|
zoom: Math.min(3, Math.max(0.25, t.zoom))
|
|
4356
|
-
} : { ...
|
|
4356
|
+
} : { ...Xu };
|
|
4357
4357
|
}
|
|
4358
|
-
function
|
|
4358
|
+
function qf(t, e, n = {}) {
|
|
4359
4359
|
const r = Math.max(0, n.padding ?? 40), i = Math.max(0.01, n.minZoom ?? 0.25), s = Math.max(i, n.maxZoom ?? 1), o = Math.max(0, e.insetLeft ?? 0), a = Math.max(0, e.insetRight ?? 0), c = Math.max(0, e.insetTop), u = Math.max(0, e.insetBottom), l = Math.max(
|
|
4360
4360
|
1,
|
|
4361
4361
|
e.width - o - a - r * 2
|
|
@@ -4379,7 +4379,7 @@ function Mi(t, e, n, r, i, s, o) {
|
|
|
4379
4379
|
const a = i + t * s, c = i + (t + Math.max(1, e)) * s, u = Math.max(1, r - n);
|
|
4380
4380
|
return c - a <= u ? a < n - o ? i + n - a : c > r + o ? i - (c - r) : i : c >= n && a <= r ? i : c < n ? i + r - c : i + n - a;
|
|
4381
4381
|
}
|
|
4382
|
-
function
|
|
4382
|
+
function Yf(t, e, n, r = {}) {
|
|
4383
4383
|
const i = Math.max(0, r.padding ?? 24), s = Math.max(0, r.tolerance ?? 8), o = Math.min(3, Math.max(0.25, n.zoom)), a = Math.max(0, e.insetLeft ?? 0) + i, c = Math.max(
|
|
4384
4384
|
a + 1,
|
|
4385
4385
|
e.width - Math.max(0, e.insetRight ?? 0) - i
|
|
@@ -4409,11 +4409,11 @@ function Hf(t, e, n, r = {}) {
|
|
|
4409
4409
|
zoom: o
|
|
4410
4410
|
};
|
|
4411
4411
|
}
|
|
4412
|
-
const
|
|
4413
|
-
function
|
|
4414
|
-
const n = Math.max(0, e.gap ?? Qs), r = Math.max(0, e.laneGap ??
|
|
4412
|
+
const Zu = 210, Qu = 6;
|
|
4413
|
+
function el(t, e = {}) {
|
|
4414
|
+
const n = Math.max(0, e.gap ?? Qs), r = Math.max(0, e.laneGap ?? Zu), i = Math.max(
|
|
4415
4415
|
1,
|
|
4416
|
-
Math.round(e.maxFramesPerRow ??
|
|
4416
|
+
Math.round(e.maxFramesPerRow ?? Qu)
|
|
4417
4417
|
), s = [], o = [];
|
|
4418
4418
|
let a = 0, c = 0;
|
|
4419
4419
|
for (const u of t) {
|
|
@@ -4442,7 +4442,7 @@ function Zu(t, e = {}) {
|
|
|
4442
4442
|
height: o.length === 0 ? 0 : a - r
|
|
4443
4443
|
};
|
|
4444
4444
|
}
|
|
4445
|
-
const Qs = 80,
|
|
4445
|
+
const Qs = 80, tl = 1.6;
|
|
4446
4446
|
function sn(t) {
|
|
4447
4447
|
return Number.isFinite(t) ? Math.max(1, Math.round(t)) : 1;
|
|
4448
4448
|
}
|
|
@@ -4451,7 +4451,7 @@ function Rn(t, e = {}) {
|
|
|
4451
4451
|
return { frames: [], width: 0, height: 0, rowWidth: 0 };
|
|
4452
4452
|
const n = Math.max(0, e.gap ?? Qs), r = Math.max(
|
|
4453
4453
|
0.25,
|
|
4454
|
-
e.targetAspectRatio ??
|
|
4454
|
+
e.targetAspectRatio ?? tl
|
|
4455
4455
|
), i = e.maxRowWidth == null ? Number.POSITIVE_INFINITY : Math.max(1, e.maxRowWidth), s = t.map((p) => ({
|
|
4456
4456
|
width: sn(p.width),
|
|
4457
4457
|
height: sn(p.height)
|
|
@@ -4478,7 +4478,7 @@ function Rn(t, e = {}) {
|
|
|
4478
4478
|
rowWidth: u
|
|
4479
4479
|
};
|
|
4480
4480
|
}
|
|
4481
|
-
const
|
|
4481
|
+
const Jf = {
|
|
4482
4482
|
/** Rule width and the gap between rule and text. */
|
|
4483
4483
|
ruleWidth: 4,
|
|
4484
4484
|
gap: 10,
|
|
@@ -4495,7 +4495,7 @@ const Kf = {
|
|
|
4495
4495
|
laneGap: 210,
|
|
4496
4496
|
maxFramesPerRow: 6
|
|
4497
4497
|
}, eo = "";
|
|
4498
|
-
function
|
|
4498
|
+
function Xf(t, e = {}) {
|
|
4499
4499
|
const n = [], r = /* @__PURE__ */ new Set(), i = e.sections ? new Set(e.sections) : null;
|
|
4500
4500
|
for (const s of t) {
|
|
4501
4501
|
const o = `${s.section}
|
|
@@ -4521,18 +4521,18 @@ ${s.id}`;
|
|
|
4521
4521
|
return n;
|
|
4522
4522
|
}
|
|
4523
4523
|
let Tr = [];
|
|
4524
|
-
function
|
|
4524
|
+
function Zf(t) {
|
|
4525
4525
|
Tr = t ?? [];
|
|
4526
4526
|
}
|
|
4527
4527
|
function to(t) {
|
|
4528
4528
|
return Tr.filter((e) => e.section === t);
|
|
4529
4529
|
}
|
|
4530
|
-
function
|
|
4530
|
+
function nl(t, e) {
|
|
4531
4531
|
return e === eo ? null : Tr.find(
|
|
4532
4532
|
(n) => n.section === t && n.id === e
|
|
4533
4533
|
) ?? null;
|
|
4534
4534
|
}
|
|
4535
|
-
function
|
|
4535
|
+
function rl(t, e) {
|
|
4536
4536
|
const n = to(t), r = new Map(
|
|
4537
4537
|
n.map((o) => [o.id, []])
|
|
4538
4538
|
), i = [];
|
|
@@ -4547,7 +4547,7 @@ function on(t) {
|
|
|
4547
4547
|
var e;
|
|
4548
4548
|
return (((e = t.steps) == null ? void 0 : e.length) ?? 0) > 0 || t.environment != null;
|
|
4549
4549
|
}
|
|
4550
|
-
function
|
|
4550
|
+
function Qf(t) {
|
|
4551
4551
|
const e = [], n = /* @__PURE__ */ new Set();
|
|
4552
4552
|
for (const r of t) {
|
|
4553
4553
|
n.has(r.id) && e.push({
|
|
@@ -4603,7 +4603,7 @@ function no(t, e) {
|
|
|
4603
4603
|
const n = t.domAttributes;
|
|
4604
4604
|
return (n == null ? void 0 : n["data-testid"]) === e ? !0 : (t.children ?? []).some((r) => no(r, e));
|
|
4605
4605
|
}
|
|
4606
|
-
function
|
|
4606
|
+
function eh(t, e) {
|
|
4607
4607
|
return e.filter((n) => {
|
|
4608
4608
|
var s, o;
|
|
4609
4609
|
const r = (s = n.requires) == null ? void 0 : s.route;
|
|
@@ -4626,7 +4626,7 @@ function io(t, e) {
|
|
|
4626
4626
|
(n) => n.capturedWhen != null && ro(e.root, n.capturedWhen)
|
|
4627
4627
|
);
|
|
4628
4628
|
}
|
|
4629
|
-
function
|
|
4629
|
+
function th(t, e) {
|
|
4630
4630
|
if (e) {
|
|
4631
4631
|
const n = io(t, e);
|
|
4632
4632
|
if (n) return n;
|
|
@@ -4634,10 +4634,10 @@ function Jf(t, e) {
|
|
|
4634
4634
|
return t.options.find((n) => !on(n));
|
|
4635
4635
|
}
|
|
4636
4636
|
let so = [];
|
|
4637
|
-
function
|
|
4637
|
+
function nh(t) {
|
|
4638
4638
|
so = t ?? [];
|
|
4639
4639
|
}
|
|
4640
|
-
function
|
|
4640
|
+
function rh() {
|
|
4641
4641
|
return so;
|
|
4642
4642
|
}
|
|
4643
4643
|
const oo = {
|
|
@@ -4650,23 +4650,23 @@ const oo = {
|
|
|
4650
4650
|
meta: "#bebecb",
|
|
4651
4651
|
purpose: "#c4ccd8"
|
|
4652
4652
|
}, $r = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
4653
|
-
function
|
|
4653
|
+
function ih(t, e) {
|
|
4654
4654
|
const n = t.length === 4 ? `#${t[1]}${t[1]}${t[2]}${t[2]}${t[3]}${t[3]}` : t;
|
|
4655
4655
|
if (!$r.test(n)) return t;
|
|
4656
4656
|
const r = Number.parseInt(n.slice(1), 16), i = (c) => Math.round(c + (255 - c) * Math.min(1, Math.max(0, e))), s = i(r >> 16 & 255), o = i(r >> 8 & 255), a = i(r & 255);
|
|
4657
4657
|
return `#${(s << 16 | o << 8 | a).toString(16).padStart(6, "0")}`;
|
|
4658
4658
|
}
|
|
4659
|
-
const
|
|
4659
|
+
const il = {
|
|
4660
4660
|
layers: "layers",
|
|
4661
4661
|
noScenario: "no scenario",
|
|
4662
4662
|
omissions: "some omissions",
|
|
4663
4663
|
checkFlow: "check flow"
|
|
4664
4664
|
};
|
|
4665
|
-
function
|
|
4666
|
-
return { ...
|
|
4665
|
+
function sh(t) {
|
|
4666
|
+
return { ...il, ...t };
|
|
4667
4667
|
}
|
|
4668
|
-
const ao = "step", co = "variant",
|
|
4669
|
-
function
|
|
4668
|
+
const ao = "step", co = "variant", sl = "#8b8b9e";
|
|
4669
|
+
function oh(t, e = {}) {
|
|
4670
4670
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
4671
4671
|
for (const i of t)
|
|
4672
4672
|
r.has(i.kind) && n.push({
|
|
@@ -4702,20 +4702,20 @@ function Dr(t) {
|
|
|
4702
4702
|
function uo(t) {
|
|
4703
4703
|
return t.route != null && Dr(t).length === 0;
|
|
4704
4704
|
}
|
|
4705
|
-
function
|
|
4705
|
+
function ah(t) {
|
|
4706
4706
|
return t.filter(uo);
|
|
4707
4707
|
}
|
|
4708
|
-
function
|
|
4708
|
+
function ch(t) {
|
|
4709
4709
|
if (t.stateKind) return t.stateKind;
|
|
4710
|
-
const e =
|
|
4710
|
+
const e = ol(t);
|
|
4711
4711
|
return e != null && e.split(".").length > 2 ? co : ao;
|
|
4712
4712
|
}
|
|
4713
4713
|
const lo = /^(\d+(?:\.\d+)*)\s+(.*)$/;
|
|
4714
|
-
function
|
|
4714
|
+
function ol(t) {
|
|
4715
4715
|
var e;
|
|
4716
4716
|
return ((e = lo.exec(t.name.trim())) == null ? void 0 : e[1]) ?? null;
|
|
4717
4717
|
}
|
|
4718
|
-
function
|
|
4718
|
+
function uh(t) {
|
|
4719
4719
|
const e = t.name.trim(), n = lo.exec(e), r = n ? n[2] : e, i = r.lastIndexOf(" / "), s = i >= 0 ? r.slice(i + 3).trim() : r;
|
|
4720
4720
|
return {
|
|
4721
4721
|
code: n ? n[1] : null,
|
|
@@ -4723,13 +4723,13 @@ function ih(t) {
|
|
|
4723
4723
|
...t.state ? { state: t.state } : {}
|
|
4724
4724
|
};
|
|
4725
4725
|
}
|
|
4726
|
-
function
|
|
4726
|
+
function lh(t, e) {
|
|
4727
4727
|
const n = [];
|
|
4728
4728
|
t.layerImportTruncated ? n.push(e.omissions) : t.layerImportError && n.push(e.checkFlow);
|
|
4729
4729
|
const r = Dr(t);
|
|
4730
4730
|
return r.length > 0 ? n.push(r.join(" · ")) : uo(t) && n.push(e.noScenario), t.layersImported && !t.layerImportTruncated && n.push(`${t.layerImportCount ?? 0} ${e.layers}`), n.join(" · ");
|
|
4731
4731
|
}
|
|
4732
|
-
const
|
|
4732
|
+
const dh = {
|
|
4733
4733
|
...oo,
|
|
4734
4734
|
radius: 10,
|
|
4735
4735
|
pillRadius: 999,
|
|
@@ -4745,32 +4745,32 @@ const oh = {
|
|
|
4745
4745
|
pillPaddingX: 10,
|
|
4746
4746
|
/** Bottom margin between the label and its frame. */
|
|
4747
4747
|
marginBottom: 8
|
|
4748
|
-
},
|
|
4748
|
+
}, fh = 0.35;
|
|
4749
4749
|
let fo = [], ho;
|
|
4750
|
-
function
|
|
4750
|
+
function hh(t, e) {
|
|
4751
4751
|
fo = t, ho = e;
|
|
4752
4752
|
}
|
|
4753
|
-
function
|
|
4753
|
+
function ph() {
|
|
4754
4754
|
return ho;
|
|
4755
4755
|
}
|
|
4756
|
-
function
|
|
4756
|
+
function mh(t) {
|
|
4757
4757
|
return fo.find((e) => e.kind === t) ?? {
|
|
4758
4758
|
kind: t,
|
|
4759
4759
|
label: t,
|
|
4760
|
-
accent:
|
|
4760
|
+
accent: sl
|
|
4761
4761
|
};
|
|
4762
4762
|
}
|
|
4763
|
-
const
|
|
4763
|
+
const al = {
|
|
4764
4764
|
code: "SECTION",
|
|
4765
4765
|
frames: "frames",
|
|
4766
4766
|
folded: "folded",
|
|
4767
4767
|
scenarios: "scenarios",
|
|
4768
4768
|
flows: "flows"
|
|
4769
4769
|
};
|
|
4770
|
-
function
|
|
4771
|
-
return { ...
|
|
4770
|
+
function gh(t) {
|
|
4771
|
+
return { ...al, ...t };
|
|
4772
4772
|
}
|
|
4773
|
-
function
|
|
4773
|
+
function vh(t, e) {
|
|
4774
4774
|
const n = [], r = new Set(e.sections), i = /* @__PURE__ */ new Set();
|
|
4775
4775
|
for (const s of t)
|
|
4776
4776
|
i.has(s.section) && n.push({
|
|
@@ -4806,7 +4806,7 @@ function fh(t, e) {
|
|
|
4806
4806
|
});
|
|
4807
4807
|
return n;
|
|
4808
4808
|
}
|
|
4809
|
-
function
|
|
4809
|
+
function bh(t, e = {}) {
|
|
4810
4810
|
const n = e.isShown ?? (() => !0), r = /* @__PURE__ */ new Set(), i = [], s = /* @__PURE__ */ new Set();
|
|
4811
4811
|
let o = 0;
|
|
4812
4812
|
for (const a of t) {
|
|
@@ -4824,13 +4824,13 @@ function hh(t, e = {}) {
|
|
|
4824
4824
|
viewport: s.size === 1 ? [...s][0] : null
|
|
4825
4825
|
};
|
|
4826
4826
|
}
|
|
4827
|
-
function
|
|
4827
|
+
function yh(t, e) {
|
|
4828
4828
|
const n = [];
|
|
4829
4829
|
return n.push(
|
|
4830
4830
|
t.foldedCount > 0 ? `${t.frameCount} ${e.frames} (+${t.foldedCount} ${e.folded})` : `${t.frameCount} ${e.frames}`
|
|
4831
4831
|
), t.flows.length > 1 && n.push(`${e.flows} ${t.flows.join(" / ")}`), t.scenarioCount > 0 && n.push(`${e.scenarios} ${t.scenarioCount}`), t.viewport && n.push(t.viewport), n.join(" · ");
|
|
4832
4832
|
}
|
|
4833
|
-
const
|
|
4833
|
+
const _h = {
|
|
4834
4834
|
...oo,
|
|
4835
4835
|
radius: 12,
|
|
4836
4836
|
pillRadius: 999,
|
|
@@ -4845,18 +4845,18 @@ const mh = {
|
|
|
4845
4845
|
pillSize: 12,
|
|
4846
4846
|
pillPaddingY: 6,
|
|
4847
4847
|
pillPaddingX: 14
|
|
4848
|
-
},
|
|
4848
|
+
}, cl = 176, Sh = 1280;
|
|
4849
4849
|
let Rr = [], po;
|
|
4850
|
-
function
|
|
4850
|
+
function wh(t, e) {
|
|
4851
4851
|
Rr = t, po = e;
|
|
4852
4852
|
}
|
|
4853
4853
|
function mo() {
|
|
4854
4854
|
return Rr;
|
|
4855
4855
|
}
|
|
4856
|
-
function
|
|
4856
|
+
function Oh() {
|
|
4857
4857
|
return po;
|
|
4858
4858
|
}
|
|
4859
|
-
function
|
|
4859
|
+
function Eh(t) {
|
|
4860
4860
|
return Rr.find((e) => e.section === t) ?? null;
|
|
4861
4861
|
}
|
|
4862
4862
|
function q(t, e) {
|
|
@@ -4868,7 +4868,7 @@ function q(t, e) {
|
|
|
4868
4868
|
const i = `${n.className ?? ""} ${t.name ?? ""}`;
|
|
4869
4869
|
return (typeof r == "string" ? [r] : r).some((o) => o !== "" && i.includes(o));
|
|
4870
4870
|
}
|
|
4871
|
-
function
|
|
4871
|
+
function je(t, e, n) {
|
|
4872
4872
|
const r = [], i = (s) => {
|
|
4873
4873
|
if (!(r.length >= n)) {
|
|
4874
4874
|
e(s) && r.push(s);
|
|
@@ -4885,7 +4885,7 @@ function go(t, e) {
|
|
|
4885
4885
|
}
|
|
4886
4886
|
return null;
|
|
4887
4887
|
}
|
|
4888
|
-
function
|
|
4888
|
+
function ul(t, e = 28) {
|
|
4889
4889
|
const n = [];
|
|
4890
4890
|
let r = 0;
|
|
4891
4891
|
const i = (o) => {
|
|
@@ -4898,8 +4898,8 @@ function ol(t, e = 28) {
|
|
|
4898
4898
|
const s = n.join(" ");
|
|
4899
4899
|
return s.length > e ? `${s.slice(0, e - 1)}…` : s;
|
|
4900
4900
|
}
|
|
4901
|
-
const
|
|
4902
|
-
function
|
|
4901
|
+
const ll = 24;
|
|
4902
|
+
function xh(t, e) {
|
|
4903
4903
|
var i, s, o;
|
|
4904
4904
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
4905
4905
|
for (const a of t) {
|
|
@@ -4969,26 +4969,26 @@ function _h(t, e) {
|
|
|
4969
4969
|
}
|
|
4970
4970
|
return n;
|
|
4971
4971
|
}
|
|
4972
|
-
function
|
|
4972
|
+
function dl(t, e) {
|
|
4973
4973
|
return t.componentName === e.component ? !0 : q(t, e.match);
|
|
4974
4974
|
}
|
|
4975
|
-
function
|
|
4976
|
-
return
|
|
4975
|
+
function fl(t, e) {
|
|
4976
|
+
return je(
|
|
4977
4977
|
t.root,
|
|
4978
|
-
(n) =>
|
|
4979
|
-
|
|
4978
|
+
(n) => dl(n, e),
|
|
4979
|
+
ll
|
|
4980
4980
|
);
|
|
4981
4981
|
}
|
|
4982
|
-
function
|
|
4983
|
-
return
|
|
4982
|
+
function hl(t, e) {
|
|
4983
|
+
return fl(t, e)[0] ?? null;
|
|
4984
4984
|
}
|
|
4985
|
-
function
|
|
4985
|
+
function pl(t, e) {
|
|
4986
4986
|
var r;
|
|
4987
4987
|
if (t.prop) return { [t.prop]: e };
|
|
4988
4988
|
const n = (r = t.options) == null ? void 0 : r.find((i) => i.label === e);
|
|
4989
4989
|
return n ? n.props : null;
|
|
4990
4990
|
}
|
|
4991
|
-
function
|
|
4991
|
+
function Ah(t, e) {
|
|
4992
4992
|
var n;
|
|
4993
4993
|
if (e.componentName !== t.component) return null;
|
|
4994
4994
|
if (t.prop) {
|
|
@@ -5005,14 +5005,14 @@ function Sh(t, e) {
|
|
|
5005
5005
|
return null;
|
|
5006
5006
|
}
|
|
5007
5007
|
let vo = [];
|
|
5008
|
-
function
|
|
5008
|
+
function Nh(t) {
|
|
5009
5009
|
vo = t;
|
|
5010
5010
|
}
|
|
5011
|
-
function
|
|
5011
|
+
function Ih() {
|
|
5012
5012
|
return vo;
|
|
5013
5013
|
}
|
|
5014
5014
|
const Lr = 12;
|
|
5015
|
-
function
|
|
5015
|
+
function Ph(t, e) {
|
|
5016
5016
|
var i, s;
|
|
5017
5017
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
5018
5018
|
for (const o of t) {
|
|
@@ -5083,15 +5083,15 @@ function Eh(t, e) {
|
|
|
5083
5083
|
}
|
|
5084
5084
|
return n;
|
|
5085
5085
|
}
|
|
5086
|
-
function
|
|
5087
|
-
return
|
|
5086
|
+
function Mh(t, e) {
|
|
5087
|
+
return je(
|
|
5088
5088
|
t.root,
|
|
5089
5089
|
(n) => q(n, e.card),
|
|
5090
5090
|
Lr
|
|
5091
5091
|
);
|
|
5092
5092
|
}
|
|
5093
5093
|
function bo(t, e) {
|
|
5094
|
-
return
|
|
5094
|
+
return je(
|
|
5095
5095
|
t,
|
|
5096
5096
|
(n) => n !== t && q(n, e.container),
|
|
5097
5097
|
1
|
|
@@ -5105,7 +5105,7 @@ function Kt(t, e) {
|
|
|
5105
5105
|
}
|
|
5106
5106
|
) : q(t, e.match);
|
|
5107
5107
|
}
|
|
5108
|
-
function
|
|
5108
|
+
function Ch(t, e) {
|
|
5109
5109
|
const n = bo(t, e);
|
|
5110
5110
|
if (!n) return [];
|
|
5111
5111
|
const r = [];
|
|
@@ -5115,30 +5115,30 @@ function Ah(t, e) {
|
|
|
5115
5115
|
}
|
|
5116
5116
|
return r;
|
|
5117
5117
|
}
|
|
5118
|
-
function
|
|
5119
|
-
return
|
|
5118
|
+
function Th(t, e) {
|
|
5119
|
+
return ul(t) || `#${e + 1}`;
|
|
5120
5120
|
}
|
|
5121
|
-
function
|
|
5122
|
-
return
|
|
5121
|
+
function ml(t, e, n) {
|
|
5122
|
+
return je(
|
|
5123
5123
|
t.root,
|
|
5124
5124
|
(i) => i.componentName !== e.component && q(i, e.match),
|
|
5125
5125
|
Lr
|
|
5126
|
-
).find((i) => !
|
|
5126
|
+
).find((i) => !kr(n, i)) ?? null;
|
|
5127
5127
|
}
|
|
5128
|
-
function
|
|
5129
|
-
return
|
|
5128
|
+
function gl(t, e, n) {
|
|
5129
|
+
return je(
|
|
5130
5130
|
t.root,
|
|
5131
5131
|
(i) => q(i, e.container),
|
|
5132
5132
|
Lr
|
|
5133
|
-
).find((i) => !
|
|
5133
|
+
).find((i) => !kr(n, i)) ?? null;
|
|
5134
5134
|
}
|
|
5135
|
-
function
|
|
5136
|
-
return t === e ? !0 : (t.children ?? []).some((n) =>
|
|
5135
|
+
function kr(t, e) {
|
|
5136
|
+
return t === e ? !0 : (t.children ?? []).some((n) => kr(n, e));
|
|
5137
5137
|
}
|
|
5138
|
-
function
|
|
5138
|
+
function vl(t, e) {
|
|
5139
5139
|
const n = e.placement;
|
|
5140
5140
|
if (!n) return null;
|
|
5141
|
-
const r =
|
|
5141
|
+
const r = je(
|
|
5142
5142
|
t,
|
|
5143
5143
|
(s) => q(s, n.parent),
|
|
5144
5144
|
1
|
|
@@ -5159,7 +5159,7 @@ function pl(t, e) {
|
|
|
5159
5159
|
}
|
|
5160
5160
|
return { parent: r, index: i.length };
|
|
5161
5161
|
}
|
|
5162
|
-
function
|
|
5162
|
+
function bl(t, e) {
|
|
5163
5163
|
var s, o;
|
|
5164
5164
|
const n = t.children ?? [], r = (s = e.anchor) == null ? void 0 : s.before;
|
|
5165
5165
|
if (r) {
|
|
@@ -5174,20 +5174,20 @@ function ml(t, e) {
|
|
|
5174
5174
|
return n.length;
|
|
5175
5175
|
}
|
|
5176
5176
|
let yo = [];
|
|
5177
|
-
function
|
|
5177
|
+
function $h(t) {
|
|
5178
5178
|
yo = t;
|
|
5179
5179
|
}
|
|
5180
|
-
function
|
|
5180
|
+
function Dh() {
|
|
5181
5181
|
return yo;
|
|
5182
5182
|
}
|
|
5183
|
-
const
|
|
5183
|
+
const yl = 0, _l = 12, _o = yl, So = _l, Sl = 64;
|
|
5184
5184
|
function Ti(t) {
|
|
5185
5185
|
if (!t) return !0;
|
|
5186
5186
|
if (t.testId) return !1;
|
|
5187
5187
|
const e = t.classIncludes;
|
|
5188
5188
|
return typeof e == "string" ? e === "" : !e || e.length === 0;
|
|
5189
5189
|
}
|
|
5190
|
-
function
|
|
5190
|
+
function Rh(t) {
|
|
5191
5191
|
const e = [], n = /* @__PURE__ */ new Set();
|
|
5192
5192
|
for (const r of t) {
|
|
5193
5193
|
n.has(r.id) && e.push({
|
|
@@ -5220,24 +5220,24 @@ function Mh(t) {
|
|
|
5220
5220
|
}
|
|
5221
5221
|
return e;
|
|
5222
5222
|
}
|
|
5223
|
-
function
|
|
5224
|
-
return
|
|
5223
|
+
function wl(t, e) {
|
|
5224
|
+
return je(t.root, (n) => q(n, e.container), 1)[0] ?? null;
|
|
5225
5225
|
}
|
|
5226
|
-
function
|
|
5227
|
-
return
|
|
5226
|
+
function Ol(t, e) {
|
|
5227
|
+
return je(
|
|
5228
5228
|
t,
|
|
5229
5229
|
(n) => n !== t && q(n, e.item),
|
|
5230
|
-
|
|
5230
|
+
Sl
|
|
5231
5231
|
);
|
|
5232
5232
|
}
|
|
5233
|
-
function
|
|
5233
|
+
function El(t, e) {
|
|
5234
5234
|
const n = Math.max(0, t.min ?? _o), r = Math.max(n, t.max ?? So);
|
|
5235
5235
|
return Number.isFinite(e) ? Math.min(r, Math.max(n, Math.round(e))) : n;
|
|
5236
5236
|
}
|
|
5237
|
-
const
|
|
5237
|
+
const xl = /^(-?\d+(?:\.\d+)?)px$/;
|
|
5238
5238
|
function Je(t) {
|
|
5239
5239
|
if (!t) return null;
|
|
5240
|
-
const e =
|
|
5240
|
+
const e = xl.exec(t.trim());
|
|
5241
5241
|
return e ? Number(e[1]) : null;
|
|
5242
5242
|
}
|
|
5243
5243
|
function an(t) {
|
|
@@ -5251,7 +5251,7 @@ function $i(t, e) {
|
|
|
5251
5251
|
const n = Je((i = e.domStyle) == null ? void 0 : i.height) ?? 0, r = an((s = t.domStyle) == null ? void 0 : s.rowGap) ?? an((o = t.domStyle) == null ? void 0 : o.gap) ?? 0;
|
|
5252
5252
|
return n + r;
|
|
5253
5253
|
}
|
|
5254
|
-
function
|
|
5254
|
+
function Al(t, e) {
|
|
5255
5255
|
const n = { ...t.domStyle };
|
|
5256
5256
|
let r = !1;
|
|
5257
5257
|
const i = Je(n.height);
|
|
@@ -5259,7 +5259,7 @@ function Ol(t, e) {
|
|
|
5259
5259
|
const s = Je(n.maxHeight);
|
|
5260
5260
|
s != null && (n.maxHeight = fr(s + e), r = !0), r && (t.domStyle = n);
|
|
5261
5261
|
}
|
|
5262
|
-
function
|
|
5262
|
+
function Nl(t, e, n) {
|
|
5263
5263
|
var i, s;
|
|
5264
5264
|
const r = t.children.indexOf(e);
|
|
5265
5265
|
if (!(r < 0))
|
|
@@ -5270,21 +5270,21 @@ function El(t, e, n) {
|
|
|
5270
5270
|
c != null && (o.domStyle = { ...o.domStyle, top: fr(c + n) });
|
|
5271
5271
|
}
|
|
5272
5272
|
}
|
|
5273
|
-
const
|
|
5273
|
+
const Il = /* @__PURE__ */ new Set(["auto", "scroll", "overlay"]), Pl = /* @__PURE__ */ new Set(["auto", "scroll", "overlay", "hidden", "clip"]), Ln = "data-pygmalion-captured-overflow-y";
|
|
5274
5274
|
function wo(t) {
|
|
5275
5275
|
const e = t.domStyle ?? {};
|
|
5276
5276
|
return e.overflowY ?? e.overflow;
|
|
5277
5277
|
}
|
|
5278
|
-
function
|
|
5278
|
+
function Ml(t) {
|
|
5279
5279
|
const e = wo(t);
|
|
5280
|
-
return e != null &&
|
|
5280
|
+
return e != null && Pl.has(e);
|
|
5281
5281
|
}
|
|
5282
|
-
function
|
|
5282
|
+
function Cl(t) {
|
|
5283
5283
|
for (let e = t.length - 2; e >= 0; e -= 1)
|
|
5284
|
-
if (
|
|
5284
|
+
if (Ml(t[e])) return e;
|
|
5285
5285
|
return -1;
|
|
5286
5286
|
}
|
|
5287
|
-
function
|
|
5287
|
+
function Tl(t) {
|
|
5288
5288
|
var s, o, a, c;
|
|
5289
5289
|
const e = an((s = t.domStyle) == null ? void 0 : s.rowGap) ?? an((o = t.domStyle) == null ? void 0 : o.gap) ?? 0, n = t.children ?? [];
|
|
5290
5290
|
let r = 0, i = 0;
|
|
@@ -5296,13 +5296,13 @@ function Pl(t) {
|
|
|
5296
5296
|
}
|
|
5297
5297
|
return i > 0 ? r + e * (i - 1) : 0;
|
|
5298
5298
|
}
|
|
5299
|
-
function
|
|
5299
|
+
function $l(t) {
|
|
5300
5300
|
var a, c;
|
|
5301
5301
|
const e = Je((a = t.domStyle) == null ? void 0 : a.height);
|
|
5302
5302
|
if (e == null) return;
|
|
5303
|
-
const n = { ...t.domAttributes ?? {} }, r = n[Ln], i =
|
|
5303
|
+
const n = { ...t.domAttributes ?? {} }, r = n[Ln], i = Tl(t) > e + 0.5, s = wo(t);
|
|
5304
5304
|
if (i) {
|
|
5305
|
-
if (s != null &&
|
|
5305
|
+
if (s != null && Il.has(s)) return;
|
|
5306
5306
|
r == null && (n[Ln] = ((c = t.domStyle) == null ? void 0 : c.overflowY) ?? "", t.domAttributes = n), t.domStyle = { ...t.domStyle, overflowY: "auto" };
|
|
5307
5307
|
return;
|
|
5308
5308
|
}
|
|
@@ -5310,27 +5310,27 @@ function Ml(t) {
|
|
|
5310
5310
|
const o = { ...t.domStyle };
|
|
5311
5311
|
r === "" ? delete o.overflowY : o.overflowY = r, t.domStyle = o, delete n[Ln], t.domAttributes = n;
|
|
5312
5312
|
}
|
|
5313
|
-
function
|
|
5313
|
+
function Dl(t, e, n) {
|
|
5314
5314
|
if (!n) return;
|
|
5315
5315
|
const r = go(t, e.id);
|
|
5316
5316
|
if (!r) return;
|
|
5317
|
-
const i =
|
|
5317
|
+
const i = Cl(r);
|
|
5318
5318
|
for (let s = r.length - 1; s > i; s -= 1)
|
|
5319
|
-
|
|
5320
|
-
i >= 0 &&
|
|
5319
|
+
Al(r[s], n), s > 0 && Nl(r[s - 1], r[s], n);
|
|
5320
|
+
i >= 0 && $l(r[i]);
|
|
5321
5321
|
}
|
|
5322
5322
|
let Oo = [];
|
|
5323
|
-
function
|
|
5323
|
+
function Lh(t) {
|
|
5324
5324
|
Oo = t;
|
|
5325
5325
|
}
|
|
5326
|
-
function
|
|
5326
|
+
function kh() {
|
|
5327
5327
|
return Oo;
|
|
5328
5328
|
}
|
|
5329
|
-
const
|
|
5330
|
-
let
|
|
5329
|
+
const Rl = 12, Ll = 800, kl = /* @__PURE__ */ new Set(["SCRIPT", "STYLE", "NOSCRIPT", "META", "LINK", "TEMPLATE", "IFRAME", "BR", "HEAD"]), jl = /* @__PURE__ */ new Set(["SVG", "IMG", "VIDEO", "CANVAS", "PICTURE"]), Fl = /* @__PURE__ */ new Set(["SVG", "IMG", "VIDEO", "CANVAS", "PICTURE"]);
|
|
5330
|
+
let zl = 0;
|
|
5331
5331
|
function Ft(t, e) {
|
|
5332
5332
|
return {
|
|
5333
|
-
id: `imp${++
|
|
5333
|
+
id: `imp${++zl}`,
|
|
5334
5334
|
type: t,
|
|
5335
5335
|
name: t,
|
|
5336
5336
|
widthMode: "fill",
|
|
@@ -5369,11 +5369,11 @@ function Ft(t, e) {
|
|
|
5369
5369
|
};
|
|
5370
5370
|
}
|
|
5371
5371
|
const Oe = (t) => Math.round(parseFloat(t) || 0);
|
|
5372
|
-
function
|
|
5372
|
+
function Vl(t) {
|
|
5373
5373
|
const e = Number.parseFloat(t);
|
|
5374
5374
|
return Number.isFinite(e) ? Math.max(0, Math.min(1, e)) : 1;
|
|
5375
5375
|
}
|
|
5376
|
-
function
|
|
5376
|
+
function kn(t) {
|
|
5377
5377
|
if (!t || t === "transparent") return "";
|
|
5378
5378
|
const e = t.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)(?:[,\s/]+([\d.]+))?\s*\)/);
|
|
5379
5379
|
if (!e) return t.startsWith("#") ? t : "";
|
|
@@ -5383,19 +5383,19 @@ function jn(t) {
|
|
|
5383
5383
|
const r = (i) => Number(i).toString(16).padStart(2, "0");
|
|
5384
5384
|
return `#${r(e[1])}${r(e[2])}${r(e[3])}`;
|
|
5385
5385
|
}
|
|
5386
|
-
const
|
|
5386
|
+
const Bl = {
|
|
5387
5387
|
center: "center",
|
|
5388
5388
|
"flex-end": "end",
|
|
5389
5389
|
end: "end",
|
|
5390
5390
|
"space-between": "between"
|
|
5391
|
-
},
|
|
5392
|
-
function
|
|
5391
|
+
}, Hl = { center: "center", "flex-end": "end", end: "end" };
|
|
5392
|
+
function jn(t, e) {
|
|
5393
5393
|
t.truncated = !0, !t.diagnosticCodes.has(e.code) && (t.diagnosticCodes.add(e.code), t.diagnostics.push(e));
|
|
5394
5394
|
}
|
|
5395
5395
|
function Di(t, e, n, r) {
|
|
5396
5396
|
return Math.abs(t.width - e.width) <= 2 * r ? { widthMode: "fill", width: 200 } : n.startsWith("inline") || n === "flex" || n === "grid" ? { widthMode: "fit", width: 200 } : { widthMode: "fixed", width: Math.max(4, Math.round(t.width / r)) };
|
|
5397
5397
|
}
|
|
5398
|
-
function
|
|
5398
|
+
function Kl(t) {
|
|
5399
5399
|
const e = {
|
|
5400
5400
|
class: "className",
|
|
5401
5401
|
for: "htmlFor",
|
|
@@ -5417,11 +5417,11 @@ function Fn(t) {
|
|
|
5417
5417
|
r = new URL(r, t.ownerDocument.baseURI).href;
|
|
5418
5418
|
} catch {
|
|
5419
5419
|
}
|
|
5420
|
-
e[
|
|
5420
|
+
e[Kl(n.name)] = r;
|
|
5421
5421
|
}
|
|
5422
5422
|
return e;
|
|
5423
5423
|
}
|
|
5424
|
-
const
|
|
5424
|
+
const Ul = [
|
|
5425
5425
|
"display",
|
|
5426
5426
|
"position",
|
|
5427
5427
|
"inset",
|
|
@@ -5508,19 +5508,19 @@ const Bl = [
|
|
|
5508
5508
|
"object-position",
|
|
5509
5509
|
"visibility"
|
|
5510
5510
|
];
|
|
5511
|
-
function
|
|
5511
|
+
function Wl(t) {
|
|
5512
5512
|
return t.replace(/-([a-z])/g, (e, n) => n.toUpperCase());
|
|
5513
5513
|
}
|
|
5514
|
-
const
|
|
5514
|
+
const Gl = /* @__PURE__ */ new Set(["overflow", "overflow-x", "overflow-y"]);
|
|
5515
5515
|
function zn(t) {
|
|
5516
5516
|
const e = {};
|
|
5517
|
-
for (const n of
|
|
5517
|
+
for (const n of Ul) {
|
|
5518
5518
|
const r = t.getPropertyValue(n);
|
|
5519
|
-
!r || r === "normal" || r === "none" || r === "auto" && !
|
|
5519
|
+
!r || r === "normal" || r === "none" || r === "auto" && !Gl.has(n) || (e[Wl(n)] = r);
|
|
5520
5520
|
}
|
|
5521
5521
|
return e;
|
|
5522
5522
|
}
|
|
5523
|
-
function
|
|
5523
|
+
function ql(t, e, n) {
|
|
5524
5524
|
const r = t.getAttribute("data-pygmalion-layer");
|
|
5525
5525
|
if (r) return r;
|
|
5526
5526
|
if (n) return n;
|
|
@@ -5533,7 +5533,7 @@ function Ul(t, e, n) {
|
|
|
5533
5533
|
const a = (t.getAttribute("class") || "").split(/\s+/).find(Boolean);
|
|
5534
5534
|
return a ? `${e.toLowerCase()}.${a.slice(0, 32)}` : e.toLowerCase();
|
|
5535
5535
|
}
|
|
5536
|
-
function
|
|
5536
|
+
function Yl(t) {
|
|
5537
5537
|
let e = "";
|
|
5538
5538
|
const n = Array.from(t.childNodes ?? []);
|
|
5539
5539
|
for (; n.length > 0; ) {
|
|
@@ -5546,22 +5546,22 @@ function Wl(t) {
|
|
|
5546
5546
|
}
|
|
5547
5547
|
return e.replace(/\s+/g, " ").trim();
|
|
5548
5548
|
}
|
|
5549
|
-
function
|
|
5550
|
-
const n =
|
|
5549
|
+
function Jl(t, e) {
|
|
5550
|
+
const n = Yl(t);
|
|
5551
5551
|
if (!n) return !0;
|
|
5552
5552
|
const r = [e.childrenText, ...Object.values(e.props).map(String)].join(" ").replace(/\s+/g, " ").trim();
|
|
5553
5553
|
return r ? n.split(" ").every((i) => r.includes(i)) : !1;
|
|
5554
5554
|
}
|
|
5555
|
-
function
|
|
5555
|
+
function Xl(t) {
|
|
5556
5556
|
const e = Array.from(t.children ?? []);
|
|
5557
5557
|
for (; e.length > 0; ) {
|
|
5558
5558
|
const n = e.shift();
|
|
5559
|
-
if (
|
|
5559
|
+
if (Fl.has(n.tagName.toUpperCase())) return !0;
|
|
5560
5560
|
e.push(...Array.from(n.children ?? []));
|
|
5561
5561
|
}
|
|
5562
5562
|
return !1;
|
|
5563
5563
|
}
|
|
5564
|
-
function
|
|
5564
|
+
function Zl(t, e) {
|
|
5565
5565
|
if (!e.resolveInstance) return !1;
|
|
5566
5566
|
const n = Array.from(t.children ?? []);
|
|
5567
5567
|
for (; n.length > 0; ) {
|
|
@@ -5573,9 +5573,9 @@ function Yl(t, e) {
|
|
|
5573
5573
|
}
|
|
5574
5574
|
function Eo(t, e, n, r, i, s) {
|
|
5575
5575
|
var Se, J;
|
|
5576
|
-
const o = s.maxNodes ??
|
|
5576
|
+
const o = s.maxNodes ?? Ll, a = s.maxDepth ?? Rl;
|
|
5577
5577
|
if (r.maxDepth = Math.max(r.maxDepth, n), r.count >= o)
|
|
5578
|
-
return
|
|
5578
|
+
return jn(r, {
|
|
5579
5579
|
severity: "warning",
|
|
5580
5580
|
stage: "capture",
|
|
5581
5581
|
code: "max-nodes",
|
|
@@ -5584,7 +5584,7 @@ function Eo(t, e, n, r, i, s) {
|
|
|
5584
5584
|
actual: r.count
|
|
5585
5585
|
}), null;
|
|
5586
5586
|
const c = t.tagName.toUpperCase();
|
|
5587
|
-
if (
|
|
5587
|
+
if (kl.has(c)) return null;
|
|
5588
5588
|
const u = i.getComputedStyle(t), l = u.display === "none" || u.visibility === "hidden";
|
|
5589
5589
|
if (l && !s.includeHidden) return null;
|
|
5590
5590
|
const d = t.getBoundingClientRect();
|
|
@@ -5597,7 +5597,7 @@ function Eo(t, e, n, r, i, s) {
|
|
|
5597
5597
|
sourceProps: lr(
|
|
5598
5598
|
t.getAttribute("data-pygmalion-own-props")
|
|
5599
5599
|
)
|
|
5600
|
-
}, w = v != null && h === "expand" && ((J = s.collapseInstance) == null ? void 0 : J.call(s, v)) === !0 && !
|
|
5600
|
+
}, w = v != null && h === "expand" && ((J = s.collapseInstance) == null ? void 0 : J.call(s, v)) === !0 && !Zl(t, s) && Jl(t, v) && !Xl(t);
|
|
5601
5601
|
if (v && (h === "collapse" || w))
|
|
5602
5602
|
return Ft("component", {
|
|
5603
5603
|
name: v.name,
|
|
@@ -5610,8 +5610,8 @@ function Eo(t, e, n, r, i, s) {
|
|
|
5610
5610
|
...m,
|
|
5611
5611
|
...Di(d, e, u.display, f)
|
|
5612
5612
|
});
|
|
5613
|
-
const g =
|
|
5614
|
-
if (
|
|
5613
|
+
const g = ql(t, c, v == null ? void 0 : v.name);
|
|
5614
|
+
if (jl.has(c) && (s.mediaMode ?? "placeholder") === "placeholder")
|
|
5615
5615
|
return Ft("rows", {
|
|
5616
5616
|
name: g,
|
|
5617
5617
|
widthMode: "fixed",
|
|
@@ -5628,21 +5628,21 @@ function Eo(t, e, n, r, i, s) {
|
|
|
5628
5628
|
});
|
|
5629
5629
|
const E = u.display === "flex" || u.display === "inline-flex", S = E && u.flexDirection.startsWith("row") ? "columns" : "rows", A = Oe(S === "columns" ? u.columnGap : u.rowGap), C = Math.round(
|
|
5630
5630
|
(Oe(u.paddingTop) + Oe(u.paddingRight) + Oe(u.paddingBottom) + Oe(u.paddingLeft)) / 4
|
|
5631
|
-
), M = Oe(u.borderTopWidth),
|
|
5631
|
+
), M = Oe(u.borderTopWidth), k = Ft(S, {
|
|
5632
5632
|
name: g,
|
|
5633
5633
|
...Di(d, e, u.display, f),
|
|
5634
5634
|
gap: Number.isFinite(A) ? A : 0,
|
|
5635
5635
|
padding: C,
|
|
5636
|
-
justify: E ?
|
|
5637
|
-
alignItems: E ?
|
|
5638
|
-
fill:
|
|
5636
|
+
justify: E ? Bl[u.justifyContent] ?? "start" : "start",
|
|
5637
|
+
alignItems: E ? Hl[u.alignItems] ?? "start" : "start",
|
|
5638
|
+
fill: kn(u.backgroundColor),
|
|
5639
5639
|
radius: Oe(u.borderTopLeftRadius),
|
|
5640
5640
|
borderWidth: M,
|
|
5641
|
-
borderColor: M &&
|
|
5641
|
+
borderColor: M && kn(u.borderTopColor) || "#d1d5db",
|
|
5642
5642
|
// A fully transparent element reads as opacity "0", and 0 is falsy — an
|
|
5643
5643
|
// `|| 1` fallback here turned every hover-only affordance (a list row's
|
|
5644
5644
|
// reveal-on-hover action) into a permanently visible one.
|
|
5645
|
-
opacity:
|
|
5645
|
+
opacity: Vl(u.opacity),
|
|
5646
5646
|
hidden: l,
|
|
5647
5647
|
domTag: c.toLowerCase(),
|
|
5648
5648
|
domAttributes: Fn(t),
|
|
@@ -5650,17 +5650,17 @@ function Eo(t, e, n, r, i, s) {
|
|
|
5650
5650
|
...m
|
|
5651
5651
|
});
|
|
5652
5652
|
if (n >= a)
|
|
5653
|
-
return t.childNodes.length &&
|
|
5653
|
+
return t.childNodes.length && jn(r, {
|
|
5654
5654
|
severity: "warning",
|
|
5655
5655
|
stage: "capture",
|
|
5656
5656
|
code: "max-depth",
|
|
5657
5657
|
message: `DOM capture stopped descending at depth ${a}.`,
|
|
5658
5658
|
limit: a,
|
|
5659
5659
|
actual: n
|
|
5660
|
-
}),
|
|
5660
|
+
}), k;
|
|
5661
5661
|
for (const Pe of Array.from(t.childNodes)) {
|
|
5662
5662
|
if (r.count >= o) {
|
|
5663
|
-
|
|
5663
|
+
jn(r, {
|
|
5664
5664
|
severity: "warning",
|
|
5665
5665
|
stage: "capture",
|
|
5666
5666
|
code: "max-nodes",
|
|
@@ -5673,25 +5673,25 @@ function Eo(t, e, n, r, i, s) {
|
|
|
5673
5673
|
if (Pe.nodeType === Node.TEXT_NODE) {
|
|
5674
5674
|
const Me = (Pe.textContent ?? "").replace(/\s+/g, " ").trim();
|
|
5675
5675
|
if (!Me) continue;
|
|
5676
|
-
r.count += 1, r.maxDepth = Math.max(r.maxDepth, n + 1),
|
|
5676
|
+
r.count += 1, r.maxDepth = Math.max(r.maxDepth, n + 1), k.children.push(
|
|
5677
5677
|
Ft("text", {
|
|
5678
5678
|
name: "text",
|
|
5679
5679
|
text: Me,
|
|
5680
5680
|
fontSize: Oe(u.fontSize) || 14,
|
|
5681
5681
|
fontWeight: Number(u.fontWeight) || 400,
|
|
5682
|
-
color:
|
|
5682
|
+
color: kn(u.color) || "#191f28",
|
|
5683
5683
|
textAlign: ["center", "right"].includes(u.textAlign) ? u.textAlign : "left",
|
|
5684
5684
|
domTag: "#text"
|
|
5685
5685
|
})
|
|
5686
5686
|
);
|
|
5687
5687
|
} else if (Pe.nodeType === Node.ELEMENT_NODE) {
|
|
5688
5688
|
const Me = Eo(Pe, d, n + 1, r, i, s);
|
|
5689
|
-
Me &&
|
|
5689
|
+
Me && k.children.push(Me);
|
|
5690
5690
|
}
|
|
5691
5691
|
}
|
|
5692
|
-
return
|
|
5692
|
+
return k;
|
|
5693
5693
|
}
|
|
5694
|
-
function
|
|
5694
|
+
function jr(t, e, n = {}) {
|
|
5695
5695
|
const r = {
|
|
5696
5696
|
count: 0,
|
|
5697
5697
|
truncated: !1,
|
|
@@ -5716,17 +5716,81 @@ function Ri(t, e = {}) {
|
|
|
5716
5716
|
}
|
|
5717
5717
|
const r = t.contentWindow;
|
|
5718
5718
|
if (!(n != null && n.body) || !r) return null;
|
|
5719
|
-
const i =
|
|
5719
|
+
const i = jr(n.body, r, e);
|
|
5720
5720
|
return i ? (i.root.widthMode = "fill", i.root.name = "Page", i.root.fill || (i.root.fill = "#ffffff"), i) : null;
|
|
5721
5721
|
}
|
|
5722
|
-
const
|
|
5723
|
-
|
|
5722
|
+
const Ql = [
|
|
5723
|
+
"fill",
|
|
5724
|
+
"stroke",
|
|
5725
|
+
"clipPath",
|
|
5726
|
+
"mask",
|
|
5727
|
+
"filter",
|
|
5728
|
+
"markerStart",
|
|
5729
|
+
"markerMid",
|
|
5730
|
+
"markerEnd"
|
|
5731
|
+
], ed = [
|
|
5732
|
+
"aria-labelledby",
|
|
5733
|
+
"aria-describedby",
|
|
5734
|
+
"aria-controls",
|
|
5735
|
+
"aria-owns",
|
|
5736
|
+
"aria-details",
|
|
5737
|
+
"aria-errormessage",
|
|
5738
|
+
"aria-flowto",
|
|
5739
|
+
"headers"
|
|
5740
|
+
];
|
|
5741
|
+
function Li(t, e) {
|
|
5742
|
+
return t.replace(/url\((['"]?)#([^)'"]+)\1\)/g, (n, r, i) => {
|
|
5743
|
+
const s = e.get(i);
|
|
5744
|
+
return s ? `url(${r}#${s}${r})` : n;
|
|
5745
|
+
});
|
|
5746
|
+
}
|
|
5747
|
+
function td(t, e) {
|
|
5748
|
+
const n = /* @__PURE__ */ new Map(), r = `${e}__`, i = (o) => {
|
|
5749
|
+
var c;
|
|
5750
|
+
const a = (c = o.domAttributes) == null ? void 0 : c.id;
|
|
5751
|
+
a && !n.has(a) && !a.startsWith(r) && n.set(a, `${r}${a}`);
|
|
5752
|
+
for (const u of o.children ?? []) i(u);
|
|
5753
|
+
};
|
|
5754
|
+
if (i(t), n.size === 0) return 0;
|
|
5755
|
+
const s = (o) => {
|
|
5756
|
+
const a = o.domAttributes;
|
|
5757
|
+
if (a) {
|
|
5758
|
+
const u = a.id ? n.get(a.id) : void 0;
|
|
5759
|
+
u && (a.id = u);
|
|
5760
|
+
for (const l of Ql) {
|
|
5761
|
+
const d = a[l];
|
|
5762
|
+
d != null && d.includes("url(") && (a[l] = Li(d, n));
|
|
5763
|
+
}
|
|
5764
|
+
for (const l of ["href", "xlinkHref", "xlink:href"]) {
|
|
5765
|
+
const d = a[l];
|
|
5766
|
+
if (d != null && d.startsWith("#")) {
|
|
5767
|
+
const f = n.get(d.slice(1));
|
|
5768
|
+
f && (a[l] = `#${f}`);
|
|
5769
|
+
}
|
|
5770
|
+
}
|
|
5771
|
+
for (const l of ["htmlFor", "form", "list", ...ed]) {
|
|
5772
|
+
const d = a[l];
|
|
5773
|
+
if (!d) continue;
|
|
5774
|
+
const f = d.split(/\s+/).map((h) => n.get(h) ?? h).join(" ");
|
|
5775
|
+
f !== d && (a[l] = f);
|
|
5776
|
+
}
|
|
5777
|
+
}
|
|
5778
|
+
const c = o.domStyle;
|
|
5779
|
+
if (c)
|
|
5780
|
+
for (const [u, l] of Object.entries(c))
|
|
5781
|
+
typeof l == "string" && l.includes("url(") && (c[u] = Li(l, n));
|
|
5782
|
+
for (const u of o.children ?? []) s(u);
|
|
5783
|
+
};
|
|
5784
|
+
return s(t), n.size;
|
|
5785
|
+
}
|
|
5786
|
+
const nd = 64;
|
|
5787
|
+
function rd(t) {
|
|
5724
5788
|
const e = t && t.nodeType === 1 ? t : (t == null ? void 0 : t.parentElement) ?? null;
|
|
5725
5789
|
if (!e) return "(text)";
|
|
5726
5790
|
const n = String(e.tagName || "").toLowerCase(), r = e.id ? `#${e.id}` : "", i = String(e.getAttribute("class") ?? "").split(/\s+/).filter(Boolean).slice(0, 2).map((o) => `.${o}`).join(""), s = e.getAttribute("data-testid");
|
|
5727
5791
|
return `${n}${r}${i}${s ? `[data-testid=${s}]` : ""}`;
|
|
5728
5792
|
}
|
|
5729
|
-
const
|
|
5793
|
+
const ki = "__PYGMALION_DOCUMENT_STABILITY__", id = 'dialog[open],[role="dialog"],[role="alertdialog"],[aria-modal="true"]';
|
|
5730
5794
|
function xo(t, e) {
|
|
5731
5795
|
var o;
|
|
5732
5796
|
const n = t.defaultView;
|
|
@@ -5738,7 +5802,7 @@ function xo(t, e) {
|
|
|
5738
5802
|
revision: 0,
|
|
5739
5803
|
churn: /* @__PURE__ */ new Map()
|
|
5740
5804
|
};
|
|
5741
|
-
const r = n[
|
|
5805
|
+
const r = n[ki];
|
|
5742
5806
|
if (r && r.document === t && r.selectorKey === e)
|
|
5743
5807
|
return r;
|
|
5744
5808
|
(o = r == null ? void 0 : r.observer) == null || o.disconnect();
|
|
@@ -5763,8 +5827,8 @@ function xo(t, e) {
|
|
|
5763
5827
|
if (!(c.length > 0 && c.every((u) => s(u.target)))) {
|
|
5764
5828
|
for (const u of c) {
|
|
5765
5829
|
if (s(u.target)) continue;
|
|
5766
|
-
const l =
|
|
5767
|
-
d != null ? i.churn.set(l, d + 1) : i.churn.size <
|
|
5830
|
+
const l = rd(u.target), d = i.churn.get(l);
|
|
5831
|
+
d != null ? i.churn.set(l, d + 1) : i.churn.size < nd ? i.churn.set(l, 1) : i.churn.set("(other)", (i.churn.get("(other)") ?? 0) + 1);
|
|
5768
5832
|
}
|
|
5769
5833
|
i.revision += 1;
|
|
5770
5834
|
}
|
|
@@ -5776,10 +5840,10 @@ function xo(t, e) {
|
|
|
5776
5840
|
subtree: !0
|
|
5777
5841
|
});
|
|
5778
5842
|
}
|
|
5779
|
-
return n[
|
|
5843
|
+
return n[ki] = i, i;
|
|
5780
5844
|
}
|
|
5781
|
-
function
|
|
5782
|
-
const n = e.join(","), r = xo(t, n), i = t.defaultView, s = t.documentElement, o = t.body, a = [...t.querySelectorAll(
|
|
5845
|
+
function sd(t, e = []) {
|
|
5846
|
+
const n = e.join(","), r = xo(t, n), i = t.defaultView, s = t.documentElement, o = t.body, a = [...t.querySelectorAll(id)].filter((c) => {
|
|
5783
5847
|
const u = i == null ? void 0 : i.getComputedStyle(c), l = c.getBoundingClientRect();
|
|
5784
5848
|
return !c.hasAttribute("hidden") && c.getAttribute("aria-hidden") !== "true" && (u == null ? void 0 : u.display) !== "none" && (u == null ? void 0 : u.visibility) !== "hidden" && Number.parseFloat((u == null ? void 0 : u.opacity) || "1") !== 0 && l.width > 0 && l.height > 0;
|
|
5785
5849
|
}).map((c) => {
|
|
@@ -5804,10 +5868,10 @@ function Ql(t, e = []) {
|
|
|
5804
5868
|
overlays: a
|
|
5805
5869
|
});
|
|
5806
5870
|
}
|
|
5807
|
-
function
|
|
5871
|
+
function od(t, e = [], n = 6) {
|
|
5808
5872
|
return [...xo(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 }));
|
|
5809
5873
|
}
|
|
5810
|
-
async function
|
|
5874
|
+
async function ad(t, {
|
|
5811
5875
|
volatileSelectors: e = [],
|
|
5812
5876
|
requiredStableSamples: n = 3,
|
|
5813
5877
|
intervalMs: r = 100,
|
|
@@ -5827,7 +5891,7 @@ async function td(t, {
|
|
|
5827
5891
|
let c = "", u = 0, l = 0;
|
|
5828
5892
|
const d = Math.max(1, Math.ceil(s / r));
|
|
5829
5893
|
for (let p = 0; p < d; p += 1) {
|
|
5830
|
-
const m =
|
|
5894
|
+
const m = sd(t, e);
|
|
5831
5895
|
if (m === c ? u += 1 : u = 0, c = m, u >= n && l >= i)
|
|
5832
5896
|
return !0;
|
|
5833
5897
|
await a(r), l += r;
|
|
@@ -5837,7 +5901,7 @@ async function td(t, {
|
|
|
5837
5901
|
function ji(t) {
|
|
5838
5902
|
return (t ?? "").replace(/\s+/g, " ").trim();
|
|
5839
5903
|
}
|
|
5840
|
-
function
|
|
5904
|
+
function cd(t, e) {
|
|
5841
5905
|
const n = e.selector ?? 'button,a,input,textarea,select,[role="button"],[role="tab"],[role="menuitem"],[role="option"]';
|
|
5842
5906
|
let r;
|
|
5843
5907
|
try {
|
|
@@ -5856,7 +5920,7 @@ function nd(t, e) {
|
|
|
5856
5920
|
(a) => e.exact ? a === i : a.includes(i)
|
|
5857
5921
|
));
|
|
5858
5922
|
}
|
|
5859
|
-
function
|
|
5923
|
+
function ud(t) {
|
|
5860
5924
|
const e = t.ownerDocument, n = t.getBoundingClientRect(), r = n.left + n.width / 2, i = n.top + n.height / 2;
|
|
5861
5925
|
let s = null;
|
|
5862
5926
|
try {
|
|
@@ -5866,8 +5930,8 @@ function rd(t) {
|
|
|
5866
5930
|
}
|
|
5867
5931
|
return { receiver: s && t.contains(s) ? s : t, x: r, y: i };
|
|
5868
5932
|
}
|
|
5869
|
-
function
|
|
5870
|
-
const { receiver: n, x: r, y: i } =
|
|
5933
|
+
function Fi(t, e) {
|
|
5934
|
+
const { receiver: n, x: r, y: i } = ud(t), s = {
|
|
5871
5935
|
bubbles: !0,
|
|
5872
5936
|
cancelable: !0,
|
|
5873
5937
|
composed: !0,
|
|
@@ -5889,10 +5953,10 @@ function ki(t, e) {
|
|
|
5889
5953
|
a && n.dispatchEvent(new a(d, { ...s, buttons: f }));
|
|
5890
5954
|
};
|
|
5891
5955
|
c("pointerover", 0), u("mouseover", 0), c("pointermove", 0), u("mousemove", 0), c("pointerdown", 1), u("mousedown", 1);
|
|
5892
|
-
const l =
|
|
5893
|
-
typeof l.focus == "function" && l.focus({ preventScroll: !0 }), c("pointerup", 0), u("mouseup", 0),
|
|
5956
|
+
const l = zi(n, t);
|
|
5957
|
+
typeof l.focus == "function" && l.focus({ preventScroll: !0 }), c("pointerup", 0), u("mouseup", 0), zi(n, t).click();
|
|
5894
5958
|
}
|
|
5895
|
-
function
|
|
5959
|
+
function zi(t, e) {
|
|
5896
5960
|
let n = t;
|
|
5897
5961
|
for (; n; ) {
|
|
5898
5962
|
if (typeof n.click == "function")
|
|
@@ -5902,7 +5966,7 @@ function Fi(t, e) {
|
|
|
5902
5966
|
}
|
|
5903
5967
|
return e;
|
|
5904
5968
|
}
|
|
5905
|
-
function
|
|
5969
|
+
function ld(t, e) {
|
|
5906
5970
|
var i;
|
|
5907
5971
|
const n = t instanceof t.ownerDocument.defaultView.HTMLTextAreaElement ? t.ownerDocument.defaultView.HTMLTextAreaElement.prototype : t.ownerDocument.defaultView.HTMLInputElement.prototype, r = (i = Object.getOwnPropertyDescriptor(n, "value")) == null ? void 0 : i.set;
|
|
5908
5972
|
r == null || r.call(t, e), t.dispatchEvent(new t.ownerDocument.defaultView.Event("input", { bubbles: !0 })), t.dispatchEvent(new t.ownerDocument.defaultView.Event("change", { bubbles: !0 }));
|
|
@@ -5938,7 +6002,7 @@ function En(t) {
|
|
|
5938
6002
|
const r = t.getBoundingClientRect();
|
|
5939
6003
|
return r.width > 0 && r.height > 0;
|
|
5940
6004
|
}
|
|
5941
|
-
function
|
|
6005
|
+
function Vi(t) {
|
|
5942
6006
|
if ("disabled" in t && t.disabled) return !1;
|
|
5943
6007
|
try {
|
|
5944
6008
|
if (t.matches(":disabled")) return !1;
|
|
@@ -5952,7 +6016,7 @@ function zi(t) {
|
|
|
5952
6016
|
}
|
|
5953
6017
|
return !0;
|
|
5954
6018
|
}
|
|
5955
|
-
function
|
|
6019
|
+
function dd(t) {
|
|
5956
6020
|
const e = t.ownerDocument, n = e.defaultView;
|
|
5957
6021
|
if (!n || typeof e.elementFromPoint != "function") return !1;
|
|
5958
6022
|
const r = t.getBoundingClientRect(), i = r.left + r.width / 2, s = r.top + r.height / 2;
|
|
@@ -5961,10 +6025,10 @@ function sd(t) {
|
|
|
5961
6025
|
const o = e.elementFromPoint(i, s);
|
|
5962
6026
|
return !!(o && (o === t || t.contains(o)));
|
|
5963
6027
|
}
|
|
5964
|
-
function
|
|
5965
|
-
return e === "focus" ? Fr(t) &&
|
|
6028
|
+
function fd(t, e) {
|
|
6029
|
+
return e === "focus" ? Fr(t) && Vi(t) && "focus" in t : !(!En(t) || !Vi(t) || !dd(t) || e === "fill" && "readOnly" in t && t.readOnly);
|
|
5966
6030
|
}
|
|
5967
|
-
async function
|
|
6031
|
+
async function Bi(t, e, n) {
|
|
5968
6032
|
const r = Date.now(), i = e.timeoutMs ?? 5e3;
|
|
5969
6033
|
do {
|
|
5970
6034
|
let s = null;
|
|
@@ -5973,8 +6037,8 @@ async function Vi(t, e, n) {
|
|
|
5973
6037
|
} catch {
|
|
5974
6038
|
return null;
|
|
5975
6039
|
}
|
|
5976
|
-
const a = (s ?
|
|
5977
|
-
if (a && (n === "attached" ? Fr(a) : n === "visible" ? En(a) :
|
|
6040
|
+
const a = (s ? cd(s, e) : [])[e.index ?? 0];
|
|
6041
|
+
if (a && (n === "attached" ? Fr(a) : n === "visible" ? En(a) : fd(a, e.action)))
|
|
5978
6042
|
return a;
|
|
5979
6043
|
const c = i - (Date.now() - r);
|
|
5980
6044
|
if (c <= 0) break;
|
|
@@ -5986,7 +6050,7 @@ async function hr(t, e) {
|
|
|
5986
6050
|
let n = 0;
|
|
5987
6051
|
for (const r of e) {
|
|
5988
6052
|
if (r.action === "wait") {
|
|
5989
|
-
if ((r.selector || r.text) && !await
|
|
6053
|
+
if ((r.selector || r.text) && !await Bi(
|
|
5990
6054
|
t,
|
|
5991
6055
|
r,
|
|
5992
6056
|
r.waitState ?? "visible"
|
|
@@ -6021,7 +6085,7 @@ async function hr(t, e) {
|
|
|
6021
6085
|
n += 1, await at(t, r.settleMs ?? 50);
|
|
6022
6086
|
continue;
|
|
6023
6087
|
}
|
|
6024
|
-
const i = await
|
|
6088
|
+
const i = await Bi(t, r, "actionable");
|
|
6025
6089
|
if (!i) {
|
|
6026
6090
|
if (r.optional) continue;
|
|
6027
6091
|
return {
|
|
@@ -6042,7 +6106,7 @@ async function hr(t, e) {
|
|
|
6042
6106
|
error: `"${r.label}"Failed to read the screen context for the step.`
|
|
6043
6107
|
};
|
|
6044
6108
|
if (r.action === "click")
|
|
6045
|
-
|
|
6109
|
+
Fi(i, s);
|
|
6046
6110
|
else if (r.action === "focus")
|
|
6047
6111
|
i.focus({ preventScroll: !0 });
|
|
6048
6112
|
else if (r.action === "fill") {
|
|
@@ -6054,7 +6118,7 @@ async function hr(t, e) {
|
|
|
6054
6118
|
failedLabel: r.label,
|
|
6055
6119
|
error: `"${r.label}"Step is not an input element.`
|
|
6056
6120
|
};
|
|
6057
|
-
|
|
6121
|
+
ld(i, r.value ?? "");
|
|
6058
6122
|
} else if (r.action === "check") {
|
|
6059
6123
|
if (!(i instanceof s.HTMLInputElement))
|
|
6060
6124
|
return {
|
|
@@ -6064,7 +6128,7 @@ async function hr(t, e) {
|
|
|
6064
6128
|
failedLabel: r.label,
|
|
6065
6129
|
error: `"${r.label}"The step is not a checked element.`
|
|
6066
6130
|
};
|
|
6067
|
-
i.checked ||
|
|
6131
|
+
i.checked || Fi(i, s);
|
|
6068
6132
|
} else {
|
|
6069
6133
|
const o = r.key ?? r.value ?? "Enter";
|
|
6070
6134
|
i.dispatchEvent(new s.KeyboardEvent("keydown", { key: o, bubbles: !0 })), i.dispatchEvent(new s.KeyboardEvent("keyup", { key: o, bubbles: !0 }));
|
|
@@ -6073,25 +6137,36 @@ async function hr(t, e) {
|
|
|
6073
6137
|
}
|
|
6074
6138
|
return { complete: !0, completed: n, total: e.length };
|
|
6075
6139
|
}
|
|
6076
|
-
const
|
|
6140
|
+
const jh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6077
6141
|
__proto__: null,
|
|
6078
6142
|
elementVisible: En,
|
|
6079
6143
|
runScreenInteractions: hr,
|
|
6080
6144
|
settleScreen: at
|
|
6081
6145
|
}, Symbol.toStringTag, { value: "Module" })), nt = ["icons", "design-tokens", "atoms", "components", "screens"];
|
|
6082
|
-
function
|
|
6146
|
+
function hd(t) {
|
|
6083
6147
|
if (!(!t || t.complete))
|
|
6084
6148
|
throw new Error(
|
|
6085
6149
|
t.error ?? `The screen recipe did not complete${t.failedLabel ? ` at "${t.failedLabel}"` : ""}.`
|
|
6086
6150
|
);
|
|
6087
6151
|
}
|
|
6088
|
-
|
|
6152
|
+
function Ao(t, e, n) {
|
|
6153
|
+
const r = No.screens;
|
|
6154
|
+
if (!t.section || e === "single" || e === void 0)
|
|
6155
|
+
return r;
|
|
6156
|
+
const i = `${r} · ${t.section}`;
|
|
6157
|
+
if (e === "section" || !t.lane) return i;
|
|
6158
|
+
const o = (n == null ? void 0 : n.find(
|
|
6159
|
+
(a) => a.section === t.section && a.id === t.lane
|
|
6160
|
+
)) ?? nl(t.section, t.lane);
|
|
6161
|
+
return `${i} · ${(o == null ? void 0 : o.label) ?? t.lane}`;
|
|
6162
|
+
}
|
|
6163
|
+
const No = {
|
|
6089
6164
|
icons: "🎨 Icons",
|
|
6090
6165
|
"design-tokens": "🎨 Design Tokens",
|
|
6091
6166
|
atoms: "🧩 Atoms",
|
|
6092
6167
|
components: "🧩 Components",
|
|
6093
6168
|
screens: "🖥️ Screens"
|
|
6094
|
-
},
|
|
6169
|
+
}, pd = {
|
|
6095
6170
|
instanceMode: "expand",
|
|
6096
6171
|
mediaMode: "layers",
|
|
6097
6172
|
includeHidden: !0,
|
|
@@ -6105,7 +6180,7 @@ function Re(t) {
|
|
|
6105
6180
|
e.has(r) && n.add(r), e.add(r);
|
|
6106
6181
|
return [...n];
|
|
6107
6182
|
}
|
|
6108
|
-
function
|
|
6183
|
+
function Io(t) {
|
|
6109
6184
|
const e = t.map((r) => r.id.trim()), n = [
|
|
6110
6185
|
...Re(e).map((r) => `Duplicate viewport ID: ${r}`)
|
|
6111
6186
|
];
|
|
@@ -6116,8 +6191,8 @@ function Ao(t) {
|
|
|
6116
6191
|
${n.join(`
|
|
6117
6192
|
`)}`);
|
|
6118
6193
|
}
|
|
6119
|
-
function
|
|
6120
|
-
|
|
6194
|
+
function md(t, e, n = {}) {
|
|
6195
|
+
Io(e);
|
|
6121
6196
|
const r = e.flatMap(
|
|
6122
6197
|
(s) => t.filter((o) => {
|
|
6123
6198
|
var a;
|
|
@@ -6148,9 +6223,9 @@ function ud(t, e, n = {}) {
|
|
|
6148
6223
|
);
|
|
6149
6224
|
return r;
|
|
6150
6225
|
}
|
|
6151
|
-
function
|
|
6226
|
+
function gd(t, e, n = {}) {
|
|
6152
6227
|
var l, d, f, h, v;
|
|
6153
|
-
if (
|
|
6228
|
+
if (Io(e), e.length === 0)
|
|
6154
6229
|
return {
|
|
6155
6230
|
...t,
|
|
6156
6231
|
assets: t.assets.map((p) => ({ ...p })),
|
|
@@ -6202,7 +6277,7 @@ function ld(t, e, n = {}) {
|
|
|
6202
6277
|
expectedCount: s.length
|
|
6203
6278
|
};
|
|
6204
6279
|
}
|
|
6205
|
-
function
|
|
6280
|
+
function vd({
|
|
6206
6281
|
cases: t,
|
|
6207
6282
|
scenarios: e,
|
|
6208
6283
|
behaviorScenarios: n = [],
|
|
@@ -6214,7 +6289,7 @@ function dd({
|
|
|
6214
6289
|
var E, S;
|
|
6215
6290
|
return {
|
|
6216
6291
|
...g,
|
|
6217
|
-
preset: r != null && r.preset || g.preset ?
|
|
6292
|
+
preset: r != null && r.preset || g.preset ? Mo(r == null ? void 0 : r.preset, g.preset) : void 0,
|
|
6218
6293
|
assertions: (E = r == null ? void 0 : r.assertions) != null && E.length || (S = g.assertions) != null && S.length ? [
|
|
6219
6294
|
...((r == null ? void 0 : r.assertions) ?? []).map(Ki),
|
|
6220
6295
|
...(g.assertions ?? []).map(Ki)
|
|
@@ -6325,18 +6400,18 @@ function Ot(t) {
|
|
|
6325
6400
|
function Hi(t) {
|
|
6326
6401
|
return t !== null && typeof t == "object" && !Array.isArray(t);
|
|
6327
6402
|
}
|
|
6328
|
-
function
|
|
6403
|
+
function Po(t, e) {
|
|
6329
6404
|
if (!Hi(t) || !Hi(e))
|
|
6330
6405
|
return JSON.parse(JSON.stringify(e));
|
|
6331
6406
|
const n = {
|
|
6332
6407
|
...Ot(t)
|
|
6333
6408
|
};
|
|
6334
6409
|
for (const [r, i] of Object.entries(e))
|
|
6335
|
-
n[r] = r in n ?
|
|
6410
|
+
n[r] = r in n ? Po(n[r], i) : JSON.parse(JSON.stringify(i));
|
|
6336
6411
|
return n;
|
|
6337
6412
|
}
|
|
6338
|
-
function
|
|
6339
|
-
return t ? e ?
|
|
6413
|
+
function Mo(t, e) {
|
|
6414
|
+
return t ? e ? Po(t, e) : Ot(t) : e ? Ot(e) : {};
|
|
6340
6415
|
}
|
|
6341
6416
|
function Ki(t) {
|
|
6342
6417
|
return {
|
|
@@ -6344,16 +6419,16 @@ function Ki(t) {
|
|
|
6344
6419
|
attribute: t.attribute ? { ...t.attribute } : void 0
|
|
6345
6420
|
};
|
|
6346
6421
|
}
|
|
6347
|
-
function
|
|
6422
|
+
function bd(t = 0) {
|
|
6348
6423
|
return { complete: t === 0, completed: 0, total: t };
|
|
6349
6424
|
}
|
|
6350
|
-
function
|
|
6425
|
+
function yd(t = 0) {
|
|
6351
6426
|
return { complete: t === 0, completed: 0, total: t, failures: [] };
|
|
6352
6427
|
}
|
|
6353
|
-
function
|
|
6428
|
+
function _d(t) {
|
|
6354
6429
|
return "value" in t ? pr(String(t.value ?? "")) : pr(t.textContent);
|
|
6355
6430
|
}
|
|
6356
|
-
function
|
|
6431
|
+
function Sd(t, e, n) {
|
|
6357
6432
|
let r;
|
|
6358
6433
|
try {
|
|
6359
6434
|
r = [...t.querySelectorAll(e.selector)];
|
|
@@ -6381,7 +6456,7 @@ function md(t, e, n) {
|
|
|
6381
6456
|
};
|
|
6382
6457
|
if (!i) return null;
|
|
6383
6458
|
if (e.text != null) {
|
|
6384
|
-
const o = pr(e.text), a =
|
|
6459
|
+
const o = pr(e.text), a = _d(i);
|
|
6385
6460
|
if (!(e.exact ? a === o : a.includes(o)))
|
|
6386
6461
|
return {
|
|
6387
6462
|
stage: "assertion",
|
|
@@ -6424,7 +6499,7 @@ function md(t, e, n) {
|
|
|
6424
6499
|
}
|
|
6425
6500
|
return null;
|
|
6426
6501
|
}
|
|
6427
|
-
async function
|
|
6502
|
+
async function wd(t, e) {
|
|
6428
6503
|
const n = [];
|
|
6429
6504
|
let r = 0;
|
|
6430
6505
|
for (const [i, s] of e.entries()) {
|
|
@@ -6436,7 +6511,7 @@ async function gd(t, e) {
|
|
|
6436
6511
|
u = t.contentDocument;
|
|
6437
6512
|
} catch {
|
|
6438
6513
|
}
|
|
6439
|
-
if (c = u ?
|
|
6514
|
+
if (c = u ? Sd(u, s, i) : {
|
|
6440
6515
|
stage: "assertion",
|
|
6441
6516
|
code: "existence_mismatch",
|
|
6442
6517
|
label: s.label,
|
|
@@ -6457,9 +6532,9 @@ async function gd(t, e) {
|
|
|
6457
6532
|
failures: n
|
|
6458
6533
|
};
|
|
6459
6534
|
}
|
|
6460
|
-
function
|
|
6535
|
+
function Od(t, e = {}) {
|
|
6461
6536
|
const n = t.registry, r = [...t.tokens], i = Gs(n), o = {
|
|
6462
|
-
...
|
|
6537
|
+
...pd,
|
|
6463
6538
|
collapseInstance: (u) => {
|
|
6464
6539
|
const l = n[u.name];
|
|
6465
6540
|
return l != null && l.collapsible === !0 && Object.keys(l.props ?? {}).length > 0 && l.children !== "nodes";
|
|
@@ -6515,7 +6590,11 @@ ${u.join(`
|
|
|
6515
6590
|
getAssets: (u) => (u ? t.collections[u].assets : nt.flatMap((l) => t.collections[l].assets)).map((l) => ({ ...l })),
|
|
6516
6591
|
getInitialPages: () => nt.flatMap(
|
|
6517
6592
|
(u) => t.collections[u].pages.map((l) => {
|
|
6518
|
-
const d = t.collections[u].assets.filter((h) => h.pageId === l.id), f = u === "screens"
|
|
6593
|
+
const d = t.collections[u].assets.filter((h) => h.pageId === l.id), f = u === "screens" ? Ao(
|
|
6594
|
+
l,
|
|
6595
|
+
e.screensCanvasPartition,
|
|
6596
|
+
e.screenLanes
|
|
6597
|
+
) : No[u];
|
|
6519
6598
|
return {
|
|
6520
6599
|
name: l.name,
|
|
6521
6600
|
canvas: f,
|
|
@@ -6559,7 +6638,7 @@ ${u.join(`
|
|
|
6559
6638
|
),
|
|
6560
6639
|
getCoverage: a,
|
|
6561
6640
|
assertComplete: c,
|
|
6562
|
-
captureElement: (u, l = u.ownerDocument.defaultView ?? window, d = {}) =>
|
|
6641
|
+
captureElement: (u, l = u.ownerDocument.defaultView ?? window, d = {}) => jr(u, l, {
|
|
6563
6642
|
...o,
|
|
6564
6643
|
resolveInstance: i,
|
|
6565
6644
|
...d
|
|
@@ -6592,15 +6671,15 @@ ${u.join(`
|
|
|
6592
6671
|
A.observe(p.body, { childList: !0, subtree: !0, attributes: !0, characterData: !0 });
|
|
6593
6672
|
try {
|
|
6594
6673
|
await new Promise((M) => {
|
|
6595
|
-
const
|
|
6674
|
+
const k = () => {
|
|
6596
6675
|
const Se = Date.now(), J = p.body.querySelectorAll("*").length;
|
|
6597
6676
|
if (J !== E && (E = J, g = Se), J >= h && Se - g >= d || Se - w >= f) {
|
|
6598
6677
|
M();
|
|
6599
6678
|
return;
|
|
6600
6679
|
}
|
|
6601
|
-
m.setTimeout(
|
|
6680
|
+
m.setTimeout(k, 100);
|
|
6602
6681
|
};
|
|
6603
|
-
m.setTimeout(
|
|
6682
|
+
m.setTimeout(k, 100);
|
|
6604
6683
|
});
|
|
6605
6684
|
} finally {
|
|
6606
6685
|
A.disconnect();
|
|
@@ -6651,13 +6730,13 @@ ${u.join(`
|
|
|
6651
6730
|
message: `An error occurred while applying the screen preset:${String(S).slice(0, 160)}`
|
|
6652
6731
|
});
|
|
6653
6732
|
}
|
|
6654
|
-
let h =
|
|
6733
|
+
let h = bd(((w = l.interactions) == null ? void 0 : w.length) ?? 0), v = yd(((g = l.assertions) == null ? void 0 : g.length) ?? 0), p;
|
|
6655
6734
|
if (d.length === 0 && (h = await hr(u, l.interactions ?? []), h.complete || d.push({
|
|
6656
6735
|
stage: "interaction",
|
|
6657
6736
|
code: "interaction_failed",
|
|
6658
6737
|
label: h.failedLabel,
|
|
6659
6738
|
message: h.error ?? "Couldn't reproduce the user flow."
|
|
6660
|
-
})), d.length === 0 && (v = await
|
|
6739
|
+
})), d.length === 0 && (v = await wd(u, l.assertions ?? []), d.push(...v.failures)), d.length === 0) {
|
|
6661
6740
|
let S = null;
|
|
6662
6741
|
try {
|
|
6663
6742
|
S = u.contentDocument;
|
|
@@ -6665,10 +6744,10 @@ ${u.join(`
|
|
|
6665
6744
|
S = null;
|
|
6666
6745
|
}
|
|
6667
6746
|
if (S) {
|
|
6668
|
-
const A = await
|
|
6747
|
+
const A = await ad(S, e.stability);
|
|
6669
6748
|
p = {
|
|
6670
6749
|
stable: A,
|
|
6671
|
-
churn: A ? [] :
|
|
6750
|
+
churn: A ? [] : od(S, (E = e.stability) == null ? void 0 : E.volatileSelectors)
|
|
6672
6751
|
};
|
|
6673
6752
|
}
|
|
6674
6753
|
}
|
|
@@ -6686,26 +6765,27 @@ ${u.join(`
|
|
|
6686
6765
|
}
|
|
6687
6766
|
};
|
|
6688
6767
|
}
|
|
6689
|
-
let
|
|
6690
|
-
function
|
|
6691
|
-
|
|
6768
|
+
let Co = null;
|
|
6769
|
+
function Ed(t) {
|
|
6770
|
+
Co = t;
|
|
6692
6771
|
}
|
|
6693
6772
|
function un() {
|
|
6694
|
-
return
|
|
6773
|
+
return Co;
|
|
6695
6774
|
}
|
|
6696
|
-
const
|
|
6775
|
+
const Fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6697
6776
|
__proto__: null,
|
|
6698
6777
|
DESIGN_IMPORT_KINDS: nt,
|
|
6699
|
-
assertScreenCaptureComplete:
|
|
6700
|
-
createDesignImportController:
|
|
6701
|
-
createDesignScreenCollection:
|
|
6702
|
-
expandDesignScreenCasesViewports:
|
|
6703
|
-
expandDesignScreenCollectionViewports:
|
|
6778
|
+
assertScreenCaptureComplete: hd,
|
|
6779
|
+
createDesignImportController: Od,
|
|
6780
|
+
createDesignScreenCollection: vd,
|
|
6781
|
+
expandDesignScreenCasesViewports: md,
|
|
6782
|
+
expandDesignScreenCollectionViewports: gd,
|
|
6704
6783
|
getDesignImportController: un,
|
|
6705
|
-
mergeScreenPresets:
|
|
6706
|
-
|
|
6784
|
+
mergeScreenPresets: Mo,
|
|
6785
|
+
screensCanvasName: Ao,
|
|
6786
|
+
setDesignImportController: Ed
|
|
6707
6787
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6708
|
-
function
|
|
6788
|
+
function To() {
|
|
6709
6789
|
return (t, e) => {
|
|
6710
6790
|
const n = t.getAttribute("data-pygmalion-source-component"), r = t.getAttribute("data-pygmalion-source-component-name");
|
|
6711
6791
|
return !n || !r || e != null && e.has(r) ? null : {
|
|
@@ -6725,16 +6805,16 @@ function Mo() {
|
|
|
6725
6805
|
};
|
|
6726
6806
|
};
|
|
6727
6807
|
}
|
|
6728
|
-
function
|
|
6808
|
+
function $o(t) {
|
|
6729
6809
|
const e = t.getAttribute("data-pygmalion-source-style");
|
|
6730
6810
|
if (e) return e;
|
|
6731
6811
|
const n = On(t);
|
|
6732
6812
|
return n ? `${n.file}#${n.localName}` : "";
|
|
6733
6813
|
}
|
|
6734
|
-
function
|
|
6814
|
+
function Do(t) {
|
|
6735
6815
|
return t.querySelector('body[data-pygmalion-source-stamped="1"]') != null;
|
|
6736
6816
|
}
|
|
6737
|
-
function
|
|
6817
|
+
function xd(t) {
|
|
6738
6818
|
for (const e of Array.from(t.children))
|
|
6739
6819
|
if (e.tagName.toLowerCase() === "html") {
|
|
6740
6820
|
for (const n of Array.from(e.children))
|
|
@@ -6742,14 +6822,14 @@ function yd(t) {
|
|
|
6742
6822
|
}
|
|
6743
6823
|
return null;
|
|
6744
6824
|
}
|
|
6745
|
-
function
|
|
6825
|
+
function Ad(t) {
|
|
6746
6826
|
var e;
|
|
6747
6827
|
return t.bodyAttributes != null ? t.bodyAttributes.includes("data-pygmalion-source-stamped") : ((e = t.snapshotHtml) == null ? void 0 : e.includes("data-pygmalion-source-stamped")) ?? !1;
|
|
6748
6828
|
}
|
|
6749
|
-
function
|
|
6829
|
+
function Ro(t) {
|
|
6750
6830
|
return t < 12 ? 1 : Math.max(3, Math.floor(t * 0.25));
|
|
6751
6831
|
}
|
|
6752
|
-
function
|
|
6832
|
+
function Nd(t, e = 600) {
|
|
6753
6833
|
if (!t) return 0;
|
|
6754
6834
|
let n = 0;
|
|
6755
6835
|
for (let r = t.indexOf("<"); r !== -1 && n < e; r = t.indexOf("<", r + 1)) {
|
|
@@ -6758,7 +6838,7 @@ function Sd(t, e = 600) {
|
|
|
6758
6838
|
}
|
|
6759
6839
|
return n;
|
|
6760
6840
|
}
|
|
6761
|
-
function
|
|
6841
|
+
function Id(t, e = 600) {
|
|
6762
6842
|
let n = 0;
|
|
6763
6843
|
const r = [t];
|
|
6764
6844
|
for (; r.length > 0 && n < e; ) {
|
|
@@ -6767,9 +6847,9 @@ function wd(t, e = 600) {
|
|
|
6767
6847
|
}
|
|
6768
6848
|
return n;
|
|
6769
6849
|
}
|
|
6770
|
-
function
|
|
6771
|
-
const n =
|
|
6772
|
-
if (!n || !
|
|
6850
|
+
function Lo(t, e = {}) {
|
|
6851
|
+
const n = xd(t.root);
|
|
6852
|
+
if (!n || !Do(t.root)) return null;
|
|
6773
6853
|
const r = n.ownerDocument.defaultView;
|
|
6774
6854
|
if (!r || typeof n.checkVisibility == "function" && !n.checkVisibility({ contentVisibilityAuto: !0 }))
|
|
6775
6855
|
return null;
|
|
@@ -6777,16 +6857,16 @@ function Do(t, e = {}) {
|
|
|
6777
6857
|
if (!i) return null;
|
|
6778
6858
|
const s = i.captureElement(n, r, {
|
|
6779
6859
|
...e,
|
|
6780
|
-
resolveInstance:
|
|
6781
|
-
resolveSourceStyle:
|
|
6860
|
+
resolveInstance: To(),
|
|
6861
|
+
resolveSourceStyle: $o
|
|
6782
6862
|
});
|
|
6783
|
-
return !s || s.count <
|
|
6863
|
+
return !s || s.count < Ro(Id(n)) ? null : (s.root.widthMode = "fill", s.root.name = "Page", s.root.fill || (s.root.fill = "#ffffff"), s);
|
|
6784
6864
|
}
|
|
6785
|
-
function
|
|
6865
|
+
function Pd(t) {
|
|
6786
6866
|
return !t.editedSinceImport;
|
|
6787
6867
|
}
|
|
6788
6868
|
const Ut = /* @__PURE__ */ new Map();
|
|
6789
|
-
function
|
|
6869
|
+
function Md(t, e, n = {}) {
|
|
6790
6870
|
const r = {
|
|
6791
6871
|
handle: e,
|
|
6792
6872
|
stale: n.stale === !0
|
|
@@ -6795,22 +6875,22 @@ function Ed(t, e, n = {}) {
|
|
|
6795
6875
|
Ut.get(t) === r && Ut.delete(t);
|
|
6796
6876
|
};
|
|
6797
6877
|
}
|
|
6798
|
-
function
|
|
6878
|
+
function ko(t) {
|
|
6799
6879
|
const e = Ut.get(t);
|
|
6800
6880
|
return !e || e.stale ? null : e.handle;
|
|
6801
6881
|
}
|
|
6802
|
-
const
|
|
6882
|
+
const zh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6803
6883
|
__proto__: null,
|
|
6804
|
-
countMarkupElements:
|
|
6805
|
-
createStampedInstanceResolver:
|
|
6806
|
-
frozenSnapshotStamped:
|
|
6807
|
-
getMountedShadowPreviewHandle:
|
|
6808
|
-
importCountFloor:
|
|
6809
|
-
importDomFromShadowPreview:
|
|
6810
|
-
isStampedFrozenPreview:
|
|
6811
|
-
registerMountedShadowPreview:
|
|
6812
|
-
resolveStampedSourceStyle:
|
|
6813
|
-
shouldSwapLiveImport:
|
|
6884
|
+
countMarkupElements: Nd,
|
|
6885
|
+
createStampedInstanceResolver: To,
|
|
6886
|
+
frozenSnapshotStamped: Ad,
|
|
6887
|
+
getMountedShadowPreviewHandle: ko,
|
|
6888
|
+
importCountFloor: Ro,
|
|
6889
|
+
importDomFromShadowPreview: Lo,
|
|
6890
|
+
isStampedFrozenPreview: Do,
|
|
6891
|
+
registerMountedShadowPreview: Md,
|
|
6892
|
+
resolveStampedSourceStyle: $o,
|
|
6893
|
+
shouldSwapLiveImport: Pd
|
|
6814
6894
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6815
6895
|
let Et = "";
|
|
6816
6896
|
const mr = /* @__PURE__ */ new Set();
|
|
@@ -6818,128 +6898,128 @@ let ln = "";
|
|
|
6818
6898
|
const dn = /* @__PURE__ */ new Set();
|
|
6819
6899
|
let gr = "";
|
|
6820
6900
|
const vr = /* @__PURE__ */ new Set();
|
|
6821
|
-
let
|
|
6822
|
-
function
|
|
6901
|
+
let jo = null, Fo = null, zo = null, Vo = null, Bo = null, Ho = null;
|
|
6902
|
+
function Cd(t) {
|
|
6823
6903
|
if (Et !== t) {
|
|
6824
6904
|
Et = t;
|
|
6825
6905
|
for (const e of mr) e();
|
|
6826
6906
|
for (const e of dn) e();
|
|
6827
6907
|
}
|
|
6828
6908
|
}
|
|
6829
|
-
function
|
|
6909
|
+
function Ko() {
|
|
6830
6910
|
return Et;
|
|
6831
6911
|
}
|
|
6832
|
-
function
|
|
6912
|
+
function Td(t) {
|
|
6833
6913
|
return mr.add(t), () => mr.delete(t);
|
|
6834
6914
|
}
|
|
6835
|
-
function
|
|
6915
|
+
function $d(t) {
|
|
6836
6916
|
if (ln !== t) {
|
|
6837
6917
|
ln = t;
|
|
6838
6918
|
for (const e of dn) e();
|
|
6839
6919
|
}
|
|
6840
6920
|
}
|
|
6841
|
-
function
|
|
6921
|
+
function Dd() {
|
|
6842
6922
|
var t;
|
|
6843
6923
|
return ln || Et || (typeof ((t = globalThis.location) == null ? void 0 : t.origin) == "string" ? globalThis.location.origin : "");
|
|
6844
6924
|
}
|
|
6845
|
-
function
|
|
6925
|
+
function Rd(t) {
|
|
6846
6926
|
return dn.add(t), () => dn.delete(t);
|
|
6847
6927
|
}
|
|
6848
|
-
function
|
|
6928
|
+
function Ld(t) {
|
|
6849
6929
|
if (gr !== t) {
|
|
6850
6930
|
gr = t;
|
|
6851
6931
|
for (const e of vr) e();
|
|
6852
6932
|
}
|
|
6853
6933
|
}
|
|
6854
|
-
function
|
|
6934
|
+
function Uo() {
|
|
6855
6935
|
return gr;
|
|
6856
6936
|
}
|
|
6857
|
-
function
|
|
6937
|
+
function kd(t) {
|
|
6858
6938
|
return vr.add(t), () => vr.delete(t);
|
|
6859
6939
|
}
|
|
6860
|
-
let
|
|
6861
|
-
function
|
|
6862
|
-
|
|
6940
|
+
let Wo = "";
|
|
6941
|
+
function jd(t) {
|
|
6942
|
+
Wo = t;
|
|
6863
6943
|
}
|
|
6864
6944
|
function br() {
|
|
6865
|
-
return
|
|
6945
|
+
return Wo;
|
|
6866
6946
|
}
|
|
6867
|
-
let
|
|
6868
|
-
function
|
|
6869
|
-
|
|
6870
|
-
}
|
|
6871
|
-
function Dd() {
|
|
6872
|
-
return Uo;
|
|
6873
|
-
}
|
|
6874
|
-
function Rd(t) {
|
|
6875
|
-
Lo = t;
|
|
6947
|
+
let Go = "bitmap";
|
|
6948
|
+
function Fd(t) {
|
|
6949
|
+
Go = t;
|
|
6876
6950
|
}
|
|
6877
|
-
function
|
|
6878
|
-
return
|
|
6951
|
+
function zd() {
|
|
6952
|
+
return Go;
|
|
6879
6953
|
}
|
|
6880
|
-
function
|
|
6954
|
+
function Vd(t) {
|
|
6881
6955
|
jo = t;
|
|
6882
6956
|
}
|
|
6883
|
-
function
|
|
6957
|
+
function Bd() {
|
|
6884
6958
|
return jo;
|
|
6885
6959
|
}
|
|
6886
|
-
function
|
|
6887
|
-
ko = t;
|
|
6888
|
-
}
|
|
6889
|
-
function zd() {
|
|
6890
|
-
return ko;
|
|
6891
|
-
}
|
|
6892
|
-
function Vd(t) {
|
|
6960
|
+
function Hd(t) {
|
|
6893
6961
|
Fo = t;
|
|
6894
6962
|
}
|
|
6895
|
-
function
|
|
6963
|
+
function Kd() {
|
|
6896
6964
|
return Fo;
|
|
6897
6965
|
}
|
|
6898
|
-
function
|
|
6966
|
+
function Ud(t) {
|
|
6899
6967
|
zo = t;
|
|
6900
6968
|
}
|
|
6901
|
-
function
|
|
6969
|
+
function Wd() {
|
|
6902
6970
|
return zo;
|
|
6903
6971
|
}
|
|
6904
|
-
function
|
|
6972
|
+
function Gd(t) {
|
|
6905
6973
|
Vo = t;
|
|
6906
6974
|
}
|
|
6907
|
-
function
|
|
6975
|
+
function qd() {
|
|
6908
6976
|
return Vo;
|
|
6909
6977
|
}
|
|
6910
|
-
|
|
6978
|
+
function Yd(t) {
|
|
6979
|
+
Bo = t;
|
|
6980
|
+
}
|
|
6981
|
+
function Jd() {
|
|
6982
|
+
return Bo;
|
|
6983
|
+
}
|
|
6984
|
+
function Xd(t) {
|
|
6985
|
+
Ho = t;
|
|
6986
|
+
}
|
|
6987
|
+
function yr() {
|
|
6988
|
+
return Ho;
|
|
6989
|
+
}
|
|
6990
|
+
const Vh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6911
6991
|
__proto__: null,
|
|
6912
|
-
getAppOrigin:
|
|
6913
|
-
getArtifactOrigin:
|
|
6992
|
+
getAppOrigin: Ko,
|
|
6993
|
+
getArtifactOrigin: Dd,
|
|
6914
6994
|
getFlowCanvas: br,
|
|
6915
|
-
getOnApply:
|
|
6916
|
-
getOnDesignChange:
|
|
6917
|
-
getOnInspectApply:
|
|
6918
|
-
getOnInspectImpact:
|
|
6919
|
-
getOnInspectPreview:
|
|
6995
|
+
getOnApply: Bd,
|
|
6996
|
+
getOnDesignChange: Jd,
|
|
6997
|
+
getOnInspectApply: Kd,
|
|
6998
|
+
getOnInspectImpact: qd,
|
|
6999
|
+
getOnInspectPreview: Wd,
|
|
6920
7000
|
getOnPreviewOpenChange: yr,
|
|
6921
|
-
getPreviewRevision:
|
|
6922
|
-
getStaticFrameSurface:
|
|
6923
|
-
setAppOrigin:
|
|
6924
|
-
setArtifactOrigin:
|
|
6925
|
-
setFlowCanvas:
|
|
6926
|
-
setOnApply:
|
|
6927
|
-
setOnDesignChange:
|
|
6928
|
-
setOnInspectApply:
|
|
6929
|
-
setOnInspectImpact:
|
|
6930
|
-
setOnInspectPreview:
|
|
6931
|
-
setOnPreviewOpenChange:
|
|
6932
|
-
setPreviewRevision:
|
|
6933
|
-
setStaticFrameSurface:
|
|
6934
|
-
subscribeAppOrigin:
|
|
6935
|
-
subscribeArtifactOrigin:
|
|
6936
|
-
subscribePreviewRevision:
|
|
7001
|
+
getPreviewRevision: Uo,
|
|
7002
|
+
getStaticFrameSurface: zd,
|
|
7003
|
+
setAppOrigin: Cd,
|
|
7004
|
+
setArtifactOrigin: $d,
|
|
7005
|
+
setFlowCanvas: jd,
|
|
7006
|
+
setOnApply: Vd,
|
|
7007
|
+
setOnDesignChange: Yd,
|
|
7008
|
+
setOnInspectApply: Hd,
|
|
7009
|
+
setOnInspectImpact: Gd,
|
|
7010
|
+
setOnInspectPreview: Ud,
|
|
7011
|
+
setOnPreviewOpenChange: Xd,
|
|
7012
|
+
setPreviewRevision: Ld,
|
|
7013
|
+
setStaticFrameSurface: Fd,
|
|
7014
|
+
subscribeAppOrigin: Td,
|
|
7015
|
+
subscribeArtifactOrigin: Rd,
|
|
7016
|
+
subscribePreviewRevision: kd
|
|
6937
7017
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6938
|
-
function
|
|
7018
|
+
function qo(t) {
|
|
6939
7019
|
var n;
|
|
6940
7020
|
return ((n = t.importPageId) == null ? void 0 : n.trim()) || t.id;
|
|
6941
7021
|
}
|
|
6942
|
-
const
|
|
7022
|
+
const Zd = /* @__PURE__ */ new Set([
|
|
6943
7023
|
"background-color",
|
|
6944
7024
|
"border-color",
|
|
6945
7025
|
"border-radius",
|
|
@@ -6965,25 +7045,25 @@ const Wd = /* @__PURE__ */ new Set([
|
|
|
6965
7045
|
"padding-top",
|
|
6966
7046
|
"row-gap",
|
|
6967
7047
|
"text-align"
|
|
6968
|
-
]),
|
|
7048
|
+
]), Qd = {
|
|
6969
7049
|
start: "flex-start",
|
|
6970
7050
|
center: "center",
|
|
6971
7051
|
end: "flex-end",
|
|
6972
7052
|
between: "space-between"
|
|
6973
|
-
},
|
|
7053
|
+
}, ef = {
|
|
6974
7054
|
start: "flex-start",
|
|
6975
7055
|
center: "center",
|
|
6976
7056
|
end: "flex-end"
|
|
6977
|
-
},
|
|
7057
|
+
}, Yo = {
|
|
6978
7058
|
gap: { cssProp: "gap", read: (t) => `${t.gap}px` },
|
|
6979
7059
|
padding: { cssProp: "padding", read: (t) => `${t.padding}px` },
|
|
6980
7060
|
justify: {
|
|
6981
7061
|
cssProp: "justify-content",
|
|
6982
|
-
read: (t) =>
|
|
7062
|
+
read: (t) => Qd[t.justify]
|
|
6983
7063
|
},
|
|
6984
7064
|
alignItems: {
|
|
6985
7065
|
cssProp: "align-items",
|
|
6986
|
-
read: (t) =>
|
|
7066
|
+
read: (t) => ef[t.alignItems]
|
|
6987
7067
|
},
|
|
6988
7068
|
fill: { cssProp: "background-color", read: (t) => t.fill },
|
|
6989
7069
|
radius: { cssProp: "border-radius", read: (t) => `${t.radius}px` },
|
|
@@ -6998,7 +7078,7 @@ const Wd = /* @__PURE__ */ new Set([
|
|
|
6998
7078
|
function fn(t) {
|
|
6999
7079
|
return `${t.componentFile}|${t.sourceStart}|${t.elementName}`;
|
|
7000
7080
|
}
|
|
7001
|
-
function
|
|
7081
|
+
function tf(t) {
|
|
7002
7082
|
if (!t || t.includes("\0") || t.includes(`
|
|
7003
7083
|
`) || t.includes("\r")) return null;
|
|
7004
7084
|
const e = t.lastIndexOf("#");
|
|
@@ -7035,11 +7115,11 @@ function Bn(t, e, n, r, i, s = "call-site") {
|
|
|
7035
7115
|
zr(a.root, null, null, i, (u, l, d) => {
|
|
7036
7116
|
const f = s === "own" ? d : l;
|
|
7037
7117
|
return r === "instance" && u.id === n || r === "shared-source" && f != null && fn(f) === fn(e) ? (c = !0, !0) : !1;
|
|
7038
|
-
}), c && o.push({ id:
|
|
7118
|
+
}), c && o.push({ id: qo(a), name: a.name });
|
|
7039
7119
|
}
|
|
7040
7120
|
return o;
|
|
7041
7121
|
}
|
|
7042
|
-
function
|
|
7122
|
+
function nf(...t) {
|
|
7043
7123
|
const e = /* @__PURE__ */ new Map();
|
|
7044
7124
|
for (const n of t)
|
|
7045
7125
|
for (const r of n)
|
|
@@ -7048,15 +7128,15 @@ function Jd(...t) {
|
|
|
7048
7128
|
}
|
|
7049
7129
|
function Ui(t, e) {
|
|
7050
7130
|
var n;
|
|
7051
|
-
return t.modelField.startsWith("domStyle:") ? e.domStyle[t.modelField.slice(9)] ?? "" : ((n =
|
|
7131
|
+
return t.modelField.startsWith("domStyle:") ? e.domStyle[t.modelField.slice(9)] ?? "" : ((n = Yo[t.modelField]) == null ? void 0 : n.read(e)) ?? t.from;
|
|
7052
7132
|
}
|
|
7053
7133
|
function zt(t) {
|
|
7054
7134
|
return typeof t == "string" || typeof t == "boolean" || typeof t == "number" && Number.isFinite(t);
|
|
7055
7135
|
}
|
|
7056
|
-
function
|
|
7136
|
+
function rf(t) {
|
|
7057
7137
|
return typeof t == "boolean" ? "boolean" : typeof t == "number" ? "number" : "string";
|
|
7058
7138
|
}
|
|
7059
|
-
class
|
|
7139
|
+
class sf {
|
|
7060
7140
|
constructor(e) {
|
|
7061
7141
|
b(this, "baselines", /* @__PURE__ */ new Map());
|
|
7062
7142
|
b(this, "parseIdentity");
|
|
@@ -7096,10 +7176,10 @@ class Zd {
|
|
|
7096
7176
|
from: l
|
|
7097
7177
|
}), s = !0;
|
|
7098
7178
|
}
|
|
7099
|
-
const o =
|
|
7179
|
+
const o = tf(i.node.sourceStyle), a = i.callSiteIdentity ?? i.ownIdentity;
|
|
7100
7180
|
if (o && a) {
|
|
7101
7181
|
for (const u of Object.keys(r)) {
|
|
7102
|
-
const l =
|
|
7182
|
+
const l = Yo[u];
|
|
7103
7183
|
if (!l) continue;
|
|
7104
7184
|
const d = `style:${o.file}#${o.className}:${l.cssProp}`, f = this.baselines.get(d);
|
|
7105
7185
|
(f == null ? void 0 : f.kind) === "style" ? f.nodeId = n : this.baselines.set(d, {
|
|
@@ -7116,7 +7196,7 @@ class Zd {
|
|
|
7116
7196
|
if (r.domStyle && typeof r.domStyle == "object") {
|
|
7117
7197
|
const u = i.node.domStyle, l = r.domStyle;
|
|
7118
7198
|
for (const d of /* @__PURE__ */ new Set([...Object.keys(u), ...Object.keys(l)])) {
|
|
7119
|
-
if (!
|
|
7199
|
+
if (!Zd.has(d)) continue;
|
|
7120
7200
|
const f = `style:${o.file}#${o.className}:${d}`, h = this.baselines.get(f);
|
|
7121
7201
|
(h == null ? void 0 : h.kind) === "style" ? h.nodeId = n : this.baselines.set(f, {
|
|
7122
7202
|
kind: "style",
|
|
@@ -7179,7 +7259,7 @@ class Zd {
|
|
|
7179
7259
|
prop: o.prop,
|
|
7180
7260
|
from: o.from,
|
|
7181
7261
|
to: h,
|
|
7182
|
-
valueType:
|
|
7262
|
+
valueType: rf(o.from),
|
|
7183
7263
|
scope: c,
|
|
7184
7264
|
affectedFrames: Bn(
|
|
7185
7265
|
e,
|
|
@@ -7203,7 +7283,7 @@ class Zd {
|
|
|
7203
7283
|
this.parseIdentity
|
|
7204
7284
|
);
|
|
7205
7285
|
let f = i.get(l);
|
|
7206
|
-
f ? f.affectedFrames =
|
|
7286
|
+
f ? f.affectedFrames = nf(
|
|
7207
7287
|
f.affectedFrames,
|
|
7208
7288
|
d
|
|
7209
7289
|
) : (f = {
|
|
@@ -7236,7 +7316,7 @@ class Zd {
|
|
|
7236
7316
|
return this.revision += 1, !0;
|
|
7237
7317
|
}
|
|
7238
7318
|
}
|
|
7239
|
-
const
|
|
7319
|
+
const of = [
|
|
7240
7320
|
"type",
|
|
7241
7321
|
"widthMode",
|
|
7242
7322
|
"width",
|
|
@@ -7262,7 +7342,7 @@ const Qd = [
|
|
|
7262
7342
|
"childrenText",
|
|
7263
7343
|
"domAttributes",
|
|
7264
7344
|
"domStyle"
|
|
7265
|
-
],
|
|
7345
|
+
], af = new Set(of), cf = /* @__PURE__ */ new Set([
|
|
7266
7346
|
"data-state",
|
|
7267
7347
|
"data-status",
|
|
7268
7348
|
"data-selected",
|
|
@@ -7273,22 +7353,22 @@ const Qd = [
|
|
|
7273
7353
|
"aria-expanded",
|
|
7274
7354
|
"aria-selected"
|
|
7275
7355
|
]);
|
|
7276
|
-
function
|
|
7356
|
+
function uf(t) {
|
|
7277
7357
|
return Array.isArray(t) ? [...t] : t && typeof t == "object" ? { ...t } : t;
|
|
7278
7358
|
}
|
|
7279
|
-
function
|
|
7359
|
+
function Jo(t) {
|
|
7280
7360
|
const e = {};
|
|
7281
7361
|
for (const n of Object.keys(t))
|
|
7282
|
-
|
|
7362
|
+
af.has(n) && (e[n] = uf(t[n]));
|
|
7283
7363
|
return e;
|
|
7284
7364
|
}
|
|
7285
7365
|
function rt(t) {
|
|
7286
|
-
return
|
|
7366
|
+
return Jo(t);
|
|
7287
7367
|
}
|
|
7288
|
-
function
|
|
7368
|
+
function lf(t) {
|
|
7289
7369
|
return Object.keys(t).length > 0;
|
|
7290
7370
|
}
|
|
7291
|
-
const
|
|
7371
|
+
const df = /* @__PURE__ */ new Set([
|
|
7292
7372
|
"alignContent",
|
|
7293
7373
|
"alignItems",
|
|
7294
7374
|
"alignSelf",
|
|
@@ -7312,22 +7392,22 @@ const sf = /* @__PURE__ */ new Set([
|
|
|
7312
7392
|
"rowGap",
|
|
7313
7393
|
"textAlign"
|
|
7314
7394
|
]);
|
|
7315
|
-
function
|
|
7395
|
+
function ff(t) {
|
|
7316
7396
|
return t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
|
|
7317
7397
|
}
|
|
7318
|
-
function
|
|
7398
|
+
function hf(t) {
|
|
7319
7399
|
if (typeof t != "string" && typeof t != "number") return null;
|
|
7320
7400
|
const e = String(t).trim();
|
|
7321
7401
|
return !e || /[{};]/.test(e) || e.includes("</") ? null : e;
|
|
7322
7402
|
}
|
|
7323
|
-
function
|
|
7403
|
+
function pf(t) {
|
|
7324
7404
|
const e = {}, n = (r, i, s = "") => {
|
|
7325
|
-
const o =
|
|
7405
|
+
const o = hf(i);
|
|
7326
7406
|
o != null && (e[r] = `${o}${s}`);
|
|
7327
7407
|
};
|
|
7328
7408
|
if (t.domStyle)
|
|
7329
7409
|
for (const [r, i] of Object.entries(t.domStyle))
|
|
7330
|
-
|
|
7410
|
+
df.has(r) && n(ff(r), i);
|
|
7331
7411
|
return t.type != null && (n("display", "flex"), n("flex-direction", t.type === "columns" ? "row" : "column")), t.widthMode != null ? n(
|
|
7332
7412
|
"width",
|
|
7333
7413
|
t.widthMode === "fixed" ? `${t.width ?? 200}px` : t.widthMode === "fit" ? "fit-content" : "100%"
|
|
@@ -7345,37 +7425,37 @@ function cf(t) {
|
|
|
7345
7425
|
function ce(t) {
|
|
7346
7426
|
return encodeURIComponent(t.trim().replace(/\s+/g, " "));
|
|
7347
7427
|
}
|
|
7348
|
-
function
|
|
7428
|
+
function mf(t) {
|
|
7349
7429
|
try {
|
|
7350
7430
|
return new URL(t, "http://pygmalion.local").pathname.replace(/\/+$/, "") || "/";
|
|
7351
7431
|
} catch {
|
|
7352
7432
|
return t.split(/[?#]/, 1)[0].replace(/\/+$/, "") || "/";
|
|
7353
7433
|
}
|
|
7354
7434
|
}
|
|
7355
|
-
function
|
|
7356
|
-
if (t.route) return `route:${ce(
|
|
7435
|
+
function gf(t) {
|
|
7436
|
+
if (t.route) return `route:${ce(mf(t.route))}`;
|
|
7357
7437
|
const e = [...new Set((t.sourcePaths ?? []).filter(Boolean))].sort();
|
|
7358
7438
|
return e.length ? `source:${e.map(ce).join("|")}` : `page:${ce(t.importPageId ?? t.id)}`;
|
|
7359
7439
|
}
|
|
7360
|
-
function
|
|
7440
|
+
function vf(t) {
|
|
7361
7441
|
const e = t.domAttributes ?? {}, n = e["data-pygmalion-source"];
|
|
7362
7442
|
if (n) return `explicit=${ce(n)}`;
|
|
7363
7443
|
const r = [], i = (o) => {
|
|
7364
7444
|
const a = e[o];
|
|
7365
|
-
a && !
|
|
7445
|
+
a && !cf.has(o) && r.push(`${o}=${ce(a)}`);
|
|
7366
7446
|
};
|
|
7367
7447
|
i("id"), i("data-testid"), i("data-card-key"), i("data-slot"), i("data-key"), i("name"), i("aria-label"), i("role");
|
|
7368
7448
|
const s = t.domTag || (t.type === "text" ? "#text" : t.type);
|
|
7369
7449
|
return r.length ? `${s}[${r.join("&")}]` : `${s}:${ce(t.name)}`;
|
|
7370
7450
|
}
|
|
7371
7451
|
function Ce(t, e) {
|
|
7372
|
-
const n =
|
|
7452
|
+
const n = gf(e), r = (i, s, o) => {
|
|
7373
7453
|
var f;
|
|
7374
7454
|
const a = i.sourceComponent || (i.type === "component" ? i.componentName : ""), c = a ? i.componentName ? `component:${ce(a)}:${ce(i.componentName)}` : `component:${ce(a)}` : s, u = a ? "$" : o, l = (f = i.domAttributes) == null ? void 0 : f["data-pygmalion-source"];
|
|
7375
7455
|
i.sourceKey = l ? `explicit:${ce(l)}` : i.sourceStyle ? `style:${ce(i.sourceStyle)}` : `${c}/${u}`;
|
|
7376
7456
|
const d = /* @__PURE__ */ new Map();
|
|
7377
7457
|
for (const h of i.children) {
|
|
7378
|
-
const v =
|
|
7458
|
+
const v = vf(h), p = d.get(v) ?? 0;
|
|
7379
7459
|
d.set(v, p + 1), r(h, c, `${u}/${v}@${p}`);
|
|
7380
7460
|
}
|
|
7381
7461
|
};
|
|
@@ -7385,7 +7465,7 @@ function ct(t, e) {
|
|
|
7385
7465
|
e(t);
|
|
7386
7466
|
for (const n of t.children) ct(n, e);
|
|
7387
7467
|
}
|
|
7388
|
-
function
|
|
7468
|
+
function bf(t, e) {
|
|
7389
7469
|
const n = [];
|
|
7390
7470
|
let r = 0;
|
|
7391
7471
|
if (!e) return { sourceKey: e, frames: n, nodeCount: r };
|
|
@@ -7393,7 +7473,7 @@ function ff(t, e) {
|
|
|
7393
7473
|
let s = !1;
|
|
7394
7474
|
ct(i.root, (o) => {
|
|
7395
7475
|
o.sourceKey === e && (s = !0, r += 1);
|
|
7396
|
-
}), s && n.push({ id:
|
|
7476
|
+
}), s && n.push({ id: qo(i), name: i.name });
|
|
7397
7477
|
}
|
|
7398
7478
|
return { sourceKey: e, frames: n, nodeCount: r };
|
|
7399
7479
|
}
|
|
@@ -7406,40 +7486,40 @@ function gt(t, e) {
|
|
|
7406
7486
|
function _r(t) {
|
|
7407
7487
|
return (t ?? "").replaceAll("\\", "/").replace(/[?#].*$/, "").replace(/^\.\//, "").replace(/\/+/g, "/");
|
|
7408
7488
|
}
|
|
7409
|
-
function
|
|
7489
|
+
function yf(t) {
|
|
7410
7490
|
return t.domAttributes["data-pygmalion-catalog-item"] ?? t.domAttributes["data-pygmalion-catalog-component"] ?? "";
|
|
7411
7491
|
}
|
|
7412
7492
|
function Wi(t, e) {
|
|
7413
7493
|
return !t || !e ? !1 : t === e ? !0 : t.endsWith(`/${e.replace(/^\/+/, "")}`);
|
|
7414
7494
|
}
|
|
7415
|
-
function
|
|
7495
|
+
function _f(t, e) {
|
|
7416
7496
|
return !!(t && (t === e.id || t === e.name || t === e.codeName));
|
|
7417
7497
|
}
|
|
7418
|
-
function
|
|
7498
|
+
function Sf(t) {
|
|
7419
7499
|
var n;
|
|
7420
7500
|
const e = t.domAttributes["data-pygmalion-own-source"] ?? t.domAttributes["data-pygmalion-source"];
|
|
7421
7501
|
return _r((n = Cr(e)) == null ? void 0 : n.componentFile);
|
|
7422
7502
|
}
|
|
7423
|
-
function
|
|
7503
|
+
function wf(t, e) {
|
|
7424
7504
|
var a;
|
|
7425
7505
|
const n = _r(e.sourcePath), r = e.codeName ?? "", i = [];
|
|
7426
7506
|
let s = 0;
|
|
7427
7507
|
const o = (c, u) => {
|
|
7428
|
-
const l = s++, d =
|
|
7508
|
+
const l = s++, d = _f(yf(c), e), f = u || d;
|
|
7429
7509
|
let h = d ? 60 : u ? 30 : 0;
|
|
7430
|
-
r && (c.name === r || c.componentName === r) && (h += 100), Wi(
|
|
7510
|
+
r && (c.name === r || c.componentName === r) && (h += 100), Wi(Sf(c), n) && (h += 140), Wi(_r(c.sourceComponent), n) && (h += 120), h > 0 && i.push({ node: c, score: h, order: l });
|
|
7431
7511
|
for (const v of c.children) o(v, f);
|
|
7432
7512
|
};
|
|
7433
7513
|
return o(t, !1), i.sort((c, u) => u.score - c.score || c.order - u.order), ((a = i[0]) == null ? void 0 : a.node) ?? null;
|
|
7434
7514
|
}
|
|
7435
|
-
function
|
|
7515
|
+
function Of(t, e, n) {
|
|
7436
7516
|
return t.find(
|
|
7437
7517
|
(r) => r.importKind === e && r.importPageId === n.pageId
|
|
7438
7518
|
) ?? null;
|
|
7439
7519
|
}
|
|
7440
|
-
const
|
|
7520
|
+
const Xo = (t) => t === "rows" || t === "columns", Gi = (t) => {
|
|
7441
7521
|
var e;
|
|
7442
|
-
return
|
|
7522
|
+
return Xo(t.type) || t.type === "component" && ((e = ae()[t.componentName]) == null ? void 0 : e.children) === "nodes";
|
|
7443
7523
|
}, qi = {
|
|
7444
7524
|
autoFocus: "autofocus"
|
|
7445
7525
|
}, Yi = /* @__PURE__ */ new Set([
|
|
@@ -7451,10 +7531,10 @@ const Yo = (t) => t === "rows" || t === "columns", Gi = (t) => {
|
|
|
7451
7531
|
"required",
|
|
7452
7532
|
"selected"
|
|
7453
7533
|
]);
|
|
7454
|
-
let
|
|
7534
|
+
let Ef = 0;
|
|
7455
7535
|
class R {
|
|
7456
7536
|
constructor(e, n) {
|
|
7457
|
-
b(this, "id", `n${++
|
|
7537
|
+
b(this, "id", `n${++Ef}`);
|
|
7458
7538
|
b(this, "type");
|
|
7459
7539
|
b(this, "name");
|
|
7460
7540
|
b(this, "children", []);
|
|
@@ -7557,13 +7637,13 @@ function Hn(t) {
|
|
|
7557
7637
|
return JSON.parse(JSON.stringify(t));
|
|
7558
7638
|
}
|
|
7559
7639
|
function Ji() {
|
|
7560
|
-
return mo().length > 0 ?
|
|
7640
|
+
return mo().length > 0 ? cl : 0;
|
|
7561
7641
|
}
|
|
7562
|
-
const Vr = 5,
|
|
7642
|
+
const Vr = 5, xf = `pygmalion.canvas-layout.v${Vr}`, Kn = 120, Un = 80;
|
|
7563
7643
|
function Te(t) {
|
|
7564
7644
|
return typeof t == "number" && Number.isFinite(t);
|
|
7565
7645
|
}
|
|
7566
|
-
function
|
|
7646
|
+
function Af(t) {
|
|
7567
7647
|
let e = 0xcbf29ce484222325n;
|
|
7568
7648
|
for (const n of t)
|
|
7569
7649
|
e ^= BigInt(n.codePointAt(0) ?? 0), e = BigInt.asUintN(64, e * 0x100000001b3n);
|
|
@@ -7573,13 +7653,13 @@ function Wn(t, e) {
|
|
|
7573
7653
|
const n = t.importPageId ?? t.path ?? t.route ?? t.name;
|
|
7574
7654
|
return `${e}:${t.importKind ?? ""}:${t.canvas ?? "default"}:${n}`;
|
|
7575
7655
|
}
|
|
7576
|
-
function
|
|
7656
|
+
function Nf(t, e) {
|
|
7577
7657
|
if (!t || typeof t != "object") return !1;
|
|
7578
7658
|
const n = t;
|
|
7579
7659
|
return n.version === Vr && n.scope === e && Array.isArray(n.frames) && Array.isArray(n.sections);
|
|
7580
7660
|
}
|
|
7581
7661
|
let tt = 0;
|
|
7582
|
-
class
|
|
7662
|
+
class If {
|
|
7583
7663
|
constructor() {
|
|
7584
7664
|
/** Multi-page — each page has an independent tree. */
|
|
7585
7665
|
b(this, "pages");
|
|
@@ -7642,7 +7722,7 @@ class wf {
|
|
|
7642
7722
|
/** Explicit edit scope by sourceKey. Unspecified is shared like the existing operation. */
|
|
7643
7723
|
b(this, "sharedSourceEditScopes", /* @__PURE__ */ new Map());
|
|
7644
7724
|
/** The final change that can be safely reflected to the original source during a regular canvas NodeModel patch. */
|
|
7645
|
-
b(this, "sourcePatchJournal", new
|
|
7725
|
+
b(this, "sourcePatchJournal", new sf(Cr));
|
|
7646
7726
|
/** Asset-list edit intent waiting for the catalog page's DOM layer import. */
|
|
7647
7727
|
b(this, "pendingDesignAssetEdit", null);
|
|
7648
7728
|
/** Page DOM as of last load/reflection. Asynchronous screens register upon completion of each capture. */
|
|
@@ -7673,7 +7753,7 @@ class wf {
|
|
|
7673
7753
|
b(this, "sections", []);
|
|
7674
7754
|
/** Section name whose name is entered immediately after creation/double-clicking — SectionBoxes are rendered as input. */
|
|
7675
7755
|
b(this, "sectionRenameTarget", null);
|
|
7676
|
-
this.pages = [{ id: `p${++tt}`, name: "Page 1", x: 60, y: 60, root:
|
|
7756
|
+
this.pages = [{ id: `p${++tt}`, name: "Page 1", x: 60, y: 60, root: Pf() }], this.activePageId = this.pages[0].id, Rs(this);
|
|
7677
7757
|
}
|
|
7678
7758
|
/**
|
|
7679
7759
|
* Canvas names in the order a designer navigates them.
|
|
@@ -7815,7 +7895,7 @@ ${e}`;
|
|
|
7815
7895
|
return !e || this.activeCanvas === e || this.activeCanvas.startsWith(`${e} · `);
|
|
7816
7896
|
}
|
|
7817
7897
|
designAssetPage(e, n) {
|
|
7818
|
-
return
|
|
7898
|
+
return Of(this.pages, e, n);
|
|
7819
7899
|
}
|
|
7820
7900
|
/** Open an inventory asset as an editable implementation layer. */
|
|
7821
7901
|
beginDesignAssetEdit(e, n) {
|
|
@@ -7825,11 +7905,11 @@ ${e}`;
|
|
|
7825
7905
|
resolvePendingDesignAssetEdit(e) {
|
|
7826
7906
|
const n = this.pendingDesignAssetEdit;
|
|
7827
7907
|
if (!n || n.pageId !== e.id) return !1;
|
|
7828
|
-
const r =
|
|
7908
|
+
const r = wf(e.root, n.asset) ?? e.root;
|
|
7829
7909
|
return this.pendingDesignAssetEdit = null, this.selectedIds = [r.id], this.selectedCanvasObject = null, this.hoveredId = null, this.editingTextId = null, !0;
|
|
7830
7910
|
}
|
|
7831
7911
|
sharedSourceImpactFor(e) {
|
|
7832
|
-
return
|
|
7912
|
+
return bf(this.pages, e.sourceKey);
|
|
7833
7913
|
}
|
|
7834
7914
|
/**
|
|
7835
7915
|
* Common source CSS to put into script-free DOM previews on inactive screens.
|
|
@@ -8157,7 +8237,7 @@ ${e}`;
|
|
|
8157
8237
|
) + r;
|
|
8158
8238
|
continue;
|
|
8159
8239
|
}
|
|
8160
|
-
const d = u.filter((p) => this.isScreenStateShown(p)), f = to(((s = u[0]) == null ? void 0 : s.section) ?? "").length ?
|
|
8240
|
+
const d = u.filter((p) => this.isScreenStateShown(p)), f = to(((s = u[0]) == null ? void 0 : s.section) ?? "").length ? rl(((o = u[0]) == null ? void 0 : o.section) ?? "", d) : [], h = f.length ? el(
|
|
8161
8241
|
f.map((p) => ({
|
|
8162
8242
|
laneId: p.laneId,
|
|
8163
8243
|
frames: p.frames.map((m) => ({
|
|
@@ -8294,27 +8374,27 @@ ${e}`;
|
|
|
8294
8374
|
startCanvasLayoutPersistence() {
|
|
8295
8375
|
var s, o;
|
|
8296
8376
|
if (typeof window > "u") return;
|
|
8297
|
-
const e = ((s = un()) == null ? void 0 : s.sourceSha) ||
|
|
8377
|
+
const e = ((s = un()) == null ? void 0 : s.sourceSha) || Uo();
|
|
8298
8378
|
if (!e) return;
|
|
8299
8379
|
const n = this.pages.map((a, c) => ({
|
|
8300
8380
|
key: Wn(a, c),
|
|
8301
8381
|
sourcePaths: [...a.sourcePaths ?? []]
|
|
8302
8382
|
})), r = JSON.stringify({
|
|
8303
8383
|
sourceRevision: e,
|
|
8304
|
-
appOrigin:
|
|
8384
|
+
appOrigin: Ko(),
|
|
8305
8385
|
catalog: n
|
|
8306
|
-
}), i = `${
|
|
8386
|
+
}), i = `${xf}:${Af(r)}`;
|
|
8307
8387
|
if (i !== this.canvasLayoutStorageKey) {
|
|
8308
8388
|
(o = this.canvasLayoutDisposer) == null || o.call(this), this.canvasLayoutScope = r, this.canvasLayoutStorageKey = i;
|
|
8309
8389
|
try {
|
|
8310
8390
|
const a = window.localStorage.getItem(i);
|
|
8311
8391
|
if (a) {
|
|
8312
8392
|
const c = JSON.parse(a);
|
|
8313
|
-
|
|
8393
|
+
Nf(c, r) && this.restoreCanvasLayout(c);
|
|
8314
8394
|
}
|
|
8315
8395
|
} catch {
|
|
8316
8396
|
}
|
|
8317
|
-
this.canvasLayoutDisposer =
|
|
8397
|
+
this.canvasLayoutDisposer = Rc(
|
|
8318
8398
|
() => this.canvasLayoutSnapshot(),
|
|
8319
8399
|
(a) => {
|
|
8320
8400
|
try {
|
|
@@ -8446,9 +8526,9 @@ ${e}`;
|
|
|
8446
8526
|
promoteFrozenLayerImport(e) {
|
|
8447
8527
|
if (e.route == null || !e.importLayers || e.layersImported)
|
|
8448
8528
|
return;
|
|
8449
|
-
const n =
|
|
8529
|
+
const n = ko(e.id);
|
|
8450
8530
|
if (!n) return;
|
|
8451
|
-
const r =
|
|
8531
|
+
const r = Lo(n, { scale: this.zoom });
|
|
8452
8532
|
if (!r) {
|
|
8453
8533
|
this.frozenPromotionRefusals.add(e.id);
|
|
8454
8534
|
return;
|
|
@@ -8471,7 +8551,7 @@ ${e}`;
|
|
|
8471
8551
|
applyScreenDimension(e, n, r, i) {
|
|
8472
8552
|
const s = this.pages.find((d) => d.id === e);
|
|
8473
8553
|
if (!s || !s.layersImported) return !1;
|
|
8474
|
-
const o =
|
|
8554
|
+
const o = pl(n, r), a = i ? me(s.root, i) : hl(s, n);
|
|
8475
8555
|
if (!o || !a) return !1;
|
|
8476
8556
|
if (a.componentName === n.component) {
|
|
8477
8557
|
for (const [d, f] of Object.entries(o))
|
|
@@ -8506,11 +8586,11 @@ ${e}`;
|
|
|
8506
8586
|
applyScreenListLength(e, n, r) {
|
|
8507
8587
|
const i = this.pages.find((d) => d.id === e);
|
|
8508
8588
|
if (!i || !i.layersImported) return !1;
|
|
8509
|
-
const s =
|
|
8589
|
+
const s = wl(i, n);
|
|
8510
8590
|
if (!s) return !1;
|
|
8511
|
-
const o =
|
|
8591
|
+
const o = Ol(s, n);
|
|
8512
8592
|
if (o.length === 0) return !1;
|
|
8513
|
-
const a =
|
|
8593
|
+
const a = El(n, r);
|
|
8514
8594
|
if (a === o.length) return !0;
|
|
8515
8595
|
const c = o[o.length - 1], u = D(i.root, c.id);
|
|
8516
8596
|
if (!u) return !1;
|
|
@@ -8531,7 +8611,7 @@ ${e}`;
|
|
|
8531
8611
|
d += 1, u.children.splice(d, 0, h), l += $i(u, h);
|
|
8532
8612
|
}
|
|
8533
8613
|
}
|
|
8534
|
-
return
|
|
8614
|
+
return Dl(i.root, u, l), this.bumpPageEditRevision(e), !0;
|
|
8535
8615
|
}
|
|
8536
8616
|
/**
|
|
8537
8617
|
* Adds or removes one badge in one slot of one card.
|
|
@@ -8565,9 +8645,9 @@ ${e}`;
|
|
|
8565
8645
|
return this.bumpPageEditRevision(e), !0;
|
|
8566
8646
|
}
|
|
8567
8647
|
if (!u) {
|
|
8568
|
-
const f =
|
|
8648
|
+
const f = gl(a, i, c);
|
|
8569
8649
|
if (!f) return !1;
|
|
8570
|
-
const h =
|
|
8650
|
+
const h = vl(c, i);
|
|
8571
8651
|
if (!h) return !1;
|
|
8572
8652
|
const v = H(B(f), !0);
|
|
8573
8653
|
v.children.splice(0, v.children.length), h.parent.children.splice(h.index, 0, v), u = v;
|
|
@@ -8579,13 +8659,13 @@ ${e}`;
|
|
|
8579
8659
|
u.children.splice(0, u.children.length, ...f);
|
|
8580
8660
|
} else if (u.children.some((f) => Kt(f, s)))
|
|
8581
8661
|
return !0;
|
|
8582
|
-
const l =
|
|
8662
|
+
const l = ml(a, s, c), d = l ? H(B(l), !0) : new R("component", {
|
|
8583
8663
|
name: s.component,
|
|
8584
8664
|
componentName: s.component,
|
|
8585
8665
|
componentProps: { ...s.props },
|
|
8586
8666
|
widthMode: "fit"
|
|
8587
8667
|
});
|
|
8588
|
-
return u.children.splice(
|
|
8668
|
+
return u.children.splice(bl(u, s), 0, d), this.bumpPageEditRevision(e), this.selectedIds = [d.id], !0;
|
|
8589
8669
|
}
|
|
8590
8670
|
/**
|
|
8591
8671
|
* Puts a frame into a declared interactive state by extending its recipe.
|
|
@@ -8648,7 +8728,7 @@ ${e}`;
|
|
|
8648
8728
|
replacePageRootFromDom(e, n, r) {
|
|
8649
8729
|
var s, o;
|
|
8650
8730
|
const i = this.pages.find((a) => a.id === e);
|
|
8651
|
-
!i || i.layersImported && !this.provisionalLayerImports.has(e) || (i.root = H(n, !0), Ce(i.root, i), this.pageRootBaselines.set(i.id, B(i.root)), gt(i.root, this.sharedSourceOverrides), this.applySharedSourceStructureOverrides(i), i.layersImported = !0, i.layerImportCount = r == null ? void 0 : r.count, i.layerImportTruncated = r == null ? void 0 : r.truncated, i.layerImportDiagnostics = r == null ? void 0 : r.diagnostics, i.layerImportError = r != null && r.truncated ? ((o = (s = r.diagnostics) == null ? void 0 : s[0]) == null ? void 0 : o.message) ?? "Some DOM layers were omitted because they exceeded the budget." : void 0, (i.root.name === "body" || i.root.name === "div") && (i.root.name = "Page"), this.provisionalLayerImports.delete(e), this.bumpPageEditRevision(e), i.layerImportRevision = this.pageEditRevision(e), i.layerImportViewportWidth = i.width ?? 390, i.id === this.activePageId && !this.resolvePendingDesignAssetEdit(i) && (this.selectedIds = []));
|
|
8731
|
+
!i || i.layersImported && !this.provisionalLayerImports.has(e) || (td(n, e), i.root = H(n, !0), Ce(i.root, i), this.pageRootBaselines.set(i.id, B(i.root)), gt(i.root, this.sharedSourceOverrides), this.applySharedSourceStructureOverrides(i), i.layersImported = !0, i.layerImportCount = r == null ? void 0 : r.count, i.layerImportTruncated = r == null ? void 0 : r.truncated, i.layerImportDiagnostics = r == null ? void 0 : r.diagnostics, i.layerImportError = r != null && r.truncated ? ((o = (s = r.diagnostics) == null ? void 0 : s[0]) == null ? void 0 : o.message) ?? "Some DOM layers were omitted because they exceeded the budget." : void 0, (i.root.name === "body" || i.root.name === "div") && (i.root.name = "Page"), this.provisionalLayerImports.delete(e), this.bumpPageEditRevision(e), i.layerImportRevision = this.pageEditRevision(e), i.layerImportViewportWidth = i.width ?? 390, i.id === this.activePageId && !this.resolvePendingDesignAssetEdit(i) && (this.selectedIds = []));
|
|
8652
8732
|
}
|
|
8653
8733
|
setPageLayerImportError(e, n) {
|
|
8654
8734
|
const r = this.pages.find((i) => i.id === e);
|
|
@@ -8975,7 +9055,7 @@ ${e}`;
|
|
|
8975
9055
|
});
|
|
8976
9056
|
}
|
|
8977
9057
|
recordFrozenPreviewPatch(e, n, r = []) {
|
|
8978
|
-
const i = this.sharedSourceOverrides.get(e.sourceKey) ?? n, s =
|
|
9058
|
+
const i = this.sharedSourceOverrides.get(e.sourceKey) ?? n, s = pf(i), o = this.frozenStyleSelector(e), a = Object.entries(s).map(([c, u]) => `${c}:${u}!important`).join(";");
|
|
8979
9059
|
if (o && a && this.sharedFrozenCssRules.set(e.sourceKey, { selector: o, css: a }), Object.hasOwn(n, "hidden")) {
|
|
8980
9060
|
const c = this.frozenSemanticSelector(e);
|
|
8981
9061
|
c && this.sharedFrozenDomMutations.set(`${e.sourceKey}:hidden`, {
|
|
@@ -9084,7 +9164,7 @@ ${e}`;
|
|
|
9084
9164
|
patch(e, n) {
|
|
9085
9165
|
const r = this.withImportedDomStyle(e, n), i = r.domAttributes ? Object.keys(e.domAttributes) : [];
|
|
9086
9166
|
this.sourcePatchJournal.captureBefore(this.pages, e.id, r);
|
|
9087
|
-
const s =
|
|
9167
|
+
const s = Jo(r), a = this.sharedSourceEditScopeFor(e) === "shared" && !!e.sourceKey && lf(s);
|
|
9088
9168
|
if (this.checkpoint(a ? `patch-source:${e.sourceKey}` : `patch-instance:${e.id}`), Object.assign(e, r), !a) return;
|
|
9089
9169
|
const c = this.sharedSourceOverrides.get(e.sourceKey);
|
|
9090
9170
|
this.sharedSourceOverrides.set(e.sourceKey, {
|
|
@@ -9216,7 +9296,7 @@ ${e}`;
|
|
|
9216
9296
|
}
|
|
9217
9297
|
/** ⌘⇧G — Unpacks the selected container and spreads its children into the parent's place. */
|
|
9218
9298
|
ungroupSelected() {
|
|
9219
|
-
const e = this.topLevelSelected().filter((i) =>
|
|
9299
|
+
const e = this.topLevelSelected().filter((i) => Xo(i.type) && i !== this.root);
|
|
9220
9300
|
if (!e.length) return;
|
|
9221
9301
|
this.checkpoint("ungroup", !0);
|
|
9222
9302
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
@@ -9243,7 +9323,7 @@ ${e}`;
|
|
|
9243
9323
|
const r = (l = document.querySelector(`[data-node-id="${e.id}"]`)) == null ? void 0 : l.firstElementChild;
|
|
9244
9324
|
if (!r) return;
|
|
9245
9325
|
const i = Gs(ae()), s = un(), o = /* @__PURE__ */ new Set([e.componentName]), a = Array.from(r.children).map(
|
|
9246
|
-
(d) => s ? s.captureElement(d, window, { exclude: o, scale: this.zoom }) :
|
|
9326
|
+
(d) => s ? s.captureElement(d, window, { exclude: o, scale: this.zoom }) : jr(d, window, {
|
|
9247
9327
|
resolveInstance: i,
|
|
9248
9328
|
instanceMode: "expand",
|
|
9249
9329
|
mediaMode: "layers",
|
|
@@ -9393,7 +9473,7 @@ function D(t, e) {
|
|
|
9393
9473
|
}
|
|
9394
9474
|
return null;
|
|
9395
9475
|
}
|
|
9396
|
-
function
|
|
9476
|
+
function Pf() {
|
|
9397
9477
|
const t = (e) => new R("rows", {
|
|
9398
9478
|
name: "Chip",
|
|
9399
9479
|
widthMode: "fit",
|
|
@@ -9429,8 +9509,8 @@ function Of() {
|
|
|
9429
9509
|
]
|
|
9430
9510
|
});
|
|
9431
9511
|
}
|
|
9432
|
-
const Gn = new
|
|
9433
|
-
class
|
|
9512
|
+
const Gn = new If();
|
|
9513
|
+
class Mf extends sa {
|
|
9434
9514
|
constructor() {
|
|
9435
9515
|
super(...arguments);
|
|
9436
9516
|
b(this, "state", { failed: !1 });
|
|
@@ -9448,7 +9528,7 @@ class Ef extends ra {
|
|
|
9448
9528
|
}) : this.props.children;
|
|
9449
9529
|
}
|
|
9450
9530
|
}
|
|
9451
|
-
function
|
|
9531
|
+
function Cf({
|
|
9452
9532
|
page: t,
|
|
9453
9533
|
snapshot: e,
|
|
9454
9534
|
height: n,
|
|
@@ -9469,7 +9549,7 @@ function xf({
|
|
|
9469
9549
|
"style[data-pygmalion-frozen-overrides]"
|
|
9470
9550
|
);
|
|
9471
9551
|
p ? M || (M = S.createElement("style"), M.dataset.pygmalionFrozenOverrides = "", S.head.append(M)) : M == null || M.remove(), M && M.textContent !== p && (M.textContent = p), a.current();
|
|
9472
|
-
const
|
|
9552
|
+
const k = [];
|
|
9473
9553
|
let Se = 0, J = 0;
|
|
9474
9554
|
for (const N of m)
|
|
9475
9555
|
try {
|
|
@@ -9495,7 +9575,7 @@ function xf({
|
|
|
9495
9575
|
if (!he) {
|
|
9496
9576
|
C.push(
|
|
9497
9577
|
`Component registry entry not found:${$.name}`
|
|
9498
|
-
), J += 1, I.setAttribute("data-pygmalion-sandbox-replay", "stale"),
|
|
9578
|
+
), J += 1, I.setAttribute("data-pygmalion-sandbox-replay", "stale"), k.push(() => {
|
|
9499
9579
|
I.removeAttribute("data-pygmalion-sandbox-replay");
|
|
9500
9580
|
});
|
|
9501
9581
|
continue;
|
|
@@ -9503,7 +9583,7 @@ function xf({
|
|
|
9503
9583
|
if (he.children === "nodes") {
|
|
9504
9584
|
C.push(
|
|
9505
9585
|
"Components that use node children cannot be safely replayed in a frozen sandbox."
|
|
9506
|
-
), J += 1, I.setAttribute("data-pygmalion-sandbox-replay", "stale"),
|
|
9586
|
+
), J += 1, I.setAttribute("data-pygmalion-sandbox-replay", "stale"), k.push(() => {
|
|
9507
9587
|
I.removeAttribute("data-pygmalion-sandbox-replay");
|
|
9508
9588
|
});
|
|
9509
9589
|
continue;
|
|
@@ -9513,17 +9593,17 @@ function xf({
|
|
|
9513
9593
|
const Hr = I.hasAttribute("hidden");
|
|
9514
9594
|
I.setAttribute("hidden", ""), I.setAttribute("data-pygmalion-sandbox-replay", "source");
|
|
9515
9595
|
let ht = Xi(we);
|
|
9516
|
-
const
|
|
9596
|
+
const ea = () => {
|
|
9517
9597
|
const pe = ht;
|
|
9518
9598
|
ht = null, we.remove(), I.toggleAttribute("hidden", Hr), I.removeAttribute("data-pygmalion-sandbox-replay"), pe && queueMicrotask(() => pe.unmount());
|
|
9519
9599
|
};
|
|
9520
|
-
|
|
9600
|
+
k.push(ea);
|
|
9521
9601
|
const Kr = (pe) => {
|
|
9522
9602
|
if (l.current !== A) return;
|
|
9523
9603
|
J += 1;
|
|
9524
|
-
const
|
|
9525
|
-
C.push(Ur), we.setAttribute("data-pygmalion-sandbox-replay", "stale"), I.toggleAttribute("hidden", Hr), v("stale"), f((
|
|
9526
|
-
const Wr = [.../* @__PURE__ */ new Set([...
|
|
9604
|
+
const ta = pe instanceof Error ? pe.message : String(pe), Ur = `Component sandbox rendering failed:${$.name} · ${ta}`;
|
|
9605
|
+
C.push(Ur), we.setAttribute("data-pygmalion-sandbox-replay", "stale"), I.toggleAttribute("hidden", Hr), v("stale"), f((na) => {
|
|
9606
|
+
const Wr = [.../* @__PURE__ */ new Set([...na, Ur])];
|
|
9527
9607
|
return s == null || s(Wr), Wr;
|
|
9528
9608
|
});
|
|
9529
9609
|
};
|
|
@@ -9531,7 +9611,7 @@ function xf({
|
|
|
9531
9611
|
const pe = he.children === "text" ? $.childrenText : void 0;
|
|
9532
9612
|
ht == null || ht.render(
|
|
9533
9613
|
Gt(
|
|
9534
|
-
|
|
9614
|
+
Mf,
|
|
9535
9615
|
{ onError: Kr },
|
|
9536
9616
|
Gt(
|
|
9537
9617
|
he.component,
|
|
@@ -9547,44 +9627,44 @@ function xf({
|
|
|
9547
9627
|
}
|
|
9548
9628
|
if (N.hidden != null) {
|
|
9549
9629
|
const $ = I.hasAttribute("hidden");
|
|
9550
|
-
I.toggleAttribute("hidden", N.hidden),
|
|
9630
|
+
I.toggleAttribute("hidden", N.hidden), k.push(() => I.toggleAttribute("hidden", $));
|
|
9551
9631
|
}
|
|
9552
9632
|
if (N.attributes)
|
|
9553
9633
|
for (const [$, he] of Object.entries(N.attributes)) {
|
|
9554
9634
|
const we = I.getAttribute($);
|
|
9555
|
-
he == null ? I.removeAttribute($) : I.setAttribute($, he),
|
|
9635
|
+
he == null ? I.removeAttribute($) : I.setAttribute($, he), k.push(() => {
|
|
9556
9636
|
we == null ? I.removeAttribute($) : I.setAttribute($, we);
|
|
9557
9637
|
});
|
|
9558
9638
|
}
|
|
9559
9639
|
if (N.replaceChildrenHtml != null) {
|
|
9560
9640
|
const $ = I.innerHTML;
|
|
9561
|
-
I.innerHTML = N.replaceChildrenHtml,
|
|
9641
|
+
I.innerHTML = N.replaceChildrenHtml, k.push(() => {
|
|
9562
9642
|
I.innerHTML = $;
|
|
9563
9643
|
});
|
|
9564
9644
|
}
|
|
9565
9645
|
if (N.text == null) continue;
|
|
9566
9646
|
if (N.textNodeOrdinal == null) {
|
|
9567
9647
|
const $ = I.textContent;
|
|
9568
|
-
I.textContent = N.text,
|
|
9648
|
+
I.textContent = N.text, k.push(() => {
|
|
9569
9649
|
I.textContent = $;
|
|
9570
9650
|
});
|
|
9571
9651
|
continue;
|
|
9572
9652
|
}
|
|
9573
|
-
const
|
|
9653
|
+
const Zo = ((Br = S.defaultView) == null ? void 0 : Br.Node.TEXT_NODE) ?? 3, $t = [...I.childNodes].filter(
|
|
9574
9654
|
($) => {
|
|
9575
9655
|
var he;
|
|
9576
|
-
return $.nodeType ===
|
|
9656
|
+
return $.nodeType === Zo && !!((he = $.textContent) != null && he.trim());
|
|
9577
9657
|
}
|
|
9578
9658
|
)[N.textNodeOrdinal];
|
|
9579
9659
|
if (!$t) continue;
|
|
9580
|
-
const
|
|
9581
|
-
$t.textContent = N.text,
|
|
9582
|
-
$t.textContent =
|
|
9660
|
+
const Qo = $t.textContent;
|
|
9661
|
+
$t.textContent = N.text, k.push(() => {
|
|
9662
|
+
$t.textContent = Qo;
|
|
9583
9663
|
});
|
|
9584
9664
|
}
|
|
9585
9665
|
}
|
|
9586
9666
|
a.current = () => {
|
|
9587
|
-
for (const N of
|
|
9667
|
+
for (const N of k.reverse()) N();
|
|
9588
9668
|
};
|
|
9589
9669
|
const Pe = [...new Set(C)];
|
|
9590
9670
|
v(
|
|
@@ -9622,7 +9702,7 @@ function xf({
|
|
|
9622
9702
|
if (!S) return;
|
|
9623
9703
|
c.current();
|
|
9624
9704
|
const A = S.contentDocument;
|
|
9625
|
-
c.current = t.heightMode === "document" && A ?
|
|
9705
|
+
c.current = t.heightMode === "document" && A ? ku(A, (C) => {
|
|
9626
9706
|
var M;
|
|
9627
9707
|
(M = u.current) == null || M.call(u, C);
|
|
9628
9708
|
}) : () => {
|
|
@@ -9668,140 +9748,140 @@ function xf({
|
|
|
9668
9748
|
}
|
|
9669
9749
|
);
|
|
9670
9750
|
}
|
|
9671
|
-
const
|
|
9751
|
+
const Bh = Iu(Cf);
|
|
9672
9752
|
export {
|
|
9673
|
-
|
|
9674
|
-
|
|
9675
|
-
|
|
9676
|
-
|
|
9753
|
+
Pd as $,
|
|
9754
|
+
dh as A,
|
|
9755
|
+
ih as B,
|
|
9756
|
+
ph as C,
|
|
9677
9757
|
me as D,
|
|
9678
9758
|
Gi as E,
|
|
9679
|
-
|
|
9759
|
+
Cf as F,
|
|
9680
9760
|
D as G,
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
|
|
9761
|
+
gh as H,
|
|
9762
|
+
bh as I,
|
|
9763
|
+
yh as J,
|
|
9764
|
+
rl as K,
|
|
9765
|
+
nl as L,
|
|
9766
|
+
Jf as M,
|
|
9687
9767
|
R as N,
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9768
|
+
Eh as O,
|
|
9769
|
+
Sh as P,
|
|
9770
|
+
Oh as Q,
|
|
9691
9771
|
_e as R,
|
|
9692
|
-
|
|
9772
|
+
_h as S,
|
|
9693
9773
|
to as T,
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9774
|
+
ku as U,
|
|
9775
|
+
Md as V,
|
|
9776
|
+
Ad as W,
|
|
9777
|
+
Bh as X,
|
|
9778
|
+
hd as Y,
|
|
9779
|
+
zd as Z,
|
|
9780
|
+
Lu as _,
|
|
9781
|
+
zf as a,
|
|
9782
|
+
vd as a$,
|
|
9783
|
+
Nd as a0,
|
|
9784
|
+
Ro as a1,
|
|
9705
9785
|
Rs as a2,
|
|
9706
|
-
|
|
9707
|
-
|
|
9786
|
+
Rc as a3,
|
|
9787
|
+
Jd as a4,
|
|
9708
9788
|
He as a5,
|
|
9709
|
-
|
|
9710
|
-
|
|
9789
|
+
Vf as a6,
|
|
9790
|
+
Uu as a7,
|
|
9711
9791
|
wi as a8,
|
|
9712
9792
|
se as a9,
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9793
|
+
qf as aA,
|
|
9794
|
+
Ff as aB,
|
|
9795
|
+
jf as aC,
|
|
9796
|
+
Hf as aD,
|
|
9797
|
+
Ed as aE,
|
|
9798
|
+
jd as aF,
|
|
9799
|
+
Fd as aG,
|
|
9800
|
+
Nh as aH,
|
|
9801
|
+
Lh as aI,
|
|
9802
|
+
wh as aJ,
|
|
9803
|
+
Zf as aK,
|
|
9804
|
+
hh as aL,
|
|
9805
|
+
$h as aM,
|
|
9806
|
+
nh as aN,
|
|
9807
|
+
Ud as aO,
|
|
9808
|
+
Cd as aP,
|
|
9809
|
+
Ld as aQ,
|
|
9810
|
+
Kf as aR,
|
|
9811
|
+
Dd as aS,
|
|
9812
|
+
Xd as aT,
|
|
9813
|
+
Vd as aU,
|
|
9814
|
+
Hd as aV,
|
|
9815
|
+
Gd as aW,
|
|
9816
|
+
Yd as aX,
|
|
9737
9817
|
nt as aY,
|
|
9738
|
-
|
|
9739
|
-
|
|
9818
|
+
Yu as aZ,
|
|
9819
|
+
Od as a_,
|
|
9740
9820
|
ze as aa,
|
|
9741
9821
|
Js as ab,
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9822
|
+
Wd as ac,
|
|
9823
|
+
qo as ad,
|
|
9824
|
+
qd as ae,
|
|
9825
|
+
Kd as af,
|
|
9746
9826
|
Ri as ag,
|
|
9747
9827
|
br as ah,
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9828
|
+
Bd as ai,
|
|
9829
|
+
rh as aj,
|
|
9830
|
+
Dh as ak,
|
|
9831
|
+
Mh as al,
|
|
9832
|
+
kh as am,
|
|
9833
|
+
yl as an,
|
|
9834
|
+
_l as ao,
|
|
9835
|
+
hl as ap,
|
|
9836
|
+
Ah as aq,
|
|
9837
|
+
Ih as ar,
|
|
9838
|
+
wl as as,
|
|
9839
|
+
Ol as at,
|
|
9840
|
+
Th as au,
|
|
9841
|
+
Ch as av,
|
|
9842
|
+
eh as aw,
|
|
9843
|
+
th as ax,
|
|
9844
|
+
Xo as ay,
|
|
9845
|
+
Yf as az,
|
|
9766
9846
|
On as b,
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9847
|
+
md as b0,
|
|
9848
|
+
gd as b1,
|
|
9849
|
+
ah as b2,
|
|
9850
|
+
Mo as b3,
|
|
9851
|
+
$d as b4,
|
|
9852
|
+
oh as b5,
|
|
9853
|
+
Qf as b6,
|
|
9854
|
+
Ph as b7,
|
|
9855
|
+
xh as b8,
|
|
9856
|
+
Xf as b9,
|
|
9857
|
+
Rh as ba,
|
|
9858
|
+
vh as bb,
|
|
9859
|
+
jh as bc,
|
|
9860
|
+
Fh as bd,
|
|
9861
|
+
zh as be,
|
|
9862
|
+
Vh as bf,
|
|
9783
9863
|
Gs as c,
|
|
9784
|
-
|
|
9864
|
+
qu as d,
|
|
9785
9865
|
Gn as e,
|
|
9786
|
-
|
|
9866
|
+
Uf as f,
|
|
9787
9867
|
ae as g,
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9868
|
+
Bf as h,
|
|
9869
|
+
Uo as i,
|
|
9870
|
+
Td as j,
|
|
9871
|
+
Ko as k,
|
|
9872
|
+
kd as l,
|
|
9793
9873
|
Ii as m,
|
|
9794
|
-
|
|
9874
|
+
Gf as n,
|
|
9795
9875
|
un as o,
|
|
9796
|
-
|
|
9797
|
-
|
|
9876
|
+
Wf as p,
|
|
9877
|
+
Iu as q,
|
|
9798
9878
|
oe as r,
|
|
9799
9879
|
B as s,
|
|
9800
|
-
|
|
9880
|
+
sh as t,
|
|
9801
9881
|
ms as u,
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9882
|
+
uh as v,
|
|
9883
|
+
mh as w,
|
|
9884
|
+
ch as x,
|
|
9885
|
+
lh as y,
|
|
9886
|
+
fh as z
|
|
9807
9887
|
};
|