@gamelearn/arcade-components 3.34.0 → 3.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,14 +116,14 @@ function requireReactJsxRuntime_development() {
|
|
|
116
116
|
var b = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
117
117
|
function R(de) {
|
|
118
118
|
{
|
|
119
|
-
for (var be = arguments.length, Be = new Array(be > 1 ? be - 1 : 0),
|
|
120
|
-
Be[
|
|
119
|
+
for (var be = arguments.length, Be = new Array(be > 1 ? be - 1 : 0), et = 1; et < be; et++)
|
|
120
|
+
Be[et - 1] = arguments[et];
|
|
121
121
|
y("error", de, Be);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function y(de, be, Be) {
|
|
125
125
|
{
|
|
126
|
-
var
|
|
126
|
+
var et = b.ReactDebugCurrentFrame, gt = et.getStackAddendum();
|
|
127
127
|
gt !== "" && (be += "%s", Be = Be.concat([gt]));
|
|
128
128
|
var Dt = Be.map(function(_t) {
|
|
129
129
|
return String(_t);
|
|
@@ -140,9 +140,9 @@ function requireReactJsxRuntime_development() {
|
|
|
140
140
|
de.$$typeof === k || de.getModuleId !== void 0));
|
|
141
141
|
}
|
|
142
142
|
function M(de, be, Be) {
|
|
143
|
-
var
|
|
144
|
-
if (
|
|
145
|
-
return
|
|
143
|
+
var et = de.displayName;
|
|
144
|
+
if (et)
|
|
145
|
+
return et;
|
|
146
146
|
var gt = be.displayName || be.name || "";
|
|
147
147
|
return gt !== "" ? Be + "(" + gt + ")" : Be;
|
|
148
148
|
}
|
|
@@ -181,8 +181,8 @@ function requireReactJsxRuntime_development() {
|
|
|
181
181
|
case f:
|
|
182
182
|
return M(de, de.render, "ForwardRef");
|
|
183
183
|
case x:
|
|
184
|
-
var
|
|
185
|
-
return
|
|
184
|
+
var et = de.displayName || null;
|
|
185
|
+
return et !== null ? et : B(de.type) || "Memo";
|
|
186
186
|
case T: {
|
|
187
187
|
var gt = de, Dt = gt._payload, _t = gt._init;
|
|
188
188
|
try {
|
|
@@ -263,8 +263,8 @@ function requireReactJsxRuntime_development() {
|
|
|
263
263
|
try {
|
|
264
264
|
throw Error();
|
|
265
265
|
} catch (gt) {
|
|
266
|
-
var
|
|
267
|
-
G =
|
|
266
|
+
var et = gt.stack.trim().match(/\n( *(at )?)/);
|
|
267
|
+
G = et && et[1] || "";
|
|
268
268
|
}
|
|
269
269
|
return `
|
|
270
270
|
` + G + de;
|
|
@@ -283,7 +283,7 @@ function requireReactJsxRuntime_development() {
|
|
|
283
283
|
if (Be !== void 0)
|
|
284
284
|
return Be;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
286
|
+
var et;
|
|
287
287
|
ie = !0;
|
|
288
288
|
var gt = Error.prepareStackTrace;
|
|
289
289
|
Error.prepareStackTrace = void 0;
|
|
@@ -302,14 +302,14 @@ function requireReactJsxRuntime_development() {
|
|
|
302
302
|
try {
|
|
303
303
|
Reflect.construct(_t, []);
|
|
304
304
|
} catch (zn) {
|
|
305
|
-
|
|
305
|
+
et = zn;
|
|
306
306
|
}
|
|
307
307
|
Reflect.construct(de, [], _t);
|
|
308
308
|
} else {
|
|
309
309
|
try {
|
|
310
310
|
_t.call();
|
|
311
311
|
} catch (zn) {
|
|
312
|
-
|
|
312
|
+
et = zn;
|
|
313
313
|
}
|
|
314
314
|
de.call(_t.prototype);
|
|
315
315
|
}
|
|
@@ -317,14 +317,14 @@ function requireReactJsxRuntime_development() {
|
|
|
317
317
|
try {
|
|
318
318
|
throw Error();
|
|
319
319
|
} catch (zn) {
|
|
320
|
-
|
|
320
|
+
et = zn;
|
|
321
321
|
}
|
|
322
322
|
de();
|
|
323
323
|
}
|
|
324
324
|
} catch (zn) {
|
|
325
|
-
if (zn &&
|
|
325
|
+
if (zn && et && typeof zn.stack == "string") {
|
|
326
326
|
for (var yt = zn.stack.split(`
|
|
327
|
-
`), Mt =
|
|
327
|
+
`), Mt = et.stack.split(`
|
|
328
328
|
`), Lt = yt.length - 1, Bt = Mt.length - 1; Lt >= 1 && Bt >= 0 && yt[Lt] !== Mt[Bt]; )
|
|
329
329
|
Bt--;
|
|
330
330
|
for (; Lt >= 1 && Bt >= 0; Lt--, Bt--)
|
|
@@ -373,7 +373,7 @@ function requireReactJsxRuntime_development() {
|
|
|
373
373
|
case x:
|
|
374
374
|
return Re(de.type, be, Be);
|
|
375
375
|
case T: {
|
|
376
|
-
var
|
|
376
|
+
var et = de, gt = et._payload, Dt = et._init;
|
|
377
377
|
try {
|
|
378
378
|
return Re(Dt(gt), be, Be);
|
|
379
379
|
} catch {
|
|
@@ -383,14 +383,14 @@ function requireReactJsxRuntime_development() {
|
|
|
383
383
|
return "";
|
|
384
384
|
}
|
|
385
385
|
var Fe = Object.prototype.hasOwnProperty, De = {}, Je = b.ReactDebugCurrentFrame;
|
|
386
|
-
function
|
|
386
|
+
function ut(de) {
|
|
387
387
|
if (de) {
|
|
388
388
|
var be = de._owner, Be = Re(de.type, de._source, be ? be.type : null);
|
|
389
389
|
Je.setExtraStackFrame(Be);
|
|
390
390
|
} else
|
|
391
391
|
Je.setExtraStackFrame(null);
|
|
392
392
|
}
|
|
393
|
-
function Ze(de, be, Be,
|
|
393
|
+
function Ze(de, be, Be, et, gt) {
|
|
394
394
|
{
|
|
395
395
|
var Dt = Function.call.bind(Fe);
|
|
396
396
|
for (var _t in de)
|
|
@@ -398,14 +398,14 @@ function requireReactJsxRuntime_development() {
|
|
|
398
398
|
var yt = void 0;
|
|
399
399
|
try {
|
|
400
400
|
if (typeof de[_t] != "function") {
|
|
401
|
-
var Mt = Error((
|
|
401
|
+
var Mt = Error((et || "React class") + ": " + Be + " type `" + _t + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof de[_t] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
402
402
|
throw Mt.name = "Invariant Violation", Mt;
|
|
403
403
|
}
|
|
404
|
-
yt = de[_t](be, _t,
|
|
404
|
+
yt = de[_t](be, _t, et, Be, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
405
405
|
} catch (Lt) {
|
|
406
406
|
yt = Lt;
|
|
407
407
|
}
|
|
408
|
-
yt && !(yt instanceof Error) && (
|
|
408
|
+
yt && !(yt instanceof Error) && (ut(gt), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", et || "React class", Be, _t, typeof yt), ut(null)), yt instanceof Error && !(yt.message in De) && (De[yt.message] = !0, ut(gt), R("Failed %s type: %s", Be, yt.message), ut(null));
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
}
|
|
@@ -438,7 +438,7 @@ function requireReactJsxRuntime_development() {
|
|
|
438
438
|
ref: !0,
|
|
439
439
|
__self: !0,
|
|
440
440
|
__source: !0
|
|
441
|
-
}, qe,
|
|
441
|
+
}, qe, ct, ze;
|
|
442
442
|
ze = {};
|
|
443
443
|
function at(de) {
|
|
444
444
|
if (Fe.call(de, "ref")) {
|
|
@@ -476,7 +476,7 @@ function requireReactJsxRuntime_development() {
|
|
|
476
476
|
function Te(de, be) {
|
|
477
477
|
{
|
|
478
478
|
var Be = function() {
|
|
479
|
-
|
|
479
|
+
ct || (ct = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", be));
|
|
480
480
|
};
|
|
481
481
|
Be.isReactWarning = !0, Object.defineProperty(de, "ref", {
|
|
482
482
|
get: Be,
|
|
@@ -484,7 +484,7 @@ function requireReactJsxRuntime_development() {
|
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
var _e = function(de, be, Be,
|
|
487
|
+
var _e = function(de, be, Be, et, gt, Dt, _t) {
|
|
488
488
|
var yt = {
|
|
489
489
|
// This tag allows us to uniquely identify this as a React Element
|
|
490
490
|
$$typeof: e,
|
|
@@ -505,7 +505,7 @@ function requireReactJsxRuntime_development() {
|
|
|
505
505
|
configurable: !1,
|
|
506
506
|
enumerable: !1,
|
|
507
507
|
writable: !1,
|
|
508
|
-
value:
|
|
508
|
+
value: et
|
|
509
509
|
}), Object.defineProperty(yt, "_source", {
|
|
510
510
|
configurable: !1,
|
|
511
511
|
enumerable: !1,
|
|
@@ -513,7 +513,7 @@ function requireReactJsxRuntime_development() {
|
|
|
513
513
|
value: gt
|
|
514
514
|
}), Object.freeze && (Object.freeze(yt.props), Object.freeze(yt)), yt;
|
|
515
515
|
};
|
|
516
|
-
function Oe(de, be, Be,
|
|
516
|
+
function Oe(de, be, Be, et, gt) {
|
|
517
517
|
{
|
|
518
518
|
var Dt, _t = {}, yt = null, Mt = null;
|
|
519
519
|
Be !== void 0 && (ke(Be), yt = "" + Be), ft(be) && (ke(be.key), yt = "" + be.key), at(be) && (Mt = be.ref, $e(be, gt));
|
|
@@ -528,7 +528,7 @@ function requireReactJsxRuntime_development() {
|
|
|
528
528
|
var Bt = typeof de == "function" ? de.displayName || de.name || "Unknown" : de;
|
|
529
529
|
yt && Ne(_t, Bt), Mt && Te(_t, Bt);
|
|
530
530
|
}
|
|
531
|
-
return _e(de, yt, Mt, gt,
|
|
531
|
+
return _e(de, yt, Mt, gt, et, Qe.current, _t);
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
var Ke = b.ReactCurrentOwner, Ft = b.ReactDebugCurrentFrame;
|
|
@@ -568,7 +568,7 @@ Check your code at ` + be + ":" + Be + ".";
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
var Ge = {};
|
|
571
|
-
function
|
|
571
|
+
function nt(de) {
|
|
572
572
|
{
|
|
573
573
|
var be = Pt();
|
|
574
574
|
if (!be) {
|
|
@@ -585,12 +585,12 @@ Check the top-level render call using <` + Be + ">.");
|
|
|
585
585
|
if (!de._store || de._store.validated || de.key != null)
|
|
586
586
|
return;
|
|
587
587
|
de._store.validated = !0;
|
|
588
|
-
var Be =
|
|
588
|
+
var Be = nt(be);
|
|
589
589
|
if (Ge[Be])
|
|
590
590
|
return;
|
|
591
591
|
Ge[Be] = !0;
|
|
592
|
-
var
|
|
593
|
-
de && de._owner && de._owner !== Ke.current && (
|
|
592
|
+
var et = "";
|
|
593
|
+
de && de._owner && de._owner !== Ke.current && (et = " It was passed a child from " + B(de._owner.type) + "."), Nt(de), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Be, et), Nt(null);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
function Ae(de, be) {
|
|
@@ -599,8 +599,8 @@ Check the top-level render call using <` + Be + ">.");
|
|
|
599
599
|
return;
|
|
600
600
|
if (Ve(de))
|
|
601
601
|
for (var Be = 0; Be < de.length; Be++) {
|
|
602
|
-
var
|
|
603
|
-
vt(
|
|
602
|
+
var et = de[Be];
|
|
603
|
+
vt(et) && Et(et, be);
|
|
604
604
|
}
|
|
605
605
|
else if (vt(de))
|
|
606
606
|
de._store && (de._store.validated = !0);
|
|
@@ -612,7 +612,7 @@ Check the top-level render call using <` + Be + ">.");
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function lt(de) {
|
|
616
616
|
{
|
|
617
617
|
var be = de.type;
|
|
618
618
|
if (be == null || typeof be == "string")
|
|
@@ -627,8 +627,8 @@ Check the top-level render call using <` + Be + ">.");
|
|
|
627
627
|
else
|
|
628
628
|
return;
|
|
629
629
|
if (Be) {
|
|
630
|
-
var
|
|
631
|
-
Ze(Be, de.props, "prop",
|
|
630
|
+
var et = B(be);
|
|
631
|
+
Ze(Be, de.props, "prop", et, de);
|
|
632
632
|
} else if (be.PropTypes !== void 0 && !je) {
|
|
633
633
|
je = !0;
|
|
634
634
|
var gt = B(be);
|
|
@@ -640,16 +640,16 @@ Check the top-level render call using <` + Be + ">.");
|
|
|
640
640
|
function it(de) {
|
|
641
641
|
{
|
|
642
642
|
for (var be = Object.keys(de.props), Be = 0; Be < be.length; Be++) {
|
|
643
|
-
var
|
|
644
|
-
if (
|
|
645
|
-
Nt(de), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
643
|
+
var et = be[Be];
|
|
644
|
+
if (et !== "children" && et !== "key") {
|
|
645
|
+
Nt(de), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", et), Nt(null);
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
de.ref !== null && (Nt(de), R("Invalid attribute `ref` supplied to `React.Fragment`."), Nt(null));
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function ve(de, be, Be,
|
|
652
|
+
function ve(de, be, Be, et, gt, Dt) {
|
|
653
653
|
{
|
|
654
654
|
var _t = F(de);
|
|
655
655
|
if (!_t) {
|
|
@@ -666,7 +666,7 @@ Check the top-level render call using <` + Be + ">.");
|
|
|
666
666
|
if (_t) {
|
|
667
667
|
var Xt = be.children;
|
|
668
668
|
if (Xt !== void 0)
|
|
669
|
-
if (
|
|
669
|
+
if (et)
|
|
670
670
|
if (Ve(Xt)) {
|
|
671
671
|
for (var An = 0; An < Xt.length; An++)
|
|
672
672
|
Ae(Xt[An], de);
|
|
@@ -676,7 +676,7 @@ Check the top-level render call using <` + Be + ">.");
|
|
|
676
676
|
else
|
|
677
677
|
Ae(Xt, de);
|
|
678
678
|
}
|
|
679
|
-
return de === t ? it(Bt) :
|
|
679
|
+
return de === t ? it(Bt) : lt(Bt), Bt;
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
function ee(de, be, Be) {
|
|
@@ -1408,10 +1408,10 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
1410
|
e.FeatureTest = Je;
|
|
1411
|
-
const
|
|
1411
|
+
const ut = [...Array(256).keys()].map((Ne) => Ne.toString(16).padStart(2, "0"));
|
|
1412
1412
|
class Ze {
|
|
1413
1413
|
static makeHexColor(Te, _e, Oe) {
|
|
1414
|
-
return `#${
|
|
1414
|
+
return `#${ut[Te]}${ut[_e]}${ut[Oe]}`;
|
|
1415
1415
|
}
|
|
1416
1416
|
static scaleMinMax(Te, _e) {
|
|
1417
1417
|
let Oe;
|
|
@@ -1453,15 +1453,15 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
1453
1453
|
}
|
|
1454
1454
|
static bezierBoundingBox(Te, _e, Oe, Ke, Ft, Nt, je, vt) {
|
|
1455
1455
|
const Pt = [], ot = [[], []];
|
|
1456
|
-
let Ge,
|
|
1456
|
+
let Ge, nt, Et, Ae, lt, it, ve, ee;
|
|
1457
1457
|
for (let de = 0; de < 2; ++de) {
|
|
1458
|
-
if (de === 0 ? (
|
|
1459
|
-
if (Math.abs(
|
|
1458
|
+
if (de === 0 ? (nt = 6 * Te - 12 * Oe + 6 * Ft, Ge = -3 * Te + 9 * Oe - 9 * Ft + 3 * je, Et = 3 * Oe - 3 * Te) : (nt = 6 * _e - 12 * Ke + 6 * Nt, Ge = -3 * _e + 9 * Ke - 9 * Nt + 3 * vt, Et = 3 * Ke - 3 * _e), Math.abs(Ge) < 1e-12) {
|
|
1459
|
+
if (Math.abs(nt) < 1e-12)
|
|
1460
1460
|
continue;
|
|
1461
|
-
Ae = -Et /
|
|
1461
|
+
Ae = -Et / nt, 0 < Ae && Ae < 1 && Pt.push(Ae);
|
|
1462
1462
|
continue;
|
|
1463
1463
|
}
|
|
1464
|
-
ve =
|
|
1464
|
+
ve = nt * nt - 4 * Et * Ge, ee = Math.sqrt(ve), !(ve < 0) && (lt = (-nt + ee) / (2 * Ge), 0 < lt && lt < 1 && Pt.push(lt), it = (-nt - ee) / (2 * Ge), 0 < it && it < 1 && Pt.push(it));
|
|
1465
1465
|
}
|
|
1466
1466
|
let pe = Pt.length, Ee;
|
|
1467
1467
|
const we = pe;
|
|
@@ -1528,9 +1528,9 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
1530
|
$e = new WeakMap(), e.PromiseCapability = bt;
|
|
1531
|
-
let qe = null,
|
|
1531
|
+
let qe = null, ct = null;
|
|
1532
1532
|
function ze(Ne) {
|
|
1533
|
-
return qe || (qe = /([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu,
|
|
1533
|
+
return qe || (qe = /([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu, ct = /* @__PURE__ */ new Map([["ſt", "ſt"]])), Ne.replaceAll(qe, (Te, _e, Oe) => _e ? _e.normalize("NFKC") : ct.get(Oe));
|
|
1534
1534
|
}
|
|
1535
1535
|
function at() {
|
|
1536
1536
|
if (typeof crypto < "u" && typeof (crypto == null ? void 0 : crypto.randomUUID) == "function")
|
|
@@ -1580,7 +1580,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
1580
1580
|
docId: F
|
|
1581
1581
|
} = k, M = P.url ? getUrlProp(P.url) : null, j = P.data ? getDataProp(P.data) : null, B = P.httpHeaders || null, z = P.withCredentials === !0, X = P.password ?? null, re = P.range instanceof PDFDataRangeTransport ? P.range : null, se = Number.isInteger(P.rangeChunkSize) && P.rangeChunkSize > 0 ? P.rangeChunkSize : DEFAULT_RANGE_CHUNK_SIZE;
|
|
1582
1582
|
let Z = P.worker instanceof PDFWorker ? P.worker : null;
|
|
1583
|
-
const K = P.verbosity, te = typeof P.docBaseUrl == "string" && !(0, _display_utils.isDataScheme)(P.docBaseUrl) ? P.docBaseUrl : null, ue = typeof P.cMapUrl == "string" ? P.cMapUrl : null, me = P.cMapPacked !== !1, J = P.CMapReaderFactory || DefaultCMapReaderFactory, H = typeof P.standardFontDataUrl == "string" ? P.standardFontDataUrl : null, W = P.StandardFontDataFactory || DefaultStandardFontDataFactory, V = P.stopAtErrors !== !0, G = Number.isInteger(P.maxImageSize) && P.maxImageSize > -1 ? P.maxImageSize : -1, Y = P.isEvalSupported !== !1, ie = typeof P.isOffscreenCanvasSupported == "boolean" ? P.isOffscreenCanvasSupported : !_util.isNodeJS, le = Number.isInteger(P.canvasMaxAreaInBytes) ? P.canvasMaxAreaInBytes : -1, fe = typeof P.disableFontFace == "boolean" ? P.disableFontFace : _util.isNodeJS, ce = P.fontExtraProperties === !0, ge = P.enableXfa === !0, Se = P.ownerDocument || globalThis.document, Re = P.disableRange === !0, Fe = P.disableStream === !0, De = P.disableAutoFetch === !0, Je = P.pdfBug === !0,
|
|
1583
|
+
const K = P.verbosity, te = typeof P.docBaseUrl == "string" && !(0, _display_utils.isDataScheme)(P.docBaseUrl) ? P.docBaseUrl : null, ue = typeof P.cMapUrl == "string" ? P.cMapUrl : null, me = P.cMapPacked !== !1, J = P.CMapReaderFactory || DefaultCMapReaderFactory, H = typeof P.standardFontDataUrl == "string" ? P.standardFontDataUrl : null, W = P.StandardFontDataFactory || DefaultStandardFontDataFactory, V = P.stopAtErrors !== !0, G = Number.isInteger(P.maxImageSize) && P.maxImageSize > -1 ? P.maxImageSize : -1, Y = P.isEvalSupported !== !1, ie = typeof P.isOffscreenCanvasSupported == "boolean" ? P.isOffscreenCanvasSupported : !_util.isNodeJS, le = Number.isInteger(P.canvasMaxAreaInBytes) ? P.canvasMaxAreaInBytes : -1, fe = typeof P.disableFontFace == "boolean" ? P.disableFontFace : _util.isNodeJS, ce = P.fontExtraProperties === !0, ge = P.enableXfa === !0, Se = P.ownerDocument || globalThis.document, Re = P.disableRange === !0, Fe = P.disableStream === !0, De = P.disableAutoFetch === !0, Je = P.pdfBug === !0, ut = re ? re.length : P.length ?? NaN, Ze = typeof P.useSystemFonts == "boolean" ? P.useSystemFonts : !_util.isNodeJS && !fe, xt = typeof P.useWorkerFetch == "boolean" ? P.useWorkerFetch : J === _display_utils.DOMCMapReaderFactory && W === _display_utils.DOMStandardFontDataFactory && ue && H && (0, _display_utils.isValidFetchUrl)(ue, document.baseURI) && (0, _display_utils.isValidFetchUrl)(H, document.baseURI), Ve = P.canvasFactory || new DefaultCanvasFactory({
|
|
1584
1584
|
ownerDocument: Se
|
|
1585
1585
|
}), Me = P.filterFactory || new DefaultFilterFactory({
|
|
1586
1586
|
docId: F,
|
|
@@ -1610,7 +1610,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
1610
1610
|
password: X,
|
|
1611
1611
|
disableAutoFetch: De,
|
|
1612
1612
|
rangeChunkSize: se,
|
|
1613
|
-
length:
|
|
1613
|
+
length: ut,
|
|
1614
1614
|
docBaseUrl: te,
|
|
1615
1615
|
enableXfa: ge,
|
|
1616
1616
|
evaluatorOptions: {
|
|
@@ -1639,10 +1639,10 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
1639
1639
|
return Z.promise.then(function() {
|
|
1640
1640
|
if (k.destroyed)
|
|
1641
1641
|
throw new Error("Loading aborted");
|
|
1642
|
-
const bt = _fetchDocument(Z, ke), qe = new Promise(function(
|
|
1642
|
+
const bt = _fetchDocument(Z, ke), qe = new Promise(function(ct) {
|
|
1643
1643
|
let ze;
|
|
1644
1644
|
re ? ze = new _transport_stream.PDFDataTransportStream({
|
|
1645
|
-
length:
|
|
1645
|
+
length: ut,
|
|
1646
1646
|
initialData: re.initialData,
|
|
1647
1647
|
progressiveDone: re.progressiveDone,
|
|
1648
1648
|
contentDispositionFilename: re.contentDispositionFilename,
|
|
@@ -1650,18 +1650,18 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
1650
1650
|
disableStream: Fe
|
|
1651
1651
|
}, re) : j || (ze = ((ft) => _util.isNodeJS ? new _displayNode_stream.PDFNodeStream(ft) : (0, _display_utils.isValidFetchUrl)(ft.url) ? new _displayFetch_stream.PDFFetchStream(ft) : new _displayNetwork.PDFNetworkStream(ft))({
|
|
1652
1652
|
url: M,
|
|
1653
|
-
length:
|
|
1653
|
+
length: ut,
|
|
1654
1654
|
httpHeaders: B,
|
|
1655
1655
|
withCredentials: z,
|
|
1656
1656
|
rangeChunkSize: se,
|
|
1657
1657
|
disableRange: Re,
|
|
1658
1658
|
disableStream: Fe
|
|
1659
|
-
})),
|
|
1659
|
+
})), ct(ze);
|
|
1660
1660
|
});
|
|
1661
|
-
return Promise.all([bt, qe]).then(function([
|
|
1661
|
+
return Promise.all([bt, qe]).then(function([ct, ze]) {
|
|
1662
1662
|
if (k.destroyed)
|
|
1663
1663
|
throw new Error("Loading aborted");
|
|
1664
|
-
const at = new _message_handler.MessageHandler(F,
|
|
1664
|
+
const at = new _message_handler.MessageHandler(F, ct, Z.port), ft = new WorkerTransport(at, k, ze, Qe, Ye);
|
|
1665
1665
|
k._transport = ft, at.send("Ready", null);
|
|
1666
1666
|
});
|
|
1667
1667
|
}).catch(k._capability.reject), k;
|
|
@@ -3529,10 +3529,10 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3529
3529
|
this.div.style.cursor = this.parent.div.style.cursor = window.getComputedStyle(G.target).cursor;
|
|
3530
3530
|
const Je = () => {
|
|
3531
3531
|
this._isDraggable = le, window.removeEventListener("pointerup", Je), window.removeEventListener("blur", Je), window.removeEventListener("pointermove", ie, fe), this.parent.div.style.cursor = Fe, this.div.style.cursor = De;
|
|
3532
|
-
const
|
|
3533
|
-
|
|
3532
|
+
const ut = this.x, Ze = this.y, xt = this.width, Ve = this.height;
|
|
3533
|
+
ut === ce && Ze === ge && xt === Se && Ve === Re || this.addCommands({
|
|
3534
3534
|
cmd: () => {
|
|
3535
|
-
this.width = xt, this.height = Ve, this.x =
|
|
3535
|
+
this.width = xt, this.height = Ve, this.x = ut, this.y = Ze;
|
|
3536
3536
|
const [Me, Le] = this.parentDimensions;
|
|
3537
3537
|
this.setDims(Me * xt, Le * Ve), this.fixAndSetPosition();
|
|
3538
3538
|
},
|
|
@@ -3546,7 +3546,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3546
3546
|
};
|
|
3547
3547
|
window.addEventListener("pointerup", Je), window.addEventListener("blur", Je);
|
|
3548
3548
|
}, Z = new WeakSet(), Yv = function(V, G) {
|
|
3549
|
-
const [Y, ie] = this.parentDimensions, le = this.x, fe = this.y, ce = this.width, ge = this.height, Se = H.MIN_SIZE / Y, Re = H.MIN_SIZE / ie, Fe = (Oe) => Math.round(Oe * 1e4) / 1e4, De = Ue(this, j, Nm).call(this, this.rotation), Je = (Oe, Ke) => [De[0] * Oe + De[2] * Ke, De[1] * Oe + De[3] * Ke],
|
|
3549
|
+
const [Y, ie] = this.parentDimensions, le = this.x, fe = this.y, ce = this.width, ge = this.height, Se = H.MIN_SIZE / Y, Re = H.MIN_SIZE / ie, Fe = (Oe) => Math.round(Oe * 1e4) / 1e4, De = Ue(this, j, Nm).call(this, this.rotation), Je = (Oe, Ke) => [De[0] * Oe + De[2] * Ke, De[1] * Oe + De[3] * Ke], ut = Ue(this, j, Nm).call(this, 360 - this.rotation), Ze = (Oe, Ke) => [ut[0] * Oe + ut[2] * Ke, ut[1] * Oe + ut[3] * Ke];
|
|
3550
3550
|
let xt, Ve, Me = !1, Le = !1;
|
|
3551
3551
|
switch (V) {
|
|
3552
3552
|
case "topLeft":
|
|
@@ -3577,13 +3577,13 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3577
3577
|
const Ye = xt(ce, ge), ke = Ve(ce, ge);
|
|
3578
3578
|
let Qe = Je(...ke);
|
|
3579
3579
|
const bt = Fe(le + Qe[0]), qe = Fe(fe + Qe[1]);
|
|
3580
|
-
let
|
|
3580
|
+
let ct = 1, ze = 1, [at, ft] = this.screenToPageTranslation(G.movementX, G.movementY);
|
|
3581
3581
|
if ([at, ft] = Ze(at / Y, ft / ie), Me) {
|
|
3582
3582
|
const Oe = Math.hypot(ce, ge);
|
|
3583
|
-
|
|
3583
|
+
ct = ze = Math.max(Math.min(Math.hypot(ke[0] - Ye[0] - at, ke[1] - Ye[1] - ft) / Oe, 1 / ce, 1 / ge), Se / ce, Re / ge);
|
|
3584
3584
|
} else
|
|
3585
|
-
Le ?
|
|
3586
|
-
const $e = Fe(ce *
|
|
3585
|
+
Le ? ct = Math.max(Se, Math.min(1, Math.abs(ke[0] - Ye[0] - at))) / ce : ze = Math.max(Re, Math.min(1, Math.abs(ke[1] - Ye[1] - ft))) / ge;
|
|
3586
|
+
const $e = Fe(ce * ct), Ne = Fe(ge * ze);
|
|
3587
3587
|
Qe = Je(...Ve($e, Ne));
|
|
3588
3588
|
const Te = bt - Qe[0], _e = qe - Qe[1];
|
|
3589
3589
|
this.width = $e, this.height = Ne, this.x = Te, this.y = _e, this.setDims(Y * $e, ie * Ne), this.fixAndSetPosition();
|
|
@@ -3665,7 +3665,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3665
3665
|
/* 5 */
|
|
3666
3666
|
/***/
|
|
3667
3667
|
(l, e, n) => {
|
|
3668
|
-
var _, S, g, v, b, km, w, C, D, N, P, Qv, M, j, B, z, X, re, se, Z, K, te, ue, me, J, H, W, V, G, Y, ie, le, fe, ce, ge, Se, Re, Fe, De, Je,
|
|
3668
|
+
var _, S, g, v, b, km, w, C, D, N, P, Qv, M, j, B, z, X, re, se, Z, K, te, ue, me, J, H, W, V, G, Y, ie, le, fe, ce, ge, Se, Re, Fe, De, Je, ut, Ze, xt, Ve, Me, Le, Ye, Jv, Qe, Fm, qe, Mm, ze, zf, ft, Lm, Ne, jm, _e, Zi, Ke, Oc, Nt, Zv, vt, ey, ot, Im, nt, kc, Ae, Um;
|
|
3669
3669
|
Object.defineProperty(e, "__esModule", {
|
|
3670
3670
|
value: !0
|
|
3671
3671
|
}), e.KeyboardManager = e.CommandManager = e.ColorManager = e.AnnotationEditorUIManager = void 0, e.bindEvents = o, e.opacityToHex = d;
|
|
@@ -3753,7 +3753,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3753
3753
|
} else
|
|
3754
3754
|
we = Ee.file = pe;
|
|
3755
3755
|
if (we.type === "image/svg+xml") {
|
|
3756
|
-
const de = y._isSVGFittingCanvas, be = new FileReader(), Be = new Image(),
|
|
3756
|
+
const de = y._isSVGFittingCanvas, be = new FileReader(), Be = new Image(), et = new Promise((gt, Dt) => {
|
|
3757
3757
|
Be.onload = () => {
|
|
3758
3758
|
Ee.bitmap = Be, Ee.isSvg = !0, gt();
|
|
3759
3759
|
}, be.onload = async () => {
|
|
@@ -3761,7 +3761,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3761
3761
|
Be.src = await de ? `${_t}#svgView(preserveAspectRatio(none))` : _t;
|
|
3762
3762
|
}, Be.onerror = be.onerror = Dt;
|
|
3763
3763
|
});
|
|
3764
|
-
be.readAsDataURL(we), await
|
|
3764
|
+
be.readAsDataURL(we), await et;
|
|
3765
3765
|
} else
|
|
3766
3766
|
Ee.bitmap = await createImageBitmap(we);
|
|
3767
3767
|
Ee.refCounter = 1;
|
|
@@ -3802,8 +3802,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3802
3802
|
be && (Be.undo = ne(this, w)[ne(this, N)].undo), ne(this, w)[ne(this, N)] = Be;
|
|
3803
3803
|
return;
|
|
3804
3804
|
}
|
|
3805
|
-
const
|
|
3806
|
-
|
|
3805
|
+
const et = ne(this, N) + 1;
|
|
3806
|
+
et === ne(this, D) ? ne(this, w).splice(0, 1) : (Xe(this, N, et), et < ne(this, w).length && ne(this, w).splice(et)), ne(this, w).push(Be);
|
|
3807
3807
|
}
|
|
3808
3808
|
undo() {
|
|
3809
3809
|
ne(this, N) !== -1 && (Xe(this, C, !0), ne(this, w)[ne(this, N)].undo(), Xe(this, C, !1), Xe(this, N, ne(this, N) - 1));
|
|
@@ -3898,7 +3898,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3898
3898
|
Ce(this, Nt);
|
|
3899
3899
|
Ce(this, vt);
|
|
3900
3900
|
Ce(this, ot);
|
|
3901
|
-
Ce(this,
|
|
3901
|
+
Ce(this, nt);
|
|
3902
3902
|
Ce(this, Ae);
|
|
3903
3903
|
Ce(this, M, null);
|
|
3904
3904
|
Ce(this, j, /* @__PURE__ */ new Map());
|
|
@@ -3928,7 +3928,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3928
3928
|
Ce(this, Fe, this.onEditingAction.bind(this));
|
|
3929
3929
|
Ce(this, De, this.onPageChanging.bind(this));
|
|
3930
3930
|
Ce(this, Je, this.onScaleChanging.bind(this));
|
|
3931
|
-
Ce(this,
|
|
3931
|
+
Ce(this, ut, this.onRotationChanging.bind(this));
|
|
3932
3932
|
Ce(this, Ze, {
|
|
3933
3933
|
isEditing: !1,
|
|
3934
3934
|
isEmpty: !0,
|
|
@@ -3940,7 +3940,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3940
3940
|
Ce(this, Ve, null);
|
|
3941
3941
|
Ce(this, Me, null);
|
|
3942
3942
|
Ce(this, Le, null);
|
|
3943
|
-
Xe(this, Me, ee), Xe(this, Le, pe), Xe(this, z, Ee), this._eventBus = we, this._eventBus._on("editingaction", ne(this, Fe)), this._eventBus._on("pagechanging", ne(this, De)), this._eventBus._on("scalechanging", ne(this, Je)), this._eventBus._on("rotationchanging", ne(this,
|
|
3943
|
+
Xe(this, Me, ee), Xe(this, Le, pe), Xe(this, z, Ee), this._eventBus = we, this._eventBus._on("editingaction", ne(this, Fe)), this._eventBus._on("pagechanging", ne(this, De)), this._eventBus._on("scalechanging", ne(this, Je)), this._eventBus._on("rotationchanging", ne(this, ut)), Xe(this, X, de.annotationStorage), Xe(this, me, de.filterFactory), Xe(this, ie, be), this.viewParameters = {
|
|
3944
3944
|
realScale: s.PixelsPerInch.PDF_TO_CSS_UNITS,
|
|
3945
3945
|
rotation: 0
|
|
3946
3946
|
};
|
|
@@ -3979,7 +3979,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
3979
3979
|
}]]));
|
|
3980
3980
|
}
|
|
3981
3981
|
destroy() {
|
|
3982
|
-
Ue(this, ze, zf).call(this), Ue(this, Qe, Fm).call(this), this._eventBus._off("editingaction", ne(this, Fe)), this._eventBus._off("pagechanging", ne(this, De)), this._eventBus._off("scalechanging", ne(this, Je)), this._eventBus._off("rotationchanging", ne(this,
|
|
3982
|
+
Ue(this, ze, zf).call(this), Ue(this, Qe, Fm).call(this), this._eventBus._off("editingaction", ne(this, Fe)), this._eventBus._off("pagechanging", ne(this, De)), this._eventBus._off("scalechanging", ne(this, Je)), this._eventBus._off("rotationchanging", ne(this, ut));
|
|
3983
3983
|
for (const ee of ne(this, B).values())
|
|
3984
3984
|
ee.destroy();
|
|
3985
3985
|
ne(this, B).clear(), ne(this, j).clear(), ne(this, ue).clear(), Xe(this, M, null), ne(this, Y).clear(), ne(this, re).destroy(), ne(this, z).destroy();
|
|
@@ -4107,19 +4107,19 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4107
4107
|
const we = this.currentLayer;
|
|
4108
4108
|
try {
|
|
4109
4109
|
const de = [];
|
|
4110
|
-
for (const
|
|
4111
|
-
const gt = we.deserialize(
|
|
4110
|
+
for (const et of Ee) {
|
|
4111
|
+
const gt = we.deserialize(et);
|
|
4112
4112
|
if (!gt)
|
|
4113
4113
|
return;
|
|
4114
4114
|
de.push(gt);
|
|
4115
4115
|
}
|
|
4116
4116
|
const be = () => {
|
|
4117
|
-
for (const
|
|
4118
|
-
Ue(this, ot, Im).call(this,
|
|
4117
|
+
for (const et of de)
|
|
4118
|
+
Ue(this, ot, Im).call(this, et);
|
|
4119
4119
|
Ue(this, Ae, Um).call(this, de);
|
|
4120
4120
|
}, Be = () => {
|
|
4121
|
-
for (const
|
|
4122
|
-
|
|
4121
|
+
for (const et of de)
|
|
4122
|
+
et.remove();
|
|
4123
4123
|
};
|
|
4124
4124
|
this.addCommands({
|
|
4125
4125
|
cmd: be,
|
|
@@ -4140,7 +4140,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4140
4140
|
setEditingState(ee) {
|
|
4141
4141
|
ee ? (Ue(this, Ye, Jv).call(this), Ue(this, qe, Mm).call(this), Ue(this, ft, Lm).call(this), Ue(this, _e, Zi).call(this, {
|
|
4142
4142
|
isEditing: ne(this, G) !== t.AnnotationEditorType.NONE,
|
|
4143
|
-
isEmpty: Ue(this,
|
|
4143
|
+
isEmpty: Ue(this, nt, kc).call(this),
|
|
4144
4144
|
hasSomethingToUndo: ne(this, re).hasSomethingToUndo(),
|
|
4145
4145
|
hasSomethingToRedo: ne(this, re).hasSomethingToRedo(),
|
|
4146
4146
|
hasSelectedEditor: !1
|
|
@@ -4277,21 +4277,21 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4277
4277
|
ne(this, re).undo(), Ue(this, _e, Zi).call(this, {
|
|
4278
4278
|
hasSomethingToUndo: ne(this, re).hasSomethingToUndo(),
|
|
4279
4279
|
hasSomethingToRedo: !0,
|
|
4280
|
-
isEmpty: Ue(this,
|
|
4280
|
+
isEmpty: Ue(this, nt, kc).call(this)
|
|
4281
4281
|
});
|
|
4282
4282
|
}
|
|
4283
4283
|
redo() {
|
|
4284
4284
|
ne(this, re).redo(), Ue(this, _e, Zi).call(this, {
|
|
4285
4285
|
hasSomethingToUndo: !0,
|
|
4286
4286
|
hasSomethingToRedo: ne(this, re).hasSomethingToRedo(),
|
|
4287
|
-
isEmpty: Ue(this,
|
|
4287
|
+
isEmpty: Ue(this, nt, kc).call(this)
|
|
4288
4288
|
});
|
|
4289
4289
|
}
|
|
4290
4290
|
addCommands(ee) {
|
|
4291
4291
|
ne(this, re).add(ee), Ue(this, _e, Zi).call(this, {
|
|
4292
4292
|
hasSomethingToUndo: !0,
|
|
4293
4293
|
hasSomethingToRedo: !1,
|
|
4294
|
-
isEmpty: Ue(this,
|
|
4294
|
+
isEmpty: Ue(this, nt, kc).call(this)
|
|
4295
4295
|
});
|
|
4296
4296
|
}
|
|
4297
4297
|
delete() {
|
|
@@ -4343,18 +4343,18 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4343
4343
|
ne(this, Ve) && clearTimeout(ne(this, Ve)), Xe(this, Ve, setTimeout(() => {
|
|
4344
4344
|
Xe(this, Ve, null), ne(this, xt)[0] = ne(this, xt)[1] = 0, this.addCommands({
|
|
4345
4345
|
cmd: () => {
|
|
4346
|
-
for (const
|
|
4347
|
-
ne(this, j).has(
|
|
4346
|
+
for (const et of be)
|
|
4347
|
+
ne(this, j).has(et.id) && et.translateInPage(we, de);
|
|
4348
4348
|
},
|
|
4349
4349
|
undo: () => {
|
|
4350
|
-
for (const
|
|
4351
|
-
ne(this, j).has(
|
|
4350
|
+
for (const et of be)
|
|
4351
|
+
ne(this, j).has(et.id) && et.translateInPage(-we, -de);
|
|
4352
4352
|
},
|
|
4353
4353
|
mustExec: !1
|
|
4354
4354
|
});
|
|
4355
4355
|
}, Be));
|
|
4356
|
-
for (const
|
|
4357
|
-
|
|
4356
|
+
for (const et of be)
|
|
4357
|
+
et.translateInPage(ee, pe);
|
|
4358
4358
|
}
|
|
4359
4359
|
setUpDragSession() {
|
|
4360
4360
|
if (this.hasSelection) {
|
|
@@ -4387,8 +4387,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4387
4387
|
return !1;
|
|
4388
4388
|
const Ee = (we, de, be, Be) => {
|
|
4389
4389
|
if (ne(this, j).has(we.id)) {
|
|
4390
|
-
const
|
|
4391
|
-
|
|
4390
|
+
const et = ne(this, B).get(Be);
|
|
4391
|
+
et ? we._setParentAndPosition(et, de, be) : (we.pageIndex = Be, we.x = de, we.y = be);
|
|
4392
4392
|
}
|
|
4393
4393
|
};
|
|
4394
4394
|
return this.addCommands({
|
|
@@ -4436,7 +4436,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4436
4436
|
return (0, t.shadow)(this, "imageManager", new f());
|
|
4437
4437
|
}
|
|
4438
4438
|
};
|
|
4439
|
-
M = new WeakMap(), j = new WeakMap(), B = new WeakMap(), z = new WeakMap(), X = new WeakMap(), re = new WeakMap(), se = new WeakMap(), Z = new WeakMap(), K = new WeakMap(), te = new WeakMap(), ue = new WeakMap(), me = new WeakMap(), J = new WeakMap(), H = new WeakMap(), W = new WeakMap(), V = new WeakMap(), G = new WeakMap(), Y = new WeakMap(), ie = new WeakMap(), le = new WeakMap(), fe = new WeakMap(), ce = new WeakMap(), ge = new WeakMap(), Se = new WeakMap(), Re = new WeakMap(), Fe = new WeakMap(), De = new WeakMap(), Je = new WeakMap(),
|
|
4439
|
+
M = new WeakMap(), j = new WeakMap(), B = new WeakMap(), z = new WeakMap(), X = new WeakMap(), re = new WeakMap(), se = new WeakMap(), Z = new WeakMap(), K = new WeakMap(), te = new WeakMap(), ue = new WeakMap(), me = new WeakMap(), J = new WeakMap(), H = new WeakMap(), W = new WeakMap(), V = new WeakMap(), G = new WeakMap(), Y = new WeakMap(), ie = new WeakMap(), le = new WeakMap(), fe = new WeakMap(), ce = new WeakMap(), ge = new WeakMap(), Se = new WeakMap(), Re = new WeakMap(), Fe = new WeakMap(), De = new WeakMap(), Je = new WeakMap(), ut = new WeakMap(), Ze = new WeakMap(), xt = new WeakMap(), Ve = new WeakMap(), Me = new WeakMap(), Le = new WeakMap(), Ye = new WeakSet(), Jv = function() {
|
|
4440
4440
|
window.addEventListener("focus", ne(this, fe)), window.addEventListener("blur", ne(this, le));
|
|
4441
4441
|
}, Qe = new WeakSet(), Fm = function() {
|
|
4442
4442
|
window.removeEventListener("focus", ne(this, fe)), window.removeEventListener("blur", ne(this, le));
|
|
@@ -4477,7 +4477,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4477
4477
|
}, ot = new WeakSet(), Im = function(ee) {
|
|
4478
4478
|
const pe = ne(this, B).get(ee.pageIndex);
|
|
4479
4479
|
pe ? pe.addOrRebuild(ee) : this.addEditor(ee);
|
|
4480
|
-
},
|
|
4480
|
+
}, nt = new WeakSet(), kc = function() {
|
|
4481
4481
|
if (ne(this, j).size === 0)
|
|
4482
4482
|
return !0;
|
|
4483
4483
|
if (ne(this, j).size === 1)
|
|
@@ -4554,9 +4554,9 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4554
4554
|
}
|
|
4555
4555
|
if (Ye = ne(this, Y, tu).get(qe), Ye)
|
|
4556
4556
|
return ne(this, Y, tu).set(Le, Ye), Ye;
|
|
4557
|
-
const
|
|
4557
|
+
const ct = `g_${ne(this, K)}_transfer_map_${Nc(this, G)._++}`, ze = `url(#${ct})`;
|
|
4558
4558
|
ne(this, Y, tu).set(Le, ze), ne(this, Y, tu).set(qe, ze);
|
|
4559
|
-
const at = Ue(this, Se, Gf).call(this,
|
|
4559
|
+
const at = Ue(this, Se, Gf).call(this, ct);
|
|
4560
4560
|
return Ue(this, Je, Fc).call(this, ke, Qe, bt, at), ze;
|
|
4561
4561
|
}
|
|
4562
4562
|
addHCMFilter(Le, Ye) {
|
|
@@ -4576,8 +4576,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4576
4576
|
const Te = Ne / 255;
|
|
4577
4577
|
qe[Ne] = Te <= 0.03928 ? Te / 12.92 : ((Te + 0.055) / 1.055) ** 2.4;
|
|
4578
4578
|
}
|
|
4579
|
-
const
|
|
4580
|
-
Ue(this, Je, Fc).call(this,
|
|
4579
|
+
const ct = qe.join(","), ze = `g_${ne(this, K)}_hcm_filter`, at = Xe(this, H, Ue(this, Se, Gf).call(this, ze));
|
|
4580
|
+
Ue(this, Je, Fc).call(this, ct, ct, ct, at), Ue(this, ce, Bm).call(this, at);
|
|
4581
4581
|
const ft = (Ne, Te) => {
|
|
4582
4582
|
const _e = Qe[Ne] / 255, Oe = bt[Ne] / 255, Ke = new Array(Te + 1);
|
|
4583
4583
|
for (let Ft = 0; Ft <= Te; Ft++)
|
|
@@ -4593,20 +4593,20 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4593
4593
|
return ne(this, V);
|
|
4594
4594
|
if (Xe(this, W, bt), Xe(this, V, "none"), (Oe = ne(this, H)) == null || Oe.remove(), !Le || !Ye)
|
|
4595
4595
|
return ne(this, V);
|
|
4596
|
-
const [qe,
|
|
4597
|
-
let ze = Math.round(0.2126 * qe[0] + 0.7152 * qe[1] + 0.0722 * qe[2]), at = Math.round(0.2126 *
|
|
4596
|
+
const [qe, ct] = [Le, Ye].map(Ue(this, Ze, Mc).bind(this));
|
|
4597
|
+
let ze = Math.round(0.2126 * qe[0] + 0.7152 * qe[1] + 0.0722 * qe[2]), at = Math.round(0.2126 * ct[0] + 0.7152 * ct[1] + 0.0722 * ct[2]), [ft, $e] = [ke, Qe].map(Ue(this, Ze, Mc).bind(this));
|
|
4598
4598
|
at < ze && ([ze, at, ft, $e] = [at, ze, $e, ft]), ne(this, le, nu).style.color = "";
|
|
4599
4599
|
const Ne = (Ke, Ft, Nt) => {
|
|
4600
4600
|
const je = new Array(256), vt = (at - ze) / Nt, Pt = Ke / 255, ot = (Ft - Ke) / (255 * Nt);
|
|
4601
4601
|
let Ge = 0;
|
|
4602
|
-
for (let
|
|
4603
|
-
const Et = Math.round(ze +
|
|
4604
|
-
for (let
|
|
4605
|
-
je[
|
|
4602
|
+
for (let nt = 0; nt <= Nt; nt++) {
|
|
4603
|
+
const Et = Math.round(ze + nt * vt), Ae = Pt + nt * ot;
|
|
4604
|
+
for (let lt = Ge; lt <= Et; lt++)
|
|
4605
|
+
je[lt] = Ae;
|
|
4606
4606
|
Ge = Et + 1;
|
|
4607
4607
|
}
|
|
4608
|
-
for (let
|
|
4609
|
-
je[
|
|
4608
|
+
for (let nt = Ge; nt < 256; nt++)
|
|
4609
|
+
je[nt] = je[Ge - 1];
|
|
4610
4610
|
return je.join(",");
|
|
4611
4611
|
}, Te = `g_${ne(this, K)}_hcm_highlight_filter`, _e = Xe(this, H, Ue(this, Se, Gf).call(this, Te));
|
|
4612
4612
|
return Ue(this, ce, Bm).call(this, _e), Ue(this, Je, Fc).call(this, Ne(ft[0], $e[0], 5), Ne(ft[1], $e[1], 5), Ne(ft[2], $e[2], 5), _e), Xe(this, V, `url(#${Te})`), ne(this, V);
|
|
@@ -4708,7 +4708,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4708
4708
|
dontFlip: bt = !1
|
|
4709
4709
|
}) {
|
|
4710
4710
|
this.viewBox = Me, this.scale = Le, this.rotation = Ye, this.offsetX = ke, this.offsetY = Qe;
|
|
4711
|
-
const qe = (Me[2] + Me[0]) / 2,
|
|
4711
|
+
const qe = (Me[2] + Me[0]) / 2, ct = (Me[3] + Me[1]) / 2;
|
|
4712
4712
|
let ze, at, ft, $e;
|
|
4713
4713
|
switch (Ye %= 360, Ye < 0 && (Ye += 360), Ye) {
|
|
4714
4714
|
case 180:
|
|
@@ -4728,7 +4728,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4728
4728
|
}
|
|
4729
4729
|
bt && (ft = -ft, $e = -$e);
|
|
4730
4730
|
let Ne, Te, _e, Oe;
|
|
4731
|
-
ze === 0 ? (Ne = Math.abs(
|
|
4731
|
+
ze === 0 ? (Ne = Math.abs(ct - Me[1]) * Le + ke, Te = Math.abs(qe - Me[0]) * Le + Qe, _e = (Me[3] - Me[1]) * Le, Oe = (Me[2] - Me[0]) * Le) : (Ne = Math.abs(qe - Me[0]) * Le + ke, Te = Math.abs(ct - Me[1]) * Le + Qe, _e = (Me[2] - Me[0]) * Le, Oe = (Me[3] - Me[1]) * Le), this.transform = [ze * Le, at * Le, ft * Le, $e * Le, Ne - ze * Le * qe - ft * Le * ct, Te - at * Le * qe - $e * Le * ct], this.width = _e, this.height = Oe;
|
|
4732
4732
|
}
|
|
4733
4733
|
get rawDims() {
|
|
4734
4734
|
const {
|
|
@@ -4879,13 +4879,13 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4879
4879
|
bt = bt >= 0 && bt <= 23 ? bt : 0;
|
|
4880
4880
|
let qe = parseInt(Le[5], 10);
|
|
4881
4881
|
qe = qe >= 0 && qe <= 59 ? qe : 0;
|
|
4882
|
-
let
|
|
4883
|
-
|
|
4882
|
+
let ct = parseInt(Le[6], 10);
|
|
4883
|
+
ct = ct >= 0 && ct <= 59 ? ct : 0;
|
|
4884
4884
|
const ze = Le[7] || "Z";
|
|
4885
4885
|
let at = parseInt(Le[8], 10);
|
|
4886
4886
|
at = at >= 0 && at <= 23 ? at : 0;
|
|
4887
4887
|
let ft = parseInt(Le[9], 10) || 0;
|
|
4888
|
-
return ft = ft >= 0 && ft <= 59 ? ft : 0, ze === "-" ? (bt += at, qe += ft) : ze === "+" && (bt -= at, qe -= ft), new Date(Date.UTC(Ye, ke, Qe, bt, qe,
|
|
4888
|
+
return ft = ft >= 0 && ft <= 59 ? ft : 0, ze === "-" ? (bt += at, qe += ft) : ze === "+" && (bt -= at, qe -= ft), new Date(Date.UTC(Ye, ke, Qe, bt, qe, ct));
|
|
4889
4889
|
}
|
|
4890
4890
|
}
|
|
4891
4891
|
e.PDFDateString = k;
|
|
@@ -4949,7 +4949,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
4949
4949
|
pageHeight: Qe
|
|
4950
4950
|
} = Me.rawDims, {
|
|
4951
4951
|
style: bt
|
|
4952
|
-
} = Ve, qe = s.FeatureTest.isCSSRoundSupported,
|
|
4952
|
+
} = Ve, qe = s.FeatureTest.isCSSRoundSupported, ct = `var(--scale-factor) * ${ke}px`, ze = `var(--scale-factor) * ${Qe}px`, at = qe ? `round(${ct}, 1px)` : `calc(${ct})`, ft = qe ? `round(${ze}, 1px)` : `calc(${ze})`;
|
|
4953
4953
|
!Le || Me.rotation % 180 === 0 ? (bt.width = at, bt.height = ft) : (bt.width = ft, bt.height = at);
|
|
4954
4954
|
}
|
|
4955
4955
|
Ye && Ve.setAttribute("data-main-rotation", Me.rotation);
|
|
@@ -5467,8 +5467,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
5467
5467
|
return J.setTransform(0, Math.sign(Se), Math.sign(Re), 0, Ve, Le), J.drawImage(H, W, V, G, Y, 0, 0, bt, ke), J.setTransform(ge, Se, Re, Fe, De, Je), [bt, ke];
|
|
5468
5468
|
}
|
|
5469
5469
|
J.drawImage(H, W, V, G, Y, ie, le, fe, ce);
|
|
5470
|
-
const
|
|
5471
|
-
return [
|
|
5470
|
+
const ut = Math.hypot(ge, Se), Ze = Math.hypot(Re, Fe);
|
|
5471
|
+
return [ut * fe, Ze * ce];
|
|
5472
5472
|
}
|
|
5473
5473
|
function b(J) {
|
|
5474
5474
|
const {
|
|
@@ -5588,17 +5588,17 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
5588
5588
|
const ge = H.data, Se = le.data;
|
|
5589
5589
|
let Re, Fe, De, Je;
|
|
5590
5590
|
if (H.kind === t.ImageKind.GRAYSCALE_1BPP) {
|
|
5591
|
-
const
|
|
5591
|
+
const ut = ge.byteLength, Ze = new Uint32Array(Se.buffer, 0, Se.byteLength >> 2), xt = Ze.length, Ve = V + 7 >> 3, Me = 4294967295, Le = t.FeatureTest.isLittleEndian ? 4278190080 : 255;
|
|
5592
5592
|
for (Re = 0; Re < ie; Re++) {
|
|
5593
5593
|
for (De = Re < Y ? _ : G, ce = 0, Fe = 0; Fe < De; Fe++) {
|
|
5594
|
-
const Ye =
|
|
5594
|
+
const Ye = ut - fe;
|
|
5595
5595
|
let ke = 0;
|
|
5596
5596
|
const Qe = Ye > Ve ? V : Ye * 8 - 7, bt = Qe & -8;
|
|
5597
|
-
let qe = 0,
|
|
5597
|
+
let qe = 0, ct = 0;
|
|
5598
5598
|
for (; ke < bt; ke += 8)
|
|
5599
|
-
|
|
5599
|
+
ct = ge[fe++], Ze[ce++] = ct & 128 ? Me : Le, Ze[ce++] = ct & 64 ? Me : Le, Ze[ce++] = ct & 32 ? Me : Le, Ze[ce++] = ct & 16 ? Me : Le, Ze[ce++] = ct & 8 ? Me : Le, Ze[ce++] = ct & 4 ? Me : Le, Ze[ce++] = ct & 2 ? Me : Le, Ze[ce++] = ct & 1 ? Me : Le;
|
|
5600
5600
|
for (; ke < Qe; ke++)
|
|
5601
|
-
qe === 0 && (
|
|
5601
|
+
qe === 0 && (ct = ge[fe++], qe = 128), Ze[ce++] = ct & qe ? Me : Le, qe >>= 1;
|
|
5602
5602
|
}
|
|
5603
5603
|
for (; ce < xt; )
|
|
5604
5604
|
Ze[ce++] = 0;
|
|
@@ -5738,9 +5738,9 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
5738
5738
|
this[De].apply(this, Y[le]);
|
|
5739
5739
|
else
|
|
5740
5740
|
for (const Je of Y[le]) {
|
|
5741
|
-
const
|
|
5742
|
-
if (!
|
|
5743
|
-
return
|
|
5741
|
+
const ut = Je.startsWith("g_") ? Re : Fe;
|
|
5742
|
+
if (!ut.has(Je))
|
|
5743
|
+
return ut.get(Je, V), le;
|
|
5744
5744
|
}
|
|
5745
5745
|
if (le++, le === fe)
|
|
5746
5746
|
return le;
|
|
@@ -5796,7 +5796,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
5796
5796
|
ge || (Se = this.cachedCanvases.getCanvas("maskCanvas", V, G), w(Se.context, H));
|
|
5797
5797
|
let Re = t.Util.transform(le, [1 / V, 0, 0, -1 / G, 0, 0]);
|
|
5798
5798
|
Re = t.Util.transform(Re, [1, 0, 0, 1, 0, -G]);
|
|
5799
|
-
const Fe = t.Util.applyTransform([0, 0], Re), De = t.Util.applyTransform([V, G], Re), Je = t.Util.normalizeRect([Fe[0], Fe[1], De[0], De[1]]),
|
|
5799
|
+
const Fe = t.Util.applyTransform([0, 0], Re), De = t.Util.applyTransform([V, G], Re), Je = t.Util.normalizeRect([Fe[0], Fe[1], De[0], De[1]]), ut = Math.round(Je[2] - Je[0]) || 1, Ze = Math.round(Je[3] - Je[1]) || 1, xt = this.cachedCanvases.getCanvas("fillCanvas", ut, Ze), Ve = xt.context, Me = Math.min(Fe[0], De[0]), Le = Math.min(Fe[1], De[1]);
|
|
5800
5800
|
Ve.translate(-Me, -Le), Ve.transform(...Re), ge || (ge = this._scaleImage(Se.canvas, (0, s.getCurrentTransformInverse)(Ve)), ge = ge.img, fe && ie && fe.set(ce, ge)), Ve.imageSmoothingEnabled = j((0, s.getCurrentTransform)(Ve), H.interpolate), v(Ve, ge, 0, 0, ge.width, ge.height, 0, 0, V, G), Ve.globalCompositeOperation = "source-in";
|
|
5801
5801
|
const Ye = t.Util.transform((0, s.getCurrentTransformInverse)(Ve), [1, 0, 0, 1, -Me, -Le]);
|
|
5802
5802
|
return Ve.fillStyle = ie ? Y.getPattern(W, this, Ye, o.PathType.FILL) : Y, Ve.fillRect(0, 0, V, G), fe && !ie && (this.cachedCanvases.delete("fillCanvas"), fe.set(ce, xt.canvas)), {
|
|
@@ -5915,8 +5915,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
5915
5915
|
switch (H[Fe] | 0) {
|
|
5916
5916
|
case t.OPS.rectangle:
|
|
5917
5917
|
ie = W[De++], le = W[De++];
|
|
5918
|
-
const
|
|
5919
|
-
G.moveTo(ie, le),
|
|
5918
|
+
const ut = W[De++], Ze = W[De++], xt = ie + ut, Ve = le + Ze;
|
|
5919
|
+
G.moveTo(ie, le), ut === 0 || Ze === 0 ? G.lineTo(xt, Ve) : (G.lineTo(xt, le), G.lineTo(xt, Ve), G.lineTo(ie, Ve)), Se || Y.updateRectMinMax(ge, [ie, le, xt, Ve]), G.closePath();
|
|
5920
5920
|
break;
|
|
5921
5921
|
case t.OPS.moveTo:
|
|
5922
5922
|
ie = W[De++], le = W[De++], G.moveTo(ie, le), Se || Y.updatePathMinMax(ge, ie, le);
|
|
@@ -6070,7 +6070,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
6070
6070
|
const G = W.fontSize;
|
|
6071
6071
|
if (G === 0)
|
|
6072
6072
|
return;
|
|
6073
|
-
const Y = this.ctx, ie = W.fontSizeScale, le = W.charSpacing, fe = W.wordSpacing, ce = W.fontDirection, ge = W.textHScale * ce, Se = H.length, Re = V.vertical, Fe = Re ? 1 : -1, De = V.defaultVMetrics, Je = G * W.fontMatrix[0],
|
|
6073
|
+
const Y = this.ctx, ie = W.fontSizeScale, le = W.charSpacing, fe = W.wordSpacing, ce = W.fontDirection, ge = W.textHScale * ce, Se = H.length, Re = V.vertical, Fe = Re ? 1 : -1, De = V.defaultVMetrics, Je = G * W.fontMatrix[0], ut = W.textRenderingMode === t.TextRenderingMode.FILL && !V.disableFontFace && !W.patternFill;
|
|
6074
6074
|
Y.save(), Y.transform(...W.textMatrix), Y.translate(W.x, W.y + W.textRise), ce > 0 ? Y.scale(ge, -1) : Y.scale(ge, 1);
|
|
6075
6075
|
let Ze;
|
|
6076
6076
|
if (W.patternFill) {
|
|
@@ -6102,25 +6102,25 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
6102
6102
|
}
|
|
6103
6103
|
let ke = !1;
|
|
6104
6104
|
const Qe = (Ye.isSpace ? fe : 0) + le, bt = Ye.fontChar, qe = Ye.accent;
|
|
6105
|
-
let
|
|
6105
|
+
let ct, ze, at = Ye.width;
|
|
6106
6106
|
if (Re) {
|
|
6107
6107
|
const $e = Ye.vmetric || De, Ne = -(Ye.vmetric ? $e[1] : at * 0.5) * Je, Te = $e[2] * Je;
|
|
6108
|
-
at = $e ? -$e[0] : at,
|
|
6108
|
+
at = $e ? -$e[0] : at, ct = Ne / ie, ze = (Me + Te) / ie;
|
|
6109
6109
|
} else
|
|
6110
|
-
|
|
6110
|
+
ct = Me / ie, ze = 0;
|
|
6111
6111
|
if (V.remeasure && at > 0) {
|
|
6112
6112
|
const $e = Y.measureText(bt).width * 1e3 / G * ie;
|
|
6113
6113
|
if (at < $e && this.isFontSubpixelAAEnabled) {
|
|
6114
6114
|
const Ne = at / $e;
|
|
6115
|
-
ke = !0, Y.save(), Y.scale(Ne, 1),
|
|
6115
|
+
ke = !0, Y.save(), Y.scale(Ne, 1), ct /= Ne;
|
|
6116
6116
|
} else
|
|
6117
|
-
at !== $e && (
|
|
6117
|
+
at !== $e && (ct += (at - $e) / 2e3 * G / ie);
|
|
6118
6118
|
}
|
|
6119
6119
|
if (this.contentVisible && (Ye.isInFont || V.missingFile)) {
|
|
6120
|
-
if (
|
|
6121
|
-
Y.fillText(bt,
|
|
6122
|
-
else if (this.paintChar(bt,
|
|
6123
|
-
const $e =
|
|
6120
|
+
if (ut && !qe)
|
|
6121
|
+
Y.fillText(bt, ct, ze);
|
|
6122
|
+
else if (this.paintChar(bt, ct, ze, Ze), qe) {
|
|
6123
|
+
const $e = ct + G * qe.offset.x / ie, Ne = ze - G * qe.offset.y / ie;
|
|
6124
6124
|
this.paintChar(qe.fontChar, $e, Ne, Ze);
|
|
6125
6125
|
}
|
|
6126
6126
|
}
|
|
@@ -6131,7 +6131,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
6131
6131
|
}
|
|
6132
6132
|
showType3Text(H) {
|
|
6133
6133
|
const W = this.ctx, V = this.current, G = V.font, Y = V.fontSize, ie = V.fontDirection, le = G.vertical ? 1 : -1, fe = V.charSpacing, ce = V.wordSpacing, ge = V.textHScale * ie, Se = V.fontMatrix || t.FONT_IDENTITY_MATRIX, Re = H.length, Fe = V.textRenderingMode === t.TextRenderingMode.INVISIBLE;
|
|
6134
|
-
let De, Je,
|
|
6134
|
+
let De, Je, ut, Ze;
|
|
6135
6135
|
if (!(Fe || Y === 0)) {
|
|
6136
6136
|
for (this._cachedScaleForStroking[0] = -1, this._cachedGetSinglePixelWidth = null, W.save(), W.transform(...V.textMatrix), W.translate(V.x, V.y), W.scale(ge, ie), De = 0; De < Re; ++De) {
|
|
6137
6137
|
if (Je = H[De], typeof Je == "number") {
|
|
@@ -6143,7 +6143,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
6143
6143
|
(0, t.warn)(`Type3 character "${Je.operatorListId}" is not available.`);
|
|
6144
6144
|
continue;
|
|
6145
6145
|
}
|
|
6146
|
-
this.contentVisible && (this.processingType3 = Je, this.save(), W.scale(Y, Y), W.transform(...Se), this.executeOperatorList(Ve), this.restore()),
|
|
6146
|
+
this.contentVisible && (this.processingType3 = Je, this.save(), W.scale(Y, Y), W.transform(...Se), this.executeOperatorList(Ve), this.restore()), ut = t.Util.applyTransform([Je.width, 0], Se)[0] * Y + xt, W.translate(ut, 0), V.x += ut * ge;
|
|
6147
6147
|
}
|
|
6148
6148
|
W.restore(), this.processingType3 = null;
|
|
6149
6149
|
}
|
|
@@ -6596,18 +6596,18 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
6596
6596
|
return;
|
|
6597
6597
|
const te = F[D], ue = F[D + 1], me = F[D + 2], J = F[N], H = F[N + 1], W = F[N + 2], V = F[P], G = F[P + 1], Y = F[P + 2], ie = Math.round(X), le = Math.round(K);
|
|
6598
6598
|
let fe, ce, ge, Se, Re, Fe, De, Je;
|
|
6599
|
-
for (let
|
|
6600
|
-
if (
|
|
6601
|
-
const Le =
|
|
6599
|
+
for (let ut = ie; ut <= le; ut++) {
|
|
6600
|
+
if (ut < se) {
|
|
6601
|
+
const Le = ut < X ? 0 : (X - ut) / (X - se);
|
|
6602
6602
|
fe = z - (z - re) * Le, ce = te - (te - J) * Le, ge = ue - (ue - H) * Le, Se = me - (me - W) * Le;
|
|
6603
6603
|
} else {
|
|
6604
6604
|
let Le;
|
|
6605
|
-
|
|
6605
|
+
ut > K ? Le = 1 : se === K ? Le = 0 : Le = (se - ut) / (se - K), fe = re - (re - Z) * Le, ce = J - (J - V) * Le, ge = H - (H - G) * Le, Se = W - (W - Y) * Le;
|
|
6606
6606
|
}
|
|
6607
6607
|
let Ze;
|
|
6608
|
-
|
|
6608
|
+
ut < X ? Ze = 0 : ut > K ? Ze = 1 : Ze = (X - ut) / (X - K), Re = z - (z - Z) * Ze, Fe = te - (te - V) * Ze, De = ue - (ue - G) * Ze, Je = me - (me - Y) * Ze;
|
|
6609
6609
|
const xt = Math.round(Math.min(fe, Re)), Ve = Math.round(Math.max(fe, Re));
|
|
6610
|
-
let Me = j *
|
|
6610
|
+
let Me = j * ut + xt * 4;
|
|
6611
6611
|
for (let Le = xt; Le <= Ve; Le++)
|
|
6612
6612
|
Ze = (fe - Le) / (fe - Re), Ze < 0 ? Ze = 0 : Ze > 1 && (Ze = 1), M[Me++] = ce - (ce - Fe) * Ze | 0, M[Me++] = ge - (ge - De) * Ze | 0, M[Me++] = Se - (Se - Je) * Ze | 0, M[Me++] = 255;
|
|
6613
6613
|
}
|
|
@@ -10088,7 +10088,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10088
10088
|
/* 29 */
|
|
10089
10089
|
/***/
|
|
10090
10090
|
(l, e, n) => {
|
|
10091
|
-
var W, G, Uo, ie, oy, fe, ce, ge, Se, Re, Fe, De, Je,
|
|
10091
|
+
var W, G, Uo, ie, oy, fe, ce, ge, Se, Re, Fe, De, Je, ut, Ze, xt, Ve, Me, Le, Ye, ke, Qe, bt, ly, ct, Wf, at, Ym, $e, qm, Te, _e, Oe, Ke, Ft, Nt, je, Qm, Pt, ot, Ge, nt, uy, Ae, Jm;
|
|
10092
10092
|
Object.defineProperty(e, "__esModule", {
|
|
10093
10093
|
value: !0
|
|
10094
10094
|
}), e.StampAnnotationElement = e.InkAnnotationElement = e.FreeTextAnnotationElement = e.AnnotationLayer = void 0;
|
|
@@ -10186,7 +10186,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10186
10186
|
pageWidth: de,
|
|
10187
10187
|
pageHeight: be,
|
|
10188
10188
|
pageX: Be,
|
|
10189
|
-
pageY:
|
|
10189
|
+
pageY: et
|
|
10190
10190
|
} = Ee.rawDims;
|
|
10191
10191
|
if (!ee.rect || this instanceof P) {
|
|
10192
10192
|
const {
|
|
@@ -10228,7 +10228,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10228
10228
|
const Bt = ee.borderColor || null;
|
|
10229
10229
|
Bt ? (Xe(this, W, !0), we.style.borderColor = t.Util.makeHexColor(Bt[0] | 0, Bt[1] | 0, Bt[2] | 0)) : we.style.borderWidth = 0;
|
|
10230
10230
|
}
|
|
10231
|
-
we.style.left = `${100 * (_t[0] - Be) / de}%`, we.style.top = `${100 * (_t[1] -
|
|
10231
|
+
we.style.left = `${100 * (_t[0] - Be) / de}%`, we.style.top = `${100 * (_t[1] - et) / be}%`;
|
|
10232
10232
|
const {
|
|
10233
10233
|
rotation: yt
|
|
10234
10234
|
} = ee;
|
|
@@ -10376,7 +10376,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10376
10376
|
} = de;
|
|
10377
10377
|
de.borderWidth = 0, be = ["url('data:image/svg+xml;utf8,", '<svg xmlns="http://www.w3.org/2000/svg"', ' preserveAspectRatio="none" viewBox="0 0 1 1">', `<g fill="transparent" stroke="${Lt}" stroke-width="${Bt}">`], this.container.classList.add("hasBorder");
|
|
10378
10378
|
}
|
|
10379
|
-
const Be = Ee - ee,
|
|
10379
|
+
const Be = Ee - ee, et = we - pe, {
|
|
10380
10380
|
svgFactory: gt
|
|
10381
10381
|
} = this, Dt = gt.createElement("svg");
|
|
10382
10382
|
Dt.classList.add("quadrilateralsContainer"), Dt.setAttribute("width", 0), Dt.setAttribute("height", 0);
|
|
@@ -10391,7 +10391,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10391
10391
|
x: Xt,
|
|
10392
10392
|
y: An
|
|
10393
10393
|
}] of ve) {
|
|
10394
|
-
const _n = gt.createElement("rect"), zn = (Xt - ee) / Be, mi = (we - Bt) /
|
|
10394
|
+
const _n = gt.createElement("rect"), zn = (Xt - ee) / Be, mi = (we - Bt) / et, Fr = (Lt - Xt) / Be, Ks = (Bt - An) / et;
|
|
10395
10395
|
_n.setAttribute("x", zn), _n.setAttribute("y", mi), _n.setAttribute("width", Fr), _n.setAttribute("height", Ks), yt.append(_n), be == null || be.push(`<rect vector-effect="non-scaling-stroke" x="${zn}" y="${mi}" width="${Fr}" height="${Ks}"/>`);
|
|
10396
10396
|
}
|
|
10397
10397
|
ne(this, W) && (be.push("</g></svg>')"), de.backgroundImage = be.join("")), this.container.append(Dt), this.container.style.clipPath = `url(#${Mt})`;
|
|
@@ -10434,15 +10434,15 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10434
10434
|
} of Ee) {
|
|
10435
10435
|
if (we === -1 || de === ee)
|
|
10436
10436
|
continue;
|
|
10437
|
-
const Be = typeof be == "string" ? be : null,
|
|
10438
|
-
if (
|
|
10437
|
+
const Be = typeof be == "string" ? be : null, et = document.querySelector(`[data-element-id="${de}"]`);
|
|
10438
|
+
if (et && !x.has(et)) {
|
|
10439
10439
|
(0, t.warn)(`_getElementsByName - element not allowed: ${de}`);
|
|
10440
10440
|
continue;
|
|
10441
10441
|
}
|
|
10442
10442
|
pe.push({
|
|
10443
10443
|
id: de,
|
|
10444
10444
|
exportValue: Be,
|
|
10445
|
-
domElement:
|
|
10445
|
+
domElement: et
|
|
10446
10446
|
});
|
|
10447
10447
|
}
|
|
10448
10448
|
return pe;
|
|
@@ -10576,7 +10576,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10576
10576
|
} else
|
|
10577
10577
|
for (const _t of Object.values(this._fieldObjects))
|
|
10578
10578
|
Be.push(..._t);
|
|
10579
|
-
const
|
|
10579
|
+
const et = this.annotationStorage, gt = [];
|
|
10580
10580
|
for (const _t of Be) {
|
|
10581
10581
|
const {
|
|
10582
10582
|
id: yt
|
|
@@ -10584,7 +10584,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10584
10584
|
switch (gt.push(yt), _t.type) {
|
|
10585
10585
|
case "text": {
|
|
10586
10586
|
const Lt = _t.defaultValue || "";
|
|
10587
|
-
|
|
10587
|
+
et.setValue(yt, {
|
|
10588
10588
|
value: Lt
|
|
10589
10589
|
});
|
|
10590
10590
|
break;
|
|
@@ -10592,7 +10592,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10592
10592
|
case "checkbox":
|
|
10593
10593
|
case "radiobutton": {
|
|
10594
10594
|
const Lt = _t.defaultValue === _t.exportValues;
|
|
10595
|
-
|
|
10595
|
+
et.setValue(yt, {
|
|
10596
10596
|
value: Lt
|
|
10597
10597
|
});
|
|
10598
10598
|
break;
|
|
@@ -10600,7 +10600,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10600
10600
|
case "combobox":
|
|
10601
10601
|
case "listbox": {
|
|
10602
10602
|
const Lt = _t.defaultValue || "";
|
|
10603
|
-
|
|
10603
|
+
et.setValue(yt, {
|
|
10604
10604
|
value: Lt
|
|
10605
10605
|
});
|
|
10606
10606
|
break;
|
|
@@ -10699,10 +10699,10 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10699
10699
|
}
|
|
10700
10700
|
_setEventListeners(ve, ee, pe, Ee) {
|
|
10701
10701
|
var we, de, be;
|
|
10702
|
-
for (const [Be,
|
|
10703
|
-
(
|
|
10702
|
+
for (const [Be, et] of pe)
|
|
10703
|
+
(et === "Action" || (we = this.data.actions) != null && we[et]) && ((et === "Focus" || et === "Blur") && (ee || (ee = {
|
|
10704
10704
|
focused: !1
|
|
10705
|
-
})), this._setEventListener(ve, ee, Be,
|
|
10705
|
+
})), this._setEventListener(ve, ee, Be, et, Ee), et === "Focus" && !((de = this.data.actions) != null && de.Blur) ? this._setEventListener(ve, ee, "blur", "Blur", null) : et === "Blur" && !((be = this.data.actions) != null && be.Focus) && this._setEventListener(ve, ee, "focus", "Focus", null));
|
|
10706
10706
|
}
|
|
10707
10707
|
_setBackgroundColor(ve) {
|
|
10708
10708
|
const ee = this.data.backgroundColor || null;
|
|
@@ -10713,13 +10713,13 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10713
10713
|
fontColor: pe
|
|
10714
10714
|
} = this.data.defaultAppearanceData, Ee = this.data.defaultAppearanceData.fontSize || p, we = ve.style;
|
|
10715
10715
|
let de;
|
|
10716
|
-
const be = 2, Be = (
|
|
10716
|
+
const be = 2, Be = (et) => Math.round(10 * et) / 10;
|
|
10717
10717
|
if (this.data.multiLine) {
|
|
10718
|
-
const
|
|
10718
|
+
const et = Math.abs(this.data.rect[3] - this.data.rect[1] - be), gt = Math.round(et / (t.LINE_FACTOR * Ee)) || 1, Dt = et / gt;
|
|
10719
10719
|
de = Math.min(Ee, Be(Dt / t.LINE_FACTOR));
|
|
10720
10720
|
} else {
|
|
10721
|
-
const
|
|
10722
|
-
de = Math.min(Ee, Be(
|
|
10721
|
+
const et = Math.abs(this.data.rect[3] - this.data.rect[1] - be);
|
|
10722
|
+
de = Math.min(Ee, Be(et / t.LINE_FACTOR));
|
|
10723
10723
|
}
|
|
10724
10724
|
we.fontSize = `calc(${de}px * var(--scale-factor))`, we.color = t.Util.makeHexColor(pe[0], pe[1], pe[2]), this.data.textAlignment !== null && (we.textAlign = ee[this.data.textAlignment]);
|
|
10725
10725
|
}
|
|
@@ -10755,17 +10755,17 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10755
10755
|
charLimit: this.data.maxLen
|
|
10756
10756
|
}).charLimit;
|
|
10757
10757
|
Be && be.length > Be && (be = be.slice(0, Be));
|
|
10758
|
-
let
|
|
10758
|
+
let et = de.formattedValue || ((Ee = this.data.textContent) == null ? void 0 : Ee.join(`
|
|
10759
10759
|
`)) || null;
|
|
10760
|
-
|
|
10760
|
+
et && this.data.comb && (et = et.replaceAll(/\s+/g, ""));
|
|
10761
10761
|
const gt = {
|
|
10762
10762
|
userValue: be,
|
|
10763
|
-
formattedValue:
|
|
10763
|
+
formattedValue: et,
|
|
10764
10764
|
lastCommittedValue: null,
|
|
10765
10765
|
commitKey: 1,
|
|
10766
10766
|
focused: !1
|
|
10767
10767
|
};
|
|
10768
|
-
this.data.multiLine ? (pe = document.createElement("textarea"), pe.textContent =
|
|
10768
|
+
this.data.multiLine ? (pe = document.createElement("textarea"), pe.textContent = et ?? be, this.data.doNotScroll && (pe.style.overflowY = "hidden")) : (pe = document.createElement("input"), pe.type = "text", pe.setAttribute("value", et ?? be), this.data.doNotScroll && (pe.style.overflowX = "hidden")), this.data.hasOwnCanvas && (pe.hidden = !0), x.add(pe), pe.setAttribute("data-element-id", ee), pe.disabled = this.data.readOnly, pe.name = this.data.fieldName, pe.tabIndex = u, this._setRequired(pe, this.data.required), Be && (pe.maxLength = Be), pe.addEventListener("input", (_t) => {
|
|
10769
10769
|
ve.setValue(ee, {
|
|
10770
10770
|
value: _t.target.value
|
|
10771
10771
|
}), this.setPropertyOnSiblings(pe, "value", _t.target.value, "value"), gt.formattedValue = null;
|
|
@@ -10959,9 +10959,9 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
10959
10959
|
name: be,
|
|
10960
10960
|
checked: Be
|
|
10961
10961
|
} = de.target;
|
|
10962
|
-
for (const
|
|
10963
|
-
const gt = Be &&
|
|
10964
|
-
|
|
10962
|
+
for (const et of this._getElementsByName(be, pe)) {
|
|
10963
|
+
const gt = Be && et.exportValue === ee.exportValue;
|
|
10964
|
+
et.domElement && (et.domElement.checked = gt), ve.setValue(et.id, {
|
|
10965
10965
|
value: gt
|
|
10966
10966
|
});
|
|
10967
10967
|
}
|
|
@@ -11004,8 +11004,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11004
11004
|
name: be,
|
|
11005
11005
|
checked: Be
|
|
11006
11006
|
} = de.target;
|
|
11007
|
-
for (const
|
|
11008
|
-
ve.setValue(
|
|
11007
|
+
for (const et of this._getElementsByName(be, pe))
|
|
11008
|
+
ve.setValue(et.id, {
|
|
11009
11009
|
value: !1
|
|
11010
11010
|
});
|
|
11011
11011
|
ve.setValue(pe, {
|
|
@@ -11018,9 +11018,9 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11018
11018
|
const de = ee.buttonValue;
|
|
11019
11019
|
we.addEventListener("updatefromsandbox", (be) => {
|
|
11020
11020
|
const Be = {
|
|
11021
|
-
value: (
|
|
11022
|
-
const gt = de ===
|
|
11023
|
-
for (const Dt of this._getElementsByName(
|
|
11021
|
+
value: (et) => {
|
|
11022
|
+
const gt = de === et.detail.value;
|
|
11023
|
+
for (const Dt of this._getElementsByName(et.target.name)) {
|
|
11024
11024
|
const _t = gt && Dt.id === pe;
|
|
11025
11025
|
Dt.domElement && (Dt.domElement.checked = _t), ve.setValue(Dt.id, {
|
|
11026
11026
|
value: _t
|
|
@@ -11086,7 +11086,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11086
11086
|
return yt ? Array.prototype.filter.call(_t, (Mt) => Mt.selected).map((Mt) => Mt[Dt]) : _t.selectedIndex === -1 ? null : _t[_t.selectedIndex][Dt];
|
|
11087
11087
|
};
|
|
11088
11088
|
let Be = be(!1);
|
|
11089
|
-
const
|
|
11089
|
+
const et = (gt) => {
|
|
11090
11090
|
const Dt = gt.target.options;
|
|
11091
11091
|
return Array.prototype.map.call(Dt, (_t) => ({
|
|
11092
11092
|
displayValue: _t.textContent,
|
|
@@ -11111,7 +11111,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11111
11111
|
const yt = Ee.options, Mt = _t.detail.remove;
|
|
11112
11112
|
yt[Mt].selected = !1, Ee.remove(Mt), yt.length > 0 && Array.prototype.findIndex.call(yt, (Bt) => Bt.selected) === -1 && (yt[0].selected = !0), ve.setValue(ee, {
|
|
11113
11113
|
value: be(!0),
|
|
11114
|
-
items:
|
|
11114
|
+
items: et(_t)
|
|
11115
11115
|
}), Be = be(!1);
|
|
11116
11116
|
},
|
|
11117
11117
|
clear(_t) {
|
|
@@ -11130,7 +11130,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11130
11130
|
} = _t.detail.insert, Bt = Ee.children[yt], Xt = document.createElement("option");
|
|
11131
11131
|
Xt.textContent = Mt, Xt.value = Lt, Bt ? Bt.before(Xt) : Ee.append(Xt), ve.setValue(ee, {
|
|
11132
11132
|
value: be(!0),
|
|
11133
|
-
items:
|
|
11133
|
+
items: et(_t)
|
|
11134
11134
|
}), Be = be(!1);
|
|
11135
11135
|
},
|
|
11136
11136
|
items(_t) {
|
|
@@ -11148,7 +11148,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11148
11148
|
}
|
|
11149
11149
|
Ee.options.length > 0 && (Ee.options[0].selected = !0), ve.setValue(ee, {
|
|
11150
11150
|
value: be(!0),
|
|
11151
|
-
items:
|
|
11151
|
+
items: et(_t)
|
|
11152
11152
|
}), Be = be(!1);
|
|
11153
11153
|
},
|
|
11154
11154
|
indices(_t) {
|
|
@@ -11228,23 +11228,23 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11228
11228
|
contentsObj: de,
|
|
11229
11229
|
richText: be,
|
|
11230
11230
|
parent: Be,
|
|
11231
|
-
rect:
|
|
11231
|
+
rect: et,
|
|
11232
11232
|
parentRect: gt,
|
|
11233
11233
|
open: Dt
|
|
11234
11234
|
}) {
|
|
11235
11235
|
Ce(this, bt);
|
|
11236
|
-
Ce(this,
|
|
11236
|
+
Ce(this, ct);
|
|
11237
11237
|
Ce(this, at);
|
|
11238
11238
|
Ce(this, $e);
|
|
11239
11239
|
Ce(this, fe, null);
|
|
11240
11240
|
Ce(this, ce, Ue(this, bt, ly).bind(this));
|
|
11241
11241
|
Ce(this, ge, Ue(this, $e, qm).bind(this));
|
|
11242
11242
|
Ce(this, Se, Ue(this, at, Ym).bind(this));
|
|
11243
|
-
Ce(this, Re, Ue(this,
|
|
11243
|
+
Ce(this, Re, Ue(this, ct, Wf).bind(this));
|
|
11244
11244
|
Ce(this, Fe, null);
|
|
11245
11245
|
Ce(this, De, null);
|
|
11246
11246
|
Ce(this, Je, null);
|
|
11247
|
-
Ce(this,
|
|
11247
|
+
Ce(this, ut, null);
|
|
11248
11248
|
Ce(this, Ze, null);
|
|
11249
11249
|
Ce(this, xt, null);
|
|
11250
11250
|
Ce(this, Ve, !1);
|
|
@@ -11254,7 +11254,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11254
11254
|
Ce(this, ke, null);
|
|
11255
11255
|
Ce(this, Qe, !1);
|
|
11256
11256
|
var yt;
|
|
11257
|
-
Xe(this, De, ve), Xe(this, ke, Ee), Xe(this, Je, de), Xe(this, Ye, be), Xe(this, Ze, Be), Xe(this, Fe, ee), Xe(this, Le,
|
|
11257
|
+
Xe(this, De, ve), Xe(this, ke, Ee), Xe(this, Je, de), Xe(this, Ye, be), Xe(this, Ze, Be), Xe(this, Fe, ee), Xe(this, Le, et), Xe(this, xt, gt), Xe(this, ut, pe);
|
|
11258
11258
|
const _t = s.PDFDateString.toDateObject(we);
|
|
11259
11259
|
_t && Xe(this, fe, Be.l10n.get("annotation_date_string", {
|
|
11260
11260
|
date: _t.toLocaleDateString(),
|
|
@@ -11264,7 +11264,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11264
11264
|
Mt.addEventListener("click", ne(this, Re)), Mt.addEventListener("mouseenter", ne(this, Se)), Mt.addEventListener("mouseleave", ne(this, ge)), Mt.classList.add("popupTriggerArea");
|
|
11265
11265
|
for (const Mt of pe)
|
|
11266
11266
|
(yt = Mt.container) == null || yt.addEventListener("keydown", ne(this, ce));
|
|
11267
|
-
ne(this, De).hidden = !0, Dt && Ue(this,
|
|
11267
|
+
ne(this, De).hidden = !0, Dt && Ue(this, ct, Wf).call(this);
|
|
11268
11268
|
}
|
|
11269
11269
|
render() {
|
|
11270
11270
|
if (ne(this, Me))
|
|
@@ -11298,19 +11298,19 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11298
11298
|
_n.textContent = zn;
|
|
11299
11299
|
}), be.append(_n);
|
|
11300
11300
|
}
|
|
11301
|
-
const
|
|
11302
|
-
if (gt != null && gt.str && (!(
|
|
11301
|
+
const et = ne(this, Je), gt = ne(this, Ye);
|
|
11302
|
+
if (gt != null && gt.str && (!(et != null && et.str) || et.str === gt.str))
|
|
11303
11303
|
f.XfaLayer.render({
|
|
11304
11304
|
xfaHtml: gt.html,
|
|
11305
11305
|
intent: "richText",
|
|
11306
11306
|
div: de
|
|
11307
11307
|
}), de.lastChild.classList.add("richText", "popupContent");
|
|
11308
11308
|
else {
|
|
11309
|
-
const _n = this._formatContents(
|
|
11309
|
+
const _n = this._formatContents(et);
|
|
11310
11310
|
de.append(_n);
|
|
11311
11311
|
}
|
|
11312
11312
|
let Dt = !!ne(this, xt), _t = Dt ? ne(this, xt) : ne(this, Le);
|
|
11313
|
-
for (const _n of ne(this,
|
|
11313
|
+
for (const _n of ne(this, ut))
|
|
11314
11314
|
if (!_t || t.Util.intersect(_n.data.rect, _t) !== null) {
|
|
11315
11315
|
_t = _n.data.rect, Dt = !0;
|
|
11316
11316
|
break;
|
|
@@ -11343,9 +11343,9 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11343
11343
|
return ne(this, De).hidden === !1;
|
|
11344
11344
|
}
|
|
11345
11345
|
}
|
|
11346
|
-
fe = new WeakMap(), ce = new WeakMap(), ge = new WeakMap(), Se = new WeakMap(), Re = new WeakMap(), Fe = new WeakMap(), De = new WeakMap(), Je = new WeakMap(),
|
|
11347
|
-
ve.altKey || ve.shiftKey || ve.ctrlKey || ve.metaKey || (ve.key === "Enter" || ve.key === "Escape" && ne(this, Ve)) && Ue(this,
|
|
11348
|
-
},
|
|
11346
|
+
fe = new WeakMap(), ce = new WeakMap(), ge = new WeakMap(), Se = new WeakMap(), Re = new WeakMap(), Fe = new WeakMap(), De = new WeakMap(), Je = new WeakMap(), ut = new WeakMap(), Ze = new WeakMap(), xt = new WeakMap(), Ve = new WeakMap(), Me = new WeakMap(), Le = new WeakMap(), Ye = new WeakMap(), ke = new WeakMap(), Qe = new WeakMap(), bt = new WeakSet(), ly = function(ve) {
|
|
11347
|
+
ve.altKey || ve.shiftKey || ve.ctrlKey || ve.metaKey || (ve.key === "Enter" || ve.key === "Escape" && ne(this, Ve)) && Ue(this, ct, Wf).call(this);
|
|
11348
|
+
}, ct = new WeakSet(), Wf = function() {
|
|
11349
11349
|
Xe(this, Ve, !ne(this, Ve)), ne(this, Ve) ? (Ue(this, at, Ym).call(this), ne(this, De).addEventListener("click", ne(this, Re)), ne(this, De).addEventListener("keydown", ne(this, ce))) : (Ue(this, $e, qm).call(this), ne(this, De).removeEventListener("click", ne(this, Re)), ne(this, De).removeEventListener("keydown", ne(this, ce)));
|
|
11350
11350
|
}, at = new WeakSet(), Ym = function() {
|
|
11351
11351
|
ne(this, Me) || this.render(), this.isVisible ? ne(this, Ve) && ne(this, De).classList.add("focused") : (ne(this, De).hidden = !1, ne(this, De).style.zIndex = parseInt(ne(this, De).style.zIndex) + 1e3);
|
|
@@ -11462,8 +11462,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11462
11462
|
} = T(ee.rect), we = this.svgFactory.create(pe, Ee, !0);
|
|
11463
11463
|
let de = [];
|
|
11464
11464
|
for (const Be of ee.vertices) {
|
|
11465
|
-
const
|
|
11466
|
-
de.push(
|
|
11465
|
+
const et = Be.x - ee.rect[0], gt = ee.rect[3] - Be.y;
|
|
11466
|
+
de.push(et + "," + gt);
|
|
11467
11467
|
}
|
|
11468
11468
|
de = de.join(" ");
|
|
11469
11469
|
const be = Xe(this, Ke, this.svgFactory.createElement(this.svgElementName));
|
|
@@ -11510,8 +11510,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11510
11510
|
} = T(ee.rect), we = this.svgFactory.create(pe, Ee, !0);
|
|
11511
11511
|
for (const de of ee.inkLists) {
|
|
11512
11512
|
let be = [];
|
|
11513
|
-
for (const
|
|
11514
|
-
const gt =
|
|
11513
|
+
for (const et of de) {
|
|
11514
|
+
const gt = et.x - ee.rect[0], Dt = ee.rect[3] - et.y;
|
|
11515
11515
|
be.push(`${gt},${Dt}`);
|
|
11516
11516
|
}
|
|
11517
11517
|
be = be.join(" ");
|
|
@@ -11641,7 +11641,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11641
11641
|
page: we,
|
|
11642
11642
|
viewport: de
|
|
11643
11643
|
}) {
|
|
11644
|
-
Ce(this,
|
|
11644
|
+
Ce(this, nt);
|
|
11645
11645
|
Ce(this, Ae);
|
|
11646
11646
|
Ce(this, Pt, null);
|
|
11647
11647
|
Ce(this, ot, null);
|
|
@@ -11694,8 +11694,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11694
11694
|
gt ? gt.push(Be) : Ee.set(de.popupRef, [Be]);
|
|
11695
11695
|
}
|
|
11696
11696
|
Be.annotationEditorType > 0 && ne(this, Ge).set(Be.data.id, Be);
|
|
11697
|
-
const
|
|
11698
|
-
de.hidden && (
|
|
11697
|
+
const et = Be.render();
|
|
11698
|
+
de.hidden && (et.style.visibility = "hidden"), Ue(this, nt, uy).call(this, et, de.id);
|
|
11699
11699
|
}
|
|
11700
11700
|
Ue(this, Ae, Jm).call(this), await this.l10n.translate(pe);
|
|
11701
11701
|
}
|
|
@@ -11714,7 +11714,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
11714
11714
|
return ne(this, Ge).get(ve);
|
|
11715
11715
|
}
|
|
11716
11716
|
}
|
|
11717
|
-
Pt = new WeakMap(), ot = new WeakMap(), Ge = new WeakMap(),
|
|
11717
|
+
Pt = new WeakMap(), ot = new WeakMap(), Ge = new WeakMap(), nt = new WeakSet(), uy = function(ve, ee) {
|
|
11718
11718
|
var Ee;
|
|
11719
11719
|
const pe = ve.firstChild || ve;
|
|
11720
11720
|
pe.id = `${t.AnnotationPrefix}${ee}`, this.div.append(ve), (Ee = ne(this, Pt)) == null || Ee.moveElementInDOM(this.div, ve, pe, !1);
|
|
@@ -12034,7 +12034,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12034
12034
|
/* 33 */
|
|
12035
12035
|
/***/
|
|
12036
12036
|
(l, e, n) => {
|
|
12037
|
-
var u, p, x, T, _, S, g, v, b, R, y, w, C, D, N, cy, k, dy, M, fy, B, hy, X, Zm, se, py, K, eg, ue, my, J, gy, W, vy, G, yy, ie, _y, fe, xa, ge, tg, Re, Kf, De, Xf,
|
|
12037
|
+
var u, p, x, T, _, S, g, v, b, R, y, w, C, D, N, cy, k, dy, M, fy, B, hy, X, Zm, se, py, K, eg, ue, my, J, gy, W, vy, G, yy, ie, _y, fe, xa, ge, tg, Re, Kf, De, Xf, ut, ru, xt, ng, Me, Yf, Ye, xy, Qe, rg, qe, Ey, ze, Sy, ft, ig, Ne, qf, _e, iu;
|
|
12038
12038
|
Object.defineProperty(e, "__esModule", {
|
|
12039
12039
|
value: !0
|
|
12040
12040
|
}), e.InkEditor = void 0;
|
|
@@ -12061,7 +12061,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12061
12061
|
Ce(this, ge);
|
|
12062
12062
|
Ce(this, Re);
|
|
12063
12063
|
Ce(this, De);
|
|
12064
|
-
Ce(this,
|
|
12064
|
+
Ce(this, ut);
|
|
12065
12065
|
Ce(this, xt);
|
|
12066
12066
|
Ce(this, Me);
|
|
12067
12067
|
Ce(this, ze);
|
|
@@ -12122,7 +12122,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12122
12122
|
return [[t.AnnotationEditorParamsType.INK_THICKNESS, this.thickness || Ke._defaultThickness], [t.AnnotationEditorParamsType.INK_COLOR, this.color || Ke._defaultColor || s.AnnotationEditor._defaultLineColor], [t.AnnotationEditorParamsType.INK_OPACITY, Math.round(100 * (this.opacity ?? Ke._defaultOpacity))]];
|
|
12123
12123
|
}
|
|
12124
12124
|
rebuild() {
|
|
12125
|
-
this.parent && (super.rebuild(), this.div !== null && (this.canvas || (Ue(this, Re, Kf).call(this), Ue(this, De, Xf).call(this)), this.isAttachedToDOM || (this.parent.add(this), Ue(this,
|
|
12125
|
+
this.parent && (super.rebuild(), this.div !== null && (this.canvas || (Ue(this, Re, Kf).call(this), Ue(this, De, Xf).call(this)), this.isAttachedToDOM || (this.parent.add(this), Ue(this, ut, ru).call(this)), Ue(this, _e, iu).call(this)));
|
|
12126
12126
|
}
|
|
12127
12127
|
remove() {
|
|
12128
12128
|
this.canvas !== null && (this.isEmpty() || this.commit(), this.canvas.width = this.canvas.height = 0, this.canvas.remove(), this.canvas = null, ne(this, y).disconnect(), Xe(this, y, null), super.remove());
|
|
@@ -12177,10 +12177,10 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12177
12177
|
var Ae;
|
|
12178
12178
|
return (Ae = this.div) == null ? void 0 : Ae.setAttribute("aria-label", Et);
|
|
12179
12179
|
});
|
|
12180
|
-
const [Pt, ot, Ge,
|
|
12181
|
-
if (this.setAt(Pt, ot, 0, 0), this.setDims(Ge,
|
|
12180
|
+
const [Pt, ot, Ge, nt] = Ue(this, B, hy).call(this);
|
|
12181
|
+
if (this.setAt(Pt, ot, 0, 0), this.setDims(Ge, nt), Ue(this, Re, Kf).call(this), this.width) {
|
|
12182
12182
|
const [Et, Ae] = this.parentDimensions;
|
|
12183
|
-
this.setAspectRatio(this.width * Et, this.height * Ae), this.setAt(je * Et, vt * Ae, this.width * Et, this.height * Ae), Xe(this, R, !0), Ue(this,
|
|
12183
|
+
this.setAspectRatio(this.width * Et, this.height * Ae), this.setAt(je * Et, vt * Ae, this.width * Et, this.height * Ae), Xe(this, R, !0), Ue(this, ut, ru).call(this), this.setDims(this.width * Et, this.height * Ae), Ue(this, fe, xa).call(this), this.div.classList.add("disabled");
|
|
12184
12184
|
} else
|
|
12185
12185
|
this.div.classList.add("editing"), this.enableEditMode();
|
|
12186
12186
|
return Ue(this, De, Xf).call(this), this.div;
|
|
@@ -12190,8 +12190,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12190
12190
|
if (ne(this, w) === Pt && ne(this, C) === ot)
|
|
12191
12191
|
return;
|
|
12192
12192
|
Xe(this, w, Pt), Xe(this, C, ot), this.canvas.style.visibility = "hidden";
|
|
12193
|
-
const [Ge,
|
|
12194
|
-
this.width = je / Ge, this.height = vt /
|
|
12193
|
+
const [Ge, nt] = this.parentDimensions;
|
|
12194
|
+
this.width = je / Ge, this.height = vt / nt, this.fixAndSetPosition(), ne(this, v) && Ue(this, xt, ng).call(this, je, vt), Ue(this, ut, ru).call(this), Ue(this, fe, xa).call(this), this.canvas.style.visibility = "visible", this.fixDims();
|
|
12195
12195
|
}
|
|
12196
12196
|
static deserialize(je, vt, Pt) {
|
|
12197
12197
|
var we, de, be;
|
|
@@ -12199,7 +12199,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12199
12199
|
return null;
|
|
12200
12200
|
const ot = super.deserialize(je, vt, Pt);
|
|
12201
12201
|
ot.thickness = je.thickness, ot.color = t.Util.makeHexColor(...je.color), ot.opacity = je.opacity;
|
|
12202
|
-
const [Ge,
|
|
12202
|
+
const [Ge, nt] = ot.pageDimensions, Et = ot.width * Ge, Ae = ot.height * nt, lt = ot.parentScale, it = je.thickness / 2;
|
|
12203
12203
|
Xe(ot, v, !0), Xe(ot, w, Math.round(Et)), Xe(ot, C, Math.round(Ae));
|
|
12204
12204
|
const {
|
|
12205
12205
|
paths: ve,
|
|
@@ -12210,14 +12210,14 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12210
12210
|
bezier: Be
|
|
12211
12211
|
} of ve) {
|
|
12212
12212
|
Be = Ue(we = Ke, qe, Ey).call(we, Be, ee, pe);
|
|
12213
|
-
const
|
|
12214
|
-
ot.paths.push(
|
|
12215
|
-
let gt =
|
|
12213
|
+
const et = [];
|
|
12214
|
+
ot.paths.push(et);
|
|
12215
|
+
let gt = lt * (Be[0] - it), Dt = lt * (Be[1] - it);
|
|
12216
12216
|
for (let yt = 2, Mt = Be.length; yt < Mt; yt += 6) {
|
|
12217
|
-
const Lt =
|
|
12218
|
-
|
|
12217
|
+
const Lt = lt * (Be[yt] - it), Bt = lt * (Be[yt + 1] - it), Xt = lt * (Be[yt + 2] - it), An = lt * (Be[yt + 3] - it), _n = lt * (Be[yt + 4] - it), zn = lt * (Be[yt + 5] - it);
|
|
12218
|
+
et.push([[gt, Dt], [Lt, Bt], [Xt, An], [_n, zn]]), gt = _n, Dt = zn;
|
|
12219
12219
|
}
|
|
12220
|
-
const _t = Ue(this, Ye, xy).call(this,
|
|
12220
|
+
const _t = Ue(this, Ye, xy).call(this, et);
|
|
12221
12221
|
ot.bezierPath2D.push(_t);
|
|
12222
12222
|
}
|
|
12223
12223
|
const Ee = Ue(de = ot, ft, ig).call(de);
|
|
@@ -12305,11 +12305,11 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12305
12305
|
opacity: Pt,
|
|
12306
12306
|
thickness: ot,
|
|
12307
12307
|
parentScale: Ge,
|
|
12308
|
-
scaleFactor:
|
|
12308
|
+
scaleFactor: nt
|
|
12309
12309
|
} = this;
|
|
12310
|
-
je.lineWidth = ot * Ge /
|
|
12310
|
+
je.lineWidth = ot * Ge / nt, je.lineCap = "round", je.lineJoin = "round", je.miterLimit = 10, je.strokeStyle = `${vt}${(0, h.opacityToHex)(Pt)}`;
|
|
12311
12311
|
}, se = new WeakSet(), py = function(je, vt) {
|
|
12312
|
-
this.canvas.addEventListener("contextmenu", d.noContextMenu), this.canvas.addEventListener("pointerleave", ne(this, T)), this.canvas.addEventListener("pointermove", ne(this, x)), this.canvas.addEventListener("pointerup", ne(this, _)), this.canvas.removeEventListener("pointerdown", ne(this, S)), this.isEditing = !0, ne(this, R) || (Xe(this, R, !0), Ue(this,
|
|
12312
|
+
this.canvas.addEventListener("contextmenu", d.noContextMenu), this.canvas.addEventListener("pointerleave", ne(this, T)), this.canvas.addEventListener("pointermove", ne(this, x)), this.canvas.addEventListener("pointerup", ne(this, _)), this.canvas.removeEventListener("pointerdown", ne(this, S)), this.isEditing = !0, ne(this, R) || (Xe(this, R, !0), Ue(this, ut, ru).call(this), this.thickness || (this.thickness = Ke._defaultThickness), this.color || (this.color = Ke._defaultColor || s.AnnotationEditor._defaultLineColor), this.opacity ?? (this.opacity = Ke._defaultOpacity)), this.currentPath.push([je, vt]), Xe(this, b, !1), Ue(this, X, Zm).call(this), Xe(this, D, () => {
|
|
12313
12313
|
Ue(this, W, vy).call(this), ne(this, D) && window.requestAnimationFrame(ne(this, D));
|
|
12314
12314
|
}), window.requestAnimationFrame(ne(this, D));
|
|
12315
12315
|
}, K = new WeakSet(), eg = function(je, vt) {
|
|
@@ -12317,12 +12317,12 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12317
12317
|
if (this.currentPath.length > 1 && je === Pt && vt === ot)
|
|
12318
12318
|
return;
|
|
12319
12319
|
const Ge = this.currentPath;
|
|
12320
|
-
let
|
|
12320
|
+
let nt = ne(this, g);
|
|
12321
12321
|
if (Ge.push([je, vt]), Xe(this, b, !0), Ge.length <= 2) {
|
|
12322
|
-
|
|
12322
|
+
nt.moveTo(...Ge[0]), nt.lineTo(je, vt);
|
|
12323
12323
|
return;
|
|
12324
12324
|
}
|
|
12325
|
-
Ge.length === 3 && (Xe(this, g,
|
|
12325
|
+
Ge.length === 3 && (Xe(this, g, nt = new Path2D()), nt.moveTo(...Ge[0])), Ue(this, G, yy).call(this, nt, ...Ge.at(-3), ...Ge.at(-2), je, vt);
|
|
12326
12326
|
}, ue = new WeakSet(), my = function() {
|
|
12327
12327
|
if (this.currentPath.length === 0)
|
|
12328
12328
|
return;
|
|
@@ -12339,13 +12339,13 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12339
12339
|
}
|
|
12340
12340
|
const ot = ne(this, g), Ge = this.currentPath;
|
|
12341
12341
|
this.currentPath = [], Xe(this, g, new Path2D());
|
|
12342
|
-
const
|
|
12342
|
+
const nt = () => {
|
|
12343
12343
|
this.allRawPaths.push(Ge), this.paths.push(Pt), this.bezierPath2D.push(ot), this.rebuild();
|
|
12344
12344
|
}, Et = () => {
|
|
12345
12345
|
this.allRawPaths.pop(), this.paths.pop(), this.bezierPath2D.pop(), this.paths.length === 0 ? this.remove() : (this.canvas || (Ue(this, Re, Kf).call(this), Ue(this, De, Xf).call(this)), Ue(this, _e, iu).call(this));
|
|
12346
12346
|
};
|
|
12347
12347
|
this.addCommands({
|
|
12348
|
-
cmd:
|
|
12348
|
+
cmd: nt,
|
|
12349
12349
|
undo: Et,
|
|
12350
12350
|
mustExec: !0
|
|
12351
12351
|
});
|
|
@@ -12353,18 +12353,18 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12353
12353
|
if (!ne(this, b))
|
|
12354
12354
|
return;
|
|
12355
12355
|
Xe(this, b, !1);
|
|
12356
|
-
const je = Math.ceil(this.thickness * this.parentScale), vt = this.currentPath.slice(-3), Pt = vt.map((
|
|
12356
|
+
const je = Math.ceil(this.thickness * this.parentScale), vt = this.currentPath.slice(-3), Pt = vt.map((nt) => nt[0]), ot = vt.map((nt) => nt[1]);
|
|
12357
12357
|
Math.min(...Pt) - je, Math.max(...Pt) + je, Math.min(...ot) - je, Math.max(...ot) + je;
|
|
12358
12358
|
const {
|
|
12359
12359
|
ctx: Ge
|
|
12360
12360
|
} = this;
|
|
12361
12361
|
Ge.save(), Ge.clearRect(0, 0, this.canvas.width, this.canvas.height);
|
|
12362
|
-
for (const
|
|
12363
|
-
Ge.stroke(
|
|
12362
|
+
for (const nt of this.bezierPath2D)
|
|
12363
|
+
Ge.stroke(nt);
|
|
12364
12364
|
Ge.stroke(ne(this, g)), Ge.restore();
|
|
12365
|
-
}, G = new WeakSet(), yy = function(je, vt, Pt, ot, Ge,
|
|
12366
|
-
const Ae = (vt + ot) / 2,
|
|
12367
|
-
je.bezierCurveTo(Ae + 2 * (ot - Ae) / 3,
|
|
12365
|
+
}, G = new WeakSet(), yy = function(je, vt, Pt, ot, Ge, nt, Et) {
|
|
12366
|
+
const Ae = (vt + ot) / 2, lt = (Pt + Ge) / 2, it = (ot + nt) / 2, ve = (Ge + Et) / 2;
|
|
12367
|
+
je.bezierCurveTo(Ae + 2 * (ot - Ae) / 3, lt + 2 * (Ge - lt) / 3, it + 2 * (ot - it) / 3, ve + 2 * (Ge - ve) / 3, it, ve);
|
|
12368
12368
|
}, ie = new WeakSet(), _y = function() {
|
|
12369
12369
|
const je = this.currentPath;
|
|
12370
12370
|
if (je.length <= 2)
|
|
@@ -12372,11 +12372,11 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12372
12372
|
const vt = [];
|
|
12373
12373
|
let Pt, [ot, Ge] = je[0];
|
|
12374
12374
|
for (Pt = 1; Pt < je.length - 2; Pt++) {
|
|
12375
|
-
const [ee, pe] = je[Pt], [Ee, we] = je[Pt + 1], de = (ee + Ee) / 2, be = (pe + we) / 2, Be = [ot + 2 * (ee - ot) / 3, Ge + 2 * (pe - Ge) / 3],
|
|
12376
|
-
vt.push([[ot, Ge], Be,
|
|
12375
|
+
const [ee, pe] = je[Pt], [Ee, we] = je[Pt + 1], de = (ee + Ee) / 2, be = (pe + we) / 2, Be = [ot + 2 * (ee - ot) / 3, Ge + 2 * (pe - Ge) / 3], et = [de + 2 * (ee - de) / 3, be + 2 * (pe - be) / 3];
|
|
12376
|
+
vt.push([[ot, Ge], Be, et, [de, be]]), [ot, Ge] = [de, be];
|
|
12377
12377
|
}
|
|
12378
|
-
const [
|
|
12379
|
-
return vt.push([[ot, Ge], it, ve, [Ae,
|
|
12378
|
+
const [nt, Et] = je[Pt], [Ae, lt] = je[Pt + 1], it = [ot + 2 * (nt - ot) / 3, Ge + 2 * (Et - Ge) / 3], ve = [Ae + 2 * (nt - Ae) / 3, lt + 2 * (Et - lt) / 3];
|
|
12379
|
+
return vt.push([[ot, Ge], it, ve, [Ae, lt]]), vt;
|
|
12380
12380
|
}, fe = new WeakSet(), xa = function() {
|
|
12381
12381
|
if (this.isEmpty()) {
|
|
12382
12382
|
Ue(this, Me, Yf).call(this);
|
|
@@ -12404,7 +12404,7 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12404
12404
|
const vt = je[0].contentRect;
|
|
12405
12405
|
vt.width && vt.height && this.setDimensions(vt.width, vt.height);
|
|
12406
12406
|
})), ne(this, y).observe(this.div);
|
|
12407
|
-
},
|
|
12407
|
+
}, ut = new WeakSet(), ru = function() {
|
|
12408
12408
|
if (!ne(this, R))
|
|
12409
12409
|
return;
|
|
12410
12410
|
const [je, vt] = this.parentDimensions;
|
|
@@ -12418,31 +12418,31 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12418
12418
|
}, Ye = new WeakSet(), xy = function(je) {
|
|
12419
12419
|
const vt = new Path2D();
|
|
12420
12420
|
for (let Pt = 0, ot = je.length; Pt < ot; Pt++) {
|
|
12421
|
-
const [Ge,
|
|
12422
|
-
Pt === 0 && vt.moveTo(...Ge), vt.bezierCurveTo(
|
|
12421
|
+
const [Ge, nt, Et, Ae] = je[Pt];
|
|
12422
|
+
Pt === 0 && vt.moveTo(...Ge), vt.bezierCurveTo(nt[0], nt[1], Et[0], Et[1], Ae[0], Ae[1]);
|
|
12423
12423
|
}
|
|
12424
12424
|
return vt;
|
|
12425
12425
|
}, Qe = new WeakSet(), rg = function(je, vt, Pt) {
|
|
12426
|
-
const [ot, Ge,
|
|
12426
|
+
const [ot, Ge, nt, Et] = vt;
|
|
12427
12427
|
switch (Pt) {
|
|
12428
12428
|
case 0:
|
|
12429
|
-
for (let Ae = 0,
|
|
12429
|
+
for (let Ae = 0, lt = je.length; Ae < lt; Ae += 2)
|
|
12430
12430
|
je[Ae] += ot, je[Ae + 1] = Et - je[Ae + 1];
|
|
12431
12431
|
break;
|
|
12432
12432
|
case 90:
|
|
12433
|
-
for (let Ae = 0,
|
|
12433
|
+
for (let Ae = 0, lt = je.length; Ae < lt; Ae += 2) {
|
|
12434
12434
|
const it = je[Ae];
|
|
12435
12435
|
je[Ae] = je[Ae + 1] + ot, je[Ae + 1] = it + Ge;
|
|
12436
12436
|
}
|
|
12437
12437
|
break;
|
|
12438
12438
|
case 180:
|
|
12439
|
-
for (let Ae = 0,
|
|
12440
|
-
je[Ae] =
|
|
12439
|
+
for (let Ae = 0, lt = je.length; Ae < lt; Ae += 2)
|
|
12440
|
+
je[Ae] = nt - je[Ae], je[Ae + 1] += Ge;
|
|
12441
12441
|
break;
|
|
12442
12442
|
case 270:
|
|
12443
|
-
for (let Ae = 0,
|
|
12443
|
+
for (let Ae = 0, lt = je.length; Ae < lt; Ae += 2) {
|
|
12444
12444
|
const it = je[Ae];
|
|
12445
|
-
je[Ae] =
|
|
12445
|
+
je[Ae] = nt - je[Ae + 1], je[Ae + 1] = Et - it;
|
|
12446
12446
|
}
|
|
12447
12447
|
break;
|
|
12448
12448
|
default:
|
|
@@ -12450,26 +12450,26 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12450
12450
|
}
|
|
12451
12451
|
return je;
|
|
12452
12452
|
}, qe = new WeakSet(), Ey = function(je, vt, Pt) {
|
|
12453
|
-
const [ot, Ge,
|
|
12453
|
+
const [ot, Ge, nt, Et] = vt;
|
|
12454
12454
|
switch (Pt) {
|
|
12455
12455
|
case 0:
|
|
12456
|
-
for (let Ae = 0,
|
|
12456
|
+
for (let Ae = 0, lt = je.length; Ae < lt; Ae += 2)
|
|
12457
12457
|
je[Ae] -= ot, je[Ae + 1] = Et - je[Ae + 1];
|
|
12458
12458
|
break;
|
|
12459
12459
|
case 90:
|
|
12460
|
-
for (let Ae = 0,
|
|
12460
|
+
for (let Ae = 0, lt = je.length; Ae < lt; Ae += 2) {
|
|
12461
12461
|
const it = je[Ae];
|
|
12462
12462
|
je[Ae] = je[Ae + 1] - Ge, je[Ae + 1] = it - ot;
|
|
12463
12463
|
}
|
|
12464
12464
|
break;
|
|
12465
12465
|
case 180:
|
|
12466
|
-
for (let Ae = 0,
|
|
12467
|
-
je[Ae] =
|
|
12466
|
+
for (let Ae = 0, lt = je.length; Ae < lt; Ae += 2)
|
|
12467
|
+
je[Ae] = nt - je[Ae], je[Ae + 1] -= Ge;
|
|
12468
12468
|
break;
|
|
12469
12469
|
case 270:
|
|
12470
|
-
for (let Ae = 0,
|
|
12470
|
+
for (let Ae = 0, lt = je.length; Ae < lt; Ae += 2) {
|
|
12471
12471
|
const it = je[Ae];
|
|
12472
|
-
je[Ae] = Et - je[Ae + 1], je[Ae + 1] =
|
|
12472
|
+
je[Ae] = Et - je[Ae + 1], je[Ae + 1] = nt - it;
|
|
12473
12473
|
}
|
|
12474
12474
|
break;
|
|
12475
12475
|
default:
|
|
@@ -12477,16 +12477,16 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12477
12477
|
}
|
|
12478
12478
|
return je;
|
|
12479
12479
|
}, ze = new WeakSet(), Sy = function(je, vt, Pt, ot) {
|
|
12480
|
-
var
|
|
12481
|
-
const Ge = [],
|
|
12480
|
+
var lt, it;
|
|
12481
|
+
const Ge = [], nt = this.thickness / 2, Et = je * vt + nt, Ae = je * Pt + nt;
|
|
12482
12482
|
for (const ve of this.paths) {
|
|
12483
12483
|
const ee = [], pe = [];
|
|
12484
12484
|
for (let Ee = 0, we = ve.length; Ee < we; Ee++) {
|
|
12485
|
-
const [de, be, Be,
|
|
12485
|
+
const [de, be, Be, et] = ve[Ee], gt = je * de[0] + Et, Dt = je * de[1] + Ae, _t = je * be[0] + Et, yt = je * be[1] + Ae, Mt = je * Be[0] + Et, Lt = je * Be[1] + Ae, Bt = je * et[0] + Et, Xt = je * et[1] + Ae;
|
|
12486
12486
|
Ee === 0 && (ee.push(gt, Dt), pe.push(gt, Dt)), ee.push(_t, yt, Mt, Lt, Bt, Xt), pe.push(_t, yt), Ee === we - 1 && pe.push(Bt, Xt);
|
|
12487
12487
|
}
|
|
12488
12488
|
Ge.push({
|
|
12489
|
-
bezier: Ue(
|
|
12489
|
+
bezier: Ue(lt = Ke, Qe, rg).call(lt, ee, ot, this.rotation),
|
|
12490
12490
|
points: Ue(it = Ke, Qe, rg).call(it, pe, ot, this.rotation)
|
|
12491
12491
|
});
|
|
12492
12492
|
}
|
|
@@ -12494,8 +12494,8 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12494
12494
|
}, ft = new WeakSet(), ig = function() {
|
|
12495
12495
|
let je = 1 / 0, vt = -1 / 0, Pt = 1 / 0, ot = -1 / 0;
|
|
12496
12496
|
for (const Ge of this.paths)
|
|
12497
|
-
for (const [
|
|
12498
|
-
const it = t.Util.bezierBoundingBox(...
|
|
12497
|
+
for (const [nt, Et, Ae, lt] of Ge) {
|
|
12498
|
+
const it = t.Util.bezierBoundingBox(...nt, ...Et, ...Ae, ...lt);
|
|
12499
12499
|
je = Math.min(je, it[0]), Pt = Math.min(Pt, it[1]), vt = Math.max(vt, it[2]), ot = Math.max(ot, it[3]);
|
|
12500
12500
|
}
|
|
12501
12501
|
return [je, Pt, vt, ot];
|
|
@@ -12510,12 +12510,12 @@ const __viteBrowserExternal = {}, __viteBrowserExternal$1 = /* @__PURE__ */ Obje
|
|
|
12510
12510
|
}
|
|
12511
12511
|
const vt = Ue(this, ft, ig).call(this), Pt = Ue(this, Ne, qf).call(this);
|
|
12512
12512
|
Xe(this, p, Math.max(s.AnnotationEditor.MIN_SIZE, vt[2] - vt[0])), Xe(this, u, Math.max(s.AnnotationEditor.MIN_SIZE, vt[3] - vt[1]));
|
|
12513
|
-
const ot = Math.ceil(Pt + ne(this, p) * this.scaleFactor), Ge = Math.ceil(Pt + ne(this, u) * this.scaleFactor), [
|
|
12514
|
-
this.width = ot /
|
|
12515
|
-
const Ae = this.translationX,
|
|
12516
|
-
this.translationX = -vt[0], this.translationY = -vt[1], Ue(this,
|
|
12513
|
+
const ot = Math.ceil(Pt + ne(this, p) * this.scaleFactor), Ge = Math.ceil(Pt + ne(this, u) * this.scaleFactor), [nt, Et] = this.parentDimensions;
|
|
12514
|
+
this.width = ot / nt, this.height = Ge / Et, this.setAspectRatio(ot, Ge);
|
|
12515
|
+
const Ae = this.translationX, lt = this.translationY;
|
|
12516
|
+
this.translationX = -vt[0], this.translationY = -vt[1], Ue(this, ut, ru).call(this), Ue(this, fe, xa).call(this), Xe(this, w, ot), Xe(this, C, Ge), this.setDims(ot, Ge);
|
|
12517
12517
|
const it = je ? Pt / this.scaleFactor / 2 : 0;
|
|
12518
|
-
this.translate(Ae - this.translationX - it,
|
|
12518
|
+
this.translate(Ae - this.translationX - it, lt - this.translationY - it);
|
|
12519
12519
|
}, Ce(Ke, Ye), Ce(Ke, Qe), Ce(Ke, qe), Mn(Ke, "_defaultColor", null), Mn(Ke, "_defaultOpacity", 1), Mn(Ke, "_defaultThickness", 1), Mn(Ke, "_type", "ink");
|
|
12520
12520
|
let f = Ke;
|
|
12521
12521
|
e.InkEditor = f;
|
|
@@ -13500,12 +13500,12 @@ const Document$1 = forwardRef(function l(e, n) {
|
|
|
13500
13500
|
const te = useRef({
|
|
13501
13501
|
// Handling jumping to internal links target
|
|
13502
13502
|
scrollPageIntoView: (Fe) => {
|
|
13503
|
-
const { dest: De, pageNumber: Je, pageIndex:
|
|
13503
|
+
const { dest: De, pageNumber: Je, pageIndex: ut = Je - 1 } = Fe;
|
|
13504
13504
|
if (_) {
|
|
13505
|
-
_({ dest: De, pageIndex:
|
|
13505
|
+
_({ dest: De, pageIndex: ut, pageNumber: Je });
|
|
13506
13506
|
return;
|
|
13507
13507
|
}
|
|
13508
|
-
const Ze = se.current[
|
|
13508
|
+
const Ze = se.current[ut];
|
|
13509
13509
|
if (Ze) {
|
|
13510
13510
|
Ze.scrollIntoView();
|
|
13511
13511
|
return;
|
|
@@ -13586,13 +13586,13 @@ const Document$1 = forwardRef(function l(e, n) {
|
|
|
13586
13586
|
return;
|
|
13587
13587
|
const Fe = Object.assign(Object.assign({}, w), { isEvalSupported: !1 }), De = Object.assign(Object.assign({}, F), Fe), Je = pdfjs.getDocument(De);
|
|
13588
13588
|
g && (Je.onProgress = g), b && (Je.onPassword = b);
|
|
13589
|
-
const
|
|
13590
|
-
return
|
|
13589
|
+
const ut = Je;
|
|
13590
|
+
return ut.promise.then((Ze) => {
|
|
13591
13591
|
B({ type: "RESOLVE", value: Ze });
|
|
13592
13592
|
}).catch((Ze) => {
|
|
13593
|
-
|
|
13593
|
+
ut.destroyed || B({ type: "REJECT", error: Ze });
|
|
13594
13594
|
}), () => {
|
|
13595
|
-
|
|
13595
|
+
ut.destroy();
|
|
13596
13596
|
};
|
|
13597
13597
|
}
|
|
13598
13598
|
useEffect(
|
|
@@ -14172,7 +14172,7 @@ function Page(l) {
|
|
|
14172
14172
|
Z(ge, ce.current);
|
|
14173
14173
|
}
|
|
14174
14174
|
}
|
|
14175
|
-
function
|
|
14175
|
+
function ut() {
|
|
14176
14176
|
fe && (warning$1(!1, fe.toString()), N && N(fe));
|
|
14177
14177
|
}
|
|
14178
14178
|
function Ze() {
|
|
@@ -14193,7 +14193,7 @@ function Page(l) {
|
|
|
14193
14193
|
() => {
|
|
14194
14194
|
if (le !== void 0) {
|
|
14195
14195
|
if (le === !1) {
|
|
14196
|
-
|
|
14196
|
+
ut();
|
|
14197
14197
|
return;
|
|
14198
14198
|
}
|
|
14199
14199
|
Je();
|
|
@@ -14277,7 +14277,7 @@ function Page(l) {
|
|
|
14277
14277
|
function qe() {
|
|
14278
14278
|
return jsxRuntimeExports.jsxs(PageContext.Provider, { value: Ve, children: [ke(), Qe(), bt(), h] });
|
|
14279
14279
|
}
|
|
14280
|
-
function
|
|
14280
|
+
function ct() {
|
|
14281
14281
|
return Se ? se === null || le === void 0 || le === null ? jsxRuntimeExports.jsx(Message$1, { type: "loading", children: typeof g == "function" ? g() : g }) : se === !1 || le === !1 ? jsxRuntimeExports.jsx(Message$1, { type: "error", children: typeof T == "function" ? T() : T }) : qe() : jsxRuntimeExports.jsx(Message$1, { type: "no-data", children: typeof v == "function" ? v() : v });
|
|
14282
14282
|
}
|
|
14283
14283
|
return jsxRuntimeExports.jsx("div", Object.assign({ className: clsx(t, f), "data-page-number": Se, ref: mergeRefs(S, ce), style: {
|
|
@@ -14286,7 +14286,7 @@ function Page(l) {
|
|
|
14286
14286
|
position: "relative",
|
|
14287
14287
|
minWidth: "min-content",
|
|
14288
14288
|
minHeight: "min-content"
|
|
14289
|
-
} }, Me, { children:
|
|
14289
|
+
} }, Me, { children: ct() }));
|
|
14290
14290
|
}
|
|
14291
14291
|
displayWorkerWarning();
|
|
14292
14292
|
pdfjs.GlobalWorkerOptions.workerSrc = "pdf.worker.js";
|
|
@@ -15493,9 +15493,9 @@ var hls = { exports: {} };
|
|
|
15493
15493
|
var Je = this.videoTrackCC;
|
|
15494
15494
|
if (this.initPTS[Je] === void 0)
|
|
15495
15495
|
break;
|
|
15496
|
-
var
|
|
15497
|
-
if (
|
|
15498
|
-
var Ze =
|
|
15496
|
+
var ut = this.waitingFragment;
|
|
15497
|
+
if (ut) {
|
|
15498
|
+
var Ze = ut.frag.cc;
|
|
15499
15499
|
Je !== Ze ? (k = this.tracks[this.trackId], k.details && k.details.live && (S.logger.warn("Waiting fragment CC (" + Ze + ") does not match video track CC (" + Je + ")"), this.waitingFragment = null, this.state = R.State.IDLE)) : (this.state = R.State.FRAG_LOADING, this.onFragLoaded(this.waitingFragment), this.waitingFragment = null);
|
|
15500
15500
|
} else
|
|
15501
15501
|
this.state = R.State.IDLE;
|
|
@@ -22930,12 +22930,12 @@ var hls = { exports: {} };
|
|
|
22930
22930
|
if (K < B - 1)
|
|
22931
22931
|
y = M[K + 1].dts - fe.dts;
|
|
22932
22932
|
else {
|
|
22933
|
-
var Je = this.config,
|
|
22933
|
+
var Je = this.config, ut = fe.dts - M[K > 0 ? K - 1 : K].dts;
|
|
22934
22934
|
if (Je.stretchShortVideoTrack) {
|
|
22935
22935
|
var Ze = Je.maxBufferHole, xt = Math.floor(Ze * F), Ve = (v ? D + v * F : this.nextAudioPts) - fe.pts;
|
|
22936
|
-
Ve > xt ? (y = Ve -
|
|
22936
|
+
Ve > xt ? (y = Ve - ut, y < 0 && (y = ut), u.logger.log("It is approximately " + Ve / 90 + " ms to the next segment; using duration " + y / 90 + " ms for the last video frame.")) : y = ut;
|
|
22937
22937
|
} else
|
|
22938
|
-
y =
|
|
22938
|
+
y = ut;
|
|
22939
22939
|
}
|
|
22940
22940
|
Se = Math.round(fe.pts - fe.dts);
|
|
22941
22941
|
}
|
|
@@ -23063,12 +23063,12 @@ var hls = { exports: {} };
|
|
|
23063
23063
|
var De = 0, Je = se.length;
|
|
23064
23064
|
if (Je >= 2 && (De = se[Je - 2].duration, F.duration = De), Je) {
|
|
23065
23065
|
this.nextAudioPts = Z = X + y * De, _.len = 0, _.samples = se, P ? B = new Uint8Array() : B = d.default.moof(_.sequenceNumber++, z / y, _), _.samples = [];
|
|
23066
|
-
var
|
|
23066
|
+
var ut = z / b, Ze = Z / b, xt = {
|
|
23067
23067
|
data1: B,
|
|
23068
23068
|
data2: j,
|
|
23069
|
-
startPTS:
|
|
23069
|
+
startPTS: ut,
|
|
23070
23070
|
endPTS: Ze,
|
|
23071
|
-
startDTS:
|
|
23071
|
+
startDTS: ut,
|
|
23072
23072
|
endDTS: Ze,
|
|
23073
23073
|
type: "audio",
|
|
23074
23074
|
hasAudio: !0,
|
|
@@ -30438,30 +30438,30 @@ function ConversationalProComponent({
|
|
|
30438
30438
|
Te.uid === ce.uid && (Te.name = ce.alias);
|
|
30439
30439
|
}), ce.position = Z ? Ne : $e;
|
|
30440
30440
|
}
|
|
30441
|
-
const
|
|
30441
|
+
const ut = useCallback(() => {
|
|
30442
30442
|
e({ type: "success" });
|
|
30443
30443
|
}, [e]), Ze = useCallback(
|
|
30444
30444
|
($e, Ne) => {
|
|
30445
30445
|
const Te = [3, 2, 1][$e.id], Oe = o.filter((Ke) => Ke.fromId === X.id).find((Ke) => parseInt(Ke.fromPointIndex) === Te);
|
|
30446
30446
|
if (Oe) {
|
|
30447
30447
|
const Ke = s.findIndex((Ft) => Ft.id === Oe.toId);
|
|
30448
|
-
Oe.fromId === Oe.toId ? Ne() : Ke >= 0 ? (P(Ke), e({ type: "notifyProgress", payload: { line: Ke } })) :
|
|
30448
|
+
Oe.fromId === Oe.toId ? Ne() : Ke >= 0 ? (P(Ke), e({ type: "notifyProgress", payload: { line: Ke } })) : ut();
|
|
30449
30449
|
} else
|
|
30450
|
-
|
|
30450
|
+
ut();
|
|
30451
30451
|
},
|
|
30452
|
-
[X.id, o, e,
|
|
30452
|
+
[X.id, o, e, ut, s]
|
|
30453
30453
|
), xt = useCallback(
|
|
30454
30454
|
($e = !0) => {
|
|
30455
30455
|
const Ne = $e ? ["fromId", "toId"] : ["toId", "fromId"], Te = o.filter((Ke) => Ke[Ne[0]] === X.id), _e = Te.length === 1 ? Te[0] : Te.find((Ke) => Ke[Ne[1]] === V);
|
|
30456
30456
|
if (!(_e != null && _e[Ne[0]])) {
|
|
30457
|
-
|
|
30457
|
+
ut();
|
|
30458
30458
|
return;
|
|
30459
30459
|
}
|
|
30460
30460
|
$e || W(H.slice(0, -1));
|
|
30461
30461
|
const Oe = s.findIndex((Ke) => Ke.id === _e[Ne[1]]);
|
|
30462
|
-
Oe >= 0 ? (P(Oe), e({ type: "notifyProgress", payload: { line: Oe } })) :
|
|
30462
|
+
Oe >= 0 ? (P(Oe), e({ type: "notifyProgress", payload: { line: Oe } })) : ut();
|
|
30463
30463
|
},
|
|
30464
|
-
[X.id, o, H, e,
|
|
30464
|
+
[X.id, o, H, e, ut, V, s]
|
|
30465
30465
|
), Ve = useCallback(
|
|
30466
30466
|
($e) => {
|
|
30467
30467
|
if (te) {
|
|
@@ -30489,7 +30489,7 @@ function ConversationalProComponent({
|
|
|
30489
30489
|
const Oe = N + 1;
|
|
30490
30490
|
P(Oe), e({ type: "notifyProgress", payload: { line: Oe } }), Ne && Ne();
|
|
30491
30491
|
} else
|
|
30492
|
-
T || me || J ?
|
|
30492
|
+
T || me || J ? ut() : Te = !0;
|
|
30493
30493
|
Te || R(!0);
|
|
30494
30494
|
},
|
|
30495
30495
|
[
|
|
@@ -30504,7 +30504,7 @@ function ConversationalProComponent({
|
|
|
30504
30504
|
Ze,
|
|
30505
30505
|
xt,
|
|
30506
30506
|
e,
|
|
30507
|
-
|
|
30507
|
+
ut
|
|
30508
30508
|
]
|
|
30509
30509
|
), Le = () => {
|
|
30510
30510
|
if (R(!1), F(!1), D(!1), te)
|
|
@@ -30515,7 +30515,7 @@ function ConversationalProComponent({
|
|
|
30515
30515
|
}
|
|
30516
30516
|
R(!0);
|
|
30517
30517
|
}, Ye = useCallback(() => te ? X && X.type !== "conversationalDecision" && !o.find(($e) => $e.fromId === X.id) : N === s.length - 1, [N, X, o, te, s.length]), ke = () => {
|
|
30518
|
-
M("click-ui"), Ye() ?
|
|
30518
|
+
M("click-ui"), Ye() ? ut() : (w(!1), Me());
|
|
30519
30519
|
}, Qe = () => {
|
|
30520
30520
|
M("click-ui"), w(!1), Le();
|
|
30521
30521
|
}, bt = y && !me && !t && !J, qe = useMemo(() => G() >= 0 && H.length === 0 && te || N === 0 && !te || ie() || le(), [G, H.length, te, N, ie, le]);
|
|
@@ -30577,13 +30577,13 @@ function ConversationalProComponent({
|
|
|
30577
30577
|
Ne >= 0 && (v(!0), P(Ne));
|
|
30578
30578
|
}
|
|
30579
30579
|
}, [o, G, te, s, g, _ == null ? void 0 : _.line]);
|
|
30580
|
-
const
|
|
30580
|
+
const ct = l({
|
|
30581
30581
|
disabled: me,
|
|
30582
30582
|
repeat: !1,
|
|
30583
30583
|
forward: ke,
|
|
30584
30584
|
rewind: qe ? null : Qe
|
|
30585
30585
|
});
|
|
30586
|
-
if (useEffect(() =>
|
|
30586
|
+
if (useEffect(() => ct(), [ct]), J)
|
|
30587
30587
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
30588
30588
|
ChangeCamera,
|
|
30589
30589
|
{
|
|
@@ -40204,7 +40204,7 @@ function requireScheduler_development() {
|
|
|
40204
40204
|
}
|
|
40205
40205
|
function H(ze, at) {
|
|
40206
40206
|
var ft = at;
|
|
40207
|
-
for (ue(ft), B = o(F); B !== null && !e && !(B.expirationTime > ft && (!ze ||
|
|
40207
|
+
for (ue(ft), B = o(F); B !== null && !e && !(B.expirationTime > ft && (!ze || ut())); ) {
|
|
40208
40208
|
var $e = B.callback;
|
|
40209
40209
|
if (typeof $e == "function") {
|
|
40210
40210
|
B.callback = null, z = B.priorityLevel;
|
|
@@ -40321,7 +40321,7 @@ function requireScheduler_development() {
|
|
|
40321
40321
|
return z;
|
|
40322
40322
|
}
|
|
40323
40323
|
var Se = !1, Re = null, Fe = -1, De = t, Je = -1;
|
|
40324
|
-
function
|
|
40324
|
+
function ut() {
|
|
40325
40325
|
var ze = l.unstable_now() - Je;
|
|
40326
40326
|
return !(ze < De);
|
|
40327
40327
|
}
|
|
@@ -40371,8 +40371,8 @@ function requireScheduler_development() {
|
|
|
40371
40371
|
function bt() {
|
|
40372
40372
|
K(Fe), Fe = -1;
|
|
40373
40373
|
}
|
|
40374
|
-
var qe = Ze,
|
|
40375
|
-
l.unstable_IdlePriority = S, l.unstable_ImmediatePriority = p, l.unstable_LowPriority = _, l.unstable_NormalPriority = T, l.unstable_Profiling =
|
|
40374
|
+
var qe = Ze, ct = null;
|
|
40375
|
+
l.unstable_IdlePriority = S, l.unstable_ImmediatePriority = p, l.unstable_LowPriority = _, l.unstable_NormalPriority = T, l.unstable_Profiling = ct, l.unstable_UserBlockingPriority = x, l.unstable_cancelCallback = ce, l.unstable_continueExecution = le, l.unstable_forceFrameRate = xt, l.unstable_getCurrentPriorityLevel = ge, l.unstable_getFirstCallbackNode = fe, l.unstable_next = V, l.unstable_pauseExecution = ie, l.unstable_requestPaint = qe, l.unstable_runWithPriority = W, l.unstable_scheduleCallback = Y, l.unstable_shouldYield = ut, l.unstable_wrapCallback = G, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
40376
40376
|
}();
|
|
40377
40377
|
}(scheduler_development)), scheduler_development;
|
|
40378
40378
|
}
|
|
@@ -40605,7 +40605,7 @@ function requireReactReconciler_production_min() {
|
|
|
40605
40605
|
}
|
|
40606
40606
|
return null;
|
|
40607
40607
|
}
|
|
40608
|
-
var X = Array.isArray, re = e.getPublicInstance, se = e.getRootHostContext, Z = e.getChildHostContext, K = e.prepareForCommit, te = e.resetAfterCommit, ue = e.createInstance, me = e.appendInitialChild, J = e.finalizeInitialChildren, H = e.prepareUpdate, W = e.shouldSetTextContent, V = e.createTextInstance, G = e.scheduleTimeout, Y = e.cancelTimeout, ie = e.noTimeout, le = e.isPrimaryRenderer, fe = e.supportsMutation, ce = e.supportsPersistence, ge = e.supportsHydration, Se = e.getInstanceFromNode, Re = e.preparePortalMount, Fe = e.getCurrentEventPriority, De = e.detachDeletedInstance, Je = e.supportsMicrotasks,
|
|
40608
|
+
var X = Array.isArray, re = e.getPublicInstance, se = e.getRootHostContext, Z = e.getChildHostContext, K = e.prepareForCommit, te = e.resetAfterCommit, ue = e.createInstance, me = e.appendInitialChild, J = e.finalizeInitialChildren, H = e.prepareUpdate, W = e.shouldSetTextContent, V = e.createTextInstance, G = e.scheduleTimeout, Y = e.cancelTimeout, ie = e.noTimeout, le = e.isPrimaryRenderer, fe = e.supportsMutation, ce = e.supportsPersistence, ge = e.supportsHydration, Se = e.getInstanceFromNode, Re = e.preparePortalMount, Fe = e.getCurrentEventPriority, De = e.detachDeletedInstance, Je = e.supportsMicrotasks, ut = e.scheduleMicrotask, Ze = e.supportsTestSelectors, xt = e.findFiberRoot, Ve = e.getBoundingRect, Me = e.getTextContent, Le = e.isHiddenSubtree, Ye = e.matchAccessibilityRole, ke = e.setFocusIfFocusable, Qe = e.setupIntersectionObserver, bt = e.appendChild, qe = e.appendChildToContainer, ct = e.commitTextUpdate, ze = e.commitMount, at = e.commitUpdate, ft = e.insertBefore, $e = e.insertInContainerBefore, Ne = e.removeChild, Te = e.removeChildFromContainer, _e = e.resetTextContent, Oe = e.hideInstance, Ke = e.hideTextInstance, Ft = e.unhideInstance, Nt = e.unhideTextInstance, je = e.clearContainer, vt = e.cloneInstance, Pt = e.createContainerChildSet, ot = e.appendChildToContainerChildSet, Ge = e.finalizeContainerChildren, nt = e.replaceContainerChildren, Et = e.cloneHiddenInstance, Ae = e.cloneHiddenTextInstance, lt = e.canHydrateInstance, it = e.canHydrateTextInstance, ve = e.canHydrateSuspenseInstance, ee = e.isSuspenseInstancePending, pe = e.isSuspenseInstanceFallback, Ee = e.getSuspenseInstanceFallbackErrorDetails, we = e.registerSuspenseInstanceRetry, de = e.getNextHydratableSibling, be = e.getFirstHydratableChild, Be = e.getFirstHydratableChildWithinContainer, et = e.getFirstHydratableChildWithinSuspenseInstance, gt = e.hydrateInstance, Dt = e.hydrateTextInstance, _t = e.hydrateSuspenseInstance, yt = e.getNextHydratableInstanceAfterSuspenseInstance, Mt = e.commitHydratedContainer, Lt = e.commitHydratedSuspenseInstance, Bt = e.clearSuspenseBoundary, Xt = e.clearSuspenseBoundaryFromContainer, An = e.shouldDeleteUnhydratedTailInstances, _n = e.didNotMatchHydratedContainerTextInstance, zn = e.didNotMatchHydratedTextInstance, mi;
|
|
40609
40609
|
function Fr(E) {
|
|
40610
40610
|
if (mi === void 0)
|
|
40611
40611
|
try {
|
|
@@ -40958,7 +40958,7 @@ function requireReactReconciler_production_min() {
|
|
|
40958
40958
|
function Wc(E, A) {
|
|
40959
40959
|
switch (E.tag) {
|
|
40960
40960
|
case 5:
|
|
40961
|
-
return A =
|
|
40961
|
+
return A = lt(A, E.type, E.pendingProps), A !== null ? (E.stateNode = A, ri = E, vi = be(A), !0) : !1;
|
|
40962
40962
|
case 6:
|
|
40963
40963
|
return A = it(A, E.pendingProps), A !== null ? (E.stateNode = A, ri = E, vi = null, !0) : !1;
|
|
40964
40964
|
case 13:
|
|
@@ -42192,7 +42192,7 @@ Error generating stack: ` + ae.message + `
|
|
|
42192
42192
|
}
|
|
42193
42193
|
return ds(), $ = vl(Error(d(421))), yo(E, A, xe, $);
|
|
42194
42194
|
}
|
|
42195
|
-
return ee(Q) ? (A.flags |= 128, A.child = E.child, A = Fs.bind(null, E), we(Q, A), null) : (E = ae.treeContext, ge && (vi =
|
|
42195
|
+
return ee(Q) ? (A.flags |= 128, A.child = E.child, A = Fs.bind(null, E), we(Q, A), null) : (E = ae.treeContext, ge && (vi = et(Q), ri = A, Gn = !0, Pi = null, lo = !1, E !== null && (ni[gi++] = ts, ni[gi++] = Gi, ni[gi++] = Js, ts = E.id, Gi = E.overflow, Js = A)), A = _l(A, $.children), A.flags |= 4096, A);
|
|
42196
42196
|
}
|
|
42197
42197
|
function Ns(E, A, I) {
|
|
42198
42198
|
E.lanes |= A;
|
|
@@ -42787,7 +42787,7 @@ Error generating stack: ` + ae.message + `
|
|
|
42787
42787
|
fe && ur !== null && (Mi ? Xt(ur, I.stateNode) : Bt(ur, I.stateNode));
|
|
42788
42788
|
break;
|
|
42789
42789
|
case 4:
|
|
42790
|
-
fe ? ($ = ur, Q = Mi, ur = I.stateNode.containerInfo, Mi = !0, Vi(E, A, I), ur = $, Mi = Q) : (ce && ($ = I.stateNode.containerInfo, Q = Pt($),
|
|
42790
|
+
fe ? ($ = ur, Q = Mi, ur = I.stateNode.containerInfo, Mi = !0, Vi(E, A, I), ur = $, Mi = Q) : (ce && ($ = I.stateNode.containerInfo, Q = Pt($), nt($, Q)), Vi(E, A, I));
|
|
42791
42791
|
break;
|
|
42792
42792
|
case 0:
|
|
42793
42793
|
case 11:
|
|
@@ -42925,7 +42925,7 @@ Error generating stack: ` + ae.message + `
|
|
|
42925
42925
|
throw Error(d(162));
|
|
42926
42926
|
Q = E.stateNode, ae = E.memoizedProps, I = I !== null ? I.memoizedProps : ae;
|
|
42927
42927
|
try {
|
|
42928
|
-
|
|
42928
|
+
ct(Q, I, ae);
|
|
42929
42929
|
} catch (Ut) {
|
|
42930
42930
|
vn(E, E.return, Ut);
|
|
42931
42931
|
}
|
|
@@ -42942,7 +42942,7 @@ Error generating stack: ` + ae.message + `
|
|
|
42942
42942
|
if (ce) {
|
|
42943
42943
|
Q = A.containerInfo, ae = A.pendingChildren;
|
|
42944
42944
|
try {
|
|
42945
|
-
|
|
42945
|
+
nt(Q, ae);
|
|
42946
42946
|
} catch (Ut) {
|
|
42947
42947
|
vn(E, E.return, Ut);
|
|
42948
42948
|
}
|
|
@@ -42956,7 +42956,7 @@ Error generating stack: ` + ae.message + `
|
|
|
42956
42956
|
), jr(E), $ & 4 && ce) {
|
|
42957
42957
|
ae = E.stateNode, Q = ae.containerInfo, ae = ae.pendingChildren;
|
|
42958
42958
|
try {
|
|
42959
|
-
|
|
42959
|
+
nt(Q, ae);
|
|
42960
42960
|
} catch (Ut) {
|
|
42961
42961
|
vn(E, E.return, Ut);
|
|
42962
42962
|
}
|
|
@@ -43399,7 +43399,7 @@ Error generating stack: ` + ae.message + `
|
|
|
43399
43399
|
I !== null && zc(I), E.callbackNode = null, E.callbackPriority = 0;
|
|
43400
43400
|
else if (A = $ & -$, E.callbackPriority !== A) {
|
|
43401
43401
|
if (I != null && zc(I), A === 1)
|
|
43402
|
-
E.tag === 0 ? lh(ks.bind(null, E)) : $c(ks.bind(null, E)), Je ?
|
|
43402
|
+
E.tag === 0 ? lh(ks.bind(null, E)) : $c(ks.bind(null, E)), Je ? ut(function() {
|
|
43403
43403
|
!(dn & 6) && wi();
|
|
43404
43404
|
}) : hu(pu, wi), I = null;
|
|
43405
43405
|
else {
|
|
@@ -44544,11 +44544,11 @@ function requireReactReconciler_development() {
|
|
|
44544
44544
|
function _(a, c) {
|
|
44545
44545
|
a._reactInternals = c;
|
|
44546
44546
|
}
|
|
44547
|
-
var S = !1, g = !1, v = !1, b = !1, R = !1, y = !0, w = !0, C = !0, D = 0, N = 1, P = 2, k = 3, F = 4, M = 5, j = 6, B = 7, z = 8, X = 9, re = 10, se = 11, Z = 12, K = 13, te = 14, ue = 15, me = 16, J = 17, H = 18, W = 19, V = 21, G = 22, Y = 23, ie = 24, le = 25, fe = Symbol.for("react.element"), ce = Symbol.for("react.portal"), ge = Symbol.for("react.fragment"), Se = Symbol.for("react.strict_mode"), Re = Symbol.for("react.profiler"), Fe = Symbol.for("react.provider"), De = Symbol.for("react.context"), Je = Symbol.for("react.forward_ref"),
|
|
44547
|
+
var S = !1, g = !1, v = !1, b = !1, R = !1, y = !0, w = !0, C = !0, D = 0, N = 1, P = 2, k = 3, F = 4, M = 5, j = 6, B = 7, z = 8, X = 9, re = 10, se = 11, Z = 12, K = 13, te = 14, ue = 15, me = 16, J = 17, H = 18, W = 19, V = 21, G = 22, Y = 23, ie = 24, le = 25, fe = Symbol.for("react.element"), ce = Symbol.for("react.portal"), ge = Symbol.for("react.fragment"), Se = Symbol.for("react.strict_mode"), Re = Symbol.for("react.profiler"), Fe = Symbol.for("react.provider"), De = Symbol.for("react.context"), Je = Symbol.for("react.forward_ref"), ut = Symbol.for("react.suspense"), Ze = Symbol.for("react.suspense_list"), xt = Symbol.for("react.memo"), Ve = Symbol.for("react.lazy"), Me = Symbol.for("react.scope"), Le = Symbol.for("react.debug_trace_mode"), Ye = Symbol.for("react.offscreen"), ke = Symbol.for("react.legacy_hidden"), Qe = Symbol.for("react.cache"), bt = Symbol.for("react.tracing_marker"), qe = Symbol.iterator, ct = "@@iterator";
|
|
44548
44548
|
function ze(a) {
|
|
44549
44549
|
if (a === null || typeof a != "object")
|
|
44550
44550
|
return null;
|
|
44551
|
-
var c = qe && a[qe] || a[
|
|
44551
|
+
var c = qe && a[qe] || a[ct];
|
|
44552
44552
|
return typeof c == "function" ? c : null;
|
|
44553
44553
|
}
|
|
44554
44554
|
function at(a, c, O) {
|
|
@@ -44577,7 +44577,7 @@ function requireReactReconciler_development() {
|
|
|
44577
44577
|
return "Profiler";
|
|
44578
44578
|
case Se:
|
|
44579
44579
|
return "StrictMode";
|
|
44580
|
-
case
|
|
44580
|
+
case ut:
|
|
44581
44581
|
return "Suspense";
|
|
44582
44582
|
case Ze:
|
|
44583
44583
|
return "SuspenseList";
|
|
@@ -44695,7 +44695,7 @@ function requireReactReconciler_development() {
|
|
|
44695
44695
|
), Ge = (
|
|
44696
44696
|
/* */
|
|
44697
44697
|
256
|
|
44698
|
-
),
|
|
44698
|
+
), nt = (
|
|
44699
44699
|
/* */
|
|
44700
44700
|
512
|
|
44701
44701
|
), Et = (
|
|
@@ -44704,7 +44704,7 @@ function requireReactReconciler_development() {
|
|
|
44704
44704
|
), Ae = (
|
|
44705
44705
|
/* */
|
|
44706
44706
|
2048
|
|
44707
|
-
),
|
|
44707
|
+
), lt = (
|
|
44708
44708
|
/* */
|
|
44709
44709
|
4096
|
|
44710
44710
|
), it = (
|
|
@@ -44713,7 +44713,7 @@ function requireReactReconciler_development() {
|
|
|
44713
44713
|
), ve = (
|
|
44714
44714
|
/* */
|
|
44715
44715
|
16384
|
|
44716
|
-
), ee = Ae | Nt | Pt |
|
|
44716
|
+
), ee = Ae | Nt | Pt | nt | Et | ve, pe = (
|
|
44717
44717
|
/* */
|
|
44718
44718
|
32767
|
|
44719
44719
|
), Ee = (
|
|
@@ -44731,7 +44731,7 @@ function requireReactReconciler_development() {
|
|
|
44731
44731
|
), Be = (
|
|
44732
44732
|
/* */
|
|
44733
44733
|
2097152
|
|
44734
|
-
),
|
|
44734
|
+
), et = (
|
|
44735
44735
|
/* */
|
|
44736
44736
|
4194304
|
|
44737
44737
|
), gt = (
|
|
@@ -44747,7 +44747,7 @@ function requireReactReconciler_development() {
|
|
|
44747
44747
|
// TODO: Remove Update flag from before mutation phase by re-landing Visibility
|
|
44748
44748
|
// flag logic (see #20043)
|
|
44749
44749
|
Nt | Et | 0
|
|
44750
|
-
), Mt = Ft | Nt | je | vt |
|
|
44750
|
+
), Mt = Ft | Nt | je | vt | nt | lt | it, Lt = Nt | Pt | nt | it, Bt = Ae | je, Xt = et | gt | Be, An = o.ReactCurrentOwner;
|
|
44751
44751
|
function _n(a) {
|
|
44752
44752
|
var c = a, O = a;
|
|
44753
44753
|
if (a.alternate)
|
|
@@ -44756,7 +44756,7 @@ function requireReactReconciler_development() {
|
|
|
44756
44756
|
else {
|
|
44757
44757
|
var L = c;
|
|
44758
44758
|
do
|
|
44759
|
-
c = L, (c.flags & (Ft |
|
|
44759
|
+
c = L, (c.flags & (Ft | lt)) !== Oe && (O = c.return), L = c.return;
|
|
44760
44760
|
while (L);
|
|
44761
44761
|
}
|
|
44762
44762
|
return c.tag === k ? O : null;
|
|
@@ -45025,9 +45025,9 @@ function requireReactReconciler_development() {
|
|
|
45025
45025
|
if (Pe !== 1 || Ie !== 1)
|
|
45026
45026
|
do
|
|
45027
45027
|
if (Pe--, Ie--, Ie < 0 || he[Pe] !== ye[Ie]) {
|
|
45028
|
-
var
|
|
45028
|
+
var tt = `
|
|
45029
45029
|
` + he[Pe].replace(" at new ", " at ");
|
|
45030
|
-
return a.displayName &&
|
|
45030
|
+
return a.displayName && tt.includes("<anonymous>") && (tt = tt.replace("<anonymous>", a.displayName)), typeof a == "function" && Da.set(a, tt), tt;
|
|
45031
45031
|
}
|
|
45032
45032
|
while (Pe >= 1 && Ie >= 0);
|
|
45033
45033
|
break;
|
|
@@ -45057,7 +45057,7 @@ function requireReactReconciler_development() {
|
|
|
45057
45057
|
if (typeof a == "string")
|
|
45058
45058
|
return is(a);
|
|
45059
45059
|
switch (a) {
|
|
45060
|
-
case
|
|
45060
|
+
case ut:
|
|
45061
45061
|
return is("Suspense");
|
|
45062
45062
|
case Ze:
|
|
45063
45063
|
return is("SuspenseList");
|
|
@@ -45466,14 +45466,14 @@ function requireReactReconciler_development() {
|
|
|
45466
45466
|
if (c !== Ct && c !== L && // If we already suspended with a delay, then interrupting is fine. Don't
|
|
45467
45467
|
// bother waiting until the root is complete.
|
|
45468
45468
|
(c & U) === Ct) {
|
|
45469
|
-
var Ie = Ns(L),
|
|
45469
|
+
var Ie = Ns(L), tt = Ns(c);
|
|
45470
45470
|
if (
|
|
45471
45471
|
// Tests whether the next lane is equal or lower priority than the wip
|
|
45472
45472
|
// one. This works because the bits decrease in priority as you go left.
|
|
45473
|
-
Ie >=
|
|
45473
|
+
Ie >= tt || // Default priority updates should not interrupt transition updates. The
|
|
45474
45474
|
// only difference between default updates and transition updates is that
|
|
45475
45475
|
// default updates do not support refresh transitions.
|
|
45476
|
-
Ie === Fi && (
|
|
45476
|
+
Ie === Fi && (tt & os) !== Ct
|
|
45477
45477
|
)
|
|
45478
45478
|
return c;
|
|
45479
45479
|
}
|
|
@@ -45959,7 +45959,7 @@ function requireReactReconciler_development() {
|
|
|
45959
45959
|
ui(), xi[or++] = Ki, xi[or++] = Li, xi[or++] = ks, ks = a;
|
|
45960
45960
|
var L = Ki, U = Li, q = Ol(L) - 1, oe = L & ~(1 << q), he = O + 1, ye = Ol(c) + q;
|
|
45961
45961
|
if (ye > 30) {
|
|
45962
|
-
var Pe = q - q % 5, Ie = (1 << Pe) - 1,
|
|
45962
|
+
var Pe = q - q % 5, Ie = (1 << Pe) - 1, tt = (oe & Ie).toString(32), ht = oe >> Pe, Rt = q - Pe, wt = Ol(c) + Rt, At = he << Rt, qt = At | ht, rn = tt + U;
|
|
45963
45963
|
Ki = 1 << wt | qt, Li = rn;
|
|
45964
45964
|
} else {
|
|
45965
45965
|
var Jt = he << q, Nn = Jt | oe, xn = U;
|
|
@@ -46075,7 +46075,7 @@ function requireReactReconciler_development() {
|
|
|
46075
46075
|
var oe = a.type, he = a.memoizedProps, ye = a.stateNode;
|
|
46076
46076
|
switch (c.tag) {
|
|
46077
46077
|
case M: {
|
|
46078
|
-
var Pe = c.type, Ie = c.pendingProps,
|
|
46078
|
+
var Pe = c.type, Ie = c.pendingProps, tt = (a.mode & hn) !== Zt;
|
|
46079
46079
|
Yc(
|
|
46080
46080
|
oe,
|
|
46081
46081
|
he,
|
|
@@ -46083,7 +46083,7 @@ function requireReactReconciler_development() {
|
|
|
46083
46083
|
Pe,
|
|
46084
46084
|
Ie,
|
|
46085
46085
|
// TODO: Delete this argument when we remove the legacy root API.
|
|
46086
|
-
|
|
46086
|
+
tt
|
|
46087
46087
|
);
|
|
46088
46088
|
break;
|
|
46089
46089
|
}
|
|
@@ -46130,7 +46130,7 @@ function requireReactReconciler_development() {
|
|
|
46130
46130
|
}
|
|
46131
46131
|
}
|
|
46132
46132
|
function Co(a, c) {
|
|
46133
|
-
c.flags = c.flags & ~
|
|
46133
|
+
c.flags = c.flags & ~lt | Ft, Xi(a, c);
|
|
46134
46134
|
}
|
|
46135
46135
|
function Ms(a, c) {
|
|
46136
46136
|
switch (a.tag) {
|
|
@@ -46211,7 +46211,7 @@ function requireReactReconciler_development() {
|
|
|
46211
46211
|
break;
|
|
46212
46212
|
}
|
|
46213
46213
|
case M: {
|
|
46214
|
-
var ye = q.type, Pe = q.memoizedProps, Ie = q.stateNode,
|
|
46214
|
+
var ye = q.type, Pe = q.memoizedProps, Ie = q.stateNode, tt = (q.mode & hn) !== Zt;
|
|
46215
46215
|
xu(
|
|
46216
46216
|
ye,
|
|
46217
46217
|
Pe,
|
|
@@ -46219,7 +46219,7 @@ function requireReactReconciler_development() {
|
|
|
46219
46219
|
c,
|
|
46220
46220
|
O,
|
|
46221
46221
|
// TODO: Delete this argument when we remove the legacy root API.
|
|
46222
|
-
|
|
46222
|
+
tt
|
|
46223
46223
|
);
|
|
46224
46224
|
break;
|
|
46225
46225
|
}
|
|
@@ -46458,13 +46458,13 @@ Please update the following components: %s`, Pe);
|
|
|
46458
46458
|
Please update the following components: %s`, Ie);
|
|
46459
46459
|
}
|
|
46460
46460
|
if (U.size > 0) {
|
|
46461
|
-
var
|
|
46461
|
+
var tt = Yt(U);
|
|
46462
46462
|
f(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
46463
46463
|
|
|
46464
46464
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
46465
46465
|
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
46466
46466
|
|
|
46467
|
-
Please update the following components: %s`,
|
|
46467
|
+
Please update the following components: %s`, tt);
|
|
46468
46468
|
}
|
|
46469
46469
|
};
|
|
46470
46470
|
var Rd = /* @__PURE__ */ new Map(), og = /* @__PURE__ */ new Set();
|
|
@@ -46580,8 +46580,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, U)
|
|
|
46580
46580
|
ye.tag = Nd;
|
|
46581
46581
|
var Pe = L.updateQueue;
|
|
46582
46582
|
if (Pe !== null) {
|
|
46583
|
-
var Ie = Pe.shared,
|
|
46584
|
-
|
|
46583
|
+
var Ie = Pe.shared, tt = Ie.pending;
|
|
46584
|
+
tt === null ? ye.next = ye : (ye.next = tt.next, tt.next = ye), Ie.pending = ye;
|
|
46585
46585
|
}
|
|
46586
46586
|
}
|
|
46587
46587
|
L.lanes = tn(L.lanes, O);
|
|
@@ -46689,9 +46689,9 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, U)
|
|
|
46689
46689
|
function Dd(a, c) {
|
|
46690
46690
|
a.lanes = tn(a.lanes, c);
|
|
46691
46691
|
var O = a.alternate;
|
|
46692
|
-
O !== null && (O.lanes = tn(O.lanes, c)), O === null && (a.flags & (Ft |
|
|
46692
|
+
O !== null && (O.lanes = tn(O.lanes, c)), O === null && (a.flags & (Ft | lt)) !== Oe && pv(a);
|
|
46693
46693
|
for (var L = a, U = a.return; U !== null; )
|
|
46694
|
-
U.childLanes = tn(U.childLanes, c), O = U.alternate, O !== null ? O.childLanes = tn(O.childLanes, c) : (U.flags & (Ft |
|
|
46694
|
+
U.childLanes = tn(U.childLanes, c), O = U.alternate, O !== null ? O.childLanes = tn(O.childLanes, c) : (U.flags & (Ft | lt)) !== Oe && pv(a), L = U, U = U.return;
|
|
46695
46695
|
if (L.tag === k) {
|
|
46696
46696
|
var q = L.stateNode;
|
|
46697
46697
|
return q;
|
|
@@ -46854,8 +46854,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, U)
|
|
|
46854
46854
|
ye.next = null, oe === null ? q = Pe : oe.next = Pe, oe = ye;
|
|
46855
46855
|
var Ie = a.alternate;
|
|
46856
46856
|
if (Ie !== null) {
|
|
46857
|
-
var
|
|
46858
|
-
ht !== oe && (ht === null ?
|
|
46857
|
+
var tt = Ie.updateQueue, ht = tt.lastBaseUpdate;
|
|
46858
|
+
ht !== oe && (ht === null ? tt.firstBaseUpdate = Pe : ht.next = Pe, tt.lastBaseUpdate = ye);
|
|
46859
46859
|
}
|
|
46860
46860
|
}
|
|
46861
46861
|
if (q !== null) {
|
|
@@ -47059,10 +47059,10 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, U)
|
|
|
47059
47059
|
qn(!1);
|
|
47060
47060
|
}
|
|
47061
47061
|
}
|
|
47062
|
-
var
|
|
47062
|
+
var tt = a.memoizedState = Ie.state !== null && Ie.state !== void 0 ? Ie.state : null;
|
|
47063
47063
|
bg(a, Ie);
|
|
47064
47064
|
{
|
|
47065
|
-
if (typeof c.getDerivedStateFromProps == "function" &&
|
|
47065
|
+
if (typeof c.getDerivedStateFromProps == "function" && tt === null) {
|
|
47066
47066
|
var ht = $e(c) || "Component";
|
|
47067
47067
|
Nh.has(ht) || (Nh.add(ht), u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", ht, Ie.state === null ? "null" : "undefined", ht));
|
|
47068
47068
|
}
|
|
@@ -47120,7 +47120,7 @@ https://reactjs.org/link/unsafe-component-lifecycles`, qt, rn, Rt !== null ? `
|
|
|
47120
47120
|
var ye = c.getDerivedStateFromProps;
|
|
47121
47121
|
if (typeof ye == "function" && (Ih(a, c, ye, O), U.state = a.memoizedState), typeof c.getDerivedStateFromProps != "function" && typeof U.getSnapshotBeforeUpdate != "function" && (typeof U.UNSAFE_componentWillMount == "function" || typeof U.componentWillMount == "function") && (Iy(a, U), Md(a, O, U, L), U.state = a.memoizedState), typeof U.componentDidMount == "function") {
|
|
47122
47122
|
var Pe = Nt;
|
|
47123
|
-
Pe |=
|
|
47123
|
+
Pe |= et, (a.mode & Wr) !== Zt && (Pe |= Dt), a.flags |= Pe;
|
|
47124
47124
|
}
|
|
47125
47125
|
}
|
|
47126
47126
|
function Uy(a, c, O, L) {
|
|
@@ -47133,27 +47133,27 @@ https://reactjs.org/link/unsafe-component-lifecycles`, qt, rn, Rt !== null ? `
|
|
|
47133
47133
|
var Pe = As(a, c, !0);
|
|
47134
47134
|
ye = as(a, Pe);
|
|
47135
47135
|
}
|
|
47136
|
-
var Ie = c.getDerivedStateFromProps,
|
|
47137
|
-
!
|
|
47136
|
+
var Ie = c.getDerivedStateFromProps, tt = typeof Ie == "function" || typeof U.getSnapshotBeforeUpdate == "function";
|
|
47137
|
+
!tt && (typeof U.UNSAFE_componentWillReceiveProps == "function" || typeof U.componentWillReceiveProps == "function") && (q !== O || oe !== ye) && Rg(a, U, O, ye), vg();
|
|
47138
47138
|
var ht = a.memoizedState, Rt = U.state = ht;
|
|
47139
47139
|
if (Md(a, O, U, L), Rt = a.memoizedState, q === O && ht === Rt && !Oa() && !Ld()) {
|
|
47140
47140
|
if (typeof U.componentDidMount == "function") {
|
|
47141
47141
|
var wt = Nt;
|
|
47142
|
-
wt |=
|
|
47142
|
+
wt |= et, (a.mode & Wr) !== Zt && (wt |= Dt), a.flags |= wt;
|
|
47143
47143
|
}
|
|
47144
47144
|
return !1;
|
|
47145
47145
|
}
|
|
47146
47146
|
typeof Ie == "function" && (Ih(a, c, Ie, O), Rt = a.memoizedState);
|
|
47147
47147
|
var At = Ld() || Sg(a, c, q, O, ht, Rt, ye);
|
|
47148
47148
|
if (At) {
|
|
47149
|
-
if (!
|
|
47149
|
+
if (!tt && (typeof U.UNSAFE_componentWillMount == "function" || typeof U.componentWillMount == "function") && (typeof U.componentWillMount == "function" && U.componentWillMount(), typeof U.UNSAFE_componentWillMount == "function" && U.UNSAFE_componentWillMount()), typeof U.componentDidMount == "function") {
|
|
47150
47150
|
var qt = Nt;
|
|
47151
|
-
qt |=
|
|
47151
|
+
qt |= et, (a.mode & Wr) !== Zt && (qt |= Dt), a.flags |= qt;
|
|
47152
47152
|
}
|
|
47153
47153
|
} else {
|
|
47154
47154
|
if (typeof U.componentDidMount == "function") {
|
|
47155
47155
|
var rn = Nt;
|
|
47156
|
-
rn |=
|
|
47156
|
+
rn |= et, (a.mode & Wr) !== Zt && (rn |= Dt), a.flags |= rn;
|
|
47157
47157
|
}
|
|
47158
47158
|
a.memoizedProps = O, a.memoizedState = Rt;
|
|
47159
47159
|
}
|
|
@@ -47164,25 +47164,25 @@ https://reactjs.org/link/unsafe-component-lifecycles`, qt, rn, Rt !== null ? `
|
|
|
47164
47164
|
gg(a, c);
|
|
47165
47165
|
var oe = c.memoizedProps, he = c.type === c.elementType ? oe : hs(c.type, oe);
|
|
47166
47166
|
q.props = he;
|
|
47167
|
-
var ye = c.pendingProps, Pe = q.context, Ie = O.contextType,
|
|
47167
|
+
var ye = c.pendingProps, Pe = q.context, Ie = O.contextType, tt = Vr;
|
|
47168
47168
|
if (typeof Ie == "object" && Ie !== null)
|
|
47169
|
-
|
|
47169
|
+
tt = fr(Ie);
|
|
47170
47170
|
else {
|
|
47171
47171
|
var ht = As(c, O, !0);
|
|
47172
|
-
|
|
47172
|
+
tt = as(c, ht);
|
|
47173
47173
|
}
|
|
47174
47174
|
var Rt = O.getDerivedStateFromProps, wt = typeof Rt == "function" || typeof q.getSnapshotBeforeUpdate == "function";
|
|
47175
|
-
!wt && (typeof q.UNSAFE_componentWillReceiveProps == "function" || typeof q.componentWillReceiveProps == "function") && (oe !== ye || Pe !==
|
|
47175
|
+
!wt && (typeof q.UNSAFE_componentWillReceiveProps == "function" || typeof q.componentWillReceiveProps == "function") && (oe !== ye || Pe !== tt) && Rg(c, q, L, tt), vg();
|
|
47176
47176
|
var At = c.memoizedState, qt = q.state = At;
|
|
47177
47177
|
if (Md(c, L, q, U), qt = c.memoizedState, oe === ye && At === qt && !Oa() && !Ld() && !g)
|
|
47178
47178
|
return typeof q.componentDidUpdate == "function" && (oe !== a.memoizedProps || At !== a.memoizedState) && (c.flags |= Nt), typeof q.getSnapshotBeforeUpdate == "function" && (oe !== a.memoizedProps || At !== a.memoizedState) && (c.flags |= Et), !1;
|
|
47179
47179
|
typeof Rt == "function" && (Ih(c, O, Rt, L), qt = c.memoizedState);
|
|
47180
|
-
var rn = Ld() || Sg(c, O, he, L, At, qt,
|
|
47180
|
+
var rn = Ld() || Sg(c, O, he, L, At, qt, tt) || // TODO: In some cases, we'll end up checking if context has changed twice,
|
|
47181
47181
|
// both before and after `shouldComponentUpdate` has been called. Not ideal,
|
|
47182
47182
|
// but I'm loath to refactor this function. This only happens for memoized
|
|
47183
47183
|
// components so it's not that common.
|
|
47184
47184
|
g;
|
|
47185
|
-
return rn ? (!wt && (typeof q.UNSAFE_componentWillUpdate == "function" || typeof q.componentWillUpdate == "function") && (typeof q.componentWillUpdate == "function" && q.componentWillUpdate(L, qt,
|
|
47185
|
+
return rn ? (!wt && (typeof q.UNSAFE_componentWillUpdate == "function" || typeof q.componentWillUpdate == "function") && (typeof q.componentWillUpdate == "function" && q.componentWillUpdate(L, qt, tt), typeof q.UNSAFE_componentWillUpdate == "function" && q.UNSAFE_componentWillUpdate(L, qt, tt)), typeof q.componentDidUpdate == "function" && (c.flags |= Nt), typeof q.getSnapshotBeforeUpdate == "function" && (c.flags |= Et)) : (typeof q.componentDidUpdate == "function" && (oe !== a.memoizedProps || At !== a.memoizedState) && (c.flags |= Nt), typeof q.getSnapshotBeforeUpdate == "function" && (oe !== a.memoizedProps || At !== a.memoizedState) && (c.flags |= Et), c.memoizedProps = L, c.memoizedState = qt), q.props = L, q.state = qt, q.context = tt, rn;
|
|
47186
47186
|
}
|
|
47187
47187
|
var zh, Gh, $h, Hh, Vh, Ag = function(a, c) {
|
|
47188
47188
|
};
|
|
@@ -47220,9 +47220,9 @@ https://reactjs.org/link/unsafe-component-lifecycles`, qt, rn, Rt !== null ? `
|
|
|
47220
47220
|
var Pe = "" + L;
|
|
47221
47221
|
if (c !== null && c.ref !== null && typeof c.ref == "function" && c.ref._stringRef === Pe)
|
|
47222
47222
|
return c.ref;
|
|
47223
|
-
var Ie = function(
|
|
47223
|
+
var Ie = function(tt) {
|
|
47224
47224
|
var ht = ye.refs;
|
|
47225
|
-
ht === _g && (ht = ye.refs = {}),
|
|
47225
|
+
ht === _g && (ht = ye.refs = {}), tt === null ? delete ht[Pe] : ht[Pe] = tt;
|
|
47226
47226
|
};
|
|
47227
47227
|
return Ie._stringRef = Pe, Ie;
|
|
47228
47228
|
} else {
|
|
@@ -47333,7 +47333,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
47333
47333
|
return yn.return = st, yn;
|
|
47334
47334
|
}
|
|
47335
47335
|
}
|
|
47336
|
-
function
|
|
47336
|
+
function tt(st, St, rt) {
|
|
47337
47337
|
if (typeof St == "string" && St !== "" || typeof St == "number") {
|
|
47338
47338
|
var kt = Em("" + St, st.mode, rt);
|
|
47339
47339
|
return kt.return = st, kt;
|
|
@@ -47350,7 +47350,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
47350
47350
|
}
|
|
47351
47351
|
case Ve: {
|
|
47352
47352
|
var yn = St._payload, an = St._init;
|
|
47353
|
-
return
|
|
47353
|
+
return tt(st, an(yn), rt);
|
|
47354
47354
|
}
|
|
47355
47355
|
}
|
|
47356
47356
|
if (fn(St) || ze(St)) {
|
|
@@ -47461,7 +47461,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
47461
47461
|
}
|
|
47462
47462
|
if (pn === null) {
|
|
47463
47463
|
for (; en < rt.length; en++) {
|
|
47464
|
-
var Ui =
|
|
47464
|
+
var Ui = tt(st, rt[en], kt);
|
|
47465
47465
|
Ui !== null && (Bn = q(Ui, Bn, en), bn === null ? an = Ui : bn.sibling = Ui, bn = Ui);
|
|
47466
47466
|
}
|
|
47467
47467
|
if (I()) {
|
|
@@ -47517,7 +47517,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
47517
47517
|
}
|
|
47518
47518
|
if (er === null) {
|
|
47519
47519
|
for (; !hi.done; $r++, hi = pn.next()) {
|
|
47520
|
-
var _a =
|
|
47520
|
+
var _a = tt(st, hi.value, kt);
|
|
47521
47521
|
_a !== null && (ei = q(_a, ei, $r), en === null ? Bn = _a : en.sibling = _a, en = _a);
|
|
47522
47522
|
}
|
|
47523
47523
|
if (I()) {
|
|
@@ -47916,7 +47916,7 @@ Incoming: %s`, Tt, "[" + c.join(", ") + "]", "[" + a.join(", ") + "]");
|
|
|
47916
47916
|
q.baseQueue !== oe && u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."), q.baseQueue = oe = he, U.pending = null;
|
|
47917
47917
|
}
|
|
47918
47918
|
if (oe !== null) {
|
|
47919
|
-
var Ie = oe.next,
|
|
47919
|
+
var Ie = oe.next, tt = q.baseState, ht = null, Rt = null, wt = null, At = Ie;
|
|
47920
47920
|
do {
|
|
47921
47921
|
var qt = At.lane;
|
|
47922
47922
|
if (Ia(No, qt)) {
|
|
@@ -47934,10 +47934,10 @@ Incoming: %s`, Tt, "[" + c.join(", ") + "]", "[" + a.join(", ") + "]");
|
|
|
47934
47934
|
wt = wt.next = Jt;
|
|
47935
47935
|
}
|
|
47936
47936
|
if (At.hasEagerState)
|
|
47937
|
-
|
|
47937
|
+
tt = At.eagerState;
|
|
47938
47938
|
else {
|
|
47939
47939
|
var Nn = At.action;
|
|
47940
|
-
|
|
47940
|
+
tt = a(tt, Nn);
|
|
47941
47941
|
}
|
|
47942
47942
|
} else {
|
|
47943
47943
|
var rn = {
|
|
@@ -47947,11 +47947,11 @@ Incoming: %s`, Tt, "[" + c.join(", ") + "]", "[" + a.join(", ") + "]");
|
|
|
47947
47947
|
eagerState: At.eagerState,
|
|
47948
47948
|
next: null
|
|
47949
47949
|
};
|
|
47950
|
-
wt === null ? (Rt = wt = rn, ht =
|
|
47950
|
+
wt === null ? (Rt = wt = rn, ht = tt) : wt = wt.next = rn, Dn.lanes = tn(Dn.lanes, qt), Cc(qt);
|
|
47951
47951
|
}
|
|
47952
47952
|
At = At.next;
|
|
47953
47953
|
} while (At !== null && At !== Ie);
|
|
47954
|
-
wt === null ? ht =
|
|
47954
|
+
wt === null ? ht = tt : wt.next = Rt, Zn(tt, L.memoizedState) || hc(), L.memoizedState = tt, L.baseState = ht, L.baseQueue = wt, U.lastRenderedState = tt;
|
|
47955
47955
|
}
|
|
47956
47956
|
var xn = U.interleaved;
|
|
47957
47957
|
if (xn !== null) {
|
|
@@ -48152,7 +48152,7 @@ Incoming: %s`, Tt, "[" + c.join(", ") + "]", "[" + a.join(", ") + "]");
|
|
|
48152
48152
|
}
|
|
48153
48153
|
function dp(a, c) {
|
|
48154
48154
|
var O = Nt;
|
|
48155
|
-
return O |=
|
|
48155
|
+
return O |= et, (Dn.mode & Wr) !== Zt && (O |= Dt), lc(O, br, a, c);
|
|
48156
48156
|
}
|
|
48157
48157
|
function qd(a, c) {
|
|
48158
48158
|
return Kd(Nt, br, a, c);
|
|
@@ -48175,7 +48175,7 @@ Incoming: %s`, Tt, "[" + c.join(", ") + "]", "[" + a.join(", ") + "]");
|
|
|
48175
48175
|
function fp(a, c, O) {
|
|
48176
48176
|
typeof c != "function" && u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", c !== null ? typeof c : "null");
|
|
48177
48177
|
var L = O != null ? O.concat([a]) : null, U = Nt;
|
|
48178
|
-
return U |=
|
|
48178
|
+
return U |= et, (Dn.mode & Wr) !== Zt && (U |= Dt), lc(U, br, zg.bind(null, c, a), L);
|
|
48179
48179
|
}
|
|
48180
48180
|
function Qd(a, c, O) {
|
|
48181
48181
|
typeof c != "function" && u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", c !== null ? typeof c : "null");
|
|
@@ -48339,8 +48339,8 @@ Incoming: %s`, Tt, "[" + c.join(", ") + "]", "[" + a.join(", ") + "]");
|
|
|
48339
48339
|
}
|
|
48340
48340
|
var Ie = hg(a, c, U, L);
|
|
48341
48341
|
if (Ie !== null) {
|
|
48342
|
-
var
|
|
48343
|
-
pr(Ie, a, L,
|
|
48342
|
+
var tt = Zr();
|
|
48343
|
+
pr(Ie, a, L, tt), qg(Ie, c, L);
|
|
48344
48344
|
}
|
|
48345
48345
|
}
|
|
48346
48346
|
Qg(a, L);
|
|
@@ -49028,11 +49028,11 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49028
49028
|
var Ie = _e(a) || "Anonymous";
|
|
49029
49029
|
Pe = "React will try to recreate this component tree from scratch " + ("using the error boundary you provided, " + Ie + ".");
|
|
49030
49030
|
}
|
|
49031
|
-
var
|
|
49031
|
+
var tt = ye + `
|
|
49032
49032
|
` + oe + `
|
|
49033
49033
|
|
|
49034
49034
|
` + ("" + Pe);
|
|
49035
|
-
console.error(
|
|
49035
|
+
console.error(tt);
|
|
49036
49036
|
} catch (ht) {
|
|
49037
49037
|
setTimeout(function() {
|
|
49038
49038
|
throw ht;
|
|
@@ -49154,9 +49154,9 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49154
49154
|
case k: {
|
|
49155
49155
|
var Ie = L;
|
|
49156
49156
|
Pe.flags |= we;
|
|
49157
|
-
var
|
|
49158
|
-
Pe.lanes = tn(Pe.lanes,
|
|
49159
|
-
var ht = o0(Pe, Ie,
|
|
49157
|
+
var tt = ra(U);
|
|
49158
|
+
Pe.lanes = tn(Pe.lanes, tt);
|
|
49159
|
+
var ht = o0(Pe, Ie, tt);
|
|
49160
49160
|
wh(Pe, ht);
|
|
49161
49161
|
return;
|
|
49162
49162
|
}
|
|
@@ -49243,14 +49243,14 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49243
49243
|
$e(Pe)
|
|
49244
49244
|
);
|
|
49245
49245
|
}
|
|
49246
|
-
var
|
|
49246
|
+
var tt = a.child, ht = Bp(a, U);
|
|
49247
49247
|
if (!ht) {
|
|
49248
|
-
var Rt =
|
|
49248
|
+
var Rt = tt.memoizedProps, wt = O.compare;
|
|
49249
49249
|
if (wt = wt !== null ? wt : He, wt(Rt, L) && a.ref === c.ref)
|
|
49250
49250
|
return ga(a, c, U);
|
|
49251
49251
|
}
|
|
49252
49252
|
c.flags |= Ke;
|
|
49253
|
-
var At = Io(
|
|
49253
|
+
var At = Io(tt, L);
|
|
49254
49254
|
return At.ref = c.ref, At.return = c, c.child = At, At;
|
|
49255
49255
|
}
|
|
49256
49256
|
function h0(a, c, O, L, U) {
|
|
@@ -49295,12 +49295,12 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49295
49295
|
};
|
|
49296
49296
|
c.memoizedState = oe, kf(c, O);
|
|
49297
49297
|
} else if (Wn(O, Kr)) {
|
|
49298
|
-
var
|
|
49298
|
+
var tt = {
|
|
49299
49299
|
baseLanes: Ct,
|
|
49300
49300
|
cachePool: null,
|
|
49301
49301
|
transitions: null
|
|
49302
49302
|
};
|
|
49303
|
-
c.memoizedState =
|
|
49303
|
+
c.memoizedState = tt;
|
|
49304
49304
|
var ht = q !== null ? q.baseLanes : O;
|
|
49305
49305
|
kf(c, ht);
|
|
49306
49306
|
} else {
|
|
@@ -49345,7 +49345,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49345
49345
|
}
|
|
49346
49346
|
function m0(a, c) {
|
|
49347
49347
|
var O = c.ref;
|
|
49348
|
-
(a === null && O !== null || a !== null && a.ref !== O) && (c.flags |=
|
|
49348
|
+
(a === null && O !== null || a !== null && a.ref !== O) && (c.flags |= nt, c.flags |= Be);
|
|
49349
49349
|
}
|
|
49350
49350
|
function Op(a, c, O, L, U) {
|
|
49351
49351
|
if (c.type !== c.elementType) {
|
|
@@ -49390,8 +49390,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49390
49390
|
c.flags |= ot, c.flags |= we;
|
|
49391
49391
|
var Pe = new Error("Simulated error coming from DevTools"), Ie = ra(U);
|
|
49392
49392
|
c.lanes = tn(c.lanes, Ie);
|
|
49393
|
-
var
|
|
49394
|
-
wh(c,
|
|
49393
|
+
var tt = Ap(c, Oo(Pe, c), Ie);
|
|
49394
|
+
wh(c, tt);
|
|
49395
49395
|
break;
|
|
49396
49396
|
}
|
|
49397
49397
|
}
|
|
@@ -49468,14 +49468,14 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49468
49468
|
var Ie = Oo(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."), c);
|
|
49469
49469
|
return y0(a, c, he, O, Ie);
|
|
49470
49470
|
} else if (he !== q) {
|
|
49471
|
-
var
|
|
49472
|
-
return y0(a, c, he, O,
|
|
49471
|
+
var tt = Oo(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."), c);
|
|
49472
|
+
return y0(a, c, he, O, tt);
|
|
49473
49473
|
} else {
|
|
49474
49474
|
vh(c);
|
|
49475
49475
|
var ht = Pg(c, null, he, O);
|
|
49476
49476
|
c.child = ht;
|
|
49477
49477
|
for (var Rt = ht; Rt; )
|
|
49478
|
-
Rt.flags = Rt.flags & ~Ft |
|
|
49478
|
+
Rt.flags = Rt.flags & ~Ft | lt, Rt = Rt.sibling;
|
|
49479
49479
|
}
|
|
49480
49480
|
} else {
|
|
49481
49481
|
if (E(), he === q)
|
|
@@ -49499,14 +49499,14 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49499
49499
|
df(a, c);
|
|
49500
49500
|
var U = c.pendingProps, q = O, oe = q._payload, he = q._init, ye = he(oe);
|
|
49501
49501
|
c.type = ye;
|
|
49502
|
-
var Pe = c.tag = k1(ye), Ie = hs(ye, U),
|
|
49502
|
+
var Pe = c.tag = k1(ye), Ie = hs(ye, U), tt;
|
|
49503
49503
|
switch (Pe) {
|
|
49504
49504
|
case D:
|
|
49505
|
-
return Fp(c, ye), c.type = ye = Jl(ye),
|
|
49505
|
+
return Fp(c, ye), c.type = ye = Jl(ye), tt = Op(null, c, ye, Ie, L), tt;
|
|
49506
49506
|
case N:
|
|
49507
|
-
return c.type = ye = hm(ye),
|
|
49507
|
+
return c.type = ye = hm(ye), tt = g0(null, c, ye, Ie, L), tt;
|
|
49508
49508
|
case se:
|
|
49509
|
-
return c.type = ye = pm(ye),
|
|
49509
|
+
return c.type = ye = pm(ye), tt = d0(null, c, ye, Ie, L), tt;
|
|
49510
49510
|
case te: {
|
|
49511
49511
|
if (c.type !== c.elementType) {
|
|
49512
49512
|
var ht = ye.propTypes;
|
|
@@ -49518,14 +49518,14 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49518
49518
|
$e(ye)
|
|
49519
49519
|
);
|
|
49520
49520
|
}
|
|
49521
|
-
return
|
|
49521
|
+
return tt = f0(
|
|
49522
49522
|
null,
|
|
49523
49523
|
c,
|
|
49524
49524
|
ye,
|
|
49525
49525
|
hs(ye.type, Ie),
|
|
49526
49526
|
// The inner type can have defaults too
|
|
49527
49527
|
L
|
|
49528
|
-
),
|
|
49528
|
+
), tt;
|
|
49529
49529
|
}
|
|
49530
49530
|
}
|
|
49531
49531
|
var Rt = "";
|
|
@@ -49563,8 +49563,8 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
49563
49563
|
typeof he == "object" && he !== null && typeof he.render == "function" && he.$$typeof === void 0
|
|
49564
49564
|
) {
|
|
49565
49565
|
{
|
|
49566
|
-
var
|
|
49567
|
-
fc[
|
|
49566
|
+
var tt = $e(O) || "Unknown";
|
|
49567
|
+
fc[tt] || (u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.", tt, tt, tt), fc[tt] = !0);
|
|
49568
49568
|
}
|
|
49569
49569
|
c.tag = N, c.memoizedState = null, c.updateQueue = null;
|
|
49570
49570
|
var ht = !1;
|
|
@@ -49646,8 +49646,8 @@ Check the render method of \`` + L + "`.");
|
|
|
49646
49646
|
}
|
|
49647
49647
|
var Pe = L.children, Ie = L.fallback;
|
|
49648
49648
|
if (q) {
|
|
49649
|
-
var
|
|
49650
|
-
return ht.memoizedState = Lp(O), c.memoizedState = Mp,
|
|
49649
|
+
var tt = b_(c, Pe, Ie, O), ht = c.child;
|
|
49650
|
+
return ht.memoizedState = Lp(O), c.memoizedState = Mp, tt;
|
|
49651
49651
|
} else
|
|
49652
49652
|
return jp(c, Pe);
|
|
49653
49653
|
} else {
|
|
@@ -49717,8 +49717,8 @@ Check the render method of \`` + L + "`.");
|
|
|
49717
49717
|
Pe = Ie, Pe.childLanes = Ct, Pe.pendingProps = ye, c.mode & un && (Pe.actualDuration = 0, Pe.actualStartTime = -1, Pe.selfBaseDuration = oe.selfBaseDuration, Pe.treeBaseDuration = oe.treeBaseDuration), c.deletions = null;
|
|
49718
49718
|
} else
|
|
49719
49719
|
Pe = x0(oe, ye), Pe.subtreeFlags = oe.subtreeFlags & Xt;
|
|
49720
|
-
var
|
|
49721
|
-
return he !== null ?
|
|
49720
|
+
var tt;
|
|
49721
|
+
return he !== null ? tt = Io(he, L) : (tt = ro(L, q, U, null), tt.flags |= Ft), tt.return = c, Pe.return = c, Pe.sibling = tt, c.child = Pe, tt;
|
|
49722
49722
|
}
|
|
49723
49723
|
function cf(a, c, O, L) {
|
|
49724
49724
|
L !== null && $(L), jl(c, a.child, null, O);
|
|
@@ -49764,9 +49764,9 @@ Check the render method of \`` + L + "`.");
|
|
|
49764
49764
|
var Ie = Hc(U);
|
|
49765
49765
|
he = Ie.digest, ye = Ie.message, Pe = Ie.stack;
|
|
49766
49766
|
}
|
|
49767
|
-
var
|
|
49768
|
-
ye ?
|
|
49769
|
-
var ht = Tp(
|
|
49767
|
+
var tt;
|
|
49768
|
+
ye ? tt = new Error(ye) : tt = new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");
|
|
49769
|
+
var ht = Tp(tt, he, Pe);
|
|
49770
49770
|
return cf(a, c, oe, ht);
|
|
49771
49771
|
}
|
|
49772
49772
|
var Rt = Wn(oe, a.childLanes);
|
|
@@ -49790,7 +49790,7 @@ Check the render method of \`` + L + "`.");
|
|
|
49790
49790
|
} else {
|
|
49791
49791
|
Ei(c, U, q.treeContext);
|
|
49792
49792
|
var Nn = L.children, xn = jp(c, Nn);
|
|
49793
|
-
return xn.flags |=
|
|
49793
|
+
return xn.flags |= lt, xn;
|
|
49794
49794
|
}
|
|
49795
49795
|
}
|
|
49796
49796
|
}
|
|
@@ -49908,12 +49908,12 @@ Check the render method of \`` + L + "`.");
|
|
|
49908
49908
|
else
|
|
49909
49909
|
switch (U) {
|
|
49910
49910
|
case "forwards": {
|
|
49911
|
-
var Ie = D_(c.child),
|
|
49912
|
-
Ie === null ? (
|
|
49911
|
+
var Ie = D_(c.child), tt;
|
|
49912
|
+
Ie === null ? (tt = c.child, c.child = null) : (tt = Ie.sibling, Ie.sibling = null), Up(
|
|
49913
49913
|
c,
|
|
49914
49914
|
!1,
|
|
49915
49915
|
// isBackwards
|
|
49916
|
-
|
|
49916
|
+
tt,
|
|
49917
49917
|
Ie,
|
|
49918
49918
|
q
|
|
49919
49919
|
);
|
|
@@ -50067,8 +50067,8 @@ Check the render method of \`` + L + "`.");
|
|
|
50067
50067
|
if (Wn(O, Ie))
|
|
50068
50068
|
return _0(a, c, O);
|
|
50069
50069
|
qa(c, Ul(ps.current));
|
|
50070
|
-
var
|
|
50071
|
-
return
|
|
50070
|
+
var tt = ga(a, c, O);
|
|
50071
|
+
return tt !== null ? tt.sibling : null;
|
|
50072
50072
|
} else
|
|
50073
50073
|
qa(c, Ul(ps.current));
|
|
50074
50074
|
break;
|
|
@@ -50119,8 +50119,8 @@ Check the render method of \`` + L + "`.");
|
|
|
50119
50119
|
return v_(a, c, ye, O);
|
|
50120
50120
|
}
|
|
50121
50121
|
case D: {
|
|
50122
|
-
var Pe = c.type, Ie = c.pendingProps,
|
|
50123
|
-
return Op(a, c, Pe,
|
|
50122
|
+
var Pe = c.type, Ie = c.pendingProps, tt = c.elementType === Pe ? Ie : hs(Pe, Ie);
|
|
50123
|
+
return Op(a, c, Pe, tt, O);
|
|
50124
50124
|
}
|
|
50125
50125
|
case N: {
|
|
50126
50126
|
var ht = c.type, Rt = c.pendingProps, wt = c.elementType === ht ? Rt : hs(ht, Rt);
|
|
@@ -50183,7 +50183,7 @@ Check the render method of \`` + L + "`.");
|
|
|
50183
50183
|
a.flags |= Nt;
|
|
50184
50184
|
}
|
|
50185
50185
|
function C0(a) {
|
|
50186
|
-
a.flags |=
|
|
50186
|
+
a.flags |= nt, a.flags |= Be;
|
|
50187
50187
|
}
|
|
50188
50188
|
function w0(a, c) {
|
|
50189
50189
|
var O = a !== null && a.child === c.child;
|
|
@@ -50317,8 +50317,8 @@ Check the render method of \`` + L + "`.");
|
|
|
50317
50317
|
c.stateNode = q;
|
|
50318
50318
|
return;
|
|
50319
50319
|
}
|
|
50320
|
-
var
|
|
50321
|
-
so(
|
|
50320
|
+
var tt = lh(q, Ie, O, oe, L, c, he, ye);
|
|
50321
|
+
so(tt, O, L, U, Pe) && zs(c), c.stateNode = tt, he ? zs(c) : pc(tt, c, !1, !1);
|
|
50322
50322
|
}, hf = function(a, c, O, L) {
|
|
50323
50323
|
if (O !== L) {
|
|
50324
50324
|
var U = Wh(), q = nc();
|
|
@@ -50444,8 +50444,8 @@ Check the render method of \`` + L + "`.");
|
|
|
50444
50444
|
throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");
|
|
50445
50445
|
return Ur(c), null;
|
|
50446
50446
|
}
|
|
50447
|
-
var Ie = nc(),
|
|
50448
|
-
if (
|
|
50447
|
+
var Ie = nc(), tt = ha(c);
|
|
50448
|
+
if (tt)
|
|
50449
50449
|
yh(c, ye, Ie) && zs(c);
|
|
50450
50450
|
else {
|
|
50451
50451
|
var ht = Ea(Pe, L, ye, Ie, c);
|
|
@@ -50664,13 +50664,13 @@ Check the render method of \`` + L + "`.");
|
|
|
50664
50664
|
k0 = function(c, O, L, U, q, oe, he, ye, Pe) {
|
|
50665
50665
|
if (typeof document > "u" || document === null)
|
|
50666
50666
|
throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");
|
|
50667
|
-
var Ie = document.createEvent("Event"),
|
|
50667
|
+
var Ie = document.createEvent("Event"), tt = !1, ht = !0, Rt = window.event, wt = Object.getOwnPropertyDescriptor(window, "event");
|
|
50668
50668
|
function At() {
|
|
50669
50669
|
zp.removeEventListener(St, rn, !1), typeof window.event < "u" && window.hasOwnProperty("event") && (window.event = Rt);
|
|
50670
50670
|
}
|
|
50671
50671
|
var qt = Array.prototype.slice.call(arguments, 3);
|
|
50672
50672
|
function rn() {
|
|
50673
|
-
|
|
50673
|
+
tt = !0, At(), O.apply(L, qt), ht = !1;
|
|
50674
50674
|
}
|
|
50675
50675
|
var Jt, Nn = !1, xn = !1;
|
|
50676
50676
|
function st(rt) {
|
|
@@ -50681,7 +50681,7 @@ Check the render method of \`` + L + "`.");
|
|
|
50681
50681
|
}
|
|
50682
50682
|
}
|
|
50683
50683
|
var St = "react-" + (c || "invokeguardedcallback");
|
|
50684
|
-
if (window.addEventListener("error", st), zp.addEventListener(St, rn, !1), Ie.initEvent(St, !1, !1), zp.dispatchEvent(Ie), wt && Object.defineProperty(window, "event", wt),
|
|
50684
|
+
if (window.addEventListener("error", st), zp.addEventListener(St, rn, !1), Ie.initEvent(St, !1, !1), zp.dispatchEvent(Ie), wt && Object.defineProperty(window, "event", wt), tt && ht && (Nn ? xn && (Jt = new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")) : Jt = new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`), this.onError(Jt)), window.removeEventListener("error", st), !tt)
|
|
50685
50685
|
return At(), O0.apply(this, arguments);
|
|
50686
50686
|
};
|
|
50687
50687
|
}
|
|
@@ -50984,8 +50984,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
50984
50984
|
case M: {
|
|
50985
50985
|
var Ie = O.stateNode;
|
|
50986
50986
|
if (c === null && O.flags & Nt) {
|
|
50987
|
-
var
|
|
50988
|
-
sh(Ie,
|
|
50987
|
+
var tt = O.type, ht = O.memoizedProps;
|
|
50988
|
+
sh(Ie, tt, ht, O);
|
|
50989
50989
|
}
|
|
50990
50990
|
break;
|
|
50991
50991
|
}
|
|
@@ -51032,7 +51032,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
51032
51032
|
default:
|
|
51033
51033
|
throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.");
|
|
51034
51034
|
}
|
|
51035
|
-
Br || O.flags &
|
|
51035
|
+
Br || O.flags & nt && B0(O);
|
|
51036
51036
|
}
|
|
51037
51037
|
function ex(a) {
|
|
51038
51038
|
switch (a.tag) {
|
|
@@ -51292,7 +51292,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
51292
51292
|
if (ye !== null) {
|
|
51293
51293
|
var Pe = ye.next, Ie = Pe;
|
|
51294
51294
|
do {
|
|
51295
|
-
var
|
|
51295
|
+
var tt = Ie, ht = tt.destroy, Rt = tt.tag;
|
|
51296
51296
|
ht !== void 0 && ((Rt & Ls) !== bi ? gf(O, c, ht) : (Rt & br) !== bi && (Jn(O), O.mode & un ? (Bs(), gf(O, c, ht), Us(O)) : gf(O, c, ht), Ha())), Ie = Ie.next;
|
|
51297
51297
|
} while (Ie !== Pe);
|
|
51298
51298
|
}
|
|
@@ -51417,11 +51417,11 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
51417
51417
|
return;
|
|
51418
51418
|
}
|
|
51419
51419
|
case N: {
|
|
51420
|
-
_s(c, a), $s(a), U &
|
|
51420
|
+
_s(c, a), $s(a), U & nt && L !== null && Kl(L, L.return);
|
|
51421
51421
|
return;
|
|
51422
51422
|
}
|
|
51423
51423
|
case M: {
|
|
51424
|
-
if (_s(c, a), $s(a), U &
|
|
51424
|
+
if (_s(c, a), $s(a), U & nt && L !== null && Kl(L, L.return), Dr) {
|
|
51425
51425
|
if (a.flags & vt) {
|
|
51426
51426
|
var q = a.stateNode;
|
|
51427
51427
|
try {
|
|
@@ -51449,9 +51449,9 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
51449
51449
|
if (_s(c, a), $s(a), U & Nt && Dr) {
|
|
51450
51450
|
if (a.stateNode === null)
|
|
51451
51451
|
throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");
|
|
51452
|
-
var
|
|
51452
|
+
var tt = a.stateNode, ht = a.memoizedProps, Rt = L !== null ? L.memoizedProps : ht;
|
|
51453
51453
|
try {
|
|
51454
|
-
pu(
|
|
51454
|
+
pu(tt, Rt, ht);
|
|
51455
51455
|
} catch (en) {
|
|
51456
51456
|
Fn(a, a.return, en);
|
|
51457
51457
|
}
|
|
@@ -51554,7 +51554,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
51554
51554
|
}
|
|
51555
51555
|
a.flags &= ~Ft;
|
|
51556
51556
|
}
|
|
51557
|
-
c &
|
|
51557
|
+
c & lt && (a.flags &= ~lt);
|
|
51558
51558
|
}
|
|
51559
51559
|
function cx(a, c, O) {
|
|
51560
51560
|
Vl = O, Wl = c, Wt = a, W0(a, c, O), Vl = null, Wl = null;
|
|
@@ -51568,7 +51568,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
51568
51568
|
Wp(a, c, O);
|
|
51569
51569
|
continue;
|
|
51570
51570
|
} else {
|
|
51571
|
-
var ye = U.alternate, Pe = ye !== null && ye.memoizedState !== null, Ie = Pe || Br,
|
|
51571
|
+
var ye = U.alternate, Pe = ye !== null && ye.memoizedState !== null, Ie = Pe || Br, tt = mf, ht = Br;
|
|
51572
51572
|
mf = he, Br = Ie, Br && !ht && (Wt = U, fx(U));
|
|
51573
51573
|
for (var Rt = q; Rt !== null; )
|
|
51574
51574
|
Wt = Rt, W0(
|
|
@@ -51577,7 +51577,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
51577
51577
|
c,
|
|
51578
51578
|
O
|
|
51579
51579
|
), Rt = Rt.sibling;
|
|
51580
|
-
Wt = U, mf =
|
|
51580
|
+
Wt = U, mf = tt, Br = ht, Wp(a, c, O);
|
|
51581
51581
|
continue;
|
|
51582
51582
|
}
|
|
51583
51583
|
}
|
|
@@ -52056,13 +52056,13 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
52056
52056
|
q.push(Ie, ye), Ie = Ie.sibling;
|
|
52057
52057
|
}
|
|
52058
52058
|
if (L < c.length) {
|
|
52059
|
-
for (var
|
|
52060
|
-
|
|
52059
|
+
for (var tt = [], ht = L; ht < c.length; ht++)
|
|
52060
|
+
tt.push(Yp(c[ht]));
|
|
52061
52061
|
return `findAllNodes was able to match part of the selector:
|
|
52062
52062
|
` + (" " + U.join(" > ") + `
|
|
52063
52063
|
|
|
52064
52064
|
`) + `No matching component was found for:
|
|
52065
|
-
` + (" " +
|
|
52065
|
+
` + (" " + tt.join(" > "));
|
|
52066
52066
|
}
|
|
52067
52067
|
return null;
|
|
52068
52068
|
}
|
|
@@ -52072,9 +52072,9 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
52072
52072
|
for (var O = Sf(a, c), L = [], U = 0; U < O.length; U++)
|
|
52073
52073
|
L.push(fu(O[U]));
|
|
52074
52074
|
for (var q = L.length - 1; q > 0; q--)
|
|
52075
|
-
for (var oe = L[q], he = oe.x, ye = he + oe.width, Pe = oe.y, Ie = Pe + oe.height,
|
|
52076
|
-
if (q !==
|
|
52077
|
-
var ht = L[
|
|
52075
|
+
for (var oe = L[q], he = oe.x, ye = he + oe.width, Pe = oe.y, Ie = Pe + oe.height, tt = q - 1; tt >= 0; tt--)
|
|
52076
|
+
if (q !== tt) {
|
|
52077
|
+
var ht = L[tt], Rt = ht.x, wt = Rt + ht.width, At = ht.y, qt = At + ht.height;
|
|
52078
52078
|
if (he >= Rt && Pe >= At && ye <= wt && Ie <= qt) {
|
|
52079
52079
|
L.splice(q, 1);
|
|
52080
52080
|
break;
|
|
@@ -52116,10 +52116,10 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
52116
52116
|
throw new Error("Test selector API is not supported by this renderer.");
|
|
52117
52117
|
var U = Sf(a, c), q = rh(U, O, L), oe = q.disconnect, he = q.observe, ye = q.unobserve, Pe = function() {
|
|
52118
52118
|
var Ie = Sf(a, c);
|
|
52119
|
-
U.forEach(function(
|
|
52120
|
-
Ie.indexOf(
|
|
52121
|
-
}), Ie.forEach(function(
|
|
52122
|
-
U.indexOf(
|
|
52119
|
+
U.forEach(function(tt) {
|
|
52120
|
+
Ie.indexOf(tt) < 0 && ye(tt);
|
|
52121
|
+
}), Ie.forEach(function(tt) {
|
|
52122
|
+
U.indexOf(tt) < 0 && he(tt);
|
|
52123
52123
|
});
|
|
52124
52124
|
};
|
|
52125
52125
|
return bf.push(Pe), {
|
|
@@ -52283,8 +52283,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
52283
52283
|
var Pe = !La(a, U), Ie = a.current.alternate;
|
|
52284
52284
|
if (Pe && !Yx(Ie)) {
|
|
52285
52285
|
if (oe = Ff(a, U), oe === Fo) {
|
|
52286
|
-
var
|
|
52287
|
-
|
|
52286
|
+
var tt = go(a);
|
|
52287
|
+
tt !== Ct && (U = tt, oe = om(a, tt));
|
|
52288
52288
|
}
|
|
52289
52289
|
if (oe === _c) {
|
|
52290
52290
|
var ht = Ec;
|
|
@@ -52668,8 +52668,8 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
52668
52668
|
Kn.transition = null;
|
|
52669
52669
|
var Ie = Xr();
|
|
52670
52670
|
Yn(Lr);
|
|
52671
|
-
var
|
|
52672
|
-
cn |= Qi, Qp.current = null, X_(a, U), s0(), ux(a, U, q), Ys(a.containerInfo), a.current = U, Wu(q), cx(U, a, q), bo(), zu(), cn =
|
|
52671
|
+
var tt = cn;
|
|
52672
|
+
cn |= Qi, Qp.current = null, X_(a, U), s0(), ux(a, U, q), Ys(a.containerInfo), a.current = U, Wu(q), cx(U, a, q), bo(), zu(), cn = tt, Yn(Ie), Kn.transition = Pe;
|
|
52673
52673
|
} else
|
|
52674
52674
|
a.current = U, s0();
|
|
52675
52675
|
var ht = Mo;
|
|
@@ -53058,8 +53058,8 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
53058
53058
|
throw new Error("Expected resolveFamily to be set during hot reload.");
|
|
53059
53059
|
var Pe = !1, Ie = !1;
|
|
53060
53060
|
if (ye !== null) {
|
|
53061
|
-
var
|
|
53062
|
-
|
|
53061
|
+
var tt = Ji(ye);
|
|
53062
|
+
tt !== void 0 && (O.has(tt) ? Ie = !0 : c.has(tt) && (oe === N ? Ie = !0 : Pe = !0));
|
|
53063
53063
|
}
|
|
53064
53064
|
if (Ql !== null && (Ql.has(a) || L !== null && Ql.has(L)) && (Ie = !0), Ie && (a._debugNeedsRemount = !0), Ie || Pe) {
|
|
53065
53065
|
var ht = ci(a, nn);
|
|
@@ -53226,7 +53226,7 @@ This ensures that you're testing the behavior the user would see in the browser.
|
|
|
53226
53226
|
break;
|
|
53227
53227
|
case Re:
|
|
53228
53228
|
return L1(O, U, q, c);
|
|
53229
|
-
case
|
|
53229
|
+
case ut:
|
|
53230
53230
|
return j1(O, U, q, c);
|
|
53231
53231
|
case Ze:
|
|
53232
53232
|
return I1(O, U, q, c);
|
|
@@ -53290,7 +53290,7 @@ Check the render method of \`` + Pe + "`.");
|
|
|
53290
53290
|
}
|
|
53291
53291
|
function j1(a, c, O, L) {
|
|
53292
53292
|
var U = Ii(K, a, L, c);
|
|
53293
|
-
return U.elementType =
|
|
53293
|
+
return U.elementType = ut, U.lanes = O, U;
|
|
53294
53294
|
}
|
|
53295
53295
|
function I1(a, c, O, L) {
|
|
53296
53296
|
var U = Ii(W, a, L, c);
|
|
@@ -53345,8 +53345,8 @@ Check the render method of \`` + Pe + "`.");
|
|
|
53345
53345
|
}
|
|
53346
53346
|
}
|
|
53347
53347
|
function bv(a, c, O, L, U, q, oe, he, ye, Pe) {
|
|
53348
|
-
var Ie = new z1(a, c, O, he, ye),
|
|
53349
|
-
Ie.current =
|
|
53348
|
+
var Ie = new z1(a, c, O, he, ye), tt = M1(c, q);
|
|
53349
|
+
Ie.current = tt, tt.stateNode = Ie;
|
|
53350
53350
|
{
|
|
53351
53351
|
var ht = {
|
|
53352
53352
|
element: L,
|
|
@@ -53356,9 +53356,9 @@ Check the render method of \`` + Pe + "`.");
|
|
|
53356
53356
|
transitions: null,
|
|
53357
53357
|
pendingSuspenseBoundaries: null
|
|
53358
53358
|
};
|
|
53359
|
-
|
|
53359
|
+
tt.memoizedState = ht;
|
|
53360
53360
|
}
|
|
53361
|
-
return Ch(
|
|
53361
|
+
return Ch(tt), Ie;
|
|
53362
53362
|
}
|
|
53363
53363
|
var G1 = "18.2.0";
|
|
53364
53364
|
function $1(a, c, O) {
|
|
@@ -53428,10 +53428,10 @@ Check the render method of \`` + Pe + "`.");
|
|
|
53428
53428
|
return bv(a, c, ye, Pe, O, L, U, q, oe);
|
|
53429
53429
|
}
|
|
53430
53430
|
function K1(a, c, O, L, U, q, oe, he, ye, Pe) {
|
|
53431
|
-
var Ie = !0,
|
|
53432
|
-
|
|
53433
|
-
var ht =
|
|
53434
|
-
return At.callback = c ?? null, Xa(ht, At, wt), Wx(
|
|
53431
|
+
var Ie = !0, tt = bv(O, L, Ie, a, U, q, oe, he, ye);
|
|
53432
|
+
tt.context = Tv(null);
|
|
53433
|
+
var ht = tt.current, Rt = Zr(), wt = to(ht), At = ma(Rt, wt);
|
|
53434
|
+
return At.callback = c ?? null, Xa(ht, At, wt), Wx(tt, wt, Rt), tt;
|
|
53435
53435
|
}
|
|
53436
53436
|
function Rv(a, c, O, L) {
|
|
53437
53437
|
Al(c, a);
|
|
@@ -54385,7 +54385,7 @@ function ImageClickWrapperComponent(l) {
|
|
|
54385
54385
|
success: !1,
|
|
54386
54386
|
text: "",
|
|
54387
54387
|
rewards: []
|
|
54388
|
-
}), ue = useRef(!1), [me, J] = useState(!0), [H, W] = useState(!1), V = useRef(null), G = useRef(null), Y = useRef(null), ie = useRef(null), le = useRef(null), fe = useRef(null), ce = useRef(null), ge = useRef(null), Se = useRef(null), [Re, Fe] = useState(T), De = (_e) => w ? w(_e) : t({ type: "translate", payload: _e }), [Je] = e, { solution:
|
|
54388
|
+
}), ue = useRef(!1), [me, J] = useState(!0), [H, W] = useState(!1), V = useRef(null), G = useRef(null), Y = useRef(null), ie = useRef(null), le = useRef(null), fe = useRef(null), ce = useRef(null), ge = useRef(null), Se = useRef(null), [Re, Fe] = useState(T), De = (_e) => w ? w(_e) : t({ type: "translate", payload: _e }), [Je] = e, { solution: ut } = h, Ze = (($e = f == null ? void 0 : f.img) == null ? void 0 : $e.url) || defaultImg, xt = u.map((_e, Oe) => ({
|
|
54389
54389
|
index: Oe,
|
|
54390
54390
|
shape: "poly",
|
|
54391
54391
|
..._e
|
|
@@ -54481,10 +54481,10 @@ function ImageClickWrapperComponent(l) {
|
|
|
54481
54481
|
]), useEffect(() => {
|
|
54482
54482
|
se && o(!0);
|
|
54483
54483
|
}, [se, o]);
|
|
54484
|
-
const
|
|
54484
|
+
const ct = (_e, Oe = !1) => {
|
|
54485
54485
|
var Ke, Ft;
|
|
54486
54486
|
if (!X) {
|
|
54487
|
-
const { rewards: Nt, desc: je } =
|
|
54487
|
+
const { rewards: Nt, desc: je } = ut.wrong;
|
|
54488
54488
|
let vt = je, Pt = Nt;
|
|
54489
54489
|
const ot = (Ke = C == null ? void 0 : C.wrongFeedbacks) == null ? void 0 : Ke.find((Ge) => Ge.id === _e.id);
|
|
54490
54490
|
ot && (vt = ot.desc, Pt = ot.rewards), x && (z([]), Oe && (Ft = h == null ? void 0 : h.orderFeedback) != null && Ft.desc && (vt = h.orderFeedback.desc, Pt = h.orderFeedback.rewards)), T && (ke(), Qe()), te((Ge) => ({
|
|
@@ -54523,7 +54523,7 @@ function ImageClickWrapperComponent(l) {
|
|
|
54523
54523
|
var Oe, Ke;
|
|
54524
54524
|
if (!B.some((Ft) => Ft.index === _e.index) && !K.show && !X) {
|
|
54525
54525
|
Je("click-ui");
|
|
54526
|
-
let Ft =
|
|
54526
|
+
let Ft = ut.right.desc, { rewards: Nt } = ut.right;
|
|
54527
54527
|
const je = [...B, _e];
|
|
54528
54528
|
if (x && _e.index === B.length || !x) {
|
|
54529
54529
|
if (T && Qe(Re), s(), (Oe = C == null ? void 0 : C.correctFeedbacks) != null && Oe.length) {
|
|
@@ -54538,7 +54538,7 @@ function ImageClickWrapperComponent(l) {
|
|
|
54538
54538
|
}
|
|
54539
54539
|
z(je);
|
|
54540
54540
|
} else
|
|
54541
|
-
|
|
54541
|
+
ct(_e, !0);
|
|
54542
54542
|
}
|
|
54543
54543
|
}, ft = useCallback(() => {
|
|
54544
54544
|
ke(), Fe(T), Me(), !ue.current && P && F(), J(!1), V.current = Date.now(), ie.current = V.current + T * 1e3, qe();
|
|
@@ -54580,7 +54580,7 @@ function ImageClickWrapperComponent(l) {
|
|
|
54580
54580
|
badAreas: Ve,
|
|
54581
54581
|
clickedZones: B,
|
|
54582
54582
|
onClick: at,
|
|
54583
|
-
onClickOutside:
|
|
54583
|
+
onClickOutside: ct,
|
|
54584
54584
|
hasHighlights: S,
|
|
54585
54585
|
emitEvent: n
|
|
54586
54586
|
}
|
|
@@ -56967,20 +56967,20 @@ function WriterPuzzleComponent({
|
|
|
56967
56967
|
correct: ""
|
|
56968
56968
|
}
|
|
56969
56969
|
}), [k, F] = useState(!1), [M, j] = useState([]), [B, z] = useState(!1), [X, re] = useState(!1), [se, Z] = useState(!1), [K, te] = useState(!0), [ue, me] = useState([]), [J, H] = useState(!0), [W] = T, V = useRef({}), G = (qe) => {
|
|
56970
|
-
let
|
|
56970
|
+
let ct;
|
|
56971
56971
|
return qe.electionTexts.forEach((ze, at) => {
|
|
56972
|
-
ze.correct && (
|
|
56973
|
-
}),
|
|
56972
|
+
ze.correct && (ct = at);
|
|
56973
|
+
}), ct;
|
|
56974
56974
|
}, Y = useCallback(
|
|
56975
56975
|
(qe) => M.filter((ze) => ze.currenTextParagraph === qe)[0].fullText_labelId,
|
|
56976
56976
|
[M]
|
|
56977
56977
|
), ie = useCallback(
|
|
56978
|
-
() => x.map((qe,
|
|
56978
|
+
() => x.map((qe, ct) => {
|
|
56979
56979
|
if (qe.type === "fixed")
|
|
56980
56980
|
return qe.fullText_labelId ?? qe.fullText;
|
|
56981
56981
|
if (qe.type === "election") {
|
|
56982
56982
|
const ze = G(qe);
|
|
56983
|
-
return ze >= 0 ? qe.electionTexts[ze].fullText_labelId : Y(
|
|
56983
|
+
return ze >= 0 ? qe.electionTexts[ze].fullText_labelId : Y(ct);
|
|
56984
56984
|
}
|
|
56985
56985
|
return "";
|
|
56986
56986
|
}),
|
|
@@ -56988,24 +56988,24 @@ function WriterPuzzleComponent({
|
|
|
56988
56988
|
), le = 12, fe = () => {
|
|
56989
56989
|
if (M) {
|
|
56990
56990
|
const qe = M.length;
|
|
56991
|
-
let
|
|
56991
|
+
let ct = 0;
|
|
56992
56992
|
for (let ze = 0; ze < qe; ze += 1)
|
|
56993
|
-
M[ze].isCorrect === "none" && (
|
|
56994
|
-
return
|
|
56993
|
+
M[ze].isCorrect === "none" && (ct += 1);
|
|
56994
|
+
return ct === qe;
|
|
56995
56995
|
}
|
|
56996
56996
|
return !0;
|
|
56997
56997
|
}, ce = useCallback(() => {
|
|
56998
56998
|
if (M) {
|
|
56999
56999
|
const qe = M.length;
|
|
57000
|
-
let
|
|
57000
|
+
let ct = 0;
|
|
57001
57001
|
for (let ze = 0; ze < qe; ze += 1)
|
|
57002
|
-
M[ze].isCorrect === "green" && (
|
|
57003
|
-
return
|
|
57002
|
+
M[ze].isCorrect === "green" && (ct += 1);
|
|
57003
|
+
return ct === qe;
|
|
57004
57004
|
}
|
|
57005
57005
|
return !0;
|
|
57006
57006
|
}, [M]), ge = () => !!(M && M.length), Se = () => M.find((qe) => {
|
|
57007
|
-
const { feedback:
|
|
57008
|
-
return
|
|
57007
|
+
const { feedback: ct } = x[qe.currenTextParagraph].electionTexts[qe.index];
|
|
57008
|
+
return ct.body !== "";
|
|
57009
57009
|
}), Re = useCallback(() => {
|
|
57010
57010
|
const qe = ie();
|
|
57011
57011
|
l({
|
|
@@ -57019,8 +57019,8 @@ function WriterPuzzleComponent({
|
|
|
57019
57019
|
});
|
|
57020
57020
|
}, [ie, p, l, d]), Fe = useCallback(
|
|
57021
57021
|
(qe) => {
|
|
57022
|
-
const
|
|
57023
|
-
W(y ? "fail" :
|
|
57022
|
+
const ct = ce();
|
|
57023
|
+
W(y ? "fail" : ct ? "score" : "fail"), l({
|
|
57024
57024
|
type: "addPoints",
|
|
57025
57025
|
complex: !0,
|
|
57026
57026
|
finish: !0,
|
|
@@ -57050,15 +57050,15 @@ function WriterPuzzleComponent({
|
|
|
57050
57050
|
}), l({ type: "failPuzzle" });
|
|
57051
57051
|
}, Je = () => {
|
|
57052
57052
|
ge() ? fe() && (z(!0), Fe()) : (z(!0), Z(!0), Fe()), B ? (te(!1), se && !X ? re(!0) : (X || !se && !X) && (!se && !X && s ? ce() ? Fe() : De() : Fe())) : (z(!0), Se() && Z(!0));
|
|
57053
|
-
},
|
|
57054
|
-
const qe = x[C].electionTexts.filter((ze) => ze.correct).length,
|
|
57055
|
-
return qe === 0 || qe ===
|
|
57053
|
+
}, ut = () => {
|
|
57054
|
+
const qe = x[C].electionTexts.filter((ze) => ze.correct).length, ct = x[C].electionTexts;
|
|
57055
|
+
return qe === 0 || qe === ct;
|
|
57056
57056
|
}, Ze = (qe) => {
|
|
57057
|
-
const
|
|
57058
|
-
ze && ze[0] && ze[0].points && (V.current[`t${C}_e${qe}`] || (
|
|
57059
|
-
const at = () =>
|
|
57057
|
+
const ct = x[C].electionTexts[qe], ze = ct.feedback.rewards;
|
|
57058
|
+
ze && ze[0] && ze[0].points && (V.current[`t${C}_e${qe}`] || (ct.correct && (V.current[`t${C}_e${qe}`] = !0), me([...ue, ...ze])));
|
|
57059
|
+
const at = () => ut() ? "none" : ct.correct ? "green" : "red", ft = {
|
|
57060
57060
|
currenTextParagraph: C,
|
|
57061
|
-
fullText:
|
|
57061
|
+
fullText: ct.fullText,
|
|
57062
57062
|
index: qe,
|
|
57063
57063
|
isCorrect: at()
|
|
57064
57064
|
};
|
|
@@ -57066,7 +57066,7 @@ function WriterPuzzleComponent({
|
|
|
57066
57066
|
...N,
|
|
57067
57067
|
[`text_${C}`]: {
|
|
57068
57068
|
type: "fixed",
|
|
57069
|
-
fullText:
|
|
57069
|
+
fullText: ct.fullText,
|
|
57070
57070
|
correct: ft.isCorrect
|
|
57071
57071
|
}
|
|
57072
57072
|
}), j([...M, ft]);
|
|
@@ -57080,7 +57080,7 @@ function WriterPuzzleComponent({
|
|
|
57080
57080
|
behavior: "smooth"
|
|
57081
57081
|
});
|
|
57082
57082
|
}
|
|
57083
|
-
}, Me = (qe,
|
|
57083
|
+
}, Me = (qe, ct, ze) => {
|
|
57084
57084
|
const at = qe.fullText, ft = x[ze + 1] ? x[ze + 1].type : "", $e = (
|
|
57085
57085
|
// its magic
|
|
57086
57086
|
N[`text_${ze + 1}`] && N[`text_${ze + 1}`].type ? N[`text_${ze + 1}`].type : ft
|
|
@@ -57088,7 +57088,7 @@ function WriterPuzzleComponent({
|
|
|
57088
57088
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
57089
57089
|
FixedComponent,
|
|
57090
57090
|
{
|
|
57091
|
-
length:
|
|
57091
|
+
length: ct,
|
|
57092
57092
|
doneTyping: k,
|
|
57093
57093
|
index: ze,
|
|
57094
57094
|
delay: le,
|
|
@@ -57099,9 +57099,9 @@ function WriterPuzzleComponent({
|
|
|
57099
57099
|
},
|
|
57100
57100
|
ze.toString()
|
|
57101
57101
|
);
|
|
57102
|
-
}, Le = (qe,
|
|
57102
|
+
}, Le = (qe, ct) => {
|
|
57103
57103
|
const ze = qe.fullText;
|
|
57104
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(FinishedTextComponent, { textToPrint: ze, correct: qe.correct },
|
|
57104
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(FinishedTextComponent, { textToPrint: ze, correct: qe.correct }, ct);
|
|
57105
57105
|
}, Ye = (qe) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
57106
57106
|
ElectionComponent,
|
|
57107
57107
|
{
|
|
@@ -57112,7 +57112,7 @@ function WriterPuzzleComponent({
|
|
|
57112
57112
|
disableExit: J
|
|
57113
57113
|
},
|
|
57114
57114
|
qe.electionTexts
|
|
57115
|
-
), ke = (qe,
|
|
57115
|
+
), ke = (qe, ct, ze) => qe.type === "fixed" ? Me(qe, ct, ze) : Ye(qe);
|
|
57116
57116
|
useEffect(() => {
|
|
57117
57117
|
k === !0 && (() => {
|
|
57118
57118
|
x[C + 1] ? (P({
|
|
@@ -57160,9 +57160,9 @@ function WriterPuzzleComponent({
|
|
|
57160
57160
|
ref: v,
|
|
57161
57161
|
children: [
|
|
57162
57162
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "wrapfixed", children: K && !B && Object.values(N).map(
|
|
57163
|
-
(qe,
|
|
57163
|
+
(qe, ct) => ke(qe, Object.values(N).length - 1, ct)
|
|
57164
57164
|
) }),
|
|
57165
|
-
B && Object.values(N).map((qe,
|
|
57165
|
+
B && Object.values(N).map((qe, ct) => Le(qe, ct))
|
|
57166
57166
|
]
|
|
57167
57167
|
}
|
|
57168
57168
|
) }),
|
|
@@ -58056,7 +58056,7 @@ function TestComponent({
|
|
|
58056
58056
|
const Fe = x[le].find((De) => De.id === ge);
|
|
58057
58057
|
if (Fe) {
|
|
58058
58058
|
if (Fe.id === ie.id) {
|
|
58059
|
-
const De = x[le].find((
|
|
58059
|
+
const De = x[le].find((ut) => ut.id === ge), Je = x[le].indexOf(De);
|
|
58060
58060
|
if (x[le].splice(Je, 1), x[le].length === 0) {
|
|
58061
58061
|
D(!1);
|
|
58062
58062
|
return;
|
|
@@ -58636,10 +58636,10 @@ function TextClickPuzzleComponent({
|
|
|
58636
58636
|
(G, Y) => {
|
|
58637
58637
|
var Re, Fe, De, Je;
|
|
58638
58638
|
G.stopPropagation();
|
|
58639
|
-
const ie = document.querySelectorAll(`[data-text-id="${Y}"]`), le = document.querySelectorAll("[data-text-id]"), fe = s[b].correctTexts.find((
|
|
58640
|
-
(
|
|
58641
|
-
), Se = (Je = (De = s[b]) == null ? void 0 : De.specificFeedbacks) == null ? void 0 : Je.wrongFeedbacks.find((
|
|
58642
|
-
v("click-ui"), s[b].hasClickOrder ? s[b].correctTexts[k].id === Y ? (F(k + 1), K(ie, ge)) : s[b].correctTexts.find((
|
|
58639
|
+
const ie = document.querySelectorAll(`[data-text-id="${Y}"]`), le = document.querySelectorAll("[data-text-id]"), fe = s[b].correctTexts.find((ut) => ut.id === Y), ce = s[b].wrongTexts.find((ut) => ut.id === Y), ge = (Fe = (Re = s[b]) == null ? void 0 : Re.specificFeedbacks) == null ? void 0 : Fe.correctFeedbacks.find(
|
|
58640
|
+
(ut) => ut.id === Y
|
|
58641
|
+
), Se = (Je = (De = s[b]) == null ? void 0 : De.specificFeedbacks) == null ? void 0 : Je.wrongFeedbacks.find((ut) => ut.id === Y);
|
|
58642
|
+
v("click-ui"), s[b].hasClickOrder ? s[b].correctTexts[k].id === Y ? (F(k + 1), K(ie, ge)) : s[b].correctTexts.find((ut) => ut.id === Y) && s[b].correctTexts[k].id !== Y ? (le.forEach((ut) => ut.classList.remove("text-click__success")), F(0), D(0), N.current = 0, re(!0, {
|
|
58643
58643
|
result: !1,
|
|
58644
58644
|
text: s[b].info.orderFeedback.desc || B("puzzles.incorrectOrder"),
|
|
58645
58645
|
timeout: !1
|
|
@@ -60952,16 +60952,16 @@ function DialogComponent({
|
|
|
60952
60952
|
voiceOver: !1,
|
|
60953
60953
|
avatar: "",
|
|
60954
60954
|
show: !1
|
|
60955
|
-
}), Re = useMemo(() => t.reduce((Ae,
|
|
60955
|
+
}), Re = useMemo(() => t.reduce((Ae, lt) => (lt.slots && lt.slots.filter((ve) => ve.uid).forEach((ve) => {
|
|
60956
60956
|
Ae.includes(ve.uid) || Ae.push(ve.uid);
|
|
60957
|
-
}), Ae), []), [t]), Fe = useCallback((Ae) => n({ type: "translate", payload: Ae }), [n]), [De, Je] = useState([]),
|
|
60958
|
-
const Ae = o.find((it) => it.fromId ===
|
|
60959
|
-
return !
|
|
60960
|
-
}, [o, t,
|
|
60957
|
+
}), Ae), []), [t]), Fe = useCallback((Ae) => n({ type: "translate", payload: Ae }), [n]), [De, Je] = useState([]), ut = useMemo(() => De[De.length - 1], [De]), Ze = useCallback(() => {
|
|
60958
|
+
const Ae = o.find((it) => it.fromId === ut) || o.find((it) => it.toId === ut), lt = t.find((it) => it.id === (Ae == null ? void 0 : Ae.fromId));
|
|
60959
|
+
return !ut && (x == null ? void 0 : x.line) >= 0 ? { decision: !0 } : lt;
|
|
60960
|
+
}, [o, t, ut]), xt = useCallback(() => {
|
|
60961
60961
|
if (X) {
|
|
60962
|
-
const Ae = t.filter((
|
|
60962
|
+
const Ae = t.filter((lt) => !o.find((it) => it.toId === lt.id));
|
|
60963
60963
|
if (Ae.length) {
|
|
60964
|
-
const
|
|
60964
|
+
const lt = Ae[0], it = t.indexOf(lt);
|
|
60965
60965
|
if (it >= 0)
|
|
60966
60966
|
return it;
|
|
60967
60967
|
}
|
|
@@ -60969,23 +60969,23 @@ function DialogComponent({
|
|
|
60969
60969
|
return -1;
|
|
60970
60970
|
}, [X, t, o]), Ve = useCallback(() => {
|
|
60971
60971
|
if (X) {
|
|
60972
|
-
const
|
|
60973
|
-
return
|
|
60972
|
+
const lt = Ze();
|
|
60973
|
+
return lt == null ? void 0 : lt.decision;
|
|
60974
60974
|
}
|
|
60975
60975
|
const Ae = t[_ - 1] ? t[_ - 1] : {};
|
|
60976
60976
|
return _ > 0 && (Ae == null ? void 0 : Ae.decision);
|
|
60977
|
-
}, [j, X, t,
|
|
60977
|
+
}, [j, X, t, ut, o]), Me = useCallback(() => {
|
|
60978
60978
|
if (X) {
|
|
60979
|
-
const
|
|
60980
|
-
return (
|
|
60979
|
+
const lt = Ze();
|
|
60980
|
+
return (lt == null ? void 0 : lt.type) === "conversationalCamera";
|
|
60981
60981
|
}
|
|
60982
60982
|
const Ae = t[_ - 1] ? t[_ - 1] : {};
|
|
60983
60983
|
return _ > 0 && (Ae == null ? void 0 : Ae.type) === "conversationalCamera";
|
|
60984
|
-
}, [j, X, t,
|
|
60984
|
+
}, [j, X, t, ut, o]), Le = useCallback(
|
|
60985
60985
|
(Ae) => {
|
|
60986
60986
|
var it, ve;
|
|
60987
|
-
const
|
|
60988
|
-
return ((ve = (it = Ae == null ? void 0 : Ae.character) == null ? void 0 : it.resource) == null ? void 0 : ve.url) || (
|
|
60987
|
+
const lt = s.find((ee) => (ee == null ? void 0 : ee.uid) === (Ae == null ? void 0 : Ae.uid) ? ee : "");
|
|
60988
|
+
return ((ve = (it = Ae == null ? void 0 : Ae.character) == null ? void 0 : it.resource) == null ? void 0 : ve.url) || (lt == null ? void 0 : lt.completeUrl) || "";
|
|
60989
60989
|
},
|
|
60990
60990
|
[s]
|
|
60991
60991
|
), Ye = (Ae = () => {
|
|
@@ -60994,8 +60994,8 @@ function DialogComponent({
|
|
|
60994
60994
|
te.current && (te.current = !1);
|
|
60995
60995
|
else {
|
|
60996
60996
|
D.updateProjectionMatrix(), D.updateMatrixWorld(!0);
|
|
60997
|
-
const
|
|
60998
|
-
if (animationTarget.position.fromArray(
|
|
60997
|
+
const lt = M.current.child ? M.current.pos : F.position.toArray();
|
|
60998
|
+
if (animationTarget.position.fromArray(lt), M.current.parent) {
|
|
60999
60999
|
animationTarget.quaternion.equals(D.quaternion) || animationTarget.applyQuaternion(D.quaternion);
|
|
61000
61000
|
const it = M.current.isLeft ? -1 : 1, ve = headSize * it;
|
|
61001
61001
|
animationTarget.translateX(-10 * it + ve), animationTarget.translateY(-2), animationTarget.translateZ(30);
|
|
@@ -61025,11 +61025,11 @@ function DialogComponent({
|
|
|
61025
61025
|
}
|
|
61026
61026
|
}, ke = useCallback(() => {
|
|
61027
61027
|
M.current.child = null, M.current.parent = null, h && Ye();
|
|
61028
|
-
}, [h]), Qe = (Ae,
|
|
61029
|
-
const ee =
|
|
61028
|
+
}, [h]), Qe = (Ae, lt, it, ve = !1) => {
|
|
61029
|
+
const ee = lt.includes("seated");
|
|
61030
61030
|
if (it) {
|
|
61031
61031
|
const pe = BASIC_ACTIONS_TYPES_WHITELIST.includes(it.animationId);
|
|
61032
|
-
pe &&
|
|
61032
|
+
pe && lt.includes("talking") && (V.current = Ae), me(Ae, it.url, lt.includes("talking"), pe).then((Ee) => {
|
|
61033
61033
|
if (Ee && pe)
|
|
61034
61034
|
if (z.current)
|
|
61035
61035
|
ue(Ae, "idle");
|
|
@@ -61039,18 +61039,18 @@ function DialogComponent({
|
|
|
61039
61039
|
}
|
|
61040
61040
|
});
|
|
61041
61041
|
} else {
|
|
61042
|
-
const pe = ve && !ee ? `${
|
|
61042
|
+
const pe = ve && !ee ? `${lt}-seated` : lt;
|
|
61043
61043
|
ue(Ae, pe);
|
|
61044
61044
|
}
|
|
61045
61045
|
}, bt = () => {
|
|
61046
61046
|
if (!(K != null && K.uid) || !(K != null && K.emotion) || z.current)
|
|
61047
61047
|
return;
|
|
61048
|
-
const { emotion: Ae, uid:
|
|
61048
|
+
const { emotion: Ae, uid: lt, animation: it } = K, ve = getCurrentVisible(lt, C);
|
|
61049
61049
|
if (ve) {
|
|
61050
61050
|
const { isSeated: ee } = ve;
|
|
61051
|
-
H(
|
|
61051
|
+
H(lt).then(() => {
|
|
61052
61052
|
Qe(
|
|
61053
|
-
|
|
61053
|
+
lt,
|
|
61054
61054
|
ee && !Ae.includes("seated") ? `${Ae}-seated_talking` : `${Ae}_talking`,
|
|
61055
61055
|
it,
|
|
61056
61056
|
ee
|
|
@@ -61062,18 +61062,18 @@ function DialogComponent({
|
|
|
61062
61062
|
}, qe = () => {
|
|
61063
61063
|
if (!(K != null && K.uid) || z.current)
|
|
61064
61064
|
return;
|
|
61065
|
-
const { emotion: Ae, uid:
|
|
61065
|
+
const { emotion: Ae, uid: lt, animation: it } = K, ve = getCurrentVisible(lt, C);
|
|
61066
61066
|
if (ve) {
|
|
61067
61067
|
delete ve.userData._active;
|
|
61068
61068
|
const { isSeated: ee } = ve;
|
|
61069
|
-
if (V.current ===
|
|
61070
|
-
Qe(
|
|
61069
|
+
if (V.current === lt)
|
|
61070
|
+
Qe(lt, "neutral", null, ee), V.current = null;
|
|
61071
61071
|
else {
|
|
61072
61072
|
const pe = Ae.includes("talking");
|
|
61073
|
-
Qe(
|
|
61073
|
+
Qe(lt, pe ? "neutral" : Ae, pe ? null : it, ee);
|
|
61074
61074
|
}
|
|
61075
61075
|
}
|
|
61076
|
-
},
|
|
61076
|
+
}, ct = useCallback(() => {
|
|
61077
61077
|
z.current = !0, Se({ show: !1 }), ke(), J(), h || e({ type: "success" });
|
|
61078
61078
|
}, [D, e, ke, h]);
|
|
61079
61079
|
useEffect(() => () => {
|
|
@@ -61083,22 +61083,22 @@ function DialogComponent({
|
|
|
61083
61083
|
Se({ show: !1 }), S(Ae), e({ type: "notifyProgress", payload: { line: Ae } });
|
|
61084
61084
|
}, at = useCallback(
|
|
61085
61085
|
(Ae = !0) => {
|
|
61086
|
-
const
|
|
61087
|
-
if (!(ve != null && ve[
|
|
61088
|
-
|
|
61086
|
+
const lt = Ae ? ["fromId", "toId"] : ["toId", "fromId"], it = o.filter((pe) => pe[lt[0]] === j.id), ve = it.length === 1 ? it[0] : it.find((pe) => pe[lt[1]] === ut);
|
|
61087
|
+
if (!(ve != null && ve[lt[0]])) {
|
|
61088
|
+
ct();
|
|
61089
61089
|
return;
|
|
61090
61090
|
}
|
|
61091
61091
|
Ae || Je(De.slice(0, De.length - 1));
|
|
61092
|
-
const ee = t.findIndex((pe) => pe.id === ve[
|
|
61093
|
-
ee >= 0 ? ze(ee) :
|
|
61092
|
+
const ee = t.findIndex((pe) => pe.id === ve[lt[1]]);
|
|
61093
|
+
ee >= 0 ? ze(ee) : ct();
|
|
61094
61094
|
},
|
|
61095
|
-
[j == null ? void 0 : j.id, e, o,
|
|
61095
|
+
[j == null ? void 0 : j.id, e, o, ct, t]
|
|
61096
61096
|
), ft = useCallback(
|
|
61097
|
-
(Ae,
|
|
61097
|
+
(Ae, lt) => {
|
|
61098
61098
|
const it = [3, 2, 1][Ae.id], ee = o.filter((Ee) => Ee.fromId === (j == null ? void 0 : j.id)).find((Ee) => parseInt(Ee.fromPointIndex) === it), pe = t.findIndex((Ee) => Ee.id === (ee == null ? void 0 : ee.toId));
|
|
61099
|
-
pe >= 0 ? (ee == null ? void 0 : ee.fromId) === (ee == null ? void 0 : ee.toId) ?
|
|
61099
|
+
pe >= 0 ? (ee == null ? void 0 : ee.fromId) === (ee == null ? void 0 : ee.toId) ? lt() : ze(pe) : ct();
|
|
61100
61100
|
},
|
|
61101
|
-
[j == null ? void 0 : j.id, o,
|
|
61101
|
+
[j == null ? void 0 : j.id, o, ct, t]
|
|
61102
61102
|
), $e = useCallback(() => {
|
|
61103
61103
|
if (Z.current = { ...K }, w(!1), qe(), X)
|
|
61104
61104
|
at(!1);
|
|
@@ -61110,7 +61110,7 @@ function DialogComponent({
|
|
|
61110
61110
|
(Ae) => {
|
|
61111
61111
|
if (X) {
|
|
61112
61112
|
if (Ae) {
|
|
61113
|
-
const
|
|
61113
|
+
const lt = [3, 2, 1][Ae.id], ve = o.filter((ee) => ee.fromId === j.id).find((ee) => parseInt(ee.fromPointIndex) === lt);
|
|
61114
61114
|
if (ve) {
|
|
61115
61115
|
const ee = t.findIndex((pe) => pe.id === ve.toId);
|
|
61116
61116
|
ee >= 0 && e({ type: "notifyProgress", payload: { line: ee } });
|
|
@@ -61118,21 +61118,21 @@ function DialogComponent({
|
|
|
61118
61118
|
e({ type: "saveNode" });
|
|
61119
61119
|
}
|
|
61120
61120
|
} else if (_ < t.length - 1) {
|
|
61121
|
-
const
|
|
61122
|
-
e({ type: "notifyProgress", payload: { line:
|
|
61121
|
+
const lt = _ + 1;
|
|
61122
|
+
e({ type: "notifyProgress", payload: { line: lt } });
|
|
61123
61123
|
} else
|
|
61124
61124
|
e({ type: "saveNode" });
|
|
61125
61125
|
},
|
|
61126
61126
|
[o, _, t, e, j == null ? void 0 : j.id, X]
|
|
61127
61127
|
), Te = useCallback(
|
|
61128
|
-
(Ae,
|
|
61128
|
+
(Ae, lt) => {
|
|
61129
61129
|
if (Z.current = { ...K }, w(!1), qe(), X)
|
|
61130
|
-
Je([...De, j.id]), Ae ? ft(Ae,
|
|
61130
|
+
Je([...De, j.id]), Ae ? ft(Ae, lt) : at();
|
|
61131
61131
|
else if (_ < t.length - 1) {
|
|
61132
61132
|
const it = _ + 1;
|
|
61133
61133
|
ze(it);
|
|
61134
61134
|
} else
|
|
61135
|
-
(u || le || fe) &&
|
|
61135
|
+
(u || le || fe) && ct();
|
|
61136
61136
|
},
|
|
61137
61137
|
[
|
|
61138
61138
|
e,
|
|
@@ -61144,13 +61144,13 @@ function DialogComponent({
|
|
|
61144
61144
|
t.length,
|
|
61145
61145
|
ft,
|
|
61146
61146
|
at,
|
|
61147
|
-
|
|
61147
|
+
ct,
|
|
61148
61148
|
K
|
|
61149
61149
|
]
|
|
61150
61150
|
), _e = () => {
|
|
61151
61151
|
v(!1), $e();
|
|
61152
61152
|
}, Oe = () => X ? j && j.type !== "conversationalDecision" && !o.find((Ae) => Ae.fromId === j.id) : _ === t.length - 1, Ke = () => {
|
|
61153
|
-
Oe() ?
|
|
61153
|
+
Oe() ? ct() : (v(!1), Te());
|
|
61154
61154
|
};
|
|
61155
61155
|
useEffect(() => {
|
|
61156
61156
|
if (X && !b) {
|
|
@@ -61159,22 +61159,22 @@ function DialogComponent({
|
|
|
61159
61159
|
R(!0), S(Ae);
|
|
61160
61160
|
return;
|
|
61161
61161
|
}
|
|
61162
|
-
const
|
|
61163
|
-
|
|
61162
|
+
const lt = xt();
|
|
61163
|
+
lt >= 0 && (R(!0), S(lt));
|
|
61164
61164
|
}
|
|
61165
61165
|
}, [o, X, t, b, xt]);
|
|
61166
61166
|
const Ft = (Ae) => {
|
|
61167
61167
|
if (Z.current.uid === Ae.uid || M.current.parent === Ae)
|
|
61168
61168
|
return;
|
|
61169
|
-
const
|
|
61170
|
-
it.updateMatrixWorld(!0),
|
|
61169
|
+
const lt = new Object3D(), it = Ae.getObjectByName("Head_M");
|
|
61170
|
+
it.updateMatrixWorld(!0), lt.applyMatrix4(it.matrixWorld), lt.applyQuaternion(D.quaternion);
|
|
61171
61171
|
const ve = h ? 2.5 : 2, ee = h ? 1.2 : 1.5;
|
|
61172
|
-
|
|
61172
|
+
lt.translateY(ve), lt.translateX(ee);
|
|
61173
61173
|
const pe = new Vector3();
|
|
61174
61174
|
pe.setFromMatrixPosition(it.matrixWorld);
|
|
61175
61175
|
const we = pe.project(D).x < 0;
|
|
61176
61176
|
M.current = {
|
|
61177
|
-
pos:
|
|
61177
|
+
pos: lt.position.toArray(),
|
|
61178
61178
|
child: it,
|
|
61179
61179
|
parent: Ae,
|
|
61180
61180
|
isLeft: we
|
|
@@ -61196,10 +61196,10 @@ function DialogComponent({
|
|
|
61196
61196
|
show: !0
|
|
61197
61197
|
});
|
|
61198
61198
|
else if (!z.current && !le && !fe) {
|
|
61199
|
-
const
|
|
61199
|
+
const lt = j == null ? void 0 : j.slots.filter((ee) => ee.uid && !ee.talking), it = [...lt.map((ee) => ee.uid) || [], K == null ? void 0 : K.uid];
|
|
61200
61200
|
if (Re.filter((ee) => !it.includes(ee)).forEach((ee) => {
|
|
61201
61201
|
ue(ee, "idle");
|
|
61202
|
-
}),
|
|
61202
|
+
}), lt.forEach((ee) => {
|
|
61203
61203
|
const pe = getCurrentVisible(ee.uid, C);
|
|
61204
61204
|
if (pe) {
|
|
61205
61205
|
const { isSeated: Ee } = pe;
|
|
@@ -61211,8 +61211,8 @@ function DialogComponent({
|
|
|
61211
61211
|
var Ee, we;
|
|
61212
61212
|
if (K.uid === ee.uid) {
|
|
61213
61213
|
Ft(ee);
|
|
61214
|
-
const { isSeated: de, userData: be } = ee, { emotion: Be, animation:
|
|
61215
|
-
!((Ee = be._active) != null && Ee.includes("talking")) && !((we = be._active) != null && we.includes(Be)) && Qe(K.uid, Be,
|
|
61214
|
+
const { isSeated: de, userData: be } = ee, { emotion: Be, animation: et } = K;
|
|
61215
|
+
!((Ee = be._active) != null && Ee.includes("talking")) && !((we = be._active) != null && we.includes(Be)) && Qe(K.uid, Be, et, de);
|
|
61216
61216
|
const gt = () => {
|
|
61217
61217
|
var Dt;
|
|
61218
61218
|
Se({
|
|
@@ -61278,12 +61278,12 @@ function DialogComponent({
|
|
|
61278
61278
|
var Ae;
|
|
61279
61279
|
if (((j == null ? void 0 : j.audioType) === "none" || y) && (ge != null && ge.show) && !(K != null && K.emotion.includes("think"))) {
|
|
61280
61280
|
bt();
|
|
61281
|
-
const
|
|
61281
|
+
const lt = characterMs * (((Ae = ge == null ? void 0 : ge.text) == null ? void 0 : Ae.length) || 0);
|
|
61282
61282
|
setTimeout(
|
|
61283
61283
|
() => {
|
|
61284
61284
|
qe();
|
|
61285
61285
|
},
|
|
61286
|
-
|
|
61286
|
+
lt < minMs ? minMs : lt
|
|
61287
61287
|
);
|
|
61288
61288
|
}
|
|
61289
61289
|
}, [
|
|
@@ -61296,8 +61296,8 @@ function DialogComponent({
|
|
|
61296
61296
|
]), useEffect(() => {
|
|
61297
61297
|
var Ae;
|
|
61298
61298
|
if (ce && ge.show && ((j == null ? void 0 : j.audioType) === "none" || y) && !p) {
|
|
61299
|
-
const
|
|
61300
|
-
(!Oe() || Oe() && u) && N(Te,
|
|
61299
|
+
const lt = characterMs * (((Ae = ge == null ? void 0 : ge.text) == null ? void 0 : Ae.length) || 0);
|
|
61300
|
+
(!Oe() || Oe() && u) && N(Te, lt < minMs ? minMs : lt);
|
|
61301
61301
|
}
|
|
61302
61302
|
return () => {
|
|
61303
61303
|
P();
|
|
@@ -61321,7 +61321,7 @@ function DialogComponent({
|
|
|
61321
61321
|
rewind: ot ? null : _e
|
|
61322
61322
|
});
|
|
61323
61323
|
useEffect(() => Ge(), [Ge]);
|
|
61324
|
-
const
|
|
61324
|
+
const nt = document.querySelector(".screens--container");
|
|
61325
61325
|
if (fe)
|
|
61326
61326
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
61327
61327
|
ChangeCamera,
|
|
@@ -61334,7 +61334,7 @@ function DialogComponent({
|
|
|
61334
61334
|
`change-camera-${_}`
|
|
61335
61335
|
);
|
|
61336
61336
|
if (le) {
|
|
61337
|
-
const Ae = j.id ? t.filter((it) => it.decision).findIndex((it) => it.id === j.id) + 1 : t.filter((it) => it.decision).findIndex((it) => it === j) + 1,
|
|
61337
|
+
const Ae = j.id ? t.filter((it) => it.decision).findIndex((it) => it.id === j.id) + 1 : t.filter((it) => it.decision).findIndex((it) => it === j) + 1, lt = {
|
|
61338
61338
|
...j.payload,
|
|
61339
61339
|
decisionNumber: Ae,
|
|
61340
61340
|
inheritProps: {
|
|
@@ -61360,7 +61360,7 @@ function DialogComponent({
|
|
|
61360
61360
|
onUnMount: () => {
|
|
61361
61361
|
te.current = !1, Nt(!1);
|
|
61362
61362
|
},
|
|
61363
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(DecisionComponent, { inScene: !0, ...
|
|
61363
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(DecisionComponent, { inScene: !0, ...lt })
|
|
61364
61364
|
}
|
|
61365
61365
|
);
|
|
61366
61366
|
}
|
|
@@ -61371,7 +61371,7 @@ function DialogComponent({
|
|
|
61371
61371
|
{
|
|
61372
61372
|
wrapperClass: "htmlpro-wrap-100-h",
|
|
61373
61373
|
style: { width: "100%", height: "100%", position: "static" },
|
|
61374
|
-
portal:
|
|
61374
|
+
portal: nt ? { current: nt } : void 0,
|
|
61375
61375
|
zIndexRange: [6, 6],
|
|
61376
61376
|
onOcclude: () => {
|
|
61377
61377
|
},
|
|
@@ -61813,8 +61813,8 @@ function MatchPuzzleComponent({
|
|
|
61813
61813
|
w(null);
|
|
61814
61814
|
return;
|
|
61815
61815
|
}
|
|
61816
|
-
const qe = Qe(ke.id),
|
|
61817
|
-
if (qe && at || ze &&
|
|
61816
|
+
const qe = Qe(ke.id), ct = Qe(y), ze = bt(ke.id), at = bt(y);
|
|
61817
|
+
if (qe && at || ze && ct) {
|
|
61818
61818
|
K(ke);
|
|
61819
61819
|
return;
|
|
61820
61820
|
}
|
|
@@ -61822,8 +61822,8 @@ function MatchPuzzleComponent({
|
|
|
61822
61822
|
}, se = (ke) => {
|
|
61823
61823
|
let Qe;
|
|
61824
61824
|
return ke.startsWith("destination-item") ? Qe = { [y]: ke } : Qe = { [ke]: y }, x.some((bt) => {
|
|
61825
|
-
const qe = JSON.stringify(bt),
|
|
61826
|
-
return qe ===
|
|
61825
|
+
const qe = JSON.stringify(bt), ct = JSON.stringify(Qe);
|
|
61826
|
+
return qe === ct;
|
|
61827
61827
|
});
|
|
61828
61828
|
}, Z = (ke, Qe) => {
|
|
61829
61829
|
const bt = new Map(ke.map((qe) => [qe.id, { ...qe }]));
|
|
@@ -61833,10 +61833,10 @@ function MatchPuzzleComponent({
|
|
|
61833
61833
|
}, K = (ke) => {
|
|
61834
61834
|
var Qe, bt;
|
|
61835
61835
|
if (X("click-ui"), se(ke.id)) {
|
|
61836
|
-
const qe = ke.id.startsWith("source-item") ? ke.id : y,
|
|
61836
|
+
const qe = ke.id.startsWith("source-item") ? ke.id : y, ct = ke.id.startsWith("destination-item") ? ke.id : y, ze = [...b, { [qe]: ct }];
|
|
61837
61837
|
if (R(ze), s.specificCorrectFeedbacks) {
|
|
61838
61838
|
const at = s == null ? void 0 : s.correctFeedbacks.find(
|
|
61839
|
-
(Ne) => Ne.id === `${qe}-${
|
|
61839
|
+
(Ne) => Ne.id === `${qe}-${ct}`
|
|
61840
61840
|
), ft = Z(B, at.rewards);
|
|
61841
61841
|
z([...ft]), te(ze) && (Ze(), j(!0)), at.desc && (F(at == null ? void 0 : at.desc), P(!0), D(!0), Ze());
|
|
61842
61842
|
const $e = te(ze);
|
|
@@ -61852,8 +61852,8 @@ function MatchPuzzleComponent({
|
|
|
61852
61852
|
} else if (document.querySelector(`#${ke.id}`).classList.add("match-button--error"), document.querySelector(`#${y}`).classList.add("match-button--error"), setTimeout(() => {
|
|
61853
61853
|
document.querySelector(`#${ke.id}`).classList.remove("match-button--error"), document.querySelector(`#${y}`).classList.remove("match-button--error"), w(null);
|
|
61854
61854
|
}, 1e3), s.specificWrongFeedbacks) {
|
|
61855
|
-
const qe = ke.id.startsWith("destination-item") ? ke.id : y,
|
|
61856
|
-
z([...ze]),
|
|
61855
|
+
const qe = ke.id.startsWith("destination-item") ? ke.id : y, ct = s == null ? void 0 : s.wrongFeedbacks.find((at) => at.id === qe), ze = Z(B, ct.rewards);
|
|
61856
|
+
z([...ze]), ct != null && ct.desc && (F(ct.desc), P(!1), D(!0), Ze());
|
|
61857
61857
|
} else {
|
|
61858
61858
|
const qe = Z(B, t.solution.wrong.rewards);
|
|
61859
61859
|
z([...qe]), (bt = (Qe = t.solution) == null ? void 0 : Qe.wrong) != null && bt.desc && (F(t.solution.wrong.desc), D(!0), Ze());
|
|
@@ -61901,17 +61901,17 @@ function MatchPuzzleComponent({
|
|
|
61901
61901
|
o
|
|
61902
61902
|
]);
|
|
61903
61903
|
const W = (ke, Qe) => b.findIndex((bt) => {
|
|
61904
|
-
const qe = Object.keys(bt)[0],
|
|
61905
|
-
return qe === ke &&
|
|
61904
|
+
const qe = Object.keys(bt)[0], ct = Object.values(bt)[0];
|
|
61905
|
+
return qe === ke && ct === Qe;
|
|
61906
61906
|
}), [V, G] = useState(!0), [Y, ie] = useState("storylines.misc.start"), [le, fe] = useState(!1), ce = () => {
|
|
61907
61907
|
ie("storylines.misc.retry"), G(!1), fe(!1), xt();
|
|
61908
|
-
}, [ge, Se] = useState(!1), [Re, Fe] = useState(!1), [De, Je] = useState(!1),
|
|
61908
|
+
}, [ge, Se] = useState(!1), [Re, Fe] = useState(!1), [De, Je] = useState(!1), ut = () => {
|
|
61909
61909
|
let ke = Z(B, t.timerFeedback.rewards);
|
|
61910
61910
|
if (s.specificCorrectFeedbacks) {
|
|
61911
61911
|
const Qe = new Map(ke.map((bt) => [bt.id, { ...bt }]));
|
|
61912
61912
|
b.forEach((bt) => {
|
|
61913
|
-
const qe = Object.keys(bt)[0],
|
|
61914
|
-
(at) => at.id === `${qe}-${
|
|
61913
|
+
const qe = Object.keys(bt)[0], ct = bt[qe], ze = s.correctFeedbacks.find(
|
|
61914
|
+
(at) => at.id === `${qe}-${ct}`
|
|
61915
61915
|
);
|
|
61916
61916
|
ze != null && ze.rewards && ze.rewards.forEach((at) => {
|
|
61917
61917
|
if (Qe.has(at.id)) {
|
|
@@ -61929,12 +61929,12 @@ function MatchPuzzleComponent({
|
|
|
61929
61929
|
}, Ve = () => {
|
|
61930
61930
|
Se(!1), Fe(!1), Je(!0);
|
|
61931
61931
|
}, Me = useCallback(() => {
|
|
61932
|
-
const ke = document.querySelector('button[id^="source-item"]'), Qe = document.querySelector('button[id^="destination-item"]'), bt = ke.getBoundingClientRect().right,
|
|
61932
|
+
const ke = document.querySelector('button[id^="source-item"]'), Qe = document.querySelector('button[id^="destination-item"]'), bt = ke.getBoundingClientRect().right, ct = Qe.getBoundingClientRect().left + 6 - bt;
|
|
61933
61933
|
u.items.forEach((ze, at) => {
|
|
61934
61934
|
if (ze.matchDestinationId !== void 0 && ze.matchDestinationId !== null) {
|
|
61935
|
-
const ft = document.querySelector(`#${ze.id}`), $e = document.querySelector(`#${ze.matchDestinationId}`), Ne = ft.getBoundingClientRect().top, Te = $e.getBoundingClientRect().top, _e = Te > Ne, Oe = Math.abs(Te - Ne), Ke = Math.sqrt(
|
|
61935
|
+
const ft = document.querySelector(`#${ze.id}`), $e = document.querySelector(`#${ze.matchDestinationId}`), Ne = ft.getBoundingClientRect().top, Te = $e.getBoundingClientRect().top, _e = Te > Ne, Oe = Math.abs(Te - Ne), Ke = Math.sqrt(ct * ct + Oe * Oe), Ft = ft.querySelector(".match-line__hipotenuse");
|
|
61936
61936
|
Ft.style.setProperty("width", `${Ke}px`);
|
|
61937
|
-
const Nt = Math.atan(Oe /
|
|
61937
|
+
const Nt = Math.atan(Oe / ct), je = _e ? Nt * (180 / Math.PI) : -Nt * (180 / Math.PI);
|
|
61938
61938
|
Ft.style.setProperty("transform", `rotate(${je}deg)`);
|
|
61939
61939
|
}
|
|
61940
61940
|
});
|
|
@@ -61960,7 +61960,7 @@ function MatchPuzzleComponent({
|
|
|
61960
61960
|
isPaused: ge,
|
|
61961
61961
|
shouldStart: Re,
|
|
61962
61962
|
shouldReset: De,
|
|
61963
|
-
onTimeOver:
|
|
61963
|
+
onTimeOver: ut
|
|
61964
61964
|
}
|
|
61965
61965
|
)
|
|
61966
61966
|
] }),
|
|
@@ -62063,12 +62063,12 @@ function SortPuzzleComponent({
|
|
|
62063
62063
|
useEkho({
|
|
62064
62064
|
soundActions: e
|
|
62065
62065
|
});
|
|
62066
|
-
const j = (Ge,
|
|
62066
|
+
const j = (Ge, nt) => {
|
|
62067
62067
|
const Et = (it) => it.current.flatMap((ee) => {
|
|
62068
62068
|
const pe = ee.acceptedItems;
|
|
62069
62069
|
return pe || [];
|
|
62070
|
-
}).sort(), Ae = Et(Ge),
|
|
62071
|
-
return Ae.length !==
|
|
62070
|
+
}).sort(), Ae = Et(Ge), lt = Et(nt);
|
|
62071
|
+
return Ae.length !== lt.length ? !1 : Ae.join(",") === lt.join(",");
|
|
62072
62072
|
}, B = useRef(0), z = useRef([]), X = useRef([]);
|
|
62073
62073
|
useEffect(() => {
|
|
62074
62074
|
_ === "matchMode" && !B.current && h.forEach((Ge) => {
|
|
@@ -62082,40 +62082,40 @@ function SortPuzzleComponent({
|
|
|
62082
62082
|
});
|
|
62083
62083
|
}, [h, _]);
|
|
62084
62084
|
const re = useRef(null), se = useRef(null), [Z, K] = useState(), te = useCallback(() => {
|
|
62085
|
-
const Ge = re.current.clientHeight,
|
|
62086
|
-
K(Ge /
|
|
62085
|
+
const Ge = re.current.clientHeight, nt = se.current.clientHeight;
|
|
62086
|
+
K(Ge / nt), se.current.style.transform = `scale(${Ge / nt})`;
|
|
62087
62087
|
}, []);
|
|
62088
62088
|
useEffect(() => (te(), window.addEventListener("resize", te), () => {
|
|
62089
62089
|
window.removeEventListener("resize", te);
|
|
62090
62090
|
}), [te]);
|
|
62091
62091
|
const ue = useRef([]), me = useCallback(() => {
|
|
62092
62092
|
const Ge = document.querySelectorAll(".sort-destination-area");
|
|
62093
|
-
ue.current = [], Ge && Ge.forEach((
|
|
62093
|
+
ue.current = [], Ge && Ge.forEach((nt) => {
|
|
62094
62094
|
ue.current.push({
|
|
62095
|
-
id:
|
|
62096
|
-
top:
|
|
62097
|
-
left:
|
|
62098
|
-
right:
|
|
62099
|
-
bottom:
|
|
62095
|
+
id: nt.id,
|
|
62096
|
+
top: nt.getBoundingClientRect().top,
|
|
62097
|
+
left: nt.getBoundingClientRect().left,
|
|
62098
|
+
right: nt.getBoundingClientRect().right,
|
|
62099
|
+
bottom: nt.getBoundingClientRect().bottom
|
|
62100
62100
|
});
|
|
62101
62101
|
});
|
|
62102
62102
|
}, []);
|
|
62103
62103
|
useEffect(() => (me(), window.addEventListener("resize", me), () => {
|
|
62104
62104
|
window.removeEventListener("resize", me);
|
|
62105
62105
|
}), [me]);
|
|
62106
|
-
const J = (Ge,
|
|
62106
|
+
const J = (Ge, nt) => {
|
|
62107
62107
|
const Et = new Map(Ge.map((Ae) => [Ae.id, { ...Ae }]));
|
|
62108
|
-
return
|
|
62108
|
+
return nt.forEach((Ae) => {
|
|
62109
62109
|
Et.has(Ae.id) ? Et.get(Ae.id).points += Ae.points : Et.set(Ae.id, { ...Ae });
|
|
62110
62110
|
}), Array.from(Et.values());
|
|
62111
62111
|
}, H = (Ge) => {
|
|
62112
62112
|
M("score");
|
|
62113
|
-
const
|
|
62113
|
+
const nt = Ge ? [...Ge] : [...k];
|
|
62114
62114
|
l({
|
|
62115
62115
|
type: "addPoints",
|
|
62116
62116
|
complex: !0,
|
|
62117
62117
|
finish: !0,
|
|
62118
|
-
payload:
|
|
62118
|
+
payload: nt
|
|
62119
62119
|
}), l({ type: "passPuzzle" });
|
|
62120
62120
|
}, W = () => {
|
|
62121
62121
|
t.solution.right.desc && (Ke(), D(t.solution.right.desc));
|
|
@@ -62123,24 +62123,24 @@ function SortPuzzleComponent({
|
|
|
62123
62123
|
F([...Ge]), ie(null, !0), t.solution.right.desc === "" && setTimeout(() => {
|
|
62124
62124
|
Y(), H(Ge);
|
|
62125
62125
|
}, 3e3);
|
|
62126
|
-
}, V = (Ge,
|
|
62126
|
+
}, V = (Ge, nt) => {
|
|
62127
62127
|
const Et = s == null ? void 0 : s.correctFeedbacks.find(
|
|
62128
|
-
(
|
|
62128
|
+
(lt) => lt.id === Ge.id
|
|
62129
62129
|
), Ae = J(k, Et.rewards);
|
|
62130
|
-
F([...Ae]), Et.desc && ie(Et.desc, !0), !Et.desc &&
|
|
62130
|
+
F([...Ae]), Et.desc && ie(Et.desc, !0), !Et.desc && nt && (ie(null, !0), setTimeout(() => {
|
|
62131
62131
|
Y(), H(Ae);
|
|
62132
62132
|
}, 3e3));
|
|
62133
62133
|
}, G = () => {
|
|
62134
|
-
var
|
|
62134
|
+
var nt;
|
|
62135
62135
|
const Ge = J(k, t.solution.wrong.rewards);
|
|
62136
|
-
F([...Ge]), t.solution.wrong.desc && ie((
|
|
62136
|
+
F([...Ge]), t.solution.wrong.desc && ie((nt = t.solution.wrong) == null ? void 0 : nt.desc, !1);
|
|
62137
62137
|
}, Y = useCallback(() => {
|
|
62138
62138
|
D(""), w(!1), R(!1), l({ type: "hidePuzzleButtons", payload: !1 });
|
|
62139
|
-
}, [l]), ie = (Ge,
|
|
62140
|
-
Ge && D(Ge),
|
|
62141
|
-
}, le = (Ge,
|
|
62139
|
+
}, [l]), ie = (Ge, nt = !1) => {
|
|
62140
|
+
Ge && D(Ge), nt && w(!0), R(!0), l({ type: "hidePuzzleButtons", payload: !0 }), Ke();
|
|
62141
|
+
}, le = (Ge, nt) => {
|
|
62142
62142
|
setTimeout(() => {
|
|
62143
|
-
|
|
62143
|
+
nt.classList.remove("sort-draggable-item--error"), nt.classList.add("sort-draggable-item--resetting"), nt.style.setProperty("transform", Ge.transform), setTimeout(() => nt.classList.remove("sort-draggable-item--resetting"), 1e3);
|
|
62144
62144
|
}, 1e3);
|
|
62145
62145
|
}, fe = (Ge) => {
|
|
62146
62146
|
if (Ge === "none")
|
|
@@ -62158,26 +62158,26 @@ function SortPuzzleComponent({
|
|
|
62158
62158
|
// translateY
|
|
62159
62159
|
// The 'z' value (tz) would be values[14], but it is omitted for 2D translation.
|
|
62160
62160
|
} : { x: 0, y: 0 };
|
|
62161
|
-
}, ce = useRef(!1), [ge, Se] = useState(), [Re, Fe] = useState(), [De, Je] = useState(),
|
|
62162
|
-
ce.current =
|
|
62163
|
-
const Et = document.querySelector(`#${
|
|
62164
|
-
Et.classList.add("sort-draggable-item--dragging"), Je(fe(
|
|
62165
|
-
}, Ze = (Ge,
|
|
62166
|
-
const Et = document.querySelector(`#${
|
|
62161
|
+
}, ce = useRef(!1), [ge, Se] = useState(), [Re, Fe] = useState(), [De, Je] = useState(), ut = (Ge, nt) => {
|
|
62162
|
+
ce.current = nt, Se(Ge.nativeEvent.x || Ge.touches[0].pageX), Fe(Ge.nativeEvent.y || Ge.touches[0].pageY);
|
|
62163
|
+
const Et = document.querySelector(`#${nt}`), lt = window.getComputedStyle(Et).getPropertyValue("transform");
|
|
62164
|
+
Et.classList.add("sort-draggable-item--dragging"), Je(fe(lt));
|
|
62165
|
+
}, Ze = (Ge, nt) => {
|
|
62166
|
+
const Et = document.querySelector(`#${nt}`), Ae = Et.getBoundingClientRect().width, lt = Et.getBoundingClientRect().height, it = Et.offsetLeft, ve = Et.offsetTop, ee = Et.parentElement.getBoundingClientRect().width, pe = Et.parentElement.getBoundingClientRect().height, Ee = Et.parentElement.getBoundingClientRect().left, we = Et.parentElement.getBoundingClientRect().right, de = Et.parentElement.getBoundingClientRect().top, be = Et.parentElement.getBoundingClientRect().bottom;
|
|
62167
62167
|
if (ce && ge && Re && (Ge.nativeEvent.x || Ge.touches[0].pageX) > Ee && (Ge.nativeEvent.x || Ge.touches[0].pageX) < we) {
|
|
62168
|
-
const Be = (Ge.nativeEvent.x || Ge.touches[0].pageX) - ge,
|
|
62169
|
-
Et.style.transform = `translate(${De.x + Be / Z}px, ${De.y +
|
|
62170
|
-
}
|
|
62171
|
-
}, xt = (Ge,
|
|
62172
|
-
const Ae = document.querySelector(`#${Ge}`).getBoundingClientRect(),
|
|
62173
|
-
return
|
|
62174
|
-
}, Ve = (Ge,
|
|
62175
|
-
if (ce.current ===
|
|
62168
|
+
const Be = (Ge.nativeEvent.x || Ge.touches[0].pageX) - ge, et = (Ge.nativeEvent.y || Ge.touches[0].pageY) - Re;
|
|
62169
|
+
Et.style.transform = `translate(${De.x + Be / Z}px, ${De.y + et / Z}px)`, Et.getBoundingClientRect().left >= Ee && Et.getBoundingClientRect().right <= we && Et.getBoundingClientRect().top >= de && Et.getBoundingClientRect().bottom <= be && (Et.style.transform = `translate(${De.x + Be / Z}px, ${De.y + et / Z}px)`), Et.getBoundingClientRect().left <= Ee && (Et.style.transform = `translate(${-it}px, ${De.y + et / Z}px)`), Et.getBoundingClientRect().right >= we && (Et.style.transform = `translate(${(ee - Ae) / Z - it}px, ${De.y + et / Z}px)`), Et.getBoundingClientRect().top <= de && (Et.style.transform = `translate(${De.x + Be / Z}px, ${-ve}px)`), Et.getBoundingClientRect().bottom >= be && (Et.style.transform = `translate(${De.x + Be / Z}px, ${(pe - lt) / Z - ve}px)`);
|
|
62170
|
+
}
|
|
62171
|
+
}, xt = (Ge, nt) => {
|
|
62172
|
+
const Ae = document.querySelector(`#${Ge}`).getBoundingClientRect(), lt = ue.current.find((ve) => ve.id === nt && !(Ae.left >= ve.right || Ae.right <= ve.left || Ae.top >= ve.bottom || Ae.bottom <= ve.top)), it = ue.current.find((ve) => ve.id !== nt && !(Ae.left >= ve.right || Ae.right <= ve.left || Ae.top >= ve.bottom || Ae.bottom <= ve.top));
|
|
62173
|
+
return lt ? "correctArea" : it ? "incorrectArea" : "neutral";
|
|
62174
|
+
}, Ve = (Ge, nt) => {
|
|
62175
|
+
if (ce.current === nt) {
|
|
62176
62176
|
M("click-ui");
|
|
62177
|
-
const Et = document.querySelector(`#${
|
|
62177
|
+
const Et = document.querySelector(`#${nt}`), Ae = f.find((lt) => nt === lt.id);
|
|
62178
62178
|
if (Et.classList.remove("sort-draggable-item--dragging"), ce.current = null, Se(null), Fe(null), Je(null), _ !== "resolveMode") {
|
|
62179
|
-
const
|
|
62180
|
-
if (
|
|
62179
|
+
const lt = xt(nt, Ae.destination.id);
|
|
62180
|
+
if (lt === "correctArea") {
|
|
62181
62181
|
if (_ === "anyItemResolver" && (M("score"), Ke(), Et.classList.add("sort-draggable-item--success"), s.specificCorrectFeedbacks ? (P(!0), V(Ae, !0)) : W()), _ === "matchMode")
|
|
62182
62182
|
if (M("score"), Et.classList.add("sort-draggable-item--success"), X.current.find(
|
|
62183
62183
|
(ve) => ve.id === Ae.destination.id
|
|
@@ -62187,7 +62187,7 @@ function SortPuzzleComponent({
|
|
|
62187
62187
|
} else
|
|
62188
62188
|
j(X, z) && W();
|
|
62189
62189
|
return;
|
|
62190
|
-
} else if (
|
|
62190
|
+
} else if (lt === "incorrectArea") {
|
|
62191
62191
|
if (_ === "anyItemResolver" || _ === "matchMode") {
|
|
62192
62192
|
if (M("fail"), Et.classList.add("sort-draggable-item--error"), s.specificWrongFeedbacks) {
|
|
62193
62193
|
const it = s == null ? void 0 : s.wrongFeedbacks.find(
|
|
@@ -62204,25 +62204,25 @@ function SortPuzzleComponent({
|
|
|
62204
62204
|
}
|
|
62205
62205
|
}, Me = () => {
|
|
62206
62206
|
let Ge = !1;
|
|
62207
|
-
Ke(), f.forEach((
|
|
62208
|
-
const
|
|
62209
|
-
xt(
|
|
62207
|
+
Ke(), f.filter((Et) => Et.destination.id).forEach((Et) => {
|
|
62208
|
+
const Ae = document.querySelector(`#${Et.id}`);
|
|
62209
|
+
xt(Et.id, Et.destination.id) !== "correctArea" ? (Ge = !0, Ae.classList.add("sort-draggable-item--error"), le(Et, Ae)) : Ae.classList.add("sort-draggable-item--success");
|
|
62210
62210
|
}), Ge ? (M("fail"), G()) : (M("score"), W());
|
|
62211
62211
|
}, Le = () => {
|
|
62212
62212
|
f.forEach((Ge) => {
|
|
62213
|
-
const
|
|
62214
|
-
|
|
62213
|
+
const nt = document.querySelector(`#${Ge.id}`);
|
|
62214
|
+
nt.classList.remove("sort-draggable-item--error"), nt.classList.remove("sort-draggable-item--success"), nt.classList.add("sort-draggable-item--resetting"), nt.style.setProperty("transform", Ge.transform), setTimeout(() => nt.classList.remove("sort-draggable-item--resetting"), 1e3);
|
|
62215
62215
|
});
|
|
62216
62216
|
}, Ye = () => {
|
|
62217
|
-
Y(),
|
|
62218
|
-
}, [ke, Qe] = useState(!0), [bt, qe] = useState("storylines.misc.start"), [
|
|
62217
|
+
Y(), ct && (Nt(), Le(), Qe(!0)), !ct && !N && Ft(), N && H();
|
|
62218
|
+
}, [ke, Qe] = useState(!0), [bt, qe] = useState("storylines.misc.start"), [ct, ze] = useState(!1), [at, ft] = useState(!1), [$e, Ne] = useState(!1), [Te, _e] = useState(!1), Oe = () => {
|
|
62219
62219
|
let Ge = J(k, t.timerFeedback.rewards);
|
|
62220
62220
|
if (s.specificCorrectFeedbacks) {
|
|
62221
|
-
const
|
|
62222
|
-
Ge = Array.from(
|
|
62221
|
+
const nt = new Map(Ge.map((Et) => [Et.id, { ...Et }]));
|
|
62222
|
+
Ge = Array.from(nt.values());
|
|
62223
62223
|
}
|
|
62224
|
-
_ === "matchMode" && X.current.forEach((
|
|
62225
|
-
|
|
62224
|
+
_ === "matchMode" && X.current.forEach((nt) => {
|
|
62225
|
+
nt.acceptedItems = [];
|
|
62226
62226
|
}), F(Ge), ze(!0), ie(t.timerFeedback.desc, !1);
|
|
62227
62227
|
}, Ke = () => {
|
|
62228
62228
|
ft(!0), Ne(!1), _e(!1);
|
|
@@ -62294,13 +62294,13 @@ function SortPuzzleComponent({
|
|
|
62294
62294
|
{
|
|
62295
62295
|
id: `${Ge.id}`,
|
|
62296
62296
|
className: "sort-draggable-item",
|
|
62297
|
-
onMouseDown: (
|
|
62298
|
-
onTouchStart: (
|
|
62299
|
-
onMouseMove: (
|
|
62300
|
-
onTouchMove: (
|
|
62301
|
-
onMouseUp: (
|
|
62302
|
-
onMouseLeave: (
|
|
62303
|
-
onTouchEnd: (
|
|
62297
|
+
onMouseDown: (nt) => ut(nt, Ge.id),
|
|
62298
|
+
onTouchStart: (nt) => ut(nt, Ge.id),
|
|
62299
|
+
onMouseMove: (nt) => Ze(nt, Ge.id),
|
|
62300
|
+
onTouchMove: (nt) => Ze(nt, Ge.id),
|
|
62301
|
+
onMouseUp: (nt) => Ve(nt, Ge.id),
|
|
62302
|
+
onMouseLeave: (nt) => Ve(nt, Ge.id),
|
|
62303
|
+
onTouchEnd: (nt) => Ve(nt, Ge.id),
|
|
62304
62304
|
style: {
|
|
62305
62305
|
"--height": `${Ge.heightInPercentage}%`,
|
|
62306
62306
|
"--width": `${Ge.widthInPercentage}%`,
|
|
@@ -62323,7 +62323,7 @@ function SortPuzzleComponent({
|
|
|
62323
62323
|
Me();
|
|
62324
62324
|
},
|
|
62325
62325
|
className: "gat--btn gat--btn__primary sort-resolve-button",
|
|
62326
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "
|
|
62326
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: g("storylines.misc.check") })
|
|
62327
62327
|
}
|
|
62328
62328
|
),
|
|
62329
62329
|
T > 0 && ke && /* @__PURE__ */ jsxRuntimeExports.jsx(CountDownDialog, { buttonLabel: bt, translate: g, onClose: je }),
|
|
@@ -62334,7 +62334,7 @@ function SortPuzzleComponent({
|
|
|
62334
62334
|
text: C,
|
|
62335
62335
|
hasTimeout: !C,
|
|
62336
62336
|
translate: g,
|
|
62337
|
-
timeExpired:
|
|
62337
|
+
timeExpired: ct,
|
|
62338
62338
|
functionOnClose: Ye,
|
|
62339
62339
|
keyboardControl: S
|
|
62340
62340
|
}
|