ss-component-new 1.1.88 → 1.1.89

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.
Files changed (45) hide show
  1. package/dist/array-DMmwiVeP.cjs +9 -0
  2. package/dist/array-XoXyYHwT.js +3354 -0
  3. package/dist/{cloneDeep-CZ1WcsqU.js → cloneDeep-BNmbDv00.js} +1 -1
  4. package/dist/{cloneDeep-BViCcHX9.cjs → cloneDeep-DPVvcaHp.cjs} +1 -1
  5. package/dist/index-4EVOV-QJ.cjs +7 -0
  6. package/dist/{index-Dns47tcD.js → index-B5Rq3XMZ.js} +2 -2
  7. package/dist/index-BCat-xG7.js +165 -0
  8. package/dist/{index-B3SqB7yl.cjs → index-Bf_v25jY.cjs} +1 -1
  9. package/dist/{index-DGU4M4GV.js → index-C05xMHsm.js} +3 -3
  10. package/dist/index-CTpfNPrd.cjs +1 -0
  11. package/dist/index-CUhSPuUp.cjs +1 -0
  12. package/dist/index-CoC1Qlco.cjs +1 -0
  13. package/dist/{index-DiOtu98z.cjs → index-CozHldDr.cjs} +1 -1
  14. package/dist/{index-IJ9PKpzX.cjs → index-Ctx2gfUg.cjs} +1 -1
  15. package/dist/{index-BMLnfdpX.js → index-DBKxwOZZ.js} +5 -4
  16. package/dist/index-TEDi8PFd.js +38 -0
  17. package/dist/{index-BD3O_DQN.js → index-W1360Du0.js} +4 -5
  18. package/dist/{index-Oz6bAv7L.js → index-emAMfqsw.js} +1 -1
  19. package/dist/index-m5EvpgPM.js +953 -0
  20. package/dist/index-sjmLPf8w.cjs +1 -0
  21. package/dist/{main-DvtmZKNG.js → main-3srQVh7O.js} +27 -28
  22. package/dist/main-Do3EuI59.cjs +1 -0
  23. package/dist/ss-component.cjs +1 -1
  24. package/dist/ss-component.css +1 -1
  25. package/dist/ss-component.js +6 -6
  26. package/dist/ss-component2.cjs +1 -1
  27. package/dist/ss-component2.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/array-CuefuJR6.js +0 -3233
  30. package/dist/array-DjZCFuX6.cjs +0 -9
  31. package/dist/index-2vs5vHzf.js +0 -131
  32. package/dist/index-B0NlRxsH.cjs +0 -1
  33. package/dist/index-B29cRZmo.cjs +0 -1
  34. package/dist/index-BwEs_Gih.js +0 -345
  35. package/dist/index-CNE4QdxQ.cjs +0 -1
  36. package/dist/index-CRQJ_FnB.cjs +0 -1
  37. package/dist/index-Cq_yCzqv.js +0 -37
  38. package/dist/index-DLZJaKRC.cjs +0 -1
  39. package/dist/index-DzJuDGl8.cjs +0 -1
  40. package/dist/index-cAlHRAni.js +0 -26
  41. package/dist/index.vue_vue_type_style_index_0_scoped_0d13cfeb_lang-D2nrgoto.cjs +0 -7
  42. package/dist/index.vue_vue_type_style_index_0_scoped_0d13cfeb_lang-DnHED9x9.js +0 -618
  43. package/dist/index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-B8p4YtkN.cjs +0 -1
  44. package/dist/index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DrUd-gvH.js +0 -144
  45. package/dist/main-CijR7xkz.cjs +0 -1
