@pksep/yui 0.1.217 → 0.1.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sep-yui.es.ts +508 -508
- package/dist/sep-yui.umd.ts +16 -16
- package/package.json +1 -1
package/dist/sep-yui.es.ts
CHANGED
|
@@ -2370,19 +2370,19 @@ function Ik(C, g, I, e = {}) {
|
|
|
2370
2370
|
shallow: o,
|
|
2371
2371
|
window: a = gC,
|
|
2372
2372
|
eventFilter: r,
|
|
2373
|
-
onError: u = (
|
|
2374
|
-
console.error(
|
|
2373
|
+
onError: u = (D) => {
|
|
2374
|
+
console.error(D);
|
|
2375
2375
|
},
|
|
2376
2376
|
initOnMounted: m
|
|
2377
2377
|
} = e, b = (o ? BI : X)(typeof g == "function" ? g() : g);
|
|
2378
2378
|
if (!I)
|
|
2379
2379
|
try {
|
|
2380
2380
|
I = gk("getDefaultStorage", () => {
|
|
2381
|
-
var
|
|
2382
|
-
return (
|
|
2381
|
+
var D;
|
|
2382
|
+
return (D = gC) == null ? void 0 : D.localStorage;
|
|
2383
2383
|
})();
|
|
2384
|
-
} catch (
|
|
2385
|
-
u(
|
|
2384
|
+
} catch (D) {
|
|
2385
|
+
u(D);
|
|
2386
2386
|
}
|
|
2387
2387
|
if (!I)
|
|
2388
2388
|
return b;
|
|
@@ -2394,12 +2394,12 @@ function Ik(C, g, I, e = {}) {
|
|
|
2394
2394
|
a && n && Ql(() => {
|
|
2395
2395
|
I instanceof Storage ? _g(a, "storage", S) : _g(a, Yf, J), m && S();
|
|
2396
2396
|
}), m || S();
|
|
2397
|
-
function y(
|
|
2397
|
+
function y(D, f) {
|
|
2398
2398
|
if (a) {
|
|
2399
2399
|
const z = {
|
|
2400
2400
|
key: C,
|
|
2401
|
-
oldValue:
|
|
2402
|
-
newValue:
|
|
2401
|
+
oldValue: D,
|
|
2402
|
+
newValue: f,
|
|
2403
2403
|
storageArea: I
|
|
2404
2404
|
};
|
|
2405
2405
|
a.dispatchEvent(I instanceof Storage ? new StorageEvent("storage", z) : new CustomEvent(Yf, {
|
|
@@ -2407,48 +2407,48 @@ function Ik(C, g, I, e = {}) {
|
|
|
2407
2407
|
}));
|
|
2408
2408
|
}
|
|
2409
2409
|
}
|
|
2410
|
-
function M(
|
|
2410
|
+
function M(D) {
|
|
2411
2411
|
try {
|
|
2412
|
-
const
|
|
2413
|
-
if (
|
|
2414
|
-
y(
|
|
2412
|
+
const f = I.getItem(C);
|
|
2413
|
+
if (D == null)
|
|
2414
|
+
y(f, null), I.removeItem(C);
|
|
2415
2415
|
else {
|
|
2416
|
-
const z = W.write(
|
|
2417
|
-
|
|
2416
|
+
const z = W.write(D);
|
|
2417
|
+
f !== z && (I.setItem(C, z), y(f, z));
|
|
2418
2418
|
}
|
|
2419
|
-
} catch (
|
|
2420
|
-
u(
|
|
2419
|
+
} catch (f) {
|
|
2420
|
+
u(f);
|
|
2421
2421
|
}
|
|
2422
2422
|
}
|
|
2423
|
-
function N(
|
|
2424
|
-
const
|
|
2425
|
-
if (
|
|
2423
|
+
function N(D) {
|
|
2424
|
+
const f = D ? D.newValue : I.getItem(C);
|
|
2425
|
+
if (f == null)
|
|
2426
2426
|
return s && G != null && I.setItem(C, W.write(G)), G;
|
|
2427
|
-
if (!
|
|
2428
|
-
const z = W.read(
|
|
2427
|
+
if (!D && l) {
|
|
2428
|
+
const z = W.read(f);
|
|
2429
2429
|
return typeof l == "function" ? l(z, G) : Z === "object" && !Array.isArray(z) ? { ...G, ...z } : z;
|
|
2430
|
-
} else return typeof
|
|
2430
|
+
} else return typeof f != "string" ? f : W.read(f);
|
|
2431
2431
|
}
|
|
2432
|
-
function S(
|
|
2433
|
-
if (!(
|
|
2434
|
-
if (
|
|
2432
|
+
function S(D) {
|
|
2433
|
+
if (!(D && D.storageArea !== I)) {
|
|
2434
|
+
if (D && D.key == null) {
|
|
2435
2435
|
b.value = G;
|
|
2436
2436
|
return;
|
|
2437
2437
|
}
|
|
2438
|
-
if (!(
|
|
2438
|
+
if (!(D && D.key !== C)) {
|
|
2439
2439
|
B();
|
|
2440
2440
|
try {
|
|
2441
|
-
(
|
|
2442
|
-
} catch (
|
|
2443
|
-
u(
|
|
2441
|
+
(D == null ? void 0 : D.newValue) !== W.write(b.value) && (b.value = N(D));
|
|
2442
|
+
} catch (f) {
|
|
2443
|
+
u(f);
|
|
2444
2444
|
} finally {
|
|
2445
|
-
|
|
2445
|
+
D ? YI(p) : p();
|
|
2446
2446
|
}
|
|
2447
2447
|
}
|
|
2448
2448
|
}
|
|
2449
2449
|
}
|
|
2450
|
-
function J(
|
|
2451
|
-
S(
|
|
2450
|
+
function J(D) {
|
|
2451
|
+
S(D.detail);
|
|
2452
2452
|
}
|
|
2453
2453
|
return b;
|
|
2454
2454
|
}
|
|
@@ -2477,23 +2477,23 @@ function b_(C = {}) {
|
|
|
2477
2477
|
if (!N)
|
|
2478
2478
|
return;
|
|
2479
2479
|
const S = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
|
|
2480
|
-
let
|
|
2480
|
+
let D = null;
|
|
2481
2481
|
if (y === "class") {
|
|
2482
2482
|
const z = M.split(/\s/g);
|
|
2483
2483
|
Object.values(a).flatMap((Q) => (Q || "").split(/\s/g)).filter(Boolean).forEach((Q) => {
|
|
2484
2484
|
z.includes(Q) ? S.add(Q) : J.add(Q);
|
|
2485
2485
|
});
|
|
2486
2486
|
} else
|
|
2487
|
-
|
|
2488
|
-
if (S.size === 0 && J.size === 0 &&
|
|
2487
|
+
D = { key: y, value: M };
|
|
2488
|
+
if (S.size === 0 && J.size === 0 && D === null)
|
|
2489
2489
|
return;
|
|
2490
|
-
let
|
|
2491
|
-
o && (
|
|
2490
|
+
let f;
|
|
2491
|
+
o && (f = t.document.createElement("style"), f.appendChild(document.createTextNode(h_)), t.document.head.appendChild(f));
|
|
2492
2492
|
for (const z of S)
|
|
2493
2493
|
N.classList.add(z);
|
|
2494
2494
|
for (const z of J)
|
|
2495
2495
|
N.classList.remove(z);
|
|
2496
|
-
|
|
2496
|
+
D && N.setAttribute(D.key, D.value), o && (t.getComputedStyle(f).opacity, document.head.removeChild(f));
|
|
2497
2497
|
}
|
|
2498
2498
|
);
|
|
2499
2499
|
function Z(p) {
|
|
@@ -2657,18 +2657,18 @@ function y_(C, g = {}) {
|
|
|
2657
2657
|
var J;
|
|
2658
2658
|
if (!Hg(G).includes(S.button) || Hg(g.disabled) || !B(S) || Hg(n) && S.target !== Hg(C))
|
|
2659
2659
|
return;
|
|
2660
|
-
const
|
|
2661
|
-
x: S.clientX - (
|
|
2662
|
-
y: S.clientY - (
|
|
2660
|
+
const D = Hg(m), f = (J = D == null ? void 0 : D.getBoundingClientRect) == null ? void 0 : J.call(D), z = Hg(C).getBoundingClientRect(), Q = {
|
|
2661
|
+
x: S.clientX - (D ? z.left - f.left + D.scrollLeft : z.left),
|
|
2662
|
+
y: S.clientY - (D ? z.top - f.top + D.scrollTop : z.top)
|
|
2663
2663
|
};
|
|
2664
2664
|
(o == null ? void 0 : o(Q, S)) !== !1 && (W.value = Q, p(S));
|
|
2665
2665
|
}, M = (S) => {
|
|
2666
2666
|
if (Hg(g.disabled) || !B(S) || !W.value)
|
|
2667
2667
|
return;
|
|
2668
|
-
const J = Hg(m),
|
|
2669
|
-
let { x:
|
|
2670
|
-
(r === "x" || r === "both") && (
|
|
2671
|
-
x:
|
|
2668
|
+
const J = Hg(m), D = Hg(C).getBoundingClientRect();
|
|
2669
|
+
let { x: f, y: z } = Z.value;
|
|
2670
|
+
(r === "x" || r === "both") && (f = S.clientX - W.value.x, J && (f = Math.min(Math.max(0, f), J.scrollWidth - D.width))), (r === "y" || r === "both") && (z = S.clientY - W.value.y, J && (z = Math.min(Math.max(0, z), J.scrollHeight - D.height))), Z.value = {
|
|
2671
|
+
x: f,
|
|
2672
2672
|
y: z
|
|
2673
2673
|
}, s == null || s(Z.value, S), p(S);
|
|
2674
2674
|
}, N = (S) => {
|
|
@@ -3712,8 +3712,8 @@ function EV(C, g, I) {
|
|
|
3712
3712
|
if (o(), !(I != null && I.onMouseUp) || !M || !y || (W = I == null ? void 0 : I.modifiers) != null && W.self && Z.target !== i.value)
|
|
3713
3713
|
return;
|
|
3714
3714
|
(B = I == null ? void 0 : I.modifiers) != null && B.prevent && Z.preventDefault(), (p = I == null ? void 0 : I.modifiers) != null && p.stop && Z.stopPropagation();
|
|
3715
|
-
const S = Z.x - M.x, J = Z.y - M.y,
|
|
3716
|
-
I.onMouseUp(Z.timeStamp - y,
|
|
3715
|
+
const S = Z.x - M.x, J = Z.y - M.y, D = Math.sqrt(S * S + J * J);
|
|
3716
|
+
I.onMouseUp(Z.timeStamp - y, D, N);
|
|
3717
3717
|
}
|
|
3718
3718
|
function r(Z) {
|
|
3719
3719
|
var W, B, p, y;
|
|
@@ -3893,19 +3893,19 @@ function hq(C, g, I, e = {}) {
|
|
|
3893
3893
|
shallow: o,
|
|
3894
3894
|
window: a = yt,
|
|
3895
3895
|
eventFilter: r,
|
|
3896
|
-
onError: u = (
|
|
3897
|
-
console.error(
|
|
3896
|
+
onError: u = (D) => {
|
|
3897
|
+
console.error(D);
|
|
3898
3898
|
},
|
|
3899
3899
|
initOnMounted: m
|
|
3900
3900
|
} = e, b = (o ? BI : X)(typeof g == "function" ? g() : g);
|
|
3901
3901
|
if (!I)
|
|
3902
3902
|
try {
|
|
3903
3903
|
I = mk("getDefaultStorage", () => {
|
|
3904
|
-
var
|
|
3905
|
-
return (
|
|
3904
|
+
var D;
|
|
3905
|
+
return (D = yt) == null ? void 0 : D.localStorage;
|
|
3906
3906
|
})();
|
|
3907
|
-
} catch (
|
|
3908
|
-
u(
|
|
3907
|
+
} catch (D) {
|
|
3908
|
+
u(D);
|
|
3909
3909
|
}
|
|
3910
3910
|
if (!I)
|
|
3911
3911
|
return b;
|
|
@@ -3917,12 +3917,12 @@ function hq(C, g, I, e = {}) {
|
|
|
3917
3917
|
a && n && Ql(() => {
|
|
3918
3918
|
I instanceof Storage ? Et(a, "storage", S) : Et(a, Hf, J), m && S();
|
|
3919
3919
|
}), m || S();
|
|
3920
|
-
function y(
|
|
3920
|
+
function y(D, f) {
|
|
3921
3921
|
if (a) {
|
|
3922
3922
|
const z = {
|
|
3923
3923
|
key: C,
|
|
3924
|
-
oldValue:
|
|
3925
|
-
newValue:
|
|
3924
|
+
oldValue: D,
|
|
3925
|
+
newValue: f,
|
|
3926
3926
|
storageArea: I
|
|
3927
3927
|
};
|
|
3928
3928
|
a.dispatchEvent(I instanceof Storage ? new StorageEvent("storage", z) : new CustomEvent(Hf, {
|
|
@@ -3930,48 +3930,48 @@ function hq(C, g, I, e = {}) {
|
|
|
3930
3930
|
}));
|
|
3931
3931
|
}
|
|
3932
3932
|
}
|
|
3933
|
-
function M(
|
|
3933
|
+
function M(D) {
|
|
3934
3934
|
try {
|
|
3935
|
-
const
|
|
3936
|
-
if (
|
|
3937
|
-
y(
|
|
3935
|
+
const f = I.getItem(C);
|
|
3936
|
+
if (D == null)
|
|
3937
|
+
y(f, null), I.removeItem(C);
|
|
3938
3938
|
else {
|
|
3939
|
-
const z = W.write(
|
|
3940
|
-
|
|
3939
|
+
const z = W.write(D);
|
|
3940
|
+
f !== z && (I.setItem(C, z), y(f, z));
|
|
3941
3941
|
}
|
|
3942
|
-
} catch (
|
|
3943
|
-
u(
|
|
3942
|
+
} catch (f) {
|
|
3943
|
+
u(f);
|
|
3944
3944
|
}
|
|
3945
3945
|
}
|
|
3946
|
-
function N(
|
|
3947
|
-
const
|
|
3948
|
-
if (
|
|
3946
|
+
function N(D) {
|
|
3947
|
+
const f = D ? D.newValue : I.getItem(C);
|
|
3948
|
+
if (f == null)
|
|
3949
3949
|
return s && G != null && I.setItem(C, W.write(G)), G;
|
|
3950
|
-
if (!
|
|
3951
|
-
const z = W.read(
|
|
3950
|
+
if (!D && l) {
|
|
3951
|
+
const z = W.read(f);
|
|
3952
3952
|
return typeof l == "function" ? l(z, G) : Z === "object" && !Array.isArray(z) ? { ...G, ...z } : z;
|
|
3953
|
-
} else return typeof
|
|
3953
|
+
} else return typeof f != "string" ? f : W.read(f);
|
|
3954
3954
|
}
|
|
3955
|
-
function S(
|
|
3956
|
-
if (!(
|
|
3957
|
-
if (
|
|
3955
|
+
function S(D) {
|
|
3956
|
+
if (!(D && D.storageArea !== I)) {
|
|
3957
|
+
if (D && D.key == null) {
|
|
3958
3958
|
b.value = G;
|
|
3959
3959
|
return;
|
|
3960
3960
|
}
|
|
3961
|
-
if (!(
|
|
3961
|
+
if (!(D && D.key !== C)) {
|
|
3962
3962
|
B();
|
|
3963
3963
|
try {
|
|
3964
|
-
(
|
|
3965
|
-
} catch (
|
|
3966
|
-
u(
|
|
3964
|
+
(D == null ? void 0 : D.newValue) !== W.write(b.value) && (b.value = N(D));
|
|
3965
|
+
} catch (f) {
|
|
3966
|
+
u(f);
|
|
3967
3967
|
} finally {
|
|
3968
|
-
|
|
3968
|
+
D ? YI(p) : p();
|
|
3969
3969
|
}
|
|
3970
3970
|
}
|
|
3971
3971
|
}
|
|
3972
3972
|
}
|
|
3973
|
-
function J(
|
|
3974
|
-
S(
|
|
3973
|
+
function J(D) {
|
|
3974
|
+
S(D.detail);
|
|
3975
3975
|
}
|
|
3976
3976
|
return b;
|
|
3977
3977
|
}
|
|
@@ -4000,23 +4000,23 @@ function Zq(C = {}) {
|
|
|
4000
4000
|
if (!N)
|
|
4001
4001
|
return;
|
|
4002
4002
|
const S = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
|
|
4003
|
-
let
|
|
4003
|
+
let D = null;
|
|
4004
4004
|
if (y === "class") {
|
|
4005
4005
|
const z = M.split(/\s/g);
|
|
4006
4006
|
Object.values(a).flatMap((Q) => (Q || "").split(/\s/g)).filter(Boolean).forEach((Q) => {
|
|
4007
4007
|
z.includes(Q) ? S.add(Q) : J.add(Q);
|
|
4008
4008
|
});
|
|
4009
4009
|
} else
|
|
4010
|
-
|
|
4011
|
-
if (S.size === 0 && J.size === 0 &&
|
|
4010
|
+
D = { key: y, value: M };
|
|
4011
|
+
if (S.size === 0 && J.size === 0 && D === null)
|
|
4012
4012
|
return;
|
|
4013
|
-
let
|
|
4014
|
-
o && (
|
|
4013
|
+
let f;
|
|
4014
|
+
o && (f = t.document.createElement("style"), f.appendChild(document.createTextNode(bq)), t.document.head.appendChild(f));
|
|
4015
4015
|
for (const z of S)
|
|
4016
4016
|
N.classList.add(z);
|
|
4017
4017
|
for (const z of J)
|
|
4018
4018
|
N.classList.remove(z);
|
|
4019
|
-
|
|
4019
|
+
D && N.setAttribute(D.key, D.value), o && (t.getComputedStyle(f).opacity, document.head.removeChild(f));
|
|
4020
4020
|
}
|
|
4021
4021
|
);
|
|
4022
4022
|
function Z(p) {
|
|
@@ -4536,15 +4536,15 @@ function $V(C, g = {}) {
|
|
|
4536
4536
|
}
|
|
4537
4537
|
});
|
|
4538
4538
|
function b(N, S) {
|
|
4539
|
-
var J,
|
|
4539
|
+
var J, D, f, z;
|
|
4540
4540
|
if (!l)
|
|
4541
4541
|
return;
|
|
4542
4542
|
const Q = Hg(C);
|
|
4543
4543
|
if (!Q)
|
|
4544
4544
|
return;
|
|
4545
|
-
(
|
|
4545
|
+
(f = Q instanceof Document ? l.document.body : Q) == null || f.scrollTo({
|
|
4546
4546
|
top: (J = Hg(S)) != null ? J : m.value,
|
|
4547
|
-
left: (
|
|
4547
|
+
left: (D = Hg(N)) != null ? D : u.value,
|
|
4548
4548
|
behavior: Hg(s)
|
|
4549
4549
|
});
|
|
4550
4550
|
const tg = ((z = Q == null ? void 0 : Q.document) == null ? void 0 : z.documentElement) || (Q == null ? void 0 : Q.documentElement) || Q;
|
|
@@ -4566,14 +4566,14 @@ function $V(C, g = {}) {
|
|
|
4566
4566
|
var S;
|
|
4567
4567
|
if (!l)
|
|
4568
4568
|
return;
|
|
4569
|
-
const J = ((S = N == null ? void 0 : N.document) == null ? void 0 : S.documentElement) || (N == null ? void 0 : N.documentElement) || Re(N), { display:
|
|
4569
|
+
const J = ((S = N == null ? void 0 : N.document) == null ? void 0 : S.documentElement) || (N == null ? void 0 : N.documentElement) || Re(N), { display: D, flexDirection: f } = getComputedStyle(J), z = J.scrollLeft;
|
|
4570
4570
|
W.left = z < a.value, W.right = z > a.value;
|
|
4571
4571
|
const Q = Math.abs(z) <= (A.left || 0), tg = Math.abs(z) + J.clientWidth >= J.scrollWidth - (A.right || 0) - Df;
|
|
4572
|
-
|
|
4572
|
+
D === "flex" && f === "row-reverse" ? (Z.left = tg, Z.right = Q) : (Z.left = Q, Z.right = tg), a.value = z;
|
|
4573
4573
|
let ig = J.scrollTop;
|
|
4574
4574
|
N === l.document && !ig && (ig = l.document.body.scrollTop), W.top = ig < r.value, W.bottom = ig > r.value;
|
|
4575
4575
|
const P = Math.abs(ig) <= (A.top || 0), Ig = Math.abs(ig) + J.clientHeight >= J.scrollHeight - (A.bottom || 0) - Df;
|
|
4576
|
-
|
|
4576
|
+
D === "flex" && f === "column-reverse" ? (Z.top = Ig, Z.bottom = P) : (Z.top = P, Z.bottom = Ig), r.value = ig;
|
|
4577
4577
|
}, M = (N) => {
|
|
4578
4578
|
var S;
|
|
4579
4579
|
if (!l)
|
|
@@ -6461,7 +6461,7 @@ const N$ = (C) => ({
|
|
|
6461
6461
|
}, u = TM(t), m = LM(u), b = await A.getDimensions(l), G = u === "y", Z = G ? "top" : "left", W = G ? "bottom" : "right", B = G ? "clientHeight" : "clientWidth", p = i.reference[m] + i.reference[u] - r[u] - i.floating[m], y = r[u] - i.reference[u], M = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(l));
|
|
6462
6462
|
let N = M ? M[B] : 0;
|
|
6463
6463
|
(!N || !await (A.isElement == null ? void 0 : A.isElement(M))) && (N = n.floating[B] || i.floating[m]);
|
|
6464
|
-
const S = p / 2 - y / 2, J = N / 2 - b[m] / 2 - 1,
|
|
6464
|
+
const S = p / 2 - y / 2, J = N / 2 - b[m] / 2 - 1, D = Ra(a[Z], J), f = Ra(a[W], J), z = D, Q = N - b[m] - f, tg = N / 2 - b[m] / 2 + S, ig = IN(z, tg, Q), P = !s.arrow && uh(t) != null && tg !== ig && i.reference[m] / 2 - (tg < z ? D : f) - b[m] / 2 < 0, Ig = P ? tg < z ? tg - z : tg - Q : 0;
|
|
6465
6465
|
return {
|
|
6466
6466
|
[u]: r[u] + Ig,
|
|
6467
6467
|
data: {
|
|
@@ -6501,35 +6501,35 @@ const N$ = (C) => ({
|
|
|
6501
6501
|
const Z = Xa(t), W = Kl(n), B = Xa(n) === n, p = await (s.isRTL == null ? void 0 : s.isRTL(l.floating)), y = r || (B || !b ? [YB(n)] : w$(n)), M = m !== "none";
|
|
6502
6502
|
!r && M && y.push(...y$(n, b, m, p));
|
|
6503
6503
|
const N = [n, ...y], S = await jM(g, G), J = [];
|
|
6504
|
-
let
|
|
6504
|
+
let D = ((e = i.flip) == null ? void 0 : e.overflows) || [];
|
|
6505
6505
|
if (o && J.push(S[Z]), a) {
|
|
6506
6506
|
const tg = G$(t, A, p);
|
|
6507
6507
|
J.push(S[tg[0]], S[tg[1]]);
|
|
6508
6508
|
}
|
|
6509
|
-
if (
|
|
6509
|
+
if (D = [...D, {
|
|
6510
6510
|
placement: t,
|
|
6511
6511
|
overflows: J
|
|
6512
6512
|
}], !J.every((tg) => tg <= 0)) {
|
|
6513
|
-
var
|
|
6514
|
-
const tg = (((
|
|
6513
|
+
var f, z;
|
|
6514
|
+
const tg = (((f = i.flip) == null ? void 0 : f.index) || 0) + 1, ig = N[tg];
|
|
6515
6515
|
if (ig && (!(a === "alignment" && W !== Kl(ig)) || // We leave the current main axis only if every placement on that axis
|
|
6516
6516
|
// overflows the main axis.
|
|
6517
|
-
|
|
6517
|
+
D.every((Ig) => Ig.overflows[0] > 0 && Kl(Ig.placement) === W)))
|
|
6518
6518
|
return {
|
|
6519
6519
|
data: {
|
|
6520
6520
|
index: tg,
|
|
6521
|
-
overflows:
|
|
6521
|
+
overflows: D
|
|
6522
6522
|
},
|
|
6523
6523
|
reset: {
|
|
6524
6524
|
placement: ig
|
|
6525
6525
|
}
|
|
6526
6526
|
};
|
|
6527
|
-
let P = (z =
|
|
6527
|
+
let P = (z = D.filter((Ig) => Ig.overflows[0] <= 0).sort((Ig, bg) => Ig.overflows[1] - bg.overflows[1])[0]) == null ? void 0 : z.placement;
|
|
6528
6528
|
if (!P)
|
|
6529
6529
|
switch (u) {
|
|
6530
6530
|
case "bestFit": {
|
|
6531
6531
|
var Q;
|
|
6532
|
-
const Ig = (Q =
|
|
6532
|
+
const Ig = (Q = D.filter((bg) => {
|
|
6533
6533
|
if (M) {
|
|
6534
6534
|
const ng = Kl(bg.placement);
|
|
6535
6535
|
return ng === W || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -6685,8 +6685,8 @@ const H$ = function(C) {
|
|
|
6685
6685
|
const W = b - o.top - o.bottom, B = m - o.left - o.right, p = Ra(b - o[G], W), y = Ra(m - o[Z], B), M = !g.middlewareData.shift;
|
|
6686
6686
|
let N = p, S = y;
|
|
6687
6687
|
if ((I = g.middlewareData.shift) != null && I.enabled.x && (S = B), (e = g.middlewareData.shift) != null && e.enabled.y && (N = W), M && !r) {
|
|
6688
|
-
const
|
|
6689
|
-
u ? S = m - 2 * (
|
|
6688
|
+
const D = eA(o.left, 0), f = eA(o.right, 0), z = eA(o.top, 0), Q = eA(o.bottom, 0);
|
|
6689
|
+
u ? S = m - 2 * (D !== 0 || f !== 0 ? D + f : eA(o.left, o.right)) : N = b - 2 * (z !== 0 || Q !== 0 ? z + Q : eA(o.top, o.bottom));
|
|
6690
6690
|
}
|
|
6691
6691
|
await s({
|
|
6692
6692
|
...g,
|
|
@@ -45004,7 +45004,7 @@ const bjg = (C) => ({
|
|
|
45004
45004
|
}, u = cR(t), m = dR(u), b = await A.getDimensions(l), G = u === "y", Z = G ? "top" : "left", W = G ? "bottom" : "right", B = G ? "clientHeight" : "clientWidth", p = i.reference[m] + i.reference[u] - r[u] - i.floating[m], y = r[u] - i.reference[u], M = await (A.getOffsetParent == null ? void 0 : A.getOffsetParent(l));
|
|
45005
45005
|
let N = M ? M[B] : 0;
|
|
45006
45006
|
(!N || !await (A.isElement == null ? void 0 : A.isElement(M))) && (N = n.floating[B] || i.floating[m]);
|
|
45007
|
-
const S = p / 2 - y / 2, J = N / 2 - b[m] / 2 - 1,
|
|
45007
|
+
const S = p / 2 - y / 2, J = N / 2 - b[m] / 2 - 1, D = Vn(a[Z], J), f = Vn(a[W], J), z = D, Q = N - b[m] - f, tg = N / 2 - b[m] / 2 + S, ig = lN(z, tg, Q), P = !s.arrow && Wn(t) != null && tg !== ig && i.reference[m] / 2 - (tg < z ? D : f) - b[m] / 2 < 0, Ig = P ? tg < z ? tg - z : tg - Q : 0;
|
|
45008
45008
|
return {
|
|
45009
45009
|
[u]: r[u] + Ig,
|
|
45010
45010
|
data: {
|
|
@@ -45063,21 +45063,21 @@ const Gjg = function(C) {
|
|
|
45063
45063
|
placement: M
|
|
45064
45064
|
}
|
|
45065
45065
|
};
|
|
45066
|
-
const N = y.map((
|
|
45067
|
-
const
|
|
45068
|
-
return [
|
|
45066
|
+
const N = y.map((D) => {
|
|
45067
|
+
const f = Wn(D.placement);
|
|
45068
|
+
return [D.placement, f && o ? (
|
|
45069
45069
|
// Check along the mainAxis and main crossAxis side.
|
|
45070
|
-
|
|
45070
|
+
D.overflows.slice(0, 2).reduce((z, Q) => z + Q, 0)
|
|
45071
45071
|
) : (
|
|
45072
45072
|
// Check only the mainAxis.
|
|
45073
|
-
|
|
45074
|
-
),
|
|
45075
|
-
}).sort((
|
|
45073
|
+
D.overflows[0]
|
|
45074
|
+
), D.overflows];
|
|
45075
|
+
}).sort((D, f) => D[1] - f[1]), J = ((t = N.filter((D) => D[2].slice(
|
|
45076
45076
|
0,
|
|
45077
45077
|
// Aligned placements should not check their opposite crossAxis
|
|
45078
45078
|
// side.
|
|
45079
|
-
Wn(
|
|
45080
|
-
).every((
|
|
45079
|
+
Wn(D[0]) ? 2 : 3
|
|
45080
|
+
).every((f) => f <= 0))[0]) == null ? void 0 : t[0]) || N[0][0];
|
|
45081
45081
|
return J !== n ? {
|
|
45082
45082
|
data: {
|
|
45083
45083
|
index: Z + 1,
|
|
@@ -45116,35 +45116,35 @@ const Gjg = function(C) {
|
|
|
45116
45116
|
const Z = oA(t), W = Zn(n), B = oA(n) === n, p = await (s.isRTL == null ? void 0 : s.isRTL(l.floating)), y = r || (B || !b ? [DB(n)] : ajg(n)), M = m !== "none";
|
|
45117
45117
|
!r && M && y.push(...ujg(n, b, m, p));
|
|
45118
45118
|
const N = [n, ...y], S = await $c(g, G), J = [];
|
|
45119
|
-
let
|
|
45119
|
+
let D = ((e = i.flip) == null ? void 0 : e.overflows) || [];
|
|
45120
45120
|
if (o && J.push(S[Z]), a) {
|
|
45121
45121
|
const tg = Z3(t, A, p);
|
|
45122
45122
|
J.push(S[tg[0]], S[tg[1]]);
|
|
45123
45123
|
}
|
|
45124
|
-
if (
|
|
45124
|
+
if (D = [...D, {
|
|
45125
45125
|
placement: t,
|
|
45126
45126
|
overflows: J
|
|
45127
45127
|
}], !J.every((tg) => tg <= 0)) {
|
|
45128
|
-
var
|
|
45129
|
-
const tg = (((
|
|
45128
|
+
var f, z;
|
|
45129
|
+
const tg = (((f = i.flip) == null ? void 0 : f.index) || 0) + 1, ig = N[tg];
|
|
45130
45130
|
if (ig && (!(a === "alignment" ? W !== Zn(ig) : !1) || // We leave the current main axis only if every placement on that axis
|
|
45131
45131
|
// overflows the main axis.
|
|
45132
|
-
|
|
45132
|
+
D.every((bg) => Zn(bg.placement) === W ? bg.overflows[0] > 0 : !0)))
|
|
45133
45133
|
return {
|
|
45134
45134
|
data: {
|
|
45135
45135
|
index: tg,
|
|
45136
|
-
overflows:
|
|
45136
|
+
overflows: D
|
|
45137
45137
|
},
|
|
45138
45138
|
reset: {
|
|
45139
45139
|
placement: ig
|
|
45140
45140
|
}
|
|
45141
45141
|
};
|
|
45142
|
-
let P = (z =
|
|
45142
|
+
let P = (z = D.filter((Ig) => Ig.overflows[0] <= 0).sort((Ig, bg) => Ig.overflows[1] - bg.overflows[1])[0]) == null ? void 0 : z.placement;
|
|
45143
45143
|
if (!P)
|
|
45144
45144
|
switch (u) {
|
|
45145
45145
|
case "bestFit": {
|
|
45146
45146
|
var Q;
|
|
45147
|
-
const Ig = (Q =
|
|
45147
|
+
const Ig = (Q = D.filter((bg) => {
|
|
45148
45148
|
if (M) {
|
|
45149
45149
|
const ng = Zn(bg.placement);
|
|
45150
45150
|
return ng === W || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -45263,7 +45263,7 @@ const pjg = function(C) {
|
|
|
45263
45263
|
return a.find((G) => s > G.left - u.left && s < G.right + u.right && l > G.top - u.top && l < G.bottom + u.bottom) || r;
|
|
45264
45264
|
if (a.length >= 2) {
|
|
45265
45265
|
if (Zn(I) === "y") {
|
|
45266
|
-
const
|
|
45266
|
+
const D = a[0], f = a[a.length - 1], z = oA(I) === "top", Q = D.top, tg = f.bottom, ig = z ? D.left : f.left, P = z ? D.right : f.right, Ig = P - ig, bg = tg - Q;
|
|
45267
45267
|
return {
|
|
45268
45268
|
top: Q,
|
|
45269
45269
|
bottom: tg,
|
|
@@ -45275,7 +45275,7 @@ const pjg = function(C) {
|
|
|
45275
45275
|
y: Q
|
|
45276
45276
|
};
|
|
45277
45277
|
}
|
|
45278
|
-
const G = oA(I) === "left", Z = Bt(...a.map((
|
|
45278
|
+
const G = oA(I) === "left", Z = Bt(...a.map((D) => D.right)), W = Vn(...a.map((D) => D.left)), B = a.filter((D) => G ? D.left === W : D.right === Z), p = B[0].top, y = B[B.length - 1].bottom, M = W, N = Z, S = N - M, J = y - p;
|
|
45279
45279
|
return {
|
|
45280
45280
|
top: p,
|
|
45281
45281
|
bottom: y,
|
|
@@ -45475,8 +45475,8 @@ const Yjg = function(C) {
|
|
|
45475
45475
|
const W = b - o.top - o.bottom, B = m - o.left - o.right, p = Vn(b - o[G], W), y = Vn(m - o[Z], B), M = !g.middlewareData.shift;
|
|
45476
45476
|
let N = p, S = y;
|
|
45477
45477
|
if ((I = g.middlewareData.shift) != null && I.enabled.x && (S = B), (e = g.middlewareData.shift) != null && e.enabled.y && (N = W), M && !r) {
|
|
45478
|
-
const
|
|
45479
|
-
u ? S = m - 2 * (
|
|
45478
|
+
const D = Bt(o.left, 0), f = Bt(o.right, 0), z = Bt(o.top, 0), Q = Bt(o.bottom, 0);
|
|
45479
|
+
u ? S = m - 2 * (D !== 0 || f !== 0 ? D + f : Bt(o.left, o.right)) : N = b - 2 * (z !== 0 || Q !== 0 ? z + Q : Bt(o.top, o.bottom));
|
|
45480
45480
|
}
|
|
45481
45481
|
await s({
|
|
45482
45482
|
...g,
|
|
@@ -47783,8 +47783,8 @@ function F4g(C, g, I) {
|
|
|
47783
47783
|
if (o(), !(I != null && I.onMouseUp) || !M || !y || (W = I == null ? void 0 : I.modifiers) != null && W.self && Z.target !== i.value)
|
|
47784
47784
|
return;
|
|
47785
47785
|
(B = I == null ? void 0 : I.modifiers) != null && B.prevent && Z.preventDefault(), (p = I == null ? void 0 : I.modifiers) != null && p.stop && Z.stopPropagation();
|
|
47786
|
-
const S = Z.x - M.x, J = Z.y - M.y,
|
|
47787
|
-
I.onMouseUp(Z.timeStamp - y,
|
|
47786
|
+
const S = Z.x - M.x, J = Z.y - M.y, D = Math.sqrt(S * S + J * J);
|
|
47787
|
+
I.onMouseUp(Z.timeStamp - y, D, N);
|
|
47788
47788
|
}
|
|
47789
47789
|
function r(Z) {
|
|
47790
47790
|
var W, B, p, y;
|
|
@@ -48002,7 +48002,7 @@ function T4g(C, g, I) {
|
|
|
48002
48002
|
ig(), a(P);
|
|
48003
48003
|
}
|
|
48004
48004
|
else
|
|
48005
|
-
|
|
48005
|
+
f();
|
|
48006
48006
|
}, N = () => {
|
|
48007
48007
|
var P;
|
|
48008
48008
|
try {
|
|
@@ -48012,7 +48012,7 @@ function T4g(C, g, I) {
|
|
|
48012
48012
|
}
|
|
48013
48013
|
}, S = () => {
|
|
48014
48014
|
var P;
|
|
48015
|
-
u.value ||
|
|
48015
|
+
u.value || f();
|
|
48016
48016
|
try {
|
|
48017
48017
|
(P = u.value) == null || P.reverse(), tg();
|
|
48018
48018
|
} catch (Ig) {
|
|
@@ -48025,7 +48025,7 @@ function T4g(C, g, I) {
|
|
|
48025
48025
|
} catch (Ig) {
|
|
48026
48026
|
a(Ig);
|
|
48027
48027
|
}
|
|
48028
|
-
},
|
|
48028
|
+
}, D = () => {
|
|
48029
48029
|
var P;
|
|
48030
48030
|
try {
|
|
48031
48031
|
(P = u.value) == null || P.cancel(), ig();
|
|
@@ -48034,15 +48034,15 @@ function T4g(C, g, I) {
|
|
|
48034
48034
|
}
|
|
48035
48035
|
};
|
|
48036
48036
|
eg(() => HI(C), (P) => {
|
|
48037
|
-
P &&
|
|
48037
|
+
P && f();
|
|
48038
48038
|
}), eg(() => g, (P) => {
|
|
48039
|
-
u.value &&
|
|
48039
|
+
u.value && f(), !HI(C) && u.value && (u.value.effect = new KeyframeEffect(
|
|
48040
48040
|
HI(C),
|
|
48041
48041
|
q(P),
|
|
48042
48042
|
t
|
|
48043
48043
|
));
|
|
48044
|
-
}, { deep: !0 }), Qe(() =>
|
|
48045
|
-
function
|
|
48044
|
+
}, { deep: !0 }), Qe(() => f(!0), !1), KI(D);
|
|
48045
|
+
function f(P) {
|
|
48046
48046
|
const Ig = HI(C);
|
|
48047
48047
|
!r.value || !Ig || (u.value || (u.value = Ig.animate(q(g), t)), s && u.value.persist(), l !== 1 && (u.value.playbackRate = l), P && !A ? u.value.pause() : tg(), o == null || o(u.value));
|
|
48048
48048
|
}
|
|
@@ -48067,7 +48067,7 @@ function T4g(C, g, I) {
|
|
|
48067
48067
|
pause: N,
|
|
48068
48068
|
reverse: S,
|
|
48069
48069
|
finish: J,
|
|
48070
|
-
cancel:
|
|
48070
|
+
cancel: D,
|
|
48071
48071
|
// state
|
|
48072
48072
|
pending: b,
|
|
48073
48073
|
playState: G,
|
|
@@ -48667,19 +48667,19 @@ function f2(C, g, I, e = {}) {
|
|
|
48667
48667
|
shallow: o,
|
|
48668
48668
|
window: a = Ug,
|
|
48669
48669
|
eventFilter: r,
|
|
48670
|
-
onError: u = (
|
|
48671
|
-
console.error(
|
|
48670
|
+
onError: u = (D) => {
|
|
48671
|
+
console.error(D);
|
|
48672
48672
|
},
|
|
48673
48673
|
initOnMounted: m
|
|
48674
48674
|
} = e, b = (o ? BI : X)(typeof g == "function" ? g() : g);
|
|
48675
48675
|
if (!I)
|
|
48676
48676
|
try {
|
|
48677
48677
|
I = H2("getDefaultStorage", () => {
|
|
48678
|
-
var
|
|
48679
|
-
return (
|
|
48678
|
+
var D;
|
|
48679
|
+
return (D = Ug) == null ? void 0 : D.localStorage;
|
|
48680
48680
|
})();
|
|
48681
|
-
} catch (
|
|
48682
|
-
u(
|
|
48681
|
+
} catch (D) {
|
|
48682
|
+
u(D);
|
|
48683
48683
|
}
|
|
48684
48684
|
if (!I)
|
|
48685
48685
|
return b;
|
|
@@ -48691,12 +48691,12 @@ function f2(C, g, I, e = {}) {
|
|
|
48691
48691
|
a && n && Qe(() => {
|
|
48692
48692
|
I instanceof Storage ? og(a, "storage", S) : og(a, bN, J), m && S();
|
|
48693
48693
|
}), m || S();
|
|
48694
|
-
function y(
|
|
48694
|
+
function y(D, f) {
|
|
48695
48695
|
if (a) {
|
|
48696
48696
|
const z = {
|
|
48697
48697
|
key: C,
|
|
48698
|
-
oldValue:
|
|
48699
|
-
newValue:
|
|
48698
|
+
oldValue: D,
|
|
48699
|
+
newValue: f,
|
|
48700
48700
|
storageArea: I
|
|
48701
48701
|
};
|
|
48702
48702
|
a.dispatchEvent(I instanceof Storage ? new StorageEvent("storage", z) : new CustomEvent(bN, {
|
|
@@ -48704,48 +48704,48 @@ function f2(C, g, I, e = {}) {
|
|
|
48704
48704
|
}));
|
|
48705
48705
|
}
|
|
48706
48706
|
}
|
|
48707
|
-
function M(
|
|
48707
|
+
function M(D) {
|
|
48708
48708
|
try {
|
|
48709
|
-
const
|
|
48710
|
-
if (
|
|
48711
|
-
y(
|
|
48709
|
+
const f = I.getItem(C);
|
|
48710
|
+
if (D == null)
|
|
48711
|
+
y(f, null), I.removeItem(C);
|
|
48712
48712
|
else {
|
|
48713
|
-
const z = W.write(
|
|
48714
|
-
|
|
48713
|
+
const z = W.write(D);
|
|
48714
|
+
f !== z && (I.setItem(C, z), y(f, z));
|
|
48715
48715
|
}
|
|
48716
|
-
} catch (
|
|
48717
|
-
u(
|
|
48716
|
+
} catch (f) {
|
|
48717
|
+
u(f);
|
|
48718
48718
|
}
|
|
48719
48719
|
}
|
|
48720
|
-
function N(
|
|
48721
|
-
const
|
|
48722
|
-
if (
|
|
48720
|
+
function N(D) {
|
|
48721
|
+
const f = D ? D.newValue : I.getItem(C);
|
|
48722
|
+
if (f == null)
|
|
48723
48723
|
return s && G != null && I.setItem(C, W.write(G)), G;
|
|
48724
|
-
if (!
|
|
48725
|
-
const z = W.read(
|
|
48724
|
+
if (!D && l) {
|
|
48725
|
+
const z = W.read(f);
|
|
48726
48726
|
return typeof l == "function" ? l(z, G) : Z === "object" && !Array.isArray(z) ? { ...G, ...z } : z;
|
|
48727
|
-
} else return typeof
|
|
48727
|
+
} else return typeof f != "string" ? f : W.read(f);
|
|
48728
48728
|
}
|
|
48729
|
-
function S(
|
|
48730
|
-
if (!(
|
|
48731
|
-
if (
|
|
48729
|
+
function S(D) {
|
|
48730
|
+
if (!(D && D.storageArea !== I)) {
|
|
48731
|
+
if (D && D.key == null) {
|
|
48732
48732
|
b.value = G;
|
|
48733
48733
|
return;
|
|
48734
48734
|
}
|
|
48735
|
-
if (!(
|
|
48735
|
+
if (!(D && D.key !== C)) {
|
|
48736
48736
|
B();
|
|
48737
48737
|
try {
|
|
48738
|
-
(
|
|
48739
|
-
} catch (
|
|
48740
|
-
u(
|
|
48738
|
+
(D == null ? void 0 : D.newValue) !== W.write(b.value) && (b.value = N(D));
|
|
48739
|
+
} catch (f) {
|
|
48740
|
+
u(f);
|
|
48741
48741
|
} finally {
|
|
48742
|
-
|
|
48742
|
+
D ? YI(p) : p();
|
|
48743
48743
|
}
|
|
48744
48744
|
}
|
|
48745
48745
|
}
|
|
48746
48746
|
}
|
|
48747
|
-
function J(
|
|
48748
|
-
S(
|
|
48747
|
+
function J(D) {
|
|
48748
|
+
S(D.detail);
|
|
48749
48749
|
}
|
|
48750
48750
|
return b;
|
|
48751
48751
|
}
|
|
@@ -48777,23 +48777,23 @@ function iF(C = {}) {
|
|
|
48777
48777
|
if (!N)
|
|
48778
48778
|
return;
|
|
48779
48779
|
const S = /* @__PURE__ */ new Set(), J = /* @__PURE__ */ new Set();
|
|
48780
|
-
let
|
|
48780
|
+
let D = null;
|
|
48781
48781
|
if (y === "class") {
|
|
48782
48782
|
const z = M.split(/\s/g);
|
|
48783
48783
|
Object.values(a).flatMap((Q) => (Q || "").split(/\s/g)).filter(Boolean).forEach((Q) => {
|
|
48784
48784
|
z.includes(Q) ? S.add(Q) : J.add(Q);
|
|
48785
48785
|
});
|
|
48786
48786
|
} else
|
|
48787
|
-
|
|
48788
|
-
if (S.size === 0 && J.size === 0 &&
|
|
48787
|
+
D = { key: y, value: M };
|
|
48788
|
+
if (S.size === 0 && J.size === 0 && D === null)
|
|
48789
48789
|
return;
|
|
48790
|
-
let
|
|
48791
|
-
o && (
|
|
48790
|
+
let f;
|
|
48791
|
+
o && (f = t.document.createElement("style"), f.appendChild(document.createTextNode(uOg)), t.document.head.appendChild(f));
|
|
48792
48792
|
for (const z of S)
|
|
48793
48793
|
N.classList.add(z);
|
|
48794
48794
|
for (const z of J)
|
|
48795
48795
|
N.classList.remove(z);
|
|
48796
|
-
|
|
48796
|
+
D && N.setAttribute(D.key, D.value), o && (t.getComputedStyle(f).opacity, document.head.removeChild(f));
|
|
48797
48797
|
}
|
|
48798
48798
|
);
|
|
48799
48799
|
function Z(p) {
|
|
@@ -49199,18 +49199,18 @@ function VOg(C, g = {}) {
|
|
|
49199
49199
|
var J;
|
|
49200
49200
|
if (!q(G).includes(S.button) || q(g.disabled) || !B(S) || q(n) && S.target !== q(C))
|
|
49201
49201
|
return;
|
|
49202
|
-
const
|
|
49203
|
-
x: S.clientX - (
|
|
49204
|
-
y: S.clientY - (
|
|
49202
|
+
const D = q(m), f = (J = D == null ? void 0 : D.getBoundingClientRect) == null ? void 0 : J.call(D), z = q(C).getBoundingClientRect(), Q = {
|
|
49203
|
+
x: S.clientX - (D ? z.left - f.left + D.scrollLeft : z.left),
|
|
49204
|
+
y: S.clientY - (D ? z.top - f.top + D.scrollTop : z.top)
|
|
49205
49205
|
};
|
|
49206
49206
|
(o == null ? void 0 : o(Q, S)) !== !1 && (W.value = Q, p(S));
|
|
49207
49207
|
}, M = (S) => {
|
|
49208
49208
|
if (q(g.disabled) || !B(S) || !W.value)
|
|
49209
49209
|
return;
|
|
49210
|
-
const J = q(m),
|
|
49211
|
-
let { x:
|
|
49212
|
-
(r === "x" || r === "both") && (
|
|
49213
|
-
x:
|
|
49210
|
+
const J = q(m), D = q(C).getBoundingClientRect();
|
|
49211
|
+
let { x: f, y: z } = Z.value;
|
|
49212
|
+
(r === "x" || r === "both") && (f = S.clientX - W.value.x, J && (f = Math.min(Math.max(0, f), J.scrollWidth - D.width))), (r === "y" || r === "both") && (z = S.clientY - W.value.y, J && (z = Math.min(Math.max(0, z), J.scrollHeight - D.height))), Z.value = {
|
|
49213
|
+
x: f,
|
|
49214
49214
|
y: z
|
|
49215
49215
|
}, s == null || s(Z.value, S), p(S);
|
|
49216
49216
|
}, N = (S) => {
|
|
@@ -49666,7 +49666,7 @@ function rF(C, ...g) {
|
|
|
49666
49666
|
};
|
|
49667
49667
|
l && (M = Gh(N, l, { immediate: !1 }));
|
|
49668
49668
|
let J = 0;
|
|
49669
|
-
const
|
|
49669
|
+
const D = async (P = !1) => {
|
|
49670
49670
|
var Ig, bg;
|
|
49671
49671
|
N(), S(!0), W.value = null, G.value = null, b.value = !1, J += 1;
|
|
49672
49672
|
const ng = J, Bg = {
|
|
@@ -49720,13 +49720,13 @@ function rF(C, ...g) {
|
|
|
49720
49720
|
}).finally(() => {
|
|
49721
49721
|
ng === J && S(!1), M && M.stop(), r.trigger(null);
|
|
49722
49722
|
});
|
|
49723
|
-
},
|
|
49723
|
+
}, f = he(i.refetch);
|
|
49724
49724
|
eg(
|
|
49725
49725
|
[
|
|
49726
|
-
|
|
49726
|
+
f,
|
|
49727
49727
|
he(C)
|
|
49728
49728
|
],
|
|
49729
|
-
([P]) => P &&
|
|
49729
|
+
([P]) => P && D(),
|
|
49730
49730
|
{ deep: !0 }
|
|
49731
49731
|
);
|
|
49732
49732
|
const z = {
|
|
@@ -49739,7 +49739,7 @@ function rF(C, ...g) {
|
|
|
49739
49739
|
canAbort: p,
|
|
49740
49740
|
aborted: b,
|
|
49741
49741
|
abort: N,
|
|
49742
|
-
execute:
|
|
49742
|
+
execute: D,
|
|
49743
49743
|
onFetchResponse: o.on,
|
|
49744
49744
|
onFetchError: a.on,
|
|
49745
49745
|
onFetchFinally: r.on,
|
|
@@ -49763,10 +49763,10 @@ function rF(C, ...g) {
|
|
|
49763
49763
|
if (!m.value)
|
|
49764
49764
|
return A.method = P, A.payload = Ig, A.payloadType = bg, fC(A.payload) && eg(
|
|
49765
49765
|
[
|
|
49766
|
-
|
|
49766
|
+
f,
|
|
49767
49767
|
he(A.payload)
|
|
49768
49768
|
],
|
|
49769
|
-
([ng]) => ng &&
|
|
49769
|
+
([ng]) => ng && D(),
|
|
49770
49770
|
{ deep: !0 }
|
|
49771
49771
|
), {
|
|
49772
49772
|
...z,
|
|
@@ -49792,7 +49792,7 @@ function rF(C, ...g) {
|
|
|
49792
49792
|
};
|
|
49793
49793
|
};
|
|
49794
49794
|
}
|
|
49795
|
-
return i.immediate && Promise.resolve().then(() =>
|
|
49795
|
+
return i.immediate && Promise.resolve().then(() => D()), {
|
|
49796
49796
|
...z,
|
|
49797
49797
|
then(P, Ig) {
|
|
49798
49798
|
return tg().then(P, Ig);
|
|
@@ -50246,15 +50246,15 @@ function uF(C, g = {}) {
|
|
|
50246
50246
|
}
|
|
50247
50247
|
});
|
|
50248
50248
|
function b(N, S) {
|
|
50249
|
-
var J,
|
|
50249
|
+
var J, D, f, z;
|
|
50250
50250
|
if (!l)
|
|
50251
50251
|
return;
|
|
50252
50252
|
const Q = q(C);
|
|
50253
50253
|
if (!Q)
|
|
50254
50254
|
return;
|
|
50255
|
-
(
|
|
50255
|
+
(f = Q instanceof Document ? l.document.body : Q) == null || f.scrollTo({
|
|
50256
50256
|
top: (J = q(S)) != null ? J : m.value,
|
|
50257
|
-
left: (
|
|
50257
|
+
left: (D = q(N)) != null ? D : u.value,
|
|
50258
50258
|
behavior: q(s)
|
|
50259
50259
|
});
|
|
50260
50260
|
const tg = ((z = Q == null ? void 0 : Q.document) == null ? void 0 : z.documentElement) || (Q == null ? void 0 : Q.documentElement) || Q;
|
|
@@ -50276,14 +50276,14 @@ function uF(C, g = {}) {
|
|
|
50276
50276
|
var S;
|
|
50277
50277
|
if (!l)
|
|
50278
50278
|
return;
|
|
50279
|
-
const J = ((S = N == null ? void 0 : N.document) == null ? void 0 : S.documentElement) || (N == null ? void 0 : N.documentElement) || HI(N), { display:
|
|
50279
|
+
const J = ((S = N == null ? void 0 : N.document) == null ? void 0 : S.documentElement) || (N == null ? void 0 : N.documentElement) || HI(N), { display: D, flexDirection: f } = getComputedStyle(J), z = J.scrollLeft;
|
|
50280
50280
|
W.left = z < a.value, W.right = z > a.value;
|
|
50281
50281
|
const Q = Math.abs(z) <= (A.left || 0), tg = Math.abs(z) + J.clientWidth >= J.scrollWidth - (A.right || 0) - lD;
|
|
50282
|
-
|
|
50282
|
+
D === "flex" && f === "row-reverse" ? (Z.left = tg, Z.right = Q) : (Z.left = Q, Z.right = tg), a.value = z;
|
|
50283
50283
|
let ig = J.scrollTop;
|
|
50284
50284
|
N === l.document && !ig && (ig = l.document.body.scrollTop), W.top = ig < r.value, W.bottom = ig > r.value;
|
|
50285
50285
|
const P = Math.abs(ig) <= (A.top || 0), Ig = Math.abs(ig) + J.clientHeight >= J.scrollHeight - (A.bottom || 0) - lD;
|
|
50286
|
-
|
|
50286
|
+
D === "flex" && f === "column-reverse" ? (Z.top = Ig, Z.bottom = P) : (Z.top = P, Z.bottom = Ig), r.value = ig;
|
|
50287
50287
|
}, M = (N) => {
|
|
50288
50288
|
var S;
|
|
50289
50289
|
if (!l)
|
|
@@ -50464,81 +50464,81 @@ function oQg(C, g = {}) {
|
|
|
50464
50464
|
};
|
|
50465
50465
|
const {
|
|
50466
50466
|
document: I = gi
|
|
50467
|
-
} = g, e = X(0), t = X(0), i = X(!1), A = X(1), n = X(!1), s = X(!1), l = X(!1), o = X(1), a = X(!1), r = X([]), u = X([]), m = X(-1), b = X(!1), G = X(!1), Z = I && "pictureInPictureEnabled" in I, W = Ot(), B = (
|
|
50468
|
-
EY(C, (
|
|
50469
|
-
if (
|
|
50470
|
-
const z = typeof
|
|
50471
|
-
|
|
50467
|
+
} = g, e = X(0), t = X(0), i = X(!1), A = X(1), n = X(!1), s = X(!1), l = X(!1), o = X(1), a = X(!1), r = X([]), u = X([]), m = X(-1), b = X(!1), G = X(!1), Z = I && "pictureInPictureEnabled" in I, W = Ot(), B = (D) => {
|
|
50468
|
+
EY(C, (f) => {
|
|
50469
|
+
if (D) {
|
|
50470
|
+
const z = typeof D == "number" ? D : D.id;
|
|
50471
|
+
f.textTracks[z].mode = "disabled";
|
|
50472
50472
|
} else
|
|
50473
|
-
for (let z = 0; z <
|
|
50474
|
-
|
|
50473
|
+
for (let z = 0; z < f.textTracks.length; ++z)
|
|
50474
|
+
f.textTracks[z].mode = "disabled";
|
|
50475
50475
|
m.value = -1;
|
|
50476
50476
|
});
|
|
50477
|
-
}, p = (
|
|
50477
|
+
}, p = (D, f = !0) => {
|
|
50478
50478
|
EY(C, (z) => {
|
|
50479
|
-
const Q = typeof
|
|
50480
|
-
|
|
50479
|
+
const Q = typeof D == "number" ? D : D.id;
|
|
50480
|
+
f && B(), z.textTracks[Q].mode = "showing", m.value = Q;
|
|
50481
50481
|
});
|
|
50482
|
-
}, y = () => new Promise((
|
|
50482
|
+
}, y = () => new Promise((D, f) => {
|
|
50483
50483
|
EY(C, async (z) => {
|
|
50484
|
-
Z && (b.value ? I.exitPictureInPicture().then(
|
|
50484
|
+
Z && (b.value ? I.exitPictureInPicture().then(D).catch(f) : z.requestPictureInPicture().then(D).catch(f));
|
|
50485
50485
|
});
|
|
50486
50486
|
});
|
|
50487
50487
|
Ze(() => {
|
|
50488
50488
|
if (!I)
|
|
50489
50489
|
return;
|
|
50490
|
-
const
|
|
50491
|
-
if (!
|
|
50490
|
+
const D = q(C);
|
|
50491
|
+
if (!D)
|
|
50492
50492
|
return;
|
|
50493
|
-
const
|
|
50493
|
+
const f = q(g.src);
|
|
50494
50494
|
let z = [];
|
|
50495
|
-
|
|
50495
|
+
f && (typeof f == "string" ? z = [{ src: f }] : Array.isArray(f) ? z = f : YG(f) && (z = [f]), D.querySelectorAll("source").forEach((Q) => {
|
|
50496
50496
|
Q.removeEventListener("error", W.trigger), Q.remove();
|
|
50497
50497
|
}), z.forEach(({ src: Q, type: tg }) => {
|
|
50498
50498
|
const ig = I.createElement("source");
|
|
50499
|
-
ig.setAttribute("src", Q), ig.setAttribute("type", tg || ""), ig.addEventListener("error", W.trigger),
|
|
50500
|
-
}),
|
|
50499
|
+
ig.setAttribute("src", Q), ig.setAttribute("type", tg || ""), ig.addEventListener("error", W.trigger), D.appendChild(ig);
|
|
50500
|
+
}), D.load());
|
|
50501
50501
|
}), KI(() => {
|
|
50502
|
-
const
|
|
50503
|
-
|
|
50502
|
+
const D = q(C);
|
|
50503
|
+
D && D.querySelectorAll("source").forEach((f) => f.removeEventListener("error", W.trigger));
|
|
50504
50504
|
}), eg([C, A], () => {
|
|
50505
|
-
const
|
|
50506
|
-
|
|
50505
|
+
const D = q(C);
|
|
50506
|
+
D && (D.volume = A.value);
|
|
50507
50507
|
}), eg([C, G], () => {
|
|
50508
|
-
const
|
|
50509
|
-
|
|
50508
|
+
const D = q(C);
|
|
50509
|
+
D && (D.muted = G.value);
|
|
50510
50510
|
}), eg([C, o], () => {
|
|
50511
|
-
const
|
|
50512
|
-
|
|
50511
|
+
const D = q(C);
|
|
50512
|
+
D && (D.playbackRate = o.value);
|
|
50513
50513
|
}), Ze(() => {
|
|
50514
50514
|
if (!I)
|
|
50515
50515
|
return;
|
|
50516
|
-
const
|
|
50517
|
-
!
|
|
50516
|
+
const D = q(g.tracks), f = q(C);
|
|
50517
|
+
!D || !D.length || !f || (f.querySelectorAll("track").forEach((z) => z.remove()), D.forEach(({ default: z, kind: Q, label: tg, src: ig, srcLang: P }, Ig) => {
|
|
50518
50518
|
const bg = I.createElement("track");
|
|
50519
|
-
bg.default = z || !1, bg.kind = Q, bg.label = tg, bg.src = ig, bg.srclang = P, bg.default && (m.value = Ig),
|
|
50519
|
+
bg.default = z || !1, bg.kind = Q, bg.label = tg, bg.src = ig, bg.srclang = P, bg.default && (m.value = Ig), f.appendChild(bg);
|
|
50520
50520
|
}));
|
|
50521
50521
|
});
|
|
50522
|
-
const { ignoreUpdates: M } = $m(e, (
|
|
50523
|
-
const
|
|
50524
|
-
|
|
50525
|
-
}), { ignoreUpdates: N } = $m(l, (
|
|
50526
|
-
const
|
|
50527
|
-
|
|
50522
|
+
const { ignoreUpdates: M } = $m(e, (D) => {
|
|
50523
|
+
const f = q(C);
|
|
50524
|
+
f && (f.currentTime = D);
|
|
50525
|
+
}), { ignoreUpdates: N } = $m(l, (D) => {
|
|
50526
|
+
const f = q(C);
|
|
50527
|
+
f && (D ? f.play() : f.pause());
|
|
50528
50528
|
});
|
|
50529
50529
|
og(C, "timeupdate", () => M(() => e.value = q(C).currentTime)), og(C, "durationchange", () => t.value = q(C).duration), og(C, "progress", () => r.value = sQg(q(C).buffered)), og(C, "seeking", () => i.value = !0), og(C, "seeked", () => i.value = !1), og(C, ["waiting", "loadstart"], () => {
|
|
50530
50530
|
n.value = !0, N(() => l.value = !1);
|
|
50531
50531
|
}), og(C, "loadeddata", () => n.value = !1), og(C, "playing", () => {
|
|
50532
50532
|
n.value = !1, s.value = !1, N(() => l.value = !0);
|
|
50533
50533
|
}), og(C, "ratechange", () => o.value = q(C).playbackRate), og(C, "stalled", () => a.value = !0), og(C, "ended", () => s.value = !0), og(C, "pause", () => N(() => l.value = !1)), og(C, "play", () => N(() => l.value = !0)), og(C, "enterpictureinpicture", () => b.value = !0), og(C, "leavepictureinpicture", () => b.value = !1), og(C, "volumechange", () => {
|
|
50534
|
-
const
|
|
50535
|
-
|
|
50534
|
+
const D = q(C);
|
|
50535
|
+
D && (A.value = D.volume, G.value = D.muted);
|
|
50536
50536
|
});
|
|
50537
50537
|
const S = [], J = eg([C], () => {
|
|
50538
|
-
const
|
|
50539
|
-
|
|
50538
|
+
const D = q(C);
|
|
50539
|
+
D && (J(), S[0] = og(D.textTracks, "addtrack", () => u.value = PY(D.textTracks)), S[1] = og(D.textTracks, "removetrack", () => u.value = PY(D.textTracks)), S[2] = og(D.textTracks, "change", () => u.value = PY(D.textTracks)));
|
|
50540
50540
|
});
|
|
50541
|
-
return KI(() => S.forEach((
|
|
50541
|
+
return KI(() => S.forEach((D) => D())), {
|
|
50542
50542
|
currentTime: e,
|
|
50543
50543
|
duration: t,
|
|
50544
50544
|
waiting: n,
|
|
@@ -50991,9 +50991,9 @@ function YQg(C, g = {}) {
|
|
|
50991
50991
|
}, o = mg({ x: 0, y: 0 }), a = (N, S) => {
|
|
50992
50992
|
o.x = N, o.y = S;
|
|
50993
50993
|
}, r = j(() => s.x - o.x), u = j(() => s.y - o.y), { max: m, abs: b } = Math, G = j(() => m(b(r.value), b(u.value)) >= e), Z = X(!1), W = X(!1), B = j(() => G.value ? b(r.value) > b(u.value) ? r.value > 0 ? "left" : "right" : u.value > 0 ? "up" : "down" : "none"), p = (N) => {
|
|
50994
|
-
var S, J,
|
|
50995
|
-
const
|
|
50996
|
-
return (
|
|
50994
|
+
var S, J, D;
|
|
50995
|
+
const f = N.buttons === 0, z = N.buttons === 1;
|
|
50996
|
+
return (D = (J = (S = g.pointerTypes) == null ? void 0 : S.includes(N.pointerType)) != null ? J : f || z) != null ? D : !0;
|
|
50997
50997
|
}, y = [
|
|
50998
50998
|
og(C, "pointerdown", (N) => {
|
|
50999
50999
|
if (!p(N))
|
|
@@ -51001,8 +51001,8 @@ function YQg(C, g = {}) {
|
|
|
51001
51001
|
W.value = !0;
|
|
51002
51002
|
const S = N.target;
|
|
51003
51003
|
S == null || S.setPointerCapture(N.pointerId);
|
|
51004
|
-
const { clientX: J, clientY:
|
|
51005
|
-
l(J,
|
|
51004
|
+
const { clientX: J, clientY: D } = N;
|
|
51005
|
+
l(J, D), a(J, D), A == null || A(N);
|
|
51006
51006
|
}),
|
|
51007
51007
|
og(C, "pointermove", (N) => {
|
|
51008
51008
|
if (!p(N) || !W.value)
|
|
@@ -51015,8 +51015,8 @@ function YQg(C, g = {}) {
|
|
|
51015
51015
|
})
|
|
51016
51016
|
];
|
|
51017
51017
|
Qe(() => {
|
|
51018
|
-
var N, S, J,
|
|
51019
|
-
(S = (N = I.value) == null ? void 0 : N.style) == null || S.setProperty("touch-action", "none"), n && ((
|
|
51018
|
+
var N, S, J, D, f, z, Q, tg;
|
|
51019
|
+
(S = (N = I.value) == null ? void 0 : N.style) == null || S.setProperty("touch-action", "none"), n && ((D = (J = I.value) == null ? void 0 : J.style) == null || D.setProperty("-webkit-user-select", "none"), (z = (f = I.value) == null ? void 0 : f.style) == null || z.setProperty("-ms-user-select", "none"), (tg = (Q = I.value) == null ? void 0 : Q.style) == null || tg.setProperty("user-select", "none"));
|
|
51020
51020
|
});
|
|
51021
51021
|
const M = () => y.forEach((N) => N());
|
|
51022
51022
|
return {
|
|
@@ -51444,10 +51444,10 @@ function OQg(C, g = {}) {
|
|
|
51444
51444
|
onSwipeStart: i,
|
|
51445
51445
|
passive: A = !0,
|
|
51446
51446
|
window: n = Ug
|
|
51447
|
-
} = g, s = mg({ x: 0, y: 0 }), l = mg({ x: 0, y: 0 }), o = j(() => s.x - l.x), a = j(() => s.y - l.y), { max: r, abs: u } = Math, m = j(() => r(u(o.value), u(a.value)) >= I), b = X(!1), G = j(() => m.value ? u(o.value) > u(a.value) ? o.value > 0 ? "left" : "right" : a.value > 0 ? "up" : "down" : "none"), Z = (J) => [J.touches[0].clientX, J.touches[0].clientY], W = (J,
|
|
51448
|
-
s.x = J, s.y =
|
|
51449
|
-
}, B = (J,
|
|
51450
|
-
l.x = J, l.y =
|
|
51447
|
+
} = g, s = mg({ x: 0, y: 0 }), l = mg({ x: 0, y: 0 }), o = j(() => s.x - l.x), a = j(() => s.y - l.y), { max: r, abs: u } = Math, m = j(() => r(u(o.value), u(a.value)) >= I), b = X(!1), G = j(() => m.value ? u(o.value) > u(a.value) ? o.value > 0 ? "left" : "right" : a.value > 0 ? "up" : "down" : "none"), Z = (J) => [J.touches[0].clientX, J.touches[0].clientY], W = (J, D) => {
|
|
51448
|
+
s.x = J, s.y = D;
|
|
51449
|
+
}, B = (J, D) => {
|
|
51450
|
+
l.x = J, l.y = D;
|
|
51451
51451
|
};
|
|
51452
51452
|
let p;
|
|
51453
51453
|
const y = QQg(n == null ? void 0 : n.document);
|
|
@@ -51459,14 +51459,14 @@ function OQg(C, g = {}) {
|
|
|
51459
51459
|
if (J.touches.length !== 1)
|
|
51460
51460
|
return;
|
|
51461
51461
|
p.capture && !p.passive && J.preventDefault();
|
|
51462
|
-
const [
|
|
51463
|
-
W(
|
|
51462
|
+
const [D, f] = Z(J);
|
|
51463
|
+
W(D, f), B(D, f), i == null || i(J);
|
|
51464
51464
|
}, p),
|
|
51465
51465
|
og(C, "touchmove", (J) => {
|
|
51466
51466
|
if (J.touches.length !== 1)
|
|
51467
51467
|
return;
|
|
51468
|
-
const [
|
|
51469
|
-
B(
|
|
51468
|
+
const [D, f] = Z(J);
|
|
51469
|
+
B(D, f), !b.value && m.value && (b.value = !0), b.value && (e == null || e(J));
|
|
51470
51470
|
}, p),
|
|
51471
51471
|
og(C, ["touchend", "touchcancel"], M, p)
|
|
51472
51472
|
];
|
|
@@ -52236,50 +52236,50 @@ function wUg(C, g = {}) {
|
|
|
52236
52236
|
}
|
|
52237
52237
|
}, p = () => {
|
|
52238
52238
|
clearTimeout(W), W = void 0;
|
|
52239
|
-
}, y = (J = 1e3,
|
|
52240
|
-
!je || !a.value || (b = !0, p(), u == null || u(), a.value.close(J,
|
|
52241
|
-
}, M = (J,
|
|
52239
|
+
}, y = (J = 1e3, D) => {
|
|
52240
|
+
!je || !a.value || (b = !0, p(), u == null || u(), a.value.close(J, D), a.value = void 0);
|
|
52241
|
+
}, M = (J, D = !0) => !a.value || o.value !== "OPEN" ? (D && Z.push(J), !1) : (B(), a.value.send(J), !0), N = () => {
|
|
52242
52242
|
if (b || typeof r.value > "u")
|
|
52243
52243
|
return;
|
|
52244
52244
|
const J = new WebSocket(r.value, s);
|
|
52245
52245
|
a.value = J, o.value = "CONNECTING", J.onopen = () => {
|
|
52246
52246
|
o.value = "OPEN", G = 0, I == null || I(J), m == null || m(), B();
|
|
52247
|
-
}, J.onclose = (
|
|
52248
|
-
if (o.value = "CLOSED", e == null || e(J,
|
|
52247
|
+
}, J.onclose = (D) => {
|
|
52248
|
+
if (o.value = "CLOSED", e == null || e(J, D), !b && g.autoReconnect && J === a.value) {
|
|
52249
52249
|
const {
|
|
52250
|
-
retries:
|
|
52250
|
+
retries: f = -1,
|
|
52251
52251
|
delay: z = 1e3,
|
|
52252
52252
|
onFailed: Q
|
|
52253
52253
|
} = $Y(g.autoReconnect);
|
|
52254
|
-
typeof
|
|
52254
|
+
typeof f == "number" && (f < 0 || G < f) ? (G += 1, setTimeout(N, z)) : typeof f == "function" && f() ? setTimeout(N, z) : Q == null || Q();
|
|
52255
52255
|
}
|
|
52256
|
-
}, J.onerror = (
|
|
52257
|
-
t == null || t(J,
|
|
52258
|
-
}, J.onmessage = (
|
|
52256
|
+
}, J.onerror = (D) => {
|
|
52257
|
+
t == null || t(J, D);
|
|
52258
|
+
}, J.onmessage = (D) => {
|
|
52259
52259
|
if (g.heartbeat) {
|
|
52260
52260
|
p();
|
|
52261
52261
|
const {
|
|
52262
|
-
message:
|
|
52263
|
-
responseMessage: z =
|
|
52262
|
+
message: f = mD,
|
|
52263
|
+
responseMessage: z = f
|
|
52264
52264
|
} = $Y(g.heartbeat);
|
|
52265
|
-
if (
|
|
52265
|
+
if (D.data === z)
|
|
52266
52266
|
return;
|
|
52267
52267
|
}
|
|
52268
|
-
l.value =
|
|
52268
|
+
l.value = D.data, i == null || i(J, D);
|
|
52269
52269
|
};
|
|
52270
52270
|
};
|
|
52271
52271
|
if (g.heartbeat) {
|
|
52272
52272
|
const {
|
|
52273
52273
|
message: J = mD,
|
|
52274
|
-
interval:
|
|
52275
|
-
pongTimeout:
|
|
52274
|
+
interval: D = 1e3,
|
|
52275
|
+
pongTimeout: f = 1e3
|
|
52276
52276
|
} = $Y(g.heartbeat), { pause: z, resume: Q } = xa(
|
|
52277
52277
|
() => {
|
|
52278
52278
|
M(J, !1), W == null && (W = setTimeout(() => {
|
|
52279
52279
|
y(), b = !1;
|
|
52280
|
-
},
|
|
52280
|
+
}, f));
|
|
52281
52281
|
},
|
|
52282
|
-
|
|
52282
|
+
D,
|
|
52283
52283
|
{ immediate: !1 }
|
|
52284
52284
|
);
|
|
52285
52285
|
u = z, m = Q;
|
|
@@ -53263,7 +53263,7 @@ var FB = { exports: {} };
|
|
|
53263
53263
|
FB.exports;
|
|
53264
53264
|
(function(C, g) {
|
|
53265
53265
|
(function() {
|
|
53266
|
-
var I, e = "4.17.21", t = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", A = "Expected a function", n = "Invalid `variable` option passed into `_.template`", s = "__lodash_hash_undefined__", l = 500, o = "__lodash_placeholder__", a = 1, r = 2, u = 4, m = 1, b = 2, G = 1, Z = 2, W = 4, B = 8, p = 16, y = 32, M = 64, N = 128, S = 256, J = 512,
|
|
53266
|
+
var I, e = "4.17.21", t = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", A = "Expected a function", n = "Invalid `variable` option passed into `_.template`", s = "__lodash_hash_undefined__", l = 500, o = "__lodash_placeholder__", a = 1, r = 2, u = 4, m = 1, b = 2, G = 1, Z = 2, W = 4, B = 8, p = 16, y = 32, M = 64, N = 128, S = 256, J = 512, D = 30, f = "...", z = 800, Q = 16, tg = 1, ig = 2, P = 3, Ig = 1 / 0, bg = 9007199254740991, ng = 17976931348623157e292, Bg = NaN, Dg = 4294967295, Mg = Dg - 1, rg = Dg >>> 1, Ng = [
|
|
53267
53267
|
["ary", N],
|
|
53268
53268
|
["bind", G],
|
|
53269
53269
|
["bindKey", Z],
|
|
@@ -56623,7 +56623,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
56623
56623
|
return lo(V, F).join("");
|
|
56624
56624
|
}
|
|
56625
56625
|
function t7(c, h) {
|
|
56626
|
-
var w =
|
|
56626
|
+
var w = D, V = f;
|
|
56627
56627
|
if (DC(h)) {
|
|
56628
56628
|
var F = "separator" in h ? h.separator : F;
|
|
56629
56629
|
w = "length" in h ? rI(h.length) : w, V = "omission" in h ? Hi(h.omission) : V;
|
|
@@ -61891,23 +61891,23 @@ vd = new WeakMap(), sn = new WeakMap(), RC = new WeakMap(), dC = new WeakMap(),
|
|
|
61891
61891
|
const B = b(n, s), p = G(n, s);
|
|
61892
61892
|
let y = r(...p);
|
|
61893
61893
|
const M = aI._round(i + y[0]), N = aI._round(A + y[1]);
|
|
61894
|
-
let S = 1, J = 1,
|
|
61894
|
+
let S = 1, J = 1, D, f;
|
|
61895
61895
|
if (I.fromKeyboard)
|
|
61896
61896
|
({
|
|
61897
|
-
deltaX:
|
|
61898
|
-
deltaY:
|
|
61897
|
+
deltaX: D,
|
|
61898
|
+
deltaY: f
|
|
61899
61899
|
} = I);
|
|
61900
61900
|
else {
|
|
61901
61901
|
const {
|
|
61902
61902
|
screenX: P,
|
|
61903
61903
|
screenY: Ig
|
|
61904
61904
|
} = I, [bg, ng] = d(this, Ld);
|
|
61905
|
-
[
|
|
61905
|
+
[D, f] = this.screenToPageTranslation(P - bg, Ig - ng), d(this, Ld)[0] = P, d(this, Ld)[1] = Ig;
|
|
61906
61906
|
}
|
|
61907
|
-
if ([
|
|
61907
|
+
if ([D, f] = m(D / e, f / t), Z) {
|
|
61908
61908
|
const P = Math.hypot(n, s);
|
|
61909
|
-
S = J = Math.max(Math.min(Math.hypot(p[0] - B[0] -
|
|
61910
|
-
} else W ? S = jt(Math.abs(p[0] - B[0] -
|
|
61909
|
+
S = J = Math.max(Math.min(Math.hypot(p[0] - B[0] - D, p[1] - B[1] - f) / P, 1 / n, 1 / s), l / n, o / s);
|
|
61910
|
+
} else W ? S = jt(Math.abs(p[0] - B[0] - D), l, 1) / n : J = jt(Math.abs(p[1] - B[1] - f), o, 1) / s;
|
|
61911
61911
|
const z = aI._round(n * S), Q = aI._round(s * J);
|
|
61912
61912
|
y = r(...G(z, Q));
|
|
61913
61913
|
const tg = M - y[0], ig = N - y[1];
|
|
@@ -63496,15 +63496,15 @@ class X7g extends Sz {
|
|
|
63496
63496
|
r < a && ([a, r, u, m] = [r, a, m, u]), d(this, Kg, Or).style.color = "";
|
|
63497
63497
|
const b = (B, p, y) => {
|
|
63498
63498
|
const M = new Array(256), N = (r - a) / y, S = B / 255, J = (p - B) / (255 * y);
|
|
63499
|
-
let
|
|
63500
|
-
for (let
|
|
63501
|
-
const z = Math.round(a +
|
|
63502
|
-
for (let tg =
|
|
63499
|
+
let D = 0;
|
|
63500
|
+
for (let f = 0; f <= y; f++) {
|
|
63501
|
+
const z = Math.round(a + f * N), Q = S + f * J;
|
|
63502
|
+
for (let tg = D; tg <= z; tg++)
|
|
63503
63503
|
M[tg] = Q;
|
|
63504
|
-
|
|
63504
|
+
D = z + 1;
|
|
63505
63505
|
}
|
|
63506
|
-
for (let
|
|
63507
|
-
M[
|
|
63506
|
+
for (let f = D; f < 256; f++)
|
|
63507
|
+
M[f] = M[D - 1];
|
|
63508
63508
|
return M.join(",");
|
|
63509
63509
|
}, G = `g_${d(this, rl)}_hcm_${I}_filter`, Z = s.filter = H(this, Kg, Ur).call(this, G);
|
|
63510
63510
|
return H(this, Kg, xN).call(this, Z), H(this, Kg, W0).call(this, b(u[0], m[0], 5), b(u[1], m[1], 5), b(u[2], m[2], 5), Z), s.url = H(this, Kg, Qr).call(this, G), s.url;
|
|
@@ -64074,7 +64074,7 @@ function tV(C, g, I, e, t, i, A, n) {
|
|
|
64074
64074
|
const u = (s[I] + g.offsetX) * g.scaleX, m = (s[I + 1] + g.offsetY) * g.scaleY, b = (s[e] + g.offsetX) * g.scaleX, G = (s[e + 1] + g.offsetY) * g.scaleY, Z = (s[t] + g.offsetX) * g.scaleX, W = (s[t + 1] + g.offsetY) * g.scaleY;
|
|
64075
64075
|
if (m >= W)
|
|
64076
64076
|
return;
|
|
64077
|
-
const B = l[i], p = l[i + 1], y = l[i + 2], M = l[A], N = l[A + 1], S = l[A + 2], J = l[n],
|
|
64077
|
+
const B = l[i], p = l[i + 1], y = l[i + 2], M = l[A], N = l[A + 1], S = l[A + 2], J = l[n], D = l[n + 1], f = l[n + 2], z = Math.round(m), Q = Math.round(W);
|
|
64078
64078
|
let tg, ig, P, Ig, bg, ng, Bg, Dg;
|
|
64079
64079
|
for (let Mg = z; Mg <= Q; Mg++) {
|
|
64080
64080
|
if (Mg < G) {
|
|
@@ -64082,10 +64082,10 @@ function tV(C, g, I, e, t, i, A, n) {
|
|
|
64082
64082
|
tg = u - (u - b) * bI, ig = B - (B - M) * bI, P = p - (p - N) * bI, Ig = y - (y - S) * bI;
|
|
64083
64083
|
} else {
|
|
64084
64084
|
let bI;
|
|
64085
|
-
Mg > W ? bI = 1 : G === W ? bI = 0 : bI = (G - Mg) / (G - W), tg = b - (b - Z) * bI, ig = M - (M - J) * bI, P = N - (N -
|
|
64085
|
+
Mg > W ? bI = 1 : G === W ? bI = 0 : bI = (G - Mg) / (G - W), tg = b - (b - Z) * bI, ig = M - (M - J) * bI, P = N - (N - D) * bI, Ig = S - (S - f) * bI;
|
|
64086
64086
|
}
|
|
64087
64087
|
let rg;
|
|
64088
|
-
Mg < m ? rg = 0 : Mg > W ? rg = 1 : rg = (m - Mg) / (m - W), bg = u - (u - Z) * rg, ng = B - (B - J) * rg, Bg = p - (p -
|
|
64088
|
+
Mg < m ? rg = 0 : Mg > W ? rg = 1 : rg = (m - Mg) / (m - W), bg = u - (u - Z) * rg, ng = B - (B - J) * rg, Bg = p - (p - D) * rg, Dg = y - (y - f) * rg;
|
|
64089
64089
|
const Ng = Math.round(Math.min(tg, bg)), Vg = Math.round(Math.max(tg, bg));
|
|
64090
64090
|
let pI = a * Mg + Ng * 4;
|
|
64091
64091
|
for (let bI = Ng; bI <= Vg; bI++)
|
|
@@ -64202,8 +64202,8 @@ const XD = {
|
|
|
64202
64202
|
zg.singularValueDecompose2dScale(this.baseTransform, Z);
|
|
64203
64203
|
const p = W * Z[0], y = B * Z[1];
|
|
64204
64204
|
let M = b, N = G, S = !1, J = !1;
|
|
64205
|
-
const
|
|
64206
|
-
|
|
64205
|
+
const D = Math.ceil(l * p), f = Math.ceil(o * y), z = Math.ceil(b * p), Q = Math.ceil(G * y);
|
|
64206
|
+
D >= z ? M = l : S = !0, f >= Q ? N = o : J = !0;
|
|
64207
64207
|
const tg = this.getSizeAndScale(M, this.ctx.canvas.width, p), ig = this.getSizeAndScale(N, this.ctx.canvas.height, y), P = g.cachedCanvases.getCanvas("pattern", tg.size, ig.size), Ig = P.context, bg = s.createCanvasGraphics(Ig, I);
|
|
64208
64208
|
if (bg.groupLevel = g.groupLevel, this.setFillAndStrokeStyleToContext(bg, i, n), Ig.translate(-tg.scale * a, -ig.scale * r), bg.transform(0, tg.scale, 0, 0, ig.scale, 0, 0), Ig.save(), (ng = bg.dependencyTracker) == null || ng.save(), this.clipBbox(bg, a, r, u, m), bg.baseTransform = KC(bg.ctx), bg.executeOperatorList(t), bg.endDrawing(), (Bg = bg.dependencyTracker) == null || Bg.restore(), Ig.restore(), S || J) {
|
|
64209
64209
|
const Dg = P.canvas;
|
|
@@ -64442,11 +64442,11 @@ function KD(C, g) {
|
|
|
64442
64442
|
const M = G - s;
|
|
64443
64443
|
let N = 0;
|
|
64444
64444
|
const S = M > B ? e : M * 8 - 7, J = S & -8;
|
|
64445
|
-
let
|
|
64445
|
+
let D = 0, f = 0;
|
|
64446
64446
|
for (; N < J; N += 8)
|
|
64447
|
-
|
|
64447
|
+
f = o[s++], Z[l++] = f & 128 ? p : y, Z[l++] = f & 64 ? p : y, Z[l++] = f & 32 ? p : y, Z[l++] = f & 16 ? p : y, Z[l++] = f & 8 ? p : y, Z[l++] = f & 4 ? p : y, Z[l++] = f & 2 ? p : y, Z[l++] = f & 1 ? p : y;
|
|
64448
64448
|
for (; N < S; N++)
|
|
64449
|
-
|
|
64449
|
+
D === 0 && (f = o[s++], D = 128), Z[l++] = f & D ? p : y, D >>= 1;
|
|
64450
64450
|
}
|
|
64451
64451
|
for (; l < W; )
|
|
64452
64452
|
Z[l++] = 0;
|
|
@@ -64590,7 +64590,7 @@ const O5 = class O5 {
|
|
|
64590
64590
|
};
|
|
64591
64591
|
}
|
|
64592
64592
|
_createMaskCanvas(g, I) {
|
|
64593
|
-
var
|
|
64593
|
+
var D, f;
|
|
64594
64594
|
const e = this.ctx, {
|
|
64595
64595
|
width: t,
|
|
64596
64596
|
height: i
|
|
@@ -64602,7 +64602,7 @@ const O5 = class O5 {
|
|
|
64602
64602
|
const Q = l.get(o);
|
|
64603
64603
|
if (Q && !n) {
|
|
64604
64604
|
const tg = Math.round(Math.min(s[0], s[2]) + s[4]), ig = Math.round(Math.min(s[1], s[3]) + s[5]);
|
|
64605
|
-
return (
|
|
64605
|
+
return (D = this.dependencyTracker) == null || D.recordDependencies(g, wA.transformAndFill), {
|
|
64606
64606
|
canvas: Q,
|
|
64607
64607
|
offsetX: tg,
|
|
64608
64608
|
offsetY: ig
|
|
@@ -64618,7 +64618,7 @@ const O5 = class O5 {
|
|
|
64618
64618
|
const [b, G, Z, W] = m, B = Math.round(Z - b) || 1, p = Math.round(W - G) || 1, y = this.cachedCanvases.getCanvas("fillCanvas", B, p), M = y.context, N = b, S = G;
|
|
64619
64619
|
M.translate(-N, -S), M.transform(...u), a || (a = this._scaleImage(r.canvas, Fn(M)), a = a.img, l && n && l.set(o, a)), M.imageSmoothingEnabled = FD(KC(M), I.interpolate), IW(M, a, 0, 0, a.width, a.height, 0, 0, t, i), M.globalCompositeOperation = "source-in";
|
|
64620
64620
|
const J = zg.transform(Fn(M), [1, 0, 0, 1, -N, -S]);
|
|
64621
|
-
return M.fillStyle = n ? A.getPattern(e, this, J, tt.FILL, g) : A, M.fillRect(0, 0, t, i), l && !n && (this.cachedCanvases.delete("fillCanvas"), l.set(o, y.canvas)), (
|
|
64621
|
+
return M.fillStyle = n ? A.getPattern(e, this, J, tt.FILL, g) : A, M.fillRect(0, 0, t, i), l && !n && (this.cachedCanvases.delete("fillCanvas"), l.set(o, y.canvas)), (f = this.dependencyTracker) == null || f.recordDependencies(g, wA.transformAndFill), {
|
|
64622
64622
|
canvas: y.canvas,
|
|
64623
64623
|
offsetX: Math.round(N),
|
|
64624
64624
|
offsetY: Math.round(S)
|
|
@@ -64943,8 +64943,8 @@ const O5 = class O5 {
|
|
|
64943
64943
|
b: N,
|
|
64944
64944
|
c: S,
|
|
64945
64945
|
d: J
|
|
64946
|
-
} = y,
|
|
64947
|
-
zg.singularValueDecompose2dScale(
|
|
64946
|
+
} = y, D = zg.inverseTransform(A), f = zg.transform([M, N, S, J, 0, 0], D);
|
|
64947
|
+
zg.singularValueDecompose2dScale(f, CA), n.lineWidth *= Math.max(CA[0], CA[1]) / a, n.stroke(H(this, Xn, $N).call(this, G, y, A));
|
|
64948
64948
|
} else
|
|
64949
64949
|
n.lineWidth /= a, n.stroke(G);
|
|
64950
64950
|
n.restore();
|
|
@@ -64973,7 +64973,7 @@ const O5 = class O5 {
|
|
|
64973
64973
|
return sI(this, "isFontSubpixelAAEnabled", e);
|
|
64974
64974
|
}
|
|
64975
64975
|
showText(g, I) {
|
|
64976
|
-
var S, J,
|
|
64976
|
+
var S, J, D, f;
|
|
64977
64977
|
this.dependencyTracker && (this.dependencyTracker.recordDependencies(g, wA.showText).resetBBox(g), this.current.textRenderingMode & _e.ADD_TO_PATH_FLAG && this.dependencyTracker.recordFutureForcedDependency("textClip", g).inheritPendingDependenciesAsFutureForcedDependencies());
|
|
64978
64978
|
const e = this.current, t = e.font;
|
|
64979
64979
|
if (t.isType3Font) {
|
|
@@ -65044,7 +65044,7 @@ const O5 = class O5 {
|
|
|
65044
65044
|
}
|
|
65045
65045
|
if (this.contentVisible && (z.isInFont || t.missingFile)) {
|
|
65046
65046
|
if (Z && !P)
|
|
65047
|
-
A.fillText(ig, Ig, bg), (
|
|
65047
|
+
A.fillText(ig, Ig, bg), (D = this.dependencyTracker) == null || D.recordCharacterBBox(g, A, Bg ? {
|
|
65048
65048
|
bbox: null
|
|
65049
65049
|
} : t, i / n, Ig, bg, () => Bg ?? A.measureText(ig));
|
|
65050
65050
|
else if (this.paintChar(g, ig, Ig, bg, W, B), P) {
|
|
@@ -65055,7 +65055,7 @@ const O5 = class O5 {
|
|
|
65055
65055
|
const Dg = u ? ng * G - tg * o : ng * G + tg * o;
|
|
65056
65056
|
M += Dg, Q && A.restore();
|
|
65057
65057
|
}
|
|
65058
|
-
u ? e.y -= M : e.x += M * a, A.restore(), this.compose(), (
|
|
65058
|
+
u ? e.y -= M : e.x += M * a, A.restore(), this.compose(), (f = this.dependencyTracker) == null || f.recordShowTextOperation(g);
|
|
65059
65059
|
}
|
|
65060
65060
|
showType3Text(g, I) {
|
|
65061
65061
|
const e = this.ctx, t = this.current, i = t.font, A = t.fontSize, n = t.fontDirection, s = i.vertical ? 1 : -1, l = t.charSpacing, o = t.wordSpacing, a = t.textHScale * n, r = t.fontMatrix || ZN, u = I.length, m = t.textRenderingMode === _e.INVISIBLE;
|
|
@@ -66906,7 +66906,7 @@ function SR(C = {}) {
|
|
|
66906
66906
|
docId: I
|
|
66907
66907
|
} = g, e = C.url ? y7g(C.url) : null, t = C.data ? Y7g(C.data) : null, i = C.httpHeaders || null, A = C.withCredentials === !0, n = C.password ?? null, s = C.range instanceof Pz ? C.range : null, l = Number.isInteger(C.rangeChunkSize) && C.rangeChunkSize > 0 ? C.rangeChunkSize : 2 ** 16;
|
|
66908
66908
|
let o = C.worker instanceof lb ? C.worker : null;
|
|
66909
|
-
const a = C.verbosity, r = typeof C.docBaseUrl == "string" && !v2(C.docBaseUrl) ? C.docBaseUrl : null, u = _w(C.cMapUrl), m = C.cMapPacked !== !1, b = C.CMapReaderFactory || (Tt ? D7g : YD), G = _w(C.iccUrl), Z = _w(C.standardFontDataUrl), W = C.StandardFontDataFactory || (Tt ? S7g : VD), B = _w(C.wasmUrl), p = C.WasmFactory || (Tt ? K7g : ND), y = C.stopAtErrors !== !0, M = Number.isInteger(C.maxImageSize) && C.maxImageSize > -1 ? C.maxImageSize : -1, N = C.isEvalSupported !== !1, S = typeof C.isOffscreenCanvasSupported == "boolean" ? C.isOffscreenCanvasSupported : !Tt, J = typeof C.isImageDecoderSupported == "boolean" ? C.isImageDecoderSupported : !Tt && (lt.platform.isFirefox || !globalThis.chrome),
|
|
66909
|
+
const a = C.verbosity, r = typeof C.docBaseUrl == "string" && !v2(C.docBaseUrl) ? C.docBaseUrl : null, u = _w(C.cMapUrl), m = C.cMapPacked !== !1, b = C.CMapReaderFactory || (Tt ? D7g : YD), G = _w(C.iccUrl), Z = _w(C.standardFontDataUrl), W = C.StandardFontDataFactory || (Tt ? S7g : VD), B = _w(C.wasmUrl), p = C.WasmFactory || (Tt ? K7g : ND), y = C.stopAtErrors !== !0, M = Number.isInteger(C.maxImageSize) && C.maxImageSize > -1 ? C.maxImageSize : -1, N = C.isEvalSupported !== !1, S = typeof C.isOffscreenCanvasSupported == "boolean" ? C.isOffscreenCanvasSupported : !Tt, J = typeof C.isImageDecoderSupported == "boolean" ? C.isImageDecoderSupported : !Tt && (lt.platform.isFirefox || !globalThis.chrome), D = Number.isInteger(C.canvasMaxAreaInBytes) ? C.canvasMaxAreaInBytes : -1, f = typeof C.disableFontFace == "boolean" ? C.disableFontFace : Tt, z = C.fontExtraProperties === !0, Q = C.enableXfa === !0, tg = C.ownerDocument || globalThis.document, ig = C.disableRange === !0, P = C.disableStream === !0, Ig = C.disableAutoFetch === !0, bg = C.pdfBug === !0, ng = C.CanvasFactory || (Tt ? f7g : R7g), Bg = C.FilterFactory || (Tt ? H7g : X7g), Dg = C.enableHWA === !0, Mg = C.useWasm !== !1, rg = s ? s.length : C.length ?? NaN, Ng = typeof C.useSystemFonts == "boolean" ? C.useSystemFonts : !Tt && !f, Vg = typeof C.useWorkerFetch == "boolean" ? C.useWorkerFetch : !!(b === YD && W === VD && p === ND && u && Z && B && a0(u, document.baseURI) && a0(Z, document.baseURI) && a0(B, document.baseURI)), pI = null;
|
|
66910
66910
|
$Eg(a);
|
|
66911
66911
|
const bI = {
|
|
66912
66912
|
canvasFactory: new ng({
|
|
@@ -66944,12 +66944,12 @@ function SR(C = {}) {
|
|
|
66944
66944
|
enableXfa: Q,
|
|
66945
66945
|
evaluatorOptions: {
|
|
66946
66946
|
maxImageSize: M,
|
|
66947
|
-
disableFontFace:
|
|
66947
|
+
disableFontFace: f,
|
|
66948
66948
|
ignoreErrors: y,
|
|
66949
66949
|
isEvalSupported: N,
|
|
66950
66950
|
isOffscreenCanvasSupported: S,
|
|
66951
66951
|
isImageDecoderSupported: J,
|
|
66952
|
-
canvasMaxAreaInBytes:
|
|
66952
|
+
canvasMaxAreaInBytes: D,
|
|
66953
66953
|
fontExtraProperties: z,
|
|
66954
66954
|
useSystemFonts: Ng,
|
|
66955
66955
|
useWasm: Mg,
|
|
@@ -67282,7 +67282,7 @@ class GPg {
|
|
|
67282
67282
|
recordOperations: u = !1,
|
|
67283
67283
|
operationsFilter: m = null
|
|
67284
67284
|
}) {
|
|
67285
|
-
var J,
|
|
67285
|
+
var J, D, f;
|
|
67286
67286
|
(J = this._stats) == null || J.time("Overall");
|
|
67287
67287
|
const b = this._transport.getRenderingIntent(t, i, a, r), {
|
|
67288
67288
|
renderingIntent: G,
|
|
@@ -67297,8 +67297,8 @@ class GPg {
|
|
|
67297
67297
|
argsArray: [],
|
|
67298
67298
|
lastChunk: !1,
|
|
67299
67299
|
separateAnnots: null
|
|
67300
|
-
}, (
|
|
67301
|
-
const p = !!(this._pdfBug && ((
|
|
67300
|
+
}, (D = this._stats) == null || D.time("Page Request"), this._pumpOperatorList(b));
|
|
67301
|
+
const p = !!(this._pdfBug && ((f = globalThis.StepperManager) != null && f.enabled)), y = !this.recordedBBoxes && (u || p), M = (z) => {
|
|
67302
67302
|
var Q, tg;
|
|
67303
67303
|
if (W.renderTasks.delete(N), y) {
|
|
67304
67304
|
const ig = (Q = N.gfx) == null ? void 0 : Q.dependencyTracker.take();
|
|
@@ -69462,13 +69462,13 @@ class RPg extends hr {
|
|
|
69462
69462
|
let N = y, S = M;
|
|
69463
69463
|
switch (Z.inputType) {
|
|
69464
69464
|
case "deleteWordBackward": {
|
|
69465
|
-
const
|
|
69466
|
-
|
|
69465
|
+
const D = p.substring(0, y).match(/\w*[^\w]*$/);
|
|
69466
|
+
D && (N -= D[0].length);
|
|
69467
69467
|
break;
|
|
69468
69468
|
}
|
|
69469
69469
|
case "deleteWordForward": {
|
|
69470
|
-
const
|
|
69471
|
-
|
|
69470
|
+
const D = p.substring(y).match(/^[^\w]*\w*/);
|
|
69471
|
+
D && (S += D[0].length);
|
|
69472
69472
|
break;
|
|
69473
69473
|
}
|
|
69474
69474
|
case "deleteContentBackward":
|
|
@@ -71967,8 +71967,8 @@ const vI = class vI extends wC {
|
|
|
71967
71967
|
color: N,
|
|
71968
71968
|
opacity: S,
|
|
71969
71969
|
popupRef: J,
|
|
71970
|
-
richText:
|
|
71971
|
-
contentsObj:
|
|
71970
|
+
richText: D,
|
|
71971
|
+
contentsObj: f,
|
|
71972
71972
|
creationDate: z,
|
|
71973
71973
|
modificationDate: Q
|
|
71974
71974
|
},
|
|
@@ -71991,8 +71991,8 @@ const vI = class vI extends wC {
|
|
|
71991
71991
|
id: M,
|
|
71992
71992
|
deleted: !1,
|
|
71993
71993
|
popupRef: J,
|
|
71994
|
-
richText:
|
|
71995
|
-
comment: (
|
|
71994
|
+
richText: D,
|
|
71995
|
+
comment: (f == null ? void 0 : f.str) || null,
|
|
71996
71996
|
creationDate: z,
|
|
71997
71997
|
modificationDate: Q
|
|
71998
71998
|
};
|
|
@@ -72008,8 +72008,8 @@ const vI = class vI extends wC {
|
|
|
72008
72008
|
rawWidth: S
|
|
72009
72009
|
},
|
|
72010
72010
|
popupRef: J,
|
|
72011
|
-
richText:
|
|
72012
|
-
contentsObj:
|
|
72011
|
+
richText: D,
|
|
72012
|
+
contentsObj: f,
|
|
72013
72013
|
creationDate: z,
|
|
72014
72014
|
modificationDate: Q
|
|
72015
72015
|
},
|
|
@@ -72032,8 +72032,8 @@ const vI = class vI extends wC {
|
|
|
72032
72032
|
id: M,
|
|
72033
72033
|
deleted: !1,
|
|
72034
72034
|
popupRef: J,
|
|
72035
|
-
richText:
|
|
72036
|
-
comment: (
|
|
72035
|
+
richText: D,
|
|
72036
|
+
comment: (f == null ? void 0 : f.str) || null,
|
|
72037
72037
|
creationDate: z,
|
|
72038
72038
|
modificationDate: Q
|
|
72039
72039
|
};
|
|
@@ -73008,8 +73008,8 @@ class kG extends Fg {
|
|
|
73008
73008
|
let [y, M, N, S] = W.subarray(0, 4);
|
|
73009
73009
|
p.set([NaN, NaN, NaN, NaN, y, M], 0);
|
|
73010
73010
|
for (let J = 4; J < B; J += 2) {
|
|
73011
|
-
const
|
|
73012
|
-
p.set(Fg.createBezierPoints(y, M, N, S,
|
|
73011
|
+
const D = W[J], f = W[J + 1];
|
|
73012
|
+
p.set(Fg.createBezierPoints(y, M, N, S, D, f), (J - 2) * 3), [y, M, N, S] = [N, S, D, f];
|
|
73013
73013
|
}
|
|
73014
73014
|
}
|
|
73015
73015
|
}
|
|
@@ -73423,10 +73423,10 @@ class Sl {
|
|
|
73423
73423
|
alpha: !0,
|
|
73424
73424
|
willReadFrequently: !0
|
|
73425
73425
|
}), o.font = r, o.filter = "grayscale(1)", o.fillStyle = "white", o.fillRect(0, 0, y, M), o.fillStyle = "black", o.fillText(g, y * (p - 1) / 2, M * (3 - p) / 2);
|
|
73426
|
-
const N = H(this, xI, S1).call(this, o.getImageData(0, 0, y, M).data), S = H(this, xI, OJ).call(this, N), J = H(this, xI, K1).call(this, S),
|
|
73426
|
+
const N = H(this, xI, S1).call(this, o.getImageData(0, 0, y, M).data), S = H(this, xI, OJ).call(this, N), J = H(this, xI, K1).call(this, S), D = H(this, xI, D1).call(this, N, y, M, J);
|
|
73427
73427
|
return this.processDrawnLines({
|
|
73428
73428
|
lines: {
|
|
73429
|
-
curves:
|
|
73429
|
+
curves: D,
|
|
73430
73430
|
width: y,
|
|
73431
73431
|
height: M
|
|
73432
73432
|
},
|
|
@@ -73484,11 +73484,11 @@ class Sl {
|
|
|
73484
73484
|
y[0] = B[0] * m, y[1] = B[1] * b, M.set([NaN, NaN, NaN, NaN, y[0], y[1]], 0);
|
|
73485
73485
|
continue;
|
|
73486
73486
|
}
|
|
73487
|
-
let [N, S, J,
|
|
73488
|
-
N *= m, S *= b, J *= m,
|
|
73489
|
-
for (let
|
|
73490
|
-
const z = y[
|
|
73491
|
-
M.set(Fg.createBezierPoints(N, S, J,
|
|
73487
|
+
let [N, S, J, D] = B;
|
|
73488
|
+
N *= m, S *= b, J *= m, D *= b, y.set([N, S, J, D], 0), M.set([NaN, NaN, NaN, NaN, N, S], 0);
|
|
73489
|
+
for (let f = 4; f < p; f += 2) {
|
|
73490
|
+
const z = y[f] = B[f] * m, Q = y[f + 1] = B[f + 1] * b;
|
|
73491
|
+
M.set(Fg.createBezierPoints(N, S, J, D, z, Q), (f - 2) * 3), [N, S, J, D] = [J, D, z, Q];
|
|
73492
73492
|
}
|
|
73493
73493
|
}
|
|
73494
73494
|
if (r.length === 0)
|
|
@@ -73639,9 +73639,9 @@ Kc = new WeakMap(), xI = new WeakSet(), f1 = function(g, I, e, t) {
|
|
|
73639
73639
|
};
|
|
73640
73640
|
l.push(W);
|
|
73641
73641
|
let B;
|
|
73642
|
-
for (const
|
|
73643
|
-
if (
|
|
73644
|
-
B =
|
|
73642
|
+
for (const f of l)
|
|
73643
|
+
if (f.id === s) {
|
|
73644
|
+
B = f;
|
|
73645
73645
|
break;
|
|
73646
73646
|
}
|
|
73647
73647
|
B ? B.isHole ? W.parent = Z ? B.parent : s : W.parent = Z ? s : B.parent : W.parent = Z ? s : 0;
|
|
@@ -73653,18 +73653,18 @@ Kc = new WeakMap(), xI = new WeakSet(), f1 = function(g, I, e, t) {
|
|
|
73653
73653
|
let y = d(this, un)[2 * p], M = d(this, un)[2 * p + 1];
|
|
73654
73654
|
const N = o + y, S = a + M;
|
|
73655
73655
|
m = N, b = S;
|
|
73656
|
-
let J = o,
|
|
73656
|
+
let J = o, D = a;
|
|
73657
73657
|
for (; ; ) {
|
|
73658
|
-
const
|
|
73659
|
-
y = d(this, un)[2 *
|
|
73660
|
-
const z = J + y, Q =
|
|
73658
|
+
const f = H(this, xI, TJ).call(this, A, I, J, D, m, b, 1);
|
|
73659
|
+
y = d(this, un)[2 * f], M = d(this, un)[2 * f + 1];
|
|
73660
|
+
const z = J + y, Q = D + M;
|
|
73661
73661
|
G.push(Q, z);
|
|
73662
|
-
const tg = J * I +
|
|
73663
|
-
if (A[tg + 1] === 0 ? A[tg] = -n : A[tg] === 1 && (A[tg] = n), z === o && Q === a && J === N &&
|
|
73662
|
+
const tg = J * I + D;
|
|
73663
|
+
if (A[tg + 1] === 0 ? A[tg] = -n : A[tg] === 1 && (A[tg] = n), z === o && Q === a && J === N && D === S) {
|
|
73664
73664
|
A[r] !== 1 && (s = Math.abs(A[r]));
|
|
73665
73665
|
break;
|
|
73666
73666
|
} else
|
|
73667
|
-
m = J, b =
|
|
73667
|
+
m = J, b = D, J = z, D = Q;
|
|
73668
73668
|
}
|
|
73669
73669
|
}
|
|
73670
73670
|
}
|
|
@@ -73707,8 +73707,8 @@ Kc = new WeakMap(), xI = new WeakSet(), f1 = function(g, I, e, t) {
|
|
|
73707
73707
|
const J = G + S - l;
|
|
73708
73708
|
if (J < 0 || J >= I)
|
|
73709
73709
|
continue;
|
|
73710
|
-
const
|
|
73711
|
-
B +=
|
|
73710
|
+
const D = g[N * I + J], f = n[M * A + S] * o[Math.abs(D - W)];
|
|
73711
|
+
B += D * f, p += f;
|
|
73712
73712
|
}
|
|
73713
73713
|
}
|
|
73714
73714
|
const y = u[Z] = Math.round(B / p);
|
|
@@ -74239,10 +74239,10 @@ class F1 extends wC {
|
|
|
74239
74239
|
creationDate: S,
|
|
74240
74240
|
modificationDate: J
|
|
74241
74241
|
},
|
|
74242
|
-
container:
|
|
74242
|
+
container: D,
|
|
74243
74243
|
parent: {
|
|
74244
74244
|
page: {
|
|
74245
|
-
pageNumber:
|
|
74245
|
+
pageNumber: f
|
|
74246
74246
|
}
|
|
74247
74247
|
},
|
|
74248
74248
|
canvas: z
|
|
@@ -74251,13 +74251,13 @@ class F1 extends wC {
|
|
|
74251
74251
|
z ? (delete I.canvas, {
|
|
74252
74252
|
id: Q,
|
|
74253
74253
|
bitmap: tg
|
|
74254
|
-
} = t.imageManager.getFromCanvas(
|
|
74254
|
+
} = t.imageManager.getFromCanvas(D.id, z), z.remove()) : (A = !0, I._hasNoCanvas = !0);
|
|
74255
74255
|
const ig = ((G = await e._structTree.getAriaAttributes(`${tu}${B}`)) == null ? void 0 : G.get("aria-label")) || "";
|
|
74256
74256
|
i = I = {
|
|
74257
74257
|
annotationType: dI.STAMP,
|
|
74258
74258
|
bitmapId: Q,
|
|
74259
74259
|
bitmap: tg,
|
|
74260
|
-
pageIndex:
|
|
74260
|
+
pageIndex: f - 1,
|
|
74261
74261
|
rect: Z.slice(0),
|
|
74262
74262
|
rotation: W,
|
|
74263
74263
|
annotationElementId: B,
|
|
@@ -75255,15 +75255,15 @@ const md = new UPg(), EPg = ["src"], ua = /* @__PURE__ */ sg({
|
|
|
75255
75255
|
const B = A.value.getBoundingClientRect(), p = W.getViewport({ scale: 1 }), y = B.width / p.width, M = B.height / p.height, N = Math.min(y, M), S = window.devicePixelRatio || 1, J = W.getViewport({
|
|
75256
75256
|
scale: N * S,
|
|
75257
75257
|
rotation: i.rotate
|
|
75258
|
-
}),
|
|
75259
|
-
if (
|
|
75258
|
+
}), D = A.value.getContext("2d");
|
|
75259
|
+
if (D === null) throw new Error("Context not found");
|
|
75260
75260
|
A.value.width = J.width, A.value.height = J.height;
|
|
75261
|
-
const
|
|
75261
|
+
const f = W.render({
|
|
75262
75262
|
canvas: A.value,
|
|
75263
|
-
canvasContext:
|
|
75263
|
+
canvasContext: D,
|
|
75264
75264
|
viewport: J
|
|
75265
75265
|
});
|
|
75266
|
-
s =
|
|
75266
|
+
s = f, await f.promise, t("load");
|
|
75267
75267
|
} catch (u) {
|
|
75268
75268
|
if (u && typeof u == "object" && "name" in u && (u == null ? void 0 : u.name) === "RenderingCancelledException")
|
|
75269
75269
|
return;
|
|
@@ -76668,12 +76668,12 @@ function ev(C, g) {
|
|
|
76668
76668
|
var Dg = r(Bg.startX, Bg.startY, s, Bg);
|
|
76669
76669
|
return A = Dg.x, n = Dg.y, a("panzoomreset", Bg);
|
|
76670
76670
|
}
|
|
76671
|
-
var M, N, S, J,
|
|
76671
|
+
var M, N, S, J, D, f, z = [];
|
|
76672
76672
|
function Q(ng) {
|
|
76673
76673
|
if (!m6g(ng.target, g)) {
|
|
76674
76674
|
U1(z, ng), l = !0, g.handleStartEvent(ng), M = A, N = n, o("panzoomstart", { x: A, y: n, scale: s, isSVG: I, originalEvent: ng }, g);
|
|
76675
76675
|
var Bg = xD(z);
|
|
76676
|
-
S = Bg.clientX, J = Bg.clientY,
|
|
76676
|
+
S = Bg.clientX, J = Bg.clientY, D = s, f = cV(z);
|
|
76677
76677
|
}
|
|
76678
76678
|
}
|
|
76679
76679
|
function tg(ng) {
|
|
@@ -76681,9 +76681,9 @@ function ev(C, g) {
|
|
|
76681
76681
|
U1(z, ng);
|
|
76682
76682
|
var Bg = xD(z), Dg = z.length > 1, Mg = s;
|
|
76683
76683
|
if (Dg) {
|
|
76684
|
-
|
|
76685
|
-
var rg = cV(z) -
|
|
76686
|
-
Mg = u(rg * g.step / 80 +
|
|
76684
|
+
f === 0 && (f = cV(z));
|
|
76685
|
+
var rg = cV(z) - f;
|
|
76686
|
+
Mg = u(rg * g.step / 80 + D).scale, B(Mg, Bg, { animate: !1 }, ng);
|
|
76687
76687
|
}
|
|
76688
76688
|
(!Dg || g.pinchAndPan) && m(M + (Bg.clientX - S) / Mg, N + (Bg.clientY - J) / Mg, { animate: !1 }, ng);
|
|
76689
76689
|
}
|
|
@@ -76887,9 +76887,9 @@ const G6g = {
|
|
|
76887
76887
|
fn();
|
|
76888
76888
|
}
|
|
76889
76889
|
);
|
|
76890
|
-
const
|
|
76890
|
+
const D = () => {
|
|
76891
76891
|
i.isClickOnExit && e("close");
|
|
76892
|
-
},
|
|
76892
|
+
}, f = (ug) => {
|
|
76893
76893
|
_A(ug);
|
|
76894
76894
|
}, z = (ug) => {
|
|
76895
76895
|
i.sideBarIndex = ug;
|
|
@@ -76943,7 +76943,7 @@ const G6g = {
|
|
|
76943
76943
|
(Zg === o.value || Zg === s.value || Zg === l.value) && (i.isClickOnExit = !0);
|
|
76944
76944
|
}, Ng = (ug) => {
|
|
76945
76945
|
const Zg = ug.target;
|
|
76946
|
-
(Zg === o.value || Zg === s.value || Zg === l.value) &&
|
|
76946
|
+
(Zg === o.value || Zg === s.value || Zg === l.value) && D(), i.isClickOnExit = !1;
|
|
76947
76947
|
}, Vg = (ug) => {
|
|
76948
76948
|
i.isMobile && (i.startXForMobile = ug.clientX, i.startYForMobile = ug.clientY, i.isPointerActive = !0);
|
|
76949
76949
|
}, pI = (ug) => {
|
|
@@ -77091,7 +77091,7 @@ const G6g = {
|
|
|
77091
77091
|
height: C.height,
|
|
77092
77092
|
width: C.width,
|
|
77093
77093
|
"animate-type": _(JR).fade,
|
|
77094
|
-
onClose:
|
|
77094
|
+
onClose: D,
|
|
77095
77095
|
onEndAnimation: Zg[3] || (Zg[3] = (Pg) => ug.$emit("end-animation")),
|
|
77096
77096
|
onUnmounted: Zg[4] || (Zg[4] = (Pg) => ug.$emit("unmounted")),
|
|
77097
77097
|
onPointerup: BC,
|
|
@@ -77209,7 +77209,7 @@ const G6g = {
|
|
|
77209
77209
|
ref_key: "itemRef",
|
|
77210
77210
|
ref: s,
|
|
77211
77211
|
class: "slider-modal__item",
|
|
77212
|
-
onClick: eI(
|
|
77212
|
+
onClick: eI(D, ["self"]),
|
|
77213
77213
|
onPointerdown: Vg,
|
|
77214
77214
|
onPointermove: vC,
|
|
77215
77215
|
onTouchstart: pI,
|
|
@@ -77240,7 +77240,7 @@ const G6g = {
|
|
|
77240
77240
|
ref_key: "itemRef",
|
|
77241
77241
|
ref: s,
|
|
77242
77242
|
class: "slider-modal__item",
|
|
77243
|
-
onClick: eI(
|
|
77243
|
+
onClick: eI(D, ["self"]),
|
|
77244
77244
|
onPointerdown: Vg,
|
|
77245
77245
|
onPointermove: vC,
|
|
77246
77246
|
onTouchstart: eI(pI, ["prevent"]),
|
|
@@ -77264,7 +77264,7 @@ const G6g = {
|
|
|
77264
77264
|
], 544)) : (x(), U("div", {
|
|
77265
77265
|
key: 3,
|
|
77266
77266
|
class: "slider-modal__item",
|
|
77267
|
-
onClick: eI(
|
|
77267
|
+
onClick: eI(D, ["self"]),
|
|
77268
77268
|
onPointerdown: Vg,
|
|
77269
77269
|
onPointermove: vC,
|
|
77270
77270
|
onTouchstart: pI,
|
|
@@ -77316,7 +77316,7 @@ const G6g = {
|
|
|
77316
77316
|
}]),
|
|
77317
77317
|
key: De,
|
|
77318
77318
|
"is-active": De === i.defaultIndex,
|
|
77319
|
-
onClick: (Ss) =>
|
|
77319
|
+
onClick: (Ss) => f(De)
|
|
77320
77320
|
}, {
|
|
77321
77321
|
default: vg(() => {
|
|
77322
77322
|
var Ss;
|
|
@@ -77559,7 +77559,7 @@ const G6g = {
|
|
|
77559
77559
|
), g({
|
|
77560
77560
|
setSlide: B
|
|
77561
77561
|
}), (p, y) => {
|
|
77562
|
-
var M, N, S, J,
|
|
77562
|
+
var M, N, S, J, D;
|
|
77563
77563
|
return x(), U("div", {
|
|
77564
77564
|
class: "slider-yui-kit",
|
|
77565
77565
|
"data-testid": I.dataTestid
|
|
@@ -77617,21 +77617,21 @@ const G6g = {
|
|
|
77617
77617
|
class: "slider__item",
|
|
77618
77618
|
src: e.filePath ?? "",
|
|
77619
77619
|
"data-testid": `${I.dataTestid}-Image`,
|
|
77620
|
-
onClick: y[0] || (y[0] = (
|
|
77620
|
+
onClick: y[0] || (y[0] = (f) => s(e.file)),
|
|
77621
77621
|
onError: n,
|
|
77622
77622
|
onLoad: A
|
|
77623
77623
|
}, null, 40, o8g)) : u(((N = e.file) == null ? void 0 : N.path) ?? "") ? (x(), Og(x2, {
|
|
77624
77624
|
key: 1,
|
|
77625
77625
|
class: "slider__item",
|
|
77626
77626
|
src: ((S = e.file) == null ? void 0 : S.path) ?? "",
|
|
77627
|
-
onClick: y[1] || (y[1] = (
|
|
77627
|
+
onClick: y[1] || (y[1] = (f) => s(e.file)),
|
|
77628
77628
|
onLoad: A,
|
|
77629
77629
|
onError: n
|
|
77630
77630
|
}, null, 8, ["src"])) : m(((J = e.file) == null ? void 0 : J.path) ?? "") ? (x(), Og(ua, {
|
|
77631
77631
|
key: 2,
|
|
77632
77632
|
class: "slider-yui-kit__pdf-preview slider__item",
|
|
77633
|
-
src: (
|
|
77634
|
-
onClick: y[2] || (y[2] = (
|
|
77633
|
+
src: (D = e.file) == null ? void 0 : D.path,
|
|
77634
|
+
onClick: y[2] || (y[2] = (f) => s(e.file)),
|
|
77635
77635
|
onLoad: A,
|
|
77636
77636
|
onError: n
|
|
77637
77637
|
}, null, 8, ["src"])) : pg("", !0)
|
|
@@ -78337,10 +78337,10 @@ const H8g = /* @__PURE__ */ sg({
|
|
|
78337
78337
|
for (const m of u)
|
|
78338
78338
|
m.type === "attributes" && m.attributeName === "style" && a.style.right !== r && (a.style.right = r);
|
|
78339
78339
|
}, l = () => {
|
|
78340
|
-
var Z, W, B, p, y, M, N, S, J,
|
|
78340
|
+
var Z, W, B, p, y, M, N, S, J, D, f, z, Q, tg, ig, P, Ig, bg, ng, Bg, Dg, Mg, rg, Ng;
|
|
78341
78341
|
if (!t.value) return;
|
|
78342
78342
|
const a = t.value.querySelector(".ps__thumb-y"), r = t.value.querySelector(".ps__thumb-x"), u = t.value.querySelector(".ps__rail-y"), m = t.value.querySelector(".ps__rail-x");
|
|
78343
|
-
a.style.background = ((W = (Z = e.thrumbStyle) == null ? void 0 : Z.y) == null ? void 0 : W.background) || "var(--primary-color)", a.style.width = ((p = (B = e.thrumbStyle) == null ? void 0 : B.y) == null ? void 0 : p.width) || "6px", a.style.right = "0px", r.style.background = ((M = (y = e.thrumbStyle) == null ? void 0 : y.x) == null ? void 0 : M.background) || "var(--primary-color)", r.style.width = ((S = (N = e.thrumbStyle) == null ? void 0 : N.x) == null ? void 0 : S.width) || "6px", r.style.right = "0px", u.style.background = ((
|
|
78343
|
+
a.style.background = ((W = (Z = e.thrumbStyle) == null ? void 0 : Z.y) == null ? void 0 : W.background) || "var(--primary-color)", a.style.width = ((p = (B = e.thrumbStyle) == null ? void 0 : B.y) == null ? void 0 : p.width) || "6px", a.style.right = "0px", r.style.background = ((M = (y = e.thrumbStyle) == null ? void 0 : y.x) == null ? void 0 : M.background) || "var(--primary-color)", r.style.width = ((S = (N = e.thrumbStyle) == null ? void 0 : N.x) == null ? void 0 : S.width) || "6px", r.style.right = "0px", u.style.background = ((D = (J = e.railStyle) == null ? void 0 : J.y) == null ? void 0 : D.background) || "var(--button-neutral-color)", u.style.width = ((z = (f = e.thrumbStyle) == null ? void 0 : f.y) == null ? void 0 : z.width) || "6px", u.style.right = ((tg = (Q = e.railStyle) == null ? void 0 : Q.y) == null ? void 0 : tg.right) || "0px", m.style.background = ((P = (ig = e.railStyle) == null ? void 0 : ig.x) == null ? void 0 : P.background) || "var(--button-neutral-color)", m.style.width = ((bg = (Ig = e.thrumbStyle) == null ? void 0 : Ig.x) == null ? void 0 : bg.width) || "6px", m.style.right = ((Bg = (ng = e.railStyle) == null ? void 0 : ng.x) == null ? void 0 : Bg.right) || "0px";
|
|
78344
78344
|
const b = new MutationObserver(
|
|
78345
78345
|
s(u, ((Mg = (Dg = e.railStyle) == null ? void 0 : Dg.y) == null ? void 0 : Mg.right) || "0px")
|
|
78346
78346
|
), G = new MutationObserver(
|
|
@@ -78549,16 +78549,16 @@ const D8g = ["data-testid", "checked", "disabled"], S8g = /* @__PURE__ */ sg({
|
|
|
78549
78549
|
};
|
|
78550
78550
|
I || (y["--hint-top"] = "0", y["--hint-left"] = "0");
|
|
78551
78551
|
const M = i.value.getBoundingClientRect(), N = A.value.getBoundingClientRect(), S = window.pageYOffset || document.documentElement.scrollTop, J = window.pageXOffset || document.documentElement.scrollLeft;
|
|
78552
|
-
let
|
|
78552
|
+
let D = M.top + S, f = M.left + J;
|
|
78553
78553
|
const z = i.value.closest("dialog");
|
|
78554
78554
|
if (z) {
|
|
78555
78555
|
const Ig = z.getBoundingClientRect();
|
|
78556
|
-
|
|
78556
|
+
D = M.top - Ig.top, f = M.left - Ig.left;
|
|
78557
78557
|
const bg = z.scrollTop, ng = z.scrollLeft;
|
|
78558
|
-
|
|
78558
|
+
D += bg, f += ng;
|
|
78559
78559
|
}
|
|
78560
78560
|
const Q = M.width, tg = M.height, ig = N.width, P = N.height;
|
|
78561
|
-
I || (y["--hint-top"] = `${
|
|
78561
|
+
I || (y["--hint-top"] = `${D}px`, y["--hint-left"] = `${f}px`), y["--tooltip-width"] = `${Q}px`, y["--tooltip-height"] = `${tg}px`, y["--hint-width"] = `${ig}px`, y["--hint-height"] = `${P}px`, A.value && qI(y, A.value);
|
|
78562
78562
|
});
|
|
78563
78563
|
}, m = () => {
|
|
78564
78564
|
requestAnimationFrame(() => {
|
|
@@ -78679,24 +78679,24 @@ const D8g = ["data-testid", "checked", "disabled"], S8g = /* @__PURE__ */ sg({
|
|
|
78679
78679
|
}, G = () => {
|
|
78680
78680
|
requestAnimationFrame(() => {
|
|
78681
78681
|
if (!l.value || !o.value || !t.isShow) return;
|
|
78682
|
-
const N = {}, S = l.value.getBoundingClientRect(), J = window.pageYOffset || document.documentElement.scrollTop,
|
|
78683
|
-
let
|
|
78682
|
+
const N = {}, S = l.value.getBoundingClientRect(), J = window.pageYOffset || document.documentElement.scrollTop, D = window.pageXOffset || document.documentElement.scrollLeft;
|
|
78683
|
+
let f = S.bottom + J, z = S.left + D;
|
|
78684
78684
|
const Q = l.value.closest("dialog");
|
|
78685
78685
|
if (Q) {
|
|
78686
78686
|
const ig = Q.getBoundingClientRect();
|
|
78687
|
-
|
|
78687
|
+
f = S.top - ig.top, z = S.left - ig.left;
|
|
78688
78688
|
const P = Q.scrollTop, Ig = Q.scrollLeft;
|
|
78689
|
-
|
|
78689
|
+
f += P, z += Ig, f += 10;
|
|
78690
78690
|
}
|
|
78691
|
-
|
|
78691
|
+
f += 10, N["--popover-top"] = `${f}px`, A || (N["--popover-left"] = `${z}px`), qI(N, o.value), (() => {
|
|
78692
78692
|
if (!o.value) return;
|
|
78693
78693
|
const ig = o.value.getBoundingClientRect();
|
|
78694
78694
|
ig.right > window.innerWidth && (A ? N["--popover-right"] = "anchor(right) " : N["--popover-right"] = `${S.right - ig.width}px`);
|
|
78695
78695
|
})(), N["--popover-right"] && (N.left = "auto", qI(N, o.value));
|
|
78696
78696
|
});
|
|
78697
78697
|
}, Z = (N) => {
|
|
78698
|
-
const S = N.getBoundingClientRect(), J = document.elementFromPoint(S.left, S.top),
|
|
78699
|
-
!(J && N.contains(J)) && !(
|
|
78698
|
+
const S = N.getBoundingClientRect(), J = document.elementFromPoint(S.left, S.top), D = document.elementFromPoint(S.right, S.bottom);
|
|
78699
|
+
!(J && N.contains(J)) && !(D && N.contains(D)) && m();
|
|
78700
78700
|
}, W = new IntersectionObserver((N) => {
|
|
78701
78701
|
N.forEach((S) => {
|
|
78702
78702
|
S.isIntersecting || m();
|
|
@@ -78792,13 +78792,13 @@ const D8g = ["data-testid", "checked", "disabled"], S8g = /* @__PURE__ */ sg({
|
|
|
78792
78792
|
class: "popover-yui-kit__options",
|
|
78793
78793
|
"data-testid": `${I.dataTestid}-PopoverShow-Options`
|
|
78794
78794
|
}, [
|
|
78795
|
-
(x(!0), U(WI, null, jI(I.options, (
|
|
78795
|
+
(x(!0), U(WI, null, jI(I.options, (D, f) => (x(), U("div", {
|
|
78796
78796
|
class: "popover-yui-kit__options__item",
|
|
78797
|
-
key:
|
|
78798
|
-
style: ue(
|
|
78799
|
-
onClick: eI((z) => b(
|
|
78800
|
-
"data-testid": `${I.dataTestid}-Item${
|
|
78801
|
-
}, tI(
|
|
78797
|
+
key: f,
|
|
78798
|
+
style: ue(D.style),
|
|
78799
|
+
onClick: eI((z) => b(D), ["stop"]),
|
|
78800
|
+
"data-testid": `${I.dataTestid}-Item${f}`
|
|
78801
|
+
}, tI(D.value), 13, U8g))), 128))
|
|
78802
78802
|
], 8, Q8g)) : pg("", !0)
|
|
78803
78803
|
];
|
|
78804
78804
|
}, !0)
|
|
@@ -79782,9 +79782,9 @@ const B_g = ["id", "data-testid"], p_g = ["data-testid"], y_g = ["data-testid"],
|
|
|
79782
79782
|
);
|
|
79783
79783
|
}, J = () => {
|
|
79784
79784
|
u(), B(), r(), G();
|
|
79785
|
-
}, f = () => {
|
|
79786
|
-
t.value && t.value.addEventListener("scroll", M);
|
|
79787
79785
|
}, D = () => {
|
|
79786
|
+
t.value && t.value.addEventListener("scroll", M);
|
|
79787
|
+
}, f = () => {
|
|
79788
79788
|
t.value && (t.value.scrollTop = 0);
|
|
79789
79789
|
}, z = () => {
|
|
79790
79790
|
t.value && (t.value.scrollHeight <= t.value.clientHeight ? e("unmount-paginate", !0) : e("unmount-paginate", !1));
|
|
@@ -79800,10 +79800,10 @@ const B_g = ["id", "data-testid"], p_g = ["data-testid"], y_g = ["data-testid"],
|
|
|
79800
79800
|
}), tg.observe(P);
|
|
79801
79801
|
};
|
|
79802
79802
|
return g({
|
|
79803
|
-
scrollToTop:
|
|
79803
|
+
scrollToTop: f,
|
|
79804
79804
|
setHeightSlot: S
|
|
79805
79805
|
}), lI(() => {
|
|
79806
|
-
N(),
|
|
79806
|
+
N(), D(), i.value && ig(i.value), A.value && ig(A.value), window.addEventListener("resize", N), e("on-mounted");
|
|
79807
79807
|
}), EA(() => {
|
|
79808
79808
|
window.removeEventListener("resize", N);
|
|
79809
79809
|
}), (P, Ig) => (x(), U("div", {
|
|
@@ -80193,68 +80193,68 @@ const B_g = ["id", "data-testid"], p_g = ["data-testid"], y_g = ["data-testid"],
|
|
|
80193
80193
|
), eg(
|
|
80194
80194
|
() => I.onUnmountPagination,
|
|
80195
80195
|
() => {
|
|
80196
|
-
|
|
80196
|
+
D();
|
|
80197
80197
|
}
|
|
80198
80198
|
);
|
|
80199
80199
|
const o = X(""), a = j(() => {
|
|
80200
|
-
let
|
|
80201
|
-
return o.value ? (xh(I.options) ?
|
|
80200
|
+
let f = [];
|
|
80201
|
+
return o.value ? (xh(I.options) ? f = I.options.filter((z) => {
|
|
80202
80202
|
var Q;
|
|
80203
80203
|
return z.value.toLowerCase().includes(o.value.toLowerCase()) || ((Q = z == null ? void 0 : z.hint) == null ? void 0 : Q.toLowerCase().includes(o.value.toLowerCase()));
|
|
80204
|
-
}) :
|
|
80204
|
+
}) : f = I.options.filter((z) => z.value.toLowerCase().includes(o.value.toLowerCase())), f) : (xh(I.options), f = I.options, f);
|
|
80205
80205
|
}), r = j(() => {
|
|
80206
80206
|
var z;
|
|
80207
80207
|
return ((z = I.options.find((Q) => Jn.isArray(n.value) ? n.value.includes(Q.key) : Q.key === String(n.value))) == null ? void 0 : z.value) || I.defaultOption;
|
|
80208
|
-
}), u = j(() => I.options.filter((
|
|
80208
|
+
}), u = j(() => I.options.filter((f) => Jn.isArray(n.value) ? n.value.includes(f.key) && f.value !== r.value : f.key === String(n.value))), m = j(() => I.options.filter((f) => Jn.isArray(n.value) ? n.value.includes(f.key) && f.value === r.value : f.key === String(n.value))), b = j(() => {
|
|
80209
80209
|
var Q, tg, ig;
|
|
80210
|
-
const
|
|
80210
|
+
const f = I.options;
|
|
80211
80211
|
let z;
|
|
80212
|
-
return Jn.isArray(n.value) ? xh(
|
|
80212
|
+
return Jn.isArray(n.value) ? xh(f) ? z = (Q = f.find(
|
|
80213
80213
|
(P) => P.value === r.value
|
|
80214
|
-
)) == null ? void 0 : Q.hint : z = (tg =
|
|
80214
|
+
)) == null ? void 0 : Q.hint : z = (tg = f.find(
|
|
80215
80215
|
(P) => P.value === r.value
|
|
80216
|
-
)) == null ? void 0 : tg.value : z = (ig =
|
|
80216
|
+
)) == null ? void 0 : tg.value : z = (ig = f.find((P) => P.key === String(n.value))) == null ? void 0 : ig.value, z || "";
|
|
80217
80217
|
}), G = () => {
|
|
80218
80218
|
e.isHovered = !0;
|
|
80219
80219
|
}, Z = () => {
|
|
80220
80220
|
e.isHovered = !1;
|
|
80221
80221
|
}, W = j(() => {
|
|
80222
|
-
var
|
|
80223
|
-
return xh(I.options) ? e.isHovered && !!b.value : ((
|
|
80222
|
+
var f;
|
|
80223
|
+
return xh(I.options) ? e.isHovered && !!b.value : ((f = i.value) == null ? void 0 : f.isSpanOverflow) || !1;
|
|
80224
80224
|
}), B = j(() => Jn.isArray(n.value) ? I.isPosibleToClear && n.value.length > 0 : I.isPosibleToClear && n.value), p = j(
|
|
80225
80225
|
() => Jn.isArray(n.value) && n.value.length > 1
|
|
80226
|
-
), y = j(() => Jn.isArray(n.value) ? n.value.length : null), M = async (
|
|
80226
|
+
), y = j(() => Jn.isArray(n.value) ? n.value.length : null), M = async (f) => {
|
|
80227
80227
|
if (I.disabled) {
|
|
80228
80228
|
s.value = !1;
|
|
80229
80229
|
return;
|
|
80230
80230
|
}
|
|
80231
80231
|
if (Jn.isArray(n.value))
|
|
80232
|
-
n.value.includes(
|
|
80232
|
+
n.value.includes(f) ? n.value = n.value.filter((z) => z !== f) : n.value = [...n.value, f];
|
|
80233
80233
|
else {
|
|
80234
|
-
let z = I.options.find((Q) => Q.key ===
|
|
80235
|
-
!z && xh(I.options) && (z = I.options.find((Q) => Q.hint ===
|
|
80234
|
+
let z = I.options.find((Q) => Q.key === f);
|
|
80235
|
+
!z && xh(I.options) && (z = I.options.find((Q) => Q.hint === f)), n.value = (z == null ? void 0 : z.key) || "", s.value = !1;
|
|
80236
80236
|
}
|
|
80237
80237
|
await YI(), t("change", String(n.value));
|
|
80238
|
-
}, N = (
|
|
80238
|
+
}, N = (f) => {
|
|
80239
80239
|
if (I.disabled) {
|
|
80240
80240
|
s.value = !1;
|
|
80241
80241
|
return;
|
|
80242
80242
|
}
|
|
80243
|
-
s.value =
|
|
80243
|
+
s.value = f;
|
|
80244
80244
|
}, S = async () => {
|
|
80245
80245
|
I.disabled || (Jn.isArray(n.value) ? n.value = [] : n.value = "", await YI(), t("change", n.value));
|
|
80246
|
-
}, J = new IntersectionObserver((
|
|
80247
|
-
|
|
80246
|
+
}, J = new IntersectionObserver((f) => {
|
|
80247
|
+
f.forEach((z) => {
|
|
80248
80248
|
z.isIntersecting && t("unmount-pagination");
|
|
80249
80249
|
});
|
|
80250
|
-
}),
|
|
80250
|
+
}), D = () => {
|
|
80251
80251
|
A.value && I.onUnmountPagination && (J.unobserve(A.value), J.observe(A.value));
|
|
80252
80252
|
};
|
|
80253
80253
|
return lI(() => {
|
|
80254
|
-
|
|
80254
|
+
D();
|
|
80255
80255
|
}), EA(() => {
|
|
80256
80256
|
J.disconnect();
|
|
80257
|
-
}), (
|
|
80257
|
+
}), (f, z) => (x(), Og(ZG, {
|
|
80258
80258
|
"header-classes": "filter__header",
|
|
80259
80259
|
"options-classes": "filter__options",
|
|
80260
80260
|
"is-opened": s.value,
|
|
@@ -80265,7 +80265,7 @@ const B_g = ["id", "data-testid"], p_g = ["data-testid"], y_g = ["data-testid"],
|
|
|
80265
80265
|
onChange: N
|
|
80266
80266
|
}, CP({
|
|
80267
80267
|
header: vg(() => [
|
|
80268
|
-
Qg(
|
|
80268
|
+
Qg(f.$slots, "header", {}, () => [
|
|
80269
80269
|
$("span", {
|
|
80270
80270
|
class: fg([
|
|
80271
80271
|
"filter__header-title",
|
|
@@ -80351,8 +80351,8 @@ const B_g = ["id", "data-testid"], p_g = ["data-testid"], y_g = ["data-testid"],
|
|
|
80351
80351
|
"onUpdate:modelValue": z[2] || (z[2] = (Q) => o.value = Q),
|
|
80352
80352
|
"show-history": !1,
|
|
80353
80353
|
"data-testid": `${I.dataTestid}-Search`,
|
|
80354
|
-
onInput: z[3] || (z[3] = (Q) =>
|
|
80355
|
-
onEnter: z[4] || (z[4] = (Q) =>
|
|
80354
|
+
onInput: z[3] || (z[3] = (Q) => f.$emit("unmount-search", Q)),
|
|
80355
|
+
onEnter: z[4] || (z[4] = (Q) => f.$emit("unmount-search-enter", Q))
|
|
80356
80356
|
}, null, 8, ["modelValue", "data-testid"])) : pg("", !0),
|
|
80357
80357
|
cg(SM, {
|
|
80358
80358
|
"data-testid": `${I.dataTestid}-Options`,
|
|
@@ -80381,10 +80381,10 @@ const B_g = ["id", "data-testid"], p_g = ["data-testid"], y_g = ["data-testid"],
|
|
|
80381
80381
|
]),
|
|
80382
80382
|
_: 2
|
|
80383
80383
|
}, [
|
|
80384
|
-
|
|
80384
|
+
f.$slots.body ? {
|
|
80385
80385
|
name: "body",
|
|
80386
80386
|
fn: vg((Q) => [
|
|
80387
|
-
Qg(
|
|
80387
|
+
Qg(f.$slots, "body", {
|
|
80388
80388
|
closeOpenList: Q.closeOpenList
|
|
80389
80389
|
}, void 0, !0)
|
|
80390
80390
|
]),
|
|
@@ -80668,9 +80668,9 @@ const B_g = ["id", "data-testid"], p_g = ["data-testid"], y_g = ["data-testid"],
|
|
|
80668
80668
|
);
|
|
80669
80669
|
}, J = () => {
|
|
80670
80670
|
u(), B(), r(), G();
|
|
80671
|
-
}, f = () => {
|
|
80672
|
-
t.value && t.value.addEventListener("scroll", M);
|
|
80673
80671
|
}, D = () => {
|
|
80672
|
+
t.value && t.value.addEventListener("scroll", M);
|
|
80673
|
+
}, f = () => {
|
|
80674
80674
|
t.value && (t.value.scrollTop = 0);
|
|
80675
80675
|
}, z = new MutationObserver(() => {
|
|
80676
80676
|
N();
|
|
@@ -80684,10 +80684,10 @@ const B_g = ["id", "data-testid"], p_g = ["data-testid"], y_g = ["data-testid"],
|
|
|
80684
80684
|
}), Q.observe(ig);
|
|
80685
80685
|
};
|
|
80686
80686
|
return g({
|
|
80687
|
-
scrollToTop:
|
|
80687
|
+
scrollToTop: f,
|
|
80688
80688
|
setHeightSlot: S
|
|
80689
80689
|
}), lI(() => {
|
|
80690
|
-
N(),
|
|
80690
|
+
N(), D(), i.value && tg(i.value), A.value && tg(A.value), window.addEventListener("resize", N), e("on-mounted");
|
|
80691
80691
|
}), EA(() => {
|
|
80692
80692
|
window.removeEventListener("resize", N);
|
|
80693
80693
|
}), (ig, P) => (x(), U("div", {
|
|
@@ -89213,7 +89213,7 @@ function rII(C, g, I, e, t) {
|
|
|
89213
89213
|
if (C.input.compositionPendingChanges = 0, g < 0) {
|
|
89214
89214
|
let N = C.input.lastSelectionTime > Date.now() - 50 ? C.input.lastSelectionOrigin : null, S = e5(C, N);
|
|
89215
89215
|
if (S && !C.state.selection.eq(S)) {
|
|
89216
|
-
if (pt && kl && C.input.lastKeyCode === 13 && Date.now() - 100 < C.input.lastKeyCodeTime && C.someProp("handleKeyDown", (
|
|
89216
|
+
if (pt && kl && C.input.lastKeyCode === 13 && Date.now() - 100 < C.input.lastKeyCodeTime && C.someProp("handleKeyDown", (D) => D(C, hd(13, "Enter"))))
|
|
89217
89217
|
return;
|
|
89218
89218
|
let J = C.state.tr.setSelection(S);
|
|
89219
89219
|
N == "pointer" ? J.setMeta("pointer", !0) : N == "key" && J.scrollIntoView(), i && J.setMeta("composition", i), C.dispatch(J);
|
|
@@ -91361,9 +91361,9 @@ function yCI(C) {
|
|
|
91361
91361
|
pCI(N, i.find, A).forEach((J) => {
|
|
91362
91362
|
if (J.index === void 0)
|
|
91363
91363
|
return;
|
|
91364
|
-
const
|
|
91365
|
-
from: I.tr.mapping.map(
|
|
91366
|
-
to: I.tr.mapping.map(
|
|
91364
|
+
const D = y + J.index + 1, f = D + J[0].length, z = {
|
|
91365
|
+
from: I.tr.mapping.map(D),
|
|
91366
|
+
to: I.tr.mapping.map(f)
|
|
91367
91367
|
}, Q = i.handler({
|
|
91368
91368
|
state: I,
|
|
91369
91369
|
range: z,
|
|
@@ -94635,9 +94635,9 @@ function YtI({
|
|
|
94635
94635
|
GI(B, C.numeric, p);
|
|
94636
94636
|
const y = WA(GW), M = WA();
|
|
94637
94637
|
GI(y, g, y), GI(y, I, M), GI(M, g, y), GI(M, I, M), Wg(W, Tn, y), Wg(p, Tn, y);
|
|
94638
|
-
const N = Wg(n, Bo), S = Wg(s, Bo), J = Wg(S, Tn),
|
|
94639
|
-
GI(n, C.domain, A), Wg(n, Ln, Z), Wg(n, BA, G), GI(s, C.domain, A), Wg(s, Ln, Z), Wg(s, BA, G), GI(N, C.domain, y), Wg(N, Tn, y), Wg(N, E0, y), GI(
|
|
94640
|
-
const
|
|
94638
|
+
const N = Wg(n, Bo), S = Wg(s, Bo), J = Wg(S, Tn), D = Wg(J, Tn);
|
|
94639
|
+
GI(n, C.domain, A), Wg(n, Ln, Z), Wg(n, BA, G), GI(s, C.domain, A), Wg(s, Ln, Z), Wg(s, BA, G), GI(N, C.domain, y), Wg(N, Tn, y), Wg(N, E0, y), GI(D, C.domain, y), GI(D, g, y), Wg(D, Tn, y);
|
|
94640
|
+
const f = [
|
|
94641
94641
|
[O0, Q0],
|
|
94642
94642
|
// {}
|
|
94643
94643
|
[rp, up],
|
|
@@ -94655,8 +94655,8 @@ function YtI({
|
|
|
94655
94655
|
[Yp, Vp]
|
|
94656
94656
|
// <>
|
|
94657
94657
|
];
|
|
94658
|
-
for (let z = 0; z <
|
|
94659
|
-
const [Q, tg] =
|
|
94658
|
+
for (let z = 0; z < f.length; z++) {
|
|
94659
|
+
const [Q, tg] = f[z], ig = Wg(y, Q);
|
|
94660
94660
|
Wg(M, Q, ig), Wg(ig, tg, y);
|
|
94661
94661
|
const P = WA(GW);
|
|
94662
94662
|
GI(ig, g, P);
|
|
@@ -108927,18 +108927,18 @@ function yK(C) {
|
|
|
108927
108927
|
}
|
|
108928
108928
|
if (t === yi || (t === pi || t === QA) && i === pb) {
|
|
108929
108929
|
B = UA;
|
|
108930
|
-
var
|
|
108931
|
-
m -=
|
|
108930
|
+
var D = a && y.visualViewport ? y.visualViewport.width : M[S];
|
|
108931
|
+
m -= D - e.width, m *= s ? 1 : -1;
|
|
108932
108932
|
}
|
|
108933
108933
|
}
|
|
108934
|
-
var
|
|
108934
|
+
var f = Object.assign({
|
|
108935
108935
|
position: n
|
|
108936
108936
|
}, l && VAI);
|
|
108937
108937
|
if (s) {
|
|
108938
108938
|
var z;
|
|
108939
|
-
return Object.assign({},
|
|
108939
|
+
return Object.assign({}, f, (z = {}, z[p] = W ? "0" : "", z[B] = Z ? "0" : "", z.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + G + "px)" : "translate3d(" + m + "px, " + G + "px, 0)", z));
|
|
108940
108940
|
}
|
|
108941
|
-
return Object.assign({},
|
|
108941
|
+
return Object.assign({}, f, (g = {}, g[p] = W ? G + "px" : "", g[B] = Z ? m + "px" : "", g.transform = "", g));
|
|
108942
108942
|
}
|
|
108943
108943
|
function MAI(C) {
|
|
108944
108944
|
var g = C.state, I = C.options, e = I.gpuAcceleration, t = e === void 0 ? !0 : e, i = I.adaptive, A = i === void 0 ? !0 : i, n = I.roundOffsets, s = n === void 0 ? !0 : n, l = {
|
|
@@ -109140,10 +109140,10 @@ function yb(C, g) {
|
|
|
109140
109140
|
right: N.right - B.right + b.right
|
|
109141
109141
|
}, J = C.modifiersData.offset;
|
|
109142
109142
|
if (o === l0 && J) {
|
|
109143
|
-
var
|
|
109144
|
-
Object.keys(S).forEach(function(
|
|
109145
|
-
var z = [UA, QA].indexOf(
|
|
109146
|
-
S[
|
|
109143
|
+
var D = J[t];
|
|
109144
|
+
Object.keys(S).forEach(function(f) {
|
|
109145
|
+
var z = [UA, QA].indexOf(f) >= 0 ? 1 : -1, Q = [pi, QA].indexOf(f) >= 0 ? "y" : "x";
|
|
109146
|
+
S[f] += D[Q] * z;
|
|
109147
109147
|
});
|
|
109148
109148
|
}
|
|
109149
109149
|
return S;
|
|
@@ -109186,9 +109186,9 @@ function LAI(C) {
|
|
|
109186
109186
|
flipVariations: m,
|
|
109187
109187
|
allowedAutoPlacements: b
|
|
109188
109188
|
}) : Vg);
|
|
109189
|
-
}, []), y = g.rects.reference, M = g.rects.popper, N = /* @__PURE__ */ new Map(), S = !0, J = p[0],
|
|
109190
|
-
var
|
|
109191
|
-
placement:
|
|
109189
|
+
}, []), y = g.rects.reference, M = g.rects.popper, N = /* @__PURE__ */ new Map(), S = !0, J = p[0], D = 0; D < p.length; D++) {
|
|
109190
|
+
var f = p[D], z = Gs(f), Q = dh(f) === sh, tg = [pi, QA].indexOf(z) >= 0, ig = tg ? "width" : "height", P = yb(g, {
|
|
109191
|
+
placement: f,
|
|
109192
109192
|
boundary: o,
|
|
109193
109193
|
rootBoundary: a,
|
|
109194
109194
|
altBoundary: r,
|
|
@@ -109199,10 +109199,10 @@ function LAI(C) {
|
|
|
109199
109199
|
if (i && ng.push(P[z] <= 0), n && ng.push(P[Ig] <= 0, P[bg] <= 0), ng.every(function(Ng) {
|
|
109200
109200
|
return Ng;
|
|
109201
109201
|
})) {
|
|
109202
|
-
J =
|
|
109202
|
+
J = f, S = !1;
|
|
109203
109203
|
break;
|
|
109204
109204
|
}
|
|
109205
|
-
N.set(
|
|
109205
|
+
N.set(f, ng);
|
|
109206
109206
|
}
|
|
109207
109207
|
if (S)
|
|
109208
109208
|
for (var Bg = m ? 3 : 1, Dg = function(Vg) {
|
|
@@ -109324,13 +109324,13 @@ function qAI(C) {
|
|
|
109324
109324
|
altBoundary: o
|
|
109325
109325
|
}), Z = Gs(g.placement), W = dh(g.placement), B = !W, p = F5(Z), y = _AI(p), M = g.modifiersData.popperOffsets, N = g.rects.reference, S = g.rects.popper, J = typeof b == "function" ? b(Object.assign({}, g.rects, {
|
|
109326
109326
|
placement: g.placement
|
|
109327
|
-
})) : b,
|
|
109327
|
+
})) : b, D = typeof J == "number" ? {
|
|
109328
109328
|
mainAxis: J,
|
|
109329
109329
|
altAxis: J
|
|
109330
109330
|
} : Object.assign({
|
|
109331
109331
|
mainAxis: 0,
|
|
109332
109332
|
altAxis: 0
|
|
109333
|
-
}, J),
|
|
109333
|
+
}, J), f = g.modifiersData.offset ? g.modifiersData.offset[g.placement] : null, z = {
|
|
109334
109334
|
x: 0,
|
|
109335
109335
|
y: 0
|
|
109336
109336
|
};
|
|
@@ -109339,11 +109339,11 @@ function qAI(C) {
|
|
|
109339
109339
|
var Q, tg = p === "y" ? pi : yi, ig = p === "y" ? QA : UA, P = p === "y" ? "height" : "width", Ig = M[p], bg = Ig + G[tg], ng = Ig - G[ig], Bg = u ? -S[P] / 2 : 0, Dg = W === sh ? N[P] : S[P], Mg = W === sh ? -S[P] : -N[P], rg = g.elements.arrow, Ng = u && rg ? k5(rg) : {
|
|
109340
109340
|
width: 0,
|
|
109341
109341
|
height: 0
|
|
109342
|
-
}, Vg = g.modifiersData["arrow#persistent"] ? g.modifiersData["arrow#persistent"].padding : lj(), pI = Vg[tg], bI = Vg[ig], BC = _0(0, N[P], Ng[P]), Ce = B ? N[P] / 2 - Bg - BC - pI -
|
|
109342
|
+
}, Vg = g.modifiersData["arrow#persistent"] ? g.modifiersData["arrow#persistent"].padding : lj(), pI = Vg[tg], bI = Vg[ig], BC = _0(0, N[P], Ng[P]), Ce = B ? N[P] / 2 - Bg - BC - pI - D.mainAxis : Dg - BC - pI - D.mainAxis, vC = B ? -N[P] / 2 + Bg + BC + bI + D.mainAxis : Mg + BC + bI + D.mainAxis, OI = g.elements.arrow && OG(g.elements.arrow), ot = OI ? p === "y" ? OI.clientTop || 0 : OI.clientLeft || 0 : 0, Ii = (Q = f == null ? void 0 : f[p]) != null ? Q : 0, LC = Ig + Ce - Ii - ot, Ci = Ig + vC - Ii, _l = _0(u ? Tp(bg, LC) : bg, Ig, u ? Qc(ng, Ci) : ng);
|
|
109343
109343
|
M[p] = _l, z[p] = _l - Ig;
|
|
109344
109344
|
}
|
|
109345
109345
|
if (n) {
|
|
109346
|
-
var at, Ea = p === "x" ? pi : yi, _A = p === "x" ? QA : UA, Nt = M[y], fe = y === "y" ? "height" : "width", fn = Nt + G[Ea], fs = Nt - G[_A], Pa = [pi, yi].indexOf(Z) !== -1, aA = (at =
|
|
109346
|
+
var at, Ea = p === "x" ? pi : yi, _A = p === "x" ? QA : UA, Nt = M[y], fe = y === "y" ? "height" : "width", fn = Nt + G[Ea], fs = Nt - G[_A], Pa = [pi, yi].indexOf(Z) !== -1, aA = (at = f == null ? void 0 : f[y]) != null ? at : 0, ql = Pa ? fn : Nt - N[fe] - S[fe] - aA + D.altAxis, ug = Pa ? Nt + N[fe] + S[fe] - aA - D.altAxis : fs, Zg = u && Pa ? WAI(ql, Nt, ug) : _0(u ? ql : fn, Nt, u ? ug : fs);
|
|
109347
109347
|
M[y] = Zg, z[y] = Zg - Nt;
|
|
109348
109348
|
}
|
|
109349
109349
|
g.modifiersData[e] = z;
|
|
@@ -109482,8 +109482,8 @@ function snI(C) {
|
|
|
109482
109482
|
o.rects = {
|
|
109483
109483
|
reference: enI(W, OG(B), o.options.strategy === "fixed"),
|
|
109484
109484
|
popper: k5(B)
|
|
109485
|
-
}, o.reset = !1, o.placement = o.options.placement, o.orderedModifiers.forEach(function(
|
|
109486
|
-
return o.modifiersData[
|
|
109485
|
+
}, o.reset = !1, o.placement = o.options.placement, o.orderedModifiers.forEach(function(D) {
|
|
109486
|
+
return o.modifiersData[D.name] = Object.assign({}, D.data);
|
|
109487
109487
|
});
|
|
109488
109488
|
for (var p = 0; p < o.orderedModifiers.length; p++) {
|
|
109489
109489
|
if (o.reset === !0) {
|
|
@@ -110196,15 +110196,15 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110196
110196
|
vertical: "bottom",
|
|
110197
110197
|
horizontal: "left"
|
|
110198
110198
|
}), n = I, s = j(() => {
|
|
110199
|
-
var
|
|
110200
|
-
return !e.activeSend && ((
|
|
110199
|
+
var f;
|
|
110200
|
+
return !e.activeSend && ((f = m.value) == null ? void 0 : f.isEmpty);
|
|
110201
110201
|
}), l = j(() => [
|
|
110202
110202
|
"emoji-picker",
|
|
110203
110203
|
`emoji-picker-${A.value.vertical}`,
|
|
110204
110204
|
`emoji-picker-${A.value.horizontal}`,
|
|
110205
110205
|
s.value ? "" : "translateX"
|
|
110206
|
-
]), o = X(null), a = X(!1), r = (
|
|
110207
|
-
a.value = !1, G(!0,
|
|
110206
|
+
]), o = X(null), a = X(!1), r = (f) => {
|
|
110207
|
+
a.value = !1, G(!0, f);
|
|
110208
110208
|
}, u = Ni.create({
|
|
110209
110209
|
name: "spanNode",
|
|
110210
110210
|
inline: !0,
|
|
@@ -110217,8 +110217,8 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110217
110217
|
content: { default: "" },
|
|
110218
110218
|
userId: {
|
|
110219
110219
|
default: null,
|
|
110220
|
-
parseHTML: (
|
|
110221
|
-
renderHTML: (
|
|
110220
|
+
parseHTML: (f) => f.getAttribute("data-user-id"),
|
|
110221
|
+
renderHTML: (f) => f.userId ? { "data-user-id": f.userId } : {}
|
|
110222
110222
|
}
|
|
110223
110223
|
};
|
|
110224
110224
|
},
|
|
@@ -110226,7 +110226,7 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110226
110226
|
return [{ tag: "span[data-span]" }];
|
|
110227
110227
|
},
|
|
110228
110228
|
renderHTML({
|
|
110229
|
-
node:
|
|
110229
|
+
node: f,
|
|
110230
110230
|
HTMLAttributes: z
|
|
110231
110231
|
}) {
|
|
110232
110232
|
return [
|
|
@@ -110234,9 +110234,9 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110234
110234
|
se(z, {
|
|
110235
110235
|
"data-span": "",
|
|
110236
110236
|
contenteditable: "false",
|
|
110237
|
-
class:
|
|
110237
|
+
class: f == null ? void 0 : f.attrs.class
|
|
110238
110238
|
}),
|
|
110239
|
-
|
|
110239
|
+
f == null ? void 0 : f.attrs.content
|
|
110240
110240
|
];
|
|
110241
110241
|
}
|
|
110242
110242
|
}), m = OeI({
|
|
@@ -110265,7 +110265,7 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110265
110265
|
],
|
|
110266
110266
|
content: t.value,
|
|
110267
110267
|
editorProps: {
|
|
110268
|
-
handlePaste(
|
|
110268
|
+
handlePaste(f, z) {
|
|
110269
110269
|
const Q = z.clipboardData;
|
|
110270
110270
|
if (!Q) return !1;
|
|
110271
110271
|
if (Q.files.length > 0 && e.activeAttachFile) {
|
|
@@ -110276,11 +110276,11 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110276
110276
|
}
|
|
110277
110277
|
}
|
|
110278
110278
|
},
|
|
110279
|
-
onUpdate: ({ editor:
|
|
110280
|
-
if (t.value =
|
|
110281
|
-
const { from: z } =
|
|
110279
|
+
onUpdate: ({ editor: f }) => {
|
|
110280
|
+
if (t.value = f.getHTML(), e.activeSelectUser) {
|
|
110281
|
+
const { $from: z } = f.state.selection, Q = Math.max(0, z.parentOffset - 50), ig = z.parent.textBetween(
|
|
110282
110282
|
Q,
|
|
110283
|
-
z,
|
|
110283
|
+
z.parentOffset,
|
|
110284
110284
|
null,
|
|
110285
110285
|
""
|
|
110286
110286
|
).match(/@([^\s]*)$/);
|
|
@@ -110289,72 +110289,72 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110289
110289
|
},
|
|
110290
110290
|
parseOptions: { preserveWhitespace: !0 }
|
|
110291
110291
|
});
|
|
110292
|
-
eg(t, (
|
|
110293
|
-
m != null && m.value &&
|
|
110292
|
+
eg(t, (f) => {
|
|
110293
|
+
m != null && m.value && f !== m.value.getHTML() && m.value.commands.setContent(f ?? "", {
|
|
110294
110294
|
parseOptions: { preserveWhitespace: !0 }
|
|
110295
110295
|
});
|
|
110296
110296
|
});
|
|
110297
|
-
const b = (
|
|
110298
|
-
m != null && m.value && m.value.chain().focus().insertContent(
|
|
110299
|
-
}, G = (
|
|
110297
|
+
const b = (f) => {
|
|
110298
|
+
m != null && m.value && m.value.chain().focus().insertContent(f.i).run();
|
|
110299
|
+
}, G = (f = !1, z) => {
|
|
110300
110300
|
if (!(m != null && m.value)) return;
|
|
110301
110301
|
const Q = document.createElement("input");
|
|
110302
|
-
Q.type = "file", z ? (z === "video" ? Q.accept = "video/*" : z === "image" ? Q.accept = "image/*" : Q.accept = "image/*,video/*", Q.capture = "environment", Q.multiple = !1) : (Q.multiple = !0,
|
|
110303
|
-
Q != null && Q.files && n("unmount-attach-file", Q.files,
|
|
110302
|
+
Q.type = "file", z ? (z === "video" ? Q.accept = "video/*" : z === "image" ? Q.accept = "image/*" : Q.accept = "image/*,video/*", Q.capture = "environment", Q.multiple = !1) : (Q.multiple = !0, f && (Q.accept = "image/*,video/*")), Q.onchange = () => {
|
|
110303
|
+
Q != null && Q.files && n("unmount-attach-file", Q.files, f);
|
|
110304
110304
|
}, Q.click();
|
|
110305
|
-
}, Z = (
|
|
110306
|
-
const z =
|
|
110305
|
+
}, Z = (f) => {
|
|
110306
|
+
const z = f.every(
|
|
110307
110307
|
(ig) => ig.type.startsWith("image/") || ig.type.startsWith("video/")
|
|
110308
110308
|
), Q = new DataTransfer();
|
|
110309
|
-
|
|
110309
|
+
f.forEach((ig) => Q.items.add(ig));
|
|
110310
110310
|
const tg = Q.files;
|
|
110311
110311
|
n("unmount-attach-file", tg, z);
|
|
110312
110312
|
}, W = () => {
|
|
110313
110313
|
m != null && m.value && (n("unmount-send", { content: m.value.getHTML() }), m.value.chain().focus());
|
|
110314
|
-
}, B = (
|
|
110314
|
+
}, B = (f, z) => {
|
|
110315
110315
|
if (!(m != null && m.value)) return;
|
|
110316
|
-
const { from: Q } = m.value.state.selection, tg = Math.max(0, Q - 50), P =
|
|
110316
|
+
const { $from: Q } = m.value.state.selection, tg = Math.max(0, Q.parentOffset - 50), P = Q.parent.textBetween(
|
|
110317
110317
|
tg,
|
|
110318
|
-
Q,
|
|
110318
|
+
Q.parentOffset,
|
|
110319
110319
|
null,
|
|
110320
110320
|
""
|
|
110321
110321
|
).match(/@([^\s]*)$/);
|
|
110322
110322
|
if (P) {
|
|
110323
|
-
const Ig = tg + (P.index || 0)
|
|
110323
|
+
const Ig = Q.start() + tg + (P.index || 0);
|
|
110324
110324
|
m.value.chain().focus().insertContentAt(
|
|
110325
|
-
{ from: Ig, to: Q },
|
|
110325
|
+
{ from: Ig, to: Q.pos },
|
|
110326
110326
|
{
|
|
110327
110327
|
type: "spanNode",
|
|
110328
|
-
attrs: { content:
|
|
110328
|
+
attrs: { content: f, class: "link", ...z }
|
|
110329
110329
|
}
|
|
110330
110330
|
).run();
|
|
110331
110331
|
} else
|
|
110332
110332
|
m.value.chain().focus().insertContent({
|
|
110333
110333
|
type: "spanNode",
|
|
110334
|
-
attrs: { content:
|
|
110334
|
+
attrs: { content: f, class: "link", ...z }
|
|
110335
110335
|
}).run();
|
|
110336
110336
|
}, p = () => {
|
|
110337
110337
|
if (!(m != null && m.value)) return;
|
|
110338
|
-
const { from:
|
|
110338
|
+
const { $from: f } = m.value.state.selection, z = Math.max(0, f.parentOffset - 50), tg = f.parent.textBetween(
|
|
110339
110339
|
z,
|
|
110340
|
-
|
|
110340
|
+
f.parentOffset,
|
|
110341
110341
|
null,
|
|
110342
110342
|
""
|
|
110343
110343
|
).match(/@([^\s]*)$/);
|
|
110344
110344
|
if (tg) {
|
|
110345
|
-
const ig = z + (tg.index || 0)
|
|
110346
|
-
m.value.chain().focus().deleteRange({ from: ig, to:
|
|
110345
|
+
const ig = f.start() + z + (tg.index || 0);
|
|
110346
|
+
m.value.chain().focus().deleteRange({ from: ig, to: f.pos }).run();
|
|
110347
110347
|
} else
|
|
110348
110348
|
m.value.chain().focus().insertContent("@").run();
|
|
110349
110349
|
}, y = () => {
|
|
110350
110350
|
m != null && m.value && m.value.chain().focus();
|
|
110351
|
-
}, M = (
|
|
110352
|
-
if (!
|
|
110353
|
-
const tg =
|
|
110351
|
+
}, M = (f, z = 300, Q = 260) => {
|
|
110352
|
+
if (!f) return;
|
|
110353
|
+
const tg = f.getBoundingClientRect(), ig = window.innerWidth, P = window.innerHeight;
|
|
110354
110354
|
A.value.vertical = tg.bottom + Q > P ? "top" : "bottom", A.value.horizontal = tg.left + z > ig ? "right" : "left";
|
|
110355
|
-
}, N = (
|
|
110355
|
+
}, N = (f) => {
|
|
110356
110356
|
if (i.value = !i.value, i.value) {
|
|
110357
|
-
const z =
|
|
110357
|
+
const z = f.currentTarget;
|
|
110358
110358
|
YI(() => {
|
|
110359
110359
|
M(z);
|
|
110360
110360
|
});
|
|
@@ -110362,24 +110362,24 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110362
110362
|
}, S = () => {
|
|
110363
110363
|
i.value = !1;
|
|
110364
110364
|
}, J = () => {
|
|
110365
|
-
const
|
|
110365
|
+
const f = document.querySelector(
|
|
110366
110366
|
".toolbar-button.smile-button"
|
|
110367
110367
|
);
|
|
110368
|
-
i.value &&
|
|
110369
|
-
},
|
|
110370
|
-
window.innerWidth <= 480 || !e.disableSendOnEnter &&
|
|
110368
|
+
i.value && f && M(f);
|
|
110369
|
+
}, D = (f) => {
|
|
110370
|
+
window.innerWidth <= 480 || !e.disableSendOnEnter && f.key === "Enter" && f.code && !(f.shiftKey || f.ctrlKey || f.metaKey) && (f.preventDefault(), f.stopPropagation(), W());
|
|
110371
110371
|
};
|
|
110372
110372
|
return lI(() => {
|
|
110373
|
-
var
|
|
110374
|
-
(z = (
|
|
110373
|
+
var f, z;
|
|
110374
|
+
(z = (f = m == null ? void 0 : m.value) == null ? void 0 : f.view) != null && z.dom && (o.value = m.value.view.dom, window.addEventListener("resize", J), window.addEventListener("scroll", J, !0), o.value.addEventListener("keydown", D, { capture: !0 }));
|
|
110375
110375
|
}), va(() => {
|
|
110376
|
-
var
|
|
110377
|
-
(
|
|
110376
|
+
var f;
|
|
110377
|
+
(f = m == null ? void 0 : m.value) == null || f.destroy(), o.value && o.value.removeEventListener("keydown", D, {
|
|
110378
110378
|
capture: !0
|
|
110379
110379
|
}), window.removeEventListener("resize", J), window.removeEventListener("scroll", J, !0);
|
|
110380
|
-
}), g({ addSpanLink: B, focus: y, editor: m }), (
|
|
110381
|
-
|
|
110382
|
-
Qg(
|
|
110380
|
+
}), g({ addSpanLink: B, focus: y, editor: m }), (f, z) => (x(), U("div", ssI, [
|
|
110381
|
+
f.$slots.action ? (x(), U("div", lsI, [
|
|
110382
|
+
Qg(f.$slots, "action")
|
|
110383
110383
|
])) : pg("", !0),
|
|
110384
110384
|
cg(ab, {
|
|
110385
110385
|
isWCUse: "",
|
|
@@ -110655,8 +110655,8 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110655
110655
|
var J;
|
|
110656
110656
|
typeof ((J = S.target) == null ? void 0 : J.result) == "string" && (n.image = new Image(), n.image.src = S.target.result, n.image.onload = async () => {
|
|
110657
110657
|
if (await YI(), i.value && n.image) {
|
|
110658
|
-
const
|
|
110659
|
-
z > Q ? (n.image.width =
|
|
110658
|
+
const D = i.value.width, f = i.value.height, z = n.image.width / n.image.height, Q = D / f;
|
|
110659
|
+
z > Q ? (n.image.width = D, n.image.height = D / z) : (n.image.height = f, n.image.width = f * z), l(), n.position.x = (i.value.width - n.image.width) / 2, n.position.y = (i.value.height - n.image.height) / 2, o();
|
|
110660
110660
|
}
|
|
110661
110661
|
});
|
|
110662
110662
|
}, N.readAsDataURL(M);
|
|
@@ -110671,11 +110671,11 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110671
110671
|
Math.max(N, 0),
|
|
110672
110672
|
i.value.width - n.image.width * n.scale
|
|
110673
110673
|
) : (N > 0 && (N = 0), N < J && (N = J));
|
|
110674
|
-
const
|
|
110674
|
+
const D = i.value.height - n.image.height * n.scale;
|
|
110675
110675
|
n.image.height * n.scale < i.value.height ? S = Math.min(
|
|
110676
110676
|
Math.max(S, 0),
|
|
110677
110677
|
i.value.height - n.image.height * n.scale
|
|
110678
|
-
) : (S > 0 && (S = 0), S <
|
|
110678
|
+
) : (S > 0 && (S = 0), S < D && (S = D)), n.position.x = N, n.position.y = S;
|
|
110679
110679
|
}
|
|
110680
110680
|
o();
|
|
110681
110681
|
}, m = () => {
|
|
@@ -110705,9 +110705,9 @@ const AsI = /* @__PURE__ */ sg({
|
|
|
110705
110705
|
n.image.width * n.scale,
|
|
110706
110706
|
n.image.height * n.scale
|
|
110707
110707
|
);
|
|
110708
|
-
const
|
|
110709
|
-
for (let ig = 0; ig <
|
|
110710
|
-
Q[ig] =
|
|
110708
|
+
const D = S.toDataURL("image/png"), f = atob(D.split(",")[1]), z = new ArrayBuffer(f.length), Q = new Uint8Array(z);
|
|
110709
|
+
for (let ig = 0; ig < f.length; ig++)
|
|
110710
|
+
Q[ig] = f.charCodeAt(ig);
|
|
110711
110711
|
const tg = new Blob([Q], { type: "image/png" });
|
|
110712
110712
|
return e.image ? new File([tg], e.image.name, { type: "image/png" }) : null;
|
|
110713
110713
|
}
|