elcrm 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1046 -893
- package/dist/index.umd.js +11 -11
- package/dist/lib/Socket/Socket.d.ts +4 -0
- package/dist/lib/Socket/index.d.ts +9 -0
- package/dist/lib/Store/Store.d.ts +3 -1
- package/dist/lib/Store/index.d.ts +3 -1
- package/dist/lib/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './index.css';
|
|
2
|
-
import
|
|
3
|
-
let
|
|
4
|
-
const v = {},
|
|
5
|
-
function
|
|
6
|
-
if (
|
|
7
|
-
let
|
|
8
|
-
|
|
2
|
+
import j from "react";
|
|
3
|
+
let C = {};
|
|
4
|
+
const v = {}, O = {}, rt = {}, ut = {}, B = {};
|
|
5
|
+
function Ht(e, t) {
|
|
6
|
+
if (C = e, localStorage.getItem("ssid")) {
|
|
7
|
+
let a = sessionStorage.getItem("page");
|
|
8
|
+
a ? (a = C.deCode(a), v.id = a.id, v.tab = a.tab, v.page = a.page, v.module = a.module, v.time = a.time, v.payment = { active: !0 }, v.module_admin = a.module_admin) : (v.id = 0, v.tab = "", v.page = "Main", v.module = v.module || "M05");
|
|
9
9
|
} else
|
|
10
10
|
[
|
|
11
11
|
"ssid",
|
|
@@ -20,7 +20,7 @@ function Dt(e, t) {
|
|
|
20
20
|
"port",
|
|
21
21
|
"mark",
|
|
22
22
|
"sort"
|
|
23
|
-
].forEach((
|
|
23
|
+
].forEach((a) => localStorage.removeItem(a)), ["page"].forEach((a) => sessionStorage.removeItem(a)), v.id = 0, v.tab = "", v.page = "Auth", v.module = "M00";
|
|
24
24
|
return t;
|
|
25
25
|
}
|
|
26
26
|
function L() {
|
|
@@ -39,205 +39,218 @@ function L() {
|
|
|
39
39
|
"sort"
|
|
40
40
|
].forEach((e) => localStorage.removeItem(e)), ["page"].forEach((e) => sessionStorage.removeItem(e)), window.location.reload();
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Jt(e) {
|
|
43
43
|
e = e.split("/"), v.page = "Main", v.module = e[0], v.tab = e[1], v.id = 0, sessionStorage.setItem(
|
|
44
44
|
"page",
|
|
45
|
-
|
|
45
|
+
C.enCode({
|
|
46
46
|
module: v.module,
|
|
47
47
|
page: v.page,
|
|
48
48
|
tab: v.tab,
|
|
49
49
|
id: v.id,
|
|
50
50
|
time: (/* @__PURE__ */ new Date()).getTime()
|
|
51
51
|
})
|
|
52
|
-
),
|
|
52
|
+
), O.page(v.page);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Kt(e) {
|
|
55
55
|
return localStorage.setItem("ssid", e);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Qt() {
|
|
58
58
|
let e = localStorage.getItem("ssid");
|
|
59
59
|
return e !== "" && e !== "undefined" && e !== null ? localStorage.getItem("ssid") : (L(), !1);
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function qt(e) {
|
|
62
62
|
return localStorage.setItem("auth", e);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function en() {
|
|
65
65
|
let e = localStorage.getItem("auth");
|
|
66
66
|
return e !== "" && e !== "undefined" && e !== null ? e : (L(), !1);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
localStorage.setItem("port",
|
|
68
|
+
function tn(e) {
|
|
69
|
+
localStorage.setItem("port", C.enCode(e));
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Ee() {
|
|
72
72
|
let e = localStorage.getItem("port");
|
|
73
73
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
74
|
-
let t =
|
|
74
|
+
let t = C.deCode(e);
|
|
75
75
|
return t || L(), t;
|
|
76
76
|
} else
|
|
77
77
|
return L(), !1;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
const [e, t] =
|
|
81
|
-
t(
|
|
79
|
+
function nn() {
|
|
80
|
+
const [e, t] = j.useState(dt()), r = (a) => {
|
|
81
|
+
t(a);
|
|
82
82
|
};
|
|
83
|
-
return
|
|
83
|
+
return O.page = r, [e];
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
v.page = e, sessionStorage.setItem("page",
|
|
85
|
+
function rn(e) {
|
|
86
|
+
v.page = e, sessionStorage.setItem("page", C.enCode(v)), O.page(e);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function dt() {
|
|
89
89
|
return v.page;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
const [e, t] =
|
|
93
|
-
t(
|
|
91
|
+
function an() {
|
|
92
|
+
const [e, t] = j.useState(ft()), r = (a) => {
|
|
93
|
+
t(a);
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return O.module = r, [e];
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
v.module = e, sessionStorage.setItem("page",
|
|
97
|
+
function sn(e, t) {
|
|
98
|
+
v.module = e, sessionStorage.setItem("page", C.enCode(v)), t !== "false" && O.module(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function ft() {
|
|
101
101
|
return v.module;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const [t,
|
|
105
|
-
|
|
103
|
+
function on(e) {
|
|
104
|
+
const [t, r] = j.useState(ge() || e), a = (c) => {
|
|
105
|
+
r(c);
|
|
106
106
|
};
|
|
107
|
-
return
|
|
107
|
+
return O.tabs = a, [t];
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
v.tab = e, sessionStorage.setItem("page",
|
|
109
|
+
function cn(e, t) {
|
|
110
|
+
v.tab = e, sessionStorage.setItem("page", C.enCode(v)), t !== "false" && O.tabs(e);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function ge() {
|
|
113
113
|
return v.tab;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const [e, t] =
|
|
117
|
-
t(
|
|
115
|
+
function ln() {
|
|
116
|
+
const [e, t] = j.useState(v.id), r = (a) => {
|
|
117
|
+
t(a);
|
|
118
118
|
};
|
|
119
|
-
return
|
|
119
|
+
return O.id = r, [e];
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
|
|
121
|
+
function un(e) {
|
|
122
|
+
O.id = e;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
v.id = e, sessionStorage.setItem("page",
|
|
124
|
+
function dn(e, t) {
|
|
125
|
+
v.id = e, sessionStorage.setItem("page", C.enCode(v)), t !== "false" && O.id(e);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function fn() {
|
|
128
128
|
return v.id;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
v.module = e, v.id =
|
|
130
|
+
function mn(e, t, r) {
|
|
131
|
+
v.module = e, v.id = r, v.tab = t, sessionStorage.setItem("page", C.enCode(v)), O.module(e), O.tabs(t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
133
|
+
function pn(e, t) {
|
|
134
|
+
rt.data[e] = t, localStorage.setItem("sett", C.enCode(rt.data));
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function hn(e) {
|
|
137
137
|
let t = localStorage.getItem("sett");
|
|
138
|
-
return t === null ? {} : (t =
|
|
138
|
+
return t === null ? {} : (t = C.deCode(t), t ? e !== void 0 ? t[e] : t : L());
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
localStorage.setItem("menu",
|
|
140
|
+
function mt(e) {
|
|
141
|
+
localStorage.setItem("menu", C.enCode({ data: e }));
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function vn() {
|
|
144
144
|
let e = localStorage.getItem("menu");
|
|
145
145
|
if (e !== "" && e !== "undefined" && e !== null) {
|
|
146
|
-
let t = localStorage.getItem("menu"),
|
|
147
|
-
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
for (;
|
|
151
|
-
|
|
152
|
-
return
|
|
146
|
+
let t = localStorage.getItem("menu"), r = C.deCode(t);
|
|
147
|
+
r || L();
|
|
148
|
+
const a = (f, l) => {
|
|
149
|
+
let d = l + "";
|
|
150
|
+
for (; d.length < f; )
|
|
151
|
+
d = "0" + d;
|
|
152
|
+
return d;
|
|
153
153
|
};
|
|
154
|
-
return
|
|
154
|
+
return r.data.split(",").map((f) => "M" + a(2, f));
|
|
155
155
|
} else
|
|
156
156
|
return L(), !1;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
|
|
158
|
+
function gn(e) {
|
|
159
|
+
O.sort = e;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function pt(e) {
|
|
162
162
|
let t = localStorage.getItem("sort");
|
|
163
|
-
t = t === null ? {} :
|
|
163
|
+
t = t === null ? {} : C.deCode(t), t[ge()] = e, localStorage.setItem("sort", C.enCode(t));
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function Te() {
|
|
166
166
|
let e = localStorage.getItem("sort");
|
|
167
|
-
return e === null ? {} : (e =
|
|
167
|
+
return e === null ? {} : (e = C.deCode(e), e = e[ge()], e = e === void 0 ? { active: 1, sort: "<" } : e, e);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
localStorage.setItem("c",
|
|
169
|
+
function ht(e) {
|
|
170
|
+
localStorage.setItem("c", C.enCode(e));
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function bn(e) {
|
|
173
173
|
let t = localStorage.getItem("c");
|
|
174
174
|
if (t !== "" && t !== "undefined" && t !== null) {
|
|
175
|
-
let
|
|
176
|
-
return
|
|
175
|
+
let r = C.deCode(t);
|
|
176
|
+
return r || L(), e === void 0 ? r : r[e];
|
|
177
177
|
} else
|
|
178
178
|
return L(), !1;
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
|
|
180
|
+
function oe(e) {
|
|
181
|
+
B.data = e, localStorage.setItem("qder", C.enCode(B.data));
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
if (!
|
|
185
|
-
let
|
|
186
|
-
|
|
183
|
+
function ie(e, t) {
|
|
184
|
+
if (!B.data) {
|
|
185
|
+
let r = localStorage.getItem("qder");
|
|
186
|
+
r && (B.data = C.deCode(r));
|
|
187
187
|
}
|
|
188
|
-
return e === void 0 && t === void 0 ?
|
|
188
|
+
return e === void 0 && t === void 0 ? B.data : e !== void 0 && t === void 0 ? B.data[e] : B.data[e][t];
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
190
|
+
function _n(e) {
|
|
191
|
+
ut.data = e;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
return
|
|
193
|
+
function xn(e) {
|
|
194
|
+
return ut.data[e];
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function yn(e) {
|
|
197
197
|
v.payment = e;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Sn() {
|
|
200
200
|
return v.payment;
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
202
|
+
function vt(e) {
|
|
203
|
+
localStorage.setItem("user", C.enCode(e));
|
|
204
|
+
}
|
|
205
|
+
function jn() {
|
|
206
|
+
let e = localStorage.getItem("user");
|
|
207
|
+
if (e !== "" && e !== "undefined" && e !== null) {
|
|
208
|
+
let t = C.deCode(e);
|
|
209
|
+
return t || L(), t;
|
|
210
|
+
} else
|
|
211
|
+
return L(), !1;
|
|
212
|
+
}
|
|
213
|
+
const Pe = {
|
|
214
|
+
setSSID: Kt,
|
|
215
|
+
getSSID: Qt,
|
|
216
|
+
getPORT: Ee,
|
|
217
|
+
setPORT: tn,
|
|
218
|
+
setAUTH: qt,
|
|
219
|
+
getAUTH: en,
|
|
209
220
|
Logaut: L,
|
|
210
|
-
Start:
|
|
211
|
-
setSetting:
|
|
212
|
-
getSetting:
|
|
213
|
-
setMenu:
|
|
214
|
-
getMenu:
|
|
215
|
-
useSort:
|
|
216
|
-
setSort:
|
|
217
|
-
getSort:
|
|
218
|
-
setCompany:
|
|
219
|
-
getCompany:
|
|
220
|
-
setSelect:
|
|
221
|
-
getSelect:
|
|
222
|
-
setApi:
|
|
223
|
-
getApi:
|
|
224
|
-
setPayment:
|
|
225
|
-
getPayment:
|
|
226
|
-
|
|
227
|
-
|
|
221
|
+
Start: Jt,
|
|
222
|
+
setSetting: pn,
|
|
223
|
+
getSetting: hn,
|
|
224
|
+
setMenu: mt,
|
|
225
|
+
getMenu: vn,
|
|
226
|
+
useSort: gn,
|
|
227
|
+
setSort: pt,
|
|
228
|
+
getSort: Te,
|
|
229
|
+
setCompany: ht,
|
|
230
|
+
getCompany: bn,
|
|
231
|
+
setSelect: oe,
|
|
232
|
+
getSelect: ie,
|
|
233
|
+
setApi: _n,
|
|
234
|
+
getApi: xn,
|
|
235
|
+
setPayment: yn,
|
|
236
|
+
getPayment: Sn,
|
|
237
|
+
setUser: vt,
|
|
238
|
+
getUser: jn
|
|
239
|
+
}, gt = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBhPXtCQVNFX1VSTDoiLyIsTU9ERToicHJvZHVjdGlvbiIsREVWOiExLFBST0Q6ITAsU1NSOiExfTtvbm1lc3NhZ2U9YXN5bmMgdD0+e2NvbnNvbGUubG9nKGEuVklURV9VUkwpO3RyeXtsZXQgZT1hLlZJVEVfVVJMPT09ImxvY2FsaG9zdCI/Imh0dHA6Ly9sb2NhbGhvc3Q6MzUzNS8iOiJodHRwczovL2FwaS5lbGNybS5vbmxpbmUvIixzPWF3YWl0IGZldGNoKGAke2V9JHt0LmRhdGEubGlua31gLHttZXRob2Q6IlBPU1QiLGhlYWRlcnM6eyJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgiLHNzaWQ6dC5kYXRhLnNzaWR9LGJvZHk6SlNPTi5zdHJpbmdpZnkodC5kYXRhLmRhdGEpfSk7cG9zdE1lc3NhZ2UoYXdhaXQgcy5qc29uKCkpfWNhdGNoe3Bvc3RNZXNzYWdlKHtzdGF0dXM6ImVycm9yIn0pfX19KSgpOwo=", Cn = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), at = typeof window < "u" && window.Blob && new Blob([Cn(gt)], { type: "text/javascript;charset=utf-8" });
|
|
240
|
+
function kn(e) {
|
|
228
241
|
let t;
|
|
229
242
|
try {
|
|
230
|
-
if (t =
|
|
243
|
+
if (t = at && (window.URL || window.webkitURL).createObjectURL(at), !t)
|
|
231
244
|
throw "";
|
|
232
|
-
const
|
|
245
|
+
const r = new Worker(t, {
|
|
233
246
|
name: e == null ? void 0 : e.name
|
|
234
247
|
});
|
|
235
|
-
return
|
|
248
|
+
return r.addEventListener("error", () => {
|
|
236
249
|
(window.URL || window.webkitURL).revokeObjectURL(t);
|
|
237
|
-
}),
|
|
250
|
+
}), r;
|
|
238
251
|
} catch {
|
|
239
252
|
return new Worker(
|
|
240
|
-
"data:text/javascript;base64," +
|
|
253
|
+
"data:text/javascript;base64," + gt,
|
|
241
254
|
{
|
|
242
255
|
name: e == null ? void 0 : e.name
|
|
243
256
|
}
|
|
@@ -246,33 +259,33 @@ function _r(e) {
|
|
|
246
259
|
t && (window.URL || window.webkitURL).revokeObjectURL(t);
|
|
247
260
|
}
|
|
248
261
|
}
|
|
249
|
-
function
|
|
250
|
-
return "https://" +
|
|
262
|
+
function Rn(e) {
|
|
263
|
+
return "https://" + Pe.getPORT().address + "/audio/" + e;
|
|
251
264
|
}
|
|
252
|
-
function
|
|
253
|
-
return new Promise((
|
|
254
|
-
const c = new
|
|
255
|
-
c.onmessage = (
|
|
256
|
-
|
|
257
|
-
}, c.postMessage({ link: e, data: t, ssid:
|
|
265
|
+
function bt(e, t = {}, r = Pe.getAUTH()) {
|
|
266
|
+
return new Promise((a) => {
|
|
267
|
+
const c = new kn();
|
|
268
|
+
c.onmessage = (f) => {
|
|
269
|
+
a(f.data), c.terminate();
|
|
270
|
+
}, c.postMessage({ link: e, data: t, ssid: r });
|
|
258
271
|
});
|
|
259
272
|
}
|
|
260
|
-
async function
|
|
273
|
+
async function wn(e, t, r = {}) {
|
|
261
274
|
try {
|
|
262
|
-
return await (await
|
|
275
|
+
return await (await bt("https://" + e + "/" + t, {
|
|
263
276
|
method: "POST",
|
|
264
277
|
headers: {
|
|
265
278
|
"Content-type": "application/json;charset=utf-8",
|
|
266
|
-
ssid:
|
|
279
|
+
ssid: Pe.getAUTH() || ""
|
|
267
280
|
},
|
|
268
|
-
body: JSON.stringify(
|
|
281
|
+
body: JSON.stringify(r)
|
|
269
282
|
})).json();
|
|
270
283
|
} catch {
|
|
271
284
|
return { status: "error" };
|
|
272
285
|
}
|
|
273
286
|
}
|
|
274
|
-
const
|
|
275
|
-
var
|
|
287
|
+
const Da = { audio: Rn, fetch: bt, remoute: wn };
|
|
288
|
+
var Ie = { exports: {} }, re = {};
|
|
276
289
|
/**
|
|
277
290
|
* @license React
|
|
278
291
|
* react-jsx-runtime.production.min.js
|
|
@@ -282,25 +295,25 @@ var Se = { exports: {} }, te = {};
|
|
|
282
295
|
* This source code is licensed under the MIT license found in the
|
|
283
296
|
* LICENSE file in the root directory of this source tree.
|
|
284
297
|
*/
|
|
285
|
-
var
|
|
286
|
-
function
|
|
287
|
-
if (
|
|
288
|
-
return
|
|
289
|
-
|
|
290
|
-
var e =
|
|
291
|
-
function l(
|
|
292
|
-
var
|
|
293
|
-
|
|
294
|
-
for (
|
|
295
|
-
|
|
296
|
-
if (
|
|
297
|
-
for (
|
|
298
|
-
|
|
299
|
-
return { $$typeof: t, type:
|
|
298
|
+
var st;
|
|
299
|
+
function En() {
|
|
300
|
+
if (st)
|
|
301
|
+
return re;
|
|
302
|
+
st = 1;
|
|
303
|
+
var e = j, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
304
|
+
function l(d, u, m) {
|
|
305
|
+
var p, _ = {}, S = null, I = null;
|
|
306
|
+
m !== void 0 && (S = "" + m), u.key !== void 0 && (S = "" + u.key), u.ref !== void 0 && (I = u.ref);
|
|
307
|
+
for (p in u)
|
|
308
|
+
a.call(u, p) && !f.hasOwnProperty(p) && (_[p] = u[p]);
|
|
309
|
+
if (d && d.defaultProps)
|
|
310
|
+
for (p in u = d.defaultProps, u)
|
|
311
|
+
_[p] === void 0 && (_[p] = u[p]);
|
|
312
|
+
return { $$typeof: t, type: d, key: S, ref: I, props: _, _owner: c.current };
|
|
300
313
|
}
|
|
301
|
-
return
|
|
314
|
+
return re.Fragment = r, re.jsx = l, re.jsxs = l, re;
|
|
302
315
|
}
|
|
303
|
-
var
|
|
316
|
+
var ae = {};
|
|
304
317
|
/**
|
|
305
318
|
* @license React
|
|
306
319
|
* react-jsx-runtime.development.js
|
|
@@ -310,91 +323,91 @@ var re = {};
|
|
|
310
323
|
* This source code is licensed under the MIT license found in the
|
|
311
324
|
* LICENSE file in the root directory of this source tree.
|
|
312
325
|
*/
|
|
313
|
-
var
|
|
314
|
-
function
|
|
315
|
-
return
|
|
316
|
-
var e =
|
|
317
|
-
function
|
|
318
|
-
if (
|
|
326
|
+
var ot;
|
|
327
|
+
function Tn() {
|
|
328
|
+
return ot || (ot = 1, process.env.NODE_ENV !== "production" && function() {
|
|
329
|
+
var e = j, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), M = Symbol.iterator, ee = "@@iterator";
|
|
330
|
+
function $(n) {
|
|
331
|
+
if (n === null || typeof n != "object")
|
|
319
332
|
return null;
|
|
320
|
-
var o =
|
|
333
|
+
var o = M && n[M] || n[ee];
|
|
321
334
|
return typeof o == "function" ? o : null;
|
|
322
335
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
336
|
+
var N = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
337
|
+
function w(n) {
|
|
325
338
|
{
|
|
326
|
-
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0),
|
|
327
|
-
i[
|
|
328
|
-
|
|
339
|
+
for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), h = 1; h < o; h++)
|
|
340
|
+
i[h - 1] = arguments[h];
|
|
341
|
+
z("error", n, i);
|
|
329
342
|
}
|
|
330
343
|
}
|
|
331
|
-
function
|
|
344
|
+
function z(n, o, i) {
|
|
332
345
|
{
|
|
333
|
-
var
|
|
346
|
+
var h = N.ReactDebugCurrentFrame, x = h.getStackAddendum();
|
|
334
347
|
x !== "" && (o += "%s", i = i.concat([x]));
|
|
335
|
-
var y = i.map(function(
|
|
336
|
-
return String(
|
|
348
|
+
var y = i.map(function(b) {
|
|
349
|
+
return String(b);
|
|
337
350
|
});
|
|
338
|
-
y.unshift("Warning: " + o), Function.prototype.apply.call(console[
|
|
351
|
+
y.unshift("Warning: " + o), Function.prototype.apply.call(console[n], console, y);
|
|
339
352
|
}
|
|
340
353
|
}
|
|
341
|
-
var
|
|
342
|
-
|
|
343
|
-
function
|
|
344
|
-
return !!(typeof
|
|
354
|
+
var U = !1, V = !1, J = !1, le = !1, yt = !1, Oe;
|
|
355
|
+
Oe = Symbol.for("react.module.reference");
|
|
356
|
+
function St(n) {
|
|
357
|
+
return !!(typeof n == "string" || typeof n == "function" || n === a || n === f || yt || n === c || n === m || n === p || le || n === I || U || V || J || typeof n == "object" && n !== null && (n.$$typeof === S || n.$$typeof === _ || n.$$typeof === l || n.$$typeof === d || n.$$typeof === u || // This needs to include all possible module reference object
|
|
345
358
|
// types supported by any Flight configuration anywhere since
|
|
346
359
|
// we don't know which Flight build this will end up being used
|
|
347
360
|
// with.
|
|
348
|
-
|
|
361
|
+
n.$$typeof === Oe || n.getModuleId !== void 0));
|
|
349
362
|
}
|
|
350
|
-
function
|
|
351
|
-
var
|
|
352
|
-
if (
|
|
353
|
-
return
|
|
363
|
+
function jt(n, o, i) {
|
|
364
|
+
var h = n.displayName;
|
|
365
|
+
if (h)
|
|
366
|
+
return h;
|
|
354
367
|
var x = o.displayName || o.name || "";
|
|
355
368
|
return x !== "" ? i + "(" + x + ")" : i;
|
|
356
369
|
}
|
|
357
|
-
function
|
|
358
|
-
return
|
|
370
|
+
function Le(n) {
|
|
371
|
+
return n.displayName || "Context";
|
|
359
372
|
}
|
|
360
|
-
function
|
|
361
|
-
if (
|
|
373
|
+
function Z(n) {
|
|
374
|
+
if (n == null)
|
|
362
375
|
return null;
|
|
363
|
-
if (typeof
|
|
364
|
-
return
|
|
365
|
-
if (typeof
|
|
366
|
-
return
|
|
367
|
-
switch (
|
|
368
|
-
case
|
|
376
|
+
if (typeof n.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
377
|
+
return n.displayName || n.name || null;
|
|
378
|
+
if (typeof n == "string")
|
|
379
|
+
return n;
|
|
380
|
+
switch (n) {
|
|
381
|
+
case a:
|
|
369
382
|
return "Fragment";
|
|
370
|
-
case
|
|
383
|
+
case r:
|
|
371
384
|
return "Portal";
|
|
372
|
-
case
|
|
385
|
+
case f:
|
|
373
386
|
return "Profiler";
|
|
374
387
|
case c:
|
|
375
388
|
return "StrictMode";
|
|
376
|
-
case
|
|
389
|
+
case m:
|
|
377
390
|
return "Suspense";
|
|
378
|
-
case
|
|
391
|
+
case p:
|
|
379
392
|
return "SuspenseList";
|
|
380
393
|
}
|
|
381
|
-
if (typeof
|
|
382
|
-
switch (
|
|
383
|
-
case
|
|
384
|
-
var o =
|
|
385
|
-
return
|
|
394
|
+
if (typeof n == "object")
|
|
395
|
+
switch (n.$$typeof) {
|
|
396
|
+
case d:
|
|
397
|
+
var o = n;
|
|
398
|
+
return Le(o) + ".Consumer";
|
|
386
399
|
case l:
|
|
387
|
-
var i =
|
|
388
|
-
return
|
|
400
|
+
var i = n;
|
|
401
|
+
return Le(i._context) + ".Provider";
|
|
389
402
|
case u:
|
|
390
|
-
return
|
|
391
|
-
case
|
|
392
|
-
var
|
|
393
|
-
return
|
|
394
|
-
case
|
|
395
|
-
var x =
|
|
403
|
+
return jt(n, n.render, "ForwardRef");
|
|
404
|
+
case _:
|
|
405
|
+
var h = n.displayName || null;
|
|
406
|
+
return h !== null ? h : Z(n.type) || "Memo";
|
|
407
|
+
case S: {
|
|
408
|
+
var x = n, y = x._payload, b = x._init;
|
|
396
409
|
try {
|
|
397
|
-
return
|
|
410
|
+
return Z(b(y));
|
|
398
411
|
} catch {
|
|
399
412
|
return null;
|
|
400
413
|
}
|
|
@@ -402,305 +415,305 @@ function jr() {
|
|
|
402
415
|
}
|
|
403
416
|
return null;
|
|
404
417
|
}
|
|
405
|
-
var
|
|
406
|
-
function
|
|
418
|
+
var Y = Object.assign, te = 0, Fe, Me, $e, ze, Ze, De, Ue;
|
|
419
|
+
function We() {
|
|
407
420
|
}
|
|
408
|
-
|
|
409
|
-
function
|
|
421
|
+
We.__reactDisabledLog = !0;
|
|
422
|
+
function Ct() {
|
|
410
423
|
{
|
|
411
|
-
if (
|
|
412
|
-
|
|
413
|
-
var
|
|
424
|
+
if (te === 0) {
|
|
425
|
+
Fe = console.log, Me = console.info, $e = console.warn, ze = console.error, Ze = console.group, De = console.groupCollapsed, Ue = console.groupEnd;
|
|
426
|
+
var n = {
|
|
414
427
|
configurable: !0,
|
|
415
428
|
enumerable: !0,
|
|
416
|
-
value:
|
|
429
|
+
value: We,
|
|
417
430
|
writable: !0
|
|
418
431
|
};
|
|
419
432
|
Object.defineProperties(console, {
|
|
420
|
-
info:
|
|
421
|
-
log:
|
|
422
|
-
warn:
|
|
423
|
-
error:
|
|
424
|
-
group:
|
|
425
|
-
groupCollapsed:
|
|
426
|
-
groupEnd:
|
|
433
|
+
info: n,
|
|
434
|
+
log: n,
|
|
435
|
+
warn: n,
|
|
436
|
+
error: n,
|
|
437
|
+
group: n,
|
|
438
|
+
groupCollapsed: n,
|
|
439
|
+
groupEnd: n
|
|
427
440
|
});
|
|
428
441
|
}
|
|
429
|
-
|
|
442
|
+
te++;
|
|
430
443
|
}
|
|
431
444
|
}
|
|
432
|
-
function
|
|
445
|
+
function kt() {
|
|
433
446
|
{
|
|
434
|
-
if (
|
|
435
|
-
var
|
|
447
|
+
if (te--, te === 0) {
|
|
448
|
+
var n = {
|
|
436
449
|
configurable: !0,
|
|
437
450
|
enumerable: !0,
|
|
438
451
|
writable: !0
|
|
439
452
|
};
|
|
440
453
|
Object.defineProperties(console, {
|
|
441
|
-
log:
|
|
442
|
-
value:
|
|
454
|
+
log: Y({}, n, {
|
|
455
|
+
value: Fe
|
|
443
456
|
}),
|
|
444
|
-
info:
|
|
445
|
-
value:
|
|
457
|
+
info: Y({}, n, {
|
|
458
|
+
value: Me
|
|
446
459
|
}),
|
|
447
|
-
warn:
|
|
448
|
-
value:
|
|
460
|
+
warn: Y({}, n, {
|
|
461
|
+
value: $e
|
|
449
462
|
}),
|
|
450
|
-
error:
|
|
451
|
-
value:
|
|
463
|
+
error: Y({}, n, {
|
|
464
|
+
value: ze
|
|
452
465
|
}),
|
|
453
|
-
group:
|
|
454
|
-
value:
|
|
466
|
+
group: Y({}, n, {
|
|
467
|
+
value: Ze
|
|
455
468
|
}),
|
|
456
|
-
groupCollapsed:
|
|
457
|
-
value:
|
|
469
|
+
groupCollapsed: Y({}, n, {
|
|
470
|
+
value: De
|
|
458
471
|
}),
|
|
459
|
-
groupEnd:
|
|
460
|
-
value:
|
|
472
|
+
groupEnd: Y({}, n, {
|
|
473
|
+
value: Ue
|
|
461
474
|
})
|
|
462
475
|
});
|
|
463
476
|
}
|
|
464
|
-
|
|
477
|
+
te < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
465
478
|
}
|
|
466
479
|
}
|
|
467
|
-
var
|
|
468
|
-
function
|
|
480
|
+
var _e = N.ReactCurrentDispatcher, xe;
|
|
481
|
+
function ue(n, o, i) {
|
|
469
482
|
{
|
|
470
|
-
if (
|
|
483
|
+
if (xe === void 0)
|
|
471
484
|
try {
|
|
472
485
|
throw Error();
|
|
473
486
|
} catch (x) {
|
|
474
|
-
var
|
|
475
|
-
|
|
487
|
+
var h = x.stack.trim().match(/\n( *(at )?)/);
|
|
488
|
+
xe = h && h[1] || "";
|
|
476
489
|
}
|
|
477
490
|
return `
|
|
478
|
-
` +
|
|
491
|
+
` + xe + n;
|
|
479
492
|
}
|
|
480
493
|
}
|
|
481
|
-
var
|
|
494
|
+
var ye = !1, de;
|
|
482
495
|
{
|
|
483
|
-
var
|
|
484
|
-
|
|
496
|
+
var Rt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
497
|
+
de = new Rt();
|
|
485
498
|
}
|
|
486
|
-
function
|
|
487
|
-
if (!
|
|
499
|
+
function Ae(n, o) {
|
|
500
|
+
if (!n || ye)
|
|
488
501
|
return "";
|
|
489
502
|
{
|
|
490
|
-
var i =
|
|
503
|
+
var i = de.get(n);
|
|
491
504
|
if (i !== void 0)
|
|
492
505
|
return i;
|
|
493
506
|
}
|
|
494
|
-
var
|
|
495
|
-
|
|
507
|
+
var h;
|
|
508
|
+
ye = !0;
|
|
496
509
|
var x = Error.prepareStackTrace;
|
|
497
510
|
Error.prepareStackTrace = void 0;
|
|
498
511
|
var y;
|
|
499
|
-
y =
|
|
512
|
+
y = _e.current, _e.current = null, Ct();
|
|
500
513
|
try {
|
|
501
514
|
if (o) {
|
|
502
|
-
var
|
|
515
|
+
var b = function() {
|
|
503
516
|
throw Error();
|
|
504
517
|
};
|
|
505
|
-
if (Object.defineProperty(
|
|
518
|
+
if (Object.defineProperty(b.prototype, "props", {
|
|
506
519
|
set: function() {
|
|
507
520
|
throw Error();
|
|
508
521
|
}
|
|
509
522
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
510
523
|
try {
|
|
511
|
-
Reflect.construct(
|
|
512
|
-
} catch (
|
|
513
|
-
|
|
524
|
+
Reflect.construct(b, []);
|
|
525
|
+
} catch (D) {
|
|
526
|
+
h = D;
|
|
514
527
|
}
|
|
515
|
-
Reflect.construct(
|
|
528
|
+
Reflect.construct(n, [], b);
|
|
516
529
|
} else {
|
|
517
530
|
try {
|
|
518
|
-
|
|
519
|
-
} catch (
|
|
520
|
-
|
|
531
|
+
b.call();
|
|
532
|
+
} catch (D) {
|
|
533
|
+
h = D;
|
|
521
534
|
}
|
|
522
|
-
|
|
535
|
+
n.call(b.prototype);
|
|
523
536
|
}
|
|
524
537
|
} else {
|
|
525
538
|
try {
|
|
526
539
|
throw Error();
|
|
527
|
-
} catch (
|
|
528
|
-
|
|
540
|
+
} catch (D) {
|
|
541
|
+
h = D;
|
|
529
542
|
}
|
|
530
|
-
|
|
543
|
+
n();
|
|
531
544
|
}
|
|
532
|
-
} catch (
|
|
533
|
-
if (
|
|
534
|
-
for (var g =
|
|
535
|
-
`),
|
|
536
|
-
`),
|
|
545
|
+
} catch (D) {
|
|
546
|
+
if (D && h && typeof D.stack == "string") {
|
|
547
|
+
for (var g = D.stack.split(`
|
|
548
|
+
`), T = h.stack.split(`
|
|
549
|
+
`), k = g.length - 1, R = T.length - 1; k >= 1 && R >= 0 && g[k] !== T[R]; )
|
|
537
550
|
R--;
|
|
538
|
-
for (;
|
|
539
|
-
if (g[
|
|
540
|
-
if (
|
|
551
|
+
for (; k >= 1 && R >= 0; k--, R--)
|
|
552
|
+
if (g[k] !== T[R]) {
|
|
553
|
+
if (k !== 1 || R !== 1)
|
|
541
554
|
do
|
|
542
|
-
if (
|
|
543
|
-
var
|
|
544
|
-
` + g[
|
|
545
|
-
return
|
|
555
|
+
if (k--, R--, R < 0 || g[k] !== T[R]) {
|
|
556
|
+
var F = `
|
|
557
|
+
` + g[k].replace(" at new ", " at ");
|
|
558
|
+
return n.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", n.displayName)), typeof n == "function" && de.set(n, F), F;
|
|
546
559
|
}
|
|
547
|
-
while (
|
|
560
|
+
while (k >= 1 && R >= 0);
|
|
548
561
|
break;
|
|
549
562
|
}
|
|
550
563
|
}
|
|
551
564
|
} finally {
|
|
552
|
-
|
|
565
|
+
ye = !1, _e.current = y, kt(), Error.prepareStackTrace = x;
|
|
553
566
|
}
|
|
554
|
-
var
|
|
555
|
-
return typeof
|
|
567
|
+
var Q = n ? n.displayName || n.name : "", nt = Q ? ue(Q) : "";
|
|
568
|
+
return typeof n == "function" && de.set(n, nt), nt;
|
|
556
569
|
}
|
|
557
|
-
function
|
|
558
|
-
return
|
|
570
|
+
function wt(n, o, i) {
|
|
571
|
+
return Ae(n, !1);
|
|
559
572
|
}
|
|
560
|
-
function
|
|
561
|
-
var o =
|
|
573
|
+
function Et(n) {
|
|
574
|
+
var o = n.prototype;
|
|
562
575
|
return !!(o && o.isReactComponent);
|
|
563
576
|
}
|
|
564
|
-
function
|
|
565
|
-
if (
|
|
577
|
+
function fe(n, o, i) {
|
|
578
|
+
if (n == null)
|
|
566
579
|
return "";
|
|
567
|
-
if (typeof
|
|
568
|
-
return
|
|
569
|
-
if (typeof
|
|
570
|
-
return
|
|
571
|
-
switch (
|
|
572
|
-
case
|
|
573
|
-
return
|
|
574
|
-
case
|
|
575
|
-
return
|
|
580
|
+
if (typeof n == "function")
|
|
581
|
+
return Ae(n, Et(n));
|
|
582
|
+
if (typeof n == "string")
|
|
583
|
+
return ue(n);
|
|
584
|
+
switch (n) {
|
|
585
|
+
case m:
|
|
586
|
+
return ue("Suspense");
|
|
587
|
+
case p:
|
|
588
|
+
return ue("SuspenseList");
|
|
576
589
|
}
|
|
577
|
-
if (typeof
|
|
578
|
-
switch (
|
|
590
|
+
if (typeof n == "object")
|
|
591
|
+
switch (n.$$typeof) {
|
|
579
592
|
case u:
|
|
580
|
-
return
|
|
581
|
-
case
|
|
582
|
-
return
|
|
583
|
-
case
|
|
584
|
-
var
|
|
593
|
+
return wt(n.render);
|
|
594
|
+
case _:
|
|
595
|
+
return fe(n.type, o, i);
|
|
596
|
+
case S: {
|
|
597
|
+
var h = n, x = h._payload, y = h._init;
|
|
585
598
|
try {
|
|
586
|
-
return
|
|
599
|
+
return fe(y(x), o, i);
|
|
587
600
|
} catch {
|
|
588
601
|
}
|
|
589
602
|
}
|
|
590
603
|
}
|
|
591
604
|
return "";
|
|
592
605
|
}
|
|
593
|
-
var
|
|
594
|
-
function
|
|
595
|
-
if (
|
|
596
|
-
var o =
|
|
597
|
-
|
|
606
|
+
var me = Object.prototype.hasOwnProperty, Ge = {}, Ve = N.ReactDebugCurrentFrame;
|
|
607
|
+
function pe(n) {
|
|
608
|
+
if (n) {
|
|
609
|
+
var o = n._owner, i = fe(n.type, n._source, o ? o.type : null);
|
|
610
|
+
Ve.setExtraStackFrame(i);
|
|
598
611
|
} else
|
|
599
|
-
|
|
612
|
+
Ve.setExtraStackFrame(null);
|
|
600
613
|
}
|
|
601
|
-
function
|
|
614
|
+
function Tt(n, o, i, h, x) {
|
|
602
615
|
{
|
|
603
|
-
var y = Function.call.bind(
|
|
604
|
-
for (var
|
|
605
|
-
if (y(
|
|
616
|
+
var y = Function.call.bind(me);
|
|
617
|
+
for (var b in n)
|
|
618
|
+
if (y(n, b)) {
|
|
606
619
|
var g = void 0;
|
|
607
620
|
try {
|
|
608
|
-
if (typeof
|
|
609
|
-
var
|
|
610
|
-
throw
|
|
621
|
+
if (typeof n[b] != "function") {
|
|
622
|
+
var T = Error((h || "React class") + ": " + i + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
623
|
+
throw T.name = "Invariant Violation", T;
|
|
611
624
|
}
|
|
612
|
-
g =
|
|
613
|
-
} catch (
|
|
614
|
-
g =
|
|
625
|
+
g = n[b](o, b, h, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
626
|
+
} catch (k) {
|
|
627
|
+
g = k;
|
|
615
628
|
}
|
|
616
|
-
g && !(g instanceof Error) && (
|
|
629
|
+
g && !(g instanceof Error) && (pe(x), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", i, b, typeof g), pe(null)), g instanceof Error && !(g.message in Ge) && (Ge[g.message] = !0, pe(x), w("Failed %s type: %s", i, g.message), pe(null));
|
|
617
630
|
}
|
|
618
631
|
}
|
|
619
632
|
}
|
|
620
|
-
var
|
|
621
|
-
function
|
|
622
|
-
return
|
|
633
|
+
var It = Array.isArray;
|
|
634
|
+
function Se(n) {
|
|
635
|
+
return It(n);
|
|
623
636
|
}
|
|
624
|
-
function
|
|
637
|
+
function Nt(n) {
|
|
625
638
|
{
|
|
626
|
-
var o = typeof Symbol == "function" && Symbol.toStringTag, i = o &&
|
|
639
|
+
var o = typeof Symbol == "function" && Symbol.toStringTag, i = o && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
627
640
|
return i;
|
|
628
641
|
}
|
|
629
642
|
}
|
|
630
|
-
function
|
|
643
|
+
function Pt(n) {
|
|
631
644
|
try {
|
|
632
|
-
return
|
|
645
|
+
return Ye(n), !1;
|
|
633
646
|
} catch {
|
|
634
647
|
return !0;
|
|
635
648
|
}
|
|
636
649
|
}
|
|
637
|
-
function
|
|
638
|
-
return "" +
|
|
650
|
+
function Ye(n) {
|
|
651
|
+
return "" + n;
|
|
639
652
|
}
|
|
640
|
-
function
|
|
641
|
-
if (
|
|
642
|
-
return
|
|
653
|
+
function Be(n) {
|
|
654
|
+
if (Pt(n))
|
|
655
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Nt(n)), Ye(n);
|
|
643
656
|
}
|
|
644
|
-
var
|
|
657
|
+
var ne = N.ReactCurrentOwner, Ot = {
|
|
645
658
|
key: !0,
|
|
646
659
|
ref: !0,
|
|
647
660
|
__self: !0,
|
|
648
661
|
__source: !0
|
|
649
|
-
},
|
|
650
|
-
|
|
651
|
-
function
|
|
652
|
-
if (
|
|
653
|
-
var o = Object.getOwnPropertyDescriptor(
|
|
662
|
+
}, Xe, He, je;
|
|
663
|
+
je = {};
|
|
664
|
+
function Lt(n) {
|
|
665
|
+
if (me.call(n, "ref")) {
|
|
666
|
+
var o = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
654
667
|
if (o && o.isReactWarning)
|
|
655
668
|
return !1;
|
|
656
669
|
}
|
|
657
|
-
return
|
|
670
|
+
return n.ref !== void 0;
|
|
658
671
|
}
|
|
659
|
-
function
|
|
660
|
-
if (
|
|
661
|
-
var o = Object.getOwnPropertyDescriptor(
|
|
672
|
+
function Ft(n) {
|
|
673
|
+
if (me.call(n, "key")) {
|
|
674
|
+
var o = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
662
675
|
if (o && o.isReactWarning)
|
|
663
676
|
return !1;
|
|
664
677
|
}
|
|
665
|
-
return
|
|
678
|
+
return n.key !== void 0;
|
|
666
679
|
}
|
|
667
|
-
function
|
|
668
|
-
if (typeof
|
|
669
|
-
var i =
|
|
670
|
-
|
|
680
|
+
function Mt(n, o) {
|
|
681
|
+
if (typeof n.ref == "string" && ne.current && o && ne.current.stateNode !== o) {
|
|
682
|
+
var i = Z(ne.current.type);
|
|
683
|
+
je[i] || (w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(ne.current.type), n.ref), je[i] = !0);
|
|
671
684
|
}
|
|
672
685
|
}
|
|
673
|
-
function
|
|
686
|
+
function $t(n, o) {
|
|
674
687
|
{
|
|
675
688
|
var i = function() {
|
|
676
|
-
|
|
689
|
+
Xe || (Xe = !0, w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
677
690
|
};
|
|
678
|
-
i.isReactWarning = !0, Object.defineProperty(
|
|
691
|
+
i.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
679
692
|
get: i,
|
|
680
693
|
configurable: !0
|
|
681
694
|
});
|
|
682
695
|
}
|
|
683
696
|
}
|
|
684
|
-
function
|
|
697
|
+
function zt(n, o) {
|
|
685
698
|
{
|
|
686
699
|
var i = function() {
|
|
687
|
-
|
|
700
|
+
He || (He = !0, w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
|
|
688
701
|
};
|
|
689
|
-
i.isReactWarning = !0, Object.defineProperty(
|
|
702
|
+
i.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
690
703
|
get: i,
|
|
691
704
|
configurable: !0
|
|
692
705
|
});
|
|
693
706
|
}
|
|
694
707
|
}
|
|
695
|
-
var
|
|
708
|
+
var Zt = function(n, o, i, h, x, y, b) {
|
|
696
709
|
var g = {
|
|
697
710
|
// This tag allows us to uniquely identify this as a React Element
|
|
698
711
|
$$typeof: t,
|
|
699
712
|
// Built-in properties that belong on the element
|
|
700
|
-
type:
|
|
713
|
+
type: n,
|
|
701
714
|
key: o,
|
|
702
715
|
ref: i,
|
|
703
|
-
props:
|
|
716
|
+
props: b,
|
|
704
717
|
// Record the component responsible for creating this element.
|
|
705
718
|
_owner: y
|
|
706
719
|
};
|
|
@@ -713,7 +726,7 @@ function jr() {
|
|
|
713
726
|
configurable: !1,
|
|
714
727
|
enumerable: !1,
|
|
715
728
|
writable: !1,
|
|
716
|
-
value:
|
|
729
|
+
value: h
|
|
717
730
|
}), Object.defineProperty(g, "_source", {
|
|
718
731
|
configurable: !1,
|
|
719
732
|
enumerable: !1,
|
|
@@ -721,53 +734,53 @@ function jr() {
|
|
|
721
734
|
value: x
|
|
722
735
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
723
736
|
};
|
|
724
|
-
function
|
|
737
|
+
function Dt(n, o, i, h, x) {
|
|
725
738
|
{
|
|
726
|
-
var y,
|
|
727
|
-
i !== void 0 && (
|
|
739
|
+
var y, b = {}, g = null, T = null;
|
|
740
|
+
i !== void 0 && (Be(i), g = "" + i), Ft(o) && (Be(o.key), g = "" + o.key), Lt(o) && (T = o.ref, Mt(o, x));
|
|
728
741
|
for (y in o)
|
|
729
|
-
|
|
730
|
-
if (
|
|
731
|
-
var
|
|
732
|
-
for (y in
|
|
733
|
-
|
|
742
|
+
me.call(o, y) && !Ot.hasOwnProperty(y) && (b[y] = o[y]);
|
|
743
|
+
if (n && n.defaultProps) {
|
|
744
|
+
var k = n.defaultProps;
|
|
745
|
+
for (y in k)
|
|
746
|
+
b[y] === void 0 && (b[y] = k[y]);
|
|
734
747
|
}
|
|
735
|
-
if (g ||
|
|
736
|
-
var R = typeof
|
|
737
|
-
g &&
|
|
748
|
+
if (g || T) {
|
|
749
|
+
var R = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
750
|
+
g && $t(b, R), T && zt(b, R);
|
|
738
751
|
}
|
|
739
|
-
return
|
|
752
|
+
return Zt(n, g, T, x, h, ne.current, b);
|
|
740
753
|
}
|
|
741
754
|
}
|
|
742
|
-
var
|
|
743
|
-
function
|
|
744
|
-
if (
|
|
745
|
-
var o =
|
|
746
|
-
|
|
755
|
+
var Ce = N.ReactCurrentOwner, Je = N.ReactDebugCurrentFrame;
|
|
756
|
+
function K(n) {
|
|
757
|
+
if (n) {
|
|
758
|
+
var o = n._owner, i = fe(n.type, n._source, o ? o.type : null);
|
|
759
|
+
Je.setExtraStackFrame(i);
|
|
747
760
|
} else
|
|
748
|
-
|
|
761
|
+
Je.setExtraStackFrame(null);
|
|
749
762
|
}
|
|
750
|
-
var
|
|
751
|
-
|
|
752
|
-
function
|
|
753
|
-
return typeof
|
|
763
|
+
var ke;
|
|
764
|
+
ke = !1;
|
|
765
|
+
function Re(n) {
|
|
766
|
+
return typeof n == "object" && n !== null && n.$$typeof === t;
|
|
754
767
|
}
|
|
755
|
-
function
|
|
768
|
+
function Ke() {
|
|
756
769
|
{
|
|
757
|
-
if (
|
|
758
|
-
var
|
|
759
|
-
if (
|
|
770
|
+
if (Ce.current) {
|
|
771
|
+
var n = Z(Ce.current.type);
|
|
772
|
+
if (n)
|
|
760
773
|
return `
|
|
761
774
|
|
|
762
|
-
Check the render method of \`` +
|
|
775
|
+
Check the render method of \`` + n + "`.";
|
|
763
776
|
}
|
|
764
777
|
return "";
|
|
765
778
|
}
|
|
766
779
|
}
|
|
767
|
-
function
|
|
780
|
+
function Ut(n) {
|
|
768
781
|
{
|
|
769
|
-
if (
|
|
770
|
-
var o =
|
|
782
|
+
if (n !== void 0) {
|
|
783
|
+
var o = n.fileName.replace(/^.*[\\\/]/, ""), i = n.lineNumber;
|
|
771
784
|
return `
|
|
772
785
|
|
|
773
786
|
Check your code at ` + o + ":" + i + ".";
|
|
@@ -775,12 +788,12 @@ Check your code at ` + o + ":" + i + ".";
|
|
|
775
788
|
return "";
|
|
776
789
|
}
|
|
777
790
|
}
|
|
778
|
-
var
|
|
779
|
-
function
|
|
791
|
+
var Qe = {};
|
|
792
|
+
function Wt(n) {
|
|
780
793
|
{
|
|
781
|
-
var o =
|
|
794
|
+
var o = Ke();
|
|
782
795
|
if (!o) {
|
|
783
|
-
var i = typeof
|
|
796
|
+
var i = typeof n == "string" ? n : n.displayName || n.name;
|
|
784
797
|
i && (o = `
|
|
785
798
|
|
|
786
799
|
Check the top-level render call using <` + i + ">.");
|
|
@@ -788,41 +801,41 @@ Check the top-level render call using <` + i + ">.");
|
|
|
788
801
|
return o;
|
|
789
802
|
}
|
|
790
803
|
}
|
|
791
|
-
function
|
|
804
|
+
function qe(n, o) {
|
|
792
805
|
{
|
|
793
|
-
if (!
|
|
806
|
+
if (!n._store || n._store.validated || n.key != null)
|
|
794
807
|
return;
|
|
795
|
-
|
|
796
|
-
var i =
|
|
797
|
-
if (
|
|
808
|
+
n._store.validated = !0;
|
|
809
|
+
var i = Wt(o);
|
|
810
|
+
if (Qe[i])
|
|
798
811
|
return;
|
|
799
|
-
|
|
800
|
-
var
|
|
801
|
-
|
|
812
|
+
Qe[i] = !0;
|
|
813
|
+
var h = "";
|
|
814
|
+
n && n._owner && n._owner !== Ce.current && (h = " It was passed a child from " + Z(n._owner.type) + "."), K(n), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, h), K(null);
|
|
802
815
|
}
|
|
803
816
|
}
|
|
804
|
-
function
|
|
817
|
+
function et(n, o) {
|
|
805
818
|
{
|
|
806
|
-
if (typeof
|
|
819
|
+
if (typeof n != "object")
|
|
807
820
|
return;
|
|
808
|
-
if (
|
|
809
|
-
for (var i = 0; i <
|
|
810
|
-
var
|
|
811
|
-
|
|
821
|
+
if (Se(n))
|
|
822
|
+
for (var i = 0; i < n.length; i++) {
|
|
823
|
+
var h = n[i];
|
|
824
|
+
Re(h) && qe(h, o);
|
|
812
825
|
}
|
|
813
|
-
else if (
|
|
814
|
-
|
|
815
|
-
else if (
|
|
816
|
-
var x =
|
|
817
|
-
if (typeof x == "function" && x !==
|
|
818
|
-
for (var y = x.call(
|
|
819
|
-
|
|
826
|
+
else if (Re(n))
|
|
827
|
+
n._store && (n._store.validated = !0);
|
|
828
|
+
else if (n) {
|
|
829
|
+
var x = $(n);
|
|
830
|
+
if (typeof x == "function" && x !== n.entries)
|
|
831
|
+
for (var y = x.call(n), b; !(b = y.next()).done; )
|
|
832
|
+
Re(b.value) && qe(b.value, o);
|
|
820
833
|
}
|
|
821
834
|
}
|
|
822
835
|
}
|
|
823
|
-
function
|
|
836
|
+
function At(n) {
|
|
824
837
|
{
|
|
825
|
-
var o =
|
|
838
|
+
var o = n.type;
|
|
826
839
|
if (o == null || typeof o == "string")
|
|
827
840
|
return;
|
|
828
841
|
var i;
|
|
@@ -830,156 +843,156 @@ Check the top-level render call using <` + i + ">.");
|
|
|
830
843
|
i = o.propTypes;
|
|
831
844
|
else if (typeof o == "object" && (o.$$typeof === u || // Note: Memo only checks outer props here.
|
|
832
845
|
// Inner props are checked in the reconciler.
|
|
833
|
-
o.$$typeof ===
|
|
846
|
+
o.$$typeof === _))
|
|
834
847
|
i = o.propTypes;
|
|
835
848
|
else
|
|
836
849
|
return;
|
|
837
850
|
if (i) {
|
|
838
|
-
var
|
|
839
|
-
|
|
840
|
-
} else if (o.PropTypes !== void 0 && !
|
|
841
|
-
|
|
842
|
-
var x =
|
|
843
|
-
|
|
851
|
+
var h = Z(o);
|
|
852
|
+
Tt(i, n.props, "prop", h, n);
|
|
853
|
+
} else if (o.PropTypes !== void 0 && !ke) {
|
|
854
|
+
ke = !0;
|
|
855
|
+
var x = Z(o);
|
|
856
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", x || "Unknown");
|
|
844
857
|
}
|
|
845
|
-
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved &&
|
|
858
|
+
typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
846
859
|
}
|
|
847
860
|
}
|
|
848
|
-
function
|
|
861
|
+
function Gt(n) {
|
|
849
862
|
{
|
|
850
|
-
for (var o = Object.keys(
|
|
851
|
-
var
|
|
852
|
-
if (
|
|
853
|
-
|
|
863
|
+
for (var o = Object.keys(n.props), i = 0; i < o.length; i++) {
|
|
864
|
+
var h = o[i];
|
|
865
|
+
if (h !== "children" && h !== "key") {
|
|
866
|
+
K(n), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), K(null);
|
|
854
867
|
break;
|
|
855
868
|
}
|
|
856
869
|
}
|
|
857
|
-
|
|
870
|
+
n.ref !== null && (K(n), w("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
|
|
858
871
|
}
|
|
859
872
|
}
|
|
860
|
-
function
|
|
873
|
+
function tt(n, o, i, h, x, y) {
|
|
861
874
|
{
|
|
862
|
-
var
|
|
863
|
-
if (!
|
|
875
|
+
var b = St(n);
|
|
876
|
+
if (!b) {
|
|
864
877
|
var g = "";
|
|
865
|
-
(
|
|
866
|
-
var
|
|
867
|
-
|
|
868
|
-
var
|
|
869
|
-
|
|
878
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
879
|
+
var T = Ut(x);
|
|
880
|
+
T ? g += T : g += Ke();
|
|
881
|
+
var k;
|
|
882
|
+
n === null ? k = "null" : Se(n) ? k = "array" : n !== void 0 && n.$$typeof === t ? (k = "<" + (Z(n.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : k = typeof n, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, g);
|
|
870
883
|
}
|
|
871
|
-
var R =
|
|
884
|
+
var R = Dt(n, o, i, x, y);
|
|
872
885
|
if (R == null)
|
|
873
886
|
return R;
|
|
874
|
-
if (
|
|
875
|
-
var
|
|
876
|
-
if (
|
|
877
|
-
if (
|
|
878
|
-
if (
|
|
879
|
-
for (var
|
|
880
|
-
|
|
881
|
-
Object.freeze && Object.freeze(
|
|
887
|
+
if (b) {
|
|
888
|
+
var F = o.children;
|
|
889
|
+
if (F !== void 0)
|
|
890
|
+
if (h)
|
|
891
|
+
if (Se(F)) {
|
|
892
|
+
for (var Q = 0; Q < F.length; Q++)
|
|
893
|
+
et(F[Q], n);
|
|
894
|
+
Object.freeze && Object.freeze(F);
|
|
882
895
|
} else
|
|
883
|
-
|
|
896
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
884
897
|
else
|
|
885
|
-
|
|
898
|
+
et(F, n);
|
|
886
899
|
}
|
|
887
|
-
return
|
|
900
|
+
return n === a ? Gt(R) : At(R), R;
|
|
888
901
|
}
|
|
889
902
|
}
|
|
890
|
-
function
|
|
891
|
-
return
|
|
903
|
+
function Vt(n, o, i) {
|
|
904
|
+
return tt(n, o, i, !0);
|
|
892
905
|
}
|
|
893
|
-
function
|
|
894
|
-
return
|
|
906
|
+
function Yt(n, o, i) {
|
|
907
|
+
return tt(n, o, i, !1);
|
|
895
908
|
}
|
|
896
|
-
var
|
|
897
|
-
|
|
898
|
-
}()),
|
|
899
|
-
}
|
|
900
|
-
process.env.NODE_ENV === "production" ?
|
|
901
|
-
var
|
|
902
|
-
const
|
|
903
|
-
notice:
|
|
904
|
-
error:
|
|
905
|
-
success:
|
|
906
|
-
remark:
|
|
907
|
-
copy:
|
|
909
|
+
var Bt = Yt, Xt = Vt;
|
|
910
|
+
ae.Fragment = a, ae.jsx = Bt, ae.jsxs = Xt;
|
|
911
|
+
}()), ae;
|
|
912
|
+
}
|
|
913
|
+
process.env.NODE_ENV === "production" ? Ie.exports = En() : Ie.exports = Tn();
|
|
914
|
+
var s = Ie.exports;
|
|
915
|
+
const In = "_notice_820sc_2", Nn = "_error_820sc_9", Pn = "_success_820sc_12", On = "_remark_820sc_15", Ln = "_copy_820sc_18", Fn = {
|
|
916
|
+
notice: In,
|
|
917
|
+
error: Nn,
|
|
918
|
+
success: Pn,
|
|
919
|
+
remark: On,
|
|
920
|
+
copy: Ln,
|
|
908
921
|
"show-notice": "_show-notice_820sc_1",
|
|
909
922
|
"hide-notice": "_hide-notice_820sc_1"
|
|
910
923
|
};
|
|
911
|
-
let
|
|
912
|
-
function
|
|
913
|
-
let [e, t] =
|
|
914
|
-
return
|
|
915
|
-
t([...e,
|
|
916
|
-
},
|
|
917
|
-
t(e.filter((
|
|
918
|
-
}, e.length === 0 ? "" : /* @__PURE__ */
|
|
919
|
-
}
|
|
920
|
-
function
|
|
921
|
-
let [t,
|
|
922
|
-
|
|
924
|
+
let G = {};
|
|
925
|
+
function Mn() {
|
|
926
|
+
let [e, t] = j.useState([]);
|
|
927
|
+
return G.set = (r) => {
|
|
928
|
+
t([...e, r]);
|
|
929
|
+
}, G.del = (r) => {
|
|
930
|
+
t(e.filter((a) => a.key !== r));
|
|
931
|
+
}, e.length === 0 ? "" : /* @__PURE__ */ s.jsx("ul", { className: Fn.notice, children: e.map((r) => r.item) });
|
|
932
|
+
}
|
|
933
|
+
function ce({ data: e }) {
|
|
934
|
+
let [t, r] = j.useState("show");
|
|
935
|
+
j.useEffect(() => {
|
|
923
936
|
setTimeout(function() {
|
|
924
|
-
|
|
937
|
+
r("hide");
|
|
925
938
|
}, 1800), setTimeout(function() {
|
|
926
|
-
|
|
939
|
+
G.del(e.key);
|
|
927
940
|
}, 2500);
|
|
928
941
|
}, [e.key]);
|
|
929
|
-
let
|
|
942
|
+
let a, c;
|
|
930
943
|
switch (e.type) {
|
|
931
944
|
case "error":
|
|
932
|
-
|
|
945
|
+
a = /* @__PURE__ */ s.jsx(X.error, {}), c = "Ошибка:";
|
|
933
946
|
break;
|
|
934
947
|
case "success":
|
|
935
|
-
|
|
948
|
+
a = /* @__PURE__ */ s.jsx(X.success, {}), c = "Информация:";
|
|
936
949
|
break;
|
|
937
950
|
case "copy":
|
|
938
|
-
|
|
951
|
+
a = /* @__PURE__ */ s.jsx(X.success, {}), c = "Копирование:";
|
|
939
952
|
break;
|
|
940
953
|
case "remark":
|
|
941
|
-
|
|
954
|
+
a = /* @__PURE__ */ s.jsx(X.success, {}), c = "Подсказка:";
|
|
942
955
|
break;
|
|
943
956
|
default:
|
|
944
|
-
|
|
957
|
+
a = /* @__PURE__ */ s.jsx(X.success, {}), c = "Предупреждение:";
|
|
945
958
|
break;
|
|
946
959
|
}
|
|
947
|
-
return /* @__PURE__ */
|
|
948
|
-
|
|
949
|
-
/* @__PURE__ */
|
|
950
|
-
/* @__PURE__ */
|
|
960
|
+
return /* @__PURE__ */ s.jsxs("li", { className: "item " + e.type, "data-status": t, children: [
|
|
961
|
+
a,
|
|
962
|
+
/* @__PURE__ */ s.jsx("b", { children: c }),
|
|
963
|
+
/* @__PURE__ */ s.jsx("p", { children: e.text })
|
|
951
964
|
] });
|
|
952
965
|
}
|
|
953
|
-
function
|
|
954
|
-
let t = Date.now(),
|
|
955
|
-
|
|
966
|
+
function $n(e) {
|
|
967
|
+
let t = Date.now(), r = { key: t, ...e };
|
|
968
|
+
G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
|
|
956
969
|
}
|
|
957
|
-
function
|
|
958
|
-
let t = Date.now(),
|
|
959
|
-
|
|
970
|
+
function zn(e) {
|
|
971
|
+
let t = Date.now(), r = { key: t, text: e, type: "error" };
|
|
972
|
+
G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
|
|
960
973
|
}
|
|
961
|
-
function
|
|
962
|
-
let t = Date.now(),
|
|
963
|
-
|
|
974
|
+
function Zn(e) {
|
|
975
|
+
let t = Date.now(), r = { key: t, text: e, type: "success" };
|
|
976
|
+
G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
|
|
964
977
|
}
|
|
965
|
-
function
|
|
966
|
-
let t = Date.now(),
|
|
967
|
-
|
|
978
|
+
function Dn(e) {
|
|
979
|
+
let t = Date.now(), r = { key: t, text: e, type: "remark" };
|
|
980
|
+
G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
|
|
968
981
|
}
|
|
969
|
-
function
|
|
970
|
-
let t = Date.now(),
|
|
971
|
-
|
|
982
|
+
function Un(e) {
|
|
983
|
+
let t = Date.now(), r = { key: t, text: e, type: "copy" };
|
|
984
|
+
G.set({ item: /* @__PURE__ */ s.jsx(ce, { data: r }, t), key: t });
|
|
972
985
|
}
|
|
973
|
-
const
|
|
974
|
-
|
|
975
|
-
/* @__PURE__ */
|
|
986
|
+
const X = {};
|
|
987
|
+
X.error = () => /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
988
|
+
/* @__PURE__ */ s.jsx(
|
|
976
989
|
"path",
|
|
977
990
|
{
|
|
978
991
|
d: "M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",
|
|
979
992
|
fill: "#bb2014"
|
|
980
993
|
}
|
|
981
994
|
),
|
|
982
|
-
/* @__PURE__ */
|
|
995
|
+
/* @__PURE__ */ s.jsx(
|
|
983
996
|
"path",
|
|
984
997
|
{
|
|
985
998
|
d: "M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",
|
|
@@ -987,15 +1000,15 @@ G.error = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "non
|
|
|
987
1000
|
}
|
|
988
1001
|
)
|
|
989
1002
|
] });
|
|
990
|
-
|
|
991
|
-
/* @__PURE__ */
|
|
1003
|
+
X.success = () => /* @__PURE__ */ s.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", children: [
|
|
1004
|
+
/* @__PURE__ */ s.jsx(
|
|
992
1005
|
"path",
|
|
993
1006
|
{
|
|
994
1007
|
d: "M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",
|
|
995
1008
|
fill: "#367738"
|
|
996
1009
|
}
|
|
997
1010
|
),
|
|
998
|
-
/* @__PURE__ */
|
|
1011
|
+
/* @__PURE__ */ s.jsx(
|
|
999
1012
|
"path",
|
|
1000
1013
|
{
|
|
1001
1014
|
d: "M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",
|
|
@@ -1003,206 +1016,206 @@ G.success = () => /* @__PURE__ */ a.jsxs("svg", { viewBox: "0 0 24 24", fill: "n
|
|
|
1003
1016
|
}
|
|
1004
1017
|
)
|
|
1005
1018
|
] });
|
|
1006
|
-
const
|
|
1007
|
-
alerts:
|
|
1008
|
-
menuAnimation:
|
|
1009
|
-
menuItemAnimation:
|
|
1019
|
+
const Wn = "_alerts_1e9y0_1", An = "_menuAnimation_1e9y0_1", Gn = "_menuItemAnimation_1e9y0_1", Vn = "_allert_1e9y0_111", Yn = {
|
|
1020
|
+
alerts: Wn,
|
|
1021
|
+
menuAnimation: An,
|
|
1022
|
+
menuItemAnimation: Gn,
|
|
1010
1023
|
"--body": "_--body_1e9y0_103",
|
|
1011
|
-
allert:
|
|
1024
|
+
allert: Vn,
|
|
1012
1025
|
"--form": "_--form_1e9y0_111"
|
|
1013
1026
|
};
|
|
1014
|
-
let
|
|
1015
|
-
function
|
|
1016
|
-
let [e, t] =
|
|
1017
|
-
return
|
|
1018
|
-
}
|
|
1019
|
-
const
|
|
1020
|
-
/* @__PURE__ */
|
|
1021
|
-
/* @__PURE__ */
|
|
1022
|
-
/* @__PURE__ */
|
|
1023
|
-
/* @__PURE__ */
|
|
1027
|
+
let se = {};
|
|
1028
|
+
function Bn() {
|
|
1029
|
+
let [e, t] = j.useState("");
|
|
1030
|
+
return se.set = (r) => t(r), se.del = () => t(""), /* @__PURE__ */ s.jsx(s.Fragment, { children: e });
|
|
1031
|
+
}
|
|
1032
|
+
const Xn = ({ data: e, callback: t }) => (e.button = e.button === void 0 ? "Подтвердить" : e.button, /* @__PURE__ */ s.jsxs("div", { className: Yn.alerts, children: [
|
|
1033
|
+
/* @__PURE__ */ s.jsxs("dl", { children: [
|
|
1034
|
+
/* @__PURE__ */ s.jsx("dt", { children: e.title }),
|
|
1035
|
+
/* @__PURE__ */ s.jsx("dd", { children: e.text }),
|
|
1036
|
+
/* @__PURE__ */ s.jsx("ul", { children: /* @__PURE__ */ s.jsx(
|
|
1024
1037
|
"button",
|
|
1025
1038
|
{
|
|
1026
1039
|
"data-color": e.color || "blue",
|
|
1027
1040
|
onClick: () => {
|
|
1028
|
-
t(),
|
|
1041
|
+
t(), se.del();
|
|
1029
1042
|
},
|
|
1030
1043
|
children: e.button
|
|
1031
1044
|
}
|
|
1032
1045
|
) })
|
|
1033
1046
|
] }),
|
|
1034
|
-
/* @__PURE__ */
|
|
1047
|
+
/* @__PURE__ */ s.jsx("div", { className: "--body", onClick: se.del })
|
|
1035
1048
|
] }));
|
|
1036
|
-
function
|
|
1037
|
-
|
|
1049
|
+
function Hn(e, t) {
|
|
1050
|
+
se.set(/* @__PURE__ */ s.jsx(Xn, { data: e, callback: t }));
|
|
1038
1051
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return /* @__PURE__ */
|
|
1052
|
+
function Jn({ children: e }) {
|
|
1053
|
+
return /* @__PURE__ */ s.jsx("div", { className: "l", children: /* @__PURE__ */ s.jsx("ul", { children: e }) });
|
|
1041
1054
|
}
|
|
1042
|
-
function
|
|
1043
|
-
return /* @__PURE__ */
|
|
1055
|
+
function Kn({ children: e }) {
|
|
1056
|
+
return /* @__PURE__ */ s.jsx("div", { className: "s", children: e });
|
|
1044
1057
|
}
|
|
1045
|
-
const
|
|
1058
|
+
const Qn = ({
|
|
1046
1059
|
children: e,
|
|
1047
1060
|
disabled: t,
|
|
1048
|
-
label:
|
|
1049
|
-
onClick:
|
|
1061
|
+
label: r,
|
|
1062
|
+
onClick: a
|
|
1050
1063
|
}) => {
|
|
1051
|
-
const c = (
|
|
1052
|
-
t ||
|
|
1064
|
+
const c = (f) => {
|
|
1065
|
+
t || a && a(f);
|
|
1053
1066
|
};
|
|
1054
|
-
return /* @__PURE__ */
|
|
1055
|
-
},
|
|
1056
|
-
white:
|
|
1057
|
-
black:
|
|
1058
|
-
shake:
|
|
1059
|
-
modal:
|
|
1060
|
-
o:
|
|
1061
|
-
w:
|
|
1062
|
-
h:
|
|
1063
|
-
l:
|
|
1064
|
-
t:
|
|
1065
|
-
m:
|
|
1066
|
-
x:
|
|
1067
|
-
s:
|
|
1068
|
-
c:
|
|
1069
|
-
f:
|
|
1070
|
-
btn:
|
|
1071
|
-
g:
|
|
1067
|
+
return /* @__PURE__ */ s.jsx("button", { disabled: t, onClick: c, children: r });
|
|
1068
|
+
}, qn = "_white_1iomo_14", er = "_black_1iomo_26", tr = "_shake_1iomo_1", nr = "_modal_1iomo_73", rr = "_o_1iomo_83", ar = "_w_1iomo_14", sr = "_h_1iomo_106", or = "_l_1iomo_120", ir = "_t_1iomo_158", cr = "_m_1iomo_73", lr = "_x_1iomo_166", ur = "_s_1iomo_176", dr = "_c_1iomo_181", fr = "_f_1iomo_186", mr = "_btn_1iomo_229", pr = "_g_1iomo_242", hr = "_confirm_1iomo_320", vr = "_cancel_1iomo_325", gr = "_disabled_1iomo_330", br = "_active_1iomo_387", _r = "_coincidence_1iomo_393", W = {
|
|
1069
|
+
white: qn,
|
|
1070
|
+
black: er,
|
|
1071
|
+
shake: tr,
|
|
1072
|
+
modal: nr,
|
|
1073
|
+
o: rr,
|
|
1074
|
+
w: ar,
|
|
1075
|
+
h: sr,
|
|
1076
|
+
l: or,
|
|
1077
|
+
t: ir,
|
|
1078
|
+
m: cr,
|
|
1079
|
+
x: lr,
|
|
1080
|
+
s: ur,
|
|
1081
|
+
c: dr,
|
|
1082
|
+
f: fr,
|
|
1083
|
+
btn: mr,
|
|
1084
|
+
g: pr,
|
|
1072
1085
|
"size-a": "_size-a_1iomo_294",
|
|
1073
1086
|
"size-s": "_size-s_1iomo_298",
|
|
1074
1087
|
"size-m": "_size-m_1iomo_302",
|
|
1075
1088
|
"size-l": "_size-l_1iomo_306",
|
|
1076
1089
|
"size-x": "_size-x_1iomo_310",
|
|
1077
1090
|
"size-f": "_size-f_1iomo_314",
|
|
1078
|
-
confirm:
|
|
1079
|
-
cancel:
|
|
1080
|
-
disabled:
|
|
1091
|
+
confirm: hr,
|
|
1092
|
+
cancel: vr,
|
|
1093
|
+
disabled: gr,
|
|
1081
1094
|
await: "_await_1iomo_337",
|
|
1082
|
-
active:
|
|
1083
|
-
coincidence:
|
|
1095
|
+
active: br,
|
|
1096
|
+
coincidence: _r
|
|
1084
1097
|
};
|
|
1085
1098
|
let q = {};
|
|
1086
|
-
const
|
|
1087
|
-
let [t,
|
|
1099
|
+
const xr = ({ config: e }) => {
|
|
1100
|
+
let [t, r] = j.useState([]);
|
|
1088
1101
|
return q.x = () => {
|
|
1089
|
-
|
|
1090
|
-
}, q.config = e, q.add = (
|
|
1091
|
-
|
|
1092
|
-
}, /* @__PURE__ */
|
|
1093
|
-
},
|
|
1102
|
+
r([]);
|
|
1103
|
+
}, q.config = e, q.add = (a) => {
|
|
1104
|
+
r([...t, a]);
|
|
1105
|
+
}, /* @__PURE__ */ s.jsx(s.Fragment, { children: t.map((a) => a) });
|
|
1106
|
+
}, yr = ({
|
|
1094
1107
|
children: e,
|
|
1095
1108
|
title: t,
|
|
1096
|
-
button:
|
|
1097
|
-
tabs:
|
|
1109
|
+
button: r,
|
|
1110
|
+
tabs: a,
|
|
1098
1111
|
size: c = "m",
|
|
1099
|
-
menu:
|
|
1112
|
+
menu: f
|
|
1100
1113
|
}) => {
|
|
1101
|
-
const [l,
|
|
1102
|
-
if (
|
|
1103
|
-
return
|
|
1104
|
-
},
|
|
1114
|
+
const [l, d] = j.useState(!0), u = j.useRef(), m = (_) => {
|
|
1115
|
+
if (r && r.onClick)
|
|
1116
|
+
return r.onClick({ closed: d, disabled: _ });
|
|
1117
|
+
}, p = () => {
|
|
1105
1118
|
u.current.setAttribute("shake", !0), setTimeout(() => {
|
|
1106
1119
|
u.current.setAttribute("shake", !1);
|
|
1107
1120
|
}, 1e3);
|
|
1108
1121
|
};
|
|
1109
|
-
return /* @__PURE__ */
|
|
1122
|
+
return /* @__PURE__ */ s.jsx(s.Fragment, { children: l ? /* @__PURE__ */ s.jsxs(
|
|
1110
1123
|
"div",
|
|
1111
1124
|
{
|
|
1112
|
-
className: `${
|
|
1125
|
+
className: `${W.modal} ${W.white}`,
|
|
1113
1126
|
children: [
|
|
1114
|
-
/* @__PURE__ */
|
|
1115
|
-
/* @__PURE__ */
|
|
1116
|
-
/* @__PURE__ */
|
|
1117
|
-
/* @__PURE__ */
|
|
1118
|
-
/* @__PURE__ */
|
|
1119
|
-
|
|
1127
|
+
/* @__PURE__ */ s.jsx("div", { className: W.o, onClick: p }),
|
|
1128
|
+
/* @__PURE__ */ s.jsxs("div", { className: W.w, ref: u, children: [
|
|
1129
|
+
/* @__PURE__ */ s.jsxs("div", { className: W.h, children: [
|
|
1130
|
+
/* @__PURE__ */ s.jsx("div", { className: W.t, children: t }),
|
|
1131
|
+
/* @__PURE__ */ s.jsxs("div", { className: W.m, children: [
|
|
1132
|
+
a && /* @__PURE__ */ s.jsx("nav", { children: a.map((_, S) => /* @__PURE__ */ s.jsx(
|
|
1120
1133
|
"span",
|
|
1121
1134
|
{
|
|
1122
|
-
onClick:
|
|
1123
|
-
className:
|
|
1124
|
-
children:
|
|
1135
|
+
onClick: _.onClick,
|
|
1136
|
+
className: _.active ? "active" : "",
|
|
1137
|
+
children: _.name
|
|
1125
1138
|
},
|
|
1126
|
-
|
|
1139
|
+
S
|
|
1127
1140
|
)) }),
|
|
1128
|
-
|
|
1141
|
+
f
|
|
1129
1142
|
] }),
|
|
1130
|
-
/* @__PURE__ */
|
|
1143
|
+
/* @__PURE__ */ s.jsx(
|
|
1131
1144
|
"div",
|
|
1132
1145
|
{
|
|
1133
|
-
className:
|
|
1146
|
+
className: W.x,
|
|
1134
1147
|
onClick: () => {
|
|
1135
|
-
|
|
1148
|
+
d(!1);
|
|
1136
1149
|
},
|
|
1137
|
-
children: /* @__PURE__ */
|
|
1150
|
+
children: /* @__PURE__ */ s.jsx("svg", { viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ s.jsx("path", { d: "M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999", stroke: "currentColor", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" }) })
|
|
1138
1151
|
}
|
|
1139
1152
|
)
|
|
1140
1153
|
] }),
|
|
1141
1154
|
e,
|
|
1142
|
-
|
|
1143
|
-
|
|
1155
|
+
r !== void 0 ? /* @__PURE__ */ s.jsx(
|
|
1156
|
+
Qn,
|
|
1144
1157
|
{
|
|
1145
|
-
label: String(
|
|
1146
|
-
onClick:
|
|
1158
|
+
label: String(r.name),
|
|
1159
|
+
onClick: m
|
|
1147
1160
|
}
|
|
1148
1161
|
) : ""
|
|
1149
1162
|
] })
|
|
1150
1163
|
]
|
|
1151
1164
|
}
|
|
1152
1165
|
) : "" });
|
|
1153
|
-
},
|
|
1154
|
-
q.add(/* @__PURE__ */
|
|
1155
|
-
},
|
|
1156
|
-
let [
|
|
1157
|
-
return
|
|
1158
|
-
q.config(e, t,
|
|
1159
|
-
}, [
|
|
1160
|
-
},
|
|
1161
|
-
q.config(e, t,
|
|
1162
|
-
},
|
|
1163
|
-
/* @__PURE__ */
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
+
}, Sr = (e) => {
|
|
1167
|
+
q.add(/* @__PURE__ */ s.jsx(jr, { children: e }, String(Date.now())));
|
|
1168
|
+
}, jr = ({ children: e }) => /* @__PURE__ */ s.jsx(s.Fragment, { children: e }), Cr = ({ type: e, name: t, params: r }) => {
|
|
1169
|
+
let [a, c] = j.useState(null);
|
|
1170
|
+
return j.useEffect(() => {
|
|
1171
|
+
q.config(e, t, r, c);
|
|
1172
|
+
}, [r.id]), /* @__PURE__ */ s.jsx(s.Fragment, { children: a });
|
|
1173
|
+
}, kr = (e, t, r) => {
|
|
1174
|
+
q.config(e, t, r);
|
|
1175
|
+
}, Rr = { List: Jn, Scroll: Kn, Init: xr, Main: yr, Add: Sr, Icon: Cr, Open: kr }, wr = ({ children: e, config: t, crypto: r, ...a }) => Ht(r, /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
1176
|
+
/* @__PURE__ */ s.jsx(Rr.Init, { config: t.modal }),
|
|
1177
|
+
/* @__PURE__ */ s.jsx(Mn, {}),
|
|
1178
|
+
/* @__PURE__ */ s.jsx(Bn, {}),
|
|
1166
1179
|
e
|
|
1167
|
-
] })),
|
|
1180
|
+
] })), Er = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("menu", { children: e }), Tr = ({ children: e, ...t }) => /* @__PURE__ */ s.jsxs("header", { children: [
|
|
1168
1181
|
"xz",
|
|
1169
1182
|
e
|
|
1170
|
-
] }),
|
|
1171
|
-
payment:
|
|
1183
|
+
] }), Ir = "_payment_1lxfv_1", Nr = {
|
|
1184
|
+
payment: Ir
|
|
1172
1185
|
};
|
|
1173
|
-
function
|
|
1174
|
-
let [e, t] =
|
|
1175
|
-
return !e.active && !e.payment ? "" : /* @__PURE__ */
|
|
1176
|
-
}
|
|
1177
|
-
const
|
|
1178
|
-
let
|
|
1179
|
-
return
|
|
1180
|
-
/* @__PURE__ */
|
|
1181
|
-
/* @__PURE__ */
|
|
1182
|
-
/* @__PURE__ */
|
|
1183
|
-
/* @__PURE__ */
|
|
1186
|
+
function Pr() {
|
|
1187
|
+
let [e, t] = j.useState({});
|
|
1188
|
+
return !e.active && !e.payment ? "" : /* @__PURE__ */ s.jsx("div", { className: Nr.payment, children: "Истек срок оплаты! Доступ доступен до 16.04.2024" });
|
|
1189
|
+
}
|
|
1190
|
+
const Ua = ({ children: e, ...t }) => {
|
|
1191
|
+
let r = {};
|
|
1192
|
+
return r.enCode = (a) => JSON.stringify(a).toString(), r.deCode = (a) => JSON.parse(a), /* @__PURE__ */ s.jsxs("div", { className: "app", children: [
|
|
1193
|
+
/* @__PURE__ */ s.jsx(Pr, {}),
|
|
1194
|
+
/* @__PURE__ */ s.jsx(Er, {}),
|
|
1195
|
+
/* @__PURE__ */ s.jsx(Tr, {}),
|
|
1196
|
+
/* @__PURE__ */ s.jsx(wr, { config: { modal: {} }, crypto: r }),
|
|
1184
1197
|
e
|
|
1185
1198
|
] });
|
|
1186
|
-
},
|
|
1187
|
-
|
|
1199
|
+
}, Or = ({ list: e, onClick: t, active: r, size: a, view: c }) => /* @__PURE__ */ s.jsx("nav", { children: /* @__PURE__ */ s.jsx("ul", { className: [a, c].join(" "), children: e.map((f) => /* @__PURE__ */ s.jsx(
|
|
1200
|
+
Lr,
|
|
1188
1201
|
{
|
|
1189
1202
|
onClick: t,
|
|
1190
|
-
active:
|
|
1191
|
-
label:
|
|
1192
|
-
link:
|
|
1203
|
+
active: r,
|
|
1204
|
+
label: f.label,
|
|
1205
|
+
link: f.link
|
|
1193
1206
|
},
|
|
1194
|
-
|
|
1195
|
-
)) }) }),
|
|
1196
|
-
|
|
1197
|
-
const
|
|
1207
|
+
f.link
|
|
1208
|
+
)) }) }), Lr = ({ onClick: e, label: t, link: r, active: a }) => /* @__PURE__ */ s.jsx("li", { "tabs-active": String(a === r), onClick: () => e(r), children: t });
|
|
1209
|
+
Or.defaultProps = { size: "M", view: "H" };
|
|
1210
|
+
const Fr = ({
|
|
1198
1211
|
title: e = "",
|
|
1199
1212
|
button: t,
|
|
1200
|
-
description:
|
|
1201
|
-
children:
|
|
1202
|
-
}) => /* @__PURE__ */
|
|
1203
|
-
e && /* @__PURE__ */
|
|
1213
|
+
description: r = "",
|
|
1214
|
+
children: a
|
|
1215
|
+
}) => /* @__PURE__ */ s.jsxs("fieldset", { children: [
|
|
1216
|
+
e && /* @__PURE__ */ s.jsxs("legend", { children: [
|
|
1204
1217
|
e,
|
|
1205
|
-
t && /* @__PURE__ */
|
|
1218
|
+
t && /* @__PURE__ */ s.jsx(
|
|
1206
1219
|
"div",
|
|
1207
1220
|
{
|
|
1208
1221
|
role: "button-outline",
|
|
@@ -1212,23 +1225,23 @@ const Tn = ({
|
|
|
1212
1225
|
),
|
|
1213
1226
|
" "
|
|
1214
1227
|
] }),
|
|
1215
|
-
/* @__PURE__ */
|
|
1216
|
-
|
|
1217
|
-
] }),
|
|
1218
|
-
setting:
|
|
1219
|
-
},
|
|
1220
|
-
let [
|
|
1221
|
-
return /* @__PURE__ */
|
|
1222
|
-
/* @__PURE__ */
|
|
1223
|
-
/* @__PURE__ */
|
|
1224
|
-
/* @__PURE__ */
|
|
1228
|
+
/* @__PURE__ */ s.jsx("ul", { children: a }),
|
|
1229
|
+
r && /* @__PURE__ */ s.jsx("article", { children: r })
|
|
1230
|
+
] }), Mr = "_setting_1r0pc_2", $r = {
|
|
1231
|
+
setting: Mr
|
|
1232
|
+
}, zr = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: $r.setting, children: e }), Zr = ({ label: e, children: t }) => {
|
|
1233
|
+
let [r, a] = j.useState(!1);
|
|
1234
|
+
return /* @__PURE__ */ s.jsxs("li", { "data-item": "accordion", children: [
|
|
1235
|
+
/* @__PURE__ */ s.jsxs("dl", { onClick: () => a(!r), children: [
|
|
1236
|
+
/* @__PURE__ */ s.jsx("dt", { children: e }),
|
|
1237
|
+
/* @__PURE__ */ s.jsx("dd", { children: /* @__PURE__ */ s.jsx("div", { "data-close": String(r) }) })
|
|
1225
1238
|
] }),
|
|
1226
|
-
|
|
1239
|
+
r && /* @__PURE__ */ s.jsx("div", { children: t })
|
|
1227
1240
|
] });
|
|
1228
|
-
},
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
/* @__PURE__ */
|
|
1231
|
-
] }) }),
|
|
1241
|
+
}, Dr = ({ label: e, onClick: t, button: r }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
|
|
1242
|
+
/* @__PURE__ */ s.jsx("dt", { children: e }),
|
|
1243
|
+
/* @__PURE__ */ s.jsx("dd", { role: "button", onClick: () => t(), children: r })
|
|
1244
|
+
] }) }), Ur = ({ active: e, onClick: t }) => (console.log(e), e = typeof e == "number" ? !!e : e, /* @__PURE__ */ s.jsx(
|
|
1232
1245
|
"div",
|
|
1233
1246
|
{
|
|
1234
1247
|
role: "switch",
|
|
@@ -1237,53 +1250,53 @@ const Tn = ({
|
|
|
1237
1250
|
},
|
|
1238
1251
|
"aria-checked": e ? "true" : "false"
|
|
1239
1252
|
}
|
|
1240
|
-
)),
|
|
1241
|
-
/* @__PURE__ */
|
|
1242
|
-
/* @__PURE__ */
|
|
1243
|
-
] }) }),
|
|
1244
|
-
/* @__PURE__ */
|
|
1245
|
-
/* @__PURE__ */
|
|
1246
|
-
] }) }),
|
|
1247
|
-
/* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */
|
|
1249
|
-
] }) }),
|
|
1250
|
-
/* @__PURE__ */
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
-
] }) }),
|
|
1253
|
-
/* @__PURE__ */
|
|
1254
|
-
/* @__PURE__ */
|
|
1255
|
-
] }) }),
|
|
1256
|
-
function
|
|
1257
|
-
return /* @__PURE__ */
|
|
1258
|
-
|
|
1253
|
+
)), Wr = { Switch: Ur }, Ar = ({ label: e, onClick: t, active: r }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
|
|
1254
|
+
/* @__PURE__ */ s.jsx("dt", { children: e }),
|
|
1255
|
+
/* @__PURE__ */ s.jsx("dd", { children: /* @__PURE__ */ s.jsx(Wr.Switch, { onClick: t, active: r }) })
|
|
1256
|
+
] }) }), Gr = ({ label: e, active: t, options: r }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
|
|
1257
|
+
/* @__PURE__ */ s.jsx("dt", { children: e }),
|
|
1258
|
+
/* @__PURE__ */ s.jsx("dd", { role: "info", children: t })
|
|
1259
|
+
] }) }), Vr = ({ label: e, info: t }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
|
|
1260
|
+
/* @__PURE__ */ s.jsx("dt", { children: e }),
|
|
1261
|
+
/* @__PURE__ */ s.jsx("dd", { role: "info", children: t })
|
|
1262
|
+
] }) }), Yr = ({ label: e, children: t }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
|
|
1263
|
+
/* @__PURE__ */ s.jsx("dt", { children: e }),
|
|
1264
|
+
/* @__PURE__ */ s.jsx("dd", { children: t })
|
|
1265
|
+
] }) }), Br = ({ label: e, children: t }) => /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsxs("dl", { children: [
|
|
1266
|
+
/* @__PURE__ */ s.jsx("dt", { children: e }),
|
|
1267
|
+
/* @__PURE__ */ s.jsx("dd", { children: t })
|
|
1268
|
+
] }) }), Xr = { Accordion: Zr, Button: Dr, Switch: Ar, Info: Vr, Select: Gr, Component: Yr, Node: Br };
|
|
1269
|
+
function _t({ list: e, onClick: t, active: r, size: a, view: c }) {
|
|
1270
|
+
return /* @__PURE__ */ s.jsx("nav", { children: /* @__PURE__ */ s.jsx("ul", { className: [a, c].join(" "), children: e.map((f) => /* @__PURE__ */ s.jsx(
|
|
1271
|
+
Hr,
|
|
1259
1272
|
{
|
|
1260
1273
|
onClick: t,
|
|
1261
|
-
active:
|
|
1262
|
-
label:
|
|
1263
|
-
link:
|
|
1274
|
+
active: r,
|
|
1275
|
+
label: f.label,
|
|
1276
|
+
link: f.link
|
|
1264
1277
|
},
|
|
1265
|
-
|
|
1278
|
+
f.link
|
|
1266
1279
|
)) }) });
|
|
1267
1280
|
}
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1270
|
-
const
|
|
1271
|
-
h:
|
|
1272
|
-
t:
|
|
1273
|
-
s:
|
|
1274
|
-
u:
|
|
1275
|
-
o:
|
|
1276
|
-
l:
|
|
1277
|
-
hh:
|
|
1278
|
-
},
|
|
1279
|
-
/* @__PURE__ */
|
|
1281
|
+
const Hr = ({ onClick: e, label: t, link: r, active: a }) => /* @__PURE__ */ s.jsx("li", { "tabs-active": String(a === r), onClick: () => e(r), children: t });
|
|
1282
|
+
_t.defaultProps = { size: "M", view: "H" };
|
|
1283
|
+
const Wa = { Section: Fr, Main: zr, Item: Xr, Tabs: _t }, Jr = "_h_158b4_1", Kr = "_t_158b4_11", Qr = "_s_158b4_31", qr = "_u_158b4_40", ea = "_o_158b4_47", ta = "_l_158b4_56", na = "_hh_158b4_63", H = {
|
|
1284
|
+
h: Jr,
|
|
1285
|
+
t: Kr,
|
|
1286
|
+
s: Qr,
|
|
1287
|
+
u: qr,
|
|
1288
|
+
o: ea,
|
|
1289
|
+
l: ta,
|
|
1290
|
+
hh: na
|
|
1291
|
+
}, it = ({ title: e, children: t }) => /* @__PURE__ */ s.jsxs("div", { className: H.h, children: [
|
|
1292
|
+
/* @__PURE__ */ s.jsx("div", { className: H.t, children: e }),
|
|
1280
1293
|
t
|
|
1281
|
-
] }),
|
|
1282
|
-
t && /* @__PURE__ */
|
|
1294
|
+
] }), ra = ({ children: e, title: t }) => /* @__PURE__ */ s.jsxs("div", { className: H.o, children: [
|
|
1295
|
+
t && /* @__PURE__ */ s.jsx("div", { className: H.hh, children: t }),
|
|
1283
1296
|
e
|
|
1284
|
-
] }),
|
|
1285
|
-
function
|
|
1286
|
-
return /* @__PURE__ */
|
|
1297
|
+
] }), aa = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: H.u, children: e }), ct = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: H.s, children: e }), lt = ({ children: e, ...t }) => /* @__PURE__ */ s.jsx("div", { className: H.l, children: e }), Aa = { Header: it, Section: ct, List: lt, U: aa, L: lt, O: ra, S: ct, H: it }, Ga = { Send: $n, Error: zn, Remark: Dn, Success: Zn, Copy: Un }, Va = { Send: Hn };
|
|
1298
|
+
function sa() {
|
|
1299
|
+
return /* @__PURE__ */ s.jsx("svg", { viewBox: "0 0 462.86 359.96", children: /* @__PURE__ */ s.jsx(
|
|
1287
1300
|
"path",
|
|
1288
1301
|
{
|
|
1289
1302
|
d: "M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",
|
|
@@ -1291,30 +1304,30 @@ function Qn() {
|
|
|
1291
1304
|
}
|
|
1292
1305
|
) });
|
|
1293
1306
|
}
|
|
1294
|
-
const
|
|
1295
|
-
sort:
|
|
1307
|
+
const Ya = { Logo: sa }, we = { Path: mn, setPage: rn, getPage: dt, usePage: nn, setModule: sn, getModule: ft, useModule: an, setTabs: cn, getTabs: ge, useTabs: on, useId: ln, setId: dn, subId: un, getId: fn }, oa = "_sort_1yrvt_1", ia = {
|
|
1308
|
+
sort: oa
|
|
1296
1309
|
};
|
|
1297
|
-
let
|
|
1298
|
-
function
|
|
1310
|
+
let be = {};
|
|
1311
|
+
function ca(e, t) {
|
|
1299
1312
|
switch (t.type) {
|
|
1300
1313
|
case "active":
|
|
1301
|
-
let
|
|
1302
|
-
return e.active === t.data && (
|
|
1314
|
+
let r = "<";
|
|
1315
|
+
return e.active === t.data && (r = e.sort === "<" ? ">" : "<"), be.get({ active: t.data, sort: r }, !1), pt({ active: t.data, sort: r }), {
|
|
1303
1316
|
...e,
|
|
1304
1317
|
active: t.data,
|
|
1305
|
-
sort:
|
|
1318
|
+
sort: r
|
|
1306
1319
|
};
|
|
1307
1320
|
default:
|
|
1308
1321
|
throw new Error();
|
|
1309
1322
|
}
|
|
1310
1323
|
}
|
|
1311
|
-
function
|
|
1312
|
-
const [e, t] =
|
|
1313
|
-
|
|
1314
|
-
|
|
1324
|
+
function la() {
|
|
1325
|
+
const [e, t] = j.useReducer(
|
|
1326
|
+
ca,
|
|
1327
|
+
Te() === void 0 ? { active: 1, sort: "<" } : Te()
|
|
1315
1328
|
);
|
|
1316
|
-
return /* @__PURE__ */
|
|
1317
|
-
/* @__PURE__ */
|
|
1329
|
+
return /* @__PURE__ */ s.jsxs("div", { className: ia.sort, children: [
|
|
1330
|
+
/* @__PURE__ */ s.jsx(
|
|
1318
1331
|
"i",
|
|
1319
1332
|
{
|
|
1320
1333
|
"data-color": e.active === 1 ? "_506290" : "_b5b9cc",
|
|
@@ -1322,7 +1335,7 @@ function na() {
|
|
|
1322
1335
|
onClick: () => t({ type: "active", data: 1 })
|
|
1323
1336
|
}
|
|
1324
1337
|
),
|
|
1325
|
-
/* @__PURE__ */
|
|
1338
|
+
/* @__PURE__ */ s.jsx(
|
|
1326
1339
|
"i",
|
|
1327
1340
|
{
|
|
1328
1341
|
"data-color": e.active === 2 ? "_506290" : "_b5b9cc",
|
|
@@ -1330,7 +1343,7 @@ function na() {
|
|
|
1330
1343
|
onClick: () => t({ type: "active", data: 2 })
|
|
1331
1344
|
}
|
|
1332
1345
|
),
|
|
1333
|
-
/* @__PURE__ */
|
|
1346
|
+
/* @__PURE__ */ s.jsx(
|
|
1334
1347
|
"i",
|
|
1335
1348
|
{
|
|
1336
1349
|
"data-color": e.active === 3 ? "_506290" : "_b5b9cc",
|
|
@@ -1340,38 +1353,38 @@ function na() {
|
|
|
1340
1353
|
)
|
|
1341
1354
|
] });
|
|
1342
1355
|
}
|
|
1343
|
-
function
|
|
1344
|
-
|
|
1356
|
+
function ua(e) {
|
|
1357
|
+
be.get = e;
|
|
1345
1358
|
}
|
|
1346
|
-
function
|
|
1347
|
-
|
|
1359
|
+
function da(e) {
|
|
1360
|
+
be.set(e);
|
|
1348
1361
|
}
|
|
1349
|
-
function
|
|
1350
|
-
let
|
|
1351
|
-
|
|
1352
|
-
let
|
|
1353
|
-
switch (
|
|
1362
|
+
function fa(e, t, r) {
|
|
1363
|
+
let a = 1, c = 0, f = {}, l = 50;
|
|
1364
|
+
f[a] = [];
|
|
1365
|
+
let d = {}, u = "s1a";
|
|
1366
|
+
switch (d.s1a = (m, p) => p.s1 - m.s1, d.s1d = (m, p) => m.s1 - p.s1, d.s2a = (m, p) => m.s2 - p.s2, d.s2d = (m, p) => p.s2 - m.s2, d.s3a = (m, p) => m.s3.localeCompare(p.s3), d.s3d = (m, p) => p.s3.localeCompare(m.s3), r.active) {
|
|
1354
1367
|
case 1:
|
|
1355
|
-
u =
|
|
1368
|
+
u = r.sort === ">" ? "s1d" : "s1a";
|
|
1356
1369
|
break;
|
|
1357
1370
|
case 2:
|
|
1358
|
-
u =
|
|
1371
|
+
u = r.sort === ">" ? "s2d" : "s2a";
|
|
1359
1372
|
break;
|
|
1360
1373
|
case 3:
|
|
1361
|
-
u =
|
|
1374
|
+
u = r.sort === ">" ? "s3d" : "s3a";
|
|
1362
1375
|
break;
|
|
1363
1376
|
}
|
|
1364
|
-
return t.sort(
|
|
1365
|
-
c++, c <= l || (
|
|
1366
|
-
}), { data:
|
|
1377
|
+
return t.sort(d[u]).forEach((m) => {
|
|
1378
|
+
c++, c <= l || (a++, c = 1, f[a] = []), f[a].push(e[m.id]);
|
|
1379
|
+
}), { data: f };
|
|
1367
1380
|
}
|
|
1368
|
-
function
|
|
1369
|
-
|
|
1381
|
+
function ma(e) {
|
|
1382
|
+
be.count(e);
|
|
1370
1383
|
}
|
|
1371
|
-
const
|
|
1372
|
-
function
|
|
1384
|
+
const Ba = { Init: la, useValue: ua, Set: da, Run: fa, Count: ma };
|
|
1385
|
+
function pa(e, t) {
|
|
1373
1386
|
t === void 0 ? (t = e, e = /* @__PURE__ */ new Date()) : e = new Date(e);
|
|
1374
|
-
let
|
|
1387
|
+
let r = {
|
|
1375
1388
|
yyyy: e.getFullYear(),
|
|
1376
1389
|
yy: ("" + e.getFullYear()).slice(-2),
|
|
1377
1390
|
mm: ("0" + (e.getMonth() + 1)).slice(-2),
|
|
@@ -1382,27 +1395,27 @@ function ca(e, t) {
|
|
|
1382
1395
|
__: " ",
|
|
1383
1396
|
_: " "
|
|
1384
1397
|
};
|
|
1385
|
-
for (const
|
|
1386
|
-
t = t.replace(
|
|
1398
|
+
for (const a in r)
|
|
1399
|
+
t = t.replace(a, r[a]);
|
|
1387
1400
|
return t;
|
|
1388
1401
|
}
|
|
1389
|
-
function
|
|
1390
|
-
let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"],
|
|
1391
|
-
return { day: ("" +
|
|
1392
|
-
}
|
|
1393
|
-
const
|
|
1394
|
-
function t(
|
|
1395
|
-
var
|
|
1396
|
-
|
|
1397
|
-
for (var
|
|
1398
|
-
|
|
1399
|
-
return
|
|
1402
|
+
function ha(e) {
|
|
1403
|
+
let t = ["Января", "Февраля", "Марта", "Апреля", "Мая", "Июня", "Июля", "Августа", "Сентября", "Октября", "Ноября", "Декабря"], r = new Date(e);
|
|
1404
|
+
return { day: ("" + r.getFullYear()).slice(-2) + "" + ("0" + (r.getMonth() + 1)).slice(-2) + ("0" + r.getDate()).slice(-2), name: r.getDate() + " " + t[r.getMonth()] };
|
|
1405
|
+
}
|
|
1406
|
+
const va = (e) => {
|
|
1407
|
+
function t(z, U) {
|
|
1408
|
+
var V, le, J;
|
|
1409
|
+
z = z ?? "", U = U ?? 1;
|
|
1410
|
+
for (var V = [], J = 0, le = z.length; J < le; )
|
|
1411
|
+
V.push(z.slice(J, J += U));
|
|
1412
|
+
return V;
|
|
1400
1413
|
}
|
|
1401
|
-
function
|
|
1402
|
-
var
|
|
1403
|
-
return
|
|
1414
|
+
function r(z, U) {
|
|
1415
|
+
var V = [2, 0, 1, 1, 1, 2];
|
|
1416
|
+
return U[z > 4 && z < 20 ? 2 : V[Math.min(z, 5)]];
|
|
1404
1417
|
}
|
|
1405
|
-
var
|
|
1418
|
+
var a = {
|
|
1406
1419
|
null: "ноль",
|
|
1407
1420
|
a1: [
|
|
1408
1421
|
"один",
|
|
@@ -1464,42 +1477,42 @@ const ua = (e) => {
|
|
|
1464
1477
|
u3: ["тысяча", "тысячи", "тысяч"],
|
|
1465
1478
|
u2: ["миллион", "миллиона", "миллионов"],
|
|
1466
1479
|
u1: ["миллиард", "миллиарда", "миллиардов"]
|
|
1467
|
-
}, c,
|
|
1468
|
-
|
|
1469
|
-
var
|
|
1470
|
-
if (
|
|
1480
|
+
}, c, f, l, d, $, u, m, ee, p, _, S, I;
|
|
1481
|
+
p = parseFloat(e).toFixed(2).split("."), u = p[0], d = p[1];
|
|
1482
|
+
var M = 12 - u.length;
|
|
1483
|
+
if (M < 0)
|
|
1471
1484
|
return !1;
|
|
1472
|
-
for (var
|
|
1473
|
-
|
|
1474
|
-
u =
|
|
1475
|
-
var
|
|
1485
|
+
for (var ee = []; M--; )
|
|
1486
|
+
ee.push("0");
|
|
1487
|
+
u = ee.join("") + u;
|
|
1488
|
+
var $ = [];
|
|
1476
1489
|
if (u > 0) {
|
|
1477
|
-
|
|
1478
|
-
for (var
|
|
1479
|
-
if (
|
|
1480
|
-
|
|
1481
|
-
) :
|
|
1482
|
-
|
|
1483
|
-
),
|
|
1484
|
-
var
|
|
1485
|
-
|
|
1490
|
+
_ = t(u, 3);
|
|
1491
|
+
for (var N = -1; N < _.length; N++)
|
|
1492
|
+
if (m = _[N], m > 0 && (S = t(m, 1), c = parseInt(S[0]), f = parseInt(S[1]), l = parseInt(S[2]), $.push(a.a100[c - 1]), I = N + 1 == 3 ? "a2" : "a1", f > 1 ? $.push(
|
|
1493
|
+
a.a20[f - 2] + (l > 0 ? " " + a[I][l - 1] : "")
|
|
1494
|
+
) : $.push(
|
|
1495
|
+
f > 0 ? a.a10[l] : a[I][l - 1]
|
|
1496
|
+
), _.length > N + 1)) {
|
|
1497
|
+
var w = a["u" + (N + 1)];
|
|
1498
|
+
$.push(r(m, w));
|
|
1486
1499
|
}
|
|
1487
1500
|
} else
|
|
1488
|
-
|
|
1489
|
-
return
|
|
1501
|
+
$.push(a.null);
|
|
1502
|
+
return $.push(r(u, a.ur)), $.push(d + " " + r(d, a.uc)), $.join(" ").replace(RegExp(" {2,}", "g"), " ").trimLeft();
|
|
1490
1503
|
};
|
|
1491
|
-
function
|
|
1492
|
-
let t = -1,
|
|
1504
|
+
function ga(e) {
|
|
1505
|
+
let t = -1, r = [" kB", " MB", " GB", " TB", "PB", "EB", "ZB", "YB"];
|
|
1493
1506
|
do
|
|
1494
1507
|
e = e / 1024, t++;
|
|
1495
1508
|
while (e > 1024);
|
|
1496
|
-
return Math.max(e, 0.1).toFixed(1) +
|
|
1509
|
+
return Math.max(e, 0.1).toFixed(1) + r[t];
|
|
1497
1510
|
}
|
|
1498
|
-
function
|
|
1511
|
+
function ba(e) {
|
|
1499
1512
|
let t = {};
|
|
1500
1513
|
return t["application/atom+xml"] = "atom", t["application/json"] = "json", t["application/javascript"] = "js", t["application/ogg"] = "ogg", t["application/pdf"] = "pdf", t["application/soap+xml"] = "soap", t["application/font-woff"] = "woff", t["application/xhtml+xml"] = "xml", t["application/xml-dtd"] = "dtd", t["application/xop+xml"] = "xop", t["application/zip"] = "zip", t["application/gzip"] = "gzip", t["application/x-bittorrent"] = "bittorrent", t["application/x-tex"] = "tex", t["application/xml"] = "xml", t["application/msword"] = "doc", t["image/svg+xml"] = "svg", t[e];
|
|
1501
1514
|
}
|
|
1502
|
-
function
|
|
1515
|
+
function _a(e, t, r, a) {
|
|
1503
1516
|
let c = {
|
|
1504
1517
|
sexM: "m",
|
|
1505
1518
|
sexF: "f",
|
|
@@ -1602,92 +1615,92 @@ function ma(e, t, n, s) {
|
|
|
1602
1615
|
},
|
|
1603
1616
|
prepareRules: function() {
|
|
1604
1617
|
for (var l in this.rules)
|
|
1605
|
-
for (var
|
|
1606
|
-
for (var u = 0,
|
|
1607
|
-
this.rules[l][
|
|
1608
|
-
this.rules[l][
|
|
1618
|
+
for (var d in this.rules[l])
|
|
1619
|
+
for (var u = 0, m = this.rules[l][d].length; u < m; u++)
|
|
1620
|
+
this.rules[l][d][u] = this.rule(
|
|
1621
|
+
this.rules[l][d][u]
|
|
1609
1622
|
);
|
|
1610
1623
|
},
|
|
1611
1624
|
rule: function(l) {
|
|
1612
|
-
var
|
|
1625
|
+
var d = l.match(
|
|
1613
1626
|
/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/
|
|
1614
1627
|
);
|
|
1615
|
-
return
|
|
1616
|
-
sex:
|
|
1617
|
-
test:
|
|
1618
|
-
mods: [
|
|
1628
|
+
return d ? {
|
|
1629
|
+
sex: d[1],
|
|
1630
|
+
test: d[2].split(","),
|
|
1631
|
+
mods: [d[3], d[4], d[5], d[6], d[7]]
|
|
1619
1632
|
} : !1;
|
|
1620
1633
|
},
|
|
1621
1634
|
// склоняем слово по указанному набору правил и исключений
|
|
1622
|
-
word: function(l,
|
|
1623
|
-
if (
|
|
1635
|
+
word: function(l, d, u, m) {
|
|
1636
|
+
if (m === this.gcaseNom)
|
|
1624
1637
|
return l;
|
|
1625
1638
|
if (l.match(/[-]/)) {
|
|
1626
|
-
for (var
|
|
1627
|
-
|
|
1628
|
-
return
|
|
1639
|
+
for (var p = l.split("-"), _ = 0, S = p.length; _ < S; _++)
|
|
1640
|
+
p[_] = this.word(p[_], d, u, m);
|
|
1641
|
+
return p.join("-");
|
|
1629
1642
|
}
|
|
1630
1643
|
if (l.match(/^[А-ЯЁ]\.?$/i))
|
|
1631
1644
|
return l;
|
|
1632
1645
|
this.init();
|
|
1633
|
-
var
|
|
1634
|
-
let
|
|
1635
|
-
return
|
|
1646
|
+
var I = this.rules[u];
|
|
1647
|
+
let M;
|
|
1648
|
+
return I.exceptions && (M = this.pick(l, d, m, I.exceptions, !0), M) ? M : (M = this.pick(l, d, m, I.suffixes, !1), M || l);
|
|
1636
1649
|
},
|
|
1637
1650
|
// выбираем из списка правил первое подходящее и применяем
|
|
1638
|
-
pick: function(l,
|
|
1639
|
-
let
|
|
1640
|
-
for (var
|
|
1641
|
-
if (this.ruleMatch(
|
|
1642
|
-
return this.applyMod(l, u,
|
|
1651
|
+
pick: function(l, d, u, m, p) {
|
|
1652
|
+
let _ = l.toLowerCase();
|
|
1653
|
+
for (var S = 0, I = m.length; S < I; S++)
|
|
1654
|
+
if (this.ruleMatch(_, d, m[S], p))
|
|
1655
|
+
return this.applyMod(l, u, m[S]);
|
|
1643
1656
|
return !1;
|
|
1644
1657
|
},
|
|
1645
1658
|
// проверяем, подходит ли правило к слову
|
|
1646
|
-
ruleMatch: function(l,
|
|
1647
|
-
if (u.sex === this.sexM &&
|
|
1659
|
+
ruleMatch: function(l, d, u, m) {
|
|
1660
|
+
if (u.sex === this.sexM && d === this.sexF || u.sex === this.sexF && d !== this.sexF)
|
|
1648
1661
|
return !1;
|
|
1649
|
-
for (var
|
|
1650
|
-
var
|
|
1651
|
-
Math.max(l.length - u.test[
|
|
1662
|
+
for (var p = 0, _ = u.test.length; p < _; p++) {
|
|
1663
|
+
var S = m ? l : l.substr(
|
|
1664
|
+
Math.max(l.length - u.test[p].length, 0)
|
|
1652
1665
|
);
|
|
1653
|
-
if (
|
|
1666
|
+
if (S === u.test[p])
|
|
1654
1667
|
return !0;
|
|
1655
1668
|
}
|
|
1656
1669
|
return !1;
|
|
1657
1670
|
},
|
|
1658
1671
|
// склоняем слово (правим окончание)
|
|
1659
|
-
applyMod: function(l,
|
|
1660
|
-
let
|
|
1661
|
-
switch (
|
|
1672
|
+
applyMod: function(l, d, u) {
|
|
1673
|
+
let m;
|
|
1674
|
+
switch (d) {
|
|
1662
1675
|
case this.gcaseNom:
|
|
1663
|
-
|
|
1676
|
+
m = ".";
|
|
1664
1677
|
break;
|
|
1665
1678
|
case this.gcaseGen:
|
|
1666
|
-
|
|
1679
|
+
m = u.mods[0];
|
|
1667
1680
|
break;
|
|
1668
1681
|
case this.gcaseDat:
|
|
1669
|
-
|
|
1682
|
+
m = u.mods[1];
|
|
1670
1683
|
break;
|
|
1671
1684
|
case this.gcaseAcc:
|
|
1672
|
-
|
|
1685
|
+
m = u.mods[2];
|
|
1673
1686
|
break;
|
|
1674
1687
|
case this.gcaseIns:
|
|
1675
|
-
|
|
1688
|
+
m = u.mods[3];
|
|
1676
1689
|
break;
|
|
1677
1690
|
case this.gcasePos:
|
|
1678
|
-
|
|
1691
|
+
m = u.mods[4];
|
|
1679
1692
|
break;
|
|
1680
1693
|
}
|
|
1681
|
-
for (var
|
|
1682
|
-
var
|
|
1683
|
-
switch (
|
|
1694
|
+
for (var p = 0, _ = m.length; p < _; p++) {
|
|
1695
|
+
var S = m.substr(p, 1);
|
|
1696
|
+
switch (S) {
|
|
1684
1697
|
case ".":
|
|
1685
1698
|
break;
|
|
1686
1699
|
case "-":
|
|
1687
1700
|
l = l.substr(0, l.length - 1);
|
|
1688
1701
|
break;
|
|
1689
1702
|
default:
|
|
1690
|
-
l +=
|
|
1703
|
+
l += S;
|
|
1691
1704
|
}
|
|
1692
1705
|
}
|
|
1693
1706
|
return l;
|
|
@@ -1708,14 +1721,14 @@ function ma(e, t, n, s) {
|
|
|
1708
1721
|
middleName: (l) => c.word(c.mn, c.sex, "middleName", l)
|
|
1709
1722
|
};
|
|
1710
1723
|
if (typeof t > "u") {
|
|
1711
|
-
var
|
|
1712
|
-
if (!
|
|
1724
|
+
var f = e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);
|
|
1725
|
+
if (!f)
|
|
1713
1726
|
return "Cannot parse supplied name";
|
|
1714
|
-
|
|
1727
|
+
f[5] && f[3].match(/(ич|на)$/) && !f[5].match(/(ич|на)$/) ? (e = f[5], t = f[1], r = f[3], c.fullNameSurnameLast = !0) : (e = f[1], t = f[3], r = f[5]);
|
|
1715
1728
|
}
|
|
1716
|
-
return c.ln = e, c.fn = t || "", c.mn =
|
|
1729
|
+
return c.ln = e, c.fn = t || "", c.mn = r || "", c.sex = a || c.getSex(), c;
|
|
1717
1730
|
}
|
|
1718
|
-
function
|
|
1731
|
+
function xa(e) {
|
|
1719
1732
|
let t = e.split(" ");
|
|
1720
1733
|
switch (t.length) {
|
|
1721
1734
|
case 2:
|
|
@@ -1726,7 +1739,7 @@ function ha(e) {
|
|
|
1726
1739
|
return e;
|
|
1727
1740
|
}
|
|
1728
1741
|
}
|
|
1729
|
-
function
|
|
1742
|
+
function ya(e) {
|
|
1730
1743
|
return {
|
|
1731
1744
|
1: { val: "01", name: "Январь", names: "Января", abc: "Янв" },
|
|
1732
1745
|
2: { val: "02", name: "Февраль", names: "Февраля", abc: "Февр" },
|
|
@@ -1742,95 +1755,235 @@ function pa(e) {
|
|
|
1742
1755
|
12: { val: "12", name: "Декабрь", names: "Декабря", abc: "Дек" }
|
|
1743
1756
|
}[e];
|
|
1744
1757
|
}
|
|
1745
|
-
function
|
|
1758
|
+
function Sa(e) {
|
|
1746
1759
|
return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, "$1 ");
|
|
1747
1760
|
}
|
|
1748
|
-
function
|
|
1749
|
-
let
|
|
1750
|
-
for (;
|
|
1751
|
-
|
|
1752
|
-
return
|
|
1761
|
+
function ja(e, t) {
|
|
1762
|
+
let r = t + "";
|
|
1763
|
+
for (; r.length < e; )
|
|
1764
|
+
r = "0" + r;
|
|
1765
|
+
return r;
|
|
1753
1766
|
}
|
|
1754
|
-
function
|
|
1755
|
-
let
|
|
1756
|
-
return (typeof
|
|
1767
|
+
function Ca(e, t, r) {
|
|
1768
|
+
let a = t / e * r;
|
|
1769
|
+
return (typeof a != "number" || a === 1 / 0) && (a = 0), parseFloat(a).toFixed(1);
|
|
1757
1770
|
}
|
|
1758
|
-
function
|
|
1771
|
+
function ka(e) {
|
|
1759
1772
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1760
1773
|
}
|
|
1761
|
-
const
|
|
1762
|
-
Date:
|
|
1763
|
-
MoneyString:
|
|
1764
|
-
DateSort:
|
|
1765
|
-
Size:
|
|
1766
|
-
TypeFiles:
|
|
1767
|
-
Cases:
|
|
1768
|
-
Initials:
|
|
1769
|
-
Month:
|
|
1770
|
-
Money:
|
|
1771
|
-
Number:
|
|
1772
|
-
Percent:
|
|
1773
|
-
CapitalizeFirstLetter:
|
|
1774
|
-
},
|
|
1775
|
-
function
|
|
1776
|
-
|
|
1777
|
-
}
|
|
1778
|
-
function
|
|
1779
|
-
|
|
1780
|
-
}
|
|
1781
|
-
const
|
|
1782
|
-
function
|
|
1783
|
-
const [
|
|
1784
|
-
return
|
|
1785
|
-
if (
|
|
1786
|
-
return
|
|
1787
|
-
|
|
1788
|
-
}, []), [
|
|
1789
|
-
}
|
|
1790
|
-
function
|
|
1791
|
-
if (
|
|
1792
|
-
return
|
|
1793
|
-
|
|
1794
|
-
}
|
|
1795
|
-
function
|
|
1796
|
-
|
|
1797
|
-
}
|
|
1798
|
-
const
|
|
1799
|
-
function
|
|
1800
|
-
const [t,
|
|
1801
|
-
|
|
1802
|
-
Object.keys(
|
|
1774
|
+
const Xa = {
|
|
1775
|
+
Date: pa,
|
|
1776
|
+
MoneyString: va,
|
|
1777
|
+
DateSort: ha,
|
|
1778
|
+
Size: ga,
|
|
1779
|
+
TypeFiles: ba,
|
|
1780
|
+
Cases: _a,
|
|
1781
|
+
Initials: xa,
|
|
1782
|
+
Month: ya,
|
|
1783
|
+
Money: Sa,
|
|
1784
|
+
Number: ja,
|
|
1785
|
+
Percent: Ca,
|
|
1786
|
+
CapitalizeFirstLetter: ka
|
|
1787
|
+
}, Ne = {};
|
|
1788
|
+
function Ra(e, t) {
|
|
1789
|
+
Ne[e] = t;
|
|
1790
|
+
}
|
|
1791
|
+
function wa(e, t) {
|
|
1792
|
+
Ne[e] !== void 0 && Ne[e](t);
|
|
1793
|
+
}
|
|
1794
|
+
const A = {};
|
|
1795
|
+
function Ea(e, t) {
|
|
1796
|
+
const [r, a] = j.useState(t);
|
|
1797
|
+
return j.useEffect(() => {
|
|
1798
|
+
if (A[e])
|
|
1799
|
+
return A[e].push(a);
|
|
1800
|
+
A[e] = [a];
|
|
1801
|
+
}, []), [r];
|
|
1802
|
+
}
|
|
1803
|
+
function Ta(e, t) {
|
|
1804
|
+
if (A[e])
|
|
1805
|
+
return A[e].push(t);
|
|
1806
|
+
A[e] = [t];
|
|
1807
|
+
}
|
|
1808
|
+
function Ia(e, t) {
|
|
1809
|
+
A[e] && A[e].forEach((r) => r(t));
|
|
1810
|
+
}
|
|
1811
|
+
const Ha = { setListener: wa, useListener: Ra, setEmitter: Ia, useEmitter: Ea, subEmitter: Ta }, ve = {}, xt = {};
|
|
1812
|
+
function Na(e) {
|
|
1813
|
+
const [t, r] = j.useState({}), a = async (c) => {
|
|
1814
|
+
r(
|
|
1815
|
+
Object.keys(ve).reduce((f, l) => (f ? f[l] = ve[l].all : f = {}, f), {})
|
|
1803
1816
|
);
|
|
1804
1817
|
};
|
|
1805
|
-
return
|
|
1806
|
-
e.forEach((c) =>
|
|
1818
|
+
return j.useEffect(() => {
|
|
1819
|
+
e.forEach((c) => ve[c] = { all: 0 }), xt.menu = a, a();
|
|
1807
1820
|
}, [e]), t;
|
|
1808
1821
|
}
|
|
1809
|
-
function
|
|
1822
|
+
function Pa(e, t) {
|
|
1810
1823
|
switch (typeof t) {
|
|
1811
1824
|
case "number":
|
|
1812
|
-
|
|
1825
|
+
ve[e].all += t, xt.menu();
|
|
1813
1826
|
break;
|
|
1814
1827
|
}
|
|
1815
1828
|
}
|
|
1816
|
-
const
|
|
1829
|
+
const Ja = { useMenu: Na, setUpdate: Pa }, Oa = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";
|
|
1830
|
+
function La(e) {
|
|
1831
|
+
return new SharedWorker(
|
|
1832
|
+
"data:text/javascript;base64," + Oa,
|
|
1833
|
+
{
|
|
1834
|
+
name: e == null ? void 0 : e.name
|
|
1835
|
+
}
|
|
1836
|
+
);
|
|
1837
|
+
}
|
|
1838
|
+
let P = {}, E = {}, he = [
|
|
1839
|
+
"filter",
|
|
1840
|
+
"online",
|
|
1841
|
+
"users",
|
|
1842
|
+
"company",
|
|
1843
|
+
"select",
|
|
1844
|
+
"setting",
|
|
1845
|
+
"info",
|
|
1846
|
+
"job"
|
|
1847
|
+
];
|
|
1848
|
+
const Fa = () => {
|
|
1849
|
+
const [e, t] = j.useState(!1), [r, a] = j.useState(!1);
|
|
1850
|
+
return [(f) => {
|
|
1851
|
+
const l = new La();
|
|
1852
|
+
P.laodData = (d) => {
|
|
1853
|
+
let u = he.indexOf(d);
|
|
1854
|
+
u >= 0 && he.splice(u, 1), he.length === 0 && t(!0);
|
|
1855
|
+
}, P.send = (d) => {
|
|
1856
|
+
l.port.postMessage({ type: "send", json: d });
|
|
1857
|
+
}, l.port.onmessage = (d) => {
|
|
1858
|
+
let u = d.data;
|
|
1859
|
+
console.log(u), u.type === "error" && a(!0), u.type === "true" && t(!0), u.type === "closed" && (console.warn("closed"), l.port.postMessage({
|
|
1860
|
+
type: "connect",
|
|
1861
|
+
ukey: f,
|
|
1862
|
+
lk: Ee()
|
|
1863
|
+
})), he.length !== 0 && P.laodData(u.type), E[u.type] && E[u.type](u);
|
|
1864
|
+
}, l.port.postMessage({
|
|
1865
|
+
type: "connect",
|
|
1866
|
+
ukey: f,
|
|
1867
|
+
lk: Ee()
|
|
1868
|
+
});
|
|
1869
|
+
}, e, r];
|
|
1870
|
+
};
|
|
1871
|
+
E.module = (e) => {
|
|
1872
|
+
P[e.listen] !== void 0 && (P[e.listen](e), delete P[e.listen]);
|
|
1873
|
+
};
|
|
1874
|
+
E.bell = (e) => {
|
|
1875
|
+
P.bell !== void 0 && P.bell(e);
|
|
1876
|
+
};
|
|
1877
|
+
E.info = (e) => {
|
|
1878
|
+
let t = {};
|
|
1879
|
+
t.db = e.db, t.id = e.data.id, t.job = e.data.job, t.login = e.data.login, t.name = e.data.p02, t.patronymic = e.data.p03, t.surname = e.data.p01, t.email = e.data.email, t.admin = e.data.menu.includes("99"), vt(t), mt(e.data.menu);
|
|
1880
|
+
};
|
|
1881
|
+
E.version = async (e) => {
|
|
1882
|
+
};
|
|
1883
|
+
E.online = async (e) => {
|
|
1884
|
+
};
|
|
1885
|
+
E.offline = async (e) => {
|
|
1886
|
+
};
|
|
1887
|
+
E.chat = (e) => {
|
|
1888
|
+
switch (console.log(e.data.action), e.data.action) {
|
|
1889
|
+
case "new_message":
|
|
1890
|
+
we.getModule();
|
|
1891
|
+
break;
|
|
1892
|
+
case "view_message":
|
|
1893
|
+
we.getModule();
|
|
1894
|
+
break;
|
|
1895
|
+
case "write_message":
|
|
1896
|
+
we.getModule();
|
|
1897
|
+
break;
|
|
1898
|
+
}
|
|
1899
|
+
console.log(e);
|
|
1900
|
+
};
|
|
1901
|
+
E.users = (e) => {
|
|
1902
|
+
console.log("users", e);
|
|
1903
|
+
let t = {};
|
|
1904
|
+
e.data.forEach((a) => {
|
|
1905
|
+
let c = a.p01 + " " + a.p02 + " " + a.p03, f = a.p01 + " " + a.p02.substring(0, 1) + "." + a.p03.substring(0, 1) + ".", l = a.p01.substring(0, 1) + "" + a.p02.substring(0, 1) + a.p03.substring(0, 1);
|
|
1906
|
+
t[a.id] = {
|
|
1907
|
+
id: a.id,
|
|
1908
|
+
admin: a.m.includes("99"),
|
|
1909
|
+
ava: JSON.parse(a.a),
|
|
1910
|
+
job: a.j,
|
|
1911
|
+
login: "",
|
|
1912
|
+
online: { time: a.o, status: 0 },
|
|
1913
|
+
sts: a.s,
|
|
1914
|
+
nameFull: c,
|
|
1915
|
+
name: f,
|
|
1916
|
+
number: l
|
|
1917
|
+
};
|
|
1918
|
+
});
|
|
1919
|
+
let r = { ...ie(), user: t };
|
|
1920
|
+
oe(r);
|
|
1921
|
+
};
|
|
1922
|
+
E.company = (e) => {
|
|
1923
|
+
let t = {}, r = {};
|
|
1924
|
+
e.data.forEach((c) => {
|
|
1925
|
+
t[c.id] = { s: c.v, n: c.a }, r[c.id] = c;
|
|
1926
|
+
});
|
|
1927
|
+
let a = { ...ie(), 901: t };
|
|
1928
|
+
ht(r), oe(a);
|
|
1929
|
+
};
|
|
1930
|
+
E.api = (e) => {
|
|
1931
|
+
let t = {};
|
|
1932
|
+
e.data.forEach((r) => {
|
|
1933
|
+
t[r.api] = { key: r.key, p01: r.p01, p02: r.p02 };
|
|
1934
|
+
});
|
|
1935
|
+
};
|
|
1936
|
+
E.delete = () => {
|
|
1937
|
+
L();
|
|
1938
|
+
};
|
|
1939
|
+
E.select = (e) => {
|
|
1940
|
+
let t = { ...ie() };
|
|
1941
|
+
e.data.forEach((r) => {
|
|
1942
|
+
t[r.n] = JSON.parse(r.s);
|
|
1943
|
+
}), oe(t);
|
|
1944
|
+
};
|
|
1945
|
+
E.job = (e) => {
|
|
1946
|
+
let t = { ...ie() }, r = {};
|
|
1947
|
+
Object.keys(e.data).forEach((a) => {
|
|
1948
|
+
r[a] = { s: 1, n: e.data[a] };
|
|
1949
|
+
}), t[1] = r, oe(t);
|
|
1950
|
+
};
|
|
1951
|
+
E.setting = (e) => {
|
|
1952
|
+
};
|
|
1953
|
+
E.app = () => {
|
|
1954
|
+
};
|
|
1955
|
+
const Ma = (e, t) => {
|
|
1956
|
+
P[e] = t;
|
|
1957
|
+
}, $a = (e, t) => {
|
|
1958
|
+
P[e](t);
|
|
1959
|
+
};
|
|
1960
|
+
function za(e) {
|
|
1961
|
+
let t = "_" + String(Math.random()).substring(2, 7);
|
|
1962
|
+
return new Promise((r) => {
|
|
1963
|
+
P[t] = (a) => {
|
|
1964
|
+
a.error !== void 0 ? r({ error: a.error }) : r(a.data), delete P[t];
|
|
1965
|
+
}, e = { ...e, listen: t }, e.type = "modules", P.send(e);
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
const Ka = { useConnect: Fa, useListener: Ma, setListener: $a, Send: za };
|
|
1817
1969
|
export {
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1970
|
+
Wr as Action,
|
|
1971
|
+
Va as Alert,
|
|
1972
|
+
Da as Api,
|
|
1973
|
+
Ja as Badge,
|
|
1974
|
+
Ua as Browser,
|
|
1975
|
+
Qn as Button,
|
|
1976
|
+
Aa as Component,
|
|
1977
|
+
Ha as Event,
|
|
1978
|
+
Xa as Format,
|
|
1979
|
+
Ya as Icon,
|
|
1980
|
+
wr as Init,
|
|
1981
|
+
Rr as Modal,
|
|
1982
|
+
Ga as Notice,
|
|
1983
|
+
we as Router,
|
|
1984
|
+
Wa as Setting,
|
|
1985
|
+
Ka as Socket,
|
|
1986
|
+
Pe as Store,
|
|
1987
|
+
Or as Tabs,
|
|
1988
|
+
Ba as Triage
|
|
1836
1989
|
};
|