@ansible/ansible-ui-framework 0.0.671 → 0.0.672
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +492 -486
- package/index.umd.cjs +20 -20
- package/package.json +1 -1
package/index.js
CHANGED
@@ -78,7 +78,7 @@ function mf() {
|
|
78
78
|
return typeof ee == "function" ? ee : null;
|
79
79
|
}
|
80
80
|
var E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
81
|
-
function
|
81
|
+
function _(O) {
|
82
82
|
{
|
83
83
|
for (var ee = arguments.length, oe = new Array(ee > 1 ? ee - 1 : 0), we = 1; we < ee; we++)
|
84
84
|
oe[we - 1] = arguments[we];
|
@@ -95,10 +95,10 @@ function mf() {
|
|
95
95
|
We.unshift("Warning: " + ee), Function.prototype.apply.call(console[O], console, We);
|
96
96
|
}
|
97
97
|
}
|
98
|
-
var w = !1, b = !1, V = !1, M = !1,
|
98
|
+
var w = !1, b = !1, V = !1, M = !1, C = !1, x;
|
99
99
|
x = Symbol.for("react.module.reference");
|
100
100
|
function k(O) {
|
101
|
-
return !!(typeof O == "string" || typeof O == "function" || O === n || O === i ||
|
101
|
+
return !!(typeof O == "string" || typeof O == "function" || O === n || O === i || C || O === s || O === c || O === d || M || O === m || w || b || V || typeof O == "object" && O !== null && (O.$$typeof === u || O.$$typeof === h || O.$$typeof === a || O.$$typeof === o || O.$$typeof === l || // This needs to include all possible module reference object
|
102
102
|
// types supported by any Flight configuration anywhere since
|
103
103
|
// we don't know which Flight build this will end up being used
|
104
104
|
// with.
|
@@ -117,7 +117,7 @@ function mf() {
|
|
117
117
|
function A(O) {
|
118
118
|
if (O == null)
|
119
119
|
return null;
|
120
|
-
if (typeof O.tag == "number" &&
|
120
|
+
if (typeof O.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof O == "function")
|
121
121
|
return O.displayName || O.name || null;
|
122
122
|
if (typeof O == "string")
|
123
123
|
return O;
|
@@ -218,7 +218,7 @@ function mf() {
|
|
218
218
|
})
|
219
219
|
});
|
220
220
|
}
|
221
|
-
G < 0 &&
|
221
|
+
G < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
222
222
|
}
|
223
223
|
}
|
224
224
|
var L = E.ReactCurrentDispatcher, ye;
|
@@ -370,7 +370,7 @@ function mf() {
|
|
370
370
|
} catch (Xe) {
|
371
371
|
Ee = Xe;
|
372
372
|
}
|
373
|
-
Ee && !(Ee instanceof Error) && (se(Ie),
|
373
|
+
Ee && !(Ee instanceof Error) && (se(Ie), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", we || "React class", oe, Pe, typeof Ee), se(null)), Ee instanceof Error && !(Ee.message in U) && (U[Ee.message] = !0, se(Ie), _("Failed %s type: %s", oe, Ee.message), se(null));
|
374
374
|
}
|
375
375
|
}
|
376
376
|
}
|
@@ -396,14 +396,14 @@ function mf() {
|
|
396
396
|
}
|
397
397
|
function Ot(O) {
|
398
398
|
if (ge(O))
|
399
|
-
return
|
399
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Te(O)), Ye(O);
|
400
400
|
}
|
401
401
|
var St = E.ReactCurrentOwner, $t = {
|
402
402
|
key: !0,
|
403
403
|
ref: !0,
|
404
404
|
__self: !0,
|
405
405
|
__source: !0
|
406
|
-
},
|
406
|
+
}, T, D, I;
|
407
407
|
I = {};
|
408
408
|
function W(O) {
|
409
409
|
if (z.call(O, "ref")) {
|
@@ -424,13 +424,13 @@ function mf() {
|
|
424
424
|
function de(O, ee) {
|
425
425
|
if (typeof O.ref == "string" && St.current && ee && St.current.stateNode !== ee) {
|
426
426
|
var oe = A(St.current.type);
|
427
|
-
I[oe] || (
|
427
|
+
I[oe] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(St.current.type), O.ref), I[oe] = !0);
|
428
428
|
}
|
429
429
|
}
|
430
430
|
function be(O, ee) {
|
431
431
|
{
|
432
432
|
var oe = function() {
|
433
|
-
|
433
|
+
T || (T = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ee));
|
434
434
|
};
|
435
435
|
oe.isReactWarning = !0, Object.defineProperty(O, "key", {
|
436
436
|
get: oe,
|
@@ -441,7 +441,7 @@ function mf() {
|
|
441
441
|
function Ce(O, ee) {
|
442
442
|
{
|
443
443
|
var oe = function() {
|
444
|
-
D || (D = !0,
|
444
|
+
D || (D = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ee));
|
445
445
|
};
|
446
446
|
oe.isReactWarning = !0, Object.defineProperty(O, "ref", {
|
447
447
|
get: oe,
|
@@ -555,7 +555,7 @@ Check the top-level render call using <` + oe + ">.");
|
|
555
555
|
return;
|
556
556
|
yt[oe] = !0;
|
557
557
|
var we = "";
|
558
|
-
O && O._owner && O._owner !== tt.current && (we = " It was passed a child from " + A(O._owner.type) + "."), Ue(O),
|
558
|
+
O && O._owner && O._owner !== tt.current && (we = " It was passed a child from " + A(O._owner.type) + "."), Ue(O), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', oe, we), Ue(null);
|
559
559
|
}
|
560
560
|
}
|
561
561
|
function or(O, ee) {
|
@@ -597,9 +597,9 @@ Check the top-level render call using <` + oe + ">.");
|
|
597
597
|
} else if (ee.PropTypes !== void 0 && !Ge) {
|
598
598
|
Ge = !0;
|
599
599
|
var Ie = A(ee);
|
600
|
-
|
600
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ie || "Unknown");
|
601
601
|
}
|
602
|
-
typeof ee.getDefaultProps == "function" && !ee.getDefaultProps.isReactClassApproved &&
|
602
|
+
typeof ee.getDefaultProps == "function" && !ee.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
603
603
|
}
|
604
604
|
}
|
605
605
|
function Dt(O) {
|
@@ -607,11 +607,11 @@ Check the top-level render call using <` + oe + ">.");
|
|
607
607
|
for (var ee = Object.keys(O.props), oe = 0; oe < ee.length; oe++) {
|
608
608
|
var we = ee[oe];
|
609
609
|
if (we !== "children" && we !== "key") {
|
610
|
-
Ue(O),
|
610
|
+
Ue(O), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", we), Ue(null);
|
611
611
|
break;
|
612
612
|
}
|
613
613
|
}
|
614
|
-
O.ref !== null && (Ue(O),
|
614
|
+
O.ref !== null && (Ue(O), _("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
|
615
615
|
}
|
616
616
|
}
|
617
617
|
function Wt(O, ee, oe, we, Ie, We) {
|
@@ -623,7 +623,7 @@ Check the top-level render call using <` + oe + ">.");
|
|
623
623
|
var ct = lt(Ie);
|
624
624
|
ct ? Ee += ct : Ee += Be();
|
625
625
|
var Xe;
|
626
|
-
O === null ? Xe = "null" : Re(O) ? Xe = "array" : O !== void 0 && O.$$typeof === e ? (Xe = "<" + (A(O.type) || "Unknown") + " />", Ee = " Did you accidentally export a JSX literal instead of a component?") : Xe = typeof O,
|
626
|
+
O === null ? Xe = "null" : Re(O) ? Xe = "array" : O !== void 0 && O.$$typeof === e ? (Xe = "<" + (A(O.type) || "Unknown") + " />", Ee = " Did you accidentally export a JSX literal instead of a component?") : Xe = typeof O, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Xe, Ee);
|
627
627
|
}
|
628
628
|
var st = Le(O, ee, oe, Ie, We);
|
629
629
|
if (st == null)
|
@@ -637,7 +637,7 @@ Check the top-level render call using <` + oe + ">.");
|
|
637
637
|
or(gt[lr], O);
|
638
638
|
Object.freeze && Object.freeze(gt);
|
639
639
|
} else
|
640
|
-
|
640
|
+
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
641
641
|
else
|
642
642
|
or(gt, O);
|
643
643
|
}
|
@@ -884,7 +884,7 @@ function Pf() {
|
|
884
884
|
if (za)
|
885
885
|
return qe;
|
886
886
|
za = 1;
|
887
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, u = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, E = t ? Symbol.for("react.responder") : 60118,
|
887
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, u = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, E = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
|
888
888
|
function S(b) {
|
889
889
|
if (typeof b == "object" && b !== null) {
|
890
890
|
var V = b.$$typeof;
|
@@ -943,7 +943,7 @@ function Pf() {
|
|
943
943
|
}, qe.isSuspense = function(b) {
|
944
944
|
return S(b) === h;
|
945
945
|
}, qe.isValidElementType = function(b) {
|
946
|
-
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === s || b === h || b === u || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === m || b.$$typeof === a || b.$$typeof === o || b.$$typeof === d || b.$$typeof === v || b.$$typeof === E || b.$$typeof ===
|
946
|
+
return typeof b == "string" || typeof b == "function" || b === n || b === c || b === i || b === s || b === h || b === u || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === m || b.$$typeof === a || b.$$typeof === o || b.$$typeof === d || b.$$typeof === v || b.$$typeof === E || b.$$typeof === _ || b.$$typeof === y);
|
947
947
|
}, qe.typeOf = S, qe;
|
948
948
|
}
|
949
949
|
var He = {};
|
@@ -958,10 +958,10 @@ var He = {};
|
|
958
958
|
var Ua;
|
959
959
|
function Nf() {
|
960
960
|
return Ua || (Ua = 1, process.env.NODE_ENV !== "production" && function() {
|
961
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, u = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, E = t ? Symbol.for("react.responder") : 60118,
|
961
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, u = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, E = t ? Symbol.for("react.responder") : 60118, _ = t ? Symbol.for("react.scope") : 60119;
|
962
962
|
function S(Z) {
|
963
963
|
return typeof Z == "string" || typeof Z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
964
|
-
Z === n || Z === c || Z === i || Z === s || Z === h || Z === u || typeof Z == "object" && Z !== null && (Z.$$typeof === p || Z.$$typeof === m || Z.$$typeof === a || Z.$$typeof === o || Z.$$typeof === d || Z.$$typeof === v || Z.$$typeof === E || Z.$$typeof ===
|
964
|
+
Z === n || Z === c || Z === i || Z === s || Z === h || Z === u || typeof Z == "object" && Z !== null && (Z.$$typeof === p || Z.$$typeof === m || Z.$$typeof === a || Z.$$typeof === o || Z.$$typeof === d || Z.$$typeof === v || Z.$$typeof === E || Z.$$typeof === _ || Z.$$typeof === y);
|
965
965
|
}
|
966
966
|
function w(Z) {
|
967
967
|
if (typeof Z == "object" && Z !== null) {
|
@@ -995,7 +995,7 @@ function Nf() {
|
|
995
995
|
}
|
996
996
|
}
|
997
997
|
}
|
998
|
-
var b = l, V = c, M = o,
|
998
|
+
var b = l, V = c, M = o, C = a, x = e, k = d, P = n, R = p, A = m, q = r, G = i, Y = s, Q = h, te = !1;
|
999
999
|
function N(Z) {
|
1000
1000
|
return te || (te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), $(Z) || w(Z) === l;
|
1001
1001
|
}
|
@@ -1035,7 +1035,7 @@ function Nf() {
|
|
1035
1035
|
function xe(Z) {
|
1036
1036
|
return w(Z) === h;
|
1037
1037
|
}
|
1038
|
-
He.AsyncMode = b, He.ConcurrentMode = V, He.ContextConsumer = M, He.ContextProvider =
|
1038
|
+
He.AsyncMode = b, He.ConcurrentMode = V, He.ContextConsumer = M, He.ContextProvider = C, He.Element = x, He.ForwardRef = k, He.Fragment = P, He.Lazy = R, He.Memo = A, He.Portal = q, He.Profiler = G, He.StrictMode = Y, He.Suspense = Q, He.isAsyncMode = N, He.isConcurrentMode = $, He.isContextConsumer = F, He.isContextProvider = B, He.isElement = H, He.isForwardRef = J, He.isFragment = ae, He.isLazy = L, He.isMemo = ye, He.isPortal = re, He.isProfiler = Oe, He.isStrictMode = $e, He.isSuspense = xe, He.isValidElementType = S, He.typeOf = w;
|
1039
1039
|
}()), He;
|
1040
1040
|
}
|
1041
1041
|
(function(t) {
|
@@ -1126,7 +1126,7 @@ function If(t) {
|
|
1126
1126
|
j = ge + "{" + j + "}";
|
1127
1127
|
break;
|
1128
1128
|
case 107:
|
1129
|
-
ge = ge.replace(
|
1129
|
+
ge = ge.replace(_, "$1 $2"), j = ge + "{" + j + "}", j = G === 1 || G === 2 && i("@" + j, 3) ? "@-webkit-" + j + "@" + j : "@" + j;
|
1130
1130
|
break;
|
1131
1131
|
default:
|
1132
1132
|
j = ge + j, ae === 112 && (j = (Ye += j, ""));
|
@@ -1396,9 +1396,9 @@ function If(t) {
|
|
1396
1396
|
case 105:
|
1397
1397
|
return re = L.replace("-items", ""), "-webkit-" + L + "-webkit-box-" + re + "-ms-flex-" + re + L;
|
1398
1398
|
case 115:
|
1399
|
-
return "-webkit-" + L + "-ms-flex-item-" + L.replace(
|
1399
|
+
return "-webkit-" + L + "-ms-flex-item-" + L.replace(C, "") + L;
|
1400
1400
|
default:
|
1401
|
-
return "-webkit-" + L + "-ms-flex-line-pack" + L.replace("align-content", "").replace(
|
1401
|
+
return "-webkit-" + L + "-ms-flex-line-pack" + L.replace("align-content", "").replace(C, "") + L;
|
1402
1402
|
}
|
1403
1403
|
break;
|
1404
1404
|
case 973:
|
@@ -1467,7 +1467,7 @@ function If(t) {
|
|
1467
1467
|
var L = e(Y, J, H, 0, 0);
|
1468
1468
|
return 0 < te && (ae = o(-2, L, J, J, A, R, L.length, 0, 0, 0), ae !== void 0 && (L = ae)), F = "", q = 0, R = A = 1, L;
|
1469
1469
|
}
|
1470
|
-
var h = /^\0+/g, u = /[\0\r\f]/g, m = /: */g, p = /zoo|gra/, y = /([,: ])(transform)/g, v = /,\r+?/g, E = /([\t\r\n ])*\f?&/g,
|
1470
|
+
var h = /^\0+/g, u = /[\0\r\f]/g, m = /: */g, p = /zoo|gra/, y = /([,: ])(transform)/g, v = /,\r+?/g, E = /([\t\r\n ])*\f?&/g, _ = /@(k\w+)\s*(\S*)\s*/, S = /::(place)/g, w = /:(read-only)/g, b = /[svh]\w+-[tblr]{2}/, V = /\(\s*(.*)\s*\)/g, M = /([\s\S]*?);/g, C = /-self|flex-/g, x = /[^]*?(:[rp][el]a[\w-]+)[^]*/, k = /stretch|:\s*\w+\-(?:conte|avail)/, P = /([^-])(image-set\()/, R = 1, A = 1, q = 0, G = 1, Y = [], Q = [], te = 0, N = null, $ = 0, F = "";
|
1471
1471
|
return d.use = l, d.set = c, t !== void 0 && c(t), d;
|
1472
1472
|
}
|
1473
1473
|
var Df = {
|
@@ -1929,26 +1929,26 @@ function fh(t) {
|
|
1929
1929
|
} catch {
|
1930
1930
|
}
|
1931
1931
|
}
|
1932
|
-
return function(E,
|
1932
|
+
return function(E, _, S, w, b, V, M, C, x, k) {
|
1933
1933
|
switch (E) {
|
1934
1934
|
case 1:
|
1935
|
-
if (x === 0 &&
|
1936
|
-
return y(
|
1935
|
+
if (x === 0 && _.charCodeAt(0) === 64)
|
1936
|
+
return y(_ + ";"), "";
|
1937
1937
|
break;
|
1938
1938
|
case 2:
|
1939
|
-
if (
|
1940
|
-
return
|
1939
|
+
if (C === 0)
|
1940
|
+
return _ + "/*|*/";
|
1941
1941
|
break;
|
1942
1942
|
case 3:
|
1943
|
-
switch (
|
1943
|
+
switch (C) {
|
1944
1944
|
case 102:
|
1945
1945
|
case 112:
|
1946
|
-
return y(S[0] +
|
1946
|
+
return y(S[0] + _), "";
|
1947
1947
|
default:
|
1948
|
-
return
|
1948
|
+
return _ + (k === 0 ? "/*|*/" : "");
|
1949
1949
|
}
|
1950
1950
|
case -2:
|
1951
|
-
|
1951
|
+
_.split("/*|*/}").forEach(v);
|
1952
1952
|
}
|
1953
1953
|
};
|
1954
1954
|
}(function(y) {
|
@@ -1956,10 +1956,10 @@ function fh(t) {
|
|
1956
1956
|
}), m = function(y, v, E) {
|
1957
1957
|
return v === 0 && dh.indexOf(E[r.length]) !== -1 || E.match(s) ? y : "." + e;
|
1958
1958
|
};
|
1959
|
-
function p(y, v, E,
|
1960
|
-
|
1959
|
+
function p(y, v, E, _) {
|
1960
|
+
_ === void 0 && (_ = "&");
|
1961
1961
|
var S = y.replace(uh, ""), w = v && E ? E + " " + v + " { " + S + " }" : S;
|
1962
|
-
return e =
|
1962
|
+
return e = _, r = v, n = new RegExp("\\" + r + "\\b", "g"), s = new RegExp("(\\" + r + "\\b){2,}"), d(E || !v ? "" : v, w);
|
1963
1963
|
}
|
1964
1964
|
return d.use([].concat(c, [function(y, v, E) {
|
1965
1965
|
y === 2 && E.length && E[0].lastIndexOf(r) > 0 && (E[0] = E[0].replace(n, m));
|
@@ -2094,20 +2094,20 @@ var rc = Ke.createContext();
|
|
2094
2094
|
rc.Consumer;
|
2095
2095
|
var ii = {};
|
2096
2096
|
function nc(t, e, r) {
|
2097
|
-
var n = aa(t), s = !ts(t), i = e.attrs, a = i === void 0 ? Cs : i, o = e.componentId, l = o === void 0 ? function(
|
2098
|
-
var w = typeof
|
2097
|
+
var n = aa(t), s = !ts(t), i = e.attrs, a = i === void 0 ? Cs : i, o = e.componentId, l = o === void 0 ? function(_, S) {
|
2098
|
+
var w = typeof _ != "string" ? "sc" : si(_);
|
2099
2099
|
ii[w] = (ii[w] || 0) + 1;
|
2100
2100
|
var b = w + "-" + ec("5.3.9" + w + ii[w]);
|
2101
2101
|
return S ? S + "-" + b : b;
|
2102
|
-
}(e.displayName, e.parentComponentId) : o, c = e.displayName, d = c === void 0 ? function(
|
2103
|
-
return ts(
|
2102
|
+
}(e.displayName, e.parentComponentId) : o, c = e.displayName, d = c === void 0 ? function(_) {
|
2103
|
+
return ts(_) ? "styled." + _ : "Styled(" + Ri(_) + ")";
|
2104
2104
|
}(t) : c, h = e.displayName && e.componentId ? si(e.displayName) + "-" + e.componentId : e.componentId || l, u = n && t.attrs ? Array.prototype.concat(t.attrs, a).filter(Boolean) : a, m = e.shouldForwardProp;
|
2105
|
-
n && t.shouldForwardProp && (m = e.shouldForwardProp ? function(
|
2106
|
-
return t.shouldForwardProp(
|
2105
|
+
n && t.shouldForwardProp && (m = e.shouldForwardProp ? function(_, S, w) {
|
2106
|
+
return t.shouldForwardProp(_, S, w) && e.shouldForwardProp(_, S, w);
|
2107
2107
|
} : t.shouldForwardProp);
|
2108
|
-
var p, y = new ch(r, h, n ? t.componentStyle : void 0), v = y.isStatic && a.length === 0, E = function(
|
2108
|
+
var p, y = new ch(r, h, n ? t.componentStyle : void 0), v = y.isStatic && a.length === 0, E = function(_, S) {
|
2109
2109
|
return function(w, b, V, M) {
|
2110
|
-
var
|
2110
|
+
var C = w.attrs, x = w.componentStyle, k = w.defaultProps, P = w.foldedComponentIds, R = w.shouldForwardProp, A = w.styledComponentId, q = w.target;
|
2111
2111
|
process.env.NODE_ENV !== "production" && Oa(A);
|
2112
2112
|
var G = function(ae, L, ye) {
|
2113
2113
|
ae === void 0 && (ae = Tr);
|
@@ -2117,35 +2117,35 @@ function nc(t, e, r) {
|
|
2117
2117
|
for (xe in In(Me) && (Me = Me(re)), Me)
|
2118
2118
|
re[xe] = Oe[xe] = xe === "className" ? (Z = Oe[xe], Ve = Me[xe], Z && Ve ? Z + " " + Ve : Z || Ve) : Me[xe];
|
2119
2119
|
}), [re, Oe];
|
2120
|
-
}(xh(b, Bt(rc), k) || Tr, b,
|
2120
|
+
}(xh(b, Bt(rc), k) || Tr, b, C), Y = G[0], Q = G[1], te = function(ae, L, ye, re) {
|
2121
2121
|
var Oe = mh(), $e = ph(), xe = L ? ae.generateAndInjectStyles(Tr, Oe, $e) : ae.generateAndInjectStyles(ye, Oe, $e);
|
2122
2122
|
return process.env.NODE_ENV !== "production" && Oa(xe), process.env.NODE_ENV !== "production" && !L && re && re(xe), xe;
|
2123
2123
|
}(x, M, Y, process.env.NODE_ENV !== "production" ? w.warnTooManyClasses : void 0), N = V, $ = Q.$as || b.$as || Q.as || b.as || q, F = ts($), B = Q !== b ? mr({}, b, {}, Q) : b, H = {};
|
2124
2124
|
for (var J in B)
|
2125
2125
|
J[0] !== "$" && J !== "as" && (J === "forwardedAs" ? H.as = B[J] : (R ? R(J, Ba, $) : !F || Ba(J)) && (H[J] = B[J]));
|
2126
2126
|
return b.style && Q.style !== b.style && (H.style = mr({}, b.style, {}, Q.style)), H.className = Array.prototype.concat(P, A, te !== A ? te : null, b.className, Q.className).filter(Boolean).join(" "), H.ref = N, vl($, H);
|
2127
|
-
}(p,
|
2127
|
+
}(p, _, S, v);
|
2128
2128
|
};
|
2129
|
-
return E.displayName = d, (p = Ke.forwardRef(E)).attrs = u, p.componentStyle = y, p.displayName = d, p.shouldForwardProp = m, p.foldedComponentIds = n ? Array.prototype.concat(t.foldedComponentIds, t.styledComponentId) : Cs, p.styledComponentId = h, p.target = n ? t.target : t, p.withComponent = function(
|
2129
|
+
return E.displayName = d, (p = Ke.forwardRef(E)).attrs = u, p.componentStyle = y, p.displayName = d, p.shouldForwardProp = m, p.foldedComponentIds = n ? Array.prototype.concat(t.foldedComponentIds, t.styledComponentId) : Cs, p.styledComponentId = h, p.target = n ? t.target : t, p.withComponent = function(_) {
|
2130
2130
|
var S = e.componentId, w = function(V, M) {
|
2131
2131
|
if (V == null)
|
2132
2132
|
return {};
|
2133
|
-
var
|
2133
|
+
var C, x, k = {}, P = Object.keys(V);
|
2134
2134
|
for (x = 0; x < P.length; x++)
|
2135
|
-
|
2135
|
+
C = P[x], M.indexOf(C) >= 0 || (k[C] = V[C]);
|
2136
2136
|
return k;
|
2137
|
-
}(e, ["componentId"]), b = S && S + "-" + (ts(
|
2138
|
-
return nc(
|
2137
|
+
}(e, ["componentId"]), b = S && S + "-" + (ts(_) ? _ : si(Ri(_)));
|
2138
|
+
return nc(_, mr({}, w, { attrs: u, componentId: b }), r);
|
2139
2139
|
}, Object.defineProperty(p, "defaultProps", { get: function() {
|
2140
2140
|
return this._foldedDefaultProps;
|
2141
|
-
}, set: function(
|
2142
|
-
this._foldedDefaultProps = n ? tc({}, t.defaultProps,
|
2143
|
-
} }), process.env.NODE_ENV !== "production" && (wh(d, h), p.warnTooManyClasses = function(
|
2141
|
+
}, set: function(_) {
|
2142
|
+
this._foldedDefaultProps = n ? tc({}, t.defaultProps, _) : _;
|
2143
|
+
} }), process.env.NODE_ENV !== "production" && (wh(d, h), p.warnTooManyClasses = function(_, S) {
|
2144
2144
|
var w = {}, b = !1;
|
2145
2145
|
return function(V) {
|
2146
2146
|
if (!b && (w[V] = !0, Object.keys(w).length >= 200)) {
|
2147
2147
|
var M = S ? ' with the id of "' + S + '"' : "";
|
2148
|
-
console.warn("Over 200 classes were generated for component " +
|
2148
|
+
console.warn("Over 200 classes were generated for component " + _ + M + `.
|
2149
2149
|
Consider using the attrs method, together with a style object for frequently changed styles.
|
2150
2150
|
Example:
|
2151
2151
|
const Component = styled.div.attrs(props => ({
|
@@ -2302,11 +2302,11 @@ var zr = function(t) {
|
|
2302
2302
|
return rs.get(t);
|
2303
2303
|
if (cc(t))
|
2304
2304
|
return rs.set(t, no), no;
|
2305
|
-
var r = getComputedStyle(t), n = la(t) && t.ownerSVGElement && t.getBBox(), s = !Vh && r.boxSizing === "border-box", i = Mh.test(r.writingMode || ""), a = !n && ro.test(r.overflowY || ""), o = !n && ro.test(r.overflowX || ""), l = n ? 0 : Qt(r.paddingTop), c = n ? 0 : Qt(r.paddingRight), d = n ? 0 : Qt(r.paddingBottom), h = n ? 0 : Qt(r.paddingLeft), u = n ? 0 : Qt(r.borderTopWidth), m = n ? 0 : Qt(r.borderRightWidth), p = n ? 0 : Qt(r.borderBottomWidth), y = n ? 0 : Qt(r.borderLeftWidth), v = h + c, E = l + d,
|
2306
|
-
devicePixelContentBoxSize: tn(Math.round(
|
2305
|
+
var r = getComputedStyle(t), n = la(t) && t.ownerSVGElement && t.getBBox(), s = !Vh && r.boxSizing === "border-box", i = Mh.test(r.writingMode || ""), a = !n && ro.test(r.overflowY || ""), o = !n && ro.test(r.overflowX || ""), l = n ? 0 : Qt(r.paddingTop), c = n ? 0 : Qt(r.paddingRight), d = n ? 0 : Qt(r.paddingBottom), h = n ? 0 : Qt(r.paddingLeft), u = n ? 0 : Qt(r.borderTopWidth), m = n ? 0 : Qt(r.borderRightWidth), p = n ? 0 : Qt(r.borderBottomWidth), y = n ? 0 : Qt(r.borderLeftWidth), v = h + c, E = l + d, _ = y + m, S = u + p, w = o ? t.offsetHeight - S - t.clientHeight : 0, b = a ? t.offsetWidth - _ - t.clientWidth : 0, V = s ? v + _ : 0, M = s ? E + S : 0, C = n ? n.width : Qt(r.width) - V - b, x = n ? n.height : Qt(r.height) - M - w, k = C + v + b + _, P = x + E + w + S, R = zr({
|
2306
|
+
devicePixelContentBoxSize: tn(Math.round(C * devicePixelRatio), Math.round(x * devicePixelRatio), i),
|
2307
2307
|
borderBoxSize: tn(k, P, i),
|
2308
|
-
contentBoxSize: tn(
|
2309
|
-
contentRect: new lc(h, l,
|
2308
|
+
contentBoxSize: tn(C, x, i),
|
2309
|
+
contentRect: new lc(h, l, C, x)
|
2310
2310
|
});
|
2311
2311
|
return rs.set(t, R), R;
|
2312
2312
|
}, dc = function(t, e, r) {
|
@@ -3021,8 +3021,8 @@ const Fm = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
3021
3021
|
basename: u
|
3022
3022
|
} = ke.useContext(hn), m, p = !1;
|
3023
3023
|
if (typeof c == "string" && Mm.test(c) && (m = c, Fm)) {
|
3024
|
-
let
|
3025
|
-
S.origin ===
|
3024
|
+
let _ = new URL(window.location.href), S = c.startsWith("//") ? new URL(_.protocol + c) : new URL(c), w = cm(S.pathname, u);
|
3025
|
+
S.origin === _.origin && w != null ? c = w + S.search + S.hash : p = !0;
|
3026
3026
|
}
|
3027
3027
|
let y = Cm(c, {
|
3028
3028
|
relative: s
|
@@ -3033,8 +3033,8 @@ const Fm = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
3033
3033
|
preventScrollReset: d,
|
3034
3034
|
relative: s
|
3035
3035
|
});
|
3036
|
-
function E(
|
3037
|
-
n && n(
|
3036
|
+
function E(_) {
|
3037
|
+
n && n(_), _.defaultPrevented || v(_);
|
3038
3038
|
}
|
3039
3039
|
return (
|
3040
3040
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
@@ -3062,13 +3062,13 @@ const Vm = /* @__PURE__ */ ke.forwardRef(function(e, r) {
|
|
3062
3062
|
navigator: p
|
3063
3063
|
} = ke.useContext(hn), y = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, v = u.pathname, E = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
|
3064
3064
|
s || (v = v.toLowerCase(), E = E ? E.toLowerCase() : null, y = y.toLowerCase());
|
3065
|
-
let
|
3065
|
+
let _ = v === y || !a && v.startsWith(y) && v.charAt(y.length) === "/", S = E != null && (E === y || !a && E.startsWith(y) && E.charAt(y.length) === "/"), w = _ ? n : void 0, b;
|
3066
3066
|
typeof i == "function" ? b = i({
|
3067
|
-
isActive:
|
3067
|
+
isActive: _,
|
3068
3068
|
isPending: S
|
3069
|
-
}) : b = [i,
|
3069
|
+
}) : b = [i, _ ? "active" : null, S ? "pending" : null].filter(Boolean).join(" ");
|
3070
3070
|
let V = typeof o == "function" ? o({
|
3071
|
-
isActive:
|
3071
|
+
isActive: _,
|
3072
3072
|
isPending: S
|
3073
3073
|
}) : o;
|
3074
3074
|
return /* @__PURE__ */ ke.createElement(ln, Br({}, d, {
|
@@ -3078,7 +3078,7 @@ const Vm = /* @__PURE__ */ ke.forwardRef(function(e, r) {
|
|
3078
3078
|
style: V,
|
3079
3079
|
to: l
|
3080
3080
|
}), typeof c == "function" ? c({
|
3081
|
-
isActive:
|
3081
|
+
isActive: _,
|
3082
3082
|
isPending: S
|
3083
3083
|
}) : c);
|
3084
3084
|
});
|
@@ -3104,9 +3104,9 @@ const wc = /* @__PURE__ */ ke.forwardRef((t, e) => {
|
|
3104
3104
|
if (a && a(v), v.defaultPrevented)
|
3105
3105
|
return;
|
3106
3106
|
v.preventDefault();
|
3107
|
-
let E = v.nativeEvent.submitter,
|
3107
|
+
let E = v.nativeEvent.submitter, _ = (E == null ? void 0 : E.getAttribute("formmethod")) || s;
|
3108
3108
|
u(E || v.currentTarget, {
|
3109
|
-
method:
|
3109
|
+
method: _,
|
3110
3110
|
replace: n,
|
3111
3111
|
relative: c,
|
3112
3112
|
preventScrollReset: d
|
@@ -3215,7 +3215,7 @@ function ha(t) {
|
|
3215
3215
|
(w = t.onOpen) == null || w.call(t, e ?? "default", d);
|
3216
3216
|
}, [d, e, t]), c.length === 0)
|
3217
3217
|
return /* @__PURE__ */ f.jsx(f.Fragment, {});
|
3218
|
-
const p = r, y = p ? /* @__PURE__ */ f.jsx(p, {}) : e, v = l === mt.primary || u && !!(n != null && n.length), E = l === mt.primary && !u && !!(n != null && n.length),
|
3218
|
+
const p = r, y = p ? /* @__PURE__ */ f.jsx(p, {}) : e, v = l === mt.primary || u && !!(n != null && n.length), E = l === mt.primary && !u && !!(n != null && n.length), _ = e || p ? /* @__PURE__ */ f.jsx(
|
3219
3219
|
xl,
|
3220
3220
|
{
|
3221
3221
|
id: "toggle-dropdown",
|
@@ -3241,7 +3241,7 @@ function ha(t) {
|
|
3241
3241
|
Sl,
|
3242
3242
|
{
|
3243
3243
|
onSelect: () => h(!1),
|
3244
|
-
toggle:
|
3244
|
+
toggle: _,
|
3245
3245
|
isOpen: d,
|
3246
3246
|
isPlain: !e || i,
|
3247
3247
|
dropdownItems: c.map((w, b) => /* @__PURE__ */ f.jsx(
|
@@ -3665,8 +3665,8 @@ function Rr(t) {
|
|
3665
3665
|
placeholderText: h,
|
3666
3666
|
...u
|
3667
3667
|
} = t, [m, p] = pe(!1), y = me(() => p((E) => !E), []), v = me(
|
3668
|
-
(E,
|
3669
|
-
typeof
|
3668
|
+
(E, _) => {
|
3669
|
+
typeof _ == "string" ? r == null || r(E, _) : r == null || r(E, _.toString()), p(!1);
|
3670
3670
|
},
|
3671
3671
|
[r]
|
3672
3672
|
);
|
@@ -7521,11 +7521,11 @@ class _e {
|
|
7521
7521
|
let p, y, v = Vo(s, i);
|
7522
7522
|
m ? (p = ty, y = Qg, v = Zi(v)) : o ? (p = ry, y = ey, v = pi(v)) : (p = _u, y = Eu);
|
7523
7523
|
let E = !1;
|
7524
|
-
for (const
|
7525
|
-
const x = a[
|
7526
|
-
Ae(x) ? E ? a[
|
7524
|
+
for (const C of p) {
|
7525
|
+
const x = a[C];
|
7526
|
+
Ae(x) ? E ? a[C] = y[C] : a[C] = v[C] : E = !0;
|
7527
7527
|
}
|
7528
|
-
const
|
7528
|
+
const _ = m ? Jg(a) : o ? Xg(a) : xu(a), S = _ || Su(a);
|
7529
7529
|
if (S)
|
7530
7530
|
return _e.invalid(S);
|
7531
7531
|
const w = m ? Ao(a) : o ? Fo(a) : a, [b, V] = gs(w, i, n), M = new _e({
|
@@ -9322,46 +9322,46 @@ function gy(t) {
|
|
9322
9322
|
}
|
9323
9323
|
function yy(t, e, r, n, s, i, a, o) {
|
9324
9324
|
const l = De(() => {
|
9325
|
-
let E,
|
9325
|
+
let E, _, S;
|
9326
9326
|
const w = [];
|
9327
9327
|
let b;
|
9328
9328
|
const V = [], M = [];
|
9329
|
-
for (const
|
9330
|
-
switch (
|
9329
|
+
for (const C of t)
|
9330
|
+
switch (C.type) {
|
9331
9331
|
case "description":
|
9332
|
-
S || (S =
|
9332
|
+
S || (S = C);
|
9333
9333
|
break;
|
9334
9334
|
case "labels":
|
9335
|
-
b || (b =
|
9335
|
+
b || (b = C);
|
9336
9336
|
break;
|
9337
9337
|
case "count":
|
9338
|
-
w.push(
|
9338
|
+
w.push(C);
|
9339
9339
|
break;
|
9340
9340
|
default:
|
9341
|
-
switch (
|
9341
|
+
switch (C.list) {
|
9342
9342
|
case "name":
|
9343
|
-
E =
|
9343
|
+
E = C;
|
9344
9344
|
break;
|
9345
9345
|
case "subtitle":
|
9346
|
-
|
9346
|
+
_ = C;
|
9347
9347
|
break;
|
9348
9348
|
case "description":
|
9349
|
-
S =
|
9349
|
+
S = C;
|
9350
9350
|
break;
|
9351
9351
|
case "hidden":
|
9352
9352
|
break;
|
9353
9353
|
case "secondary":
|
9354
|
-
M.push(
|
9354
|
+
M.push(C);
|
9355
9355
|
break;
|
9356
9356
|
default:
|
9357
|
-
V.push(
|
9357
|
+
V.push(C);
|
9358
9358
|
break;
|
9359
9359
|
}
|
9360
9360
|
break;
|
9361
9361
|
}
|
9362
9362
|
return {
|
9363
9363
|
nameColumn: E,
|
9364
|
-
subtitleColumn:
|
9364
|
+
subtitleColumn: _,
|
9365
9365
|
descriptionColumn: S,
|
9366
9366
|
countColumns: w,
|
9367
9367
|
primaryColumns: V,
|
@@ -9384,13 +9384,13 @@ function yy(t, e, r, n, s, i, a, o) {
|
|
9384
9384
|
} = l;
|
9385
9385
|
return me(
|
9386
9386
|
(E) => {
|
9387
|
-
const
|
9388
|
-
return /* @__PURE__ */ f.jsx(kl, { "aria-labelledby": `data-list-${
|
9387
|
+
const _ = e(E), S = r == null ? void 0 : r(E);
|
9388
|
+
return /* @__PURE__ */ f.jsx(kl, { "aria-labelledby": `data-list-${_}`, isExpanded: S, children: /* @__PURE__ */ f.jsxs(jl, { children: [
|
9389
9389
|
o && /* @__PURE__ */ f.jsx(
|
9390
9390
|
Ol,
|
9391
9391
|
{
|
9392
|
-
"aria-labelledby": `data-list-check-${
|
9393
|
-
name: `data-list-check-${
|
9392
|
+
"aria-labelledby": `data-list-check-${_}`,
|
9393
|
+
name: `data-list-check-${_}`,
|
9394
9394
|
isChecked: r == null ? void 0 : r(E),
|
9395
9395
|
onClick: () => c(E)
|
9396
9396
|
}
|
@@ -9403,7 +9403,7 @@ function yy(t, e, r, n, s, i, a, o) {
|
|
9403
9403
|
/* @__PURE__ */ f.jsxs(gr, { alignItems: { default: "alignItemsCenter" }, children: [
|
9404
9404
|
(d == null ? void 0 : d.icon) && /* @__PURE__ */ f.jsx(xa, { size: "xl", children: d == null ? void 0 : d.icon(E) }),
|
9405
9405
|
/* @__PURE__ */ f.jsxs(Tn, { children: [
|
9406
|
-
/* @__PURE__ */ f.jsx(Vr, { headingLevel: "h2", style: { marginTop: -4, fontWeight: "bold" }, children: /* @__PURE__ */ f.jsx("span", { id: `data-list-${
|
9406
|
+
/* @__PURE__ */ f.jsx(Vr, { headingLevel: "h2", style: { marginTop: -4, fontWeight: "bold" }, children: /* @__PURE__ */ f.jsx("span", { id: `data-list-${_}`, children: /* @__PURE__ */ f.jsx(_t, { column: d, item: E }) }) }),
|
9407
9407
|
h ? /* @__PURE__ */ f.jsx(Nn, { component: "small", style: { opacity: 0.7 }, children: /* @__PURE__ */ f.jsx(_t, { column: h, item: E }) }) : a && /* @__PURE__ */ f.jsx(Nn, { component: "small", style: { opacity: 0.7 }, children: a })
|
9408
9408
|
] })
|
9409
9409
|
] }),
|
@@ -9464,7 +9464,7 @@ function yy(t, e, r, n, s, i, a, o) {
|
|
9464
9464
|
)
|
9465
9465
|
}
|
9466
9466
|
)
|
9467
|
-
] }) },
|
9467
|
+
] }) }, _);
|
9468
9468
|
},
|
9469
9469
|
[
|
9470
9470
|
e,
|
@@ -9514,10 +9514,10 @@ function wy(t) {
|
|
9514
9514
|
} = t, m = ir("md"), { viewType: p, setViewType: y } = t;
|
9515
9515
|
let { toolbarActions: v } = t;
|
9516
9516
|
v = v ?? [];
|
9517
|
-
const E = me((k, P) => s(P), [s]),
|
9517
|
+
const E = me((k, P) => s(P), [s]), _ = me(
|
9518
9518
|
(k, P) => i(P),
|
9519
9519
|
[i]
|
9520
|
-
), S = a !== void 0, w = v !== void 0 && v.length > 0, b = t.showSelect === !0 || o !== void 0 && v && v.find((k) => Ze.bulk === k.type), V = b || S || w, [M,
|
9520
|
+
), S = a !== void 0, w = v !== void 0 && v.length > 0, b = t.showSelect === !0 || o !== void 0 && v && v.find((k) => Ze.bulk === k.type), V = b || S || w, [M, C] = pe(
|
9521
9521
|
() => a && (a == null ? void 0 : a.length) > 0 ? a[0].key : ""
|
9522
9522
|
);
|
9523
9523
|
let x = 0;
|
@@ -9545,7 +9545,7 @@ function wy(t) {
|
|
9545
9545
|
Rr,
|
9546
9546
|
{
|
9547
9547
|
id: "filter",
|
9548
|
-
onSelect: (k, P) =>
|
9548
|
+
onSelect: (k, P) => C(P.toString()),
|
9549
9549
|
value: M,
|
9550
9550
|
placeholderText: "",
|
9551
9551
|
children: a.map((k) => /* @__PURE__ */ f.jsx(Pt, { value: k.key, children: /* @__PURE__ */ f.jsxs(
|
@@ -9695,7 +9695,7 @@ function wy(t) {
|
|
9695
9695
|
perPage: n,
|
9696
9696
|
page: r,
|
9697
9697
|
onSetPage: E,
|
9698
|
-
onPerPageSelect:
|
9698
|
+
onPerPageSelect: _,
|
9699
9699
|
style: { marginTop: -8, marginBottom: -8 }
|
9700
9700
|
}
|
9701
9701
|
) })
|
@@ -9851,30 +9851,30 @@ function Ey(t) {
|
|
9851
9851
|
onSelect: m,
|
9852
9852
|
unselectAll: p,
|
9853
9853
|
expandedRow: y
|
9854
|
-
} = t, [v] = xt(), E = t.showSelect || (c == null ? void 0 : c.find((
|
9854
|
+
} = t, [v] = xt(), E = t.showSelect || (c == null ? void 0 : c.find((C) => Ze.bulk === C.type)) !== void 0, _ = Zt(null), [S, w] = pe({
|
9855
9855
|
left: 0,
|
9856
9856
|
right: 0,
|
9857
9857
|
top: 0,
|
9858
9858
|
bottom: 0
|
9859
|
-
}), b = me((
|
9860
|
-
|
9861
|
-
top:
|
9862
|
-
bottom:
|
9863
|
-
left:
|
9864
|
-
right:
|
9859
|
+
}), b = me((C) => {
|
9860
|
+
C && w({
|
9861
|
+
top: C.scrollTop,
|
9862
|
+
bottom: C.scrollHeight - C.clientHeight - C.scrollTop,
|
9863
|
+
left: C.scrollLeft,
|
9864
|
+
right: C.scrollWidth - C.clientWidth - C.scrollLeft
|
9865
9865
|
});
|
9866
9866
|
}, []), V = me(
|
9867
|
-
(
|
9867
|
+
(C) => b(C.currentTarget),
|
9868
9868
|
[b]
|
9869
9869
|
);
|
9870
|
-
Us(
|
9870
|
+
Us(_, () => b(_.current)), je(() => b(_.current), [b]);
|
9871
9871
|
const M = Vn();
|
9872
9872
|
return /* @__PURE__ */ f.jsxs(
|
9873
9873
|
"div",
|
9874
9874
|
{
|
9875
9875
|
className: "pf-c-scroll-inner-wrapper",
|
9876
9876
|
style: { height: "100%", marginBottom: -1 },
|
9877
|
-
ref:
|
9877
|
+
ref: _,
|
9878
9878
|
onScroll: V,
|
9879
9879
|
children: [
|
9880
9880
|
/* @__PURE__ */ f.jsxs(
|
@@ -9896,15 +9896,15 @@ function Ey(t) {
|
|
9896
9896
|
onSelect: m
|
9897
9897
|
}
|
9898
9898
|
),
|
9899
|
-
/* @__PURE__ */ f.jsx(uf, { children: d === void 0 ? new Array(h).fill(0).map((
|
9899
|
+
/* @__PURE__ */ f.jsx(uf, { children: d === void 0 ? new Array(h).fill(0).map((C, x) => /* @__PURE__ */ f.jsx(Qr, { children: /* @__PURE__ */ f.jsx(Vt, { children: /* @__PURE__ */ f.jsx("div", { style: { paddingTop: 5, paddingBottom: 5 }, children: /* @__PURE__ */ f.jsx(Cr, { height: "27px" }) }) }) }, x)) : r === void 0 ? new Array(Math.min(h, d)).fill(0).map((C, x) => /* @__PURE__ */ f.jsxs(Qr, { children: [
|
9900
9900
|
E && /* @__PURE__ */ f.jsx(Vt, {}),
|
9901
9901
|
/* @__PURE__ */ f.jsx(Vt, { colSpan: e.length, children: /* @__PURE__ */ f.jsx("div", { style: { paddingTop: 5, paddingBottom: 5 }, children: /* @__PURE__ */ f.jsx(Cr, { height: "27px" }) }) })
|
9902
|
-
] }, x)) : r == null ? void 0 : r.map((
|
9902
|
+
] }, x)) : r == null ? void 0 : r.map((C, x) => /* @__PURE__ */ f.jsx(
|
9903
9903
|
Cy,
|
9904
9904
|
{
|
9905
9905
|
columns: e,
|
9906
|
-
item:
|
9907
|
-
isItemSelected: i == null ? void 0 : i(
|
9906
|
+
item: C,
|
9907
|
+
isItemSelected: i == null ? void 0 : i(C),
|
9908
9908
|
isSelectMultiple: a,
|
9909
9909
|
selectItem: n,
|
9910
9910
|
unselectItem: s,
|
@@ -9917,7 +9917,7 @@ function Ey(t) {
|
|
9917
9917
|
onSelect: m,
|
9918
9918
|
expandedRow: y
|
9919
9919
|
},
|
9920
|
-
o ? o(
|
9920
|
+
o ? o(C) : x
|
9921
9921
|
)) })
|
9922
9922
|
]
|
9923
9923
|
}
|
@@ -10045,8 +10045,8 @@ function Cy(t) {
|
|
10045
10045
|
en,
|
10046
10046
|
{
|
10047
10047
|
select: i !== void 0 ? {
|
10048
|
-
onSelect: (E,
|
10049
|
-
|
10048
|
+
onSelect: (E, _) => {
|
10049
|
+
_ ? n == null || n(o) : s == null || s(o);
|
10050
10050
|
},
|
10051
10051
|
isSelected: i
|
10052
10052
|
} : void 0,
|
@@ -10288,11 +10288,11 @@ function X0(t, e, r) {
|
|
10288
10288
|
selectItems: o,
|
10289
10289
|
unselectAll: l,
|
10290
10290
|
allSelected: c
|
10291
|
-
} = Iy(t, e), { sorted: d, sort: h, setSort: u } = ku(t), { filtered: m, setFilterFn: p } = ju(d, e), { searched: y, search: v, setSearch: E, setSearchFn:
|
10291
|
+
} = Iy(t, e), { sorted: d, sort: h, setSort: u } = ku(t), { filtered: m, setFilterFn: p } = ju(d, e), { searched: y, search: v, setSearch: E, setSearchFn: _ } = Ry(
|
10292
10292
|
m,
|
10293
10293
|
e,
|
10294
10294
|
r == null ? void 0 : r.search
|
10295
|
-
), { paged: S, page: w, setPage: b, perPage: V, setPerPage: M } = Qs(y),
|
10295
|
+
), { paged: S, page: w, setPage: b, perPage: V, setPerPage: M } = Qs(y), C = me(() => o(S), [S, o]), x = me(() => o(y), [y, o]);
|
10296
10296
|
return De(
|
10297
10297
|
() => ({
|
10298
10298
|
allSelected: c,
|
@@ -10305,13 +10305,13 @@ function X0(t, e, r) {
|
|
10305
10305
|
searched: y,
|
10306
10306
|
selectAll: x,
|
10307
10307
|
selectItem: s,
|
10308
|
-
selectPage:
|
10308
|
+
selectPage: C,
|
10309
10309
|
selectedItems: n,
|
10310
10310
|
setFilterFn: p,
|
10311
10311
|
setPage: b,
|
10312
10312
|
setPerPage: M,
|
10313
10313
|
setSearch: E,
|
10314
|
-
setSearchFn:
|
10314
|
+
setSearchFn: _,
|
10315
10315
|
setSort: u,
|
10316
10316
|
sort: h,
|
10317
10317
|
sorted: d,
|
@@ -10329,13 +10329,13 @@ function X0(t, e, r) {
|
|
10329
10329
|
y,
|
10330
10330
|
x,
|
10331
10331
|
s,
|
10332
|
-
|
10332
|
+
C,
|
10333
10333
|
n,
|
10334
10334
|
p,
|
10335
10335
|
b,
|
10336
10336
|
M,
|
10337
10337
|
E,
|
10338
|
-
|
10338
|
+
_,
|
10339
10339
|
u,
|
10340
10340
|
h,
|
10341
10341
|
d,
|
@@ -10433,17 +10433,17 @@ function Dy(t, e) {
|
|
10433
10433
|
je(() => {
|
10434
10434
|
n((m) => {
|
10435
10435
|
let p = !1;
|
10436
|
-
const y = t ? t.reduce((
|
10436
|
+
const y = t ? t.reduce((_, S) => {
|
10437
10437
|
const w = e(S);
|
10438
|
-
return
|
10438
|
+
return _[w] = S, m[w] && m[w] !== S && (p = !0, m[w] = S), _;
|
10439
10439
|
}, {}) : {}, v = {};
|
10440
|
-
for (const
|
10441
|
-
y[
|
10440
|
+
for (const _ in m)
|
10441
|
+
y[_] || (v[_] = !0);
|
10442
10442
|
const E = Object.keys(v);
|
10443
10443
|
if (E.length) {
|
10444
10444
|
p = !0;
|
10445
|
-
for (const
|
10446
|
-
delete m[
|
10445
|
+
for (const _ of E)
|
10446
|
+
delete m[_];
|
10447
10447
|
}
|
10448
10448
|
return p ? { ...m } : m;
|
10449
10449
|
});
|
@@ -10614,7 +10614,7 @@ function Ay(t) {
|
|
10614
10614
|
onClose: o,
|
10615
10615
|
processingText: l,
|
10616
10616
|
isDanger: c
|
10617
|
-
} = t, [d] = xt(), [h, u] = pe(!0), [m, p] = pe(!1), [y, v] = pe(0), [E,
|
10617
|
+
} = t, [d] = xt(), [h, u] = pe(!0), [m, p] = pe(!1), [y, v] = pe(0), [E, _] = pe(""), [S, w] = pe(), [b] = pe(() => new AbortController()), [V, M] = Wr(), C = me(() => {
|
10618
10618
|
p(!0), b.abort(), u(!1), w((G) => {
|
10619
10619
|
const Y = { ...G };
|
10620
10620
|
for (const Q of r) {
|
@@ -10652,7 +10652,7 @@ function Ay(t) {
|
|
10652
10652
|
...B ?? {},
|
10653
10653
|
[$]: "Unknown error"
|
10654
10654
|
}));
|
10655
|
-
|
10655
|
+
_(d.errorText);
|
10656
10656
|
}
|
10657
10657
|
} finally {
|
10658
10658
|
b.signal.aborted || v(++Q);
|
@@ -10672,10 +10672,10 @@ function Ay(t) {
|
|
10672
10672
|
variant: dn.medium,
|
10673
10673
|
isOpen: !0,
|
10674
10674
|
onClose: () => {
|
10675
|
-
|
10675
|
+
C(), x();
|
10676
10676
|
},
|
10677
10677
|
actions: h ? [
|
10678
|
-
/* @__PURE__ */ f.jsx(Je, { variant: "link", onClick:
|
10678
|
+
/* @__PURE__ */ f.jsx(Je, { variant: "link", onClick: C, children: d.cancelText }, "cancel")
|
10679
10679
|
] : [
|
10680
10680
|
/* @__PURE__ */ f.jsx(Je, { variant: "secondary", onClick: x, children: d.closeText }, "close")
|
10681
10681
|
],
|
@@ -10813,7 +10813,7 @@ function Uy(t) {
|
|
10813
10813
|
isDanger: u
|
10814
10814
|
} = t, [m, p] = Wr(), [y] = xt(), v = me(() => {
|
10815
10815
|
p(void 0), c == null || c();
|
10816
|
-
}, [c, p]), E = De(() => o && r.some(o) ? r.sort((P, R) => vs(o(P), o(R))) : r, [r, o]), { paged:
|
10816
|
+
}, [c, p]), E = De(() => o && r.some(o) ? r.sort((P, R) => vs(o(P), o(R))) : r, [r, o]), { paged: _, page: S, perPage: w, setPage: b, setPerPage: V } = Qs(E), [M, C] = pe(!d), x = De(() => o && r.some(o) ? [
|
10817
10817
|
{
|
10818
10818
|
header: "",
|
10819
10819
|
cell: (P) => o(P) ? /* @__PURE__ */ f.jsx(
|
@@ -10859,7 +10859,7 @@ function Uy(t) {
|
|
10859
10859
|
/* @__PURE__ */ f.jsx(
|
10860
10860
|
Xs,
|
10861
10861
|
{
|
10862
|
-
pageItems:
|
10862
|
+
pageItems: _,
|
10863
10863
|
itemCount: r.length,
|
10864
10864
|
tableColumns: x,
|
10865
10865
|
keyFn: n,
|
@@ -10882,7 +10882,7 @@ function Uy(t) {
|
|
10882
10882
|
id: "confirm",
|
10883
10883
|
label: d,
|
10884
10884
|
isChecked: M,
|
10885
|
-
onChange:
|
10885
|
+
onChange: C
|
10886
10886
|
}
|
10887
10887
|
) })
|
10888
10888
|
] })
|
@@ -11222,23 +11222,23 @@ function hv(t) {
|
|
11222
11222
|
a.options.react && a.options.react.wait !== void 0 && Ji("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
11223
11223
|
var c = bi(bi(bi({}, tv()), a.options.react), e), d = c.useSuspense, h = c.keyPrefix, u = t || i || a.options && a.options.defaultNS;
|
11224
11224
|
u = typeof u == "string" ? [u] : u || ["translation"], a.reportNamespaces.addUsedNamespaces && a.reportNamespaces.addUsedNamespaces(u);
|
11225
|
-
var m = (a.isInitialized || a.initializedStoreOnce) && u.every(function(
|
11226
|
-
return av(
|
11225
|
+
var m = (a.isInitialized || a.initializedStoreOnce) && u.every(function(C) {
|
11226
|
+
return av(C, a, c);
|
11227
11227
|
});
|
11228
11228
|
function p() {
|
11229
11229
|
return a.getFixedT(null, c.nsMode === "fallback" ? u : u[0], h);
|
11230
11230
|
}
|
11231
|
-
var y = pe(p), v = dv(y, 2), E = v[0],
|
11231
|
+
var y = pe(p), v = dv(y, 2), E = v[0], _ = v[1], S = u.join(), w = fv(S), b = Zt(!0);
|
11232
11232
|
je(function() {
|
11233
|
-
var
|
11233
|
+
var C = c.bindI18n, x = c.bindI18nStore;
|
11234
11234
|
b.current = !0, !m && !d && Zo(a, u, function() {
|
11235
|
-
b.current &&
|
11236
|
-
}), m && w && w !== S && b.current &&
|
11235
|
+
b.current && _(p);
|
11236
|
+
}), m && w && w !== S && b.current && _(p);
|
11237
11237
|
function k() {
|
11238
|
-
b.current &&
|
11238
|
+
b.current && _(p);
|
11239
11239
|
}
|
11240
|
-
return
|
11241
|
-
b.current = !1,
|
11240
|
+
return C && a && a.on(C, k), x && a && a.store.on(x, k), function() {
|
11241
|
+
b.current = !1, C && a && C.split(" ").forEach(function(P) {
|
11242
11242
|
return a.off(P, k);
|
11243
11243
|
}), x && a && x.split(" ").forEach(function(P) {
|
11244
11244
|
return a.store.off(P, k);
|
@@ -11247,14 +11247,14 @@ function hv(t) {
|
|
11247
11247
|
}, [a, S]);
|
11248
11248
|
var V = Zt(!0);
|
11249
11249
|
je(function() {
|
11250
|
-
b.current && !V.current &&
|
11250
|
+
b.current && !V.current && _(p), V.current = !1;
|
11251
11251
|
}, [a, h]);
|
11252
11252
|
var M = [E, a, m];
|
11253
11253
|
if (M.t = E, M.i18n = a, M.ready = m, m || !m && !d)
|
11254
11254
|
return M;
|
11255
|
-
throw new Promise(function(
|
11255
|
+
throw new Promise(function(C) {
|
11256
11256
|
Zo(a, u, function() {
|
11257
|
-
|
11257
|
+
C();
|
11258
11258
|
});
|
11259
11259
|
});
|
11260
11260
|
}
|
@@ -11763,12 +11763,12 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11763
11763
|
value: t,
|
11764
11764
|
message: ""
|
11765
11765
|
}, sl = async (t, e, r, n, s) => {
|
11766
|
-
const { ref: i, refs: a, required: o, maxLength: l, minLength: c, min: d, max: h, pattern: u, validate: m, name: p, valueAsNumber: y, mount: v, disabled: E } = t._f,
|
11766
|
+
const { ref: i, refs: a, required: o, maxLength: l, minLength: c, min: d, max: h, pattern: u, validate: m, name: p, valueAsNumber: y, mount: v, disabled: E } = t._f, _ = ue(e, p);
|
11767
11767
|
if (!v || E)
|
11768
11768
|
return {};
|
11769
11769
|
const S = a ? a[0] : i, w = (R) => {
|
11770
11770
|
n && S.reportValidity && (S.setCustomValidity(nn(R) ? "" : R || ""), S.reportValidity());
|
11771
|
-
}, b = {}, V = Ca(i), M = Wn(i),
|
11771
|
+
}, b = {}, V = Ca(i), M = Wn(i), C = V || M, x = (y || _a(i)) && at(i.value) && at(_) || Is(i) && i.value === "" || _ === "" || Array.isArray(_) && !_.length, k = Uu.bind(null, p, r, b), P = (R, A, q, G = dr.maxLength, Y = dr.minLength) => {
|
11772
11772
|
const Q = R ? A : q;
|
11773
11773
|
b[p] = {
|
11774
11774
|
type: R ? G : Y,
|
@@ -11777,7 +11777,7 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11777
11777
|
...k(R ? G : Y, Q)
|
11778
11778
|
};
|
11779
11779
|
};
|
11780
|
-
if (s ? !Array.isArray(
|
11780
|
+
if (s ? !Array.isArray(_) || !_.length : o && (!C && (x || Et(_)) || nn(_) && !_ || M && !Bu(a).isValid || V && !Wu(a).isValid)) {
|
11781
11781
|
const { value: R, message: A } = ws(o) ? { value: !!o, message: o } : Zr(o);
|
11782
11782
|
if (R && (b[p] = {
|
11783
11783
|
type: dr.required,
|
@@ -11790,24 +11790,24 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11790
11790
|
if (!x && (!Et(d) || !Et(h))) {
|
11791
11791
|
let R, A;
|
11792
11792
|
const q = Zr(h), G = Zr(d);
|
11793
|
-
if (!Et(
|
11794
|
-
const Y = i.valueAsNumber ||
|
11793
|
+
if (!Et(_) && !isNaN(_)) {
|
11794
|
+
const Y = i.valueAsNumber || _ && +_;
|
11795
11795
|
Et(q.value) || (R = Y > q.value), Et(G.value) || (A = Y < G.value);
|
11796
11796
|
} else {
|
11797
|
-
const Y = i.valueAsDate || new Date(
|
11798
|
-
rr(q.value) &&
|
11797
|
+
const Y = i.valueAsDate || new Date(_), Q = ($) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + $), te = i.type == "time", N = i.type == "week";
|
11798
|
+
rr(q.value) && _ && (R = te ? Q(_) > Q(q.value) : N ? _ > q.value : Y > new Date(q.value)), rr(G.value) && _ && (A = te ? Q(_) < Q(G.value) : N ? _ < G.value : Y < new Date(G.value));
|
11799
11799
|
}
|
11800
11800
|
if ((R || A) && (P(!!R, q.message, G.message, dr.max, dr.min), !r))
|
11801
11801
|
return w(b[p].message), b;
|
11802
11802
|
}
|
11803
|
-
if ((l || c) && !x && (rr(
|
11804
|
-
const R = Zr(l), A = Zr(c), q = !Et(R.value) &&
|
11803
|
+
if ((l || c) && !x && (rr(_) || s && Array.isArray(_))) {
|
11804
|
+
const R = Zr(l), A = Zr(c), q = !Et(R.value) && _.length > +R.value, G = !Et(A.value) && _.length < +A.value;
|
11805
11805
|
if ((q || G) && (P(q, R.message, A.message), !r))
|
11806
11806
|
return w(b[p].message), b;
|
11807
11807
|
}
|
11808
|
-
if (u && !x && rr(
|
11808
|
+
if (u && !x && rr(_)) {
|
11809
11809
|
const { value: R, message: A } = Zr(u);
|
11810
|
-
if (Ds(R) && !
|
11810
|
+
if (Ds(R) && !_.match(R) && (b[p] = {
|
11811
11811
|
type: dr.pattern,
|
11812
11812
|
message: A,
|
11813
11813
|
ref: i,
|
@@ -11817,7 +11817,7 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11817
11817
|
}
|
11818
11818
|
if (m) {
|
11819
11819
|
if (_r(m)) {
|
11820
|
-
const R = await m(
|
11820
|
+
const R = await m(_, e), A = nl(R, S);
|
11821
11821
|
if (A && (b[p] = {
|
11822
11822
|
...A,
|
11823
11823
|
...k(dr.validate, A.message)
|
@@ -11828,7 +11828,7 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11828
11828
|
for (const A in m) {
|
11829
11829
|
if (!Mt(R) && !r)
|
11830
11830
|
break;
|
11831
|
-
const q = nl(await m[A](
|
11831
|
+
const q = nl(await m[A](_, e), S, A);
|
11832
11832
|
q && (R = {
|
11833
11833
|
...q,
|
11834
11834
|
...k(A, q.message)
|
@@ -12008,7 +12008,7 @@ function Pv(t = {}, e) {
|
|
12008
12008
|
state: wi()
|
12009
12009
|
}, m = t.resetOptions && t.resetOptions.keepDirtyValues, p = Xo(r.mode), y = Xo(r.reValidateMode), v = r.criteriaMode === Gt.all, E = (j) => (z) => {
|
12010
12010
|
clearTimeout(d), d = setTimeout(j, z);
|
12011
|
-
},
|
12011
|
+
}, _ = async (j) => {
|
12012
12012
|
if (h.isValid || j) {
|
12013
12013
|
const z = r.resolver ? Mt((await x()).errors) : await P(s, !0);
|
12014
12014
|
z !== n.isValid && u.state.next({
|
@@ -12048,7 +12048,7 @@ function Pv(t = {}, e) {
|
|
12048
12048
|
const se = ue(s, j);
|
12049
12049
|
if (se) {
|
12050
12050
|
const K = ue(a, j, at(U) ? ue(i, j) : U);
|
12051
|
-
at(K) || ie && ie.defaultChecked || z ? Qe(a, j, z ? K : $i(se._f)) : Y(j, K), o.mount &&
|
12051
|
+
at(K) || ie && ie.defaultChecked || z ? Qe(a, j, z ? K : $i(se._f)) : Y(j, K), o.mount && _();
|
12052
12052
|
}
|
12053
12053
|
}, M = (j, z, U, ie, se) => {
|
12054
12054
|
let K = !1, he = !1;
|
@@ -12065,7 +12065,7 @@ function Pv(t = {}, e) {
|
|
12065
12065
|
Te || (Qe(n.touchedFields, j, U), Re.touchedFields = n.touchedFields, K = K || h.touchedFields && Te !== U);
|
12066
12066
|
}
|
12067
12067
|
return K && se && u.state.next(Re), K ? Re : {};
|
12068
|
-
},
|
12068
|
+
}, C = (j, z, U, ie) => {
|
12069
12069
|
const se = ue(n.errors, j), K = h.isValid && nn(z) && n.isValid !== z;
|
12070
12070
|
if (t.delayError && U ? (c = E(() => b(j, U)), c(t.delayError)) : (clearTimeout(d), c = null, U ? Qe(n.errors, j, U) : vt(n.errors, j)), (U ? !Ar(se, U) : se) || !Mt(ie) || K) {
|
12071
12071
|
const he = {
|
@@ -12158,13 +12158,13 @@ function Pv(t = {}, e) {
|
|
12158
12158
|
type: j.type,
|
12159
12159
|
values: { ...a }
|
12160
12160
|
}), Ye)
|
12161
|
-
return h.isValid &&
|
12161
|
+
return h.isValid && _(), $t && u.state.next({ name: U, ...Ot ? {} : St });
|
12162
12162
|
if (!ge && Ot && u.state.next({ ...n }), S(!0), r.resolver) {
|
12163
|
-
const { errors:
|
12164
|
-
he = I.error, U = I.name, Re = Mt(
|
12163
|
+
const { errors: T } = await x([U]), D = il(n.errors, s, U), I = il(T, s, D.name || U);
|
12164
|
+
he = I.error, U = I.name, Re = Mt(T);
|
12165
12165
|
} else
|
12166
12166
|
he = (await sl(se, a, v, r.shouldUseNativeValidation))[U], ie = isNaN(Te) || Te === ue(a, U, Te), ie && (he ? Re = !1 : h.isValid && (Re = await P(s, !0)));
|
12167
|
-
ie && (se._f.deps && $(se._f.deps),
|
12167
|
+
ie && (se._f.deps && $(se._f.deps), C(U, Re, he, St));
|
12168
12168
|
}
|
12169
12169
|
}, $ = async (j, z = {}) => {
|
12170
12170
|
let U, ie;
|
@@ -12176,7 +12176,7 @@ function Pv(t = {}, e) {
|
|
12176
12176
|
j ? (ie = (await Promise.all(se.map(async (K) => {
|
12177
12177
|
const he = ue(s, K);
|
12178
12178
|
return await P(he && he._f ? { [K]: he } : he);
|
12179
|
-
}))).every(Boolean), !(!ie && !n.isValid) &&
|
12179
|
+
}))).every(Boolean), !(!ie && !n.isValid) && _()) : ie = U = await P(s);
|
12180
12180
|
return u.state.next({
|
12181
12181
|
...!rr(j) || h.isValid && U !== n.isValid ? {} : { name: j },
|
12182
12182
|
...r.resolver || !j ? { isValid: U } : {},
|
@@ -12218,7 +12218,7 @@ function Pv(t = {}, e) {
|
|
12218
12218
|
}), u.state.next({
|
12219
12219
|
...n,
|
12220
12220
|
...z.keepDirty ? { isDirty: A() } : {}
|
12221
|
-
}), !z.keepIsValid &&
|
12221
|
+
}), !z.keepIsValid && _();
|
12222
12222
|
}, ye = (j, z = {}) => {
|
12223
12223
|
let U = ue(s, j);
|
12224
12224
|
const ie = nn(z.disabled);
|
@@ -12286,7 +12286,7 @@ function Pv(t = {}, e) {
|
|
12286
12286
|
errors: n.errors
|
12287
12287
|
});
|
12288
12288
|
}, $e = (j, z = {}) => {
|
12289
|
-
ue(s, j) && (at(z.defaultValue) ? te(j, ue(i, j)) : (te(j, z.defaultValue), Qe(i, j, z.defaultValue)), z.keepTouched || vt(n.touchedFields, j), z.keepDirty || (vt(n.dirtyFields, j), n.isDirty = z.defaultValue ? A(j, ue(i, j)) : A()), z.keepError || (vt(n.errors, j), h.isValid &&
|
12289
|
+
ue(s, j) && (at(z.defaultValue) ? te(j, ue(i, j)) : (te(j, z.defaultValue), Qe(i, j, z.defaultValue)), z.keepTouched || vt(n.touchedFields, j), z.keepDirty || (vt(n.dirtyFields, j), n.isDirty = z.defaultValue ? A(j, ue(i, j)) : A()), z.keepError || (vt(n.errors, j), h.isValid && _()), u.state.next({ ...n }));
|
12290
12290
|
}, xe = (j, z = {}) => {
|
12291
12291
|
const U = j || i, ie = fr(U), se = j && !Mt(j) ? ie : i;
|
12292
12292
|
if (z.keepDefaultValues || (i = U), !z.keepValues) {
|
@@ -12357,7 +12357,7 @@ function Pv(t = {}, e) {
|
|
12357
12357
|
_executeSchema: x,
|
12358
12358
|
_getWatch: q,
|
12359
12359
|
_getDirty: A,
|
12360
|
-
_updateValid:
|
12360
|
+
_updateValid: _,
|
12361
12361
|
_removeUnmounted: R,
|
12362
12362
|
_updateFieldArray: w,
|
12363
12363
|
_getFieldArray: G,
|
@@ -12751,7 +12751,7 @@ function lb(t) {
|
|
12751
12751
|
control: y,
|
12752
12752
|
setValue: v,
|
12753
12753
|
trigger: E,
|
12754
|
-
formState: { isSubmitting:
|
12754
|
+
formState: { isSubmitting: _, isValidating: S }
|
12755
12755
|
} = Jt(), [w] = xt();
|
12756
12756
|
return /* @__PURE__ */ f.jsx(
|
12757
12757
|
Hr,
|
@@ -12759,7 +12759,7 @@ function lb(t) {
|
|
12759
12759
|
name: e,
|
12760
12760
|
control: y,
|
12761
12761
|
shouldUnregister: !0,
|
12762
|
-
render: ({ field: { onChange: b, value: V, name: M }, fieldState: { error:
|
12762
|
+
render: ({ field: { onChange: b, value: V, name: M }, fieldState: { error: C } }) => /* @__PURE__ */ f.jsx(
|
12763
12763
|
yv,
|
12764
12764
|
{
|
12765
12765
|
...m,
|
@@ -12768,8 +12768,8 @@ function lb(t) {
|
|
12768
12768
|
id: d ?? M.split(".").join("-"),
|
12769
12769
|
value: V,
|
12770
12770
|
onChange: b,
|
12771
|
-
helperTextInvalid:
|
12772
|
-
isReadOnly: r ||
|
12771
|
+
helperTextInvalid: C != null && C.message ? o && S ? w.validating : C == null ? void 0 : C.message : void 0,
|
12772
|
+
isReadOnly: r || _,
|
12773
12773
|
minLength: void 0,
|
12774
12774
|
maxLength: void 0,
|
12775
12775
|
children: l && /* @__PURE__ */ f.jsx(
|
@@ -12786,7 +12786,7 @@ function lb(t) {
|
|
12786
12786
|
}
|
12787
12787
|
}, l),
|
12788
12788
|
"aria-label": "Options menu",
|
12789
|
-
isDisabled:
|
12789
|
+
isDisabled: _,
|
12790
12790
|
children: /* @__PURE__ */ f.jsx(na, {})
|
12791
12791
|
}
|
12792
12792
|
)
|
@@ -13311,7 +13311,7 @@ var ve = et(function(t, e) {
|
|
13311
13311
|
class E extends m {
|
13312
13312
|
}
|
13313
13313
|
E.kind = "for";
|
13314
|
-
class
|
13314
|
+
class _ extends E {
|
13315
13315
|
constructor($) {
|
13316
13316
|
super(), this.iteration = $;
|
13317
13317
|
}
|
@@ -13387,7 +13387,7 @@ var ve = et(function(t, e) {
|
|
13387
13387
|
return this.catch && k($, this.catch.names), this.finally && k($, this.finally.names), $;
|
13388
13388
|
}
|
13389
13389
|
}
|
13390
|
-
class
|
13390
|
+
class C extends m {
|
13391
13391
|
constructor($) {
|
13392
13392
|
super(), this.error = $;
|
13393
13393
|
}
|
@@ -13395,7 +13395,7 @@ var ve = et(function(t, e) {
|
|
13395
13395
|
return `catch(${this.error})` + super.render($);
|
13396
13396
|
}
|
13397
13397
|
}
|
13398
|
-
|
13398
|
+
C.kind = "catch";
|
13399
13399
|
class x extends m {
|
13400
13400
|
render($) {
|
13401
13401
|
return "finally" + super.render($);
|
@@ -13501,7 +13501,7 @@ var ve = et(function(t, e) {
|
|
13501
13501
|
return this._blockNode(N), $ && this.code($).endFor(), this;
|
13502
13502
|
}
|
13503
13503
|
for(N, $) {
|
13504
|
-
return this._for(new
|
13504
|
+
return this._for(new _(N), $);
|
13505
13505
|
}
|
13506
13506
|
forRange(N, $, F, B, H = this.opts.es5 ? Ft.varKinds.var : Ft.varKinds.let) {
|
13507
13507
|
const J = this._scope.toName(N);
|
@@ -13544,9 +13544,9 @@ var ve = et(function(t, e) {
|
|
13544
13544
|
const B = new M();
|
13545
13545
|
if (this._blockNode(B), this.code(N), $) {
|
13546
13546
|
const H = this.name("e");
|
13547
|
-
this._currNode = B.catch = new
|
13547
|
+
this._currNode = B.catch = new C(H), $(H);
|
13548
13548
|
}
|
13549
|
-
return F && (this._currNode = B.finally = new x(), this.code(F)), this._endBlockNode(
|
13549
|
+
return F && (this._currNode = B.finally = new x(), this.code(F)), this._endBlockNode(C, x);
|
13550
13550
|
}
|
13551
13551
|
throw(N) {
|
13552
13552
|
return this._leafNode(new d(N));
|
@@ -13641,8 +13641,8 @@ var ve = et(function(t, e) {
|
|
13641
13641
|
return u.replace(/~1/g, "/").replace(/~0/g, "~");
|
13642
13642
|
}
|
13643
13643
|
function a({ mergeNames: u, mergeToName: m, mergeValues: p, resultToName: y }) {
|
13644
|
-
return (v, E,
|
13645
|
-
const w =
|
13644
|
+
return (v, E, _, S) => {
|
13645
|
+
const w = _ === void 0 ? E : _ instanceof g.Name ? (E instanceof g.Name ? u(v, E, _) : m(v, E, _), _) : E instanceof g.Name ? (m(v, _, E), E) : p(E, _);
|
13646
13646
|
return S !== g.Name || w instanceof g.Name ? w : y(v, w);
|
13647
13647
|
};
|
13648
13648
|
}
|
@@ -13744,9 +13744,9 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
13744
13744
|
const { createErrors: h } = l.it;
|
13745
13745
|
return h === !1 ? g._`{}` : function(u, m, p = {}) {
|
13746
13746
|
const { gen: y, it: v } = u, E = [a(v, p), o(u, p)];
|
13747
|
-
return function(
|
13748
|
-
const { keyword: V, data: M, schemaValue:
|
13749
|
-
b.push([s.keyword, V], [s.params, typeof S == "function" ? S(
|
13747
|
+
return function(_, { params: S, message: w }, b) {
|
13748
|
+
const { keyword: V, data: M, schemaValue: C, it: x } = _, { opts: k, propertyName: P, topSchemaRef: R, schemaPath: A } = x;
|
13749
|
+
b.push([s.keyword, V], [s.params, typeof S == "function" ? S(_) : S || g._`{}`]), k.messages && b.push([s.message, typeof w == "function" ? w(_) : w]), k.verbose && b.push([s.schema, C], [s.parentSchema, g._`${R}${A}`], [X.default.data, M]), P && b.push([s.propertyName, P]);
|
13750
13750
|
}(u, m, E), y.object(...E);
|
13751
13751
|
}(l, c, d);
|
13752
13752
|
}
|
@@ -13816,39 +13816,39 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
13816
13816
|
return d;
|
13817
13817
|
}, e.getJSONTypes = n, e.coerceAndCheckDataType = function(c, d) {
|
13818
13818
|
const { gen: h, data: u, opts: m } = c, p = function(v, E) {
|
13819
|
-
return E ? v.filter((
|
13819
|
+
return E ? v.filter((_) => s.has(_) || E === "array" && _ === "array") : [];
|
13820
13820
|
}(d, m.coerceTypes), y = d.length > 0 && !(p.length === 0 && d.length === 1 && (0, xs.schemaHasRulesForType)(c, d[0]));
|
13821
13821
|
if (y) {
|
13822
13822
|
const v = a(d, u, m.strictNumbers, r.Wrong);
|
13823
13823
|
h.if(v, () => {
|
13824
|
-
p.length ? function(E,
|
13825
|
-
const { gen: w, data: b, opts: V } = E, M = w.let("dataType", g._`typeof ${b}`),
|
13826
|
-
V.coerceTypes === "array" && w.if(g._`${M} == 'object' && Array.isArray(${b}) && ${b}.length == 1`, () => w.assign(b, g._`${b}[0]`).assign(M, g._`typeof ${b}`).if(a(
|
13824
|
+
p.length ? function(E, _, S) {
|
13825
|
+
const { gen: w, data: b, opts: V } = E, M = w.let("dataType", g._`typeof ${b}`), C = w.let("coerced", g._`undefined`);
|
13826
|
+
V.coerceTypes === "array" && w.if(g._`${M} == 'object' && Array.isArray(${b}) && ${b}.length == 1`, () => w.assign(b, g._`${b}[0]`).assign(M, g._`typeof ${b}`).if(a(_, b, V.strictNumbers), () => w.assign(C, b))), w.if(g._`${C} !== undefined`);
|
13827
13827
|
for (const k of S)
|
13828
13828
|
(s.has(k) || k === "array" && V.coerceTypes === "array") && x(k);
|
13829
13829
|
function x(k) {
|
13830
13830
|
switch (k) {
|
13831
13831
|
case "string":
|
13832
|
-
return void w.elseIf(g._`${M} == "number" || ${M} == "boolean"`).assign(
|
13832
|
+
return void w.elseIf(g._`${M} == "number" || ${M} == "boolean"`).assign(C, g._`"" + ${b}`).elseIf(g._`${b} === null`).assign(C, g._`""`);
|
13833
13833
|
case "number":
|
13834
13834
|
return void w.elseIf(g._`${M} == "boolean" || ${b} === null
|
13835
|
-
|| (${M} == "string" && ${b} && ${b} == +${b})`).assign(
|
13835
|
+
|| (${M} == "string" && ${b} && ${b} == +${b})`).assign(C, g._`+${b}`);
|
13836
13836
|
case "integer":
|
13837
13837
|
return void w.elseIf(g._`${M} === "boolean" || ${b} === null
|
13838
|
-
|| (${M} === "string" && ${b} && ${b} == +${b} && !(${b} % 1))`).assign(
|
13838
|
+
|| (${M} === "string" && ${b} && ${b} == +${b} && !(${b} % 1))`).assign(C, g._`+${b}`);
|
13839
13839
|
case "boolean":
|
13840
|
-
return void w.elseIf(g._`${b} === "false" || ${b} === 0 || ${b} === null`).assign(
|
13840
|
+
return void w.elseIf(g._`${b} === "false" || ${b} === 0 || ${b} === null`).assign(C, !1).elseIf(g._`${b} === "true" || ${b} === 1`).assign(C, !0);
|
13841
13841
|
case "null":
|
13842
|
-
return w.elseIf(g._`${b} === "" || ${b} === 0 || ${b} === false`), void w.assign(
|
13842
|
+
return w.elseIf(g._`${b} === "" || ${b} === 0 || ${b} === false`), void w.assign(C, null);
|
13843
13843
|
case "array":
|
13844
13844
|
w.elseIf(g._`${M} === "string" || ${M} === "number"
|
13845
|
-
|| ${M} === "boolean" || ${b} === null`).assign(
|
13845
|
+
|| ${M} === "boolean" || ${b} === null`).assign(C, g._`[${b}]`);
|
13846
13846
|
}
|
13847
13847
|
}
|
13848
|
-
w.else(), l(E), w.endIf(), w.if(g._`${
|
13849
|
-
w.assign(b,
|
13848
|
+
w.else(), l(E), w.endIf(), w.if(g._`${C} !== undefined`, () => {
|
13849
|
+
w.assign(b, C), function({ gen: k, parentData: P, parentDataProperty: R }, A) {
|
13850
13850
|
k.if(g._`${P} !== undefined`, () => k.assign(g._`${P}[${R}]`, A));
|
13851
|
-
}(E,
|
13851
|
+
}(E, C);
|
13852
13852
|
});
|
13853
13853
|
}(c, d, p) : l(c);
|
13854
13854
|
});
|
@@ -13957,9 +13957,9 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
13957
13957
|
}, e.noPropertyInData = i, e.allSchemaProperties = a, e.schemaProperties = function(l, c) {
|
13958
13958
|
return a(c).filter((d) => !(0, fe.alwaysValidSchema)(l, c[d]));
|
13959
13959
|
}, e.callValidateCode = function({ schemaCode: l, data: c, it: { gen: d, topSchemaRef: h, schemaPath: u, errorPath: m }, it: p }, y, v, E) {
|
13960
|
-
const
|
13960
|
+
const _ = E ? g._`${l}, ${c}, ${h}${u}` : c, S = [[X.default.instancePath, (0, g.strConcat)(X.default.instancePath, m)], [X.default.parentData, p.parentData], [X.default.parentDataProperty, p.parentDataProperty], [X.default.rootData, X.default.rootData]];
|
13961
13961
|
p.opts.dynamicRef && S.push([X.default.dynamicAnchors, X.default.dynamicAnchors]);
|
13962
|
-
const w = g._`${
|
13962
|
+
const w = g._`${_}, ${d.object(...S)}`;
|
13963
13963
|
return v !== g.nil ? g._`${y}.call(${v}, ${w})` : g._`${y}(${w})`;
|
13964
13964
|
};
|
13965
13965
|
const o = g._`new RegExp`;
|
@@ -14009,23 +14009,23 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14009
14009
|
}, e.funcKeywordCode = function(s, i) {
|
14010
14010
|
var a;
|
14011
14011
|
const { gen: o, keyword: l, schema: c, parentSchema: d, $data: h, it: u } = s;
|
14012
|
-
(function({ schemaEnv:
|
14013
|
-
if (S.async && !
|
14012
|
+
(function({ schemaEnv: _ }, S) {
|
14013
|
+
if (S.async && !_.$async)
|
14014
14014
|
throw new Error("async keyword in sync schema");
|
14015
14015
|
})(u, i);
|
14016
14016
|
const m = !h && i.compile ? i.compile.call(u.self, c, d, u) : i.validate, p = n(o, l, m), y = o.let("valid");
|
14017
|
-
function v(
|
14018
|
-
o.assign(y, g._`${
|
14017
|
+
function v(_ = i.async ? g._`await ` : g.nil) {
|
14018
|
+
o.assign(y, g._`${_}${(0, nt.callValidateCode)(s, p, u.opts.passContext ? X.default.this : X.default.self, !("compile" in i && !h || i.schema === !1))}`, i.modifying);
|
14019
14019
|
}
|
14020
|
-
function E(
|
14020
|
+
function E(_) {
|
14021
14021
|
var S;
|
14022
|
-
o.if((0, g.not)((S = i.valid) !== null && S !== void 0 ? S : y),
|
14022
|
+
o.if((0, g.not)((S = i.valid) !== null && S !== void 0 ? S : y), _);
|
14023
14023
|
}
|
14024
14024
|
s.block$data(y, function() {
|
14025
14025
|
if (i.errors === !1)
|
14026
14026
|
v(), i.modifying && r(s), E(() => s.error());
|
14027
14027
|
else {
|
14028
|
-
const
|
14028
|
+
const _ = i.async ? function() {
|
14029
14029
|
const S = o.let("ruleErrs", null);
|
14030
14030
|
return o.try(() => v(g._`await `), (w) => o.assign(y, !1).if(g._`${w} instanceof ${u.ValidationError}`, () => o.assign(S, g._`${w}.errors`), () => o.throw(w))), S;
|
14031
14031
|
}() : function() {
|
@@ -14037,7 +14037,7 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14037
14037
|
b.if(g._`Array.isArray(${w})`, () => {
|
14038
14038
|
b.assign(X.default.vErrors, g._`${X.default.vErrors} === null ? ${w} : ${X.default.vErrors}.concat(${w})`).assign(X.default.errors, g._`${X.default.vErrors}.length`), (0, Nt.extendErrors)(S);
|
14039
14039
|
}, () => S.error());
|
14040
|
-
}(s,
|
14040
|
+
}(s, _));
|
14041
14041
|
}
|
14042
14042
|
}), s.ok((a = i.valid) !== null && a !== void 0 ? a : y);
|
14043
14043
|
}, e.validSchemaType = function(s, i, a = !1) {
|
@@ -14187,8 +14187,8 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14187
14187
|
e.getSchemaRefs = function(h, u) {
|
14188
14188
|
if (typeof h == "boolean")
|
14189
14189
|
return {};
|
14190
|
-
const { schemaId: m, uriResolver: p } = this.opts, y = c(h[m] || u), v = { "": y }, E = a(p, y, !1),
|
14191
|
-
return Fv(h, { allKeys: !0 }, (V, M,
|
14190
|
+
const { schemaId: m, uriResolver: p } = this.opts, y = c(h[m] || u), v = { "": y }, E = a(p, y, !1), _ = {}, S = /* @__PURE__ */ new Set();
|
14191
|
+
return Fv(h, { allKeys: !0 }, (V, M, C, x) => {
|
14192
14192
|
if (x === void 0)
|
14193
14193
|
return;
|
14194
14194
|
const k = E + M;
|
@@ -14198,7 +14198,7 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14198
14198
|
throw b(q);
|
14199
14199
|
S.add(q);
|
14200
14200
|
let G = this.refs[q];
|
14201
|
-
return typeof G == "string" && (G = this.refs[G]), typeof G == "object" ? w(V, G.schema, q) : q !== c(k) && (q[0] === "#" ? (w(V,
|
14201
|
+
return typeof G == "string" && (G = this.refs[G]), typeof G == "object" ? w(V, G.schema, q) : q !== c(k) && (q[0] === "#" ? (w(V, _[q], q), _[q] = V) : this.refs[q] = k), q;
|
14202
14202
|
}
|
14203
14203
|
function A(q) {
|
14204
14204
|
if (typeof q == "string") {
|
@@ -14208,10 +14208,10 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14208
14208
|
}
|
14209
14209
|
}
|
14210
14210
|
typeof V[m] == "string" && (P = R.call(this, V[m])), A.call(this, V.$anchor), A.call(this, V.$dynamicAnchor), v[M] = P;
|
14211
|
-
}),
|
14212
|
-
function w(V, M,
|
14211
|
+
}), _;
|
14212
|
+
function w(V, M, C) {
|
14213
14213
|
if (M !== void 0 && !Ta(V, M))
|
14214
|
-
throw b(
|
14214
|
+
throw b(C);
|
14215
14215
|
}
|
14216
14216
|
function b(V) {
|
14217
14217
|
return new Error(`reference "${V}" resolves to more than one schema`);
|
@@ -14220,7 +14220,7 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14220
14220
|
}), Hn = et(function(t, e) {
|
14221
14221
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
14222
14222
|
const r = nr;
|
14223
|
-
function n({ gen: S, validateName: w, schema: b, schemaEnv: V, opts: M },
|
14223
|
+
function n({ gen: S, validateName: w, schema: b, schemaEnv: V, opts: M }, C) {
|
14224
14224
|
M.code.es5 ? S.func(w, g._`${X.default.data}, ${X.default.valCxt}`, V.$async, () => {
|
14225
14225
|
S.code(g._`"use strict"; ${s(b, M)}`), function(x, k) {
|
14226
14226
|
x.if(X.default.valCxt, () => {
|
@@ -14228,10 +14228,10 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14228
14228
|
}, () => {
|
14229
14229
|
x.var(X.default.instancePath, g._`""`), x.var(X.default.parentData, g._`undefined`), x.var(X.default.parentDataProperty, g._`undefined`), x.var(X.default.rootData, X.default.data), k.dynamicRef && x.var(X.default.dynamicAnchors, g._`{}`);
|
14230
14230
|
});
|
14231
|
-
}(S, M), S.code(
|
14231
|
+
}(S, M), S.code(C);
|
14232
14232
|
}) : S.func(w, g._`${X.default.data}, ${function(x) {
|
14233
14233
|
return g._`{${X.default.instancePath}="", ${X.default.parentData}, ${X.default.parentDataProperty}, ${X.default.rootData}=${X.default.data}${x.dynamicRef ? g._`, ${X.default.dynamicAnchors}={}` : g.nil}}={}`;
|
14234
|
-
}(M)}`, V.$async, () => S.code(s(b, M)).code(
|
14234
|
+
}(M)}`, V.$async, () => S.code(s(b, M)).code(C));
|
14235
14235
|
}
|
14236
14236
|
function s(S, w) {
|
14237
14237
|
const b = typeof S == "object" && S[w.schemaId];
|
@@ -14250,8 +14250,8 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14250
14250
|
}
|
14251
14251
|
function o(S) {
|
14252
14252
|
(0, fe.checkUnknownRules)(S), function(w) {
|
14253
|
-
const { schema: b, errSchemaPath: V, opts: M, self:
|
14254
|
-
b.$ref && M.ignoreKeywordsWithRef && (0, fe.schemaHasRulesButRef)(b,
|
14253
|
+
const { schema: b, errSchemaPath: V, opts: M, self: C } = w;
|
14254
|
+
b.$ref && M.ignoreKeywordsWithRef && (0, fe.schemaHasRulesButRef)(b, C.RULES) && C.logger.warn(`$ref: keywords ignored in schema at path "${V}"`);
|
14255
14255
|
}(S);
|
14256
14256
|
}
|
14257
14257
|
function l(S, w) {
|
@@ -14261,20 +14261,20 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14261
14261
|
d(S, b, !(0, nr.coerceAndCheckDataType)(S, b), w);
|
14262
14262
|
}
|
14263
14263
|
function c({ gen: S, schemaEnv: w, schema: b, errSchemaPath: V, opts: M }) {
|
14264
|
-
const
|
14264
|
+
const C = b.$comment;
|
14265
14265
|
if (M.$comment === !0)
|
14266
|
-
S.code(g._`${X.default.self}.logger.log(${
|
14266
|
+
S.code(g._`${X.default.self}.logger.log(${C})`);
|
14267
14267
|
else if (typeof M.$comment == "function") {
|
14268
14268
|
const x = g.str`${V}/$comment`, k = S.scopeValue("root", { ref: w.root });
|
14269
|
-
S.code(g._`${X.default.self}.opts.$comment(${
|
14269
|
+
S.code(g._`${X.default.self}.opts.$comment(${C}, ${x}, ${k}.schema)`);
|
14270
14270
|
}
|
14271
14271
|
}
|
14272
14272
|
function d(S, w, b, V) {
|
14273
|
-
const { gen: M, schema:
|
14273
|
+
const { gen: M, schema: C, data: x, allErrors: k, opts: P, self: R } = S, { RULES: A } = R;
|
14274
14274
|
function q(G) {
|
14275
|
-
(0, xs.shouldUseGroup)(
|
14275
|
+
(0, xs.shouldUseGroup)(C, G) && (G.type ? (M.if((0, r.checkDataType)(G.type, x, P.strictNumbers)), h(S, G), w.length === 1 && w[0] === G.type && b && (M.else(), (0, r.reportTypeError)(S)), M.endIf()) : h(S, G), k || M.if(g._`${X.default.errors} === ${V || 0}`));
|
14276
14276
|
}
|
14277
|
-
!
|
14277
|
+
!C.$ref || !P.ignoreKeywordsWithRef && (0, fe.schemaHasRulesButRef)(C, A) ? (P.jtd || function(G, Y) {
|
14278
14278
|
!G.schemaEnv.meta && G.opts.strictTypes && (function(Q, te) {
|
14279
14279
|
te.length && (Q.dataTypes.length ? (te.forEach((N) => {
|
14280
14280
|
u(Q.dataTypes, N) || m(Q, `type "${N}" not allowed by context "${Q.dataTypes.join(",")}"`);
|
@@ -14303,8 +14303,8 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14303
14303
|
function h(S, w) {
|
14304
14304
|
const { gen: b, schema: V, opts: { useDefaults: M } } = S;
|
14305
14305
|
M && (0, Av.assignDefaults)(S, w.type), b.block(() => {
|
14306
|
-
for (const
|
14307
|
-
(0, xs.shouldUseRule)(V,
|
14306
|
+
for (const C of w.rules)
|
14307
|
+
(0, xs.shouldUseRule)(V, C) && y(S, C.keyword, C.definition, w.type);
|
14308
14308
|
});
|
14309
14309
|
}
|
14310
14310
|
function u(S, w) {
|
@@ -14317,17 +14317,17 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14317
14317
|
a(S) && (o(S), i(S)) ? function(w) {
|
14318
14318
|
const { schema: b, opts: V, gen: M } = w;
|
14319
14319
|
n(w, () => {
|
14320
|
-
V.$comment && b.$comment && c(w), function(
|
14321
|
-
const { schema: x, opts: k } =
|
14322
|
-
x.default !== void 0 && k.useDefaults && k.strictSchema && (0, fe.checkStrictMode)(
|
14323
|
-
}(w), M.let(X.default.vErrors, null), M.let(X.default.errors, 0), V.unevaluated && function(
|
14324
|
-
const { gen: x, validateName: k } =
|
14325
|
-
|
14326
|
-
}(w), l(w), function(
|
14327
|
-
const { gen: x, schemaEnv: k, validateName: P, ValidationError: R, opts: A } =
|
14320
|
+
V.$comment && b.$comment && c(w), function(C) {
|
14321
|
+
const { schema: x, opts: k } = C;
|
14322
|
+
x.default !== void 0 && k.useDefaults && k.strictSchema && (0, fe.checkStrictMode)(C, "default is ignored in the schema root");
|
14323
|
+
}(w), M.let(X.default.vErrors, null), M.let(X.default.errors, 0), V.unevaluated && function(C) {
|
14324
|
+
const { gen: x, validateName: k } = C;
|
14325
|
+
C.evaluated = x.const("evaluated", g._`${k}.evaluated`), x.if(g._`${C.evaluated}.dynamicProps`, () => x.assign(g._`${C.evaluated}.props`, g._`undefined`)), x.if(g._`${C.evaluated}.dynamicItems`, () => x.assign(g._`${C.evaluated}.items`, g._`undefined`));
|
14326
|
+
}(w), l(w), function(C) {
|
14327
|
+
const { gen: x, schemaEnv: k, validateName: P, ValidationError: R, opts: A } = C;
|
14328
14328
|
k.$async ? x.if(g._`${X.default.errors} === 0`, () => x.return(X.default.data), () => x.throw(g._`new ${R}(${X.default.vErrors})`)) : (x.assign(g._`${P}.errors`, X.default.vErrors), A.unevaluated && function({ gen: q, evaluated: G, props: Y, items: Q }) {
|
14329
14329
|
Y instanceof g.Name && q.assign(g._`${G}.props`, Y), Q instanceof g.Name && q.assign(g._`${G}.items`, Q);
|
14330
|
-
}(
|
14330
|
+
}(C), x.return(g._`${X.default.errors} === 0`));
|
14331
14331
|
}(w);
|
14332
14332
|
});
|
14333
14333
|
}(S) : n(S, () => (0, ol.topBoolOrEmptySchema)(S));
|
@@ -14335,7 +14335,7 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14335
14335
|
class p {
|
14336
14336
|
constructor(w, b, V) {
|
14337
14337
|
if ((0, En.validateKeywordUsage)(w, b, V), this.gen = w.gen, this.allErrors = w.allErrors, this.keyword = V, this.data = w.data, this.schema = w.schema[V], this.$data = b.$data && w.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, fe.schemaRefOrVal)(w, this.schema, V, this.$data), this.schemaType = b.schemaType, this.parentSchema = w.schema, this.params = {}, this.it = w, this.def = b, this.$data)
|
14338
|
-
this.schemaCode = w.gen.const("vSchema",
|
14338
|
+
this.schemaCode = w.gen.const("vSchema", _(this.$data, w));
|
14339
14339
|
else if (this.schemaCode = this.schemaValue, !(0, En.validSchemaType)(this.schema, b.schemaType, b.allowUndefined))
|
14340
14340
|
throw new Error(`${V} value must be ${JSON.stringify(b.schemaType)}`);
|
14341
14341
|
("code" in b ? b.trackErrors : b.errors !== !1) && (this.errsCount = w.gen.const("_errs", X.default.errors));
|
@@ -14390,17 +14390,17 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14390
14390
|
check$data(w = g.nil, b = g.nil) {
|
14391
14391
|
if (!this.$data)
|
14392
14392
|
return;
|
14393
|
-
const { gen: V, schemaCode: M, schemaType:
|
14394
|
-
V.if((0, g.or)(g._`${M} === undefined`, b)), w !== g.nil && V.assign(w, !0), (
|
14393
|
+
const { gen: V, schemaCode: M, schemaType: C, def: x } = this;
|
14394
|
+
V.if((0, g.or)(g._`${M} === undefined`, b)), w !== g.nil && V.assign(w, !0), (C.length || x.validateSchema) && (V.elseIf(this.invalid$data()), this.$dataError(), w !== g.nil && V.assign(w, !1)), V.else();
|
14395
14395
|
}
|
14396
14396
|
invalid$data() {
|
14397
|
-
const { gen: w, schemaCode: b, schemaType: V, def: M, it:
|
14397
|
+
const { gen: w, schemaCode: b, schemaType: V, def: M, it: C } = this;
|
14398
14398
|
return (0, g.or)(function() {
|
14399
14399
|
if (V.length) {
|
14400
14400
|
if (!(b instanceof g.Name))
|
14401
14401
|
throw new Error("ajv implementation error");
|
14402
14402
|
const x = Array.isArray(V) ? V : [V];
|
14403
|
-
return g._`${(0, r.checkDataTypes)(x, b,
|
14403
|
+
return g._`${(0, r.checkDataTypes)(x, b, C.opts.strictNumbers, r.DataType.Wrong)}`;
|
14404
14404
|
}
|
14405
14405
|
return g.nil;
|
14406
14406
|
}(), function() {
|
@@ -14415,8 +14415,8 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14415
14415
|
const V = (0, Ei.getSubschema)(this.it, w);
|
14416
14416
|
(0, Ei.extendSubschemaData)(V, this.it, w), (0, Ei.extendSubschemaMode)(V, w);
|
14417
14417
|
const M = { ...this.it, ...V, items: void 0, props: void 0 };
|
14418
|
-
return function(
|
14419
|
-
a(
|
14418
|
+
return function(C, x) {
|
14419
|
+
a(C) && (o(C), i(C)) ? function(k, P) {
|
14420
14420
|
const { schema: R, gen: A, opts: q } = k;
|
14421
14421
|
q.$comment && R.$comment && c(k), function(Y) {
|
14422
14422
|
const Q = Y.schema[Y.opts.schemaId];
|
@@ -14427,7 +14427,7 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14427
14427
|
}(k);
|
14428
14428
|
const G = A.const("_errs", X.default.errors);
|
14429
14429
|
l(k, G), A.var(P, g._`${G} === ${X.default.errors}`);
|
14430
|
-
}(
|
14430
|
+
}(C, x) : (0, ol.boolOrEmptySchema)(C, x);
|
14431
14431
|
}(M, b), M;
|
14432
14432
|
}
|
14433
14433
|
mergeEvaluated(w, b) {
|
@@ -14446,14 +14446,14 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14446
14446
|
}
|
14447
14447
|
e.KeywordCxt = p;
|
14448
14448
|
const v = /^\/(?:[^~]|~0|~1)*$/, E = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
14449
|
-
function
|
14450
|
-
let M,
|
14449
|
+
function _(S, { dataLevel: w, dataNames: b, dataPathArr: V }) {
|
14450
|
+
let M, C;
|
14451
14451
|
if (S === "")
|
14452
14452
|
return X.default.rootData;
|
14453
14453
|
if (S[0] === "/") {
|
14454
14454
|
if (!v.test(S))
|
14455
14455
|
throw new Error(`Invalid JSON-pointer: ${S}`);
|
14456
|
-
M = S,
|
14456
|
+
M = S, C = X.default.rootData;
|
14457
14457
|
} else {
|
14458
14458
|
const R = E.exec(S);
|
14459
14459
|
if (!R)
|
@@ -14466,19 +14466,19 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: Rv }, "__esModule", { v
|
|
14466
14466
|
}
|
14467
14467
|
if (A > w)
|
14468
14468
|
throw new Error(P("data", A));
|
14469
|
-
if (
|
14470
|
-
return
|
14469
|
+
if (C = b[w - A], !M)
|
14470
|
+
return C;
|
14471
14471
|
}
|
14472
|
-
let x =
|
14472
|
+
let x = C;
|
14473
14473
|
const k = M.split("/");
|
14474
14474
|
for (const R of k)
|
14475
|
-
R && (
|
14475
|
+
R && (C = g._`${C}${(0, g.getProperty)((0, fe.unescapeJsonPointer)(R))}`, x = g._`${x} && ${C}`);
|
14476
14476
|
return x;
|
14477
14477
|
function P(R, A) {
|
14478
14478
|
return `Cannot access ${R} ${A} levels up, current level is ${w}`;
|
14479
14479
|
}
|
14480
14480
|
}
|
14481
|
-
e.getData =
|
14481
|
+
e.getData = _;
|
14482
14482
|
});
|
14483
14483
|
class Mv extends Error {
|
14484
14484
|
constructor(e) {
|
@@ -14507,18 +14507,18 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14507
14507
|
const u = (0, ut.getFullPath)(this.opts.uriResolver, d.root.baseId), { es5: m, lines: p } = this.opts.code, { ownProperties: y } = this.opts, v = new g.CodeGen(this.scope, { es5: m, lines: p, ownProperties: y });
|
14508
14508
|
let E;
|
14509
14509
|
d.$async && (E = v.scopeValue("Error", { ref: Qu.default, code: g._`require("ajv/dist/runtime/validation_error").default` }));
|
14510
|
-
const
|
14511
|
-
d.validateName =
|
14512
|
-
const S = { gen: v, allErrors: this.opts.allErrors, data: X.default.data, parentData: X.default.parentData, parentDataProperty: X.default.parentDataProperty, dataNames: [X.default.data], dataPathArr: [g.nil], dataLevel: 0, dataTypes: [], definedProperties: /* @__PURE__ */ new Set(), topSchemaRef: v.scopeValue("schema", this.opts.code.source === !0 ? { ref: d.schema, code: (0, g.stringify)(d.schema) } : { ref: d.schema }), validateName:
|
14510
|
+
const _ = v.scopeName("validate");
|
14511
|
+
d.validateName = _;
|
14512
|
+
const S = { gen: v, allErrors: this.opts.allErrors, data: X.default.data, parentData: X.default.parentData, parentDataProperty: X.default.parentDataProperty, dataNames: [X.default.data], dataPathArr: [g.nil], dataLevel: 0, dataTypes: [], definedProperties: /* @__PURE__ */ new Set(), topSchemaRef: v.scopeValue("schema", this.opts.code.source === !0 ? { ref: d.schema, code: (0, g.stringify)(d.schema) } : { ref: d.schema }), validateName: _, ValidationError: E, schema: d.schema, schemaEnv: d, rootId: u, baseId: d.baseId || u, schemaPath: g.nil, errSchemaPath: d.schemaPath || (this.opts.jtd ? "" : "#"), errorPath: g._`""`, opts: this.opts, self: this };
|
14513
14513
|
let w;
|
14514
14514
|
try {
|
14515
14515
|
this._compilations.add(d), (0, Hn.validateFunctionCode)(S), v.optimize(this.opts.code.optimize);
|
14516
14516
|
const b = v.toString();
|
14517
14517
|
w = `${v.scopeRefs(X.default.scope)}return ${b}`, this.opts.code.process && (w = this.opts.code.process(w, d));
|
14518
14518
|
const V = new Function(`${X.default.self}`, `${X.default.scope}`, w)(this, this.scope.get());
|
14519
|
-
if (this.scope.value(
|
14520
|
-
const { props: M, items:
|
14521
|
-
V.evaluated = { props: M instanceof g.Name ? void 0 : M, items:
|
14519
|
+
if (this.scope.value(_, { ref: V }), V.errors = null, V.schema = d.schema, V.schemaEnv = d, d.$async && (V.$async = !0), this.opts.code.source === !0 && (V.source = { validateName: _, validateCode: b, scopeValues: v._values }), this.opts.unevaluated) {
|
14520
|
+
const { props: M, items: C } = S;
|
14521
|
+
V.evaluated = { props: M instanceof g.Name ? void 0 : M, items: C instanceof g.Name ? void 0 : C, dynamicProps: M instanceof g.Name, dynamicItems: C instanceof g.Name }, V.source && (V.source.evaluated = (0, g.stringify)(V.evaluated));
|
14522
14522
|
}
|
14523
14523
|
return d.validate = V, d;
|
14524
14524
|
} catch (b) {
|
@@ -14554,8 +14554,8 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14554
14554
|
}
|
14555
14555
|
if (typeof (v == null ? void 0 : v.schema) == "object") {
|
14556
14556
|
if (v.validate || n.call(this, v), y === (0, ut.normalizeId)(h)) {
|
14557
|
-
const { schema: E } = v, { schemaId:
|
14558
|
-
return S && (p = (0, ut.resolveUrl)(this.opts.uriResolver, p, S)), new r({ schema: E, schemaId:
|
14557
|
+
const { schema: E } = v, { schemaId: _ } = this.opts, S = E[_];
|
14558
|
+
return S && (p = (0, ut.resolveUrl)(this.opts.uriResolver, p, S)), new r({ schema: E, schemaId: _, root: d, baseId: p });
|
14559
14559
|
}
|
14560
14560
|
return c.call(this, u, v);
|
14561
14561
|
}
|
@@ -14581,10 +14581,10 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14581
14581
|
for (const E of d.fragment.slice(1).split("/")) {
|
14582
14582
|
if (typeof u == "boolean")
|
14583
14583
|
return;
|
14584
|
-
const
|
14585
|
-
if (
|
14584
|
+
const _ = u[(0, fe.unescapeFragment)(E)];
|
14585
|
+
if (_ === void 0)
|
14586
14586
|
return;
|
14587
|
-
const S = typeof (u =
|
14587
|
+
const S = typeof (u = _) == "object" && u[this.opts.schemaId];
|
14588
14588
|
!l.has(E) && S && (h = (0, ut.resolveUrl)(this.opts.uriResolver, h, S));
|
14589
14589
|
}
|
14590
14590
|
let y;
|
@@ -14598,7 +14598,7 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14598
14598
|
}), ll = { $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", description: "Meta-schema for $data reference (JSON AnySchema extension proposal)", type: "object", required: ["$data"], properties: { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, additionalProperties: !1 }, ed = et(function(t, e) {
|
14599
14599
|
(function(r) {
|
14600
14600
|
function n() {
|
14601
|
-
for (var
|
14601
|
+
for (var T = arguments.length, D = Array(T), I = 0; I < T; I++)
|
14602
14602
|
D[I] = arguments[I];
|
14603
14603
|
if (D.length > 1) {
|
14604
14604
|
D[0] = D[0].slice(0, -1);
|
@@ -14608,27 +14608,27 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14608
14608
|
}
|
14609
14609
|
return D[0];
|
14610
14610
|
}
|
14611
|
-
function s(
|
14612
|
-
return "(?:" +
|
14611
|
+
function s(T) {
|
14612
|
+
return "(?:" + T + ")";
|
14613
14613
|
}
|
14614
|
-
function i(
|
14615
|
-
return
|
14614
|
+
function i(T) {
|
14615
|
+
return T === void 0 ? "undefined" : T === null ? "null" : Object.prototype.toString.call(T).split(" ").pop().split("]").shift().toLowerCase();
|
14616
14616
|
}
|
14617
|
-
function a(
|
14618
|
-
return
|
14617
|
+
function a(T) {
|
14618
|
+
return T.toUpperCase();
|
14619
14619
|
}
|
14620
|
-
function o(
|
14621
|
-
var D = "[A-Za-z]", I = "[0-9]", W = n(I, "[A-Fa-f]"), ne = s(s("%[EFef]" + W + "%" + W + W + "%" + W + W) + "|" + s("%[89A-Fa-f]" + W + "%" + W + W) + "|" + s("%" + W + W)), de = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", be = n("[\\:\\/\\?\\#\\[\\]\\@]", de), Ce =
|
14620
|
+
function o(T) {
|
14621
|
+
var D = "[A-Za-z]", I = "[0-9]", W = n(I, "[A-Fa-f]"), ne = s(s("%[EFef]" + W + "%" + W + W + "%" + W + W) + "|" + s("%[89A-Fa-f]" + W + "%" + W + W) + "|" + s("%" + W + W)), de = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", be = n("[\\:\\/\\?\\#\\[\\]\\@]", de), Ce = T ? "[\\uE000-\\uF8FF]" : "[]", Ne = n(D, I, "[\\-\\.\\_\\~]", T ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]");
|
14622
14622
|
s(D + n(D, I, "[\\+\\-\\.]") + "*"), s(s(ne + "|" + n(Ne, de, "[\\:]")) + "*");
|
14623
14623
|
var Le = s(s("25[0-5]") + "|" + s("2[0-4][0-9]") + "|" + s("1[0-9][0-9]") + "|" + s("0?[1-9][0-9]") + "|0?0?" + I), tt = s(Le + "\\." + Le + "\\." + Le + "\\." + Le), Se = s(W + "{1,4}"), Ue = s(s(Se + "\\:" + Se) + "|" + tt), Ge = s(s(Se + "\\:") + "{6}" + Ue), ot = s("\\:\\:" + s(Se + "\\:") + "{5}" + Ue), Be = s(s(Se) + "?\\:\\:" + s(Se + "\\:") + "{4}" + Ue), lt = s(s(s(Se + "\\:") + "{0,1}" + Se) + "?\\:\\:" + s(Se + "\\:") + "{3}" + Ue), yt = s(s(s(Se + "\\:") + "{0,2}" + Se) + "?\\:\\:" + s(Se + "\\:") + "{2}" + Ue), bt = s(s(s(Se + "\\:") + "{0,3}" + Se) + "?\\:\\:" + Se + "\\:" + Ue), ar = s(s(s(Se + "\\:") + "{0,4}" + Se) + "?\\:\\:" + Ue), or = s(s(s(Se + "\\:") + "{0,5}" + Se) + "?\\:\\:" + Se), jt = s(s(s(Se + "\\:") + "{0,6}" + Se) + "?\\:\\:"), Dt = s([Ge, ot, Be, lt, yt, bt, ar, or, jt].join("|")), Wt = s(s(Ne + "|" + ne) + "+");
|
14624
14624
|
s("[vV]" + W + "+\\." + n(Ne, de, "[\\:]") + "+"), s(s(ne + "|" + n(Ne, de)) + "*");
|
14625
14625
|
var Rt = s(ne + "|" + n(Ne, de, "[\\:\\@]"));
|
14626
14626
|
return s(s(ne + "|" + n(Ne, de, "[\\@]")) + "+"), s(s(Rt + "|" + n("[\\/\\?]", Ce)) + "*"), { NOT_SCHEME: new RegExp(n("[^]", D, I, "[\\+\\-\\.]"), "g"), NOT_USERINFO: new RegExp(n("[^\\%\\:]", Ne, de), "g"), NOT_HOST: new RegExp(n("[^\\%\\[\\]\\:]", Ne, de), "g"), NOT_PATH: new RegExp(n("[^\\%\\/\\:\\@]", Ne, de), "g"), NOT_PATH_NOSCHEME: new RegExp(n("[^\\%\\/\\@]", Ne, de), "g"), NOT_QUERY: new RegExp(n("[^\\%]", Ne, de, "[\\:\\@\\/\\?]", Ce), "g"), NOT_FRAGMENT: new RegExp(n("[^\\%]", Ne, de, "[\\:\\@\\/\\?]"), "g"), ESCAPE: new RegExp(n("[^]", Ne, de), "g"), UNRESERVED: new RegExp(Ne, "g"), OTHER_CHARS: new RegExp(n("[^\\%]", Ne, be), "g"), PCT_ENCODED: new RegExp(ne, "g"), IPV4ADDRESS: new RegExp("^(" + tt + ")$"), IPV6ADDRESS: new RegExp("^\\[?(" + Dt + ")" + s(s("\\%25|\\%(?!" + W + "{2})") + "(" + Wt + ")") + "?\\]?$") };
|
14627
14627
|
}
|
14628
|
-
var l = o(!1), c = o(!0), d = function(
|
14629
|
-
if (Array.isArray(
|
14630
|
-
return
|
14631
|
-
if (Symbol.iterator in Object(
|
14628
|
+
var l = o(!1), c = o(!0), d = function(T, D) {
|
14629
|
+
if (Array.isArray(T))
|
14630
|
+
return T;
|
14631
|
+
if (Symbol.iterator in Object(T))
|
14632
14632
|
return function(I, W) {
|
14633
14633
|
var ne = [], de = !0, be = !1, Ce = void 0;
|
14634
14634
|
try {
|
@@ -14645,29 +14645,29 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14645
14645
|
}
|
14646
14646
|
}
|
14647
14647
|
return ne;
|
14648
|
-
}(
|
14648
|
+
}(T, D);
|
14649
14649
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
14650
|
-
}, h = 2147483647, u = 36, m = /^xn--/, p = /[^\0-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, v = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, E = Math.floor,
|
14651
|
-
function S(
|
14652
|
-
throw new RangeError(v[
|
14650
|
+
}, h = 2147483647, u = 36, m = /^xn--/, p = /[^\0-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, v = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, E = Math.floor, _ = String.fromCharCode;
|
14651
|
+
function S(T) {
|
14652
|
+
throw new RangeError(v[T]);
|
14653
14653
|
}
|
14654
|
-
function w(
|
14655
|
-
var I =
|
14656
|
-
return I.length > 1 && (W = I[0] + "@",
|
14654
|
+
function w(T, D) {
|
14655
|
+
var I = T.split("@"), W = "";
|
14656
|
+
return I.length > 1 && (W = I[0] + "@", T = I[1]), W + function(ne, de) {
|
14657
14657
|
for (var be = [], Ce = ne.length; Ce--; )
|
14658
14658
|
be[Ce] = de(ne[Ce]);
|
14659
14659
|
return be;
|
14660
|
-
}((
|
14660
|
+
}((T = T.replace(y, ".")).split("."), D).join(".");
|
14661
14661
|
}
|
14662
|
-
var b = function(
|
14663
|
-
return
|
14664
|
-
}, V = function(
|
14662
|
+
var b = function(T, D) {
|
14663
|
+
return T + 22 + 75 * (T < 26) - ((D != 0) << 5);
|
14664
|
+
}, V = function(T, D, I) {
|
14665
14665
|
var W = 0;
|
14666
|
-
for (
|
14667
|
-
|
14668
|
-
return E(W + 36 *
|
14669
|
-
}, M = function(
|
14670
|
-
return w(
|
14666
|
+
for (T = I ? E(T / 700) : T >> 1, T += E(T / D); T > 455; W += u)
|
14667
|
+
T = E(T / 35);
|
14668
|
+
return E(W + 36 * T / (T + 38));
|
14669
|
+
}, M = function(T) {
|
14670
|
+
return w(T, function(D) {
|
14671
14671
|
return p.test(D) ? "xn--" + function(I) {
|
14672
14672
|
var W = [], ne = (I = function(Ee) {
|
14673
14673
|
for (var ct = [], Xe = 0, st = Ee.length; Xe < st; ) {
|
@@ -14683,7 +14683,7 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14683
14683
|
try {
|
14684
14684
|
for (var Se, Ue = I[Symbol.iterator](); !(Ne = (Se = Ue.next()).done); Ne = !0) {
|
14685
14685
|
var Ge = Se.value;
|
14686
|
-
Ge < 128 && W.push(
|
14686
|
+
Ge < 128 && W.push(_(Ge));
|
14687
14687
|
}
|
14688
14688
|
} catch (Ee) {
|
14689
14689
|
Le = !0, tt = Ee;
|
@@ -14725,9 +14725,9 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14725
14725
|
if (oe < Ie)
|
14726
14726
|
break;
|
14727
14727
|
var We = oe - Ie, Pe = u - Ie;
|
14728
|
-
W.push(
|
14728
|
+
W.push(_(b(Ie + We % Pe, 0))), oe = E(We / Pe);
|
14729
14729
|
}
|
14730
|
-
W.push(
|
14730
|
+
W.push(_(b(oe, 0))), Ce = V(be, Wt, Be == ot), be = 0, ++Be;
|
14731
14731
|
}
|
14732
14732
|
}
|
14733
14733
|
} catch (Ee) {
|
@@ -14745,8 +14745,8 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14745
14745
|
return W.join("");
|
14746
14746
|
}(D) : D;
|
14747
14747
|
});
|
14748
|
-
},
|
14749
|
-
return w(
|
14748
|
+
}, C = function(T) {
|
14749
|
+
return w(T, function(D) {
|
14750
14750
|
return m.test(D) ? function(I) {
|
14751
14751
|
var W, ne = [], de = I.length, be = 0, Ce = 128, Ne = 72, Le = I.lastIndexOf("-");
|
14752
14752
|
Le < 0 && (Le = 0);
|
@@ -14770,50 +14770,50 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14770
14770
|
}(D.slice(4).toLowerCase()) : D;
|
14771
14771
|
});
|
14772
14772
|
}, x = {};
|
14773
|
-
function k(
|
14774
|
-
var D =
|
14773
|
+
function k(T) {
|
14774
|
+
var D = T.charCodeAt(0);
|
14775
14775
|
return D < 16 ? "%0" + D.toString(16).toUpperCase() : D < 128 ? "%" + D.toString(16).toUpperCase() : D < 2048 ? "%" + (D >> 6 | 192).toString(16).toUpperCase() + "%" + (63 & D | 128).toString(16).toUpperCase() : "%" + (D >> 12 | 224).toString(16).toUpperCase() + "%" + (D >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (63 & D | 128).toString(16).toUpperCase();
|
14776
14776
|
}
|
14777
|
-
function P(
|
14778
|
-
for (var D = "", I = 0, W =
|
14779
|
-
var ne = parseInt(
|
14777
|
+
function P(T) {
|
14778
|
+
for (var D = "", I = 0, W = T.length; I < W; ) {
|
14779
|
+
var ne = parseInt(T.substr(I + 1, 2), 16);
|
14780
14780
|
if (ne < 128)
|
14781
14781
|
D += String.fromCharCode(ne), I += 3;
|
14782
14782
|
else if (ne >= 194 && ne < 224) {
|
14783
14783
|
if (W - I >= 6) {
|
14784
|
-
var de = parseInt(
|
14784
|
+
var de = parseInt(T.substr(I + 4, 2), 16);
|
14785
14785
|
D += String.fromCharCode((31 & ne) << 6 | 63 & de);
|
14786
14786
|
} else
|
14787
|
-
D +=
|
14787
|
+
D += T.substr(I, 6);
|
14788
14788
|
I += 6;
|
14789
14789
|
} else if (ne >= 224) {
|
14790
14790
|
if (W - I >= 9) {
|
14791
|
-
var be = parseInt(
|
14791
|
+
var be = parseInt(T.substr(I + 4, 2), 16), Ce = parseInt(T.substr(I + 7, 2), 16);
|
14792
14792
|
D += String.fromCharCode((15 & ne) << 12 | (63 & be) << 6 | 63 & Ce);
|
14793
14793
|
} else
|
14794
|
-
D +=
|
14794
|
+
D += T.substr(I, 9);
|
14795
14795
|
I += 9;
|
14796
14796
|
} else
|
14797
|
-
D +=
|
14797
|
+
D += T.substr(I, 3), I += 3;
|
14798
14798
|
}
|
14799
14799
|
return D;
|
14800
14800
|
}
|
14801
|
-
function R(
|
14801
|
+
function R(T, D) {
|
14802
14802
|
function I(W) {
|
14803
14803
|
var ne = P(W);
|
14804
14804
|
return ne.match(D.UNRESERVED) ? ne : W;
|
14805
14805
|
}
|
14806
|
-
return
|
14806
|
+
return T.scheme && (T.scheme = String(T.scheme).replace(D.PCT_ENCODED, I).toLowerCase().replace(D.NOT_SCHEME, "")), T.userinfo !== void 0 && (T.userinfo = String(T.userinfo).replace(D.PCT_ENCODED, I).replace(D.NOT_USERINFO, k).replace(D.PCT_ENCODED, a)), T.host !== void 0 && (T.host = String(T.host).replace(D.PCT_ENCODED, I).toLowerCase().replace(D.NOT_HOST, k).replace(D.PCT_ENCODED, a)), T.path !== void 0 && (T.path = String(T.path).replace(D.PCT_ENCODED, I).replace(T.scheme ? D.NOT_PATH : D.NOT_PATH_NOSCHEME, k).replace(D.PCT_ENCODED, a)), T.query !== void 0 && (T.query = String(T.query).replace(D.PCT_ENCODED, I).replace(D.NOT_QUERY, k).replace(D.PCT_ENCODED, a)), T.fragment !== void 0 && (T.fragment = String(T.fragment).replace(D.PCT_ENCODED, I).replace(D.NOT_FRAGMENT, k).replace(D.PCT_ENCODED, a)), T;
|
14807
14807
|
}
|
14808
|
-
function A(
|
14809
|
-
return
|
14808
|
+
function A(T) {
|
14809
|
+
return T.replace(/^0*(.*)/, "$1") || "0";
|
14810
14810
|
}
|
14811
|
-
function q(
|
14812
|
-
var I =
|
14813
|
-
return W ? W.split(".").map(A).join(".") :
|
14811
|
+
function q(T, D) {
|
14812
|
+
var I = T.match(D.IPV4ADDRESS) || [], W = d(I, 2)[1];
|
14813
|
+
return W ? W.split(".").map(A).join(".") : T;
|
14814
14814
|
}
|
14815
|
-
function G(
|
14816
|
-
var I =
|
14815
|
+
function G(T, D) {
|
14816
|
+
var I = T.match(D.IPV6ADDRESS) || [], W = d(I, 3), ne = W[1], de = W[2];
|
14817
14817
|
if (ne) {
|
14818
14818
|
for (var be = ne.toLowerCase().split("::").reverse(), Ce = d(be, 2), Ne = Ce[0], Le = Ce[1], tt = Le ? Le.split(":").map(A) : [], Se = Ne.split(":").map(A), Ue = D.IPV4ADDRESS.test(Se[Se.length - 1]), Ge = Ue ? 7 : 8, ot = Se.length - Ge, Be = Array(Ge), lt = 0; lt < Ge; ++lt)
|
14819
14819
|
Be[lt] = tt[lt] || Se[ot + lt] || "";
|
@@ -14834,15 +14834,15 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14834
14834
|
bt = Be.join(":");
|
14835
14835
|
return de && (bt += "%" + de), bt;
|
14836
14836
|
}
|
14837
|
-
return
|
14837
|
+
return T;
|
14838
14838
|
}
|
14839
14839
|
var Y = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i, Q = "".match(/(){0}/)[1] === void 0;
|
14840
|
-
function te(
|
14840
|
+
function te(T) {
|
14841
14841
|
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = {}, W = D.iri !== !1 ? c : l;
|
14842
|
-
D.reference === "suffix" && (
|
14843
|
-
var ne =
|
14842
|
+
D.reference === "suffix" && (T = (D.scheme ? D.scheme + ":" : "") + "//" + T);
|
14843
|
+
var ne = T.match(Y);
|
14844
14844
|
if (ne) {
|
14845
|
-
Q ? (I.scheme = ne[1], I.userinfo = ne[3], I.host = ne[4], I.port = parseInt(ne[5], 10), I.path = ne[6] || "", I.query = ne[7], I.fragment = ne[8], isNaN(I.port) && (I.port = ne[5])) : (I.scheme = ne[1] || void 0, I.userinfo =
|
14845
|
+
Q ? (I.scheme = ne[1], I.userinfo = ne[3], I.host = ne[4], I.port = parseInt(ne[5], 10), I.path = ne[6] || "", I.query = ne[7], I.fragment = ne[8], isNaN(I.port) && (I.port = ne[5])) : (I.scheme = ne[1] || void 0, I.userinfo = T.indexOf("@") !== -1 ? ne[3] : void 0, I.host = T.indexOf("//") !== -1 ? ne[4] : void 0, I.port = parseInt(ne[5], 10), I.path = ne[6] || "", I.query = T.indexOf("?") !== -1 ? ne[7] : void 0, I.fragment = T.indexOf("#") !== -1 ? ne[8] : void 0, isNaN(I.port) && (I.port = T.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? ne[4] : void 0)), I.host && (I.host = G(q(I.host, W), W)), I.reference = I.scheme !== void 0 || I.userinfo !== void 0 || I.host !== void 0 || I.port !== void 0 || I.path || I.query !== void 0 ? I.scheme === void 0 ? "relative" : I.fragment === void 0 ? "absolute" : "uri" : "same-document", D.reference && D.reference !== "suffix" && D.reference !== I.reference && (I.error = I.error || "URI is not a " + D.reference + " reference.");
|
14846
14846
|
var de = x[(D.scheme || I.scheme || "").toLowerCase()];
|
14847
14847
|
if (D.unicodeSupport || de && de.unicodeSupport)
|
14848
14848
|
R(I, W);
|
@@ -14860,82 +14860,82 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14860
14860
|
I.error = I.error || "URI can not be parsed.";
|
14861
14861
|
return I;
|
14862
14862
|
}
|
14863
|
-
function N(
|
14863
|
+
function N(T, D) {
|
14864
14864
|
var I = D.iri !== !1 ? c : l, W = [];
|
14865
|
-
return
|
14865
|
+
return T.userinfo !== void 0 && (W.push(T.userinfo), W.push("@")), T.host !== void 0 && W.push(G(q(String(T.host), I), I).replace(I.IPV6ADDRESS, function(ne, de, be) {
|
14866
14866
|
return "[" + de + (be ? "%25" + be : "") + "]";
|
14867
|
-
})), typeof
|
14867
|
+
})), typeof T.port != "number" && typeof T.port != "string" || (W.push(":"), W.push(String(T.port))), W.length ? W.join("") : void 0;
|
14868
14868
|
}
|
14869
14869
|
var $ = /^\.\.?\//, F = /^\/\.(\/|$)/, B = /^\/\.\.(\/|$)/, H = /^\/?(?:.|\n)*?(?=\/|$)/;
|
14870
|
-
function J(
|
14871
|
-
for (var D = [];
|
14872
|
-
if (
|
14873
|
-
|
14874
|
-
else if (
|
14875
|
-
|
14876
|
-
else if (
|
14877
|
-
|
14878
|
-
else if (
|
14879
|
-
|
14870
|
+
function J(T) {
|
14871
|
+
for (var D = []; T.length; )
|
14872
|
+
if (T.match($))
|
14873
|
+
T = T.replace($, "");
|
14874
|
+
else if (T.match(F))
|
14875
|
+
T = T.replace(F, "/");
|
14876
|
+
else if (T.match(B))
|
14877
|
+
T = T.replace(B, "/"), D.pop();
|
14878
|
+
else if (T === "." || T === "..")
|
14879
|
+
T = "";
|
14880
14880
|
else {
|
14881
|
-
var I =
|
14881
|
+
var I = T.match(H);
|
14882
14882
|
if (!I)
|
14883
14883
|
throw new Error("Unexpected dot segment condition");
|
14884
14884
|
var W = I[0];
|
14885
|
-
|
14885
|
+
T = T.slice(W.length), D.push(W);
|
14886
14886
|
}
|
14887
14887
|
return D.join("");
|
14888
14888
|
}
|
14889
|
-
function ae(
|
14890
|
-
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = D.iri ? c : l, W = [], ne = x[(D.scheme ||
|
14891
|
-
if (ne && ne.serialize && ne.serialize(
|
14889
|
+
function ae(T) {
|
14890
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, I = D.iri ? c : l, W = [], ne = x[(D.scheme || T.scheme || "").toLowerCase()];
|
14891
|
+
if (ne && ne.serialize && ne.serialize(T, D), T.host && !I.IPV6ADDRESS.test(T.host)) {
|
14892
14892
|
if (D.domainHost || ne && ne.domainHost)
|
14893
14893
|
try {
|
14894
|
-
|
14894
|
+
T.host = D.iri ? C(T.host) : M(T.host.replace(I.PCT_ENCODED, P).toLowerCase());
|
14895
14895
|
} catch (Ce) {
|
14896
|
-
|
14896
|
+
T.error = T.error || "Host's domain name can not be converted to " + (D.iri ? "Unicode" : "ASCII") + " via punycode: " + Ce;
|
14897
14897
|
}
|
14898
14898
|
}
|
14899
|
-
R(
|
14900
|
-
var de = N(
|
14901
|
-
if (de !== void 0 && (D.reference !== "suffix" && W.push("//"), W.push(de),
|
14902
|
-
var be =
|
14899
|
+
R(T, I), D.reference !== "suffix" && T.scheme && (W.push(T.scheme), W.push(":"));
|
14900
|
+
var de = N(T, D);
|
14901
|
+
if (de !== void 0 && (D.reference !== "suffix" && W.push("//"), W.push(de), T.path && T.path.charAt(0) !== "/" && W.push("/")), T.path !== void 0) {
|
14902
|
+
var be = T.path;
|
14903
14903
|
D.absolutePath || ne && ne.absolutePath || (be = J(be)), de === void 0 && (be = be.replace(/^\/\//, "/%2F")), W.push(be);
|
14904
14904
|
}
|
14905
|
-
return
|
14905
|
+
return T.query !== void 0 && (W.push("?"), W.push(T.query)), T.fragment !== void 0 && (W.push("#"), W.push(T.fragment)), W.join("");
|
14906
14906
|
}
|
14907
|
-
function L(
|
14907
|
+
function L(T, D) {
|
14908
14908
|
var I = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, W = {};
|
14909
|
-
return arguments[3] || (
|
14909
|
+
return arguments[3] || (T = te(ae(T, I), I), D = te(ae(D, I), I)), !(I = I || {}).tolerant && D.scheme ? (W.scheme = D.scheme, W.userinfo = D.userinfo, W.host = D.host, W.port = D.port, W.path = J(D.path || ""), W.query = D.query) : (D.userinfo !== void 0 || D.host !== void 0 || D.port !== void 0 ? (W.userinfo = D.userinfo, W.host = D.host, W.port = D.port, W.path = J(D.path || ""), W.query = D.query) : (D.path ? (D.path.charAt(0) === "/" ? W.path = J(D.path) : (W.path = T.userinfo === void 0 && T.host === void 0 && T.port === void 0 || T.path ? T.path ? T.path.slice(0, T.path.lastIndexOf("/") + 1) + D.path : D.path : "/" + D.path, W.path = J(W.path)), W.query = D.query) : (W.path = T.path, W.query = D.query !== void 0 ? D.query : T.query), W.userinfo = T.userinfo, W.host = T.host, W.port = T.port), W.scheme = T.scheme), W.fragment = D.fragment, W;
|
14910
14910
|
}
|
14911
|
-
function ye(
|
14912
|
-
return
|
14911
|
+
function ye(T, D) {
|
14912
|
+
return T && T.toString().replace(D && D.iri ? c.PCT_ENCODED : l.PCT_ENCODED, P);
|
14913
14913
|
}
|
14914
|
-
var re = { scheme: "http", domainHost: !0, parse: function(
|
14915
|
-
return
|
14916
|
-
}, serialize: function(
|
14917
|
-
var I = String(
|
14918
|
-
return
|
14914
|
+
var re = { scheme: "http", domainHost: !0, parse: function(T, D) {
|
14915
|
+
return T.host || (T.error = T.error || "HTTP URIs must have a host."), T;
|
14916
|
+
}, serialize: function(T, D) {
|
14917
|
+
var I = String(T.scheme).toLowerCase() === "https";
|
14918
|
+
return T.port !== (I ? 443 : 80) && T.port !== "" || (T.port = void 0), T.path || (T.path = "/"), T;
|
14919
14919
|
} }, Oe = { scheme: "https", domainHost: re.domainHost, parse: re.parse, serialize: re.serialize };
|
14920
|
-
function $e(
|
14921
|
-
return typeof
|
14920
|
+
function $e(T) {
|
14921
|
+
return typeof T.secure == "boolean" ? T.secure : String(T.scheme).toLowerCase() === "wss";
|
14922
14922
|
}
|
14923
|
-
var xe = { scheme: "ws", domainHost: !0, parse: function(
|
14924
|
-
var I =
|
14923
|
+
var xe = { scheme: "ws", domainHost: !0, parse: function(T, D) {
|
14924
|
+
var I = T;
|
14925
14925
|
return I.secure = $e(I), I.resourceName = (I.path || "/") + (I.query ? "?" + I.query : ""), I.path = void 0, I.query = void 0, I;
|
14926
|
-
}, serialize: function(
|
14927
|
-
if (
|
14928
|
-
var I =
|
14929
|
-
|
14926
|
+
}, serialize: function(T, D) {
|
14927
|
+
if (T.port !== ($e(T) ? 443 : 80) && T.port !== "" || (T.port = void 0), typeof T.secure == "boolean" && (T.scheme = T.secure ? "wss" : "ws", T.secure = void 0), T.resourceName) {
|
14928
|
+
var I = T.resourceName.split("?"), W = d(I, 2), ne = W[0], de = W[1];
|
14929
|
+
T.path = ne && ne !== "/" ? ne : void 0, T.query = de, T.resourceName = void 0;
|
14930
14930
|
}
|
14931
|
-
return
|
14931
|
+
return T.fragment = void 0, T;
|
14932
14932
|
} }, Z = { scheme: "wss", domainHost: xe.domainHost, parse: xe.parse, serialize: xe.serialize }, Ve = {}, Me = "[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]", j = "[0-9A-Fa-f]", z = s(s("%[EFef][0-9A-Fa-f]%" + j + j + "%" + j + j) + "|" + s("%[89A-Fa-f][0-9A-Fa-f]%" + j + j) + "|" + s("%" + j + j)), U = n("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]", '[\\"\\\\]'), ie = new RegExp(Me, "g"), se = new RegExp(z, "g"), K = new RegExp(n("[^]", "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]", "[\\.]", '[\\"]', U), "g"), he = new RegExp(n("[^]", Me, "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"), "g"), Re = he;
|
14933
|
-
function Te(
|
14934
|
-
var D = P(
|
14935
|
-
return D.match(ie) ? D :
|
14933
|
+
function Te(T) {
|
14934
|
+
var D = P(T);
|
14935
|
+
return D.match(ie) ? D : T;
|
14936
14936
|
}
|
14937
|
-
var ge = { scheme: "mailto", parse: function(
|
14938
|
-
var I =
|
14937
|
+
var ge = { scheme: "mailto", parse: function(T, D) {
|
14938
|
+
var I = T, W = I.to = I.path ? I.path.split(",") : [];
|
14939
14939
|
if (I.path = void 0, I.query) {
|
14940
14940
|
for (var ne = !1, de = {}, be = I.query.split("&"), Ce = 0, Ne = be.length; Ce < Ne; ++Ce) {
|
14941
14941
|
var Le = be[Ce].split("=");
|
@@ -14970,13 +14970,13 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14970
14970
|
W[Ge] = Be.join("@");
|
14971
14971
|
}
|
14972
14972
|
return I;
|
14973
|
-
}, serialize: function(
|
14974
|
-
var I, W =
|
14973
|
+
}, serialize: function(T, D) {
|
14974
|
+
var I, W = T, ne = (I = T.to) != null ? I instanceof Array ? I : typeof I.length != "number" || I.split || I.setInterval || I.call ? [I] : Array.prototype.slice.call(I) : [];
|
14975
14975
|
if (ne) {
|
14976
14976
|
for (var de = 0, be = ne.length; de < be; ++de) {
|
14977
14977
|
var Ce = String(ne[de]), Ne = Ce.lastIndexOf("@"), Le = Ce.slice(0, Ne).replace(se, Te).replace(se, a).replace(K, k), tt = Ce.slice(Ne + 1);
|
14978
14978
|
try {
|
14979
|
-
tt = D.iri ?
|
14979
|
+
tt = D.iri ? C(tt) : M(ye(tt, D).toLowerCase());
|
14980
14980
|
} catch (ot) {
|
14981
14981
|
W.error = W.error || "Email address's domain name can not be converted to " + (D.iri ? "Unicode" : "ASCII") + " via punycode: " + ot;
|
14982
14982
|
}
|
@@ -14984,33 +14984,33 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
14984
14984
|
}
|
14985
14985
|
W.path = ne.join(",");
|
14986
14986
|
}
|
14987
|
-
var Se =
|
14988
|
-
|
14987
|
+
var Se = T.headers = T.headers || {};
|
14988
|
+
T.subject && (Se.subject = T.subject), T.body && (Se.body = T.body);
|
14989
14989
|
var Ue = [];
|
14990
14990
|
for (var Ge in Se)
|
14991
14991
|
Se[Ge] !== Ve[Ge] && Ue.push(Ge.replace(se, Te).replace(se, a).replace(he, k) + "=" + Se[Ge].replace(se, Te).replace(se, a).replace(Re, k));
|
14992
14992
|
return Ue.length && (W.query = Ue.join("&")), W;
|
14993
|
-
} }, Ye = /^([^\:]+)\:(.*)/, Ot = { scheme: "urn", parse: function(
|
14994
|
-
var I =
|
14993
|
+
} }, Ye = /^([^\:]+)\:(.*)/, Ot = { scheme: "urn", parse: function(T, D) {
|
14994
|
+
var I = T.path && T.path.match(Ye), W = T;
|
14995
14995
|
if (I) {
|
14996
14996
|
var ne = D.scheme || W.scheme || "urn", de = I[1].toLowerCase(), be = I[2], Ce = x[ne + ":" + (D.nid || de)];
|
14997
14997
|
W.nid = de, W.nss = be, W.path = void 0, Ce && (W = Ce.parse(W, D));
|
14998
14998
|
} else
|
14999
14999
|
W.error = W.error || "URN can not be parsed.";
|
15000
15000
|
return W;
|
15001
|
-
}, serialize: function(
|
15002
|
-
var I =
|
15003
|
-
W && (
|
15004
|
-
var ne =
|
15005
|
-
return ne.path = (I || D.nid) + ":" +
|
15006
|
-
} }, St = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, $t = { scheme: "urn:uuid", parse: function(
|
15007
|
-
var I =
|
15001
|
+
}, serialize: function(T, D) {
|
15002
|
+
var I = T.nid, W = x[(D.scheme || T.scheme || "urn") + ":" + (D.nid || I)];
|
15003
|
+
W && (T = W.serialize(T, D));
|
15004
|
+
var ne = T;
|
15005
|
+
return ne.path = (I || D.nid) + ":" + T.nss, ne;
|
15006
|
+
} }, St = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/, $t = { scheme: "urn:uuid", parse: function(T, D) {
|
15007
|
+
var I = T;
|
15008
15008
|
return I.uuid = I.nss, I.nss = void 0, D.tolerant || I.uuid && I.uuid.match(St) || (I.error = I.error || "UUID is not valid."), I;
|
15009
|
-
}, serialize: function(
|
15010
|
-
var I =
|
15011
|
-
return I.nss = (
|
15009
|
+
}, serialize: function(T, D) {
|
15010
|
+
var I = T;
|
15011
|
+
return I.nss = (T.uuid || "").toLowerCase(), I;
|
15012
15012
|
} };
|
15013
|
-
x[re.scheme] = re, x[Oe.scheme] = Oe, x[xe.scheme] = xe, x[Z.scheme] = Z, x[ge.scheme] = ge, x[Ot.scheme] = Ot, x[$t.scheme] = $t, r.SCHEMES = x, r.pctEncChar = k, r.pctDecChars = P, r.parse = te, r.removeDotSegments = J, r.serialize = ae, r.resolveComponents = L, r.resolve = function(
|
15013
|
+
x[re.scheme] = re, x[Oe.scheme] = Oe, x[xe.scheme] = xe, x[Z.scheme] = Z, x[ge.scheme] = ge, x[Ot.scheme] = Ot, x[$t.scheme] = $t, r.SCHEMES = x, r.pctEncChar = k, r.pctDecChars = P, r.parse = te, r.removeDotSegments = J, r.serialize = ae, r.resolveComponents = L, r.resolve = function(T, D, I) {
|
15014
15014
|
var W = function(ne, de) {
|
15015
15015
|
var be = { scheme: "null" };
|
15016
15016
|
if (de)
|
@@ -15018,13 +15018,13 @@ var Qi = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
15018
15018
|
be[Ce] = de[Ce];
|
15019
15019
|
return be;
|
15020
15020
|
}(0, I);
|
15021
|
-
return ae(L(te(
|
15022
|
-
}, r.normalize = function(
|
15023
|
-
return typeof
|
15024
|
-
}, r.equal = function(
|
15025
|
-
return typeof
|
15026
|
-
}, r.escapeComponent = function(
|
15027
|
-
return
|
15021
|
+
return ae(L(te(T, W), te(D, W), W, !0), W);
|
15022
|
+
}, r.normalize = function(T, D) {
|
15023
|
+
return typeof T == "string" ? T = ae(te(T, D), D) : i(T) === "object" && (T = te(ae(T, D), D)), T;
|
15024
|
+
}, r.equal = function(T, D, I) {
|
15025
|
+
return typeof T == "string" ? T = ae(te(T, I), I) : i(T) === "object" && (T = ae(T, I)), typeof D == "string" ? D = ae(te(D, I), I) : i(D) === "object" && (D = ae(D, I)), T === D;
|
15026
|
+
}, r.escapeComponent = function(T, D) {
|
15027
|
+
return T && T.toString().replace(D && D.iri ? c.ESCAPE : l.ESCAPE, k);
|
15028
15028
|
}, r.unescapeComponent = ye, Object.defineProperty(r, "__esModule", { value: !0 });
|
15029
15029
|
})(e);
|
15030
15030
|
});
|
@@ -15045,13 +15045,13 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: ed }, "__esModule", {
|
|
15045
15045
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
15046
15046
|
return g.CodeGen;
|
15047
15047
|
} });
|
15048
|
-
const r = g, n = (
|
15048
|
+
const r = g, n = (C, x) => new RegExp(C, x);
|
15049
15049
|
n.code = "new RegExp";
|
15050
15050
|
const s = ["removeAdditional", "useDefaults", "coerceTypes"], i = /* @__PURE__ */ new Set(["validate", "serialize", "parse", "wrapper", "root", "schema", "keyword", "pattern", "formats", "validate$data", "func", "obj", "Error"]), a = { errorDataPath: "", format: "`validateFormats: false` can be used instead.", nullable: '"nullable" keyword is supported by default.', jsonPointers: "Deprecated jsPropertySyntax can be used instead.", extendRefs: "Deprecated ignoreKeywordsWithRef can be used instead.", missingRefs: "Pass empty schema with $id that should be ignored to ajv.addSchema.", processCode: "Use option `code: {process: (code, schemaEnv: object) => string}`", sourceCode: "Use option `code: {source: true}`", strictDefaults: "It is default now, see option `strict`.", strictKeywords: "It is default now, see option `strict`.", uniqueItems: '"uniqueItems" keyword is always validated.', unknownFormats: "Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).", cache: "Map is used as cache, schema object as key.", serialize: "Map is used as cache, schema object as key.", ajvErrors: "It is default now." }, o = { ignoreKeywordsWithRef: "", jsPropertySyntax: "", unicode: '"minLength"/"maxLength" account for unicode characters by default.' };
|
15051
|
-
function l(
|
15051
|
+
function l(C) {
|
15052
15052
|
var x, k, P, R, A, q, G, Y, Q, te, N, $, F, B, H, J, ae, L, ye, re, Oe, $e, xe, Z, Ve;
|
15053
|
-
const Me =
|
15054
|
-
return { strictSchema: (q = (A =
|
15053
|
+
const Me = C.strict, j = (x = C.code) === null || x === void 0 ? void 0 : x.optimize, z = j === !0 || j === void 0 ? 1 : j || 0, U = (P = (k = C.code) === null || k === void 0 ? void 0 : k.regExp) !== null && P !== void 0 ? P : n, ie = (R = C.uriResolver) !== null && R !== void 0 ? R : Lv.default;
|
15054
|
+
return { strictSchema: (q = (A = C.strictSchema) !== null && A !== void 0 ? A : Me) === null || q === void 0 || q, strictNumbers: (Y = (G = C.strictNumbers) !== null && G !== void 0 ? G : Me) === null || Y === void 0 || Y, strictTypes: (te = (Q = C.strictTypes) !== null && Q !== void 0 ? Q : Me) !== null && te !== void 0 ? te : "log", strictTuples: ($ = (N = C.strictTuples) !== null && N !== void 0 ? N : Me) !== null && $ !== void 0 ? $ : "log", strictRequired: (B = (F = C.strictRequired) !== null && F !== void 0 ? F : Me) !== null && B !== void 0 && B, code: C.code ? { ...C.code, optimize: z, regExp: U } : { optimize: z, regExp: U }, loopRequired: (H = C.loopRequired) !== null && H !== void 0 ? H : 200, loopEnum: (J = C.loopEnum) !== null && J !== void 0 ? J : 200, meta: (ae = C.meta) === null || ae === void 0 || ae, messages: (L = C.messages) === null || L === void 0 || L, inlineRefs: (ye = C.inlineRefs) === null || ye === void 0 || ye, schemaId: (re = C.schemaId) !== null && re !== void 0 ? re : "$id", addUsedSchema: (Oe = C.addUsedSchema) === null || Oe === void 0 || Oe, validateSchema: ($e = C.validateSchema) === null || $e === void 0 || $e, validateFormats: (xe = C.validateFormats) === null || xe === void 0 || xe, unicodeRegExp: (Z = C.unicodeRegExp) === null || Z === void 0 || Z, int32range: (Ve = C.int32range) === null || Ve === void 0 || Ve, uriResolver: ie };
|
15055
15055
|
}
|
15056
15056
|
class c {
|
15057
15057
|
constructor(x = {}) {
|
@@ -15216,7 +15216,7 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: ed }, "__esModule", {
|
|
15216
15216
|
if (P = (k = x).keyword, Array.isArray(P) && !P.length)
|
15217
15217
|
throw new Error("addKeywords: keyword must be string or non-empty array");
|
15218
15218
|
}
|
15219
|
-
if (
|
15219
|
+
if (_.call(this, P, k), !k)
|
15220
15220
|
return (0, fe.eachItem)(P, (A) => S.call(this, A)), this;
|
15221
15221
|
b.call(this, k);
|
15222
15222
|
const R = { ...k, type: (0, nr.getJSONTypes)(k.type), schemaType: (0, nr.getJSONTypes)(k.schemaType) };
|
@@ -15302,55 +15302,55 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: ed }, "__esModule", {
|
|
15302
15302
|
}
|
15303
15303
|
}
|
15304
15304
|
}
|
15305
|
-
function d(
|
15306
|
-
for (const R in
|
15305
|
+
function d(C, x, k, P = "error") {
|
15306
|
+
for (const R in C) {
|
15307
15307
|
const A = R;
|
15308
|
-
A in x && this.logger[P](`${k}: option ${R}. ${
|
15308
|
+
A in x && this.logger[P](`${k}: option ${R}. ${C[A]}`);
|
15309
15309
|
}
|
15310
15310
|
}
|
15311
|
-
function h(
|
15312
|
-
return
|
15311
|
+
function h(C) {
|
15312
|
+
return C = (0, ut.normalizeId)(C), this.schemas[C] || this.refs[C];
|
15313
15313
|
}
|
15314
15314
|
function u() {
|
15315
|
-
const
|
15316
|
-
if (
|
15317
|
-
if (Array.isArray(
|
15318
|
-
this.addSchema(
|
15315
|
+
const C = this.opts.schemas;
|
15316
|
+
if (C)
|
15317
|
+
if (Array.isArray(C))
|
15318
|
+
this.addSchema(C);
|
15319
15319
|
else
|
15320
|
-
for (const x in
|
15321
|
-
this.addSchema(
|
15320
|
+
for (const x in C)
|
15321
|
+
this.addSchema(C[x], x);
|
15322
15322
|
}
|
15323
15323
|
function m() {
|
15324
|
-
for (const
|
15325
|
-
const x = this.opts.formats[
|
15326
|
-
x && this.addFormat(
|
15324
|
+
for (const C in this.opts.formats) {
|
15325
|
+
const x = this.opts.formats[C];
|
15326
|
+
x && this.addFormat(C, x);
|
15327
15327
|
}
|
15328
15328
|
}
|
15329
|
-
function p(
|
15330
|
-
if (Array.isArray(
|
15331
|
-
this.addVocabulary(
|
15329
|
+
function p(C) {
|
15330
|
+
if (Array.isArray(C))
|
15331
|
+
this.addVocabulary(C);
|
15332
15332
|
else {
|
15333
15333
|
this.logger.warn("keywords option as map is deprecated, pass array");
|
15334
|
-
for (const x in
|
15335
|
-
const k =
|
15334
|
+
for (const x in C) {
|
15335
|
+
const k = C[x];
|
15336
15336
|
k.keyword || (k.keyword = x), this.addKeyword(k);
|
15337
15337
|
}
|
15338
15338
|
}
|
15339
15339
|
}
|
15340
15340
|
function y() {
|
15341
|
-
const
|
15341
|
+
const C = { ...this.opts };
|
15342
15342
|
for (const x of s)
|
15343
|
-
delete
|
15344
|
-
return
|
15343
|
+
delete C[x];
|
15344
|
+
return C;
|
15345
15345
|
}
|
15346
15346
|
e.default = c, c.ValidationError = Qu.default, c.MissingRefError = Qi.default;
|
15347
15347
|
const v = { log() {
|
15348
15348
|
}, warn() {
|
15349
15349
|
}, error() {
|
15350
15350
|
} }, E = /^[a-z_$][a-z0-9_$:-]*$/i;
|
15351
|
-
function
|
15351
|
+
function _(C, x) {
|
15352
15352
|
const { RULES: k } = this;
|
15353
|
-
if ((0, fe.eachItem)(
|
15353
|
+
if ((0, fe.eachItem)(C, (P) => {
|
15354
15354
|
if (k.keywords[P])
|
15355
15355
|
throw new Error(`Keyword ${P} is already defined`);
|
15356
15356
|
if (!E.test(P))
|
@@ -15358,29 +15358,29 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: ed }, "__esModule", {
|
|
15358
15358
|
}), x && x.$data && !("code" in x) && !("validate" in x))
|
15359
15359
|
throw new Error('$data keyword must have "code" or "validate" function');
|
15360
15360
|
}
|
15361
|
-
function S(
|
15361
|
+
function S(C, x, k) {
|
15362
15362
|
var P;
|
15363
15363
|
const R = x == null ? void 0 : x.post;
|
15364
15364
|
if (k && R)
|
15365
15365
|
throw new Error('keyword with "post" flag cannot have "type"');
|
15366
15366
|
const { RULES: A } = this;
|
15367
15367
|
let q = R ? A.post : A.rules.find(({ type: Y }) => Y === k);
|
15368
|
-
if (q || (q = { type: k, rules: [] }, A.rules.push(q)), A.keywords[
|
15368
|
+
if (q || (q = { type: k, rules: [] }, A.rules.push(q)), A.keywords[C] = !0, !x)
|
15369
15369
|
return;
|
15370
|
-
const G = { keyword:
|
15371
|
-
x.before ? w.call(this, q, G, x.before) : q.rules.push(G), A.all[
|
15370
|
+
const G = { keyword: C, definition: { ...x, type: (0, nr.getJSONTypes)(x.type), schemaType: (0, nr.getJSONTypes)(x.schemaType) } };
|
15371
|
+
x.before ? w.call(this, q, G, x.before) : q.rules.push(G), A.all[C] = G, (P = x.implements) === null || P === void 0 || P.forEach((Y) => this.addKeyword(Y));
|
15372
15372
|
}
|
15373
|
-
function w(
|
15374
|
-
const P =
|
15375
|
-
P >= 0 ?
|
15373
|
+
function w(C, x, k) {
|
15374
|
+
const P = C.rules.findIndex((R) => R.keyword === k);
|
15375
|
+
P >= 0 ? C.rules.splice(P, 0, x) : (C.rules.push(x), this.logger.warn(`rule ${k} is not defined`));
|
15376
15376
|
}
|
15377
|
-
function b(
|
15378
|
-
let { metaSchema: x } =
|
15379
|
-
x !== void 0 && (
|
15377
|
+
function b(C) {
|
15378
|
+
let { metaSchema: x } = C;
|
15379
|
+
x !== void 0 && (C.$data && this.opts.$data && (x = M(x)), C.validateSchema = this.compile(x, !0));
|
15380
15380
|
}
|
15381
15381
|
const V = { $ref: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#" };
|
15382
|
-
function M(
|
15383
|
-
return { anyOf: [
|
15382
|
+
function M(C) {
|
15383
|
+
return { anyOf: [C, V] };
|
15384
15384
|
}
|
15385
15385
|
}), Uv = /* @__PURE__ */ Object.defineProperty({ default: { keyword: "id", code() {
|
15386
15386
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
@@ -15402,8 +15402,8 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: ed }, "__esModule", {
|
|
15402
15402
|
const E = n(i, v);
|
15403
15403
|
s(i, E, v, v.$async);
|
15404
15404
|
}(y) : function(v) {
|
15405
|
-
const E = a.scopeValue("schema", u.code.source === !0 ? { ref: v, code: (0, g.stringify)(v) } : { ref: v }),
|
15406
|
-
i.mergeEvaluated(S), i.ok(
|
15405
|
+
const E = a.scopeValue("schema", u.code.source === !0 ? { ref: v, code: (0, g.stringify)(v) } : { ref: v }), _ = a.name("valid"), S = i.subschema({ schema: v, dataTypes: [], schemaPath: g.nil, topSchemaRef: E, errSchemaPath: o }, _);
|
15406
|
+
i.mergeEvaluated(S), i.ok(_);
|
15407
15407
|
}(y);
|
15408
15408
|
} };
|
15409
15409
|
function n(i, a) {
|
@@ -15413,14 +15413,14 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: ed }, "__esModule", {
|
|
15413
15413
|
function s(i, a, o, l) {
|
15414
15414
|
const { gen: c, it: d } = i, { allErrors: h, schemaEnv: u, opts: m } = d, p = m.passContext ? X.default.this : g.nil;
|
15415
15415
|
function y(E) {
|
15416
|
-
const
|
15417
|
-
c.assign(X.default.vErrors, g._`${X.default.vErrors} === null ? ${
|
15416
|
+
const _ = g._`${E}.errors`;
|
15417
|
+
c.assign(X.default.vErrors, g._`${X.default.vErrors} === null ? ${_} : ${X.default.vErrors}.concat(${_})`), c.assign(X.default.errors, g._`${X.default.vErrors}.length`);
|
15418
15418
|
}
|
15419
15419
|
function v(E) {
|
15420
|
-
var
|
15420
|
+
var _;
|
15421
15421
|
if (!d.opts.unevaluated)
|
15422
15422
|
return;
|
15423
|
-
const S = (
|
15423
|
+
const S = (_ = o == null ? void 0 : o.validate) === null || _ === void 0 ? void 0 : _.evaluated;
|
15424
15424
|
if (d.props !== !0)
|
15425
15425
|
if (S && !S.dynamicProps)
|
15426
15426
|
S.props !== void 0 && (d.props = fe.mergeEvaluated.props(c, S.props, d.props));
|
@@ -15442,8 +15442,8 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: ed }, "__esModule", {
|
|
15442
15442
|
const E = c.let("valid");
|
15443
15443
|
c.try(() => {
|
15444
15444
|
c.code(g._`await ${(0, nt.callValidateCode)(i, a, p)}`), v(a), h || c.assign(E, !0);
|
15445
|
-
}, (
|
15446
|
-
c.if(g._`!(${
|
15445
|
+
}, (_) => {
|
15446
|
+
c.if(g._`!(${_} instanceof ${d.ValidationError})`, () => c.throw(_)), y(_), h || c.assign(E, !1);
|
15447
15447
|
}), i.ok(E);
|
15448
15448
|
}() : i.result((0, nt.callValidateCode)(i, a, p), () => v(a), () => y(a));
|
15449
15449
|
}
|
@@ -15855,8 +15855,8 @@ var p0 = /* @__PURE__ */ Object.defineProperty({ default: { keyword: "if", schem
|
|
15855
15855
|
if (u === !0)
|
15856
15856
|
return;
|
15857
15857
|
const [m, p, y] = function(v) {
|
15858
|
-
const E = v instanceof RegExp ? (0, g.regexpCode)(v) : l.code.formats ? g._`${l.code.formats}${(0, g.getProperty)(i)}` : void 0,
|
15859
|
-
return typeof v != "object" || v instanceof RegExp ? ["string", v,
|
15858
|
+
const E = v instanceof RegExp ? (0, g.regexpCode)(v) : l.code.formats ? g._`${l.code.formats}${(0, g.getProperty)(i)}` : void 0, _ = r.scopeValue("formats", { key: i, ref: v, code: E });
|
15859
|
+
return typeof v != "object" || v instanceof RegExp ? ["string", v, _] : [v.type || "string", v.validate, g._`${_}.validate`];
|
15860
15860
|
}(u);
|
15861
15861
|
m === e && t.pass(function() {
|
15862
15862
|
if (typeof u == "object" && !(u instanceof RegExp) && u.async) {
|
@@ -15911,15 +15911,15 @@ var w0 = /* @__PURE__ */ Object.defineProperty({ default: b0 }, "__esModule", {
|
|
15911
15911
|
}
|
15912
15912
|
function E(S, w) {
|
15913
15913
|
if (S.const)
|
15914
|
-
|
15914
|
+
_(S.const, w);
|
15915
15915
|
else {
|
15916
15916
|
if (!S.enum)
|
15917
15917
|
throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`);
|
15918
15918
|
for (const b of S.enum)
|
15919
|
-
|
15919
|
+
_(b, w);
|
15920
15920
|
}
|
15921
15921
|
}
|
15922
|
-
function
|
15922
|
+
function _(S, w) {
|
15923
15923
|
if (typeof S != "string" || S in m)
|
15924
15924
|
throw new Error(`discriminator: "${o}" values must be unique strings`);
|
15925
15925
|
m[S] = w;
|
@@ -15970,27 +15970,27 @@ var w0 = /* @__PURE__ */ Object.defineProperty({ default: b0 }, "__esModule", {
|
|
15970
15970
|
const { gen: u, data: m, schema: p, schemaValue: y, it: v } = h;
|
15971
15971
|
if (v.createErrors === !1)
|
15972
15972
|
return;
|
15973
|
-
const E = p,
|
15974
|
-
function S(M,
|
15975
|
-
return g.and(ce._`${M}.keyword !== ${r}`, ce._`!${M}.${n}`, ce._`${M}.instancePath === ${
|
15973
|
+
const E = p, _ = g.strConcat(X.default.instancePath, v.errorPath);
|
15974
|
+
function S(M, C) {
|
15975
|
+
return g.and(ce._`${M}.keyword !== ${r}`, ce._`!${M}.${n}`, ce._`${M}.instancePath === ${_}`, ce._`${M}.keyword in ${C}`, ce._`${M}.schemaPath.indexOf(${v.errSchemaPath}) === 0`, ce._`/^\\/[^\\/]*$/.test(${M}.schemaPath.slice(${v.errSchemaPath.length}))`);
|
15976
15976
|
}
|
15977
|
-
function w(M,
|
15977
|
+
function w(M, C) {
|
15978
15978
|
const x = [];
|
15979
15979
|
for (const k in M) {
|
15980
|
-
const P =
|
15980
|
+
const P = C[k];
|
15981
15981
|
i.test(P) && x.push([k, V(P)]);
|
15982
15982
|
}
|
15983
15983
|
return u.object(...x);
|
15984
15984
|
}
|
15985
15985
|
function b(M) {
|
15986
|
-
return i.test(M) ? new ve._Code(ve.safeStringify(M).replace(a, (
|
15986
|
+
return i.test(M) ? new ve._Code(ve.safeStringify(M).replace(a, (C, x) => `" + JSON.stringify(${Hn.getData(x, v)}) + "`).replace(o, "")) : ce.stringify(M);
|
15987
15987
|
}
|
15988
15988
|
function V(M) {
|
15989
15989
|
return ce._`function(){return ${b(M)}}`;
|
15990
15990
|
}
|
15991
15991
|
u.if(ce._`${X.default.errors} > 0`, () => {
|
15992
15992
|
if (typeof E == "object") {
|
15993
|
-
const [
|
15993
|
+
const [C, x] = function(k) {
|
15994
15994
|
let P, R;
|
15995
15995
|
for (const A in k) {
|
15996
15996
|
if (A === "properties" || A === "items")
|
@@ -16023,7 +16023,7 @@ var w0 = /* @__PURE__ */ Object.defineProperty({ default: b0 }, "__esModule", {
|
|
16023
16023
|
function G(Y) {
|
16024
16024
|
return ce._`${Y} in ${R} ? ${R}[${Y}]() : ${y}[${Y}]`;
|
16025
16025
|
}
|
16026
|
-
}(x),
|
16026
|
+
}(x), C && function(k) {
|
16027
16027
|
const P = u.const("emErrors", ce.stringify(k)), R = [];
|
16028
16028
|
for (const Q in k)
|
16029
16029
|
R.push([Q, w(k[Q], p[Q])]);
|
@@ -16036,7 +16036,7 @@ var w0 = /* @__PURE__ */ Object.defineProperty({ default: b0 }, "__esModule", {
|
|
16036
16036
|
Nt.reportError(h, { message: ce._`${N} ? ${N}() : ${y}[${Q}][${te}]`, params: ce._`{errors: ${Y}}` });
|
16037
16037
|
});
|
16038
16038
|
}));
|
16039
|
-
}(
|
16039
|
+
}(C), function(k) {
|
16040
16040
|
const { props: P, items: R } = k;
|
16041
16041
|
if (!P && !R)
|
16042
16042
|
return;
|
@@ -16051,12 +16051,12 @@ var w0 = /* @__PURE__ */ Object.defineProperty({ default: b0 }, "__esModule", {
|
|
16051
16051
|
}, () => {
|
16052
16052
|
N(P, p.properties), u.assign(Y, ce.str`properties`);
|
16053
16053
|
}), Q = ce._`[${Y}]`) : R ? (u.if(q), N(R, p.items), Q = ce._`.items`) : P && (u.if(g.and(A, g.not(q))), N(P, p.properties), Q = ce._`.properties`), u.forOf("err", X.default.vErrors, ($) => function(F, B, H) {
|
16054
|
-
u.if(g.and(ce._`${F}.keyword !== ${r}`, ce._`!${F}.${n}`, ce._`${F}.instancePath.indexOf(${
|
16055
|
-
const J = u.scopeValue("pattern", { ref: /^\/([^/]*)(?:\/|$)/, code: ce._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")` }), ae = u.const("emMatches", ce._`${J}.exec(${F}.instancePath.slice(${
|
16054
|
+
u.if(g.and(ce._`${F}.keyword !== ${r}`, ce._`!${F}.${n}`, ce._`${F}.instancePath.indexOf(${_}) === 0`), () => {
|
16055
|
+
const J = u.scopeValue("pattern", { ref: /^\/([^/]*)(?:\/|$)/, code: ce._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")` }), ae = u.const("emMatches", ce._`${J}.exec(${F}.instancePath.slice(${_}.length))`), L = u.const("emChild", ce._`${ae} && ${ae}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);
|
16056
16056
|
u.if(ce._`${L} !== undefined && ${L} in ${B}`, () => H(L));
|
16057
16057
|
});
|
16058
16058
|
}($, G, (F) => u.code(ce._`${G}[${F}].push(${$})`).assign(ce._`${$}.${n}`, !0))), u.forIn("key", G, ($) => u.if(ce._`${G}[${$}].length`, () => {
|
16059
|
-
Nt.reportError(h, { message: ce._`${$} in ${te} ? ${te}[${$}]() : ${y}${Q}[${$}]`, params: ce._`{errors: ${G}[${$}]}` }), u.assign(ce._`${X.default.vErrors}[${X.default.errors}-1].instancePath`, ce._`${
|
16059
|
+
Nt.reportError(h, { message: ce._`${$} in ${te} ? ${te}[${$}]() : ${y}${Q}[${$}]`, params: ce._`{errors: ${G}[${$}]}` }), u.assign(ce._`${X.default.vErrors}[${X.default.errors}-1].instancePath`, ce._`${_} + "/" + ${$}.replace(/~/g, "~0").replace(/\\//g, "~1")`);
|
16060
16060
|
})), u.endIf();
|
16061
16061
|
}(function({ properties: k, items: P }) {
|
16062
16062
|
const R = {};
|
@@ -16074,14 +16074,14 @@ var w0 = /* @__PURE__ */ Object.defineProperty({ default: b0 }, "__esModule", {
|
|
16074
16074
|
}(E));
|
16075
16075
|
}
|
16076
16076
|
const M = typeof E == "string" ? E : E._;
|
16077
|
-
M && function(
|
16077
|
+
M && function(C) {
|
16078
16078
|
const x = u.const("emErrs", ce._`[]`);
|
16079
16079
|
u.forOf("err", X.default.vErrors, (k) => u.if(function(P) {
|
16080
|
-
return g.and(ce._`${P}.keyword !== ${r}`, ce._`!${P}.${n}`, g.or(ce._`${P}.instancePath === ${
|
16081
|
-
}(k), () => u.code(ce._`${x}.push(${k})`).assign(ce._`${k}.${n}`, !0))), u.if(ce._`${x}.length`, () => Nt.reportError(h, { message: b(
|
16080
|
+
return g.and(ce._`${P}.keyword !== ${r}`, ce._`!${P}.${n}`, g.or(ce._`${P}.instancePath === ${_}`, g.and(ce._`${P}.instancePath.indexOf(${_}) === 0`, ce._`${P}.instancePath[${_}.length] === "/"`)), ce._`${P}.schemaPath.indexOf(${v.errSchemaPath}) === 0`, ce._`${P}.schemaPath[${v.errSchemaPath}.length] === "/"`);
|
16081
|
+
}(k), () => u.code(ce._`${x}.push(${k})`).assign(ce._`${k}.${n}`, !0))), u.if(ce._`${x}.length`, () => Nt.reportError(h, { message: b(C), params: ce._`{errors: ${x}}` }));
|
16082
16082
|
}(M), d.keepErrors || function() {
|
16083
|
-
const
|
16084
|
-
u.forOf("err", X.default.vErrors, (x) => u.if(ce._`!${x}.${n}`, () => u.code(ce._`${
|
16083
|
+
const C = u.const("emErrs", ce._`[]`);
|
16084
|
+
u.forOf("err", X.default.vErrors, (x) => u.if(ce._`!${x}.${n}`, () => u.code(ce._`${C}.push(${x})`))), u.assign(X.default.vErrors, C).assign(X.default.errors, ce._`${C}.length`);
|
16085
16085
|
}();
|
16086
16086
|
});
|
16087
16087
|
}, metaSchema: { anyOf: [{ type: "string" }, { type: "object", properties: { properties: { $ref: "#/$defs/stringMap" }, items: { $ref: "#/$defs/stringList" }, required: { $ref: "#/$defs/stringOrMap" }, dependencies: { $ref: "#/$defs/stringOrMap" } }, additionalProperties: { type: "string" } }], $defs: { stringMap: { type: "object", additionalProperties: { type: "string" } }, stringOrMap: { anyOf: [{ type: "string" }, { $ref: "#/$defs/stringMap" }] }, stringList: { type: "array", items: { type: "string" } } } } };
|
@@ -16124,16 +16124,20 @@ function ub(t) {
|
|
16124
16124
|
e,
|
16125
16125
|
{ strict: !1, addFormats: !0 }
|
16126
16126
|
) : void 0
|
16127
|
-
}), [a] = xt(), { handleSubmit: o, setError: l } = i, [c, d] = pe(
|
16127
|
+
}), [a] = xt(), { handleSubmit: o, setError: l } = i, [c, d] = pe(null), h = ir("md"), [u] = Bt(Mn), m = t.isVertical ? !1 : u.formLayout === "horizontal", y = (t.singleColumn ? !1 : u.formColumns === "multiple") ? 1600 : m ? 960 : 800;
|
16128
16128
|
let v = /* @__PURE__ */ f.jsx(wv, { ...i, children: /* @__PURE__ */ f.jsxs(
|
16129
16129
|
_l,
|
16130
16130
|
{
|
16131
16131
|
onSubmit: o(async (E) => {
|
16132
|
-
d(
|
16132
|
+
d(null);
|
16133
16133
|
try {
|
16134
|
-
await t.onSubmit(
|
16135
|
-
|
16136
|
-
|
16134
|
+
await t.onSubmit(
|
16135
|
+
E,
|
16136
|
+
(_) => d(new Error(_)),
|
16137
|
+
l
|
16138
|
+
);
|
16139
|
+
} catch (_) {
|
16140
|
+
_ instanceof Error ? d(_) : d(new Error("Unknown error"));
|
16137
16141
|
}
|
16138
16142
|
}),
|
16139
16143
|
isHorizontal: m,
|
@@ -16160,9 +16164,11 @@ function ub(t) {
|
|
16160
16164
|
Ls,
|
16161
16165
|
{
|
16162
16166
|
variant: "danger",
|
16163
|
-
title: c ?? "",
|
16167
|
+
title: c.message ?? "",
|
16164
16168
|
isInline: !0,
|
16165
|
-
style: { paddingLeft: h && t.onCancel ? 190 : void 0 }
|
16169
|
+
style: { paddingLeft: h && t.onCancel ? 190 : void 0 },
|
16170
|
+
isExpandable: "description" in c ? typeof c.description == "string" : !1,
|
16171
|
+
children: "description" in c && typeof c.description == "string" && c.description
|
16166
16172
|
}
|
16167
16173
|
),
|
16168
16174
|
t.onCancel ? /* @__PURE__ */ f.jsx("div", { className: "dark-2 border-top", style: { padding: s ? void 0 : 24 }, children: /* @__PURE__ */ f.jsxs(Ud, { style: { marginTop: 0 }, children: [
|
@@ -16570,8 +16576,8 @@ function D0(t, e) {
|
|
16570
16576
|
default: {
|
16571
16577
|
const E = r.get(v);
|
16572
16578
|
if (E) {
|
16573
|
-
const
|
16574
|
-
y[v] =
|
16579
|
+
const _ = E.split(",");
|
16580
|
+
y[v] = _;
|
16575
16581
|
}
|
16576
16582
|
}
|
16577
16583
|
}
|
@@ -16628,8 +16634,8 @@ function pb(t) {
|
|
16628
16634
|
if (V) {
|
16629
16635
|
const M = Ti(w, V.query);
|
16630
16636
|
if (typeof M == "string") {
|
16631
|
-
for (const
|
16632
|
-
if (M.toLowerCase().includes(
|
16637
|
+
for (const C of h[b])
|
16638
|
+
if (M.toLowerCase().includes(C.toLowerCase()))
|
16633
16639
|
return !0;
|
16634
16640
|
}
|
16635
16641
|
}
|
@@ -16637,8 +16643,8 @@ function pb(t) {
|
|
16637
16643
|
return !1;
|
16638
16644
|
});
|
16639
16645
|
}, [h, y, s]);
|
16640
|
-
const v = Qs(p.filtered), { setPage: E, setPerPage:
|
16641
|
-
je(() => E(o), [o, v, E]), je(() =>
|
16646
|
+
const v = Qs(p.filtered), { setPage: E, setPerPage: _ } = v;
|
16647
|
+
je(() => E(o), [o, v, E]), je(() => _(l), [l, v, _]);
|
16642
16648
|
const S = Dy(e, r);
|
16643
16649
|
return De(() => ({
|
16644
16650
|
itemCount: e ? p.filtered.length : void 0,
|