@pipedream/connect-react 1.0.0-preview.19 → 1.0.0-preview.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect-react.es.js +365 -367
- package/dist/connect-react.umd.js +9 -9
- package/package.json +1 -1
package/dist/connect-react.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Lo = (e) => {
|
|
2
2
|
throw TypeError(e);
|
|
3
3
|
};
|
|
4
|
-
var ri = (e, t, n) => t.has(e) ||
|
|
5
|
-
var C = (e, t, n) => (ri(e, t, "read from private field"), n ? n.call(e) : t.get(e)), $ = (e, t, n) => t.has(e) ?
|
|
4
|
+
var ri = (e, t, n) => t.has(e) || Lo("Cannot " + n);
|
|
5
|
+
var C = (e, t, n) => (ri(e, t, "read from private field"), n ? n.call(e) : t.get(e)), $ = (e, t, n) => t.has(e) ? Lo("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), z = (e, t, n, r) => (ri(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), le = (e, t, n) => (ri(e, t, "access private method"), n);
|
|
6
6
|
var fr = (e, t, n, r) => ({
|
|
7
7
|
set _(i) {
|
|
8
8
|
z(e, t, i, n);
|
|
@@ -13,8 +13,8 @@ var fr = (e, t, n, r) => ({
|
|
|
13
13
|
});
|
|
14
14
|
import { jsx as W, Fragment as _l, jsxs as gt } from "react/jsx-runtime";
|
|
15
15
|
import * as te from "react";
|
|
16
|
-
import { createContext as $n, useContext as Pn, useId as Ki, useState as Ce, useEffect as Yt, useCallback as Ve, useLayoutEffect as Ul, useRef as xt, useMemo as ft, Component as
|
|
17
|
-
import { keyframes as ql, jsx as j, css as
|
|
16
|
+
import { createContext as $n, useContext as Pn, useId as Ki, useState as Ce, useEffect as Yt, useCallback as Ve, useLayoutEffect as Ul, useRef as xt, useMemo as ft, Component as bs, Fragment as xi, forwardRef as ys, Suspense as Ql } from "react";
|
|
17
|
+
import { keyframes as ql, jsx as j, css as Is } from "@emotion/react";
|
|
18
18
|
import { createPortal as $l } from "react-dom";
|
|
19
19
|
typeof document > "u" && (globalThis.document = {
|
|
20
20
|
createElement: () => {
|
|
@@ -24,7 +24,7 @@ function Kl({ prop: e }) {
|
|
|
24
24
|
return /* @__PURE__ */ W("p", { className: `pd-alert-${e.alertType}`, children: e.content });
|
|
25
25
|
}
|
|
26
26
|
var cn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
27
|
-
function
|
|
27
|
+
function vs(e) {
|
|
28
28
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
29
29
|
}
|
|
30
30
|
var wr = { exports: {} };
|
|
@@ -94,7 +94,7 @@ wr.exports;
|
|
|
94
94
|
return h ? "Symbol(src)_1." + h : "";
|
|
95
95
|
}(), at = V.toString, tt = RegExp(
|
|
96
96
|
"^" + oe.call(ae).replace(se, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
97
|
-
), wt = pe ? D.Buffer : void 0, st = D.Symbol, Be = D.Uint8Array, yt = V.propertyIsEnumerable, nt = Qr.splice, zt = st ? st.toStringTag : void 0,
|
|
97
|
+
), wt = pe ? D.Buffer : void 0, st = D.Symbol, Be = D.Uint8Array, yt = V.propertyIsEnumerable, nt = Qr.splice, zt = st ? st.toStringTag : void 0, Fo = Object.getOwnPropertySymbols, $u = wt ? wt.isBuffer : void 0, Ku = _r(Object.keys, Object), qr = sn(D, "DataView"), Bn = sn(D, "Map"), $r = sn(D, "Promise"), Kr = sn(D, "Set"), ei = sn(D, "WeakMap"), On = sn(Object, "create"), el = Zt(qr), tl = Zt(Bn), nl = Zt($r), rl = Zt(Kr), il = Zt(ei), Po = st ? st.prototype : void 0, ti = Po ? Po.valueOf : void 0;
|
|
98
98
|
function Ht(h) {
|
|
99
99
|
var x = -1, G = h == null ? 0 : h.length;
|
|
100
100
|
for (this.clear(); ++x < G; ) {
|
|
@@ -225,7 +225,7 @@ wr.exports;
|
|
|
225
225
|
}
|
|
226
226
|
Et.prototype.clear = xl, Et.prototype.delete = Al, Et.prototype.get = Sl, Et.prototype.has = wl, Et.prototype.set = El;
|
|
227
227
|
function Fl(h, x) {
|
|
228
|
-
var G = cr(h), L = !G && Hl(h), Ie = !G && !L && ni(h), re = !G && !L && !Ie &&
|
|
228
|
+
var G = cr(h), L = !G && Hl(h), Ie = !G && !L && ni(h), re = !G && !L && !Ie && No(h), Ae = G || L || Ie || re, Ge = Ae ? jr(h.length, String) : [], Re = Ge.length;
|
|
229
229
|
for (var xe in h)
|
|
230
230
|
ae.call(h, xe) && !(Ae && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
231
231
|
(xe == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -236,7 +236,7 @@ wr.exports;
|
|
|
236
236
|
}
|
|
237
237
|
function ur(h, x) {
|
|
238
238
|
for (var G = h.length; G--; )
|
|
239
|
-
if (
|
|
239
|
+
if (Oo(h[G][0], x))
|
|
240
240
|
return G;
|
|
241
241
|
return -1;
|
|
242
242
|
}
|
|
@@ -247,11 +247,11 @@ wr.exports;
|
|
|
247
247
|
function Tn(h) {
|
|
248
248
|
return h == null ? h === void 0 ? T : b : zt && zt in Object(h) ? Vl(h) : zl(h);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Go(h) {
|
|
251
251
|
return Vn(h) && Tn(h) == s;
|
|
252
252
|
}
|
|
253
|
-
function
|
|
254
|
-
return h === x ? !0 : h == null || x == null || !Vn(h) && !Vn(x) ? h !== h && x !== x : Gl(h, x, G, L,
|
|
253
|
+
function Ro(h, x, G, L, Ie) {
|
|
254
|
+
return h === x ? !0 : h == null || x == null || !Vn(h) && !Vn(x) ? h !== h && x !== x : Gl(h, x, G, L, Ro, Ie);
|
|
255
255
|
}
|
|
256
256
|
function Gl(h, x, G, L, Ie, re) {
|
|
257
257
|
var Ae = cr(h), Ge = cr(x), Re = Ae ? u : Ft(h), xe = Ge ? u : Ft(x);
|
|
@@ -263,7 +263,7 @@ wr.exports;
|
|
|
263
263
|
Ae = !0, Ze = !1;
|
|
264
264
|
}
|
|
265
265
|
if (Oe && !Ze)
|
|
266
|
-
return re || (re = new Et()), Ae ||
|
|
266
|
+
return re || (re = new Et()), Ae || No(h) ? ko(h, x, G, L, Ie, re) : Ol(h, x, Re, G, L, Ie, re);
|
|
267
267
|
if (!(G & i)) {
|
|
268
268
|
var Ue = Ze && ae.call(h, "__wrapped__"), Qe = rt && ae.call(x, "__wrapped__");
|
|
269
269
|
if (Ue || Qe) {
|
|
@@ -274,13 +274,13 @@ wr.exports;
|
|
|
274
274
|
return Oe ? (re || (re = new Et()), Tl(h, x, G, L, Ie, re)) : !1;
|
|
275
275
|
}
|
|
276
276
|
function Rl(h) {
|
|
277
|
-
if (!
|
|
277
|
+
if (!Do(h) || Ll(h))
|
|
278
278
|
return !1;
|
|
279
|
-
var x =
|
|
279
|
+
var x = To(h) ? tt : m;
|
|
280
280
|
return x.test(Zt(h));
|
|
281
281
|
}
|
|
282
282
|
function kl(h) {
|
|
283
|
-
return Vn(h) &&
|
|
283
|
+
return Vn(h) && Vo(h.length) && !!ee[Tn(h)];
|
|
284
284
|
}
|
|
285
285
|
function Bl(h) {
|
|
286
286
|
if (!Xl(h))
|
|
@@ -290,7 +290,7 @@ wr.exports;
|
|
|
290
290
|
ae.call(h, G) && G != "constructor" && x.push(G);
|
|
291
291
|
return x;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function ko(h, x, G, L, Ie, re) {
|
|
294
294
|
var Ae = G & i, Ge = h.length, Re = x.length;
|
|
295
295
|
if (Ge != Re && !(Ae && Re > Ge))
|
|
296
296
|
return !1;
|
|
@@ -334,7 +334,7 @@ wr.exports;
|
|
|
334
334
|
case c:
|
|
335
335
|
case d:
|
|
336
336
|
case v:
|
|
337
|
-
return
|
|
337
|
+
return Oo(+h, +x);
|
|
338
338
|
case f:
|
|
339
339
|
return h.name == x.name && h.message == x.message;
|
|
340
340
|
case P:
|
|
@@ -350,7 +350,7 @@ wr.exports;
|
|
|
350
350
|
if (xe)
|
|
351
351
|
return xe == x;
|
|
352
352
|
L |= o, Ae.set(h, x);
|
|
353
|
-
var Ze =
|
|
353
|
+
var Ze = ko(Ge(h), Ge(x), L, Ie, re, Ae);
|
|
354
354
|
return Ae.delete(h), Ze;
|
|
355
355
|
case R:
|
|
356
356
|
if (ti)
|
|
@@ -359,7 +359,7 @@ wr.exports;
|
|
|
359
359
|
return !1;
|
|
360
360
|
}
|
|
361
361
|
function Tl(h, x, G, L, Ie, re) {
|
|
362
|
-
var Ae = G & i, Ge =
|
|
362
|
+
var Ae = G & i, Ge = Bo(h), Re = Ge.length, xe = Bo(x), Ze = xe.length;
|
|
363
363
|
if (Re != Ze && !Ae)
|
|
364
364
|
return !1;
|
|
365
365
|
for (var rt = Re; rt--; ) {
|
|
@@ -376,8 +376,8 @@ wr.exports;
|
|
|
376
376
|
Oe = Ge[rt];
|
|
377
377
|
var vt = h[Oe], jt = x[Oe];
|
|
378
378
|
if (L)
|
|
379
|
-
var
|
|
380
|
-
if (!(
|
|
379
|
+
var Mo = Ae ? L(jt, vt, Oe, x, h, re) : L(vt, jt, Oe, h, x, re);
|
|
380
|
+
if (!(Mo === void 0 ? vt === jt || Ie(vt, jt, G, L, re) : Mo)) {
|
|
381
381
|
Qe = !1;
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
@@ -389,7 +389,7 @@ wr.exports;
|
|
|
389
389
|
}
|
|
390
390
|
return re.delete(h), re.delete(x), Qe;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Bo(h) {
|
|
393
393
|
return Pl(h, jl, Dl);
|
|
394
394
|
}
|
|
395
395
|
function lr(h, x) {
|
|
@@ -410,8 +410,8 @@ wr.exports;
|
|
|
410
410
|
var Ie = at.call(h);
|
|
411
411
|
return L && (x ? h[zt] = G : delete h[zt]), Ie;
|
|
412
412
|
}
|
|
413
|
-
var Dl =
|
|
414
|
-
return h == null ? [] : (h = Object(h), an(
|
|
413
|
+
var Dl = Fo ? function(h) {
|
|
414
|
+
return h == null ? [] : (h = Object(h), an(Fo(h), function(x) {
|
|
415
415
|
return yt.call(h, x);
|
|
416
416
|
}));
|
|
417
417
|
} : Jl, Ft = Tn;
|
|
@@ -462,38 +462,38 @@ wr.exports;
|
|
|
462
462
|
}
|
|
463
463
|
return "";
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Oo(h, x) {
|
|
466
466
|
return h === x || h !== h && x !== x;
|
|
467
467
|
}
|
|
468
|
-
var Hl =
|
|
468
|
+
var Hl = Go(/* @__PURE__ */ function() {
|
|
469
469
|
return arguments;
|
|
470
|
-
}()) ?
|
|
470
|
+
}()) ? Go : function(h) {
|
|
471
471
|
return Vn(h) && ae.call(h, "callee") && !yt.call(h, "callee");
|
|
472
472
|
}, cr = Array.isArray;
|
|
473
473
|
function Wl(h) {
|
|
474
|
-
return h != null &&
|
|
474
|
+
return h != null && Vo(h.length) && !To(h);
|
|
475
475
|
}
|
|
476
476
|
var ni = $u || Yl;
|
|
477
477
|
function Zl(h, x) {
|
|
478
|
-
return
|
|
478
|
+
return Ro(h, x);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
if (!
|
|
480
|
+
function To(h) {
|
|
481
|
+
if (!Do(h))
|
|
482
482
|
return !1;
|
|
483
483
|
var x = Tn(h);
|
|
484
484
|
return x == p || x == I || x == l || x == E;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
486
|
+
function Vo(h) {
|
|
487
487
|
return typeof h == "number" && h > -1 && h % 1 == 0 && h <= a;
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Do(h) {
|
|
490
490
|
var x = typeof h;
|
|
491
491
|
return h != null && (x == "object" || x == "function");
|
|
492
492
|
}
|
|
493
493
|
function Vn(h) {
|
|
494
494
|
return h != null && typeof h == "object";
|
|
495
495
|
}
|
|
496
|
-
var
|
|
496
|
+
var No = Xt ? or(Xt) : kl;
|
|
497
497
|
function jl(h) {
|
|
498
498
|
return Wl(h) ? Fl(h) : Bl(h);
|
|
499
499
|
}
|
|
@@ -506,7 +506,7 @@ wr.exports;
|
|
|
506
506
|
e.exports = Zl;
|
|
507
507
|
})(wr, wr.exports);
|
|
508
508
|
var ec = wr.exports;
|
|
509
|
-
const tc = /* @__PURE__ */
|
|
509
|
+
const tc = /* @__PURE__ */ vs(ec);
|
|
510
510
|
var Kn = class {
|
|
511
511
|
constructor() {
|
|
512
512
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
@@ -532,7 +532,7 @@ function nc(e, t) {
|
|
|
532
532
|
function Ai(e) {
|
|
533
533
|
return typeof e == "number" && e >= 0 && e !== 1 / 0;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function Cs(e, t) {
|
|
536
536
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
537
537
|
}
|
|
538
538
|
function dn(e, t) {
|
|
@@ -541,7 +541,7 @@ function dn(e, t) {
|
|
|
541
541
|
function ot(e, t) {
|
|
542
542
|
return typeof e == "function" ? e(t) : e;
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Xo(e, t) {
|
|
545
545
|
const {
|
|
546
546
|
type: n = "all",
|
|
547
547
|
exact: r,
|
|
@@ -564,7 +564,7 @@ function zo(e, t) {
|
|
|
564
564
|
}
|
|
565
565
|
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || o && !o(t));
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function zo(e, t) {
|
|
568
568
|
const { exact: n, status: r, predicate: i, mutationKey: o } = e;
|
|
569
569
|
if (o) {
|
|
570
570
|
if (!t.options.mutationKey)
|
|
@@ -592,7 +592,7 @@ function Jn(e, t) {
|
|
|
592
592
|
function Si(e, t) {
|
|
593
593
|
if (e === t)
|
|
594
594
|
return e;
|
|
595
|
-
const n =
|
|
595
|
+
const n = Ho(e) && Ho(t);
|
|
596
596
|
if (n || Ei(e) && Ei(t)) {
|
|
597
597
|
const r = n ? e : Object.keys(e), i = r.length, o = n ? t : Object.keys(t), a = o.length, s = n ? [] : {};
|
|
598
598
|
let u = 0;
|
|
@@ -612,19 +612,19 @@ function wi(e, t) {
|
|
|
612
612
|
return !1;
|
|
613
613
|
return !0;
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function Ho(e) {
|
|
616
616
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
617
617
|
}
|
|
618
618
|
function Ei(e) {
|
|
619
|
-
if (!
|
|
619
|
+
if (!Wo(e))
|
|
620
620
|
return !1;
|
|
621
621
|
const t = e.constructor;
|
|
622
622
|
if (t === void 0)
|
|
623
623
|
return !0;
|
|
624
624
|
const n = t.prototype;
|
|
625
|
-
return !(!
|
|
625
|
+
return !(!Wo(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Wo(e) {
|
|
628
628
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
629
629
|
}
|
|
630
630
|
function rc(e) {
|
|
@@ -657,12 +657,12 @@ function oc(e, t, n = 0) {
|
|
|
657
657
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
658
658
|
}
|
|
659
659
|
var Er = Symbol();
|
|
660
|
-
function
|
|
660
|
+
function xs(e, t) {
|
|
661
661
|
return process.env.NODE_ENV !== "production" && e.queryFn === Er && console.error(
|
|
662
662
|
`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
|
|
663
663
|
), !e.queryFn && (t != null && t.initialPromise) ? () => t.initialPromise : !e.queryFn || e.queryFn === Er ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
664
664
|
}
|
|
665
|
-
var _t, kt, gn,
|
|
665
|
+
var _t, kt, gn, us, ac = (us = class extends Kn {
|
|
666
666
|
constructor() {
|
|
667
667
|
super();
|
|
668
668
|
$(this, _t);
|
|
@@ -703,7 +703,7 @@ var _t, kt, gn, ls, ac = (ls = class extends Kn {
|
|
|
703
703
|
var t;
|
|
704
704
|
return typeof C(this, _t) == "boolean" ? C(this, _t) : ((t = globalThis.document) == null ? void 0 : t.visibilityState) !== "hidden";
|
|
705
705
|
}
|
|
706
|
-
}, _t = new WeakMap(), kt = new WeakMap(), gn = new WeakMap(),
|
|
706
|
+
}, _t = new WeakMap(), kt = new WeakMap(), gn = new WeakMap(), us), to = new ac(), mn, Bt, bn, ls, sc = (ls = class extends Kn {
|
|
707
707
|
constructor() {
|
|
708
708
|
super();
|
|
709
709
|
$(this, mn, !0);
|
|
@@ -737,7 +737,7 @@ var _t, kt, gn, ls, ac = (ls = class extends Kn {
|
|
|
737
737
|
isOnline() {
|
|
738
738
|
return C(this, mn);
|
|
739
739
|
}
|
|
740
|
-
}, mn = new WeakMap(), Bt = new WeakMap(), bn = new WeakMap(),
|
|
740
|
+
}, mn = new WeakMap(), Bt = new WeakMap(), bn = new WeakMap(), ls), Fr = new sc();
|
|
741
741
|
function Pi() {
|
|
742
742
|
let e, t;
|
|
743
743
|
const n = new Promise((i, o) => {
|
|
@@ -763,27 +763,27 @@ function Pi() {
|
|
|
763
763
|
function uc(e) {
|
|
764
764
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function As(e) {
|
|
767
767
|
return (e ?? "online") === "online" ? Fr.isOnline() : !0;
|
|
768
768
|
}
|
|
769
|
-
var
|
|
769
|
+
var Ss = class extends Error {
|
|
770
770
|
constructor(e) {
|
|
771
771
|
super("CancelledError"), this.revert = e == null ? void 0 : e.revert, this.silent = e == null ? void 0 : e.silent;
|
|
772
772
|
}
|
|
773
773
|
};
|
|
774
774
|
function ii(e) {
|
|
775
|
-
return e instanceof
|
|
775
|
+
return e instanceof Ss;
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function ws(e) {
|
|
778
778
|
let t = !1, n = 0, r = !1, i;
|
|
779
779
|
const o = Pi(), a = (g) => {
|
|
780
780
|
var v;
|
|
781
|
-
r || (f(new
|
|
781
|
+
r || (f(new Ss(g)), (v = e.abort) == null || v.call(e));
|
|
782
782
|
}, s = () => {
|
|
783
783
|
t = !0;
|
|
784
784
|
}, u = () => {
|
|
785
785
|
t = !1;
|
|
786
|
-
}, l = () => to.isFocused() && (e.networkMode === "always" || Fr.isOnline()) && e.canRun(), c = () =>
|
|
786
|
+
}, l = () => to.isFocused() && (e.networkMode === "always" || Fr.isOnline()) && e.canRun(), c = () => As(e.networkMode) && e.canRun(), d = (g) => {
|
|
787
787
|
var v;
|
|
788
788
|
r || (r = !0, (v = e.onSuccess) == null || v.call(e, g), i == null || i(), o.resolve(g));
|
|
789
789
|
}, f = (g) => {
|
|
@@ -890,7 +890,7 @@ function lc() {
|
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
892
|
}
|
|
893
|
-
var ke = lc(), Ut,
|
|
893
|
+
var ke = lc(), Ut, cs, Es = (cs = class {
|
|
894
894
|
constructor() {
|
|
895
895
|
$(this, Ut);
|
|
896
896
|
}
|
|
@@ -911,7 +911,7 @@ var ke = lc(), Ut, ds, Fs = (ds = class {
|
|
|
911
911
|
clearGcTimeout() {
|
|
912
912
|
C(this, Ut) && (clearTimeout(C(this, Ut)), z(this, Ut, void 0));
|
|
913
913
|
}
|
|
914
|
-
}, Ut = new WeakMap(),
|
|
914
|
+
}, Ut = new WeakMap(), cs), yn, In, qe, Te, _n, Qt, it, Ct, ds, cc = (ds = class extends Es {
|
|
915
915
|
constructor(t) {
|
|
916
916
|
super();
|
|
917
917
|
$(this, it);
|
|
@@ -973,7 +973,7 @@ var ke = lc(), Ut, ds, Fs = (ds = class {
|
|
|
973
973
|
) : this.state.data === void 0;
|
|
974
974
|
}
|
|
975
975
|
isStaleByTime(t = 0) {
|
|
976
|
-
return this.state.isInvalidated || this.state.data === void 0 || !
|
|
976
|
+
return this.state.isInvalidated || this.state.data === void 0 || !Cs(this.state.dataUpdatedAt, t);
|
|
977
977
|
}
|
|
978
978
|
onFocus() {
|
|
979
979
|
var n;
|
|
@@ -1018,7 +1018,7 @@ var ke = lc(), Ut, ds, Fs = (ds = class {
|
|
|
1018
1018
|
get: () => (z(this, Qt, !0), r.signal)
|
|
1019
1019
|
});
|
|
1020
1020
|
}, o = () => {
|
|
1021
|
-
const d =
|
|
1021
|
+
const d = xs(this.options, n), f = {
|
|
1022
1022
|
queryKey: this.queryKey,
|
|
1023
1023
|
meta: this.meta
|
|
1024
1024
|
};
|
|
@@ -1054,7 +1054,7 @@ var ke = lc(), Ut, ds, Fs = (ds = class {
|
|
|
1054
1054
|
this
|
|
1055
1055
|
)), this.scheduleGc();
|
|
1056
1056
|
};
|
|
1057
|
-
return z(this, Te,
|
|
1057
|
+
return z(this, Te, ws({
|
|
1058
1058
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
1059
1059
|
fn: a.fetchFn,
|
|
1060
1060
|
abort: r.abort.bind(r),
|
|
@@ -1117,7 +1117,7 @@ var ke = lc(), Ut, ds, Fs = (ds = class {
|
|
|
1117
1117
|
case "fetch":
|
|
1118
1118
|
return {
|
|
1119
1119
|
...r,
|
|
1120
|
-
...
|
|
1120
|
+
...Fs(r.data, this.options),
|
|
1121
1121
|
fetchMeta: t.meta ?? null
|
|
1122
1122
|
};
|
|
1123
1123
|
case "success":
|
|
@@ -1164,12 +1164,12 @@ var ke = lc(), Ut, ds, Fs = (ds = class {
|
|
|
1164
1164
|
r.onQueryUpdate();
|
|
1165
1165
|
}), C(this, qe).notify({ query: this, type: "updated", action: t });
|
|
1166
1166
|
});
|
|
1167
|
-
},
|
|
1168
|
-
function
|
|
1167
|
+
}, ds);
|
|
1168
|
+
function Fs(e, t) {
|
|
1169
1169
|
return {
|
|
1170
1170
|
fetchFailureCount: 0,
|
|
1171
1171
|
fetchFailureReason: null,
|
|
1172
|
-
fetchStatus:
|
|
1172
|
+
fetchStatus: As(t.networkMode) ? "fetching" : "paused",
|
|
1173
1173
|
...e === void 0 && {
|
|
1174
1174
|
error: null,
|
|
1175
1175
|
status: "pending"
|
|
@@ -1193,7 +1193,7 @@ function dc(e) {
|
|
|
1193
1193
|
fetchStatus: "idle"
|
|
1194
1194
|
};
|
|
1195
1195
|
}
|
|
1196
|
-
var lt,
|
|
1196
|
+
var lt, ps, pc = (ps = class extends Kn {
|
|
1197
1197
|
constructor(t = {}) {
|
|
1198
1198
|
super();
|
|
1199
1199
|
$(this, lt);
|
|
@@ -1237,12 +1237,12 @@ var lt, fs, pc = (fs = class extends Kn {
|
|
|
1237
1237
|
find(t) {
|
|
1238
1238
|
const n = { exact: !0, ...t };
|
|
1239
1239
|
return this.getAll().find(
|
|
1240
|
-
(r) =>
|
|
1240
|
+
(r) => Xo(n, r)
|
|
1241
1241
|
);
|
|
1242
1242
|
}
|
|
1243
1243
|
findAll(t = {}) {
|
|
1244
1244
|
const n = this.getAll();
|
|
1245
|
-
return Object.keys(t).length > 0 ? n.filter((r) =>
|
|
1245
|
+
return Object.keys(t).length > 0 ? n.filter((r) => Xo(t, r)) : n;
|
|
1246
1246
|
}
|
|
1247
1247
|
notify(t) {
|
|
1248
1248
|
ke.batch(() => {
|
|
@@ -1265,7 +1265,7 @@ var lt, fs, pc = (fs = class extends Kn {
|
|
|
1265
1265
|
});
|
|
1266
1266
|
});
|
|
1267
1267
|
}
|
|
1268
|
-
}, lt = new WeakMap(),
|
|
1268
|
+
}, lt = new WeakMap(), ps), ct, Ne, qt, dt, Rt, fs, fc = (fs = class extends Es {
|
|
1269
1269
|
constructor(t) {
|
|
1270
1270
|
super();
|
|
1271
1271
|
$(this, dt);
|
|
@@ -1304,7 +1304,7 @@ var lt, fs, pc = (fs = class extends Kn {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
async execute(t) {
|
|
1306
1306
|
var i, o, a, s, u, l, c, d, f, p, I, g, v, b, w, A, E, P, S, k;
|
|
1307
|
-
z(this, qt,
|
|
1307
|
+
z(this, qt, ws({
|
|
1308
1308
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
1309
1309
|
onFail: (R, T) => {
|
|
1310
1310
|
le(this, dt, Rt).call(this, { type: "failed", failureCount: R, error: T });
|
|
@@ -1448,7 +1448,7 @@ var lt, fs, pc = (fs = class extends Kn {
|
|
|
1448
1448
|
action: t
|
|
1449
1449
|
});
|
|
1450
1450
|
});
|
|
1451
|
-
},
|
|
1451
|
+
}, fs);
|
|
1452
1452
|
function hc() {
|
|
1453
1453
|
return {
|
|
1454
1454
|
context: void 0,
|
|
@@ -1462,7 +1462,7 @@ function hc() {
|
|
|
1462
1462
|
submittedAt: 0
|
|
1463
1463
|
};
|
|
1464
1464
|
}
|
|
1465
|
-
var Je, Un,
|
|
1465
|
+
var Je, Un, hs, gc = (hs = class extends Kn {
|
|
1466
1466
|
constructor(t = {}) {
|
|
1467
1467
|
super();
|
|
1468
1468
|
$(this, Je);
|
|
@@ -1514,11 +1514,11 @@ var Je, Un, gs, gc = (gs = class extends Kn {
|
|
|
1514
1514
|
find(t) {
|
|
1515
1515
|
const n = { exact: !0, ...t };
|
|
1516
1516
|
return this.getAll().find(
|
|
1517
|
-
(r) =>
|
|
1517
|
+
(r) => zo(n, r)
|
|
1518
1518
|
);
|
|
1519
1519
|
}
|
|
1520
1520
|
findAll(t = {}) {
|
|
1521
|
-
return this.getAll().filter((n) =>
|
|
1521
|
+
return this.getAll().filter((n) => zo(t, n));
|
|
1522
1522
|
}
|
|
1523
1523
|
notify(t) {
|
|
1524
1524
|
ke.batch(() => {
|
|
@@ -1535,12 +1535,12 @@ var Je, Un, gs, gc = (gs = class extends Kn {
|
|
|
1535
1535
|
)
|
|
1536
1536
|
);
|
|
1537
1537
|
}
|
|
1538
|
-
}, Je = new WeakMap(), Un = new WeakMap(),
|
|
1538
|
+
}, Je = new WeakMap(), Un = new WeakMap(), hs);
|
|
1539
1539
|
function hr(e) {
|
|
1540
1540
|
var t;
|
|
1541
1541
|
return ((t = e.options.scope) == null ? void 0 : t.id) ?? String(e.mutationId);
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function Zo(e) {
|
|
1544
1544
|
return {
|
|
1545
1545
|
onFetch: (t, n) => {
|
|
1546
1546
|
var c, d, f, p, I;
|
|
@@ -1555,7 +1555,7 @@ function jo(e) {
|
|
|
1555
1555
|
g = !0;
|
|
1556
1556
|
}), t.signal)
|
|
1557
1557
|
});
|
|
1558
|
-
}, b =
|
|
1558
|
+
}, b = xs(t.options, t.fetchOptions), w = async (A, E, P) => {
|
|
1559
1559
|
if (g)
|
|
1560
1560
|
return Promise.reject();
|
|
1561
1561
|
if (E == null && A.pages.length)
|
|
@@ -1576,7 +1576,7 @@ function jo(e) {
|
|
|
1576
1576
|
};
|
|
1577
1577
|
};
|
|
1578
1578
|
if (i && o.length) {
|
|
1579
|
-
const A = i === "backward", E = A ? mc :
|
|
1579
|
+
const A = i === "backward", E = A ? mc : jo, P = {
|
|
1580
1580
|
pages: o,
|
|
1581
1581
|
pageParams: a
|
|
1582
1582
|
}, S = E(r, P);
|
|
@@ -1584,7 +1584,7 @@ function jo(e) {
|
|
|
1584
1584
|
} else {
|
|
1585
1585
|
const A = e ?? o.length;
|
|
1586
1586
|
do {
|
|
1587
|
-
const E = u === 0 ? a[0] ?? r.initialPageParam :
|
|
1587
|
+
const E = u === 0 ? a[0] ?? r.initialPageParam : jo(r, s);
|
|
1588
1588
|
if (u > 0 && E == null)
|
|
1589
1589
|
break;
|
|
1590
1590
|
s = await w(s, E), u++;
|
|
@@ -1608,7 +1608,7 @@ function jo(e) {
|
|
|
1608
1608
|
}
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function jo(e, { pages: t, pageParams: n }) {
|
|
1612
1612
|
const r = t.length - 1;
|
|
1613
1613
|
return t.length > 0 ? e.getNextPageParam(
|
|
1614
1614
|
t[r],
|
|
@@ -1621,7 +1621,7 @@ function mc(e, { pages: t, pageParams: n }) {
|
|
|
1621
1621
|
var r;
|
|
1622
1622
|
return t.length > 0 ? (r = e.getPreviousPageParam) == null ? void 0 : r.call(e, t[0], t, n[0], n) : void 0;
|
|
1623
1623
|
}
|
|
1624
|
-
var Se, Ot, Tt, vn, Cn, Vt, xn, An,
|
|
1624
|
+
var Se, Ot, Tt, vn, Cn, Vt, xn, An, gs, bc = (gs = class {
|
|
1625
1625
|
constructor(e = {}) {
|
|
1626
1626
|
$(this, Se);
|
|
1627
1627
|
$(this, Ot);
|
|
@@ -1750,13 +1750,13 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, ms, bc = (ms = class {
|
|
|
1750
1750
|
return this.fetchQuery(e).then($e).catch($e);
|
|
1751
1751
|
}
|
|
1752
1752
|
fetchInfiniteQuery(e) {
|
|
1753
|
-
return e.behavior =
|
|
1753
|
+
return e.behavior = Zo(e.pages), this.fetchQuery(e);
|
|
1754
1754
|
}
|
|
1755
1755
|
prefetchInfiniteQuery(e) {
|
|
1756
1756
|
return this.fetchInfiniteQuery(e).then($e).catch($e);
|
|
1757
1757
|
}
|
|
1758
1758
|
ensureInfiniteQueryData(e) {
|
|
1759
|
-
return e.behavior =
|
|
1759
|
+
return e.behavior = Zo(e.pages), this.ensureQueryData(e);
|
|
1760
1760
|
}
|
|
1761
1761
|
resumePausedMutations() {
|
|
1762
1762
|
return Fr.isOnline() ? C(this, Ot).resumePausedMutations() : Promise.resolve();
|
|
@@ -1824,7 +1824,7 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, ms, bc = (ms = class {
|
|
|
1824
1824
|
clear() {
|
|
1825
1825
|
C(this, Se).clear(), C(this, Ot).clear();
|
|
1826
1826
|
}
|
|
1827
|
-
}, Se = new WeakMap(), Ot = new WeakMap(), Tt = new WeakMap(), vn = new WeakMap(), Cn = new WeakMap(), Vt = new WeakMap(), xn = new WeakMap(), An = new WeakMap(),
|
|
1827
|
+
}, Se = new WeakMap(), Ot = new WeakMap(), Tt = new WeakMap(), vn = new WeakMap(), Cn = new WeakMap(), Vt = new WeakMap(), xn = new WeakMap(), An = new WeakMap(), gs), ze, ce, Qn, Me, $t, Sn, Dt, pt, qn, wn, En, Kt, en, Nt, Fn, ge, Ln, Gi, Ri, ki, Bi, Oi, Ti, Vi, Ps, ms, yc = (ms = class extends Kn {
|
|
1828
1828
|
constructor(t, n) {
|
|
1829
1829
|
super();
|
|
1830
1830
|
$(this, ge);
|
|
@@ -1853,7 +1853,7 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, ms, bc = (ms = class {
|
|
|
1853
1853
|
this.refetch = this.refetch.bind(this);
|
|
1854
1854
|
}
|
|
1855
1855
|
onSubscribe() {
|
|
1856
|
-
this.listeners.size === 1 && (C(this, ce).addObserver(this),
|
|
1856
|
+
this.listeners.size === 1 && (C(this, ce).addObserver(this), Jo(C(this, ce), this.options) ? le(this, ge, Ln).call(this) : this.updateResult(), le(this, ge, Bi).call(this));
|
|
1857
1857
|
}
|
|
1858
1858
|
onUnsubscribe() {
|
|
1859
1859
|
this.hasListeners() || this.destroy();
|
|
@@ -1887,7 +1887,7 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, ms, bc = (ms = class {
|
|
|
1887
1887
|
observer: this
|
|
1888
1888
|
});
|
|
1889
1889
|
const o = this.hasListeners();
|
|
1890
|
-
o &&
|
|
1890
|
+
o && Yo(
|
|
1891
1891
|
C(this, ce),
|
|
1892
1892
|
i,
|
|
1893
1893
|
this.options,
|
|
@@ -1939,10 +1939,10 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, ms, bc = (ms = class {
|
|
|
1939
1939
|
const r = C(this, ce), i = this.options, o = C(this, Me), a = C(this, $t), s = C(this, Sn), l = t !== r ? t.state : C(this, Qn), { state: c } = t;
|
|
1940
1940
|
let d = { ...c }, f = !1, p;
|
|
1941
1941
|
if (n._optimisticResults) {
|
|
1942
|
-
const T = this.hasListeners(), H = !T &&
|
|
1942
|
+
const T = this.hasListeners(), H = !T && Jo(t, n), N = T && Yo(t, r, n, i);
|
|
1943
1943
|
(H || N) && (d = {
|
|
1944
1944
|
...d,
|
|
1945
|
-
...
|
|
1945
|
+
...Fs(c.data, t.options)
|
|
1946
1946
|
}), n._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
|
|
1947
1947
|
}
|
|
1948
1948
|
let { error: I, errorUpdatedAt: g, status: v } = d;
|
|
@@ -2044,7 +2044,7 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, ms, bc = (ms = class {
|
|
|
2044
2044
|
return C(this, Me)[c] !== n[c] && u.has(c);
|
|
2045
2045
|
});
|
|
2046
2046
|
};
|
|
2047
|
-
(t == null ? void 0 : t.listeners) !== !1 && o() && (i.listeners = !0), le(this, ge,
|
|
2047
|
+
(t == null ? void 0 : t.listeners) !== !1 && o() && (i.listeners = !0), le(this, ge, Ps).call(this, { ...i, ...t });
|
|
2048
2048
|
}
|
|
2049
2049
|
onQueryUpdate() {
|
|
2050
2050
|
this.updateResult(), this.hasListeners() && le(this, ge, Bi).call(this);
|
|
@@ -2064,7 +2064,7 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, ms, bc = (ms = class {
|
|
|
2064
2064
|
);
|
|
2065
2065
|
if (tn || C(this, Me).isStale || !Ai(t))
|
|
2066
2066
|
return;
|
|
2067
|
-
const r =
|
|
2067
|
+
const r = Cs(C(this, Me).dataUpdatedAt, t) + 1;
|
|
2068
2068
|
z(this, Kt, setTimeout(() => {
|
|
2069
2069
|
C(this, Me).isStale || this.updateResult();
|
|
2070
2070
|
}, r));
|
|
@@ -2086,7 +2086,7 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, ms, bc = (ms = class {
|
|
|
2086
2086
|
return;
|
|
2087
2087
|
const n = C(this, ce);
|
|
2088
2088
|
z(this, ce, t), z(this, Qn, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
|
|
2089
|
-
},
|
|
2089
|
+
}, Ps = function(t) {
|
|
2090
2090
|
ke.batch(() => {
|
|
2091
2091
|
t.listeners && this.listeners.forEach((n) => {
|
|
2092
2092
|
n(C(this, Me));
|
|
@@ -2095,11 +2095,11 @@ var Se, Ot, Tt, vn, Cn, Vt, xn, An, ms, bc = (ms = class {
|
|
|
2095
2095
|
type: "observerResultsUpdated"
|
|
2096
2096
|
});
|
|
2097
2097
|
});
|
|
2098
|
-
},
|
|
2098
|
+
}, ms);
|
|
2099
2099
|
function Ic(e, t) {
|
|
2100
2100
|
return ot(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
|
2101
2101
|
}
|
|
2102
|
-
function
|
|
2102
|
+
function Jo(e, t) {
|
|
2103
2103
|
return Ic(e, t) || e.state.data !== void 0 && Di(e, t, t.refetchOnMount);
|
|
2104
2104
|
}
|
|
2105
2105
|
function Di(e, t, n) {
|
|
@@ -2109,7 +2109,7 @@ function Di(e, t, n) {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
return !1;
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function Yo(e, t, n, r) {
|
|
2113
2113
|
return (e !== t || ot(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && no(e, n);
|
|
2114
2114
|
}
|
|
2115
2115
|
function no(e, t) {
|
|
@@ -2118,10 +2118,10 @@ function no(e, t) {
|
|
|
2118
2118
|
function vc(e, t) {
|
|
2119
2119
|
return !wi(e.getCurrentResult(), t);
|
|
2120
2120
|
}
|
|
2121
|
-
var
|
|
2121
|
+
var Gs = te.createContext(
|
|
2122
2122
|
void 0
|
|
2123
2123
|
), Cc = (e) => {
|
|
2124
|
-
const t = te.useContext(
|
|
2124
|
+
const t = te.useContext(Gs);
|
|
2125
2125
|
if (!t)
|
|
2126
2126
|
throw new Error("No QueryClient set, use QueryClientProvider to set one");
|
|
2127
2127
|
return t;
|
|
@@ -2130,8 +2130,8 @@ var Rs = te.createContext(
|
|
|
2130
2130
|
children: t
|
|
2131
2131
|
}) => (te.useEffect(() => (e.mount(), () => {
|
|
2132
2132
|
e.unmount();
|
|
2133
|
-
}), [e]), /* @__PURE__ */ W(
|
|
2134
|
-
|
|
2133
|
+
}), [e]), /* @__PURE__ */ W(Gs.Provider, { value: e, children: t })), Rs = te.createContext(!1), Ac = () => te.useContext(Rs);
|
|
2134
|
+
Rs.Provider;
|
|
2135
2135
|
function Sc() {
|
|
2136
2136
|
let e = !1;
|
|
2137
2137
|
return {
|
|
@@ -2148,7 +2148,7 @@ var wc = te.createContext(Sc()), Ec = () => te.useContext(wc);
|
|
|
2148
2148
|
function Fc(e, t) {
|
|
2149
2149
|
return typeof e == "function" ? e(...t) : !!e;
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function _o() {
|
|
2152
2152
|
}
|
|
2153
2153
|
var Pc = (e, t) => {
|
|
2154
2154
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
|
@@ -2163,7 +2163,7 @@ var Pc = (e, t) => {
|
|
|
2163
2163
|
query: r
|
|
2164
2164
|
}) => e.isError && !t.isReset() && !e.isFetching && r && Fc(n, [e.error, r]), kc = (e) => {
|
|
2165
2165
|
e.suspense && (e.staleTime === void 0 && (e.staleTime = 1e3), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3)));
|
|
2166
|
-
}, Bc = (e, t) => e.isLoading && e.isFetching && !t, Oc = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending,
|
|
2166
|
+
}, Bc = (e, t) => e.isLoading && e.isFetching && !t, Oc = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, Uo = (e, t, n) => t.fetchOptimistic(e).catch(() => {
|
|
2167
2167
|
n.clearReset();
|
|
2168
2168
|
});
|
|
2169
2169
|
function Tc(e, t, n) {
|
|
@@ -2186,7 +2186,7 @@ function Tc(e, t, n) {
|
|
|
2186
2186
|
if (te.useSyncExternalStore(
|
|
2187
2187
|
te.useCallback(
|
|
2188
2188
|
(g) => {
|
|
2189
|
-
const v = i ?
|
|
2189
|
+
const v = i ? _o : u.subscribe(ke.batchCalls(g));
|
|
2190
2190
|
return u.updateResult(), v;
|
|
2191
2191
|
},
|
|
2192
2192
|
[u, i]
|
|
@@ -2196,7 +2196,7 @@ function Tc(e, t, n) {
|
|
|
2196
2196
|
), te.useEffect(() => {
|
|
2197
2197
|
u.setOptions(a, { listeners: !1 });
|
|
2198
2198
|
}, [a, u]), Oc(a, l))
|
|
2199
|
-
throw
|
|
2199
|
+
throw Uo(a, u, o);
|
|
2200
2200
|
if (Rc({
|
|
2201
2201
|
result: l,
|
|
2202
2202
|
errorResetBoundary: o,
|
|
@@ -2211,12 +2211,12 @@ function Tc(e, t, n) {
|
|
|
2211
2211
|
), a.experimental_prefetchInRender && !tn && Bc(l, i)) {
|
|
2212
2212
|
const g = s ? (
|
|
2213
2213
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
2214
|
-
|
|
2214
|
+
Uo(a, u, o)
|
|
2215
2215
|
) : (
|
|
2216
2216
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
|
2217
2217
|
(I = r.getQueryCache().get(a.queryHash)) == null ? void 0 : I.promise
|
|
2218
2218
|
);
|
|
2219
|
-
g == null || g.catch(
|
|
2219
|
+
g == null || g.catch(_o).finally(() => {
|
|
2220
2220
|
u.updateResult();
|
|
2221
2221
|
});
|
|
2222
2222
|
}
|
|
@@ -2225,10 +2225,10 @@ function Tc(e, t, n) {
|
|
|
2225
2225
|
function rn(e, t) {
|
|
2226
2226
|
return Tc(e, yc);
|
|
2227
2227
|
}
|
|
2228
|
-
const
|
|
2228
|
+
const ks = $n(
|
|
2229
2229
|
void 0
|
|
2230
2230
|
), Mt = () => {
|
|
2231
|
-
const e = Pn(
|
|
2231
|
+
const e = Pn(ks);
|
|
2232
2232
|
if (!e)
|
|
2233
2233
|
throw new Error("Must be used inside FrontendClientProvider");
|
|
2234
2234
|
return e;
|
|
@@ -2244,9 +2244,9 @@ const Bs = $n(
|
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
});
|
|
2247
|
-
return /* @__PURE__ */ W(xc, { client: n, children: /* @__PURE__ */ W(
|
|
2247
|
+
return /* @__PURE__ */ W(xc, { client: n, children: /* @__PURE__ */ W(ks.Provider, { value: t, children: e }) });
|
|
2248
2248
|
};
|
|
2249
|
-
function
|
|
2249
|
+
function Bs(e) {
|
|
2250
2250
|
return typeof e == "object" && e && "__lv" in e ? e.__lv.value : e;
|
|
2251
2251
|
}
|
|
2252
2252
|
function Vc(e) {
|
|
@@ -2273,7 +2273,7 @@ function Dc(e) {
|
|
|
2273
2273
|
];
|
|
2274
2274
|
}
|
|
2275
2275
|
function Nc(e) {
|
|
2276
|
-
const t =
|
|
2276
|
+
const t = Bs(e.value);
|
|
2277
2277
|
if (t == null || typeof t > "u") return [
|
|
2278
2278
|
"required"
|
|
2279
2279
|
];
|
|
@@ -2282,7 +2282,7 @@ function Mc(e) {
|
|
|
2282
2282
|
const {
|
|
2283
2283
|
prop: t,
|
|
2284
2284
|
value: n
|
|
2285
|
-
} = e, r =
|
|
2285
|
+
} = e, r = Bs(n);
|
|
2286
2286
|
if (!t.default && (r == null || typeof r > "u")) return [
|
|
2287
2287
|
"required"
|
|
2288
2288
|
];
|
|
@@ -2294,15 +2294,13 @@ function Mc(e) {
|
|
|
2294
2294
|
return typeof t.min == "number" && i < t.min && o.push("number too small"), typeof t.max == "number" && i > t.max && o.push("number too big"), o;
|
|
2295
2295
|
}
|
|
2296
2296
|
function Lc(e) {
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
];
|
|
2305
|
-
}
|
|
2297
|
+
const {
|
|
2298
|
+
prop: t,
|
|
2299
|
+
value: n
|
|
2300
|
+
} = e;
|
|
2301
|
+
if (!t.default && (n == null || typeof value > "u")) return [
|
|
2302
|
+
"required"
|
|
2303
|
+
];
|
|
2306
2304
|
}
|
|
2307
2305
|
function Xc(e) {
|
|
2308
2306
|
const t = e.auth_type === "oauth", n = JSON.parse(e.custom_fields_json || "[]");
|
|
@@ -2354,7 +2352,7 @@ const Cr = [
|
|
|
2354
2352
|
"$.interface.apphook",
|
|
2355
2353
|
"$.interface.timer"
|
|
2356
2354
|
// TODO add support for this (cron string and timers)
|
|
2357
|
-
], Os = $n(void 0),
|
|
2355
|
+
], Os = $n(void 0), ro = () => {
|
|
2358
2356
|
const e = Pn(Os);
|
|
2359
2357
|
if (!e)
|
|
2360
2358
|
throw new Error("Must be used inside provider");
|
|
@@ -2594,7 +2592,7 @@ function Xn(e, t, n) {
|
|
|
2594
2592
|
writable: !0
|
|
2595
2593
|
}) : e[t] = n, e;
|
|
2596
2594
|
}
|
|
2597
|
-
function
|
|
2595
|
+
function Qo(e, t) {
|
|
2598
2596
|
var n = Object.keys(e);
|
|
2599
2597
|
if (Object.getOwnPropertySymbols) {
|
|
2600
2598
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -2607,9 +2605,9 @@ function qo(e, t) {
|
|
|
2607
2605
|
function Z(e) {
|
|
2608
2606
|
for (var t = 1; t < arguments.length; t++) {
|
|
2609
2607
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2610
|
-
t % 2 ?
|
|
2608
|
+
t % 2 ? Qo(Object(n), !0).forEach(function(r) {
|
|
2611
2609
|
Xn(e, r, n[r]);
|
|
2612
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2610
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Qo(Object(n)).forEach(function(r) {
|
|
2613
2611
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
|
|
2614
2612
|
});
|
|
2615
2613
|
}
|
|
@@ -2710,14 +2708,14 @@ function J() {
|
|
|
2710
2708
|
function Uc(e, t) {
|
|
2711
2709
|
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
2712
2710
|
}
|
|
2713
|
-
function
|
|
2711
|
+
function qo(e, t) {
|
|
2714
2712
|
for (var n = 0; n < t.length; n++) {
|
|
2715
2713
|
var r = t[n];
|
|
2716
2714
|
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, Ts(r.key), r);
|
|
2717
2715
|
}
|
|
2718
2716
|
}
|
|
2719
2717
|
function Qc(e, t, n) {
|
|
2720
|
-
return t &&
|
|
2718
|
+
return t && qo(e.prototype, t), n && qo(e, n), Object.defineProperty(e, "prototype", {
|
|
2721
2719
|
writable: !1
|
|
2722
2720
|
}), e;
|
|
2723
2721
|
}
|
|
@@ -2835,10 +2833,10 @@ function Xs(e) {
|
|
|
2835
2833
|
function ud(e) {
|
|
2836
2834
|
return Lr() ? e instanceof Element || e instanceof St(e).Element : !1;
|
|
2837
2835
|
}
|
|
2838
|
-
function
|
|
2836
|
+
function io(e) {
|
|
2839
2837
|
return Lr() ? e instanceof HTMLElement || e instanceof St(e).HTMLElement : !1;
|
|
2840
2838
|
}
|
|
2841
|
-
function
|
|
2839
|
+
function $o(e) {
|
|
2842
2840
|
return !Lr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof St(e).ShadowRoot;
|
|
2843
2841
|
}
|
|
2844
2842
|
function zs(e) {
|
|
@@ -2847,7 +2845,7 @@ function zs(e) {
|
|
|
2847
2845
|
overflowX: n,
|
|
2848
2846
|
overflowY: r,
|
|
2849
2847
|
display: i
|
|
2850
|
-
} =
|
|
2848
|
+
} = oo(e);
|
|
2851
2849
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(i);
|
|
2852
2850
|
}
|
|
2853
2851
|
function ld() {
|
|
@@ -2856,7 +2854,7 @@ function ld() {
|
|
|
2856
2854
|
function cd(e) {
|
|
2857
2855
|
return ["html", "body", "#document"].includes(Ms(e));
|
|
2858
2856
|
}
|
|
2859
|
-
function
|
|
2857
|
+
function oo(e) {
|
|
2860
2858
|
return St(e).getComputedStyle(e);
|
|
2861
2859
|
}
|
|
2862
2860
|
function dd(e) {
|
|
@@ -2866,14 +2864,14 @@ function dd(e) {
|
|
|
2866
2864
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
2867
2865
|
e.assignedSlot || // DOM Element detected.
|
|
2868
2866
|
e.parentNode || // ShadowRoot detected.
|
|
2869
|
-
|
|
2867
|
+
$o(e) && e.host || // Fallback.
|
|
2870
2868
|
Ls(e)
|
|
2871
2869
|
);
|
|
2872
|
-
return
|
|
2870
|
+
return $o(t) ? t.host : t;
|
|
2873
2871
|
}
|
|
2874
2872
|
function Hs(e) {
|
|
2875
2873
|
const t = dd(e);
|
|
2876
|
-
return cd(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
2874
|
+
return cd(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : io(t) && zs(t) ? t : Hs(t);
|
|
2877
2875
|
}
|
|
2878
2876
|
function kr(e, t, n) {
|
|
2879
2877
|
var r;
|
|
@@ -2889,21 +2887,21 @@ function Li(e) {
|
|
|
2889
2887
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2890
2888
|
}
|
|
2891
2889
|
function pd(e) {
|
|
2892
|
-
const t =
|
|
2890
|
+
const t = oo(e);
|
|
2893
2891
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
2894
|
-
const i =
|
|
2892
|
+
const i = io(e), o = i ? e.offsetWidth : n, a = i ? e.offsetHeight : r, s = Gr(n) !== o || Gr(r) !== a;
|
|
2895
2893
|
return s && (n = o, r = a), {
|
|
2896
2894
|
width: n,
|
|
2897
2895
|
height: r,
|
|
2898
2896
|
$: s
|
|
2899
2897
|
};
|
|
2900
2898
|
}
|
|
2901
|
-
function
|
|
2899
|
+
function ao(e) {
|
|
2902
2900
|
return ud(e) ? e : e.contextElement;
|
|
2903
2901
|
}
|
|
2904
|
-
function
|
|
2905
|
-
const t =
|
|
2906
|
-
if (!
|
|
2902
|
+
function Ko(e) {
|
|
2903
|
+
const t = ao(e);
|
|
2904
|
+
if (!io(t))
|
|
2907
2905
|
return Rr(1);
|
|
2908
2906
|
const n = t.getBoundingClientRect(), {
|
|
2909
2907
|
width: r,
|
|
@@ -2927,18 +2925,18 @@ function hd(e) {
|
|
|
2927
2925
|
function gd(e, t, n) {
|
|
2928
2926
|
return !1;
|
|
2929
2927
|
}
|
|
2930
|
-
function
|
|
2928
|
+
function ea(e, t, n, r) {
|
|
2931
2929
|
t === void 0 && (t = !1);
|
|
2932
|
-
const i = e.getBoundingClientRect(), o =
|
|
2930
|
+
const i = e.getBoundingClientRect(), o = ao(e);
|
|
2933
2931
|
let a = Rr(1);
|
|
2934
|
-
t && (a =
|
|
2932
|
+
t && (a = Ko(e));
|
|
2935
2933
|
const s = gd() ? hd(o) : Rr(0);
|
|
2936
2934
|
let u = (i.left + s.x) / a.x, l = (i.top + s.y) / a.y, c = i.width / a.x, d = i.height / a.y;
|
|
2937
2935
|
if (o) {
|
|
2938
2936
|
const f = St(o), p = r;
|
|
2939
2937
|
let I = f, g = Li(I);
|
|
2940
2938
|
for (; g && r && p !== I; ) {
|
|
2941
|
-
const v =
|
|
2939
|
+
const v = Ko(g), b = g.getBoundingClientRect(), w = oo(g), A = b.left + (g.clientLeft + parseFloat(w.paddingLeft)) * v.x, E = b.top + (g.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
2942
2940
|
u *= v.x, l *= v.y, c *= v.x, d *= v.y, u += A, l += E, I = St(g), g = Li(I);
|
|
2943
2941
|
}
|
|
2944
2942
|
}
|
|
@@ -3003,7 +3001,7 @@ function bd(e, t, n, r) {
|
|
|
3003
3001
|
elementResize: a = typeof ResizeObserver == "function",
|
|
3004
3002
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
3005
3003
|
animationFrame: u = !1
|
|
3006
|
-
} = r, l =
|
|
3004
|
+
} = r, l = ao(e), c = i || o ? [...l ? kr(l) : [], ...kr(t)] : [];
|
|
3007
3005
|
c.forEach((b) => {
|
|
3008
3006
|
i && b.addEventListener("scroll", n, {
|
|
3009
3007
|
passive: !0
|
|
@@ -3018,10 +3016,10 @@ function bd(e, t, n, r) {
|
|
|
3018
3016
|
(A = p) == null || A.observe(t);
|
|
3019
3017
|
})), n();
|
|
3020
3018
|
}), l && !u && p.observe(l), p.observe(t));
|
|
3021
|
-
let I, g = u ?
|
|
3019
|
+
let I, g = u ? ea(e) : null;
|
|
3022
3020
|
u && v();
|
|
3023
3021
|
function v() {
|
|
3024
|
-
const b =
|
|
3022
|
+
const b = ea(e);
|
|
3025
3023
|
g && (b.x !== g.x || b.y !== g.y || b.width !== g.width || b.height !== g.height) && n(), g = b, I = requestAnimationFrame(v);
|
|
3026
3024
|
}
|
|
3027
3025
|
return n(), () => {
|
|
@@ -3098,7 +3096,7 @@ function mr(e, t) {
|
|
|
3098
3096
|
}
|
|
3099
3097
|
u();
|
|
3100
3098
|
}
|
|
3101
|
-
function
|
|
3099
|
+
function ta(e, t) {
|
|
3102
3100
|
var n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = t.offsetHeight / 3;
|
|
3103
3101
|
r.bottom + i > n.bottom ? Tr(e, Math.min(t.offsetTop + t.clientHeight - e.offsetHeight + i, e.scrollHeight)) : r.top - i < n.top && Tr(e, Math.max(t.offsetTop - i, 0));
|
|
3104
3102
|
}
|
|
@@ -3113,7 +3111,7 @@ function Sd(e) {
|
|
|
3113
3111
|
width: t.width
|
|
3114
3112
|
};
|
|
3115
3113
|
}
|
|
3116
|
-
function
|
|
3114
|
+
function na() {
|
|
3117
3115
|
try {
|
|
3118
3116
|
return document.createEvent("TouchEvent"), !0;
|
|
3119
3117
|
} catch {
|
|
@@ -3416,7 +3414,7 @@ var Js = function(t) {
|
|
|
3416
3414
|
return j("div", J({}, we(t, "indicatorsContainer", {
|
|
3417
3415
|
indicators: !0
|
|
3418
3416
|
}), r), n);
|
|
3419
|
-
},
|
|
3417
|
+
}, ra, Kd = ["size"], ep = ["innerProps", "isRtl", "size"];
|
|
3420
3418
|
function tp() {
|
|
3421
3419
|
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
3422
3420
|
}
|
|
@@ -3438,7 +3436,7 @@ var np = process.env.NODE_ENV === "production" ? {
|
|
|
3438
3436
|
focusable: "false",
|
|
3439
3437
|
css: np
|
|
3440
3438
|
}, r));
|
|
3441
|
-
},
|
|
3439
|
+
}, so = function(t) {
|
|
3442
3440
|
return j(Us, J({
|
|
3443
3441
|
size: 20
|
|
3444
3442
|
}, t), j("path", {
|
|
@@ -3474,7 +3472,7 @@ var np = process.env.NODE_ENV === "production" ? {
|
|
|
3474
3472
|
return j("div", J({}, we(t, "clearIndicator", {
|
|
3475
3473
|
indicator: !0,
|
|
3476
3474
|
"clear-indicator": !0
|
|
3477
|
-
}), r), n || j(
|
|
3475
|
+
}), r), n || j(so, null));
|
|
3478
3476
|
}, sp = function(t, n) {
|
|
3479
3477
|
var r = t.isDisabled, i = t.theme, o = i.spacing.baseUnit, a = i.colors;
|
|
3480
3478
|
return Z({
|
|
@@ -3491,7 +3489,7 @@ var np = process.env.NODE_ENV === "production" ? {
|
|
|
3491
3489
|
return j("span", J({}, n, we(t, "indicatorSeparator", {
|
|
3492
3490
|
"indicator-separator": !0
|
|
3493
3491
|
})));
|
|
3494
|
-
}, lp = ql(
|
|
3492
|
+
}, lp = ql(ra || (ra = id([`
|
|
3495
3493
|
0%, 80%, 100% { opacity: 0; }
|
|
3496
3494
|
40% { opacity: 1; }
|
|
3497
3495
|
`]))), cp = function(t, n) {
|
|
@@ -3513,7 +3511,7 @@ var np = process.env.NODE_ENV === "production" ? {
|
|
|
3513
3511
|
}, oi = function(t) {
|
|
3514
3512
|
var n = t.delay, r = t.offset;
|
|
3515
3513
|
return j("span", {
|
|
3516
|
-
css: /* @__PURE__ */
|
|
3514
|
+
css: /* @__PURE__ */ Is({
|
|
3517
3515
|
animation: "".concat(lp, " 1s ease-in-out ").concat(n, "ms infinite;"),
|
|
3518
3516
|
backgroundColor: "currentColor",
|
|
3519
3517
|
borderRadius: "1em",
|
|
@@ -3718,7 +3716,7 @@ function Bp(e) {
|
|
|
3718
3716
|
var t = e.children, n = e.innerProps;
|
|
3719
3717
|
return j("div", J({
|
|
3720
3718
|
role: "button"
|
|
3721
|
-
}, n), t || j(
|
|
3719
|
+
}, n), t || j(so, {
|
|
3722
3720
|
size: 14
|
|
3723
3721
|
}));
|
|
3724
3722
|
}
|
|
@@ -3816,7 +3814,7 @@ var Op = function(t) {
|
|
|
3816
3814
|
Control: hp,
|
|
3817
3815
|
DropdownIndicator: ip,
|
|
3818
3816
|
DownChevron: Qs,
|
|
3819
|
-
CrossIcon:
|
|
3817
|
+
CrossIcon: so,
|
|
3820
3818
|
Group: vp,
|
|
3821
3819
|
GroupHeading: Ip,
|
|
3822
3820
|
IndicatorsContainer: $d,
|
|
@@ -3839,11 +3837,11 @@ var Op = function(t) {
|
|
|
3839
3837
|
ValueContainer: Qd
|
|
3840
3838
|
}, Zp = function(t) {
|
|
3841
3839
|
return Z(Z({}, er), t.components);
|
|
3842
|
-
},
|
|
3840
|
+
}, ia = Number.isNaN || function(t) {
|
|
3843
3841
|
return typeof t == "number" && t !== t;
|
|
3844
3842
|
};
|
|
3845
3843
|
function jp(e, t) {
|
|
3846
|
-
return !!(e === t ||
|
|
3844
|
+
return !!(e === t || ia(e) && ia(t));
|
|
3847
3845
|
}
|
|
3848
3846
|
function Jp(e, t) {
|
|
3849
3847
|
if (e.length !== t.length)
|
|
@@ -3887,7 +3885,7 @@ var Up = process.env.NODE_ENV === "production" ? {
|
|
|
3887
3885
|
return j("span", J({
|
|
3888
3886
|
css: Up
|
|
3889
3887
|
}, t));
|
|
3890
|
-
},
|
|
3888
|
+
}, oa = Qp, qp = {
|
|
3891
3889
|
guidance: function(t) {
|
|
3892
3890
|
var n = t.isSearchable, r = t.isMulti, i = t.tabSelectsValue, o = t.context, a = t.isInitialFocus;
|
|
3893
3891
|
switch (o) {
|
|
@@ -4004,9 +4002,9 @@ var Up = process.env.NODE_ENV === "production" ? {
|
|
|
4004
4002
|
}, N), j("span", {
|
|
4005
4003
|
id: "aria-guidance"
|
|
4006
4004
|
}, K));
|
|
4007
|
-
return j(xi, null, j(
|
|
4005
|
+
return j(xi, null, j(oa, {
|
|
4008
4006
|
id: l
|
|
4009
|
-
}, O && ie), j(
|
|
4007
|
+
}, O && ie), j(oa, {
|
|
4010
4008
|
"aria-live": k,
|
|
4011
4009
|
"aria-atomic": "false",
|
|
4012
4010
|
"aria-relevant": "additions text",
|
|
@@ -4274,7 +4272,7 @@ var tu = function(t) {
|
|
|
4274
4272
|
return t.replace(ef, function(n) {
|
|
4275
4273
|
return eu[n];
|
|
4276
4274
|
});
|
|
4277
|
-
}, tf = Yp(tu),
|
|
4275
|
+
}, tf = Yp(tu), aa = function(t) {
|
|
4278
4276
|
return t.replace(/^\s+|\s+$/g, "");
|
|
4279
4277
|
}, nf = function(t) {
|
|
4280
4278
|
return "".concat(t.label, " ").concat(t.value);
|
|
@@ -4287,7 +4285,7 @@ var tu = function(t) {
|
|
|
4287
4285
|
stringify: nf,
|
|
4288
4286
|
trim: !0,
|
|
4289
4287
|
matchFrom: "any"
|
|
4290
|
-
}, t), o = i.ignoreCase, a = i.ignoreAccents, s = i.stringify, u = i.trim, l = i.matchFrom, c = u ?
|
|
4288
|
+
}, t), o = i.ignoreCase, a = i.ignoreAccents, s = i.stringify, u = i.trim, l = i.matchFrom, c = u ? aa(r) : r, d = u ? aa(s(n)) : s(n);
|
|
4291
4289
|
return o && (c = c.toLowerCase(), d = d.toLowerCase()), a && (c = tf(c), d = tu(d)), l === "start" ? d.substr(0, c.length) === c : d.indexOf(c) > -1;
|
|
4292
4290
|
};
|
|
4293
4291
|
}, of = ["innerRef"];
|
|
@@ -4296,7 +4294,7 @@ function af(e) {
|
|
|
4296
4294
|
return j("input", J({
|
|
4297
4295
|
ref: t
|
|
4298
4296
|
}, r, {
|
|
4299
|
-
css: /* @__PURE__ */
|
|
4297
|
+
css: /* @__PURE__ */ Is({
|
|
4300
4298
|
label: "dummyInput",
|
|
4301
4299
|
// get rid of any default styles
|
|
4302
4300
|
background: 0,
|
|
@@ -4356,53 +4354,53 @@ function uf(e) {
|
|
|
4356
4354
|
l.current = v;
|
|
4357
4355
|
};
|
|
4358
4356
|
}
|
|
4359
|
-
var
|
|
4357
|
+
var sa = ["boxSizing", "height", "overflow", "paddingRight", "position"], ua = {
|
|
4360
4358
|
boxSizing: "border-box",
|
|
4361
4359
|
// account for possible declaration `width: 100%;` on body
|
|
4362
4360
|
overflow: "hidden",
|
|
4363
4361
|
position: "relative",
|
|
4364
4362
|
height: "100%"
|
|
4365
4363
|
};
|
|
4366
|
-
function
|
|
4364
|
+
function la(e) {
|
|
4367
4365
|
e.cancelable && e.preventDefault();
|
|
4368
4366
|
}
|
|
4369
|
-
function
|
|
4367
|
+
function ca(e) {
|
|
4370
4368
|
e.stopPropagation();
|
|
4371
4369
|
}
|
|
4372
|
-
function
|
|
4370
|
+
function da() {
|
|
4373
4371
|
var e = this.scrollTop, t = this.scrollHeight, n = e + this.offsetHeight;
|
|
4374
4372
|
e === 0 ? this.scrollTop = 1 : n === t && (this.scrollTop = e - 1);
|
|
4375
4373
|
}
|
|
4376
|
-
function
|
|
4374
|
+
function pa() {
|
|
4377
4375
|
return "ontouchstart" in window || navigator.maxTouchPoints;
|
|
4378
4376
|
}
|
|
4379
|
-
var
|
|
4377
|
+
var fa = !!(typeof window < "u" && window.document && window.document.createElement), Dn = 0, un = {
|
|
4380
4378
|
capture: !1,
|
|
4381
4379
|
passive: !1
|
|
4382
4380
|
};
|
|
4383
4381
|
function lf(e) {
|
|
4384
4382
|
var t = e.isEnabled, n = e.accountForScrollbars, r = n === void 0 ? !0 : n, i = xt({}), o = xt(null), a = Ve(function(u) {
|
|
4385
|
-
if (
|
|
4383
|
+
if (fa) {
|
|
4386
4384
|
var l = document.body, c = l && l.style;
|
|
4387
|
-
if (r &&
|
|
4385
|
+
if (r && sa.forEach(function(I) {
|
|
4388
4386
|
var g = c && c[I];
|
|
4389
4387
|
i.current[I] = g;
|
|
4390
4388
|
}), r && Dn < 1) {
|
|
4391
4389
|
var d = parseInt(i.current.paddingRight, 10) || 0, f = document.body ? document.body.clientWidth : 0, p = window.innerWidth - f + d || 0;
|
|
4392
|
-
Object.keys(
|
|
4393
|
-
var g =
|
|
4390
|
+
Object.keys(ua).forEach(function(I) {
|
|
4391
|
+
var g = ua[I];
|
|
4394
4392
|
c && (c[I] = g);
|
|
4395
4393
|
}), c && (c.paddingRight = "".concat(p, "px"));
|
|
4396
4394
|
}
|
|
4397
|
-
l &&
|
|
4395
|
+
l && pa() && (l.addEventListener("touchmove", la, un), u && (u.addEventListener("touchstart", da, un), u.addEventListener("touchmove", ca, un))), Dn += 1;
|
|
4398
4396
|
}
|
|
4399
4397
|
}, [r]), s = Ve(function(u) {
|
|
4400
|
-
if (
|
|
4398
|
+
if (fa) {
|
|
4401
4399
|
var l = document.body, c = l && l.style;
|
|
4402
|
-
Dn = Math.max(Dn - 1, 0), r && Dn < 1 &&
|
|
4400
|
+
Dn = Math.max(Dn - 1, 0), r && Dn < 1 && sa.forEach(function(d) {
|
|
4403
4401
|
var f = i.current[d];
|
|
4404
4402
|
c && (c[d] = f);
|
|
4405
|
-
}), l &&
|
|
4403
|
+
}), l && pa() && (l.removeEventListener("touchmove", la, un), u && (u.removeEventListener("touchstart", da, un), u.removeEventListener("touchmove", ca, un)));
|
|
4406
4404
|
}
|
|
4407
4405
|
}, [r]);
|
|
4408
4406
|
return Yt(function() {
|
|
@@ -4473,18 +4471,18 @@ var gf = process.env.NODE_ENV === "production" ? {
|
|
|
4473
4471
|
}
|
|
4474
4472
|
});
|
|
4475
4473
|
}, bf = mf;
|
|
4476
|
-
function
|
|
4474
|
+
function uo(e) {
|
|
4477
4475
|
var t;
|
|
4478
4476
|
return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
|
|
4479
4477
|
}
|
|
4480
4478
|
function yf() {
|
|
4481
|
-
return
|
|
4479
|
+
return uo(/^iPhone/i);
|
|
4482
4480
|
}
|
|
4483
4481
|
function nu() {
|
|
4484
|
-
return
|
|
4482
|
+
return uo(/^Mac/i);
|
|
4485
4483
|
}
|
|
4486
4484
|
function If() {
|
|
4487
|
-
return
|
|
4485
|
+
return uo(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
4488
4486
|
nu() && navigator.maxTouchPoints > 1;
|
|
4489
4487
|
}
|
|
4490
4488
|
function vf() {
|
|
@@ -4563,8 +4561,8 @@ var Ef = {
|
|
|
4563
4561
|
}, kf = {
|
|
4564
4562
|
"aria-live": "polite",
|
|
4565
4563
|
backspaceRemovesValue: !0,
|
|
4566
|
-
blurInputOnSelect:
|
|
4567
|
-
captureMenuScroll: !
|
|
4564
|
+
blurInputOnSelect: na(),
|
|
4565
|
+
captureMenuScroll: !na(),
|
|
4568
4566
|
classNames: {},
|
|
4569
4567
|
closeMenuOnSelect: !0,
|
|
4570
4568
|
closeMenuOnScroll: !1,
|
|
@@ -4608,7 +4606,7 @@ var Ef = {
|
|
|
4608
4606
|
tabSelectsValue: !0,
|
|
4609
4607
|
unstyled: !1
|
|
4610
4608
|
};
|
|
4611
|
-
function
|
|
4609
|
+
function ha(e, t, n, r) {
|
|
4612
4610
|
var i = uu(e, t, n), o = lu(e, t, n), a = su(e, t), s = Vr(e, t);
|
|
4613
4611
|
return {
|
|
4614
4612
|
type: "option",
|
|
@@ -4624,9 +4622,9 @@ function xr(e, t) {
|
|
|
4624
4622
|
return e.options.map(function(n, r) {
|
|
4625
4623
|
if ("options" in n) {
|
|
4626
4624
|
var i = n.options.map(function(a, s) {
|
|
4627
|
-
return
|
|
4625
|
+
return ha(e, a, t, s);
|
|
4628
4626
|
}).filter(function(a) {
|
|
4629
|
-
return
|
|
4627
|
+
return ma(e, a);
|
|
4630
4628
|
});
|
|
4631
4629
|
return i.length > 0 ? {
|
|
4632
4630
|
type: "group",
|
|
@@ -4635,8 +4633,8 @@ function xr(e, t) {
|
|
|
4635
4633
|
index: r
|
|
4636
4634
|
} : void 0;
|
|
4637
4635
|
}
|
|
4638
|
-
var o =
|
|
4639
|
-
return
|
|
4636
|
+
var o = ha(e, n, t, r);
|
|
4637
|
+
return ma(e, o) ? o : void 0;
|
|
4640
4638
|
}).filter(Pd);
|
|
4641
4639
|
}
|
|
4642
4640
|
function au(e) {
|
|
@@ -4646,7 +4644,7 @@ function au(e) {
|
|
|
4646
4644
|
}))) : t.push(n.data), t;
|
|
4647
4645
|
}, []);
|
|
4648
4646
|
}
|
|
4649
|
-
function
|
|
4647
|
+
function ga(e, t) {
|
|
4650
4648
|
return e.reduce(function(n, r) {
|
|
4651
4649
|
return r.type === "group" ? n.push.apply(n, pn(r.options.map(function(i) {
|
|
4652
4650
|
return {
|
|
@@ -4662,7 +4660,7 @@ function ma(e, t) {
|
|
|
4662
4660
|
function Bf(e, t) {
|
|
4663
4661
|
return au(xr(e, t));
|
|
4664
4662
|
}
|
|
4665
|
-
function
|
|
4663
|
+
function ma(e, t) {
|
|
4666
4664
|
var n = e.inputValue, r = n === void 0 ? "" : n, i = t.data, o = t.isSelected, a = t.label, s = t.value;
|
|
4667
4665
|
return (!du(e) || !o) && cu(e, {
|
|
4668
4666
|
label: a,
|
|
@@ -4713,7 +4711,7 @@ function cu(e, t, n) {
|
|
|
4713
4711
|
var du = function(t) {
|
|
4714
4712
|
var n = t.hideSelectedOptions, r = t.isMulti;
|
|
4715
4713
|
return n === void 0 ? r : n;
|
|
4716
|
-
}, Vf = 1,
|
|
4714
|
+
}, Vf = 1, lo = /* @__PURE__ */ function(e) {
|
|
4717
4715
|
qc(n, e);
|
|
4718
4716
|
var t = ed(n);
|
|
4719
4717
|
function n(r) {
|
|
@@ -4797,7 +4795,7 @@ var du = function(t) {
|
|
|
4797
4795
|
}, i.getFocusedOptionId = function(u) {
|
|
4798
4796
|
return li(i.state.focusableOptionsWithIds, u);
|
|
4799
4797
|
}, i.getFocusableOptionsWithIds = function() {
|
|
4800
|
-
return
|
|
4798
|
+
return ga(xr(i.props, i.state.selectValue), i.getElementId("option"));
|
|
4801
4799
|
}, i.getValue = function() {
|
|
4802
4800
|
return i.state.selectValue;
|
|
4803
4801
|
}, i.cx = function() {
|
|
@@ -5007,7 +5005,7 @@ var du = function(t) {
|
|
|
5007
5005
|
return Qc(n, [{
|
|
5008
5006
|
key: "componentDidMount",
|
|
5009
5007
|
value: function() {
|
|
5010
|
-
this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef &&
|
|
5008
|
+
this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && ta(this.menuListRef, this.focusedOptionRef);
|
|
5011
5009
|
}
|
|
5012
5010
|
}, {
|
|
5013
5011
|
key: "componentDidUpdate",
|
|
@@ -5019,7 +5017,7 @@ var du = function(t) {
|
|
|
5019
5017
|
isFocused: !1
|
|
5020
5018
|
}, this.onMenuClose) : !u && !a && i.isDisabled && this.inputRef === document.activeElement && this.setState({
|
|
5021
5019
|
isFocused: !0
|
|
5022
|
-
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (
|
|
5020
|
+
}), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (ta(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
|
|
5023
5021
|
}
|
|
5024
5022
|
}, {
|
|
5025
5023
|
key: "componentWillUnmount",
|
|
@@ -5594,7 +5592,7 @@ var du = function(t) {
|
|
|
5594
5592
|
value: function(i, o) {
|
|
5595
5593
|
var a = o.prevProps, s = o.clearFocusValueOnUpdate, u = o.inputIsHiddenAfterUpdate, l = o.ariaSelection, c = o.isFocused, d = o.prevWasFocused, f = o.instancePrefix, p = i.options, I = i.value, g = i.menuIsOpen, v = i.inputValue, b = i.isMulti, w = Or(I), A = {};
|
|
5596
5594
|
if (a && (I !== a.value || p !== a.options || g !== a.menuIsOpen || v !== a.inputValue)) {
|
|
5597
|
-
var E = g ? Bf(i, w) : [], P = g ?
|
|
5595
|
+
var E = g ? Bf(i, w) : [], P = g ? ga(xr(i, w), "".concat(f, "-option")) : [], S = s ? Of(o, w) : null, k = Tf(o, E), R = li(P, k);
|
|
5598
5596
|
A = {
|
|
5599
5597
|
selectValue: w,
|
|
5600
5598
|
focusedOption: k,
|
|
@@ -5619,15 +5617,15 @@ var du = function(t) {
|
|
|
5619
5617
|
});
|
|
5620
5618
|
}
|
|
5621
5619
|
}]), n;
|
|
5622
|
-
}(
|
|
5623
|
-
|
|
5624
|
-
var Df = /* @__PURE__ */
|
|
5620
|
+
}(bs);
|
|
5621
|
+
lo.defaultProps = kf;
|
|
5622
|
+
var Df = /* @__PURE__ */ ys(function(e, t) {
|
|
5625
5623
|
var n = Ds(e);
|
|
5626
|
-
return /* @__PURE__ */ te.createElement(
|
|
5624
|
+
return /* @__PURE__ */ te.createElement(lo, J({
|
|
5627
5625
|
ref: t
|
|
5628
5626
|
}, n));
|
|
5629
5627
|
}), zr = Df;
|
|
5630
|
-
const Nf = Hn,
|
|
5628
|
+
const Nf = Hn, co = {
|
|
5631
5629
|
borderRadius: 4,
|
|
5632
5630
|
colors: {
|
|
5633
5631
|
primary: "#2684FF",
|
|
@@ -5675,7 +5673,7 @@ const Nf = Hn, po = {
|
|
|
5675
5673
|
};
|
|
5676
5674
|
function Lf(e) {
|
|
5677
5675
|
if (!e) return Hn;
|
|
5678
|
-
const t = typeof e == "function" ? e(
|
|
5676
|
+
const t = typeof e == "function" ? e(co) : e, {
|
|
5679
5677
|
colors: n,
|
|
5680
5678
|
spacing: r,
|
|
5681
5679
|
borderRadius: i
|
|
@@ -5713,14 +5711,14 @@ function Xf(e, t) {
|
|
|
5713
5711
|
).trim();
|
|
5714
5712
|
}
|
|
5715
5713
|
const zf = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Hf = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Wf = {};
|
|
5716
|
-
function
|
|
5714
|
+
function ba(e, t) {
|
|
5717
5715
|
return (Wf.jsx ? Hf : zf).test(e);
|
|
5718
5716
|
}
|
|
5719
5717
|
const Zf = /[ \t\n\f\r]/g;
|
|
5720
5718
|
function jf(e) {
|
|
5721
|
-
return typeof e == "object" ? e.type === "text" ?
|
|
5719
|
+
return typeof e == "object" ? e.type === "text" ? ya(e.value) : !1 : ya(e);
|
|
5722
5720
|
}
|
|
5723
|
-
function
|
|
5721
|
+
function ya(e) {
|
|
5724
5722
|
return e.replace(Zf, "") === "";
|
|
5725
5723
|
}
|
|
5726
5724
|
class tr {
|
|
@@ -5782,7 +5780,7 @@ const Zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5782
5780
|
overloadedBoolean: fu,
|
|
5783
5781
|
spaceSeparated: be
|
|
5784
5782
|
}, Symbol.toStringTag, { value: "Module" })), ci = Object.keys(Zi);
|
|
5785
|
-
class
|
|
5783
|
+
class po extends et {
|
|
5786
5784
|
/**
|
|
5787
5785
|
* @constructor
|
|
5788
5786
|
* @param {string} property
|
|
@@ -5792,15 +5790,15 @@ class fo extends et {
|
|
|
5792
5790
|
*/
|
|
5793
5791
|
constructor(t, n, r, i) {
|
|
5794
5792
|
let o = -1;
|
|
5795
|
-
if (super(t, n),
|
|
5793
|
+
if (super(t, n), Ia(this, "space", i), typeof r == "number")
|
|
5796
5794
|
for (; ++o < ci.length; ) {
|
|
5797
5795
|
const a = ci[o];
|
|
5798
|
-
|
|
5796
|
+
Ia(this, ci[o], (r & Zi[a]) === Zi[a]);
|
|
5799
5797
|
}
|
|
5800
5798
|
}
|
|
5801
5799
|
}
|
|
5802
|
-
|
|
5803
|
-
function
|
|
5800
|
+
po.prototype.defined = !0;
|
|
5801
|
+
function Ia(e, t, n) {
|
|
5804
5802
|
n && (e[t] = n);
|
|
5805
5803
|
}
|
|
5806
5804
|
const Yf = {}.hasOwnProperty;
|
|
@@ -5809,7 +5807,7 @@ function Gn(e) {
|
|
|
5809
5807
|
let r;
|
|
5810
5808
|
for (r in e.properties)
|
|
5811
5809
|
if (Yf.call(e.properties, r)) {
|
|
5812
|
-
const i = e.properties[r], o = new
|
|
5810
|
+
const i = e.properties[r], o = new po(
|
|
5813
5811
|
r,
|
|
5814
5812
|
e.transform(e.attributes || {}, r),
|
|
5815
5813
|
i,
|
|
@@ -6826,7 +6824,7 @@ const yu = Gn({
|
|
|
6826
6824
|
z: null,
|
|
6827
6825
|
zoomAndPan: null
|
|
6828
6826
|
}
|
|
6829
|
-
}), Qf = /^data[-\w.:]+$/i,
|
|
6827
|
+
}), Qf = /^data[-\w.:]+$/i, va = /-[a-z]/g, qf = /[A-Z]/g;
|
|
6830
6828
|
function $f(e, t) {
|
|
6831
6829
|
const n = Wi(t);
|
|
6832
6830
|
let r = t, i = et;
|
|
@@ -6834,16 +6832,16 @@ function $f(e, t) {
|
|
|
6834
6832
|
return e.property[e.normal[n]];
|
|
6835
6833
|
if (n.length > 4 && n.slice(0, 4) === "data" && Qf.test(t)) {
|
|
6836
6834
|
if (t.charAt(4) === "-") {
|
|
6837
|
-
const o = t.slice(5).replace(
|
|
6835
|
+
const o = t.slice(5).replace(va, eh);
|
|
6838
6836
|
r = "data" + o.charAt(0).toUpperCase() + o.slice(1);
|
|
6839
6837
|
} else {
|
|
6840
6838
|
const o = t.slice(4);
|
|
6841
|
-
if (!
|
|
6839
|
+
if (!va.test(o)) {
|
|
6842
6840
|
let a = o.replace(qf, Kf);
|
|
6843
6841
|
a.charAt(0) !== "-" && (a = "-" + a), t = "data" + a;
|
|
6844
6842
|
}
|
|
6845
6843
|
}
|
|
6846
|
-
i =
|
|
6844
|
+
i = po;
|
|
6847
6845
|
}
|
|
6848
6846
|
return new i(r, t);
|
|
6849
6847
|
}
|
|
@@ -6871,12 +6869,12 @@ const th = {
|
|
|
6871
6869
|
xLinkTitle: "xlinkTitle",
|
|
6872
6870
|
xLinkType: "xlinkType",
|
|
6873
6871
|
xmlnsXLink: "xmlnsXlink"
|
|
6874
|
-
}, nh = pu([gu, hu, yu, Iu, _f], "html"),
|
|
6872
|
+
}, nh = pu([gu, hu, yu, Iu, _f], "html"), fo = pu([gu, hu, yu, Iu, Uf], "svg");
|
|
6875
6873
|
function rh(e) {
|
|
6876
6874
|
return e.join(" ").trim();
|
|
6877
6875
|
}
|
|
6878
|
-
var vu = {},
|
|
6879
|
-
`,
|
|
6876
|
+
var vu = {}, Ca = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, ih = /\n/g, oh = /^\s*/, ah = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, sh = /^:\s*/, uh = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, lh = /^[;\s]*/, ch = /^\s+|\s+$/g, dh = `
|
|
6877
|
+
`, xa = "/", Aa = "*", Jt = "", ph = "comment", fh = "declaration", hh = function(e, t) {
|
|
6880
6878
|
if (typeof e != "string")
|
|
6881
6879
|
throw new TypeError("First argument must be a string");
|
|
6882
6880
|
if (!e) return [];
|
|
@@ -6922,8 +6920,8 @@ var vu = {}, xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, ih = /\n/g, oh = /^\s*/, ah
|
|
|
6922
6920
|
}
|
|
6923
6921
|
function d() {
|
|
6924
6922
|
var I = o();
|
|
6925
|
-
if (!(
|
|
6926
|
-
for (var g = 2; Jt != e.charAt(g) && (
|
|
6923
|
+
if (!(xa != e.charAt(0) || Aa != e.charAt(1))) {
|
|
6924
|
+
for (var g = 2; Jt != e.charAt(g) && (Aa != e.charAt(g) || xa != e.charAt(g + 1)); )
|
|
6927
6925
|
++g;
|
|
6928
6926
|
if (g += 2, Jt === e.charAt(g - 1))
|
|
6929
6927
|
return s("End of comment missing");
|
|
@@ -6940,8 +6938,8 @@ var vu = {}, xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, ih = /\n/g, oh = /^\s*/, ah
|
|
|
6940
6938
|
if (d(), !u(sh)) return s("property missing ':'");
|
|
6941
6939
|
var v = u(uh), b = I({
|
|
6942
6940
|
type: fh,
|
|
6943
|
-
property:
|
|
6944
|
-
value: v ?
|
|
6941
|
+
property: Sa(g[0].replace(Ca, Jt)),
|
|
6942
|
+
value: v ? Sa(v[0].replace(Ca, Jt)) : Jt
|
|
6945
6943
|
});
|
|
6946
6944
|
return u(lh), b;
|
|
6947
6945
|
}
|
|
@@ -6955,14 +6953,14 @@ var vu = {}, xa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, ih = /\n/g, oh = /^\s*/, ah
|
|
|
6955
6953
|
}
|
|
6956
6954
|
return l(), p();
|
|
6957
6955
|
};
|
|
6958
|
-
function
|
|
6956
|
+
function Sa(e) {
|
|
6959
6957
|
return e ? e.replace(ch, Jt) : Jt;
|
|
6960
6958
|
}
|
|
6961
6959
|
var gh = cn && cn.__importDefault || function(e) {
|
|
6962
6960
|
return e && e.__esModule ? e : { default: e };
|
|
6963
6961
|
};
|
|
6964
6962
|
Object.defineProperty(vu, "__esModule", { value: !0 });
|
|
6965
|
-
var
|
|
6963
|
+
var wa = vu.default = bh, mh = gh(hh);
|
|
6966
6964
|
function bh(e, t) {
|
|
6967
6965
|
var n = null;
|
|
6968
6966
|
if (!e || typeof e != "string")
|
|
@@ -6975,7 +6973,7 @@ function bh(e, t) {
|
|
|
6975
6973
|
}
|
|
6976
6974
|
}), n;
|
|
6977
6975
|
}
|
|
6978
|
-
const yh =
|
|
6976
|
+
const yh = wa.default || wa, Cu = xu("end"), ho = xu("start");
|
|
6979
6977
|
function xu(e) {
|
|
6980
6978
|
return t;
|
|
6981
6979
|
function t(n) {
|
|
@@ -6989,20 +6987,20 @@ function xu(e) {
|
|
|
6989
6987
|
}
|
|
6990
6988
|
}
|
|
6991
6989
|
function Ih(e) {
|
|
6992
|
-
const t =
|
|
6990
|
+
const t = ho(e), n = Cu(e);
|
|
6993
6991
|
if (t && n)
|
|
6994
6992
|
return { start: t, end: n };
|
|
6995
6993
|
}
|
|
6996
6994
|
function Wn(e) {
|
|
6997
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ?
|
|
6995
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Ea(e.position) : "start" in e || "end" in e ? Ea(e) : "line" in e || "column" in e ? ji(e) : "";
|
|
6998
6996
|
}
|
|
6999
6997
|
function ji(e) {
|
|
7000
|
-
return
|
|
6998
|
+
return Fa(e && e.line) + ":" + Fa(e && e.column);
|
|
7001
6999
|
}
|
|
7002
|
-
function
|
|
7000
|
+
function Ea(e) {
|
|
7003
7001
|
return ji(e && e.start) + "-" + ji(e && e.end);
|
|
7004
7002
|
}
|
|
7005
|
-
function
|
|
7003
|
+
function Fa(e) {
|
|
7006
7004
|
return e && typeof e == "number" ? e : 1;
|
|
7007
7005
|
}
|
|
7008
7006
|
class De extends Error {
|
|
@@ -7092,7 +7090,7 @@ De.prototype.fatal = void 0;
|
|
|
7092
7090
|
De.prototype.place = void 0;
|
|
7093
7091
|
De.prototype.ruleId = void 0;
|
|
7094
7092
|
De.prototype.source = void 0;
|
|
7095
|
-
const
|
|
7093
|
+
const go = {}.hasOwnProperty, vh = /* @__PURE__ */ new Map(), Ch = /[A-Z]/g, xh = /-([a-z])/g, Ah = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Sh = /* @__PURE__ */ new Set(["td", "th"]), Au = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
7096
7094
|
function wh(e, t) {
|
|
7097
7095
|
if (!t || t.Fragment === void 0)
|
|
7098
7096
|
throw new TypeError("Expected `Fragment` in options");
|
|
@@ -7122,7 +7120,7 @@ function wh(e, t) {
|
|
|
7122
7120
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
7123
7121
|
passKeys: t.passKeys !== !1,
|
|
7124
7122
|
passNode: t.passNode || !1,
|
|
7125
|
-
schema: t.space === "svg" ?
|
|
7123
|
+
schema: t.space === "svg" ? fo : nh,
|
|
7126
7124
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
7127
7125
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
7128
7126
|
}, o = Su(i, e, void 0);
|
|
@@ -7150,12 +7148,12 @@ function Su(e, t, n) {
|
|
|
7150
7148
|
function Eh(e, t, n) {
|
|
7151
7149
|
const r = e.schema;
|
|
7152
7150
|
let i = r;
|
|
7153
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i =
|
|
7151
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (i = fo, e.schema = i), e.ancestors.push(t);
|
|
7154
7152
|
const o = Eu(e, t.tagName, !1), a = Th(e, t);
|
|
7155
|
-
let s =
|
|
7153
|
+
let s = bo(e, t);
|
|
7156
7154
|
return Ah.has(t.tagName) && (s = s.filter(function(u) {
|
|
7157
7155
|
return typeof u == "string" ? !jf(u) : !0;
|
|
7158
|
-
})), wu(e, a, o, t),
|
|
7156
|
+
})), wu(e, a, o, t), mo(a, s), e.ancestors.pop(), e.schema = r, e.create(t, o, a, n);
|
|
7159
7157
|
}
|
|
7160
7158
|
function Fh(e, t) {
|
|
7161
7159
|
if (t.data && t.data.estree && e.evaluater) {
|
|
@@ -7176,13 +7174,13 @@ function Ph(e, t) {
|
|
|
7176
7174
|
function Gh(e, t, n) {
|
|
7177
7175
|
const r = e.schema;
|
|
7178
7176
|
let i = r;
|
|
7179
|
-
t.name === "svg" && r.space === "html" && (i =
|
|
7180
|
-
const o = t.name === null ? e.Fragment : Eu(e, t.name, !0), a = Vh(e, t), s =
|
|
7181
|
-
return wu(e, a, o, t),
|
|
7177
|
+
t.name === "svg" && r.space === "html" && (i = fo, e.schema = i), e.ancestors.push(t);
|
|
7178
|
+
const o = t.name === null ? e.Fragment : Eu(e, t.name, !0), a = Vh(e, t), s = bo(e, t);
|
|
7179
|
+
return wu(e, a, o, t), mo(a, s), e.ancestors.pop(), e.schema = r, e.create(t, o, a, n);
|
|
7182
7180
|
}
|
|
7183
7181
|
function Rh(e, t, n) {
|
|
7184
7182
|
const r = {};
|
|
7185
|
-
return
|
|
7183
|
+
return mo(r, bo(e, t)), e.create(t, e.Fragment, r, n);
|
|
7186
7184
|
}
|
|
7187
7185
|
function kh(e, t) {
|
|
7188
7186
|
return t.value;
|
|
@@ -7190,7 +7188,7 @@ function kh(e, t) {
|
|
|
7190
7188
|
function wu(e, t, n, r) {
|
|
7191
7189
|
typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
|
|
7192
7190
|
}
|
|
7193
|
-
function
|
|
7191
|
+
function mo(e, t) {
|
|
7194
7192
|
if (t.length > 0) {
|
|
7195
7193
|
const n = t.length > 1 ? t : t[0];
|
|
7196
7194
|
n && (e.children = n);
|
|
@@ -7206,7 +7204,7 @@ function Bh(e, t, n) {
|
|
|
7206
7204
|
function Oh(e, t) {
|
|
7207
7205
|
return n;
|
|
7208
7206
|
function n(r, i, o, a) {
|
|
7209
|
-
const s = Array.isArray(o.children), u =
|
|
7207
|
+
const s = Array.isArray(o.children), u = ho(r);
|
|
7210
7208
|
return t(
|
|
7211
7209
|
i,
|
|
7212
7210
|
o,
|
|
@@ -7225,7 +7223,7 @@ function Th(e, t) {
|
|
|
7225
7223
|
const n = {};
|
|
7226
7224
|
let r, i;
|
|
7227
7225
|
for (i in t.properties)
|
|
7228
|
-
if (i !== "children" &&
|
|
7226
|
+
if (i !== "children" && go.call(t.properties, i)) {
|
|
7229
7227
|
const o = Dh(e, i, t.properties[i]);
|
|
7230
7228
|
if (o) {
|
|
7231
7229
|
const [a, s] = o;
|
|
@@ -7273,7 +7271,7 @@ function Vh(e, t) {
|
|
|
7273
7271
|
}
|
|
7274
7272
|
return n;
|
|
7275
7273
|
}
|
|
7276
|
-
function
|
|
7274
|
+
function bo(e, t) {
|
|
7277
7275
|
const n = [];
|
|
7278
7276
|
let r = -1;
|
|
7279
7277
|
const i = e.passKeys ? /* @__PURE__ */ new Map() : vh;
|
|
@@ -7337,7 +7335,7 @@ function Eu(e, t, n) {
|
|
|
7337
7335
|
const i = t.split(".");
|
|
7338
7336
|
let o = -1, a;
|
|
7339
7337
|
for (; ++o < i.length; ) {
|
|
7340
|
-
const s =
|
|
7338
|
+
const s = ba(i[o]) ? { type: "Identifier", name: i[o] } : { type: "Literal", value: i[o] };
|
|
7341
7339
|
a = a ? {
|
|
7342
7340
|
type: "MemberExpression",
|
|
7343
7341
|
object: a,
|
|
@@ -7348,13 +7346,13 @@ function Eu(e, t, n) {
|
|
|
7348
7346
|
}
|
|
7349
7347
|
r = a;
|
|
7350
7348
|
} else
|
|
7351
|
-
r =
|
|
7349
|
+
r = ba(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
|
|
7352
7350
|
if (r.type === "Literal") {
|
|
7353
7351
|
const i = (
|
|
7354
7352
|
/** @type {keyof JSX.IntrinsicElements} */
|
|
7355
7353
|
r.value
|
|
7356
7354
|
);
|
|
7357
|
-
return
|
|
7355
|
+
return go.call(e.components, i) ? e.components[i] : i;
|
|
7358
7356
|
}
|
|
7359
7357
|
if (e.evaluater)
|
|
7360
7358
|
return e.evaluater.evaluateExpression(r);
|
|
@@ -7376,7 +7374,7 @@ function Mh(e) {
|
|
|
7376
7374
|
const t = {};
|
|
7377
7375
|
let n;
|
|
7378
7376
|
for (n in e)
|
|
7379
|
-
|
|
7377
|
+
go.call(e, n) && (t[Lh(n)] = e[n]);
|
|
7380
7378
|
return t;
|
|
7381
7379
|
}
|
|
7382
7380
|
function Lh(e) {
|
|
@@ -7423,11 +7421,11 @@ function Fu(e, t, n) {
|
|
|
7423
7421
|
if (t && "alt" in e && e.alt)
|
|
7424
7422
|
return e.alt;
|
|
7425
7423
|
if ("children" in e)
|
|
7426
|
-
return
|
|
7424
|
+
return Pa(e.children, t, n);
|
|
7427
7425
|
}
|
|
7428
|
-
return Array.isArray(e) ?
|
|
7426
|
+
return Array.isArray(e) ? Pa(e, t, n) : "";
|
|
7429
7427
|
}
|
|
7430
|
-
function
|
|
7428
|
+
function Pa(e, t, n) {
|
|
7431
7429
|
const r = [];
|
|
7432
7430
|
let i = -1;
|
|
7433
7431
|
for (; ++i < e.length; )
|
|
@@ -7437,11 +7435,11 @@ function Ga(e, t, n) {
|
|
|
7437
7435
|
function Zh(e) {
|
|
7438
7436
|
return !!(e && typeof e == "object");
|
|
7439
7437
|
}
|
|
7440
|
-
const
|
|
7441
|
-
function
|
|
7438
|
+
const Ga = document.createElement("i");
|
|
7439
|
+
function yo(e) {
|
|
7442
7440
|
const t = "&" + e + ";";
|
|
7443
|
-
|
|
7444
|
-
const n =
|
|
7441
|
+
Ga.innerHTML = t;
|
|
7442
|
+
const n = Ga.textContent;
|
|
7445
7443
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
7446
7444
|
}
|
|
7447
7445
|
function mt(e, t, n, r) {
|
|
@@ -7456,7 +7454,7 @@ function mt(e, t, n, r) {
|
|
|
7456
7454
|
function Ke(e, t) {
|
|
7457
7455
|
return e.length > 0 ? (mt(e, e.length, 0, t), e) : t;
|
|
7458
7456
|
}
|
|
7459
|
-
const
|
|
7457
|
+
const Ra = {}.hasOwnProperty;
|
|
7460
7458
|
function jh(e) {
|
|
7461
7459
|
const t = {};
|
|
7462
7460
|
let n = -1;
|
|
@@ -7467,11 +7465,11 @@ function jh(e) {
|
|
|
7467
7465
|
function Jh(e, t) {
|
|
7468
7466
|
let n;
|
|
7469
7467
|
for (n in t) {
|
|
7470
|
-
const i = (
|
|
7468
|
+
const i = (Ra.call(e, n) ? e[n] : void 0) || (e[n] = {}), o = t[n];
|
|
7471
7469
|
let a;
|
|
7472
7470
|
if (o)
|
|
7473
7471
|
for (a in o) {
|
|
7474
|
-
|
|
7472
|
+
Ra.call(i, a) || (i[a] = []);
|
|
7475
7473
|
const s = o[a];
|
|
7476
7474
|
Yh(
|
|
7477
7475
|
// @ts-expect-error Looks like a list.
|
|
@@ -7593,7 +7591,7 @@ function eg(e) {
|
|
|
7593
7591
|
}
|
|
7594
7592
|
const tg = {
|
|
7595
7593
|
tokenize: ng
|
|
7596
|
-
},
|
|
7594
|
+
}, ka = {
|
|
7597
7595
|
tokenize: rg
|
|
7598
7596
|
};
|
|
7599
7597
|
function ng(e) {
|
|
@@ -7635,7 +7633,7 @@ function ng(e) {
|
|
|
7635
7633
|
return I(A);
|
|
7636
7634
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
|
7637
7635
|
}
|
|
7638
|
-
return t.containerState = {}, e.check(
|
|
7636
|
+
return t.containerState = {}, e.check(ka, c, d)(A);
|
|
7639
7637
|
}
|
|
7640
7638
|
function c(A) {
|
|
7641
7639
|
return i && w(), b(r), f(A);
|
|
@@ -7644,7 +7642,7 @@ function ng(e) {
|
|
|
7644
7642
|
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, I(A);
|
|
7645
7643
|
}
|
|
7646
7644
|
function f(A) {
|
|
7647
|
-
return t.containerState = {}, e.attempt(
|
|
7645
|
+
return t.containerState = {}, e.attempt(ka, p, I)(A);
|
|
7648
7646
|
}
|
|
7649
7647
|
function p(A) {
|
|
7650
7648
|
return r++, n.push([t.currentConstruct, t.containerState]), f(A);
|
|
@@ -7711,13 +7709,13 @@ function ng(e) {
|
|
|
7711
7709
|
function rg(e, t, n) {
|
|
7712
7710
|
return ye(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
7713
7711
|
}
|
|
7714
|
-
function
|
|
7712
|
+
function Ba(e) {
|
|
7715
7713
|
if (e === null || He(e) || $h(e))
|
|
7716
7714
|
return 1;
|
|
7717
7715
|
if (qh(e))
|
|
7718
7716
|
return 2;
|
|
7719
7717
|
}
|
|
7720
|
-
function
|
|
7718
|
+
function Io(e, t, n) {
|
|
7721
7719
|
const r = [];
|
|
7722
7720
|
let i = -1;
|
|
7723
7721
|
for (; ++i < e.length; ) {
|
|
@@ -7746,7 +7744,7 @@ function ig(e, t) {
|
|
|
7746
7744
|
}, f = {
|
|
7747
7745
|
...e[n][1].start
|
|
7748
7746
|
};
|
|
7749
|
-
|
|
7747
|
+
Oa(d, -u), Oa(f, u), a = {
|
|
7750
7748
|
type: u > 1 ? "strongSequence" : "emphasisSequence",
|
|
7751
7749
|
start: d,
|
|
7752
7750
|
end: {
|
|
@@ -7778,7 +7776,7 @@ function ig(e, t) {
|
|
|
7778
7776
|
...a.start
|
|
7779
7777
|
}, e[n][1].start = {
|
|
7780
7778
|
...s.end
|
|
7781
|
-
}, l = [], e[r][1].end.offset - e[r][1].start.offset && (l = Ke(l, [["enter", e[r][1], t], ["exit", e[r][1], t]])), l = Ke(l, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["enter", o, t]]), l = Ke(l,
|
|
7779
|
+
}, l = [], e[r][1].end.offset - e[r][1].start.offset && (l = Ke(l, [["enter", e[r][1], t], ["exit", e[r][1], t]])), l = Ke(l, [["enter", i, t], ["enter", a, t], ["exit", a, t], ["enter", o, t]]), l = Ke(l, Io(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), l = Ke(l, [["exit", o, t], ["enter", s, t], ["exit", s, t], ["exit", i, t]]), e[n][1].end.offset - e[n][1].start.offset ? (c = 2, l = Ke(l, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : c = 0, mt(e, r - 1, n - r + 3, l), n = r + l.length - c - 2;
|
|
7782
7780
|
break;
|
|
7783
7781
|
}
|
|
7784
7782
|
}
|
|
@@ -7787,7 +7785,7 @@ function ig(e, t) {
|
|
|
7787
7785
|
return e;
|
|
7788
7786
|
}
|
|
7789
7787
|
function og(e, t) {
|
|
7790
|
-
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i =
|
|
7788
|
+
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = Ba(r);
|
|
7791
7789
|
let o;
|
|
7792
7790
|
return a;
|
|
7793
7791
|
function a(u) {
|
|
@@ -7796,11 +7794,11 @@ function og(e, t) {
|
|
|
7796
7794
|
function s(u) {
|
|
7797
7795
|
if (u === o)
|
|
7798
7796
|
return e.consume(u), s;
|
|
7799
|
-
const l = e.exit("attentionSequence"), c =
|
|
7797
|
+
const l = e.exit("attentionSequence"), c = Ba(u), d = !c || c === 2 && i || n.includes(u), f = !i || i === 2 && c || n.includes(r);
|
|
7800
7798
|
return l._open = !!(o === 42 ? d : d && (i || !f)), l._close = !!(o === 42 ? f : f && (c || !d)), t(u);
|
|
7801
7799
|
}
|
|
7802
7800
|
}
|
|
7803
|
-
function
|
|
7801
|
+
function Oa(e, t) {
|
|
7804
7802
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
7805
7803
|
}
|
|
7806
7804
|
const ag = {
|
|
@@ -7925,15 +7923,15 @@ function fg(e, t, n) {
|
|
|
7925
7923
|
function c(d) {
|
|
7926
7924
|
if (d === 59 && i) {
|
|
7927
7925
|
const f = e.exit("characterReferenceValue");
|
|
7928
|
-
return a === Ye && !
|
|
7926
|
+
return a === Ye && !yo(r.sliceSerialize(f)) ? n(d) : (e.enter("characterReferenceMarker"), e.consume(d), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
7929
7927
|
}
|
|
7930
7928
|
return a(d) && i++ < o ? (e.consume(d), c) : n(d);
|
|
7931
7929
|
}
|
|
7932
7930
|
}
|
|
7933
|
-
const
|
|
7931
|
+
const Ta = {
|
|
7934
7932
|
partial: !0,
|
|
7935
7933
|
tokenize: gg
|
|
7936
|
-
},
|
|
7934
|
+
}, Va = {
|
|
7937
7935
|
concrete: !0,
|
|
7938
7936
|
name: "codeFenced",
|
|
7939
7937
|
tokenize: hg
|
|
@@ -7956,7 +7954,7 @@ function hg(e, t, n) {
|
|
|
7956
7954
|
return S === s ? (a++, e.consume(S), c) : a < 3 ? n(S) : (e.exit("codeFencedFenceSequence"), he(S) ? ye(e, d, "whitespace")(S) : d(S));
|
|
7957
7955
|
}
|
|
7958
7956
|
function d(S) {
|
|
7959
|
-
return S === null || q(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(
|
|
7957
|
+
return S === null || q(S) ? (e.exit("codeFencedFence"), r.interrupt ? t(S) : e.check(Ta, g, E)(S)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
7960
7958
|
contentType: "string"
|
|
7961
7959
|
}), f(S));
|
|
7962
7960
|
}
|
|
@@ -7981,7 +7979,7 @@ function hg(e, t, n) {
|
|
|
7981
7979
|
return o > 0 && he(S) ? ye(e, w, "linePrefix", o + 1)(S) : w(S);
|
|
7982
7980
|
}
|
|
7983
7981
|
function w(S) {
|
|
7984
|
-
return S === null || q(S) ? e.check(
|
|
7982
|
+
return S === null || q(S) ? e.check(Ta, g, E)(S) : (e.enter("codeFlowValue"), A(S));
|
|
7985
7983
|
}
|
|
7986
7984
|
function A(S) {
|
|
7987
7985
|
return S === null || q(S) ? (e.exit("codeFlowValue"), w(S)) : (e.consume(S), A);
|
|
@@ -8623,7 +8621,7 @@ const Lg = [
|
|
|
8623
8621
|
"tr",
|
|
8624
8622
|
"track",
|
|
8625
8623
|
"ul"
|
|
8626
|
-
],
|
|
8624
|
+
], Da = ["pre", "script", "style", "textarea"], Xg = {
|
|
8627
8625
|
concrete: !0,
|
|
8628
8626
|
name: "htmlFlow",
|
|
8629
8627
|
resolveTo: Wg,
|
|
@@ -8670,7 +8668,7 @@ function Zg(e, t, n) {
|
|
|
8670
8668
|
function v(m) {
|
|
8671
8669
|
if (m === null || m === 47 || m === 62 || He(m)) {
|
|
8672
8670
|
const fe = m === 47, ee = a.toLowerCase();
|
|
8673
|
-
return !fe && !o &&
|
|
8671
|
+
return !fe && !o && Da.includes(ee) ? (i = 1, r.interrupt ? t(m) : O(m)) : Lg.includes(a.toLowerCase()) ? (i = 6, fe ? (e.consume(m), b) : r.interrupt ? t(m) : O(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(m) : o ? w(m) : A(m));
|
|
8674
8672
|
}
|
|
8675
8673
|
return m === 45 || Ye(m) ? (e.consume(m), a += String.fromCharCode(m), v) : n(m);
|
|
8676
8674
|
}
|
|
@@ -8728,7 +8726,7 @@ function Zg(e, t, n) {
|
|
|
8728
8726
|
function ue(m) {
|
|
8729
8727
|
if (m === 62) {
|
|
8730
8728
|
const fe = a.toLowerCase();
|
|
8731
|
-
return
|
|
8729
|
+
return Da.includes(fe) ? (e.consume(m), ve) : O(m);
|
|
8732
8730
|
}
|
|
8733
8731
|
return ht(m) && a.length < 8 ? (e.consume(m), a += String.fromCharCode(m), ue) : O(m);
|
|
8734
8732
|
}
|
|
@@ -8858,7 +8856,7 @@ function _g(e, t, n) {
|
|
|
8858
8856
|
return e.enter("htmlTextData"), a(y);
|
|
8859
8857
|
}
|
|
8860
8858
|
}
|
|
8861
|
-
const
|
|
8859
|
+
const vo = {
|
|
8862
8860
|
name: "labelEnd",
|
|
8863
8861
|
resolveAll: $g,
|
|
8864
8862
|
resolveTo: Kg,
|
|
@@ -8920,7 +8918,7 @@ function Kg(e, t) {
|
|
|
8920
8918
|
...e[a - 2][1].start
|
|
8921
8919
|
}
|
|
8922
8920
|
};
|
|
8923
|
-
return s = [["enter", u, t], ["enter", l, t]], s = Ke(s, e.slice(o + 1, o + r + 3)), s = Ke(s, [["enter", c, t]]), s = Ke(s,
|
|
8921
|
+
return s = [["enter", u, t], ["enter", l, t]], s = Ke(s, e.slice(o + 1, o + r + 3)), s = Ke(s, [["enter", c, t]]), s = Ke(s, Io(t.parser.constructs.insideSpan.null, e.slice(o + r + 4, a - 3), t)), s = Ke(s, [["exit", c, t], e[a - 2], e[a - 1], ["exit", l, t]]), s = Ke(s, e.slice(a + 1)), s = Ke(s, [["exit", u, t]]), mt(e, o, e.length, s), e;
|
|
8924
8922
|
}
|
|
8925
8923
|
function em(e, t, n) {
|
|
8926
8924
|
const r = this;
|
|
@@ -9001,7 +8999,7 @@ function rm(e, t, n) {
|
|
|
9001
8999
|
}
|
|
9002
9000
|
const im = {
|
|
9003
9001
|
name: "labelStartImage",
|
|
9004
|
-
resolveAll:
|
|
9002
|
+
resolveAll: vo.resolveAll,
|
|
9005
9003
|
tokenize: om
|
|
9006
9004
|
};
|
|
9007
9005
|
function om(e, t, n) {
|
|
@@ -9019,7 +9017,7 @@ function om(e, t, n) {
|
|
|
9019
9017
|
}
|
|
9020
9018
|
const am = {
|
|
9021
9019
|
name: "labelStartLink",
|
|
9022
|
-
resolveAll:
|
|
9020
|
+
resolveAll: vo.resolveAll,
|
|
9023
9021
|
tokenize: sm
|
|
9024
9022
|
};
|
|
9025
9023
|
function sm(e, t, n) {
|
|
@@ -9145,7 +9143,7 @@ function mm(e, t, n) {
|
|
|
9145
9143
|
return !he(o) && a && a[1].type === "listItemPrefixWhitespace" ? t(o) : n(o);
|
|
9146
9144
|
}
|
|
9147
9145
|
}
|
|
9148
|
-
const
|
|
9146
|
+
const Na = {
|
|
9149
9147
|
name: "setextUnderline",
|
|
9150
9148
|
resolveTo: bm,
|
|
9151
9149
|
tokenize: ym
|
|
@@ -9338,12 +9336,12 @@ const wm = {
|
|
|
9338
9336
|
}, Pm = {
|
|
9339
9337
|
35: Dg,
|
|
9340
9338
|
42: Ar,
|
|
9341
|
-
45: [
|
|
9339
|
+
45: [Na, Ar],
|
|
9342
9340
|
60: Xg,
|
|
9343
|
-
61:
|
|
9341
|
+
61: Na,
|
|
9344
9342
|
95: Ar,
|
|
9345
|
-
96:
|
|
9346
|
-
126:
|
|
9343
|
+
96: Va,
|
|
9344
|
+
126: Va
|
|
9347
9345
|
}, Gm = {
|
|
9348
9346
|
38: ku,
|
|
9349
9347
|
92: Ru
|
|
@@ -9357,7 +9355,7 @@ const wm = {
|
|
|
9357
9355
|
60: [ag, Yg],
|
|
9358
9356
|
91: am,
|
|
9359
9357
|
92: [Tg, Ru],
|
|
9360
|
-
93:
|
|
9358
|
+
93: vo,
|
|
9361
9359
|
95: _i,
|
|
9362
9360
|
96: Ig
|
|
9363
9361
|
}, km = {
|
|
@@ -9412,7 +9410,7 @@ function Vm(e, t, n) {
|
|
|
9412
9410
|
let c = t.tokenize.call(l, u);
|
|
9413
9411
|
return t.resolveAll && o.push(t), l;
|
|
9414
9412
|
function d(N) {
|
|
9415
|
-
return a = Ke(a, N), v(), a[a.length - 1] !== null ? [] : (R(t, 0), l.events =
|
|
9413
|
+
return a = Ke(a, N), v(), a[a.length - 1] !== null ? [] : (R(t, 0), l.events = Io(o, l.events, l), l.events);
|
|
9416
9414
|
}
|
|
9417
9415
|
function f(N, O) {
|
|
9418
9416
|
return Nm(p(N), O);
|
|
@@ -9622,7 +9620,7 @@ function Lm(e) {
|
|
|
9622
9620
|
;
|
|
9623
9621
|
return e;
|
|
9624
9622
|
}
|
|
9625
|
-
const
|
|
9623
|
+
const Ma = /[\0\t\n\r]/g;
|
|
9626
9624
|
function Xm() {
|
|
9627
9625
|
let e = 1, t = "", n = !0, r;
|
|
9628
9626
|
return i;
|
|
@@ -9630,7 +9628,7 @@ function Xm() {
|
|
|
9630
9628
|
const u = [];
|
|
9631
9629
|
let l, c, d, f, p;
|
|
9632
9630
|
for (o = t + (typeof o == "string" ? o.toString() : new TextDecoder(a || void 0).decode(o)), d = 0, t = "", n && (o.charCodeAt(0) === 65279 && d++, n = void 0); d < o.length; ) {
|
|
9633
|
-
if (
|
|
9631
|
+
if (Ma.lastIndex = d, l = Ma.exec(o), f = l && l.index !== void 0 ? l.index : o.length, p = o.charCodeAt(f), !l) {
|
|
9634
9632
|
t = o.slice(d);
|
|
9635
9633
|
break;
|
|
9636
9634
|
}
|
|
@@ -9669,7 +9667,7 @@ function Wm(e, t, n) {
|
|
|
9669
9667
|
const i = n.charCodeAt(1), o = i === 120 || i === 88;
|
|
9670
9668
|
return Pu(n.slice(o ? 2 : 1), o ? 16 : 10);
|
|
9671
9669
|
}
|
|
9672
|
-
return
|
|
9670
|
+
return yo(n) || e;
|
|
9673
9671
|
}
|
|
9674
9672
|
const Mu = {}.hasOwnProperty;
|
|
9675
9673
|
function Zm(e, t, n) {
|
|
@@ -9809,7 +9807,7 @@ function jm(e) {
|
|
|
9809
9807
|
}
|
|
9810
9808
|
if (Q.tokenStack.length > 0) {
|
|
9811
9809
|
const Le = Q.tokenStack[Q.tokenStack.length - 1];
|
|
9812
|
-
(Le[1] ||
|
|
9810
|
+
(Le[1] || La).call(Q, void 0, Le[0]);
|
|
9813
9811
|
}
|
|
9814
9812
|
for (V.position = {
|
|
9815
9813
|
start: Gt(F.length > 0 ? F[0][1].start : {
|
|
@@ -9904,7 +9902,7 @@ function jm(e) {
|
|
|
9904
9902
|
function l(F, V) {
|
|
9905
9903
|
const Q = this.stack.pop(), oe = this.tokenStack.pop();
|
|
9906
9904
|
if (oe)
|
|
9907
|
-
oe[0].type !== F.type && (V ? V.call(this, F, oe[0]) : (oe[1] ||
|
|
9905
|
+
oe[0].type !== F.type && (V ? V.call(this, F, oe[0]) : (oe[1] || La).call(this, F, oe[0]));
|
|
9908
9906
|
else throw new Error("Cannot close `" + F.type + "` (" + Wn({
|
|
9909
9907
|
start: F.start,
|
|
9910
9908
|
end: F.end
|
|
@@ -10062,7 +10060,7 @@ function jm(e) {
|
|
|
10062
10060
|
function de(F) {
|
|
10063
10061
|
const V = this.sliceSerialize(F), Q = this.data.characterReferenceType;
|
|
10064
10062
|
let oe;
|
|
10065
|
-
Q ? (oe = Pu(V, Q === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : oe =
|
|
10063
|
+
Q ? (oe = Pu(V, Q === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : oe = yo(V);
|
|
10066
10064
|
const ae = this.stack[this.stack.length - 1];
|
|
10067
10065
|
ae.value += oe;
|
|
10068
10066
|
}
|
|
@@ -10228,7 +10226,7 @@ function Jm(e, t) {
|
|
|
10228
10226
|
}
|
|
10229
10227
|
}
|
|
10230
10228
|
}
|
|
10231
|
-
function
|
|
10229
|
+
function La(e, t) {
|
|
10232
10230
|
throw e ? new Error("Cannot close `" + e.type + "` (" + Wn({
|
|
10233
10231
|
start: e.start,
|
|
10234
10232
|
end: e.end
|
|
@@ -10495,7 +10493,7 @@ function fb(e, t) {
|
|
|
10495
10493
|
tagName: "tbody",
|
|
10496
10494
|
properties: {},
|
|
10497
10495
|
children: e.wrap(n, !0)
|
|
10498
|
-
}, s =
|
|
10496
|
+
}, s = ho(t.children[1]), u = Cu(t.children[t.children.length - 1]);
|
|
10499
10497
|
s && u && (a.position = { start: s, end: u }), i.push(a);
|
|
10500
10498
|
}
|
|
10501
10499
|
const o = {
|
|
@@ -10534,28 +10532,28 @@ function gb(e, t) {
|
|
|
10534
10532
|
};
|
|
10535
10533
|
return e.patch(t, n), e.applyData(t, n);
|
|
10536
10534
|
}
|
|
10537
|
-
const
|
|
10535
|
+
const Xa = 9, za = 32;
|
|
10538
10536
|
function mb(e) {
|
|
10539
10537
|
const t = String(e), n = /\r?\n|\r/g;
|
|
10540
10538
|
let r = n.exec(t), i = 0;
|
|
10541
10539
|
const o = [];
|
|
10542
10540
|
for (; r; )
|
|
10543
10541
|
o.push(
|
|
10544
|
-
|
|
10542
|
+
Ha(t.slice(i, r.index), i > 0, !0),
|
|
10545
10543
|
r[0]
|
|
10546
10544
|
), i = r.index + r[0].length, r = n.exec(t);
|
|
10547
|
-
return o.push(
|
|
10545
|
+
return o.push(Ha(t.slice(i), i > 0, !1)), o.join("");
|
|
10548
10546
|
}
|
|
10549
|
-
function
|
|
10547
|
+
function Ha(e, t, n) {
|
|
10550
10548
|
let r = 0, i = e.length;
|
|
10551
10549
|
if (t) {
|
|
10552
10550
|
let o = e.codePointAt(r);
|
|
10553
|
-
for (; o ===
|
|
10551
|
+
for (; o === Xa || o === za; )
|
|
10554
10552
|
r++, o = e.codePointAt(r);
|
|
10555
10553
|
}
|
|
10556
10554
|
if (n) {
|
|
10557
10555
|
let o = e.codePointAt(i - 1);
|
|
10558
|
-
for (; o ===
|
|
10556
|
+
for (; o === Xa || o === za; )
|
|
10559
10557
|
i--, o = e.codePointAt(i - 1);
|
|
10560
10558
|
}
|
|
10561
10559
|
return i > r ? e.slice(r, i) : "";
|
|
@@ -10605,7 +10603,7 @@ const Ib = {
|
|
|
10605
10603
|
};
|
|
10606
10604
|
function yr() {
|
|
10607
10605
|
}
|
|
10608
|
-
const Hu = -1, Wr = 0, Dr = 1, Nr = 2,
|
|
10606
|
+
const Hu = -1, Wr = 0, Dr = 1, Nr = 2, Co = 3, xo = 4, Ao = 5, So = 6, Wu = 7, Zu = 8, Wa = typeof self == "object" ? self : globalThis, vb = (e, t) => {
|
|
10609
10607
|
const n = (i, o) => (e.set(o, i), i), r = (i) => {
|
|
10610
10608
|
if (e.has(i))
|
|
10611
10609
|
return e.get(i);
|
|
@@ -10626,19 +10624,19 @@ const Hu = -1, Wr = 0, Dr = 1, Nr = 2, xo = 3, Ao = 4, So = 5, wo = 6, Wu = 7, Z
|
|
|
10626
10624
|
s[r(u)] = r(l);
|
|
10627
10625
|
return s;
|
|
10628
10626
|
}
|
|
10629
|
-
case
|
|
10627
|
+
case Co:
|
|
10630
10628
|
return n(new Date(a), i);
|
|
10631
|
-
case
|
|
10629
|
+
case xo: {
|
|
10632
10630
|
const { source: s, flags: u } = a;
|
|
10633
10631
|
return n(new RegExp(s, u), i);
|
|
10634
10632
|
}
|
|
10635
|
-
case
|
|
10633
|
+
case Ao: {
|
|
10636
10634
|
const s = n(/* @__PURE__ */ new Map(), i);
|
|
10637
10635
|
for (const [u, l] of a)
|
|
10638
10636
|
s.set(r(u), r(l));
|
|
10639
10637
|
return s;
|
|
10640
10638
|
}
|
|
10641
|
-
case
|
|
10639
|
+
case So: {
|
|
10642
10640
|
const s = n(/* @__PURE__ */ new Set(), i);
|
|
10643
10641
|
for (const u of a)
|
|
10644
10642
|
s.add(r(u));
|
|
@@ -10646,17 +10644,17 @@ const Hu = -1, Wr = 0, Dr = 1, Nr = 2, xo = 3, Ao = 4, So = 5, wo = 6, Wu = 7, Z
|
|
|
10646
10644
|
}
|
|
10647
10645
|
case Wu: {
|
|
10648
10646
|
const { name: s, message: u } = a;
|
|
10649
|
-
return n(new
|
|
10647
|
+
return n(new Wa[s](u), i);
|
|
10650
10648
|
}
|
|
10651
10649
|
case Zu:
|
|
10652
10650
|
return n(BigInt(a), i);
|
|
10653
10651
|
case "BigInt":
|
|
10654
10652
|
return n(Object(BigInt(a)), i);
|
|
10655
10653
|
}
|
|
10656
|
-
return n(new
|
|
10654
|
+
return n(new Wa[o](a), i);
|
|
10657
10655
|
};
|
|
10658
10656
|
return r;
|
|
10659
|
-
},
|
|
10657
|
+
}, Za = (e) => vb(/* @__PURE__ */ new Map(), e)(0), ln = "", { toString: Cb } = {}, { keys: xb } = Object, Mn = (e) => {
|
|
10660
10658
|
const t = typeof e;
|
|
10661
10659
|
if (t !== "object" || !e)
|
|
10662
10660
|
return [Wr, t];
|
|
@@ -10667,13 +10665,13 @@ const Hu = -1, Wr = 0, Dr = 1, Nr = 2, xo = 3, Ao = 4, So = 5, wo = 6, Wu = 7, Z
|
|
|
10667
10665
|
case "Object":
|
|
10668
10666
|
return [Nr, ln];
|
|
10669
10667
|
case "Date":
|
|
10670
|
-
return [
|
|
10668
|
+
return [Co, ln];
|
|
10671
10669
|
case "RegExp":
|
|
10672
|
-
return [
|
|
10670
|
+
return [xo, ln];
|
|
10673
10671
|
case "Map":
|
|
10674
|
-
return [
|
|
10672
|
+
return [Ao, ln];
|
|
10675
10673
|
case "Set":
|
|
10676
|
-
return [
|
|
10674
|
+
return [So, ln];
|
|
10677
10675
|
}
|
|
10678
10676
|
return n.includes("Array") ? [Dr, n] : n.includes("Error") ? [Wu, n] : [Nr, n];
|
|
10679
10677
|
}, Ir = ([e, t]) => e === Wr && (t === "function" || t === "symbol"), Ab = (e, t, n, r) => {
|
|
@@ -10727,19 +10725,19 @@ const Hu = -1, Wr = 0, Dr = 1, Nr = 2, xo = 3, Ao = 4, So = 5, wo = 6, Wu = 7, Z
|
|
|
10727
10725
|
(e || !Ir(Mn(a[f]))) && c.push([o(f), o(a[f])]);
|
|
10728
10726
|
return d;
|
|
10729
10727
|
}
|
|
10730
|
-
case
|
|
10728
|
+
case Co:
|
|
10731
10729
|
return i([s, a.toISOString()], a);
|
|
10732
|
-
case
|
|
10730
|
+
case xo: {
|
|
10733
10731
|
const { source: c, flags: d } = a;
|
|
10734
10732
|
return i([s, { source: c, flags: d }], a);
|
|
10735
10733
|
}
|
|
10736
|
-
case
|
|
10734
|
+
case Ao: {
|
|
10737
10735
|
const c = [], d = i([s, c], a);
|
|
10738
10736
|
for (const [f, p] of a)
|
|
10739
10737
|
(e || !(Ir(Mn(f)) || Ir(Mn(p)))) && c.push([o(f), o(p)]);
|
|
10740
10738
|
return d;
|
|
10741
10739
|
}
|
|
10742
|
-
case
|
|
10740
|
+
case So: {
|
|
10743
10741
|
const c = [], d = i([s, c], a);
|
|
10744
10742
|
for (const f of a)
|
|
10745
10743
|
(e || !Ir(Mn(f))) && c.push(o(f));
|
|
@@ -10750,13 +10748,13 @@ const Hu = -1, Wr = 0, Dr = 1, Nr = 2, xo = 3, Ao = 4, So = 5, wo = 6, Wu = 7, Z
|
|
|
10750
10748
|
return i([s, { name: u, message: l }], a);
|
|
10751
10749
|
};
|
|
10752
10750
|
return o;
|
|
10753
|
-
},
|
|
10751
|
+
}, ja = (e, { json: t, lossy: n } = {}) => {
|
|
10754
10752
|
const r = [];
|
|
10755
10753
|
return Ab(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
10756
10754
|
}, Mr = typeof structuredClone == "function" ? (
|
|
10757
10755
|
/* c8 ignore start */
|
|
10758
|
-
(e, t) => t && ("json" in t || "lossy" in t) ? ja(
|
|
10759
|
-
) : (e, t) => ja(
|
|
10756
|
+
(e, t) => t && ("json" in t || "lossy" in t) ? Za(ja(e, t)) : structuredClone(e)
|
|
10757
|
+
) : (e, t) => Za(ja(e, t));
|
|
10760
10758
|
function Sb(e, t) {
|
|
10761
10759
|
const n = [{ type: "text", value: "↩" }];
|
|
10762
10760
|
return t > 1 && n.push({
|
|
@@ -10921,7 +10919,7 @@ function Rb() {
|
|
|
10921
10919
|
function kb(e) {
|
|
10922
10920
|
return e !== null && typeof e == "object" && "type" in e;
|
|
10923
10921
|
}
|
|
10924
|
-
const Ju = [], Bb = !0,
|
|
10922
|
+
const Ju = [], Bb = !0, Ja = !1, Ob = "skip";
|
|
10925
10923
|
function Tb(e, t, n, r) {
|
|
10926
10924
|
let i;
|
|
10927
10925
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
@@ -10947,7 +10945,7 @@ function Tb(e, t, n, r) {
|
|
|
10947
10945
|
return f;
|
|
10948
10946
|
function f() {
|
|
10949
10947
|
let p = Ju, I, g, v;
|
|
10950
|
-
if ((!t || o(u, l, c[c.length - 1] || void 0)) && (p = Vb(n(u, c)), p[0] ===
|
|
10948
|
+
if ((!t || o(u, l, c[c.length - 1] || void 0)) && (p = Vb(n(u, c)), p[0] === Ja))
|
|
10951
10949
|
return p;
|
|
10952
10950
|
if ("children" in u && u.children) {
|
|
10953
10951
|
const b = (
|
|
@@ -10957,7 +10955,7 @@ function Tb(e, t, n, r) {
|
|
|
10957
10955
|
if (b.children && p[0] !== Ob)
|
|
10958
10956
|
for (g = (r ? b.children.length : -1) + a, v = c.concat(b); g > -1 && g < b.children.length; ) {
|
|
10959
10957
|
const w = b.children[g];
|
|
10960
|
-
if (I = s(w, g, v)(), I[0] ===
|
|
10958
|
+
if (I = s(w, g, v)(), I[0] === Ja)
|
|
10961
10959
|
return I;
|
|
10962
10960
|
g = typeof I[1] == "number" ? I[1] : g + a;
|
|
10963
10961
|
}
|
|
@@ -11019,9 +11017,9 @@ function Nb(e, t) {
|
|
|
11019
11017
|
for (; ++p < f.length; ) {
|
|
11020
11018
|
const I = s.one(f[p], c);
|
|
11021
11019
|
if (I) {
|
|
11022
|
-
if (p && f[p - 1].type === "break" && (!Array.isArray(I) && I.type === "text" && (I.value =
|
|
11020
|
+
if (p && f[p - 1].type === "break" && (!Array.isArray(I) && I.type === "text" && (I.value = Ya(I.value)), !Array.isArray(I) && I.type === "element")) {
|
|
11023
11021
|
const g = I.children[0];
|
|
11024
|
-
g && g.type === "text" && (g.value =
|
|
11022
|
+
g && g.type === "text" && (g.value = Ya(g.value));
|
|
11025
11023
|
}
|
|
11026
11024
|
Array.isArray(I) ? d.push(...I) : d.push(I);
|
|
11027
11025
|
}
|
|
@@ -11067,13 +11065,13 @@ function zb(e, t) {
|
|
|
11067
11065
|
return t && e.length > 0 && n.push({ type: "text", value: `
|
|
11068
11066
|
` }), n;
|
|
11069
11067
|
}
|
|
11070
|
-
function
|
|
11068
|
+
function Ya(e) {
|
|
11071
11069
|
let t = 0, n = e.charCodeAt(t);
|
|
11072
11070
|
for (; n === 9 || n === 32; )
|
|
11073
11071
|
t++, n = e.charCodeAt(t);
|
|
11074
11072
|
return e.slice(t);
|
|
11075
11073
|
}
|
|
11076
|
-
function
|
|
11074
|
+
function _a(e, t) {
|
|
11077
11075
|
const n = Nb(e, t), r = n.one(e, void 0), i = Eb(n), o = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
|
|
11078
11076
|
return i && o.children.push({ type: "text", value: `
|
|
11079
11077
|
` }, i), o;
|
|
@@ -11082,23 +11080,23 @@ function Hb(e, t) {
|
|
|
11082
11080
|
return e && "run" in e ? async function(n, r) {
|
|
11083
11081
|
const i = (
|
|
11084
11082
|
/** @type {HastRoot} */
|
|
11085
|
-
|
|
11083
|
+
_a(n, { file: r, ...t })
|
|
11086
11084
|
);
|
|
11087
11085
|
await e.run(i, r);
|
|
11088
11086
|
} : function(n, r) {
|
|
11089
11087
|
return (
|
|
11090
11088
|
/** @type {HastRoot} */
|
|
11091
|
-
|
|
11089
|
+
_a(n, { file: r, ...e || t })
|
|
11092
11090
|
);
|
|
11093
11091
|
};
|
|
11094
11092
|
}
|
|
11095
|
-
function
|
|
11093
|
+
function Ua(e) {
|
|
11096
11094
|
if (e)
|
|
11097
11095
|
throw e;
|
|
11098
11096
|
}
|
|
11099
|
-
var Sr = Object.prototype.hasOwnProperty, _u = Object.prototype.toString,
|
|
11097
|
+
var Sr = Object.prototype.hasOwnProperty, _u = Object.prototype.toString, Qa = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, $a = function(t) {
|
|
11100
11098
|
return typeof Array.isArray == "function" ? Array.isArray(t) : _u.call(t) === "[object Array]";
|
|
11101
|
-
},
|
|
11099
|
+
}, Ka = function(t) {
|
|
11102
11100
|
if (!t || _u.call(t) !== "[object Object]")
|
|
11103
11101
|
return !1;
|
|
11104
11102
|
var n = Sr.call(t, "constructor"), r = t.constructor && t.constructor.prototype && Sr.call(t.constructor.prototype, "isPrototypeOf");
|
|
@@ -11108,18 +11106,18 @@ var Sr = Object.prototype.hasOwnProperty, _u = Object.prototype.toString, qa = O
|
|
|
11108
11106
|
for (i in t)
|
|
11109
11107
|
;
|
|
11110
11108
|
return typeof i > "u" || Sr.call(t, i);
|
|
11111
|
-
},
|
|
11112
|
-
|
|
11109
|
+
}, es = function(t, n) {
|
|
11110
|
+
Qa && n.name === "__proto__" ? Qa(t, n.name, {
|
|
11113
11111
|
enumerable: !0,
|
|
11114
11112
|
configurable: !0,
|
|
11115
11113
|
value: n.newValue,
|
|
11116
11114
|
writable: !0
|
|
11117
11115
|
}) : t[n.name] = n.newValue;
|
|
11118
|
-
},
|
|
11116
|
+
}, ts = function(t, n) {
|
|
11119
11117
|
if (n === "__proto__")
|
|
11120
11118
|
if (Sr.call(t, n)) {
|
|
11121
|
-
if (
|
|
11122
|
-
return
|
|
11119
|
+
if (qa)
|
|
11120
|
+
return qa(t, n).value;
|
|
11123
11121
|
} else return;
|
|
11124
11122
|
return t[n];
|
|
11125
11123
|
}, Wb = function e() {
|
|
@@ -11127,10 +11125,10 @@ var Sr = Object.prototype.hasOwnProperty, _u = Object.prototype.toString, qa = O
|
|
|
11127
11125
|
for (typeof s == "boolean" && (c = s, s = arguments[1] || {}, u = 2), (s == null || typeof s != "object" && typeof s != "function") && (s = {}); u < l; ++u)
|
|
11128
11126
|
if (t = arguments[u], t != null)
|
|
11129
11127
|
for (n in t)
|
|
11130
|
-
r =
|
|
11128
|
+
r = ts(s, n), i = ts(t, n), s !== i && (c && i && (Ka(i) || (o = $a(i))) ? (o ? (o = !1, a = r && $a(r) ? r : []) : a = r && Ka(r) ? r : {}, es(s, { name: n, newValue: e(c, a, i) })) : typeof i < "u" && es(s, { name: n, newValue: i }));
|
|
11131
11129
|
return s;
|
|
11132
11130
|
};
|
|
11133
|
-
const hi = /* @__PURE__ */
|
|
11131
|
+
const hi = /* @__PURE__ */ vs(Wb);
|
|
11134
11132
|
function Qi(e) {
|
|
11135
11133
|
if (typeof e != "object" || e === null)
|
|
11136
11134
|
return !1;
|
|
@@ -11436,7 +11434,7 @@ class Uu {
|
|
|
11436
11434
|
* Nothing.
|
|
11437
11435
|
*/
|
|
11438
11436
|
set dirname(t) {
|
|
11439
|
-
|
|
11437
|
+
ns(this.basename, "dirname"), this.path = ut.join(t || "", this.basename);
|
|
11440
11438
|
}
|
|
11441
11439
|
/**
|
|
11442
11440
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -11460,7 +11458,7 @@ class Uu {
|
|
|
11460
11458
|
* Nothing.
|
|
11461
11459
|
*/
|
|
11462
11460
|
set extname(t) {
|
|
11463
|
-
if (mi(t, "extname"),
|
|
11461
|
+
if (mi(t, "extname"), ns(this.dirname, "extname"), t) {
|
|
11464
11462
|
if (t.codePointAt(0) !== 46)
|
|
11465
11463
|
throw new Error("`extname` must start with `.`");
|
|
11466
11464
|
if (t.includes(".", 1))
|
|
@@ -11737,7 +11735,7 @@ function bi(e, t) {
|
|
|
11737
11735
|
if (!e)
|
|
11738
11736
|
throw new Error("`" + t + "` cannot be empty");
|
|
11739
11737
|
}
|
|
11740
|
-
function
|
|
11738
|
+
function ns(e, t) {
|
|
11741
11739
|
if (!e)
|
|
11742
11740
|
throw new Error("Setting `" + t + "` requires `path` to be set too");
|
|
11743
11741
|
}
|
|
@@ -11766,7 +11764,7 @@ const ry = (
|
|
|
11766
11764
|
return Object.setPrototypeOf(o, r), o;
|
|
11767
11765
|
}
|
|
11768
11766
|
), iy = {}.hasOwnProperty;
|
|
11769
|
-
class
|
|
11767
|
+
class wo extends ry {
|
|
11770
11768
|
/**
|
|
11771
11769
|
* Create a processor.
|
|
11772
11770
|
*/
|
|
@@ -11787,7 +11785,7 @@ class Eo extends ry {
|
|
|
11787
11785
|
copy() {
|
|
11788
11786
|
const t = (
|
|
11789
11787
|
/** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
|
|
11790
|
-
new
|
|
11788
|
+
new wo()
|
|
11791
11789
|
);
|
|
11792
11790
|
let n = -1;
|
|
11793
11791
|
for (; ++n < this.attachers.length; ) {
|
|
@@ -12015,9 +12013,9 @@ class Eo extends ry {
|
|
|
12015
12013
|
*/
|
|
12016
12014
|
processSync(t) {
|
|
12017
12015
|
let n = !1, r;
|
|
12018
|
-
return this.freeze(), yi("processSync", this.parser || this.Parser), Ii("processSync", this.compiler || this.Compiler), this.process(t, i),
|
|
12016
|
+
return this.freeze(), yi("processSync", this.parser || this.Parser), Ii("processSync", this.compiler || this.Compiler), this.process(t, i), is("processSync", "process", n), r;
|
|
12019
12017
|
function i(o, a) {
|
|
12020
|
-
n = !0,
|
|
12018
|
+
n = !0, Ua(o), r = a;
|
|
12021
12019
|
}
|
|
12022
12020
|
}
|
|
12023
12021
|
/**
|
|
@@ -12059,7 +12057,7 @@ class Eo extends ry {
|
|
|
12059
12057
|
* transformed tree.
|
|
12060
12058
|
*/
|
|
12061
12059
|
run(t, n, r) {
|
|
12062
|
-
|
|
12060
|
+
rs(t), this.freeze();
|
|
12063
12061
|
const i = this.transformers;
|
|
12064
12062
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? o(void 0, r) : new Promise(o);
|
|
12065
12063
|
function o(a, s) {
|
|
@@ -12093,9 +12091,9 @@ class Eo extends ry {
|
|
|
12093
12091
|
*/
|
|
12094
12092
|
runSync(t, n) {
|
|
12095
12093
|
let r = !1, i;
|
|
12096
|
-
return this.run(t, n, o),
|
|
12094
|
+
return this.run(t, n, o), is("runSync", "run", r), i;
|
|
12097
12095
|
function o(a, s) {
|
|
12098
|
-
|
|
12096
|
+
Ua(a), i = s, r = !0;
|
|
12099
12097
|
}
|
|
12100
12098
|
}
|
|
12101
12099
|
/**
|
|
@@ -12130,7 +12128,7 @@ class Eo extends ry {
|
|
|
12130
12128
|
stringify(t, n) {
|
|
12131
12129
|
this.freeze();
|
|
12132
12130
|
const r = vr(n), i = this.compiler || this.Compiler;
|
|
12133
|
-
return Ii("stringify", i),
|
|
12131
|
+
return Ii("stringify", i), rs(t), i(t, r);
|
|
12134
12132
|
}
|
|
12135
12133
|
/**
|
|
12136
12134
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -12247,7 +12245,7 @@ class Eo extends ry {
|
|
|
12247
12245
|
}
|
|
12248
12246
|
}
|
|
12249
12247
|
}
|
|
12250
|
-
const oy = new
|
|
12248
|
+
const oy = new wo().freeze();
|
|
12251
12249
|
function yi(e, t) {
|
|
12252
12250
|
if (typeof t != "function")
|
|
12253
12251
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -12262,11 +12260,11 @@ function vi(e, t) {
|
|
|
12262
12260
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
12263
12261
|
);
|
|
12264
12262
|
}
|
|
12265
|
-
function
|
|
12263
|
+
function rs(e) {
|
|
12266
12264
|
if (!Qi(e) || typeof e.type != "string")
|
|
12267
12265
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
12268
12266
|
}
|
|
12269
|
-
function
|
|
12267
|
+
function is(e, t, n) {
|
|
12270
12268
|
if (!n)
|
|
12271
12269
|
throw new Error(
|
|
12272
12270
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
@@ -12284,7 +12282,7 @@ function sy(e) {
|
|
|
12284
12282
|
function uy(e) {
|
|
12285
12283
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
12286
12284
|
}
|
|
12287
|
-
const ly = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
12285
|
+
const ly = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", os = [], as = { allowDangerousHtml: !0 }, cy = /^(https?|ircs?|mailto|xmpp)$/i, dy = [
|
|
12288
12286
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
12289
12287
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
12290
12288
|
{
|
|
@@ -12318,7 +12316,7 @@ const ly = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
|
|
|
12318
12316
|
{ from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
|
|
12319
12317
|
];
|
|
12320
12318
|
function py(e) {
|
|
12321
|
-
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, a = e.disallowedElements, s = e.rehypePlugins ||
|
|
12319
|
+
const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, a = e.disallowedElements, s = e.rehypePlugins || os, u = e.remarkPlugins || os, l = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...as } : as, c = e.skipHtml, d = e.unwrapDisallowed, f = e.urlTransform || fy, p = oy().use(Ym).use(u).use(Hb, l).use(s), I = new Uu();
|
|
12322
12320
|
typeof r == "string" && (I.value = r);
|
|
12323
12321
|
for (const w of dy)
|
|
12324
12322
|
Object.hasOwn(e, w.from) && ("" + w.from + (w.to ? "use `" + w.to + "` instead" : "remove it") + ly + w.id, void 0);
|
|
@@ -12467,17 +12465,17 @@ const by = (e) => {
|
|
|
12467
12465
|
Label: my,
|
|
12468
12466
|
OptionalFieldButton: by,
|
|
12469
12467
|
Button: Qu
|
|
12470
|
-
},
|
|
12468
|
+
}, Eo = $n({
|
|
12471
12469
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
12472
12470
|
classNames: {},
|
|
12473
12471
|
classNamePrefix: "",
|
|
12474
12472
|
components: {},
|
|
12475
12473
|
styles: {},
|
|
12476
|
-
theme:
|
|
12474
|
+
theme: co,
|
|
12477
12475
|
unstyled: !1
|
|
12478
12476
|
});
|
|
12479
12477
|
function Iy() {
|
|
12480
|
-
const e = Pn(
|
|
12478
|
+
const e = Pn(Eo) ?? {}, t = Lf(e.theme ?? {});
|
|
12481
12479
|
function n() {
|
|
12482
12480
|
return e.classNamePrefix ?? "";
|
|
12483
12481
|
}
|
|
@@ -12525,7 +12523,7 @@ function Iy() {
|
|
|
12525
12523
|
};
|
|
12526
12524
|
}
|
|
12527
12525
|
function _e() {
|
|
12528
|
-
const e = Pn(
|
|
12526
|
+
const e = Pn(Eo) ?? {}, t = e.theme, n = e.unstyled ? Mf : co, r = typeof t == "function" ? Hi(n, t(n)) : Hi(n, t);
|
|
12529
12527
|
function i(u, l) {
|
|
12530
12528
|
var f;
|
|
12531
12529
|
const c = `${(e == null ? void 0 : e.classNamePrefix) ?? "pd-"}${u.toLowerCase()}`, d = (f = e.classNames) == null ? void 0 : f[u];
|
|
@@ -12583,7 +12581,7 @@ function _e() {
|
|
|
12583
12581
|
const Yy = ({
|
|
12584
12582
|
children: e,
|
|
12585
12583
|
...t
|
|
12586
|
-
}) => /* @__PURE__ */ W(
|
|
12584
|
+
}) => /* @__PURE__ */ W(Eo.Provider, { value: t, children: e }), qu = $n(void 0), kn = () => {
|
|
12587
12585
|
const e = Pn(qu);
|
|
12588
12586
|
if (!e)
|
|
12589
12587
|
throw new Error("Must be used inside FormFieldContext.Provider");
|
|
@@ -12775,7 +12773,7 @@ function Sy() {
|
|
|
12775
12773
|
}
|
|
12776
12774
|
);
|
|
12777
12775
|
}
|
|
12778
|
-
var wy = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"],
|
|
12776
|
+
var wy = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], ss = function() {
|
|
12779
12777
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", n = arguments.length > 1 ? arguments[1] : void 0, r = arguments.length > 2 ? arguments[2] : void 0, i = String(t).toLowerCase(), o = String(r.getOptionValue(n)).toLowerCase(), a = String(r.getOptionLabel(n)).toLowerCase();
|
|
12780
12778
|
return o === i || a === i;
|
|
12781
12779
|
}, Ci = {
|
|
@@ -12784,9 +12782,9 @@ var wy = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel"
|
|
|
12784
12782
|
},
|
|
12785
12783
|
isValidNewOption: function(t, n, r, i) {
|
|
12786
12784
|
return !(!t || n.some(function(o) {
|
|
12787
|
-
return
|
|
12785
|
+
return ss(t, o, i);
|
|
12788
12786
|
}) || r.some(function(o) {
|
|
12789
|
-
return
|
|
12787
|
+
return ss(t, o, i);
|
|
12790
12788
|
}));
|
|
12791
12789
|
},
|
|
12792
12790
|
getNewOptionData: function(t, n) {
|
|
@@ -12828,9 +12826,9 @@ function Ey(e) {
|
|
|
12828
12826
|
onChange: N
|
|
12829
12827
|
});
|
|
12830
12828
|
}
|
|
12831
|
-
var Fy = /* @__PURE__ */
|
|
12829
|
+
var Fy = /* @__PURE__ */ ys(function(e, t) {
|
|
12832
12830
|
var n = Ds(e), r = Ey(n);
|
|
12833
|
-
return /* @__PURE__ */ te.createElement(
|
|
12831
|
+
return /* @__PURE__ */ te.createElement(lo, J({
|
|
12834
12832
|
ref: t
|
|
12835
12833
|
}, r));
|
|
12836
12834
|
}), Py = Fy;
|
|
@@ -12937,7 +12935,7 @@ function Gy({ queryEnabled: e }) {
|
|
|
12937
12935
|
configuredProps: o,
|
|
12938
12936
|
dynamicProps: a,
|
|
12939
12937
|
props: { disableQueryDisabling: s }
|
|
12940
|
-
} =
|
|
12938
|
+
} = ro(), {
|
|
12941
12939
|
idx: u,
|
|
12942
12940
|
prop: l
|
|
12943
12941
|
} = kn(), [
|
|
@@ -13147,7 +13145,7 @@ function Oy({
|
|
|
13147
13145
|
prop: e,
|
|
13148
13146
|
idx: t
|
|
13149
13147
|
}) {
|
|
13150
|
-
const n =
|
|
13148
|
+
const n = ro(), {
|
|
13151
13149
|
id: r,
|
|
13152
13150
|
configuredProps: i,
|
|
13153
13151
|
registerField: o,
|
|
@@ -13178,7 +13176,7 @@ function Oy({
|
|
|
13178
13176
|
c
|
|
13179
13177
|
]), /* @__PURE__ */ W(qu.Provider, { value: c, children: /* @__PURE__ */ W(ky, { field: c, form: n }) });
|
|
13180
13178
|
}
|
|
13181
|
-
class Ty extends
|
|
13179
|
+
class Ty extends bs {
|
|
13182
13180
|
constructor() {
|
|
13183
13181
|
super(...arguments), this.state = {
|
|
13184
13182
|
err: void 0
|
|
@@ -13220,7 +13218,7 @@ function Vy(e) {
|
|
|
13220
13218
|
})(n.length || r), e), disabled: n.length || r });
|
|
13221
13219
|
}
|
|
13222
13220
|
function Dy() {
|
|
13223
|
-
const e =
|
|
13221
|
+
const e = ro(), {
|
|
13224
13222
|
configurableProps: t,
|
|
13225
13223
|
dynamicPropsQueryIsFetching: n,
|
|
13226
13224
|
isValid: r,
|
|
@@ -13491,7 +13489,7 @@ export {
|
|
|
13491
13489
|
Sy as ControlInput,
|
|
13492
13490
|
$i as ControlSelect,
|
|
13493
13491
|
Vy as ControlSubmit,
|
|
13494
|
-
|
|
13492
|
+
Eo as CustomizationContext,
|
|
13495
13493
|
Yy as CustomizeProvider,
|
|
13496
13494
|
hy as Description,
|
|
13497
13495
|
Ty as ErrorBoundary,
|
|
@@ -13509,7 +13507,7 @@ export {
|
|
|
13509
13507
|
Qy as SelectApp,
|
|
13510
13508
|
qy as SelectComponent,
|
|
13511
13509
|
yy as defaultComponents,
|
|
13512
|
-
|
|
13510
|
+
co as defaultTheme,
|
|
13513
13511
|
Lf as getReactSelectTheme,
|
|
13514
13512
|
Hi as mergeTheme,
|
|
13515
13513
|
Cr as skippablePropTypes,
|
|
@@ -13520,7 +13518,7 @@ export {
|
|
|
13520
13518
|
My as useComponent,
|
|
13521
13519
|
Xy as useComponents,
|
|
13522
13520
|
_e as useCustomize,
|
|
13523
|
-
|
|
13521
|
+
ro as useFormContext,
|
|
13524
13522
|
kn as useFormFieldContext,
|
|
13525
13523
|
Mt as useFrontendClient
|
|
13526
13524
|
};
|