@oslokommune/punkt-react 13.0.3 → 13.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/punkt-react.es.js +398 -384
- package/dist/punkt-react.umd.js +126 -126
- package/package.json +2 -2
- package/src/components/checkbox/Checkbox.tsx +31 -6
- package/src/components/radio/RadioButton.tsx +22 -7
package/dist/punkt-react.es.js
CHANGED
|
@@ -96,11 +96,11 @@ var Xv = {};
|
|
|
96
96
|
var uE;
|
|
97
97
|
function QL() {
|
|
98
98
|
return uE || (uE = 1, process.env.NODE_ENV !== "production" && function() {
|
|
99
|
-
var r = cn, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), D = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), I = Symbol.iterator,
|
|
99
|
+
var r = cn, n = Symbol.for("react.element"), i = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), D = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), I = Symbol.iterator, X = "@@iterator";
|
|
100
100
|
function V(G) {
|
|
101
101
|
if (G === null || typeof G != "object")
|
|
102
102
|
return null;
|
|
103
|
-
var Fe = I && G[I] || G[
|
|
103
|
+
var Fe = I && G[I] || G[X];
|
|
104
104
|
return typeof Fe == "function" ? Fe : null;
|
|
105
105
|
}
|
|
106
106
|
var we = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -121,10 +121,10 @@ function QL() {
|
|
|
121
121
|
Bt.unshift("Warning: " + Fe), Function.prototype.apply.call(console[G], console, Bt);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
var K = !1,
|
|
124
|
+
var K = !1, J = !1, ae = !1, le = !1, Se = !1, ye;
|
|
125
125
|
ye = Symbol.for("react.module.reference");
|
|
126
126
|
function Ve(G) {
|
|
127
|
-
return !!(typeof G == "string" || typeof G == "function" || G === l || G === h || Se || G === c || G === E || G === $ || le || G === O || K ||
|
|
127
|
+
return !!(typeof G == "string" || typeof G == "function" || G === l || G === h || Se || G === c || G === E || G === $ || le || G === O || K || J || ae || typeof G == "object" && G !== null && (G.$$typeof === R || G.$$typeof === N || G.$$typeof === m || G.$$typeof === D || G.$$typeof === x || // This needs to include all possible module reference object
|
|
128
128
|
// types supported by any Flight configuration anywhere since
|
|
129
129
|
// we don't know which Flight build this will end up being used
|
|
130
130
|
// with.
|
|
@@ -706,7 +706,7 @@ const KL = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "cl
|
|
|
706
706
|
if ($.current === null) return;
|
|
707
707
|
const O = /* @__PURE__ */ new Map();
|
|
708
708
|
for (const I in R) dE($.current, I, D[I], E.current.get(I), l), E.current.delete(I), O.set(I, D[I]);
|
|
709
|
-
for (const [I,
|
|
709
|
+
for (const [I, X] of E.current) dE($.current, I, void 0, X, l);
|
|
710
710
|
E.current = O;
|
|
711
711
|
}), r.useLayoutEffect(() => {
|
|
712
712
|
var O;
|
|
@@ -1326,9 +1326,9 @@ function DO() {
|
|
|
1326
1326
|
}, enqueueForceUpdate: function() {
|
|
1327
1327
|
}, enqueueReplaceState: function() {
|
|
1328
1328
|
}, enqueueSetState: function() {
|
|
1329
|
-
} }, I = Object.assign,
|
|
1329
|
+
} }, I = Object.assign, X = {};
|
|
1330
1330
|
function V(Q, ce, rt) {
|
|
1331
|
-
this.props = Q, this.context = ce, this.refs =
|
|
1331
|
+
this.props = Q, this.context = ce, this.refs = X, this.updater = rt || O;
|
|
1332
1332
|
}
|
|
1333
1333
|
V.prototype.isReactComponent = {}, V.prototype.setState = function(Q, ce) {
|
|
1334
1334
|
if (typeof Q != "object" && typeof Q != "function" && Q != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
@@ -1340,14 +1340,14 @@ function DO() {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
we.prototype = V.prototype;
|
|
1342
1342
|
function q(Q, ce, rt) {
|
|
1343
|
-
this.props = Q, this.context = ce, this.refs =
|
|
1343
|
+
this.props = Q, this.context = ce, this.refs = X, this.updater = rt || O;
|
|
1344
1344
|
}
|
|
1345
1345
|
var W = q.prototype = new we();
|
|
1346
1346
|
W.constructor = q, I(W, V.prototype), W.isPureReactComponent = !0;
|
|
1347
|
-
var K = Array.isArray,
|
|
1347
|
+
var K = Array.isArray, J = Object.prototype.hasOwnProperty, ae = { current: null }, le = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1348
1348
|
function Se(Q, ce, rt) {
|
|
1349
1349
|
var Je, gt = {}, dt = null, ht = null;
|
|
1350
|
-
if (ce != null) for (Je in ce.ref !== void 0 && (ht = ce.ref), ce.key !== void 0 && (dt = "" + ce.key), ce)
|
|
1350
|
+
if (ce != null) for (Je in ce.ref !== void 0 && (ht = ce.ref), ce.key !== void 0 && (dt = "" + ce.key), ce) J.call(ce, Je) && !le.hasOwnProperty(Je) && (gt[Je] = ce[Je]);
|
|
1351
1351
|
var mt = arguments.length - 2;
|
|
1352
1352
|
if (mt === 1) gt.children = rt;
|
|
1353
1353
|
else if (1 < mt) {
|
|
@@ -1446,7 +1446,7 @@ function DO() {
|
|
|
1446
1446
|
var Je = I({}, Q.props), gt = Q.key, dt = Q.ref, ht = Q._owner;
|
|
1447
1447
|
if (ce != null) {
|
|
1448
1448
|
if (ce.ref !== void 0 && (dt = ce.ref, ht = ae.current), ce.key !== void 0 && (gt = "" + ce.key), Q.type && Q.type.defaultProps) var mt = Q.type.defaultProps;
|
|
1449
|
-
for (_t in ce)
|
|
1449
|
+
for (_t in ce) J.call(ce, _t) && !le.hasOwnProperty(_t) && (Je[_t] = ce[_t] === void 0 && mt !== void 0 ? mt[_t] : ce[_t]);
|
|
1450
1450
|
}
|
|
1451
1451
|
var _t = arguments.length - 2;
|
|
1452
1452
|
if (_t === 1) Je.children = rt;
|
|
@@ -1524,7 +1524,7 @@ function SO() {
|
|
|
1524
1524
|
return EE || (EE = 1, function(r, n) {
|
|
1525
1525
|
process.env.NODE_ENV !== "production" && function() {
|
|
1526
1526
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1527
|
-
var i = "18.3.1", l = Symbol.for("react.element"), c = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), E = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), I = Symbol.for("react.lazy"),
|
|
1527
|
+
var i = "18.3.1", l = Symbol.for("react.element"), c = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), D = Symbol.for("react.profiler"), x = Symbol.for("react.provider"), E = Symbol.for("react.context"), $ = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), X = Symbol.for("react.offscreen"), V = Symbol.iterator, we = "@@iterator";
|
|
1528
1528
|
function q(A) {
|
|
1529
1529
|
if (A === null || typeof A != "object")
|
|
1530
1530
|
return null;
|
|
@@ -1539,7 +1539,7 @@ function SO() {
|
|
|
1539
1539
|
current: null
|
|
1540
1540
|
}, K = {
|
|
1541
1541
|
transition: null
|
|
1542
|
-
},
|
|
1542
|
+
}, J = {
|
|
1543
1543
|
current: null,
|
|
1544
1544
|
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
1545
1545
|
isBatchingLegacy: !1,
|
|
@@ -1567,7 +1567,7 @@ function SO() {
|
|
|
1567
1567
|
ReactCurrentBatchConfig: K,
|
|
1568
1568
|
ReactCurrentOwner: ae
|
|
1569
1569
|
};
|
|
1570
|
-
it.ReactDebugCurrentFrame = le, it.ReactCurrentActQueue =
|
|
1570
|
+
it.ReactDebugCurrentFrame = le, it.ReactCurrentActQueue = J;
|
|
1571
1571
|
function Re(A) {
|
|
1572
1572
|
{
|
|
1573
1573
|
for (var Y = arguments.length, he = new Array(Y > 1 ? Y - 1 : 0), ke = 1; ke < Y; ke++)
|
|
@@ -2189,7 +2189,7 @@ Your code should look like:
|
|
|
2189
2189
|
var G;
|
|
2190
2190
|
G = Symbol.for("react.module.reference");
|
|
2191
2191
|
function Fe(A) {
|
|
2192
|
-
return !!(typeof A == "string" || typeof A == "function" || A === h || A === D || je || A === m || A === N || A === R || Xe || A ===
|
|
2192
|
+
return !!(typeof A == "string" || typeof A == "function" || A === h || A === D || je || A === m || A === N || A === R || Xe || A === X || Ve || He || Be || typeof A == "object" && A !== null && (A.$$typeof === I || A.$$typeof === O || A.$$typeof === x || A.$$typeof === E || A.$$typeof === $ || // This needs to include all possible module reference object
|
|
2193
2193
|
// types supported by any Flight configuration anywhere since
|
|
2194
2194
|
// we don't know which Flight build this will end up being used
|
|
2195
2195
|
// with.
|
|
@@ -2681,17 +2681,17 @@ Check the top-level render call using <` + he + ">.");
|
|
|
2681
2681
|
function Do(A) {
|
|
2682
2682
|
{
|
|
2683
2683
|
var Y = xi;
|
|
2684
|
-
xi++,
|
|
2685
|
-
var he =
|
|
2684
|
+
xi++, J.current === null && (J.current = []);
|
|
2685
|
+
var he = J.isBatchingLegacy, ke;
|
|
2686
2686
|
try {
|
|
2687
|
-
if (
|
|
2688
|
-
var Ue =
|
|
2689
|
-
Ue !== null && (
|
|
2687
|
+
if (J.isBatchingLegacy = !0, ke = A(), !he && J.didScheduleLegacyUpdate) {
|
|
2688
|
+
var Ue = J.current;
|
|
2689
|
+
Ue !== null && (J.didScheduleLegacyUpdate = !1, Qo(Ue));
|
|
2690
2690
|
}
|
|
2691
2691
|
} catch (Wt) {
|
|
2692
2692
|
throw Ci(Y), Wt;
|
|
2693
2693
|
} finally {
|
|
2694
|
-
|
|
2694
|
+
J.isBatchingLegacy = he;
|
|
2695
2695
|
}
|
|
2696
2696
|
if (ke !== null && typeof ke == "object" && typeof ke.then == "function") {
|
|
2697
2697
|
var Tt = ke, Qe = !1, At = {
|
|
@@ -2710,11 +2710,11 @@ Check the top-level render call using <` + he + ">.");
|
|
|
2710
2710
|
} else {
|
|
2711
2711
|
var on = ke;
|
|
2712
2712
|
if (Ci(Y), xi === 0) {
|
|
2713
|
-
var yn =
|
|
2714
|
-
yn !== null && (Qo(yn),
|
|
2713
|
+
var yn = J.current;
|
|
2714
|
+
yn !== null && (Qo(yn), J.current = null);
|
|
2715
2715
|
var zn = {
|
|
2716
2716
|
then: function(Wt, Hn) {
|
|
2717
|
-
|
|
2717
|
+
J.current === null ? (J.current = [], mu(on, Wt, Hn)) : Wt(on);
|
|
2718
2718
|
}
|
|
2719
2719
|
};
|
|
2720
2720
|
return zn;
|
|
@@ -2734,11 +2734,11 @@ Check the top-level render call using <` + he + ">.");
|
|
|
2734
2734
|
}
|
|
2735
2735
|
function mu(A, Y, he) {
|
|
2736
2736
|
{
|
|
2737
|
-
var ke =
|
|
2737
|
+
var ke = J.current;
|
|
2738
2738
|
if (ke !== null)
|
|
2739
2739
|
try {
|
|
2740
2740
|
Qo(ke), Nf(function() {
|
|
2741
|
-
ke.length === 0 ? (
|
|
2741
|
+
ke.length === 0 ? (J.current = null, Y(A)) : mu(A, Y, he);
|
|
2742
2742
|
});
|
|
2743
2743
|
} catch (Ue) {
|
|
2744
2744
|
he(Ue);
|
|
@@ -2836,7 +2836,7 @@ function xO() {
|
|
|
2836
2836
|
return m.now() - D;
|
|
2837
2837
|
};
|
|
2838
2838
|
}
|
|
2839
|
-
var x = [], E = [], $ = 1, N = null, R = 3, O = !1, I = !1,
|
|
2839
|
+
var x = [], E = [], $ = 1, N = null, R = 3, O = !1, I = !1, X = !1, V = typeof setTimeout == "function" ? setTimeout : null, we = typeof clearTimeout == "function" ? clearTimeout : null, q = typeof setImmediate < "u" ? setImmediate : null;
|
|
2840
2840
|
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
2841
2841
|
function W(ue) {
|
|
2842
2842
|
for (var Ne = i(E); Ne !== null; ) {
|
|
@@ -2847,14 +2847,14 @@ function xO() {
|
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
2849
|
function K(ue) {
|
|
2850
|
-
if (
|
|
2850
|
+
if (X = !1, W(ue), !I) if (i(x) !== null) I = !0, Re(J);
|
|
2851
2851
|
else {
|
|
2852
2852
|
var Ne = i(E);
|
|
2853
2853
|
Ne !== null && Ae(K, Ne.startTime - ue);
|
|
2854
2854
|
}
|
|
2855
2855
|
}
|
|
2856
|
-
function
|
|
2857
|
-
I = !1,
|
|
2856
|
+
function J(ue, Ne) {
|
|
2857
|
+
I = !1, X && (X = !1, we(Se), Se = -1), O = !0;
|
|
2858
2858
|
var xe = R;
|
|
2859
2859
|
try {
|
|
2860
2860
|
for (W(Ne), N = i(x); N !== null && (!(N.expirationTime > Ne) || ue && !He()); ) {
|
|
@@ -2915,7 +2915,7 @@ function xO() {
|
|
|
2915
2915
|
r.unstable_IdlePriority = 5, r.unstable_ImmediatePriority = 1, r.unstable_LowPriority = 4, r.unstable_NormalPriority = 3, r.unstable_Profiling = null, r.unstable_UserBlockingPriority = 2, r.unstable_cancelCallback = function(ue) {
|
|
2916
2916
|
ue.callback = null;
|
|
2917
2917
|
}, r.unstable_continueExecution = function() {
|
|
2918
|
-
I || O || (I = !0, Re(
|
|
2918
|
+
I || O || (I = !0, Re(J));
|
|
2919
2919
|
}, r.unstable_forceFrameRate = function(ue) {
|
|
2920
2920
|
0 > ue || 125 < ue ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : ye = 0 < ue ? Math.floor(1e3 / ue) : 5;
|
|
2921
2921
|
}, r.unstable_getCurrentPriorityLevel = function() {
|
|
@@ -2977,7 +2977,7 @@ function xO() {
|
|
|
2977
2977
|
default:
|
|
2978
2978
|
ce = 5e3;
|
|
2979
2979
|
}
|
|
2980
|
-
return ce = xe + ce, ue = { id: $++, callback: Ne, priorityLevel: ue, startTime: xe, expirationTime: ce, sortIndex: -1 }, xe > Q ? (ue.sortIndex = xe, n(E, ue), i(x) === null && ue === i(E) && (
|
|
2980
|
+
return ce = xe + ce, ue = { id: $++, callback: Ne, priorityLevel: ue, startTime: xe, expirationTime: ce, sortIndex: -1 }, xe > Q ? (ue.sortIndex = xe, n(E, ue), i(x) === null && ue === i(E) && (X ? (we(Se), Se = -1) : X = !0, Ae(K, xe - Q))) : (ue.sortIndex = ce, n(x, ue), I || O || (I = !0, Re(J))), ue;
|
|
2981
2981
|
}, r.unstable_shouldYield = He, r.unstable_wrapCallback = function(ue) {
|
|
2982
2982
|
var Ne = R;
|
|
2983
2983
|
return function() {
|
|
@@ -3047,9 +3047,9 @@ function CO() {
|
|
|
3047
3047
|
}
|
|
3048
3048
|
var E = 1, $ = 2, N = 3, R = 4, O = 5, I = typeof performance == "object" && typeof performance.now == "function";
|
|
3049
3049
|
if (I) {
|
|
3050
|
-
var
|
|
3050
|
+
var X = performance;
|
|
3051
3051
|
r.unstable_now = function() {
|
|
3052
|
-
return
|
|
3052
|
+
return X.now();
|
|
3053
3053
|
};
|
|
3054
3054
|
} else {
|
|
3055
3055
|
var V = Date, we = V.now();
|
|
@@ -3057,7 +3057,7 @@ function CO() {
|
|
|
3057
3057
|
return V.now() - we;
|
|
3058
3058
|
};
|
|
3059
3059
|
}
|
|
3060
|
-
var q = 1073741823, W = -1, K = 250,
|
|
3060
|
+
var q = 1073741823, W = -1, K = 250, J = 5e3, ae = 1e4, le = q, Se = [], ye = [], Ve = 1, He = null, Be = N, Xe = !1, je = !1, it = !1, Re = typeof setTimeout == "function" ? setTimeout : null, Ae = typeof clearTimeout == "function" ? clearTimeout : null, ue = typeof setImmediate < "u" ? setImmediate : null;
|
|
3061
3061
|
typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
|
|
3062
3062
|
function Ne(Ee) {
|
|
3063
3063
|
for (var Oe = c(ye); Oe !== null; ) {
|
|
@@ -3180,7 +3180,7 @@ function CO() {
|
|
|
3180
3180
|
break;
|
|
3181
3181
|
case N:
|
|
3182
3182
|
default:
|
|
3183
|
-
Cn =
|
|
3183
|
+
Cn = J;
|
|
3184
3184
|
break;
|
|
3185
3185
|
}
|
|
3186
3186
|
var Cr = Mt + Cn, gn = {
|
|
@@ -3323,29 +3323,29 @@ function _O() {
|
|
|
3323
3323
|
}
|
|
3324
3324
|
return !1;
|
|
3325
3325
|
}
|
|
3326
|
-
function
|
|
3326
|
+
function X(a, o, d, v, b, S, P) {
|
|
3327
3327
|
this.acceptsBooleans = o === 2 || o === 3 || o === 4, this.attributeName = v, this.attributeNamespace = b, this.mustUseProperty = d, this.propertyName = a, this.type = o, this.sanitizeURL = S, this.removeEmptyString = P;
|
|
3328
3328
|
}
|
|
3329
3329
|
var V = {};
|
|
3330
3330
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a) {
|
|
3331
|
-
V[a] = new
|
|
3331
|
+
V[a] = new X(a, 0, !1, a, null, !1, !1);
|
|
3332
3332
|
}), [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(a) {
|
|
3333
3333
|
var o = a[0];
|
|
3334
|
-
V[o] = new
|
|
3334
|
+
V[o] = new X(o, 1, !1, a[1], null, !1, !1);
|
|
3335
3335
|
}), ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(a) {
|
|
3336
|
-
V[a] = new
|
|
3336
|
+
V[a] = new X(a, 2, !1, a.toLowerCase(), null, !1, !1);
|
|
3337
3337
|
}), ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(a) {
|
|
3338
|
-
V[a] = new
|
|
3338
|
+
V[a] = new X(a, 2, !1, a, null, !1, !1);
|
|
3339
3339
|
}), "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a) {
|
|
3340
|
-
V[a] = new
|
|
3340
|
+
V[a] = new X(a, 3, !1, a.toLowerCase(), null, !1, !1);
|
|
3341
3341
|
}), ["checked", "multiple", "muted", "selected"].forEach(function(a) {
|
|
3342
|
-
V[a] = new
|
|
3342
|
+
V[a] = new X(a, 3, !0, a, null, !1, !1);
|
|
3343
3343
|
}), ["capture", "download"].forEach(function(a) {
|
|
3344
|
-
V[a] = new
|
|
3344
|
+
V[a] = new X(a, 4, !1, a, null, !1, !1);
|
|
3345
3345
|
}), ["cols", "rows", "size", "span"].forEach(function(a) {
|
|
3346
|
-
V[a] = new
|
|
3346
|
+
V[a] = new X(a, 6, !1, a, null, !1, !1);
|
|
3347
3347
|
}), ["rowSpan", "start"].forEach(function(a) {
|
|
3348
|
-
V[a] = new
|
|
3348
|
+
V[a] = new X(a, 5, !1, a.toLowerCase(), null, !1, !1);
|
|
3349
3349
|
});
|
|
3350
3350
|
var we = /[\-:]([a-z])/g;
|
|
3351
3351
|
function q(a) {
|
|
@@ -3356,23 +3356,23 @@ function _O() {
|
|
|
3356
3356
|
we,
|
|
3357
3357
|
q
|
|
3358
3358
|
);
|
|
3359
|
-
V[o] = new
|
|
3359
|
+
V[o] = new X(o, 1, !1, a, null, !1, !1);
|
|
3360
3360
|
}), "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a) {
|
|
3361
3361
|
var o = a.replace(we, q);
|
|
3362
|
-
V[o] = new
|
|
3362
|
+
V[o] = new X(o, 1, !1, a, "http://www.w3.org/1999/xlink", !1, !1);
|
|
3363
3363
|
}), ["xml:base", "xml:lang", "xml:space"].forEach(function(a) {
|
|
3364
3364
|
var o = a.replace(we, q);
|
|
3365
|
-
V[o] = new
|
|
3365
|
+
V[o] = new X(o, 1, !1, a, "http://www.w3.org/XML/1998/namespace", !1, !1);
|
|
3366
3366
|
}), ["tabIndex", "crossOrigin"].forEach(function(a) {
|
|
3367
|
-
V[a] = new
|
|
3368
|
-
}), V.xlinkHref = new
|
|
3369
|
-
V[a] = new
|
|
3367
|
+
V[a] = new X(a, 1, !1, a.toLowerCase(), null, !1, !1);
|
|
3368
|
+
}), V.xlinkHref = new X("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1), ["src", "href", "action", "formAction"].forEach(function(a) {
|
|
3369
|
+
V[a] = new X(a, 1, !1, a.toLowerCase(), null, !0, !0);
|
|
3370
3370
|
});
|
|
3371
3371
|
function W(a, o, d, v) {
|
|
3372
3372
|
var b = V.hasOwnProperty(o) ? V[o] : null;
|
|
3373
3373
|
(b !== null ? b.type !== 0 : v || !(2 < o.length) || o[0] !== "o" && o[0] !== "O" || o[1] !== "n" && o[1] !== "N") && (I(o, d, b, v) && (d = null), v || b === null ? R(o) && (d === null ? a.removeAttribute(o) : a.setAttribute(o, "" + d)) : b.mustUseProperty ? a[b.propertyName] = d === null ? b.type === 3 ? !1 : "" : d : (o = b.attributeName, v = b.attributeNamespace, d === null ? a.removeAttribute(o) : (b = b.type, d = b === 3 || b === 4 && d === !0 ? "" : "" + d, v ? a.setAttributeNS(v, o, d) : a.setAttribute(o, d))));
|
|
3374
3374
|
}
|
|
3375
|
-
var K = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
3375
|
+
var K = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, J = Symbol.for("react.element"), ae = Symbol.for("react.portal"), le = Symbol.for("react.fragment"), Se = Symbol.for("react.strict_mode"), ye = Symbol.for("react.profiler"), Ve = Symbol.for("react.provider"), He = Symbol.for("react.context"), Be = Symbol.for("react.forward_ref"), Xe = Symbol.for("react.suspense"), je = Symbol.for("react.suspense_list"), it = Symbol.for("react.memo"), Re = Symbol.for("react.lazy"), Ae = Symbol.for("react.offscreen"), ue = Symbol.iterator;
|
|
3376
3376
|
function Ne(a) {
|
|
3377
3377
|
return a === null || typeof a != "object" ? null : (a = ue && a[ue] || a["@@iterator"], typeof a == "function" ? a : null);
|
|
3378
3378
|
}
|
|
@@ -5321,7 +5321,7 @@ function _O() {
|
|
|
5321
5321
|
if (typeof ne == "string" && ne !== "" || typeof ne == "number") return ne = Zh("" + ne, oe.mode, ie), ne.return = oe, ne;
|
|
5322
5322
|
if (typeof ne == "object" && ne !== null) {
|
|
5323
5323
|
switch (ne.$$typeof) {
|
|
5324
|
-
case
|
|
5324
|
+
case J:
|
|
5325
5325
|
return ie = Xd(ne.type, ne.key, ne.props, null, oe.mode, ie), ie.ref = ls(oe, null, ne), ie.return = oe, ie;
|
|
5326
5326
|
case ae:
|
|
5327
5327
|
return ne = em(ne, oe.mode, ie), ne.return = oe, ne;
|
|
@@ -5339,7 +5339,7 @@ function _O() {
|
|
|
5339
5339
|
if (typeof ie == "string" && ie !== "" || typeof ie == "number") return wt !== null ? null : H(oe, ne, "" + ie, We);
|
|
5340
5340
|
if (typeof ie == "object" && ie !== null) {
|
|
5341
5341
|
switch (ie.$$typeof) {
|
|
5342
|
-
case
|
|
5342
|
+
case J:
|
|
5343
5343
|
return ie.key === wt ? Z(oe, ne, ie, We) : null;
|
|
5344
5344
|
case ae:
|
|
5345
5345
|
return ie.key === wt ? me(oe, ne, ie, We) : null;
|
|
@@ -5360,7 +5360,7 @@ function _O() {
|
|
|
5360
5360
|
if (typeof We == "string" && We !== "" || typeof We == "number") return oe = oe.get(ie) || null, H(ne, oe, "" + We, wt);
|
|
5361
5361
|
if (typeof We == "object" && We !== null) {
|
|
5362
5362
|
switch (We.$$typeof) {
|
|
5363
|
-
case
|
|
5363
|
+
case J:
|
|
5364
5364
|
return oe = oe.get(We.key === null ? ie : We.key) || null, Z(ne, oe, We, wt);
|
|
5365
5365
|
case ae:
|
|
5366
5366
|
return oe = oe.get(We.key === null ? ie : We.key) || null, me(ne, oe, We, wt);
|
|
@@ -5422,7 +5422,7 @@ function _O() {
|
|
|
5422
5422
|
function Wr(oe, ne, ie, We) {
|
|
5423
5423
|
if (typeof ie == "object" && ie !== null && ie.type === le && ie.key === null && (ie = ie.props.children), typeof ie == "object" && ie !== null) {
|
|
5424
5424
|
switch (ie.$$typeof) {
|
|
5425
|
-
case
|
|
5425
|
+
case J:
|
|
5426
5426
|
e: {
|
|
5427
5427
|
for (var wt = ie.key, Rt = ne; Rt !== null; ) {
|
|
5428
5428
|
if (Rt.key === wt) {
|
|
@@ -8477,7 +8477,7 @@ function EO() {
|
|
|
8477
8477
|
y.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, y);
|
|
8478
8478
|
}
|
|
8479
8479
|
}
|
|
8480
|
-
var x = 0, E = 1, $ = 2, N = 3, R = 4, O = 5, I = 6,
|
|
8480
|
+
var x = 0, E = 1, $ = 2, N = 3, R = 4, O = 5, I = 6, X = 7, V = 8, we = 9, q = 10, W = 11, K = 12, J = 13, ae = 14, le = 15, Se = 16, ye = 17, Ve = 18, He = 19, Be = 21, Xe = 22, je = 23, it = 24, Re = 25, Ae = !0, ue = !1, Ne = !1, xe = !1, Q = !1, ce = !0, rt = !0, Je = !0, gt = !0, dt = /* @__PURE__ */ new Set(), ht = {}, mt = {};
|
|
8481
8481
|
function _t(e, t) {
|
|
8482
8482
|
Kt(e, t), Kt(e + "Capture", t);
|
|
8483
8483
|
}
|
|
@@ -9220,7 +9220,7 @@ function EO() {
|
|
|
9220
9220
|
return za(e.type);
|
|
9221
9221
|
case Se:
|
|
9222
9222
|
return za("Lazy");
|
|
9223
|
-
case
|
|
9223
|
+
case J:
|
|
9224
9224
|
return za("Suspense");
|
|
9225
9225
|
case He:
|
|
9226
9226
|
return za("SuspenseList");
|
|
@@ -9326,7 +9326,7 @@ Error generating stack: ` + u.message + `
|
|
|
9326
9326
|
return "DehydratedFragment";
|
|
9327
9327
|
case W:
|
|
9328
9328
|
return ko(s, s.render, "ForwardRef");
|
|
9329
|
-
case
|
|
9329
|
+
case X:
|
|
9330
9330
|
return "Fragment";
|
|
9331
9331
|
case O:
|
|
9332
9332
|
return s;
|
|
@@ -9346,7 +9346,7 @@ Error generating stack: ` + u.message + `
|
|
|
9346
9346
|
return "Profiler";
|
|
9347
9347
|
case Be:
|
|
9348
9348
|
return "Scope";
|
|
9349
|
-
case
|
|
9349
|
+
case J:
|
|
9350
9350
|
return "Suspense";
|
|
9351
9351
|
case He:
|
|
9352
9352
|
return "SuspenseList";
|
|
@@ -10910,7 +10910,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
10910
10910
|
return t.tag === N ? s : null;
|
|
10911
10911
|
}
|
|
10912
10912
|
function Ao(e) {
|
|
10913
|
-
if (e.tag ===
|
|
10913
|
+
if (e.tag === J) {
|
|
10914
10914
|
var t = e.memoizedState;
|
|
10915
10915
|
if (t === null) {
|
|
10916
10916
|
var s = e.alternate;
|
|
@@ -11846,7 +11846,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
11846
11846
|
var s = oi(t);
|
|
11847
11847
|
if (s !== null) {
|
|
11848
11848
|
var u = s.tag;
|
|
11849
|
-
if (u ===
|
|
11849
|
+
if (u === J) {
|
|
11850
11850
|
var p = Ao(s);
|
|
11851
11851
|
if (p !== null) {
|
|
11852
11852
|
e.blockedOn = p, Vd(e.priority, function() {
|
|
@@ -12001,7 +12001,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
12001
12001
|
y = null;
|
|
12002
12002
|
else {
|
|
12003
12003
|
var _ = w.tag;
|
|
12004
|
-
if (_ ===
|
|
12004
|
+
if (_ === J) {
|
|
12005
12005
|
var F = Ao(w);
|
|
12006
12006
|
if (F !== null)
|
|
12007
12007
|
return F;
|
|
@@ -14172,7 +14172,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14172
14172
|
}
|
|
14173
14173
|
function ef(e) {
|
|
14174
14174
|
var t = e[cm] || e[sv];
|
|
14175
|
-
return t && (t.tag === O || t.tag === I || t.tag ===
|
|
14175
|
+
return t && (t.tag === O || t.tag === I || t.tag === J || t.tag === N) ? t : null;
|
|
14176
14176
|
}
|
|
14177
14177
|
function dm(e) {
|
|
14178
14178
|
if (e.tag === O || e.tag === I)
|
|
@@ -14471,7 +14471,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14471
14471
|
);
|
|
14472
14472
|
break;
|
|
14473
14473
|
}
|
|
14474
|
-
case
|
|
14474
|
+
case J: {
|
|
14475
14475
|
var u = e.memoizedState;
|
|
14476
14476
|
u.dehydrated !== null && BN(u.dehydrated, t);
|
|
14477
14477
|
break;
|
|
@@ -14535,7 +14535,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14535
14535
|
}
|
|
14536
14536
|
break;
|
|
14537
14537
|
}
|
|
14538
|
-
case
|
|
14538
|
+
case J: {
|
|
14539
14539
|
var fe = e.memoizedState, ge = fe.dehydrated;
|
|
14540
14540
|
if (ge !== null) switch (t.tag) {
|
|
14541
14541
|
case O:
|
|
@@ -14569,7 +14569,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14569
14569
|
var p = e.pendingProps, y = kN(t, p);
|
|
14570
14570
|
return y !== null ? (e.stateNode = y, si = e, Qs = null, !0) : !1;
|
|
14571
14571
|
}
|
|
14572
|
-
case
|
|
14572
|
+
case J: {
|
|
14573
14573
|
var w = wN(t);
|
|
14574
14574
|
if (w !== null) {
|
|
14575
14575
|
var _ = {
|
|
@@ -14663,7 +14663,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14663
14663
|
return AN(s);
|
|
14664
14664
|
}
|
|
14665
14665
|
function gC(e) {
|
|
14666
|
-
for (var t = e.return; t !== null && t.tag !== O && t.tag !== N && t.tag !==
|
|
14666
|
+
for (var t = e.return; t !== null && t.tag !== O && t.tag !== N && t.tag !== J; )
|
|
14667
14667
|
t = t.return;
|
|
14668
14668
|
si = t;
|
|
14669
14669
|
}
|
|
@@ -14681,7 +14681,7 @@ Check the render method of \`` + e + "`." : "";
|
|
|
14681
14681
|
for (; t; )
|
|
14682
14682
|
pC(e, t), t = ov(t);
|
|
14683
14683
|
}
|
|
14684
|
-
return gC(e), e.tag ===
|
|
14684
|
+
return gC(e), e.tag === J ? Qs = fP(e) : Qs = si ? ov(e.stateNode) : null, !0;
|
|
14685
14685
|
}
|
|
14686
14686
|
function pP() {
|
|
14687
14687
|
return Vl && Qs !== null;
|
|
@@ -14993,7 +14993,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
14993
14993
|
}
|
|
14994
14994
|
}
|
|
14995
14995
|
function M(se, Ce, de, ze, ut) {
|
|
14996
|
-
if (Ce === null || Ce.tag !==
|
|
14996
|
+
if (Ce === null || Ce.tag !== X) {
|
|
14997
14997
|
var ot = gf(de, se.mode, ze, ut);
|
|
14998
14998
|
return ot.return = se, ot;
|
|
14999
14999
|
} else {
|
|
@@ -15221,7 +15221,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15221
15221
|
if (ot.key === ut) {
|
|
15222
15222
|
var Ot = de.type;
|
|
15223
15223
|
if (Ot === vo) {
|
|
15224
|
-
if (ot.tag ===
|
|
15224
|
+
if (ot.tag === X) {
|
|
15225
15225
|
s(se, ot.sibling);
|
|
15226
15226
|
var Yt = p(ot, de.props.children);
|
|
15227
15227
|
return Yt.return = se, Yt._debugSource = de._source, Yt._debugOwner = de._owner, Yt;
|
|
@@ -15759,7 +15759,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
|
|
|
15759
15759
|
}
|
|
15760
15760
|
function ik(e) {
|
|
15761
15761
|
for (var t = e; t !== null; ) {
|
|
15762
|
-
if (t.tag ===
|
|
15762
|
+
if (t.tag === J) {
|
|
15763
15763
|
var s = t.memoizedState;
|
|
15764
15764
|
if (s !== null) {
|
|
15765
15765
|
var u = s.dehydrated;
|
|
@@ -17425,7 +17425,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
|
|
|
17425
17425
|
function b1(e) {
|
|
17426
17426
|
var t = e;
|
|
17427
17427
|
do {
|
|
17428
|
-
if (t.tag ===
|
|
17428
|
+
if (t.tag === J && $P(t))
|
|
17429
17429
|
return t;
|
|
17430
17430
|
t = t.return;
|
|
17431
17431
|
} while (t !== null);
|
|
@@ -18135,7 +18135,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18135
18135
|
}
|
|
18136
18136
|
function b3(e, t, s) {
|
|
18137
18137
|
for (var u = t; u !== null; ) {
|
|
18138
|
-
if (u.tag ===
|
|
18138
|
+
if (u.tag === J) {
|
|
18139
18139
|
var p = u.memoizedState;
|
|
18140
18140
|
p !== null && $1(u, s, e);
|
|
18141
18141
|
} else if (u.tag === He)
|
|
@@ -18392,7 +18392,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18392
18392
|
}
|
|
18393
18393
|
}
|
|
18394
18394
|
break;
|
|
18395
|
-
case
|
|
18395
|
+
case J: {
|
|
18396
18396
|
var F = t.memoizedState;
|
|
18397
18397
|
if (F !== null) {
|
|
18398
18398
|
if (F.dehydrated !== null)
|
|
@@ -18466,7 +18466,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18466
18466
|
return i3(e, t, s);
|
|
18467
18467
|
case I:
|
|
18468
18468
|
return o3(e, t);
|
|
18469
|
-
case
|
|
18469
|
+
case J:
|
|
18470
18470
|
return F1(e, t, s);
|
|
18471
18471
|
case R:
|
|
18472
18472
|
return x3(e, t, s);
|
|
@@ -18474,7 +18474,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18474
18474
|
var _e = t.type, nt = t.pendingProps, Dt = t.elementType === _e ? nt : Jl(_e, nt);
|
|
18475
18475
|
return w1(e, t, _e, Dt, s);
|
|
18476
18476
|
}
|
|
18477
|
-
case
|
|
18477
|
+
case X:
|
|
18478
18478
|
return t3(e, t, s);
|
|
18479
18479
|
case V:
|
|
18480
18480
|
return n3(e, t, s);
|
|
@@ -18624,7 +18624,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18624
18624
|
case le:
|
|
18625
18625
|
case x:
|
|
18626
18626
|
case W:
|
|
18627
|
-
case
|
|
18627
|
+
case X:
|
|
18628
18628
|
case V:
|
|
18629
18629
|
case K:
|
|
18630
18630
|
case we:
|
|
@@ -18683,7 +18683,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18683
18683
|
}
|
|
18684
18684
|
return ci(t), null;
|
|
18685
18685
|
}
|
|
18686
|
-
case
|
|
18686
|
+
case J: {
|
|
18687
18687
|
Dm(t);
|
|
18688
18688
|
var Pt = t.memoizedState;
|
|
18689
18689
|
if (e === null || e.memoizedState !== null && e.memoizedState.dehydrated !== null) {
|
|
@@ -18800,7 +18800,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18800
18800
|
}
|
|
18801
18801
|
case O:
|
|
18802
18802
|
return V0(t), null;
|
|
18803
|
-
case
|
|
18803
|
+
case J: {
|
|
18804
18804
|
Dm(t);
|
|
18805
18805
|
var w = t.memoizedState;
|
|
18806
18806
|
if (w !== null && w.dehydrated !== null) {
|
|
@@ -18845,7 +18845,7 @@ Check the render method of \`` + u + "`.");
|
|
|
18845
18845
|
case R:
|
|
18846
18846
|
km(t);
|
|
18847
18847
|
break;
|
|
18848
|
-
case
|
|
18848
|
+
case J:
|
|
18849
18849
|
Dm(t);
|
|
18850
18850
|
break;
|
|
18851
18851
|
case He:
|
|
@@ -19174,7 +19174,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19174
19174
|
}
|
|
19175
19175
|
break;
|
|
19176
19176
|
}
|
|
19177
|
-
case
|
|
19177
|
+
case J: {
|
|
19178
19178
|
G3(e, s);
|
|
19179
19179
|
break;
|
|
19180
19180
|
}
|
|
@@ -19612,7 +19612,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
|
|
|
19612
19612
|
eu(t, e), Zu(e);
|
|
19613
19613
|
return;
|
|
19614
19614
|
}
|
|
19615
|
-
case
|
|
19615
|
+
case J: {
|
|
19616
19616
|
eu(t, e), Zu(e);
|
|
19617
19617
|
var _e = e.child;
|
|
19618
19618
|
if (_e.flags & Rr) {
|
|
@@ -20675,7 +20675,7 @@ Error message:
|
|
|
20675
20675
|
function WR(e, t) {
|
|
20676
20676
|
var s = j, u;
|
|
20677
20677
|
switch (e.tag) {
|
|
20678
|
-
case
|
|
20678
|
+
case J:
|
|
20679
20679
|
u = e.stateNode;
|
|
20680
20680
|
var p = e.memoizedState;
|
|
20681
20681
|
p !== null && (s = p.retryLane);
|
|
@@ -21163,7 +21163,7 @@ Check the render method of \`` + B + "`.");
|
|
|
21163
21163
|
return _._debugSource = e._source, _._debugOwner = e._owner, _;
|
|
21164
21164
|
}
|
|
21165
21165
|
function gf(e, t, s, u) {
|
|
21166
|
-
var p = ys(
|
|
21166
|
+
var p = ys(X, e, u, t);
|
|
21167
21167
|
return p.lanes = s, p;
|
|
21168
21168
|
}
|
|
21169
21169
|
function uL(e, t, s, u) {
|
|
@@ -21175,7 +21175,7 @@ Check the render method of \`` + B + "`.");
|
|
|
21175
21175
|
}, p;
|
|
21176
21176
|
}
|
|
21177
21177
|
function cL(e, t, s, u) {
|
|
21178
|
-
var p = ys(
|
|
21178
|
+
var p = ys(J, e, u, t);
|
|
21179
21179
|
return p.elementType = Ze, p.lanes = s, p;
|
|
21180
21180
|
}
|
|
21181
21181
|
function dL(e, t, s, u) {
|
|
@@ -21344,7 +21344,7 @@ Check the render method of %s.`, Lt(ra) || "Unknown"));
|
|
|
21344
21344
|
}
|
|
21345
21345
|
break;
|
|
21346
21346
|
}
|
|
21347
|
-
case
|
|
21347
|
+
case J: {
|
|
21348
21348
|
sd(function() {
|
|
21349
21349
|
var p = Bo(e, U);
|
|
21350
21350
|
if (p !== null) {
|
|
@@ -21368,7 +21368,7 @@ Check the render method of %s.`, Lt(ra) || "Unknown"));
|
|
|
21368
21368
|
s && L_(s, t);
|
|
21369
21369
|
}
|
|
21370
21370
|
function yL(e) {
|
|
21371
|
-
if (e.tag ===
|
|
21371
|
+
if (e.tag === J) {
|
|
21372
21372
|
var t = up, s = Bo(e, t);
|
|
21373
21373
|
if (s !== null) {
|
|
21374
21374
|
var u = uo();
|
|
@@ -21378,7 +21378,7 @@ Check the render method of %s.`, Lt(ra) || "Unknown"));
|
|
|
21378
21378
|
}
|
|
21379
21379
|
}
|
|
21380
21380
|
function bL(e) {
|
|
21381
|
-
if (e.tag ===
|
|
21381
|
+
if (e.tag === J) {
|
|
21382
21382
|
var t = hf(e), s = Bo(e, t);
|
|
21383
21383
|
if (s !== null) {
|
|
21384
21384
|
var u = uo();
|
|
@@ -23895,23 +23895,23 @@ function fj(r, n, i) {
|
|
|
23895
23895
|
if (!fB(N))
|
|
23896
23896
|
throw new RangeError("Invalid time value");
|
|
23897
23897
|
let R = n.match(lj).map((I) => {
|
|
23898
|
-
const
|
|
23899
|
-
if (
|
|
23900
|
-
const V = ZB[
|
|
23898
|
+
const X = I[0];
|
|
23899
|
+
if (X === "p" || X === "P") {
|
|
23900
|
+
const V = ZB[X];
|
|
23901
23901
|
return V(I, x.formatLong);
|
|
23902
23902
|
}
|
|
23903
23903
|
return I;
|
|
23904
23904
|
}).join("").match(sj).map((I) => {
|
|
23905
23905
|
if (I === "''")
|
|
23906
23906
|
return { isToken: !1, value: "'" };
|
|
23907
|
-
const
|
|
23908
|
-
if (
|
|
23907
|
+
const X = I[0];
|
|
23908
|
+
if (X === "'")
|
|
23909
23909
|
return { isToken: !1, value: pj(I) };
|
|
23910
|
-
if (zE[
|
|
23910
|
+
if (zE[X])
|
|
23911
23911
|
return { isToken: !0, value: I };
|
|
23912
|
-
if (
|
|
23912
|
+
if (X.match(dj))
|
|
23913
23913
|
throw new RangeError(
|
|
23914
|
-
"Format string contains an unescaped latin alphabet character `" +
|
|
23914
|
+
"Format string contains an unescaped latin alphabet character `" + X + "`"
|
|
23915
23915
|
);
|
|
23916
23916
|
return { isToken: !1, value: I };
|
|
23917
23917
|
});
|
|
@@ -23923,10 +23923,10 @@ function fj(r, n, i) {
|
|
|
23923
23923
|
};
|
|
23924
23924
|
return R.map((I) => {
|
|
23925
23925
|
if (!I.isToken) return I.value;
|
|
23926
|
-
const
|
|
23927
|
-
(aj(
|
|
23928
|
-
const V = zE[
|
|
23929
|
-
return V(N,
|
|
23926
|
+
const X = I.value;
|
|
23927
|
+
(aj(X) || rj(X)) && ij(X, n, String(r));
|
|
23928
|
+
const V = zE[X[0]];
|
|
23929
|
+
return V(N, X, x.localize, O);
|
|
23930
23930
|
}).join("");
|
|
23931
23931
|
}
|
|
23932
23932
|
function pj(r) {
|
|
@@ -24996,21 +24996,21 @@ const XE = (r, n, i) => {
|
|
|
24996
24996
|
else if (D[N] === m[I]) x[I] = Vp(c[N], h[I]), Kv(r, x[I + 1], c[N]), N++, I--;
|
|
24997
24997
|
else if (D[R] === m[O]) x[O] = Vp(c[R], h[O]), Kv(r, c[N], c[R]), R--, O++;
|
|
24998
24998
|
else if (E === void 0 && (E = XE(m, O, I), $ = XE(D, N, R)), E.has(D[N])) if (E.has(D[R])) {
|
|
24999
|
-
const
|
|
24999
|
+
const X = $.get(m[O]), V = X !== void 0 ? c[X] : null;
|
|
25000
25000
|
if (V === null) {
|
|
25001
25001
|
const we = Kv(r, c[N]);
|
|
25002
25002
|
Vp(we, h[O]), x[O] = we;
|
|
25003
|
-
} else x[O] = Vp(V, h[O]), Kv(r, c[N], V), c[
|
|
25003
|
+
} else x[O] = Vp(V, h[O]), Kv(r, c[N], V), c[X] = null;
|
|
25004
25004
|
O++;
|
|
25005
25005
|
} else UD(c[R]), R--;
|
|
25006
25006
|
else UD(c[N]), N++;
|
|
25007
25007
|
for (; O <= I; ) {
|
|
25008
|
-
const
|
|
25009
|
-
Vp(
|
|
25008
|
+
const X = Kv(r, x[I + 1]);
|
|
25009
|
+
Vp(X, h[O]), x[O++] = X;
|
|
25010
25010
|
}
|
|
25011
25011
|
for (; N <= R; ) {
|
|
25012
|
-
const
|
|
25013
|
-
|
|
25012
|
+
const X = c[N++];
|
|
25013
|
+
X !== null && UD(X);
|
|
25014
25014
|
}
|
|
25015
25015
|
return this.ut = m, yF(r, x), Wo;
|
|
25016
25016
|
}
|
|
@@ -25056,7 +25056,7 @@ const XE = (r, n, i) => {
|
|
|
25056
25056
|
};
|
|
25057
25057
|
(function() {
|
|
25058
25058
|
(function(r) {
|
|
25059
|
-
const n = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(),
|
|
25059
|
+
const n = /* @__PURE__ */ new WeakMap(), i = /* @__PURE__ */ new WeakMap(), l = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakMap(), x = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap(), $ = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap(), O = /* @__PURE__ */ new WeakMap(), I = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), V = {
|
|
25060
25060
|
ariaAtomic: "aria-atomic",
|
|
25061
25061
|
ariaAutoComplete: "aria-autocomplete",
|
|
25062
25062
|
ariaBusy: "aria-busy",
|
|
@@ -25128,7 +25128,7 @@ const XE = (r, n, i) => {
|
|
|
25128
25128
|
const Ee = !ee || pe.disabled;
|
|
25129
25129
|
for (; $e; )
|
|
25130
25130
|
$e.formDisabledCallback && Ee && He($e, pe.disabled), $e = be.nextNode();
|
|
25131
|
-
}, K = { attributes: !0, attributeFilter: ["disabled", "name"] },
|
|
25131
|
+
}, K = { attributes: !0, attributeFilter: ["disabled", "name"] }, J = dt() ? new MutationObserver((pe) => {
|
|
25132
25132
|
for (const ee of pe) {
|
|
25133
25133
|
const be = ee.target;
|
|
25134
25134
|
if (ee.attributeName === "disabled" && (be.constructor.formAssociated ? He(be, be.hasAttribute("disabled")) : be.localName === "fieldset" && W(be)), ee.attributeName === "name" && be.constructor.formAssociated) {
|
|
@@ -25148,9 +25148,9 @@ const XE = (r, n, i) => {
|
|
|
25148
25148
|
Ve(Ye, V[Dn], Mt[Dn]);
|
|
25149
25149
|
}), $.delete(Ye);
|
|
25150
25150
|
}
|
|
25151
|
-
if (
|
|
25152
|
-
const Mt =
|
|
25153
|
-
Ve(Ye, "internals-valid", Mt.validity.valid.toString()), Ve(Ye, "internals-invalid", (!Mt.validity.valid).toString()), Ve(Ye, "aria-invalid", (!Mt.validity.valid).toString()),
|
|
25151
|
+
if (X.has(Ye)) {
|
|
25152
|
+
const Mt = X.get(Ye);
|
|
25153
|
+
Ve(Ye, "internals-valid", Mt.validity.valid.toString()), Ve(Ye, "internals-invalid", (!Mt.validity.valid).toString()), Ve(Ye, "aria-invalid", (!Mt.validity.valid).toString()), X.delete(Ye);
|
|
25154
25154
|
}
|
|
25155
25155
|
if (Ye.localName === "form") {
|
|
25156
25156
|
const Mt = x.get(Ye), Dn = document.createTreeWalker(Ye, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -25162,7 +25162,7 @@ const XE = (r, n, i) => {
|
|
|
25162
25162
|
for (; Cn; )
|
|
25163
25163
|
q(Cn), Cn = Dn.nextNode();
|
|
25164
25164
|
}
|
|
25165
|
-
Ye.localName === "fieldset" && ((Ct =
|
|
25165
|
+
Ye.localName === "fieldset" && ((Ct = J.observe) === null || Ct === void 0 || Ct.call(J, Ye, K), W(Ye, !0));
|
|
25166
25166
|
}), Oe.forEach((Ye) => {
|
|
25167
25167
|
const Ct = c.get(Ye);
|
|
25168
25168
|
Ct && l.get(Ct) && Be(Ct), D.has(Ye) && D.get(Ye).disconnect();
|
|
@@ -25200,7 +25200,7 @@ const XE = (r, n, i) => {
|
|
|
25200
25200
|
return be.type = "hidden", be.name = pe.getAttribute("name"), pe.after(be), l.get(ee).push(be), be;
|
|
25201
25201
|
}, je = (pe, ee) => {
|
|
25202
25202
|
var be;
|
|
25203
|
-
l.set(ee, []), (be =
|
|
25203
|
+
l.set(ee, []), (be = J.observe) === null || be === void 0 || be.call(J, pe, K);
|
|
25204
25204
|
}, it = (pe, ee) => {
|
|
25205
25205
|
if (ee.length) {
|
|
25206
25206
|
Array.from(ee).forEach(($e) => $e.addEventListener("click", pe.click.bind(pe)));
|
|
@@ -25435,7 +25435,7 @@ const XE = (r, n, i) => {
|
|
|
25435
25435
|
const { valid: Mt } = _t(Oe, Ct, this.form);
|
|
25436
25436
|
if (!Mt && !be)
|
|
25437
25437
|
throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");
|
|
25438
|
-
h.set(this, Mt ? "" : be), Ee.isConnected ? (Ee.toggleAttribute("internals-invalid", !Mt), Ee.toggleAttribute("internals-valid", Mt), Ve(Ee, "aria-invalid", `${!Mt}`)) :
|
|
25438
|
+
h.set(this, Mt ? "" : be), Ee.isConnected ? (Ee.toggleAttribute("internals-invalid", !Mt), Ee.toggleAttribute("internals-valid", Mt), Ve(Ee, "aria-invalid", `${!Mt}`)) : X.set(Ee, this);
|
|
25439
25439
|
}
|
|
25440
25440
|
get shadowRoot() {
|
|
25441
25441
|
const ee = n.get(this);
|
|
@@ -26751,11 +26751,11 @@ let Vr = class extends dn {
|
|
|
26751
26751
|
if (this.disabled) return;
|
|
26752
26752
|
this.touched = !0, this._userInfoMessage = "", this._addValueText = null;
|
|
26753
26753
|
const c = ((i = this.findValueInOptions(n)) == null ? void 0 : i.value) || null, h = this._value.includes(n || c || ""), m = !!c, D = ((l = this._options.find((V) => V.value === n)) == null ? void 0 : l.disabled) || !1, x = !(n != null && n.trim()), E = !this.multiple, $ = this.multiple, N = this.isMaxItemsReached();
|
|
26754
|
-
let R = !1, O = !0, I = "",
|
|
26755
|
-
D || (!m && this.allowUserInput && !x ? (this.addNewUserValue(n), I = "Ny verdi lagt til", R = !$) : !m && !this.allowUserInput ? (E && this._value[0] && this.removeValue(this._value[0]), O = !1, R = !0, I = "Ingen treff i søket") : h ? (this.removeValue(c), R = !0) : x && E ? (this.removeAllSelected(), R = !0) : E ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(c), R = !1, this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "", this.inputRef.value.blur())) : $ && !N ? (this.setSelected(c), R = !0) : $ && N ? (this._userInfoMessage = "Maks antall valg nådd", O = !1,
|
|
26754
|
+
let R = !1, O = !0, I = "", X = "";
|
|
26755
|
+
D || (!m && this.allowUserInput && !x ? (this.addNewUserValue(n), I = "Ny verdi lagt til", R = !$) : !m && !this.allowUserInput ? (E && this._value[0] && this.removeValue(this._value[0]), O = !1, R = !0, I = "Ingen treff i søket") : h ? (this.removeValue(c), R = !0) : x && E ? (this.removeAllSelected(), R = !0) : E ? (this._value[0] && this.removeSelected(this._value[0]), this.setSelected(c), R = !1, this.inputRef.value && this.inputRef.value.type !== "hidden" && (this.inputRef.value.value = "", this.inputRef.value.blur())) : $ && !N ? (this.setSelected(c), R = !0) : $ && N ? (this._userInfoMessage = "Maks antall valg nådd", O = !1, X = n) : (E && this.removeAllSelected(), this._userInfoMessage = "Ingen gyldig verdi valgt", O = !1, R = !0, X = n), this._isOptionsOpen = R, R || window.setTimeout(() => {
|
|
26756
26756
|
var V;
|
|
26757
26757
|
(V = this.focusRef.value) == null || V.focus();
|
|
26758
|
-
}, 0), this._userInfoMessage = I, this._search =
|
|
26758
|
+
}, 0), this._userInfoMessage = I, this._search = X || "", this.resetComboboxInput(O), $ && this.isMaxItemsReached());
|
|
26759
26759
|
}
|
|
26760
26760
|
setSelected(n) {
|
|
26761
26761
|
if (!this._value.includes(n)) {
|
|
@@ -28879,7 +28879,7 @@ const _f = xr(
|
|
|
28879
28879
|
loadingAnimationPath: R = window.pktAnimationPath,
|
|
28880
28880
|
...O
|
|
28881
28881
|
}, I) => {
|
|
28882
|
-
const
|
|
28882
|
+
const X = [
|
|
28883
28883
|
n,
|
|
28884
28884
|
"pkt-btn",
|
|
28885
28885
|
c && `pkt-btn--${c}`,
|
|
@@ -28896,7 +28896,7 @@ const _f = xr(
|
|
|
28896
28896
|
"aria-busy": $ || void 0,
|
|
28897
28897
|
"aria-disabled": N || void 0,
|
|
28898
28898
|
disabled: N,
|
|
28899
|
-
className:
|
|
28899
|
+
className: X,
|
|
28900
28900
|
type: m,
|
|
28901
28901
|
ref: I,
|
|
28902
28902
|
children: [
|
|
@@ -28931,13 +28931,26 @@ const VS = xr(
|
|
|
28931
28931
|
className: m,
|
|
28932
28932
|
isSwitch: D = !1,
|
|
28933
28933
|
hideLabel: x = !1,
|
|
28934
|
-
labelPosition: E,
|
|
28934
|
+
labelPosition: E = "right",
|
|
28935
28935
|
defaultChecked: $,
|
|
28936
28936
|
checked: N,
|
|
28937
28937
|
...R
|
|
28938
28938
|
}, O) => {
|
|
28939
|
-
const I = [m, "pkt-input-check"].filter(Boolean).join(" ")
|
|
28940
|
-
|
|
28939
|
+
const I = [m, "pkt-input-check"].filter(Boolean).join(" "), X = [
|
|
28940
|
+
"pkt-input-check__input-label",
|
|
28941
|
+
i ? "pkt-input-check__input-label--disabled" : "",
|
|
28942
|
+
`pkt-input-check__input-label--${E}`,
|
|
28943
|
+
x ? "pkt-sr-only" : ""
|
|
28944
|
+
].filter(Boolean).join(" "), V = [
|
|
28945
|
+
"pkt-input-check__input",
|
|
28946
|
+
n ? "pkt-input-check__input--tile" : "",
|
|
28947
|
+
i && n ? "pkt-input-check__input--tile-disabled" : ""
|
|
28948
|
+
].filter(Boolean).join(" ");
|
|
28949
|
+
return /* @__PURE__ */ L.jsx("div", { className: I, children: /* @__PURE__ */ L.jsxs("div", { className: V, children: [
|
|
28950
|
+
E === "left" && /* @__PURE__ */ L.jsxs("label", { className: X, htmlFor: r, children: [
|
|
28951
|
+
l,
|
|
28952
|
+
c && /* @__PURE__ */ L.jsx("div", { className: "pkt-input-check__input-helptext", children: c })
|
|
28953
|
+
] }),
|
|
28941
28954
|
/* @__PURE__ */ L.jsx(
|
|
28942
28955
|
"input",
|
|
28943
28956
|
{
|
|
@@ -28951,7 +28964,7 @@ const VS = xr(
|
|
|
28951
28964
|
...R
|
|
28952
28965
|
}
|
|
28953
28966
|
),
|
|
28954
|
-
/* @__PURE__ */ L.jsxs("label", { className:
|
|
28967
|
+
E === "right" && /* @__PURE__ */ L.jsxs("label", { className: X, htmlFor: r, children: [
|
|
28955
28968
|
l,
|
|
28956
28969
|
c && /* @__PURE__ */ L.jsx("div", { className: "pkt-input-check__input-helptext", children: c })
|
|
28957
28970
|
] })
|
|
@@ -29019,13 +29032,13 @@ const qH = ({
|
|
|
29019
29032
|
cookieDomain: N = null,
|
|
29020
29033
|
cookieSecure: R = null,
|
|
29021
29034
|
cookieExpiryDays: O = null,
|
|
29022
|
-
onToggleConsent: I = (
|
|
29023
|
-
console.log(
|
|
29035
|
+
onToggleConsent: I = (X) => {
|
|
29036
|
+
console.log(X.detail);
|
|
29024
29037
|
}
|
|
29025
29038
|
}) => {
|
|
29026
29039
|
var V, we;
|
|
29027
|
-
const
|
|
29028
|
-
return /* @__PURE__ */ L.jsx("footer", { className:
|
|
29040
|
+
const X = [l, "pkt-footer"].filter(Boolean).join(" ");
|
|
29041
|
+
return /* @__PURE__ */ L.jsx("footer", { className: X, "data-mode": "dark", children: /* @__PURE__ */ L.jsxs("div", { className: "pkt-footer__container", children: [
|
|
29029
29042
|
/* @__PURE__ */ L.jsxs("div", { className: "pkt-grid pkt-grid--rowgap-size-32 pkt-grid--gap-size-16", children: [
|
|
29030
29043
|
/* @__PURE__ */ L.jsxs("div", { className: "pkt-footer__column pkt-cell pkt-cell--span12 pkt-cell--span4-laptop-up", children: [
|
|
29031
29044
|
/* @__PURE__ */ L.jsx("h2", { className: "pkt-footer__title", children: r.title }),
|
|
@@ -29153,7 +29166,7 @@ const qH = ({
|
|
|
29153
29166
|
}) => {
|
|
29154
29167
|
const O = [R, "pkt-footer-simple"].filter(Boolean).join(" ");
|
|
29155
29168
|
return /* @__PURE__ */ L.jsx("footer", { className: O, "data-mode": "dark", children: /* @__PURE__ */ L.jsx("div", { className: "pkt-footer-simple__container", children: /* @__PURE__ */ L.jsxs("ul", { className: "pkt-footer-simple__list", children: [
|
|
29156
|
-
r.map((I,
|
|
29169
|
+
r.map((I, X) => /* @__PURE__ */ L.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ L.jsxs(
|
|
29157
29170
|
"a",
|
|
29158
29171
|
{
|
|
29159
29172
|
className: `pkt-footer-simple__link ${I.external ? " pkt-link--external" : ""}`,
|
|
@@ -29165,7 +29178,7 @@ const qH = ({
|
|
|
29165
29178
|
I.text
|
|
29166
29179
|
]
|
|
29167
29180
|
}
|
|
29168
|
-
) },
|
|
29181
|
+
) }, X)),
|
|
29169
29182
|
/* @__PURE__ */ L.jsx("li", { className: "pkt-footer-simple__list-item", children: /* @__PURE__ */ L.jsxs(
|
|
29170
29183
|
"a",
|
|
29171
29184
|
{
|
|
@@ -29261,7 +29274,7 @@ const su = /* @__PURE__ */ Dw(MI), YH = xr(
|
|
|
29261
29274
|
showLogOutButton: R = !1,
|
|
29262
29275
|
openMenu: O,
|
|
29263
29276
|
logOut: I,
|
|
29264
|
-
changeRepresentation:
|
|
29277
|
+
changeRepresentation: X,
|
|
29265
29278
|
children: V,
|
|
29266
29279
|
...we
|
|
29267
29280
|
}, q) => {
|
|
@@ -29269,7 +29282,7 @@ const su = /* @__PURE__ */ Dw(MI), YH = xr(
|
|
|
29269
29282
|
year: "numeric",
|
|
29270
29283
|
month: "long",
|
|
29271
29284
|
day: "numeric"
|
|
29272
|
-
}) : "", [h]), [K,
|
|
29285
|
+
}) : "", [h]), [K, J] = cn.useState(!1), [ae, le] = cn.useState(0), [Se, ye] = cn.useState(!1), Ve = cn.useRef(null);
|
|
29273
29286
|
cn.useEffect(() => (document && (document.addEventListener("mouseup", Be), window.addEventListener("scroll", Xe)), () => {
|
|
29274
29287
|
document && (document.removeEventListener("mouseup", Be), window.removeEventListener("scroll", Xe));
|
|
29275
29288
|
}));
|
|
@@ -29282,7 +29295,7 @@ const su = /* @__PURE__ */ Dw(MI), YH = xr(
|
|
|
29282
29295
|
const je = window.pageYOffset || document.documentElement.scrollTop;
|
|
29283
29296
|
if (je < 0 || Math.abs(je - ae) < 60)
|
|
29284
29297
|
return;
|
|
29285
|
-
|
|
29298
|
+
J(je > ae), le(je);
|
|
29286
29299
|
}
|
|
29287
29300
|
};
|
|
29288
29301
|
return /* @__PURE__ */ L.jsxs(
|
|
@@ -29389,7 +29402,7 @@ const su = /* @__PURE__ */ Dw(MI), YH = xr(
|
|
|
29389
29402
|
D.orgNumber
|
|
29390
29403
|
] })
|
|
29391
29404
|
] }),
|
|
29392
|
-
/* @__PURE__ */ L.jsx("ul", { className: "pkt-list mt-size-16", children: $ && /* @__PURE__ */ L.jsx("li", { children: /* @__PURE__ */ L.jsxs("button", { className: "pkt-link-button pkt-link", onClick:
|
|
29405
|
+
/* @__PURE__ */ L.jsx("ul", { className: "pkt-list mt-size-16", children: $ && /* @__PURE__ */ L.jsx("li", { children: /* @__PURE__ */ L.jsxs("button", { className: "pkt-link-button pkt-link", onClick: X, children: [
|
|
29393
29406
|
/* @__PURE__ */ L.jsx(Vn, { name: "cogwheel", className: "pkt-link__icon" }),
|
|
29394
29407
|
"Endre organisasjon"
|
|
29395
29408
|
] }) }) })
|
|
@@ -29467,13 +29480,13 @@ const $y = xr(
|
|
|
29467
29480
|
hasError: R = !1,
|
|
29468
29481
|
errorMessage: O,
|
|
29469
29482
|
disabled: I = !1,
|
|
29470
|
-
inline:
|
|
29483
|
+
inline: X = !1,
|
|
29471
29484
|
ariaDescribedby: V,
|
|
29472
29485
|
useWrapper: we = !0,
|
|
29473
29486
|
children: q,
|
|
29474
29487
|
className: W = "",
|
|
29475
29488
|
hasFieldset: K = !1,
|
|
29476
|
-
role:
|
|
29489
|
+
role: J = "group",
|
|
29477
29490
|
counterPosition: ae = "bottom"
|
|
29478
29491
|
}, le) => {
|
|
29479
29492
|
const [Se, ye] = nu(!1), Ve = x ? E : $ ? N : null, He = V || (i ? `${r}-helptext` : void 0), Be = !!h, Xe = Be && ae === "top", je = Be && ae === "bottom", it = () => ye((ce) => !ce), Re = [
|
|
@@ -29481,7 +29494,7 @@ const $y = xr(
|
|
|
29481
29494
|
W,
|
|
29482
29495
|
R ? "pkt-inputwrapper--error" : "",
|
|
29483
29496
|
I ? "pkt-inputwrapper--disabled" : "",
|
|
29484
|
-
|
|
29497
|
+
X ? "pkt-inputwrapper--inline" : ""
|
|
29485
29498
|
].filter(Boolean).join(" "), Ae = [
|
|
29486
29499
|
"pkt-tag",
|
|
29487
29500
|
"pkt-tag--small",
|
|
@@ -29536,7 +29549,7 @@ const $y = xr(
|
|
|
29536
29549
|
je && /* @__PURE__ */ L.jsx(ue, {}),
|
|
29537
29550
|
R && O && /* @__PURE__ */ L.jsx("div", { className: "pkt-inputwrapper__alert-wrapper", children: /* @__PURE__ */ L.jsx($F, { skin: "error", "aria-live": "assertive", role: "alert", id: `${r}-error`, compact: !0, children: O }) })
|
|
29538
29551
|
] });
|
|
29539
|
-
return /* @__PURE__ */ L.jsx("div", { className: Re, ref: le, role:
|
|
29552
|
+
return /* @__PURE__ */ L.jsx("div", { className: Re, ref: le, role: J, children: K ? /* @__PURE__ */ L.jsx("fieldset", { className: "pkt-inputwrapper__fieldset", "aria-describedby": He, children: Q }) : /* @__PURE__ */ L.jsx("div", { className: "pkt-inputwrapper__fieldset", children: Q }) });
|
|
29540
29553
|
}
|
|
29541
29554
|
);
|
|
29542
29555
|
$y.displayName = "PktInputWrapper";
|
|
@@ -29683,8 +29696,8 @@ function ow(r, n, i) {
|
|
|
29683
29696
|
return "{}";
|
|
29684
29697
|
ty.push(r);
|
|
29685
29698
|
var D = "{" + h.newLine + x.map(function($, N) {
|
|
29686
|
-
var R = x.length - 1 === N ? h.newLine : "," + h.newLineOrSpace, O = typeof $ == "symbol", I = !O && /^[a-z$_][a-z$_0-9]*$/i.test($.toString()),
|
|
29687
|
-
return c.transform && (V = c.transform(r, $, V)), h.indent + String(
|
|
29699
|
+
var R = x.length - 1 === N ? h.newLine : "," + h.newLineOrSpace, O = typeof $ == "symbol", I = !O && /^[a-z$_][a-z$_0-9]*$/i.test($.toString()), X = O || I ? $ : ow($, c), V = ow(r[$], c, i + c.indent);
|
|
29700
|
+
return c.transform && (V = c.transform(r, $, V)), h.indent + String(X) + ": " + V + R;
|
|
29688
29701
|
}).join("") + h.pad + "}";
|
|
29689
29702
|
return ty.pop(), m(D);
|
|
29690
29703
|
}
|
|
@@ -29709,7 +29722,7 @@ function oM() {
|
|
|
29709
29722
|
ZE = 1;
|
|
29710
29723
|
var r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), m = Symbol.for("react.context"), D = Symbol.for("react.server_context"), x = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), I;
|
|
29711
29724
|
I = Symbol.for("react.module.reference");
|
|
29712
|
-
function
|
|
29725
|
+
function X(V) {
|
|
29713
29726
|
if (typeof V == "object" && V !== null) {
|
|
29714
29727
|
var we = V.$$typeof;
|
|
29715
29728
|
switch (we) {
|
|
@@ -29744,32 +29757,32 @@ function oM() {
|
|
|
29744
29757
|
}, nr.isConcurrentMode = function() {
|
|
29745
29758
|
return !1;
|
|
29746
29759
|
}, nr.isContextConsumer = function(V) {
|
|
29747
|
-
return
|
|
29760
|
+
return X(V) === m;
|
|
29748
29761
|
}, nr.isContextProvider = function(V) {
|
|
29749
|
-
return
|
|
29762
|
+
return X(V) === h;
|
|
29750
29763
|
}, nr.isElement = function(V) {
|
|
29751
29764
|
return typeof V == "object" && V !== null && V.$$typeof === r;
|
|
29752
29765
|
}, nr.isForwardRef = function(V) {
|
|
29753
|
-
return
|
|
29766
|
+
return X(V) === x;
|
|
29754
29767
|
}, nr.isFragment = function(V) {
|
|
29755
|
-
return
|
|
29768
|
+
return X(V) === i;
|
|
29756
29769
|
}, nr.isLazy = function(V) {
|
|
29757
|
-
return
|
|
29770
|
+
return X(V) === R;
|
|
29758
29771
|
}, nr.isMemo = function(V) {
|
|
29759
|
-
return
|
|
29772
|
+
return X(V) === N;
|
|
29760
29773
|
}, nr.isPortal = function(V) {
|
|
29761
|
-
return
|
|
29774
|
+
return X(V) === n;
|
|
29762
29775
|
}, nr.isProfiler = function(V) {
|
|
29763
|
-
return
|
|
29776
|
+
return X(V) === c;
|
|
29764
29777
|
}, nr.isStrictMode = function(V) {
|
|
29765
|
-
return
|
|
29778
|
+
return X(V) === l;
|
|
29766
29779
|
}, nr.isSuspense = function(V) {
|
|
29767
|
-
return
|
|
29780
|
+
return X(V) === E;
|
|
29768
29781
|
}, nr.isSuspenseList = function(V) {
|
|
29769
|
-
return
|
|
29782
|
+
return X(V) === $;
|
|
29770
29783
|
}, nr.isValidElementType = function(V) {
|
|
29771
29784
|
return typeof V == "string" || typeof V == "function" || V === i || V === c || V === l || V === E || V === $ || V === O || typeof V == "object" && V !== null && (V.$$typeof === R || V.$$typeof === N || V.$$typeof === h || V.$$typeof === m || V.$$typeof === x || V.$$typeof === I || V.getModuleId !== void 0);
|
|
29772
|
-
}, nr.typeOf =
|
|
29785
|
+
}, nr.typeOf = X, nr;
|
|
29773
29786
|
}
|
|
29774
29787
|
var rr = {};
|
|
29775
29788
|
/**
|
|
@@ -29784,16 +29797,16 @@ var rr = {};
|
|
|
29784
29797
|
var eT;
|
|
29785
29798
|
function sM() {
|
|
29786
29799
|
return eT || (eT = 1, process.env.NODE_ENV !== "production" && function() {
|
|
29787
|
-
var r = !1, n = !1, i = !1, l = !1, c = !1, h = Symbol.for("react.element"), m = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), N = Symbol.for("react.context"), R = Symbol.for("react.server_context"), O = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"),
|
|
29800
|
+
var r = !1, n = !1, i = !1, l = !1, c = !1, h = Symbol.for("react.element"), m = Symbol.for("react.portal"), D = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), N = Symbol.for("react.context"), R = Symbol.for("react.server_context"), O = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), X = Symbol.for("react.suspense_list"), V = Symbol.for("react.memo"), we = Symbol.for("react.lazy"), q = Symbol.for("react.offscreen"), W;
|
|
29788
29801
|
W = Symbol.for("react.module.reference");
|
|
29789
29802
|
function K(at) {
|
|
29790
|
-
return !!(typeof at == "string" || typeof at == "function" || at === D || at === E || c || at === x || at === I || at ===
|
|
29803
|
+
return !!(typeof at == "string" || typeof at == "function" || at === D || at === E || c || at === x || at === I || at === X || l || at === q || r || n || i || typeof at == "object" && at !== null && (at.$$typeof === we || at.$$typeof === V || at.$$typeof === $ || at.$$typeof === N || at.$$typeof === O || // This needs to include all possible module reference object
|
|
29791
29804
|
// types supported by any Flight configuration anywhere since
|
|
29792
29805
|
// we don't know which Flight build this will end up being used
|
|
29793
29806
|
// with.
|
|
29794
29807
|
at.$$typeof === W || at.getModuleId !== void 0));
|
|
29795
29808
|
}
|
|
29796
|
-
function
|
|
29809
|
+
function J(at) {
|
|
29797
29810
|
if (typeof at == "object" && at !== null) {
|
|
29798
29811
|
var In = at.$$typeof;
|
|
29799
29812
|
switch (In) {
|
|
@@ -29804,7 +29817,7 @@ function sM() {
|
|
|
29804
29817
|
case E:
|
|
29805
29818
|
case x:
|
|
29806
29819
|
case I:
|
|
29807
|
-
case
|
|
29820
|
+
case X:
|
|
29808
29821
|
return wn;
|
|
29809
29822
|
default:
|
|
29810
29823
|
var ar = wn && wn.$$typeof;
|
|
@@ -29825,7 +29838,7 @@ function sM() {
|
|
|
29825
29838
|
}
|
|
29826
29839
|
}
|
|
29827
29840
|
}
|
|
29828
|
-
var ae = N, le = $, Se = h, ye = O, Ve = D, He = we, Be = V, Xe = m, je = E, it = x, Re = I, Ae =
|
|
29841
|
+
var ae = N, le = $, Se = h, ye = O, Ve = D, He = we, Be = V, Xe = m, je = E, it = x, Re = I, Ae = X, ue = !1, Ne = !1;
|
|
29829
29842
|
function xe(at) {
|
|
29830
29843
|
return ue || (ue = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
29831
29844
|
}
|
|
@@ -29833,42 +29846,42 @@ function sM() {
|
|
|
29833
29846
|
return Ne || (Ne = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
29834
29847
|
}
|
|
29835
29848
|
function ce(at) {
|
|
29836
|
-
return
|
|
29849
|
+
return J(at) === N;
|
|
29837
29850
|
}
|
|
29838
29851
|
function rt(at) {
|
|
29839
|
-
return
|
|
29852
|
+
return J(at) === $;
|
|
29840
29853
|
}
|
|
29841
29854
|
function Je(at) {
|
|
29842
29855
|
return typeof at == "object" && at !== null && at.$$typeof === h;
|
|
29843
29856
|
}
|
|
29844
29857
|
function gt(at) {
|
|
29845
|
-
return
|
|
29858
|
+
return J(at) === O;
|
|
29846
29859
|
}
|
|
29847
29860
|
function dt(at) {
|
|
29848
|
-
return
|
|
29861
|
+
return J(at) === D;
|
|
29849
29862
|
}
|
|
29850
29863
|
function ht(at) {
|
|
29851
|
-
return
|
|
29864
|
+
return J(at) === we;
|
|
29852
29865
|
}
|
|
29853
29866
|
function mt(at) {
|
|
29854
|
-
return
|
|
29867
|
+
return J(at) === V;
|
|
29855
29868
|
}
|
|
29856
29869
|
function _t(at) {
|
|
29857
|
-
return
|
|
29870
|
+
return J(at) === m;
|
|
29858
29871
|
}
|
|
29859
29872
|
function Kt(at) {
|
|
29860
|
-
return
|
|
29873
|
+
return J(at) === E;
|
|
29861
29874
|
}
|
|
29862
29875
|
function It(at) {
|
|
29863
|
-
return
|
|
29876
|
+
return J(at) === x;
|
|
29864
29877
|
}
|
|
29865
29878
|
function jn(at) {
|
|
29866
|
-
return
|
|
29879
|
+
return J(at) === I;
|
|
29867
29880
|
}
|
|
29868
29881
|
function Ft(at) {
|
|
29869
|
-
return
|
|
29882
|
+
return J(at) === X;
|
|
29870
29883
|
}
|
|
29871
|
-
rr.ContextConsumer = ae, rr.ContextProvider = le, rr.Element = Se, rr.ForwardRef = ye, rr.Fragment = Ve, rr.Lazy = He, rr.Memo = Be, rr.Portal = Xe, rr.Profiler = je, rr.StrictMode = it, rr.Suspense = Re, rr.SuspenseList = Ae, rr.isAsyncMode = xe, rr.isConcurrentMode = Q, rr.isContextConsumer = ce, rr.isContextProvider = rt, rr.isElement = Je, rr.isForwardRef = gt, rr.isFragment = dt, rr.isLazy = ht, rr.isMemo = mt, rr.isPortal = _t, rr.isProfiler = Kt, rr.isStrictMode = It, rr.isSuspense = jn, rr.isSuspenseList = Ft, rr.isValidElementType = K, rr.typeOf =
|
|
29884
|
+
rr.ContextConsumer = ae, rr.ContextProvider = le, rr.Element = Se, rr.ForwardRef = ye, rr.Fragment = Ve, rr.Lazy = He, rr.Memo = Be, rr.Portal = Xe, rr.Profiler = je, rr.StrictMode = it, rr.Suspense = Re, rr.SuspenseList = Ae, rr.isAsyncMode = xe, rr.isConcurrentMode = Q, rr.isContextConsumer = ce, rr.isContextProvider = rt, rr.isElement = Je, rr.isForwardRef = gt, rr.isFragment = dt, rr.isLazy = ht, rr.isMemo = mt, rr.isPortal = _t, rr.isProfiler = Kt, rr.isStrictMode = It, rr.isSuspense = jn, rr.isSuspenseList = Ft, rr.isValidElementType = K, rr.typeOf = J;
|
|
29872
29885
|
}()), rr;
|
|
29873
29886
|
}
|
|
29874
29887
|
process.env.NODE_ENV === "production" ? gS.exports = oM() : gS.exports = sM();
|
|
@@ -30094,17 +30107,17 @@ var AM = function(n, i, l, c, h) {
|
|
|
30094
30107
|
var c = r.type, h = r.displayName, m = h === void 0 ? "" : h, D = r.childrens, x = r.props, E = x === void 0 ? {} : x, $ = r.defaultProps, N = $ === void 0 ? {} : $;
|
|
30095
30108
|
if (c !== "ReactElement")
|
|
30096
30109
|
throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(c));
|
|
30097
|
-
var R = l.filterProps, O = l.maxInlineAttributesLineLength, I = l.showDefaultProps,
|
|
30110
|
+
var R = l.filterProps, O = l.maxInlineAttributesLineLength, I = l.showDefaultProps, X = l.sortProps, V = l.tabStop, we = "<".concat(m), q = we, W = we, K = !1, J = [], ae = FM(E, R);
|
|
30098
30111
|
Object.keys(E).filter(ae).filter(NM(N, E)).forEach(function(ye) {
|
|
30099
|
-
return
|
|
30112
|
+
return J.push(ye);
|
|
30100
30113
|
}), Object.keys(N).filter(ae).filter(function() {
|
|
30101
30114
|
return I;
|
|
30102
30115
|
}).filter(function(ye) {
|
|
30103
|
-
return !
|
|
30116
|
+
return !J.includes(ye);
|
|
30104
30117
|
}).forEach(function(ye) {
|
|
30105
|
-
return
|
|
30118
|
+
return J.push(ye);
|
|
30106
30119
|
});
|
|
30107
|
-
var le = TM(
|
|
30120
|
+
var le = TM(X)(J);
|
|
30108
30121
|
if (le.forEach(function(ye) {
|
|
30109
30122
|
var Ve = CM(ye, Object.keys(E).includes(ye), E[ye], Object.keys(N).includes(ye), N[ye], n, i, l), He = Ve.attributeFormattedInline, Be = Ve.attributeFormattedMultiline, Xe = Ve.isMultilineAttribute;
|
|
30110
30123
|
Xe && (K = !0), q += He, W += Be;
|
|
@@ -30163,7 +30176,7 @@ var AM = function(n, i, l, c, h) {
|
|
|
30163
30176
|
}, HM = function(r, n) {
|
|
30164
30177
|
return Fw(r, !1, 0, n);
|
|
30165
30178
|
}, WM = function(n) {
|
|
30166
|
-
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = i.filterProps, c = l === void 0 ? [] : l, h = i.showDefaultProps, m = h === void 0 ? !0 : h, D = i.showFunctions, x = D === void 0 ? !1 : D, E = i.functionValue, $ = i.tabStop, N = $ === void 0 ? 2 : $, R = i.useBooleanShorthandSyntax, O = R === void 0 ? !0 : R, I = i.useFragmentShortSyntax,
|
|
30179
|
+
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = i.filterProps, c = l === void 0 ? [] : l, h = i.showDefaultProps, m = h === void 0 ? !0 : h, D = i.showFunctions, x = D === void 0 ? !1 : D, E = i.functionValue, $ = i.tabStop, N = $ === void 0 ? 2 : $, R = i.useBooleanShorthandSyntax, O = R === void 0 ? !0 : R, I = i.useFragmentShortSyntax, X = I === void 0 ? !0 : I, V = i.sortProps, we = V === void 0 ? !0 : V, q = i.maxInlineAttributesLineLength, W = i.displayName;
|
|
30167
30180
|
if (!n)
|
|
30168
30181
|
throw new Error("react-element-to-jsx-string: Expected a ReactElement");
|
|
30169
30182
|
var K = {
|
|
@@ -30173,7 +30186,7 @@ var AM = function(n, i, l, c, h) {
|
|
|
30173
30186
|
functionValue: E,
|
|
30174
30187
|
tabStop: N,
|
|
30175
30188
|
useBooleanShorthandSyntax: O,
|
|
30176
|
-
useFragmentShortSyntax:
|
|
30189
|
+
useFragmentShortSyntax: X,
|
|
30177
30190
|
sortProps: we,
|
|
30178
30191
|
maxInlineAttributesLineLength: q,
|
|
30179
30192
|
displayName: W
|
|
@@ -30196,40 +30209,40 @@ var AM = function(n, i, l, c, h) {
|
|
|
30196
30209
|
}
|
|
30197
30210
|
var i = /\r\n|[\n\r\u2028\u2029]/;
|
|
30198
30211
|
function l(h, m, D) {
|
|
30199
|
-
let x = Object.assign({ column: 0, line: -1 }, h.start), E = Object.assign({}, x, h.end), { linesAbove: $ = 2, linesBelow: N = 3 } = D || {}, R = x.line, O = x.column, I = E.line,
|
|
30212
|
+
let x = Object.assign({ column: 0, line: -1 }, h.start), E = Object.assign({}, x, h.end), { linesAbove: $ = 2, linesBelow: N = 3 } = D || {}, R = x.line, O = x.column, I = E.line, X = E.column, V = Math.max(R - ($ + 1), 0), we = Math.min(m.length, I + N);
|
|
30200
30213
|
R === -1 && (V = 0), I === -1 && (we = m.length);
|
|
30201
30214
|
let q = I - R, W = {};
|
|
30202
30215
|
if (q) for (let K = 0; K <= q; K++) {
|
|
30203
|
-
let
|
|
30204
|
-
if (!O) W[
|
|
30216
|
+
let J = K + R;
|
|
30217
|
+
if (!O) W[J] = !0;
|
|
30205
30218
|
else if (K === 0) {
|
|
30206
|
-
let ae = m[
|
|
30207
|
-
W[
|
|
30208
|
-
} else if (K === q) W[
|
|
30219
|
+
let ae = m[J - 1].length;
|
|
30220
|
+
W[J] = [O, ae - O + 1];
|
|
30221
|
+
} else if (K === q) W[J] = [0, X];
|
|
30209
30222
|
else {
|
|
30210
|
-
let ae = m[
|
|
30211
|
-
W[
|
|
30223
|
+
let ae = m[J - K].length;
|
|
30224
|
+
W[J] = [0, ae];
|
|
30212
30225
|
}
|
|
30213
30226
|
}
|
|
30214
|
-
else O ===
|
|
30227
|
+
else O === X ? O ? W[R] = [O, 0] : W[R] = !0 : W[R] = [O, X - O];
|
|
30215
30228
|
return { start: V, end: we, markerLines: W };
|
|
30216
30229
|
}
|
|
30217
30230
|
function c(h, m, D = {}) {
|
|
30218
|
-
let x = n(), E = h.split(i), { start: $, end: N, markerLines: R } = l(m, E, D), O = m.start && typeof m.start.column == "number", I = String(N).length,
|
|
30219
|
-
let q = $ + 1 + we, W = ` ${` ${q}`.slice(-I)} |`, K = R[q],
|
|
30231
|
+
let x = n(), E = h.split(i), { start: $, end: N, markerLines: R } = l(m, E, D), O = m.start && typeof m.start.column == "number", I = String(N).length, X = h.split(i, N).slice($, N).map((V, we) => {
|
|
30232
|
+
let q = $ + 1 + we, W = ` ${` ${q}`.slice(-I)} |`, K = R[q], J = !R[q + 1];
|
|
30220
30233
|
if (K) {
|
|
30221
30234
|
let ae = "";
|
|
30222
30235
|
if (Array.isArray(K)) {
|
|
30223
30236
|
let le = V.slice(0, Math.max(K[0] - 1, 0)).replace(/[^\t]/g, " "), Se = K[1] || 1;
|
|
30224
30237
|
ae = [`
|
|
30225
|
-
`, x.gutter(W.replace(/\d/g, " ")), " ", le, x.marker("^").repeat(Se)].join(""),
|
|
30238
|
+
`, x.gutter(W.replace(/\d/g, " ")), " ", le, x.marker("^").repeat(Se)].join(""), J && D.message && (ae += " " + x.message(D.message));
|
|
30226
30239
|
}
|
|
30227
30240
|
return [x.marker(">"), x.gutter(W), V.length > 0 ? ` ${V}` : "", ae].join("");
|
|
30228
30241
|
} else return ` ${x.gutter(W)}${V.length > 0 ? ` ${V}` : ""}`;
|
|
30229
30242
|
}).join(`
|
|
30230
30243
|
`);
|
|
30231
|
-
return D.message && !O && (
|
|
30232
|
-
${
|
|
30244
|
+
return D.message && !O && (X = `${" ".repeat(I + 1)}${D.message}
|
|
30245
|
+
${X}`), X;
|
|
30233
30246
|
}
|
|
30234
30247
|
r.codeFrameColumns = c;
|
|
30235
30248
|
}), e4 = {};
|
|
@@ -30253,23 +30266,23 @@ dc.prototype = { diff: function(r, n) {
|
|
|
30253
30266
|
l.maxEditLength != null && ($ = Math.min($, l.maxEditLength));
|
|
30254
30267
|
var N = (i = l.timeout) !== null && i !== void 0 ? i : 1 / 0, R = Date.now() + N, O = [{ oldPos: -1, lastComponent: void 0 }], I = this.extractCommon(O[0], n, r, 0, l);
|
|
30255
30268
|
if (O[0].oldPos + 1 >= x && I + 1 >= D) return m(oT(h, O[0].lastComponent, n, r, h.useLongestToken));
|
|
30256
|
-
var
|
|
30269
|
+
var X = -1 / 0, V = 1 / 0;
|
|
30257
30270
|
function we() {
|
|
30258
|
-
for (var W = Math.max(
|
|
30259
|
-
var K = void 0,
|
|
30260
|
-
|
|
30271
|
+
for (var W = Math.max(X, -E); W <= Math.min(V, E); W += 2) {
|
|
30272
|
+
var K = void 0, J = O[W - 1], ae = O[W + 1];
|
|
30273
|
+
J && (O[W - 1] = void 0);
|
|
30261
30274
|
var le = !1;
|
|
30262
30275
|
if (ae) {
|
|
30263
30276
|
var Se = ae.oldPos - W;
|
|
30264
30277
|
le = ae && 0 <= Se && Se < D;
|
|
30265
30278
|
}
|
|
30266
|
-
var ye =
|
|
30279
|
+
var ye = J && J.oldPos + 1 < x;
|
|
30267
30280
|
if (!le && !ye) {
|
|
30268
30281
|
O[W] = void 0;
|
|
30269
30282
|
continue;
|
|
30270
30283
|
}
|
|
30271
|
-
if (!ye || le &&
|
|
30272
|
-
O[W] = K, K.oldPos + 1 >= x && (V = Math.min(V, W - 1)), I + 1 >= D && (
|
|
30284
|
+
if (!ye || le && J.oldPos < ae.oldPos ? K = h.addToPath(ae, !0, !1, 0, l) : K = h.addToPath(J, !1, !0, 1, l), I = h.extractCommon(K, n, r, W, l), K.oldPos + 1 >= x && I + 1 >= D) return m(oT(h, K.lastComponent, n, r, h.useLongestToken));
|
|
30285
|
+
O[W] = K, K.oldPos + 1 >= x && (V = Math.min(V, W - 1)), I + 1 >= D && (X = Math.max(X, W + 1));
|
|
30273
30286
|
}
|
|
30274
30287
|
E++;
|
|
30275
30288
|
}
|
|
@@ -30313,8 +30326,8 @@ function oT(r, n, i, l, c) {
|
|
|
30313
30326
|
if (!N.added && c) {
|
|
30314
30327
|
var R = i.slice(E, E + N.count);
|
|
30315
30328
|
R = R.map(function(O, I) {
|
|
30316
|
-
var
|
|
30317
|
-
return
|
|
30329
|
+
var X = l[$ + I];
|
|
30330
|
+
return X.length > O.length ? X : O;
|
|
30318
30331
|
}), N.value = r.join(R);
|
|
30319
30332
|
} else N.value = r.join(i.slice(E, E + N.count));
|
|
30320
30333
|
E += N.count, N.added || ($ += N.count);
|
|
@@ -30416,7 +30429,7 @@ function cT(r, n, i, l) {
|
|
|
30416
30429
|
var I = lT(ry($, O), R);
|
|
30417
30430
|
n.value = Qk(n.value, I), l.value = bS(l.value, $, I), r.value = kS(r.value, $, $.slice(0, $.length - I.length));
|
|
30418
30431
|
} else if (l) {
|
|
30419
|
-
var
|
|
30432
|
+
var X = l.value.match(/^\s*/)[0], V = n.value.match(/\s*$/)[0], we = uT(V, X);
|
|
30420
30433
|
n.value = Qk(n.value, we);
|
|
30421
30434
|
} else if (r) {
|
|
30422
30435
|
var q = r.value.match(/\s*$/)[0], W = n.value.match(/^\s*/)[0], K = uT(q, W);
|
|
@@ -31052,14 +31065,14 @@ function Lw(r, n) {
|
|
|
31052
31065
|
let { ind: R, mode: O, doc: I } = m.pop();
|
|
31053
31066
|
switch (ph(I)) {
|
|
31054
31067
|
case dh: {
|
|
31055
|
-
let
|
|
31068
|
+
let X = c !== `
|
|
31056
31069
|
` ? $w(!1, I, `
|
|
31057
31070
|
`, c) : I;
|
|
31058
|
-
D.push(
|
|
31071
|
+
D.push(X), m.length > 0 && (h += rx(X));
|
|
31059
31072
|
break;
|
|
31060
31073
|
}
|
|
31061
31074
|
case md:
|
|
31062
|
-
for (let
|
|
31075
|
+
for (let X = I.length - 1; X >= 0; X--) m.push({ ind: R, mode: O, doc: I[X] });
|
|
31063
31076
|
break;
|
|
31064
31077
|
case fh:
|
|
31065
31078
|
if ($ >= 2) throw new Error("There are too many 'cursor' in doc.");
|
|
@@ -31083,8 +31096,8 @@ function Lw(r, n) {
|
|
|
31083
31096
|
}
|
|
31084
31097
|
case Ho: {
|
|
31085
31098
|
x = !1;
|
|
31086
|
-
let
|
|
31087
|
-
if (!I.break && Kk(
|
|
31099
|
+
let X = { ind: R, mode: rc, doc: I.contents }, V = l - h, we = E.length > 0;
|
|
31100
|
+
if (!I.break && Kk(X, m, V, we, i)) m.push(X);
|
|
31088
31101
|
else if (I.expandedStates) {
|
|
31089
31102
|
let q = Ka(!1, I.expandedStates, -1);
|
|
31090
31103
|
if (I.break) {
|
|
@@ -31094,9 +31107,9 @@ function Lw(r, n) {
|
|
|
31094
31107
|
m.push({ ind: R, mode: Ho, doc: q });
|
|
31095
31108
|
break;
|
|
31096
31109
|
} else {
|
|
31097
|
-
let K = I.expandedStates[W],
|
|
31098
|
-
if (Kk(
|
|
31099
|
-
m.push(
|
|
31110
|
+
let K = I.expandedStates[W], J = { ind: R, mode: rc, doc: K };
|
|
31111
|
+
if (Kk(J, m, V, we, i)) {
|
|
31112
|
+
m.push(J);
|
|
31100
31113
|
break;
|
|
31101
31114
|
}
|
|
31102
31115
|
}
|
|
@@ -31107,30 +31120,30 @@ function Lw(r, n) {
|
|
|
31107
31120
|
I.id && (i[I.id] = Ka(!1, m, -1).mode);
|
|
31108
31121
|
break;
|
|
31109
31122
|
case fc: {
|
|
31110
|
-
let
|
|
31123
|
+
let X = l - h, V = I[xS] ?? 0, { parts: we } = I, q = we.length - V;
|
|
31111
31124
|
if (q === 0) break;
|
|
31112
|
-
let W = we[V + 0], K = we[V + 1],
|
|
31125
|
+
let W = we[V + 0], K = we[V + 1], J = { ind: R, mode: rc, doc: W }, ae = { ind: R, mode: Ho, doc: W }, le = Kk(J, [], X, E.length > 0, i, !0);
|
|
31113
31126
|
if (q === 1) {
|
|
31114
|
-
le ? m.push(
|
|
31127
|
+
le ? m.push(J) : m.push(ae);
|
|
31115
31128
|
break;
|
|
31116
31129
|
}
|
|
31117
31130
|
let Se = { ind: R, mode: rc, doc: K }, ye = { ind: R, mode: Ho, doc: K };
|
|
31118
31131
|
if (q === 2) {
|
|
31119
|
-
le ? m.push(Se,
|
|
31132
|
+
le ? m.push(Se, J) : m.push(ye, ae);
|
|
31120
31133
|
break;
|
|
31121
31134
|
}
|
|
31122
31135
|
let Ve = we[V + 2], He = { ind: R, mode: O, doc: { ...I, [xS]: V + 2 } };
|
|
31123
|
-
Kk({ ind: R, mode: rc, doc: [W, K, Ve] }, [],
|
|
31136
|
+
Kk({ ind: R, mode: rc, doc: [W, K, Ve] }, [], X, E.length > 0, i, !0) ? m.push(He, Se, J) : le ? m.push(He, ye, J) : m.push(He, ye, ae);
|
|
31124
31137
|
break;
|
|
31125
31138
|
}
|
|
31126
31139
|
case Ds:
|
|
31127
31140
|
case kd: {
|
|
31128
|
-
let
|
|
31129
|
-
if (
|
|
31141
|
+
let X = I.groupId ? i[I.groupId] : O;
|
|
31142
|
+
if (X === Ho) {
|
|
31130
31143
|
let V = I.type === Ds ? I.breakContents : I.negate ? I.contents : kw(I.contents);
|
|
31131
31144
|
V && m.push({ ind: R, mode: O, doc: V });
|
|
31132
31145
|
}
|
|
31133
|
-
if (
|
|
31146
|
+
if (X === rc) {
|
|
31134
31147
|
let V = I.type === Ds ? I.flatContents : I.negate ? kw(I.contents) : I.contents;
|
|
31135
31148
|
V && m.push({ ind: R, mode: O, doc: V });
|
|
31136
31149
|
}
|
|
@@ -31173,8 +31186,8 @@ function Lw(r, n) {
|
|
|
31173
31186
|
if (N !== -1) {
|
|
31174
31187
|
let R = D.indexOf(Hm, N + 1);
|
|
31175
31188
|
if (R === -1) return { formatted: D.filter((V) => V !== Hm).join("") };
|
|
31176
|
-
let O = D.slice(0, N).join(""), I = D.slice(N + 1, R).join(""),
|
|
31177
|
-
return { formatted: O + I +
|
|
31189
|
+
let O = D.slice(0, N).join(""), I = D.slice(N + 1, R).join(""), X = D.slice(R + 1).join("");
|
|
31190
|
+
return { formatted: O + I + X, cursorNodeStart: O.length, cursorNodeText: I };
|
|
31178
31191
|
}
|
|
31179
31192
|
return { formatted: D.join("") };
|
|
31180
31193
|
}
|
|
@@ -31407,13 +31420,13 @@ function ox(r, n) {
|
|
|
31407
31420
|
function nA(r, n, i, l) {
|
|
31408
31421
|
let { locStart: c, locEnd: h } = i, m = c(n), D = h(n), x = ox(r, i), E, $, N = 0, R = x.length;
|
|
31409
31422
|
for (; N < R; ) {
|
|
31410
|
-
let O = N + R >> 1, I = x[O],
|
|
31411
|
-
if (
|
|
31423
|
+
let O = N + R >> 1, I = x[O], X = c(I), V = h(I);
|
|
31424
|
+
if (X <= m && D <= V) return nA(I, n, i, I);
|
|
31412
31425
|
if (V <= m) {
|
|
31413
31426
|
E = I, N = O + 1;
|
|
31414
31427
|
continue;
|
|
31415
31428
|
}
|
|
31416
|
-
if (D <=
|
|
31429
|
+
if (D <= X) {
|
|
31417
31430
|
$ = I, R = O;
|
|
31418
31431
|
continue;
|
|
31419
31432
|
}
|
|
@@ -31431,24 +31444,24 @@ function u8(r, n) {
|
|
|
31431
31444
|
if (delete r.comments, !i8(i) || !n.printer.canAttachComment) return;
|
|
31432
31445
|
let l = [], { locStart: c, locEnd: h, printer: { experimentalFeatures: { avoidAstMutation: m = !1 } = {}, handleComments: D = {} }, originalText: x } = n, { ownLine: E = tS, endOfLine: $ = tS, remaining: N = tS } = D, R = i.map((O, I) => ({ ...nA(r, O, n), comment: O, text: x, options: n, ast: r, isLastComment: i.length - 1 === I }));
|
|
31433
31446
|
for (let [O, I] of R.entries()) {
|
|
31434
|
-
let { comment:
|
|
31447
|
+
let { comment: X, precedingNode: V, enclosingNode: we, followingNode: q, text: W, options: K, ast: J, isLastComment: ae } = I;
|
|
31435
31448
|
if (K.parser === "json" || K.parser === "json5" || K.parser === "jsonc" || K.parser === "__js_expression" || K.parser === "__ts_expression" || K.parser === "__vue_expression" || K.parser === "__vue_ts_expression") {
|
|
31436
|
-
if (c(
|
|
31437
|
-
Wm(
|
|
31449
|
+
if (c(X) - c(J) <= 0) {
|
|
31450
|
+
Wm(J, X);
|
|
31438
31451
|
continue;
|
|
31439
31452
|
}
|
|
31440
|
-
if (h(
|
|
31441
|
-
qm(
|
|
31453
|
+
if (h(X) - h(J) >= 0) {
|
|
31454
|
+
qm(J, X);
|
|
31442
31455
|
continue;
|
|
31443
31456
|
}
|
|
31444
31457
|
}
|
|
31445
31458
|
let le;
|
|
31446
|
-
if (m ? le = [I] : (
|
|
31447
|
-
else if (d8(W, K, R, O))
|
|
31448
|
-
else if (
|
|
31459
|
+
if (m ? le = [I] : (X.enclosingNode = we, X.precedingNode = V, X.followingNode = q, le = [X, W, K, J, ae]), c8(W, K, R, O)) X.placement = "ownLine", E(...le) || (q ? Wm(q, X) : V ? qm(V, X) : Kp(we || J, X));
|
|
31460
|
+
else if (d8(W, K, R, O)) X.placement = "endOfLine", $(...le) || (V ? qm(V, X) : q ? Wm(q, X) : Kp(we || J, X));
|
|
31461
|
+
else if (X.placement = "remaining", !N(...le)) if (V && q) {
|
|
31449
31462
|
let Se = l.length;
|
|
31450
31463
|
Se > 0 && l[Se - 1].followingNode !== q && hT(l, K), l.push(I);
|
|
31451
|
-
} else V ? qm(V,
|
|
31464
|
+
} else V ? qm(V, X) : q ? Wm(q, X) : Kp(we || J, X);
|
|
31452
31465
|
}
|
|
31453
31466
|
if (hT(l, n), !m) for (let O of i) delete O.precedingNode, delete O.enclosingNode, delete O.followingNode;
|
|
31454
31467
|
}
|
|
@@ -31920,10 +31933,10 @@ var H8 = class extends Ff {
|
|
|
31920
31933
|
let O = CT(m.deprecated(N, this._utils), D, !0);
|
|
31921
31934
|
if (O !== !1) if (O === !0) this._hasDeprecationWarned(h) || this._utils.logger.warn(this._deprecatedHandler(h, R, this._utils));
|
|
31922
31935
|
else for (let { value: I } of O) {
|
|
31923
|
-
let
|
|
31924
|
-
if (!this._hasDeprecationWarned(
|
|
31936
|
+
let X = { key: h, value: I };
|
|
31937
|
+
if (!this._hasDeprecationWarned(X)) {
|
|
31925
31938
|
let V = typeof R == "string" ? { key: R, value: I } : R;
|
|
31926
|
-
this._utils.logger.warn(this._deprecatedHandler(
|
|
31939
|
+
this._utils.logger.warn(this._deprecatedHandler(X, V, this._utils));
|
|
31927
31940
|
}
|
|
31928
31941
|
}
|
|
31929
31942
|
};
|
|
@@ -31989,7 +32002,7 @@ function Q8(r, n, { logger: i = !1, isCLI: l = !1, passThrough: c = !1, FlagSche
|
|
|
31989
32002
|
if (!m) throw new Error("'descriptor' option is required.");
|
|
31990
32003
|
} else m = Vm;
|
|
31991
32004
|
let D = c ? Array.isArray(c) ? (R, O) => c.includes(R) ? { [R]: O } : void 0 : (R, O) => ({ [R]: O }) : (R, O, I) => {
|
|
31992
|
-
let { _:
|
|
32005
|
+
let { _: X, ...V } = I.schemas;
|
|
31993
32006
|
return cA(R, O, { ...I, schemas: V });
|
|
31994
32007
|
}, x = K8(n, { isCLI: l, FlagSchema: h }), E = new J8(x, { logger: i, unknown: D, descriptor: m }), $ = i !== !1;
|
|
31995
32008
|
$ && aS && (E._hasDeprecationWarned = aS);
|
|
@@ -32111,28 +32124,28 @@ async function l6(r, n, i, l, c) {
|
|
|
32111
32124
|
let E = Bw(m.getVisitorKeys ?? x), $ = [];
|
|
32112
32125
|
O();
|
|
32113
32126
|
let N = r.stack;
|
|
32114
|
-
for (let { print: I, node:
|
|
32127
|
+
for (let { print: I, node: X, pathStack: V } of $) try {
|
|
32115
32128
|
r.stack = V;
|
|
32116
32129
|
let we = await I(R, n, r, i);
|
|
32117
|
-
we && c.set(
|
|
32130
|
+
we && c.set(X, we);
|
|
32118
32131
|
} catch (we) {
|
|
32119
32132
|
if (globalThis.PRETTIER_DEBUG) throw we;
|
|
32120
32133
|
}
|
|
32121
32134
|
r.stack = N;
|
|
32122
|
-
function R(I,
|
|
32123
|
-
return u6(I,
|
|
32135
|
+
function R(I, X) {
|
|
32136
|
+
return u6(I, X, i, l);
|
|
32124
32137
|
}
|
|
32125
32138
|
function O() {
|
|
32126
32139
|
let { node: I } = r;
|
|
32127
32140
|
if (I === null || typeof I != "object" || D(r)) return;
|
|
32128
32141
|
for (let V of E(I)) Array.isArray(I[V]) ? r.each(O, V) : r.call(O, V);
|
|
32129
|
-
let
|
|
32130
|
-
if (
|
|
32131
|
-
if (typeof
|
|
32132
|
-
$.push({ print:
|
|
32142
|
+
let X = m(r, i);
|
|
32143
|
+
if (X) {
|
|
32144
|
+
if (typeof X == "function") {
|
|
32145
|
+
$.push({ print: X, node: I, pathStack: [...r.stack] });
|
|
32133
32146
|
return;
|
|
32134
32147
|
}
|
|
32135
|
-
c.set(I,
|
|
32148
|
+
c.set(I, X);
|
|
32136
32149
|
}
|
|
32137
32150
|
}
|
|
32138
32151
|
}
|
|
@@ -32196,14 +32209,14 @@ function f6(r, n) {
|
|
|
32196
32209
|
for (; x.length > 0 && (E === void 0 || $ === void 0); ) {
|
|
32197
32210
|
D = x.pop();
|
|
32198
32211
|
let O = E !== void 0, I = $ !== void 0;
|
|
32199
|
-
for (let
|
|
32212
|
+
for (let X of Ow(D, { getVisitorKeys: h })) {
|
|
32200
32213
|
if (!O) {
|
|
32201
|
-
let V = c(
|
|
32202
|
-
V <= i && V > N && (E =
|
|
32214
|
+
let V = c(X);
|
|
32215
|
+
V <= i && V > N && (E = X, N = V);
|
|
32203
32216
|
}
|
|
32204
32217
|
if (!I) {
|
|
32205
|
-
let V = l(
|
|
32206
|
-
V >= i && V < R && ($ =
|
|
32218
|
+
let V = l(X);
|
|
32219
|
+
V >= i && V < R && ($ = X, R = V);
|
|
32207
32220
|
}
|
|
32208
32221
|
}
|
|
32209
32222
|
}
|
|
@@ -32336,8 +32349,8 @@ async function bA(r, n, i = 0) {
|
|
|
32336
32349
|
if (E === N) return { formatted: m.formatted, cursorOffset: $ + R, comments: D };
|
|
32337
32350
|
let O = E.split("");
|
|
32338
32351
|
O.splice(R, 0, PT);
|
|
32339
|
-
let I = N.split(""),
|
|
32340
|
-
for (let we of
|
|
32352
|
+
let I = N.split(""), X = s4(O, I), V = $;
|
|
32353
|
+
for (let we of X) if (we.removed) {
|
|
32341
32354
|
if (we.value.includes(PT)) break;
|
|
32342
32355
|
} else V += we.count;
|
|
32343
32356
|
return { formatted: m.formatted, cursorOffset: V, comments: D };
|
|
@@ -32522,11 +32535,11 @@ var o5 = Zp(oA, 0), s5 = { parse: Zp(C6), formatAST: Zp(_6), formatDoc: Zp(E6),
|
|
|
32522
32535
|
}, E = (f, g, k, C) => {
|
|
32523
32536
|
if (g && typeof g == "object" || typeof g == "function") for (let T of c(g)) !h.call(f, T) && T !== k && i(f, T, { get: () => g[T], enumerable: !(C = l(g, T)) || C.enumerable });
|
|
32524
32537
|
return f;
|
|
32525
|
-
}, $ = (f) => E(i({}, "__esModule", { value: !0 }), f), N = (f, g, k) => D(f, typeof g != "symbol" ? g + "" : g, k), R = (f, g, k) => g.has(f) || m("Cannot " + k), O = (f, g, k) => (R(f, g, "read from private field"), k ? k.call(f) : g.get(f)), I = (f, g, k) => g.has(f) ? m("Cannot add the same private member more than once") : g instanceof WeakSet ? g.add(f) : g.set(f, k),
|
|
32538
|
+
}, $ = (f) => E(i({}, "__esModule", { value: !0 }), f), N = (f, g, k) => D(f, typeof g != "symbol" ? g + "" : g, k), R = (f, g, k) => g.has(f) || m("Cannot " + k), O = (f, g, k) => (R(f, g, "read from private field"), k ? k.call(f) : g.get(f)), I = (f, g, k) => g.has(f) ? m("Cannot add the same private member more than once") : g instanceof WeakSet ? g.add(f) : g.set(f, k), X = (f, g, k, C) => (R(f, g, "write to private field"), g.set(f, k), k), V = {};
|
|
32526
32539
|
x(V, { languages: () => Sc, options: () => wg, parsers: () => Xf, printers: () => Or });
|
|
32527
32540
|
var we = (f, g, k, C) => {
|
|
32528
32541
|
if (!(f && g == null)) return g.replaceAll ? g.replaceAll(k, C) : k.global ? g.replace(k, C) : g.split(k).join(C);
|
|
32529
|
-
}, q = we, W = "string", K = "array",
|
|
32542
|
+
}, q = we, W = "string", K = "array", J = "cursor", ae = "indent", le = "align", Se = "trim", ye = "group", Ve = "fill", He = "if-break", Be = "indent-if-break", Xe = "line-suffix", je = "line-suffix-boundary", it = "line", Re = "label", Ae = "break-parent", ue = /* @__PURE__ */ new Set([J, ae, le, Se, ye, Ve, He, Be, Xe, je, it, Re, Ae]), Ne = (f, g, k) => {
|
|
32530
32543
|
if (!(f && g == null)) return Array.isArray(g) || typeof g == "string" ? g[k < 0 ? g.length + k : k] : g.at(k);
|
|
32531
32544
|
}, xe = Ne;
|
|
32532
32545
|
function Q(f) {
|
|
@@ -32583,7 +32596,7 @@ Expected it to be ${C}.`;
|
|
|
32583
32596
|
case Xe:
|
|
32584
32597
|
return g({ ...j, contents: C(j.contents) });
|
|
32585
32598
|
case W:
|
|
32586
|
-
case
|
|
32599
|
+
case J:
|
|
32587
32600
|
case Se:
|
|
32588
32601
|
case je:
|
|
32589
32602
|
case it:
|
|
@@ -32643,7 +32656,7 @@ Expected it to be ${C}.`;
|
|
|
32643
32656
|
}
|
|
32644
32657
|
var Ct, Mt = class {
|
|
32645
32658
|
constructor(f) {
|
|
32646
|
-
I(this, Ct),
|
|
32659
|
+
I(this, Ct), X(this, Ct, new Set(f));
|
|
32647
32660
|
}
|
|
32648
32661
|
getLeadingWhitespaceCount(f) {
|
|
32649
32662
|
let g = O(this, Ct), k = 0;
|
|
@@ -35282,11 +35295,11 @@ function NA(r) {
|
|
|
35282
35295
|
return q.split(".").forEach(function(W) {
|
|
35283
35296
|
we.includes(W) || we.push(W);
|
|
35284
35297
|
}), we;
|
|
35285
|
-
}, []), I = D.className && D.className.includes("token") ? ["token"] : [],
|
|
35298
|
+
}, []), I = D.className && D.className.includes("token") ? ["token"] : [], X = D.className && I.concat(D.className.filter(function(we) {
|
|
35286
35299
|
return !O.includes(we);
|
|
35287
35300
|
}));
|
|
35288
35301
|
R = Gm(Gm({}, D), {}, {
|
|
35289
|
-
className: IT(
|
|
35302
|
+
className: IT(X) || void 0,
|
|
35290
35303
|
style: b5(D.className, Object.assign({}, D.style, c), i)
|
|
35291
35304
|
});
|
|
35292
35305
|
}
|
|
@@ -35383,8 +35396,8 @@ function RA(r, n, i) {
|
|
|
35383
35396
|
function cw(r) {
|
|
35384
35397
|
var n = r.children, i = r.lineNumber, l = r.lineNumberStyle, c = r.largestLineNumber, h = r.showInlineLineNumbers, m = r.lineProps, D = m === void 0 ? {} : m, x = r.className, E = x === void 0 ? [] : x, $ = r.showLineNumbers, N = r.wrapLongLines, R = r.wrapLines, O = R === void 0 ? !1 : R, I = O ? kf({}, typeof D == "function" ? D(i) : D) : {};
|
|
35385
35398
|
if (I.className = I.className ? [].concat(RS(I.className.trim().split(/\s+/)), RS(E)) : E, i && h) {
|
|
35386
|
-
var
|
|
35387
|
-
n.unshift(PA(i,
|
|
35399
|
+
var X = RA(l, i, c);
|
|
35400
|
+
n.unshift(PA(i, X));
|
|
35388
35401
|
}
|
|
35389
35402
|
return N & $ && (I.style = kf({
|
|
35390
35403
|
display: "flex"
|
|
@@ -35414,10 +35427,10 @@ function LA(r) {
|
|
|
35414
35427
|
}
|
|
35415
35428
|
function T5(r, n, i, l, c, h, m, D, x) {
|
|
35416
35429
|
var E, $ = LA(r.value), N = [], R = -1, O = 0;
|
|
35417
|
-
function I(
|
|
35430
|
+
function I(J, ae) {
|
|
35418
35431
|
var le = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
35419
35432
|
return cw({
|
|
35420
|
-
children:
|
|
35433
|
+
children: J,
|
|
35421
35434
|
lineNumber: ae,
|
|
35422
35435
|
lineNumberStyle: D,
|
|
35423
35436
|
largestLineNumber: m,
|
|
@@ -35429,16 +35442,16 @@ function T5(r, n, i, l, c, h, m, D, x) {
|
|
|
35429
35442
|
wrapLines: n
|
|
35430
35443
|
});
|
|
35431
35444
|
}
|
|
35432
|
-
function J
|
|
35445
|
+
function X(J, ae) {
|
|
35433
35446
|
if (l && ae && c) {
|
|
35434
35447
|
var le = RA(D, ae, m);
|
|
35435
|
-
|
|
35448
|
+
J.unshift(PA(ae, le));
|
|
35436
35449
|
}
|
|
35437
|
-
return
|
|
35450
|
+
return J;
|
|
35438
35451
|
}
|
|
35439
|
-
function V(
|
|
35452
|
+
function V(J, ae) {
|
|
35440
35453
|
var le = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
35441
|
-
return n || le.length > 0 ? I(
|
|
35454
|
+
return n || le.length > 0 ? I(J, ae, le) : X(J, ae);
|
|
35442
35455
|
}
|
|
35443
35456
|
for (var we = function() {
|
|
35444
35457
|
var ae = $[O], le = ae.children[0].value, Se = x5(le);
|
|
@@ -35530,9 +35543,9 @@ function $5(r, n) {
|
|
|
35530
35543
|
var c = l.language, h = l.children, m = l.style, D = m === void 0 ? n : m, x = l.customStyle, E = x === void 0 ? {} : x, $ = l.codeTagProps, N = $ === void 0 ? {
|
|
35531
35544
|
className: c ? "language-".concat(c) : void 0,
|
|
35532
35545
|
style: kf(kf({}, D['code[class*="language-"]']), D['code[class*="language-'.concat(c, '"]')])
|
|
35533
|
-
} : $, R = l.useInlineStyles, O = R === void 0 ? !0 : R, I = l.showLineNumbers,
|
|
35546
|
+
} : $, R = l.useInlineStyles, O = R === void 0 ? !0 : R, I = l.showLineNumbers, X = I === void 0 ? !1 : I, V = l.showInlineLineNumbers, we = V === void 0 ? !0 : V, q = l.startingLineNumber, W = q === void 0 ? 1 : q, K = l.lineNumberContainerStyle, J = l.lineNumberStyle, ae = J === void 0 ? {} : J, le = l.wrapLines, Se = l.wrapLongLines, ye = Se === void 0 ? !1 : Se, Ve = l.lineProps, He = Ve === void 0 ? {} : Ve, Be = l.renderer, Xe = l.PreTag, je = Xe === void 0 ? "pre" : Xe, it = l.CodeTag, Re = it === void 0 ? "code" : it, Ae = l.code, ue = Ae === void 0 ? (Array.isArray(h) ? h[0] : h) || "" : Ae, Ne = l.astGenerator, xe = c5(l, D5);
|
|
35534
35547
|
Ne = Ne || r;
|
|
35535
|
-
var Q =
|
|
35548
|
+
var Q = X ? /* @__PURE__ */ cn.createElement(_5, {
|
|
35536
35549
|
containerStyle: K,
|
|
35537
35550
|
codeStyle: N.style || {},
|
|
35538
35551
|
numberStyle: ae,
|
|
@@ -35566,7 +35579,7 @@ function $5(r, n) {
|
|
|
35566
35579
|
var ht = dt.value.length;
|
|
35567
35580
|
ht === 1 && dt.value[0].type === "text" && (ht = dt.value[0].value.split(`
|
|
35568
35581
|
`).length);
|
|
35569
|
-
var mt = ht + W, _t = T5(dt, le, He,
|
|
35582
|
+
var mt = ht + W, _t = T5(dt, le, He, X, we, W, mt, ae, ye);
|
|
35570
35583
|
return /* @__PURE__ */ cn.createElement(je, Je, /* @__PURE__ */ cn.createElement(Re, N, !we && Q, Be({
|
|
35571
35584
|
rows: _t,
|
|
35572
35585
|
stylesheet: D,
|
|
@@ -36420,28 +36433,28 @@ function xU(r, n) {
|
|
|
36420
36433
|
return (i.position.indent || i.position.start) && (i.indent = i.position.indent || [], i.position = i.position.start), CU(r, i);
|
|
36421
36434
|
}
|
|
36422
36435
|
function CU(r, n) {
|
|
36423
|
-
var i = n.additional, l = n.nonTerminated, c = n.text, h = n.reference, m = n.warning, D = n.textContext, x = n.referenceContext, E = n.warningContext, $ = n.position, N = n.indent || [], R = r.length, O = 0, I = -1,
|
|
36436
|
+
var i = n.additional, l = n.nonTerminated, c = n.text, h = n.reference, m = n.warning, D = n.textContext, x = n.referenceContext, E = n.warningContext, $ = n.position, N = n.indent || [], R = r.length, O = 0, I = -1, X = $.column || 1, V = $.line || 1, we = "", q = [], W, K, J, ae, le, Se, ye, Ve, He, Be, Xe, je, it, Re, Ae, ue, Ne, xe, Q;
|
|
36424
36437
|
for (typeof i == "string" && (i = i.charCodeAt(0)), ue = ce(), Ve = m ? rt : pU, O--, R++; ++O < R; )
|
|
36425
|
-
if (le === tF && (
|
|
36438
|
+
if (le === tF && (X = N[I] || 1), le = r.charCodeAt(O), le === nF) {
|
|
36426
36439
|
if (ye = r.charCodeAt(O + 1), ye === hU || ye === tF || ye === mU || ye === gU || ye === nF || ye === yU || ye !== ye || i && ye === i) {
|
|
36427
|
-
we += jm(le),
|
|
36440
|
+
we += jm(le), X++;
|
|
36428
36441
|
continue;
|
|
36429
36442
|
}
|
|
36430
36443
|
for (it = O + 1, je = it, Q = it, ye === kU ? (Q = ++je, ye = r.charCodeAt(Q), ye === wU || ye === DU ? (Re = bx, Q = ++je) : Re = kx) : Re = zm, W = "", Xe = "", ae = "", Ae = Iw[Re], Q--; ++Q < R && (ye = r.charCodeAt(Q), !!Ae(ye)); )
|
|
36431
36444
|
ae += jm(ye), Re === zm && fU.call(KT, ae) && (W = ae, Xe = KT[ae]);
|
|
36432
|
-
|
|
36445
|
+
J = r.charCodeAt(Q) === vU, J && (Q++, K = Re === zm ? cU(ae) : !1, K && (W = ae, Xe = K)), xe = 1 + Q - it, !J && !l || (ae ? Re === zm ? (J && !Xe ? Ve(e$, 1) : (W !== ae && (Q = je + W.length, xe = 1 + Q - je, J = !1), J || (He = W ? JA : KA, n.attribute ? (ye = r.charCodeAt(Q), ye === bU ? (Ve(He, xe), Xe = null) : XA(ye) ? Xe = null : Ve(He, xe)) : Ve(He, xe))), Se = Xe) : (J || Ve(QA, xe), Se = parseInt(ae, wx[Re]), _U(Se) ? (Ve(t$, xe), Se = jm(SU)) : Se in ZT ? (Ve(BS, xe), Se = ZT[Se]) : (Be = "", EU(Se) && Ve(BS, xe), Se > 65535 && (Se -= 65536, Be += jm(Se >>> 10 | 55296), Se = 56320 | Se & 1023), Se = Be + jm(Se))) : Re !== zm && Ve(ZA, xe)), Se ? (Je(), ue = ce(), O = Q - 1, X += Q - it + 1, q.push(Se), Ne = ce(), Ne.offset++, h && h.call(
|
|
36433
36446
|
x,
|
|
36434
36447
|
Se,
|
|
36435
36448
|
{ start: ue, end: Ne },
|
|
36436
36449
|
r.slice(it - 1, Q)
|
|
36437
|
-
), ue = Ne) : (ae = r.slice(it - 1, Q), we += ae,
|
|
36450
|
+
), ue = Ne) : (ae = r.slice(it - 1, Q), we += ae, X += ae.length, O = Q - 1);
|
|
36438
36451
|
} else
|
|
36439
|
-
le === 10 && (V++, I++,
|
|
36452
|
+
le === 10 && (V++, I++, X = 0), le === le ? (we += jm(le), X++) : Je();
|
|
36440
36453
|
return q.join("");
|
|
36441
36454
|
function ce() {
|
|
36442
36455
|
return {
|
|
36443
36456
|
line: V,
|
|
36444
|
-
column:
|
|
36457
|
+
column: X,
|
|
36445
36458
|
offset: O + ($.offset || 0)
|
|
36446
36459
|
};
|
|
36447
36460
|
}
|
|
@@ -36569,26 +36582,26 @@ var n$ = { exports: {} };
|
|
|
36569
36582
|
*/
|
|
36570
36583
|
clone: function q(W, K) {
|
|
36571
36584
|
K = K || {};
|
|
36572
|
-
var
|
|
36585
|
+
var J, ae;
|
|
36573
36586
|
switch (D.util.type(W)) {
|
|
36574
36587
|
case "Object":
|
|
36575
36588
|
if (ae = D.util.objId(W), K[ae])
|
|
36576
36589
|
return K[ae];
|
|
36577
|
-
|
|
36578
|
-
{}, K[ae] =
|
|
36590
|
+
J = /** @type {Record<string, any>} */
|
|
36591
|
+
{}, K[ae] = J;
|
|
36579
36592
|
for (var le in W)
|
|
36580
|
-
W.hasOwnProperty(le) && (
|
|
36593
|
+
W.hasOwnProperty(le) && (J[le] = q(W[le], K));
|
|
36581
36594
|
return (
|
|
36582
36595
|
/** @type {any} */
|
|
36583
|
-
|
|
36596
|
+
J
|
|
36584
36597
|
);
|
|
36585
36598
|
case "Array":
|
|
36586
|
-
return ae = D.util.objId(W), K[ae] ? K[ae] : (
|
|
36599
|
+
return ae = D.util.objId(W), K[ae] ? K[ae] : (J = [], K[ae] = J, /** @type {Array} */
|
|
36587
36600
|
/** @type {any} */
|
|
36588
36601
|
W.forEach(function(Se, ye) {
|
|
36589
|
-
|
|
36602
|
+
J[ye] = q(Se, K);
|
|
36590
36603
|
}), /** @type {any} */
|
|
36591
|
-
|
|
36604
|
+
J);
|
|
36592
36605
|
default:
|
|
36593
36606
|
return W;
|
|
36594
36607
|
}
|
|
@@ -36637,8 +36650,8 @@ var n$ = { exports: {} };
|
|
|
36637
36650
|
);
|
|
36638
36651
|
try {
|
|
36639
36652
|
throw new Error();
|
|
36640
|
-
} catch (
|
|
36641
|
-
var q = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(
|
|
36653
|
+
} catch (J) {
|
|
36654
|
+
var q = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(J.stack) || [])[1];
|
|
36642
36655
|
if (q) {
|
|
36643
36656
|
var W = document.getElementsByTagName("script");
|
|
36644
36657
|
for (var K in W)
|
|
@@ -36668,11 +36681,11 @@ var n$ = { exports: {} };
|
|
|
36668
36681
|
* @returns {boolean}
|
|
36669
36682
|
*/
|
|
36670
36683
|
isActive: function(q, W, K) {
|
|
36671
|
-
for (var
|
|
36684
|
+
for (var J = "no-" + W; q; ) {
|
|
36672
36685
|
var ae = q.classList;
|
|
36673
36686
|
if (ae.contains(W))
|
|
36674
36687
|
return !0;
|
|
36675
|
-
if (ae.contains(
|
|
36688
|
+
if (ae.contains(J))
|
|
36676
36689
|
return !1;
|
|
36677
36690
|
q = q.parentElement;
|
|
36678
36691
|
}
|
|
@@ -36724,8 +36737,8 @@ var n$ = { exports: {} };
|
|
|
36724
36737
|
*/
|
|
36725
36738
|
extend: function(q, W) {
|
|
36726
36739
|
var K = D.util.clone(D.languages[q]);
|
|
36727
|
-
for (var
|
|
36728
|
-
K[
|
|
36740
|
+
for (var J in W)
|
|
36741
|
+
K[J] = W[J];
|
|
36729
36742
|
return K;
|
|
36730
36743
|
},
|
|
36731
36744
|
/**
|
|
@@ -36803,10 +36816,10 @@ var n$ = { exports: {} };
|
|
|
36803
36816
|
* @returns {Grammar} The new grammar object.
|
|
36804
36817
|
* @public
|
|
36805
36818
|
*/
|
|
36806
|
-
insertBefore: function(q, W, K,
|
|
36807
|
-
|
|
36819
|
+
insertBefore: function(q, W, K, J) {
|
|
36820
|
+
J = J || /** @type {any} */
|
|
36808
36821
|
D.languages;
|
|
36809
|
-
var ae =
|
|
36822
|
+
var ae = J[q], le = {};
|
|
36810
36823
|
for (var Se in ae)
|
|
36811
36824
|
if (ae.hasOwnProperty(Se)) {
|
|
36812
36825
|
if (Se == W)
|
|
@@ -36814,18 +36827,18 @@ var n$ = { exports: {} };
|
|
|
36814
36827
|
K.hasOwnProperty(ye) && (le[ye] = K[ye]);
|
|
36815
36828
|
K.hasOwnProperty(Se) || (le[Se] = ae[Se]);
|
|
36816
36829
|
}
|
|
36817
|
-
var Ve =
|
|
36818
|
-
return
|
|
36830
|
+
var Ve = J[q];
|
|
36831
|
+
return J[q] = le, D.languages.DFS(D.languages, function(He, Be) {
|
|
36819
36832
|
Be === Ve && He != q && (this[He] = le);
|
|
36820
36833
|
}), le;
|
|
36821
36834
|
},
|
|
36822
36835
|
// Traverse a language definition with Depth First Search
|
|
36823
|
-
DFS: function q(W, K,
|
|
36836
|
+
DFS: function q(W, K, J, ae) {
|
|
36824
36837
|
ae = ae || {};
|
|
36825
36838
|
var le = D.util.objId;
|
|
36826
36839
|
for (var Se in W)
|
|
36827
36840
|
if (W.hasOwnProperty(Se)) {
|
|
36828
|
-
K.call(W, Se, W[Se],
|
|
36841
|
+
K.call(W, Se, W[Se], J || Se);
|
|
36829
36842
|
var ye = W[Se], Ve = D.util.type(ye);
|
|
36830
36843
|
Ve === "Object" && !ae[le(ye)] ? (ae[le(ye)] = !0, q(ye, K, null, ae)) : Ve === "Array" && !ae[le(ye)] && (ae[le(ye)] = !0, q(ye, K, Se, ae));
|
|
36831
36844
|
}
|
|
@@ -36863,14 +36876,14 @@ var n$ = { exports: {} };
|
|
|
36863
36876
|
* @public
|
|
36864
36877
|
*/
|
|
36865
36878
|
highlightAllUnder: function(q, W, K) {
|
|
36866
|
-
var
|
|
36879
|
+
var J = {
|
|
36867
36880
|
callback: K,
|
|
36868
36881
|
container: q,
|
|
36869
36882
|
selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
|
|
36870
36883
|
};
|
|
36871
|
-
D.hooks.run("before-highlightall",
|
|
36872
|
-
for (var ae = 0, le; le =
|
|
36873
|
-
D.highlightElement(le, W === !0,
|
|
36884
|
+
D.hooks.run("before-highlightall", J), J.elements = Array.prototype.slice.apply(J.container.querySelectorAll(J.selector)), D.hooks.run("before-all-elements-highlight", J);
|
|
36885
|
+
for (var ae = 0, le; le = J.elements[ae++]; )
|
|
36886
|
+
D.highlightElement(le, W === !0, J.callback);
|
|
36874
36887
|
},
|
|
36875
36888
|
/**
|
|
36876
36889
|
* Highlights the code inside a single element.
|
|
@@ -36901,13 +36914,13 @@ var n$ = { exports: {} };
|
|
|
36901
36914
|
* @public
|
|
36902
36915
|
*/
|
|
36903
36916
|
highlightElement: function(q, W, K) {
|
|
36904
|
-
var
|
|
36905
|
-
D.util.setLanguage(q,
|
|
36917
|
+
var J = D.util.getLanguage(q), ae = D.languages[J];
|
|
36918
|
+
D.util.setLanguage(q, J);
|
|
36906
36919
|
var le = q.parentElement;
|
|
36907
|
-
le && le.nodeName.toLowerCase() === "pre" && D.util.setLanguage(le,
|
|
36920
|
+
le && le.nodeName.toLowerCase() === "pre" && D.util.setLanguage(le, J);
|
|
36908
36921
|
var Se = q.textContent, ye = {
|
|
36909
36922
|
element: q,
|
|
36910
|
-
language:
|
|
36923
|
+
language: J,
|
|
36911
36924
|
grammar: ae,
|
|
36912
36925
|
code: Se
|
|
36913
36926
|
};
|
|
@@ -36955,14 +36968,14 @@ var n$ = { exports: {} };
|
|
|
36955
36968
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
36956
36969
|
*/
|
|
36957
36970
|
highlight: function(q, W, K) {
|
|
36958
|
-
var
|
|
36971
|
+
var J = {
|
|
36959
36972
|
code: q,
|
|
36960
36973
|
grammar: W,
|
|
36961
36974
|
language: K
|
|
36962
36975
|
};
|
|
36963
|
-
if (D.hooks.run("before-tokenize",
|
|
36964
|
-
throw new Error('The language "' +
|
|
36965
|
-
return
|
|
36976
|
+
if (D.hooks.run("before-tokenize", J), !J.grammar)
|
|
36977
|
+
throw new Error('The language "' + J.language + '" has no grammar.');
|
|
36978
|
+
return J.tokens = D.tokenize(J.code, J.grammar), D.hooks.run("after-tokenize", J), x.stringify(D.util.encode(J.tokens), J.language);
|
|
36966
36979
|
},
|
|
36967
36980
|
/**
|
|
36968
36981
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -36991,8 +37004,8 @@ var n$ = { exports: {} };
|
|
|
36991
37004
|
tokenize: function(q, W) {
|
|
36992
37005
|
var K = W.rest;
|
|
36993
37006
|
if (K) {
|
|
36994
|
-
for (var
|
|
36995
|
-
W[
|
|
37007
|
+
for (var J in K)
|
|
37008
|
+
W[J] = K[J];
|
|
36996
37009
|
delete W.rest;
|
|
36997
37010
|
}
|
|
36998
37011
|
var ae = new N();
|
|
@@ -37033,24 +37046,24 @@ var n$ = { exports: {} };
|
|
|
37033
37046
|
run: function(q, W) {
|
|
37034
37047
|
var K = D.hooks.all[q];
|
|
37035
37048
|
if (!(!K || !K.length))
|
|
37036
|
-
for (var
|
|
37049
|
+
for (var J = 0, ae; ae = K[J++]; )
|
|
37037
37050
|
ae(W);
|
|
37038
37051
|
}
|
|
37039
37052
|
},
|
|
37040
37053
|
Token: x
|
|
37041
37054
|
};
|
|
37042
37055
|
l.Prism = D;
|
|
37043
|
-
function x(q, W, K,
|
|
37044
|
-
this.type = q, this.content = W, this.alias = K, this.length = (
|
|
37056
|
+
function x(q, W, K, J) {
|
|
37057
|
+
this.type = q, this.content = W, this.alias = K, this.length = (J || "").length | 0;
|
|
37045
37058
|
}
|
|
37046
37059
|
x.stringify = function q(W, K) {
|
|
37047
37060
|
if (typeof W == "string")
|
|
37048
37061
|
return W;
|
|
37049
37062
|
if (Array.isArray(W)) {
|
|
37050
|
-
var
|
|
37063
|
+
var J = "";
|
|
37051
37064
|
return W.forEach(function(Ve) {
|
|
37052
|
-
|
|
37053
|
-
}),
|
|
37065
|
+
J += q(Ve, K);
|
|
37066
|
+
}), J;
|
|
37054
37067
|
}
|
|
37055
37068
|
var ae = {
|
|
37056
37069
|
type: W.type,
|
|
@@ -37066,16 +37079,16 @@ var n$ = { exports: {} };
|
|
|
37066
37079
|
Se += " " + ye + '="' + (ae.attributes[ye] || "").replace(/"/g, """) + '"';
|
|
37067
37080
|
return "<" + ae.tag + ' class="' + ae.classes.join(" ") + '"' + Se + ">" + ae.content + "</" + ae.tag + ">";
|
|
37068
37081
|
};
|
|
37069
|
-
function E(q, W, K,
|
|
37082
|
+
function E(q, W, K, J) {
|
|
37070
37083
|
q.lastIndex = W;
|
|
37071
37084
|
var ae = q.exec(K);
|
|
37072
|
-
if (ae &&
|
|
37085
|
+
if (ae && J && ae[1]) {
|
|
37073
37086
|
var le = ae[1].length;
|
|
37074
37087
|
ae.index += le, ae[0] = ae[0].slice(le);
|
|
37075
37088
|
}
|
|
37076
37089
|
return ae;
|
|
37077
37090
|
}
|
|
37078
|
-
function $(q, W, K,
|
|
37091
|
+
function $(q, W, K, J, ae, le) {
|
|
37079
37092
|
for (var Se in K)
|
|
37080
37093
|
if (!(!K.hasOwnProperty(Se) || !K[Se])) {
|
|
37081
37094
|
var ye = K[Se];
|
|
@@ -37088,7 +37101,7 @@ var n$ = { exports: {} };
|
|
|
37088
37101
|
var Re = He.pattern.toString().match(/[imsuy]*$/)[0];
|
|
37089
37102
|
He.pattern = RegExp(He.pattern.source, Re + "g");
|
|
37090
37103
|
}
|
|
37091
|
-
for (var Ae = He.pattern || He, ue =
|
|
37104
|
+
for (var Ae = He.pattern || He, ue = J.next, Ne = ae; ue !== W.tail && !(le && Ne >= le.reach); Ne += ue.value.length, ue = ue.next) {
|
|
37092
37105
|
var xe = ue.value;
|
|
37093
37106
|
if (W.length > q.length)
|
|
37094
37107
|
return;
|
|
@@ -37129,13 +37142,13 @@ var n$ = { exports: {} };
|
|
|
37129
37142
|
q.next = W, this.head = q, this.tail = W, this.length = 0;
|
|
37130
37143
|
}
|
|
37131
37144
|
function R(q, W, K) {
|
|
37132
|
-
var
|
|
37133
|
-
return W.next = ae,
|
|
37145
|
+
var J = W.next, ae = { value: K, prev: W, next: J };
|
|
37146
|
+
return W.next = ae, J.prev = ae, q.length++, ae;
|
|
37134
37147
|
}
|
|
37135
37148
|
function O(q, W, K) {
|
|
37136
|
-
for (var
|
|
37137
|
-
|
|
37138
|
-
W.next =
|
|
37149
|
+
for (var J = W.next, ae = 0; ae < K && J !== q.tail; ae++)
|
|
37150
|
+
J = J.next;
|
|
37151
|
+
W.next = J, J.prev = W, q.length -= ae;
|
|
37139
37152
|
}
|
|
37140
37153
|
function I(q) {
|
|
37141
37154
|
for (var W = [], K = q.head.next; K !== q.tail; )
|
|
@@ -37144,17 +37157,17 @@ var n$ = { exports: {} };
|
|
|
37144
37157
|
}
|
|
37145
37158
|
if (!l.document)
|
|
37146
37159
|
return l.addEventListener && (D.disableWorkerMessageHandler || l.addEventListener("message", function(q) {
|
|
37147
|
-
var W = JSON.parse(q.data), K = W.language,
|
|
37148
|
-
l.postMessage(D.highlight(
|
|
37160
|
+
var W = JSON.parse(q.data), K = W.language, J = W.code, ae = W.immediateClose;
|
|
37161
|
+
l.postMessage(D.highlight(J, D.languages[K], K)), ae && l.close();
|
|
37149
37162
|
}, !1)), D;
|
|
37150
|
-
var
|
|
37151
|
-
|
|
37163
|
+
var X = D.util.currentScript();
|
|
37164
|
+
X && (D.filename = X.src, X.hasAttribute("data-manual") && (D.manual = !0));
|
|
37152
37165
|
function V() {
|
|
37153
37166
|
D.manual || D.highlightAll();
|
|
37154
37167
|
}
|
|
37155
37168
|
if (!D.manual) {
|
|
37156
37169
|
var we = document.readyState;
|
|
37157
|
-
we === "loading" || we === "interactive" &&
|
|
37170
|
+
we === "loading" || we === "interactive" && X && X.defer ? document.addEventListener("DOMContentLoaded", V) : window.requestAnimationFrame ? window.requestAnimationFrame(V) : window.setTimeout(V, 16);
|
|
37158
37171
|
}
|
|
37159
37172
|
return D;
|
|
37160
37173
|
}(n);
|
|
@@ -38010,13 +38023,13 @@ const ZU = xr(
|
|
|
38010
38023
|
helptextDropdownButton: R,
|
|
38011
38024
|
iconNameRight: O,
|
|
38012
38025
|
inline: I = !1,
|
|
38013
|
-
fullwidth:
|
|
38026
|
+
fullwidth: X = !1,
|
|
38014
38027
|
label: V,
|
|
38015
38028
|
name: we,
|
|
38016
38029
|
optionalTag: q = !1,
|
|
38017
38030
|
optionalText: W,
|
|
38018
38031
|
requiredTag: K = !1,
|
|
38019
|
-
requiredText:
|
|
38032
|
+
requiredText: J,
|
|
38020
38033
|
placeholder: ae,
|
|
38021
38034
|
prefix: le,
|
|
38022
38035
|
suffix: Se,
|
|
@@ -38060,7 +38073,7 @@ const ZU = xr(
|
|
|
38060
38073
|
optionalTag: q,
|
|
38061
38074
|
optionalText: W,
|
|
38062
38075
|
requiredTag: K,
|
|
38063
|
-
requiredText:
|
|
38076
|
+
requiredText: J,
|
|
38064
38077
|
useWrapper: Ve,
|
|
38065
38078
|
counter: c,
|
|
38066
38079
|
counterCurrent: _t,
|
|
@@ -38078,7 +38091,7 @@ const ZU = xr(
|
|
|
38078
38091
|
{
|
|
38079
38092
|
...Je,
|
|
38080
38093
|
ref: gt,
|
|
38081
|
-
className: `pkt-input ${
|
|
38094
|
+
className: `pkt-input ${X ? "pkt-input--fullwidth" : ""} ${h && _t > h ? "pkt-input--counter-error" : ""}`,
|
|
38082
38095
|
type: ye,
|
|
38083
38096
|
name: `${we || r}`,
|
|
38084
38097
|
value: mt,
|
|
@@ -38213,23 +38226,23 @@ const ZU = xr(
|
|
|
38213
38226
|
fullwidth: R = !1,
|
|
38214
38227
|
label: O,
|
|
38215
38228
|
name: I,
|
|
38216
|
-
optionalTag:
|
|
38229
|
+
optionalTag: X = !1,
|
|
38217
38230
|
optionalText: V,
|
|
38218
38231
|
requiredTag: we = !1,
|
|
38219
38232
|
requiredText: q,
|
|
38220
38233
|
...W
|
|
38221
38234
|
}, K) => {
|
|
38222
|
-
const
|
|
38235
|
+
const J = [l, "pkt-select"].join(" ");
|
|
38223
38236
|
return /* @__PURE__ */ L.jsx(
|
|
38224
38237
|
$y,
|
|
38225
38238
|
{
|
|
38226
|
-
className:
|
|
38239
|
+
className: J,
|
|
38227
38240
|
forId: `${$}-input`,
|
|
38228
38241
|
label: O,
|
|
38229
38242
|
helptext: D,
|
|
38230
38243
|
helptextDropdown: x,
|
|
38231
38244
|
helptextDropdownButton: E,
|
|
38232
|
-
optionalTag:
|
|
38245
|
+
optionalTag: X,
|
|
38233
38246
|
optionalText: V,
|
|
38234
38247
|
requiredTag: we,
|
|
38235
38248
|
requiredText: q,
|
|
@@ -40092,7 +40105,7 @@ const ZU = xr(
|
|
|
40092
40105
|
Cy.registerLanguage("jsx", QU);
|
|
40093
40106
|
const nH = ({ specs: r, children: n, fullWidth: i }) => {
|
|
40094
40107
|
var je, it;
|
|
40095
|
-
const l = r.props && typeof r.props == "object" && !Array.isArray(r.props) ? Object.entries(r.props).reduce((Re, [Ae, ue]) => (typeof ue == "object" && !Array.isArray(ue) && ue.previewDefault !== void 0 && ue.previewDefault !== null ? (ue.previewDefault === "false" && (ue.previewDefault = !1), ue.previewDefault === "true" && (ue.previewDefault = !0), Re[Ae] = ue.previewDefault) : typeof ue == "object" && !Array.isArray(ue) && ue.default !== void 0 && ue.default !== null && (ue.default === "false" && (ue.default = !1), ue.default === "true" && (ue.default = !0), Re[Ae] = ue.default), Re), {}) : {}, [c, h] = nu(0), [m, D] = nu(l), [x, E] = nu("light"), [$, N] = nu(""), [R, O] = nu(""), [I,
|
|
40108
|
+
const l = r.props && typeof r.props == "object" && !Array.isArray(r.props) ? Object.entries(r.props).reduce((Re, [Ae, ue]) => (typeof ue == "object" && !Array.isArray(ue) && ue.previewDefault !== void 0 && ue.previewDefault !== null ? (ue.previewDefault === "false" && (ue.previewDefault = !1), ue.previewDefault === "true" && (ue.previewDefault = !0), Re[Ae] = ue.previewDefault) : typeof ue == "object" && !Array.isArray(ue) && ue.default !== void 0 && ue.default !== null && (ue.default === "false" && (ue.default = !1), ue.default === "true" && (ue.default = !0), Re[Ae] = ue.default), Re), {}) : {}, [c, h] = nu(0), [m, D] = nu(l), [x, E] = nu("light"), [$, N] = nu(""), [R, O] = nu(""), [I, X] = nu(""), [V, we] = nu("Rediger innhold"), [q, W] = nu([
|
|
40096
40109
|
{
|
|
40097
40110
|
text: "Rediger",
|
|
40098
40111
|
icon: "adjust",
|
|
@@ -40114,13 +40127,13 @@ const nH = ({ specs: r, children: n, fullWidth: i }) => {
|
|
|
40114
40127
|
active: !1
|
|
40115
40128
|
}
|
|
40116
40129
|
]), K = (Re) => {
|
|
40117
|
-
Re === 1 && le(), Re === 2 && ae(),
|
|
40130
|
+
Re === 1 && le(), Re === 2 && ae(), X(""), W(
|
|
40118
40131
|
(Ae) => Ae.map((ue, Ne) => ({
|
|
40119
40132
|
...ue,
|
|
40120
40133
|
active: Ne === Re
|
|
40121
40134
|
}))
|
|
40122
40135
|
);
|
|
40123
|
-
},
|
|
40136
|
+
}, J = iF(null), ae = async () => {
|
|
40124
40137
|
if (r.isElement && dy(Be)) {
|
|
40125
40138
|
const Re = dy(Be) ? Be.type.displayName || Be.type.name : r.name, Ae = Object.entries(m).map(([Ne, xe]) => {
|
|
40126
40139
|
if (xe && !ye(xe) && !Ve(xe))
|
|
@@ -40137,7 +40150,7 @@ const nH = ({ specs: r, children: n, fullWidth: i }) => {
|
|
|
40137
40150
|
` + ue
|
|
40138
40151
|
);
|
|
40139
40152
|
} else {
|
|
40140
|
-
const Re = await ww(
|
|
40153
|
+
const Re = await ww(J.current.innerHTML, {
|
|
40141
40154
|
parser: "html",
|
|
40142
40155
|
plugins: [BT]
|
|
40143
40156
|
});
|
|
@@ -40148,7 +40161,7 @@ const nH = ({ specs: r, children: n, fullWidth: i }) => {
|
|
|
40148
40161
|
return O(Re), Promise.resolve();
|
|
40149
40162
|
}, Se = (Re, Ae) => {
|
|
40150
40163
|
navigator.clipboard.writeText(Ae).then(() => {
|
|
40151
|
-
|
|
40164
|
+
X(Re), console.log("Copied to clipboard", Re);
|
|
40152
40165
|
});
|
|
40153
40166
|
}, ye = (Re) => Array.isArray(Re) && Re.length === 0, Ve = (Re) => Re && typeof Re == "object" && !Object.keys(Re).length, He = (Re, Ae) => /* @__PURE__ */ L.jsxs("div", { className: "pkt-preview__copy", children: [
|
|
40154
40167
|
I === Re && /* @__PURE__ */ L.jsx("span", { className: "pkt-preview__copied", children: "Kode kopiert til utklippstavle" }),
|
|
@@ -40195,7 +40208,7 @@ const nH = ({ specs: r, children: n, fullWidth: i }) => {
|
|
|
40195
40208
|
"div",
|
|
40196
40209
|
{
|
|
40197
40210
|
className: `pkt-preview__component ${i && "pkt-preview__component--fullwidth"}`,
|
|
40198
|
-
ref:
|
|
40211
|
+
ref: J,
|
|
40199
40212
|
children: /* @__PURE__ */ L.jsx("div", { children: Be })
|
|
40200
40213
|
},
|
|
40201
40214
|
c
|
|
@@ -40266,32 +40279,33 @@ const iH = xr(
|
|
|
40266
40279
|
checked: E,
|
|
40267
40280
|
...$
|
|
40268
40281
|
}, N) => {
|
|
40269
|
-
const R = [l, "pkt-input-check"].filter(Boolean).join(" ")
|
|
40270
|
-
|
|
40271
|
-
"
|
|
40272
|
-
|
|
40273
|
-
|
|
40274
|
-
|
|
40275
|
-
|
|
40276
|
-
|
|
40277
|
-
|
|
40278
|
-
|
|
40279
|
-
|
|
40280
|
-
|
|
40281
|
-
|
|
40282
|
-
|
|
40283
|
-
|
|
40284
|
-
|
|
40285
|
-
|
|
40286
|
-
|
|
40287
|
-
|
|
40288
|
-
|
|
40289
|
-
|
|
40290
|
-
|
|
40291
|
-
|
|
40292
|
-
|
|
40293
|
-
|
|
40294
|
-
|
|
40282
|
+
const R = [l, "pkt-input-check"].filter(Boolean).join(" "), O = [
|
|
40283
|
+
"pkt-input-check__input",
|
|
40284
|
+
c ? "pkt-input-check__input--tile" : "",
|
|
40285
|
+
h && c ? "pkt-input-check__input--tile-disabled" : ""
|
|
40286
|
+
].filter(Boolean).join(" "), I = [
|
|
40287
|
+
"pkt-input-check__input-checkbox",
|
|
40288
|
+
D ? "pkt-input-check__input-checkbox--error" : ""
|
|
40289
|
+
].filter(Boolean).join(" "), X = ["pkt-input-check__input-label", h ? "pkt-input-check__input-label--disabled" : ""].filter(Boolean).join(" ");
|
|
40290
|
+
return /* @__PURE__ */ L.jsx("div", { className: R, children: /* @__PURE__ */ L.jsxs("div", { className: O, children: [
|
|
40291
|
+
/* @__PURE__ */ L.jsx(
|
|
40292
|
+
"input",
|
|
40293
|
+
{
|
|
40294
|
+
ref: N,
|
|
40295
|
+
id: r,
|
|
40296
|
+
type: "radio",
|
|
40297
|
+
name: n,
|
|
40298
|
+
disabled: h,
|
|
40299
|
+
className: I,
|
|
40300
|
+
...E !== void 0 ? { checked: E } : { defaultChecked: x },
|
|
40301
|
+
...$
|
|
40302
|
+
}
|
|
40303
|
+
),
|
|
40304
|
+
/* @__PURE__ */ L.jsxs("label", { className: X, htmlFor: r, children: [
|
|
40305
|
+
i,
|
|
40306
|
+
m && /* @__PURE__ */ L.jsx("div", { className: "pkt-input-check__input-helptext", children: m })
|
|
40307
|
+
] })
|
|
40308
|
+
] }) });
|
|
40295
40309
|
}
|
|
40296
40310
|
);
|
|
40297
40311
|
iH.displayName = "PktRadioButton";
|
|
@@ -40312,9 +40326,9 @@ const XH = xr(
|
|
|
40312
40326
|
onSearch: R,
|
|
40313
40327
|
onSuggestionClick: O,
|
|
40314
40328
|
...I
|
|
40315
|
-
},
|
|
40316
|
-
const V = (K,
|
|
40317
|
-
K ? K() : O && O(
|
|
40329
|
+
}, X) => {
|
|
40330
|
+
const V = (K, J) => {
|
|
40331
|
+
K ? K() : O && O(J);
|
|
40318
40332
|
}, we = (K) => {
|
|
40319
40333
|
x = K.target.value;
|
|
40320
40334
|
}, q = `pkt-searchinput pkt-searchinput--${r} ${i ? "pkt-searchinput--fullwidth" : ""}`;
|
|
@@ -40335,7 +40349,7 @@ const XH = xr(
|
|
|
40335
40349
|
disabled: n,
|
|
40336
40350
|
autoComplete: "off",
|
|
40337
40351
|
"aria-autocomplete": "list",
|
|
40338
|
-
ref:
|
|
40352
|
+
ref: X,
|
|
40339
40353
|
"aria-controls": `${l}-suggestions`,
|
|
40340
40354
|
onChange: N || we,
|
|
40341
40355
|
onKeyUp: R && ((K) => {
|
|
@@ -40361,20 +40375,20 @@ const XH = xr(
|
|
|
40361
40375
|
}
|
|
40362
40376
|
)
|
|
40363
40377
|
] }),
|
|
40364
|
-
D && /* @__PURE__ */ L.jsx("ul", { id: `${l}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: D.map((K,
|
|
40378
|
+
D && /* @__PURE__ */ L.jsx("ul", { id: `${l}-suggestions`, className: "pkt-searchinput__suggestions", "aria-live": "assertive", children: D.map((K, J) => /* @__PURE__ */ L.jsx("li", { children: cn.createElement(
|
|
40365
40379
|
K.href ? "a" : K.onClick ? "button" : "div",
|
|
40366
40380
|
{
|
|
40367
40381
|
href: K.href,
|
|
40368
40382
|
className: `pkt-searchinput__suggestion ${K.onClick ? "pkt-link-button" : ""} ${K.href || K.onClick ? "pkt-searchinput__suggestion--has-hover" : ""}`,
|
|
40369
40383
|
type: K.onClick ? "button" : void 0,
|
|
40370
|
-
onClick: () => V(K.onClick,
|
|
40371
|
-
onKeyUp: (ae) => ae.key === "Enter" && V(K.onClick,
|
|
40384
|
+
onClick: () => V(K.onClick, J),
|
|
40385
|
+
onKeyUp: (ae) => ae.key === "Enter" && V(K.onClick, J)
|
|
40372
40386
|
},
|
|
40373
40387
|
/* @__PURE__ */ L.jsxs(L.Fragment, { children: [
|
|
40374
40388
|
K.title && /* @__PURE__ */ L.jsx("h3", { className: "pkt-searchinput__suggestion-title", children: K.title }),
|
|
40375
40389
|
K.text && /* @__PURE__ */ L.jsx("p", { className: "pkt-searchinput__suggestion-text", children: K.text })
|
|
40376
40390
|
] })
|
|
40377
|
-
) }, `search-suggestion-${
|
|
40391
|
+
) }, `search-suggestion-${J}`)) })
|
|
40378
40392
|
] })
|
|
40379
40393
|
);
|
|
40380
40394
|
}
|
|
@@ -40432,13 +40446,13 @@ const XH = xr(
|
|
|
40432
40446
|
inline: R,
|
|
40433
40447
|
fullwidth: O = !1,
|
|
40434
40448
|
label: I,
|
|
40435
|
-
name:
|
|
40449
|
+
name: X,
|
|
40436
40450
|
optionalTag: V = !1,
|
|
40437
40451
|
optionalText: we,
|
|
40438
40452
|
requiredTag: q = !1,
|
|
40439
40453
|
requiredText: W,
|
|
40440
40454
|
placeholder: K,
|
|
40441
|
-
rows:
|
|
40455
|
+
rows: J,
|
|
40442
40456
|
useWrapper: ae = !0,
|
|
40443
40457
|
onChange: le,
|
|
40444
40458
|
value: Se,
|
|
@@ -40483,11 +40497,11 @@ const XH = xr(
|
|
|
40483
40497
|
{
|
|
40484
40498
|
ref: it,
|
|
40485
40499
|
className: `pkt-input ${O ? "pkt-input--fullwidth" : ""} ${c && xe > c ? "pkt-input--counter-error" : ""}`,
|
|
40486
|
-
name: `${
|
|
40500
|
+
name: `${X || r}`,
|
|
40487
40501
|
id: Ae,
|
|
40488
40502
|
placeholder: K,
|
|
40489
40503
|
disabled: m,
|
|
40490
|
-
rows:
|
|
40504
|
+
rows: J,
|
|
40491
40505
|
"aria-labelledby": Ne,
|
|
40492
40506
|
"aria-invalid": x,
|
|
40493
40507
|
"aria-errormessage": `${r}-error`,
|