hlrender 0.0.10 → 0.0.11
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/{affix-widget-b880bb69.js → affix-widget-09d896ce.js} +16 -16
- package/{alert-widget-1eee9d26.js → alert-widget-07d1f81e.js} +16 -16
- package/{anchor-widget-e63ab8cf.js → anchor-widget-34ee6615.js} +13 -13
- package/{auto-complete-widget-529fa579.js → auto-complete-widget-06e8ab97.js} +16 -16
- package/{avatar-widget-73044a24.js → avatar-widget-88abc990.js} +16 -16
- package/{backtop-widget-cd25f3f0.js → backtop-widget-136d8760.js} +16 -16
- package/{badge-widget-708a5967.js → badge-widget-00c67aea.js} +16 -16
- package/{baseImp-f15f845c.js → baseImp-6de567f5.js} +743 -739
- package/{breadcrumb-widget-abd03d8f.js → breadcrumb-widget-88e8760d.js} +13 -13
- package/{button-widget-a24579d0.js → button-widget-da254e24.js} +16 -16
- package/{cache-widget-54973b2d.js → cache-widget-c3704d8b.js} +15 -15
- package/{card-widget-fbc3d65c.js → card-widget-340dc200.js} +14 -14
- package/{carousel-widget-2492c5c1.js → carousel-widget-3efe1e3f.js} +14 -14
- package/cascader-widget-a8b2b9f3.js +136 -0
- package/{chart-widget-3c1ba3f1.js → chart-widget-3fa591bd.js} +13 -13
- package/checkbox-widget-1763fe87.js +83 -0
- package/{collapse-widget-14988f7c.js → collapse-widget-17ea1e3a.js} +14 -14
- package/{color-picker-widget-9f5598c4.js → color-picker-widget-8ffc757d.js} +15 -15
- package/{cont-cell-widget-dd0d897e.js → cont-cell-widget-627285b3.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-ee6a4873.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-5fd92418.js} +5 -5
- package/{cont-widget-9f94b9c2.js → cont-widget-271709f5.js} +5 -5
- package/content-wrapper-45ed31e2.js +14 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-824560cf.js → content-wrapper.vue_vue_type_script_setup_true_lang-7c2b51ee.js} +3 -3
- package/{date-picker-range-widget-f85bff25.js → date-picker-range-widget-1ed067ba.js} +15 -15
- package/{date-picker-widget-a318f7ba.js → date-picker-widget-13242a45.js} +15 -15
- package/default-slot-widget-8da28e30.js +24 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-7b33c667.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b6422690.js} +7 -7
- package/{descriptions-widget-a34c87f9.js → descriptions-widget-07aae80f.js} +14 -14
- package/{dialog-257fc54d.js → dialog-701b8c0a.js} +2 -2
- package/{dialog-widget-8e7e59d6.js → dialog-widget-4133a39f.js} +15 -15
- package/{divider-widget-9c8dc222.js → divider-widget-2e6ab845.js} +16 -16
- package/{drag-wrapper-e795b23b.js → drag-wrapper-9194080d.js} +6 -6
- package/{drawer-widget-fdd17812.js → drawer-widget-dc73d1ca.js} +15 -15
- package/{dropdown-widget-1b76f75b.js → dropdown-widget-4bec3b6b.js} +14 -14
- package/{empty-widget-d17fbe26.js → empty-widget-b09cb9bc.js} +16 -16
- package/{enum-type-097adda9.js → enum-type-0083e5e5.js} +1 -1
- package/{enum-type-53ead601.js → enum-type-965ecb4e.js} +6 -5
- package/{expression-3824372e.js → expression-78a5f136.js} +3 -3
- package/feedback-widget-339b6b9f.js +24 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-c87120ec.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-ec6a8b0b.js} +5 -5
- package/{fieldobj-7c43c5b8.js → fieldobj-079cc6a1.js} +1 -1
- package/{file-upload-widget-a4f52943.js → file-upload-widget-ad790e94.js} +16 -16
- package/{form-item-wrapper-8084f223.js → form-item-wrapper-f428a5b3.js} +11 -11
- package/{form-widget-4d1bbba1.js → form-widget-aa88b04c.js} +10 -10
- package/{grid-col-widget-bf1b98fe.js → grid-col-widget-3d4def04.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-9d9adb70.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-6c8a6a99.js} +5 -5
- package/{grid-widget-35b89143.js → grid-widget-0d8adfb3.js} +5 -5
- package/{html-text-widget-bc40d5d7.js → html-text-widget-261eaf3d.js} +14 -14
- package/{iframe-widget-8bf7b244.js → iframe-widget-b8434abd.js} +13 -13
- package/{image-widget-70216491.js → image-widget-931a54a9.js} +13 -13
- package/{index-0c351013.js → index-22bda53a.js} +1 -1
- package/{index-75dd1545.js → index-2b7ed19f.js} +21 -5
- package/{index-f0e671be.js → index-94d0325b.js} +4 -4
- package/{input-number-widget-c492e98e.js → input-number-widget-627ba574.js} +15 -15
- package/{input-widget-85c1b62e.js → input-widget-1af63077.js} +16 -16
- package/{label-wrapper-7d7fd3a5.js → label-wrapper-bb67454d.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-5d9bc078.js → label-wrapper.vue_vue_type_style_index_0_lang-406a5b48.js} +3 -3
- package/{link-widget-7f8d6bbb.js → link-widget-b763c145.js} +16 -16
- package/{ltable-col-widget-9a1a8cd1.js → ltable-col-widget-ac72367a.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-85acae71.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-fd2759be.js} +10 -10
- package/{ltable-widget-a6fec497.js → ltable-widget-fbfde49d.js} +5 -5
- package/{menu-widget-3b00fbb7.js → menu-widget-839b5597.js} +14 -14
- package/{model-widget-e046dd75.js → model-widget-f95af04f.js} +13 -13
- package/{multirow-66cf8049.js → multirow-be69baf2.js} +6 -6
- package/{multirow-widget-c42028a6.js → multirow-widget-2a8e565b.js} +15 -15
- package/package.json +1 -1
- package/{pagination-widget-aecb2f79.js → pagination-widget-26a33d29.js} +13 -13
- package/{picture-upload-widget-384e80aa.js → picture-upload-widget-8e531089.js} +16 -16
- package/{progress-widget-ad14f636.js → progress-widget-cc49f312.js} +14 -14
- package/{propresult-942bd3a1.js → propresult-92830dff.js} +1 -1
- package/radio-widget-5ef72242.js +83 -0
- package/{range-widget-1796a053.js → range-widget-75dd7393.js} +16 -16
- package/{rate-widget-2d45eb82.js → rate-widget-4d727592.js} +15 -15
- package/render.es.js +30 -30
- package/render.umd.js +339 -339
- package/{result-widget-0c219b3a.js → result-widget-520d5f63.js} +14 -14
- package/{rich-editor-widget-2701b179.js → rich-editor-widget-7d97a0ac.js} +15 -15
- package/{router-widget-7e7b387c.js → router-widget-0a17cd89.js} +13 -13
- package/{select-widget-836cdedc.js → select-widget-4601c748.js} +59 -57
- package/{sfc-2856e176.js → sfc-bedcee5e.js} +8 -8
- package/share-field-46cfb27c.js +695 -0
- package/{share-file-302862a8.js → share-file-caae654c.js} +5 -5
- package/{slider-widget-2fd12571.js → slider-widget-4258703e.js} +15 -15
- package/{slot-c0a43ef6.js → slot-87815022.js} +4 -4
- package/{static-text-widget-985fff71.js → static-text-widget-f7c9f75e.js} +14 -14
- package/{steps-widget-be56b8a4.js → steps-widget-7ed4714f.js} +13 -13
- package/subMenu-widget-b71b263f.js +16 -0
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-ad6a8a17.js → subMenu-widget.vue_vue_type_script_setup_true_lang-e00474cd.js} +3 -3
- package/{switch-widget-ee6e7fc5.js → switch-widget-a7ca9805.js} +15 -15
- package/{tab-pane-widget-737ac263.js → tab-pane-widget-aac721c1.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-89eb086e.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-507add54.js} +5 -5
- package/table-col-widget-41f6fc8b.js +20 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-0439f4b3.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-23943a07.js} +6 -6
- package/{table-widget-01cc8c7c.js → table-widget-04ae323f.js} +15 -15
- package/{tabs-widget-6e941c91.js → tabs-widget-a80add4e.js} +9 -9
- package/{tag-widget-5cfae48e.js → tag-widget-b2ad8430.js} +16 -16
- package/{text-widget-08421ab5.js → text-widget-f11b31ef.js} +16 -16
- package/{textarea-widget-63e98c4d.js → textarea-widget-0b1aa924.js} +15 -15
- package/{time-picker-range-widget-af5d1904.js → time-picker-range-widget-cee1d0db.js} +15 -15
- package/{time-picker-widget-1a63da71.js → time-picker-widget-3327346e.js} +15 -15
- package/{time-select-widget-46ac5f3a.js → time-select-widget-b8ef282f.js} +15 -15
- package/{tmpl-widget-e730591c.js → tmpl-widget-41fe8438.js} +14 -14
- package/{tree-select-widget-ba634e93.js → tree-select-widget-955b88bf.js} +50 -49
- package/{tree-widget-04c4610a.js → tree-widget-b928fb54.js} +13 -13
- package/{uuid-ca7f26f2.js → uuid-8f83f4bc.js} +1 -1
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-9bf698d8.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-3f856074.js} +7 -7
- package/{wrapper-widget-ec9c3fed.js → wrapper-widget-0492ec02.js} +6 -6
- package/cascader-widget-52430c60.js +0 -124
- package/checkbox-widget-d9ed539c.js +0 -82
- package/content-wrapper-fef2d257.js +0 -14
- package/default-slot-widget-e1947d7b.js +0 -24
- package/feedback-widget-ca5fbd1d.js +0 -24
- package/radio-widget-2425bc55.js +0 -82
- package/share-field-1f172d23.js +0 -687
- package/subMenu-widget-58aef475.js +0 -16
- package/table-col-widget-667bc40e.js +0 -20
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var ta = Object.defineProperty;
|
|
2
2
|
var ea = (t, e, r) => e in t ? ta(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var M = (t, e, r) => (ea(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
import { p as
|
|
5
|
-
import { u as ri, k as
|
|
6
|
-
import { O as ha, C as G, E as
|
|
4
|
+
import { p as K0, q as Js, l as yt, t as q0, f as $0, m as Dr, e as Bt, o as zt, r as ti, d as mt, B as se, k as wr, s as ra, a as B0, u as F0, v as na, w as sa, x as ia, y as oa, z as aa, A as ca, h as J0, n as Dt, C as ei, D as xa, E as fa, F as ua } from "./enum-type-965ecb4e.js";
|
|
5
|
+
import { u as ri, k as ue, c as c0, t as la, g as ni } from "./uuid-8f83f4bc.js";
|
|
6
|
+
import { O as ha, C as G, E as at, b as da, c as tn, V as x0, F as ie, P as en, d as pa, e as rn, S as va, D as si, f as Ba } from "./enum-type-0083e5e5.js";
|
|
7
7
|
import { u as nn, r as ga, a as ii } from "./icon-e9532b43.js";
|
|
8
8
|
import * as Ea from "vue";
|
|
9
|
-
import { isRef as
|
|
10
|
-
import { g as
|
|
11
|
-
import { o as Da } from "./dialog-
|
|
9
|
+
import { isRef as wt, defineAsyncComponent as ya, h as Kn, watch as Ue, computed as S0, ref as ct, shallowRef as ma, reactive as sn } from "vue";
|
|
10
|
+
import { g as _e, h as ba, d as _t, I as oi, c as tt, f as xt, j as Fa, r as Aa, s as Ca } from "./expression-78a5f136.js";
|
|
11
|
+
import { o as Da } from "./dialog-701b8c0a.js";
|
|
12
12
|
import { c as s0, g as wa } from "./_commonjsHelpers-e7ea1525.js";
|
|
13
13
|
import { ElMessage as oe, ElMessageBox as ai, ElNotification as ae } from "element-plus";
|
|
14
14
|
const $e = "#";
|
|
@@ -30,28 +30,28 @@ function Ta() {
|
|
|
30
30
|
return {
|
|
31
31
|
addTextPrefix: (i) => {
|
|
32
32
|
var o, a;
|
|
33
|
-
return ti(i) ? i :
|
|
33
|
+
return ti(i) ? i : K0(i) && !((o = String(i)) != null && o.startsWith(t)) && !((a = String(i)) != null && a.endsWith(t)) ? `${t}${e}${i}${e}${t}` : i;
|
|
34
34
|
},
|
|
35
35
|
removeTextPrefix: (i) => {
|
|
36
36
|
var o;
|
|
37
|
-
return
|
|
37
|
+
return K0(i) ? (o = i == null ? void 0 : i.replaceAll(`${t}${e}`, "")) == null ? void 0 : o.replace(`${e}${t}`, "") : i;
|
|
38
38
|
},
|
|
39
|
-
removeTextPrefixSimple: (i) =>
|
|
39
|
+
removeTextPrefixSimple: (i) => K0(i) ? i == null ? void 0 : i.replaceAll(`${e}`, "") : i
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
function An() {
|
|
43
|
-
const { addTextPrefix: t } = Ta(), { variableExp: e, buildVariable: r } = Sa(), n = (x, p) =>
|
|
43
|
+
const { addTextPrefix: t } = Ta(), { variableExp: e, buildVariable: r } = Sa(), n = (x, p) => K0(x) ? x == null ? void 0 : x.replace(e, function(d, v) {
|
|
44
44
|
return Js(p) && (p != null && p[v]) ? p == null ? void 0 : p[v] : v;
|
|
45
|
-
}) : x, s = (x, p) =>
|
|
45
|
+
}) : x, s = (x, p) => K0(x) ? x == null ? void 0 : x.replace(e, function(d, v) {
|
|
46
46
|
var f = v, l = p[f];
|
|
47
|
-
return
|
|
48
|
-
}) : x, i = (x, p) =>
|
|
47
|
+
return yt(l) ? t(" ") : t(l);
|
|
48
|
+
}) : x, i = (x, p) => K0(x) ? x == null ? void 0 : x.replaceAll(e, function(d, v) {
|
|
49
49
|
var f = v, l = p[f];
|
|
50
|
-
return !
|
|
51
|
-
}) : x, o = (x, p, d, v = e) =>
|
|
50
|
+
return !Bt(f) && !Bt(l) ? r(l) : d;
|
|
51
|
+
}) : x, o = (x, p, d, v = e) => K0(x) ? x == null ? void 0 : x.replaceAll(v, function(f, l) {
|
|
52
52
|
var B;
|
|
53
|
-
var y = l, b = (B =
|
|
54
|
-
return
|
|
53
|
+
var y = l, b = (B = zt(p)) != null && B.includes(y) ? p == null ? void 0 : p[y] : null;
|
|
54
|
+
return Bt(y) ? f : d ? d(y, b) : Bt(b) ? null : b;
|
|
55
55
|
}) : x;
|
|
56
56
|
return {
|
|
57
57
|
transFormula: n,
|
|
@@ -64,10 +64,10 @@ function An() {
|
|
|
64
64
|
return d;
|
|
65
65
|
},
|
|
66
66
|
updateFomulaName: (x, p, d) => {
|
|
67
|
-
if (
|
|
67
|
+
if (yt(x))
|
|
68
68
|
return x;
|
|
69
|
-
let v =
|
|
70
|
-
return v != null && v.includes(p) ? (v = i(v, { [p]: d }),
|
|
69
|
+
let v = q0(x);
|
|
70
|
+
return v != null && v.includes(p) ? (v = i(v, { [p]: d }), $0(v)) : x;
|
|
71
71
|
},
|
|
72
72
|
updateFomula: (x, p, d, v = e) => {
|
|
73
73
|
var f = o(x, p, d, v);
|
|
@@ -90,17 +90,17 @@ function ka(t, e) {
|
|
|
90
90
|
var r = Ra(t, e);
|
|
91
91
|
return Object.values(r);
|
|
92
92
|
}
|
|
93
|
-
class
|
|
93
|
+
class gt {
|
|
94
94
|
constructor(e) {
|
|
95
95
|
M(this, "enable", !1);
|
|
96
|
-
e &&
|
|
96
|
+
e && mt(this, e);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
class Zl extends
|
|
99
|
+
class Zl extends gt {
|
|
100
100
|
constructor(r) {
|
|
101
101
|
super(r);
|
|
102
102
|
M(this, "type", se.any);
|
|
103
|
-
r &&
|
|
103
|
+
r && mt(this, r);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
class Xl {
|
|
@@ -108,7 +108,7 @@ class Xl {
|
|
|
108
108
|
M(this, "action", "");
|
|
109
109
|
M(this, "options", {});
|
|
110
110
|
M(this, "content", {});
|
|
111
|
-
e &&
|
|
111
|
+
e && mt(this, e);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
class Zn {
|
|
@@ -152,7 +152,7 @@ const Oa = (t) => t ? ci.test(t) : !1, Ia = (t) => {
|
|
|
152
152
|
(g = e == null ? void 0 : e.groups) != null && g.value;
|
|
153
153
|
let x = e == null ? void 0 : e[0];
|
|
154
154
|
i += x;
|
|
155
|
-
let p =
|
|
155
|
+
let p = _e(i, "{") == _e(i, "}") && _e(i, "(") == _e(i, ")");
|
|
156
156
|
n && (s = c), p && (i = i.replace(s + ":", ""), i.endsWith(",") ? i = i.substring(0, i.length - 1).trim() : i = i.trim(), o.push({ key: s, value: i }), i = "", s = ""), n = p;
|
|
157
157
|
}
|
|
158
158
|
return o;
|
|
@@ -174,7 +174,7 @@ const Oa = (t) => t ? ci.test(t) : !1, Ia = (t) => {
|
|
|
174
174
|
let r = Ia(t);
|
|
175
175
|
if (r)
|
|
176
176
|
return xi(r, e);
|
|
177
|
-
},
|
|
177
|
+
}, kt = (t, e) => {
|
|
178
178
|
if (t)
|
|
179
179
|
return Oa(t) ? za(t, e) : Na(t, e);
|
|
180
180
|
}, fi = (t) => {
|
|
@@ -184,11 +184,11 @@ const Oa = (t) => t ? ci.test(t) : !1, Ia = (t) => {
|
|
|
184
184
|
}
|
|
185
185
|
}, La = (t, e) => {
|
|
186
186
|
let r = fi(t);
|
|
187
|
-
var n = e ?
|
|
187
|
+
var n = e ? zt(e) : [];
|
|
188
188
|
return r = `function(${n.join(",")}){${r}}`, new Function("return " + r);
|
|
189
189
|
}, Cn = (t, e) => {
|
|
190
190
|
var s, i;
|
|
191
|
-
var r = La(t, e), n = e ? (s = Object.entries(e)) == null ? void 0 : s.map(([o, a]) =>
|
|
191
|
+
var r = La(t, e), n = e ? (s = Object.entries(e)) == null ? void 0 : s.map(([o, a]) => wt(a) ? a.value : a) : [];
|
|
192
192
|
try {
|
|
193
193
|
return (i = r == null ? void 0 : r()) == null ? void 0 : i(...n);
|
|
194
194
|
} catch (o) {
|
|
@@ -197,29 +197,29 @@ const Oa = (t) => t ? ci.test(t) : !1, Ia = (t) => {
|
|
|
197
197
|
}
|
|
198
198
|
}, Ua = (t, e) => {
|
|
199
199
|
const r = /\"\$\{([^\}]+)\}\"/g;
|
|
200
|
-
if (!(t == null || !
|
|
200
|
+
if (!(t == null || !K0(t))) {
|
|
201
201
|
var n = t == null ? void 0 : t.replace(r, function(s, i, o) {
|
|
202
202
|
var a = s, g = a.substring(1, a.length - 1), c = Cn(g, e);
|
|
203
|
-
return
|
|
203
|
+
return yt(c) ? '""' : wr(c) ? q0(c) : `"${c}"`;
|
|
204
204
|
});
|
|
205
205
|
return n;
|
|
206
206
|
}
|
|
207
207
|
}, $a = (t, e) => {
|
|
208
208
|
const r = /\$\{([^\}]+)\}/g;
|
|
209
|
-
if (!(t == null || !
|
|
209
|
+
if (!(t == null || !K0(t))) {
|
|
210
210
|
var n = t == null ? void 0 : t.replace(r, function(s, i, o) {
|
|
211
211
|
var a = s, g = Cn(a, e);
|
|
212
|
-
return
|
|
212
|
+
return yt(g) ? "" : g;
|
|
213
213
|
});
|
|
214
214
|
return n;
|
|
215
215
|
}
|
|
216
216
|
}, Ma = (t, e) => {
|
|
217
217
|
const r = /\$\{([^\}]+)\}/g;
|
|
218
|
-
if (!(t == null || !
|
|
218
|
+
if (!(t == null || !K0(t)))
|
|
219
219
|
return t == null ? void 0 : t.replace(r, function(n, s, i, o) {
|
|
220
220
|
return "${" + (e ? e(s) : s) + "}";
|
|
221
221
|
});
|
|
222
|
-
},
|
|
222
|
+
}, ut = (t, e) => {
|
|
223
223
|
var r = Ua(t, e), n = $a(r, e);
|
|
224
224
|
return n;
|
|
225
225
|
}, ui = (t, e, r) => {
|
|
@@ -271,25 +271,25 @@ function hi(t, e) {
|
|
|
271
271
|
const { toString: Za } = Object.prototype, { getPrototypeOf: Dn } = Object, _r = ((t) => (e) => {
|
|
272
272
|
const r = Za.call(e);
|
|
273
273
|
return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
|
|
274
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
274
|
+
})(/* @__PURE__ */ Object.create(null)), ht = (t) => (t = t.toLowerCase(), (e) => _r(e) === t), Sr = (t) => (e) => typeof e === t, { isArray: Yt } = Array, le = Sr("undefined");
|
|
275
275
|
function Xa(t) {
|
|
276
|
-
return t !== null && !
|
|
276
|
+
return t !== null && !le(t) && t.constructor !== null && !le(t.constructor) && Z0(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
277
277
|
}
|
|
278
|
-
const di =
|
|
278
|
+
const di = ht("ArrayBuffer");
|
|
279
279
|
function Ga(t) {
|
|
280
280
|
let e;
|
|
281
281
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && di(t.buffer), e;
|
|
282
282
|
}
|
|
283
|
-
const Qa = Sr("string"),
|
|
283
|
+
const Qa = Sr("string"), Z0 = Sr("function"), pi = Sr("number"), Tr = (t) => t !== null && typeof t == "object", Va = (t) => t === !0 || t === !1, Ie = (t) => {
|
|
284
284
|
if (_r(t) !== "object")
|
|
285
285
|
return !1;
|
|
286
286
|
const e = Dn(t);
|
|
287
287
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
288
|
-
}, Ya =
|
|
288
|
+
}, Ya = ht("Date"), Ja = ht("File"), tc = ht("Blob"), ec = ht("FileList"), rc = (t) => Tr(t) && Z0(t.pipe), nc = (t) => {
|
|
289
289
|
let e;
|
|
290
|
-
return t && (typeof FormData == "function" && t instanceof FormData ||
|
|
291
|
-
}, sc =
|
|
292
|
-
function
|
|
290
|
+
return t && (typeof FormData == "function" && t instanceof FormData || Z0(t.append) && ((e = _r(t)) === "formdata" || e === "object" && Z0(t.toString) && t.toString() === "[object FormData]"));
|
|
291
|
+
}, sc = ht("URLSearchParams"), ic = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
292
|
+
function de(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
293
293
|
if (t === null || typeof t > "u")
|
|
294
294
|
return;
|
|
295
295
|
let n, s;
|
|
@@ -312,18 +312,18 @@ function vi(t, e) {
|
|
|
312
312
|
return s;
|
|
313
313
|
return null;
|
|
314
314
|
}
|
|
315
|
-
const Bi = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), gi = (t) => !
|
|
315
|
+
const Bi = (() => typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global)(), gi = (t) => !le(t) && t !== Bi;
|
|
316
316
|
function dn() {
|
|
317
317
|
const { caseless: t } = gi(this) && this || {}, e = {}, r = (n, s) => {
|
|
318
318
|
const i = t && vi(e, s) || s;
|
|
319
|
-
|
|
319
|
+
Ie(e[i]) && Ie(n) ? e[i] = dn(e[i], n) : Ie(n) ? e[i] = dn({}, n) : Yt(n) ? e[i] = n.slice() : e[i] = n;
|
|
320
320
|
};
|
|
321
321
|
for (let n = 0, s = arguments.length; n < s; n++)
|
|
322
|
-
arguments[n] &&
|
|
322
|
+
arguments[n] && de(arguments[n], r);
|
|
323
323
|
return e;
|
|
324
324
|
}
|
|
325
|
-
const oc = (t, e, r, { allOwnKeys: n } = {}) => (
|
|
326
|
-
r &&
|
|
325
|
+
const oc = (t, e, r, { allOwnKeys: n } = {}) => (de(e, (s, i) => {
|
|
326
|
+
r && Z0(s) ? t[i] = hi(s, r) : t[i] = s;
|
|
327
327
|
}, { allOwnKeys: n }), t), ac = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), cc = (t, e, r, n) => {
|
|
328
328
|
t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
329
329
|
value: e.prototype
|
|
@@ -368,22 +368,22 @@ const oc = (t, e, r, { allOwnKeys: n } = {}) => (he(e, (s, i) => {
|
|
|
368
368
|
for (; (r = t.exec(e)) !== null; )
|
|
369
369
|
n.push(r);
|
|
370
370
|
return n;
|
|
371
|
-
}, pc =
|
|
371
|
+
}, pc = ht("HTMLFormElement"), vc = (t) => t.toLowerCase().replace(
|
|
372
372
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
373
373
|
function(r, n, s) {
|
|
374
374
|
return n.toUpperCase() + s;
|
|
375
375
|
}
|
|
376
|
-
), Xn = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Bc =
|
|
376
|
+
), Xn = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Bc = ht("RegExp"), Ei = (t, e) => {
|
|
377
377
|
const r = Object.getOwnPropertyDescriptors(t), n = {};
|
|
378
|
-
|
|
378
|
+
de(r, (s, i) => {
|
|
379
379
|
e(s, i, t) !== !1 && (n[i] = s);
|
|
380
380
|
}), Object.defineProperties(t, n);
|
|
381
381
|
}, gc = (t) => {
|
|
382
382
|
Ei(t, (e, r) => {
|
|
383
|
-
if (
|
|
383
|
+
if (Z0(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
384
384
|
return !1;
|
|
385
385
|
const n = t[r];
|
|
386
|
-
if (
|
|
386
|
+
if (Z0(n)) {
|
|
387
387
|
if (e.enumerable = !1, "writable" in e) {
|
|
388
388
|
e.writable = !1;
|
|
389
389
|
return;
|
|
@@ -413,7 +413,7 @@ const oc = (t, e, r, { allOwnKeys: n } = {}) => (he(e, (s, i) => {
|
|
|
413
413
|
return r;
|
|
414
414
|
};
|
|
415
415
|
function Fc(t) {
|
|
416
|
-
return !!(t &&
|
|
416
|
+
return !!(t && Z0(t.append) && t[Symbol.toStringTag] === "FormData" && t[Symbol.iterator]);
|
|
417
417
|
}
|
|
418
418
|
const Ac = (t) => {
|
|
419
419
|
const e = new Array(10), r = (n, s) => {
|
|
@@ -423,16 +423,16 @@ const Ac = (t) => {
|
|
|
423
423
|
if (!("toJSON" in n)) {
|
|
424
424
|
e[s] = n;
|
|
425
425
|
const i = Yt(n) ? [] : {};
|
|
426
|
-
return
|
|
426
|
+
return de(n, (o, a) => {
|
|
427
427
|
const g = r(o, s + 1);
|
|
428
|
-
!
|
|
428
|
+
!le(g) && (i[a] = g);
|
|
429
429
|
}), e[s] = void 0, i;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
return n;
|
|
433
433
|
};
|
|
434
434
|
return r(t, 0);
|
|
435
|
-
}, Cc =
|
|
435
|
+
}, Cc = ht("AsyncFunction"), Dc = (t) => t && (Tr(t) || Z0(t)) && Z0(t.then) && Z0(t.catch), O = {
|
|
436
436
|
isArray: Yt,
|
|
437
437
|
isArrayBuffer: di,
|
|
438
438
|
isBuffer: Xa,
|
|
@@ -442,18 +442,18 @@ const Ac = (t) => {
|
|
|
442
442
|
isNumber: pi,
|
|
443
443
|
isBoolean: Va,
|
|
444
444
|
isObject: Tr,
|
|
445
|
-
isPlainObject:
|
|
446
|
-
isUndefined:
|
|
445
|
+
isPlainObject: Ie,
|
|
446
|
+
isUndefined: le,
|
|
447
447
|
isDate: Ya,
|
|
448
448
|
isFile: Ja,
|
|
449
449
|
isBlob: tc,
|
|
450
450
|
isRegExp: Bc,
|
|
451
|
-
isFunction:
|
|
451
|
+
isFunction: Z0,
|
|
452
452
|
isStream: rc,
|
|
453
453
|
isURLSearchParams: sc,
|
|
454
454
|
isTypedArray: lc,
|
|
455
455
|
isFileList: ec,
|
|
456
|
-
forEach:
|
|
456
|
+
forEach: de,
|
|
457
457
|
merge: dn,
|
|
458
458
|
extend: oc,
|
|
459
459
|
trim: ic,
|
|
@@ -461,7 +461,7 @@ const Ac = (t) => {
|
|
|
461
461
|
inherits: cc,
|
|
462
462
|
toFlatObject: xc,
|
|
463
463
|
kindOf: _r,
|
|
464
|
-
kindOfTest:
|
|
464
|
+
kindOfTest: ht,
|
|
465
465
|
endsWith: fc,
|
|
466
466
|
toArray: uc,
|
|
467
467
|
forEachEntry: hc,
|
|
@@ -721,7 +721,7 @@ const Yn = Rc, Di = {
|
|
|
721
721
|
let t;
|
|
722
722
|
return typeof navigator < "u" && ((t = navigator.product) === "ReactNative" || t === "NativeScript" || t === "NS") ? !1 : typeof window < "u" && typeof document < "u";
|
|
723
723
|
})(), Hc = (() => typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
724
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
724
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), lt = {
|
|
725
725
|
isBrowser: !0,
|
|
726
726
|
classes: {
|
|
727
727
|
URLSearchParams: kc,
|
|
@@ -733,9 +733,9 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(),
|
|
|
733
733
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
734
734
|
};
|
|
735
735
|
function qc(t, e) {
|
|
736
|
-
return Rr(t, new
|
|
736
|
+
return Rr(t, new lt.classes.URLSearchParams(), Object.assign({
|
|
737
737
|
visitor: function(r, n, s, i) {
|
|
738
|
-
return
|
|
738
|
+
return lt.isNode && O.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
739
739
|
}
|
|
740
740
|
}, e));
|
|
741
741
|
}
|
|
@@ -829,8 +829,8 @@ const kr = {
|
|
|
829
829
|
maxContentLength: -1,
|
|
830
830
|
maxBodyLength: -1,
|
|
831
831
|
env: {
|
|
832
|
-
FormData:
|
|
833
|
-
Blob:
|
|
832
|
+
FormData: lt.classes.FormData,
|
|
833
|
+
Blob: lt.classes.Blob
|
|
834
834
|
},
|
|
835
835
|
validateStatus: function(e) {
|
|
836
836
|
return e >= 200 && e < 300;
|
|
@@ -876,8 +876,8 @@ const _n = kr, $c = O.toObjectSet([
|
|
|
876
876
|
function re(t) {
|
|
877
877
|
return t && String(t).trim().toLowerCase();
|
|
878
878
|
}
|
|
879
|
-
function
|
|
880
|
-
return t === !1 || t == null ? t : O.isArray(t) ? t.map(
|
|
879
|
+
function Pe(t) {
|
|
880
|
+
return t === !1 || t == null ? t : O.isArray(t) ? t.map(Pe) : String(t);
|
|
881
881
|
}
|
|
882
882
|
function jc(t) {
|
|
883
883
|
const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -922,7 +922,7 @@ class Or {
|
|
|
922
922
|
if (!x)
|
|
923
923
|
throw new Error("header name must be a non-empty string");
|
|
924
924
|
const p = O.findKey(s, x);
|
|
925
|
-
(!p || s[p] === void 0 || c === !0 || c === void 0 && s[p] !== !1) && (s[p || g] =
|
|
925
|
+
(!p || s[p] === void 0 || c === !0 || c === void 0 && s[p] !== !1) && (s[p || g] = Pe(a));
|
|
926
926
|
}
|
|
927
927
|
const o = (a, g) => O.forEach(a, (c, x) => i(c, x, g));
|
|
928
928
|
return O.isPlainObject(e) || e instanceof this.constructor ? o(e, r) : O.isString(e) && (e = e.trim()) && !Wc(e) ? o(Mc(e), r) : e != null && i(r, e, n), this;
|
|
@@ -976,11 +976,11 @@ class Or {
|
|
|
976
976
|
return O.forEach(this, (s, i) => {
|
|
977
977
|
const o = O.findKey(n, i);
|
|
978
978
|
if (o) {
|
|
979
|
-
r[o] =
|
|
979
|
+
r[o] = Pe(s), delete r[i];
|
|
980
980
|
return;
|
|
981
981
|
}
|
|
982
982
|
const a = e ? Kc(i) : String(i).trim();
|
|
983
|
-
a !== i && delete r[i], r[a] =
|
|
983
|
+
a !== i && delete r[i], r[a] = Pe(s), n[a] = !0;
|
|
984
984
|
}), this;
|
|
985
985
|
}
|
|
986
986
|
concat(...e) {
|
|
@@ -1023,9 +1023,9 @@ class Or {
|
|
|
1023
1023
|
Or.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1024
1024
|
O.freezeMethods(Or.prototype);
|
|
1025
1025
|
O.freezeMethods(Or);
|
|
1026
|
-
const
|
|
1026
|
+
const Et = Or;
|
|
1027
1027
|
function cn(t, e) {
|
|
1028
|
-
const r = this || _n, n = e || r, s =
|
|
1028
|
+
const r = this || _n, n = e || r, s = Et.from(n.headers);
|
|
1029
1029
|
let i = n.data;
|
|
1030
1030
|
return O.forEach(t, function(a) {
|
|
1031
1031
|
i = a.call(r, i, s.normalize(), e ? e.status : void 0);
|
|
@@ -1034,10 +1034,10 @@ function cn(t, e) {
|
|
|
1034
1034
|
function _i(t) {
|
|
1035
1035
|
return !!(t && t.__CANCEL__);
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function pe(t, e, r) {
|
|
1038
1038
|
l0.call(this, t ?? "canceled", l0.ERR_CANCELED, e, r), this.name = "CanceledError";
|
|
1039
1039
|
}
|
|
1040
|
-
O.inherits(
|
|
1040
|
+
O.inherits(pe, l0, {
|
|
1041
1041
|
__CANCEL__: !0
|
|
1042
1042
|
});
|
|
1043
1043
|
function Xc(t, e, r) {
|
|
@@ -1050,7 +1050,7 @@ function Xc(t, e, r) {
|
|
|
1050
1050
|
r
|
|
1051
1051
|
));
|
|
1052
1052
|
}
|
|
1053
|
-
const Gc =
|
|
1053
|
+
const Gc = lt.isStandardBrowserEnv ? function() {
|
|
1054
1054
|
return {
|
|
1055
1055
|
write: function(r, n, s, i, o, a) {
|
|
1056
1056
|
const g = [];
|
|
@@ -1084,7 +1084,7 @@ function Vc(t, e) {
|
|
|
1084
1084
|
function Si(t, e) {
|
|
1085
1085
|
return t && !Qc(e) ? Vc(t, e) : e;
|
|
1086
1086
|
}
|
|
1087
|
-
const Yc =
|
|
1087
|
+
const Yc = lt.isStandardBrowserEnv ? function() {
|
|
1088
1088
|
const e = /(msie|trident)/i.test(navigator.userAgent), r = document.createElement("a");
|
|
1089
1089
|
let n;
|
|
1090
1090
|
function s(i) {
|
|
@@ -1150,12 +1150,12 @@ function ts(t, e) {
|
|
|
1150
1150
|
const ex = typeof XMLHttpRequest < "u", rx = ex && function(t) {
|
|
1151
1151
|
return new Promise(function(r, n) {
|
|
1152
1152
|
let s = t.data;
|
|
1153
|
-
const i =
|
|
1153
|
+
const i = Et.from(t.headers).normalize(), o = t.responseType;
|
|
1154
1154
|
let a;
|
|
1155
1155
|
function g() {
|
|
1156
1156
|
t.cancelToken && t.cancelToken.unsubscribe(a), t.signal && t.signal.removeEventListener("abort", a);
|
|
1157
1157
|
}
|
|
1158
|
-
O.isFormData(s) && (
|
|
1158
|
+
O.isFormData(s) && (lt.isStandardBrowserEnv || lt.isStandardBrowserWebWorkerEnv ? i.setContentType(!1) : i.setContentType("multipart/form-data;", !1));
|
|
1159
1159
|
let c = new XMLHttpRequest();
|
|
1160
1160
|
if (t.auth) {
|
|
1161
1161
|
const v = t.auth.username || "", f = t.auth.password ? unescape(encodeURIComponent(t.auth.password)) : "";
|
|
@@ -1166,7 +1166,7 @@ const ex = typeof XMLHttpRequest < "u", rx = ex && function(t) {
|
|
|
1166
1166
|
function p() {
|
|
1167
1167
|
if (!c)
|
|
1168
1168
|
return;
|
|
1169
|
-
const v =
|
|
1169
|
+
const v = Et.from(
|
|
1170
1170
|
"getAllResponseHeaders" in c && c.getAllResponseHeaders()
|
|
1171
1171
|
), l = {
|
|
1172
1172
|
data: !o || o === "text" || o === "json" ? c.responseText : c.response,
|
|
@@ -1197,27 +1197,27 @@ const ex = typeof XMLHttpRequest < "u", rx = ex && function(t) {
|
|
|
1197
1197
|
t,
|
|
1198
1198
|
c
|
|
1199
1199
|
)), c = null;
|
|
1200
|
-
},
|
|
1200
|
+
}, lt.isStandardBrowserEnv) {
|
|
1201
1201
|
const v = (t.withCredentials || Yc(x)) && t.xsrfCookieName && Gc.read(t.xsrfCookieName);
|
|
1202
1202
|
v && i.set(t.xsrfHeaderName, v);
|
|
1203
1203
|
}
|
|
1204
1204
|
s === void 0 && i.setContentType(null), "setRequestHeader" in c && O.forEach(i.toJSON(), function(f, l) {
|
|
1205
1205
|
c.setRequestHeader(l, f);
|
|
1206
1206
|
}), O.isUndefined(t.withCredentials) || (c.withCredentials = !!t.withCredentials), o && o !== "json" && (c.responseType = t.responseType), typeof t.onDownloadProgress == "function" && c.addEventListener("progress", ts(t.onDownloadProgress, !0)), typeof t.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", ts(t.onUploadProgress)), (t.cancelToken || t.signal) && (a = (v) => {
|
|
1207
|
-
c && (n(!v || v.type ? new
|
|
1207
|
+
c && (n(!v || v.type ? new pe(null, t, c) : v), c.abort(), c = null);
|
|
1208
1208
|
}, t.cancelToken && t.cancelToken.subscribe(a), t.signal && (t.signal.aborted ? a() : t.signal.addEventListener("abort", a)));
|
|
1209
1209
|
const d = Jc(x);
|
|
1210
|
-
if (d &&
|
|
1210
|
+
if (d && lt.protocols.indexOf(d) === -1) {
|
|
1211
1211
|
n(new l0("Unsupported protocol " + d + ":", l0.ERR_BAD_REQUEST, t));
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
1214
1214
|
c.send(s || null);
|
|
1215
1215
|
});
|
|
1216
|
-
},
|
|
1216
|
+
}, He = {
|
|
1217
1217
|
http: wc,
|
|
1218
1218
|
xhr: rx
|
|
1219
1219
|
};
|
|
1220
|
-
O.forEach(
|
|
1220
|
+
O.forEach(He, (t, e) => {
|
|
1221
1221
|
if (t) {
|
|
1222
1222
|
try {
|
|
1223
1223
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -1231,27 +1231,27 @@ const nx = {
|
|
|
1231
1231
|
t = O.isArray(t) ? t : [t];
|
|
1232
1232
|
const { length: e } = t;
|
|
1233
1233
|
let r, n;
|
|
1234
|
-
for (let s = 0; s < e && (r = t[s], !(n = O.isString(r) ?
|
|
1234
|
+
for (let s = 0; s < e && (r = t[s], !(n = O.isString(r) ? He[r.toLowerCase()] : r)); s++)
|
|
1235
1235
|
;
|
|
1236
1236
|
if (!n)
|
|
1237
1237
|
throw n === !1 ? new l0(
|
|
1238
1238
|
`Adapter ${r} is not supported by the environment`,
|
|
1239
1239
|
"ERR_NOT_SUPPORT"
|
|
1240
1240
|
) : new Error(
|
|
1241
|
-
O.hasOwnProp(
|
|
1241
|
+
O.hasOwnProp(He, r) ? `Adapter '${r}' is not available in the build` : `Unknown adapter '${r}'`
|
|
1242
1242
|
);
|
|
1243
1243
|
if (!O.isFunction(n))
|
|
1244
1244
|
throw new TypeError("adapter is not a function");
|
|
1245
1245
|
return n;
|
|
1246
1246
|
},
|
|
1247
|
-
adapters:
|
|
1247
|
+
adapters: He
|
|
1248
1248
|
};
|
|
1249
1249
|
function xn(t) {
|
|
1250
1250
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1251
|
-
throw new
|
|
1251
|
+
throw new pe(null, t);
|
|
1252
1252
|
}
|
|
1253
1253
|
function es(t) {
|
|
1254
|
-
return xn(t), t.headers =
|
|
1254
|
+
return xn(t), t.headers = Et.from(t.headers), t.data = cn.call(
|
|
1255
1255
|
t,
|
|
1256
1256
|
t.transformRequest
|
|
1257
1257
|
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), nx.getAdapter(t.adapter || _n.adapter)(t).then(function(n) {
|
|
@@ -1259,16 +1259,16 @@ function es(t) {
|
|
|
1259
1259
|
t,
|
|
1260
1260
|
t.transformResponse,
|
|
1261
1261
|
n
|
|
1262
|
-
), n.headers =
|
|
1262
|
+
), n.headers = Et.from(n.headers), n;
|
|
1263
1263
|
}, function(n) {
|
|
1264
1264
|
return _i(n) || (xn(t), n && n.response && (n.response.data = cn.call(
|
|
1265
1265
|
t,
|
|
1266
1266
|
t.transformResponse,
|
|
1267
1267
|
n.response
|
|
1268
|
-
), n.response.headers =
|
|
1268
|
+
), n.response.headers = Et.from(n.response.headers))), Promise.reject(n);
|
|
1269
1269
|
});
|
|
1270
1270
|
}
|
|
1271
|
-
const rs = (t) => t instanceof
|
|
1271
|
+
const rs = (t) => t instanceof Et ? t.toJSON() : t;
|
|
1272
1272
|
function Xt(t, e) {
|
|
1273
1273
|
e = e || {};
|
|
1274
1274
|
const r = {};
|
|
@@ -1379,7 +1379,7 @@ function sx(t, e, r) {
|
|
|
1379
1379
|
const vn = {
|
|
1380
1380
|
assertOptions: sx,
|
|
1381
1381
|
validators: Sn
|
|
1382
|
-
},
|
|
1382
|
+
}, At = vn.validators;
|
|
1383
1383
|
class Me {
|
|
1384
1384
|
constructor(e) {
|
|
1385
1385
|
this.defaults = e, this.interceptors = {
|
|
@@ -1399,14 +1399,14 @@ class Me {
|
|
|
1399
1399
|
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = Xt(this.defaults, r);
|
|
1400
1400
|
const { transitional: n, paramsSerializer: s, headers: i } = r;
|
|
1401
1401
|
n !== void 0 && vn.assertOptions(n, {
|
|
1402
|
-
silentJSONParsing:
|
|
1403
|
-
forcedJSONParsing:
|
|
1404
|
-
clarifyTimeoutError:
|
|
1402
|
+
silentJSONParsing: At.transitional(At.boolean),
|
|
1403
|
+
forcedJSONParsing: At.transitional(At.boolean),
|
|
1404
|
+
clarifyTimeoutError: At.transitional(At.boolean)
|
|
1405
1405
|
}, !1), s != null && (O.isFunction(s) ? r.paramsSerializer = {
|
|
1406
1406
|
serialize: s
|
|
1407
1407
|
} : vn.assertOptions(s, {
|
|
1408
|
-
encode:
|
|
1409
|
-
serialize:
|
|
1408
|
+
encode: At.function,
|
|
1409
|
+
serialize: At.function
|
|
1410
1410
|
}, !0)), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1411
1411
|
let o;
|
|
1412
1412
|
o = i && O.merge(
|
|
@@ -1417,7 +1417,7 @@ class Me {
|
|
|
1417
1417
|
(f) => {
|
|
1418
1418
|
delete i[f];
|
|
1419
1419
|
}
|
|
1420
|
-
), r.headers =
|
|
1420
|
+
), r.headers = Et.concat(o, i);
|
|
1421
1421
|
const a = [];
|
|
1422
1422
|
let g = !0;
|
|
1423
1423
|
this.interceptors.request.forEach(function(l) {
|
|
@@ -1484,7 +1484,7 @@ O.forEach(["post", "put", "patch"], function(e) {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
Me.prototype[e] = r(), Me.prototype[e + "Form"] = r(!0);
|
|
1486
1486
|
});
|
|
1487
|
-
const
|
|
1487
|
+
const qe = Me;
|
|
1488
1488
|
class Tn {
|
|
1489
1489
|
constructor(e) {
|
|
1490
1490
|
if (typeof e != "function")
|
|
@@ -1510,7 +1510,7 @@ class Tn {
|
|
|
1510
1510
|
n.unsubscribe(i);
|
|
1511
1511
|
}, o;
|
|
1512
1512
|
}, e(function(i, o, a) {
|
|
1513
|
-
n.reason || (n.reason = new
|
|
1513
|
+
n.reason || (n.reason = new pe(i, o, a), r(n.reason));
|
|
1514
1514
|
});
|
|
1515
1515
|
}
|
|
1516
1516
|
/**
|
|
@@ -1632,31 +1632,31 @@ Object.entries(Bn).forEach(([t, e]) => {
|
|
|
1632
1632
|
});
|
|
1633
1633
|
const cx = Bn;
|
|
1634
1634
|
function Ri(t) {
|
|
1635
|
-
const e = new
|
|
1636
|
-
return O.extend(r,
|
|
1635
|
+
const e = new qe(t), r = hi(qe.prototype.request, e);
|
|
1636
|
+
return O.extend(r, qe.prototype, e, { allOwnKeys: !0 }), O.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
1637
1637
|
return Ri(Xt(t, s));
|
|
1638
1638
|
}, r;
|
|
1639
1639
|
}
|
|
1640
|
-
const
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1640
|
+
const A0 = Ri(_n);
|
|
1641
|
+
A0.Axios = qe;
|
|
1642
|
+
A0.CanceledError = pe;
|
|
1643
|
+
A0.CancelToken = ix;
|
|
1644
|
+
A0.isCancel = _i;
|
|
1645
|
+
A0.VERSION = Ti;
|
|
1646
|
+
A0.toFormData = Rr;
|
|
1647
|
+
A0.AxiosError = l0;
|
|
1648
|
+
A0.Cancel = A0.CanceledError;
|
|
1649
|
+
A0.all = function(e) {
|
|
1650
1650
|
return Promise.all(e);
|
|
1651
1651
|
};
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
const ki =
|
|
1652
|
+
A0.spread = ox;
|
|
1653
|
+
A0.isAxiosError = ax;
|
|
1654
|
+
A0.mergeConfig = Xt;
|
|
1655
|
+
A0.AxiosHeaders = Et;
|
|
1656
|
+
A0.formToJSON = (t) => wi(O.isHTMLForm(t) ? new FormData(t) : t);
|
|
1657
|
+
A0.HttpStatusCode = cx;
|
|
1658
|
+
A0.default = A0;
|
|
1659
|
+
const ki = A0, xx = (t) => {
|
|
1660
1660
|
let e = {};
|
|
1661
1661
|
return t.map((r) => {
|
|
1662
1662
|
e[r.name] = r.value;
|
|
@@ -1695,7 +1695,7 @@ const ki = b0, xx = (t) => {
|
|
|
1695
1695
|
} catch {
|
|
1696
1696
|
}
|
|
1697
1697
|
return "";
|
|
1698
|
-
},
|
|
1698
|
+
}, ft = (t) => wt(t) ? t == null ? void 0 : t.value : t, lx = (t) => $0(q0(t)), hx = function(t) {
|
|
1699
1699
|
return Oi(window.location.href, t);
|
|
1700
1700
|
}, Oi = function(t, e) {
|
|
1701
1701
|
const r = Ir(t);
|
|
@@ -1731,7 +1731,7 @@ const ki = b0, xx = (t) => {
|
|
|
1731
1731
|
isUrl: vx,
|
|
1732
1732
|
refresh: Bx
|
|
1733
1733
|
};
|
|
1734
|
-
class
|
|
1734
|
+
class L0 {
|
|
1735
1735
|
/**
|
|
1736
1736
|
* 向上查找 window 或 iframe
|
|
1737
1737
|
* @param startWindow 起始窗口
|
|
@@ -1784,7 +1784,7 @@ class U0 {
|
|
|
1784
1784
|
window: s,
|
|
1785
1785
|
iframe: i
|
|
1786
1786
|
};
|
|
1787
|
-
const o =
|
|
1787
|
+
const o = L0.findDown(s, r);
|
|
1788
1788
|
if (o)
|
|
1789
1789
|
return o;
|
|
1790
1790
|
}
|
|
@@ -1800,21 +1800,21 @@ class U0 {
|
|
|
1800
1800
|
* @param direction 查找方向: 'up'|'down'|'both' (默认 'both')
|
|
1801
1801
|
*/
|
|
1802
1802
|
static find(e, r, n = "both") {
|
|
1803
|
-
const s =
|
|
1803
|
+
const s = L0.findByIframeId(r, e);
|
|
1804
1804
|
if (s)
|
|
1805
1805
|
return s;
|
|
1806
1806
|
if (n === "up" || n === "both") {
|
|
1807
|
-
const i =
|
|
1807
|
+
const i = L0.findUp(e, r);
|
|
1808
1808
|
if (i)
|
|
1809
1809
|
return i;
|
|
1810
1810
|
}
|
|
1811
1811
|
if (n === "down" || n === "both") {
|
|
1812
|
-
const i =
|
|
1812
|
+
const i = L0.findDown(e, r);
|
|
1813
1813
|
if (i)
|
|
1814
1814
|
return i;
|
|
1815
1815
|
}
|
|
1816
1816
|
if (n === "both") {
|
|
1817
|
-
const i =
|
|
1817
|
+
const i = L0.findDown(this.findTop(e), r);
|
|
1818
1818
|
if (i)
|
|
1819
1819
|
return i;
|
|
1820
1820
|
}
|
|
@@ -1844,8 +1844,8 @@ class U0 {
|
|
|
1844
1844
|
}
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
|
-
const Pr = (t, e) => (console.log("send to ", t, e), t ? (t.postMessage(
|
|
1848
|
-
const r =
|
|
1847
|
+
const Pr = (t, e) => (console.log("send to ", t, e), t ? (t.postMessage(q0(e), "*"), !0) : !1), gx = (t, e) => {
|
|
1848
|
+
const r = L0.find(window, t);
|
|
1849
1849
|
if (r)
|
|
1850
1850
|
return Pr(r.window, e);
|
|
1851
1851
|
}, Ex = (t, e) => Pr(t == null ? void 0 : t.contentWindow, e), yx = (t) => Pr(window.parent, t), mx = (t, e = !1) => {
|
|
@@ -1889,15 +1889,15 @@ var Gt = {}, bx = {
|
|
|
1889
1889
|
}
|
|
1890
1890
|
function g(u, h, E, A, P, U) {
|
|
1891
1891
|
for (var W = h & 32767, Z = h >> 15; --U >= 0; ) {
|
|
1892
|
-
var
|
|
1893
|
-
|
|
1892
|
+
var v0 = this[u] & 32767, w0 = this[u++] >> 15, M0 = Z * v0 + w0 * W;
|
|
1893
|
+
v0 = W * v0 + ((M0 & 32767) << 15) + E[A] + (P & 1073741823), P = (v0 >>> 30) + (M0 >>> 15) + Z * w0 + (P >>> 30), E[A++] = v0 & 1073741823;
|
|
1894
1894
|
}
|
|
1895
1895
|
return P;
|
|
1896
1896
|
}
|
|
1897
1897
|
function c(u, h, E, A, P, U) {
|
|
1898
1898
|
for (var W = h & 16383, Z = h >> 14; --U >= 0; ) {
|
|
1899
|
-
var
|
|
1900
|
-
|
|
1899
|
+
var v0 = this[u] & 16383, w0 = this[u++] >> 14, M0 = Z * v0 + w0 * W;
|
|
1900
|
+
v0 = W * v0 + ((M0 & 16383) << 14) + E[A] + P, P = (v0 >> 28) + (M0 >> 14) + Z * w0, E[A++] = v0 & 268435455;
|
|
1901
1901
|
}
|
|
1902
1902
|
return P;
|
|
1903
1903
|
}
|
|
@@ -2020,12 +2020,12 @@ var Gt = {}, bx = {
|
|
|
2020
2020
|
h[E] = 0;
|
|
2021
2021
|
h.t = this.t + u, h.s = this.s;
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function V(u, h) {
|
|
2024
2024
|
for (var E = u; E < this.t; ++E)
|
|
2025
2025
|
h[E - u] = this[E];
|
|
2026
2026
|
h.t = Math.max(this.t - u, 0), h.s = this.s;
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2028
|
+
function J(u, h) {
|
|
2029
2029
|
var E = u % this.DB, A = this.DB - E, P = (1 << A) - 1, U = Math.floor(u / this.DB), W = this.s << E & this.DM, Z;
|
|
2030
2030
|
for (Z = this.t - 1; Z >= 0; --Z)
|
|
2031
2031
|
h[Z + U + 1] = this[Z] >> A | W, W = (this[Z] & P) << E;
|
|
@@ -2046,7 +2046,7 @@ var Gt = {}, bx = {
|
|
|
2046
2046
|
h[W - E - 1] |= (this[W] & U) << P, h[W - E] = this[W] >> A;
|
|
2047
2047
|
A > 0 && (h[this.t - E - 1] |= (this.s & U) << P), h.t = this.t - E, h.clamp();
|
|
2048
2048
|
}
|
|
2049
|
-
function
|
|
2049
|
+
function d0(u, h) {
|
|
2050
2050
|
for (var E = 0, A = 0, P = Math.min(u.t, this.t); E < P; )
|
|
2051
2051
|
A += this[E] - u[E], h[E++] = A & this.DM, A >>= this.DB;
|
|
2052
2052
|
if (u.t < this.t) {
|
|
@@ -2086,20 +2086,20 @@ var Gt = {}, bx = {
|
|
|
2086
2086
|
return;
|
|
2087
2087
|
}
|
|
2088
2088
|
E == null && (E = o());
|
|
2089
|
-
var U = o(), W = this.s, Z = u.s,
|
|
2090
|
-
|
|
2091
|
-
var w0 = U.t,
|
|
2092
|
-
if (
|
|
2093
|
-
var
|
|
2094
|
-
for (U.dlShiftTo(
|
|
2089
|
+
var U = o(), W = this.s, Z = u.s, v0 = this.DB - D(A[A.t - 1]);
|
|
2090
|
+
v0 > 0 ? (A.lShiftTo(v0, U), P.lShiftTo(v0, E)) : (A.copyTo(U), P.copyTo(E));
|
|
2091
|
+
var w0 = U.t, M0 = U[w0 - 1];
|
|
2092
|
+
if (M0 != 0) {
|
|
2093
|
+
var z0 = M0 * (1 << this.F1) + (w0 > 1 ? U[w0 - 2] >> this.F2 : 0), vt = this.FV / z0, De = (1 << this.F1) / z0, Q0 = 1 << this.F2, V0 = E.t, we = V0 - w0, Ft = h ?? o();
|
|
2094
|
+
for (U.dlShiftTo(we, Ft), E.compareTo(Ft) >= 0 && (E[E.t++] = 1, E.subTo(Ft, E)), i.ONE.dlShiftTo(w0, Ft), Ft.subTo(U, U); U.t < w0; )
|
|
2095
2095
|
U[U.t++] = 0;
|
|
2096
|
-
for (; --
|
|
2097
|
-
var Jr = E[--V0] ==
|
|
2098
|
-
if ((E[V0] += U.am(0, Jr, E,
|
|
2099
|
-
for (U.dlShiftTo(
|
|
2100
|
-
E.subTo(
|
|
2096
|
+
for (; --we >= 0; ) {
|
|
2097
|
+
var Jr = E[--V0] == M0 ? this.DM : Math.floor(E[V0] * vt + (E[V0 - 1] + Q0) * De);
|
|
2098
|
+
if ((E[V0] += U.am(0, Jr, E, we, 0, w0)) < Jr)
|
|
2099
|
+
for (U.dlShiftTo(we, Ft), E.subTo(Ft, E); E[V0] < --Jr; )
|
|
2100
|
+
E.subTo(Ft, E);
|
|
2101
2101
|
}
|
|
2102
|
-
h != null && (E.drShiftTo(w0, h), W != Z && i.ZERO.subTo(h, h)), E.t = w0, E.clamp(),
|
|
2102
|
+
h != null && (E.drShiftTo(w0, h), W != Z && i.ZERO.subTo(h, h)), E.t = w0, E.clamp(), v0 > 0 && E.rShiftTo(v0, E), W < 0 && i.ZERO.subTo(E, E);
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
2105
|
}
|
|
@@ -2116,16 +2116,16 @@ var Gt = {}, bx = {
|
|
|
2116
2116
|
function z(u) {
|
|
2117
2117
|
return u;
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2119
|
+
function p0(u) {
|
|
2120
2120
|
u.divRemTo(this.m, null, u);
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function i0(u, h, E) {
|
|
2123
2123
|
u.multiplyTo(h, E), this.reduce(E);
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function m0(u, h) {
|
|
2126
2126
|
u.squareTo(h), this.reduce(h);
|
|
2127
2127
|
}
|
|
2128
|
-
H.prototype.convert = $, H.prototype.revert = z, H.prototype.reduce =
|
|
2128
|
+
H.prototype.convert = $, H.prototype.revert = z, H.prototype.reduce = p0, H.prototype.mulTo = i0, H.prototype.sqrTo = m0;
|
|
2129
2129
|
function r0() {
|
|
2130
2130
|
if (this.t < 1)
|
|
2131
2131
|
return 0;
|
|
@@ -2135,18 +2135,18 @@ var Gt = {}, bx = {
|
|
|
2135
2135
|
var h = u & 3;
|
|
2136
2136
|
return h = h * (2 - (u & 15) * h) & 15, h = h * (2 - (u & 255) * h) & 255, h = h * (2 - ((u & 65535) * h & 65535)) & 65535, h = h * (2 - u * h % this.DV) % this.DV, h > 0 ? this.DV - h : -h;
|
|
2137
2137
|
}
|
|
2138
|
-
function
|
|
2138
|
+
function k0(u) {
|
|
2139
2139
|
this.m = u, this.mp = u.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << u.DB - 15) - 1, this.mt2 = 2 * u.t;
|
|
2140
2140
|
}
|
|
2141
2141
|
function rt(u) {
|
|
2142
2142
|
var h = o();
|
|
2143
2143
|
return u.abs().dlShiftTo(this.m.t, h), h.divRemTo(this.m, null, h), u.s < 0 && h.compareTo(i.ZERO) > 0 && this.m.subTo(h, h), h;
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2145
|
+
function It(u) {
|
|
2146
2146
|
var h = o();
|
|
2147
2147
|
return u.copyTo(h), this.reduce(h), h;
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function dt(u) {
|
|
2150
2150
|
for (; u.t <= this.mt2; )
|
|
2151
2151
|
u[u.t++] = 0;
|
|
2152
2152
|
for (var h = 0; h < this.m.t; ++h) {
|
|
@@ -2156,17 +2156,17 @@ var Gt = {}, bx = {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
u.clamp(), u.drShiftTo(this.m.t, u), u.compareTo(this.m) >= 0 && u.subTo(this.m, u);
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function O0(u, h) {
|
|
2160
2160
|
u.squareTo(h), this.reduce(h);
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2162
|
+
function C0(u, h, E) {
|
|
2163
2163
|
u.multiplyTo(h, E), this.reduce(E);
|
|
2164
2164
|
}
|
|
2165
|
-
|
|
2166
|
-
function
|
|
2165
|
+
k0.prototype.convert = rt, k0.prototype.revert = It, k0.prototype.reduce = dt, k0.prototype.mulTo = C0, k0.prototype.sqrTo = O0;
|
|
2166
|
+
function pt() {
|
|
2167
2167
|
return (this.t > 0 ? this[0] & 1 : this.s) == 0;
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function nt(u, h) {
|
|
2170
2170
|
if (u > 4294967295 || u < 1)
|
|
2171
2171
|
return i.ONE;
|
|
2172
2172
|
var E = o(), A = o(), P = h.convert(this), U = D(u) - 1;
|
|
@@ -2179,16 +2179,16 @@ var Gt = {}, bx = {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
return h.revert(E);
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function R(u, h) {
|
|
2183
2183
|
var E;
|
|
2184
|
-
return u < 256 || h.isEven() ? E = new H(h) : E = new
|
|
2184
|
+
return u < 256 || h.isEven() ? E = new H(h) : E = new k0(h), this.exp(u, E);
|
|
2185
2185
|
}
|
|
2186
|
-
i.prototype.copyTo = B, i.prototype.fromInt = m, i.prototype.fromString = C, i.prototype.clamp = _, i.prototype.dlShiftTo = N, i.prototype.drShiftTo =
|
|
2187
|
-
function
|
|
2186
|
+
i.prototype.copyTo = B, i.prototype.fromInt = m, i.prototype.fromString = C, i.prototype.clamp = _, i.prototype.dlShiftTo = N, i.prototype.drShiftTo = V, i.prototype.lShiftTo = J, i.prototype.rShiftTo = X, i.prototype.subTo = d0, i.prototype.multiplyTo = a0, i.prototype.squareTo = o0, i.prototype.divRemTo = h0, i.prototype.invDigit = r0, i.prototype.isEven = pt, i.prototype.exp = nt, i.prototype.toString = S, i.prototype.negate = T, i.prototype.abs = L, i.prototype.compareTo = w, i.prototype.bitLength = q, i.prototype.mod = I, i.prototype.modPowInt = R, i.ZERO = F(0), i.ONE = F(1);
|
|
2187
|
+
function j() {
|
|
2188
2188
|
var u = o();
|
|
2189
2189
|
return this.copyTo(u), u;
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function k() {
|
|
2192
2192
|
if (this.s < 0) {
|
|
2193
2193
|
if (this.t == 1)
|
|
2194
2194
|
return this[0] - this.DV;
|
|
@@ -2202,19 +2202,19 @@ var Gt = {}, bx = {
|
|
|
2202
2202
|
}
|
|
2203
2203
|
return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0];
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2205
|
+
function Q() {
|
|
2206
2206
|
return this.t == 0 ? this.s : this[0] << 24 >> 24;
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2208
|
+
function t0() {
|
|
2209
2209
|
return this.t == 0 ? this.s : this[0] << 16 >> 16;
|
|
2210
2210
|
}
|
|
2211
|
-
function
|
|
2211
|
+
function Y(u) {
|
|
2212
2212
|
return Math.floor(Math.LN2 * this.DB / Math.log(u));
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function e0() {
|
|
2215
2215
|
return this.s < 0 ? -1 : this.t <= 0 || this.t == 1 && this[0] <= 0 ? 0 : 1;
|
|
2216
2216
|
}
|
|
2217
|
-
function
|
|
2217
|
+
function u0(u) {
|
|
2218
2218
|
if (u == null && (u = 10), this.signum() == 0 || u < 2 || u > 36)
|
|
2219
2219
|
return "0";
|
|
2220
2220
|
var h = this.chunkSize(u), E = Math.pow(u, h), A = F(E), P = o(), U = o(), W = "";
|
|
@@ -2222,19 +2222,19 @@ var Gt = {}, bx = {
|
|
|
2222
2222
|
W = (E + U.intValue()).toString(u).substr(1) + W, P.divRemTo(A, P, U);
|
|
2223
2223
|
return U.intValue().toString(u) + W;
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2225
|
+
function y0(u, h) {
|
|
2226
2226
|
this.fromInt(0), h == null && (h = 10);
|
|
2227
2227
|
for (var E = this.chunkSize(h), A = Math.pow(h, E), P = !1, U = 0, W = 0, Z = 0; Z < u.length; ++Z) {
|
|
2228
|
-
var
|
|
2229
|
-
if (
|
|
2228
|
+
var v0 = b(u, Z);
|
|
2229
|
+
if (v0 < 0) {
|
|
2230
2230
|
u.charAt(Z) == "-" && this.signum() == 0 && (P = !0);
|
|
2231
2231
|
continue;
|
|
2232
2232
|
}
|
|
2233
|
-
W = h * W +
|
|
2233
|
+
W = h * W + v0, ++U >= E && (this.dMultiply(A), this.dAddOffset(W, 0), U = 0, W = 0);
|
|
2234
2234
|
}
|
|
2235
2235
|
U > 0 && (this.dMultiply(Math.pow(h, U)), this.dAddOffset(W, 0)), P && i.ZERO.subTo(this, this);
|
|
2236
2236
|
}
|
|
2237
|
-
function
|
|
2237
|
+
function E0(u, h, E) {
|
|
2238
2238
|
if (typeof h == "number")
|
|
2239
2239
|
if (u < 2)
|
|
2240
2240
|
this.fromInt(1);
|
|
@@ -2246,7 +2246,7 @@ var Gt = {}, bx = {
|
|
|
2246
2246
|
A.length = (u >> 3) + 1, h.nextBytes(A), P > 0 ? A[0] &= (1 << P) - 1 : A[0] = 0, this.fromString(A, 256);
|
|
2247
2247
|
}
|
|
2248
2248
|
}
|
|
2249
|
-
function
|
|
2249
|
+
function g0() {
|
|
2250
2250
|
var u = this.t, h = new Array();
|
|
2251
2251
|
h[0] = this.s;
|
|
2252
2252
|
var E = this.DB - u * this.DB % 8, A, P = 0;
|
|
@@ -2255,16 +2255,16 @@ var Gt = {}, bx = {
|
|
|
2255
2255
|
E < 8 ? (A = (this[u] & (1 << E) - 1) << 8 - E, A |= this[--u] >> (E += this.DB - 8)) : (A = this[u] >> (E -= 8) & 255, E <= 0 && (E += this.DB, --u)), A & 128 && (A |= -256), P == 0 && (this.s & 128) != (A & 128) && ++P, (P > 0 || A != this.s) && (h[P++] = A);
|
|
2256
2256
|
return h;
|
|
2257
2257
|
}
|
|
2258
|
-
function
|
|
2258
|
+
function X0(u) {
|
|
2259
2259
|
return this.compareTo(u) == 0;
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function st(u) {
|
|
2262
2262
|
return this.compareTo(u) < 0 ? this : u;
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2264
|
+
function bt(u) {
|
|
2265
2265
|
return this.compareTo(u) > 0 ? this : u;
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function it(u, h, E) {
|
|
2268
2268
|
var A, P, U = Math.min(u.t, this.t);
|
|
2269
2269
|
for (A = 0; A < U; ++A)
|
|
2270
2270
|
E[A] = h(this[A], u[A]);
|
|
@@ -2279,26 +2279,26 @@ var Gt = {}, bx = {
|
|
|
2279
2279
|
}
|
|
2280
2280
|
E.s = h(this.s, u.s), E.clamp();
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function Pt(u, h) {
|
|
2283
2283
|
return u & h;
|
|
2284
2284
|
}
|
|
2285
2285
|
function Lr(u) {
|
|
2286
2286
|
var h = o();
|
|
2287
|
-
return this.bitwiseTo(u,
|
|
2287
|
+
return this.bitwiseTo(u, Pt, h), h;
|
|
2288
2288
|
}
|
|
2289
2289
|
function $t(u, h) {
|
|
2290
2290
|
return u | h;
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2292
|
+
function Be(u) {
|
|
2293
2293
|
var h = o();
|
|
2294
2294
|
return this.bitwiseTo(u, $t, h), h;
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2296
|
+
function ge(u, h) {
|
|
2297
2297
|
return u ^ h;
|
|
2298
2298
|
}
|
|
2299
2299
|
function Ur(u) {
|
|
2300
2300
|
var h = o();
|
|
2301
|
-
return this.bitwiseTo(u,
|
|
2301
|
+
return this.bitwiseTo(u, ge, h), h;
|
|
2302
2302
|
}
|
|
2303
2303
|
function te(u, h) {
|
|
2304
2304
|
return u & ~h;
|
|
@@ -2307,7 +2307,7 @@ var Gt = {}, bx = {
|
|
|
2307
2307
|
var h = o();
|
|
2308
2308
|
return this.bitwiseTo(u, te, h), h;
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function Ee() {
|
|
2311
2311
|
for (var u = o(), h = 0; h < this.t; ++h)
|
|
2312
2312
|
u[h] = this.DM & ~this[h];
|
|
2313
2313
|
return u.t = this.t, u.s = ~this.s, u;
|
|
@@ -2316,7 +2316,7 @@ var Gt = {}, bx = {
|
|
|
2316
2316
|
var h = o();
|
|
2317
2317
|
return u < 0 ? this.rShiftTo(-u, h) : this.lShiftTo(u, h), h;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function ye(u) {
|
|
2320
2320
|
var h = o();
|
|
2321
2321
|
return u < 0 ? this.lShiftTo(-u, h) : this.rShiftTo(u, h), h;
|
|
2322
2322
|
}
|
|
@@ -2337,7 +2337,7 @@ var Gt = {}, bx = {
|
|
|
2337
2337
|
u &= u - 1, ++h;
|
|
2338
2338
|
return h;
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2340
|
+
function me() {
|
|
2341
2341
|
for (var u = 0, h = this.s & this.DM, E = 0; E < this.t; ++E)
|
|
2342
2342
|
u += Kr(this[E] ^ h);
|
|
2343
2343
|
return u;
|
|
@@ -2350,16 +2350,16 @@ var Gt = {}, bx = {
|
|
|
2350
2350
|
var E = i.ONE.shiftLeft(u);
|
|
2351
2351
|
return this.bitwiseTo(E, h, E), E;
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function be(u) {
|
|
2354
2354
|
return this.changeBit(u, $t);
|
|
2355
2355
|
}
|
|
2356
2356
|
function Gr(u) {
|
|
2357
2357
|
return this.changeBit(u, te);
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2360
|
-
return this.changeBit(u,
|
|
2359
|
+
function Fe(u) {
|
|
2360
|
+
return this.changeBit(u, ge);
|
|
2361
2361
|
}
|
|
2362
|
-
function
|
|
2362
|
+
function I0(u, h) {
|
|
2363
2363
|
for (var E = 0, A = 0, P = Math.min(u.t, this.t); E < P; )
|
|
2364
2364
|
A += this[E] + u[E], h[E++] = A & this.DM, A >>= this.DB;
|
|
2365
2365
|
if (u.t < this.t) {
|
|
@@ -2373,11 +2373,11 @@ var Gt = {}, bx = {
|
|
|
2373
2373
|
}
|
|
2374
2374
|
h.s = A < 0 ? -1 : 0, A > 0 ? h[E++] = A : A < -1 && (h[E++] = this.DV + A), h.t = E, h.clamp();
|
|
2375
2375
|
}
|
|
2376
|
-
function
|
|
2376
|
+
function ot(u) {
|
|
2377
2377
|
var h = o();
|
|
2378
2378
|
return this.addTo(u, h), h;
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2380
|
+
function Ae(u) {
|
|
2381
2381
|
var h = o();
|
|
2382
2382
|
return this.subTo(u, h), h;
|
|
2383
2383
|
}
|
|
@@ -2447,7 +2447,7 @@ var Gt = {}, bx = {
|
|
|
2447
2447
|
E[this.t + A - h] = this.am(h - A, u[A], E, 0, 0, this.t + A - h);
|
|
2448
2448
|
E.clamp(), E.drShiftTo(1, E);
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2450
|
+
function Ht(u) {
|
|
2451
2451
|
this.r2 = o(), this.q3 = o(), i.ONE.dlShiftTo(2 * u.t, this.r2), this.mu = this.r2.divide(u), this.m = u;
|
|
2452
2452
|
}
|
|
2453
2453
|
function Ho(u) {
|
|
@@ -2473,31 +2473,31 @@ var Gt = {}, bx = {
|
|
|
2473
2473
|
function Lo(u, h, E) {
|
|
2474
2474
|
u.multiplyTo(h, E), this.reduce(E);
|
|
2475
2475
|
}
|
|
2476
|
-
|
|
2476
|
+
Ht.prototype.convert = Ho, Ht.prototype.revert = qo, Ht.prototype.reduce = No, Ht.prototype.mulTo = Lo, Ht.prototype.sqrTo = zo;
|
|
2477
2477
|
function Uo(u, h) {
|
|
2478
2478
|
var E = u.bitLength(), A, P = F(1), U;
|
|
2479
2479
|
if (E <= 0)
|
|
2480
2480
|
return P;
|
|
2481
|
-
E < 18 ? A = 1 : E < 48 ? A = 3 : E < 144 ? A = 4 : E < 768 ? A = 5 : A = 6, E < 8 ? U = new H(h) : h.isEven() ? U = new
|
|
2482
|
-
var W = new Array(), Z = 3,
|
|
2481
|
+
E < 18 ? A = 1 : E < 48 ? A = 3 : E < 144 ? A = 4 : E < 768 ? A = 5 : A = 6, E < 8 ? U = new H(h) : h.isEven() ? U = new Ht(h) : U = new k0(h);
|
|
2482
|
+
var W = new Array(), Z = 3, v0 = A - 1, w0 = (1 << A) - 1;
|
|
2483
2483
|
if (W[1] = U.convert(this), A > 1) {
|
|
2484
|
-
var
|
|
2485
|
-
for (U.sqrTo(W[1],
|
|
2486
|
-
W[Z] = o(), U.mulTo(
|
|
2484
|
+
var M0 = o();
|
|
2485
|
+
for (U.sqrTo(W[1], M0); Z <= w0; )
|
|
2486
|
+
W[Z] = o(), U.mulTo(M0, W[Z - 2], W[Z]), Z += 2;
|
|
2487
2487
|
}
|
|
2488
|
-
var
|
|
2489
|
-
for (E = D(u[
|
|
2490
|
-
for (E >=
|
|
2491
|
-
|
|
2492
|
-
if ((E -= Z) < 0 && (E += this.DB, --
|
|
2493
|
-
W[
|
|
2488
|
+
var z0 = u.t - 1, vt, De = !0, Q0 = o(), V0;
|
|
2489
|
+
for (E = D(u[z0]) - 1; z0 >= 0; ) {
|
|
2490
|
+
for (E >= v0 ? vt = u[z0] >> E - v0 & w0 : (vt = (u[z0] & (1 << E + 1) - 1) << v0 - E, z0 > 0 && (vt |= u[z0 - 1] >> this.DB + E - v0)), Z = A; !(vt & 1); )
|
|
2491
|
+
vt >>= 1, --Z;
|
|
2492
|
+
if ((E -= Z) < 0 && (E += this.DB, --z0), De)
|
|
2493
|
+
W[vt].copyTo(P), De = !1;
|
|
2494
2494
|
else {
|
|
2495
2495
|
for (; Z > 1; )
|
|
2496
2496
|
U.sqrTo(P, Q0), U.sqrTo(Q0, P), Z -= 2;
|
|
2497
|
-
Z > 0 ? U.sqrTo(P, Q0) : (V0 = P, P = Q0, Q0 = V0), U.mulTo(Q0, W[
|
|
2497
|
+
Z > 0 ? U.sqrTo(P, Q0) : (V0 = P, P = Q0, Q0 = V0), U.mulTo(Q0, W[vt], P);
|
|
2498
2498
|
}
|
|
2499
|
-
for (;
|
|
2500
|
-
U.sqrTo(P, Q0), V0 = P, P = Q0, Q0 = V0, --E < 0 && (E = this.DB - 1, --
|
|
2499
|
+
for (; z0 >= 0 && !(u[z0] & 1 << E); )
|
|
2500
|
+
U.sqrTo(P, Q0), V0 = P, P = Q0, Q0 = V0, --E < 0 && (E = this.DB - 1, --z0);
|
|
2501
2501
|
}
|
|
2502
2502
|
return U.revert(P);
|
|
2503
2503
|
}
|
|
@@ -2547,22 +2547,22 @@ var Gt = {}, bx = {
|
|
|
2547
2547
|
return Z;
|
|
2548
2548
|
return Z.signum() < 0 ? Z.add(u) : Z;
|
|
2549
2549
|
}
|
|
2550
|
-
var
|
|
2550
|
+
var P0 = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], Wo = (1 << 26) / P0[P0.length - 1];
|
|
2551
2551
|
function Ko(u) {
|
|
2552
2552
|
var h, E = this.abs();
|
|
2553
|
-
if (E.t == 1 && E[0] <=
|
|
2554
|
-
for (h = 0; h <
|
|
2555
|
-
if (E[0] ==
|
|
2553
|
+
if (E.t == 1 && E[0] <= P0[P0.length - 1]) {
|
|
2554
|
+
for (h = 0; h < P0.length; ++h)
|
|
2555
|
+
if (E[0] == P0[h])
|
|
2556
2556
|
return !0;
|
|
2557
2557
|
return !1;
|
|
2558
2558
|
}
|
|
2559
2559
|
if (E.isEven())
|
|
2560
2560
|
return !1;
|
|
2561
|
-
for (h = 1; h <
|
|
2562
|
-
for (var A =
|
|
2563
|
-
A *=
|
|
2561
|
+
for (h = 1; h < P0.length; ) {
|
|
2562
|
+
for (var A = P0[h], P = h + 1; P < P0.length && A < Wo; )
|
|
2563
|
+
A *= P0[P++];
|
|
2564
2564
|
for (A = E.modInt(A); h < P; )
|
|
2565
|
-
if (A %
|
|
2565
|
+
if (A % P0[h++] == 0)
|
|
2566
2566
|
return !1;
|
|
2567
2567
|
}
|
|
2568
2568
|
return E.millerRabin(u);
|
|
@@ -2572,9 +2572,9 @@ var Gt = {}, bx = {
|
|
|
2572
2572
|
if (E <= 0)
|
|
2573
2573
|
return !1;
|
|
2574
2574
|
var A = h.shiftRight(E);
|
|
2575
|
-
u = u + 1 >> 1, u >
|
|
2575
|
+
u = u + 1 >> 1, u > P0.length && (u = P0.length);
|
|
2576
2576
|
for (var P = o(), U = 0; U < u; ++U) {
|
|
2577
|
-
P.fromInt(
|
|
2577
|
+
P.fromInt(P0[Math.floor(Math.random() * P0.length)]);
|
|
2578
2578
|
var W = P.modPow(A, this);
|
|
2579
2579
|
if (W.compareTo(i.ONE) != 0 && W.compareTo(h) != 0) {
|
|
2580
2580
|
for (var Z = 1; Z++ < E && W.compareTo(h) != 0; )
|
|
@@ -2586,39 +2586,39 @@ var Gt = {}, bx = {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
return !0;
|
|
2588
2588
|
}
|
|
2589
|
-
i.prototype.chunkSize =
|
|
2590
|
-
var
|
|
2589
|
+
i.prototype.chunkSize = Y, i.prototype.toRadix = u0, i.prototype.fromRadix = y0, i.prototype.fromNumber = E0, i.prototype.bitwiseTo = it, i.prototype.changeBit = Xr, i.prototype.addTo = I0, i.prototype.dMultiply = So, i.prototype.dAddOffset = To, i.prototype.multiplyLowerTo = Io, i.prototype.multiplyUpperTo = Po, i.prototype.modInt = Mo, i.prototype.millerRabin = Zo, i.prototype.clone = j, i.prototype.intValue = k, i.prototype.byteValue = Q, i.prototype.shortValue = t0, i.prototype.signum = e0, i.prototype.toByteArray = g0, i.prototype.equals = X0, i.prototype.min = st, i.prototype.max = bt, i.prototype.and = Lr, i.prototype.or = Be, i.prototype.xor = Ur, i.prototype.andNot = $r, i.prototype.not = Ee, i.prototype.shiftLeft = Mr, i.prototype.shiftRight = ye, i.prototype.getLowestSetBit = Wr, i.prototype.bitCount = me, i.prototype.testBit = Zr, i.prototype.setBit = be, i.prototype.clearBit = Gr, i.prototype.flipBit = Fe, i.prototype.add = ot, i.prototype.subtract = Ae, i.prototype.multiply = Qr, i.prototype.divide = Do, i.prototype.remainder = wo, i.prototype.divideAndRemainder = _o, i.prototype.modPow = Uo, i.prototype.modInverse = jo, i.prototype.pow = Oo, i.prototype.gcd = $o, i.prototype.isProbablePrime = Ko, i.prototype.square = Co, i.prototype.Barrett = Ht;
|
|
2590
|
+
var Ce, N0, D0;
|
|
2591
2591
|
function Xo(u) {
|
|
2592
|
-
|
|
2592
|
+
N0[D0++] ^= u & 255, N0[D0++] ^= u >> 8 & 255, N0[D0++] ^= u >> 16 & 255, N0[D0++] ^= u >> 24 & 255, D0 >= Yr && (D0 -= Yr);
|
|
2593
2593
|
}
|
|
2594
2594
|
function $n() {
|
|
2595
2595
|
Xo(new Date().getTime());
|
|
2596
2596
|
}
|
|
2597
|
-
if (
|
|
2598
|
-
|
|
2597
|
+
if (N0 == null) {
|
|
2598
|
+
N0 = new Array(), D0 = 0;
|
|
2599
2599
|
var G0;
|
|
2600
2600
|
if (typeof window < "u" && window.crypto) {
|
|
2601
2601
|
if (window.crypto.getRandomValues) {
|
|
2602
2602
|
var Mn = new Uint8Array(32);
|
|
2603
2603
|
for (window.crypto.getRandomValues(Mn), G0 = 0; G0 < 32; ++G0)
|
|
2604
|
-
|
|
2604
|
+
N0[D0++] = Mn[G0];
|
|
2605
2605
|
} else if (navigator.appName == "Netscape" && navigator.appVersion < "5") {
|
|
2606
2606
|
var jn = window.crypto.random(32);
|
|
2607
2607
|
for (G0 = 0; G0 < jn.length; ++G0)
|
|
2608
|
-
|
|
2608
|
+
N0[D0++] = jn.charCodeAt(G0) & 255;
|
|
2609
2609
|
}
|
|
2610
2610
|
}
|
|
2611
2611
|
for (; D0 < Yr; )
|
|
2612
|
-
G0 = Math.floor(65536 * Math.random()),
|
|
2612
|
+
G0 = Math.floor(65536 * Math.random()), N0[D0++] = G0 >>> 8, N0[D0++] = G0 & 255;
|
|
2613
2613
|
D0 = 0, $n();
|
|
2614
2614
|
}
|
|
2615
2615
|
function Go() {
|
|
2616
|
-
if (
|
|
2617
|
-
for ($n(),
|
|
2618
|
-
|
|
2616
|
+
if (Ce == null) {
|
|
2617
|
+
for ($n(), Ce = Jo(), Ce.init(N0), D0 = 0; D0 < N0.length; ++D0)
|
|
2618
|
+
N0[D0] = 0;
|
|
2619
2619
|
D0 = 0;
|
|
2620
2620
|
}
|
|
2621
|
-
return
|
|
2621
|
+
return Ce.next();
|
|
2622
2622
|
}
|
|
2623
2623
|
function Qo(u) {
|
|
2624
2624
|
var h;
|
|
@@ -2733,8 +2733,8 @@ var Cx = {
|
|
|
2733
2733
|
return { r: c, s: x };
|
|
2734
2734
|
}
|
|
2735
2735
|
};
|
|
2736
|
-
const { BigInteger:
|
|
2737
|
-
class
|
|
2736
|
+
const { BigInteger: H0 } = Gt, os = new H0("2"), as = new H0("3");
|
|
2737
|
+
class St {
|
|
2738
2738
|
constructor(e, r) {
|
|
2739
2739
|
this.x = r, this.q = e;
|
|
2740
2740
|
}
|
|
@@ -2754,42 +2754,42 @@ class _t {
|
|
|
2754
2754
|
* 取反
|
|
2755
2755
|
*/
|
|
2756
2756
|
negate() {
|
|
2757
|
-
return new
|
|
2757
|
+
return new St(this.q, this.x.negate().mod(this.q));
|
|
2758
2758
|
}
|
|
2759
2759
|
/**
|
|
2760
2760
|
* 相加
|
|
2761
2761
|
*/
|
|
2762
2762
|
add(e) {
|
|
2763
|
-
return new
|
|
2763
|
+
return new St(this.q, this.x.add(e.toBigInteger()).mod(this.q));
|
|
2764
2764
|
}
|
|
2765
2765
|
/**
|
|
2766
2766
|
* 相减
|
|
2767
2767
|
*/
|
|
2768
2768
|
subtract(e) {
|
|
2769
|
-
return new
|
|
2769
|
+
return new St(this.q, this.x.subtract(e.toBigInteger()).mod(this.q));
|
|
2770
2770
|
}
|
|
2771
2771
|
/**
|
|
2772
2772
|
* 相乘
|
|
2773
2773
|
*/
|
|
2774
2774
|
multiply(e) {
|
|
2775
|
-
return new
|
|
2775
|
+
return new St(this.q, this.x.multiply(e.toBigInteger()).mod(this.q));
|
|
2776
2776
|
}
|
|
2777
2777
|
/**
|
|
2778
2778
|
* 相除
|
|
2779
2779
|
*/
|
|
2780
2780
|
divide(e) {
|
|
2781
|
-
return new
|
|
2781
|
+
return new St(this.q, this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q));
|
|
2782
2782
|
}
|
|
2783
2783
|
/**
|
|
2784
2784
|
* 平方
|
|
2785
2785
|
*/
|
|
2786
2786
|
square() {
|
|
2787
|
-
return new
|
|
2787
|
+
return new St(this.q, this.x.square().mod(this.q));
|
|
2788
2788
|
}
|
|
2789
2789
|
}
|
|
2790
|
-
class
|
|
2790
|
+
class Rt {
|
|
2791
2791
|
constructor(e, r, n, s) {
|
|
2792
|
-
this.curve = e, this.x = r, this.y = n, this.z = s ??
|
|
2792
|
+
this.curve = e, this.x = r, this.y = n, this.z = s ?? H0.ONE, this.zinv = null;
|
|
2793
2793
|
}
|
|
2794
2794
|
getX() {
|
|
2795
2795
|
return this.zinv === null && (this.zinv = this.z.modInverse(this.curve.q)), this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q));
|
|
@@ -2801,19 +2801,19 @@ class Tt {
|
|
|
2801
2801
|
* 判断相等
|
|
2802
2802
|
*/
|
|
2803
2803
|
equals(e) {
|
|
2804
|
-
return e === this ? !0 : this.isInfinity() ? e.isInfinity() : e.isInfinity() ? this.isInfinity() : e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(
|
|
2804
|
+
return e === this ? !0 : this.isInfinity() ? e.isInfinity() : e.isInfinity() ? this.isInfinity() : e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(H0.ZERO) ? e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q).equals(H0.ZERO) : !1;
|
|
2805
2805
|
}
|
|
2806
2806
|
/**
|
|
2807
2807
|
* 是否是无穷远点
|
|
2808
2808
|
*/
|
|
2809
2809
|
isInfinity() {
|
|
2810
|
-
return this.x === null && this.y === null ? !0 : this.z.equals(
|
|
2810
|
+
return this.x === null && this.y === null ? !0 : this.z.equals(H0.ZERO) && !this.y.toBigInteger().equals(H0.ZERO);
|
|
2811
2811
|
}
|
|
2812
2812
|
/**
|
|
2813
2813
|
* 取反,x 轴对称点
|
|
2814
2814
|
*/
|
|
2815
2815
|
negate() {
|
|
2816
|
-
return new
|
|
2816
|
+
return new Rt(this.curve, this.x, this.y.negate(), this.z);
|
|
2817
2817
|
}
|
|
2818
2818
|
/**
|
|
2819
2819
|
* 相加
|
|
@@ -2841,10 +2841,10 @@ class Tt {
|
|
|
2841
2841
|
if (e.isInfinity())
|
|
2842
2842
|
return this;
|
|
2843
2843
|
const r = this.x.toBigInteger(), n = this.y.toBigInteger(), s = this.z, i = e.x.toBigInteger(), o = e.y.toBigInteger(), a = e.z, g = this.curve.q, c = r.multiply(a).mod(g), x = i.multiply(s).mod(g), p = c.subtract(x), d = n.multiply(a).mod(g), v = o.multiply(s).mod(g), f = d.subtract(v);
|
|
2844
|
-
if (
|
|
2845
|
-
return
|
|
2844
|
+
if (H0.ZERO.equals(p))
|
|
2845
|
+
return H0.ZERO.equals(f) ? this.twice() : this.curve.infinity;
|
|
2846
2846
|
const l = c.add(x), y = s.multiply(a).mod(g), b = p.square().mod(g), B = p.multiply(b).mod(g), m = y.multiply(f.square()).subtract(l.multiply(b)).mod(g), F = p.multiply(m).mod(g), C = f.multiply(b.multiply(c).subtract(m)).subtract(d.multiply(B)).mod(g), _ = B.multiply(y).mod(g);
|
|
2847
|
-
return new
|
|
2847
|
+
return new Rt(this.curve, this.curve.fromBigInteger(F), this.curve.fromBigInteger(C), _);
|
|
2848
2848
|
}
|
|
2849
2849
|
/**
|
|
2850
2850
|
* 自加
|
|
@@ -2867,7 +2867,7 @@ class Tt {
|
|
|
2867
2867
|
if (!this.y.toBigInteger().signum())
|
|
2868
2868
|
return this.curve.infinity;
|
|
2869
2869
|
const e = this.x.toBigInteger(), r = this.y.toBigInteger(), n = this.z, s = this.curve.q, i = this.curve.a.toBigInteger(), o = e.square().multiply(as).add(i.multiply(n.square())).mod(s), a = r.shiftLeft(1).multiply(n).mod(s), g = r.square().mod(s), c = g.multiply(e).multiply(n).mod(s), x = a.square().mod(s), p = o.square().subtract(c.shiftLeft(3)).mod(s), d = a.multiply(p).mod(s), v = o.multiply(c.shiftLeft(2).subtract(p)).subtract(x.shiftLeft(1).multiply(g)).mod(s), f = a.multiply(x).mod(s);
|
|
2870
|
-
return new
|
|
2870
|
+
return new Rt(this.curve, this.curve.fromBigInteger(d), this.curve.fromBigInteger(v), f);
|
|
2871
2871
|
}
|
|
2872
2872
|
/**
|
|
2873
2873
|
* 倍点计算
|
|
@@ -2889,7 +2889,7 @@ class Tt {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
let Dx = class {
|
|
2891
2891
|
constructor(e, r, n) {
|
|
2892
|
-
this.q = e, this.a = this.fromBigInteger(r), this.b = this.fromBigInteger(n), this.infinity = new
|
|
2892
|
+
this.q = e, this.a = this.fromBigInteger(r), this.b = this.fromBigInteger(n), this.infinity = new Rt(this, null, null);
|
|
2893
2893
|
}
|
|
2894
2894
|
/**
|
|
2895
2895
|
* 判断两个椭圆曲线是否相等
|
|
@@ -2901,7 +2901,7 @@ let Dx = class {
|
|
|
2901
2901
|
* 生成椭圆曲线域元素
|
|
2902
2902
|
*/
|
|
2903
2903
|
fromBigInteger(e) {
|
|
2904
|
-
return new
|
|
2904
|
+
return new St(this.q, e);
|
|
2905
2905
|
}
|
|
2906
2906
|
/**
|
|
2907
2907
|
* 解析 16 进制串为椭圆曲线点
|
|
@@ -2912,26 +2912,26 @@ let Dx = class {
|
|
|
2912
2912
|
return this.infinity;
|
|
2913
2913
|
case 2:
|
|
2914
2914
|
case 3:
|
|
2915
|
-
const r = this.fromBigInteger(new
|
|
2915
|
+
const r = this.fromBigInteger(new H0(e.substr(2), 16));
|
|
2916
2916
|
let n = this.fromBigInteger(r.multiply(r.square()).add(
|
|
2917
2917
|
r.multiply(this.a)
|
|
2918
2918
|
).add(this.b).toBigInteger().modPow(
|
|
2919
|
-
this.q.divide(new
|
|
2919
|
+
this.q.divide(new H0("4")).add(H0.ONE),
|
|
2920
2920
|
this.q
|
|
2921
2921
|
));
|
|
2922
|
-
return n.toBigInteger().mod(os).equals(new
|
|
2922
|
+
return n.toBigInteger().mod(os).equals(new H0(e.substr(0, 2), 16).subtract(os)) || (n = n.negate()), new Rt(this, r, n);
|
|
2923
2923
|
case 4:
|
|
2924
2924
|
case 6:
|
|
2925
2925
|
case 7:
|
|
2926
2926
|
const s = (e.length - 2) / 2, i = e.substr(2, s), o = e.substr(s + 2, s);
|
|
2927
|
-
return new
|
|
2927
|
+
return new Rt(this, this.fromBigInteger(new H0(i, 16)), this.fromBigInteger(new H0(o, 16)));
|
|
2928
2928
|
default:
|
|
2929
2929
|
return null;
|
|
2930
2930
|
}
|
|
2931
2931
|
}
|
|
2932
2932
|
};
|
|
2933
2933
|
var wx = {
|
|
2934
|
-
ECPointFp:
|
|
2934
|
+
ECPointFp: Rt,
|
|
2935
2935
|
ECCurveFp: Dx
|
|
2936
2936
|
};
|
|
2937
2937
|
const { BigInteger: et, SecureRandom: _x } = Gt, { ECCurveFp: Sx } = wx, Tx = new _x(), { curve: Kt, G: Rx, n: cs } = Li();
|
|
@@ -3023,7 +3023,7 @@ var Ux = {
|
|
|
3023
3023
|
comparePublicKeyHex: Lx
|
|
3024
3024
|
};
|
|
3025
3025
|
const Y0 = new Uint32Array(68), un = new Uint32Array(64);
|
|
3026
|
-
function
|
|
3026
|
+
function j0(t, e) {
|
|
3027
3027
|
const r = e & 31;
|
|
3028
3028
|
return t << r | t >>> 32 - r;
|
|
3029
3029
|
}
|
|
@@ -3034,12 +3034,12 @@ function xs(t, e) {
|
|
|
3034
3034
|
return r;
|
|
3035
3035
|
}
|
|
3036
3036
|
function $x(t) {
|
|
3037
|
-
return t ^
|
|
3037
|
+
return t ^ j0(t, 9) ^ j0(t, 17);
|
|
3038
3038
|
}
|
|
3039
3039
|
function Mx(t) {
|
|
3040
|
-
return t ^
|
|
3040
|
+
return t ^ j0(t, 15) ^ j0(t, 23);
|
|
3041
3041
|
}
|
|
3042
|
-
function
|
|
3042
|
+
function Ne(t) {
|
|
3043
3043
|
let e = t.length * 8, r = e % 512;
|
|
3044
3044
|
r = r >= 448 ? 512 - r % 448 - 1 : 448 - r - 1;
|
|
3045
3045
|
const n = new Array((r - 7) / 8), s = new Array(8);
|
|
@@ -3061,13 +3061,13 @@ function qe(t) {
|
|
|
3061
3061
|
for (let D = 0; D < 16; D++)
|
|
3062
3062
|
Y0[D] = o.getUint32((p + D) * 4, !1);
|
|
3063
3063
|
for (let D = 16; D < 68; D++)
|
|
3064
|
-
Y0[D] = Mx(Y0[D - 16] ^ Y0[D - 9] ^
|
|
3064
|
+
Y0[D] = Mx(Y0[D - 16] ^ Y0[D - 9] ^ j0(Y0[D - 3], 15)) ^ j0(Y0[D - 13], 7) ^ Y0[D - 6];
|
|
3065
3065
|
for (let D = 0; D < 64; D++)
|
|
3066
3066
|
un[D] = Y0[D] ^ Y0[D + 4];
|
|
3067
3067
|
const d = 2043430169, v = 2055708042;
|
|
3068
3068
|
let f = g[0], l = g[1], y = g[2], b = g[3], B = g[4], m = g[5], F = g[6], C = g[7], _, S, T, L, w;
|
|
3069
3069
|
for (let D = 0; D < 64; D++)
|
|
3070
|
-
w = D >= 0 && D <= 15 ? d : v, _ =
|
|
3070
|
+
w = D >= 0 && D <= 15 ? d : v, _ = j0(j0(f, 12) + B + j0(w, D), 7), S = _ ^ j0(f, 12), T = (D >= 0 && D <= 15 ? f ^ l ^ y : f & l | f & y | l & y) + b + S + un[D], L = (D >= 0 && D <= 15 ? B ^ m ^ F : B & m | ~B & F) + C + _ + Y0[D], b = y, y = j0(l, 9), l = f, f = T, C = F, F = j0(m, 19), m = B, B = $x(L);
|
|
3071
3071
|
g[0] ^= f, g[1] ^= l, g[2] ^= y, g[3] ^= b, g[4] ^= B, g[5] ^= m, g[6] ^= F, g[7] ^= C;
|
|
3072
3072
|
}
|
|
3073
3073
|
const c = [];
|
|
@@ -3077,23 +3077,23 @@ function qe(t) {
|
|
|
3077
3077
|
}
|
|
3078
3078
|
return c;
|
|
3079
3079
|
}
|
|
3080
|
-
const
|
|
3081
|
-
for (let t = 0; t <
|
|
3080
|
+
const he = 64, Ui = new Uint8Array(he), $i = new Uint8Array(he);
|
|
3081
|
+
for (let t = 0; t < he; t++)
|
|
3082
3082
|
Ui[t] = 54, $i[t] = 92;
|
|
3083
3083
|
function jx(t, e) {
|
|
3084
|
-
for (e.length >
|
|
3084
|
+
for (e.length > he && (e = Ne(e)); e.length < he; )
|
|
3085
3085
|
e.push(0);
|
|
3086
|
-
const r = xs(e, Ui), n = xs(e, $i), s =
|
|
3087
|
-
return
|
|
3086
|
+
const r = xs(e, Ui), n = xs(e, $i), s = Ne([...r, ...t]);
|
|
3087
|
+
return Ne([...n, ...s]);
|
|
3088
3088
|
}
|
|
3089
3089
|
var Mi = {
|
|
3090
|
-
sm3:
|
|
3090
|
+
sm3: Ne,
|
|
3091
3091
|
hmac: jx
|
|
3092
3092
|
};
|
|
3093
|
-
const { BigInteger:
|
|
3093
|
+
const { BigInteger: U0 } = Gt, { encodeDer: Wx, decodeDer: Kx } = Cx, n0 = Ux, Vt = Mi.sm3, { G: Nt, curve: ji, n: Mt } = n0.generateEcparam(), Wi = 0;
|
|
3094
3094
|
function Zx(t, e, r = 1) {
|
|
3095
3095
|
t = typeof t == "string" ? n0.hexToArray(n0.utf8ToHex(t)) : Array.prototype.slice.call(t), e = n0.getGlobalCurve().decodePointHex(e);
|
|
3096
|
-
const n = n0.generateKeyPairHex(), s = new
|
|
3096
|
+
const n = n0.generateKeyPairHex(), s = new U0(n.privateKey, 16);
|
|
3097
3097
|
let i = n.publicKey;
|
|
3098
3098
|
i.length > 128 && (i = i.substr(i.length - 128));
|
|
3099
3099
|
const o = e.multiply(s), a = n0.hexToArray(n0.leftPad(o.getX().toBigInteger().toRadix(16), 64)), g = n0.hexToArray(n0.leftPad(o.getY().toBigInteger().toRadix(16), 64)), c = n0.arrayToHex(Vt([].concat(a, t, g)));
|
|
@@ -3110,7 +3110,7 @@ function Zx(t, e, r = 1) {
|
|
|
3110
3110
|
function Xx(t, e, r = 1, {
|
|
3111
3111
|
output: n = "string"
|
|
3112
3112
|
} = {}) {
|
|
3113
|
-
e = new
|
|
3113
|
+
e = new U0(e, 16);
|
|
3114
3114
|
let s = t.substr(128, 64), i = t.substr(128 + 64);
|
|
3115
3115
|
r === Wi && (s = t.substr(t.length - 64), i = t.substr(128, t.length - 128 - 64));
|
|
3116
3116
|
const o = n0.hexToArray(i), g = n0.getGlobalCurve().decodePointHex("04" + t.substr(0, 128)).multiply(e), c = n0.hexToArray(n0.leftPad(g.getX().toBigInteger().toRadix(16), 64)), x = n0.hexToArray(n0.leftPad(g.getY().toBigInteger().toRadix(16), 64));
|
|
@@ -3132,15 +3132,15 @@ function Gx(t, e, {
|
|
|
3132
3132
|
} = {}) {
|
|
3133
3133
|
let a = typeof t == "string" ? n0.utf8ToHex(t) : n0.arrayToHex(t);
|
|
3134
3134
|
s && (i = i || Zi(e), a = Ki(a, i, o));
|
|
3135
|
-
const g = new
|
|
3135
|
+
const g = new U0(e, 16), c = new U0(a, 16);
|
|
3136
3136
|
let x = null, p = null, d = null;
|
|
3137
3137
|
do {
|
|
3138
3138
|
do {
|
|
3139
3139
|
let v;
|
|
3140
3140
|
r && r.length ? v = r.pop() : v = Xi(), x = v.k, p = c.add(v.x1).mod(Mt);
|
|
3141
|
-
} while (p.equals(
|
|
3142
|
-
d = g.add(
|
|
3143
|
-
} while (d.equals(
|
|
3141
|
+
} while (p.equals(U0.ZERO) || p.add(x).equals(Mt));
|
|
3142
|
+
d = g.add(U0.ONE).modInverse(Mt).multiply(x.subtract(p.multiply(g))).mod(Mt);
|
|
3143
|
+
} while (d.equals(U0.ZERO));
|
|
3144
3144
|
return n ? Wx(p, d) : n0.leftPad(p.toString(16), 64) + n0.leftPad(d.toString(16), 64);
|
|
3145
3145
|
}
|
|
3146
3146
|
function Qx(t, e, r, { der: n, hash: s, userId: i } = {}) {
|
|
@@ -3151,21 +3151,21 @@ function Qx(t, e, r, { der: n, hash: s, userId: i } = {}) {
|
|
|
3151
3151
|
const f = Kx(e);
|
|
3152
3152
|
a = f.r, g = f.s;
|
|
3153
3153
|
} else
|
|
3154
|
-
a = new
|
|
3155
|
-
const c = ji.decodePointHex(r), x = new
|
|
3156
|
-
if (p.equals(
|
|
3154
|
+
a = new U0(e.substring(0, 64), 16), g = new U0(e.substring(64), 16);
|
|
3155
|
+
const c = ji.decodePointHex(r), x = new U0(o, 16), p = a.add(g).mod(Mt);
|
|
3156
|
+
if (p.equals(U0.ZERO))
|
|
3157
3157
|
return !1;
|
|
3158
|
-
const d =
|
|
3158
|
+
const d = Nt.multiply(g).add(c.multiply(p)), v = x.add(d.getX().toBigInteger()).mod(Mt);
|
|
3159
3159
|
return a.equals(v);
|
|
3160
3160
|
}
|
|
3161
3161
|
function Ki(t, e, r = "1234567812345678") {
|
|
3162
3162
|
r = n0.utf8ToHex(r);
|
|
3163
|
-
const n = n0.leftPad(
|
|
3163
|
+
const n = n0.leftPad(Nt.curve.a.toBigInteger().toRadix(16), 64), s = n0.leftPad(Nt.curve.b.toBigInteger().toRadix(16), 64), i = n0.leftPad(Nt.getX().toBigInteger().toRadix(16), 64), o = n0.leftPad(Nt.getY().toBigInteger().toRadix(16), 64);
|
|
3164
3164
|
let a, g;
|
|
3165
3165
|
if (e.length === 128)
|
|
3166
3166
|
a = e.substr(0, 64), g = e.substr(64, 64);
|
|
3167
3167
|
else {
|
|
3168
|
-
const d =
|
|
3168
|
+
const d = Nt.curve.decodePointHex(e);
|
|
3169
3169
|
a = n0.leftPad(d.getX().toBigInteger().toRadix(16), 64), g = n0.leftPad(d.getY().toBigInteger().toRadix(16), 64);
|
|
3170
3170
|
}
|
|
3171
3171
|
const c = n0.hexToArray(r + n + s + i + o + a + g), x = r.length * 4;
|
|
@@ -3174,12 +3174,12 @@ function Ki(t, e, r = "1234567812345678") {
|
|
|
3174
3174
|
return n0.arrayToHex(Vt(p.concat(n0.hexToArray(t))));
|
|
3175
3175
|
}
|
|
3176
3176
|
function Zi(t) {
|
|
3177
|
-
const e =
|
|
3177
|
+
const e = Nt.multiply(new U0(t, 16)), r = n0.leftPad(e.getX().toBigInteger().toString(16), 64), n = n0.leftPad(e.getY().toBigInteger().toString(16), 64);
|
|
3178
3178
|
return "04" + r + n;
|
|
3179
3179
|
}
|
|
3180
3180
|
function Xi() {
|
|
3181
3181
|
const t = n0.generateKeyPairHex(), e = ji.decodePointHex(t.publicKey);
|
|
3182
|
-
return t.k = new
|
|
3182
|
+
return t.k = new U0(t.privateKey, 16), t.x1 = e.getX().toBigInteger(), t;
|
|
3183
3183
|
}
|
|
3184
3184
|
var Vx = {
|
|
3185
3185
|
generateKeyPairHex: n0.generateKeyPairHex,
|
|
@@ -3236,7 +3236,7 @@ var nf = function(t, e) {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
return fs(Yx(t));
|
|
3238
3238
|
};
|
|
3239
|
-
const
|
|
3239
|
+
const Ct = 0, sf = 32, qt = 16, Se = [
|
|
3240
3240
|
214,
|
|
3241
3241
|
144,
|
|
3242
3242
|
233,
|
|
@@ -3493,7 +3493,7 @@ const At = 0, sf = 32, Ht = 16, _e = [
|
|
|
3493
3493
|
203,
|
|
3494
3494
|
57,
|
|
3495
3495
|
72
|
|
3496
|
-
],
|
|
3496
|
+
], Te = [
|
|
3497
3497
|
462357,
|
|
3498
3498
|
472066609,
|
|
3499
3499
|
943670861,
|
|
@@ -3563,13 +3563,13 @@ function jt(t, e) {
|
|
|
3563
3563
|
const r = e & 31;
|
|
3564
3564
|
return t << r | t >>> 32 - r;
|
|
3565
3565
|
}
|
|
3566
|
-
function
|
|
3567
|
-
return (
|
|
3566
|
+
function Tt(t) {
|
|
3567
|
+
return (Se[t >>> 24 & 255] & 255) << 24 | (Se[t >>> 16 & 255] & 255) << 16 | (Se[t >>> 8 & 255] & 255) << 8 | Se[t & 255] & 255;
|
|
3568
3568
|
}
|
|
3569
|
-
function
|
|
3569
|
+
function Re(t) {
|
|
3570
3570
|
return t ^ jt(t, 2) ^ jt(t, 10) ^ jt(t, 18) ^ jt(t, 24);
|
|
3571
3571
|
}
|
|
3572
|
-
function
|
|
3572
|
+
function ke(t) {
|
|
3573
3573
|
return t ^ jt(t, 13) ^ jt(t, 23);
|
|
3574
3574
|
}
|
|
3575
3575
|
function xf(t, e, r) {
|
|
@@ -3577,7 +3577,7 @@ function xf(t, e, r) {
|
|
|
3577
3577
|
for (let i = 0; i < 4; i++)
|
|
3578
3578
|
s[0] = t[4 * i] & 255, s[1] = t[4 * i + 1] & 255, s[2] = t[4 * i + 2] & 255, s[3] = t[4 * i + 3] & 255, n[i] = s[0] << 24 | s[1] << 16 | s[2] << 8 | s[3];
|
|
3579
3579
|
for (let i = 0, o; i < 32; i += 4)
|
|
3580
|
-
o = n[1] ^ n[2] ^ n[3] ^ r[i + 0], n[0] ^=
|
|
3580
|
+
o = n[1] ^ n[2] ^ n[3] ^ r[i + 0], n[0] ^= Re(Tt(o)), o = n[2] ^ n[3] ^ n[0] ^ r[i + 1], n[1] ^= Re(Tt(o)), o = n[3] ^ n[0] ^ n[1] ^ r[i + 2], n[2] ^= Re(Tt(o)), o = n[0] ^ n[1] ^ n[2] ^ r[i + 3], n[3] ^= Re(Tt(o));
|
|
3581
3581
|
for (let i = 0; i < 16; i += 4)
|
|
3582
3582
|
e[i] = n[3 - i / 4] >>> 24 & 255, e[i + 1] = n[3 - i / 4] >>> 16 & 255, e[i + 2] = n[3 - i / 4] >>> 8 & 255, e[i + 3] = n[3 - i / 4] & 255;
|
|
3583
3583
|
}
|
|
@@ -3587,8 +3587,8 @@ function ff(t, e, r) {
|
|
|
3587
3587
|
s[0] = t[0 + 4 * i] & 255, s[1] = t[1 + 4 * i] & 255, s[2] = t[2 + 4 * i] & 255, s[3] = t[3 + 4 * i] & 255, n[i] = s[0] << 24 | s[1] << 16 | s[2] << 8 | s[3];
|
|
3588
3588
|
n[0] ^= 2746333894, n[1] ^= 1453994832, n[2] ^= 1736282519, n[3] ^= 2993693404;
|
|
3589
3589
|
for (let i = 0, o; i < 32; i += 4)
|
|
3590
|
-
o = n[1] ^ n[2] ^ n[3] ^
|
|
3591
|
-
if (r ===
|
|
3590
|
+
o = n[1] ^ n[2] ^ n[3] ^ Te[i + 0], e[i + 0] = n[0] ^= ke(Tt(o)), o = n[2] ^ n[3] ^ n[0] ^ Te[i + 1], e[i + 1] = n[1] ^= ke(Tt(o)), o = n[3] ^ n[0] ^ n[1] ^ Te[i + 2], e[i + 2] = n[2] ^= ke(Tt(o)), o = n[0] ^ n[1] ^ n[2] ^ Te[i + 3], e[i + 3] = n[3] ^= ke(Tt(o));
|
|
3591
|
+
if (r === Ct)
|
|
3592
3592
|
for (let i = 0, o; i < 16; i++)
|
|
3593
3593
|
o = e[i], e[i] = e[31 - i], e[31 - i] = o;
|
|
3594
3594
|
}
|
|
@@ -3602,8 +3602,8 @@ function us(t, e, r, {
|
|
|
3602
3602
|
throw new Error("iv is invalid");
|
|
3603
3603
|
if (typeof e == "string" && (e = ln(e)), e.length !== 128 / 8)
|
|
3604
3604
|
throw new Error("key is invalid");
|
|
3605
|
-
if (typeof t == "string" ? r !==
|
|
3606
|
-
const d =
|
|
3605
|
+
if (typeof t == "string" ? r !== Ct ? t = af(t) : t = ln(t) : t = [...t], (n === "pkcs#5" || n === "pkcs#7") && r !== Ct) {
|
|
3606
|
+
const d = qt - t.length % qt;
|
|
3607
3607
|
for (let v = 0; v < d; v++)
|
|
3608
3608
|
t.push(d);
|
|
3609
3609
|
}
|
|
@@ -3611,24 +3611,24 @@ function us(t, e, r, {
|
|
|
3611
3611
|
ff(e, a, r);
|
|
3612
3612
|
const g = [];
|
|
3613
3613
|
let c = i, x = t.length, p = 0;
|
|
3614
|
-
for (; x >=
|
|
3614
|
+
for (; x >= qt; ) {
|
|
3615
3615
|
const d = t.slice(p, p + 16), v = new Array(16);
|
|
3616
3616
|
if (s === "cbc")
|
|
3617
|
-
for (let f = 0; f <
|
|
3618
|
-
r !==
|
|
3617
|
+
for (let f = 0; f < qt; f++)
|
|
3618
|
+
r !== Ct && (d[f] ^= c[f]);
|
|
3619
3619
|
xf(d, v, a);
|
|
3620
|
-
for (let f = 0; f <
|
|
3621
|
-
s === "cbc" && r ===
|
|
3622
|
-
s === "cbc" && (r !==
|
|
3620
|
+
for (let f = 0; f < qt; f++)
|
|
3621
|
+
s === "cbc" && r === Ct && (v[f] ^= c[f]), g[p + f] = v[f];
|
|
3622
|
+
s === "cbc" && (r !== Ct ? c = v : c = d), x -= qt, p += qt;
|
|
3623
3623
|
}
|
|
3624
|
-
if ((n === "pkcs#5" || n === "pkcs#7") && r ===
|
|
3624
|
+
if ((n === "pkcs#5" || n === "pkcs#7") && r === Ct) {
|
|
3625
3625
|
const d = g.length, v = g[d - 1];
|
|
3626
3626
|
for (let f = 1; f <= v; f++)
|
|
3627
3627
|
if (g[d - f] !== v)
|
|
3628
3628
|
throw new Error("padding is invalid");
|
|
3629
3629
|
g.splice(d - v, v);
|
|
3630
3630
|
}
|
|
3631
|
-
return o !== "array" ? r !==
|
|
3631
|
+
return o !== "array" ? r !== Ct ? of(g) : cf(g) : g;
|
|
3632
3632
|
}
|
|
3633
3633
|
var uf = {
|
|
3634
3634
|
encrypt(t, e, r) {
|
|
@@ -3659,12 +3659,12 @@ function hf(t, e) {
|
|
|
3659
3659
|
return null;
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
|
-
const
|
|
3662
|
+
const ve = {
|
|
3663
3663
|
encrypt: lf,
|
|
3664
3664
|
decrypt: hf
|
|
3665
|
-
}, df = "049967b032226da56be01b804ed59e6753e2731994f4c97bb25d39c0d3166af07b73e2651d09b98ae934a70303138e859545e8314e2eda20971e222a444ecd3547", pf = "1e38a5c42fe3049bfbbcb2323a0cff3feb49e0b8156ac71eed525133603dbddb", Qi = (t) => (wr(t) && (t =
|
|
3665
|
+
}, df = "049967b032226da56be01b804ed59e6753e2731994f4c97bb25d39c0d3166af07b73e2651d09b98ae934a70303138e859545e8314e2eda20971e222a444ecd3547", pf = "1e38a5c42fe3049bfbbcb2323a0cff3feb49e0b8156ac71eed525133603dbddb", Qi = (t) => (wr(t) && (t = q0(t)), ve.encrypt(t, df)), Vi = (t) => ve.decrypt(t, pf), Yi = (t) => `__${t}__mode`, vf = (t, e) => {
|
|
3666
3666
|
const r = wr(e) ? 2 : 1;
|
|
3667
|
-
r === 2 && (e =
|
|
3667
|
+
r === 2 && (e = q0(e));
|
|
3668
3668
|
const n = Qi(e);
|
|
3669
3669
|
return {
|
|
3670
3670
|
[t]: n,
|
|
@@ -3676,10 +3676,10 @@ const pe = {
|
|
|
3676
3676
|
if (!e)
|
|
3677
3677
|
return null;
|
|
3678
3678
|
const r = {};
|
|
3679
|
-
return
|
|
3679
|
+
return zt(e).map((n) => {
|
|
3680
3680
|
let s = e[n];
|
|
3681
3681
|
const i = e[Yi(n)];
|
|
3682
|
-
return i != null && (s = Vi(s), i == 2 && (s =
|
|
3682
|
+
return i != null && (s = Vi(s), i == 2 && (s = $0(s))), r[n] = s, s;
|
|
3683
3683
|
}), r;
|
|
3684
3684
|
}, Bf = () => Ji(window.location.href), qr = {
|
|
3685
3685
|
decryptFromLocation: Bf,
|
|
@@ -3740,7 +3740,7 @@ const ls = {
|
|
|
3740
3740
|
}
|
|
3741
3741
|
}, Vl = {
|
|
3742
3742
|
delete() {
|
|
3743
|
-
return this.do(
|
|
3743
|
+
return this.do(B0.i18nt("designer.hint.confirmDelete"));
|
|
3744
3744
|
},
|
|
3745
3745
|
multiple(t) {
|
|
3746
3746
|
var e = t.map((r) => Kn("p", null, r));
|
|
@@ -3749,10 +3749,10 @@ const ls = {
|
|
|
3749
3749
|
do(t) {
|
|
3750
3750
|
return ai.confirm(
|
|
3751
3751
|
t,
|
|
3752
|
-
|
|
3752
|
+
B0.i18nt("designer.hint.prompt"),
|
|
3753
3753
|
{
|
|
3754
|
-
confirmButtonText:
|
|
3755
|
-
cancelButtonText:
|
|
3754
|
+
confirmButtonText: B0.i18nt("designer.hint.confirm"),
|
|
3755
|
+
cancelButtonText: B0.i18nt("designer.hint.cancel"),
|
|
3756
3756
|
type: "warning",
|
|
3757
3757
|
appendTo: "body"
|
|
3758
3758
|
}
|
|
@@ -3799,7 +3799,7 @@ const ls = {
|
|
|
3799
3799
|
};
|
|
3800
3800
|
function Ef(t, e, r, n) {
|
|
3801
3801
|
var d, v;
|
|
3802
|
-
let s =
|
|
3802
|
+
let s = ue((d = t == null ? void 0 : t.content) == null ? void 0 : d.widgetId, !0), i = ue((v = t == null ? void 0 : t.content) == null ? void 0 : v.sourceId, !0);
|
|
3803
3803
|
if (!s || !i)
|
|
3804
3804
|
return null;
|
|
3805
3805
|
const o = () => new Promise((f, l) => {
|
|
@@ -3818,7 +3818,7 @@ function Ef(t, e, r, n) {
|
|
|
3818
3818
|
}).catch((b) => {
|
|
3819
3819
|
var m;
|
|
3820
3820
|
const B = Array.isArray(b == null ? void 0 : b.message) ? (m = Array.from(b == null ? void 0 : b.message)) == null ? void 0 : m.map((F) => `<p class="pLine">${F}</p>`).join("") : b == null ? void 0 : b.message;
|
|
3821
|
-
gf.error(B ||
|
|
3821
|
+
gf.error(B || q0(b));
|
|
3822
3822
|
});
|
|
3823
3823
|
}), a = (f) => {
|
|
3824
3824
|
var y;
|
|
@@ -3828,7 +3828,7 @@ function Ef(t, e, r, n) {
|
|
|
3828
3828
|
if (!f)
|
|
3829
3829
|
return y;
|
|
3830
3830
|
const b = je(r);
|
|
3831
|
-
return
|
|
3831
|
+
return kt(f, {
|
|
3832
3832
|
formData: y || (b == null ? void 0 : b.formData) || {},
|
|
3833
3833
|
arg: {
|
|
3834
3834
|
urlQuery: b == null ? void 0 : b.urlQuerys,
|
|
@@ -3840,7 +3840,7 @@ function Ef(t, e, r, n) {
|
|
|
3840
3840
|
if (!f)
|
|
3841
3841
|
return b;
|
|
3842
3842
|
const m = je(r);
|
|
3843
|
-
return
|
|
3843
|
+
return kt(f, {
|
|
3844
3844
|
widgetId: B,
|
|
3845
3845
|
respValue: b,
|
|
3846
3846
|
respData: y,
|
|
@@ -3857,7 +3857,7 @@ function Ef(t, e, r, n) {
|
|
|
3857
3857
|
var b = [];
|
|
3858
3858
|
let B = a(g((m = t == null ? void 0 : t.content) == null ? void 0 : m.beforeFetch, e, y));
|
|
3859
3859
|
i == null || i.forEach((F) => {
|
|
3860
|
-
var C = `${
|
|
3860
|
+
var C = `${F0.schema}.${F}`, _ = K.buildVariablePropValue(C, B);
|
|
3861
3861
|
const S = K.getValue(_, !1, !0, n);
|
|
3862
3862
|
b.push({ sourceId: F, params: B, resp: S });
|
|
3863
3863
|
}), f(b);
|
|
@@ -3890,7 +3890,7 @@ function yf(t, e, r, n) {
|
|
|
3890
3890
|
}, i = (c, x) => {
|
|
3891
3891
|
var l, y;
|
|
3892
3892
|
const p = ((l = r == null ? void 0 : r.exposed) == null ? void 0 : l.getRowScope()) || {}, d = ((y = r == null ? void 0 : r.exposed) == null ? void 0 : y.getFormData()) || {};
|
|
3893
|
-
var v = qr.decryptFromUrl(window.location.href), f =
|
|
3893
|
+
var v = qr.decryptFromUrl(window.location.href), f = kt(c, {
|
|
3894
3894
|
data: {
|
|
3895
3895
|
urlQuery: v,
|
|
3896
3896
|
rowScope: p,
|
|
@@ -3914,7 +3914,7 @@ function yf(t, e, r, n) {
|
|
|
3914
3914
|
case tn.parent:
|
|
3915
3915
|
return window.parent;
|
|
3916
3916
|
default:
|
|
3917
|
-
return (x = t == null ? void 0 : t.content) != null && x.windowTarget ? (d =
|
|
3917
|
+
return (x = t == null ? void 0 : t.content) != null && x.windowTarget ? (d = L0.find(window, (p = t == null ? void 0 : t.content) == null ? void 0 : p.windowTarget)) == null ? void 0 : d.window : window;
|
|
3918
3918
|
}
|
|
3919
3919
|
};
|
|
3920
3920
|
(() => {
|
|
@@ -3928,7 +3928,7 @@ function yf(t, e, r, n) {
|
|
|
3928
3928
|
if (x != null && x.openModalAsync)
|
|
3929
3929
|
(l = x == null ? void 0 : x.openModalAsync) == null || l.call(x, v);
|
|
3930
3930
|
else {
|
|
3931
|
-
ls.error(
|
|
3931
|
+
ls.error(B0.i18nt("designer.hint.windowNotSupport"));
|
|
3932
3932
|
return;
|
|
3933
3933
|
}
|
|
3934
3934
|
else
|
|
@@ -3939,14 +3939,14 @@ function yf(t, e, r, n) {
|
|
|
3939
3939
|
}
|
|
3940
3940
|
function mf(t, e, r, n) {
|
|
3941
3941
|
var x;
|
|
3942
|
-
let s =
|
|
3942
|
+
let s = ue((x = t == null ? void 0 : t.content) == null ? void 0 : x.sourceId, !0);
|
|
3943
3943
|
if (!s)
|
|
3944
3944
|
return null;
|
|
3945
3945
|
const i = (p, d, v) => {
|
|
3946
3946
|
if (!p)
|
|
3947
3947
|
return v;
|
|
3948
3948
|
const f = je(r);
|
|
3949
|
-
return
|
|
3949
|
+
return kt(p, {
|
|
3950
3950
|
formData: v || (f == null ? void 0 : f.formData) || {},
|
|
3951
3951
|
arg: {
|
|
3952
3952
|
urlQuery: f == null ? void 0 : f.urlQuerys,
|
|
@@ -3957,10 +3957,10 @@ function mf(t, e, r, n) {
|
|
|
3957
3957
|
}, o = () => {
|
|
3958
3958
|
var l, y, b;
|
|
3959
3959
|
var p = [];
|
|
3960
|
-
const d = (l = t == null ? void 0 : t.content) == null ? void 0 : l.params, v =
|
|
3960
|
+
const d = (l = t == null ? void 0 : t.content) == null ? void 0 : l.params, v = $0(Cl(d, n));
|
|
3961
3961
|
let f = (y = t == null ? void 0 : t.content) != null && y.beforeFetch ? i((b = t == null ? void 0 : t.content) == null ? void 0 : b.beforeFetch, e, v) : d;
|
|
3962
3962
|
return s == null || s.forEach((B) => {
|
|
3963
|
-
var m = `${
|
|
3963
|
+
var m = `${F0.schema}.${B}`, F = K.buildVariablePropValue(m, f);
|
|
3964
3964
|
const C = K.getValue(F, !1, !0, n);
|
|
3965
3965
|
p.push({ sourceId: B, params: f, resp: C });
|
|
3966
3966
|
}), p;
|
|
@@ -3968,7 +3968,7 @@ function mf(t, e, r, n) {
|
|
|
3968
3968
|
if (!p)
|
|
3969
3969
|
return f;
|
|
3970
3970
|
const l = je(r);
|
|
3971
|
-
return
|
|
3971
|
+
return kt(p, {
|
|
3972
3972
|
respValue: f,
|
|
3973
3973
|
respData: v,
|
|
3974
3974
|
arg: {
|
|
@@ -3992,11 +3992,11 @@ function mf(t, e, r, n) {
|
|
|
3992
3992
|
function bf(t, e, r, n) {
|
|
3993
3993
|
var s, i, o, a, g, c, x;
|
|
3994
3994
|
switch (t == null ? void 0 : t.type) {
|
|
3995
|
-
case
|
|
3996
|
-
return
|
|
3997
|
-
case
|
|
3995
|
+
case at.actionCode:
|
|
3996
|
+
return kt((s = t == null ? void 0 : t.content) == null ? void 0 : s.code, e);
|
|
3997
|
+
case at.actionURL:
|
|
3998
3998
|
return yf(t, e, r);
|
|
3999
|
-
case
|
|
3999
|
+
case at.actionShowWidget: {
|
|
4000
4000
|
let p = (i = t == null ? void 0 : t.content) == null ? void 0 : i.widgetId;
|
|
4001
4001
|
Array.isArray(p) || (p = [p]), p == null || p.forEach((d) => {
|
|
4002
4002
|
var v, f, l;
|
|
@@ -4004,7 +4004,7 @@ function bf(t, e, r, n) {
|
|
|
4004
4004
|
});
|
|
4005
4005
|
return;
|
|
4006
4006
|
}
|
|
4007
|
-
case
|
|
4007
|
+
case at.actionHideWidget: {
|
|
4008
4008
|
let p = (o = t == null ? void 0 : t.content) == null ? void 0 : o.widgetId;
|
|
4009
4009
|
Array.isArray(p) || (p = [p]), p == null || p.forEach((d) => {
|
|
4010
4010
|
var v, f, l;
|
|
@@ -4012,7 +4012,7 @@ function bf(t, e, r, n) {
|
|
|
4012
4012
|
});
|
|
4013
4013
|
return;
|
|
4014
4014
|
}
|
|
4015
|
-
case
|
|
4015
|
+
case at.actionEnableWidget: {
|
|
4016
4016
|
let p = (a = t == null ? void 0 : t.content) == null ? void 0 : a.widgetId;
|
|
4017
4017
|
Array.isArray(p) || (p = [p]), p == null || p.forEach((d) => {
|
|
4018
4018
|
var v, f, l;
|
|
@@ -4020,7 +4020,7 @@ function bf(t, e, r, n) {
|
|
|
4020
4020
|
});
|
|
4021
4021
|
return;
|
|
4022
4022
|
}
|
|
4023
|
-
case
|
|
4023
|
+
case at.actionDisableWidget: {
|
|
4024
4024
|
let p = (g = t == null ? void 0 : t.content) == null ? void 0 : g.widgetId;
|
|
4025
4025
|
Array.isArray(p) || (p = [p]), p == null || p.forEach((d) => {
|
|
4026
4026
|
var v, f, l;
|
|
@@ -4028,7 +4028,7 @@ function bf(t, e, r, n) {
|
|
|
4028
4028
|
});
|
|
4029
4029
|
return;
|
|
4030
4030
|
}
|
|
4031
|
-
case
|
|
4031
|
+
case at.actionOpenDialog: {
|
|
4032
4032
|
let p = (c = t == null ? void 0 : t.content) == null ? void 0 : c.widgetId;
|
|
4033
4033
|
Array.isArray(p) || (p = [p]), p == null || p.forEach((d) => {
|
|
4034
4034
|
var v, f, l;
|
|
@@ -4036,7 +4036,7 @@ function bf(t, e, r, n) {
|
|
|
4036
4036
|
});
|
|
4037
4037
|
return;
|
|
4038
4038
|
}
|
|
4039
|
-
case
|
|
4039
|
+
case at.actionCloseDialog: {
|
|
4040
4040
|
let p = (x = t == null ? void 0 : t.content) == null ? void 0 : x.widgetId;
|
|
4041
4041
|
Array.isArray(p) || (p = [p]), p == null || p.forEach((d) => {
|
|
4042
4042
|
var v, f, l;
|
|
@@ -4044,9 +4044,9 @@ function bf(t, e, r, n) {
|
|
|
4044
4044
|
});
|
|
4045
4045
|
return;
|
|
4046
4046
|
}
|
|
4047
|
-
case
|
|
4047
|
+
case at.actionSendSchema:
|
|
4048
4048
|
return mf(t, e, r, n);
|
|
4049
|
-
case
|
|
4049
|
+
case at.actionSaveFormData:
|
|
4050
4050
|
return Ef(t, e, r, n);
|
|
4051
4051
|
}
|
|
4052
4052
|
}
|
|
@@ -4117,7 +4117,7 @@ function Sf(t, e, r) {
|
|
|
4117
4117
|
const kn = {
|
|
4118
4118
|
encrypt: _f,
|
|
4119
4119
|
decrypt: Sf
|
|
4120
|
-
}, ro = "3.7.7", Tf = ro, Jt = typeof Buffer == "function", hs = typeof TextDecoder == "function" ? new TextDecoder() : void 0, ds = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Rf = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", ce = Array.prototype.slice.call(Rf),
|
|
4120
|
+
}, ro = "3.7.7", Tf = ro, Jt = typeof Buffer == "function", hs = typeof TextDecoder == "function" ? new TextDecoder() : void 0, ds = typeof TextEncoder == "function" ? new TextEncoder() : void 0, Rf = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", ce = Array.prototype.slice.call(Rf), Oe = ((t) => {
|
|
4121
4121
|
let e = {};
|
|
4122
4122
|
return t.forEach((r, n) => e[r] = n), e;
|
|
4123
4123
|
})(ce), kf = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/, T0 = String.fromCharCode.bind(String), ps = typeof Uint8Array.from == "function" ? Uint8Array.from.bind(Uint8Array) : (t) => new Uint8Array(Array.prototype.slice.call(t, 0)), no = (t) => t.replace(/=/g, "").replace(/[+\/]/g, (e) => e == "+" ? "-" : "_"), so = (t) => t.replace(/[^A-Za-z0-9\+\/]/g, ""), io = (t) => {
|
|
@@ -4134,7 +4134,7 @@ const kn = {
|
|
|
4134
4134
|
for (let n = 0, s = t.length; n < s; n += 4096)
|
|
4135
4135
|
r.push(T0.apply(null, t.subarray(n, n + 4096)));
|
|
4136
4136
|
return On(r.join(""));
|
|
4137
|
-
},
|
|
4137
|
+
}, ze = (t, e = !1) => e ? no(gn(t)) : gn(t), Of = (t) => {
|
|
4138
4138
|
if (t.length < 2) {
|
|
4139
4139
|
var e = t.charCodeAt(0);
|
|
4140
4140
|
return e < 128 ? t : e < 2048 ? T0(192 | e >>> 6) + T0(128 | e & 63) : T0(224 | e >>> 12 & 15) + T0(128 | e >>> 6 & 63) + T0(128 | e & 63);
|
|
@@ -4158,7 +4158,7 @@ const kn = {
|
|
|
4158
4158
|
t += "==".slice(2 - (t.length & 3));
|
|
4159
4159
|
let e, r = "", n, s;
|
|
4160
4160
|
for (let i = 0; i < t.length; )
|
|
4161
|
-
e =
|
|
4161
|
+
e = Oe[t.charAt(i++)] << 18 | Oe[t.charAt(i++)] << 12 | (n = Oe[t.charAt(i++)]) << 6 | (s = Oe[t.charAt(i++)]), r += n === 64 ? T0(e >> 16 & 255) : s === 64 ? T0(e >> 16 & 255, e >> 8 & 255) : T0(e >> 16 & 255, e >> 8 & 255, e & 255);
|
|
4162
4162
|
return r;
|
|
4163
4163
|
}, In = typeof atob == "function" ? (t) => atob(so(t)) : Jt ? (t) => Buffer.from(t, "base64").toString("binary") : co, xo = Jt ? (t) => ps(Buffer.from(t, "base64")) : (t) => ps(In(t).split("").map((e) => e.charCodeAt(0))), fo = (t) => xo(uo(t)), qf = Jt ? (t) => Buffer.from(t, "base64").toString("utf8") : hs ? (t) => hs.decode(xo(t)) : (t) => ao(In(t)), uo = (t) => so(t.replace(/[-_]/g, (e) => e == "-" ? "+" : "/")), En = (t) => qf(uo(t)), Nf = (t) => {
|
|
4164
4164
|
if (typeof t != "string")
|
|
@@ -4186,11 +4186,11 @@ const kn = {
|
|
|
4186
4186
|
}, po = function() {
|
|
4187
4187
|
const t = (e, r) => Object.defineProperty(Uint8Array.prototype, e, lo(r));
|
|
4188
4188
|
t("toBase64", function(e) {
|
|
4189
|
-
return
|
|
4189
|
+
return ze(this, e);
|
|
4190
4190
|
}), t("toBase64URI", function() {
|
|
4191
|
-
return
|
|
4191
|
+
return ze(this, !0);
|
|
4192
4192
|
}), t("toBase64URL", function() {
|
|
4193
|
-
return
|
|
4193
|
+
return ze(this, !0);
|
|
4194
4194
|
});
|
|
4195
4195
|
}, zf = () => {
|
|
4196
4196
|
ho(), po();
|
|
@@ -4210,7 +4210,7 @@ const kn = {
|
|
|
4210
4210
|
btou: ao,
|
|
4211
4211
|
decode: En,
|
|
4212
4212
|
isValid: Nf,
|
|
4213
|
-
fromUint8Array:
|
|
4213
|
+
fromUint8Array: ze,
|
|
4214
4214
|
toUint8Array: fo,
|
|
4215
4215
|
extendString: ho,
|
|
4216
4216
|
extendUint8Array: po,
|
|
@@ -4424,25 +4424,25 @@ const hn = new Uf(), Pn = (t, e) => {
|
|
|
4424
4424
|
if (!t)
|
|
4425
4425
|
return "";
|
|
4426
4426
|
t.timeStamp = new Date().getTime();
|
|
4427
|
-
const r = na(t), s =
|
|
4427
|
+
const r = na(t), s = q0(r) + e, i = hn == null ? void 0 : hn.hex_md5(s), o = Lf.encode(i);
|
|
4428
4428
|
return r.dataDigest = o, r;
|
|
4429
4429
|
}, $f = (t, e, r) => {
|
|
4430
4430
|
const n = Pn(t, e);
|
|
4431
|
-
return
|
|
4431
|
+
return ve.encrypt(q0(n), r);
|
|
4432
4432
|
}, Mf = (t, e) => {
|
|
4433
|
-
if (
|
|
4433
|
+
if (yt(t))
|
|
4434
4434
|
return null;
|
|
4435
|
-
const r =
|
|
4436
|
-
var n =
|
|
4435
|
+
const r = ve.decrypt(t, e);
|
|
4436
|
+
var n = $0(r);
|
|
4437
4437
|
return r !== null && n === null && console.log(r), n;
|
|
4438
4438
|
}, jf = (t, e, r, n) => {
|
|
4439
4439
|
const s = Pn(t, e);
|
|
4440
|
-
return kn.encrypt(
|
|
4440
|
+
return kn.encrypt(q0(s), r, n);
|
|
4441
4441
|
}, Wf = (t, e, r) => {
|
|
4442
|
-
if (
|
|
4442
|
+
if (yt(t))
|
|
4443
4443
|
return null;
|
|
4444
4444
|
const n = kn.decrypt(t, e, r);
|
|
4445
|
-
var s =
|
|
4445
|
+
var s = $0(n);
|
|
4446
4446
|
return n !== null && s === null && console.log(n), s;
|
|
4447
4447
|
}, Kf = {
|
|
4448
4448
|
traceBody: Pn,
|
|
@@ -4475,7 +4475,7 @@ const Qf = {}, Vf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4475
4475
|
default: Qf
|
|
4476
4476
|
}, Symbol.toStringTag, { value: "Module" })), Yf = /* @__PURE__ */ wa(Vf);
|
|
4477
4477
|
var gs;
|
|
4478
|
-
function
|
|
4478
|
+
function f0() {
|
|
4479
4479
|
return gs || (gs = 1, function(t, e) {
|
|
4480
4480
|
(function(r, n) {
|
|
4481
4481
|
t.exports = n();
|
|
@@ -4986,7 +4986,7 @@ var Ke = {}, Jf = {
|
|
|
4986
4986
|
function Nr() {
|
|
4987
4987
|
return Es || (Es = 1, function(t, e) {
|
|
4988
4988
|
(function(r, n) {
|
|
4989
|
-
t.exports = n(
|
|
4989
|
+
t.exports = n(f0());
|
|
4990
4990
|
})(s0, function(r) {
|
|
4991
4991
|
return function(n) {
|
|
4992
4992
|
var s = r, i = s.lib, o = i.Base, a = i.WordArray, g = s.x64 = {};
|
|
@@ -5223,7 +5223,7 @@ var Ze = {}, tu = {
|
|
|
5223
5223
|
function eu() {
|
|
5224
5224
|
return ys || (ys = 1, function(t, e) {
|
|
5225
5225
|
(function(r, n) {
|
|
5226
|
-
t.exports = n(
|
|
5226
|
+
t.exports = n(f0());
|
|
5227
5227
|
})(s0, function(r) {
|
|
5228
5228
|
return function() {
|
|
5229
5229
|
if (typeof ArrayBuffer == "function") {
|
|
@@ -5252,7 +5252,7 @@ var Xe = {}, ru = {
|
|
|
5252
5252
|
function nu() {
|
|
5253
5253
|
return ms || (ms = 1, function(t, e) {
|
|
5254
5254
|
(function(r, n) {
|
|
5255
|
-
t.exports = n(
|
|
5255
|
+
t.exports = n(f0());
|
|
5256
5256
|
})(s0, function(r) {
|
|
5257
5257
|
return function() {
|
|
5258
5258
|
var n = r, s = n.lib, i = s.WordArray, o = n.enc;
|
|
@@ -5350,10 +5350,10 @@ var Ge = {}, su = {
|
|
|
5350
5350
|
Ge = t;
|
|
5351
5351
|
}
|
|
5352
5352
|
}, bs;
|
|
5353
|
-
function
|
|
5353
|
+
function Lt() {
|
|
5354
5354
|
return bs || (bs = 1, function(t, e) {
|
|
5355
5355
|
(function(r, n) {
|
|
5356
|
-
t.exports = n(
|
|
5356
|
+
t.exports = n(f0());
|
|
5357
5357
|
})(s0, function(r) {
|
|
5358
5358
|
return function() {
|
|
5359
5359
|
var n = r, s = n.lib, i = s.WordArray, o = n.enc;
|
|
@@ -5435,7 +5435,7 @@ var Qe = {}, iu = {
|
|
|
5435
5435
|
function ou() {
|
|
5436
5436
|
return Fs || (Fs = 1, function(t, e) {
|
|
5437
5437
|
(function(r, n) {
|
|
5438
|
-
t.exports = n(
|
|
5438
|
+
t.exports = n(f0());
|
|
5439
5439
|
})(s0, function(r) {
|
|
5440
5440
|
return function() {
|
|
5441
5441
|
var n = r, s = n.lib, i = s.WordArray, o = n.enc;
|
|
@@ -5521,10 +5521,10 @@ var Ve = {}, au = {
|
|
|
5521
5521
|
Ve = t;
|
|
5522
5522
|
}
|
|
5523
5523
|
}, As;
|
|
5524
|
-
function
|
|
5524
|
+
function Ut() {
|
|
5525
5525
|
return As || (As = 1, function(t, e) {
|
|
5526
5526
|
(function(r, n) {
|
|
5527
|
-
t.exports = n(
|
|
5527
|
+
t.exports = n(f0());
|
|
5528
5528
|
})(s0, function(r) {
|
|
5529
5529
|
return function(n) {
|
|
5530
5530
|
var s = r, i = s.lib, o = i.WordArray, a = i.Hasher, g = s.algo, c = [];
|
|
@@ -5546,8 +5546,8 @@ function Lt() {
|
|
|
5546
5546
|
var B = y + b, m = l[B];
|
|
5547
5547
|
l[B] = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360;
|
|
5548
5548
|
}
|
|
5549
|
-
var F = this._hash.words, C = l[y + 0], _ = l[y + 1], S = l[y + 2], T = l[y + 3], L = l[y + 4], w = l[y + 5], D = l[y + 6], q = l[y + 7], N = l[y + 8],
|
|
5550
|
-
I = p(I, H, $, z, C, 7, c[0]), z = p(z, I, H, $, _, 12, c[1]), $ = p($, z, I, H, S, 17, c[2]), H = p(H, $, z, I, T, 22, c[3]), I = p(I, H, $, z, L, 7, c[4]), z = p(z, I, H, $, w, 12, c[5]), $ = p($, z, I, H, D, 17, c[6]), H = p(H, $, z, I, q, 22, c[7]), I = p(I, H, $, z, N, 7, c[8]), z = p(z, I, H, $,
|
|
5549
|
+
var F = this._hash.words, C = l[y + 0], _ = l[y + 1], S = l[y + 2], T = l[y + 3], L = l[y + 4], w = l[y + 5], D = l[y + 6], q = l[y + 7], N = l[y + 8], V = l[y + 9], J = l[y + 10], X = l[y + 11], d0 = l[y + 12], a0 = l[y + 13], o0 = l[y + 14], h0 = l[y + 15], I = F[0], H = F[1], $ = F[2], z = F[3];
|
|
5550
|
+
I = p(I, H, $, z, C, 7, c[0]), z = p(z, I, H, $, _, 12, c[1]), $ = p($, z, I, H, S, 17, c[2]), H = p(H, $, z, I, T, 22, c[3]), I = p(I, H, $, z, L, 7, c[4]), z = p(z, I, H, $, w, 12, c[5]), $ = p($, z, I, H, D, 17, c[6]), H = p(H, $, z, I, q, 22, c[7]), I = p(I, H, $, z, N, 7, c[8]), z = p(z, I, H, $, V, 12, c[9]), $ = p($, z, I, H, J, 17, c[10]), H = p(H, $, z, I, X, 22, c[11]), I = p(I, H, $, z, d0, 7, c[12]), z = p(z, I, H, $, a0, 12, c[13]), $ = p($, z, I, H, o0, 17, c[14]), H = p(H, $, z, I, h0, 22, c[15]), I = d(I, H, $, z, _, 5, c[16]), z = d(z, I, H, $, D, 9, c[17]), $ = d($, z, I, H, X, 14, c[18]), H = d(H, $, z, I, C, 20, c[19]), I = d(I, H, $, z, w, 5, c[20]), z = d(z, I, H, $, J, 9, c[21]), $ = d($, z, I, H, h0, 14, c[22]), H = d(H, $, z, I, L, 20, c[23]), I = d(I, H, $, z, V, 5, c[24]), z = d(z, I, H, $, o0, 9, c[25]), $ = d($, z, I, H, T, 14, c[26]), H = d(H, $, z, I, N, 20, c[27]), I = d(I, H, $, z, a0, 5, c[28]), z = d(z, I, H, $, S, 9, c[29]), $ = d($, z, I, H, q, 14, c[30]), H = d(H, $, z, I, d0, 20, c[31]), I = v(I, H, $, z, w, 4, c[32]), z = v(z, I, H, $, N, 11, c[33]), $ = v($, z, I, H, X, 16, c[34]), H = v(H, $, z, I, o0, 23, c[35]), I = v(I, H, $, z, _, 4, c[36]), z = v(z, I, H, $, L, 11, c[37]), $ = v($, z, I, H, q, 16, c[38]), H = v(H, $, z, I, J, 23, c[39]), I = v(I, H, $, z, a0, 4, c[40]), z = v(z, I, H, $, C, 11, c[41]), $ = v($, z, I, H, T, 16, c[42]), H = v(H, $, z, I, D, 23, c[43]), I = v(I, H, $, z, V, 4, c[44]), z = v(z, I, H, $, d0, 11, c[45]), $ = v($, z, I, H, h0, 16, c[46]), H = v(H, $, z, I, S, 23, c[47]), I = f(I, H, $, z, C, 6, c[48]), z = f(z, I, H, $, q, 10, c[49]), $ = f($, z, I, H, o0, 15, c[50]), H = f(H, $, z, I, w, 21, c[51]), I = f(I, H, $, z, d0, 6, c[52]), z = f(z, I, H, $, T, 10, c[53]), $ = f($, z, I, H, J, 15, c[54]), H = f(H, $, z, I, _, 21, c[55]), I = f(I, H, $, z, N, 6, c[56]), z = f(z, I, H, $, h0, 10, c[57]), $ = f($, z, I, H, D, 15, c[58]), H = f(H, $, z, I, a0, 21, c[59]), I = f(I, H, $, z, L, 6, c[60]), z = f(z, I, H, $, X, 10, c[61]), $ = f($, z, I, H, S, 15, c[62]), H = f(H, $, z, I, V, 21, c[63]), F[0] = F[0] + I | 0, F[1] = F[1] + H | 0, F[2] = F[2] + $ | 0, F[3] = F[3] + z | 0;
|
|
5551
5551
|
},
|
|
5552
5552
|
_doFinalize: function() {
|
|
5553
5553
|
var l = this._data, y = l.words, b = this._nDataBytes * 8, B = l.sigBytes * 8;
|
|
@@ -5597,7 +5597,7 @@ var Ye = {}, cu = {
|
|
|
5597
5597
|
function vo() {
|
|
5598
5598
|
return Cs || (Cs = 1, function(t, e) {
|
|
5599
5599
|
(function(r, n) {
|
|
5600
|
-
t.exports = n(
|
|
5600
|
+
t.exports = n(f0());
|
|
5601
5601
|
})(s0, function(r) {
|
|
5602
5602
|
return function() {
|
|
5603
5603
|
var n = r, s = n.lib, i = s.WordArray, o = s.Hasher, a = n.algo, g = [], c = a.SHA1 = o.extend({
|
|
@@ -5648,7 +5648,7 @@ var Je = {}, xu = {
|
|
|
5648
5648
|
function Hn() {
|
|
5649
5649
|
return Ds || (Ds = 1, function(t, e) {
|
|
5650
5650
|
(function(r, n) {
|
|
5651
|
-
t.exports = n(
|
|
5651
|
+
t.exports = n(f0());
|
|
5652
5652
|
})(s0, function(r) {
|
|
5653
5653
|
return function(n) {
|
|
5654
5654
|
var s = r, i = s.lib, o = i.WordArray, a = i.Hasher, g = s.algo, c = [], x = [];
|
|
@@ -5677,8 +5677,8 @@ function Hn() {
|
|
|
5677
5677
|
var L = p[T - 15], w = (L << 25 | L >>> 7) ^ (L << 14 | L >>> 18) ^ L >>> 3, D = p[T - 2], q = (D << 15 | D >>> 17) ^ (D << 13 | D >>> 19) ^ D >>> 10;
|
|
5678
5678
|
p[T] = w + p[T - 7] + q + p[T - 16];
|
|
5679
5679
|
}
|
|
5680
|
-
var N = F & C ^ ~F & _,
|
|
5681
|
-
S = _, _ = C, C = F, F = m +
|
|
5680
|
+
var N = F & C ^ ~F & _, V = y & b ^ y & B ^ b & B, J = (y << 30 | y >>> 2) ^ (y << 19 | y >>> 13) ^ (y << 10 | y >>> 22), X = (F << 26 | F >>> 6) ^ (F << 21 | F >>> 11) ^ (F << 7 | F >>> 25), d0 = S + X + N + x[T] + p[T], a0 = J + V;
|
|
5681
|
+
S = _, _ = C, C = F, F = m + d0 | 0, m = B, B = b, b = y, y = d0 + a0 | 0;
|
|
5682
5682
|
}
|
|
5683
5683
|
l[0] = l[0] + y | 0, l[1] = l[1] + b | 0, l[2] = l[2] + B | 0, l[3] = l[3] + m | 0, l[4] = l[4] + F | 0, l[5] = l[5] + C | 0, l[6] = l[6] + _ | 0, l[7] = l[7] + S | 0;
|
|
5684
5684
|
},
|
|
@@ -5707,7 +5707,7 @@ var tr = {}, fu = {
|
|
|
5707
5707
|
function uu() {
|
|
5708
5708
|
return ws || (ws = 1, function(t, e) {
|
|
5709
5709
|
(function(r, n, s) {
|
|
5710
|
-
t.exports = n(
|
|
5710
|
+
t.exports = n(f0(), Hn());
|
|
5711
5711
|
})(s0, function(r) {
|
|
5712
5712
|
return function() {
|
|
5713
5713
|
var n = r, s = n.lib, i = s.WordArray, o = n.algo, a = o.SHA256, g = o.SHA224 = a.extend({
|
|
@@ -5744,7 +5744,7 @@ var er = {}, lu = {
|
|
|
5744
5744
|
function Bo() {
|
|
5745
5745
|
return _s || (_s = 1, function(t, e) {
|
|
5746
5746
|
(function(r, n, s) {
|
|
5747
|
-
t.exports = n(
|
|
5747
|
+
t.exports = n(f0(), Nr());
|
|
5748
5748
|
})(s0, function(r) {
|
|
5749
5749
|
return function() {
|
|
5750
5750
|
var n = r, s = n.lib, i = s.Hasher, o = n.x64, a = o.Word, g = o.WordArray, c = n.algo;
|
|
@@ -5851,18 +5851,18 @@ function Bo() {
|
|
|
5851
5851
|
]);
|
|
5852
5852
|
},
|
|
5853
5853
|
_doProcessBlock: function(f, l) {
|
|
5854
|
-
for (var y = this._hash.words, b = y[0], B = y[1], m = y[2], F = y[3], C = y[4], _ = y[5], S = y[6], T = y[7], L = b.high, w = b.low, D = B.high, q = B.low, N = m.high,
|
|
5855
|
-
var
|
|
5856
|
-
if (
|
|
5857
|
-
|
|
5854
|
+
for (var y = this._hash.words, b = y[0], B = y[1], m = y[2], F = y[3], C = y[4], _ = y[5], S = y[6], T = y[7], L = b.high, w = b.low, D = B.high, q = B.low, N = m.high, V = m.low, J = F.high, X = F.low, d0 = C.high, a0 = C.low, o0 = _.high, h0 = _.low, I = S.high, H = S.low, $ = T.high, z = T.low, p0 = L, i0 = w, m0 = D, r0 = q, k0 = N, rt = V, It = J, dt = X, O0 = d0, C0 = a0, pt = o0, nt = h0, R = I, j = H, k = $, Q = z, t0 = 0; t0 < 80; t0++) {
|
|
5855
|
+
var Y, e0, u0 = d[t0];
|
|
5856
|
+
if (t0 < 16)
|
|
5857
|
+
e0 = u0.high = f[l + t0 * 2] | 0, Y = u0.low = f[l + t0 * 2 + 1] | 0;
|
|
5858
5858
|
else {
|
|
5859
|
-
var
|
|
5860
|
-
|
|
5859
|
+
var y0 = d[t0 - 15], E0 = y0.high, g0 = y0.low, X0 = (E0 >>> 1 | g0 << 31) ^ (E0 >>> 8 | g0 << 24) ^ E0 >>> 7, st = (g0 >>> 1 | E0 << 31) ^ (g0 >>> 8 | E0 << 24) ^ (g0 >>> 7 | E0 << 25), bt = d[t0 - 2], it = bt.high, Pt = bt.low, Lr = (it >>> 19 | Pt << 13) ^ (it << 3 | Pt >>> 29) ^ it >>> 6, $t = (Pt >>> 19 | it << 13) ^ (Pt << 3 | it >>> 29) ^ (Pt >>> 6 | it << 26), Be = d[t0 - 7], ge = Be.high, Ur = Be.low, te = d[t0 - 16], $r = te.high, Ee = te.low;
|
|
5860
|
+
Y = st + Ur, e0 = X0 + ge + (Y >>> 0 < st >>> 0 ? 1 : 0), Y = Y + $t, e0 = e0 + Lr + (Y >>> 0 < $t >>> 0 ? 1 : 0), Y = Y + Ee, e0 = e0 + $r + (Y >>> 0 < Ee >>> 0 ? 1 : 0), u0.high = e0, u0.low = Y;
|
|
5861
5861
|
}
|
|
5862
|
-
var Mr =
|
|
5863
|
-
|
|
5862
|
+
var Mr = O0 & pt ^ ~O0 & R, ye = C0 & nt ^ ~C0 & j, jr = p0 & m0 ^ p0 & k0 ^ m0 & k0, Wr = i0 & r0 ^ i0 & rt ^ r0 & rt, Kr = (p0 >>> 28 | i0 << 4) ^ (p0 << 30 | i0 >>> 2) ^ (p0 << 25 | i0 >>> 7), me = (i0 >>> 28 | p0 << 4) ^ (i0 << 30 | p0 >>> 2) ^ (i0 << 25 | p0 >>> 7), Zr = (O0 >>> 14 | C0 << 18) ^ (O0 >>> 18 | C0 << 14) ^ (O0 << 23 | C0 >>> 9), Xr = (C0 >>> 14 | O0 << 18) ^ (C0 >>> 18 | O0 << 14) ^ (C0 << 23 | O0 >>> 9), be = p[t0], Gr = be.high, Fe = be.low, I0 = Q + Xr, ot = k + Zr + (I0 >>> 0 < Q >>> 0 ? 1 : 0), I0 = I0 + ye, ot = ot + Mr + (I0 >>> 0 < ye >>> 0 ? 1 : 0), I0 = I0 + Fe, ot = ot + Gr + (I0 >>> 0 < Fe >>> 0 ? 1 : 0), I0 = I0 + Y, ot = ot + e0 + (I0 >>> 0 < Y >>> 0 ? 1 : 0), Ae = me + Wr, Qr = Kr + jr + (Ae >>> 0 < me >>> 0 ? 1 : 0);
|
|
5863
|
+
k = R, Q = j, R = pt, j = nt, pt = O0, nt = C0, C0 = dt + I0 | 0, O0 = It + ot + (C0 >>> 0 < dt >>> 0 ? 1 : 0) | 0, It = k0, dt = rt, k0 = m0, rt = r0, m0 = p0, r0 = i0, i0 = I0 + Ae | 0, p0 = ot + Qr + (i0 >>> 0 < I0 >>> 0 ? 1 : 0) | 0;
|
|
5864
5864
|
}
|
|
5865
|
-
w = b.low = w +
|
|
5865
|
+
w = b.low = w + i0, b.high = L + p0 + (w >>> 0 < i0 >>> 0 ? 1 : 0), q = B.low = q + r0, B.high = D + m0 + (q >>> 0 < r0 >>> 0 ? 1 : 0), V = m.low = V + rt, m.high = N + k0 + (V >>> 0 < rt >>> 0 ? 1 : 0), X = F.low = X + dt, F.high = J + It + (X >>> 0 < dt >>> 0 ? 1 : 0), a0 = C.low = a0 + C0, C.high = d0 + O0 + (a0 >>> 0 < C0 >>> 0 ? 1 : 0), h0 = _.low = h0 + nt, _.high = o0 + pt + (h0 >>> 0 < nt >>> 0 ? 1 : 0), H = S.low = H + j, S.high = I + R + (H >>> 0 < j >>> 0 ? 1 : 0), z = T.low = z + Q, T.high = $ + k + (z >>> 0 < Q >>> 0 ? 1 : 0);
|
|
5866
5866
|
},
|
|
5867
5867
|
_doFinalize: function() {
|
|
5868
5868
|
var f = this._data, l = f.words, y = this._nDataBytes * 8, b = f.sigBytes * 8;
|
|
@@ -5892,7 +5892,7 @@ var rr = {}, hu = {
|
|
|
5892
5892
|
function du() {
|
|
5893
5893
|
return Ss || (Ss = 1, function(t, e) {
|
|
5894
5894
|
(function(r, n, s) {
|
|
5895
|
-
t.exports = n(
|
|
5895
|
+
t.exports = n(f0(), Nr(), Bo());
|
|
5896
5896
|
})(s0, function(r) {
|
|
5897
5897
|
return function() {
|
|
5898
5898
|
var n = r, s = n.x64, i = s.Word, o = s.WordArray, a = n.algo, g = a.SHA512, c = a.SHA384 = g.extend({
|
|
@@ -5929,7 +5929,7 @@ var nr = {}, pu = {
|
|
|
5929
5929
|
function vu() {
|
|
5930
5930
|
return Ts || (Ts = 1, function(t, e) {
|
|
5931
5931
|
(function(r, n, s) {
|
|
5932
|
-
t.exports = n(
|
|
5932
|
+
t.exports = n(f0(), Nr());
|
|
5933
5933
|
})(s0, function(r) {
|
|
5934
5934
|
return function(n) {
|
|
5935
5935
|
var s = r, i = s.lib, o = i.WordArray, a = i.Hasher, g = s.x64, c = g.Word, x = s.algo, p = [], d = [], v = [];
|
|
@@ -5992,7 +5992,7 @@ function vu() {
|
|
|
5992
5992
|
N.high = w, N.low = D;
|
|
5993
5993
|
}
|
|
5994
5994
|
for (var L = 0; L < 5; L++)
|
|
5995
|
-
for (var
|
|
5995
|
+
for (var V = f[(L + 4) % 5], J = f[(L + 1) % 5], X = J.high, d0 = J.low, w = V.high ^ (X << 1 | d0 >>> 31), D = V.low ^ (d0 << 1 | X >>> 31), q = 0; q < 5; q++) {
|
|
5996
5996
|
var S = B[L + 5 * q];
|
|
5997
5997
|
S.high ^= w, S.low ^= D;
|
|
5998
5998
|
}
|
|
@@ -6006,8 +6006,8 @@ function vu() {
|
|
|
6006
6006
|
$.high = z.high, $.low = z.low;
|
|
6007
6007
|
for (var L = 0; L < 5; L++)
|
|
6008
6008
|
for (var q = 0; q < 5; q++) {
|
|
6009
|
-
var a0 = L + 5 * q, S = B[a0],
|
|
6010
|
-
S.high =
|
|
6009
|
+
var a0 = L + 5 * q, S = B[a0], p0 = f[a0], i0 = f[(L + 1) % 5 + 5 * q], m0 = f[(L + 2) % 5 + 5 * q];
|
|
6010
|
+
S.high = p0.high ^ ~i0.high & m0.high, S.low = p0.low ^ ~i0.low & m0.low;
|
|
6011
6011
|
}
|
|
6012
6012
|
var S = B[0], r0 = v[T];
|
|
6013
6013
|
S.high ^= r0.high, S.low ^= r0.low;
|
|
@@ -6046,7 +6046,7 @@ var sr = {}, Bu = {
|
|
|
6046
6046
|
function gu() {
|
|
6047
6047
|
return Rs || (Rs = 1, function(t, e) {
|
|
6048
6048
|
(function(r, n) {
|
|
6049
|
-
t.exports = n(
|
|
6049
|
+
t.exports = n(f0());
|
|
6050
6050
|
})(s0, function(r) {
|
|
6051
6051
|
/** @preserve
|
|
6052
6052
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
@@ -6392,11 +6392,11 @@ function gu() {
|
|
|
6392
6392
|
var L = S + T, w = _[L];
|
|
6393
6393
|
_[L] = (w << 8 | w >>> 24) & 16711935 | (w << 24 | w >>> 8) & 4278255360;
|
|
6394
6394
|
}
|
|
6395
|
-
var D = this._hash.words, q = v.words, N = f.words,
|
|
6396
|
-
$ = a0 = D[0], z = o0 = D[1],
|
|
6395
|
+
var D = this._hash.words, q = v.words, N = f.words, V = c.words, J = x.words, X = p.words, d0 = d.words, a0, o0, h0, I, H, $, z, p0, i0, m0;
|
|
6396
|
+
$ = a0 = D[0], z = o0 = D[1], p0 = h0 = D[2], i0 = I = D[3], m0 = H = D[4];
|
|
6397
6397
|
for (var r0, T = 0; T < 80; T += 1)
|
|
6398
|
-
r0 = a0 + _[S +
|
|
6399
|
-
r0 = D[1] + h0 +
|
|
6398
|
+
r0 = a0 + _[S + V[T]] | 0, T < 16 ? r0 += y(o0, h0, I) + q[0] : T < 32 ? r0 += b(o0, h0, I) + q[1] : T < 48 ? r0 += B(o0, h0, I) + q[2] : T < 64 ? r0 += m(o0, h0, I) + q[3] : r0 += F(o0, h0, I) + q[4], r0 = r0 | 0, r0 = C(r0, X[T]), r0 = r0 + H | 0, a0 = H, H = I, I = C(h0, 10), h0 = o0, o0 = r0, r0 = $ + _[S + J[T]] | 0, T < 16 ? r0 += F(z, p0, i0) + N[0] : T < 32 ? r0 += m(z, p0, i0) + N[1] : T < 48 ? r0 += B(z, p0, i0) + N[2] : T < 64 ? r0 += b(z, p0, i0) + N[3] : r0 += y(z, p0, i0) + N[4], r0 = r0 | 0, r0 = C(r0, d0[T]), r0 = r0 + m0 | 0, $ = m0, m0 = i0, i0 = C(p0, 10), p0 = z, z = r0;
|
|
6399
|
+
r0 = D[1] + h0 + i0 | 0, D[1] = D[2] + I + m0 | 0, D[2] = D[3] + H + $ | 0, D[3] = D[4] + a0 + z | 0, D[4] = D[0] + o0 + p0 | 0, D[0] = r0;
|
|
6400
6400
|
},
|
|
6401
6401
|
_doFinalize: function() {
|
|
6402
6402
|
var _ = this._data, S = _.words, T = this._nDataBytes * 8, L = _.sigBytes * 8;
|
|
@@ -6446,7 +6446,7 @@ var ir = {}, Eu = {
|
|
|
6446
6446
|
function qn() {
|
|
6447
6447
|
return ks || (ks = 1, function(t, e) {
|
|
6448
6448
|
(function(r, n) {
|
|
6449
|
-
t.exports = n(
|
|
6449
|
+
t.exports = n(f0());
|
|
6450
6450
|
})(s0, function(r) {
|
|
6451
6451
|
(function() {
|
|
6452
6452
|
var n = r, s = n.lib, i = s.Base, o = n.enc, a = o.Utf8, g = n.algo;
|
|
@@ -6531,7 +6531,7 @@ var or = {}, yu = {
|
|
|
6531
6531
|
function mu() {
|
|
6532
6532
|
return Os || (Os = 1, function(t, e) {
|
|
6533
6533
|
(function(r, n, s) {
|
|
6534
|
-
t.exports = n(
|
|
6534
|
+
t.exports = n(f0(), Hn(), qn());
|
|
6535
6535
|
})(s0, function(r) {
|
|
6536
6536
|
return function() {
|
|
6537
6537
|
var n = r, s = n.lib, i = s.Base, o = s.WordArray, a = n.algo, g = a.SHA256, c = a.HMAC, x = a.PBKDF2 = i.extend({
|
|
@@ -6602,10 +6602,10 @@ var ar = {}, bu = {
|
|
|
6602
6602
|
ar = t;
|
|
6603
6603
|
}
|
|
6604
6604
|
}, Is;
|
|
6605
|
-
function
|
|
6605
|
+
function Ot() {
|
|
6606
6606
|
return Is || (Is = 1, function(t, e) {
|
|
6607
6607
|
(function(r, n, s) {
|
|
6608
|
-
t.exports = n(
|
|
6608
|
+
t.exports = n(f0(), vo(), qn());
|
|
6609
6609
|
})(s0, function(r) {
|
|
6610
6610
|
return function() {
|
|
6611
6611
|
var n = r, s = n.lib, i = s.Base, o = s.WordArray, a = n.algo, g = a.MD5, c = a.EvpKDF = i.extend({
|
|
@@ -6675,7 +6675,7 @@ var cr = {}, Fu = {
|
|
|
6675
6675
|
function _0() {
|
|
6676
6676
|
return Ps || (Ps = 1, function(t, e) {
|
|
6677
6677
|
(function(r, n, s) {
|
|
6678
|
-
t.exports = n(
|
|
6678
|
+
t.exports = n(f0(), Ot());
|
|
6679
6679
|
})(s0, function(r) {
|
|
6680
6680
|
r.lib.Cipher || function(n) {
|
|
6681
6681
|
var s = r, i = s.lib, o = i.Base, a = i.WordArray, g = i.BufferedBlockAlgorithm, c = s.enc;
|
|
@@ -6802,11 +6802,11 @@ function _0() {
|
|
|
6802
6802
|
}
|
|
6803
6803
|
return function(D) {
|
|
6804
6804
|
return {
|
|
6805
|
-
encrypt: function(q, N,
|
|
6806
|
-
return w(N).encrypt(D, q, N,
|
|
6805
|
+
encrypt: function(q, N, V) {
|
|
6806
|
+
return w(N).encrypt(D, q, N, V);
|
|
6807
6807
|
},
|
|
6808
|
-
decrypt: function(q, N,
|
|
6809
|
-
return w(N).decrypt(D, q, N,
|
|
6808
|
+
decrypt: function(q, N, V) {
|
|
6809
|
+
return w(N).decrypt(D, q, N, V);
|
|
6810
6810
|
}
|
|
6811
6811
|
};
|
|
6812
6812
|
};
|
|
@@ -6877,8 +6877,8 @@ function _0() {
|
|
|
6877
6877
|
* mode.processBlock(data.words, offset);
|
|
6878
6878
|
*/
|
|
6879
6879
|
processBlock: function(q, N) {
|
|
6880
|
-
var
|
|
6881
|
-
D.call(this, q, N,
|
|
6880
|
+
var V = this._cipher, J = V.blockSize;
|
|
6881
|
+
D.call(this, q, N, J), V.encryptBlock(q, N), this._prevBlock = q.slice(N, N + J);
|
|
6882
6882
|
}
|
|
6883
6883
|
}), w.Decryptor = w.extend({
|
|
6884
6884
|
/**
|
|
@@ -6892,15 +6892,15 @@ function _0() {
|
|
|
6892
6892
|
* mode.processBlock(data.words, offset);
|
|
6893
6893
|
*/
|
|
6894
6894
|
processBlock: function(q, N) {
|
|
6895
|
-
var
|
|
6896
|
-
|
|
6895
|
+
var V = this._cipher, J = V.blockSize, X = q.slice(N, N + J);
|
|
6896
|
+
V.decryptBlock(q, N), D.call(this, q, N, J), this._prevBlock = X;
|
|
6897
6897
|
}
|
|
6898
6898
|
});
|
|
6899
|
-
function D(q, N,
|
|
6900
|
-
var
|
|
6901
|
-
X ? (
|
|
6902
|
-
for (var
|
|
6903
|
-
q[N +
|
|
6899
|
+
function D(q, N, V) {
|
|
6900
|
+
var J, X = this._iv;
|
|
6901
|
+
X ? (J = X, this._iv = n) : J = this._prevBlock;
|
|
6902
|
+
for (var d0 = 0; d0 < V; d0++)
|
|
6903
|
+
q[N + d0] ^= J[d0];
|
|
6904
6904
|
}
|
|
6905
6905
|
return w;
|
|
6906
6906
|
}(), b = s.pad = {}, B = b.Pkcs7 = {
|
|
@@ -6917,10 +6917,10 @@ function _0() {
|
|
|
6917
6917
|
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
|
|
6918
6918
|
*/
|
|
6919
6919
|
pad: function(w, D) {
|
|
6920
|
-
for (var q = D * 4, N = q - w.sigBytes % q,
|
|
6921
|
-
|
|
6922
|
-
var
|
|
6923
|
-
w.concat(
|
|
6920
|
+
for (var q = D * 4, N = q - w.sigBytes % q, V = N << 24 | N << 16 | N << 8 | N, J = [], X = 0; X < N; X += 4)
|
|
6921
|
+
J.push(V);
|
|
6922
|
+
var d0 = a.create(J, N);
|
|
6923
|
+
w.concat(d0);
|
|
6924
6924
|
},
|
|
6925
6925
|
/**
|
|
6926
6926
|
* Unpads data that had been padded using the algorithm defined in PKCS #5/7.
|
|
@@ -7069,9 +7069,9 @@ function _0() {
|
|
|
7069
7069
|
*/
|
|
7070
7070
|
encrypt: function(w, D, q, N) {
|
|
7071
7071
|
N = this.cfg.extend(N);
|
|
7072
|
-
var
|
|
7072
|
+
var V = w.createEncryptor(q, N), J = V.finalize(D), X = V.cfg;
|
|
7073
7073
|
return m.create({
|
|
7074
|
-
ciphertext:
|
|
7074
|
+
ciphertext: J,
|
|
7075
7075
|
key: q,
|
|
7076
7076
|
iv: X.iv,
|
|
7077
7077
|
algorithm: w,
|
|
@@ -7100,8 +7100,8 @@ function _0() {
|
|
|
7100
7100
|
*/
|
|
7101
7101
|
decrypt: function(w, D, q, N) {
|
|
7102
7102
|
N = this.cfg.extend(N), D = this._parse(D, N.format);
|
|
7103
|
-
var
|
|
7104
|
-
return
|
|
7103
|
+
var V = w.createDecryptor(q, N).finalize(D.ciphertext);
|
|
7104
|
+
return V;
|
|
7105
7105
|
},
|
|
7106
7106
|
/**
|
|
7107
7107
|
* Converts serialized ciphertext to CipherParams,
|
|
@@ -7139,13 +7139,13 @@ function _0() {
|
|
|
7139
7139
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
|
|
7140
7140
|
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
|
|
7141
7141
|
*/
|
|
7142
|
-
execute: function(w, D, q, N,
|
|
7143
|
-
if (N || (N = a.random(64 / 8)),
|
|
7144
|
-
var
|
|
7142
|
+
execute: function(w, D, q, N, V) {
|
|
7143
|
+
if (N || (N = a.random(64 / 8)), V)
|
|
7144
|
+
var J = d.create({ keySize: D + q, hasher: V }).compute(w, N);
|
|
7145
7145
|
else
|
|
7146
|
-
var
|
|
7147
|
-
var X = a.create(
|
|
7148
|
-
return
|
|
7146
|
+
var J = d.create({ keySize: D + q }).compute(w, N);
|
|
7147
|
+
var X = a.create(J.words.slice(D), q * 4);
|
|
7148
|
+
return J.sigBytes = D * 4, m.create({ key: J, iv: X, salt: N });
|
|
7149
7149
|
}
|
|
7150
7150
|
}, L = i.PasswordBasedCipher = _.extend({
|
|
7151
7151
|
/**
|
|
@@ -7175,10 +7175,10 @@ function _0() {
|
|
|
7175
7175
|
*/
|
|
7176
7176
|
encrypt: function(w, D, q, N) {
|
|
7177
7177
|
N = this.cfg.extend(N);
|
|
7178
|
-
var
|
|
7179
|
-
N.iv =
|
|
7180
|
-
var
|
|
7181
|
-
return
|
|
7178
|
+
var V = N.kdf.execute(q, w.keySize, w.ivSize, N.salt, N.hasher);
|
|
7179
|
+
N.iv = V.iv;
|
|
7180
|
+
var J = _.encrypt.call(this, w, D, V.key, N);
|
|
7181
|
+
return J.mixIn(V), J;
|
|
7182
7182
|
},
|
|
7183
7183
|
/**
|
|
7184
7184
|
* Decrypts serialized ciphertext using a password.
|
|
@@ -7199,10 +7199,10 @@ function _0() {
|
|
|
7199
7199
|
*/
|
|
7200
7200
|
decrypt: function(w, D, q, N) {
|
|
7201
7201
|
N = this.cfg.extend(N), D = this._parse(D, N.format);
|
|
7202
|
-
var
|
|
7203
|
-
N.iv =
|
|
7204
|
-
var
|
|
7205
|
-
return
|
|
7202
|
+
var V = N.kdf.execute(q, w.keySize, w.ivSize, D.salt, N.hasher);
|
|
7203
|
+
N.iv = V.iv;
|
|
7204
|
+
var J = _.decrypt.call(this, w, D, V.key, N);
|
|
7205
|
+
return J;
|
|
7206
7206
|
}
|
|
7207
7207
|
});
|
|
7208
7208
|
}();
|
|
@@ -7220,7 +7220,7 @@ var xr = {}, Au = {
|
|
|
7220
7220
|
function Cu() {
|
|
7221
7221
|
return Hs || (Hs = 1, function(t, e) {
|
|
7222
7222
|
(function(r, n, s) {
|
|
7223
|
-
t.exports = n(
|
|
7223
|
+
t.exports = n(f0(), _0());
|
|
7224
7224
|
})(s0, function(r) {
|
|
7225
7225
|
return r.mode.CFB = function() {
|
|
7226
7226
|
var n = r.lib.BlockCipherMode.extend();
|
|
@@ -7257,7 +7257,7 @@ var fr = {}, Du = {
|
|
|
7257
7257
|
function wu() {
|
|
7258
7258
|
return qs || (qs = 1, function(t, e) {
|
|
7259
7259
|
(function(r, n, s) {
|
|
7260
|
-
t.exports = n(
|
|
7260
|
+
t.exports = n(f0(), _0());
|
|
7261
7261
|
})(s0, function(r) {
|
|
7262
7262
|
return r.mode.CTR = function() {
|
|
7263
7263
|
var n = r.lib.BlockCipherMode.extend(), s = n.Encryptor = n.extend({
|
|
@@ -7286,7 +7286,7 @@ var ur = {}, _u = {
|
|
|
7286
7286
|
function Su() {
|
|
7287
7287
|
return Ns || (Ns = 1, function(t, e) {
|
|
7288
7288
|
(function(r, n, s) {
|
|
7289
|
-
t.exports = n(
|
|
7289
|
+
t.exports = n(f0(), _0());
|
|
7290
7290
|
})(s0, function(r) {
|
|
7291
7291
|
/** @preserve
|
|
7292
7292
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
@@ -7332,7 +7332,7 @@ var lr = {}, Tu = {
|
|
|
7332
7332
|
function Ru() {
|
|
7333
7333
|
return zs || (zs = 1, function(t, e) {
|
|
7334
7334
|
(function(r, n, s) {
|
|
7335
|
-
t.exports = n(
|
|
7335
|
+
t.exports = n(f0(), _0());
|
|
7336
7336
|
})(s0, function(r) {
|
|
7337
7337
|
return r.mode.OFB = function() {
|
|
7338
7338
|
var n = r.lib.BlockCipherMode.extend(), s = n.Encryptor = n.extend({
|
|
@@ -7359,7 +7359,7 @@ var hr = {}, ku = {
|
|
|
7359
7359
|
function Ou() {
|
|
7360
7360
|
return Ls || (Ls = 1, function(t, e) {
|
|
7361
7361
|
(function(r, n, s) {
|
|
7362
|
-
t.exports = n(
|
|
7362
|
+
t.exports = n(f0(), _0());
|
|
7363
7363
|
})(s0, function(r) {
|
|
7364
7364
|
return r.mode.ECB = function() {
|
|
7365
7365
|
var n = r.lib.BlockCipherMode.extend();
|
|
@@ -7387,7 +7387,7 @@ var dr = {}, Iu = {
|
|
|
7387
7387
|
function Pu() {
|
|
7388
7388
|
return Us || (Us = 1, function(t, e) {
|
|
7389
7389
|
(function(r, n, s) {
|
|
7390
|
-
t.exports = n(
|
|
7390
|
+
t.exports = n(f0(), _0());
|
|
7391
7391
|
})(s0, function(r) {
|
|
7392
7392
|
return r.pad.AnsiX923 = {
|
|
7393
7393
|
pad: function(n, s) {
|
|
@@ -7413,7 +7413,7 @@ var pr = {}, Hu = {
|
|
|
7413
7413
|
function qu() {
|
|
7414
7414
|
return $s || ($s = 1, function(t, e) {
|
|
7415
7415
|
(function(r, n, s) {
|
|
7416
|
-
t.exports = n(
|
|
7416
|
+
t.exports = n(f0(), _0());
|
|
7417
7417
|
})(s0, function(r) {
|
|
7418
7418
|
return r.pad.Iso10126 = {
|
|
7419
7419
|
pad: function(n, s) {
|
|
@@ -7439,7 +7439,7 @@ var vr = {}, Nu = {
|
|
|
7439
7439
|
function zu() {
|
|
7440
7440
|
return Ms || (Ms = 1, function(t, e) {
|
|
7441
7441
|
(function(r, n, s) {
|
|
7442
|
-
t.exports = n(
|
|
7442
|
+
t.exports = n(f0(), _0());
|
|
7443
7443
|
})(s0, function(r) {
|
|
7444
7444
|
return r.pad.Iso97971 = {
|
|
7445
7445
|
pad: function(n, s) {
|
|
@@ -7463,7 +7463,7 @@ var Br = {}, Lu = {
|
|
|
7463
7463
|
function Uu() {
|
|
7464
7464
|
return js || (js = 1, function(t, e) {
|
|
7465
7465
|
(function(r, n, s) {
|
|
7466
|
-
t.exports = n(
|
|
7466
|
+
t.exports = n(f0(), _0());
|
|
7467
7467
|
})(s0, function(r) {
|
|
7468
7468
|
return r.pad.ZeroPadding = {
|
|
7469
7469
|
pad: function(n, s) {
|
|
@@ -7492,7 +7492,7 @@ var gr = {}, $u = {
|
|
|
7492
7492
|
function Mu() {
|
|
7493
7493
|
return Ws || (Ws = 1, function(t, e) {
|
|
7494
7494
|
(function(r, n, s) {
|
|
7495
|
-
t.exports = n(
|
|
7495
|
+
t.exports = n(f0(), _0());
|
|
7496
7496
|
})(s0, function(r) {
|
|
7497
7497
|
return r.pad.NoPadding = {
|
|
7498
7498
|
pad: function() {
|
|
@@ -7514,7 +7514,7 @@ var Er = {}, ju = {
|
|
|
7514
7514
|
function Wu() {
|
|
7515
7515
|
return Ks || (Ks = 1, function(t, e) {
|
|
7516
7516
|
(function(r, n, s) {
|
|
7517
|
-
t.exports = n(
|
|
7517
|
+
t.exports = n(f0(), _0());
|
|
7518
7518
|
})(s0, function(r) {
|
|
7519
7519
|
return function(n) {
|
|
7520
7520
|
var s = r, i = s.lib, o = i.CipherParams, a = s.enc, g = a.Hex, c = s.format;
|
|
@@ -7568,7 +7568,7 @@ var yr = {}, Ku = {
|
|
|
7568
7568
|
function Zu() {
|
|
7569
7569
|
return Zs || (Zs = 1, function(t, e) {
|
|
7570
7570
|
(function(r, n, s) {
|
|
7571
|
-
t.exports = n(
|
|
7571
|
+
t.exports = n(f0(), Lt(), Ut(), Ot(), _0());
|
|
7572
7572
|
})(s0, function(r) {
|
|
7573
7573
|
return function() {
|
|
7574
7574
|
var n = r, s = n.lib, i = s.BlockCipher, o = n.algo, a = [], g = [], c = [], x = [], p = [], d = [], v = [], f = [], l = [], y = [];
|
|
@@ -7610,11 +7610,11 @@ function Zu() {
|
|
|
7610
7610
|
m[F + 1] = m[F + 3], m[F + 3] = C;
|
|
7611
7611
|
},
|
|
7612
7612
|
_doCryptBlock: function(m, F, C, _, S, T, L, w) {
|
|
7613
|
-
for (var D = this._nRounds, q = m[F] ^ C[0], N = m[F + 1] ^ C[1],
|
|
7614
|
-
var a0 = _[q >>> 24] ^ S[N >>> 16 & 255] ^ T[
|
|
7615
|
-
q = a0, N = o0,
|
|
7613
|
+
for (var D = this._nRounds, q = m[F] ^ C[0], N = m[F + 1] ^ C[1], V = m[F + 2] ^ C[2], J = m[F + 3] ^ C[3], X = 4, d0 = 1; d0 < D; d0++) {
|
|
7614
|
+
var a0 = _[q >>> 24] ^ S[N >>> 16 & 255] ^ T[V >>> 8 & 255] ^ L[J & 255] ^ C[X++], o0 = _[N >>> 24] ^ S[V >>> 16 & 255] ^ T[J >>> 8 & 255] ^ L[q & 255] ^ C[X++], h0 = _[V >>> 24] ^ S[J >>> 16 & 255] ^ T[q >>> 8 & 255] ^ L[N & 255] ^ C[X++], I = _[J >>> 24] ^ S[q >>> 16 & 255] ^ T[N >>> 8 & 255] ^ L[V & 255] ^ C[X++];
|
|
7615
|
+
q = a0, N = o0, V = h0, J = I;
|
|
7616
7616
|
}
|
|
7617
|
-
var a0 = (w[q >>> 24] << 24 | w[N >>> 16 & 255] << 16 | w[
|
|
7617
|
+
var a0 = (w[q >>> 24] << 24 | w[N >>> 16 & 255] << 16 | w[V >>> 8 & 255] << 8 | w[J & 255]) ^ C[X++], o0 = (w[N >>> 24] << 24 | w[V >>> 16 & 255] << 16 | w[J >>> 8 & 255] << 8 | w[q & 255]) ^ C[X++], h0 = (w[V >>> 24] << 24 | w[J >>> 16 & 255] << 16 | w[q >>> 8 & 255] << 8 | w[N & 255]) ^ C[X++], I = (w[J >>> 24] << 24 | w[q >>> 16 & 255] << 16 | w[N >>> 8 & 255] << 8 | w[V & 255]) ^ C[X++];
|
|
7618
7618
|
m[F] = a0, m[F + 1] = o0, m[F + 2] = h0, m[F + 3] = I;
|
|
7619
7619
|
},
|
|
7620
7620
|
keySize: 256 / 32
|
|
@@ -7635,7 +7635,7 @@ var mr = {}, Xu = {
|
|
|
7635
7635
|
function Gu() {
|
|
7636
7636
|
return Xs || (Xs = 1, function(t, e) {
|
|
7637
7637
|
(function(r, n, s) {
|
|
7638
|
-
t.exports = n(
|
|
7638
|
+
t.exports = n(f0(), Lt(), Ut(), Ot(), _0());
|
|
7639
7639
|
})(s0, function(r) {
|
|
7640
7640
|
return function() {
|
|
7641
7641
|
var n = r, s = n.lib, i = s.WordArray, o = s.BlockCipher, a = n.algo, g = [
|
|
@@ -8362,7 +8362,7 @@ var br = {}, Qu = {
|
|
|
8362
8362
|
function Vu() {
|
|
8363
8363
|
return Gs || (Gs = 1, function(t, e) {
|
|
8364
8364
|
(function(r, n, s) {
|
|
8365
|
-
t.exports = n(
|
|
8365
|
+
t.exports = n(f0(), Lt(), Ut(), Ot(), _0());
|
|
8366
8366
|
})(s0, function(r) {
|
|
8367
8367
|
return function() {
|
|
8368
8368
|
var n = r, s = n.lib, i = s.StreamCipher, o = n.algo, a = o.RC4 = i.extend({
|
|
@@ -8423,7 +8423,7 @@ var Fr = {}, Yu = {
|
|
|
8423
8423
|
function Ju() {
|
|
8424
8424
|
return Qs || (Qs = 1, function(t, e) {
|
|
8425
8425
|
(function(r, n, s) {
|
|
8426
|
-
t.exports = n(
|
|
8426
|
+
t.exports = n(f0(), Lt(), Ut(), Ot(), _0());
|
|
8427
8427
|
})(s0, function(r) {
|
|
8428
8428
|
return function() {
|
|
8429
8429
|
var n = r, s = n.lib, i = s.StreamCipher, o = n.algo, a = [], g = [], c = [], x = o.Rabbit = i.extend({
|
|
@@ -8496,7 +8496,7 @@ var Ar = {}, tl = {
|
|
|
8496
8496
|
function el() {
|
|
8497
8497
|
return Vs || (Vs = 1, function(t, e) {
|
|
8498
8498
|
(function(r, n, s) {
|
|
8499
|
-
t.exports = n(
|
|
8499
|
+
t.exports = n(f0(), Lt(), Ut(), Ot(), _0());
|
|
8500
8500
|
})(s0, function(r) {
|
|
8501
8501
|
return function() {
|
|
8502
8502
|
var n = r, s = n.lib, i = s.StreamCipher, o = n.algo, a = [], g = [], c = [], x = o.RabbitLegacy = i.extend({
|
|
@@ -8567,7 +8567,7 @@ var Cr = {}, rl = {
|
|
|
8567
8567
|
function nl() {
|
|
8568
8568
|
return Ys || (Ys = 1, function(t, e) {
|
|
8569
8569
|
(function(r, n, s) {
|
|
8570
|
-
t.exports = n(
|
|
8570
|
+
t.exports = n(f0(), Lt(), Ut(), Ot(), _0());
|
|
8571
8571
|
})(s0, function(r) {
|
|
8572
8572
|
return function() {
|
|
8573
8573
|
var n = r, s = n.lib, i = s.BlockCipher, o = n.algo;
|
|
@@ -9687,12 +9687,12 @@ function nl() {
|
|
|
9687
9687
|
}
|
|
9688
9688
|
(function(t, e) {
|
|
9689
9689
|
(function(r, n, s) {
|
|
9690
|
-
t.exports = n(
|
|
9690
|
+
t.exports = n(f0(), Nr(), eu(), nu(), Lt(), ou(), Ut(), vo(), Hn(), uu(), Bo(), du(), vu(), gu(), qn(), mu(), Ot(), _0(), Cu(), wu(), Su(), Ru(), Ou(), Pu(), qu(), zu(), Uu(), Mu(), Wu(), Zu(), Gu(), Vu(), Ju(), el(), nl());
|
|
9691
9691
|
})(s0, function(r) {
|
|
9692
9692
|
return r;
|
|
9693
9693
|
});
|
|
9694
9694
|
})(Zf);
|
|
9695
|
-
const
|
|
9695
|
+
const W0 = yn;
|
|
9696
9696
|
function go(t, e, r, n, s) {
|
|
9697
9697
|
const i = s.parse(t), o = {
|
|
9698
9698
|
iv: e,
|
|
@@ -9701,33 +9701,33 @@ function go(t, e, r, n, s) {
|
|
|
9701
9701
|
};
|
|
9702
9702
|
return {
|
|
9703
9703
|
encrypt: (c, x) => {
|
|
9704
|
-
const p = s.parse(c), d =
|
|
9705
|
-
return x ?
|
|
9704
|
+
const p = s.parse(c), d = W0.AES.encrypt(p, i, o);
|
|
9705
|
+
return x ? W0.enc.Hex.stringify(d == null ? void 0 : d.ciphertext) : d.toString();
|
|
9706
9706
|
},
|
|
9707
9707
|
decrypt: (c, x) => {
|
|
9708
9708
|
if (x) {
|
|
9709
9709
|
const p = {
|
|
9710
|
-
ciphertext:
|
|
9711
|
-
}, d =
|
|
9710
|
+
ciphertext: W0.enc.Hex.parse(c)
|
|
9711
|
+
}, d = W0.AES.decrypt(p, i, o);
|
|
9712
9712
|
return d == null ? void 0 : d.toString(s);
|
|
9713
9713
|
} else
|
|
9714
|
-
return
|
|
9714
|
+
return W0.AES.decrypt(c, i, o);
|
|
9715
9715
|
}
|
|
9716
9716
|
};
|
|
9717
9717
|
}
|
|
9718
9718
|
function sl(t, e) {
|
|
9719
|
-
var r = go(t, e,
|
|
9719
|
+
var r = go(t, e, W0.mode.CBC, W0.pad.Pkcs7, W0.enc.Utf8);
|
|
9720
9720
|
return r;
|
|
9721
9721
|
}
|
|
9722
9722
|
function il(t, e) {
|
|
9723
|
-
var r = go(t, e,
|
|
9723
|
+
var r = go(t, e, W0.mode.ECB, W0.pad.Pkcs7, W0.enc.Utf8);
|
|
9724
9724
|
return r;
|
|
9725
9725
|
}
|
|
9726
9726
|
const { openWindow: ol } = to(), { sendToIframe: al, sendToParent: cl, receive: xl, sendToIframeByName: fl, send: ul } = qi();
|
|
9727
9727
|
function ll(t) {
|
|
9728
9728
|
return {
|
|
9729
9729
|
instance: t.instance,
|
|
9730
|
-
i18n:
|
|
9730
|
+
i18n: B0,
|
|
9731
9731
|
util: {
|
|
9732
9732
|
url: Wt,
|
|
9733
9733
|
cookie: li,
|
|
@@ -9743,11 +9743,11 @@ function ll(t) {
|
|
|
9743
9743
|
window: {
|
|
9744
9744
|
//窗体触发
|
|
9745
9745
|
openWindow: ol,
|
|
9746
|
-
findUp:
|
|
9747
|
-
findDown:
|
|
9748
|
-
find:
|
|
9749
|
-
findByIframeId:
|
|
9750
|
-
findTop:
|
|
9746
|
+
findUp: L0.findUp,
|
|
9747
|
+
findDown: L0.findDown,
|
|
9748
|
+
find: L0.find,
|
|
9749
|
+
findByIframeId: L0.findByIframeId,
|
|
9750
|
+
findTop: L0.findTop
|
|
9751
9751
|
},
|
|
9752
9752
|
message: {
|
|
9753
9753
|
//消息通信
|
|
@@ -9763,17 +9763,17 @@ function ll(t) {
|
|
|
9763
9763
|
ElNotification: ae
|
|
9764
9764
|
},
|
|
9765
9765
|
json: {
|
|
9766
|
-
fromJson:
|
|
9767
|
-
toJson:
|
|
9766
|
+
fromJson: $0,
|
|
9767
|
+
toJson: q0
|
|
9768
9768
|
},
|
|
9769
9769
|
security: {
|
|
9770
|
-
CryptoJS:
|
|
9770
|
+
CryptoJS: W0,
|
|
9771
9771
|
// MD5: { hex_md5: md5.hex_md5 },
|
|
9772
9772
|
// Base64,
|
|
9773
9773
|
//国密
|
|
9774
9774
|
SM: {
|
|
9775
9775
|
SMWithTraceKey: Kf,
|
|
9776
|
-
SM2:
|
|
9776
|
+
SM2: ve,
|
|
9777
9777
|
SM4: kn,
|
|
9778
9778
|
SecInner: qr
|
|
9779
9779
|
},
|
|
@@ -9787,41 +9787,41 @@ function ll(t) {
|
|
|
9787
9787
|
};
|
|
9788
9788
|
}
|
|
9789
9789
|
const Eo = ba();
|
|
9790
|
-
|
|
9790
|
+
_t.rowScope + "", B0.i18nt("designer.var.rowScope");
|
|
9791
9791
|
const yo = function(t) {
|
|
9792
9792
|
return {
|
|
9793
|
-
[
|
|
9794
|
-
[
|
|
9795
|
-
[
|
|
9796
|
-
[
|
|
9797
|
-
[
|
|
9798
|
-
[
|
|
9799
|
-
[
|
|
9800
|
-
[
|
|
9801
|
-
[
|
|
9802
|
-
[
|
|
9803
|
-
[
|
|
9804
|
-
[
|
|
9805
|
-
[
|
|
9806
|
-
[
|
|
9807
|
-
[
|
|
9808
|
-
[
|
|
9809
|
-
[
|
|
9793
|
+
[x0.number]: /^[-+]?(\d+\.\d+|\d+|\.\d+)$/,
|
|
9794
|
+
[x0.letter]: /^[A-Za-z]+$/,
|
|
9795
|
+
[x0.letterAndNumber]: /^[A-Za-z0-9]+$/,
|
|
9796
|
+
[x0.letterStartNumberIncluded]: /^[A-Za-z]+[A-Za-z\d]*$/,
|
|
9797
|
+
[x0.mobilePhone]: /^[1][3-9][0-9]{9}$/,
|
|
9798
|
+
[x0.email]: /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,
|
|
9799
|
+
[x0.url]: /^(https?|ftp):\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&//=]*)$/,
|
|
9800
|
+
[x0.noBlankStart]: /^[^\s].*$/,
|
|
9801
|
+
[x0.noBlankEnd]: /^.*[^\s]$/,
|
|
9802
|
+
[x0.noBlankStartEnd]: /^[^\s].*[^\s]$/,
|
|
9803
|
+
[x0.weakPassword]: /^[A-Za-z\d]{6,}$/,
|
|
9804
|
+
[x0.mediumPassword]: /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/,
|
|
9805
|
+
[x0.strongPassword]: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*]).{10,}$/,
|
|
9806
|
+
[x0.noChinese]: /^[^\u4e00-\u9fa5]+$/,
|
|
9807
|
+
[x0.chinese]: /^[\u4e00-\u9fa5]+$/,
|
|
9808
|
+
[x0.chinaIdcard]: oi.isValid,
|
|
9809
|
+
[x0.required]: (r) => r != null && r !== "" && (!Array.isArray(r) || r.length > 0)
|
|
9810
9810
|
}[t];
|
|
9811
9811
|
}, hl = (t, e, r) => {
|
|
9812
9812
|
var n = new Error(e);
|
|
9813
9813
|
return n.rule = t, n.force = r, n;
|
|
9814
9814
|
}, mo = (t, e, r, n, s) => {
|
|
9815
9815
|
t ? r() : r(hl(e, n, s));
|
|
9816
|
-
},
|
|
9816
|
+
}, Le = function(t, e, r, n, s, i) {
|
|
9817
9817
|
if (ti(t)) {
|
|
9818
9818
|
n();
|
|
9819
9819
|
return;
|
|
9820
9820
|
}
|
|
9821
9821
|
let o = s, a = !0;
|
|
9822
9822
|
ca(t) ? a = t == null ? void 0 : t(r) : a = new RegExp(t).test(r), mo(a, e, n, o, i);
|
|
9823
|
-
},
|
|
9824
|
-
if (
|
|
9823
|
+
}, R0 = function(t, e, r, n, s, i) {
|
|
9824
|
+
if (yt(r)) {
|
|
9825
9825
|
n();
|
|
9826
9826
|
return;
|
|
9827
9827
|
}
|
|
@@ -9829,7 +9829,7 @@ const yo = function(t) {
|
|
|
9829
9829
|
n();
|
|
9830
9830
|
return;
|
|
9831
9831
|
}
|
|
9832
|
-
|
|
9832
|
+
Le(yo(t), e, r, n, s, i);
|
|
9833
9833
|
}, ne = {
|
|
9834
9834
|
/**
|
|
9835
9835
|
* 数字
|
|
@@ -9838,7 +9838,7 @@ const yo = function(t) {
|
|
|
9838
9838
|
* @param callback 回调函数
|
|
9839
9839
|
*/
|
|
9840
9840
|
number(t, e, r, n) {
|
|
9841
|
-
|
|
9841
|
+
R0(x0.number, t, e, r, B0.i18nt("render.hint.numberFailed"), n);
|
|
9842
9842
|
},
|
|
9843
9843
|
/**
|
|
9844
9844
|
* 字母
|
|
@@ -9847,7 +9847,7 @@ const yo = function(t) {
|
|
|
9847
9847
|
* @param callback 回调函数
|
|
9848
9848
|
*/
|
|
9849
9849
|
letter(t, e, r, n) {
|
|
9850
|
-
|
|
9850
|
+
R0(x0.letter, t, e, r, B0.i18nt("render.hint.letterFailed"), n);
|
|
9851
9851
|
},
|
|
9852
9852
|
/**
|
|
9853
9853
|
* 字母和数字
|
|
@@ -9856,7 +9856,7 @@ const yo = function(t) {
|
|
|
9856
9856
|
* @param callback 回调函数
|
|
9857
9857
|
*/
|
|
9858
9858
|
letterAndNumber(t, e, r, n) {
|
|
9859
|
-
|
|
9859
|
+
R0(x0.letterAndNumber, t, e, r, B0.i18nt("render.hint.letterAndNumberFailed"), n);
|
|
9860
9860
|
},
|
|
9861
9861
|
/**
|
|
9862
9862
|
* 手机号码
|
|
@@ -9865,7 +9865,7 @@ const yo = function(t) {
|
|
|
9865
9865
|
* @param callback 回调函数
|
|
9866
9866
|
*/
|
|
9867
9867
|
mobilePhone(t, e, r, n) {
|
|
9868
|
-
|
|
9868
|
+
R0(x0.mobilePhone, t, e, r, B0.i18nt("render.hint.mobilePhoneFailed"), n);
|
|
9869
9869
|
},
|
|
9870
9870
|
/**
|
|
9871
9871
|
* 禁止空白字符开头
|
|
@@ -9874,7 +9874,7 @@ const yo = function(t) {
|
|
|
9874
9874
|
* @param callback 回调函数
|
|
9875
9875
|
*/
|
|
9876
9876
|
noBlankStart(t, e, r, n) {
|
|
9877
|
-
|
|
9877
|
+
R0(x0.noBlankStart, t, e, r, B0.i18nt("render.hint.noBlankStartFailed"), n);
|
|
9878
9878
|
},
|
|
9879
9879
|
/**
|
|
9880
9880
|
* 禁止空白字符结尾
|
|
@@ -9883,7 +9883,7 @@ const yo = function(t) {
|
|
|
9883
9883
|
* @param callback 回调函数
|
|
9884
9884
|
*/
|
|
9885
9885
|
noBlankEnd(t, e, r, n) {
|
|
9886
|
-
|
|
9886
|
+
R0(x0.noBlankEnd, t, e, r, B0.i18nt("render.hint.noBlankEndFailed"), n);
|
|
9887
9887
|
},
|
|
9888
9888
|
/**
|
|
9889
9889
|
* 禁止以空白字符开头和结尾
|
|
@@ -9892,7 +9892,7 @@ const yo = function(t) {
|
|
|
9892
9892
|
* @param callback 回调函数
|
|
9893
9893
|
*/
|
|
9894
9894
|
noBlankStartEnd(t, e, r, n) {
|
|
9895
|
-
|
|
9895
|
+
R0(x0.noBlankStartEnd, t, e, r, B0.i18nt("render.hint.noBlankStartEndFailed"), n);
|
|
9896
9896
|
},
|
|
9897
9897
|
/**
|
|
9898
9898
|
* 字母开头,仅可包含数字
|
|
@@ -9901,7 +9901,7 @@ const yo = function(t) {
|
|
|
9901
9901
|
* @param callback 回调函数
|
|
9902
9902
|
*/
|
|
9903
9903
|
letterStartNumberIncluded(t, e, r, n) {
|
|
9904
|
-
|
|
9904
|
+
R0(x0.letterStartNumberIncluded, t, e, r, B0.i18nt("render.hint.letterStartNumberIncludedFailed"), n);
|
|
9905
9905
|
},
|
|
9906
9906
|
/**
|
|
9907
9907
|
* 禁止中文输入
|
|
@@ -9910,7 +9910,7 @@ const yo = function(t) {
|
|
|
9910
9910
|
* @param callback 回调函数
|
|
9911
9911
|
*/
|
|
9912
9912
|
noChinese(t, e, r, n) {
|
|
9913
|
-
|
|
9913
|
+
R0(x0.noChinese, t, e, r, B0.i18nt("render.hint.noChineseFailed"), n);
|
|
9914
9914
|
},
|
|
9915
9915
|
/**
|
|
9916
9916
|
* 必须中文输入
|
|
@@ -9919,7 +9919,7 @@ const yo = function(t) {
|
|
|
9919
9919
|
* @param callback 回调函数
|
|
9920
9920
|
*/
|
|
9921
9921
|
chinese(t, e, r, n) {
|
|
9922
|
-
|
|
9922
|
+
R0(x0.chinese, t, e, r, B0.i18nt("render.hint.chineseFailed"), n);
|
|
9923
9923
|
},
|
|
9924
9924
|
/**
|
|
9925
9925
|
* 电子邮箱
|
|
@@ -9928,7 +9928,7 @@ const yo = function(t) {
|
|
|
9928
9928
|
* @param callback 回调函数
|
|
9929
9929
|
*/
|
|
9930
9930
|
email(t, e, r, n) {
|
|
9931
|
-
|
|
9931
|
+
R0(x0.email, t, e, r, B0.i18nt("render.hint.emailFailed"), n);
|
|
9932
9932
|
},
|
|
9933
9933
|
/**
|
|
9934
9934
|
* URL网址
|
|
@@ -9937,7 +9937,7 @@ const yo = function(t) {
|
|
|
9937
9937
|
* @param callback 回调函数
|
|
9938
9938
|
*/
|
|
9939
9939
|
url(t, e, r, n) {
|
|
9940
|
-
|
|
9940
|
+
R0(x0.url, t, e, r, B0.i18nt("render.hint.urlFailed"), n);
|
|
9941
9941
|
},
|
|
9942
9942
|
/**
|
|
9943
9943
|
* 身份证号
|
|
@@ -9946,7 +9946,7 @@ const yo = function(t) {
|
|
|
9946
9946
|
* @param callback 回调函数
|
|
9947
9947
|
*/
|
|
9948
9948
|
chinaIdcard(t, e, r, n) {
|
|
9949
|
-
|
|
9949
|
+
R0(x0.chinaIdcard, t, e, r, B0.i18nt("render.hint.chinaIdcardFailed"), n);
|
|
9950
9950
|
},
|
|
9951
9951
|
/**
|
|
9952
9952
|
* 弱密码
|
|
@@ -9955,7 +9955,7 @@ const yo = function(t) {
|
|
|
9955
9955
|
* @param callback 回调函数
|
|
9956
9956
|
*/
|
|
9957
9957
|
weakPassword(t, e, r, n) {
|
|
9958
|
-
|
|
9958
|
+
R0(x0.weakPassword, t, e, r, B0.i18nt("render.hint.weakPasswordFailed"), n);
|
|
9959
9959
|
},
|
|
9960
9960
|
/**
|
|
9961
9961
|
* 中度密码
|
|
@@ -9964,7 +9964,7 @@ const yo = function(t) {
|
|
|
9964
9964
|
* @param callback 回调函数
|
|
9965
9965
|
*/
|
|
9966
9966
|
mediumPassword(t, e, r, n) {
|
|
9967
|
-
|
|
9967
|
+
R0(x0.mediumPassword, t, e, r, B0.i18nt("render.hint.mediumPasswordFailed"), n);
|
|
9968
9968
|
},
|
|
9969
9969
|
/**
|
|
9970
9970
|
* 强度密码
|
|
@@ -9973,11 +9973,11 @@ const yo = function(t) {
|
|
|
9973
9973
|
* @param callback 回调函数
|
|
9974
9974
|
*/
|
|
9975
9975
|
strongPassword(t, e, r, n) {
|
|
9976
|
-
|
|
9976
|
+
R0(x0.strongPassword, t, e, r, B0.i18nt("render.hint.strongPasswordFailed"), n);
|
|
9977
9977
|
},
|
|
9978
9978
|
required(t, e, r, n, s) {
|
|
9979
|
-
let i = s ||
|
|
9980
|
-
|
|
9979
|
+
let i = s || B0.i18nt("render.hint.fieldRequired");
|
|
9980
|
+
Le(yo(x0.required), t, e, r, i, n);
|
|
9981
9981
|
},
|
|
9982
9982
|
/**
|
|
9983
9983
|
* 自定义校验规则
|
|
@@ -9987,7 +9987,7 @@ const yo = function(t) {
|
|
|
9987
9987
|
* @returns
|
|
9988
9988
|
*/
|
|
9989
9989
|
regExp(t, e, r, n, s, i) {
|
|
9990
|
-
return
|
|
9990
|
+
return Le(i, t, e, r, s || "invalid value", n);
|
|
9991
9991
|
},
|
|
9992
9992
|
/**
|
|
9993
9993
|
* 数值范围校验规则
|
|
@@ -9997,52 +9997,52 @@ const yo = function(t) {
|
|
|
9997
9997
|
* @returns
|
|
9998
9998
|
*/
|
|
9999
9999
|
range(t, e, r, n, s, i) {
|
|
10000
|
-
return
|
|
10000
|
+
return Le(i, t, e, r, s || "invalid value", n);
|
|
10001
10001
|
}
|
|
10002
10002
|
};
|
|
10003
10003
|
function dl(t, e, r, n) {
|
|
10004
|
-
const s = e == null ? void 0 : e.designState, i = e, o = (R, j = !1) => t ?
|
|
10004
|
+
const s = e == null ? void 0 : e.designState, i = e, o = (R, j = !1) => t ? b0.getOptions(t, R, j, !s, i) : null, a = (R, j) => {
|
|
10005
10005
|
if (t)
|
|
10006
|
-
return
|
|
10006
|
+
return b0.setOptions(t, R, j);
|
|
10007
10007
|
}, g = (R, j) => {
|
|
10008
10008
|
J0(t == null ? void 0 : t.options, R) && a(R, j);
|
|
10009
10009
|
}, c = (R) => {
|
|
10010
|
-
const j =
|
|
10010
|
+
const j = b0.getOrgOption(t, R);
|
|
10011
10011
|
return f(j);
|
|
10012
10012
|
}, x = (R, j, k = !1) => {
|
|
10013
|
-
var
|
|
10014
|
-
const
|
|
10015
|
-
var t0 = k ? K.getValue(
|
|
10013
|
+
var Y;
|
|
10014
|
+
const Q = (Y = t == null ? void 0 : t.options) == null ? void 0 : Y[R];
|
|
10015
|
+
var t0 = k ? K.getValue(Q, !1, !s, { ...i, schemaParams: j }) : c(R);
|
|
10016
10016
|
return t0;
|
|
10017
|
-
}, p = (R, j, k,
|
|
10017
|
+
}, p = (R, j, k, Q) => {
|
|
10018
10018
|
if (!j)
|
|
10019
10019
|
return;
|
|
10020
10020
|
k == null || k();
|
|
10021
|
-
const t0 =
|
|
10021
|
+
const t0 = zt(m.value).includes(j) ? m : zt(C.value).includes(j) ? C : null;
|
|
10022
10022
|
if (R && t0)
|
|
10023
10023
|
Ue(() => {
|
|
10024
|
-
var
|
|
10025
|
-
return (
|
|
10026
|
-
}, (
|
|
10027
|
-
|
|
10024
|
+
var Y;
|
|
10025
|
+
return (Y = t0 == null ? void 0 : t0.value) == null ? void 0 : Y[j];
|
|
10026
|
+
}, (Y, e0) => {
|
|
10027
|
+
Q == null || Q(Y, e0);
|
|
10028
10028
|
}, { immediate: !0 });
|
|
10029
10029
|
else {
|
|
10030
|
-
const
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
}, { immediate: !0 }) :
|
|
10030
|
+
const Y = o(j);
|
|
10031
|
+
wt(Y) ? Ue(Y, (e0, u0) => {
|
|
10032
|
+
Q == null || Q(e0, u0);
|
|
10033
|
+
}, { immediate: !0 }) : Q == null || Q(Y, null);
|
|
10034
10034
|
}
|
|
10035
10035
|
}, d = (R, j) => {
|
|
10036
|
-
t &&
|
|
10036
|
+
t && b0.setEnable(t, R, j);
|
|
10037
10037
|
}, v = (R, j, k) => bf(R, j, k, e), f = (R) => {
|
|
10038
10038
|
var j = K.getType(R), k = K.getValue(R, !1, !s, i);
|
|
10039
10039
|
switch (j) {
|
|
10040
10040
|
case G.dataObject: {
|
|
10041
|
-
const
|
|
10042
|
-
if (
|
|
10043
|
-
if ([se.array, se.object].includes(
|
|
10044
|
-
return k == null || k === "" ? null :
|
|
10045
|
-
if ([se.bigint, se.number].includes(
|
|
10041
|
+
const Q = b0.getOptions(R, "type");
|
|
10042
|
+
if (K0(k) && Q) {
|
|
10043
|
+
if ([se.array, se.object].includes(Q))
|
|
10044
|
+
return k == null || k === "" ? null : $0(String(k || ""));
|
|
10045
|
+
if ([se.bigint, se.number].includes(Q))
|
|
10046
10046
|
return la(k);
|
|
10047
10047
|
}
|
|
10048
10048
|
return k;
|
|
@@ -10051,140 +10051,143 @@ function dl(t, e, r, n) {
|
|
|
10051
10051
|
case G.placerHook:
|
|
10052
10052
|
case G.hook: {
|
|
10053
10053
|
if (k && !s)
|
|
10054
|
-
return (...
|
|
10054
|
+
return (...Q) => {
|
|
10055
10055
|
let t0 = {};
|
|
10056
|
-
var
|
|
10057
|
-
|
|
10058
|
-
const { instance: e0 } = nn(n),
|
|
10059
|
-
t0[
|
|
10060
|
-
const
|
|
10061
|
-
return
|
|
10056
|
+
var Y = 1;
|
|
10057
|
+
Q == null || Q.map((E0) => t0["args" + Y++] = E0);
|
|
10058
|
+
const { instance: e0 } = nn(n), u0 = ll({ instance: e0 });
|
|
10059
|
+
t0[xt.externalArgs] = u0;
|
|
10060
|
+
const y0 = k;
|
|
10061
|
+
return y0 != null && y0.type ? v(y0, t0, e0) : kt(k, t0);
|
|
10062
10062
|
};
|
|
10063
10063
|
break;
|
|
10064
10064
|
}
|
|
10065
10065
|
case G.slot:
|
|
10066
10066
|
return ux(k);
|
|
10067
10067
|
case G.icon: {
|
|
10068
|
-
const { instance:
|
|
10069
|
-
return
|
|
10068
|
+
const { instance: Q } = nn(n);
|
|
10069
|
+
return Q ? ga(k, Q) : k;
|
|
10070
10070
|
}
|
|
10071
10071
|
default:
|
|
10072
10072
|
return k;
|
|
10073
10073
|
}
|
|
10074
10074
|
}, l = (R, j = !1, k) => {
|
|
10075
10075
|
var t0;
|
|
10076
|
-
var
|
|
10077
|
-
return !t || !t.options || (t0 = Object.entries(t == null ? void 0 : t.options)) == null || t0.forEach(([
|
|
10078
|
-
if (!(!
|
|
10079
|
-
var
|
|
10080
|
-
if (R.indexOf(
|
|
10081
|
-
var
|
|
10082
|
-
if (
|
|
10083
|
-
var
|
|
10084
|
-
|
|
10076
|
+
var Q = {};
|
|
10077
|
+
return !t || !t.options || (t0 = Object.entries(t == null ? void 0 : t.options)) == null || t0.forEach(([Y, e0]) => {
|
|
10078
|
+
if (!(!Bt(k) && !(k != null && k(Y)))) {
|
|
10079
|
+
var u0 = K.getType(e0);
|
|
10080
|
+
if (R.indexOf(u0) !== -1) {
|
|
10081
|
+
var y0 = j ? K.getValue(e0, !1, !s, i) : c(Y);
|
|
10082
|
+
if (u0 === G.slot) {
|
|
10083
|
+
var E0 = K.getOptions(e0), g0 = {};
|
|
10084
|
+
g0.slotName = (E0 == null ? void 0 : E0.slotName) || Y, (e0 == null ? void 0 : e0.widgetList) === void 0 ? g0.widgetList = [] : g0.widgetList = e0 == null ? void 0 : e0.widgetList, g0.default = y0 ? ma(y0) : null, Object.assign(e0, g0), Q[Y] = e0;
|
|
10085
10085
|
} else
|
|
10086
|
-
|
|
10086
|
+
Bt(y0) || (Q[Y] = y0);
|
|
10087
10087
|
} else
|
|
10088
|
-
|
|
10088
|
+
u0 || [G.prop].some((X0) => R.includes(X0)) && (Q[Y] = e0);
|
|
10089
10089
|
}
|
|
10090
|
-
}),
|
|
10090
|
+
}), Q;
|
|
10091
10091
|
}, y = (R) => {
|
|
10092
10092
|
const j = R == null ? void 0 : R.type;
|
|
10093
10093
|
var k = [];
|
|
10094
10094
|
return j && (k = [], R.formItemFlag && (k = k.concat(["name", "defaultValue"]))), k;
|
|
10095
10095
|
}, b = (R) => {
|
|
10096
|
-
J0(R, tt.state) &&
|
|
10096
|
+
J0(R, tt.state) && wt(R == null ? void 0 : R.state) && (R.readonly = S0(() => ft(R.state) === ie.readonly), R.disabled = S0(() => ft(R.state) === ie.disabled), R.hidden = S0(() => ft(R.state) === ie.hidden), R.custom = S0(() => ft(R.state) === ie.custom));
|
|
10097
10097
|
}, B = () => {
|
|
10098
10098
|
var R = y(t) || [], j = l([G.icon, G.hook, G.variable, G.prop, G.dataObject], !1, (k) => !R.includes(k) && (!(r != null && r.fn_attr) || (r == null ? void 0 : r.fn_attr(k))));
|
|
10099
10099
|
return b(j), sn(j);
|
|
10100
|
-
}, m = r != null && r.s_attr ? S0(() => B()) :
|
|
10100
|
+
}, m = r != null && r.s_attr ? S0(() => B()) : ct(), F = () => {
|
|
10101
10101
|
var R = l([G.placer, G.placerHook]);
|
|
10102
10102
|
return sn(R);
|
|
10103
|
-
}, C = r != null && r.s_extendAttr ? S0(() => F()) :
|
|
10103
|
+
}, C = r != null && r.s_extendAttr ? S0(() => F()) : ct(), _ = r != null && r.s_events ? S0(() => l([G.event])) : ct(), S = r != null && r.s_fieldName ? S0({
|
|
10104
10104
|
get: () => o(tt.name),
|
|
10105
10105
|
set: (R) => {
|
|
10106
10106
|
a(tt.name, R);
|
|
10107
10107
|
}
|
|
10108
|
-
}) :
|
|
10109
|
-
var j, k,
|
|
10110
|
-
if (!J0(t == null ? void 0 : t.options,
|
|
10108
|
+
}) : ct(), T = (R) => K.isComplexValue(t == null ? void 0 : t.options[R]), L = r != null && r.s_defaultValue ? S0(() => {
|
|
10109
|
+
var j, k, Q, t0, Y;
|
|
10110
|
+
if (!J0(t == null ? void 0 : t.options, xt.defaultValue))
|
|
10111
10111
|
return;
|
|
10112
|
-
let R = o(
|
|
10113
|
-
if (J0(t == null ? void 0 : t.options, tt.optionItems) && !T(
|
|
10114
|
-
const e0 = o(
|
|
10115
|
-
(e0 || Array.isArray(R)) && ((j =
|
|
10112
|
+
let R = o(xt.defaultValue);
|
|
10113
|
+
if (J0(t == null ? void 0 : t.options, tt.optionItems) && !T(xt.defaultValue)) {
|
|
10114
|
+
const e0 = o(xt.multiple);
|
|
10115
|
+
(e0 || Array.isArray(R)) && ((j = c0(R)) == null ? void 0 : j.length) <= 0 ? R = (Q = (k = ft(X == null ? void 0 : X.value)) == null ? void 0 : k.filter((u0) => u0 == null ? void 0 : u0.isdefault)) == null ? void 0 : Q.map((u0) => u0 == null ? void 0 : u0.value) : (!e0 || !Array.isArray(R)) && yt(R) && (R = (Y = (t0 = ft(X == null ? void 0 : X.value)) == null ? void 0 : t0.find((u0) => u0 == null ? void 0 : u0.isdefault)) == null ? void 0 : Y.value);
|
|
10116
10116
|
}
|
|
10117
10117
|
return R;
|
|
10118
|
-
}) :
|
|
10118
|
+
}) : ct(), w = () => L.value !== void 0, D = r != null && r.s_slots ? S0(() => {
|
|
10119
10119
|
var R = l([G.slot]);
|
|
10120
10120
|
return Object.values(R);
|
|
10121
|
-
}) :
|
|
10121
|
+
}) : ct(), q = r != null && r.s_slots ? S0(() => {
|
|
10122
10122
|
var R = l([G.slot], !0);
|
|
10123
10123
|
return Object.values(R);
|
|
10124
|
-
}) :
|
|
10124
|
+
}) : ct(), N = (R) => {
|
|
10125
10125
|
a(tt.optionItems, lx(R));
|
|
10126
|
-
},
|
|
10126
|
+
}, V = (R) => {
|
|
10127
10127
|
if (J0(m.value, R)) {
|
|
10128
10128
|
var j = m.value[R];
|
|
10129
|
-
return
|
|
10129
|
+
return wt(j) ? j : S0(() => J(m.value[R]));
|
|
10130
10130
|
} else if (J0(C.value, R)) {
|
|
10131
10131
|
var k = C.value[R];
|
|
10132
|
-
return
|
|
10132
|
+
return wt(k) ? k : S0(() => J(C.value[R]));
|
|
10133
10133
|
} else {
|
|
10134
|
-
var
|
|
10135
|
-
return
|
|
10134
|
+
var Q = o(R);
|
|
10135
|
+
return wt(Q) ? Q : S0(() => J(Q));
|
|
10136
10136
|
}
|
|
10137
|
-
},
|
|
10137
|
+
}, J = (R) => {
|
|
10138
10138
|
if (R == null)
|
|
10139
10139
|
return R;
|
|
10140
|
-
if (
|
|
10141
|
-
return
|
|
10142
|
-
var j =
|
|
10143
|
-
return ei(j, (k,
|
|
10144
|
-
K.needCalcValue(t0) && (k[
|
|
10140
|
+
if (wt(R))
|
|
10141
|
+
return ft(R);
|
|
10142
|
+
var j = Dt(R);
|
|
10143
|
+
return ei(j, (k, Q, t0) => {
|
|
10144
|
+
K.needCalcValue(t0) && (k[Q] = K.getValue(t0, !0, !s, i));
|
|
10145
10145
|
}), j === void 0 ? null : sn(j);
|
|
10146
10146
|
};
|
|
10147
10147
|
let X = null;
|
|
10148
|
-
r != null && r.s_optionItems && J0(t == null ? void 0 : t.options, tt.optionItems) && (X =
|
|
10149
|
-
const
|
|
10148
|
+
r != null && r.s_optionItems && J0(t == null ? void 0 : t.options, tt.optionItems) && (X = V(tt.optionItems));
|
|
10149
|
+
const d0 = (R) => !!R.isdefault, a0 = (R) => {
|
|
10150
10150
|
if (!Array.isArray(X == null ? void 0 : X.value))
|
|
10151
10151
|
return;
|
|
10152
10152
|
let j = [];
|
|
10153
10153
|
return xa(X == null ? void 0 : X.value, "children", (k) => R(k), (k) => {
|
|
10154
10154
|
j.push(k);
|
|
10155
10155
|
}), j;
|
|
10156
|
-
}, o0 = r != null && r.s_optionItems ? S0(() => a0(
|
|
10156
|
+
}, o0 = r != null && r.s_optionItems ? S0(() => a0(d0)) : ct(), h0 = r != null && r.s_optionItems ? S0(() => {
|
|
10157
10157
|
var R, j;
|
|
10158
10158
|
if (Array.isArray(X == null ? void 0 : X.value)) {
|
|
10159
10159
|
const k = (R = o0 == null ? void 0 : o0.value) == null ? void 0 : R.length;
|
|
10160
10160
|
return k ? (j = o0 == null ? void 0 : o0.value) == null ? void 0 : j[k - 1] : void 0;
|
|
10161
10161
|
}
|
|
10162
|
-
}) :
|
|
10162
|
+
}) : ct(), I = r != null && r.s_optionItems ? S0(() => {
|
|
10163
10163
|
var R;
|
|
10164
10164
|
if (Array.isArray(X == null ? void 0 : X.value)) {
|
|
10165
|
-
const j = (R = X == null ? void 0 : X.value) == null ? void 0 : R.findIndex((k) =>
|
|
10165
|
+
const j = (R = X == null ? void 0 : X.value) == null ? void 0 : R.findIndex((k) => d0(k));
|
|
10166
10166
|
return !isNaN(j) && j > -1 ? j : 0;
|
|
10167
10167
|
}
|
|
10168
10168
|
return 0;
|
|
10169
|
-
}) :
|
|
10170
|
-
const j =
|
|
10169
|
+
}) : ct(0), H = (R) => {
|
|
10170
|
+
const j = ft(o(xt.valueKey, !1));
|
|
10171
10171
|
return a0((k) => {
|
|
10172
|
-
var
|
|
10173
|
-
return
|
|
10172
|
+
var Q = ue(R, !0);
|
|
10173
|
+
return Q == null ? void 0 : Q.includes(k == null ? void 0 : k[j]);
|
|
10174
10174
|
});
|
|
10175
10175
|
}, $ = (R) => {
|
|
10176
10176
|
var t0;
|
|
10177
|
-
const j =
|
|
10178
|
-
return o(
|
|
10177
|
+
const j = ft(o(xt.labelKey, !1)), k = (t0 = H(R)) == null ? void 0 : t0.map((Y) => Y == null ? void 0 : Y[j]);
|
|
10178
|
+
return o(xt.multiple, !1) ? k : k == null ? void 0 : k[0];
|
|
10179
10179
|
}, z = (R) => {
|
|
10180
10180
|
var t0;
|
|
10181
|
-
const j =
|
|
10182
|
-
return o(
|
|
10183
|
-
},
|
|
10184
|
-
|
|
10185
|
-
|
|
10181
|
+
const j = ft(o(xt.valueKey, !1)), k = (t0 = H(R)) == null ? void 0 : t0.map((Y) => Y == null ? void 0 : Y[j]);
|
|
10182
|
+
return o(xt.multiple, !1) ? k : k == null ? void 0 : k[0];
|
|
10183
|
+
}, p0 = (R) => {
|
|
10184
|
+
var j;
|
|
10185
|
+
return (j = ue($(R), !0)) == null ? void 0 : j.join(",");
|
|
10186
|
+
}, i0 = [], m0 = () => {
|
|
10187
|
+
t != null && t.formItemFlag && i0.splice(0, i0.length);
|
|
10188
|
+
}, r0 = (R) => {
|
|
10186
10189
|
var j = o("required", !0);
|
|
10187
|
-
const k =
|
|
10190
|
+
const k = c0(j == null ? void 0 : j.options);
|
|
10188
10191
|
if (k != null && k.enable)
|
|
10189
10192
|
return {
|
|
10190
10193
|
name: "required",
|
|
@@ -10192,96 +10195,96 @@ function dl(t, e, r, n) {
|
|
|
10192
10195
|
required: !0,
|
|
10193
10196
|
//trigger: [],
|
|
10194
10197
|
//trigger: ['blur'], /* 去掉change事件触发校验,change事件触发时formModel数据尚未更新,导致radio/checkbox必填校验出错!! */
|
|
10195
|
-
validator: (
|
|
10196
|
-
var e0 =
|
|
10197
|
-
ne[
|
|
10198
|
+
validator: (Q, t0, Y) => {
|
|
10199
|
+
var e0 = ut(k == null ? void 0 : k.errorMsg, { ...k, label: R });
|
|
10200
|
+
ne[x0.required](Q, t0, Y, k == null ? void 0 : k.forceMatch, e0);
|
|
10198
10201
|
}
|
|
10199
10202
|
};
|
|
10200
|
-
},
|
|
10203
|
+
}, k0 = (R) => {
|
|
10201
10204
|
var j = o("rangeValidate", !0);
|
|
10202
|
-
const k =
|
|
10205
|
+
const k = c0(j == null ? void 0 : j.options);
|
|
10203
10206
|
if (!(k != null && k.enable))
|
|
10204
10207
|
return;
|
|
10205
|
-
let { minValue:
|
|
10206
|
-
var
|
|
10207
|
-
if (
|
|
10208
|
+
let { minValue: Q, maxValue: t0, includeMaxValue: Y, includeMinValue: e0 } = k, u0 = "range";
|
|
10209
|
+
var y0 = (E0) => {
|
|
10210
|
+
if (yt(E0))
|
|
10208
10211
|
return !0;
|
|
10209
|
-
const
|
|
10210
|
-
return isNaN(
|
|
10212
|
+
const g0 = parseFloat(E0), X0 = parseFloat(Q), st = parseFloat(t0), bt = () => isNaN(X0) || (e0 ? g0 >= X0 : g0 > X0), it = () => isNaN(st) || (Y ? g0 <= st : g0 < st);
|
|
10213
|
+
return isNaN(g0) || bt() && it();
|
|
10211
10214
|
};
|
|
10212
10215
|
return {
|
|
10213
|
-
name:
|
|
10216
|
+
name: u0,
|
|
10214
10217
|
label: R,
|
|
10215
10218
|
trigger: [],
|
|
10216
|
-
validator: (
|
|
10217
|
-
var
|
|
10218
|
-
ne[
|
|
10219
|
+
validator: (E0, g0, X0) => {
|
|
10220
|
+
var st = ut(k == null ? void 0 : k.errorMsg, { ...k, label: R }), bt = `${Q} ${e0 ? "<=" : "<"} X ${Y ? "<=" : "<"} ${t0}`;
|
|
10221
|
+
ne[u0](E0, g0, X0, k == null ? void 0 : k.forceMatch, st || bt, y0);
|
|
10219
10222
|
}
|
|
10220
10223
|
};
|
|
10221
|
-
},
|
|
10224
|
+
}, rt = (R) => {
|
|
10222
10225
|
var j = o("expValidate", !0);
|
|
10223
|
-
const k =
|
|
10226
|
+
const k = c0(j == null ? void 0 : j.options);
|
|
10224
10227
|
if (!(k != null && k.enable))
|
|
10225
10228
|
return;
|
|
10226
|
-
let
|
|
10229
|
+
let Q = k == null ? void 0 : k.expression, t0 = Q;
|
|
10227
10230
|
if (t0) {
|
|
10228
|
-
var
|
|
10231
|
+
var Y = ne[t0], e0 = !!Y;
|
|
10229
10232
|
return e0 || (t0 = "regExp"), {
|
|
10230
10233
|
name: t0,
|
|
10231
10234
|
label: R,
|
|
10232
10235
|
trigger: [],
|
|
10233
|
-
validator: (
|
|
10234
|
-
var
|
|
10235
|
-
e0 ? ne[t0](
|
|
10236
|
+
validator: (u0, y0, E0) => {
|
|
10237
|
+
var g0 = ut(k == null ? void 0 : k.errorMsg, { ...k, label: R });
|
|
10238
|
+
e0 ? ne[t0](u0, y0, E0, k == null ? void 0 : k.forceMatch, g0) : ne[t0](u0, y0, E0, k == null ? void 0 : k.forceMatch, g0, Q);
|
|
10236
10239
|
}
|
|
10237
10240
|
};
|
|
10238
10241
|
}
|
|
10239
|
-
},
|
|
10242
|
+
}, It = (R) => {
|
|
10240
10243
|
var j = o("fnValidate", !0);
|
|
10241
|
-
const k =
|
|
10244
|
+
const k = c0(j == null ? void 0 : j.options);
|
|
10242
10245
|
if (!(k != null && k.enable) || !k.func)
|
|
10243
10246
|
return;
|
|
10244
|
-
const { instance:
|
|
10247
|
+
const { instance: Q } = nn(n), t0 = k == null ? void 0 : k.errorMsg;
|
|
10245
10248
|
return {
|
|
10246
10249
|
name: "userDefine",
|
|
10247
10250
|
label: R,
|
|
10248
10251
|
trigger: [],
|
|
10249
|
-
validator: (
|
|
10250
|
-
|
|
10251
|
-
rule:
|
|
10252
|
+
validator: (Y, e0, u0) => {
|
|
10253
|
+
kt(k.func, {
|
|
10254
|
+
rule: Y,
|
|
10252
10255
|
value: e0,
|
|
10253
|
-
callback: (
|
|
10254
|
-
mo(!
|
|
10256
|
+
callback: (y0) => {
|
|
10257
|
+
mo(!y0, Y, u0, t0, k == null ? void 0 : k.forceMatch);
|
|
10255
10258
|
},
|
|
10256
10259
|
errorMsg: t0,
|
|
10257
|
-
ctx:
|
|
10260
|
+
ctx: Q
|
|
10258
10261
|
});
|
|
10259
10262
|
}
|
|
10260
10263
|
};
|
|
10261
|
-
},
|
|
10264
|
+
}, dt = () => {
|
|
10262
10265
|
if (t != null && t.formItemFlag && !o("hidden")) {
|
|
10263
|
-
|
|
10266
|
+
m0();
|
|
10264
10267
|
var R = o("label"), j = [
|
|
10265
|
-
|
|
10266
|
-
O0(R),
|
|
10268
|
+
r0(R),
|
|
10267
10269
|
rt(R),
|
|
10268
|
-
|
|
10270
|
+
It(R),
|
|
10271
|
+
k0(R)
|
|
10269
10272
|
];
|
|
10270
10273
|
j == null || j.forEach((k) => {
|
|
10271
|
-
k &&
|
|
10272
|
-
}),
|
|
10274
|
+
k && i0.push(k);
|
|
10275
|
+
}), C0();
|
|
10273
10276
|
}
|
|
10274
|
-
},
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
+
}, O0 = () => {
|
|
10278
|
+
i0 && i0.forEach((R) => {
|
|
10279
|
+
pt(R);
|
|
10277
10280
|
});
|
|
10278
|
-
},
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
+
}, C0 = () => {
|
|
10282
|
+
i0 && i0.forEach((R) => {
|
|
10283
|
+
nt(R);
|
|
10281
10284
|
});
|
|
10282
|
-
},
|
|
10285
|
+
}, pt = (R) => {
|
|
10283
10286
|
R.trigger && R.trigger.splice(0, R.trigger.length);
|
|
10284
|
-
},
|
|
10287
|
+
}, nt = (R) => {
|
|
10285
10288
|
R.trigger && (R.trigger.push("blur"), R.name !== "required" && R.trigger.push("change"));
|
|
10286
10289
|
};
|
|
10287
10290
|
return {
|
|
@@ -10301,6 +10304,7 @@ function dl(t, e, r, n) {
|
|
|
10301
10304
|
getCheckedOptionLabels: $,
|
|
10302
10305
|
getCheckedOptionValues: z,
|
|
10303
10306
|
getCheckedOptionItems: H,
|
|
10307
|
+
getCheckedOptionText: p0,
|
|
10304
10308
|
// getStaticOptionItems,
|
|
10305
10309
|
//getOptionItems,
|
|
10306
10310
|
setOptionItems: N,
|
|
@@ -10310,23 +10314,23 @@ function dl(t, e, r, n) {
|
|
|
10310
10314
|
getWidgetOptionByPropValue: f,
|
|
10311
10315
|
getFieldOptions: o,
|
|
10312
10316
|
setFieldOptions: a,
|
|
10313
|
-
rules:
|
|
10314
|
-
buildRules:
|
|
10315
|
-
clearRules:
|
|
10316
|
-
disableChangeRule:
|
|
10317
|
-
disableChangeValidate:
|
|
10318
|
-
enableChangeRule:
|
|
10319
|
-
enableChangeValidate:
|
|
10317
|
+
rules: i0,
|
|
10318
|
+
buildRules: dt,
|
|
10319
|
+
clearRules: m0,
|
|
10320
|
+
disableChangeRule: pt,
|
|
10321
|
+
disableChangeValidate: O0,
|
|
10322
|
+
enableChangeRule: nt,
|
|
10323
|
+
enableChangeValidate: C0,
|
|
10320
10324
|
singleOption: x,
|
|
10321
10325
|
watchOption: p
|
|
10322
10326
|
};
|
|
10323
10327
|
}
|
|
10324
10328
|
function pl(t, e) {
|
|
10325
10329
|
const { getWidgetOptionByPropValue: r } = dl({ name: t.name, options: t }, e), n = (l, y) => {
|
|
10326
|
-
var b =
|
|
10330
|
+
var b = $0(ut(q0(l), y));
|
|
10327
10331
|
if (b)
|
|
10328
10332
|
return xx(b);
|
|
10329
|
-
}, s = (l) => n(t.headers, l), i = (l) => n(t.params, l), o = (l) =>
|
|
10333
|
+
}, s = (l) => n(t.headers, l), i = (l) => n(t.params, l), o = (l) => ut(t.url, l), a = () => ({
|
|
10330
10334
|
timeout: t.timeout,
|
|
10331
10335
|
withCredentials: t.withCredentials,
|
|
10332
10336
|
maxBodyLength: t.maxBodyLength,
|
|
@@ -10356,13 +10360,13 @@ function pl(t, e) {
|
|
|
10356
10360
|
}
|
|
10357
10361
|
);
|
|
10358
10362
|
}, x = (l) => {
|
|
10359
|
-
var y =
|
|
10363
|
+
var y = ut(t.shouldFetch, l);
|
|
10360
10364
|
return Dr(t.shouldFetch) || y + "" == "true" || y + "" == "1";
|
|
10361
10365
|
}, p = (l) => {
|
|
10362
10366
|
if (t.data == null || t.data === void 0)
|
|
10363
10367
|
return "";
|
|
10364
10368
|
var y = wr(t.data);
|
|
10365
|
-
return y ?
|
|
10369
|
+
return y ? $0(ut(q0(t.data), l)) : ut(t.data + "", l);
|
|
10366
10370
|
}, d = (l) => {
|
|
10367
10371
|
if (!x(l))
|
|
10368
10372
|
return;
|
|
@@ -10396,12 +10400,12 @@ function pl(t, e) {
|
|
|
10396
10400
|
function vl(t) {
|
|
10397
10401
|
const e = t == null ? void 0 : t.pageConfig, r = () => {
|
|
10398
10402
|
var v;
|
|
10399
|
-
return
|
|
10403
|
+
return c0((v = e == null ? void 0 : e.schema) == null ? void 0 : v.value);
|
|
10400
10404
|
}, n = (v, f, l) => {
|
|
10401
10405
|
var y = K.getEnable(l == null ? void 0 : l[v]), b = K.getEnable(f == null ? void 0 : f[v]);
|
|
10402
10406
|
return !b && y && f && (f[v] = l == null ? void 0 : l[v]), f;
|
|
10403
10407
|
}, s = (v, f) => {
|
|
10404
|
-
let l =
|
|
10408
|
+
let l = Dt(v);
|
|
10405
10409
|
["didFetch", "willFetch", "errorFetch", "fitFetch"].forEach((b) => {
|
|
10406
10410
|
l = n(b, l, e);
|
|
10407
10411
|
});
|
|
@@ -10410,16 +10414,16 @@ function vl(t) {
|
|
|
10410
10414
|
}, i = () => {
|
|
10411
10415
|
let v = {};
|
|
10412
10416
|
const f = qr.decryptFromUrl(window.location.href);
|
|
10413
|
-
v = Object.assign(v, { [
|
|
10417
|
+
v = Object.assign(v, { [_t.urlParams]: f });
|
|
10414
10418
|
const l = t == null ? void 0 : t.globalConfig;
|
|
10415
|
-
return v = Object.assign(v, { [
|
|
10419
|
+
return v = Object.assign(v, { [_t.compParams]: l }), v;
|
|
10416
10420
|
}, o = (v) => {
|
|
10417
10421
|
var y, b;
|
|
10418
10422
|
let f = {};
|
|
10419
10423
|
f = Object.assign(f, { schemaParams: v }), Object.assign(f, i()), f = Object.assign(f, { cookies: li.getAll() });
|
|
10420
10424
|
var l = {};
|
|
10421
10425
|
return (b = (y = r == null ? void 0 : r()) == null ? void 0 : y.filter((B) => B.protocal === en.VALUE)) == null || b.forEach((B) => {
|
|
10422
|
-
l = Object.assign(l, { [B.name]:
|
|
10426
|
+
l = Object.assign(l, { [B.name]: ut(String(B == null ? void 0 : B.initialData), f) });
|
|
10423
10427
|
}), f = Object.assign(f, { vars: l }), f;
|
|
10424
10428
|
}, a = (v) => {
|
|
10425
10429
|
var f;
|
|
@@ -10432,16 +10436,16 @@ function vl(t) {
|
|
|
10432
10436
|
}, c = (v, f) => {
|
|
10433
10437
|
if (!v)
|
|
10434
10438
|
return;
|
|
10435
|
-
const l = i(), y = l[
|
|
10436
|
-
if (v ==
|
|
10439
|
+
const l = i(), y = l[_t.urlParams], b = l[_t.compParams];
|
|
10440
|
+
if (v == _t.urlParams)
|
|
10437
10441
|
return y;
|
|
10438
|
-
if (v ==
|
|
10442
|
+
if (v == _t.compParams)
|
|
10439
10443
|
return b;
|
|
10440
10444
|
const B = a(v), m = B == null ? void 0 : B.protocal, F = o(f);
|
|
10441
10445
|
let C = null;
|
|
10442
10446
|
switch (m) {
|
|
10443
10447
|
case en.VALUE:
|
|
10444
|
-
C =
|
|
10448
|
+
C = ut(String(B == null ? void 0 : B.initialData), F), fa(C) && (C = $0(C));
|
|
10445
10449
|
break;
|
|
10446
10450
|
case en.REMOTE:
|
|
10447
10451
|
C = B ? s(B, F) : null;
|
|
@@ -10479,7 +10483,7 @@ function vl(t) {
|
|
|
10479
10483
|
p(v, f, l).then((B) => {
|
|
10480
10484
|
var m = {};
|
|
10481
10485
|
B.forEach((F) => {
|
|
10482
|
-
m =
|
|
10486
|
+
m = mt(m, F, !0);
|
|
10483
10487
|
}), y(m);
|
|
10484
10488
|
});
|
|
10485
10489
|
}),
|
|
@@ -10505,20 +10509,20 @@ const mn = (t) => typeof (t == null ? void 0 : t.value) == "boolean" ? !1 : null
|
|
|
10505
10509
|
var e = t == null ? void 0 : t.instance, r = ((i = (s = e == null ? void 0 : e.exposed) == null ? void 0 : s.getRowScope) == null ? void 0 : i.call(s)) || ((o = e == null ? void 0 : e.provides) == null ? void 0 : o.rowScope);
|
|
10506
10510
|
const n = Object.assign({}, (g = (a = e == null ? void 0 : e.exposed) == null ? void 0 : a.getFormData) == null ? void 0 : g.call(a), t == null ? void 0 : t.formData);
|
|
10507
10511
|
return {
|
|
10508
|
-
[
|
|
10509
|
-
[
|
|
10512
|
+
[F0.sysVar]: {
|
|
10513
|
+
[_t.rowScope]: r
|
|
10510
10514
|
// [dataVar.outerParams]: _outerParams
|
|
10511
10515
|
},
|
|
10512
|
-
[
|
|
10516
|
+
[F0.sysData]: n
|
|
10513
10517
|
};
|
|
10514
10518
|
}, Bl = (t, e, r) => {
|
|
10515
10519
|
const { remoteReadSchemaData: n } = vl(r);
|
|
10516
|
-
var s = fi(t), i = Fa(s), o = i.filter((x) => [
|
|
10520
|
+
var s = fi(t), i = Fa(s), o = i.filter((x) => [F0.schema.toString()].includes(x.root)), a = o == null ? void 0 : o.map((x) => {
|
|
10517
10521
|
var p, d;
|
|
10518
10522
|
return (d = (p = x == null ? void 0 : x.properties) == null ? void 0 : p[0]) == null ? void 0 : d.toString();
|
|
10519
10523
|
});
|
|
10520
10524
|
let g = null;
|
|
10521
|
-
e && (g =
|
|
10525
|
+
e && (g = $0(e));
|
|
10522
10526
|
var c = n(a, g || {});
|
|
10523
10527
|
return c;
|
|
10524
10528
|
}, bn = (t, e, r, n) => {
|
|
@@ -10528,31 +10532,31 @@ const mn = (t) => typeof (t == null ? void 0 : t.value) == "boolean" ? !1 : null
|
|
|
10528
10532
|
let s = t;
|
|
10529
10533
|
const { updateFomula: i } = An(), { variableWithNameExp: o } = _a();
|
|
10530
10534
|
if (n) {
|
|
10531
|
-
var a = e == null ? void 0 : e[
|
|
10532
|
-
a && (s = i(s, r || {}, (c, x) =>
|
|
10535
|
+
var a = e == null ? void 0 : e[F0.sysData];
|
|
10536
|
+
a && (s = i(s, r || {}, (c, x) => Bt(x) ? null : `${(a == null ? void 0 : a[x]) || ""}`)), (g = zt(e == null ? void 0 : e[F0.sysVar])) == null || g.forEach((c) => {
|
|
10533
10537
|
var x;
|
|
10534
|
-
a = (x = e == null ? void 0 : e[
|
|
10538
|
+
a = (x = e == null ? void 0 : e[F0.sysVar]) == null ? void 0 : x[c], a && (s = i(s, a, (p, d) => Bt(d) ? null : d, o("sysVar." + c)));
|
|
10535
10539
|
});
|
|
10536
10540
|
} else
|
|
10537
|
-
return s = i(s, r || {}, (c, x) => x ? `${
|
|
10541
|
+
return s = i(s, r || {}, (c, x) => x ? `${F0.sysData}.${x}` : (e || (e = {}), e[F0.sysData] || (e[F0.sysData] = {}), e[F0.sysData][c] === void 0 && (e[F0.sysData][c] = null), `${F0.sysData}.${c}`)), s;
|
|
10538
10542
|
return s;
|
|
10539
10543
|
}, gl = (t, e) => {
|
|
10540
10544
|
if (K.isFormula(t)) {
|
|
10541
|
-
const { transFormula: o } = An(), g = zn(e)[
|
|
10545
|
+
const { transFormula: o } = An(), g = zn(e)[F0.sysData];
|
|
10542
10546
|
let c = Nn(g, e);
|
|
10543
|
-
var r =
|
|
10544
|
-
return
|
|
10547
|
+
var r = c0(t), n = c0(r == null ? void 0 : r.value), s = o(n == null ? void 0 : n.complexValue, c), i = yl(s, g);
|
|
10548
|
+
return c0(i);
|
|
10545
10549
|
}
|
|
10546
10550
|
}, bo = (t, e) => {
|
|
10547
10551
|
const r = zn(e);
|
|
10548
|
-
let n = Nn(r[
|
|
10552
|
+
let n = Nn(r[F0.sysData], e);
|
|
10549
10553
|
var s = bn(t == null ? void 0 : t.expr, r, n, !1), i = bn(t == null ? void 0 : t.params, r, n, !0);
|
|
10550
10554
|
const o = Bl(s, i, e);
|
|
10551
10555
|
var a = {
|
|
10552
|
-
[
|
|
10553
|
-
[
|
|
10556
|
+
[F0.sysFunc]: Eo,
|
|
10557
|
+
[F0.schema]: o,
|
|
10554
10558
|
...r
|
|
10555
|
-
}, g =
|
|
10559
|
+
}, g = c0(El(s, a));
|
|
10556
10560
|
return g;
|
|
10557
10561
|
}, El = (t, e) => {
|
|
10558
10562
|
if (Dr(t))
|
|
@@ -10564,7 +10568,7 @@ const mn = (t) => typeof (t == null ? void 0 : t.value) == "boolean" ? !1 : null
|
|
|
10564
10568
|
return r;
|
|
10565
10569
|
}, yl = (t, e) => {
|
|
10566
10570
|
const { state: r } = ii(async () => {
|
|
10567
|
-
const n = await import("./expression-
|
|
10571
|
+
const n = await import("./expression-78a5f136.js").then((s) => s.v);
|
|
10568
10572
|
return n == null ? void 0 : n.getScriptResult(t, e || {});
|
|
10569
10573
|
}, null);
|
|
10570
10574
|
return r;
|
|
@@ -10579,18 +10583,18 @@ const mn = (t) => typeof (t == null ? void 0 : t.value) == "boolean" ? !1 : null
|
|
|
10579
10583
|
return bo(r, e);
|
|
10580
10584
|
}
|
|
10581
10585
|
}, Fl = (t, e = !1, r) => {
|
|
10582
|
-
var n =
|
|
10583
|
-
return K.isVariable(t) && !(i != null && i.complexType) ? e ? ml(t, r) : t == null ? void 0 : t.value : K.isFormula(t) ? e ? gl(t, r) : mn() : K.isSchemaData(t) ? e ? bl(t, r) : mn() :
|
|
10586
|
+
var n = c0(t), s = n == null ? void 0 : n.value, i = c0(s);
|
|
10587
|
+
return K.isVariable(t) && !(i != null && i.complexType) ? e ? ml(t, r) : t == null ? void 0 : t.value : K.isFormula(t) ? e ? gl(t, r) : mn() : K.isSchemaData(t) ? e ? bl(t, r) : mn() : c0(s);
|
|
10584
10588
|
}, Al = (t, e = !1, r = !1, n) => {
|
|
10585
10589
|
if (!K.isComplex(t))
|
|
10586
10590
|
return t;
|
|
10587
10591
|
if (!e && !K.getEnable(t))
|
|
10588
10592
|
return mn();
|
|
10589
|
-
var s =
|
|
10590
|
-
return !K.isVariable(t) && i === null ? null :
|
|
10593
|
+
var s = c0(t), i = s == null ? void 0 : s.value;
|
|
10594
|
+
return !K.isVariable(t) && i === null ? null : c0(Fl(t, r, n));
|
|
10591
10595
|
}, Cl = (t, e) => {
|
|
10592
10596
|
const r = zn(e);
|
|
10593
|
-
let n = Nn(r[
|
|
10597
|
+
let n = Nn(r[F0.sysData], e);
|
|
10594
10598
|
return bn(t, r, n, !0);
|
|
10595
10599
|
};
|
|
10596
10600
|
class K {
|
|
@@ -10619,7 +10623,7 @@ class K {
|
|
|
10619
10623
|
}
|
|
10620
10624
|
static isComplexValue(e) {
|
|
10621
10625
|
var r;
|
|
10622
|
-
return K.hasComplexValue(e) && !!((r =
|
|
10626
|
+
return K.hasComplexValue(e) && !!((r = c0(e == null ? void 0 : e.value)) != null && r.complexType);
|
|
10623
10627
|
}
|
|
10624
10628
|
static buildVariablePropValue(e, r) {
|
|
10625
10629
|
return {
|
|
@@ -10632,11 +10636,11 @@ class K {
|
|
|
10632
10636
|
}
|
|
10633
10637
|
static getType(e) {
|
|
10634
10638
|
var r;
|
|
10635
|
-
return (r =
|
|
10639
|
+
return (r = c0(e)) == null ? void 0 : r.type;
|
|
10636
10640
|
}
|
|
10637
10641
|
static getOptions(e) {
|
|
10638
10642
|
var r;
|
|
10639
|
-
return (r =
|
|
10643
|
+
return (r = c0(e)) == null ? void 0 : r.options;
|
|
10640
10644
|
}
|
|
10641
10645
|
static needCalcValue(e) {
|
|
10642
10646
|
return this.isFormula(e) || this.isVariable(e) || this.isSchemaData(e);
|
|
@@ -10647,64 +10651,64 @@ class K {
|
|
|
10647
10651
|
//#region schemaData
|
|
10648
10652
|
static isSchemaData(e) {
|
|
10649
10653
|
var r;
|
|
10650
|
-
return this.hasComplexValue(e) && ((r =
|
|
10654
|
+
return this.hasComplexValue(e) && ((r = c0(e == null ? void 0 : e.value)) == null ? void 0 : r.complexType) === G.schemaData;
|
|
10651
10655
|
}
|
|
10652
10656
|
static clearSchemaData(e) {
|
|
10653
10657
|
var n;
|
|
10654
|
-
var r =
|
|
10655
|
-
return this.isComplex(e) ? (n =
|
|
10658
|
+
var r = Dt(e);
|
|
10659
|
+
return this.isComplex(e) ? (n = c0(r)) == null ? void 0 : n.value : r;
|
|
10656
10660
|
}
|
|
10657
10661
|
static setSchemaData(e, r) {
|
|
10658
|
-
var n =
|
|
10662
|
+
var n = Dt(e), s = new Zn(G.schemaData, r);
|
|
10659
10663
|
return this.isComplex(n) ? n = s : n = new K(G.prop, s), n;
|
|
10660
10664
|
}
|
|
10661
10665
|
static getSchemaData(e) {
|
|
10662
10666
|
var n;
|
|
10663
|
-
var r =
|
|
10664
|
-
return (n =
|
|
10667
|
+
var r = c0(e);
|
|
10668
|
+
return (n = c0(r == null ? void 0 : r.value)) == null ? void 0 : n.complexValue;
|
|
10665
10669
|
}
|
|
10666
10670
|
//#endregion
|
|
10667
10671
|
//#region formula
|
|
10668
10672
|
static isFormula(e) {
|
|
10669
10673
|
var r;
|
|
10670
|
-
return this.hasComplexValue(e) && ((r =
|
|
10674
|
+
return this.hasComplexValue(e) && ((r = c0(e == null ? void 0 : e.value)) == null ? void 0 : r.complexType) === G.formula;
|
|
10671
10675
|
}
|
|
10672
10676
|
static clearFormula(e) {
|
|
10673
10677
|
var n;
|
|
10674
|
-
var r =
|
|
10675
|
-
return this.isComplex(e) ? (n =
|
|
10678
|
+
var r = Dt(e);
|
|
10679
|
+
return this.isComplex(e) ? (n = c0(r)) == null ? void 0 : n.value : r;
|
|
10676
10680
|
}
|
|
10677
10681
|
static setFormula(e, r) {
|
|
10678
|
-
var n =
|
|
10682
|
+
var n = Dt(e), s = new Zn(G.formula, r);
|
|
10679
10683
|
return this.isComplex(n) ? n = s : n = new K(G.prop, s), n;
|
|
10680
10684
|
}
|
|
10681
10685
|
static getFormula(e) {
|
|
10682
10686
|
var n;
|
|
10683
|
-
var r =
|
|
10684
|
-
return
|
|
10687
|
+
var r = c0(e);
|
|
10688
|
+
return c0(r == null ? void 0 : r.value), (n = c0(e == null ? void 0 : e.value)) == null ? void 0 : n.complexValue;
|
|
10685
10689
|
}
|
|
10686
10690
|
static getFormulaRelatedField(e) {
|
|
10687
10691
|
const { getFormulaFields: r } = An();
|
|
10688
|
-
return r(
|
|
10692
|
+
return r(q0(c0(e)));
|
|
10689
10693
|
}
|
|
10690
10694
|
//#endregion
|
|
10691
10695
|
//#region variable
|
|
10692
10696
|
static isVariable(e) {
|
|
10693
10697
|
var r;
|
|
10694
|
-
return this.isComplex(e) && ((r =
|
|
10698
|
+
return this.isComplex(e) && ((r = c0(e)) == null ? void 0 : r.type) === G.variable;
|
|
10695
10699
|
}
|
|
10696
10700
|
static clearVariable(e) {
|
|
10697
10701
|
var n;
|
|
10698
|
-
var r =
|
|
10699
|
-
return this.isComplex(e) ? (n =
|
|
10702
|
+
var r = Dt(e);
|
|
10703
|
+
return this.isComplex(e) ? (n = c0(r)) == null ? void 0 : n.value : r;
|
|
10700
10704
|
}
|
|
10701
10705
|
static setVariable(e, r) {
|
|
10702
|
-
var n =
|
|
10706
|
+
var n = Dt(e);
|
|
10703
10707
|
return this.isComplex(n) ? new K(G.variable, n == null ? void 0 : n.value, n == null ? void 0 : n.options, r) : new K(G.variable, n || null, n == null ? void 0 : n.options, r);
|
|
10704
10708
|
}
|
|
10705
10709
|
static getVariable(e) {
|
|
10706
10710
|
var r;
|
|
10707
|
-
return (r =
|
|
10711
|
+
return (r = c0(e)) == null ? void 0 : r.variable;
|
|
10708
10712
|
}
|
|
10709
10713
|
//#endregion
|
|
10710
10714
|
//#region value
|
|
@@ -10719,9 +10723,9 @@ class K {
|
|
|
10719
10723
|
if (!this.isComplex(s))
|
|
10720
10724
|
this.set(e, r, n);
|
|
10721
10725
|
else {
|
|
10722
|
-
if (i === G.dataObject &&
|
|
10723
|
-
return
|
|
10724
|
-
|
|
10726
|
+
if (i === G.dataObject && K0(n))
|
|
10727
|
+
return c0(s).value = $0(n), !0;
|
|
10728
|
+
c0(s).value = n;
|
|
10725
10729
|
}
|
|
10726
10730
|
return !0;
|
|
10727
10731
|
}
|
|
@@ -10732,12 +10736,12 @@ class K {
|
|
|
10732
10736
|
if (!this.isComplex(e))
|
|
10733
10737
|
return !1;
|
|
10734
10738
|
var r = this.getOptions(e);
|
|
10735
|
-
return J0(r, "enable") ? (n =
|
|
10739
|
+
return J0(r, "enable") ? (n = c0(r)) == null ? void 0 : n.enable : !0;
|
|
10736
10740
|
}
|
|
10737
10741
|
static setEnable(e, r, n) {
|
|
10738
10742
|
var s = this.get(e, r);
|
|
10739
10743
|
if (this.isComplex(s)) {
|
|
10740
|
-
var i =
|
|
10744
|
+
var i = c0(s);
|
|
10741
10745
|
return i.options === void 0 && (i.options = {}), i.options.enable = n, !0;
|
|
10742
10746
|
}
|
|
10743
10747
|
return !1;
|
|
@@ -10748,7 +10752,7 @@ class Fo {
|
|
|
10748
10752
|
//用于获取属性列表
|
|
10749
10753
|
static getKeys() {
|
|
10750
10754
|
var e = new this();
|
|
10751
|
-
return
|
|
10755
|
+
return zt(e);
|
|
10752
10756
|
}
|
|
10753
10757
|
}
|
|
10754
10758
|
class Dl extends Fo {
|
|
@@ -10795,11 +10799,11 @@ class _l extends Dl {
|
|
|
10795
10799
|
/**
|
|
10796
10800
|
* 组件创建后调用事件
|
|
10797
10801
|
*/
|
|
10798
|
-
M(this, "created", new K(G.event, void 0, new
|
|
10802
|
+
M(this, "created", new K(G.event, void 0, new gt()));
|
|
10799
10803
|
/**
|
|
10800
10804
|
* 组件挂载完成后调用事件
|
|
10801
10805
|
*/
|
|
10802
|
-
M(this, "mounted", new K(G.event, void 0, new
|
|
10806
|
+
M(this, "mounted", new K(G.event, void 0, new gt()));
|
|
10803
10807
|
}
|
|
10804
10808
|
}
|
|
10805
10809
|
class Ln extends _l {
|
|
@@ -10846,26 +10850,26 @@ class Jl extends Ln {
|
|
|
10846
10850
|
M(this, "default", new K(G.slot, null, new Ao()));
|
|
10847
10851
|
}
|
|
10848
10852
|
}
|
|
10849
|
-
class zr extends
|
|
10853
|
+
class zr extends gt {
|
|
10850
10854
|
constructor(r) {
|
|
10851
10855
|
super(r);
|
|
10852
10856
|
M(this, "forceMatch", !0);
|
|
10853
10857
|
M(this, "errorMsg", "");
|
|
10854
|
-
|
|
10858
|
+
mt(this, r);
|
|
10855
10859
|
}
|
|
10856
10860
|
}
|
|
10857
10861
|
class Tl extends zr {
|
|
10858
10862
|
constructor(r) {
|
|
10859
10863
|
super(r);
|
|
10860
10864
|
M(this, "expression", "");
|
|
10861
|
-
|
|
10865
|
+
mt(this, r);
|
|
10862
10866
|
}
|
|
10863
10867
|
}
|
|
10864
10868
|
class Rl extends zr {
|
|
10865
10869
|
constructor(r) {
|
|
10866
10870
|
super(r);
|
|
10867
10871
|
M(this, "func", "");
|
|
10868
|
-
|
|
10872
|
+
mt(this, r);
|
|
10869
10873
|
}
|
|
10870
10874
|
}
|
|
10871
10875
|
class kl extends zr {
|
|
@@ -10875,15 +10879,15 @@ class kl extends zr {
|
|
|
10875
10879
|
M(this, "includeMinValue", !0);
|
|
10876
10880
|
M(this, "maxValue", 0);
|
|
10877
10881
|
M(this, "includeMaxValue", !0);
|
|
10878
|
-
|
|
10882
|
+
mt(this, r);
|
|
10879
10883
|
}
|
|
10880
10884
|
}
|
|
10881
|
-
class Ao extends
|
|
10885
|
+
class Ao extends gt {
|
|
10882
10886
|
constructor(r) {
|
|
10883
10887
|
super(r);
|
|
10884
10888
|
M(this, "allowDrag", !1);
|
|
10885
10889
|
M(this, "slotName");
|
|
10886
|
-
|
|
10890
|
+
mt(this, r);
|
|
10887
10891
|
}
|
|
10888
10892
|
}
|
|
10889
10893
|
class Ol extends Ln {
|
|
@@ -10956,19 +10960,19 @@ class Ol extends Ln {
|
|
|
10956
10960
|
/**
|
|
10957
10961
|
* 内容改变调用事件
|
|
10958
10962
|
*/
|
|
10959
|
-
M(this, "change", new K(G.event, void 0, new
|
|
10963
|
+
M(this, "change", new K(G.event, void 0, new gt()));
|
|
10960
10964
|
/**
|
|
10961
10965
|
* 获取焦点时调用事件
|
|
10962
10966
|
*/
|
|
10963
|
-
M(this, "focus", new K(G.event, void 0, new
|
|
10967
|
+
M(this, "focus", new K(G.event, void 0, new gt()));
|
|
10964
10968
|
/**
|
|
10965
10969
|
* 失去焦点时调用事件
|
|
10966
10970
|
*/
|
|
10967
|
-
M(this, "blur", new K(G.event, void 0, new
|
|
10971
|
+
M(this, "blur", new K(G.event, void 0, new gt()));
|
|
10968
10972
|
/**
|
|
10969
10973
|
* 点击控件时调用事件
|
|
10970
10974
|
*/
|
|
10971
|
-
M(this, "click", new K(G.event, void 0, new
|
|
10975
|
+
M(this, "click", new K(G.event, void 0, new gt()));
|
|
10972
10976
|
/**
|
|
10973
10977
|
* 输入时是否触发表单的校验
|
|
10974
10978
|
*/
|
|
@@ -11066,18 +11070,18 @@ const fe = class {
|
|
|
11066
11070
|
return "@widget-" + (e || "") + (r ? "-field" : "");
|
|
11067
11071
|
}
|
|
11068
11072
|
};
|
|
11069
|
-
let
|
|
11073
|
+
let b0 = fe;
|
|
11070
11074
|
/**
|
|
11071
11075
|
* 判断是否为容器组件
|
|
11072
11076
|
* @param widget 组件
|
|
11073
11077
|
* @returns 布尔值
|
|
11074
11078
|
*/
|
|
11075
|
-
M(
|
|
11079
|
+
M(b0, "isContainer", (e) => e.category === rn.container), /**
|
|
11076
11080
|
* 获取组件名称释义
|
|
11077
11081
|
* @param type 组件类型
|
|
11078
11082
|
* @returns 字符串
|
|
11079
11083
|
*/
|
|
11080
|
-
M(
|
|
11084
|
+
M(b0, "getWidgetTypeName", (e) => e ? B0.i18n2t(
|
|
11081
11085
|
`designer.widgetLabel.${e}`,
|
|
11082
11086
|
`extension.widgetLabel.${e}`
|
|
11083
11087
|
) : ""), /**
|
|
@@ -11085,10 +11089,10 @@ M(y0, "getWidgetTypeName", (e) => e ? g0.i18n2t(
|
|
|
11085
11089
|
* @param widget 组件
|
|
11086
11090
|
* @returns 字符串
|
|
11087
11091
|
*/
|
|
11088
|
-
M(
|
|
11092
|
+
M(b0, "getWidgetName", (e) => {
|
|
11089
11093
|
var r;
|
|
11090
11094
|
return e.type ? ((r = e.type) == null ? void 0 : r.trim()) + "-widget" : "";
|
|
11091
|
-
}), M(
|
|
11095
|
+
}), M(b0, "getName", (e) => fe.getOrgOption(e, tt.name)), M(b0, "setName", (e, r) => {
|
|
11092
11096
|
fe.setOptions(e, tt.name, r);
|
|
11093
11097
|
}), /**
|
|
11094
11098
|
* 获取属性原始值
|
|
@@ -11096,24 +11100,24 @@ M(y0, "getWidgetName", (e) => {
|
|
|
11096
11100
|
* @param keyName 配置属性名称
|
|
11097
11101
|
* @returns 对象。属性内容
|
|
11098
11102
|
*/
|
|
11099
|
-
M(
|
|
11103
|
+
M(b0, "getOrgOption", (e, r) => {
|
|
11100
11104
|
var n;
|
|
11101
11105
|
return (n = e == null ? void 0 : e.options) == null ? void 0 : n[r];
|
|
11102
|
-
}), M(
|
|
11106
|
+
}), M(b0, "setOrgOption", (e, r, n) => {
|
|
11103
11107
|
!e || !e.options || (e.options[r] = n);
|
|
11104
|
-
}), M(
|
|
11108
|
+
}), M(b0, "getOptions", (e, r, n = !1, s = !1, i) => {
|
|
11105
11109
|
var o = fe.getOrgOption(e, r);
|
|
11106
11110
|
if (n)
|
|
11107
11111
|
return o;
|
|
11108
11112
|
var a = K.getValue(o, !1, s, i);
|
|
11109
11113
|
if (a !== null)
|
|
11110
11114
|
return a;
|
|
11111
|
-
}), M(
|
|
11115
|
+
}), M(b0, "setOptions", (e, r, n) => {
|
|
11112
11116
|
K.setValue(e == null ? void 0 : e.options, r, n);
|
|
11113
|
-
}), M(
|
|
11117
|
+
}), M(b0, "setEnable", (e, r, n) => {
|
|
11114
11118
|
K.setEnable(e == null ? void 0 : e.options, r, n);
|
|
11115
11119
|
});
|
|
11116
|
-
class r1 extends
|
|
11120
|
+
class r1 extends b0 {
|
|
11117
11121
|
constructor(r, n) {
|
|
11118
11122
|
super();
|
|
11119
11123
|
//IBaseCommonWidgetOptions
|
|
@@ -11123,7 +11127,7 @@ class r1 extends y0 {
|
|
|
11123
11127
|
this.name = `${r}${ni()}`, this.slotName = r || "", this.widgetList = n != null && n.length ? n : [];
|
|
11124
11128
|
}
|
|
11125
11129
|
}
|
|
11126
|
-
class Fn extends
|
|
11130
|
+
class Fn extends b0 {
|
|
11127
11131
|
constructor() {
|
|
11128
11132
|
super();
|
|
11129
11133
|
M(this, "dynamicItemFlag", !1);
|
|
@@ -11135,7 +11139,7 @@ class Fn extends y0 {
|
|
|
11135
11139
|
}
|
|
11136
11140
|
class n1 extends Fn {
|
|
11137
11141
|
constructor(e, r, n = !1, s) {
|
|
11138
|
-
super(), s != null && s.autoWidth && J0(r, tt.ctrlWidth) && (r.ctrlWidth = new K(G.placer, va.auto)), s != null && s.inlineLayout && J0(r, tt.displayLayout) && (r.displayLayout = new K(G.placer, si.inline)),
|
|
11142
|
+
super(), s != null && s.autoWidth && J0(r, tt.ctrlWidth) && (r.ctrlWidth = new K(G.placer, va.auto)), s != null && s.inlineLayout && J0(r, tt.displayLayout) && (r.displayLayout = new K(G.placer, si.inline)), Bt(s == null ? void 0 : s.dynamicItemFlag) || (this.dynamicItemFlag = s == null ? void 0 : s.dynamicItemFlag), this.formItemFlag = n, this.type = e, this.options = r, Object.entries(r).map(([i, o]) => {
|
|
11139
11143
|
var a;
|
|
11140
11144
|
K.getType(o) === G.slot && ((a = K.getOptions(o)) != null && a.allowDrag) && (o.widgetList = []);
|
|
11141
11145
|
}), this.init(n);
|
|
@@ -11144,13 +11148,13 @@ class n1 extends Fn {
|
|
|
11144
11148
|
export {
|
|
11145
11149
|
Vl as $,
|
|
11146
11150
|
Kl as A,
|
|
11147
|
-
|
|
11151
|
+
b0 as B,
|
|
11148
11152
|
Gl as C,
|
|
11149
11153
|
ll as D,
|
|
11150
11154
|
Xl as E,
|
|
11151
11155
|
ne as F,
|
|
11152
11156
|
Wt as G,
|
|
11153
|
-
|
|
11157
|
+
kt as H,
|
|
11154
11158
|
Ln as I,
|
|
11155
11159
|
K as P,
|
|
11156
11160
|
n1 as S,
|
|
@@ -11160,7 +11164,7 @@ export {
|
|
|
11160
11164
|
An as c,
|
|
11161
11165
|
xi as d,
|
|
11162
11166
|
Sa as e,
|
|
11163
|
-
|
|
11167
|
+
gt as f,
|
|
11164
11168
|
t1 as g,
|
|
11165
11169
|
Ol as h,
|
|
11166
11170
|
Zl as i,
|