@sisense/sdk-ui-vue 2.20.0 → 2.21.0
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/ai.cjs +78 -78
- package/dist/ai.js +758 -738
- package/dist/index.cjs +1 -1
- package/dist/index.js +761 -739
- package/dist/packages/sdk-ui-vue/src/components/widgets/chart-widget.d.ts +0 -28
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget-by-id.d.ts +0 -8
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget.d.ts +6 -6
- package/dist/packages/sdk-ui-vue/src/composables/use-custom-widgets.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/helpers/vue-component-adapter.d.ts +54 -0
- package/dist/{use-tracking-5246ab32.js → use-tracking-4a4b3434.js} +43266 -42862
- package/dist/{use-tracking-5885abd6.cjs → use-tracking-801c9eeb.cjs} +652 -587
- package/package.json +13 -3
- package/dist/packages/sdk-ui-vue/src/components/filters/relative-date-filter-tile.d.ts +0 -140
- package/dist/packages/sdk-ui-vue/src/components/widgets/pivot-table-widget.d.ts +0 -245
- package/dist/packages/sdk-ui-vue/src/helpers/dynamic-renderer.d.ts +0 -16
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/sisense-context.d.ts +0 -9
package/dist/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var cn = Object.defineProperty;
|
|
2
|
+
var dn = (e, t, n) => t in e ? cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var ue = (e, t, n) => (dn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { s as _t, T as fn, a as b, M as pn, N as gn, q as hn, D as mn, I as yn, E as bn, O as Sn, P as On, v as vn, b as xn, B as Cn, z as wn, R as Pn, L as Dn, c as jn, W as Fn, U as An, H as Ln, A as En, V as Nn, d as Rn, e as Tn, C as Mn, x as $n, f as In, g as _n, r as W, i as Ae, h as kn, k as Qe, j as kt, l as Bn, m as Un, o as qn, n as Bt, p as Ut, S as at, t as qt, u as Ce, w as Wt, y as Wn, F as V, G as B, J as R, K as A, Q as S, X as Vt, Y as Vn, Z as Ye, _ as Hn, $ as Z, a0 as Kn, a1 as X, a2 as pe, a3 as zn, a4 as Gn, a5 as Jn, a6 as Qn, a7 as ee, a8 as Yn, a9 as Zn, aa as Xn, ab as er, ac as tr, ad as nr, ae as rr, af as sr, ag as ir, ah as ar, ai as or, aj as ur, ak as lr, al as cr, am as dr, an as fr, ao as ot, ap as pr, aq as gr, ar as hr, as as mr, at as ut, au as yr, av as br, aw as Sr, ax as Or, ay as vr, az as xr, aA as Cr, aB as wr, aC as Pr, aD as Dr, aE as jr, aF as Fr, aG as te, aH as U } from "./use-tracking-4a4b3434.js";
|
|
5
|
+
import { aK as $u, aI as Iu, aJ as _u, aL as ku, aM as Bu } from "./use-tracking-4a4b3434.js";
|
|
6
|
+
import { defineComponent as m, watch as L, toRefs as D, ref as _, onBeforeUnmount as ne, createApp as Ar, h as Lr, toValue as Er, computed as Ve, openBlock as Nr, createElementBlock as Rr, renderSlot as Te, createVNode as lt, unref as T, createElementVNode as Tr } from "vue";
|
|
4
7
|
import "./index-Ck90GjPy-96e79d43-96e79d43.js";
|
|
5
|
-
const
|
|
8
|
+
const Mr = m({
|
|
6
9
|
props: {
|
|
7
10
|
/**
|
|
8
11
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
@@ -41,8 +44,8 @@ const Dr = m({
|
|
|
41
44
|
required: !0
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
|
-
setup: (e, { slots: t }) =>
|
|
45
|
-
}),
|
|
47
|
+
setup: (e, { slots: t }) => _t(fn, e, t, [])
|
|
48
|
+
}), $o = m({
|
|
46
49
|
props: {
|
|
47
50
|
/**
|
|
48
51
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
|
@@ -108,8 +111,8 @@ const Dr = m({
|
|
|
108
111
|
*/
|
|
109
112
|
onDataPointsSelected: Function
|
|
110
113
|
},
|
|
111
|
-
setup: (e) => b(
|
|
112
|
-
}),
|
|
114
|
+
setup: (e) => b(pn, e)
|
|
115
|
+
}), Io = m({
|
|
113
116
|
props: {
|
|
114
117
|
/**
|
|
115
118
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
|
@@ -175,8 +178,8 @@ const Dr = m({
|
|
|
175
178
|
*/
|
|
176
179
|
styleOptions: Object
|
|
177
180
|
},
|
|
178
|
-
setup: (e) => b(
|
|
179
|
-
}),
|
|
181
|
+
setup: (e) => b(gn, e)
|
|
182
|
+
}), _o = m({
|
|
180
183
|
props: {
|
|
181
184
|
/**
|
|
182
185
|
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
|
|
@@ -242,8 +245,8 @@ const Dr = m({
|
|
|
242
245
|
*/
|
|
243
246
|
onDataPointsSelected: Function
|
|
244
247
|
},
|
|
245
|
-
setup: (e) => b(
|
|
246
|
-
}),
|
|
248
|
+
setup: (e) => b(hn, e)
|
|
249
|
+
}), ko = m({
|
|
247
250
|
props: {
|
|
248
251
|
/**
|
|
249
252
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
|
@@ -309,8 +312,8 @@ const Dr = m({
|
|
|
309
312
|
*/
|
|
310
313
|
styleOptions: Object
|
|
311
314
|
},
|
|
312
|
-
setup: (e) => b(
|
|
313
|
-
}),
|
|
315
|
+
setup: (e) => b(mn, e)
|
|
316
|
+
}), Bo = m({
|
|
314
317
|
props: {
|
|
315
318
|
/**
|
|
316
319
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
|
@@ -376,8 +379,8 @@ const Dr = m({
|
|
|
376
379
|
*/
|
|
377
380
|
styleOptions: Object
|
|
378
381
|
},
|
|
379
|
-
setup: (e) => b(
|
|
380
|
-
}),
|
|
382
|
+
setup: (e) => b(yn, e)
|
|
383
|
+
}), Uo = m({
|
|
381
384
|
props: {
|
|
382
385
|
/**
|
|
383
386
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
|
@@ -443,8 +446,8 @@ const Dr = m({
|
|
|
443
446
|
*/
|
|
444
447
|
styleOptions: Object
|
|
445
448
|
},
|
|
446
|
-
setup: (e) => b(
|
|
447
|
-
}),
|
|
449
|
+
setup: (e) => b(bn, e)
|
|
450
|
+
}), qo = m({
|
|
448
451
|
props: {
|
|
449
452
|
/**
|
|
450
453
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
|
@@ -510,8 +513,8 @@ const Dr = m({
|
|
|
510
513
|
*/
|
|
511
514
|
styleOptions: Object
|
|
512
515
|
},
|
|
513
|
-
setup: (e) => b(
|
|
514
|
-
}),
|
|
516
|
+
setup: (e) => b(Sn, e)
|
|
517
|
+
}), Wo = m({
|
|
515
518
|
props: {
|
|
516
519
|
/**
|
|
517
520
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
|
@@ -577,8 +580,8 @@ const Dr = m({
|
|
|
577
580
|
*/
|
|
578
581
|
styleOptions: Object
|
|
579
582
|
},
|
|
580
|
-
setup: (e) => b(
|
|
581
|
-
}),
|
|
583
|
+
setup: (e) => b(On, e)
|
|
584
|
+
}), Vo = m({
|
|
582
585
|
props: {
|
|
583
586
|
/**
|
|
584
587
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
|
@@ -616,8 +619,8 @@ const Dr = m({
|
|
|
616
619
|
*/
|
|
617
620
|
onDataReady: Function
|
|
618
621
|
},
|
|
619
|
-
setup: (e) => b(
|
|
620
|
-
}),
|
|
622
|
+
setup: (e) => b(vn, e)
|
|
623
|
+
}), Ho = m({
|
|
621
624
|
props: {
|
|
622
625
|
/**
|
|
623
626
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
|
@@ -667,8 +670,8 @@ const Dr = m({
|
|
|
667
670
|
*/
|
|
668
671
|
onDataPointContextMenu: Function
|
|
669
672
|
},
|
|
670
|
-
setup: (e) => b(
|
|
671
|
-
}),
|
|
673
|
+
setup: (e) => b(xn, e)
|
|
674
|
+
}), Ko = m({
|
|
672
675
|
props: {
|
|
673
676
|
/**
|
|
674
677
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
|
@@ -734,8 +737,8 @@ const Dr = m({
|
|
|
734
737
|
*/
|
|
735
738
|
styleOptions: Object
|
|
736
739
|
},
|
|
737
|
-
setup: (e) => b(
|
|
738
|
-
}),
|
|
740
|
+
setup: (e) => b(Cn, e)
|
|
741
|
+
}), zo = m({
|
|
739
742
|
props: {
|
|
740
743
|
/**
|
|
741
744
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
@@ -801,8 +804,8 @@ const Dr = m({
|
|
|
801
804
|
*/
|
|
802
805
|
styleOptions: Object
|
|
803
806
|
},
|
|
804
|
-
setup: (e) => b(
|
|
805
|
-
}),
|
|
807
|
+
setup: (e) => b(wn, e)
|
|
808
|
+
}), Go = m({
|
|
806
809
|
props: {
|
|
807
810
|
/**
|
|
808
811
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
|
@@ -868,8 +871,8 @@ const Dr = m({
|
|
|
868
871
|
*/
|
|
869
872
|
styleOptions: Object
|
|
870
873
|
},
|
|
871
|
-
setup: (e) => b(
|
|
872
|
-
}),
|
|
874
|
+
setup: (e) => b(Pn, e)
|
|
875
|
+
}), Jo = m({
|
|
873
876
|
props: {
|
|
874
877
|
/**
|
|
875
878
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
|
@@ -917,8 +920,8 @@ const Dr = m({
|
|
|
917
920
|
*/
|
|
918
921
|
onDataReady: Function
|
|
919
922
|
},
|
|
920
|
-
setup: (e) => b(
|
|
921
|
-
}),
|
|
923
|
+
setup: (e) => b(Dn, e)
|
|
924
|
+
}), Qo = m({
|
|
922
925
|
props: {
|
|
923
926
|
/**
|
|
924
927
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
|
@@ -997,8 +1000,8 @@ const Dr = m({
|
|
|
997
1000
|
*/
|
|
998
1001
|
refreshCounter: Number
|
|
999
1002
|
},
|
|
1000
|
-
setup: (e) => b(
|
|
1001
|
-
}),
|
|
1003
|
+
setup: (e) => b(jn, e)
|
|
1004
|
+
}), Yo = m({
|
|
1002
1005
|
props: {
|
|
1003
1006
|
/**
|
|
1004
1007
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
|
@@ -1064,8 +1067,8 @@ const Dr = m({
|
|
|
1064
1067
|
*/
|
|
1065
1068
|
onDataPointsSelected: Function
|
|
1066
1069
|
},
|
|
1067
|
-
setup: (e) => b(
|
|
1068
|
-
}),
|
|
1070
|
+
setup: (e) => b(Fn, e)
|
|
1071
|
+
}), Zo = m({
|
|
1069
1072
|
props: {
|
|
1070
1073
|
/**
|
|
1071
1074
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
|
@@ -1113,8 +1116,8 @@ const Dr = m({
|
|
|
1113
1116
|
*/
|
|
1114
1117
|
onDataPointClick: Function
|
|
1115
1118
|
},
|
|
1116
|
-
setup: (e) => b(
|
|
1117
|
-
}),
|
|
1119
|
+
setup: (e) => b(An, e)
|
|
1120
|
+
}), Xo = m({
|
|
1118
1121
|
props: {
|
|
1119
1122
|
/**
|
|
1120
1123
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
|
@@ -1162,8 +1165,8 @@ const Dr = m({
|
|
|
1162
1165
|
*/
|
|
1163
1166
|
onDataPointClick: Object
|
|
1164
1167
|
},
|
|
1165
|
-
setup: (e) => b(
|
|
1166
|
-
}),
|
|
1168
|
+
setup: (e) => b(Ln, e)
|
|
1169
|
+
}), eu = m({
|
|
1167
1170
|
props: {
|
|
1168
1171
|
/**
|
|
1169
1172
|
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
|
|
@@ -1229,8 +1232,8 @@ const Dr = m({
|
|
|
1229
1232
|
*/
|
|
1230
1233
|
onDataPointsSelected: Function
|
|
1231
1234
|
},
|
|
1232
|
-
setup: (e) => b(
|
|
1233
|
-
}),
|
|
1235
|
+
setup: (e) => b(En, e)
|
|
1236
|
+
}), tu = m({
|
|
1234
1237
|
props: {
|
|
1235
1238
|
/**
|
|
1236
1239
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
|
@@ -1296,8 +1299,8 @@ const Dr = m({
|
|
|
1296
1299
|
*/
|
|
1297
1300
|
styleOptions: Object
|
|
1298
1301
|
},
|
|
1299
|
-
setup: (e) => b(
|
|
1300
|
-
}),
|
|
1302
|
+
setup: (e) => b(Nn, e)
|
|
1303
|
+
}), nu = m({
|
|
1301
1304
|
props: {
|
|
1302
1305
|
/**
|
|
1303
1306
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
@@ -1357,8 +1360,8 @@ const Dr = m({
|
|
|
1357
1360
|
*/
|
|
1358
1361
|
onEdit: Function
|
|
1359
1362
|
},
|
|
1360
|
-
setup: (e) => b(
|
|
1361
|
-
}),
|
|
1363
|
+
setup: (e) => b(Rn, e)
|
|
1364
|
+
}), ru = m({
|
|
1362
1365
|
props: {
|
|
1363
1366
|
/**
|
|
1364
1367
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
@@ -1405,8 +1408,8 @@ const Dr = m({
|
|
|
1405
1408
|
*/
|
|
1406
1409
|
onEdit: Function
|
|
1407
1410
|
},
|
|
1408
|
-
setup: (e) => b(
|
|
1409
|
-
}),
|
|
1411
|
+
setup: (e) => b(Tn, e)
|
|
1412
|
+
}), su = m({
|
|
1410
1413
|
props: {
|
|
1411
1414
|
/**
|
|
1412
1415
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
|
@@ -1446,8 +1449,8 @@ const Dr = m({
|
|
|
1446
1449
|
*/
|
|
1447
1450
|
onEdit: Function
|
|
1448
1451
|
},
|
|
1449
|
-
setup: (e) => b(
|
|
1450
|
-
}),
|
|
1452
|
+
setup: (e) => b(Mn, e)
|
|
1453
|
+
}), iu = m({
|
|
1451
1454
|
props: {
|
|
1452
1455
|
/**
|
|
1453
1456
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
|
@@ -1492,8 +1495,8 @@ const Dr = m({
|
|
|
1492
1495
|
*/
|
|
1493
1496
|
onEdit: Function
|
|
1494
1497
|
},
|
|
1495
|
-
setup: (e) => b(
|
|
1496
|
-
}),
|
|
1498
|
+
setup: (e) => b($n, e)
|
|
1499
|
+
}), au = m({
|
|
1497
1500
|
props: {
|
|
1498
1501
|
/**
|
|
1499
1502
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
@@ -1522,8 +1525,8 @@ const Dr = m({
|
|
|
1522
1525
|
*/
|
|
1523
1526
|
onEdit: Function
|
|
1524
1527
|
},
|
|
1525
|
-
setup: (e) => b(
|
|
1526
|
-
}),
|
|
1528
|
+
setup: (e) => b(In, e)
|
|
1529
|
+
}), ou = m({
|
|
1527
1530
|
props: {
|
|
1528
1531
|
/**
|
|
1529
1532
|
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
@@ -1554,8 +1557,8 @@ const Dr = m({
|
|
|
1554
1557
|
required: !0
|
|
1555
1558
|
}
|
|
1556
1559
|
},
|
|
1557
|
-
setup: (e) => b(
|
|
1558
|
-
}),
|
|
1560
|
+
setup: (e) => b(_n, e)
|
|
1561
|
+
}), $r = {
|
|
1559
1562
|
type: "logger",
|
|
1560
1563
|
log(e) {
|
|
1561
1564
|
this.output("log", e);
|
|
@@ -1570,14 +1573,14 @@ const Dr = m({
|
|
|
1570
1573
|
console && console[e] && console[e].apply(console, t);
|
|
1571
1574
|
}
|
|
1572
1575
|
};
|
|
1573
|
-
class
|
|
1576
|
+
class we {
|
|
1574
1577
|
constructor(t) {
|
|
1575
1578
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1576
1579
|
this.init(t, n);
|
|
1577
1580
|
}
|
|
1578
1581
|
init(t) {
|
|
1579
1582
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1580
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
|
1583
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || $r, this.options = n, this.debug = n.debug;
|
|
1581
1584
|
}
|
|
1582
1585
|
log() {
|
|
1583
1586
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
@@ -1603,17 +1606,17 @@ class Ce {
|
|
|
1603
1606
|
return s && !this.debug ? null : (typeof t[0] == "string" && (t[0] = `${r}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
1604
1607
|
}
|
|
1605
1608
|
create(t) {
|
|
1606
|
-
return new
|
|
1609
|
+
return new we(this.logger, {
|
|
1607
1610
|
prefix: `${this.prefix}:${t}:`,
|
|
1608
1611
|
...this.options
|
|
1609
1612
|
});
|
|
1610
1613
|
}
|
|
1611
1614
|
clone(t) {
|
|
1612
|
-
return t = t || this.options, t.prefix = t.prefix || this.prefix, new
|
|
1615
|
+
return t = t || this.options, t.prefix = t.prefix || this.prefix, new we(this.logger, t);
|
|
1613
1616
|
}
|
|
1614
1617
|
}
|
|
1615
|
-
var
|
|
1616
|
-
class
|
|
1618
|
+
var k = new we();
|
|
1619
|
+
class Le {
|
|
1617
1620
|
constructor() {
|
|
1618
1621
|
this.observers = {};
|
|
1619
1622
|
}
|
|
@@ -1641,22 +1644,22 @@ class Ae {
|
|
|
1641
1644
|
});
|
|
1642
1645
|
}
|
|
1643
1646
|
}
|
|
1644
|
-
function
|
|
1647
|
+
function le() {
|
|
1645
1648
|
let e, t;
|
|
1646
1649
|
const n = new Promise((r, s) => {
|
|
1647
1650
|
e = r, t = s;
|
|
1648
1651
|
});
|
|
1649
1652
|
return n.resolve = e, n.reject = t, n;
|
|
1650
1653
|
}
|
|
1651
|
-
function
|
|
1654
|
+
function ct(e) {
|
|
1652
1655
|
return e == null ? "" : "" + e;
|
|
1653
1656
|
}
|
|
1654
|
-
function
|
|
1657
|
+
function Ir(e, t, n) {
|
|
1655
1658
|
e.forEach((r) => {
|
|
1656
1659
|
t[r] && (n[r] = t[r]);
|
|
1657
1660
|
});
|
|
1658
1661
|
}
|
|
1659
|
-
function
|
|
1662
|
+
function Ze(e, t, n) {
|
|
1660
1663
|
function r(a) {
|
|
1661
1664
|
return a && a.indexOf("###") > -1 ? a.replace(/###/g, ".") : a;
|
|
1662
1665
|
}
|
|
@@ -1675,41 +1678,41 @@ function Ye(e, t, n) {
|
|
|
1675
1678
|
k: r(i.shift())
|
|
1676
1679
|
};
|
|
1677
1680
|
}
|
|
1678
|
-
function
|
|
1681
|
+
function dt(e, t, n) {
|
|
1679
1682
|
const {
|
|
1680
1683
|
obj: r,
|
|
1681
1684
|
k: s
|
|
1682
|
-
} =
|
|
1685
|
+
} = Ze(e, t, Object);
|
|
1683
1686
|
r[s] = n;
|
|
1684
1687
|
}
|
|
1685
|
-
function
|
|
1688
|
+
function _r(e, t, n, r) {
|
|
1686
1689
|
const {
|
|
1687
1690
|
obj: s,
|
|
1688
1691
|
k: i
|
|
1689
|
-
} =
|
|
1692
|
+
} = Ze(e, t, Object);
|
|
1690
1693
|
s[i] = s[i] || [], r && (s[i] = s[i].concat(n)), r || s[i].push(n);
|
|
1691
1694
|
}
|
|
1692
|
-
function
|
|
1695
|
+
function Pe(e, t) {
|
|
1693
1696
|
const {
|
|
1694
1697
|
obj: n,
|
|
1695
1698
|
k: r
|
|
1696
|
-
} =
|
|
1699
|
+
} = Ze(e, t);
|
|
1697
1700
|
if (n)
|
|
1698
1701
|
return n[r];
|
|
1699
1702
|
}
|
|
1700
|
-
function
|
|
1701
|
-
const r =
|
|
1702
|
-
return r !== void 0 ? r :
|
|
1703
|
+
function kr(e, t, n) {
|
|
1704
|
+
const r = Pe(e, n);
|
|
1705
|
+
return r !== void 0 ? r : Pe(t, n);
|
|
1703
1706
|
}
|
|
1704
|
-
function
|
|
1707
|
+
function Ht(e, t, n) {
|
|
1705
1708
|
for (const r in t)
|
|
1706
|
-
r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) :
|
|
1709
|
+
r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : Ht(e[r], t[r], n) : e[r] = t[r]);
|
|
1707
1710
|
return e;
|
|
1708
1711
|
}
|
|
1709
|
-
function
|
|
1712
|
+
function Q(e) {
|
|
1710
1713
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
1711
1714
|
}
|
|
1712
|
-
var
|
|
1715
|
+
var Br = {
|
|
1713
1716
|
"&": "&",
|
|
1714
1717
|
"<": "<",
|
|
1715
1718
|
">": ">",
|
|
@@ -1717,13 +1720,13 @@ var Er = {
|
|
|
1717
1720
|
"'": "'",
|
|
1718
1721
|
"/": "/"
|
|
1719
1722
|
};
|
|
1720
|
-
function
|
|
1721
|
-
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) =>
|
|
1723
|
+
function Ur(e) {
|
|
1724
|
+
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Br[t]) : e;
|
|
1722
1725
|
}
|
|
1723
|
-
const
|
|
1724
|
-
function
|
|
1726
|
+
const qr = [" ", ",", "?", "!", ";"];
|
|
1727
|
+
function Wr(e, t, n) {
|
|
1725
1728
|
t = t || "", n = n || "";
|
|
1726
|
-
const r =
|
|
1729
|
+
const r = qr.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
1727
1730
|
if (r.length === 0)
|
|
1728
1731
|
return !0;
|
|
1729
1732
|
const s = new RegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
@@ -1734,7 +1737,7 @@ function Tr(e, t, n) {
|
|
|
1734
1737
|
}
|
|
1735
1738
|
return i;
|
|
1736
1739
|
}
|
|
1737
|
-
function
|
|
1740
|
+
function De(e, t) {
|
|
1738
1741
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
1739
1742
|
if (!e)
|
|
1740
1743
|
return;
|
|
@@ -1760,16 +1763,16 @@ function Pe(e, t) {
|
|
|
1760
1763
|
return u[o];
|
|
1761
1764
|
}
|
|
1762
1765
|
const c = r.slice(i + a).join(n);
|
|
1763
|
-
return c ?
|
|
1766
|
+
return c ? De(u, c, n) : void 0;
|
|
1764
1767
|
}
|
|
1765
1768
|
s = s[r[i]];
|
|
1766
1769
|
}
|
|
1767
1770
|
return s;
|
|
1768
1771
|
}
|
|
1769
|
-
function
|
|
1772
|
+
function je(e) {
|
|
1770
1773
|
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
|
1771
1774
|
}
|
|
1772
|
-
class
|
|
1775
|
+
class ft extends Le {
|
|
1773
1776
|
constructor(t) {
|
|
1774
1777
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
1775
1778
|
ns: ["translation"],
|
|
@@ -1789,8 +1792,8 @@ class dt extends Ae {
|
|
|
1789
1792
|
const i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
1790
1793
|
let o = [t, n];
|
|
1791
1794
|
r && typeof r != "string" && (o = o.concat(r)), r && typeof r == "string" && (o = o.concat(i ? r.split(i) : r)), t.indexOf(".") > -1 && (o = t.split("."));
|
|
1792
|
-
const u =
|
|
1793
|
-
return u || !a || typeof r != "string" ? u :
|
|
1795
|
+
const u = Pe(this.data, o);
|
|
1796
|
+
return u || !a || typeof r != "string" ? u : De(this.data && this.data[t] && this.data[t][n], r, i);
|
|
1794
1797
|
}
|
|
1795
1798
|
addResource(t, n, r, s) {
|
|
1796
1799
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -1798,7 +1801,7 @@ class dt extends Ae {
|
|
|
1798
1801
|
};
|
|
1799
1802
|
const a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
|
|
1800
1803
|
let o = [t, n];
|
|
1801
|
-
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n),
|
|
1804
|
+
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n), dt(this.data, o, s), i.silent || this.emit("added", t, n, r, s);
|
|
1802
1805
|
}
|
|
1803
1806
|
addResources(t, n, r) {
|
|
1804
1807
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -1815,11 +1818,11 @@ class dt extends Ae {
|
|
|
1815
1818
|
silent: !1
|
|
1816
1819
|
}, o = [t, n];
|
|
1817
1820
|
t.indexOf(".") > -1 && (o = t.split("."), s = r, r = n, n = o[1]), this.addNamespaces(n);
|
|
1818
|
-
let u =
|
|
1819
|
-
s ?
|
|
1821
|
+
let u = Pe(this.data, o) || {};
|
|
1822
|
+
s ? Ht(u, r, i) : u = {
|
|
1820
1823
|
...u,
|
|
1821
1824
|
...r
|
|
1822
|
-
},
|
|
1825
|
+
}, dt(this.data, o, u), a.silent || this.emit("added", t, n, r);
|
|
1823
1826
|
}
|
|
1824
1827
|
removeResourceBundle(t, n) {
|
|
1825
1828
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
|
@@ -1843,7 +1846,7 @@ class dt extends Ae {
|
|
|
1843
1846
|
return this.data;
|
|
1844
1847
|
}
|
|
1845
1848
|
}
|
|
1846
|
-
var
|
|
1849
|
+
var Kt = {
|
|
1847
1850
|
processors: {},
|
|
1848
1851
|
addPostProcessor(e) {
|
|
1849
1852
|
this.processors[e.name] = e;
|
|
@@ -1854,11 +1857,11 @@ var Wt = {
|
|
|
1854
1857
|
}), t;
|
|
1855
1858
|
}
|
|
1856
1859
|
};
|
|
1857
|
-
const
|
|
1858
|
-
class
|
|
1860
|
+
const pt = {};
|
|
1861
|
+
class Fe extends Le {
|
|
1859
1862
|
constructor(t) {
|
|
1860
1863
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1861
|
-
super(),
|
|
1864
|
+
super(), Ir(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = k.create("translator");
|
|
1862
1865
|
}
|
|
1863
1866
|
changeLanguage(t) {
|
|
1864
1867
|
t && (this.language = t);
|
|
@@ -1877,7 +1880,7 @@ class je extends Ae {
|
|
|
1877
1880
|
r === void 0 && (r = ":");
|
|
1878
1881
|
const s = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
1879
1882
|
let i = n.ns || this.options.defaultNS || [];
|
|
1880
|
-
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !
|
|
1883
|
+
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !Wr(t, r, s);
|
|
1881
1884
|
if (a && !o) {
|
|
1882
1885
|
const u = t.match(this.interpolator.nestingRegexp);
|
|
1883
1886
|
if (u && u.length > 0)
|
|
@@ -1938,12 +1941,12 @@ class je extends Ae {
|
|
|
1938
1941
|
const C = y === "[object Array]", E = C ? [] : {}, $ = C ? p : g;
|
|
1939
1942
|
for (const F in l)
|
|
1940
1943
|
if (Object.prototype.hasOwnProperty.call(l, F)) {
|
|
1941
|
-
const
|
|
1942
|
-
E[F] = this.translate(
|
|
1944
|
+
const ge = `${$}${i}${F}`;
|
|
1945
|
+
E[F] = this.translate(ge, {
|
|
1943
1946
|
...n,
|
|
1944
1947
|
joinArrays: !1,
|
|
1945
1948
|
ns: o
|
|
1946
|
-
}), E[F] ===
|
|
1949
|
+
}), E[F] === ge && (E[F] = l[F]);
|
|
1947
1950
|
}
|
|
1948
1951
|
l = E;
|
|
1949
1952
|
}
|
|
@@ -1951,11 +1954,11 @@ class je extends Ae {
|
|
|
1951
1954
|
l = l.join(x), l && (l = this.extendTranslation(l, t, n, r));
|
|
1952
1955
|
else {
|
|
1953
1956
|
let C = !1, E = !1;
|
|
1954
|
-
const $ = n.count !== void 0 && typeof n.count != "string", F =
|
|
1957
|
+
const $ = n.count !== void 0 && typeof n.count != "string", F = Fe.hasDefaultValue(n), ge = $ ? this.pluralResolver.getSuffix(c, n.count, n) : "", un = n.ordinal && $ ? this.pluralResolver.getSuffix(c, n.count, {
|
|
1955
1958
|
ordinal: !1
|
|
1956
|
-
}) : "", ie = n[`defaultValue${
|
|
1959
|
+
}) : "", ie = n[`defaultValue${ge}`] || n[`defaultValue${un}`] || n.defaultValue;
|
|
1957
1960
|
!this.isValidLookup(l) && F && (C = !0, l = ie), this.isValidLookup(l) || (E = !0, l = a);
|
|
1958
|
-
const
|
|
1961
|
+
const ln = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : l, ae = F && ie !== l && this.options.updateMissing;
|
|
1959
1962
|
if (E || C || ae) {
|
|
1960
1963
|
if (this.logger.log(ae ? "updateKey" : "missingKey", c, u, a, ae ? ie : l), i) {
|
|
1961
1964
|
const N = this.resolve(a, {
|
|
@@ -1965,21 +1968,21 @@ class je extends Ae {
|
|
|
1965
1968
|
N && N.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
1966
1969
|
}
|
|
1967
1970
|
let oe = [];
|
|
1968
|
-
const
|
|
1969
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
1970
|
-
for (let N = 0; N <
|
|
1971
|
-
oe.push(
|
|
1971
|
+
const he = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
1972
|
+
if (this.options.saveMissingTo === "fallback" && he && he[0])
|
|
1973
|
+
for (let N = 0; N < he.length; N++)
|
|
1974
|
+
oe.push(he[N]);
|
|
1972
1975
|
else
|
|
1973
1976
|
this.options.saveMissingTo === "all" ? oe = this.languageUtils.toResolveHierarchy(n.lng || this.language) : oe.push(n.lng || this.language);
|
|
1974
|
-
const
|
|
1975
|
-
const
|
|
1976
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(N, u,
|
|
1977
|
+
const rt = (N, J, st) => {
|
|
1978
|
+
const it = F && st !== l ? st : ln;
|
|
1979
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(N, u, J, it, ae, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(N, u, J, it, ae, n), this.emit("missingKey", N, u, J, l);
|
|
1977
1980
|
};
|
|
1978
1981
|
this.options.saveMissing && (this.options.saveMissingPlurals && $ ? oe.forEach((N) => {
|
|
1979
|
-
this.pluralResolver.getSuffixes(N, n).forEach((
|
|
1980
|
-
|
|
1982
|
+
this.pluralResolver.getSuffixes(N, n).forEach((J) => {
|
|
1983
|
+
rt([N], a + J, n[`defaultValue${J}`] || ie);
|
|
1981
1984
|
});
|
|
1982
|
-
}) :
|
|
1985
|
+
}) : rt(oe, a, ie));
|
|
1983
1986
|
}
|
|
1984
1987
|
l = this.extendTranslation(l, t, n, f, r), E && l === a && this.options.appendNamespaceToMissingKey && (l = `${u}:${a}`), (E || C) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? l = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${a}` : a, C ? l : void 0) : l = this.options.parseMissingKeyHandler(l));
|
|
1985
1988
|
}
|
|
@@ -2023,7 +2026,7 @@ class je extends Ae {
|
|
|
2023
2026
|
}, r)), r.interpolation && this.interpolator.reset();
|
|
2024
2027
|
}
|
|
2025
2028
|
const o = r.postProcess || this.options.postProcess, u = typeof o == "string" ? [o] : o;
|
|
2026
|
-
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t =
|
|
2029
|
+
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t = Kt.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
|
|
2027
2030
|
i18nResolved: s,
|
|
2028
2031
|
...r
|
|
2029
2032
|
} : r, this)), t;
|
|
@@ -2039,7 +2042,7 @@ class je extends Ae {
|
|
|
2039
2042
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
2040
2043
|
const l = n.count !== void 0 && typeof n.count != "string", g = l && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), p = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "", y = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
2041
2044
|
f.forEach((h) => {
|
|
2042
|
-
this.isValidLookup(r) || (o = h, !
|
|
2045
|
+
this.isValidLookup(r) || (o = h, !pt[`${y[0]}-${h}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (pt[`${y[0]}-${h}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((x) => {
|
|
2043
2046
|
if (this.isValidLookup(r))
|
|
2044
2047
|
return;
|
|
2045
2048
|
a = x;
|
|
@@ -2083,21 +2086,21 @@ class je extends Ae {
|
|
|
2083
2086
|
return !1;
|
|
2084
2087
|
}
|
|
2085
2088
|
}
|
|
2086
|
-
function
|
|
2089
|
+
function Me(e) {
|
|
2087
2090
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2088
2091
|
}
|
|
2089
|
-
class
|
|
2092
|
+
class gt {
|
|
2090
2093
|
constructor(t) {
|
|
2091
|
-
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
2094
|
+
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = k.create("languageUtils");
|
|
2092
2095
|
}
|
|
2093
2096
|
getScriptPartFromCode(t) {
|
|
2094
|
-
if (t =
|
|
2097
|
+
if (t = je(t), !t || t.indexOf("-") < 0)
|
|
2095
2098
|
return null;
|
|
2096
2099
|
const n = t.split("-");
|
|
2097
2100
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
2098
2101
|
}
|
|
2099
2102
|
getLanguagePartFromCode(t) {
|
|
2100
|
-
if (t =
|
|
2103
|
+
if (t = je(t), !t || t.indexOf("-") < 0)
|
|
2101
2104
|
return t;
|
|
2102
2105
|
const n = t.split("-");
|
|
2103
2106
|
return this.formatLanguageCode(n[0]);
|
|
@@ -2106,7 +2109,7 @@ class pt {
|
|
|
2106
2109
|
if (typeof t == "string" && t.indexOf("-") > -1) {
|
|
2107
2110
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
2108
2111
|
let r = t.split("-");
|
|
2109
|
-
return this.options.lowerCaseLng ? r = r.map((s) => s.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] =
|
|
2112
|
+
return this.options.lowerCaseLng ? r = r.map((s) => s.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Me(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Me(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Me(r[2].toLowerCase()))), r.join("-");
|
|
2110
2113
|
}
|
|
2111
2114
|
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
|
2112
2115
|
}
|
|
@@ -2155,7 +2158,7 @@ class pt {
|
|
|
2155
2158
|
}), s;
|
|
2156
2159
|
}
|
|
2157
2160
|
}
|
|
2158
|
-
let
|
|
2161
|
+
let Vr = [{
|
|
2159
2162
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
2160
2163
|
nr: [1, 2],
|
|
2161
2164
|
fc: 1
|
|
@@ -2247,7 +2250,7 @@ let Mr = [{
|
|
|
2247
2250
|
lngs: ["he", "iw"],
|
|
2248
2251
|
nr: [1, 2, 20, 21],
|
|
2249
2252
|
fc: 22
|
|
2250
|
-
}],
|
|
2253
|
+
}], Hr = {
|
|
2251
2254
|
1: function(e) {
|
|
2252
2255
|
return +(e > 1);
|
|
2253
2256
|
},
|
|
@@ -2315,7 +2318,7 @@ let Mr = [{
|
|
|
2315
2318
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
2316
2319
|
}
|
|
2317
2320
|
};
|
|
2318
|
-
const
|
|
2321
|
+
const Kr = ["v1", "v2", "v3"], zr = ["v4"], ht = {
|
|
2319
2322
|
zero: 0,
|
|
2320
2323
|
one: 1,
|
|
2321
2324
|
two: 2,
|
|
@@ -2323,21 +2326,21 @@ const Ir = ["v1", "v2", "v3"], _r = ["v4"], gt = {
|
|
|
2323
2326
|
many: 4,
|
|
2324
2327
|
other: 5
|
|
2325
2328
|
};
|
|
2326
|
-
function
|
|
2329
|
+
function Gr() {
|
|
2327
2330
|
const e = {};
|
|
2328
|
-
return
|
|
2331
|
+
return Vr.forEach((t) => {
|
|
2329
2332
|
t.lngs.forEach((n) => {
|
|
2330
2333
|
e[n] = {
|
|
2331
2334
|
numbers: t.nr,
|
|
2332
|
-
plurals:
|
|
2335
|
+
plurals: Hr[t.fc]
|
|
2333
2336
|
};
|
|
2334
2337
|
});
|
|
2335
2338
|
}), e;
|
|
2336
2339
|
}
|
|
2337
|
-
class
|
|
2340
|
+
class Jr {
|
|
2338
2341
|
constructor(t) {
|
|
2339
2342
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2340
|
-
this.languageUtils = t, this.options = n, this.logger =
|
|
2343
|
+
this.languageUtils = t, this.options = n, this.logger = k.create("pluralResolver"), (!this.options.compatibilityJSON || zr.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Gr();
|
|
2341
2344
|
}
|
|
2342
2345
|
addRule(t, n) {
|
|
2343
2346
|
this.rules[t] = n;
|
|
@@ -2346,7 +2349,7 @@ class Br {
|
|
|
2346
2349
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2347
2350
|
if (this.shouldUseIntlApi())
|
|
2348
2351
|
try {
|
|
2349
|
-
return new Intl.PluralRules(
|
|
2352
|
+
return new Intl.PluralRules(je(t), {
|
|
2350
2353
|
type: n.ordinal ? "ordinal" : "cardinal"
|
|
2351
2354
|
});
|
|
2352
2355
|
} catch {
|
|
@@ -2366,7 +2369,7 @@ class Br {
|
|
|
2366
2369
|
getSuffixes(t) {
|
|
2367
2370
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2368
2371
|
const r = this.getRule(t, n);
|
|
2369
|
-
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) =>
|
|
2372
|
+
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) => ht[s] - ht[i]).map((s) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : r.numbers.map((s) => this.getSuffix(t, s, n)) : [];
|
|
2370
2373
|
}
|
|
2371
2374
|
getSuffix(t, n) {
|
|
2372
2375
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -2381,17 +2384,17 @@ class Br {
|
|
|
2381
2384
|
return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? `_plural_${s.toString()}` : i() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? i() : this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString();
|
|
2382
2385
|
}
|
|
2383
2386
|
shouldUseIntlApi() {
|
|
2384
|
-
return !
|
|
2387
|
+
return !Kr.includes(this.options.compatibilityJSON);
|
|
2385
2388
|
}
|
|
2386
2389
|
}
|
|
2387
|
-
function
|
|
2388
|
-
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i =
|
|
2389
|
-
return !i && s && typeof n == "string" && (i =
|
|
2390
|
+
function mt(e, t, n) {
|
|
2391
|
+
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i = kr(e, t, n);
|
|
2392
|
+
return !i && s && typeof n == "string" && (i = De(e, n, r), i === void 0 && (i = De(t, n, r))), i;
|
|
2390
2393
|
}
|
|
2391
|
-
class
|
|
2394
|
+
class Qr {
|
|
2392
2395
|
constructor() {
|
|
2393
2396
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2394
|
-
this.logger =
|
|
2397
|
+
this.logger = k.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
|
2395
2398
|
}
|
|
2396
2399
|
init() {
|
|
2397
2400
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -2399,7 +2402,7 @@ class Ur {
|
|
|
2399
2402
|
escapeValue: !0
|
|
2400
2403
|
});
|
|
2401
2404
|
const n = t.interpolation;
|
|
2402
|
-
this.escape = n.escape !== void 0 ? n.escape :
|
|
2405
|
+
this.escape = n.escape !== void 0 ? n.escape : Ur, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? Q(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? Q(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? Q(n.nestingPrefix) : n.nestingPrefixEscaped || Q("$t("), this.nestingSuffix = n.nestingSuffix ? Q(n.nestingSuffix) : n.nestingSuffixEscaped || Q(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
|
|
2403
2406
|
}
|
|
2404
2407
|
reset() {
|
|
2405
2408
|
this.options && this.init(this.options);
|
|
@@ -2420,7 +2423,7 @@ class Ur {
|
|
|
2420
2423
|
}
|
|
2421
2424
|
const d = (p) => {
|
|
2422
2425
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
2423
|
-
const w =
|
|
2426
|
+
const w = mt(n, u, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2424
2427
|
return this.alwaysFormat ? this.format(w, void 0, r, {
|
|
2425
2428
|
...s,
|
|
2426
2429
|
...n,
|
|
@@ -2428,7 +2431,7 @@ class Ur {
|
|
|
2428
2431
|
}) : w;
|
|
2429
2432
|
}
|
|
2430
2433
|
const y = p.split(this.formatSeparator), h = y.shift().trim(), x = y.join(this.formatSeparator).trim();
|
|
2431
|
-
return this.format(
|
|
2434
|
+
return this.format(mt(n, u, h, this.options.keySeparator, this.options.ignoreJSONStructure), x, r, {
|
|
2432
2435
|
...s,
|
|
2433
2436
|
...n,
|
|
2434
2437
|
interpolationkey: h
|
|
@@ -2457,7 +2460,7 @@ class Ur {
|
|
|
2457
2460
|
} else
|
|
2458
2461
|
this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`), a = "";
|
|
2459
2462
|
else
|
|
2460
|
-
typeof a != "string" && !this.useRawValueToEscape && (a =
|
|
2463
|
+
typeof a != "string" && !this.useRawValueToEscape && (a = ct(a));
|
|
2461
2464
|
const h = p.safeValue(a);
|
|
2462
2465
|
if (t = t.replace(i[0], h), l ? (p.regex.lastIndex += a.length, p.regex.lastIndex -= i[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
2463
2466
|
break;
|
|
@@ -2497,7 +2500,7 @@ class Ur {
|
|
|
2497
2500
|
}
|
|
2498
2501
|
if (i = n(o.call(this, s[1].trim(), a), a), i && s[0] === t && typeof i != "string")
|
|
2499
2502
|
return i;
|
|
2500
|
-
typeof i != "string" && (i =
|
|
2503
|
+
typeof i != "string" && (i = ct(i)), i || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`), i = ""), c && (i = u.reduce((d, f) => this.format(d, f, r.lng, {
|
|
2501
2504
|
...r,
|
|
2502
2505
|
interpolationkey: s[1].trim()
|
|
2503
2506
|
}), i.trim())), t = t.replace(s[0], i), this.regexp.lastIndex = 0;
|
|
@@ -2505,7 +2508,7 @@ class Ur {
|
|
|
2505
2508
|
return t;
|
|
2506
2509
|
}
|
|
2507
2510
|
}
|
|
2508
|
-
function
|
|
2511
|
+
function Yr(e) {
|
|
2509
2512
|
let t = e.toLowerCase().trim();
|
|
2510
2513
|
const n = {};
|
|
2511
2514
|
if (e.indexOf("(") > -1) {
|
|
@@ -2529,13 +2532,13 @@ function Y(e) {
|
|
|
2529
2532
|
return function(r, s, i) {
|
|
2530
2533
|
const a = s + JSON.stringify(i);
|
|
2531
2534
|
let o = t[a];
|
|
2532
|
-
return o || (o = e(
|
|
2535
|
+
return o || (o = e(je(s), i), t[a] = o), o(r);
|
|
2533
2536
|
};
|
|
2534
2537
|
}
|
|
2535
|
-
class
|
|
2538
|
+
class Zr {
|
|
2536
2539
|
constructor() {
|
|
2537
2540
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2538
|
-
this.logger =
|
|
2541
|
+
this.logger = k.create("formatter"), this.options = t, this.formats = {
|
|
2539
2542
|
number: Y((n, r) => {
|
|
2540
2543
|
const s = new Intl.NumberFormat(n, {
|
|
2541
2544
|
...r
|
|
@@ -2587,7 +2590,7 @@ class Hr {
|
|
|
2587
2590
|
const {
|
|
2588
2591
|
formatName: c,
|
|
2589
2592
|
formatOptions: d
|
|
2590
|
-
} =
|
|
2593
|
+
} = Yr(u);
|
|
2591
2594
|
if (this.formats[c]) {
|
|
2592
2595
|
let f = o;
|
|
2593
2596
|
try {
|
|
@@ -2607,13 +2610,13 @@ class Hr {
|
|
|
2607
2610
|
}, t);
|
|
2608
2611
|
}
|
|
2609
2612
|
}
|
|
2610
|
-
function
|
|
2613
|
+
function Xr(e, t) {
|
|
2611
2614
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
2612
2615
|
}
|
|
2613
|
-
class
|
|
2616
|
+
class es extends Le {
|
|
2614
2617
|
constructor(t, n, r) {
|
|
2615
2618
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
2616
|
-
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger =
|
|
2619
|
+
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = k.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, s.backend, s);
|
|
2617
2620
|
}
|
|
2618
2621
|
queueLoad(t, n, r, s) {
|
|
2619
2622
|
const i = {}, a = {}, o = {}, u = {};
|
|
@@ -2641,7 +2644,7 @@ class Wr extends Ae {
|
|
|
2641
2644
|
n && this.emit("failedLoading", i, a, n), r && this.store.addResourceBundle(i, a, r), this.state[t] = n ? -1 : 2;
|
|
2642
2645
|
const o = {};
|
|
2643
2646
|
this.queue.forEach((u) => {
|
|
2644
|
-
|
|
2647
|
+
_r(u.loaded, [i], a), Xr(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
|
|
2645
2648
|
o[c] || (o[c] = {});
|
|
2646
2649
|
const d = u.loaded[c];
|
|
2647
2650
|
d.length && d.forEach((f) => {
|
|
@@ -2744,7 +2747,7 @@ class Wr extends Ae {
|
|
|
2744
2747
|
}
|
|
2745
2748
|
}
|
|
2746
2749
|
}
|
|
2747
|
-
function
|
|
2750
|
+
function yt() {
|
|
2748
2751
|
return {
|
|
2749
2752
|
debug: !1,
|
|
2750
2753
|
initImmediate: !0,
|
|
@@ -2803,22 +2806,22 @@ function mt() {
|
|
|
2803
2806
|
}
|
|
2804
2807
|
};
|
|
2805
2808
|
}
|
|
2806
|
-
function
|
|
2809
|
+
function bt(e) {
|
|
2807
2810
|
return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
|
|
2808
2811
|
}
|
|
2809
|
-
function
|
|
2812
|
+
function me() {
|
|
2810
2813
|
}
|
|
2811
|
-
function
|
|
2814
|
+
function ts(e) {
|
|
2812
2815
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
2813
2816
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
2814
2817
|
});
|
|
2815
2818
|
}
|
|
2816
|
-
class
|
|
2819
|
+
class ce extends Le {
|
|
2817
2820
|
constructor() {
|
|
2818
2821
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
2819
|
-
if (super(), this.options =
|
|
2822
|
+
if (super(), this.options = bt(t), this.services = {}, this.logger = k, this.modules = {
|
|
2820
2823
|
external: []
|
|
2821
|
-
},
|
|
2824
|
+
}, ts(this), n && !this.isInitialized && !t.isClone) {
|
|
2822
2825
|
if (!this.options.initImmediate)
|
|
2823
2826
|
return this.init(t, n), this;
|
|
2824
2827
|
setTimeout(() => {
|
|
@@ -2830,11 +2833,11 @@ class le extends Ae {
|
|
|
2830
2833
|
var t = this;
|
|
2831
2834
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
2832
2835
|
typeof n == "function" && (r = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (typeof n.ns == "string" ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0]));
|
|
2833
|
-
const s =
|
|
2836
|
+
const s = yt();
|
|
2834
2837
|
this.options = {
|
|
2835
2838
|
...s,
|
|
2836
2839
|
...this.options,
|
|
2837
|
-
...
|
|
2840
|
+
...bt(n)
|
|
2838
2841
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
2839
2842
|
...s.interpolation,
|
|
2840
2843
|
...this.options.interpolation
|
|
@@ -2843,23 +2846,23 @@ class le extends Ae {
|
|
|
2843
2846
|
return d ? typeof d == "function" ? new d() : d : null;
|
|
2844
2847
|
}
|
|
2845
2848
|
if (!this.options.isClone) {
|
|
2846
|
-
this.modules.logger ?
|
|
2849
|
+
this.modules.logger ? k.init(i(this.modules.logger), this.options) : k.init(null, this.options);
|
|
2847
2850
|
let d;
|
|
2848
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d =
|
|
2849
|
-
const f = new
|
|
2850
|
-
this.store = new
|
|
2851
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = Zr);
|
|
2852
|
+
const f = new gt(this.options);
|
|
2853
|
+
this.store = new ft(this.options.resources, this.options);
|
|
2851
2854
|
const l = this.services;
|
|
2852
|
-
l.logger =
|
|
2855
|
+
l.logger = k, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new Jr(f, {
|
|
2853
2856
|
prepend: this.options.pluralSeparator,
|
|
2854
2857
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
2855
2858
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
2856
|
-
}), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (l.formatter = i(d), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new
|
|
2859
|
+
}), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (l.formatter = i(d), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new Qr(this.options), l.utils = {
|
|
2857
2860
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
2858
|
-
}, l.backendConnector = new
|
|
2861
|
+
}, l.backendConnector = new es(i(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(g) {
|
|
2859
2862
|
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2860
2863
|
y[h - 1] = arguments[h];
|
|
2861
2864
|
t.emit(g, ...y);
|
|
2862
|
-
}), this.modules.languageDetector && (l.languageDetector = i(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = i(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new
|
|
2865
|
+
}), this.modules.languageDetector && (l.languageDetector = i(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = i(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new Fe(this.services, this.options), this.translator.on("*", function(g) {
|
|
2863
2866
|
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2864
2867
|
y[h - 1] = arguments[h];
|
|
2865
2868
|
t.emit(g, ...y);
|
|
@@ -2867,7 +2870,7 @@ class le extends Ae {
|
|
|
2867
2870
|
g.init && g.init(this);
|
|
2868
2871
|
});
|
|
2869
2872
|
}
|
|
2870
|
-
if (this.format = this.options.interpolation.format, r || (r =
|
|
2873
|
+
if (this.format = this.options.interpolation.format, r || (r = me), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
2871
2874
|
const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
2872
2875
|
d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
|
|
2873
2876
|
}
|
|
@@ -2880,7 +2883,7 @@ class le extends Ae {
|
|
|
2880
2883
|
return t.store[d](...arguments), t;
|
|
2881
2884
|
};
|
|
2882
2885
|
});
|
|
2883
|
-
const u =
|
|
2886
|
+
const u = le(), c = () => {
|
|
2884
2887
|
const d = (f, l) => {
|
|
2885
2888
|
this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(l), r(f, l);
|
|
2886
2889
|
};
|
|
@@ -2891,7 +2894,7 @@ class le extends Ae {
|
|
|
2891
2894
|
return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), u;
|
|
2892
2895
|
}
|
|
2893
2896
|
loadResources(t) {
|
|
2894
|
-
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
2897
|
+
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : me;
|
|
2895
2898
|
const s = typeof t == "string" ? t : this.language;
|
|
2896
2899
|
if (typeof t == "function" && (r = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
2897
2900
|
if (s && s.toLowerCase() === "cimode")
|
|
@@ -2910,8 +2913,8 @@ class le extends Ae {
|
|
|
2910
2913
|
r(null);
|
|
2911
2914
|
}
|
|
2912
2915
|
reloadResources(t, n, r) {
|
|
2913
|
-
const s =
|
|
2914
|
-
return t || (t = this.languages), n || (n = this.options.ns), r || (r =
|
|
2916
|
+
const s = le();
|
|
2917
|
+
return t || (t = this.languages), n || (n = this.options.ns), r || (r = me), this.services.backendConnector.reload(t, n, (i) => {
|
|
2915
2918
|
s.resolve(), r(i);
|
|
2916
2919
|
}), s;
|
|
2917
2920
|
}
|
|
@@ -2920,7 +2923,7 @@ class le extends Ae {
|
|
|
2920
2923
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
2921
2924
|
if (!t.type)
|
|
2922
2925
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
2923
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" &&
|
|
2926
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Kt.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
2924
2927
|
}
|
|
2925
2928
|
setResolvedLanguage(t) {
|
|
2926
2929
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
|
@@ -2935,7 +2938,7 @@ class le extends Ae {
|
|
|
2935
2938
|
changeLanguage(t, n) {
|
|
2936
2939
|
var r = this;
|
|
2937
2940
|
this.isLanguageChangingTo = t;
|
|
2938
|
-
const s =
|
|
2941
|
+
const s = le();
|
|
2939
2942
|
this.emit("languageChanging", t);
|
|
2940
2943
|
const i = (u) => {
|
|
2941
2944
|
this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
|
|
@@ -3003,7 +3006,7 @@ class le extends Ae {
|
|
|
3003
3006
|
return !!(this.hasResourceBundle(r, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, t) && (!s || a(i, t)));
|
|
3004
3007
|
}
|
|
3005
3008
|
loadNamespaces(t, n) {
|
|
3006
|
-
const r =
|
|
3009
|
+
const r = le();
|
|
3007
3010
|
return this.options.ns ? (typeof t == "string" && (t = [t]), t.forEach((s) => {
|
|
3008
3011
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3009
3012
|
}), this.loadResources((s) => {
|
|
@@ -3011,7 +3014,7 @@ class le extends Ae {
|
|
|
3011
3014
|
}), r) : (n && n(), Promise.resolve());
|
|
3012
3015
|
}
|
|
3013
3016
|
loadLanguages(t, n) {
|
|
3014
|
-
const r =
|
|
3017
|
+
const r = le();
|
|
3015
3018
|
typeof t == "string" && (t = [t]);
|
|
3016
3019
|
const s = this.options.preload || [], i = t.filter((a) => s.indexOf(a) < 0);
|
|
3017
3020
|
return i.length ? (this.options.preload = s.concat(i), this.loadResources((a) => {
|
|
@@ -3021,29 +3024,29 @@ class le extends Ae {
|
|
|
3021
3024
|
dir(t) {
|
|
3022
3025
|
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
|
|
3023
3026
|
return "rtl";
|
|
3024
|
-
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new
|
|
3027
|
+
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new gt(yt());
|
|
3025
3028
|
return n.indexOf(r.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3026
3029
|
}
|
|
3027
3030
|
static createInstance() {
|
|
3028
3031
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
3029
|
-
return new
|
|
3032
|
+
return new ce(t, n);
|
|
3030
3033
|
}
|
|
3031
3034
|
cloneInstance() {
|
|
3032
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3035
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : me;
|
|
3033
3036
|
const r = t.forkResourceStore;
|
|
3034
3037
|
r && delete t.forkResourceStore;
|
|
3035
3038
|
const s = {
|
|
3036
3039
|
...this.options,
|
|
3037
3040
|
...t,
|
|
3038
3041
|
isClone: !0
|
|
3039
|
-
}, i = new
|
|
3042
|
+
}, i = new ce(s);
|
|
3040
3043
|
return (t.debug !== void 0 || t.prefix !== void 0) && (i.logger = i.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
|
|
3041
3044
|
i[o] = this[o];
|
|
3042
3045
|
}), i.services = {
|
|
3043
3046
|
...this.services
|
|
3044
3047
|
}, i.services.utils = {
|
|
3045
3048
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
|
3046
|
-
}, r && (i.store = new
|
|
3049
|
+
}, r && (i.store = new ft(this.store.data, s), i.services.resourceStore = i.store), i.translator = new Fe(i.services, s), i.translator.on("*", function(o) {
|
|
3047
3050
|
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), d = 1; d < u; d++)
|
|
3048
3051
|
c[d - 1] = arguments[d];
|
|
3049
3052
|
i.emit(o, ...c);
|
|
@@ -3061,8 +3064,8 @@ class le extends Ae {
|
|
|
3061
3064
|
};
|
|
3062
3065
|
}
|
|
3063
3066
|
}
|
|
3064
|
-
const j =
|
|
3065
|
-
j.createInstance =
|
|
3067
|
+
const j = ce.createInstance();
|
|
3068
|
+
j.createInstance = ce.createInstance;
|
|
3066
3069
|
j.createInstance;
|
|
3067
3070
|
j.dir;
|
|
3068
3071
|
j.init;
|
|
@@ -3077,26 +3080,26 @@ j.setDefaultNamespace;
|
|
|
3077
3080
|
j.hasLoadedNamespace;
|
|
3078
3081
|
j.loadNamespaces;
|
|
3079
3082
|
j.loadLanguages;
|
|
3080
|
-
const
|
|
3083
|
+
const ns = {
|
|
3081
3084
|
error: "Error"
|
|
3082
|
-
},
|
|
3085
|
+
}, rs = {
|
|
3083
3086
|
error: "Помилка"
|
|
3084
|
-
},
|
|
3085
|
-
en:
|
|
3086
|
-
uk:
|
|
3087
|
+
}, St = "common", ss = {
|
|
3088
|
+
en: ns,
|
|
3089
|
+
uk: rs
|
|
3087
3090
|
}, I = j.createInstance({
|
|
3088
|
-
defaultNS:
|
|
3089
|
-
resources:
|
|
3091
|
+
defaultNS: St,
|
|
3092
|
+
resources: as(ss, St),
|
|
3090
3093
|
lng: "en",
|
|
3091
3094
|
fallbackLng: "en"
|
|
3092
|
-
}),
|
|
3095
|
+
}), zt = {
|
|
3093
3096
|
i18nextInstance: I,
|
|
3094
3097
|
initPromise: I.init().then(() => I)
|
|
3095
|
-
},
|
|
3096
|
-
|
|
3097
|
-
const
|
|
3098
|
-
if (
|
|
3099
|
-
return
|
|
3098
|
+
}, ye = /* @__PURE__ */ new Map();
|
|
3099
|
+
ye.set("common", zt);
|
|
3100
|
+
const is = (e) => {
|
|
3101
|
+
if (ye.has(e.namespace))
|
|
3102
|
+
return ye.get(e.namespace);
|
|
3100
3103
|
if (e.plugins)
|
|
3101
3104
|
for (const i of e.plugins)
|
|
3102
3105
|
I.use(i);
|
|
@@ -3106,7 +3109,7 @@ const Jr = (e) => {
|
|
|
3106
3109
|
const t = I.cloneInstance({
|
|
3107
3110
|
defaultNS: e.namespace
|
|
3108
3111
|
});
|
|
3109
|
-
let n =
|
|
3112
|
+
let n = zt.initPromise.then(() => t);
|
|
3110
3113
|
t.on("languageChanged", (i) => {
|
|
3111
3114
|
I.language !== i && I.changeLanguage(i);
|
|
3112
3115
|
}), I.on("languageChanged", (i) => {
|
|
@@ -3115,17 +3118,17 @@ const Jr = (e) => {
|
|
|
3115
3118
|
const r = e.language || "en";
|
|
3116
3119
|
I.language !== r && (n = n.then(() => t.changeLanguage(r)).then(() => t));
|
|
3117
3120
|
const s = { initPromise: n, i18nextInstance: t };
|
|
3118
|
-
return
|
|
3121
|
+
return ye.set(e.namespace, s), s;
|
|
3119
3122
|
};
|
|
3120
|
-
function
|
|
3123
|
+
function as(e, t) {
|
|
3121
3124
|
return Object.keys(e).reduce((n, r) => (n[r] = {
|
|
3122
3125
|
[t]: e[r]
|
|
3123
3126
|
}, n), {});
|
|
3124
3127
|
}
|
|
3125
|
-
function
|
|
3128
|
+
function os(e) {
|
|
3126
3129
|
return e && e.replace(new RegExp("(?<!\\\\)'", "g"), "\\'");
|
|
3127
3130
|
}
|
|
3128
|
-
const
|
|
3131
|
+
const us = {
|
|
3129
3132
|
errors: {
|
|
3130
3133
|
measure: {
|
|
3131
3134
|
unsupportedType: "Unsupported measure type for measure: {{measureName}}",
|
|
@@ -3150,7 +3153,7 @@ const Xr = {
|
|
|
3150
3153
|
},
|
|
3151
3154
|
unsupportedDimensionalElement: "Unsupported dimensional element type"
|
|
3152
3155
|
}
|
|
3153
|
-
},
|
|
3156
|
+
}, ls = {
|
|
3154
3157
|
errors: {
|
|
3155
3158
|
measure: {
|
|
3156
3159
|
unsupportedType: "Непідтримуваний тип measure: {{measureName}}",
|
|
@@ -3175,88 +3178,88 @@ const Xr = {
|
|
|
3175
3178
|
},
|
|
3176
3179
|
unsupportedDimensionalElement: "Непідтримуваний тип елемента"
|
|
3177
3180
|
}
|
|
3178
|
-
},
|
|
3179
|
-
en:
|
|
3180
|
-
uk:
|
|
3181
|
+
}, cs = "sdkData", ds = {
|
|
3182
|
+
en: us,
|
|
3183
|
+
uk: ls
|
|
3181
3184
|
};
|
|
3182
|
-
function
|
|
3183
|
-
return
|
|
3184
|
-
resource:
|
|
3185
|
+
function fs() {
|
|
3186
|
+
return is({
|
|
3187
|
+
resource: ds,
|
|
3185
3188
|
language: "en",
|
|
3186
|
-
namespace:
|
|
3189
|
+
namespace: cs
|
|
3187
3190
|
});
|
|
3188
3191
|
}
|
|
3189
|
-
|
|
3190
|
-
function
|
|
3192
|
+
fs();
|
|
3193
|
+
function ps() {
|
|
3191
3194
|
this.__data__ = [], this.size = 0;
|
|
3192
3195
|
}
|
|
3193
|
-
function
|
|
3196
|
+
function Gt(e, t) {
|
|
3194
3197
|
return e === t || e !== e && t !== t;
|
|
3195
3198
|
}
|
|
3196
|
-
function
|
|
3199
|
+
function Ee(e, t) {
|
|
3197
3200
|
for (var n = e.length; n--; )
|
|
3198
|
-
if (
|
|
3201
|
+
if (Gt(e[n][0], t))
|
|
3199
3202
|
return n;
|
|
3200
3203
|
return -1;
|
|
3201
3204
|
}
|
|
3202
|
-
var
|
|
3203
|
-
function
|
|
3204
|
-
var t = this.__data__, n =
|
|
3205
|
+
var gs = Array.prototype, hs = gs.splice;
|
|
3206
|
+
function ms(e) {
|
|
3207
|
+
var t = this.__data__, n = Ee(t, e);
|
|
3205
3208
|
if (n < 0)
|
|
3206
3209
|
return !1;
|
|
3207
3210
|
var r = t.length - 1;
|
|
3208
|
-
return n == r ? t.pop() :
|
|
3211
|
+
return n == r ? t.pop() : hs.call(t, n, 1), --this.size, !0;
|
|
3209
3212
|
}
|
|
3210
|
-
function
|
|
3211
|
-
var t = this.__data__, n =
|
|
3213
|
+
function ys(e) {
|
|
3214
|
+
var t = this.__data__, n = Ee(t, e);
|
|
3212
3215
|
return n < 0 ? void 0 : t[n][1];
|
|
3213
3216
|
}
|
|
3214
|
-
function
|
|
3215
|
-
return
|
|
3217
|
+
function bs(e) {
|
|
3218
|
+
return Ee(this.__data__, e) > -1;
|
|
3216
3219
|
}
|
|
3217
|
-
function
|
|
3218
|
-
var n = this.__data__, r =
|
|
3220
|
+
function Ss(e, t) {
|
|
3221
|
+
var n = this.__data__, r = Ee(n, e);
|
|
3219
3222
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
3220
3223
|
}
|
|
3221
|
-
function
|
|
3224
|
+
function q(e) {
|
|
3222
3225
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3223
3226
|
for (this.clear(); ++t < n; ) {
|
|
3224
3227
|
var r = e[t];
|
|
3225
3228
|
this.set(r[0], r[1]);
|
|
3226
3229
|
}
|
|
3227
3230
|
}
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
function
|
|
3234
|
-
this.__data__ = new
|
|
3231
|
+
q.prototype.clear = ps;
|
|
3232
|
+
q.prototype.delete = ms;
|
|
3233
|
+
q.prototype.get = ys;
|
|
3234
|
+
q.prototype.has = bs;
|
|
3235
|
+
q.prototype.set = Ss;
|
|
3236
|
+
function Os() {
|
|
3237
|
+
this.__data__ = new q(), this.size = 0;
|
|
3235
3238
|
}
|
|
3236
|
-
function
|
|
3239
|
+
function vs(e) {
|
|
3237
3240
|
var t = this.__data__, n = t.delete(e);
|
|
3238
3241
|
return this.size = t.size, n;
|
|
3239
3242
|
}
|
|
3240
|
-
function
|
|
3243
|
+
function xs(e) {
|
|
3241
3244
|
return this.__data__.get(e);
|
|
3242
3245
|
}
|
|
3243
|
-
function
|
|
3246
|
+
function Cs(e) {
|
|
3244
3247
|
return this.__data__.has(e);
|
|
3245
3248
|
}
|
|
3246
|
-
var
|
|
3247
|
-
const
|
|
3248
|
-
var
|
|
3249
|
-
var e = /[^.]+$/.exec(
|
|
3249
|
+
var ws = W["__core-js_shared__"];
|
|
3250
|
+
const $e = ws;
|
|
3251
|
+
var Ot = function() {
|
|
3252
|
+
var e = /[^.]+$/.exec($e && $e.keys && $e.keys.IE_PROTO || "");
|
|
3250
3253
|
return e ? "Symbol(src)_1." + e : "";
|
|
3251
3254
|
}();
|
|
3252
|
-
function
|
|
3253
|
-
return !!
|
|
3255
|
+
function Ps(e) {
|
|
3256
|
+
return !!Ot && Ot in e;
|
|
3254
3257
|
}
|
|
3255
|
-
var
|
|
3258
|
+
var Ds = Function.prototype, js = Ds.toString;
|
|
3256
3259
|
function z(e) {
|
|
3257
3260
|
if (e != null) {
|
|
3258
3261
|
try {
|
|
3259
|
-
return
|
|
3262
|
+
return js.call(e);
|
|
3260
3263
|
} catch {
|
|
3261
3264
|
}
|
|
3262
3265
|
try {
|
|
@@ -3266,51 +3269,51 @@ function z(e) {
|
|
|
3266
3269
|
}
|
|
3267
3270
|
return "";
|
|
3268
3271
|
}
|
|
3269
|
-
var
|
|
3270
|
-
"^" +
|
|
3272
|
+
var Fs = /[\\^$.*+?()[\]{}|]/g, As = /^\[object .+?Constructor\]$/, Ls = Function.prototype, Es = Object.prototype, Ns = Ls.toString, Rs = Es.hasOwnProperty, Ts = RegExp(
|
|
3273
|
+
"^" + Ns.call(Rs).replace(Fs, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3271
3274
|
);
|
|
3272
|
-
function
|
|
3273
|
-
if (!
|
|
3275
|
+
function Ms(e) {
|
|
3276
|
+
if (!Ae(e) || Ps(e))
|
|
3274
3277
|
return !1;
|
|
3275
|
-
var t =
|
|
3278
|
+
var t = kn(e) ? Ts : As;
|
|
3276
3279
|
return t.test(z(e));
|
|
3277
3280
|
}
|
|
3278
|
-
function
|
|
3281
|
+
function $s(e, t) {
|
|
3279
3282
|
return e == null ? void 0 : e[t];
|
|
3280
3283
|
}
|
|
3281
3284
|
function G(e, t) {
|
|
3282
|
-
var n =
|
|
3283
|
-
return
|
|
3285
|
+
var n = $s(e, t);
|
|
3286
|
+
return Ms(n) ? n : void 0;
|
|
3284
3287
|
}
|
|
3285
|
-
var
|
|
3286
|
-
const
|
|
3287
|
-
var
|
|
3288
|
-
const
|
|
3289
|
-
function
|
|
3290
|
-
this.__data__ =
|
|
3288
|
+
var Is = G(W, "Map");
|
|
3289
|
+
const de = Is;
|
|
3290
|
+
var _s = G(Object, "create");
|
|
3291
|
+
const fe = _s;
|
|
3292
|
+
function ks() {
|
|
3293
|
+
this.__data__ = fe ? fe(null) : {}, this.size = 0;
|
|
3291
3294
|
}
|
|
3292
|
-
function
|
|
3295
|
+
function Bs(e) {
|
|
3293
3296
|
var t = this.has(e) && delete this.__data__[e];
|
|
3294
3297
|
return this.size -= t ? 1 : 0, t;
|
|
3295
3298
|
}
|
|
3296
|
-
var
|
|
3297
|
-
function
|
|
3299
|
+
var Us = "__lodash_hash_undefined__", qs = Object.prototype, Ws = qs.hasOwnProperty;
|
|
3300
|
+
function Vs(e) {
|
|
3298
3301
|
var t = this.__data__;
|
|
3299
|
-
if (
|
|
3302
|
+
if (fe) {
|
|
3300
3303
|
var n = t[e];
|
|
3301
|
-
return n ===
|
|
3304
|
+
return n === Us ? void 0 : n;
|
|
3302
3305
|
}
|
|
3303
|
-
return
|
|
3306
|
+
return Ws.call(t, e) ? t[e] : void 0;
|
|
3304
3307
|
}
|
|
3305
|
-
var
|
|
3306
|
-
function
|
|
3308
|
+
var Hs = Object.prototype, Ks = Hs.hasOwnProperty;
|
|
3309
|
+
function zs(e) {
|
|
3307
3310
|
var t = this.__data__;
|
|
3308
|
-
return
|
|
3311
|
+
return fe ? t[e] !== void 0 : Ks.call(t, e);
|
|
3309
3312
|
}
|
|
3310
|
-
var
|
|
3311
|
-
function
|
|
3313
|
+
var Gs = "__lodash_hash_undefined__";
|
|
3314
|
+
function Js(e, t) {
|
|
3312
3315
|
var n = this.__data__;
|
|
3313
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
3316
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = fe && t === void 0 ? Gs : t, this;
|
|
3314
3317
|
}
|
|
3315
3318
|
function K(e) {
|
|
3316
3319
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -3319,38 +3322,38 @@ function K(e) {
|
|
|
3319
3322
|
this.set(r[0], r[1]);
|
|
3320
3323
|
}
|
|
3321
3324
|
}
|
|
3322
|
-
K.prototype.clear =
|
|
3323
|
-
K.prototype.delete =
|
|
3324
|
-
K.prototype.get =
|
|
3325
|
-
K.prototype.has =
|
|
3326
|
-
K.prototype.set =
|
|
3327
|
-
function
|
|
3325
|
+
K.prototype.clear = ks;
|
|
3326
|
+
K.prototype.delete = Bs;
|
|
3327
|
+
K.prototype.get = Vs;
|
|
3328
|
+
K.prototype.has = zs;
|
|
3329
|
+
K.prototype.set = Js;
|
|
3330
|
+
function Qs() {
|
|
3328
3331
|
this.size = 0, this.__data__ = {
|
|
3329
3332
|
hash: new K(),
|
|
3330
|
-
map: new (
|
|
3333
|
+
map: new (de || q)(),
|
|
3331
3334
|
string: new K()
|
|
3332
3335
|
};
|
|
3333
3336
|
}
|
|
3334
|
-
function
|
|
3337
|
+
function Ys(e) {
|
|
3335
3338
|
var t = typeof e;
|
|
3336
3339
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
3337
3340
|
}
|
|
3338
|
-
function
|
|
3341
|
+
function Ne(e, t) {
|
|
3339
3342
|
var n = e.__data__;
|
|
3340
|
-
return
|
|
3343
|
+
return Ys(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
3341
3344
|
}
|
|
3342
|
-
function
|
|
3343
|
-
var t =
|
|
3345
|
+
function Zs(e) {
|
|
3346
|
+
var t = Ne(this, e).delete(e);
|
|
3344
3347
|
return this.size -= t ? 1 : 0, t;
|
|
3345
3348
|
}
|
|
3346
|
-
function
|
|
3347
|
-
return
|
|
3349
|
+
function Xs(e) {
|
|
3350
|
+
return Ne(this, e).get(e);
|
|
3348
3351
|
}
|
|
3349
|
-
function
|
|
3350
|
-
return
|
|
3352
|
+
function ei(e) {
|
|
3353
|
+
return Ne(this, e).has(e);
|
|
3351
3354
|
}
|
|
3352
|
-
function
|
|
3353
|
-
var n =
|
|
3355
|
+
function ti(e, t) {
|
|
3356
|
+
var n = Ne(this, e), r = n.size;
|
|
3354
3357
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
3355
3358
|
}
|
|
3356
3359
|
function re(e) {
|
|
@@ -3360,325 +3363,325 @@ function re(e) {
|
|
|
3360
3363
|
this.set(r[0], r[1]);
|
|
3361
3364
|
}
|
|
3362
3365
|
}
|
|
3363
|
-
re.prototype.clear =
|
|
3364
|
-
re.prototype.delete =
|
|
3365
|
-
re.prototype.get =
|
|
3366
|
-
re.prototype.has =
|
|
3367
|
-
re.prototype.set =
|
|
3368
|
-
var
|
|
3369
|
-
function
|
|
3366
|
+
re.prototype.clear = Qs;
|
|
3367
|
+
re.prototype.delete = Zs;
|
|
3368
|
+
re.prototype.get = Xs;
|
|
3369
|
+
re.prototype.has = ei;
|
|
3370
|
+
re.prototype.set = ti;
|
|
3371
|
+
var ni = 200;
|
|
3372
|
+
function ri(e, t) {
|
|
3370
3373
|
var n = this.__data__;
|
|
3371
|
-
if (n instanceof
|
|
3374
|
+
if (n instanceof q) {
|
|
3372
3375
|
var r = n.__data__;
|
|
3373
|
-
if (!
|
|
3376
|
+
if (!de || r.length < ni - 1)
|
|
3374
3377
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
3375
3378
|
n = this.__data__ = new re(r);
|
|
3376
3379
|
}
|
|
3377
3380
|
return n.set(e, t), this.size = n.size, this;
|
|
3378
3381
|
}
|
|
3379
3382
|
function se(e) {
|
|
3380
|
-
var t = this.__data__ = new
|
|
3383
|
+
var t = this.__data__ = new q(e);
|
|
3381
3384
|
this.size = t.size;
|
|
3382
3385
|
}
|
|
3383
|
-
se.prototype.clear =
|
|
3384
|
-
se.prototype.delete =
|
|
3385
|
-
se.prototype.get =
|
|
3386
|
-
se.prototype.has =
|
|
3387
|
-
se.prototype.set =
|
|
3388
|
-
function
|
|
3386
|
+
se.prototype.clear = Os;
|
|
3387
|
+
se.prototype.delete = vs;
|
|
3388
|
+
se.prototype.get = xs;
|
|
3389
|
+
se.prototype.has = Cs;
|
|
3390
|
+
se.prototype.set = ri;
|
|
3391
|
+
function si(e, t) {
|
|
3389
3392
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
3390
3393
|
;
|
|
3391
3394
|
return e;
|
|
3392
3395
|
}
|
|
3393
|
-
var
|
|
3396
|
+
var ii = function() {
|
|
3394
3397
|
try {
|
|
3395
3398
|
var e = G(Object, "defineProperty");
|
|
3396
3399
|
return e({}, "", {}), e;
|
|
3397
3400
|
} catch {
|
|
3398
3401
|
}
|
|
3399
3402
|
}();
|
|
3400
|
-
const
|
|
3401
|
-
function
|
|
3402
|
-
t == "__proto__" &&
|
|
3403
|
+
const vt = ii;
|
|
3404
|
+
function Jt(e, t, n) {
|
|
3405
|
+
t == "__proto__" && vt ? vt(e, t, {
|
|
3403
3406
|
configurable: !0,
|
|
3404
3407
|
enumerable: !0,
|
|
3405
3408
|
value: n,
|
|
3406
3409
|
writable: !0
|
|
3407
3410
|
}) : e[t] = n;
|
|
3408
3411
|
}
|
|
3409
|
-
var
|
|
3412
|
+
var ai = Object.prototype, oi = ai.hasOwnProperty;
|
|
3410
3413
|
function Qt(e, t, n) {
|
|
3411
3414
|
var r = e[t];
|
|
3412
|
-
(!(
|
|
3415
|
+
(!(oi.call(e, t) && Gt(r, n)) || n === void 0 && !(t in e)) && Jt(e, t, n);
|
|
3413
3416
|
}
|
|
3414
|
-
function
|
|
3417
|
+
function Re(e, t, n, r) {
|
|
3415
3418
|
var s = !n;
|
|
3416
3419
|
n || (n = {});
|
|
3417
3420
|
for (var i = -1, a = t.length; ++i < a; ) {
|
|
3418
3421
|
var o = t[i], u = r ? r(n[o], e[o], o, n, e) : void 0;
|
|
3419
|
-
u === void 0 && (u = e[o]), s ?
|
|
3422
|
+
u === void 0 && (u = e[o]), s ? Jt(n, o, u) : Qt(n, o, u);
|
|
3420
3423
|
}
|
|
3421
3424
|
return n;
|
|
3422
3425
|
}
|
|
3423
|
-
function
|
|
3424
|
-
return e &&
|
|
3426
|
+
function ui(e, t) {
|
|
3427
|
+
return e && Re(t, Qe(t), e);
|
|
3425
3428
|
}
|
|
3426
|
-
function
|
|
3429
|
+
function li(e) {
|
|
3427
3430
|
var t = [];
|
|
3428
3431
|
if (e != null)
|
|
3429
3432
|
for (var n in Object(e))
|
|
3430
3433
|
t.push(n);
|
|
3431
3434
|
return t;
|
|
3432
3435
|
}
|
|
3433
|
-
var
|
|
3434
|
-
function
|
|
3435
|
-
if (!
|
|
3436
|
-
return
|
|
3437
|
-
var t =
|
|
3436
|
+
var ci = Object.prototype, di = ci.hasOwnProperty;
|
|
3437
|
+
function fi(e) {
|
|
3438
|
+
if (!Ae(e))
|
|
3439
|
+
return li(e);
|
|
3440
|
+
var t = kt(e), n = [];
|
|
3438
3441
|
for (var r in e)
|
|
3439
|
-
r == "constructor" && (t || !
|
|
3442
|
+
r == "constructor" && (t || !di.call(e, r)) || n.push(r);
|
|
3440
3443
|
return n;
|
|
3441
3444
|
}
|
|
3442
|
-
function
|
|
3443
|
-
return
|
|
3445
|
+
function Xe(e) {
|
|
3446
|
+
return Bn(e) ? Un(e, !0) : fi(e);
|
|
3444
3447
|
}
|
|
3445
|
-
function
|
|
3446
|
-
return e &&
|
|
3448
|
+
function pi(e, t) {
|
|
3449
|
+
return e && Re(t, Xe(t), e);
|
|
3447
3450
|
}
|
|
3448
|
-
var
|
|
3449
|
-
function
|
|
3451
|
+
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, xt = Yt && typeof module == "object" && module && !module.nodeType && module, gi = xt && xt.exports === Yt, Ct = gi ? W.Buffer : void 0, wt = Ct ? Ct.allocUnsafe : void 0;
|
|
3452
|
+
function hi(e, t) {
|
|
3450
3453
|
if (t)
|
|
3451
3454
|
return e.slice();
|
|
3452
|
-
var n = e.length, r =
|
|
3455
|
+
var n = e.length, r = wt ? wt(n) : new e.constructor(n);
|
|
3453
3456
|
return e.copy(r), r;
|
|
3454
3457
|
}
|
|
3455
|
-
function
|
|
3458
|
+
function mi(e, t) {
|
|
3456
3459
|
var n = -1, r = e.length;
|
|
3457
3460
|
for (t || (t = Array(r)); ++n < r; )
|
|
3458
3461
|
t[n] = e[n];
|
|
3459
3462
|
return t;
|
|
3460
3463
|
}
|
|
3461
|
-
function
|
|
3464
|
+
function yi(e, t) {
|
|
3462
3465
|
for (var n = -1, r = e == null ? 0 : e.length, s = 0, i = []; ++n < r; ) {
|
|
3463
3466
|
var a = e[n];
|
|
3464
3467
|
t(a, n, e) && (i[s++] = a);
|
|
3465
3468
|
}
|
|
3466
3469
|
return i;
|
|
3467
3470
|
}
|
|
3468
|
-
function
|
|
3471
|
+
function Zt() {
|
|
3469
3472
|
return [];
|
|
3470
3473
|
}
|
|
3471
|
-
var
|
|
3472
|
-
return e == null ? [] : (e = Object(e),
|
|
3473
|
-
return
|
|
3474
|
+
var bi = Object.prototype, Si = bi.propertyIsEnumerable, Pt = Object.getOwnPropertySymbols, Oi = Pt ? function(e) {
|
|
3475
|
+
return e == null ? [] : (e = Object(e), yi(Pt(e), function(t) {
|
|
3476
|
+
return Si.call(e, t);
|
|
3474
3477
|
}));
|
|
3475
|
-
} :
|
|
3476
|
-
const
|
|
3477
|
-
function
|
|
3478
|
-
return
|
|
3478
|
+
} : Zt;
|
|
3479
|
+
const et = Oi;
|
|
3480
|
+
function vi(e, t) {
|
|
3481
|
+
return Re(e, et(e), t);
|
|
3479
3482
|
}
|
|
3480
|
-
function
|
|
3483
|
+
function Xt(e, t) {
|
|
3481
3484
|
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
|
3482
3485
|
e[s + n] = t[n];
|
|
3483
3486
|
return e;
|
|
3484
3487
|
}
|
|
3485
|
-
var
|
|
3486
|
-
const
|
|
3487
|
-
var
|
|
3488
|
+
var xi = qn(Object.getPrototypeOf, Object);
|
|
3489
|
+
const en = xi;
|
|
3490
|
+
var Ci = Object.getOwnPropertySymbols, wi = Ci ? function(e) {
|
|
3488
3491
|
for (var t = []; e; )
|
|
3489
|
-
|
|
3492
|
+
Xt(t, et(e)), e = en(e);
|
|
3490
3493
|
return t;
|
|
3491
|
-
} :
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3494
|
-
return
|
|
3494
|
+
} : Zt;
|
|
3495
|
+
const tn = wi;
|
|
3496
|
+
function Pi(e, t) {
|
|
3497
|
+
return Re(e, tn(e), t);
|
|
3495
3498
|
}
|
|
3496
|
-
function
|
|
3499
|
+
function nn(e, t, n) {
|
|
3497
3500
|
var r = t(e);
|
|
3498
|
-
return
|
|
3501
|
+
return Bt(e) ? r : Xt(r, n(e));
|
|
3499
3502
|
}
|
|
3500
|
-
function
|
|
3501
|
-
return
|
|
3503
|
+
function Di(e) {
|
|
3504
|
+
return nn(e, Qe, et);
|
|
3502
3505
|
}
|
|
3503
|
-
function
|
|
3504
|
-
return
|
|
3506
|
+
function ji(e) {
|
|
3507
|
+
return nn(e, Xe, tn);
|
|
3505
3508
|
}
|
|
3506
|
-
var
|
|
3507
|
-
const
|
|
3508
|
-
var
|
|
3509
|
-
const
|
|
3510
|
-
var
|
|
3511
|
-
const
|
|
3512
|
-
var
|
|
3513
|
-
const
|
|
3514
|
-
var
|
|
3515
|
-
(
|
|
3516
|
-
var t =
|
|
3509
|
+
var Fi = G(W, "DataView");
|
|
3510
|
+
const He = Fi;
|
|
3511
|
+
var Ai = G(W, "Promise");
|
|
3512
|
+
const Ke = Ai;
|
|
3513
|
+
var Li = G(W, "Set");
|
|
3514
|
+
const ze = Li;
|
|
3515
|
+
var Ei = G(W, "WeakMap");
|
|
3516
|
+
const Ge = Ei;
|
|
3517
|
+
var Dt = "[object Map]", Ni = "[object Object]", jt = "[object Promise]", Ft = "[object Set]", At = "[object WeakMap]", Lt = "[object DataView]", Ri = z(He), Ti = z(de), Mi = z(Ke), $i = z(ze), Ii = z(Ge), H = Ut;
|
|
3518
|
+
(He && H(new He(new ArrayBuffer(1))) != Lt || de && H(new de()) != Dt || Ke && H(Ke.resolve()) != jt || ze && H(new ze()) != Ft || Ge && H(new Ge()) != At) && (H = function(e) {
|
|
3519
|
+
var t = Ut(e), n = t == Ni ? e.constructor : void 0, r = n ? z(n) : "";
|
|
3517
3520
|
if (r)
|
|
3518
3521
|
switch (r) {
|
|
3519
|
-
case
|
|
3520
|
-
return
|
|
3521
|
-
case
|
|
3522
|
-
return Pt;
|
|
3523
|
-
case Di:
|
|
3522
|
+
case Ri:
|
|
3523
|
+
return Lt;
|
|
3524
|
+
case Ti:
|
|
3524
3525
|
return Dt;
|
|
3525
|
-
case
|
|
3526
|
+
case Mi:
|
|
3526
3527
|
return jt;
|
|
3527
|
-
case
|
|
3528
|
+
case $i:
|
|
3528
3529
|
return Ft;
|
|
3530
|
+
case Ii:
|
|
3531
|
+
return At;
|
|
3529
3532
|
}
|
|
3530
3533
|
return t;
|
|
3531
3534
|
});
|
|
3532
|
-
const
|
|
3533
|
-
var
|
|
3534
|
-
function
|
|
3535
|
+
const tt = H;
|
|
3536
|
+
var _i = Object.prototype, ki = _i.hasOwnProperty;
|
|
3537
|
+
function Bi(e) {
|
|
3535
3538
|
var t = e.length, n = new e.constructor(t);
|
|
3536
|
-
return t && typeof e[0] == "string" &&
|
|
3539
|
+
return t && typeof e[0] == "string" && ki.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
3537
3540
|
}
|
|
3538
|
-
var
|
|
3539
|
-
const
|
|
3540
|
-
function
|
|
3541
|
+
var Ui = W.Uint8Array;
|
|
3542
|
+
const Et = Ui;
|
|
3543
|
+
function nt(e) {
|
|
3541
3544
|
var t = new e.constructor(e.byteLength);
|
|
3542
|
-
return new
|
|
3545
|
+
return new Et(t).set(new Et(e)), t;
|
|
3543
3546
|
}
|
|
3544
|
-
function
|
|
3545
|
-
var n = t ?
|
|
3547
|
+
function qi(e, t) {
|
|
3548
|
+
var n = t ? nt(e.buffer) : e.buffer;
|
|
3546
3549
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
3547
3550
|
}
|
|
3548
|
-
var
|
|
3549
|
-
function
|
|
3550
|
-
var t = new e.constructor(e.source,
|
|
3551
|
+
var Wi = /\w*$/;
|
|
3552
|
+
function Vi(e) {
|
|
3553
|
+
var t = new e.constructor(e.source, Wi.exec(e));
|
|
3551
3554
|
return t.lastIndex = e.lastIndex, t;
|
|
3552
3555
|
}
|
|
3553
|
-
var
|
|
3554
|
-
function
|
|
3555
|
-
return
|
|
3556
|
+
var Nt = at ? at.prototype : void 0, Rt = Nt ? Nt.valueOf : void 0;
|
|
3557
|
+
function Hi(e) {
|
|
3558
|
+
return Rt ? Object(Rt.call(e)) : {};
|
|
3556
3559
|
}
|
|
3557
|
-
function
|
|
3558
|
-
var n = t ?
|
|
3560
|
+
function Ki(e, t) {
|
|
3561
|
+
var n = t ? nt(e.buffer) : e.buffer;
|
|
3559
3562
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
3560
3563
|
}
|
|
3561
|
-
var
|
|
3562
|
-
function
|
|
3564
|
+
var zi = "[object Boolean]", Gi = "[object Date]", Ji = "[object Map]", Qi = "[object Number]", Yi = "[object RegExp]", Zi = "[object Set]", Xi = "[object String]", ea = "[object Symbol]", ta = "[object ArrayBuffer]", na = "[object DataView]", ra = "[object Float32Array]", sa = "[object Float64Array]", ia = "[object Int8Array]", aa = "[object Int16Array]", oa = "[object Int32Array]", ua = "[object Uint8Array]", la = "[object Uint8ClampedArray]", ca = "[object Uint16Array]", da = "[object Uint32Array]";
|
|
3565
|
+
function fa(e, t, n) {
|
|
3563
3566
|
var r = e.constructor;
|
|
3564
3567
|
switch (t) {
|
|
3565
|
-
case
|
|
3566
|
-
return
|
|
3567
|
-
case _i:
|
|
3568
|
-
case ki:
|
|
3569
|
-
return new r(+e);
|
|
3568
|
+
case ta:
|
|
3569
|
+
return nt(e);
|
|
3570
3570
|
case zi:
|
|
3571
|
-
return Ri(e, n);
|
|
3572
3571
|
case Gi:
|
|
3573
|
-
|
|
3574
|
-
case Ji:
|
|
3575
|
-
case Yi:
|
|
3576
|
-
case Zi:
|
|
3577
|
-
case Xi:
|
|
3578
|
-
case ea:
|
|
3579
|
-
case ta:
|
|
3572
|
+
return new r(+e);
|
|
3580
3573
|
case na:
|
|
3581
|
-
return
|
|
3582
|
-
case
|
|
3574
|
+
return qi(e, n);
|
|
3575
|
+
case ra:
|
|
3576
|
+
case sa:
|
|
3577
|
+
case ia:
|
|
3578
|
+
case aa:
|
|
3579
|
+
case oa:
|
|
3580
|
+
case ua:
|
|
3581
|
+
case la:
|
|
3582
|
+
case ca:
|
|
3583
|
+
case da:
|
|
3584
|
+
return Ki(e, n);
|
|
3585
|
+
case Ji:
|
|
3583
3586
|
return new r();
|
|
3584
|
-
case
|
|
3585
|
-
case
|
|
3587
|
+
case Qi:
|
|
3588
|
+
case Xi:
|
|
3586
3589
|
return new r(e);
|
|
3587
|
-
case
|
|
3588
|
-
return
|
|
3589
|
-
case
|
|
3590
|
+
case Yi:
|
|
3591
|
+
return Vi(e);
|
|
3592
|
+
case Zi:
|
|
3590
3593
|
return new r();
|
|
3591
|
-
case
|
|
3592
|
-
return
|
|
3594
|
+
case ea:
|
|
3595
|
+
return Hi(e);
|
|
3593
3596
|
}
|
|
3594
3597
|
}
|
|
3595
|
-
var
|
|
3598
|
+
var Tt = Object.create, pa = function() {
|
|
3596
3599
|
function e() {
|
|
3597
3600
|
}
|
|
3598
3601
|
return function(t) {
|
|
3599
|
-
if (!
|
|
3602
|
+
if (!Ae(t))
|
|
3600
3603
|
return {};
|
|
3601
|
-
if (
|
|
3602
|
-
return
|
|
3604
|
+
if (Tt)
|
|
3605
|
+
return Tt(t);
|
|
3603
3606
|
e.prototype = t;
|
|
3604
3607
|
var n = new e();
|
|
3605
3608
|
return e.prototype = void 0, n;
|
|
3606
3609
|
};
|
|
3607
3610
|
}();
|
|
3608
|
-
const
|
|
3609
|
-
function
|
|
3610
|
-
return typeof e.constructor == "function" && !
|
|
3611
|
+
const ga = pa;
|
|
3612
|
+
function ha(e) {
|
|
3613
|
+
return typeof e.constructor == "function" && !kt(e) ? ga(en(e)) : {};
|
|
3611
3614
|
}
|
|
3612
|
-
var
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3615
|
+
var ma = "[object Map]";
|
|
3616
|
+
function ya(e) {
|
|
3617
|
+
return qt(e) && tt(e) == ma;
|
|
3615
3618
|
}
|
|
3616
|
-
var
|
|
3617
|
-
const
|
|
3618
|
-
var
|
|
3619
|
-
function
|
|
3620
|
-
return
|
|
3619
|
+
var Mt = Ce && Ce.isMap, ba = Mt ? Wt(Mt) : ya;
|
|
3620
|
+
const Sa = ba;
|
|
3621
|
+
var Oa = "[object Set]";
|
|
3622
|
+
function va(e) {
|
|
3623
|
+
return qt(e) && tt(e) == Oa;
|
|
3621
3624
|
}
|
|
3622
|
-
var
|
|
3623
|
-
const
|
|
3624
|
-
var
|
|
3625
|
-
v[
|
|
3626
|
-
v[
|
|
3627
|
-
function
|
|
3628
|
-
var a, o = t &
|
|
3625
|
+
var $t = Ce && Ce.isSet, xa = $t ? Wt($t) : va;
|
|
3626
|
+
const Ca = xa;
|
|
3627
|
+
var wa = 1, Pa = 2, Da = 4, rn = "[object Arguments]", ja = "[object Array]", Fa = "[object Boolean]", Aa = "[object Date]", La = "[object Error]", sn = "[object Function]", Ea = "[object GeneratorFunction]", Na = "[object Map]", Ra = "[object Number]", an = "[object Object]", Ta = "[object RegExp]", Ma = "[object Set]", $a = "[object String]", Ia = "[object Symbol]", _a = "[object WeakMap]", ka = "[object ArrayBuffer]", Ba = "[object DataView]", Ua = "[object Float32Array]", qa = "[object Float64Array]", Wa = "[object Int8Array]", Va = "[object Int16Array]", Ha = "[object Int32Array]", Ka = "[object Uint8Array]", za = "[object Uint8ClampedArray]", Ga = "[object Uint16Array]", Ja = "[object Uint32Array]", v = {};
|
|
3628
|
+
v[rn] = v[ja] = v[ka] = v[Ba] = v[Fa] = v[Aa] = v[Ua] = v[qa] = v[Wa] = v[Va] = v[Ha] = v[Na] = v[Ra] = v[an] = v[Ta] = v[Ma] = v[$a] = v[Ia] = v[Ka] = v[za] = v[Ga] = v[Ja] = !0;
|
|
3629
|
+
v[La] = v[sn] = v[_a] = !1;
|
|
3630
|
+
function be(e, t, n, r, s, i) {
|
|
3631
|
+
var a, o = t & wa, u = t & Pa, c = t & Da;
|
|
3629
3632
|
if (n && (a = s ? n(e, r, s, i) : n(e)), a !== void 0)
|
|
3630
3633
|
return a;
|
|
3631
|
-
if (!
|
|
3634
|
+
if (!Ae(e))
|
|
3632
3635
|
return e;
|
|
3633
|
-
var d =
|
|
3636
|
+
var d = Bt(e);
|
|
3634
3637
|
if (d) {
|
|
3635
|
-
if (a =
|
|
3636
|
-
return
|
|
3638
|
+
if (a = Bi(e), !o)
|
|
3639
|
+
return mi(e, a);
|
|
3637
3640
|
} else {
|
|
3638
|
-
var f =
|
|
3639
|
-
if (
|
|
3640
|
-
return
|
|
3641
|
-
if (f ==
|
|
3642
|
-
if (a = u || l ? {} :
|
|
3643
|
-
return u ?
|
|
3641
|
+
var f = tt(e), l = f == sn || f == Ea;
|
|
3642
|
+
if (Wn(e))
|
|
3643
|
+
return hi(e, o);
|
|
3644
|
+
if (f == an || f == rn || l && !s) {
|
|
3645
|
+
if (a = u || l ? {} : ha(e), !o)
|
|
3646
|
+
return u ? Pi(e, pi(a, e)) : vi(e, ui(a, e));
|
|
3644
3647
|
} else {
|
|
3645
3648
|
if (!v[f])
|
|
3646
3649
|
return s ? e : {};
|
|
3647
|
-
a =
|
|
3650
|
+
a = fa(e, f, o);
|
|
3648
3651
|
}
|
|
3649
3652
|
}
|
|
3650
3653
|
i || (i = new se());
|
|
3651
3654
|
var g = i.get(e);
|
|
3652
3655
|
if (g)
|
|
3653
3656
|
return g;
|
|
3654
|
-
i.set(e, a),
|
|
3655
|
-
a.add(
|
|
3656
|
-
}) :
|
|
3657
|
-
a.set(x,
|
|
3657
|
+
i.set(e, a), Ca(e) ? e.forEach(function(h) {
|
|
3658
|
+
a.add(be(h, t, n, h, e, i));
|
|
3659
|
+
}) : Sa(e) && e.forEach(function(h, x) {
|
|
3660
|
+
a.set(x, be(h, t, n, x, e, i));
|
|
3658
3661
|
});
|
|
3659
|
-
var p = c ? u ?
|
|
3660
|
-
return
|
|
3661
|
-
y && (x = h, h = e[x]), Qt(a, x,
|
|
3662
|
+
var p = c ? u ? ji : Di : u ? Xe : Qe, y = d ? void 0 : p(e);
|
|
3663
|
+
return si(y || e, function(h, x) {
|
|
3664
|
+
y && (x = h, h = e[x]), Qt(a, x, be(h, t, n, x, e, i));
|
|
3662
3665
|
}), a;
|
|
3663
3666
|
}
|
|
3664
|
-
var
|
|
3665
|
-
function
|
|
3666
|
-
return
|
|
3667
|
+
var Qa = 1, Ya = 4;
|
|
3668
|
+
function Za(e) {
|
|
3669
|
+
return be(e, Qa | Ya);
|
|
3667
3670
|
}
|
|
3668
|
-
function
|
|
3671
|
+
function Xa(e) {
|
|
3669
3672
|
return Buffer.from(e).toString("utf8");
|
|
3670
3673
|
}
|
|
3671
|
-
function
|
|
3674
|
+
function eo(e) {
|
|
3672
3675
|
return String.fromCharCode.apply(null, new Uint16Array(e));
|
|
3673
3676
|
}
|
|
3674
|
-
function
|
|
3677
|
+
function to() {
|
|
3675
3678
|
return "UNSUPPORTED";
|
|
3676
3679
|
}
|
|
3677
3680
|
typeof Buffer < "u" && Buffer.from;
|
|
3678
|
-
var
|
|
3681
|
+
var Ie;
|
|
3679
3682
|
(function(e) {
|
|
3680
3683
|
e[e.None = 0] = "None", e[e.Ascending = 1] = "Ascending", e[e.Descending = 2] = "Descending";
|
|
3681
|
-
})(
|
|
3684
|
+
})(Ie = Ie || (Ie = {}));
|
|
3682
3685
|
const O = {
|
|
3683
3686
|
Measure: "measure",
|
|
3684
3687
|
MeasureTemplate: "measuretemplate",
|
|
@@ -3813,49 +3816,49 @@ const O = {
|
|
|
3813
3816
|
return !1;
|
|
3814
3817
|
}
|
|
3815
3818
|
};
|
|
3816
|
-
var Ie;
|
|
3817
|
-
(function(e) {
|
|
3818
|
-
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
|
3819
|
-
})(Ie = Ie || (Ie = {}));
|
|
3820
3819
|
var _e;
|
|
3821
3820
|
(function(e) {
|
|
3822
|
-
e.
|
|
3821
|
+
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
|
3823
3822
|
})(_e = _e || (_e = {}));
|
|
3824
3823
|
var ke;
|
|
3825
3824
|
(function(e) {
|
|
3826
|
-
e.
|
|
3825
|
+
e.ASC = "asc", e.DESC = "desc";
|
|
3827
3826
|
})(ke = ke || (ke = {}));
|
|
3828
|
-
|
|
3827
|
+
var Be;
|
|
3828
|
+
(function(e) {
|
|
3829
|
+
e.PRE = "pre", e.POST = "post";
|
|
3830
|
+
})(Be = Be || (Be = {}));
|
|
3831
|
+
function Je(e, t = []) {
|
|
3829
3832
|
try {
|
|
3830
|
-
return e == null ? String(e) : typeof e == "string" ? `'${
|
|
3833
|
+
return e == null ? String(e) : typeof e == "string" ? `'${os(e)}'` : typeof e == "number" || typeof e == "boolean" ? String(e) : e instanceof Date ? `new Date('${e.toISOString()}')` : Array.isArray(e) ? `[${e.map((n) => Je(n, t)).join(", ")}]` : typeof e == "object" && e !== null ? "composeCode" in e ? e.composeCode : `{ ${Object.entries(e).filter(([r]) => !t.includes(r)).map(([r, s]) => `${/[^a-zA-Z0-9_$]/.test(r) ? `'${r}'` : r}: ${Je(s, t)}`).join(", ")} }` : JSON.stringify(e);
|
|
3831
3834
|
} catch (n) {
|
|
3832
3835
|
return console.error(n, JSON.stringify(e, null, 2)), JSON.stringify(e);
|
|
3833
3836
|
}
|
|
3834
3837
|
}
|
|
3835
|
-
function
|
|
3838
|
+
function no(e) {
|
|
3836
3839
|
let t = e.length;
|
|
3837
3840
|
for (; t > 0 && e[t - 1] === void 0; )
|
|
3838
3841
|
t--;
|
|
3839
3842
|
return e.slice(0, t);
|
|
3840
3843
|
}
|
|
3841
|
-
function
|
|
3844
|
+
function ro(e, t) {
|
|
3842
3845
|
return function(n) {
|
|
3843
3846
|
return function(...r) {
|
|
3844
|
-
const s =
|
|
3847
|
+
const s = no(r), i = s.length, a = s.map((c) => Je(c, ["guid"])).filter((c, d) => !(["", "{ }", "{}", "undefined", "null"].includes(c) && d === i - 1)).join(", "), o = `${e}.${t ?? n.name}(${a})`, u = n(...r);
|
|
3845
3848
|
return u.composeCode = o, u;
|
|
3846
3849
|
};
|
|
3847
3850
|
};
|
|
3848
3851
|
}
|
|
3849
|
-
function
|
|
3850
|
-
return
|
|
3852
|
+
function It(e, t) {
|
|
3853
|
+
return ro("filterFactory.logic", t)(e);
|
|
3851
3854
|
}
|
|
3852
|
-
function
|
|
3855
|
+
function so(e) {
|
|
3853
3856
|
return e && e.__serializable === "MembersFilter";
|
|
3854
3857
|
}
|
|
3855
|
-
function
|
|
3858
|
+
function io(e) {
|
|
3856
3859
|
return e && e.__serializable === "CascadingFilter";
|
|
3857
3860
|
}
|
|
3858
|
-
var
|
|
3861
|
+
var Ue;
|
|
3859
3862
|
(function(e) {
|
|
3860
3863
|
const t = (n) => {
|
|
3861
3864
|
if (Array.isArray(n)) {
|
|
@@ -3868,37 +3871,37 @@ var Be;
|
|
|
3868
3871
|
}
|
|
3869
3872
|
return n;
|
|
3870
3873
|
};
|
|
3871
|
-
e.and =
|
|
3874
|
+
e.and = It((n, r) => ({
|
|
3872
3875
|
operator: "AND",
|
|
3873
3876
|
left: t(n),
|
|
3874
3877
|
right: t(r)
|
|
3875
|
-
}), "and"), e.or =
|
|
3878
|
+
}), "and"), e.or = It((n, r) => ({
|
|
3876
3879
|
operator: "OR",
|
|
3877
3880
|
left: t(n),
|
|
3878
3881
|
right: t(r)
|
|
3879
3882
|
}), "or");
|
|
3880
|
-
})(
|
|
3881
|
-
var be;
|
|
3882
|
-
(function(e) {
|
|
3883
|
-
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
|
3884
|
-
})(be = be || (be = {}));
|
|
3883
|
+
})(Ue = Ue || (Ue = {}));
|
|
3885
3884
|
var Se;
|
|
3886
3885
|
(function(e) {
|
|
3887
|
-
e.
|
|
3886
|
+
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
|
3888
3887
|
})(Se = Se || (Se = {}));
|
|
3889
3888
|
var Oe;
|
|
3890
3889
|
(function(e) {
|
|
3891
|
-
e.
|
|
3890
|
+
e.PERIOD = "PERIOD", e.DATE_RANGE = "DATE_RANGE";
|
|
3892
3891
|
})(Oe = Oe || (Oe = {}));
|
|
3893
3892
|
var ve;
|
|
3894
3893
|
(function(e) {
|
|
3895
|
-
e.
|
|
3894
|
+
e.NUMERIC_RANGE = "NUMERIC_RANGE";
|
|
3896
3895
|
})(ve = ve || (ve = {}));
|
|
3897
|
-
var
|
|
3896
|
+
var xe;
|
|
3897
|
+
(function(e) {
|
|
3898
|
+
e.YEARS = "years", e.QUARTERS = "quarters", e.MONTHS = "months", e.WEEKS = "weeks", e.DAYS = "days", e.HOURS = "hours", e.MINUTES = "minutes";
|
|
3899
|
+
})(xe = xe || (xe = {}));
|
|
3900
|
+
var qe;
|
|
3898
3901
|
(function(e) {
|
|
3899
3902
|
e.DATE_TIME = "datetime", e.NUMERIC = "numeric", e.TEXT = "text";
|
|
3900
|
-
})(
|
|
3901
|
-
const M = Object.assign(Object.assign(Object.assign({},
|
|
3903
|
+
})(qe = qe || (qe = {}));
|
|
3904
|
+
const M = Object.assign(Object.assign(Object.assign({}, Se), Oe), ve), ao = {
|
|
3902
3905
|
[M.INCLUDE_ALL]: {
|
|
3903
3906
|
all: !0,
|
|
3904
3907
|
filterType: M.INCLUDE_ALL
|
|
@@ -3927,12 +3930,12 @@ const M = Object.assign(Object.assign(Object.assign({}, be), Se), Oe), Ya = {
|
|
|
3927
3930
|
filterType: M.SPECIFIC_ITEMS
|
|
3928
3931
|
}
|
|
3929
3932
|
};
|
|
3930
|
-
|
|
3931
|
-
var
|
|
3933
|
+
ao.INCLUDE_ALL, xe.YEARS;
|
|
3934
|
+
var We;
|
|
3932
3935
|
(function(e) {
|
|
3933
3936
|
e.IS = "members", e.IS_NOT = "exclude", e.IS_WITHIN = "isWithin", e.TOP = "top", e.BOTTOM = "bottom", e.AFTER = "after", e.BEFORE = "before", e.STARTS_WITH = "startsWith", e.DOESNT_START_WITH = "doesntStartWith", e.ENDS_WITH = "endsWith", e.DOESNT_END_WITH = "doesntEndWith", e.CONTAINS = "contains", e.DOESNT_CONTAIN = "doesntContain", e.EQUALS = "equals", e.DOESNT_EQUAL = "doesntEqual", e.IS_EMPTY = "isEmpty", e.IS_NOT_EMPTY = "isNotEmpty", e.GREATER_THAN = "fromNotEqual", e.GREATER_THAN_OR_EQUAL = "from", e.LESS_THAN = "toNotEqual", e.LESS_THAN_OR_EQUAL = "to", e.BETWEEN = "between", e.IS_NOT_BETWEEN = "isNotBetween", e.MULTIPLE_CONDITION = "multipleCondition", e.NONE = "none";
|
|
3934
|
-
})(
|
|
3935
|
-
const
|
|
3937
|
+
})(We = We || (We = {}));
|
|
3938
|
+
const on = (e) => {
|
|
3936
3939
|
if (!e)
|
|
3937
3940
|
return { filters: void 0, relations: void 0 };
|
|
3938
3941
|
if (Array.isArray(e))
|
|
@@ -3946,24 +3949,24 @@ const an = (e) => {
|
|
|
3946
3949
|
return { left: c, right: d, operator: "AND" };
|
|
3947
3950
|
}
|
|
3948
3951
|
function r(a) {
|
|
3949
|
-
return a && (
|
|
3952
|
+
return a && (oo(a) ? io(a) ? n(a.filters) : (t.add(a), { instanceid: a.config.guid }) : ("left" in a && (a.left = r(a.left)), "right" in a && (a.right = r(a.right)), "composeCode" in a && delete a.composeCode, a));
|
|
3950
3953
|
}
|
|
3951
|
-
const s =
|
|
3954
|
+
const s = Za(e), i = r(s);
|
|
3952
3955
|
return { filters: Array.from(t), relations: i };
|
|
3953
3956
|
};
|
|
3954
|
-
function
|
|
3957
|
+
function oo(e) {
|
|
3955
3958
|
return "config" in e && "guid" in e.config;
|
|
3956
3959
|
}
|
|
3957
3960
|
O.TextAttribute, O.NumericAttribute, O.DateLevel;
|
|
3958
|
-
const
|
|
3959
|
-
const [t, n] =
|
|
3961
|
+
const uu = (e) => {
|
|
3962
|
+
const [t, n] = V(Vt, {
|
|
3960
3963
|
isLoading: !0,
|
|
3961
3964
|
isError: !1,
|
|
3962
3965
|
isSuccess: !1,
|
|
3963
3966
|
status: "loading",
|
|
3964
3967
|
error: void 0,
|
|
3965
3968
|
data: void 0
|
|
3966
|
-
}), r =
|
|
3969
|
+
}), r = B();
|
|
3967
3970
|
R("useExecuteQuery");
|
|
3968
3971
|
const s = async (i) => {
|
|
3969
3972
|
try {
|
|
@@ -3977,9 +3980,9 @@ const Zo = (e) => {
|
|
|
3977
3980
|
offset: l,
|
|
3978
3981
|
ungroup: g,
|
|
3979
3982
|
onBeforeQuery: p
|
|
3980
|
-
} = S(e), { filters: y, relations: h } =
|
|
3983
|
+
} = S(e), { filters: y, relations: h } = on(c);
|
|
3981
3984
|
n({ type: "loading" });
|
|
3982
|
-
const x = await
|
|
3985
|
+
const x = await Vn(
|
|
3983
3986
|
{
|
|
3984
3987
|
dataSource: a,
|
|
3985
3988
|
dimensions: o,
|
|
@@ -3992,7 +3995,7 @@ const Zo = (e) => {
|
|
|
3992
3995
|
ungroup: g
|
|
3993
3996
|
},
|
|
3994
3997
|
i,
|
|
3995
|
-
{ onBeforeQuery:
|
|
3998
|
+
{ onBeforeQuery: Ye(p) }
|
|
3996
3999
|
);
|
|
3997
4000
|
n({ type: "success", data: x });
|
|
3998
4001
|
} catch (a) {
|
|
@@ -4007,24 +4010,24 @@ const Zo = (e) => {
|
|
|
4007
4010
|
},
|
|
4008
4011
|
{ immediate: !0 }
|
|
4009
4012
|
), D(t.value);
|
|
4010
|
-
},
|
|
4011
|
-
const t =
|
|
4013
|
+
}, lu = (e) => {
|
|
4014
|
+
const t = _(void 0), n = _(void 0);
|
|
4012
4015
|
R("useExecuteQueryByWidgetId");
|
|
4013
|
-
const [r, s] =
|
|
4016
|
+
const [r, s] = V(Vt, {
|
|
4014
4017
|
isLoading: !0,
|
|
4015
4018
|
isError: !1,
|
|
4016
4019
|
isSuccess: !1,
|
|
4017
4020
|
status: "loading",
|
|
4018
4021
|
error: void 0,
|
|
4019
4022
|
data: void 0
|
|
4020
|
-
}), i =
|
|
4023
|
+
}), i = B(), a = async (o) => {
|
|
4021
4024
|
try {
|
|
4022
4025
|
s({ type: "loading" });
|
|
4023
|
-
const { filters: u, ...c } = S(e), { filters: d } =
|
|
4026
|
+
const { filters: u, ...c } = S(e), { filters: d } = on(Ye(u)), {
|
|
4024
4027
|
data: f,
|
|
4025
4028
|
query: l,
|
|
4026
4029
|
pivotQuery: g
|
|
4027
|
-
} = await
|
|
4030
|
+
} = await Hn({
|
|
4028
4031
|
...c,
|
|
4029
4032
|
filters: d,
|
|
4030
4033
|
app: o
|
|
@@ -4046,11 +4049,11 @@ const Zo = (e) => {
|
|
|
4046
4049
|
query: t,
|
|
4047
4050
|
pivotQuery: n
|
|
4048
4051
|
};
|
|
4049
|
-
},
|
|
4052
|
+
}, cu = (e) => {
|
|
4050
4053
|
R("useExecuteCsvQuery");
|
|
4051
|
-
const t = new Z(
|
|
4054
|
+
const t = new Z(Kn, [
|
|
4052
4055
|
X()
|
|
4053
|
-
]), [n, r] =
|
|
4056
|
+
]), [n, r] = pe({
|
|
4054
4057
|
isLoading: !0,
|
|
4055
4058
|
isError: !1,
|
|
4056
4059
|
isSuccess: !1,
|
|
@@ -4065,11 +4068,11 @@ const Zo = (e) => {
|
|
|
4065
4068
|
}), ne(() => {
|
|
4066
4069
|
t.destroy();
|
|
4067
4070
|
}), D(n.value);
|
|
4068
|
-
},
|
|
4071
|
+
}, du = (e) => {
|
|
4069
4072
|
R("useExecutePivotQuery");
|
|
4070
|
-
const t = new Z(
|
|
4073
|
+
const t = new Z(zn, [
|
|
4071
4074
|
X()
|
|
4072
|
-
]), [n, r] =
|
|
4075
|
+
]), [n, r] = pe({
|
|
4073
4076
|
isLoading: !0,
|
|
4074
4077
|
isError: !1,
|
|
4075
4078
|
isSuccess: !1,
|
|
@@ -4084,11 +4087,11 @@ const Zo = (e) => {
|
|
|
4084
4087
|
}), ne(() => {
|
|
4085
4088
|
t.destroy();
|
|
4086
4089
|
}), D(n.value);
|
|
4087
|
-
},
|
|
4090
|
+
}, fu = (e) => {
|
|
4088
4091
|
R("useExecuteCustomWidgetQuery");
|
|
4089
|
-
const t = new Z(
|
|
4092
|
+
const t = new Z(Gn, [
|
|
4090
4093
|
X()
|
|
4091
|
-
]), [n, r] =
|
|
4094
|
+
]), [n, r] = pe({
|
|
4092
4095
|
data: void 0,
|
|
4093
4096
|
isLoading: !0,
|
|
4094
4097
|
isError: !1,
|
|
@@ -4103,12 +4106,12 @@ const Zo = (e) => {
|
|
|
4103
4106
|
}), ne(() => {
|
|
4104
4107
|
t.destroy();
|
|
4105
4108
|
}), D(n.value);
|
|
4106
|
-
},
|
|
4109
|
+
}, pu = (e) => {
|
|
4107
4110
|
R("useGetFilterMembers");
|
|
4108
4111
|
const { filter: t, parentFilters: n = [] } = S(e), r = {
|
|
4109
4112
|
selectedMembers: [],
|
|
4110
4113
|
allMembers: [],
|
|
4111
|
-
...
|
|
4114
|
+
...so(t) ? {
|
|
4112
4115
|
excludeMembers: t.config.excludeMembers,
|
|
4113
4116
|
enableMultiSelection: t.config.enableMultiSelection,
|
|
4114
4117
|
hasBackgroundFilter: !!t.config.backgroundFilter && n.length === 0
|
|
@@ -4117,7 +4120,7 @@ const Zo = (e) => {
|
|
|
4117
4120
|
enableMultiSelection: !1,
|
|
4118
4121
|
hasBackgroundFilter: !1
|
|
4119
4122
|
}
|
|
4120
|
-
}, s = new Z(
|
|
4123
|
+
}, s = new Z(Jn, [X()]), [i, a] = pe({
|
|
4121
4124
|
isLoading: !0,
|
|
4122
4125
|
isError: !1,
|
|
4123
4126
|
isSuccess: !1,
|
|
@@ -4133,19 +4136,19 @@ const Zo = (e) => {
|
|
|
4133
4136
|
}), ne(() => {
|
|
4134
4137
|
s.destroy();
|
|
4135
4138
|
}), D(i.value);
|
|
4136
|
-
},
|
|
4139
|
+
}, gu = (e) => {
|
|
4137
4140
|
R("useGetDashboardModel");
|
|
4138
|
-
const [t, n] =
|
|
4141
|
+
const [t, n] = V(ee, {
|
|
4139
4142
|
isLoading: !0,
|
|
4140
4143
|
isError: !1,
|
|
4141
4144
|
isSuccess: !1,
|
|
4142
4145
|
status: "loading",
|
|
4143
4146
|
error: void 0,
|
|
4144
4147
|
data: void 0
|
|
4145
|
-
}), r =
|
|
4148
|
+
}), r = B(), s = async (a) => {
|
|
4146
4149
|
try {
|
|
4147
4150
|
n({ type: "loading" });
|
|
4148
|
-
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = S(e), d = await
|
|
4151
|
+
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = S(e), d = await Yn(a.httpClient, o, {
|
|
4149
4152
|
includeWidgets: u,
|
|
4150
4153
|
includeFilters: c
|
|
4151
4154
|
});
|
|
@@ -4163,20 +4166,20 @@ const Zo = (e) => {
|
|
|
4163
4166
|
{ immediate: !0 }
|
|
4164
4167
|
);
|
|
4165
4168
|
const i = D(t.value);
|
|
4166
|
-
return D(
|
|
4167
|
-
},
|
|
4169
|
+
return D(Qn(i));
|
|
4170
|
+
}, hu = (e) => {
|
|
4168
4171
|
R("useGetDashboardModels");
|
|
4169
|
-
const [t, n] =
|
|
4172
|
+
const [t, n] = V(ee, {
|
|
4170
4173
|
isLoading: !0,
|
|
4171
4174
|
isError: !1,
|
|
4172
4175
|
isSuccess: !1,
|
|
4173
4176
|
status: "loading",
|
|
4174
4177
|
error: void 0,
|
|
4175
4178
|
data: void 0
|
|
4176
|
-
}), r =
|
|
4179
|
+
}), r = B(), s = async (a) => {
|
|
4177
4180
|
try {
|
|
4178
4181
|
n({ type: "loading" });
|
|
4179
|
-
const o = S(e), u = await
|
|
4182
|
+
const o = S(e), u = await Xn(a.httpClient, o);
|
|
4180
4183
|
n({ type: "success", data: u });
|
|
4181
4184
|
} catch (o) {
|
|
4182
4185
|
n({ type: "error", error: o });
|
|
@@ -4191,21 +4194,21 @@ const Zo = (e) => {
|
|
|
4191
4194
|
{ immediate: !0 }
|
|
4192
4195
|
);
|
|
4193
4196
|
const i = D(t.value);
|
|
4194
|
-
return D(
|
|
4195
|
-
},
|
|
4197
|
+
return D(Zn(i));
|
|
4198
|
+
}, mu = (e) => {
|
|
4196
4199
|
R("useGetSharedFormula");
|
|
4197
|
-
const [t, n] =
|
|
4200
|
+
const [t, n] = V(ee, {
|
|
4198
4201
|
isLoading: !0,
|
|
4199
4202
|
isError: !1,
|
|
4200
4203
|
isSuccess: !1,
|
|
4201
4204
|
status: "loading",
|
|
4202
4205
|
error: void 0,
|
|
4203
4206
|
data: void 0
|
|
4204
|
-
}), r =
|
|
4207
|
+
}), r = B(), s = (a) => {
|
|
4205
4208
|
n({ type: "loading" });
|
|
4206
4209
|
const { dataSource: o, name: u, oid: c } = S(e);
|
|
4207
4210
|
let d = Promise.resolve(null);
|
|
4208
|
-
c ? d =
|
|
4211
|
+
c ? d = tr(c, a) : u && o && (d = nr(u, o, a)), d.then((f) => {
|
|
4209
4212
|
n({ type: "success", data: f });
|
|
4210
4213
|
}).catch((f) => {
|
|
4211
4214
|
n({ type: "error", error: f });
|
|
@@ -4221,21 +4224,21 @@ const Zo = (e) => {
|
|
|
4221
4224
|
);
|
|
4222
4225
|
const i = D(t.value);
|
|
4223
4226
|
return D(
|
|
4224
|
-
|
|
4227
|
+
er(i)
|
|
4225
4228
|
);
|
|
4226
|
-
},
|
|
4229
|
+
}, yu = (e) => {
|
|
4227
4230
|
R("useGetWidgetModel");
|
|
4228
|
-
const [t, n] =
|
|
4231
|
+
const [t, n] = V(ee, {
|
|
4229
4232
|
isLoading: !0,
|
|
4230
4233
|
isError: !1,
|
|
4231
4234
|
isSuccess: !1,
|
|
4232
4235
|
status: "loading",
|
|
4233
4236
|
error: void 0,
|
|
4234
4237
|
data: void 0
|
|
4235
|
-
}), r =
|
|
4238
|
+
}), r = B(), s = async (i) => {
|
|
4236
4239
|
try {
|
|
4237
4240
|
n({ type: "loading" });
|
|
4238
|
-
const { dashboardOid: a, widgetOid: o } = S(e), u = await
|
|
4241
|
+
const { dashboardOid: a, widgetOid: o } = S(e), u = await rr(i.httpClient, a, o);
|
|
4239
4242
|
n({ type: "success", data: u });
|
|
4240
4243
|
} catch (a) {
|
|
4241
4244
|
n({ type: "error", error: a });
|
|
@@ -4249,19 +4252,19 @@ const Zo = (e) => {
|
|
|
4249
4252
|
},
|
|
4250
4253
|
{ immediate: !0 }
|
|
4251
4254
|
), D(t.value);
|
|
4252
|
-
},
|
|
4255
|
+
}, bu = (e) => {
|
|
4253
4256
|
R("useGetHierarchyModels");
|
|
4254
|
-
const [t, n] =
|
|
4257
|
+
const [t, n] = V(ee, {
|
|
4255
4258
|
isLoading: !0,
|
|
4256
4259
|
isError: !1,
|
|
4257
4260
|
isSuccess: !1,
|
|
4258
4261
|
status: "loading",
|
|
4259
4262
|
error: void 0,
|
|
4260
4263
|
data: void 0
|
|
4261
|
-
}), r =
|
|
4264
|
+
}), r = B(), s = async (i) => {
|
|
4262
4265
|
try {
|
|
4263
4266
|
n({ type: "loading" });
|
|
4264
|
-
const a = await
|
|
4267
|
+
const a = await sr(i.httpClient, S(e));
|
|
4265
4268
|
n({ type: "success", data: a });
|
|
4266
4269
|
} catch (a) {
|
|
4267
4270
|
n({ type: "error", error: a });
|
|
@@ -4275,18 +4278,18 @@ const Zo = (e) => {
|
|
|
4275
4278
|
},
|
|
4276
4279
|
{ immediate: !0 }
|
|
4277
4280
|
), D(t.value);
|
|
4278
|
-
},
|
|
4279
|
-
const [r, s] =
|
|
4281
|
+
}, Su = (e, t, n) => {
|
|
4282
|
+
const [r, s] = V(ee, {
|
|
4280
4283
|
isLoading: !0,
|
|
4281
4284
|
isError: !1,
|
|
4282
4285
|
isSuccess: !1,
|
|
4283
4286
|
status: "loading",
|
|
4284
4287
|
error: void 0,
|
|
4285
4288
|
data: void 0
|
|
4286
|
-
}), i =
|
|
4289
|
+
}), i = B(), a = async (o) => {
|
|
4287
4290
|
try {
|
|
4288
4291
|
s({ type: "loading" });
|
|
4289
|
-
const u =
|
|
4292
|
+
const u = Ye(e), c = t ? S(t) : {}, d = n ? S(n) : {}, f = {
|
|
4290
4293
|
requestConfig: d.requestConfig ? S(d.requestConfig) : {},
|
|
4291
4294
|
skipTrackingParam: !0
|
|
4292
4295
|
}, l = await o.call(
|
|
@@ -4308,20 +4311,56 @@ const Zo = (e) => {
|
|
|
4308
4311
|
{ immediate: !0 }
|
|
4309
4312
|
), D(r.value);
|
|
4310
4313
|
};
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4314
|
+
class uo {
|
|
4315
|
+
constructor(t, n) {
|
|
4316
|
+
ue(this, "app", null);
|
|
4317
|
+
ue(this, "container", null);
|
|
4318
|
+
ue(this, "isDestroyed", !1);
|
|
4319
|
+
ue(this, "propsRef", null);
|
|
4320
|
+
this.componentClass = t, this.contexts = n;
|
|
4321
|
+
}
|
|
4322
|
+
/**
|
|
4323
|
+
* Mounts the Vue component into the container element.
|
|
4324
|
+
* This should only be called once when the Preact wrapper mounts.
|
|
4325
|
+
*
|
|
4326
|
+
* @param container - The DOM element to mount the Vue component into
|
|
4327
|
+
* @param props - Initial props to pass to the component
|
|
4328
|
+
*/
|
|
4329
|
+
mount(t, n) {
|
|
4330
|
+
if (this.app || this.isDestroyed)
|
|
4331
|
+
return;
|
|
4332
|
+
this.container = t, this.propsRef = _(n);
|
|
4333
|
+
const r = {
|
|
4334
|
+
setup: () => () => Lr(this.componentClass, this.propsRef.value)
|
|
4335
|
+
};
|
|
4336
|
+
this.app = Ar(r), this.app.provide(ir, this.contexts.sisenseContext), this.app.provide(ar, this.contexts.themeContext), this.app.provide(or, this.contexts.customWidgetsContext), this.app.mount(t);
|
|
4337
|
+
}
|
|
4338
|
+
/**
|
|
4339
|
+
* Updates the props on the existing Vue component instance.
|
|
4340
|
+
* This triggers Vue's reactivity system to re-render the component
|
|
4341
|
+
* without destroying and recreating it.
|
|
4342
|
+
*
|
|
4343
|
+
* @param props - New props to apply to the component
|
|
4344
|
+
*/
|
|
4345
|
+
update(t) {
|
|
4346
|
+
!this.propsRef || this.isDestroyed || (this.propsRef.value = t);
|
|
4347
|
+
}
|
|
4348
|
+
/**
|
|
4349
|
+
* Destroys the Vue component and cleans up resources.
|
|
4350
|
+
* This should be called when the Preact wrapper unmounts.
|
|
4351
|
+
*/
|
|
4352
|
+
destroy() {
|
|
4353
|
+
this.isDestroyed || (this.isDestroyed = !0, this.app && (this.app.unmount(), this.app = null), this.container = null, this.propsRef = null);
|
|
4354
|
+
}
|
|
4355
|
+
/**
|
|
4356
|
+
* Returns whether the adapter has an active component instance.
|
|
4357
|
+
*/
|
|
4358
|
+
isActive() {
|
|
4359
|
+
return this.app !== null && !this.isDestroyed;
|
|
4360
|
+
}
|
|
4322
4361
|
}
|
|
4323
|
-
const
|
|
4324
|
-
const e =
|
|
4362
|
+
const Ou = () => {
|
|
4363
|
+
const e = ur(), t = B(), n = lr(), r = e;
|
|
4325
4364
|
return {
|
|
4326
4365
|
/**
|
|
4327
4366
|
* Registers a new custom widget.
|
|
@@ -4329,17 +4368,18 @@ const cu = () => {
|
|
|
4329
4368
|
* @param customWidgetType - The unique identifier for the custom widget type.
|
|
4330
4369
|
* @param customWidget - The custom widget component to register.
|
|
4331
4370
|
*/
|
|
4332
|
-
registerCustomWidget: (
|
|
4333
|
-
const
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4371
|
+
registerCustomWidget: (s, i) => {
|
|
4372
|
+
const a = {
|
|
4373
|
+
sisenseContext: t,
|
|
4374
|
+
themeContext: n,
|
|
4375
|
+
customWidgetsContext: r
|
|
4376
|
+
}, o = () => new uo(i, a), u = (c) => cr(dr, {
|
|
4377
|
+
adapterFactory: o,
|
|
4378
|
+
componentProps: c
|
|
4379
|
+
});
|
|
4380
|
+
e.value.customWidgetsMap.has(s) || e.value.customWidgetsMap.set(
|
|
4381
|
+
s,
|
|
4382
|
+
u
|
|
4343
4383
|
);
|
|
4344
4384
|
},
|
|
4345
4385
|
/**
|
|
@@ -4348,13 +4388,13 @@ const cu = () => {
|
|
|
4348
4388
|
* @param customWidgetType - The type of the custom widget.
|
|
4349
4389
|
* @returns True if the custom widget is registered, false otherwise.
|
|
4350
4390
|
*/
|
|
4351
|
-
hasCustomWidget: (
|
|
4391
|
+
hasCustomWidget: (s) => e.value.customWidgetsMap.has(s)
|
|
4352
4392
|
};
|
|
4353
|
-
},
|
|
4393
|
+
}, vu = (e, t = {}) => {
|
|
4354
4394
|
R("useComposedDashboard");
|
|
4355
|
-
const n = new Z(
|
|
4395
|
+
const n = new Z(fr, [
|
|
4356
4396
|
X()
|
|
4357
|
-
]), [r, s] =
|
|
4397
|
+
]), [r, s] = pe(S(e));
|
|
4358
4398
|
n.subscribe(({ dashboard: o }) => {
|
|
4359
4399
|
s(o);
|
|
4360
4400
|
}), n.run(S(e), t), L([...A(e)], () => {
|
|
@@ -4362,23 +4402,23 @@ const cu = () => {
|
|
|
4362
4402
|
}), ne(() => {
|
|
4363
4403
|
n.destroy();
|
|
4364
4404
|
});
|
|
4365
|
-
const i =
|
|
4405
|
+
const i = ot(n, "setFilters"), a = ot(n, "setWidgetsLayout");
|
|
4366
4406
|
return {
|
|
4367
4407
|
dashboard: r,
|
|
4368
4408
|
setFilters: i,
|
|
4369
4409
|
setWidgetsLayout: a
|
|
4370
4410
|
};
|
|
4371
|
-
},
|
|
4411
|
+
}, xu = (e, t) => {
|
|
4372
4412
|
R("useJtdWidget");
|
|
4373
|
-
const n = new Z(
|
|
4413
|
+
const n = new Z(pr, [
|
|
4374
4414
|
X(),
|
|
4375
|
-
|
|
4376
|
-
]), r =
|
|
4415
|
+
gr()
|
|
4416
|
+
]), r = _(null);
|
|
4377
4417
|
n.subscribe((i) => {
|
|
4378
4418
|
r.value = i;
|
|
4379
4419
|
});
|
|
4380
4420
|
const s = () => {
|
|
4381
|
-
const i =
|
|
4421
|
+
const i = Er(e), a = S(t);
|
|
4382
4422
|
n.run(i, a);
|
|
4383
4423
|
};
|
|
4384
4424
|
return s(), L([...A(e), ...A(t)], () => {
|
|
@@ -4386,7 +4426,7 @@ const cu = () => {
|
|
|
4386
4426
|
}), ne(() => {
|
|
4387
4427
|
n.destroy();
|
|
4388
4428
|
}), r;
|
|
4389
|
-
},
|
|
4429
|
+
}, lo = m({
|
|
4390
4430
|
props: {
|
|
4391
4431
|
/**
|
|
4392
4432
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
@@ -4404,8 +4444,8 @@ const cu = () => {
|
|
|
4404
4444
|
*/
|
|
4405
4445
|
position: Object
|
|
4406
4446
|
},
|
|
4407
|
-
setup: (e, { slots: t }) =>
|
|
4408
|
-
}),
|
|
4447
|
+
setup: (e, { slots: t }) => _t(hr, e, t, [])
|
|
4448
|
+
}), co = ({
|
|
4409
4449
|
drilldownPaths: e,
|
|
4410
4450
|
initialDimension: t
|
|
4411
4451
|
}) => {
|
|
@@ -4413,24 +4453,24 @@ const cu = () => {
|
|
|
4413
4453
|
throw new Error(
|
|
4414
4454
|
"Initial dimension has to be specified to use drilldown with custom components"
|
|
4415
4455
|
);
|
|
4416
|
-
const n =
|
|
4417
|
-
|
|
4456
|
+
const n = _([]), r = _(), s = _([]), i = _([]), a = Ve(() => [
|
|
4457
|
+
mr(t),
|
|
4418
4458
|
...n.value.map(({ nextDimension: l }) => l)
|
|
4419
|
-
]), o =
|
|
4459
|
+
]), o = Ve(
|
|
4420
4460
|
() => e.value.filter((l) => {
|
|
4421
4461
|
if (O.isAttribute(l)) {
|
|
4422
4462
|
const y = l;
|
|
4423
4463
|
return a.value.every(
|
|
4424
|
-
(h) => !
|
|
4464
|
+
(h) => !ut(h, y)
|
|
4425
4465
|
);
|
|
4426
4466
|
}
|
|
4427
4467
|
const p = l;
|
|
4428
4468
|
return a.value.every(
|
|
4429
|
-
(y, h) =>
|
|
4469
|
+
(y, h) => ut(y, p.levels[h])
|
|
4430
4470
|
);
|
|
4431
4471
|
})
|
|
4432
4472
|
), u = (l, g, p) => {
|
|
4433
|
-
n.value =
|
|
4473
|
+
n.value = yr(
|
|
4434
4474
|
n.value,
|
|
4435
4475
|
l,
|
|
4436
4476
|
g,
|
|
@@ -4441,7 +4481,7 @@ const cu = () => {
|
|
|
4441
4481
|
}, d = () => {
|
|
4442
4482
|
n.value = [], f();
|
|
4443
4483
|
}, f = () => {
|
|
4444
|
-
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g =
|
|
4484
|
+
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g = br(
|
|
4445
4485
|
n.value,
|
|
4446
4486
|
t,
|
|
4447
4487
|
l
|
|
@@ -4458,7 +4498,7 @@ const cu = () => {
|
|
|
4458
4498
|
sliceDrilldownSelections: c,
|
|
4459
4499
|
clearDrilldownSelections: d
|
|
4460
4500
|
};
|
|
4461
|
-
},
|
|
4501
|
+
}, fo = m({
|
|
4462
4502
|
props: {
|
|
4463
4503
|
/**
|
|
4464
4504
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
|
@@ -4494,11 +4534,11 @@ const cu = () => {
|
|
|
4494
4534
|
},
|
|
4495
4535
|
setup: () => {
|
|
4496
4536
|
}
|
|
4497
|
-
}),
|
|
4537
|
+
}), po = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, go = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, Cu = /* @__PURE__ */ m({
|
|
4498
4538
|
__name: "drilldown-widget",
|
|
4499
|
-
props:
|
|
4539
|
+
props: fo.props,
|
|
4500
4540
|
setup(e) {
|
|
4501
|
-
const t = e, { drilldownPaths: n, initialDimension: r, config: s } = D(t), i =
|
|
4541
|
+
const t = e, { drilldownPaths: n, initialDimension: r, config: s } = D(t), i = _(null), a = _([]), {
|
|
4502
4542
|
drilldownFilters: o,
|
|
4503
4543
|
// computed
|
|
4504
4544
|
drilldownDimension: u,
|
|
@@ -4510,16 +4550,16 @@ const cu = () => {
|
|
|
4510
4550
|
selectDrilldown: f,
|
|
4511
4551
|
sliceDrilldownSelections: l,
|
|
4512
4552
|
clearDrilldownSelections: g
|
|
4513
|
-
} =
|
|
4553
|
+
} = co({
|
|
4514
4554
|
drilldownPaths: n,
|
|
4515
4555
|
initialDimension: r.value
|
|
4516
4556
|
}), p = (P) => {
|
|
4517
4557
|
f(a.value, P);
|
|
4518
|
-
}, y =
|
|
4558
|
+
}, y = Ve(() => {
|
|
4519
4559
|
const P = (C) => C === "drilldown.drillMenuItem" ? "Drill" : C;
|
|
4520
4560
|
return [
|
|
4521
|
-
|
|
4522
|
-
|
|
4561
|
+
Sr(a.value, u.value),
|
|
4562
|
+
Or(
|
|
4523
4563
|
d.value,
|
|
4524
4564
|
u.value,
|
|
4525
4565
|
p,
|
|
@@ -4533,17 +4573,17 @@ const cu = () => {
|
|
|
4533
4573
|
}, w = () => {
|
|
4534
4574
|
i.value = null;
|
|
4535
4575
|
};
|
|
4536
|
-
return (P, C) => (
|
|
4537
|
-
|
|
4576
|
+
return (P, C) => (Nr(), Rr("div", po, [
|
|
4577
|
+
Te(P.$slots, "contextMenu", {
|
|
4538
4578
|
contextMenuProps: { position: i.value, itemSections: y.value, closeContextMenu: w }
|
|
4539
4579
|
}, () => [
|
|
4540
|
-
|
|
4580
|
+
lt(T(lo), {
|
|
4541
4581
|
position: i.value,
|
|
4542
4582
|
itemSections: y.value,
|
|
4543
4583
|
closeContextMenu: w
|
|
4544
4584
|
}, null, 8, ["position", "itemSections"])
|
|
4545
4585
|
]),
|
|
4546
|
-
|
|
4586
|
+
Te(P.$slots, "breadcrumbs", {
|
|
4547
4587
|
drilldownBreadcrumbsProps: {
|
|
4548
4588
|
clearDrilldownSelections: T(g),
|
|
4549
4589
|
sliceDrilldownSelections: T(l),
|
|
@@ -4551,15 +4591,15 @@ const cu = () => {
|
|
|
4551
4591
|
drilldownDimension: T(u)
|
|
4552
4592
|
}
|
|
4553
4593
|
}, () => [
|
|
4554
|
-
|
|
4594
|
+
lt(T(Mr), {
|
|
4555
4595
|
"clear-drilldown-selections": T(g),
|
|
4556
4596
|
"slice-drilldown-selections": T(l),
|
|
4557
4597
|
"filters-display-values": T(c),
|
|
4558
4598
|
"current-dimension": T(u)
|
|
4559
4599
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
|
4560
4600
|
]),
|
|
4561
|
-
|
|
4562
|
-
|
|
4601
|
+
Tr("div", go, [
|
|
4602
|
+
Te(P.$slots, "chart", {
|
|
4563
4603
|
drilldownFilters: T(o),
|
|
4564
4604
|
drilldownDimension: T(u),
|
|
4565
4605
|
onDataPointsSelected: x,
|
|
@@ -4568,7 +4608,7 @@ const cu = () => {
|
|
|
4568
4608
|
])
|
|
4569
4609
|
]));
|
|
4570
4610
|
}
|
|
4571
|
-
}),
|
|
4611
|
+
}), wu = m({
|
|
4572
4612
|
props: {
|
|
4573
4613
|
/**
|
|
4574
4614
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
|
@@ -4586,13 +4626,6 @@ const cu = () => {
|
|
|
4586
4626
|
type: String,
|
|
4587
4627
|
required: !0
|
|
4588
4628
|
},
|
|
4589
|
-
/**
|
|
4590
|
-
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.contextMenuItems}
|
|
4591
|
-
*
|
|
4592
|
-
* @category Widget
|
|
4593
|
-
* @internal
|
|
4594
|
-
*/
|
|
4595
|
-
contextMenuItems: Array,
|
|
4596
4629
|
/**
|
|
4597
4630
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.dataOptions}
|
|
4598
4631
|
*
|
|
@@ -4645,13 +4678,6 @@ const cu = () => {
|
|
|
4645
4678
|
* @category Callbacks
|
|
4646
4679
|
*/
|
|
4647
4680
|
onBeforeRender: Function,
|
|
4648
|
-
/**
|
|
4649
|
-
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataPointContextMenuClose}
|
|
4650
|
-
*
|
|
4651
|
-
* @category Callbacks
|
|
4652
|
-
* @internal
|
|
4653
|
-
*/
|
|
4654
|
-
onContextMenuClose: Function,
|
|
4655
4681
|
/**
|
|
4656
4682
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataPointClick}
|
|
4657
4683
|
*
|
|
@@ -4703,13 +4729,11 @@ const cu = () => {
|
|
|
4703
4729
|
*/
|
|
4704
4730
|
onDataReady: Function
|
|
4705
4731
|
},
|
|
4706
|
-
setup: (e) => b(
|
|
4707
|
-
}),
|
|
4732
|
+
setup: (e) => b(vr, e)
|
|
4733
|
+
}), Pu = m({
|
|
4708
4734
|
props: {
|
|
4709
4735
|
/** @internal */
|
|
4710
4736
|
bottomSlot: Object,
|
|
4711
|
-
/** @internal */
|
|
4712
|
-
contextMenuItems: Array,
|
|
4713
4737
|
/**
|
|
4714
4738
|
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.dashboardOid}
|
|
4715
4739
|
*
|
|
@@ -4763,8 +4787,6 @@ const cu = () => {
|
|
|
4763
4787
|
* @category Callbacks
|
|
4764
4788
|
*/
|
|
4765
4789
|
onBeforeRender: Function,
|
|
4766
|
-
/** @internal */
|
|
4767
|
-
onContextMenuClose: Function,
|
|
4768
4790
|
/**
|
|
4769
4791
|
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.onDataPointClick}
|
|
4770
4792
|
*
|
|
@@ -4815,8 +4837,8 @@ const cu = () => {
|
|
|
4815
4837
|
*/
|
|
4816
4838
|
onDataReady: Function
|
|
4817
4839
|
},
|
|
4818
|
-
setup: (e) => b(
|
|
4819
|
-
}),
|
|
4840
|
+
setup: (e) => b(xr, e)
|
|
4841
|
+
}), Du = m({
|
|
4820
4842
|
props: {
|
|
4821
4843
|
bottomSlot: Object,
|
|
4822
4844
|
dataOptions: {
|
|
@@ -4831,8 +4853,8 @@ const cu = () => {
|
|
|
4831
4853
|
topSlot: Object,
|
|
4832
4854
|
widgetStyleOptions: Object
|
|
4833
4855
|
},
|
|
4834
|
-
setup: (e) => b(
|
|
4835
|
-
}),
|
|
4856
|
+
setup: (e) => b(Cr, e)
|
|
4857
|
+
}), ju = m({
|
|
4836
4858
|
props: {
|
|
4837
4859
|
/**
|
|
4838
4860
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.dataOptions}
|
|
@@ -4926,8 +4948,8 @@ const cu = () => {
|
|
|
4926
4948
|
*/
|
|
4927
4949
|
onHeaderCellFormat: Function
|
|
4928
4950
|
},
|
|
4929
|
-
setup: (e) => b(
|
|
4930
|
-
}),
|
|
4951
|
+
setup: (e) => b(wr, e)
|
|
4952
|
+
}), Fu = m({
|
|
4931
4953
|
props: {
|
|
4932
4954
|
/**
|
|
4933
4955
|
* Unique identifier of the widget
|
|
@@ -5052,8 +5074,8 @@ const cu = () => {
|
|
|
5052
5074
|
*/
|
|
5053
5075
|
onDataPointsSelected: Function
|
|
5054
5076
|
},
|
|
5055
|
-
setup: (e) => b(
|
|
5056
|
-
}),
|
|
5077
|
+
setup: (e) => b(Pr, e)
|
|
5078
|
+
}), Au = m({
|
|
5057
5079
|
props: {
|
|
5058
5080
|
/**
|
|
5059
5081
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
|
@@ -5067,8 +5089,8 @@ const cu = () => {
|
|
|
5067
5089
|
*/
|
|
5068
5090
|
config: Object
|
|
5069
5091
|
},
|
|
5070
|
-
setup: (e) => b(
|
|
5071
|
-
}),
|
|
5092
|
+
setup: (e) => b(Dr, e)
|
|
5093
|
+
}), Lu = m({
|
|
5072
5094
|
props: {
|
|
5073
5095
|
/**
|
|
5074
5096
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
|
@@ -5106,118 +5128,118 @@ const cu = () => {
|
|
|
5106
5128
|
*/
|
|
5107
5129
|
styleOptions: Object
|
|
5108
5130
|
},
|
|
5109
|
-
setup: (e) => b(
|
|
5131
|
+
setup: (e) => b(jr, e)
|
|
5110
5132
|
});
|
|
5111
|
-
function
|
|
5112
|
-
return
|
|
5133
|
+
function ho(e) {
|
|
5134
|
+
return Fr.toDashboardProps(e);
|
|
5113
5135
|
}
|
|
5114
|
-
const
|
|
5136
|
+
const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5115
5137
|
__proto__: null,
|
|
5116
|
-
toDashboardProps:
|
|
5117
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5138
|
+
toDashboardProps: ho
|
|
5139
|
+
}, Symbol.toStringTag, { value: "Module" })), mo = (e, t) => te.replaceFilters(e, t), yo = (e, t) => te.addFilter(e, t), bo = (e, t) => te.addFilters(e, t), So = (e, t, n) => te.replaceFilter(
|
|
5118
5140
|
e,
|
|
5119
5141
|
t,
|
|
5120
5142
|
n
|
|
5121
|
-
),
|
|
5143
|
+
), Oo = (e, t) => te.removeFilter(e, t), vo = (e, t) => te.removeFilters(e, t), Nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5122
5144
|
__proto__: null,
|
|
5123
|
-
addFilter:
|
|
5124
|
-
addFilters:
|
|
5125
|
-
removeFilter:
|
|
5126
|
-
removeFilters:
|
|
5127
|
-
replaceFilter:
|
|
5128
|
-
replaceFilters:
|
|
5129
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5130
|
-
function
|
|
5131
|
-
return
|
|
5145
|
+
addFilter: yo,
|
|
5146
|
+
addFilters: bo,
|
|
5147
|
+
removeFilter: Oo,
|
|
5148
|
+
removeFilters: vo,
|
|
5149
|
+
replaceFilter: So,
|
|
5150
|
+
replaceFilters: mo
|
|
5151
|
+
}, Symbol.toStringTag, { value: "Module" })), xo = (e) => U.toExecuteQueryParams(e), Co = (e) => U.toExecutePivotQueryParams(e);
|
|
5152
|
+
function wo(e) {
|
|
5153
|
+
return U.toChartProps(e);
|
|
5132
5154
|
}
|
|
5133
|
-
function
|
|
5134
|
-
return
|
|
5155
|
+
function Po(e) {
|
|
5156
|
+
return U.toTableProps(e);
|
|
5135
5157
|
}
|
|
5136
|
-
function
|
|
5137
|
-
return
|
|
5158
|
+
function Do(e) {
|
|
5159
|
+
return U.toPivotTableProps(e);
|
|
5138
5160
|
}
|
|
5139
|
-
function
|
|
5140
|
-
return
|
|
5161
|
+
function jo(e) {
|
|
5162
|
+
return U.toChartWidgetProps(e);
|
|
5141
5163
|
}
|
|
5142
|
-
function
|
|
5143
|
-
return
|
|
5164
|
+
function Fo(e) {
|
|
5165
|
+
return U.toPivotTableWidgetProps(e);
|
|
5144
5166
|
}
|
|
5145
|
-
function
|
|
5146
|
-
return
|
|
5167
|
+
function Ao(e) {
|
|
5168
|
+
return U.toTextWidgetProps(e);
|
|
5147
5169
|
}
|
|
5148
|
-
function
|
|
5149
|
-
return
|
|
5170
|
+
function Lo(e) {
|
|
5171
|
+
return U.toWidgetProps(e);
|
|
5150
5172
|
}
|
|
5151
|
-
const
|
|
5173
|
+
const Ru = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5152
5174
|
__proto__: null,
|
|
5153
|
-
toChartProps:
|
|
5154
|
-
toChartWidgetProps:
|
|
5155
|
-
toExecutePivotQueryParams:
|
|
5156
|
-
toExecuteQueryParams:
|
|
5157
|
-
toPivotTableProps:
|
|
5158
|
-
toPivotTableWidgetProps:
|
|
5159
|
-
toTableProps:
|
|
5160
|
-
toTextWidgetProps:
|
|
5161
|
-
toWidgetProps:
|
|
5175
|
+
toChartProps: wo,
|
|
5176
|
+
toChartWidgetProps: jo,
|
|
5177
|
+
toExecutePivotQueryParams: Co,
|
|
5178
|
+
toExecuteQueryParams: xo,
|
|
5179
|
+
toPivotTableProps: Do,
|
|
5180
|
+
toPivotTableWidgetProps: Fo,
|
|
5181
|
+
toTableProps: Po,
|
|
5182
|
+
toTextWidgetProps: Ao,
|
|
5183
|
+
toWidgetProps: Lo
|
|
5162
5184
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5163
5185
|
export {
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5186
|
+
$o as AreaChart,
|
|
5187
|
+
tu as AreaRangeChart,
|
|
5188
|
+
Zo as AreamapChart,
|
|
5189
|
+
Io as BarChart,
|
|
5190
|
+
Yo as BoxplotChart,
|
|
5191
|
+
_o as CalendarHeatmapChart,
|
|
5192
|
+
Qo as Chart,
|
|
5193
|
+
wu as ChartWidget,
|
|
5194
|
+
ko as ColumnChart,
|
|
5195
|
+
lo as ContextMenu,
|
|
5196
|
+
su as CriteriaFilterTile,
|
|
5197
|
+
$u as CustomWidgetsProvider,
|
|
5198
|
+
Lu as Dashboard,
|
|
5199
|
+
Au as DashboardById,
|
|
5200
|
+
nu as DateRangeFilterTile,
|
|
5201
|
+
Mr as DrilldownBreadcrumbs,
|
|
5202
|
+
Cu as DrilldownWidget,
|
|
5203
|
+
au as FilterTile,
|
|
5204
|
+
ou as FiltersPanel,
|
|
5205
|
+
Bo as FunnelChart,
|
|
5206
|
+
Jo as IndicatorChart,
|
|
5207
|
+
Uo as LineChart,
|
|
5208
|
+
ru as MemberFilterTile,
|
|
5209
|
+
qo as PieChart,
|
|
5210
|
+
Ho as PivotTable,
|
|
5211
|
+
ju as PivotTableWidget,
|
|
5212
|
+
Go as PolarChart,
|
|
5213
|
+
iu as RelativeDateFilterTile,
|
|
5214
|
+
Wo as ScatterChart,
|
|
5215
|
+
Xo as ScattermapChart,
|
|
5216
|
+
Iu as SisenseContextProvider,
|
|
5217
|
+
eu as StreamgraphChart,
|
|
5218
|
+
zo as SunburstChart,
|
|
5219
|
+
Vo as Table,
|
|
5220
|
+
Du as TableWidget,
|
|
5221
|
+
_u as ThemeProvider,
|
|
5222
|
+
Ko as TreemapChart,
|
|
5223
|
+
Fu as Widget,
|
|
5224
|
+
Pu as WidgetById,
|
|
5225
|
+
ku as boxWhiskerProcessResult,
|
|
5226
|
+
Nu as dashboardHelpers,
|
|
5227
|
+
Eu as dashboardModelTranslator,
|
|
5228
|
+
Bu as extractDimensionsAndMeasures,
|
|
5229
|
+
vu as useComposedDashboard,
|
|
5230
|
+
Ou as useCustomWidgets,
|
|
5231
|
+
cu as useExecuteCsvQuery,
|
|
5232
|
+
fu as useExecuteCustomWidgetQuery,
|
|
5233
|
+
du as useExecutePivotQuery,
|
|
5234
|
+
uu as useExecuteQuery,
|
|
5235
|
+
lu as useExecuteQueryByWidgetId,
|
|
5236
|
+
Su as useFetch,
|
|
5237
|
+
gu as useGetDashboardModel,
|
|
5238
|
+
hu as useGetDashboardModels,
|
|
5239
|
+
pu as useGetFilterMembers,
|
|
5240
|
+
bu as useGetHierarchyModels,
|
|
5241
|
+
mu as useGetSharedFormula,
|
|
5242
|
+
yu as useGetWidgetModel,
|
|
5243
|
+
xu as useJtdWidget,
|
|
5244
|
+
Ru as widgetModelTranslator
|
|
5223
5245
|
};
|