@sisense/sdk-ui-vue 2.19.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 +91 -84
- package/dist/ai.js +1054 -1003
- package/dist/index-Ck90GjPy-96e79d43-84fb39da.cjs +1 -0
- package/dist/index-Ck90GjPy-96e79d43-96e79d43.js +397 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +797 -776
- 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/packages/sdk-ui-vue/src/translation/__external__/de-de.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/en-us.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/es-ar.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/es-es.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/fr-fr.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/it-it.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/ja-jp.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/ko-kr.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/nl-nl.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/pt-br.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/ru-ru.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/tr-tr.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/translation/__external__/zh-cn.d.ts +1 -0
- package/dist/translations/de-de.cjs +1 -0
- package/dist/translations/de-de.d.ts +1 -0
- package/dist/translations/de-de.js +397 -0
- package/dist/translations/en-us.cjs +1 -0
- package/dist/translations/en-us.d.ts +1 -0
- package/dist/translations/en-us.js +9 -0
- package/dist/translations/es-ar.cjs +1 -0
- package/dist/translations/es-ar.d.ts +1 -0
- package/dist/translations/es-ar.js +397 -0
- package/dist/translations/es-es.cjs +1 -0
- package/dist/translations/es-es.d.ts +1 -0
- package/dist/translations/es-es.js +397 -0
- package/dist/translations/fr-fr.cjs +1 -0
- package/dist/translations/fr-fr.d.ts +1 -0
- package/dist/translations/fr-fr.js +397 -0
- package/dist/translations/it-it.cjs +1 -0
- package/dist/translations/it-it.d.ts +1 -0
- package/dist/translations/it-it.js +397 -0
- package/dist/translations/ja-jp.cjs +1 -0
- package/dist/translations/ja-jp.d.ts +1 -0
- package/dist/translations/ja-jp.js +397 -0
- package/dist/translations/ko-kr.cjs +1 -0
- package/dist/translations/ko-kr.d.ts +1 -0
- package/dist/translations/ko-kr.js +397 -0
- package/dist/translations/nl-nl.cjs +1 -0
- package/dist/translations/nl-nl.d.ts +1 -0
- package/dist/translations/nl-nl.js +397 -0
- package/dist/translations/pt-br.cjs +1 -0
- package/dist/translations/pt-br.d.ts +1 -0
- package/dist/translations/pt-br.js +397 -0
- package/dist/translations/ru-ru.cjs +1 -0
- package/dist/translations/ru-ru.d.ts +1 -0
- package/dist/translations/ru-ru.js +397 -0
- package/dist/translations/tr-tr.cjs +1 -0
- package/dist/translations/tr-tr.d.ts +1 -0
- package/dist/translations/tr-tr.js +397 -0
- package/dist/translations/zh-cn.cjs +1 -0
- package/dist/translations/zh-cn.d.ts +1 -0
- package/dist/translations/zh-cn.js +397 -0
- package/dist/{use-tracking-69c1d4a3.js → use-tracking-4a4b3434.js} +64182 -64543
- package/dist/{use-tracking-4ca04288.cjs → use-tracking-801c9eeb.cjs} +741 -676
- package/package.json +22 -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,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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";
|
|
7
|
+
import "./index-Ck90GjPy-96e79d43-96e79d43.js";
|
|
8
|
+
const Mr = m({
|
|
5
9
|
props: {
|
|
6
10
|
/**
|
|
7
11
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
@@ -40,8 +44,8 @@ const Dr = m({
|
|
|
40
44
|
required: !0
|
|
41
45
|
}
|
|
42
46
|
},
|
|
43
|
-
setup: (e, { slots: t }) =>
|
|
44
|
-
}),
|
|
47
|
+
setup: (e, { slots: t }) => _t(fn, e, t, [])
|
|
48
|
+
}), $o = m({
|
|
45
49
|
props: {
|
|
46
50
|
/**
|
|
47
51
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
|
@@ -107,8 +111,8 @@ const Dr = m({
|
|
|
107
111
|
*/
|
|
108
112
|
onDataPointsSelected: Function
|
|
109
113
|
},
|
|
110
|
-
setup: (e) => b(
|
|
111
|
-
}),
|
|
114
|
+
setup: (e) => b(pn, e)
|
|
115
|
+
}), Io = m({
|
|
112
116
|
props: {
|
|
113
117
|
/**
|
|
114
118
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
|
@@ -174,8 +178,8 @@ const Dr = m({
|
|
|
174
178
|
*/
|
|
175
179
|
styleOptions: Object
|
|
176
180
|
},
|
|
177
|
-
setup: (e) => b(
|
|
178
|
-
}),
|
|
181
|
+
setup: (e) => b(gn, e)
|
|
182
|
+
}), _o = m({
|
|
179
183
|
props: {
|
|
180
184
|
/**
|
|
181
185
|
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
|
|
@@ -241,8 +245,8 @@ const Dr = m({
|
|
|
241
245
|
*/
|
|
242
246
|
onDataPointsSelected: Function
|
|
243
247
|
},
|
|
244
|
-
setup: (e) => b(
|
|
245
|
-
}),
|
|
248
|
+
setup: (e) => b(hn, e)
|
|
249
|
+
}), ko = m({
|
|
246
250
|
props: {
|
|
247
251
|
/**
|
|
248
252
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
|
@@ -308,8 +312,8 @@ const Dr = m({
|
|
|
308
312
|
*/
|
|
309
313
|
styleOptions: Object
|
|
310
314
|
},
|
|
311
|
-
setup: (e) => b(
|
|
312
|
-
}),
|
|
315
|
+
setup: (e) => b(mn, e)
|
|
316
|
+
}), Bo = m({
|
|
313
317
|
props: {
|
|
314
318
|
/**
|
|
315
319
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
|
@@ -375,8 +379,8 @@ const Dr = m({
|
|
|
375
379
|
*/
|
|
376
380
|
styleOptions: Object
|
|
377
381
|
},
|
|
378
|
-
setup: (e) => b(
|
|
379
|
-
}),
|
|
382
|
+
setup: (e) => b(yn, e)
|
|
383
|
+
}), Uo = m({
|
|
380
384
|
props: {
|
|
381
385
|
/**
|
|
382
386
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
|
@@ -442,8 +446,8 @@ const Dr = m({
|
|
|
442
446
|
*/
|
|
443
447
|
styleOptions: Object
|
|
444
448
|
},
|
|
445
|
-
setup: (e) => b(
|
|
446
|
-
}),
|
|
449
|
+
setup: (e) => b(bn, e)
|
|
450
|
+
}), qo = m({
|
|
447
451
|
props: {
|
|
448
452
|
/**
|
|
449
453
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
|
@@ -509,8 +513,8 @@ const Dr = m({
|
|
|
509
513
|
*/
|
|
510
514
|
styleOptions: Object
|
|
511
515
|
},
|
|
512
|
-
setup: (e) => b(
|
|
513
|
-
}),
|
|
516
|
+
setup: (e) => b(Sn, e)
|
|
517
|
+
}), Wo = m({
|
|
514
518
|
props: {
|
|
515
519
|
/**
|
|
516
520
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
|
@@ -576,8 +580,8 @@ const Dr = m({
|
|
|
576
580
|
*/
|
|
577
581
|
styleOptions: Object
|
|
578
582
|
},
|
|
579
|
-
setup: (e) => b(
|
|
580
|
-
}),
|
|
583
|
+
setup: (e) => b(On, e)
|
|
584
|
+
}), Vo = m({
|
|
581
585
|
props: {
|
|
582
586
|
/**
|
|
583
587
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
|
@@ -615,8 +619,8 @@ const Dr = m({
|
|
|
615
619
|
*/
|
|
616
620
|
onDataReady: Function
|
|
617
621
|
},
|
|
618
|
-
setup: (e) => b(
|
|
619
|
-
}),
|
|
622
|
+
setup: (e) => b(vn, e)
|
|
623
|
+
}), Ho = m({
|
|
620
624
|
props: {
|
|
621
625
|
/**
|
|
622
626
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
|
@@ -666,8 +670,8 @@ const Dr = m({
|
|
|
666
670
|
*/
|
|
667
671
|
onDataPointContextMenu: Function
|
|
668
672
|
},
|
|
669
|
-
setup: (e) => b(
|
|
670
|
-
}),
|
|
673
|
+
setup: (e) => b(xn, e)
|
|
674
|
+
}), Ko = m({
|
|
671
675
|
props: {
|
|
672
676
|
/**
|
|
673
677
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
|
@@ -733,8 +737,8 @@ const Dr = m({
|
|
|
733
737
|
*/
|
|
734
738
|
styleOptions: Object
|
|
735
739
|
},
|
|
736
|
-
setup: (e) => b(
|
|
737
|
-
}),
|
|
740
|
+
setup: (e) => b(Cn, e)
|
|
741
|
+
}), zo = m({
|
|
738
742
|
props: {
|
|
739
743
|
/**
|
|
740
744
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
@@ -800,8 +804,8 @@ const Dr = m({
|
|
|
800
804
|
*/
|
|
801
805
|
styleOptions: Object
|
|
802
806
|
},
|
|
803
|
-
setup: (e) => b(
|
|
804
|
-
}),
|
|
807
|
+
setup: (e) => b(wn, e)
|
|
808
|
+
}), Go = m({
|
|
805
809
|
props: {
|
|
806
810
|
/**
|
|
807
811
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
|
@@ -867,8 +871,8 @@ const Dr = m({
|
|
|
867
871
|
*/
|
|
868
872
|
styleOptions: Object
|
|
869
873
|
},
|
|
870
|
-
setup: (e) => b(
|
|
871
|
-
}),
|
|
874
|
+
setup: (e) => b(Pn, e)
|
|
875
|
+
}), Jo = m({
|
|
872
876
|
props: {
|
|
873
877
|
/**
|
|
874
878
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
|
@@ -916,8 +920,8 @@ const Dr = m({
|
|
|
916
920
|
*/
|
|
917
921
|
onDataReady: Function
|
|
918
922
|
},
|
|
919
|
-
setup: (e) => b(
|
|
920
|
-
}),
|
|
923
|
+
setup: (e) => b(Dn, e)
|
|
924
|
+
}), Qo = m({
|
|
921
925
|
props: {
|
|
922
926
|
/**
|
|
923
927
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
|
@@ -996,8 +1000,8 @@ const Dr = m({
|
|
|
996
1000
|
*/
|
|
997
1001
|
refreshCounter: Number
|
|
998
1002
|
},
|
|
999
|
-
setup: (e) => b(
|
|
1000
|
-
}),
|
|
1003
|
+
setup: (e) => b(jn, e)
|
|
1004
|
+
}), Yo = m({
|
|
1001
1005
|
props: {
|
|
1002
1006
|
/**
|
|
1003
1007
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
|
@@ -1063,8 +1067,8 @@ const Dr = m({
|
|
|
1063
1067
|
*/
|
|
1064
1068
|
onDataPointsSelected: Function
|
|
1065
1069
|
},
|
|
1066
|
-
setup: (e) => b(
|
|
1067
|
-
}),
|
|
1070
|
+
setup: (e) => b(Fn, e)
|
|
1071
|
+
}), Zo = m({
|
|
1068
1072
|
props: {
|
|
1069
1073
|
/**
|
|
1070
1074
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
|
@@ -1112,8 +1116,8 @@ const Dr = m({
|
|
|
1112
1116
|
*/
|
|
1113
1117
|
onDataPointClick: Function
|
|
1114
1118
|
},
|
|
1115
|
-
setup: (e) => b(
|
|
1116
|
-
}),
|
|
1119
|
+
setup: (e) => b(An, e)
|
|
1120
|
+
}), Xo = m({
|
|
1117
1121
|
props: {
|
|
1118
1122
|
/**
|
|
1119
1123
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
|
@@ -1161,8 +1165,8 @@ const Dr = m({
|
|
|
1161
1165
|
*/
|
|
1162
1166
|
onDataPointClick: Object
|
|
1163
1167
|
},
|
|
1164
|
-
setup: (e) => b(
|
|
1165
|
-
}),
|
|
1168
|
+
setup: (e) => b(Ln, e)
|
|
1169
|
+
}), eu = m({
|
|
1166
1170
|
props: {
|
|
1167
1171
|
/**
|
|
1168
1172
|
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
|
|
@@ -1228,8 +1232,8 @@ const Dr = m({
|
|
|
1228
1232
|
*/
|
|
1229
1233
|
onDataPointsSelected: Function
|
|
1230
1234
|
},
|
|
1231
|
-
setup: (e) => b(
|
|
1232
|
-
}),
|
|
1235
|
+
setup: (e) => b(En, e)
|
|
1236
|
+
}), tu = m({
|
|
1233
1237
|
props: {
|
|
1234
1238
|
/**
|
|
1235
1239
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
|
@@ -1295,8 +1299,8 @@ const Dr = m({
|
|
|
1295
1299
|
*/
|
|
1296
1300
|
styleOptions: Object
|
|
1297
1301
|
},
|
|
1298
|
-
setup: (e) => b(
|
|
1299
|
-
}),
|
|
1302
|
+
setup: (e) => b(Nn, e)
|
|
1303
|
+
}), nu = m({
|
|
1300
1304
|
props: {
|
|
1301
1305
|
/**
|
|
1302
1306
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
@@ -1356,8 +1360,8 @@ const Dr = m({
|
|
|
1356
1360
|
*/
|
|
1357
1361
|
onEdit: Function
|
|
1358
1362
|
},
|
|
1359
|
-
setup: (e) => b(
|
|
1360
|
-
}),
|
|
1363
|
+
setup: (e) => b(Rn, e)
|
|
1364
|
+
}), ru = m({
|
|
1361
1365
|
props: {
|
|
1362
1366
|
/**
|
|
1363
1367
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
@@ -1404,8 +1408,8 @@ const Dr = m({
|
|
|
1404
1408
|
*/
|
|
1405
1409
|
onEdit: Function
|
|
1406
1410
|
},
|
|
1407
|
-
setup: (e) => b(
|
|
1408
|
-
}),
|
|
1411
|
+
setup: (e) => b(Tn, e)
|
|
1412
|
+
}), su = m({
|
|
1409
1413
|
props: {
|
|
1410
1414
|
/**
|
|
1411
1415
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
|
@@ -1445,8 +1449,8 @@ const Dr = m({
|
|
|
1445
1449
|
*/
|
|
1446
1450
|
onEdit: Function
|
|
1447
1451
|
},
|
|
1448
|
-
setup: (e) => b(
|
|
1449
|
-
}),
|
|
1452
|
+
setup: (e) => b(Mn, e)
|
|
1453
|
+
}), iu = m({
|
|
1450
1454
|
props: {
|
|
1451
1455
|
/**
|
|
1452
1456
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
|
@@ -1491,8 +1495,8 @@ const Dr = m({
|
|
|
1491
1495
|
*/
|
|
1492
1496
|
onEdit: Function
|
|
1493
1497
|
},
|
|
1494
|
-
setup: (e) => b(
|
|
1495
|
-
}),
|
|
1498
|
+
setup: (e) => b($n, e)
|
|
1499
|
+
}), au = m({
|
|
1496
1500
|
props: {
|
|
1497
1501
|
/**
|
|
1498
1502
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
@@ -1521,8 +1525,8 @@ const Dr = m({
|
|
|
1521
1525
|
*/
|
|
1522
1526
|
onEdit: Function
|
|
1523
1527
|
},
|
|
1524
|
-
setup: (e) => b(
|
|
1525
|
-
}),
|
|
1528
|
+
setup: (e) => b(In, e)
|
|
1529
|
+
}), ou = m({
|
|
1526
1530
|
props: {
|
|
1527
1531
|
/**
|
|
1528
1532
|
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
@@ -1553,8 +1557,8 @@ const Dr = m({
|
|
|
1553
1557
|
required: !0
|
|
1554
1558
|
}
|
|
1555
1559
|
},
|
|
1556
|
-
setup: (e) => b(
|
|
1557
|
-
}),
|
|
1560
|
+
setup: (e) => b(_n, e)
|
|
1561
|
+
}), $r = {
|
|
1558
1562
|
type: "logger",
|
|
1559
1563
|
log(e) {
|
|
1560
1564
|
this.output("log", e);
|
|
@@ -1569,14 +1573,14 @@ const Dr = m({
|
|
|
1569
1573
|
console && console[e] && console[e].apply(console, t);
|
|
1570
1574
|
}
|
|
1571
1575
|
};
|
|
1572
|
-
class
|
|
1576
|
+
class we {
|
|
1573
1577
|
constructor(t) {
|
|
1574
1578
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1575
1579
|
this.init(t, n);
|
|
1576
1580
|
}
|
|
1577
1581
|
init(t) {
|
|
1578
1582
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1579
|
-
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;
|
|
1580
1584
|
}
|
|
1581
1585
|
log() {
|
|
1582
1586
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
@@ -1602,17 +1606,17 @@ class Ce {
|
|
|
1602
1606
|
return s && !this.debug ? null : (typeof t[0] == "string" && (t[0] = `${r}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
1603
1607
|
}
|
|
1604
1608
|
create(t) {
|
|
1605
|
-
return new
|
|
1609
|
+
return new we(this.logger, {
|
|
1606
1610
|
prefix: `${this.prefix}:${t}:`,
|
|
1607
1611
|
...this.options
|
|
1608
1612
|
});
|
|
1609
1613
|
}
|
|
1610
1614
|
clone(t) {
|
|
1611
|
-
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);
|
|
1612
1616
|
}
|
|
1613
1617
|
}
|
|
1614
|
-
var
|
|
1615
|
-
class
|
|
1618
|
+
var k = new we();
|
|
1619
|
+
class Le {
|
|
1616
1620
|
constructor() {
|
|
1617
1621
|
this.observers = {};
|
|
1618
1622
|
}
|
|
@@ -1640,22 +1644,22 @@ class Ae {
|
|
|
1640
1644
|
});
|
|
1641
1645
|
}
|
|
1642
1646
|
}
|
|
1643
|
-
function
|
|
1647
|
+
function le() {
|
|
1644
1648
|
let e, t;
|
|
1645
1649
|
const n = new Promise((r, s) => {
|
|
1646
1650
|
e = r, t = s;
|
|
1647
1651
|
});
|
|
1648
1652
|
return n.resolve = e, n.reject = t, n;
|
|
1649
1653
|
}
|
|
1650
|
-
function
|
|
1654
|
+
function ct(e) {
|
|
1651
1655
|
return e == null ? "" : "" + e;
|
|
1652
1656
|
}
|
|
1653
|
-
function
|
|
1657
|
+
function Ir(e, t, n) {
|
|
1654
1658
|
e.forEach((r) => {
|
|
1655
1659
|
t[r] && (n[r] = t[r]);
|
|
1656
1660
|
});
|
|
1657
1661
|
}
|
|
1658
|
-
function
|
|
1662
|
+
function Ze(e, t, n) {
|
|
1659
1663
|
function r(a) {
|
|
1660
1664
|
return a && a.indexOf("###") > -1 ? a.replace(/###/g, ".") : a;
|
|
1661
1665
|
}
|
|
@@ -1674,41 +1678,41 @@ function Ye(e, t, n) {
|
|
|
1674
1678
|
k: r(i.shift())
|
|
1675
1679
|
};
|
|
1676
1680
|
}
|
|
1677
|
-
function
|
|
1681
|
+
function dt(e, t, n) {
|
|
1678
1682
|
const {
|
|
1679
1683
|
obj: r,
|
|
1680
1684
|
k: s
|
|
1681
|
-
} =
|
|
1685
|
+
} = Ze(e, t, Object);
|
|
1682
1686
|
r[s] = n;
|
|
1683
1687
|
}
|
|
1684
|
-
function
|
|
1688
|
+
function _r(e, t, n, r) {
|
|
1685
1689
|
const {
|
|
1686
1690
|
obj: s,
|
|
1687
1691
|
k: i
|
|
1688
|
-
} =
|
|
1692
|
+
} = Ze(e, t, Object);
|
|
1689
1693
|
s[i] = s[i] || [], r && (s[i] = s[i].concat(n)), r || s[i].push(n);
|
|
1690
1694
|
}
|
|
1691
|
-
function
|
|
1695
|
+
function Pe(e, t) {
|
|
1692
1696
|
const {
|
|
1693
1697
|
obj: n,
|
|
1694
1698
|
k: r
|
|
1695
|
-
} =
|
|
1699
|
+
} = Ze(e, t);
|
|
1696
1700
|
if (n)
|
|
1697
1701
|
return n[r];
|
|
1698
1702
|
}
|
|
1699
|
-
function
|
|
1700
|
-
const r =
|
|
1701
|
-
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);
|
|
1702
1706
|
}
|
|
1703
|
-
function
|
|
1707
|
+
function Ht(e, t, n) {
|
|
1704
1708
|
for (const r in t)
|
|
1705
|
-
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]);
|
|
1706
1710
|
return e;
|
|
1707
1711
|
}
|
|
1708
1712
|
function Q(e) {
|
|
1709
1713
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
1710
1714
|
}
|
|
1711
|
-
var
|
|
1715
|
+
var Br = {
|
|
1712
1716
|
"&": "&",
|
|
1713
1717
|
"<": "<",
|
|
1714
1718
|
">": ">",
|
|
@@ -1716,13 +1720,13 @@ var Lr = {
|
|
|
1716
1720
|
"'": "'",
|
|
1717
1721
|
"/": "/"
|
|
1718
1722
|
};
|
|
1719
|
-
function
|
|
1720
|
-
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) =>
|
|
1723
|
+
function Ur(e) {
|
|
1724
|
+
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Br[t]) : e;
|
|
1721
1725
|
}
|
|
1722
|
-
const
|
|
1723
|
-
function
|
|
1726
|
+
const qr = [" ", ",", "?", "!", ";"];
|
|
1727
|
+
function Wr(e, t, n) {
|
|
1724
1728
|
t = t || "", n = n || "";
|
|
1725
|
-
const r =
|
|
1729
|
+
const r = qr.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
1726
1730
|
if (r.length === 0)
|
|
1727
1731
|
return !0;
|
|
1728
1732
|
const s = new RegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
@@ -1733,7 +1737,7 @@ function Tr(e, t, n) {
|
|
|
1733
1737
|
}
|
|
1734
1738
|
return i;
|
|
1735
1739
|
}
|
|
1736
|
-
function
|
|
1740
|
+
function De(e, t) {
|
|
1737
1741
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
1738
1742
|
if (!e)
|
|
1739
1743
|
return;
|
|
@@ -1759,16 +1763,16 @@ function Pe(e, t) {
|
|
|
1759
1763
|
return u[o];
|
|
1760
1764
|
}
|
|
1761
1765
|
const c = r.slice(i + a).join(n);
|
|
1762
|
-
return c ?
|
|
1766
|
+
return c ? De(u, c, n) : void 0;
|
|
1763
1767
|
}
|
|
1764
1768
|
s = s[r[i]];
|
|
1765
1769
|
}
|
|
1766
1770
|
return s;
|
|
1767
1771
|
}
|
|
1768
|
-
function
|
|
1772
|
+
function je(e) {
|
|
1769
1773
|
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
|
1770
1774
|
}
|
|
1771
|
-
class
|
|
1775
|
+
class ft extends Le {
|
|
1772
1776
|
constructor(t) {
|
|
1773
1777
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
1774
1778
|
ns: ["translation"],
|
|
@@ -1788,8 +1792,8 @@ class dt extends Ae {
|
|
|
1788
1792
|
const i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
1789
1793
|
let o = [t, n];
|
|
1790
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("."));
|
|
1791
|
-
const u =
|
|
1792
|
-
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);
|
|
1793
1797
|
}
|
|
1794
1798
|
addResource(t, n, r, s) {
|
|
1795
1799
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -1797,7 +1801,7 @@ class dt extends Ae {
|
|
|
1797
1801
|
};
|
|
1798
1802
|
const a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
|
|
1799
1803
|
let o = [t, n];
|
|
1800
|
-
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);
|
|
1801
1805
|
}
|
|
1802
1806
|
addResources(t, n, r) {
|
|
1803
1807
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -1814,11 +1818,11 @@ class dt extends Ae {
|
|
|
1814
1818
|
silent: !1
|
|
1815
1819
|
}, o = [t, n];
|
|
1816
1820
|
t.indexOf(".") > -1 && (o = t.split("."), s = r, r = n, n = o[1]), this.addNamespaces(n);
|
|
1817
|
-
let u =
|
|
1818
|
-
s ?
|
|
1821
|
+
let u = Pe(this.data, o) || {};
|
|
1822
|
+
s ? Ht(u, r, i) : u = {
|
|
1819
1823
|
...u,
|
|
1820
1824
|
...r
|
|
1821
|
-
},
|
|
1825
|
+
}, dt(this.data, o, u), a.silent || this.emit("added", t, n, r);
|
|
1822
1826
|
}
|
|
1823
1827
|
removeResourceBundle(t, n) {
|
|
1824
1828
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
|
@@ -1842,7 +1846,7 @@ class dt extends Ae {
|
|
|
1842
1846
|
return this.data;
|
|
1843
1847
|
}
|
|
1844
1848
|
}
|
|
1845
|
-
var
|
|
1849
|
+
var Kt = {
|
|
1846
1850
|
processors: {},
|
|
1847
1851
|
addPostProcessor(e) {
|
|
1848
1852
|
this.processors[e.name] = e;
|
|
@@ -1853,11 +1857,11 @@ var Ht = {
|
|
|
1853
1857
|
}), t;
|
|
1854
1858
|
}
|
|
1855
1859
|
};
|
|
1856
|
-
const
|
|
1857
|
-
class
|
|
1860
|
+
const pt = {};
|
|
1861
|
+
class Fe extends Le {
|
|
1858
1862
|
constructor(t) {
|
|
1859
1863
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1860
|
-
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");
|
|
1861
1865
|
}
|
|
1862
1866
|
changeLanguage(t) {
|
|
1863
1867
|
t && (this.language = t);
|
|
@@ -1876,7 +1880,7 @@ class je extends Ae {
|
|
|
1876
1880
|
r === void 0 && (r = ":");
|
|
1877
1881
|
const s = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
1878
1882
|
let i = n.ns || this.options.defaultNS || [];
|
|
1879
|
-
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);
|
|
1880
1884
|
if (a && !o) {
|
|
1881
1885
|
const u = t.match(this.interpolator.nestingRegexp);
|
|
1882
1886
|
if (u && u.length > 0)
|
|
@@ -1934,28 +1938,28 @@ class je extends Ae {
|
|
|
1934
1938
|
return s ? (f.res = C, f) : C;
|
|
1935
1939
|
}
|
|
1936
1940
|
if (i) {
|
|
1937
|
-
const C = y === "[object Array]",
|
|
1941
|
+
const C = y === "[object Array]", E = C ? [] : {}, $ = C ? p : g;
|
|
1938
1942
|
for (const F in l)
|
|
1939
1943
|
if (Object.prototype.hasOwnProperty.call(l, F)) {
|
|
1940
|
-
const
|
|
1941
|
-
|
|
1944
|
+
const ge = `${$}${i}${F}`;
|
|
1945
|
+
E[F] = this.translate(ge, {
|
|
1942
1946
|
...n,
|
|
1943
1947
|
joinArrays: !1,
|
|
1944
1948
|
ns: o
|
|
1945
|
-
}),
|
|
1949
|
+
}), E[F] === ge && (E[F] = l[F]);
|
|
1946
1950
|
}
|
|
1947
|
-
l =
|
|
1951
|
+
l = E;
|
|
1948
1952
|
}
|
|
1949
1953
|
} else if (w && typeof x == "string" && y === "[object Array]")
|
|
1950
1954
|
l = l.join(x), l && (l = this.extendTranslation(l, t, n, r));
|
|
1951
1955
|
else {
|
|
1952
|
-
let C = !1,
|
|
1953
|
-
const $ = n.count !== void 0 && typeof n.count != "string", F =
|
|
1956
|
+
let C = !1, E = !1;
|
|
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, {
|
|
1954
1958
|
ordinal: !1
|
|
1955
|
-
}) : "", ie = n[`defaultValue${
|
|
1956
|
-
!this.isValidLookup(l) && F && (C = !0, l = ie), this.isValidLookup(l) || (
|
|
1957
|
-
const
|
|
1958
|
-
if (
|
|
1959
|
+
}) : "", ie = n[`defaultValue${ge}`] || n[`defaultValue${un}`] || n.defaultValue;
|
|
1960
|
+
!this.isValidLookup(l) && F && (C = !0, l = ie), this.isValidLookup(l) || (E = !0, l = a);
|
|
1961
|
+
const ln = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : l, ae = F && ie !== l && this.options.updateMissing;
|
|
1962
|
+
if (E || C || ae) {
|
|
1959
1963
|
if (this.logger.log(ae ? "updateKey" : "missingKey", c, u, a, ae ? ie : l), i) {
|
|
1960
1964
|
const N = this.resolve(a, {
|
|
1961
1965
|
...n,
|
|
@@ -1964,23 +1968,23 @@ class je extends Ae {
|
|
|
1964
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.");
|
|
1965
1969
|
}
|
|
1966
1970
|
let oe = [];
|
|
1967
|
-
const
|
|
1968
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
1969
|
-
for (let N = 0; N <
|
|
1970
|
-
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]);
|
|
1971
1975
|
else
|
|
1972
1976
|
this.options.saveMissingTo === "all" ? oe = this.languageUtils.toResolveHierarchy(n.lng || this.language) : oe.push(n.lng || this.language);
|
|
1973
|
-
const
|
|
1974
|
-
const
|
|
1975
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(N, u, J,
|
|
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);
|
|
1976
1980
|
};
|
|
1977
1981
|
this.options.saveMissing && (this.options.saveMissingPlurals && $ ? oe.forEach((N) => {
|
|
1978
1982
|
this.pluralResolver.getSuffixes(N, n).forEach((J) => {
|
|
1979
|
-
|
|
1983
|
+
rt([N], a + J, n[`defaultValue${J}`] || ie);
|
|
1980
1984
|
});
|
|
1981
|
-
}) :
|
|
1985
|
+
}) : rt(oe, a, ie));
|
|
1982
1986
|
}
|
|
1983
|
-
l = this.extendTranslation(l, t, n, f, r),
|
|
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));
|
|
1984
1988
|
}
|
|
1985
1989
|
return s ? (f.res = l, f) : l;
|
|
1986
1990
|
}
|
|
@@ -2022,7 +2026,7 @@ class je extends Ae {
|
|
|
2022
2026
|
}, r)), r.interpolation && this.interpolator.reset();
|
|
2023
2027
|
}
|
|
2024
2028
|
const o = r.postProcess || this.options.postProcess, u = typeof o == "string" ? [o] : o;
|
|
2025
|
-
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 ? {
|
|
2026
2030
|
i18nResolved: s,
|
|
2027
2031
|
...r
|
|
2028
2032
|
} : r, this)), t;
|
|
@@ -2038,7 +2042,7 @@ class je extends Ae {
|
|
|
2038
2042
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
2039
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);
|
|
2040
2044
|
f.forEach((h) => {
|
|
2041
|
-
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) => {
|
|
2042
2046
|
if (this.isValidLookup(r))
|
|
2043
2047
|
return;
|
|
2044
2048
|
a = x;
|
|
@@ -2048,10 +2052,10 @@ class je extends Ae {
|
|
|
2048
2052
|
else {
|
|
2049
2053
|
let C;
|
|
2050
2054
|
l && (C = this.pluralResolver.getSuffix(x, n.count, n));
|
|
2051
|
-
const
|
|
2052
|
-
if (l && (w.push(d + C), n.ordinal && C.indexOf($) === 0 && w.push(d + C.replace($, this.options.pluralSeparator)), g && w.push(d +
|
|
2055
|
+
const E = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2056
|
+
if (l && (w.push(d + C), n.ordinal && C.indexOf($) === 0 && w.push(d + C.replace($, this.options.pluralSeparator)), g && w.push(d + E)), p) {
|
|
2053
2057
|
const F = `${d}${this.options.contextSeparator}${n.context}`;
|
|
2054
|
-
w.push(F), l && (w.push(F + C), n.ordinal && C.indexOf($) === 0 && w.push(F + C.replace($, this.options.pluralSeparator)), g && w.push(F +
|
|
2058
|
+
w.push(F), l && (w.push(F + C), n.ordinal && C.indexOf($) === 0 && w.push(F + C.replace($, this.options.pluralSeparator)), g && w.push(F + E));
|
|
2055
2059
|
}
|
|
2056
2060
|
}
|
|
2057
2061
|
let P;
|
|
@@ -2082,21 +2086,21 @@ class je extends Ae {
|
|
|
2082
2086
|
return !1;
|
|
2083
2087
|
}
|
|
2084
2088
|
}
|
|
2085
|
-
function
|
|
2089
|
+
function Me(e) {
|
|
2086
2090
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2087
2091
|
}
|
|
2088
|
-
class
|
|
2092
|
+
class gt {
|
|
2089
2093
|
constructor(t) {
|
|
2090
|
-
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");
|
|
2091
2095
|
}
|
|
2092
2096
|
getScriptPartFromCode(t) {
|
|
2093
|
-
if (t =
|
|
2097
|
+
if (t = je(t), !t || t.indexOf("-") < 0)
|
|
2094
2098
|
return null;
|
|
2095
2099
|
const n = t.split("-");
|
|
2096
2100
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
2097
2101
|
}
|
|
2098
2102
|
getLanguagePartFromCode(t) {
|
|
2099
|
-
if (t =
|
|
2103
|
+
if (t = je(t), !t || t.indexOf("-") < 0)
|
|
2100
2104
|
return t;
|
|
2101
2105
|
const n = t.split("-");
|
|
2102
2106
|
return this.formatLanguageCode(n[0]);
|
|
@@ -2105,7 +2109,7 @@ class pt {
|
|
|
2105
2109
|
if (typeof t == "string" && t.indexOf("-") > -1) {
|
|
2106
2110
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
2107
2111
|
let r = t.split("-");
|
|
2108
|
-
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("-");
|
|
2109
2113
|
}
|
|
2110
2114
|
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
|
2111
2115
|
}
|
|
@@ -2154,7 +2158,7 @@ class pt {
|
|
|
2154
2158
|
}), s;
|
|
2155
2159
|
}
|
|
2156
2160
|
}
|
|
2157
|
-
let
|
|
2161
|
+
let Vr = [{
|
|
2158
2162
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
2159
2163
|
nr: [1, 2],
|
|
2160
2164
|
fc: 1
|
|
@@ -2246,7 +2250,7 @@ let Mr = [{
|
|
|
2246
2250
|
lngs: ["he", "iw"],
|
|
2247
2251
|
nr: [1, 2, 20, 21],
|
|
2248
2252
|
fc: 22
|
|
2249
|
-
}],
|
|
2253
|
+
}], Hr = {
|
|
2250
2254
|
1: function(e) {
|
|
2251
2255
|
return +(e > 1);
|
|
2252
2256
|
},
|
|
@@ -2314,7 +2318,7 @@ let Mr = [{
|
|
|
2314
2318
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
2315
2319
|
}
|
|
2316
2320
|
};
|
|
2317
|
-
const
|
|
2321
|
+
const Kr = ["v1", "v2", "v3"], zr = ["v4"], ht = {
|
|
2318
2322
|
zero: 0,
|
|
2319
2323
|
one: 1,
|
|
2320
2324
|
two: 2,
|
|
@@ -2322,21 +2326,21 @@ const Ir = ["v1", "v2", "v3"], _r = ["v4"], gt = {
|
|
|
2322
2326
|
many: 4,
|
|
2323
2327
|
other: 5
|
|
2324
2328
|
};
|
|
2325
|
-
function
|
|
2329
|
+
function Gr() {
|
|
2326
2330
|
const e = {};
|
|
2327
|
-
return
|
|
2331
|
+
return Vr.forEach((t) => {
|
|
2328
2332
|
t.lngs.forEach((n) => {
|
|
2329
2333
|
e[n] = {
|
|
2330
2334
|
numbers: t.nr,
|
|
2331
|
-
plurals:
|
|
2335
|
+
plurals: Hr[t.fc]
|
|
2332
2336
|
};
|
|
2333
2337
|
});
|
|
2334
2338
|
}), e;
|
|
2335
2339
|
}
|
|
2336
|
-
class
|
|
2340
|
+
class Jr {
|
|
2337
2341
|
constructor(t) {
|
|
2338
2342
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2339
|
-
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();
|
|
2340
2344
|
}
|
|
2341
2345
|
addRule(t, n) {
|
|
2342
2346
|
this.rules[t] = n;
|
|
@@ -2345,7 +2349,7 @@ class Br {
|
|
|
2345
2349
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2346
2350
|
if (this.shouldUseIntlApi())
|
|
2347
2351
|
try {
|
|
2348
|
-
return new Intl.PluralRules(
|
|
2352
|
+
return new Intl.PluralRules(je(t), {
|
|
2349
2353
|
type: n.ordinal ? "ordinal" : "cardinal"
|
|
2350
2354
|
});
|
|
2351
2355
|
} catch {
|
|
@@ -2365,7 +2369,7 @@ class Br {
|
|
|
2365
2369
|
getSuffixes(t) {
|
|
2366
2370
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2367
2371
|
const r = this.getRule(t, n);
|
|
2368
|
-
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)) : [];
|
|
2369
2373
|
}
|
|
2370
2374
|
getSuffix(t, n) {
|
|
2371
2375
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -2380,17 +2384,17 @@ class Br {
|
|
|
2380
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();
|
|
2381
2385
|
}
|
|
2382
2386
|
shouldUseIntlApi() {
|
|
2383
|
-
return !
|
|
2387
|
+
return !Kr.includes(this.options.compatibilityJSON);
|
|
2384
2388
|
}
|
|
2385
2389
|
}
|
|
2386
|
-
function
|
|
2387
|
-
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i =
|
|
2388
|
-
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;
|
|
2389
2393
|
}
|
|
2390
|
-
class
|
|
2394
|
+
class Qr {
|
|
2391
2395
|
constructor() {
|
|
2392
2396
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2393
|
-
this.logger =
|
|
2397
|
+
this.logger = k.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
|
2394
2398
|
}
|
|
2395
2399
|
init() {
|
|
2396
2400
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -2398,7 +2402,7 @@ class Ur {
|
|
|
2398
2402
|
escapeValue: !0
|
|
2399
2403
|
});
|
|
2400
2404
|
const n = t.interpolation;
|
|
2401
|
-
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();
|
|
2402
2406
|
}
|
|
2403
2407
|
reset() {
|
|
2404
2408
|
this.options && this.init(this.options);
|
|
@@ -2419,7 +2423,7 @@ class Ur {
|
|
|
2419
2423
|
}
|
|
2420
2424
|
const d = (p) => {
|
|
2421
2425
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
2422
|
-
const w =
|
|
2426
|
+
const w = mt(n, u, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2423
2427
|
return this.alwaysFormat ? this.format(w, void 0, r, {
|
|
2424
2428
|
...s,
|
|
2425
2429
|
...n,
|
|
@@ -2427,7 +2431,7 @@ class Ur {
|
|
|
2427
2431
|
}) : w;
|
|
2428
2432
|
}
|
|
2429
2433
|
const y = p.split(this.formatSeparator), h = y.shift().trim(), x = y.join(this.formatSeparator).trim();
|
|
2430
|
-
return this.format(
|
|
2434
|
+
return this.format(mt(n, u, h, this.options.keySeparator, this.options.ignoreJSONStructure), x, r, {
|
|
2431
2435
|
...s,
|
|
2432
2436
|
...n,
|
|
2433
2437
|
interpolationkey: h
|
|
@@ -2456,7 +2460,7 @@ class Ur {
|
|
|
2456
2460
|
} else
|
|
2457
2461
|
this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`), a = "";
|
|
2458
2462
|
else
|
|
2459
|
-
typeof a != "string" && !this.useRawValueToEscape && (a =
|
|
2463
|
+
typeof a != "string" && !this.useRawValueToEscape && (a = ct(a));
|
|
2460
2464
|
const h = p.safeValue(a);
|
|
2461
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)
|
|
2462
2466
|
break;
|
|
@@ -2496,7 +2500,7 @@ class Ur {
|
|
|
2496
2500
|
}
|
|
2497
2501
|
if (i = n(o.call(this, s[1].trim(), a), a), i && s[0] === t && typeof i != "string")
|
|
2498
2502
|
return i;
|
|
2499
|
-
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, {
|
|
2500
2504
|
...r,
|
|
2501
2505
|
interpolationkey: s[1].trim()
|
|
2502
2506
|
}), i.trim())), t = t.replace(s[0], i), this.regexp.lastIndex = 0;
|
|
@@ -2504,7 +2508,7 @@ class Ur {
|
|
|
2504
2508
|
return t;
|
|
2505
2509
|
}
|
|
2506
2510
|
}
|
|
2507
|
-
function
|
|
2511
|
+
function Yr(e) {
|
|
2508
2512
|
let t = e.toLowerCase().trim();
|
|
2509
2513
|
const n = {};
|
|
2510
2514
|
if (e.indexOf("(") > -1) {
|
|
@@ -2528,13 +2532,13 @@ function Y(e) {
|
|
|
2528
2532
|
return function(r, s, i) {
|
|
2529
2533
|
const a = s + JSON.stringify(i);
|
|
2530
2534
|
let o = t[a];
|
|
2531
|
-
return o || (o = e(
|
|
2535
|
+
return o || (o = e(je(s), i), t[a] = o), o(r);
|
|
2532
2536
|
};
|
|
2533
2537
|
}
|
|
2534
|
-
class
|
|
2538
|
+
class Zr {
|
|
2535
2539
|
constructor() {
|
|
2536
2540
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2537
|
-
this.logger =
|
|
2541
|
+
this.logger = k.create("formatter"), this.options = t, this.formats = {
|
|
2538
2542
|
number: Y((n, r) => {
|
|
2539
2543
|
const s = new Intl.NumberFormat(n, {
|
|
2540
2544
|
...r
|
|
@@ -2586,7 +2590,7 @@ class Wr {
|
|
|
2586
2590
|
const {
|
|
2587
2591
|
formatName: c,
|
|
2588
2592
|
formatOptions: d
|
|
2589
|
-
} =
|
|
2593
|
+
} = Yr(u);
|
|
2590
2594
|
if (this.formats[c]) {
|
|
2591
2595
|
let f = o;
|
|
2592
2596
|
try {
|
|
@@ -2606,13 +2610,13 @@ class Wr {
|
|
|
2606
2610
|
}, t);
|
|
2607
2611
|
}
|
|
2608
2612
|
}
|
|
2609
|
-
function
|
|
2613
|
+
function Xr(e, t) {
|
|
2610
2614
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
2611
2615
|
}
|
|
2612
|
-
class
|
|
2616
|
+
class es extends Le {
|
|
2613
2617
|
constructor(t, n, r) {
|
|
2614
2618
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
2615
|
-
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);
|
|
2616
2620
|
}
|
|
2617
2621
|
queueLoad(t, n, r, s) {
|
|
2618
2622
|
const i = {}, a = {}, o = {}, u = {};
|
|
@@ -2640,7 +2644,7 @@ class Hr extends Ae {
|
|
|
2640
2644
|
n && this.emit("failedLoading", i, a, n), r && this.store.addResourceBundle(i, a, r), this.state[t] = n ? -1 : 2;
|
|
2641
2645
|
const o = {};
|
|
2642
2646
|
this.queue.forEach((u) => {
|
|
2643
|
-
|
|
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) => {
|
|
2644
2648
|
o[c] || (o[c] = {});
|
|
2645
2649
|
const d = u.loaded[c];
|
|
2646
2650
|
d.length && d.forEach((f) => {
|
|
@@ -2743,7 +2747,7 @@ class Hr extends Ae {
|
|
|
2743
2747
|
}
|
|
2744
2748
|
}
|
|
2745
2749
|
}
|
|
2746
|
-
function
|
|
2750
|
+
function yt() {
|
|
2747
2751
|
return {
|
|
2748
2752
|
debug: !1,
|
|
2749
2753
|
initImmediate: !0,
|
|
@@ -2802,22 +2806,22 @@ function mt() {
|
|
|
2802
2806
|
}
|
|
2803
2807
|
};
|
|
2804
2808
|
}
|
|
2805
|
-
function
|
|
2809
|
+
function bt(e) {
|
|
2806
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;
|
|
2807
2811
|
}
|
|
2808
|
-
function
|
|
2812
|
+
function me() {
|
|
2809
2813
|
}
|
|
2810
|
-
function
|
|
2814
|
+
function ts(e) {
|
|
2811
2815
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
2812
2816
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
2813
2817
|
});
|
|
2814
2818
|
}
|
|
2815
|
-
class
|
|
2819
|
+
class ce extends Le {
|
|
2816
2820
|
constructor() {
|
|
2817
2821
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
2818
|
-
if (super(), this.options =
|
|
2822
|
+
if (super(), this.options = bt(t), this.services = {}, this.logger = k, this.modules = {
|
|
2819
2823
|
external: []
|
|
2820
|
-
},
|
|
2824
|
+
}, ts(this), n && !this.isInitialized && !t.isClone) {
|
|
2821
2825
|
if (!this.options.initImmediate)
|
|
2822
2826
|
return this.init(t, n), this;
|
|
2823
2827
|
setTimeout(() => {
|
|
@@ -2829,11 +2833,11 @@ class le extends Ae {
|
|
|
2829
2833
|
var t = this;
|
|
2830
2834
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
2831
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]));
|
|
2832
|
-
const s =
|
|
2836
|
+
const s = yt();
|
|
2833
2837
|
this.options = {
|
|
2834
2838
|
...s,
|
|
2835
2839
|
...this.options,
|
|
2836
|
-
...
|
|
2840
|
+
...bt(n)
|
|
2837
2841
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
2838
2842
|
...s.interpolation,
|
|
2839
2843
|
...this.options.interpolation
|
|
@@ -2842,23 +2846,23 @@ class le extends Ae {
|
|
|
2842
2846
|
return d ? typeof d == "function" ? new d() : d : null;
|
|
2843
2847
|
}
|
|
2844
2848
|
if (!this.options.isClone) {
|
|
2845
|
-
this.modules.logger ?
|
|
2849
|
+
this.modules.logger ? k.init(i(this.modules.logger), this.options) : k.init(null, this.options);
|
|
2846
2850
|
let d;
|
|
2847
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d =
|
|
2848
|
-
const f = new
|
|
2849
|
-
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);
|
|
2850
2854
|
const l = this.services;
|
|
2851
|
-
l.logger =
|
|
2855
|
+
l.logger = k, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new Jr(f, {
|
|
2852
2856
|
prepend: this.options.pluralSeparator,
|
|
2853
2857
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
2854
2858
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
2855
|
-
}), 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 = {
|
|
2856
2860
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
2857
|
-
}, l.backendConnector = new
|
|
2861
|
+
}, l.backendConnector = new es(i(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(g) {
|
|
2858
2862
|
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2859
2863
|
y[h - 1] = arguments[h];
|
|
2860
2864
|
t.emit(g, ...y);
|
|
2861
|
-
}), 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) {
|
|
2862
2866
|
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2863
2867
|
y[h - 1] = arguments[h];
|
|
2864
2868
|
t.emit(g, ...y);
|
|
@@ -2866,7 +2870,7 @@ class le extends Ae {
|
|
|
2866
2870
|
g.init && g.init(this);
|
|
2867
2871
|
});
|
|
2868
2872
|
}
|
|
2869
|
-
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) {
|
|
2870
2874
|
const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
2871
2875
|
d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
|
|
2872
2876
|
}
|
|
@@ -2879,7 +2883,7 @@ class le extends Ae {
|
|
|
2879
2883
|
return t.store[d](...arguments), t;
|
|
2880
2884
|
};
|
|
2881
2885
|
});
|
|
2882
|
-
const u =
|
|
2886
|
+
const u = le(), c = () => {
|
|
2883
2887
|
const d = (f, l) => {
|
|
2884
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);
|
|
2885
2889
|
};
|
|
@@ -2890,7 +2894,7 @@ class le extends Ae {
|
|
|
2890
2894
|
return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), u;
|
|
2891
2895
|
}
|
|
2892
2896
|
loadResources(t) {
|
|
2893
|
-
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
2897
|
+
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : me;
|
|
2894
2898
|
const s = typeof t == "string" ? t : this.language;
|
|
2895
2899
|
if (typeof t == "function" && (r = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
2896
2900
|
if (s && s.toLowerCase() === "cimode")
|
|
@@ -2909,8 +2913,8 @@ class le extends Ae {
|
|
|
2909
2913
|
r(null);
|
|
2910
2914
|
}
|
|
2911
2915
|
reloadResources(t, n, r) {
|
|
2912
|
-
const s =
|
|
2913
|
-
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) => {
|
|
2914
2918
|
s.resolve(), r(i);
|
|
2915
2919
|
}), s;
|
|
2916
2920
|
}
|
|
@@ -2919,7 +2923,7 @@ class le extends Ae {
|
|
|
2919
2923
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
2920
2924
|
if (!t.type)
|
|
2921
2925
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
2922
|
-
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;
|
|
2923
2927
|
}
|
|
2924
2928
|
setResolvedLanguage(t) {
|
|
2925
2929
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
|
@@ -2934,7 +2938,7 @@ class le extends Ae {
|
|
|
2934
2938
|
changeLanguage(t, n) {
|
|
2935
2939
|
var r = this;
|
|
2936
2940
|
this.isLanguageChangingTo = t;
|
|
2937
|
-
const s =
|
|
2941
|
+
const s = le();
|
|
2938
2942
|
this.emit("languageChanging", t);
|
|
2939
2943
|
const i = (u) => {
|
|
2940
2944
|
this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
|
|
@@ -3002,7 +3006,7 @@ class le extends Ae {
|
|
|
3002
3006
|
return !!(this.hasResourceBundle(r, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, t) && (!s || a(i, t)));
|
|
3003
3007
|
}
|
|
3004
3008
|
loadNamespaces(t, n) {
|
|
3005
|
-
const r =
|
|
3009
|
+
const r = le();
|
|
3006
3010
|
return this.options.ns ? (typeof t == "string" && (t = [t]), t.forEach((s) => {
|
|
3007
3011
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3008
3012
|
}), this.loadResources((s) => {
|
|
@@ -3010,7 +3014,7 @@ class le extends Ae {
|
|
|
3010
3014
|
}), r) : (n && n(), Promise.resolve());
|
|
3011
3015
|
}
|
|
3012
3016
|
loadLanguages(t, n) {
|
|
3013
|
-
const r =
|
|
3017
|
+
const r = le();
|
|
3014
3018
|
typeof t == "string" && (t = [t]);
|
|
3015
3019
|
const s = this.options.preload || [], i = t.filter((a) => s.indexOf(a) < 0);
|
|
3016
3020
|
return i.length ? (this.options.preload = s.concat(i), this.loadResources((a) => {
|
|
@@ -3020,29 +3024,29 @@ class le extends Ae {
|
|
|
3020
3024
|
dir(t) {
|
|
3021
3025
|
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
|
|
3022
3026
|
return "rtl";
|
|
3023
|
-
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());
|
|
3024
3028
|
return n.indexOf(r.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3025
3029
|
}
|
|
3026
3030
|
static createInstance() {
|
|
3027
3031
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
3028
|
-
return new
|
|
3032
|
+
return new ce(t, n);
|
|
3029
3033
|
}
|
|
3030
3034
|
cloneInstance() {
|
|
3031
|
-
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;
|
|
3032
3036
|
const r = t.forkResourceStore;
|
|
3033
3037
|
r && delete t.forkResourceStore;
|
|
3034
3038
|
const s = {
|
|
3035
3039
|
...this.options,
|
|
3036
3040
|
...t,
|
|
3037
3041
|
isClone: !0
|
|
3038
|
-
}, i = new
|
|
3042
|
+
}, i = new ce(s);
|
|
3039
3043
|
return (t.debug !== void 0 || t.prefix !== void 0) && (i.logger = i.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
|
|
3040
3044
|
i[o] = this[o];
|
|
3041
3045
|
}), i.services = {
|
|
3042
3046
|
...this.services
|
|
3043
3047
|
}, i.services.utils = {
|
|
3044
3048
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
|
3045
|
-
}, 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) {
|
|
3046
3050
|
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), d = 1; d < u; d++)
|
|
3047
3051
|
c[d - 1] = arguments[d];
|
|
3048
3052
|
i.emit(o, ...c);
|
|
@@ -3060,8 +3064,8 @@ class le extends Ae {
|
|
|
3060
3064
|
};
|
|
3061
3065
|
}
|
|
3062
3066
|
}
|
|
3063
|
-
const j =
|
|
3064
|
-
j.createInstance =
|
|
3067
|
+
const j = ce.createInstance();
|
|
3068
|
+
j.createInstance = ce.createInstance;
|
|
3065
3069
|
j.createInstance;
|
|
3066
3070
|
j.dir;
|
|
3067
3071
|
j.init;
|
|
@@ -3076,26 +3080,26 @@ j.setDefaultNamespace;
|
|
|
3076
3080
|
j.hasLoadedNamespace;
|
|
3077
3081
|
j.loadNamespaces;
|
|
3078
3082
|
j.loadLanguages;
|
|
3079
|
-
const
|
|
3083
|
+
const ns = {
|
|
3080
3084
|
error: "Error"
|
|
3081
|
-
},
|
|
3085
|
+
}, rs = {
|
|
3082
3086
|
error: "Помилка"
|
|
3083
|
-
},
|
|
3084
|
-
en:
|
|
3085
|
-
uk:
|
|
3087
|
+
}, St = "common", ss = {
|
|
3088
|
+
en: ns,
|
|
3089
|
+
uk: rs
|
|
3086
3090
|
}, I = j.createInstance({
|
|
3087
|
-
defaultNS:
|
|
3088
|
-
resources:
|
|
3091
|
+
defaultNS: St,
|
|
3092
|
+
resources: as(ss, St),
|
|
3089
3093
|
lng: "en",
|
|
3090
3094
|
fallbackLng: "en"
|
|
3091
|
-
}),
|
|
3095
|
+
}), zt = {
|
|
3092
3096
|
i18nextInstance: I,
|
|
3093
3097
|
initPromise: I.init().then(() => I)
|
|
3094
|
-
},
|
|
3095
|
-
|
|
3096
|
-
const
|
|
3097
|
-
if (
|
|
3098
|
-
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);
|
|
3099
3103
|
if (e.plugins)
|
|
3100
3104
|
for (const i of e.plugins)
|
|
3101
3105
|
I.use(i);
|
|
@@ -3105,7 +3109,7 @@ const Qr = (e) => {
|
|
|
3105
3109
|
const t = I.cloneInstance({
|
|
3106
3110
|
defaultNS: e.namespace
|
|
3107
3111
|
});
|
|
3108
|
-
let n =
|
|
3112
|
+
let n = zt.initPromise.then(() => t);
|
|
3109
3113
|
t.on("languageChanged", (i) => {
|
|
3110
3114
|
I.language !== i && I.changeLanguage(i);
|
|
3111
3115
|
}), I.on("languageChanged", (i) => {
|
|
@@ -3114,56 +3118,54 @@ const Qr = (e) => {
|
|
|
3114
3118
|
const r = e.language || "en";
|
|
3115
3119
|
I.language !== r && (n = n.then(() => t.changeLanguage(r)).then(() => t));
|
|
3116
3120
|
const s = { initPromise: n, i18nextInstance: t };
|
|
3117
|
-
return
|
|
3121
|
+
return ye.set(e.namespace, s), s;
|
|
3118
3122
|
};
|
|
3119
|
-
function
|
|
3123
|
+
function as(e, t) {
|
|
3120
3124
|
return Object.keys(e).reduce((n, r) => (n[r] = {
|
|
3121
3125
|
[t]: e[r]
|
|
3122
3126
|
}, n), {});
|
|
3123
3127
|
}
|
|
3124
|
-
function
|
|
3128
|
+
function os(e) {
|
|
3125
3129
|
return e && e.replace(new RegExp("(?<!\\\\)'", "g"), "\\'");
|
|
3126
3130
|
}
|
|
3127
|
-
const
|
|
3131
|
+
const us = {
|
|
3128
3132
|
errors: {
|
|
3129
3133
|
measure: {
|
|
3130
|
-
unsupportedType: "Unsupported measure type",
|
|
3134
|
+
unsupportedType: "Unsupported measure type for measure: {{measureName}}",
|
|
3131
3135
|
dimensionalCalculatedMeasure: {
|
|
3132
|
-
noContext: "DimensionalCalculatedMeasure must have 'context' property"
|
|
3136
|
+
noContext: "DimensionalCalculatedMeasure {{measureName}} must have 'context' property"
|
|
3133
3137
|
},
|
|
3134
3138
|
dimensionalBaseMeasure: {
|
|
3135
|
-
noAttributeDimExpression: "DimensionalBaseMeasure must have 'attribute'/'dim'/'expression' property",
|
|
3136
|
-
noAggAggregation: "DimensionalBaseMeasure must have 'agg' or 'aggregation' property"
|
|
3137
|
-
}
|
|
3138
|
-
notAFormula: "Jaql is not a formula"
|
|
3139
|
+
noAttributeDimExpression: "DimensionalBaseMeasure {{measureName}} must have 'attribute'/'dim'/'expression' property",
|
|
3140
|
+
noAggAggregation: "DimensionalBaseMeasure {{measureName}} must have 'agg' or 'aggregation' property"
|
|
3141
|
+
}
|
|
3139
3142
|
},
|
|
3140
|
-
|
|
3143
|
+
dataModel: {
|
|
3141
3144
|
noName: "'name' must be specified in config for DataModel",
|
|
3142
3145
|
noMetadata: "'metadata' must be specified in config for DataModel"
|
|
3143
3146
|
},
|
|
3144
3147
|
filter: {
|
|
3145
3148
|
unsupportedType: "Unsupported filter type: {{filterType}}",
|
|
3146
|
-
unsupportedDatetimeLevel: 'Filters do not support the
|
|
3149
|
+
unsupportedDatetimeLevel: 'Filters do not support the following "datetime" levels: Hours, MinutesRoundTo30, MinutesRoundTo15, Minutes, Seconds',
|
|
3147
3150
|
membersFilterNullMember: "MembersFilter of {{attributeId}} - member cannot be null",
|
|
3148
|
-
unsupportedConditionFilter: "Jaql contains unsupported condition filter: {{filter}}",
|
|
3149
|
-
formulaFiltersNotSupported: "Formula-based filter not supported yet: {{filter}}"
|
|
3151
|
+
unsupportedConditionFilter: "Jaql for {{attributeName}} contains unsupported condition filter: {{filter}}",
|
|
3152
|
+
formulaFiltersNotSupported: "Formula-based filter for {{attributeName}} not supported yet: {{filter}}"
|
|
3150
3153
|
},
|
|
3151
3154
|
unsupportedDimensionalElement: "Unsupported dimensional element type"
|
|
3152
3155
|
}
|
|
3153
|
-
},
|
|
3156
|
+
}, ls = {
|
|
3154
3157
|
errors: {
|
|
3155
3158
|
measure: {
|
|
3156
|
-
unsupportedType: "Непідтримуваний тип measure",
|
|
3159
|
+
unsupportedType: "Непідтримуваний тип measure: {{measureName}}",
|
|
3157
3160
|
dimensionalCalculatedMeasure: {
|
|
3158
|
-
noContext: "DimensionalCalculatedMeasure має мати властивість 'context'"
|
|
3161
|
+
noContext: "DimensionalCalculatedMeasure {{measureName}} має мати властивість 'context'"
|
|
3159
3162
|
},
|
|
3160
3163
|
dimensionalBaseMeasure: {
|
|
3161
|
-
noAttributeDimExpression: "DimensionalBaseMeasure має мати властивість 'attribute'/'dim'/'expression'",
|
|
3162
|
-
noAggAggregation: "DimensionalBaseMeasure має мати властивість 'agg' або 'aggregation'"
|
|
3163
|
-
}
|
|
3164
|
-
notAFormula: "Jaql не формула"
|
|
3164
|
+
noAttributeDimExpression: "DimensionalBaseMeasure {{measureName}} має мати властивість 'attribute'/'dim'/'expression'",
|
|
3165
|
+
noAggAggregation: "DimensionalBaseMeasure {{measureName}} має мати властивість 'agg' або 'aggregation'"
|
|
3166
|
+
}
|
|
3165
3167
|
},
|
|
3166
|
-
|
|
3168
|
+
dataModel: {
|
|
3167
3169
|
noName: "'name' має бути вказано в конфігурації для DataModel",
|
|
3168
3170
|
noMetadata: "'metadata' має бути вказано в конфігурації для DataModel"
|
|
3169
3171
|
},
|
|
@@ -3171,24 +3173,24 @@ const Xr = {
|
|
|
3171
3173
|
unsupportedType: "Непідтримуваний тип фільтра: {{filterType}}",
|
|
3172
3174
|
unsupportedDatetimeLevel: 'Фільтри не підтримують наступні рівні "datetime": Hours, MinutesRoundTo30, MinutesRoundTo15, Minutes, Seconds',
|
|
3173
3175
|
membersFilterNullMember: "MembersFilter у {{attributeId}} - member не може бути нульовим",
|
|
3174
|
-
unsupportedConditionFilter: "Jaql містить непідтримуваний condition фільтр: {{filter}}",
|
|
3175
|
-
formulaFiltersNotSupported: "Фільтри, що містять формули наразі не підтримуються: {{filter}}"
|
|
3176
|
+
unsupportedConditionFilter: "Jaql для {{attributeName}} містить непідтримуваний condition фільтр: {{filter}}",
|
|
3177
|
+
formulaFiltersNotSupported: "Фільтри, що містять формули для {{attributeName}} наразі не підтримуються: {{filter}}"
|
|
3176
3178
|
},
|
|
3177
3179
|
unsupportedDimensionalElement: "Непідтримуваний тип елемента"
|
|
3178
3180
|
}
|
|
3179
|
-
},
|
|
3180
|
-
en:
|
|
3181
|
-
uk:
|
|
3181
|
+
}, cs = "sdkData", ds = {
|
|
3182
|
+
en: us,
|
|
3183
|
+
uk: ls
|
|
3182
3184
|
};
|
|
3183
|
-
function
|
|
3184
|
-
return
|
|
3185
|
-
resource:
|
|
3185
|
+
function fs() {
|
|
3186
|
+
return is({
|
|
3187
|
+
resource: ds,
|
|
3186
3188
|
language: "en",
|
|
3187
|
-
namespace:
|
|
3189
|
+
namespace: cs
|
|
3188
3190
|
});
|
|
3189
3191
|
}
|
|
3190
|
-
|
|
3191
|
-
function
|
|
3192
|
+
fs();
|
|
3193
|
+
function ps() {
|
|
3192
3194
|
this.__data__ = [], this.size = 0;
|
|
3193
3195
|
}
|
|
3194
3196
|
function Gt(e, t) {
|
|
@@ -3200,64 +3202,64 @@ function Ee(e, t) {
|
|
|
3200
3202
|
return n;
|
|
3201
3203
|
return -1;
|
|
3202
3204
|
}
|
|
3203
|
-
var
|
|
3204
|
-
function
|
|
3205
|
+
var gs = Array.prototype, hs = gs.splice;
|
|
3206
|
+
function ms(e) {
|
|
3205
3207
|
var t = this.__data__, n = Ee(t, e);
|
|
3206
3208
|
if (n < 0)
|
|
3207
3209
|
return !1;
|
|
3208
3210
|
var r = t.length - 1;
|
|
3209
|
-
return n == r ? t.pop() :
|
|
3211
|
+
return n == r ? t.pop() : hs.call(t, n, 1), --this.size, !0;
|
|
3210
3212
|
}
|
|
3211
|
-
function
|
|
3213
|
+
function ys(e) {
|
|
3212
3214
|
var t = this.__data__, n = Ee(t, e);
|
|
3213
3215
|
return n < 0 ? void 0 : t[n][1];
|
|
3214
3216
|
}
|
|
3215
|
-
function
|
|
3217
|
+
function bs(e) {
|
|
3216
3218
|
return Ee(this.__data__, e) > -1;
|
|
3217
3219
|
}
|
|
3218
|
-
function
|
|
3220
|
+
function Ss(e, t) {
|
|
3219
3221
|
var n = this.__data__, r = Ee(n, e);
|
|
3220
3222
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
3221
3223
|
}
|
|
3222
|
-
function
|
|
3224
|
+
function q(e) {
|
|
3223
3225
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3224
3226
|
for (this.clear(); ++t < n; ) {
|
|
3225
3227
|
var r = e[t];
|
|
3226
3228
|
this.set(r[0], r[1]);
|
|
3227
3229
|
}
|
|
3228
3230
|
}
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
function
|
|
3235
|
-
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;
|
|
3236
3238
|
}
|
|
3237
|
-
function
|
|
3239
|
+
function vs(e) {
|
|
3238
3240
|
var t = this.__data__, n = t.delete(e);
|
|
3239
3241
|
return this.size = t.size, n;
|
|
3240
3242
|
}
|
|
3241
|
-
function
|
|
3243
|
+
function xs(e) {
|
|
3242
3244
|
return this.__data__.get(e);
|
|
3243
3245
|
}
|
|
3244
|
-
function
|
|
3246
|
+
function Cs(e) {
|
|
3245
3247
|
return this.__data__.has(e);
|
|
3246
3248
|
}
|
|
3247
|
-
var
|
|
3248
|
-
const
|
|
3249
|
-
var
|
|
3250
|
-
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 || "");
|
|
3251
3253
|
return e ? "Symbol(src)_1." + e : "";
|
|
3252
3254
|
}();
|
|
3253
|
-
function
|
|
3254
|
-
return !!
|
|
3255
|
+
function Ps(e) {
|
|
3256
|
+
return !!Ot && Ot in e;
|
|
3255
3257
|
}
|
|
3256
|
-
var
|
|
3257
|
-
function
|
|
3258
|
+
var Ds = Function.prototype, js = Ds.toString;
|
|
3259
|
+
function z(e) {
|
|
3258
3260
|
if (e != null) {
|
|
3259
3261
|
try {
|
|
3260
|
-
return
|
|
3262
|
+
return js.call(e);
|
|
3261
3263
|
} catch {
|
|
3262
3264
|
}
|
|
3263
3265
|
try {
|
|
@@ -3267,51 +3269,51 @@ function G(e) {
|
|
|
3267
3269
|
}
|
|
3268
3270
|
return "";
|
|
3269
3271
|
}
|
|
3270
|
-
var
|
|
3271
|
-
"^" +
|
|
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.*?") + "$"
|
|
3272
3274
|
);
|
|
3273
|
-
function
|
|
3274
|
-
if (!
|
|
3275
|
+
function Ms(e) {
|
|
3276
|
+
if (!Ae(e) || Ps(e))
|
|
3275
3277
|
return !1;
|
|
3276
|
-
var t =
|
|
3277
|
-
return t.test(
|
|
3278
|
+
var t = kn(e) ? Ts : As;
|
|
3279
|
+
return t.test(z(e));
|
|
3278
3280
|
}
|
|
3279
|
-
function
|
|
3281
|
+
function $s(e, t) {
|
|
3280
3282
|
return e == null ? void 0 : e[t];
|
|
3281
3283
|
}
|
|
3282
|
-
function
|
|
3283
|
-
var n =
|
|
3284
|
-
return
|
|
3284
|
+
function G(e, t) {
|
|
3285
|
+
var n = $s(e, t);
|
|
3286
|
+
return Ms(n) ? n : void 0;
|
|
3285
3287
|
}
|
|
3286
|
-
var
|
|
3287
|
-
const
|
|
3288
|
-
var
|
|
3289
|
-
const
|
|
3290
|
-
function
|
|
3291
|
-
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;
|
|
3292
3294
|
}
|
|
3293
|
-
function
|
|
3295
|
+
function Bs(e) {
|
|
3294
3296
|
var t = this.has(e) && delete this.__data__[e];
|
|
3295
3297
|
return this.size -= t ? 1 : 0, t;
|
|
3296
3298
|
}
|
|
3297
|
-
var
|
|
3298
|
-
function
|
|
3299
|
+
var Us = "__lodash_hash_undefined__", qs = Object.prototype, Ws = qs.hasOwnProperty;
|
|
3300
|
+
function Vs(e) {
|
|
3299
3301
|
var t = this.__data__;
|
|
3300
|
-
if (
|
|
3302
|
+
if (fe) {
|
|
3301
3303
|
var n = t[e];
|
|
3302
|
-
return n ===
|
|
3304
|
+
return n === Us ? void 0 : n;
|
|
3303
3305
|
}
|
|
3304
|
-
return
|
|
3306
|
+
return Ws.call(t, e) ? t[e] : void 0;
|
|
3305
3307
|
}
|
|
3306
|
-
var
|
|
3307
|
-
function
|
|
3308
|
+
var Hs = Object.prototype, Ks = Hs.hasOwnProperty;
|
|
3309
|
+
function zs(e) {
|
|
3308
3310
|
var t = this.__data__;
|
|
3309
|
-
return
|
|
3311
|
+
return fe ? t[e] !== void 0 : Ks.call(t, e);
|
|
3310
3312
|
}
|
|
3311
|
-
var
|
|
3312
|
-
function
|
|
3313
|
+
var Gs = "__lodash_hash_undefined__";
|
|
3314
|
+
function Js(e, t) {
|
|
3313
3315
|
var n = this.__data__;
|
|
3314
|
-
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;
|
|
3315
3317
|
}
|
|
3316
3318
|
function K(e) {
|
|
3317
3319
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -3320,38 +3322,38 @@ function K(e) {
|
|
|
3320
3322
|
this.set(r[0], r[1]);
|
|
3321
3323
|
}
|
|
3322
3324
|
}
|
|
3323
|
-
K.prototype.clear =
|
|
3324
|
-
K.prototype.delete =
|
|
3325
|
-
K.prototype.get =
|
|
3326
|
-
K.prototype.has =
|
|
3327
|
-
K.prototype.set =
|
|
3328
|
-
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() {
|
|
3329
3331
|
this.size = 0, this.__data__ = {
|
|
3330
3332
|
hash: new K(),
|
|
3331
|
-
map: new (
|
|
3333
|
+
map: new (de || q)(),
|
|
3332
3334
|
string: new K()
|
|
3333
3335
|
};
|
|
3334
3336
|
}
|
|
3335
|
-
function
|
|
3337
|
+
function Ys(e) {
|
|
3336
3338
|
var t = typeof e;
|
|
3337
3339
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
3338
3340
|
}
|
|
3339
|
-
function
|
|
3341
|
+
function Ne(e, t) {
|
|
3340
3342
|
var n = e.__data__;
|
|
3341
|
-
return
|
|
3343
|
+
return Ys(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
3342
3344
|
}
|
|
3343
|
-
function
|
|
3344
|
-
var t =
|
|
3345
|
+
function Zs(e) {
|
|
3346
|
+
var t = Ne(this, e).delete(e);
|
|
3345
3347
|
return this.size -= t ? 1 : 0, t;
|
|
3346
3348
|
}
|
|
3347
|
-
function
|
|
3348
|
-
return
|
|
3349
|
+
function Xs(e) {
|
|
3350
|
+
return Ne(this, e).get(e);
|
|
3349
3351
|
}
|
|
3350
|
-
function
|
|
3351
|
-
return
|
|
3352
|
+
function ei(e) {
|
|
3353
|
+
return Ne(this, e).has(e);
|
|
3352
3354
|
}
|
|
3353
|
-
function
|
|
3354
|
-
var n =
|
|
3355
|
+
function ti(e, t) {
|
|
3356
|
+
var n = Ne(this, e), r = n.size;
|
|
3355
3357
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
3356
3358
|
}
|
|
3357
3359
|
function re(e) {
|
|
@@ -3361,325 +3363,325 @@ function re(e) {
|
|
|
3361
3363
|
this.set(r[0], r[1]);
|
|
3362
3364
|
}
|
|
3363
3365
|
}
|
|
3364
|
-
re.prototype.clear =
|
|
3365
|
-
re.prototype.delete =
|
|
3366
|
-
re.prototype.get =
|
|
3367
|
-
re.prototype.has =
|
|
3368
|
-
re.prototype.set =
|
|
3369
|
-
var
|
|
3370
|
-
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) {
|
|
3371
3373
|
var n = this.__data__;
|
|
3372
|
-
if (n instanceof
|
|
3374
|
+
if (n instanceof q) {
|
|
3373
3375
|
var r = n.__data__;
|
|
3374
|
-
if (!
|
|
3376
|
+
if (!de || r.length < ni - 1)
|
|
3375
3377
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
3376
3378
|
n = this.__data__ = new re(r);
|
|
3377
3379
|
}
|
|
3378
3380
|
return n.set(e, t), this.size = n.size, this;
|
|
3379
3381
|
}
|
|
3380
3382
|
function se(e) {
|
|
3381
|
-
var t = this.__data__ = new
|
|
3383
|
+
var t = this.__data__ = new q(e);
|
|
3382
3384
|
this.size = t.size;
|
|
3383
3385
|
}
|
|
3384
|
-
se.prototype.clear =
|
|
3385
|
-
se.prototype.delete =
|
|
3386
|
-
se.prototype.get =
|
|
3387
|
-
se.prototype.has =
|
|
3388
|
-
se.prototype.set =
|
|
3389
|
-
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) {
|
|
3390
3392
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
3391
3393
|
;
|
|
3392
3394
|
return e;
|
|
3393
3395
|
}
|
|
3394
|
-
var
|
|
3396
|
+
var ii = function() {
|
|
3395
3397
|
try {
|
|
3396
|
-
var e =
|
|
3398
|
+
var e = G(Object, "defineProperty");
|
|
3397
3399
|
return e({}, "", {}), e;
|
|
3398
3400
|
} catch {
|
|
3399
3401
|
}
|
|
3400
3402
|
}();
|
|
3401
|
-
const
|
|
3402
|
-
function
|
|
3403
|
-
t == "__proto__" &&
|
|
3403
|
+
const vt = ii;
|
|
3404
|
+
function Jt(e, t, n) {
|
|
3405
|
+
t == "__proto__" && vt ? vt(e, t, {
|
|
3404
3406
|
configurable: !0,
|
|
3405
3407
|
enumerable: !0,
|
|
3406
3408
|
value: n,
|
|
3407
3409
|
writable: !0
|
|
3408
3410
|
}) : e[t] = n;
|
|
3409
3411
|
}
|
|
3410
|
-
var
|
|
3411
|
-
function
|
|
3412
|
+
var ai = Object.prototype, oi = ai.hasOwnProperty;
|
|
3413
|
+
function Qt(e, t, n) {
|
|
3412
3414
|
var r = e[t];
|
|
3413
|
-
(!(
|
|
3415
|
+
(!(oi.call(e, t) && Gt(r, n)) || n === void 0 && !(t in e)) && Jt(e, t, n);
|
|
3414
3416
|
}
|
|
3415
|
-
function
|
|
3417
|
+
function Re(e, t, n, r) {
|
|
3416
3418
|
var s = !n;
|
|
3417
3419
|
n || (n = {});
|
|
3418
3420
|
for (var i = -1, a = t.length; ++i < a; ) {
|
|
3419
3421
|
var o = t[i], u = r ? r(n[o], e[o], o, n, e) : void 0;
|
|
3420
|
-
u === void 0 && (u = e[o]), s ?
|
|
3422
|
+
u === void 0 && (u = e[o]), s ? Jt(n, o, u) : Qt(n, o, u);
|
|
3421
3423
|
}
|
|
3422
3424
|
return n;
|
|
3423
3425
|
}
|
|
3424
|
-
function
|
|
3425
|
-
return e &&
|
|
3426
|
+
function ui(e, t) {
|
|
3427
|
+
return e && Re(t, Qe(t), e);
|
|
3426
3428
|
}
|
|
3427
|
-
function
|
|
3429
|
+
function li(e) {
|
|
3428
3430
|
var t = [];
|
|
3429
3431
|
if (e != null)
|
|
3430
3432
|
for (var n in Object(e))
|
|
3431
3433
|
t.push(n);
|
|
3432
3434
|
return t;
|
|
3433
3435
|
}
|
|
3434
|
-
var
|
|
3435
|
-
function
|
|
3436
|
-
if (!
|
|
3437
|
-
return
|
|
3438
|
-
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 = [];
|
|
3439
3441
|
for (var r in e)
|
|
3440
|
-
r == "constructor" && (t || !
|
|
3442
|
+
r == "constructor" && (t || !di.call(e, r)) || n.push(r);
|
|
3441
3443
|
return n;
|
|
3442
3444
|
}
|
|
3443
|
-
function
|
|
3444
|
-
return
|
|
3445
|
+
function Xe(e) {
|
|
3446
|
+
return Bn(e) ? Un(e, !0) : fi(e);
|
|
3445
3447
|
}
|
|
3446
|
-
function
|
|
3447
|
-
return e &&
|
|
3448
|
+
function pi(e, t) {
|
|
3449
|
+
return e && Re(t, Xe(t), e);
|
|
3448
3450
|
}
|
|
3449
|
-
var
|
|
3450
|
-
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) {
|
|
3451
3453
|
if (t)
|
|
3452
3454
|
return e.slice();
|
|
3453
|
-
var n = e.length, r =
|
|
3455
|
+
var n = e.length, r = wt ? wt(n) : new e.constructor(n);
|
|
3454
3456
|
return e.copy(r), r;
|
|
3455
3457
|
}
|
|
3456
|
-
function
|
|
3458
|
+
function mi(e, t) {
|
|
3457
3459
|
var n = -1, r = e.length;
|
|
3458
3460
|
for (t || (t = Array(r)); ++n < r; )
|
|
3459
3461
|
t[n] = e[n];
|
|
3460
3462
|
return t;
|
|
3461
3463
|
}
|
|
3462
|
-
function
|
|
3464
|
+
function yi(e, t) {
|
|
3463
3465
|
for (var n = -1, r = e == null ? 0 : e.length, s = 0, i = []; ++n < r; ) {
|
|
3464
3466
|
var a = e[n];
|
|
3465
3467
|
t(a, n, e) && (i[s++] = a);
|
|
3466
3468
|
}
|
|
3467
3469
|
return i;
|
|
3468
3470
|
}
|
|
3469
|
-
function
|
|
3471
|
+
function Zt() {
|
|
3470
3472
|
return [];
|
|
3471
3473
|
}
|
|
3472
|
-
var
|
|
3473
|
-
return e == null ? [] : (e = Object(e),
|
|
3474
|
-
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);
|
|
3475
3477
|
}));
|
|
3476
|
-
} :
|
|
3477
|
-
const
|
|
3478
|
-
function
|
|
3479
|
-
return
|
|
3478
|
+
} : Zt;
|
|
3479
|
+
const et = Oi;
|
|
3480
|
+
function vi(e, t) {
|
|
3481
|
+
return Re(e, et(e), t);
|
|
3480
3482
|
}
|
|
3481
|
-
function
|
|
3483
|
+
function Xt(e, t) {
|
|
3482
3484
|
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
|
3483
3485
|
e[s + n] = t[n];
|
|
3484
3486
|
return e;
|
|
3485
3487
|
}
|
|
3486
|
-
var
|
|
3487
|
-
const
|
|
3488
|
-
var
|
|
3488
|
+
var xi = qn(Object.getPrototypeOf, Object);
|
|
3489
|
+
const en = xi;
|
|
3490
|
+
var Ci = Object.getOwnPropertySymbols, wi = Ci ? function(e) {
|
|
3489
3491
|
for (var t = []; e; )
|
|
3490
|
-
|
|
3492
|
+
Xt(t, et(e)), e = en(e);
|
|
3491
3493
|
return t;
|
|
3492
|
-
} :
|
|
3493
|
-
const
|
|
3494
|
-
function
|
|
3495
|
-
return
|
|
3494
|
+
} : Zt;
|
|
3495
|
+
const tn = wi;
|
|
3496
|
+
function Pi(e, t) {
|
|
3497
|
+
return Re(e, tn(e), t);
|
|
3496
3498
|
}
|
|
3497
|
-
function
|
|
3499
|
+
function nn(e, t, n) {
|
|
3498
3500
|
var r = t(e);
|
|
3499
|
-
return
|
|
3501
|
+
return Bt(e) ? r : Xt(r, n(e));
|
|
3500
3502
|
}
|
|
3501
|
-
function
|
|
3502
|
-
return
|
|
3503
|
+
function Di(e) {
|
|
3504
|
+
return nn(e, Qe, et);
|
|
3503
3505
|
}
|
|
3504
|
-
function
|
|
3505
|
-
return
|
|
3506
|
+
function ji(e) {
|
|
3507
|
+
return nn(e, Xe, tn);
|
|
3506
3508
|
}
|
|
3507
|
-
var
|
|
3508
|
-
const
|
|
3509
|
-
var
|
|
3510
|
-
const
|
|
3511
|
-
var
|
|
3512
|
-
const
|
|
3513
|
-
var
|
|
3514
|
-
const Ge =
|
|
3515
|
-
var
|
|
3516
|
-
(
|
|
3517
|
-
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) : "";
|
|
3518
3520
|
if (r)
|
|
3519
3521
|
switch (r) {
|
|
3520
|
-
case
|
|
3521
|
-
return
|
|
3522
|
-
case
|
|
3523
|
-
return Pt;
|
|
3524
|
-
case Di:
|
|
3522
|
+
case Ri:
|
|
3523
|
+
return Lt;
|
|
3524
|
+
case Ti:
|
|
3525
3525
|
return Dt;
|
|
3526
|
-
case
|
|
3526
|
+
case Mi:
|
|
3527
3527
|
return jt;
|
|
3528
|
-
case
|
|
3528
|
+
case $i:
|
|
3529
3529
|
return Ft;
|
|
3530
|
+
case Ii:
|
|
3531
|
+
return At;
|
|
3530
3532
|
}
|
|
3531
3533
|
return t;
|
|
3532
3534
|
});
|
|
3533
|
-
const
|
|
3534
|
-
var
|
|
3535
|
-
function
|
|
3535
|
+
const tt = H;
|
|
3536
|
+
var _i = Object.prototype, ki = _i.hasOwnProperty;
|
|
3537
|
+
function Bi(e) {
|
|
3536
3538
|
var t = e.length, n = new e.constructor(t);
|
|
3537
|
-
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;
|
|
3538
3540
|
}
|
|
3539
|
-
var
|
|
3540
|
-
const Et =
|
|
3541
|
-
function
|
|
3541
|
+
var Ui = W.Uint8Array;
|
|
3542
|
+
const Et = Ui;
|
|
3543
|
+
function nt(e) {
|
|
3542
3544
|
var t = new e.constructor(e.byteLength);
|
|
3543
3545
|
return new Et(t).set(new Et(e)), t;
|
|
3544
3546
|
}
|
|
3545
|
-
function
|
|
3546
|
-
var n = t ?
|
|
3547
|
+
function qi(e, t) {
|
|
3548
|
+
var n = t ? nt(e.buffer) : e.buffer;
|
|
3547
3549
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
3548
3550
|
}
|
|
3549
|
-
var
|
|
3550
|
-
function
|
|
3551
|
-
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));
|
|
3552
3554
|
return t.lastIndex = e.lastIndex, t;
|
|
3553
3555
|
}
|
|
3554
|
-
var
|
|
3555
|
-
function
|
|
3556
|
-
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)) : {};
|
|
3557
3559
|
}
|
|
3558
|
-
function
|
|
3559
|
-
var n = t ?
|
|
3560
|
+
function Ki(e, t) {
|
|
3561
|
+
var n = t ? nt(e.buffer) : e.buffer;
|
|
3560
3562
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
3561
3563
|
}
|
|
3562
|
-
var
|
|
3563
|
-
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) {
|
|
3564
3566
|
var r = e.constructor;
|
|
3565
3567
|
switch (t) {
|
|
3566
|
-
case
|
|
3567
|
-
return
|
|
3568
|
-
case _i:
|
|
3569
|
-
case ki:
|
|
3570
|
-
return new r(+e);
|
|
3571
|
-
case Gi:
|
|
3572
|
-
return Ri(e, n);
|
|
3568
|
+
case ta:
|
|
3569
|
+
return nt(e);
|
|
3573
3570
|
case zi:
|
|
3571
|
+
case Gi:
|
|
3572
|
+
return new r(+e);
|
|
3573
|
+
case na:
|
|
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);
|
|
3574
3585
|
case Ji:
|
|
3586
|
+
return new r();
|
|
3575
3587
|
case Qi:
|
|
3576
|
-
case Yi:
|
|
3577
|
-
case Zi:
|
|
3578
3588
|
case Xi:
|
|
3579
|
-
case ea:
|
|
3580
|
-
case ta:
|
|
3581
|
-
case na:
|
|
3582
|
-
return Ii(e, n);
|
|
3583
|
-
case Bi:
|
|
3584
|
-
return new r();
|
|
3585
|
-
case Ui:
|
|
3586
|
-
case Vi:
|
|
3587
3589
|
return new r(e);
|
|
3588
|
-
case
|
|
3589
|
-
return
|
|
3590
|
-
case
|
|
3590
|
+
case Yi:
|
|
3591
|
+
return Vi(e);
|
|
3592
|
+
case Zi:
|
|
3591
3593
|
return new r();
|
|
3592
|
-
case
|
|
3593
|
-
return
|
|
3594
|
+
case ea:
|
|
3595
|
+
return Hi(e);
|
|
3594
3596
|
}
|
|
3595
3597
|
}
|
|
3596
|
-
var
|
|
3598
|
+
var Tt = Object.create, pa = function() {
|
|
3597
3599
|
function e() {
|
|
3598
3600
|
}
|
|
3599
3601
|
return function(t) {
|
|
3600
|
-
if (!
|
|
3602
|
+
if (!Ae(t))
|
|
3601
3603
|
return {};
|
|
3602
|
-
if (
|
|
3603
|
-
return
|
|
3604
|
+
if (Tt)
|
|
3605
|
+
return Tt(t);
|
|
3604
3606
|
e.prototype = t;
|
|
3605
3607
|
var n = new e();
|
|
3606
3608
|
return e.prototype = void 0, n;
|
|
3607
3609
|
};
|
|
3608
3610
|
}();
|
|
3609
|
-
const
|
|
3610
|
-
function
|
|
3611
|
-
return typeof e.constructor == "function" && !
|
|
3611
|
+
const ga = pa;
|
|
3612
|
+
function ha(e) {
|
|
3613
|
+
return typeof e.constructor == "function" && !kt(e) ? ga(en(e)) : {};
|
|
3612
3614
|
}
|
|
3613
|
-
var
|
|
3614
|
-
function
|
|
3615
|
-
return
|
|
3615
|
+
var ma = "[object Map]";
|
|
3616
|
+
function ya(e) {
|
|
3617
|
+
return qt(e) && tt(e) == ma;
|
|
3616
3618
|
}
|
|
3617
|
-
var
|
|
3618
|
-
const
|
|
3619
|
-
var
|
|
3620
|
-
function
|
|
3621
|
-
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;
|
|
3622
3624
|
}
|
|
3623
|
-
var
|
|
3624
|
-
const
|
|
3625
|
-
var
|
|
3626
|
-
v[
|
|
3627
|
-
v[
|
|
3628
|
-
function
|
|
3629
|
-
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;
|
|
3630
3632
|
if (n && (a = s ? n(e, r, s, i) : n(e)), a !== void 0)
|
|
3631
3633
|
return a;
|
|
3632
|
-
if (!
|
|
3634
|
+
if (!Ae(e))
|
|
3633
3635
|
return e;
|
|
3634
|
-
var d =
|
|
3636
|
+
var d = Bt(e);
|
|
3635
3637
|
if (d) {
|
|
3636
|
-
if (a =
|
|
3637
|
-
return
|
|
3638
|
+
if (a = Bi(e), !o)
|
|
3639
|
+
return mi(e, a);
|
|
3638
3640
|
} else {
|
|
3639
|
-
var f =
|
|
3640
|
-
if (
|
|
3641
|
-
return
|
|
3642
|
-
if (f ==
|
|
3643
|
-
if (a = u || l ? {} :
|
|
3644
|
-
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));
|
|
3645
3647
|
} else {
|
|
3646
3648
|
if (!v[f])
|
|
3647
3649
|
return s ? e : {};
|
|
3648
|
-
a =
|
|
3650
|
+
a = fa(e, f, o);
|
|
3649
3651
|
}
|
|
3650
3652
|
}
|
|
3651
3653
|
i || (i = new se());
|
|
3652
3654
|
var g = i.get(e);
|
|
3653
3655
|
if (g)
|
|
3654
3656
|
return g;
|
|
3655
|
-
i.set(e, a),
|
|
3656
|
-
a.add(
|
|
3657
|
-
}) :
|
|
3658
|
-
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));
|
|
3659
3661
|
});
|
|
3660
|
-
var p = c ? u ?
|
|
3661
|
-
return
|
|
3662
|
-
y && (x = h, h = e[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));
|
|
3663
3665
|
}), a;
|
|
3664
3666
|
}
|
|
3665
|
-
var
|
|
3666
|
-
function
|
|
3667
|
-
return
|
|
3667
|
+
var Qa = 1, Ya = 4;
|
|
3668
|
+
function Za(e) {
|
|
3669
|
+
return be(e, Qa | Ya);
|
|
3668
3670
|
}
|
|
3669
|
-
function
|
|
3671
|
+
function Xa(e) {
|
|
3670
3672
|
return Buffer.from(e).toString("utf8");
|
|
3671
3673
|
}
|
|
3672
|
-
function
|
|
3674
|
+
function eo(e) {
|
|
3673
3675
|
return String.fromCharCode.apply(null, new Uint16Array(e));
|
|
3674
3676
|
}
|
|
3675
|
-
function
|
|
3677
|
+
function to() {
|
|
3676
3678
|
return "UNSUPPORTED";
|
|
3677
3679
|
}
|
|
3678
3680
|
typeof Buffer < "u" && Buffer.from;
|
|
3679
|
-
var
|
|
3681
|
+
var Ie;
|
|
3680
3682
|
(function(e) {
|
|
3681
3683
|
e[e.None = 0] = "None", e[e.Ascending = 1] = "Ascending", e[e.Descending = 2] = "Descending";
|
|
3682
|
-
})(
|
|
3684
|
+
})(Ie = Ie || (Ie = {}));
|
|
3683
3685
|
const O = {
|
|
3684
3686
|
Measure: "measure",
|
|
3685
3687
|
MeasureTemplate: "measuretemplate",
|
|
@@ -3814,49 +3816,49 @@ const O = {
|
|
|
3814
3816
|
return !1;
|
|
3815
3817
|
}
|
|
3816
3818
|
};
|
|
3817
|
-
var Ie;
|
|
3818
|
-
(function(e) {
|
|
3819
|
-
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
|
3820
|
-
})(Ie = Ie || (Ie = {}));
|
|
3821
3819
|
var _e;
|
|
3822
3820
|
(function(e) {
|
|
3823
|
-
e.
|
|
3821
|
+
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
|
3824
3822
|
})(_e = _e || (_e = {}));
|
|
3825
3823
|
var ke;
|
|
3826
3824
|
(function(e) {
|
|
3827
|
-
e.
|
|
3825
|
+
e.ASC = "asc", e.DESC = "desc";
|
|
3828
3826
|
})(ke = ke || (ke = {}));
|
|
3829
|
-
|
|
3827
|
+
var Be;
|
|
3828
|
+
(function(e) {
|
|
3829
|
+
e.PRE = "pre", e.POST = "post";
|
|
3830
|
+
})(Be = Be || (Be = {}));
|
|
3831
|
+
function Je(e, t = []) {
|
|
3830
3832
|
try {
|
|
3831
|
-
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);
|
|
3832
3834
|
} catch (n) {
|
|
3833
3835
|
return console.error(n, JSON.stringify(e, null, 2)), JSON.stringify(e);
|
|
3834
3836
|
}
|
|
3835
3837
|
}
|
|
3836
|
-
function
|
|
3838
|
+
function no(e) {
|
|
3837
3839
|
let t = e.length;
|
|
3838
3840
|
for (; t > 0 && e[t - 1] === void 0; )
|
|
3839
3841
|
t--;
|
|
3840
3842
|
return e.slice(0, t);
|
|
3841
3843
|
}
|
|
3842
|
-
function
|
|
3844
|
+
function ro(e, t) {
|
|
3843
3845
|
return function(n) {
|
|
3844
3846
|
return function(...r) {
|
|
3845
|
-
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);
|
|
3846
3848
|
return u.composeCode = o, u;
|
|
3847
3849
|
};
|
|
3848
3850
|
};
|
|
3849
3851
|
}
|
|
3850
|
-
function
|
|
3851
|
-
return
|
|
3852
|
+
function It(e, t) {
|
|
3853
|
+
return ro("filterFactory.logic", t)(e);
|
|
3852
3854
|
}
|
|
3853
|
-
function
|
|
3855
|
+
function so(e) {
|
|
3854
3856
|
return e && e.__serializable === "MembersFilter";
|
|
3855
3857
|
}
|
|
3856
|
-
function
|
|
3858
|
+
function io(e) {
|
|
3857
3859
|
return e && e.__serializable === "CascadingFilter";
|
|
3858
3860
|
}
|
|
3859
|
-
var
|
|
3861
|
+
var Ue;
|
|
3860
3862
|
(function(e) {
|
|
3861
3863
|
const t = (n) => {
|
|
3862
3864
|
if (Array.isArray(n)) {
|
|
@@ -3869,37 +3871,37 @@ var Be;
|
|
|
3869
3871
|
}
|
|
3870
3872
|
return n;
|
|
3871
3873
|
};
|
|
3872
|
-
e.and =
|
|
3874
|
+
e.and = It((n, r) => ({
|
|
3873
3875
|
operator: "AND",
|
|
3874
3876
|
left: t(n),
|
|
3875
3877
|
right: t(r)
|
|
3876
|
-
}), "and"), e.or =
|
|
3878
|
+
}), "and"), e.or = It((n, r) => ({
|
|
3877
3879
|
operator: "OR",
|
|
3878
3880
|
left: t(n),
|
|
3879
3881
|
right: t(r)
|
|
3880
3882
|
}), "or");
|
|
3881
|
-
})(
|
|
3882
|
-
var be;
|
|
3883
|
-
(function(e) {
|
|
3884
|
-
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
|
3885
|
-
})(be = be || (be = {}));
|
|
3883
|
+
})(Ue = Ue || (Ue = {}));
|
|
3886
3884
|
var Se;
|
|
3887
3885
|
(function(e) {
|
|
3888
|
-
e.
|
|
3886
|
+
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
|
3889
3887
|
})(Se = Se || (Se = {}));
|
|
3890
3888
|
var Oe;
|
|
3891
3889
|
(function(e) {
|
|
3892
|
-
e.
|
|
3890
|
+
e.PERIOD = "PERIOD", e.DATE_RANGE = "DATE_RANGE";
|
|
3893
3891
|
})(Oe = Oe || (Oe = {}));
|
|
3894
3892
|
var ve;
|
|
3895
3893
|
(function(e) {
|
|
3896
|
-
e.
|
|
3894
|
+
e.NUMERIC_RANGE = "NUMERIC_RANGE";
|
|
3897
3895
|
})(ve = ve || (ve = {}));
|
|
3898
|
-
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;
|
|
3899
3901
|
(function(e) {
|
|
3900
3902
|
e.DATE_TIME = "datetime", e.NUMERIC = "numeric", e.TEXT = "text";
|
|
3901
|
-
})(
|
|
3902
|
-
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 = {
|
|
3903
3905
|
[M.INCLUDE_ALL]: {
|
|
3904
3906
|
all: !0,
|
|
3905
3907
|
filterType: M.INCLUDE_ALL
|
|
@@ -3928,12 +3930,12 @@ const M = Object.assign(Object.assign(Object.assign({}, be), Se), Oe), Ya = {
|
|
|
3928
3930
|
filterType: M.SPECIFIC_ITEMS
|
|
3929
3931
|
}
|
|
3930
3932
|
};
|
|
3931
|
-
|
|
3932
|
-
var
|
|
3933
|
+
ao.INCLUDE_ALL, xe.YEARS;
|
|
3934
|
+
var We;
|
|
3933
3935
|
(function(e) {
|
|
3934
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";
|
|
3935
|
-
})(
|
|
3936
|
-
const
|
|
3937
|
+
})(We = We || (We = {}));
|
|
3938
|
+
const on = (e) => {
|
|
3937
3939
|
if (!e)
|
|
3938
3940
|
return { filters: void 0, relations: void 0 };
|
|
3939
3941
|
if (Array.isArray(e))
|
|
@@ -3947,24 +3949,24 @@ const an = (e) => {
|
|
|
3947
3949
|
return { left: c, right: d, operator: "AND" };
|
|
3948
3950
|
}
|
|
3949
3951
|
function r(a) {
|
|
3950
|
-
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));
|
|
3951
3953
|
}
|
|
3952
|
-
const s =
|
|
3954
|
+
const s = Za(e), i = r(s);
|
|
3953
3955
|
return { filters: Array.from(t), relations: i };
|
|
3954
3956
|
};
|
|
3955
|
-
function
|
|
3957
|
+
function oo(e) {
|
|
3956
3958
|
return "config" in e && "guid" in e.config;
|
|
3957
3959
|
}
|
|
3958
3960
|
O.TextAttribute, O.NumericAttribute, O.DateLevel;
|
|
3959
|
-
const
|
|
3960
|
-
const [t, n] =
|
|
3961
|
+
const uu = (e) => {
|
|
3962
|
+
const [t, n] = V(Vt, {
|
|
3961
3963
|
isLoading: !0,
|
|
3962
3964
|
isError: !1,
|
|
3963
3965
|
isSuccess: !1,
|
|
3964
3966
|
status: "loading",
|
|
3965
3967
|
error: void 0,
|
|
3966
3968
|
data: void 0
|
|
3967
|
-
}), r =
|
|
3969
|
+
}), r = B();
|
|
3968
3970
|
R("useExecuteQuery");
|
|
3969
3971
|
const s = async (i) => {
|
|
3970
3972
|
try {
|
|
@@ -3978,9 +3980,9 @@ const Yo = (e) => {
|
|
|
3978
3980
|
offset: l,
|
|
3979
3981
|
ungroup: g,
|
|
3980
3982
|
onBeforeQuery: p
|
|
3981
|
-
} = S(e), { filters: y, relations: h } =
|
|
3983
|
+
} = S(e), { filters: y, relations: h } = on(c);
|
|
3982
3984
|
n({ type: "loading" });
|
|
3983
|
-
const x = await
|
|
3985
|
+
const x = await Vn(
|
|
3984
3986
|
{
|
|
3985
3987
|
dataSource: a,
|
|
3986
3988
|
dimensions: o,
|
|
@@ -3993,14 +3995,14 @@ const Yo = (e) => {
|
|
|
3993
3995
|
ungroup: g
|
|
3994
3996
|
},
|
|
3995
3997
|
i,
|
|
3996
|
-
{ onBeforeQuery:
|
|
3998
|
+
{ onBeforeQuery: Ye(p) }
|
|
3997
3999
|
);
|
|
3998
4000
|
n({ type: "success", data: x });
|
|
3999
4001
|
} catch (a) {
|
|
4000
4002
|
n({ type: "error", error: a });
|
|
4001
4003
|
}
|
|
4002
4004
|
};
|
|
4003
|
-
return
|
|
4005
|
+
return L(
|
|
4004
4006
|
[...A(e), r],
|
|
4005
4007
|
() => {
|
|
4006
4008
|
const { app: i } = r.value, { enabled: a } = S(e);
|
|
@@ -4008,24 +4010,24 @@ const Yo = (e) => {
|
|
|
4008
4010
|
},
|
|
4009
4011
|
{ immediate: !0 }
|
|
4010
4012
|
), D(t.value);
|
|
4011
|
-
},
|
|
4012
|
-
const t =
|
|
4013
|
+
}, lu = (e) => {
|
|
4014
|
+
const t = _(void 0), n = _(void 0);
|
|
4013
4015
|
R("useExecuteQueryByWidgetId");
|
|
4014
|
-
const [r, s] =
|
|
4016
|
+
const [r, s] = V(Vt, {
|
|
4015
4017
|
isLoading: !0,
|
|
4016
4018
|
isError: !1,
|
|
4017
4019
|
isSuccess: !1,
|
|
4018
4020
|
status: "loading",
|
|
4019
4021
|
error: void 0,
|
|
4020
4022
|
data: void 0
|
|
4021
|
-
}), i =
|
|
4023
|
+
}), i = B(), a = async (o) => {
|
|
4022
4024
|
try {
|
|
4023
4025
|
s({ type: "loading" });
|
|
4024
|
-
const { filters: u, ...c } = S(e), { filters: d } =
|
|
4026
|
+
const { filters: u, ...c } = S(e), { filters: d } = on(Ye(u)), {
|
|
4025
4027
|
data: f,
|
|
4026
4028
|
query: l,
|
|
4027
4029
|
pivotQuery: g
|
|
4028
|
-
} = await
|
|
4030
|
+
} = await Hn({
|
|
4029
4031
|
...c,
|
|
4030
4032
|
filters: d,
|
|
4031
4033
|
app: o
|
|
@@ -4035,7 +4037,7 @@ const Yo = (e) => {
|
|
|
4035
4037
|
s({ type: "error", error: u });
|
|
4036
4038
|
}
|
|
4037
4039
|
};
|
|
4038
|
-
return
|
|
4040
|
+
return L(
|
|
4039
4041
|
[...A(e), i],
|
|
4040
4042
|
() => {
|
|
4041
4043
|
const { app: o } = i.value, { enabled: u } = S(e);
|
|
@@ -4047,11 +4049,11 @@ const Yo = (e) => {
|
|
|
4047
4049
|
query: t,
|
|
4048
4050
|
pivotQuery: n
|
|
4049
4051
|
};
|
|
4050
|
-
},
|
|
4052
|
+
}, cu = (e) => {
|
|
4051
4053
|
R("useExecuteCsvQuery");
|
|
4052
|
-
const t = new Z(
|
|
4054
|
+
const t = new Z(Kn, [
|
|
4053
4055
|
X()
|
|
4054
|
-
]), [n, r] =
|
|
4056
|
+
]), [n, r] = pe({
|
|
4055
4057
|
isLoading: !0,
|
|
4056
4058
|
isError: !1,
|
|
4057
4059
|
isSuccess: !1,
|
|
@@ -4061,16 +4063,16 @@ const Yo = (e) => {
|
|
|
4061
4063
|
});
|
|
4062
4064
|
return t.subscribe((s) => {
|
|
4063
4065
|
r(s);
|
|
4064
|
-
}), t.run(S(e)),
|
|
4066
|
+
}), t.run(S(e)), L([...A(e)], () => {
|
|
4065
4067
|
t.run(S(e));
|
|
4066
4068
|
}), ne(() => {
|
|
4067
4069
|
t.destroy();
|
|
4068
4070
|
}), D(n.value);
|
|
4069
|
-
},
|
|
4071
|
+
}, du = (e) => {
|
|
4070
4072
|
R("useExecutePivotQuery");
|
|
4071
|
-
const t = new Z(
|
|
4073
|
+
const t = new Z(zn, [
|
|
4072
4074
|
X()
|
|
4073
|
-
]), [n, r] =
|
|
4075
|
+
]), [n, r] = pe({
|
|
4074
4076
|
isLoading: !0,
|
|
4075
4077
|
isError: !1,
|
|
4076
4078
|
isSuccess: !1,
|
|
@@ -4080,16 +4082,16 @@ const Yo = (e) => {
|
|
|
4080
4082
|
});
|
|
4081
4083
|
return t.subscribe((s) => {
|
|
4082
4084
|
r(s);
|
|
4083
|
-
}), t.run(S(e)),
|
|
4085
|
+
}), t.run(S(e)), L([...A(e)], () => {
|
|
4084
4086
|
t.run(S(e));
|
|
4085
4087
|
}), ne(() => {
|
|
4086
4088
|
t.destroy();
|
|
4087
4089
|
}), D(n.value);
|
|
4088
|
-
},
|
|
4090
|
+
}, fu = (e) => {
|
|
4089
4091
|
R("useExecuteCustomWidgetQuery");
|
|
4090
|
-
const t = new Z(
|
|
4092
|
+
const t = new Z(Gn, [
|
|
4091
4093
|
X()
|
|
4092
|
-
]), [n, r] =
|
|
4094
|
+
]), [n, r] = pe({
|
|
4093
4095
|
data: void 0,
|
|
4094
4096
|
isLoading: !0,
|
|
4095
4097
|
isError: !1,
|
|
@@ -4099,17 +4101,17 @@ const Yo = (e) => {
|
|
|
4099
4101
|
});
|
|
4100
4102
|
return t.subscribe((s) => {
|
|
4101
4103
|
r(s);
|
|
4102
|
-
}), t.run(S(e)),
|
|
4104
|
+
}), t.run(S(e)), L([...A(e)], () => {
|
|
4103
4105
|
t.run(S(e));
|
|
4104
4106
|
}), ne(() => {
|
|
4105
4107
|
t.destroy();
|
|
4106
4108
|
}), D(n.value);
|
|
4107
|
-
},
|
|
4109
|
+
}, pu = (e) => {
|
|
4108
4110
|
R("useGetFilterMembers");
|
|
4109
4111
|
const { filter: t, parentFilters: n = [] } = S(e), r = {
|
|
4110
4112
|
selectedMembers: [],
|
|
4111
4113
|
allMembers: [],
|
|
4112
|
-
...
|
|
4114
|
+
...so(t) ? {
|
|
4113
4115
|
excludeMembers: t.config.excludeMembers,
|
|
4114
4116
|
enableMultiSelection: t.config.enableMultiSelection,
|
|
4115
4117
|
hasBackgroundFilter: !!t.config.backgroundFilter && n.length === 0
|
|
@@ -4118,7 +4120,7 @@ const Yo = (e) => {
|
|
|
4118
4120
|
enableMultiSelection: !1,
|
|
4119
4121
|
hasBackgroundFilter: !1
|
|
4120
4122
|
}
|
|
4121
|
-
}, s = new Z(
|
|
4123
|
+
}, s = new Z(Jn, [X()]), [i, a] = pe({
|
|
4122
4124
|
isLoading: !0,
|
|
4123
4125
|
isError: !1,
|
|
4124
4126
|
isSuccess: !1,
|
|
@@ -4129,24 +4131,24 @@ const Yo = (e) => {
|
|
|
4129
4131
|
});
|
|
4130
4132
|
return s.subscribe((o) => {
|
|
4131
4133
|
a(o);
|
|
4132
|
-
}), s.run(S(e)),
|
|
4134
|
+
}), s.run(S(e)), L([...A(e)], () => {
|
|
4133
4135
|
s.run(S(e));
|
|
4134
4136
|
}), ne(() => {
|
|
4135
4137
|
s.destroy();
|
|
4136
4138
|
}), D(i.value);
|
|
4137
|
-
},
|
|
4139
|
+
}, gu = (e) => {
|
|
4138
4140
|
R("useGetDashboardModel");
|
|
4139
|
-
const [t, n] =
|
|
4141
|
+
const [t, n] = V(ee, {
|
|
4140
4142
|
isLoading: !0,
|
|
4141
4143
|
isError: !1,
|
|
4142
4144
|
isSuccess: !1,
|
|
4143
4145
|
status: "loading",
|
|
4144
4146
|
error: void 0,
|
|
4145
4147
|
data: void 0
|
|
4146
|
-
}), r =
|
|
4148
|
+
}), r = B(), s = async (a) => {
|
|
4147
4149
|
try {
|
|
4148
4150
|
n({ type: "loading" });
|
|
4149
|
-
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, {
|
|
4150
4152
|
includeWidgets: u,
|
|
4151
4153
|
includeFilters: c
|
|
4152
4154
|
});
|
|
@@ -4155,7 +4157,7 @@ const Yo = (e) => {
|
|
|
4155
4157
|
n({ type: "error", error: o });
|
|
4156
4158
|
}
|
|
4157
4159
|
};
|
|
4158
|
-
|
|
4160
|
+
L(
|
|
4159
4161
|
[...A(e), r],
|
|
4160
4162
|
() => {
|
|
4161
4163
|
const { app: a } = r.value, { enabled: o } = S(e);
|
|
@@ -4164,26 +4166,26 @@ const Yo = (e) => {
|
|
|
4164
4166
|
{ immediate: !0 }
|
|
4165
4167
|
);
|
|
4166
4168
|
const i = D(t.value);
|
|
4167
|
-
return D(
|
|
4168
|
-
},
|
|
4169
|
+
return D(Qn(i));
|
|
4170
|
+
}, hu = (e) => {
|
|
4169
4171
|
R("useGetDashboardModels");
|
|
4170
|
-
const [t, n] =
|
|
4172
|
+
const [t, n] = V(ee, {
|
|
4171
4173
|
isLoading: !0,
|
|
4172
4174
|
isError: !1,
|
|
4173
4175
|
isSuccess: !1,
|
|
4174
4176
|
status: "loading",
|
|
4175
4177
|
error: void 0,
|
|
4176
4178
|
data: void 0
|
|
4177
|
-
}), r =
|
|
4179
|
+
}), r = B(), s = async (a) => {
|
|
4178
4180
|
try {
|
|
4179
4181
|
n({ type: "loading" });
|
|
4180
|
-
const o = S(e), u = await
|
|
4182
|
+
const o = S(e), u = await Xn(a.httpClient, o);
|
|
4181
4183
|
n({ type: "success", data: u });
|
|
4182
4184
|
} catch (o) {
|
|
4183
4185
|
n({ type: "error", error: o });
|
|
4184
4186
|
}
|
|
4185
4187
|
};
|
|
4186
|
-
|
|
4188
|
+
L(
|
|
4187
4189
|
[...A(e), r],
|
|
4188
4190
|
() => {
|
|
4189
4191
|
const { app: a } = r.value, { enabled: o } = S(e);
|
|
@@ -4192,27 +4194,27 @@ const Yo = (e) => {
|
|
|
4192
4194
|
{ immediate: !0 }
|
|
4193
4195
|
);
|
|
4194
4196
|
const i = D(t.value);
|
|
4195
|
-
return D(
|
|
4196
|
-
},
|
|
4197
|
+
return D(Zn(i));
|
|
4198
|
+
}, mu = (e) => {
|
|
4197
4199
|
R("useGetSharedFormula");
|
|
4198
|
-
const [t, n] =
|
|
4200
|
+
const [t, n] = V(ee, {
|
|
4199
4201
|
isLoading: !0,
|
|
4200
4202
|
isError: !1,
|
|
4201
4203
|
isSuccess: !1,
|
|
4202
4204
|
status: "loading",
|
|
4203
4205
|
error: void 0,
|
|
4204
4206
|
data: void 0
|
|
4205
|
-
}), r =
|
|
4207
|
+
}), r = B(), s = (a) => {
|
|
4206
4208
|
n({ type: "loading" });
|
|
4207
4209
|
const { dataSource: o, name: u, oid: c } = S(e);
|
|
4208
4210
|
let d = Promise.resolve(null);
|
|
4209
|
-
c ? d =
|
|
4211
|
+
c ? d = tr(c, a) : u && o && (d = nr(u, o, a)), d.then((f) => {
|
|
4210
4212
|
n({ type: "success", data: f });
|
|
4211
4213
|
}).catch((f) => {
|
|
4212
4214
|
n({ type: "error", error: f });
|
|
4213
4215
|
});
|
|
4214
4216
|
};
|
|
4215
|
-
|
|
4217
|
+
L(
|
|
4216
4218
|
[...A(e), r],
|
|
4217
4219
|
() => {
|
|
4218
4220
|
const { app: a } = r.value, { enabled: o } = S(e);
|
|
@@ -4222,27 +4224,27 @@ const Yo = (e) => {
|
|
|
4222
4224
|
);
|
|
4223
4225
|
const i = D(t.value);
|
|
4224
4226
|
return D(
|
|
4225
|
-
|
|
4227
|
+
er(i)
|
|
4226
4228
|
);
|
|
4227
|
-
},
|
|
4229
|
+
}, yu = (e) => {
|
|
4228
4230
|
R("useGetWidgetModel");
|
|
4229
|
-
const [t, n] =
|
|
4231
|
+
const [t, n] = V(ee, {
|
|
4230
4232
|
isLoading: !0,
|
|
4231
4233
|
isError: !1,
|
|
4232
4234
|
isSuccess: !1,
|
|
4233
4235
|
status: "loading",
|
|
4234
4236
|
error: void 0,
|
|
4235
4237
|
data: void 0
|
|
4236
|
-
}), r =
|
|
4238
|
+
}), r = B(), s = async (i) => {
|
|
4237
4239
|
try {
|
|
4238
4240
|
n({ type: "loading" });
|
|
4239
|
-
const { dashboardOid: a, widgetOid: o } = S(e), u = await
|
|
4241
|
+
const { dashboardOid: a, widgetOid: o } = S(e), u = await rr(i.httpClient, a, o);
|
|
4240
4242
|
n({ type: "success", data: u });
|
|
4241
4243
|
} catch (a) {
|
|
4242
4244
|
n({ type: "error", error: a });
|
|
4243
4245
|
}
|
|
4244
4246
|
};
|
|
4245
|
-
return
|
|
4247
|
+
return L(
|
|
4246
4248
|
[...A(e), r],
|
|
4247
4249
|
() => {
|
|
4248
4250
|
const { app: i } = r.value, { enabled: a } = S(e);
|
|
@@ -4250,25 +4252,25 @@ const Yo = (e) => {
|
|
|
4250
4252
|
},
|
|
4251
4253
|
{ immediate: !0 }
|
|
4252
4254
|
), D(t.value);
|
|
4253
|
-
},
|
|
4255
|
+
}, bu = (e) => {
|
|
4254
4256
|
R("useGetHierarchyModels");
|
|
4255
|
-
const [t, n] =
|
|
4257
|
+
const [t, n] = V(ee, {
|
|
4256
4258
|
isLoading: !0,
|
|
4257
4259
|
isError: !1,
|
|
4258
4260
|
isSuccess: !1,
|
|
4259
4261
|
status: "loading",
|
|
4260
4262
|
error: void 0,
|
|
4261
4263
|
data: void 0
|
|
4262
|
-
}), r =
|
|
4264
|
+
}), r = B(), s = async (i) => {
|
|
4263
4265
|
try {
|
|
4264
4266
|
n({ type: "loading" });
|
|
4265
|
-
const a = await
|
|
4267
|
+
const a = await sr(i.httpClient, S(e));
|
|
4266
4268
|
n({ type: "success", data: a });
|
|
4267
4269
|
} catch (a) {
|
|
4268
4270
|
n({ type: "error", error: a });
|
|
4269
4271
|
}
|
|
4270
4272
|
};
|
|
4271
|
-
return
|
|
4273
|
+
return L(
|
|
4272
4274
|
[...A(e), r],
|
|
4273
4275
|
() => {
|
|
4274
4276
|
const { app: i } = r.value, { enabled: a } = S(e);
|
|
@@ -4276,18 +4278,18 @@ const Yo = (e) => {
|
|
|
4276
4278
|
},
|
|
4277
4279
|
{ immediate: !0 }
|
|
4278
4280
|
), D(t.value);
|
|
4279
|
-
},
|
|
4280
|
-
const [r, s] =
|
|
4281
|
+
}, Su = (e, t, n) => {
|
|
4282
|
+
const [r, s] = V(ee, {
|
|
4281
4283
|
isLoading: !0,
|
|
4282
4284
|
isError: !1,
|
|
4283
4285
|
isSuccess: !1,
|
|
4284
4286
|
status: "loading",
|
|
4285
4287
|
error: void 0,
|
|
4286
4288
|
data: void 0
|
|
4287
|
-
}), i =
|
|
4289
|
+
}), i = B(), a = async (o) => {
|
|
4288
4290
|
try {
|
|
4289
4291
|
s({ type: "loading" });
|
|
4290
|
-
const u =
|
|
4292
|
+
const u = Ye(e), c = t ? S(t) : {}, d = n ? S(n) : {}, f = {
|
|
4291
4293
|
requestConfig: d.requestConfig ? S(d.requestConfig) : {},
|
|
4292
4294
|
skipTrackingParam: !0
|
|
4293
4295
|
}, l = await o.call(
|
|
@@ -4300,7 +4302,7 @@ const Yo = (e) => {
|
|
|
4300
4302
|
s({ type: "error", error: u });
|
|
4301
4303
|
}
|
|
4302
4304
|
};
|
|
4303
|
-
return
|
|
4305
|
+
return L(
|
|
4304
4306
|
[...A(e, t, n), i],
|
|
4305
4307
|
() => {
|
|
4306
4308
|
const { app: o } = i.value, u = S(n || {}).enabled;
|
|
@@ -4309,20 +4311,56 @@ const Yo = (e) => {
|
|
|
4309
4311
|
{ immediate: !0 }
|
|
4310
4312
|
), D(r.value);
|
|
4311
4313
|
};
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
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
|
+
}
|
|
4323
4361
|
}
|
|
4324
|
-
const
|
|
4325
|
-
const e =
|
|
4362
|
+
const Ou = () => {
|
|
4363
|
+
const e = ur(), t = B(), n = lr(), r = e;
|
|
4326
4364
|
return {
|
|
4327
4365
|
/**
|
|
4328
4366
|
* Registers a new custom widget.
|
|
@@ -4330,17 +4368,18 @@ const lu = () => {
|
|
|
4330
4368
|
* @param customWidgetType - The unique identifier for the custom widget type.
|
|
4331
4369
|
* @param customWidget - The custom widget component to register.
|
|
4332
4370
|
*/
|
|
4333
|
-
registerCustomWidget: (
|
|
4334
|
-
const
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
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
|
|
4344
4383
|
);
|
|
4345
4384
|
},
|
|
4346
4385
|
/**
|
|
@@ -4349,45 +4388,45 @@ const lu = () => {
|
|
|
4349
4388
|
* @param customWidgetType - The type of the custom widget.
|
|
4350
4389
|
* @returns True if the custom widget is registered, false otherwise.
|
|
4351
4390
|
*/
|
|
4352
|
-
hasCustomWidget: (
|
|
4391
|
+
hasCustomWidget: (s) => e.value.customWidgetsMap.has(s)
|
|
4353
4392
|
};
|
|
4354
|
-
},
|
|
4393
|
+
}, vu = (e, t = {}) => {
|
|
4355
4394
|
R("useComposedDashboard");
|
|
4356
|
-
const n = new Z(
|
|
4395
|
+
const n = new Z(fr, [
|
|
4357
4396
|
X()
|
|
4358
|
-
]), [r, s] =
|
|
4397
|
+
]), [r, s] = pe(S(e));
|
|
4359
4398
|
n.subscribe(({ dashboard: o }) => {
|
|
4360
4399
|
s(o);
|
|
4361
|
-
}), n.run(S(e), t),
|
|
4400
|
+
}), n.run(S(e), t), L([...A(e)], () => {
|
|
4362
4401
|
n.run(S(e), t);
|
|
4363
4402
|
}), ne(() => {
|
|
4364
4403
|
n.destroy();
|
|
4365
4404
|
});
|
|
4366
|
-
const i =
|
|
4405
|
+
const i = ot(n, "setFilters"), a = ot(n, "setWidgetsLayout");
|
|
4367
4406
|
return {
|
|
4368
4407
|
dashboard: r,
|
|
4369
4408
|
setFilters: i,
|
|
4370
4409
|
setWidgetsLayout: a
|
|
4371
4410
|
};
|
|
4372
|
-
},
|
|
4411
|
+
}, xu = (e, t) => {
|
|
4373
4412
|
R("useJtdWidget");
|
|
4374
|
-
const n = new Z(
|
|
4413
|
+
const n = new Z(pr, [
|
|
4375
4414
|
X(),
|
|
4376
|
-
|
|
4377
|
-
]), r =
|
|
4415
|
+
gr()
|
|
4416
|
+
]), r = _(null);
|
|
4378
4417
|
n.subscribe((i) => {
|
|
4379
4418
|
r.value = i;
|
|
4380
4419
|
});
|
|
4381
4420
|
const s = () => {
|
|
4382
|
-
const i =
|
|
4421
|
+
const i = Er(e), a = S(t);
|
|
4383
4422
|
n.run(i, a);
|
|
4384
4423
|
};
|
|
4385
|
-
return s(),
|
|
4424
|
+
return s(), L([...A(e), ...A(t)], () => {
|
|
4386
4425
|
s();
|
|
4387
4426
|
}), ne(() => {
|
|
4388
4427
|
n.destroy();
|
|
4389
4428
|
}), r;
|
|
4390
|
-
},
|
|
4429
|
+
}, lo = m({
|
|
4391
4430
|
props: {
|
|
4392
4431
|
/**
|
|
4393
4432
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
@@ -4405,8 +4444,8 @@ const lu = () => {
|
|
|
4405
4444
|
*/
|
|
4406
4445
|
position: Object
|
|
4407
4446
|
},
|
|
4408
|
-
setup: (e, { slots: t }) =>
|
|
4409
|
-
}),
|
|
4447
|
+
setup: (e, { slots: t }) => _t(hr, e, t, [])
|
|
4448
|
+
}), co = ({
|
|
4410
4449
|
drilldownPaths: e,
|
|
4411
4450
|
initialDimension: t
|
|
4412
4451
|
}) => {
|
|
@@ -4414,24 +4453,24 @@ const lu = () => {
|
|
|
4414
4453
|
throw new Error(
|
|
4415
4454
|
"Initial dimension has to be specified to use drilldown with custom components"
|
|
4416
4455
|
);
|
|
4417
|
-
const n =
|
|
4418
|
-
|
|
4456
|
+
const n = _([]), r = _(), s = _([]), i = _([]), a = Ve(() => [
|
|
4457
|
+
mr(t),
|
|
4419
4458
|
...n.value.map(({ nextDimension: l }) => l)
|
|
4420
|
-
]), o =
|
|
4459
|
+
]), o = Ve(
|
|
4421
4460
|
() => e.value.filter((l) => {
|
|
4422
4461
|
if (O.isAttribute(l)) {
|
|
4423
4462
|
const y = l;
|
|
4424
4463
|
return a.value.every(
|
|
4425
|
-
(h) => !
|
|
4464
|
+
(h) => !ut(h, y)
|
|
4426
4465
|
);
|
|
4427
4466
|
}
|
|
4428
4467
|
const p = l;
|
|
4429
4468
|
return a.value.every(
|
|
4430
|
-
(y, h) =>
|
|
4469
|
+
(y, h) => ut(y, p.levels[h])
|
|
4431
4470
|
);
|
|
4432
4471
|
})
|
|
4433
4472
|
), u = (l, g, p) => {
|
|
4434
|
-
n.value =
|
|
4473
|
+
n.value = yr(
|
|
4435
4474
|
n.value,
|
|
4436
4475
|
l,
|
|
4437
4476
|
g,
|
|
@@ -4442,7 +4481,7 @@ const lu = () => {
|
|
|
4442
4481
|
}, d = () => {
|
|
4443
4482
|
n.value = [], f();
|
|
4444
4483
|
}, f = () => {
|
|
4445
|
-
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g =
|
|
4484
|
+
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g = br(
|
|
4446
4485
|
n.value,
|
|
4447
4486
|
t,
|
|
4448
4487
|
l
|
|
@@ -4459,7 +4498,7 @@ const lu = () => {
|
|
|
4459
4498
|
sliceDrilldownSelections: c,
|
|
4460
4499
|
clearDrilldownSelections: d
|
|
4461
4500
|
};
|
|
4462
|
-
},
|
|
4501
|
+
}, fo = m({
|
|
4463
4502
|
props: {
|
|
4464
4503
|
/**
|
|
4465
4504
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
|
@@ -4495,11 +4534,11 @@ const lu = () => {
|
|
|
4495
4534
|
},
|
|
4496
4535
|
setup: () => {
|
|
4497
4536
|
}
|
|
4498
|
-
}),
|
|
4537
|
+
}), po = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, go = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, Cu = /* @__PURE__ */ m({
|
|
4499
4538
|
__name: "drilldown-widget",
|
|
4500
|
-
props:
|
|
4539
|
+
props: fo.props,
|
|
4501
4540
|
setup(e) {
|
|
4502
|
-
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 = _([]), {
|
|
4503
4542
|
drilldownFilters: o,
|
|
4504
4543
|
// computed
|
|
4505
4544
|
drilldownDimension: u,
|
|
@@ -4511,16 +4550,16 @@ const lu = () => {
|
|
|
4511
4550
|
selectDrilldown: f,
|
|
4512
4551
|
sliceDrilldownSelections: l,
|
|
4513
4552
|
clearDrilldownSelections: g
|
|
4514
|
-
} =
|
|
4553
|
+
} = co({
|
|
4515
4554
|
drilldownPaths: n,
|
|
4516
4555
|
initialDimension: r.value
|
|
4517
4556
|
}), p = (P) => {
|
|
4518
4557
|
f(a.value, P);
|
|
4519
|
-
}, y =
|
|
4558
|
+
}, y = Ve(() => {
|
|
4520
4559
|
const P = (C) => C === "drilldown.drillMenuItem" ? "Drill" : C;
|
|
4521
4560
|
return [
|
|
4522
|
-
|
|
4523
|
-
|
|
4561
|
+
Sr(a.value, u.value),
|
|
4562
|
+
Or(
|
|
4524
4563
|
d.value,
|
|
4525
4564
|
u.value,
|
|
4526
4565
|
p,
|
|
@@ -4534,17 +4573,17 @@ const lu = () => {
|
|
|
4534
4573
|
}, w = () => {
|
|
4535
4574
|
i.value = null;
|
|
4536
4575
|
};
|
|
4537
|
-
return (P, C) => (
|
|
4538
|
-
|
|
4576
|
+
return (P, C) => (Nr(), Rr("div", po, [
|
|
4577
|
+
Te(P.$slots, "contextMenu", {
|
|
4539
4578
|
contextMenuProps: { position: i.value, itemSections: y.value, closeContextMenu: w }
|
|
4540
4579
|
}, () => [
|
|
4541
|
-
|
|
4580
|
+
lt(T(lo), {
|
|
4542
4581
|
position: i.value,
|
|
4543
4582
|
itemSections: y.value,
|
|
4544
4583
|
closeContextMenu: w
|
|
4545
4584
|
}, null, 8, ["position", "itemSections"])
|
|
4546
4585
|
]),
|
|
4547
|
-
|
|
4586
|
+
Te(P.$slots, "breadcrumbs", {
|
|
4548
4587
|
drilldownBreadcrumbsProps: {
|
|
4549
4588
|
clearDrilldownSelections: T(g),
|
|
4550
4589
|
sliceDrilldownSelections: T(l),
|
|
@@ -4552,15 +4591,15 @@ const lu = () => {
|
|
|
4552
4591
|
drilldownDimension: T(u)
|
|
4553
4592
|
}
|
|
4554
4593
|
}, () => [
|
|
4555
|
-
|
|
4594
|
+
lt(T(Mr), {
|
|
4556
4595
|
"clear-drilldown-selections": T(g),
|
|
4557
4596
|
"slice-drilldown-selections": T(l),
|
|
4558
4597
|
"filters-display-values": T(c),
|
|
4559
4598
|
"current-dimension": T(u)
|
|
4560
4599
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
|
4561
4600
|
]),
|
|
4562
|
-
|
|
4563
|
-
|
|
4601
|
+
Tr("div", go, [
|
|
4602
|
+
Te(P.$slots, "chart", {
|
|
4564
4603
|
drilldownFilters: T(o),
|
|
4565
4604
|
drilldownDimension: T(u),
|
|
4566
4605
|
onDataPointsSelected: x,
|
|
@@ -4569,7 +4608,7 @@ const lu = () => {
|
|
|
4569
4608
|
])
|
|
4570
4609
|
]));
|
|
4571
4610
|
}
|
|
4572
|
-
}),
|
|
4611
|
+
}), wu = m({
|
|
4573
4612
|
props: {
|
|
4574
4613
|
/**
|
|
4575
4614
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
|
@@ -4587,13 +4626,6 @@ const lu = () => {
|
|
|
4587
4626
|
type: String,
|
|
4588
4627
|
required: !0
|
|
4589
4628
|
},
|
|
4590
|
-
/**
|
|
4591
|
-
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.contextMenuItems}
|
|
4592
|
-
*
|
|
4593
|
-
* @category Widget
|
|
4594
|
-
* @internal
|
|
4595
|
-
*/
|
|
4596
|
-
contextMenuItems: Array,
|
|
4597
4629
|
/**
|
|
4598
4630
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.dataOptions}
|
|
4599
4631
|
*
|
|
@@ -4646,13 +4678,6 @@ const lu = () => {
|
|
|
4646
4678
|
* @category Callbacks
|
|
4647
4679
|
*/
|
|
4648
4680
|
onBeforeRender: Function,
|
|
4649
|
-
/**
|
|
4650
|
-
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataPointContextMenuClose}
|
|
4651
|
-
*
|
|
4652
|
-
* @category Callbacks
|
|
4653
|
-
* @internal
|
|
4654
|
-
*/
|
|
4655
|
-
onContextMenuClose: Function,
|
|
4656
4681
|
/**
|
|
4657
4682
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataPointClick}
|
|
4658
4683
|
*
|
|
@@ -4704,13 +4729,11 @@ const lu = () => {
|
|
|
4704
4729
|
*/
|
|
4705
4730
|
onDataReady: Function
|
|
4706
4731
|
},
|
|
4707
|
-
setup: (e) => b(
|
|
4708
|
-
}),
|
|
4732
|
+
setup: (e) => b(vr, e)
|
|
4733
|
+
}), Pu = m({
|
|
4709
4734
|
props: {
|
|
4710
4735
|
/** @internal */
|
|
4711
4736
|
bottomSlot: Object,
|
|
4712
|
-
/** @internal */
|
|
4713
|
-
contextMenuItems: Array,
|
|
4714
4737
|
/**
|
|
4715
4738
|
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.dashboardOid}
|
|
4716
4739
|
*
|
|
@@ -4764,8 +4787,6 @@ const lu = () => {
|
|
|
4764
4787
|
* @category Callbacks
|
|
4765
4788
|
*/
|
|
4766
4789
|
onBeforeRender: Function,
|
|
4767
|
-
/** @internal */
|
|
4768
|
-
onContextMenuClose: Function,
|
|
4769
4790
|
/**
|
|
4770
4791
|
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.onDataPointClick}
|
|
4771
4792
|
*
|
|
@@ -4816,8 +4837,8 @@ const lu = () => {
|
|
|
4816
4837
|
*/
|
|
4817
4838
|
onDataReady: Function
|
|
4818
4839
|
},
|
|
4819
|
-
setup: (e) => b(
|
|
4820
|
-
}),
|
|
4840
|
+
setup: (e) => b(xr, e)
|
|
4841
|
+
}), Du = m({
|
|
4821
4842
|
props: {
|
|
4822
4843
|
bottomSlot: Object,
|
|
4823
4844
|
dataOptions: {
|
|
@@ -4832,8 +4853,8 @@ const lu = () => {
|
|
|
4832
4853
|
topSlot: Object,
|
|
4833
4854
|
widgetStyleOptions: Object
|
|
4834
4855
|
},
|
|
4835
|
-
setup: (e) => b(
|
|
4836
|
-
}),
|
|
4856
|
+
setup: (e) => b(Cr, e)
|
|
4857
|
+
}), ju = m({
|
|
4837
4858
|
props: {
|
|
4838
4859
|
/**
|
|
4839
4860
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.dataOptions}
|
|
@@ -4927,8 +4948,8 @@ const lu = () => {
|
|
|
4927
4948
|
*/
|
|
4928
4949
|
onHeaderCellFormat: Function
|
|
4929
4950
|
},
|
|
4930
|
-
setup: (e) => b(
|
|
4931
|
-
}),
|
|
4951
|
+
setup: (e) => b(wr, e)
|
|
4952
|
+
}), Fu = m({
|
|
4932
4953
|
props: {
|
|
4933
4954
|
/**
|
|
4934
4955
|
* Unique identifier of the widget
|
|
@@ -5053,8 +5074,8 @@ const lu = () => {
|
|
|
5053
5074
|
*/
|
|
5054
5075
|
onDataPointsSelected: Function
|
|
5055
5076
|
},
|
|
5056
|
-
setup: (e) => b(
|
|
5057
|
-
}),
|
|
5077
|
+
setup: (e) => b(Pr, e)
|
|
5078
|
+
}), Au = m({
|
|
5058
5079
|
props: {
|
|
5059
5080
|
/**
|
|
5060
5081
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
|
@@ -5068,8 +5089,8 @@ const lu = () => {
|
|
|
5068
5089
|
*/
|
|
5069
5090
|
config: Object
|
|
5070
5091
|
},
|
|
5071
|
-
setup: (e) => b(
|
|
5072
|
-
}),
|
|
5092
|
+
setup: (e) => b(Dr, e)
|
|
5093
|
+
}), Lu = m({
|
|
5073
5094
|
props: {
|
|
5074
5095
|
/**
|
|
5075
5096
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
|
@@ -5107,118 +5128,118 @@ const lu = () => {
|
|
|
5107
5128
|
*/
|
|
5108
5129
|
styleOptions: Object
|
|
5109
5130
|
},
|
|
5110
|
-
setup: (e) => b(
|
|
5131
|
+
setup: (e) => b(jr, e)
|
|
5111
5132
|
});
|
|
5112
|
-
function
|
|
5113
|
-
return
|
|
5133
|
+
function ho(e) {
|
|
5134
|
+
return Fr.toDashboardProps(e);
|
|
5114
5135
|
}
|
|
5115
|
-
const
|
|
5136
|
+
const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5116
5137
|
__proto__: null,
|
|
5117
|
-
toDashboardProps:
|
|
5118
|
-
}, 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(
|
|
5119
5140
|
e,
|
|
5120
5141
|
t,
|
|
5121
5142
|
n
|
|
5122
|
-
),
|
|
5143
|
+
), Oo = (e, t) => te.removeFilter(e, t), vo = (e, t) => te.removeFilters(e, t), Nu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5123
5144
|
__proto__: null,
|
|
5124
|
-
addFilter:
|
|
5125
|
-
addFilters:
|
|
5126
|
-
removeFilter:
|
|
5127
|
-
removeFilters:
|
|
5128
|
-
replaceFilter:
|
|
5129
|
-
replaceFilters:
|
|
5130
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5131
|
-
function
|
|
5132
|
-
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);
|
|
5133
5154
|
}
|
|
5134
|
-
function
|
|
5135
|
-
return
|
|
5155
|
+
function Po(e) {
|
|
5156
|
+
return U.toTableProps(e);
|
|
5136
5157
|
}
|
|
5137
|
-
function
|
|
5138
|
-
return
|
|
5158
|
+
function Do(e) {
|
|
5159
|
+
return U.toPivotTableProps(e);
|
|
5139
5160
|
}
|
|
5140
|
-
function
|
|
5141
|
-
return
|
|
5161
|
+
function jo(e) {
|
|
5162
|
+
return U.toChartWidgetProps(e);
|
|
5142
5163
|
}
|
|
5143
|
-
function
|
|
5144
|
-
return
|
|
5164
|
+
function Fo(e) {
|
|
5165
|
+
return U.toPivotTableWidgetProps(e);
|
|
5145
5166
|
}
|
|
5146
|
-
function
|
|
5147
|
-
return
|
|
5167
|
+
function Ao(e) {
|
|
5168
|
+
return U.toTextWidgetProps(e);
|
|
5148
5169
|
}
|
|
5149
|
-
function
|
|
5150
|
-
return
|
|
5170
|
+
function Lo(e) {
|
|
5171
|
+
return U.toWidgetProps(e);
|
|
5151
5172
|
}
|
|
5152
|
-
const
|
|
5173
|
+
const Ru = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5153
5174
|
__proto__: null,
|
|
5154
|
-
toChartProps:
|
|
5155
|
-
toChartWidgetProps:
|
|
5156
|
-
toExecutePivotQueryParams:
|
|
5157
|
-
toExecuteQueryParams:
|
|
5158
|
-
toPivotTableProps:
|
|
5159
|
-
toPivotTableWidgetProps:
|
|
5160
|
-
toTableProps:
|
|
5161
|
-
toTextWidgetProps:
|
|
5162
|
-
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
|
|
5163
5184
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5164
5185
|
export {
|
|
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
|
-
|
|
5223
|
-
|
|
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
|
|
5224
5245
|
};
|