etudes 14.6.0 → 14.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/etudes.js +557 -561
- package/build/etudes.umd.cjs +9 -9
- package/package.json +1 -1
package/build/etudes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Link as
|
|
3
|
-
function
|
|
1
|
+
import vs, { useState as Ne, useEffect as he, useRef as Ee, Fragment as _o, cloneElement as ys, Children as sn, isValidElement as an, forwardRef as _e, useCallback as ve, useLayoutEffect as xs, createContext as Oo, useContext as cn } from "react";
|
|
2
|
+
import { Link as bs, NavLink as ws, useSearchParams as Es } from "react-router";
|
|
3
|
+
function Po(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
6
|
var Xt = { exports: {} }, Et = {};
|
|
@@ -14,7 +14,7 @@ var Xt = { exports: {} }, Et = {};
|
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
16
|
var so;
|
|
17
|
-
function
|
|
17
|
+
function Ns() {
|
|
18
18
|
if (so) return Et;
|
|
19
19
|
so = 1;
|
|
20
20
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
@@ -46,7 +46,7 @@ var Nt = {};
|
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
47
|
*/
|
|
48
48
|
var ao;
|
|
49
|
-
function
|
|
49
|
+
function Ss() {
|
|
50
50
|
return ao || (ao = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
51
|
function e(_) {
|
|
52
52
|
if (_ == null) return null;
|
|
@@ -153,7 +153,7 @@ function Ns() {
|
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), _ = this.props.ref, _ !== void 0 ? _ : null;
|
|
155
155
|
}
|
|
156
|
-
function N(_, M, te, oe, ue, se, Se,
|
|
156
|
+
function N(_, M, te, oe, ue, se, Se, Oe) {
|
|
157
157
|
return te = se.ref, _ = {
|
|
158
158
|
$$typeof: I,
|
|
159
159
|
type: _,
|
|
@@ -182,10 +182,10 @@ function Ns() {
|
|
|
182
182
|
configurable: !1,
|
|
183
183
|
enumerable: !1,
|
|
184
184
|
writable: !0,
|
|
185
|
-
value:
|
|
185
|
+
value: Oe
|
|
186
186
|
}), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
|
|
187
187
|
}
|
|
188
|
-
function T(_, M, te, oe, ue, se, Se,
|
|
188
|
+
function T(_, M, te, oe, ue, se, Se, Oe) {
|
|
189
189
|
var me = M.children;
|
|
190
190
|
if (me !== void 0)
|
|
191
191
|
if (oe)
|
|
@@ -218,8 +218,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
218
218
|
}
|
|
219
219
|
if (me = null, te !== void 0 && (s(te), me = "" + te), p(M) && (s(M.key), me = "" + M.key), "key" in M) {
|
|
220
220
|
te = {};
|
|
221
|
-
for (var
|
|
222
|
-
|
|
221
|
+
for (var ke in M)
|
|
222
|
+
ke !== "key" && (te[ke] = M[ke]);
|
|
223
223
|
} else te = M;
|
|
224
224
|
return me && g(
|
|
225
225
|
te,
|
|
@@ -232,22 +232,22 @@ React keys must be passed directly to JSX without using spread:
|
|
|
232
232
|
l(),
|
|
233
233
|
te,
|
|
234
234
|
Se,
|
|
235
|
-
|
|
235
|
+
Oe
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
function P(_) {
|
|
239
239
|
typeof _ == "object" && _ !== null && _.$$typeof === I && _._store && (_._store.validated = 1);
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var k = vs, I = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), W = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), D = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), C = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), Y = Symbol.for("react.activity"), U = Symbol.for("react.client.reference"), ne = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, K = Object.prototype.hasOwnProperty, H = Array.isArray, L = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
k = {
|
|
245
245
|
"react-stack-bottom-frame": function(_) {
|
|
246
246
|
return _();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var A, J = {}, Z =
|
|
250
|
-
|
|
249
|
+
var A, J = {}, Z = k["react-stack-bottom-frame"].bind(
|
|
250
|
+
k,
|
|
251
251
|
u
|
|
252
252
|
)(), ae = L(a(u)), G = {};
|
|
253
253
|
Nt.Fragment = b, Nt.jsx = function(_, M, te, oe, ue) {
|
|
@@ -278,25 +278,25 @@ React keys must be passed directly to JSX without using spread:
|
|
|
278
278
|
}()), Nt;
|
|
279
279
|
}
|
|
280
280
|
var co;
|
|
281
|
-
function
|
|
282
|
-
return co || (co = 1, process.env.NODE_ENV === "production" ? Xt.exports = /* @__PURE__ */
|
|
281
|
+
function Ts() {
|
|
282
|
+
return co || (co = 1, process.env.NODE_ENV === "production" ? Xt.exports = /* @__PURE__ */ Ns() : Xt.exports = /* @__PURE__ */ Ss()), Xt.exports;
|
|
283
283
|
}
|
|
284
|
-
var x = /* @__PURE__ */
|
|
285
|
-
function
|
|
284
|
+
var x = /* @__PURE__ */ Ts();
|
|
285
|
+
function ko(e) {
|
|
286
286
|
var r, s, a = "";
|
|
287
287
|
if (typeof e == "string" || typeof e == "number") a += e;
|
|
288
288
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
289
289
|
var l = e.length;
|
|
290
|
-
for (r = 0; r < l; r++) e[r] && (s =
|
|
290
|
+
for (r = 0; r < l; r++) e[r] && (s = ko(e[r])) && (a && (a += " "), a += s);
|
|
291
291
|
} else for (s in e) e[s] && (a && (a += " "), a += s);
|
|
292
292
|
return a;
|
|
293
293
|
}
|
|
294
294
|
function ie() {
|
|
295
|
-
for (var e, r, s = 0, a = "", l = arguments.length; s < l; s++) (e = arguments[s]) && (r =
|
|
295
|
+
for (var e, r, s = 0, a = "", l = arguments.length; s < l; s++) (e = arguments[s]) && (r = ko(e)) && (a && (a += " "), a += r);
|
|
296
296
|
return a;
|
|
297
297
|
}
|
|
298
298
|
var In, lo;
|
|
299
|
-
function
|
|
299
|
+
function _s() {
|
|
300
300
|
return lo || (lo = 1, In = function e(r, s) {
|
|
301
301
|
if (r === s) return !0;
|
|
302
302
|
if (r && s && typeof r == "object" && typeof s == "object") {
|
|
@@ -324,8 +324,8 @@ function Ts() {
|
|
|
324
324
|
return r !== r && s !== s;
|
|
325
325
|
}), In;
|
|
326
326
|
}
|
|
327
|
-
var
|
|
328
|
-
const qe = /* @__PURE__ */
|
|
327
|
+
var Os = /* @__PURE__ */ _s();
|
|
328
|
+
const qe = /* @__PURE__ */ Po(Os);
|
|
329
329
|
function Ps() {
|
|
330
330
|
const [e, r] = Ne(!1);
|
|
331
331
|
return he(() => (r(!0), () => {
|
|
@@ -338,7 +338,7 @@ var pe;
|
|
|
338
338
|
function r(b = 0, j = 0) {
|
|
339
339
|
if (typeof b == "number")
|
|
340
340
|
return { x: b, y: j };
|
|
341
|
-
if (!
|
|
341
|
+
if (!k(b)) throw Error("Invalid parameters passed to constructor");
|
|
342
342
|
return b instanceof Array ? {
|
|
343
343
|
x: b[0],
|
|
344
344
|
y: b[1]
|
|
@@ -409,10 +409,10 @@ var pe;
|
|
|
409
409
|
return [b.x, b.y];
|
|
410
410
|
}
|
|
411
411
|
e.toArray = P;
|
|
412
|
-
function
|
|
412
|
+
function k(b) {
|
|
413
413
|
return b instanceof Array ? !(b.length !== 2 || typeof b[0] != "number" || typeof b[1] != "number") : typeof b == "object" ? !(typeof b.x != "number" || typeof b.y != "number") : !1;
|
|
414
414
|
}
|
|
415
|
-
e.isValidDescriptor =
|
|
415
|
+
e.isValidDescriptor = k;
|
|
416
416
|
function I(b) {
|
|
417
417
|
return typeof b == "object" && typeof b.x == "number" && typeof b.y == "number";
|
|
418
418
|
}
|
|
@@ -458,13 +458,13 @@ function ks(e, r) {
|
|
|
458
458
|
return console.error(s), !1;
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var ze;
|
|
462
462
|
((e) => {
|
|
463
463
|
e.zero = r();
|
|
464
464
|
function r(b = 0, j = 0) {
|
|
465
465
|
if (typeof b == "number")
|
|
466
466
|
return { width: b, height: j };
|
|
467
|
-
if (!
|
|
467
|
+
if (!k(b)) throw Error("Invalid parameters passed to constructor");
|
|
468
468
|
return b instanceof Array ? {
|
|
469
469
|
width: b[0],
|
|
470
470
|
height: b[1]
|
|
@@ -535,10 +535,10 @@ var Fe;
|
|
|
535
535
|
return [b.width, b.height];
|
|
536
536
|
}
|
|
537
537
|
e.toArray = P;
|
|
538
|
-
function
|
|
538
|
+
function k(b) {
|
|
539
539
|
return b instanceof Array ? !(b.length !== 2 || typeof b[0] != "number" || typeof b[1] != "number") : typeof b == "object" ? !(typeof b.width != "number" || typeof b.height != "number") : !1;
|
|
540
540
|
}
|
|
541
|
-
e.isValidDescriptor =
|
|
541
|
+
e.isValidDescriptor = k;
|
|
542
542
|
function I(b) {
|
|
543
543
|
return typeof b == "object" && typeof b.width == "number" && typeof b.height == "number";
|
|
544
544
|
}
|
|
@@ -547,7 +547,7 @@ var Fe;
|
|
|
547
547
|
return b.width === 0 && b.height === 0;
|
|
548
548
|
}
|
|
549
549
|
e.isZero = R;
|
|
550
|
-
})(
|
|
550
|
+
})(ze || (ze = {}));
|
|
551
551
|
var ye;
|
|
552
552
|
((e) => {
|
|
553
553
|
e.zero = r();
|
|
@@ -562,7 +562,7 @@ var ye;
|
|
|
562
562
|
width: w,
|
|
563
563
|
height: z
|
|
564
564
|
};
|
|
565
|
-
} else if (pe.isPoint(S) &&
|
|
565
|
+
} else if (pe.isPoint(S) && ze.isSize(C)) {
|
|
566
566
|
const Y = S, U = C;
|
|
567
567
|
return {
|
|
568
568
|
top: Y.y,
|
|
@@ -594,7 +594,7 @@ var ye;
|
|
|
594
594
|
}
|
|
595
595
|
e.center = s;
|
|
596
596
|
function a(S) {
|
|
597
|
-
return
|
|
597
|
+
return ze.make({
|
|
598
598
|
width: S.width,
|
|
599
599
|
height: S.height
|
|
600
600
|
});
|
|
@@ -615,7 +615,7 @@ var ye;
|
|
|
615
615
|
width: C.overflow ? L.scrollWidth : L instanceof HTMLElement ? L.offsetWidth : A.width,
|
|
616
616
|
height: C.overflow ? L.scrollHeight : L instanceof HTMLElement ? L.offsetHeight : A.height
|
|
617
617
|
});
|
|
618
|
-
K = K ?
|
|
618
|
+
K = K ? k(K, J) : J;
|
|
619
619
|
}
|
|
620
620
|
return K;
|
|
621
621
|
} catch (w) {
|
|
@@ -687,7 +687,7 @@ var ye;
|
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
689
|
e.clone = P;
|
|
690
|
-
function
|
|
690
|
+
function k(S, C) {
|
|
691
691
|
return r({
|
|
692
692
|
x: Math.min(S.left, C.left),
|
|
693
693
|
y: Math.min(S.top, C.top),
|
|
@@ -695,7 +695,7 @@ var ye;
|
|
|
695
695
|
height: Math.max(S.bottom, C.bottom) - Math.min(S.top, C.top)
|
|
696
696
|
});
|
|
697
697
|
}
|
|
698
|
-
e.concat =
|
|
698
|
+
e.concat = k;
|
|
699
699
|
function I(S) {
|
|
700
700
|
return r({
|
|
701
701
|
x: S.left,
|
|
@@ -763,7 +763,7 @@ function dr(e, { onResize: r }) {
|
|
|
763
763
|
};
|
|
764
764
|
}, [e]);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Co(e) {
|
|
767
767
|
const [r, s] = Ne(ye.zero);
|
|
768
768
|
return dr(e, {
|
|
769
769
|
onResize: (a) => {
|
|
@@ -784,7 +784,7 @@ function ln({
|
|
|
784
784
|
process.env.NODE_ENV !== "production" && (ln.displayName = "Each");
|
|
785
785
|
function pr(e, r = {}, ...s) {
|
|
786
786
|
const { className: a, style: l, ...u } = r, { className: p, style: g, ...m } = e.props;
|
|
787
|
-
return
|
|
787
|
+
return ys(e, {
|
|
788
788
|
className: `${p ?? ""} ${a ?? ""}`.split(" ").filter(Boolean).join(" ") || void 0,
|
|
789
789
|
style: {
|
|
790
790
|
...g ?? {},
|
|
@@ -806,7 +806,7 @@ function ge({
|
|
|
806
806
|
);
|
|
807
807
|
}
|
|
808
808
|
process.env.NODE_ENV !== "production" && (ge.displayName = "Styled");
|
|
809
|
-
function
|
|
809
|
+
function Le(e, r = {}) {
|
|
810
810
|
const s = Object.keys(r), a = Object.values(r), l = {};
|
|
811
811
|
return sn.forEach(e, (u) => {
|
|
812
812
|
if (!an(u)) {
|
|
@@ -848,7 +848,7 @@ const hr = /* @__PURE__ */ _e(({
|
|
|
848
848
|
orientation: N = "vertical",
|
|
849
849
|
selection: T,
|
|
850
850
|
selectionMode: P = "none",
|
|
851
|
-
onActivateAt:
|
|
851
|
+
onActivateAt: k,
|
|
852
852
|
onDeselectAt: I,
|
|
853
853
|
onCustomEvent: R,
|
|
854
854
|
onSelectAt: b,
|
|
@@ -863,7 +863,7 @@ const hr = /* @__PURE__ */ _e(({
|
|
|
863
863
|
let L;
|
|
864
864
|
switch (P) {
|
|
865
865
|
case "multiple": {
|
|
866
|
-
L = (Z) =>
|
|
866
|
+
L = (Z) => jo([...Z.filter((ae) => ae !== H), H]);
|
|
867
867
|
break;
|
|
868
868
|
}
|
|
869
869
|
case "single": {
|
|
@@ -880,7 +880,7 @@ const hr = /* @__PURE__ */ _e(({
|
|
|
880
880
|
const L = (Z) => Z.filter((ae) => ae !== H), A = B, J = L(B);
|
|
881
881
|
ne(A, J);
|
|
882
882
|
}, U = (H) => {
|
|
883
|
-
|
|
883
|
+
k?.(H), P !== "none" && (a ? w(H) : z(H));
|
|
884
884
|
}, ne = (H, L) => {
|
|
885
885
|
if (qe(H, L)) return;
|
|
886
886
|
const A = H?.filter((Z) => L.indexOf(Z) === -1) ?? [], J = L.filter((Z) => H?.indexOf(Z) === -1);
|
|
@@ -902,8 +902,8 @@ const hr = /* @__PURE__ */ _e(({
|
|
|
902
902
|
}
|
|
903
903
|
ne(H, L);
|
|
904
904
|
}, [P]);
|
|
905
|
-
const K =
|
|
906
|
-
item:
|
|
905
|
+
const K = Le(r, {
|
|
906
|
+
item: Pt
|
|
907
907
|
});
|
|
908
908
|
return /* @__PURE__ */ x.jsx(
|
|
909
909
|
"div",
|
|
@@ -946,11 +946,11 @@ const hr = /* @__PURE__ */ _e(({
|
|
|
946
946
|
{
|
|
947
947
|
"aria-selected": J,
|
|
948
948
|
className: ie({ selected: J }),
|
|
949
|
-
element: K.item ?? /* @__PURE__ */ x.jsx(
|
|
949
|
+
element: K.item ?? /* @__PURE__ */ x.jsx(Pt, {}),
|
|
950
950
|
role: A,
|
|
951
951
|
selectionMode: P,
|
|
952
952
|
style: Z,
|
|
953
|
-
onActivateAt:
|
|
953
|
+
onActivateAt: k,
|
|
954
954
|
onClick: () => U(L),
|
|
955
955
|
children: `${H}`
|
|
956
956
|
}
|
|
@@ -958,14 +958,14 @@ const hr = /* @__PURE__ */ _e(({
|
|
|
958
958
|
} })
|
|
959
959
|
}
|
|
960
960
|
);
|
|
961
|
-
}),
|
|
961
|
+
}), Pt = ({ children: e, selectionMode: r, onActivateAt: s, ...a }) => s || r === "single" || r === "multiple" ? /* @__PURE__ */ x.jsx("button", { ...a, children: e }) : /* @__PURE__ */ x.jsx("div", { ...a, children: e });
|
|
962
962
|
function Cs(e, r) {
|
|
963
963
|
return !!(isNaN(e) || e >= r.length || e < 0);
|
|
964
964
|
}
|
|
965
965
|
function js(e, r) {
|
|
966
|
-
return
|
|
966
|
+
return jo(e).filter((s) => !Cs(s, r));
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function jo(e) {
|
|
969
969
|
return e.sort((r, s) => r - s);
|
|
970
970
|
}
|
|
971
971
|
function Is({ itemLength: e = NaN, itemPadding: r = 0, layout: s = "collection", numSegments: a = 1, orientation: l = "vertical" }) {
|
|
@@ -1008,7 +1008,7 @@ function Is({ itemLength: e = NaN, itemPadding: r = 0, layout: s = "collection",
|
|
|
1008
1008
|
}
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
|
-
process.env.NODE_ENV !== "production" && (hr.displayName = "Collection",
|
|
1011
|
+
process.env.NODE_ENV !== "production" && (hr.displayName = "Collection", Pt.displayName = "CollectionItem");
|
|
1012
1012
|
const $s = /* @__PURE__ */ _e(({
|
|
1013
1013
|
children: e,
|
|
1014
1014
|
style: r,
|
|
@@ -1022,7 +1022,7 @@ const $s = /* @__PURE__ */ _e(({
|
|
|
1022
1022
|
onActivateAt: N,
|
|
1023
1023
|
onCollapseSectionAt: T,
|
|
1024
1024
|
onDeselectAt: P,
|
|
1025
|
-
onExpandedSectionsChange:
|
|
1025
|
+
onExpandedSectionsChange: k,
|
|
1026
1026
|
onExpandSectionAt: I,
|
|
1027
1027
|
onHeaderCustomEvent: R,
|
|
1028
1028
|
onItemCustomEvent: b,
|
|
@@ -1032,7 +1032,7 @@ const $s = /* @__PURE__ */ _e(({
|
|
|
1032
1032
|
ItemComponent: D,
|
|
1033
1033
|
...B
|
|
1034
1034
|
}, S) => {
|
|
1035
|
-
const C = Ps(), w = Rs(g ?? {}, p), z = Ms(a ?? [], p), Y = zs({ orientation: l }), U = p.map(() => Ee(null)), ne = U.map((_) =>
|
|
1035
|
+
const C = Ps(), w = Rs(g ?? {}, p), z = Ms(a ?? [], p), Y = zs({ orientation: l }), U = p.map(() => Ee(null)), ne = U.map((_) => Co(_)), K = (_, M) => (w[M]?.indexOf(_) ?? -1) >= 0, H = (_) => z.indexOf(_) >= 0, L = (_) => {
|
|
1036
1036
|
let M;
|
|
1037
1037
|
H(_) ? M = (te) => te.filter((oe) => oe !== _) : s ? M = (te) => [_] : M = (te) => [...te.filter((oe) => oe !== _), _], Z(z, M(z));
|
|
1038
1038
|
}, A = (_, M) => {
|
|
@@ -1065,25 +1065,25 @@ const $s = /* @__PURE__ */ _e(({
|
|
|
1065
1065
|
}, Z = (_, M) => {
|
|
1066
1066
|
if (qe(_, M)) return;
|
|
1067
1067
|
const te = _?.filter((ue) => M.indexOf(ue) === -1) ?? [], oe = M.filter((ue) => _?.indexOf(ue) === -1);
|
|
1068
|
-
te.forEach((ue) => T?.(ue)), oe.forEach((ue) => I?.(ue)),
|
|
1068
|
+
te.forEach((ue) => T?.(ue)), oe.forEach((ue) => I?.(ue)), k?.(M);
|
|
1069
1069
|
}, ae = (_, M) => {
|
|
1070
1070
|
if (qe(_, M)) return;
|
|
1071
1071
|
const te = p.length;
|
|
1072
1072
|
let oe = [], ue = [];
|
|
1073
1073
|
for (let se = 0; se < te; se++) {
|
|
1074
|
-
const Se = _?.[se] ?? [],
|
|
1075
|
-
oe = [...oe, ...me.map((
|
|
1074
|
+
const Se = _?.[se] ?? [], Oe = M[se] ?? [], me = Se.filter((ke) => Oe.indexOf(ke) === -1), Q = Oe.filter((ke) => Se?.indexOf(ke) === -1);
|
|
1075
|
+
oe = [...oe, ...me.map((ke) => [ke, se])], ue = [...ue, ...Q.map((ke) => [ke, se])];
|
|
1076
1076
|
}
|
|
1077
1077
|
oe.forEach((se) => P?.(se[0], se[1])), ue.forEach((se) => j?.(se[0], se[1])), W?.(M);
|
|
1078
|
-
}, G =
|
|
1079
|
-
collapseIcon:
|
|
1080
|
-
expandIcon:
|
|
1078
|
+
}, G = Le(e, {
|
|
1079
|
+
collapseIcon: $o,
|
|
1080
|
+
expandIcon: Io,
|
|
1081
1081
|
header: Fn,
|
|
1082
1082
|
item: Dn,
|
|
1083
1083
|
section: uo
|
|
1084
1084
|
});
|
|
1085
1085
|
return /* @__PURE__ */ x.jsx("div", { ...B, ref: S, style: le(r, Y.root), children: /* @__PURE__ */ x.jsx(ln, { in: p, children: (_, M) => {
|
|
1086
|
-
const { collectionPadding: te = 0, items: oe = [], itemLength: ue = 50, itemPadding: se = 0, isSelectionTogglable: Se, layout:
|
|
1086
|
+
const { collectionPadding: te = 0, items: oe = [], itemLength: ue = 50, itemPadding: se = 0, isSelectionTogglable: Se, layout: Oe = "list", maxVisible: me = -1, numSegments: Q = 1 } = _, ke = Oe === "list" ? oe.length : Math.ceil(oe.length / Q), Ie = me < 0 ? ke : Math.min(ke, me), Be = ue * Ie + se * (Ie - 1), je = !H(M), De = ne[M];
|
|
1087
1087
|
return /* @__PURE__ */ x.jsxs(
|
|
1088
1088
|
ge,
|
|
1089
1089
|
{
|
|
@@ -1154,10 +1154,10 @@ const $s = /* @__PURE__ */ _e(({
|
|
|
1154
1154
|
width: "100%",
|
|
1155
1155
|
height: `${Be}px`,
|
|
1156
1156
|
marginTop: `${te}px`,
|
|
1157
|
-
overflowY: me < 0 || me >=
|
|
1157
|
+
overflowY: me < 0 || me >= ke ? "hidden" : "scroll"
|
|
1158
1158
|
} : {
|
|
1159
1159
|
marginLeft: `${te}px`,
|
|
1160
|
-
overflowX: me < 0 || me >=
|
|
1160
|
+
overflowX: me < 0 || me >= ke ? "hidden" : "scroll",
|
|
1161
1161
|
width: `${Be}px`,
|
|
1162
1162
|
height: "100%"
|
|
1163
1163
|
}),
|
|
@@ -1170,7 +1170,7 @@ const $s = /* @__PURE__ */ _e(({
|
|
|
1170
1170
|
itemLength: ue,
|
|
1171
1171
|
itemPadding: se,
|
|
1172
1172
|
items: oe,
|
|
1173
|
-
layout:
|
|
1173
|
+
layout: Oe,
|
|
1174
1174
|
numSegments: Q,
|
|
1175
1175
|
orientation: l,
|
|
1176
1176
|
selection: w[M] ?? [],
|
|
@@ -1189,17 +1189,17 @@ const $s = /* @__PURE__ */ _e(({
|
|
|
1189
1189
|
}
|
|
1190
1190
|
);
|
|
1191
1191
|
} }) });
|
|
1192
|
-
}), Fn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }),
|
|
1193
|
-
function
|
|
1192
|
+
}), Fn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Io = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, children: e }), $o = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, children: e }), uo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Dn = Pt;
|
|
1193
|
+
function Ao(e, r) {
|
|
1194
1194
|
return e >= r.length || e < 0;
|
|
1195
1195
|
}
|
|
1196
1196
|
function As(e, r, s) {
|
|
1197
|
-
if (
|
|
1197
|
+
if (Ao(r, s)) return !0;
|
|
1198
1198
|
const a = s[r].items ?? [];
|
|
1199
1199
|
return e >= a.length || e < 0;
|
|
1200
1200
|
}
|
|
1201
1201
|
function Ms(e, r) {
|
|
1202
|
-
return nn(e).filter((s) =>
|
|
1202
|
+
return nn(e).filter((s) => !Ao(s, r));
|
|
1203
1203
|
}
|
|
1204
1204
|
function Rs(e, r) {
|
|
1205
1205
|
const s = {};
|
|
@@ -1273,7 +1273,7 @@ function zs({ orientation: e = "vertical" }) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
};
|
|
1275
1275
|
}
|
|
1276
|
-
process.env.NODE_ENV !== "production" && ($s.displayName = "Accordion", Fn.displayName = "AccordionHeader",
|
|
1276
|
+
process.env.NODE_ENV !== "production" && ($s.displayName = "Accordion", Fn.displayName = "AccordionHeader", Io.displayName = "AccordionExpandIcon", $o.displayName = "AccordionCollapseIcon", Dn.displayName = "AccordionItem");
|
|
1277
1277
|
function Vn({
|
|
1278
1278
|
count: e = 1,
|
|
1279
1279
|
children: r,
|
|
@@ -1285,7 +1285,7 @@ process.env.NODE_ENV !== "production" && (Vn.displayName = "Repeat");
|
|
|
1285
1285
|
function ml(e) {
|
|
1286
1286
|
return e;
|
|
1287
1287
|
}
|
|
1288
|
-
const
|
|
1288
|
+
const Mo = /* @__PURE__ */ _e(({
|
|
1289
1289
|
children: e,
|
|
1290
1290
|
className: r,
|
|
1291
1291
|
isActive: s = !1,
|
|
@@ -1294,7 +1294,7 @@ const Ao = /* @__PURE__ */ _e(({
|
|
|
1294
1294
|
numberOfBars: u = 3,
|
|
1295
1295
|
...p
|
|
1296
1296
|
}, g) => {
|
|
1297
|
-
const m =
|
|
1297
|
+
const m = Le(e, {
|
|
1298
1298
|
bar: rn
|
|
1299
1299
|
}), N = {
|
|
1300
1300
|
root: ie({
|
|
@@ -1310,7 +1310,7 @@ const Ao = /* @__PURE__ */ _e(({
|
|
|
1310
1310
|
...p,
|
|
1311
1311
|
ref: g,
|
|
1312
1312
|
className: ie(r, N.root),
|
|
1313
|
-
children: /* @__PURE__ */ x.jsx(Vn, { count: l ? 2 : 1, children: (P) => /* @__PURE__ */ x.jsx("div", { "aria-hidden": !0, style: le(T.section, T[`section${P}`]), children: /* @__PURE__ */ x.jsx(Vn, { count: u, children: (
|
|
1313
|
+
children: /* @__PURE__ */ x.jsx(Vn, { count: l ? 2 : 1, children: (P) => /* @__PURE__ */ x.jsx("div", { "aria-hidden": !0, style: le(T.section, T[`section${P}`]), children: /* @__PURE__ */ x.jsx(Vn, { count: u, children: (k) => /* @__PURE__ */ x.jsx(
|
|
1314
1314
|
ge,
|
|
1315
1315
|
{
|
|
1316
1316
|
"aria-hidden": !0,
|
|
@@ -1319,10 +1319,10 @@ const Ao = /* @__PURE__ */ _e(({
|
|
|
1319
1319
|
style: (() => {
|
|
1320
1320
|
switch (u) {
|
|
1321
1321
|
case 2:
|
|
1322
|
-
return le(T.bar, T[`bar${P}${
|
|
1322
|
+
return le(T.bar, T[`bar${P}${k === 0 ? 0 : 2}`]);
|
|
1323
1323
|
case 3:
|
|
1324
1324
|
default:
|
|
1325
|
-
return le(T.bar, T[`bar${P}${
|
|
1325
|
+
return le(T.bar, T[`bar${P}${k}`]);
|
|
1326
1326
|
}
|
|
1327
1327
|
})()
|
|
1328
1328
|
}
|
|
@@ -1391,7 +1391,7 @@ function Ls({ isActive: e = !1, isSplit: r = !1, isTailHidden: s = !1 }) {
|
|
|
1391
1391
|
}
|
|
1392
1392
|
};
|
|
1393
1393
|
}
|
|
1394
|
-
process.env.NODE_ENV !== "production" && (
|
|
1394
|
+
process.env.NODE_ENV !== "production" && (Mo.displayName = "Burger", rn.displayName = "BurgerBar");
|
|
1395
1395
|
const Fs = /* @__PURE__ */ _e(({
|
|
1396
1396
|
children: e,
|
|
1397
1397
|
className: r,
|
|
@@ -1405,7 +1405,7 @@ const Fs = /* @__PURE__ */ _e(({
|
|
|
1405
1405
|
onToggle: N,
|
|
1406
1406
|
...T
|
|
1407
1407
|
}, P) => {
|
|
1408
|
-
const
|
|
1408
|
+
const k = () => {
|
|
1409
1409
|
const b = !a;
|
|
1410
1410
|
N?.(b), b ? g?.() : m?.();
|
|
1411
1411
|
}, I = {
|
|
@@ -1421,9 +1421,9 @@ const Fs = /* @__PURE__ */ _e(({
|
|
|
1421
1421
|
"aria-expanded": a,
|
|
1422
1422
|
className: ie(r, I.root),
|
|
1423
1423
|
style: le(s, R.root),
|
|
1424
|
-
onClick:
|
|
1424
|
+
onClick: k,
|
|
1425
1425
|
children: /* @__PURE__ */ x.jsx(
|
|
1426
|
-
|
|
1426
|
+
Mo,
|
|
1427
1427
|
{
|
|
1428
1428
|
isActive: a,
|
|
1429
1429
|
isSplit: u,
|
|
@@ -1451,7 +1451,7 @@ function Hs(e) {
|
|
|
1451
1451
|
case Bs(e): {
|
|
1452
1452
|
const { action: r, children: s, isNav: a, className: l, isDisabled: u, label: p, ...g } = e;
|
|
1453
1453
|
return /* @__PURE__ */ x.jsx(
|
|
1454
|
-
|
|
1454
|
+
ws,
|
|
1455
1455
|
{
|
|
1456
1456
|
...g,
|
|
1457
1457
|
"aria-disabled": u,
|
|
@@ -1465,7 +1465,7 @@ function Hs(e) {
|
|
|
1465
1465
|
case Ys(e): {
|
|
1466
1466
|
const { action: r, children: s, className: a, isDisabled: l, label: u, ...p } = e;
|
|
1467
1467
|
return /* @__PURE__ */ x.jsx(
|
|
1468
|
-
|
|
1468
|
+
bs,
|
|
1469
1469
|
{
|
|
1470
1470
|
...p,
|
|
1471
1471
|
"aria-disabled": l,
|
|
@@ -1536,18 +1536,18 @@ function qs(e, {
|
|
|
1536
1536
|
if (!p.current) return;
|
|
1537
1537
|
const b = pe.make(R.clientX, R.clientY), j = pe.subtract(b, g.current ?? p.current);
|
|
1538
1538
|
g.current = b, N.current?.(j, b, p.current);
|
|
1539
|
-
}, []),
|
|
1539
|
+
}, []), k = ve((R) => {
|
|
1540
1540
|
const b = e.current;
|
|
1541
1541
|
if (!b || !p.current) return;
|
|
1542
1542
|
const j = pe.make(R.clientX, R.clientY), W = pe.subtract(g.current ?? p.current, j);
|
|
1543
|
-
T.current?.(j, W, p.current), p.current = void 0, g.current = void 0, b.removeEventListener("mousemove", P), b.removeEventListener("mouseup",
|
|
1543
|
+
T.current?.(j, W, p.current), p.current = void 0, g.current = void 0, b.removeEventListener("mousemove", P), b.removeEventListener("mouseup", k, { capture: !0 }), b.removeEventListener("mouseleave", k), s && (b.style.cursor = "grab");
|
|
1544
1544
|
}, [s, P]), I = ve((R) => {
|
|
1545
1545
|
const b = e.current;
|
|
1546
1546
|
if (!b) return;
|
|
1547
1547
|
R.preventDefault();
|
|
1548
1548
|
const j = pe.make(R.clientX, R.clientY);
|
|
1549
|
-
p.current = j, g.current = j, b.addEventListener("mousemove", P), b.addEventListener("mouseup",
|
|
1550
|
-
}, [s, P,
|
|
1549
|
+
p.current = j, g.current = j, b.addEventListener("mousemove", P), b.addEventListener("mouseup", k, { capture: !0 }), b.addEventListener("mouseleave", k), s && (b.style.cursor = "grabbing"), m.current?.(j);
|
|
1550
|
+
}, [s, P, k]);
|
|
1551
1551
|
he(() => {
|
|
1552
1552
|
const R = e.current;
|
|
1553
1553
|
if (!R || !r || !s) return;
|
|
@@ -1559,9 +1559,9 @@ function qs(e, {
|
|
|
1559
1559
|
const R = e.current;
|
|
1560
1560
|
if (!(!R || !r))
|
|
1561
1561
|
return R.addEventListener("mousedown", I), () => {
|
|
1562
|
-
R.removeEventListener("mousedown", I), R.removeEventListener("mousemove", P), R.removeEventListener("mouseup",
|
|
1562
|
+
R.removeEventListener("mousedown", I), R.removeEventListener("mousemove", P), R.removeEventListener("mouseup", k, { capture: !0 }), R.removeEventListener("mouseleave", k);
|
|
1563
1563
|
};
|
|
1564
|
-
}, [r, P,
|
|
1564
|
+
}, [r, P, k, I]);
|
|
1565
1565
|
}
|
|
1566
1566
|
function Gs(e, {
|
|
1567
1567
|
autoStarts: r = !0,
|
|
@@ -1590,7 +1590,7 @@ const Ws = /* @__PURE__ */ _e(({
|
|
|
1590
1590
|
ItemComponent: N,
|
|
1591
1591
|
...T
|
|
1592
1592
|
}, P) => {
|
|
1593
|
-
const
|
|
1593
|
+
const k = Ee(void 0), I = Ee(null), R = Ee(void 0), b = Ee(void 0), j = Ee(void 0), W = 1e3, [q, D] = Ne($n(I, l)), [B, S] = Ne(!1), C = Zs({ scrollSnapEnabled: !B, orientation: l }), w = e > 0, z = ve((A) => {
|
|
1594
1594
|
m?.(A);
|
|
1595
1595
|
}, [m]), Y = ve((A) => {
|
|
1596
1596
|
R.current = pe.make(A.clientX, A.clientY), S(!0);
|
|
@@ -1628,12 +1628,12 @@ const Ws = /* @__PURE__ */ _e(({
|
|
|
1628
1628
|
return he(() => {
|
|
1629
1629
|
const A = I.current;
|
|
1630
1630
|
if (!A) return;
|
|
1631
|
-
const J =
|
|
1631
|
+
const J = k.current === void 0, Z = k.current === r, ae = (G) => {
|
|
1632
1632
|
if (u && D($n(I, l)), j.current !== void 0) return;
|
|
1633
1633
|
const _ = Math.round(l === "horizontal" ? A.scrollLeft / A.clientWidth : A.scrollTop / A.clientHeight), M = Math.max(0, Math.min(a.length - 1, _));
|
|
1634
|
-
M !== r && (
|
|
1634
|
+
M !== r && (k.current = M, z(M));
|
|
1635
1635
|
};
|
|
1636
|
-
return A.addEventListener("scroll", ae), u && D($n(I, l)), Z || (
|
|
1636
|
+
return A.addEventListener("scroll", ae), u && D($n(I, l)), Z || (k.current = r, J || (z(r), K())), () => {
|
|
1637
1637
|
A.removeEventListener("scroll", ae);
|
|
1638
1638
|
};
|
|
1639
1639
|
}, [r, l, u]), he(() => {
|
|
@@ -1738,7 +1738,7 @@ function Qs(e) {
|
|
|
1738
1738
|
r.current = e;
|
|
1739
1739
|
}, [e]), r.current;
|
|
1740
1740
|
}
|
|
1741
|
-
const
|
|
1741
|
+
const Ro = /* @__PURE__ */ _e(({
|
|
1742
1742
|
className: e,
|
|
1743
1743
|
emptyValue: r = "",
|
|
1744
1744
|
isDisabled: s = !1,
|
|
@@ -1751,7 +1751,7 @@ const Mo = /* @__PURE__ */ _e(({
|
|
|
1751
1751
|
onChange: N,
|
|
1752
1752
|
...T
|
|
1753
1753
|
}, P) => {
|
|
1754
|
-
const
|
|
1754
|
+
const k = ve((I) => {
|
|
1755
1755
|
const R = (p?.(I) ?? I) || r;
|
|
1756
1756
|
N?.(R);
|
|
1757
1757
|
}, [N, p]);
|
|
@@ -1770,12 +1770,12 @@ const Mo = /* @__PURE__ */ _e(({
|
|
|
1770
1770
|
type: "text",
|
|
1771
1771
|
value: u || r,
|
|
1772
1772
|
onBlur: ({ target: I }) => m?.(I.value),
|
|
1773
|
-
onChange: ({ target: I }) =>
|
|
1773
|
+
onChange: ({ target: I }) => k(I.value),
|
|
1774
1774
|
onFocus: ({ target: I }) => g?.(I.value)
|
|
1775
1775
|
}
|
|
1776
1776
|
);
|
|
1777
1777
|
});
|
|
1778
|
-
process.env.NODE_ENV !== "production" && (
|
|
1778
|
+
process.env.NODE_ENV !== "production" && (Ro.displayName = "TextField");
|
|
1779
1779
|
const ea = /* @__PURE__ */ _e(({
|
|
1780
1780
|
children: e,
|
|
1781
1781
|
style: r,
|
|
@@ -1792,7 +1792,7 @@ const ea = /* @__PURE__ */ _e(({
|
|
|
1792
1792
|
p?.(b(u + 1));
|
|
1793
1793
|
}, P = (C) => {
|
|
1794
1794
|
W(C);
|
|
1795
|
-
},
|
|
1795
|
+
}, k = (C) => {
|
|
1796
1796
|
const w = R(C);
|
|
1797
1797
|
w !== u ? p?.(w) : W(I(w));
|
|
1798
1798
|
}, I = (C) => C.toLocaleString(), R = (C) => {
|
|
@@ -1807,7 +1807,7 @@ const ea = /* @__PURE__ */ _e(({
|
|
|
1807
1807
|
const C = b(u);
|
|
1808
1808
|
W(I(C));
|
|
1809
1809
|
}, [u, l, a]);
|
|
1810
|
-
const S =
|
|
1810
|
+
const S = Le(e, {
|
|
1811
1811
|
textField: Hn,
|
|
1812
1812
|
addButton: Bn,
|
|
1813
1813
|
subscribeButton: Yn
|
|
@@ -1830,7 +1830,7 @@ const ea = /* @__PURE__ */ _e(({
|
|
|
1830
1830
|
style: le(Ut.textField),
|
|
1831
1831
|
value: j,
|
|
1832
1832
|
onChange: P,
|
|
1833
|
-
onUnfocus:
|
|
1833
|
+
onUnfocus: k
|
|
1834
1834
|
}
|
|
1835
1835
|
),
|
|
1836
1836
|
/* @__PURE__ */ x.jsx(
|
|
@@ -1843,7 +1843,7 @@ const ea = /* @__PURE__ */ _e(({
|
|
|
1843
1843
|
}
|
|
1844
1844
|
)
|
|
1845
1845
|
] });
|
|
1846
|
-
}), Hn = ({ ...e }) => /* @__PURE__ */ x.jsx(
|
|
1846
|
+
}), Hn = ({ ...e }) => /* @__PURE__ */ x.jsx(Ro, { ...e }), Bn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Yn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Ut = {
|
|
1847
1847
|
root: {
|
|
1848
1848
|
alignItems: "stretch",
|
|
1849
1849
|
display: "flex",
|
|
@@ -1881,11 +1881,11 @@ function ta({
|
|
|
1881
1881
|
} = {}) {
|
|
1882
1882
|
const p = Ee(void 0), g = Te(a), m = Te(l), N = Te(u);
|
|
1883
1883
|
he(() => {
|
|
1884
|
-
const T = (
|
|
1885
|
-
const I =
|
|
1884
|
+
const T = (k) => {
|
|
1885
|
+
const I = k.currentTarget;
|
|
1886
1886
|
m.current?.(I);
|
|
1887
|
-
}, P = (
|
|
1888
|
-
const I =
|
|
1887
|
+
}, P = (k) => {
|
|
1888
|
+
const I = k.currentTarget;
|
|
1889
1889
|
N.current?.(I);
|
|
1890
1890
|
};
|
|
1891
1891
|
return p.current = new Image(), e && (p.current.src = e), r && (p.current.srcset = r), s && (p.current.sizes = s), g.current?.(p.current), p.current.addEventListener("load", T), p.current.addEventListener("error", P), () => {
|
|
@@ -1893,7 +1893,7 @@ function ta({
|
|
|
1893
1893
|
};
|
|
1894
1894
|
}, [e, r, s]);
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1896
|
+
function zo({
|
|
1897
1897
|
src: e,
|
|
1898
1898
|
srcSet: r,
|
|
1899
1899
|
sizes: s
|
|
@@ -1903,7 +1903,7 @@ function Ro({
|
|
|
1903
1903
|
onLoadComplete: u,
|
|
1904
1904
|
onLoadError: p
|
|
1905
1905
|
} = {}) {
|
|
1906
|
-
const [g, m] = Ne(), N = Te(l), T = Te(u), P = Te(p),
|
|
1906
|
+
const [g, m] = Ne(), N = Te(l), T = Te(u), P = Te(p), k = ve((b) => {
|
|
1907
1907
|
a || m(void 0), N.current?.(b);
|
|
1908
1908
|
}, [a]), I = ve((b) => {
|
|
1909
1909
|
m(na(b)), T.current?.(b);
|
|
@@ -1911,16 +1911,16 @@ function Ro({
|
|
|
1911
1911
|
a || m(void 0), P.current?.(b);
|
|
1912
1912
|
}, [a]);
|
|
1913
1913
|
return ta({ src: e, srcSet: r, sizes: s }, {
|
|
1914
|
-
onLoadStart:
|
|
1914
|
+
onLoadStart: k,
|
|
1915
1915
|
onLoadComplete: I,
|
|
1916
1916
|
onLoadError: R
|
|
1917
1917
|
}), g;
|
|
1918
1918
|
}
|
|
1919
1919
|
function na(e) {
|
|
1920
1920
|
if (e && typeof e.width == "number" && typeof e.height == "number")
|
|
1921
|
-
return
|
|
1921
|
+
return ze.make(e.width, e.height);
|
|
1922
1922
|
}
|
|
1923
|
-
const
|
|
1923
|
+
const Lo = /* @__PURE__ */ _e(({
|
|
1924
1924
|
alt: e,
|
|
1925
1925
|
loadingMode: r = "preload",
|
|
1926
1926
|
sizes: s,
|
|
@@ -1957,7 +1957,7 @@ const zo = /* @__PURE__ */ _e(({
|
|
|
1957
1957
|
W += ` ${R}x`;
|
|
1958
1958
|
}
|
|
1959
1959
|
return W;
|
|
1960
|
-
}).filter(Boolean).join(", "),
|
|
1960
|
+
}).filter(Boolean).join(", "), k = s?.map(({ mediaCondition: R, width: b }, j) => {
|
|
1961
1961
|
const W = j === s.length - 1;
|
|
1962
1962
|
let q = b;
|
|
1963
1963
|
if (W && R) {
|
|
@@ -1965,10 +1965,10 @@ const zo = /* @__PURE__ */ _e(({
|
|
|
1965
1965
|
return;
|
|
1966
1966
|
}
|
|
1967
1967
|
return R && (q = `${R} ${q}`), q;
|
|
1968
|
-
}).filter(Boolean).join(", "), I =
|
|
1968
|
+
}).filter(Boolean).join(", "), I = zo({
|
|
1969
1969
|
src: a,
|
|
1970
1970
|
srcSet: P,
|
|
1971
|
-
sizes:
|
|
1971
|
+
sizes: k
|
|
1972
1972
|
}, {
|
|
1973
1973
|
onLoadStart: u,
|
|
1974
1974
|
onLoadComplete: p,
|
|
@@ -1983,13 +1983,13 @@ const zo = /* @__PURE__ */ _e(({
|
|
|
1983
1983
|
ref: T,
|
|
1984
1984
|
alt: e,
|
|
1985
1985
|
loading: r === "lazy" ? "lazy" : "eager",
|
|
1986
|
-
sizes:
|
|
1986
|
+
sizes: k,
|
|
1987
1987
|
src: a,
|
|
1988
1988
|
srcSet: P
|
|
1989
1989
|
}
|
|
1990
1990
|
);
|
|
1991
1991
|
});
|
|
1992
|
-
process.env.NODE_ENV !== "production" && (
|
|
1992
|
+
process.env.NODE_ENV !== "production" && (Lo.displayName = "Image");
|
|
1993
1993
|
const ra = /* @__PURE__ */ _e(({
|
|
1994
1994
|
children: e,
|
|
1995
1995
|
style: r,
|
|
@@ -2003,15 +2003,15 @@ const ra = /* @__PURE__ */ _e(({
|
|
|
2003
2003
|
onLoadComplete: N,
|
|
2004
2004
|
onLoadError: T,
|
|
2005
2005
|
...P
|
|
2006
|
-
},
|
|
2006
|
+
}, k) => {
|
|
2007
2007
|
const I = (w) => {
|
|
2008
2008
|
W(w ? w.width / w.height : NaN);
|
|
2009
|
-
}, R = Ee(null), b =
|
|
2009
|
+
}, R = Ee(null), b = k ?? R, [j, W] = Ne(NaN), q = isNaN(a) ? j : a, D = tt(b), B = D.width / D.height, S = ze.make(
|
|
2010
2010
|
B > 1 ? Math.max(D.width, D.height * q) : Math.max(D.width, Math.max(D.height, D.width / q) * q),
|
|
2011
2011
|
B > 1 ? Math.max(D.height, Math.max(D.width, D.height * q) / q) : Math.max(D.height, D.width / q)
|
|
2012
|
-
), C =
|
|
2013
|
-
content:
|
|
2014
|
-
viewport:
|
|
2012
|
+
), C = Le(e, {
|
|
2013
|
+
content: Fo,
|
|
2014
|
+
viewport: Do
|
|
2015
2015
|
});
|
|
2016
2016
|
return /* @__PURE__ */ x.jsxs(
|
|
2017
2017
|
"div",
|
|
@@ -2021,7 +2021,7 @@ const ra = /* @__PURE__ */ _e(({
|
|
|
2021
2021
|
style: le(r, An.root),
|
|
2022
2022
|
children: [
|
|
2023
2023
|
/* @__PURE__ */ x.jsx(
|
|
2024
|
-
|
|
2024
|
+
Lo,
|
|
2025
2025
|
{
|
|
2026
2026
|
alt: s,
|
|
2027
2027
|
sizes: u,
|
|
@@ -2053,7 +2053,7 @@ const ra = /* @__PURE__ */ _e(({
|
|
|
2053
2053
|
]
|
|
2054
2054
|
}
|
|
2055
2055
|
);
|
|
2056
|
-
}),
|
|
2056
|
+
}), Fo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Do = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), An = {
|
|
2057
2057
|
root: {
|
|
2058
2058
|
overflow: "hidden"
|
|
2059
2059
|
},
|
|
@@ -2065,7 +2065,7 @@ const ra = /* @__PURE__ */ _e(({
|
|
|
2065
2065
|
transform: "translate(-50%, -50%)"
|
|
2066
2066
|
}
|
|
2067
2067
|
};
|
|
2068
|
-
process.env.NODE_ENV !== "production" && (ra.displayName = "CoverImage",
|
|
2068
|
+
process.env.NODE_ENV !== "production" && (ra.displayName = "CoverImage", Fo.displayName = "CoverImageContent", Do.displayName = "CoverImageViewport");
|
|
2069
2069
|
function oa(e, {
|
|
2070
2070
|
onLoadStart: r,
|
|
2071
2071
|
onLoadComplete: s,
|
|
@@ -2090,20 +2090,20 @@ function ia(e, {
|
|
|
2090
2090
|
r || p(void 0), g.current?.(I);
|
|
2091
2091
|
}, [r]), P = ve((I) => {
|
|
2092
2092
|
p(sa(I)), m.current?.(I);
|
|
2093
|
-
}, []),
|
|
2093
|
+
}, []), k = ve((I) => {
|
|
2094
2094
|
r || p(void 0), N.current?.(I);
|
|
2095
2095
|
}, [r]);
|
|
2096
2096
|
return oa(e, {
|
|
2097
2097
|
onLoadStart: T,
|
|
2098
2098
|
onLoadComplete: P,
|
|
2099
|
-
onLoadError:
|
|
2099
|
+
onLoadError: k
|
|
2100
2100
|
}), u;
|
|
2101
2101
|
}
|
|
2102
2102
|
function sa(e) {
|
|
2103
2103
|
if (e && typeof e.videoWidth == "number" && typeof e.videoHeight == "number")
|
|
2104
|
-
return
|
|
2104
|
+
return ze.make(e.videoWidth, e.videoHeight);
|
|
2105
2105
|
}
|
|
2106
|
-
const
|
|
2106
|
+
const Vo = /* @__PURE__ */ _e(({
|
|
2107
2107
|
autoLoop: e = !0,
|
|
2108
2108
|
autoPlay: r = !0,
|
|
2109
2109
|
hasControls: s = !1,
|
|
@@ -2116,7 +2116,7 @@ const Do = /* @__PURE__ */ _e(({
|
|
|
2116
2116
|
onFullscreenChange: N,
|
|
2117
2117
|
onLoadMetadata: T,
|
|
2118
2118
|
onLoadMetadataComplete: P,
|
|
2119
|
-
onLoadMetadataError:
|
|
2119
|
+
onLoadMetadataError: k,
|
|
2120
2120
|
onPause: I,
|
|
2121
2121
|
onPlay: R,
|
|
2122
2122
|
onSizeChange: b,
|
|
@@ -2126,7 +2126,7 @@ const Do = /* @__PURE__ */ _e(({
|
|
|
2126
2126
|
const D = Ee(null), B = q ?? D, S = ia(p, {
|
|
2127
2127
|
onLoadStart: T,
|
|
2128
2128
|
onLoadComplete: P,
|
|
2129
|
-
onLoadError:
|
|
2129
|
+
onLoadError: k
|
|
2130
2130
|
});
|
|
2131
2131
|
he(() => {
|
|
2132
2132
|
if (!B.current) return;
|
|
@@ -2184,7 +2184,7 @@ const Do = /* @__PURE__ */ _e(({
|
|
|
2184
2184
|
}
|
|
2185
2185
|
);
|
|
2186
2186
|
});
|
|
2187
|
-
process.env.NODE_ENV !== "production" && (
|
|
2187
|
+
process.env.NODE_ENV !== "production" && (Vo.displayName = "Video");
|
|
2188
2188
|
const aa = /* @__PURE__ */ _e(({
|
|
2189
2189
|
className: e,
|
|
2190
2190
|
children: r,
|
|
@@ -2198,7 +2198,7 @@ const aa = /* @__PURE__ */ _e(({
|
|
|
2198
2198
|
posterSrc: N,
|
|
2199
2199
|
src: T,
|
|
2200
2200
|
onCanPlay: P,
|
|
2201
|
-
onEnd:
|
|
2201
|
+
onEnd: k,
|
|
2202
2202
|
onFullscreenChange: I,
|
|
2203
2203
|
onLoadMetadata: R,
|
|
2204
2204
|
onLoadMetadataComplete: b,
|
|
@@ -2210,12 +2210,12 @@ const aa = /* @__PURE__ */ _e(({
|
|
|
2210
2210
|
}, S) => {
|
|
2211
2211
|
const C = (A) => {
|
|
2212
2212
|
U(A ? A.width / A.height : NaN), D?.(A);
|
|
2213
|
-
}, w = S ?? Ee(null), z = tt(w), [Y, U] = Ne(NaN), ne = isNaN(a) ? Y : a, K = z.width / z.height, H =
|
|
2213
|
+
}, w = S ?? Ee(null), z = tt(w), [Y, U] = Ne(NaN), ne = isNaN(a) ? Y : a, K = z.width / z.height, H = ze.make(
|
|
2214
2214
|
K > 1 ? Math.max(z.width, z.height * ne) : Math.max(z.width, Math.max(z.height, z.width / ne) * ne),
|
|
2215
2215
|
K > 1 ? Math.max(z.height, Math.max(z.width, z.height * ne) / ne) : Math.max(z.height, z.width / ne)
|
|
2216
|
-
), L =
|
|
2217
|
-
content:
|
|
2218
|
-
viewport:
|
|
2216
|
+
), L = Le(r, {
|
|
2217
|
+
content: Ho,
|
|
2218
|
+
viewport: Bo
|
|
2219
2219
|
});
|
|
2220
2220
|
return /* @__PURE__ */ x.jsxs(
|
|
2221
2221
|
"div",
|
|
@@ -2226,7 +2226,7 @@ const aa = /* @__PURE__ */ _e(({
|
|
|
2226
2226
|
style: le(s, Mn.root),
|
|
2227
2227
|
children: [
|
|
2228
2228
|
/* @__PURE__ */ x.jsx(
|
|
2229
|
-
|
|
2229
|
+
Vo,
|
|
2230
2230
|
{
|
|
2231
2231
|
autoLoop: l,
|
|
2232
2232
|
autoPlay: u,
|
|
@@ -2241,7 +2241,7 @@ const aa = /* @__PURE__ */ _e(({
|
|
|
2241
2241
|
maxWidth: "unset"
|
|
2242
2242
|
}),
|
|
2243
2243
|
onCanPlay: P,
|
|
2244
|
-
onEnd:
|
|
2244
|
+
onEnd: k,
|
|
2245
2245
|
onFullscreenChange: I,
|
|
2246
2246
|
onLoadMetadata: R,
|
|
2247
2247
|
onLoadMetadataComplete: b,
|
|
@@ -2266,7 +2266,7 @@ const aa = /* @__PURE__ */ _e(({
|
|
|
2266
2266
|
]
|
|
2267
2267
|
}
|
|
2268
2268
|
);
|
|
2269
|
-
}),
|
|
2269
|
+
}), Ho = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Bo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), Mn = {
|
|
2270
2270
|
root: {
|
|
2271
2271
|
overflow: "hidden"
|
|
2272
2272
|
},
|
|
@@ -2278,7 +2278,7 @@ const aa = /* @__PURE__ */ _e(({
|
|
|
2278
2278
|
transform: "translate(-50%, -50%)"
|
|
2279
2279
|
}
|
|
2280
2280
|
};
|
|
2281
|
-
process.env.NODE_ENV !== "production" && (aa.displayName = "CoverVideo",
|
|
2281
|
+
process.env.NODE_ENV !== "production" && (aa.displayName = "CoverVideo", Ho.displayName = "CoverVideoContent", Bo.displayName = "CoverVideoViewport");
|
|
2282
2282
|
const ca = /* @__PURE__ */ _e(({
|
|
2283
2283
|
children: e,
|
|
2284
2284
|
style: r,
|
|
@@ -2290,7 +2290,7 @@ const ca = /* @__PURE__ */ _e(({
|
|
|
2290
2290
|
trackThickness: g = 2,
|
|
2291
2291
|
...m
|
|
2292
2292
|
}, N) => {
|
|
2293
|
-
const T = u * 2, P = Math.max(0, Math.min(360, a)),
|
|
2293
|
+
const T = u * 2, P = Math.max(0, Math.min(360, a)), k = Le(e, {
|
|
2294
2294
|
track: Xn,
|
|
2295
2295
|
knob: Un
|
|
2296
2296
|
}), I = ua({ angle: s, diameter: T });
|
|
@@ -2300,7 +2300,7 @@ const ca = /* @__PURE__ */ _e(({
|
|
|
2300
2300
|
{
|
|
2301
2301
|
cx: u,
|
|
2302
2302
|
cy: u,
|
|
2303
|
-
element:
|
|
2303
|
+
element: k.track ?? /* @__PURE__ */ x.jsx(Xn, {}),
|
|
2304
2304
|
fill: "none",
|
|
2305
2305
|
r: u - g / 2,
|
|
2306
2306
|
strokeDasharray: p,
|
|
@@ -2311,7 +2311,7 @@ const ca = /* @__PURE__ */ _e(({
|
|
|
2311
2311
|
ge,
|
|
2312
2312
|
{
|
|
2313
2313
|
d: la(u, u, u - l / 2 - (g - l) / 2, -P / 2, P / 2),
|
|
2314
|
-
element:
|
|
2314
|
+
element: k.knob ?? /* @__PURE__ */ x.jsx(Un, {}),
|
|
2315
2315
|
fill: "none",
|
|
2316
2316
|
strokeWidth: l
|
|
2317
2317
|
}
|
|
@@ -2389,7 +2389,7 @@ const fa = /* @__PURE__ */ _e(({
|
|
|
2389
2389
|
isSelectionTogglable: N = !1,
|
|
2390
2390
|
itemLength: T,
|
|
2391
2391
|
itemPadding: P = 0,
|
|
2392
|
-
items:
|
|
2392
|
+
items: k = [],
|
|
2393
2393
|
maxVisibleItems: I = -1,
|
|
2394
2394
|
numSegments: R = 1,
|
|
2395
2395
|
orientation: b = "vertical",
|
|
@@ -2406,10 +2406,10 @@ const fa = /* @__PURE__ */ _e(({
|
|
|
2406
2406
|
ToggleComponent: U,
|
|
2407
2407
|
...ne
|
|
2408
2408
|
}, K) => {
|
|
2409
|
-
const H = Ee(null), L = tt(H), A =
|
|
2410
|
-
collapseIcon:
|
|
2409
|
+
const H = Ee(null), L = tt(H), A = k.length, J = ga(k, I, R, m), Z = T ?? (b === "vertical" ? L.height : L.width), ae = Z * J + P * (J - 1), G = pa(j, k), [_, M] = Ne(u ?? !0), te = ma({ isCollapsed: _, collectionPadding: l, isInverted: p, maxVisibleItems: I, menuLength: ae, numItems: A, orientation: b }), oe = Le(e, {
|
|
2410
|
+
collapseIcon: Yo,
|
|
2411
2411
|
collection: qn,
|
|
2412
|
-
expandIcon:
|
|
2412
|
+
expandIcon: Xo,
|
|
2413
2413
|
item: Gn,
|
|
2414
2414
|
toggle: Wn
|
|
2415
2415
|
}), ue = () => {
|
|
@@ -2418,7 +2418,7 @@ const fa = /* @__PURE__ */ _e(({
|
|
|
2418
2418
|
_ || (M(!0), D?.());
|
|
2419
2419
|
}, Se = () => {
|
|
2420
2420
|
_ ? ue() : se();
|
|
2421
|
-
},
|
|
2421
|
+
}, Oe = (me) => {
|
|
2422
2422
|
C?.(me), W === "single" && a && se();
|
|
2423
2423
|
};
|
|
2424
2424
|
return he(() => {
|
|
@@ -2426,16 +2426,16 @@ const fa = /* @__PURE__ */ _e(({
|
|
|
2426
2426
|
}, [u]), he(() => {
|
|
2427
2427
|
const me = (Q) => {
|
|
2428
2428
|
if (_ || !(Q.target instanceof Node)) return;
|
|
2429
|
-
let
|
|
2429
|
+
let ke = !0, Ie = Q.target;
|
|
2430
2430
|
for (; Ie; ) {
|
|
2431
2431
|
if (Ie === H.current) {
|
|
2432
|
-
|
|
2432
|
+
ke = !1;
|
|
2433
2433
|
break;
|
|
2434
2434
|
}
|
|
2435
2435
|
if (!Ie.parentNode) break;
|
|
2436
2436
|
Ie = Ie.parentNode;
|
|
2437
2437
|
}
|
|
2438
|
-
|
|
2438
|
+
ke && se();
|
|
2439
2439
|
};
|
|
2440
2440
|
return window.addEventListener("click", me), () => {
|
|
2441
2441
|
window.removeEventListener("click", me);
|
|
@@ -2468,7 +2468,7 @@ const fa = /* @__PURE__ */ _e(({
|
|
|
2468
2468
|
style: le(te.toggle),
|
|
2469
2469
|
onClick: Se,
|
|
2470
2470
|
children: [
|
|
2471
|
-
/* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: g?.(G) ?? (G.length > 0 ? G.map((me) =>
|
|
2471
|
+
/* @__PURE__ */ x.jsx("span", { dangerouslySetInnerHTML: { __html: g?.(G) ?? (G.length > 0 ? G.map((me) => k[me]).join(", ") : "") } }),
|
|
2472
2472
|
oe.expandIcon && /* @__PURE__ */ x.jsx(
|
|
2473
2473
|
ge,
|
|
2474
2474
|
{
|
|
@@ -2488,7 +2488,7 @@ const fa = /* @__PURE__ */ _e(({
|
|
|
2488
2488
|
ItemComponent: Y,
|
|
2489
2489
|
itemLength: Z,
|
|
2490
2490
|
itemPadding: P,
|
|
2491
|
-
items:
|
|
2491
|
+
items: k,
|
|
2492
2492
|
layout: m,
|
|
2493
2493
|
numSegments: R,
|
|
2494
2494
|
orientation: b,
|
|
@@ -2497,7 +2497,7 @@ const fa = /* @__PURE__ */ _e(({
|
|
|
2497
2497
|
style: le(te.collection),
|
|
2498
2498
|
onActivateAt: q,
|
|
2499
2499
|
onDeselectAt: B,
|
|
2500
|
-
onSelectAt:
|
|
2500
|
+
onSelectAt: Oe,
|
|
2501
2501
|
onSelectionChange: w,
|
|
2502
2502
|
children: !Y && (oe.item ?? /* @__PURE__ */ x.jsx(Gn, {}))
|
|
2503
2503
|
}
|
|
@@ -2505,7 +2505,7 @@ const fa = /* @__PURE__ */ _e(({
|
|
|
2505
2505
|
] })
|
|
2506
2506
|
}
|
|
2507
2507
|
);
|
|
2508
|
-
}), qn = hr, Gn =
|
|
2508
|
+
}), qn = hr, Gn = Pt, Wn = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("button", { ...r, children: e }), Yo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, "aria-hidden": !0, children: e }), Xo = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("figure", { ...r, "aria-hidden": !0, children: e });
|
|
2509
2509
|
function da(e, r) {
|
|
2510
2510
|
return !!(isNaN(e) || e >= r.length || e < 0);
|
|
2511
2511
|
}
|
|
@@ -2589,9 +2589,9 @@ function ma({ isCollapsed: e = !0, isInverted: r = !1, collectionPadding: s = 0,
|
|
|
2589
2589
|
}
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
process.env.NODE_ENV !== "production" && (fa.displayName = "Dropdown", qn.displayName = "DropdownCollection",
|
|
2593
|
-
const
|
|
2594
|
-
function
|
|
2592
|
+
process.env.NODE_ENV !== "production" && (fa.displayName = "Dropdown", qn.displayName = "DropdownCollection", Yo.displayName = "DropdownCollapseIcon", Xo.displayName = "DropdownExpandIcon", Gn.displayName = "DropdownItem", Wn.displayName = "DropdownToggle");
|
|
2593
|
+
const Uo = ":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", va = Uo + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040", ya = "[" + Uo + "][" + va + "]*", xa = new RegExp("^" + ya + "$");
|
|
2594
|
+
function qo(e, r) {
|
|
2595
2595
|
const s = [];
|
|
2596
2596
|
let a = r.exec(e);
|
|
2597
2597
|
for (; a; ) {
|
|
@@ -2647,11 +2647,11 @@ function Ea(e, r) {
|
|
|
2647
2647
|
if (u = N.index, T[T.length - 1] === "/") {
|
|
2648
2648
|
const P = u - T.length;
|
|
2649
2649
|
T = T.substring(0, T.length - 1);
|
|
2650
|
-
const
|
|
2651
|
-
if (
|
|
2650
|
+
const k = mo(T, r);
|
|
2651
|
+
if (k === !0)
|
|
2652
2652
|
a = !0;
|
|
2653
2653
|
else
|
|
2654
|
-
return Ce(
|
|
2654
|
+
return Ce(k.err.code, k.err.msg, Re(e, P + k.err.line));
|
|
2655
2655
|
} else if (g)
|
|
2656
2656
|
if (N.tagClosed) {
|
|
2657
2657
|
if (T.trim().length > 0)
|
|
@@ -2661,10 +2661,10 @@ function Ea(e, r) {
|
|
|
2661
2661
|
{
|
|
2662
2662
|
const P = s.pop();
|
|
2663
2663
|
if (m !== P.tagName) {
|
|
2664
|
-
let
|
|
2664
|
+
let k = Re(e, P.tagStartPos);
|
|
2665
2665
|
return Ce(
|
|
2666
2666
|
"InvalidTag",
|
|
2667
|
-
"Expected closing tag '" + P.tagName + "' (opened in line " +
|
|
2667
|
+
"Expected closing tag '" + P.tagName + "' (opened in line " + k.line + ", col " + k.col + ") instead of closing tag '" + m + "'.",
|
|
2668
2668
|
Re(e, p)
|
|
2669
2669
|
);
|
|
2670
2670
|
}
|
|
@@ -2689,7 +2689,7 @@ function Ea(e, r) {
|
|
|
2689
2689
|
} else
|
|
2690
2690
|
break;
|
|
2691
2691
|
else if (e[u] === "&") {
|
|
2692
|
-
const P =
|
|
2692
|
+
const P = Pa(e, u);
|
|
2693
2693
|
if (P == -1)
|
|
2694
2694
|
return Ce("InvalidChar", "char '&' is not expected.", Re(e, u));
|
|
2695
2695
|
u = P;
|
|
@@ -2772,7 +2772,7 @@ function Ta(e, r) {
|
|
|
2772
2772
|
}
|
|
2773
2773
|
const _a = new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`, "g");
|
|
2774
2774
|
function mo(e, r) {
|
|
2775
|
-
const s =
|
|
2775
|
+
const s = qo(e, _a), a = {};
|
|
2776
2776
|
for (let l = 0; l < s.length; l++) {
|
|
2777
2777
|
if (s[l][1].length === 0)
|
|
2778
2778
|
return Ce("InvalidAttr", "Attribute '" + s[l][2] + "' has no space in starting.", Tt(s[l]));
|
|
@@ -2781,7 +2781,7 @@ function mo(e, r) {
|
|
|
2781
2781
|
if (s[l][3] === void 0 && !r.allowBooleanAttributes)
|
|
2782
2782
|
return Ce("InvalidAttr", "boolean attribute '" + s[l][2] + "' is not allowed.", Tt(s[l]));
|
|
2783
2783
|
const u = s[l][2];
|
|
2784
|
-
if (!
|
|
2784
|
+
if (!ka(u))
|
|
2785
2785
|
return Ce("InvalidAttr", "Attribute '" + u + "' is an invalid name.", Tt(s[l]));
|
|
2786
2786
|
if (!a.hasOwnProperty(u))
|
|
2787
2787
|
a[u] = 1;
|
|
@@ -2790,7 +2790,7 @@ function mo(e, r) {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
return !0;
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2793
|
+
function Oa(e, r) {
|
|
2794
2794
|
let s = /\d/;
|
|
2795
2795
|
for (e[r] === "x" && (r++, s = /[\da-fA-F]/); r < e.length; r++) {
|
|
2796
2796
|
if (e[r] === ";")
|
|
@@ -2800,11 +2800,11 @@ function Pa(e, r) {
|
|
|
2800
2800
|
}
|
|
2801
2801
|
return -1;
|
|
2802
2802
|
}
|
|
2803
|
-
function
|
|
2803
|
+
function Pa(e, r) {
|
|
2804
2804
|
if (r++, e[r] === ";")
|
|
2805
2805
|
return -1;
|
|
2806
2806
|
if (e[r] === "#")
|
|
2807
|
-
return r++,
|
|
2807
|
+
return r++, Oa(e, r);
|
|
2808
2808
|
let s = 0;
|
|
2809
2809
|
for (; r < e.length; r++, s++)
|
|
2810
2810
|
if (!(e[r].match(/\w/) && s < 20)) {
|
|
@@ -2824,7 +2824,7 @@ function Ce(e, r, s) {
|
|
|
2824
2824
|
}
|
|
2825
2825
|
};
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function ka(e) {
|
|
2828
2828
|
return gr(e);
|
|
2829
2829
|
}
|
|
2830
2830
|
function Ca(e) {
|
|
@@ -3086,7 +3086,7 @@ function Ya(e, r) {
|
|
|
3086
3086
|
if (window && window.parseInt) return window.parseInt(e, r);
|
|
3087
3087
|
throw new Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
3088
3088
|
}
|
|
3089
|
-
function
|
|
3089
|
+
function Go(e) {
|
|
3090
3090
|
return typeof e == "function" ? e : Array.isArray(e) ? (r) => {
|
|
3091
3091
|
for (const s of e)
|
|
3092
3092
|
if (typeof s == "string" && r === s || s instanceof RegExp && s.test(r))
|
|
@@ -3116,7 +3116,7 @@ class Xa {
|
|
|
3116
3116
|
inr: { regex: /&(inr|#8377);/g, val: "₹" },
|
|
3117
3117
|
num_dec: { regex: /&#([0-9]{1,7});/g, val: (s, a) => String.fromCodePoint(Number.parseInt(a, 10)) },
|
|
3118
3118
|
num_hex: { regex: /&#x([0-9a-fA-F]{1,6});/g, val: (s, a) => String.fromCodePoint(Number.parseInt(a, 16)) }
|
|
3119
|
-
}, this.addExternalEntities = Ua, this.parseXml = Ja, this.parseTextData = qa, this.resolveNameSpace = Ga, this.buildAttributesMap = Ka, this.isItStopNode = tc, this.replaceEntitiesValue = Qa, this.readStopNodeData = rc, this.saveTextToParentTag = ec, this.addChild = Za, this.ignoreAttributesFn =
|
|
3119
|
+
}, this.addExternalEntities = Ua, this.parseXml = Ja, this.parseTextData = qa, this.resolveNameSpace = Ga, this.buildAttributesMap = Ka, this.isItStopNode = tc, this.replaceEntitiesValue = Qa, this.readStopNodeData = rc, this.saveTextToParentTag = ec, this.addChild = Za, this.ignoreAttributesFn = Go(this.options.ignoreAttributes);
|
|
3120
3120
|
}
|
|
3121
3121
|
}
|
|
3122
3122
|
function Ua(e) {
|
|
@@ -3148,7 +3148,7 @@ function Ga(e) {
|
|
|
3148
3148
|
const Wa = new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`, "gm");
|
|
3149
3149
|
function Ka(e, r, s) {
|
|
3150
3150
|
if (this.options.ignoreAttributes !== !0 && typeof e == "string") {
|
|
3151
|
-
const a =
|
|
3151
|
+
const a = qo(e, Wa), l = a.length, u = {};
|
|
3152
3152
|
for (let p = 0; p < l; p++) {
|
|
3153
3153
|
const g = this.resolveNameSpace(a[p][1]);
|
|
3154
3154
|
if (this.ignoreAttributesFn(g, r))
|
|
@@ -3220,7 +3220,7 @@ const Ja = function(e) {
|
|
|
3220
3220
|
} else {
|
|
3221
3221
|
let g = Kn(e, u, this.options.removeNSPrefix), m = g.tagName;
|
|
3222
3222
|
const N = g.rawTagName;
|
|
3223
|
-
let T = g.tagExp, P = g.attrExpPresent,
|
|
3223
|
+
let T = g.tagExp, P = g.attrExpPresent, k = g.closeIndex;
|
|
3224
3224
|
this.options.transformTagName && (m = this.options.transformTagName(m)), s && a && s.tagname !== "!xml" && (a = this.saveTextToParentTag(a, s, l, !1));
|
|
3225
3225
|
const I = s;
|
|
3226
3226
|
I && this.options.unpairedTags.indexOf(I.tagname) !== -1 && (s = this.tagsNodeStack.pop(), l = l.substring(0, l.lastIndexOf("."))), m !== r.tagname && (l += l ? "." + m : m);
|
|
@@ -3232,7 +3232,7 @@ const Ja = function(e) {
|
|
|
3232
3232
|
else if (this.options.unpairedTags.indexOf(m) !== -1)
|
|
3233
3233
|
u = g.closeIndex;
|
|
3234
3234
|
else {
|
|
3235
|
-
const W = this.readStopNodeData(e, N,
|
|
3235
|
+
const W = this.readStopNodeData(e, N, k + 1);
|
|
3236
3236
|
if (!W) throw new Error(`Unexpected end of ${N}`);
|
|
3237
3237
|
u = W.i, b = W.tagContent;
|
|
3238
3238
|
}
|
|
@@ -3247,7 +3247,7 @@ const Ja = function(e) {
|
|
|
3247
3247
|
const b = new st(m);
|
|
3248
3248
|
this.tagsNodeStack.push(s), m !== T && P && (b[":@"] = this.buildAttributesMap(T, l, m)), this.addChild(s, b, l, R), s = b;
|
|
3249
3249
|
}
|
|
3250
|
-
a = "", u =
|
|
3250
|
+
a = "", u = k;
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
3253
3253
|
else
|
|
@@ -3379,9 +3379,9 @@ function Jn(e, r, s) {
|
|
|
3379
3379
|
}
|
|
3380
3380
|
const Rn = st.getMetaDataSymbol();
|
|
3381
3381
|
function oc(e, r) {
|
|
3382
|
-
return
|
|
3382
|
+
return Wo(e, r);
|
|
3383
3383
|
}
|
|
3384
|
-
function
|
|
3384
|
+
function Wo(e, r, s) {
|
|
3385
3385
|
let a;
|
|
3386
3386
|
const l = {};
|
|
3387
3387
|
for (let u = 0; u < e.length; u++) {
|
|
@@ -3393,7 +3393,7 @@ function Go(e, r, s) {
|
|
|
3393
3393
|
if (g === void 0)
|
|
3394
3394
|
continue;
|
|
3395
3395
|
if (p[g]) {
|
|
3396
|
-
let N =
|
|
3396
|
+
let N = Wo(p[g], r, m);
|
|
3397
3397
|
const T = ac(N, r);
|
|
3398
3398
|
p[Rn] !== void 0 && (N[Rn] = p[Rn]), p[":@"] ? sc(N, p[":@"], m, r) : Object.keys(N).length === 1 && N[r.textNodeName] !== void 0 && !r.alwaysCreateTextNode ? N = N[r.textNodeName] : Object.keys(N).length === 0 && (r.alwaysCreateTextNode ? N[r.textNodeName] = "" : N = ""), l[g] !== void 0 && l.hasOwnProperty(g) ? (Array.isArray(l[g]) || (l[g] = [l[g]]), l[g].push(N)) : r.isArray(g, m, T) ? l[g] = [N] : l[g] = N;
|
|
3399
3399
|
}
|
|
@@ -3478,9 +3478,9 @@ const lc = `
|
|
|
3478
3478
|
`;
|
|
3479
3479
|
function uc(e, r) {
|
|
3480
3480
|
let s = "";
|
|
3481
|
-
return r.format && r.indentBy.length > 0 && (s = lc),
|
|
3481
|
+
return r.format && r.indentBy.length > 0 && (s = lc), Ko(e, r, "", s);
|
|
3482
3482
|
}
|
|
3483
|
-
function
|
|
3483
|
+
function Ko(e, r, s, a) {
|
|
3484
3484
|
let l = "", u = !1;
|
|
3485
3485
|
for (let p = 0; p < e.length; p++) {
|
|
3486
3486
|
const g = e[p], m = fc(g);
|
|
@@ -3488,7 +3488,7 @@ function Wo(e, r, s, a) {
|
|
|
3488
3488
|
let N = "";
|
|
3489
3489
|
if (s.length === 0 ? N = m : N = `${s}.${m}`, m === r.textNodeName) {
|
|
3490
3490
|
let R = g[m];
|
|
3491
|
-
dc(N, r) || (R = r.tagValueProcessor(m, R), R =
|
|
3491
|
+
dc(N, r) || (R = r.tagValueProcessor(m, R), R = Jo(R, r)), u && (l += a), l += R, u = !1;
|
|
3492
3492
|
continue;
|
|
3493
3493
|
} else if (m === r.cdataPropName) {
|
|
3494
3494
|
u && (l += a), l += `<![CDATA[${g[m][0][r.textNodeName]}]]>`, u = !1;
|
|
@@ -3504,8 +3504,8 @@ function Wo(e, r, s, a) {
|
|
|
3504
3504
|
}
|
|
3505
3505
|
let T = a;
|
|
3506
3506
|
T !== "" && (T += r.indentBy);
|
|
3507
|
-
const P = vo(g[":@"], r),
|
|
3508
|
-
r.unpairedTags.indexOf(m) !== -1 ? r.suppressUnpairedNode ? l +=
|
|
3507
|
+
const P = vo(g[":@"], r), k = a + `<${m}${P}`, I = Ko(g[m], r, N, T);
|
|
3508
|
+
r.unpairedTags.indexOf(m) !== -1 ? r.suppressUnpairedNode ? l += k + ">" : l += k + "/>" : (!I || I.length === 0) && r.suppressEmptyNode ? l += k + "/>" : I && I.endsWith(">") ? l += k + `>${I}${a}</${m}>` : (l += k + ">", I && a !== "" && (I.includes("/>") || I.includes("</")) ? l += a + r.indentBy + I + a : l += I, l += `</${m}>`), u = !0;
|
|
3509
3509
|
}
|
|
3510
3510
|
return l;
|
|
3511
3511
|
}
|
|
@@ -3523,7 +3523,7 @@ function vo(e, r) {
|
|
|
3523
3523
|
for (let a in e) {
|
|
3524
3524
|
if (!e.hasOwnProperty(a)) continue;
|
|
3525
3525
|
let l = r.attributeValueProcessor(a, e[a]);
|
|
3526
|
-
l =
|
|
3526
|
+
l = Jo(l, r), l === !0 && r.suppressBooleanAttributes ? s += ` ${a.substr(r.attributeNamePrefix.length)}` : s += ` ${a.substr(r.attributeNamePrefix.length)}="${l}"`;
|
|
3527
3527
|
}
|
|
3528
3528
|
return s;
|
|
3529
3529
|
}
|
|
@@ -3534,7 +3534,7 @@ function dc(e, r) {
|
|
|
3534
3534
|
if (r.stopNodes[a] === e || r.stopNodes[a] === "*." + s) return !0;
|
|
3535
3535
|
return !1;
|
|
3536
3536
|
}
|
|
3537
|
-
function
|
|
3537
|
+
function Jo(e, r) {
|
|
3538
3538
|
if (e && e.length > 0 && r.processEntities)
|
|
3539
3539
|
for (let s = 0; s < r.entities.length; s++) {
|
|
3540
3540
|
const a = r.entities[s];
|
|
@@ -3579,7 +3579,7 @@ const pc = {
|
|
|
3579
3579
|
function nt(e) {
|
|
3580
3580
|
this.options = Object.assign({}, pc, e), this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
3581
3581
|
return !1;
|
|
3582
|
-
} : (this.ignoreAttributesFn =
|
|
3582
|
+
} : (this.ignoreAttributesFn = Go(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = mc), this.processTextOrObjNode = hc, this.options.format ? (this.indentate = gc, this.tagEndChar = `>
|
|
3583
3583
|
`, this.newLine = `
|
|
3584
3584
|
`) : (this.indentate = function() {
|
|
3585
3585
|
return "";
|
|
@@ -3620,13 +3620,13 @@ nt.prototype.j2x = function(e, r, s) {
|
|
|
3620
3620
|
p[0] === "?" ? l += this.indentate(r) + "<" + p + "?" + this.tagEndChar : l += this.indentate(r) + "<" + p + "/" + this.tagEndChar;
|
|
3621
3621
|
else if (typeof P == "object")
|
|
3622
3622
|
if (this.options.oneListGroup) {
|
|
3623
|
-
const
|
|
3624
|
-
m +=
|
|
3623
|
+
const k = this.j2x(P, r + 1, s.concat(p));
|
|
3624
|
+
m += k.val, this.options.attributesGroupName && P.hasOwnProperty(this.options.attributesGroupName) && (N += k.attrStr);
|
|
3625
3625
|
} else
|
|
3626
3626
|
m += this.processTextOrObjNode(P, p, r, s);
|
|
3627
3627
|
else if (this.options.oneListGroup) {
|
|
3628
|
-
let
|
|
3629
|
-
|
|
3628
|
+
let k = this.options.tagValueProcessor(p, P);
|
|
3629
|
+
k = this.replaceEntitiesValue(k), m += k;
|
|
3630
3630
|
} else
|
|
3631
3631
|
m += this.buildTextValNode(P, p, "", r);
|
|
3632
3632
|
}
|
|
@@ -3693,7 +3693,7 @@ const vc = /* @__PURE__ */ _e(({
|
|
|
3693
3693
|
shouldStripStyles: u = !0,
|
|
3694
3694
|
...p
|
|
3695
3695
|
}, g) => {
|
|
3696
|
-
const m = "@_", N = ["id"].map((R) => `${m}${R}`), T = ["class"].map((R) => `${m}${R}`), P = ["fill", "stroke", "style"].map((R) => `${m}${R}`),
|
|
3696
|
+
const m = "@_", N = ["id"].map((R) => `${m}${R}`), T = ["class"].map((R) => `${m}${R}`), P = ["fill", "stroke", "style"].map((R) => `${m}${R}`), k = ["x", "y"].map((R) => `${m}${R}`), I = () => {
|
|
3697
3697
|
const R = new cc({
|
|
3698
3698
|
attributeNamePrefix: m,
|
|
3699
3699
|
ignoreAttributes: !1,
|
|
@@ -3705,7 +3705,7 @@ const vc = /* @__PURE__ */ _e(({
|
|
|
3705
3705
|
if (u && W.toLowerCase() === "style") return !1;
|
|
3706
3706
|
const B = Object.keys(D);
|
|
3707
3707
|
for (const S of B)
|
|
3708
|
-
W.toLowerCase() === "svg" && (l &&
|
|
3708
|
+
W.toLowerCase() === "svg" && (l && k.includes(S.toLowerCase()) && delete D[S], e !== "preserve" && (S.toLowerCase() === `${m}width` && delete D[S], S.toLowerCase() === `${m}height` && delete D[S])), a && N.includes(S.toLowerCase()) && delete D[S], s && T.includes(S.toLowerCase()) && delete D[S], u && P.includes(S.toLowerCase()) && delete D[S];
|
|
3709
3709
|
if (W.toLowerCase() === "svg")
|
|
3710
3710
|
switch (e) {
|
|
3711
3711
|
case "fill":
|
|
@@ -3749,7 +3749,7 @@ const yo = "base-", yc = /* @__PURE__ */ _e(({
|
|
|
3749
3749
|
verticalSpacing: g = 0,
|
|
3750
3750
|
...m
|
|
3751
3751
|
}, N) => {
|
|
3752
|
-
const T = Ee(null), [P,
|
|
3752
|
+
const T = Ee(null), [P, k] = Ne(NaN), [I, R] = Ne(NaN), [b, j] = Ne(NaN), [W, q] = Ne(NaN), D = () => ye.from(T.current)?.width ?? 0, B = () => ye.from(T.current)?.height ?? 0, S = () => {
|
|
3753
3753
|
const Y = T.current;
|
|
3754
3754
|
if (!Y) return;
|
|
3755
3755
|
const U = Y.children, ne = p;
|
|
@@ -3766,13 +3766,13 @@ const yo = "base-", yc = /* @__PURE__ */ _e(({
|
|
|
3766
3766
|
for (let G = 0; G < J; G++)
|
|
3767
3767
|
K[Z + G] = ae + (ae === 0 ? 0 : g) + (ye.from(A)?.height ?? 0);
|
|
3768
3768
|
if (e && Z + J === ne) {
|
|
3769
|
-
const G =
|
|
3769
|
+
const G = Ot(K);
|
|
3770
3770
|
for (let _ = 0; _ < ne; _++)
|
|
3771
3771
|
K[_] = G;
|
|
3772
3772
|
}
|
|
3773
3773
|
}
|
|
3774
|
-
const H = D(), L =
|
|
3775
|
-
if (
|
|
3774
|
+
const H = D(), L = Ot(K, ne);
|
|
3775
|
+
if (k(H), R(L), isNaN(L) || (Y.style.height = `${L}px`), l)
|
|
3776
3776
|
for (const A of Array.from(U))
|
|
3777
3777
|
A instanceof HTMLElement && (A.style.left = `calc(${H}px - ${A.style.left} - ${A.getBoundingClientRect().width}px)`);
|
|
3778
3778
|
} else {
|
|
@@ -3784,13 +3784,13 @@ const yo = "base-", yc = /* @__PURE__ */ _e(({
|
|
|
3784
3784
|
for (let G = 0; G < J; G++)
|
|
3785
3785
|
K[Z + G] = ae + (ae === 0 ? 0 : a) + (ye.from(A)?.width ?? 0);
|
|
3786
3786
|
if (e && Z + J === ne) {
|
|
3787
|
-
const G =
|
|
3787
|
+
const G = Ot(K);
|
|
3788
3788
|
for (let _ = 0; _ < ne; _++)
|
|
3789
3789
|
K[_] = G;
|
|
3790
3790
|
}
|
|
3791
3791
|
}
|
|
3792
|
-
const H = B(), L =
|
|
3793
|
-
if (R(H),
|
|
3792
|
+
const H = B(), L = Ot(K, ne);
|
|
3793
|
+
if (R(H), k(L), isNaN(L) || (Y.style.width = `${L}px`), l)
|
|
3794
3794
|
for (const A of Array.from(U))
|
|
3795
3795
|
A instanceof HTMLElement && (A.style.top = `calc(${H}px - ${A.style.top} - ${A.getBoundingClientRect().height}px)`);
|
|
3796
3796
|
}
|
|
@@ -3847,9 +3847,9 @@ function xo(e, r) {
|
|
|
3847
3847
|
e[u + T] > p && (N = !1);
|
|
3848
3848
|
g && m && N && (a = u, l = p);
|
|
3849
3849
|
}
|
|
3850
|
-
return isNaN(a) ? [0,
|
|
3850
|
+
return isNaN(a) ? [0, Ot(e, r)] : [a, l];
|
|
3851
3851
|
}
|
|
3852
|
-
function
|
|
3852
|
+
function Ot(e, r) {
|
|
3853
3853
|
let s = e;
|
|
3854
3854
|
return r != null && !isNaN(r) && (s = s.slice(0, Math.max(1, Math.min(r, e.length)))), s.reduce((a, l, u) => l > a ? l : a, 0);
|
|
3855
3855
|
}
|
|
@@ -3881,8 +3881,8 @@ const Ec = /* @__PURE__ */ _e(({
|
|
|
3881
3881
|
}, u) => {
|
|
3882
3882
|
const p = s.length - 1, g = s[e], m = typeof g == "string" ? g : g?.label, N = () => {
|
|
3883
3883
|
if (r) return;
|
|
3884
|
-
const T = e < p ? e + 1 : 0, P = s[T],
|
|
3885
|
-
a?.(
|
|
3884
|
+
const T = e < p ? e + 1 : 0, P = s[T], k = typeof P == "string" ? P : P?.value;
|
|
3885
|
+
a?.(k, T);
|
|
3886
3886
|
};
|
|
3887
3887
|
return /* @__PURE__ */ x.jsx(
|
|
3888
3888
|
"button",
|
|
@@ -3961,7 +3961,7 @@ function Sc() {
|
|
|
3961
3961
|
return o.__proto__ = i, o;
|
|
3962
3962
|
}, P(n, t);
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3964
|
+
function k(n) {
|
|
3965
3965
|
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3966
3966
|
return n;
|
|
3967
3967
|
}
|
|
@@ -3985,7 +3985,7 @@ function Sc() {
|
|
|
3985
3985
|
return function(f, d) {
|
|
3986
3986
|
if (d && (typeof d == "object" || typeof d == "function")) return d;
|
|
3987
3987
|
if (d !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
3988
|
-
return
|
|
3988
|
+
return k(f);
|
|
3989
3989
|
}(this, o);
|
|
3990
3990
|
};
|
|
3991
3991
|
}
|
|
@@ -4143,7 +4143,7 @@ function Sc() {
|
|
|
4143
4143
|
}
|
|
4144
4144
|
return o;
|
|
4145
4145
|
}
|
|
4146
|
-
function
|
|
4146
|
+
function Oe(n) {
|
|
4147
4147
|
for (var t = []; n; ) t.push(n), n = G(n);
|
|
4148
4148
|
return t;
|
|
4149
4149
|
}
|
|
@@ -4154,12 +4154,12 @@ function Sc() {
|
|
|
4154
4154
|
for (var o in t) n[o] = t[o];
|
|
4155
4155
|
return n;
|
|
4156
4156
|
}
|
|
4157
|
-
function
|
|
4157
|
+
function ke(n, t, o) {
|
|
4158
4158
|
return n === "parent" ? G(o) : n === "self" ? t.getRect(o) : ae(o, n);
|
|
4159
4159
|
}
|
|
4160
4160
|
function Ie(n, t, o, i) {
|
|
4161
4161
|
var c = n;
|
|
4162
|
-
return w.string(c) ? c =
|
|
4162
|
+
return w.string(c) ? c = ke(c, t, o) : w.func(c) && (c = c.apply(void 0, i)), w.element(c) && (c = Se(c)), c;
|
|
4163
4163
|
}
|
|
4164
4164
|
function Be(n) {
|
|
4165
4165
|
return n && { x: "x" in n ? n.x : n.left, y: "y" in n ? n.y : n.top };
|
|
@@ -4197,11 +4197,11 @@ function Sc() {
|
|
|
4197
4197
|
}
|
|
4198
4198
|
var dt = function(n, t) {
|
|
4199
4199
|
return Math.sqrt(n * n + t * t);
|
|
4200
|
-
},
|
|
4200
|
+
}, oi = ["webkit", "moz"];
|
|
4201
4201
|
function It(n, t) {
|
|
4202
4202
|
n.__set || (n.__set = {});
|
|
4203
4203
|
var o = function(c) {
|
|
4204
|
-
if (
|
|
4204
|
+
if (oi.some(function(f) {
|
|
4205
4205
|
return c.indexOf(f) === 0;
|
|
4206
4206
|
})) return 1;
|
|
4207
4207
|
typeof n[c] != "function" && c !== "__set" && Object.defineProperty(n, c, { get: function() {
|
|
@@ -4231,7 +4231,7 @@ function Sc() {
|
|
|
4231
4231
|
function pt(n) {
|
|
4232
4232
|
return w.number(n.pointerId) ? n.pointerId : n.identifier;
|
|
4233
4233
|
}
|
|
4234
|
-
function
|
|
4234
|
+
function ii(n, t, o) {
|
|
4235
4235
|
var i = t.length > 1 ? br(t) : t[0];
|
|
4236
4236
|
xr(i, n.page), function(c, f) {
|
|
4237
4237
|
f = f || {}, J.isOperaMobile && yr(c) ? At("screen", c, f) : At("client", c, f);
|
|
@@ -4335,8 +4335,8 @@ function Sc() {
|
|
|
4335
4335
|
for (var h = [], v = 0, E = f.interactables.list; v < E.length; v++) {
|
|
4336
4336
|
var y = E[v];
|
|
4337
4337
|
if (y.options.drop.enabled) {
|
|
4338
|
-
var
|
|
4339
|
-
if (!(w.element(
|
|
4338
|
+
var O = y.options.drop.accept;
|
|
4339
|
+
if (!(w.element(O) && O !== d || w.string(O) && !_(d, O) || w.func(O) && !O({ dropzone: y, draggableElement: d }))) for (var $ = 0, V = y.getAllElements(); $ < V.length; $++) {
|
|
4340
4340
|
var F = V[$];
|
|
4341
4341
|
F !== d && h.push({ dropzone: y, element: F, rect: y.getRect(F) });
|
|
4342
4342
|
}
|
|
@@ -4351,22 +4351,22 @@ function Sc() {
|
|
|
4351
4351
|
}
|
|
4352
4352
|
function _r(n, t, o) {
|
|
4353
4353
|
for (var i = n.dropState, c = n.interactable, f = n.element, d = [], h = 0, v = i.activeDrops; h < v.length; h++) {
|
|
4354
|
-
var E = v[h], y = E.dropzone,
|
|
4355
|
-
d.push(V ?
|
|
4354
|
+
var E = v[h], y = E.dropzone, O = E.element, $ = E.rect, V = y.dropCheck(t, o, c, f, O, $);
|
|
4355
|
+
d.push(V ? O : null);
|
|
4356
4356
|
}
|
|
4357
4357
|
var F = function(X) {
|
|
4358
4358
|
for (var re, ee, ce, xe = [], we = 0; we < X.length; we++) {
|
|
4359
4359
|
var fe = X[we], be = X[re];
|
|
4360
4360
|
if (fe && we !== re) if (be) {
|
|
4361
|
-
var Me = M(fe),
|
|
4362
|
-
if (Me !== fe.ownerDocument) if (
|
|
4361
|
+
var Me = M(fe), Pe = M(be);
|
|
4362
|
+
if (Me !== fe.ownerDocument) if (Pe !== fe.ownerDocument) if (Me !== Pe) {
|
|
4363
4363
|
xe = xe.length ? xe : te(be);
|
|
4364
|
-
var
|
|
4364
|
+
var Fe = void 0;
|
|
4365
4365
|
if (be instanceof L.HTMLElement && fe instanceof L.SVGElement && !(fe instanceof L.SVGSVGElement)) {
|
|
4366
|
-
if (fe ===
|
|
4367
|
-
|
|
4368
|
-
} else
|
|
4369
|
-
for (var He = te(
|
|
4366
|
+
if (fe === Pe) continue;
|
|
4367
|
+
Fe = fe.ownerSVGElement;
|
|
4368
|
+
} else Fe = fe;
|
|
4369
|
+
for (var He = te(Fe, be.ownerDocument), Ue = 0; He[Ue] && He[Ue] === xe[Ue]; ) Ue++;
|
|
4370
4370
|
var Yt = [He[Ue - 1], He[Ue], xe[Ue]];
|
|
4371
4371
|
if (Yt[0]) for (var wt = Yt[0].lastChild; wt; ) {
|
|
4372
4372
|
if (wt === Yt[1]) {
|
|
@@ -4392,7 +4392,7 @@ function Sc() {
|
|
|
4392
4392
|
var o = n.dropState, i = o.activeDrops, c = o.cur, f = o.prev;
|
|
4393
4393
|
t.leave && f.dropzone.fire(t.leave), t.enter && c.dropzone.fire(t.enter), t.move && c.dropzone.fire(t.move), t.drop && c.dropzone.fire(t.drop), t.deactivate && Tr(i, t.deactivate), o.prev.dropzone = c.dropzone, o.prev.element = c.element;
|
|
4394
4394
|
}
|
|
4395
|
-
function
|
|
4395
|
+
function Or(n, t) {
|
|
4396
4396
|
var o = n.interaction, i = n.iEvent, c = n.event;
|
|
4397
4397
|
if (i.type === "dragmove" || i.type === "dragend") {
|
|
4398
4398
|
var f = o.dropState;
|
|
@@ -4401,14 +4401,14 @@ function Sc() {
|
|
|
4401
4401
|
f.rejected = f.rejected && !!h && h.dropzone === f.cur.dropzone && h.element === f.cur.element, f.cur.dropzone = h && h.dropzone, f.cur.element = h && h.element, f.events = gn(o, 0, d);
|
|
4402
4402
|
}
|
|
4403
4403
|
}
|
|
4404
|
-
var
|
|
4404
|
+
var Pr = { id: "actions/drop", install: function(n) {
|
|
4405
4405
|
var t = n.actions, o = n.interactStatic, i = n.Interactable, c = n.defaults;
|
|
4406
4406
|
n.usePlugin(ne), i.prototype.dropzone = function(f) {
|
|
4407
4407
|
return function(d, h) {
|
|
4408
4408
|
if (w.object(h)) {
|
|
4409
4409
|
if (d.options.drop.enabled = h.enabled !== !1, h.listeners) {
|
|
4410
|
-
var v = Ve(h.listeners), E = Object.keys(v).reduce(function(
|
|
4411
|
-
return
|
|
4410
|
+
var v = Ve(h.listeners), E = Object.keys(v).reduce(function(O, $) {
|
|
4411
|
+
return O[/^(enter|leave)/.test($) ? "drag".concat($) : /^(activate|deactivate|move)/.test($) ? "drop".concat($) : $] = v[$], O;
|
|
4412
4412
|
}, {}), y = d.options.drop.listeners;
|
|
4413
4413
|
y && d.off(y), d.on(E), d.options.drop.listeners = E;
|
|
4414
4414
|
}
|
|
@@ -4417,26 +4417,26 @@ function Sc() {
|
|
|
4417
4417
|
return w.bool(h) ? (d.options.drop.enabled = h, d) : d.options.drop;
|
|
4418
4418
|
}(this, f);
|
|
4419
4419
|
}, i.prototype.dropCheck = function(f, d, h, v, E, y) {
|
|
4420
|
-
return function(
|
|
4420
|
+
return function(O, $, V, F, X, re, ee) {
|
|
4421
4421
|
var ce = !1;
|
|
4422
|
-
if (!(ee = ee ||
|
|
4423
|
-
var xe =
|
|
4422
|
+
if (!(ee = ee || O.getRect(re))) return !!O.options.drop.checker && O.options.drop.checker($, V, ce, O, re, F, X);
|
|
4423
|
+
var xe = O.options.drop.overlap;
|
|
4424
4424
|
if (xe === "pointer") {
|
|
4425
4425
|
var we = $e(F, X, "drag"), fe = xr($);
|
|
4426
4426
|
fe.x += we.x, fe.y += we.y;
|
|
4427
4427
|
var be = fe.x > ee.left && fe.x < ee.right, Me = fe.y > ee.top && fe.y < ee.bottom;
|
|
4428
4428
|
ce = be && Me;
|
|
4429
4429
|
}
|
|
4430
|
-
var
|
|
4431
|
-
if (
|
|
4432
|
-
var
|
|
4433
|
-
ce =
|
|
4430
|
+
var Pe = F.getRect(X);
|
|
4431
|
+
if (Pe && xe === "center") {
|
|
4432
|
+
var Fe = Pe.left + Pe.width / 2, He = Pe.top + Pe.height / 2;
|
|
4433
|
+
ce = Fe >= ee.left && Fe <= ee.right && He >= ee.top && He <= ee.bottom;
|
|
4434
4434
|
}
|
|
4435
|
-
return
|
|
4435
|
+
return Pe && w.number(xe) && (ce = Math.max(0, Math.min(ee.right, Pe.right) - Math.max(ee.left, Pe.left)) * Math.max(0, Math.min(ee.bottom, Pe.bottom) - Math.max(ee.top, Pe.top)) / (Pe.width * Pe.height) >= xe), O.options.drop.checker && (ce = O.options.drop.checker($, V, ce, O, re, F, X)), ce;
|
|
4436
4436
|
}(this, f, d, h, v, E, y);
|
|
4437
4437
|
}, o.dynamicDrop = function(f) {
|
|
4438
4438
|
return w.bool(f) ? (n.dynamicDrop = f, o) : n.dynamicDrop;
|
|
4439
|
-
}, Q(t.phaselessTypes, { dragenter: !0, dragleave: !0, dropactivate: !0, dropdeactivate: !0, dropmove: !0, drop: !0 }), t.methodDict.drop = "dropzone", n.dynamicDrop = !1, c.actions.drop =
|
|
4439
|
+
}, Q(t.phaselessTypes, { dragenter: !0, dragleave: !0, dropactivate: !0, dropdeactivate: !0, dropmove: !0, drop: !0 }), t.methodDict.drop = "dropzone", n.dynamicDrop = !1, c.actions.drop = Pr.defaults;
|
|
4440
4440
|
}, listeners: { "interactions:before-action-start": function(n) {
|
|
4441
4441
|
var t = n.interaction;
|
|
4442
4442
|
t.prepared.name === "drag" && (t.dropState = { cur: { dropzone: null, element: null }, prev: { dropzone: null, element: null }, rejected: null, events: null, activeDrops: [] });
|
|
@@ -4446,7 +4446,7 @@ function Sc() {
|
|
|
4446
4446
|
var c = o.dropState;
|
|
4447
4447
|
c.activeDrops = [], c.events = {}, c.activeDrops = hn(t, o.element), c.events = gn(o, 0, i), c.events.activate && (Tr(c.activeDrops, c.events.activate), t.fire("actions/drop:start", { interaction: o, dragEvent: i }));
|
|
4448
4448
|
}
|
|
4449
|
-
}, "interactions:action-move":
|
|
4449
|
+
}, "interactions:action-move": Or, "interactions:after-action-move": function(n, t) {
|
|
4450
4450
|
var o = n.interaction, i = n.iEvent;
|
|
4451
4451
|
if (o.prepared.name === "drag") {
|
|
4452
4452
|
var c = o.dropState;
|
|
@@ -4455,7 +4455,7 @@ function Sc() {
|
|
|
4455
4455
|
}, "interactions:action-end": function(n, t) {
|
|
4456
4456
|
if (n.interaction.prepared.name === "drag") {
|
|
4457
4457
|
var o = n.interaction, i = n.iEvent;
|
|
4458
|
-
|
|
4458
|
+
Or(n, t), mn(o, o.dropState.events), t.fire("actions/drop:end", { interaction: o, dragEvent: i });
|
|
4459
4459
|
}
|
|
4460
4460
|
}, "interactions:stop": function(n) {
|
|
4461
4461
|
var t = n.interaction;
|
|
@@ -4465,7 +4465,7 @@ function Sc() {
|
|
|
4465
4465
|
}
|
|
4466
4466
|
} }, getActiveDrops: hn, getDrop: _r, getDropEvents: gn, fireDropEvents: mn, filterEventType: function(n) {
|
|
4467
4467
|
return n.search("drag") === 0 || n.search("drop") === 0;
|
|
4468
|
-
}, defaults: { enabled: !1, accept: null, overlap: "pointer" } },
|
|
4468
|
+
}, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, si = Pr;
|
|
4469
4469
|
function vn(n) {
|
|
4470
4470
|
var t = n.interaction, o = n.iEvent, i = n.phase;
|
|
4471
4471
|
if (t.prepared.name === "gesture") {
|
|
@@ -4496,8 +4496,8 @@ function Sc() {
|
|
|
4496
4496
|
return "";
|
|
4497
4497
|
}, filterEventType: function(n) {
|
|
4498
4498
|
return n.search("gesture") === 0;
|
|
4499
|
-
} },
|
|
4500
|
-
function
|
|
4499
|
+
} }, ai = yn;
|
|
4500
|
+
function ci(n, t, o, i, c, f, d) {
|
|
4501
4501
|
if (!t) return !1;
|
|
4502
4502
|
if (t === !0) {
|
|
4503
4503
|
var h = w.number(f.width) ? f.width : f.right - f.left, v = w.number(f.height) ? f.height : f.bottom - f.top;
|
|
@@ -4514,7 +4514,7 @@ function Sc() {
|
|
|
4514
4514
|
}
|
|
4515
4515
|
return !!w.element(i) && (w.element(t) ? t === i : oe(i, t, c));
|
|
4516
4516
|
}
|
|
4517
|
-
function
|
|
4517
|
+
function kr(n) {
|
|
4518
4518
|
var t = n.iEvent, o = n.interaction;
|
|
4519
4519
|
if (o.prepared.name === "resize" && o.resizeAxes) {
|
|
4520
4520
|
var i = t;
|
|
@@ -4539,12 +4539,12 @@ function Sc() {
|
|
|
4539
4539
|
var c = o, f = i.rect;
|
|
4540
4540
|
i._rects = { start: Q({}, f), corrected: Q({}, f), previous: Q({}, f), delta: { left: 0, right: 0, width: 0, top: 0, bottom: 0, height: 0 } }, c.edges = i.prepared.edges, c.rect = i._rects.corrected, c.deltaRect = i._rects.delta;
|
|
4541
4541
|
}
|
|
4542
|
-
})(n),
|
|
4542
|
+
})(n), kr(n);
|
|
4543
4543
|
}, "interactions:action-move": function(n) {
|
|
4544
4544
|
(function(t) {
|
|
4545
4545
|
var o = t.iEvent, i = t.interaction;
|
|
4546
4546
|
if (i.prepared.name === "resize" && i.prepared.edges) {
|
|
4547
|
-
var c = o, f = i.interactable.options.resize.invert, d = f === "reposition" || f === "negate", h = i.rect, v = i._rects, E = v.start, y = v.corrected,
|
|
4547
|
+
var c = o, f = i.interactable.options.resize.invert, d = f === "reposition" || f === "negate", h = i.rect, v = i._rects, E = v.start, y = v.corrected, O = v.delta, $ = v.previous;
|
|
4548
4548
|
if (Q($, y), d) {
|
|
4549
4549
|
if (Q(y, h), f === "reposition") {
|
|
4550
4550
|
if (y.top > y.bottom) {
|
|
@@ -4557,10 +4557,10 @@ function Sc() {
|
|
|
4557
4557
|
}
|
|
4558
4558
|
}
|
|
4559
4559
|
} else y.top = Math.min(h.top, E.bottom), y.bottom = Math.max(h.bottom, E.top), y.left = Math.min(h.left, E.right), y.right = Math.max(h.right, E.left);
|
|
4560
|
-
for (var X in y.width = y.right - y.left, y.height = y.bottom - y.top, y)
|
|
4561
|
-
c.edges = i.prepared.edges, c.rect = y, c.deltaRect =
|
|
4560
|
+
for (var X in y.width = y.right - y.left, y.height = y.bottom - y.top, y) O[X] = y[X] - $[X];
|
|
4561
|
+
c.edges = i.prepared.edges, c.rect = y, c.deltaRect = O;
|
|
4562
4562
|
}
|
|
4563
|
-
})(n),
|
|
4563
|
+
})(n), kr(n);
|
|
4564
4564
|
}, "interactions:action-end": function(n) {
|
|
4565
4565
|
var t = n.iEvent, o = n.interaction;
|
|
4566
4566
|
if (o.prepared.name === "resize" && o.prepared.edges) {
|
|
@@ -4574,11 +4574,11 @@ function Sc() {
|
|
|
4574
4574
|
if (h && h.enabled && (!t.pointerIsDown || !/mouse|pointer/.test(t.pointerType) || (f & h.mouseButtons) != 0)) {
|
|
4575
4575
|
if (w.object(h.edges)) {
|
|
4576
4576
|
var v = { left: !1, right: !1, top: !1, bottom: !1 };
|
|
4577
|
-
for (var E in v) v[E] =
|
|
4577
|
+
for (var E in v) v[E] = ci(E, h.edges[E], d, t._latestPointer.eventTarget, i, c, h.margin || Xe.defaultMargin);
|
|
4578
4578
|
v.left = v.left && !v.right, v.top = v.top && !v.bottom, (v.left || v.right || v.top || v.bottom) && (n.action = { name: "resize", edges: v });
|
|
4579
4579
|
} else {
|
|
4580
|
-
var y = h.axis !== "y" && d.x > c.right - Xe.defaultMargin,
|
|
4581
|
-
(y ||
|
|
4580
|
+
var y = h.axis !== "y" && d.x > c.right - Xe.defaultMargin, O = h.axis !== "x" && d.y > c.bottom - Xe.defaultMargin;
|
|
4581
|
+
(y || O) && (n.action = { name: "resize", axes: (y ? "x" : "") + (O ? "y" : "") });
|
|
4582
4582
|
}
|
|
4583
4583
|
return !n.action && void 0;
|
|
4584
4584
|
}
|
|
@@ -4596,8 +4596,8 @@ function Sc() {
|
|
|
4596
4596
|
return f;
|
|
4597
4597
|
}, filterEventType: function(n) {
|
|
4598
4598
|
return n.search("resize") === 0;
|
|
4599
|
-
}, defaultMargin: null },
|
|
4600
|
-
n.usePlugin(
|
|
4599
|
+
}, defaultMargin: null }, li = Xe, ui = { id: "actions", install: function(n) {
|
|
4600
|
+
n.usePlugin(ai), n.usePlugin(li), n.usePlugin(ne), n.usePlugin(si);
|
|
4601
4601
|
} }, Cr = 0, We = { request: function(n) {
|
|
4602
4602
|
return Ye(n);
|
|
4603
4603
|
}, cancel: function(n) {
|
|
@@ -4626,7 +4626,7 @@ function Sc() {
|
|
|
4626
4626
|
if (E.x || E.y) {
|
|
4627
4627
|
var y = Ir(f);
|
|
4628
4628
|
w.window(f) ? f.scrollBy(E.x, E.y) : f && (f.scrollLeft += E.x, f.scrollTop += E.y);
|
|
4629
|
-
var
|
|
4629
|
+
var O = Ir(f), $ = { x: O.x - y.x, y: O.y - y.y };
|
|
4630
4630
|
($.x || $.y) && t.fire({ type: "autoscroll", target: o, interactable: t, delta: $, interaction: n, container: f });
|
|
4631
4631
|
}
|
|
4632
4632
|
de.prevTime = d;
|
|
@@ -4639,22 +4639,22 @@ function Sc() {
|
|
|
4639
4639
|
var t = n.interaction, o = n.pointer;
|
|
4640
4640
|
if (t.interacting() && de.check(t.interactable, t.prepared.name)) if (t.simulation) de.x = de.y = 0;
|
|
4641
4641
|
else {
|
|
4642
|
-
var i, c, f, d, h = t.interactable, v = t.element, E = t.prepared.name, y = h.options[E].autoScroll,
|
|
4643
|
-
if (w.window(
|
|
4642
|
+
var i, c, f, d, h = t.interactable, v = t.element, E = t.prepared.name, y = h.options[E].autoScroll, O = jr(y.container, h, v);
|
|
4643
|
+
if (w.window(O)) d = o.clientX < de.margin, i = o.clientY < de.margin, c = o.clientX > O.innerWidth - de.margin, f = o.clientY > O.innerHeight - de.margin;
|
|
4644
4644
|
else {
|
|
4645
|
-
var $ = se(
|
|
4645
|
+
var $ = se(O);
|
|
4646
4646
|
d = o.clientX < $.left + de.margin, i = o.clientY < $.top + de.margin, c = o.clientX > $.right - de.margin, f = o.clientY > $.bottom - de.margin;
|
|
4647
4647
|
}
|
|
4648
4648
|
de.x = c ? 1 : d ? -1 : 0, de.y = f ? 1 : i ? -1 : 0, de.isScrolling || (de.margin = y.margin, de.speed = y.speed, de.start(t));
|
|
4649
4649
|
}
|
|
4650
4650
|
} };
|
|
4651
4651
|
function jr(n, t, o) {
|
|
4652
|
-
return (w.string(n) ?
|
|
4652
|
+
return (w.string(n) ? ke(n, t, o) : n) || B(o);
|
|
4653
4653
|
}
|
|
4654
4654
|
function Ir(n) {
|
|
4655
4655
|
return w.window(n) && (n = window.document.body), { x: n.scrollLeft, y: n.scrollTop };
|
|
4656
4656
|
}
|
|
4657
|
-
var
|
|
4657
|
+
var fi = { id: "auto-scroll", install: function(n) {
|
|
4658
4658
|
var t = n.defaults, o = n.actions;
|
|
4659
4659
|
n.autoScroll = de, de.now = function() {
|
|
4660
4660
|
return n.now();
|
|
@@ -4665,7 +4665,7 @@ function Sc() {
|
|
|
4665
4665
|
n.interaction.autoScroll = null, de.stop(), de.interaction && (de.interaction = null);
|
|
4666
4666
|
}, "interactions:stop": de.stop, "interactions:action-move": function(n) {
|
|
4667
4667
|
return de.onInteractionMove(n);
|
|
4668
|
-
} } },
|
|
4668
|
+
} } }, di = fi;
|
|
4669
4669
|
function mt(n, t) {
|
|
4670
4670
|
var o = !1;
|
|
4671
4671
|
return function() {
|
|
@@ -4675,34 +4675,34 @@ function Sc() {
|
|
|
4675
4675
|
function xn(n, t) {
|
|
4676
4676
|
return n.name = t.name, n.axis = t.axis, n.edges = t.edges, n;
|
|
4677
4677
|
}
|
|
4678
|
-
function
|
|
4678
|
+
function pi(n) {
|
|
4679
4679
|
return w.bool(n) ? (this.options.styleCursor = n, this) : n === null ? (delete this.options.styleCursor, this) : this.options.styleCursor;
|
|
4680
4680
|
}
|
|
4681
|
-
function
|
|
4681
|
+
function hi(n) {
|
|
4682
4682
|
return w.func(n) ? (this.options.actionChecker = n, this) : n === null ? (delete this.options.actionChecker, this) : this.options.actionChecker;
|
|
4683
4683
|
}
|
|
4684
|
-
var
|
|
4684
|
+
var gi = { id: "auto-start/interactableMethods", install: function(n) {
|
|
4685
4685
|
var t = n.Interactable;
|
|
4686
4686
|
t.prototype.getAction = function(o, i, c, f) {
|
|
4687
|
-
var d = function(h, v, E, y,
|
|
4687
|
+
var d = function(h, v, E, y, O) {
|
|
4688
4688
|
var $ = h.getRect(y), V = v.buttons || { 0: 1, 1: 4, 3: 8, 4: 16 }[v.button], F = { action: null, interactable: h, interaction: E, element: y, rect: $, buttons: V };
|
|
4689
|
-
return
|
|
4689
|
+
return O.fire("auto-start:check", F), F.action;
|
|
4690
4690
|
}(this, i, c, f, n);
|
|
4691
4691
|
return this.options.actionChecker ? this.options.actionChecker(o, i, d, this, f, c) : d;
|
|
4692
4692
|
}, t.prototype.ignoreFrom = mt(function(o) {
|
|
4693
4693
|
return this._backCompatOption("ignoreFrom", o);
|
|
4694
4694
|
}, "Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."), t.prototype.allowFrom = mt(function(o) {
|
|
4695
4695
|
return this._backCompatOption("allowFrom", o);
|
|
4696
|
-
}, "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), t.prototype.actionChecker =
|
|
4696
|
+
}, "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), t.prototype.actionChecker = hi, t.prototype.styleCursor = pi;
|
|
4697
4697
|
} };
|
|
4698
4698
|
function $r(n, t, o, i, c) {
|
|
4699
4699
|
return t.testIgnoreAllow(t.options[n.name], o, i) && t.options[n.name].enabled && Rt(t, o, n, c) ? n : null;
|
|
4700
4700
|
}
|
|
4701
|
-
function
|
|
4701
|
+
function mi(n, t, o, i, c, f, d) {
|
|
4702
4702
|
for (var h = 0, v = i.length; h < v; h++) {
|
|
4703
|
-
var E = i[h], y = c[h],
|
|
4704
|
-
if (
|
|
4705
|
-
var $ = $r(
|
|
4703
|
+
var E = i[h], y = c[h], O = E.getAction(t, o, n, y);
|
|
4704
|
+
if (O) {
|
|
4705
|
+
var $ = $r(O, E, y, f, d);
|
|
4706
4706
|
if ($) return { action: $, interactable: E, element: y };
|
|
4707
4707
|
}
|
|
4708
4708
|
}
|
|
@@ -4715,7 +4715,7 @@ function Sc() {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
for (; w.element(h); ) {
|
|
4717
4717
|
f = [], d = [], c.interactables.forEachMatch(h, v);
|
|
4718
|
-
var E =
|
|
4718
|
+
var E = mi(n, t, o, f, d, i, c);
|
|
4719
4719
|
if (E.action && !E.interactable.options[E.action.name].manualStart) return E;
|
|
4720
4720
|
h = G(h);
|
|
4721
4721
|
}
|
|
@@ -4728,8 +4728,8 @@ function Sc() {
|
|
|
4728
4728
|
function Rt(n, t, o, i) {
|
|
4729
4729
|
var c = n.options, f = c[o.name].max, d = c[o.name].maxPerElement, h = i.autoStart.maxInteractions, v = 0, E = 0, y = 0;
|
|
4730
4730
|
if (!(f && d && h)) return !1;
|
|
4731
|
-
for (var
|
|
4732
|
-
var V = $[
|
|
4731
|
+
for (var O = 0, $ = i.interactions.list; O < $.length; O++) {
|
|
4732
|
+
var V = $[O], F = V.prepared.name;
|
|
4733
4733
|
if (V.interacting() && (++v >= h || V.interactable === n && ((E += F === o.name ? 1 : 0) >= f || V.element === t && (y++, F === o.name && y >= d))))
|
|
4734
4734
|
return !1;
|
|
4735
4735
|
}
|
|
@@ -4753,9 +4753,9 @@ function Sc() {
|
|
|
4753
4753
|
bn(n.element, f || "", t);
|
|
4754
4754
|
} else t.autoStart.cursorElement && bn(t.autoStart.cursorElement, "", t);
|
|
4755
4755
|
}
|
|
4756
|
-
var
|
|
4756
|
+
var vi = { id: "auto-start/base", before: ["actions"], install: function(n) {
|
|
4757
4757
|
var t = n.interactStatic, o = n.defaults;
|
|
4758
|
-
n.usePlugin(
|
|
4758
|
+
n.usePlugin(gi), o.base.actionChecker = null, o.base.styleCursor = !0, Q(o.perAction, { manualStart: !1, max: 1 / 0, maxPerElement: 1, allowFrom: null, ignoreFrom: null, mouseButtons: 1 }), t.maxInteractions = function(i) {
|
|
4759
4759
|
return Rr(i, n);
|
|
4760
4760
|
}, n.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit: Rt, cursorElement: null };
|
|
4761
4761
|
}, listeners: { "interactions:down": function(n, t) {
|
|
@@ -4776,31 +4776,31 @@ function Sc() {
|
|
|
4776
4776
|
}, "interactions:stop": function(n, t) {
|
|
4777
4777
|
var o = n.interaction, i = o.interactable;
|
|
4778
4778
|
i && i.options.styleCursor && bn(o.element, "", t);
|
|
4779
|
-
} }, maxInteractions: Rr, withinInteractionLimit: Rt, validateAction: $r }, wn =
|
|
4779
|
+
} }, maxInteractions: Rr, withinInteractionLimit: Rt, validateAction: $r }, wn = vi, yi = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(n, t) {
|
|
4780
4780
|
var o = n.interaction, i = n.eventTarget, c = n.dx, f = n.dy;
|
|
4781
4781
|
if (o.prepared.name === "drag") {
|
|
4782
4782
|
var d = Math.abs(c), h = Math.abs(f), v = o.interactable.options.drag, E = v.startAxis, y = d > h ? "x" : d < h ? "y" : "xy";
|
|
4783
4783
|
if (o.prepared.axis = v.lockAxis === "start" ? y[0] : v.lockAxis, y !== "xy" && E !== "xy" && E !== y) {
|
|
4784
4784
|
o.prepared.name = null;
|
|
4785
|
-
for (var
|
|
4785
|
+
for (var O = i, $ = function(F) {
|
|
4786
4786
|
if (F !== o.interactable) {
|
|
4787
4787
|
var X = o.interactable.options.drag;
|
|
4788
|
-
if (!X.manualStart && F.testIgnoreAllow(X,
|
|
4789
|
-
var re = F.getAction(o.downPointer, o.downEvent, o,
|
|
4788
|
+
if (!X.manualStart && F.testIgnoreAllow(X, O, i)) {
|
|
4789
|
+
var re = F.getAction(o.downPointer, o.downEvent, o, O);
|
|
4790
4790
|
if (re && re.name === "drag" && function(ee, ce) {
|
|
4791
4791
|
if (!ce) return !1;
|
|
4792
4792
|
var xe = ce.options.drag.startAxis;
|
|
4793
4793
|
return ee === "xy" || xe === "xy" || xe === ee;
|
|
4794
|
-
}(y, F) && wn.validateAction(re, F,
|
|
4794
|
+
}(y, F) && wn.validateAction(re, F, O, i, t)) return F;
|
|
4795
4795
|
}
|
|
4796
4796
|
}
|
|
4797
|
-
}; w.element(
|
|
4798
|
-
var V = t.interactables.forEachMatch(
|
|
4797
|
+
}; w.element(O); ) {
|
|
4798
|
+
var V = t.interactables.forEachMatch(O, $);
|
|
4799
4799
|
if (V) {
|
|
4800
|
-
o.prepared.name = "drag", o.interactable = V, o.element =
|
|
4800
|
+
o.prepared.name = "drag", o.interactable = V, o.element = O;
|
|
4801
4801
|
break;
|
|
4802
4802
|
}
|
|
4803
|
-
|
|
4803
|
+
O = G(O);
|
|
4804
4804
|
}
|
|
4805
4805
|
}
|
|
4806
4806
|
}
|
|
@@ -4811,7 +4811,7 @@ function Sc() {
|
|
|
4811
4811
|
var o = n.interactable.options;
|
|
4812
4812
|
return o[t].hold || o[t].delay;
|
|
4813
4813
|
}
|
|
4814
|
-
var
|
|
4814
|
+
var xi = { id: "auto-start/hold", install: function(n) {
|
|
4815
4815
|
var t = n.defaults;
|
|
4816
4816
|
n.usePlugin(wn), t.perAction.hold = 0, t.perAction.delay = 0;
|
|
4817
4817
|
}, listeners: { "interactions:new": function(n) {
|
|
@@ -4827,18 +4827,18 @@ function Sc() {
|
|
|
4827
4827
|
}, "autoStart:before-start": function(n) {
|
|
4828
4828
|
var t = n.interaction;
|
|
4829
4829
|
En(t) > 0 && (t.prepared.name = null);
|
|
4830
|
-
} }, getHoldDuration: En },
|
|
4831
|
-
n.usePlugin(wn), n.usePlugin(
|
|
4832
|
-
} },
|
|
4830
|
+
} }, getHoldDuration: En }, bi = xi, wi = { id: "auto-start", install: function(n) {
|
|
4831
|
+
n.usePlugin(wn), n.usePlugin(bi), n.usePlugin(yi);
|
|
4832
|
+
} }, Ei = function(n) {
|
|
4833
4833
|
return /^(always|never|auto)$/.test(n) ? (this.options.preventDefault = n, this) : w.bool(n) ? (this.options.preventDefault = n ? "always" : "never", this) : this.options.preventDefault;
|
|
4834
4834
|
};
|
|
4835
|
-
function
|
|
4835
|
+
function Ni(n) {
|
|
4836
4836
|
var t = n.interaction, o = n.event;
|
|
4837
4837
|
t.interactable && t.interactable.checkAndPreventDefault(o);
|
|
4838
4838
|
}
|
|
4839
4839
|
var Lr = { id: "core/interactablePreventDefault", install: function(n) {
|
|
4840
4840
|
var t = n.Interactable;
|
|
4841
|
-
t.prototype.preventDefault =
|
|
4841
|
+
t.prototype.preventDefault = Ei, t.prototype.checkAndPreventDefault = function(o) {
|
|
4842
4842
|
return function(i, c, f) {
|
|
4843
4843
|
var d = i.options.preventDefault;
|
|
4844
4844
|
if (d !== "never") if (d !== "always") {
|
|
@@ -4856,7 +4856,7 @@ function Sc() {
|
|
|
4856
4856
|
}
|
|
4857
4857
|
} });
|
|
4858
4858
|
}, listeners: ["down", "move", "up", "cancel"].reduce(function(n, t) {
|
|
4859
|
-
return n["interactions:".concat(t)] =
|
|
4859
|
+
return n["interactions:".concat(t)] = Ni, n;
|
|
4860
4860
|
}, {}) };
|
|
4861
4861
|
function zt(n, t) {
|
|
4862
4862
|
if (t.phaselessTypes[n]) return !0;
|
|
@@ -4877,8 +4877,8 @@ function Sc() {
|
|
|
4877
4877
|
}
|
|
4878
4878
|
return g(n, [{ key: "start", value: function(t, o) {
|
|
4879
4879
|
var i, c, f = t.phase, d = this.interaction, h = function(E) {
|
|
4880
|
-
var y = E.interactable.options[E.prepared.name],
|
|
4881
|
-
return
|
|
4880
|
+
var y = E.interactable.options[E.prepared.name], O = y.modifiers;
|
|
4881
|
+
return O && O.length ? O : ["snap", "snapSize", "snapEdges", "restrict", "restrictEdges", "restrictSize"].map(function($) {
|
|
4882
4882
|
var V = y[$];
|
|
4883
4883
|
return V && V.enabled && { options: V, methods: V._methods };
|
|
4884
4884
|
}).filter(function($) {
|
|
@@ -4900,8 +4900,8 @@ function Sc() {
|
|
|
4900
4900
|
var o = t.phase, i = t.preEnd, c = t.skipModifiers, f = t.rect, d = t.edges;
|
|
4901
4901
|
t.coords = Q({}, t.pageCoords), t.rect = Q({}, f), t.edges = Q({}, d);
|
|
4902
4902
|
for (var h = c ? this.states.slice(c) : this.states, v = Lt(t.coords, t.rect), E = 0; E < h.length; E++) {
|
|
4903
|
-
var y,
|
|
4904
|
-
(y =
|
|
4903
|
+
var y, O = h[E], $ = O.options, V = Q({}, t.coords), F = null;
|
|
4904
|
+
(y = O.methods) != null && y.set && this.shouldDo($, i, o) && (t.state = O, F = O.methods.set(t), De(t.edges, t.rect, { x: t.coords.x - V.x, y: t.coords.y - V.y })), v.eventProps.push(F);
|
|
4905
4905
|
}
|
|
4906
4906
|
Q(this.edges, t.edges), v.delta.x = t.coords.x - t.pageCoords.x, v.delta.y = t.coords.y - t.pageCoords.y, v.rectDelta.left = t.rect.left - f.left, v.rectDelta.right = t.rect.right - f.right, v.rectDelta.top = t.rect.top - f.top, v.rectDelta.bottom = t.rect.bottom - f.bottom;
|
|
4907
4907
|
var X = this.result.coords, re = this.result.rect;
|
|
@@ -4914,7 +4914,7 @@ function Sc() {
|
|
|
4914
4914
|
var o = this.interaction, i = t.phase, c = o.coords.cur, f = o.coords.start, d = this.result, h = this.startDelta, v = d.delta;
|
|
4915
4915
|
i === "start" && Q(this.startDelta, d.delta);
|
|
4916
4916
|
for (var E = 0, y = [[f, h], [c, v]]; E < y.length; E++) {
|
|
4917
|
-
var
|
|
4917
|
+
var O = y[E], $ = O[0], V = O[1];
|
|
4918
4918
|
$.page.x += V.x, $.page.y += V.y, $.client.x += V.x, $.client.y += V.y;
|
|
4919
4919
|
}
|
|
4920
4920
|
var F = this.result.rectDelta, X = t.rect || o.rect;
|
|
@@ -4960,8 +4960,8 @@ function Sc() {
|
|
|
4960
4960
|
} }, { key: "restoreInteractionCoords", value: function(t) {
|
|
4961
4961
|
var o = t.interaction, i = o.coords, c = o.rect, f = o.modification;
|
|
4962
4962
|
if (f.result) {
|
|
4963
|
-
for (var d = f.startDelta, h = f.result, v = h.delta, E = h.rectDelta, y = 0,
|
|
4964
|
-
var $ =
|
|
4963
|
+
for (var d = f.startDelta, h = f.result, v = h.delta, E = h.rectDelta, y = 0, O = [[i.start, d], [i.cur, v]]; y < O.length; y++) {
|
|
4964
|
+
var $ = O[y], V = $[0], F = $[1];
|
|
4965
4965
|
V.page.x -= F.x, V.page.y -= F.y, V.client.x -= F.x, V.client.y -= F.y;
|
|
4966
4966
|
}
|
|
4967
4967
|
c.left -= E.left, c.right -= E.right, c.top -= E.top, c.bottom -= E.bottom;
|
|
@@ -4996,7 +4996,7 @@ function Sc() {
|
|
|
4996
4996
|
var t = n.iEvent, o = n.interaction.modification.result;
|
|
4997
4997
|
o && (t.modifiers = o.eventProps);
|
|
4998
4998
|
}
|
|
4999
|
-
var
|
|
4999
|
+
var Si = { id: "modifiers/base", before: ["actions"], install: function(n) {
|
|
5000
5000
|
n.defaults.perAction.modifiers = [];
|
|
5001
5001
|
}, listeners: { "interactions:new": function(n) {
|
|
5002
5002
|
var t = n.interaction;
|
|
@@ -5016,14 +5016,14 @@ function Sc() {
|
|
|
5016
5016
|
return n.interaction.modification.restoreInteractionCoords(n);
|
|
5017
5017
|
}, "interactions:stop": function(n) {
|
|
5018
5018
|
return n.interaction.modification.stop(n);
|
|
5019
|
-
} } }, Fr =
|
|
5019
|
+
} } }, Fr = Si, Dr = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, Sn = function(n) {
|
|
5020
5020
|
N(o, n);
|
|
5021
5021
|
var t = I(o);
|
|
5022
5022
|
function o(i, c, f, d, h, v, E) {
|
|
5023
5023
|
var y;
|
|
5024
5024
|
u(this, o), (y = t.call(this, i)).relatedTarget = null, y.screenX = void 0, y.screenY = void 0, y.button = void 0, y.buttons = void 0, y.ctrlKey = void 0, y.shiftKey = void 0, y.altKey = void 0, y.metaKey = void 0, y.page = void 0, y.client = void 0, y.delta = void 0, y.rect = void 0, y.x0 = void 0, y.y0 = void 0, y.t0 = void 0, y.dt = void 0, y.duration = void 0, y.clientX0 = void 0, y.clientY0 = void 0, y.velocity = void 0, y.speed = void 0, y.swipe = void 0, y.axes = void 0, y.preEnd = void 0, h = h || i.element;
|
|
5025
|
-
var
|
|
5026
|
-
return y.page = Q({}, ee.page), y.client = Q({}, ee.client), y.rect = Q({}, i.rect), y.timeStamp = ee.timeStamp, X || (y.page.x -= V.x, y.page.y -= V.y, y.client.x -= V.x, y.client.y -= V.y), y.ctrlKey = c.ctrlKey, y.altKey = c.altKey, y.shiftKey = c.shiftKey, y.metaKey = c.metaKey, y.button = c.button, y.buttons = c.buttons, y.target = h, y.currentTarget = h, y.preEnd = v, y.type = E || f + (d || ""), y.interactable =
|
|
5025
|
+
var O = i.interactable, $ = (O && O.options || Dr).deltaSource, V = $e(O, h, f), F = d === "start", X = d === "end", re = F ? k(y) : i.prevEvent, ee = F ? i.coords.start : X ? { page: re.page, client: re.client, timeStamp: i.coords.cur.timeStamp } : i.coords.cur;
|
|
5026
|
+
return y.page = Q({}, ee.page), y.client = Q({}, ee.client), y.rect = Q({}, i.rect), y.timeStamp = ee.timeStamp, X || (y.page.x -= V.x, y.page.y -= V.y, y.client.x -= V.x, y.client.y -= V.y), y.ctrlKey = c.ctrlKey, y.altKey = c.altKey, y.shiftKey = c.shiftKey, y.metaKey = c.metaKey, y.button = c.button, y.buttons = c.buttons, y.target = h, y.currentTarget = h, y.preEnd = v, y.type = E || f + (d || ""), y.interactable = O, y.t0 = F ? i.pointers[i.pointers.length - 1].downTime : re.t0, y.x0 = i.coords.start.page.x - V.x, y.y0 = i.coords.start.page.y - V.y, y.clientX0 = i.coords.start.client.x - V.x, y.clientY0 = i.coords.start.client.y - V.y, y.delta = F || X ? { x: 0, y: 0 } : { x: y[$].x - re[$].x, y: y[$].y - re[$].y }, y.dt = i.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = Q({}, i.coords.velocity[$]), y.speed = dt(y.velocity.x, y.velocity.y), y.swipe = X || d === "inertiastart" ? y.getSwipe() : null, y;
|
|
5027
5027
|
}
|
|
5028
5028
|
return g(o, [{ key: "getSwipe", value: function() {
|
|
5029
5029
|
var i = this._interaction;
|
|
@@ -5072,18 +5072,18 @@ function Sc() {
|
|
|
5072
5072
|
}, set: function(n) {
|
|
5073
5073
|
this.velocity.y = n;
|
|
5074
5074
|
} } });
|
|
5075
|
-
var
|
|
5075
|
+
var Ti = g(function n(t, o, i, c, f) {
|
|
5076
5076
|
u(this, n), this.id = void 0, this.pointer = void 0, this.event = void 0, this.downTime = void 0, this.downTarget = void 0, this.id = t, this.pointer = o, this.event = i, this.downTime = c, this.downTarget = f;
|
|
5077
|
-
}),
|
|
5077
|
+
}), _i = function(n) {
|
|
5078
5078
|
return n.interactable = "", n.element = "", n.prepared = "", n.pointerIsDown = "", n.pointerWasMoved = "", n._proxy = "", n;
|
|
5079
5079
|
}({}), Vr = function(n) {
|
|
5080
5080
|
return n.start = "", n.move = "", n.end = "", n.stop = "", n.interacting = "", n;
|
|
5081
|
-
}({}),
|
|
5081
|
+
}({}), Oi = 0, Pi = function() {
|
|
5082
5082
|
function n(t) {
|
|
5083
5083
|
var o = this, i = t.pointerType, c = t.scopeFire;
|
|
5084
5084
|
u(this, n), this.interactable = null, this.element = null, this.rect = null, this._rects = void 0, this.edges = null, this._scopeFire = void 0, this.prepared = { name: null, axis: null, edges: null }, this.pointerType = void 0, this.pointers = [], this.downEvent = null, this.downPointer = {}, this._latestPointer = { pointer: null, event: null, eventTarget: null }, this.prevEvent = null, this.pointerIsDown = !1, this.pointerWasMoved = !1, this._interacting = !1, this._ending = !1, this._stopped = !0, this._proxy = void 0, this.simulation = null, this.doMove = mt(function(y) {
|
|
5085
5085
|
this.move(y);
|
|
5086
|
-
}, "The interaction.doMove() method has been renamed to interaction.move()"), this.coords = { start: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, prev: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, cur: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, delta: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, velocity: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 } }, this._id =
|
|
5086
|
+
}, "The interaction.doMove() method has been renamed to interaction.move()"), this.coords = { start: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, prev: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, cur: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, delta: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 }, velocity: { page: { x: 0, y: 0 }, client: { x: 0, y: 0 }, timeStamp: 0 } }, this._id = Oi++, this._scopeFire = c, this.pointerType = i;
|
|
5087
5087
|
var f = this;
|
|
5088
5088
|
this._proxy = {};
|
|
5089
5089
|
var d = function(y) {
|
|
@@ -5091,7 +5091,7 @@ function Sc() {
|
|
|
5091
5091
|
return f[y];
|
|
5092
5092
|
} });
|
|
5093
5093
|
};
|
|
5094
|
-
for (var h in
|
|
5094
|
+
for (var h in _i) d(h);
|
|
5095
5095
|
var v = function(y) {
|
|
5096
5096
|
Object.defineProperty(o._proxy, y, { value: function() {
|
|
5097
5097
|
return f[y].apply(f, arguments);
|
|
@@ -5111,8 +5111,8 @@ function Sc() {
|
|
|
5111
5111
|
this.simulation || this.modification && this.modification.endResult || this.updatePointer(t, o, i, !1);
|
|
5112
5112
|
var c, f, d = this.coords.cur.page.x === this.coords.prev.page.x && this.coords.cur.page.y === this.coords.prev.page.y && this.coords.cur.client.x === this.coords.prev.client.x && this.coords.cur.client.y === this.coords.prev.client.y;
|
|
5113
5113
|
this.pointerIsDown && !this.pointerWasMoved && (c = this.coords.cur.client.x - this.coords.start.client.x, f = this.coords.cur.client.y - this.coords.start.client.y, this.pointerWasMoved = dt(c, f) > this.pointerMoveTolerance);
|
|
5114
|
-
var h, v, E, y = this.getPointerIndex(t),
|
|
5115
|
-
d || (h = this.coords.velocity, v = this.coords.delta, E = Math.max(v.timeStamp / 1e3, 1e-3), h.page.x = v.page.x / E, h.page.y = v.page.y / E, h.client.x = v.client.x / E, h.client.y = v.client.y / E, h.timeStamp = E), this._scopeFire("interactions:move",
|
|
5114
|
+
var h, v, E, y = this.getPointerIndex(t), O = { pointer: t, pointerIndex: y, pointerInfo: this.pointers[y], event: o, type: "move", eventTarget: i, dx: c, dy: f, duplicate: d, interaction: this };
|
|
5115
|
+
d || (h = this.coords.velocity, v = this.coords.delta, E = Math.max(v.timeStamp / 1e3, 1e-3), h.page.x = v.page.x / E, h.page.y = v.page.y / E, h.client.x = v.client.x / E, h.client.y = v.client.y / E, h.timeStamp = E), this._scopeFire("interactions:move", O), d || this.simulation || (this.interacting() && (O.type = null, this.move(O)), this.pointerWasMoved && $t(this.coords.prev, this.coords.cur));
|
|
5116
5116
|
} }, { key: "move", value: function(t) {
|
|
5117
5117
|
t && t.event || vr(this.coords.delta), (t = Q({ pointer: this._latestPointer.pointer, event: this._latestPointer.event, eventTarget: this._latestPointer.eventTarget, interaction: this }, t || {})).phase = "move", this._doPhase(t);
|
|
5118
5118
|
} }, { key: "pointerUp", value: function(t, o, i, c) {
|
|
@@ -5140,8 +5140,8 @@ function Sc() {
|
|
|
5140
5140
|
return this.pointers[this.getPointerIndex(t)];
|
|
5141
5141
|
} }, { key: "updatePointer", value: function(t, o, i, c) {
|
|
5142
5142
|
var f, d, h, v = pt(t), E = this.getPointerIndex(t), y = this.pointers[E];
|
|
5143
|
-
return c = c !== !1 && (c || /(down|start)$/i.test(o.type)), y ? y.pointer = t : (y = new
|
|
5144
|
-
return
|
|
5143
|
+
return c = c !== !1 && (c || /(down|start)$/i.test(o.type)), y ? y.pointer = t : (y = new Ti(v, t, o, null, null), E = this.pointers.length, this.pointers.push(y)), ii(this.coords.cur, this.pointers.map(function(O) {
|
|
5144
|
+
return O.pointer;
|
|
5145
5145
|
}), this._now()), f = this.coords.delta, d = this.coords.prev, h = this.coords.cur, f.page.x = h.page.x - d.page.x, f.page.y = h.page.y - d.page.y, f.client.x = h.client.x - d.client.x, f.client.y = h.client.y - d.client.y, f.timeStamp = h.timeStamp - d.timeStamp, c && (this.pointerIsDown = !0, y.downTime = this.coords.cur.timeStamp, y.downTarget = i, It(this.downPointer, t), this.interacting() || ($t(this.coords.start, this.coords.cur), $t(this.coords.prev, this.coords.cur), this.downEvent = o, this.pointerWasMoved = !1)), this._updateLatestPointer(t, o, i), this._scopeFire("interactions:update-pointer", { pointer: t, event: o, eventTarget: i, down: c, pointerInfo: y, pointerIndex: E, interaction: this }), E;
|
|
5146
5146
|
} }, { key: "removePointer", value: function(t, o) {
|
|
5147
5147
|
var i = this.getPointerIndex(t);
|
|
@@ -5186,7 +5186,7 @@ function Sc() {
|
|
|
5186
5186
|
o.x += c, o.y += f, i.x += c, i.y += f;
|
|
5187
5187
|
}
|
|
5188
5188
|
Vr.offsetBy = "";
|
|
5189
|
-
var
|
|
5189
|
+
var Ci = { id: "offset", before: ["modifiers", "pointer-events", "actions", "inertia"], install: function(n) {
|
|
5190
5190
|
n.Interaction.prototype.offsetBy = ki;
|
|
5191
5191
|
}, listeners: { "interactions:new": function(n) {
|
|
5192
5192
|
n.interaction.offset = { total: { x: 0, y: 0 }, pending: { x: 0, y: 0 } };
|
|
@@ -5200,7 +5200,7 @@ function Sc() {
|
|
|
5200
5200
|
}, "interactions:stop": function(n) {
|
|
5201
5201
|
var t = n.interaction;
|
|
5202
5202
|
t.offset.total.x = 0, t.offset.total.y = 0, t.offset.pending.x = 0, t.offset.pending.y = 0;
|
|
5203
|
-
} } }, Yr =
|
|
5203
|
+
} } }, Yr = Ci, ji = function() {
|
|
5204
5204
|
function n(t) {
|
|
5205
5205
|
u(this, n), this.active = !1, this.isModified = !1, this.smoothEnd = !1, this.allowResume = !1, this.modification = void 0, this.modifierCount = 0, this.modifierArg = void 0, this.startCoords = void 0, this.t0 = 0, this.v0 = 0, this.te = 0, this.targetOffset = void 0, this.modifiedOffset = void 0, this.currentOffset = void 0, this.lambda_v0 = 0, this.one_ve_v0 = 0, this.timeout = void 0, this.interaction = void 0, this.interaction = t;
|
|
5206
5206
|
}
|
|
@@ -5232,9 +5232,9 @@ function Sc() {
|
|
|
5232
5232
|
o.active && t();
|
|
5233
5233
|
});
|
|
5234
5234
|
} }, { key: "inertiaTick", value: function() {
|
|
5235
|
-
var t, o, i, c, f, d, h, v = this, E = this.interaction, y = Ft(E).resistance,
|
|
5236
|
-
if (
|
|
5237
|
-
var $, V = 1 - (Math.exp(-y *
|
|
5235
|
+
var t, o, i, c, f, d, h, v = this, E = this.interaction, y = Ft(E).resistance, O = (E._now() - this.t0) / 1e3;
|
|
5236
|
+
if (O < this.te) {
|
|
5237
|
+
var $, V = 1 - (Math.exp(-y * O) - this.lambda_v0) / this.one_ve_v0;
|
|
5238
5238
|
this.isModified ? (t = 0, o = 0, i = this.targetOffset.x, c = this.targetOffset.y, f = this.modifiedOffset.x, d = this.modifiedOffset.y, $ = { x: Xr(h = V, t, i, f), y: Xr(h, o, c, d) }) : $ = { x: this.targetOffset.x * V, y: this.targetOffset.y * V };
|
|
5239
5239
|
var F = { x: $.x - this.currentOffset.x, y: $.y - this.currentOffset.y };
|
|
5240
5240
|
this.currentOffset.x += F.x, this.currentOffset.y += F.y, E.offsetBy(F), E.move(), this.onNextFrame(function() {
|
|
@@ -5262,12 +5262,12 @@ function Sc() {
|
|
|
5262
5262
|
var t = n.interactable, o = n.prepared;
|
|
5263
5263
|
return t && t.options && o.name && t.options[o.name].inertia;
|
|
5264
5264
|
}
|
|
5265
|
-
var
|
|
5265
|
+
var Ii = { id: "inertia", before: ["modifiers", "actions"], install: function(n) {
|
|
5266
5266
|
var t = n.defaults;
|
|
5267
5267
|
n.usePlugin(Yr), n.usePlugin(Fr), n.actions.phases.inertiastart = !0, n.actions.phases.resume = !0, t.perAction.inertia = { enabled: !1, resistance: 10, minSpeed: 100, endSpeed: 10, allowResume: !0, smoothEndDuration: 300 };
|
|
5268
5268
|
}, listeners: { "interactions:new": function(n) {
|
|
5269
5269
|
var t = n.interaction;
|
|
5270
|
-
t.inertia = new
|
|
5270
|
+
t.inertia = new ji(t);
|
|
5271
5271
|
}, "interactions:before-action-end": function(n) {
|
|
5272
5272
|
var t = n.interaction, o = n.event;
|
|
5273
5273
|
return (!t._interacting || t.simulation || !t.inertia.start(o)) && null;
|
|
@@ -5300,7 +5300,7 @@ function Sc() {
|
|
|
5300
5300
|
function Ur(n, t, o, i) {
|
|
5301
5301
|
return -o * (n /= i) * (n - 2) + t;
|
|
5302
5302
|
}
|
|
5303
|
-
var
|
|
5303
|
+
var $i = Ii;
|
|
5304
5304
|
function qr(n, t) {
|
|
5305
5305
|
for (var o = 0; o < t.length; o++) {
|
|
5306
5306
|
var i = t[o];
|
|
@@ -5330,7 +5330,7 @@ function Sc() {
|
|
|
5330
5330
|
} }, { key: "getRect", value: function(t) {
|
|
5331
5331
|
return null;
|
|
5332
5332
|
} }]), n;
|
|
5333
|
-
}(),
|
|
5333
|
+
}(), Ai = function() {
|
|
5334
5334
|
function n(t) {
|
|
5335
5335
|
u(this, n), this.currentTarget = void 0, this.originalEvent = void 0, this.type = void 0, this.originalEvent = t, It(this, t);
|
|
5336
5336
|
}
|
|
@@ -5348,8 +5348,8 @@ function Sc() {
|
|
|
5348
5348
|
function Dt(n, t) {
|
|
5349
5349
|
return n === t || (typeof n == "boolean" ? !!t.capture === n && !t.passive : !!n.capture == !!t.capture && !!n.passive == !!t.passive);
|
|
5350
5350
|
}
|
|
5351
|
-
var
|
|
5352
|
-
var t, o = [], i = {}, c = [], f = { add: d, remove: h, addDelegate: function(y,
|
|
5351
|
+
var Mi = { id: "events", install: function(n) {
|
|
5352
|
+
var t, o = [], i = {}, c = [], f = { add: d, remove: h, addDelegate: function(y, O, $, V, F) {
|
|
5353
5353
|
var X = yt(F);
|
|
5354
5354
|
if (!i[$]) {
|
|
5355
5355
|
i[$] = [];
|
|
@@ -5359,19 +5359,19 @@ function Sc() {
|
|
|
5359
5359
|
}
|
|
5360
5360
|
}
|
|
5361
5361
|
var ce = i[$], xe = gt(ce, function(we) {
|
|
5362
|
-
return we.selector === y && we.context ===
|
|
5362
|
+
return we.selector === y && we.context === O;
|
|
5363
5363
|
});
|
|
5364
|
-
xe || (xe = { selector: y, context:
|
|
5365
|
-
}, removeDelegate: function(y,
|
|
5364
|
+
xe || (xe = { selector: y, context: O, listeners: [] }, ce.push(xe)), xe.listeners.push({ func: V, options: X });
|
|
5365
|
+
}, removeDelegate: function(y, O, $, V, F) {
|
|
5366
5366
|
var X, re = yt(F), ee = i[$], ce = !1;
|
|
5367
5367
|
if (ee)
|
|
5368
5368
|
for (X = ee.length - 1; X >= 0; X--) {
|
|
5369
5369
|
var xe = ee[X];
|
|
5370
|
-
if (xe.selector === y && xe.context ===
|
|
5370
|
+
if (xe.selector === y && xe.context === O) {
|
|
5371
5371
|
for (var we = xe.listeners, fe = we.length - 1; fe >= 0; fe--) {
|
|
5372
5372
|
var be = we[fe];
|
|
5373
5373
|
if (be.func === V && Dt(be.options, re)) {
|
|
5374
|
-
we.splice(fe, 1), we.length || (ee.splice(X, 1), h(
|
|
5374
|
+
we.splice(fe, 1), we.length || (ee.splice(X, 1), h(O, $, v), h(O, $, E, !0)), ce = !0;
|
|
5375
5375
|
break;
|
|
5376
5376
|
}
|
|
5377
5377
|
}
|
|
@@ -5379,45 +5379,45 @@ function Sc() {
|
|
|
5379
5379
|
}
|
|
5380
5380
|
}
|
|
5381
5381
|
}, delegateListener: v, delegateUseCapture: E, delegatedEvents: i, documents: c, targets: o, supportsOptions: !1, supportsPassive: !1 };
|
|
5382
|
-
function d(y,
|
|
5382
|
+
function d(y, O, $, V) {
|
|
5383
5383
|
if (y.addEventListener) {
|
|
5384
5384
|
var F = yt(V), X = gt(o, function(re) {
|
|
5385
5385
|
return re.eventTarget === y;
|
|
5386
5386
|
});
|
|
5387
|
-
X || (X = { eventTarget: y, events: {} }, o.push(X)), X.events[
|
|
5387
|
+
X || (X = { eventTarget: y, events: {} }, o.push(X)), X.events[O] || (X.events[O] = []), gt(X.events[O], function(re) {
|
|
5388
5388
|
return re.func === $ && Dt(re.options, F);
|
|
5389
|
-
}) || (y.addEventListener(
|
|
5389
|
+
}) || (y.addEventListener(O, $, f.supportsOptions ? F : F.capture), X.events[O].push({ func: $, options: F }));
|
|
5390
5390
|
}
|
|
5391
5391
|
}
|
|
5392
|
-
function h(y,
|
|
5392
|
+
function h(y, O, $, V) {
|
|
5393
5393
|
if (y.addEventListener && y.removeEventListener) {
|
|
5394
5394
|
var F = ht(o, function(Me) {
|
|
5395
5395
|
return Me.eventTarget === y;
|
|
5396
5396
|
}), X = o[F];
|
|
5397
|
-
if (X && X.events) if (
|
|
5398
|
-
var re = !1, ee = X.events[
|
|
5397
|
+
if (X && X.events) if (O !== "all") {
|
|
5398
|
+
var re = !1, ee = X.events[O];
|
|
5399
5399
|
if (ee) {
|
|
5400
5400
|
if ($ === "all") {
|
|
5401
5401
|
for (var ce = ee.length - 1; ce >= 0; ce--) {
|
|
5402
5402
|
var xe = ee[ce];
|
|
5403
|
-
h(y,
|
|
5403
|
+
h(y, O, xe.func, xe.options);
|
|
5404
5404
|
}
|
|
5405
5405
|
return;
|
|
5406
5406
|
}
|
|
5407
5407
|
for (var we = yt(V), fe = 0; fe < ee.length; fe++) {
|
|
5408
5408
|
var be = ee[fe];
|
|
5409
5409
|
if (be.func === $ && Dt(be.options, we)) {
|
|
5410
|
-
y.removeEventListener(
|
|
5410
|
+
y.removeEventListener(O, $, f.supportsOptions ? we : we.capture), ee.splice(fe, 1), ee.length === 0 && (delete X.events[O], re = !0);
|
|
5411
5411
|
break;
|
|
5412
5412
|
}
|
|
5413
5413
|
}
|
|
5414
5414
|
}
|
|
5415
5415
|
re && !Object.keys(X.events).length && o.splice(F, 1);
|
|
5416
|
-
} else for (
|
|
5416
|
+
} else for (O in X.events) X.events.hasOwnProperty(O) && h(y, O, "all");
|
|
5417
5417
|
}
|
|
5418
5418
|
}
|
|
5419
|
-
function v(y,
|
|
5420
|
-
for (var $ = yt(
|
|
5419
|
+
function v(y, O) {
|
|
5420
|
+
for (var $ = yt(O), V = new Ai(y), F = i[y.type], X = Er(y)[0], re = X; w.element(re); ) {
|
|
5421
5421
|
for (var ee = 0; ee < F.length; ee++) {
|
|
5422
5422
|
var ce = F[ee], xe = ce.selector, we = ce.context;
|
|
5423
5423
|
if (_(re, xe) && Z(we, X) && Z(we, re)) {
|
|
@@ -5470,8 +5470,8 @@ function Sc() {
|
|
|
5470
5470
|
}
|
|
5471
5471
|
if (t) return t;
|
|
5472
5472
|
for (var E = 0, y = f.interactions.list; E < y.length; E++) {
|
|
5473
|
-
var
|
|
5474
|
-
if (!(
|
|
5473
|
+
var O = y[E];
|
|
5474
|
+
if (!(O.pointerType !== i || /down/i.test(c) && O.simulation)) return O;
|
|
5475
5475
|
}
|
|
5476
5476
|
return null;
|
|
5477
5477
|
}, hasPointer: function(n) {
|
|
@@ -5496,14 +5496,14 @@ function Sc() {
|
|
|
5496
5496
|
return o.id === t;
|
|
5497
5497
|
});
|
|
5498
5498
|
}
|
|
5499
|
-
var
|
|
5499
|
+
var Ri = _n, On = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
|
|
5500
5500
|
function Kr(n, t) {
|
|
5501
5501
|
return function(o) {
|
|
5502
5502
|
var i = t.interactions.list, c = wr(o), f = Er(o), d = f[0], h = f[1], v = [];
|
|
5503
5503
|
if (/^touch/.test(o.type)) {
|
|
5504
5504
|
t.prevTouchTime = t.now();
|
|
5505
5505
|
for (var E = 0, y = o.changedTouches; E < y.length; E++) {
|
|
5506
|
-
var
|
|
5506
|
+
var O = y[E], $ = { pointer: O, pointerId: pt(O), pointerType: c, eventType: o.type, eventTarget: d, curEventTarget: h, scope: t }, V = Jr($);
|
|
5507
5507
|
v.push([$.pointer, $.eventTarget, $.curEventTarget, V]);
|
|
5508
5508
|
}
|
|
5509
5509
|
} else {
|
|
@@ -5524,20 +5524,20 @@ function Sc() {
|
|
|
5524
5524
|
};
|
|
5525
5525
|
}
|
|
5526
5526
|
function Jr(n) {
|
|
5527
|
-
var t = n.pointerType, o = n.scope, i = { interaction:
|
|
5527
|
+
var t = n.pointerType, o = n.scope, i = { interaction: Ri.search(n), searchDetails: n };
|
|
5528
5528
|
return o.fire("interactions:find", i), i.interaction || o.interactions.new({ pointerType: t });
|
|
5529
5529
|
}
|
|
5530
|
-
function
|
|
5530
|
+
function Pn(n, t) {
|
|
5531
5531
|
var o = n.doc, i = n.scope, c = n.options, f = i.interactions.docEvents, d = i.events, h = d[t];
|
|
5532
5532
|
for (var v in i.browser.isIOS && !c.events && (c.events = { passive: !1 }), d.delegatedEvents) h(o, v, d.delegateListener), h(o, v, d.delegateUseCapture, !0);
|
|
5533
5533
|
for (var E = c && c.events, y = 0; y < f.length; y++) {
|
|
5534
|
-
var
|
|
5535
|
-
h(o,
|
|
5534
|
+
var O = f[y];
|
|
5535
|
+
h(o, O.type, O.listener, E);
|
|
5536
5536
|
}
|
|
5537
5537
|
}
|
|
5538
|
-
var
|
|
5539
|
-
for (var t = {}, o = 0; o <
|
|
5540
|
-
var i =
|
|
5538
|
+
var zi = { id: "core/interactions", install: function(n) {
|
|
5539
|
+
for (var t = {}, o = 0; o < On.length; o++) {
|
|
5540
|
+
var i = On[o];
|
|
5541
5541
|
t[i] = Kr(i, n);
|
|
5542
5542
|
}
|
|
5543
5543
|
var c, f = J.pEventTypes;
|
|
@@ -5545,11 +5545,11 @@ function Sc() {
|
|
|
5545
5545
|
for (var h = 0, v = n.interactions.list; h < v.length; h++) {
|
|
5546
5546
|
var E = v[h];
|
|
5547
5547
|
if (E.pointerIsDown && E.pointerType === "touch" && !E._interacting) for (var y = function() {
|
|
5548
|
-
var V = $[
|
|
5548
|
+
var V = $[O];
|
|
5549
5549
|
n.documents.some(function(F) {
|
|
5550
5550
|
return Z(F.doc, V.downTarget);
|
|
5551
5551
|
}) || E.removePointer(V.pointer, V.event);
|
|
5552
|
-
},
|
|
5552
|
+
}, O = 0, $ = E.pointers; O < $.length; O++) y();
|
|
5553
5553
|
}
|
|
5554
5554
|
}
|
|
5555
5555
|
(c = L.PointerEvent ? [{ type: f.down, listener: d }, { type: f.down, listener: t.pointerDown }, { type: f.move, listener: t.pointerMove }, { type: f.up, listener: t.pointerUp }, { type: f.cancel, listener: t.pointerUp }] : [{ type: "mousedown", listener: t.pointerDown }, { type: "mousemove", listener: t.pointerMove }, { type: "mouseup", listener: t.pointerUp }, { type: "touchstart", listener: d }, { type: "touchstart", listener: t.pointerDown }, { type: "touchmove", listener: t.pointerMove }, { type: "touchend", listener: t.pointerUp }, { type: "touchcancel", listener: t.pointerUp }]).push({ type: "blur", listener: function(h) {
|
|
@@ -5576,17 +5576,17 @@ function Sc() {
|
|
|
5576
5576
|
return n.interactions.list.push(v), v;
|
|
5577
5577
|
}, listeners: t, docEvents: c, pointerMoveTolerance: 1 }, n.usePlugin(Lr);
|
|
5578
5578
|
}, listeners: { "scope:add-document": function(n) {
|
|
5579
|
-
return
|
|
5579
|
+
return Pn(n, "add");
|
|
5580
5580
|
}, "scope:remove-document": function(n) {
|
|
5581
|
-
return
|
|
5581
|
+
return Pn(n, "remove");
|
|
5582
5582
|
}, "interactable:unset": function(n, t) {
|
|
5583
5583
|
for (var o = n.interactable, i = t.interactions.list.length - 1; i >= 0; i--) {
|
|
5584
5584
|
var c = t.interactions.list[i];
|
|
5585
5585
|
c.interactable === o && (c.stop(), t.fire("interactions:destroy", { interaction: c }), c.destroy(), t.interactions.list.length > 2 && t.interactions.list.splice(i, 1));
|
|
5586
5586
|
}
|
|
5587
|
-
} }, onDocSignal:
|
|
5587
|
+
} }, onDocSignal: Pn, doOnInteractions: Kr, methodNames: On }, Li = zi, Je = function(n) {
|
|
5588
5588
|
return n[n.On = 0] = "On", n[n.Off = 1] = "Off", n;
|
|
5589
|
-
}(Je || {}),
|
|
5589
|
+
}(Je || {}), Fi = function() {
|
|
5590
5590
|
function n(t, o, i, c) {
|
|
5591
5591
|
u(this, n), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new Gr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = o.actions, this.target = t, this._context = o.context || i, this._win = B(me(t) ? this._context : t), this._doc = this._win.document, this._scopeEvents = c, this.set(o);
|
|
5592
5592
|
}
|
|
@@ -5669,7 +5669,7 @@ function Sc() {
|
|
|
5669
5669
|
}
|
|
5670
5670
|
else this._scopeEvents.remove(this.target, "all");
|
|
5671
5671
|
} }]), n;
|
|
5672
|
-
}(),
|
|
5672
|
+
}(), Di = function() {
|
|
5673
5673
|
function n(t) {
|
|
5674
5674
|
var o = this;
|
|
5675
5675
|
u(this, n), this.list = [], this.selectorMap = {}, this.scope = void 0, this.scope = t, t.addListeners({ "interactable:unset": function(i) {
|
|
@@ -5694,7 +5694,7 @@ function Sc() {
|
|
|
5694
5694
|
if ((w.string(f.target) ? w.element(t) && _(t, f.target) : t === f.target) && f.inContext(t) && (d = o(f)), d !== void 0) return d;
|
|
5695
5695
|
}
|
|
5696
5696
|
} }]), n;
|
|
5697
|
-
}(),
|
|
5697
|
+
}(), Vi = function() {
|
|
5698
5698
|
function n() {
|
|
5699
5699
|
var t = this;
|
|
5700
5700
|
u(this, n), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = J, this.defaults = ut(Dr), this.Eventable = Gr, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = function(i) {
|
|
@@ -5715,7 +5715,7 @@ function Sc() {
|
|
|
5715
5715
|
return this;
|
|
5716
5716
|
}
|
|
5717
5717
|
if (w.object(f)) {
|
|
5718
|
-
for (var
|
|
5718
|
+
for (var O in f) this.on(O, f[O], d);
|
|
5719
5719
|
return this;
|
|
5720
5720
|
}
|
|
5721
5721
|
return zt(f, this.scope.actions) ? this.globalEvents[f] ? this.globalEvents[f].push(d) : this.globalEvents[f] = [d] : this.scope.events.add(this.scope.document, f, d, { options: h }), this;
|
|
@@ -5728,7 +5728,7 @@ function Sc() {
|
|
|
5728
5728
|
return this;
|
|
5729
5729
|
}
|
|
5730
5730
|
if (w.object(f)) {
|
|
5731
|
-
for (var
|
|
5731
|
+
for (var O in f) this.off(O, f[O], d);
|
|
5732
5732
|
return this;
|
|
5733
5733
|
}
|
|
5734
5734
|
var $;
|
|
@@ -5749,7 +5749,7 @@ function Sc() {
|
|
|
5749
5749
|
}, c.removeDocument = function(f) {
|
|
5750
5750
|
this.scope.removeDocument(f);
|
|
5751
5751
|
}, c;
|
|
5752
|
-
}(this), this.InteractEvent = Sn, this.Interactable = void 0, this.interactables = new
|
|
5752
|
+
}(this), this.InteractEvent = Sn, this.Interactable = void 0, this.interactables = new Di(this), this._win = void 0, this.document = void 0, this.window = void 0, this.documents = [], this._plugins = { list: [], map: {} }, this.onWindowUnload = function(i) {
|
|
5753
5753
|
return t.removeDocument(i.target);
|
|
5754
5754
|
};
|
|
5755
5755
|
var o = this;
|
|
@@ -5768,7 +5768,7 @@ function Sc() {
|
|
|
5768
5768
|
var d = o.interactables.list.indexOf(this);
|
|
5769
5769
|
d < 0 || (o.interactables.list.splice(d, 1), o.fire("interactable:unset", { interactable: this }));
|
|
5770
5770
|
} }]), f;
|
|
5771
|
-
}(
|
|
5771
|
+
}(Fi);
|
|
5772
5772
|
}
|
|
5773
5773
|
return g(n, [{ key: "addListeners", value: function(t, o) {
|
|
5774
5774
|
this.listenerMaps.push({ id: o, map: t });
|
|
@@ -5779,7 +5779,7 @@ function Sc() {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
} }, { key: "init", value: function(t) {
|
|
5781
5781
|
return this.isInitialized ? this : function(o, i) {
|
|
5782
|
-
return o.isInitialized = !0, w.window(i) && D(i), L.init(i), J.init(i), We.init(i), o.window = i, o.document = i.document, o.usePlugin(
|
|
5782
|
+
return o.isInitialized = !0, w.window(i) && D(i), L.init(i), J.init(i), We.init(i), o.window = i, o.document = i.document, o.usePlugin(Li), o.usePlugin(Mi), o;
|
|
5783
5783
|
}(this, t);
|
|
5784
5784
|
} }, { key: "pluginIsInstalled", value: function(t) {
|
|
5785
5785
|
var o = t.id;
|
|
@@ -5817,50 +5817,50 @@ function Sc() {
|
|
|
5817
5817
|
function Zr(n) {
|
|
5818
5818
|
return n && n.replace(/\/.*$/, "");
|
|
5819
5819
|
}
|
|
5820
|
-
var Qr = new
|
|
5821
|
-
Qr.init(
|
|
5822
|
-
var
|
|
5820
|
+
var Qr = new Vi(), Ae = Qr.interactStatic, Hi = typeof globalThis < "u" ? globalThis : window;
|
|
5821
|
+
Qr.init(Hi);
|
|
5822
|
+
var Bi = Object.freeze({ __proto__: null, edgeTarget: function() {
|
|
5823
5823
|
}, elements: function() {
|
|
5824
5824
|
}, grid: function(n) {
|
|
5825
5825
|
var t = [["x", "y"], ["left", "top"], ["right", "bottom"], ["width", "height"]].filter(function(i) {
|
|
5826
5826
|
var c = i[0], f = i[1];
|
|
5827
5827
|
return c in n || f in n;
|
|
5828
5828
|
}), o = function(i, c) {
|
|
5829
|
-
for (var f = n.range, d = n.limits, h = d === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : d, v = n.offset, E = v === void 0 ? { x: 0, y: 0 } : v, y = { range: f, grid: n, x: null, y: null },
|
|
5830
|
-
var $ = t[
|
|
5829
|
+
for (var f = n.range, d = n.limits, h = d === void 0 ? { left: -1 / 0, right: 1 / 0, top: -1 / 0, bottom: 1 / 0 } : d, v = n.offset, E = v === void 0 ? { x: 0, y: 0 } : v, y = { range: f, grid: n, x: null, y: null }, O = 0; O < t.length; O++) {
|
|
5830
|
+
var $ = t[O], V = $[0], F = $[1], X = Math.round((i - E.x) / n[V]), re = Math.round((c - E.y) / n[F]);
|
|
5831
5831
|
y[V] = Math.max(h.left, Math.min(h.right, X * n[V] + E.x)), y[F] = Math.max(h.top, Math.min(h.bottom, re * n[F] + E.y));
|
|
5832
5832
|
}
|
|
5833
5833
|
return y;
|
|
5834
5834
|
};
|
|
5835
5835
|
return o.grid = n, o.coordFields = t, o;
|
|
5836
|
-
} }),
|
|
5836
|
+
} }), Yi = { id: "snappers", install: function(n) {
|
|
5837
5837
|
var t = n.interactStatic;
|
|
5838
|
-
t.snappers = Q(t.snappers || {},
|
|
5839
|
-
} },
|
|
5838
|
+
t.snappers = Q(t.snappers || {}, Bi), t.createSnapGrid = t.snappers.grid;
|
|
5839
|
+
} }, Xi = Yi, Ui = { start: function(n) {
|
|
5840
5840
|
var t = n.state, o = n.rect, i = n.edges, c = n.pageCoords, f = t.options, d = f.ratio, h = f.enabled, v = t.options, E = v.equalDelta, y = v.modifiers;
|
|
5841
5841
|
d === "preserve" && (d = o.width / o.height), t.startCoords = Q({}, c), t.startRect = Q({}, o), t.ratio = d, t.equalDelta = E;
|
|
5842
|
-
var
|
|
5842
|
+
var O = t.linkedEdges = { top: i.top || i.left && !i.bottom, left: i.left || i.top && !i.right, bottom: i.bottom || i.right && !i.top, right: i.right || i.bottom && !i.left };
|
|
5843
5843
|
if (t.xIsPrimaryAxis = !(!i.left && !i.right), t.equalDelta) {
|
|
5844
|
-
var $ = (
|
|
5844
|
+
var $ = (O.left ? 1 : -1) * (O.top ? 1 : -1);
|
|
5845
5845
|
t.edgeSign = { x: $, y: $ };
|
|
5846
|
-
} else t.edgeSign = { x:
|
|
5847
|
-
if (h !== !1 && Q(i,
|
|
5846
|
+
} else t.edgeSign = { x: O.left ? -1 : 1, y: O.top ? -1 : 1 };
|
|
5847
|
+
if (h !== !1 && Q(i, O), y != null && y.length) {
|
|
5848
5848
|
var V = new Nn(n.interaction);
|
|
5849
5849
|
V.copyFrom(n.interaction.modification), V.prepareStates(y), t.subModification = V, V.startAll(a({}, n));
|
|
5850
5850
|
}
|
|
5851
5851
|
}, set: function(n) {
|
|
5852
|
-
var t = n.state, o = n.rect, i = n.coords, c = t.linkedEdges, f = Q({}, i), d = t.equalDelta ?
|
|
5852
|
+
var t = n.state, o = n.rect, i = n.coords, c = t.linkedEdges, f = Q({}, i), d = t.equalDelta ? qi : Gi;
|
|
5853
5853
|
if (Q(n.edges, c), d(t, t.xIsPrimaryAxis, i, o), !t.subModification) return null;
|
|
5854
5854
|
var h = Q({}, o);
|
|
5855
5855
|
De(c, h, { x: i.x - f.x, y: i.y - f.y });
|
|
5856
5856
|
var v = t.subModification.setAll(a(a({}, n), {}, { rect: h, edges: c, pageCoords: i, prevCoords: i, prevRect: h })), E = v.delta;
|
|
5857
5857
|
return v.changed && (d(t, Math.abs(E.x) > Math.abs(E.y), v.coords, v.rect), Q(i, v.coords)), v.eventProps;
|
|
5858
5858
|
}, defaults: { ratio: "preserve", equalDelta: !1, modifiers: [], enabled: !1 } };
|
|
5859
|
-
function
|
|
5859
|
+
function qi(n, t, o) {
|
|
5860
5860
|
var i = n.startCoords, c = n.edgeSign;
|
|
5861
5861
|
t ? o.y = i.y + (o.x - i.x) * c.y : o.x = i.x + (o.y - i.y) * c.x;
|
|
5862
5862
|
}
|
|
5863
|
-
function
|
|
5863
|
+
function Gi(n, t, o, i) {
|
|
5864
5864
|
var c = n.startRect, f = n.startCoords, d = n.ratio, h = n.edgeSign;
|
|
5865
5865
|
if (t) {
|
|
5866
5866
|
var v = i.width / d;
|
|
@@ -5870,7 +5870,7 @@ function Sc() {
|
|
|
5870
5870
|
o.x = f.x + (E - c.width) * h.x;
|
|
5871
5871
|
}
|
|
5872
5872
|
}
|
|
5873
|
-
var
|
|
5873
|
+
var Wi = Ke(Ui, "aspectRatio"), eo = function() {
|
|
5874
5874
|
};
|
|
5875
5875
|
eo._defaults = {};
|
|
5876
5876
|
var Vt = eo;
|
|
@@ -5882,8 +5882,8 @@ function Sc() {
|
|
|
5882
5882
|
if (t && h) {
|
|
5883
5883
|
var E = ot(d.restriction, c, f);
|
|
5884
5884
|
if (E) {
|
|
5885
|
-
var y = E.right - E.left - t.width,
|
|
5886
|
-
y < 0 && (v.left += y, v.right += y),
|
|
5885
|
+
var y = E.right - E.left - t.width, O = E.bottom - E.top - t.height;
|
|
5886
|
+
y < 0 && (v.left += y, v.right += y), O < 0 && (v.top += O, v.bottom += O);
|
|
5887
5887
|
}
|
|
5888
5888
|
v.left += o.left - t.width * h.left, v.top += o.top - t.height * h.top, v.right += o.right - t.width * (1 - h.right), v.bottom += o.bottom - t.height * (1 - h.bottom);
|
|
5889
5889
|
}
|
|
@@ -5896,7 +5896,7 @@ function Sc() {
|
|
|
5896
5896
|
}(d);
|
|
5897
5897
|
t.x = Math.max(Math.min(h.right - f.right, t.x), h.left + f.left), t.y = Math.max(Math.min(h.bottom - f.bottom, t.y), h.top + f.top);
|
|
5898
5898
|
}
|
|
5899
|
-
}, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } },
|
|
5899
|
+
}, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, Ki = Ke(Ht, "restrict"), to = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, no = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
|
|
5900
5900
|
function ro(n, t) {
|
|
5901
5901
|
for (var o = 0, i = ["top", "left", "bottom", "right"]; o < i.length; o++) {
|
|
5902
5902
|
var c = i[o];
|
|
@@ -5913,18 +5913,18 @@ function Sc() {
|
|
|
5913
5913
|
var h = Q({}, t), v = ot(d.inner, i, h) || {}, E = ot(d.outer, i, h) || {};
|
|
5914
5914
|
ro(v, to), ro(E, no), o.top ? t.y = Math.min(Math.max(E.top + f.top, h.y), v.top + f.top) : o.bottom && (t.y = Math.max(Math.min(E.bottom + f.bottom, h.y), v.bottom + f.bottom)), o.left ? t.x = Math.min(Math.max(E.left + f.left, h.x), v.left + f.left) : o.right && (t.x = Math.max(Math.min(E.right + f.right, h.x), v.right + f.right));
|
|
5915
5915
|
}
|
|
5916
|
-
}, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } },
|
|
5916
|
+
}, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, Ji = Ke(xt, "restrictEdges"), Zi = Q({ get elementRect() {
|
|
5917
5917
|
return { top: 0, left: 0, bottom: 1, right: 1 };
|
|
5918
5918
|
}, set elementRect(n) {
|
|
5919
|
-
} }, Ht.defaults),
|
|
5919
|
+
} }, Ht.defaults), Qi = Ke({ start: Ht.start, set: Ht.set, defaults: Zi }, "restrictRect"), es = { width: -1 / 0, height: -1 / 0 }, ts = { width: 1 / 0, height: 1 / 0 }, ns = Ke({ start: function(n) {
|
|
5920
5920
|
return xt.start(n);
|
|
5921
5921
|
}, set: function(n) {
|
|
5922
5922
|
var t = n.interaction, o = n.state, i = n.rect, c = n.edges, f = o.options;
|
|
5923
5923
|
if (c) {
|
|
5924
|
-
var d = je(ot(f.min, t, n.coords)) ||
|
|
5924
|
+
var d = je(ot(f.min, t, n.coords)) || es, h = je(ot(f.max, t, n.coords)) || ts;
|
|
5925
5925
|
o.options = { endOnly: f.endOnly, inner: Q({}, xt.noInner), outer: Q({}, xt.noOuter) }, c.top ? (o.options.inner.top = i.bottom - d.height, o.options.outer.top = i.bottom - h.height) : c.bottom && (o.options.inner.bottom = i.top + d.height, o.options.outer.bottom = i.top + h.height), c.left ? (o.options.inner.left = i.right - d.width, o.options.outer.left = i.right - h.width) : c.right && (o.options.inner.right = i.left + d.width, o.options.outer.right = i.left + h.width), xt.set(n), o.options = f;
|
|
5926
5926
|
}
|
|
5927
|
-
}, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"),
|
|
5927
|
+
}, defaults: { min: null, max: null, endOnly: !1, enabled: !1 } }, "restrictSize"), kn = { start: function(n) {
|
|
5928
5928
|
var t, o = n.interaction, i = n.interactable, c = n.element, f = n.rect, d = n.state, h = n.startOffset, v = d.options, E = v.offsetWithOrigin ? function($) {
|
|
5929
5929
|
var V = $.interaction.element, F = Be(Ie($.state.options.origin, null, null, [V])), X = F || $e($.interactable, V, $.interaction.prepared.name);
|
|
5930
5930
|
return X;
|
|
@@ -5934,34 +5934,34 @@ function Sc() {
|
|
|
5934
5934
|
var y = Ie(v.offset, i, c, [o]);
|
|
5935
5935
|
(t = Be(y) || { x: 0, y: 0 }).x += E.x, t.y += E.y;
|
|
5936
5936
|
}
|
|
5937
|
-
var
|
|
5938
|
-
d.offsets = f &&
|
|
5937
|
+
var O = v.relativePoints;
|
|
5938
|
+
d.offsets = f && O && O.length ? O.map(function($, V) {
|
|
5939
5939
|
return { index: V, relativePoint: $, x: h.left - f.width * $.x + t.x, y: h.top - f.height * $.y + t.y };
|
|
5940
5940
|
}) : [{ index: 0, relativePoint: null, x: t.x, y: t.y }];
|
|
5941
5941
|
}, set: function(n) {
|
|
5942
5942
|
var t = n.interaction, o = n.coords, i = n.state, c = i.options, f = i.offsets, d = $e(t.interactable, t.element, t.prepared.name), h = Q({}, o), v = [];
|
|
5943
5943
|
c.offsetWithOrigin || (h.x -= d.x, h.y -= d.y);
|
|
5944
|
-
for (var E = 0, y = f; E < y.length; E++) for (var
|
|
5944
|
+
for (var E = 0, y = f; E < y.length; E++) for (var O = y[E], $ = h.x - O.x, V = h.y - O.y, F = 0, X = c.targets.length; F < X; F++) {
|
|
5945
5945
|
var re = c.targets[F], ee = void 0;
|
|
5946
|
-
(ee = w.func(re) ? re($, V, t._proxy,
|
|
5946
|
+
(ee = w.func(re) ? re($, V, t._proxy, O, F) : re) && v.push({ x: (w.number(ee.x) ? ee.x : $) + O.x, y: (w.number(ee.y) ? ee.y : V) + O.y, range: w.number(ee.range) ? ee.range : c.range, source: re, index: F, offset: O });
|
|
5947
5947
|
}
|
|
5948
5948
|
for (var ce = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, xe = 0; xe < v.length; xe++) {
|
|
5949
|
-
var we = v[xe], fe = we.range, be = we.x - h.x, Me = we.y - h.y,
|
|
5950
|
-
fe === 1 / 0 && ce.inRange && ce.range !== 1 / 0 && (
|
|
5949
|
+
var we = v[xe], fe = we.range, be = we.x - h.x, Me = we.y - h.y, Pe = dt(be, Me), Fe = Pe <= fe;
|
|
5950
|
+
fe === 1 / 0 && ce.inRange && ce.range !== 1 / 0 && (Fe = !1), ce.target && !(Fe ? ce.inRange && fe !== 1 / 0 ? Pe / fe < ce.distance / ce.range : fe === 1 / 0 && ce.range !== 1 / 0 || Pe < ce.distance : !ce.inRange && Pe < ce.distance) || (ce.target = we, ce.distance = Pe, ce.range = fe, ce.inRange = Fe, ce.delta.x = be, ce.delta.y = Me);
|
|
5951
5951
|
}
|
|
5952
5952
|
return ce.inRange && (o.x = ce.target.x, o.y = ce.target.y), i.closest = ce, ce;
|
|
5953
|
-
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } },
|
|
5953
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, rs = Ke(kn, "snap"), Bt = { start: function(n) {
|
|
5954
5954
|
var t = n.state, o = n.edges, i = t.options;
|
|
5955
5955
|
if (!o) return null;
|
|
5956
|
-
n.state = { options: { targets: null, relativePoints: [{ x: o.left ? 0 : 1, y: o.top ? 0 : 1 }], offset: i.offset || "self", origin: { x: 0, y: 0 }, range: i.range } }, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]],
|
|
5956
|
+
n.state = { options: { targets: null, relativePoints: [{ x: o.left ? 0 : 1, y: o.top ? 0 : 1 }], offset: i.offset || "self", origin: { x: 0, y: 0 }, range: i.range } }, t.targetFields = t.targetFields || [["width", "height"], ["x", "y"]], kn.start(n), t.offsets = n.state.offsets, n.state = t;
|
|
5957
5957
|
}, set: function(n) {
|
|
5958
5958
|
var t = n.interaction, o = n.state, i = n.coords, c = o.options, f = o.offsets, d = { x: i.x - f[0].x, y: i.y - f[0].y };
|
|
5959
5959
|
o.options = Q({}, c), o.options.targets = [];
|
|
5960
5960
|
for (var h = 0, v = c.targets || []; h < v.length; h++) {
|
|
5961
5961
|
var E = v[h], y = void 0;
|
|
5962
5962
|
if (y = w.func(E) ? E(d.x, d.y, t) : E) {
|
|
5963
|
-
for (var
|
|
5964
|
-
var V = $[
|
|
5963
|
+
for (var O = 0, $ = o.targetFields; O < $.length; O++) {
|
|
5964
|
+
var V = $[O], F = V[0], X = V[1];
|
|
5965
5965
|
if (F in y || X in y) {
|
|
5966
5966
|
y.x = y[F], y.y = y[X];
|
|
5967
5967
|
break;
|
|
@@ -5970,27 +5970,27 @@ function Sc() {
|
|
|
5970
5970
|
o.options.targets.push(y);
|
|
5971
5971
|
}
|
|
5972
5972
|
}
|
|
5973
|
-
var re =
|
|
5973
|
+
var re = kn.set(n);
|
|
5974
5974
|
return o.options = c, re;
|
|
5975
|
-
}, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } },
|
|
5975
|
+
}, defaults: { range: 1 / 0, targets: null, offset: null, endOnly: !1, enabled: !1 } }, os = Ke(Bt, "snapSize"), Cn = { aspectRatio: Wi, restrictEdges: Ji, restrict: Ki, restrictRect: Qi, restrictSize: ns, snapEdges: Ke({ start: function(n) {
|
|
5976
5976
|
var t = n.edges;
|
|
5977
5977
|
return t ? (n.state.targetFields = n.state.targetFields || [[t.left ? "left" : "right", t.top ? "top" : "bottom"]], Bt.start(n)) : null;
|
|
5978
|
-
}, set: Bt.set, defaults: Q(ut(Bt.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap:
|
|
5978
|
+
}, set: Bt.set, defaults: Q(ut(Bt.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: rs, snapSize: os, spring: Vt, avoid: Vt, transform: Vt, rubberband: Vt }, is = { id: "modifiers", install: function(n) {
|
|
5979
5979
|
var t = n.interactStatic;
|
|
5980
|
-
for (var o in n.usePlugin(Fr), n.usePlugin(
|
|
5980
|
+
for (var o in n.usePlugin(Fr), n.usePlugin(Xi), t.modifiers = Cn, Cn) {
|
|
5981
5981
|
var i = Cn[o], c = i._defaults, f = i._methods;
|
|
5982
5982
|
c._methods = f, n.defaults.perAction[o] = c;
|
|
5983
5983
|
}
|
|
5984
|
-
} },
|
|
5984
|
+
} }, ss = is, oo = function(n) {
|
|
5985
5985
|
N(o, n);
|
|
5986
5986
|
var t = I(o);
|
|
5987
5987
|
function o(i, c, f, d, h, v) {
|
|
5988
5988
|
var E;
|
|
5989
|
-
if (u(this, o), It(
|
|
5989
|
+
if (u(this, o), It(k(E = t.call(this, h)), f), f !== c && It(k(E), c), E.timeStamp = v, E.originalEvent = f, E.type = i, E.pointerId = pt(c), E.pointerType = wr(c), E.target = d, E.currentTarget = null, i === "tap") {
|
|
5990
5990
|
var y = h.getPointerIndex(c);
|
|
5991
5991
|
E.dt = E.timeStamp - h.pointers[y].downTime;
|
|
5992
|
-
var
|
|
5993
|
-
E.double = !!h.prevTap && h.prevTap.type !== "doubletap" && h.prevTap.target === E.target &&
|
|
5992
|
+
var O = E.timeStamp - h.tapTime;
|
|
5993
|
+
E.double = !!h.prevTap && h.prevTap.type !== "doubletap" && h.prevTap.target === E.target && O < 500;
|
|
5994
5994
|
} else i === "doubletap" && (E.dt = c.timeStamp - h.tapTime, E.double = !0);
|
|
5995
5995
|
return E;
|
|
5996
5996
|
}
|
|
@@ -6016,12 +6016,12 @@ function Sc() {
|
|
|
6016
6016
|
n.duplicate || o.pointerIsDown && !o.pointerWasMoved || (o.pointerIsDown && jn(n), Ze({ interaction: o, pointer: i, event: c, eventTarget: f, type: "move" }, t));
|
|
6017
6017
|
}, "interactions:down": function(n, t) {
|
|
6018
6018
|
(function(o, i) {
|
|
6019
|
-
for (var c = o.interaction, f = o.pointer, d = o.event, h = o.eventTarget, v = o.pointerIndex, E = c.pointers[v].hold, y =
|
|
6019
|
+
for (var c = o.interaction, f = o.pointer, d = o.event, h = o.eventTarget, v = o.pointerIndex, E = c.pointers[v].hold, y = Oe(h), O = { interaction: c, pointer: f, event: d, eventTarget: h, type: "hold", targets: [], path: y, node: null }, $ = 0; $ < y.length; $++) {
|
|
6020
6020
|
var V = y[$];
|
|
6021
|
-
|
|
6021
|
+
O.node = V, i.fire("pointerEvents:collect-targets", O);
|
|
6022
6022
|
}
|
|
6023
|
-
if (
|
|
6024
|
-
for (var F = 1 / 0, X = 0, re =
|
|
6023
|
+
if (O.targets.length) {
|
|
6024
|
+
for (var F = 1 / 0, X = 0, re = O.targets; X < re.length; X++) {
|
|
6025
6025
|
var ee = re[X].eventable.options.holdDuration;
|
|
6026
6026
|
ee < F && (F = ee);
|
|
6027
6027
|
}
|
|
@@ -6041,11 +6041,11 @@ function Sc() {
|
|
|
6041
6041
|
function Ze(n, t) {
|
|
6042
6042
|
var o = n.interaction, i = n.pointer, c = n.event, f = n.eventTarget, d = n.type, h = n.targets, v = h === void 0 ? io(n, t) : h, E = new oo(d, i, c, f, o, t.now());
|
|
6043
6043
|
t.fire("pointerEvents:new", { pointerEvent: E });
|
|
6044
|
-
for (var y = { interaction: o, pointer: i, event: c, eventTarget: f, targets: v, type: d, pointerEvent: E },
|
|
6045
|
-
var $ = v[
|
|
6044
|
+
for (var y = { interaction: o, pointer: i, event: c, eventTarget: f, targets: v, type: d, pointerEvent: E }, O = 0; O < v.length; O++) {
|
|
6045
|
+
var $ = v[O];
|
|
6046
6046
|
for (var V in $.props || {}) E[V] = $.props[V];
|
|
6047
6047
|
var F = $e($.eventable, $.node);
|
|
6048
|
-
if (E._subtractOrigin(F), E.eventable = $.eventable, E.currentTarget = $.node, $.eventable.fire(E), E._addOrigin(F), E.immediatePropagationStopped || E.propagationStopped &&
|
|
6048
|
+
if (E._subtractOrigin(F), E.eventable = $.eventable, E.currentTarget = $.node, $.eventable.fire(E), E._addOrigin(F), E.immediatePropagationStopped || E.propagationStopped && O + 1 < v.length && v[O + 1].node !== E.currentTarget) break;
|
|
6049
6049
|
}
|
|
6050
6050
|
if (t.fire("pointerEvents:fired", y), d === "tap") {
|
|
6051
6051
|
var X = E.double ? Ze({ interaction: o, pointer: i, event: c, eventTarget: f, type: "doubletap" }, t) : E;
|
|
@@ -6056,8 +6056,8 @@ function Sc() {
|
|
|
6056
6056
|
function io(n, t) {
|
|
6057
6057
|
var o = n.interaction, i = n.pointer, c = n.event, f = n.eventTarget, d = n.type, h = o.getPointerIndex(i), v = o.pointers[h];
|
|
6058
6058
|
if (d === "tap" && (o.pointerWasMoved || !v || v.downTarget !== f)) return [];
|
|
6059
|
-
for (var E =
|
|
6060
|
-
var $ = E[
|
|
6059
|
+
for (var E = Oe(f), y = { interaction: o, pointer: i, event: c, eventTarget: f, type: d, path: E, targets: [], node: null }, O = 0; O < E.length; O++) {
|
|
6060
|
+
var $ = E[O];
|
|
6061
6061
|
y.node = $, t.fire("pointerEvents:collect-targets", y);
|
|
6062
6062
|
}
|
|
6063
6063
|
return d === "hold" && (y.targets = y.targets.filter(function(V) {
|
|
@@ -6069,17 +6069,17 @@ function Sc() {
|
|
|
6069
6069
|
var t = n.interaction, o = n.pointerIndex, i = t.pointers[o].hold;
|
|
6070
6070
|
i && i.timeout && (clearTimeout(i.timeout), i.timeout = null);
|
|
6071
6071
|
}
|
|
6072
|
-
var
|
|
6073
|
-
function
|
|
6072
|
+
var as = Object.freeze({ __proto__: null, default: bt });
|
|
6073
|
+
function cs(n) {
|
|
6074
6074
|
var t = n.interaction;
|
|
6075
6075
|
t.holdIntervalHandle && (clearInterval(t.holdIntervalHandle), t.holdIntervalHandle = null);
|
|
6076
6076
|
}
|
|
6077
|
-
var
|
|
6077
|
+
var ls = { id: "pointer-events/holdRepeat", install: function(n) {
|
|
6078
6078
|
n.usePlugin(bt);
|
|
6079
6079
|
var t = n.pointerEvents;
|
|
6080
6080
|
t.defaults.holdRepeatInterval = 0, t.types.holdrepeat = n.actions.phaselessTypes.holdrepeat = !0;
|
|
6081
6081
|
}, listeners: ["move", "up", "cancel", "endall"].reduce(function(n, t) {
|
|
6082
|
-
return n["pointerEvents:".concat(t)] =
|
|
6082
|
+
return n["pointerEvents:".concat(t)] = cs, n;
|
|
6083
6083
|
}, { "pointerEvents:new": function(n) {
|
|
6084
6084
|
var t = n.pointerEvent;
|
|
6085
6085
|
t.type === "hold" && (t.count = (t.count || 0) + 1);
|
|
@@ -6091,7 +6091,7 @@ function Sc() {
|
|
|
6091
6091
|
t.pointerEvents.fire({ interaction: o, eventTarget: c, type: "hold", pointer: i, event: i }, t);
|
|
6092
6092
|
}, d));
|
|
6093
6093
|
}
|
|
6094
|
-
} }) },
|
|
6094
|
+
} }) }, us = ls, fs = { id: "pointer-events/interactableTargets", install: function(n) {
|
|
6095
6095
|
var t = n.Interactable;
|
|
6096
6096
|
t.prototype.pointerEvents = function(i) {
|
|
6097
6097
|
return Q(this.events.options, i), this;
|
|
@@ -6115,17 +6115,17 @@ function Sc() {
|
|
|
6115
6115
|
}, "interactable:set": function(n, t) {
|
|
6116
6116
|
var o = n.interactable, i = n.options;
|
|
6117
6117
|
Q(o.events.options, t.pointerEvents.defaults), Q(o.events.options, i.pointerEvents || {});
|
|
6118
|
-
} } },
|
|
6119
|
-
n.usePlugin(
|
|
6120
|
-
} },
|
|
6118
|
+
} } }, ds = fs, ps = { id: "pointer-events", install: function(n) {
|
|
6119
|
+
n.usePlugin(as), n.usePlugin(us), n.usePlugin(ds);
|
|
6120
|
+
} }, hs = ps, gs = { id: "reflow", install: function(n) {
|
|
6121
6121
|
var t = n.Interactable;
|
|
6122
6122
|
n.actions.phases.reflow = !0, t.prototype.reflow = function(o) {
|
|
6123
6123
|
return function(i, c, f) {
|
|
6124
6124
|
for (var d = i.getAllElements(), h = f.window.Promise, v = h ? [] : null, E = function() {
|
|
6125
|
-
var
|
|
6125
|
+
var O = d[y], $ = i.getRect(O);
|
|
6126
6126
|
if (!$) return 1;
|
|
6127
6127
|
var V, F = gt(f.interactions.list, function(ee) {
|
|
6128
|
-
return ee.interacting() && ee.interactable === i && ee.element ===
|
|
6128
|
+
return ee.interacting() && ee.interactable === i && ee.element === O && ee.prepared.name === c.name;
|
|
6129
6129
|
});
|
|
6130
6130
|
if (F) F.move(), v && (V = F._reflowPromise || new h(function(ee) {
|
|
6131
6131
|
F._reflowResolve = ee;
|
|
@@ -6162,11 +6162,11 @@ function Sc() {
|
|
|
6162
6162
|
V = function(ee, ce, xe, we, fe) {
|
|
6163
6163
|
var be = ee.interactions.new({ pointerType: "reflow" }), Me = { interaction: be, event: fe, pointer: fe, eventTarget: xe, phase: "reflow" };
|
|
6164
6164
|
be.interactable = ce, be.element = xe, be.prevEvent = fe, be.updatePointer(fe, fe, xe, !0), vr(be.coords.delta), xn(be.prepared, we), be._doPhase(Me);
|
|
6165
|
-
var
|
|
6165
|
+
var Pe = ee.window, Fe = Pe.Promise, He = Fe ? new Fe(function(Ue) {
|
|
6166
6166
|
be._reflowResolve = Ue;
|
|
6167
6167
|
}) : void 0;
|
|
6168
6168
|
return be._reflowPromise = He, be.start(we, ce, xe), be._interacting ? (be.move(Me), be.end(fe)) : (be.stop(), be._reflowResolve()), be.removePointer(fe, fe), He;
|
|
6169
|
-
}(f, i,
|
|
6169
|
+
}(f, i, O, c, re);
|
|
6170
6170
|
}
|
|
6171
6171
|
v && v.push(V);
|
|
6172
6172
|
}, y = 0; y < d.length && !E(); y++) ;
|
|
@@ -6180,8 +6180,8 @@ function Sc() {
|
|
|
6180
6180
|
o.pointerType === "reflow" && (o._reflowResolve && o._reflowResolve(), function(i, c) {
|
|
6181
6181
|
i.splice(i.indexOf(c), 1);
|
|
6182
6182
|
}(t.interactions.list, o));
|
|
6183
|
-
} } },
|
|
6184
|
-
if (Ae.use(Lr), Ae.use(Yr), Ae.use(
|
|
6183
|
+
} } }, ms = gs;
|
|
6184
|
+
if (Ae.use(Lr), Ae.use(Yr), Ae.use(hs), Ae.use($i), Ae.use(ss), Ae.use(wi), Ae.use(ui), Ae.use(di), Ae.use(ms), Ae.default = Ae, l(e) === "object" && e) try {
|
|
6185
6185
|
e.exports = Ae;
|
|
6186
6186
|
} catch {
|
|
6187
6187
|
}
|
|
@@ -6190,11 +6190,11 @@ function Sc() {
|
|
|
6190
6190
|
}(Wt)), Wt.exports;
|
|
6191
6191
|
}
|
|
6192
6192
|
var Tc = /* @__PURE__ */ Sc();
|
|
6193
|
-
const _c = /* @__PURE__ */
|
|
6193
|
+
const _c = /* @__PURE__ */ Po(Tc);
|
|
6194
6194
|
function Ge(e) {
|
|
6195
6195
|
return e == null ? "" : typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : typeof e == "function" ? e.toString() : e instanceof Date ? e.toISOString() : e instanceof RegExp ? e.toString() : e instanceof Map ? JSON.stringify(Array.from(e.entries())) : e instanceof Set ? JSON.stringify(Array.from(e.values())) : e instanceof WeakMap || e instanceof WeakSet ? "" : e instanceof ArrayBuffer ? e.toString() : Array.isArray(e) ? JSON.stringify(e.map(Ge)) : typeof e == "object" ? JSON.stringify(Object.entries(e).sort(([r], [s]) => r.localeCompare(s))) : "";
|
|
6196
6196
|
}
|
|
6197
|
-
function
|
|
6197
|
+
function Oc(e, {
|
|
6198
6198
|
isEnabled: r = !0,
|
|
6199
6199
|
onDragStart: s,
|
|
6200
6200
|
onDragMove: a,
|
|
@@ -6202,7 +6202,7 @@ function Pc(e, {
|
|
|
6202
6202
|
...u
|
|
6203
6203
|
}) {
|
|
6204
6204
|
const p = Te(s), g = Te(a), m = Te(l);
|
|
6205
|
-
|
|
6205
|
+
xs(() => {
|
|
6206
6206
|
if (!r) return;
|
|
6207
6207
|
const N = e.current;
|
|
6208
6208
|
if (!N) return;
|
|
@@ -6210,15 +6210,15 @@ function Pc(e, {
|
|
|
6210
6210
|
inertia: !0,
|
|
6211
6211
|
...u,
|
|
6212
6212
|
onstart: ({ client: P }) => {
|
|
6213
|
-
const
|
|
6214
|
-
p.current?.(
|
|
6213
|
+
const k = pe.make(P);
|
|
6214
|
+
p.current?.(k);
|
|
6215
6215
|
},
|
|
6216
|
-
onmove: ({ client: P, clientX0:
|
|
6217
|
-
const j = pe.make(
|
|
6216
|
+
onmove: ({ client: P, clientX0: k, clientY0: I, dx: R, dy: b }) => {
|
|
6217
|
+
const j = pe.make(k, I), W = pe.make(P), q = pe.make(R, b);
|
|
6218
6218
|
g.current?.(q, W, j);
|
|
6219
6219
|
},
|
|
6220
|
-
onend: ({ client: P, clientX0:
|
|
6221
|
-
const R = pe.make(
|
|
6220
|
+
onend: ({ client: P, clientX0: k, clientY0: I }) => {
|
|
6221
|
+
const R = pe.make(k, I), b = pe.make(P);
|
|
6222
6222
|
m.current?.(b, R);
|
|
6223
6223
|
}
|
|
6224
6224
|
});
|
|
@@ -6227,7 +6227,7 @@ function Pc(e, {
|
|
|
6227
6227
|
};
|
|
6228
6228
|
}, [r, Ge(u)]);
|
|
6229
6229
|
}
|
|
6230
|
-
function
|
|
6230
|
+
function kt(e, {
|
|
6231
6231
|
initialValue: r,
|
|
6232
6232
|
transform: s,
|
|
6233
6233
|
onDragStart: a,
|
|
@@ -6235,8 +6235,8 @@ function Ot(e, {
|
|
|
6235
6235
|
onDragEnd: u,
|
|
6236
6236
|
...p
|
|
6237
6237
|
}) {
|
|
6238
|
-
const g = Ee(r), [m, N] = Ne(!1), [T, P] = Ne(!1), [
|
|
6239
|
-
return
|
|
6238
|
+
const g = Ee(r), [m, N] = Ne(!1), [T, P] = Ne(!1), [k, I] = Ne(r), R = Te(a), b = Te(l), j = Te(u), W = Te(s);
|
|
6239
|
+
return Oc(e, {
|
|
6240
6240
|
onDragStart: (S) => {
|
|
6241
6241
|
N(!0), P(!1), R.current?.(S);
|
|
6242
6242
|
},
|
|
@@ -6249,18 +6249,18 @@ function Ot(e, {
|
|
|
6249
6249
|
},
|
|
6250
6250
|
...p
|
|
6251
6251
|
}), he(() => {
|
|
6252
|
-
Eo(g,
|
|
6253
|
-
}, [
|
|
6252
|
+
Eo(g, k);
|
|
6253
|
+
}, [k]), {
|
|
6254
6254
|
isDragging: m,
|
|
6255
6255
|
isReleasing: T,
|
|
6256
|
-
value:
|
|
6256
|
+
value: k,
|
|
6257
6257
|
setValue: I
|
|
6258
6258
|
};
|
|
6259
6259
|
}
|
|
6260
6260
|
function Eo(e, r) {
|
|
6261
6261
|
return qe(e.current, r) ? !1 : (e.current = r, !0);
|
|
6262
6262
|
}
|
|
6263
|
-
const
|
|
6263
|
+
const Zo = /* @__PURE__ */ _e(({
|
|
6264
6264
|
angle: e = 0,
|
|
6265
6265
|
speed: r = 1,
|
|
6266
6266
|
src: s,
|
|
@@ -6273,13 +6273,13 @@ const Jo = /* @__PURE__ */ _e(({
|
|
|
6273
6273
|
onLoadImageComplete: N,
|
|
6274
6274
|
onLoadImageError: T,
|
|
6275
6275
|
onImageSizeChange: P,
|
|
6276
|
-
...
|
|
6276
|
+
...k
|
|
6277
6277
|
}, I) => {
|
|
6278
|
-
const R = ve((z, Y, U) => z - Y * r, [r]), b = Ee(null), j = tt(b), W =
|
|
6278
|
+
const R = ve((z, Y, U) => z - Y * r, [r]), b = Ee(null), j = tt(b), W = zo({ src: s }, {
|
|
6279
6279
|
onLoadStart: m,
|
|
6280
6280
|
onLoadComplete: N,
|
|
6281
6281
|
onLoadError: T
|
|
6282
|
-
}), [q, D] = Ne(e), { isDragging: B, value: S, setValue: C } =
|
|
6282
|
+
}), [q, D] = Ne(e), { isDragging: B, value: S, setValue: C } = kt(b, {
|
|
6283
6283
|
initialValue: 0,
|
|
6284
6284
|
transform: R,
|
|
6285
6285
|
onDragStart: p,
|
|
@@ -6287,7 +6287,7 @@ const Jo = /* @__PURE__ */ _e(({
|
|
|
6287
6287
|
});
|
|
6288
6288
|
he(() => {
|
|
6289
6289
|
if (B || !W) return;
|
|
6290
|
-
const z =
|
|
6290
|
+
const z = kc(e, W, ye.size(j), a);
|
|
6291
6291
|
z !== S && C(z), e !== q && D(e);
|
|
6292
6292
|
}, [e, W, j.width, j.height, a]), he(() => {
|
|
6293
6293
|
if (!B || !W) return;
|
|
@@ -6298,11 +6298,11 @@ const Jo = /* @__PURE__ */ _e(({
|
|
|
6298
6298
|
}, [q]), he(() => {
|
|
6299
6299
|
P?.(W);
|
|
6300
6300
|
}, [W?.width, W?.height]);
|
|
6301
|
-
const w =
|
|
6301
|
+
const w = Pc({ src: s, displacement: S });
|
|
6302
6302
|
return /* @__PURE__ */ x.jsx(
|
|
6303
6303
|
"div",
|
|
6304
6304
|
{
|
|
6305
|
-
...
|
|
6305
|
+
...k,
|
|
6306
6306
|
ref: I,
|
|
6307
6307
|
"aria-valuenow": q,
|
|
6308
6308
|
role: "slider",
|
|
@@ -6310,7 +6310,7 @@ const Jo = /* @__PURE__ */ _e(({
|
|
|
6310
6310
|
}
|
|
6311
6311
|
);
|
|
6312
6312
|
});
|
|
6313
|
-
function
|
|
6313
|
+
function Pc({ src: e = "", displacement: r = NaN }) {
|
|
6314
6314
|
return {
|
|
6315
6315
|
body: {
|
|
6316
6316
|
backgroundImage: `url(${e})`,
|
|
@@ -6323,23 +6323,23 @@ function kc({ src: e = "", displacement: r = NaN }) {
|
|
|
6323
6323
|
}
|
|
6324
6324
|
};
|
|
6325
6325
|
}
|
|
6326
|
-
function
|
|
6326
|
+
function Qo(e, r) {
|
|
6327
6327
|
const { width: s, height: a } = e, { height: l } = r;
|
|
6328
|
-
if (a <= 0) return
|
|
6328
|
+
if (a <= 0) return ze.zero;
|
|
6329
6329
|
const p = l / a * s;
|
|
6330
|
-
return
|
|
6330
|
+
return ze.make(p, l);
|
|
6331
6331
|
}
|
|
6332
|
-
function
|
|
6333
|
-
const { width: l } =
|
|
6332
|
+
function kc(e, r, s, a) {
|
|
6333
|
+
const { width: l } = Qo(r, s), { width: u } = s, p = u * a;
|
|
6334
6334
|
return e / 360 * l - p;
|
|
6335
6335
|
}
|
|
6336
6336
|
function Cc(e, r, s, a) {
|
|
6337
|
-
const { width: l } =
|
|
6337
|
+
const { width: l } = Qo(r, s), { width: u } = s, p = u * a;
|
|
6338
6338
|
let g = (e + p) % l / l * 360;
|
|
6339
6339
|
for (; g < 0; ) g += 360;
|
|
6340
6340
|
return g;
|
|
6341
6341
|
}
|
|
6342
|
-
process.env.NODE_ENV !== "production" && (
|
|
6342
|
+
process.env.NODE_ENV !== "production" && (Zo.displayName = "Panorama");
|
|
6343
6343
|
const jc = /* @__PURE__ */ _e(({
|
|
6344
6344
|
className: e,
|
|
6345
6345
|
style: r,
|
|
@@ -6353,7 +6353,7 @@ const jc = /* @__PURE__ */ _e(({
|
|
|
6353
6353
|
zeroAnchor: N = 0,
|
|
6354
6354
|
onAngleChange: T,
|
|
6355
6355
|
onDragEnd: P,
|
|
6356
|
-
onDragStart:
|
|
6356
|
+
onDragStart: k,
|
|
6357
6357
|
onLoadImageComplete: I,
|
|
6358
6358
|
onLoadImageError: R,
|
|
6359
6359
|
onLoadImageStart: b,
|
|
@@ -6369,10 +6369,10 @@ const jc = /* @__PURE__ */ _e(({
|
|
|
6369
6369
|
const _ = Math.min(360, Math.max(0, u ?? (m ? m.width / (m.height * ne) * 360 : 0)));
|
|
6370
6370
|
return S.width * (_ / 360);
|
|
6371
6371
|
}, [m?.width, m?.height, ne, S.width, u])(), A = ve(() => S.width <= 0 ? N : ((S.width - H) * 0.5 + N * H) / S.width, [S.width, H, N])(), J = ve(() => {
|
|
6372
|
-
Y(!0),
|
|
6373
|
-
}, [
|
|
6372
|
+
Y(!0), k?.();
|
|
6373
|
+
}, [k]), Z = ve(() => {
|
|
6374
6374
|
Y(!1), P?.();
|
|
6375
|
-
}, [P]), ae =
|
|
6375
|
+
}, [P]), ae = Le(l, {
|
|
6376
6376
|
track: Kt,
|
|
6377
6377
|
reticle: Qn,
|
|
6378
6378
|
indicator: Zn
|
|
@@ -6386,7 +6386,7 @@ const jc = /* @__PURE__ */ _e(({
|
|
|
6386
6386
|
style: le(r, G.root),
|
|
6387
6387
|
children: [
|
|
6388
6388
|
/* @__PURE__ */ x.jsx(
|
|
6389
|
-
|
|
6389
|
+
Zo,
|
|
6390
6390
|
{
|
|
6391
6391
|
ref: B,
|
|
6392
6392
|
angle: s,
|
|
@@ -6472,32 +6472,32 @@ const $c = /* @__PURE__ */ _e(({
|
|
|
6472
6472
|
orientation: N = "vertical",
|
|
6473
6473
|
range: T,
|
|
6474
6474
|
steps: P = -1,
|
|
6475
|
-
onChange:
|
|
6475
|
+
onChange: k,
|
|
6476
6476
|
...I
|
|
6477
6477
|
}, R) => {
|
|
6478
|
-
const b = Ee(null), j = tt(b), W = Ee(null), q = Ee(null), [D, B] = Ne(T ?? [m, g]), S = Dc(m, g, P), [C, w] = D.map((te) => it(te, m, g, N, j, p, l, a)), z = w - C, Y =
|
|
6478
|
+
const b = Ee(null), j = tt(b), W = Ee(null), q = Ee(null), [D, B] = Ne(T ?? [m, g]), S = Dc(m, g, P), [C, w] = D.map((te) => it(te, m, g, N, j, p, l, a)), z = w - C, Y = Le(e, {
|
|
6479
6479
|
gutter: er,
|
|
6480
6480
|
highlight: tr,
|
|
6481
6481
|
knob: Zt,
|
|
6482
6482
|
knobContainer: zn,
|
|
6483
6483
|
label: Jt
|
|
6484
6484
|
}), U = ve((te, oe, ue) => {
|
|
6485
|
-
const se = N === "horizontal" ? oe : ue, Se = it(m, m, g, N, j, p, l, a),
|
|
6486
|
-
return No(Math.max(Se, Math.min(
|
|
6485
|
+
const se = N === "horizontal" ? oe : ue, Se = it(m, m, g, N, j, p, l, a), Oe = it(D[1], m, g, N, j, p, l, a), me = it(te, m, g, N, j, p, l, a) + se;
|
|
6486
|
+
return No(Math.max(Se, Math.min(Oe, me)), m, g, N, j, p, l, a);
|
|
6487
6487
|
}, [p, l, a, m, g, N, D[1], ye.toString(j)]), ne = ve((te, oe, ue) => {
|
|
6488
|
-
const se = N === "horizontal" ? oe : ue, Se = it(D[0], m, g, N, j, p, l, a),
|
|
6489
|
-
return No(Math.max(Se, Math.min(
|
|
6490
|
-
}, [p, l, a, m, g, N, D[0], ye.toString(j)]), { isDragging: K, isReleasing: H, value: L, setValue: A } =
|
|
6488
|
+
const se = N === "horizontal" ? oe : ue, Se = it(D[0], m, g, N, j, p, l, a), Oe = it(g, m, g, N, j, p, l, a), me = it(te, m, g, N, j, p, l, a) + se;
|
|
6489
|
+
return No(Math.max(Se, Math.min(Oe, me)), m, g, N, j, p, l, a);
|
|
6490
|
+
}, [p, l, a, m, g, N, D[0], ye.toString(j)]), { isDragging: K, isReleasing: H, value: L, setValue: A } = kt(W, {
|
|
6491
6491
|
initialValue: T?.[0] ?? m,
|
|
6492
6492
|
transform: U
|
|
6493
|
-
}), { isDragging: J, isReleasing: Z, value: ae, setValue: G } =
|
|
6493
|
+
}), { isDragging: J, isReleasing: Z, value: ae, setValue: G } = kt(q, {
|
|
6494
6494
|
initialValue: T?.[1] ?? g,
|
|
6495
6495
|
transform: ne
|
|
6496
6496
|
}), _ = Ac({ isDraggingEndKnob: J, isDraggingStartKnob: K, isReleasingEndKnob: Z, isReleasingStartKnob: H }), M = Mc({ orientation: N, highlightLength: z, start: C, knobPadding: u, knobWidth: p, knobHeight: l });
|
|
6497
6497
|
return he(() => {
|
|
6498
6498
|
B([L, ae]);
|
|
6499
6499
|
}, [L, ae]), he(() => {
|
|
6500
|
-
|
|
6500
|
+
k?.(D);
|
|
6501
6501
|
}, [D[0], D[1]]), he(() => {
|
|
6502
6502
|
K || J || Z || qe(T, D) || (B(T ?? [m, g]), A(T?.[0] ?? m), G(T?.[1] ?? g));
|
|
6503
6503
|
}, [T?.[0], T?.[1], K, J, Z]), he(() => {
|
|
@@ -6720,8 +6720,8 @@ const Vc = _e(({
|
|
|
6720
6720
|
onChange: g,
|
|
6721
6721
|
...m
|
|
6722
6722
|
}, N) => {
|
|
6723
|
-
const T =
|
|
6724
|
-
expandIcon:
|
|
6723
|
+
const T = Le(e, {
|
|
6724
|
+
expandIcon: ei,
|
|
6725
6725
|
option: Qt,
|
|
6726
6726
|
toggle: nr
|
|
6727
6727
|
});
|
|
@@ -6738,13 +6738,13 @@ const Vc = _e(({
|
|
|
6738
6738
|
onChange: (P) => g?.(P.target.value),
|
|
6739
6739
|
children: [
|
|
6740
6740
|
u !== void 0 && /* @__PURE__ */ x.jsx(ge, { disabled: !0, hidden: !0, element: T.option ?? /* @__PURE__ */ x.jsx(Qt, {}), value: "", children: u }),
|
|
6741
|
-
l.map((P,
|
|
6741
|
+
l.map((P, k) => /* @__PURE__ */ x.jsx(ge, { element: T.option ?? /* @__PURE__ */ x.jsx(Qt, {}), value: P, children: P }, `${k}-${P}`))
|
|
6742
6742
|
]
|
|
6743
6743
|
}
|
|
6744
6744
|
),
|
|
6745
6745
|
T.expandIcon && /* @__PURE__ */ x.jsx(ge, { element: T.expandIcon, style: Ln.expandIcon })
|
|
6746
6746
|
] });
|
|
6747
|
-
}),
|
|
6747
|
+
}), ei = ({ children: e, style: r, ...s }) => /* @__PURE__ */ x.jsx("figure", { ...s, "aria-hidden": !0, style: le(r, { pointerEvents: "none" }), children: e }), nr = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("select", { ...r, children: e }), Qt = ({ ...e }) => /* @__PURE__ */ x.jsx("option", { ...e }), Ln = {
|
|
6748
6748
|
root: {
|
|
6749
6749
|
alignItems: "center",
|
|
6750
6750
|
display: "flex",
|
|
@@ -6766,7 +6766,7 @@ const Vc = _e(({
|
|
|
6766
6766
|
zIndex: 1
|
|
6767
6767
|
}
|
|
6768
6768
|
};
|
|
6769
|
-
process.env.NODE_ENV !== "production" && (Vc.displayName = "Select",
|
|
6769
|
+
process.env.NODE_ENV !== "production" && (Vc.displayName = "Select", ei.displayName = "SelectExpandIcon", Qt.displayName = "SelectOption", nr.displayName = "SelectToggle");
|
|
6770
6770
|
const Hc = /* @__PURE__ */ _e(({
|
|
6771
6771
|
children: e,
|
|
6772
6772
|
className: r,
|
|
@@ -6816,7 +6816,7 @@ const Bc = /* @__PURE__ */ _e(({
|
|
|
6816
6816
|
orientation: N = "vertical",
|
|
6817
6817
|
position: T = 0,
|
|
6818
6818
|
trackPadding: P = 0,
|
|
6819
|
-
labelProvider:
|
|
6819
|
+
labelProvider: k,
|
|
6820
6820
|
onDragEnd: I,
|
|
6821
6821
|
onDragStart: R,
|
|
6822
6822
|
onChange: b,
|
|
@@ -6853,7 +6853,7 @@ const Bc = /* @__PURE__ */ _e(({
|
|
|
6853
6853
|
default:
|
|
6854
6854
|
console.error(`[etudes::Slider] Invalid orientation: ${N}`);
|
|
6855
6855
|
}
|
|
6856
|
-
}, [q.current, a, l, N]), { isDragging: C, isReleasing: w, value: z, setValue: Y } =
|
|
6856
|
+
}, [q.current, a, l, N]), { isDragging: C, isReleasing: w, value: z, setValue: Y } = kt(D, {
|
|
6857
6857
|
initialValue: T,
|
|
6858
6858
|
transform: B,
|
|
6859
6859
|
onDragStart: R,
|
|
@@ -6866,7 +6866,7 @@ const Bc = /* @__PURE__ */ _e(({
|
|
|
6866
6866
|
}, [z]), he(() => {
|
|
6867
6867
|
C || !m || b?.(z, !0);
|
|
6868
6868
|
}, [C]);
|
|
6869
|
-
const A =
|
|
6869
|
+
const A = Le(e, {
|
|
6870
6870
|
knob: rr,
|
|
6871
6871
|
knobContainer: or,
|
|
6872
6872
|
label: ir,
|
|
@@ -6921,7 +6921,7 @@ const Bc = /* @__PURE__ */ _e(({
|
|
|
6921
6921
|
style: L.knobContainer,
|
|
6922
6922
|
children: /* @__PURE__ */ x.jsxs(ge, { className: ie(H.knob), element: A.knob ?? /* @__PURE__ */ x.jsx(rr, {}), style: le(L.knob), children: [
|
|
6923
6923
|
/* @__PURE__ */ x.jsx("div", { style: L.knobHitBox }),
|
|
6924
|
-
|
|
6924
|
+
k && /* @__PURE__ */ x.jsx(ge, { className: ie(H.label), element: A.label ?? /* @__PURE__ */ x.jsx(ir, {}), style: le(L.label), children: k(z) })
|
|
6925
6925
|
] })
|
|
6926
6926
|
}
|
|
6927
6927
|
)
|
|
@@ -7042,7 +7042,7 @@ const Uc = /* @__PURE__ */ _e(({
|
|
|
7042
7042
|
labelProvider: N,
|
|
7043
7043
|
onlyDispatchesOnDragEnd: T = !1,
|
|
7044
7044
|
orientation: P = "vertical",
|
|
7045
|
-
steps:
|
|
7045
|
+
steps: k = qc(10),
|
|
7046
7046
|
trackPadding: I = 0,
|
|
7047
7047
|
onDragEnd: R,
|
|
7048
7048
|
onDragStart: b,
|
|
@@ -7054,18 +7054,18 @@ const Uc = /* @__PURE__ */ _e(({
|
|
|
7054
7054
|
const ue = l ? Qe(M) : M;
|
|
7055
7055
|
switch (P) {
|
|
7056
7056
|
case "horizontal": {
|
|
7057
|
-
const se = a ? C.width - m : C.width, Se = ue * se + te,
|
|
7058
|
-
return l ? Qe(
|
|
7057
|
+
const se = a ? C.width - m : C.width, Se = ue * se + te, Oe = qt(Se / se);
|
|
7058
|
+
return l ? Qe(Oe) : Oe;
|
|
7059
7059
|
}
|
|
7060
7060
|
case "vertical": {
|
|
7061
|
-
const se = a ? C.height - p : C.height, Se = ue * se + oe,
|
|
7062
|
-
return l ? Qe(
|
|
7061
|
+
const se = a ? C.height - p : C.height, Se = ue * se + oe, Oe = qt(Se / se);
|
|
7062
|
+
return l ? Qe(Oe) : Oe;
|
|
7063
7063
|
}
|
|
7064
7064
|
default:
|
|
7065
7065
|
return console.error(`[etudes::StepSlider] Invalid orientation: ${P}`), NaN;
|
|
7066
7066
|
}
|
|
7067
|
-
}, [C.width, C.height, a, l, m, p, P]), { isDragging: U, isReleasing: ne, value: K, setValue: H } =
|
|
7068
|
-
initialValue: ft(s,
|
|
7067
|
+
}, [C.width, C.height, a, l, m, p, P]), { isDragging: U, isReleasing: ne, value: K, setValue: H } = kt(S, {
|
|
7068
|
+
initialValue: ft(s, k),
|
|
7069
7069
|
transform: Y,
|
|
7070
7070
|
onDragStart: b,
|
|
7071
7071
|
onDragEnd: R
|
|
@@ -7074,21 +7074,21 @@ const Uc = /* @__PURE__ */ _e(({
|
|
|
7074
7074
|
const te = ye.fromViewport();
|
|
7075
7075
|
switch (P) {
|
|
7076
7076
|
case "horizontal": {
|
|
7077
|
-
const oe = (M.clientX + te.left - C.left) / C.width, ue = l ? Qe(oe) : oe, se = _t(ue,
|
|
7077
|
+
const oe = (M.clientX + te.left - C.left) / C.width, ue = l ? Qe(oe) : oe, se = _t(ue, k);
|
|
7078
7078
|
if (se === w) {
|
|
7079
7079
|
const Se = ue > K ? se + 1 : se - 1;
|
|
7080
|
-
z(qt(Se,
|
|
7080
|
+
z(qt(Se, k.length - 1));
|
|
7081
7081
|
} else
|
|
7082
7082
|
z(se);
|
|
7083
7083
|
break;
|
|
7084
7084
|
}
|
|
7085
7085
|
case "vertical": {
|
|
7086
|
-
const oe = (M.clientY + te.top - C.top) / C.height, ue = l ? Qe(oe) : oe, se = _t(ue,
|
|
7086
|
+
const oe = (M.clientY + te.top - C.top) / C.height, ue = l ? Qe(oe) : oe, se = _t(ue, k);
|
|
7087
7087
|
if (se === w) {
|
|
7088
|
-
const Se = ue > K ? se + 1 : se - 1,
|
|
7089
|
-
H(
|
|
7088
|
+
const Se = ue > K ? se + 1 : se - 1, Oe = ft(Se, k);
|
|
7089
|
+
H(Oe), z(qt(Se, k.length - 1));
|
|
7090
7090
|
} else {
|
|
7091
|
-
const Se = ft(se,
|
|
7091
|
+
const Se = ft(se, k);
|
|
7092
7092
|
H(Se), z(se);
|
|
7093
7093
|
}
|
|
7094
7094
|
break;
|
|
@@ -7096,23 +7096,23 @@ const Uc = /* @__PURE__ */ _e(({
|
|
|
7096
7096
|
default:
|
|
7097
7097
|
console.error(`[etudes::StepSlider] Invalid orientation: ${P}`);
|
|
7098
7098
|
}
|
|
7099
|
-
}, [C.width, C.height, K, l, u, P, Ge(
|
|
7099
|
+
}, [C.width, C.height, K, l, u, P, Ge(k)]), A = l ? Qe(K) : K, ae = Gc({ orientation: P, isAtEnd: l ? K === 0 : K === 1, isAtStart: l ? K === 1 : K === 0, isDragging: U, isReleasing: ne }), G = Wc({ orientation: P, naturalPosition: A, isClipped: a, knobPadding: g, knobHeight: p, knobWidth: m, isTrackInteractive: u }), _ = Le(e, {
|
|
7100
7100
|
knob: sr,
|
|
7101
7101
|
knobContainer: ar,
|
|
7102
7102
|
label: cr,
|
|
7103
7103
|
track: tn
|
|
7104
7104
|
});
|
|
7105
7105
|
return he(() => {
|
|
7106
|
-
U || (H(ft(s,
|
|
7107
|
-
}, [s, U, Ge(
|
|
7106
|
+
U || (H(ft(s, k)), z(s));
|
|
7107
|
+
}, [s, U, Ge(k)]), he(() => {
|
|
7108
7108
|
if (U) {
|
|
7109
7109
|
if (T) return;
|
|
7110
|
-
z(_t(K,
|
|
7110
|
+
z(_t(K, k));
|
|
7111
7111
|
} else {
|
|
7112
|
-
const M = _t(K,
|
|
7112
|
+
const M = _t(K, k), te = ft(M, k);
|
|
7113
7113
|
H(te), z(M);
|
|
7114
7114
|
}
|
|
7115
|
-
}, [K, U, T, Ge(
|
|
7115
|
+
}, [K, U, T, Ge(k)]), he(() => {
|
|
7116
7116
|
W?.(K, U);
|
|
7117
7117
|
}, [K, U]), he(() => {
|
|
7118
7118
|
j?.(w, U);
|
|
@@ -7166,7 +7166,7 @@ const Uc = /* @__PURE__ */ _e(({
|
|
|
7166
7166
|
style: le(G.knobContainer),
|
|
7167
7167
|
children: /* @__PURE__ */ x.jsxs(ge, { className: ie(ae.knob), element: _.knob ?? /* @__PURE__ */ x.jsx(sr, {}), style: le(G.knob), children: [
|
|
7168
7168
|
/* @__PURE__ */ x.jsx("div", { style: G.knobHitBox }),
|
|
7169
|
-
|
|
7169
|
+
k && N && /* @__PURE__ */ x.jsx(ge, { className: ie(ae.label), element: _.label ?? /* @__PURE__ */ x.jsx(cr, {}), style: le(G.label), children: N(K, _t(K, k)) })
|
|
7170
7170
|
] })
|
|
7171
7171
|
}
|
|
7172
7172
|
)
|
|
@@ -7311,21 +7311,21 @@ const Kc = /* @__PURE__ */ _e(({
|
|
|
7311
7311
|
onSwipeUp: p,
|
|
7312
7312
|
...g
|
|
7313
7313
|
}, m) => {
|
|
7314
|
-
const [N, T] = Ne(void 0), [P,
|
|
7314
|
+
const [N, T] = Ne(void 0), [P, k] = Ne(void 0), [I, R] = Ne(NaN), b = (D, B) => {
|
|
7315
7315
|
if (isNaN(D) || isNaN(B)) return q();
|
|
7316
7316
|
T(pe.make(D, B));
|
|
7317
7317
|
}, j = (D, B) => {
|
|
7318
7318
|
const S = N;
|
|
7319
7319
|
if (S === void 0) return;
|
|
7320
7320
|
const C = S.x !== D || S.y !== B, w = !isNaN(I);
|
|
7321
|
-
C && (w || R(Date.now()),
|
|
7321
|
+
C && (w || R(Date.now()), k(pe.make(D, B)));
|
|
7322
7322
|
}, W = () => {
|
|
7323
7323
|
const D = I, B = N, S = P;
|
|
7324
7324
|
if (isNaN(D) || B === void 0 || S === void 0) return;
|
|
7325
7325
|
const C = Date.now() - D, w = S.x - B.x, z = S.y - B.y, Y = w / C, U = z / C;
|
|
7326
7326
|
r && (Math.abs(Y) >= s && Math.abs(Y) > Math.abs(U) ? Y > 0 ? u?.() : l?.() : Math.abs(U) >= s && Math.abs(U) > Math.abs(Y) && (U > 0 ? a?.() : p?.())), q();
|
|
7327
7327
|
}, q = () => {
|
|
7328
|
-
T(void 0),
|
|
7328
|
+
T(void 0), k(void 0), R(NaN);
|
|
7329
7329
|
};
|
|
7330
7330
|
return /* @__PURE__ */ x.jsx(
|
|
7331
7331
|
"div",
|
|
@@ -7366,13 +7366,13 @@ const Zc = _e(({
|
|
|
7366
7366
|
onChange: p,
|
|
7367
7367
|
...g
|
|
7368
7368
|
}, m) => {
|
|
7369
|
-
const N =
|
|
7369
|
+
const N = Ee(null), T = Co(N), P = Le(r, {
|
|
7370
7370
|
knob: ur,
|
|
7371
7371
|
track: lr
|
|
7372
|
-
}),
|
|
7373
|
-
return /* @__PURE__ */ x.jsxs("label", { ...g, ref: m, className: ie(e,
|
|
7374
|
-
/* @__PURE__ */ x.jsx("input", { checked: a, style:
|
|
7375
|
-
/* @__PURE__ */ x.jsx(ge, { className:
|
|
7372
|
+
}), k = Qc({ isOn: a }), I = el({ isOn: a, isInverted: s, orientation: l, knobSize: T });
|
|
7373
|
+
return /* @__PURE__ */ x.jsxs("label", { ...g, ref: m, className: ie(e, k.root), style: le(u, I.root), children: [
|
|
7374
|
+
/* @__PURE__ */ x.jsx("input", { checked: a, style: I.input, type: "checkbox", onChange: (R) => p?.(R.target.checked) }),
|
|
7375
|
+
/* @__PURE__ */ x.jsx(ge, { className: k.track, element: P.track ?? /* @__PURE__ */ x.jsx(lr, {}), style: I.track, children: /* @__PURE__ */ x.jsx("div", { style: { position: "relative", width: "100%", height: "100%" }, children: /* @__PURE__ */ x.jsx(ge, { ref: N, className: k.knob, element: P.knob ?? /* @__PURE__ */ x.jsx(ur, {}), style: I.knob }) }) })
|
|
7376
7376
|
] });
|
|
7377
7377
|
}), lr = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e }), ur = ({ children: e, ...r }) => /* @__PURE__ */ x.jsx("div", { ...r, children: e });
|
|
7378
7378
|
function Qc({ isOn: e = !1 }) {
|
|
@@ -7382,14 +7382,14 @@ function Qc({ isOn: e = !1 }) {
|
|
|
7382
7382
|
track: ie({ on: e })
|
|
7383
7383
|
};
|
|
7384
7384
|
}
|
|
7385
|
-
function el({ isOn: e = !1, isInverted: r = !1,
|
|
7385
|
+
function el({ isOn: e = !1, isInverted: r = !1, knobSize: s = ze.zero, orientation: a = "horizontal" }) {
|
|
7386
7386
|
return {
|
|
7387
7387
|
root: {
|
|
7388
7388
|
alignItems: "center",
|
|
7389
7389
|
display: "flex",
|
|
7390
7390
|
justifyContent: "start",
|
|
7391
7391
|
position: "relative",
|
|
7392
|
-
...
|
|
7392
|
+
...a === "horizontal" ? {
|
|
7393
7393
|
flexDirection: "row"
|
|
7394
7394
|
} : {
|
|
7395
7395
|
flexDirection: "column"
|
|
@@ -7405,23 +7405,19 @@ function el({ isOn: e = !1, isInverted: r = !1, orientation: s = "horizontal" })
|
|
|
7405
7405
|
},
|
|
7406
7406
|
knob: {
|
|
7407
7407
|
position: "absolute",
|
|
7408
|
-
...
|
|
7409
|
-
top:
|
|
7408
|
+
...a === "horizontal" ? {
|
|
7409
|
+
top: `calc((100% - ${s.height}px) / 2)`,
|
|
7410
7410
|
...r ? {
|
|
7411
|
-
left: e ?
|
|
7412
|
-
transform: e ? "translateX(0) translateY(-50%)" : "translateX(-100%) translateY(-50%)"
|
|
7411
|
+
left: e ? `calc(100% - ${s.width}px)` : "0"
|
|
7413
7412
|
} : {
|
|
7414
|
-
left: e ? "
|
|
7415
|
-
transform: e ? "translateX(-100%) translateY(-50%)" : "translateX(0) translateY(-50%)"
|
|
7413
|
+
left: e ? "0" : `calc(100% - ${s.width}px)`
|
|
7416
7414
|
}
|
|
7417
7415
|
} : {
|
|
7418
|
-
left:
|
|
7416
|
+
left: `calc((100% - ${s.width}px) / 2)`,
|
|
7419
7417
|
...r ? {
|
|
7420
|
-
top: e ? "0" :
|
|
7421
|
-
transform: e ? "translateX(-50%) translateY(0)" : "translateX(-50%) translateY(-100%)"
|
|
7418
|
+
top: e ? "0" : `calc(100% - ${s.height}px)`
|
|
7422
7419
|
} : {
|
|
7423
|
-
top: e ?
|
|
7424
|
-
transform: e ? "translateX(-50%) translateY(-100%)" : "translateX(-50%) translateY(0)"
|
|
7420
|
+
top: e ? `calc(100% - ${s.height}px)` : "0"
|
|
7425
7421
|
}
|
|
7426
7422
|
}
|
|
7427
7423
|
},
|
|
@@ -7431,14 +7427,14 @@ function el({ isOn: e = !1, isInverted: r = !1, orientation: s = "horizontal" })
|
|
|
7431
7427
|
};
|
|
7432
7428
|
}
|
|
7433
7429
|
process.env.NODE_ENV !== "production" && (Zc.displayName = "Toggle", ur.displayName = "ToggleKnob", lr.displayName = "ToggleTrack");
|
|
7434
|
-
const
|
|
7430
|
+
const ti = /* @__PURE__ */ _e(({
|
|
7435
7431
|
children: e,
|
|
7436
7432
|
...r
|
|
7437
7433
|
}, s) => (Array.isArray(e) && console.error(`[etudes::ExtractChild] Only one child is expected, but found ${e.length}. Only the first child is extracted while the rest are discarded.`), sn.map(e, (a, l) => {
|
|
7438
7434
|
if (!(l > 0))
|
|
7439
7435
|
return an(a) ? pr(a, { ...r, ref: s }) : a;
|
|
7440
7436
|
})));
|
|
7441
|
-
process.env.NODE_ENV !== "production" && (
|
|
7437
|
+
process.env.NODE_ENV !== "production" && (ti.displayName = "ExtractChild");
|
|
7442
7438
|
function tl({
|
|
7443
7439
|
children: e,
|
|
7444
7440
|
className: r,
|
|
@@ -7451,14 +7447,14 @@ function tl({
|
|
|
7451
7447
|
maxWidth: m = 200,
|
|
7452
7448
|
threshold: N = 100
|
|
7453
7449
|
}) {
|
|
7454
|
-
const T = Ee(null), P = Ee(void 0),
|
|
7450
|
+
const T = Ee(null), P = Ee(void 0), k = tt(T), I = ve(() => {
|
|
7455
7451
|
const j = document.createElement("span");
|
|
7456
7452
|
j.className = ie(r), j.innerHTML = g, j.role = "tooltip";
|
|
7457
|
-
const W = a ?? (T.current ? rl(T.current, N) : "tl"), q = nl(j), D = sl({ alignment: W, arrowSize:
|
|
7453
|
+
const W = a ?? (T.current ? rl(T.current, N) : "tl"), q = nl(j), D = sl({ alignment: W, arrowSize: ze.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: q.width, targetWidth: k.width }), B = le(s, D.dialog);
|
|
7458
7454
|
Object.keys(B).forEach((C) => j.style[C] = B[C]);
|
|
7459
7455
|
const S = document.createElement("span");
|
|
7460
7456
|
return Object.keys(D.arrow).forEach((C) => S.style[C] = D.arrow[C]), j.appendChild(S), j;
|
|
7461
|
-
}, [r, a, g, m, Ge(s),
|
|
7457
|
+
}, [r, a, g, m, Ge(s), k.width, N, l, u, p]), R = ve(() => {
|
|
7462
7458
|
P.current && (P.current.style.opacity = "1", P.current.ariaHidden = "false");
|
|
7463
7459
|
}, []), b = ve(() => {
|
|
7464
7460
|
P.current && (P.current.style.opacity = "0", P.current.ariaHidden = "true");
|
|
@@ -7469,7 +7465,7 @@ function tl({
|
|
|
7469
7465
|
T.current?.removeChild(j), P.current = void 0;
|
|
7470
7466
|
};
|
|
7471
7467
|
}, [I]), /* @__PURE__ */ x.jsx(
|
|
7472
|
-
|
|
7468
|
+
ti,
|
|
7473
7469
|
{
|
|
7474
7470
|
ref: T,
|
|
7475
7471
|
onMouseEnter: R,
|
|
@@ -7482,7 +7478,7 @@ function nl(e) {
|
|
|
7482
7478
|
const r = e.cloneNode(!1);
|
|
7483
7479
|
r.innerHTML = e.innerHTML, r.style.visibility = "hidden", r.style.whiteSpace = "pre", document.body.appendChild(r);
|
|
7484
7480
|
const s = r.getBoundingClientRect();
|
|
7485
|
-
return document.body.removeChild(r),
|
|
7481
|
+
return document.body.removeChild(r), ze.make(s.width, s.height);
|
|
7486
7482
|
}
|
|
7487
7483
|
function rl(e, r) {
|
|
7488
7484
|
const s = ye.fromViewport(), a = ye.intersecting(e);
|
|
@@ -7743,10 +7739,10 @@ function wl(e, r, {
|
|
|
7743
7739
|
mapStateToSearchParam: a,
|
|
7744
7740
|
shouldPopulateDefaultState: l = !1
|
|
7745
7741
|
} = {}) {
|
|
7746
|
-
const u = ve((
|
|
7742
|
+
const u = ve((k, I) => s ? s(k) : k || I, [s]), p = ve((k) => a ? a(k) : !l && k === r ? void 0 : `${k}`, [r, l, a]), [g, m] = Es(), N = u(g.get(e) ?? void 0, r), [T, P] = Ne(N);
|
|
7747
7743
|
return he(() => {
|
|
7748
|
-
const
|
|
7749
|
-
I !==
|
|
7744
|
+
const k = g.get(e), I = p(T);
|
|
7745
|
+
I !== k && (I ? g.set(e, I) : g.delete(e), m(g));
|
|
7750
7746
|
}, [T, p]), [T, P];
|
|
7751
7747
|
}
|
|
7752
7748
|
function El(e, {
|
|
@@ -7763,7 +7759,7 @@ function El(e, {
|
|
|
7763
7759
|
return he(() => (r && e >= 0 && p(), u), [r, e, p, u]), { start: p, stop: u };
|
|
7764
7760
|
}
|
|
7765
7761
|
function Nl() {
|
|
7766
|
-
const [e, r] = Ne(
|
|
7762
|
+
const [e, r] = Ne(ze.zero);
|
|
7767
7763
|
return he(() => {
|
|
7768
7764
|
const s = () => {
|
|
7769
7765
|
const a = ye.size(ye.fromViewport());
|
|
@@ -7799,7 +7795,7 @@ function Sl({
|
|
|
7799
7795
|
return console.error("[etudes::Switch] `Switch` must have at least one child"), /* @__PURE__ */ x.jsx(x.Fragment, {});
|
|
7800
7796
|
if (!fl(s))
|
|
7801
7797
|
return console.error("[etudes::Switch] `Switch` children must be of `Case` type or `Default` type"), /* @__PURE__ */ x.jsx(x.Fragment, {});
|
|
7802
|
-
const a = s.filter((u) => u.type ===
|
|
7798
|
+
const a = s.filter((u) => u.type === ni);
|
|
7803
7799
|
if (a.length > 1)
|
|
7804
7800
|
return console.error("[etudes::Switch] `Switch` can only have maximum one `Default` child"), /* @__PURE__ */ x.jsx(x.Fragment, {});
|
|
7805
7801
|
const l = a[0];
|
|
@@ -7815,11 +7811,11 @@ function Sl({
|
|
|
7815
7811
|
function ul({ children: e }) {
|
|
7816
7812
|
return e;
|
|
7817
7813
|
}
|
|
7818
|
-
function
|
|
7814
|
+
function ni({ children: e }) {
|
|
7819
7815
|
return e;
|
|
7820
7816
|
}
|
|
7821
7817
|
function fl(e) {
|
|
7822
|
-
return e.every((r) => an(r) && (r.type === ul || r.type ===
|
|
7818
|
+
return e.every((r) => an(r) && (r.type === ul || r.type === ni));
|
|
7823
7819
|
}
|
|
7824
7820
|
var fr;
|
|
7825
7821
|
((e) => {
|
|
@@ -7837,17 +7833,17 @@ function Tl({ children: e }) {
|
|
|
7837
7833
|
localStorage.setItem("color-scheme", s), document.documentElement.classList.toggle("dark", s === "dark");
|
|
7838
7834
|
}, [s]), /* @__PURE__ */ x.jsx(Ct.Provider, { value: { colorScheme: s, setColorScheme: a }, children: e });
|
|
7839
7835
|
}
|
|
7840
|
-
const Ct =
|
|
7836
|
+
const Ct = Oo(void 0);
|
|
7841
7837
|
function _l() {
|
|
7842
7838
|
const e = cn(Ct);
|
|
7843
7839
|
return e ? e.colorScheme : (console.error("useColorScheme must be used within a ColorSchemeProvider"), "light");
|
|
7844
7840
|
}
|
|
7845
|
-
function
|
|
7841
|
+
function Ol() {
|
|
7846
7842
|
const e = cn(Ct);
|
|
7847
7843
|
return e ? e.setColorScheme : (console.error("useSetColorScheme must be used within a ColorSchemeProvider"), () => {
|
|
7848
7844
|
});
|
|
7849
7845
|
}
|
|
7850
|
-
function
|
|
7846
|
+
function Pl() {
|
|
7851
7847
|
const e = cn(Ct);
|
|
7852
7848
|
return e ? ve(() => {
|
|
7853
7849
|
e.setColorScheme((r) => fr.toggled(r));
|
|
@@ -7855,7 +7851,7 @@ function kl() {
|
|
|
7855
7851
|
});
|
|
7856
7852
|
}
|
|
7857
7853
|
process.env.NODE_ENV !== "production" && (Ct.displayName = "ColorSchemeContext");
|
|
7858
|
-
const
|
|
7854
|
+
const ri = /* @__PURE__ */ Oo(void 0);
|
|
7859
7855
|
function dl({ children: e }) {
|
|
7860
7856
|
const r = Ee(!1), [s, a] = Ne({
|
|
7861
7857
|
minPos: pe.zero,
|
|
@@ -7882,10 +7878,10 @@ function dl({ children: e }) {
|
|
|
7882
7878
|
return window.addEventListener("scroll", u, { passive: !0 }), window.addEventListener("resize", u), window.addEventListener("orientationchange", u), u(), () => {
|
|
7883
7879
|
window.removeEventListener("scroll", u), window.removeEventListener("resize", u), window.removeEventListener("orientationchange", u);
|
|
7884
7880
|
};
|
|
7885
|
-
}, []), /* @__PURE__ */ x.jsx(
|
|
7881
|
+
}, []), /* @__PURE__ */ x.jsx(ri.Provider, { value: s, children: e });
|
|
7886
7882
|
}
|
|
7887
|
-
function
|
|
7888
|
-
const r = cn(
|
|
7883
|
+
function kl(e) {
|
|
7884
|
+
const r = cn(ri);
|
|
7889
7885
|
if (!r)
|
|
7890
7886
|
return console.error("Cannot fetch the current scroll position context, is the corresponding provider instated?"), {
|
|
7891
7887
|
pos: pe.zero,
|
|
@@ -7914,12 +7910,12 @@ function To(e) {
|
|
|
7914
7910
|
}
|
|
7915
7911
|
export {
|
|
7916
7912
|
$s as Accordion,
|
|
7917
|
-
|
|
7918
|
-
|
|
7913
|
+
$o as AccordionCollapseIcon,
|
|
7914
|
+
Io as AccordionExpandIcon,
|
|
7919
7915
|
Fn as AccordionHeader,
|
|
7920
7916
|
Dn as AccordionItem,
|
|
7921
7917
|
uo as AccordionSection,
|
|
7922
|
-
|
|
7918
|
+
Mo as Burger,
|
|
7923
7919
|
rn as BurgerBar,
|
|
7924
7920
|
Fs as BurgerButton,
|
|
7925
7921
|
Ds as BurgerButtonBar,
|
|
@@ -7927,7 +7923,7 @@ export {
|
|
|
7927
7923
|
Ws as Carousel,
|
|
7928
7924
|
ul as Case,
|
|
7929
7925
|
hr as Collection,
|
|
7930
|
-
|
|
7926
|
+
Pt as CollectionItem,
|
|
7931
7927
|
fr as ColorScheme,
|
|
7932
7928
|
Ct as ColorSchemeContext,
|
|
7933
7929
|
Tl as ColorSchemeProvider,
|
|
@@ -7937,29 +7933,29 @@ export {
|
|
|
7937
7933
|
Yn as CounterSubtractButton,
|
|
7938
7934
|
Hn as CounterTextField,
|
|
7939
7935
|
ra as CoverImage,
|
|
7940
|
-
|
|
7941
|
-
|
|
7936
|
+
Fo as CoverImageContent,
|
|
7937
|
+
Do as CoverImageViewport,
|
|
7942
7938
|
aa as CoverVideo,
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7939
|
+
Ho as CoverVideoContent,
|
|
7940
|
+
Bo as CoverVideoViewport,
|
|
7941
|
+
ni as Default,
|
|
7946
7942
|
ca as Dial,
|
|
7947
7943
|
Un as DialKnob,
|
|
7948
7944
|
Xn as DialTrack,
|
|
7949
7945
|
fa as Dropdown,
|
|
7950
|
-
|
|
7946
|
+
Yo as DropdownCollapseIcon,
|
|
7951
7947
|
qn as DropdownCollection,
|
|
7952
|
-
|
|
7948
|
+
Xo as DropdownExpandIcon,
|
|
7953
7949
|
Gn as DropdownItem,
|
|
7954
7950
|
Wn as DropdownToggle,
|
|
7955
7951
|
ln as Each,
|
|
7956
|
-
|
|
7952
|
+
ti as ExtractChild,
|
|
7957
7953
|
ll as ExtractChildren,
|
|
7958
7954
|
vc as FlatSVG,
|
|
7959
|
-
|
|
7955
|
+
Lo as Image,
|
|
7960
7956
|
yc as MasonryGrid,
|
|
7961
7957
|
Ec as OptionButton,
|
|
7962
|
-
|
|
7958
|
+
Zo as Panorama,
|
|
7963
7959
|
jc as PanoramaSlider,
|
|
7964
7960
|
Zn as PanoramaSliderIndicator,
|
|
7965
7961
|
Qn as PanoramaSliderReticle,
|
|
@@ -7971,10 +7967,10 @@ export {
|
|
|
7971
7967
|
zn as RangeSliderKnobContainer,
|
|
7972
7968
|
Jt as RangeSliderLabel,
|
|
7973
7969
|
Vn as Repeat,
|
|
7974
|
-
|
|
7970
|
+
ri as ScrollPositionContext,
|
|
7975
7971
|
dl as ScrollPositionProvider,
|
|
7976
7972
|
Vc as Select,
|
|
7977
|
-
|
|
7973
|
+
ei as SelectExpandIcon,
|
|
7978
7974
|
Qt as SelectOption,
|
|
7979
7975
|
nr as SelectToggle,
|
|
7980
7976
|
Hc as SelectableButton,
|
|
@@ -7991,14 +7987,14 @@ export {
|
|
|
7991
7987
|
Kc as SwipeRegion,
|
|
7992
7988
|
Sl as Switch,
|
|
7993
7989
|
Jc as TextArea,
|
|
7994
|
-
|
|
7990
|
+
Ro as TextField,
|
|
7995
7991
|
Zc as Toggle,
|
|
7996
7992
|
ur as ToggleKnob,
|
|
7997
7993
|
lr as ToggleTrack,
|
|
7998
|
-
|
|
7994
|
+
Vo as Video,
|
|
7999
7995
|
tl as WithTooltip,
|
|
8000
7996
|
ml as asClassNameDict,
|
|
8001
|
-
|
|
7997
|
+
Le as asComponentDict,
|
|
8002
7998
|
gl as asStyleDict,
|
|
8003
7999
|
pr as cloneStyledElement,
|
|
8004
8000
|
Ge as createKey,
|
|
@@ -8010,9 +8006,9 @@ export {
|
|
|
8010
8006
|
qs as useDrag,
|
|
8011
8007
|
yl as useDropzone,
|
|
8012
8008
|
ta as useImageLoader,
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8009
|
+
zo as useImageSize,
|
|
8010
|
+
Oc as useInertiaDrag,
|
|
8011
|
+
kt as useInertiaDragValue,
|
|
8016
8012
|
Gs as useInterval,
|
|
8017
8013
|
xl as useKeyboardShortcut,
|
|
8018
8014
|
Te as useLatest,
|
|
@@ -8020,13 +8016,13 @@ export {
|
|
|
8020
8016
|
bl as usePosition,
|
|
8021
8017
|
Qs as usePrevious,
|
|
8022
8018
|
tt as useRect,
|
|
8023
|
-
|
|
8019
|
+
kl as useScrollPosition,
|
|
8024
8020
|
wl as useSearchState,
|
|
8025
|
-
|
|
8026
|
-
|
|
8021
|
+
Ol as useSetColorScheme,
|
|
8022
|
+
Co as useSize,
|
|
8027
8023
|
dr as useSizeObserver,
|
|
8028
8024
|
El as useTimeout,
|
|
8029
|
-
|
|
8025
|
+
Pl as useToggleColorScheme,
|
|
8030
8026
|
oa as useVideoMetadataLoader,
|
|
8031
8027
|
ia as useVideoSize,
|
|
8032
8028
|
Nl as useViewportSize
|