@fileverse-dev/ddoc 2.0.6-patch-1 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +563 -564
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -148,9 +148,9 @@ function Ase() {
|
|
148
148
|
return null;
|
149
149
|
}
|
150
150
|
var q = Object.assign, _ = 0, Y, J, ne, Q, he, Ce, oe;
|
151
|
-
function
|
151
|
+
function ye() {
|
152
152
|
}
|
153
|
-
|
153
|
+
ye.__reactDisabledLog = !0;
|
154
154
|
function we() {
|
155
155
|
{
|
156
156
|
if (_ === 0) {
|
@@ -158,7 +158,7 @@ function Ase() {
|
|
158
158
|
var R = {
|
159
159
|
configurable: !0,
|
160
160
|
enumerable: !0,
|
161
|
-
value:
|
161
|
+
value: ye,
|
162
162
|
writable: !0
|
163
163
|
};
|
164
164
|
Object.defineProperties(console, {
|
@@ -209,30 +209,30 @@ function Ase() {
|
|
209
209
|
_ < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
210
210
|
}
|
211
211
|
}
|
212
|
-
var Z = v.ReactCurrentDispatcher,
|
213
|
-
function
|
212
|
+
var Z = v.ReactCurrentDispatcher, be;
|
213
|
+
function me(R, ie, Me) {
|
214
214
|
{
|
215
|
-
if (
|
215
|
+
if (be === void 0)
|
216
216
|
try {
|
217
217
|
throw Error();
|
218
218
|
} catch (ut) {
|
219
219
|
var He = ut.stack.trim().match(/\n( *(at )?)/);
|
220
|
-
|
220
|
+
be = He && He[1] || "";
|
221
221
|
}
|
222
222
|
return `
|
223
|
-
` +
|
223
|
+
` + be + R;
|
224
224
|
}
|
225
225
|
}
|
226
|
-
var Ue = !1,
|
226
|
+
var Ue = !1, ke;
|
227
227
|
{
|
228
228
|
var Se = typeof WeakMap == "function" ? WeakMap : Map;
|
229
|
-
|
229
|
+
ke = new Se();
|
230
230
|
}
|
231
|
-
function
|
231
|
+
function Ne(R, ie) {
|
232
232
|
if (!R || Ue)
|
233
233
|
return "";
|
234
234
|
{
|
235
|
-
var Me =
|
235
|
+
var Me = ke.get(R);
|
236
236
|
if (Me !== void 0)
|
237
237
|
return Me;
|
238
238
|
}
|
@@ -287,7 +287,7 @@ function Ase() {
|
|
287
287
|
if (Ee--, Oe--, Oe < 0 || Le[Ee] !== te[Oe]) {
|
288
288
|
var Mt = `
|
289
289
|
` + Le[Ee].replace(" at new ", " at ");
|
290
|
-
return R.displayName && Mt.includes("<anonymous>") && (Mt = Mt.replace("<anonymous>", R.displayName)), typeof R == "function" &&
|
290
|
+
return R.displayName && Mt.includes("<anonymous>") && (Mt = Mt.replace("<anonymous>", R.displayName)), typeof R == "function" && ke.set(R, Mt), Mt;
|
291
291
|
}
|
292
292
|
while (Ee >= 1 && Oe >= 0);
|
293
293
|
break;
|
@@ -296,13 +296,13 @@ function Ase() {
|
|
296
296
|
} finally {
|
297
297
|
Ue = !1, Z.current = pt, ue(), Error.prepareStackTrace = ut;
|
298
298
|
}
|
299
|
-
var dn = R ? R.displayName || R.name : "", on = dn ?
|
300
|
-
return typeof R == "function" &&
|
299
|
+
var dn = R ? R.displayName || R.name : "", on = dn ? me(dn) : "";
|
300
|
+
return typeof R == "function" && ke.set(R, on), on;
|
301
301
|
}
|
302
302
|
function je(R, ie, Me) {
|
303
|
-
return
|
303
|
+
return Ne(R, !1);
|
304
304
|
}
|
305
|
-
function
|
305
|
+
function ge(R) {
|
306
306
|
var ie = R.prototype;
|
307
307
|
return !!(ie && ie.isReactComponent);
|
308
308
|
}
|
@@ -310,14 +310,14 @@ function Ase() {
|
|
310
310
|
if (R == null)
|
311
311
|
return "";
|
312
312
|
if (typeof R == "function")
|
313
|
-
return
|
313
|
+
return Ne(R, ge(R));
|
314
314
|
if (typeof R == "string")
|
315
|
-
return
|
315
|
+
return me(R);
|
316
316
|
switch (R) {
|
317
317
|
case c:
|
318
|
-
return
|
318
|
+
return me("Suspense");
|
319
319
|
case u:
|
320
|
-
return
|
320
|
+
return me("SuspenseList");
|
321
321
|
}
|
322
322
|
if (typeof R == "object")
|
323
323
|
switch (R.$$typeof) {
|
@@ -415,7 +415,7 @@ function Ase() {
|
|
415
415
|
Wt[Me] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(Ge.current.type), R.ref), Wt[Me] = !0);
|
416
416
|
}
|
417
417
|
}
|
418
|
-
function
|
418
|
+
function Te(R, ie) {
|
419
419
|
{
|
420
420
|
var Me = function() {
|
421
421
|
lt || (lt = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ie));
|
@@ -479,7 +479,7 @@ function Ase() {
|
|
479
479
|
}
|
480
480
|
if (Le || te) {
|
481
481
|
var Oe = typeof R == "function" ? R.displayName || R.name || "Unknown" : R;
|
482
|
-
Le &&
|
482
|
+
Le && Te(it, Oe), te && Re(it, Oe);
|
483
483
|
}
|
484
484
|
return ct(R, Le, te, ut, He, Ge.current, it);
|
485
485
|
}
|
@@ -13276,18 +13276,18 @@ function s0e(t) {
|
|
13276
13276
|
}
|
13277
13277
|
if (S)
|
13278
13278
|
for (var he = p ? 3 : 1, Ce = function(ue) {
|
13279
|
-
var Z = b.find(function(
|
13280
|
-
var
|
13281
|
-
if (
|
13282
|
-
return
|
13279
|
+
var Z = b.find(function(be) {
|
13280
|
+
var me = L.get(be);
|
13281
|
+
if (me)
|
13282
|
+
return me.slice(0, ue).every(function(Ue) {
|
13283
13283
|
return Ue;
|
13284
13284
|
});
|
13285
13285
|
});
|
13286
13286
|
if (Z)
|
13287
13287
|
return D = Z, "break";
|
13288
13288
|
}, oe = he; oe > 0; oe--) {
|
13289
|
-
var
|
13290
|
-
if (
|
13289
|
+
var ye = Ce(oe);
|
13290
|
+
if (ye === "break") break;
|
13291
13291
|
}
|
13292
13292
|
e.placement !== D && (e.modifiersData[r]._skip = !0, e.placement = D, e.reset = !0);
|
13293
13293
|
}
|
@@ -13405,10 +13405,10 @@ function m0e(t) {
|
|
13405
13405
|
};
|
13406
13406
|
if (E) {
|
13407
13407
|
if (s) {
|
13408
|
-
var G, q = b === "y" ? Zi : Yi, _ = b === "y" ? lo : co, Y = b === "y" ? "height" : "width", J = E[b], ne = J + g[q], Q = J - g[_], he = h ? -S[Y] / 2 : 0, Ce = k === Oh ? L[Y] : S[Y], oe = k === Oh ? -S[Y] : -L[Y],
|
13408
|
+
var G, q = b === "y" ? Zi : Yi, _ = b === "y" ? lo : co, Y = b === "y" ? "height" : "width", J = E[b], ne = J + g[q], Q = J - g[_], he = h ? -S[Y] / 2 : 0, Ce = k === Oh ? L[Y] : S[Y], oe = k === Oh ? -S[Y] : -L[Y], ye = e.elements.arrow, we = h && ye ? bA(ye) : {
|
13409
13409
|
width: 0,
|
13410
13410
|
height: 0
|
13411
|
-
}, ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : uV(), Z = ue[q],
|
13411
|
+
}, ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : uV(), Z = ue[q], be = ue[_], me = Vp(0, L[Y], we[Y]), Ue = w ? L[Y] / 2 - he - me - Z - I.mainAxis : Ce - me - Z - I.mainAxis, ke = w ? -L[Y] / 2 + he + me + be + I.mainAxis : oe + me + be + I.mainAxis, Se = e.elements.arrow && ry(e.elements.arrow), Ne = Se ? b === "y" ? Se.clientTop || 0 : Se.clientLeft || 0 : 0, je = (G = P == null ? void 0 : P[b]) != null ? G : 0, ge = J + Ue - je - Ne, $ = J + ke - je, se = Vp(h ? N6(ne, ge) : ne, J, h ? N1(Q, $) : Q);
|
13412
13412
|
E[b] = se, H[b] = se - J;
|
13413
13413
|
}
|
13414
13414
|
if (a) {
|
@@ -13980,7 +13980,7 @@ function AV(t) {
|
|
13980
13980
|
AV.$$tippy = !0;
|
13981
13981
|
var e1e = 1, ig = [], ww = [];
|
13982
13982
|
function t1e(t, e) {
|
13983
|
-
var n = GD(t, Object.assign({}, gs, MV(_D(e)))), r, i, s, o = !1, a = !1, l = !1, c = !1, u, f, d, h = [], p = BD(
|
13983
|
+
var n = GD(t, Object.assign({}, gs, MV(_D(e)))), r, i, s, o = !1, a = !1, l = !1, c = !1, u, f, d, h = [], p = BD(ge, n.interactiveDebounce), m, g = e1e++, v = null, k = I0e(n.plugins), w = {
|
13984
13984
|
// Is the instance currently enabled?
|
13985
13985
|
isEnabled: !0,
|
13986
13986
|
// Is the tippy currently showing and not transitioning out?
|
@@ -14051,25 +14051,25 @@ function t1e(t, e) {
|
|
14051
14051
|
function J(xe) {
|
14052
14052
|
xe === void 0 && (xe = !1), E.style.pointerEvents = b.props.interactive && !xe ? "" : "none", E.style.zIndex = "" + b.props.zIndex;
|
14053
14053
|
}
|
14054
|
-
function ne(xe,
|
14054
|
+
function ne(xe, Te, Re) {
|
14055
14055
|
if (Re === void 0 && (Re = !0), S.forEach(function(Ke) {
|
14056
|
-
Ke[xe] && Ke[xe].apply(Ke,
|
14056
|
+
Ke[xe] && Ke[xe].apply(Ke, Te);
|
14057
14057
|
}), Re) {
|
14058
14058
|
var ct;
|
14059
|
-
(ct = b.props)[xe].apply(ct,
|
14059
|
+
(ct = b.props)[xe].apply(ct, Te);
|
14060
14060
|
}
|
14061
14061
|
}
|
14062
14062
|
function Q() {
|
14063
14063
|
var xe = b.props.aria;
|
14064
14064
|
if (xe.content) {
|
14065
|
-
var
|
14065
|
+
var Te = "aria-" + xe.content, Re = E.id, ct = $f(b.props.triggerTarget || t);
|
14066
14066
|
ct.forEach(function(Ke) {
|
14067
|
-
var wt = Ke.getAttribute(
|
14067
|
+
var wt = Ke.getAttribute(Te);
|
14068
14068
|
if (b.state.isVisible)
|
14069
|
-
Ke.setAttribute(
|
14069
|
+
Ke.setAttribute(Te, wt ? wt + " " + Re : Re);
|
14070
14070
|
else {
|
14071
14071
|
var It = wt && wt.replace(Re, "").trim();
|
14072
|
-
It ? Ke.setAttribute(
|
14072
|
+
It ? Ke.setAttribute(Te, It) : Ke.removeAttribute(Te);
|
14073
14073
|
}
|
14074
14074
|
});
|
14075
14075
|
}
|
@@ -14077,8 +14077,8 @@ function t1e(t, e) {
|
|
14077
14077
|
function he() {
|
14078
14078
|
if (!(D || !b.props.aria.expanded)) {
|
14079
14079
|
var xe = $f(b.props.triggerTarget || t);
|
14080
|
-
xe.forEach(function(
|
14081
|
-
b.props.interactive ?
|
14080
|
+
xe.forEach(function(Te) {
|
14081
|
+
b.props.interactive ? Te.setAttribute("aria-expanded", b.state.isVisible && Te === G() ? "true" : "false") : Te.removeAttribute("aria-expanded");
|
14082
14082
|
});
|
14083
14083
|
}
|
14084
14084
|
}
|
@@ -14089,10 +14089,10 @@ function t1e(t, e) {
|
|
14089
14089
|
}
|
14090
14090
|
function oe(xe) {
|
14091
14091
|
if (!(ma.isTouch && (l || xe.type === "mousedown"))) {
|
14092
|
-
var
|
14093
|
-
if (!(b.props.interactive && VD(E,
|
14092
|
+
var Te = xe.composedPath && xe.composedPath()[0] || xe.target;
|
14093
|
+
if (!(b.props.interactive && VD(E, Te))) {
|
14094
14094
|
if ($f(b.props.triggerTarget || t).some(function(Re) {
|
14095
|
-
return VD(Re,
|
14095
|
+
return VD(Re, Te);
|
14096
14096
|
})) {
|
14097
14097
|
if (ma.isTouch || b.state.isVisible && b.props.trigger.indexOf("click") >= 0)
|
14098
14098
|
return;
|
@@ -14104,7 +14104,7 @@ function t1e(t, e) {
|
|
14104
14104
|
}
|
14105
14105
|
}
|
14106
14106
|
}
|
14107
|
-
function
|
14107
|
+
function ye() {
|
14108
14108
|
l = !0;
|
14109
14109
|
}
|
14110
14110
|
function we() {
|
@@ -14112,78 +14112,78 @@ function t1e(t, e) {
|
|
14112
14112
|
}
|
14113
14113
|
function ue() {
|
14114
14114
|
var xe = q();
|
14115
|
-
xe.addEventListener("mousedown", oe, !0), xe.addEventListener("touchend", oe, E0), xe.addEventListener("touchstart", we, E0), xe.addEventListener("touchmove",
|
14115
|
+
xe.addEventListener("mousedown", oe, !0), xe.addEventListener("touchend", oe, E0), xe.addEventListener("touchstart", we, E0), xe.addEventListener("touchmove", ye, E0);
|
14116
14116
|
}
|
14117
14117
|
function Z() {
|
14118
14118
|
var xe = q();
|
14119
|
-
xe.removeEventListener("mousedown", oe, !0), xe.removeEventListener("touchend", oe, E0), xe.removeEventListener("touchstart", we, E0), xe.removeEventListener("touchmove",
|
14119
|
+
xe.removeEventListener("mousedown", oe, !0), xe.removeEventListener("touchend", oe, E0), xe.removeEventListener("touchstart", we, E0), xe.removeEventListener("touchmove", ye, E0);
|
14120
14120
|
}
|
14121
|
-
function
|
14121
|
+
function be(xe, Te) {
|
14122
14122
|
Ue(xe, function() {
|
14123
|
-
!b.state.isVisible && E.parentNode && E.parentNode.contains(E) &&
|
14123
|
+
!b.state.isVisible && E.parentNode && E.parentNode.contains(E) && Te();
|
14124
14124
|
});
|
14125
14125
|
}
|
14126
|
-
function
|
14127
|
-
Ue(xe,
|
14126
|
+
function me(xe, Te) {
|
14127
|
+
Ue(xe, Te);
|
14128
14128
|
}
|
14129
|
-
function Ue(xe,
|
14129
|
+
function Ue(xe, Te) {
|
14130
14130
|
var Re = _().box;
|
14131
14131
|
function ct(Ke) {
|
14132
|
-
Ke.target === Re && (bw(Re, "remove", ct),
|
14132
|
+
Ke.target === Re && (bw(Re, "remove", ct), Te());
|
14133
14133
|
}
|
14134
14134
|
if (xe === 0)
|
14135
|
-
return
|
14135
|
+
return Te();
|
14136
14136
|
bw(Re, "remove", f), bw(Re, "add", ct), f = ct;
|
14137
14137
|
}
|
14138
|
-
function
|
14138
|
+
function ke(xe, Te, Re) {
|
14139
14139
|
Re === void 0 && (Re = !1);
|
14140
14140
|
var ct = $f(b.props.triggerTarget || t);
|
14141
14141
|
ct.forEach(function(Ke) {
|
14142
|
-
Ke.addEventListener(xe,
|
14142
|
+
Ke.addEventListener(xe, Te, Re), h.push({
|
14143
14143
|
node: Ke,
|
14144
14144
|
eventType: xe,
|
14145
|
-
handler:
|
14145
|
+
handler: Te,
|
14146
14146
|
options: Re
|
14147
14147
|
});
|
14148
14148
|
});
|
14149
14149
|
}
|
14150
14150
|
function Se() {
|
14151
|
-
P() && (
|
14151
|
+
P() && (ke("touchstart", je, {
|
14152
14152
|
passive: !0
|
14153
|
-
}),
|
14153
|
+
}), ke("touchend", $, {
|
14154
14154
|
passive: !0
|
14155
14155
|
})), j0e(b.props.trigger).forEach(function(xe) {
|
14156
14156
|
if (xe !== "manual")
|
14157
|
-
switch (
|
14157
|
+
switch (ke(xe, je), xe) {
|
14158
14158
|
case "mouseenter":
|
14159
|
-
|
14159
|
+
ke("mouseleave", $);
|
14160
14160
|
break;
|
14161
14161
|
case "focus":
|
14162
|
-
|
14162
|
+
ke(G0e ? "focusout" : "blur", se);
|
14163
14163
|
break;
|
14164
14164
|
case "focusin":
|
14165
|
-
|
14165
|
+
ke("focusout", se);
|
14166
14166
|
break;
|
14167
14167
|
}
|
14168
14168
|
});
|
14169
14169
|
}
|
14170
|
-
function
|
14170
|
+
function Ne() {
|
14171
14171
|
h.forEach(function(xe) {
|
14172
|
-
var
|
14173
|
-
|
14172
|
+
var Te = xe.node, Re = xe.eventType, ct = xe.handler, Ke = xe.options;
|
14173
|
+
Te.removeEventListener(Re, ct, Ke);
|
14174
14174
|
}), h = [];
|
14175
14175
|
}
|
14176
14176
|
function je(xe) {
|
14177
|
-
var
|
14177
|
+
var Te, Re = !1;
|
14178
14178
|
if (!(!b.state.isEnabled || re(xe) || a)) {
|
14179
|
-
var ct = ((
|
14179
|
+
var ct = ((Te = u) == null ? void 0 : Te.type) === "focus";
|
14180
14180
|
u = xe, m = xe.currentTarget, he(), !b.state.isVisible && O0e(xe) && ig.forEach(function(Ke) {
|
14181
14181
|
return Ke(xe);
|
14182
14182
|
}), xe.type === "click" && (b.props.trigger.indexOf("mouseenter") < 0 || o) && b.props.hideOnClick !== !1 && b.state.isVisible ? Re = !0 : z(xe), xe.type === "click" && (o = !Re), Re && !ct && ee(xe);
|
14183
14183
|
}
|
14184
14184
|
}
|
14185
|
-
function
|
14186
|
-
var
|
14185
|
+
function ge(xe) {
|
14186
|
+
var Te = xe.target, Re = G().contains(Te) || E.contains(Te);
|
14187
14187
|
if (!(xe.type === "mousemove" && Re)) {
|
14188
14188
|
var ct = j().concat(E).map(function(Ke) {
|
14189
14189
|
var wt, It = Ke._tippy, Kt = (wt = It.popperInstance) == null ? void 0 : wt.state;
|
@@ -14197,8 +14197,8 @@ function t1e(t, e) {
|
|
14197
14197
|
}
|
14198
14198
|
}
|
14199
14199
|
function $(xe) {
|
14200
|
-
var
|
14201
|
-
if (!
|
14200
|
+
var Te = re(xe) || b.props.trigger.indexOf("click") >= 0 && o;
|
14201
|
+
if (!Te) {
|
14202
14202
|
if (b.props.interactive) {
|
14203
14203
|
b.hideWithInteractivity(xe);
|
14204
14204
|
return;
|
@@ -14214,7 +14214,7 @@ function t1e(t, e) {
|
|
14214
14214
|
}
|
14215
14215
|
function Be() {
|
14216
14216
|
U();
|
14217
|
-
var xe = b.props,
|
14217
|
+
var xe = b.props, Te = xe.popperOptions, Re = xe.placement, ct = xe.offset, Ke = xe.getReferenceClientRect, wt = xe.moveTransition, It = H() ? _k(E).arrow : null, Kt = Ke ? {
|
14218
14218
|
getBoundingClientRect: Ke,
|
14219
14219
|
contextElement: Ke.contextElement || G()
|
14220
14220
|
} : t, Ft = {
|
@@ -14263,7 +14263,7 @@ function t1e(t, e) {
|
|
14263
14263
|
element: It,
|
14264
14264
|
padding: 3
|
14265
14265
|
}
|
14266
|
-
}), sn.push.apply(sn, (
|
14266
|
+
}), sn.push.apply(sn, (Te == null ? void 0 : Te.modifiers) || []), b.popperInstance = E0e(Kt, E, Object.assign({}, Te, {
|
14267
14267
|
placement: Re,
|
14268
14268
|
onFirstUpdate: d,
|
14269
14269
|
modifiers: sn
|
@@ -14273,8 +14273,8 @@ function t1e(t, e) {
|
|
14273
14273
|
b.popperInstance && (b.popperInstance.destroy(), b.popperInstance = null);
|
14274
14274
|
}
|
14275
14275
|
function M() {
|
14276
|
-
var xe = b.props.appendTo,
|
14277
|
-
b.props.interactive && xe === vV || xe === "parent" ?
|
14276
|
+
var xe = b.props.appendTo, Te, Re = G();
|
14277
|
+
b.props.interactive && xe === vV || xe === "parent" ? Te = Re.parentNode : Te = bV(xe, [Re]), Te.contains(E) || Te.appendChild(E), b.state.isMounted = !0, Be(), process.env.NODE_ENV !== "production" && ll(b.props.interactive && xe === gs.appendTo && Re.nextElementSibling !== E, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
14278
14278
|
|
14279
14279
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
14280
14280
|
|
@@ -14287,10 +14287,10 @@ function t1e(t, e) {
|
|
14287
14287
|
}
|
14288
14288
|
function z(xe) {
|
14289
14289
|
b.clearDelayTimeouts(), xe && ne("onTrigger", [b, xe]), ue();
|
14290
|
-
var
|
14291
|
-
ma.isTouch && ct === "hold" && Ke && (
|
14290
|
+
var Te = Y(!0), Re = I(), ct = Re[0], Ke = Re[1];
|
14291
|
+
ma.isTouch && ct === "hold" && Ke && (Te = Ke), Te ? r = setTimeout(function() {
|
14292
14292
|
b.show();
|
14293
|
-
},
|
14293
|
+
}, Te) : b.show();
|
14294
14294
|
}
|
14295
14295
|
function ee(xe) {
|
14296
14296
|
if (b.clearDelayTimeouts(), ne("onUntrigger", [b, xe]), !b.state.isVisible) {
|
@@ -14298,10 +14298,10 @@ function t1e(t, e) {
|
|
14298
14298
|
return;
|
14299
14299
|
}
|
14300
14300
|
if (!(b.props.trigger.indexOf("mouseenter") >= 0 && b.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(xe.type) >= 0 && o)) {
|
14301
|
-
var
|
14302
|
-
|
14301
|
+
var Te = Y(!1);
|
14302
|
+
Te ? i = setTimeout(function() {
|
14303
14303
|
b.state.isVisible && b.hide();
|
14304
|
-
},
|
14304
|
+
}, Te) : s = requestAnimationFrame(function() {
|
14305
14305
|
b.hide();
|
14306
14306
|
});
|
14307
14307
|
}
|
@@ -14317,13 +14317,13 @@ function t1e(t, e) {
|
|
14317
14317
|
}
|
14318
14318
|
function Ge(xe) {
|
14319
14319
|
if (process.env.NODE_ENV !== "production" && ll(b.state.isDestroyed, jf("setProps")), !b.state.isDestroyed) {
|
14320
|
-
ne("onBeforeUpdate", [b, xe]),
|
14321
|
-
var
|
14320
|
+
ne("onBeforeUpdate", [b, xe]), Ne();
|
14321
|
+
var Te = b.props, Re = GD(t, Object.assign({}, Te, _D(xe), {
|
14322
14322
|
ignoreAttributes: !0
|
14323
14323
|
}));
|
14324
|
-
b.props = Re, Se(),
|
14324
|
+
b.props = Re, Se(), Te.interactiveDebounce !== Re.interactiveDebounce && (Ce(), p = BD(ge, Re.interactiveDebounce)), Te.triggerTarget && !Re.triggerTarget ? $f(Te.triggerTarget).forEach(function(ct) {
|
14325
14325
|
ct.removeAttribute("aria-expanded");
|
14326
|
-
}) : Re.triggerTarget && t.removeAttribute("aria-expanded"), he(), J(), L && L(
|
14326
|
+
}) : Re.triggerTarget && t.removeAttribute("aria-expanded"), he(), J(), L && L(Te, Re), b.popperInstance && (Be(), j().forEach(function(ct) {
|
14327
14327
|
requestAnimationFrame(ct._tippy.popperInstance.forceUpdate);
|
14328
14328
|
})), ne("onAfterUpdate", [b, xe]);
|
14329
14329
|
}
|
@@ -14335,8 +14335,8 @@ function t1e(t, e) {
|
|
14335
14335
|
}
|
14336
14336
|
function lt() {
|
14337
14337
|
process.env.NODE_ENV !== "production" && ll(b.state.isDestroyed, jf("show"));
|
14338
|
-
var xe = b.state.isVisible,
|
14339
|
-
if (!(xe ||
|
14338
|
+
var xe = b.state.isVisible, Te = b.state.isDestroyed, Re = !b.state.isEnabled, ct = ma.isTouch && !b.props.touch, Ke = gw(b.props.duration, 0, gs.duration);
|
14339
|
+
if (!(xe || Te || Re || ct) && !G().hasAttribute("disabled") && (ne("onShow", [b], !1), b.props.onShow(b) !== !1)) {
|
14340
14340
|
if (b.state.isVisible = !0, H() && (E.style.visibility = "visible"), J(), ue(), b.state.isMounted || (E.style.transition = "none"), H()) {
|
14341
14341
|
var wt = _(), It = wt.box, Kt = wt.content;
|
14342
14342
|
vw([It, Kt], 0);
|
@@ -14348,7 +14348,7 @@ function t1e(t, e) {
|
|
14348
14348
|
var wr = _(), ir = wr.box, sr = wr.content;
|
14349
14349
|
vw([ir, sr], Ke), HD([ir, sr], "visible");
|
14350
14350
|
}
|
14351
|
-
Q(), he(), FD(ww, b), (sn = b.popperInstance) == null || sn.forceUpdate(), ne("onMount", [b]), b.props.animation && H() &&
|
14351
|
+
Q(), he(), FD(ww, b), (sn = b.popperInstance) == null || sn.forceUpdate(), ne("onMount", [b]), b.props.animation && H() && me(Ke, function() {
|
14352
14352
|
b.state.isShown = !0, ne("onShown", [b]);
|
14353
14353
|
});
|
14354
14354
|
}
|
@@ -14357,13 +14357,13 @@ function t1e(t, e) {
|
|
14357
14357
|
}
|
14358
14358
|
function ht() {
|
14359
14359
|
process.env.NODE_ENV !== "production" && ll(b.state.isDestroyed, jf("hide"));
|
14360
|
-
var xe = !b.state.isVisible,
|
14361
|
-
if (!(xe ||
|
14360
|
+
var xe = !b.state.isVisible, Te = b.state.isDestroyed, Re = !b.state.isEnabled, ct = gw(b.props.duration, 1, gs.duration);
|
14361
|
+
if (!(xe || Te || Re) && (ne("onHide", [b], !1), b.props.onHide(b) !== !1)) {
|
14362
14362
|
if (b.state.isVisible = !1, b.state.isShown = !1, c = !1, o = !1, H() && (E.style.visibility = "hidden"), Ce(), Z(), J(!0), H()) {
|
14363
14363
|
var Ke = _(), wt = Ke.box, It = Ke.content;
|
14364
14364
|
b.props.animation && (vw([wt, It], ct), HD([wt, It], "hidden"));
|
14365
14365
|
}
|
14366
|
-
Q(), he(), b.props.animation ? H() &&
|
14366
|
+
Q(), he(), b.props.animation ? H() && be(ct, b.unmount) : b.unmount();
|
14367
14367
|
}
|
14368
14368
|
}
|
14369
14369
|
function Wt(xe) {
|
@@ -14377,7 +14377,7 @@ function t1e(t, e) {
|
|
14377
14377
|
}), b.state.isMounted = !1, ne("onHidden", [b]));
|
14378
14378
|
}
|
14379
14379
|
function In() {
|
14380
|
-
process.env.NODE_ENV !== "production" && ll(b.state.isDestroyed, jf("destroy")), !b.state.isDestroyed && (b.clearDelayTimeouts(), b.unmount(),
|
14380
|
+
process.env.NODE_ENV !== "production" && ll(b.state.isDestroyed, jf("destroy")), !b.state.isDestroyed && (b.clearDelayTimeouts(), b.unmount(), Ne(), delete t._tippy, b.state.isDestroyed = !0, ne("onDestroy", [b]));
|
14381
14381
|
}
|
14382
14382
|
}
|
14383
14383
|
function pf(t, e) {
|
@@ -15544,9 +15544,9 @@ function T1e() {
|
|
15544
15544
|
return null;
|
15545
15545
|
}
|
15546
15546
|
var q = Object.assign, _ = 0, Y, J, ne, Q, he, Ce, oe;
|
15547
|
-
function
|
15547
|
+
function ye() {
|
15548
15548
|
}
|
15549
|
-
|
15549
|
+
ye.__reactDisabledLog = !0;
|
15550
15550
|
function we() {
|
15551
15551
|
{
|
15552
15552
|
if (_ === 0) {
|
@@ -15554,7 +15554,7 @@ function T1e() {
|
|
15554
15554
|
var R = {
|
15555
15555
|
configurable: !0,
|
15556
15556
|
enumerable: !0,
|
15557
|
-
value:
|
15557
|
+
value: ye,
|
15558
15558
|
writable: !0
|
15559
15559
|
};
|
15560
15560
|
Object.defineProperties(console, {
|
@@ -15605,30 +15605,30 @@ function T1e() {
|
|
15605
15605
|
_ < 0 && k("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
15606
15606
|
}
|
15607
15607
|
}
|
15608
|
-
var Z = v.ReactCurrentDispatcher,
|
15609
|
-
function
|
15608
|
+
var Z = v.ReactCurrentDispatcher, be;
|
15609
|
+
function me(R, ie, Me) {
|
15610
15610
|
{
|
15611
|
-
if (
|
15611
|
+
if (be === void 0)
|
15612
15612
|
try {
|
15613
15613
|
throw Error();
|
15614
15614
|
} catch (ut) {
|
15615
15615
|
var He = ut.stack.trim().match(/\n( *(at )?)/);
|
15616
|
-
|
15616
|
+
be = He && He[1] || "";
|
15617
15617
|
}
|
15618
15618
|
return `
|
15619
|
-
` +
|
15619
|
+
` + be + R;
|
15620
15620
|
}
|
15621
15621
|
}
|
15622
|
-
var Ue = !1,
|
15622
|
+
var Ue = !1, ke;
|
15623
15623
|
{
|
15624
15624
|
var Se = typeof WeakMap == "function" ? WeakMap : Map;
|
15625
|
-
|
15625
|
+
ke = new Se();
|
15626
15626
|
}
|
15627
|
-
function
|
15627
|
+
function Ne(R, ie) {
|
15628
15628
|
if (!R || Ue)
|
15629
15629
|
return "";
|
15630
15630
|
{
|
15631
|
-
var Me =
|
15631
|
+
var Me = ke.get(R);
|
15632
15632
|
if (Me !== void 0)
|
15633
15633
|
return Me;
|
15634
15634
|
}
|
@@ -15683,7 +15683,7 @@ function T1e() {
|
|
15683
15683
|
if (Ee--, Oe--, Oe < 0 || Le[Ee] !== te[Oe]) {
|
15684
15684
|
var Mt = `
|
15685
15685
|
` + Le[Ee].replace(" at new ", " at ");
|
15686
|
-
return R.displayName && Mt.includes("<anonymous>") && (Mt = Mt.replace("<anonymous>", R.displayName)), typeof R == "function" &&
|
15686
|
+
return R.displayName && Mt.includes("<anonymous>") && (Mt = Mt.replace("<anonymous>", R.displayName)), typeof R == "function" && ke.set(R, Mt), Mt;
|
15687
15687
|
}
|
15688
15688
|
while (Ee >= 1 && Oe >= 0);
|
15689
15689
|
break;
|
@@ -15692,13 +15692,13 @@ function T1e() {
|
|
15692
15692
|
} finally {
|
15693
15693
|
Ue = !1, Z.current = pt, ue(), Error.prepareStackTrace = ut;
|
15694
15694
|
}
|
15695
|
-
var dn = R ? R.displayName || R.name : "", on = dn ?
|
15696
|
-
return typeof R == "function" &&
|
15695
|
+
var dn = R ? R.displayName || R.name : "", on = dn ? me(dn) : "";
|
15696
|
+
return typeof R == "function" && ke.set(R, on), on;
|
15697
15697
|
}
|
15698
15698
|
function je(R, ie, Me) {
|
15699
|
-
return
|
15699
|
+
return Ne(R, !1);
|
15700
15700
|
}
|
15701
|
-
function
|
15701
|
+
function ge(R) {
|
15702
15702
|
var ie = R.prototype;
|
15703
15703
|
return !!(ie && ie.isReactComponent);
|
15704
15704
|
}
|
@@ -15706,14 +15706,14 @@ function T1e() {
|
|
15706
15706
|
if (R == null)
|
15707
15707
|
return "";
|
15708
15708
|
if (typeof R == "function")
|
15709
|
-
return
|
15709
|
+
return Ne(R, ge(R));
|
15710
15710
|
if (typeof R == "string")
|
15711
|
-
return
|
15711
|
+
return me(R);
|
15712
15712
|
switch (R) {
|
15713
15713
|
case c:
|
15714
|
-
return
|
15714
|
+
return me("Suspense");
|
15715
15715
|
case u:
|
15716
|
-
return
|
15716
|
+
return me("SuspenseList");
|
15717
15717
|
}
|
15718
15718
|
if (typeof R == "object")
|
15719
15719
|
switch (R.$$typeof) {
|
@@ -15811,7 +15811,7 @@ function T1e() {
|
|
15811
15811
|
Wt[Me] || (k('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(Ge.current.type), R.ref), Wt[Me] = !0);
|
15812
15812
|
}
|
15813
15813
|
}
|
15814
|
-
function
|
15814
|
+
function Te(R, ie) {
|
15815
15815
|
{
|
15816
15816
|
var Me = function() {
|
15817
15817
|
lt || (lt = !0, k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ie));
|
@@ -15875,7 +15875,7 @@ function T1e() {
|
|
15875
15875
|
}
|
15876
15876
|
if (Le || te) {
|
15877
15877
|
var Oe = typeof R == "function" ? R.displayName || R.name || "Unknown" : R;
|
15878
|
-
Le &&
|
15878
|
+
Le && Te(it, Oe), te && Re(it, Oe);
|
15879
15879
|
}
|
15880
15880
|
return ct(R, Le, te, ut, He, Ge.current, it);
|
15881
15881
|
}
|
@@ -42729,7 +42729,7 @@ var BA = "PopperContent", [NDe, DDe] = yU(BA), kU = C.forwardRef(
|
|
42729
42729
|
boundary: J.filter(IDe),
|
42730
42730
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
42731
42731
|
altBoundary: ne
|
42732
|
-
}, { refs: he, floatingStyles: Ce, placement: oe, isPositioned:
|
42732
|
+
}, { refs: he, floatingStyles: Ce, placement: oe, isPositioned: ye, middlewareData: we } = vDe({
|
42733
42733
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
42734
42734
|
strategy: "fixed",
|
42735
42735
|
placement: _,
|
@@ -42750,8 +42750,8 @@ var BA = "PopperContent", [NDe, DDe] = yU(BA), kU = C.forwardRef(
|
|
42750
42750
|
p && MDe({ ...Q }),
|
42751
42751
|
CDe({
|
42752
42752
|
...Q,
|
42753
|
-
apply: ({ elements: je, rects:
|
42754
|
-
const { width: re, height: Be } =
|
42753
|
+
apply: ({ elements: je, rects: ge, availableWidth: $, availableHeight: se }) => {
|
42754
|
+
const { width: re, height: Be } = ge.reference, U = je.floating.style;
|
42755
42755
|
U.setProperty("--radix-popper-available-width", `${$}px`), U.setProperty("--radix-popper-available-height", `${se}px`), U.setProperty("--radix-popper-anchor-width", `${re}px`), U.setProperty("--radix-popper-anchor-height", `${Be}px`);
|
42756
42756
|
}
|
42757
42757
|
}),
|
@@ -42759,13 +42759,13 @@ var BA = "PopperContent", [NDe, DDe] = yU(BA), kU = C.forwardRef(
|
|
42759
42759
|
RDe({ arrowWidth: G, arrowHeight: q }),
|
42760
42760
|
k && ADe({ strategy: "referenceHidden", ...Q })
|
42761
42761
|
]
|
42762
|
-
}), [ue, Z] = CU(oe),
|
42762
|
+
}), [ue, Z] = CU(oe), be = Qi(b);
|
42763
42763
|
Kr(() => {
|
42764
|
-
|
42765
|
-
}, [
|
42766
|
-
const
|
42764
|
+
ye && (be == null || be());
|
42765
|
+
}, [ye, be]);
|
42766
|
+
const me = (n = we.arrow) == null ? void 0 : n.x, Ue = (r = we.arrow) == null ? void 0 : r.y, ke = ((i = we.arrow) == null ? void 0 : i.centerOffset) !== 0, [Se, Ne] = C.useState();
|
42767
42767
|
return Kr(() => {
|
42768
|
-
L &&
|
42768
|
+
L && Ne(window.getComputedStyle(L).zIndex);
|
42769
42769
|
}, [L]), /* @__PURE__ */ A.jsx(
|
42770
42770
|
"div",
|
42771
42771
|
{
|
@@ -42773,7 +42773,7 @@ var BA = "PopperContent", [NDe, DDe] = yU(BA), kU = C.forwardRef(
|
|
42773
42773
|
"data-radix-popper-content-wrapper": "",
|
42774
42774
|
style: {
|
42775
42775
|
...Ce,
|
42776
|
-
transform:
|
42776
|
+
transform: ye ? Ce.transform : "translate(0, -200%)",
|
42777
42777
|
// keep off the page when measuring
|
42778
42778
|
minWidth: "max-content",
|
42779
42779
|
zIndex: Se,
|
@@ -42796,9 +42796,9 @@ var BA = "PopperContent", [NDe, DDe] = yU(BA), kU = C.forwardRef(
|
|
42796
42796
|
scope: l,
|
42797
42797
|
placedSide: ue,
|
42798
42798
|
onArrowChange: P,
|
42799
|
-
arrowX:
|
42799
|
+
arrowX: me,
|
42800
42800
|
arrowY: Ue,
|
42801
|
-
shouldHideArrow:
|
42801
|
+
shouldHideArrow: ke,
|
42802
42802
|
children: /* @__PURE__ */ A.jsx(
|
42803
42803
|
xt.div,
|
42804
42804
|
{
|
@@ -42810,7 +42810,7 @@ var BA = "PopperContent", [NDe, DDe] = yU(BA), kU = C.forwardRef(
|
|
42810
42810
|
...x.style,
|
42811
42811
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
42812
42812
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
42813
|
-
animation:
|
42813
|
+
animation: ye ? void 0 : "none"
|
42814
42814
|
}
|
42815
42815
|
}
|
42816
42816
|
)
|
@@ -51959,17 +51959,17 @@ var cl = 10, [rZ, l0] = j2(Z1), OFe = "SelectContentImpl", iZ = C.forwardRef(
|
|
51959
51959
|
avoidCollisions: g,
|
51960
51960
|
//
|
51961
51961
|
...v
|
51962
|
-
} = t, k = a0(Z1, n), [w, b] = C.useState(null), [x, E] = C.useState(null), L = Xt(e, (
|
51962
|
+
} = t, k = a0(Z1, n), [w, b] = C.useState(null), [x, E] = C.useState(null), L = Xt(e, (be) => b(be)), [S, D] = C.useState(null), [I, P] = C.useState(
|
51963
51963
|
null
|
51964
51964
|
), H = Nb(n), [G, q] = C.useState(!1), _ = C.useRef(!1);
|
51965
51965
|
C.useEffect(() => {
|
51966
51966
|
if (w) return Sb(w);
|
51967
51967
|
}, [w]), gS();
|
51968
51968
|
const Y = C.useCallback(
|
51969
|
-
(
|
51970
|
-
const [
|
51971
|
-
for (const
|
51972
|
-
if (
|
51969
|
+
(be) => {
|
51970
|
+
const [me, ...Ue] = H().map((Ne) => Ne.ref.current), [ke] = Ue.slice(-1), Se = document.activeElement;
|
51971
|
+
for (const Ne of be)
|
51972
|
+
if (Ne === Se || (Ne == null || Ne.scrollIntoView({ block: "nearest" }), Ne === me && x && (x.scrollTop = 0), Ne === ke && x && (x.scrollTop = x.scrollHeight), Ne == null || Ne.focus(), document.activeElement !== Se)) return;
|
51973
51973
|
},
|
51974
51974
|
[H, x]
|
51975
51975
|
), J = C.useCallback(
|
@@ -51982,39 +51982,39 @@ var cl = 10, [rZ, l0] = j2(Z1), OFe = "SelectContentImpl", iZ = C.forwardRef(
|
|
51982
51982
|
const { onOpenChange: ne, triggerPointerDownPosRef: Q } = k;
|
51983
51983
|
C.useEffect(() => {
|
51984
51984
|
if (w) {
|
51985
|
-
let
|
51986
|
-
const
|
51987
|
-
var Se,
|
51988
|
-
|
51989
|
-
x: Math.abs(Math.round(
|
51990
|
-
y: Math.abs(Math.round(
|
51985
|
+
let be = { x: 0, y: 0 };
|
51986
|
+
const me = (ke) => {
|
51987
|
+
var Se, Ne;
|
51988
|
+
be = {
|
51989
|
+
x: Math.abs(Math.round(ke.pageX) - (((Se = Q.current) == null ? void 0 : Se.x) ?? 0)),
|
51990
|
+
y: Math.abs(Math.round(ke.pageY) - (((Ne = Q.current) == null ? void 0 : Ne.y) ?? 0))
|
51991
51991
|
};
|
51992
|
-
}, Ue = (
|
51993
|
-
|
51992
|
+
}, Ue = (ke) => {
|
51993
|
+
be.x <= 10 && be.y <= 10 ? ke.preventDefault() : w.contains(ke.target) || ne(!1), document.removeEventListener("pointermove", me), Q.current = null;
|
51994
51994
|
};
|
51995
|
-
return Q.current !== null && (document.addEventListener("pointermove",
|
51996
|
-
document.removeEventListener("pointermove",
|
51995
|
+
return Q.current !== null && (document.addEventListener("pointermove", me), document.addEventListener("pointerup", Ue, { capture: !0, once: !0 })), () => {
|
51996
|
+
document.removeEventListener("pointermove", me), document.removeEventListener("pointerup", Ue, { capture: !0 });
|
51997
51997
|
};
|
51998
51998
|
}
|
51999
51999
|
}, [w, ne, Q]), C.useEffect(() => {
|
52000
|
-
const
|
52001
|
-
return window.addEventListener("blur",
|
52002
|
-
window.removeEventListener("blur",
|
52000
|
+
const be = () => ne(!1);
|
52001
|
+
return window.addEventListener("blur", be), window.addEventListener("resize", be), () => {
|
52002
|
+
window.removeEventListener("blur", be), window.removeEventListener("resize", be);
|
52003
52003
|
};
|
52004
52004
|
}, [ne]);
|
52005
|
-
const [he, Ce] = wZ((
|
52006
|
-
const
|
52007
|
-
|
52005
|
+
const [he, Ce] = wZ((be) => {
|
52006
|
+
const me = H().filter((Se) => !Se.disabled), Ue = me.find((Se) => Se.ref.current === document.activeElement), ke = kZ(me, be, Ue);
|
52007
|
+
ke && setTimeout(() => ke.ref.current.focus());
|
52008
52008
|
}), oe = C.useCallback(
|
52009
|
-
(
|
52010
|
-
const
|
52011
|
-
(k.value !== void 0 && k.value ===
|
52009
|
+
(be, me, Ue) => {
|
52010
|
+
const ke = !_.current && !Ue;
|
52011
|
+
(k.value !== void 0 && k.value === me || ke) && (D(be), ke && (_.current = !0));
|
52012
52012
|
},
|
52013
52013
|
[k.value]
|
52014
|
-
),
|
52015
|
-
(
|
52016
|
-
const
|
52017
|
-
(k.value !== void 0 && k.value ===
|
52014
|
+
), ye = C.useCallback(() => w == null ? void 0 : w.focus(), [w]), we = C.useCallback(
|
52015
|
+
(be, me, Ue) => {
|
52016
|
+
const ke = !_.current && !Ue;
|
52017
|
+
(k.value !== void 0 && k.value === me || ke) && P(be);
|
52018
52018
|
},
|
52019
52019
|
[k.value]
|
52020
52020
|
), ue = r === "popper" ? vx : sZ, Z = ue === vx ? {
|
@@ -52038,7 +52038,7 @@ var cl = 10, [rZ, l0] = j2(Z1), OFe = "SelectContentImpl", iZ = C.forwardRef(
|
|
52038
52038
|
onViewportChange: E,
|
52039
52039
|
itemRefCallback: oe,
|
52040
52040
|
selectedItem: S,
|
52041
|
-
onItemLeave:
|
52041
|
+
onItemLeave: ye,
|
52042
52042
|
itemTextRefCallback: we,
|
52043
52043
|
focusSelectedItem: J,
|
52044
52044
|
selectedItemText: I,
|
@@ -52050,12 +52050,12 @@ var cl = 10, [rZ, l0] = j2(Z1), OFe = "SelectContentImpl", iZ = C.forwardRef(
|
|
52050
52050
|
{
|
52051
52051
|
asChild: !0,
|
52052
52052
|
trapped: k.open,
|
52053
|
-
onMountAutoFocus: (
|
52054
|
-
|
52053
|
+
onMountAutoFocus: (be) => {
|
52054
|
+
be.preventDefault();
|
52055
52055
|
},
|
52056
|
-
onUnmountAutoFocus: et(i, (
|
52057
|
-
var
|
52058
|
-
(
|
52056
|
+
onUnmountAutoFocus: et(i, (be) => {
|
52057
|
+
var me;
|
52058
|
+
(me = k.trigger) == null || me.focus({ preventScroll: !0 }), be.preventDefault();
|
52059
52059
|
}),
|
52060
52060
|
children: /* @__PURE__ */ A.jsx(
|
52061
52061
|
r0,
|
@@ -52064,7 +52064,7 @@ var cl = 10, [rZ, l0] = j2(Z1), OFe = "SelectContentImpl", iZ = C.forwardRef(
|
|
52064
52064
|
disableOutsidePointerEvents: !0,
|
52065
52065
|
onEscapeKeyDown: s,
|
52066
52066
|
onPointerDownOutside: o,
|
52067
|
-
onFocusOutside: (
|
52067
|
+
onFocusOutside: (be) => be.preventDefault(),
|
52068
52068
|
onDismiss: () => k.onOpenChange(!1),
|
52069
52069
|
children: /* @__PURE__ */ A.jsx(
|
52070
52070
|
ue,
|
@@ -52073,7 +52073,7 @@ var cl = 10, [rZ, l0] = j2(Z1), OFe = "SelectContentImpl", iZ = C.forwardRef(
|
|
52073
52073
|
id: k.contentId,
|
52074
52074
|
"data-state": k.open ? "open" : "closed",
|
52075
52075
|
dir: k.dir,
|
52076
|
-
onContextMenu: (
|
52076
|
+
onContextMenu: (be) => be.preventDefault(),
|
52077
52077
|
...v,
|
52078
52078
|
...Z,
|
52079
52079
|
onPlaced: () => q(!0),
|
@@ -52086,15 +52086,15 @@ var cl = 10, [rZ, l0] = j2(Z1), OFe = "SelectContentImpl", iZ = C.forwardRef(
|
|
52086
52086
|
outline: "none",
|
52087
52087
|
...v.style
|
52088
52088
|
},
|
52089
|
-
onKeyDown: et(v.onKeyDown, (
|
52090
|
-
const
|
52091
|
-
if (
|
52092
|
-
let Ue = H().filter((
|
52093
|
-
if (["ArrowUp", "End"].includes(
|
52094
|
-
const
|
52089
|
+
onKeyDown: et(v.onKeyDown, (be) => {
|
52090
|
+
const me = be.ctrlKey || be.altKey || be.metaKey;
|
52091
|
+
if (be.key === "Tab" && be.preventDefault(), !me && be.key.length === 1 && Ce(be.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(be.key)) {
|
52092
|
+
let Ue = H().filter((ke) => !ke.disabled).map((ke) => ke.ref.current);
|
52093
|
+
if (["ArrowUp", "End"].includes(be.key) && (Ue = Ue.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(be.key)) {
|
52094
|
+
const ke = be.target, Se = Ue.indexOf(ke);
|
52095
52095
|
Ue = Ue.slice(Se + 1);
|
52096
52096
|
}
|
52097
|
-
setTimeout(() => Y(Ue)),
|
52097
|
+
setTimeout(() => Y(Ue)), be.preventDefault();
|
52098
52098
|
}
|
52099
52099
|
})
|
52100
52100
|
}
|
@@ -52113,31 +52113,31 @@ var zFe = "SelectItemAlignedPosition", sZ = C.forwardRef((t, e) => {
|
|
52113
52113
|
if (s.trigger && s.valueNode && a && c && m && g && v) {
|
52114
52114
|
const L = s.trigger.getBoundingClientRect(), S = c.getBoundingClientRect(), D = s.valueNode.getBoundingClientRect(), I = v.getBoundingClientRect();
|
52115
52115
|
if (s.dir !== "rtl") {
|
52116
|
-
const
|
52116
|
+
const ke = I.left - S.left, Se = D.left - ke, Ne = L.left - Se, je = L.width + Ne, ge = Math.max(je, S.width), $ = window.innerWidth - cl, se = ZI(Se, [cl, $ - ge]);
|
52117
52117
|
a.style.minWidth = je + "px", a.style.left = se + "px";
|
52118
52118
|
} else {
|
52119
|
-
const
|
52119
|
+
const ke = S.right - I.right, Se = window.innerWidth - D.right - ke, Ne = window.innerWidth - L.right - Se, je = L.width + Ne, ge = Math.max(je, S.width), $ = window.innerWidth - cl, se = ZI(Se, [cl, $ - ge]);
|
52120
52120
|
a.style.minWidth = je + "px", a.style.right = se + "px";
|
52121
52121
|
}
|
52122
|
-
const P = d(), H = window.innerHeight - cl * 2, G = m.scrollHeight, q = window.getComputedStyle(c), _ = parseInt(q.borderTopWidth, 10), Y = parseInt(q.paddingTop, 10), J = parseInt(q.borderBottomWidth, 10), ne = parseInt(q.paddingBottom, 10), Q = _ + Y + G + ne + J, he = Math.min(g.offsetHeight * 5, Q), Ce = window.getComputedStyle(m), oe = parseInt(Ce.paddingTop, 10),
|
52123
|
-
if (
|
52124
|
-
const
|
52122
|
+
const P = d(), H = window.innerHeight - cl * 2, G = m.scrollHeight, q = window.getComputedStyle(c), _ = parseInt(q.borderTopWidth, 10), Y = parseInt(q.paddingTop, 10), J = parseInt(q.borderBottomWidth, 10), ne = parseInt(q.paddingBottom, 10), Q = _ + Y + G + ne + J, he = Math.min(g.offsetHeight * 5, Q), Ce = window.getComputedStyle(m), oe = parseInt(Ce.paddingTop, 10), ye = parseInt(Ce.paddingBottom, 10), we = L.top + L.height / 2 - cl, ue = H - we, Z = g.offsetHeight / 2, be = g.offsetTop + Z, me = _ + Y + be, Ue = Q - me;
|
52123
|
+
if (me <= we) {
|
52124
|
+
const ke = g === P[P.length - 1].ref.current;
|
52125
52125
|
a.style.bottom = "0px";
|
52126
|
-
const Se = c.clientHeight - m.offsetTop - m.offsetHeight,
|
52126
|
+
const Se = c.clientHeight - m.offsetTop - m.offsetHeight, Ne = Math.max(
|
52127
52127
|
ue,
|
52128
52128
|
Z + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
52129
|
-
(
|
52130
|
-
), je =
|
52129
|
+
(ke ? ye : 0) + Se + J
|
52130
|
+
), je = me + Ne;
|
52131
52131
|
a.style.height = je + "px";
|
52132
52132
|
} else {
|
52133
|
-
const
|
52133
|
+
const ke = g === P[0].ref.current;
|
52134
52134
|
a.style.top = "0px";
|
52135
52135
|
const Se = Math.max(
|
52136
52136
|
we,
|
52137
52137
|
_ + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
52138
|
-
(
|
52138
|
+
(ke ? oe : 0) + Z
|
52139
52139
|
) + Ue;
|
52140
|
-
a.style.height = Se + "px", m.scrollTop =
|
52140
|
+
a.style.height = Se + "px", m.scrollTop = me - we + m.offsetTop;
|
52141
52141
|
}
|
52142
52142
|
a.style.margin = `${cl}px 0`, a.style.minHeight = he + "px", a.style.maxHeight = H + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
|
52143
52143
|
}
|
@@ -53412,13 +53412,13 @@ function S_e({ activeSnapPointProp: t, setActiveSnapPointProp: e, snapPoints: n,
|
|
53412
53412
|
const E_e = 0.25, L_e = 100, JI = 8, M0 = 16, KI = 26, t7 = "vaul-dragging";
|
53413
53413
|
function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, onDrag: i, onRelease: s, snapPoints: o, nested: a = !1, setBackgroundColorOnScale: l = !0, closeThreshold: c = E_e, scrollLockTimeout: u = L_e, dismissible: f = !0, handleOnly: d = !1, fadeFromIndex: h = o && o.length - 1, activeSnapPoint: p, setActiveSnapPoint: m, fixed: g, modal: v = !0, onClose: k, noBodyStyles: w, direction: b = "bottom", preventScrollRestoration: x = !0, disablePreventScroll: E = !1 }) {
|
53414
53414
|
var L;
|
53415
|
-
const [S = !1, D] = Ae.useState(!1), [I, P] = Ae.useState(!1), [H, G] = Ae.useState(!1), [q, _] = Ae.useState(!1), [Y, J] = Ae.useState(!1), [ne, Q] = Ae.useState(!1), he = Ae.useRef(null), Ce = Ae.useRef(null), oe = Ae.useRef(null),
|
53416
|
-
o &&
|
53417
|
-
}, []), { activeSnapPoint:
|
53415
|
+
const [S = !1, D] = Ae.useState(!1), [I, P] = Ae.useState(!1), [H, G] = Ae.useState(!1), [q, _] = Ae.useState(!1), [Y, J] = Ae.useState(!1), [ne, Q] = Ae.useState(!1), he = Ae.useRef(null), Ce = Ae.useRef(null), oe = Ae.useRef(null), ye = Ae.useRef(null), we = Ae.useRef(null), ue = Ae.useRef(!1), Z = Ae.useRef(null), be = Ae.useRef(0), me = Ae.useRef(!1), Ue = Ae.useRef(0), ke = Ae.useRef(null), Se = Ae.useRef(((L = ke.current) == null ? void 0 : L.getBoundingClientRect().height) || 0), Ne = Ae.useRef(0), je = Ae.useCallback((Te) => {
|
53416
|
+
o && Te === Be.length - 1 && (Ce.current = /* @__PURE__ */ new Date());
|
53417
|
+
}, []), { activeSnapPoint: ge, activeSnapPointIndex: $, setActiveSnapPoint: se, onRelease: re, snapPointsOffset: Be, onDrag: U, shouldFade: M, getPercentageDragged: j } = S_e({
|
53418
53418
|
snapPoints: o,
|
53419
53419
|
activeSnapPointProp: p,
|
53420
53420
|
setActiveSnapPointProp: m,
|
53421
|
-
drawerRef:
|
53421
|
+
drawerRef: ke,
|
53422
53422
|
fadeFromIndex: h,
|
53423
53423
|
overlayRef: he,
|
53424
53424
|
onSnapPointChange: je,
|
@@ -53438,16 +53438,16 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53438
53438
|
function ee() {
|
53439
53439
|
return (window.innerWidth - KI) / window.innerWidth;
|
53440
53440
|
}
|
53441
|
-
function ce(
|
53441
|
+
function ce(Te) {
|
53442
53442
|
var Re;
|
53443
|
-
!f && !o ||
|
53443
|
+
!f && !o || ke.current && !ke.current.contains(Te.target) || (Se.current = ((Re = ke.current) == null ? void 0 : Re.getBoundingClientRect().height) || 0, J(!0), oe.current = /* @__PURE__ */ new Date(), NZ() && window.addEventListener("touchend", () => ue.current = !1, {
|
53444
53444
|
once: !0
|
53445
|
-
}),
|
53445
|
+
}), Te.target.setPointerCapture(Te.pointerId), be.current = pr(b) ? Te.clientY : Te.clientX);
|
53446
53446
|
}
|
53447
|
-
function de(
|
53447
|
+
function de(Te, Re) {
|
53448
53448
|
var ct;
|
53449
|
-
let Ke =
|
53450
|
-
const wt = (ct = window.getSelection()) == null ? void 0 : ct.toString(), It =
|
53449
|
+
let Ke = Te;
|
53450
|
+
const wt = (ct = window.getSelection()) == null ? void 0 : ct.toString(), It = ke.current ? wg(ke.current, b) : null, Kt = /* @__PURE__ */ new Date();
|
53451
53451
|
if (Ke.hasAttribute("data-vaul-no-drag") || Ke.closest("[data-vaul-no-drag]"))
|
53452
53452
|
return !1;
|
53453
53453
|
if (b === "right" || b === "left")
|
@@ -53471,15 +53471,15 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53471
53471
|
}
|
53472
53472
|
return !0;
|
53473
53473
|
}
|
53474
|
-
function _e(
|
53475
|
-
if (
|
53476
|
-
const Re = b === "bottom" || b === "right" ? 1 : -1, ct = (
|
53474
|
+
function _e(Te) {
|
53475
|
+
if (ke.current && Y) {
|
53476
|
+
const Re = b === "bottom" || b === "right" ? 1 : -1, ct = (be.current - (pr(b) ? Te.clientY : Te.clientX)) * Re, Ke = ct > 0, wt = o && !f && !Ke;
|
53477
53477
|
if (wt && $ === 0) return;
|
53478
53478
|
const It = Math.abs(ct), Kt = document.querySelector("[vaul-drawer-wrapper]");
|
53479
53479
|
let Ft = It / Se.current;
|
53480
53480
|
const sn = j(It, Ke);
|
53481
|
-
if (sn !== null && (Ft = sn), wt && Ft >= 1 || !ue.current && !de(
|
53482
|
-
if (
|
53481
|
+
if (sn !== null && (Ft = sn), wt && Ft >= 1 || !ue.current && !de(Te.target, Ke)) return;
|
53482
|
+
if (ke.current.classList.add(t7), ue.current = !0, Nn(ke.current, {
|
53483
53483
|
transition: "none"
|
53484
53484
|
}), Nn(he.current, {
|
53485
53485
|
transition: "none"
|
@@ -53487,13 +53487,13 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53487
53487
|
draggedDistance: ct
|
53488
53488
|
}), Ke && !o) {
|
53489
53489
|
const ir = M_e(ct), sr = Math.min(ir * -1, 0) * Re;
|
53490
|
-
Nn(
|
53490
|
+
Nn(ke.current, {
|
53491
53491
|
transform: pr(b) ? `translate3d(0, ${sr}px, 0)` : `translate3d(${sr}px, 0, 0)`
|
53492
53492
|
});
|
53493
53493
|
return;
|
53494
53494
|
}
|
53495
53495
|
const wr = 1 - Ft;
|
53496
|
-
if ((M || h && $ === h - 1) && (i == null || i(
|
53496
|
+
if ((M || h && $ === h - 1) && (i == null || i(Te, Ft), Nn(he.current, {
|
53497
53497
|
opacity: `${wr}`,
|
53498
53498
|
transition: "none"
|
53499
53499
|
}, !0)), Kt && he.current && r) {
|
@@ -53506,7 +53506,7 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53506
53506
|
}
|
53507
53507
|
if (!o) {
|
53508
53508
|
const ir = It * Re;
|
53509
|
-
Nn(
|
53509
|
+
Nn(ke.current, {
|
53510
53510
|
transform: pr(b) ? `translate3d(0, ${ir}px, 0)` : `translate3d(${ir}px, 0, 0)`
|
53511
53511
|
});
|
53512
53512
|
}
|
@@ -53515,31 +53515,31 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53515
53515
|
Ae.useEffect(() => () => {
|
53516
53516
|
Wt(!1), z();
|
53517
53517
|
}, []), Ae.useEffect(() => {
|
53518
|
-
var
|
53518
|
+
var Te;
|
53519
53519
|
function Re() {
|
53520
|
-
if (!
|
53520
|
+
if (!ke.current) return;
|
53521
53521
|
const ct = document.activeElement;
|
53522
|
-
if (Cx(ct) ||
|
53522
|
+
if (Cx(ct) || me.current) {
|
53523
53523
|
var Ke;
|
53524
53524
|
const wt = ((Ke = window.visualViewport) == null ? void 0 : Ke.height) || 0;
|
53525
53525
|
let It = window.innerHeight - wt;
|
53526
|
-
const Kt =
|
53527
|
-
|
53528
|
-
const Ft =
|
53529
|
-
if (Math.abs(Ue.current - It) > 60 && (
|
53526
|
+
const Kt = ke.current.getBoundingClientRect().height || 0;
|
53527
|
+
Ne.current || (Ne.current = Kt);
|
53528
|
+
const Ft = ke.current.getBoundingClientRect().top;
|
53529
|
+
if (Math.abs(Ue.current - It) > 60 && (me.current = !me.current), o && o.length > 0 && Be && $) {
|
53530
53530
|
const sn = Be[$] || 0;
|
53531
53531
|
It += sn;
|
53532
53532
|
}
|
53533
|
-
if (Ue.current = It, Kt > wt ||
|
53534
|
-
const sn =
|
53533
|
+
if (Ue.current = It, Kt > wt || me.current) {
|
53534
|
+
const sn = ke.current.getBoundingClientRect().height;
|
53535
53535
|
let wr = sn;
|
53536
|
-
sn > wt && (wr = wt - KI), g ?
|
53536
|
+
sn > wt && (wr = wt - KI), g ? ke.current.style.height = `${sn - Math.max(It, 0)}px` : ke.current.style.height = `${Math.max(wr, wt - Ft)}px`;
|
53537
53537
|
} else
|
53538
|
-
|
53539
|
-
o && o.length > 0 && !
|
53538
|
+
ke.current.style.height = `${Ne.current}px`;
|
53539
|
+
o && o.length > 0 && !me.current ? ke.current.style.bottom = "0px" : ke.current.style.bottom = `${Math.max(It, 0)}px`;
|
53540
53540
|
}
|
53541
53541
|
}
|
53542
|
-
return (
|
53542
|
+
return (Te = window.visualViewport) == null || Te.addEventListener("resize", Re), () => {
|
53543
53543
|
var ct;
|
53544
53544
|
return (ct = window.visualViewport) == null ? void 0 : ct.removeEventListener("resize", Re);
|
53545
53545
|
};
|
@@ -53549,7 +53549,7 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53549
53549
|
Be
|
53550
53550
|
]);
|
53551
53551
|
function Ge() {
|
53552
|
-
|
53552
|
+
ke.current && (lt(), k == null || k(), Nn(ke.current, {
|
53553
53553
|
transform: pr(b) ? `translate3d(0, ${b === "bottom" ? "100%" : "-100%"}, 0)` : `translate3d(${b === "right" ? "100%" : "-100%"}, 0, 0)`,
|
53554
53554
|
transition: `transform ${wn.DURATION}s cubic-bezier(${wn.EASE.join(",")})`
|
53555
53555
|
}), Nn(he.current, {
|
@@ -53563,10 +53563,10 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53563
53563
|
}
|
53564
53564
|
Ae.useEffect(() => {
|
53565
53565
|
if (!S && r) {
|
53566
|
-
const
|
53566
|
+
const Te = setTimeout(() => {
|
53567
53567
|
bg(document.body);
|
53568
53568
|
}, 200);
|
53569
|
-
return () => clearTimeout(
|
53569
|
+
return () => clearTimeout(Te);
|
53570
53570
|
}
|
53571
53571
|
}, [
|
53572
53572
|
S,
|
@@ -53583,15 +53583,15 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53583
53583
|
_(!0);
|
53584
53584
|
}, []);
|
53585
53585
|
function tt() {
|
53586
|
-
if (!
|
53587
|
-
const
|
53588
|
-
Nn(
|
53586
|
+
if (!ke.current) return;
|
53587
|
+
const Te = document.querySelector("[vaul-drawer-wrapper]"), Re = wg(ke.current, b);
|
53588
|
+
Nn(ke.current, {
|
53589
53589
|
transform: "translate3d(0, 0, 0)",
|
53590
53590
|
transition: `transform ${wn.DURATION}s cubic-bezier(${wn.EASE.join(",")})`
|
53591
53591
|
}), Nn(he.current, {
|
53592
53592
|
transition: `opacity ${wn.DURATION}s cubic-bezier(${wn.EASE.join(",")})`,
|
53593
53593
|
opacity: "1"
|
53594
|
-
}), r && Re && Re > 0 && S && Nn(
|
53594
|
+
}), r && Re && Re > 0 && S && Nn(Te, {
|
53595
53595
|
borderRadius: `${JI}px`,
|
53596
53596
|
overflow: "hidden",
|
53597
53597
|
...pr(b) ? {
|
@@ -53607,14 +53607,14 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53607
53607
|
}, !0);
|
53608
53608
|
}
|
53609
53609
|
function lt() {
|
53610
|
-
!Y || !
|
53611
|
-
}
|
53612
|
-
function ht(
|
53613
|
-
if (!Y || !
|
53614
|
-
|
53615
|
-
const Re = wg(
|
53616
|
-
if (!de(
|
53617
|
-
const ct =
|
53610
|
+
!Y || !ke.current || (ke.current.classList.remove(t7), ue.current = !1, J(!1), ye.current = /* @__PURE__ */ new Date());
|
53611
|
+
}
|
53612
|
+
function ht(Te) {
|
53613
|
+
if (!Y || !ke.current) return;
|
53614
|
+
ke.current.classList.remove(t7), ue.current = !1, J(!1), ye.current = /* @__PURE__ */ new Date();
|
53615
|
+
const Re = wg(ke.current, b);
|
53616
|
+
if (!de(Te.target, !1) || !Re || Number.isNaN(Re) || oe.current === null) return;
|
53617
|
+
const ct = ye.current.getTime() - oe.current.getTime(), Ke = be.current - (pr(b) ? Te.clientY : Te.clientX), wt = Math.abs(Ke) / ct;
|
53618
53618
|
if (wt > 0.05 && (Q(!0), setTimeout(() => {
|
53619
53619
|
Q(!1);
|
53620
53620
|
}, 200)), o) {
|
@@ -53623,24 +53623,24 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53623
53623
|
closeDrawer: Ge,
|
53624
53624
|
velocity: wt,
|
53625
53625
|
dismissible: f
|
53626
|
-
}), s == null || s(
|
53626
|
+
}), s == null || s(Te, !0);
|
53627
53627
|
return;
|
53628
53628
|
}
|
53629
53629
|
if (b === "bottom" || b === "right" ? Ke > 0 : Ke < 0) {
|
53630
|
-
tt(), s == null || s(
|
53630
|
+
tt(), s == null || s(Te, !0);
|
53631
53631
|
return;
|
53632
53632
|
}
|
53633
53633
|
if (wt > PZ) {
|
53634
|
-
Ge(), s == null || s(
|
53634
|
+
Ge(), s == null || s(Te, !1);
|
53635
53635
|
return;
|
53636
53636
|
}
|
53637
53637
|
var It;
|
53638
|
-
const Kt = Math.min((It =
|
53638
|
+
const Kt = Math.min((It = ke.current.getBoundingClientRect().height) != null ? It : 0, window.innerHeight);
|
53639
53639
|
if (Re >= Kt * c) {
|
53640
|
-
Ge(), s == null || s(
|
53640
|
+
Ge(), s == null || s(Te, !1);
|
53641
53641
|
return;
|
53642
53642
|
}
|
53643
|
-
s == null || s(
|
53643
|
+
s == null || s(Te, !0), tt();
|
53644
53644
|
}
|
53645
53645
|
Ae.useEffect(() => {
|
53646
53646
|
S && (Nn(document.documentElement, {
|
@@ -53649,9 +53649,9 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53649
53649
|
}, [
|
53650
53650
|
S
|
53651
53651
|
]), Ae.useEffect(() => {
|
53652
|
-
if (
|
53653
|
-
var
|
53654
|
-
const Re =
|
53652
|
+
if (ke.current && H) {
|
53653
|
+
var Te;
|
53654
|
+
const Re = ke == null || (Te = ke.current) == null ? void 0 : Te.querySelectorAll("*");
|
53655
53655
|
Re == null || Re.forEach((ct) => {
|
53656
53656
|
const Ke = ct;
|
53657
53657
|
(Ke.scrollHeight > Ke.clientHeight || Ke.scrollWidth > Ke.clientWidth) && Ke.classList.add("vaul-scrollable");
|
@@ -53660,9 +53660,9 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53660
53660
|
}, [
|
53661
53661
|
H
|
53662
53662
|
]);
|
53663
|
-
function Wt(
|
53663
|
+
function Wt(Te) {
|
53664
53664
|
const Re = document.querySelector("[vaul-drawer-wrapper]");
|
53665
|
-
!Re || !r || (
|
53665
|
+
!Re || !r || (Te ? (l && (w || (Nn(document.body, {
|
53666
53666
|
background: document.body.style.backgroundColor || document.body.style.background
|
53667
53667
|
}), Nn(document.body, {
|
53668
53668
|
background: "black"
|
@@ -53685,51 +53685,51 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53685
53685
|
transitionTimingFunction: `cubic-bezier(${wn.EASE.join(",")})`
|
53686
53686
|
})));
|
53687
53687
|
}
|
53688
|
-
function jn(
|
53689
|
-
const Re =
|
53690
|
-
Z.current && window.clearTimeout(Z.current), Nn(
|
53688
|
+
function jn(Te) {
|
53689
|
+
const Re = Te ? (window.innerWidth - M0) / window.innerWidth : 1, ct = Te ? -M0 : 0;
|
53690
|
+
Z.current && window.clearTimeout(Z.current), Nn(ke.current, {
|
53691
53691
|
transition: `transform ${wn.DURATION}s cubic-bezier(${wn.EASE.join(",")})`,
|
53692
53692
|
transform: `scale(${Re}) translate3d(0, ${ct}px, 0)`
|
53693
|
-
}), !
|
53694
|
-
const Ke = wg(
|
53695
|
-
Nn(
|
53693
|
+
}), !Te && ke.current && (Z.current = setTimeout(() => {
|
53694
|
+
const Ke = wg(ke.current, b);
|
53695
|
+
Nn(ke.current, {
|
53696
53696
|
transition: "none",
|
53697
53697
|
transform: pr(b) ? `translate3d(0, ${Ke}px, 0)` : `translate3d(${Ke}px, 0, 0)`
|
53698
53698
|
});
|
53699
53699
|
}, 500));
|
53700
53700
|
}
|
53701
|
-
function In(
|
53701
|
+
function In(Te, Re) {
|
53702
53702
|
if (Re < 0) return;
|
53703
53703
|
const ct = pr(b) ? window.innerHeight : window.innerWidth, Ke = (ct - M0) / ct, wt = Ke + Re * (1 - Ke), It = -M0 + Re * M0;
|
53704
|
-
Nn(
|
53704
|
+
Nn(ke.current, {
|
53705
53705
|
transform: pr(b) ? `scale(${wt}) translate3d(0, ${It}px, 0)` : `scale(${wt}) translate3d(${It}px, 0, 0)`,
|
53706
53706
|
transition: "none"
|
53707
53707
|
});
|
53708
53708
|
}
|
53709
|
-
function xe(
|
53709
|
+
function xe(Te, Re) {
|
53710
53710
|
const ct = pr(b) ? window.innerHeight : window.innerWidth, Ke = Re ? (ct - M0) / ct : 1, wt = Re ? -M0 : 0;
|
53711
|
-
Re && Nn(
|
53711
|
+
Re && Nn(ke.current, {
|
53712
53712
|
transition: `transform ${wn.DURATION}s cubic-bezier(${wn.EASE.join(",")})`,
|
53713
53713
|
transform: pr(b) ? `scale(${Ke}) translate3d(0, ${wt}px, 0)` : `scale(${Ke}) translate3d(${wt}px, 0, 0)`
|
53714
53714
|
});
|
53715
53715
|
}
|
53716
53716
|
return /* @__PURE__ */ Ae.createElement(lW, {
|
53717
53717
|
modal: v,
|
53718
|
-
onOpenChange: (
|
53718
|
+
onOpenChange: (Te) => {
|
53719
53719
|
if (t !== void 0) {
|
53720
|
-
e == null || e(
|
53720
|
+
e == null || e(Te);
|
53721
53721
|
return;
|
53722
53722
|
}
|
53723
|
-
|
53723
|
+
Te ? (P(!0), D(Te)) : Ge();
|
53724
53724
|
},
|
53725
53725
|
open: S
|
53726
53726
|
}, /* @__PURE__ */ Ae.createElement(TZ.Provider, {
|
53727
53727
|
value: {
|
53728
53728
|
visible: H,
|
53729
|
-
activeSnapPoint:
|
53729
|
+
activeSnapPoint: ge,
|
53730
53730
|
snapPoints: o,
|
53731
53731
|
setActiveSnapPoint: se,
|
53732
|
-
drawerRef:
|
53732
|
+
drawerRef: ke,
|
53733
53733
|
overlayRef: he,
|
53734
53734
|
scaleBackground: Wt,
|
53735
53735
|
onOpenChange: e,
|
@@ -53746,7 +53746,7 @@ function zZ({ open: t, onOpenChange: e, children: n, shouldScaleBackground: r, o
|
|
53746
53746
|
onNestedDrag: In,
|
53747
53747
|
onNestedOpenChange: jn,
|
53748
53748
|
onNestedRelease: xe,
|
53749
|
-
keyboardIsOpen:
|
53749
|
+
keyboardIsOpen: me,
|
53750
53750
|
openProp: t,
|
53751
53751
|
modal: v,
|
53752
53752
|
snapPointsOffset: Be,
|
@@ -75947,8 +75947,8 @@ function XQ(t) {
|
|
75947
75947
|
const nWe = YGe, rWe = JGe, iWe = KGe, sWe = XGe;
|
75948
75948
|
var up = '[cmdk-group=""]', p7 = '[cmdk-group-items=""]', oWe = '[cmdk-group-heading=""]', kE = '[cmdk-item=""]', DR = `${kE}:not([aria-disabled="true"])`, Bx = "cmdk-item-select", B0 = "data-value", aWe = (t, e, n) => iGe(t, e, n), eJ = C.createContext(void 0), Sy = () => C.useContext(eJ), tJ = C.createContext(void 0), xE = () => C.useContext(tJ), nJ = C.createContext(void 0), rJ = C.forwardRef((t, e) => {
|
75949
75949
|
let n = Xf(() => {
|
75950
|
-
var oe,
|
75951
|
-
return { search: "", value: (
|
75950
|
+
var oe, ye;
|
75951
|
+
return { search: "", value: (ye = (oe = t.value) != null ? oe : t.defaultValue) != null ? ye : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
75952
75952
|
}), r = Xf(() => /* @__PURE__ */ new Set()), i = Xf(() => /* @__PURE__ */ new Map()), s = Xf(() => /* @__PURE__ */ new Map()), o = Xf(() => /* @__PURE__ */ new Set()), a = iJ(t), { label: l, children: c, value: u, onValueChange: f, filter: d, shouldFilter: h, loop: p, disablePointerSelection: m = !1, vimBindings: g = !0, ...v } = t, k = C.useId(), w = C.useId(), b = C.useId(), x = C.useRef(null), E = vWe();
|
75953
75953
|
Q1(() => {
|
75954
75954
|
if (u !== void 0) {
|
@@ -75958,25 +75958,25 @@ var up = '[cmdk-group=""]', p7 = '[cmdk-group-items=""]', oWe = '[cmdk-group-hea
|
|
75958
75958
|
}, [u]), Q1(() => {
|
75959
75959
|
E(6, G);
|
75960
75960
|
}, []);
|
75961
|
-
let L = C.useMemo(() => ({ subscribe: (oe) => (o.current.add(oe), () => o.current.delete(oe)), snapshot: () => n.current, setState: (oe,
|
75962
|
-
var ue, Z,
|
75963
|
-
if (!Object.is(n.current[oe],
|
75964
|
-
if (n.current[oe] =
|
75961
|
+
let L = C.useMemo(() => ({ subscribe: (oe) => (o.current.add(oe), () => o.current.delete(oe)), snapshot: () => n.current, setState: (oe, ye, we) => {
|
75962
|
+
var ue, Z, be;
|
75963
|
+
if (!Object.is(n.current[oe], ye)) {
|
75964
|
+
if (n.current[oe] = ye, oe === "search") H(), I(), E(1, P);
|
75965
75965
|
else if (oe === "value" && (we || E(5, G), ((ue = a.current) == null ? void 0 : ue.value) !== void 0)) {
|
75966
|
-
let
|
75967
|
-
(
|
75966
|
+
let me = ye ?? "";
|
75967
|
+
(be = (Z = a.current).onValueChange) == null || be.call(Z, me);
|
75968
75968
|
return;
|
75969
75969
|
}
|
75970
75970
|
L.emit();
|
75971
75971
|
}
|
75972
75972
|
}, emit: () => {
|
75973
75973
|
o.current.forEach((oe) => oe());
|
75974
|
-
} }), []), S = C.useMemo(() => ({ value: (oe,
|
75974
|
+
} }), []), S = C.useMemo(() => ({ value: (oe, ye, we) => {
|
75975
75975
|
var ue;
|
75976
|
-
|
75976
|
+
ye !== ((ue = s.current.get(oe)) == null ? void 0 : ue.value) && (s.current.set(oe, { value: ye, keywords: we }), n.current.filtered.items.set(oe, D(ye, we)), E(2, () => {
|
75977
75977
|
I(), L.emit();
|
75978
75978
|
}));
|
75979
|
-
}, item: (oe,
|
75979
|
+
}, item: (oe, ye) => (r.current.add(oe), ye && (i.current.has(ye) ? i.current.get(ye).add(oe) : i.current.set(ye, /* @__PURE__ */ new Set([oe]))), E(3, () => {
|
75980
75980
|
H(), I(), n.current.value || P(), L.emit();
|
75981
75981
|
}), () => {
|
75982
75982
|
s.current.delete(oe), r.current.delete(oe), n.current.filtered.items.delete(oe);
|
@@ -75987,60 +75987,60 @@ var up = '[cmdk-group=""]', p7 = '[cmdk-group-items=""]', oWe = '[cmdk-group-hea
|
|
75987
75987
|
}), group: (oe) => (i.current.has(oe) || i.current.set(oe, /* @__PURE__ */ new Set()), () => {
|
75988
75988
|
s.current.delete(oe), i.current.delete(oe);
|
75989
75989
|
}), filter: () => a.current.shouldFilter, label: l || t["aria-label"], disablePointerSelection: m, listId: k, inputId: b, labelId: w, listInnerRef: x }), []);
|
75990
|
-
function D(oe,
|
75990
|
+
function D(oe, ye) {
|
75991
75991
|
var we, ue;
|
75992
75992
|
let Z = (ue = (we = a.current) == null ? void 0 : we.filter) != null ? ue : aWe;
|
75993
|
-
return oe ? Z(oe, n.current.search,
|
75993
|
+
return oe ? Z(oe, n.current.search, ye) : 0;
|
75994
75994
|
}
|
75995
75995
|
function I() {
|
75996
75996
|
if (!n.current.search || a.current.shouldFilter === !1) return;
|
75997
|
-
let oe = n.current.filtered.items,
|
75997
|
+
let oe = n.current.filtered.items, ye = [];
|
75998
75998
|
n.current.filtered.groups.forEach((ue) => {
|
75999
|
-
let Z = i.current.get(ue),
|
76000
|
-
Z.forEach((
|
76001
|
-
let Ue = oe.get(
|
76002
|
-
|
76003
|
-
}),
|
75999
|
+
let Z = i.current.get(ue), be = 0;
|
76000
|
+
Z.forEach((me) => {
|
76001
|
+
let Ue = oe.get(me);
|
76002
|
+
be = Math.max(Ue, be);
|
76003
|
+
}), ye.push([ue, be]);
|
76004
76004
|
});
|
76005
76005
|
let we = x.current;
|
76006
76006
|
_().sort((ue, Z) => {
|
76007
|
-
var
|
76008
|
-
let Ue = ue.getAttribute("id"),
|
76009
|
-
return ((
|
76007
|
+
var be, me;
|
76008
|
+
let Ue = ue.getAttribute("id"), ke = Z.getAttribute("id");
|
76009
|
+
return ((be = oe.get(ke)) != null ? be : 0) - ((me = oe.get(Ue)) != null ? me : 0);
|
76010
76010
|
}).forEach((ue) => {
|
76011
76011
|
let Z = ue.closest(p7);
|
76012
76012
|
Z ? Z.appendChild(ue.parentElement === Z ? ue : ue.closest(`${p7} > *`)) : we.appendChild(ue.parentElement === we ? ue : ue.closest(`${p7} > *`));
|
76013
|
-
}),
|
76013
|
+
}), ye.sort((ue, Z) => Z[1] - ue[1]).forEach((ue) => {
|
76014
76014
|
let Z = x.current.querySelector(`${up}[${B0}="${encodeURIComponent(ue[0])}"]`);
|
76015
76015
|
Z == null || Z.parentElement.appendChild(Z);
|
76016
76016
|
});
|
76017
76017
|
}
|
76018
76018
|
function P() {
|
76019
|
-
let oe = _().find((we) => we.getAttribute("aria-disabled") !== "true"),
|
76020
|
-
L.setState("value",
|
76019
|
+
let oe = _().find((we) => we.getAttribute("aria-disabled") !== "true"), ye = oe == null ? void 0 : oe.getAttribute(B0);
|
76020
|
+
L.setState("value", ye || void 0);
|
76021
76021
|
}
|
76022
76022
|
function H() {
|
76023
|
-
var oe,
|
76023
|
+
var oe, ye, we, ue;
|
76024
76024
|
if (!n.current.search || a.current.shouldFilter === !1) {
|
76025
76025
|
n.current.filtered.count = r.current.size;
|
76026
76026
|
return;
|
76027
76027
|
}
|
76028
76028
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
76029
76029
|
let Z = 0;
|
76030
|
-
for (let
|
76031
|
-
let
|
76032
|
-
n.current.filtered.items.set(
|
76030
|
+
for (let be of r.current) {
|
76031
|
+
let me = (ye = (oe = s.current.get(be)) == null ? void 0 : oe.value) != null ? ye : "", Ue = (ue = (we = s.current.get(be)) == null ? void 0 : we.keywords) != null ? ue : [], ke = D(me, Ue);
|
76032
|
+
n.current.filtered.items.set(be, ke), ke > 0 && Z++;
|
76033
76033
|
}
|
76034
|
-
for (let [
|
76035
|
-
n.current.filtered.groups.add(
|
76034
|
+
for (let [be, me] of i.current) for (let Ue of me) if (n.current.filtered.items.get(Ue) > 0) {
|
76035
|
+
n.current.filtered.groups.add(be);
|
76036
76036
|
break;
|
76037
76037
|
}
|
76038
76038
|
n.current.filtered.count = Z;
|
76039
76039
|
}
|
76040
76040
|
function G() {
|
76041
|
-
var oe,
|
76041
|
+
var oe, ye, we;
|
76042
76042
|
let ue = q();
|
76043
|
-
ue && (((oe = ue.parentElement) == null ? void 0 : oe.firstChild) === ue && ((we = (
|
76043
|
+
ue && (((oe = ue.parentElement) == null ? void 0 : oe.firstChild) === ue && ((we = (ye = ue.closest(up)) == null ? void 0 : ye.querySelector(oWe)) == null || we.scrollIntoView({ block: "nearest" })), ue.scrollIntoView({ block: "nearest" }));
|
76044
76044
|
}
|
76045
76045
|
function q() {
|
76046
76046
|
var oe;
|
@@ -76051,16 +76051,16 @@ var up = '[cmdk-group=""]', p7 = '[cmdk-group-items=""]', oWe = '[cmdk-group-hea
|
|
76051
76051
|
return Array.from((oe = x.current) == null ? void 0 : oe.querySelectorAll(DR));
|
76052
76052
|
}
|
76053
76053
|
function Y(oe) {
|
76054
|
-
let
|
76055
|
-
|
76054
|
+
let ye = _()[oe];
|
76055
|
+
ye && L.setState("value", ye.getAttribute(B0));
|
76056
76056
|
}
|
76057
76057
|
function J(oe) {
|
76058
|
-
var
|
76059
|
-
let we = q(), ue = _(), Z = ue.findIndex((
|
76060
|
-
(
|
76058
|
+
var ye;
|
76059
|
+
let we = q(), ue = _(), Z = ue.findIndex((me) => me === we), be = ue[Z + oe];
|
76060
|
+
(ye = a.current) != null && ye.loop && (be = Z + oe < 0 ? ue[ue.length - 1] : Z + oe === ue.length ? ue[0] : ue[Z + oe]), be && L.setState("value", be.getAttribute(B0));
|
76061
76061
|
}
|
76062
76062
|
function ne(oe) {
|
76063
|
-
let
|
76063
|
+
let ye = q(), we = ye == null ? void 0 : ye.closest(up), ue;
|
76064
76064
|
for (; we && !ue; ) we = oe > 0 ? yWe(we, up) : gWe(we, up), ue = we == null ? void 0 : we.querySelector(DR);
|
76065
76065
|
ue ? L.setState("value", ue.getAttribute(B0)) : J(oe);
|
76066
76066
|
}
|
@@ -76070,8 +76070,8 @@ var up = '[cmdk-group=""]', p7 = '[cmdk-group-items=""]', oWe = '[cmdk-group-hea
|
|
76070
76070
|
oe.preventDefault(), oe.metaKey ? Y(0) : oe.altKey ? ne(-1) : J(-1);
|
76071
76071
|
};
|
76072
76072
|
return C.createElement(go.div, { ref: e, tabIndex: -1, ...v, "cmdk-root": "", onKeyDown: (oe) => {
|
76073
|
-
var
|
76074
|
-
if ((
|
76073
|
+
var ye;
|
76074
|
+
if ((ye = v.onKeyDown) == null || ye.call(v, oe), !oe.defaultPrevented) switch (oe.key) {
|
76075
76075
|
case "n":
|
76076
76076
|
case "j": {
|
76077
76077
|
g && oe.ctrlKey && he(oe);
|
@@ -76598,10 +76598,10 @@ var [DWe, jWe] = hJ(Kb, {
|
|
76598
76598
|
}),
|
76599
76599
|
onPointerMove: et(t.onPointerMove, (q) => {
|
76600
76600
|
if (!w.current) return;
|
76601
|
-
const _ = q.clientX - w.current.x, Y = q.clientY - w.current.y, J = !!b.current, ne = ["left", "right"].includes(m.swipeDirection), Q = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, he = ne ? Q(0, _) : 0, Ce = ne ? 0 : Q(0, Y), oe = q.pointerType === "touch" ? 10 : 2,
|
76602
|
-
J ? (b.current =
|
76601
|
+
const _ = q.clientX - w.current.x, Y = q.clientY - w.current.y, J = !!b.current, ne = ["left", "right"].includes(m.swipeDirection), Q = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, he = ne ? Q(0, _) : 0, Ce = ne ? 0 : Q(0, Y), oe = q.pointerType === "touch" ? 10 : 2, ye = { x: he, y: Ce }, we = { originalEvent: q, delta: ye };
|
76602
|
+
J ? (b.current = ye, Eg(LWe, f, we, {
|
76603
76603
|
discrete: !1
|
76604
|
-
})) : jR(
|
76604
|
+
})) : jR(ye, m.swipeDirection, oe) ? (b.current = ye, Eg(EWe, u, we, {
|
76605
76605
|
discrete: !1
|
76606
76606
|
}), q.target.setPointerCapture(q.pointerId)) : (Math.abs(_) > oe || Math.abs(Y) > oe) && (w.current = null);
|
76607
76607
|
}),
|
@@ -77558,60 +77558,60 @@ function xZe(t, e, n, r, i, s, o, a, l, c, u, f, d, h, p, m, g, v, k) {
|
|
77558
77558
|
touch: 600
|
77559
77559
|
}, H = p ? 43 : 25;
|
77560
77560
|
let G = !1, q = 0, _ = 0, Y = !1, J = !1, ne = !1, Q = !1;
|
77561
|
-
function he(
|
77561
|
+
function he(Ne) {
|
77562
77562
|
if (!k) return;
|
77563
77563
|
function je($) {
|
77564
|
-
(Xb(k) || k(
|
77564
|
+
(Xb(k) || k(Ne, $)) && Z($);
|
77565
77565
|
}
|
77566
|
-
const
|
77567
|
-
L.add(
|
77568
|
-
}, E).add(
|
77569
|
-
}).add(
|
77566
|
+
const ge = e;
|
77567
|
+
L.add(ge, "dragstart", ($) => $.preventDefault(), E).add(ge, "touchmove", () => {
|
77568
|
+
}, E).add(ge, "touchend", () => {
|
77569
|
+
}).add(ge, "touchstart", je).add(ge, "mousedown", je).add(ge, "touchcancel", me).add(ge, "contextmenu", me).add(ge, "click", Ue, !0);
|
77570
77570
|
}
|
77571
77571
|
function Ce() {
|
77572
77572
|
L.clear(), S.clear();
|
77573
77573
|
}
|
77574
77574
|
function oe() {
|
77575
|
-
const
|
77576
|
-
S.add(
|
77575
|
+
const Ne = Q ? n : e;
|
77576
|
+
S.add(Ne, "touchmove", be, E).add(Ne, "touchend", me).add(Ne, "mousemove", be, E).add(Ne, "mouseup", me);
|
77577
77577
|
}
|
77578
|
-
function
|
77579
|
-
const je =
|
77578
|
+
function ye(Ne) {
|
77579
|
+
const je = Ne.nodeName || "";
|
77580
77580
|
return x.includes(je);
|
77581
77581
|
}
|
77582
77582
|
function we() {
|
77583
77583
|
return (p ? P : I)[Q ? "mouse" : "touch"];
|
77584
77584
|
}
|
77585
|
-
function ue(
|
77586
|
-
const
|
77587
|
-
return p || Gn(
|
77585
|
+
function ue(Ne, je) {
|
77586
|
+
const ge = f.add(SE(Ne) * -1), $ = u.byDistance(Ne, !p).distance;
|
77587
|
+
return p || Gn(Ne) < D ? $ : g && je ? $ * 0.5 : u.byIndex(ge.get(), 0).distance;
|
77588
77588
|
}
|
77589
|
-
function Z(
|
77590
|
-
const je = qx(
|
77591
|
-
Q = je, ne = p && je && !
|
77589
|
+
function Z(Ne) {
|
77590
|
+
const je = qx(Ne, r);
|
77591
|
+
Q = je, ne = p && je && !Ne.buttons && G, G = tm(i.get(), o.get()) >= 2, !(je && Ne.button !== 0) && (ye(Ne.target) || (Y = !0, s.pointerDown(Ne), c.useFriction(0).useDuration(0), i.set(o), oe(), q = s.readPoint(Ne), _ = s.readPoint(Ne, w), d.emit("pointerDown")));
|
77592
77592
|
}
|
77593
|
-
function
|
77594
|
-
if (!qx(
|
77595
|
-
const
|
77596
|
-
if (!J && !Q && (!
|
77597
|
-
return
|
77598
|
-
const Be = s.pointerMove(
|
77599
|
-
se > m && (ne = !0), c.useFriction(0.3).useDuration(0.75), a.start(), i.add(b(Be)),
|
77593
|
+
function be(Ne) {
|
77594
|
+
if (!qx(Ne, r) && Ne.touches.length >= 2) return me(Ne);
|
77595
|
+
const ge = s.readPoint(Ne), $ = s.readPoint(Ne, w), se = tm(ge, q), re = tm($, _);
|
77596
|
+
if (!J && !Q && (!Ne.cancelable || (J = se > re, !J)))
|
77597
|
+
return me(Ne);
|
77598
|
+
const Be = s.pointerMove(Ne);
|
77599
|
+
se > m && (ne = !0), c.useFriction(0.3).useDuration(0.75), a.start(), i.add(b(Be)), Ne.preventDefault();
|
77600
77600
|
}
|
77601
|
-
function
|
77602
|
-
const
|
77601
|
+
function me(Ne) {
|
77602
|
+
const ge = u.byDistance(0, !1).index !== f.get(), $ = s.pointerUp(Ne) * we(), se = ue(b($), ge), re = vZe($, se), Be = H - 10 * re, U = v + re / 50;
|
77603
77603
|
J = !1, Y = !1, S.clear(), c.useDuration(Be).useFriction(U), l.distance(se, !p), Q = !1, d.emit("pointerUp");
|
77604
77604
|
}
|
77605
|
-
function Ue(
|
77606
|
-
ne && (
|
77605
|
+
function Ue(Ne) {
|
77606
|
+
ne && (Ne.stopPropagation(), Ne.preventDefault(), ne = !1);
|
77607
77607
|
}
|
77608
|
-
function
|
77608
|
+
function ke() {
|
77609
77609
|
return Y;
|
77610
77610
|
}
|
77611
77611
|
return {
|
77612
77612
|
init: he,
|
77613
77613
|
destroy: Ce,
|
77614
|
-
pointerDown:
|
77614
|
+
pointerDown: ke
|
77615
77615
|
};
|
77616
77616
|
}
|
77617
77617
|
function MZe(t, e) {
|
@@ -78237,13 +78237,13 @@ function UZe(t, e, n, r, i, s, o) {
|
|
78237
78237
|
endGap: he
|
78238
78238
|
} = HZe(P, D, I, n, Y, i), Ce = VZe(P, H, g, f, D, I, Q, he, L), {
|
78239
78239
|
snaps: oe,
|
78240
|
-
snapsAligned:
|
78240
|
+
snapsAligned: ye
|
78241
78241
|
} = IZe(P, q, D, I, Ce), we = -Po(oe) + Po(ne), {
|
78242
78242
|
snapsContained: ue,
|
78243
78243
|
scrollContainLimit: Z
|
78244
|
-
} = TZe(H, we,
|
78245
|
-
limit:
|
78246
|
-
} = NZe(we,
|
78244
|
+
} = TZe(H, we, ye, k, L), be = _ ? ue : ye, {
|
78245
|
+
limit: me
|
78246
|
+
} = NZe(we, be, f), Ue = OJ(Ey(be), u, f), ke = Ue.clone(), Se = Ym(n), Ne = ({
|
78247
78247
|
dragHandler: ht,
|
78248
78248
|
scrollBody: Wt,
|
78249
78249
|
scrollBounds: jn,
|
@@ -78258,7 +78258,7 @@ function UZe(t, e, n, r, i, s, o) {
|
|
78258
78258
|
location: jn,
|
78259
78259
|
offsetLocation: In,
|
78260
78260
|
scrollLooper: xe,
|
78261
|
-
slideLooper:
|
78261
|
+
slideLooper: Te,
|
78262
78262
|
dragHandler: Re,
|
78263
78263
|
animation: ct,
|
78264
78264
|
eventHandler: Ke,
|
@@ -78270,37 +78270,37 @@ function UZe(t, e, n, r, i, s, o) {
|
|
78270
78270
|
const Ft = ht.settled(), sn = !wt.shouldConstrain(), wr = It ? Ft : Ft && sn;
|
78271
78271
|
wr && !Re.pointerDown() && (ct.stop(), Ke.emit("settle")), wr || Ke.emit("scroll");
|
78272
78272
|
const ir = jn.get() * Kt + Be.get() * (1 - Kt);
|
78273
|
-
In.set(ir), It && (xe.loop(ht.direction()),
|
78274
|
-
},
|
78273
|
+
In.set(ir), It && (xe.loop(ht.direction()), Te.loop()), Wt.to(In.get());
|
78274
|
+
}, ge = wZe(r, i, (ht) => Ne(lt, ht), (ht) => je(lt, ht)), $ = 0.68, se = be[Ue.get()], re = Ep(se), Be = Ep(se), U = Ep(se), M = Ep(se), j = EZe(re, U, Be, M, d, $), z = PZe(f, be, we, me, M), ee = OZe(ge, Ue, ke, j, z, M, o), ce = jZe(me), de = Jm(), _e = _Ze(e, n, o, m), {
|
78275
78275
|
slideRegistry: Ge
|
78276
|
-
} = RZe(_, k,
|
78276
|
+
} = RZe(_, k, be, Z, Ce, Se), tt = zZe(t, n, Ge, ee, j, de, o, E), lt = {
|
78277
78277
|
ownerDocument: r,
|
78278
78278
|
ownerWindow: i,
|
78279
78279
|
eventHandler: o,
|
78280
78280
|
containerRect: D,
|
78281
78281
|
slideRects: I,
|
78282
|
-
animation:
|
78282
|
+
animation: ge,
|
78283
78283
|
axis: P,
|
78284
|
-
dragHandler: xZe(P, t, r, i, M, MZe(P, i), re,
|
78284
|
+
dragHandler: xZe(P, t, r, i, M, MZe(P, i), re, ge, ee, j, z, Ue, o, G, h, p, v, $, x),
|
78285
78285
|
eventStore: de,
|
78286
78286
|
percentOfView: G,
|
78287
78287
|
index: Ue,
|
78288
|
-
indexPrevious:
|
78289
|
-
limit:
|
78288
|
+
indexPrevious: ke,
|
78289
|
+
limit: me,
|
78290
78290
|
location: re,
|
78291
78291
|
offsetLocation: U,
|
78292
78292
|
previousLocation: Be,
|
78293
78293
|
options: s,
|
78294
78294
|
resizeHandler: SZe(e, o, i, n, P, w, S),
|
78295
78295
|
scrollBody: j,
|
78296
|
-
scrollBounds: LZe(
|
78297
|
-
scrollLooper: DZe(we,
|
78296
|
+
scrollBounds: LZe(me, U, M, j, G),
|
78297
|
+
scrollLooper: DZe(we, me, U, [re, U, Be, M]),
|
78298
78298
|
scrollProgress: ce,
|
78299
|
-
scrollSnapList:
|
78300
|
-
scrollSnaps:
|
78299
|
+
scrollSnapList: be.map(ce.get),
|
78300
|
+
scrollSnaps: be,
|
78301
78301
|
scrollTarget: z,
|
78302
78302
|
scrollTo: ee,
|
78303
|
-
slideLooper: BZe(P, H, we, J, ne, oe,
|
78303
|
+
slideLooper: BZe(P, H, we, J, ne, oe, be, U, n),
|
78304
78304
|
slideFocus: tt,
|
78305
78305
|
slidesHandler: FZe(e, o, b),
|
78306
78306
|
slidesInView: _e,
|
@@ -78411,32 +78411,32 @@ function $6(t, e, n) {
|
|
78411
78411
|
function S() {
|
78412
78412
|
const {
|
78413
78413
|
container: Se,
|
78414
|
-
slides:
|
78414
|
+
slides: Ne
|
78415
78415
|
} = w;
|
78416
78416
|
E = (Ux(Se) ? t.querySelector(Se) : Se) || t.children[0];
|
78417
|
-
const
|
78418
|
-
L = [].slice.call(
|
78417
|
+
const ge = Ux(Ne) ? E.querySelectorAll(Ne) : Ne;
|
78418
|
+
L = [].slice.call(ge || E.children);
|
78419
78419
|
}
|
78420
78420
|
function D(Se) {
|
78421
|
-
const
|
78422
|
-
if (Se.loop && !
|
78421
|
+
const Ne = UZe(t, E, L, r, i, Se, l);
|
78422
|
+
if (Se.loop && !Ne.slideLooper.canLoop()) {
|
78423
78423
|
const je = Object.assign({}, Se, {
|
78424
78424
|
loop: !1
|
78425
78425
|
});
|
78426
78426
|
return D(je);
|
78427
78427
|
}
|
78428
|
-
return
|
78428
|
+
return Ne;
|
78429
78429
|
}
|
78430
|
-
function I(Se,
|
78431
|
-
g || (k = c(k, Se), w = u(k), b =
|
78430
|
+
function I(Se, Ne) {
|
78431
|
+
g || (k = c(k, Se), w = u(k), b = Ne || b, S(), v = D(w), f([k, ...b.map(({
|
78432
78432
|
options: je
|
78433
|
-
}) => je)]).forEach((je) => a.add(je, "change", P)), w.active && (v.translate.to(v.location.get()), v.animation.init(), v.slidesInView.init(), v.slideFocus.init(
|
78433
|
+
}) => je)]).forEach((je) => a.add(je, "change", P)), w.active && (v.translate.to(v.location.get()), v.animation.init(), v.slidesInView.init(), v.slideFocus.init(ke), v.eventHandler.init(ke), v.resizeHandler.init(ke), v.slidesHandler.init(ke), v.options.loop && v.slideLooper.loop(), E.offsetParent && L.length && v.dragHandler.init(ke), x = o.init(ke, b)));
|
78434
78434
|
}
|
78435
|
-
function P(Se,
|
78435
|
+
function P(Se, Ne) {
|
78436
78436
|
const je = Ce();
|
78437
78437
|
H(), I(c({
|
78438
78438
|
startIndex: je
|
78439
|
-
}, Se),
|
78439
|
+
}, Se), Ne), l.emit("reInit");
|
78440
78440
|
}
|
78441
78441
|
function H() {
|
78442
78442
|
v.dragHandler.destroy(), v.eventStore.clear(), v.translate.clear(), v.slideLooper.clear(), v.resizeHandler.destroy(), v.slidesHandler.destroy(), v.slidesInView.destroy(), v.animation.destroy(), o.destroy(), a.clear();
|
@@ -78444,16 +78444,16 @@ function $6(t, e, n) {
|
|
78444
78444
|
function G() {
|
78445
78445
|
g || (g = !0, a.clear(), H(), l.emit("destroy"), l.clear());
|
78446
78446
|
}
|
78447
|
-
function q(Se,
|
78448
|
-
!w.active || g || (v.scrollBody.useBaseFriction().useDuration(
|
78447
|
+
function q(Se, Ne, je) {
|
78448
|
+
!w.active || g || (v.scrollBody.useBaseFriction().useDuration(Ne === !0 ? 0 : w.duration), v.scrollTo.index(Se, je || 0));
|
78449
78449
|
}
|
78450
78450
|
function _(Se) {
|
78451
|
-
const
|
78452
|
-
q(
|
78451
|
+
const Ne = v.index.add(1).get();
|
78452
|
+
q(Ne, Se, -1);
|
78453
78453
|
}
|
78454
78454
|
function Y(Se) {
|
78455
|
-
const
|
78456
|
-
q(
|
78455
|
+
const Ne = v.index.add(-1).get();
|
78456
|
+
q(Ne, Se, 1);
|
78457
78457
|
}
|
78458
78458
|
function J() {
|
78459
78459
|
return v.index.add(1).get() !== Ce();
|
@@ -78473,7 +78473,7 @@ function $6(t, e, n) {
|
|
78473
78473
|
function oe() {
|
78474
78474
|
return v.indexPrevious.get();
|
78475
78475
|
}
|
78476
|
-
function
|
78476
|
+
function ye() {
|
78477
78477
|
return v.slidesInView.get();
|
78478
78478
|
}
|
78479
78479
|
function we() {
|
@@ -78485,19 +78485,19 @@ function $6(t, e, n) {
|
|
78485
78485
|
function Z() {
|
78486
78486
|
return v;
|
78487
78487
|
}
|
78488
|
-
function
|
78488
|
+
function be() {
|
78489
78489
|
return t;
|
78490
78490
|
}
|
78491
|
-
function
|
78491
|
+
function me() {
|
78492
78492
|
return E;
|
78493
78493
|
}
|
78494
78494
|
function Ue() {
|
78495
78495
|
return L;
|
78496
78496
|
}
|
78497
|
-
const
|
78497
|
+
const ke = {
|
78498
78498
|
canScrollNext: J,
|
78499
78499
|
canScrollPrev: ne,
|
78500
|
-
containerNode:
|
78500
|
+
containerNode: me,
|
78501
78501
|
internalEngine: Z,
|
78502
78502
|
destroy: G,
|
78503
78503
|
off: h,
|
@@ -78506,7 +78506,7 @@ function $6(t, e, n) {
|
|
78506
78506
|
plugins: ue,
|
78507
78507
|
previousScrollSnap: oe,
|
78508
78508
|
reInit: m,
|
78509
|
-
rootNode:
|
78509
|
+
rootNode: be,
|
78510
78510
|
scrollNext: _,
|
78511
78511
|
scrollPrev: Y,
|
78512
78512
|
scrollProgress: he,
|
@@ -78514,10 +78514,10 @@ function $6(t, e, n) {
|
|
78514
78514
|
scrollTo: q,
|
78515
78515
|
selectedScrollSnap: Ce,
|
78516
78516
|
slideNodes: Ue,
|
78517
|
-
slidesInView:
|
78517
|
+
slidesInView: ye,
|
78518
78518
|
slidesNotInView: we
|
78519
78519
|
};
|
78520
|
-
return I(e, n), setTimeout(() => l.emit("init"), 0),
|
78520
|
+
return I(e, n), setTimeout(() => l.emit("init"), 0), ke;
|
78521
78521
|
}
|
78522
78522
|
$6.globalOptions = void 0;
|
78523
78523
|
function LE(t = {}, e = []) {
|
@@ -86943,7 +86943,7 @@ var d$ = { exports: {} };
|
|
86943
86943
|
return z;
|
86944
86944
|
case "utf8":
|
86945
86945
|
case "utf-8":
|
86946
|
-
return
|
86946
|
+
return ke(M).length;
|
86947
86947
|
case "ucs2":
|
86948
86948
|
case "ucs-2":
|
86949
86949
|
case "utf16le":
|
@@ -86954,7 +86954,7 @@ var d$ = { exports: {} };
|
|
86954
86954
|
case "base64":
|
86955
86955
|
return je(M).length;
|
86956
86956
|
default:
|
86957
|
-
if (ce) return ee ? -1 :
|
86957
|
+
if (ce) return ee ? -1 : ke(M).length;
|
86958
86958
|
j = ("" + j).toLowerCase(), ce = !0;
|
86959
86959
|
}
|
86960
86960
|
}
|
@@ -87035,19 +87035,19 @@ var d$ = { exports: {} };
|
|
87035
87035
|
return Ge;
|
87036
87036
|
}
|
87037
87037
|
function P(M, j, z, ee) {
|
87038
|
-
return
|
87038
|
+
return ge(ke(j, M.length - z), M, z, ee);
|
87039
87039
|
}
|
87040
87040
|
function H(M, j, z, ee) {
|
87041
|
-
return
|
87041
|
+
return ge(Se(j), M, z, ee);
|
87042
87042
|
}
|
87043
87043
|
function G(M, j, z, ee) {
|
87044
87044
|
return H(M, j, z, ee);
|
87045
87045
|
}
|
87046
87046
|
function q(M, j, z, ee) {
|
87047
|
-
return
|
87047
|
+
return ge(je(j), M, z, ee);
|
87048
87048
|
}
|
87049
87049
|
function _(M, j, z, ee) {
|
87050
|
-
return
|
87050
|
+
return ge(Ne(j, M.length - z), M, z, ee);
|
87051
87051
|
}
|
87052
87052
|
function Y(M, j, z) {
|
87053
87053
|
return j === 0 && z === M.length ? re.fromByteArray(M) : re.fromByteArray(M.slice(j, z));
|
@@ -87092,7 +87092,7 @@ var d$ = { exports: {} };
|
|
87092
87092
|
for (var ee = M.slice(j, z), ce = "", de = 0; de < ee.length; de += 2) ce += l(ee[de] + 256 * ee[de + 1]);
|
87093
87093
|
return ce;
|
87094
87094
|
}
|
87095
|
-
function
|
87095
|
+
function ye(M, j, z) {
|
87096
87096
|
if (M % 1 != 0 || 0 > M) throw new RangeError("offset is not uint");
|
87097
87097
|
if (M + j > z) throw new RangeError("Trying to access beyond buffer length");
|
87098
87098
|
}
|
@@ -87108,10 +87108,10 @@ var d$ = { exports: {} };
|
|
87108
87108
|
function Z(M, j, z, ee, ce) {
|
87109
87109
|
return j = +j, z >>>= 0, ce || ue(M, j, z, 4), Be.write(M, j, z, ee, 23, 4), z + 4;
|
87110
87110
|
}
|
87111
|
-
function
|
87111
|
+
function be(M, j, z, ee, ce) {
|
87112
87112
|
return j = +j, z >>>= 0, ce || ue(M, j, z, 8), Be.write(M, j, z, ee, 52, 8), z + 8;
|
87113
87113
|
}
|
87114
|
-
function
|
87114
|
+
function me(M) {
|
87115
87115
|
if (M = M.split("=")[0], M = M.trim().replace(U, ""), 2 > M.length) return "";
|
87116
87116
|
for (; M.length % 4 != 0; ) M += "=";
|
87117
87117
|
return M;
|
@@ -87119,7 +87119,7 @@ var d$ = { exports: {} };
|
|
87119
87119
|
function Ue(M) {
|
87120
87120
|
return 16 > M ? "0" + M.toString(16) : M.toString(16);
|
87121
87121
|
}
|
87122
|
-
function
|
87122
|
+
function ke(M, j) {
|
87123
87123
|
j = j || 1 / 0;
|
87124
87124
|
for (var z, ee = M.length, ce = null, de = [], _e = 0; _e < ee; ++_e) {
|
87125
87125
|
if (z = M.charCodeAt(_e), 55295 < z && 57344 > z) {
|
@@ -87160,14 +87160,14 @@ var d$ = { exports: {} };
|
|
87160
87160
|
for (var j = [], z = 0; z < M.length; ++z) j.push(255 & M.charCodeAt(z));
|
87161
87161
|
return j;
|
87162
87162
|
}
|
87163
|
-
function
|
87163
|
+
function Ne(M, j) {
|
87164
87164
|
for (var z, ee, ce, de = [], _e = 0; _e < M.length && !(0 > (j -= 2)); ++_e) z = M.charCodeAt(_e), ee = z >> 8, ce = z % 256, de.push(ce), de.push(ee);
|
87165
87165
|
return de;
|
87166
87166
|
}
|
87167
87167
|
function je(M) {
|
87168
|
-
return re.toByteArray(
|
87168
|
+
return re.toByteArray(me(M));
|
87169
87169
|
}
|
87170
|
-
function
|
87170
|
+
function ge(M, j, z, ee) {
|
87171
87171
|
for (var ce = 0; ce < ee && !(ce + z >= j.length || ce >= M.length); ++ce) j[ce + z] = M[ce];
|
87172
87172
|
return ce;
|
87173
87173
|
}
|
@@ -87320,53 +87320,53 @@ var d$ = { exports: {} };
|
|
87320
87320
|
var ee = this.subarray(M, j);
|
87321
87321
|
return ee.__proto__ = f.prototype, ee;
|
87322
87322
|
}, f.prototype.readUIntLE = function(M, j, z) {
|
87323
|
-
M >>>= 0, j >>>= 0, z ||
|
87323
|
+
M >>>= 0, j >>>= 0, z || ye(M, j, this.length);
|
87324
87324
|
for (var ee = this[M], ce = 1, de = 0; ++de < j && (ce *= 256); ) ee += this[M + de] * ce;
|
87325
87325
|
return ee;
|
87326
87326
|
}, f.prototype.readUIntBE = function(M, j, z) {
|
87327
|
-
M >>>= 0, j >>>= 0, z ||
|
87327
|
+
M >>>= 0, j >>>= 0, z || ye(M, j, this.length);
|
87328
87328
|
for (var ee = this[M + --j], ce = 1; 0 < j && (ce *= 256); ) ee += this[M + --j] * ce;
|
87329
87329
|
return ee;
|
87330
87330
|
}, f.prototype.readUInt8 = function(M, j) {
|
87331
|
-
return M >>>= 0, j ||
|
87331
|
+
return M >>>= 0, j || ye(M, 1, this.length), this[M];
|
87332
87332
|
}, f.prototype.readUInt16LE = function(M, j) {
|
87333
|
-
return M >>>= 0, j ||
|
87333
|
+
return M >>>= 0, j || ye(M, 2, this.length), this[M] | this[M + 1] << 8;
|
87334
87334
|
}, f.prototype.readUInt16BE = function(M, j) {
|
87335
|
-
return M >>>= 0, j ||
|
87335
|
+
return M >>>= 0, j || ye(M, 2, this.length), this[M] << 8 | this[M + 1];
|
87336
87336
|
}, f.prototype.readUInt32LE = function(M, j) {
|
87337
|
-
return M >>>= 0, j ||
|
87337
|
+
return M >>>= 0, j || ye(M, 4, this.length), (this[M] | this[M + 1] << 8 | this[M + 2] << 16) + 16777216 * this[M + 3];
|
87338
87338
|
}, f.prototype.readUInt32BE = function(M, j) {
|
87339
|
-
return M >>>= 0, j ||
|
87339
|
+
return M >>>= 0, j || ye(M, 4, this.length), 16777216 * this[M] + (this[M + 1] << 16 | this[M + 2] << 8 | this[M + 3]);
|
87340
87340
|
}, f.prototype.readIntLE = function(M, j, z) {
|
87341
|
-
M >>>= 0, j >>>= 0, z ||
|
87341
|
+
M >>>= 0, j >>>= 0, z || ye(M, j, this.length);
|
87342
87342
|
for (var ee = this[M], ce = 1, de = 0; ++de < j && (ce *= 256); ) ee += this[M + de] * ce;
|
87343
87343
|
return ce *= 128, ee >= ce && (ee -= i(2, 8 * j)), ee;
|
87344
87344
|
}, f.prototype.readIntBE = function(M, j, z) {
|
87345
|
-
M >>>= 0, j >>>= 0, z ||
|
87345
|
+
M >>>= 0, j >>>= 0, z || ye(M, j, this.length);
|
87346
87346
|
for (var ee = j, ce = 1, de = this[M + --ee]; 0 < ee && (ce *= 256); ) de += this[M + --ee] * ce;
|
87347
87347
|
return ce *= 128, de >= ce && (de -= i(2, 8 * j)), de;
|
87348
87348
|
}, f.prototype.readInt8 = function(M, j) {
|
87349
|
-
return M >>>= 0, j ||
|
87349
|
+
return M >>>= 0, j || ye(M, 1, this.length), 128 & this[M] ? -1 * (255 - this[M] + 1) : this[M];
|
87350
87350
|
}, f.prototype.readInt16LE = function(M, j) {
|
87351
|
-
M >>>= 0, j ||
|
87351
|
+
M >>>= 0, j || ye(M, 2, this.length);
|
87352
87352
|
var z = this[M] | this[M + 1] << 8;
|
87353
87353
|
return 32768 & z ? 4294901760 | z : z;
|
87354
87354
|
}, f.prototype.readInt16BE = function(M, j) {
|
87355
|
-
M >>>= 0, j ||
|
87355
|
+
M >>>= 0, j || ye(M, 2, this.length);
|
87356
87356
|
var z = this[M + 1] | this[M] << 8;
|
87357
87357
|
return 32768 & z ? 4294901760 | z : z;
|
87358
87358
|
}, f.prototype.readInt32LE = function(M, j) {
|
87359
|
-
return M >>>= 0, j ||
|
87359
|
+
return M >>>= 0, j || ye(M, 4, this.length), this[M] | this[M + 1] << 8 | this[M + 2] << 16 | this[M + 3] << 24;
|
87360
87360
|
}, f.prototype.readInt32BE = function(M, j) {
|
87361
|
-
return M >>>= 0, j ||
|
87361
|
+
return M >>>= 0, j || ye(M, 4, this.length), this[M] << 24 | this[M + 1] << 16 | this[M + 2] << 8 | this[M + 3];
|
87362
87362
|
}, f.prototype.readFloatLE = function(M, j) {
|
87363
|
-
return M >>>= 0, j ||
|
87363
|
+
return M >>>= 0, j || ye(M, 4, this.length), Be.read(this, M, !0, 23, 4);
|
87364
87364
|
}, f.prototype.readFloatBE = function(M, j) {
|
87365
|
-
return M >>>= 0, j ||
|
87365
|
+
return M >>>= 0, j || ye(M, 4, this.length), Be.read(this, M, !1, 23, 4);
|
87366
87366
|
}, f.prototype.readDoubleLE = function(M, j) {
|
87367
|
-
return M >>>= 0, j ||
|
87367
|
+
return M >>>= 0, j || ye(M, 8, this.length), Be.read(this, M, !0, 52, 8);
|
87368
87368
|
}, f.prototype.readDoubleBE = function(M, j) {
|
87369
|
-
return M >>>= 0, j ||
|
87369
|
+
return M >>>= 0, j || ye(M, 8, this.length), Be.read(this, M, !1, 52, 8);
|
87370
87370
|
}, f.prototype.writeUIntLE = function(M, j, z, ee) {
|
87371
87371
|
if (M = +M, j >>>= 0, z >>>= 0, !ee) {
|
87372
87372
|
var ce = i(2, 8 * z) - 1;
|
@@ -87424,9 +87424,9 @@ var d$ = { exports: {} };
|
|
87424
87424
|
}, f.prototype.writeFloatBE = function(M, j, z) {
|
87425
87425
|
return Z(this, M, j, !1, z);
|
87426
87426
|
}, f.prototype.writeDoubleLE = function(M, j, z) {
|
87427
|
-
return
|
87427
|
+
return be(this, M, j, !0, z);
|
87428
87428
|
}, f.prototype.writeDoubleBE = function(M, j, z) {
|
87429
|
-
return
|
87429
|
+
return be(this, M, j, !1, z);
|
87430
87430
|
}, f.prototype.copy = function(M, j, z, ee) {
|
87431
87431
|
if (!f.isBuffer(M)) throw new TypeError("argument should be a Buffer");
|
87432
87432
|
if (z || (z = 0), ee || ee === 0 || (ee = this.length), j >= M.length && (j = M.length), j || (j = 0), 0 < ee && ee < z && (ee = z), ee === z || M.length === 0 || this.length === 0) return 0;
|
@@ -88026,13 +88026,13 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88026
88026
|
return oe.from(U);
|
88027
88027
|
}
|
88028
88028
|
function u(U) {
|
88029
|
-
return oe.isBuffer(U) || U instanceof
|
88029
|
+
return oe.isBuffer(U) || U instanceof ye;
|
88030
88030
|
}
|
88031
88031
|
function f(U, M, j) {
|
88032
88032
|
return typeof U.prependListener == "function" ? U.prependListener(M, j) : void (U._events && U._events[M] ? Array.isArray(U._events[M]) ? U._events[M].unshift(j) : U._events[M] = [j, U._events[M]] : U.on(M, j));
|
88033
88033
|
}
|
88034
88034
|
function d(U, M, j) {
|
88035
|
-
ne = ne || s("./_stream_duplex"), U = U || {}, typeof j != "boolean" && (j = M instanceof ne), this.objectMode = !!U.objectMode, j && (this.objectMode = this.objectMode || !!U.readableObjectMode), this.highWaterMark = Se(this, U, "readableHighWaterMark", j), this.buffer = new
|
88035
|
+
ne = ne || s("./_stream_duplex"), U = U || {}, typeof j != "boolean" && (j = M instanceof ne), this.objectMode = !!U.objectMode, j && (this.objectMode = this.objectMode || !!U.readableObjectMode), this.highWaterMark = Se(this, U, "readableHighWaterMark", j), this.buffer = new me(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = U.emitClose !== !1, this.autoDestroy = !!U.autoDestroy, this.destroyed = !1, this.defaultEncoding = U.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, U.encoding && (!ue && (ue = s("string_decoder/").StringDecoder), this.decoder = new ue(U.encoding), this.encoding = U.encoding);
|
88036
88036
|
}
|
88037
88037
|
function h(U) {
|
88038
88038
|
if (ne = ne || s("./_stream_duplex"), !(this instanceof h)) return new h(U);
|
@@ -88048,7 +88048,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88048
88048
|
if (ee || (de = g(ce, M)), de) re(U, de);
|
88049
88049
|
else if (!(ce.objectMode || M && 0 < M.length)) z || (ce.reading = !1, E(U, ce));
|
88050
88050
|
else if (typeof M == "string" || ce.objectMode || Object.getPrototypeOf(M) === oe.prototype || (M = c(M)), z) ce.endEmitted ? re(U, new se()) : m(U, ce, M, !0);
|
88051
|
-
else if (ce.ended) re(U, new
|
88051
|
+
else if (ce.ended) re(U, new ge());
|
88052
88052
|
else {
|
88053
88053
|
if (ce.destroyed) return !1;
|
88054
88054
|
ce.reading = !1, ce.decoder && !j ? (M = ce.decoder.write(M), ce.objectMode || M.length !== 0 ? m(U, ce, M, !1) : E(U, ce)) : m(U, ce, M, !1);
|
@@ -88145,11 +88145,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88145
88145
|
s("events").EventEmitter;
|
88146
88146
|
var he = function(U, M) {
|
88147
88147
|
return U.listeners(M).length;
|
88148
|
-
}, Ce = s("./internal/streams/stream"), oe = s("buffer").Buffer,
|
88148
|
+
}, Ce = s("./internal/streams/stream"), oe = s("buffer").Buffer, ye = l.Uint8Array || function() {
|
88149
88149
|
}, we = s("util");
|
88150
88150
|
Q = we && we.debuglog ? we.debuglog("stream") : function() {
|
88151
88151
|
};
|
88152
|
-
var ue, Z,
|
88152
|
+
var ue, Z, be, me = s("./internal/streams/buffer_list"), Ue = s("./internal/streams/destroy"), ke = s("./internal/streams/state"), Se = ke.getHighWaterMark, Ne = s("../errors").codes, je = Ne.ERR_INVALID_ARG_TYPE, ge = Ne.ERR_STREAM_PUSH_AFTER_EOF, $ = Ne.ERR_METHOD_NOT_IMPLEMENTED, se = Ne.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
88153
88153
|
s("inherits")(h, Ce);
|
88154
88154
|
var re = Ue.errorOrDestroy, Be = ["error", "close", "destroy", "pause", "resume"];
|
88155
88155
|
Object.defineProperty(h.prototype, "destroyed", { enumerable: !1, get: function() {
|
@@ -88183,8 +88183,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88183
88183
|
}, h.prototype._read = function() {
|
88184
88184
|
re(this, new $("_read()"));
|
88185
88185
|
}, h.prototype.pipe = function(U, M) {
|
88186
|
-
function j(
|
88187
|
-
Q("onunpipe"),
|
88186
|
+
function j(Te, Re) {
|
88187
|
+
Q("onunpipe"), Te === lt && Re && Re.hasUnpiped === !1 && (Re.hasUnpiped = !0, ee());
|
88188
88188
|
}
|
88189
88189
|
function z() {
|
88190
88190
|
Q("onend"), U.end();
|
@@ -88192,13 +88192,13 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88192
88192
|
function ee() {
|
88193
88193
|
Q("cleanup"), U.removeListener("close", _e), U.removeListener("finish", Ge), U.removeListener("drain", In), U.removeListener("error", de), U.removeListener("unpipe", j), lt.removeListener("end", z), lt.removeListener("end", tt), lt.removeListener("data", ce), xe = !0, ht.awaitDrain && (!U._writableState || U._writableState.needDrain) && In();
|
88194
88194
|
}
|
88195
|
-
function ce(
|
88195
|
+
function ce(Te) {
|
88196
88196
|
Q("ondata");
|
88197
|
-
var Re = U.write(
|
88197
|
+
var Re = U.write(Te);
|
88198
88198
|
Q("dest.write", Re), Re === !1 && ((ht.pipesCount === 1 && ht.pipes === U || 1 < ht.pipesCount && J(ht.pipes, U) !== -1) && !xe && (Q("false write response, pause", ht.awaitDrain), ht.awaitDrain++), lt.pause());
|
88199
88199
|
}
|
88200
|
-
function de(
|
88201
|
-
Q("onerror",
|
88200
|
+
function de(Te) {
|
88201
|
+
Q("onerror", Te), tt(), U.removeListener("error", de), he(U, "error") === 0 && re(U, Te);
|
88202
88202
|
}
|
88203
88203
|
function _e() {
|
88204
88204
|
U.removeListener("finish", Ge), tt();
|
@@ -88288,7 +88288,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88288
88288
|
} }), h._fromList = q, Object.defineProperty(h.prototype, "readableLength", { enumerable: !1, get: function() {
|
88289
88289
|
return this._readableState.length;
|
88290
88290
|
} }), typeof Symbol == "function" && (h.from = function(U, M) {
|
88291
|
-
return
|
88291
|
+
return be === void 0 && (be = s("./internal/streams/from")), be(h, U, M);
|
88292
88292
|
});
|
88293
88293
|
}).call(this);
|
88294
88294
|
}).call(this, s("_process"), typeof is > "u" ? typeof self > "u" ? typeof window > "u" ? {} : window : self : is);
|
@@ -88355,7 +88355,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88355
88355
|
function d() {
|
88356
88356
|
}
|
88357
88357
|
function h($, se, re) {
|
88358
|
-
Y = Y || s("./_stream_duplex"), $ = $ || {}, typeof re != "boolean" && (re = se instanceof Y), this.objectMode = !!$.objectMode, re && (this.objectMode = this.objectMode || !!$.writableObjectMode), this.highWaterMark =
|
88358
|
+
Y = Y || s("./_stream_duplex"), $ = $ || {}, typeof re != "boolean" && (re = se instanceof Y), this.objectMode = !!$.objectMode, re && (this.objectMode = this.objectMode || !!$.writableObjectMode), this.highWaterMark = ye(this, $, "writableHighWaterMark", re), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
88359
88359
|
var Be = $.decodeStrings === !1;
|
88360
88360
|
this.decodeStrings = !Be, this.defaultEncoding = $.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(U) {
|
88361
88361
|
E(se, U);
|
@@ -88364,7 +88364,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88364
88364
|
function p($) {
|
88365
88365
|
Y = Y || s("./_stream_duplex");
|
88366
88366
|
var se = this instanceof Y;
|
88367
|
-
return se ||
|
88367
|
+
return se || ge.call(p, this) ? (this._writableState = new h($, this, se), this.writable = !0, $ && (typeof $.write == "function" && (this._write = $.write), typeof $.writev == "function" && (this._writev = $.writev), typeof $.destroy == "function" && (this._destroy = $.destroy), typeof $.final == "function" && (this._final = $.final)), void ne.call(this)) : new p($);
|
88368
88368
|
}
|
88369
88369
|
function m($, se) {
|
88370
88370
|
var re = new Se();
|
@@ -88372,7 +88372,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88372
88372
|
}
|
88373
88373
|
function g($, se, re, Be) {
|
88374
88374
|
var U;
|
88375
|
-
return re === null ? U = new
|
88375
|
+
return re === null ? U = new ke() : typeof re != "string" && !se.objectMode && (U = new ue("chunk", ["string", "Buffer"], re)), !U || (je($, U), a.nextTick(Be, U), !1);
|
88376
88376
|
}
|
88377
88377
|
function v($, se, re) {
|
88378
88378
|
return $.objectMode || $.decodeStrings === !1 || typeof se != "string" || (se = Q.from(se, re)), se;
|
@@ -88402,7 +88402,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88402
88402
|
}
|
88403
88403
|
function E($, se) {
|
88404
88404
|
var re = $._writableState, Be = re.sync, U = re.writecb;
|
88405
|
-
if (typeof U != "function") throw new
|
88405
|
+
if (typeof U != "function") throw new be();
|
88406
88406
|
if (x(re), se) b($, re, Be, se, U);
|
88407
88407
|
else {
|
88408
88408
|
var M = I(re) || $.destroyed;
|
@@ -88466,7 +88466,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88466
88466
|
var Y;
|
88467
88467
|
p.WritableState = h;
|
88468
88468
|
var J = { deprecate: s("util-deprecate") }, ne = s("./internal/streams/stream"), Q = s("buffer").Buffer, he = l.Uint8Array || function() {
|
88469
|
-
}, Ce = s("./internal/streams/destroy"), oe = s("./internal/streams/state"),
|
88469
|
+
}, Ce = s("./internal/streams/destroy"), oe = s("./internal/streams/state"), ye = oe.getHighWaterMark, we = s("../errors").codes, ue = we.ERR_INVALID_ARG_TYPE, Z = we.ERR_METHOD_NOT_IMPLEMENTED, be = we.ERR_MULTIPLE_CALLBACK, me = we.ERR_STREAM_CANNOT_PIPE, Ue = we.ERR_STREAM_DESTROYED, ke = we.ERR_STREAM_NULL_VALUES, Se = we.ERR_STREAM_WRITE_AFTER_END, Ne = we.ERR_UNKNOWN_ENCODING, je = Ce.errorOrDestroy;
|
88470
88470
|
s("inherits")(p, ne), h.prototype.getBuffer = function() {
|
88471
88471
|
for (var $ = this.bufferedRequest, se = []; $; ) se.push($), $ = $.next;
|
88472
88472
|
return se;
|
@@ -88478,13 +88478,13 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88478
88478
|
} catch {
|
88479
88479
|
}
|
88480
88480
|
}();
|
88481
|
-
var
|
88482
|
-
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (
|
88483
|
-
return !!
|
88484
|
-
} })) :
|
88481
|
+
var ge;
|
88482
|
+
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (ge = Function.prototype[Symbol.hasInstance], Object.defineProperty(p, Symbol.hasInstance, { value: function($) {
|
88483
|
+
return !!ge.call(this, $) || this === p && $ && $._writableState instanceof h;
|
88484
|
+
} })) : ge = function($) {
|
88485
88485
|
return $ instanceof this;
|
88486
88486
|
}, p.prototype.pipe = function() {
|
88487
|
-
je(this, new
|
88487
|
+
je(this, new me());
|
88488
88488
|
}, p.prototype.write = function($, se, re) {
|
88489
88489
|
var Be = this._writableState, U = !1, M = !Be.objectMode && f($);
|
88490
88490
|
return M && !Q.isBuffer($) && ($ = u($)), typeof se == "function" && (re = se, se = null), M ? se = "buffer" : !se && (se = Be.defaultEncoding), typeof re != "function" && (re = d), Be.ending ? m(this, re) : (M || g(this, Be, $, re)) && (Be.pendingcb++, U = k(this, Be, M, $, se, re)), U;
|
@@ -88494,7 +88494,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
88494
88494
|
var $ = this._writableState;
|
88495
88495
|
$.corked && ($.corked--, !$.writing && !$.corked && !$.bufferProcessing && $.bufferedRequest && D(this, $));
|
88496
88496
|
}, p.prototype.setDefaultEncoding = function($) {
|
88497
|
-
if (typeof $ == "string" && ($ = $.toLowerCase()), !(-1 < ["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf(($ + "").toLowerCase()))) throw new
|
88497
|
+
if (typeof $ == "string" && ($ = $.toLowerCase()), !(-1 < ["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf(($ + "").toLowerCase()))) throw new Ne($);
|
88498
88498
|
return this._writableState.defaultEncoding = $, this;
|
88499
88499
|
}, Object.defineProperty(p.prototype, "writableBuffer", { enumerable: !1, get: function() {
|
88500
88500
|
return this._writableState && this._writableState.getBuffer();
|
@@ -95898,7 +95898,7 @@ var dX = "PopperAnchor", hX = C.forwardRef(
|
|
95898
95898
|
hX.displayName = dX;
|
95899
95899
|
var EL = "PopperContent", [att, ltt] = lX(EL), pX = C.forwardRef(
|
95900
95900
|
(t, e) => {
|
95901
|
-
var
|
95901
|
+
var be, me, Ue, ke, Se, Ne;
|
95902
95902
|
const {
|
95903
95903
|
__scopePopper: n,
|
95904
95904
|
side: r = "bottom",
|
@@ -95940,8 +95940,8 @@ var EL = "PopperContent", [att, ltt] = lX(EL), pX = C.forwardRef(
|
|
95940
95940
|
l && Xet({ ...G }),
|
95941
95941
|
ett({
|
95942
95942
|
...G,
|
95943
|
-
apply: ({ elements: je, rects:
|
95944
|
-
const { width: re, height: Be } =
|
95943
|
+
apply: ({ elements: je, rects: ge, availableWidth: $, availableHeight: se }) => {
|
95944
|
+
const { width: re, height: Be } = ge.reference, U = je.floating.style;
|
95945
95945
|
U.setProperty("--radix-popper-available-width", `${$}px`), U.setProperty("--radix-popper-available-height", `${se}px`), U.setProperty("--radix-popper-anchor-width", `${re}px`), U.setProperty("--radix-popper-anchor-height", `${Be}px`);
|
95946
95946
|
}
|
95947
95947
|
}),
|
@@ -95953,7 +95953,7 @@ var EL = "PopperContent", [att, ltt] = lX(EL), pX = C.forwardRef(
|
|
95953
95953
|
t2(() => {
|
95954
95954
|
J && (Ce == null || Ce());
|
95955
95955
|
}, [J, Ce]);
|
95956
|
-
const oe = (
|
95956
|
+
const oe = (be = ne.arrow) == null ? void 0 : be.x, ye = (me = ne.arrow) == null ? void 0 : me.y, we = ((Ue = ne.arrow) == null ? void 0 : Ue.centerOffset) !== 0, [ue, Z] = C.useState();
|
95957
95957
|
return t2(() => {
|
95958
95958
|
v && Z(window.getComputedStyle(v).zIndex);
|
95959
95959
|
}, [v]), /* @__PURE__ */ F.jsx(
|
@@ -95968,13 +95968,13 @@ var EL = "PopperContent", [att, ltt] = lX(EL), pX = C.forwardRef(
|
|
95968
95968
|
minWidth: "max-content",
|
95969
95969
|
zIndex: ue,
|
95970
95970
|
"--radix-popper-transform-origin": [
|
95971
|
-
(
|
95971
|
+
(ke = ne.transformOrigin) == null ? void 0 : ke.x,
|
95972
95972
|
(Se = ne.transformOrigin) == null ? void 0 : Se.y
|
95973
95973
|
].join(" "),
|
95974
95974
|
// hide the content if using the hide middleware and should be hidden
|
95975
95975
|
// set visibility to hidden and disable pointer events so the UI behaves
|
95976
95976
|
// as if the PopperContent isn't there at all
|
95977
|
-
...((
|
95977
|
+
...((Ne = ne.hide) == null ? void 0 : Ne.referenceHidden) && {
|
95978
95978
|
visibility: "hidden",
|
95979
95979
|
pointerEvents: "none"
|
95980
95980
|
}
|
@@ -95987,7 +95987,7 @@ var EL = "PopperContent", [att, ltt] = lX(EL), pX = C.forwardRef(
|
|
95987
95987
|
placedSide: Q,
|
95988
95988
|
onArrowChange: x,
|
95989
95989
|
arrowX: oe,
|
95990
|
-
arrowY:
|
95990
|
+
arrowY: ye,
|
95991
95991
|
shouldHideArrow: we,
|
95992
95992
|
children: /* @__PURE__ */ F.jsx(
|
95993
95993
|
h0.div,
|
@@ -98296,7 +98296,7 @@ const Gg = ({
|
|
98296
98296
|
},
|
98297
98297
|
content: Qs("pretend-to-work")
|
98298
98298
|
}
|
98299
|
-
], wnt = (t, e, n, r, i) => /* @__PURE__ */ F.jsxs(WV, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-x-[60%] md:-translate-y-1 md:!right-0 md:!top-0 z-
|
98299
|
+
], wnt = (t, e, n, r, i) => /* @__PURE__ */ F.jsxs(WV, { className: "template-buttons space-x-0 gap-2 absolute top-8 left-0 md:!left-[unset] md:-translate-x-[60%] md:-translate-y-1 md:!right-0 md:!top-0 z-50", children: [
|
98300
98300
|
t.map((s, o) => /* @__PURE__ */ F.jsxs(
|
98301
98301
|
Zn,
|
98302
98302
|
{
|
@@ -98381,10 +98381,10 @@ const Gg = ({
|
|
98381
98381
|
}
|
98382
98382
|
);
|
98383
98383
|
}, [t.content]), h = () => {
|
98384
|
-
var Q, he, Ce, oe,
|
98384
|
+
var Q, he, Ce, oe, ye;
|
98385
98385
|
if (u)
|
98386
98386
|
try {
|
98387
|
-
const { content: we } = t.content, ue = (
|
98387
|
+
const { content: we } = t.content, ue = (ye = (oe = (Ce = (he = (Q = we[0]) == null ? void 0 : Q.content) == null ? void 0 : he.content[0]) == null ? void 0 : Ce.marks[0]) == null ? void 0 : oe.attrs) == null ? void 0 : ye.href;
|
98388
98388
|
if (!ue)
|
98389
98389
|
return;
|
98390
98390
|
if (ue && /\.(jpeg|jpg|gif|png)$/i.test(ue)) {
|
@@ -98401,14 +98401,14 @@ const Gg = ({
|
|
98401
98401
|
/youtu\.?be(?:\.com)?\/(?:.*v(?:\/|=)|(?:.*\/)?)([a-zA-Z0-9-_]+)/
|
98402
98402
|
);
|
98403
98403
|
if (Z) {
|
98404
|
-
const
|
98405
|
-
p("iframe",
|
98404
|
+
const me = `https://www.youtube.com/embed/${Z[1]}`;
|
98405
|
+
p("iframe", me);
|
98406
98406
|
return;
|
98407
98407
|
}
|
98408
|
-
const
|
98409
|
-
if (
|
98410
|
-
const
|
98411
|
-
p("iframe",
|
98408
|
+
const be = u.match(/vimeo\.com\/([a-zA-Z0-9-_]+)/);
|
98409
|
+
if (be) {
|
98410
|
+
const me = `https://player.vimeo.com/video/${be[1]}`;
|
98411
|
+
p("iframe", me);
|
98412
98412
|
return;
|
98413
98413
|
}
|
98414
98414
|
console.warn("No matching media type found for:", u);
|
@@ -98469,9 +98469,9 @@ const Gg = ({
|
|
98469
98469
|
u && D();
|
98470
98470
|
}, [u]);
|
98471
98471
|
const I = yn(() => {
|
98472
|
-
var ue, Z,
|
98473
|
-
const { doc: Q, selection: he } = n.state, Ce = e(), oe = Q.nodeAt(Ce) === Q.firstChild,
|
98474
|
-
return Q.textContent === "" && oe &&
|
98472
|
+
var ue, Z, be, me;
|
98473
|
+
const { doc: Q, selection: he } = n.state, Ce = e(), oe = Q.nodeAt(Ce) === Q.firstChild, ye = ((ue = Q.nodeAt(Ce)) == null ? void 0 : ue.type.name) === "dBlock" && ((be = (Z = Q.nodeAt(Ce)) == null ? void 0 : Z.content.firstChild) == null ? void 0 : be.type.name) === "paragraph", we = he.$anchor.pos >= Ce && he.$anchor.pos <= Ce + (((me = Q.nodeAt(Ce)) == null ? void 0 : me.nodeSize) || 0);
|
98474
|
+
return Q.textContent === "" && oe && ye && we;
|
98475
98475
|
}, [e, n.state]), P = (Q) => {
|
98476
98476
|
const he = e() + t.nodeSize;
|
98477
98477
|
n.commands.insertContentAt(he - 4, Q);
|
@@ -106051,7 +106051,7 @@ function Pee() {
|
|
106051
106051
|
IS_ALLOWED_URI: he
|
106052
106052
|
} = tz, Ce = null;
|
106053
106053
|
const oe = $t({}, [...KO, ...a9, ...l9, ...c9, ...$O]);
|
106054
|
-
let
|
106054
|
+
let ye = null;
|
106055
106055
|
const we = $t({}, [...XO, ...u9, ...ez, ...Xg]);
|
106056
106056
|
let ue = Object.seal(jee(null, {
|
106057
106057
|
tagNameCheck: {
|
@@ -106072,7 +106072,7 @@ function Pee() {
|
|
106072
106072
|
enumerable: !0,
|
106073
106073
|
value: !1
|
106074
106074
|
}
|
106075
|
-
})), Z = null,
|
106075
|
+
})), Z = null, be = null, me = !0, Ue = !0, ke = !1, Se = !0, Ne = !1, je = !0, ge = !1, $ = !1, se = !1, re = !1, Be = !1, U = !1, M = !0, j = !1;
|
106076
106076
|
const z = "user-content-";
|
106077
106077
|
let ee = !0, ce = !1, de = {}, _e = null;
|
106078
106078
|
const Ge = $t({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
@@ -106080,7 +106080,7 @@ function Pee() {
|
|
106080
106080
|
const lt = $t({}, ["audio", "video", "img", "source", "image", "track"]);
|
106081
106081
|
let ht = null;
|
106082
106082
|
const Wt = $t({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), jn = "http://www.w3.org/1998/Math/MathML", In = "http://www.w3.org/2000/svg", xe = "http://www.w3.org/1999/xhtml";
|
106083
|
-
let
|
106083
|
+
let Te = xe, Re = !1, ct = null;
|
106084
106084
|
const Ke = $t({}, [jn, In, xe], o9);
|
106085
106085
|
let wt = null;
|
106086
106086
|
const It = ["application/xhtml+xml", "text/html"], Kt = "text/html";
|
@@ -106091,7 +106091,7 @@ function Pee() {
|
|
106091
106091
|
let te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
106092
106092
|
if (!(sn && sn === te)) {
|
106093
106093
|
if ((!te || typeof te != "object") && (te = {}), te = j0(te), wt = // eslint-disable-next-line unicorn/prefer-includes
|
106094
|
-
It.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Kt : te.PARSER_MEDIA_TYPE, Ft = wt === "application/xhtml+xml" ? o9 : $3, Ce = bo(te, "ALLOWED_TAGS") ? $t({}, te.ALLOWED_TAGS, Ft) : oe,
|
106094
|
+
It.indexOf(te.PARSER_MEDIA_TYPE) === -1 ? Kt : te.PARSER_MEDIA_TYPE, Ft = wt === "application/xhtml+xml" ? o9 : $3, Ce = bo(te, "ALLOWED_TAGS") ? $t({}, te.ALLOWED_TAGS, Ft) : oe, ye = bo(te, "ALLOWED_ATTR") ? $t({}, te.ALLOWED_ATTR, Ft) : we, ct = bo(te, "ALLOWED_NAMESPACES") ? $t({}, te.ALLOWED_NAMESPACES, o9) : Ke, ht = bo(te, "ADD_URI_SAFE_ATTR") ? $t(
|
106095
106095
|
j0(Wt),
|
106096
106096
|
// eslint-disable-line indent
|
106097
106097
|
te.ADD_URI_SAFE_ATTR,
|
@@ -106105,7 +106105,7 @@ function Pee() {
|
|
106105
106105
|
// eslint-disable-line indent
|
106106
106106
|
Ft
|
106107
106107
|
// eslint-disable-line indent
|
106108
|
-
) : lt, _e = bo(te, "FORBID_CONTENTS") ? $t({}, te.FORBID_CONTENTS, Ft) : Ge, Z = bo(te, "FORBID_TAGS") ? $t({}, te.FORBID_TAGS, Ft) : {},
|
106108
|
+
) : lt, _e = bo(te, "FORBID_CONTENTS") ? $t({}, te.FORBID_CONTENTS, Ft) : Ge, Z = bo(te, "FORBID_TAGS") ? $t({}, te.FORBID_TAGS, Ft) : {}, be = bo(te, "FORBID_ATTR") ? $t({}, te.FORBID_ATTR, Ft) : {}, de = bo(te, "USE_PROFILES") ? te.USE_PROFILES : !1, me = te.ALLOW_ARIA_ATTR !== !1, Ue = te.ALLOW_DATA_ATTR !== !1, ke = te.ALLOW_UNKNOWN_PROTOCOLS || !1, Se = te.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ne = te.SAFE_FOR_TEMPLATES || !1, je = te.SAFE_FOR_XML !== !1, ge = te.WHOLE_DOCUMENT || !1, re = te.RETURN_DOM || !1, Be = te.RETURN_DOM_FRAGMENT || !1, U = te.RETURN_TRUSTED_TYPE || !1, se = te.FORCE_BODY || !1, M = te.SANITIZE_DOM !== !1, j = te.SANITIZE_NAMED_PROPS || !1, ee = te.KEEP_CONTENT !== !1, ce = te.IN_PLACE || !1, he = te.ALLOWED_URI_REGEXP || Iee, Te = te.NAMESPACE || xe, ue = te.CUSTOM_ELEMENT_HANDLING || {}, te.CUSTOM_ELEMENT_HANDLING && ir(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ue.tagNameCheck = te.CUSTOM_ELEMENT_HANDLING.tagNameCheck), te.CUSTOM_ELEMENT_HANDLING && ir(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ue.attributeNameCheck = te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), te.CUSTOM_ELEMENT_HANDLING && typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ue.allowCustomizedBuiltInElements = te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ne && (Ue = !1), Be && (re = !0), de && (Ce = $t({}, $O), ye = [], de.html === !0 && ($t(Ce, KO), $t(ye, XO)), de.svg === !0 && ($t(Ce, a9), $t(ye, u9), $t(ye, Xg)), de.svgFilters === !0 && ($t(Ce, l9), $t(ye, u9), $t(ye, Xg)), de.mathMl === !0 && ($t(Ce, c9), $t(ye, ez), $t(ye, Xg))), te.ADD_TAGS && (Ce === oe && (Ce = j0(Ce)), $t(Ce, te.ADD_TAGS, Ft)), te.ADD_ATTR && (ye === we && (ye = j0(ye)), $t(ye, te.ADD_ATTR, Ft)), te.ADD_URI_SAFE_ATTR && $t(ht, te.ADD_URI_SAFE_ATTR, Ft), te.FORBID_CONTENTS && (_e === Ge && (_e = j0(_e)), $t(_e, te.FORBID_CONTENTS, Ft)), ee && (Ce["#text"] = !0), ge && $t(Ce, ["html", "head", "body"]), Ce.table && ($t(Ce, ["tbody"]), delete Z.tbody), te.TRUSTED_TYPES_POLICY) {
|
106109
106109
|
if (typeof te.TRUSTED_TYPES_POLICY.createHTML != "function")
|
106110
106110
|
throw pp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
106111
106111
|
if (typeof te.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -106118,7 +106118,7 @@ function Pee() {
|
|
106118
106118
|
}, vo = $t({}, ["mi", "mo", "mn", "ms", "mtext"]), js = $t({}, ["foreignobject", "annotation-xml"]), Is = $t({}, ["title", "style", "font", "a", "script"]), Af = $t({}, [...a9, ...l9, ...Alt]), Sf = $t({}, [...c9, ...Slt]), b0 = function(te) {
|
106119
106119
|
let Ee = w(te);
|
106120
106120
|
(!Ee || !Ee.tagName) && (Ee = {
|
106121
|
-
namespaceURI:
|
106121
|
+
namespaceURI: Te,
|
106122
106122
|
tagName: "template"
|
106123
106123
|
});
|
106124
106124
|
const Oe = $3(te.tagName), Mt = $3(Ee.tagName);
|
@@ -106144,7 +106144,7 @@ function Pee() {
|
|
106144
106144
|
from: Ee
|
106145
106145
|
});
|
106146
106146
|
}
|
106147
|
-
if (Ee.removeAttribute(te), te === "is" && !
|
106147
|
+
if (Ee.removeAttribute(te), te === "is" && !ye[te])
|
106148
106148
|
if (re || Be)
|
106149
106149
|
try {
|
106150
106150
|
$r(Ee);
|
@@ -106163,22 +106163,22 @@ function Pee() {
|
|
106163
106163
|
const on = JO(te, /^[\r\n\t ]+/);
|
106164
106164
|
Oe = on && on[0];
|
106165
106165
|
}
|
106166
|
-
wt === "application/xhtml+xml" &&
|
106166
|
+
wt === "application/xhtml+xml" && Te === xe && (te = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + te + "</body></html>");
|
106167
106167
|
const Mt = b ? b.createHTML(te) : te;
|
106168
|
-
if (
|
106168
|
+
if (Te === xe)
|
106169
106169
|
try {
|
106170
106170
|
Ee = new d().parseFromString(Mt, wt);
|
106171
106171
|
} catch {
|
106172
106172
|
}
|
106173
106173
|
if (!Ee || !Ee.documentElement) {
|
106174
|
-
Ee = E.createDocument(
|
106174
|
+
Ee = E.createDocument(Te, "template", null);
|
106175
106175
|
try {
|
106176
106176
|
Ee.documentElement.innerHTML = Re ? x : Mt;
|
106177
106177
|
} catch {
|
106178
106178
|
}
|
106179
106179
|
}
|
106180
106180
|
const dn = Ee.body || Ee.documentElement;
|
106181
|
-
return te && Oe && dn.insertBefore(n.createTextNode(Oe), dn.childNodes[0] || null),
|
106181
|
+
return te && Oe && dn.insertBefore(n.createTextNode(Oe), dn.childNodes[0] || null), Te === xe ? D.call(Ee, ge ? "html" : "body")[0] : ge ? Ee.documentElement : dn;
|
106182
106182
|
}, Lf = function(te) {
|
106183
106183
|
return L.call(
|
106184
106184
|
te.ownerDocument || te,
|
@@ -106220,7 +106220,7 @@ function Pee() {
|
|
106220
106220
|
}
|
106221
106221
|
return $r(te), !0;
|
106222
106222
|
}
|
106223
|
-
return te instanceof l && !b0(te) || (Oe === "noscript" || Oe === "noembed" || Oe === "noframes") && yi(/<\/no(script|embed|frames)/i, te.innerHTML) ? ($r(te), !0) : (
|
106223
|
+
return te instanceof l && !b0(te) || (Oe === "noscript" || Oe === "noembed" || Oe === "noframes") && yi(/<\/no(script|embed|frames)/i, te.innerHTML) ? ($r(te), !0) : (Ne && te.nodeType === yp.text && (Ee = te.textContent, $g([H, G, q], (Mt) => {
|
106224
106224
|
Ee = hp(Ee, Mt, " ");
|
106225
106225
|
}), te.textContent !== Ee && (dp(e.removed, {
|
106226
106226
|
element: te.cloneNode()
|
@@ -106228,9 +106228,9 @@ function Pee() {
|
|
106228
106228
|
}, He = function(te, Ee, Oe) {
|
106229
106229
|
if (M && (Ee === "id" || Ee === "name") && (Oe in n || Oe in wr))
|
106230
106230
|
return !1;
|
106231
|
-
if (!(Ue && !
|
106232
|
-
if (!(
|
106233
|
-
if (!
|
106231
|
+
if (!(Ue && !be[Ee] && yi(_, Ee))) {
|
106232
|
+
if (!(me && yi(Y, Ee))) {
|
106233
|
+
if (!ye[Ee] || be[Ee]) {
|
106234
106234
|
if (
|
106235
106235
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
106236
106236
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
@@ -106242,7 +106242,7 @@ function Pee() {
|
|
106242
106242
|
} else if (!ht[Ee]) {
|
106243
106243
|
if (!yi(he, hp(Oe, ne, ""))) {
|
106244
106244
|
if (!((Ee === "src" || Ee === "xlink:href" || Ee === "href") && te !== "script" && klt(Oe, "data:") === 0 && tt[te])) {
|
106245
|
-
if (!(
|
106245
|
+
if (!(ke && !yi(J, hp(Oe, ne, "")))) {
|
106246
106246
|
if (Oe)
|
106247
106247
|
return !1;
|
106248
106248
|
}
|
@@ -106265,7 +106265,7 @@ function Pee() {
|
|
106265
106265
|
attrName: "",
|
106266
106266
|
attrValue: "",
|
106267
106267
|
keepAttr: !0,
|
106268
|
-
allowedAttributes:
|
106268
|
+
allowedAttributes: ye
|
106269
106269
|
};
|
106270
106270
|
let Mt = Ee.length;
|
106271
106271
|
for (; Mt--; ) {
|
@@ -106285,7 +106285,7 @@ function Pee() {
|
|
106285
106285
|
kc(on, te);
|
106286
106286
|
continue;
|
106287
106287
|
}
|
106288
|
-
|
106288
|
+
Ne && $g([H, G, q], (wN) => {
|
106289
106289
|
kr = hp(kr, wN, " ");
|
106290
106290
|
});
|
106291
106291
|
const bN = Ft(te.nodeName);
|
@@ -106334,7 +106334,7 @@ function Pee() {
|
|
106334
106334
|
} else if (Le instanceof a)
|
106335
106335
|
Ee = Ef("<!---->"), Oe = Ee.ownerDocument.importNode(Le, !0), Oe.nodeType === yp.element && Oe.nodeName === "BODY" || Oe.nodeName === "HTML" ? Ee = Oe : Ee.appendChild(Oe);
|
106336
106336
|
else {
|
106337
|
-
if (!re && !
|
106337
|
+
if (!re && !Ne && !ge && // eslint-disable-next-line unicorn/prefer-includes
|
106338
106338
|
Le.indexOf("<") === -1)
|
106339
106339
|
return b && U ? b.createHTML(Le) : Le;
|
106340
106340
|
if (Ee = Ef(Le), !Ee)
|
@@ -106352,11 +106352,11 @@ function Pee() {
|
|
106352
106352
|
dn.appendChild(Ee.firstChild);
|
106353
106353
|
else
|
106354
106354
|
dn = Ee;
|
106355
|
-
return (
|
106355
|
+
return (ye.shadowroot || ye.shadowrootmode) && (dn = I.call(r, dn, !0)), dn;
|
106356
106356
|
}
|
106357
|
-
let Rt =
|
106358
|
-
return
|
106359
|
-
` + Rt),
|
106357
|
+
let Rt = ge ? Ee.outerHTML : Ee.innerHTML;
|
106358
|
+
return ge && Ce["!doctype"] && Ee.ownerDocument && Ee.ownerDocument.doctype && Ee.ownerDocument.doctype.name && yi(Ree, Ee.ownerDocument.doctype.name) && (Rt = "<!DOCTYPE " + Ee.ownerDocument.doctype.name + `>
|
106359
|
+
` + Rt), Ne && $g([H, G, q], (Ar) => {
|
106360
106360
|
Rt = hp(Rt, Ar, " ");
|
106361
106361
|
}), b && U ? b.createHTML(Rt) : Rt;
|
106362
106362
|
}, e.setConfig = function() {
|
@@ -113562,12 +113562,12 @@ var Lp = function(e, n, r) {
|
|
113562
113562
|
}
|
113563
113563
|
H.push(a3), H.push(b9(a, h, s));
|
113564
113564
|
}
|
113565
|
-
var
|
113565
|
+
var ye = i.havingBaseStyle(At.TEXT), we = pe.makeVList({
|
113566
113566
|
positionType: "bottom",
|
113567
113567
|
positionData: P,
|
113568
113568
|
children: H
|
113569
|
-
},
|
113570
|
-
return $L(pe.makeSpan(["delimsizing", "mult"], [we],
|
113569
|
+
}, ye);
|
113570
|
+
return $L(pe.makeSpan(["delimsizing", "mult"], [we], ye), At.TEXT, i, o);
|
113571
113571
|
}, k9 = 80, x9 = 0.08, M9 = function(e, n, r, i, s) {
|
113572
113572
|
var o = Zct(e, i, r), a = new Wu(e, o), l = new lc([a], {
|
113573
113573
|
// Note: 1000:1 ratio of viewBox to document em width.
|
@@ -114296,57 +114296,57 @@ var Xa = function(e, n) {
|
|
114296
114296
|
i < a || Y < G.length;
|
114297
114297
|
++i, ++Y
|
114298
114298
|
) {
|
114299
|
-
for (var oe = G[Y] || {},
|
114300
|
-
if (
|
114299
|
+
for (var oe = G[Y] || {}, ye = !0; oe.type === "separator"; ) {
|
114300
|
+
if (ye || (_ = pe.makeSpan(["arraycolsep"], []), _.style.width = Ye(n.fontMetrics().doubleRuleSep), q.push(_)), oe.separator === "|" || oe.separator === ":") {
|
114301
114301
|
var we = oe.separator === "|" ? "solid" : "dashed", ue = pe.makeSpan(["vertical-separator"], [], n);
|
114302
114302
|
ue.style.height = Ye(w), ue.style.borderRightWidth = Ye(u), ue.style.borderRightStyle = we, ue.style.margin = "0 " + Ye(-u / 2);
|
114303
114303
|
var Z = w - H;
|
114304
114304
|
Z && (ue.style.verticalAlign = Ye(-Z)), q.push(ue);
|
114305
114305
|
} else
|
114306
114306
|
throw new qe("Invalid separator type: " + oe.separator);
|
114307
|
-
Y++, oe = G[Y] || {},
|
114307
|
+
Y++, oe = G[Y] || {}, ye = !1;
|
114308
114308
|
}
|
114309
114309
|
if (!(i >= a)) {
|
114310
|
-
var
|
114311
|
-
(i > 0 || e.hskipBeforeAndAfter) && (
|
114312
|
-
var
|
114310
|
+
var be = void 0;
|
114311
|
+
(i > 0 || e.hskipBeforeAndAfter) && (be = bt.deflt(oe.pregap, d), be !== 0 && (_ = pe.makeSpan(["arraycolsep"], []), _.style.width = Ye(be), q.push(_)));
|
114312
|
+
var me = [];
|
114313
114313
|
for (r = 0; r < s; ++r) {
|
114314
|
-
var Ue = l[r],
|
114315
|
-
if (
|
114314
|
+
var Ue = l[r], ke = Ue[i];
|
114315
|
+
if (ke) {
|
114316
114316
|
var Se = Ue.pos - H;
|
114317
|
-
|
114317
|
+
ke.depth = Ue.depth, ke.height = Ue.height, me.push({
|
114318
114318
|
type: "elem",
|
114319
|
-
elem:
|
114319
|
+
elem: ke,
|
114320
114320
|
shift: Se
|
114321
114321
|
});
|
114322
114322
|
}
|
114323
114323
|
}
|
114324
|
-
|
114324
|
+
me = pe.makeVList({
|
114325
114325
|
positionType: "individualShift",
|
114326
|
-
children:
|
114327
|
-
}, n),
|
114326
|
+
children: me
|
114327
|
+
}, n), me = pe.makeSpan(["col-align-" + (oe.align || "c")], [me]), q.push(me), (i < a - 1 || e.hskipBeforeAndAfter) && (be = bt.deflt(oe.postgap, d), be !== 0 && (_ = pe.makeSpan(["arraycolsep"], []), _.style.width = Ye(be), q.push(_)));
|
114328
114328
|
}
|
114329
114329
|
}
|
114330
114330
|
if (l = pe.makeSpan(["mtable"], q), c.length > 0) {
|
114331
|
-
for (var
|
114331
|
+
for (var Ne = pe.makeLineSpan("hline", n, u), je = pe.makeLineSpan("hdashline", n, u), ge = [{
|
114332
114332
|
type: "elem",
|
114333
114333
|
elem: l,
|
114334
114334
|
shift: 0
|
114335
114335
|
}]; c.length > 0; ) {
|
114336
114336
|
var $ = c.pop(), se = $.pos - H;
|
114337
|
-
$.isDashed ?
|
114337
|
+
$.isDashed ? ge.push({
|
114338
114338
|
type: "elem",
|
114339
114339
|
elem: je,
|
114340
114340
|
shift: se
|
114341
|
-
}) :
|
114341
|
+
}) : ge.push({
|
114342
114342
|
type: "elem",
|
114343
|
-
elem:
|
114343
|
+
elem: Ne,
|
114344
114344
|
shift: se
|
114345
114345
|
});
|
114346
114346
|
}
|
114347
114347
|
l = pe.makeVList({
|
114348
114348
|
positionType: "individualShift",
|
114349
|
-
children:
|
114349
|
+
children: ge
|
114350
114350
|
}, n);
|
114351
114351
|
}
|
114352
114352
|
if (J.length === 0)
|
@@ -123568,10 +123568,10 @@ function ydt(t) {
|
|
123568
123568
|
const Ce = Q === 2 || Q === 3 ? J + e.n : J;
|
123569
123569
|
if (Ce >= n.ORDER)
|
123570
123570
|
throw new Error("recovery id 2 or 3 invalid");
|
123571
|
-
const oe = Q & 1 ? "03" : "02",
|
123572
|
-
if (!
|
123571
|
+
const oe = Q & 1 ? "03" : "02", ye = c.fromHex(oe + h(Ce)), we = l(Ce), ue = a(-he * we), Z = a(ne * we), be = c.BASE.multiplyAndAddUnsafe(ye, ue, Z);
|
123572
|
+
if (!be)
|
123573
123573
|
throw new Error("point at infinify");
|
123574
|
-
return
|
123574
|
+
return be.assertValidity(), be;
|
123575
123575
|
}
|
123576
123576
|
// Signatures should be low-s, to prevent malleability.
|
123577
123577
|
hasHighS() {
|
@@ -123657,26 +123657,26 @@ function ydt(t) {
|
|
123657
123657
|
const { hash: ne, randomBytes: Q } = e;
|
123658
123658
|
let { lowS: he, prehash: Ce, extraEntropy: oe } = J;
|
123659
123659
|
he == null && (he = !0), _ = ko("msgHash", _), Ce && (_ = ko("prehashed msgHash", ne(_)));
|
123660
|
-
const
|
123660
|
+
const ye = L(_), we = u(Y), ue = [D(we), D(ye)];
|
123661
123661
|
if (oe != null) {
|
123662
123662
|
const Ue = oe === !0 ? Q(n.BYTES) : oe;
|
123663
123663
|
ue.push(ko("extraEntropy", Ue));
|
123664
123664
|
}
|
123665
|
-
const Z = k4(...ue),
|
123666
|
-
function
|
123667
|
-
const
|
123668
|
-
if (!d(
|
123665
|
+
const Z = k4(...ue), be = ye;
|
123666
|
+
function me(Ue) {
|
123667
|
+
const ke = E(Ue);
|
123668
|
+
if (!d(ke))
|
123669
123669
|
return;
|
123670
|
-
const Se = l(
|
123670
|
+
const Se = l(ke), Ne = c.BASE.multiply(ke).toAffine(), je = a(Ne.x);
|
123671
123671
|
if (je === Ll)
|
123672
123672
|
return;
|
123673
|
-
const
|
123674
|
-
if (
|
123673
|
+
const ge = a(Se * a(be + je * we));
|
123674
|
+
if (ge === Ll)
|
123675
123675
|
return;
|
123676
|
-
let $ = (
|
123677
|
-
return he && p(
|
123676
|
+
let $ = (Ne.x === je ? 0 : 2) | Number(Ne.y & Js), se = ge;
|
123677
|
+
return he && p(ge) && (se = m(ge), $ ^= 1), new v(je, se, $);
|
123678
123678
|
}
|
123679
|
-
return { seed: Z, k2sig:
|
123679
|
+
return { seed: Z, k2sig: me };
|
123680
123680
|
}
|
123681
123681
|
const P = { lowS: e.lowS, prehash: !1 }, H = { lowS: e.lowS, prehash: !1 };
|
123682
123682
|
function G(_, Y, J = P) {
|
@@ -123685,12 +123685,12 @@ function ydt(t) {
|
|
123685
123685
|
}
|
123686
123686
|
c.BASE._setWindowSize(8);
|
123687
123687
|
function q(_, Y, J, ne = H) {
|
123688
|
-
var
|
123688
|
+
var Ne;
|
123689
123689
|
const Q = _;
|
123690
123690
|
if (Y = ko("msgHash", Y), J = ko("publicKey", J), "strict" in ne)
|
123691
123691
|
throw new Error("options.strict was renamed to lowS");
|
123692
123692
|
const { lowS: he, prehash: Ce } = ne;
|
123693
|
-
let oe,
|
123693
|
+
let oe, ye;
|
123694
123694
|
try {
|
123695
123695
|
if (typeof Q == "string" || Q instanceof Uint8Array)
|
123696
123696
|
try {
|
@@ -123701,11 +123701,11 @@ function ydt(t) {
|
|
123701
123701
|
oe = v.fromCompact(Q);
|
123702
123702
|
}
|
123703
123703
|
else if (typeof Q == "object" && typeof Q.r == "bigint" && typeof Q.s == "bigint") {
|
123704
|
-
const { r: je, s:
|
123705
|
-
oe = new v(je,
|
123704
|
+
const { r: je, s: ge } = Q;
|
123705
|
+
oe = new v(je, ge);
|
123706
123706
|
} else
|
123707
123707
|
throw new Error("PARSE");
|
123708
|
-
|
123708
|
+
ye = c.fromHex(J);
|
123709
123709
|
} catch (je) {
|
123710
123710
|
if (je.message === "PARSE")
|
123711
123711
|
throw new Error("signature must be Signature instance, Uint8Array or hex string");
|
@@ -123714,8 +123714,8 @@ function ydt(t) {
|
|
123714
123714
|
if (he && oe.hasHighS())
|
123715
123715
|
return !1;
|
123716
123716
|
Ce && (Y = e.hash(Y));
|
123717
|
-
const { r: we, s: ue } = oe, Z = L(Y),
|
123718
|
-
return
|
123717
|
+
const { r: we, s: ue } = oe, Z = L(Y), be = l(ue), me = a(Z * be), Ue = a(we * be), ke = (Ne = c.BASE.multiplyAndAddUnsafe(ye, me, Ue)) == null ? void 0 : Ne.toAffine();
|
123718
|
+
return ke ? a(ke.x) === we : !1;
|
123719
123719
|
}
|
123720
123720
|
return {
|
123721
123721
|
CURVE: e,
|
@@ -135779,17 +135779,17 @@ const _pt = un.create({
|
|
135779
135779
|
const Q = J.textContent, he = _.posAtCoords({ left: Y.clientX, top: Y.clientY });
|
135780
135780
|
if (he) {
|
135781
135781
|
const { state: Ce } = _;
|
135782
|
-
let oe = he.pos,
|
135783
|
-
if (Ce.doc.nodesBetween(oe,
|
135782
|
+
let oe = he.pos, ye = he.pos;
|
135783
|
+
if (Ce.doc.nodesBetween(oe, ye, (we, ue) => {
|
135784
135784
|
we.marks && we.marks.length && we.marks.forEach((Z) => {
|
135785
|
-
Z.type.name === "highlight" && (oe = ue,
|
135785
|
+
Z.type.name === "highlight" && (oe = ue, ye = ue + we.nodeSize);
|
135786
135786
|
});
|
135787
|
-
}), oe !==
|
135787
|
+
}), oe !== ye) {
|
135788
135788
|
const we = {
|
135789
135789
|
text: Q,
|
135790
135790
|
from: oe,
|
135791
|
-
to:
|
135792
|
-
isHighlightedYellow: x(Ce, oe,
|
135791
|
+
to: ye,
|
135792
|
+
isHighlightedYellow: x(Ce, oe, ye)
|
135793
135793
|
};
|
135794
135794
|
l == null || l(we);
|
135795
135795
|
}
|
@@ -140692,7 +140692,7 @@ Dv.exports;
|
|
140692
140692
|
I && (D = S, S = null);
|
140693
140693
|
var P = D.navigator || {}, H = P.userAgent || "";
|
140694
140694
|
S || (S = H);
|
140695
|
-
var G = I ? !!P.likeChrome : /\bChrome\b/.test(S) && !/internal|\n/i.test(f.toString()), q = "Object", _ = I ? q : "ScriptBridgingProxyObject", Y = I ? q : "Environment", J = I && D.java ? "JavaPackage" : v(D.java), ne = I ? q : "RuntimeObject", Q = /\bJava/.test(J) && D.java, he = Q && v(D.environment) == Y, Ce = Q ? "a" : "α", oe = Q ? "b" : "β",
|
140695
|
+
var G = I ? !!P.likeChrome : /\bChrome\b/.test(S) && !/internal|\n/i.test(f.toString()), q = "Object", _ = I ? q : "ScriptBridgingProxyObject", Y = I ? q : "Environment", J = I && D.java ? "JavaPackage" : v(D.java), ne = I ? q : "RuntimeObject", Q = /\bJava/.test(J) && D.java, he = Q && v(D.environment) == Y, Ce = Q ? "a" : "α", oe = Q ? "b" : "β", ye = D.document || {}, we = D.operamini || D.opera, ue = l.test(ue = I && we ? we["[[Class]]"] : v(we)) ? ue : we = null, Z, be = S, me = [], Ue = null, ke = S == H, Se = ke && we && typeof we.version == "function" && we.version(), Ne, je = Be([
|
140696
140696
|
{ label: "EdgeHTML", pattern: "Edge" },
|
140697
140697
|
"Trident",
|
140698
140698
|
{ label: "WebKit", pattern: "AppleWebKit" },
|
@@ -140702,7 +140702,7 @@ Dv.exports;
|
|
140702
140702
|
"Tasman",
|
140703
140703
|
"KHTML",
|
140704
140704
|
"Gecko"
|
140705
|
-
]),
|
140705
|
+
]), ge = M([
|
140706
140706
|
"Adobe AIR",
|
140707
140707
|
"Arora",
|
140708
140708
|
"Avant Browser",
|
@@ -140875,50 +140875,50 @@ Dv.exports;
|
|
140875
140875
|
function ce() {
|
140876
140876
|
return this.description || "";
|
140877
140877
|
}
|
140878
|
-
if (je && (je = [je]), /\bAndroid\b/.test(re) && !$ && (Z = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(S)) && ($ = x(Z[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), se && !$ ? $ = z([se]) : se && $ && ($ = $.replace(RegExp("^(" + w(se) + ")[-_.\\s]", "i"), se + " ").replace(RegExp("^(" + w(se) + ")[-_.]?(\\w)", "i"), se + " $2")), (Z = /\bGoogle TV\b/.exec($)) && ($ = Z[0]), /\bSimulator\b/i.test(S) && ($ = ($ ? $ + " " : "") + "Simulator"),
|
140878
|
+
if (je && (je = [je]), /\bAndroid\b/.test(re) && !$ && (Z = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(S)) && ($ = x(Z[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), se && !$ ? $ = z([se]) : se && $ && ($ = $.replace(RegExp("^(" + w(se) + ")[-_.\\s]", "i"), se + " ").replace(RegExp("^(" + w(se) + ")[-_.]?(\\w)", "i"), se + " $2")), (Z = /\bGoogle TV\b/.exec($)) && ($ = Z[0]), /\bSimulator\b/i.test(S) && ($ = ($ ? $ + " " : "") + "Simulator"), ge == "Opera Mini" && /\bOPiOS\b/.test(S) && me.push("running in Turbo/Uncompressed mode"), ge == "IE" && /\blike iPhone OS\b/.test(S) ? (Z = E(S.replace(/like iPhone OS/, "")), se = Z.manufacturer, $ = Z.product) : /^iP/.test($) ? (ge || (ge = "Safari"), re = "iOS" + ((Z = / OS ([\d_]+)/i.exec(S)) ? " " + Z[1].replace(/_/g, ".") : "")) : ge == "Konqueror" && /^Linux\b/i.test(re) ? re = "Kubuntu" : se && se != "Google" && (/Chrome/.test(ge) && !/\bMobile Safari\b/i.test(S) || /\bVita\b/.test($)) || /\bAndroid\b/.test(re) && /^Chrome/.test(ge) && /\bVersion\//i.test(S) ? (ge = "Android Browser", re = /\bAndroid\b/.test(re) ? re : "Android") : ge == "Silk" ? (/\bMobi/i.test(S) || (re = "Android", me.unshift("desktop mode")), /Accelerated *= *true/i.test(S) && me.unshift("accelerated")) : ge == "UC Browser" && /\bUCWEB\b/.test(S) ? me.push("speed mode") : ge == "PaleMoon" && (Z = /\bFirefox\/([\d.]+)\b/.exec(S)) ? me.push("identifying as Firefox " + Z[1]) : ge == "Firefox" && (Z = /\b(Mobile|Tablet|TV)\b/i.exec(S)) ? (re || (re = "Firefox OS"), $ || ($ = Z[1])) : !ge || (Z = !/\bMinefield\b/i.test(S) && /\b(?:Firefox|Safari)\b/.exec(ge)) ? (ge && !$ && /[\/,]|^[^(]+?\)/.test(S.slice(S.indexOf(Z + "/") + 8)) && (ge = null), (Z = $ || se || re) && ($ || se || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(re)) && (ge = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(re) ? re : Z) + " Browser")) : ge == "Electron" && (Z = (/\bChrome\/([\d.]+)\b/.exec(S) || 0)[1]) && me.push("Chromium " + Z), Se || (Se = ee([
|
140879
140879
|
"(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)",
|
140880
140880
|
"Version",
|
140881
|
-
w(
|
140881
|
+
w(ge),
|
140882
140882
|
"(?:Firefox|Minefield|NetFront)"
|
140883
|
-
])), (Z = je == "iCab" && parseFloat(Se) > 3 && "WebKit" || /\bOpera\b/.test(
|
140883
|
+
])), (Z = je == "iCab" && parseFloat(Se) > 3 && "WebKit" || /\bOpera\b/.test(ge) && (/\bOPR\b/.test(S) ? "Blink" : "Presto") || /\b(?:Midori|Nook|Safari)\b/i.test(S) && !/^(?:Trident|EdgeHTML)$/.test(je) && "WebKit" || !je && /\bMSIE\b/i.test(S) && (re == "Mac OS" ? "Tasman" : "Trident") || je == "WebKit" && /\bPlayStation\b(?! Vita\b)/i.test(ge) && "NetFront") && (je = [Z]), ge == "IE" && (Z = (/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(S) || 0)[1]) ? (ge += " Mobile", re = "Windows Phone " + (/\+$/.test(Z) ? Z : Z + ".x"), me.unshift("desktop mode")) : /\bWPDesktop\b/i.test(S) ? (ge = "IE Mobile", re = "Windows Phone 8.x", me.unshift("desktop mode"), Se || (Se = (/\brv:([\d.]+)/.exec(S) || 0)[1])) : ge != "IE" && je == "Trident" && (Z = /\brv:([\d.]+)/.exec(S)) && (ge && me.push("identifying as " + ge + (Se ? " " + Se : "")), ge = "IE", Se = Z[1]), ke) {
|
140884
140884
|
if (k(D, "global"))
|
140885
|
-
if (Q && (Z = Q.lang.System,
|
140885
|
+
if (Q && (Z = Q.lang.System, be = Z.getProperty("os.arch"), re = re || Z.getProperty("os.name") + " " + Z.getProperty("os.version")), he) {
|
140886
140886
|
try {
|
140887
|
-
Se = D.require("ringo/engine").version.join("."),
|
140887
|
+
Se = D.require("ringo/engine").version.join("."), ge = "RingoJS";
|
140888
140888
|
} catch {
|
140889
|
-
(Z = D.system) && Z.global.system == D.system && (
|
140889
|
+
(Z = D.system) && Z.global.system == D.system && (ge = "Narwhal", re || (re = Z[0].os || null));
|
140890
140890
|
}
|
140891
|
-
|
140892
|
-
} else typeof D.process == "object" && !D.process.browser && (Z = D.process) && (typeof Z.versions == "object" && (typeof Z.versions.electron == "string" ? (
|
140893
|
-
else v(Z = D.runtime) == _ ? (
|
140891
|
+
ge || (ge = "Rhino");
|
140892
|
+
} else typeof D.process == "object" && !D.process.browser && (Z = D.process) && (typeof Z.versions == "object" && (typeof Z.versions.electron == "string" ? (me.push("Node " + Z.versions.node), ge = "Electron", Se = Z.versions.electron) : typeof Z.versions.nw == "string" && (me.push("Chromium " + Se, "Node " + Z.versions.node), ge = "NW.js", Se = Z.versions.nw)), ge || (ge = "Node.js", be = Z.arch, re = Z.platform, Se = /[\d.]+/.exec(Z.version), Se = Se ? Se[0] : null));
|
140893
|
+
else v(Z = D.runtime) == _ ? (ge = "Adobe AIR", re = Z.flash.system.Capabilities.os) : v(Z = D.phantom) == ne ? (ge = "PhantomJS", Se = (Z = Z.version || null) && Z.major + "." + Z.minor + "." + Z.patch) : typeof ye.documentMode == "number" && (Z = /\bTrident\/(\d+)/i.exec(S)) ? (Se = [Se, ye.documentMode], (Z = +Z[1] + 4) != Se[1] && (me.push("IE " + Se[1] + " mode"), je && (je[1] = ""), Se[1] = Z), Se = ge == "IE" ? String(Se[1].toFixed(1)) : Se[0]) : typeof ye.documentMode == "number" && /^(?:Chrome|Firefox)\b/.test(ge) && (me.push("masking as " + ge + " " + Se), ge = "IE", Se = "11.0", je = ["Trident"], re = "Windows");
|
140894
140894
|
re = re && m(re);
|
140895
140895
|
}
|
140896
|
-
if (Se && (Z = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Se) || /(?:alpha|beta)(?: ?\d)?/i.exec(S + ";" + (
|
140897
|
-
|
140898
|
-
else if (
|
140896
|
+
if (Se && (Z = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Se) || /(?:alpha|beta)(?: ?\d)?/i.exec(S + ";" + (ke && P.appMinorVersion)) || /\bMinefield\b/i.test(S) && "a") && (Ue = /b/i.test(Z) ? "beta" : "alpha", Se = Se.replace(RegExp(Z + "\\+?$"), "") + (Ue == "beta" ? oe : Ce) + (/\d+\+?/.exec(Z) || "")), ge == "Fennec" || ge == "Firefox" && /\b(?:Android|Firefox OS|KaiOS)\b/.test(re))
|
140897
|
+
ge = "Firefox Mobile";
|
140898
|
+
else if (ge == "Maxthon" && Se)
|
140899
140899
|
Se = Se.replace(/\.[\d.]+/, ".x");
|
140900
140900
|
else if (/\bXbox\b/i.test($))
|
140901
|
-
$ == "Xbox 360" && (re = null), $ == "Xbox 360" && /\bIEMobile\b/.test(S) &&
|
140902
|
-
else if ((/^(?:Chrome|IE|Opera)$/.test(
|
140903
|
-
|
140904
|
-
else if (
|
140901
|
+
$ == "Xbox 360" && (re = null), $ == "Xbox 360" && /\bIEMobile\b/.test(S) && me.unshift("mobile mode");
|
140902
|
+
else if ((/^(?:Chrome|IE|Opera)$/.test(ge) || ge && !$ && !/Browser|Mobi/.test(ge)) && (re == "Windows CE" || /Mobi/i.test(S)))
|
140903
|
+
ge += " Mobile";
|
140904
|
+
else if (ge == "IE" && ke)
|
140905
140905
|
try {
|
140906
|
-
D.external === null &&
|
140906
|
+
D.external === null && me.unshift("platform preview");
|
140907
140907
|
} catch {
|
140908
|
-
|
140908
|
+
me.unshift("embedded");
|
140909
140909
|
}
|
140910
|
-
else (/\bBlackBerry\b/.test($) || /\bBB10\b/.test(S)) && (Z = (RegExp($.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(S) || 0)[1] || Se) ? (Z = [Z, /BB10/.test(S)], re = (Z[1] ? ($ = null, se = "BlackBerry") : "Device Software") + " " + Z[0], Se = null) : this != g && $ != "Wii" && (
|
140911
|
-
(Z = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(S) || 0)[1]) && (Z = [parseFloat(Z.replace(/\.(\d)$/, ".0$1")), Z],
|
140910
|
+
else (/\bBlackBerry\b/.test($) || /\bBB10\b/.test(S)) && (Z = (RegExp($.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(S) || 0)[1] || Se) ? (Z = [Z, /BB10/.test(S)], re = (Z[1] ? ($ = null, se = "BlackBerry") : "Device Software") + " " + Z[0], Se = null) : this != g && $ != "Wii" && (ke && we || /Opera/.test(ge) && /\b(?:MSIE|Firefox)\b/i.test(S) || ge == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(re) || ge == "IE" && (re && !/^Win/.test(re) && Se > 5.5 || /\bWindows XP\b/.test(re) && Se > 8 || Se == 8 && !/\bTrident\b/.test(S))) && !l.test(Z = E.call(g, S.replace(l, "") + ";")) && Z.name && (Z = "ing as " + Z.name + ((Z = Z.version) ? " " + Z : ""), l.test(ge) ? (/\bIE\b/.test(Z) && re == "Mac OS" && (re = null), Z = "identify" + Z) : (Z = "mask" + Z, ue ? ge = m(ue.replace(/([a-z])([A-Z])/g, "$1 $2")) : ge = "Opera", /\bIE\b/.test(Z) && (re = null), ke || (Se = null)), je = ["Presto"], me.push(Z));
|
140911
|
+
(Z = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(S) || 0)[1]) && (Z = [parseFloat(Z.replace(/\.(\d)$/, ".0$1")), Z], ge == "Safari" && Z[1].slice(-1) == "+" ? (ge = "WebKit Nightly", Ue = "alpha", Se = Z[1].slice(0, -1)) : (Se == Z[1] || Se == (Z[2] = (/\bSafari\/([\d.]+\+?)/i.exec(S) || 0)[1])) && (Se = null), Z[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(S) || 0)[1], Z[0] == 537.36 && Z[2] == 537.36 && parseFloat(Z[1]) >= 28 && je == "WebKit" && (je = ["Blink"]), !ke || !G && !Z[1] ? (je && (je[1] = "like Safari"), Z = (Z = Z[0], Z < 400 ? 1 : Z < 500 ? 2 : Z < 526 ? 3 : Z < 533 ? 4 : Z < 534 ? "4+" : Z < 535 ? 5 : Z < 537 ? 6 : Z < 538 ? 7 : Z < 601 ? 8 : Z < 602 ? 9 : Z < 604 ? 10 : Z < 606 ? 11 : Z < 608 ? 12 : "12")) : (je && (je[1] = "like Chrome"), Z = Z[1] || (Z = Z[0], Z < 530 ? 1 : Z < 532 ? 2 : Z < 532.05 ? 3 : Z < 533 ? 4 : Z < 534.03 ? 5 : Z < 534.07 ? 6 : Z < 534.1 ? 7 : Z < 534.13 ? 8 : Z < 534.16 ? 9 : Z < 534.24 ? 10 : Z < 534.3 ? 11 : Z < 535.01 ? 12 : Z < 535.02 ? "13+" : Z < 535.07 ? 15 : Z < 535.11 ? 16 : Z < 535.19 ? 17 : Z < 536.05 ? 18 : Z < 536.1 ? 19 : Z < 537.01 ? 20 : Z < 537.11 ? "21+" : Z < 537.13 ? 23 : Z < 537.18 ? 24 : Z < 537.24 ? 25 : Z < 537.36 ? 26 : je != "Blink" ? "27" : "28")), je && (je[1] += " " + (Z += typeof Z == "number" ? ".x" : /[.+]/.test(Z) ? "" : "+")), ge == "Safari" && (!Se || parseInt(Se) > 45) ? Se = Z : ge == "Chrome" && /\bHeadlessChrome/i.test(S) && me.unshift("headless")), ge == "Opera" && (Z = /\bzbov|zvav$/.exec(re)) ? (ge += " ", me.unshift("desktop mode"), Z == "zvav" ? (ge += "Mini", Se = null) : ge += "Mobile", re = re.replace(RegExp(" *" + Z + "$"), "")) : ge == "Safari" && /\bChrome\b/.exec(je && je[1]) ? (me.unshift("desktop mode"), ge = "Chrome Mobile", Se = null, /\bOS X\b/.test(re) ? (se = "Apple", re = "iOS 4.3+") : re = null) : /\bSRWare Iron\b/.test(ge) && !Se && (Se = ee("Chrome")), Se && Se.indexOf(Z = /[\d.]+$/.exec(re)) == 0 && S.indexOf("/" + Z + "-") > -1 && (re = x(re.replace(Z, ""))), re && re.indexOf(ge) != -1 && !RegExp(ge + " OS").test(re) && (re = re.replace(RegExp(" *" + w(ge) + " *"), "")), je && !/\b(?:Avant|Nook)\b/.test(ge) && (/Browser|Lunascape|Maxthon/.test(ge) || ge != "Safari" && /^iOS/.test(re) && /\bSafari\b/.test(je[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(ge) && je[1]) && (Z = je[je.length - 1]) && me.push(Z), me.length && (me = ["(" + me.join("; ") + ")"]), se && $ && $.indexOf(se) < 0 && me.push("on " + se), $ && me.push((/^on /.test(me[me.length - 1]) ? "" : "on ") + $), re && (Z = / ([\d.+]+)$/.exec(re), Ne = Z && re.charAt(re.length - Z[0].length - 1) == "/", re = {
|
140912
140912
|
architecture: 32,
|
140913
|
-
family: Z && !
|
140913
|
+
family: Z && !Ne ? re.replace(Z[0], "") : re,
|
140914
140914
|
version: Z ? Z[1] : null,
|
140915
140915
|
toString: function() {
|
140916
140916
|
var _e = this.version;
|
140917
|
-
return this.family + (_e && !
|
140917
|
+
return this.family + (_e && !Ne ? " " + _e : "") + (this.architecture == 64 ? " 64-bit" : "");
|
140918
140918
|
}
|
140919
|
-
}), (Z = /\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(
|
140919
|
+
}), (Z = /\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(be)) && !/\bi686\b/i.test(be) ? (re && (re.architecture = 64, re.family = re.family.replace(RegExp(" *" + Z), "")), ge && (/\bWOW64\b/i.test(S) || ke && /\w(?:86|32)$/.test(P.cpuClass || P.platform) && !/\bWin64; x64\b/i.test(S)) && me.unshift("32-bit")) : re && /^OS X/.test(re.family) && ge == "Chrome" && parseFloat(Se) >= 39 && (re.architecture = 64), S || (S = null);
|
140920
140920
|
var de = {};
|
140921
|
-
return de.description = S, de.layout = je && je[0], de.manufacturer = se, de.name =
|
140921
|
+
return de.description = S, de.layout = je && je[0], de.manufacturer = se, de.name = ge, de.prerelease = Ue, de.product = $, de.ua = S, de.version = ge && Se, de.os = re || {
|
140922
140922
|
/**
|
140923
140923
|
* The CPU architecture the OS is built for.
|
140924
140924
|
*
|
@@ -140954,7 +140954,7 @@ Dv.exports;
|
|
140954
140954
|
toString: function() {
|
140955
140955
|
return "null";
|
140956
140956
|
}
|
140957
|
-
}, de.parse = E, de.toString = ce, de.version &&
|
140957
|
+
}, de.parse = E, de.toString = ce, de.version && me.unshift(Se), de.name && me.unshift(ge), re && ge && !(re == String(re).split(" ")[0] && (re == ge.split(" ")[0] || $)) && me.push($ ? "(" + re + ")" : "on " + re), me.length && (de.description = me.join(" ")), de;
|
140958
140958
|
}
|
140959
140959
|
var L = E();
|
140960
140960
|
i && s ? g(L, function(S, D) {
|
@@ -141190,36 +141190,35 @@ const v3t = /* @__PURE__ */ K4(g3t), b3t = ({
|
|
141190
141190
|
}),
|
141191
141191
|
[Q, oe]
|
141192
141192
|
);
|
141193
|
-
const
|
141194
|
-
|
141195
|
-
|
141196
|
-
|
141197
|
-
|
141198
|
-
|
141199
|
-
|
141200
|
-
|
141201
|
-
|
141202
|
-
|
141203
|
-
}), ge.slice(0, 6);
|
141193
|
+
const ye = (ue) => {
|
141194
|
+
const Z = ue.name.split(",").map((be) => {
|
141195
|
+
const me = be.trim();
|
141196
|
+
return (w == null ? void 0 : w.find((ke) => ke.name.toLowerCase() === me.toLowerCase())) || { name: me, color: ue.color };
|
141197
|
+
});
|
141198
|
+
x == null || x((be) => {
|
141199
|
+
const me = [...be];
|
141200
|
+
return Z.forEach((Ue) => {
|
141201
|
+
me.some((ke) => ke.name.toLowerCase() === Ue.name.toLowerCase()) || me.push(Ue);
|
141202
|
+
}), me;
|
141204
141203
|
});
|
141205
141204
|
}, we = (ue) => {
|
141206
|
-
x == null || x((Z) => Z.filter((
|
141205
|
+
x == null || x((Z) => Z.filter((be) => be.name !== ue));
|
141207
141206
|
};
|
141208
141207
|
return We(() => {
|
141209
141208
|
if (Q && G) {
|
141210
|
-
const { selection: ue } = Q.state, Z = Kv(ue),
|
141209
|
+
const { selection: ue } = Q.state, Z = Kv(ue), be = () => {
|
141211
141210
|
I(!0);
|
141212
|
-
},
|
141211
|
+
}, me = () => {
|
141213
141212
|
I(!1);
|
141214
141213
|
};
|
141215
|
-
return !Z && Q.on("focus",
|
141216
|
-
Q.off("focus",
|
141214
|
+
return !Z && Q.on("focus", be), Z && Q.on("blur", me), () => {
|
141215
|
+
Q.off("focus", be), Q.off("blur", me);
|
141217
141216
|
};
|
141218
141217
|
}
|
141219
141218
|
}, [G, Q]), We(() => {
|
141220
141219
|
if (!Q) return;
|
141221
|
-
const ue = (
|
141222
|
-
|
141220
|
+
const ue = (be) => {
|
141221
|
+
be.key === "Enter" && Q.commands.scrollIntoView();
|
141223
141222
|
}, Z = Q.view.dom;
|
141224
141223
|
return Z.addEventListener("keydown", ue), () => {
|
141225
141224
|
Z.removeEventListener("keydown", ue);
|
@@ -141340,15 +141339,15 @@ const v3t = /* @__PURE__ */ K4(g3t), b3t = ({
|
|
141340
141339
|
))
|
141341
141340
|
}
|
141342
141341
|
) }),
|
141343
|
-
|
141342
|
+
/* @__PURE__ */ F.jsx(
|
141344
141343
|
cG,
|
141345
141344
|
{
|
141346
141345
|
tags: w || [],
|
141347
141346
|
selectedTags: b,
|
141348
|
-
onAddTag:
|
141347
|
+
onAddTag: ye,
|
141349
141348
|
isPreviewMode: t
|
141350
141349
|
}
|
141351
|
-
)
|
141350
|
+
)
|
141352
141351
|
] }),
|
141353
141352
|
/* @__PURE__ */ F.jsx(
|
141354
141353
|
EV,
|