etudes 10.1.0 → 10.2.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 +458 -454
- package/build/etudes.umd.cjs +8 -8
- package/build/hooks/useDropZone.d.ts +7 -0
- package/build/hooks/useSearchParamState.d.ts +6 -1
- package/package.json +1 -1
package/build/etudes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Oo, { useState as ke, useEffect as he, useRef as Te, Fragment as ti, Children as
|
|
1
|
+
import Oo, { useState as ke, useEffect as he, useRef as Te, Fragment as ti, Children as On, isValidElement as An, cloneElement as Ao, forwardRef as Se, useCallback as wr, createContext as Mo, useContext as Co } from "react";
|
|
2
2
|
import { Link as Io, NavLink as $o, useSearchParams as _o } from "react-router";
|
|
3
3
|
function ni(r) {
|
|
4
4
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -13,10 +13,10 @@ var Lt = { exports: {} }, xt = {};
|
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
16
|
+
var Er;
|
|
17
17
|
function jo() {
|
|
18
|
-
if (
|
|
19
|
-
|
|
18
|
+
if (Er) return xt;
|
|
19
|
+
Er = 1;
|
|
20
20
|
var r = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
21
21
|
function s(c, l, u) {
|
|
22
22
|
var p = null;
|
|
@@ -45,13 +45,13 @@ var wt = {};
|
|
|
45
45
|
* This source code is licensed under the MIT license found in the
|
|
46
46
|
* LICENSE file in the root directory of this source tree.
|
|
47
47
|
*/
|
|
48
|
-
var
|
|
48
|
+
var Tr;
|
|
49
49
|
function Ro() {
|
|
50
|
-
return
|
|
50
|
+
return Tr || (Tr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
51
|
function r(k) {
|
|
52
52
|
if (k == null) return null;
|
|
53
53
|
if (typeof k == "function")
|
|
54
|
-
return k.$$typeof ===
|
|
54
|
+
return k.$$typeof === X ? null : k.displayName || k.name || null;
|
|
55
55
|
if (typeof k == "string") return k;
|
|
56
56
|
switch (k) {
|
|
57
57
|
case B:
|
|
@@ -75,7 +75,7 @@ function Ro() {
|
|
|
75
75
|
return "Portal";
|
|
76
76
|
case j:
|
|
77
77
|
return (k.displayName || "Context") + ".Provider";
|
|
78
|
-
case
|
|
78
|
+
case V:
|
|
79
79
|
return (k._context.displayName || "Context") + ".Consumer";
|
|
80
80
|
case Y:
|
|
81
81
|
var J = k.render;
|
|
@@ -137,7 +137,7 @@ function Ro() {
|
|
|
137
137
|
}
|
|
138
138
|
function g(k, J) {
|
|
139
139
|
function be() {
|
|
140
|
-
|
|
140
|
+
C || (C = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
142
|
J
|
|
143
143
|
));
|
|
@@ -155,7 +155,7 @@ function Ro() {
|
|
|
155
155
|
}
|
|
156
156
|
function x(k, J, be, xe, Pe, pe, oe, te) {
|
|
157
157
|
return be = pe.ref, k = {
|
|
158
|
-
$$typeof:
|
|
158
|
+
$$typeof: M,
|
|
159
159
|
type: k,
|
|
160
160
|
key: J,
|
|
161
161
|
props: pe,
|
|
@@ -236,9 +236,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
function N(k) {
|
|
239
|
-
typeof k == "object" && k !== null && k.$$typeof ===
|
|
239
|
+
typeof k == "object" && k !== null && k.$$typeof === M && k._store && (k._store.validated = 1);
|
|
240
240
|
}
|
|
241
|
-
var O = Oo,
|
|
241
|
+
var O = Oo, M = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), B = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), j = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), U = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), re = Symbol.for("react.lazy"), ie = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), ee = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, L = Array.isArray, R = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
O = {
|
|
@@ -246,7 +246,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
246
246
|
return k();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var
|
|
249
|
+
var C, z = {}, G = O["react-stack-bottom-frame"].bind(
|
|
250
250
|
O,
|
|
251
251
|
u
|
|
252
252
|
)(), Z = R(c(u)), Q = {};
|
|
@@ -277,9 +277,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
277
277
|
};
|
|
278
278
|
}()), wt;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
280
|
+
var Sr;
|
|
281
281
|
function zo() {
|
|
282
|
-
return
|
|
282
|
+
return Sr || (Sr = 1, process.env.NODE_ENV === "production" ? Lt.exports = /* @__PURE__ */ jo() : Lt.exports = /* @__PURE__ */ Ro()), Lt.exports;
|
|
283
283
|
}
|
|
284
284
|
var S = /* @__PURE__ */ zo();
|
|
285
285
|
function ri(r) {
|
|
@@ -295,9 +295,9 @@ function ue() {
|
|
|
295
295
|
for (var r, n, s = 0, c = "", l = arguments.length; s < l; s++) (r = arguments[s]) && (n = ri(r)) && (c && (c += " "), c += n);
|
|
296
296
|
return c;
|
|
297
297
|
}
|
|
298
|
-
var gn,
|
|
298
|
+
var gn, Nr;
|
|
299
299
|
function Lo() {
|
|
300
|
-
return
|
|
300
|
+
return Nr || (Nr = 1, gn = function r(n, s) {
|
|
301
301
|
if (n === s) return !0;
|
|
302
302
|
if (n && s && typeof n == "object" && typeof s == "object") {
|
|
303
303
|
if (n.constructor !== s.constructor) return !1;
|
|
@@ -967,7 +967,7 @@ class se {
|
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function Mn(r, { onResize: n } = {}, s = []) {
|
|
971
971
|
const c = Te(void 0);
|
|
972
972
|
he(() => (c.current = new ResizeObserver(() => {
|
|
973
973
|
const l = r.current;
|
|
@@ -981,7 +981,7 @@ function Ho(r) {
|
|
|
981
981
|
const u = se.from(l);
|
|
982
982
|
u && s(u);
|
|
983
983
|
};
|
|
984
|
-
return
|
|
984
|
+
return Mn(r, {
|
|
985
985
|
onResize: (l) => c(l)
|
|
986
986
|
}), n.size;
|
|
987
987
|
}
|
|
@@ -995,7 +995,7 @@ function Za({ children: r, if: n }) {
|
|
|
995
995
|
return console.error(`[etudes::Conditional] The type of provided condition ${n} is not supported.`), /* @__PURE__ */ S.jsx(S.Fragment, {});
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function Cn({
|
|
999
999
|
in: r,
|
|
1000
1000
|
children: n,
|
|
1001
1001
|
render: s
|
|
@@ -1009,8 +1009,8 @@ function Qa(r) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
function He(r, n = {}) {
|
|
1011
1011
|
const s = Object.keys(n), c = Object.values(n), l = {};
|
|
1012
|
-
return
|
|
1013
|
-
if (!
|
|
1012
|
+
return On.forEach(r, (u) => {
|
|
1013
|
+
if (!An(u)) throw Error("Invalid child detected");
|
|
1014
1014
|
const p = c.indexOf(u.type);
|
|
1015
1015
|
if (p < 0) throw Error(`Unsupported child, only the following children are allowed: ${c}`);
|
|
1016
1016
|
const g = s[p];
|
|
@@ -1036,8 +1036,8 @@ function Ne(r, n = {}, ...s) {
|
|
|
1036
1036
|
function Ut(r) {
|
|
1037
1037
|
return r == null ? "" : typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? String(r) : typeof r == "function" ? r.toString() : r instanceof Date ? r.toISOString() : r instanceof RegExp ? r.toString() : r instanceof Map ? JSON.stringify(Array.from(r.entries())) : r instanceof Set ? JSON.stringify(Array.from(r.values())) : r instanceof WeakMap || r instanceof WeakSet ? "" : r instanceof ArrayBuffer ? r.toString() : Array.isArray(r) ? JSON.stringify(r.map(Ut)) : typeof r == "object" ? JSON.stringify(Object.entries(r).sort(([n], [s]) => n.localeCompare(s))) : "";
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return r == null ? "" : Array.isArray(r) ? JSON.stringify(r.map(
|
|
1039
|
+
function Pr(r) {
|
|
1040
|
+
return r == null ? "" : Array.isArray(r) ? JSON.stringify(r.map(Pr)) : typeof r == "object" ? JSON.stringify(Object.entries(r).sort(([n], [s]) => n.localeCompare(s)).map(([n, s]) => [n, Pr(s)])) : Ut(r);
|
|
1041
1041
|
}
|
|
1042
1042
|
function le(...r) {
|
|
1043
1043
|
return r.reduce((n, s) => ({
|
|
@@ -1048,17 +1048,17 @@ function le(...r) {
|
|
|
1048
1048
|
const Vo = /* @__PURE__ */ Se(({
|
|
1049
1049
|
children: r,
|
|
1050
1050
|
...n
|
|
1051
|
-
}, s) => (Array.isArray(r) && console.error(`[etudes::ExtractChild] Only one child is expected, but found ${r.length}. Only the first child is extracted while the rest are discarded.`), /* @__PURE__ */ S.jsx(S.Fragment, { children:
|
|
1051
|
+
}, s) => (Array.isArray(r) && console.error(`[etudes::ExtractChild] Only one child is expected, but found ${r.length}. Only the first child is extracted while the rest are discarded.`), /* @__PURE__ */ S.jsx(S.Fragment, { children: On.map(r, (c, l) => {
|
|
1052
1052
|
if (!(l > 0))
|
|
1053
|
-
return
|
|
1053
|
+
return An(c) ? Ne(c, { ...n, ref: s }) : c;
|
|
1054
1054
|
}) })));
|
|
1055
1055
|
function tc({
|
|
1056
1056
|
children: r,
|
|
1057
1057
|
...n
|
|
1058
1058
|
}) {
|
|
1059
|
-
return /* @__PURE__ */ S.jsx(S.Fragment, { children:
|
|
1059
|
+
return /* @__PURE__ */ S.jsx(S.Fragment, { children: On.map(r, (s) => An(s) ? Ne(s, { ...n }) : s) });
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function kr({
|
|
1062
1062
|
count: r = 1,
|
|
1063
1063
|
children: n,
|
|
1064
1064
|
render: s
|
|
@@ -1079,61 +1079,61 @@ const ii = /* @__PURE__ */ Se(({
|
|
|
1079
1079
|
selectionMode: w = "none",
|
|
1080
1080
|
onActivateAt: N,
|
|
1081
1081
|
onDeselectAt: O,
|
|
1082
|
-
onCustomEvent:
|
|
1082
|
+
onCustomEvent: M,
|
|
1083
1083
|
onSelectAt: _,
|
|
1084
1084
|
onSelectionChange: B,
|
|
1085
1085
|
ItemComponent: W,
|
|
1086
1086
|
...D
|
|
1087
|
-
},
|
|
1088
|
-
const j = (
|
|
1089
|
-
U(
|
|
1090
|
-
}, T = (
|
|
1091
|
-
if (U(
|
|
1087
|
+
}, V) => {
|
|
1088
|
+
const j = (C) => !!(isNaN(C) || C >= u.length || C < 0), Y = (C) => Or(C).filter((z) => !j(z)), U = (C) => ee.indexOf(C) >= 0, H = (C) => {
|
|
1089
|
+
U(C) ? re(C) : T(C);
|
|
1090
|
+
}, T = (C) => {
|
|
1091
|
+
if (U(C)) return;
|
|
1092
1092
|
let z;
|
|
1093
1093
|
switch (w) {
|
|
1094
1094
|
case "multiple": {
|
|
1095
|
-
z = (Z) =>
|
|
1095
|
+
z = (Z) => Or([...Z.filter((Q) => Q !== C), C]);
|
|
1096
1096
|
break;
|
|
1097
1097
|
}
|
|
1098
1098
|
case "single": {
|
|
1099
|
-
z = (Z) => [
|
|
1099
|
+
z = (Z) => [C];
|
|
1100
1100
|
break;
|
|
1101
1101
|
}
|
|
1102
1102
|
default:
|
|
1103
1103
|
return;
|
|
1104
1104
|
}
|
|
1105
1105
|
const G = z(ee);
|
|
1106
|
-
L.current = G,
|
|
1107
|
-
}, re = (
|
|
1108
|
-
if (!U(
|
|
1109
|
-
const G = ((Z) => Z.filter((Q) => Q !==
|
|
1110
|
-
L.current = G,
|
|
1111
|
-
}, ie = (
|
|
1112
|
-
N?.(
|
|
1113
|
-
},
|
|
1114
|
-
if (Ge(
|
|
1115
|
-
const G =
|
|
1106
|
+
L.current = G, X(ee, G);
|
|
1107
|
+
}, re = (C) => {
|
|
1108
|
+
if (!U(C)) return;
|
|
1109
|
+
const G = ((Z) => Z.filter((Q) => Q !== C))(ee);
|
|
1110
|
+
L.current = G, X(ee, G);
|
|
1111
|
+
}, ie = (C) => {
|
|
1112
|
+
N?.(C), w !== "none" && (s ? H(C) : T(C));
|
|
1113
|
+
}, X = (C, z) => {
|
|
1114
|
+
if (Ge(C, z)) return;
|
|
1115
|
+
const G = C?.filter((Q) => z.indexOf(Q) === -1) ?? [], Z = z.filter((Q) => C?.indexOf(Q) === -1);
|
|
1116
1116
|
G.forEach((Q) => O?.(Q)), Z.forEach((Q) => _?.(Q)), B?.(z);
|
|
1117
1117
|
}, ee = Y(x ?? []), q = Xo({ itemLength: c, itemPadding: l, layout: p, numSegments: g, orientation: m }), L = Te(void 0), R = L.current;
|
|
1118
1118
|
return he(() => {
|
|
1119
|
-
L.current = ee, R !== void 0 &&
|
|
1119
|
+
L.current = ee, R !== void 0 && X(R, ee);
|
|
1120
1120
|
}, [Ut(ee)]), /* @__PURE__ */ S.jsx(
|
|
1121
1121
|
"div",
|
|
1122
1122
|
{
|
|
1123
1123
|
...D,
|
|
1124
|
-
ref:
|
|
1124
|
+
ref: V,
|
|
1125
1125
|
"aria-multiselectable": w === "multiple",
|
|
1126
1126
|
className: ue(r),
|
|
1127
1127
|
role: p === "grid" ? "grid" : w === "none" ? "list" : "listbox",
|
|
1128
1128
|
style: le(n, q.root),
|
|
1129
|
-
children: W && /* @__PURE__ */ S.jsx(
|
|
1129
|
+
children: W && /* @__PURE__ */ S.jsx(Cn, { in: u, children: (C, z) => /* @__PURE__ */ S.jsx(
|
|
1130
1130
|
W,
|
|
1131
1131
|
{
|
|
1132
1132
|
"aria-selected": U(z),
|
|
1133
1133
|
className: ue({ selected: U(z) }),
|
|
1134
1134
|
index: z,
|
|
1135
1135
|
isSelected: U(z),
|
|
1136
|
-
item:
|
|
1136
|
+
item: C,
|
|
1137
1137
|
orientation: m,
|
|
1138
1138
|
role: p === "grid" ? "gridcell" : w === "none" ? "listitem" : "option",
|
|
1139
1139
|
style: le(q.item, {
|
|
@@ -1149,13 +1149,13 @@ const ii = /* @__PURE__ */ Se(({
|
|
|
1149
1149
|
}
|
|
1150
1150
|
}),
|
|
1151
1151
|
onClick: () => ie(z),
|
|
1152
|
-
onCustomEvent: (G, Z) =>
|
|
1152
|
+
onCustomEvent: (G, Z) => M?.(z, G, Z)
|
|
1153
1153
|
}
|
|
1154
1154
|
) })
|
|
1155
1155
|
}
|
|
1156
1156
|
);
|
|
1157
1157
|
});
|
|
1158
|
-
function
|
|
1158
|
+
function Or(r) {
|
|
1159
1159
|
return r.sort((n, s) => n - s);
|
|
1160
1160
|
}
|
|
1161
1161
|
function Xo({ itemLength: r = NaN, itemPadding: n = 0, layout: s = "collection", numSegments: c = 1, orientation: l = "vertical" }) {
|
|
@@ -1212,12 +1212,12 @@ const nc = /* @__PURE__ */ Se(({
|
|
|
1212
1212
|
onCollapseSectionAt: w,
|
|
1213
1213
|
onDeselectAt: N,
|
|
1214
1214
|
onExpandedSectionsChange: O,
|
|
1215
|
-
onExpandSectionAt:
|
|
1215
|
+
onExpandSectionAt: M,
|
|
1216
1216
|
onHeaderCustomEvent: _,
|
|
1217
1217
|
onItemCustomEvent: B,
|
|
1218
1218
|
onSelectAt: W,
|
|
1219
1219
|
onSelectionChange: D,
|
|
1220
|
-
HeaderComponent:
|
|
1220
|
+
HeaderComponent: V,
|
|
1221
1221
|
ItemComponent: j,
|
|
1222
1222
|
...Y
|
|
1223
1223
|
}, U) => {
|
|
@@ -1225,7 +1225,7 @@ const nc = /* @__PURE__ */ Se(({
|
|
|
1225
1225
|
if (H(te)) return !0;
|
|
1226
1226
|
const ae = p[te].items;
|
|
1227
1227
|
return oe >= ae.length || oe < 0;
|
|
1228
|
-
}, re = (oe, te) => (Z[te]?.indexOf(oe) ?? -1) >= 0, ie = (oe) => Ft(oe).filter((te) => !H(te)),
|
|
1228
|
+
}, re = (oe, te) => (Z[te]?.indexOf(oe) ?? -1) >= 0, ie = (oe) => Ft(oe).filter((te) => !H(te)), X = (oe) => {
|
|
1229
1229
|
const te = {};
|
|
1230
1230
|
for (const ae in p) {
|
|
1231
1231
|
if (!Object.hasOwn(p, ae)) continue;
|
|
@@ -1235,7 +1235,7 @@ const nc = /* @__PURE__ */ Se(({
|
|
|
1235
1235
|
return te;
|
|
1236
1236
|
}, ee = (oe) => Q.indexOf(oe) >= 0, q = (oe) => {
|
|
1237
1237
|
let te;
|
|
1238
|
-
ee(oe) ? te = (ae) => ae.filter((A) => A !== oe) : s ? te = (ae) => [oe] : te = (ae) => [...ae.filter((A) => A !== oe), oe],
|
|
1238
|
+
ee(oe) ? te = (ae) => ae.filter((A) => A !== oe) : s ? te = (ae) => [oe] : te = (ae) => [...ae.filter((A) => A !== oe), oe], C(Q, te(Q));
|
|
1239
1239
|
}, L = (oe, te) => {
|
|
1240
1240
|
if (re(oe, te)) return;
|
|
1241
1241
|
let ae;
|
|
@@ -1263,10 +1263,10 @@ const nc = /* @__PURE__ */ Se(({
|
|
|
1263
1263
|
[te]: (ge[te] ?? []).filter((we) => we !== oe)
|
|
1264
1264
|
}))(Z);
|
|
1265
1265
|
J.current = A, z(Z, A);
|
|
1266
|
-
},
|
|
1266
|
+
}, C = (oe, te) => {
|
|
1267
1267
|
if (Ge(oe, te)) return;
|
|
1268
1268
|
const ae = oe?.filter((ge) => te.indexOf(ge) === -1) ?? [], A = te.filter((ge) => oe?.indexOf(ge) === -1);
|
|
1269
|
-
ae.forEach((ge) => w?.(ge)), A.forEach((ge) =>
|
|
1269
|
+
ae.forEach((ge) => w?.(ge)), A.forEach((ge) => M?.(ge)), O?.(te);
|
|
1270
1270
|
}, z = (oe, te) => {
|
|
1271
1271
|
if (Ge(oe, te)) return;
|
|
1272
1272
|
const ae = p.length;
|
|
@@ -1276,14 +1276,14 @@ const nc = /* @__PURE__ */ Se(({
|
|
|
1276
1276
|
A = [...A, ...Le.map((Ce) => [Ce, we])], ge = [...ge, ...Ve.map((Ce) => [Ce, we])];
|
|
1277
1277
|
}
|
|
1278
1278
|
A.forEach((we) => N?.(we[0], we[1])), ge.forEach((we) => W?.(we[0], we[1])), D?.(te);
|
|
1279
|
-
}, G = Bo(), Z =
|
|
1279
|
+
}, G = Bo(), Z = X(g ?? {}), Q = ie(c ?? []), k = Do({ orientation: l }), J = Te(void 0), be = J.current, xe = p.map(() => Te(null)), Pe = xe.map((oe) => Ho(oe)), pe = He(r, {
|
|
1280
1280
|
collapseIcon: Wo,
|
|
1281
1281
|
expandIcon: Uo,
|
|
1282
|
-
header:
|
|
1282
|
+
header: Ar
|
|
1283
1283
|
});
|
|
1284
1284
|
return he(() => {
|
|
1285
1285
|
J.current = Z, be !== void 0 && z(be, Z);
|
|
1286
|
-
}, [Ut(Z)]), /* @__PURE__ */ S.jsx("div", { ...Y, ref: U, style: le(n, k.root), children: /* @__PURE__ */ S.jsx(
|
|
1286
|
+
}, [Ut(Z)]), /* @__PURE__ */ S.jsx("div", { ...Y, ref: U, style: le(n, k.root), children: /* @__PURE__ */ S.jsx(Cn, { in: p, children: (oe, te) => {
|
|
1287
1287
|
const { collectionPadding: ae = 0, items: A, itemLength: ge = 50, itemPadding: we = 0, isSelectionTogglable: Ie, layout: Ue = "list", maxVisible: Le = -1, numSegments: Ve = 1 } = oe, Ce = Ue === "list" ? A.length : Math.ceil(A.length / Ve), ut = Le < 0 ? Ce : Math.min(Ce, Le), Xe = ge * ut + we * (ut - 1), $e = !ee(te), Be = Pe[te];
|
|
1288
1288
|
return /* @__PURE__ */ S.jsxs(
|
|
1289
1289
|
"div",
|
|
@@ -1307,8 +1307,8 @@ const nc = /* @__PURE__ */ Se(({
|
|
|
1307
1307
|
{
|
|
1308
1308
|
ref: xe[te],
|
|
1309
1309
|
style: le(k.headerContainer),
|
|
1310
|
-
children:
|
|
1311
|
-
|
|
1310
|
+
children: V ? /* @__PURE__ */ S.jsx(
|
|
1311
|
+
V,
|
|
1312
1312
|
{
|
|
1313
1313
|
"aria-expanded": !$e,
|
|
1314
1314
|
className: ue({ collapsed: $e, expanded: !$e }),
|
|
@@ -1321,7 +1321,7 @@ const nc = /* @__PURE__ */ Se(({
|
|
|
1321
1321
|
onCustomEvent: (ze, at) => _?.(te, ze, at)
|
|
1322
1322
|
}
|
|
1323
1323
|
) : Ne(
|
|
1324
|
-
pe.header ?? /* @__PURE__ */ S.jsx(
|
|
1324
|
+
pe.header ?? /* @__PURE__ */ S.jsx(Ar, {}),
|
|
1325
1325
|
{
|
|
1326
1326
|
"aria-expanded": !$e,
|
|
1327
1327
|
className: ue({ collapsed: $e, expanded: !$e }),
|
|
@@ -1378,7 +1378,7 @@ const nc = /* @__PURE__ */ Se(({
|
|
|
1378
1378
|
}
|
|
1379
1379
|
);
|
|
1380
1380
|
} }) });
|
|
1381
|
-
}),
|
|
1381
|
+
}), Ar = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("button", { ...n, children: r }), Uo = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, children: r }), Wo = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("figure", { ...n, children: r });
|
|
1382
1382
|
function Ft(r) {
|
|
1383
1383
|
return r.sort((n, s) => n - s);
|
|
1384
1384
|
}
|
|
@@ -1444,7 +1444,7 @@ const qo = /* @__PURE__ */ Se(({
|
|
|
1444
1444
|
...p
|
|
1445
1445
|
}, g) => {
|
|
1446
1446
|
const m = He(r, {
|
|
1447
|
-
bar:
|
|
1447
|
+
bar: Nn
|
|
1448
1448
|
}), x = {
|
|
1449
1449
|
root: ue({
|
|
1450
1450
|
active: s
|
|
@@ -1459,7 +1459,7 @@ const qo = /* @__PURE__ */ Se(({
|
|
|
1459
1459
|
...p,
|
|
1460
1460
|
ref: g,
|
|
1461
1461
|
className: ue(n, x.root),
|
|
1462
|
-
children: /* @__PURE__ */ S.jsx(
|
|
1462
|
+
children: /* @__PURE__ */ S.jsx(kr, { count: l ? 2 : 1, children: (N) => /* @__PURE__ */ S.jsx("div", { "aria-hidden": !0, style: le(w.section, w[`section${N}`]), children: /* @__PURE__ */ S.jsx(kr, { count: u, children: (O) => Ne(m.bar ?? /* @__PURE__ */ S.jsx(Nn, {}), {
|
|
1463
1463
|
"aria-hidden": !0,
|
|
1464
1464
|
className: ue(x.bar),
|
|
1465
1465
|
style: (() => {
|
|
@@ -1474,7 +1474,7 @@ const qo = /* @__PURE__ */ Se(({
|
|
|
1474
1474
|
}) }) }) })
|
|
1475
1475
|
}
|
|
1476
1476
|
);
|
|
1477
|
-
}),
|
|
1477
|
+
}), Nn = ({ ...r }) => /* @__PURE__ */ S.jsx("span", { ...r });
|
|
1478
1478
|
function Go({ isActive: r = !1, isSplit: n = !1, isTailHidden: s = !1 }) {
|
|
1479
1479
|
return {
|
|
1480
1480
|
section: {
|
|
@@ -1551,7 +1551,7 @@ const rc = /* @__PURE__ */ Se(({
|
|
|
1551
1551
|
}, N) => {
|
|
1552
1552
|
const O = () => {
|
|
1553
1553
|
x?.(!c), c ? m?.() : g?.();
|
|
1554
|
-
},
|
|
1554
|
+
}, M = {
|
|
1555
1555
|
root: ue({
|
|
1556
1556
|
active: c
|
|
1557
1557
|
})
|
|
@@ -1562,7 +1562,7 @@ const rc = /* @__PURE__ */ Se(({
|
|
|
1562
1562
|
...w,
|
|
1563
1563
|
ref: N,
|
|
1564
1564
|
"aria-expanded": c,
|
|
1565
|
-
className: ue(n,
|
|
1565
|
+
className: ue(n, M.root),
|
|
1566
1566
|
style: le(s, _.root),
|
|
1567
1567
|
onClick: O,
|
|
1568
1568
|
children: /* @__PURE__ */ S.jsx(
|
|
@@ -1577,7 +1577,7 @@ const rc = /* @__PURE__ */ Se(({
|
|
|
1577
1577
|
)
|
|
1578
1578
|
}
|
|
1579
1579
|
);
|
|
1580
|
-
}), ic =
|
|
1580
|
+
}), ic = Nn;
|
|
1581
1581
|
function Ko() {
|
|
1582
1582
|
return {
|
|
1583
1583
|
root: {
|
|
@@ -1697,17 +1697,17 @@ function ts(r, {
|
|
|
1697
1697
|
const g = r.current, m = Te(void 0), x = Te(void 0);
|
|
1698
1698
|
s && g && (g.style.cursor = "grab"), he(() => {
|
|
1699
1699
|
if (!g || !n) return;
|
|
1700
|
-
const w = (
|
|
1701
|
-
|
|
1702
|
-
const _ = ye.make(
|
|
1700
|
+
const w = (M) => {
|
|
1701
|
+
M.preventDefault();
|
|
1702
|
+
const _ = ye.make(M.clientX, M.clientY);
|
|
1703
1703
|
m.current = _, x.current = _, g.addEventListener("mousemove", N), g.addEventListener("mouseup", O, { capture: !0 }), g.addEventListener("mouseleave", O), s && (g.style.cursor = "grabbing"), c?.(_);
|
|
1704
|
-
}, N = (
|
|
1704
|
+
}, N = (M) => {
|
|
1705
1705
|
if (!m.current) return;
|
|
1706
|
-
const _ = ye.make(
|
|
1706
|
+
const _ = ye.make(M.clientX, M.clientY), B = (x.current ?? m.current).subtract(_);
|
|
1707
1707
|
x.current = _, l?.(B, m.current);
|
|
1708
|
-
}, O = (
|
|
1708
|
+
}, O = (M) => {
|
|
1709
1709
|
if (!m.current) return;
|
|
1710
|
-
const _ = ye.make(
|
|
1710
|
+
const _ = ye.make(M.clientX, M.clientY), B = (x.current ?? m.current).subtract(_);
|
|
1711
1711
|
u?.(_, B, m.current), m.current = void 0, x.current = void 0, g.removeEventListener("mousemove", N), g.removeEventListener("mouseup", O, { capture: !0 }), g.removeEventListener("mouseleave", O), s && (g.style.cursor = "grab");
|
|
1712
1712
|
};
|
|
1713
1713
|
return g.addEventListener("mousedown", w), () => {
|
|
@@ -1715,9 +1715,9 @@ function ts(r, {
|
|
|
1715
1715
|
};
|
|
1716
1716
|
}, [g, n, ...p]);
|
|
1717
1717
|
}
|
|
1718
|
-
var Yt = { exports: {} }, ns = Yt.exports,
|
|
1718
|
+
var Yt = { exports: {} }, ns = Yt.exports, Mr;
|
|
1719
1719
|
function rs() {
|
|
1720
|
-
return
|
|
1720
|
+
return Mr || (Mr = 1, function(r, n) {
|
|
1721
1721
|
(function(s, c) {
|
|
1722
1722
|
r.exports = c();
|
|
1723
1723
|
})(ns, function() {
|
|
@@ -1782,7 +1782,7 @@ function rs() {
|
|
|
1782
1782
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1783
1783
|
return t;
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1785
|
+
function M(t) {
|
|
1786
1786
|
var e = function() {
|
|
1787
1787
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
1788
1788
|
if (typeof Proxy == "function") return !0;
|
|
@@ -1833,14 +1833,14 @@ function rs() {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
var W = function(t) {
|
|
1835
1835
|
return !(!t || !t.Window) && t instanceof t.Window;
|
|
1836
|
-
}, D = void 0,
|
|
1836
|
+
}, D = void 0, V = void 0;
|
|
1837
1837
|
function j(t) {
|
|
1838
1838
|
D = t;
|
|
1839
1839
|
var e = t.document.createTextNode("");
|
|
1840
|
-
e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)),
|
|
1840
|
+
e.ownerDocument !== t.document && typeof t.wrap == "function" && t.wrap(e) === e && (t = t.wrap(t)), V = t;
|
|
1841
1841
|
}
|
|
1842
1842
|
function Y(t) {
|
|
1843
|
-
return W(t) ? t : (t.ownerDocument || t).defaultView ||
|
|
1843
|
+
return W(t) ? t : (t.ownerDocument || t).defaultView || V.window;
|
|
1844
1844
|
}
|
|
1845
1845
|
typeof window < "u" && window && j(window);
|
|
1846
1846
|
var U = function(t) {
|
|
@@ -1848,7 +1848,7 @@ function rs() {
|
|
|
1848
1848
|
}, H = function(t) {
|
|
1849
1849
|
return typeof t == "function";
|
|
1850
1850
|
}, T = { window: function(t) {
|
|
1851
|
-
return t ===
|
|
1851
|
+
return t === V || W(t);
|
|
1852
1852
|
}, docFrag: function(t) {
|
|
1853
1853
|
return U(t) && t.nodeType === 11;
|
|
1854
1854
|
}, object: U, func: H, number: function(t) {
|
|
@@ -1859,7 +1859,7 @@ function rs() {
|
|
|
1859
1859
|
return typeof t == "string";
|
|
1860
1860
|
}, element: function(t) {
|
|
1861
1861
|
if (!t || l(t) !== "object") return !1;
|
|
1862
|
-
var e = Y(t) ||
|
|
1862
|
+
var e = Y(t) || V;
|
|
1863
1863
|
return /object|function/.test(typeof Element > "u" ? "undefined" : l(Element)) ? t instanceof Element || t instanceof e.Element : t.nodeType === 1 && typeof t.nodeName == "string";
|
|
1864
1864
|
}, plainObject: function(t) {
|
|
1865
1865
|
return U(t) && !!t.constructor && /function Object\b/.test(t.constructor.toString());
|
|
@@ -1883,9 +1883,9 @@ function rs() {
|
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
1885
|
}
|
|
1886
|
-
var
|
|
1886
|
+
var X = { id: "actions/drag", install: function(t) {
|
|
1887
1887
|
var e = t.actions, i = t.Interactable, o = t.defaults;
|
|
1888
|
-
i.prototype.draggable =
|
|
1888
|
+
i.prototype.draggable = X.draggable, e.map.drag = X, e.methodDict.drag = "draggable", o.actions.drag = X.defaults;
|
|
1889
1889
|
}, listeners: { "interactions:before-action-move": re, "interactions:action-resume": re, "interactions:action-move": ie, "auto-start:check": function(t) {
|
|
1890
1890
|
var e = t.interaction, i = t.interactable, o = t.buttons, a = i.options.drag;
|
|
1891
1891
|
if (a && a.enabled && (!e.pointerIsDown || !/mouse|pointer/.test(e.pointerType) || (o & i.options.drag.mouseButtons) != 0)) return t.action = { name: "drag", axis: a.lockAxis === "start" ? a.startAxis : a.lockAxis }, !1;
|
|
@@ -1895,16 +1895,16 @@ function rs() {
|
|
|
1895
1895
|
return "move";
|
|
1896
1896
|
}, filterEventType: function(t) {
|
|
1897
1897
|
return t.search("drag") === 0;
|
|
1898
|
-
} }, ee =
|
|
1898
|
+
} }, ee = X, q = { init: function(t) {
|
|
1899
1899
|
var e = t;
|
|
1900
1900
|
q.document = e.document, q.DocumentFragment = e.DocumentFragment || L, q.SVGElement = e.SVGElement || L, q.SVGSVGElement = e.SVGSVGElement || L, q.SVGElementInstance = e.SVGElementInstance || L, q.Element = e.Element || L, q.HTMLElement = e.HTMLElement || q.Element, q.Event = e.Event, q.Touch = e.Touch || L, q.PointerEvent = e.PointerEvent || e.MSPointerEvent;
|
|
1901
1901
|
}, document: null, DocumentFragment: null, SVGElement: null, SVGSVGElement: null, SVGElementInstance: null, Element: null, HTMLElement: null, Event: null, Touch: null, PointerEvent: null };
|
|
1902
1902
|
function L() {
|
|
1903
1903
|
}
|
|
1904
|
-
var R = q,
|
|
1904
|
+
var R = q, C = { init: function(t) {
|
|
1905
1905
|
var e = R.Element, i = t.navigator || {};
|
|
1906
|
-
|
|
1907
|
-
}, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, z =
|
|
1906
|
+
C.supportsTouch = "ontouchstart" in t || T.func(t.DocumentTouch) && R.document instanceof t.DocumentTouch, C.supportsPointerEvent = i.pointerEnabled !== !1 && !!R.PointerEvent, C.isIOS = /iP(hone|od|ad)/.test(i.platform), C.isIOS7 = /iP(hone|od|ad)/.test(i.platform) && /OS 7[^\d]/.test(i.appVersion), C.isIe9 = /MSIE 9/.test(i.userAgent), C.isOperaMobile = i.appName === "Opera" && C.supportsTouch && /Presto/.test(i.userAgent), C.prefixedMatchesSelector = "matches" in e.prototype ? "matches" : "webkitMatchesSelector" in e.prototype ? "webkitMatchesSelector" : "mozMatchesSelector" in e.prototype ? "mozMatchesSelector" : "oMatchesSelector" in e.prototype ? "oMatchesSelector" : "msMatchesSelector", C.pEventTypes = C.supportsPointerEvent ? R.PointerEvent === t.MSPointerEvent ? { up: "MSPointerUp", down: "MSPointerDown", over: "mouseover", out: "mouseout", move: "MSPointerMove", cancel: "MSPointerCancel" } : { up: "pointerup", down: "pointerdown", over: "pointerover", out: "pointerout", move: "pointermove", cancel: "pointercancel" } : null, C.wheelEvent = R.document && "onmousewheel" in R.document ? "mousewheel" : "wheel";
|
|
1907
|
+
}, supportsTouch: null, supportsPointerEvent: null, isIOS7: null, isIOS: null, isIe9: null, isOperaMobile: null, prefixedMatchesSelector: null, pEventTypes: null, wheelEvent: null }, z = C;
|
|
1908
1908
|
function G(t, e) {
|
|
1909
1909
|
if (t.contains) return t.contains(e);
|
|
1910
1910
|
for (; e; ) {
|
|
@@ -1929,7 +1929,7 @@ function rs() {
|
|
|
1929
1929
|
return e;
|
|
1930
1930
|
}
|
|
1931
1931
|
function k(t, e) {
|
|
1932
|
-
return
|
|
1932
|
+
return V !== D && (e = e.replace(/\/deep\//g, " ")), t[z.prefixedMatchesSelector](e);
|
|
1933
1933
|
}
|
|
1934
1934
|
var J = function(t) {
|
|
1935
1935
|
return t.parentNode || t.host;
|
|
@@ -1955,7 +1955,7 @@ function rs() {
|
|
|
1955
1955
|
function oe(t) {
|
|
1956
1956
|
var e, i = pe(t);
|
|
1957
1957
|
if (!z.isIOS7 && i) {
|
|
1958
|
-
var o = { x: (e = (e = Y(t)) ||
|
|
1958
|
+
var o = { x: (e = (e = Y(t)) || V).scrollX || e.document.documentElement.scrollLeft, y: e.scrollY || e.document.documentElement.scrollTop };
|
|
1959
1959
|
i.left += o.x, i.right += o.x, i.top += o.y, i.bottom += o.y;
|
|
1960
1960
|
}
|
|
1961
1961
|
return i;
|
|
@@ -2042,15 +2042,15 @@ function rs() {
|
|
|
2042
2042
|
function kt(t, e, i) {
|
|
2043
2043
|
return t = t || "page", (i = i || {}).x = e[t + "X"], i.y = e[t + "Y"], i;
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2045
|
+
function _n(t, e) {
|
|
2046
2046
|
return e = e || { x: 0, y: 0 }, z.isOperaMobile && Pt(t) ? (kt("screen", t, e), e.x += window.scrollX, e.y += window.scrollY) : kt("page", t, e), e;
|
|
2047
2047
|
}
|
|
2048
2048
|
function ft(t) {
|
|
2049
2049
|
return T.number(t.pointerId) ? t.pointerId : t.identifier;
|
|
2050
2050
|
}
|
|
2051
2051
|
function gi(t, e, i) {
|
|
2052
|
-
var o = e.length > 1 ?
|
|
2053
|
-
|
|
2052
|
+
var o = e.length > 1 ? jn(e) : e[0];
|
|
2053
|
+
_n(o, t.page), function(a, f) {
|
|
2054
2054
|
f = f || {}, z.isOperaMobile && Pt(a) ? kt("screen", a, f) : kt("client", a, f);
|
|
2055
2055
|
}(o, t.client), t.timeStamp = i;
|
|
2056
2056
|
}
|
|
@@ -2058,7 +2058,7 @@ function rs() {
|
|
|
2058
2058
|
var e = [];
|
|
2059
2059
|
return T.array(t) ? (e[0] = t[0], e[1] = t[1]) : t.type === "touchend" ? t.touches.length === 1 ? (e[0] = t.touches[0], e[1] = t.changedTouches[0]) : t.touches.length === 0 && (e[0] = t.changedTouches[0], e[1] = t.changedTouches[1]) : (e[0] = t.touches[0], e[1] = t.touches[1]), e;
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function jn(t) {
|
|
2062
2062
|
for (var e = { pageX: 0, pageY: 0, clientX: 0, clientY: 0, screenX: 0, screenY: 0 }, i = 0; i < t.length; i++) {
|
|
2063
2063
|
var o = t[i];
|
|
2064
2064
|
for (var a in e) e[a] += o[a];
|
|
@@ -2079,10 +2079,10 @@ function rs() {
|
|
|
2079
2079
|
var i = e + "X", o = e + "Y", a = Wt(t), f = a[1][i] - a[0][i], d = a[1][o] - a[0][o];
|
|
2080
2080
|
return 180 * Math.atan2(d, f) / Math.PI;
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function Rn(t) {
|
|
2083
2083
|
return T.string(t.pointerType) ? t.pointerType : T.number(t.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][t.pointerType] : /touch/.test(t.type || "") || t instanceof R.Touch ? "touch" : "mouse";
|
|
2084
2084
|
}
|
|
2085
|
-
function
|
|
2085
|
+
function zn(t) {
|
|
2086
2086
|
var e = T.func(t.composedPath) ? t.composedPath() : t.path;
|
|
2087
2087
|
return [Pe(e ? e[0] : t.target), Pe(t.currentTarget)];
|
|
2088
2088
|
}
|
|
@@ -2101,14 +2101,14 @@ function rs() {
|
|
|
2101
2101
|
return this._interaction._proxy;
|
|
2102
2102
|
}, set: function() {
|
|
2103
2103
|
} });
|
|
2104
|
-
var
|
|
2104
|
+
var Ln = function(t, e) {
|
|
2105
2105
|
for (var i = 0; i < e.length; i++) {
|
|
2106
2106
|
var o = e[i];
|
|
2107
2107
|
t.push(o);
|
|
2108
2108
|
}
|
|
2109
2109
|
return t;
|
|
2110
|
-
},
|
|
2111
|
-
return
|
|
2110
|
+
}, Fn = function(t) {
|
|
2111
|
+
return Ln([], t);
|
|
2112
2112
|
}, dt = function(t, e) {
|
|
2113
2113
|
for (var i = 0; i < t.length; i++) if (e(t[i], i, t)) return i;
|
|
2114
2114
|
return -1;
|
|
@@ -2116,7 +2116,7 @@ function rs() {
|
|
|
2116
2116
|
return t[dt(t, e)];
|
|
2117
2117
|
}, ct = function(t) {
|
|
2118
2118
|
x(i, t);
|
|
2119
|
-
var e =
|
|
2119
|
+
var e = M(i);
|
|
2120
2120
|
function i(o, a, f) {
|
|
2121
2121
|
var d;
|
|
2122
2122
|
u(this, i), (d = e.call(this, a._interaction)).dropzone = void 0, d.dragEvent = void 0, d.relatedTarget = void 0, d.draggable = void 0, d.propagationStopped = !1, d.immediatePropagationStopped = !1;
|
|
@@ -2141,7 +2141,7 @@ function rs() {
|
|
|
2141
2141
|
this.immediatePropagationStopped = this.propagationStopped = !0;
|
|
2142
2142
|
} }]), i;
|
|
2143
2143
|
}(Ot);
|
|
2144
|
-
function
|
|
2144
|
+
function Bn(t, e) {
|
|
2145
2145
|
for (var i = 0, o = t.slice(); i < o.length; i++) {
|
|
2146
2146
|
var a = o[i], f = a.dropzone, d = a.element;
|
|
2147
2147
|
e.dropzone = f, e.target = d, f.fire(e), e.propagationStopped = e.immediatePropagationStopped = !1;
|
|
@@ -2166,7 +2166,7 @@ function rs() {
|
|
|
2166
2166
|
}
|
|
2167
2167
|
return i;
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function Yn(t, e, i) {
|
|
2170
2170
|
for (var o = t.dropState, a = t.interactable, f = t.element, d = [], h = 0, v = o.activeDrops; h < v.length; h++) {
|
|
2171
2171
|
var b = v[h], y = b.dropzone, E = b.element, P = b.rect, $ = y.dropCheck(e, i, a, f, E, P);
|
|
2172
2172
|
d.push($ ? E : null);
|
|
@@ -2207,18 +2207,18 @@ function rs() {
|
|
|
2207
2207
|
}
|
|
2208
2208
|
function Zt(t, e) {
|
|
2209
2209
|
var i = t.dropState, o = i.activeDrops, a = i.cur, f = i.prev;
|
|
2210
|
-
e.leave && f.dropzone.fire(e.leave), e.enter && a.dropzone.fire(e.enter), e.move && a.dropzone.fire(e.move), e.drop && a.dropzone.fire(e.drop), e.deactivate &&
|
|
2210
|
+
e.leave && f.dropzone.fire(e.leave), e.enter && a.dropzone.fire(e.enter), e.move && a.dropzone.fire(e.move), e.drop && a.dropzone.fire(e.drop), e.deactivate && Bn(o, e.deactivate), i.prev.dropzone = a.dropzone, i.prev.element = a.element;
|
|
2211
2211
|
}
|
|
2212
|
-
function
|
|
2212
|
+
function Hn(t, e) {
|
|
2213
2213
|
var i = t.interaction, o = t.iEvent, a = t.event;
|
|
2214
2214
|
if (o.type === "dragmove" || o.type === "dragend") {
|
|
2215
2215
|
var f = i.dropState;
|
|
2216
2216
|
e.dynamicDrop && (f.activeDrops = Kt(e, i.element));
|
|
2217
|
-
var d = o, h =
|
|
2217
|
+
var d = o, h = Yn(i, d, a);
|
|
2218
2218
|
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 = Jt(i, 0, d);
|
|
2219
2219
|
}
|
|
2220
2220
|
}
|
|
2221
|
-
var
|
|
2221
|
+
var Vn = { id: "actions/drop", install: function(t) {
|
|
2222
2222
|
var e = t.actions, i = t.interactStatic, o = t.Interactable, a = t.defaults;
|
|
2223
2223
|
t.usePlugin(ee), o.prototype.dropzone = function(f) {
|
|
2224
2224
|
return function(d, h) {
|
|
@@ -2239,7 +2239,7 @@ function rs() {
|
|
|
2239
2239
|
if (!(K = K || E.getRect(ne))) return !!E.options.drop.checker && E.options.drop.checker(P, $, ce, E, ne, I, F);
|
|
2240
2240
|
var ve = E.options.drop.overlap;
|
|
2241
2241
|
if (ve === "pointer") {
|
|
2242
|
-
var Ee = Ve(I, F, "drag"), fe =
|
|
2242
|
+
var Ee = Ve(I, F, "drag"), fe = _n(P);
|
|
2243
2243
|
fe.x += Ee.x, fe.y += Ee.y;
|
|
2244
2244
|
var me = fe.x > K.left && fe.x < K.right, je = fe.y > K.top && fe.y < K.bottom;
|
|
2245
2245
|
ce = me && je;
|
|
@@ -2253,7 +2253,7 @@ function rs() {
|
|
|
2253
2253
|
}(this, f, d, h, v, b, y);
|
|
2254
2254
|
}, i.dynamicDrop = function(f) {
|
|
2255
2255
|
return T.bool(f) ? (t.dynamicDrop = f, i) : t.dynamicDrop;
|
|
2256
|
-
}, A(e.phaselessTypes, { dragenter: !0, dragleave: !0, dropactivate: !0, dropdeactivate: !0, dropmove: !0, drop: !0 }), e.methodDict.drop = "dropzone", t.dynamicDrop = !1, a.actions.drop =
|
|
2256
|
+
}, A(e.phaselessTypes, { dragenter: !0, dragleave: !0, dropactivate: !0, dropdeactivate: !0, dropmove: !0, drop: !0 }), e.methodDict.drop = "dropzone", t.dynamicDrop = !1, a.actions.drop = Vn.defaults;
|
|
2257
2257
|
}, listeners: { "interactions:before-action-start": function(t) {
|
|
2258
2258
|
var e = t.interaction;
|
|
2259
2259
|
e.prepared.name === "drag" && (e.dropState = { cur: { dropzone: null, element: null }, prev: { dropzone: null, element: null }, rejected: null, events: null, activeDrops: [] });
|
|
@@ -2261,9 +2261,9 @@ function rs() {
|
|
|
2261
2261
|
var i = t.interaction, o = t.iEvent;
|
|
2262
2262
|
if (i.prepared.name === "drag") {
|
|
2263
2263
|
var a = i.dropState;
|
|
2264
|
-
a.activeDrops = [], a.events = {}, a.activeDrops = Kt(e, i.element), a.events = Jt(i, 0, o), a.events.activate && (
|
|
2264
|
+
a.activeDrops = [], a.events = {}, a.activeDrops = Kt(e, i.element), a.events = Jt(i, 0, o), a.events.activate && (Bn(a.activeDrops, a.events.activate), e.fire("actions/drop:start", { interaction: i, dragEvent: o }));
|
|
2265
2265
|
}
|
|
2266
|
-
}, "interactions:action-move":
|
|
2266
|
+
}, "interactions:action-move": Hn, "interactions:after-action-move": function(t, e) {
|
|
2267
2267
|
var i = t.interaction, o = t.iEvent;
|
|
2268
2268
|
if (i.prepared.name === "drag") {
|
|
2269
2269
|
var a = i.dropState;
|
|
@@ -2272,7 +2272,7 @@ function rs() {
|
|
|
2272
2272
|
}, "interactions:action-end": function(t, e) {
|
|
2273
2273
|
if (t.interaction.prepared.name === "drag") {
|
|
2274
2274
|
var i = t.interaction, o = t.iEvent;
|
|
2275
|
-
|
|
2275
|
+
Hn(t, e), Zt(i, i.dropState.events), e.fire("actions/drop:end", { interaction: i, dragEvent: o });
|
|
2276
2276
|
}
|
|
2277
2277
|
}, "interactions:stop": function(t) {
|
|
2278
2278
|
var e = t.interaction;
|
|
@@ -2280,9 +2280,9 @@ function rs() {
|
|
|
2280
2280
|
var i = e.dropState;
|
|
2281
2281
|
i && (i.activeDrops = null, i.events = null, i.cur.dropzone = null, i.cur.element = null, i.prev.dropzone = null, i.prev.element = null, i.rejected = !1);
|
|
2282
2282
|
}
|
|
2283
|
-
} }, getActiveDrops: Kt, getDrop:
|
|
2283
|
+
} }, getActiveDrops: Kt, getDrop: Yn, getDropEvents: Jt, fireDropEvents: Zt, filterEventType: function(t) {
|
|
2284
2284
|
return t.search("drag") === 0 || t.search("drop") === 0;
|
|
2285
|
-
}, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, vi =
|
|
2285
|
+
}, defaults: { enabled: !1, accept: null, overlap: "pointer" } }, vi = Vn;
|
|
2286
2286
|
function Qt(t) {
|
|
2287
2287
|
var e = t.interaction, i = t.iEvent, o = t.phase;
|
|
2288
2288
|
if (e.prepared.name === "gesture") {
|
|
@@ -2331,7 +2331,7 @@ function rs() {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
return !!T.element(o) && (T.element(e) ? e === o : xe(o, e, a));
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function Xn(t) {
|
|
2335
2335
|
var e = t.iEvent, i = t.interaction;
|
|
2336
2336
|
if (i.prepared.name === "resize" && i.resizeAxes) {
|
|
2337
2337
|
var o = e;
|
|
@@ -2356,7 +2356,7 @@ function rs() {
|
|
|
2356
2356
|
var a = i, f = o.rect;
|
|
2357
2357
|
o._rects = { start: A({}, f), corrected: A({}, f), previous: A({}, f), delta: { left: 0, right: 0, width: 0, top: 0, bottom: 0, height: 0 } }, a.edges = o.prepared.edges, a.rect = o._rects.corrected, a.deltaRect = o._rects.delta;
|
|
2358
2358
|
}
|
|
2359
|
-
})(t),
|
|
2359
|
+
})(t), Xn(t);
|
|
2360
2360
|
}, "interactions:action-move": function(t) {
|
|
2361
2361
|
(function(e) {
|
|
2362
2362
|
var i = e.iEvent, o = e.interaction;
|
|
@@ -2377,7 +2377,7 @@ function rs() {
|
|
|
2377
2377
|
for (var F in y.width = y.right - y.left, y.height = y.bottom - y.top, y) E[F] = y[F] - P[F];
|
|
2378
2378
|
a.edges = o.prepared.edges, a.rect = y, a.deltaRect = E;
|
|
2379
2379
|
}
|
|
2380
|
-
})(t),
|
|
2380
|
+
})(t), Xn(t);
|
|
2381
2381
|
}, "interactions:action-end": function(t) {
|
|
2382
2382
|
var e = t.iEvent, i = t.interaction;
|
|
2383
2383
|
if (i.prepared.name === "resize" && i.prepared.edges) {
|
|
@@ -2415,7 +2415,7 @@ function rs() {
|
|
|
2415
2415
|
return t.search("resize") === 0;
|
|
2416
2416
|
}, defaultMargin: null }, bi = De, xi = { id: "actions", install: function(t) {
|
|
2417
2417
|
t.usePlugin(mi), t.usePlugin(bi), t.usePlugin(ee), t.usePlugin(vi);
|
|
2418
|
-
} },
|
|
2418
|
+
} }, Un = 0, Ke = { request: function(t) {
|
|
2419
2419
|
return We(t);
|
|
2420
2420
|
}, cancel: function(t) {
|
|
2421
2421
|
return nt(t);
|
|
@@ -2425,10 +2425,10 @@ function rs() {
|
|
|
2425
2425
|
We = t["".concat(o, "RequestAnimationFrame")], nt = t["".concat(o, "CancelAnimationFrame")] || t["".concat(o, "CancelRequestAnimationFrame")];
|
|
2426
2426
|
}
|
|
2427
2427
|
We = We && We.bind(t), nt = nt && nt.bind(t), We || (We = function(a) {
|
|
2428
|
-
var f = Date.now(), d = Math.max(0, 16 - (f -
|
|
2428
|
+
var f = Date.now(), d = Math.max(0, 16 - (f - Un)), h = t.setTimeout(function() {
|
|
2429
2429
|
a(f + d);
|
|
2430
2430
|
}, d);
|
|
2431
|
-
return
|
|
2431
|
+
return Un = f + d, h;
|
|
2432
2432
|
}, nt = function(a) {
|
|
2433
2433
|
return clearTimeout(a);
|
|
2434
2434
|
});
|
|
@@ -2437,13 +2437,13 @@ function rs() {
|
|
|
2437
2437
|
}, stop: function() {
|
|
2438
2438
|
de.isScrolling = !1, de.interaction && (de.interaction.autoScroll = null), Ke.cancel(de.i);
|
|
2439
2439
|
}, scroll: function() {
|
|
2440
|
-
var t = de.interaction, e = t.interactable, i = t.element, o = t.prepared.name, a = e.options[o].autoScroll, f =
|
|
2440
|
+
var t = de.interaction, e = t.interactable, i = t.element, o = t.prepared.name, a = e.options[o].autoScroll, f = Wn(a.container, e, i), d = de.now(), h = (d - de.prevTime) / 1e3, v = a.speed * h;
|
|
2441
2441
|
if (v >= 1) {
|
|
2442
2442
|
var b = { x: de.x * v, y: de.y * v };
|
|
2443
2443
|
if (b.x || b.y) {
|
|
2444
|
-
var y =
|
|
2444
|
+
var y = Dn(f);
|
|
2445
2445
|
T.window(f) ? f.scrollBy(b.x, b.y) : f && (f.scrollLeft += b.x, f.scrollTop += b.y);
|
|
2446
|
-
var E =
|
|
2446
|
+
var E = Dn(f), P = { x: E.x - y.x, y: E.y - y.y };
|
|
2447
2447
|
(P.x || P.y) && e.fire({ type: "autoscroll", target: i, interactable: e, delta: P, interaction: t, container: f });
|
|
2448
2448
|
}
|
|
2449
2449
|
de.prevTime = d;
|
|
@@ -2456,7 +2456,7 @@ function rs() {
|
|
|
2456
2456
|
var e = t.interaction, i = t.pointer;
|
|
2457
2457
|
if (e.interacting() && de.check(e.interactable, e.prepared.name)) if (e.simulation) de.x = de.y = 0;
|
|
2458
2458
|
else {
|
|
2459
|
-
var o, a, f, d, h = e.interactable, v = e.element, b = e.prepared.name, y = h.options[b].autoScroll, E =
|
|
2459
|
+
var o, a, f, d, h = e.interactable, v = e.element, b = e.prepared.name, y = h.options[b].autoScroll, E = Wn(y.container, h, v);
|
|
2460
2460
|
if (T.window(E)) d = i.clientX < de.margin, o = i.clientY < de.margin, a = i.clientX > E.innerWidth - de.margin, f = i.clientY > E.innerHeight - de.margin;
|
|
2461
2461
|
else {
|
|
2462
2462
|
var P = pe(E);
|
|
@@ -2465,10 +2465,10 @@ function rs() {
|
|
|
2465
2465
|
de.x = a ? 1 : d ? -1 : 0, de.y = f ? 1 : o ? -1 : 0, de.isScrolling || (de.margin = y.margin, de.speed = y.speed, de.start(e));
|
|
2466
2466
|
}
|
|
2467
2467
|
} };
|
|
2468
|
-
function
|
|
2468
|
+
function Wn(t, e, i) {
|
|
2469
2469
|
return (T.string(t) ? ge(t, e, i) : t) || Y(i);
|
|
2470
2470
|
}
|
|
2471
|
-
function
|
|
2471
|
+
function Dn(t) {
|
|
2472
2472
|
return T.window(t) && (t = window.document.body), { x: t.scrollLeft, y: t.scrollTop };
|
|
2473
2473
|
}
|
|
2474
2474
|
var wi = { id: "auto-scroll", install: function(t) {
|
|
@@ -2486,7 +2486,7 @@ function rs() {
|
|
|
2486
2486
|
function pt(t, e) {
|
|
2487
2487
|
var i = !1;
|
|
2488
2488
|
return function() {
|
|
2489
|
-
return i || (
|
|
2489
|
+
return i || (V.console.warn(e), i = !0), t.apply(this, arguments);
|
|
2490
2490
|
};
|
|
2491
2491
|
}
|
|
2492
2492
|
function tn(t, e) {
|
|
@@ -2512,20 +2512,20 @@ function rs() {
|
|
|
2512
2512
|
return this._backCompatOption("allowFrom", i);
|
|
2513
2513
|
}, "Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."), e.prototype.actionChecker = Si, e.prototype.styleCursor = Ti;
|
|
2514
2514
|
} };
|
|
2515
|
-
function
|
|
2515
|
+
function qn(t, e, i, o, a) {
|
|
2516
2516
|
return e.testIgnoreAllow(e.options[t.name], i, o) && e.options[t.name].enabled && At(e, i, t, a) ? t : null;
|
|
2517
2517
|
}
|
|
2518
2518
|
function Pi(t, e, i, o, a, f, d) {
|
|
2519
2519
|
for (var h = 0, v = o.length; h < v; h++) {
|
|
2520
2520
|
var b = o[h], y = a[h], E = b.getAction(e, i, t, y);
|
|
2521
2521
|
if (E) {
|
|
2522
|
-
var P =
|
|
2522
|
+
var P = qn(E, b, y, f, d);
|
|
2523
2523
|
if (P) return { action: P, interactable: b, element: y };
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
2526
|
return { action: null, interactable: null, element: null };
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function Gn(t, e, i, o, a) {
|
|
2529
2529
|
var f = [], d = [], h = o;
|
|
2530
2530
|
function v(y) {
|
|
2531
2531
|
f.push(y), d.push(h);
|
|
@@ -2538,9 +2538,9 @@ function rs() {
|
|
|
2538
2538
|
}
|
|
2539
2539
|
return { action: null, interactable: null, element: null };
|
|
2540
2540
|
}
|
|
2541
|
-
function
|
|
2541
|
+
function Kn(t, e, i) {
|
|
2542
2542
|
var o = e.action, a = e.interactable, f = e.element;
|
|
2543
|
-
o = o || { name: null }, t.interactable = a, t.element = f, tn(t.prepared, o), t.rect = a && o.name ? a.getRect(f) : null,
|
|
2543
|
+
o = o || { name: null }, t.interactable = a, t.element = f, tn(t.prepared, o), t.rect = a && o.name ? a.getRect(f) : null, Zn(t, i), i.fire("autoStart:prepared", { interaction: t });
|
|
2544
2544
|
}
|
|
2545
2545
|
function At(t, e, i, o) {
|
|
2546
2546
|
var a = t.options, f = a[i.name].max, d = a[i.name].maxPerElement, h = o.autoStart.maxInteractions, v = 0, b = 0, y = 0;
|
|
@@ -2552,14 +2552,14 @@ function rs() {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
return h > 0;
|
|
2554
2554
|
}
|
|
2555
|
-
function
|
|
2555
|
+
function Jn(t, e) {
|
|
2556
2556
|
return T.number(t) ? (e.autoStart.maxInteractions = t, this) : e.autoStart.maxInteractions;
|
|
2557
2557
|
}
|
|
2558
2558
|
function nn(t, e, i) {
|
|
2559
2559
|
var o = i.autoStart.cursorElement;
|
|
2560
2560
|
o && o !== t && (o.style.cursor = ""), t.ownerDocument.documentElement.style.cursor = e, t.style.cursor = e, i.autoStart.cursorElement = e ? t : null;
|
|
2561
2561
|
}
|
|
2562
|
-
function
|
|
2562
|
+
function Zn(t, e) {
|
|
2563
2563
|
var i = t.interactable, o = t.element, a = t.prepared;
|
|
2564
2564
|
if (t.pointerType === "mouse" && i && i.options.styleCursor) {
|
|
2565
2565
|
var f = "";
|
|
@@ -2573,27 +2573,27 @@ function rs() {
|
|
|
2573
2573
|
var ki = { id: "auto-start/base", before: ["actions"], install: function(t) {
|
|
2574
2574
|
var e = t.interactStatic, i = t.defaults;
|
|
2575
2575
|
t.usePlugin(Ni), i.base.actionChecker = null, i.base.styleCursor = !0, A(i.perAction, { manualStart: !1, max: 1 / 0, maxPerElement: 1, allowFrom: null, ignoreFrom: null, mouseButtons: 1 }), e.maxInteractions = function(o) {
|
|
2576
|
-
return
|
|
2576
|
+
return Jn(o, t);
|
|
2577
2577
|
}, t.autoStart = { maxInteractions: 1 / 0, withinInteractionLimit: At, cursorElement: null };
|
|
2578
2578
|
}, listeners: { "interactions:down": function(t, e) {
|
|
2579
2579
|
var i = t.interaction, o = t.pointer, a = t.event, f = t.eventTarget;
|
|
2580
|
-
i.interacting() ||
|
|
2580
|
+
i.interacting() || Kn(i, Gn(i, o, a, f, e), e);
|
|
2581
2581
|
}, "interactions:move": function(t, e) {
|
|
2582
2582
|
(function(i, o) {
|
|
2583
2583
|
var a = i.interaction, f = i.pointer, d = i.event, h = i.eventTarget;
|
|
2584
|
-
a.pointerType !== "mouse" || a.pointerIsDown || a.interacting() ||
|
|
2584
|
+
a.pointerType !== "mouse" || a.pointerIsDown || a.interacting() || Kn(a, Gn(a, f, d, h, o), o);
|
|
2585
2585
|
})(t, e), function(i, o) {
|
|
2586
2586
|
var a = i.interaction;
|
|
2587
2587
|
if (a.pointerIsDown && !a.interacting() && a.pointerWasMoved && a.prepared.name) {
|
|
2588
2588
|
o.fire("autoStart:before-start", i);
|
|
2589
2589
|
var f = a.interactable, d = a.prepared.name;
|
|
2590
|
-
d && f && (f.options[d].manualStart || !At(f, a.element, a.prepared, o) ? a.stop() : (a.start(a.prepared, f, a.element),
|
|
2590
|
+
d && f && (f.options[d].manualStart || !At(f, a.element, a.prepared, o) ? a.stop() : (a.start(a.prepared, f, a.element), Zn(a, o)));
|
|
2591
2591
|
}
|
|
2592
2592
|
}(t, e);
|
|
2593
2593
|
}, "interactions:stop": function(t, e) {
|
|
2594
2594
|
var i = t.interaction, o = i.interactable;
|
|
2595
2595
|
o && o.options.styleCursor && nn(i.element, "", e);
|
|
2596
|
-
} }, maxInteractions:
|
|
2596
|
+
} }, maxInteractions: Jn, withinInteractionLimit: At, validateAction: qn }, rn = ki, Oi = { id: "auto-start/dragAxis", listeners: { "autoStart:before-start": function(t, e) {
|
|
2597
2597
|
var i = t.interaction, o = t.eventTarget, a = t.dx, f = t.dy;
|
|
2598
2598
|
if (i.prepared.name === "drag") {
|
|
2599
2599
|
var d = Math.abs(a), h = Math.abs(f), v = i.interactable.options.drag, b = v.startAxis, y = d > h ? "x" : d < h ? "y" : "xy";
|
|
@@ -2653,7 +2653,7 @@ function rs() {
|
|
|
2653
2653
|
var e = t.interaction, i = t.event;
|
|
2654
2654
|
e.interactable && e.interactable.checkAndPreventDefault(i);
|
|
2655
2655
|
}
|
|
2656
|
-
var
|
|
2656
|
+
var Qn = { id: "core/interactablePreventDefault", install: function(t) {
|
|
2657
2657
|
var e = t.Interactable;
|
|
2658
2658
|
e.prototype.preventDefault = Ii, e.prototype.checkAndPreventDefault = function(i) {
|
|
2659
2659
|
return function(o, a, f) {
|
|
@@ -2684,7 +2684,7 @@ function rs() {
|
|
|
2684
2684
|
var e = {};
|
|
2685
2685
|
for (var i in t) {
|
|
2686
2686
|
var o = t[i];
|
|
2687
|
-
T.plainObject(o) ? e[i] = lt(o) : T.array(o) ? e[i] =
|
|
2687
|
+
T.plainObject(o) ? e[i] = lt(o) : T.array(o) ? e[i] = Fn(o) : e[i] = o;
|
|
2688
2688
|
}
|
|
2689
2689
|
return e;
|
|
2690
2690
|
}
|
|
@@ -2833,13 +2833,13 @@ function rs() {
|
|
|
2833
2833
|
return t.interaction.modification.restoreInteractionCoords(t);
|
|
2834
2834
|
}, "interactions:stop": function(t) {
|
|
2835
2835
|
return t.interaction.modification.stop(t);
|
|
2836
|
-
} } },
|
|
2836
|
+
} } }, er = _i, tr = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, an = function(t) {
|
|
2837
2837
|
x(i, t);
|
|
2838
|
-
var e =
|
|
2838
|
+
var e = M(i);
|
|
2839
2839
|
function i(o, a, f, d, h, v, b) {
|
|
2840
2840
|
var y;
|
|
2841
2841
|
u(this, i), (y = e.call(this, o)).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 || o.element;
|
|
2842
|
-
var E = o.interactable, P = (E && E.options ||
|
|
2842
|
+
var E = o.interactable, P = (E && E.options || tr).deltaSource, $ = Ve(E, h, f), I = d === "start", F = d === "end", ne = I ? O(y) : o.prevEvent, K = I ? o.coords.start : F ? { page: ne.page, client: ne.client, timeStamp: o.coords.cur.timeStamp } : o.coords.cur;
|
|
2843
2843
|
return y.page = A({}, K.page), y.client = A({}, K.client), y.rect = A({}, o.rect), y.timeStamp = K.timeStamp, F || (y.page.x -= $.x, y.page.y -= $.y, y.client.x -= $.x, y.client.y -= $.y), y.ctrlKey = a.ctrlKey, y.altKey = a.altKey, y.shiftKey = a.shiftKey, y.metaKey = a.metaKey, y.button = a.button, y.buttons = a.buttons, y.target = h, y.currentTarget = h, y.preEnd = v, y.type = b || f + (d || ""), y.interactable = E, y.t0 = I ? o.pointers[o.pointers.length - 1].downTime : ne.t0, y.x0 = o.coords.start.page.x - $.x, y.y0 = o.coords.start.page.y - $.y, y.clientX0 = o.coords.start.client.x - $.x, y.clientY0 = o.coords.start.client.y - $.y, y.delta = I || F ? { x: 0, y: 0 } : { x: y[P].x - ne[P].x, y: y[P].y - ne[P].y }, y.dt = o.coords.delta.timeStamp, y.duration = y.timeStamp - y.t0, y.velocity = A({}, o.coords.velocity[P]), y.speed = Xe(y.velocity.x, y.velocity.y), y.swipe = F || d === "inertiastart" ? y.getSwipe() : null, y;
|
|
2844
2844
|
}
|
|
2845
2845
|
return g(i, [{ key: "getSwipe", value: function() {
|
|
@@ -2893,7 +2893,7 @@ function rs() {
|
|
|
2893
2893
|
u(this, t), this.id = void 0, this.pointer = void 0, this.event = void 0, this.downTime = void 0, this.downTarget = void 0, this.id = e, this.pointer = i, this.event = o, this.downTime = a, this.downTarget = f;
|
|
2894
2894
|
}), Ri = function(t) {
|
|
2895
2895
|
return t.interactable = "", t.element = "", t.prepared = "", t.pointerIsDown = "", t.pointerWasMoved = "", t._proxy = "", t;
|
|
2896
|
-
}({}),
|
|
2896
|
+
}({}), nr = function(t) {
|
|
2897
2897
|
return t.start = "", t.move = "", t.end = "", t.stop = "", t.interacting = "", t;
|
|
2898
2898
|
}({}), zi = 0, Li = function() {
|
|
2899
2899
|
function t(e) {
|
|
@@ -2914,7 +2914,7 @@ function rs() {
|
|
|
2914
2914
|
return f[y].apply(f, arguments);
|
|
2915
2915
|
} });
|
|
2916
2916
|
};
|
|
2917
|
-
for (var b in
|
|
2917
|
+
for (var b in nr) v(b);
|
|
2918
2918
|
this._scopeFire("interactions:new", { interaction: this });
|
|
2919
2919
|
}
|
|
2920
2920
|
return g(t, [{ key: "pointerMoveTolerance", get: function() {
|
|
@@ -2984,10 +2984,10 @@ function rs() {
|
|
|
2984
2984
|
return Date.now();
|
|
2985
2985
|
} }]), t;
|
|
2986
2986
|
}();
|
|
2987
|
-
function nr(t) {
|
|
2988
|
-
rr(t.interaction);
|
|
2989
|
-
}
|
|
2990
2987
|
function rr(t) {
|
|
2988
|
+
ir(t.interaction);
|
|
2989
|
+
}
|
|
2990
|
+
function ir(t) {
|
|
2991
2991
|
if (!function(i) {
|
|
2992
2992
|
return !(!i.offset.pending.x && !i.offset.pending.y);
|
|
2993
2993
|
}(t)) return !1;
|
|
@@ -3002,7 +3002,7 @@ function rs() {
|
|
|
3002
3002
|
var i = t.page, o = t.client, a = e.x, f = e.y;
|
|
3003
3003
|
i.x += a, i.y += f, o.x += a, o.y += f;
|
|
3004
3004
|
}
|
|
3005
|
-
|
|
3005
|
+
nr.offsetBy = "";
|
|
3006
3006
|
var Bi = { id: "offset", before: ["modifiers", "pointer-events", "actions", "inertia"], install: function(t) {
|
|
3007
3007
|
t.Interaction.prototype.offsetBy = Fi;
|
|
3008
3008
|
}, listeners: { "interactions:new": function(t) {
|
|
@@ -3011,13 +3011,13 @@ function rs() {
|
|
|
3011
3011
|
return function(e) {
|
|
3012
3012
|
e.pointerIsDown && (cn(e.coords.cur, e.offset.total), e.offset.pending.x = 0, e.offset.pending.y = 0);
|
|
3013
3013
|
}(t.interaction);
|
|
3014
|
-
}, "interactions:before-action-start":
|
|
3014
|
+
}, "interactions:before-action-start": rr, "interactions:before-action-move": rr, "interactions:before-action-end": function(t) {
|
|
3015
3015
|
var e = t.interaction;
|
|
3016
|
-
if (
|
|
3016
|
+
if (ir(e)) return e.move({ offset: !0 }), e.end(), !1;
|
|
3017
3017
|
}, "interactions:stop": function(t) {
|
|
3018
3018
|
var e = t.interaction;
|
|
3019
3019
|
e.offset.total.x = 0, e.offset.total.y = 0, e.offset.pending.x = 0, e.offset.pending.y = 0;
|
|
3020
|
-
} } },
|
|
3020
|
+
} } }, or = Bi, Yi = function() {
|
|
3021
3021
|
function t(e) {
|
|
3022
3022
|
u(this, t), 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 = e;
|
|
3023
3023
|
}
|
|
@@ -3052,7 +3052,7 @@ function rs() {
|
|
|
3052
3052
|
var e, i, o, a, f, d, h, v = this, b = this.interaction, y = It(b).resistance, E = (b._now() - this.t0) / 1e3;
|
|
3053
3053
|
if (E < this.te) {
|
|
3054
3054
|
var P, $ = 1 - (Math.exp(-y * E) - this.lambda_v0) / this.one_ve_v0;
|
|
3055
|
-
this.isModified ? (e = 0, i = 0, o = this.targetOffset.x, a = this.targetOffset.y, f = this.modifiedOffset.x, d = this.modifiedOffset.y, P = { x:
|
|
3055
|
+
this.isModified ? (e = 0, i = 0, o = this.targetOffset.x, a = this.targetOffset.y, f = this.modifiedOffset.x, d = this.modifiedOffset.y, P = { x: sr(h = $, e, o, f), y: sr(h, i, a, d) }) : P = { x: this.targetOffset.x * $, y: this.targetOffset.y * $ };
|
|
3056
3056
|
var I = { x: P.x - this.currentOffset.x, y: P.y - this.currentOffset.y };
|
|
3057
3057
|
this.currentOffset.x += I.x, this.currentOffset.y += I.y, b.offsetBy(I), b.move(), this.onNextFrame(function() {
|
|
3058
3058
|
return v.inertiaTick();
|
|
@@ -3061,7 +3061,7 @@ function rs() {
|
|
|
3061
3061
|
} }, { key: "smoothEndTick", value: function() {
|
|
3062
3062
|
var e = this, i = this.interaction, o = i._now() - this.t0, a = It(i).smoothEndDuration;
|
|
3063
3063
|
if (o < a) {
|
|
3064
|
-
var f = { x:
|
|
3064
|
+
var f = { x: ar(o, 0, this.targetOffset.x, a), y: ar(o, 0, this.targetOffset.y, a) }, d = { x: f.x - this.currentOffset.x, y: f.y - this.currentOffset.y };
|
|
3065
3065
|
this.currentOffset.x += d.x, this.currentOffset.y += d.y, i.offsetBy(d), i.move({ skipModifiers: this.modifierCount }), this.onNextFrame(function() {
|
|
3066
3066
|
return e.smoothEndTick();
|
|
3067
3067
|
});
|
|
@@ -3081,7 +3081,7 @@ function rs() {
|
|
|
3081
3081
|
}
|
|
3082
3082
|
var Hi = { id: "inertia", before: ["modifiers", "actions"], install: function(t) {
|
|
3083
3083
|
var e = t.defaults;
|
|
3084
|
-
t.usePlugin(
|
|
3084
|
+
t.usePlugin(or), t.usePlugin(er), t.actions.phases.inertiastart = !0, t.actions.phases.resume = !0, e.perAction.inertia = { enabled: !1, resistance: 10, minSpeed: 100, endSpeed: 10, allowResume: !0, smoothEndDuration: 300 };
|
|
3085
3085
|
}, listeners: { "interactions:new": function(t) {
|
|
3086
3086
|
var e = t.interaction;
|
|
3087
3087
|
e.inertia = new Yi(e);
|
|
@@ -3110,31 +3110,31 @@ function rs() {
|
|
|
3110
3110
|
}, "interactions:after-action-resume": function(t) {
|
|
3111
3111
|
return t.interaction.modification.restoreInteractionCoords(t);
|
|
3112
3112
|
} } };
|
|
3113
|
-
function
|
|
3113
|
+
function sr(t, e, i, o) {
|
|
3114
3114
|
var a = 1 - t;
|
|
3115
3115
|
return a * a * e + 2 * a * t * i + t * t * o;
|
|
3116
3116
|
}
|
|
3117
|
-
function
|
|
3117
|
+
function ar(t, e, i, o) {
|
|
3118
3118
|
return -i * (t /= o) * (t - 2) + e;
|
|
3119
3119
|
}
|
|
3120
3120
|
var Vi = Hi;
|
|
3121
|
-
function
|
|
3121
|
+
function cr(t, e) {
|
|
3122
3122
|
for (var i = 0; i < e.length; i++) {
|
|
3123
3123
|
var o = e[i];
|
|
3124
3124
|
if (t.immediatePropagationStopped) break;
|
|
3125
3125
|
o(t);
|
|
3126
3126
|
}
|
|
3127
3127
|
}
|
|
3128
|
-
var
|
|
3128
|
+
var lr = function() {
|
|
3129
3129
|
function t(e) {
|
|
3130
3130
|
u(this, t), this.options = void 0, this.types = {}, this.propagationStopped = !1, this.immediatePropagationStopped = !1, this.global = void 0, this.options = A({}, e || {});
|
|
3131
3131
|
}
|
|
3132
3132
|
return g(t, [{ key: "fire", value: function(e) {
|
|
3133
3133
|
var i, o = this.global;
|
|
3134
|
-
(i = this.types[e.type]) &&
|
|
3134
|
+
(i = this.types[e.type]) && cr(e, i), !e.propagationStopped && o && (i = o[e.type]) && cr(e, i);
|
|
3135
3135
|
} }, { key: "on", value: function(e, i) {
|
|
3136
3136
|
var o = Ce(e, i);
|
|
3137
|
-
for (e in o) this.types[e] =
|
|
3137
|
+
for (e in o) this.types[e] = Ln(this.types[e] || [], o[e]);
|
|
3138
3138
|
} }, { key: "off", value: function(e, i) {
|
|
3139
3139
|
var o = Ce(e, i);
|
|
3140
3140
|
for (e in o) {
|
|
@@ -3234,7 +3234,7 @@ function rs() {
|
|
|
3234
3234
|
}
|
|
3235
3235
|
}
|
|
3236
3236
|
function v(y, E) {
|
|
3237
|
-
for (var P = vt(E), $ = new Xi(y), I = o[y.type], F =
|
|
3237
|
+
for (var P = vt(E), $ = new Xi(y), I = o[y.type], F = zn(y)[0], ne = F; T.element(ne); ) {
|
|
3238
3238
|
for (var K = 0; K < I.length; K++) {
|
|
3239
3239
|
var ce = I[K], ve = ce.selector, Ee = ce.context;
|
|
3240
3240
|
if (k(ne, ve) && G(Ee, F) && G(Ee, ne)) {
|
|
@@ -3280,7 +3280,7 @@ function rs() {
|
|
|
3280
3280
|
for (var d = 0, h = f.interactions.list; d < h.length; d++) {
|
|
3281
3281
|
var v = h[d];
|
|
3282
3282
|
if (v.pointerType === o) {
|
|
3283
|
-
if (v.simulation && !
|
|
3283
|
+
if (v.simulation && !ur(v, i)) continue;
|
|
3284
3284
|
if (v.interacting()) return v;
|
|
3285
3285
|
e || (e = v);
|
|
3286
3286
|
}
|
|
@@ -3294,7 +3294,7 @@ function rs() {
|
|
|
3294
3294
|
}, hasPointer: function(t) {
|
|
3295
3295
|
for (var e = t.pointerId, i = 0, o = t.scope.interactions.list; i < o.length; i++) {
|
|
3296
3296
|
var a = o[i];
|
|
3297
|
-
if (
|
|
3297
|
+
if (ur(a, e)) return a;
|
|
3298
3298
|
}
|
|
3299
3299
|
return null;
|
|
3300
3300
|
}, idle: function(t) {
|
|
@@ -3308,19 +3308,19 @@ function rs() {
|
|
|
3308
3308
|
}
|
|
3309
3309
|
return null;
|
|
3310
3310
|
} };
|
|
3311
|
-
function
|
|
3311
|
+
function ur(t, e) {
|
|
3312
3312
|
return t.pointers.some(function(i) {
|
|
3313
3313
|
return i.id === e;
|
|
3314
3314
|
});
|
|
3315
3315
|
}
|
|
3316
3316
|
var Wi = ln, un = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
|
|
3317
|
-
function
|
|
3317
|
+
function fr(t, e) {
|
|
3318
3318
|
return function(i) {
|
|
3319
|
-
var o = e.interactions.list, a =
|
|
3319
|
+
var o = e.interactions.list, a = Rn(i), f = zn(i), d = f[0], h = f[1], v = [];
|
|
3320
3320
|
if (/^touch/.test(i.type)) {
|
|
3321
3321
|
e.prevTouchTime = e.now();
|
|
3322
3322
|
for (var b = 0, y = i.changedTouches; b < y.length; b++) {
|
|
3323
|
-
var E = y[b], P = { pointer: E, pointerId: ft(E), pointerType: a, eventType: i.type, eventTarget: d, curEventTarget: h, scope: e }, $ =
|
|
3323
|
+
var E = y[b], P = { pointer: E, pointerId: ft(E), pointerType: a, eventType: i.type, eventTarget: d, curEventTarget: h, scope: e }, $ = dr(P);
|
|
3324
3324
|
v.push([P.pointer, P.eventTarget, P.curEventTarget, $]);
|
|
3325
3325
|
}
|
|
3326
3326
|
} else {
|
|
@@ -3330,7 +3330,7 @@ function rs() {
|
|
|
3330
3330
|
I = I || e.now() - e.prevTouchTime < 500 || i.timeStamp === 0;
|
|
3331
3331
|
}
|
|
3332
3332
|
if (!I) {
|
|
3333
|
-
var ne = { pointer: i, pointerId: ft(i), pointerType: a, eventType: i.type, curEventTarget: h, eventTarget: d, scope: e }, K =
|
|
3333
|
+
var ne = { pointer: i, pointerId: ft(i), pointerType: a, eventType: i.type, curEventTarget: h, eventTarget: d, scope: e }, K = dr(ne);
|
|
3334
3334
|
v.push([ne.pointer, ne.eventTarget, ne.curEventTarget, K]);
|
|
3335
3335
|
}
|
|
3336
3336
|
}
|
|
@@ -3340,7 +3340,7 @@ function rs() {
|
|
|
3340
3340
|
}
|
|
3341
3341
|
};
|
|
3342
3342
|
}
|
|
3343
|
-
function
|
|
3343
|
+
function dr(t) {
|
|
3344
3344
|
var e = t.pointerType, i = t.scope, o = { interaction: Wi.search(t), searchDetails: t };
|
|
3345
3345
|
return i.fire("interactions:find", o), o.interaction || i.interactions.new({ pointerType: e });
|
|
3346
3346
|
}
|
|
@@ -3355,7 +3355,7 @@ function rs() {
|
|
|
3355
3355
|
var Di = { id: "core/interactions", install: function(t) {
|
|
3356
3356
|
for (var e = {}, i = 0; i < un.length; i++) {
|
|
3357
3357
|
var o = un[i];
|
|
3358
|
-
e[o] =
|
|
3358
|
+
e[o] = fr(o, t);
|
|
3359
3359
|
}
|
|
3360
3360
|
var a, f = z.pEventTypes;
|
|
3361
3361
|
function d() {
|
|
@@ -3374,7 +3374,7 @@ function rs() {
|
|
|
3374
3374
|
b[v].documentBlur(h);
|
|
3375
3375
|
} }), t.prevTouchTime = 0, t.Interaction = function(h) {
|
|
3376
3376
|
x(b, h);
|
|
3377
|
-
var v =
|
|
3377
|
+
var v = M(b);
|
|
3378
3378
|
function b() {
|
|
3379
3379
|
return u(this, b), v.apply(this, arguments);
|
|
3380
3380
|
}
|
|
@@ -3391,7 +3391,7 @@ function rs() {
|
|
|
3391
3391
|
};
|
|
3392
3392
|
var v = new t.Interaction(h);
|
|
3393
3393
|
return t.interactions.list.push(v), v;
|
|
3394
|
-
}, listeners: e, docEvents: a, pointerMoveTolerance: 1 }, t.usePlugin(
|
|
3394
|
+
}, listeners: e, docEvents: a, pointerMoveTolerance: 1 }, t.usePlugin(Qn);
|
|
3395
3395
|
}, listeners: { "scope:add-document": function(t) {
|
|
3396
3396
|
return fn(t, "add");
|
|
3397
3397
|
}, "scope:remove-document": function(t) {
|
|
@@ -3401,11 +3401,11 @@ function rs() {
|
|
|
3401
3401
|
var a = e.interactions.list[o];
|
|
3402
3402
|
a.interactable === i && (a.stop(), e.fire("interactions:destroy", { interaction: a }), a.destroy(), e.interactions.list.length > 2 && e.interactions.list.splice(o, 1));
|
|
3403
3403
|
}
|
|
3404
|
-
} }, onDocSignal: fn, doOnInteractions:
|
|
3404
|
+
} }, onDocSignal: fn, doOnInteractions: fr, methodNames: un }, qi = Di, Ze = function(t) {
|
|
3405
3405
|
return t[t.On = 0] = "On", t[t.Off = 1] = "Off", t;
|
|
3406
3406
|
}(Ze || {}), Gi = function() {
|
|
3407
3407
|
function t(e, i, o, a) {
|
|
3408
|
-
u(this, t), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new
|
|
3408
|
+
u(this, t), this.target = void 0, this.options = void 0, this._actions = void 0, this.events = new lr(), this._context = void 0, this._win = void 0, this._doc = void 0, this._scopeEvents = void 0, this._actions = i.actions, this.target = e, this._context = i.context || o, this._win = Y(ae(e) ? this._context : e), this._doc = this._win.document, this._scopeEvents = a, this.set(i);
|
|
3409
3409
|
}
|
|
3410
3410
|
return g(t, [{ key: "_defaults", get: function() {
|
|
3411
3411
|
return { base: {}, perAction: {}, actions: {} };
|
|
@@ -3420,7 +3420,7 @@ function rs() {
|
|
|
3420
3420
|
var o = this._defaults;
|
|
3421
3421
|
for (var a in i) {
|
|
3422
3422
|
var f = a, d = this.options[e], h = i[f];
|
|
3423
|
-
f === "listeners" && this.updatePerActionListeners(e, d.listeners, h), T.array(h) ? d[f] =
|
|
3423
|
+
f === "listeners" && this.updatePerActionListeners(e, d.listeners, h), T.array(h) ? d[f] = Fn(h) : T.plainObject(h) ? (d[f] = A(d[f] || {}, lt(h)), T.object(o.perAction[f]) && "enabled" in o.perAction[f] && (d[f].enabled = h.enabled !== !1)) : T.bool(h) && T.object(o.perAction[f]) ? d[f].enabled = h : d[f] = h;
|
|
3424
3424
|
}
|
|
3425
3425
|
} }, { key: "getRect", value: function(e) {
|
|
3426
3426
|
return e = e || (T.element(this.target) ? this.target : null), T.string(this.target) && (e = e || this._context.querySelector(this.target)), oe(e);
|
|
@@ -3514,12 +3514,12 @@ function rs() {
|
|
|
3514
3514
|
}(), Ji = function() {
|
|
3515
3515
|
function t() {
|
|
3516
3516
|
var e = this;
|
|
3517
|
-
u(this, t), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = z, this.defaults = lt(
|
|
3517
|
+
u(this, t), this.id = "__interact_scope_".concat(Math.floor(100 * Math.random())), this.isInitialized = !1, this.listenerMaps = [], this.browser = z, this.defaults = lt(tr), this.Eventable = lr, this.actions = { map: {}, phases: { start: !0, move: !0, end: !0 }, methodDict: {}, phaselessTypes: {} }, this.interactStatic = function(o) {
|
|
3518
3518
|
var a = function f(d, h) {
|
|
3519
3519
|
var v = o.interactables.getExisting(d, h);
|
|
3520
3520
|
return v || ((v = o.interactables.new(d, h)).events.global = f.globalEvents), v;
|
|
3521
3521
|
};
|
|
3522
|
-
return a.getPointerAverage =
|
|
3522
|
+
return a.getPointerAverage = jn, a.getTouchBBox = Dt, a.getTouchDistance = qt, a.getTouchAngle = Gt, a.getElementRect = oe, a.getElementClientRect = pe, a.matchesSelector = k, a.closest = Z, a.globalEvents = {}, a.version = "1.10.27", a.scope = o, a.use = function(f, d) {
|
|
3523
3523
|
return this.scope.usePlugin(f, d), this;
|
|
3524
3524
|
}, a.isSet = function(f, d) {
|
|
3525
3525
|
return !!this.scope.interactables.get(f, d && d.context);
|
|
@@ -3572,7 +3572,7 @@ function rs() {
|
|
|
3572
3572
|
var i = this;
|
|
3573
3573
|
this.Interactable = function(o) {
|
|
3574
3574
|
x(f, o);
|
|
3575
|
-
var a =
|
|
3575
|
+
var a = M(f);
|
|
3576
3576
|
function f() {
|
|
3577
3577
|
return u(this, f), a.apply(this, arguments);
|
|
3578
3578
|
}
|
|
@@ -3606,10 +3606,10 @@ function rs() {
|
|
|
3606
3606
|
if (this.pluginIsInstalled(e)) return this;
|
|
3607
3607
|
if (e.id && (this._plugins.map[e.id] = e), this._plugins.list.push(e), e.install && e.install(this, i), e.listeners && e.before) {
|
|
3608
3608
|
for (var o = 0, a = this.listenerMaps.length, f = e.before.reduce(function(h, v) {
|
|
3609
|
-
return h[v] = !0, h[
|
|
3609
|
+
return h[v] = !0, h[hr(v)] = !0, h;
|
|
3610
3610
|
}, {}); o < a; o++) {
|
|
3611
3611
|
var d = this.listenerMaps[o].id;
|
|
3612
|
-
if (d && (f[d] || f[
|
|
3612
|
+
if (d && (f[d] || f[hr(d)])) break;
|
|
3613
3613
|
}
|
|
3614
3614
|
this.listenerMaps.splice(o, 0, { id: e.id, map: e.listeners });
|
|
3615
3615
|
} else e.listeners && this.listenerMaps.push({ id: e.id, map: e.listeners });
|
|
@@ -3631,11 +3631,11 @@ function rs() {
|
|
|
3631
3631
|
return (this.window.Date || Date).now();
|
|
3632
3632
|
} }]), t;
|
|
3633
3633
|
}();
|
|
3634
|
-
function
|
|
3634
|
+
function hr(t) {
|
|
3635
3635
|
return t && t.replace(/\/.*$/, "");
|
|
3636
3636
|
}
|
|
3637
|
-
var
|
|
3638
|
-
|
|
3637
|
+
var pr = new Ji(), _e = pr.interactStatic, Zi = typeof globalThis < "u" ? globalThis : window;
|
|
3638
|
+
pr.init(Zi);
|
|
3639
3639
|
var Qi = Object.freeze({ __proto__: null, edgeTarget: function() {
|
|
3640
3640
|
}, elements: function() {
|
|
3641
3641
|
}, grid: function(t) {
|
|
@@ -3687,10 +3687,10 @@ function rs() {
|
|
|
3687
3687
|
i.x = f.x + (b - a.width) * h.x;
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
|
-
var oo = Je(no, "aspectRatio"),
|
|
3690
|
+
var oo = Je(no, "aspectRatio"), gr = function() {
|
|
3691
3691
|
};
|
|
3692
|
-
|
|
3693
|
-
var _t =
|
|
3692
|
+
gr._defaults = {};
|
|
3693
|
+
var _t = gr;
|
|
3694
3694
|
function rt(t, e, i) {
|
|
3695
3695
|
return T.func(t) ? we(t, e.interactable, e.element, [i.x, i.y, e]) : we(t, e.interactable, e.element);
|
|
3696
3696
|
}
|
|
@@ -3713,22 +3713,22 @@ function rs() {
|
|
|
3713
3713
|
}(d);
|
|
3714
3714
|
e.x = Math.max(Math.min(h.right - f.right, e.x), h.left + f.left), e.y = Math.max(Math.min(h.bottom - f.bottom, e.y), h.top + f.top);
|
|
3715
3715
|
}
|
|
3716
|
-
}, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, so = Je(jt, "restrict"),
|
|
3717
|
-
function
|
|
3716
|
+
}, defaults: { restriction: null, elementRect: null, offset: null, endOnly: !1, enabled: !1 } }, so = Je(jt, "restrict"), vr = { top: 1 / 0, left: 1 / 0, bottom: -1 / 0, right: -1 / 0 }, mr = { top: -1 / 0, left: -1 / 0, bottom: 1 / 0, right: 1 / 0 };
|
|
3717
|
+
function yr(t, e) {
|
|
3718
3718
|
for (var i = 0, o = ["top", "left", "bottom", "right"]; i < o.length; i++) {
|
|
3719
3719
|
var a = o[i];
|
|
3720
3720
|
a in t || (t[a] = e[a]);
|
|
3721
3721
|
}
|
|
3722
3722
|
return t;
|
|
3723
3723
|
}
|
|
3724
|
-
var mt = { noInner:
|
|
3724
|
+
var mt = { noInner: vr, noOuter: mr, start: function(t) {
|
|
3725
3725
|
var e, i = t.interaction, o = t.startOffset, a = t.state, f = a.options;
|
|
3726
3726
|
f && (e = Ie(rt(f.offset, i, i.coords.start.page))), e = e || { x: 0, y: 0 }, a.offset = { top: e.y + o.top, left: e.x + o.left, bottom: e.y - o.bottom, right: e.x - o.right };
|
|
3727
3727
|
}, set: function(t) {
|
|
3728
3728
|
var e = t.coords, i = t.edges, o = t.interaction, a = t.state, f = a.offset, d = a.options;
|
|
3729
3729
|
if (i) {
|
|
3730
3730
|
var h = A({}, e), v = rt(d.inner, o, h) || {}, b = rt(d.outer, o, h) || {};
|
|
3731
|
-
|
|
3731
|
+
yr(v, vr), yr(b, mr), i.top ? e.y = Math.min(Math.max(b.top + f.top, h.y), v.top + f.top) : i.bottom && (e.y = Math.max(Math.min(b.bottom + f.bottom, h.y), v.bottom + f.bottom)), i.left ? e.x = Math.min(Math.max(b.left + f.left, h.x), v.left + f.left) : i.right && (e.x = Math.max(Math.min(b.right + f.right, h.x), v.right + f.right));
|
|
3732
3732
|
}
|
|
3733
3733
|
}, defaults: { inner: null, outer: null, offset: null, endOnly: !1, enabled: !1 } }, ao = Je(mt, "restrictEdges"), co = A({ get elementRect() {
|
|
3734
3734
|
return { top: 0, left: 0, bottom: 1, right: 1 };
|
|
@@ -3794,16 +3794,16 @@ function rs() {
|
|
|
3794
3794
|
return e ? (t.state.targetFields = t.state.targetFields || [[e.left ? "left" : "right", e.top ? "top" : "bottom"]], Rt.start(t)) : null;
|
|
3795
3795
|
}, set: Rt.set, defaults: A(lt(Rt.defaults), { targets: void 0, range: void 0, offset: { x: 0, y: 0 } }) }, "snapEdges"), snap: po, snapSize: go, spring: _t, avoid: _t, transform: _t, rubberband: _t }, vo = { id: "modifiers", install: function(t) {
|
|
3796
3796
|
var e = t.interactStatic;
|
|
3797
|
-
for (var i in t.usePlugin(
|
|
3797
|
+
for (var i in t.usePlugin(er), t.usePlugin(to), e.modifiers = hn, hn) {
|
|
3798
3798
|
var o = hn[i], a = o._defaults, f = o._methods;
|
|
3799
3799
|
a._methods = f, t.defaults.perAction[i] = a;
|
|
3800
3800
|
}
|
|
3801
|
-
} }, mo = vo,
|
|
3801
|
+
} }, mo = vo, br = function(t) {
|
|
3802
3802
|
x(i, t);
|
|
3803
|
-
var e =
|
|
3803
|
+
var e = M(i);
|
|
3804
3804
|
function i(o, a, f, d, h, v) {
|
|
3805
3805
|
var b;
|
|
3806
|
-
if (u(this, i), Be(O(b = e.call(this, h)), f), f !== a && Be(O(b), a), b.timeStamp = v, b.originalEvent = f, b.type = o, b.pointerId = ft(a), b.pointerType =
|
|
3806
|
+
if (u(this, i), Be(O(b = e.call(this, h)), f), f !== a && Be(O(b), a), b.timeStamp = v, b.originalEvent = f, b.type = o, b.pointerId = ft(a), b.pointerType = Rn(a), b.target = d, b.currentTarget = null, o === "tap") {
|
|
3807
3807
|
var y = h.getPointerIndex(a);
|
|
3808
3808
|
b.dt = b.timeStamp - h.pointers[y].downTime;
|
|
3809
3809
|
var E = b.timeStamp - h.tapTime;
|
|
@@ -3854,9 +3854,9 @@ function rs() {
|
|
|
3854
3854
|
}(t, e);
|
|
3855
3855
|
}, "interactions:cancel": function(t, e) {
|
|
3856
3856
|
pn(t), Qe(t, e);
|
|
3857
|
-
} }, PointerEvent:
|
|
3857
|
+
} }, PointerEvent: br, fire: Qe, collectEventTargets: xr, defaults: { holdDuration: 600, ignoreFrom: null, allowFrom: null, origin: { x: 0, y: 0 } }, types: { down: !0, move: !0, up: !0, cancel: !0, tap: !0, doubletap: !0, hold: !0 } };
|
|
3858
3858
|
function Qe(t, e) {
|
|
3859
|
-
var i = t.interaction, o = t.pointer, a = t.event, f = t.eventTarget, d = t.type, h = t.targets, v = h === void 0 ?
|
|
3859
|
+
var i = t.interaction, o = t.pointer, a = t.event, f = t.eventTarget, d = t.type, h = t.targets, v = h === void 0 ? xr(t, e) : h, b = new br(d, o, a, f, i, e.now());
|
|
3860
3860
|
e.fire("pointerEvents:new", { pointerEvent: b });
|
|
3861
3861
|
for (var y = { interaction: i, pointer: o, event: a, eventTarget: f, targets: v, type: d, pointerEvent: b }, E = 0; E < v.length; E++) {
|
|
3862
3862
|
var P = v[E];
|
|
@@ -3870,7 +3870,7 @@ function rs() {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
return b;
|
|
3872
3872
|
}
|
|
3873
|
-
function
|
|
3873
|
+
function xr(t, e) {
|
|
3874
3874
|
var i = t.interaction, o = t.pointer, a = t.event, f = t.eventTarget, d = t.type, h = i.getPointerIndex(o), v = i.pointers[h];
|
|
3875
3875
|
if (d === "tap" && (i.pointerWasMoved || !v || v.downTarget !== f)) return [];
|
|
3876
3876
|
for (var b = te(f), y = { interaction: i, pointer: o, event: a, eventTarget: f, type: d, path: b, targets: [], node: null }, E = 0; E < b.length; E++) {
|
|
@@ -3998,7 +3998,7 @@ function rs() {
|
|
|
3998
3998
|
o.splice(o.indexOf(a), 1);
|
|
3999
3999
|
}(e.interactions.list, i));
|
|
4000
4000
|
} } }, ko = Po;
|
|
4001
|
-
if (_e.use(
|
|
4001
|
+
if (_e.use(Qn), _e.use(or), _e.use(No), _e.use(Vi), _e.use(mo), _e.use(Ci), _e.use(xi), _e.use(Ei), _e.use(ko), _e.default = _e, l(r) === "object" && r) try {
|
|
4002
4002
|
r.exports = _e;
|
|
4003
4003
|
} catch {
|
|
4004
4004
|
}
|
|
@@ -4007,7 +4007,7 @@ function rs() {
|
|
|
4007
4007
|
}(Yt)), Yt.exports;
|
|
4008
4008
|
}
|
|
4009
4009
|
var is = /* @__PURE__ */ rs();
|
|
4010
|
-
const
|
|
4010
|
+
const Cr = /* @__PURE__ */ ni(is);
|
|
4011
4011
|
function Nt(r, {
|
|
4012
4012
|
initialValue: n,
|
|
4013
4013
|
transform: s,
|
|
@@ -4016,28 +4016,28 @@ function Nt(r, {
|
|
|
4016
4016
|
onDragEnd: u,
|
|
4017
4017
|
...p
|
|
4018
4018
|
}, g) {
|
|
4019
|
-
const m = (
|
|
4020
|
-
return he(() => (r.current &&
|
|
4019
|
+
const m = (V) => Ge(x.current, V) ? !1 : (x.current = V, !0), x = Te(n), [w, N] = ke(!1), [O, M] = ke(!1), [_, B] = ke(!1), [W, D] = ke(n);
|
|
4020
|
+
return he(() => (r.current && Cr(r.current).draggable({
|
|
4021
4021
|
inertia: !0,
|
|
4022
4022
|
...p,
|
|
4023
4023
|
onstart: () => {
|
|
4024
|
-
N(!0),
|
|
4024
|
+
N(!0), M(!0), B(!1), c?.();
|
|
4025
4025
|
},
|
|
4026
|
-
onmove: ({ dx:
|
|
4027
|
-
const Y = s(x.current,
|
|
4028
|
-
m(Y) && D(Y),
|
|
4026
|
+
onmove: ({ dx: V, dy: j }) => {
|
|
4027
|
+
const Y = s(x.current, V, j);
|
|
4028
|
+
m(Y) && D(Y), M(!0), B(!1), l?.(V, j);
|
|
4029
4029
|
},
|
|
4030
4030
|
onend: () => {
|
|
4031
|
-
|
|
4031
|
+
M(!1), B(!0), u?.();
|
|
4032
4032
|
}
|
|
4033
4033
|
}), () => {
|
|
4034
|
-
r.current &&
|
|
4034
|
+
r.current && Cr(r.current).unset();
|
|
4035
4035
|
}), [...g ?? []]), he(() => {
|
|
4036
4036
|
w || D(n);
|
|
4037
4037
|
}, [n]), he(() => {
|
|
4038
4038
|
m(W);
|
|
4039
4039
|
}, [W]), {
|
|
4040
|
-
isDragging: [O,
|
|
4040
|
+
isDragging: [O, M],
|
|
4041
4041
|
isReleasing: [_, B],
|
|
4042
4042
|
value: [W, D]
|
|
4043
4043
|
};
|
|
@@ -4106,7 +4106,7 @@ function st(r) {
|
|
|
4106
4106
|
const u = se.from(l);
|
|
4107
4107
|
u && s(u);
|
|
4108
4108
|
};
|
|
4109
|
-
return
|
|
4109
|
+
return Mn(r, {
|
|
4110
4110
|
onResize: (l) => c(l)
|
|
4111
4111
|
}), n;
|
|
4112
4112
|
}
|
|
@@ -4129,19 +4129,23 @@ function cc({ onChange: r }, n = []) {
|
|
|
4129
4129
|
window.removeEventListener("scroll", s), window.removeEventListener("resize", s), window.removeEventListener("orientationchange", s);
|
|
4130
4130
|
}), [...n]);
|
|
4131
4131
|
}
|
|
4132
|
-
function lc(r, n, {
|
|
4133
|
-
|
|
4132
|
+
function lc(r, n, {
|
|
4133
|
+
mapSearchParamToState: s,
|
|
4134
|
+
mapStateToSearchParam: c,
|
|
4135
|
+
shouldPopulateDefaultState: l = !1
|
|
4136
|
+
} = {}) {
|
|
4137
|
+
const u = (O, M) => s ? s(O) : O || M, p = (O) => c ? c(O) : !l && O === n ? void 0 : `${O}`, [g, m] = _o(), x = u(g.get(r) ?? void 0, n), [w, N] = ke(x);
|
|
4134
4138
|
return he(() => {
|
|
4135
|
-
const
|
|
4136
|
-
|
|
4137
|
-
}, [
|
|
4139
|
+
const O = g.get(r), M = p(w);
|
|
4140
|
+
M !== O && (M ? g.set(r, M) : g.delete(r), m(g));
|
|
4141
|
+
}, [w]), [w, N];
|
|
4138
4142
|
}
|
|
4139
4143
|
function cs(r = 0, { autoStart: n = !0, onTimeout: s } = {}, c = []) {
|
|
4140
|
-
const l = Te(void 0), u = Te(void 0), p =
|
|
4144
|
+
const l = Te(void 0), u = Te(void 0), p = wr(() => {
|
|
4141
4145
|
g(), !(r < 0) && (l.current = setTimeout(() => {
|
|
4142
4146
|
g(), u.current?.();
|
|
4143
4147
|
}, r));
|
|
4144
|
-
}, [r]), g =
|
|
4148
|
+
}, [r]), g = wr(() => {
|
|
4145
4149
|
clearTimeout(l.current), l.current = void 0;
|
|
4146
4150
|
}, []);
|
|
4147
4151
|
return he(() => {
|
|
@@ -4192,45 +4196,45 @@ const fc = /* @__PURE__ */ Se(({
|
|
|
4192
4196
|
ItemComponent: x,
|
|
4193
4197
|
...w
|
|
4194
4198
|
}, N) => {
|
|
4195
|
-
const O = (L) => m?.(L),
|
|
4196
|
-
j.current = ye.make(L.clientX, L.clientY),
|
|
4199
|
+
const O = (L) => m?.(L), M = (L) => {
|
|
4200
|
+
j.current = ye.make(L.clientX, L.clientY), X(!0);
|
|
4197
4201
|
}, _ = (L) => {
|
|
4198
|
-
Y.current = ye.make(L.clientX, L.clientY), ie &&
|
|
4202
|
+
Y.current = ye.make(L.clientX, L.clientY), ie && X(!1);
|
|
4199
4203
|
}, B = (L) => {
|
|
4200
|
-
const R = j.current,
|
|
4201
|
-
if (!R || !
|
|
4202
|
-
const z = 5, G = R.subtract(
|
|
4204
|
+
const R = j.current, C = Y.current;
|
|
4205
|
+
if (!R || !C) return;
|
|
4206
|
+
const z = 5, G = R.subtract(C);
|
|
4203
4207
|
(Math.abs(G.x) > z || Math.abs(G.y) > z) && L.stopPropagation(), j.current = void 0, Y.current = void 0;
|
|
4204
4208
|
}, W = () => {
|
|
4205
|
-
fs(
|
|
4209
|
+
fs(V, n, l), clearTimeout(U.current), U.current = setTimeout(() => {
|
|
4206
4210
|
clearTimeout(U.current), U.current = void 0;
|
|
4207
4211
|
}, H);
|
|
4208
|
-
}, D = Te(void 0),
|
|
4212
|
+
}, D = Te(void 0), V = Te(null), j = Te(void 0), Y = Te(void 0), U = Te(void 0), H = 1e3, [T, re] = ke(vn(V, l)), [ie, X] = ke(!1), ee = hs({ scrollSnapEnabled: !ie, orientation: l }), q = r > 0;
|
|
4209
4213
|
return he(() => {
|
|
4210
|
-
const L =
|
|
4214
|
+
const L = V.current;
|
|
4211
4215
|
if (!L) return;
|
|
4212
|
-
const R = D.current === void 0,
|
|
4213
|
-
if (u && re(
|
|
4216
|
+
const R = D.current === void 0, C = D.current === n, z = (G) => {
|
|
4217
|
+
if (u && re(vn(V, l)), U.current !== void 0) return;
|
|
4214
4218
|
const Z = Math.round(l === "horizontal" ? L.scrollLeft / L.clientWidth : L.scrollTop / L.clientHeight), Q = Math.max(0, Math.min(c.length - 1, Z));
|
|
4215
4219
|
Q !== n && (D.current = Q, O(Q));
|
|
4216
4220
|
};
|
|
4217
|
-
return L.addEventListener("scroll", z),
|
|
4221
|
+
return L.addEventListener("scroll", z), u && re(vn(V, l)), C || (D.current = n, R || (O(n), W())), () => {
|
|
4218
4222
|
L.removeEventListener("scroll", z);
|
|
4219
4223
|
};
|
|
4220
4224
|
}, [n, l, u]), he(() => {
|
|
4221
4225
|
q && (ie ? p?.() : g?.());
|
|
4222
|
-
}, [ie, q]), ts(
|
|
4226
|
+
}, [ie, q]), ts(V, {
|
|
4223
4227
|
isEnabled: s && c.length > 1,
|
|
4224
4228
|
onDragMove: ({ x: L, y: R }) => {
|
|
4225
4229
|
switch (l) {
|
|
4226
4230
|
case "horizontal":
|
|
4227
4231
|
requestAnimationFrame(() => {
|
|
4228
|
-
|
|
4232
|
+
V.current && (V.current.scrollLeft += L * 1.5);
|
|
4229
4233
|
});
|
|
4230
4234
|
break;
|
|
4231
4235
|
case "vertical":
|
|
4232
4236
|
requestAnimationFrame(() => {
|
|
4233
|
-
|
|
4237
|
+
V.current && (V.current.scrollTop += R * 1.5);
|
|
4234
4238
|
});
|
|
4235
4239
|
break;
|
|
4236
4240
|
default:
|
|
@@ -4250,14 +4254,14 @@ const fc = /* @__PURE__ */ Se(({
|
|
|
4250
4254
|
role: "region",
|
|
4251
4255
|
onClick: (L) => B(L),
|
|
4252
4256
|
onPointerCancel: (L) => _(L),
|
|
4253
|
-
onPointerDown: (L) =>
|
|
4257
|
+
onPointerDown: (L) => M(L),
|
|
4254
4258
|
onPointerLeave: (L) => _(L),
|
|
4255
4259
|
onPointerUp: (L) => _(L),
|
|
4256
|
-
children: /* @__PURE__ */ S.jsx("div", { ref:
|
|
4260
|
+
children: /* @__PURE__ */ S.jsx("div", { ref: V, style: le(ee.viewport), children: /* @__PURE__ */ S.jsx(Cn, { in: c, children: ({ style: L, ...R }, C) => /* @__PURE__ */ S.jsx("div", { style: le(ee.itemContainer), children: /* @__PURE__ */ S.jsx(
|
|
4257
4261
|
x,
|
|
4258
4262
|
{
|
|
4259
|
-
"aria-hidden":
|
|
4260
|
-
exposure: u ? T?.[
|
|
4263
|
+
"aria-hidden": C !== n,
|
|
4264
|
+
exposure: u ? T?.[C] : void 0,
|
|
4261
4265
|
style: le(L, ee.item),
|
|
4262
4266
|
...R
|
|
4263
4267
|
}
|
|
@@ -4271,7 +4275,7 @@ function fs(r, n, s) {
|
|
|
4271
4275
|
const l = s === "horizontal" ? 0 : c.clientHeight * n, u = s === "horizontal" ? c.clientWidth * n : 0;
|
|
4272
4276
|
c.scrollTop === l && c.scrollLeft === u || c.scrollTo({ top: l, left: u, behavior: "smooth" });
|
|
4273
4277
|
}
|
|
4274
|
-
function
|
|
4278
|
+
function vn(r, n) {
|
|
4275
4279
|
const s = r?.current;
|
|
4276
4280
|
if (!s) return;
|
|
4277
4281
|
const c = [];
|
|
@@ -4344,12 +4348,12 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4344
4348
|
...w
|
|
4345
4349
|
}, N) => {
|
|
4346
4350
|
const O = (B) => {
|
|
4347
|
-
const W = B !== n ? p?.(
|
|
4348
|
-
W !==
|
|
4349
|
-
},
|
|
4351
|
+
const W = B !== n ? p?.(M, B) ?? B : n;
|
|
4352
|
+
W !== M && x?.(W);
|
|
4353
|
+
}, M = u ?? n, _ = si(M);
|
|
4350
4354
|
return he(() => {
|
|
4351
|
-
_ !== void 0 && O(
|
|
4352
|
-
}, [
|
|
4355
|
+
_ !== void 0 && O(M);
|
|
4356
|
+
}, [M]), /* @__PURE__ */ S.jsx(
|
|
4353
4357
|
"input",
|
|
4354
4358
|
{
|
|
4355
4359
|
...w,
|
|
@@ -4362,7 +4366,7 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4362
4366
|
placeholder: l,
|
|
4363
4367
|
required: c,
|
|
4364
4368
|
type: "text",
|
|
4365
|
-
value:
|
|
4369
|
+
value: M,
|
|
4366
4370
|
onBlur: ({ target: B }) => m?.(B.value),
|
|
4367
4371
|
onChange: ({ target: B }) => O(B.value),
|
|
4368
4372
|
onFocus: ({ target: B }) => g?.(B.value)
|
|
@@ -4386,18 +4390,18 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4386
4390
|
D(H);
|
|
4387
4391
|
}, O = (H) => {
|
|
4388
4392
|
const T = _(H);
|
|
4389
|
-
T !== u ? p?.(T) : D(
|
|
4390
|
-
},
|
|
4393
|
+
T !== u ? p?.(T) : D(M(T));
|
|
4394
|
+
}, M = (H) => H.toLocaleString(), _ = (H) => {
|
|
4391
4395
|
const T = parseInt(H, 10);
|
|
4392
4396
|
return T.toString() !== H.replace(/^0+/, "") ? u : B(T);
|
|
4393
4397
|
}, B = (H) => {
|
|
4394
4398
|
let T = H;
|
|
4395
4399
|
return isNaN(l) || (T = Math.max(l, T)), isNaN(c) || (T = Math.min(c, T)), T;
|
|
4396
|
-
}, [W, D] = ke(
|
|
4400
|
+
}, [W, D] = ke(M(u)), V = si(u), j = !isNaN(c) && u + 1 > c, Y = !isNaN(l) && u - 1 < l;
|
|
4397
4401
|
he(() => {
|
|
4398
|
-
if (
|
|
4402
|
+
if (V === void 0 || V === u) return;
|
|
4399
4403
|
const H = B(u);
|
|
4400
|
-
D(
|
|
4404
|
+
D(M(H));
|
|
4401
4405
|
}, [u, l, c]);
|
|
4402
4406
|
const U = He(r, {
|
|
4403
4407
|
textField: Ir,
|
|
@@ -4465,9 +4469,9 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4465
4469
|
if (W !== void 0 && _ !== void 0) throw Error("Only one of `width` or `pixelDensity` can be specified.");
|
|
4466
4470
|
let D = B;
|
|
4467
4471
|
if (W !== void 0) {
|
|
4468
|
-
const
|
|
4469
|
-
if (!isFinite(
|
|
4470
|
-
D += ` ${
|
|
4472
|
+
const V = Math.floor(W);
|
|
4473
|
+
if (!isFinite(V) || String(V) !== String(W) || V <= 0) throw Error("The specified width must be a positive integer greater than 0");
|
|
4474
|
+
D += ` ${V}w`;
|
|
4471
4475
|
} else if (_ !== void 0) {
|
|
4472
4476
|
if (!isFinite(_) || _ <= 0) throw Error("The specified pixel density must be a positive floating number than 0");
|
|
4473
4477
|
D += ` ${_}x`;
|
|
@@ -4475,10 +4479,10 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4475
4479
|
return D;
|
|
4476
4480
|
}).join(", "), O = s?.map(({ mediaCondition: _, width: B }, W) => {
|
|
4477
4481
|
const D = W === s.length - 1;
|
|
4478
|
-
let
|
|
4482
|
+
let V = B;
|
|
4479
4483
|
if (D && _) throw Error("The last item in `sizes` must not have a `mediaCondition` specified.");
|
|
4480
|
-
return _ && (
|
|
4481
|
-
}).join(", "),
|
|
4484
|
+
return _ && (V = `${_} ${V}`), V;
|
|
4485
|
+
}).join(", "), M = oi({
|
|
4482
4486
|
src: c,
|
|
4483
4487
|
srcSet: N,
|
|
4484
4488
|
sizes: O
|
|
@@ -4488,8 +4492,8 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4488
4492
|
onLoadError: g
|
|
4489
4493
|
});
|
|
4490
4494
|
return he(() => {
|
|
4491
|
-
m?.(
|
|
4492
|
-
}, [
|
|
4495
|
+
m?.(M);
|
|
4496
|
+
}, [M]), /* @__PURE__ */ S.jsx(
|
|
4493
4497
|
"img",
|
|
4494
4498
|
{
|
|
4495
4499
|
...x,
|
|
@@ -4515,11 +4519,11 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4515
4519
|
onLoadError: w,
|
|
4516
4520
|
...N
|
|
4517
4521
|
}, O) => {
|
|
4518
|
-
const
|
|
4522
|
+
const M = (T) => {
|
|
4519
4523
|
D(T ? T.width / T.height : NaN);
|
|
4520
|
-
}, _ = Te(null), B = O ?? _, [W, D] = ke(NaN),
|
|
4521
|
-
Y > 1 ? Math.max(j.width, j.height *
|
|
4522
|
-
Y > 1 ? Math.max(j.height, Math.max(j.width, j.height *
|
|
4524
|
+
}, _ = Te(null), B = O ?? _, [W, D] = ke(NaN), V = isNaN(c) ? W : c, j = st(B), Y = j.width / j.height, U = Ae.make(
|
|
4525
|
+
Y > 1 ? Math.max(j.width, j.height * V) : Math.max(j.width, Math.max(j.height, j.width / V) * V),
|
|
4526
|
+
Y > 1 ? Math.max(j.height, Math.max(j.width, j.height * V) / V) : Math.max(j.height, j.width / V)
|
|
4523
4527
|
), H = He(r, {
|
|
4524
4528
|
content: ms,
|
|
4525
4529
|
viewport: vs
|
|
@@ -4529,7 +4533,7 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4529
4533
|
{
|
|
4530
4534
|
...N,
|
|
4531
4535
|
ref: B,
|
|
4532
|
-
style: le(n,
|
|
4536
|
+
style: le(n, mn.root),
|
|
4533
4537
|
children: [
|
|
4534
4538
|
/* @__PURE__ */ S.jsx(
|
|
4535
4539
|
gs,
|
|
@@ -4538,7 +4542,7 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4538
4542
|
sizes: u,
|
|
4539
4543
|
src: p,
|
|
4540
4544
|
srcSet: g,
|
|
4541
|
-
style: le(
|
|
4545
|
+
style: le(mn.viewport, {
|
|
4542
4546
|
height: `${U.height}px`,
|
|
4543
4547
|
maxWidth: "unset",
|
|
4544
4548
|
width: `${U.width}px`
|
|
@@ -4546,11 +4550,11 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4546
4550
|
onLoadComplete: x,
|
|
4547
4551
|
onLoadError: w,
|
|
4548
4552
|
onLoadStart: m,
|
|
4549
|
-
onSizeChange: (T) =>
|
|
4553
|
+
onSizeChange: (T) => M(T)
|
|
4550
4554
|
}
|
|
4551
4555
|
),
|
|
4552
4556
|
H.viewport && Ne(H.viewport, {
|
|
4553
|
-
style: le(
|
|
4557
|
+
style: le(mn.viewport, {
|
|
4554
4558
|
height: `${U.height}px`,
|
|
4555
4559
|
pointerEvents: "none",
|
|
4556
4560
|
width: `${U.width}px`
|
|
@@ -4560,7 +4564,7 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4560
4564
|
]
|
|
4561
4565
|
}
|
|
4562
4566
|
);
|
|
4563
|
-
}), vs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), ms = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }),
|
|
4567
|
+
}), vs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), ms = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), mn = {
|
|
4564
4568
|
root: {
|
|
4565
4569
|
overflow: "hidden"
|
|
4566
4570
|
},
|
|
@@ -4585,13 +4589,13 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4585
4589
|
onLoadMetadata: w,
|
|
4586
4590
|
onLoadMetadataComplete: N,
|
|
4587
4591
|
onLoadMetadataError: O,
|
|
4588
|
-
onPause:
|
|
4592
|
+
onPause: M,
|
|
4589
4593
|
onPlay: _,
|
|
4590
4594
|
onSizeChange: B,
|
|
4591
4595
|
onTimeUpdate: W,
|
|
4592
4596
|
...D
|
|
4593
|
-
},
|
|
4594
|
-
const j = Te(null), Y =
|
|
4597
|
+
}, V) => {
|
|
4598
|
+
const j = Te(null), Y = V ?? j, U = ls({
|
|
4595
4599
|
src: p
|
|
4596
4600
|
}, {
|
|
4597
4601
|
onLoadStart: w,
|
|
@@ -4601,9 +4605,9 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4601
4605
|
he(() => {
|
|
4602
4606
|
if (Y.current) {
|
|
4603
4607
|
if (p.toLowerCase().endsWith(".m3u8")) {
|
|
4604
|
-
const R = !!Y.current.canPlayType("application/x-mpegURL"),
|
|
4605
|
-
if (!R &&
|
|
4606
|
-
const z = new
|
|
4608
|
+
const R = !!Y.current.canPlayType("application/x-mpegURL"), C = typeof window < "u" && typeof window.Hls < "u" ? window.Hls : void 0;
|
|
4609
|
+
if (!R && C?.isSupported()) {
|
|
4610
|
+
const z = new C();
|
|
4607
4611
|
z.loadSource(p), z.attachMedia(Y.current);
|
|
4608
4612
|
}
|
|
4609
4613
|
}
|
|
@@ -4615,20 +4619,20 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4615
4619
|
B?.(U);
|
|
4616
4620
|
}, [U]);
|
|
4617
4621
|
const H = (R) => {
|
|
4618
|
-
const
|
|
4619
|
-
|
|
4622
|
+
const C = document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen;
|
|
4623
|
+
C !== void 0 && x?.(C);
|
|
4620
4624
|
}, T = (R) => {
|
|
4621
|
-
const
|
|
4622
|
-
n &&
|
|
4625
|
+
const C = R.currentTarget;
|
|
4626
|
+
n && C.paused && q(), g?.();
|
|
4623
4627
|
}, re = (R) => {
|
|
4624
4628
|
_?.();
|
|
4625
4629
|
}, ie = (R) => {
|
|
4626
|
-
|
|
4627
|
-
},
|
|
4630
|
+
M?.();
|
|
4631
|
+
}, X = (R) => {
|
|
4628
4632
|
m?.();
|
|
4629
4633
|
}, ee = (R) => {
|
|
4630
|
-
const
|
|
4631
|
-
W?.(
|
|
4634
|
+
const C = R.currentTarget;
|
|
4635
|
+
W?.(C.currentTime, C.duration);
|
|
4632
4636
|
}, q = () => {
|
|
4633
4637
|
Y.current && Y.current.play();
|
|
4634
4638
|
}, L = () => {
|
|
@@ -4646,7 +4650,7 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4646
4650
|
playsInline: l,
|
|
4647
4651
|
poster: u,
|
|
4648
4652
|
onCanPlay: T,
|
|
4649
|
-
onEnded:
|
|
4653
|
+
onEnded: X,
|
|
4650
4654
|
onPause: ie,
|
|
4651
4655
|
onPlay: re,
|
|
4652
4656
|
onTimeUpdate: ee,
|
|
@@ -4667,21 +4671,21 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4667
4671
|
src: w,
|
|
4668
4672
|
onCanPlay: N,
|
|
4669
4673
|
onEnd: O,
|
|
4670
|
-
onFullscreenChange:
|
|
4674
|
+
onFullscreenChange: M,
|
|
4671
4675
|
onLoadMetadata: _,
|
|
4672
4676
|
onLoadMetadataComplete: B,
|
|
4673
4677
|
onLoadMetadataError: W,
|
|
4674
4678
|
onPause: D,
|
|
4675
|
-
onPlay:
|
|
4679
|
+
onPlay: V,
|
|
4676
4680
|
onSizeChange: j,
|
|
4677
4681
|
...Y
|
|
4678
4682
|
}, U) => {
|
|
4679
4683
|
const H = (z) => {
|
|
4680
|
-
|
|
4681
|
-
}, T = Te(null), re = U ?? T, [ie,
|
|
4684
|
+
X(z ? z.width / z.height : NaN), j?.(z);
|
|
4685
|
+
}, T = Te(null), re = U ?? T, [ie, X] = ke(NaN), ee = isNaN(c) ? ie : c, q = st(re), L = q.width / q.height, R = Ae.make(
|
|
4682
4686
|
L > 1 ? Math.max(q.width, q.height * ee) : Math.max(q.width, Math.max(q.height, q.width / ee) * ee),
|
|
4683
4687
|
L > 1 ? Math.max(q.height, Math.max(q.width, q.height * ee) / ee) : Math.max(q.height, q.width / ee)
|
|
4684
|
-
),
|
|
4688
|
+
), C = He(n, {
|
|
4685
4689
|
content: xs,
|
|
4686
4690
|
viewport: bs
|
|
4687
4691
|
});
|
|
@@ -4691,7 +4695,7 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4691
4695
|
...Y,
|
|
4692
4696
|
ref: re,
|
|
4693
4697
|
className: r,
|
|
4694
|
-
style: le(s,
|
|
4698
|
+
style: le(s, yn.root),
|
|
4695
4699
|
children: [
|
|
4696
4700
|
/* @__PURE__ */ S.jsx(
|
|
4697
4701
|
ys,
|
|
@@ -4703,34 +4707,34 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4703
4707
|
playsInline: m,
|
|
4704
4708
|
posterSrc: x,
|
|
4705
4709
|
src: w,
|
|
4706
|
-
style: le(
|
|
4710
|
+
style: le(yn.viewport, {
|
|
4707
4711
|
width: `${R.width}px`,
|
|
4708
4712
|
height: `${R.height}px`,
|
|
4709
4713
|
maxWidth: "unset"
|
|
4710
4714
|
}),
|
|
4711
4715
|
onCanPlay: N,
|
|
4712
4716
|
onEnd: O,
|
|
4713
|
-
onFullscreenChange:
|
|
4717
|
+
onFullscreenChange: M,
|
|
4714
4718
|
onLoadMetadata: _,
|
|
4715
4719
|
onLoadMetadataComplete: B,
|
|
4716
4720
|
onLoadMetadataError: W,
|
|
4717
4721
|
onPause: D,
|
|
4718
|
-
onPlay:
|
|
4722
|
+
onPlay: V,
|
|
4719
4723
|
onSizeChange: (z) => H(z)
|
|
4720
4724
|
}
|
|
4721
4725
|
),
|
|
4722
|
-
|
|
4723
|
-
style: le(
|
|
4726
|
+
C.viewport && Ne(C.viewport, {
|
|
4727
|
+
style: le(yn.viewport, {
|
|
4724
4728
|
height: `${R.height}px`,
|
|
4725
4729
|
pointerEvents: "none",
|
|
4726
4730
|
width: `${R.width}px`
|
|
4727
4731
|
})
|
|
4728
4732
|
}),
|
|
4729
|
-
|
|
4733
|
+
C.content
|
|
4730
4734
|
]
|
|
4731
4735
|
}
|
|
4732
4736
|
);
|
|
4733
|
-
}), bs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), xs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }),
|
|
4737
|
+
}), bs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), xs = ({ children: r, ...n }) => /* @__PURE__ */ S.jsx("div", { ...n, children: r }), yn = {
|
|
4734
4738
|
root: {
|
|
4735
4739
|
overflow: "hidden"
|
|
4736
4740
|
},
|
|
@@ -4755,9 +4759,9 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4755
4759
|
const w = u * 2, N = Math.max(0, Math.min(360, c)), O = He(r, {
|
|
4756
4760
|
track: jr,
|
|
4757
4761
|
knob: Rr
|
|
4758
|
-
}),
|
|
4759
|
-
return /* @__PURE__ */ S.jsxs("div", { ...m, ref: x, style: le(n,
|
|
4760
|
-
/* @__PURE__ */ S.jsx("div", { style:
|
|
4762
|
+
}), M = Es({ angle: s, diameter: w });
|
|
4763
|
+
return /* @__PURE__ */ S.jsxs("div", { ...m, ref: x, style: le(n, M.root), children: [
|
|
4764
|
+
/* @__PURE__ */ S.jsx("div", { style: M.trackContainer, children: /* @__PURE__ */ S.jsx("svg", { height: w, style: M.svgContainer, viewBox: `0 0 ${w} ${w}`, width: w, children: Ne(O.track ?? /* @__PURE__ */ S.jsx(jr, {}), {
|
|
4761
4765
|
cx: u,
|
|
4762
4766
|
cy: u,
|
|
4763
4767
|
fill: "none",
|
|
@@ -4765,7 +4769,7 @@ const ps = /* @__PURE__ */ Se(({
|
|
|
4765
4769
|
strokeDasharray: p,
|
|
4766
4770
|
strokeWidth: g
|
|
4767
4771
|
}) }) }),
|
|
4768
|
-
/* @__PURE__ */ S.jsx("div", { style: le(
|
|
4772
|
+
/* @__PURE__ */ S.jsx("div", { style: le(M.knobContainer), children: /* @__PURE__ */ S.jsx("svg", { style: M.svgContainer, viewBox: `0 0 ${w} ${w}`, xmlns: "http://www.w3.org/2000/svg", children: Ne(O.knob ?? /* @__PURE__ */ S.jsx(Rr, {}), {
|
|
4769
4773
|
d: ws(u, u, u - l / 2 - (g - l) / 2, -N / 2, N / 2),
|
|
4770
4774
|
fill: "none",
|
|
4771
4775
|
strokeWidth: l
|
|
@@ -4843,12 +4847,12 @@ const vc = /* @__PURE__ */ Se(({
|
|
|
4843
4847
|
itemLength: w,
|
|
4844
4848
|
itemPadding: N = 0,
|
|
4845
4849
|
items: O,
|
|
4846
|
-
maxVisibleItems:
|
|
4850
|
+
maxVisibleItems: M = -1,
|
|
4847
4851
|
numSegments: _,
|
|
4848
4852
|
orientation: B = "vertical",
|
|
4849
4853
|
selection: W = [],
|
|
4850
4854
|
selectionMode: D = "single",
|
|
4851
|
-
onActivateAt:
|
|
4855
|
+
onActivateAt: V,
|
|
4852
4856
|
onCollapse: j,
|
|
4853
4857
|
onDeselectAt: Y,
|
|
4854
4858
|
onExpand: U,
|
|
@@ -4856,20 +4860,20 @@ const vc = /* @__PURE__ */ Se(({
|
|
|
4856
4860
|
onSelectionChange: T,
|
|
4857
4861
|
onToggleCustomEvent: re,
|
|
4858
4862
|
ItemComponent: ie,
|
|
4859
|
-
ToggleComponent:
|
|
4863
|
+
ToggleComponent: X,
|
|
4860
4864
|
...ee
|
|
4861
4865
|
}, q) => {
|
|
4862
|
-
const L = (A) => !!(isNaN(A) || A >= O.length || A < 0), R = (A) => Ns(A).filter((ge) => !L(ge)),
|
|
4866
|
+
const L = (A) => !!(isNaN(A) || A >= O.length || A < 0), R = (A) => Ns(A).filter((ge) => !L(ge)), C = () => {
|
|
4863
4867
|
u && U?.();
|
|
4864
4868
|
}, z = () => {
|
|
4865
4869
|
u || j?.();
|
|
4866
4870
|
}, G = () => {
|
|
4867
|
-
u ?
|
|
4871
|
+
u ? C() : z();
|
|
4868
4872
|
}, Z = (A) => {
|
|
4869
4873
|
H?.(A), D === "single" && c && z();
|
|
4870
4874
|
}, Q = (A) => {
|
|
4871
4875
|
T?.(A);
|
|
4872
|
-
}, k = R(W), J = Te(null), be = st(J), xe = w ?? (B === "vertical" ? be.height : be.width), Pe = O.length, pe =
|
|
4876
|
+
}, k = R(W), J = Te(null), be = st(J), xe = w ?? (B === "vertical" ? be.height : be.width), Pe = O.length, pe = M < 0 ? Pe : Math.min(Pe, M), oe = xe * pe + N * (pe - 1), te = Ps({ isCollapsed: u, collectionPadding: l, isInverted: p, maxVisibleItems: M, menuLength: oe, numItems: Pe, orientation: B }), ae = He(r, {
|
|
4873
4877
|
collapseIcon: Ss,
|
|
4874
4878
|
expandIcon: Ts,
|
|
4875
4879
|
toggle: Lr
|
|
@@ -4899,8 +4903,8 @@ const vc = /* @__PURE__ */ Se(({
|
|
|
4899
4903
|
className: ue(n, { collapsed: u, expanded: !u }),
|
|
4900
4904
|
style: le(s, te.root),
|
|
4901
4905
|
children: /* @__PURE__ */ S.jsxs("div", { ref: J, style: le(te.body), children: [
|
|
4902
|
-
|
|
4903
|
-
|
|
4906
|
+
X ? /* @__PURE__ */ S.jsx(
|
|
4907
|
+
X,
|
|
4904
4908
|
{
|
|
4905
4909
|
"aria-expanded": !u,
|
|
4906
4910
|
"aria-haspopup": "listbox",
|
|
@@ -4933,7 +4937,7 @@ const vc = /* @__PURE__ */ Se(({
|
|
|
4933
4937
|
selection: k,
|
|
4934
4938
|
selectionMode: D,
|
|
4935
4939
|
style: le(te.collection),
|
|
4936
|
-
onActivateAt:
|
|
4940
|
+
onActivateAt: V,
|
|
4937
4941
|
onDeselectAt: Y,
|
|
4938
4942
|
onSelectAt: Z,
|
|
4939
4943
|
onSelectionChange: Q
|
|
@@ -5014,7 +5018,7 @@ function ci(r, n) {
|
|
|
5014
5018
|
}
|
|
5015
5019
|
return s;
|
|
5016
5020
|
}
|
|
5017
|
-
const
|
|
5021
|
+
const In = function(r) {
|
|
5018
5022
|
const n = As.exec(r);
|
|
5019
5023
|
return !(n === null || typeof n > "u");
|
|
5020
5024
|
};
|
|
@@ -5235,10 +5239,10 @@ function Me(r, n, s) {
|
|
|
5235
5239
|
};
|
|
5236
5240
|
}
|
|
5237
5241
|
function Fs(r) {
|
|
5238
|
-
return
|
|
5242
|
+
return In(r);
|
|
5239
5243
|
}
|
|
5240
5244
|
function Bs(r) {
|
|
5241
|
-
return
|
|
5245
|
+
return In(r);
|
|
5242
5246
|
}
|
|
5243
5247
|
function Re(r, n) {
|
|
5244
5248
|
const s = r.substring(0, n).split(/\r?\n/);
|
|
@@ -5362,7 +5366,7 @@ function Xs(r, n) {
|
|
|
5362
5366
|
let s = "";
|
|
5363
5367
|
for (; n < r.length && !/\s/.test(r[n]) && r[n] !== '"' && r[n] !== "'"; )
|
|
5364
5368
|
s += r[n], n++;
|
|
5365
|
-
if (
|
|
5369
|
+
if ($n(s), n = et(r, n), r.substring(n, n + 6).toUpperCase() === "SYSTEM")
|
|
5366
5370
|
throw new Error("External entities are not supported");
|
|
5367
5371
|
if (r[n] === "%")
|
|
5368
5372
|
throw new Error("Parameter entities are not supported");
|
|
@@ -5374,7 +5378,7 @@ function Us(r, n) {
|
|
|
5374
5378
|
let s = "";
|
|
5375
5379
|
for (; n < r.length && !/\s/.test(r[n]); )
|
|
5376
5380
|
s += r[n], n++;
|
|
5377
|
-
|
|
5381
|
+
$n(s), n = et(r, n);
|
|
5378
5382
|
const c = r.substring(n, n + 6).toUpperCase();
|
|
5379
5383
|
if (c !== "SYSTEM" && c !== "PUBLIC")
|
|
5380
5384
|
throw new Error(`Expected SYSTEM or PUBLIC, found "${c}"`);
|
|
@@ -5402,7 +5406,7 @@ function Ws(r, n) {
|
|
|
5402
5406
|
let s = "";
|
|
5403
5407
|
for (; n < r.length && !/\s/.test(r[n]); )
|
|
5404
5408
|
s += r[n], n++;
|
|
5405
|
-
if (
|
|
5409
|
+
if (!$n(s))
|
|
5406
5410
|
throw new Error(`Invalid element name: "${s}"`);
|
|
5407
5411
|
if (n = et(r, n), r[n] !== "(")
|
|
5408
5412
|
throw new Error(`Expected '(', found "${r[n]}"`);
|
|
@@ -5433,8 +5437,8 @@ function Ks(r, n) {
|
|
|
5433
5437
|
function Js(r, n) {
|
|
5434
5438
|
return r[n + 1] === "!" && r[n + 2] === "N" && r[n + 3] === "O" && r[n + 4] === "T" && r[n + 5] === "A" && r[n + 6] === "T" && r[n + 7] === "I" && r[n + 8] === "O" && r[n + 9] === "N";
|
|
5435
5439
|
}
|
|
5436
|
-
function
|
|
5437
|
-
if (
|
|
5440
|
+
function $n(r) {
|
|
5441
|
+
if (In(r))
|
|
5438
5442
|
return r;
|
|
5439
5443
|
throw new Error(`Invalid entity name ${r}`);
|
|
5440
5444
|
}
|
|
@@ -5534,7 +5538,7 @@ function sa(r, n, s, c, l, u, p) {
|
|
|
5534
5538
|
if (r !== void 0 && (this.options.trimValues && !c && (r = r.trim()), r.length > 0)) {
|
|
5535
5539
|
p || (r = this.replaceEntitiesValue(r));
|
|
5536
5540
|
const g = this.options.tagValueProcessor(n, r, s, l, u);
|
|
5537
|
-
return g == null ? r : typeof g != typeof r || g !== r ? g : this.options.trimValues ?
|
|
5541
|
+
return g == null ? r : typeof g != typeof r || g !== r ? g : this.options.trimValues ? kn(r, this.options.parseTagValue, this.options.numberParseOptions) : r.trim() === r ? kn(r, this.options.parseTagValue, this.options.numberParseOptions) : r;
|
|
5538
5542
|
}
|
|
5539
5543
|
}
|
|
5540
5544
|
function aa(r) {
|
|
@@ -5559,7 +5563,7 @@ function la(r, n, s) {
|
|
|
5559
5563
|
if (this.options.transformAttributeName && (x = this.options.transformAttributeName(x)), x === "__proto__" && (x = "#__proto__"), m !== void 0) {
|
|
5560
5564
|
this.options.trimValues && (m = m.trim()), m = this.replaceEntitiesValue(m);
|
|
5561
5565
|
const w = this.options.attributeValueProcessor(g, m, n);
|
|
5562
|
-
w == null ? u[x] = m : typeof w != typeof m || w !== m ? u[x] = w : u[x] =
|
|
5566
|
+
w == null ? u[x] = m : typeof w != typeof m || w !== m ? u[x] = w : u[x] = kn(
|
|
5563
5567
|
m,
|
|
5564
5568
|
this.options.parseAttributeValue,
|
|
5565
5569
|
this.options.numberParseOptions
|
|
@@ -5596,7 +5600,7 @@ const ua = function(r) {
|
|
|
5596
5600
|
let w = 0;
|
|
5597
5601
|
x && this.options.unpairedTags.indexOf(x) !== -1 ? (w = l.lastIndexOf(".", l.lastIndexOf(".") - 1), this.tagsNodeStack.pop()) : w = l.lastIndexOf("."), l = l.substring(0, w), s = this.tagsNodeStack.pop(), c = "", u = g;
|
|
5598
5602
|
} else if (r[u + 1] === "?") {
|
|
5599
|
-
let g =
|
|
5603
|
+
let g = Pn(r, u, !1, "?>");
|
|
5600
5604
|
if (!g) throw new Error("Pi Tag is not closed.");
|
|
5601
5605
|
if (c = this.saveTextToParentTag(c, s, l), !(this.options.ignoreDeclaration && g.tagName === "?xml" || this.options.ignorePiTags)) {
|
|
5602
5606
|
const m = new it(g.tagName);
|
|
@@ -5619,12 +5623,12 @@ const ua = function(r) {
|
|
|
5619
5623
|
let x = this.parseTextData(m, s.tagname, l, !0, !1, !0, !0);
|
|
5620
5624
|
x == null && (x = ""), this.options.cdataPropName ? s.add(this.options.cdataPropName, [{ [this.options.textNodeName]: m }]) : s.add(this.options.textNodeName, x), u = g + 2;
|
|
5621
5625
|
} else {
|
|
5622
|
-
let g =
|
|
5626
|
+
let g = Pn(r, u, this.options.removeNSPrefix), m = g.tagName;
|
|
5623
5627
|
const x = g.rawTagName;
|
|
5624
5628
|
let w = g.tagExp, N = g.attrExpPresent, O = g.closeIndex;
|
|
5625
5629
|
this.options.transformTagName && (m = this.options.transformTagName(m)), s && c && s.tagname !== "!xml" && (c = this.saveTextToParentTag(c, s, l, !1));
|
|
5626
|
-
const
|
|
5627
|
-
|
|
5630
|
+
const M = s;
|
|
5631
|
+
M && this.options.unpairedTags.indexOf(M.tagname) !== -1 && (s = this.tagsNodeStack.pop(), l = l.substring(0, l.lastIndexOf("."))), m !== n.tagname && (l += l ? "." + m : m);
|
|
5628
5632
|
const _ = u;
|
|
5629
5633
|
if (this.isItStopNode(this.options.stopNodes, l, m)) {
|
|
5630
5634
|
let B = "";
|
|
@@ -5727,7 +5731,7 @@ function ot(r, n, s, c) {
|
|
|
5727
5731
|
throw new Error(c);
|
|
5728
5732
|
return l + n.length - 1;
|
|
5729
5733
|
}
|
|
5730
|
-
function
|
|
5734
|
+
function Pn(r, n, s, c = ">") {
|
|
5731
5735
|
const l = ga(r, n + 1, c);
|
|
5732
5736
|
if (!l) return;
|
|
5733
5737
|
let u = l.data;
|
|
@@ -5767,18 +5771,18 @@ function va(r, n, s) {
|
|
|
5767
5771
|
else if (r.substr(s + 1, 2) === "![")
|
|
5768
5772
|
s = ot(r, "]]>", s, "StopNode is not closed.") - 2;
|
|
5769
5773
|
else {
|
|
5770
|
-
const u =
|
|
5774
|
+
const u = Pn(r, s, ">");
|
|
5771
5775
|
u && ((u && u.tagName) === n && u.tagExp[u.tagExp.length - 1] !== "/" && l++, s = u.closeIndex);
|
|
5772
5776
|
}
|
|
5773
5777
|
}
|
|
5774
|
-
function
|
|
5778
|
+
function kn(r, n, s) {
|
|
5775
5779
|
if (n && typeof r == "string") {
|
|
5776
5780
|
const c = r.trim();
|
|
5777
5781
|
return c === "true" ? !0 : c === "false" ? !1 : ta(r, s);
|
|
5778
5782
|
} else
|
|
5779
5783
|
return Ms(r) ? r : "";
|
|
5780
5784
|
}
|
|
5781
|
-
const
|
|
5785
|
+
const bn = it.getMetaDataSymbol();
|
|
5782
5786
|
function ma(r, n) {
|
|
5783
5787
|
return ui(r, n);
|
|
5784
5788
|
}
|
|
@@ -5796,7 +5800,7 @@ function ui(r, n, s) {
|
|
|
5796
5800
|
if (p[g]) {
|
|
5797
5801
|
let x = ui(p[g], n, m);
|
|
5798
5802
|
const w = xa(x, n);
|
|
5799
|
-
p[
|
|
5803
|
+
p[bn] !== void 0 && (x[bn] = p[bn]), p[":@"] ? ba(x, p[":@"], m, n) : Object.keys(x).length === 1 && x[n.textNodeName] !== void 0 && !n.alwaysCreateTextNode ? x = x[n.textNodeName] : Object.keys(x).length === 0 && (n.alwaysCreateTextNode ? x[n.textNodeName] = "" : x = ""), l[g] !== void 0 && l.hasOwnProperty(g) ? (Array.isArray(l[g]) || (l[g] = [l[g]]), l[g].push(x)) : n.isArray(g, m, w) ? l[g] = [x] : l[g] = x;
|
|
5800
5804
|
}
|
|
5801
5805
|
}
|
|
5802
5806
|
}
|
|
@@ -5905,8 +5909,8 @@ function fi(r, n, s, c) {
|
|
|
5905
5909
|
}
|
|
5906
5910
|
let w = c;
|
|
5907
5911
|
w !== "" && (w += n.indentBy);
|
|
5908
|
-
const N = Vr(g[":@"], n), O = c + `<${m}${N}`,
|
|
5909
|
-
n.unpairedTags.indexOf(m) !== -1 ? n.suppressUnpairedNode ? l += O + ">" : l += O + "/>" : (!
|
|
5912
|
+
const N = Vr(g[":@"], n), O = c + `<${m}${N}`, M = fi(g[m], n, x, w);
|
|
5913
|
+
n.unpairedTags.indexOf(m) !== -1 ? n.suppressUnpairedNode ? l += O + ">" : l += O + "/>" : (!M || M.length === 0) && n.suppressEmptyNode ? l += O + "/>" : M && M.endsWith(">") ? l += O + `>${M}${c}</${m}>` : (l += O + ">", M && c !== "" && (M.includes("/>") || M.includes("</")) ? l += c + n.indentBy + M + c : l += M, l += `</${m}>`), u = !0;
|
|
5910
5914
|
}
|
|
5911
5915
|
return l;
|
|
5912
5916
|
}
|
|
@@ -6094,7 +6098,7 @@ const mc = /* @__PURE__ */ Se(({
|
|
|
6094
6098
|
shouldStripStyles: u = !0,
|
|
6095
6099
|
...p
|
|
6096
6100
|
}, g) => {
|
|
6097
|
-
const m = "@_", x = ["id"].map((_) => `${m}${_}`), w = ["class"].map((_) => `${m}${_}`), N = ["fill", "stroke", "style"].map((_) => `${m}${_}`), O = ["x", "y"].map((_) => `${m}${_}`),
|
|
6101
|
+
const m = "@_", x = ["id"].map((_) => `${m}${_}`), w = ["class"].map((_) => `${m}${_}`), N = ["fill", "stroke", "style"].map((_) => `${m}${_}`), O = ["x", "y"].map((_) => `${m}${_}`), M = () => {
|
|
6098
6102
|
const _ = new wa({
|
|
6099
6103
|
attributeNamePrefix: m,
|
|
6100
6104
|
ignoreAttributes: !1,
|
|
@@ -6102,7 +6106,7 @@ const mc = /* @__PURE__ */ Se(({
|
|
|
6102
6106
|
ignorePiTags: !0,
|
|
6103
6107
|
removeNSPrefix: !0,
|
|
6104
6108
|
trimValues: !0,
|
|
6105
|
-
updateTag: (D,
|
|
6109
|
+
updateTag: (D, V, j) => {
|
|
6106
6110
|
if (u && D.toLowerCase() === "style") return !1;
|
|
6107
6111
|
const Y = Object.keys(j);
|
|
6108
6112
|
for (const U of Y)
|
|
@@ -6133,7 +6137,7 @@ const mc = /* @__PURE__ */ Se(({
|
|
|
6133
6137
|
{
|
|
6134
6138
|
...p,
|
|
6135
6139
|
ref: g,
|
|
6136
|
-
dangerouslySetInnerHTML: { __html:
|
|
6140
|
+
dangerouslySetInnerHTML: { __html: M() },
|
|
6137
6141
|
role: "img"
|
|
6138
6142
|
}
|
|
6139
6143
|
);
|
|
@@ -6148,64 +6152,64 @@ const mc = /* @__PURE__ */ Se(({
|
|
|
6148
6152
|
verticalSpacing: g = 0,
|
|
6149
6153
|
...m
|
|
6150
6154
|
}, x) => {
|
|
6151
|
-
const w = Te(null), [N, O] = ke(NaN), [
|
|
6155
|
+
const w = Te(null), [N, O] = ke(NaN), [M, _] = ke(NaN), [B, W] = ke(NaN), [D, V] = ke(NaN), j = () => se.from(w.current)?.width ?? 0, Y = () => se.from(w.current)?.height ?? 0, U = () => {
|
|
6152
6156
|
const re = w.current;
|
|
6153
6157
|
if (!re) return;
|
|
6154
|
-
const ie = re.children,
|
|
6155
|
-
if (
|
|
6158
|
+
const ie = re.children, X = p;
|
|
6159
|
+
if (X <= 0) throw new Error("You must specify a minimum of 1 section(s) (a.k.a. row(s) for horizontal orientation, column(s) for vertical orientation) for a MasonryGrid instance");
|
|
6156
6160
|
if (u === "vertical") {
|
|
6157
|
-
const ee = [...new Array(
|
|
6161
|
+
const ee = [...new Array(X)].map(() => 0);
|
|
6158
6162
|
for (const R of Array.from(ie)) {
|
|
6159
6163
|
if (!(R instanceof HTMLElement)) continue;
|
|
6160
|
-
const
|
|
6161
|
-
R.role = "gridcell", R.style.position = "absolute", R.style.width = `calc(${100 /
|
|
6162
|
-
for (let Z = 0; Z <
|
|
6164
|
+
const C = Wr(R, p), [z, G] = Ur(ee, C);
|
|
6165
|
+
R.role = "gridcell", R.style.position = "absolute", R.style.width = `calc(${100 / X * C}% - ${c * (X - 1) / X * C}px + ${c * (C - 1)}px)`, R.style.height = "", R.style.left = `calc(${100 / X * z}% - ${c * (X - 1) / X * z}px + ${c * z}px)`, R.style.top = `${G + (G === 0 ? 0 : g)}px`;
|
|
6166
|
+
for (let Z = 0; Z < C; Z++)
|
|
6163
6167
|
ee[z + Z] = G + (G === 0 ? 0 : g) + (se.from(R)?.height ?? 0);
|
|
6164
|
-
if (r && z +
|
|
6168
|
+
if (r && z + C === X) {
|
|
6165
6169
|
const Z = St(ee);
|
|
6166
|
-
for (let Q = 0; Q <
|
|
6170
|
+
for (let Q = 0; Q < X; Q++)
|
|
6167
6171
|
ee[Q] = Z;
|
|
6168
6172
|
}
|
|
6169
6173
|
}
|
|
6170
|
-
const q = j(), L = St(ee,
|
|
6174
|
+
const q = j(), L = St(ee, X);
|
|
6171
6175
|
if (O(q), _(L), isNaN(L) || (re.style.height = `${L}px`), l)
|
|
6172
6176
|
for (const R of Array.from(ie))
|
|
6173
6177
|
R instanceof HTMLElement && (R.style.left = `calc(${q}px - ${R.style.left} - ${R.getBoundingClientRect().width}px)`);
|
|
6174
6178
|
} else {
|
|
6175
|
-
const ee = [...new Array(
|
|
6179
|
+
const ee = [...new Array(X)].map(() => 0);
|
|
6176
6180
|
for (const R of Array.from(ie)) {
|
|
6177
6181
|
if (!(R instanceof HTMLElement)) continue;
|
|
6178
|
-
const
|
|
6179
|
-
R.style.position = "absolute", R.style.width = "", R.style.height = `calc(${100 /
|
|
6180
|
-
for (let Z = 0; Z <
|
|
6182
|
+
const C = Wr(R, p), [z, G] = Ur(ee, C);
|
|
6183
|
+
R.style.position = "absolute", R.style.width = "", R.style.height = `calc(${100 / X * C}% - ${g * (X - 1) / X * C}px + ${g * (C - 1)}px)`, R.style.top = `calc(${100 / X * z}% - ${g * (X - 1) / X * z}px + ${g * z}px)`, R.style.left = `${G + (G === 0 ? 0 : c)}px`;
|
|
6184
|
+
for (let Z = 0; Z < C; Z++)
|
|
6181
6185
|
ee[z + Z] = G + (G === 0 ? 0 : c) + (se.from(R)?.width ?? 0);
|
|
6182
|
-
if (r && z +
|
|
6186
|
+
if (r && z + C === X) {
|
|
6183
6187
|
const Z = St(ee);
|
|
6184
|
-
for (let Q = 0; Q <
|
|
6188
|
+
for (let Q = 0; Q < X; Q++)
|
|
6185
6189
|
ee[Q] = Z;
|
|
6186
6190
|
}
|
|
6187
6191
|
}
|
|
6188
|
-
const q = Y(), L = St(ee,
|
|
6192
|
+
const q = Y(), L = St(ee, X);
|
|
6189
6193
|
if (_(q), O(L), isNaN(L) || (re.style.width = `${L}px`), l)
|
|
6190
6194
|
for (const R of Array.from(ie))
|
|
6191
6195
|
R instanceof HTMLElement && (R.style.top = `calc(${q}px - ${R.style.top} - ${R.getBoundingClientRect().height}px)`);
|
|
6192
6196
|
}
|
|
6193
6197
|
};
|
|
6194
|
-
|
|
6198
|
+
Mn(w, {
|
|
6195
6199
|
onResize: (re) => {
|
|
6196
|
-
const ie = se.from(re)?.size ?? Ae.make(),
|
|
6197
|
-
(N !==
|
|
6200
|
+
const ie = se.from(re)?.size ?? Ae.make(), X = j(), ee = Y();
|
|
6201
|
+
(N !== X || M !== ee || ie.width !== B || ie.height !== D) && (U(), W(ie.width), V(ie.height));
|
|
6198
6202
|
}
|
|
6199
6203
|
}, [r, c, l, p, g, u]), he(() => {
|
|
6200
6204
|
const re = Ia(w.current?.innerHTML);
|
|
6201
6205
|
if (re.length === 0) return U();
|
|
6202
6206
|
const ie = re.length;
|
|
6203
|
-
for (let
|
|
6204
|
-
const ee = re[
|
|
6207
|
+
for (let X = 0; X < ie; X++) {
|
|
6208
|
+
const ee = re[X], q = new Image();
|
|
6205
6209
|
q.src = ee, q.onload = () => U();
|
|
6206
6210
|
}
|
|
6207
6211
|
}, [n]);
|
|
6208
|
-
const H = Ma({ orientation: u }), T = Ca({ orientation: u, minHeight:
|
|
6212
|
+
const H = Ma({ orientation: u }), T = Ca({ orientation: u, minHeight: M, minWidth: N });
|
|
6209
6213
|
return /* @__PURE__ */ S.jsx(
|
|
6210
6214
|
"div",
|
|
6211
6215
|
{
|
|
@@ -6305,12 +6309,12 @@ const bc = /* @__PURE__ */ Se(({
|
|
|
6305
6309
|
onLoadImageError: w,
|
|
6306
6310
|
onImageSizeChange: N,
|
|
6307
6311
|
...O
|
|
6308
|
-
},
|
|
6309
|
-
const _ = (re, ie,
|
|
6312
|
+
}, M) => {
|
|
6313
|
+
const _ = (re, ie, X) => re - ie * n, B = Te(null), W = st(B), D = oi({ src: s }, {
|
|
6310
6314
|
onLoadStart: m,
|
|
6311
6315
|
onLoadComplete: x,
|
|
6312
6316
|
onLoadError: w
|
|
6313
|
-
}), [
|
|
6317
|
+
}), [V, j] = ke(r), { isDragging: [Y], value: [U, H] } = Nt(B, {
|
|
6314
6318
|
initialValue: 0,
|
|
6315
6319
|
transform: _,
|
|
6316
6320
|
onDragStart: p,
|
|
@@ -6319,14 +6323,14 @@ const bc = /* @__PURE__ */ Se(({
|
|
|
6319
6323
|
he(() => {
|
|
6320
6324
|
if (Y || !D) return;
|
|
6321
6325
|
const re = ja(r, D, W.size, c);
|
|
6322
|
-
re !== U && H(re), r !==
|
|
6326
|
+
re !== U && H(re), r !== V && j(r);
|
|
6323
6327
|
}, [r, D, W.width, W.height, c]), he(() => {
|
|
6324
6328
|
if (!Y || !D) return;
|
|
6325
6329
|
const re = Ra(U, D, W.size, c);
|
|
6326
|
-
|
|
6330
|
+
V !== re && j(re);
|
|
6327
6331
|
}, [U, D, W.width, W.height, c]), he(() => {
|
|
6328
|
-
l?.(
|
|
6329
|
-
}, [
|
|
6332
|
+
l?.(V, Y), u?.(V / 360, Y);
|
|
6333
|
+
}, [V]), he(() => {
|
|
6330
6334
|
N?.(D);
|
|
6331
6335
|
}, [D?.width, D?.height]);
|
|
6332
6336
|
const T = _a({ src: s, displacement: U });
|
|
@@ -6334,8 +6338,8 @@ const bc = /* @__PURE__ */ Se(({
|
|
|
6334
6338
|
"div",
|
|
6335
6339
|
{
|
|
6336
6340
|
...O,
|
|
6337
|
-
ref:
|
|
6338
|
-
"aria-valuenow":
|
|
6341
|
+
ref: M,
|
|
6342
|
+
"aria-valuenow": V,
|
|
6339
6343
|
role: "slider",
|
|
6340
6344
|
children: /* @__PURE__ */ S.jsx("div", { ref: B, style: T.body })
|
|
6341
6345
|
}
|
|
@@ -6384,33 +6388,33 @@ const xc = /* @__PURE__ */ Se(({
|
|
|
6384
6388
|
onAngleChange: w,
|
|
6385
6389
|
onDragEnd: N,
|
|
6386
6390
|
onDragStart: O,
|
|
6387
|
-
onLoadImageComplete:
|
|
6391
|
+
onLoadImageComplete: M,
|
|
6388
6392
|
onLoadImageError: _,
|
|
6389
6393
|
onLoadImageStart: B,
|
|
6390
6394
|
onImageSizeChange: W,
|
|
6391
6395
|
onPositionChange: D,
|
|
6392
|
-
...
|
|
6396
|
+
...V
|
|
6393
6397
|
}, j) => {
|
|
6394
6398
|
const Y = () => {
|
|
6395
6399
|
if (!ee) return 0;
|
|
6396
6400
|
const { width: k, height: J } = ee;
|
|
6397
6401
|
return J === 0 ? 0 : k / J;
|
|
6398
6402
|
}, U = () => {
|
|
6399
|
-
const k = Math.min(360, Math.max(0, u ?? (m ? m.width / (m.height *
|
|
6400
|
-
return
|
|
6401
|
-
}, H = () =>
|
|
6403
|
+
const k = Math.min(360, Math.max(0, u ?? (m ? m.width / (m.height * C) * 360 : 0)));
|
|
6404
|
+
return X.width * (k / 360);
|
|
6405
|
+
}, H = () => X.width <= 0 ? x : ((X.width - z) * 0.5 + x * z) / X.width, T = () => {
|
|
6402
6406
|
R(!0), O?.();
|
|
6403
6407
|
}, re = () => {
|
|
6404
6408
|
R(!1), N?.();
|
|
6405
|
-
}, ie = Te(null),
|
|
6406
|
-
track:
|
|
6409
|
+
}, ie = Te(null), X = st(ie), [ee, q] = ke(), [L, R] = ke(!1), C = Y(), z = U(), G = H(), Z = He(l, {
|
|
6410
|
+
track: xn,
|
|
6407
6411
|
reticle: Dr,
|
|
6408
6412
|
indicator: qr
|
|
6409
|
-
}), Q = za({ autoDimension: c, panoramaRect:
|
|
6413
|
+
}), Q = za({ autoDimension: c, panoramaRect: X, aspectRatio: C, reticleWidth: z });
|
|
6410
6414
|
return /* @__PURE__ */ S.jsxs(
|
|
6411
6415
|
"div",
|
|
6412
6416
|
{
|
|
6413
|
-
...
|
|
6417
|
+
...V,
|
|
6414
6418
|
ref: j,
|
|
6415
6419
|
className: ue(r, { dragging: L }),
|
|
6416
6420
|
style: le(n, Q.root),
|
|
@@ -6428,14 +6432,14 @@ const xc = /* @__PURE__ */ Se(({
|
|
|
6428
6432
|
onDragEnd: re,
|
|
6429
6433
|
onDragStart: T,
|
|
6430
6434
|
onImageSizeChange: q,
|
|
6431
|
-
onLoadImageComplete:
|
|
6435
|
+
onLoadImageComplete: M,
|
|
6432
6436
|
onLoadImageError: _,
|
|
6433
6437
|
onLoadImageStart: B,
|
|
6434
6438
|
onPositionChange: D
|
|
6435
6439
|
}
|
|
6436
6440
|
),
|
|
6437
6441
|
/* @__PURE__ */ S.jsx("div", { style: Q.body, children: /* @__PURE__ */ S.jsxs("div", { style: Q.controls, children: [
|
|
6438
|
-
Ne(Z.track ?? /* @__PURE__ */ S.jsx(
|
|
6442
|
+
Ne(Z.track ?? /* @__PURE__ */ S.jsx(xn, {}), {
|
|
6439
6443
|
className: ue({ dragging: L }),
|
|
6440
6444
|
style: le(Q.track)
|
|
6441
6445
|
}),
|
|
@@ -6443,7 +6447,7 @@ const xc = /* @__PURE__ */ Se(({
|
|
|
6443
6447
|
className: ue({ dragging: L }),
|
|
6444
6448
|
style: le(Q.reticle)
|
|
6445
6449
|
}),
|
|
6446
|
-
Ne(Z.track ?? /* @__PURE__ */ S.jsx(
|
|
6450
|
+
Ne(Z.track ?? /* @__PURE__ */ S.jsx(xn, {}), {
|
|
6447
6451
|
className: ue({ dragging: L }),
|
|
6448
6452
|
style: le(Q.track)
|
|
6449
6453
|
})
|
|
@@ -6455,7 +6459,7 @@ const xc = /* @__PURE__ */ Se(({
|
|
|
6455
6459
|
]
|
|
6456
6460
|
}
|
|
6457
6461
|
);
|
|
6458
|
-
}),
|
|
6462
|
+
}), xn = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Dr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), qr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n }));
|
|
6459
6463
|
function za({ autoDimension: r = "width", panoramaRect: n = se.make(), aspectRatio: s = 0, reticleWidth: c = 0 }) {
|
|
6460
6464
|
return {
|
|
6461
6465
|
root: {
|
|
@@ -6514,8 +6518,8 @@ const wc = /* @__PURE__ */ Se(({
|
|
|
6514
6518
|
steps: w = -1,
|
|
6515
6519
|
onRangeChange: N,
|
|
6516
6520
|
...O
|
|
6517
|
-
},
|
|
6518
|
-
const _ = (pe) => (pe - g) / (p - g), B = (pe) => pe / (m === "horizontal" ? H.width : H.height), W = (pe) => pe * (p - g) + g, D = (pe) => W(B(pe)),
|
|
6521
|
+
}, M) => {
|
|
6522
|
+
const _ = (pe) => (pe - g) / (p - g), B = (pe) => pe / (m === "horizontal" ? H.width : H.height), W = (pe) => pe * (p - g) + g, D = (pe) => W(B(pe)), V = (pe) => pe * (m === "horizontal" ? H.width : H.height), j = (pe) => V(_(pe)), Y = (pe) => {
|
|
6519
6523
|
const oe = Q.length;
|
|
6520
6524
|
let te = 0, ae = 1 / 0;
|
|
6521
6525
|
for (let A = 0; A < oe; A++) {
|
|
@@ -6523,13 +6527,13 @@ const wc = /* @__PURE__ */ Se(({
|
|
|
6523
6527
|
we < ae && (ae = we, te = A);
|
|
6524
6528
|
}
|
|
6525
6529
|
return Q[te];
|
|
6526
|
-
}, U = Te(null), H = st(U), T = Te(null), re = Te(null), [ie,
|
|
6530
|
+
}, U = Te(null), H = st(U), T = Te(null), re = Te(null), [ie, X] = ke(x ?? [g, p]), { isDragging: [ee], isReleasing: [q], value: [L, R] } = Nt(T, {
|
|
6527
6531
|
initialValue: x?.[0] ?? g,
|
|
6528
6532
|
transform: (pe, oe, te) => {
|
|
6529
6533
|
const ae = m === "horizontal" ? oe : te, A = j(g), ge = j(ie[1]), we = j(pe) + ae;
|
|
6530
6534
|
return D(Math.max(A, Math.min(ge, we)));
|
|
6531
6535
|
}
|
|
6532
|
-
}, [g, m, H.size.width, H.size.height, ie[1]]), { isDragging: [
|
|
6536
|
+
}, [g, m, H.size.width, H.size.height, ie[1]]), { isDragging: [C], isReleasing: [z], value: [G, Z] } = Nt(re, {
|
|
6533
6537
|
initialValue: x?.[1] ?? p,
|
|
6534
6538
|
transform: (pe, oe, te) => {
|
|
6535
6539
|
const ae = m === "horizontal" ? oe : te, A = j(ie[0]), ge = j(p), we = j(pe) + ae;
|
|
@@ -6537,11 +6541,11 @@ const wc = /* @__PURE__ */ Se(({
|
|
|
6537
6541
|
}
|
|
6538
6542
|
}, [p, m, H.size.width, H.size.height, ie[0]]), Q = [g, ...[...Array(w)].map((pe, oe) => g + (oe + 1) * (p - g) / (1 + w)), p], [k, J] = ie.map(j), be = J - k;
|
|
6539
6543
|
he(() => {
|
|
6540
|
-
ie[0] !== L && (
|
|
6544
|
+
ie[0] !== L && (X([L, ie[1]]), N?.(ie));
|
|
6541
6545
|
}, [L]), he(() => {
|
|
6542
|
-
ie[1] !== G && (
|
|
6546
|
+
ie[1] !== G && (X([ie[0], G]), N?.(ie));
|
|
6543
6547
|
}, [G]), he(() => {
|
|
6544
|
-
ee ||
|
|
6548
|
+
ee || C || Ge(x, ie) || (X(x ?? [g, p]), R(x?.[0] ?? g), Z(x?.[1] ?? p));
|
|
6545
6549
|
}, [x?.[0], x?.[1]]), he(() => {
|
|
6546
6550
|
w < 0 || R(Y(L));
|
|
6547
6551
|
}, [q]), he(() => {
|
|
@@ -6550,14 +6554,14 @@ const wc = /* @__PURE__ */ Se(({
|
|
|
6550
6554
|
const xe = He(r, {
|
|
6551
6555
|
gutter: Gr,
|
|
6552
6556
|
highlight: Kr,
|
|
6553
|
-
knob:
|
|
6557
|
+
knob: wn,
|
|
6554
6558
|
label: La
|
|
6555
6559
|
}), Pe = Fa({ orientation: m, highlightLength: be, start: k, knobPadding: l, knobWidth: u, knobHeight: c });
|
|
6556
6560
|
return /* @__PURE__ */ S.jsx(
|
|
6557
6561
|
"div",
|
|
6558
6562
|
{
|
|
6559
6563
|
...O,
|
|
6560
|
-
ref:
|
|
6564
|
+
ref: M,
|
|
6561
6565
|
"aria-valuemax": p,
|
|
6562
6566
|
"aria-valuemin": g,
|
|
6563
6567
|
className: ue(n, m),
|
|
@@ -6570,7 +6574,7 @@ const wc = /* @__PURE__ */ Se(({
|
|
|
6570
6574
|
style: le(Pe.highlight)
|
|
6571
6575
|
}),
|
|
6572
6576
|
Ne(xe.knob ?? /* @__PURE__ */ S.jsx(
|
|
6573
|
-
|
|
6577
|
+
wn,
|
|
6574
6578
|
{
|
|
6575
6579
|
style: le({
|
|
6576
6580
|
transitionProperty: q ? "opacity, transform" : "opacity"
|
|
@@ -6594,13 +6598,13 @@ const wc = /* @__PURE__ */ Se(({
|
|
|
6594
6598
|
})
|
|
6595
6599
|
}, /* @__PURE__ */ S.jsx("div", { style: Pe.knobHitBox }), xe.label && Ne(xe.label, {
|
|
6596
6600
|
className: ue({
|
|
6597
|
-
dragging: ee ||
|
|
6601
|
+
dragging: ee || C,
|
|
6598
6602
|
releasing: q || z
|
|
6599
6603
|
}),
|
|
6600
6604
|
style: le(Pe.label)
|
|
6601
6605
|
}, Number(L.toFixed(s)).toLocaleString())),
|
|
6602
6606
|
Ne(xe.knob ?? /* @__PURE__ */ S.jsx(
|
|
6603
|
-
|
|
6607
|
+
wn,
|
|
6604
6608
|
{
|
|
6605
6609
|
style: le({
|
|
6606
6610
|
transitionProperty: z ? "opacity, transform" : "opacity"
|
|
@@ -6610,8 +6614,8 @@ const wc = /* @__PURE__ */ Se(({
|
|
|
6610
6614
|
ref: re,
|
|
6611
6615
|
disabled: Ge([L, G], [p, p]),
|
|
6612
6616
|
className: ue({
|
|
6613
|
-
dragging:
|
|
6614
|
-
releasing:
|
|
6617
|
+
dragging: C,
|
|
6618
|
+
releasing: C
|
|
6615
6619
|
}),
|
|
6616
6620
|
style: le(Pe.knob, {
|
|
6617
6621
|
pointerEvents: Ge([L, G], [p, p]) ? "none" : "auto"
|
|
@@ -6624,7 +6628,7 @@ const wc = /* @__PURE__ */ Se(({
|
|
|
6624
6628
|
})
|
|
6625
6629
|
}, /* @__PURE__ */ S.jsx("div", { style: Pe.knobHitBox }), xe.label && Ne(xe.label, {
|
|
6626
6630
|
className: ue({
|
|
6627
|
-
dragging:
|
|
6631
|
+
dragging: C,
|
|
6628
6632
|
releasing: z
|
|
6629
6633
|
}),
|
|
6630
6634
|
style: le(Pe.label)
|
|
@@ -6632,7 +6636,7 @@ const wc = /* @__PURE__ */ Se(({
|
|
|
6632
6636
|
] })
|
|
6633
6637
|
}
|
|
6634
6638
|
);
|
|
6635
|
-
}), Gr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), La = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Kr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })),
|
|
6639
|
+
}), Gr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), La = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), Kr = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n })), wn = /* @__PURE__ */ Se(({ ...r }, n) => /* @__PURE__ */ S.jsx("div", { ...r, ref: n }));
|
|
6636
6640
|
function Fa({ orientation: r = "horizontal", knobWidth: n = 0, knobHeight: s = 0, highlightLength: c = 0, start: l = 0, knobPadding: u = 0 }) {
|
|
6637
6641
|
return {
|
|
6638
6642
|
body: {
|
|
@@ -6736,45 +6740,45 @@ const Ec = /* @__PURE__ */ Se(({
|
|
|
6736
6740
|
labelProvider: w,
|
|
6737
6741
|
onDragEnd: N,
|
|
6738
6742
|
onDragStart: O,
|
|
6739
|
-
onPositionChange:
|
|
6743
|
+
onPositionChange: M,
|
|
6740
6744
|
..._
|
|
6741
6745
|
}, B) => {
|
|
6742
|
-
const W = (R,
|
|
6743
|
-
const G = se.from(
|
|
6746
|
+
const W = (R, C, z) => {
|
|
6747
|
+
const G = se.from(V.current) ?? se.make(), Z = s ? 1 - R : R, Q = Z * G.width + C, k = Z * G.height + z, J = g === "vertical" ? Math.max(0, Math.min(1, k / G.height)) : Math.max(0, Math.min(1, Q / G.width));
|
|
6744
6748
|
return s ? 1 - J : J;
|
|
6745
6749
|
}, D = (R) => {
|
|
6746
6750
|
if (!c) return;
|
|
6747
|
-
const
|
|
6751
|
+
const C = se.from(V.current) ?? se.make(), z = se.fromViewport();
|
|
6748
6752
|
switch (g) {
|
|
6749
6753
|
case "horizontal": {
|
|
6750
|
-
const G = (R.clientX + z.left -
|
|
6754
|
+
const G = (R.clientX + z.left - C.left) / C.width, Z = s ? 1 - G : G;
|
|
6751
6755
|
T(Z);
|
|
6752
6756
|
break;
|
|
6753
6757
|
}
|
|
6754
6758
|
case "vertical": {
|
|
6755
|
-
const G = (R.clientY + z.top -
|
|
6759
|
+
const G = (R.clientY + z.top - C.top) / C.height, Z = s ? 1 - G : G;
|
|
6756
6760
|
T(Z);
|
|
6757
6761
|
break;
|
|
6758
6762
|
}
|
|
6759
6763
|
}
|
|
6760
|
-
},
|
|
6764
|
+
}, V = Te(null), j = Te(null), { isDragging: [Y], isReleasing: [U], value: [H, T] } = Nt(j, {
|
|
6761
6765
|
initialValue: m,
|
|
6762
6766
|
transform: W,
|
|
6763
6767
|
onDragStart: O,
|
|
6764
6768
|
onDragEnd: N
|
|
6765
|
-
}, [s, g]), re = s ? 1 - H : H, ie = s ? H === 0 : H === 1,
|
|
6769
|
+
}, [s, g]), re = s ? 1 - H : H, ie = s ? H === 0 : H === 1, X = s ? H === 1 : H === 0;
|
|
6766
6770
|
he(() => {
|
|
6767
6771
|
Y || m === H || T(m);
|
|
6768
6772
|
}, [m]), he(() => {
|
|
6769
|
-
Y && p ||
|
|
6773
|
+
Y && p || M?.(H, Y);
|
|
6770
6774
|
}, [H]), he(() => {
|
|
6771
|
-
Y || !p ||
|
|
6775
|
+
Y || !p || M?.(H, !0);
|
|
6772
6776
|
}, [Y]);
|
|
6773
6777
|
const ee = He(r, {
|
|
6774
6778
|
knob: Jr,
|
|
6775
6779
|
label: Zr,
|
|
6776
|
-
track:
|
|
6777
|
-
}), q = Ba({ orientation: g, isAtEnd: ie, isAtStart:
|
|
6780
|
+
track: En
|
|
6781
|
+
}), q = Ba({ orientation: g, isAtEnd: ie, isAtStart: X, isDragging: Y, isReleasing: U }), L = Ya({ orientation: g, isDragging: Y, naturalPosition: re, knobHeight: l, knobWidth: u, isTrackInteractive: c });
|
|
6778
6782
|
return /* @__PURE__ */ S.jsx(
|
|
6779
6783
|
"div",
|
|
6780
6784
|
{
|
|
@@ -6784,8 +6788,8 @@ const Ec = /* @__PURE__ */ Se(({
|
|
|
6784
6788
|
"aria-valuenow": H,
|
|
6785
6789
|
className: ue(n, q.root),
|
|
6786
6790
|
role: "slider",
|
|
6787
|
-
children: /* @__PURE__ */ S.jsxs("div", { ref:
|
|
6788
|
-
Ne(ee.track ?? /* @__PURE__ */ S.jsx(
|
|
6791
|
+
children: /* @__PURE__ */ S.jsxs("div", { ref: V, style: L.body, children: [
|
|
6792
|
+
Ne(ee.track ?? /* @__PURE__ */ S.jsx(En, {}), {
|
|
6789
6793
|
className: ue("start", q.track),
|
|
6790
6794
|
style: le(L.track, g === "vertical" ? {
|
|
6791
6795
|
height: `calc(${re * 100}% - ${x <= 0 ? 0 : l * 0.5}px - ${x}px)`,
|
|
@@ -6796,7 +6800,7 @@ const Ec = /* @__PURE__ */ Se(({
|
|
|
6796
6800
|
}),
|
|
6797
6801
|
onClick: D
|
|
6798
6802
|
}, /* @__PURE__ */ S.jsx("div", { style: L.trackHitBox })),
|
|
6799
|
-
Ne(ee.track ?? /* @__PURE__ */ S.jsx(
|
|
6803
|
+
Ne(ee.track ?? /* @__PURE__ */ S.jsx(En, {}), {
|
|
6800
6804
|
className: ue("end", q.track),
|
|
6801
6805
|
style: le(L.track, g === "vertical" ? {
|
|
6802
6806
|
bottom: "0",
|
|
@@ -6817,7 +6821,7 @@ const Ec = /* @__PURE__ */ Se(({
|
|
|
6817
6821
|
] })
|
|
6818
6822
|
}
|
|
6819
6823
|
);
|
|
6820
|
-
}),
|
|
6824
|
+
}), En = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), Jr = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), Zr = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r });
|
|
6821
6825
|
function Ba({ orientation: r = "vertical", isAtEnd: n = !1, isAtStart: s = !1, isDragging: c = !1, isReleasing: l = !1 }) {
|
|
6822
6826
|
return {
|
|
6823
6827
|
root: ue(r, {
|
|
@@ -6918,12 +6922,12 @@ const Sc = /* @__PURE__ */ Se(({
|
|
|
6918
6922
|
steps: w = Ha(10),
|
|
6919
6923
|
trackPadding: N = 0,
|
|
6920
6924
|
onDragEnd: O,
|
|
6921
|
-
onDragStart:
|
|
6925
|
+
onDragStart: M,
|
|
6922
6926
|
onIndexChange: _,
|
|
6923
6927
|
onPositionChange: B,
|
|
6924
6928
|
...W
|
|
6925
6929
|
}, D) => {
|
|
6926
|
-
const
|
|
6930
|
+
const V = (Z, Q, k) => {
|
|
6927
6931
|
const J = se.from(Y.current) ?? se.make(), be = c ? 1 - Z : Z, xe = be * J.width + Q, Pe = be * J.height + k, pe = x === "vertical" ? Math.max(0, Math.min(1, Pe / J.height)) : Math.max(0, Math.min(1, xe / J.width));
|
|
6928
6932
|
return c ? 1 - pe : pe;
|
|
6929
6933
|
}, j = (Z) => {
|
|
@@ -6941,31 +6945,31 @@ const Sc = /* @__PURE__ */ Se(({
|
|
|
6941
6945
|
break;
|
|
6942
6946
|
}
|
|
6943
6947
|
}
|
|
6944
|
-
}, Y = Te(null), U = Te(null), [H, T] = ke(s), { isDragging: [re], isReleasing: [ie], value: [
|
|
6948
|
+
}, Y = Te(null), U = Te(null), [H, T] = ke(s), { isDragging: [re], isReleasing: [ie], value: [X, ee] } = Nt(U, {
|
|
6945
6949
|
initialValue: Vt(s, w),
|
|
6946
|
-
transform:
|
|
6947
|
-
onDragStart:
|
|
6950
|
+
transform: V,
|
|
6951
|
+
onDragStart: M,
|
|
6948
6952
|
onDragEnd: O
|
|
6949
|
-
}, [c, x]), q = c ? 1 -
|
|
6953
|
+
}, [c, x]), q = c ? 1 - X : X, L = c ? X === 0 : X === 1, R = c ? X === 1 : X === 0, C = He(r, {
|
|
6950
6954
|
knob: Qr,
|
|
6951
6955
|
label: ei,
|
|
6952
|
-
track:
|
|
6956
|
+
track: Tn
|
|
6953
6957
|
}), z = Va({ orientation: x, isAtEnd: L, isAtStart: R, isDragging: re, isReleasing: ie }), G = Xa({ orientation: x, naturalPosition: q, isDragging: re, knobHeight: u, knobWidth: p, isTrackInteractive: l });
|
|
6954
6958
|
return he(() => {
|
|
6955
6959
|
if (re) return;
|
|
6956
6960
|
const Z = Vt(s, w);
|
|
6957
|
-
|
|
6961
|
+
X !== Z && ee(Z), s !== H && T(s);
|
|
6958
6962
|
}, [s]), he(() => {
|
|
6959
6963
|
if (re && m) return;
|
|
6960
|
-
B?.(
|
|
6961
|
-
const Z =
|
|
6964
|
+
B?.(X, re);
|
|
6965
|
+
const Z = Sn(X, w);
|
|
6962
6966
|
H !== Z && T(Z);
|
|
6963
|
-
}, [
|
|
6967
|
+
}, [X]), he(() => {
|
|
6964
6968
|
_?.(H, re);
|
|
6965
6969
|
}, [H]), he(() => {
|
|
6966
6970
|
if (re) return;
|
|
6967
|
-
const Z =
|
|
6968
|
-
(Q !==
|
|
6971
|
+
const Z = Sn(X, w), Q = Vt(Z, w);
|
|
6972
|
+
(Q !== X || m) && (ee(Q), B?.(Q, !0));
|
|
6969
6973
|
}, [re]), /* @__PURE__ */ S.jsx(
|
|
6970
6974
|
"div",
|
|
6971
6975
|
{
|
|
@@ -6975,7 +6979,7 @@ const Sc = /* @__PURE__ */ Se(({
|
|
|
6975
6979
|
className: ue(n, z.root),
|
|
6976
6980
|
role: "slider",
|
|
6977
6981
|
children: /* @__PURE__ */ S.jsxs("div", { ref: Y, style: G.body, children: [
|
|
6978
|
-
Ne(
|
|
6982
|
+
Ne(C.track ?? /* @__PURE__ */ S.jsx(Tn, {}), {
|
|
6979
6983
|
className: ue("start", z.track),
|
|
6980
6984
|
style: le(G.track, x === "vertical" ? {
|
|
6981
6985
|
height: `calc(${q * 100}% - ${N <= 0 ? 0 : u * 0.5}px - ${N}px)`,
|
|
@@ -6986,7 +6990,7 @@ const Sc = /* @__PURE__ */ Se(({
|
|
|
6986
6990
|
}),
|
|
6987
6991
|
onClick: j
|
|
6988
6992
|
}, /* @__PURE__ */ S.jsx("div", { style: G.trackHitBox })),
|
|
6989
|
-
Ne(
|
|
6993
|
+
Ne(C.track ?? /* @__PURE__ */ S.jsx(Tn, {}), {
|
|
6990
6994
|
className: ue("end", z.track),
|
|
6991
6995
|
style: le(G.track, x === "vertical" ? {
|
|
6992
6996
|
bottom: "0",
|
|
@@ -6997,23 +7001,23 @@ const Sc = /* @__PURE__ */ Se(({
|
|
|
6997
7001
|
}),
|
|
6998
7002
|
onClick: j
|
|
6999
7003
|
}, /* @__PURE__ */ S.jsx("div", { style: G.trackHitBox })),
|
|
7000
|
-
/* @__PURE__ */ S.jsx("button", { ref: U, style: G.knobContainer, children: Ne(
|
|
7004
|
+
/* @__PURE__ */ S.jsx("button", { ref: U, style: G.knobContainer, children: Ne(C.knob ?? /* @__PURE__ */ S.jsx(Qr, {}), {
|
|
7001
7005
|
className: ue(z.knob),
|
|
7002
7006
|
style: le(G.knob)
|
|
7003
|
-
}, w && g && Ne(
|
|
7007
|
+
}, w && g && Ne(C.label ?? /* @__PURE__ */ S.jsx(ei, {}), {
|
|
7004
7008
|
className: ue(z.label),
|
|
7005
7009
|
style: le(G.label)
|
|
7006
|
-
}, g(
|
|
7010
|
+
}, g(X, Sn(X, w)))) })
|
|
7007
7011
|
] })
|
|
7008
7012
|
}
|
|
7009
7013
|
);
|
|
7010
|
-
}),
|
|
7014
|
+
}), Tn = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), Qr = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r }), ei = ({ ...r }) => /* @__PURE__ */ S.jsx("div", { ...r });
|
|
7011
7015
|
function Ha(r) {
|
|
7012
7016
|
if (Math.round(r) !== r) throw new Error("`length` value must be an integer");
|
|
7013
7017
|
const n = 1 / (r - 1);
|
|
7014
7018
|
return Array(r).fill(null).map((s, c) => n * c);
|
|
7015
7019
|
}
|
|
7016
|
-
function
|
|
7020
|
+
function Sn(r, n) {
|
|
7017
7021
|
let s = -1, c = NaN;
|
|
7018
7022
|
for (let l = 0, u = n.length; l < u; l++) {
|
|
7019
7023
|
const p = Vt(l, n);
|
|
@@ -7122,20 +7126,20 @@ const Nc = /* @__PURE__ */ Se(({
|
|
|
7122
7126
|
onSwipeUp: p,
|
|
7123
7127
|
...g
|
|
7124
7128
|
}, m) => {
|
|
7125
|
-
const [x, w] = ke(void 0), [N, O] = ke(void 0), [
|
|
7126
|
-
if (isNaN(j) || isNaN(Y)) return
|
|
7129
|
+
const [x, w] = ke(void 0), [N, O] = ke(void 0), [M, _] = ke(NaN), B = (j, Y) => {
|
|
7130
|
+
if (isNaN(j) || isNaN(Y)) return V();
|
|
7127
7131
|
w(ye.make(j, Y));
|
|
7128
7132
|
}, W = (j, Y) => {
|
|
7129
7133
|
const U = x;
|
|
7130
7134
|
if (U === void 0) return;
|
|
7131
|
-
const H = U.x !== j || U.y !== Y, T = !isNaN(
|
|
7135
|
+
const H = U.x !== j || U.y !== Y, T = !isNaN(M);
|
|
7132
7136
|
H && (T || _(Date.now()), O(ye.make(j, Y)));
|
|
7133
7137
|
}, D = () => {
|
|
7134
|
-
const j =
|
|
7138
|
+
const j = M, Y = x, U = N;
|
|
7135
7139
|
if (isNaN(j) || Y === void 0 || U === void 0) return;
|
|
7136
|
-
const H = Date.now() - j, T = U.x - Y.x, re = U.y - Y.y, ie = T / H,
|
|
7137
|
-
n && (Math.abs(ie) >= s && Math.abs(ie) > Math.abs(
|
|
7138
|
-
},
|
|
7140
|
+
const H = Date.now() - j, T = U.x - Y.x, re = U.y - Y.y, ie = T / H, X = re / H;
|
|
7141
|
+
n && (Math.abs(ie) >= s && Math.abs(ie) > Math.abs(X) ? ie > 0 ? u?.() : l?.() : Math.abs(X) >= s && Math.abs(X) > Math.abs(ie) && (X > 0 ? c?.() : p?.())), V();
|
|
7142
|
+
}, V = () => {
|
|
7139
7143
|
w(void 0), O(void 0), _(NaN);
|
|
7140
7144
|
};
|
|
7141
7145
|
return /* @__PURE__ */ S.jsx(
|
|
@@ -7144,7 +7148,7 @@ const Nc = /* @__PURE__ */ Se(({
|
|
|
7144
7148
|
...g,
|
|
7145
7149
|
ref: m,
|
|
7146
7150
|
onMouseDown: (j) => B(j.clientX, j.clientY),
|
|
7147
|
-
onMouseLeave: () =>
|
|
7151
|
+
onMouseLeave: () => V(),
|
|
7148
7152
|
onMouseMove: (j) => W(j.clientX, j.clientY),
|
|
7149
7153
|
onMouseUp: () => D(),
|
|
7150
7154
|
onTouchEnd: () => D(),
|
|
@@ -7169,7 +7173,7 @@ function Pc({
|
|
|
7169
7173
|
const w = () => {
|
|
7170
7174
|
const W = document.createElement("span");
|
|
7171
7175
|
W.className = ue(n), W.innerHTML = g, W.role = "tooltip";
|
|
7172
|
-
const D = c ?? (
|
|
7176
|
+
const D = c ?? (M.current ? Wa(M.current, x) : "tl"), V = Ua(W), j = Ga({ alignment: D, arrowSize: Ae.make(u, l), gap: p, maxDialogWidth: m, fullDialogWidth: V.width, targetWidth: B.width }), Y = le(s, j.dialog);
|
|
7173
7177
|
Object.keys(Y).forEach((H) => W.style[H] = Y[H]);
|
|
7174
7178
|
const U = document.createElement("span");
|
|
7175
7179
|
return Object.keys(j.arrow).forEach((H) => U.style[H] = j.arrow[H]), W.appendChild(U), W;
|
|
@@ -7177,13 +7181,13 @@ function Pc({
|
|
|
7177
7181
|
_.current && (_.current.style.opacity = "1", _.current.ariaHidden = "false");
|
|
7178
7182
|
}, O = () => {
|
|
7179
7183
|
_.current && (_.current.style.opacity = "0", _.current.ariaHidden = "true");
|
|
7180
|
-
},
|
|
7184
|
+
}, M = Te(null), _ = Te(void 0), B = st(M);
|
|
7181
7185
|
return he(() => {
|
|
7182
7186
|
const W = w();
|
|
7183
|
-
return
|
|
7184
|
-
|
|
7187
|
+
return M.current?.appendChild(W), _.current = W, () => {
|
|
7188
|
+
M.current?.removeChild(W), _.current = void 0;
|
|
7185
7189
|
};
|
|
7186
|
-
}, [c, l, u, n, p, g, m, s,
|
|
7190
|
+
}, [c, l, u, n, p, g, m, s, M.current, x]), /* @__PURE__ */ S.jsx(Vo, { ref: M, onMouseEnter: N, onMouseLeave: O, children: r });
|
|
7187
7191
|
}
|
|
7188
7192
|
function Ua(r) {
|
|
7189
7193
|
const n = r.cloneNode(!1);
|
|
@@ -7415,9 +7419,9 @@ export {
|
|
|
7415
7419
|
nc as Accordion,
|
|
7416
7420
|
Wo as AccordionCollapseIcon,
|
|
7417
7421
|
Uo as AccordionExpandIcon,
|
|
7418
|
-
|
|
7422
|
+
Ar as AccordionHeader,
|
|
7419
7423
|
qo as Burger,
|
|
7420
|
-
|
|
7424
|
+
Nn as BurgerBar,
|
|
7421
7425
|
rc as BurgerButton,
|
|
7422
7426
|
ic as BurgerButtonBar,
|
|
7423
7427
|
oc as Button,
|
|
@@ -7441,7 +7445,7 @@ export {
|
|
|
7441
7445
|
Ss as DropdownCollapseIcon,
|
|
7442
7446
|
Ts as DropdownExpandIcon,
|
|
7443
7447
|
Lr as DropdownToggle,
|
|
7444
|
-
|
|
7448
|
+
Cn as Each,
|
|
7445
7449
|
Vo as ExtractChild,
|
|
7446
7450
|
tc as ExtractChildren,
|
|
7447
7451
|
mc as FlatSVG,
|
|
@@ -7452,24 +7456,24 @@ export {
|
|
|
7452
7456
|
xc as PanoramaSlider,
|
|
7453
7457
|
qr as PanoramaSliderIndicator,
|
|
7454
7458
|
Dr as PanoramaSliderReticle,
|
|
7455
|
-
|
|
7459
|
+
xn as PanoramaSliderTrack,
|
|
7456
7460
|
wc as RangeSlider,
|
|
7457
7461
|
Gr as RangeSliderGutter,
|
|
7458
7462
|
Kr as RangeSliderHighlight,
|
|
7459
|
-
|
|
7463
|
+
wn as RangeSliderKnob,
|
|
7460
7464
|
La as RangeSliderLabel,
|
|
7461
|
-
|
|
7465
|
+
kr as Repeat,
|
|
7462
7466
|
pi as ScrollPositionContext,
|
|
7463
7467
|
kc as ScrollPositionProvider,
|
|
7464
7468
|
Ec as SelectableButton,
|
|
7465
7469
|
Tc as Slider,
|
|
7466
7470
|
Jr as SliderKnob,
|
|
7467
7471
|
Zr as SliderLabel,
|
|
7468
|
-
|
|
7472
|
+
En as SliderTrack,
|
|
7469
7473
|
Sc as StepwiseSlider,
|
|
7470
7474
|
Qr as StepwiseSliderKnob,
|
|
7471
7475
|
ei as StepwiseSliderLabel,
|
|
7472
|
-
|
|
7476
|
+
Tn as StepwiseSliderTrack,
|
|
7473
7477
|
Nc as SwipeRegion,
|
|
7474
7478
|
ps as TextField,
|
|
7475
7479
|
ys as Video,
|
|
@@ -7479,7 +7483,7 @@ export {
|
|
|
7479
7483
|
ec as asStyleDict,
|
|
7480
7484
|
Ne as cloneStyledElement,
|
|
7481
7485
|
Ut as createKey,
|
|
7482
|
-
|
|
7486
|
+
Pr as createKeyDeep,
|
|
7483
7487
|
le as styles,
|
|
7484
7488
|
sc as useClickOutsideEffect,
|
|
7485
7489
|
ts as useDragEffect,
|
|
@@ -7491,7 +7495,7 @@ export {
|
|
|
7491
7495
|
Bo as useMounted,
|
|
7492
7496
|
si as usePrevious,
|
|
7493
7497
|
st as useRect,
|
|
7494
|
-
|
|
7498
|
+
Mn as useResizeEffect,
|
|
7495
7499
|
Oc as useScrollPosition,
|
|
7496
7500
|
cc as useScrollPositionEffect,
|
|
7497
7501
|
lc as useSearchParamState,
|