@sellgar/kit 0.0.179 → 0.0.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +986 -970
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3027,12 +3027,12 @@ var Ri = (function(e) {
|
|
|
3027
3027
|
this.register = function(r) {
|
|
3028
3028
|
var o;
|
|
3029
3029
|
if (gc.includes(r.type)) {
|
|
3030
|
-
var a = (o = r._wrapperState) !== null && o !== void 0 ? o : {}, c = a.initialValue, u = c === void 0 ? "" : c, d = a.controlled, m = d !== void 0 && d, f = n({ initialValue: r.value || u, controlled: m }), h = f.value, p = f.options, g = { value: h, options: p, fallbackOptions: p }, v = { id: -1, cachedId: -1 }, b = { value: "", selectionStart: 0, selectionEnd: 0 },
|
|
3031
|
-
Object.defineProperty(r, "value", hc(hc({},
|
|
3030
|
+
var a = (o = r._wrapperState) !== null && o !== void 0 ? o : {}, c = a.initialValue, u = c === void 0 ? "" : c, d = a.controlled, m = d !== void 0 && d, f = n({ initialValue: r.value || u, controlled: m }), h = f.value, p = f.options, g = { value: h, options: p, fallbackOptions: p }, v = { id: -1, cachedId: -1 }, b = { value: "", selectionStart: 0, selectionEnd: 0 }, _ = Object.getOwnPropertyDescriptor("_valueTracker" in r ? r : HTMLInputElement.prototype, "value");
|
|
3031
|
+
Object.defineProperty(r, "value", hc(hc({}, _), {}, { set: function(x) {
|
|
3032
3032
|
var L;
|
|
3033
|
-
b.value = x,
|
|
3033
|
+
b.value = x, _ == null || (L = _.set) === null || L === void 0 || L.call(r, x);
|
|
3034
3034
|
} })), r.value = h;
|
|
3035
|
-
var
|
|
3035
|
+
var w = function() {
|
|
3036
3036
|
var x = function() {
|
|
3037
3037
|
var L, D;
|
|
3038
3038
|
b.selectionStart = (L = r.selectionStart) !== null && L !== void 0 ? L : 0, b.selectionEnd = (D = r.selectionEnd) !== null && D !== void 0 ? D : 0, v.id = window.setTimeout(x);
|
|
@@ -3045,24 +3045,24 @@ var Ri = (function(e) {
|
|
|
3045
3045
|
var L, D;
|
|
3046
3046
|
if (v.cachedId === v.id) throw new Ri("The input selection has not been updated.");
|
|
3047
3047
|
v.cachedId = v.id;
|
|
3048
|
-
var P = r.value, C = r.selectionStart,
|
|
3049
|
-
if (C === null ||
|
|
3050
|
-
var
|
|
3051
|
-
if (x.inputType === void 0 && (b.selectionStart = 0, b.selectionEnd =
|
|
3052
|
-
var E = "",
|
|
3053
|
-
if (
|
|
3048
|
+
var P = r.value, C = r.selectionStart, T = r.selectionEnd;
|
|
3049
|
+
if (C === null || T === null) throw new Ri("The selection attributes have not been initialized.");
|
|
3050
|
+
var A, Y = b.value;
|
|
3051
|
+
if (x.inputType === void 0 && (b.selectionStart = 0, b.selectionEnd = Y.length), C > b.selectionStart ? A = "insert" : C <= b.selectionStart && C < b.selectionEnd ? A = "deleteBackward" : C === b.selectionEnd && P.length < Y.length && (A = "deleteForward"), A === void 0 || (A === "deleteBackward" || A === "deleteForward") && P.length > Y.length) throw new Ri("Input type detection error.");
|
|
3052
|
+
var E = "", N = b.selectionStart, W = b.selectionEnd;
|
|
3053
|
+
if (A === "insert") E = P.slice(b.selectionStart, C);
|
|
3054
3054
|
else {
|
|
3055
|
-
var
|
|
3056
|
-
|
|
3055
|
+
var M = Y.length - P.length;
|
|
3056
|
+
N = C, W = C + M;
|
|
3057
3057
|
}
|
|
3058
|
-
g.value !==
|
|
3059
|
-
var k = g.options, $ = i({ inputType:
|
|
3060
|
-
r.value =
|
|
3058
|
+
g.value !== Y ? g.options = g.fallbackOptions : g.fallbackOptions = g.options;
|
|
3059
|
+
var k = g.options, $ = i({ inputType: A, previousValue: Y, previousOptions: k, value: P, addedValue: E, changeStart: N, changeEnd: W, selectionStart: C, selectionEnd: T }), U = $.options, q = lp($, rp);
|
|
3060
|
+
r.value = q.value, r.setSelectionRange(q.selectionStart, q.selectionEnd), g.value = q.value, g.options = U, b.selectionStart = q.selectionStart, b.selectionEnd = q.selectionEnd, (L = r._valueTracker) === null || L === void 0 || (D = L.setValue) === null || D === void 0 || D.call(L, Y);
|
|
3061
3061
|
} catch (j) {
|
|
3062
3062
|
if (r.value = b.value, r.setSelectionRange(b.selectionStart, b.selectionEnd), x.preventDefault(), x.stopPropagation(), j.name !== "SyntheticChangeError") throw j;
|
|
3063
3063
|
}
|
|
3064
3064
|
};
|
|
3065
|
-
document.activeElement === r &&
|
|
3065
|
+
document.activeElement === r && w(), r.addEventListener("focus", w), r.addEventListener("blur", y), r.addEventListener("input", S), l.set(r, { onFocus: w, onBlur: y, onInput: S });
|
|
3066
3066
|
} else process.env.NODE_ENV !== "production" && console.warn("Warn: The input element type does not match one of the types: ".concat(gc.join(", "), "."));
|
|
3067
3067
|
}, this.unregister = function(r) {
|
|
3068
3068
|
var o = l.get(r);
|
|
@@ -3095,52 +3095,52 @@ var ed = (function(e) {
|
|
|
3095
3095
|
return S.length > 1;
|
|
3096
3096
|
}));
|
|
3097
3097
|
v.length > 0 && console.error($o(Error)("Object keys in the `replacement` property are longer than one character. Replacement keys must be one character long. Check the correctness of the value in the specified property.", "Invalid keys: ".concat(v.join(", "), "."), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
3098
|
-
for (var b = p.slice(0, h.length),
|
|
3099
|
-
var y = Object.prototype.hasOwnProperty.call(g, b[
|
|
3100
|
-
if (!(b[
|
|
3101
|
-
|
|
3098
|
+
for (var b = p.slice(0, h.length), _ = -1, w = 0; w < b.length; w++) {
|
|
3099
|
+
var y = Object.prototype.hasOwnProperty.call(g, b[w]);
|
|
3100
|
+
if (!(b[w] === h[w] || y && g[b[w]].test(h[w]))) {
|
|
3101
|
+
_ = w;
|
|
3102
3102
|
break;
|
|
3103
3103
|
}
|
|
3104
3104
|
}
|
|
3105
|
-
|
|
3105
|
+
_ !== -1 && console.error($o(Error)("An invalid character was found in the initialized property value `value` or `defaultValue` (index: ".concat(_, "). Check the correctness of the initialized value in the specified property."), 'Invalid value: "'.concat(h, '".'), "To initialize an unmasked value, use the `format` utility. More details https://github.com/GoncharukOrg/react-input/tree/main/packages/mask#initializing-the-value."));
|
|
3106
3106
|
})({ initialValue: r, mask: c, replacement: u }), { value: r, options: { mask: c, replacement: u, separate: d } };
|
|
3107
3107
|
}, tracking: function(l) {
|
|
3108
|
-
var r = l.inputType, o = l.previousValue, a = l.previousOptions, c = l.addedValue, u = l.changeStart, d = l.changeEnd, m = wi(i), f = m.track, h = m.modify, p = Zh(m, op), g = p.mask, v = p.replacement, b = p.showMask,
|
|
3108
|
+
var r = l.inputType, o = l.previousValue, a = l.previousOptions, c = l.addedValue, u = l.changeStart, d = l.changeEnd, m = wi(i), f = m.track, h = m.modify, p = Zh(m, op), g = p.mask, v = p.replacement, b = p.showMask, _ = p.separate, w = Ql(Ql({}, r === "insert" ? { inputType: r, data: c } : { inputType: r, data: null }), {}, { value: o, selectionStart: u, selectionEnd: d }), y = f?.(w);
|
|
3109
3109
|
if (y === !1) throw new Ri("Custom tracking stop.");
|
|
3110
3110
|
y === null ? c = "" : y !== !0 && y !== void 0 && (c = y);
|
|
3111
|
-
var S = h?.(
|
|
3112
|
-
S?.mask !== void 0 && (g = S.mask), S?.replacement !== void 0 && (v = typeof S?.replacement == "string" ? Hi(S?.replacement) : S.replacement), S?.showMask !== void 0 && (b = S.showMask), S?.separate !== void 0 && (
|
|
3111
|
+
var S = h?.(w);
|
|
3112
|
+
S?.mask !== void 0 && (g = S.mask), S?.replacement !== void 0 && (v = typeof S?.replacement == "string" ? Hi(S?.replacement) : S.replacement), S?.showMask !== void 0 && (b = S.showMask), S?.separate !== void 0 && (_ = S.separate);
|
|
3113
3113
|
var x = gs(o, Ql({ end: u }, a)), L = gs(o, Ql({ start: d }, a)), D = RegExp("[^".concat(Object.keys(v).join(""), "]"), "g"), P = g.replace(D, "");
|
|
3114
|
-
if (x && (x = hl(x, { replacementChars: P, replacement: v, separate:
|
|
3115
|
-
if (
|
|
3116
|
-
var C = g.slice(u, d).replace(D, ""),
|
|
3117
|
-
|
|
3114
|
+
if (x && (x = hl(x, { replacementChars: P, replacement: v, separate: _ }), P = P.slice(x.length)), c && (c = hl(c, { replacementChars: P, replacement: v, separate: !1 }), P = P.slice(c.length)), r === "insert" && c === "") throw new Ri("The character does not match the key value of the `replacement` object.");
|
|
3115
|
+
if (_) {
|
|
3116
|
+
var C = g.slice(u, d).replace(D, ""), T = C.length - c.length;
|
|
3117
|
+
T < 0 ? L = L.slice(-T) : T > 0 && (L = C.slice(-T) + L);
|
|
3118
3118
|
}
|
|
3119
|
-
L && (L = hl(L, { replacementChars: P, replacement: v, separate:
|
|
3120
|
-
var
|
|
3121
|
-
var
|
|
3119
|
+
L && (L = hl(L, { replacementChars: P, replacement: v, separate: _ }));
|
|
3120
|
+
var A = Gu(x + c + L, { mask: g, replacement: v, separate: _, showMask: b }), Y = (function(E) {
|
|
3121
|
+
var N, W, M, k = E.inputType, $ = E.value, U = E.addedValue, q = E.beforeChangeValue, j = E.mask, O = E.replacement, R = E.separate, I = Ku($, { mask: j, replacement: O }).filter((function(J) {
|
|
3122
3122
|
var ce = J.type;
|
|
3123
|
-
return ce === "input" ||
|
|
3124
|
-
})), te = (
|
|
3123
|
+
return ce === "input" || R && ce === "replacement";
|
|
3124
|
+
})), te = (N = I[q.length + U.length - 1]) === null || N === void 0 ? void 0 : N.index, z = (W = I[q.length - 1]) === null || W === void 0 ? void 0 : W.index, K = (M = I[q.length + U.length]) === null || M === void 0 ? void 0 : M.index;
|
|
3125
3125
|
if (k === "insert") {
|
|
3126
3126
|
if (te !== void 0) return te + 1;
|
|
3127
|
-
if (
|
|
3128
|
-
if (
|
|
3127
|
+
if (K !== void 0) return K;
|
|
3128
|
+
if (z !== void 0) return z + 1;
|
|
3129
3129
|
}
|
|
3130
3130
|
if (k === "deleteForward") {
|
|
3131
|
-
if (
|
|
3132
|
-
if (
|
|
3131
|
+
if (K !== void 0) return K;
|
|
3132
|
+
if (z !== void 0) return z + 1;
|
|
3133
3133
|
}
|
|
3134
3134
|
if (k === "deleteBackward") {
|
|
3135
|
-
if (
|
|
3136
|
-
if (
|
|
3135
|
+
if (z !== void 0) return z + 1;
|
|
3136
|
+
if (K !== void 0) return K;
|
|
3137
3137
|
}
|
|
3138
3138
|
var ie = $.split("").findIndex((function(J) {
|
|
3139
3139
|
return Object.prototype.hasOwnProperty.call(O, J);
|
|
3140
3140
|
}));
|
|
3141
3141
|
return ie !== -1 ? ie : $.length;
|
|
3142
|
-
})({ inputType: r, value:
|
|
3143
|
-
return { value:
|
|
3142
|
+
})({ inputType: r, value: A, addedValue: c, beforeChangeValue: x, mask: g, replacement: v, separate: _ });
|
|
3143
|
+
return { value: A, selectionStart: Y, selectionEnd: Y, options: { mask: g, replacement: v, separate: _ } };
|
|
3144
3144
|
} }])).format = function(l) {
|
|
3145
3145
|
return Zu(l, wi(i));
|
|
3146
3146
|
}, n.formatToParts = function(l) {
|
|
@@ -3313,22 +3313,22 @@ function bs(e, t) {
|
|
|
3313
3313
|
f.style = f.format, f.useGrouping = f.groupDisplay, f.minimumFractionDigits = 0, f.maximumFractionDigits = 0, delete f.format, delete f.groupDisplay, delete f.maximumIntegerDigits;
|
|
3314
3314
|
var h = hr(e.split("."), 2), p = h[0], g = h[1], v = g === void 0 ? "" : g;
|
|
3315
3315
|
p = p.replace(/^(-)?0+/, "$1"), p = (n = (i = RegExp("-?\\d{0,".concat(c ?? "", "}")).exec(p)) === null || i === void 0 ? void 0 : i[0]) !== null && n !== void 0 ? n : "";
|
|
3316
|
-
var b,
|
|
3316
|
+
var b, _ = /^-0?$/.test(p) ? -0 : BigInt(p), w = "";
|
|
3317
3317
|
if (a.format === "percent") {
|
|
3318
|
-
var y, S, x = "[".concat(o.digits, "]+([^").concat(o.digits, "][").concat(o.digits, "]+)*"), L = RegExp(x), D = new Intl.NumberFormat(l, pl(pl({}, f), {}, { style: "decimal" })).format(
|
|
3319
|
-
|
|
3320
|
-
} else
|
|
3321
|
-
if (
|
|
3322
|
-
var P = (v = v.slice(0, m)).replace(/\d/g, (function(
|
|
3323
|
-
return o.digits[Number(
|
|
3318
|
+
var y, S, x = "[".concat(o.digits, "]+([^").concat(o.digits, "][").concat(o.digits, "]+)*"), L = RegExp(x), D = new Intl.NumberFormat(l, pl(pl({}, f), {}, { style: "decimal" })).format(_);
|
|
3319
|
+
w = new Intl.NumberFormat(l, f).format(_).replace(L, (y = (S = L.exec(D)) === null || S === void 0 ? void 0 : S[0]) !== null && y !== void 0 ? y : "");
|
|
3320
|
+
} else w = new Intl.NumberFormat(l, f).format(_);
|
|
3321
|
+
if (w = w.replace(/\s/g, " "), v.length < d && (v += "0".repeat(d - v.length)), (m === void 0 || m > 0) && (e.includes(".") || v.length > 0) && (w = w.replace(RegExp("([".concat(o.digits, "])([^").concat(o.digits, "]*)$")), "$1".concat(o.decimal, "$2")), v.length > 0)) {
|
|
3322
|
+
var P = (v = v.slice(0, m)).replace(/\d/g, (function(T) {
|
|
3323
|
+
return o.digits[Number(T)];
|
|
3324
3324
|
}));
|
|
3325
|
-
|
|
3325
|
+
w = w.replace(RegExp("([".concat(o.decimal, "])([^").concat(o.digits, "]*)$")), "$1".concat(P, "$2"));
|
|
3326
3326
|
}
|
|
3327
|
-
if (
|
|
3328
|
-
var C = (
|
|
3329
|
-
C !== -1 && ((
|
|
3327
|
+
if (w.includes("+") ? b = "+" : w.includes(o.minusSign) && (b = o.minusSign), b !== void 0 && o.signBackwards) {
|
|
3328
|
+
var C = (w = w.replace(RegExp("[\\".concat(b, "]"), "g"), "")).search(RegExp("[".concat(o.digits, "](?!.*[").concat(o.digits, "])")));
|
|
3329
|
+
C !== -1 && ((w = w.slice(0, C + 1) + b + w.slice(C + 1)).startsWith("") || (w = "".concat(w)));
|
|
3330
3330
|
}
|
|
3331
|
-
return
|
|
3331
|
+
return w;
|
|
3332
3332
|
}
|
|
3333
3333
|
function gl(e) {
|
|
3334
3334
|
var t = new Intl.NumberFormat(e, { useGrouping: !1, signDisplay: "always", minimumIntegerDigits: 10, minimumFractionDigits: 1, maximumFractionDigits: 1 }).format(-12345678901e-1), n = t.startsWith("") || t.startsWith(""), i = n ? t[1] : t[0], l = t[t.length - 2], r = t.slice(n ? 2 : 1, -2);
|
|
@@ -3379,16 +3379,16 @@ var ld = (function(e) {
|
|
|
3379
3379
|
}, tracking: function(l) {
|
|
3380
3380
|
var r = l.inputType, o = l.previousValue, a = l.previousOptions, c = l.addedValue, u = l.changeStart, d = l.changeEnd, m = i.locales, f = Or(i, gp), h = gl(a.locales), p = gl(m), g = pr(m, f), v = RegExp("^[".concat(p.minusSign, "]$")), b = RegExp("^[,".concat(p.decimal, "]$"));
|
|
3381
3381
|
if (c = v.test(c) ? c.replace(v, "-") : b.test(c) ? c.replace(b, ".") : kc(c, p), r === "insert" && !c) throw new Ri("The added value does not contain allowed characters.");
|
|
3382
|
-
var
|
|
3383
|
-
|
|
3384
|
-
var
|
|
3385
|
-
|
|
3386
|
-
var y =
|
|
3382
|
+
var _ = o.slice(0, u);
|
|
3383
|
+
_ = kl(_, h), _ = Mr(_, h), _ = Dr(_, h);
|
|
3384
|
+
var w = o.slice(d);
|
|
3385
|
+
w = kl(w, h), w = Mr(w, h);
|
|
3386
|
+
var y = _ + c + (w = Dr(w, h));
|
|
3387
3387
|
if (y = y.replace(/[.](?=.*[.])/g, ""), p.signBackwards) y = y.replace(/[-](?=.*[-.\d])/g, "");
|
|
3388
3388
|
else {
|
|
3389
3389
|
var S = y.search(/[-.\d]/);
|
|
3390
|
-
y = y.replace(/[-]/g, (function(O,
|
|
3391
|
-
return S !== -1 &&
|
|
3390
|
+
y = y.replace(/[-]/g, (function(O, R) {
|
|
3391
|
+
return S !== -1 && R > S ? "" : O;
|
|
3392
3392
|
}));
|
|
3393
3393
|
}
|
|
3394
3394
|
y = y.replace(/(.+)(-)$/, "$2$1");
|
|
@@ -3396,78 +3396,78 @@ var ld = (function(e) {
|
|
|
3396
3396
|
if (x && L && D && (y = y.replace("-", "")), !x || L || D || (y = "-".concat(y)), /\..*0$/.test(y)) {
|
|
3397
3397
|
var P = "([".concat(h.digits, "])([").concat(h.decimal, "])([").concat(h.digits, "]+)"), C = RegExp(P).exec(o);
|
|
3398
3398
|
if (C !== null) {
|
|
3399
|
-
var
|
|
3400
|
-
u >=
|
|
3399
|
+
var T, A = C[3], Y = Number(C[5]) + C[1].length + C[2].length, E = (T = pr(a.locales, a.options).minimumFractionDigits) !== null && T !== void 0 ? T : 0;
|
|
3400
|
+
u >= Y && d < Y + (E || 1) && A.length <= (E || 1) && (y = y.replace(/0+$/g, ""));
|
|
3401
3401
|
}
|
|
3402
3402
|
}
|
|
3403
|
-
var
|
|
3404
|
-
if (
|
|
3405
|
-
var
|
|
3403
|
+
var N = r === "deleteBackward" || r === "deleteForward";
|
|
3404
|
+
if (N && o.includes(h.decimal) && !y.includes(".")) {
|
|
3405
|
+
var W, M = "[".concat(h.digits[0], "]*[^").concat(h.decimal).concat(h.digits, "]*$"), k = "[^".concat(h.digits[0], "]"), $ = (W = RegExp(M).exec(o)) === null || W === void 0 ? void 0 : W[0].replace(RegExp(k, "g"), "").length;
|
|
3406
3406
|
$ !== void 0 && g.minimumFractionDigits !== void 0 && ($ > g.minimumFractionDigits && ($ = g.minimumFractionDigits), y = y.replace(RegExp("0{0,".concat($, "}$")), ""));
|
|
3407
3407
|
}
|
|
3408
|
-
var
|
|
3409
|
-
|
|
3408
|
+
var U = "", q = y === "" || y === "-" || /^-?(\.0*)?$/.test(y);
|
|
3409
|
+
N && q || (U = bs(y, { locales: m, options: f, localizedValues: p, resolvedOptions: g }));
|
|
3410
3410
|
var j = (function(O) {
|
|
3411
|
-
var
|
|
3412
|
-
if (ie.includes(
|
|
3413
|
-
var ne =
|
|
3411
|
+
var R = O.localizedValues, I = O.previousLocalizedValues, te = O.resolvedOptions, z = O.inputType, K = O.value, ie = O.previousValue, J = O.addedValue, ce = O.changeStart, Z = O.changeEnd;
|
|
3412
|
+
if (ie.includes(R.decimal) && J === ".") {
|
|
3413
|
+
var ne = K.indexOf(R.decimal);
|
|
3414
3414
|
if (ne !== -1) {
|
|
3415
|
-
var
|
|
3416
|
-
return { start:
|
|
3415
|
+
var G = ne + 1;
|
|
3416
|
+
return { start: G, end: G };
|
|
3417
3417
|
}
|
|
3418
3418
|
}
|
|
3419
|
-
if (ie.includes(
|
|
3420
|
-
var se =
|
|
3419
|
+
if (ie.includes(R.minusSign) && J === "-") {
|
|
3420
|
+
var se = K.indexOf(R.minusSign);
|
|
3421
3421
|
if (se !== -1) {
|
|
3422
|
-
var le = se + (
|
|
3422
|
+
var le = se + (R.signBackwards ? 0 : 1);
|
|
3423
3423
|
return { start: le, end: le };
|
|
3424
3424
|
}
|
|
3425
3425
|
}
|
|
3426
|
-
if (
|
|
3427
|
-
var re = ie.split(
|
|
3428
|
-
if (Z <= ye.length && !RegExp("[".concat(
|
|
3429
|
-
var de = ye.indexOf(
|
|
3426
|
+
if (z === "deleteBackward" || z === "deleteForward") {
|
|
3427
|
+
var re = ie.split(I.decimal), ye = hr(re, 1)[0];
|
|
3428
|
+
if (Z <= ye.length && !RegExp("[".concat(I.digits.slice(1), "]")).test(ye)) {
|
|
3429
|
+
var de = ye.indexOf(I.digits[0]), fe = ye.lastIndexOf(I.digits[0]);
|
|
3430
3430
|
if (de !== -1 && fe !== -1) {
|
|
3431
3431
|
var me = fe + 1;
|
|
3432
3432
|
if ((ce !== de || Z !== me) && Z > de && Z <= me) return { start: de, end: me };
|
|
3433
3433
|
}
|
|
3434
3434
|
}
|
|
3435
3435
|
}
|
|
3436
|
-
for (var H = te.maximumIntegerDigits !== void 0 ? Number(te.maximumIntegerDigits) : void 0, Q =
|
|
3437
|
-
var Fe =
|
|
3438
|
-
!be && (dt || Fe && ie[he] !==
|
|
3436
|
+
for (var H = te.maximumIntegerDigits !== void 0 ? Number(te.maximumIntegerDigits) : void 0, Q = K.length, X = 0, he = 0, be = !1; he < ce; he++) {
|
|
3437
|
+
var Fe = I.digits.includes(ie[he]), dt = ie[he] === I.decimal;
|
|
3438
|
+
!be && (dt || Fe && ie[he] !== I.digits[0]) && (be = !0), be && (dt || Fe) && (X += 1);
|
|
3439
3439
|
}
|
|
3440
|
-
if (
|
|
3441
|
-
var Lt = ie.slice(0, ce), Je = ie.indexOf(
|
|
3440
|
+
if (z === "insert") {
|
|
3441
|
+
var Lt = ie.slice(0, ce), Je = ie.indexOf(I.decimal), ze = Lt.replace(RegExp("[^".concat(I.decimal).concat(I.digits, "]"), "g"), "").replace(RegExp("^".concat(I.digits[0], "+"), "g"), "").split(I.decimal), We = hr(ze, 2), et = We[0], un = We[1], Rn = un === void 0 ? "" : un, Ht = Je !== -1 && Z <= Je ? "\\." : "\\.(?=.*\\.)", tt = J.replace(RegExp("-|".concat(Ht), "g"), ""), Ae = tt.includes("."), Jn = tt.split("."), Rt = hr(Jn, 2), Ft = Rt[0], dn = Rt[1], Nn = dn === void 0 ? "" : dn;
|
|
3442
3442
|
if (Je !== -1 && ce > Je) if (Ae) {
|
|
3443
3443
|
X -= 1;
|
|
3444
3444
|
var Tn = et + Rn;
|
|
3445
3445
|
H !== void 0 && Tn.length > H && (X = H, et = Tn.slice(0, H));
|
|
3446
3446
|
} else Nn = Ft, Ft = "";
|
|
3447
|
-
var gi = "[".concat(
|
|
3447
|
+
var gi = "[".concat(I.decimal).concat(I.digits.slice(1), "]");
|
|
3448
3448
|
RegExp(gi).test(Lt) || (Ft = Ft.replace(/^0+/g, ""));
|
|
3449
3449
|
var vi = H !== void 0 ? H - et.length : void 0;
|
|
3450
|
-
X += (Ft.slice(0, vi) + (Ae ? "." : "") + Nn).replace(RegExp("[^\\.".concat(
|
|
3450
|
+
X += (Ft.slice(0, vi) + (Ae ? "." : "") + Nn).replace(RegExp("[^\\.".concat(R.decimal, "\\d").concat(R.digits, "]+"), "g"), "").length;
|
|
3451
3451
|
}
|
|
3452
|
-
for (var Pn = 0, Ut = !1, Kl = 0; Pn <
|
|
3453
|
-
var Zl =
|
|
3454
|
-
if (!Ut && (Ji || Zl &&
|
|
3452
|
+
for (var Pn = 0, Ut = !1, Kl = 0; Pn < K.length; Pn++) {
|
|
3453
|
+
var Zl = R.digits.includes(K[Pn]), Ji = K[Pn] === R.decimal;
|
|
3454
|
+
if (!Ut && (Ji || Zl && K[Pn] !== R.digits[0]) && (Ut = !0), Ut && Kl >= X) {
|
|
3455
3455
|
Q = Pn;
|
|
3456
3456
|
break;
|
|
3457
3457
|
}
|
|
3458
3458
|
Ut && (Ji || Zl) && (Kl += 1);
|
|
3459
3459
|
}
|
|
3460
|
-
if (
|
|
3461
|
-
var $n, yi = "\\".concat(
|
|
3460
|
+
if (z === "deleteForward") {
|
|
3461
|
+
var $n, yi = "\\".concat(R.minusSign), bi = "^.{".concat(Q, "}[^").concat(R.decimal).concat(R.digits, "]*[").concat(yi).concat(R.decimal).concat(R.digits, "]"), ei = ($n = RegExp(bi).exec(K)) === null || $n === void 0 ? void 0 : $n[0].length;
|
|
3462
3462
|
ei !== void 0 && (Q = ei - 1);
|
|
3463
3463
|
} else {
|
|
3464
|
-
var el, Xl =
|
|
3464
|
+
var el, Xl = z === "deleteBackward" ? "\\".concat(R.minusSign) : "", qm = "[".concat(Xl).concat(R.decimal).concat(R.digits, "][^").concat(R.decimal).concat(R.digits, "]*.{").concat(K.length - Q, "}$"), ac = (el = RegExp(qm).exec(K)) === null || el === void 0 ? void 0 : el.index;
|
|
3465
3465
|
ac !== void 0 && (Q = ac + 1);
|
|
3466
3466
|
}
|
|
3467
|
-
var Gm = "[\\".concat(
|
|
3467
|
+
var Gm = "[\\".concat(R.minusSign).concat(R.decimal).concat(R.digits.slice(1), "]"), Km = "[\\".concat(R.minusSign).concat(R.decimal).concat(R.digits, "][^").concat(R.decimal).concat(R.digits, "]*$"), To = K.search(RegExp(Gm)), Po = K.search(RegExp(Km));
|
|
3468
3468
|
return To !== -1 && Q < To ? Q = To : Po !== -1 && Q > Po + 1 && (Q = Po + 1), { start: Q, end: Q };
|
|
3469
|
-
})({ localizedValues: p, previousLocalizedValues: h, resolvedOptions: g, inputType: r, value:
|
|
3470
|
-
return { value:
|
|
3469
|
+
})({ localizedValues: p, previousLocalizedValues: h, resolvedOptions: g, inputType: r, value: U, previousValue: o, addedValue: c, changeStart: u, changeEnd: d });
|
|
3470
|
+
return { value: U, selectionStart: j.start, selectionEnd: j.end, options: { locales: m, options: f } };
|
|
3471
3471
|
} }])).format = function(l) {
|
|
3472
3472
|
return nd(l, i);
|
|
3473
3473
|
}, n.unformat = function(l) {
|
|
@@ -4318,12 +4318,12 @@ async function yg(e, t) {
|
|
|
4318
4318
|
boundary: u,
|
|
4319
4319
|
rootBoundary: d,
|
|
4320
4320
|
strategy: c
|
|
4321
|
-
})),
|
|
4321
|
+
})), _ = m === "floating" ? {
|
|
4322
4322
|
x: i,
|
|
4323
4323
|
y: l,
|
|
4324
4324
|
width: o.floating.width,
|
|
4325
4325
|
height: o.floating.height
|
|
4326
|
-
} : o.reference,
|
|
4326
|
+
} : o.reference, w = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a.floating)), y = await (r.isElement == null ? void 0 : r.isElement(w)) ? await (r.getScale == null ? void 0 : r.getScale(w)) || {
|
|
4327
4327
|
x: 1,
|
|
4328
4328
|
y: 1
|
|
4329
4329
|
} : {
|
|
@@ -4331,10 +4331,10 @@ async function yg(e, t) {
|
|
|
4331
4331
|
y: 1
|
|
4332
4332
|
}, S = Pr(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4333
4333
|
elements: a,
|
|
4334
|
-
rect:
|
|
4335
|
-
offsetParent:
|
|
4334
|
+
rect: _,
|
|
4335
|
+
offsetParent: w,
|
|
4336
4336
|
strategy: c
|
|
4337
|
-
}) :
|
|
4337
|
+
}) : _);
|
|
4338
4338
|
return {
|
|
4339
4339
|
top: (b.top - S.top + p.top) / y.y,
|
|
4340
4340
|
bottom: (S.bottom - b.bottom + p.bottom) / y.y,
|
|
@@ -4361,13 +4361,13 @@ const bg = async (e, t, n) => {
|
|
|
4361
4361
|
var g;
|
|
4362
4362
|
const {
|
|
4363
4363
|
name: b,
|
|
4364
|
-
fn:
|
|
4364
|
+
fn: _
|
|
4365
4365
|
} = a[v], {
|
|
4366
|
-
x:
|
|
4366
|
+
x: w,
|
|
4367
4367
|
y,
|
|
4368
4368
|
data: S,
|
|
4369
4369
|
reset: x
|
|
4370
|
-
} = await
|
|
4370
|
+
} = await _({
|
|
4371
4371
|
x: d,
|
|
4372
4372
|
y: m,
|
|
4373
4373
|
initialPlacement: i,
|
|
@@ -4384,7 +4384,7 @@ const bg = async (e, t, n) => {
|
|
|
4384
4384
|
floating: t
|
|
4385
4385
|
}
|
|
4386
4386
|
});
|
|
4387
|
-
d =
|
|
4387
|
+
d = w ?? d, m = y ?? m, h = {
|
|
4388
4388
|
...h,
|
|
4389
4389
|
[b]: {
|
|
4390
4390
|
...h[b],
|
|
@@ -4427,20 +4427,20 @@ const bg = async (e, t, n) => {
|
|
|
4427
4427
|
const m = ad(d), f = {
|
|
4428
4428
|
x: n,
|
|
4429
4429
|
y: i
|
|
4430
|
-
}, h = oa(l), p = ra(h), g = await o.getDimensions(u), v = h === "y", b = v ? "top" : "left",
|
|
4431
|
-
let L = x ? x[
|
|
4432
|
-
(!L || !await (o.isElement == null ? void 0 : o.isElement(x))) && (L = a.floating[
|
|
4433
|
-
const D = y / 2 - S / 2, P = L / 2 - g[p] / 2 - 1, C = Zn(m[b], P),
|
|
4430
|
+
}, h = oa(l), p = ra(h), g = await o.getDimensions(u), v = h === "y", b = v ? "top" : "left", _ = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", y = r.reference[p] + r.reference[h] - f[h] - r.floating[p], S = f[h] - r.reference[h], x = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
|
|
4431
|
+
let L = x ? x[w] : 0;
|
|
4432
|
+
(!L || !await (o.isElement == null ? void 0 : o.isElement(x))) && (L = a.floating[w] || r.floating[p]);
|
|
4433
|
+
const D = y / 2 - S / 2, P = L / 2 - g[p] / 2 - 1, C = Zn(m[b], P), T = Zn(m[_], P), A = C, Y = L - g[p] - T, E = L / 2 - g[p] / 2 + D, N = ks(A, E, Y), W = !c.arrow && Yt(l) != null && E !== N && r.reference[p] / 2 - (E < A ? C : T) - g[p] / 2 < 0, M = W ? E < A ? E - A : E - Y : 0;
|
|
4434
4434
|
return {
|
|
4435
|
-
[h]: f[h] +
|
|
4435
|
+
[h]: f[h] + M,
|
|
4436
4436
|
data: {
|
|
4437
|
-
[h]:
|
|
4438
|
-
centerOffset: E -
|
|
4439
|
-
...
|
|
4440
|
-
alignmentOffset:
|
|
4437
|
+
[h]: N,
|
|
4438
|
+
centerOffset: E - N - M,
|
|
4439
|
+
...W && {
|
|
4440
|
+
alignmentOffset: M
|
|
4441
4441
|
}
|
|
4442
4442
|
},
|
|
4443
|
-
reset:
|
|
4443
|
+
reset: W
|
|
4444
4444
|
};
|
|
4445
4445
|
}
|
|
4446
4446
|
});
|
|
@@ -4465,18 +4465,18 @@ const kg = function(e) {
|
|
|
4465
4465
|
allowedPlacements: f = Lc,
|
|
4466
4466
|
autoAlignment: h = !0,
|
|
4467
4467
|
...p
|
|
4468
|
-
} = hi(e, t), g = m !== void 0 || f === Lc ? _g(m || null, h, f) : f, v = await c.detectOverflow(t, p), b = ((n = o.autoPlacement) == null ? void 0 : n.index) || 0,
|
|
4469
|
-
if (
|
|
4468
|
+
} = hi(e, t), g = m !== void 0 || f === Lc ? _g(m || null, h, f) : f, v = await c.detectOverflow(t, p), b = ((n = o.autoPlacement) == null ? void 0 : n.index) || 0, _ = g[b];
|
|
4469
|
+
if (_ == null)
|
|
4470
4470
|
return {};
|
|
4471
|
-
const
|
|
4472
|
-
if (a !==
|
|
4471
|
+
const w = sd(_, r, await (c.isRTL == null ? void 0 : c.isRTL(u.floating)));
|
|
4472
|
+
if (a !== _)
|
|
4473
4473
|
return {
|
|
4474
4474
|
reset: {
|
|
4475
4475
|
placement: g[0]
|
|
4476
4476
|
}
|
|
4477
4477
|
};
|
|
4478
|
-
const y = [v[nn(
|
|
4479
|
-
placement:
|
|
4478
|
+
const y = [v[nn(_)], v[w[0]], v[w[1]]], S = [...((i = o.autoPlacement) == null ? void 0 : i.overflows) || [], {
|
|
4479
|
+
placement: _,
|
|
4480
4480
|
overflows: y
|
|
4481
4481
|
}], x = g[b + 1];
|
|
4482
4482
|
if (x)
|
|
@@ -4490,20 +4490,20 @@ const kg = function(e) {
|
|
|
4490
4490
|
}
|
|
4491
4491
|
};
|
|
4492
4492
|
const L = S.map((C) => {
|
|
4493
|
-
const
|
|
4494
|
-
return [C.placement,
|
|
4493
|
+
const T = Yt(C.placement);
|
|
4494
|
+
return [C.placement, T && d ? (
|
|
4495
4495
|
// Check along the mainAxis and main crossAxis side.
|
|
4496
|
-
C.overflows.slice(0, 2).reduce((
|
|
4496
|
+
C.overflows.slice(0, 2).reduce((A, Y) => A + Y, 0)
|
|
4497
4497
|
) : (
|
|
4498
4498
|
// Check only the mainAxis.
|
|
4499
4499
|
C.overflows[0]
|
|
4500
4500
|
), C.overflows];
|
|
4501
|
-
}).sort((C,
|
|
4501
|
+
}).sort((C, T) => C[1] - T[1]), P = ((l = L.filter((C) => C[2].slice(
|
|
4502
4502
|
0,
|
|
4503
4503
|
// Aligned placements should not check their opposite crossAxis
|
|
4504
4504
|
// side.
|
|
4505
4505
|
Yt(C[0]) ? 2 : 3
|
|
4506
|
-
).every((
|
|
4506
|
+
).every((T) => T <= 0))[0]) == null ? void 0 : l[0]) || L[0][0];
|
|
4507
4507
|
return P !== a ? {
|
|
4508
4508
|
data: {
|
|
4509
4509
|
index: b + 1,
|
|
@@ -4539,7 +4539,7 @@ const kg = function(e) {
|
|
|
4539
4539
|
} = hi(e, t);
|
|
4540
4540
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
4541
4541
|
return {};
|
|
4542
|
-
const b = nn(l),
|
|
4542
|
+
const b = nn(l), _ = _n(a), w = nn(a) === a, y = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), S = f || (w || !g ? [Tr(a)] : Np(a)), x = p !== "none";
|
|
4543
4543
|
!f && x && S.push(...Ip(a, g, p, y));
|
|
4544
4544
|
const L = [a, ...S], D = await c.detectOverflow(t, v), P = [];
|
|
4545
4545
|
let C = ((i = r.flip) == null ? void 0 : i.overflows) || [];
|
|
@@ -4551,45 +4551,45 @@ const kg = function(e) {
|
|
|
4551
4551
|
placement: l,
|
|
4552
4552
|
overflows: P
|
|
4553
4553
|
}], !P.every((E) => E <= 0)) {
|
|
4554
|
-
var
|
|
4555
|
-
const E = (((
|
|
4556
|
-
if (
|
|
4554
|
+
var T, A;
|
|
4555
|
+
const E = (((T = r.flip) == null ? void 0 : T.index) || 0) + 1, N = L[E];
|
|
4556
|
+
if (N && (!(m === "alignment" ? _ !== _n(N) : !1) || // We leave the current main axis only if every placement on that axis
|
|
4557
4557
|
// overflows the main axis.
|
|
4558
|
-
C.every((k) => _n(k.placement) ===
|
|
4558
|
+
C.every((k) => _n(k.placement) === _ ? k.overflows[0] > 0 : !0)))
|
|
4559
4559
|
return {
|
|
4560
4560
|
data: {
|
|
4561
4561
|
index: E,
|
|
4562
4562
|
overflows: C
|
|
4563
4563
|
},
|
|
4564
4564
|
reset: {
|
|
4565
|
-
placement:
|
|
4565
|
+
placement: N
|
|
4566
4566
|
}
|
|
4567
4567
|
};
|
|
4568
|
-
let
|
|
4569
|
-
if (!
|
|
4568
|
+
let W = (A = C.filter((M) => M.overflows[0] <= 0).sort((M, k) => M.overflows[1] - k.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
4569
|
+
if (!W)
|
|
4570
4570
|
switch (h) {
|
|
4571
4571
|
case "bestFit": {
|
|
4572
|
-
var
|
|
4573
|
-
const
|
|
4572
|
+
var Y;
|
|
4573
|
+
const M = (Y = C.filter((k) => {
|
|
4574
4574
|
if (x) {
|
|
4575
4575
|
const $ = _n(k.placement);
|
|
4576
|
-
return $ ===
|
|
4576
|
+
return $ === _ || // Create a bias to the `y` side axis due to horizontal
|
|
4577
4577
|
// reading directions favoring greater width.
|
|
4578
4578
|
$ === "y";
|
|
4579
4579
|
}
|
|
4580
4580
|
return !0;
|
|
4581
|
-
}).map((k) => [k.placement, k.overflows.filter(($) => $ > 0).reduce(($,
|
|
4582
|
-
|
|
4581
|
+
}).map((k) => [k.placement, k.overflows.filter(($) => $ > 0).reduce(($, U) => $ + U, 0)]).sort((k, $) => k[1] - $[1])[0]) == null ? void 0 : Y[0];
|
|
4582
|
+
M && (W = M);
|
|
4583
4583
|
break;
|
|
4584
4584
|
}
|
|
4585
4585
|
case "initialPlacement":
|
|
4586
|
-
|
|
4586
|
+
W = a;
|
|
4587
4587
|
break;
|
|
4588
4588
|
}
|
|
4589
|
-
if (l !==
|
|
4589
|
+
if (l !== W)
|
|
4590
4590
|
return {
|
|
4591
4591
|
reset: {
|
|
4592
|
-
placement:
|
|
4592
|
+
placement: W
|
|
4593
4593
|
}
|
|
4594
4594
|
};
|
|
4595
4595
|
}
|
|
@@ -4662,12 +4662,12 @@ const Eg = function(e) {
|
|
|
4662
4662
|
limiter: c = {
|
|
4663
4663
|
fn: (b) => {
|
|
4664
4664
|
let {
|
|
4665
|
-
x:
|
|
4666
|
-
y:
|
|
4665
|
+
x: _,
|
|
4666
|
+
y: w
|
|
4667
4667
|
} = b;
|
|
4668
4668
|
return {
|
|
4669
|
-
x:
|
|
4670
|
-
y:
|
|
4669
|
+
x: _,
|
|
4670
|
+
y: w
|
|
4671
4671
|
};
|
|
4672
4672
|
}
|
|
4673
4673
|
},
|
|
@@ -4678,12 +4678,12 @@ const Eg = function(e) {
|
|
|
4678
4678
|
}, m = await r.detectOverflow(t, u), f = _n(nn(l)), h = od(f);
|
|
4679
4679
|
let p = d[h], g = d[f];
|
|
4680
4680
|
if (o) {
|
|
4681
|
-
const b = h === "y" ? "top" : "left",
|
|
4682
|
-
p = ks(
|
|
4681
|
+
const b = h === "y" ? "top" : "left", _ = h === "y" ? "bottom" : "right", w = p + m[b], y = p - m[_];
|
|
4682
|
+
p = ks(w, p, y);
|
|
4683
4683
|
}
|
|
4684
4684
|
if (a) {
|
|
4685
|
-
const b = f === "y" ? "top" : "left",
|
|
4686
|
-
g = ks(
|
|
4685
|
+
const b = f === "y" ? "top" : "left", _ = f === "y" ? "bottom" : "right", w = g + m[b], y = g - m[_];
|
|
4686
|
+
g = ks(w, g, y);
|
|
4687
4687
|
}
|
|
4688
4688
|
const v = c.fn({
|
|
4689
4689
|
...t,
|
|
@@ -4724,11 +4724,11 @@ const Eg = function(e) {
|
|
|
4724
4724
|
} = r.floating;
|
|
4725
4725
|
let v, b;
|
|
4726
4726
|
m === "top" || m === "bottom" ? (v = m, b = f === (await (o.isRTL == null ? void 0 : o.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (b = m, v = f === "end" ? "top" : "bottom");
|
|
4727
|
-
const
|
|
4727
|
+
const _ = g - d.top - d.bottom, w = p - d.left - d.right, y = Zn(g - d[v], _), S = Zn(p - d[b], w), x = !t.middlewareData.shift;
|
|
4728
4728
|
let L = y, D = S;
|
|
4729
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (D =
|
|
4730
|
-
const C = vt(d.left, 0),
|
|
4731
|
-
h ? D = p - 2 * (C !== 0 ||
|
|
4729
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = w), (i = t.middlewareData.shift) != null && i.enabled.y && (L = _), x && !f) {
|
|
4730
|
+
const C = vt(d.left, 0), T = vt(d.right, 0), A = vt(d.top, 0), Y = vt(d.bottom, 0);
|
|
4731
|
+
h ? D = p - 2 * (C !== 0 || T !== 0 ? C + T : vt(d.left, d.right)) : L = g - 2 * (A !== 0 || Y !== 0 ? A + Y : vt(d.top, d.bottom));
|
|
4732
4732
|
}
|
|
4733
4733
|
await c({
|
|
4734
4734
|
...t,
|
|
@@ -4794,8 +4794,8 @@ function fi(e, t, n, i) {
|
|
|
4794
4794
|
const f = ut(r), h = i && Oe(i) ? ut(i) : i;
|
|
4795
4795
|
let p = f, g = _s(p);
|
|
4796
4796
|
for (; g && i && h !== p; ) {
|
|
4797
|
-
const v = Ni(g), b = g.getBoundingClientRect(),
|
|
4798
|
-
c *= v.x, u *= v.y, d *= v.x, m *= v.y, c +=
|
|
4797
|
+
const v = Ni(g), b = g.getBoundingClientRect(), _ = _t(g), w = b.left + (g.clientLeft + parseFloat(_.paddingLeft)) * v.x, y = b.top + (g.clientTop + parseFloat(_.paddingTop)) * v.y;
|
|
4798
|
+
c *= v.x, u *= v.y, d *= v.x, m *= v.y, c += w, u += y, p = ut(g), g = _s(p);
|
|
4799
4799
|
}
|
|
4800
4800
|
}
|
|
4801
4801
|
return Pr({
|
|
@@ -5052,7 +5052,7 @@ function Vg(e, t) {
|
|
|
5052
5052
|
} = u;
|
|
5053
5053
|
if (a || t(), !f || !h)
|
|
5054
5054
|
return;
|
|
5055
|
-
const p = Ei(m), g = Ei(l.clientWidth - (d + f)), v = Ei(l.clientHeight - (m + h)), b = Ei(d),
|
|
5055
|
+
const p = Ei(m), g = Ei(l.clientWidth - (d + f)), v = Ei(l.clientHeight - (m + h)), b = Ei(d), w = {
|
|
5056
5056
|
rootMargin: -p + "px " + -g + "px " + -v + "px " + -b + "px",
|
|
5057
5057
|
threshold: vt(0, Zn(1, c)) || 1
|
|
5058
5058
|
};
|
|
@@ -5070,12 +5070,12 @@ function Vg(e, t) {
|
|
|
5070
5070
|
}
|
|
5071
5071
|
try {
|
|
5072
5072
|
n = new IntersectionObserver(S, {
|
|
5073
|
-
...
|
|
5073
|
+
...w,
|
|
5074
5074
|
// Handle <iframe>s
|
|
5075
5075
|
root: l.ownerDocument
|
|
5076
5076
|
});
|
|
5077
5077
|
} catch {
|
|
5078
|
-
n = new IntersectionObserver(S,
|
|
5078
|
+
n = new IntersectionObserver(S, w);
|
|
5079
5079
|
}
|
|
5080
5080
|
n.observe(e);
|
|
5081
5081
|
}
|
|
@@ -5098,10 +5098,10 @@ function ua(e, t, n, i) {
|
|
|
5098
5098
|
const m = u && a ? Vg(u, n) : null;
|
|
5099
5099
|
let f = -1, h = null;
|
|
5100
5100
|
o && (h = new ResizeObserver((b) => {
|
|
5101
|
-
let [
|
|
5102
|
-
|
|
5103
|
-
var
|
|
5104
|
-
(
|
|
5101
|
+
let [_] = b;
|
|
5102
|
+
_ && _.target === u && h && (h.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
5103
|
+
var w;
|
|
5104
|
+
(w = h) == null || w.observe(t);
|
|
5105
5105
|
})), n();
|
|
5106
5106
|
}), u && !c && h.observe(u), h.observe(t));
|
|
5107
5107
|
let p, g = c ? fi(e) : null;
|
|
@@ -5112,8 +5112,8 @@ function ua(e, t, n, i) {
|
|
|
5112
5112
|
}
|
|
5113
5113
|
return n(), () => {
|
|
5114
5114
|
var b;
|
|
5115
|
-
d.forEach((
|
|
5116
|
-
l &&
|
|
5115
|
+
d.forEach((_) => {
|
|
5116
|
+
l && _.removeEventListener("scroll", n), r && _.removeEventListener("resize", n);
|
|
5117
5117
|
}), m?.(), (b = h) == null || b.disconnect(), h = null, c && cancelAnimationFrame(p);
|
|
5118
5118
|
};
|
|
5119
5119
|
}
|
|
@@ -5198,11 +5198,11 @@ function Jg(e) {
|
|
|
5198
5198
|
isPositioned: !1
|
|
5199
5199
|
}), [f, h] = F.useState(i);
|
|
5200
5200
|
Yr(f, i) || h(i);
|
|
5201
|
-
const [p, g] = F.useState(null), [v, b] = F.useState(null),
|
|
5201
|
+
const [p, g] = F.useState(null), [v, b] = F.useState(null), _ = F.useCallback((k) => {
|
|
5202
5202
|
k !== x.current && (x.current = k, g(k));
|
|
5203
|
-
}, []),
|
|
5203
|
+
}, []), w = F.useCallback((k) => {
|
|
5204
5204
|
k !== L.current && (L.current = k, b(k));
|
|
5205
|
-
}, []), y = r || p, S = o || v, x = F.useRef(null), L = F.useRef(null), D = F.useRef(d), P = c != null, C = Bo(c),
|
|
5205
|
+
}, []), y = r || p, S = o || v, x = F.useRef(null), L = F.useRef(null), D = F.useRef(d), P = c != null, C = Bo(c), T = Bo(l), A = Bo(u), Y = F.useCallback(() => {
|
|
5206
5206
|
if (!x.current || !L.current)
|
|
5207
5207
|
return;
|
|
5208
5208
|
const k = {
|
|
@@ -5210,20 +5210,20 @@ function Jg(e) {
|
|
|
5210
5210
|
strategy: n,
|
|
5211
5211
|
middleware: f
|
|
5212
5212
|
};
|
|
5213
|
-
|
|
5214
|
-
const
|
|
5213
|
+
T.current && (k.platform = T.current), Zg(x.current, L.current, k).then(($) => {
|
|
5214
|
+
const U = {
|
|
5215
5215
|
...$,
|
|
5216
5216
|
// The floating element's position may be recomputed while it's closed
|
|
5217
5217
|
// but still mounted (such as when transitioning out). To ensure
|
|
5218
5218
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
5219
5219
|
// setting it to `true` when `open === false` (must be specified).
|
|
5220
|
-
isPositioned:
|
|
5220
|
+
isPositioned: A.current !== !1
|
|
5221
5221
|
};
|
|
5222
|
-
E.current && !Yr(D.current,
|
|
5223
|
-
m(
|
|
5222
|
+
E.current && !Yr(D.current, U) && (D.current = U, Js.flushSync(() => {
|
|
5223
|
+
m(U);
|
|
5224
5224
|
}));
|
|
5225
5225
|
});
|
|
5226
|
-
}, [f, t, n,
|
|
5226
|
+
}, [f, t, n, T, A]);
|
|
5227
5227
|
vr(() => {
|
|
5228
5228
|
u === !1 && D.current.isPositioned && (D.current.isPositioned = !1, m((k) => ({
|
|
5229
5229
|
...k,
|
|
@@ -5236,46 +5236,46 @@ function Jg(e) {
|
|
|
5236
5236
|
}), []), vr(() => {
|
|
5237
5237
|
if (y && (x.current = y), S && (L.current = S), y && S) {
|
|
5238
5238
|
if (C.current)
|
|
5239
|
-
return C.current(y, S,
|
|
5240
|
-
|
|
5239
|
+
return C.current(y, S, Y);
|
|
5240
|
+
Y();
|
|
5241
5241
|
}
|
|
5242
|
-
}, [y, S,
|
|
5243
|
-
const
|
|
5242
|
+
}, [y, S, Y, C, P]);
|
|
5243
|
+
const N = F.useMemo(() => ({
|
|
5244
5244
|
reference: x,
|
|
5245
5245
|
floating: L,
|
|
5246
|
-
setReference:
|
|
5247
|
-
setFloating:
|
|
5248
|
-
}), [
|
|
5246
|
+
setReference: _,
|
|
5247
|
+
setFloating: w
|
|
5248
|
+
}), [_, w]), W = F.useMemo(() => ({
|
|
5249
5249
|
reference: y,
|
|
5250
5250
|
floating: S
|
|
5251
|
-
}), [y, S]),
|
|
5251
|
+
}), [y, S]), M = F.useMemo(() => {
|
|
5252
5252
|
const k = {
|
|
5253
5253
|
position: n,
|
|
5254
5254
|
left: 0,
|
|
5255
5255
|
top: 0
|
|
5256
5256
|
};
|
|
5257
|
-
if (!
|
|
5257
|
+
if (!W.floating)
|
|
5258
5258
|
return k;
|
|
5259
|
-
const $ = Ic(
|
|
5259
|
+
const $ = Ic(W.floating, d.x), U = Ic(W.floating, d.y);
|
|
5260
5260
|
return a ? {
|
|
5261
5261
|
...k,
|
|
5262
|
-
transform: "translate(" + $ + "px, " +
|
|
5263
|
-
...Md(
|
|
5262
|
+
transform: "translate(" + $ + "px, " + U + "px)",
|
|
5263
|
+
...Md(W.floating) >= 1.5 && {
|
|
5264
5264
|
willChange: "transform"
|
|
5265
5265
|
}
|
|
5266
5266
|
} : {
|
|
5267
5267
|
position: n,
|
|
5268
5268
|
left: $,
|
|
5269
|
-
top:
|
|
5269
|
+
top: U
|
|
5270
5270
|
};
|
|
5271
|
-
}, [n, a,
|
|
5271
|
+
}, [n, a, W.floating, d.x, d.y]);
|
|
5272
5272
|
return F.useMemo(() => ({
|
|
5273
5273
|
...d,
|
|
5274
|
-
update:
|
|
5275
|
-
refs:
|
|
5276
|
-
elements:
|
|
5277
|
-
floatingStyles:
|
|
5278
|
-
}), [d,
|
|
5274
|
+
update: Y,
|
|
5275
|
+
refs: N,
|
|
5276
|
+
elements: W,
|
|
5277
|
+
floatingStyles: M
|
|
5278
|
+
}), [d, Y, N, W, M]);
|
|
5279
5279
|
}
|
|
5280
5280
|
const ev = (e) => {
|
|
5281
5281
|
function t(n) {
|
|
@@ -5404,37 +5404,37 @@ const Bc = /* @__PURE__ */ F.forwardRef(function(t, n) {
|
|
|
5404
5404
|
...v
|
|
5405
5405
|
} = t;
|
|
5406
5406
|
process.env.NODE_ENV !== "production" && (n || yr("The `ref` prop is required for `FloatingArrow`."));
|
|
5407
|
-
const b = zl(), [
|
|
5407
|
+
const b = zl(), [_, w] = F.useState(!1);
|
|
5408
5408
|
if (De(() => {
|
|
5409
5409
|
if (!l) return;
|
|
5410
|
-
_t(l).direction === "rtl" &&
|
|
5410
|
+
_t(l).direction === "rtl" && w(!0);
|
|
5411
5411
|
}, [l]), !l)
|
|
5412
5412
|
return null;
|
|
5413
5413
|
const [y, S] = i.split("-"), x = y === "top" || y === "bottom";
|
|
5414
5414
|
let L = m;
|
|
5415
5415
|
(x && o != null && o.x || !x && o != null && o.y) && (L = null);
|
|
5416
|
-
const D = d * 2, P = D / 2, C = a / 2 * (u / -8 + 1),
|
|
5416
|
+
const D = d * 2, P = D / 2, C = a / 2 * (u / -8 + 1), T = c / 2 * u / 4, A = !!h, Y = L && S === "end" ? "bottom" : "top";
|
|
5417
5417
|
let E = L && S === "end" ? "right" : "left";
|
|
5418
|
-
L &&
|
|
5419
|
-
const
|
|
5420
|
-
top:
|
|
5421
|
-
left:
|
|
5422
|
-
bottom:
|
|
5423
|
-
right:
|
|
5418
|
+
L && _ && (E = S === "end" ? "left" : "right");
|
|
5419
|
+
const N = r?.x != null ? L || r.x : "", W = r?.y != null ? L || r.y : "", M = h || "M0,0" + (" H" + a) + (" L" + (a - C) + "," + (c - T)) + (" Q" + a / 2 + "," + c + " " + C + "," + (c - T)) + " Z", k = {
|
|
5420
|
+
top: A ? "rotate(180deg)" : "",
|
|
5421
|
+
left: A ? "rotate(90deg)" : "rotate(-90deg)",
|
|
5422
|
+
bottom: A ? "" : "rotate(180deg)",
|
|
5423
|
+
right: A ? "rotate(-90deg)" : "rotate(90deg)"
|
|
5424
5424
|
}[y];
|
|
5425
5425
|
return /* @__PURE__ */ Qs("svg", {
|
|
5426
5426
|
...v,
|
|
5427
5427
|
"aria-hidden": !0,
|
|
5428
5428
|
ref: n,
|
|
5429
|
-
width:
|
|
5429
|
+
width: A ? a : a + D,
|
|
5430
5430
|
height: a,
|
|
5431
5431
|
viewBox: "0 0 " + a + " " + (c > a ? c : a),
|
|
5432
5432
|
style: {
|
|
5433
5433
|
position: "absolute",
|
|
5434
5434
|
pointerEvents: "none",
|
|
5435
|
-
[E]:
|
|
5436
|
-
[
|
|
5437
|
-
[y]: x ||
|
|
5435
|
+
[E]: N,
|
|
5436
|
+
[Y]: W,
|
|
5437
|
+
[y]: x || A ? "100%" : "calc(100% - " + D / 2 + "px)",
|
|
5438
5438
|
transform: [k, p].filter(($) => !!$).join(" "),
|
|
5439
5439
|
...g
|
|
5440
5440
|
},
|
|
@@ -5443,15 +5443,15 @@ const Bc = /* @__PURE__ */ F.forwardRef(function(t, n) {
|
|
|
5443
5443
|
fill: "none",
|
|
5444
5444
|
stroke: f,
|
|
5445
5445
|
strokeWidth: D + (h ? 0 : 1),
|
|
5446
|
-
d:
|
|
5446
|
+
d: M
|
|
5447
5447
|
}), /* @__PURE__ */ bt("path", {
|
|
5448
5448
|
stroke: D && !h ? v.fill : "none",
|
|
5449
|
-
d:
|
|
5449
|
+
d: M
|
|
5450
5450
|
}), /* @__PURE__ */ bt("clipPath", {
|
|
5451
5451
|
id: b,
|
|
5452
5452
|
children: /* @__PURE__ */ bt("rect", {
|
|
5453
5453
|
x: -P,
|
|
5454
|
-
y: P * (
|
|
5454
|
+
y: P * (A ? -1 : 1),
|
|
5455
5455
|
width: a + D,
|
|
5456
5456
|
height: a
|
|
5457
5457
|
})
|
|
@@ -5514,57 +5514,57 @@ function mv(e, t) {
|
|
|
5514
5514
|
mouseOnly: d = !1,
|
|
5515
5515
|
restMs: m = 0,
|
|
5516
5516
|
move: f = !0
|
|
5517
|
-
} = t, h = Al(), p = so(), g = Xe(u), v = Xe(c), b = Xe(n),
|
|
5518
|
-
}), C = F.useRef(!1),
|
|
5519
|
-
var
|
|
5520
|
-
const k = (
|
|
5517
|
+
} = t, h = Al(), p = so(), g = Xe(u), v = Xe(c), b = Xe(n), _ = Xe(m), w = F.useRef(), y = F.useRef(-1), S = F.useRef(), x = F.useRef(-1), L = F.useRef(!0), D = F.useRef(!1), P = F.useRef(() => {
|
|
5518
|
+
}), C = F.useRef(!1), T = Ge(() => {
|
|
5519
|
+
var M;
|
|
5520
|
+
const k = (M = l.current.openEvent) == null ? void 0 : M.type;
|
|
5521
5521
|
return k?.includes("mouse") && k !== "mousedown";
|
|
5522
5522
|
});
|
|
5523
5523
|
F.useEffect(() => {
|
|
5524
5524
|
if (!a) return;
|
|
5525
|
-
function
|
|
5525
|
+
function M(k) {
|
|
5526
5526
|
let {
|
|
5527
5527
|
open: $
|
|
5528
5528
|
} = k;
|
|
5529
5529
|
$ || (pt(y), pt(x), L.current = !0, C.current = !1);
|
|
5530
5530
|
}
|
|
5531
|
-
return r.on("openchange",
|
|
5532
|
-
r.off("openchange",
|
|
5531
|
+
return r.on("openchange", M), () => {
|
|
5532
|
+
r.off("openchange", M);
|
|
5533
5533
|
};
|
|
5534
5534
|
}, [a, r]), F.useEffect(() => {
|
|
5535
5535
|
if (!a || !g.current || !n) return;
|
|
5536
|
-
function
|
|
5537
|
-
|
|
5536
|
+
function M($) {
|
|
5537
|
+
T() && i(!1, $, "hover");
|
|
5538
5538
|
}
|
|
5539
5539
|
const k = qe(o.floating).documentElement;
|
|
5540
|
-
return k.addEventListener("mouseleave",
|
|
5541
|
-
k.removeEventListener("mouseleave",
|
|
5540
|
+
return k.addEventListener("mouseleave", M), () => {
|
|
5541
|
+
k.removeEventListener("mouseleave", M);
|
|
5542
5542
|
};
|
|
5543
|
-
}, [o.floating, n, i, a, g,
|
|
5544
|
-
const
|
|
5543
|
+
}, [o.floating, n, i, a, g, T]);
|
|
5544
|
+
const A = F.useCallback(function(M, k, $) {
|
|
5545
5545
|
k === void 0 && (k = !0), $ === void 0 && ($ = "hover");
|
|
5546
|
-
const
|
|
5547
|
-
|
|
5548
|
-
}, [v, i]),
|
|
5546
|
+
const U = Wo(v.current, "close", w.current);
|
|
5547
|
+
U && !S.current ? (pt(y), y.current = window.setTimeout(() => i(!1, M, $), U)) : k && (pt(y), i(!1, M, $));
|
|
5548
|
+
}, [v, i]), Y = Ge(() => {
|
|
5549
5549
|
P.current(), S.current = void 0;
|
|
5550
5550
|
}), E = Ge(() => {
|
|
5551
5551
|
if (D.current) {
|
|
5552
|
-
const
|
|
5553
|
-
|
|
5552
|
+
const M = qe(o.floating).body;
|
|
5553
|
+
M.style.pointerEvents = "", M.removeAttribute(Wc), D.current = !1;
|
|
5554
5554
|
}
|
|
5555
|
-
}),
|
|
5555
|
+
}), N = Ge(() => l.current.openEvent ? ["click", "mousedown"].includes(l.current.openEvent.type) : !1);
|
|
5556
5556
|
F.useEffect(() => {
|
|
5557
5557
|
if (!a) return;
|
|
5558
|
-
function
|
|
5559
|
-
if (pt(y), L.current = !1, d && !Ll(
|
|
5558
|
+
function M(j) {
|
|
5559
|
+
if (pt(y), L.current = !1, d && !Ll(w.current) || Vo(_.current) > 0 && !Wo(v.current, "open"))
|
|
5560
5560
|
return;
|
|
5561
|
-
const O = Wo(v.current, "open",
|
|
5561
|
+
const O = Wo(v.current, "open", w.current);
|
|
5562
5562
|
O ? y.current = window.setTimeout(() => {
|
|
5563
5563
|
b.current || i(!0, j, "hover");
|
|
5564
5564
|
}, O) : n || i(!0, j, "hover");
|
|
5565
5565
|
}
|
|
5566
5566
|
function k(j) {
|
|
5567
|
-
if (
|
|
5567
|
+
if (N()) {
|
|
5568
5568
|
E();
|
|
5569
5569
|
return;
|
|
5570
5570
|
}
|
|
@@ -5577,83 +5577,83 @@ function mv(e, t) {
|
|
|
5577
5577
|
x: j.clientX,
|
|
5578
5578
|
y: j.clientY,
|
|
5579
5579
|
onClose() {
|
|
5580
|
-
E(),
|
|
5580
|
+
E(), Y(), N() || A(j, !0, "safe-polygon");
|
|
5581
5581
|
}
|
|
5582
5582
|
});
|
|
5583
|
-
const
|
|
5584
|
-
O.addEventListener("mousemove",
|
|
5585
|
-
O.removeEventListener("mousemove",
|
|
5583
|
+
const I = S.current;
|
|
5584
|
+
O.addEventListener("mousemove", I), P.current = () => {
|
|
5585
|
+
O.removeEventListener("mousemove", I);
|
|
5586
5586
|
};
|
|
5587
5587
|
return;
|
|
5588
5588
|
}
|
|
5589
|
-
(
|
|
5589
|
+
(w.current !== "touch" || !Ue(o.floating, j.relatedTarget)) && A(j);
|
|
5590
5590
|
}
|
|
5591
5591
|
function $(j) {
|
|
5592
|
-
|
|
5592
|
+
N() || l.current.floatingContext && (g.current == null || g.current({
|
|
5593
5593
|
...l.current.floatingContext,
|
|
5594
5594
|
tree: h,
|
|
5595
5595
|
x: j.clientX,
|
|
5596
5596
|
y: j.clientY,
|
|
5597
5597
|
onClose() {
|
|
5598
|
-
E(),
|
|
5598
|
+
E(), Y(), N() || A(j);
|
|
5599
5599
|
}
|
|
5600
5600
|
})(j));
|
|
5601
5601
|
}
|
|
5602
|
-
function
|
|
5602
|
+
function U() {
|
|
5603
5603
|
pt(y);
|
|
5604
5604
|
}
|
|
5605
|
-
function
|
|
5606
|
-
|
|
5605
|
+
function q(j) {
|
|
5606
|
+
N() || A(j, !1);
|
|
5607
5607
|
}
|
|
5608
5608
|
if (Oe(o.domReference)) {
|
|
5609
5609
|
const j = o.domReference, O = o.floating;
|
|
5610
|
-
return n && j.addEventListener("mouseleave", $), f && j.addEventListener("mousemove",
|
|
5610
|
+
return n && j.addEventListener("mouseleave", $), f && j.addEventListener("mousemove", M, {
|
|
5611
5611
|
once: !0
|
|
5612
|
-
}), j.addEventListener("mouseenter",
|
|
5613
|
-
n && j.removeEventListener("mouseleave", $), f && j.removeEventListener("mousemove",
|
|
5612
|
+
}), j.addEventListener("mouseenter", M), j.addEventListener("mouseleave", k), O && (O.addEventListener("mouseleave", $), O.addEventListener("mouseenter", U), O.addEventListener("mouseleave", q)), () => {
|
|
5613
|
+
n && j.removeEventListener("mouseleave", $), f && j.removeEventListener("mousemove", M), j.removeEventListener("mouseenter", M), j.removeEventListener("mouseleave", k), O && (O.removeEventListener("mouseleave", $), O.removeEventListener("mouseenter", U), O.removeEventListener("mouseleave", q));
|
|
5614
5614
|
};
|
|
5615
5615
|
}
|
|
5616
|
-
}, [o, a, e, d, f,
|
|
5617
|
-
var
|
|
5618
|
-
if (a && n && (
|
|
5616
|
+
}, [o, a, e, d, f, A, Y, E, i, n, b, h, v, g, l, N, _]), De(() => {
|
|
5617
|
+
var M;
|
|
5618
|
+
if (a && n && (M = g.current) != null && (M = M.__options) != null && M.blockPointerEvents && T()) {
|
|
5619
5619
|
D.current = !0;
|
|
5620
5620
|
const $ = o.floating;
|
|
5621
5621
|
if (Oe(o.domReference) && $) {
|
|
5622
5622
|
var k;
|
|
5623
|
-
const
|
|
5624
|
-
|
|
5625
|
-
const
|
|
5626
|
-
return j && (j.style.pointerEvents = ""),
|
|
5627
|
-
|
|
5623
|
+
const U = qe(o.floating).body;
|
|
5624
|
+
U.setAttribute(Wc, "");
|
|
5625
|
+
const q = o.domReference, j = h == null || (k = h.nodesRef.current.find((O) => O.id === p)) == null || (k = k.context) == null ? void 0 : k.elements.floating;
|
|
5626
|
+
return j && (j.style.pointerEvents = ""), U.style.pointerEvents = "none", q.style.pointerEvents = "auto", $.style.pointerEvents = "auto", () => {
|
|
5627
|
+
U.style.pointerEvents = "", q.style.pointerEvents = "", $.style.pointerEvents = "";
|
|
5628
5628
|
};
|
|
5629
5629
|
}
|
|
5630
5630
|
}
|
|
5631
|
-
}, [a, n, p, o, h, g,
|
|
5632
|
-
n || (
|
|
5633
|
-
}, [n,
|
|
5634
|
-
|
|
5635
|
-
}, [a, o.domReference,
|
|
5636
|
-
const
|
|
5637
|
-
function
|
|
5638
|
-
|
|
5631
|
+
}, [a, n, p, o, h, g, T]), De(() => {
|
|
5632
|
+
n || (w.current = void 0, C.current = !1, Y(), E());
|
|
5633
|
+
}, [n, Y, E]), F.useEffect(() => () => {
|
|
5634
|
+
Y(), pt(y), pt(x), E();
|
|
5635
|
+
}, [a, o.domReference, Y, E]);
|
|
5636
|
+
const W = F.useMemo(() => {
|
|
5637
|
+
function M(k) {
|
|
5638
|
+
w.current = k.pointerType;
|
|
5639
5639
|
}
|
|
5640
5640
|
return {
|
|
5641
|
-
onPointerDown:
|
|
5642
|
-
onPointerEnter:
|
|
5641
|
+
onPointerDown: M,
|
|
5642
|
+
onPointerEnter: M,
|
|
5643
5643
|
onMouseMove(k) {
|
|
5644
5644
|
const {
|
|
5645
5645
|
nativeEvent: $
|
|
5646
5646
|
} = k;
|
|
5647
|
-
function
|
|
5647
|
+
function U() {
|
|
5648
5648
|
!L.current && !b.current && i(!0, $, "hover");
|
|
5649
5649
|
}
|
|
5650
|
-
d && !Ll(
|
|
5650
|
+
d && !Ll(w.current) || n || Vo(_.current) === 0 || C.current && k.movementX ** 2 + k.movementY ** 2 < 2 || (pt(x), w.current === "touch" ? U() : (C.current = !0, x.current = window.setTimeout(U, Vo(_.current))));
|
|
5651
5651
|
}
|
|
5652
5652
|
};
|
|
5653
|
-
}, [d, i, n, b,
|
|
5653
|
+
}, [d, i, n, b, _]);
|
|
5654
5654
|
return F.useMemo(() => a ? {
|
|
5655
|
-
reference:
|
|
5656
|
-
} : {}, [a,
|
|
5655
|
+
reference: W
|
|
5656
|
+
} : {}, [a, W]);
|
|
5657
5657
|
}
|
|
5658
5658
|
let Vc = 0;
|
|
5659
5659
|
function oi(e, t) {
|
|
@@ -5701,8 +5701,8 @@ function vv(e, t, n, i) {
|
|
|
5701
5701
|
if (a.has(p))
|
|
5702
5702
|
f(p);
|
|
5703
5703
|
else {
|
|
5704
|
-
const g = r ? p.getAttribute(r) : null, v = g !== null && g !== "false", b = Hc(r),
|
|
5705
|
-
b.set(p,
|
|
5704
|
+
const g = r ? p.getAttribute(r) : null, v = g !== null && g !== "false", b = Hc(r), _ = (b.get(p) || 0) + 1, w = (d.get(p) || 0) + 1;
|
|
5705
|
+
b.set(p, _), d.set(p, w), u.push(p), _ === 1 && v && er.add(p), w === 1 && p.setAttribute(l, ""), !v && r && p.setAttribute(r, r === "inert" ? "" : "true");
|
|
5706
5706
|
}
|
|
5707
5707
|
});
|
|
5708
5708
|
}
|
|
@@ -5825,8 +5825,8 @@ function Yl(e) {
|
|
|
5825
5825
|
var v;
|
|
5826
5826
|
(v = d.current) == null || v.focus();
|
|
5827
5827
|
} else {
|
|
5828
|
-
const b = o ? o.domReference : null,
|
|
5829
|
-
|
|
5828
|
+
const b = o ? o.domReference : null, _ = xd(b);
|
|
5829
|
+
_?.focus();
|
|
5830
5830
|
}
|
|
5831
5831
|
}
|
|
5832
5832
|
}), p && r && /* @__PURE__ */ bt("span", {
|
|
@@ -5840,8 +5840,8 @@ function Yl(e) {
|
|
|
5840
5840
|
var v;
|
|
5841
5841
|
(v = m.current) == null || v.focus();
|
|
5842
5842
|
} else {
|
|
5843
|
-
const b = o ? o.domReference : null,
|
|
5844
|
-
|
|
5843
|
+
const b = o ? o.domReference : null, _ = kd(b);
|
|
5844
|
+
_?.focus(), o?.closeOnFocusOut && o?.onOpenChange(!1, g.nativeEvent, "focus-out");
|
|
5845
5845
|
}
|
|
5846
5846
|
}
|
|
5847
5847
|
})]
|
|
@@ -5910,41 +5910,41 @@ function ao(e) {
|
|
|
5910
5910
|
events: v,
|
|
5911
5911
|
dataRef: b,
|
|
5912
5912
|
elements: {
|
|
5913
|
-
domReference:
|
|
5914
|
-
floating:
|
|
5913
|
+
domReference: _,
|
|
5914
|
+
floating: w
|
|
5915
5915
|
}
|
|
5916
5916
|
} = t, y = Ge(() => {
|
|
5917
5917
|
var Z;
|
|
5918
5918
|
return (Z = b.current.floatingContext) == null ? void 0 : Z.nodeId;
|
|
5919
|
-
}), S = Ge(h), x = typeof o == "number" && o < 0, L = Es(
|
|
5919
|
+
}), S = Ge(h), x = typeof o == "number" && o < 0, L = Es(_) && x, D = pv(), P = D ? r : !0, C = !P || D && f, T = Xe(l), A = Xe(o), Y = Xe(a), E = Al(), N = $d(), W = F.useRef(null), M = F.useRef(null), k = F.useRef(!1), $ = F.useRef(!1), U = F.useRef(-1), q = F.useRef(-1), j = N != null, O = Ar(w), R = Ge(function(Z) {
|
|
5920
5920
|
return Z === void 0 && (Z = O), Z ? io(Z, Pl()) : [];
|
|
5921
|
-
}),
|
|
5922
|
-
const ne =
|
|
5923
|
-
return
|
|
5921
|
+
}), I = Ge((Z) => {
|
|
5922
|
+
const ne = R(Z);
|
|
5923
|
+
return T.current.map((G) => _ && G === "reference" ? _ : O && G === "floating" ? O : ne).filter(Boolean).flat();
|
|
5924
5924
|
});
|
|
5925
5925
|
F.useEffect(() => {
|
|
5926
5926
|
if (i || !u) return;
|
|
5927
|
-
function Z(
|
|
5928
|
-
if (
|
|
5929
|
-
Ue(O, Xt(qe(O))) &&
|
|
5930
|
-
const se =
|
|
5931
|
-
|
|
5927
|
+
function Z(G) {
|
|
5928
|
+
if (G.key === "Tab") {
|
|
5929
|
+
Ue(O, Xt(qe(O))) && R().length === 0 && !L && lt(G);
|
|
5930
|
+
const se = I(), le = bn(G);
|
|
5931
|
+
T.current[0] === "reference" && le === _ && (lt(G), G.shiftKey ? oi(se[se.length - 1]) : oi(se[1])), T.current[1] === "floating" && le === O && G.shiftKey && (lt(G), oi(se[0]));
|
|
5932
5932
|
}
|
|
5933
5933
|
}
|
|
5934
5934
|
const ne = qe(O);
|
|
5935
5935
|
return ne.addEventListener("keydown", Z), () => {
|
|
5936
5936
|
ne.removeEventListener("keydown", Z);
|
|
5937
5937
|
};
|
|
5938
|
-
}, [i,
|
|
5939
|
-
if (i || !
|
|
5938
|
+
}, [i, _, O, u, T, L, R, I]), F.useEffect(() => {
|
|
5939
|
+
if (i || !w) return;
|
|
5940
5940
|
function Z(ne) {
|
|
5941
|
-
const
|
|
5942
|
-
le !== -1 && (
|
|
5941
|
+
const G = bn(ne), le = R().indexOf(G);
|
|
5942
|
+
le !== -1 && (U.current = le);
|
|
5943
5943
|
}
|
|
5944
|
-
return
|
|
5945
|
-
|
|
5944
|
+
return w.addEventListener("focusin", Z), () => {
|
|
5945
|
+
w.removeEventListener("focusin", Z);
|
|
5946
5946
|
};
|
|
5947
|
-
}, [i,
|
|
5947
|
+
}, [i, w, R]), F.useEffect(() => {
|
|
5948
5948
|
if (i || !m) return;
|
|
5949
5949
|
function Z() {
|
|
5950
5950
|
$.current = !0, setTimeout(() => {
|
|
@@ -5954,16 +5954,16 @@ function ao(e) {
|
|
|
5954
5954
|
function ne(le) {
|
|
5955
5955
|
const re = le.relatedTarget, ye = le.currentTarget, de = bn(le);
|
|
5956
5956
|
queueMicrotask(() => {
|
|
5957
|
-
const fe = y(), me = !(Ue(
|
|
5957
|
+
const fe = y(), me = !(Ue(_, re) || Ue(w, re) || Ue(re, w) || Ue(N?.portalNode, re) || re != null && re.hasAttribute(mi("focus-guard")) || E && (ci(E.nodesRef.current, fe).find((H) => {
|
|
5958
5958
|
var Q, X;
|
|
5959
5959
|
return Ue((Q = H.context) == null ? void 0 : Q.elements.floating, re) || Ue((X = H.context) == null ? void 0 : X.elements.domReference, re);
|
|
5960
5960
|
}) || Oc(E.nodesRef.current, fe).find((H) => {
|
|
5961
5961
|
var Q, X, he;
|
|
5962
5962
|
return [(Q = H.context) == null ? void 0 : Q.elements.floating, Ar((X = H.context) == null ? void 0 : X.elements.floating)].includes(re) || ((he = H.context) == null ? void 0 : he.elements.domReference) === re;
|
|
5963
5963
|
})));
|
|
5964
|
-
if (ye ===
|
|
5964
|
+
if (ye === _ && O && Zc(O, T), c && ye !== _ && !(de != null && de.isConnected) && Xt(qe(O)) === qe(O).body) {
|
|
5965
5965
|
Ie(O) && O.focus();
|
|
5966
|
-
const H =
|
|
5966
|
+
const H = U.current, Q = R(), X = Q[H] || Q[Q.length - 1] || O;
|
|
5967
5967
|
Ie(X) && X.focus();
|
|
5968
5968
|
}
|
|
5969
5969
|
if (b.current.insideReactTree) {
|
|
@@ -5974,42 +5974,42 @@ function ao(e) {
|
|
|
5974
5974
|
re !== Kc() && (k.current = !0, g(!1, le, "focus-out"));
|
|
5975
5975
|
});
|
|
5976
5976
|
}
|
|
5977
|
-
const
|
|
5977
|
+
const G = !!(!E && N);
|
|
5978
5978
|
function se() {
|
|
5979
|
-
pt(
|
|
5979
|
+
pt(q), b.current.insideReactTree = !0, q.current = window.setTimeout(() => {
|
|
5980
5980
|
b.current.insideReactTree = !1;
|
|
5981
5981
|
});
|
|
5982
5982
|
}
|
|
5983
|
-
if (
|
|
5984
|
-
return
|
|
5985
|
-
|
|
5983
|
+
if (w && Ie(_))
|
|
5984
|
+
return _.addEventListener("focusout", ne), _.addEventListener("pointerdown", Z), w.addEventListener("focusout", ne), G && w.addEventListener("focusout", se, !0), () => {
|
|
5985
|
+
_.removeEventListener("focusout", ne), _.removeEventListener("pointerdown", Z), w.removeEventListener("focusout", ne), G && w.removeEventListener("focusout", se, !0);
|
|
5986
5986
|
};
|
|
5987
|
-
}, [i,
|
|
5988
|
-
const te = F.useRef(null),
|
|
5987
|
+
}, [i, _, w, O, u, E, N, g, m, c, R, L, y, T, b]);
|
|
5988
|
+
const te = F.useRef(null), z = F.useRef(null), K = Gc([te, N?.beforeInsideRef]), ie = Gc([z, N?.afterInsideRef]);
|
|
5989
5989
|
F.useEffect(() => {
|
|
5990
5990
|
var Z, ne;
|
|
5991
|
-
if (i || !
|
|
5992
|
-
const
|
|
5991
|
+
if (i || !w) return;
|
|
5992
|
+
const G = Array.from((N == null || (Z = N.portalNode) == null ? void 0 : Z.querySelectorAll("[" + mi("portal") + "]")) || []), le = (ne = (E ? Oc(E.nodesRef.current, y()) : []).find((de) => {
|
|
5993
5993
|
var fe;
|
|
5994
5994
|
return Es(((fe = de.context) == null ? void 0 : fe.elements.domReference) || null);
|
|
5995
|
-
})) == null || (ne = ne.context) == null ? void 0 : ne.elements.domReference, re = [
|
|
5995
|
+
})) == null || (ne = ne.context) == null ? void 0 : ne.elements.domReference, re = [w, le, ...G, ...S(), W.current, M.current, te.current, z.current, N?.beforeOutsideRef.current, N?.afterOutsideRef.current, T.current.includes("reference") || L ? _ : null].filter((de) => de != null), ye = u || L ? Uc(re, !C, C) : Uc(re);
|
|
5996
5996
|
return () => {
|
|
5997
5997
|
ye();
|
|
5998
5998
|
};
|
|
5999
|
-
}, [i,
|
|
5999
|
+
}, [i, _, w, u, T, N, L, P, C, E, y, S]), De(() => {
|
|
6000
6000
|
if (i || !Ie(O)) return;
|
|
6001
6001
|
const Z = qe(O), ne = Xt(Z);
|
|
6002
6002
|
queueMicrotask(() => {
|
|
6003
|
-
const
|
|
6003
|
+
const G = I(O), se = A.current, le = (typeof se == "number" ? G[se] : se.current) || O, re = Ue(O, ne);
|
|
6004
6004
|
!x && !re && p && oi(le, {
|
|
6005
6005
|
preventScroll: le === O
|
|
6006
6006
|
});
|
|
6007
6007
|
});
|
|
6008
|
-
}, [i, p, O, x,
|
|
6008
|
+
}, [i, p, O, x, I, A]), De(() => {
|
|
6009
6009
|
if (i || !O) return;
|
|
6010
6010
|
const Z = qe(O), ne = Xt(Z);
|
|
6011
6011
|
_v(ne);
|
|
6012
|
-
function
|
|
6012
|
+
function G(re) {
|
|
6013
6013
|
let {
|
|
6014
6014
|
reason: ye,
|
|
6015
6015
|
event: de,
|
|
@@ -6029,26 +6029,26 @@ function ao(e) {
|
|
|
6029
6029
|
}), me ? k.current = !1 : k.current = !0;
|
|
6030
6030
|
}
|
|
6031
6031
|
}
|
|
6032
|
-
v.on("openchange",
|
|
6032
|
+
v.on("openchange", G);
|
|
6033
6033
|
const se = Z.createElement("span");
|
|
6034
|
-
se.setAttribute("tabindex", "-1"), se.setAttribute("aria-hidden", "true"), Object.assign(se.style, fa), j &&
|
|
6034
|
+
se.setAttribute("tabindex", "-1"), se.setAttribute("aria-hidden", "true"), Object.assign(se.style, fa), j && _ && _.insertAdjacentElement("afterend", se);
|
|
6035
6035
|
function le() {
|
|
6036
|
-
if (typeof
|
|
6037
|
-
const re =
|
|
6036
|
+
if (typeof Y.current == "boolean") {
|
|
6037
|
+
const re = _ || Kc();
|
|
6038
6038
|
return re && re.isConnected ? re : se;
|
|
6039
6039
|
}
|
|
6040
|
-
return
|
|
6040
|
+
return Y.current.current || se;
|
|
6041
6041
|
}
|
|
6042
6042
|
return () => {
|
|
6043
|
-
v.off("openchange",
|
|
6044
|
-
const re = Xt(Z), ye = Ue(
|
|
6043
|
+
v.off("openchange", G);
|
|
6044
|
+
const re = Xt(Z), ye = Ue(w, re) || E && ci(E.nodesRef.current, y(), !1).some((fe) => {
|
|
6045
6045
|
var me;
|
|
6046
6046
|
return Ue((me = fe.context) == null ? void 0 : me.elements.floating, re);
|
|
6047
6047
|
}), de = le();
|
|
6048
6048
|
queueMicrotask(() => {
|
|
6049
6049
|
const fe = kv(de);
|
|
6050
6050
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6051
|
-
|
|
6051
|
+
Y.current && !k.current && Ie(fe) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
6052
6052
|
// since it likely entered a different element which should be
|
|
6053
6053
|
// respected: https://github.com/floating-ui/floating-ui/issues/2607
|
|
6054
6054
|
(!(fe !== re && re !== Z.body) || ye) && fe.focus({
|
|
@@ -6056,27 +6056,27 @@ function ao(e) {
|
|
|
6056
6056
|
}), se.remove();
|
|
6057
6057
|
});
|
|
6058
6058
|
};
|
|
6059
|
-
}, [i,
|
|
6059
|
+
}, [i, w, O, Y, b, v, E, j, _, y]), F.useEffect(() => (queueMicrotask(() => {
|
|
6060
6060
|
k.current = !1;
|
|
6061
6061
|
}), () => {
|
|
6062
6062
|
queueMicrotask(ma);
|
|
6063
6063
|
}), [i]), De(() => {
|
|
6064
|
-
if (!i &&
|
|
6065
|
-
return
|
|
6064
|
+
if (!i && N)
|
|
6065
|
+
return N.setFocusManagerState({
|
|
6066
6066
|
modal: u,
|
|
6067
6067
|
closeOnFocusOut: m,
|
|
6068
6068
|
open: p,
|
|
6069
6069
|
onOpenChange: g,
|
|
6070
|
-
domReference:
|
|
6070
|
+
domReference: _
|
|
6071
6071
|
}), () => {
|
|
6072
|
-
|
|
6072
|
+
N.setFocusManagerState(null);
|
|
6073
6073
|
};
|
|
6074
|
-
}, [i,
|
|
6075
|
-
i || O && Zc(O,
|
|
6076
|
-
}, [i, O,
|
|
6074
|
+
}, [i, N, u, p, g, m, _]), De(() => {
|
|
6075
|
+
i || O && Zc(O, T);
|
|
6076
|
+
}, [i, O, T]);
|
|
6077
6077
|
function J(Z) {
|
|
6078
6078
|
return i || !d || !u ? null : /* @__PURE__ */ bt(xv, {
|
|
6079
|
-
ref: Z === "start" ?
|
|
6079
|
+
ref: Z === "start" ? W : M,
|
|
6080
6080
|
onClick: (ne) => g(!1, ne.nativeEvent),
|
|
6081
6081
|
children: typeof d == "string" ? d : "Dismiss"
|
|
6082
6082
|
});
|
|
@@ -6085,18 +6085,18 @@ function ao(e) {
|
|
|
6085
6085
|
return /* @__PURE__ */ Qs(Qm, {
|
|
6086
6086
|
children: [ce && /* @__PURE__ */ bt(jr, {
|
|
6087
6087
|
"data-type": "inside",
|
|
6088
|
-
ref:
|
|
6088
|
+
ref: K,
|
|
6089
6089
|
onFocus: (Z) => {
|
|
6090
6090
|
if (u) {
|
|
6091
|
-
const
|
|
6092
|
-
oi(l[0] === "reference" ?
|
|
6093
|
-
} else if (
|
|
6094
|
-
if (k.current = !1, yl(Z,
|
|
6095
|
-
const
|
|
6096
|
-
|
|
6091
|
+
const G = I();
|
|
6092
|
+
oi(l[0] === "reference" ? G[0] : G[G.length - 1]);
|
|
6093
|
+
} else if (N != null && N.preserveTabOrder && N.portalNode)
|
|
6094
|
+
if (k.current = !1, yl(Z, N.portalNode)) {
|
|
6095
|
+
const G = kd(_);
|
|
6096
|
+
G?.focus();
|
|
6097
6097
|
} else {
|
|
6098
6098
|
var ne;
|
|
6099
|
-
(ne =
|
|
6099
|
+
(ne = N.beforeOutsideRef.current) == null || ne.focus();
|
|
6100
6100
|
}
|
|
6101
6101
|
}
|
|
6102
6102
|
}), !L && J("start"), n, J("end"), ce && /* @__PURE__ */ bt(jr, {
|
|
@@ -6104,14 +6104,14 @@ function ao(e) {
|
|
|
6104
6104
|
ref: ie,
|
|
6105
6105
|
onFocus: (Z) => {
|
|
6106
6106
|
if (u)
|
|
6107
|
-
oi(
|
|
6108
|
-
else if (
|
|
6109
|
-
if (m && (k.current = !0), yl(Z,
|
|
6110
|
-
const
|
|
6111
|
-
|
|
6107
|
+
oi(I()[0]);
|
|
6108
|
+
else if (N != null && N.preserveTabOrder && N.portalNode)
|
|
6109
|
+
if (m && (k.current = !0), yl(Z, N.portalNode)) {
|
|
6110
|
+
const G = xd(_);
|
|
6111
|
+
G?.focus();
|
|
6112
6112
|
} else {
|
|
6113
6113
|
var ne;
|
|
6114
|
-
(ne =
|
|
6114
|
+
(ne = N.afterOutsideRef.current) == null || ne.focus();
|
|
6115
6115
|
}
|
|
6116
6116
|
}
|
|
6117
6117
|
})]
|
|
@@ -6254,22 +6254,22 @@ function jl(e, t) {
|
|
|
6254
6254
|
ancestorScroll: f = !1,
|
|
6255
6255
|
bubbles: h,
|
|
6256
6256
|
capture: p
|
|
6257
|
-
} = t, g = Al(), v = Ge(typeof c == "function" ? c : () => !1), b = typeof c == "function" ? v : c,
|
|
6258
|
-
escapeKey:
|
|
6257
|
+
} = t, g = Al(), v = Ge(typeof c == "function" ? c : () => !1), b = typeof c == "function" ? v : c, _ = F.useRef(!1), {
|
|
6258
|
+
escapeKey: w,
|
|
6259
6259
|
outsidePress: y
|
|
6260
6260
|
} = tu(h), {
|
|
6261
6261
|
escapeKey: S,
|
|
6262
6262
|
outsidePress: x
|
|
6263
6263
|
} = tu(p), L = F.useRef(!1), D = Ge((E) => {
|
|
6264
|
-
var
|
|
6264
|
+
var N;
|
|
6265
6265
|
if (!n || !o || !a || E.key !== "Escape" || L.current)
|
|
6266
6266
|
return;
|
|
6267
|
-
const
|
|
6268
|
-
if (!
|
|
6267
|
+
const W = (N = r.current.floatingContext) == null ? void 0 : N.nodeId, M = g ? ci(g.nodesRef.current, W) : [];
|
|
6268
|
+
if (!w && (E.stopPropagation(), M.length > 0)) {
|
|
6269
6269
|
let k = !0;
|
|
6270
|
-
if (
|
|
6271
|
-
var
|
|
6272
|
-
if ((
|
|
6270
|
+
if (M.forEach(($) => {
|
|
6271
|
+
var U;
|
|
6272
|
+
if ((U = $.context) != null && U.open && !$.context.dataRef.current.__escapeKeyBubbles) {
|
|
6273
6273
|
k = !1;
|
|
6274
6274
|
return;
|
|
6275
6275
|
}
|
|
@@ -6278,76 +6278,76 @@ function jl(e, t) {
|
|
|
6278
6278
|
}
|
|
6279
6279
|
i(!1, sg(E) ? E.nativeEvent : E, "escape-key");
|
|
6280
6280
|
}), P = Ge((E) => {
|
|
6281
|
-
var
|
|
6282
|
-
const
|
|
6283
|
-
var
|
|
6284
|
-
D(E), (
|
|
6281
|
+
var N;
|
|
6282
|
+
const W = () => {
|
|
6283
|
+
var M;
|
|
6284
|
+
D(E), (M = bn(E)) == null || M.removeEventListener("keydown", W);
|
|
6285
6285
|
};
|
|
6286
|
-
(
|
|
6286
|
+
(N = bn(E)) == null || N.addEventListener("keydown", W);
|
|
6287
6287
|
}), C = Ge((E) => {
|
|
6288
|
-
var
|
|
6289
|
-
const
|
|
6288
|
+
var N;
|
|
6289
|
+
const W = r.current.insideReactTree;
|
|
6290
6290
|
r.current.insideReactTree = !1;
|
|
6291
|
-
const
|
|
6292
|
-
if (
|
|
6291
|
+
const M = _.current;
|
|
6292
|
+
if (_.current = !1, u === "click" && M || W || typeof b == "function" && !b(E))
|
|
6293
6293
|
return;
|
|
6294
|
-
const k = bn(E), $ = "[" + mi("inert") + "]",
|
|
6295
|
-
let
|
|
6296
|
-
for (;
|
|
6297
|
-
const
|
|
6298
|
-
if (Ln(
|
|
6294
|
+
const k = bn(E), $ = "[" + mi("inert") + "]", U = qe(l.floating).querySelectorAll($);
|
|
6295
|
+
let q = Oe(k) ? k : null;
|
|
6296
|
+
for (; q && !Ln(q); ) {
|
|
6297
|
+
const I = Sn(q);
|
|
6298
|
+
if (Ln(I) || !Oe(I))
|
|
6299
6299
|
break;
|
|
6300
|
-
|
|
6300
|
+
q = I;
|
|
6301
6301
|
}
|
|
6302
|
-
if (
|
|
6302
|
+
if (U.length && Oe(k) && !lg(k) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
6303
6303
|
!Ue(k, l.floating) && // If the target root element contains none of the markers, then the
|
|
6304
6304
|
// element was injected after the floating element rendered.
|
|
6305
|
-
Array.from(
|
|
6305
|
+
Array.from(U).every((I) => !Ue(q, I)))
|
|
6306
6306
|
return;
|
|
6307
|
-
if (Ie(k) &&
|
|
6308
|
-
const
|
|
6309
|
-
if (ne ||
|
|
6307
|
+
if (Ie(k) && Y) {
|
|
6308
|
+
const I = Ln(k), te = _t(k), z = /auto|scroll/, K = I || z.test(te.overflowX), ie = I || z.test(te.overflowY), J = K && k.clientWidth > 0 && k.scrollWidth > k.clientWidth, ce = ie && k.clientHeight > 0 && k.scrollHeight > k.clientHeight, Z = te.direction === "rtl", ne = ce && (Z ? E.offsetX <= k.offsetWidth - k.clientWidth : E.offsetX > k.clientWidth), G = J && E.offsetY > k.clientHeight;
|
|
6309
|
+
if (ne || G)
|
|
6310
6310
|
return;
|
|
6311
6311
|
}
|
|
6312
|
-
const j = (
|
|
6312
|
+
const j = (N = r.current.floatingContext) == null ? void 0 : N.nodeId, O = g && ci(g.nodesRef.current, j).some((I) => {
|
|
6313
6313
|
var te;
|
|
6314
|
-
return Ao(E, (te =
|
|
6314
|
+
return Ao(E, (te = I.context) == null ? void 0 : te.elements.floating);
|
|
6315
6315
|
});
|
|
6316
6316
|
if (Ao(E, l.floating) || Ao(E, l.domReference) || O)
|
|
6317
6317
|
return;
|
|
6318
|
-
const
|
|
6319
|
-
if (
|
|
6320
|
-
let
|
|
6321
|
-
if (
|
|
6322
|
-
var
|
|
6323
|
-
if ((
|
|
6324
|
-
|
|
6318
|
+
const R = g ? ci(g.nodesRef.current, j) : [];
|
|
6319
|
+
if (R.length > 0) {
|
|
6320
|
+
let I = !0;
|
|
6321
|
+
if (R.forEach((te) => {
|
|
6322
|
+
var z;
|
|
6323
|
+
if ((z = te.context) != null && z.open && !te.context.dataRef.current.__outsidePressBubbles) {
|
|
6324
|
+
I = !1;
|
|
6325
6325
|
return;
|
|
6326
6326
|
}
|
|
6327
|
-
}), !
|
|
6327
|
+
}), !I)
|
|
6328
6328
|
return;
|
|
6329
6329
|
}
|
|
6330
6330
|
i(!1, E, "outside-press");
|
|
6331
|
-
}),
|
|
6332
|
-
var
|
|
6333
|
-
const
|
|
6334
|
-
var
|
|
6335
|
-
C(E), (
|
|
6331
|
+
}), T = Ge((E) => {
|
|
6332
|
+
var N;
|
|
6333
|
+
const W = () => {
|
|
6334
|
+
var M;
|
|
6335
|
+
C(E), (M = bn(E)) == null || M.removeEventListener(u, W);
|
|
6336
6336
|
};
|
|
6337
|
-
(
|
|
6337
|
+
(N = bn(E)) == null || N.addEventListener(u, W);
|
|
6338
6338
|
});
|
|
6339
6339
|
F.useEffect(() => {
|
|
6340
6340
|
if (!n || !o)
|
|
6341
6341
|
return;
|
|
6342
|
-
r.current.__escapeKeyBubbles =
|
|
6342
|
+
r.current.__escapeKeyBubbles = w, r.current.__outsidePressBubbles = y;
|
|
6343
6343
|
let E = -1;
|
|
6344
|
-
function
|
|
6345
|
-
i(!1,
|
|
6344
|
+
function N(U) {
|
|
6345
|
+
i(!1, U, "ancestor-scroll");
|
|
6346
6346
|
}
|
|
6347
|
-
function
|
|
6347
|
+
function W() {
|
|
6348
6348
|
window.clearTimeout(E), L.current = !0;
|
|
6349
6349
|
}
|
|
6350
|
-
function
|
|
6350
|
+
function M() {
|
|
6351
6351
|
E = window.setTimeout(
|
|
6352
6352
|
() => {
|
|
6353
6353
|
L.current = !1;
|
|
@@ -6358,24 +6358,24 @@ function jl(e, t) {
|
|
|
6358
6358
|
);
|
|
6359
6359
|
}
|
|
6360
6360
|
const k = qe(l.floating);
|
|
6361
|
-
a && (k.addEventListener("keydown", S ? P : D, S), k.addEventListener("compositionstart",
|
|
6361
|
+
a && (k.addEventListener("keydown", S ? P : D, S), k.addEventListener("compositionstart", W), k.addEventListener("compositionend", M)), b && k.addEventListener(u, x ? T : C, x);
|
|
6362
6362
|
let $ = [];
|
|
6363
|
-
return f && (Oe(l.domReference) && ($ = Un(l.domReference)), Oe(l.floating) && ($ = $.concat(Un(l.floating))), !Oe(l.reference) && l.reference && l.reference.contextElement && ($ = $.concat(Un(l.reference.contextElement)))), $ = $.filter((
|
|
6364
|
-
var
|
|
6365
|
-
return
|
|
6366
|
-
}), $.forEach((
|
|
6367
|
-
|
|
6363
|
+
return f && (Oe(l.domReference) && ($ = Un(l.domReference)), Oe(l.floating) && ($ = $.concat(Un(l.floating))), !Oe(l.reference) && l.reference && l.reference.contextElement && ($ = $.concat(Un(l.reference.contextElement)))), $ = $.filter((U) => {
|
|
6364
|
+
var q;
|
|
6365
|
+
return U !== ((q = k.defaultView) == null ? void 0 : q.visualViewport);
|
|
6366
|
+
}), $.forEach((U) => {
|
|
6367
|
+
U.addEventListener("scroll", N, {
|
|
6368
6368
|
passive: !0
|
|
6369
6369
|
});
|
|
6370
6370
|
}), () => {
|
|
6371
|
-
a && (k.removeEventListener("keydown", S ? P : D, S), k.removeEventListener("compositionstart",
|
|
6372
|
-
|
|
6371
|
+
a && (k.removeEventListener("keydown", S ? P : D, S), k.removeEventListener("compositionstart", W), k.removeEventListener("compositionend", M)), b && k.removeEventListener(u, x ? T : C, x), $.forEach((U) => {
|
|
6372
|
+
U.removeEventListener("scroll", N);
|
|
6373
6373
|
}), window.clearTimeout(E);
|
|
6374
6374
|
};
|
|
6375
|
-
}, [r, l, a, b, u, n, i, f, o,
|
|
6375
|
+
}, [r, l, a, b, u, n, i, f, o, w, y, D, S, P, C, x, T]), F.useEffect(() => {
|
|
6376
6376
|
r.current.insideReactTree = !1;
|
|
6377
6377
|
}, [r, b, u]);
|
|
6378
|
-
const
|
|
6378
|
+
const A = F.useMemo(() => ({
|
|
6379
6379
|
onKeyDown: D,
|
|
6380
6380
|
...d && {
|
|
6381
6381
|
[Ev[m]]: (E) => {
|
|
@@ -6387,22 +6387,22 @@ function jl(e, t) {
|
|
|
6387
6387
|
}
|
|
6388
6388
|
}
|
|
6389
6389
|
}
|
|
6390
|
-
}), [D, i, d, m]),
|
|
6390
|
+
}), [D, i, d, m]), Y = F.useMemo(() => ({
|
|
6391
6391
|
onKeyDown: D,
|
|
6392
6392
|
onMouseDown() {
|
|
6393
|
-
|
|
6393
|
+
_.current = !0;
|
|
6394
6394
|
},
|
|
6395
6395
|
onMouseUp() {
|
|
6396
|
-
|
|
6396
|
+
_.current = !0;
|
|
6397
6397
|
},
|
|
6398
6398
|
[Sv[u]]: () => {
|
|
6399
6399
|
r.current.insideReactTree = !0;
|
|
6400
6400
|
}
|
|
6401
6401
|
}), [D, u, r]);
|
|
6402
6402
|
return F.useMemo(() => o ? {
|
|
6403
|
-
reference:
|
|
6404
|
-
floating:
|
|
6405
|
-
} : {}, [o,
|
|
6403
|
+
reference: A,
|
|
6404
|
+
floating: Y
|
|
6405
|
+
} : {}, [o, A, Y]);
|
|
6406
6406
|
}
|
|
6407
6407
|
function Cv(e) {
|
|
6408
6408
|
const {
|
|
@@ -6461,18 +6461,18 @@ function Bl(e) {
|
|
|
6461
6461
|
reference: a
|
|
6462
6462
|
}
|
|
6463
6463
|
}
|
|
6464
|
-
}), p = F.useCallback((
|
|
6465
|
-
const y = Oe(
|
|
6466
|
-
getBoundingClientRect: () =>
|
|
6467
|
-
getClientRects: () =>
|
|
6468
|
-
contextElement:
|
|
6469
|
-
} :
|
|
6464
|
+
}), p = F.useCallback((w) => {
|
|
6465
|
+
const y = Oe(w) ? {
|
|
6466
|
+
getBoundingClientRect: () => w.getBoundingClientRect(),
|
|
6467
|
+
getClientRects: () => w.getClientRects(),
|
|
6468
|
+
contextElement: w
|
|
6469
|
+
} : w;
|
|
6470
6470
|
c(y), h.refs.setReference(y);
|
|
6471
|
-
}, [h.refs]), g = F.useCallback((
|
|
6472
|
-
(Oe(
|
|
6471
|
+
}, [h.refs]), g = F.useCallback((w) => {
|
|
6472
|
+
(Oe(w) || w === null) && (m.current = w, o(w)), (Oe(h.refs.reference.current) || h.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
6473
6473
|
// `null` to support `positionReference` + an unstable `reference`
|
|
6474
6474
|
// callback ref.
|
|
6475
|
-
|
|
6475
|
+
w !== null && !Oe(w)) && h.refs.setReference(w);
|
|
6476
6476
|
}, [h.refs]), v = F.useMemo(() => ({
|
|
6477
6477
|
...h.refs,
|
|
6478
6478
|
setReference: g,
|
|
@@ -6481,7 +6481,7 @@ function Bl(e) {
|
|
|
6481
6481
|
}), [h.refs, g, p]), b = F.useMemo(() => ({
|
|
6482
6482
|
...h.elements,
|
|
6483
6483
|
domReference: d
|
|
6484
|
-
}), [h.elements, d]),
|
|
6484
|
+
}), [h.elements, d]), _ = F.useMemo(() => ({
|
|
6485
6485
|
...h,
|
|
6486
6486
|
...i,
|
|
6487
6487
|
refs: v,
|
|
@@ -6489,15 +6489,15 @@ function Bl(e) {
|
|
|
6489
6489
|
nodeId: t
|
|
6490
6490
|
}), [h, v, b, t, i]);
|
|
6491
6491
|
return De(() => {
|
|
6492
|
-
i.dataRef.current.floatingContext =
|
|
6493
|
-
const
|
|
6494
|
-
|
|
6492
|
+
i.dataRef.current.floatingContext = _;
|
|
6493
|
+
const w = f?.nodesRef.current.find((y) => y.id === t);
|
|
6494
|
+
w && (w.context = _);
|
|
6495
6495
|
}), F.useMemo(() => ({
|
|
6496
6496
|
...h,
|
|
6497
|
-
context:
|
|
6497
|
+
context: _,
|
|
6498
6498
|
refs: v,
|
|
6499
6499
|
elements: b
|
|
6500
|
-
}), [h, v, b,
|
|
6500
|
+
}), [h, v, b, _]);
|
|
6501
6501
|
}
|
|
6502
6502
|
function Uo() {
|
|
6503
6503
|
return eg() && vd();
|
|
@@ -6564,8 +6564,8 @@ function Ov(e, t) {
|
|
|
6564
6564
|
const p = h.relatedTarget, g = h.nativeEvent, v = Oe(p) && p.hasAttribute(mi("focus-guard")) && p.getAttribute("data-type") === "outside";
|
|
6565
6565
|
d.current = window.setTimeout(() => {
|
|
6566
6566
|
var b;
|
|
6567
|
-
const
|
|
6568
|
-
!p &&
|
|
6567
|
+
const _ = Xt(o.domReference ? o.domReference.ownerDocument : document);
|
|
6568
|
+
!p && _ === o.domReference || Ue((b = r.current.floatingContext) == null ? void 0 : b.refs.floating.current, _) || Ue(o.domReference, _) || v || i(!1, g, "focus");
|
|
6569
6569
|
});
|
|
6570
6570
|
}
|
|
6571
6571
|
}), [r, o.domReference, i, c]);
|
|
@@ -6675,8 +6675,8 @@ function Dv(e, t) {
|
|
|
6675
6675
|
virtual: g = !1,
|
|
6676
6676
|
focusItemOnOpen: v = "auto",
|
|
6677
6677
|
focusItemOnHover: b = !0,
|
|
6678
|
-
openOnArrowKeyDown:
|
|
6679
|
-
disabledIndices:
|
|
6678
|
+
openOnArrowKeyDown: _ = !0,
|
|
6679
|
+
disabledIndices: w = void 0,
|
|
6680
6680
|
orientation: y = "vertical",
|
|
6681
6681
|
parentOrientation: S,
|
|
6682
6682
|
cols: x = 1,
|
|
@@ -6686,83 +6686,83 @@ function Dv(e, t) {
|
|
|
6686
6686
|
dense: C = !1
|
|
6687
6687
|
} = t;
|
|
6688
6688
|
process.env.NODE_ENV !== "production" && (m && (f || yr("`useListNavigation` looping must be enabled to allow escaping."), g || yr("`useListNavigation` must be virtual to allow escaping.")), y === "vertical" && x > 1 && yr("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
|
|
6689
|
-
const
|
|
6689
|
+
const T = Ar(l.floating), A = Xe(T), Y = so(), E = Al();
|
|
6690
6690
|
De(() => {
|
|
6691
6691
|
e.dataRef.current.orientation = y;
|
|
6692
6692
|
}, [e, y]);
|
|
6693
|
-
const
|
|
6693
|
+
const N = Ge(() => {
|
|
6694
6694
|
c(k.current === -1 ? null : k.current);
|
|
6695
|
-
}),
|
|
6695
|
+
}), W = Es(l.domReference), M = F.useRef(v), k = F.useRef(d ?? -1), $ = F.useRef(null), U = F.useRef(!0), q = F.useRef(N), j = F.useRef(!!l.floating), O = F.useRef(n), R = F.useRef(!1), I = F.useRef(!1), te = Xe(w), z = Xe(n), K = Xe(L), ie = Xe(d), [J, ce] = F.useState(), [Z, ne] = F.useState(), G = Ge(() => {
|
|
6696
6696
|
function H(be) {
|
|
6697
6697
|
if (g) {
|
|
6698
6698
|
var Fe;
|
|
6699
6699
|
(Fe = be.id) != null && Fe.endsWith("-fui-option") && (be.id = r + "-" + Math.random().toString(16).slice(2, 10)), ce(be.id), E?.events.emit("virtualfocus", be), D && (D.current = be);
|
|
6700
6700
|
} else
|
|
6701
6701
|
oi(be, {
|
|
6702
|
-
sync:
|
|
6702
|
+
sync: R.current,
|
|
6703
6703
|
preventScroll: !0
|
|
6704
6704
|
});
|
|
6705
6705
|
}
|
|
6706
|
-
const Q = o.current[k.current], X =
|
|
6707
|
-
Q && H(Q), (
|
|
6706
|
+
const Q = o.current[k.current], X = I.current;
|
|
6707
|
+
Q && H(Q), (R.current ? (be) => be() : requestAnimationFrame)(() => {
|
|
6708
6708
|
const be = o.current[k.current] || Q;
|
|
6709
6709
|
if (!be) return;
|
|
6710
6710
|
Q || H(be);
|
|
6711
|
-
const Fe =
|
|
6712
|
-
Fe && le && (X || !
|
|
6711
|
+
const Fe = K.current;
|
|
6712
|
+
Fe && le && (X || !U.current) && (be.scrollIntoView == null || be.scrollIntoView(typeof Fe == "boolean" ? {
|
|
6713
6713
|
block: "nearest",
|
|
6714
6714
|
inline: "nearest"
|
|
6715
6715
|
} : Fe));
|
|
6716
6716
|
});
|
|
6717
6717
|
});
|
|
6718
6718
|
De(() => {
|
|
6719
|
-
u && (n && l.floating ?
|
|
6720
|
-
}, [u, n, l.floating, d,
|
|
6719
|
+
u && (n && l.floating ? M.current && d != null && (I.current = !0, k.current = d, N()) : j.current && (k.current = -1, q.current()));
|
|
6720
|
+
}, [u, n, l.floating, d, N]), De(() => {
|
|
6721
6721
|
if (u && n && l.floating)
|
|
6722
6722
|
if (a == null) {
|
|
6723
|
-
if (
|
|
6723
|
+
if (R.current = !1, ie.current != null)
|
|
6724
6724
|
return;
|
|
6725
|
-
if (j.current && (k.current = -1,
|
|
6725
|
+
if (j.current && (k.current = -1, G()), (!O.current || !j.current) && M.current && ($.current != null || M.current === !0 && $.current == null)) {
|
|
6726
6726
|
let H = 0;
|
|
6727
6727
|
const Q = () => {
|
|
6728
|
-
o.current[0] == null ? (H < 2 && (H ? requestAnimationFrame : queueMicrotask)(Q), H++) : (k.current = $.current == null || Go($.current, y, p) || h ? Yo(o, te.current) : Mc(o, te.current), $.current = null,
|
|
6728
|
+
o.current[0] == null ? (H < 2 && (H ? requestAnimationFrame : queueMicrotask)(Q), H++) : (k.current = $.current == null || Go($.current, y, p) || h ? Yo(o, te.current) : Mc(o, te.current), $.current = null, N());
|
|
6729
6729
|
};
|
|
6730
6730
|
Q();
|
|
6731
6731
|
}
|
|
6732
|
-
} else vl(o, a) || (k.current = a,
|
|
6733
|
-
}, [u, n, l.floating, a, ie, h, o, y, p,
|
|
6732
|
+
} else vl(o, a) || (k.current = a, G(), I.current = !1);
|
|
6733
|
+
}, [u, n, l.floating, a, ie, h, o, y, p, N, G, te]), De(() => {
|
|
6734
6734
|
var H;
|
|
6735
6735
|
if (!u || l.floating || !E || g || !j.current)
|
|
6736
6736
|
return;
|
|
6737
|
-
const Q = E.nodesRef.current, X = (H = Q.find((Fe) => Fe.id ===
|
|
6738
|
-
X && !be &&
|
|
6737
|
+
const Q = E.nodesRef.current, X = (H = Q.find((Fe) => Fe.id === Y)) == null || (H = H.context) == null ? void 0 : H.elements.floating, he = Xt(qe(l.floating)), be = Q.some((Fe) => Fe.context && Ue(Fe.context.elements.floating, he));
|
|
6738
|
+
X && !be && U.current && X.focus({
|
|
6739
6739
|
preventScroll: !0
|
|
6740
6740
|
});
|
|
6741
|
-
}, [u, l.floating, E,
|
|
6742
|
-
if (!u || !E || !g ||
|
|
6741
|
+
}, [u, l.floating, E, Y, g]), De(() => {
|
|
6742
|
+
if (!u || !E || !g || Y) return;
|
|
6743
6743
|
function H(Q) {
|
|
6744
6744
|
ne(Q.id), D && (D.current = Q);
|
|
6745
6745
|
}
|
|
6746
6746
|
return E.events.on("virtualfocus", H), () => {
|
|
6747
6747
|
E.events.off("virtualfocus", H);
|
|
6748
6748
|
};
|
|
6749
|
-
}, [u, E, g,
|
|
6750
|
-
|
|
6749
|
+
}, [u, E, g, Y, D]), De(() => {
|
|
6750
|
+
q.current = N, O.current = n, j.current = !!l.floating;
|
|
6751
6751
|
}), De(() => {
|
|
6752
|
-
n || ($.current = null,
|
|
6752
|
+
n || ($.current = null, M.current = v);
|
|
6753
6753
|
}, [n, v]);
|
|
6754
6754
|
const se = a != null, le = F.useMemo(() => {
|
|
6755
6755
|
function H(X) {
|
|
6756
|
-
if (!
|
|
6756
|
+
if (!z.current) return;
|
|
6757
6757
|
const he = o.current.indexOf(X);
|
|
6758
|
-
he !== -1 && k.current !== he && (k.current = he,
|
|
6758
|
+
he !== -1 && k.current !== he && (k.current = he, N());
|
|
6759
6759
|
}
|
|
6760
6760
|
return {
|
|
6761
6761
|
onFocus(X) {
|
|
6762
6762
|
let {
|
|
6763
6763
|
currentTarget: he
|
|
6764
6764
|
} = X;
|
|
6765
|
-
|
|
6765
|
+
R.current = !0, H(he);
|
|
6766
6766
|
},
|
|
6767
6767
|
onClick: (X) => {
|
|
6768
6768
|
let {
|
|
@@ -6777,38 +6777,38 @@ function Dv(e, t) {
|
|
|
6777
6777
|
let {
|
|
6778
6778
|
currentTarget: he
|
|
6779
6779
|
} = X;
|
|
6780
|
-
|
|
6780
|
+
R.current = !0, I.current = !1, b && H(he);
|
|
6781
6781
|
},
|
|
6782
6782
|
onPointerLeave(X) {
|
|
6783
6783
|
let {
|
|
6784
6784
|
pointerType: he
|
|
6785
6785
|
} = X;
|
|
6786
|
-
if (!(!
|
|
6786
|
+
if (!(!U.current || he === "touch") && (R.current = !0, !!b && (k.current = -1, N(), !g))) {
|
|
6787
6787
|
var be;
|
|
6788
|
-
(be =
|
|
6788
|
+
(be = A.current) == null || be.focus({
|
|
6789
6789
|
preventScroll: !0
|
|
6790
6790
|
});
|
|
6791
6791
|
}
|
|
6792
6792
|
}
|
|
6793
6793
|
};
|
|
6794
|
-
}, [
|
|
6794
|
+
}, [z, A, b, o, N, g]), re = F.useCallback(() => {
|
|
6795
6795
|
var H;
|
|
6796
|
-
return S ?? (E == null || (H = E.nodesRef.current.find((Q) => Q.id ===
|
|
6797
|
-
}, [
|
|
6798
|
-
if (
|
|
6796
|
+
return S ?? (E == null || (H = E.nodesRef.current.find((Q) => Q.id === Y)) == null || (H = H.context) == null || (H = H.dataRef) == null ? void 0 : H.current.orientation);
|
|
6797
|
+
}, [Y, E, S]), ye = Ge((H) => {
|
|
6798
|
+
if (U.current = !1, R.current = !0, H.which === 229 || !z.current && H.currentTarget === A.current)
|
|
6799
6799
|
return;
|
|
6800
6800
|
if (h && iu(H.key, y, p, x)) {
|
|
6801
6801
|
ir(H.key, re()) || lt(H), i(!1, H.nativeEvent, "list-navigation"), Ie(l.domReference) && (g ? E?.events.emit("virtualfocus", l.domReference) : l.domReference.focus());
|
|
6802
6802
|
return;
|
|
6803
6803
|
}
|
|
6804
|
-
const Q = k.current, X = Yo(o,
|
|
6805
|
-
if (
|
|
6804
|
+
const Q = k.current, X = Yo(o, w), he = Mc(o, w);
|
|
6805
|
+
if (W || (H.key === "Home" && (lt(H), k.current = X, N()), H.key === "End" && (lt(H), k.current = he, N())), x > 1) {
|
|
6806
6806
|
const be = P || Array.from({
|
|
6807
6807
|
length: o.current.length
|
|
6808
6808
|
}, () => ({
|
|
6809
6809
|
width: 1,
|
|
6810
6810
|
height: 1
|
|
6811
|
-
})), Fe = hg(be, x, C), dt = Fe.findIndex((ze) => ze != null && !gr(o, ze,
|
|
6811
|
+
})), Fe = hg(be, x, C), dt = Fe.findIndex((ze) => ze != null && !gr(o, ze, w)), Lt = Fe.reduce((ze, We, et) => We != null && !gr(o, We, w) ? et : ze, -1), Je = Fe[mg({
|
|
6812
6812
|
current: Fe.map((ze) => ze != null ? o.current[ze] : null)
|
|
6813
6813
|
}, {
|
|
6814
6814
|
event: H,
|
|
@@ -6818,7 +6818,7 @@ function Dv(e, t) {
|
|
|
6818
6818
|
cols: x,
|
|
6819
6819
|
// treat undefined (empty grid spaces) as disabled indices so we
|
|
6820
6820
|
// don't end up in them
|
|
6821
|
-
disabledIndices: gg([...(typeof
|
|
6821
|
+
disabledIndices: gg([...(typeof w != "function" ? w : null) || o.current.map((ze, We) => gr(o, We, w) ? We : void 0), void 0], Fe),
|
|
6822
6822
|
minIndex: dt,
|
|
6823
6823
|
maxIndex: Lt,
|
|
6824
6824
|
prevIndex: pg(
|
|
@@ -6833,50 +6833,50 @@ function Dv(e, t) {
|
|
|
6833
6833
|
),
|
|
6834
6834
|
stopEvent: !0
|
|
6835
6835
|
})];
|
|
6836
|
-
if (Je != null && (k.current = Je,
|
|
6836
|
+
if (Je != null && (k.current = Je, N()), y === "both")
|
|
6837
6837
|
return;
|
|
6838
6838
|
}
|
|
6839
6839
|
if (ir(H.key, y)) {
|
|
6840
6840
|
if (lt(H), n && !g && Xt(H.currentTarget.ownerDocument) === H.currentTarget) {
|
|
6841
|
-
k.current = Go(H.key, y, p) ? X : he,
|
|
6841
|
+
k.current = Go(H.key, y, p) ? X : he, N();
|
|
6842
6842
|
return;
|
|
6843
6843
|
}
|
|
6844
6844
|
Go(H.key, y, p) ? f ? k.current = Q >= he ? m && Q !== o.current.length ? -1 : X : Ze(o, {
|
|
6845
6845
|
startingIndex: Q,
|
|
6846
|
-
disabledIndices:
|
|
6846
|
+
disabledIndices: w
|
|
6847
6847
|
}) : k.current = Math.min(he, Ze(o, {
|
|
6848
6848
|
startingIndex: Q,
|
|
6849
|
-
disabledIndices:
|
|
6849
|
+
disabledIndices: w
|
|
6850
6850
|
})) : f ? k.current = Q <= X ? m && Q !== -1 ? o.current.length : he : Ze(o, {
|
|
6851
6851
|
startingIndex: Q,
|
|
6852
6852
|
decrement: !0,
|
|
6853
|
-
disabledIndices:
|
|
6853
|
+
disabledIndices: w
|
|
6854
6854
|
}) : k.current = Math.max(X, Ze(o, {
|
|
6855
6855
|
startingIndex: Q,
|
|
6856
6856
|
decrement: !0,
|
|
6857
|
-
disabledIndices:
|
|
6858
|
-
})), vl(o, k.current) && (k.current = -1),
|
|
6857
|
+
disabledIndices: w
|
|
6858
|
+
})), vl(o, k.current) && (k.current = -1), N();
|
|
6859
6859
|
}
|
|
6860
6860
|
}), de = F.useMemo(() => g && n && se && {
|
|
6861
6861
|
"aria-activedescendant": Z || J
|
|
6862
6862
|
}, [g, n, se, Z, J]), fe = F.useMemo(() => ({
|
|
6863
6863
|
"aria-orientation": y === "both" ? void 0 : y,
|
|
6864
|
-
...
|
|
6864
|
+
...W ? {} : de,
|
|
6865
6865
|
onKeyDown: ye,
|
|
6866
6866
|
onPointerMove() {
|
|
6867
|
-
|
|
6867
|
+
U.current = !0;
|
|
6868
6868
|
}
|
|
6869
|
-
}), [de, ye, y,
|
|
6869
|
+
}), [de, ye, y, W]), me = F.useMemo(() => {
|
|
6870
6870
|
function H(X) {
|
|
6871
|
-
v === "auto" && bd(X.nativeEvent) && (
|
|
6871
|
+
v === "auto" && bd(X.nativeEvent) && (M.current = !0);
|
|
6872
6872
|
}
|
|
6873
6873
|
function Q(X) {
|
|
6874
|
-
|
|
6874
|
+
M.current = v, v === "auto" && wd(X.nativeEvent) && (M.current = !0);
|
|
6875
6875
|
}
|
|
6876
6876
|
return {
|
|
6877
6877
|
...de,
|
|
6878
6878
|
onKeyDown(X) {
|
|
6879
|
-
|
|
6879
|
+
U.current = !1;
|
|
6880
6880
|
const he = X.key.startsWith("Arrow"), be = ["Home", "End"].includes(X.key), Fe = he || be, dt = nu(X.key, y, p), Lt = iu(X.key, y, p, x), Je = nu(X.key, re(), p), ze = ir(X.key, y), We = (h ? Je : ze) || X.key === "Enter" || X.key.trim() === "";
|
|
6881
6881
|
if (g && n) {
|
|
6882
6882
|
const Ht = E?.nodesRef.current.find((Ae) => Ae.parentId == null), tt = E && Ht ? og(E.nodesRef.current, Ht.id) : null;
|
|
@@ -6898,27 +6898,27 @@ function Dv(e, t) {
|
|
|
6898
6898
|
}
|
|
6899
6899
|
return ye(X);
|
|
6900
6900
|
}
|
|
6901
|
-
if (!(!n && !
|
|
6901
|
+
if (!(!n && !_ && he)) {
|
|
6902
6902
|
if (We) {
|
|
6903
6903
|
const Ht = ir(X.key, re());
|
|
6904
6904
|
$.current = h && Ht ? null : X.key;
|
|
6905
6905
|
}
|
|
6906
6906
|
if (h) {
|
|
6907
|
-
Je && (lt(X), n ? (k.current = Yo(o, te.current),
|
|
6907
|
+
Je && (lt(X), n ? (k.current = Yo(o, te.current), N()) : i(!0, X.nativeEvent, "list-navigation"));
|
|
6908
6908
|
return;
|
|
6909
6909
|
}
|
|
6910
|
-
ze && (d != null && (k.current = d), lt(X), !n &&
|
|
6910
|
+
ze && (d != null && (k.current = d), lt(X), !n && _ ? i(!0, X.nativeEvent, "list-navigation") : ye(X), n && N());
|
|
6911
6911
|
}
|
|
6912
6912
|
},
|
|
6913
6913
|
onFocus() {
|
|
6914
|
-
n && !g && (k.current = -1,
|
|
6914
|
+
n && !g && (k.current = -1, N());
|
|
6915
6915
|
},
|
|
6916
6916
|
onPointerDown: Q,
|
|
6917
6917
|
onPointerEnter: Q,
|
|
6918
6918
|
onMouseDown: H,
|
|
6919
6919
|
onClick: H
|
|
6920
6920
|
};
|
|
6921
|
-
}, [J, de, x, ye, te, v, o, h,
|
|
6921
|
+
}, [J, de, x, ye, te, v, o, h, N, i, n, _, y, re, p, d, E, g, D]);
|
|
6922
6922
|
return F.useMemo(() => u ? {
|
|
6923
6923
|
reference: me,
|
|
6924
6924
|
floating: fe,
|
|
@@ -6937,8 +6937,8 @@ function Vl(e, t) {
|
|
|
6937
6937
|
enabled: a = !0,
|
|
6938
6938
|
role: c = "dialog"
|
|
6939
6939
|
} = t, u = zl(), d = ((n = r.domReference) == null ? void 0 : n.id) || u, m = F.useMemo(() => {
|
|
6940
|
-
var
|
|
6941
|
-
return ((
|
|
6940
|
+
var _;
|
|
6941
|
+
return ((_ = Ar(r.floating)) == null ? void 0 : _.id) || o;
|
|
6942
6942
|
}, [r.floating, o]), f = (i = Rv.get(c)) != null ? i : c, p = so() != null, g = F.useMemo(() => f === "tooltip" || c === "label" ? {
|
|
6943
6943
|
["aria-" + (c === "label" ? "labelledby" : "describedby")]: l ? m : void 0
|
|
6944
6944
|
} : {
|
|
@@ -6961,26 +6961,26 @@ function Vl(e, t) {
|
|
|
6961
6961
|
"aria-autocomplete": "list"
|
|
6962
6962
|
}
|
|
6963
6963
|
}, [f, m, p, l, d, c]), v = F.useMemo(() => {
|
|
6964
|
-
const
|
|
6964
|
+
const _ = {
|
|
6965
6965
|
id: m,
|
|
6966
6966
|
...f && {
|
|
6967
6967
|
role: f
|
|
6968
6968
|
}
|
|
6969
6969
|
};
|
|
6970
|
-
return f === "tooltip" || c === "label" ?
|
|
6971
|
-
...
|
|
6970
|
+
return f === "tooltip" || c === "label" ? _ : {
|
|
6971
|
+
..._,
|
|
6972
6972
|
...f === "menu" && {
|
|
6973
6973
|
"aria-labelledby": d
|
|
6974
6974
|
}
|
|
6975
6975
|
};
|
|
6976
|
-
}, [f, m, d, c]), b = F.useCallback((
|
|
6976
|
+
}, [f, m, d, c]), b = F.useCallback((_) => {
|
|
6977
6977
|
let {
|
|
6978
|
-
active:
|
|
6978
|
+
active: w,
|
|
6979
6979
|
selected: y
|
|
6980
|
-
} =
|
|
6980
|
+
} = _;
|
|
6981
6981
|
const S = {
|
|
6982
6982
|
role: "option",
|
|
6983
|
-
...
|
|
6983
|
+
...w && {
|
|
6984
6984
|
id: m + "-fui-option"
|
|
6985
6985
|
}
|
|
6986
6986
|
};
|
|
@@ -7064,9 +7064,9 @@ function ha(e, t) {
|
|
|
7064
7064
|
status: v
|
|
7065
7065
|
} = Tv(e, {
|
|
7066
7066
|
duration: o
|
|
7067
|
-
}), b = Xe(n),
|
|
7067
|
+
}), b = Xe(n), _ = Xe(i), w = Xe(l), y = Xe(r);
|
|
7068
7068
|
return De(() => {
|
|
7069
|
-
const S = _i(b.current, u), x = _i(
|
|
7069
|
+
const S = _i(b.current, u), x = _i(w.current, u), L = _i(y.current, u), D = _i(_.current, u) || Object.keys(S).reduce((P, C) => (P[C] = "", P), {});
|
|
7070
7070
|
if (v === "initial" && p((P) => ({
|
|
7071
7071
|
transitionProperty: P.transitionProperty,
|
|
7072
7072
|
...L,
|
|
@@ -7085,7 +7085,7 @@ function ha(e, t) {
|
|
|
7085
7085
|
...P
|
|
7086
7086
|
});
|
|
7087
7087
|
}
|
|
7088
|
-
}, [f,
|
|
7088
|
+
}, [f, w, b, _, y, m, v, u]), {
|
|
7089
7089
|
isMounted: g,
|
|
7090
7090
|
styles: h
|
|
7091
7091
|
};
|
|
@@ -7161,8 +7161,8 @@ const jd = (e, t) => e.indexOf(t) >= 0, ji = (e, t) => e.concat(t), Pe = (e, t,
|
|
|
7161
7161
|
}, h = function() {
|
|
7162
7162
|
const g = Qn(arguments), v = su(n);
|
|
7163
7163
|
if (v) {
|
|
7164
|
-
const b = typeof l == "function" ? l() : l,
|
|
7165
|
-
a && a(), b && !u ? (S(), u = !0, a = v((() => u = void 0))) : (a = v(S),
|
|
7164
|
+
const b = typeof l == "function" ? l() : l, _ = su(i), y = m(g) || g, S = d.bind(0, y);
|
|
7165
|
+
a && a(), b && !u ? (S(), u = !0, a = v((() => u = void 0))) : (a = v(S), _ && !o && (o = _(f))), c = y;
|
|
7166
7166
|
} else
|
|
7167
7167
|
d(g);
|
|
7168
7168
|
};
|
|
@@ -7499,14 +7499,14 @@ const Dy = () => {
|
|
|
7499
7499
|
nativeScrollbarsOverlaid: !1,
|
|
7500
7500
|
body: null
|
|
7501
7501
|
}
|
|
7502
|
-
}, v = ke({}, Cy), b = ue(ke, {}, v),
|
|
7502
|
+
}, v = ke({}, Cy), b = ue(ke, {}, v), _ = ue(ke, {}, g), w = {
|
|
7503
7503
|
P: f,
|
|
7504
7504
|
k: p,
|
|
7505
7505
|
U: h,
|
|
7506
7506
|
J: !!ml,
|
|
7507
7507
|
G: ue(c, "r"),
|
|
7508
|
-
K:
|
|
7509
|
-
Z: (y) => ke(g, y) &&
|
|
7508
|
+
K: _,
|
|
7509
|
+
Z: (y) => ke(g, y) && _(),
|
|
7510
7510
|
tt: b,
|
|
7511
7511
|
nt: (y) => ke(v, y) && b(),
|
|
7512
7512
|
ot: ke({}, g),
|
|
@@ -7525,10 +7525,10 @@ const Dy = () => {
|
|
|
7525
7525
|
};
|
|
7526
7526
|
y((() => {
|
|
7527
7527
|
const [S, x] = d();
|
|
7528
|
-
ke(
|
|
7528
|
+
ke(w.P, S), u("r", [x]);
|
|
7529
7529
|
}));
|
|
7530
7530
|
}
|
|
7531
|
-
return
|
|
7531
|
+
return w;
|
|
7532
7532
|
}, sn = () => (Jo || (Jo = Dy()), Jo), Ry = (e, t, n) => {
|
|
7533
7533
|
let i = !1;
|
|
7534
7534
|
const l = n ? /* @__PURE__ */ new WeakMap() : !1, r = () => {
|
|
@@ -7554,22 +7554,22 @@ const Dy = () => {
|
|
|
7554
7554
|
return o(), [r, o];
|
|
7555
7555
|
}, xu = (e, t, n, i) => {
|
|
7556
7556
|
let l = !1;
|
|
7557
|
-
const { et: r, ct: o, rt: a, it: c, lt: u, ut: d } = i || {}, [m, f] = Ry(e, (() => l && n(!0)), a), h = r || [], p = o || [], g = ji(h, p), v = (
|
|
7558
|
-
if (!Vr(
|
|
7557
|
+
const { et: r, ct: o, rt: a, it: c, lt: u, ut: d } = i || {}, [m, f] = Ry(e, (() => l && n(!0)), a), h = r || [], p = o || [], g = ji(h, p), v = (_, w) => {
|
|
7558
|
+
if (!Vr(w)) {
|
|
7559
7559
|
const y = u || Sl, S = d || Sl, x = [], L = [];
|
|
7560
7560
|
let D = !1, P = !1;
|
|
7561
|
-
if (Ee(
|
|
7562
|
-
const { attributeName:
|
|
7561
|
+
if (Ee(w, ((C) => {
|
|
7562
|
+
const { attributeName: T, target: A, type: Y, oldValue: E, addedNodes: N, removedNodes: W } = C, M = Y === "attributes", k = Y === "childList", $ = e === A, U = M && T, q = U && xa(A, T || ""), j = Ui(q) ? q : null, O = U && E !== j, R = jd(p, T) && O;
|
|
7563
7563
|
if (t && (k || !$)) {
|
|
7564
|
-
const
|
|
7565
|
-
Ee(
|
|
7564
|
+
const I = M && O, te = I && c && Cs(A, c), K = (te ? !y(A, T, E, j) : !M || I) && !S(C, !!te, e, i);
|
|
7565
|
+
Ee(N, ((ie) => Pe(x, ie))), Ee(W, ((ie) => Pe(x, ie))), P = P || K;
|
|
7566
7566
|
}
|
|
7567
|
-
!t && $ && O && !y(
|
|
7568
|
-
})), f(((C) => Hr(x).reduce(((
|
|
7569
|
-
return !
|
|
7567
|
+
!t && $ && O && !y(A, T, E, j) && (Pe(L, T), D = D || R);
|
|
7568
|
+
})), f(((C) => Hr(x).reduce(((T, A) => (Pe(T, lf(C, A)), Cs(A, C) ? Pe(T, A) : T)), []))), t)
|
|
7569
|
+
return !_ && P && n(!1), [!1];
|
|
7570
7570
|
if (!Vr(L) || D) {
|
|
7571
7571
|
const C = [Hr(L), D];
|
|
7572
|
-
return
|
|
7572
|
+
return _ || n.apply(0, C), C;
|
|
7573
7573
|
}
|
|
7574
7574
|
}
|
|
7575
7575
|
}, b = new Hv(ue(v, !1));
|
|
@@ -7598,8 +7598,8 @@ const Ff = (e, t, n) => {
|
|
|
7598
7598
|
const f = Ot(m) && !Vr(m);
|
|
7599
7599
|
let h = !1, p = !1;
|
|
7600
7600
|
if (f) {
|
|
7601
|
-
const g = m[0], [v, , b] = r(g.contentRect),
|
|
7602
|
-
p = df(v, b), h = !p && !
|
|
7601
|
+
const g = m[0], [v, , b] = r(g.contentRect), _ = Rs(v);
|
|
7602
|
+
p = df(v, b), h = !p && !_;
|
|
7603
7603
|
} else
|
|
7604
7604
|
p = m === !0;
|
|
7605
7605
|
h || t({
|
|
@@ -7664,101 +7664,101 @@ const Ff = (e, t, n) => {
|
|
|
7664
7664
|
}, () => n && a(!0, n.takeRecords())];
|
|
7665
7665
|
}, Ty = (e, t, n, i) => {
|
|
7666
7666
|
let l, r, o, a, c, u, d, m;
|
|
7667
|
-
const f = `[${Gn}]`, h = `[${vn}]`, p = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: g, vt: v, L: b, gt:
|
|
7668
|
-
let
|
|
7667
|
+
const f = `[${Gn}]`, h = `[${vn}]`, p = ["id", "class", "style", "open", "wrap", "cols", "rows"], { dt: g, vt: v, L: b, gt: _, ht: w, V: y, bt: S, wt: x, yt: L, St: D } = e, P = (z) => ln(z, "direction") === "rtl", C = () => {
|
|
7668
|
+
let z, K, ie;
|
|
7669
7669
|
const J = Zd(i, {
|
|
7670
|
-
p: () =>
|
|
7671
|
-
v: () =>
|
|
7670
|
+
p: () => z,
|
|
7671
|
+
v: () => K,
|
|
7672
7672
|
S: () => ie,
|
|
7673
7673
|
m(Z, ne) {
|
|
7674
|
-
const [
|
|
7675
|
-
return [ji(st(
|
|
7674
|
+
const [G] = Z, [se] = ne;
|
|
7675
|
+
return [ji(st(G), st(se)).reduce(((le, re) => (le[re] = G[re] || se[re], le)), {})];
|
|
7676
7676
|
}
|
|
7677
7677
|
}), ce = (Z, ne) => {
|
|
7678
7678
|
if (Ot(ne)) {
|
|
7679
|
-
const [
|
|
7680
|
-
|
|
7681
|
-
} else qn(ne) ? (
|
|
7679
|
+
const [G, se, le] = ne;
|
|
7680
|
+
z = G, K = se, ie = le;
|
|
7681
|
+
} else qn(ne) ? (z = ne, K = !1, ie = !1) : (z = !1, K = !1, ie = !1);
|
|
7682
7682
|
J(Z);
|
|
7683
7683
|
};
|
|
7684
7684
|
return ce.O = J.O, ce;
|
|
7685
|
-
},
|
|
7685
|
+
}, T = {
|
|
7686
7686
|
Ot: !1,
|
|
7687
7687
|
B: P(g)
|
|
7688
|
-
},
|
|
7688
|
+
}, A = sn(), Y = qi(Ma), [E] = gt({
|
|
7689
7689
|
i: Kd,
|
|
7690
7690
|
o: {
|
|
7691
7691
|
w: 0,
|
|
7692
7692
|
h: 0
|
|
7693
7693
|
}
|
|
7694
7694
|
}, (() => {
|
|
7695
|
-
const
|
|
7696
|
-
return
|
|
7695
|
+
const z = Y && Y.R(e, t, T, A, n).Y, ie = !(S && y) && Fa(v, Gn, _r), J = !y && x(ay), ce = J && yt(_), Z = ce && D(), ne = L(yf, ie), G = J && z && z(), se = qr(b), le = Sa(b);
|
|
7696
|
+
return G && G(), en(_, ce), Z && Z(), ie && ne(), {
|
|
7697
7697
|
w: se.w + le.w,
|
|
7698
7698
|
h: se.h + le.h
|
|
7699
7699
|
};
|
|
7700
|
-
})),
|
|
7701
|
-
const
|
|
7702
|
-
ke(
|
|
7703
|
-
Ct: m !==
|
|
7704
|
-
}), ke(
|
|
7705
|
-
B:
|
|
7706
|
-
}), m =
|
|
7707
|
-
},
|
|
7708
|
-
const [ie, J] =
|
|
7700
|
+
})), N = C(), W = (z) => {
|
|
7701
|
+
const K = P(g);
|
|
7702
|
+
ke(z, {
|
|
7703
|
+
Ct: m !== K
|
|
7704
|
+
}), ke(T, {
|
|
7705
|
+
B: K
|
|
7706
|
+
}), m = K;
|
|
7707
|
+
}, M = (z, K) => {
|
|
7708
|
+
const [ie, J] = z, ce = {
|
|
7709
7709
|
$t: J
|
|
7710
7710
|
};
|
|
7711
|
-
return ke(
|
|
7711
|
+
return ke(T, {
|
|
7712
7712
|
Ot: ie
|
|
7713
|
-
}),
|
|
7714
|
-
}, k = ({ _t:
|
|
7715
|
-
const ie =
|
|
7716
|
-
_t:
|
|
7717
|
-
ft:
|
|
7713
|
+
}), K || i(ce), ce;
|
|
7714
|
+
}, k = ({ _t: z, ft: K }) => {
|
|
7715
|
+
const ie = K ? i : N, J = {
|
|
7716
|
+
_t: z || K,
|
|
7717
|
+
ft: K
|
|
7718
7718
|
};
|
|
7719
|
-
|
|
7720
|
-
}, $ = (
|
|
7719
|
+
W(J), ie(J, r);
|
|
7720
|
+
}, $ = (z, K) => {
|
|
7721
7721
|
const [, ie] = E(), J = {
|
|
7722
7722
|
xt: ie
|
|
7723
7723
|
};
|
|
7724
|
-
return
|
|
7725
|
-
},
|
|
7724
|
+
return W(J), ie && !K && N(J, z ? o : l), J;
|
|
7725
|
+
}, U = (z, K, ie) => {
|
|
7726
7726
|
const J = {
|
|
7727
|
-
Ht:
|
|
7727
|
+
Ht: K
|
|
7728
7728
|
};
|
|
7729
|
-
return
|
|
7730
|
-
}, [
|
|
7729
|
+
return W(J), K && !ie && N(J, l), J;
|
|
7730
|
+
}, [q, j] = w ? Ny(v, M) : [], O = !y && Ff(v, k, {
|
|
7731
7731
|
ft: !0
|
|
7732
|
-
}), [
|
|
7732
|
+
}), [R, I] = xu(v, !1, U, {
|
|
7733
7733
|
ct: p,
|
|
7734
7734
|
et: p
|
|
7735
|
-
}), te = y && Si && new Si(((
|
|
7736
|
-
const
|
|
7735
|
+
}), te = y && Si && new Si(((z) => {
|
|
7736
|
+
const K = z[z.length - 1].contentRect;
|
|
7737
7737
|
k({
|
|
7738
7738
|
_t: !0,
|
|
7739
|
-
ft: df(
|
|
7740
|
-
}), d =
|
|
7739
|
+
ft: df(K, d)
|
|
7740
|
+
}), d = K;
|
|
7741
7741
|
}));
|
|
7742
7742
|
return [() => {
|
|
7743
7743
|
te && te.observe(v);
|
|
7744
|
-
const
|
|
7744
|
+
const z = O && O(), K = q && q(), ie = R(), J = A.G(((ce) => {
|
|
7745
7745
|
const [, Z] = E();
|
|
7746
|
-
|
|
7746
|
+
N({
|
|
7747
7747
|
Et: ce,
|
|
7748
7748
|
xt: Z,
|
|
7749
7749
|
_t: S
|
|
7750
7750
|
}, a);
|
|
7751
7751
|
}));
|
|
7752
7752
|
return () => {
|
|
7753
|
-
te && te.disconnect(),
|
|
7753
|
+
te && te.disconnect(), z && z(), K && K(), u && u(), ie(), J();
|
|
7754
7754
|
};
|
|
7755
|
-
}, ({ zt:
|
|
7756
|
-
const J = {}, [ce] =
|
|
7755
|
+
}, ({ zt: z, It: K, At: ie }) => {
|
|
7756
|
+
const J = {}, [ce] = z("update.ignoreMutation"), [Z, ne] = z("update.attributes"), [G, se] = z("update.elementEvents"), [le, re] = z("update.debounce"), ye = se || ne, de = K || ie, fe = (me) => Wt(ce) && ce(me);
|
|
7757
7757
|
if (ye) {
|
|
7758
7758
|
c && c(), u && u();
|
|
7759
|
-
const [me, H] = xu(
|
|
7759
|
+
const [me, H] = xu(w || b, !0, $, {
|
|
7760
7760
|
et: ji(p, Z || []),
|
|
7761
|
-
rt:
|
|
7761
|
+
rt: G,
|
|
7762
7762
|
it: f,
|
|
7763
7763
|
ut: (Q, X) => {
|
|
7764
7764
|
const { target: he, attributeName: be } = Q;
|
|
@@ -7767,12 +7767,12 @@ const Ff = (e, t, n) => {
|
|
|
7767
7767
|
});
|
|
7768
7768
|
u = me(), c = H;
|
|
7769
7769
|
}
|
|
7770
|
-
if (re && (
|
|
7771
|
-
const me =
|
|
7772
|
-
me && ke(J,
|
|
7770
|
+
if (re && (N.O(), Ot(le) || qn(le) ? (l = le, r = !1, o = _f, a = kf) : El(le) ? (l = le.mutation, r = le.resize, o = le.event, a = le.env) : (l = !1, r = !1, o = !1, a = !1)), de) {
|
|
7771
|
+
const me = I(), H = j && j(), Q = c && c();
|
|
7772
|
+
me && ke(J, U(me[0], me[1], de)), H && ke(J, M(H[0], de)), Q && ke(J, $(Q[0], de));
|
|
7773
7773
|
}
|
|
7774
|
-
return
|
|
7775
|
-
},
|
|
7774
|
+
return W(J), J;
|
|
7775
|
+
}, T];
|
|
7776
7776
|
}, Ef = (e, t) => Wt(t) ? t.apply(0, e) : t, Py = (e, t, n, i) => {
|
|
7777
7777
|
const l = va(i) ? n : i;
|
|
7778
7778
|
return Ef(e, l) || t.apply(0, e);
|
|
@@ -7783,24 +7783,24 @@ const Ff = (e, t, n) => {
|
|
|
7783
7783
|
const { nativeScrollbarsOverlaid: n, body: i } = t || {}, { k: l, U: r, K: o } = sn(), { nativeScrollbarsOverlaid: a, body: c } = o().cancel, u = n ?? a, d = va(i) ? c : i, m = (l.x || l.y) && u, f = e && (ho(d) ? !r : d);
|
|
7784
7784
|
return !!m || !!f;
|
|
7785
7785
|
}, Iy = (e, t, n, i) => {
|
|
7786
|
-
const l = "--os-viewport-percent", r = "--os-scroll-percent", o = "--os-scroll-direction", { K: a } = sn(), { scrollbars: c } = a(), { slot: u } = c, { dt: d, vt: m, L: f, Tt: h, gt: p, bt: g, V: v } = t, { scrollbars: b } = h ? {} : e, { slot:
|
|
7786
|
+
const l = "--os-viewport-percent", r = "--os-scroll-percent", o = "--os-scroll-direction", { K: a } = sn(), { scrollbars: c } = a(), { slot: u } = c, { dt: d, vt: m, L: f, Tt: h, gt: p, bt: g, V: v } = t, { scrollbars: b } = h ? {} : e, { slot: _ } = b || {}, w = [], y = [], S = [], x = Sf([d, m, f], (() => v && g ? d : m), u, _), L = (q) => {
|
|
7787
7787
|
if (ml) {
|
|
7788
7788
|
let j = null, O = [];
|
|
7789
|
-
const
|
|
7789
|
+
const R = new ml({
|
|
7790
7790
|
source: p,
|
|
7791
|
-
axis:
|
|
7792
|
-
}),
|
|
7791
|
+
axis: q
|
|
7792
|
+
}), I = () => {
|
|
7793
7793
|
j && j.cancel(), j = null;
|
|
7794
7794
|
};
|
|
7795
7795
|
return {
|
|
7796
|
-
kt: (
|
|
7797
|
-
const { Dt:
|
|
7798
|
-
return O[0] === Z[0] && O[1] === Z[1] || (O = Z,
|
|
7796
|
+
kt: (z) => {
|
|
7797
|
+
const { Dt: K } = n, ie = Xo(K)[q], J = q === "x", ce = [Ko(0, J), Ko(`calc(-100% + 100cq${J ? "w" : "h"})`, J)], Z = ie ? ce : ce.reverse();
|
|
7798
|
+
return O[0] === Z[0] && O[1] === Z[1] || (O = Z, I(), j = z.Mt.animate({
|
|
7799
7799
|
clear: ["left"],
|
|
7800
7800
|
transform: Z
|
|
7801
7801
|
}, {
|
|
7802
|
-
timeline:
|
|
7803
|
-
})),
|
|
7802
|
+
timeline: R
|
|
7803
|
+
})), I;
|
|
7804
7804
|
}
|
|
7805
7805
|
};
|
|
7806
7806
|
}
|
|
@@ -7808,103 +7808,103 @@ const Ff = (e, t, n) => {
|
|
|
7808
7808
|
x: L("x"),
|
|
7809
7809
|
y: L("y")
|
|
7810
7810
|
}, P = () => {
|
|
7811
|
-
const { Rt:
|
|
7811
|
+
const { Rt: q, Vt: j } = n, O = (R, I) => Jd(0, 1, R / (R + I) || 0);
|
|
7812
7812
|
return {
|
|
7813
|
-
x: O(j.x,
|
|
7814
|
-
y: O(j.y,
|
|
7813
|
+
x: O(j.x, q.x),
|
|
7814
|
+
y: O(j.y, q.y)
|
|
7815
7815
|
};
|
|
7816
|
-
}, C = (
|
|
7817
|
-
const
|
|
7818
|
-
Ee(
|
|
7819
|
-
|
|
7816
|
+
}, C = (q, j, O) => {
|
|
7817
|
+
const R = O ? Ea : nf;
|
|
7818
|
+
Ee(q, ((I) => {
|
|
7819
|
+
R(I.Lt, j);
|
|
7820
7820
|
}));
|
|
7821
|
-
},
|
|
7822
|
-
Ee(
|
|
7823
|
-
const [
|
|
7824
|
-
Ol(
|
|
7821
|
+
}, T = (q, j) => {
|
|
7822
|
+
Ee(q, ((O) => {
|
|
7823
|
+
const [R, I] = j(O);
|
|
7824
|
+
Ol(R, I);
|
|
7825
7825
|
}));
|
|
7826
|
-
},
|
|
7827
|
-
const
|
|
7828
|
-
|
|
7829
|
-
},
|
|
7830
|
-
const
|
|
7826
|
+
}, A = (q, j, O) => {
|
|
7827
|
+
const R = po(O), I = R ? O : !0, te = R ? !O : !0;
|
|
7828
|
+
I && C(y, q, j), te && C(S, q, j);
|
|
7829
|
+
}, Y = () => {
|
|
7830
|
+
const q = P(), j = (O) => (R) => [R.Lt, {
|
|
7831
7831
|
[l]: Ds(O) + ""
|
|
7832
7832
|
}];
|
|
7833
|
-
|
|
7833
|
+
T(y, j(q.x)), T(S, j(q.y));
|
|
7834
7834
|
}, E = () => {
|
|
7835
7835
|
if (!ml) {
|
|
7836
|
-
const { Dt:
|
|
7837
|
-
[r]: Ds(
|
|
7836
|
+
const { Dt: q } = n, j = fu(q, yt(p)), O = (R) => (I) => [I.Lt, {
|
|
7837
|
+
[r]: Ds(R) + ""
|
|
7838
7838
|
}];
|
|
7839
|
-
|
|
7839
|
+
T(y, O(j.x)), T(S, O(j.y));
|
|
7840
7840
|
}
|
|
7841
|
-
},
|
|
7842
|
-
const { Dt:
|
|
7843
|
-
[o]:
|
|
7841
|
+
}, N = () => {
|
|
7842
|
+
const { Dt: q } = n, j = Xo(q), O = (R) => (I) => [I.Lt, {
|
|
7843
|
+
[o]: R ? "0" : "1"
|
|
7844
7844
|
}];
|
|
7845
|
-
|
|
7846
|
-
},
|
|
7845
|
+
T(y, O(j.x)), T(S, O(j.y)), ml && (y.forEach(D.x.kt), S.forEach(D.y.kt));
|
|
7846
|
+
}, W = () => {
|
|
7847
7847
|
if (v && !g) {
|
|
7848
|
-
const { Rt:
|
|
7849
|
-
const { Lt:
|
|
7848
|
+
const { Rt: q, Dt: j } = n, O = Xo(j), R = fu(j, yt(p)), I = (te) => {
|
|
7849
|
+
const { Lt: z } = te, K = Cl(z) === f && z, ie = (J, ce, Z) => {
|
|
7850
7850
|
const ne = ce * J;
|
|
7851
7851
|
return cf(Z ? ne : -ne);
|
|
7852
7852
|
};
|
|
7853
|
-
return [
|
|
7853
|
+
return [K, K && {
|
|
7854
7854
|
transform: Ko({
|
|
7855
|
-
x: ie(
|
|
7856
|
-
y: ie(
|
|
7855
|
+
x: ie(R.x, q.x, O.x),
|
|
7856
|
+
y: ie(R.y, q.y, O.y)
|
|
7857
7857
|
})
|
|
7858
7858
|
}];
|
|
7859
7859
|
};
|
|
7860
|
-
|
|
7860
|
+
T(y, I), T(S, I);
|
|
7861
7861
|
}
|
|
7862
|
-
},
|
|
7863
|
-
const j =
|
|
7864
|
-
Lt:
|
|
7865
|
-
Ut:
|
|
7862
|
+
}, M = (q) => {
|
|
7863
|
+
const j = q ? "x" : "y", R = Pi(`${kt} ${q ? gy : vy}`), I = Pi(wf), te = Pi(Oa), z = {
|
|
7864
|
+
Lt: R,
|
|
7865
|
+
Ut: I,
|
|
7866
7866
|
Mt: te
|
|
7867
|
-
},
|
|
7868
|
-
return Pe(
|
|
7869
|
-
}, k = ue(
|
|
7867
|
+
}, K = D[j];
|
|
7868
|
+
return Pe(q ? y : S, z), Pe(w, [at(R, I), at(I, te), ue(Wi, R), K && K.kt(z), i(z, A, q)]), z;
|
|
7869
|
+
}, k = ue(M, !0), $ = ue(M, !1), U = () => (at(x, y[0].Lt), at(x, S[0].Lt), ue(wt, w));
|
|
7870
7870
|
return k(), $(), [{
|
|
7871
|
-
Pt:
|
|
7871
|
+
Pt: Y,
|
|
7872
7872
|
Nt: E,
|
|
7873
|
-
qt:
|
|
7874
|
-
Bt:
|
|
7875
|
-
Ft:
|
|
7873
|
+
qt: N,
|
|
7874
|
+
Bt: W,
|
|
7875
|
+
Ft: A,
|
|
7876
7876
|
jt: {
|
|
7877
7877
|
Xt: y,
|
|
7878
7878
|
Yt: k,
|
|
7879
|
-
Wt: ue(
|
|
7879
|
+
Wt: ue(T, y)
|
|
7880
7880
|
},
|
|
7881
7881
|
Jt: {
|
|
7882
7882
|
Xt: S,
|
|
7883
7883
|
Yt: $,
|
|
7884
|
-
Wt: ue(
|
|
7884
|
+
Wt: ue(T, S)
|
|
7885
7885
|
}
|
|
7886
|
-
},
|
|
7886
|
+
}, U];
|
|
7887
7887
|
}, zy = (e, t, n, i) => (l, r, o) => {
|
|
7888
|
-
const { vt: a, L: c, V: u, gt: d, Gt: m, St: f } = t, { Lt: h, Ut: p, Mt: g } = l, [v, b] = Ci(333), [
|
|
7888
|
+
const { vt: a, L: c, V: u, gt: d, Gt: m, St: f } = t, { Lt: h, Ut: p, Mt: g } = l, [v, b] = Ci(333), [_, w] = Ci(444), y = (L) => {
|
|
7889
7889
|
Wt(d.scrollBy) && d.scrollBy({
|
|
7890
7890
|
behavior: "smooth",
|
|
7891
7891
|
left: L.x,
|
|
7892
7892
|
top: L.y
|
|
7893
7893
|
});
|
|
7894
7894
|
}, S = () => {
|
|
7895
|
-
const L = "pointerup pointercancel lostpointercapture", D = `client${o ? "X" : "Y"}`, P = o ? vo : yo, C = o ? "left" : "top",
|
|
7896
|
-
const { Rt: k } = n, $ = $i(p)[
|
|
7895
|
+
const L = "pointerup pointercancel lostpointercapture", D = `client${o ? "X" : "Y"}`, P = o ? vo : yo, C = o ? "left" : "top", T = o ? "w" : "h", A = o ? "x" : "y", Y = (N, W) => (M) => {
|
|
7896
|
+
const { Rt: k } = n, $ = $i(p)[T] - $i(g)[T], q = W * M / $ * k[A];
|
|
7897
7897
|
en(d, {
|
|
7898
|
-
[
|
|
7898
|
+
[A]: N + q
|
|
7899
7899
|
});
|
|
7900
7900
|
}, E = [];
|
|
7901
|
-
return Me(p, "pointerdown", ((
|
|
7902
|
-
const
|
|
7903
|
-
if (
|
|
7904
|
-
wt(E),
|
|
7905
|
-
const
|
|
7906
|
-
wt(me),
|
|
7907
|
-
}, de =
|
|
7901
|
+
return Me(p, "pointerdown", ((N) => {
|
|
7902
|
+
const W = Oi(N.target, `.${Oa}`) === g, M = W ? g : p, k = e.scrollbars, $ = k[W ? "dragScroll" : "clickScroll"], { button: U, isPrimary: q, pointerType: j } = N, { pointers: O } = k;
|
|
7903
|
+
if (U === 0 && q && $ && (O || []).includes(j)) {
|
|
7904
|
+
wt(E), w();
|
|
7905
|
+
const I = !W && (N.shiftKey || $ === "instant"), te = ue(Zo, g), z = ue(Zo, p), K = (H, Q) => (H || te())[C] - (Q || z())[C], ie = Ss(Zo(d)[P]) / $i(d)[T] || 1, J = Y(yt(d)[A], 1 / ie), ce = N[D], Z = te(), ne = z(), G = Z[P], se = K(Z, ne) + G / 2, le = ce - ne[C], re = W ? 0 : le - se, ye = (H) => {
|
|
7906
|
+
wt(me), M.releasePointerCapture(H.pointerId);
|
|
7907
|
+
}, de = W || I, fe = f(), me = [Me(m, L, ye), Me(m, "selectstart", ((H) => Ns(H)), {
|
|
7908
7908
|
I: !1
|
|
7909
7909
|
}), Me(p, L, ye), de && Me(p, "pointermove", ((H) => J(re + (H[D] - ce)))), de && (() => {
|
|
7910
7910
|
const H = yt(d);
|
|
@@ -7913,14 +7913,14 @@ const Ff = (e, t, n) => {
|
|
|
7913
7913
|
x: Q.x - H.x,
|
|
7914
7914
|
y: Q.y - H.y
|
|
7915
7915
|
};
|
|
7916
|
-
(Bn(X.x) > 3 || Bn(X.y) > 3) && (f(), en(d, H), y(X),
|
|
7916
|
+
(Bn(X.x) > 3 || Bn(X.y) > 3) && (f(), en(d, H), y(X), _(fe));
|
|
7917
7917
|
})];
|
|
7918
|
-
if (
|
|
7918
|
+
if (M.setPointerCapture(N.pointerId), I)
|
|
7919
7919
|
J(re);
|
|
7920
|
-
else if (!
|
|
7920
|
+
else if (!W) {
|
|
7921
7921
|
const H = qi(Ey);
|
|
7922
7922
|
if (H) {
|
|
7923
|
-
const Q = H(J, re,
|
|
7923
|
+
const Q = H(J, re, G, ((X) => {
|
|
7924
7924
|
X ? fe() : Pe(me, fe);
|
|
7925
7925
|
}));
|
|
7926
7926
|
Pe(me, Q), Pe(E, ue(Q, !0));
|
|
@@ -7964,87 +7964,87 @@ const Ff = (e, t, n) => {
|
|
|
7964
7964
|
}), {
|
|
7965
7965
|
A: !0,
|
|
7966
7966
|
I: !0
|
|
7967
|
-
}), S(), b,
|
|
7967
|
+
}), S(), b, w]);
|
|
7968
7968
|
}, Ay = (e, t, n, i, l, r) => {
|
|
7969
7969
|
let o, a, c, u, d, m = Sl, f = 0;
|
|
7970
|
-
const h = ["mouse", "pen"], p = (O) => h.includes(O.pointerType), [g, v] = Ci(), [b,
|
|
7970
|
+
const h = ["mouse", "pen"], p = (O) => h.includes(O.pointerType), [g, v] = Ci(), [b, _] = Ci(100), [w, y] = Ci(100), [S, x] = Ci((() => f)), [L, D] = Iy(e, l, i, zy(t, l, i, ((O) => p(O) && k()))), { vt: P, Kt: C, bt: T } = l, { Ft: A, Pt: Y, Nt: E, qt: N, Bt: W } = L, M = (O, R) => {
|
|
7971
7971
|
if (x(), O)
|
|
7972
|
-
|
|
7972
|
+
A(yu);
|
|
7973
7973
|
else {
|
|
7974
|
-
const
|
|
7975
|
-
f > 0 && !
|
|
7974
|
+
const I = ue(A, yu, !0);
|
|
7975
|
+
f > 0 && !R ? S(I) : I();
|
|
7976
7976
|
}
|
|
7977
7977
|
}, k = () => {
|
|
7978
|
-
(c ? !o : !u) && (
|
|
7979
|
-
|
|
7978
|
+
(c ? !o : !u) && (M(!0), b((() => {
|
|
7979
|
+
M(!1);
|
|
7980
7980
|
})));
|
|
7981
7981
|
}, $ = (O) => {
|
|
7982
|
-
|
|
7983
|
-
},
|
|
7984
|
-
p(O) && (o = c, c &&
|
|
7985
|
-
},
|
|
7982
|
+
A(Is, O, !0), A(Is, O, !1);
|
|
7983
|
+
}, U = (O) => {
|
|
7984
|
+
p(O) && (o = c, c && M(!0));
|
|
7985
|
+
}, q = [x, _, y, v, () => m(), Me(P, "pointerover", U, {
|
|
7986
7986
|
T: !0
|
|
7987
|
-
}), Me(P, "pointerenter",
|
|
7988
|
-
p(O) && (o = !1, c &&
|
|
7987
|
+
}), Me(P, "pointerenter", U), Me(P, "pointerleave", ((O) => {
|
|
7988
|
+
p(O) && (o = !1, c && M(!1));
|
|
7989
7989
|
})), Me(P, "pointermove", ((O) => {
|
|
7990
7990
|
p(O) && a && k();
|
|
7991
7991
|
})), Me(C, "scroll", ((O) => {
|
|
7992
7992
|
g((() => {
|
|
7993
7993
|
E(), k();
|
|
7994
|
-
})), r(O),
|
|
7994
|
+
})), r(O), W();
|
|
7995
7995
|
}))], j = qi(Ma);
|
|
7996
|
-
return [() => ue(wt, Pe(
|
|
7997
|
-
const { tn:
|
|
7996
|
+
return [() => ue(wt, Pe(q, D())), ({ zt: O, At: R, Qt: I, Zt: te }) => {
|
|
7997
|
+
const { tn: z, nn: K, sn: ie, en: J } = te || {}, { Ct: ce, ft: Z } = I || {}, { B: ne } = n, { k: G, U: se } = sn(), { cn: le, j: re } = i, [ye, de] = O("showNativeOverlaidScrollbars"), [fe, me] = O("scrollbars.theme"), [H, Q] = O("scrollbars.visibility"), [X, he] = O("scrollbars.autoHide"), [be, Fe] = O("scrollbars.autoHideSuspend"), [dt] = O("scrollbars.autoHideDelay"), [Lt, Je] = O("scrollbars.dragScroll"), [ze, We] = O("scrollbars.clickScroll"), [et, un] = O("overflow"), Rn = Z && !R, Ht = re.x || re.y, tt = z || K || J || ce || R, Ae = ie || Q || un, Jn = ye && G.x && G.y, Rt = !se && !j, Ft = Jn || Rt, dn = (Nn, Tn, gi) => {
|
|
7998
7998
|
const vi = Nn.includes(Bi) && (H === wn || H === "auto" && Tn === Bi);
|
|
7999
|
-
return
|
|
7999
|
+
return A(yy, vi, gi), vi;
|
|
8000
8000
|
};
|
|
8001
|
-
if (f = dt, Rn && (be && Ht ? ($(!1), m(),
|
|
8001
|
+
if (f = dt, Rn && (be && Ht ? ($(!1), m(), w((() => {
|
|
8002
8002
|
m = Me(C, "scroll", ue($, !0), {
|
|
8003
8003
|
T: !0
|
|
8004
8004
|
});
|
|
8005
|
-
}))) : $(!0)), (de || Rt) &&
|
|
8005
|
+
}))) : $(!0)), (de || Rt) && A(hy, Ft), me && (A(d), A(fe, !0), d = fe), Fe && !be && $(!0), he && (a = X === "move", c = X === "leave", u = X === "never", M(u, !0)), Je && A(_y, Lt), We && A(wy, !!ze), Ae) {
|
|
8006
8006
|
const Nn = dn(et.x, le.x, !0), Tn = dn(et.y, le.y, !1);
|
|
8007
|
-
|
|
8007
|
+
A(by, !(Nn && Tn));
|
|
8008
8008
|
}
|
|
8009
|
-
tt && (E(),
|
|
8009
|
+
tt && (E(), Y(), W(), J && N(), A(vu, !re.x, !0), A(vu, !re.y, !1), A(py, ne && !T));
|
|
8010
8010
|
}, {}, L];
|
|
8011
8011
|
}, Yy = (e) => {
|
|
8012
|
-
const t = sn(), { K: n, U: i } = t, { elements: l } = n(), { padding: r, viewport: o, content: a } = l, c = Wr(e), u = c ? {} : e, { elements: d } = u, { padding: m, viewport: f, content: h } = d || {}, p = c ? e : u.target, g = rf(p), v = p.ownerDocument, b = v.documentElement,
|
|
8013
|
-
const se = $i(
|
|
8012
|
+
const t = sn(), { K: n, U: i } = t, { elements: l } = n(), { padding: r, viewport: o, content: a } = l, c = Wr(e), u = c ? {} : e, { elements: d } = u, { padding: m, viewport: f, content: h } = d || {}, p = c ? e : u.target, g = rf(p), v = p.ownerDocument, b = v.documentElement, _ = () => v.defaultView || ct, w = ue(Py, [p]), y = ue(Sf, [p]), S = ue(Pi, ""), x = ue(w, S, o), L = ue(y, S, a), D = (G) => {
|
|
8013
|
+
const se = $i(G), le = qr(G), re = ln(G, wa), ye = ln(G, _a);
|
|
8014
8014
|
return le.w - se.w > 0 && !Mi(re) || le.h - se.h > 0 && !Mi(ye);
|
|
8015
|
-
}, P = x(f), C = P === p,
|
|
8015
|
+
}, P = x(f), C = P === p, T = C && g, A = !C && L(h), Y = !C && P === A, E = T ? b : P, N = T ? E : p, W = !C && y(S, r, m), M = !Y && A, k = [M, E, W, N].map(((G) => Wr(G) && !Cl(G) && G)), $ = (G) => G && jd(k, G), U = !$(E) && D(E) ? E : p, q = T ? b : E, O = {
|
|
8016
8016
|
dt: p,
|
|
8017
|
-
vt:
|
|
8017
|
+
vt: N,
|
|
8018
8018
|
L: E,
|
|
8019
|
-
rn:
|
|
8020
|
-
ht:
|
|
8021
|
-
gt:
|
|
8022
|
-
Kt:
|
|
8023
|
-
ln: g ? b :
|
|
8019
|
+
rn: W,
|
|
8020
|
+
ht: M,
|
|
8021
|
+
gt: q,
|
|
8022
|
+
Kt: T ? v : E,
|
|
8023
|
+
ln: g ? b : U,
|
|
8024
8024
|
Gt: v,
|
|
8025
8025
|
bt: g,
|
|
8026
8026
|
Tt: c,
|
|
8027
8027
|
V: C,
|
|
8028
|
-
an:
|
|
8029
|
-
wt: (
|
|
8030
|
-
yt: (
|
|
8031
|
-
St: () => Ur(
|
|
8032
|
-
}, { dt:
|
|
8033
|
-
Zt(
|
|
8028
|
+
an: _,
|
|
8029
|
+
wt: (G) => Fa(E, vn, G),
|
|
8030
|
+
yt: (G, se) => Ur(E, vn, G, se),
|
|
8031
|
+
St: () => Ur(q, vn, cy, !0)
|
|
8032
|
+
}, { dt: R, vt: I, rn: te, L: z, ht: K } = O, ie = [() => {
|
|
8033
|
+
Zt(I, [Gn, Qo]), Zt(R, Qo), g && Zt(b, [Qo, Gn]);
|
|
8034
8034
|
}];
|
|
8035
|
-
let J = Os([
|
|
8036
|
-
const ce =
|
|
8035
|
+
let J = Os([K, z, te, I, R].find(((G) => G && !$(G))));
|
|
8036
|
+
const ce = T ? R : K || z, Z = ue(wt, ie);
|
|
8037
8037
|
return [O, () => {
|
|
8038
|
-
const
|
|
8038
|
+
const G = _(), se = Ms(), le = (me) => {
|
|
8039
8039
|
at(Cl(me), Os(me)), Wi(me);
|
|
8040
8040
|
}, re = (me) => Me(me, "focusin focusout focus blur", mf, {
|
|
8041
8041
|
A: !0,
|
|
8042
8042
|
I: !1
|
|
8043
|
-
}), ye = "tabindex", de = xa(
|
|
8044
|
-
return gn(
|
|
8045
|
-
const me = Ms(), H = $(
|
|
8046
|
-
Zt(te, $s), Zt(
|
|
8047
|
-
}]), i && !C && (La(
|
|
8043
|
+
}), ye = "tabindex", de = xa(z, ye), fe = re(se);
|
|
8044
|
+
return gn(I, Gn, C ? "" : ry), gn(te, $s, ""), gn(z, vn, ""), gn(K, pu, ""), C || (gn(z, ye, de || "-1"), g && gn(b, hu, "")), at(ce, J), at(I, te), at(te || I, !C && z), at(z, K), Pe(ie, [fe, () => {
|
|
8045
|
+
const me = Ms(), H = $(z), Q = H && me === z ? R : me, X = re(Q);
|
|
8046
|
+
Zt(te, $s), Zt(K, pu), Zt(z, vn), g && Zt(b, hu), de ? gn(z, ye, de) : Zt(z, ye), $(K) && le(K), H && le(z), $(te) && le(te), Ts(Q), X();
|
|
8047
|
+
}]), i && !C && (La(z, vn, bf), Pe(ie, ue(Zt, z, vn))), Ts(!C && g && se === R && G.top === G ? z : se), fe(), J = 0, Z;
|
|
8048
8048
|
}, Z];
|
|
8049
8049
|
}, jy = ({ ht: e }) => ({ Qt: t, un: n, At: i }) => {
|
|
8050
8050
|
const { $t: l } = t || {}, { Ot: r } = n;
|
|
@@ -8058,11 +8058,11 @@ const Ff = (e, t, n) => {
|
|
|
8058
8058
|
}, ue(uu, e, "padding", ""));
|
|
8059
8059
|
return ({ zt: a, Qt: c, un: u, At: d }) => {
|
|
8060
8060
|
let [m, f] = o(d);
|
|
8061
|
-
const { U: h } = sn(), { _t: p, xt: g, Ct: v } = c || {}, { B: b } = u, [
|
|
8061
|
+
const { U: h } = sn(), { _t: p, xt: g, Ct: v } = c || {}, { B: b } = u, [_, w] = a("paddingAbsolute");
|
|
8062
8062
|
(p || f || (d || g)) && ([m, f] = r(d));
|
|
8063
|
-
const S = !i && (
|
|
8063
|
+
const S = !i && (w || v || f);
|
|
8064
8064
|
if (S) {
|
|
8065
|
-
const x = !
|
|
8065
|
+
const x = !_ || !t && !h, L = m.r + m.l, D = m.t + m.b, P = {
|
|
8066
8066
|
[qd]: x && !b ? -L : 0,
|
|
8067
8067
|
[Gd]: x ? -D : 0,
|
|
8068
8068
|
[Ud]: x && b ? -L : 0,
|
|
@@ -8089,26 +8089,26 @@ const Ff = (e, t, n) => {
|
|
|
8089
8089
|
}, Wy = (e, t) => {
|
|
8090
8090
|
const n = sn(), { vt: i, rn: l, L: r, V: o, Kt: a, gt: c, bt: u, yt: d, an: m } = e, { U: f } = n, h = u && o, p = ue(zd, 0), g = {
|
|
8091
8091
|
display: () => !1,
|
|
8092
|
-
direction: (
|
|
8093
|
-
flexDirection: (
|
|
8094
|
-
writingMode: (
|
|
8092
|
+
direction: (R) => R !== "ltr",
|
|
8093
|
+
flexDirection: (R) => R.endsWith("-reverse"),
|
|
8094
|
+
writingMode: (R) => R !== "horizontal-tb"
|
|
8095
8095
|
}, v = st(g), b = {
|
|
8096
8096
|
i: Kd,
|
|
8097
8097
|
o: {
|
|
8098
8098
|
w: 0,
|
|
8099
8099
|
h: 0
|
|
8100
8100
|
}
|
|
8101
|
-
},
|
|
8101
|
+
}, _ = {
|
|
8102
8102
|
i: br,
|
|
8103
8103
|
o: {}
|
|
8104
|
-
},
|
|
8105
|
-
d(yf, !h &&
|
|
8106
|
-
}, y = () => ln(r, v), S = (
|
|
8107
|
-
const te = !st(
|
|
8108
|
-
const fe =
|
|
8104
|
+
}, w = (R) => {
|
|
8105
|
+
d(yf, !h && R);
|
|
8106
|
+
}, y = () => ln(r, v), S = (R, I) => {
|
|
8107
|
+
const te = !st(R).length, z = !I && v.some(((de) => {
|
|
8108
|
+
const fe = R[de];
|
|
8109
8109
|
return Ui(fe) && g[de](fe);
|
|
8110
8110
|
}));
|
|
8111
|
-
if (te && !
|
|
8111
|
+
if (te && !z || !ty(r))
|
|
8112
8112
|
return {
|
|
8113
8113
|
D: {
|
|
8114
8114
|
x: 0,
|
|
@@ -8119,7 +8119,7 @@ const Ff = (e, t, n) => {
|
|
|
8119
8119
|
y: 1
|
|
8120
8120
|
}
|
|
8121
8121
|
};
|
|
8122
|
-
|
|
8122
|
+
w(!0);
|
|
8123
8123
|
const ie = yt(c), J = Me(a, Bi, ((de) => {
|
|
8124
8124
|
const fe = yt(c);
|
|
8125
8125
|
de.isTrusted && fe.x === ie.x && fe.y === ie.y && ff(de);
|
|
@@ -8136,9 +8136,9 @@ const Ff = (e, t, n) => {
|
|
|
8136
8136
|
x: ne.w,
|
|
8137
8137
|
y: ne.h
|
|
8138
8138
|
});
|
|
8139
|
-
const
|
|
8140
|
-
x:
|
|
8141
|
-
y:
|
|
8139
|
+
const G = yt(c), se = {
|
|
8140
|
+
x: G.x - Z.x,
|
|
8141
|
+
y: G.y - Z.y
|
|
8142
8142
|
};
|
|
8143
8143
|
en(c, {
|
|
8144
8144
|
x: -ne.w,
|
|
@@ -8148,61 +8148,61 @@ const Ff = (e, t, n) => {
|
|
|
8148
8148
|
x: le.x - Z.x,
|
|
8149
8149
|
y: le.y - Z.y
|
|
8150
8150
|
}, ye = {
|
|
8151
|
-
x: Bn(se.x) >= Bn(re.x) ?
|
|
8152
|
-
y: Bn(se.y) >= Bn(re.y) ?
|
|
8151
|
+
x: Bn(se.x) >= Bn(re.x) ? G.x : le.x,
|
|
8152
|
+
y: Bn(se.y) >= Bn(re.y) ? G.y : le.y
|
|
8153
8153
|
};
|
|
8154
8154
|
return en(c, ie), pa((() => J())), {
|
|
8155
8155
|
D: Z,
|
|
8156
8156
|
M: ye
|
|
8157
8157
|
};
|
|
8158
|
-
}, x = (
|
|
8159
|
-
const te = ct.devicePixelRatio % 1 !== 0 ? 1 : 0,
|
|
8160
|
-
w: p(
|
|
8161
|
-
h: p(
|
|
8158
|
+
}, x = (R, I) => {
|
|
8159
|
+
const te = ct.devicePixelRatio % 1 !== 0 ? 1 : 0, z = {
|
|
8160
|
+
w: p(R.w - I.w),
|
|
8161
|
+
h: p(R.h - I.h)
|
|
8162
8162
|
};
|
|
8163
8163
|
return {
|
|
8164
|
-
w:
|
|
8165
|
-
h:
|
|
8164
|
+
w: z.w > te ? z.w : 0,
|
|
8165
|
+
h: z.h > te ? z.h : 0
|
|
8166
8166
|
};
|
|
8167
|
-
}, L = (
|
|
8168
|
-
const te = (
|
|
8169
|
-
const ce =
|
|
8170
|
-
return !
|
|
8167
|
+
}, L = (R, I) => {
|
|
8168
|
+
const te = (z, K, ie, J) => {
|
|
8169
|
+
const ce = z === wn ? It : Ly(z), Z = Mi(z), ne = Mi(ie);
|
|
8170
|
+
return !K && !J ? It : Z && ne ? wn : Z ? K && J ? ce : K ? wn : It : K ? ce : ne && J ? wn : It;
|
|
8171
8171
|
};
|
|
8172
8172
|
return {
|
|
8173
|
-
x: te(
|
|
8174
|
-
y: te(
|
|
8173
|
+
x: te(I.x, R.x, I.y, R.y),
|
|
8174
|
+
y: te(I.y, R.y, I.x, R.x)
|
|
8175
8175
|
};
|
|
8176
|
-
}, D = (
|
|
8177
|
-
const
|
|
8178
|
-
d(te), d(st(
|
|
8179
|
-
}, [P, C] = gt(b, ue(Sa, r)), [
|
|
8180
|
-
i: (
|
|
8176
|
+
}, D = (R) => {
|
|
8177
|
+
const I = (z) => [wn, It, Bi].map(((K) => O(zs(K), z))), te = I(!0).concat(I()).join(" ");
|
|
8178
|
+
d(te), d(st(R).map(((z) => O(R[z], z === "x"))).join(" "), !0);
|
|
8179
|
+
}, [P, C] = gt(b, ue(Sa, r)), [T, A] = gt(b, ue(qr, r)), [Y, E] = gt(b), [N] = gt(_), [W, M] = gt(b), [k] = gt(_), [$] = gt({
|
|
8180
|
+
i: (R, I) => bo(R, I, Hr(ji(st(R), st(I)))),
|
|
8181
8181
|
o: {}
|
|
8182
|
-
}), [
|
|
8183
|
-
i: (
|
|
8182
|
+
}), [U, q] = gt({
|
|
8183
|
+
i: (R, I) => br(R.D, I.D) && br(R.M, I.M),
|
|
8184
8184
|
o: hf()
|
|
8185
|
-
}), j = qi(Ma), O = (
|
|
8186
|
-
return ({ zt:
|
|
8187
|
-
const { _t: ie, Ht: J, xt: ce, Ct: Z, ft: ne, Et:
|
|
8188
|
-
let be = C(
|
|
8185
|
+
}), j = qi(Ma), O = (R, I) => `${I ? oy : sy}${Uv(R)}`;
|
|
8186
|
+
return ({ zt: R, Qt: I, un: te, At: z }, { _n: K }) => {
|
|
8187
|
+
const { _t: ie, Ht: J, xt: ce, Ct: Z, ft: ne, Et: G } = I || {}, se = j && j.R(e, t, te, n, R), { X: le, Y: re, W: ye } = se || {}, [de, fe] = xy(R, n), [me, H] = R("overflow"), Q = Mi(me.x), X = Mi(me.y), he = ie || K || ce || Z || G || fe;
|
|
8188
|
+
let be = C(z), Fe = A(z), dt = E(z), Lt = M(z);
|
|
8189
8189
|
if (fe && f && d(bf, !de), he) {
|
|
8190
|
-
Fa(i, Gn, _r) &&
|
|
8191
|
-
const Ji = re && re(), [$n] = be = P(
|
|
8190
|
+
Fa(i, Gn, _r) && w(!0);
|
|
8191
|
+
const Ji = re && re(), [$n] = be = P(z), [yi] = Fe = T(z), bi = uf(r), ei = h && ey(m()), el = {
|
|
8192
8192
|
w: p(yi.w + $n.w),
|
|
8193
8193
|
h: p(yi.h + $n.h)
|
|
8194
8194
|
}, Xl = {
|
|
8195
8195
|
w: p((ei ? ei.w : bi.w + p(bi.w - yi.w)) + $n.w),
|
|
8196
8196
|
h: p((ei ? ei.h : bi.h + p(bi.h - yi.h)) + $n.h)
|
|
8197
8197
|
};
|
|
8198
|
-
Ji && Ji(), Lt =
|
|
8198
|
+
Ji && Ji(), Lt = W(Xl), dt = Y(x(el, Xl), z);
|
|
8199
8199
|
}
|
|
8200
|
-
const [Je, ze] = Lt, [We, et] = dt, [un, Rn] = Fe, [Ht, tt] = be, [Ae, Jn] =
|
|
8200
|
+
const [Je, ze] = Lt, [We, et] = dt, [un, Rn] = Fe, [Ht, tt] = be, [Ae, Jn] = N({
|
|
8201
8201
|
x: We.w > 0,
|
|
8202
8202
|
y: We.h > 0
|
|
8203
|
-
}), Rt = Q && X && (Ae.x || Ae.y) || Q && Ae.x && !Ae.y || X && Ae.y && !Ae.x, Ft =
|
|
8203
|
+
}), Rt = Q && X && (Ae.x || Ae.y) || Q && Ae.x && !Ae.y || X && Ae.y && !Ae.x, Ft = K || Z || G || tt || Rn || ze || et || H || fe || he || J && h, [dn] = R("update.flowDirectionStyles"), [Nn, Tn] = $(dn ? dn(r) : y(), z), gi = Z || ne || Tn || Jn || z, [vi, Pn] = gi ? U(S(Nn, !!dn), z) : q();
|
|
8204
8204
|
let Ut = L(Ae, me);
|
|
8205
|
-
|
|
8205
|
+
w(!1), Ft && (D(Ut), Ut = Fy(r, Ae), ye && le && (le(Ut, un, Ht), Ol(r, ye(Ut))));
|
|
8206
8206
|
const [Kl, Zl] = k(Ut);
|
|
8207
8207
|
return Ur(i, Gn, _r, Rt), Ur(l, $s, _r, Rt), ke(t, {
|
|
8208
8208
|
cn: Kl,
|
|
@@ -8261,44 +8261,44 @@ const Ff = (e, t, n) => {
|
|
|
8261
8261
|
}, { dt: r, gt: o, V: a, St: c } = t, { U: u, k: d } = sn(), m = !u && (d.x || d.y), f = [jy(t), By(t, l), Wy(t, l)];
|
|
8262
8262
|
return [n, (h) => {
|
|
8263
8263
|
const p = {}, v = m && yt(o), b = v && c();
|
|
8264
|
-
return Ee(f, ((
|
|
8265
|
-
ke(p,
|
|
8264
|
+
return Ee(f, ((_) => {
|
|
8265
|
+
ke(p, _(h, p) || {});
|
|
8266
8266
|
})), en(o, v), b && b(), a || en(r, 0), p;
|
|
8267
8267
|
}, l, t, i];
|
|
8268
8268
|
}, Hy = (e, t, n, i, l) => {
|
|
8269
8269
|
let r = !1;
|
|
8270
8270
|
const o = ku(t, {}), [a, c, u, d, m] = Vy(e), [f, h, p] = Ty(d, u, o, ((y) => {
|
|
8271
|
-
|
|
8272
|
-
})), [g, v, , b] = Ay(e, t, p, u, d, l),
|
|
8271
|
+
w({}, y);
|
|
8272
|
+
})), [g, v, , b] = Ay(e, t, p, u, d, l), _ = (y) => st(y).some(((S) => !!y[S])), w = (y, S) => {
|
|
8273
8273
|
if (n())
|
|
8274
8274
|
return !1;
|
|
8275
|
-
const { dn: x, At: L, It: D, pn: P } = y, C = x || {},
|
|
8276
|
-
zt: ku(t, C,
|
|
8275
|
+
const { dn: x, At: L, It: D, pn: P } = y, C = x || {}, T = !!L || !r, A = {
|
|
8276
|
+
zt: ku(t, C, T),
|
|
8277
8277
|
dn: C,
|
|
8278
|
-
At:
|
|
8278
|
+
At: T
|
|
8279
8279
|
};
|
|
8280
8280
|
if (P)
|
|
8281
|
-
return v(
|
|
8282
|
-
const
|
|
8281
|
+
return v(A), !1;
|
|
8282
|
+
const Y = S || h(ke({}, A, {
|
|
8283
8283
|
It: D
|
|
8284
|
-
})), E = c(ke({},
|
|
8284
|
+
})), E = c(ke({}, A, {
|
|
8285
8285
|
un: p,
|
|
8286
|
-
Qt:
|
|
8286
|
+
Qt: Y
|
|
8287
8287
|
}));
|
|
8288
|
-
v(ke({},
|
|
8289
|
-
Qt:
|
|
8288
|
+
v(ke({}, A, {
|
|
8289
|
+
Qt: Y,
|
|
8290
8290
|
Zt: E
|
|
8291
8291
|
}));
|
|
8292
|
-
const
|
|
8293
|
-
return r = !0,
|
|
8294
|
-
Qt:
|
|
8292
|
+
const N = _(Y), W = _(E), M = N || W || !ka(C) || T;
|
|
8293
|
+
return r = !0, M && i(y, {
|
|
8294
|
+
Qt: Y,
|
|
8295
8295
|
Zt: E
|
|
8296
|
-
}),
|
|
8296
|
+
}), M;
|
|
8297
8297
|
};
|
|
8298
8298
|
return [() => {
|
|
8299
8299
|
const { ln: y, gt: S, St: x } = d, L = yt(y), D = [f(), a(), g()], P = x();
|
|
8300
8300
|
return en(S, L), P(), ue(wt, D);
|
|
8301
|
-
},
|
|
8301
|
+
}, w, () => ({
|
|
8302
8302
|
vn: p,
|
|
8303
8303
|
gn: u
|
|
8304
8304
|
}), {
|
|
@@ -8314,90 +8314,90 @@ const Ff = (e, t, n) => {
|
|
|
8314
8314
|
if (t && !o) {
|
|
8315
8315
|
let a = !1;
|
|
8316
8316
|
const c = [], u = {}, d = (C) => {
|
|
8317
|
-
const
|
|
8318
|
-
return
|
|
8319
|
-
}, m = ke({}, i(), d(t)), [f, h, p] = Ps(), [g, v, b] = Ps(n),
|
|
8320
|
-
b(C,
|
|
8321
|
-
}, [
|
|
8322
|
-
const { _t: E, Ct:
|
|
8323
|
-
|
|
8317
|
+
const T = Qd(C), A = qi(ly);
|
|
8318
|
+
return A ? A(T, !0) : T;
|
|
8319
|
+
}, m = ke({}, i(), d(t)), [f, h, p] = Ps(), [g, v, b] = Ps(n), _ = (C, T) => {
|
|
8320
|
+
b(C, T), p(C, T);
|
|
8321
|
+
}, [w, y, S, x, L] = Hy(e, m, (() => a), (({ dn: C, At: T }, { Qt: A, Zt: Y }) => {
|
|
8322
|
+
const { _t: E, Ct: N, $t: W, xt: M, Ht: k, ft: $ } = A, { tn: U, nn: q, sn: j, en: O } = Y;
|
|
8323
|
+
_("updated", [P, {
|
|
8324
8324
|
updateHints: {
|
|
8325
8325
|
sizeChanged: !!E,
|
|
8326
|
-
directionChanged: !!
|
|
8327
|
-
heightIntrinsicChanged: !!
|
|
8328
|
-
overflowEdgeChanged: !!
|
|
8329
|
-
overflowAmountChanged: !!
|
|
8326
|
+
directionChanged: !!N,
|
|
8327
|
+
heightIntrinsicChanged: !!W,
|
|
8328
|
+
overflowEdgeChanged: !!U,
|
|
8329
|
+
overflowAmountChanged: !!q,
|
|
8330
8330
|
overflowStyleChanged: !!j,
|
|
8331
8331
|
scrollCoordinatesChanged: !!O,
|
|
8332
|
-
contentMutation: !!
|
|
8332
|
+
contentMutation: !!M,
|
|
8333
8333
|
hostMutation: !!k,
|
|
8334
8334
|
appear: !!$
|
|
8335
8335
|
},
|
|
8336
8336
|
changedOptions: C || {},
|
|
8337
|
-
force: !!
|
|
8337
|
+
force: !!T
|
|
8338
8338
|
}]);
|
|
8339
|
-
}), ((C) =>
|
|
8340
|
-
qy(r), wt(c), a = !0,
|
|
8339
|
+
}), ((C) => _("scroll", [P, C]))), D = (C) => {
|
|
8340
|
+
qy(r), wt(c), a = !0, _("destroyed", [P, C]), h(), v();
|
|
8341
8341
|
}, P = {
|
|
8342
|
-
options(C,
|
|
8342
|
+
options(C, T) {
|
|
8343
8343
|
if (C) {
|
|
8344
|
-
const
|
|
8345
|
-
ka(
|
|
8346
|
-
dn:
|
|
8344
|
+
const A = T ? i() : {}, Y = xf(m, ke(A, d(C)));
|
|
8345
|
+
ka(Y) || (ke(m, Y), y({
|
|
8346
|
+
dn: Y
|
|
8347
8347
|
}));
|
|
8348
8348
|
}
|
|
8349
8349
|
return ke({}, m);
|
|
8350
8350
|
},
|
|
8351
8351
|
on: g,
|
|
8352
|
-
off: (C,
|
|
8353
|
-
C &&
|
|
8352
|
+
off: (C, T) => {
|
|
8353
|
+
C && T && v(C, T);
|
|
8354
8354
|
},
|
|
8355
8355
|
state() {
|
|
8356
|
-
const { vn: C, gn:
|
|
8356
|
+
const { vn: C, gn: T } = S(), { B: A } = C, { Vt: Y, Rt: E, cn: N, j: W, rn: M, fn: k, Dt: $ } = T;
|
|
8357
8357
|
return ke({}, {
|
|
8358
|
-
overflowEdge:
|
|
8358
|
+
overflowEdge: Y,
|
|
8359
8359
|
overflowAmount: E,
|
|
8360
|
-
overflowStyle:
|
|
8361
|
-
hasOverflow:
|
|
8360
|
+
overflowStyle: N,
|
|
8361
|
+
hasOverflow: W,
|
|
8362
8362
|
scrollCoordinates: {
|
|
8363
8363
|
start: $.D,
|
|
8364
8364
|
end: $.M
|
|
8365
8365
|
},
|
|
8366
|
-
padding:
|
|
8366
|
+
padding: M,
|
|
8367
8367
|
paddingAbsolute: k,
|
|
8368
|
-
directionRTL:
|
|
8368
|
+
directionRTL: A,
|
|
8369
8369
|
destroyed: a
|
|
8370
8370
|
});
|
|
8371
8371
|
},
|
|
8372
8372
|
elements() {
|
|
8373
|
-
const { dt: C, vt:
|
|
8374
|
-
const { Mt: j, Ut: O, Lt:
|
|
8373
|
+
const { dt: C, vt: T, rn: A, L: Y, ht: E, gt: N, Kt: W } = x.hn, { jt: M, Jt: k } = x.bn, $ = (q) => {
|
|
8374
|
+
const { Mt: j, Ut: O, Lt: R } = q;
|
|
8375
8375
|
return {
|
|
8376
|
-
scrollbar:
|
|
8376
|
+
scrollbar: R,
|
|
8377
8377
|
track: O,
|
|
8378
8378
|
handle: j
|
|
8379
8379
|
};
|
|
8380
|
-
},
|
|
8381
|
-
const { Xt: j, Yt: O } =
|
|
8382
|
-
return ke({},
|
|
8380
|
+
}, U = (q) => {
|
|
8381
|
+
const { Xt: j, Yt: O } = q, R = $(j[0]);
|
|
8382
|
+
return ke({}, R, {
|
|
8383
8383
|
clone: () => {
|
|
8384
|
-
const
|
|
8384
|
+
const I = $(O());
|
|
8385
8385
|
return y({
|
|
8386
8386
|
pn: !0
|
|
8387
|
-
}),
|
|
8387
|
+
}), I;
|
|
8388
8388
|
}
|
|
8389
8389
|
});
|
|
8390
8390
|
};
|
|
8391
8391
|
return ke({}, {
|
|
8392
8392
|
target: C,
|
|
8393
|
-
host:
|
|
8394
|
-
padding:
|
|
8395
|
-
viewport:
|
|
8396
|
-
content: E ||
|
|
8397
|
-
scrollOffsetElement:
|
|
8398
|
-
scrollEventElement:
|
|
8399
|
-
scrollbarHorizontal:
|
|
8400
|
-
scrollbarVertical:
|
|
8393
|
+
host: T,
|
|
8394
|
+
padding: A || Y,
|
|
8395
|
+
viewport: Y,
|
|
8396
|
+
content: E || Y,
|
|
8397
|
+
scrollOffsetElement: N,
|
|
8398
|
+
scrollEventElement: W,
|
|
8399
|
+
scrollbarHorizontal: U(M),
|
|
8400
|
+
scrollbarVertical: U(k)
|
|
8401
8401
|
});
|
|
8402
8402
|
},
|
|
8403
8403
|
update: (C) => y({
|
|
@@ -8407,7 +8407,7 @@ const Ff = (e, t, n) => {
|
|
|
8407
8407
|
destroy: ue(D, !1),
|
|
8408
8408
|
plugin: (C) => u[st(C)[0]]
|
|
8409
8409
|
};
|
|
8410
|
-
return Pe(c, [L]), Uy(r, P), vf(pf, zt, [P, f, u]), $y(x.hn.bt, !l && e.cancel) ? (D(!0), P) : (Pe(c,
|
|
8410
|
+
return Pe(c, [L]), Uy(r, P), vf(pf, zt, [P, f, u]), $y(x.hn.bt, !l && e.cancel) ? (D(!0), P) : (Pe(c, w()), _("initialized", [P]), P.update(), P);
|
|
8411
8411
|
}
|
|
8412
8412
|
return o;
|
|
8413
8413
|
};
|
|
@@ -8578,8 +8578,8 @@ var eb = /* @__PURE__ */ (function() {
|
|
|
8578
8578
|
useFixed: r.useFixed || !1,
|
|
8579
8579
|
useGetBoundingClientRect: r.useGetBoundingClientRect || !1,
|
|
8580
8580
|
verticalPosition: r.verticalPosition || "top",
|
|
8581
|
-
applyStyle: r.applyStyle || function(b,
|
|
8582
|
-
return l.applyStyle(b,
|
|
8581
|
+
applyStyle: r.applyStyle || function(b, _) {
|
|
8582
|
+
return l.applyStyle(b, _);
|
|
8583
8583
|
}
|
|
8584
8584
|
}, this.props.positionVal = this.definePosition() || "fixed", this.instances = [];
|
|
8585
8585
|
var o = this.props, a = o.positionVal, c = o.verticalPosition, u = o.noStyles, d = o.stickyBitStickyOffset, m = c === "top" && !u ? d + "px" : "", f = a !== "fixed" ? a : "";
|
|
@@ -8640,37 +8640,37 @@ var eb = /* @__PURE__ */ (function() {
|
|
|
8640
8640
|
var c = a.indexOf(l);
|
|
8641
8641
|
c !== -1 && a.splice(c, 1), o.className = a.join(" ");
|
|
8642
8642
|
}, t.manageState = function(i) {
|
|
8643
|
-
var l = this, r = i, o = r.props, a = r.state, c = r.stateChange, u = r.stickyStart, d = r.stickyChange, m = r.stickyStop, f = o.positionVal, h = o.scrollEl, p = o.stickyClass, g = o.stickyChangeClass, v = o.stuckClass, b = o.verticalPosition,
|
|
8643
|
+
var l = this, r = i, o = r.props, a = r.state, c = r.stateChange, u = r.stickyStart, d = r.stickyChange, m = r.stickyStop, f = o.positionVal, h = o.scrollEl, p = o.stickyClass, g = o.stickyChangeClass, v = o.stuckClass, b = o.verticalPosition, _ = b !== "bottom", w = o.applyStyle, y = o.noStyles, S = function(E) {
|
|
8644
8644
|
E();
|
|
8645
|
-
}, x = this.isWin && (window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame) || S, L = this.isWin ? window.scrollY || window.pageYOffset : h.scrollTop, D = L > u && L < m && (a === "default" || a === "stuck"), P =
|
|
8645
|
+
}, x = this.isWin && (window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || window.msRequestAnimationFrame) || S, L = this.isWin ? window.scrollY || window.pageYOffset : h.scrollTop, D = L > u && L < m && (a === "default" || a === "stuck"), P = _ && L <= u && (a === "sticky" || a === "stuck"), C = L >= m && a === "sticky";
|
|
8646
8646
|
D ? r.state = "sticky" : P ? r.state = "default" : C && (r.state = "stuck");
|
|
8647
|
-
var
|
|
8648
|
-
|
|
8649
|
-
var
|
|
8647
|
+
var T = L >= d && L <= m, A = L < d / 2 || L > m;
|
|
8648
|
+
A ? r.stateChange = "default" : T && (r.stateChange = "sticky"), !(a === r.state && c === r.stateChange) && x(function() {
|
|
8649
|
+
var Y, E, N, W, M, k, $ = {
|
|
8650
8650
|
sticky: {
|
|
8651
|
-
styles: (
|
|
8651
|
+
styles: (Y = {
|
|
8652
8652
|
position: f,
|
|
8653
8653
|
top: "",
|
|
8654
8654
|
bottom: ""
|
|
8655
|
-
},
|
|
8655
|
+
}, Y[b] = o.stickyBitStickyOffset + "px", Y),
|
|
8656
8656
|
classes: (E = {}, E[p] = !0, E)
|
|
8657
8657
|
},
|
|
8658
8658
|
default: {
|
|
8659
|
-
styles: (
|
|
8659
|
+
styles: (N = {}, N[b] = "", N),
|
|
8660
8660
|
classes: {}
|
|
8661
8661
|
},
|
|
8662
8662
|
stuck: {
|
|
8663
|
-
styles: As((
|
|
8663
|
+
styles: As((W = {}, W[b] = "", W), f === "fixed" && !y || !l.isWin ? {
|
|
8664
8664
|
position: "absolute",
|
|
8665
8665
|
top: "",
|
|
8666
8666
|
bottom: "0"
|
|
8667
8667
|
} : {}),
|
|
8668
|
-
classes: (
|
|
8668
|
+
classes: (M = {}, M[v] = !0, M)
|
|
8669
8669
|
}
|
|
8670
8670
|
};
|
|
8671
8671
|
f === "fixed" && ($.default.styles.position = "");
|
|
8672
|
-
var
|
|
8673
|
-
|
|
8672
|
+
var U = $[r.state];
|
|
8673
|
+
U.classes = (k = {}, k[v] = !!U.classes[v], k[p] = !!U.classes[p], k[g] = T, k), w(U, i);
|
|
8674
8674
|
});
|
|
8675
8675
|
}, t.applyStyle = function(i, l) {
|
|
8676
8676
|
var r = i.styles, o = i.classes, a = l, c = a.el, u = a.props, d = c.style, m = u.noStyles, f = c.className.split(" ");
|
|
@@ -8757,10 +8757,15 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
|
|
|
8757
8757
|
if (!o.current)
|
|
8758
8758
|
return;
|
|
8759
8759
|
const g = Array.from(d.querySelectorAll('[data-sticky-layout-sticky="true"]'));
|
|
8760
|
-
let v = r.stickyAutoOffsetPadding, b = 0;
|
|
8761
|
-
for (const w of g)
|
|
8762
|
-
w.compareDocumentPosition(o.current) & Node.DOCUMENT_POSITION_FOLLOWING
|
|
8763
|
-
|
|
8760
|
+
let v = r.stickyAutoOffsetPadding, b = 0, _ = 0;
|
|
8761
|
+
for (const w of g) {
|
|
8762
|
+
if (!!!(w.compareDocumentPosition(o.current) & Node.DOCUMENT_POSITION_FOLLOWING))
|
|
8763
|
+
continue;
|
|
8764
|
+
v += w.getBoundingClientRect().height, b += 1;
|
|
8765
|
+
const x = Number(w.dataset.stickyLayoutManualTopOffset || 0);
|
|
8766
|
+
Number.isNaN(x) || (_ = Math.max(_, x));
|
|
8767
|
+
}
|
|
8768
|
+
v += r.stickyAutoOffsetGap * b, v += _, c((w) => w === v ? w : v);
|
|
8764
8769
|
}, f = new ResizeObserver(m), h = () => {
|
|
8765
8770
|
f.disconnect(), Array.from(d.querySelectorAll('[data-sticky-layout-sticky="true"]')).forEach((v) => f.observe(v));
|
|
8766
8771
|
}, p = new MutationObserver(() => {
|
|
@@ -8802,52 +8807,52 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
|
|
|
8802
8807
|
scrollEl: v,
|
|
8803
8808
|
...b
|
|
8804
8809
|
}) => {
|
|
8805
|
-
const
|
|
8810
|
+
const _ = s.useRef(null), w = s.useContext(Ra), [y, S] = s.useState(n ?? 0), x = n ?? 0, L = s.useMemo(() => r, [r]), D = L.includes("top"), P = L.includes("bottom"), C = L.includes("left"), T = L.includes("right"), Y = D && !P || !D && P, E = s.useMemo(() => P && !D ? "bottom" : D && !P ? "top" : d, [P, D, d]);
|
|
8806
8811
|
s.useEffect(() => {
|
|
8807
8812
|
if (!i) {
|
|
8808
8813
|
S(n ?? 0);
|
|
8809
8814
|
return;
|
|
8810
8815
|
}
|
|
8811
|
-
if (!
|
|
8816
|
+
if (!_.current || !w?.layoutRef.current)
|
|
8812
8817
|
return;
|
|
8813
|
-
const
|
|
8814
|
-
if (!
|
|
8818
|
+
const M = w.layoutRef.current, k = () => {
|
|
8819
|
+
if (!_.current)
|
|
8815
8820
|
return;
|
|
8816
|
-
const
|
|
8817
|
-
let
|
|
8818
|
-
for (const
|
|
8819
|
-
if (
|
|
8821
|
+
const j = Array.from(M.querySelectorAll('[data-sticky-layout-sticky="true"]'));
|
|
8822
|
+
let O = w?.stickyAutoOffsetPadding || 0, R = 0;
|
|
8823
|
+
for (const I of j) {
|
|
8824
|
+
if (I === _.current)
|
|
8820
8825
|
break;
|
|
8821
|
-
|
|
8826
|
+
O += I.getBoundingClientRect().height, R += 1;
|
|
8822
8827
|
}
|
|
8823
|
-
|
|
8824
|
-
},
|
|
8825
|
-
|
|
8826
|
-
}),
|
|
8827
|
-
|
|
8828
|
-
},
|
|
8829
|
-
|
|
8828
|
+
O += (w?.stickyAutoOffsetGap || 0) * R, S((I) => I === O ? I : O);
|
|
8829
|
+
}, $ = new ResizeObserver(() => {
|
|
8830
|
+
k();
|
|
8831
|
+
}), U = () => {
|
|
8832
|
+
$.disconnect(), Array.from(M.querySelectorAll('[data-sticky-layout-sticky="true"]')).forEach((O) => $.observe(O));
|
|
8833
|
+
}, q = new MutationObserver(() => {
|
|
8834
|
+
U(), k();
|
|
8830
8835
|
});
|
|
8831
|
-
return
|
|
8836
|
+
return U(), k(), q.observe(M, {
|
|
8832
8837
|
childList: !0,
|
|
8833
8838
|
subtree: !0
|
|
8834
|
-
}), window.addEventListener("resize",
|
|
8835
|
-
window.removeEventListener("resize",
|
|
8839
|
+
}), window.addEventListener("resize", k), () => {
|
|
8840
|
+
window.removeEventListener("resize", k), q.disconnect(), $.disconnect();
|
|
8836
8841
|
};
|
|
8837
|
-
}, [i,
|
|
8838
|
-
if (!(C ||
|
|
8839
|
-
const
|
|
8840
|
-
|
|
8842
|
+
}, [i, w, n]), s.useEffect(() => {
|
|
8843
|
+
if (!(C || T) || !_.current || !w?.scrollViewport) return;
|
|
8844
|
+
const M = _.current, k = w.scrollViewport, $ = () => {
|
|
8845
|
+
M.style.setProperty("--sticky-layout-viewport-width", `${k.clientWidth}px`);
|
|
8841
8846
|
};
|
|
8842
|
-
|
|
8843
|
-
const
|
|
8844
|
-
return
|
|
8845
|
-
|
|
8847
|
+
$();
|
|
8848
|
+
const U = new ResizeObserver($);
|
|
8849
|
+
return U.observe(k), () => {
|
|
8850
|
+
U.disconnect(), M.style.removeProperty("--sticky-layout-viewport-width");
|
|
8846
8851
|
};
|
|
8847
|
-
}, [
|
|
8848
|
-
if (!
|
|
8852
|
+
}, [w?.scrollViewport, C, T]), s.useEffect(() => {
|
|
8853
|
+
if (!Y || !_.current)
|
|
8849
8854
|
return;
|
|
8850
|
-
const
|
|
8855
|
+
const M = tb(_.current, {
|
|
8851
8856
|
stickyBitStickyOffset: y,
|
|
8852
8857
|
useStickyClasses: o,
|
|
8853
8858
|
noStyles: a,
|
|
@@ -8859,20 +8864,20 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
|
|
|
8859
8864
|
stuckClass: h,
|
|
8860
8865
|
stickyChangeClass: p,
|
|
8861
8866
|
customStickyChangeNumber: g,
|
|
8862
|
-
scrollEl: v ||
|
|
8863
|
-
}),
|
|
8864
|
-
return window.addEventListener("resize",
|
|
8865
|
-
window.removeEventListener("resize",
|
|
8867
|
+
scrollEl: v || w?.scrollViewport || void 0
|
|
8868
|
+
}), k = () => M.update();
|
|
8869
|
+
return window.addEventListener("resize", k), () => {
|
|
8870
|
+
window.removeEventListener("resize", k), M.cleanup();
|
|
8866
8871
|
};
|
|
8867
8872
|
}, [
|
|
8868
|
-
|
|
8873
|
+
w?.scrollViewport,
|
|
8869
8874
|
g,
|
|
8870
8875
|
a,
|
|
8871
8876
|
m,
|
|
8872
8877
|
y,
|
|
8873
8878
|
E,
|
|
8874
8879
|
v,
|
|
8875
|
-
|
|
8880
|
+
Y,
|
|
8876
8881
|
p,
|
|
8877
8882
|
f,
|
|
8878
8883
|
h,
|
|
@@ -8880,14 +8885,25 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
|
|
|
8880
8885
|
u,
|
|
8881
8886
|
o
|
|
8882
8887
|
]);
|
|
8883
|
-
const
|
|
8884
|
-
const
|
|
8888
|
+
const N = s.useMemo(() => {
|
|
8889
|
+
const M = {
|
|
8885
8890
|
...b.style || {}
|
|
8886
|
-
},
|
|
8887
|
-
if (typeof l < "u" && (
|
|
8888
|
-
return
|
|
8889
|
-
}, [P, C,
|
|
8890
|
-
return /* @__PURE__ */ s.createElement(
|
|
8891
|
+
}, $ = M.width === "100%";
|
|
8892
|
+
if (typeof l < "u" && (M.zIndex = l), Y || (M.position = "sticky"), D && (M.top = y), P && (M.bottom = y), C && (M.left = x, $ && (M.width = "var(--sticky-layout-viewport-width)")), T && (M.right = x, $ && (M.width = "var(--sticky-layout-viewport-width)")), Object.keys(M).length !== 0)
|
|
8893
|
+
return M;
|
|
8894
|
+
}, [P, C, T, D, x, b.style, y, Y, l]), W = !i && D && !P ? y : 0;
|
|
8895
|
+
return /* @__PURE__ */ s.createElement(
|
|
8896
|
+
"div",
|
|
8897
|
+
{
|
|
8898
|
+
ref: _,
|
|
8899
|
+
"data-sticky-layout-sticky": "true",
|
|
8900
|
+
"data-sticky-layout-manual-top-offset": W,
|
|
8901
|
+
className: oe(Vi.block, Vi.sticky, e),
|
|
8902
|
+
...b,
|
|
8903
|
+
style: N
|
|
8904
|
+
},
|
|
8905
|
+
t
|
|
8906
|
+
);
|
|
8891
8907
|
}, jS = Object.assign(ob, {
|
|
8892
8908
|
Static: sb,
|
|
8893
8909
|
Sticky: ab
|
|
@@ -8911,8 +8927,8 @@ const nb = "_scrollbar_5w2f3_1", ib = "_layout_5w2f3_5", lb = "_block_5w2f3_13",
|
|
|
8911
8927
|
middleware: [
|
|
8912
8928
|
da({ padding: 10 }),
|
|
8913
8929
|
Rd({
|
|
8914
|
-
apply({ rects: b, elements:
|
|
8915
|
-
Object.assign(
|
|
8930
|
+
apply({ rects: b, elements: _ }) {
|
|
8931
|
+
Object.assign(_.floating.style, {
|
|
8916
8932
|
top: "var(--numbers-8)",
|
|
8917
8933
|
width: `${b.reference.width}px`,
|
|
8918
8934
|
maxHeight: "var(--numbers-288)"
|
|
@@ -9798,7 +9814,7 @@ const Rf = F.createContext(null), Nf = () => {
|
|
|
9798
9814
|
})
|
|
9799
9815
|
});
|
|
9800
9816
|
var Tf;
|
|
9801
|
-
function
|
|
9817
|
+
function B() {
|
|
9802
9818
|
return Tf.apply(null, arguments);
|
|
9803
9819
|
}
|
|
9804
9820
|
function zw(e) {
|
|
@@ -9890,7 +9906,7 @@ function xo(e) {
|
|
|
9890
9906
|
var t = an(NaN);
|
|
9891
9907
|
return e != null ? Vn(pe(t), e) : pe(t).userInvalidated = !0, t;
|
|
9892
9908
|
}
|
|
9893
|
-
var Fu =
|
|
9909
|
+
var Fu = B.momentProperties = [], ls = !1;
|
|
9894
9910
|
function $a(e, t) {
|
|
9895
9911
|
var n, i, l, r = Fu.length;
|
|
9896
9912
|
if (rt(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), rt(t._i) || (e._i = t._i), rt(t._f) || (e._f = t._f), rt(t._l) || (e._l = t._l), rt(t._strict) || (e._strict = t._strict), rt(t._tzm) || (e._tzm = t._tzm), rt(t._isUTC) || (e._isUTC = t._isUTC), rt(t._offset) || (e._offset = t._offset), rt(t._pf) || (e._pf = pe(t)), rt(t._locale) || (e._locale = t._locale), r > 0)
|
|
@@ -9899,18 +9915,18 @@ function $a(e, t) {
|
|
|
9899
9915
|
return e;
|
|
9900
9916
|
}
|
|
9901
9917
|
function Ul(e) {
|
|
9902
|
-
$a(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), ls === !1 && (ls = !0,
|
|
9918
|
+
$a(this, e), this._d = new Date(e._d != null ? e._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), ls === !1 && (ls = !0, B.updateOffset(this), ls = !1);
|
|
9903
9919
|
}
|
|
9904
9920
|
function Bt(e) {
|
|
9905
9921
|
return e instanceof Ul || e != null && e._isAMomentObject != null;
|
|
9906
9922
|
}
|
|
9907
9923
|
function $f(e) {
|
|
9908
|
-
|
|
9924
|
+
B.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + e);
|
|
9909
9925
|
}
|
|
9910
9926
|
function Mt(e, t) {
|
|
9911
9927
|
var n = !0;
|
|
9912
9928
|
return Vn(function() {
|
|
9913
|
-
if (
|
|
9929
|
+
if (B.deprecationHandler != null && B.deprecationHandler(null, e), n) {
|
|
9914
9930
|
var i = [], l, r, o, a = arguments.length;
|
|
9915
9931
|
for (r = 0; r < a; r++) {
|
|
9916
9932
|
if (l = "", typeof arguments[r] == "object") {
|
|
@@ -9934,10 +9950,10 @@ Arguments: ` + Array.prototype.slice.call(i).join("") + `
|
|
|
9934
9950
|
}
|
|
9935
9951
|
var Eu = {};
|
|
9936
9952
|
function If(e, t) {
|
|
9937
|
-
|
|
9953
|
+
B.deprecationHandler != null && B.deprecationHandler(e, t), Eu[e] || ($f(t), Eu[e] = !0);
|
|
9938
9954
|
}
|
|
9939
|
-
|
|
9940
|
-
|
|
9955
|
+
B.suppressDeprecationWarnings = !1;
|
|
9956
|
+
B.deprecationHandler = null;
|
|
9941
9957
|
function cn(e) {
|
|
9942
9958
|
return typeof Function < "u" && e instanceof Function || Object.prototype.toString.call(e) === "[object Function]";
|
|
9943
9959
|
}
|
|
@@ -10226,10 +10242,10 @@ ee("YYYYY", Eo, Lo);
|
|
|
10226
10242
|
ee("YYYYYY", Eo, Lo);
|
|
10227
10243
|
Se(["YYYYY", "YYYYYY"], Qe);
|
|
10228
10244
|
Se("YYYY", function(e, t) {
|
|
10229
|
-
t[Qe] = e.length === 2 ?
|
|
10245
|
+
t[Qe] = e.length === 2 ? B.parseTwoDigitYear(e) : we(e);
|
|
10230
10246
|
});
|
|
10231
10247
|
Se("YY", function(e, t) {
|
|
10232
|
-
t[Qe] =
|
|
10248
|
+
t[Qe] = B.parseTwoDigitYear(e);
|
|
10233
10249
|
});
|
|
10234
10250
|
Se("Y", function(e, t) {
|
|
10235
10251
|
t[Qe] = parseInt(e, 10);
|
|
@@ -10237,7 +10253,7 @@ Se("Y", function(e, t) {
|
|
|
10237
10253
|
function bl(e) {
|
|
10238
10254
|
return Oo(e) ? 366 : 365;
|
|
10239
10255
|
}
|
|
10240
|
-
|
|
10256
|
+
B.parseTwoDigitYear = function(e) {
|
|
10241
10257
|
return we(e) + (we(e) > 68 ? 1900 : 2e3);
|
|
10242
10258
|
};
|
|
10243
10259
|
var Wf = Xi("FullYear", !0);
|
|
@@ -10246,7 +10262,7 @@ function u_() {
|
|
|
10246
10262
|
}
|
|
10247
10263
|
function Xi(e, t) {
|
|
10248
10264
|
return function(n) {
|
|
10249
|
-
return n != null ? (Vf(this, e, n),
|
|
10265
|
+
return n != null ? (Vf(this, e, n), B.updateOffset(this, t), this) : Ml(this, e);
|
|
10250
10266
|
};
|
|
10251
10267
|
}
|
|
10252
10268
|
function Ml(e, t) {
|
|
@@ -10406,7 +10422,7 @@ function qf(e, t) {
|
|
|
10406
10422
|
return i = i < 29 ? i : Math.min(i, Wa(e.year(), n)), e._isUTC ? e._d.setUTCMonth(n, i) : e._d.setMonth(n, i), e;
|
|
10407
10423
|
}
|
|
10408
10424
|
function Gf(e) {
|
|
10409
|
-
return e != null ? (qf(this, e),
|
|
10425
|
+
return e != null ? (qf(this, e), B.updateOffset(this, !0), this) : Ml(this, "Month");
|
|
10410
10426
|
}
|
|
10411
10427
|
function __() {
|
|
10412
10428
|
return Wa(this.year(), this.month());
|
|
@@ -10962,9 +10978,9 @@ function gk(e) {
|
|
|
10962
10978
|
delete e._isValid;
|
|
10963
10979
|
else
|
|
10964
10980
|
return;
|
|
10965
|
-
e._strict ? e._isValid = !1 :
|
|
10981
|
+
e._strict ? e._isValid = !1 : B.createFromInputFallback(e);
|
|
10966
10982
|
}
|
|
10967
|
-
|
|
10983
|
+
B.createFromInputFallback = Mt(
|
|
10968
10984
|
"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
|
|
10969
10985
|
function(e) {
|
|
10970
10986
|
e._d = /* @__PURE__ */ new Date(e._i + (e._useUTC ? " UTC" : ""));
|
|
@@ -10974,7 +10990,7 @@ function Fi(e, t, n) {
|
|
|
10974
10990
|
return e ?? t ?? n;
|
|
10975
10991
|
}
|
|
10976
10992
|
function vk(e) {
|
|
10977
|
-
var t = new Date(
|
|
10993
|
+
var t = new Date(B.now());
|
|
10978
10994
|
return e._useUTC ? [
|
|
10979
10995
|
t.getUTCFullYear(),
|
|
10980
10996
|
t.getUTCMonth(),
|
|
@@ -11002,16 +11018,16 @@ function yk(e) {
|
|
|
11002
11018
|
Rl(Re(), 1, 4).year
|
|
11003
11019
|
), i = Fi(t.W, 1), l = Fi(t.E, 1), (l < 1 || l > 7) && (c = !0)) : (r = e._locale._week.dow, o = e._locale._week.doy, u = Rl(Re(), r, o), n = Fi(t.gg, e._a[Qe], u.year), i = Fi(t.w, u.week), t.d != null ? (l = t.d, (l < 0 || l > 6) && (c = !0)) : t.e != null ? (l = t.e + r, (t.e < 0 || t.e > 6) && (c = !0)) : l = r), i < 1 || i > En(n, r, o) ? pe(e)._overflowWeeks = !0 : c != null ? pe(e)._overflowWeekday = !0 : (a = Zf(n, i, l, r, o), e._a[Qe] = a.year, e._dayOfYear = a.dayOfYear);
|
|
11004
11020
|
}
|
|
11005
|
-
|
|
11021
|
+
B.ISO_8601 = function() {
|
|
11006
11022
|
};
|
|
11007
|
-
|
|
11023
|
+
B.RFC_2822 = function() {
|
|
11008
11024
|
};
|
|
11009
11025
|
function Za(e) {
|
|
11010
|
-
if (e._f ===
|
|
11026
|
+
if (e._f === B.ISO_8601) {
|
|
11011
11027
|
tm(e);
|
|
11012
11028
|
return;
|
|
11013
11029
|
}
|
|
11014
|
-
if (e._f ===
|
|
11030
|
+
if (e._f === B.RFC_2822) {
|
|
11015
11031
|
nm(e);
|
|
11016
11032
|
return;
|
|
11017
11033
|
}
|
|
@@ -11062,9 +11078,9 @@ function im(e) {
|
|
|
11062
11078
|
}
|
|
11063
11079
|
function xk(e) {
|
|
11064
11080
|
var t = e._i;
|
|
11065
|
-
rt(t) ? e._d = new Date(
|
|
11081
|
+
rt(t) ? e._d = new Date(B.now()) : Hl(t) ? e._d = new Date(t.valueOf()) : typeof t == "string" ? gk(e) : jt(t) ? (e._a = Pf(t.slice(0), function(n) {
|
|
11066
11082
|
return parseInt(n, 10);
|
|
11067
|
-
}), Ka(e)) : di(t) ? _k(e) : Cn(t) ? e._d = new Date(t) :
|
|
11083
|
+
}), Ka(e)) : di(t) ? _k(e) : Cn(t) ? e._d = new Date(t) : B.createFromInputFallback(e);
|
|
11068
11084
|
}
|
|
11069
11085
|
function lm(e, t, n, i, l) {
|
|
11070
11086
|
var r = {};
|
|
@@ -11172,12 +11188,12 @@ function Xa(e, t) {
|
|
|
11172
11188
|
}
|
|
11173
11189
|
function Qa(e, t) {
|
|
11174
11190
|
var n, i;
|
|
11175
|
-
return t._isUTC ? (n = t.clone(), i = (Bt(e) || Hl(e) ? e.valueOf() : Re(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + i),
|
|
11191
|
+
return t._isUTC ? (n = t.clone(), i = (Bt(e) || Hl(e) ? e.valueOf() : Re(e).valueOf()) - n.valueOf(), n._d.setTime(n._d.valueOf() + i), B.updateOffset(n, !1), n) : Re(e).local();
|
|
11176
11192
|
}
|
|
11177
11193
|
function Gs(e) {
|
|
11178
11194
|
return -Math.round(e._d.getTimezoneOffset());
|
|
11179
11195
|
}
|
|
11180
|
-
|
|
11196
|
+
B.updateOffset = function() {
|
|
11181
11197
|
};
|
|
11182
11198
|
function Tk(e, t, n) {
|
|
11183
11199
|
var i = this._offset || 0, l;
|
|
@@ -11193,7 +11209,7 @@ function Tk(e, t, n) {
|
|
|
11193
11209
|
Vt(e - i, "m"),
|
|
11194
11210
|
1,
|
|
11195
11211
|
!1
|
|
11196
|
-
) : this._changeInProgress || (this._changeInProgress = !0,
|
|
11212
|
+
) : this._changeInProgress || (this._changeInProgress = !0, B.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
11197
11213
|
} else
|
|
11198
11214
|
return this._isUTC ? i : Gs(this);
|
|
11199
11215
|
}
|
|
@@ -11289,7 +11305,7 @@ function am(e, t) {
|
|
|
11289
11305
|
}
|
|
11290
11306
|
function cm(e, t, n, i) {
|
|
11291
11307
|
var l = t._milliseconds, r = qs(t._days), o = qs(t._months);
|
|
11292
|
-
e.isValid() && (i = i ?? !0, o && qf(e, Ml(e, "Month") + o * n), r && Vf(e, "Date", Ml(e, "Date") + r * n), l && e._d.setTime(e._d.valueOf() + l * n), i &&
|
|
11308
|
+
e.isValid() && (i = i ?? !0, o && qf(e, Ml(e, "Month") + o * n), r && Vf(e, "Date", Ml(e, "Date") + r * n), l && e._d.setTime(e._d.valueOf() + l * n), i && B.updateOffset(e, r || o));
|
|
11293
11309
|
}
|
|
11294
11310
|
var qk = am(1, "add"), Gk = am(-1, "subtract");
|
|
11295
11311
|
function um(e) {
|
|
@@ -11354,7 +11370,7 @@ function Jk(e, t) {
|
|
|
11354
11370
|
}
|
|
11355
11371
|
function ex(e, t) {
|
|
11356
11372
|
arguments.length === 1 && (arguments[0] ? Kk(arguments[0]) ? (e = arguments[0], t = void 0) : Qk(arguments[0]) && (t = arguments[0], e = void 0) : (e = void 0, t = void 0));
|
|
11357
|
-
var n = e || Re(), i = Qa(n, this).startOf("day"), l =
|
|
11373
|
+
var n = e || Re(), i = Qa(n, this).startOf("day"), l = B.calendarFormat(this, i) || "sameElse", r = t && (cn(t[l]) ? t[l].call(this, n) : t[l]);
|
|
11358
11374
|
return this.format(
|
|
11359
11375
|
r || this.localeData().calendar(l, this, Re(n))
|
|
11360
11376
|
);
|
|
@@ -11431,8 +11447,8 @@ function Lr(e, t) {
|
|
|
11431
11447
|
var n = (t.year() - e.year()) * 12 + (t.month() - e.month()), i = e.clone().add(n, "months"), l, r;
|
|
11432
11448
|
return t - i < 0 ? (l = e.clone().add(n - 1, "months"), r = (t - i) / (i - l)) : (l = e.clone().add(n + 1, "months"), r = (t - i) / (l - i)), -(n + r) || 0;
|
|
11433
11449
|
}
|
|
11434
|
-
|
|
11435
|
-
|
|
11450
|
+
B.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
11451
|
+
B.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
11436
11452
|
function cx() {
|
|
11437
11453
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
11438
11454
|
}
|
|
@@ -11455,7 +11471,7 @@ function dx() {
|
|
|
11455
11471
|
return this.isLocal() || (e = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", t = "Z"), n = "[" + e + '("]', i = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", l = "-MM-DD[T]HH:mm:ss.SSS", r = t + '[")]', this.format(n + i + l + r);
|
|
11456
11472
|
}
|
|
11457
11473
|
function fx(e) {
|
|
11458
|
-
e || (e = this.isUtc() ?
|
|
11474
|
+
e || (e = this.isUtc() ? B.defaultFormatUtc : B.defaultFormat);
|
|
11459
11475
|
var t = kr(this, e);
|
|
11460
11476
|
return this.localeData().postformat(t);
|
|
11461
11477
|
}
|
|
@@ -11543,7 +11559,7 @@ function vx(e) {
|
|
|
11543
11559
|
t = this._d.valueOf(), t -= Ai(t, Zr);
|
|
11544
11560
|
break;
|
|
11545
11561
|
}
|
|
11546
|
-
return this._d.setTime(t),
|
|
11562
|
+
return this._d.setTime(t), B.updateOffset(this, !0), this;
|
|
11547
11563
|
}
|
|
11548
11564
|
function yx(e) {
|
|
11549
11565
|
var t, n;
|
|
@@ -11594,7 +11610,7 @@ function yx(e) {
|
|
|
11594
11610
|
t = this._d.valueOf(), t += Zr - Ai(t, Zr) - 1;
|
|
11595
11611
|
break;
|
|
11596
11612
|
}
|
|
11597
|
-
return this._d.setTime(t),
|
|
11613
|
+
return this._d.setTime(t), B.updateOffset(this, !0), this;
|
|
11598
11614
|
}
|
|
11599
11615
|
function bx() {
|
|
11600
11616
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
@@ -11684,12 +11700,12 @@ Se(["yo"], function(e, t, n, i) {
|
|
|
11684
11700
|
function Ox(e, t) {
|
|
11685
11701
|
var n, i, l, r = this._eras || On("en")._eras;
|
|
11686
11702
|
for (n = 0, i = r.length; n < i; ++n)
|
|
11687
|
-
switch (typeof r[n].since === "string" && (l =
|
|
11703
|
+
switch (typeof r[n].since === "string" && (l = B(r[n].since).startOf("day"), r[n].since = l.valueOf()), typeof r[n].until) {
|
|
11688
11704
|
case "undefined":
|
|
11689
11705
|
r[n].until = 1 / 0;
|
|
11690
11706
|
break;
|
|
11691
11707
|
case "string":
|
|
11692
|
-
l =
|
|
11708
|
+
l = B(r[n].until).startOf("day").valueOf(), r[n].until = l.valueOf();
|
|
11693
11709
|
break;
|
|
11694
11710
|
}
|
|
11695
11711
|
return r;
|
|
@@ -11719,7 +11735,7 @@ function Mx(e, t, n) {
|
|
|
11719
11735
|
}
|
|
11720
11736
|
function Dx(e, t) {
|
|
11721
11737
|
var n = e.since <= e.until ? 1 : -1;
|
|
11722
|
-
return t === void 0 ?
|
|
11738
|
+
return t === void 0 ? B(e.since).year() : B(e.since).year() + (t - e.offset) * n;
|
|
11723
11739
|
}
|
|
11724
11740
|
function Rx() {
|
|
11725
11741
|
var e, t, n, i = this.localeData().eras();
|
|
@@ -11746,7 +11762,7 @@ function Px() {
|
|
|
11746
11762
|
var e, t, n, i, l = this.localeData().eras();
|
|
11747
11763
|
for (e = 0, t = l.length; e < t; ++e)
|
|
11748
11764
|
if (n = l[e].since <= l[e].until ? 1 : -1, i = this.clone().startOf("day").valueOf(), l[e].since <= i && i <= l[e].until || l[e].until <= i && i <= l[e].since)
|
|
11749
|
-
return (this.year() -
|
|
11765
|
+
return (this.year() - B(l[e].since).year()) * n + l[e].offset;
|
|
11750
11766
|
return this.year();
|
|
11751
11767
|
}
|
|
11752
11768
|
function $x(e) {
|
|
@@ -11807,7 +11823,7 @@ Gl(
|
|
|
11807
11823
|
}
|
|
11808
11824
|
);
|
|
11809
11825
|
Gl(["gg", "GG"], function(e, t, n, i) {
|
|
11810
|
-
t[i] =
|
|
11826
|
+
t[i] = B.parseTwoDigitYear(e);
|
|
11811
11827
|
});
|
|
11812
11828
|
function Bx(e) {
|
|
11813
11829
|
return vm.call(
|
|
@@ -12140,11 +12156,11 @@ Kn("en", {
|
|
|
12140
12156
|
return e + n;
|
|
12141
12157
|
}
|
|
12142
12158
|
});
|
|
12143
|
-
|
|
12159
|
+
B.lang = Mt(
|
|
12144
12160
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
12145
12161
|
Kn
|
|
12146
12162
|
);
|
|
12147
|
-
|
|
12163
|
+
B.langData = Mt(
|
|
12148
12164
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
12149
12165
|
On
|
|
12150
12166
|
);
|
|
@@ -12322,36 +12338,36 @@ Se("X", function(e, t, n) {
|
|
|
12322
12338
|
Se("x", function(e, t, n) {
|
|
12323
12339
|
n._d = new Date(we(e));
|
|
12324
12340
|
});
|
|
12325
|
-
|
|
12341
|
+
B.version = "2.30.1";
|
|
12326
12342
|
zw(Re);
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12335
|
-
|
|
12336
|
-
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12350
|
-
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12343
|
+
B.fn = V;
|
|
12344
|
+
B.min = Ek;
|
|
12345
|
+
B.max = Sk;
|
|
12346
|
+
B.now = Ck;
|
|
12347
|
+
B.utc = an;
|
|
12348
|
+
B.unix = nL;
|
|
12349
|
+
B.months = lL;
|
|
12350
|
+
B.isDate = Hl;
|
|
12351
|
+
B.locale = Kn;
|
|
12352
|
+
B.invalid = xo;
|
|
12353
|
+
B.duration = Vt;
|
|
12354
|
+
B.isMoment = Bt;
|
|
12355
|
+
B.weekdays = oL;
|
|
12356
|
+
B.parseZone = iL;
|
|
12357
|
+
B.localeData = On;
|
|
12358
|
+
B.isDuration = xr;
|
|
12359
|
+
B.monthsShort = rL;
|
|
12360
|
+
B.weekdaysMin = aL;
|
|
12361
|
+
B.defineLocale = qa;
|
|
12362
|
+
B.updateLocale = ik;
|
|
12363
|
+
B.locales = lk;
|
|
12364
|
+
B.weekdaysShort = sL;
|
|
12365
|
+
B.normalizeUnits = Dt;
|
|
12366
|
+
B.relativeTimeRounding = PL;
|
|
12367
|
+
B.relativeTimeThreshold = $L;
|
|
12368
|
+
B.calendarFormat = Jk;
|
|
12369
|
+
B.prototype = V;
|
|
12370
|
+
B.HTML5_FMT = {
|
|
12355
12371
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
12356
12372
|
// <input type="datetime-local" />
|
|
12357
12373
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
@@ -12415,9 +12431,9 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12415
12431
|
field: nF,
|
|
12416
12432
|
control: iF
|
|
12417
12433
|
}, lF = (e) => {
|
|
12418
|
-
const [t, n] = s.useState(() =>
|
|
12434
|
+
const [t, n] = s.useState(() => B(e.value).format("DD.MM.YYYY")), [i, l] = s.useState(() => B(e.value).format("HH:mm")), [r, o] = s.useState(!1), [a, c] = s.useState(!1);
|
|
12419
12435
|
s.useEffect(() => {
|
|
12420
|
-
n(
|
|
12436
|
+
n(B(e.value).format("DD.MM.YYYY")), l(B(e.value).format("HH:mm"));
|
|
12421
12437
|
}, [e.value]);
|
|
12422
12438
|
const u = (f) => {
|
|
12423
12439
|
const h = f.target.value, p = h.match(/(0[1-9]|[1-2][0-9]|3[0-1])\.(0[1-9]|1[0-2])\.(\d{4})/);
|
|
@@ -12429,7 +12445,7 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12429
12445
|
const f = t.match(/(0[1-9]|[1-2][0-9]|3[0-1])\.(0[1-9]|1[0-2])\.(\d{4})/), h = i.match(/([0-1][0-9]|2[0-3]):([0-5][0-9])/);
|
|
12430
12446
|
if (!f || !h)
|
|
12431
12447
|
return;
|
|
12432
|
-
const p =
|
|
12448
|
+
const p = B().year(Number(f[3])).month(Number(f[2]) - 1).date(Number(f[1])).hour(Number(h[1])).minute(Number(h[2])).second(0).millisecond(0).format();
|
|
12433
12449
|
e.onChange(p);
|
|
12434
12450
|
};
|
|
12435
12451
|
return /* @__PURE__ */ s.createElement("div", { className: sl.wrapper }, /* @__PURE__ */ s.createElement("div", { className: sl.fields }, /* @__PURE__ */ s.createElement("div", { className: sl.field }, /* @__PURE__ */ s.createElement(ki, null, /* @__PURE__ */ s.createElement(ki.Label, null, /* @__PURE__ */ s.createElement(Lu, { label: "Дата" })), /* @__PURE__ */ s.createElement(ki.Content, null, /* @__PURE__ */ s.createElement(
|
|
@@ -12462,7 +12478,7 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12462
12478
|
}), rF = (e, t) => {
|
|
12463
12479
|
const n = new Date(e, t, 1), i = new Date(e, t + 1, 0), l = n.getDay(), r = i.getDate(), o = [], a = new Date(e, t, 0).getDate(), c = (l + 6) % 7;
|
|
12464
12480
|
for (let h = c; h > 0; h--) {
|
|
12465
|
-
const p =
|
|
12481
|
+
const p = B().year(e).month(t - 1).date(a - h + 1).hour(0).minute(0).second(0).millisecond(0), g = p.day() === 0 || p.day() === 6, v = cs({
|
|
12466
12482
|
type: "prev-month",
|
|
12467
12483
|
isToday: !1,
|
|
12468
12484
|
isWeekday: g,
|
|
@@ -12470,9 +12486,9 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12470
12486
|
});
|
|
12471
12487
|
o.push(v);
|
|
12472
12488
|
}
|
|
12473
|
-
const u =
|
|
12489
|
+
const u = B();
|
|
12474
12490
|
for (let h = 1; h <= r; h++) {
|
|
12475
|
-
const p =
|
|
12491
|
+
const p = B().year(e).month(t).date(h).hour(0).minute(0).second(0).millisecond(0), g = u.year() === e && u.month() === t && u.date() === h, v = p.day() === 0 || p.day() === 6, b = cs({
|
|
12476
12492
|
type: "current-month",
|
|
12477
12493
|
isToday: g,
|
|
12478
12494
|
isWeekday: v,
|
|
@@ -12482,7 +12498,7 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12482
12498
|
}
|
|
12483
12499
|
const d = 7, m = o.length, f = (d - m % d) % d;
|
|
12484
12500
|
for (let h = 1; h <= f; h++) {
|
|
12485
|
-
const p =
|
|
12501
|
+
const p = B().year(e).month(t + 1).date(h).hour(0).minute(0).second(0).millisecond(0), g = p.day() === 0 || p.day() === 6, v = cs({
|
|
12486
12502
|
type: "next-month",
|
|
12487
12503
|
isToday: !1,
|
|
12488
12504
|
isWeekday: g,
|
|
@@ -12497,44 +12513,44 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12497
12513
|
weeks: aF,
|
|
12498
12514
|
days: cF,
|
|
12499
12515
|
control: uF
|
|
12500
|
-
}, dF = ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"], fF = ["П", "В", "С", "Ч", "П", "Сб", "Вс"], mF = (e) =>
|
|
12501
|
-
const [t, n] = s.useState(!1), [i, l] = s.useState(!1), [r, o] = s.useState(() =>
|
|
12516
|
+
}, dF = ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"], fF = ["П", "В", "С", "Ч", "П", "Сб", "Вс"], mF = (e) => B(e).year(), hF = (e) => B(e).month(), pF = (e) => {
|
|
12517
|
+
const [t, n] = s.useState(!1), [i, l] = s.useState(!1), [r, o] = s.useState(() => B(e.value || e.defaultValue || /* @__PURE__ */ new Date()).format(e.format));
|
|
12502
12518
|
s.useEffect(() => {
|
|
12503
12519
|
i && (e.onChange && e.onChange(r), l(!1));
|
|
12504
12520
|
}, [i]), s.useEffect(() => {
|
|
12505
|
-
t && o(
|
|
12521
|
+
t && o(B(e.value || /* @__PURE__ */ new Date()).format(e.format));
|
|
12506
12522
|
}, [e.value]), s.useEffect(() => {
|
|
12507
12523
|
n(!0);
|
|
12508
12524
|
}, []);
|
|
12509
12525
|
const a = s.useMemo(() => rF(mF(r), hF(r)), [r]), c = (f) => {
|
|
12510
12526
|
const h = f - 1;
|
|
12511
|
-
h < 0 ? o(
|
|
12527
|
+
h < 0 ? o(B(r).subtract(1, "year").month(11).format(e.format)) : o(B(r).month(h).format(e.format));
|
|
12512
12528
|
}, u = (f) => {
|
|
12513
12529
|
const h = f + 1;
|
|
12514
|
-
h > 11 ? o(
|
|
12530
|
+
h > 11 ? o(B(r).add(1, "year").month(0).format(e.format)) : o(B(r).month(h).format(e.format));
|
|
12515
12531
|
}, d = (f) => {
|
|
12516
|
-
o(
|
|
12532
|
+
o(B(r).date(B(f).date()).format(e.format)), l(!0);
|
|
12517
12533
|
}, m = (f) => {
|
|
12518
12534
|
o(f), l(!0);
|
|
12519
12535
|
};
|
|
12520
12536
|
return /* @__PURE__ */ s.createElement("div", { className: al.wrapper }, /* @__PURE__ */ s.createElement("div", { className: al.header }, /* @__PURE__ */ s.createElement(
|
|
12521
12537
|
ZL,
|
|
12522
12538
|
{
|
|
12523
|
-
year:
|
|
12524
|
-
month: dF[
|
|
12525
|
-
onPrevMonthClick: () => c(
|
|
12526
|
-
onNextMonthClick: () => u(
|
|
12539
|
+
year: B(r).year(),
|
|
12540
|
+
month: dF[B(r).month()],
|
|
12541
|
+
onPrevMonthClick: () => c(B(r).month()),
|
|
12542
|
+
onNextMonthClick: () => u(B(r).month())
|
|
12527
12543
|
}
|
|
12528
|
-
)), /* @__PURE__ */ s.createElement("div", { className: al.weeks }, fF.map((f, h) => /* @__PURE__ */ s.createElement(HL, { key: h, isWeekday: h === 5 || h === 6 }, f))), /* @__PURE__ */ s.createElement("div", { className: al.days }, a.map((f, h) => f.type === "prev-month" || f.type === "next-month" ? /* @__PURE__ */ s.createElement(WL, { key: h },
|
|
12544
|
+
)), /* @__PURE__ */ s.createElement("div", { className: al.weeks }, fF.map((f, h) => /* @__PURE__ */ s.createElement(HL, { key: h, isWeekday: h === 5 || h === 6 }, f))), /* @__PURE__ */ s.createElement("div", { className: al.days }, a.map((f, h) => f.type === "prev-month" || f.type === "next-month" ? /* @__PURE__ */ s.createElement(WL, { key: h }, B(f.value).format("DD")) : /* @__PURE__ */ s.createElement(
|
|
12529
12545
|
YL,
|
|
12530
12546
|
{
|
|
12531
12547
|
key: h,
|
|
12532
|
-
isActive:
|
|
12548
|
+
isActive: B(r).date() === B(f.value).date(),
|
|
12533
12549
|
isToday: f.isToday,
|
|
12534
12550
|
isWeekday: f.isWeekday,
|
|
12535
12551
|
onClick: () => d(f.value)
|
|
12536
12552
|
},
|
|
12537
|
-
|
|
12553
|
+
B(f.value).format("DD")
|
|
12538
12554
|
))), /* @__PURE__ */ s.createElement("div", { className: al.control }, /* @__PURE__ */ s.createElement(lF, { value: r, onChange: m })));
|
|
12539
12555
|
}, gF = "_wrapper_1ryvq_1", vF = "_disabled_1ryvq_19", yF = "_icon_1ryvq_32", bF = "_value_1ryvq_40", wF = "_outline_1ryvq_80", He = {
|
|
12540
12556
|
wrapper: gF,
|
|
@@ -12765,7 +12781,7 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12765
12781
|
isClearable: f,
|
|
12766
12782
|
...h
|
|
12767
12783
|
}) => {
|
|
12768
|
-
const [p, g] = s.useState(!1), [v, b] = s.useState(!1), [
|
|
12784
|
+
const [p, g] = s.useState(!1), [v, b] = s.useState(!1), [_, w] = s.useState(!1), [y, S] = s.useState(
|
|
12769
12785
|
e ? Pu(i, l, e) ?? null : null
|
|
12770
12786
|
), [x, L] = s.useState(
|
|
12771
12787
|
y != null ? i[y] : void 0
|
|
@@ -12792,8 +12808,8 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12792
12808
|
selectedIndex: y,
|
|
12793
12809
|
setOpen: b,
|
|
12794
12810
|
onSelect: S,
|
|
12795
|
-
onBlur: () =>
|
|
12796
|
-
onFocus: () =>
|
|
12811
|
+
onBlur: () => w(!1),
|
|
12812
|
+
onFocus: () => w(!0)
|
|
12797
12813
|
},
|
|
12798
12814
|
/* @__PURE__ */ s.createElement(
|
|
12799
12815
|
Ct.Reference,
|
|
@@ -12803,7 +12819,7 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12803
12819
|
{
|
|
12804
12820
|
...h,
|
|
12805
12821
|
disabled: m,
|
|
12806
|
-
isFocused:
|
|
12822
|
+
isFocused: _ || v,
|
|
12807
12823
|
isOpen: v,
|
|
12808
12824
|
isClearable: y !== null && f,
|
|
12809
12825
|
onClear: () => {
|
|
@@ -12905,7 +12921,7 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12905
12921
|
isClearable: h,
|
|
12906
12922
|
...p
|
|
12907
12923
|
}) => {
|
|
12908
|
-
const [g, v] = s.useState(() => Zs(i)), [b,
|
|
12924
|
+
const [g, v] = s.useState(() => Zs(i)), [b, _] = s.useState(!1), [w, y] = s.useState(!1), [S, x] = s.useState(!1), [L, D] = s.useState(
|
|
12909
12925
|
e ? Iu(g, r, e) ?? null : null
|
|
12910
12926
|
), [P, C] = s.useState(
|
|
12911
12927
|
L != null ? g[L] : void 0
|
|
@@ -12917,18 +12933,18 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12917
12933
|
}, [e]), s.useEffect(() => {
|
|
12918
12934
|
b && C(L != null ? g[L] : void 0);
|
|
12919
12935
|
}, [L]), s.useEffect(() => {
|
|
12920
|
-
f || b && (
|
|
12921
|
-
}, [
|
|
12936
|
+
f || b && (w ? d && d() : u && u());
|
|
12937
|
+
}, [w]), s.useEffect(() => {
|
|
12922
12938
|
f || b && m && m(P ? P[r] : void 0);
|
|
12923
12939
|
}, [P]), s.useEffect(() => {
|
|
12924
|
-
f &&
|
|
12940
|
+
f && w && y(!1);
|
|
12925
12941
|
}, [f]), s.useEffect(() => {
|
|
12926
|
-
|
|
12942
|
+
_(!0);
|
|
12927
12943
|
}, []), /* @__PURE__ */ s.createElement(
|
|
12928
12944
|
Ct,
|
|
12929
12945
|
{
|
|
12930
12946
|
tabIndex: n,
|
|
12931
|
-
open:
|
|
12947
|
+
open: w,
|
|
12932
12948
|
disabled: f,
|
|
12933
12949
|
initialSelectedIndex: L,
|
|
12934
12950
|
selectedIndex: L,
|
|
@@ -12940,16 +12956,16 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12940
12956
|
/* @__PURE__ */ s.createElement(
|
|
12941
12957
|
Ct.Reference,
|
|
12942
12958
|
{
|
|
12943
|
-
reference: (
|
|
12959
|
+
reference: (T) => /* @__PURE__ */ s.createElement(
|
|
12944
12960
|
nc,
|
|
12945
12961
|
{
|
|
12946
12962
|
...p,
|
|
12947
12963
|
disabled: f,
|
|
12948
|
-
isFocused: S ||
|
|
12949
|
-
isOpen:
|
|
12964
|
+
isFocused: S || w,
|
|
12965
|
+
isOpen: w,
|
|
12950
12966
|
isClearable: L !== null && h,
|
|
12951
12967
|
onClear: () => {
|
|
12952
|
-
f || (D(null),
|
|
12968
|
+
f || (D(null), T.setSelectedIndex(null));
|
|
12953
12969
|
}
|
|
12954
12970
|
},
|
|
12955
12971
|
P ? a ? a(P) : /* @__PURE__ */ s.createElement(Fm, { title: P[o], disabled: f }) : /* @__PURE__ */ s.createElement(d0, { title: t ?? "Select..." })
|
|
@@ -12960,16 +12976,16 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
12960
12976
|
Ct.Options,
|
|
12961
12977
|
{
|
|
12962
12978
|
empty: /* @__PURE__ */ s.createElement(a0, { title: "Нет данных" }),
|
|
12963
|
-
options: (
|
|
12964
|
-
const
|
|
12965
|
-
return s.Children.map(
|
|
12979
|
+
options: (T) => {
|
|
12980
|
+
const A = r0({ index: 0, accessor: l, options: i, optionKey: r, optionValue: o, templateOption: c });
|
|
12981
|
+
return s.Children.map(A, (Y, E) => s.isValidElement(Y) ? s.cloneElement(Y, {
|
|
12966
12982
|
index: E,
|
|
12967
12983
|
key: E,
|
|
12968
12984
|
onClick: () => {
|
|
12969
|
-
|
|
12985
|
+
T.setOpen(!1);
|
|
12970
12986
|
},
|
|
12971
12987
|
onChange: () => {
|
|
12972
|
-
|
|
12988
|
+
T.setOpen(!1);
|
|
12973
12989
|
}
|
|
12974
12990
|
}) : null);
|
|
12975
12991
|
}
|
|
@@ -13072,20 +13088,20 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
13072
13088
|
displayFormat: f = "DD.MM.YYYY",
|
|
13073
13089
|
...h
|
|
13074
13090
|
}) => {
|
|
13075
|
-
const [p, g] = s.useState(!1), [v, b] = s.useState(!1), [
|
|
13091
|
+
const [p, g] = s.useState(!1), [v, b] = s.useState(!1), [_, w] = s.useState(() => e || t);
|
|
13076
13092
|
s.useMemo(() => {
|
|
13077
|
-
p &&
|
|
13093
|
+
p && w(e);
|
|
13078
13094
|
}, [e]), s.useEffect(() => {
|
|
13079
13095
|
u || p && (v ? a && a() : o && o());
|
|
13080
13096
|
}, [v]), s.useEffect(() => {
|
|
13081
|
-
u || p && c && c(
|
|
13082
|
-
}, [
|
|
13097
|
+
u || p && c && c(_);
|
|
13098
|
+
}, [_]), s.useEffect(() => {
|
|
13083
13099
|
u && v && b(!1);
|
|
13084
13100
|
}, [u]), s.useEffect(() => {
|
|
13085
13101
|
g(!0);
|
|
13086
13102
|
}, []);
|
|
13087
13103
|
const y = (S) => {
|
|
13088
|
-
u || (
|
|
13104
|
+
u || (w(S), b(!1));
|
|
13089
13105
|
};
|
|
13090
13106
|
return /* @__PURE__ */ s.createElement(fs, { open: v, setOpen: b, disabled: u }, /* @__PURE__ */ s.createElement(
|
|
13091
13107
|
fs.Reference,
|
|
@@ -13097,15 +13113,15 @@ const zL = "_wrapper_txfvj_1", AL = "_container_txfvj_9", rl = {
|
|
|
13097
13113
|
leadIcon: /* @__PURE__ */ s.createElement(ve, { icon: "calendar-line" }),
|
|
13098
13114
|
disabled: u,
|
|
13099
13115
|
isFocused: v,
|
|
13100
|
-
isClearable: !!
|
|
13116
|
+
isClearable: !!_ && d,
|
|
13101
13117
|
onClear: () => {
|
|
13102
13118
|
u || c && c(void 0);
|
|
13103
13119
|
}
|
|
13104
13120
|
},
|
|
13105
|
-
|
|
13121
|
+
_ ? /* @__PURE__ */ s.createElement(_0, { disabled: u, title: B(_).format(f) }) : /* @__PURE__ */ s.createElement(L0, { title: n ?? "Select..." })
|
|
13106
13122
|
)
|
|
13107
13123
|
}
|
|
13108
|
-
), /* @__PURE__ */ s.createElement(fs.Target, null, /* @__PURE__ */ s.createElement("div", { className: E0.calendar }, /* @__PURE__ */ s.createElement(pF, { value:
|
|
13124
|
+
), /* @__PURE__ */ s.createElement(fs.Target, null, /* @__PURE__ */ s.createElement("div", { className: E0.calendar }, /* @__PURE__ */ s.createElement(pF, { value: _, format: m, onChange: y }))));
|
|
13109
13125
|
}, S0 = "_wrapper_117v4_1", C0 = "_title_117v4_23", O0 = "_badge_117v4_33", M0 = "_active_117v4_64", ht = {
|
|
13110
13126
|
wrapper: S0,
|
|
13111
13127
|
"lead-icon": "_lead-icon_117v4_12",
|
|
@@ -13807,17 +13823,17 @@ const $m = s.createContext(null), g1 = () => ({
|
|
|
13807
13823
|
}, [e.nodes, d]), e.nodes.length === 0 ? i ? /* @__PURE__ */ s.createElement("tbody", { className: ot.body }, /* @__PURE__ */ s.createElement("tr", { className: ot.emptyRow }, /* @__PURE__ */ s.createElement("td", { className: ot.emptyCell, colSpan: Math.max(t.length, 1) }, i.renderEmpty()))) : /* @__PURE__ */ s.createElement("tbody", { className: ot.body }) : /* @__PURE__ */ s.createElement("tbody", { className: ot.body }, e.nodes.map((f, h) => {
|
|
13808
13824
|
const p = n ? n.isExpanded(f.id) : !1, g = h === e.nodes.length - 1;
|
|
13809
13825
|
return /* @__PURE__ */ s.createElement(s.Fragment, { key: f.id ?? h }, /* @__PURE__ */ s.createElement("tr", { className: oe(ot.row, { [ot.rowHoverable]: m }) }, t.map((v, b) => {
|
|
13810
|
-
const
|
|
13826
|
+
const _ = t.indexOf(v), w = g && b === 0;
|
|
13811
13827
|
return /* @__PURE__ */ s.createElement(
|
|
13812
13828
|
U1,
|
|
13813
13829
|
{
|
|
13814
13830
|
key: b,
|
|
13815
|
-
originIndex:
|
|
13831
|
+
originIndex: _,
|
|
13816
13832
|
align: v.align,
|
|
13817
13833
|
data: f,
|
|
13818
13834
|
collapse: v.collapse,
|
|
13819
13835
|
className: v.cellClassName,
|
|
13820
|
-
cellRef:
|
|
13836
|
+
cellRef: w ? c : void 0,
|
|
13821
13837
|
onClick: (y) => r(y, f.data, f.id, h),
|
|
13822
13838
|
onDoubleClick: (y) => o(y, f.data, f.id, h),
|
|
13823
13839
|
onContextMenu: (y) => a(y, f.data, f.id, h)
|
|
@@ -14043,11 +14059,11 @@ const $m = s.createContext(null), g1 = () => ({
|
|
|
14043
14059
|
label: v.props.label ?? ""
|
|
14044
14060
|
};
|
|
14045
14061
|
} else if (g === "Cell") {
|
|
14046
|
-
const v = p, { render: b, className:
|
|
14062
|
+
const v = p, { render: b, className: _ } = v.props;
|
|
14047
14063
|
n[o] = {
|
|
14048
14064
|
...n[o],
|
|
14049
|
-
cellClassName:
|
|
14050
|
-
renderCell: (
|
|
14065
|
+
cellClassName: _,
|
|
14066
|
+
renderCell: (w) => b ? b(w) : s.Children.map(v.props.children, (y) => {
|
|
14051
14067
|
if (s.isValidElement(y)) {
|
|
14052
14068
|
const S = y;
|
|
14053
14069
|
return s.cloneElement(S);
|
|
@@ -14153,7 +14169,7 @@ const $m = s.createContext(null), g1 = () => ({
|
|
|
14153
14169
|
L = r.parentById.get(L) ?? null;
|
|
14154
14170
|
}
|
|
14155
14171
|
return !0;
|
|
14156
|
-
}), [i.nodes, d, e.tree?.isUse, r]),
|
|
14172
|
+
}), [i.nodes, d, e.tree?.isUse, r]), _ = s.useMemo(() => ({ nodes: b }), [b]), w = s.useMemo(
|
|
14157
14173
|
() => ({
|
|
14158
14174
|
isExpanded: (x) => d.has(x),
|
|
14159
14175
|
toggle: (x) => {
|
|
@@ -14172,7 +14188,7 @@ const $m = s.createContext(null), g1 = () => ({
|
|
|
14172
14188
|
zm.Provider,
|
|
14173
14189
|
{
|
|
14174
14190
|
value: {
|
|
14175
|
-
data:
|
|
14191
|
+
data: _,
|
|
14176
14192
|
columns: n,
|
|
14177
14193
|
columnsWidth: p,
|
|
14178
14194
|
resolveNodeId: v,
|
|
@@ -14187,7 +14203,7 @@ const $m = s.createContext(null), g1 = () => ({
|
|
|
14187
14203
|
} : void 0
|
|
14188
14204
|
}
|
|
14189
14205
|
},
|
|
14190
|
-
/* @__PURE__ */ s.createElement(iS, { value:
|
|
14206
|
+
/* @__PURE__ */ s.createElement(iS, { value: w }, /* @__PURE__ */ s.createElement(T1, { config: e.row }, /* @__PURE__ */ s.createElement(aS, { onSelect: (x) => e.select?.onSelect(x) }, /* @__PURE__ */ s.createElement("table", { ref: t, className: dl.table }, /* @__PURE__ */ s.createElement(M1, null), /* @__PURE__ */ s.createElement(q1, null)))))
|
|
14191
14207
|
), S = {
|
|
14192
14208
|
position: "relative",
|
|
14193
14209
|
display: "grid",
|