@@ -0,0 +1,3354 @@
1
+ import { ref as U, onMounted as Ln, watch as de, createElementBlock as re, openBlock as X, createBlock as Be, createVNode as Y, createSlots as qn, withCtx as ce, Fragment as Ze, renderList as Qe, createElementVNode as M, normalizeStyle as Jn, toDisplayString as Z, createCommentVNode as Yt, resolveComponent as We, createTextVNode as Ue, unref as en, resolveDynamicComponent as Et } from "vue";
2
+ import { E as Mn } from "./index-B5Rq3XMZ.js";
3
+ import { u as Ye } from "./modelComp-B3sxj_Kp.js";
4
+ import { g as zn, c as Hn, d as tn, s as Ee, u as In } from "./menu-BIINB-0Y.js";
5
+ import { _ as Re } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ import { c as v } from "./cloneDeep-BNmbDv00.js";
7
+ import { s as Oe, a as Vn, b as et, f as Wn, E as Fe } from "./index-C05xMHsm.js";
8
+ import { _ as Kn } from "./index.vue_vue_type_script_setup_true_lang-DQ2k4Z7D.js";
9
+ const Lt = (e, t) => {
10
+ const n = e.storage || sessionStorage, r = e.key || t.$id;
11
+ if (e.paths) {
12
+ const o = e.paths.reduce((s, a) => (s[a] = t.$state[a], s), {});
13
+ n.setItem(r, JSON.stringify(o));
14
+ } else
15
+ n.setItem(r, JSON.stringify(t.$state));
16
+ };
17
+ var Gn = ({ options: e, store: t }) => {
18
+ var n, r, o, s;
19
+ if ((n = e.persist) != null && n.enabled) {
20
+ const a = [{
21
+ key: t.$id,
22
+ storage: sessionStorage
23
+ }], l = (o = (r = e.persist) == null ? void 0 : r.strategies) != null && o.length ? (s = e.persist) == null ? void 0 : s.strategies : a;
24
+ l.forEach((d) => {
25
+ const i = d.storage || sessionStorage, y = d.key || t.$id, c = i.getItem(y);
26
+ c && (t.$patch(JSON.parse(c)), Lt(d, t));
27
+ }), t.$subscribe(() => {
28
+ l.forEach((d) => {
29
+ Lt(d, t);
30
+ });
31
+ });
32
+ }
33
+ };
34
+ const he = zn() || Hn();
35
+ he.use(Gn);
36
+ const nn = tn("formToTableComp", {
37
+ state: () => ({
38
+ selectArray: [],
39
+ selectString: ""
40
+ }),
41
+ actions: {
42
+ setSelectArray(e) {
43
+ this.selectArray = e;
44
+ },
45
+ setSelectString(e) {
46
+ this.selectString = e;
47
+ }
48
+ }
49
+ }), Xn = tn("unit", {
50
+ state: () => ({
51
+ selectIndex: "",
52
+ selectMenu: "",
53
+ selectTitle: []
54
+ }),
55
+ actions: {
56
+ setSelectIndex(e) {
57
+ this.selectIndex = e;
58
+ },
59
+ setSelectMenu(e) {
60
+ this.selectMenu = e;
61
+ },
62
+ setSelectTitle(e) {
63
+ this.selectTitle = e;
64
+ }
65
+ }
66
+ }), Zn = (e, t) => {
67
+ const n = t == null ? void 0 : t.split("-");
68
+ return rn(e, n);
69
+ }, rn = (e, t) => {
70
+ var o;
71
+ let n = e, r = t;
72
+ return Array.isArray(n) ? n = n == null ? void 0 : n[parseInt(v(r == null ? void 0 : r[0]))] : Array.isArray(n == null ? void 0 : n.children) && (n = (o = n == null ? void 0 : n.children) == null ? void 0 : o[parseInt(v(r == null ? void 0 : r[0]))]), r == null || r.shift(), (r == null ? void 0 : r.length) > 0 && (n = rn(n, r)), n;
73
+ }, on = (e, t) => {
74
+ let n = e, r = t == null ? void 0 : t.filter((o) => (o == null ? void 0 : o.prop) !== "index");
75
+ return Array.isArray(n) && (n = n == null ? void 0 : n.map((o, s) => {
76
+ if (Array.isArray(o)) {
77
+ let a = {};
78
+ return o = o == null ? void 0 : o.forEach((l, d) => {
79
+ var i;
80
+ (i = r == null ? void 0 : r[d]) != null && i.prop ? a[r[d].prop] = l : Array.isArray(l) && (a.children = on(l, r));
81
+ }), Object.assign(a, { id: s });
82
+ } else
83
+ return o;
84
+ })), n;
85
+ }, Qn = (e, t, n) => {
86
+ if (t === "")
87
+ return e == null ? void 0 : e.filter((r) => (r == null ? void 0 : r.id) === n);
88
+ {
89
+ const r = t.split("-");
90
+ return Yn(e, r, n);
91
+ }
92
+ }, Yn = (e, t, n) => {
93
+ let r = e, o = t;
94
+ return (o == null ? void 0 : o.length) === 0 ? r = r == null ? void 0 : r.filter((s) => s.id !== n) : r = r == null ? void 0 : r.map((s) => (s.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), s = sn(s, o, n)), s)), r;
95
+ }, sn = (e, t, n) => {
96
+ var s, a;
97
+ let r = e, o = t;
98
+ return (o == null ? void 0 : o.length) === 0 ? r.children = (s = r.children) == null ? void 0 : s.filter((l) => l.id !== n) : r.children = (a = r.children) == null ? void 0 : a.map((l) => (l.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), l = sn(l, o, n)), l)), r;
99
+ }, er = (e, t, n) => {
100
+ if (t === "")
101
+ return n;
102
+ {
103
+ const r = t.split("-");
104
+ return tr(e, r, n);
105
+ }
106
+ }, tr = (e, t, n) => {
107
+ let r = e, o = t;
108
+ return (o == null ? void 0 : o.length) === 0 ? r = n : r = r == null ? void 0 : r.map((s) => (s.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), s = an(s, o, n)), s)), r;
109
+ }, an = (e, t, n) => {
110
+ var s;
111
+ let r = e, o = t;
112
+ return (o == null ? void 0 : o.length) === 0 ? r.children = n : r.children = (s = r.children) == null ? void 0 : s.map((a) => (a.id.toString() === (o == null ? void 0 : o[0]) && (o == null || o.shift(), a = an(a, o, n)), a)), r;
113
+ }, nr = { class: "table-content" }, rr = ["onClick"], or = {
114
+ key: 0,
115
+ class: "dialog-footer"
116
+ }, sr = {
117
+ __name: "index",
118
+ props: {
119
+ itemData: {
120
+ type: Array,
121
+ default: () => []
122
+ },
123
+ childItemData: {
124
+ type: Array,
125
+ default: () => []
126
+ },
127
+ index: Number
128
+ },
129
+ emits: ["change", "contentChange"],
130
+ setup(e, { emit: t }) {
131
+ const n = e, r = t, o = U([]), s = U([]), a = U(""), l = U(), d = U(!0), i = U(0), y = U(!1), c = U(""), O = U(!1), _ = U([]), g = U(!1), A = U([]), p = U([]), h = U(), u = U(), R = nn(he), b = U(), m = Xn(he), { selectIndex: E, selectMenu: S, selectTitle: D } = Ee(m), { selectString: N } = Ee(R), w = U(720), K = () => {
132
+ O.value = !1;
133
+ }, F = (T) => {
134
+ var j, $, x, L, W;
135
+ if (J(T), T != null && T.children && Array.isArray(T == null ? void 0 : T.children)) {
136
+ const q = D.value;
137
+ q.push({ key: S.value === "" ? (j = T == null ? void 0 : T.id) == null ? void 0 : j.toString() : S.value + "-" + (($ = T == null ? void 0 : T.id) == null ? void 0 : $.toString()), value: T[(x = Object.keys(T)) == null ? void 0 : x.filter((V) => V !== "index" && V !== "id")[0]] }), m.setSelectMenu(S.value === "" ? (L = T == null ? void 0 : T.id) == null ? void 0 : L.toString() : S.value + "-" + ((W = T == null ? void 0 : T.id) == null ? void 0 : W.toString())), m.setSelectTitle(q), m.setSelectIndex(n != null && n.index ? n == null ? void 0 : n.index.toString() : "");
138
+ }
139
+ }, J = (T) => {
140
+ var j, $, x;
141
+ if (T != null && T.children && Array.isArray(T == null ? void 0 : T.children)) {
142
+ let L = [];
143
+ const W = (j = v(h.value)) == null ? void 0 : j.filter((q) => (q == null ? void 0 : q.prop) !== "index");
144
+ ($ = T == null ? void 0 : T.children) == null || $.forEach((q, V) => {
145
+ if (!Array.isArray(q))
146
+ L.push(q);
147
+ else {
148
+ let ae = {};
149
+ q == null || q.forEach((le, Ce) => {
150
+ var xe;
151
+ (xe = W == null ? void 0 : W[Ce]) != null && xe.prop ? ae[W[Ce].prop] = le : Array.isArray(le) && (ae.children = le);
152
+ }), L.push(Object.assign(ae, { id: V }));
153
+ }
154
+ }), o.value = (x = v(o.value)) == null ? void 0 : x.filter((q) => (q == null ? void 0 : q.prop) !== "index"), s.value = L;
155
+ }
156
+ }, z = (T, j) => {
157
+ var $;
158
+ if (a.value = "", g.value = !0, d.value = !0, T === "删除") {
159
+ s.value = ($ = v(s.value)) == null ? void 0 : $.filter((L) => (L == null ? void 0 : L.id) !== (j == null ? void 0 : j.id));
160
+ const x = Qn(b.value, S.value, j == null ? void 0 : j.id);
161
+ k(x), r("change", {
162
+ content: x,
163
+ index: n == null ? void 0 : n.index,
164
+ buttonName: T
165
+ });
166
+ } else T === "新增" ? (c.value = "新增", H(""), O.value = !0) : T === "编辑" ? (c.value = "编辑", H(j), O.value = !0) : T === "详情" && (c.value = "详情", H(j), g.value = !1, d.value = !1, O.value = !0);
167
+ }, H = (T) => {
168
+ var $;
169
+ const j = [];
170
+ ($ = v(o.value)) == null || $.forEach((x, L) => {
171
+ x.label !== "" && (x == null ? void 0 : x.label) !== "操作" && j.push({
172
+ label: (x == null ? void 0 : x.label) ?? "",
173
+ name: (x == null ? void 0 : x.prop) ?? "t" + L,
174
+ type: !(x != null && x.type) || (x == null ? void 0 : x.type) === "" ? "Input" : x == null ? void 0 : x.type,
175
+ value: (T == null ? void 0 : T[x == null ? void 0 : x.prop]) ?? "",
176
+ id: (x == null ? void 0 : x.id) ?? L,
177
+ contents: (x == null ? void 0 : x.options) ?? [],
178
+ width: 1
179
+ });
180
+ }), T === "" || !T || (a.value = T == null ? void 0 : T.id), p.value = j;
181
+ };
182
+ Ln(() => {
183
+ });
184
+ const I = () => {
185
+ let T = v(s.value);
186
+ a.value === "" ? (i.value++, T.push(Object.assign(u.value, { id: i.value }))) : T = T == null ? void 0 : T.map(($) => (($ == null ? void 0 : $.id) === a.value && ($ = Object.assign($, u.value)), $)), s.value = T;
187
+ const j = er(b.value, S.value, T);
188
+ k(j), O.value = !1, r("change", {
189
+ content: j,
190
+ index: n == null ? void 0 : n.index,
191
+ buttonName: c.value
192
+ });
193
+ }, k = (T) => {
194
+ var $;
195
+ const j = ($ = v(n.itemData)) == null ? void 0 : $.map((x) => ((x == null ? void 0 : x.key) === "tableContents" && (x.contents = T), x));
196
+ r("contentChange", {
197
+ contents: j,
198
+ index: n.index
199
+ });
200
+ }, Q = (T) => {
201
+ u.value = T;
202
+ };
203
+ return de(
204
+ () => [n.itemData, N.value, E.value, S.value],
205
+ () => {
206
+ var ae, le, Ce, xe, wt, Ot, Tt, At, Ct, xt, Dt, Ft, Nt, Pt, Ut, Bt, jt, $t;
207
+ const T = (ae = v(n.itemData)) == null ? void 0 : ae.filter((P) => (P == null ? void 0 : P.key) === "header"), j = (le = v(n.itemData)) == null ? void 0 : le.find((P) => (P == null ? void 0 : P.key) === "page"), $ = (Ce = v(n.itemData)) == null ? void 0 : Ce.find((P) => (P == null ? void 0 : P.key) === "rowButton"), x = (xe = v(n.itemData)) == null ? void 0 : xe.find((P) => (P == null ? void 0 : P.key) === "extraButton"), L = (wt = v(n.itemData)) == null ? void 0 : wt.filter((P) => (P == null ? void 0 : P.key) === "tableContents"), W = (Ot = v(n.itemData)) == null ? void 0 : Ot.filter((P) => (P == null ? void 0 : P.key) === "tableIndex");
208
+ y.value = (j == null ? void 0 : j.contents) ?? !0;
209
+ let q = [];
210
+ N.value === "" ? q = T == null ? void 0 : T[0] : q = (T == null ? void 0 : T.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + N.value + ")")) ?? (T == null ? void 0 : T.find((P) => !(P != null && P.selectLabel)));
211
+ let V = [];
212
+ if (N.value === "" ? V = W == null ? void 0 : W[0] : V = (W == null ? void 0 : W.find((P) => (P == null ? void 0 : P.selectLabel) === "(" + N.value + ")")) ?? (W == null ? void 0 : W.find((P) => !(P != null && P.selectLabel))), ((Tt = q == null ? void 0 : q.contents) == null ? void 0 : Tt.length) > 0) {
213
+ const P = [];
214
+ V != null && V.contents && ((At = V == null ? void 0 : V.contents) == null ? void 0 : At.length) !== 0 && P.push({
215
+ label: "",
216
+ prop: "index",
217
+ sortable: !1
218
+ }), (Ct = q == null ? void 0 : q.contents) == null || Ct.forEach((C, fe) => {
219
+ (C == null ? void 0 : C.label) !== "" && P.push({
220
+ label: (C == null ? void 0 : C.label) ?? "",
221
+ prop: (C == null ? void 0 : C.label) === "操作" ? "operate" : (C == null ? void 0 : C.prop) ?? "a" + fe,
222
+ width: C != null && C.width ? parseInt(C.width) : "",
223
+ fixed: (C == null ? void 0 : C.fixed) ?? void 0,
224
+ sortable: (C == null ? void 0 : C.sortable) ?? !1,
225
+ align: (C == null ? void 0 : C.align) ?? "center",
226
+ showOverflowTooltip: (C == null ? void 0 : C.showOverflowTooltip) ?? !0,
227
+ isNotDrag: (C == null ? void 0 : C.isNotDrag) ?? !1,
228
+ isEditCol: (C == null ? void 0 : C.isEditCol) ?? !1,
229
+ isOperate: (C == null ? void 0 : C.isOperate) ?? !1,
230
+ id: (C == null ? void 0 : C.id) ?? fe,
231
+ type: (C == null ? void 0 : C.label) === "操作" ? "operate" : void 0
232
+ });
233
+ }), o.value = P;
234
+ let ye = (Dt = (xt = v(o.value)) == null ? void 0 : xt.filter((C) => (C == null ? void 0 : C.type) !== "operate")) == null ? void 0 : Dt.map((C, fe) => ({
235
+ prop: (C == null ? void 0 : C.prop) ?? "a" + fe
236
+ }));
237
+ h.value = ye;
238
+ let me = [];
239
+ if (N.value === "" ? me = L == null ? void 0 : L[0] : me = (L == null ? void 0 : L.find((C) => (C == null ? void 0 : C.selectLabel) === "(" + N.value + ")")) ?? (L == null ? void 0 : L.find((C) => !(C != null && C.selectLabel))), ((Ft = me == null ? void 0 : me.contents) == null ? void 0 : Ft.length) !== 0) {
240
+ let C = v(me == null ? void 0 : me.contents);
241
+ V != null && V.contents && ((Nt = V == null ? void 0 : V.contents) == null ? void 0 : Nt.length) !== 0 && (C = (Pt = v(C)) == null ? void 0 : Pt.map((ie, it) => {
242
+ var _e, we;
243
+ if (!Array.isArray(ie)) {
244
+ let De = {};
245
+ for (let be in ie)
246
+ be !== "id" && be !== "index" && (De[be] = ie[be]);
247
+ ie = Object.values(De);
248
+ }
249
+ return ie.unshift(((we = (_e = V == null ? void 0 : V.contents) == null ? void 0 : _e[it]) == null ? void 0 : we.label) ?? ""), ie;
250
+ }));
251
+ const fe = [];
252
+ C == null || C.forEach((ie, it) => {
253
+ let _e = {};
254
+ ie == null || ie.forEach((we, De) => {
255
+ var be;
256
+ (be = ye == null ? void 0 : ye[De]) != null && be.prop ? _e[ye[De].prop] = we : Array.isArray(we) && (_e.children = on(we, ye));
257
+ }), fe.push(Object.assign(_e, { id: it }));
258
+ }), s.value = fe;
259
+ } else {
260
+ let C = (Ut = v(ye)) == null ? void 0 : Ut.reduce((fe, ie) => (fe[ie.prop] = "测试数据", fe), {});
261
+ l.value = C, s.value = [Object.assign({}, l.value, { id: i.value })];
262
+ }
263
+ } else
264
+ o.value = [], s.value = [];
265
+ if (((Bt = $ == null ? void 0 : $.contents) == null ? void 0 : Bt.length) > 0 ? _.value = $ == null ? void 0 : $.contents : _.value = [], ((jt = x == null ? void 0 : x.contents) == null ? void 0 : jt.length) > 0 ? A.value = x == null ? void 0 : x.contents : A.value = [], i.value = (($t = s == null ? void 0 : s.value) == null ? void 0 : $t.length) ?? 0, E.value !== "") {
266
+ const P = Zn(v(s.value), S.value);
267
+ b.value = s.value, J(P);
268
+ }
269
+ },
270
+ { deep: !0, immediate: !0 }
271
+ ), (T, j) => {
272
+ var $;
273
+ return X(), re("div", nr, [
274
+ (X(), Be(Oe, {
275
+ columns: o.value,
276
+ key: o.value,
277
+ tableData: s.value,
278
+ isShowPagination: y.value,
279
+ isShowEdit: !1,
280
+ isShowDelete: !1,
281
+ onDbClickRow: F,
282
+ extraButton: A.value,
283
+ onButtonClick: j[0] || (j[0] = (x) => z(x, ""))
284
+ }, qn({ _: 2 }, [
285
+ (($ = _.value) == null ? void 0 : $.length) > 0 ? {
286
+ name: "actions",
287
+ fn: ce(({ item: x }) => [
288
+ (X(!0), re(Ze, null, Qe(_.value, (L, W) => (X(), re("div", { key: W }, [
289
+ M("div", {
290
+ style: Jn({ color: L == null ? void 0 : L.textColor }),
291
+ class: "extra-button-label",
292
+ onClick: (q) => z(L == null ? void 0 : L.label, x)
293
+ }, Z(L == null ? void 0 : L.label), 13, rr)
294
+ ]))), 128))
295
+ ]),
296
+ key: "0"
297
+ } : void 0
298
+ ]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
299
+ Y(Vn, {
300
+ title: c.value,
301
+ visible: O.value,
302
+ width: w.value,
303
+ onBeforeDestroy: K
304
+ }, {
305
+ default: ce(() => [
306
+ Y(et, {
307
+ rowContents: p.value,
308
+ isEnableWrap: !1,
309
+ onChange: Q,
310
+ isEdit: d.value
311
+ }, null, 8, ["rowContents", "isEdit"])
312
+ ]),
313
+ footer: ce(() => [
314
+ g.value ? (X(), re("div", or, [
315
+ M("div", {
316
+ onClick: j[1] || (j[1] = (x) => O.value = !1),
317
+ class: "cancel-button"
318
+ }, Z("取消")),
319
+ M("div", {
320
+ class: "ok-button",
321
+ onClick: I
322
+ }, Z("确认"))
323
+ ])) : Yt("", !0)
324
+ ]),
325
+ _: 1
326
+ }, 8, ["title", "visible", "width"])
327
+ ]);
328
+ };
329
+ }
330
+ }, ar = /* @__PURE__ */ Re(sr, [["__scopeId", "data-v-781eace3"]]), qe = [
331
+ {
332
+ key: "单选",
333
+ value: "Select"
334
+ },
335
+ {
336
+ key: "日期",
337
+ value: "Date"
338
+ },
339
+ {
340
+ key: "长文本",
341
+ value: "TextArea"
342
+ },
343
+ {
344
+ key: "上传",
345
+ value: "Upload"
346
+ }
347
+ ], lr = { class: "form-content" }, ir = {
348
+ __name: "index",
349
+ props: {
350
+ itemData: {
351
+ type: Array,
352
+ default: () => []
353
+ },
354
+ childItemData: {
355
+ type: Array,
356
+ default: () => []
357
+ },
358
+ index: Number
359
+ },
360
+ emits: ["change", "contentChange"],
361
+ setup(e, { emit: t }) {
362
+ const n = e, r = t, o = U([]), s = U(!1), a = U([]), l = nn(he), d = U(), i = (c) => {
363
+ var p, h, u, R;
364
+ const O = (h = (p = v(n.itemData)) == null ? void 0 : p.find((b) => (b == null ? void 0 : b.key) === "formContent")) == null ? void 0 : h.contents, _ = v(c.content);
365
+ let g = {};
366
+ _ && ((u = Object.values(_)) == null ? void 0 : u.length) > 0 && ((R = Object.values(_)) == null || R.forEach((b, m) => {
367
+ g[O[m].key] = b;
368
+ }));
369
+ const A = {
370
+ content: g,
371
+ index: n == null ? void 0 : n.index,
372
+ buttonName: c == null ? void 0 : c.buttonName
373
+ };
374
+ r("change", A);
375
+ }, y = (c) => {
376
+ var g, A;
377
+ if (!c) return;
378
+ if (((g = Object.values(v(c))) == null ? void 0 : g.length) > 0) {
379
+ const p = (A = Object.values(v(c))) == null ? void 0 : A.map((u) => u);
380
+ let h = "";
381
+ p == null || p.forEach((u) => {
382
+ u !== "" && u !== void 0 && (h = h === "" ? u : h + "/" + u);
383
+ }), l.setSelectArray(p), l.setSelectString(h);
384
+ }
385
+ const O = v(n.itemData), _ = O == null ? void 0 : O.map((p) => {
386
+ var h;
387
+ return (p == null ? void 0 : p.key) === "formContent" && ((h = p.contents) == null || h.map((u, R) => {
388
+ var b, m, E, S, D, N, w, K, F, J, z, H, I, k;
389
+ return u.type = u != null && u.type ? u.type : (E = (m = (b = u == null ? void 0 : u.key.split("$")) == null ? void 0 : b[1]) == null ? void 0 : m.split("(")) != null && E[0] ? (S = qe == null ? void 0 : qe.find((Q) => {
390
+ var T, j, $;
391
+ return (Q == null ? void 0 : Q.key) === (($ = (j = (T = u == null ? void 0 : u.key.split("$")) == null ? void 0 : T[1]) == null ? void 0 : j.split("(")) == null ? void 0 : $[0]);
392
+ })) == null ? void 0 : S.value : "Input", u.options = u != null && u.options ? u.options : ((N = (D = u == null ? void 0 : u.key.split("$")) == null ? void 0 : D[1]) == null ? void 0 : N.length) > 0 ? (F = (K = Wn((w = u == null ? void 0 : u.key.split("$")) == null ? void 0 : w[1])) == null ? void 0 : K.split(",")) == null ? void 0 : F.map((Q) => ({
393
+ label: Q,
394
+ value: Q
395
+ })) : [], u != null && u.key.includes("$") && (u.key = (J = u == null ? void 0 : u.key.split("$")) == null ? void 0 : J[0]), u.value = u != null && u.value ? u.value : Array.isArray((z = Object.values(c)) == null ? void 0 : z[R]) ? (I = (H = Object.values(c)) == null ? void 0 : H[R]) == null ? void 0 : I[0] : (k = Object.values(c)) == null ? void 0 : k[R], u;
396
+ })), p;
397
+ });
398
+ r("contentChange", {
399
+ contents: _,
400
+ index: n.index
401
+ });
402
+ };
403
+ return de(
404
+ () => n.itemData,
405
+ () => {
406
+ var A, p, h, u, R, b, m, E, S, D;
407
+ const c = (A = v(n.itemData)) == null ? void 0 : A.find((N) => (N == null ? void 0 : N.key) === "formContent"), O = (p = v(n.itemData)) == null ? void 0 : p.find((N) => (N == null ? void 0 : N.key) === "formButton"), _ = (h = v(n.itemData)) == null ? void 0 : h.find((N) => (N == null ? void 0 : N.key) === "formFlex"), g = (u = v(n.itemData)) == null ? void 0 : u.find((N) => (N == null ? void 0 : N.key) === "formWrap");
408
+ if ((g == null ? void 0 : g.contents) === "纵向" ? s.value = !1 : s.value = !0, d.value = typeof (_ == null ? void 0 : _.contents) != "boolean" ? !(!(_ != null && _.contents) === "" || ((R = _ == null ? void 0 : _.contents) == null ? void 0 : R.toUpperCase()) === "VERTICAL") : _ == null ? void 0 : _.contents, ((b = c == null ? void 0 : c.contents) == null ? void 0 : b.length) > 0 && Array.isArray(c == null ? void 0 : c.contents)) {
409
+ const N = [];
410
+ (m = c == null ? void 0 : c.contents) == null || m.forEach((F, J) => {
411
+ var z, H, I, k, Q, T, j, $, x;
412
+ if ((F == null ? void 0 : F.label) !== "") {
413
+ let L = (F == null ? void 0 : F.key) ?? "", W = (F == null ? void 0 : F.type) ?? "", q = (F == null ? void 0 : F.options) ?? [];
414
+ if (F != null && F.key.includes("$") && (L = (z = v(F == null ? void 0 : F.key).split("$")) == null ? void 0 : z[0], ((I = (H = v(F == null ? void 0 : F.key).split("$")) == null ? void 0 : H[1]) == null ? void 0 : I.length) > 0)) {
415
+ const [V, ae] = (Q = (k = v(F == null ? void 0 : F.key).split("$")) == null ? void 0 : k[1]) == null ? void 0 : Q.split(/[()]/);
416
+ W = ((T = qe.find((le) => (le == null ? void 0 : le.key) === V)) == null ? void 0 : T.value) ?? "", ((j = ae == null ? void 0 : ae.split(",")) == null ? void 0 : j.length) > 0 && (q = ($ = ae == null ? void 0 : ae.split(",")) == null ? void 0 : $.map((le) => ({
417
+ label: le,
418
+ value: le
419
+ })));
420
+ }
421
+ N.push({
422
+ label: L ?? "",
423
+ name: "t" + J,
424
+ type: W === "" ? "Input" : W,
425
+ value: F != null && F.value ? F.value : (q == null ? void 0 : q.length) > 0 ? (x = q == null ? void 0 : q[0]) == null ? void 0 : x.value : (F == null ? void 0 : F.value) ?? "",
426
+ id: (F == null ? void 0 : F.id) ?? J,
427
+ contents: q ?? [],
428
+ width: (F == null ? void 0 : F.width) ?? 1
429
+ });
430
+ }
431
+ });
432
+ const w = (E = v(N)) == null ? void 0 : E.map((F) => F.value);
433
+ let K = "";
434
+ w == null || w.forEach((F) => {
435
+ F !== "" && F !== void 0 && (K = K === "" ? F : K + "/" + F);
436
+ }), l.setSelectArray(w), l.setSelectString(K), o.value = N;
437
+ } else
438
+ o.value = [];
439
+ if (((S = O == null ? void 0 : O.contents) == null ? void 0 : S.length) > 0) {
440
+ const N = [];
441
+ (D = O == null ? void 0 : O.contents) == null || D.forEach((w, K) => {
442
+ (w == null ? void 0 : w.label) !== "" && N.push({
443
+ label: (w == null ? void 0 : w.label) ?? "",
444
+ id: (w == null ? void 0 : w.id) ?? K,
445
+ type: (w == null ? void 0 : w.type) ?? "",
446
+ background: w == null ? void 0 : w.background
447
+ });
448
+ }), a.value = N;
449
+ } else
450
+ a.value = [];
451
+ },
452
+ { deep: !0, immediate: !0 }
453
+ ), (c, O) => (X(), re("div", lr, [
454
+ Y(et, {
455
+ rowContents: o.value,
456
+ buttonValue: a.value,
457
+ isRowFlex: d.value,
458
+ isEnableWrap: !1,
459
+ onOnButtonClick: i,
460
+ onChange: y,
461
+ isButtonRow: s.value
462
+ }, null, 8, ["rowContents", "buttonValue", "isRowFlex", "isButtonRow"])
463
+ ]));
464
+ }
465
+ }, cr = /* @__PURE__ */ Re(ir, [["__scopeId", "data-v-156885e4"]]), ur = { class: "table-operate-content" }, fr = { class: "table-operate-item" }, pr = { class: "operate-title" }, dr = { class: "operate-content" }, hr = { class: "operate-title" }, mr = { class: "operate-content" }, yr = { class: "operate-title" }, br = { class: "operate-content" }, gr = { class: "operate-content" }, vr = {
466
+ __name: "operate",
467
+ props: {
468
+ itemContents: {
469
+ type: Array,
470
+ default: () => []
471
+ },
472
+ originalItemContents: {
473
+ type: Array,
474
+ default: () => []
475
+ }
476
+ },
477
+ emits: ["change"],
478
+ setup(e, { emit: t }) {
479
+ const n = e, r = t, o = U([]), s = U([]), a = U([]), l = U([{
480
+ label: "按钮名称",
481
+ prop: "label",
482
+ type: "edit"
483
+ }, {
484
+ label: "按钮类型",
485
+ prop: "type",
486
+ type: "edit"
487
+ }, {
488
+ label: "按钮背景颜色",
489
+ prop: "background",
490
+ type: "edit",
491
+ columnType: "Color"
492
+ }, {
493
+ label: "操作",
494
+ prop: "operate",
495
+ type: "operate",
496
+ sortable: !1
497
+ }]), d = U([{
498
+ label: "标签名称",
499
+ prop: "label",
500
+ type: "edit"
501
+ }, {
502
+ label: "标签类型",
503
+ prop: "type",
504
+ type: "edit"
505
+ }, {
506
+ label: "按钮文字颜色",
507
+ prop: "textColor",
508
+ type: "edit",
509
+ columnType: "Color"
510
+ }, {
511
+ label: "操作",
512
+ prop: "operate",
513
+ type: "operate",
514
+ sortable: !1
515
+ }]), i = U([]), y = U(0), c = U([{
516
+ name: "isPagination",
517
+ label: "是否显示分页",
518
+ type: "Switch",
519
+ value: !0
520
+ }]), O = [{
521
+ label: "标签名",
522
+ prop: "label",
523
+ type: "edit"
524
+ }, {
525
+ label: "属性名",
526
+ prop: "prop",
527
+ type: "edit"
528
+ }, {
529
+ label: "宽度",
530
+ prop: "width",
531
+ type: "edit",
532
+ columnType: "Number"
533
+ }, {
534
+ label: "是否固定列",
535
+ prop: "fixed",
536
+ type: "edit",
537
+ columnType: "Radio",
538
+ contents: [{
539
+ label: "left",
540
+ value: "左"
541
+ }, {
542
+ label: "right",
543
+ value: "右"
544
+ }]
545
+ }, {
546
+ label: "是否支持排序",
547
+ prop: "sortable",
548
+ type: "edit",
549
+ columnType: "Switch"
550
+ }, {
551
+ label: "文本所在位置",
552
+ prop: "align",
553
+ type: "edit",
554
+ columnType: "Radio",
555
+ contents: [{
556
+ label: "left",
557
+ value: "左"
558
+ }, {
559
+ label: "center",
560
+ value: "中"
561
+ }, {
562
+ label: "right",
563
+ value: "右"
564
+ }]
565
+ }, {
566
+ label: "溢出悬浮文字",
567
+ prop: "showOverflowTooltip",
568
+ type: "edit",
569
+ columnType: "Switch"
570
+ }, {
571
+ label: "是否不可拖动",
572
+ prop: "isNotDrag",
573
+ type: "edit",
574
+ columnType: "Switch"
575
+ }, {
576
+ label: "是否可编辑列名",
577
+ //暂不支持
578
+ prop: "isEditCol",
579
+ type: "edit",
580
+ columnType: "Switch"
581
+ }, {
582
+ label: "是否出现在附属界面",
583
+ //暂不支持
584
+ prop: "isOperate",
585
+ type: "edit",
586
+ columnType: "Switch"
587
+ }, {
588
+ label: "操作",
589
+ prop: "operate",
590
+ type: "operate",
591
+ sortable: !1
592
+ }], _ = (b) => {
593
+ let m = v(o.value);
594
+ const E = m == null ? void 0 : m.find((S) => S.key === "page");
595
+ (E == null ? void 0 : E.contents) !== void 0 ? m = m == null ? void 0 : m.map((S) => ((S == null ? void 0 : S.key) === "page" && (S.contents = b == null ? void 0 : b.isPagination), S)) : m.push({
596
+ key: "page",
597
+ contents: b == null ? void 0 : b.isPagination
598
+ }), o.value = m;
599
+ };
600
+ de(
601
+ () => n.originalItemContents,
602
+ () => {
603
+ var b, m, E, S, D, N, w, K, F, J, z, H, I;
604
+ !n.originalItemContents || n.originalItemContents.length === 0 || (o.value = v(n.originalItemContents), s.value = (m = (b = o.value) == null ? void 0 : b.find((k) => (k == null ? void 0 : k.key) === "header")) == null ? void 0 : m.contents, a.value = (S = (E = o.value) == null ? void 0 : E.find((k) => (k == null ? void 0 : k.key) === "rowButton")) == null ? void 0 : S.contents, l.value = (N = (D = o.value) == null ? void 0 : D.find((k) => (k == null ? void 0 : k.key) === "extraButton")) == null ? void 0 : N.contents, c.value = (K = (w = o.value) == null ? void 0 : w.find((k) => (k == null ? void 0 : k.key) === "page")) != null && K.contents ? [{
605
+ name: "isPagination",
606
+ label: "是否显示分页",
607
+ type: "Switch",
608
+ value: (J = (F = o.value) == null ? void 0 : F.find((k) => (k == null ? void 0 : k.key) === "page")) == null ? void 0 : J.contents
609
+ }] : [{
610
+ name: "isPagination",
611
+ label: "是否显示分页",
612
+ type: "Switch",
613
+ value: !0
614
+ }], s.value = (z = s.value) == null ? void 0 : z.map((k, Q) => k = {
615
+ label: (k == null ? void 0 : k.label) ?? "",
616
+ prop: (k == null ? void 0 : k.label) === "操作" ? "operate" : k == null ? void 0 : k.prop,
617
+ width: k != null && k.width ? parseInt(k.width) : "",
618
+ fixed: (k == null ? void 0 : k.fixed) ?? void 0,
619
+ sortable: (k == null ? void 0 : k.sortable) ?? !1,
620
+ align: (k == null ? void 0 : k.align) ?? "center",
621
+ showOverflowTooltip: (k == null ? void 0 : k.showOverflowTooltip) ?? !0,
622
+ isNotDrag: (k == null ? void 0 : k.isNotDrag) ?? !1,
623
+ isEditCol: (k == null ? void 0 : k.isEditCol) ?? !1,
624
+ isOperate: (k == null ? void 0 : k.isOperate) ?? !1,
625
+ id: (k == null ? void 0 : k.id) ?? Q
626
+ }), a.value = (H = a.value) == null ? void 0 : H.map((k, Q) => k = {
627
+ label: (k == null ? void 0 : k.label) ?? "",
628
+ type: (k == null ? void 0 : k.type) ?? "",
629
+ textColor: (k == null ? void 0 : k.textColor) ?? "#000000",
630
+ id: (k == null ? void 0 : k.id) ?? Q
631
+ }), l.value = (I = l.value) == null ? void 0 : I.map((k, Q) => k = {
632
+ label: (k == null ? void 0 : k.label) ?? "",
633
+ type: (k == null ? void 0 : k.type) ?? "",
634
+ background: (k == null ? void 0 : k.textColor) ?? "#FFFFFF",
635
+ id: (k == null ? void 0 : k.id) ?? Q
636
+ }));
637
+ },
638
+ { deep: !0, immediate: !0 }
639
+ ), de(
640
+ () => c.value,
641
+ () => {
642
+ var E;
643
+ let b = v(o.value);
644
+ const m = b == null ? void 0 : b.find((S) => S.key === "page");
645
+ m != null && m.contents ? b = b == null ? void 0 : b.map((S) => {
646
+ var D;
647
+ return (S == null ? void 0 : S.key) === "page" && (S.contents = (D = c.value) == null ? void 0 : D[0].value), S;
648
+ }) : b.push({
649
+ key: "page",
650
+ contents: (E = c.value) == null ? void 0 : E[0].value
651
+ }), o.value = b;
652
+ },
653
+ { immediate: !0, deep: !0 }
654
+ );
655
+ const g = () => {
656
+ const b = v(s.value);
657
+ let m = v(o.value);
658
+ b.push({
659
+ label: "",
660
+ prop: "",
661
+ width: "",
662
+ fixed: void 0,
663
+ sortable: !1,
664
+ align: "center",
665
+ showOverflowTooltip: !0,
666
+ isNotDrag: !1,
667
+ isEditCol: !1,
668
+ isOperate: !1,
669
+ id: y.value
670
+ }), s.value = b, y.value++;
671
+ const E = m == null ? void 0 : m.find((S) => (S == null ? void 0 : S.key) === "header");
672
+ E != null && E.contents ? (E.contents = b, m = m == null ? void 0 : m.map((S) => ((S == null ? void 0 : S.key) === "header" && (S.contents = b), S))) : m.push({
673
+ key: "header",
674
+ contents: b
675
+ }), o.value = m;
676
+ }, A = () => {
677
+ const b = v(a.value);
678
+ let m = v(o.value);
679
+ b.push({
680
+ label: "",
681
+ type: "",
682
+ textColor: "#000000",
683
+ id: y.value
684
+ }), a.value = b, y.value++;
685
+ const E = m == null ? void 0 : m.find((S) => (S == null ? void 0 : S.key) === "rowButton");
686
+ E != null && E.contents ? (E.contents = b, m = m == null ? void 0 : m.map((S) => ((S == null ? void 0 : S.key) === "rowButton" && (S.contents = b), S))) : m.push({
687
+ key: "rowButton",
688
+ contents: b
689
+ }), o.value = m;
690
+ }, p = () => {
691
+ const b = v(i.value);
692
+ let m = v(o.value);
693
+ b.push({
694
+ label: "",
695
+ type: "",
696
+ background: "#FFFFFF",
697
+ id: y.value
698
+ }), i.value = b, y.value++;
699
+ const E = m == null ? void 0 : m.find((S) => (S == null ? void 0 : S.key) === "extraButton");
700
+ E != null && E.contents ? (E.contents = b, m = m == null ? void 0 : m.map((S) => ((S == null ? void 0 : S.key) === "extraButton" && (S.contents = b), S))) : m.push({
701
+ key: "extraButton",
702
+ contents: b
703
+ }), o.value = m;
704
+ }, h = (b) => {
705
+ const m = v(a.value);
706
+ let E = v(o.value);
707
+ a.value = m.filter((D) => D.id !== b.id);
708
+ const S = E == null ? void 0 : E.find((D) => D.key === "rowButton");
709
+ S != null && S.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "rowButton" && (D.contents = m.filter((N) => N.id !== b.id)), D))), o.value = E;
710
+ }, u = (b) => {
711
+ const m = v(i.value);
712
+ let E = v(o.value);
713
+ i.value = m.filter((D) => D.id !== b.id);
714
+ const S = E == null ? void 0 : E.find((D) => D.key === "extraButton");
715
+ S != null && S.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "extraButton" && (D.contents = m.filter((N) => N.id !== b.id)), D))), o.value = E;
716
+ }, R = (b) => {
717
+ const m = v(s.value);
718
+ let E = v(o.value);
719
+ s.value = m.filter((D) => D.id !== b.id);
720
+ const S = E == null ? void 0 : E.find((D) => D.key === "header");
721
+ S != null && S.contents && (E = E == null ? void 0 : E.map((D) => ((D == null ? void 0 : D.key) === "header" && (D.contents = m.filter((N) => N.id !== b.id)), D))), o.value = E;
722
+ };
723
+ return de(
724
+ () => [o.value, s.value],
725
+ () => {
726
+ let b = v(o.value);
727
+ const m = b == null ? void 0 : b.find((E) => (E == null ? void 0 : E.key) === "header");
728
+ m != null && m.contents ? (m.contents = s.value, b = b == null ? void 0 : b.map((E) => ((E == null ? void 0 : E.key) === "header" && (E.contents = s.value), E))) : b.push({
729
+ key: "header",
730
+ contents: s.value
731
+ }), r("change", b);
732
+ },
733
+ { deep: !0, immediate: !0 }
734
+ ), (b, m) => {
735
+ const E = We("el-button");
736
+ return X(), re("div", ur, [
737
+ M("div", fr, [
738
+ M("div", pr, [
739
+ m[1] || (m[1] = M("div", null, Z("表头"), -1)),
740
+ Y(E, {
741
+ class: "blue-operate-button",
742
+ icon: "ele-Plus",
743
+ onClick: g
744
+ }, {
745
+ default: ce(() => m[0] || (m[0] = [
746
+ Ue(Z("新建"))
747
+ ])),
748
+ _: 1,
749
+ __: [0]
750
+ })
751
+ ]),
752
+ M("div", dr, [
753
+ Y(Oe, {
754
+ columns: O,
755
+ isShowPagination: !1,
756
+ isShowEdit: !1,
757
+ isMoveColumn: !1,
758
+ tableData: s.value,
759
+ onDeleteRow: R
760
+ }, null, 8, ["tableData"])
761
+ ]),
762
+ M("div", hr, [
763
+ m[3] || (m[3] = M("div", null, Z("行内按钮"), -1)),
764
+ Y(E, {
765
+ class: "blue-operate-button",
766
+ icon: "ele-Plus",
767
+ onClick: A
768
+ }, {
769
+ default: ce(() => m[2] || (m[2] = [
770
+ Ue(Z("新建"))
771
+ ])),
772
+ _: 1,
773
+ __: [2]
774
+ })
775
+ ]),
776
+ M("div", mr, [
777
+ Y(Oe, {
778
+ columns: d.value,
779
+ isShowPagination: !1,
780
+ isShowEdit: !1,
781
+ isMoveColumn: !1,
782
+ tableData: a.value,
783
+ onDeleteRow: h
784
+ }, null, 8, ["columns", "tableData"])
785
+ ]),
786
+ M("div", yr, [
787
+ m[5] || (m[5] = M("div", null, Z("表格外部按钮"), -1)),
788
+ Y(E, {
789
+ class: "blue-operate-button",
790
+ icon: "ele-Plus",
791
+ onClick: p
792
+ }, {
793
+ default: ce(() => m[4] || (m[4] = [
794
+ Ue(Z("新建"))
795
+ ])),
796
+ _: 1,
797
+ __: [4]
798
+ })
799
+ ]),
800
+ M("div", br, [
801
+ Y(Oe, {
802
+ columns: l.value,
803
+ isShowPagination: !1,
804
+ isShowEdit: !1,
805
+ isMoveColumn: !1,
806
+ tableData: i.value,
807
+ onDeleteRow: u
808
+ }, null, 8, ["columns", "tableData"])
809
+ ]),
810
+ m[6] || (m[6] = M("div", { class: "operate-title" }, [
811
+ M("div", null, Z("分页"))
812
+ ], -1)),
813
+ M("div", gr, [
814
+ Y(et, {
815
+ rowContents: c.value,
816
+ onChange: _
817
+ }, null, 8, ["rowContents"])
818
+ ])
819
+ ])
820
+ ]);
821
+ };
822
+ }
823
+ }, kr = /* @__PURE__ */ Re(vr, [["__scopeId", "data-v-877911eb"]]), Er = { class: "form-operate-content" }, Sr = { class: "form-operate-item" }, Rr = { class: "operate-title" }, _r = { class: "operate-content" }, wr = { class: "operate-title" }, Or = { class: "operate-content" }, Tr = { class: "operate-content" }, Ar = {
824
+ __name: "operate",
825
+ props: {
826
+ itemContents: {
827
+ type: Array,
828
+ default: () => []
829
+ },
830
+ originalItemContents: {
831
+ type: Array,
832
+ default: () => []
833
+ }
834
+ },
835
+ emits: ["change"],
836
+ setup(e, { emit: t }) {
837
+ const n = e, r = t, o = U([{
838
+ name: "isRowFlex",
839
+ label: "是否横向布局",
840
+ type: "Switch",
841
+ value: !0
842
+ }]), s = U([{
843
+ label: "字段名称",
844
+ prop: "label",
845
+ type: "edit"
846
+ }, {
847
+ label: "字段类型",
848
+ prop: "type",
849
+ type: "edit"
850
+ }, {
851
+ label: "字段值",
852
+ prop: "key",
853
+ type: "edit"
854
+ }, {
855
+ label: "字段选项值",
856
+ prop: "options",
857
+ type: "edit"
858
+ }, {
859
+ label: "操作",
860
+ prop: "operate",
861
+ type: "operate",
862
+ sortable: !1
863
+ }]), a = U([{
864
+ label: "字段名称",
865
+ prop: "label",
866
+ type: "edit"
867
+ }, {
868
+ label: "字段类型",
869
+ prop: "type",
870
+ type: "edit"
871
+ }, {
872
+ label: "按钮背景颜色",
873
+ prop: "background",
874
+ type: "edit",
875
+ columnType: "Color"
876
+ }, {
877
+ label: "操作",
878
+ prop: "operate",
879
+ type: "operate",
880
+ sortable: !1
881
+ }]), l = U([]), d = U([]), i = U([]), y = U(0);
882
+ de(
883
+ () => n.originalItemContents,
884
+ () => {
885
+ var p, h, u, R, b, m, E, S, D, N;
886
+ !n.originalItemContents || n.originalItemContents.length === 0 || (d.value = v(n.originalItemContents), i.value = (h = (p = d.value) == null ? void 0 : p.find((w) => (w == null ? void 0 : w.key) === "formContent")) == null ? void 0 : h.contents, l.value = (R = (u = d.value) == null ? void 0 : u.find((w) => (w == null ? void 0 : w.key) === "formButton")) == null ? void 0 : R.contents, i.value = (b = i.value) == null ? void 0 : b.map((w, K) => w = {
887
+ label: (w == null ? void 0 : w.label) ?? "",
888
+ type: (w == null ? void 0 : w.type) ?? "",
889
+ key: (w == null ? void 0 : w.key) ?? "",
890
+ options: (w == null ? void 0 : w.options) ?? "",
891
+ id: (w == null ? void 0 : w.id) ?? K
892
+ }), l.value = (m = l.value) == null ? void 0 : m.map((w, K) => w = {
893
+ label: (w == null ? void 0 : w.label) ?? "",
894
+ type: (w == null ? void 0 : w.type) ?? "",
895
+ background: (w == null ? void 0 : w.background) ?? "#000000",
896
+ id: (w == null ? void 0 : w.id) ?? K
897
+ }), o.value = (S = (E = d.value) == null ? void 0 : E.find((w) => (w == null ? void 0 : w.key) === "formFlex")) != null && S.contents ? [{
898
+ name: "isRowFlex",
899
+ label: "是否横向布局",
900
+ type: "Switch",
901
+ value: (N = (D = d.value) == null ? void 0 : D.find((w) => (w == null ? void 0 : w.key) === "formFlex")) == null ? void 0 : N.contents
902
+ }] : [{
903
+ name: "isRowFlex",
904
+ label: "是否横向布局",
905
+ type: "Switch",
906
+ value: !0
907
+ }]);
908
+ },
909
+ { deep: !0, immediate: !0 }
910
+ );
911
+ const c = () => {
912
+ const p = v(l.value);
913
+ let h = v(d.value);
914
+ p.push({
915
+ label: "",
916
+ type: "",
917
+ background: "#000000",
918
+ id: y.value
919
+ }), l.value = p, y.value++;
920
+ const u = h == null ? void 0 : h.find((R) => (R == null ? void 0 : R.key) === "formButton");
921
+ u != null && u.contents ? (u.contents = p, h = h == null ? void 0 : h.map((R) => ((R == null ? void 0 : R.key) === "formButton" && (R.contents = p), R))) : h.push({
922
+ key: "formButton",
923
+ contents: p
924
+ }), d.value = h;
925
+ }, O = () => {
926
+ const p = v(i.value);
927
+ let h = v(d.value);
928
+ p.push({
929
+ label: "",
930
+ type: "",
931
+ key: "",
932
+ options: "",
933
+ id: y.value
934
+ }), i.value = p, y.value++;
935
+ const u = h == null ? void 0 : h.find((R) => (R == null ? void 0 : R.key) === "formContent");
936
+ u != null && u.contents ? (u.contents = p, h = h == null ? void 0 : h.map((R) => ((R == null ? void 0 : R.key) === "formContent" && (R.contents = p), R))) : h.push({
937
+ key: "formContent",
938
+ contents: p
939
+ }), d.value = h;
940
+ }, _ = (p) => {
941
+ const h = v(l.value);
942
+ let u = v(d.value);
943
+ l.value = h.filter((b) => b.id !== p.id);
944
+ const R = u == null ? void 0 : u.find((b) => b.key === "formButton");
945
+ R != null && R.contents && (u = u == null ? void 0 : u.map((b) => ((b == null ? void 0 : b.key) === "formButton" && (b.contents = h.filter((m) => m.id !== p.id)), b))), d.value = u;
946
+ }, g = (p) => {
947
+ const h = v(i.value);
948
+ let u = v(d.value);
949
+ i.value = h.filter((b) => b.id !== p.id);
950
+ const R = u == null ? void 0 : u.find((b) => b.key === "formContent");
951
+ R != null && R.contents && (u = u == null ? void 0 : u.map((b) => ((b == null ? void 0 : b.key) === "formContent" && (b.contents = h.filter((m) => m.id !== p.id)), b))), d.value = u;
952
+ }, A = (p) => {
953
+ let h = v(d.value);
954
+ const u = h == null ? void 0 : h.find((R) => R.key === "formFlex");
955
+ (u == null ? void 0 : u.contents) !== void 0 ? h = h == null ? void 0 : h.map((R) => ((R == null ? void 0 : R.key) === "formFlex" && (R.contents = p == null ? void 0 : p.isRowFlex), R)) : h.push({
956
+ key: "formFlex",
957
+ contents: p == null ? void 0 : p.isRowFlex
958
+ }), d.value = h;
959
+ };
960
+ return de(
961
+ () => [d.value, i.value],
962
+ () => {
963
+ let p = v(d.value);
964
+ const h = p == null ? void 0 : p.find((u) => (u == null ? void 0 : u.key) === "formContent");
965
+ h != null && h.contents ? (h.contents = i.value, p = p == null ? void 0 : p.map((u) => ((u == null ? void 0 : u.key) === "formContent" && (u.contents = i.value), u))) : p.push({
966
+ key: "formContent",
967
+ contents: i.value
968
+ }), r("change", p);
969
+ },
970
+ { deep: !0, immediate: !0 }
971
+ ), (p, h) => {
972
+ const u = We("el-button");
973
+ return X(), re("div", Er, [
974
+ M("div", Sr, [
975
+ M("div", Rr, [
976
+ h[1] || (h[1] = M("div", null, Z("表单信息"), -1)),
977
+ Y(u, {
978
+ class: "blue-operate-button",
979
+ icon: "ele-Plus",
980
+ onClick: O
981
+ }, {
982
+ default: ce(() => h[0] || (h[0] = [
983
+ Ue(Z("新建"))
984
+ ])),
985
+ _: 1,
986
+ __: [0]
987
+ })
988
+ ]),
989
+ M("div", _r, [
990
+ Y(Oe, {
991
+ columns: s.value,
992
+ isShowPagination: !1,
993
+ isShowEdit: !1,
994
+ isMoveColumn: !1,
995
+ tableData: i.value,
996
+ onDeleteRow: g
997
+ }, null, 8, ["columns", "tableData"])
998
+ ]),
999
+ M("div", wr, [
1000
+ h[3] || (h[3] = M("div", null, Z("表单按钮"), -1)),
1001
+ Y(u, {
1002
+ class: "blue-operate-button",
1003
+ icon: "ele-Plus",
1004
+ onClick: c
1005
+ }, {
1006
+ default: ce(() => h[2] || (h[2] = [
1007
+ Ue(Z("新建"))
1008
+ ])),
1009
+ _: 1,
1010
+ __: [2]
1011
+ })
1012
+ ]),
1013
+ M("div", Or, [
1014
+ Y(Oe, {
1015
+ columns: a.value,
1016
+ isShowPagination: !1,
1017
+ isShowEdit: !1,
1018
+ isMoveColumn: !1,
1019
+ tableData: l.value,
1020
+ onDeleteRow: _
1021
+ }, null, 8, ["columns", "tableData"])
1022
+ ]),
1023
+ h[4] || (h[4] = M("div", { class: "operate-title" }, [
1024
+ M("div", null, Z("表单布局"))
1025
+ ], -1)),
1026
+ M("div", Tr, [
1027
+ Y(et, {
1028
+ rowContents: o.value,
1029
+ onChange: A
1030
+ }, null, 8, ["rowContents"])
1031
+ ])
1032
+ ])
1033
+ ]);
1034
+ };
1035
+ }
1036
+ }, Cr = /* @__PURE__ */ Re(Ar, [["__scopeId", "data-v-a36b8468"]]), xr = U([
1037
+ {
1038
+ name: "表格",
1039
+ type: "table",
1040
+ comp: "Table",
1041
+ icon: "Grid"
1042
+ },
1043
+ {
1044
+ name: "表单",
1045
+ type: "form",
1046
+ comp: "Form",
1047
+ icon: "Film"
1048
+ },
1049
+ {
1050
+ name: "折叠",
1051
+ type: "fold",
1052
+ comp: "Fold",
1053
+ icon: "Fold"
1054
+ }
1055
+ ]), Dr = {
1056
+ Table: ar,
1057
+ Form: cr,
1058
+ TableOperate: kr,
1059
+ FormOperate: Cr,
1060
+ Fold: Kn
1061
+ // 添加其他组件...
1062
+ };
1063
+ function ln(e) {
1064
+ return Dr[e] || null;
1065
+ }
1066
+ const Fr = { class: "type-select" }, Nr = ["onClick"], Pr = { class: "list-icon" }, Ur = {
1067
+ __name: "index",
1068
+ setup(e) {
1069
+ const t = Ye(he), { itemData: n } = Ee(t), r = (s) => Mn[s], o = (s) => {
1070
+ const a = v(n.value);
1071
+ a.push({
1072
+ comp: s.comp,
1073
+ name: s.name,
1074
+ compData: []
1075
+ }), t.setItemData(a);
1076
+ };
1077
+ return (s, a) => (X(), re("div", Fr, [
1078
+ (X(!0), re(Ze, null, Qe(en(xr), (l, d) => (X(), re("div", {
1079
+ class: "type-list",
1080
+ key: d
1081
+ }, [
1082
+ M("div", {
1083
+ class: "list-content",
1084
+ onClick: (i) => o(l)
1085
+ }, [
1086
+ M("div", Pr, [
1087
+ (X(), Be(Et(r(l.icon))))
1088
+ ]),
1089
+ M("div", null, Z(l.name), 1)
1090
+ ], 8, Nr)
1091
+ ]))), 128))
1092
+ ]));
1093
+ }
1094
+ }, qs = /* @__PURE__ */ Re(Ur, [["__scopeId", "data-v-fe4aecc8"]]), Br = { class: "fill-content" }, jr = { class: "operate-content" }, $r = { class: "collapse-title" }, Lr = { class: "comp-child" }, qr = {
1095
+ __name: "index",
1096
+ setup(e) {
1097
+ const t = Ye(he), { itemData: n, originalData: r } = Ee(t), o = U([]), s = U([]);
1098
+ de(
1099
+ () => n.value,
1100
+ () => {
1101
+ var d;
1102
+ !n.value || ((d = n.value) == null ? void 0 : d.length) === 0 || (o.value = v(n.value));
1103
+ },
1104
+ { deep: !0, immediate: !0 }
1105
+ );
1106
+ const a = (d) => ln(d), l = (d, i, y) => {
1107
+ if (!d || d.length === 0) return;
1108
+ let c = v(n.value);
1109
+ const O = v(i);
1110
+ O.compData = d, c = c == null ? void 0 : c.map((_, g) => (g === y && (_ = O), _)), t.setItemData(c);
1111
+ };
1112
+ return (d, i) => {
1113
+ const y = We("el-collapse-item"), c = We("el-collapse");
1114
+ return X(), re("div", Br, [
1115
+ i[1] || (i[1] = M("div", { class: "fill-operate" }, Z("操作栏"), -1)),
1116
+ M("div", jr, [
1117
+ Y(c, {
1118
+ modelValue: s.value,
1119
+ "onUpdate:modelValue": i[0] || (i[0] = (O) => s.value = O),
1120
+ class: "collapse-content"
1121
+ }, {
1122
+ default: ce(() => [
1123
+ (X(!0), re(Ze, null, Qe(o.value, (O, _) => (X(), Be(y, {
1124
+ key: _,
1125
+ name: _
1126
+ }, {
1127
+ title: ce(() => [
1128
+ M("div", $r, Z(O.name), 1)
1129
+ ]),
1130
+ default: ce(() => {
1131
+ var g, A;
1132
+ return [
1133
+ M("div", Lr, [
1134
+ (X(), Be(Et(a(O.comp + "Operate")), {
1135
+ itemContents: O == null ? void 0 : O.compData,
1136
+ originalItemContents: (A = (g = en(r)) == null ? void 0 : g.find((p, h) => h === _)) == null ? void 0 : A.compData,
1137
+ onChange: (p) => l(p, O, _)
1138
+ }, null, 40, ["itemContents", "originalItemContents", "onChange"]))
1139
+ ])
1140
+ ];
1141
+ }),
1142
+ _: 2
1143
+ }, 1032, ["name"]))), 128))
1144
+ ]),
1145
+ _: 1
1146
+ }, 8, ["modelValue"])
1147
+ ])
1148
+ ]);
1149
+ };
1150
+ }
1151
+ }, Js = /* @__PURE__ */ Re(qr, [["__scopeId", "data-v-a216b035"]]), Jr = {
1152
+ key: 0,
1153
+ class: "show-content"
1154
+ }, Mr = {
1155
+ __name: "index",
1156
+ setup(e) {
1157
+ const t = Ye(he), { itemData: n } = Ee(t), r = U([]);
1158
+ de(
1159
+ () => n.value,
1160
+ () => {
1161
+ var s;
1162
+ !n.value || ((s = n.value) == null ? void 0 : s.length) === 0 || (r.value = v(n.value));
1163
+ },
1164
+ { deep: !0, immediate: !0 }
1165
+ );
1166
+ const o = (s) => ln(s);
1167
+ return (s, a) => {
1168
+ var l;
1169
+ return ((l = r.value) == null ? void 0 : l.length) > 0 ? (X(), re("div", Jr, [
1170
+ (X(!0), re(Ze, null, Qe(r.value, (d, i) => (X(), re("div", {
1171
+ class: "item-content",
1172
+ key: i
1173
+ }, [
1174
+ M("div", null, Z(d.name), 1),
1175
+ (X(), Be(Et(o(d.comp)), {
1176
+ itemData: d == null ? void 0 : d.compData,
1177
+ childItemData: d == null ? void 0 : d.itemChildData,
1178
+ key: i
1179
+ }, null, 8, ["itemData", "childItemData"]))
1180
+ ]))), 128))
1181
+ ])) : Yt("", !0);
1182
+ };
1183
+ }
1184
+ }, Ms = /* @__PURE__ */ Re(Mr, [["__scopeId", "data-v-79320497"]]), ne = [
1185
+ {
1186
+ key: "FormName",
1187
+ value: "Form"
1188
+ },
1189
+ {
1190
+ key: "TableName",
1191
+ value: "Table"
1192
+ },
1193
+ {
1194
+ key: "MenuName",
1195
+ value: "Menu"
1196
+ },
1197
+ {
1198
+ key: "GroupName",
1199
+ value: "Group"
1200
+ },
1201
+ {
1202
+ key: "SystemKey",
1203
+ value: "System"
1204
+ }
1205
+ ], te = [
1206
+ {
1207
+ key: "FormDirect",
1208
+ value: "formFlex"
1209
+ },
1210
+ {
1211
+ key: "Form",
1212
+ value: "formContent"
1213
+ },
1214
+ {
1215
+ key: "FormButton",
1216
+ value: "formButton"
1217
+ },
1218
+ {
1219
+ key: "FormFlex",
1220
+ value: "formWrap"
1221
+ },
1222
+ {
1223
+ key: "TableColumns",
1224
+ value: "header"
1225
+ },
1226
+ {
1227
+ key: "TableButton",
1228
+ value: "extraButton"
1229
+ },
1230
+ {
1231
+ key: "TableLineButton",
1232
+ value: "rowButton"
1233
+ },
1234
+ {
1235
+ key: "Table",
1236
+ value: "tableContents"
1237
+ },
1238
+ {
1239
+ key: "TableIndex",
1240
+ value: "tableIndex"
1241
+ },
1242
+ {
1243
+ key: "Menus",
1244
+ value: "menuContents"
1245
+ },
1246
+ {
1247
+ key: "GroupContents",
1248
+ value: "groupContents"
1249
+ }
1250
+ ], Je = U(0), ct = U(0), zr = (e) => {
1251
+ let t;
1252
+ e.includes(`\r
1253
+ `) ? t = e.split(`\r
1254
+ `).filter((o) => o.trim() !== "") : t = e.split(`
1255
+ `).filter((o) => o.trim() !== "");
1256
+ const n = [];
1257
+ let r = "";
1258
+ for (const o of t)
1259
+ o.includes("{") || r.includes("{") || o.includes("[") || r.includes("[") || o.includes("【") || r.includes("【") || o.includes("(") || r.includes("(") || o.includes("(") || r.includes("(") ? (r += o.trim(), v(r).split("{").length - 1 === v(r).split("}").length - 1 && v(r).split("【").length - 1 === v(r).split("】").length - 1 && v(r).split("[").length - 1 === v(r).split("]").length - 1 && v(r).split("(").length - 1 === v(r).split(")").length - 1 && v(r).split("(").length - 1 === v(r).split(")").length - 1 && (n.push(r), r = "")) : n.push(o.trim());
1260
+ return n;
1261
+ }, Hr = (e) => {
1262
+ const t = e.trim().replace(/^'|'$/g, ""), n = /((?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*(.*?)(?=\s*(?:(?:\$?[a-zA-Z_][a-zA-Z0-9_]*\$?\([^)]*\))|[a-zA-Z_][a-zA-Z0-9_]*)\s*=|$)/g, r = {};
1263
+ let o;
1264
+ for (; (o = n.exec(t)) !== null; ) {
1265
+ const s = o[1];
1266
+ let a = o[2].trim();
1267
+ (a.match(/\[/g) || []).length !== (a.match(/\]/g) || []).length && (a = a == null ? void 0 : a.replace(/]$/, "")), r[s] ? (r[s + ct.value] && ct.value++, r[s + ct.value] = s + "=" + a) : r[s] = s + "=" + a;
1268
+ }
1269
+ return r;
1270
+ }, cn = (e) => {
1271
+ const [t, n] = e.split("=").map((s) => s.trim()), r = t.replace(/['"]/g, ""), o = n.replace(/^['"]|['"]$/g, "");
1272
+ return { key: r, value: o };
1273
+ }, Ir = (e) => {
1274
+ var a;
1275
+ let t = [];
1276
+ const [n, r] = e.split(/=(.+)/), o = n.replace(/['"]/g, "").trim(), s = r.replace(/^['"]|['"]$/g, "");
1277
+ return (a = Object.values(Hr(s))) == null || a.forEach((l) => {
1278
+ t.push(cn(l));
1279
+ }), { key: o, value: t };
1280
+ }, ze = (e) => {
1281
+ try {
1282
+ return JSON.parse(e), !0;
1283
+ } catch {
1284
+ return !1;
1285
+ }
1286
+ }, un = (e) => {
1287
+ try {
1288
+ const t = e.replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",").replace(/:/g, ":").replace(/:\s*(?=,|}|$)/g, ': ""');
1289
+ if (v(t).split("{").length - 1 > 1) {
1290
+ let n = v(t).replace(/^\{(.*)\}$/, "[$1]");
1291
+ if (ze(n) && !n.includes("$") || (n = n.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g, '"$1$$$2"')), ze(n)) {
1292
+ const r = JSON.parse(n);
1293
+ let o = [];
1294
+ return r == null || r.forEach((s) => {
1295
+ var a;
1296
+ (a = Object.entries(v(s))) == null || a.forEach((l) => {
1297
+ Je.value++, o.push({
1298
+ id: Je.value,
1299
+ key: (l == null ? void 0 : l[0]) ?? "",
1300
+ value: (l == null ? void 0 : l[1]) === "" ? "" : l == null ? void 0 : l[1],
1301
+ // 如果值为空,则key设为空字符串,否则保留原值
1302
+ width: Object.keys(v(s)).length
1303
+ });
1304
+ });
1305
+ }), o;
1306
+ } else
1307
+ return console.error("转换类型不正确:"), [];
1308
+ } else if (ze(t)) {
1309
+ const n = JSON.parse(t);
1310
+ return Object.entries(n).map(([r, o]) => (Je.value++, {
1311
+ id: Je.value,
1312
+ key: r,
1313
+ value: o === "" ? "" : o,
1314
+ // 如果值为空,则key设为空字符串,否则保留原值
1315
+ width: 1
1316
+ }));
1317
+ } else
1318
+ return t;
1319
+ } catch (t) {
1320
+ return console.error("转换失败:", t), [];
1321
+ }
1322
+ }, Vr = (e, t) => {
1323
+ try {
1324
+ if (ne != null && ne.find((n) => (n == null ? void 0 : n.key) === t))
1325
+ return JSON.parse(e.replace(/[’]|[‘]|[']/g, '"'));
1326
+ if (v(e).split("[").length - 1 > 1) {
1327
+ const n = v(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1328
+ return JSON.parse(n);
1329
+ } else {
1330
+ const n = v(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",");
1331
+ if (ze(n)) {
1332
+ const r = JSON.parse(n);
1333
+ return Array.isArray(r) ? r.map((o) => ({ label: o })) : r;
1334
+ } else
1335
+ return un(v(e));
1336
+ }
1337
+ } catch (n) {
1338
+ return console.error("解析失败:", n), e;
1339
+ }
1340
+ }, Wr = (e) => ({ [e == null ? void 0 : e.key]: Vr(e == null ? void 0 : e.value, e == null ? void 0 : e.key) }), Kr = (e) => {
1341
+ try {
1342
+ if (v(e).split("[").length - 1 > 1) {
1343
+ const t = v(e).replace(/[’]|[‘]|[']/g, '"').replaceAll(/,/g, ",").replaceAll("(", "[").replaceAll(")", "]").replaceAll("],]", "]]");
1344
+ return JSON.parse(t);
1345
+ } else
1346
+ return JSON.parse(v(e).replace(/[’]|[‘]|[']/g, '"').replace(/,/g, ",")).map((n) => ({ label: n }));
1347
+ } catch (t) {
1348
+ return console.error("解析失败:", t), e;
1349
+ }
1350
+ }, fn = (e) => {
1351
+ var t, n, r, o, s, a;
1352
+ try {
1353
+ const l = zr((n = (t = v(e)) == null ? void 0 : t.replace("(", "(")) == null ? void 0 : n.replace(")", ")")), d = (r = v(l)) == null ? void 0 : r.map((c) => {
1354
+ var _, g;
1355
+ let O = (g = (_ = v(c)) == null ? void 0 : _.split("=")) == null ? void 0 : g[0];
1356
+ return O != null && O.includes("GroupContents") ? Ir(c) : cn(c);
1357
+ }), i = [];
1358
+ (o = v(d)) == null || o.forEach((c) => {
1359
+ var O, _, g, A, p;
1360
+ ne != null && ne.find((h) => {
1361
+ var u, R;
1362
+ return ((u = h == null ? void 0 : h.key) == null ? void 0 : u.toUpperCase()) === ((R = c == null ? void 0 : c.key) == null ? void 0 : R.toUpperCase());
1363
+ }) ? i.push({
1364
+ comp: ((O = ne == null ? void 0 : ne.find((h) => {
1365
+ var u, R;
1366
+ return ((u = h == null ? void 0 : h.key) == null ? void 0 : u.toUpperCase()) === ((R = c == null ? void 0 : c.key) == null ? void 0 : R.toUpperCase());
1367
+ })) == null ? void 0 : O.value) ?? "",
1368
+ name: (_ = c == null ? void 0 : c.value) == null ? void 0 : _.replace(/[’]|[‘]|[']/g, ""),
1369
+ compData: []
1370
+ }) : te != null && te.find((h) => {
1371
+ var u, R;
1372
+ return ((u = h == null ? void 0 : h.key) == null ? void 0 : u.toUpperCase()) === ((R = c == null ? void 0 : c.key) == null ? void 0 : R.toUpperCase());
1373
+ }) && ((i == null ? void 0 : i.length) === 0 && (g = c.key) != null && g.includes("Menus") && i.push({
1374
+ comp: "Menu",
1375
+ name: "",
1376
+ compData: []
1377
+ }), (A = i == null ? void 0 : i[(i == null ? void 0 : i.length) - 1]) != null && A.compData && i[(i == null ? void 0 : i.length) - 1].compData.push({
1378
+ key: (p = te == null ? void 0 : te.find((h) => {
1379
+ var u, R;
1380
+ return ((u = h == null ? void 0 : h.key) == null ? void 0 : u.toUpperCase()) === ((R = c == null ? void 0 : c.key) == null ? void 0 : R.toUpperCase());
1381
+ })) == null ? void 0 : p.value,
1382
+ contents: c == null ? void 0 : c.value
1383
+ }));
1384
+ }), console.log("newContents", i);
1385
+ let y = (s = v(i)) == null ? void 0 : s.map((c) => {
1386
+ var O;
1387
+ return c != null && c.compData && (c.compData = (O = c == null ? void 0 : c.compData) == null ? void 0 : O.map((_) => {
1388
+ var g, A, p, h, u, R, b, m, E, S, D;
1389
+ if ((_ == null ? void 0 : _.key) === "formFlex")
1390
+ _.contents = ((A = (g = _.contents) == null ? void 0 : g.replace(/[’]|[‘]|[']/g, "")) == null ? void 0 : A.toUpperCase()) !== "Vertical".toUpperCase();
1391
+ else if ((_ == null ? void 0 : _.key) === "groupContents")
1392
+ _.contents = (p = v(_.contents)) == null ? void 0 : p.map((N) => Wr(v(N)));
1393
+ else if (((u = (h = _.contents) == null ? void 0 : h.trim()) != null && u.startsWith("[") || (b = (R = _.contents) == null ? void 0 : R.trim()) != null && b.startsWith("【")) && ((E = (m = _.contents) == null ? void 0 : m.trim()) != null && E.endsWith("]") || (D = (S = _.contents) == null ? void 0 : S.trim()) != null && D.endsWith("】")))
1394
+ _.contents = Kr(v(_.contents));
1395
+ else {
1396
+ if (!_.contents) return;
1397
+ _.contents = un(v(_.contents));
1398
+ }
1399
+ return _;
1400
+ })), c;
1401
+ });
1402
+ return y = (a = v(y)) == null ? void 0 : a.map((c) => {
1403
+ var O;
1404
+ return (c == null ? void 0 : c.comp) === "Group" && (c.compData = (O = c.compData) == null ? void 0 : O.map((_) => {
1405
+ var A;
1406
+ let g = [];
1407
+ return (A = _.contents) == null || A.forEach((p) => {
1408
+ var h, u, R, b, m, E, S, D, N, w, K, F;
1409
+ if (ne != null && ne.find((J) => {
1410
+ var z, H, I;
1411
+ return ((z = J == null ? void 0 : J.key) == null ? void 0 : z.toUpperCase()) === ((I = (H = Object.keys(p)) == null ? void 0 : H[0]) == null ? void 0 : I.toUpperCase());
1412
+ }))
1413
+ g.push({
1414
+ comp: (h = ne == null ? void 0 : ne.find((J) => {
1415
+ var z, H, I;
1416
+ return ((z = J == null ? void 0 : J.key) == null ? void 0 : z.toUpperCase()) === ((I = (H = Object.keys(p)) == null ? void 0 : H[0]) == null ? void 0 : I.toUpperCase());
1417
+ })) == null ? void 0 : h.value,
1418
+ name: (R = (u = Object.values(p)) == null ? void 0 : u[0]) == null ? void 0 : R.replace(/[’]|[‘]|[']/g, ""),
1419
+ compData: []
1420
+ });
1421
+ else if (te != null && te.find((J) => {
1422
+ var z, H, I;
1423
+ return ((z = J == null ? void 0 : J.key) == null ? void 0 : z.toUpperCase()) === ((I = (H = Object.keys(p)) == null ? void 0 : H[0]) == null ? void 0 : I.toUpperCase());
1424
+ })) {
1425
+ if ((g == null ? void 0 : g.length) === 0) return;
1426
+ (b = g == null ? void 0 : g[(g == null ? void 0 : g.length) - 1]) != null && b.compData && g[(g == null ? void 0 : g.length) - 1].compData.push({
1427
+ key: (m = te == null ? void 0 : te.find((J) => {
1428
+ var z, H, I;
1429
+ return ((z = J == null ? void 0 : J.key) == null ? void 0 : z.toUpperCase()) === ((I = (H = Object.keys(p)) == null ? void 0 : H[0]) == null ? void 0 : I.toUpperCase());
1430
+ })) == null ? void 0 : m.value,
1431
+ contents: (E = Object.values(p)) == null ? void 0 : E[0]
1432
+ });
1433
+ } else if ((D = (S = Object.keys(p)) == null ? void 0 : S[0]) != null && D.includes("$")) {
1434
+ const J = (w = (N = Object.keys(v(p))) == null ? void 0 : N[0]) == null ? void 0 : w.split("$");
1435
+ g[(g == null ? void 0 : g.length) - 1].compData.push({
1436
+ key: (K = te == null ? void 0 : te.find((z) => {
1437
+ var H, I;
1438
+ return ((H = z == null ? void 0 : z.key) == null ? void 0 : H.toUpperCase()) === ((I = J == null ? void 0 : J[0]) == null ? void 0 : I.toUpperCase());
1439
+ })) == null ? void 0 : K.value,
1440
+ contents: (F = Object.values(p)) == null ? void 0 : F[0],
1441
+ selectLabel: J == null ? void 0 : J[1]
1442
+ });
1443
+ }
1444
+ return p;
1445
+ }), _.contents = g, _;
1446
+ })), c;
1447
+ }), y;
1448
+ } catch {
1449
+ return !1;
1450
+ }
1451
+ }, zs = (e) => fn(e), Hs = (e) => !!fn(e);
1452
+ function pn(e, t) {
1453
+ return function() {
1454
+ return e.apply(t, arguments);
1455
+ };
1456
+ }
1457
+ const { toString: Gr } = Object.prototype, { getPrototypeOf: St } = Object, { iterator: tt, toStringTag: dn } = Symbol, nt = /* @__PURE__ */ ((e) => (t) => {
1458
+ const n = Gr.call(t);
1459
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
1460
+ })(/* @__PURE__ */ Object.create(null)), ue = (e) => (e = e.toLowerCase(), (t) => nt(t) === e), rt = (e) => (t) => typeof t === e, { isArray: Te } = Array, je = rt("undefined");
1461
+ function Xr(e) {
1462
+ return e !== null && !je(e) && e.constructor !== null && !je(e.constructor) && oe(e.constructor.isBuffer) && e.constructor.isBuffer(e);
1463
+ }
1464
+ const hn = ue("ArrayBuffer");
1465
+ function Zr(e) {
1466
+ let t;
1467
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && hn(e.buffer), t;
1468
+ }
1469
+ const Qr = rt("string"), oe = rt("function"), mn = rt("number"), ot = (e) => e !== null && typeof e == "object", Yr = (e) => e === !0 || e === !1, He = (e) => {
1470
+ if (nt(e) !== "object")
1471
+ return !1;
1472
+ const t = St(e);
1473
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(dn in e) && !(tt in e);
1474
+ }, eo = ue("Date"), to = ue("File"), no = ue("Blob"), ro = ue("FileList"), oo = (e) => ot(e) && oe(e.pipe), so = (e) => {
1475
+ let t;
1476
+ return e && (typeof FormData == "function" && e instanceof FormData || oe(e.append) && ((t = nt(e)) === "formdata" || // detect form-data instance
1477
+ t === "object" && oe(e.toString) && e.toString() === "[object FormData]"));
1478
+ }, ao = ue("URLSearchParams"), [lo, io, co, uo] = ["ReadableStream", "Request", "Response", "Headers"].map(ue), fo = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1479
+ function $e(e, t, { allOwnKeys: n = !1 } = {}) {
1480
+ if (e === null || typeof e > "u")
1481
+ return;
1482
+ let r, o;
1483
+ if (typeof e != "object" && (e = [e]), Te(e))
1484
+ for (r = 0, o = e.length; r < o; r++)
1485
+ t.call(null, e[r], r, e);
1486
+ else {
1487
+ const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length;
1488
+ let l;
1489
+ for (r = 0; r < a; r++)
1490
+ l = s[r], t.call(null, e[l], l, e);
1491
+ }
1492
+ }
1493
+ function yn(e, t) {
1494
+ t = t.toLowerCase();
1495
+ const n = Object.keys(e);
1496
+ let r = n.length, o;
1497
+ for (; r-- > 0; )
1498
+ if (o = n[r], t === o.toLowerCase())
1499
+ return o;
1500
+ return null;
1501
+ }
1502
+ const ge = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, bn = (e) => !je(e) && e !== ge;
1503
+ function dt() {
1504
+ const { caseless: e } = bn(this) && this || {}, t = {}, n = (r, o) => {
1505
+ const s = e && yn(t, o) || o;
1506
+ He(t[s]) && He(r) ? t[s] = dt(t[s], r) : He(r) ? t[s] = dt({}, r) : Te(r) ? t[s] = r.slice() : t[s] = r;
1507
+ };
1508
+ for (let r = 0, o = arguments.length; r < o; r++)
1509
+ arguments[r] && $e(arguments[r], n);
1510
+ return t;
1511
+ }
1512
+ const po = (e, t, n, { allOwnKeys: r } = {}) => ($e(t, (o, s) => {
1513
+ n && oe(o) ? e[s] = pn(o, n) : e[s] = o;
1514
+ }, { allOwnKeys: r }), e), ho = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), mo = (e, t, n, r) => {
1515
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
1516
+ value: t.prototype
1517
+ }), n && Object.assign(e.prototype, n);
1518
+ }, yo = (e, t, n, r) => {
1519
+ let o, s, a;
1520
+ const l = {};
1521
+ if (t = t || {}, e == null) return t;
1522
+ do {
1523
+ for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
1524
+ a = o[s], (!r || r(a, e, t)) && !l[a] && (t[a] = e[a], l[a] = !0);
1525
+ e = n !== !1 && St(e);
1526
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
1527
+ return t;
1528
+ }, bo = (e, t, n) => {
1529
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
1530
+ const r = e.indexOf(t, n);
1531
+ return r !== -1 && r === n;
1532
+ }, go = (e) => {
1533
+ if (!e) return null;
1534
+ if (Te(e)) return e;
1535
+ let t = e.length;
1536
+ if (!mn(t)) return null;
1537
+ const n = new Array(t);
1538
+ for (; t-- > 0; )
1539
+ n[t] = e[t];
1540
+ return n;
1541
+ }, vo = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && St(Uint8Array)), ko = (e, t) => {
1542
+ const r = (e && e[tt]).call(e);
1543
+ let o;
1544
+ for (; (o = r.next()) && !o.done; ) {
1545
+ const s = o.value;
1546
+ t.call(e, s[0], s[1]);
1547
+ }
1548
+ }, Eo = (e, t) => {
1549
+ let n;
1550
+ const r = [];
1551
+ for (; (n = e.exec(t)) !== null; )
1552
+ r.push(n);
1553
+ return r;
1554
+ }, So = ue("HTMLFormElement"), Ro = (e) => e.toLowerCase().replace(
1555
+ /[-_\s]([a-z\d])(\w*)/g,
1556
+ function(n, r, o) {
1557
+ return r.toUpperCase() + o;
1558
+ }
1559
+ ), qt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), _o = ue("RegExp"), gn = (e, t) => {
1560
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
1561
+ $e(n, (o, s) => {
1562
+ let a;
1563
+ (a = t(o, s, e)) !== !1 && (r[s] = a || o);
1564
+ }), Object.defineProperties(e, r);
1565
+ }, wo = (e) => {
1566
+ gn(e, (t, n) => {
1567
+ if (oe(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
1568
+ return !1;
1569
+ const r = e[n];
1570
+ if (oe(r)) {
1571
+ if (t.enumerable = !1, "writable" in t) {
1572
+ t.writable = !1;
1573
+ return;
1574
+ }
1575
+ t.set || (t.set = () => {
1576
+ throw Error("Can not rewrite read-only method '" + n + "'");
1577
+ });
1578
+ }
1579
+ });
1580
+ }, Oo = (e, t) => {
1581
+ const n = {}, r = (o) => {
1582
+ o.forEach((s) => {
1583
+ n[s] = !0;
1584
+ });
1585
+ };
1586
+ return Te(e) ? r(e) : r(String(e).split(t)), n;
1587
+ }, To = () => {
1588
+ }, Ao = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1589
+ function Co(e) {
1590
+ return !!(e && oe(e.append) && e[dn] === "FormData" && e[tt]);
1591
+ }
1592
+ const xo = (e) => {
1593
+ const t = new Array(10), n = (r, o) => {
1594
+ if (ot(r)) {
1595
+ if (t.indexOf(r) >= 0)
1596
+ return;
1597
+ if (!("toJSON" in r)) {
1598
+ t[o] = r;
1599
+ const s = Te(r) ? [] : {};
1600
+ return $e(r, (a, l) => {
1601
+ const d = n(a, o + 1);
1602
+ !je(d) && (s[l] = d);
1603
+ }), t[o] = void 0, s;
1604
+ }
1605
+ }
1606
+ return r;
1607
+ };
1608
+ return n(e, 0);
1609
+ }, Do = ue("AsyncFunction"), Fo = (e) => e && (ot(e) || oe(e)) && oe(e.then) && oe(e.catch), vn = ((e, t) => e ? setImmediate : t ? ((n, r) => (ge.addEventListener("message", ({ source: o, data: s }) => {
1610
+ o === ge && s === n && r.length && r.shift()();
1611
+ }, !1), (o) => {
1612
+ r.push(o), ge.postMessage(n, "*");
1613
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
1614
+ typeof setImmediate == "function",
1615
+ oe(ge.postMessage)
1616
+ ), No = typeof queueMicrotask < "u" ? queueMicrotask.bind(ge) : typeof process < "u" && process.nextTick || vn, Po = (e) => e != null && oe(e[tt]), f = {
1617
+ isArray: Te,
1618
+ isArrayBuffer: hn,
1619
+ isBuffer: Xr,
1620
+ isFormData: so,
1621
+ isArrayBufferView: Zr,
1622
+ isString: Qr,
1623
+ isNumber: mn,
1624
+ isBoolean: Yr,
1625
+ isObject: ot,
1626
+ isPlainObject: He,
1627
+ isReadableStream: lo,
1628
+ isRequest: io,
1629
+ isResponse: co,
1630
+ isHeaders: uo,
1631
+ isUndefined: je,
1632
+ isDate: eo,
1633
+ isFile: to,
1634
+ isBlob: no,
1635
+ isRegExp: _o,
1636
+ isFunction: oe,
1637
+ isStream: oo,
1638
+ isURLSearchParams: ao,
1639
+ isTypedArray: vo,
1640
+ isFileList: ro,
1641
+ forEach: $e,
1642
+ merge: dt,
1643
+ extend: po,
1644
+ trim: fo,
1645
+ stripBOM: ho,
1646
+ inherits: mo,
1647
+ toFlatObject: yo,
1648
+ kindOf: nt,
1649
+ kindOfTest: ue,
1650
+ endsWith: bo,
1651
+ toArray: go,
1652
+ forEachEntry: ko,
1653
+ matchAll: Eo,
1654
+ isHTMLForm: So,
1655
+ hasOwnProperty: qt,
1656
+ hasOwnProp: qt,
1657
+ // an alias to avoid ESLint no-prototype-builtins detection
1658
+ reduceDescriptors: gn,
1659
+ freezeMethods: wo,
1660
+ toObjectSet: Oo,
1661
+ toCamelCase: Ro,
1662
+ noop: To,
1663
+ toFiniteNumber: Ao,
1664
+ findKey: yn,
1665
+ global: ge,
1666
+ isContextDefined: bn,
1667
+ isSpecCompliantForm: Co,
1668
+ toJSONObject: xo,
1669
+ isAsyncFn: Do,
1670
+ isThenable: Fo,
1671
+ setImmediate: vn,
1672
+ asap: No,
1673
+ isIterable: Po
1674
+ };
1675
+ function B(e, t, n, r, o) {
1676
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
1677
+ }
1678
+ f.inherits(B, Error, {
1679
+ toJSON: function() {
1680
+ return {
1681
+ // Standard
1682
+ message: this.message,
1683
+ name: this.name,
1684
+ // Microsoft
1685
+ description: this.description,
1686
+ number: this.number,
1687
+ // Mozilla
1688
+ fileName: this.fileName,
1689
+ lineNumber: this.lineNumber,
1690
+ columnNumber: this.columnNumber,
1691
+ stack: this.stack,
1692
+ // Axios
1693
+ config: f.toJSONObject(this.config),
1694
+ code: this.code,
1695
+ status: this.status
1696
+ };
1697
+ }
1698
+ });
1699
+ const kn = B.prototype, En = {};
1700
+ [
1701
+ "ERR_BAD_OPTION_VALUE",
1702
+ "ERR_BAD_OPTION",
1703
+ "ECONNABORTED",
1704
+ "ETIMEDOUT",
1705
+ "ERR_NETWORK",
1706
+ "ERR_FR_TOO_MANY_REDIRECTS",
1707
+ "ERR_DEPRECATED",
1708
+ "ERR_BAD_RESPONSE",
1709
+ "ERR_BAD_REQUEST",
1710
+ "ERR_CANCELED",
1711
+ "ERR_NOT_SUPPORT",
1712
+ "ERR_INVALID_URL"
1713
+ // eslint-disable-next-line func-names
1714
+ ].forEach((e) => {
1715
+ En[e] = { value: e };
1716
+ });
1717
+ Object.defineProperties(B, En);
1718
+ Object.defineProperty(kn, "isAxiosError", { value: !0 });
1719
+ B.from = (e, t, n, r, o, s) => {
1720
+ const a = Object.create(kn);
1721
+ return f.toFlatObject(e, a, function(d) {
1722
+ return d !== Error.prototype;
1723
+ }, (l) => l !== "isAxiosError"), B.call(a, e.message, t, n, r, o), a.cause = e, a.name = e.name, s && Object.assign(a, s), a;
1724
+ };
1725
+ const Uo = null;
1726
+ function ht(e) {
1727
+ return f.isPlainObject(e) || f.isArray(e);
1728
+ }
1729
+ function Sn(e) {
1730
+ return f.endsWith(e, "[]") ? e.slice(0, -2) : e;
1731
+ }
1732
+ function Jt(e, t, n) {
1733
+ return e ? e.concat(t).map(function(o, s) {
1734
+ return o = Sn(o), !n && s ? "[" + o + "]" : o;
1735
+ }).join(n ? "." : "") : t;
1736
+ }
1737
+ function Bo(e) {
1738
+ return f.isArray(e) && !e.some(ht);
1739
+ }
1740
+ const jo = f.toFlatObject(f, {}, null, function(t) {
1741
+ return /^is[A-Z]/.test(t);
1742
+ });
1743
+ function st(e, t, n) {
1744
+ if (!f.isObject(e))
1745
+ throw new TypeError("target must be an object");
1746
+ t = t || new FormData(), n = f.toFlatObject(n, {
1747
+ metaTokens: !0,
1748
+ dots: !1,
1749
+ indexes: !1
1750
+ }, !1, function(A, p) {
1751
+ return !f.isUndefined(p[A]);
1752
+ });
1753
+ const r = n.metaTokens, o = n.visitor || y, s = n.dots, a = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(t);
1754
+ if (!f.isFunction(o))
1755
+ throw new TypeError("visitor must be a function");
1756
+ function i(g) {
1757
+ if (g === null) return "";
1758
+ if (f.isDate(g))
1759
+ return g.toISOString();
1760
+ if (!d && f.isBlob(g))
1761
+ throw new B("Blob is not supported. Use a Buffer instead.");
1762
+ return f.isArrayBuffer(g) || f.isTypedArray(g) ? d && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
1763
+ }
1764
+ function y(g, A, p) {
1765
+ let h = g;
1766
+ if (g && !p && typeof g == "object") {
1767
+ if (f.endsWith(A, "{}"))
1768
+ A = r ? A : A.slice(0, -2), g = JSON.stringify(g);
1769
+ else if (f.isArray(g) && Bo(g) || (f.isFileList(g) || f.endsWith(A, "[]")) && (h = f.toArray(g)))
1770
+ return A = Sn(A), h.forEach(function(R, b) {
1771
+ !(f.isUndefined(R) || R === null) && t.append(
1772
+ // eslint-disable-next-line no-nested-ternary
1773
+ a === !0 ? Jt([A], b, s) : a === null ? A : A + "[]",
1774
+ i(R)
1775
+ );
1776
+ }), !1;
1777
+ }
1778
+ return ht(g) ? !0 : (t.append(Jt(p, A, s), i(g)), !1);
1779
+ }
1780
+ const c = [], O = Object.assign(jo, {
1781
+ defaultVisitor: y,
1782
+ convertValue: i,
1783
+ isVisitable: ht
1784
+ });
1785
+ function _(g, A) {
1786
+ if (!f.isUndefined(g)) {
1787
+ if (c.indexOf(g) !== -1)
1788
+ throw Error("Circular reference detected in " + A.join("."));
1789
+ c.push(g), f.forEach(g, function(h, u) {
1790
+ (!(f.isUndefined(h) || h === null) && o.call(
1791
+ t,
1792
+ h,
1793
+ f.isString(u) ? u.trim() : u,
1794
+ A,
1795
+ O
1796
+ )) === !0 && _(h, A ? A.concat(u) : [u]);
1797
+ }), c.pop();
1798
+ }
1799
+ }
1800
+ if (!f.isObject(e))
1801
+ throw new TypeError("data must be an object");
1802
+ return _(e), t;
1803
+ }
1804
+ function Mt(e) {
1805
+ const t = {
1806
+ "!": "%21",
1807
+ "'": "%27",
1808
+ "(": "%28",
1809
+ ")": "%29",
1810
+ "~": "%7E",
1811
+ "%20": "+",
1812
+ "%00": "\0"
1813
+ };
1814
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
1815
+ return t[r];
1816
+ });
1817
+ }
1818
+ function Rt(e, t) {
1819
+ this._pairs = [], e && st(e, this, t);
1820
+ }
1821
+ const Rn = Rt.prototype;
1822
+ Rn.append = function(t, n) {
1823
+ this._pairs.push([t, n]);
1824
+ };
1825
+ Rn.toString = function(t) {
1826
+ const n = t ? function(r) {
1827
+ return t.call(this, r, Mt);
1828
+ } : Mt;
1829
+ return this._pairs.map(function(o) {
1830
+ return n(o[0]) + "=" + n(o[1]);
1831
+ }, "").join("&");
1832
+ };
1833
+ function $o(e) {
1834
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1835
+ }
1836
+ function _n(e, t, n) {
1837
+ if (!t)
1838
+ return e;
1839
+ const r = n && n.encode || $o;
1840
+ f.isFunction(n) && (n = {
1841
+ serialize: n
1842
+ });
1843
+ const o = n && n.serialize;
1844
+ let s;
1845
+ if (o ? s = o(t, n) : s = f.isURLSearchParams(t) ? t.toString() : new Rt(t, n).toString(r), s) {
1846
+ const a = e.indexOf("#");
1847
+ a !== -1 && (e = e.slice(0, a)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
1848
+ }
1849
+ return e;
1850
+ }
1851
+ class zt {
1852
+ constructor() {
1853
+ this.handlers = [];
1854
+ }
1855
+ /**
1856
+ * Add a new interceptor to the stack
1857
+ *
1858
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1859
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1860
+ *
1861
+ * @return {Number} An ID used to remove interceptor later
1862
+ */
1863
+ use(t, n, r) {
1864
+ return this.handlers.push({
1865
+ fulfilled: t,
1866
+ rejected: n,
1867
+ synchronous: r ? r.synchronous : !1,
1868
+ runWhen: r ? r.runWhen : null
1869
+ }), this.handlers.length - 1;
1870
+ }
1871
+ /**
1872
+ * Remove an interceptor from the stack
1873
+ *
1874
+ * @param {Number} id The ID that was returned by `use`
1875
+ *
1876
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1877
+ */
1878
+ eject(t) {
1879
+ this.handlers[t] && (this.handlers[t] = null);
1880
+ }
1881
+ /**
1882
+ * Clear all interceptors from the stack
1883
+ *
1884
+ * @returns {void}
1885
+ */
1886
+ clear() {
1887
+ this.handlers && (this.handlers = []);
1888
+ }
1889
+ /**
1890
+ * Iterate over all the registered interceptors
1891
+ *
1892
+ * This method is particularly useful for skipping over any
1893
+ * interceptors that may have become `null` calling `eject`.
1894
+ *
1895
+ * @param {Function} fn The function to call for each interceptor
1896
+ *
1897
+ * @returns {void}
1898
+ */
1899
+ forEach(t) {
1900
+ f.forEach(this.handlers, function(r) {
1901
+ r !== null && t(r);
1902
+ });
1903
+ }
1904
+ }
1905
+ const wn = {
1906
+ silentJSONParsing: !0,
1907
+ forcedJSONParsing: !0,
1908
+ clarifyTimeoutError: !1
1909
+ }, Lo = typeof URLSearchParams < "u" ? URLSearchParams : Rt, qo = typeof FormData < "u" ? FormData : null, Jo = typeof Blob < "u" ? Blob : null, Mo = {
1910
+ isBrowser: !0,
1911
+ classes: {
1912
+ URLSearchParams: Lo,
1913
+ FormData: qo,
1914
+ Blob: Jo
1915
+ },
1916
+ protocols: ["http", "https", "file", "blob", "url", "data"]
1917
+ }, _t = typeof window < "u" && typeof document < "u", mt = typeof navigator == "object" && navigator || void 0, zo = _t && (!mt || ["ReactNative", "NativeScript", "NS"].indexOf(mt.product) < 0), Ho = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1918
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Io = _t && window.location.href || "http://localhost", Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1919
+ __proto__: null,
1920
+ hasBrowserEnv: _t,
1921
+ hasStandardBrowserEnv: zo,
1922
+ hasStandardBrowserWebWorkerEnv: Ho,
1923
+ navigator: mt,
1924
+ origin: Io
1925
+ }, Symbol.toStringTag, { value: "Module" })), ee = {
1926
+ ...Vo,
1927
+ ...Mo
1928
+ };
1929
+ function Wo(e, t) {
1930
+ return st(e, new ee.classes.URLSearchParams(), Object.assign({
1931
+ visitor: function(n, r, o, s) {
1932
+ return ee.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
1933
+ }
1934
+ }, t));
1935
+ }
1936
+ function Ko(e) {
1937
+ return f.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1938
+ }
1939
+ function Go(e) {
1940
+ const t = {}, n = Object.keys(e);
1941
+ let r;
1942
+ const o = n.length;
1943
+ let s;
1944
+ for (r = 0; r < o; r++)
1945
+ s = n[r], t[s] = e[s];
1946
+ return t;
1947
+ }
1948
+ function On(e) {
1949
+ function t(n, r, o, s) {
1950
+ let a = n[s++];
1951
+ if (a === "__proto__") return !0;
1952
+ const l = Number.isFinite(+a), d = s >= n.length;
1953
+ return a = !a && f.isArray(o) ? o.length : a, d ? (f.hasOwnProp(o, a) ? o[a] = [o[a], r] : o[a] = r, !l) : ((!o[a] || !f.isObject(o[a])) && (o[a] = []), t(n, r, o[a], s) && f.isArray(o[a]) && (o[a] = Go(o[a])), !l);
1954
+ }
1955
+ if (f.isFormData(e) && f.isFunction(e.entries)) {
1956
+ const n = {};
1957
+ return f.forEachEntry(e, (r, o) => {
1958
+ t(Ko(r), o, n, 0);
1959
+ }), n;
1960
+ }
1961
+ return null;
1962
+ }
1963
+ function Xo(e, t, n) {
1964
+ if (f.isString(e))
1965
+ try {
1966
+ return (t || JSON.parse)(e), f.trim(e);
1967
+ } catch (r) {
1968
+ if (r.name !== "SyntaxError")
1969
+ throw r;
1970
+ }
1971
+ return (n || JSON.stringify)(e);
1972
+ }
1973
+ const Le = {
1974
+ transitional: wn,
1975
+ adapter: ["xhr", "http", "fetch"],
1976
+ transformRequest: [function(t, n) {
1977
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = f.isObject(t);
1978
+ if (s && f.isHTMLForm(t) && (t = new FormData(t)), f.isFormData(t))
1979
+ return o ? JSON.stringify(On(t)) : t;
1980
+ if (f.isArrayBuffer(t) || f.isBuffer(t) || f.isStream(t) || f.isFile(t) || f.isBlob(t) || f.isReadableStream(t))
1981
+ return t;
1982
+ if (f.isArrayBufferView(t))
1983
+ return t.buffer;
1984
+ if (f.isURLSearchParams(t))
1985
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
1986
+ let l;
1987
+ if (s) {
1988
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
1989
+ return Wo(t, this.formSerializer).toString();
1990
+ if ((l = f.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
1991
+ const d = this.env && this.env.FormData;
1992
+ return st(
1993
+ l ? { "files[]": t } : t,
1994
+ d && new d(),
1995
+ this.formSerializer
1996
+ );
1997
+ }
1998
+ }
1999
+ return s || o ? (n.setContentType("application/json", !1), Xo(t)) : t;
2000
+ }],
2001
+ transformResponse: [function(t) {
2002
+ const n = this.transitional || Le.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
2003
+ if (f.isResponse(t) || f.isReadableStream(t))
2004
+ return t;
2005
+ if (t && f.isString(t) && (r && !this.responseType || o)) {
2006
+ const a = !(n && n.silentJSONParsing) && o;
2007
+ try {
2008
+ return JSON.parse(t);
2009
+ } catch (l) {
2010
+ if (a)
2011
+ throw l.name === "SyntaxError" ? B.from(l, B.ERR_BAD_RESPONSE, this, null, this.response) : l;
2012
+ }
2013
+ }
2014
+ return t;
2015
+ }],
2016
+ /**
2017
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
2018
+ * timeout is not created.
2019
+ */
2020
+ timeout: 0,
2021
+ xsrfCookieName: "XSRF-TOKEN",
2022
+ xsrfHeaderName: "X-XSRF-TOKEN",
2023
+ maxContentLength: -1,
2024
+ maxBodyLength: -1,
2025
+ env: {
2026
+ FormData: ee.classes.FormData,
2027
+ Blob: ee.classes.Blob
2028
+ },
2029
+ validateStatus: function(t) {
2030
+ return t >= 200 && t < 300;
2031
+ },
2032
+ headers: {
2033
+ common: {
2034
+ Accept: "application/json, text/plain, */*",
2035
+ "Content-Type": void 0
2036
+ }
2037
+ }
2038
+ };
2039
+ f.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
2040
+ Le.headers[e] = {};
2041
+ });
2042
+ const Zo = f.toObjectSet([
2043
+ "age",
2044
+ "authorization",
2045
+ "content-length",
2046
+ "content-type",
2047
+ "etag",
2048
+ "expires",
2049
+ "from",
2050
+ "host",
2051
+ "if-modified-since",
2052
+ "if-unmodified-since",
2053
+ "last-modified",
2054
+ "location",
2055
+ "max-forwards",
2056
+ "proxy-authorization",
2057
+ "referer",
2058
+ "retry-after",
2059
+ "user-agent"
2060
+ ]), Qo = (e) => {
2061
+ const t = {};
2062
+ let n, r, o;
2063
+ return e && e.split(`
2064
+ `).forEach(function(a) {
2065
+ o = a.indexOf(":"), n = a.substring(0, o).trim().toLowerCase(), r = a.substring(o + 1).trim(), !(!n || t[n] && Zo[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
2066
+ }), t;
2067
+ }, Ht = Symbol("internals");
2068
+ function Ne(e) {
2069
+ return e && String(e).trim().toLowerCase();
2070
+ }
2071
+ function Ie(e) {
2072
+ return e === !1 || e == null ? e : f.isArray(e) ? e.map(Ie) : String(e);
2073
+ }
2074
+ function Yo(e) {
2075
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
2076
+ let r;
2077
+ for (; r = n.exec(e); )
2078
+ t[r[1]] = r[2];
2079
+ return t;
2080
+ }
2081
+ const es = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
2082
+ function ut(e, t, n, r, o) {
2083
+ if (f.isFunction(r))
2084
+ return r.call(this, t, n);
2085
+ if (o && (t = n), !!f.isString(t)) {
2086
+ if (f.isString(r))
2087
+ return t.indexOf(r) !== -1;
2088
+ if (f.isRegExp(r))
2089
+ return r.test(t);
2090
+ }
2091
+ }
2092
+ function ts(e) {
2093
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
2094
+ }
2095
+ function ns(e, t) {
2096
+ const n = f.toCamelCase(" " + t);
2097
+ ["get", "set", "has"].forEach((r) => {
2098
+ Object.defineProperty(e, r + n, {
2099
+ value: function(o, s, a) {
2100
+ return this[r].call(this, t, o, s, a);
2101
+ },
2102
+ configurable: !0
2103
+ });
2104
+ });
2105
+ }
2106
+ let se = class {
2107
+ constructor(t) {
2108
+ t && this.set(t);
2109
+ }
2110
+ set(t, n, r) {
2111
+ const o = this;
2112
+ function s(l, d, i) {
2113
+ const y = Ne(d);
2114
+ if (!y)
2115
+ throw new Error("header name must be a non-empty string");
2116
+ const c = f.findKey(o, y);
2117
+ (!c || o[c] === void 0 || i === !0 || i === void 0 && o[c] !== !1) && (o[c || d] = Ie(l));
2118
+ }
2119
+ const a = (l, d) => f.forEach(l, (i, y) => s(i, y, d));
2120
+ if (f.isPlainObject(t) || t instanceof this.constructor)
2121
+ a(t, n);
2122
+ else if (f.isString(t) && (t = t.trim()) && !es(t))
2123
+ a(Qo(t), n);
2124
+ else if (f.isObject(t) && f.isIterable(t)) {
2125
+ let l = {}, d, i;
2126
+ for (const y of t) {
2127
+ if (!f.isArray(y))
2128
+ throw TypeError("Object iterator must return a key-value pair");
2129
+ l[i = y[0]] = (d = l[i]) ? f.isArray(d) ? [...d, y[1]] : [d, y[1]] : y[1];
2130
+ }
2131
+ a(l, n);
2132
+ } else
2133
+ t != null && s(n, t, r);
2134
+ return this;
2135
+ }
2136
+ get(t, n) {
2137
+ if (t = Ne(t), t) {
2138
+ const r = f.findKey(this, t);
2139
+ if (r) {
2140
+ const o = this[r];
2141
+ if (!n)
2142
+ return o;
2143
+ if (n === !0)
2144
+ return Yo(o);
2145
+ if (f.isFunction(n))
2146
+ return n.call(this, o, r);
2147
+ if (f.isRegExp(n))
2148
+ return n.exec(o);
2149
+ throw new TypeError("parser must be boolean|regexp|function");
2150
+ }
2151
+ }
2152
+ }
2153
+ has(t, n) {
2154
+ if (t = Ne(t), t) {
2155
+ const r = f.findKey(this, t);
2156
+ return !!(r && this[r] !== void 0 && (!n || ut(this, this[r], r, n)));
2157
+ }
2158
+ return !1;
2159
+ }
2160
+ delete(t, n) {
2161
+ const r = this;
2162
+ let o = !1;
2163
+ function s(a) {
2164
+ if (a = Ne(a), a) {
2165
+ const l = f.findKey(r, a);
2166
+ l && (!n || ut(r, r[l], l, n)) && (delete r[l], o = !0);
2167
+ }
2168
+ }
2169
+ return f.isArray(t) ? t.forEach(s) : s(t), o;
2170
+ }
2171
+ clear(t) {
2172
+ const n = Object.keys(this);
2173
+ let r = n.length, o = !1;
2174
+ for (; r--; ) {
2175
+ const s = n[r];
2176
+ (!t || ut(this, this[s], s, t, !0)) && (delete this[s], o = !0);
2177
+ }
2178
+ return o;
2179
+ }
2180
+ normalize(t) {
2181
+ const n = this, r = {};
2182
+ return f.forEach(this, (o, s) => {
2183
+ const a = f.findKey(r, s);
2184
+ if (a) {
2185
+ n[a] = Ie(o), delete n[s];
2186
+ return;
2187
+ }
2188
+ const l = t ? ts(s) : String(s).trim();
2189
+ l !== s && delete n[s], n[l] = Ie(o), r[l] = !0;
2190
+ }), this;
2191
+ }
2192
+ concat(...t) {
2193
+ return this.constructor.concat(this, ...t);
2194
+ }
2195
+ toJSON(t) {
2196
+ const n = /* @__PURE__ */ Object.create(null);
2197
+ return f.forEach(this, (r, o) => {
2198
+ r != null && r !== !1 && (n[o] = t && f.isArray(r) ? r.join(", ") : r);
2199
+ }), n;
2200
+ }
2201
+ [Symbol.iterator]() {
2202
+ return Object.entries(this.toJSON())[Symbol.iterator]();
2203
+ }
2204
+ toString() {
2205
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
2206
+ `);
2207
+ }
2208
+ getSetCookie() {
2209
+ return this.get("set-cookie") || [];
2210
+ }
2211
+ get [Symbol.toStringTag]() {
2212
+ return "AxiosHeaders";
2213
+ }
2214
+ static from(t) {
2215
+ return t instanceof this ? t : new this(t);
2216
+ }
2217
+ static concat(t, ...n) {
2218
+ const r = new this(t);
2219
+ return n.forEach((o) => r.set(o)), r;
2220
+ }
2221
+ static accessor(t) {
2222
+ const r = (this[Ht] = this[Ht] = {
2223
+ accessors: {}
2224
+ }).accessors, o = this.prototype;
2225
+ function s(a) {
2226
+ const l = Ne(a);
2227
+ r[l] || (ns(o, a), r[l] = !0);
2228
+ }
2229
+ return f.isArray(t) ? t.forEach(s) : s(t), this;
2230
+ }
2231
+ };
2232
+ se.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
2233
+ f.reduceDescriptors(se.prototype, ({ value: e }, t) => {
2234
+ let n = t[0].toUpperCase() + t.slice(1);
2235
+ return {
2236
+ get: () => e,
2237
+ set(r) {
2238
+ this[n] = r;
2239
+ }
2240
+ };
2241
+ });
2242
+ f.freezeMethods(se);
2243
+ function ft(e, t) {
2244
+ const n = this || Le, r = t || n, o = se.from(r.headers);
2245
+ let s = r.data;
2246
+ return f.forEach(e, function(l) {
2247
+ s = l.call(n, s, o.normalize(), t ? t.status : void 0);
2248
+ }), o.normalize(), s;
2249
+ }
2250
+ function Tn(e) {
2251
+ return !!(e && e.__CANCEL__);
2252
+ }
2253
+ function Ae(e, t, n) {
2254
+ B.call(this, e ?? "canceled", B.ERR_CANCELED, t, n), this.name = "CanceledError";
2255
+ }
2256
+ f.inherits(Ae, B, {
2257
+ __CANCEL__: !0
2258
+ });
2259
+ function An(e, t, n) {
2260
+ const r = n.config.validateStatus;
2261
+ !n.status || !r || r(n.status) ? e(n) : t(new B(
2262
+ "Request failed with status code " + n.status,
2263
+ [B.ERR_BAD_REQUEST, B.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
2264
+ n.config,
2265
+ n.request,
2266
+ n
2267
+ ));
2268
+ }
2269
+ function rs(e) {
2270
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
2271
+ return t && t[1] || "";
2272
+ }
2273
+ function os(e, t) {
2274
+ e = e || 10;
2275
+ const n = new Array(e), r = new Array(e);
2276
+ let o = 0, s = 0, a;
2277
+ return t = t !== void 0 ? t : 1e3, function(d) {
2278
+ const i = Date.now(), y = r[s];
2279
+ a || (a = i), n[o] = d, r[o] = i;
2280
+ let c = s, O = 0;
2281
+ for (; c !== o; )
2282
+ O += n[c++], c = c % e;
2283
+ if (o = (o + 1) % e, o === s && (s = (s + 1) % e), i - a < t)
2284
+ return;
2285
+ const _ = y && i - y;
2286
+ return _ ? Math.round(O * 1e3 / _) : void 0;
2287
+ };
2288
+ }
2289
+ function ss(e, t) {
2290
+ let n = 0, r = 1e3 / t, o, s;
2291
+ const a = (i, y = Date.now()) => {
2292
+ n = y, o = null, s && (clearTimeout(s), s = null), e.apply(null, i);
2293
+ };
2294
+ return [(...i) => {
2295
+ const y = Date.now(), c = y - n;
2296
+ c >= r ? a(i, y) : (o = i, s || (s = setTimeout(() => {
2297
+ s = null, a(o);
2298
+ }, r - c)));
2299
+ }, () => o && a(o)];
2300
+ }
2301
+ const Ke = (e, t, n = 3) => {
2302
+ let r = 0;
2303
+ const o = os(50, 250);
2304
+ return ss((s) => {
2305
+ const a = s.loaded, l = s.lengthComputable ? s.total : void 0, d = a - r, i = o(d), y = a <= l;
2306
+ r = a;
2307
+ const c = {
2308
+ loaded: a,
2309
+ total: l,
2310
+ progress: l ? a / l : void 0,
2311
+ bytes: d,
2312
+ rate: i || void 0,
2313
+ estimated: i && l && y ? (l - a) / i : void 0,
2314
+ event: s,
2315
+ lengthComputable: l != null,
2316
+ [t ? "download" : "upload"]: !0
2317
+ };
2318
+ e(c);
2319
+ }, n);
2320
+ }, It = (e, t) => {
2321
+ const n = e != null;
2322
+ return [(r) => t[0]({
2323
+ lengthComputable: n,
2324
+ total: e,
2325
+ loaded: r
2326
+ }), t[1]];
2327
+ }, Vt = (e) => (...t) => f.asap(() => e(...t)), as = ee.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ee.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
2328
+ new URL(ee.origin),
2329
+ ee.navigator && /(msie|trident)/i.test(ee.navigator.userAgent)
2330
+ ) : () => !0, ls = ee.hasStandardBrowserEnv ? (
2331
+ // Standard browser envs support document.cookie
2332
+ {
2333
+ write(e, t, n, r, o, s) {
2334
+ const a = [e + "=" + encodeURIComponent(t)];
2335
+ f.isNumber(n) && a.push("expires=" + new Date(n).toGMTString()), f.isString(r) && a.push("path=" + r), f.isString(o) && a.push("domain=" + o), s === !0 && a.push("secure"), document.cookie = a.join("; ");
2336
+ },
2337
+ read(e) {
2338
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
2339
+ return t ? decodeURIComponent(t[3]) : null;
2340
+ },
2341
+ remove(e) {
2342
+ this.write(e, "", Date.now() - 864e5);
2343
+ }
2344
+ }
2345
+ ) : (
2346
+ // Non-standard browser env (web workers, react-native) lack needed support.
2347
+ {
2348
+ write() {
2349
+ },
2350
+ read() {
2351
+ return null;
2352
+ },
2353
+ remove() {
2354
+ }
2355
+ }
2356
+ );
2357
+ function is(e) {
2358
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
2359
+ }
2360
+ function cs(e, t) {
2361
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
2362
+ }
2363
+ function Cn(e, t, n) {
2364
+ let r = !is(t);
2365
+ return e && (r || n == !1) ? cs(e, t) : t;
2366
+ }
2367
+ const Wt = (e) => e instanceof se ? { ...e } : e;
2368
+ function Se(e, t) {
2369
+ t = t || {};
2370
+ const n = {};
2371
+ function r(i, y, c, O) {
2372
+ return f.isPlainObject(i) && f.isPlainObject(y) ? f.merge.call({ caseless: O }, i, y) : f.isPlainObject(y) ? f.merge({}, y) : f.isArray(y) ? y.slice() : y;
2373
+ }
2374
+ function o(i, y, c, O) {
2375
+ if (f.isUndefined(y)) {
2376
+ if (!f.isUndefined(i))
2377
+ return r(void 0, i, c, O);
2378
+ } else return r(i, y, c, O);
2379
+ }
2380
+ function s(i, y) {
2381
+ if (!f.isUndefined(y))
2382
+ return r(void 0, y);
2383
+ }
2384
+ function a(i, y) {
2385
+ if (f.isUndefined(y)) {
2386
+ if (!f.isUndefined(i))
2387
+ return r(void 0, i);
2388
+ } else return r(void 0, y);
2389
+ }
2390
+ function l(i, y, c) {
2391
+ if (c in t)
2392
+ return r(i, y);
2393
+ if (c in e)
2394
+ return r(void 0, i);
2395
+ }
2396
+ const d = {
2397
+ url: s,
2398
+ method: s,
2399
+ data: s,
2400
+ baseURL: a,
2401
+ transformRequest: a,
2402
+ transformResponse: a,
2403
+ paramsSerializer: a,
2404
+ timeout: a,
2405
+ timeoutMessage: a,
2406
+ withCredentials: a,
2407
+ withXSRFToken: a,
2408
+ adapter: a,
2409
+ responseType: a,
2410
+ xsrfCookieName: a,
2411
+ xsrfHeaderName: a,
2412
+ onUploadProgress: a,
2413
+ onDownloadProgress: a,
2414
+ decompress: a,
2415
+ maxContentLength: a,
2416
+ maxBodyLength: a,
2417
+ beforeRedirect: a,
2418
+ transport: a,
2419
+ httpAgent: a,
2420
+ httpsAgent: a,
2421
+ cancelToken: a,
2422
+ socketPath: a,
2423
+ responseEncoding: a,
2424
+ validateStatus: l,
2425
+ headers: (i, y, c) => o(Wt(i), Wt(y), c, !0)
2426
+ };
2427
+ return f.forEach(Object.keys(Object.assign({}, e, t)), function(y) {
2428
+ const c = d[y] || o, O = c(e[y], t[y], y);
2429
+ f.isUndefined(O) && c !== l || (n[y] = O);
2430
+ }), n;
2431
+ }
2432
+ const xn = (e) => {
2433
+ const t = Se({}, e);
2434
+ let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: a, auth: l } = t;
2435
+ t.headers = a = se.from(a), t.url = _n(Cn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), l && a.set(
2436
+ "Authorization",
2437
+ "Basic " + btoa((l.username || "") + ":" + (l.password ? unescape(encodeURIComponent(l.password)) : ""))
2438
+ );
2439
+ let d;
2440
+ if (f.isFormData(n)) {
2441
+ if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
2442
+ a.setContentType(void 0);
2443
+ else if ((d = a.getContentType()) !== !1) {
2444
+ const [i, ...y] = d ? d.split(";").map((c) => c.trim()).filter(Boolean) : [];
2445
+ a.setContentType([i || "multipart/form-data", ...y].join("; "));
2446
+ }
2447
+ }
2448
+ if (ee.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(t)), r || r !== !1 && as(t.url))) {
2449
+ const i = o && s && ls.read(s);
2450
+ i && a.set(o, i);
2451
+ }
2452
+ return t;
2453
+ }, us = typeof XMLHttpRequest < "u", fs = us && function(e) {
2454
+ return new Promise(function(n, r) {
2455
+ const o = xn(e);
2456
+ let s = o.data;
2457
+ const a = se.from(o.headers).normalize();
2458
+ let { responseType: l, onUploadProgress: d, onDownloadProgress: i } = o, y, c, O, _, g;
2459
+ function A() {
2460
+ _ && _(), g && g(), o.cancelToken && o.cancelToken.unsubscribe(y), o.signal && o.signal.removeEventListener("abort", y);
2461
+ }
2462
+ let p = new XMLHttpRequest();
2463
+ p.open(o.method.toUpperCase(), o.url, !0), p.timeout = o.timeout;
2464
+ function h() {
2465
+ if (!p)
2466
+ return;
2467
+ const R = se.from(
2468
+ "getAllResponseHeaders" in p && p.getAllResponseHeaders()
2469
+ ), m = {
2470
+ data: !l || l === "text" || l === "json" ? p.responseText : p.response,
2471
+ status: p.status,
2472
+ statusText: p.statusText,
2473
+ headers: R,
2474
+ config: e,
2475
+ request: p
2476
+ };
2477
+ An(function(S) {
2478
+ n(S), A();
2479
+ }, function(S) {
2480
+ r(S), A();
2481
+ }, m), p = null;
2482
+ }
2483
+ "onloadend" in p ? p.onloadend = h : p.onreadystatechange = function() {
2484
+ !p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(h);
2485
+ }, p.onabort = function() {
2486
+ p && (r(new B("Request aborted", B.ECONNABORTED, e, p)), p = null);
2487
+ }, p.onerror = function() {
2488
+ r(new B("Network Error", B.ERR_NETWORK, e, p)), p = null;
2489
+ }, p.ontimeout = function() {
2490
+ let b = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
2491
+ const m = o.transitional || wn;
2492
+ o.timeoutErrorMessage && (b = o.timeoutErrorMessage), r(new B(
2493
+ b,
2494
+ m.clarifyTimeoutError ? B.ETIMEDOUT : B.ECONNABORTED,
2495
+ e,
2496
+ p
2497
+ )), p = null;
2498
+ }, s === void 0 && a.setContentType(null), "setRequestHeader" in p && f.forEach(a.toJSON(), function(b, m) {
2499
+ p.setRequestHeader(m, b);
2500
+ }), f.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), l && l !== "json" && (p.responseType = o.responseType), i && ([O, g] = Ke(i, !0), p.addEventListener("progress", O)), d && p.upload && ([c, _] = Ke(d), p.upload.addEventListener("progress", c), p.upload.addEventListener("loadend", _)), (o.cancelToken || o.signal) && (y = (R) => {
2501
+ p && (r(!R || R.type ? new Ae(null, e, p) : R), p.abort(), p = null);
2502
+ }, o.cancelToken && o.cancelToken.subscribe(y), o.signal && (o.signal.aborted ? y() : o.signal.addEventListener("abort", y)));
2503
+ const u = rs(o.url);
2504
+ if (u && ee.protocols.indexOf(u) === -1) {
2505
+ r(new B("Unsupported protocol " + u + ":", B.ERR_BAD_REQUEST, e));
2506
+ return;
2507
+ }
2508
+ p.send(s || null);
2509
+ });
2510
+ }, ps = (e, t) => {
2511
+ const { length: n } = e = e ? e.filter(Boolean) : [];
2512
+ if (t || n) {
2513
+ let r = new AbortController(), o;
2514
+ const s = function(i) {
2515
+ if (!o) {
2516
+ o = !0, l();
2517
+ const y = i instanceof Error ? i : this.reason;
2518
+ r.abort(y instanceof B ? y : new Ae(y instanceof Error ? y.message : y));
2519
+ }
2520
+ };
2521
+ let a = t && setTimeout(() => {
2522
+ a = null, s(new B(`timeout ${t} of ms exceeded`, B.ETIMEDOUT));
2523
+ }, t);
2524
+ const l = () => {
2525
+ e && (a && clearTimeout(a), a = null, e.forEach((i) => {
2526
+ i.unsubscribe ? i.unsubscribe(s) : i.removeEventListener("abort", s);
2527
+ }), e = null);
2528
+ };
2529
+ e.forEach((i) => i.addEventListener("abort", s));
2530
+ const { signal: d } = r;
2531
+ return d.unsubscribe = () => f.asap(l), d;
2532
+ }
2533
+ }, ds = function* (e, t) {
2534
+ let n = e.byteLength;
2535
+ if (n < t) {
2536
+ yield e;
2537
+ return;
2538
+ }
2539
+ let r = 0, o;
2540
+ for (; r < n; )
2541
+ o = r + t, yield e.slice(r, o), r = o;
2542
+ }, hs = async function* (e, t) {
2543
+ for await (const n of ms(e))
2544
+ yield* ds(n, t);
2545
+ }, ms = async function* (e) {
2546
+ if (e[Symbol.asyncIterator]) {
2547
+ yield* e;
2548
+ return;
2549
+ }
2550
+ const t = e.getReader();
2551
+ try {
2552
+ for (; ; ) {
2553
+ const { done: n, value: r } = await t.read();
2554
+ if (n)
2555
+ break;
2556
+ yield r;
2557
+ }
2558
+ } finally {
2559
+ await t.cancel();
2560
+ }
2561
+ }, Kt = (e, t, n, r) => {
2562
+ const o = hs(e, t);
2563
+ let s = 0, a, l = (d) => {
2564
+ a || (a = !0, r && r(d));
2565
+ };
2566
+ return new ReadableStream({
2567
+ async pull(d) {
2568
+ try {
2569
+ const { done: i, value: y } = await o.next();
2570
+ if (i) {
2571
+ l(), d.close();
2572
+ return;
2573
+ }
2574
+ let c = y.byteLength;
2575
+ if (n) {
2576
+ let O = s += c;
2577
+ n(O);
2578
+ }
2579
+ d.enqueue(new Uint8Array(y));
2580
+ } catch (i) {
2581
+ throw l(i), i;
2582
+ }
2583
+ },
2584
+ cancel(d) {
2585
+ return l(d), o.return();
2586
+ }
2587
+ }, {
2588
+ highWaterMark: 2
2589
+ });
2590
+ }, at = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Dn = at && typeof ReadableStream == "function", ys = at && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Fn = (e, ...t) => {
2591
+ try {
2592
+ return !!e(...t);
2593
+ } catch {
2594
+ return !1;
2595
+ }
2596
+ }, bs = Dn && Fn(() => {
2597
+ let e = !1;
2598
+ const t = new Request(ee.origin, {
2599
+ body: new ReadableStream(),
2600
+ method: "POST",
2601
+ get duplex() {
2602
+ return e = !0, "half";
2603
+ }
2604
+ }).headers.has("Content-Type");
2605
+ return e && !t;
2606
+ }), Gt = 64 * 1024, yt = Dn && Fn(() => f.isReadableStream(new Response("").body)), Ge = {
2607
+ stream: yt && ((e) => e.body)
2608
+ };
2609
+ at && ((e) => {
2610
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
2611
+ !Ge[t] && (Ge[t] = f.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
2612
+ throw new B(`Response type '${t}' is not supported`, B.ERR_NOT_SUPPORT, r);
2613
+ });
2614
+ });
2615
+ })(new Response());
2616
+ const gs = async (e) => {
2617
+ if (e == null)
2618
+ return 0;
2619
+ if (f.isBlob(e))
2620
+ return e.size;
2621
+ if (f.isSpecCompliantForm(e))
2622
+ return (await new Request(ee.origin, {
2623
+ method: "POST",
2624
+ body: e
2625
+ }).arrayBuffer()).byteLength;
2626
+ if (f.isArrayBufferView(e) || f.isArrayBuffer(e))
2627
+ return e.byteLength;
2628
+ if (f.isURLSearchParams(e) && (e = e + ""), f.isString(e))
2629
+ return (await ys(e)).byteLength;
2630
+ }, vs = async (e, t) => {
2631
+ const n = f.toFiniteNumber(e.getContentLength());
2632
+ return n ?? gs(t);
2633
+ }, ks = at && (async (e) => {
2634
+ let {
2635
+ url: t,
2636
+ method: n,
2637
+ data: r,
2638
+ signal: o,
2639
+ cancelToken: s,
2640
+ timeout: a,
2641
+ onDownloadProgress: l,
2642
+ onUploadProgress: d,
2643
+ responseType: i,
2644
+ headers: y,
2645
+ withCredentials: c = "same-origin",
2646
+ fetchOptions: O
2647
+ } = xn(e);
2648
+ i = i ? (i + "").toLowerCase() : "text";
2649
+ let _ = ps([o, s && s.toAbortSignal()], a), g;
2650
+ const A = _ && _.unsubscribe && (() => {
2651
+ _.unsubscribe();
2652
+ });
2653
+ let p;
2654
+ try {
2655
+ if (d && bs && n !== "get" && n !== "head" && (p = await vs(y, r)) !== 0) {
2656
+ let m = new Request(t, {
2657
+ method: "POST",
2658
+ body: r,
2659
+ duplex: "half"
2660
+ }), E;
2661
+ if (f.isFormData(r) && (E = m.headers.get("content-type")) && y.setContentType(E), m.body) {
2662
+ const [S, D] = It(
2663
+ p,
2664
+ Ke(Vt(d))
2665
+ );
2666
+ r = Kt(m.body, Gt, S, D);
2667
+ }
2668
+ }
2669
+ f.isString(c) || (c = c ? "include" : "omit");
2670
+ const h = "credentials" in Request.prototype;
2671
+ g = new Request(t, {
2672
+ ...O,
2673
+ signal: _,
2674
+ method: n.toUpperCase(),
2675
+ headers: y.normalize().toJSON(),
2676
+ body: r,
2677
+ duplex: "half",
2678
+ credentials: h ? c : void 0
2679
+ });
2680
+ let u = await fetch(g);
2681
+ const R = yt && (i === "stream" || i === "response");
2682
+ if (yt && (l || R && A)) {
2683
+ const m = {};
2684
+ ["status", "statusText", "headers"].forEach((N) => {
2685
+ m[N] = u[N];
2686
+ });
2687
+ const E = f.toFiniteNumber(u.headers.get("content-length")), [S, D] = l && It(
2688
+ E,
2689
+ Ke(Vt(l), !0)
2690
+ ) || [];
2691
+ u = new Response(
2692
+ Kt(u.body, Gt, S, () => {
2693
+ D && D(), A && A();
2694
+ }),
2695
+ m
2696
+ );
2697
+ }
2698
+ i = i || "text";
2699
+ let b = await Ge[f.findKey(Ge, i) || "text"](u, e);
2700
+ return !R && A && A(), await new Promise((m, E) => {
2701
+ An(m, E, {
2702
+ data: b,
2703
+ headers: se.from(u.headers),
2704
+ status: u.status,
2705
+ statusText: u.statusText,
2706
+ config: e,
2707
+ request: g
2708
+ });
2709
+ });
2710
+ } catch (h) {
2711
+ throw A && A(), h && h.name === "TypeError" && /Load failed|fetch/i.test(h.message) ? Object.assign(
2712
+ new B("Network Error", B.ERR_NETWORK, e, g),
2713
+ {
2714
+ cause: h.cause || h
2715
+ }
2716
+ ) : B.from(h, h && h.code, e, g);
2717
+ }
2718
+ }), bt = {
2719
+ http: Uo,
2720
+ xhr: fs,
2721
+ fetch: ks
2722
+ };
2723
+ f.forEach(bt, (e, t) => {
2724
+ if (e) {
2725
+ try {
2726
+ Object.defineProperty(e, "name", { value: t });
2727
+ } catch {
2728
+ }
2729
+ Object.defineProperty(e, "adapterName", { value: t });
2730
+ }
2731
+ });
2732
+ const Xt = (e) => `- ${e}`, Es = (e) => f.isFunction(e) || e === null || e === !1, Nn = {
2733
+ getAdapter: (e) => {
2734
+ e = f.isArray(e) ? e : [e];
2735
+ const { length: t } = e;
2736
+ let n, r;
2737
+ const o = {};
2738
+ for (let s = 0; s < t; s++) {
2739
+ n = e[s];
2740
+ let a;
2741
+ if (r = n, !Es(n) && (r = bt[(a = String(n)).toLowerCase()], r === void 0))
2742
+ throw new B(`Unknown adapter '${a}'`);
2743
+ if (r)
2744
+ break;
2745
+ o[a || "#" + s] = r;
2746
+ }
2747
+ if (!r) {
2748
+ const s = Object.entries(o).map(
2749
+ ([l, d]) => `adapter ${l} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
2750
+ );
2751
+ let a = t ? s.length > 1 ? `since :
2752
+ ` + s.map(Xt).join(`
2753
+ `) : " " + Xt(s[0]) : "as no adapter specified";
2754
+ throw new B(
2755
+ "There is no suitable adapter to dispatch the request " + a,
2756
+ "ERR_NOT_SUPPORT"
2757
+ );
2758
+ }
2759
+ return r;
2760
+ },
2761
+ adapters: bt
2762
+ };
2763
+ function pt(e) {
2764
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2765
+ throw new Ae(null, e);
2766
+ }
2767
+ function Zt(e) {
2768
+ return pt(e), e.headers = se.from(e.headers), e.data = ft.call(
2769
+ e,
2770
+ e.transformRequest
2771
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Nn.getAdapter(e.adapter || Le.adapter)(e).then(function(r) {
2772
+ return pt(e), r.data = ft.call(
2773
+ e,
2774
+ e.transformResponse,
2775
+ r
2776
+ ), r.headers = se.from(r.headers), r;
2777
+ }, function(r) {
2778
+ return Tn(r) || (pt(e), r && r.response && (r.response.data = ft.call(
2779
+ e,
2780
+ e.transformResponse,
2781
+ r.response
2782
+ ), r.response.headers = se.from(r.response.headers))), Promise.reject(r);
2783
+ });
2784
+ }
2785
+ const Pn = "1.9.0", lt = {};
2786
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2787
+ lt[e] = function(r) {
2788
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
2789
+ };
2790
+ });
2791
+ const Qt = {};
2792
+ lt.transitional = function(t, n, r) {
2793
+ function o(s, a) {
2794
+ return "[Axios v" + Pn + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
2795
+ }
2796
+ return (s, a, l) => {
2797
+ if (t === !1)
2798
+ throw new B(
2799
+ o(a, " has been removed" + (n ? " in " + n : "")),
2800
+ B.ERR_DEPRECATED
2801
+ );
2802
+ return n && !Qt[a] && (Qt[a] = !0, console.warn(
2803
+ o(
2804
+ a,
2805
+ " has been deprecated since v" + n + " and will be removed in the near future"
2806
+ )
2807
+ )), t ? t(s, a, l) : !0;
2808
+ };
2809
+ };
2810
+ lt.spelling = function(t) {
2811
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
2812
+ };
2813
+ function Ss(e, t, n) {
2814
+ if (typeof e != "object")
2815
+ throw new B("options must be an object", B.ERR_BAD_OPTION_VALUE);
2816
+ const r = Object.keys(e);
2817
+ let o = r.length;
2818
+ for (; o-- > 0; ) {
2819
+ const s = r[o], a = t[s];
2820
+ if (a) {
2821
+ const l = e[s], d = l === void 0 || a(l, s, e);
2822
+ if (d !== !0)
2823
+ throw new B("option " + s + " must be " + d, B.ERR_BAD_OPTION_VALUE);
2824
+ continue;
2825
+ }
2826
+ if (n !== !0)
2827
+ throw new B("Unknown option " + s, B.ERR_BAD_OPTION);
2828
+ }
2829
+ }
2830
+ const Ve = {
2831
+ assertOptions: Ss,
2832
+ validators: lt
2833
+ }, pe = Ve.validators;
2834
+ let ve = class {
2835
+ constructor(t) {
2836
+ this.defaults = t || {}, this.interceptors = {
2837
+ request: new zt(),
2838
+ response: new zt()
2839
+ };
2840
+ }
2841
+ /**
2842
+ * Dispatch a request
2843
+ *
2844
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
2845
+ * @param {?Object} config
2846
+ *
2847
+ * @returns {Promise} The Promise to be fulfilled
2848
+ */
2849
+ async request(t, n) {
2850
+ try {
2851
+ return await this._request(t, n);
2852
+ } catch (r) {
2853
+ if (r instanceof Error) {
2854
+ let o = {};
2855
+ Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
2856
+ const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
2857
+ try {
2858
+ r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
2859
+ ` + s) : r.stack = s;
2860
+ } catch {
2861
+ }
2862
+ }
2863
+ throw r;
2864
+ }
2865
+ }
2866
+ _request(t, n) {
2867
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = Se(this.defaults, n);
2868
+ const { transitional: r, paramsSerializer: o, headers: s } = n;
2869
+ r !== void 0 && Ve.assertOptions(r, {
2870
+ silentJSONParsing: pe.transitional(pe.boolean),
2871
+ forcedJSONParsing: pe.transitional(pe.boolean),
2872
+ clarifyTimeoutError: pe.transitional(pe.boolean)
2873
+ }, !1), o != null && (f.isFunction(o) ? n.paramsSerializer = {
2874
+ serialize: o
2875
+ } : Ve.assertOptions(o, {
2876
+ encode: pe.function,
2877
+ serialize: pe.function
2878
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), Ve.assertOptions(n, {
2879
+ baseUrl: pe.spelling("baseURL"),
2880
+ withXsrfToken: pe.spelling("withXSRFToken")
2881
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
2882
+ let a = s && f.merge(
2883
+ s.common,
2884
+ s[n.method]
2885
+ );
2886
+ s && f.forEach(
2887
+ ["delete", "get", "head", "post", "put", "patch", "common"],
2888
+ (g) => {
2889
+ delete s[g];
2890
+ }
2891
+ ), n.headers = se.concat(a, s);
2892
+ const l = [];
2893
+ let d = !0;
2894
+ this.interceptors.request.forEach(function(A) {
2895
+ typeof A.runWhen == "function" && A.runWhen(n) === !1 || (d = d && A.synchronous, l.unshift(A.fulfilled, A.rejected));
2896
+ });
2897
+ const i = [];
2898
+ this.interceptors.response.forEach(function(A) {
2899
+ i.push(A.fulfilled, A.rejected);
2900
+ });
2901
+ let y, c = 0, O;
2902
+ if (!d) {
2903
+ const g = [Zt.bind(this), void 0];
2904
+ for (g.unshift.apply(g, l), g.push.apply(g, i), O = g.length, y = Promise.resolve(n); c < O; )
2905
+ y = y.then(g[c++], g[c++]);
2906
+ return y;
2907
+ }
2908
+ O = l.length;
2909
+ let _ = n;
2910
+ for (c = 0; c < O; ) {
2911
+ const g = l[c++], A = l[c++];
2912
+ try {
2913
+ _ = g(_);
2914
+ } catch (p) {
2915
+ A.call(this, p);
2916
+ break;
2917
+ }
2918
+ }
2919
+ try {
2920
+ y = Zt.call(this, _);
2921
+ } catch (g) {
2922
+ return Promise.reject(g);
2923
+ }
2924
+ for (c = 0, O = i.length; c < O; )
2925
+ y = y.then(i[c++], i[c++]);
2926
+ return y;
2927
+ }
2928
+ getUri(t) {
2929
+ t = Se(this.defaults, t);
2930
+ const n = Cn(t.baseURL, t.url, t.allowAbsoluteUrls);
2931
+ return _n(n, t.params, t.paramsSerializer);
2932
+ }
2933
+ };
2934
+ f.forEach(["delete", "get", "head", "options"], function(t) {
2935
+ ve.prototype[t] = function(n, r) {
2936
+ return this.request(Se(r || {}, {
2937
+ method: t,
2938
+ url: n,
2939
+ data: (r || {}).data
2940
+ }));
2941
+ };
2942
+ });
2943
+ f.forEach(["post", "put", "patch"], function(t) {
2944
+ function n(r) {
2945
+ return function(s, a, l) {
2946
+ return this.request(Se(l || {}, {
2947
+ method: t,
2948
+ headers: r ? {
2949
+ "Content-Type": "multipart/form-data"
2950
+ } : {},
2951
+ url: s,
2952
+ data: a
2953
+ }));
2954
+ };
2955
+ }
2956
+ ve.prototype[t] = n(), ve.prototype[t + "Form"] = n(!0);
2957
+ });
2958
+ let Rs = class Un {
2959
+ constructor(t) {
2960
+ if (typeof t != "function")
2961
+ throw new TypeError("executor must be a function.");
2962
+ let n;
2963
+ this.promise = new Promise(function(s) {
2964
+ n = s;
2965
+ });
2966
+ const r = this;
2967
+ this.promise.then((o) => {
2968
+ if (!r._listeners) return;
2969
+ let s = r._listeners.length;
2970
+ for (; s-- > 0; )
2971
+ r._listeners[s](o);
2972
+ r._listeners = null;
2973
+ }), this.promise.then = (o) => {
2974
+ let s;
2975
+ const a = new Promise((l) => {
2976
+ r.subscribe(l), s = l;
2977
+ }).then(o);
2978
+ return a.cancel = function() {
2979
+ r.unsubscribe(s);
2980
+ }, a;
2981
+ }, t(function(s, a, l) {
2982
+ r.reason || (r.reason = new Ae(s, a, l), n(r.reason));
2983
+ });
2984
+ }
2985
+ /**
2986
+ * Throws a `CanceledError` if cancellation has been requested.
2987
+ */
2988
+ throwIfRequested() {
2989
+ if (this.reason)
2990
+ throw this.reason;
2991
+ }
2992
+ /**
2993
+ * Subscribe to the cancel signal
2994
+ */
2995
+ subscribe(t) {
2996
+ if (this.reason) {
2997
+ t(this.reason);
2998
+ return;
2999
+ }
3000
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
3001
+ }
3002
+ /**
3003
+ * Unsubscribe from the cancel signal
3004
+ */
3005
+ unsubscribe(t) {
3006
+ if (!this._listeners)
3007
+ return;
3008
+ const n = this._listeners.indexOf(t);
3009
+ n !== -1 && this._listeners.splice(n, 1);
3010
+ }
3011
+ toAbortSignal() {
3012
+ const t = new AbortController(), n = (r) => {
3013
+ t.abort(r);
3014
+ };
3015
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
3016
+ }
3017
+ /**
3018
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3019
+ * cancels the `CancelToken`.
3020
+ */
3021
+ static source() {
3022
+ let t;
3023
+ return {
3024
+ token: new Un(function(o) {
3025
+ t = o;
3026
+ }),
3027
+ cancel: t
3028
+ };
3029
+ }
3030
+ };
3031
+ function _s(e) {
3032
+ return function(n) {
3033
+ return e.apply(null, n);
3034
+ };
3035
+ }
3036
+ function ws(e) {
3037
+ return f.isObject(e) && e.isAxiosError === !0;
3038
+ }
3039
+ const gt = {
3040
+ Continue: 100,
3041
+ SwitchingProtocols: 101,
3042
+ Processing: 102,
3043
+ EarlyHints: 103,
3044
+ Ok: 200,
3045
+ Created: 201,
3046
+ Accepted: 202,
3047
+ NonAuthoritativeInformation: 203,
3048
+ NoContent: 204,
3049
+ ResetContent: 205,
3050
+ PartialContent: 206,
3051
+ MultiStatus: 207,
3052
+ AlreadyReported: 208,
3053
+ ImUsed: 226,
3054
+ MultipleChoices: 300,
3055
+ MovedPermanently: 301,
3056
+ Found: 302,
3057
+ SeeOther: 303,
3058
+ NotModified: 304,
3059
+ UseProxy: 305,
3060
+ Unused: 306,
3061
+ TemporaryRedirect: 307,
3062
+ PermanentRedirect: 308,
3063
+ BadRequest: 400,
3064
+ Unauthorized: 401,
3065
+ PaymentRequired: 402,
3066
+ Forbidden: 403,
3067
+ NotFound: 404,
3068
+ MethodNotAllowed: 405,
3069
+ NotAcceptable: 406,
3070
+ ProxyAuthenticationRequired: 407,
3071
+ RequestTimeout: 408,
3072
+ Conflict: 409,
3073
+ Gone: 410,
3074
+ LengthRequired: 411,
3075
+ PreconditionFailed: 412,
3076
+ PayloadTooLarge: 413,
3077
+ UriTooLong: 414,
3078
+ UnsupportedMediaType: 415,
3079
+ RangeNotSatisfiable: 416,
3080
+ ExpectationFailed: 417,
3081
+ ImATeapot: 418,
3082
+ MisdirectedRequest: 421,
3083
+ UnprocessableEntity: 422,
3084
+ Locked: 423,
3085
+ FailedDependency: 424,
3086
+ TooEarly: 425,
3087
+ UpgradeRequired: 426,
3088
+ PreconditionRequired: 428,
3089
+ TooManyRequests: 429,
3090
+ RequestHeaderFieldsTooLarge: 431,
3091
+ UnavailableForLegalReasons: 451,
3092
+ InternalServerError: 500,
3093
+ NotImplemented: 501,
3094
+ BadGateway: 502,
3095
+ ServiceUnavailable: 503,
3096
+ GatewayTimeout: 504,
3097
+ HttpVersionNotSupported: 505,
3098
+ VariantAlsoNegotiates: 506,
3099
+ InsufficientStorage: 507,
3100
+ LoopDetected: 508,
3101
+ NotExtended: 510,
3102
+ NetworkAuthenticationRequired: 511
3103
+ };
3104
+ Object.entries(gt).forEach(([e, t]) => {
3105
+ gt[t] = e;
3106
+ });
3107
+ function Bn(e) {
3108
+ const t = new ve(e), n = pn(ve.prototype.request, t);
3109
+ return f.extend(n, ve.prototype, t, { allOwnKeys: !0 }), f.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
3110
+ return Bn(Se(e, o));
3111
+ }, n;
3112
+ }
3113
+ const G = Bn(Le);
3114
+ G.Axios = ve;
3115
+ G.CanceledError = Ae;
3116
+ G.CancelToken = Rs;
3117
+ G.isCancel = Tn;
3118
+ G.VERSION = Pn;
3119
+ G.toFormData = st;
3120
+ G.AxiosError = B;
3121
+ G.Cancel = G.CanceledError;
3122
+ G.all = function(t) {
3123
+ return Promise.all(t);
3124
+ };
3125
+ G.spread = _s;
3126
+ G.isAxiosError = ws;
3127
+ G.mergeConfig = Se;
3128
+ G.AxiosHeaders = se;
3129
+ G.formToJSON = (e) => On(f.isHTMLForm(e) ? new FormData(e) : e);
3130
+ G.getAdapter = Nn.getAdapter;
3131
+ G.HttpStatusCode = gt;
3132
+ G.default = G;
3133
+ const {
3134
+ Axios: Ws,
3135
+ AxiosError: Ks,
3136
+ CanceledError: Gs,
3137
+ isCancel: Xs,
3138
+ CancelToken: Zs,
3139
+ VERSION: Qs,
3140
+ all: Ys,
3141
+ Cancel: ea,
3142
+ isAxiosError: ta,
3143
+ spread: na,
3144
+ toFormData: ra,
3145
+ AxiosHeaders: oa,
3146
+ HttpStatusCode: sa,
3147
+ formToJSON: aa,
3148
+ getAdapter: la,
3149
+ mergeConfig: ia
3150
+ } = G;
3151
+ /*! js-cookie v3.0.5 | MIT */
3152
+ function Me(e) {
3153
+ for (var t = 1; t < arguments.length; t++) {
3154
+ var n = arguments[t];
3155
+ for (var r in n)
3156
+ e[r] = n[r];
3157
+ }
3158
+ return e;
3159
+ }
3160
+ var Os = {
3161
+ read: function(e) {
3162
+ return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3163
+ },
3164
+ write: function(e) {
3165
+ return encodeURIComponent(e).replace(
3166
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
3167
+ decodeURIComponent
3168
+ );
3169
+ }
3170
+ };
3171
+ function vt(e, t) {
3172
+ function n(o, s, a) {
3173
+ if (!(typeof document > "u")) {
3174
+ a = Me({}, t, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3175
+ var l = "";
3176
+ for (var d in a)
3177
+ a[d] && (l += "; " + d, a[d] !== !0 && (l += "=" + a[d].split(";")[0]));
3178
+ return document.cookie = o + "=" + e.write(s, o) + l;
3179
+ }
3180
+ }
3181
+ function r(o) {
3182
+ if (!(typeof document > "u" || arguments.length && !o)) {
3183
+ for (var s = document.cookie ? document.cookie.split("; ") : [], a = {}, l = 0; l < s.length; l++) {
3184
+ var d = s[l].split("="), i = d.slice(1).join("=");
3185
+ try {
3186
+ var y = decodeURIComponent(d[0]);
3187
+ if (a[y] = e.read(i, y), o === y)
3188
+ break;
3189
+ } catch {
3190
+ }
3191
+ }
3192
+ return o ? a[o] : a;
3193
+ }
3194
+ }
3195
+ return Object.create(
3196
+ {
3197
+ set: n,
3198
+ get: r,
3199
+ remove: function(o, s) {
3200
+ n(
3201
+ o,
3202
+ "",
3203
+ Me({}, s, {
3204
+ expires: -1
3205
+ })
3206
+ );
3207
+ },
3208
+ withAttributes: function(o) {
3209
+ return vt(this.converter, Me({}, this.attributes, o));
3210
+ },
3211
+ withConverter: function(o) {
3212
+ return vt(Me({}, this.converter, o), this.attributes);
3213
+ }
3214
+ },
3215
+ {
3216
+ attributes: { value: Object.freeze(t) },
3217
+ converter: { value: Object.freeze(e) }
3218
+ }
3219
+ );
3220
+ }
3221
+ vt(Os, { path: "/" });
3222
+ const ke = {
3223
+ // 查看 v2.4.3版本更新日志
3224
+ setKey(e) {
3225
+ return `ss-component-new:${e}`;
3226
+ },
3227
+ // 设置永久缓存
3228
+ set(e, t) {
3229
+ window.localStorage.setItem(ke.setKey(e), JSON.stringify(t));
3230
+ },
3231
+ // 获取永久缓存
3232
+ get(e) {
3233
+ let t = window.localStorage.getItem(ke.setKey(e));
3234
+ return JSON.parse(t);
3235
+ },
3236
+ // 移除永久缓存
3237
+ remove(e) {
3238
+ window.localStorage.removeItem(ke.setKey(e));
3239
+ },
3240
+ // 移除全部永久缓存
3241
+ clear() {
3242
+ window.localStorage.clear();
3243
+ }
3244
+ }, jn = /* @__PURE__ */ new Map();
3245
+ console.log("import.meta.env.VITE_API_URL", "http://139.196.154.85:20013");
3246
+ const $n = G.create({
3247
+ baseURL: "http://139.196.154.85:20013",
3248
+ timeout: 5e4
3249
+ //headers: { 'Content-Type': 'application/json' }, 这个会导致生成代码的上传文件 file为空
3250
+ }), Xe = "access-token", kt = `x-${Xe}`;
3251
+ $n.interceptors.request.use(
3252
+ (e) => {
3253
+ var o;
3254
+ const t = new AbortController();
3255
+ e.signal = t.signal;
3256
+ const n = e.url || "";
3257
+ jn.set(n, t);
3258
+ const r = ke.get(Xe);
3259
+ if (r) {
3260
+ e.headers.Authorization = `Bearer ${r}`;
3261
+ const s = As(r), a = Cs(s.exp);
3262
+ if (/* @__PURE__ */ new Date() >= a) {
3263
+ const l = ke.get(kt);
3264
+ l && (e.headers["X-Authorization"] = `Bearer ${l}`);
3265
+ }
3266
+ if (((o = e.method) == null ? void 0 : o.toLowerCase()) === "get" && e.data) {
3267
+ let l = e.url + "?" + Ts(e.data);
3268
+ l = l.slice(0, -1), e.data = {}, e.url = l;
3269
+ }
3270
+ }
3271
+ return e;
3272
+ },
3273
+ (e) => Promise.reject(e)
3274
+ );
3275
+ $n.interceptors.response.use(
3276
+ (e) => {
3277
+ const t = e.config.url || "";
3278
+ jn.delete(t);
3279
+ var n = e.status, r = e.data;
3280
+ if (n === 401)
3281
+ throw new Error(e.statusText || "Request Error.");
3282
+ if (n >= 400)
3283
+ throw new Error(e.statusText || "Request Error.");
3284
+ if (r && r.hasOwnProperty("errors") && r.errors)
3285
+ throw new Error(JSON.stringify(r.errors || "Request Error."));
3286
+ var o = e.headers[Xe], s = e.headers[kt];
3287
+ if (o === "invalid_token")
3288
+ throw new Error(e.statusText || "Request Error.");
3289
+ if (s && o && (ke.set(Xe, o), ke.set(kt, s)), r.code === 401)
3290
+ throw new Error(e.statusText || "Request Error.");
3291
+ if (r.code === void 0)
3292
+ return Promise.resolve(e);
3293
+ if (r.code !== 200) {
3294
+ var a;
3295
+ throw r.message && typeof r.message == "object" ? a = JSON.stringify(r.message) : a = r.message, Fe({
3296
+ dangerouslyUseHTMLString: !0,
3297
+ message: a,
3298
+ type: "error"
3299
+ }), new Error(a);
3300
+ }
3301
+ return e;
3302
+ },
3303
+ (e) => {
3304
+ var t, n;
3305
+ if (e.response && e.response.status === 401)
3306
+ throw new Error(res.statusText || "Request Error.");
3307
+ return e.message.indexOf("timeout") != -1 ? Fe.error("网络超时") : e.message == "Network Error" ? Fe.error("网络连接错误") : (t = e.response) != null && t.data ? Fe.error((n = e.response) == null ? void 0 : n.statusText) : Fe.error("接口路径找不到"), Promise.reject(e);
3308
+ }
3309
+ );
3310
+ function Ts(e) {
3311
+ let t = "";
3312
+ for (const o of Object.keys(e)) {
3313
+ const s = e[o];
3314
+ var n = encodeURIComponent(o) + "=";
3315
+ if (s !== null && s !== "" && typeof s < "u")
3316
+ if (typeof s == "object") {
3317
+ for (const a of Object.keys(s))
3318
+ if (s[a] !== null && s[a] !== "" && typeof s[a] < "u") {
3319
+ let l = o + "[" + a + "]";
3320
+ var r = encodeURIComponent(l) + "=";
3321
+ t += r + encodeURIComponent(s[a]) + "&";
3322
+ }
3323
+ } else
3324
+ t += n + encodeURIComponent(s) + "&";
3325
+ }
3326
+ return t;
3327
+ }
3328
+ function As(e) {
3329
+ e = e.replace(/_/g, "/").replace(/-/g, "+");
3330
+ var t = decodeURIComponent(escape(window.atob(e.split(".")[1])));
3331
+ return JSON.parse(t);
3332
+ }
3333
+ function Cs(e) {
3334
+ return new Date(e * 1e3);
3335
+ }
3336
+ const xs = Ye(he), { itemData: ca } = Ee(xs), Ds = In(he), { systemKey: ua, activeMenuPath: fa } = Ee(Ds), Pe = U(0), pa = (e) => e.reduce((n, r) => {
3337
+ var s, a;
3338
+ const o = Object.values(n);
3339
+ return (((s = Object.keys(n)) == null ? void 0 : s.length) === 0 || o[o.length - 1].length >= (r == null ? void 0 : r.width)) && (n[Pe.value] = [], Pe.value++), n[Pe.value - 1].push(r), ((a = Object.keys(n)) == null ? void 0 : a.length) === (r == null ? void 0 : r.width) && (n[Pe.value] = [], Pe.value++), n;
3340
+ }, {});
3341
+ export {
3342
+ Ms as a,
3343
+ Js as b,
3344
+ pa as c,
3345
+ te as d,
3346
+ zs as e,
3347
+ Xn as f,
3348
+ ln as g,
3349
+ Hs as i,
3350
+ qs as m,
3351
+ he as p,
3352
+ nn as u,
3353
+ ne as v
3354
+ };