@owp/core 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Close-JeenM19L.js → Close-C91nHTKM.js} +3 -3
- package/dist/{Close-JeenM19L.js.map → Close-C91nHTKM.js.map} +1 -1
- package/dist/{OwpStoreProvider-Cl8MlcxC.js → OwpStoreProvider-HmqsAzRG.js} +2 -2
- package/dist/{OwpStoreProvider-Cl8MlcxC.js.map → OwpStoreProvider-HmqsAzRG.js.map} +1 -1
- package/dist/{OwpUtils-CDsU9hQL.js → OwpUtils-DW44HL74.js} +2 -2
- package/dist/{OwpUtils-CDsU9hQL.js.map → OwpUtils-DW44HL74.js.map} +1 -1
- package/dist/_commonjs-dynamic-modules-Dv7l0Iyf.js +10 -0
- package/dist/_commonjs-dynamic-modules-Dv7l0Iyf.js.map +1 -0
- package/dist/_commonjsHelpers-BHGzZHI-.js +33 -0
- package/dist/_commonjsHelpers-BHGzZHI-.js.map +1 -0
- package/dist/{commonCodeUtils-Dt6TXOku.js → commonCodeUtils-BcfmNY0i.js} +3 -3
- package/dist/{commonCodeUtils-Dt6TXOku.js.map → commonCodeUtils-BcfmNY0i.js.map} +1 -1
- package/dist/contexts.js +9 -9
- package/dist/{exceljs.min-CwK2XNVA.js → exceljs.min-CrYx1Zzn.js} +3134 -3167
- package/dist/exceljs.min-CrYx1Zzn.js.map +1 -0
- package/dist/hooks.js +123 -94
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +2128 -2068
- package/dist/index.js.map +1 -1
- package/dist/isString-Codtu20I.js +55 -0
- package/dist/isString-Codtu20I.js.map +1 -0
- package/dist/isTypedArray-CCnDZ5HJ.js +609 -0
- package/dist/{isTypedArray-DGEiG32J.js.map → isTypedArray-CCnDZ5HJ.js.map} +1 -1
- package/dist/jszip.min-DNVFzgT6.js +2407 -0
- package/dist/jszip.min-DNVFzgT6.js.map +1 -0
- package/dist/{language-s_jJgpD5.js → language-DaxFvPOq.js} +2 -2
- package/dist/{language-s_jJgpD5.js.map → language-DaxFvPOq.js.map} +1 -1
- package/dist/{lazyLoadedSlices-D_EtusDd.js → lazyLoadedSlices-DGKpiSM4.js} +277 -288
- package/dist/{lazyLoadedSlices-D_EtusDd.js.map → lazyLoadedSlices-DGKpiSM4.js.map} +1 -1
- package/dist/store.js +2 -2
- package/dist/{toUpper-D7kus_mL.js → toUpper-D96_nWkI.js} +2 -2
- package/dist/{toUpper-D7kus_mL.js.map → toUpper-D96_nWkI.js.map} +1 -1
- package/dist/{treeGridUtil-Ch99srur.js → treeGridUtil-CPNva4kL.js} +289 -286
- package/dist/treeGridUtil-CPNva4kL.js.map +1 -0
- package/dist/types/layout/components/navigation/NavItem.d.ts +1 -0
- package/dist/types/layout/components/navigation/NavigationMenu.d.ts +1 -0
- package/dist/types/utils/exceljsBrowser.d.ts +4 -2
- package/dist/types/utils/jszipBrowser.d.ts +5 -0
- package/dist/{usePageLockLoading-Vx7WVcGX.js → usePageLockLoading-BGODEt_k.js} +2 -2
- package/dist/{usePageLockLoading-Vx7WVcGX.js.map → usePageLockLoading-BGODEt_k.js.map} +1 -1
- package/dist/{useShortcuts-DY5fnx6L.js → useShortcuts-BjtlXprQ.js} +3 -3
- package/dist/{useShortcuts-DY5fnx6L.js.map → useShortcuts-BjtlXprQ.js.map} +1 -1
- package/dist/useTreeGridExcelExport-Bfxx0cps.js +88 -0
- package/dist/useTreeGridExcelExport-Bfxx0cps.js.map +1 -0
- package/dist/utils.js +2722 -5096
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/exceljs.min-CwK2XNVA.js.map +0 -1
- package/dist/isTypedArray-DGEiG32J.js +0 -637
- package/dist/treeGridUtil-Ch99srur.js.map +0 -1
- package/dist/useTreeGridExcelExport-615UIM92.js +0 -120
- package/dist/useTreeGridExcelExport-615UIM92.js.map +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
var Nn = Object.defineProperty;
|
|
2
2
|
var r = (e, t) => Nn(e, "name", { value: t, configurable: !0 });
|
|
3
3
|
import { createSlice as kr, createEntityAdapter as qn, createSelector as J, createAsyncThunk as cn, combineSlices as $n } from "@reduxjs/toolkit";
|
|
4
|
-
import { m as W, O as Cn } from "./OwpUtils-
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { o as
|
|
8
|
-
import { lightBlue as xe, red as
|
|
9
|
-
import { createTheme as pn, getContrastRatio as
|
|
4
|
+
import { m as W, O as Cn } from "./OwpUtils-DW44HL74.js";
|
|
5
|
+
import { s as Ln, a as _n, y as Bn, z as sn } from "./isTypedArray-CCnDZ5HJ.js";
|
|
6
|
+
import kn from "i18next";
|
|
7
|
+
import { o as ft } from "./dark-DAY0F6Ph.js";
|
|
8
|
+
import { lightBlue as xe, red as ct } from "@mui/material/colors";
|
|
9
|
+
import { createTheme as pn, getContrastRatio as Wn } from "@mui/material/styles";
|
|
10
|
+
import { a as Un, c as st, g as zn } from "./_commonjsHelpers-BHGzZHI-.js";
|
|
10
11
|
const Gn = {
|
|
11
12
|
title: "Layout - Vertical",
|
|
12
13
|
defaults: {
|
|
@@ -138,13 +139,13 @@ const Gn = {
|
|
|
138
139
|
}, pt = {
|
|
139
140
|
layout: Gn
|
|
140
141
|
};
|
|
141
|
-
function Hn(e, t,
|
|
142
|
-
return Ln(
|
|
142
|
+
function Hn(e, t, a) {
|
|
143
|
+
return Ln(a) && (typeof t == "number" && _n(a) && Bn(t) && t < a.length || typeof t == "string" && t in a) ? sn(a[t], e) : !1;
|
|
143
144
|
}
|
|
144
145
|
r(Hn, "isIterateeCall");
|
|
145
146
|
function Kn(e, ...t) {
|
|
146
147
|
e = Object(e);
|
|
147
|
-
const
|
|
148
|
+
const a = Object.prototype;
|
|
148
149
|
let i = t.length;
|
|
149
150
|
const u = i > 2 ? t[2] : void 0;
|
|
150
151
|
u && Hn(t[0], t[1], u) && (i = 1);
|
|
@@ -152,7 +153,7 @@ function Kn(e, ...t) {
|
|
|
152
153
|
const y = t[d], h = Object.keys(y);
|
|
153
154
|
for (let w = 0; w < h.length; w++) {
|
|
154
155
|
const g = h[w], m = e[g];
|
|
155
|
-
(m === void 0 || !Object.hasOwn(e, g) && sn(m,
|
|
156
|
+
(m === void 0 || !Object.hasOwn(e, g) && sn(m, a[g])) && (e[g] = y[g]);
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
return e;
|
|
@@ -172,21 +173,21 @@ r(Ie, "requireType");
|
|
|
172
173
|
const Jn = {}, jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
173
174
|
__proto__: null,
|
|
174
175
|
default: Jn
|
|
175
|
-
}, Symbol.toStringTag, { value: "Module" })), Yn = /* @__PURE__ */
|
|
176
|
+
}, Symbol.toStringTag, { value: "Module" })), Yn = /* @__PURE__ */ Un(jn);
|
|
176
177
|
var Ve, yt;
|
|
177
178
|
function Ce() {
|
|
178
179
|
if (yt) return Ve;
|
|
179
180
|
yt = 1;
|
|
180
|
-
var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null,
|
|
181
|
-
return
|
|
181
|
+
var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, a = e && t && typeof t.get == "function" ? t.get : null, i = e && Map.prototype.forEach, u = typeof Set == "function" && Set.prototype, d = Object.getOwnPropertyDescriptor && u ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, y = u && d && typeof d.get == "function" ? d.get : null, h = u && Set.prototype.forEach, w = typeof WeakMap == "function" && WeakMap.prototype, g = w ? WeakMap.prototype.has : null, m = typeof WeakSet == "function" && WeakSet.prototype, S = m ? WeakSet.prototype.has : null, O = typeof WeakRef == "function" && WeakRef.prototype, s = O ? WeakRef.prototype.deref : null, p = Boolean.prototype.valueOf, P = Object.prototype.toString, l = Function.prototype.toString, f = String.prototype.match, c = String.prototype.slice, b = String.prototype.replace, v = String.prototype.toUpperCase, A = String.prototype.toLowerCase, E = RegExp.prototype.test, R = Array.prototype.concat, I = Array.prototype.join, q = Array.prototype.slice, M = Math.floor, $ = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, x = Object.getOwnPropertySymbols, G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, k = typeof Symbol == "function" && typeof Symbol.iterator == "object", j = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === k || !0) ? Symbol.toStringTag : null, ie = Object.prototype.propertyIsEnumerable, le = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
|
|
182
|
+
return n.__proto__;
|
|
182
183
|
} : null);
|
|
183
|
-
function F(
|
|
184
|
-
if (
|
|
184
|
+
function F(n, o) {
|
|
185
|
+
if (n === 1 / 0 || n === -1 / 0 || n !== n || n && n > -1e3 && n < 1e3 || E.call(/e/, o))
|
|
185
186
|
return o;
|
|
186
187
|
var N = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
187
|
-
if (typeof
|
|
188
|
-
var L =
|
|
189
|
-
if (L !==
|
|
188
|
+
if (typeof n == "number") {
|
|
189
|
+
var L = n < 0 ? -M(-n) : M(n);
|
|
190
|
+
if (L !== n) {
|
|
190
191
|
var _ = String(L), T = c.call(o, _.length + 1);
|
|
191
192
|
return b.call(_, N, "$&_") + "." + b.call(b.call(T, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
192
193
|
}
|
|
@@ -203,7 +204,7 @@ function Ce() {
|
|
|
203
204
|
double: /(["\\])/g,
|
|
204
205
|
single: /(['\\])/g
|
|
205
206
|
};
|
|
206
|
-
Ve = /* @__PURE__ */ r(function
|
|
207
|
+
Ve = /* @__PURE__ */ r(function n(o, N, L, _) {
|
|
207
208
|
var T = N || {};
|
|
208
209
|
if (V(T, "quoteStyle") && !V(ce, T.quoteStyle))
|
|
209
210
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -248,9 +249,9 @@ function Ce() {
|
|
|
248
249
|
var ut = {
|
|
249
250
|
depth: T.depth
|
|
250
251
|
};
|
|
251
|
-
return V(T, "quoteStyle") && (ut.quoteStyle = T.quoteStyle),
|
|
252
|
+
return V(T, "quoteStyle") && (ut.quoteStyle = T.quoteStyle), n(Re, ut, L + 1, _);
|
|
252
253
|
}
|
|
253
|
-
return
|
|
254
|
+
return n(Re, T, L + 1, _);
|
|
254
255
|
}
|
|
255
256
|
if (r(oe, "inspect"), typeof o == "function" && !z(o)) {
|
|
256
257
|
var rt = Oe(o), tt = Ne(o, oe);
|
|
@@ -285,7 +286,7 @@ function Ce() {
|
|
|
285
286
|
var at = [];
|
|
286
287
|
return i && i.call(o, function(Re, $e) {
|
|
287
288
|
at.push(oe($e, o, !0) + " => " + oe(Re, o));
|
|
288
|
-
}), et("Map",
|
|
289
|
+
}), et("Map", a.call(o), at, Ee);
|
|
289
290
|
}
|
|
290
291
|
if (Pe(o)) {
|
|
291
292
|
var ot = [];
|
|
@@ -309,7 +310,7 @@ function Ce() {
|
|
|
309
310
|
return Me(oe(String(o)));
|
|
310
311
|
if (typeof window < "u" && o === window)
|
|
311
312
|
return "{ [object Window] }";
|
|
312
|
-
if (typeof globalThis < "u" && o === globalThis || typeof
|
|
313
|
+
if (typeof globalThis < "u" && o === globalThis || typeof st < "u" && o === st)
|
|
313
314
|
return "{ [object globalThis] }";
|
|
314
315
|
if (!ye(o) && !z(o)) {
|
|
315
316
|
var Ge = Ne(o, oe), it = le ? le(o) === Object.prototype : o instanceof Object || o.constructor === Object, He = o instanceof Object ? "" : "null prototype", lt = !it && j && Object(o) === o && j in o ? c.call(re(o), 8, -1) : He ? "Object" : "", Fn = it || typeof o.constructor != "function" ? "" : o.constructor.name ? o.constructor.name + " " : "", Ke = Fn + (lt || He ? "[" + I.call(R.call([], lt || [], He || []), ": ") + "] " : "");
|
|
@@ -317,189 +318,189 @@ function Ce() {
|
|
|
317
318
|
}
|
|
318
319
|
return String(o);
|
|
319
320
|
}, "inspect_");
|
|
320
|
-
function pe(
|
|
321
|
+
function pe(n, o, N) {
|
|
321
322
|
var L = N.quoteStyle || o, _ = ce[L];
|
|
322
|
-
return _ +
|
|
323
|
+
return _ + n + _;
|
|
323
324
|
}
|
|
324
325
|
r(pe, "wrapQuotes");
|
|
325
|
-
function fe(
|
|
326
|
-
return b.call(String(
|
|
326
|
+
function fe(n) {
|
|
327
|
+
return b.call(String(n), /"/g, """);
|
|
327
328
|
}
|
|
328
329
|
r(fe, "quote");
|
|
329
|
-
function Z(
|
|
330
|
-
return !j || !(typeof
|
|
330
|
+
function Z(n) {
|
|
331
|
+
return !j || !(typeof n == "object" && (j in n || typeof n[j] < "u"));
|
|
331
332
|
}
|
|
332
333
|
r(Z, "canTrustToString");
|
|
333
|
-
function de(
|
|
334
|
-
return re(
|
|
334
|
+
function de(n) {
|
|
335
|
+
return re(n) === "[object Array]" && Z(n);
|
|
335
336
|
}
|
|
336
337
|
r(de, "isArray");
|
|
337
|
-
function ye(
|
|
338
|
-
return re(
|
|
338
|
+
function ye(n) {
|
|
339
|
+
return re(n) === "[object Date]" && Z(n);
|
|
339
340
|
}
|
|
340
341
|
r(ye, "isDate");
|
|
341
|
-
function z(
|
|
342
|
-
return re(
|
|
342
|
+
function z(n) {
|
|
343
|
+
return re(n) === "[object RegExp]" && Z(n);
|
|
343
344
|
}
|
|
344
345
|
r(z, "isRegExp");
|
|
345
|
-
function D(
|
|
346
|
-
return re(
|
|
346
|
+
function D(n) {
|
|
347
|
+
return re(n) === "[object Error]" && Z(n);
|
|
347
348
|
}
|
|
348
349
|
r(D, "isError");
|
|
349
|
-
function B(
|
|
350
|
-
return re(
|
|
350
|
+
function B(n) {
|
|
351
|
+
return re(n) === "[object String]" && Z(n);
|
|
351
352
|
}
|
|
352
353
|
r(B, "isString");
|
|
353
|
-
function C(
|
|
354
|
-
return re(
|
|
354
|
+
function C(n) {
|
|
355
|
+
return re(n) === "[object Number]" && Z(n);
|
|
355
356
|
}
|
|
356
357
|
r(C, "isNumber");
|
|
357
|
-
function U(
|
|
358
|
-
return re(
|
|
358
|
+
function U(n) {
|
|
359
|
+
return re(n) === "[object Boolean]" && Z(n);
|
|
359
360
|
}
|
|
360
361
|
r(U, "isBoolean");
|
|
361
|
-
function H(
|
|
362
|
+
function H(n) {
|
|
362
363
|
if (k)
|
|
363
|
-
return
|
|
364
|
-
if (typeof
|
|
364
|
+
return n && typeof n == "object" && n instanceof Symbol;
|
|
365
|
+
if (typeof n == "symbol")
|
|
365
366
|
return !0;
|
|
366
|
-
if (!
|
|
367
|
+
if (!n || typeof n != "object" || !G)
|
|
367
368
|
return !1;
|
|
368
369
|
try {
|
|
369
|
-
return G.call(
|
|
370
|
+
return G.call(n), !0;
|
|
370
371
|
} catch {
|
|
371
372
|
}
|
|
372
373
|
return !1;
|
|
373
374
|
}
|
|
374
375
|
r(H, "isSymbol");
|
|
375
|
-
function ee(
|
|
376
|
-
if (!
|
|
376
|
+
function ee(n) {
|
|
377
|
+
if (!n || typeof n != "object" || !$)
|
|
377
378
|
return !1;
|
|
378
379
|
try {
|
|
379
|
-
return $.call(
|
|
380
|
+
return $.call(n), !0;
|
|
380
381
|
} catch {
|
|
381
382
|
}
|
|
382
383
|
return !1;
|
|
383
384
|
}
|
|
384
385
|
r(ee, "isBigInt");
|
|
385
|
-
var K = Object.prototype.hasOwnProperty || function(
|
|
386
|
-
return
|
|
386
|
+
var K = Object.prototype.hasOwnProperty || function(n) {
|
|
387
|
+
return n in this;
|
|
387
388
|
};
|
|
388
|
-
function V(
|
|
389
|
-
return K.call(
|
|
389
|
+
function V(n, o) {
|
|
390
|
+
return K.call(n, o);
|
|
390
391
|
}
|
|
391
392
|
r(V, "has");
|
|
392
|
-
function re(
|
|
393
|
-
return P.call(
|
|
393
|
+
function re(n) {
|
|
394
|
+
return P.call(n);
|
|
394
395
|
}
|
|
395
396
|
r(re, "toStr");
|
|
396
|
-
function Oe(
|
|
397
|
-
if (
|
|
398
|
-
return
|
|
399
|
-
var o = f.call(l.call(
|
|
397
|
+
function Oe(n) {
|
|
398
|
+
if (n.name)
|
|
399
|
+
return n.name;
|
|
400
|
+
var o = f.call(l.call(n), /^function\s*([\w$]+)/);
|
|
400
401
|
return o ? o[1] : null;
|
|
401
402
|
}
|
|
402
403
|
r(Oe, "nameOf");
|
|
403
|
-
function ve(
|
|
404
|
-
if (
|
|
405
|
-
return
|
|
406
|
-
for (var N = 0, L =
|
|
407
|
-
if (
|
|
404
|
+
function ve(n, o) {
|
|
405
|
+
if (n.indexOf)
|
|
406
|
+
return n.indexOf(o);
|
|
407
|
+
for (var N = 0, L = n.length; N < L; N++)
|
|
408
|
+
if (n[N] === o)
|
|
408
409
|
return N;
|
|
409
410
|
return -1;
|
|
410
411
|
}
|
|
411
412
|
r(ve, "indexOf");
|
|
412
|
-
function ae(
|
|
413
|
-
if (!
|
|
413
|
+
function ae(n) {
|
|
414
|
+
if (!a || !n || typeof n != "object")
|
|
414
415
|
return !1;
|
|
415
416
|
try {
|
|
416
|
-
|
|
417
|
+
a.call(n);
|
|
417
418
|
try {
|
|
418
|
-
y.call(
|
|
419
|
+
y.call(n);
|
|
419
420
|
} catch {
|
|
420
421
|
return !0;
|
|
421
422
|
}
|
|
422
|
-
return
|
|
423
|
+
return n instanceof Map;
|
|
423
424
|
} catch {
|
|
424
425
|
}
|
|
425
426
|
return !1;
|
|
426
427
|
}
|
|
427
428
|
r(ae, "isMap");
|
|
428
|
-
function we(
|
|
429
|
-
if (!g || !
|
|
429
|
+
function we(n) {
|
|
430
|
+
if (!g || !n || typeof n != "object")
|
|
430
431
|
return !1;
|
|
431
432
|
try {
|
|
432
|
-
g.call(
|
|
433
|
+
g.call(n, g);
|
|
433
434
|
try {
|
|
434
|
-
S.call(
|
|
435
|
+
S.call(n, S);
|
|
435
436
|
} catch {
|
|
436
437
|
return !0;
|
|
437
438
|
}
|
|
438
|
-
return
|
|
439
|
+
return n instanceof WeakMap;
|
|
439
440
|
} catch {
|
|
440
441
|
}
|
|
441
442
|
return !1;
|
|
442
443
|
}
|
|
443
444
|
r(we, "isWeakMap");
|
|
444
|
-
function Ae(
|
|
445
|
-
if (!s || !
|
|
445
|
+
function Ae(n) {
|
|
446
|
+
if (!s || !n || typeof n != "object")
|
|
446
447
|
return !1;
|
|
447
448
|
try {
|
|
448
|
-
return s.call(
|
|
449
|
+
return s.call(n), !0;
|
|
449
450
|
} catch {
|
|
450
451
|
}
|
|
451
452
|
return !1;
|
|
452
453
|
}
|
|
453
454
|
r(Ae, "isWeakRef");
|
|
454
|
-
function Pe(
|
|
455
|
-
if (!y || !
|
|
455
|
+
function Pe(n) {
|
|
456
|
+
if (!y || !n || typeof n != "object")
|
|
456
457
|
return !1;
|
|
457
458
|
try {
|
|
458
|
-
y.call(
|
|
459
|
+
y.call(n);
|
|
459
460
|
try {
|
|
460
|
-
|
|
461
|
+
a.call(n);
|
|
461
462
|
} catch {
|
|
462
463
|
return !0;
|
|
463
464
|
}
|
|
464
|
-
return
|
|
465
|
+
return n instanceof Set;
|
|
465
466
|
} catch {
|
|
466
467
|
}
|
|
467
468
|
return !1;
|
|
468
469
|
}
|
|
469
470
|
r(Pe, "isSet");
|
|
470
|
-
function Rn(
|
|
471
|
-
if (!S || !
|
|
471
|
+
function Rn(n) {
|
|
472
|
+
if (!S || !n || typeof n != "object")
|
|
472
473
|
return !1;
|
|
473
474
|
try {
|
|
474
|
-
S.call(
|
|
475
|
+
S.call(n, S);
|
|
475
476
|
try {
|
|
476
|
-
g.call(
|
|
477
|
+
g.call(n, g);
|
|
477
478
|
} catch {
|
|
478
479
|
return !0;
|
|
479
480
|
}
|
|
480
|
-
return
|
|
481
|
+
return n instanceof WeakSet;
|
|
481
482
|
} catch {
|
|
482
483
|
}
|
|
483
484
|
return !1;
|
|
484
485
|
}
|
|
485
486
|
r(Rn, "isWeakSet");
|
|
486
|
-
function xn(
|
|
487
|
-
return !
|
|
487
|
+
function xn(n) {
|
|
488
|
+
return !n || typeof n != "object" ? !1 : typeof HTMLElement < "u" && n instanceof HTMLElement ? !0 : typeof n.nodeName == "string" && typeof n.getAttribute == "function";
|
|
488
489
|
}
|
|
489
490
|
r(xn, "isElement");
|
|
490
|
-
function Zr(
|
|
491
|
-
if (
|
|
492
|
-
var N =
|
|
493
|
-
return Zr(c.call(
|
|
491
|
+
function Zr(n, o) {
|
|
492
|
+
if (n.length > o.maxStringLength) {
|
|
493
|
+
var N = n.length - o.maxStringLength, L = "... " + N + " more character" + (N > 1 ? "s" : "");
|
|
494
|
+
return Zr(c.call(n, 0, o.maxStringLength), o) + L;
|
|
494
495
|
}
|
|
495
496
|
var _ = se[o.quoteStyle || "single"];
|
|
496
497
|
_.lastIndex = 0;
|
|
497
|
-
var T = b.call(b.call(
|
|
498
|
+
var T = b.call(b.call(n, _, "\\$1"), /[\x00-\x1f]/g, In);
|
|
498
499
|
return pe(T, "single", o);
|
|
499
500
|
}
|
|
500
501
|
r(Zr, "inspectString");
|
|
501
|
-
function In(
|
|
502
|
-
var o =
|
|
502
|
+
function In(n) {
|
|
503
|
+
var o = n.charCodeAt(0), N = {
|
|
503
504
|
8: "b",
|
|
504
505
|
9: "t",
|
|
505
506
|
10: "n",
|
|
@@ -509,33 +510,33 @@ function Ce() {
|
|
|
509
510
|
return N ? "\\" + N : "\\x" + (o < 16 ? "0" : "") + v.call(o.toString(16));
|
|
510
511
|
}
|
|
511
512
|
r(In, "lowbyte");
|
|
512
|
-
function Me(
|
|
513
|
-
return "Object(" +
|
|
513
|
+
function Me(n) {
|
|
514
|
+
return "Object(" + n + ")";
|
|
514
515
|
}
|
|
515
516
|
r(Me, "markBoxed");
|
|
516
|
-
function _e(
|
|
517
|
-
return
|
|
517
|
+
function _e(n) {
|
|
518
|
+
return n + " { ? }";
|
|
518
519
|
}
|
|
519
520
|
r(_e, "weakCollectionOf");
|
|
520
|
-
function et(
|
|
521
|
+
function et(n, o, N, L) {
|
|
521
522
|
var _ = L ? Be(N, L) : I.call(N, ", ");
|
|
522
|
-
return
|
|
523
|
+
return n + " (" + o + ") {" + _ + "}";
|
|
523
524
|
}
|
|
524
525
|
r(et, "collectionOf");
|
|
525
|
-
function Mn(
|
|
526
|
-
for (var o = 0; o <
|
|
527
|
-
if (ve(
|
|
526
|
+
function Mn(n) {
|
|
527
|
+
for (var o = 0; o < n.length; o++)
|
|
528
|
+
if (ve(n[o], `
|
|
528
529
|
`) >= 0)
|
|
529
530
|
return !1;
|
|
530
531
|
return !0;
|
|
531
532
|
}
|
|
532
533
|
r(Mn, "singleLineValues");
|
|
533
|
-
function Tn(
|
|
534
|
+
function Tn(n, o) {
|
|
534
535
|
var N;
|
|
535
|
-
if (
|
|
536
|
+
if (n.indent === " ")
|
|
536
537
|
N = " ";
|
|
537
|
-
else if (typeof
|
|
538
|
-
N = I.call(Array(
|
|
538
|
+
else if (typeof n.indent == "number" && n.indent > 0)
|
|
539
|
+
N = I.call(Array(n.indent + 1), " ");
|
|
539
540
|
else
|
|
540
541
|
return null;
|
|
541
542
|
return {
|
|
@@ -544,33 +545,33 @@ function Ce() {
|
|
|
544
545
|
};
|
|
545
546
|
}
|
|
546
547
|
r(Tn, "getIndent");
|
|
547
|
-
function Be(
|
|
548
|
-
if (
|
|
548
|
+
function Be(n, o) {
|
|
549
|
+
if (n.length === 0)
|
|
549
550
|
return "";
|
|
550
551
|
var N = `
|
|
551
552
|
` + o.prev + o.base;
|
|
552
|
-
return N + I.call(
|
|
553
|
+
return N + I.call(n, "," + N) + `
|
|
553
554
|
` + o.prev;
|
|
554
555
|
}
|
|
555
556
|
r(Be, "indentedJoin");
|
|
556
|
-
function Ne(
|
|
557
|
-
var N = de(
|
|
557
|
+
function Ne(n, o) {
|
|
558
|
+
var N = de(n), L = [];
|
|
558
559
|
if (N) {
|
|
559
|
-
L.length =
|
|
560
|
-
for (var _ = 0; _ <
|
|
561
|
-
L[_] = V(
|
|
560
|
+
L.length = n.length;
|
|
561
|
+
for (var _ = 0; _ < n.length; _++)
|
|
562
|
+
L[_] = V(n, _) ? o(n[_], n) : "";
|
|
562
563
|
}
|
|
563
|
-
var T = typeof x == "function" ? x(
|
|
564
|
+
var T = typeof x == "function" ? x(n) : [], he;
|
|
564
565
|
if (k) {
|
|
565
566
|
he = {};
|
|
566
567
|
for (var Se = 0; Se < T.length; Se++)
|
|
567
568
|
he["$" + T[Se]] = T[Se];
|
|
568
569
|
}
|
|
569
|
-
for (var X in
|
|
570
|
-
V(
|
|
570
|
+
for (var X in n)
|
|
571
|
+
V(n, X) && (N && String(Number(X)) === X && X < n.length || k && he["$" + X] instanceof Symbol || (E.call(/[^\w$]/, X) ? L.push(o(X, n) + ": " + o(n[X], n)) : L.push(X + ": " + o(n[X], n))));
|
|
571
572
|
if (typeof x == "function")
|
|
572
573
|
for (var ge = 0; ge < T.length; ge++)
|
|
573
|
-
ie.call(
|
|
574
|
+
ie.call(n, T[ge]) && L.push("[" + o(T[ge]) + "]: " + o(n[T[ge]], n));
|
|
574
575
|
return L;
|
|
575
576
|
}
|
|
576
577
|
return r(Ne, "arrObjKeys"), Ve;
|
|
@@ -580,18 +581,18 @@ var Je, vt;
|
|
|
580
581
|
function Xn() {
|
|
581
582
|
if (vt) return Je;
|
|
582
583
|
vt = 1;
|
|
583
|
-
var e = /* @__PURE__ */ Ce(), t = /* @__PURE__ */ Ie(),
|
|
584
|
+
var e = /* @__PURE__ */ Ce(), t = /* @__PURE__ */ Ie(), a = /* @__PURE__ */ r(function(h, w, g) {
|
|
584
585
|
for (var m = h, S; (S = m.next) != null; m = S)
|
|
585
586
|
if (S.key === w)
|
|
586
587
|
return m.next = S.next, g || (S.next = /** @type {NonNullable<typeof list.next>} */
|
|
587
588
|
h.next, h.next = S), S;
|
|
588
589
|
}, "listGetNode"), i = /* @__PURE__ */ r(function(h, w) {
|
|
589
590
|
if (h) {
|
|
590
|
-
var g =
|
|
591
|
+
var g = a(h, w);
|
|
591
592
|
return g && g.value;
|
|
592
593
|
}
|
|
593
594
|
}, "listGet"), u = /* @__PURE__ */ r(function(h, w, g) {
|
|
594
|
-
var m =
|
|
595
|
+
var m = a(h, w);
|
|
595
596
|
m ? m.value = g : h.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
596
597
|
{
|
|
597
598
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -600,10 +601,10 @@ function Xn() {
|
|
|
600
601
|
value: g
|
|
601
602
|
};
|
|
602
603
|
}, "listSet"), d = /* @__PURE__ */ r(function(h, w) {
|
|
603
|
-
return h ? !!
|
|
604
|
+
return h ? !!a(h, w) : !1;
|
|
604
605
|
}, "listHas"), y = /* @__PURE__ */ r(function(h, w) {
|
|
605
606
|
if (h)
|
|
606
|
-
return
|
|
607
|
+
return a(h, w, !0);
|
|
607
608
|
}, "listDelete");
|
|
608
609
|
return Je = /* @__PURE__ */ r(function() {
|
|
609
610
|
var w, g = {
|
|
@@ -713,8 +714,8 @@ function pa() {
|
|
|
713
714
|
if (Tt) return cr;
|
|
714
715
|
Tt = 1;
|
|
715
716
|
var e = /* @__PURE__ */ sa();
|
|
716
|
-
return cr = /* @__PURE__ */ r(function(
|
|
717
|
-
return e(
|
|
717
|
+
return cr = /* @__PURE__ */ r(function(a) {
|
|
718
|
+
return e(a) || a === 0 ? a : a < 0 ? -1 : 1;
|
|
718
719
|
}, "sign"), cr;
|
|
719
720
|
}
|
|
720
721
|
r(pa, "requireSign");
|
|
@@ -758,22 +759,22 @@ function va() {
|
|
|
758
759
|
return !1;
|
|
759
760
|
if (typeof Symbol.iterator == "symbol")
|
|
760
761
|
return !0;
|
|
761
|
-
var t = {},
|
|
762
|
-
if (typeof
|
|
762
|
+
var t = {}, a = Symbol("test"), i = Object(a);
|
|
763
|
+
if (typeof a == "string" || Object.prototype.toString.call(a) !== "[object Symbol]" || Object.prototype.toString.call(i) !== "[object Symbol]")
|
|
763
764
|
return !1;
|
|
764
765
|
var u = 42;
|
|
765
|
-
t[
|
|
766
|
+
t[a] = u;
|
|
766
767
|
for (var d in t)
|
|
767
768
|
return !1;
|
|
768
769
|
if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
|
|
769
770
|
return !1;
|
|
770
771
|
var y = Object.getOwnPropertySymbols(t);
|
|
771
|
-
if (y.length !== 1 || y[0] !==
|
|
772
|
+
if (y.length !== 1 || y[0] !== a || !Object.prototype.propertyIsEnumerable.call(t, a))
|
|
772
773
|
return !1;
|
|
773
774
|
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
774
775
|
var h = (
|
|
775
776
|
/** @type {PropertyDescriptor} */
|
|
776
|
-
Object.getOwnPropertyDescriptor(t,
|
|
777
|
+
Object.getOwnPropertyDescriptor(t, a)
|
|
777
778
|
);
|
|
778
779
|
if (h.value !== u || h.enumerable !== !0)
|
|
779
780
|
return !1;
|
|
@@ -809,7 +810,7 @@ var mr, _t;
|
|
|
809
810
|
function ga() {
|
|
810
811
|
if (_t) return mr;
|
|
811
812
|
_t = 1;
|
|
812
|
-
var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString,
|
|
813
|
+
var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, a = Math.max, i = "[object Function]", u = /* @__PURE__ */ r(function(w, g) {
|
|
813
814
|
for (var m = [], S = 0; S < w.length; S += 1)
|
|
814
815
|
m[S] = w[S];
|
|
815
816
|
for (var O = 0; O < g.length; O += 1)
|
|
@@ -840,7 +841,7 @@ function ga() {
|
|
|
840
841
|
w,
|
|
841
842
|
u(m, arguments)
|
|
842
843
|
);
|
|
843
|
-
}, "binder"), s =
|
|
844
|
+
}, "binder"), s = a(0, g.length - m.length), p = [], P = 0; P < s; P++)
|
|
844
845
|
p[P] = "$" + P;
|
|
845
846
|
if (S = Function("binder", "return function (" + y(p, ",") + "){ return binder.apply(this,arguments); }")(O), g.prototype) {
|
|
846
847
|
var l = /* @__PURE__ */ r(function() {
|
|
@@ -878,19 +879,19 @@ var Ar, zt;
|
|
|
878
879
|
function ba() {
|
|
879
880
|
if (zt) return Ar;
|
|
880
881
|
zt = 1;
|
|
881
|
-
var e = Le(), t = gn(),
|
|
882
|
-
return Ar = i || e.call(
|
|
882
|
+
var e = Le(), t = gn(), a = Wr(), i = ma();
|
|
883
|
+
return Ar = i || e.call(a, t), Ar;
|
|
883
884
|
}
|
|
884
885
|
r(ba, "requireActualApply");
|
|
885
886
|
var Pr, Gt;
|
|
886
887
|
function mn() {
|
|
887
888
|
if (Gt) return Pr;
|
|
888
889
|
Gt = 1;
|
|
889
|
-
var e = Le(), t = /* @__PURE__ */ Ie(),
|
|
890
|
+
var e = Le(), t = /* @__PURE__ */ Ie(), a = Wr(), i = ba();
|
|
890
891
|
return Pr = /* @__PURE__ */ r(function(d) {
|
|
891
892
|
if (d.length < 1 || typeof d[0] != "function")
|
|
892
893
|
throw new t("a function is required");
|
|
893
|
-
return i(e,
|
|
894
|
+
return i(e, a, d);
|
|
894
895
|
}, "callBindBasic"), Pr;
|
|
895
896
|
}
|
|
896
897
|
r(mn, "requireCallBindApplyHelpers");
|
|
@@ -898,15 +899,15 @@ var Er, Ht;
|
|
|
898
899
|
function Sa() {
|
|
899
900
|
if (Ht) return Er;
|
|
900
901
|
Ht = 1;
|
|
901
|
-
var e = mn(), t = /* @__PURE__ */ yn(),
|
|
902
|
+
var e = mn(), t = /* @__PURE__ */ yn(), a;
|
|
902
903
|
try {
|
|
903
|
-
|
|
904
|
+
a = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
904
905
|
[].__proto__ === Array.prototype;
|
|
905
906
|
} catch (y) {
|
|
906
907
|
if (!y || typeof y != "object" || !("code" in y) || y.code !== "ERR_PROTO_ACCESS")
|
|
907
908
|
throw y;
|
|
908
909
|
}
|
|
909
|
-
var i = !!
|
|
910
|
+
var i = !!a && t && t(
|
|
910
911
|
Object.prototype,
|
|
911
912
|
/** @type {keyof typeof Object.prototype} */
|
|
912
913
|
"__proto__"
|
|
@@ -923,15 +924,15 @@ var Rr, Kt;
|
|
|
923
924
|
function Oa() {
|
|
924
925
|
if (Kt) return Rr;
|
|
925
926
|
Kt = 1;
|
|
926
|
-
var e = vn(), t = hn(),
|
|
927
|
+
var e = vn(), t = hn(), a = /* @__PURE__ */ Sa();
|
|
927
928
|
return Rr = e ? /* @__PURE__ */ r(function(u) {
|
|
928
929
|
return e(u);
|
|
929
930
|
}, "getProto") : t ? /* @__PURE__ */ r(function(u) {
|
|
930
931
|
if (!u || typeof u != "object" && typeof u != "function")
|
|
931
932
|
throw new TypeError("getProto: not an object");
|
|
932
933
|
return t(u);
|
|
933
|
-
}, "getProto") :
|
|
934
|
-
return
|
|
934
|
+
}, "getProto") : a ? /* @__PURE__ */ r(function(u) {
|
|
935
|
+
return a(u);
|
|
935
936
|
}, "getProto") : null, Rr;
|
|
936
937
|
}
|
|
937
938
|
r(Oa, "requireGetProto");
|
|
@@ -939,15 +940,15 @@ var xr, Qt;
|
|
|
939
940
|
function wa() {
|
|
940
941
|
if (Qt) return xr;
|
|
941
942
|
Qt = 1;
|
|
942
|
-
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty,
|
|
943
|
-
return xr =
|
|
943
|
+
var e = Function.prototype.call, t = Object.prototype.hasOwnProperty, a = Le();
|
|
944
|
+
return xr = a.call(e, t), xr;
|
|
944
945
|
}
|
|
945
946
|
r(wa, "requireHasown");
|
|
946
947
|
var Ir, Vt;
|
|
947
948
|
function Ur() {
|
|
948
949
|
if (Vt) return Ir;
|
|
949
950
|
Vt = 1;
|
|
950
|
-
var e, t = /* @__PURE__ */ dn(),
|
|
951
|
+
var e, t = /* @__PURE__ */ dn(), a = /* @__PURE__ */ Zn(), i = /* @__PURE__ */ ea(), u = /* @__PURE__ */ ra(), d = /* @__PURE__ */ ta(), y = /* @__PURE__ */ na(), h = /* @__PURE__ */ Ie(), w = /* @__PURE__ */ aa(), g = /* @__PURE__ */ oa(), m = /* @__PURE__ */ ia(), S = /* @__PURE__ */ la(), O = /* @__PURE__ */ ua(), s = /* @__PURE__ */ fa(), p = /* @__PURE__ */ ca(), P = /* @__PURE__ */ pa(), l = Function, f = /* @__PURE__ */ r(function(z) {
|
|
951
952
|
try {
|
|
952
953
|
return l('"use strict"; return (' + z + ").constructor;")();
|
|
953
954
|
} catch {
|
|
@@ -986,7 +987,7 @@ function Ur() {
|
|
|
986
987
|
"%decodeURIComponent%": decodeURIComponent,
|
|
987
988
|
"%encodeURI%": encodeURI,
|
|
988
989
|
"%encodeURIComponent%": encodeURIComponent,
|
|
989
|
-
"%Error%":
|
|
990
|
+
"%Error%": a,
|
|
990
991
|
"%eval%": eval,
|
|
991
992
|
// eslint-disable-line no-eval
|
|
992
993
|
"%EvalError%": i,
|
|
@@ -1185,13 +1186,13 @@ var Mr, Jt;
|
|
|
1185
1186
|
function bn() {
|
|
1186
1187
|
if (Jt) return Mr;
|
|
1187
1188
|
Jt = 1;
|
|
1188
|
-
var e = /* @__PURE__ */ Ur(), t = mn(),
|
|
1189
|
+
var e = /* @__PURE__ */ Ur(), t = mn(), a = t([e("%String.prototype.indexOf%")]);
|
|
1189
1190
|
return Mr = /* @__PURE__ */ r(function(u, d) {
|
|
1190
1191
|
var y = (
|
|
1191
1192
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
1192
1193
|
e(u, !!d)
|
|
1193
1194
|
);
|
|
1194
|
-
return typeof y == "function" &&
|
|
1195
|
+
return typeof y == "function" && a(u, ".prototype.") > -1 ? t(
|
|
1195
1196
|
/** @type {const} */
|
|
1196
1197
|
[y]
|
|
1197
1198
|
) : y;
|
|
@@ -1202,13 +1203,13 @@ var Tr, jt;
|
|
|
1202
1203
|
function Sn() {
|
|
1203
1204
|
if (jt) return Tr;
|
|
1204
1205
|
jt = 1;
|
|
1205
|
-
var e = /* @__PURE__ */ Ur(), t = /* @__PURE__ */ bn(),
|
|
1206
|
+
var e = /* @__PURE__ */ Ur(), t = /* @__PURE__ */ bn(), a = /* @__PURE__ */ Ce(), i = /* @__PURE__ */ Ie(), u = e("%Map%", !0), d = t("Map.prototype.get", !0), y = t("Map.prototype.set", !0), h = t("Map.prototype.has", !0), w = t("Map.prototype.delete", !0), g = t("Map.prototype.size", !0);
|
|
1206
1207
|
return Tr = !!u && /** @type {Exclude<import('.'), false>} */
|
|
1207
1208
|
/* @__PURE__ */ r(function() {
|
|
1208
1209
|
var S, O = {
|
|
1209
1210
|
assert: /* @__PURE__ */ r(function(s) {
|
|
1210
1211
|
if (!O.has(s))
|
|
1211
|
-
throw new i("Side channel does not contain " +
|
|
1212
|
+
throw new i("Side channel does not contain " + a(s));
|
|
1212
1213
|
}, "assert"),
|
|
1213
1214
|
delete: /* @__PURE__ */ r(function(s) {
|
|
1214
1215
|
if (S) {
|
|
@@ -1236,14 +1237,14 @@ var Fr, Yt;
|
|
|
1236
1237
|
function Aa() {
|
|
1237
1238
|
if (Yt) return Fr;
|
|
1238
1239
|
Yt = 1;
|
|
1239
|
-
var e = /* @__PURE__ */ Ur(), t = /* @__PURE__ */ bn(),
|
|
1240
|
+
var e = /* @__PURE__ */ Ur(), t = /* @__PURE__ */ bn(), a = /* @__PURE__ */ Ce(), i = Sn(), u = /* @__PURE__ */ Ie(), d = e("%WeakMap%", !0), y = t("WeakMap.prototype.get", !0), h = t("WeakMap.prototype.set", !0), w = t("WeakMap.prototype.has", !0), g = t("WeakMap.prototype.delete", !0);
|
|
1240
1241
|
return Fr = d ? (
|
|
1241
1242
|
/** @type {Exclude<import('.'), false>} */
|
|
1242
1243
|
/* @__PURE__ */ r(function() {
|
|
1243
1244
|
var S, O, s = {
|
|
1244
1245
|
assert: /* @__PURE__ */ r(function(p) {
|
|
1245
1246
|
if (!s.has(p))
|
|
1246
|
-
throw new u("Side channel does not contain " +
|
|
1247
|
+
throw new u("Side channel does not contain " + a(p));
|
|
1247
1248
|
}, "assert"),
|
|
1248
1249
|
delete: /* @__PURE__ */ r(function(p) {
|
|
1249
1250
|
if (d && p && (typeof p == "object" || typeof p == "function")) {
|
|
@@ -1272,7 +1273,7 @@ var Dr, Xt;
|
|
|
1272
1273
|
function Pa() {
|
|
1273
1274
|
if (Xt) return Dr;
|
|
1274
1275
|
Xt = 1;
|
|
1275
|
-
var e = /* @__PURE__ */ Ie(), t = /* @__PURE__ */ Ce(),
|
|
1276
|
+
var e = /* @__PURE__ */ Ie(), t = /* @__PURE__ */ Ce(), a = Xn(), i = Sn(), u = Aa(), d = u || i || a;
|
|
1276
1277
|
return Dr = /* @__PURE__ */ r(function() {
|
|
1277
1278
|
var h, w = {
|
|
1278
1279
|
assert: /* @__PURE__ */ r(function(g) {
|
|
@@ -1300,12 +1301,12 @@ var Nr, Zt;
|
|
|
1300
1301
|
function zr() {
|
|
1301
1302
|
if (Zt) return Nr;
|
|
1302
1303
|
Zt = 1;
|
|
1303
|
-
var e = String.prototype.replace, t = /%20/g,
|
|
1304
|
+
var e = String.prototype.replace, t = /%20/g, a = {
|
|
1304
1305
|
RFC1738: "RFC1738",
|
|
1305
1306
|
RFC3986: "RFC3986"
|
|
1306
1307
|
};
|
|
1307
1308
|
return Nr = {
|
|
1308
|
-
default:
|
|
1309
|
+
default: a.RFC3986,
|
|
1309
1310
|
formatters: {
|
|
1310
1311
|
RFC1738: /* @__PURE__ */ r(function(i) {
|
|
1311
1312
|
return e.call(i, t, "+");
|
|
@@ -1314,8 +1315,8 @@ function zr() {
|
|
|
1314
1315
|
return String(i);
|
|
1315
1316
|
}, "RFC3986")
|
|
1316
1317
|
},
|
|
1317
|
-
RFC1738:
|
|
1318
|
-
RFC3986:
|
|
1318
|
+
RFC1738: a.RFC1738,
|
|
1319
|
+
RFC3986: a.RFC3986
|
|
1319
1320
|
}, Nr;
|
|
1320
1321
|
}
|
|
1321
1322
|
r(zr, "requireFormats");
|
|
@@ -1323,14 +1324,14 @@ var qr, en;
|
|
|
1323
1324
|
function On() {
|
|
1324
1325
|
if (en) return qr;
|
|
1325
1326
|
en = 1;
|
|
1326
|
-
var e = /* @__PURE__ */ zr(), t = Object.prototype.hasOwnProperty,
|
|
1327
|
+
var e = /* @__PURE__ */ zr(), t = Object.prototype.hasOwnProperty, a = Array.isArray, i = (function() {
|
|
1327
1328
|
for (var l = [], f = 0; f < 256; ++f)
|
|
1328
1329
|
l.push("%" + ((f < 16 ? "0" : "") + f.toString(16)).toUpperCase());
|
|
1329
1330
|
return l;
|
|
1330
1331
|
})(), u = /* @__PURE__ */ r(function(f) {
|
|
1331
1332
|
for (; f.length > 1; ) {
|
|
1332
1333
|
var c = f.pop(), b = c.obj[c.prop];
|
|
1333
|
-
if (
|
|
1334
|
+
if (a(b)) {
|
|
1334
1335
|
for (var v = [], A = 0; A < b.length; ++A)
|
|
1335
1336
|
typeof b[A] < "u" && v.push(b[A]);
|
|
1336
1337
|
c.obj[c.prop] = v;
|
|
@@ -1344,7 +1345,7 @@ function On() {
|
|
|
1344
1345
|
if (!c)
|
|
1345
1346
|
return f;
|
|
1346
1347
|
if (typeof c != "object" && typeof c != "function") {
|
|
1347
|
-
if (
|
|
1348
|
+
if (a(f))
|
|
1348
1349
|
f.push(c);
|
|
1349
1350
|
else if (f && typeof f == "object")
|
|
1350
1351
|
(b && (b.plainObjects || b.allowPrototypes) || !t.call(Object.prototype, c)) && (f[c] = !0);
|
|
@@ -1355,7 +1356,7 @@ function On() {
|
|
|
1355
1356
|
if (!f || typeof f != "object")
|
|
1356
1357
|
return [f].concat(c);
|
|
1357
1358
|
var v = f;
|
|
1358
|
-
return
|
|
1359
|
+
return a(f) && !a(c) && (v = d(f, b)), a(f) && a(c) ? (c.forEach(function(A, E) {
|
|
1359
1360
|
if (t.call(f, E)) {
|
|
1360
1361
|
var R = f[E];
|
|
1361
1362
|
R && typeof R == "object" && A && typeof A == "object" ? f[E] = l(R, A, b) : f.push(A);
|
|
@@ -1424,7 +1425,7 @@ function On() {
|
|
|
1424
1425
|
}, "isBuffer"), p = /* @__PURE__ */ r(function(f, c) {
|
|
1425
1426
|
return [].concat(f, c);
|
|
1426
1427
|
}, "combine"), P = /* @__PURE__ */ r(function(f, c) {
|
|
1427
|
-
if (
|
|
1428
|
+
if (a(f)) {
|
|
1428
1429
|
for (var b = [], v = 0; v < f.length; v += 1)
|
|
1429
1430
|
b.push(c(f[v]));
|
|
1430
1431
|
return b;
|
|
@@ -1449,7 +1450,7 @@ var $r, rn;
|
|
|
1449
1450
|
function Ea() {
|
|
1450
1451
|
if (rn) return $r;
|
|
1451
1452
|
rn = 1;
|
|
1452
|
-
var e = Pa(), t = /* @__PURE__ */ On(),
|
|
1453
|
+
var e = Pa(), t = /* @__PURE__ */ On(), a = /* @__PURE__ */ zr(), i = Object.prototype.hasOwnProperty, u = {
|
|
1453
1454
|
brackets: /* @__PURE__ */ r(function(l) {
|
|
1454
1455
|
return l + "[]";
|
|
1455
1456
|
}, "brackets"),
|
|
@@ -1462,7 +1463,7 @@ function Ea() {
|
|
|
1462
1463
|
}, "repeat")
|
|
1463
1464
|
}, d = Array.isArray, y = Array.prototype.push, h = /* @__PURE__ */ r(function(P, l) {
|
|
1464
1465
|
y.apply(P, d(l) ? l : [l]);
|
|
1465
|
-
}, "pushToArray"), w = Date.prototype.toISOString, g =
|
|
1466
|
+
}, "pushToArray"), w = Date.prototype.toISOString, g = a.default, m = {
|
|
1466
1467
|
addQueryPrefix: !1,
|
|
1467
1468
|
allowDots: !1,
|
|
1468
1469
|
allowEmptyArrays: !1,
|
|
@@ -1477,7 +1478,7 @@ function Ea() {
|
|
|
1477
1478
|
encodeValuesOnly: !1,
|
|
1478
1479
|
filter: void 0,
|
|
1479
1480
|
format: g,
|
|
1480
|
-
formatter:
|
|
1481
|
+
formatter: a.formatters[g],
|
|
1481
1482
|
// deprecated
|
|
1482
1483
|
indices: !1,
|
|
1483
1484
|
serializeDate: /* @__PURE__ */ r(function(l) {
|
|
@@ -1567,13 +1568,13 @@ function Ea() {
|
|
|
1567
1568
|
var f = l.charset || m.charset;
|
|
1568
1569
|
if (typeof l.charset < "u" && l.charset !== "utf-8" && l.charset !== "iso-8859-1")
|
|
1569
1570
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1570
|
-
var c =
|
|
1571
|
+
var c = a.default;
|
|
1571
1572
|
if (typeof l.format < "u") {
|
|
1572
|
-
if (!i.call(
|
|
1573
|
+
if (!i.call(a.formatters, l.format))
|
|
1573
1574
|
throw new TypeError("Unknown format option provided.");
|
|
1574
1575
|
c = l.format;
|
|
1575
1576
|
}
|
|
1576
|
-
var b =
|
|
1577
|
+
var b = a.formatters[c], v = m.filter;
|
|
1577
1578
|
(typeof l.filter == "function" || d(l.filter)) && (v = l.filter);
|
|
1578
1579
|
var A;
|
|
1579
1580
|
if (l.arrayFormat in u ? A = l.arrayFormat : "indices" in l ? A = l.indices ? "indices" : "repeat" : A = m.arrayFormat, "commaRoundTrip" in l && typeof l.commaRoundTrip != "boolean")
|
|
@@ -1641,7 +1642,7 @@ var Cr, tn;
|
|
|
1641
1642
|
function Ra() {
|
|
1642
1643
|
if (tn) return Cr;
|
|
1643
1644
|
tn = 1;
|
|
1644
|
-
var e = /* @__PURE__ */ On(), t = Object.prototype.hasOwnProperty,
|
|
1645
|
+
var e = /* @__PURE__ */ On(), t = Object.prototype.hasOwnProperty, a = Array.isArray, i = {
|
|
1645
1646
|
allowDots: !1,
|
|
1646
1647
|
allowEmptyArrays: !1,
|
|
1647
1648
|
allowPrototypes: !1,
|
|
@@ -1693,12 +1694,12 @@ function Ra() {
|
|
|
1693
1694
|
d(
|
|
1694
1695
|
E.slice(I + 1),
|
|
1695
1696
|
p,
|
|
1696
|
-
|
|
1697
|
+
a(P[q]) ? P[q].length : 0
|
|
1697
1698
|
),
|
|
1698
1699
|
function(x) {
|
|
1699
1700
|
return p.decoder(x, i.decoder, A, "value");
|
|
1700
1701
|
}
|
|
1701
|
-
)), M && p.interpretNumericEntities && A === "iso-8859-1" && (M = u(String(M))), E.indexOf("[]=") > -1 && (M =
|
|
1702
|
+
)), M && p.interpretNumericEntities && A === "iso-8859-1" && (M = u(String(M))), E.indexOf("[]=") > -1 && (M = a(M) ? [M] : M);
|
|
1702
1703
|
var $ = t.call(P, q);
|
|
1703
1704
|
$ && p.duplicates === "combine" ? P[q] = e.combine(P[q], M) : (!$ || p.duplicates === "last") && (P[q] = M);
|
|
1704
1705
|
}
|
|
@@ -1799,16 +1800,16 @@ var Lr, nn;
|
|
|
1799
1800
|
function xa() {
|
|
1800
1801
|
if (nn) return Lr;
|
|
1801
1802
|
nn = 1;
|
|
1802
|
-
var e = /* @__PURE__ */ Ea(), t = /* @__PURE__ */ Ra(),
|
|
1803
|
+
var e = /* @__PURE__ */ Ea(), t = /* @__PURE__ */ Ra(), a = /* @__PURE__ */ zr();
|
|
1803
1804
|
return Lr = {
|
|
1804
|
-
formats:
|
|
1805
|
+
formats: a,
|
|
1805
1806
|
parse: t,
|
|
1806
1807
|
stringify: e
|
|
1807
1808
|
}, Lr;
|
|
1808
1809
|
}
|
|
1809
1810
|
r(xa, "requireLib");
|
|
1810
1811
|
var Ia = /* @__PURE__ */ xa();
|
|
1811
|
-
const Ma = /* @__PURE__ */
|
|
1812
|
+
const Ma = /* @__PURE__ */ zn(Ia), an = "1.6rem", on = 0.8, _r = 3, Ta = "layout", Fe = {
|
|
1812
1813
|
palette: {
|
|
1813
1814
|
mode: "light",
|
|
1814
1815
|
text: {
|
|
@@ -1895,22 +1896,22 @@ function qa() {
|
|
|
1895
1896
|
r(qa, "getParsedQuerySettings");
|
|
1896
1897
|
function Gr(e, t) {
|
|
1897
1898
|
var u, d;
|
|
1898
|
-
const
|
|
1899
|
+
const a = (u = t == null ? void 0 : t.layout) == null ? void 0 : u.style, i = !!a && a !== ((d = e == null ? void 0 : e.layout) == null ? void 0 : d.style);
|
|
1899
1900
|
return W(
|
|
1900
1901
|
{},
|
|
1901
1902
|
e,
|
|
1902
|
-
i ? { layout: An(
|
|
1903
|
+
i ? { layout: An(a) } : {},
|
|
1903
1904
|
t
|
|
1904
1905
|
);
|
|
1905
1906
|
}
|
|
1906
1907
|
r(Gr, "generateSettings");
|
|
1907
1908
|
function $a(e, t) {
|
|
1908
|
-
const
|
|
1909
|
+
const a = W({}, Na, {
|
|
1909
1910
|
direction: (e == null ? void 0 : e.direction) ?? wn(),
|
|
1910
1911
|
theme: Pn(t)
|
|
1911
1912
|
});
|
|
1912
1913
|
return Gr(
|
|
1913
|
-
|
|
1914
|
+
a,
|
|
1914
1915
|
W({}, e, qa())
|
|
1915
1916
|
);
|
|
1916
1917
|
}
|
|
@@ -2276,13 +2277,13 @@ const Ca = {
|
|
|
2276
2277
|
default: {
|
|
2277
2278
|
palette: {
|
|
2278
2279
|
mode: "light",
|
|
2279
|
-
primary:
|
|
2280
|
+
primary: ft,
|
|
2280
2281
|
secondary: {
|
|
2281
2282
|
light: xe[400],
|
|
2282
2283
|
main: xe[600],
|
|
2283
2284
|
dark: xe[700]
|
|
2284
2285
|
},
|
|
2285
|
-
error:
|
|
2286
|
+
error: ct
|
|
2286
2287
|
},
|
|
2287
2288
|
status: {
|
|
2288
2289
|
danger: "orange"
|
|
@@ -2291,13 +2292,13 @@ const Ca = {
|
|
|
2291
2292
|
defaultDark: {
|
|
2292
2293
|
palette: {
|
|
2293
2294
|
mode: "dark",
|
|
2294
|
-
primary:
|
|
2295
|
+
primary: ft,
|
|
2295
2296
|
secondary: {
|
|
2296
2297
|
light: xe[400],
|
|
2297
2298
|
main: xe[600],
|
|
2298
2299
|
dark: xe[700]
|
|
2299
2300
|
},
|
|
2300
|
-
error:
|
|
2301
|
+
error: ct
|
|
2301
2302
|
},
|
|
2302
2303
|
status: {
|
|
2303
2304
|
danger: "orange"
|
|
@@ -2307,28 +2308,28 @@ const Ca = {
|
|
|
2307
2308
|
function _a(e) {
|
|
2308
2309
|
const t = pn(e);
|
|
2309
2310
|
return {
|
|
2310
|
-
border: /* @__PURE__ */ r((
|
|
2311
|
-
borderWidth:
|
|
2311
|
+
border: /* @__PURE__ */ r((a = 1) => ({
|
|
2312
|
+
borderWidth: a,
|
|
2312
2313
|
borderStyle: "solid",
|
|
2313
2314
|
borderColor: t.palette.divider
|
|
2314
2315
|
}), "border"),
|
|
2315
|
-
borderLeft: /* @__PURE__ */ r((
|
|
2316
|
-
borderLeftWidth:
|
|
2316
|
+
borderLeft: /* @__PURE__ */ r((a = 1) => ({
|
|
2317
|
+
borderLeftWidth: a,
|
|
2317
2318
|
borderStyle: "solid",
|
|
2318
2319
|
borderColor: t.palette.divider
|
|
2319
2320
|
}), "borderLeft"),
|
|
2320
|
-
borderRight: /* @__PURE__ */ r((
|
|
2321
|
-
borderRightWidth:
|
|
2321
|
+
borderRight: /* @__PURE__ */ r((a = 1) => ({
|
|
2322
|
+
borderRightWidth: a,
|
|
2322
2323
|
borderStyle: "solid",
|
|
2323
2324
|
borderColor: t.palette.divider
|
|
2324
2325
|
}), "borderRight"),
|
|
2325
|
-
borderTop: /* @__PURE__ */ r((
|
|
2326
|
-
borderTopWidth:
|
|
2326
|
+
borderTop: /* @__PURE__ */ r((a = 1) => ({
|
|
2327
|
+
borderTopWidth: a,
|
|
2327
2328
|
borderStyle: "solid",
|
|
2328
2329
|
borderColor: t.palette.divider
|
|
2329
2330
|
}), "borderTop"),
|
|
2330
|
-
borderBottom: /* @__PURE__ */ r((
|
|
2331
|
-
borderBottomWidth:
|
|
2331
|
+
borderBottom: /* @__PURE__ */ r((a = 1) => ({
|
|
2332
|
+
borderBottomWidth: a,
|
|
2332
2333
|
borderStyle: "solid",
|
|
2333
2334
|
borderColor: t.palette.divider
|
|
2334
2335
|
}), "borderBottom")
|
|
@@ -2410,52 +2411,41 @@ function Ba(e) {
|
|
|
2410
2411
|
});
|
|
2411
2412
|
}
|
|
2412
2413
|
r(Ba, "OwpNavItemModel");
|
|
2413
|
-
function ka(e, t) {
|
|
2414
|
-
if (!e.children)
|
|
2415
|
-
return !1;
|
|
2416
|
-
for (let n = 0; n < e.children.length; n += 1) {
|
|
2417
|
-
const i = e.children[n];
|
|
2418
|
-
if (i.children && ka(i, t) || i.url && (i.url === t || t.includes(i.url)))
|
|
2419
|
-
return !0;
|
|
2420
|
-
}
|
|
2421
|
-
return !1;
|
|
2422
|
-
}
|
|
2423
|
-
r(ka, "isUrlInChildren");
|
|
2424
2414
|
const Xr = class Xr {
|
|
2425
|
-
static selectById(t,
|
|
2415
|
+
static selectById(t, a) {
|
|
2426
2416
|
for (let i = 0; i < t.length; i += 1) {
|
|
2427
2417
|
const u = t[i];
|
|
2428
|
-
if (u.id ===
|
|
2418
|
+
if (u.id === a)
|
|
2429
2419
|
return u;
|
|
2430
2420
|
if (u.children) {
|
|
2431
|
-
const d = this.selectById(u.children,
|
|
2421
|
+
const d = this.selectById(u.children, a);
|
|
2432
2422
|
if (d)
|
|
2433
2423
|
return d;
|
|
2434
2424
|
}
|
|
2435
2425
|
}
|
|
2436
2426
|
}
|
|
2437
|
-
static appendNavItem(t,
|
|
2427
|
+
static appendNavItem(t, a, i = null) {
|
|
2438
2428
|
return i ? t.map((u) => {
|
|
2439
2429
|
if (u.id === i) {
|
|
2440
2430
|
const d = { ...u };
|
|
2441
|
-
return d.children = [...u.children || [],
|
|
2431
|
+
return d.children = [...u.children || [], a], d;
|
|
2442
2432
|
}
|
|
2443
|
-
return u.children ? { ...u, children: this.appendNavItem(u.children,
|
|
2444
|
-
}) : [...t,
|
|
2433
|
+
return u.children ? { ...u, children: this.appendNavItem(u.children, a, i) } : { ...u };
|
|
2434
|
+
}) : [...t, a];
|
|
2445
2435
|
}
|
|
2446
|
-
static prependNavItem(t,
|
|
2436
|
+
static prependNavItem(t, a, i = null) {
|
|
2447
2437
|
return i ? t.map((u) => {
|
|
2448
2438
|
if (u.id === i) {
|
|
2449
2439
|
const d = { ...u };
|
|
2450
|
-
return d.children = [
|
|
2440
|
+
return d.children = [a, ...u.children || []], d;
|
|
2451
2441
|
}
|
|
2452
|
-
return u.children ? { ...u, children: this.prependNavItem(u.children,
|
|
2453
|
-
}) : [
|
|
2442
|
+
return u.children ? { ...u, children: this.prependNavItem(u.children, a, i) } : { ...u };
|
|
2443
|
+
}) : [a, ...t];
|
|
2454
2444
|
}
|
|
2455
|
-
static filterNavigationByPermission(t,
|
|
2445
|
+
static filterNavigationByPermission(t, a) {
|
|
2456
2446
|
return t.reduce((i, u) => {
|
|
2457
|
-
const d = u.children ? this.filterNavigationByPermission(u.children,
|
|
2458
|
-
if (this.hasPermission(u.auth,
|
|
2447
|
+
const d = u.children ? this.filterNavigationByPermission(u.children, a) : [];
|
|
2448
|
+
if (this.hasPermission(u.auth, a) || d.length) {
|
|
2459
2449
|
const y = { ...u };
|
|
2460
2450
|
y.children = d.length ? d : void 0, i.push(y);
|
|
2461
2451
|
}
|
|
@@ -2465,39 +2455,39 @@ const Xr = class Xr {
|
|
|
2465
2455
|
/**
|
|
2466
2456
|
* Navigation item removal
|
|
2467
2457
|
*/
|
|
2468
|
-
static removeNavItem(t,
|
|
2469
|
-
return t.reduce((i, u) => (u.id !==
|
|
2458
|
+
static removeNavItem(t, a) {
|
|
2459
|
+
return t.reduce((i, u) => (u.id !== a && (u.children ? i.push({
|
|
2470
2460
|
...u,
|
|
2471
|
-
children: this.removeNavItem(u.children,
|
|
2461
|
+
children: this.removeNavItem(u.children, a)
|
|
2472
2462
|
}) : i.push(u)), i), []);
|
|
2473
2463
|
}
|
|
2474
2464
|
/**
|
|
2475
2465
|
* Navigation item update
|
|
2476
2466
|
*/
|
|
2477
|
-
static updateNavItem(t,
|
|
2478
|
-
return t.map((u) => u.id ===
|
|
2467
|
+
static updateNavItem(t, a, i) {
|
|
2468
|
+
return t.map((u) => u.id === a ? W({}, u, i) : u.children ? {
|
|
2479
2469
|
...u,
|
|
2480
|
-
children: this.updateNavItem(u.children,
|
|
2470
|
+
children: this.updateNavItem(u.children, a, i)
|
|
2481
2471
|
} : u);
|
|
2482
2472
|
}
|
|
2483
2473
|
/**
|
|
2484
2474
|
* Flat navigation list extraction
|
|
2485
2475
|
*/
|
|
2486
|
-
static getFlatNavigation(t = [],
|
|
2476
|
+
static getFlatNavigation(t = [], a = []) {
|
|
2487
2477
|
for (let i = 0; i < t.length; i += 1) {
|
|
2488
2478
|
const u = t[i];
|
|
2489
|
-
u.type === "item" &&
|
|
2479
|
+
u.type === "item" && a.push(Ba(u)), (u.type === "collapse" || u.type === "group") && u.children && this.getFlatNavigation(u.children, a);
|
|
2490
2480
|
}
|
|
2491
|
-
return
|
|
2481
|
+
return a;
|
|
2492
2482
|
}
|
|
2493
2483
|
// @ts-expect-error legacy user role contract
|
|
2494
|
-
static hasPermission(t,
|
|
2495
|
-
return t == null ? !0 : t.length === 0 ? !
|
|
2484
|
+
static hasPermission(t, a) {
|
|
2485
|
+
return t == null ? !0 : t.length === 0 ? !a || a.length === 0 : a && Array.isArray(t) && Array.isArray(a) ? t.some((i) => a.indexOf(i) >= 0) : t.includes(a);
|
|
2496
2486
|
}
|
|
2497
|
-
static flattenNavigation(t,
|
|
2487
|
+
static flattenNavigation(t, a = "") {
|
|
2498
2488
|
return t.flatMap((i, u) => {
|
|
2499
2489
|
var h;
|
|
2500
|
-
const d =
|
|
2490
|
+
const d = a ? `${a}.${u + 1}` : `${u + 1}`;
|
|
2501
2491
|
let y = [
|
|
2502
2492
|
{ ...i, order: d, children: (h = i.children) == null ? void 0 : h.map((w) => w.id) }
|
|
2503
2493
|
];
|
|
@@ -2505,24 +2495,24 @@ const Xr = class Xr {
|
|
|
2505
2495
|
});
|
|
2506
2496
|
}
|
|
2507
2497
|
static unflattenNavigation(t) {
|
|
2508
|
-
const
|
|
2498
|
+
const a = {};
|
|
2509
2499
|
t.forEach((u) => {
|
|
2510
|
-
|
|
2500
|
+
a[u.id] = { ...u, children: [] };
|
|
2511
2501
|
});
|
|
2512
2502
|
const i = [];
|
|
2513
2503
|
return t.forEach((u) => {
|
|
2514
2504
|
if (u.order.includes(".")) {
|
|
2515
2505
|
const d = u.order.substring(0, u.order.lastIndexOf(".")), y = t.find((h) => h.order === d);
|
|
2516
|
-
y &&
|
|
2506
|
+
y && a[y.id].children.push(a[u.id]);
|
|
2517
2507
|
} else
|
|
2518
|
-
i.push(
|
|
2508
|
+
i.push(a[u.id]);
|
|
2519
2509
|
}), i.map((u) => ({ ...u }));
|
|
2520
2510
|
}
|
|
2521
2511
|
};
|
|
2522
2512
|
r(Xr, "OwpNavigationHelper");
|
|
2523
2513
|
let De = Xr;
|
|
2524
|
-
const Kr = qn(),
|
|
2525
|
-
selectAll:
|
|
2514
|
+
const Kr = qn(), ka = Kr.getInitialState([]), un = ka, {
|
|
2515
|
+
selectAll: Wa,
|
|
2526
2516
|
selectIds: vo,
|
|
2527
2517
|
selectById: ho
|
|
2528
2518
|
} = Kr.getSelectors((e) => e.navigation), Qr = kr({
|
|
@@ -2534,35 +2524,35 @@ const Kr = qn(), Wa = Kr.getInitialState([]), un = Wa, {
|
|
|
2534
2524
|
},
|
|
2535
2525
|
resetNavigation: /* @__PURE__ */ r(() => un, "resetNavigation")
|
|
2536
2526
|
}
|
|
2537
|
-
}), { setNavigation: go, resetNavigation: mo } = Qr.actions,
|
|
2538
|
-
[
|
|
2527
|
+
}), { setNavigation: go, resetNavigation: mo } = Qr.actions, Ua = J(
|
|
2528
|
+
[Wa],
|
|
2539
2529
|
(e, t) => {
|
|
2540
|
-
const
|
|
2530
|
+
const a = De.unflattenNavigation(e);
|
|
2541
2531
|
function i(d) {
|
|
2542
2532
|
return d == null ? void 0 : d.map((y) => ({
|
|
2543
2533
|
hasPermission: !!Cn.hasPermission(y == null ? void 0 : y.auth, t),
|
|
2544
2534
|
...y,
|
|
2545
|
-
...y != null && y.translate && (y != null && y.title) ? { title:
|
|
2535
|
+
...y != null && y.translate && (y != null && y.title) ? { title: kn.t(`navigation:${y == null ? void 0 : y.translate}`) } : {},
|
|
2546
2536
|
...y != null && y.children ? { children: i(y == null ? void 0 : y.children) } : {}
|
|
2547
2537
|
}));
|
|
2548
2538
|
}
|
|
2549
|
-
return r(i, "setAdditionalData"), i(
|
|
2539
|
+
return r(i, "setAdditionalData"), i(a);
|
|
2550
2540
|
}
|
|
2551
2541
|
);
|
|
2552
|
-
J([
|
|
2542
|
+
J([Ua], (e) => De.flattenNavigation(e));
|
|
2553
2543
|
Qr.reducer;
|
|
2554
|
-
const
|
|
2544
|
+
const za = {
|
|
2555
2545
|
primary: "rgb(17, 24, 39)",
|
|
2556
2546
|
secondary: "rgb(107, 114, 128)",
|
|
2557
2547
|
disabled: "rgb(149, 156, 169)"
|
|
2558
|
-
},
|
|
2548
|
+
}, Ga = {
|
|
2559
2549
|
primary: "rgb(255,255,255)",
|
|
2560
2550
|
secondary: "rgb(148, 163, 184)",
|
|
2561
2551
|
disabled: "rgb(156, 163, 175)"
|
|
2562
2552
|
}, bo = cn(
|
|
2563
2553
|
"owpSettings/changeOwpTheme",
|
|
2564
|
-
async (e, { dispatch: t, getState:
|
|
2565
|
-
const u =
|
|
2554
|
+
async (e, { dispatch: t, getState: a }) => {
|
|
2555
|
+
const u = a().owpSettings, { navbar: d, footer: y, toolbar: h, main: w } = e, g = {
|
|
2566
2556
|
...u.current,
|
|
2567
2557
|
theme: {
|
|
2568
2558
|
main: w,
|
|
@@ -2592,10 +2582,10 @@ const Ga = {
|
|
|
2592
2582
|
initialState: fn,
|
|
2593
2583
|
reducers: {
|
|
2594
2584
|
setSettings: /* @__PURE__ */ r((e, t) => {
|
|
2595
|
-
const
|
|
2585
|
+
const a = Gr(e.defaults, t.payload);
|
|
2596
2586
|
return {
|
|
2597
2587
|
...e,
|
|
2598
|
-
current:
|
|
2588
|
+
current: a
|
|
2599
2589
|
};
|
|
2600
2590
|
}, "setSettings"),
|
|
2601
2591
|
setInitialSettings: /* @__PURE__ */ r(() => W({}, fn), "setInitialSettings"),
|
|
@@ -2606,7 +2596,7 @@ const Ga = {
|
|
|
2606
2596
|
}), "resetSettings")
|
|
2607
2597
|
},
|
|
2608
2598
|
extraReducers: /* @__PURE__ */ r((e) => {
|
|
2609
|
-
e.addCase(En.fulfilled, (t,
|
|
2599
|
+
e.addCase(En.fulfilled, (t, a) => a.payload);
|
|
2610
2600
|
}, "extraReducers"),
|
|
2611
2601
|
selectors: {
|
|
2612
2602
|
selectOwpSettings: /* @__PURE__ */ r((e) => e, "selectOwpSettings"),
|
|
@@ -2624,20 +2614,20 @@ const Ga = {
|
|
|
2624
2614
|
}
|
|
2625
2615
|
}), So = Q.selectors.selectOwpCurrentLayoutConfig, Oo = Q.selectors.selectOwpCurrentSettings, wo = Q.selectors.selectOwpSettings, Ao = Q.selectors.selectOwpSettingsDefaults, Po = Q.selectors.selectOwpSettingsCurrent, Eo = Q.selectors.selectOwpDefaultSettings, Ro = Q.selectors.selectCustomScrollbarsEnabled, te = Q.selectors.getDirection, Vr = Q.selectors.getMainTheme, Jr = Q.selectors.getNavbarTheme, jr = Q.selectors.getToolbarTheme, Yr = Q.selectors.getFooterTheme;
|
|
2626
2616
|
function ne(e, t) {
|
|
2627
|
-
const
|
|
2617
|
+
const a = W({}, Ca, e, La);
|
|
2628
2618
|
return pn(
|
|
2629
|
-
W({},
|
|
2630
|
-
mixins: _a(
|
|
2619
|
+
W({}, a, {
|
|
2620
|
+
mixins: _a(a),
|
|
2631
2621
|
direction: t
|
|
2632
2622
|
})
|
|
2633
2623
|
);
|
|
2634
2624
|
}
|
|
2635
2625
|
r(ne, "generateMuiTheme");
|
|
2636
2626
|
const xo = /* @__PURE__ */ r((e) => {
|
|
2637
|
-
function t(
|
|
2638
|
-
return
|
|
2627
|
+
function t(a) {
|
|
2628
|
+
return Wn(a, "#ffffff") >= 3;
|
|
2639
2629
|
}
|
|
2640
|
-
return r(t, "isDark"), t(e) ?
|
|
2630
|
+
return r(t, "isDark"), t(e) ? Ha : Ka;
|
|
2641
2631
|
}, "selectContrastMainTheme");
|
|
2642
2632
|
function me(e, t) {
|
|
2643
2633
|
return W({}, e, {
|
|
@@ -2649,7 +2639,7 @@ function me(e, t) {
|
|
|
2649
2639
|
paper: "#1E2125",
|
|
2650
2640
|
default: "#121212"
|
|
2651
2641
|
},
|
|
2652
|
-
text:
|
|
2642
|
+
text: Ga
|
|
2653
2643
|
}
|
|
2654
2644
|
},
|
|
2655
2645
|
light: {
|
|
@@ -2660,7 +2650,7 @@ function me(e, t) {
|
|
|
2660
2650
|
paper: "#FFFFFF",
|
|
2661
2651
|
default: "#F7F7F7"
|
|
2662
2652
|
},
|
|
2663
|
-
text:
|
|
2653
|
+
text: za
|
|
2664
2654
|
}
|
|
2665
2655
|
}
|
|
2666
2656
|
}[t]);
|
|
@@ -2669,10 +2659,10 @@ r(me, "changeThemeMode");
|
|
|
2669
2659
|
const Io = J(
|
|
2670
2660
|
[Vr, te],
|
|
2671
2661
|
(e, t) => ne(e, t)
|
|
2672
|
-
),
|
|
2662
|
+
), Ha = J(
|
|
2673
2663
|
[Vr, te],
|
|
2674
2664
|
(e, t) => ne(me(e, "dark"), t)
|
|
2675
|
-
),
|
|
2665
|
+
), Ka = J(
|
|
2676
2666
|
[Vr, te],
|
|
2677
2667
|
(e, t) => ne(me(e, "light"), t)
|
|
2678
2668
|
), Mo = J(
|
|
@@ -2713,7 +2703,7 @@ const Wo = $n(
|
|
|
2713
2703
|
Hr
|
|
2714
2704
|
).withLazyLoadedSlices();
|
|
2715
2705
|
export {
|
|
2716
|
-
|
|
2706
|
+
to as $,
|
|
2717
2707
|
qo as A,
|
|
2718
2708
|
$o as B,
|
|
2719
2709
|
Co as C,
|
|
@@ -2725,28 +2715,27 @@ export {
|
|
|
2725
2715
|
Wo as I,
|
|
2726
2716
|
so as J,
|
|
2727
2717
|
uo as K,
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2718
|
+
co as L,
|
|
2719
|
+
Qr as M,
|
|
2720
|
+
yo as N,
|
|
2721
|
+
po as O,
|
|
2722
|
+
oo as P,
|
|
2723
|
+
ao as Q,
|
|
2724
|
+
De as R,
|
|
2725
|
+
Gr as S,
|
|
2726
|
+
Kn as T,
|
|
2727
|
+
Vn as U,
|
|
2728
|
+
An as V,
|
|
2729
|
+
Pn as W,
|
|
2730
|
+
Na as X,
|
|
2731
|
+
qa as Y,
|
|
2732
|
+
Ca as Z,
|
|
2733
|
+
La as _,
|
|
2744
2734
|
So as a,
|
|
2745
|
-
|
|
2746
|
-
_a as a1,
|
|
2735
|
+
_a as a0,
|
|
2747
2736
|
Oo as b,
|
|
2748
2737
|
bo as c,
|
|
2749
|
-
|
|
2738
|
+
Ga as d,
|
|
2750
2739
|
wo as e,
|
|
2751
2740
|
Ao as f,
|
|
2752
2741
|
Po as g,
|
|
@@ -2754,7 +2743,7 @@ export {
|
|
|
2754
2743
|
Ro as i,
|
|
2755
2744
|
te as j,
|
|
2756
2745
|
Vr as k,
|
|
2757
|
-
|
|
2746
|
+
za as l,
|
|
2758
2747
|
Jr as m,
|
|
2759
2748
|
jr as n,
|
|
2760
2749
|
Q as o,
|
|
@@ -2762,12 +2751,12 @@ export {
|
|
|
2762
2751
|
xo as q,
|
|
2763
2752
|
Io as r,
|
|
2764
2753
|
En as s,
|
|
2765
|
-
|
|
2766
|
-
|
|
2754
|
+
Ha as t,
|
|
2755
|
+
Ka as u,
|
|
2767
2756
|
Mo as v,
|
|
2768
2757
|
To as w,
|
|
2769
2758
|
Fo as x,
|
|
2770
2759
|
Do as y,
|
|
2771
2760
|
No as z
|
|
2772
2761
|
};
|
|
2773
|
-
//# sourceMappingURL=lazyLoadedSlices-
|
|
2762
|
+
//# sourceMappingURL=lazyLoadedSlices-DGKpiSM4.js.map
|