elcrm 0.8.26 → 0.8.28

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.
@@ -15,15 +15,15 @@ export declare function usePage(): any[];
15
15
  export declare function setPage(o: string, reload?: boolean): void;
16
16
  export declare function getPage(): any;
17
17
  export declare function isPage(page: string): boolean;
18
- export declare function useModule(): any[];
18
+ export declare function useModule(fn?: (name: string) => void | string): string[] | undefined;
19
19
  export declare function setModule(module: string, reload?: boolean): void;
20
20
  export declare function getModule(): any;
21
21
  export declare function isModule(module: string): boolean;
22
- export declare function useTabs(tab?: any): any[] | undefined;
22
+ export declare function useTabs(fn?: (name: string) => void | string): string[] | undefined;
23
23
  export declare function setTabs(tabs: string, reload?: boolean): void;
24
24
  export declare function getTabs(): any;
25
25
  export declare function isTabs(tab: string): boolean;
26
- export declare function useId(fn?: (id: number) => void): any[];
26
+ export declare function useId(fn?: (id: number) => void | number): number[];
27
27
  export declare function subId(id: number): void;
28
28
  export declare function setId(id: number, reload?: boolean): void;
29
29
  export declare function getId(): any;
package/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@ import g, { createElement as wa } from "react";
5
5
  let bt = {};
6
6
  const Sa = (e) => {
7
7
  bt = e;
8
- }, Ea = (e) => bt.enCode(e), Na = (e) => bt.deCode(e), M = { enCode: Ea, deCode: Na, New: Sa }, b = {}, ee = {}, be = {}, fn = {}, ce = {};
8
+ }, Ea = (e) => bt.enCode(e), Na = (e) => bt.deCode(e), M = { enCode: Ea, deCode: Na, New: Sa }, b = {}, J = {}, be = {}, fn = {}, ce = {};
9
9
  let wt = "M06";
10
10
  function Ra(e) {
11
11
  wt = e;
@@ -38,7 +38,7 @@ function Da(e) {
38
38
  id: b.id,
39
39
  time: (/* @__PURE__ */ new Date()).getTime()
40
40
  })
41
- ), ee.page(b.page);
41
+ ), J.page(b.page);
42
42
  }
43
43
  function Ma(e) {
44
44
  return localStorage.setItem("d", e);
@@ -69,10 +69,10 @@ function Pa() {
69
69
  const [e, t] = g.useState(hn()), a = (r) => {
70
70
  t(r);
71
71
  };
72
- return ee.page = a, [e];
72
+ return J.page = a, [e];
73
73
  }
74
74
  function Oa(e, t = !0) {
75
- b.page = e, sessionStorage.setItem("f", M.enCode(b)), t && ee.page(e);
75
+ b.page = e, sessionStorage.setItem("f", M.enCode(b)), t && J.page(e);
76
76
  }
77
77
  function hn() {
78
78
  return b.page;
@@ -80,14 +80,17 @@ function hn() {
80
80
  function Aa(e) {
81
81
  return b.page === e;
82
82
  }
83
- function Za() {
84
- const [e, t] = g.useState(xn()), a = (r) => {
85
- t(r);
86
- };
87
- return ee.module = a, [e];
83
+ function Za(e) {
84
+ if (typeof e == "string") {
85
+ const [t, a] = g.useState(xn() || e), r = (s) => {
86
+ a(s);
87
+ };
88
+ return J.tabs = r, [t];
89
+ } else
90
+ J.tabs = e;
88
91
  }
89
92
  function za(e, t = !0) {
90
- b.module = e, sessionStorage.setItem("f", M.enCode(b)), t && ee.module(e);
93
+ b.module = e, sessionStorage.setItem("f", M.enCode(b)), t && J.module(e);
91
94
  }
92
95
  function xn() {
93
96
  return b.module;
@@ -100,12 +103,12 @@ function Wa(e) {
100
103
  const [t, a] = g.useState(Je() || e), r = (s) => {
101
104
  a(s);
102
105
  };
103
- return ee.tabs = r, [t];
106
+ return J.tabs = r, [t];
104
107
  } else
105
- ee.tabs = e;
108
+ J.tabs = e;
106
109
  }
107
110
  function Ka(e, t = !0) {
108
- b.tab = e, sessionStorage.setItem("f", M.enCode(b)), t && ee.tabs(e);
111
+ b.tab = e, sessionStorage.setItem("f", M.enCode(b)), t && J.tabs(e);
109
112
  }
110
113
  function Je() {
111
114
  return b.tab;
@@ -119,13 +122,13 @@ function Va(e) {
119
122
  return e(s);
120
123
  a(s);
121
124
  };
122
- return ee.id = r, [t];
125
+ return J.id = r, [t];
123
126
  }
124
127
  function Ya(e) {
125
- ee.id = e;
128
+ J.id = e;
126
129
  }
127
130
  function Ha(e, t = !0) {
128
- b.id = e, sessionStorage.setItem("f", M.enCode(b)), t && ee.id(e);
131
+ b.id = e, sessionStorage.setItem("f", M.enCode(b)), t && J.id(e);
129
132
  }
130
133
  function qa() {
131
134
  return b.id;
@@ -134,7 +137,7 @@ function Ja(e) {
134
137
  return Number(b.id) === e;
135
138
  }
136
139
  function Xa(e, t, a) {
137
- b.module = e, b.id = a, b.tab = t, sessionStorage.setItem("f", M.enCode(b)), ee.module(e), ee.tabs(t);
140
+ b.module = e, b.id = a, b.tab = t, sessionStorage.setItem("f", M.enCode(b)), J.module(e), J.tabs(t);
138
141
  }
139
142
  function Qa(e) {
140
143
  be.data = e[0], delete be.data.id, document.body.dataset.theme = be.data.s15, localStorage.setItem("s", M.enCode(be.data));
@@ -165,7 +168,7 @@ function nr() {
165
168
  return te(), !1;
166
169
  }
167
170
  function ar(e) {
168
- ee.sort = e;
171
+ J.sort = e;
169
172
  }
170
173
  function pn(e) {
171
174
  let t = localStorage.getItem("b");
@@ -473,7 +476,7 @@ function Tr() {
473
476
  }
474
477
  var I = !1, w = !1, T = !1, N = !1, E = !1, A;
475
478
  A = Symbol.for("react.module.reference");
476
- function J(c) {
479
+ function X(c) {
477
480
  return !!(typeof c == "string" || typeof c == "function" || c === r || c === i || E || c === s || c === _ || c === u || N || c === h || I || w || T || typeof c == "object" && c !== null && (c.$$typeof === f || c.$$typeof === m || c.$$typeof === o || c.$$typeof === l || c.$$typeof === d || // This needs to include all possible module reference object
478
481
  // types supported by any Flight configuration anywhere since
479
482
  // we don't know which Flight build this will end up being used
@@ -642,29 +645,29 @@ function Tr() {
642
645
  }), typeof Reflect == "object" && Reflect.construct) {
643
646
  try {
644
647
  Reflect.construct(L, []);
645
- } catch (X) {
646
- R = X;
648
+ } catch (Q) {
649
+ R = Q;
647
650
  }
648
651
  Reflect.construct(c, [], L);
649
652
  } else {
650
653
  try {
651
654
  L.call();
652
- } catch (X) {
653
- R = X;
655
+ } catch (Q) {
656
+ R = Q;
654
657
  }
655
658
  c.call(L.prototype);
656
659
  }
657
660
  } else {
658
661
  try {
659
662
  throw Error();
660
- } catch (X) {
661
- R = X;
663
+ } catch (Q) {
664
+ R = Q;
662
665
  }
663
666
  c();
664
667
  }
665
- } catch (X) {
666
- if (X && R && typeof X.stack == "string") {
667
- for (var D = X.stack.split(`
668
+ } catch (Q) {
669
+ if (Q && R && typeof Q.stack == "string") {
670
+ for (var D = Q.stack.split(`
668
671
  `), q = R.stack.split(`
669
672
  `), G = D.length - 1, U = q.length - 1; G >= 1 && U >= 0 && D[G] !== q[U]; )
670
673
  U--;
@@ -985,7 +988,7 @@ Check the top-level render call using <` + k + ">.");
985
988
  var Xt = {};
986
989
  function Qt(c, x, k, R, B, P) {
987
990
  {
988
- var L = J(c);
991
+ var L = X(c);
989
992
  if (!L) {
990
993
  var D = "";
991
994
  (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (D += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -1011,11 +1014,11 @@ Check the top-level render call using <` + k + ">.");
1011
1014
  Jt(ne, c);
1012
1015
  }
1013
1016
  if (Te.call(x, "key")) {
1014
- var ge = $(c), X = Object.keys(x).filter(function(ja) {
1017
+ var ge = $(c), Q = Object.keys(x).filter(function(ja) {
1015
1018
  return ja !== "key";
1016
- }), ct = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
1019
+ }), ct = Q.length > 0 ? "{key: someKey, " + Q.join(": ..., ") + ": ...}" : "{key: someKey}";
1017
1020
  if (!Xt[ge + ct]) {
1018
- var ka = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
1021
+ var ka = Q.length > 0 ? "{" + Q.join(": ..., ") + ": ...}" : "{}";
1019
1022
  S(`A props object containing a "key" prop is being spread into JSX:
1020
1023
  let props = %s;
1021
1024
  <%s {...props} />
@@ -2275,7 +2278,7 @@ function Sn({ text: e, type: t, button: a }) {
2275
2278
  a && /* @__PURE__ */ n.jsx("button", { onClick: o, children: a.label })
2276
2279
  ] });
2277
2280
  }
2278
- const ki = "_h_1usnu_1", ji = "_g_1usnu_11", yi = "_hr_1usnu_16", bi = "_hl_1usnu_28", wi = "_t_1usnu_40", Si = "_s_1usnu_60", Ei = "_u_1usnu_69", Ni = "_o_1usnu_76", Ri = "_l_1usnu_105", Ti = "_hh_1usnu_115", Ii = "_c_1usnu_128", Di = "_loadingB_1usnu_1", Mi = "_m_1usnu_180", Fi = "_ul_1usnu_196", Li = "_f_1usnu_226", Q = {
2281
+ const ki = "_h_1usnu_1", ji = "_g_1usnu_11", yi = "_hr_1usnu_16", bi = "_hl_1usnu_28", wi = "_t_1usnu_40", Si = "_s_1usnu_60", Ei = "_u_1usnu_69", Ni = "_o_1usnu_76", Ri = "_l_1usnu_105", Ti = "_hh_1usnu_115", Ii = "_c_1usnu_128", Di = "_loadingB_1usnu_1", Mi = "_m_1usnu_180", Fi = "_ul_1usnu_196", Li = "_f_1usnu_226", ee = {
2279
2282
  h: ki,
2280
2283
  g: ji,
2281
2284
  hr: yi,
@@ -2291,22 +2294,22 @@ const ki = "_h_1usnu_1", ji = "_g_1usnu_11", yi = "_hr_1usnu_16", bi = "_hl_1usn
2291
2294
  m: Mi,
2292
2295
  ul: Fi,
2293
2296
  f: Li
2294
- }, on = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: Q.h, children: [
2295
- /* @__PURE__ */ n.jsx("div", { className: Q.t, children: e }),
2296
- t && /* @__PURE__ */ n.jsx("div", { className: Q.hl, children: t }),
2297
- a && /* @__PURE__ */ n.jsx("div", { className: Q.hr, children: a }),
2297
+ }, on = ({ title: e, left: t, right: a, children: r }) => /* @__PURE__ */ n.jsxs("div", { className: ee.h, children: [
2298
+ /* @__PURE__ */ n.jsx("div", { className: ee.t, children: e }),
2299
+ t && /* @__PURE__ */ n.jsx("div", { className: ee.hl, children: t }),
2300
+ a && /* @__PURE__ */ n.jsx("div", { className: ee.hr, children: a }),
2298
2301
  r
2299
- ] }), ln = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: Q.l, children: e }), cn = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.s, children: e }), dn = ({ children: e, edit: t }) => {
2302
+ ] }), ln = ({ children: e, ...t }) => /* @__PURE__ */ n.jsx("div", { className: ee.l, children: e }), cn = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ee.s, children: e }), dn = ({ children: e, edit: t }) => {
2300
2303
  const a = {};
2301
- return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: Q.f, children: e });
2304
+ return t && (a.edit = ""), /* @__PURE__ */ n.jsx("div", { ...a, className: ee.f, children: e });
2302
2305
  };
2303
2306
  function _n({ children: e }) {
2304
- return /* @__PURE__ */ n.jsx("div", { className: Q.g, children: e });
2307
+ return /* @__PURE__ */ n.jsx("div", { className: ee.g, children: e });
2305
2308
  }
2306
- const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [Q.o, t].join(" "), children: [
2307
- a && /* @__PURE__ */ n.jsx("div", { className: Q.hh, children: a }),
2309
+ const $i = ({ children: e, className: t, title: a }) => /* @__PURE__ */ n.jsxs("div", { className: [ee.o, t].join(" "), children: [
2310
+ a && /* @__PURE__ */ n.jsx("div", { className: ee.hh, children: a }),
2308
2311
  e
2309
- ] }), Bi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.u, children: e }), Pi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.c, children: e }), Oi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: Q.m, children: e }), un = {
2312
+ ] }), Bi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ee.u, children: e }), Pi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ee.c, children: e }), Oi = ({ children: e }) => /* @__PURE__ */ n.jsx("div", { className: ee.m, children: e }), un = {
2310
2313
  Header: on,
2311
2314
  Section: cn,
2312
2315
  Group: _n,
@@ -3325,7 +3328,7 @@ const Ne = () => (_t || (_t = new zo()), _t), xe = (e, t, a = Ne()) => a._withID
3325
3328
  ul: al
3326
3329
  };
3327
3330
  function Rn({ children: e }) {
3328
- return /* @__PURE__ */ n.jsx("ul", { className: Q.ul, children: e });
3331
+ return /* @__PURE__ */ n.jsx("ul", { className: ee.ul, children: e });
3329
3332
  }
3330
3333
  function sl(e, t) {
3331
3334
  switch (t.type) {
@@ -5706,10 +5709,10 @@ function Mt({
5706
5709
  value: z.target.textContent.replace(/\D/g, ""),
5707
5710
  name: r
5708
5711
  });
5709
- }, J = {};
5710
- J.field = "input", h && (J.className = h);
5712
+ }, X = {};
5713
+ X.field = "input", h && (X.className = h);
5711
5714
  let le = {};
5712
- return d && _ ? (le.edit = "true", le.contentEditable = "plaintext-only") : le.contentEditable = "false", s && (le.placeholder = s), u && (le.after = u), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...J, children: [
5715
+ return d && _ ? (le.edit = "true", le.contentEditable = "plaintext-only") : le.contentEditable = "false", s && (le.placeholder = s), u && (le.after = u), l ? /* @__PURE__ */ n.jsx(n.Fragment, {}) : /* @__PURE__ */ n.jsxs("dl", { ...X, children: [
5713
5716
  i && /* @__PURE__ */ n.jsx("dt", { children: i }),
5714
5717
  /* @__PURE__ */ n.jsx(
5715
5718
  "dd",
@@ -6161,13 +6164,13 @@ function zn({
6161
6164
  }, F = (N) => {
6162
6165
  h && h({ value: N, name: a });
6163
6166
  }, I = (N) => {
6164
- const E = N.target.getBoundingClientRect(), A = E.left, J = E.top;
6167
+ const E = N.target.getBoundingClientRect(), A = E.left, X = E.top;
6165
6168
  Ee.setListener(
6166
6169
  "form",
6167
6170
  /* @__PURE__ */ n.jsx(
6168
6171
  ml,
6169
6172
  {
6170
- positions: { x: A, y: J },
6173
+ positions: { x: A, y: X },
6171
6174
  onSave: F,
6172
6175
  onValue: S,
6173
6176
  date: p
@@ -6389,8 +6392,8 @@ function Kn({
6389
6392
  const T = (A) => {
6390
6393
  ue.Blur(A), h && h({ value: A.target.textContent, name: a });
6391
6394
  };
6392
- let N = (A, J) => {
6393
- C[J] = A.target.textContent, t !== void 0 && t({ value: C.join(","), name: a });
6395
+ let N = (A, X) => {
6396
+ C[X] = A.target.textContent, t !== void 0 && t({ value: C.join(","), name: a });
6394
6397
  }, E = (A) => {
6395
6398
  A.key === "Enter" && A.preventDefault();
6396
6399
  };
@@ -6414,11 +6417,11 @@ function Kn({
6414
6417
  }
6415
6418
  ) })
6416
6419
  ] }),
6417
- /* @__PURE__ */ n.jsx("dd", { children: C.map((A, J) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
6420
+ /* @__PURE__ */ n.jsx("dd", { children: C.map((A, X) => /* @__PURE__ */ n.jsxs("li", { className: "field_group_item", children: [
6418
6421
  /* @__PURE__ */ n.jsx(
6419
6422
  "span",
6420
6423
  {
6421
- onInput: (le) => N(le, J),
6424
+ onInput: (le) => N(le, X),
6422
6425
  edit: "true",
6423
6426
  name: a,
6424
6427
  placeholder: r,
@@ -6427,14 +6430,14 @@ function Kn({
6427
6430
  onKeyDown: E,
6428
6431
  onBlur: T,
6429
6432
  suppressContentEditableWarning: !0,
6430
- children: C[J]
6433
+ children: C[X]
6431
6434
  }
6432
6435
  ),
6433
6436
  /* @__PURE__ */ n.jsx(
6434
6437
  "i",
6435
6438
  {
6436
6439
  onClick: () => {
6437
- S(J);
6440
+ S(X);
6438
6441
  },
6439
6442
  children: /* @__PURE__ */ n.jsxs(
6440
6443
  "svg",
@@ -6454,7 +6457,7 @@ function Kn({
6454
6457
  )
6455
6458
  }
6456
6459
  )
6457
- ] }, J)) }),
6460
+ ] }, X)) }),
6458
6461
  i ? /* @__PURE__ */ n.jsx("em", { children: i }) : ""
6459
6462
  ] });
6460
6463
  }
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(S,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],p):(S=typeof globalThis<"u"?globalThis:S||self,p((S.elCRM=S.elCRM||{},S.elCRM.components={}),S.React))})(this,function(S,p){"use strict";var js=Object.defineProperty;var Ss=(S,p,me)=>p in S?js(S,p,{enumerable:!0,configurable:!0,writable:!0,value:me}):S[p]=me;var Ot=(S,p,me)=>(Ss(S,typeof p!="symbol"?p+"":p,me),me);var me=document.createElement("style");me.textContent=`@charset "UTF-8";._notice_9i5tr_2{position:absolute;right:20px;top:72px;z-index:1111;font-family:Inter,sans-serif}._notice_9i5tr_2 ._error_9i5tr_9{color:#bb2014}._notice_9i5tr_2 ._success_9i5tr_12{color:#367738}._notice_9i5tr_2 ._remark_9i5tr_15{color:#b77513}._notice_9i5tr_2 ._copy_9i5tr_18{color:#3f51b5}._notice_9i5tr_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:var(--notice-radius, 5px);box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_9i5tr_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_9i5tr_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_9i5tr_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}._notice_9i5tr_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_9i5tr_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_9i5tr_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_9i5tr_1{0%{opacity:1}to{opacity:0}}._alerts_1pds5_1{position:fixed;top:0;bottom:0;left:0;right:0;color:var(--system-color);background:#0000009e;z-index:30;display:flex;flex:1;align-content:center;justify-content:center}._alerts_1pds5_1 dl{margin:auto;overflow:hidden;width:270px;height:auto;border-radius:12px;border:0;height:fit-content;z-index:1;background:var(--system-bg);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);-webkit-animation:_menuAnimation_1pds5_1 .4s 0s both;animation:_menuAnimation_1pds5_1 .4s 0s both;list-style:none;padding-top:20px;font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017}._alerts_1pds5_1 dt{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;text-align:center;text-transform:capitalize;font-weight:600;line-height:22px;margin:0 0 5px;padding:0 20px}._alerts_1pds5_1 dd{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:13px;margin:0;text-align:center;line-height:16px;padding:0 20px 20px}._alerts_1pds5_1 ul{border-top:1px solid var(--system-hr);width:100%;display:flex}._alerts_1pds5_1 button{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:10px;cursor:pointer;text-align:center;font-weight:600;background:#0000;border-radius:0;display:block;width:-webkit-fill-available;-webkit-animation:_menuItemAnimation_1pds5_1 .2s 0s both;animation:_menuItemAnimation_1pds5_1 .2s 0s both;font-family:Inter,sans-serif;border:0}._alerts_1pds5_1 button[color=blue]{color:#1b6ac0}._alerts_1pds5_1 button[color=red]{color:#c21c0d}._alerts_1pds5_1 button:hover{background:var(--system-hover)}._alerts_1pds5_1 ._--body_1pds5_103{position:fixed;top:0;bottom:0;left:0;right:0}._allert_1pds5_111 ._--form_1pds5_111{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:20px;border-bottom:1px solid var(--system-hr)}._al_1pds5_1{display:flex;color:#fff;font-weight:700;height:40px;align-items:center}._al_1pds5_1 svg{fill:#fff;width:25px;height:25px;margin:0 15px}._al_1pds5_1[active=success]{background:#4caf51}._al_1pds5_1[active=error]{background:#f44336}._al_1pds5_1[active=remark]{background:#ff9800}._al_1pds5_1[active=none],._al_1pds5_1[active="0"]{display:none}._al_1pds5_1[active="1"]{background:#ff9800}._al_1pds5_1[active="2"]{background:#f44336}._al_1pds5_1[active="3"]{background:#4caf51}._al_1pds5_1[active="4"]{background:#abb6d2}._al_1pds5_1[active="5"]{background:#506290}._al_1pds5_1 button{height:30px;line-height:30px;padding:0 20px;font-weight:400;margin-left:20px;background:#e6e6e6}._n_euuvm_1{flex:0 0 50px;cursor:pointer;color:#fff;border-right:1px solid #000;display:flex;justify-content:center;align-items:center}._n_euuvm_1 svg{width:30px;height:30px;color:#fff}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade)}._white_11p39_14{--background: #e4ebf5;--shadow: #abb6d2;--shade: #fff;--color: #1f253d;--disabled: #9baacf;--text: #394264;--tinge: #3f51b50a;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px var(--shadow), -1px -1px 1px var(--shade)}._black_11p39_26{--background: #506290;--shadow: #1f253d;--shade: #394264;--color: #fff;--disabled: #29314c;--text: #abb6d2;--tinge: #00000026;--inset: inset 1px 1px 1px #394264, inset -1px -1px 1px #39426470;--outset: 1px 1px 1px #394264, -1px -1px 1px #39426470}[shake=true]{-webkit-animation-name:_shake_11p39_1;animation-name:_shake_11p39_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_11p39_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}[data-color-bg=fff1d6]{--inset: inset 1px 1px 1px #c9c1ac, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #c9c1ac, -1px -1px 1px var(--shade)}[data-color-bg=ffd9d9]{--inset: inset 1px 1px 1px #cdb0b1, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #cdb0b1, -1px -1px 1px var(--shade)}[data-color-bg=daffe5]{--inset: inset 1px 1px 1px #b6d2be, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #b6d2be, -1px -1px 1px var(--shade)}._modal_11p39_73{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._o_11p39_83{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b8}._w_11p39_14{box-shadow:5px 7px 18px #000000a8;background:var(--background);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap;overflow:hidden}._h_11p39_107{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_11p39_121{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_11p39_121 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_11p39_121 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_11p39_121 li:last-child{border-bottom:0}._l_11p39_121 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_11p39_159{padding-right:10px}._m_11p39_73{flex:1}._x_11p39_167{cursor:pointer;color:#1f253d;opacity:.5;display:flex}._x_11p39_167 svg{width:20px}._s_11p39_177{flex:1;overflow-y:scroll}._c_11p39_182{text-align:center;margin:20px}._f_11p39_187{padding:0 20px;display:flex;flex-direction:column}._f_11p39_187 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_11p39_187 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_11p39_187 dd{margin:0;background:var(--tinge);color:var(--color);box-shadow:var(--inset);border-radius:5px;min-height:33px;padding:7px 10px;flex:1 1}._f_11p39_187 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._x_11p39_167:hover{opacity:1}._btn_11p39_230{min-width:200px;margin:10px auto 20px;opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._g_11p39_243{display:flex;gap:10px}._c_11p39_182{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;text-align:center;cursor:pointer}._c_11p39_182:first-child{margin-left:20px}._c_11p39_182:last-child{margin-right:20px}._c_11p39_182:hover{opacity:1;background:var(--tinge)}._c_11p39_182 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_11p39_182 b{text-align:center;display:block;color:var(--color)}._c_11p39_182 p{text-align:center;font-size:15px;color:var(--text)}._btn_11p39_230:hover{opacity:1}._modal_11p39_73._size-a_11p39_296 ._w_11p39_14{width:auto}._modal_11p39_73._size-s_11p39_300 ._w_11p39_14{width:400px}._modal_11p39_73._size-m_11p39_304 ._w_11p39_14{width:500px}._modal_11p39_73._size-l_11p39_308 ._w_11p39_14{width:800px}._modal_11p39_73._size-x_11p39_312 ._w_11p39_14{width:1000px}._modal_11p39_73._size-f_11p39_316 ._w_11p39_14{width:100%;max-width:1200px;min-width:910px}._btn_11p39_230._confirm_11p39_322{background:#4caf50;color:#fff}._btn_11p39_230._cancel_11p39_327{background:#f44336;color:#fff}._btn_11p39_230._disabled_11p39_332,._btn_11p39_230._await_11p39_339{background:#efefef;color:#000;opacity:1;cursor:default}._m_11p39_73 big{position:absolute;margin:10px auto 20px;border-radius:5px;box-shadow:var(--outset);display:flex;top:-1px;right:55px}._m_11p39_73 big i{width:30px;height:30px;text-align:center;margin:3px;line-height:30px;cursor:pointer;border-radius:5px}._m_11p39_73 big i:hover{box-shadow:var(--inset)}._m_11p39_73 nav{width:fit-content;height:35px;margin:0 auto;box-shadow:var(--outset);border-radius:5px;display:flex}._m_11p39_73 span{border-radius:3px;flex:1 1;margin:2px;padding:0 10px;line-height:35px;color:var(--disabled);cursor:pointer}._m_11p39_73 span._active_11p39_389{box-shadow:var(--inset);color:var(--color)}._coincidence_11p39_395{position:fixed;right:20px;bottom:20px;z-index:1111;overflow-y:scroll;max-height:565px;padding-top:90px}._coincidence_11p39_395 span{display:block;width:300px;border-radius:5px;overflow:hidden;cursor:pointer;margin:10px 0;padding:10px;color:#1f253d}._coincidence_11p39_395 dl{display:flex;padding:0;margin:5px}._coincidence_11p39_395 dd{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 10px}._sa_11p39_431{width:auto}._ss_11p39_435{width:400px}._sm_11p39_439{width:500px}._sl_11p39_443{width:800px}._sx_11p39_447{width:1000px}._sf_11p39_451{width:100%;max-width:1200px;min-width:910px}button{background:#b95656;font-weight:700}._btn_1hz2s_6{min-width:200px;margin:10px auto 20px;opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._confirm_1hz2s_19{background:#4caf50;color:#fff}._h_1usnu_1{background:var(--content);margin-bottom:2px;border-radius:5px 5px 0 0;line-height:35px;align-items:center;display:flex;height:35px}._g_1usnu_11{display:flex;gap:5px}._hr_1usnu_16{text-align:center;position:absolute;display:flex;top:0;right:0;align-items:center;gap:6px;padding-right:4px;height:35px}._hl_1usnu_28{text-align:center;position:absolute;display:flex;top:0;left:0;align-items:center;gap:6px;padding-left:4px;height:35px}._t_1usnu_40{border-bottom:0;cursor:default;display:block;flex:1;margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px;font-size:14px!important;line-height:35px;font-weight:700;text-align:center;color:var(--label);position:absolute;left:0;right:0;height:35px}._s_1usnu_60{display:flex;flex:1;position:relative;overflow:hidden;border-radius:5px;flex-flow:column nowrap}._u_1usnu_69{overflow:hidden;border-radius:0 0 5px 5px;background:var(--content);display:block}._o_1usnu_76{overflow:hidden;position:relative;border-radius:5px;margin-top:5px;flex:1 1;background:var(--content)}._o_1usnu_76 ul{border-top:1px solid var(--separator);display:flex;flex-direction:column;gap:1px;background:var(--separator)}._o_1usnu_76 li{background:var(--content);display:flex}._o_1usnu_76 li[data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}._l_1usnu_105{flex:1;overflow:hidden;overflow-y:scroll;border-radius:0 0 5px 5px}._l_1usnu_105:last-child{border-radius:0}._hh_1usnu_115{background:#fff;display:block;flex:1 1;font-size:14px;line-height:35px;font-weight:700;text-align:center;color:#1f253d;border-bottom:1px solid #ddd;position:relative}._c_1usnu_128{width:300px;height:150px;margin:auto;border-radius:5px;text-align:center;background:#0000004a;line-height:150px;color:#fff}[type=load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}[type=load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}[type=load] i:nth-last-child(1){animation:_loadingB_1usnu_1 1.5s 1s infinite}[type=load] i:nth-last-child(2){animation:_loadingB_1usnu_1 1.5s .5s infinite}[type=load] i:nth-last-child(3){animation:_loadingB_1usnu_1 1.5s 0s infinite}@keyframes _loadingB_1usnu_1{0%{width:15px}50%{width:35px}to{width:15px}}._m_1usnu_180{-webkit-app-region:no-drag;overflow:hidden;border-radius:5px;margin-top:5px;background:#fff;display:block;min-height:35px;padding:10px;text-align:justify;white-space:pre-line}._m_1usnu_180 dd{min-height:35px}._ul_1usnu_196{overflow:hidden;border-radius:0;background:var(--separator);list-style-type:none;list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1px}._ul_1usnu_196 li{display:flex;font-size:12px;min-height:25px;cursor:pointer;align-items:center;gap:1px}._ul_1usnu_196 span{background:var(--content);flex:1;height:25px;line-height:25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._f_1usnu_226{border-top:1px solid var(--separator)}._f_1usnu_226 dl{display:flex;border-bottom:1px solid #ddd;margin:0}._f_1usnu_226 dt{flex:0 120px;font-size:13px;color:#999;margin:0;padding:6px 0 5px 9px}._f_1usnu_226 dd{flex:1;margin:0;border-left:1px solid #ddd;padding:5px;font-size:15px;min-height:17px;margin-inline-start:0px;overflow:hidden;overflow-x:scroll}._f_1usnu_226[edit] [edit=true]{color:red}menu{border-radius:5px;overflow:hidden;display:flex;flex-direction:column;background:var(--contex);grid-area:m}._payment_1lxfv_1{background:#f44336;height:42px;border-radius:5px;color:#fff;font-weight:700;line-height:42px;margin-top:8px;grid-area:p;text-align:center}._setting_dva4m_2{width:100%;overflow:auto}._setting_dva4m_2 nav{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 nav ul{display:flex;justify-content:space-between;gap:1px}._setting_dva4m_2 nav li{flex:1;text-align:center;background:var(--setting-bg);color:var(--setting-color);cursor:pointer;opacity:.7}._setting_dva4m_2 nav li[tabs-active=true]{opacity:1}._setting_dva4m_2 fieldset{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_dva4m_2 legend{text-transform:uppercase;font-weight:300;font-size:1.3em}._setting_dva4m_2 ul{margin:10px 0;color:#000;border-radius:8px;overflow:hidden;list-style-type:none;padding:0}._setting_dva4m_2 li{font-size:20px;line-height:40px}._setting_dva4m_2 dl{display:flex;margin:0 0 1px;align-items:center;padding-right:9px;color:var(--setting-color);background:var(--setting-bg)}._setting_dva4m_2 dd{text-align:right;padding-left:15px;position:relative;display:flex;justify-content:center}._setting_dva4m_2 dt{flex:1;padding:0 15px}._setting_dva4m_2 article{padding-left:15px;color:var(--setting-bg);font-weight:100;font-size:14px}._setting_dva4m_2 legend{color:var(--setting-bg);display:flex;justify-content:space-between;width:100%}._setting_dva4m_2 svg{fill:var(--setting-color);width:15px;margin-left:10px}._setting_dva4m_2 [data-close]{cursor:pointer;width:10px;height:10px;border-top:3px solid var(--setting-color);border-left:3px solid var(--setting-color);position:absolute;right:10px;top:3px;-webkit-transform:translate(0,-50%) rotate(45deg);-ms-transform:translate(0,-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}._setting_dva4m_2 [data-close=false]{right:10px;top:0;-webkit-transform:translate(0,-50%) rotate(-135deg);-ms-transform:translate(0,-50%) rotate(-135deg);transform:translateY(-50%) rotate(-135deg)}._setting_dva4m_2 [data-item=accordion]>div{margin-top:1px;background-color:var(--setting-bg)}._setting_dva4m_2 [role=button]{font-size:13px;border-radius:5px;text-align:center;width:100px;line-height:30px;padding:0;cursor:pointer}._setting_dva4m_2 [role=button]:hover{background:var(--setting-action)}._setting_dva4m_2 [role=button-outline]{font-size:14px;border:1px solid;padding:3px 13px;border-radius:6px;cursor:pointer;text-transform:none}._setting_dva4m_2 [role=button-outline]:hover{background:#00000038}._setting_dva4m_2 [role=switch]{cursor:pointer;position:relative;width:44px;height:22px;border-radius:50px;vertical-align:text-bottom;transition:all .3s linear;margin:0}._setting_dva4m_2 [role=switch]:after{content:"";position:absolute;left:4px;width:16px;height:16px;background-color:#fff;border-radius:50%;box-shadow:0 2px 2px #0000003d;transform:translate3d(0,3px,0);transition:all .2s ease-in-out}._setting_dva4m_2 [role=switch]:before{content:"";position:absolute;left:0;width:42px;height:22px;background-color:#ddd;border-radius:11px;transition:all .25s linear}._setting_dva4m_2 [role=switch][aria-checked=true]{background-color:#1f253d}._setting_dva4m_2 [role=switch][aria-checked=true]:before{transform:translate3d(18px,2px,0) scale3d(0,0,0)}._setting_dva4m_2 [role=switch][aria-checked=true]:after{transform:translate3d(19px,3px,0)}._sort_1yrvt_1{text-align:center;position:absolute;top:0;right:0}._sort_1yrvt_1 i{flex:0 1 35px;text-align:center;font-size:16px;line-height:35px;cursor:pointer;width:30px;display:inline-block}._s_18bde_1{flex:1;overflow:scroll}._s_18bde_1 [data-load]{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._s_18bde_1 [data-load] i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}._s_18bde_1 [data-load] i:nth-last-child(1){animation:_loadingB_18bde_1 1.5s 1s infinite}._s_18bde_1 [data-load] i:nth-last-child(2){animation:_loadingB_18bde_1 1.5s .5s infinite}._s_18bde_1 [data-load] i:nth-last-child(3){animation:_loadingB_18bde_1 1.5s 0s infinite}._ul_18bde_31{overflow:hidden;border-radius:0 0 5px 5px;background:var(--separator);display:block;list-style-type:none;list-style:none;padding:0;margin:0}._ul_18bde_31 [data-empty]:empty:before{content:attr(data-empty);display:block;color:#ccc;text-align:center;height:50px;line-height:50px;background:#fff}@keyframes _loadingB_18bde_1{0%{width:15px}50%{width:35px}to{width:15px}}._o_1kqkq_1{position:fixed;z-index:98;top:0;left:0;right:0;bottom:0;background:#0000}._c_1kqkq_11{box-shadow:5px 7px 18px #000000a8;padding:10px;margin:0;display:block;position:absolute;background:#394264;z-index:99;border-radius:10px;overflow:hidden;max-height:315px;color:#fff}._c_1kqkq_11 div{display:grid;grid-template-columns:35px 35px 35px 35px 35px 35px 35px}._c_1kqkq_11 b{font-weight:400;display:block;padding:8px 5px;border-radius:5px;cursor:pointer;text-align:center}._c_1kqkq_11 b:hover{background:#00000073}._c_1kqkq_11 p{color:#abb6d2;text-align:center;padding:0;margin:3px;cursor:default}._c_1kqkq_11 i{flex:0 30px;padding:9px;text-align:center;cursor:pointer;border-radius:5px}._c_1kqkq_11 i:hover{background:#00000073}._c_1kqkq_11 i:before{cursor:pointer;display:block}._c_1kqkq_11 s{display:flex;font-style:normal;text-decoration:none;padding-bottom:5px;align-items:center}._c_1kqkq_11 s h2{flex:1 1;padding:0;margin:0;font-size:18px;text-align:center;font-weight:400;line-height:35px;color:#fff;cursor:default}._c_1kqkq_11 span{padding:2px;text-align:center}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;user-select:none;-webkit-user-select:text}[field=password] dd:before{-webkit-text-security:none}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{max-width:35px;padding:0;cursor:pointer}[field=check] [active]:after{content:"";background:#394264;width:15px;height:15px;display:block;border-radius:5px}._spinner_1ul0m_1{fill:#fff;display:block;width:70px;height:70px;margin:70px auto;animation:_spinner_1ul0m_1 1.5s infinite linear;border-radius:50%}@-webkit-keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes _spinner_1ul0m_1{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}._l_1ul0m_75{display:block;text-align:center;height:50px;line-height:50px;background:#fff;border-radius:0 0 5px 5px}._l_1ul0m_75 i{display:inline-block;width:15px;height:15px;border-radius:15px;background-color:#e6ebf4;margin:0 5px}._l_1ul0m_75 i:nth-last-child(1){animation:_loadingB_1ul0m_1 1.5s 1s infinite}._l_1ul0m_75 i:nth-last-child(2){animation:_loadingB_1ul0m_1 1.5s .5s infinite}._l_1ul0m_75 i:nth-last-child(3){animation:_loadingB_1ul0m_1 1.5s 0s infinite}@keyframes _loadingB_1ul0m_1{0%{width:15px}50%{width:35px}to{width:15px}}._s_t9swc_1{flex:0 0 200px;cursor:text;text-align:left;line-height:30px;max-width:200px;overflow:hidden;white-space:nowrap;outline:none;height:30px;padding:0 5px 0 10px;color:#fff;margin-top:10px;margin-left:5px;background:#0000004d;border:1px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:inset 0 -5px 45px #64646433,0 1px 1px #fff3}._s_t9swc_1:empty:before{content:attr(placeholder);display:block;color:#ccc}._f_q3r0i_1{flex:0 0 50px;position:relative;display:flex;align-items:center;justify-content:center;cursor:pointer}._f_q3r0i_1 svg{width:30px;height:30px;color:#fff}._f_q3r0i_1 i{width:15px;height:15px;color:#fff;position:absolute;background:red;border-radius:50%;font-style:normal;top:5px;right:0;display:flex;align-items:center;justify-content:center;padding:10px}._p_djnh1_1{background:#fff;display:none;height:35px;line-height:35px;margin-top:2px;display:flex}._p_djnh1_1 span{flex:1 1;display:flex;text-align:center;cursor:pointer;color:#999;font-style:normal}._p_djnh1_1 span[active]{color:#000}._p_djnh1_1 i{cursor:pointer;flex:0 1 40px;align-items:center;display:flex;fill:#999;justify-content:center}._p_djnh1_1 i:hover{fill:#000}._p_djnh1_1 i:first-child{transform:rotate(180deg)}._p_djnh1_1 svg{width:20px}._l_djnh1_38{flex:1;overflow:scroll}
2
- `,document.head.appendChild(me);let rt={};const F={enCode:e=>rt.enCode(e),deCode:e=>rt.deCode(e),New:e=>{rt=e}},C={},X={},je={},At={},de={};let ot="M06";function aa(e){ot=e}function ia(){return ot}function ra(e){if(localStorage.getItem("d")){let a=sessionStorage.getItem("f");a?(a=F.deCode(a),a||ne(),C.id=a.id,C.tab=a.tab,C.page=a.page,C.module=a.module,C.time=a.time,C.payment={active:!0},C.module_admin=a.module_admin):(C.id=0,C.tab="",C.page="Main",C.module=C.module||ot)}else["a","b","c","d","e","m","u","s","q","p"].forEach(a=>localStorage.removeItem(a)),["f"].forEach(a=>sessionStorage.removeItem(a)),C.id=0,C.tab="",C.page="Auth",C.module="M00";return e}function ne(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function oa(e){e=e.split("/"),C.page="Main",C.module=e[0],C.tab=e[1],C.id=0,sessionStorage.setItem("f",F.enCode({module:C.module,page:C.page,tab:C.tab,id:C.id,time:new Date().getTime()})),X.page(C.page)}function sa(e){return localStorage.setItem("d",e)}function la(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?e:""}function da(e){return localStorage.setItem("a",e)}function ca(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:""}function _a(e){localStorage.setItem("p",F.enCode(e))}function st(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function ua(){const[e,t]=p.useState(Zt()),a=i=>{t(i)};return X.page=a,[e]}function fa(e,t=!0){C.page=e,sessionStorage.setItem("f",F.enCode(C)),t&&X.page(e)}function Zt(){return C.page}function ma(e){return C.page===e}function pa(){const[e,t]=p.useState(Gt()),a=i=>{t(i)};return X.module=a,[e]}function xa(e,t=!0){C.module=e,sessionStorage.setItem("f",F.enCode(C)),t&&X.module(e)}function Gt(){return C.module}function ha(e){return C.module===e}function ga(e){if(typeof e=="string"){const[t,a]=p.useState(Ke()||e),i=r=>{a(r)};return X.tabs=i,[t]}else X.tabs=e}function va(e,t=!0){C.tab=e,sessionStorage.setItem("f",F.enCode(C)),t&&X.tabs(e)}function Ke(){return C.tab}function ba(e){return C.tab===e}function ka(e){const[t,a]=p.useState(C.id),i=r=>{if(e)return e(r);a(r)};return X.id=i,[t]}function ya(e){X.id=e}function wa(e,t=!0){C.id=e,sessionStorage.setItem("f",F.enCode(C)),t&&X.id(e)}function Ca(){return C.id}function ja(e){return Number(C.id)===e}function Sa(e,t,a){C.module=e,C.id=a,C.tab=t,sessionStorage.setItem("f",F.enCode(C)),X.module(e),X.tabs(t)}function Ea(e){je.data=e[0],delete je.data.id,document.body.dataset.theme=je.data.s15,localStorage.setItem("s",F.enCode(je.data))}function Na(e,t){je.data[e]=t,localStorage.setItem("s",F.enCode(je.data))}function Ta(e){let t=localStorage.getItem("s");return t===null?{}:(t=F.deCode(t),t?e!==void 0?t[e]:t:ne())}function Wt(e){localStorage.setItem("m",F.enCode({data:e}))}function Ia(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),a=F.deCode(t);a||ne();const i=(o,s)=>{let l=s+"";for(;l.length<o;)l="0"+l;return l};return a.data.split(",").map(o=>"M"+i(2,o))}else return ne(),!1}function Da(e){X.sort=e}function Kt(e){let t=localStorage.getItem("b");t=t===null?{}:F.deCode(t),t[Ke()]=e,localStorage.setItem("b",F.enCode(t))}function lt(){let e=localStorage.getItem("b");return e===null?{}:(e=F.deCode(e),e=e[Ke()],e=e===void 0?{active:1,sort:"<"}:e,e)}function Ut(e){localStorage.setItem("c",F.enCode(e))}function Vt(e,t){var i;let a=localStorage.getItem("c");if(a!==""&&a!=="undefined"&&a!==null){let r=F.deCode(a);return r||ne(),e===void 0?r:t?(i=r[e][t])==null?void 0:i.n:r[e]}else return ne(),!1}function Me(e){de.data=e,localStorage.setItem("q",F.enCode(de.data))}function Ma(e,t){de.data={...de.data,[e]:t},localStorage.setItem("q",F.enCode(de.data))}function be(e,t){if(!de.data){let a=localStorage.getItem("q");a&&(de.data=F.deCode(a))}return e===void 0&&t===void 0?de.data:e!==void 0&&t===void 0?de.data[e]:de.data[e][t]}function Fa(e){At.data=e}function $a(e){return At.data[e]}function Ba(e){C.payment=e}function La(){return C.payment}function qt(e){localStorage.setItem("u",F.enCode(e))}function Pa(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function Yt(e){localStorage.setItem("e",F.enCode(e))}function Ra(){let e=localStorage.getItem("e");if(e!==""&&e!=="undefined"&&e!==null)try{let t=F.deCode(e);return t||ne(),t}catch{return{}}else return{}}function za(e){const t=a=>{let i=localStorage.getItem(a);if(i!==""&&i!=="undefined"&&i!==null)try{let r=F.deCode(i);if(!r)return;C[a]={is:!0,time:r.time,data:r.data}}catch{C[a]={is:!1,time:0,data:{}}}else C[a]={is:!1,time:0,data:{}}};e.forEach(a=>t(a))}function Oa(e){return C[e]===void 0?(C[e]={data:{},time:0},{data:{},time:0}):C[e]}function Aa(e,t){C[e]={data:t.data,time:t.time},localStorage.setItem(e,F.enCode(C[e]))}function Za(e,t,a){C[e].time=a,C[e].data[t.item][t.name]=t.value,localStorage.setItem(e,F.enCode(C[e]))}const ae={setSSID:sa,getSSID:la,getPORT:st,setPORT:_a,setAUTH:da,getAUTH:ca,Logaut:ne,Start:oa,setMenu:Wt,getMenu:Ia,useSort:Da,setSort:Kt,getSort:lt,setCompany:Ut,getCompany:Vt,setSelect:Me,addSelect:Ma,getSelect:be,setApi:Fa,getApi:$a,setPayment:Ba,getPayment:La,setUser:qt,getUser:Pa,getDefaultModules:ia,getBase:Oa,setBase:Aa,editBase:Za,loadBase:za},Ht="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK",Ga=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),Jt=typeof window<"u"&&window.Blob&&new Blob([Ga(Ht)],{type:"text/javascript;charset=utf-8"});function Xt(e){let t;try{if(t=Jt&&(window.URL||window.webkitURL).createObjectURL(Jt),!t)throw"";const a=new Worker(t,{name:e==null?void 0:e.name});return a.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;base64,"+Ht,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const pe={};function Wa(e){return e&&(pe.s=e),pe.s}function Ka(e){return e&&(pe.a=e),pe.a}function Ua(e){return e&&(pe.c=e),pe.c}function Va(e){return e&&(pe.h=e),pe.h}const Ue={version:{Api:Ka,Server:Wa,Client:Ua},Host:Va};let qa="api",Ya="elcrm",Ha="online";function Ja(){let e=ae.getPORT(),t="",a="";return e.address==="localhost"?(t=`http://localhost:${e.socket}/documents`,a=`http://localhost:${e.socket}/files`):(t="https://"+e.address+"/documents",a="https://"+e.address+"/files"),{documents:t,files:a}}let Qt=`${qa}.${Ya}.${Ha}`;function Xa(e){return"https://"+ae.getPORT().address+"/audio/"+e}function Ve(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new Xt;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:Ue.Host()||`https://${Qt}/`})})}function Qa(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new Xt;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:Ue.Host()+"modules/"||`https://${Qt}/modules`})})}function ei(e,t={},a){const[i,r]=p.useState({status:"load"}),o=async s=>{let l=await Ve(e,s,a);r(l)};return p.useEffect(()=>{o(t)},[]),[i,o]}let en={"Content-type":"application/json;charset=utf-8",ssid:ae.getAUTH()||""};async function ti(e,t,a={}){try{return await(await Ve("https://"+e+"/"+t,{method:"POST",headers:en,body:JSON.stringify(a)})).json()}catch{return{status:"error"}}}async function ni(e,t={}){try{return await(await Ve("https://tb.elcrm.online/v1/"+e,{method:"POST",headers:en,body:JSON.stringify(t)})).json()}catch{return{status:"error"}}}const dt={audio:Xa,fetch:Ve,modules:Qa,remoute:ti,url:Ja,telegram:ni,use:ei};var ct={exports:{}},Fe={};/**
2
+ `,document.head.appendChild(me);let rt={};const F={enCode:e=>rt.enCode(e),deCode:e=>rt.deCode(e),New:e=>{rt=e}},C={},H={},je={},At={},de={};let ot="M06";function aa(e){ot=e}function ia(){return ot}function ra(e){if(localStorage.getItem("d")){let a=sessionStorage.getItem("f");a?(a=F.deCode(a),a||ne(),C.id=a.id,C.tab=a.tab,C.page=a.page,C.module=a.module,C.time=a.time,C.payment={active:!0},C.module_admin=a.module_admin):(C.id=0,C.tab="",C.page="Main",C.module=C.module||ot)}else["a","b","c","d","e","m","u","s","q","p"].forEach(a=>localStorage.removeItem(a)),["f"].forEach(a=>sessionStorage.removeItem(a)),C.id=0,C.tab="",C.page="Auth",C.module="M00";return e}function ne(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function oa(e){e=e.split("/"),C.page="Main",C.module=e[0],C.tab=e[1],C.id=0,sessionStorage.setItem("f",F.enCode({module:C.module,page:C.page,tab:C.tab,id:C.id,time:new Date().getTime()})),H.page(C.page)}function sa(e){return localStorage.setItem("d",e)}function la(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?e:""}function da(e){return localStorage.setItem("a",e)}function ca(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:""}function _a(e){localStorage.setItem("p",F.enCode(e))}function st(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function ua(){const[e,t]=p.useState(Zt()),a=i=>{t(i)};return H.page=a,[e]}function fa(e,t=!0){C.page=e,sessionStorage.setItem("f",F.enCode(C)),t&&H.page(e)}function Zt(){return C.page}function ma(e){return C.page===e}function pa(e){if(typeof e=="string"){const[t,a]=p.useState(Gt()||e),i=r=>{a(r)};return H.tabs=i,[t]}else H.tabs=e}function xa(e,t=!0){C.module=e,sessionStorage.setItem("f",F.enCode(C)),t&&H.module(e)}function Gt(){return C.module}function ha(e){return C.module===e}function ga(e){if(typeof e=="string"){const[t,a]=p.useState(Ke()||e),i=r=>{a(r)};return H.tabs=i,[t]}else H.tabs=e}function va(e,t=!0){C.tab=e,sessionStorage.setItem("f",F.enCode(C)),t&&H.tabs(e)}function Ke(){return C.tab}function ba(e){return C.tab===e}function ka(e){const[t,a]=p.useState(C.id),i=r=>{if(e)return e(r);a(r)};return H.id=i,[t]}function ya(e){H.id=e}function wa(e,t=!0){C.id=e,sessionStorage.setItem("f",F.enCode(C)),t&&H.id(e)}function Ca(){return C.id}function ja(e){return Number(C.id)===e}function Sa(e,t,a){C.module=e,C.id=a,C.tab=t,sessionStorage.setItem("f",F.enCode(C)),H.module(e),H.tabs(t)}function Ea(e){je.data=e[0],delete je.data.id,document.body.dataset.theme=je.data.s15,localStorage.setItem("s",F.enCode(je.data))}function Na(e,t){je.data[e]=t,localStorage.setItem("s",F.enCode(je.data))}function Ta(e){let t=localStorage.getItem("s");return t===null?{}:(t=F.deCode(t),t?e!==void 0?t[e]:t:ne())}function Wt(e){localStorage.setItem("m",F.enCode({data:e}))}function Ia(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),a=F.deCode(t);a||ne();const i=(o,s)=>{let l=s+"";for(;l.length<o;)l="0"+l;return l};return a.data.split(",").map(o=>"M"+i(2,o))}else return ne(),!1}function Da(e){H.sort=e}function Kt(e){let t=localStorage.getItem("b");t=t===null?{}:F.deCode(t),t[Ke()]=e,localStorage.setItem("b",F.enCode(t))}function lt(){let e=localStorage.getItem("b");return e===null?{}:(e=F.deCode(e),e=e[Ke()],e=e===void 0?{active:1,sort:"<"}:e,e)}function Ut(e){localStorage.setItem("c",F.enCode(e))}function Vt(e,t){var i;let a=localStorage.getItem("c");if(a!==""&&a!=="undefined"&&a!==null){let r=F.deCode(a);return r||ne(),e===void 0?r:t?(i=r[e][t])==null?void 0:i.n:r[e]}else return ne(),!1}function Me(e){de.data=e,localStorage.setItem("q",F.enCode(de.data))}function Ma(e,t){de.data={...de.data,[e]:t},localStorage.setItem("q",F.enCode(de.data))}function be(e,t){if(!de.data){let a=localStorage.getItem("q");a&&(de.data=F.deCode(a))}return e===void 0&&t===void 0?de.data:e!==void 0&&t===void 0?de.data[e]:de.data[e][t]}function Fa(e){At.data=e}function $a(e){return At.data[e]}function Ba(e){C.payment=e}function La(){return C.payment}function qt(e){localStorage.setItem("u",F.enCode(e))}function Pa(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=F.deCode(e);return t||ne(),t}else return ne(),!1}function Yt(e){localStorage.setItem("e",F.enCode(e))}function Ra(){let e=localStorage.getItem("e");if(e!==""&&e!=="undefined"&&e!==null)try{let t=F.deCode(e);return t||ne(),t}catch{return{}}else return{}}function za(e){const t=a=>{let i=localStorage.getItem(a);if(i!==""&&i!=="undefined"&&i!==null)try{let r=F.deCode(i);if(!r)return;C[a]={is:!0,time:r.time,data:r.data}}catch{C[a]={is:!1,time:0,data:{}}}else C[a]={is:!1,time:0,data:{}}};e.forEach(a=>t(a))}function Oa(e){return C[e]===void 0?(C[e]={data:{},time:0},{data:{},time:0}):C[e]}function Aa(e,t){C[e]={data:t.data,time:t.time},localStorage.setItem(e,F.enCode(C[e]))}function Za(e,t,a){C[e].time=a,C[e].data[t.item][t.name]=t.value,localStorage.setItem(e,F.enCode(C[e]))}const ae={setSSID:sa,getSSID:la,getPORT:st,setPORT:_a,setAUTH:da,getAUTH:ca,Logaut:ne,Start:oa,setMenu:Wt,getMenu:Ia,useSort:Da,setSort:Kt,getSort:lt,setCompany:Ut,getCompany:Vt,setSelect:Me,addSelect:Ma,getSelect:be,setApi:Fa,getApi:$a,setPayment:Ba,getPayment:La,setUser:qt,getUser:Pa,getDefaultModules:ia,getBase:Oa,setBase:Aa,editBase:Za,loadBase:za},Ht="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOntzc2lkOnQuZGF0YS5zc2lkLCJDb250ZW50LXR5cGUiOiJhcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTgifSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaChhKXtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciIsZGF0YToid29ya2VyIixtZXNzYWdlOmF9KX19fSkoKTsK",Ga=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),Jt=typeof window<"u"&&window.Blob&&new Blob([Ga(Ht)],{type:"text/javascript;charset=utf-8"});function Xt(e){let t;try{if(t=Jt&&(window.URL||window.webkitURL).createObjectURL(Jt),!t)throw"";const a=new Worker(t,{name:e==null?void 0:e.name});return a.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),a}catch{return new Worker("data:text/javascript;base64,"+Ht,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const pe={};function Wa(e){return e&&(pe.s=e),pe.s}function Ka(e){return e&&(pe.a=e),pe.a}function Ua(e){return e&&(pe.c=e),pe.c}function Va(e){return e&&(pe.h=e),pe.h}const Ue={version:{Api:Ka,Server:Wa,Client:Ua},Host:Va};let qa="api",Ya="elcrm",Ha="online";function Ja(){let e=ae.getPORT(),t="",a="";return e.address==="localhost"?(t=`http://localhost:${e.socket}/documents`,a=`http://localhost:${e.socket}/files`):(t="https://"+e.address+"/documents",a="https://"+e.address+"/files"),{documents:t,files:a}}let Qt=`${qa}.${Ya}.${Ha}`;function Xa(e){return"https://"+ae.getPORT().address+"/audio/"+e}function Ve(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new Xt;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:Ue.Host()||`https://${Qt}/`})})}function Qa(e,t={},a=ae.getAUTH()){return new Promise(i=>{const r=new Xt;r.onmessage=o=>{i(o.data),r.terminate()},r.postMessage({link:e,data:t,ssid:a,host:Ue.Host()+"modules/"||`https://${Qt}/modules`})})}function ei(e,t={},a){const[i,r]=p.useState({status:"load"}),o=async s=>{let l=await Ve(e,s,a);r(l)};return p.useEffect(()=>{o(t)},[]),[i,o]}let en={"Content-type":"application/json;charset=utf-8",ssid:ae.getAUTH()||""};async function ti(e,t,a={}){try{return await(await Ve("https://"+e+"/"+t,{method:"POST",headers:en,body:JSON.stringify(a)})).json()}catch{return{status:"error"}}}async function ni(e,t={}){try{return await(await Ve("https://tb.elcrm.online/v1/"+e,{method:"POST",headers:en,body:JSON.stringify(t)})).json()}catch{return{status:"error"}}}const dt={audio:Xa,fetch:Ve,modules:Qa,remoute:ti,url:Ja,telegram:ni,use:ei};var ct={exports:{}},Fe={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -15,17 +15,17 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var nn;function ii(){return nn||(nn=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),v=Symbol.iterator,b="@@iterator";function g(d){if(d===null||typeof d!="object")return null;var h=v&&d[v]||d[b];return typeof h=="function"?h:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(d){{for(var h=arguments.length,k=new Array(h>1?h-1:0),I=1;I<h;I++)k[I-1]=arguments[I];B("error",d,k)}}function B(d,h,k){{var I=y.ReactDebugCurrentFrame,R=I.getStackAddendum();R!==""&&(h+="%s",k=k.concat([R]));var z=k.map(function(L){return String(L)});z.unshift("Warning: "+h),Function.prototype.apply.call(console[d],console,z)}}var M=!1,j=!1,D=!1,T=!1,N=!1,A;A=Symbol.for("react.module.reference");function ee(d){return!!(typeof d=="string"||typeof d=="function"||d===i||d===o||N||d===r||d===_||d===u||T||d===x||M||j||D||typeof d=="object"&&d!==null&&(d.$$typeof===m||d.$$typeof===f||d.$$typeof===s||d.$$typeof===l||d.$$typeof===c||d.$$typeof===A||d.getModuleId!==void 0))}function ue(d,h,k){var I=d.displayName;if(I)return I;var R=h.displayName||h.name||"";return R!==""?k+"("+R+")":k}function K(d){return d.displayName||"Context"}function P(d){if(d==null)return null;if(typeof d.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case i:return"Fragment";case a:return"Portal";case o:return"Profiler";case r:return"StrictMode";case _:return"Suspense";case u:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case l:var h=d;return K(h)+".Consumer";case s:var k=d;return K(k._context)+".Provider";case c:return ue(d,d.render,"ForwardRef");case f:var I=d.displayName||null;return I!==null?I:P(d.type)||"Memo";case m:{var R=d,z=R._payload,L=R._init;try{return P(L(z))}catch{return null}}}return null}var Y=Object.assign,H=0,Qe,le,Ze,It,et,On,An;function Zn(){}Zn.__reactDisabledLog=!0;function Xo(){{if(H===0){Qe=console.log,le=console.info,Ze=console.warn,It=console.error,et=console.group,On=console.groupCollapsed,An=console.groupEnd;var d={configurable:!0,enumerable:!0,value:Zn,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}H++}}function Qo(){{if(H--,H===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},d,{value:Qe}),info:Y({},d,{value:le}),warn:Y({},d,{value:Ze}),error:Y({},d,{value:It}),group:Y({},d,{value:et}),groupCollapsed:Y({},d,{value:On}),groupEnd:Y({},d,{value:An})})}H<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Dt=y.ReactCurrentDispatcher,Mt;function tt(d,h,k){{if(Mt===void 0)try{throw Error()}catch(R){var I=R.stack.trim().match(/\n( *(at )?)/);Mt=I&&I[1]||""}return`
18
+ */var nn;function ii(){return nn||(nn=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),v=Symbol.iterator,b="@@iterator";function g(d){if(d===null||typeof d!="object")return null;var h=v&&d[v]||d[b];return typeof h=="function"?h:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(d){{for(var h=arguments.length,k=new Array(h>1?h-1:0),I=1;I<h;I++)k[I-1]=arguments[I];B("error",d,k)}}function B(d,h,k){{var I=y.ReactDebugCurrentFrame,R=I.getStackAddendum();R!==""&&(h+="%s",k=k.concat([R]));var z=k.map(function(L){return String(L)});z.unshift("Warning: "+h),Function.prototype.apply.call(console[d],console,z)}}var M=!1,j=!1,D=!1,T=!1,N=!1,A;A=Symbol.for("react.module.reference");function ee(d){return!!(typeof d=="string"||typeof d=="function"||d===i||d===o||N||d===r||d===_||d===u||T||d===x||M||j||D||typeof d=="object"&&d!==null&&(d.$$typeof===m||d.$$typeof===f||d.$$typeof===s||d.$$typeof===l||d.$$typeof===c||d.$$typeof===A||d.getModuleId!==void 0))}function ue(d,h,k){var I=d.displayName;if(I)return I;var R=h.displayName||h.name||"";return R!==""?k+"("+R+")":k}function K(d){return d.displayName||"Context"}function P(d){if(d==null)return null;if(typeof d.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;switch(d){case i:return"Fragment";case a:return"Portal";case o:return"Profiler";case r:return"StrictMode";case _:return"Suspense";case u:return"SuspenseList"}if(typeof d=="object")switch(d.$$typeof){case l:var h=d;return K(h)+".Consumer";case s:var k=d;return K(k._context)+".Provider";case c:return ue(d,d.render,"ForwardRef");case f:var I=d.displayName||null;return I!==null?I:P(d.type)||"Memo";case m:{var R=d,z=R._payload,L=R._init;try{return P(L(z))}catch{return null}}}return null}var Y=Object.assign,J=0,Qe,le,Ze,It,et,On,An;function Zn(){}Zn.__reactDisabledLog=!0;function Xo(){{if(J===0){Qe=console.log,le=console.info,Ze=console.warn,It=console.error,et=console.group,On=console.groupCollapsed,An=console.groupEnd;var d={configurable:!0,enumerable:!0,value:Zn,writable:!0};Object.defineProperties(console,{info:d,log:d,warn:d,error:d,group:d,groupCollapsed:d,groupEnd:d})}J++}}function Qo(){{if(J--,J===0){var d={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Y({},d,{value:Qe}),info:Y({},d,{value:le}),warn:Y({},d,{value:Ze}),error:Y({},d,{value:It}),group:Y({},d,{value:et}),groupCollapsed:Y({},d,{value:On}),groupEnd:Y({},d,{value:An})})}J<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Dt=y.ReactCurrentDispatcher,Mt;function tt(d,h,k){{if(Mt===void 0)try{throw Error()}catch(R){var I=R.stack.trim().match(/\n( *(at )?)/);Mt=I&&I[1]||""}return`
19
19
  `+Mt+d}}var Ft=!1,nt;{var es=typeof WeakMap=="function"?WeakMap:Map;nt=new es}function Gn(d,h){if(!d||Ft)return"";{var k=nt.get(d);if(k!==void 0)return k}var I;Ft=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var z;z=Dt.current,Dt.current=null,Xo();try{if(h){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(te){I=te}Reflect.construct(d,[],L)}else{try{L.call()}catch(te){I=te}d.call(L.prototype)}}else{try{throw Error()}catch(te){I=te}d()}}catch(te){if(te&&I&&typeof te.stack=="string"){for(var $=te.stack.split(`
20
- `),J=I.stack.split(`
21
- `),U=$.length-1,V=J.length-1;U>=1&&V>=0&&$[U]!==J[V];)V--;for(;U>=1&&V>=0;U--,V--)if($[U]!==J[V]){if(U!==1||V!==1)do if(U--,V--,V<0||$[U]!==J[V]){var re=`
22
- `+$[U].replace(" at new "," at ");return d.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",d.displayName)),typeof d=="function"&&nt.set(d,re),re}while(U>=1&&V>=0);break}}}finally{Ft=!1,Dt.current=z,Qo(),Error.prepareStackTrace=R}var De=d?d.displayName||d.name:"",Ce=De?tt(De):"";return typeof d=="function"&&nt.set(d,Ce),Ce}function ts(d,h,k){return Gn(d,!1)}function ns(d){var h=d.prototype;return!!(h&&h.isReactComponent)}function at(d,h,k){if(d==null)return"";if(typeof d=="function")return Gn(d,ns(d));if(typeof d=="string")return tt(d);switch(d){case _:return tt("Suspense");case u:return tt("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case c:return ts(d.render);case f:return at(d.type,h,k);case m:{var I=d,R=I._payload,z=I._init;try{return at(z(R),h,k)}catch{}}}return""}var Ge=Object.prototype.hasOwnProperty,Wn={},Kn=y.ReactDebugCurrentFrame;function it(d){if(d){var h=d._owner,k=at(d.type,d._source,h?h.type:null);Kn.setExtraStackFrame(k)}else Kn.setExtraStackFrame(null)}function as(d,h,k,I,R){{var z=Function.call.bind(Ge);for(var L in d)if(z(d,L)){var $=void 0;try{if(typeof d[L]!="function"){var J=Error((I||"React class")+": "+k+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw J.name="Invariant Violation",J}$=d[L](h,L,I,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){$=U}$&&!($ instanceof Error)&&(it(R),E("%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).",I||"React class",k,L,typeof $),it(null)),$ instanceof Error&&!($.message in Wn)&&(Wn[$.message]=!0,it(R),E("Failed %s type: %s",k,$.message),it(null))}}}var is=Array.isArray;function $t(d){return is(d)}function rs(d){{var h=typeof Symbol=="function"&&Symbol.toStringTag,k=h&&d[Symbol.toStringTag]||d.constructor.name||"Object";return k}}function os(d){try{return Un(d),!1}catch{return!0}}function Un(d){return""+d}function Vn(d){if(os(d))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rs(d)),Un(d)}var We=y.ReactCurrentOwner,ss={key:!0,ref:!0,__self:!0,__source:!0},qn,Yn,Bt;Bt={};function ls(d){if(Ge.call(d,"ref")){var h=Object.getOwnPropertyDescriptor(d,"ref").get;if(h&&h.isReactWarning)return!1}return d.ref!==void 0}function ds(d){if(Ge.call(d,"key")){var h=Object.getOwnPropertyDescriptor(d,"key").get;if(h&&h.isReactWarning)return!1}return d.key!==void 0}function cs(d,h){if(typeof d.ref=="string"&&We.current&&h&&We.current.stateNode!==h){var k=P(We.current.type);Bt[k]||(E('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',P(We.current.type),d.ref),Bt[k]=!0)}}function _s(d,h){{var k=function(){qn||(qn=!0,E("%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)",h))};k.isReactWarning=!0,Object.defineProperty(d,"key",{get:k,configurable:!0})}}function us(d,h){{var k=function(){Yn||(Yn=!0,E("%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)",h))};k.isReactWarning=!0,Object.defineProperty(d,"ref",{get:k,configurable:!0})}}var fs=function(d,h,k,I,R,z,L){var $={$$typeof:t,type:d,key:h,ref:k,props:L,_owner:z};return $._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty($,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$};function ms(d,h,k,I,R){{var z,L={},$=null,J=null;k!==void 0&&(Vn(k),$=""+k),ds(h)&&(Vn(h.key),$=""+h.key),ls(h)&&(J=h.ref,cs(h,R));for(z in h)Ge.call(h,z)&&!ss.hasOwnProperty(z)&&(L[z]=h[z]);if(d&&d.defaultProps){var U=d.defaultProps;for(z in U)L[z]===void 0&&(L[z]=U[z])}if($||J){var V=typeof d=="function"?d.displayName||d.name||"Unknown":d;$&&_s(L,V),J&&us(L,V)}return fs(d,$,J,R,I,We.current,L)}}var Lt=y.ReactCurrentOwner,Hn=y.ReactDebugCurrentFrame;function Ie(d){if(d){var h=d._owner,k=at(d.type,d._source,h?h.type:null);Hn.setExtraStackFrame(k)}else Hn.setExtraStackFrame(null)}var Pt;Pt=!1;function Rt(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function Jn(){{if(Lt.current){var d=P(Lt.current.type);if(d)return`
20
+ `),X=I.stack.split(`
21
+ `),U=$.length-1,V=X.length-1;U>=1&&V>=0&&$[U]!==X[V];)V--;for(;U>=1&&V>=0;U--,V--)if($[U]!==X[V]){if(U!==1||V!==1)do if(U--,V--,V<0||$[U]!==X[V]){var re=`
22
+ `+$[U].replace(" at new "," at ");return d.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",d.displayName)),typeof d=="function"&&nt.set(d,re),re}while(U>=1&&V>=0);break}}}finally{Ft=!1,Dt.current=z,Qo(),Error.prepareStackTrace=R}var De=d?d.displayName||d.name:"",Ce=De?tt(De):"";return typeof d=="function"&&nt.set(d,Ce),Ce}function ts(d,h,k){return Gn(d,!1)}function ns(d){var h=d.prototype;return!!(h&&h.isReactComponent)}function at(d,h,k){if(d==null)return"";if(typeof d=="function")return Gn(d,ns(d));if(typeof d=="string")return tt(d);switch(d){case _:return tt("Suspense");case u:return tt("SuspenseList")}if(typeof d=="object")switch(d.$$typeof){case c:return ts(d.render);case f:return at(d.type,h,k);case m:{var I=d,R=I._payload,z=I._init;try{return at(z(R),h,k)}catch{}}}return""}var Ge=Object.prototype.hasOwnProperty,Wn={},Kn=y.ReactDebugCurrentFrame;function it(d){if(d){var h=d._owner,k=at(d.type,d._source,h?h.type:null);Kn.setExtraStackFrame(k)}else Kn.setExtraStackFrame(null)}function as(d,h,k,I,R){{var z=Function.call.bind(Ge);for(var L in d)if(z(d,L)){var $=void 0;try{if(typeof d[L]!="function"){var X=Error((I||"React class")+": "+k+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof d[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw X.name="Invariant Violation",X}$=d[L](h,L,I,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){$=U}$&&!($ instanceof Error)&&(it(R),E("%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).",I||"React class",k,L,typeof $),it(null)),$ instanceof Error&&!($.message in Wn)&&(Wn[$.message]=!0,it(R),E("Failed %s type: %s",k,$.message),it(null))}}}var is=Array.isArray;function $t(d){return is(d)}function rs(d){{var h=typeof Symbol=="function"&&Symbol.toStringTag,k=h&&d[Symbol.toStringTag]||d.constructor.name||"Object";return k}}function os(d){try{return Un(d),!1}catch{return!0}}function Un(d){return""+d}function Vn(d){if(os(d))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rs(d)),Un(d)}var We=y.ReactCurrentOwner,ss={key:!0,ref:!0,__self:!0,__source:!0},qn,Yn,Bt;Bt={};function ls(d){if(Ge.call(d,"ref")){var h=Object.getOwnPropertyDescriptor(d,"ref").get;if(h&&h.isReactWarning)return!1}return d.ref!==void 0}function ds(d){if(Ge.call(d,"key")){var h=Object.getOwnPropertyDescriptor(d,"key").get;if(h&&h.isReactWarning)return!1}return d.key!==void 0}function cs(d,h){if(typeof d.ref=="string"&&We.current&&h&&We.current.stateNode!==h){var k=P(We.current.type);Bt[k]||(E('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',P(We.current.type),d.ref),Bt[k]=!0)}}function _s(d,h){{var k=function(){qn||(qn=!0,E("%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)",h))};k.isReactWarning=!0,Object.defineProperty(d,"key",{get:k,configurable:!0})}}function us(d,h){{var k=function(){Yn||(Yn=!0,E("%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)",h))};k.isReactWarning=!0,Object.defineProperty(d,"ref",{get:k,configurable:!0})}}var fs=function(d,h,k,I,R,z,L){var $={$$typeof:t,type:d,key:h,ref:k,props:L,_owner:z};return $._store={},Object.defineProperty($._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty($,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty($,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze($.props),Object.freeze($)),$};function ms(d,h,k,I,R){{var z,L={},$=null,X=null;k!==void 0&&(Vn(k),$=""+k),ds(h)&&(Vn(h.key),$=""+h.key),ls(h)&&(X=h.ref,cs(h,R));for(z in h)Ge.call(h,z)&&!ss.hasOwnProperty(z)&&(L[z]=h[z]);if(d&&d.defaultProps){var U=d.defaultProps;for(z in U)L[z]===void 0&&(L[z]=U[z])}if($||X){var V=typeof d=="function"?d.displayName||d.name||"Unknown":d;$&&_s(L,V),X&&us(L,V)}return fs(d,$,X,R,I,We.current,L)}}var Lt=y.ReactCurrentOwner,Hn=y.ReactDebugCurrentFrame;function Ie(d){if(d){var h=d._owner,k=at(d.type,d._source,h?h.type:null);Hn.setExtraStackFrame(k)}else Hn.setExtraStackFrame(null)}var Pt;Pt=!1;function Rt(d){return typeof d=="object"&&d!==null&&d.$$typeof===t}function Jn(){{if(Lt.current){var d=P(Lt.current.type);if(d)return`
23
23
 
24
24
  Check the render method of \``+d+"`."}return""}}function ps(d){return""}var Xn={};function xs(d){{var h=Jn();if(!h){var k=typeof d=="string"?d:d.displayName||d.name;k&&(h=`
25
25
 
26
- Check the top-level render call using <`+k+">.")}return h}}function Qn(d,h){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var k=xs(h);if(Xn[k])return;Xn[k]=!0;var I="";d&&d._owner&&d._owner!==Lt.current&&(I=" It was passed a child from "+P(d._owner.type)+"."),Ie(d),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,I),Ie(null)}}function ea(d,h){{if(typeof d!="object")return;if($t(d))for(var k=0;k<d.length;k++){var I=d[k];Rt(I)&&Qn(I,h)}else if(Rt(d))d._store&&(d._store.validated=!0);else if(d){var R=g(d);if(typeof R=="function"&&R!==d.entries)for(var z=R.call(d),L;!(L=z.next()).done;)Rt(L.value)&&Qn(L.value,h)}}}function hs(d){{var h=d.type;if(h==null||typeof h=="string")return;var k;if(typeof h=="function")k=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===c||h.$$typeof===f))k=h.propTypes;else return;if(k){var I=P(h);as(k,d.props,"prop",I,d)}else if(h.PropTypes!==void 0&&!Pt){Pt=!0;var R=P(h);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gs(d){{for(var h=Object.keys(d.props),k=0;k<h.length;k++){var I=h[k];if(I!=="children"&&I!=="key"){Ie(d),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),Ie(null);break}}d.ref!==null&&(Ie(d),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ie(null))}}var ta={};function na(d,h,k,I,R,z){{var L=ee(d);if(!L){var $="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&($+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var J=ps();J?$+=J:$+=Jn();var U;d===null?U="null":$t(d)?U="array":d!==void 0&&d.$$typeof===t?(U="<"+(P(d.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):U=typeof d,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,$)}var V=ms(d,h,k,R,z);if(V==null)return V;if(L){var re=h.children;if(re!==void 0)if(I)if($t(re)){for(var De=0;De<re.length;De++)ea(re[De],d);Object.freeze&&Object.freeze(re)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ea(re,d)}if(Ge.call(h,"key")){var Ce=P(d),te=Object.keys(h).filter(function(Cs){return Cs!=="key"}),zt=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!ta[Ce+zt]){var ws=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+k+">.")}return h}}function Qn(d,h){{if(!d._store||d._store.validated||d.key!=null)return;d._store.validated=!0;var k=xs(h);if(Xn[k])return;Xn[k]=!0;var I="";d&&d._owner&&d._owner!==Lt.current&&(I=" It was passed a child from "+P(d._owner.type)+"."),Ie(d),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,I),Ie(null)}}function ea(d,h){{if(typeof d!="object")return;if($t(d))for(var k=0;k<d.length;k++){var I=d[k];Rt(I)&&Qn(I,h)}else if(Rt(d))d._store&&(d._store.validated=!0);else if(d){var R=g(d);if(typeof R=="function"&&R!==d.entries)for(var z=R.call(d),L;!(L=z.next()).done;)Rt(L.value)&&Qn(L.value,h)}}}function hs(d){{var h=d.type;if(h==null||typeof h=="string")return;var k;if(typeof h=="function")k=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===c||h.$$typeof===f))k=h.propTypes;else return;if(k){var I=P(h);as(k,d.props,"prop",I,d)}else if(h.PropTypes!==void 0&&!Pt){Pt=!0;var R=P(h);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function gs(d){{for(var h=Object.keys(d.props),k=0;k<h.length;k++){var I=h[k];if(I!=="children"&&I!=="key"){Ie(d),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),Ie(null);break}}d.ref!==null&&(Ie(d),E("Invalid attribute `ref` supplied to `React.Fragment`."),Ie(null))}}var ta={};function na(d,h,k,I,R,z){{var L=ee(d);if(!L){var $="";(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).length===0)&&($+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var X=ps();X?$+=X:$+=Jn();var U;d===null?U="null":$t(d)?U="array":d!==void 0&&d.$$typeof===t?(U="<"+(P(d.type)||"Unknown")+" />",$=" Did you accidentally export a JSX literal instead of a component?"):U=typeof d,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,$)}var V=ms(d,h,k,R,z);if(V==null)return V;if(L){var re=h.children;if(re!==void 0)if(I)if($t(re)){for(var De=0;De<re.length;De++)ea(re[De],d);Object.freeze&&Object.freeze(re)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ea(re,d)}if(Ge.call(h,"key")){var Ce=P(d),te=Object.keys(h).filter(function(Cs){return Cs!=="key"}),zt=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!ta[Ce+zt]){var ws=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
27
27
  let props = %s;
28
28
  <%s {...props} />
29
29
  React keys must be passed directly to JSX without using spread:
30
30
  let props = %s;
31
- <%s key={someKey} {...props} />`,zt,Ce,ws,Ce),ta[Ce+zt]=!0}}return d===i?gs(V):hs(V),V}}function vs(d,h,k){return na(d,h,k,!0)}function bs(d,h,k){return na(d,h,k,!1)}var ks=bs,ys=vs;$e.Fragment=i,$e.jsx=ks,$e.jsxs=ys}()),$e}process.env.NODE_ENV==="production"?ct.exports=ai():ct.exports=ii();var n=ct.exports;const ri={notice:"_notice_9i5tr_2",error:"_error_9i5tr_9",success:"_success_9i5tr_12",remark:"_remark_9i5tr_15",copy:"_copy_9i5tr_18","show-notice":"_show-notice_9i5tr_1","hide-notice":"_hide-notice_9i5tr_1"};let xe={};function oi(){let[e,t]=p.useState([]);return xe.set=a=>{t([...e,a])},xe.del=a=>{t(e.filter(i=>i.key!==a))},e.length===0?"":n.jsx("ul",{className:ri.notice,children:e.map(a=>a.item)})}function Be({data:e}){let[t,a]=p.useState("show");p.useEffect(()=>{setTimeout(function(){a("hide")},1800),setTimeout(function(){xe.del(e.key)},2500)},[e.key]);let i,r;switch(e.type){case"error":i=n.jsx(ke.error,{}),r="Ошибка:";break;case"success":i=n.jsx(ke.success,{}),r="Информация:";break;case"copy":i=n.jsx(ke.success,{}),r="Копирование:";break;case"remark":i=n.jsx(ke.success,{}),r="Подсказка:";break;default:i=n.jsx(ke.success,{}),r="Предупреждение:";break}return n.jsxs("li",{className:"item "+e.type,"data-status":t,children:[i,n.jsx("b",{children:r}),n.jsx("p",{children:e.text})]})}function si(e){let t=Date.now(),a={key:t,...e};xe.set({item:n.jsx(Be,{data:a},t),key:t})}function li(e){let t=Date.now(),a={key:t,text:e,type:"error"};xe.set({item:n.jsx(Be,{data:a},t),key:t})}function di(e){let t=Date.now(),a={key:t,text:e,type:"success"};xe.set({item:n.jsx(Be,{data:a},t),key:t})}function ci(e){let t=Date.now(),a={key:t,text:e,type:"remark"};xe.set({item:n.jsx(Be,{data:a},t),key:t})}function _i(e){let t=Date.now(),a={key:t,text:e,type:"copy"};xe.set({item:n.jsx(Be,{data:a},t),key:t})}const ke={};ke.error=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{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",fill:"#bb2014"}),n.jsx("path",{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",fill:"#fff"})]}),ke.success=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{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",fill:"#367738"}),n.jsx("path",{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",fill:"#fff"})]});const _t={alerts:"_alerts_1pds5_1",menuAnimation:"_menuAnimation_1pds5_1",menuItemAnimation:"_menuItemAnimation_1pds5_1","--body":"_--body_1pds5_103",allert:"_allert_1pds5_111","--form":"_--form_1pds5_111",al:"_al_1pds5_1"};let Le={};function ui(){let[e,t]=p.useState("");return Le.set=a=>t(a),Le.del=()=>t(""),n.jsx(n.Fragment,{children:e})}const fi=({data:e,callback:t})=>(e.button=e.button===void 0?"Подтвердить":e.button,n.jsxs("div",{className:_t.alerts,children:[n.jsxs("dl",{children:[n.jsx("dt",{children:e.title}),n.jsx("dd",{children:e.text}),n.jsx("ul",{children:n.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),Le.del()},children:e.button})})]}),n.jsx("div",{className:_t["--body"],onClick:Le.del})]}));function mi(e,t){Le.set(n.jsx(fi,{data:e,callback:t}))}const Se={Send:si,Error:li,Remark:ci,Success:di,Copy:_i},Pe={Path:Sa,setPage:fa,getPage:Zt,usePage:ua,isPage:ma,setModule:xa,getModule:Gt,useModule:pa,isModule:ha,setTabs:va,getTabs:Ke,useTabs:ga,isTabs:ba,useId:ka,setId:wa,subId:ya,getId:Ca,isId:ja};function pi(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M5.15837 11.491C5.08489 12.887 5.16936 14.373 3.92213 15.3084C3.34164 15.7438 3 16.427 3 17.1527C3 18.1508 3.7818 19 4.8 19H19.2C20.2182 19 21 18.1508 21 17.1527C21 16.427 20.6584 15.7438 20.0779 15.3084C18.8306 14.373 18.9151 12.887 18.8416 11.491C18.6501 7.85223 15.6438 5 12 5C8.35617 5 5.34988 7.85222 5.15837 11.491Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),n.jsx("path",{d:"M10.5 3.125C10.5 3.95343 11.1716 5 12 5C12.8284 5 13.5 3.95343 13.5 3.125C13.5 2.29657 12.8284 2 12 2C11.1716 2 10.5 2.29657 10.5 3.125Z",stroke:"currentColor",strokeWidth:"1",fill:"none"}),n.jsx("path",{d:"M15 19C15 20.6569 13.6569 22 12 22C10.3431 22 9 20.6569 9 19",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}function xi(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M4.4094 11.4516C4.62188 7.41446 7.95728 4.25 12 4.25C16.0427 4.25 19.3781 7.41446 19.5906 11.4516C19.5997 11.6241 19.6064 11.7893 19.6129 11.9485C19.6351 12.49 19.6544 12.9615 19.7525 13.4133C19.8698 13.9531 20.0867 14.3775 20.5279 14.7084C21.2972 15.2854 21.75 16.191 21.75 17.1527C21.75 18.534 20.6628 19.75 19.2 19.75H4.8C3.33719 19.75 2.25 18.534 2.25 17.1527C2.25 16.191 2.70278 15.2854 3.47213 14.7084C3.91329 14.3775 4.13025 13.9531 4.24749 13.4133C4.34561 12.9615 4.3649 12.49 4.38705 11.9485V11.9485L4.38705 11.9485C4.39356 11.7893 4.40032 11.6241 4.4094 11.4516Z",fill:"#141B34"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5286 1.37434C10.9737 1.08296 11.517 1 12 1C12.483 1 13.0263 1.08296 13.4714 1.37434C13.9652 1.69759 14.25 2.22083 14.25 2.875C14.25 3.47116 14.017 4.09375 13.6626 4.57057C13.3138 5.03989 12.7415 5.5 12 5.5C11.2585 5.5 10.6862 5.03989 10.3374 4.57057C9.98299 4.09375 9.75 3.47116 9.75 2.875C9.75 2.22083 10.0348 1.69759 10.5286 1.37434Z",fill:"#141B34"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9.55228 18 10 18.4477 10 19C10 20.1046 10.8954 21 12 21C13.1046 21 14 20.1046 14 19C14 18.4477 14.4477 18 15 18C15.5523 18 16 18.4477 16 19C16 21.2091 14.2091 23 12 23C9.79086 23 8 21.2091 8 19C8 18.4477 8.44772 18 9 18Z",fill:"#141B34"})]})}function hi(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:n.jsx("path",{d:"M8.85746 12.5061C6.36901 10.6456 4.59564 8.59915 3.62734 7.44867C3.3276 7.09253 3.22938 6.8319 3.17033 6.3728C2.96811 4.8008 2.86701 4.0148 3.32795 3.5074C3.7889 3 4.60404 3 6.23433 3H17.7657C19.396 3 20.2111 3 20.672 3.5074C21.133 4.0148 21.0319 4.8008 20.8297 6.37281C20.7706 6.83191 20.6724 7.09254 20.3726 7.44867C19.403 8.60062 17.6261 10.6507 15.1326 12.5135C14.907 12.6821 14.7583 12.9567 14.7307 13.2614C14.4837 15.992 14.2559 17.4876 14.1141 18.2442C13.8853 19.4657 12.1532 20.2006 11.226 20.8563C10.6741 21.2466 10.0043 20.782 9.93278 20.1778C9.79643 19.0261 9.53961 16.6864 9.25927 13.2614C9.23409 12.9539 9.08486 12.6761 8.85746 12.5061Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}const gi={n:"_n_euuvm_1"};let Re={},ze=[];const vi=(e,t)=>{switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"add":return{...e,news:[...e.news,t.data],active:!0};case"news":return{...e,news:t.data,active:t.data.length!==0};case"hide":let a=e.news.filter(r=>r.id!==t.id);return{...e,news:a,active:a.length!==0};case"size":return{...e,size:t.size};case"take":let i={[t.list]:t.take};i={...e.take,...i},e.active=!1;for(let r in i)i[r]!=="999"&&(e.active=!0);return Re.get(i,e.active),{...e,take:i,active:e.active};case"exit":return e;default:throw new Error}};function bi(e){Re.fn({action:"add",data:e})}function ki(e){Re.fn({action:"add",data:e})}function yi(e){Re.fn({action:"new",data:e})}function wi(e){Re.fn=e}function Ci(){const[e,t]=p.useReducer(vi,{open:!1,active:!1,news:[],take:{}});ce.useListener("bell",async i=>{}),wi(async i=>{switch(i.action){case"add":ze.push(i.data);break}}),p.useEffect(()=>{(async()=>{let i=await ce.Send({type:"module",module:"M00",query:"x0054",array:["M01","M02"]});for(let r in i)switch(r){case"news":t({type:"news",data:i.news});break;case"M01":i[r].forEach(o=>{ze.push({module:"M01",type:1,id:o.id,datetime:new Date(o.tDate).getTime(),txt:o.p01})});break;case"M02":i[r].forEach(o=>{ze.push({module:"M02",type:117,id:o.id,datetime:new Date(o.tDate).getTime(),txt:o.p01})});break}})(),setInterval(()=>{ze.forEach((i,r)=>{t({type:"add",data:{module:i.module,type:i.type,id:i.id,datetime:i.datetime,txt:i.title}}),i.datetime<new Date().getTime()&&ze.splice(r,1)})},6e4)},[]);let a=async i=>{t({type:"hide",id:i.id})};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:gi.n,onClick:()=>{t({type:"open",open:!0})},children:e.active?n.jsx(xi,{}):n.jsx(pi,{})}),e.open?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"notify-o",onClick:()=>{t({type:"open",open:!1})}}),n.jsxs("div",{className:"notify-m",children:[n.jsx("div",{className:"notify-l",children:e.news.map((i,r)=>n.jsx(ji,{data:i,dispatch:t},r))}),n.jsx("div",{className:"notify-b",onClick:a,children:"История"})]})]}):""]})}const ji=({data:e,dispatch:t})=>{let a=async i=>{t({type:"hide",id:i.id}),await ce.Send({type:"module",module:"M00",query:"x0055",data:{id:i.id,type:i.type,db:i.db}})};return n.jsxs("div",{className:"notify-i",children:[n.jsx("div",{className:"--icon","data-icon":e.type}),n.jsxs("div",{className:"--body",children:[n.jsx("div",{className:"--name",children:e.type}),n.jsx("div",{className:"--text",children:e.txt})]}),n.jsx("div",{className:"--hide","data-icon":"F038",onClick:()=>a(e),children:" "})]})},Si="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function Ei(e){return new SharedWorker("data:text/javascript;base64,"+Si,{name:e==null?void 0:e.name})}function Ni(e){let t={},a={};e.data.forEach(r=>{t[r.id]={s:r.v,n:r.a},a[r.id]=r});let i={...be(),901:t};Ut(a),Me(i)}function Ti(){let e=Vt(),t={};return Object.keys(e).forEach(a=>{t[e[a].id]={},t[e[a].id].name=e[a].a}),t}let oe={},q={},qe=["filter","online","users","company","select","setting","info","job"];function Ii(){const[e,t]=p.useState(!1),[a,i]=p.useState(!1);function r(o){const s=new Ei;oe.laodData=l=>{let c=qe.indexOf(l);c>=0&&qe.splice(c,1),qe.length===0&&t(!0)},oe.send=l=>{s.port.postMessage({type:"send",json:l})},s.port.onmessage=l=>{let c=l.data;c.type==="error"&&i(!0),c.type==="true"&&t(!0),c.type==="closed"&&s.port.postMessage({type:"connect",ukey:o,lk:st()}),qe.length!==0&&oe.laodData(c.type),q[c.type]&&q[c.type](c)},s.port.postMessage({type:"connect",ukey:o,lk:st()})}return[r,e,a]}q.module=e=>{oe[e.listen]!==void 0&&(oe[e.listen](e),delete oe[e.listen])},q.bell=yi,q.company=Ni,q.info=e=>{let t={};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"),qt(t),Wt(e.data.menu)},q.version=async e=>{Ue.version.Server(e.data)},q.online=async e=>{},q.offline=async e=>{},q.chat=e=>{switch(e.data.action){case"new_message":Pe.getModule();break;case"view_message":Pe.getModule();break;case"write_message":Pe.getModule();break}},q.users=e=>{let t={};e.data.forEach(i=>{let r=i.p01+" "+i.p02+" "+i.p03,o=i.p01+" "+i.p02.substring(0,1)+"."+i.p03.substring(0,1)+".",s=i.p01.substring(0,1)+""+i.p02.substring(0,1)+i.p03.substring(0,1);t[i.id]={id:i.id,admin:i.m.includes("99"),ava:JSON.parse(i.a),job:i.j,login:"",online:{time:i.o,status:0},sts:i.s,nameFull:r,name:o,number:s}});let a={...be(),user:t};Me(a)},q.api=e=>{let t={};e.data.forEach(a=>{t[a.api]={key:a.key,p01:a.p01,p02:a.p02}})},q.delete=()=>{ne()},q.select=e=>{let t={...be()};e.data.forEach(a=>{t[a.n]=JSON.parse(a.s)}),Me(t)},q.job=e=>{let t={...be()},a={};Object.keys(e.data).forEach(i=>{a[i]={s:1,n:e.data[i]}}),t[1]=a,Me(t)},q.setting=e=>{Ea(e.data)},q.app=()=>{};const Di=(e,t)=>{oe[e]=t},Mi=(e,t)=>{oe[e](t)};function Fi(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(a=>{oe[t]=i=>{i.error!==void 0?a({error:i.error}):a(i.data),delete oe[t]},e={...e,listen:t},e.type="modules",oe.send(e)})}const ce={useConnect:Ii,useListener:Di,setListener:Mi,Send:Fi};function $i(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let a={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:"      ",_:"    "};for(const i in a)t=t.replace(i,a[i]);return t}function Bi(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],a=new Date(e);return{day:(""+a.getFullYear()).slice(-2)+""+("0"+(a.getMonth()+1)).slice(-2)+("0"+a.getDate()).slice(-2),name:a.getDate()+" "+t[a.getMonth()]}}const Li=e=>{function t(B,M){var j,T,D;B=B??"",M=M??1;for(var j=[],D=0,T=B.length;D<T;)j.push(B.slice(D,D+=M));return j}function a(B,M){var j=[2,0,1,1,1,2];return M[B>4&&B<20?2:j[Math.min(B,5)]]}var i={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},r,o,s,l,g,c,_,b,u,f,m,x;u=parseFloat(e).toFixed(2).split("."),c=u[0],l=u[1];var v=12-c.length;if(v<0)return!1;for(var b=[];v--;)b.push("0");c=b.join("")+c;var g=[];if(c>0){f=t(c,3);for(var y=-1;y<f.length;y++)if(_=f[y],_>0&&(m=t(_,1),r=parseInt(m[0]),o=parseInt(m[1]),s=parseInt(m[2]),g.push(i.a100[r-1]),x=y+1==3?"a2":"a1",o>1?g.push(i.a20[o-2]+(s>0?" "+i[x][s-1]:"")):g.push(o>0?i.a10[s]:i[x][s-1]),f.length>y+1)){var E=i["u"+(y+1)];g.push(a(_,E))}}else g.push(i.null);return g.push(a(c,i.ur)),g.push(l+" "+a(l,i.uc)),g.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function Pi(e){let t=-1,a=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do e=e/1024,t++;while(e>1024);return Math.max(e,.1).toFixed(1)+a[t]}function Ri(e){let t={};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]}function zi(e,t,a,i){let r={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var s in this.rules)for(var l in this.rules[s])for(var c=0,_=this.rules[s][l].length;c<_;c++)this.rules[s][l][c]=this.rule(this.rules[s][l][c])},rule:function(s){var l=s.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return l?{sex:l[1],test:l[2].split(","),mods:[l[3],l[4],l[5],l[6],l[7]]}:!1},word:function(s,l,c,_){if(_===this.gcaseNom)return s;if(s.match(/[-]/)){for(var u=s.split("-"),f=0,m=u.length;f<m;f++)u[f]=this.word(u[f],l,c,_);return u.join("-")}if(s.match(/^[А-ЯЁ]\.?$/i))return s;this.init();var x=this.rules[c];let v;return x.exceptions&&(v=this.pick(s,l,_,x.exceptions,!0),v)?v:(v=this.pick(s,l,_,x.suffixes,!1),v||s)},pick:function(s,l,c,_,u){let f=s.toLowerCase();for(var m=0,x=_.length;m<x;m++)if(this.ruleMatch(f,l,_[m],u))return this.applyMod(s,c,_[m]);return!1},ruleMatch:function(s,l,c,_){if(c.sex===this.sexM&&l===this.sexF||c.sex===this.sexF&&l!==this.sexF)return!1;for(var u=0,f=c.test.length;u<f;u++){var m=_?s:s.substr(Math.max(s.length-c.test[u].length,0));if(m===c.test[u])return!0}return!1},applyMod:function(s,l,c){let _;switch(l){case this.gcaseNom:_=".";break;case this.gcaseGen:_=c.mods[0];break;case this.gcaseDat:_=c.mods[1];break;case this.gcaseAcc:_=c.mods[2];break;case this.gcaseIns:_=c.mods[3];break;case this.gcasePos:_=c.mods[4];break}for(var u=0,f=_.length;u<f;u++){var m=_.substr(u,1);switch(m){case".":break;case"-":s=s.substr(0,s.length-1);break;default:s+=m}}return s},getSex:()=>{if(r.mn.length>2)switch(r.mn.substr(r.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:s=>((r.fullNameSurnameLast?"":r.lastName(s)+" ")+r.firstName(s)+" "+r.middleName(s)+(r.fullNameSurnameLast?" "+r.lastName(s):"")).replace(/^ +| +$/g,""),lastName:s=>r.word(r.ln,r.sex,"lastName",s),firstName:s=>r.word(r.fn,r.sex,"firstName",s),middleName:s=>r.word(r.mn,r.sex,"middleName",s)};if(typeof t>"u"){var o=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!o)return"Cannot parse supplied name";o[5]&&o[3].match(/(ич|на)$/)&&!o[5].match(/(ич|на)$/)?(e=o[5],t=o[1],a=o[3],r.fullNameSurnameLast=!0):(e=o[1],t=o[3],a=o[5])}return r.ln=e,r.fn=t||"",r.mn=a||"",r.sex=i||r.getSex(),r}function Oi(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function Ai(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function Zi(e){return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function Gi(e,t){let a=t+"";for(;a.length<e;)a="0"+a;return a}function Wi(e,t,a){let i=t/e*a;return(typeof i!="number"||i===1/0)&&(i=0),parseFloat(i).toFixed(1)}function Ki(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ui(e,t){e=Math.abs(e)%100;let a=e%10;return e>10&&e<20?t[2]:a>1&&a<5?t[1]:a===1?t[0]:t[2]}function Vi(e,t,a){return be(e,t)?be(e,t).n:a||""}function qi(e,t){return e.reduce(function(a,i){let r=t instanceof Function?t(i):i[t];return a[r]!==void 0||(a[r]={}),a[r][i.id]=i,a},{})}function Yi(e){return parseInt((Date.now()-new Date(e).getTime())/31536e6+"")+""}const Z={Age:Yi,Date:$i,MoneyString:Li,DateSort:Bi,Size:Pi,TypeFiles:Ri,Cases:zi,Initials:Oi,Month:Ai,Money:Zi,Number:Gi,Percent:Wi,CapitalizeFirstLetter:Ki,DeclensionWord:Ui,Select:Vi,ObjectByArray:qi};function Hi({children:e}){return n.jsx("div",{className:"l",children:n.jsx("ul",{children:e})})}const se={white:"_white_11p39_14",black:"_black_11p39_26",shake:"_shake_11p39_1",modal:"_modal_11p39_73",o:"_o_11p39_83",w:"_w_11p39_14",h:"_h_11p39_107",l:"_l_11p39_121",t:"_t_11p39_159",m:"_m_11p39_73",x:"_x_11p39_167",s:"_s_11p39_177",c:"_c_11p39_182",f:"_f_11p39_187",btn:"_btn_11p39_230",g:"_g_11p39_243","size-a":"_size-a_11p39_296","size-s":"_size-s_11p39_300","size-m":"_size-m_11p39_304","size-l":"_size-l_11p39_308","size-x":"_size-x_11p39_312","size-f":"_size-f_11p39_316",confirm:"_confirm_11p39_322",cancel:"_cancel_11p39_327",disabled:"_disabled_11p39_332",await:"_await_11p39_339",active:"_active_11p39_389",coincidence:"_coincidence_11p39_395",sa:"_sa_11p39_431",ss:"_ss_11p39_435",sm:"_sm_11p39_439",sl:"_sl_11p39_443",sx:"_sx_11p39_447",sf:"_sf_11p39_451"};function Ji({children:e}){return n.jsx("div",{className:se.s,children:e})}function Xi({children:e,className:t}){let a={};return t&&(a.className=t),n.jsx("div",{"data-form":"outline",...a,children:n.jsx("ul",{children:e})})}function Qi({children:e}){return n.jsx("div",{className:se.c,children:e})}const an={btn:"_btn_1hz2s_6",confirm:"_confirm_1hz2s_19"};function rn({onClick:e,onSend:t,label:a,onRef:i}){let[r,o]=p.useState(!1);const s=()=>{if(e)return e();r||(o(!0),t&&t(o))};return n.jsx("button",{ref:i,className:[an.btn,an.confirm].join(" "),onClick:s,children:r?"Ожидайте":a})}let ye={};function er({config:e}){let[t,a]=p.useState([]);return ye.x=i=>{i||a([])},ye.config=e,ye.add=i=>{a([...t,i])},n.jsx(n.Fragment,{children:t.map(i=>i)})}function tr({title:e,children:t,button:a,tabs:i,size:r="m",menu:o}){const[s,l]=p.useState(!0),c=p.useRef(),_=f=>{if(a){if(a.onClick)return f(!1),a.onClick({setOpen:l});if(a.onSend)return a.onSend({setOpen:l,disabled:f})}},u=()=>{c.current.setAttribute("shake",!0),setTimeout(()=>{c.current.setAttribute("shake",!1)},1e3)};return n.jsx(n.Fragment,{children:s?n.jsxs("div",{className:`${se.modal} ${se.white}`,children:[n.jsx("div",{className:se.o,onClick:u}),n.jsxs("div",{className:[se.w,se[`s${r}`]].join(" "),ref:c,children:[n.jsxs("div",{className:se.h,children:[n.jsx("div",{className:se.t,children:e}),n.jsxs("div",{className:se.m,children:[i&&n.jsx("nav",{children:i.map((f,m)=>n.jsx("span",{onClick:f.onClick,className:f.active?"active":"",children:f.name},m))}),o]}),n.jsx("div",{className:se.x,onClick:()=>{l(!1)},children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:n.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t,a!==void 0?n.jsx(rn,{label:a.label,onSend:_}):""]})]}):""})}function nr(e){ye.add(n.jsx(ar,{children:e},String(Date.now())))}function ar({children:e}){return n.jsx(n.Fragment,{children:e})}function ir(e){if(e.target.classList[0]!=="modal")return;let t=e.target.children[0];t.setAttribute("shake",!0),setTimeout(()=>{t.setAttribute("shake",!1)},1e3)}function rr({type:e,name:t,params:a}){let[i,r]=p.useState(null);return p.useEffect(()=>{ye.config(e,t,a,r)},[a.id]),n.jsx(n.Fragment,{children:i})}function or(e,t,a){ye.config(e,t,a)}function sr(e){ye.x(e)}const Ye={List:Hi,Scroll:Ji,Main:tr,Add:nr,Icon:rr,Open:or,Shake:ir,Form:Xi,Center:Qi,Close:sr};function on({text:e,type:t,button:a}){let[i,r]=p.useState(!1),o={active:t};const s=()=>{if(a){if(a.onClick)return a.onClick({});if(a.onSend)return i?void 0:(r(!0),a.onSend(r))}};return n.jsxs("div",{className:_t.al,...o,children:[n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",fillRule:"evenodd",clipRule:"evenodd",children:n.jsx("path",{fill:"#fff",d:"M10.362 2.015C11.4264 1.66167 12.5736 1.66167 13.638 2.015C14.6981 2.36687 15.5304 3.20141 16.3665 4.37395C17.1999 5.5426 18.1208 7.17206 19.3078 9.2725L19.3544 9.35496C20.5417 11.4557 21.4625 13.0851 22.0364 14.4065C22.613 15.7343 22.9002 16.8807 22.6711 17.9821C22.4403 19.0911 21.8714 20.0995 21.0428 20.8617C20.2162 21.622 19.0907 21.9428 17.6736 22.0968C16.2645 22.25 14.4212 22.25 12.0488 22.25H11.9513C9.57882 22.25 7.73554 22.25 6.32642 22.0968C4.90927 21.9428 3.78379 21.622 2.95722 20.8617C2.12862 20.0995 1.55968 19.0911 1.32895 17.9821C1.0998 16.8807 1.387 15.7343 1.96365 14.4065C2.53752 13.0851 3.45835 11.4557 4.64558 9.35495L4.69218 9.2725L4.69218 9.27249C5.87921 7.17206 6.80008 5.5426 7.63347 4.37395C8.46963 3.20141 9.30194 2.36687 10.362 2.015ZM11 17C11 16.4477 11.4457 16 11.9955 16H12.0045C12.5543 16 13 16.4477 13 17C13 17.5523 12.5543 18 12.0045 18H11.9955C11.4457 18 11 17.5523 11 17ZM11 13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V9C13 8.44772 12.5523 8 12 8C11.4477 8 11 8.44772 11 9V13Z"})}),n.jsx("span",{children:e}),a&&n.jsx("button",{onClick:s,children:a.label})]})}const Q={h:"_h_1usnu_1",g:"_g_1usnu_11",hr:"_hr_1usnu_16",hl:"_hl_1usnu_28",t:"_t_1usnu_40",s:"_s_1usnu_60",u:"_u_1usnu_69",o:"_o_1usnu_76",l:"_l_1usnu_105",hh:"_hh_1usnu_115",c:"_c_1usnu_128",loadingB:"_loadingB_1usnu_1",m:"_m_1usnu_180",ul:"_ul_1usnu_196",f:"_f_1usnu_226"},sn=({title:e,left:t,right:a,children:i})=>n.jsxs("div",{className:Q.h,children:[n.jsx("div",{className:Q.t,children:e}),t&&n.jsx("div",{className:Q.hl,children:t}),a&&n.jsx("div",{className:Q.hr,children:a}),i]}),ln=({children:e,...t})=>n.jsx("div",{className:Q.l,children:e}),dn=({children:e})=>n.jsx("div",{className:Q.s,children:e}),cn=({children:e,edit:t})=>{const a={};return t&&(a.edit=""),n.jsx("div",{...a,className:Q.f,children:e})};function _n({children:e}){return n.jsx("div",{className:Q.g,children:e})}const ut={Header:sn,Section:dn,Group:_n,Form:cn,List:ln,A:on,U:({children:e})=>n.jsx("div",{className:Q.u,children:e}),G:_n,C:({children:e})=>n.jsx("div",{className:Q.c,children:e}),L:ln,O:({children:e,className:t,title:a})=>n.jsxs("div",{className:[Q.o,t].join(" "),children:[a&&n.jsx("div",{className:Q.hh,children:a}),e]}),S:dn,H:sn,M:({children:e})=>n.jsx("div",{className:Q.m,children:e}),F:cn},lr=(e,t)=>{switch(t.type){case"load":return{...e,list:t.list.reverse(),load:!1};case"id":return{...e,id:t.id};case"add":return{...e,list:[t.data,...e.list]};case"update":return{...e,list:e.list.map(a=>a.id===t.data.id?Object.assign({},a,{[t.data.name]:t.data.value}):a),temp:e.temp.map(a=>a.id===t.data.id?Object.assign({},a,{[t.data.name]:t.data.value}):a)};case"view":return{...e,view:e.view==="card"?"item":"card"};case"revers":return{...e,list:[...e.list.reverse()],temp:[...e.temp.reverse()],revers:!e.revers};case"delete":return{...e,list:e.list.filter(a=>a.id!==t.id)};case"edit":return{...e,list:e.list.map(a=>a.id===t.j.item?Object.assign({},a,{[t.j.name]:t.j.value}):a)};default:return e}},dr=()=>({load:!0,list:[],name:"Файлы",add:!1,search:!1,revers:!0}),cr=()=>{let[e,t]=p.useState([]);return n.jsx(n.Fragment,{children:e.length!==0?n.jsxs("div",{className:"upload view",children:[n.jsxs("div",{className:"--head",children:[n.jsx("b",{children:"Загрузки"}),n.jsx("i",{className:"x",onClick:()=>t([]),"data-icon":"F038"})]}),n.jsx("div",{className:"--list",children:e.map(a=>a)})]}):""})},_r=({id:e,name:t,listen:a,dir:i})=>{t=t||"Файлы";const[r,o]=p.useReducer(lr,{},dr),s=()=>{Ye.Add(n.jsx(ur,{dir:i,dispatch:o,id:e},new Date().getTime()))};return p.useEffect(()=>{(async()=>{let l=await ce.Send({type:"module",module:"M09",query:"x0900",data:{dir:i,id:e}});o({type:"load",list:l})})()},[e,i]),n.jsxs(ut.O,{children:[" ",n.jsx(ut.H,{title:t,right:n.jsx("i",{className:"f025","data-icon":"C005 25 pointer","data-color":"_b5b9cc :506290",onClick:s}),left:n.jsx("i",{className:"f025","data-icon":"E009 25","data-color":"_2196f3"})}),n.jsx("ul",{"data-empty":"Файлов нет",className:"files_list",children:r.load?n.jsxs("div",{"type-load":"load",children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]}):r.list.length===0?n.jsx(n.Fragment,{}):r.list.map((l,c)=>n.jsx(fr,{dispatch:o,data:l},c))})]})},ur=({id:e,dir:t,dispatch:a})=>{let[i,r]=p.useState(!0),o=p.useRef(null),s=_=>{_.preventDefault(),_.stopPropagation()},l=_=>{},c=_=>{};return p.useEffect(()=>{let _=o.current;["dragenter","dragover","dragleave","drop"].forEach(u=>{_.addEventListener(u,s,!1),document.body.addEventListener(u,s,!1)}),["dragenter","dragover"].forEach(u=>{_.addEventListener(u,l,!1)}),["dragleave","drop"].forEach(u=>{_.addEventListener(u,c,!1)})},[]),n.jsx(n.Fragment,{children:i?n.jsx(n.Fragment,{children:n.jsx("div",{className:"modal o ",onClick:Ye.Shake,children:n.jsxs("div",{className:"b",children:[n.jsx("div",{className:"h",children:"Загрузка файлов"}),n.jsx("div",{className:"x","data-icon":"F038",onClick:()=>{r(!1)}}),n.jsxs("div",{className:"upload",ref:o,children:[n.jsx("input",{type:"file",id:"fileElem",name:"files",multiple:!0}),n.jsx("dd",{}),n.jsx("i",{"data-icon":"F061"})]})]})},new Date().getTime())}):""})},fr=({data:e,dispatch:t})=>{let a=async()=>{let o=await(await fetch(dt.url().files+"/yandex/data/"+e.id,{headers:{"Content-type":"application/json;charset=utf-8",SSID:ae.getSSID()||""}})).blob();if(o.size!==2){let s=new Blob([o],{type:o.type});s=URL.createObjectURL(s);let l=document.createElement("a");l.setAttribute("href",s),l.setAttribute("download",e.name),l.click()}},i=async()=>{(await(await fetch(dt.url().files+"/yandex/delete/"+e.id,{headers:{"Content-type":"application/json;charset=utf-8",SSID:ae.getSSID()||""}})).json()).status==="success"&&(t({type:"delete",id:e.id}),Se.Send({type:"success",text:"Файл успешно удалён"}))};return n.jsxs("li",{children:[n.jsx("div",{className:"f035",children:Z.TypeFiles(e.type)}),n.jsx("div",{className:"f100",children:Z.Date(e.uDate,"dd.mm.yy")}),n.jsx("div",{className:"f000",children:e.name}),n.jsxs("div",{className:"f050 flex button",children:[n.jsx("i",{className:"f025","data-icon":"F060 35 pointer","data-color":"_b5b9cc :4CAF50",onClick:a}),n.jsx("i",{className:"f025","data-icon":"F048 35 pointer","data-color":"_b5b9cc :FF9800",onClick:i})]}),n.jsx("div",{className:"f080",children:Z.Size(e.size)})]})},He={setSetting:Na,getSetting:Ta};let G={};G.list=Ra(),G.active=null;const mr=()=>{var r;let[e,t]=p.useState([]),[a,i]=p.useState(He.getSetting("s03"));return p.useEffect(()=>{(async()=>{let o=Object.keys(G.list);if(o.length!==0){let s=[];o.forEach((l,c)=>{s.push({item:n.jsx(ft,{data:G.list[l]},G.list[l].id),link:G.list[l].link})}),t(s)}})()},[]),G.active=o=>{var s;i(o),(s=document.querySelector("app-body"))==null||s.setAttribute("bookmarks",o===1?"bottom":"")},G.set=o=>{t([...e,{item:n.jsx(ft,{data:o},o.id),link:o.link}])},G.del=o=>{e.forEach((s,l)=>{s.link===o&&e.splice(l,1)}),t([...e])},(r=document.querySelector("app-body"))==null||r.setAttribute("bookmarks",a===1&&e.length!==0?"bottom":""),a!==0?n.jsx(n.Fragment,{children:e.length!==0?n.jsx("div",{className:"bookmarks",children:e.map(o=>o.item)}):""}):""},pr=({id:e,type:t,name:a})=>{let i=t+"-"+e,[r,o]=p.useState(G.list[i]!==void 0);p.useEffect(()=>{o(G.list[i]!==void 0)},[i]);let s=()=>{G.list[i]!==void 0?(G.del(i),delete G.list[i],Yt(G.list),o(!1),Se.Send({type:"success",text:"Запись удален из закладок"})):(G.list[i]={id:e,name:a,type:t,link:i},G.set(G.list[i]),Yt(G.list),o(!0),Se.Send({type:"success",text:"Запись добавлен в закладки"}))};return n.jsx(n.Fragment,{children:He.getSetting("s03")!==0?n.jsx("i",{"data-icon":"C018","data-color":r?"_F44333 :F44333":"_b5b9cc :F44333",onClick:s}):""})},ft=({data:e})=>{let t=i=>{i.preventDefault(),delete G.list[e.link],G.del(e.link)},a=()=>{Pe.setId(e.id)};return n.jsx("span",{onContextMenu:t,onClick:a,children:e.name})},xr=e=>{G.active(e)},O={},mt={},w={};w.config={iceServers:[{url:"stun:stun.l.google.com:19302"}]},w.constraints={optional:[{DtlsSrtpKeyAgreement:!0}]},w.other=[],w.users={},w.asset=0,w.remoute=!1,w.stream=null,w.user=0,w.connect=!1,w.offer=null,w.btnRefuse=null,w.time=!1;let we;we=document.createElement("audio"),we.setAttribute("autoplay","true"),we.setAttribute("muted","true"),O.start=async e=>{w.rtc=new RTCPeerConnection(w.config),w.other=[],w.remoute=!1,w.rtc.onicecandidate=a=>{a.candidate&&w.other.push(a.candidate)},w.rtc.ontrack=a=>{if(a.streams&&a.streams[0])we.srcObject=a.streams[0];else{let i=new MediaStream(a.track);we.srcObject=i}};const t=await navigator.mediaDevices.getUserMedia({video:!1,audio:{echoCancellation:!1,autoGainControl:!0}});t.getTracks().forEach(a=>{w.rtc.addTrack(a,t)}),w.rtc.onconnectionstatechange=()=>{w.rtc.connectionState},w.rtc.ontrack=async a=>{if(a.streams&&a.streams[0])we.srcObject=a.streams[0];else{let i=new MediaStream(a.track);we.srcObject=i}},w.rtc.onaddstream=a=>{},w.rtc.onnegotiationneeded=a=>{},w.rtc.oniceconnectionstatechange=a=>{},w.rtc.onsignalingstatechange=a=>{},w.rtc.onicegatheringstatechange=a=>{},w.rtc.onicecandidateerror=a=>{},w.rtc.ondatachannel=a=>{},w.rtc.onerror=a=>{},e()},O.useListener=e=>{mt.rtc=e},O.setListener=e=>{mt.rtc&&mt.rtc(e)},O.callTo=async e=>{O.start(async()=>{const t=await w.rtc.createOffer();await w.rtc.setLocalDescription(t),w.uid=e,ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"offer",offer:btoa(JSON.stringify(t)),user:w.uid}})})},O.callIn=async e=>{w.asset=e.id,w.offer=e.offer,w.uid=e.id},O.callRise=async()=>{O.start(async()=>{w.rtc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(w.offer))));const e=await w.rtc.createAnswer();await w.rtc.setLocalDescription(e),ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"answer",answer:btoa(JSON.stringify(e)),user:w.uid}})})},O.callOk=async e=>{w.asset=e.id;const t=new RTCSessionDescription(JSON.parse(atob(e.answer)));await w.rtc.setRemoteDescription(t),ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"IceCandidate",candidate:JSON.parse(JSON.stringify(w.other)),user:w.uid,send:!0}})},O.IceCandidate=async e=>{e.candidate.forEach(t=>{w.rtc.addIceCandidate(new RTCIceCandidate(t))}),e.send&&ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"IceCandidate",candidate:JSON.parse(JSON.stringify(w.other)),user:w.uid,send:!1}})},O.callFrom=async()=>{},O.callNo=()=>{w.asset=0,w.time=!1,w.rtc&&w.rtc.close(),O.setListener({type:"state",data:"closed"})},O.callOf=()=>{w.asset=0,w.time=!1,w.rtc.close()},O.callRefuser=async()=>{ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"callRefuser",user:w.uid}}),w.asset=0,w.time=!1,w.rtc&&w.rtc.close()},O.Run=async e=>{O[e.data.type]&&O[e.data.type](e.data)};let Oe={};function hr(){let[e,t]=p.useState([]),a=p.useRef(null);return p.useEffect(()=>{},[]),Oe.set=i=>{t([...e,i])},Oe.del=()=>{t([])},Oe.audio=(i,r)=>{a.current.volume=.5,a.current.loop=r,a.current.src="/audio/"+i,a.current.muted=!1},n.jsxs(n.Fragment,{children:[e.map(i=>i.item),n.jsx("audio",{id:"audio",ref:a,autoPlay:!0,muted:!0})]})}function gr(e,t){let a=new Date().getTime();Oe.set({item:n.jsx(vr,{type:t,id:e},a),key:a})}function vr({id:e,type:t}){const[a,i]=p.useState({}),[r,o]=p.useState(t);p.useEffect(()=>{i(ae.getSelect("user")[e])},[]),O.useListener(c=>{switch(c.type){case"state":o(c.data)}});const s=()=>{switch(r){case"out":return n.jsx("span",{onClick:()=>{O.callTo(a.id),o("call")},children:n.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})});case"in":return n.jsxs(n.Fragment,{children:[n.jsx("span",{onClick:l,children:n.jsx("svg",{className:"red",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"})})}),n.jsx("span",{onClick:O.callRise,children:n.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})})]});case"call":return n.jsx("span",{onClick:()=>O.callNo(a.id),children:n.jsx("svg",{className:"red",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"})})});case"closed":return n.jsx("span",{onClick:()=>{O.callTo(a.id),o("call")},children:n.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})})}},l=()=>{O.callRefuser(a.id),Oe.del()};return n.jsx("div",{className:"web-phone white",children:n.jsxs("div",{className:"w",children:[n.jsx("div",{className:"x","data-icon":"F038",onClick:l}),n.jsx("div",{className:"a"}),n.jsx("div",{className:"n",children:a.name}),n.jsx("div",{className:"b",children:s()})]})})}const pt={};function br(e){pt.add(e)}function kr({color:e,size:t,name:a}){return n.jsx("svg",{width:t,height:t,color:e,children:n.jsx("use",{href:`#${a}`})})}function yr(){let[e,t]=p.useState([]);if(pt.x=()=>{t([])},pt.add=i=>{t(i)},e.length===0)return"";const a={sprite:""};return n.jsx("svg",{...a,xmlns:"http://www.w3.org/2000/svg",children:e.map((i,r)=>n.jsx("symbol",{id:i.name,viewBox:"0 0 24 24",fillRule:"evenodd",clipRule:"evenodd",children:n.jsx(i.path,{})},r))})}const xt={};function wr(e,t){xt[e]=t}function Cr(e,t){xt[e]!==void 0&&xt[e](t)}const he={};function jr(e,t){const[a,i]=p.useState(t);return p.useEffect(()=>{if(he[e])return he[e].push(i);he[e]=[i]},[]),[a]}function Sr(e,t){if(he[e])return he[e].push(t);he[e]=[t]}function Er(e,t){he[e]&&he[e].forEach(a=>a(t))}const ge={setListener:Cr,useListener:wr,setEmitter:Er,useEmitter:jr,subEmitter:Sr};function Nr(){let[e,t]=p.useState([]);return ge.useListener("form",a=>{t([a])}),n.jsx(n.Fragment,{children:e.map(a=>a)})}const un=({children:e,config:t})=>(F.New(t.crypto),t.defaultModule&&aa(t.defaultModule),ra(n.jsxs(n.Fragment,{children:[n.jsx(er,{config:t.modal}),n.jsx(oi,{}),n.jsx(ui,{}),n.jsx(cr,{}),n.jsx(yr,{}),n.jsx(Nr,{}),n.jsx(hr,{}),n.jsx(mr,{}),e]}))),Tr=({children:e,...t})=>n.jsx("menu",{children:e}),Ir=({children:e,...t})=>n.jsxs("header",{children:["xz",e]}),Dr={payment:"_payment_1lxfv_1"};function Mr(){let[e,t]=p.useState({});return!e.active&&!e.payment?"":n.jsx("div",{className:Dr.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const Fr=({children:e,...t})=>{let a={};return a.enCode=i=>JSON.stringify(i).toString(),a.deCode=i=>JSON.parse(i),n.jsxs("div",{className:"app",children:[n.jsx(Mr,{}),n.jsx(Tr,{}),n.jsx(Ir,{}),n.jsx(un,{config:{modal:{},crypto:a}}),e]})},fn=({list:e,onClick:t,active:a,size:i,view:r})=>n.jsx("nav",{children:n.jsx("ul",{className:[i,r].join(" "),children:e.map(o=>n.jsx($r,{onClick:t,active:a,label:o.label,link:o.link},o.link))})}),$r=({onClick:e,label:t,link:a,active:i})=>n.jsx("li",{"tabs-active":String(i===a),onClick:()=>e(a),children:t});fn.defaultProps={size:"M",view:"H"};const Br=({title:e="",button:t,description:a="",children:i})=>n.jsxs("fieldset",{children:[e&&n.jsxs("legend",{children:[e,t&&n.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),n.jsx("ul",{children:i}),a&&n.jsx("article",{children:a})]}),Lr={setting:"_setting_dva4m_2"},Pr=({children:e})=>n.jsx("div",{className:Lr.setting,children:e}),Rr=({label:e,children:t})=>{let[a,i]=p.useState(!1);return n.jsxs("li",{"data-item":"accordion",children:[n.jsxs("dl",{onClick:()=>i(!a),children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:n.jsx("div",{"data-close":String(a)})})]}),a&&n.jsx("div",{children:t})]})},zr=({label:e,onClick:t,button:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"button",onClick:()=>t(),children:a})]})}),mn={Switch:({active:e,onClick:t})=>(e=typeof e=="number"?!!e:e,n.jsx("div",{role:"switch",onClick:()=>{t()},"aria-checked":e?"true":"false"}))},Or={Accordion:Rr,Button:zr,Switch:({label:e,onClick:t,active:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:n.jsx(mn.Switch,{onClick:t,active:a})})]})}),Info:({label:e,info:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"info",children:t})]})}),Select:({label:e,active:t,options:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"info",children:t})]})}),Component:({label:e,children:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:t})]})}),Node:({label:e,children:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:t})]})})};function pn({list:e,onClick:t,active:a,size:i,view:r}){return n.jsx("nav",{children:n.jsx("ul",{className:[i,r].join(" "),children:e.map(o=>n.jsx(Ar,{onClick:t,active:a,label:o.label,link:o.link},o.link))})})}const Ar=({onClick:e,label:t,link:a,active:i})=>n.jsx("li",{"tabs-active":String(i===a),onClick:()=>e(a),children:t});pn.defaultProps={size:"M",view:"H"};const Zr={Section:Br,Main:Pr,Item:Or,Tabs:pn},Gr={Icon:pr,Item:ft,Active:xr},Wr={Send:mi,Line:on};function Kr(){return n.jsx("svg",{viewBox:"0 0 462.86 359.96",children:n.jsx("path",{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",transform:"translate(-88.37 0)"})})}const Ur={Logo:Kr,Sprite:br,Symbol:kr},Vr={sort:"_sort_1yrvt_1"};let Je={};function qr(e,t){switch(t.type){case"active":let a="<";return e.active===t.data&&(a=e.sort==="<"?">":"<"),Je.get({active:t.data,sort:a},!1),Kt({active:t.data,sort:a}),{...e,active:t.data,sort:a};default:throw new Error}}function Yr(){const[e,t]=p.useReducer(qr,lt()===void 0?{active:1,sort:"<"}:lt());return n.jsxs("div",{className:Vr.sort,children:[n.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),n.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),n.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function Hr(e){Je.get=e}function Jr(e){Je.set(e)}function Xr(e,t,a){let i=1,r=0,o={},s=50;o[i]=[];let l={},c="s1a";switch(l.s1a=(_,u)=>u.s1-_.s1,l.s1d=(_,u)=>_.s1-u.s1,l.s2a=(_,u)=>_.s2-u.s2,l.s2d=(_,u)=>u.s2-_.s2,l.s3a=(_,u)=>_.s3.localeCompare(u.s3),l.s3d=(_,u)=>u.s3.localeCompare(_.s3),a.active){case 1:c=a.sort===">"?"s1d":"s1a";break;case 2:c=a.sort===">"?"s2d":"s2a";break;case 3:c=a.sort===">"?"s3d":"s3a";break}return t.sort(l[c]).forEach(_=>{r++,r<=s||(i++,r=1,o[i]=[]),o[i].push(e[_.id])}),{data:o}}function Qr(e){Je.count(e)}const eo={Init:Yr,useValue:Hr,Set:Jr,Run:Xr,Count:Qr},Xe={},xn={};function to(e){const[t,a]=p.useState({}),i=async r=>{a(Object.keys(Xe).reduce((o,s)=>(o?o[s]=Xe[s].all:o={},o),{}))};return p.useEffect(()=>{e.forEach(r=>Xe[r]={all:0}),xn.menu=i,i()},[e]),t}function no(e,t){switch(typeof t){case"number":Xe[e].all+=t,xn.menu();break}}const ao={useMenu:to,setUpdate:no};class io{constructor(t="el",a="db"){Ot(this,"storeName");Ot(this,"_dbp");this.storeName=a,this._dbp=new Promise((i,r)=>{const o=indexedDB.open(t,1);o.onerror=()=>r(o.error),o.onsuccess=()=>i(o.result),o.onupgradeneeded=()=>{o.result.createObjectStore(a)}})}_withIDBStore(t,a){return this._dbp.then(i=>new Promise((r,o)=>{const s=i.transaction(this.storeName,t);s.oncomplete=()=>r(),s.onabort=s.onerror=()=>o(s.error),a(s.objectStore(this.storeName))}))}}let ht,W={};const Ee=()=>(ht||(ht=new io),ht),ve=(e,t,a=Ee())=>a._withIDBStore("readwrite",i=>{W[e]=t,i.put(F.enCode(t),e)}),_e=(e,t=Ee())=>W[e]===void 0?new Promise((a,i)=>{let r;t._withIDBStore("readonly",o=>{r=o.get(e)}).then(()=>{if(r.result!==void 0){let o=F.deCode(r.result);W[e]=o,a(o)}else a({})})}):W[e],ro=(e,t=Ee())=>t._withIDBStore("readwrite",a=>{a.delete(e)}),gt=(e=Ee())=>e._withIDBStore("readwrite",t=>{t.clear()}),oo={id:async(e,t,a)=>{let i=await _e(t);if(a!==void 0)a({type:"load",base:i});else return i[e]},get:_e,set:ve,add:async(e,t,a,i)=>{let r,o;o=await _e(a),o[e.id]=e,await ve(a,o),r!==null&&(r=await _e(t),r[e.id]=e.eDate,await ve(t,r)),i!==void 0&&i({type:"load",page:r,base:o})},del:ro,upd:(e,t,a,i=Ee())=>{if(W[e]===void 0)return new Promise((r,o)=>{let s;i._withIDBStore("readonly",l=>{s=l.get(e)}).then(()=>{if(s.result!==void 0){let l=F.deCode(s.result);W[e]=l,W[e][t.id]={...W[e][t.id],...t.data},i.put(F.enCode(W[e]),e),r({})}else r({})})});if(W[e][t.id]!==void 0)return W[e][t.id]={...W[e][t.id],...t.data},a!==void 0&&W[a]!==void 0?W[a][t.id]!==void 0&&(W[a][t.id]=t.data.eDate):W[a]=[],delete W[e][t.id].$_item,delete W[e][t.id].$_send,i._withIDBStore("readwrite",r=>{r.put(F.enCode(W[e]),e),a!==void 0&&r.put(F.enCode(W[a]),a)})},key:(e=Ee())=>{const t=[];return e._withIDBStore("readonly",a=>{(a.openKeyCursor||a.openCursor).call(a).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},load:e=>W[e],split:(e,t,a=[],i={})=>{let r=a.length!==0,o=[],s=i.sort,l=Object.keys(i).length!==0,c=Object.keys(i),_=Object.keys(e),u=[],f=x=>{let v="";if(a.forEach(b=>{v+=t[x][b]}),l){let b={};c.forEach(g=>{b[g]=t[x][g]});for(let g in s)t[x][s[g]]===void 0&&(gt(),location.reload()),g==="s1"&&(b[g]=new Date(t[x][s[g]]).getTime()),g==="s2"&&(b[g]=t[x][s[g]]),g==="s3"&&(b[g]=t[x][s[g]].replace(/[^a-zа-яё]/gi,"").substring(0,1));o.push({id:x,text:v,...b})}else o.push({id:x,text:v})},m=x=>{};return _.forEach(x=>{u.push(t[x])}),u.forEach(x=>{x===void 0?(gt(),location.reload()):(r&&f(x.id),l&&m(x.id))}),{list:u,search:o,filter:i}},clear:gt,updAll:async(e,t,a,i)=>{let r=await _e(t),o=await _e(a);for(let s in e)o[s]=e[s],r[s]=e[s].eDate;await ve(t,r),await ve(a,o),i!==void 0&&i({type:"load",page:r,base:o})},delAll:async(e,t,a,i)=>{let r=await _e(t),o=await _e(a);e.forEach(s=>delete r[s]),await ve(t,r),i!==void 0&&i({type:"load",page:r,base:o})},delList:async(e,t,a)=>{let i=await _e(t);e.forEach(r=>delete i[r]),await ve(t,i)},addList:async(e,t,a)=>{let i=await _e(t);e.forEach(r=>i[r.id]=r.eDate),await ve(t,i)}},so={useKey:(e,t)=>{const a=[];t=t.map(i=>i.charCodeAt(0)),document.onkeydown=function(i){a.push(i.keyCode);for(var r=0;r<t.length;r++)if(a.indexOf(t[r])==-1)return;e(),a.length=0},document.onkeyup=function(i){a.length=0}}},lo={s:"_s_18bde_1",loadingB:"_loadingB_18bde_1",ul:"_ul_18bde_31"};function hn({children:e}){return n.jsx("ul",{className:Q.ul,children:e})}function co(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,item:1,data:t.data,list:t.data[1],size:Object.keys(t.data).length};case"update":let a=Object.keys(e.data).length,i=e.item+1;return i=a<i?1:i,e.item===i?e:{...e,wait:e.size===i,item:i,list:[...e.list,...e.data[i]]};case"clear":return{load:!1,list:[],data:{},item:1,wait:!1,size:0};default:throw new Error}}function gn({list:e,load:t,className:a,...i}){const r=p.useRef(null),[o,s]=p.useReducer(co,{load:!1,list:[],data:{},item:1,wait:!1,size:0});p.useEffect(()=>{r.current.scrollTop=0,e!==null&&s({type:"load",load:!0,data:e})},[t]);let l=()=>{r.current.scrollHeight-r.current.scrollTop-300<=r.current.clientHeight&&!o.wait&&s({type:"update"})};return n.jsx("div",{className:[lo.s,a].join(" "),ref:r,onScroll:l,children:n.jsx(hn,{"el-empty":"Данные не найдены",children:o.load&&o.list!==void 0?o.list.map(c=>n.jsx(i.item,{data:c},c.id)):n.jsxs("div",{"data-load":"load",children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})})})}const _o={Widget:_r},vn=({onClick:e,active:t})=>(t=!!t,n.jsx("div",{role:"switch",onClick:()=>e,"aria-checked":`${t?"true":"false"}`}));let fe={};fe.KeyDown=e=>{e.key==="Enter"&&e.preventDefault()},fe.PasteOne=e=>{e.preventDefault(),navigator.clipboard.readText().then(t=>{t=t.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,t)}).catch(t=>{})},fe.Focus=e=>{e.target.textContent.length===0&&(e.target.innerHTML="<br>")},fe.Blur=e=>{e.target.scrollLeft=0,e.target.querySelector("br")!==null&&e.target.querySelector("br").remove()};function Ae({value:e,onValue:t,name:a,placeholder:i="",title:r="",error:o="",hide:s=!1,edit:l=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:m,onSave:x,className:v=""}){let b=!!(s&&(e===""||e===void 0)),g=T=>{t&&t({value:T.target.textContent,name:a})},y=T=>{T.key==="Enter"&&T.preventDefault()},E=T=>{},B=T=>{T.preventDefault(),navigator.clipboard.writeText(T.target.textContent).then(function(){Se.Copy("Данные в буфер обмене")},function(N){})};if(!(l&&c)&&!u||!(l&&c)&&b)return"";const M={};M.field="input",v&&(M.className=v);const j={};i&&(j.placeholder=i),l&&c&&(j.edit="");const D=T=>{fe.Blur(T),x&&x({value:T.target.textContent,name:a})};return n.jsxs("dl",{...M,children:[r?n.jsx("dt",{children:r}):"",n.jsx("dd",{onPaste:E,onInput:g,onBlur:D,onKeyDown:y,onContextMenu:B,contentEditable:l&&c?"plaintext-only":"false",suppressContentEditableWarning:!0,...j,children:e}),o?n.jsx("em",{children:o}):""]})}function bn({onClick:e,onSend:t,name:a,onRef:i}){let[r,o]=p.useState(!1);const s=()=>{if(e)return e();r||(o(!0),t&&t(o))};return n.jsx("button",{ref:i,"data-form":"button",className:r?"btn await":"btn confirm pointer",onClick:s,children:r?"Ожидайте":a})}function kn({value:e,onValue:t,onActive:a,data:i,name:r,view:o,edit:s=!0,active:l=!0,placeholder:c="Введите сообщение"}){const _=p.useRef({value:e,timerId:null,shift:!1,send:!0}),u=()=>{_.current.value.length>0?_.current.send&&(a(!0),_.current.send=!1,_.current.timerId=setTimeout(()=>{_.current.send=!0},3e3)):a(!1)},f=y=>{_.current.value=y.target.textContent,u()},m=y=>{y.keyCode===16&&(_.current.shift=!0),y.keyCode===13&&!_.current.shift&&(y.preventDefault(),_.current.value.length!==0&&(y.target.textContent="",i&&i(_.current.value),t&&t(_.current.value),_.current.value="",a(!1)))},x=y=>{y.keyCode===16&&(_.current.shift=!1)},v=y=>{y.preventDefault(),navigator.clipboard.readText().then(E=>{window.document.execCommand("insertText",!1,E)}).catch(E=>{})},b=()=>{a(!1)},g={spellCheck:"true"};return c&&(g.placeholder=c),s&&l&&(g.contentEditable="plaintext-only"),n.jsx("dl",{"data-form":"message",children:n.jsx("dd",{onPaste:v,onInput:f,onKeyUp:x,onKeyDown:m,onBlur:b,...g,suppressContentEditableWarning:!0,children:e})})}function yn(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,r=e.placeholder!==void 0?e.placeholder:"",o=c=>{e.onValue({value:c.target.textContent,name:e.name})},s=c=>{c.key==="Enter"&&c.preventDefault()},l=c=>{c.preventDefault(),navigator.clipboard.readText().then(_=>{window.document.execCommand("insertText",!1,_)}).catch(_=>{})};return n.jsxs("dl",{"data-form":"input","type-data":"generator",children:[t(),n.jsx("dd",{onPaste:l,onInput:o,onKeyDown:s,contentEditable:a&&i?"plaintext-only":"false","data-placeholder":r,suppressContentEditableWarning:!0,children:e.value})]})}function wn({value:e,onValue:t,placeholder:a="",name:i}){let r=(x,v)=>Number(Math.round(x+Math.random()*(v-x))),o=p.useRef(null),s=p.useRef(null),l=r(1e4,99999),c=x=>{x.key!=="Backspace"&&(x.key==="Enter"&&x.preventDefault(),x.target.textContent.length===5&&x.preventDefault(),/\d/.test(x.key)||x.preventDefault())},_=x=>{t({value:Number(x.target.textContent)===l,name:i})},u=x=>{x.preventDefault(),navigator.clipboard.readText().then(v=>{window.document.execCommand("insertText",!1,v.replace(/(\r\n|\n|\r)/gm," ").replace(/[^0-9]/g,"").substring(0,5))}).catch(v=>{})};p.useEffect(()=>{const x=o.current,v=x.getContext("2d");v.clearRect(0,0,x.width,x.height),v.font="30px brush script mt",v.fillStyle="#eee",v.textAlign="center",v.fillText(l,50,27),s.current.textContent=""},[l]);const f={};f.field="captcha";const m={};return a&&(m.placeholder=a),n.jsxs("dl",{...f,children:[n.jsx("dd",{ref:s,onPaste:u,onInput:_,onBlur:fe.Blur,onKeyDown:c,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,...m}),n.jsx("canvas",{ref:o,width:"100",height:"35"})]})}function Cn(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""},r=_=>{_.preventDefault(),_.target.textContent=_.target.textContent.slice(-1).replace(/[^+\d]/g,"");let u=window.getSelection(),f=_.target.textContent.length;if(i[_.target.id]=_.target.textContent,i.code=i.n1+""+i.n2+i.n3+i.n4+i.n5+i.n6,u.collapse(_.target.firstChild,1),f===0){_.target.blur(),_.target.focus();return}_.target.nextSibling!=null&&_.target.nextSibling.focus()},o=_=>{if(_.key==="Enter"&&_.preventDefault(),_.key==="Backspace"){if(_.preventDefault(),_.target.textContent="",i[_.target.id]="",_.target.previousSibling!=null){let u=_.target.previousSibling.id.slice(1);_.target.previousSibling.textContent="",i["n"+u]="",_.target.previousSibling.focus()}i.code=i.n1+""+i.n2+i.n3+i.n4+i.n5+i.n6}},s=_=>{if(e.real)e.onValue({value:i.code,name:e.name});else if(i.code.length===6&&(e.onValue({value:i.code,name:e.name}),e.empty)){i={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""};for(let u=1;u<=6;u++){let f=document.getElementById("n"+u);f&&(f.textContent="")}}},l=_=>{_.target.textContent=""},c=_=>{_.preventDefault()};return n.jsxs("dl",{"data-form":"code",children:[t(),n.jsxs("div",{children:[n.jsx("dd",{id:"n1",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n2",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n3",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n4",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n5",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n6",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0})]}),a()]})}function jn(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"";e.edit!==void 0&&e.edit,e.active!==void 0&&e.active;let[i,r]=p.useState(e.value),o=s=>{let l=s.target.getAttribute("set-color");r(l),e.onValue({value:l,name:e.name})};return n.jsx(n.Fragment,{children:e.view==="icon"?n.jsx("i",{"data-icon":"F043"}):n.jsxs("dl",{children:[t(),n.jsxs("dd",{"el-val":i,children:[n.jsx("em",{onClick:o,"set-color":"0"}),n.jsx("em",{onClick:o,"set-color":"1"}),n.jsx("em",{onClick:o,"set-color":"2"}),n.jsx("em",{onClick:o,"set-color":"3"}),n.jsx("em",{onClick:o,"set-color":"4"}),n.jsx("em",{onClick:o,"set-color":"5"})]}),a()]})})}const Ne={o:"_o_1kqkq_1",c:"_c_1kqkq_11"};function vt(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i=e.edit!==void 0?e.edit:!0,r=e.active!==void 0?e.active:!0,o=e.placeholder!==void 0?e.placeholder:"",[s,l]=p.useState(e.value===void 0?new Date:e.value),c=!i&&r;p.useEffect(()=>{l(e.value===void 0?new Date:e.value)},[e.value]);let _=x=>{l(x),e.onValue({value:x,name:e.name})},u=x=>{const v=x.target.getBoundingClientRect(),b=v.left,g=v.top;ge.setListener("form",n.jsx(uo,{position:{x:b,y:g},onValue:_,date:s},new Date().getTime()))};const f={};f.field="input";const m={};return o&&(m.placeholder=o),c?n.jsx(n.Fragment,{}):n.jsx(n.Fragment,{children:e.view==="icon"?n.jsx("i",{"data-icon":"F043",className:"pointer","data-color":"_b5b9cc :506290",onClick:u}):n.jsxs("dl",{...f,children:[t(),n.jsx("dd",{onClick:u,...m,"data-edit":(i&&r)+"",children:Z.Date(s,"dd.mm.yyyy")}),a()]})})}const uo=e=>{let[t,a]=p.useState(!0),i=new Date,r=new Date(e.date),o={y:parseInt(i.getFullYear()),d:parseInt(i.getDate()),m:parseInt(i.getMonth())+1},s={y:parseInt(r.getFullYear()),d:parseInt(r.getDate()),m:parseInt(r.getMonth())+1},[l,c]=p.useState({y:s.y,m:s.m}),_=j=>{let D=j.getDay();return D===0&&(D=7),D-1},u=["пн","вт","ср","чт","пт","сб","вс"],f=l.m-1,m=new Date(l.y,f),x=[];for(let j=0;j<_(m);j++)x.push(0);for(;m.getMonth()===f;)x.push(m.getDate()),m.setDate(m.getDate()+1);let v=()=>{a(!1)},b=()=>{E(l.m+1,l.y)},g=()=>{E(l.m-1,l.y)},y=j=>{e.onValue(l.y+"-"+Z.Number(2,l.m)+"-"+Z.Number(2,j)),v()},E=(j,D)=>{D=j>12?D+1:j<1?D-1:D,j=j>12?1:j<1?12:j,c({y:D,m:j})},B=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,M=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return n.jsx(n.Fragment,{children:t?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ne.o,onClick:()=>v()},new Date().getTime()),n.jsxs("div",{className:Ne.c,style:{top:B+"px",left:M+"px"},children:[n.jsxs("s",{children:[n.jsx("i",{"data-icon":"F021",onClick:()=>g()}),n.jsxs("h2",{children:[Z.Month(l.m).name," ",l.y]}),n.jsx("i",{"data-icon":"F022",onClick:()=>b()})]}),n.jsxs("div",{children:[u.map((j,D)=>n.jsx("p",{children:j},"v"+D)),x.map((j,D)=>n.jsx("span",{children:j!==0?n.jsx("b",{color:o.y===l.y&&o.m===l.m&&o.d===j?"_FFEB3B":"",onClick:()=>y(j),children:j}):n.jsx("p",{})},D))]})]})]}):""})};function bt({value:e,onValue:t,name:a,placeholder:i="",title:r,error:o,hide:s=!1,edit:l=!0,show:c=!0,active:_=!0,after:u="",view:f,modal:m,module:x,options:v}){let[b,g]=p.useState(e),y=B=>{if(!m)return;let M=m.split(".");Ye.Open(M[0],M[1],{callback:j=>{t&&t({value:j,name:a}),g(j)},onValue:t,options:v,name:a,value:e})};const E={};return E.field="input",s?n.jsx(n.Fragment,{}):n.jsxs("dl",{...E,children:[r?n.jsx("dt",{children:r}):"",n.jsx("dd",{onClick:y,"data-edit":(l&&_)+"","data-placeholder":i,"data-after":u,children:b}),o?n.jsx("dt",{children:o}):""]})}function kt(e){let t=e.value,a=f=>e.type==="multi"?f.replace(/[^+\d.+-]/g,""):f.replace(/[^+\d.]/g,""),i=(f,m)=>{let x=document.createRange(),v=window.getSelection();x.setStart(m.childNodes[0],f),x.collapse(!0),v.removeAllRanges(),v.addRange(x),m.focus()},r=f=>{e.onValue({value:a(f.target.textContent),name:e.name}),f.target.textContent=a(f.target.textContent),f.target.textContent.length>0&&i(f.target.textContent.length,f.target)},o=f=>{f.target.textContent===""&&(f.target.textContent=0),e.onValue({value:a(f.target.textContent),name:e.name}),f.target.textContent=Z.Money(f.target.textContent)},s=f=>{f.target.textContent=a(f.target.textContent)},l=f=>{f.key==="Enter"&&f.preventDefault()},c=f=>{f.preventDefault(),navigator.clipboard.readText().then(m=>{m=m.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,m)}).catch(m=>{})},_=()=>e.title?n.jsx("dt",{children:e.title}):"",u=()=>e.error?n.jsx("em",{children:e.error}):"";return n.jsxs("dl",{"data-form":"input",children:[_(),n.jsx("dd",{onInput:r,onPaste:c,onBlur:o,onKeyDown:l,onFocus:s,contentEditable:!0,suppressContentEditableWarning:!0,"e-after":e.after,children:Z.Money(t)}),u()]})}function Sn({value:e,onValue:t,name:a,view:i,error:r,edit:o=!0,active:s=!0,title:l,placeholder:c="",after:_}){let[u,f]=p.useState(e);p.useEffect(()=>{f(e)},[e]);let m=b=>{f(b),t&&t({value:b,name:a})},x=b=>{if(!o||!s)return;const g=b.target.getBoundingClientRect(),y=g.left,E=g.top;ge.setListener("form",n.jsx(fo,{position:{x:y,y:E},onValue:m,date:u},new Date().getTime()))};const v={};return c&&(v.placeholder=c),n.jsx(n.Fragment,{children:i==="icon"?n.jsx("i",{"data-icon":"F043",onClick:x}):n.jsxs("dl",{children:[l&&n.jsx("dt",{children:l}),n.jsx("dd",{onClick:x,...v,children:Z.Date(u,"mm.yyyy")}),r&&n.jsx("em",{children:r})]})})}const fo=e=>{let[t,a]=p.useState(!0),i=new Date,r=new Date(e.date),o={y:parseInt(i.getFullYear()),m:parseInt(i.getMonth())+1},s={y:parseInt(r.getFullYear()),m:parseInt(r.getMonth())+1},[l,c]=p.useState(s.y),_=()=>{a(!1)},u=()=>{c(l+1)},f=()=>{c(l-1)},m=y=>{e.onValue(l+"-"+Z.Number(2,y)),_()},x=y=>o.y===s.y&&o.m===y?"_FFEB3B":"",v=Array(12).fill("").map((y,E)=>E+1),b=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,g=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return n.jsx(n.Fragment,{children:t?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ne.o,onClick:()=>_()},new Date().getTime()),n.jsxs("div",{className:Ne.c,style:{top:b+"px",left:g+"px"},children:[n.jsxs("s",{children:[n.jsx("i",{"data-icon":"F021",onClick:()=>f()}),n.jsx("h2",{children:l}),n.jsx("i",{"data-icon":"F022",onClick:()=>u()})]}),n.jsx("div",{children:v.map((y,E)=>n.jsx("span",{onClick:()=>{m(y)},color:x(y),children:n.jsx("b",{children:Z.Month(y).abc})},E))})]})]}):""})};function En(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",[i,r]=p.useState(!1),o=e.edit!==void 0?e.edit:!0,s=e.active!==void 0?e.active:!0,c=!!(e.hide&&(e.value===""||e.value===void 0))&&!(o&&s);i=o?!0:i;let _=e.placeholder!==void 0?e.placeholder:"Заметка пуста",u=g=>{e.onValue&&e.onValue({value:g.target.innerText,name:e.name})},f=g=>{g.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{})},m=g=>{o||r(!i)};const x=g=>{e.onSave&&e.onSave({value:g.target.innerText,name:e.name})},v={};v.field="notes",e.className&&(v.className=e.className);const b={};return _&&(b.placeholder=_),i&&(b.open=""),o&&s&&(b.edit=""),c?n.jsx(n.Fragment,{}):n.jsxs("dl",{...v,children:[t(),n.jsx("dd",{onPaste:f,onInput:u,onBlur:x,contentEditable:o&&s?"plaintext-only":"false",...b,onDoubleClick:m,suppressContentEditableWarning:!0,children:e.value}),a()]})}function yt({onValue:e,active:t,max:a,edit:i,title:r,error:o,show:s,hide:l,value:c,placeholder:_,className:u,name:f,after:m,view:x}){let v=()=>r?n.jsx("dt",{children:r}):"",b=()=>o?n.jsx("em",{children:o}):"";i=i!==void 0?i:!0,t=t!==void 0?t:!0,l=!!(l&&(c===""||c===void 0))&&!(i&&t),_=_!==void 0?_:"",a=a!==void 0?a:99;let y=!1,E=N=>{e&&e({value:N.target.textContent,name:f})},B=N=>{if(!(y&&N.which===86)){if(N.which===17||N.which===91)return y=!0;N.key!=="Backspace"&&(N.target.textContent.length===a&&N.preventDefault(),N.key==="Enter"&&N.preventDefault(),isNaN(parseInt(String.fromCharCode(N.which)))&&N.preventDefault())}},M=N=>{if(N.which===17||N.which===91)return y=!1},j=N=>{N.preventDefault(),navigator.clipboard.readText().then(A=>{A=A.replace(/\D/g,""),window.document.execCommand("insertText",!1,""+A.replace(/\D/g,""))}).catch(A=>{})};const D={};D.field="input",u&&(D.className=u);let T={};return i&&t?(T.edit="true",T.contentEditable="plaintext-only"):T.contentEditable="false",_&&(T.placeholder=_),m&&(T.after=m),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{...D,children:[v(),n.jsx("dd",{...T,onPaste:j,onInput:E,onKeyDown:B,onKeyUp:M,suppressContentEditableWarning:!0,children:c}),b()]})}function Nn({value:e,onValue:t,name:a,placeholder:i="",className:r,title:o,error:s,edit:l=!0,active:c=!0,reload:_=!1,after:u=""}){let f=g=>{t&&t({value:g.target.textContent,name:a,reload:_})},m=g=>{g.key==="Enter"&&g.preventDefault()},x=g=>{g.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y.replace(/(\r\n|\n|\r)/gm," "))}).catch(y=>{})};const v={};v.field="password",r&&(v.className=r);const b={};return i&&(b.placeholder=i),n.jsxs("dl",{...v,children:[o?n.jsx("dt",{children:o}):"",n.jsx("dd",{onPaste:x,onInput:f,onKeyDown:m,onBlur:fe.Blur,contentEditable:l&&c?"plaintext-only":"false",...b,suppressContentEditableWarning:!0,children:e}),s?n.jsx("em",{children:s}):""]})}const wt={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function Ct({value:e,onValue:t,onSave:a,name:i,placeholder:r="",title:o="",error:s="",hide:l=!1,edit:c=!0,active:_=!0,after:u="",show:f=!0,view:m,className:x=""}){c=c!==void 0?c:!0,_=_!==void 0?_:!0,l=!!(l&&(e===""||e===void 0))&&!(c&&_),p.useRef(null);let b="+_(___) ___-__-__",g=!0,y=0,E=(K,P)=>{let Y=document.createRange(),H=window.getSelection();Y.setStart(P.childNodes[0],K),Y.collapse(!0),H.removeAllRanges(),H.addRange(Y),P.focus()},B=K=>{K.preventDefault(),navigator.clipboard.readText().then(P=>{window.document.execCommand("insertText",!1,P)}).catch(P=>{})},M=K=>{let P=0,Y="",H=K.replace(/\D/g,"");H===""&&(g=!0);let Qe=H.split(""),le="";Qe.forEach(et=>{g&&(le+=et,wt[le]!==void 0&&g?(g=!1,b=wt[le].mask.replace(new RegExp("[0-9]","g"),"_"),Y=wt[le].code):(g&&(y=(""+le).length,b=`+${le}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),Y=""),y>(""+le).length&&(g=!0,b=`+${le}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),Y="")))});let Ze=b.replace(/\D/g,"");return Ze.length>=H.length&&(H=Ze),{q:b.replace(/[_\d]/g,function(){return H.charAt(P++)||"_"}),i:P,v:H,f:Y}},j=K=>{K.preventDefault(),navigator.clipboard.writeText(K.target.textContent.replace(/\D/g,"")).then(function(){Se.Copy("Данные в буфер обмене")},function(P){})},D=M(e),T=K=>{let P=M(K.target.textContent);K.target.textContent=P.q,P.i=P.q.lastIndexOf(P.v.substr(-1)),P.i<P.q.length&&P.q!==b?P.i++:P.i=P.q.indexOf("_"),E(P.i,K.target),t&&t({value:P.q.replace(/\D/g,""),name:i})},N=K=>{K.key==="Enter"&&K.preventDefault()};const A=K=>{fe.Blur(K),a&&a({value:K.target.textContent.replace(/\D/g,""),name:i})},ee={};ee.field="input",x&&(ee.className=x);let ue={};return c&&_?(ue.edit="true",ue.contentEditable="plaintext-only"):ue.contentEditable="false",r&&(ue.placeholder=r),u&&(ue.after=u),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{...ee,children:[o&&n.jsx("dt",{children:o}),n.jsx("dd",{...ue,onPaste:B,onInput:T,onKeyDown:N,onContextMenu:j,onBlur:A,suppressContentEditableWarning:!0,children:D.q}),s&&n.jsx("em",{children:s})]})}const Tn=e=>{let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,r=e.placeholder!==void 0?e.placeholder:"",o=0,s=()=>{clearTimeout(o),o=setTimeout(()=>{},1e3)},l=u=>{u.key==="Enter"&&u.preventDefault()},c=u=>{u.preventDefault(),navigator.clipboard.readText().then(f=>{window.document.execCommand("insertText",!1,f)}).catch(f=>{})};const _={};return r&&(_.placeholder=r),n.jsxs("dl",{"data-form":"input",children:[t(),n.jsx("dd",{onPaste:c,onInput:s,onKeyDown:l,contentEditable:a&&i?"plaintext-only":"false",..._,suppressContentEditableWarning:!0,children:e.value})]})};function jt({title:e,error:t,edit:a=!0,active:i=!0,hide:r,value:o="0",onValue:s,options:l,placeholder:c="",name:_,after:u,view:f}){const m=p.useRef();r=!!(r&&(o===""||l[o].n===void 0))&&!(a&&i);let v=o!==void 0&&o!==""?l[o].n:o,b=B=>{m.current.textContent=l[B].n,s&&s({value:B,name:_})},g=B=>{if(!(a&&i))return;const M=B.target.getBoundingClientRect();ge.setListener("form",n.jsx(mo,{parent:M,onValue:b,view:f,options:l},new Date().getTime()))},y={field:"select"},E={onClick:g};return c&&(E.placeholder=c),u&&(E.after=u),a&&i&&(E.edit=""),r?"":n.jsxs("dl",{...y,children:[e&&n.jsx("dt",{children:e}),n.jsx("dd",{...E,ref:m,children:v}),t&&n.jsx("em",{children:t})]})}const mo=({onValue:e,parent:t,view:a,options:i})=>{let[r,o]=p.useState(!0),s=()=>{o(!1)},l=u=>{o(!1),e(u)},c=window.innerHeight-t.y+t.height<320?t.y-312:t.y+33,_=window.innerWidth-t.x<265?t.x-235:t.x;return n.jsx(n.Fragment,{children:r?n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-select":"backdrop",onClick:s},new Date().getTime()),n.jsx("div",{"data-select":"background "+a,style:{top:c+"px",left:_+"px",width:t.width},children:n.jsx("ul",{children:Object.keys(i).map((u,f)=>i[u].s===1?n.jsx("li",{onClick:()=>{l(u)},children:i[u].n},f):"")})})]}):""})};function St(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i=e.edit!==void 0?e.edit:!0,r=e.active!==void 0?e.active:!0,s=!!(e.hide&&(e.default===""||e.options[e.default]===void 0))&&!(i&&r),l=e.placeholder!==void 0?e.placeholder:"",c=x=>{u(e.options[x]),e.onValue({value:x,name:e.name})},[_,u]=p.useState(e.default!==void 0?e.options[e.default]:e.default),f=x=>{if(!(i&&r))return;const v=x.target.getBoundingClientRect();ge.setListener("form",n.jsx(po,{parent:v,onValue:c,view:e.view,options:e.options},new Date().getTime()))};const m={};return l&&(m.placeholder=l),s?n.jsx(n.Fragment,{}):n.jsxs("dl",{"data-form":"select",children:[t(),n.jsx("dd",{onClick:f,"data-edit":(i&&r)+"",...m,children:_}),a()]})}const po=({onValue:e,parent:t,view:a,options:i})=>{let[r,o]=p.useState(!0),s=()=>{o(!1)},l=f=>{o(!1),e(f)},c=Object.keys(i).length*36,_=window.innerHeight-t.y+t.height<c?t.y-(c-33):t.y+33,u=window.innerWidth-t.x<265?t.x-235:t.x;return n.jsx(n.Fragment,{children:r?n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-select":"backdrop",onClick:s},new Date().getTime()),n.jsx("div",{"data-select":"background "+a,style:{top:_+"px",left:u+"px",width:t.width},children:n.jsx("ul",{children:Object.keys(i).map((f,m)=>n.jsx("li",{onClick:()=>{l(f)},children:i[f]},m))})})]}):""})};function Et({set:e,value:t,onValue:a,name:i,placeholder:r="",title:o="",error:s="",hide:l=!1,edit:c=!0,show:_=!0,active:u=!0,after:f="",view:m,module:x,item:v,className:b=""}){let g={};switch(e){case"Input":return n.jsx(Ae,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Select":return v&&(g=ae.getSelect(parseInt(v))?ae.getSelect(parseInt(v)):{0:{s:"1",n:"не известно"}}),n.jsx(jt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b,options:g});case"Users":return ae.getSelect("user"),n.jsx(St,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b,options:g});case"Date":return n.jsx(vt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Phone":return n.jsx(Ct,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Number":return n.jsx(yt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Money":return n.jsx(kt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Modal":return n.jsx(bt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i||"",placeholder:r,className:b,options:g,module:x||""})}}function In({value:e,onValue:t,name:a,placeholder:i="",title:r="",error:o="",hide:s=!1,edit:l=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:m,onSave:x,className:v=""}){let b=!!(s&&(e===""||e===void 0));if(!(l&&c)&&!u||!(l&&c)&&b)return"";let g=M=>{t&&t({value:M.target.innerText,name:a})},y=M=>{x&&x({value:M.target.innerText,name:a})},E=M=>{M.preventDefault(),navigator.clipboard.readText().then(j=>{window.document.execCommand("insertText",!1,j)}).catch(j=>{})};const B={};return i&&(B.placeholder=i),n.jsxs("dl",{children:[r??n.jsx("dt",{children:r}),n.jsx("dd",{onPaste:E,onBlur:y,onInput:g,contentEditable:l&&c?"plaintext-only":"false",...B,suppressContentEditableWarning:!0,children:e}),o??n.jsx("em",{children:o})]})}function Dn({value:e,onValue:t,name:a,placeholder:i="",title:r="",error:o="",hide:s=!1,edit:l=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:m,onSave:x,className:v=""}){let b=!!(s&&(e===""||e===void 0)),g=Z.Date(e===void 0?new Date:e,"HH:MM"),y=p.useRef(null);if(!(l&&c)&&!u||!(l&&c)&&b)return"";let E=T=>{y.current.textContent=T,t&&t({value:T,name:a})},B=T=>{x&&x({value:T,name:a})},M=T=>{const N=T.target.getBoundingClientRect(),A=N.left,ee=N.top;ge.setListener("form",n.jsx(xo,{positions:{x:A,y:ee},onSave:B,onValue:E,date:g},new Date().getTime()))};const j={};j.field="input",v&&(j.className=v);const D={};return i&&(D.placeholder=i),n.jsx(n.Fragment,{children:f==="icon"?n.jsx("i",{"data-icon":"F043",onClick:M}):n.jsxs("dl",{...j,children:[r?n.jsx("dt",{children:r}):"",n.jsx("dd",{onClick:M,ref:y,...D,children:g}),o?n.jsx("em",{children:o}):""]})})}const xo=({positions:e,onSave:t,onValue:a,date:i})=>{let r=i.split(":"),o={h:Z.Number(2,r[0]),m:Z.Number(2,r[1])},s="hour",[l,c]=p.useState({}),_=!1,u=0,f=0,m={body:p.useRef(null),time:p.useRef(null),hour:p.useRef(null),timeText:p.useRef(null),hourText:p.useRef(null)};p.useEffect(()=>{c(m.body.current.getBoundingClientRect()),m.hour.current.style.transform="rotate("+o.h*15+"deg)",m.time.current.style.transform="rotate("+o.m*6+"deg)"},[m.body,m.hour,m.time,o.m,o.h]);let x=()=>{_=!0},v=()=>{_=!1,s=s==="hour"?"time":"hour",m.body.current.setAttribute("active",s)},b=D=>{if(_){let N=Math.atan2(D.pageX-(l.x+78),D.pageY-(l.y+78))*(180/Math.PI)*-1+180;m[s].current.style.transform="rotate("+N+"deg)",s==="hour"?(o={...o,h:Z.Number(2,parseInt(String(N/15),10))},m.hourText.current.textContent=o.h):(o={...o,m:Z.Number(2,parseInt(String(N/6),10))},m.timeText.current.textContent=o.m),a(o.h+":"+o.m)}},g=D=>{if(s==="hour")if(D.deltaY>0){u+=D.deltaY;let T=parseInt(String(u/50));if(f!==T){f=T;let N=parseInt(o.h,10)+1;N=N>23?0:N,o={...o,h:Z.Number(2,N)},m.hourText.current.textContent=o.h,m[s].current.style.transform="rotate("+o.h*15+"deg)"}}else{u-=D.deltaY;let T=parseInt(String(u/50));if(f!==T){f=T;let N=parseInt(o.h,10)-1;N=N<0?23:N,o={...o,h:Z.Number(2,N)},m.hourText.current.textContent=o.h,m[s].current.style.transform="rotate("+o.h*15+"deg)"}}else if(D.deltaY>0){u+=D.deltaY;let T=parseInt(String(u/50));if(f!==T){f=T;let N=parseInt(o.m,10)+1;N=N>59?0:N,o={...o,m:Z.Number(2,N)},m.timeText.current.textContent=o.m,m[s].current.style.transform="rotate("+o.m*6+"deg)"}}else{u-=D.deltaY;let T=parseInt(String(u/50));if(f!==T){f=T;let N=parseInt(o.m,10)-1;N=N<0?59:N,o={...o,m:Z.Number(2,N)},m.timeText.current.textContent=o.m,m[s].current.style.transform="rotate("+o.m*6+"deg)"}}a(o.h+":"+o.m)},[y,E]=p.useState(!0),B=()=>{E(!1),t(o.h+":"+o.m)},M=window.innerHeight-e.y+33<320?e.y-312:e.y+33,j=window.innerWidth-e.x<265?e.x-235:e.x;return n.jsx(n.Fragment,{children:y?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ne.o,onClick:()=>B()},new Date().getTime()),n.jsxs("div",{className:Ne.c,onMouseDown:x,onMouseUp:v,onMouseMove:b,onWheel:g,ref:m.body,style:{top:M+"px",left:j+"px"},children:[n.jsx("div",{className:"b"}),n.jsxs("div",{className:"s",children:[n.jsx("span",{className:"hour",ref:m.hourText,children:o.h})," ",":"," ",n.jsx("span",{className:"min",ref:m.timeText,children:o.m})]}),n.jsx("div",{className:"h",ref:m.hour}),n.jsx("div",{className:"t",ref:m.time})]})]}):""})};function Mn({onValue:e,label:t,value:a,className:i,name:r,reload:o}){a=!!a;const[s,l]=p.useState(a),c=()=>{let f=!s;e({name:r,value:f,reload:o}),l(f)},_={};_.field="check",i&&(_.className=i);const u={};return s&&(u.active=""),n.jsxs("dl",{..._,children:[t?n.jsx("dt",{children:t}):"",n.jsx("dd",{...u,onClick:c})]})}const ho=({label:e,onValue:t,value:a,name:i,item:r})=>{const[o,s]=p.useState(!!a);p.useEffect(()=>{s(!!a)},[a]);let l=()=>{let c=parseInt(o)===0?1:0;s(c),t({value:c,name:i,key:r,item:r})};return n.jsx("div",{role:"switch",onClick:l,"aria-checked":`${o?"true":"false"}`})},Fn=({onValue:e,value:t,name:a,item:i})=>{const[r,o]=p.useState(!!t);p.useEffect(()=>{o(!!t)},[t]);let s=()=>{let l=parseInt(r)===0?1:0;o(l),e({value:l,name:a,key:i,item:i})};return n.jsx("div",{role:"switch",onClick:s,"aria-checked":`${r?"true":"false"}`})};function $n({value:e,onValue:t,name:a,placeholder:i="",title:r="",error:o="",hide:s=!1,edit:l=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:m,onSave:x,className:v=""}){const[b,g]=p.useState(e!==void 0?e.split(","):[]);p.useEffect(()=>{e!==void 0&&g(e!==void 0?e.split(","):[])},[e]);let y=()=>{g([...b,""])},E=A=>{b.splice(A,1),b.length===0&&b.push(""),g([...b]),m!==void 0&&m({value:b.join(","),name:a})},B=!!(s&&(e===""||e===void 0)),M=A=>{};if(!(l&&c)&&!u||!(l&&c)&&B)return"";const j={};j.field="group",v&&(j.className=v);const D=A=>{fe.Blur(A),x&&x({value:A.target.textContent,name:a})};let T=(A,ee)=>{b[ee]=A.target.textContent,t!==void 0&&t({value:b.join(","),name:a})},N=A=>{A.key==="Enter"&&A.preventDefault()};return n.jsxs("dl",{...j,children:[n.jsxs("dt",{children:[r,n.jsx("i",{onClick:y,children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.jsx("path",{d:"M12 5.25v13.5"}),n.jsx("path",{d:"M18.75 12H5.25"})]})})]}),n.jsx("dd",{children:b.map((A,ee)=>n.jsxs("li",{className:"field_group_item",children:[n.jsx("span",{onInput:ue=>T(ue,ee),edit:"true",name:a,placeholder:i,onPaste:M,contentEditable:!0,onKeyDown:N,onBlur:D,suppressContentEditableWarning:!0,children:b[ee]}),n.jsx("i",{onClick:()=>{E(ee)},children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),n.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})})]},ee))}),o?n.jsx("em",{children:o}):""]})}const Te={};function go(e){const[t,a]=p.useState({}),i=p.useRef(e);return Te.u=r=>{i.current={...i.current,[r.name]:r.value}},Te.r=()=>{a(Date.now())},[i.current]}function vo(e){Te.u(e),e.reload&&Te.r()}function bo(){Te.r&&Te.r()}const ko={Color:jn,Date:vt,Code:Cn,Check:Mn,Switch:vn,Input:Ae,Button:bn,Message:kn,Generator:yn,Captcha:wn,Modal:bt,Money:kt,Month:Sn,Notes:En,Number:yt,Password:Nn,Phone:Ct,Search:Tn,Select:jt,Set:Et,Textarea:In,Time:Dn,Users:St,String:Ae,Form:Et,runReload:bo,useData:go,setValue:vo,Palette:ho,Toogle:Fn,Group:$n},yo={Color:jn,Date:vt,Code:Cn,Check:Mn,Switch:vn,Input:Ae,Button:bn,Message:kn,Generator:yn,Captcha:wn,Modal:bt,Money:kt,Month:Sn,Notes:En,Number:yt,Password:Nn,Phone:Ct,Search:Tn,Select:jt,Set:Et,Textarea:In,Time:Dn,Users:St,String:Ae,Toogle:Fn,Group:$n},Bn={spinner:"_spinner_1ul0m_1",l:"_l_1ul0m_75",loadingB:"_loadingB_1ul0m_1"};function wo(){return n.jsx("div",{className:Bn.spinner,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 483 484",children:n.jsx("path",{d:"M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",transform:"translate(-9 -8)"})})})}function Co(){return n.jsxs("div",{className:Bn.l,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})}const jo={Spinner:wo,Inline:Co},Ln={s:"_s_t9swc_1"};let Nt;function So({className:e,placeholder:t}){let a=s=>{Nt(s.target.textContent)},i=s=>{s.key==="Enter"&&s.preventDefault()},r=s=>{s.preventDefault(),navigator.clipboard.readText().then(l=>{window.document.execCommand("insertText",!1,l)}).catch(l=>{})};const o={};return t&&(o.placeholder=t),o.className=e?[Ln.s,e].join(" "):Ln.s,n.jsx("div",{onPaste:r,onInput:a,onKeyDown:i,contentEditable:"true",...o,suppressContentEditableWarning:!0})}function Eo(e,t,a){let i=[],r=1,o=0,s={},l=50;return s[r]=[],e.forEach(c=>{c.text.toLowerCase().indexOf(t)>-1&&i.push(c.id)}),i.forEach(c=>{o++,o<=l||(r++,o=1,s[r]=[]),s[r].push(a[c])}),s}function No(e){Nt=e}function To(e){Nt=e}const Io={Field:So,Run:Eo,Get:No,useValue:To},Do={f:"_f_q3r0i_1"};let ie={};function Mo(e,t){switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"data":let a={};return Object.keys(t.data).forEach(r=>{r!=="sort"&&(a[r]=t.data[r],e.take[r]="999")}),{...e,data:a,take:e.take};case"size":return{...e,size:t.size};case"take":let i={[t.list]:t.take};i={...e.take,...i},e.active=!1;for(let r in i)i[r]!=="999"&&(e.active=!0);return ie.get(i,e.active),{...e,take:i,active:e.active};case"exit":for(let r in e.take)e.take[r]="999";return ie.get&&ie.get([],!1),{...e,size:0,active:!1,take:e.take,open:!1};default:throw new Error}}function Fo(){const[e,t]=p.useReducer(Mo,{open:!1,view:null,data:{},take:{},size:0,active:!1});return ie.set=a=>{t({type:"data",data:a})},ie.count=a=>{t({type:"size",size:a})},ie.reset=()=>{t({type:"exit"})},n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Do.f,onClick:()=>{t({type:"open",open:!0})},children:[n.jsx(hi,{}),e.active&&n.jsxs("i",{children:[e.size,"1"]})]}),e.open?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"filter o",onClick:()=>{t({type:"open",open:!1})}}),n.jsxs("div",{className:"filter m",children:[n.jsx("div",{className:"filter l",children:Object.keys(e.data).map(a=>n.jsx(Ro,{data:a,dispatch:t,state:e},a))}),n.jsx("div",{className:"filter b",onClick:()=>{t({type:"exit"})},children:"Убрать фильтер"})]})]}):n.jsx(n.Fragment,{})]})}function $o(e){ie.get=e}function Bo(e){ie.set!==void 0&&ie.set(e)}function Lo(e){ie.reset!==void 0&&ie.reset(e)}function Po(e,t,a,i){let r=[],o=1,s=0,l={},c=50;return l[o]=[],i===!0&&(Object.keys(t).forEach(_=>{Number.parseInt(t[_])!==999&&(e=e.filter(u=>Number.parseInt(u[_])===Number.parseInt(t[_])))}),Pn(e.length)),e.forEach(_=>{r.push(_.id)}),r.forEach(_=>{s++,s<=c||(o++,s=1,l[o]=[]),l[o].push(a[_])}),l}function Pn(e){ie.count(e)}function Ro({data:e,state:t,dispatch:a}){let i=()=>{a({type:"view",view:e})},r=()=>{a({type:"take",list:e,take:"999"})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"filter s",children:[n.jsxs("div",{onClick:i,children:[" ",t.data[e].name," "]}),t.take[e]!=="999"?n.jsx("div",{onClick:r,className:"filter x","data-icon":"F038"}):""]}),n.jsx("div",{className:"filter u","set-active":(t.view===e)+"",children:Object.keys(t.data[e].list).map((o,s)=>n.jsx(zo,{data:t.data[e].list[o],head:e,type:o,dispatch:a,state:t},s))})]})}function zo({data:e,head:t,state:a,dispatch:i,type:r}){if(r!=="999"&&e.count===void 0)return"";const o=()=>{i({type:"take",list:t,take:r})};return n.jsxs("div",{className:"filter a",onClick:o,"set-active":(a.take[t]===r)+"",children:[e.name,n.jsx("div",{className:"filter e",children:e.count})]})}const Oo={Button:Fo,useValue:$o,Set:Bo,Run:Po,Count:Pn,Reset:Lo},Ao={Bell:Ci,Send:ki,Add:bi},Rn={p:"_p_djnh1_1",l:"_l_djnh1_38"};function Zo(e){let t=3,a=e.page,i=e.count,r=[],o=()=>{r.push({page:1}),r.push({text:"..."})},s=()=>{r.push({text:"..."}),r.push({page:i})},l=(c,_)=>{for(let u=c;u<_;u++)r.push({page:u})};return i<t*2+6?l(1,i+1):a<t*2+1?(l(1,t*2+4),s()):a>i-t*2?(t=i>1e4?1:t,o(),l(i-t*2-2,i+1)):(t=i>1e4?1:t,o(),l(a-t,a+t+1),s()),r.length===1?n.jsx(n.Fragment,{}):n.jsxs("div",{className:Rn.p,children:[n.jsx("i",{onClick:()=>e.onChangePage(a-1),children:n.jsx("svg",{viewBox:"0 0 24 24",children:n.jsx("path",{d:"M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z"})})}),r.map((c,_)=>{const u={};return c.page&&(u.onClick=()=>e.onChangePage(c.page)),c.page===e.page&&(u.active=""),p.createElement("span",{...u,key:_},c.page||c.text)}),n.jsx("i",{onClick:()=>e.onChangePage(a+1),children:n.jsx("svg",{viewBox:"0 0 24 24",children:n.jsx("path",{d:"M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z"})})})]})}function Go(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,data:t.data,list:t.data[e.page],size:Object.keys(t.data).length};case"page":return{...e,page:t.page,list:e.data[t.page]};default:throw new Error}}function zn({load:e,list:t,item:a}){const i=p.useRef(null),[r,o]=p.useReducer(Go,{load:!1,list:[],data:{},page:1,wait:!1,item:a});p.useEffect(()=>{t!==null&&o({type:"load",load:e,data:t})},[e]);let s=l=>{if(l===0)return l=1;if(l>r.size)return l=r.size;o({type:"page",page:l})};return p.useEffect(()=>{},[r]),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Rn.l,ref:i,children:n.jsx(hn,{"el-empty":"Данные не найдены",children:r.load&&r.list!==void 0?r.list.map(l=>n.jsx(r.item,{data:l},l.id)):n.jsxs("div",{"type-data":"load",children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})})}),r.load&&r.list!==void 0?n.jsx(Zo,{page:r.page,count:r.size,onChangePage:s}):n.jsx(n.Fragment,{})]})}const Wo={Pagination:zn};function Ko({head:e,load:t,list:a,item:i}){const r=e;return n.jsxs(n.Fragment,{children:[n.jsx(r,{}),He.getSetting("s05")===1?n.jsx(zn,{list:a,load:t,item:i}):n.jsx(gn,{list:a,load:t,item:i})]})}function Uo(e,t){switch(t.type){case"load":return{...e,time:Date.now(),load:t.load,list:t.list,temp:t.temp};case"filter":return{...e,list:t.list,filter:t.active,band:t.band,time:Date.now()};case"search":return{...e,time:Date.now(),list:t.list};case"triage":return{...e,time:Date.now(),list:t.list,sort:t.sort};case"noload":return{...e,load:!0,time:Date.now()};default:throw new Error}}const Tt={};function Vo(e){Tt.get=e}function qo(e){Tt.get&&Tt.get(e)}const Yo={View:Ko,Reducer:Uo,useValue:Vo,setValue:qo},Ho={Get:Ti},Jo={Open:gr};S.Action=mn,S.Alert=Wr,S.Api=dt,S.Badge=ao,S.Bookmarks=Gr,S.Browser=Fr,S.Button=rn,S.Company=Ho,S.Component=ut,S.DataBase=oo,S.Event=ge,S.Events=ge,S.Files=_o,S.Filter=Oo,S.Form=ko,S.Format=Z,S.HotKey=so,S.Icon=Ur,S.Init=un,S.Input=yo,S.List=Yo,S.Loading=jo,S.Modal=Ye,S.Notice=Se,S.Notifications=Ao,S.Pagination=Wo,S.Phone=Jo,S.Router=Pe,S.Scrolling=gn,S.Search=Io,S.Setting=Zr,S.Sistym=Ue,S.Socket=ce,S.Store=ae,S.Tabs=fn,S.Triage=eo,S.User=He,S.WebRTC=O,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
31
+ <%s key={someKey} {...props} />`,zt,Ce,ws,Ce),ta[Ce+zt]=!0}}return d===i?gs(V):hs(V),V}}function vs(d,h,k){return na(d,h,k,!0)}function bs(d,h,k){return na(d,h,k,!1)}var ks=bs,ys=vs;$e.Fragment=i,$e.jsx=ks,$e.jsxs=ys}()),$e}process.env.NODE_ENV==="production"?ct.exports=ai():ct.exports=ii();var n=ct.exports;const ri={notice:"_notice_9i5tr_2",error:"_error_9i5tr_9",success:"_success_9i5tr_12",remark:"_remark_9i5tr_15",copy:"_copy_9i5tr_18","show-notice":"_show-notice_9i5tr_1","hide-notice":"_hide-notice_9i5tr_1"};let xe={};function oi(){let[e,t]=p.useState([]);return xe.set=a=>{t([...e,a])},xe.del=a=>{t(e.filter(i=>i.key!==a))},e.length===0?"":n.jsx("ul",{className:ri.notice,children:e.map(a=>a.item)})}function Be({data:e}){let[t,a]=p.useState("show");p.useEffect(()=>{setTimeout(function(){a("hide")},1800),setTimeout(function(){xe.del(e.key)},2500)},[e.key]);let i,r;switch(e.type){case"error":i=n.jsx(ke.error,{}),r="Ошибка:";break;case"success":i=n.jsx(ke.success,{}),r="Информация:";break;case"copy":i=n.jsx(ke.success,{}),r="Копирование:";break;case"remark":i=n.jsx(ke.success,{}),r="Подсказка:";break;default:i=n.jsx(ke.success,{}),r="Предупреждение:";break}return n.jsxs("li",{className:"item "+e.type,"data-status":t,children:[i,n.jsx("b",{children:r}),n.jsx("p",{children:e.text})]})}function si(e){let t=Date.now(),a={key:t,...e};xe.set({item:n.jsx(Be,{data:a},t),key:t})}function li(e){let t=Date.now(),a={key:t,text:e,type:"error"};xe.set({item:n.jsx(Be,{data:a},t),key:t})}function di(e){let t=Date.now(),a={key:t,text:e,type:"success"};xe.set({item:n.jsx(Be,{data:a},t),key:t})}function ci(e){let t=Date.now(),a={key:t,text:e,type:"remark"};xe.set({item:n.jsx(Be,{data:a},t),key:t})}function _i(e){let t=Date.now(),a={key:t,text:e,type:"copy"};xe.set({item:n.jsx(Be,{data:a},t),key:t})}const ke={};ke.error=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{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",fill:"#bb2014"}),n.jsx("path",{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",fill:"#fff"})]}),ke.success=()=>n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{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",fill:"#367738"}),n.jsx("path",{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",fill:"#fff"})]});const _t={alerts:"_alerts_1pds5_1",menuAnimation:"_menuAnimation_1pds5_1",menuItemAnimation:"_menuItemAnimation_1pds5_1","--body":"_--body_1pds5_103",allert:"_allert_1pds5_111","--form":"_--form_1pds5_111",al:"_al_1pds5_1"};let Le={};function ui(){let[e,t]=p.useState("");return Le.set=a=>t(a),Le.del=()=>t(""),n.jsx(n.Fragment,{children:e})}const fi=({data:e,callback:t})=>(e.button=e.button===void 0?"Подтвердить":e.button,n.jsxs("div",{className:_t.alerts,children:[n.jsxs("dl",{children:[n.jsx("dt",{children:e.title}),n.jsx("dd",{children:e.text}),n.jsx("ul",{children:n.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),Le.del()},children:e.button})})]}),n.jsx("div",{className:_t["--body"],onClick:Le.del})]}));function mi(e,t){Le.set(n.jsx(fi,{data:e,callback:t}))}const Se={Send:si,Error:li,Remark:ci,Success:di,Copy:_i},Pe={Path:Sa,setPage:fa,getPage:Zt,usePage:ua,isPage:ma,setModule:xa,getModule:Gt,useModule:pa,isModule:ha,setTabs:va,getTabs:Ke,useTabs:ga,isTabs:ba,useId:ka,setId:wa,subId:ya,getId:Ca,isId:ja};function pi(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M5.15837 11.491C5.08489 12.887 5.16936 14.373 3.92213 15.3084C3.34164 15.7438 3 16.427 3 17.1527C3 18.1508 3.7818 19 4.8 19H19.2C20.2182 19 21 18.1508 21 17.1527C21 16.427 20.6584 15.7438 20.0779 15.3084C18.8306 14.373 18.9151 12.887 18.8416 11.491C18.6501 7.85223 15.6438 5 12 5C8.35617 5 5.34988 7.85222 5.15837 11.491Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"}),n.jsx("path",{d:"M10.5 3.125C10.5 3.95343 11.1716 5 12 5C12.8284 5 13.5 3.95343 13.5 3.125C13.5 2.29657 12.8284 2 12 2C11.1716 2 10.5 2.29657 10.5 3.125Z",stroke:"currentColor",strokeWidth:"1",fill:"none"}),n.jsx("path",{d:"M15 19C15 20.6569 13.6569 22 12 22C10.3431 22 9 20.6569 9 19",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]})}function xi(){return n.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:"M4.4094 11.4516C4.62188 7.41446 7.95728 4.25 12 4.25C16.0427 4.25 19.3781 7.41446 19.5906 11.4516C19.5997 11.6241 19.6064 11.7893 19.6129 11.9485C19.6351 12.49 19.6544 12.9615 19.7525 13.4133C19.8698 13.9531 20.0867 14.3775 20.5279 14.7084C21.2972 15.2854 21.75 16.191 21.75 17.1527C21.75 18.534 20.6628 19.75 19.2 19.75H4.8C3.33719 19.75 2.25 18.534 2.25 17.1527C2.25 16.191 2.70278 15.2854 3.47213 14.7084C3.91329 14.3775 4.13025 13.9531 4.24749 13.4133C4.34561 12.9615 4.3649 12.49 4.38705 11.9485V11.9485L4.38705 11.9485C4.39356 11.7893 4.40032 11.6241 4.4094 11.4516Z",fill:"#141B34"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5286 1.37434C10.9737 1.08296 11.517 1 12 1C12.483 1 13.0263 1.08296 13.4714 1.37434C13.9652 1.69759 14.25 2.22083 14.25 2.875C14.25 3.47116 14.017 4.09375 13.6626 4.57057C13.3138 5.03989 12.7415 5.5 12 5.5C11.2585 5.5 10.6862 5.03989 10.3374 4.57057C9.98299 4.09375 9.75 3.47116 9.75 2.875C9.75 2.22083 10.0348 1.69759 10.5286 1.37434Z",fill:"#141B34"}),n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 18C9.55228 18 10 18.4477 10 19C10 20.1046 10.8954 21 12 21C13.1046 21 14 20.1046 14 19C14 18.4477 14.4477 18 15 18C15.5523 18 16 18.4477 16 19C16 21.2091 14.2091 23 12 23C9.79086 23 8 21.2091 8 19C8 18.4477 8.44772 18 9 18Z",fill:"#141B34"})]})}function hi(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:n.jsx("path",{d:"M8.85746 12.5061C6.36901 10.6456 4.59564 8.59915 3.62734 7.44867C3.3276 7.09253 3.22938 6.8319 3.17033 6.3728C2.96811 4.8008 2.86701 4.0148 3.32795 3.5074C3.7889 3 4.60404 3 6.23433 3H17.7657C19.396 3 20.2111 3 20.672 3.5074C21.133 4.0148 21.0319 4.8008 20.8297 6.37281C20.7706 6.83191 20.6724 7.09254 20.3726 7.44867C19.403 8.60062 17.6261 10.6507 15.1326 12.5135C14.907 12.6821 14.7583 12.9567 14.7307 13.2614C14.4837 15.992 14.2559 17.4876 14.1141 18.2442C13.8853 19.4657 12.1532 20.2006 11.226 20.8563C10.6741 21.2466 10.0043 20.782 9.93278 20.1778C9.79643 19.0261 9.53961 16.6864 9.25927 13.2614C9.23409 12.9539 9.08486 12.6761 8.85746 12.5061Z",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}const gi={n:"_n_euuvm_1"};let Re={},ze=[];const vi=(e,t)=>{switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"add":return{...e,news:[...e.news,t.data],active:!0};case"news":return{...e,news:t.data,active:t.data.length!==0};case"hide":let a=e.news.filter(r=>r.id!==t.id);return{...e,news:a,active:a.length!==0};case"size":return{...e,size:t.size};case"take":let i={[t.list]:t.take};i={...e.take,...i},e.active=!1;for(let r in i)i[r]!=="999"&&(e.active=!0);return Re.get(i,e.active),{...e,take:i,active:e.active};case"exit":return e;default:throw new Error}};function bi(e){Re.fn({action:"add",data:e})}function ki(e){Re.fn({action:"add",data:e})}function yi(e){Re.fn({action:"new",data:e})}function wi(e){Re.fn=e}function Ci(){const[e,t]=p.useReducer(vi,{open:!1,active:!1,news:[],take:{}});ce.useListener("bell",async i=>{}),wi(async i=>{switch(i.action){case"add":ze.push(i.data);break}}),p.useEffect(()=>{(async()=>{let i=await ce.Send({type:"module",module:"M00",query:"x0054",array:["M01","M02"]});for(let r in i)switch(r){case"news":t({type:"news",data:i.news});break;case"M01":i[r].forEach(o=>{ze.push({module:"M01",type:1,id:o.id,datetime:new Date(o.tDate).getTime(),txt:o.p01})});break;case"M02":i[r].forEach(o=>{ze.push({module:"M02",type:117,id:o.id,datetime:new Date(o.tDate).getTime(),txt:o.p01})});break}})(),setInterval(()=>{ze.forEach((i,r)=>{t({type:"add",data:{module:i.module,type:i.type,id:i.id,datetime:i.datetime,txt:i.title}}),i.datetime<new Date().getTime()&&ze.splice(r,1)})},6e4)},[]);let a=async i=>{t({type:"hide",id:i.id})};return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:gi.n,onClick:()=>{t({type:"open",open:!0})},children:e.active?n.jsx(xi,{}):n.jsx(pi,{})}),e.open?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"notify-o",onClick:()=>{t({type:"open",open:!1})}}),n.jsxs("div",{className:"notify-m",children:[n.jsx("div",{className:"notify-l",children:e.news.map((i,r)=>n.jsx(ji,{data:i,dispatch:t},r))}),n.jsx("div",{className:"notify-b",onClick:a,children:"История"})]})]}):""]})}const ji=({data:e,dispatch:t})=>{let a=async i=>{t({type:"hide",id:i.id}),await ce.Send({type:"module",module:"M00",query:"x0055",data:{id:i.id,type:i.type,db:i.db}})};return n.jsxs("div",{className:"notify-i",children:[n.jsx("div",{className:"--icon","data-icon":e.type}),n.jsxs("div",{className:"--body",children:[n.jsx("div",{className:"--name",children:e.type}),n.jsx("div",{className:"--text",children:e.txt})]}),n.jsx("div",{className:"--hide","data-icon":"F038",onClick:()=>a(e),children:" "})]})},Si="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function Ei(e){return new SharedWorker("data:text/javascript;base64,"+Si,{name:e==null?void 0:e.name})}function Ni(e){let t={},a={};e.data.forEach(r=>{t[r.id]={s:r.v,n:r.a},a[r.id]=r});let i={...be(),901:t};Ut(a),Me(i)}function Ti(){let e=Vt(),t={};return Object.keys(e).forEach(a=>{t[e[a].id]={},t[e[a].id].name=e[a].a}),t}let oe={},q={},qe=["filter","online","users","company","select","setting","info","job"];function Ii(){const[e,t]=p.useState(!1),[a,i]=p.useState(!1);function r(o){const s=new Ei;oe.laodData=l=>{let c=qe.indexOf(l);c>=0&&qe.splice(c,1),qe.length===0&&t(!0)},oe.send=l=>{s.port.postMessage({type:"send",json:l})},s.port.onmessage=l=>{let c=l.data;c.type==="error"&&i(!0),c.type==="true"&&t(!0),c.type==="closed"&&s.port.postMessage({type:"connect",ukey:o,lk:st()}),qe.length!==0&&oe.laodData(c.type),q[c.type]&&q[c.type](c)},s.port.postMessage({type:"connect",ukey:o,lk:st()})}return[r,e,a]}q.module=e=>{oe[e.listen]!==void 0&&(oe[e.listen](e),delete oe[e.listen])},q.bell=yi,q.company=Ni,q.info=e=>{let t={};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"),qt(t),Wt(e.data.menu)},q.version=async e=>{Ue.version.Server(e.data)},q.online=async e=>{},q.offline=async e=>{},q.chat=e=>{switch(e.data.action){case"new_message":Pe.getModule();break;case"view_message":Pe.getModule();break;case"write_message":Pe.getModule();break}},q.users=e=>{let t={};e.data.forEach(i=>{let r=i.p01+" "+i.p02+" "+i.p03,o=i.p01+" "+i.p02.substring(0,1)+"."+i.p03.substring(0,1)+".",s=i.p01.substring(0,1)+""+i.p02.substring(0,1)+i.p03.substring(0,1);t[i.id]={id:i.id,admin:i.m.includes("99"),ava:JSON.parse(i.a),job:i.j,login:"",online:{time:i.o,status:0},sts:i.s,nameFull:r,name:o,number:s}});let a={...be(),user:t};Me(a)},q.api=e=>{let t={};e.data.forEach(a=>{t[a.api]={key:a.key,p01:a.p01,p02:a.p02}})},q.delete=()=>{ne()},q.select=e=>{let t={...be()};e.data.forEach(a=>{t[a.n]=JSON.parse(a.s)}),Me(t)},q.job=e=>{let t={...be()},a={};Object.keys(e.data).forEach(i=>{a[i]={s:1,n:e.data[i]}}),t[1]=a,Me(t)},q.setting=e=>{Ea(e.data)},q.app=()=>{};const Di=(e,t)=>{oe[e]=t},Mi=(e,t)=>{oe[e](t)};function Fi(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(a=>{oe[t]=i=>{i.error!==void 0?a({error:i.error}):a(i.data),delete oe[t]},e={...e,listen:t},e.type="modules",oe.send(e)})}const ce={useConnect:Ii,useListener:Di,setListener:Mi,Send:Fi};function $i(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let a={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:"      ",_:"    "};for(const i in a)t=t.replace(i,a[i]);return t}function Bi(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],a=new Date(e);return{day:(""+a.getFullYear()).slice(-2)+""+("0"+(a.getMonth()+1)).slice(-2)+("0"+a.getDate()).slice(-2),name:a.getDate()+" "+t[a.getMonth()]}}const Li=e=>{function t(B,M){var j,T,D;B=B??"",M=M??1;for(var j=[],D=0,T=B.length;D<T;)j.push(B.slice(D,D+=M));return j}function a(B,M){var j=[2,0,1,1,1,2];return M[B>4&&B<20?2:j[Math.min(B,5)]]}var i={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},r,o,s,l,g,c,_,b,u,f,m,x;u=parseFloat(e).toFixed(2).split("."),c=u[0],l=u[1];var v=12-c.length;if(v<0)return!1;for(var b=[];v--;)b.push("0");c=b.join("")+c;var g=[];if(c>0){f=t(c,3);for(var y=-1;y<f.length;y++)if(_=f[y],_>0&&(m=t(_,1),r=parseInt(m[0]),o=parseInt(m[1]),s=parseInt(m[2]),g.push(i.a100[r-1]),x=y+1==3?"a2":"a1",o>1?g.push(i.a20[o-2]+(s>0?" "+i[x][s-1]:"")):g.push(o>0?i.a10[s]:i[x][s-1]),f.length>y+1)){var E=i["u"+(y+1)];g.push(a(_,E))}}else g.push(i.null);return g.push(a(c,i.ur)),g.push(l+" "+a(l,i.uc)),g.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function Pi(e){let t=-1,a=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do e=e/1024,t++;while(e>1024);return Math.max(e,.1).toFixed(1)+a[t]}function Ri(e){let t={};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]}function zi(e,t,a,i){let r={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var s in this.rules)for(var l in this.rules[s])for(var c=0,_=this.rules[s][l].length;c<_;c++)this.rules[s][l][c]=this.rule(this.rules[s][l][c])},rule:function(s){var l=s.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return l?{sex:l[1],test:l[2].split(","),mods:[l[3],l[4],l[5],l[6],l[7]]}:!1},word:function(s,l,c,_){if(_===this.gcaseNom)return s;if(s.match(/[-]/)){for(var u=s.split("-"),f=0,m=u.length;f<m;f++)u[f]=this.word(u[f],l,c,_);return u.join("-")}if(s.match(/^[А-ЯЁ]\.?$/i))return s;this.init();var x=this.rules[c];let v;return x.exceptions&&(v=this.pick(s,l,_,x.exceptions,!0),v)?v:(v=this.pick(s,l,_,x.suffixes,!1),v||s)},pick:function(s,l,c,_,u){let f=s.toLowerCase();for(var m=0,x=_.length;m<x;m++)if(this.ruleMatch(f,l,_[m],u))return this.applyMod(s,c,_[m]);return!1},ruleMatch:function(s,l,c,_){if(c.sex===this.sexM&&l===this.sexF||c.sex===this.sexF&&l!==this.sexF)return!1;for(var u=0,f=c.test.length;u<f;u++){var m=_?s:s.substr(Math.max(s.length-c.test[u].length,0));if(m===c.test[u])return!0}return!1},applyMod:function(s,l,c){let _;switch(l){case this.gcaseNom:_=".";break;case this.gcaseGen:_=c.mods[0];break;case this.gcaseDat:_=c.mods[1];break;case this.gcaseAcc:_=c.mods[2];break;case this.gcaseIns:_=c.mods[3];break;case this.gcasePos:_=c.mods[4];break}for(var u=0,f=_.length;u<f;u++){var m=_.substr(u,1);switch(m){case".":break;case"-":s=s.substr(0,s.length-1);break;default:s+=m}}return s},getSex:()=>{if(r.mn.length>2)switch(r.mn.substr(r.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:s=>((r.fullNameSurnameLast?"":r.lastName(s)+" ")+r.firstName(s)+" "+r.middleName(s)+(r.fullNameSurnameLast?" "+r.lastName(s):"")).replace(/^ +| +$/g,""),lastName:s=>r.word(r.ln,r.sex,"lastName",s),firstName:s=>r.word(r.fn,r.sex,"firstName",s),middleName:s=>r.word(r.mn,r.sex,"middleName",s)};if(typeof t>"u"){var o=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!o)return"Cannot parse supplied name";o[5]&&o[3].match(/(ич|на)$/)&&!o[5].match(/(ич|на)$/)?(e=o[5],t=o[1],a=o[3],r.fullNameSurnameLast=!0):(e=o[1],t=o[3],a=o[5])}return r.ln=e,r.fn=t||"",r.mn=a||"",r.sex=i||r.getSex(),r}function Oi(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function Ai(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function Zi(e){return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function Gi(e,t){let a=t+"";for(;a.length<e;)a="0"+a;return a}function Wi(e,t,a){let i=t/e*a;return(typeof i!="number"||i===1/0)&&(i=0),parseFloat(i).toFixed(1)}function Ki(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Ui(e,t){e=Math.abs(e)%100;let a=e%10;return e>10&&e<20?t[2]:a>1&&a<5?t[1]:a===1?t[0]:t[2]}function Vi(e,t,a){return be(e,t)?be(e,t).n:a||""}function qi(e,t){return e.reduce(function(a,i){let r=t instanceof Function?t(i):i[t];return a[r]!==void 0||(a[r]={}),a[r][i.id]=i,a},{})}function Yi(e){return parseInt((Date.now()-new Date(e).getTime())/31536e6+"")+""}const Z={Age:Yi,Date:$i,MoneyString:Li,DateSort:Bi,Size:Pi,TypeFiles:Ri,Cases:zi,Initials:Oi,Month:Ai,Money:Zi,Number:Gi,Percent:Wi,CapitalizeFirstLetter:Ki,DeclensionWord:Ui,Select:Vi,ObjectByArray:qi};function Hi({children:e}){return n.jsx("div",{className:"l",children:n.jsx("ul",{children:e})})}const se={white:"_white_11p39_14",black:"_black_11p39_26",shake:"_shake_11p39_1",modal:"_modal_11p39_73",o:"_o_11p39_83",w:"_w_11p39_14",h:"_h_11p39_107",l:"_l_11p39_121",t:"_t_11p39_159",m:"_m_11p39_73",x:"_x_11p39_167",s:"_s_11p39_177",c:"_c_11p39_182",f:"_f_11p39_187",btn:"_btn_11p39_230",g:"_g_11p39_243","size-a":"_size-a_11p39_296","size-s":"_size-s_11p39_300","size-m":"_size-m_11p39_304","size-l":"_size-l_11p39_308","size-x":"_size-x_11p39_312","size-f":"_size-f_11p39_316",confirm:"_confirm_11p39_322",cancel:"_cancel_11p39_327",disabled:"_disabled_11p39_332",await:"_await_11p39_339",active:"_active_11p39_389",coincidence:"_coincidence_11p39_395",sa:"_sa_11p39_431",ss:"_ss_11p39_435",sm:"_sm_11p39_439",sl:"_sl_11p39_443",sx:"_sx_11p39_447",sf:"_sf_11p39_451"};function Ji({children:e}){return n.jsx("div",{className:se.s,children:e})}function Xi({children:e,className:t}){let a={};return t&&(a.className=t),n.jsx("div",{"data-form":"outline",...a,children:n.jsx("ul",{children:e})})}function Qi({children:e}){return n.jsx("div",{className:se.c,children:e})}const an={btn:"_btn_1hz2s_6",confirm:"_confirm_1hz2s_19"};function rn({onClick:e,onSend:t,label:a,onRef:i}){let[r,o]=p.useState(!1);const s=()=>{if(e)return e();r||(o(!0),t&&t(o))};return n.jsx("button",{ref:i,className:[an.btn,an.confirm].join(" "),onClick:s,children:r?"Ожидайте":a})}let ye={};function er({config:e}){let[t,a]=p.useState([]);return ye.x=i=>{i||a([])},ye.config=e,ye.add=i=>{a([...t,i])},n.jsx(n.Fragment,{children:t.map(i=>i)})}function tr({title:e,children:t,button:a,tabs:i,size:r="m",menu:o}){const[s,l]=p.useState(!0),c=p.useRef(),_=f=>{if(a){if(a.onClick)return f(!1),a.onClick({setOpen:l});if(a.onSend)return a.onSend({setOpen:l,disabled:f})}},u=()=>{c.current.setAttribute("shake",!0),setTimeout(()=>{c.current.setAttribute("shake",!1)},1e3)};return n.jsx(n.Fragment,{children:s?n.jsxs("div",{className:`${se.modal} ${se.white}`,children:[n.jsx("div",{className:se.o,onClick:u}),n.jsxs("div",{className:[se.w,se[`s${r}`]].join(" "),ref:c,children:[n.jsxs("div",{className:se.h,children:[n.jsx("div",{className:se.t,children:e}),n.jsxs("div",{className:se.m,children:[i&&n.jsx("nav",{children:i.map((f,m)=>n.jsx("span",{onClick:f.onClick,className:f.active?"active":"",children:f.name},m))}),o]}),n.jsx("div",{className:se.x,onClick:()=>{l(!1)},children:n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:n.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),t,a!==void 0?n.jsx(rn,{label:a.label,onSend:_}):""]})]}):""})}function nr(e){ye.add(n.jsx(ar,{children:e},String(Date.now())))}function ar({children:e}){return n.jsx(n.Fragment,{children:e})}function ir(e){if(e.target.classList[0]!=="modal")return;let t=e.target.children[0];t.setAttribute("shake",!0),setTimeout(()=>{t.setAttribute("shake",!1)},1e3)}function rr({type:e,name:t,params:a}){let[i,r]=p.useState(null);return p.useEffect(()=>{ye.config(e,t,a,r)},[a.id]),n.jsx(n.Fragment,{children:i})}function or(e,t,a){ye.config(e,t,a)}function sr(e){ye.x(e)}const Ye={List:Hi,Scroll:Ji,Main:tr,Add:nr,Icon:rr,Open:or,Shake:ir,Form:Xi,Center:Qi,Close:sr};function on({text:e,type:t,button:a}){let[i,r]=p.useState(!1),o={active:t};const s=()=>{if(a){if(a.onClick)return a.onClick({});if(a.onSend)return i?void 0:(r(!0),a.onSend(r))}};return n.jsxs("div",{className:_t.al,...o,children:[n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",fillRule:"evenodd",clipRule:"evenodd",children:n.jsx("path",{fill:"#fff",d:"M10.362 2.015C11.4264 1.66167 12.5736 1.66167 13.638 2.015C14.6981 2.36687 15.5304 3.20141 16.3665 4.37395C17.1999 5.5426 18.1208 7.17206 19.3078 9.2725L19.3544 9.35496C20.5417 11.4557 21.4625 13.0851 22.0364 14.4065C22.613 15.7343 22.9002 16.8807 22.6711 17.9821C22.4403 19.0911 21.8714 20.0995 21.0428 20.8617C20.2162 21.622 19.0907 21.9428 17.6736 22.0968C16.2645 22.25 14.4212 22.25 12.0488 22.25H11.9513C9.57882 22.25 7.73554 22.25 6.32642 22.0968C4.90927 21.9428 3.78379 21.622 2.95722 20.8617C2.12862 20.0995 1.55968 19.0911 1.32895 17.9821C1.0998 16.8807 1.387 15.7343 1.96365 14.4065C2.53752 13.0851 3.45835 11.4557 4.64558 9.35495L4.69218 9.2725L4.69218 9.27249C5.87921 7.17206 6.80008 5.5426 7.63347 4.37395C8.46963 3.20141 9.30194 2.36687 10.362 2.015ZM11 17C11 16.4477 11.4457 16 11.9955 16H12.0045C12.5543 16 13 16.4477 13 17C13 17.5523 12.5543 18 12.0045 18H11.9955C11.4457 18 11 17.5523 11 17ZM11 13C11 13.5523 11.4477 14 12 14C12.5523 14 13 13.5523 13 13V9C13 8.44772 12.5523 8 12 8C11.4477 8 11 8.44772 11 9V13Z"})}),n.jsx("span",{children:e}),a&&n.jsx("button",{onClick:s,children:a.label})]})}const Q={h:"_h_1usnu_1",g:"_g_1usnu_11",hr:"_hr_1usnu_16",hl:"_hl_1usnu_28",t:"_t_1usnu_40",s:"_s_1usnu_60",u:"_u_1usnu_69",o:"_o_1usnu_76",l:"_l_1usnu_105",hh:"_hh_1usnu_115",c:"_c_1usnu_128",loadingB:"_loadingB_1usnu_1",m:"_m_1usnu_180",ul:"_ul_1usnu_196",f:"_f_1usnu_226"},sn=({title:e,left:t,right:a,children:i})=>n.jsxs("div",{className:Q.h,children:[n.jsx("div",{className:Q.t,children:e}),t&&n.jsx("div",{className:Q.hl,children:t}),a&&n.jsx("div",{className:Q.hr,children:a}),i]}),ln=({children:e,...t})=>n.jsx("div",{className:Q.l,children:e}),dn=({children:e})=>n.jsx("div",{className:Q.s,children:e}),cn=({children:e,edit:t})=>{const a={};return t&&(a.edit=""),n.jsx("div",{...a,className:Q.f,children:e})};function _n({children:e}){return n.jsx("div",{className:Q.g,children:e})}const ut={Header:sn,Section:dn,Group:_n,Form:cn,List:ln,A:on,U:({children:e})=>n.jsx("div",{className:Q.u,children:e}),G:_n,C:({children:e})=>n.jsx("div",{className:Q.c,children:e}),L:ln,O:({children:e,className:t,title:a})=>n.jsxs("div",{className:[Q.o,t].join(" "),children:[a&&n.jsx("div",{className:Q.hh,children:a}),e]}),S:dn,H:sn,M:({children:e})=>n.jsx("div",{className:Q.m,children:e}),F:cn},lr=(e,t)=>{switch(t.type){case"load":return{...e,list:t.list.reverse(),load:!1};case"id":return{...e,id:t.id};case"add":return{...e,list:[t.data,...e.list]};case"update":return{...e,list:e.list.map(a=>a.id===t.data.id?Object.assign({},a,{[t.data.name]:t.data.value}):a),temp:e.temp.map(a=>a.id===t.data.id?Object.assign({},a,{[t.data.name]:t.data.value}):a)};case"view":return{...e,view:e.view==="card"?"item":"card"};case"revers":return{...e,list:[...e.list.reverse()],temp:[...e.temp.reverse()],revers:!e.revers};case"delete":return{...e,list:e.list.filter(a=>a.id!==t.id)};case"edit":return{...e,list:e.list.map(a=>a.id===t.j.item?Object.assign({},a,{[t.j.name]:t.j.value}):a)};default:return e}},dr=()=>({load:!0,list:[],name:"Файлы",add:!1,search:!1,revers:!0}),cr=()=>{let[e,t]=p.useState([]);return n.jsx(n.Fragment,{children:e.length!==0?n.jsxs("div",{className:"upload view",children:[n.jsxs("div",{className:"--head",children:[n.jsx("b",{children:"Загрузки"}),n.jsx("i",{className:"x",onClick:()=>t([]),"data-icon":"F038"})]}),n.jsx("div",{className:"--list",children:e.map(a=>a)})]}):""})},_r=({id:e,name:t,listen:a,dir:i})=>{t=t||"Файлы";const[r,o]=p.useReducer(lr,{},dr),s=()=>{Ye.Add(n.jsx(ur,{dir:i,dispatch:o,id:e},new Date().getTime()))};return p.useEffect(()=>{(async()=>{let l=await ce.Send({type:"module",module:"M09",query:"x0900",data:{dir:i,id:e}});o({type:"load",list:l})})()},[e,i]),n.jsxs(ut.O,{children:[" ",n.jsx(ut.H,{title:t,right:n.jsx("i",{className:"f025","data-icon":"C005 25 pointer","data-color":"_b5b9cc :506290",onClick:s}),left:n.jsx("i",{className:"f025","data-icon":"E009 25","data-color":"_2196f3"})}),n.jsx("ul",{"data-empty":"Файлов нет",className:"files_list",children:r.load?n.jsxs("div",{"type-load":"load",children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]}):r.list.length===0?n.jsx(n.Fragment,{}):r.list.map((l,c)=>n.jsx(fr,{dispatch:o,data:l},c))})]})},ur=({id:e,dir:t,dispatch:a})=>{let[i,r]=p.useState(!0),o=p.useRef(null),s=_=>{_.preventDefault(),_.stopPropagation()},l=_=>{},c=_=>{};return p.useEffect(()=>{let _=o.current;["dragenter","dragover","dragleave","drop"].forEach(u=>{_.addEventListener(u,s,!1),document.body.addEventListener(u,s,!1)}),["dragenter","dragover"].forEach(u=>{_.addEventListener(u,l,!1)}),["dragleave","drop"].forEach(u=>{_.addEventListener(u,c,!1)})},[]),n.jsx(n.Fragment,{children:i?n.jsx(n.Fragment,{children:n.jsx("div",{className:"modal o ",onClick:Ye.Shake,children:n.jsxs("div",{className:"b",children:[n.jsx("div",{className:"h",children:"Загрузка файлов"}),n.jsx("div",{className:"x","data-icon":"F038",onClick:()=>{r(!1)}}),n.jsxs("div",{className:"upload",ref:o,children:[n.jsx("input",{type:"file",id:"fileElem",name:"files",multiple:!0}),n.jsx("dd",{}),n.jsx("i",{"data-icon":"F061"})]})]})},new Date().getTime())}):""})},fr=({data:e,dispatch:t})=>{let a=async()=>{let o=await(await fetch(dt.url().files+"/yandex/data/"+e.id,{headers:{"Content-type":"application/json;charset=utf-8",SSID:ae.getSSID()||""}})).blob();if(o.size!==2){let s=new Blob([o],{type:o.type});s=URL.createObjectURL(s);let l=document.createElement("a");l.setAttribute("href",s),l.setAttribute("download",e.name),l.click()}},i=async()=>{(await(await fetch(dt.url().files+"/yandex/delete/"+e.id,{headers:{"Content-type":"application/json;charset=utf-8",SSID:ae.getSSID()||""}})).json()).status==="success"&&(t({type:"delete",id:e.id}),Se.Send({type:"success",text:"Файл успешно удалён"}))};return n.jsxs("li",{children:[n.jsx("div",{className:"f035",children:Z.TypeFiles(e.type)}),n.jsx("div",{className:"f100",children:Z.Date(e.uDate,"dd.mm.yy")}),n.jsx("div",{className:"f000",children:e.name}),n.jsxs("div",{className:"f050 flex button",children:[n.jsx("i",{className:"f025","data-icon":"F060 35 pointer","data-color":"_b5b9cc :4CAF50",onClick:a}),n.jsx("i",{className:"f025","data-icon":"F048 35 pointer","data-color":"_b5b9cc :FF9800",onClick:i})]}),n.jsx("div",{className:"f080",children:Z.Size(e.size)})]})},He={setSetting:Na,getSetting:Ta};let G={};G.list=Ra(),G.active=null;const mr=()=>{var r;let[e,t]=p.useState([]),[a,i]=p.useState(He.getSetting("s03"));return p.useEffect(()=>{(async()=>{let o=Object.keys(G.list);if(o.length!==0){let s=[];o.forEach((l,c)=>{s.push({item:n.jsx(ft,{data:G.list[l]},G.list[l].id),link:G.list[l].link})}),t(s)}})()},[]),G.active=o=>{var s;i(o),(s=document.querySelector("app-body"))==null||s.setAttribute("bookmarks",o===1?"bottom":"")},G.set=o=>{t([...e,{item:n.jsx(ft,{data:o},o.id),link:o.link}])},G.del=o=>{e.forEach((s,l)=>{s.link===o&&e.splice(l,1)}),t([...e])},(r=document.querySelector("app-body"))==null||r.setAttribute("bookmarks",a===1&&e.length!==0?"bottom":""),a!==0?n.jsx(n.Fragment,{children:e.length!==0?n.jsx("div",{className:"bookmarks",children:e.map(o=>o.item)}):""}):""},pr=({id:e,type:t,name:a})=>{let i=t+"-"+e,[r,o]=p.useState(G.list[i]!==void 0);p.useEffect(()=>{o(G.list[i]!==void 0)},[i]);let s=()=>{G.list[i]!==void 0?(G.del(i),delete G.list[i],Yt(G.list),o(!1),Se.Send({type:"success",text:"Запись удален из закладок"})):(G.list[i]={id:e,name:a,type:t,link:i},G.set(G.list[i]),Yt(G.list),o(!0),Se.Send({type:"success",text:"Запись добавлен в закладки"}))};return n.jsx(n.Fragment,{children:He.getSetting("s03")!==0?n.jsx("i",{"data-icon":"C018","data-color":r?"_F44333 :F44333":"_b5b9cc :F44333",onClick:s}):""})},ft=({data:e})=>{let t=i=>{i.preventDefault(),delete G.list[e.link],G.del(e.link)},a=()=>{Pe.setId(e.id)};return n.jsx("span",{onContextMenu:t,onClick:a,children:e.name})},xr=e=>{G.active(e)},O={},mt={},w={};w.config={iceServers:[{url:"stun:stun.l.google.com:19302"}]},w.constraints={optional:[{DtlsSrtpKeyAgreement:!0}]},w.other=[],w.users={},w.asset=0,w.remoute=!1,w.stream=null,w.user=0,w.connect=!1,w.offer=null,w.btnRefuse=null,w.time=!1;let we;we=document.createElement("audio"),we.setAttribute("autoplay","true"),we.setAttribute("muted","true"),O.start=async e=>{w.rtc=new RTCPeerConnection(w.config),w.other=[],w.remoute=!1,w.rtc.onicecandidate=a=>{a.candidate&&w.other.push(a.candidate)},w.rtc.ontrack=a=>{if(a.streams&&a.streams[0])we.srcObject=a.streams[0];else{let i=new MediaStream(a.track);we.srcObject=i}};const t=await navigator.mediaDevices.getUserMedia({video:!1,audio:{echoCancellation:!1,autoGainControl:!0}});t.getTracks().forEach(a=>{w.rtc.addTrack(a,t)}),w.rtc.onconnectionstatechange=()=>{w.rtc.connectionState},w.rtc.ontrack=async a=>{if(a.streams&&a.streams[0])we.srcObject=a.streams[0];else{let i=new MediaStream(a.track);we.srcObject=i}},w.rtc.onaddstream=a=>{},w.rtc.onnegotiationneeded=a=>{},w.rtc.oniceconnectionstatechange=a=>{},w.rtc.onsignalingstatechange=a=>{},w.rtc.onicegatheringstatechange=a=>{},w.rtc.onicecandidateerror=a=>{},w.rtc.ondatachannel=a=>{},w.rtc.onerror=a=>{},e()},O.useListener=e=>{mt.rtc=e},O.setListener=e=>{mt.rtc&&mt.rtc(e)},O.callTo=async e=>{O.start(async()=>{const t=await w.rtc.createOffer();await w.rtc.setLocalDescription(t),w.uid=e,ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"offer",offer:btoa(JSON.stringify(t)),user:w.uid}})})},O.callIn=async e=>{w.asset=e.id,w.offer=e.offer,w.uid=e.id},O.callRise=async()=>{O.start(async()=>{w.rtc.setRemoteDescription(new RTCSessionDescription(JSON.parse(atob(w.offer))));const e=await w.rtc.createAnswer();await w.rtc.setLocalDescription(e),ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"answer",answer:btoa(JSON.stringify(e)),user:w.uid}})})},O.callOk=async e=>{w.asset=e.id;const t=new RTCSessionDescription(JSON.parse(atob(e.answer)));await w.rtc.setRemoteDescription(t),ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"IceCandidate",candidate:JSON.parse(JSON.stringify(w.other)),user:w.uid,send:!0}})},O.IceCandidate=async e=>{e.candidate.forEach(t=>{w.rtc.addIceCandidate(new RTCIceCandidate(t))}),e.send&&ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"IceCandidate",candidate:JSON.parse(JSON.stringify(w.other)),user:w.uid,send:!1}})},O.callFrom=async()=>{},O.callNo=()=>{w.asset=0,w.time=!1,w.rtc&&w.rtc.close(),O.setListener({type:"state",data:"closed"})},O.callOf=()=>{w.asset=0,w.time=!1,w.rtc.close()},O.callRefuser=async()=>{ce.Send({type:"module",module:"M00",query:"x0050",data:{type:"callRefuser",user:w.uid}}),w.asset=0,w.time=!1,w.rtc&&w.rtc.close()},O.Run=async e=>{O[e.data.type]&&O[e.data.type](e.data)};let Oe={};function hr(){let[e,t]=p.useState([]),a=p.useRef(null);return p.useEffect(()=>{},[]),Oe.set=i=>{t([...e,i])},Oe.del=()=>{t([])},Oe.audio=(i,r)=>{a.current.volume=.5,a.current.loop=r,a.current.src="/audio/"+i,a.current.muted=!1},n.jsxs(n.Fragment,{children:[e.map(i=>i.item),n.jsx("audio",{id:"audio",ref:a,autoPlay:!0,muted:!0})]})}function gr(e,t){let a=new Date().getTime();Oe.set({item:n.jsx(vr,{type:t,id:e},a),key:a})}function vr({id:e,type:t}){const[a,i]=p.useState({}),[r,o]=p.useState(t);p.useEffect(()=>{i(ae.getSelect("user")[e])},[]),O.useListener(c=>{switch(c.type){case"state":o(c.data)}});const s=()=>{switch(r){case"out":return n.jsx("span",{onClick:()=>{O.callTo(a.id),o("call")},children:n.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})});case"in":return n.jsxs(n.Fragment,{children:[n.jsx("span",{onClick:l,children:n.jsx("svg",{className:"red",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"})})}),n.jsx("span",{onClick:O.callRise,children:n.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})})]});case"call":return n.jsx("span",{onClick:()=>O.callNo(a.id),children:n.jsx("svg",{className:"red",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"})})});case"closed":return n.jsx("span",{onClick:()=>{O.callTo(a.id),o("call")},children:n.jsx("svg",{className:"green",width:"50px",height:"50px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M 27.9999 51.9062 C 41.0546 51.9062 51.9063 41.0547 51.9063 28.0000 C 51.9063 14.9219 41.0312 4.0938 27.9765 4.0938 C 14.8983 4.0938 4.0937 14.9219 4.0937 28.0000 C 4.0937 41.0547 14.9218 51.9062 27.9999 51.9062 Z M 21.8827 33.8360 C 16.0702 28.0469 12.3671 20.6640 16.7499 16.2813 C 17.0077 16.0234 17.2890 15.7656 17.5468 15.5078 C 18.8827 14.2422 20.1718 14.3125 21.3202 15.9297 L 24.3671 20.2656 C 25.3983 21.7656 25.1405 22.6094 24.0390 23.7813 L 23.0780 24.8360 C 22.7265 25.1640 22.8671 25.6094 23.0312 25.8906 C 23.4765 26.7344 24.7421 28.2344 26.1014 29.5938 C 27.5077 31.0000 28.9374 32.1953 29.8280 32.6875 C 30.1562 32.875 30.6249 32.9219 30.9296 32.6406 L 31.9374 31.6797 C 33.0624 30.5781 33.9765 30.2969 35.4296 31.3281 C 37.4452 32.7578 38.6640 33.6016 39.8593 34.4219 C 41.3358 35.5000 41.6874 36.8360 40.1874 38.1953 C 39.9296 38.4531 39.6952 38.7344 39.4374 38.9922 C 35.0546 43.3516 27.6952 39.6484 21.8827 33.8360 Z"})})})}},l=()=>{O.callRefuser(a.id),Oe.del()};return n.jsx("div",{className:"web-phone white",children:n.jsxs("div",{className:"w",children:[n.jsx("div",{className:"x","data-icon":"F038",onClick:l}),n.jsx("div",{className:"a"}),n.jsx("div",{className:"n",children:a.name}),n.jsx("div",{className:"b",children:s()})]})})}const pt={};function br(e){pt.add(e)}function kr({color:e,size:t,name:a}){return n.jsx("svg",{width:t,height:t,color:e,children:n.jsx("use",{href:`#${a}`})})}function yr(){let[e,t]=p.useState([]);if(pt.x=()=>{t([])},pt.add=i=>{t(i)},e.length===0)return"";const a={sprite:""};return n.jsx("svg",{...a,xmlns:"http://www.w3.org/2000/svg",children:e.map((i,r)=>n.jsx("symbol",{id:i.name,viewBox:"0 0 24 24",fillRule:"evenodd",clipRule:"evenodd",children:n.jsx(i.path,{})},r))})}const xt={};function wr(e,t){xt[e]=t}function Cr(e,t){xt[e]!==void 0&&xt[e](t)}const he={};function jr(e,t){const[a,i]=p.useState(t);return p.useEffect(()=>{if(he[e])return he[e].push(i);he[e]=[i]},[]),[a]}function Sr(e,t){if(he[e])return he[e].push(t);he[e]=[t]}function Er(e,t){he[e]&&he[e].forEach(a=>a(t))}const ge={setListener:Cr,useListener:wr,setEmitter:Er,useEmitter:jr,subEmitter:Sr};function Nr(){let[e,t]=p.useState([]);return ge.useListener("form",a=>{t([a])}),n.jsx(n.Fragment,{children:e.map(a=>a)})}const un=({children:e,config:t})=>(F.New(t.crypto),t.defaultModule&&aa(t.defaultModule),ra(n.jsxs(n.Fragment,{children:[n.jsx(er,{config:t.modal}),n.jsx(oi,{}),n.jsx(ui,{}),n.jsx(cr,{}),n.jsx(yr,{}),n.jsx(Nr,{}),n.jsx(hr,{}),n.jsx(mr,{}),e]}))),Tr=({children:e,...t})=>n.jsx("menu",{children:e}),Ir=({children:e,...t})=>n.jsxs("header",{children:["xz",e]}),Dr={payment:"_payment_1lxfv_1"};function Mr(){let[e,t]=p.useState({});return!e.active&&!e.payment?"":n.jsx("div",{className:Dr.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const Fr=({children:e,...t})=>{let a={};return a.enCode=i=>JSON.stringify(i).toString(),a.deCode=i=>JSON.parse(i),n.jsxs("div",{className:"app",children:[n.jsx(Mr,{}),n.jsx(Tr,{}),n.jsx(Ir,{}),n.jsx(un,{config:{modal:{},crypto:a}}),e]})},fn=({list:e,onClick:t,active:a,size:i,view:r})=>n.jsx("nav",{children:n.jsx("ul",{className:[i,r].join(" "),children:e.map(o=>n.jsx($r,{onClick:t,active:a,label:o.label,link:o.link},o.link))})}),$r=({onClick:e,label:t,link:a,active:i})=>n.jsx("li",{"tabs-active":String(i===a),onClick:()=>e(a),children:t});fn.defaultProps={size:"M",view:"H"};const Br=({title:e="",button:t,description:a="",children:i})=>n.jsxs("fieldset",{children:[e&&n.jsxs("legend",{children:[e,t&&n.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),n.jsx("ul",{children:i}),a&&n.jsx("article",{children:a})]}),Lr={setting:"_setting_dva4m_2"},Pr=({children:e})=>n.jsx("div",{className:Lr.setting,children:e}),Rr=({label:e,children:t})=>{let[a,i]=p.useState(!1);return n.jsxs("li",{"data-item":"accordion",children:[n.jsxs("dl",{onClick:()=>i(!a),children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:n.jsx("div",{"data-close":String(a)})})]}),a&&n.jsx("div",{children:t})]})},zr=({label:e,onClick:t,button:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"button",onClick:()=>t(),children:a})]})}),mn={Switch:({active:e,onClick:t})=>(e=typeof e=="number"?!!e:e,n.jsx("div",{role:"switch",onClick:()=>{t()},"aria-checked":e?"true":"false"}))},Or={Accordion:Rr,Button:zr,Switch:({label:e,onClick:t,active:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:n.jsx(mn.Switch,{onClick:t,active:a})})]})}),Info:({label:e,info:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"info",children:t})]})}),Select:({label:e,active:t,options:a})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{role:"info",children:t})]})}),Component:({label:e,children:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:t})]})}),Node:({label:e,children:t})=>n.jsx("li",{children:n.jsxs("dl",{children:[n.jsx("dt",{children:e}),n.jsx("dd",{children:t})]})})};function pn({list:e,onClick:t,active:a,size:i,view:r}){return n.jsx("nav",{children:n.jsx("ul",{className:[i,r].join(" "),children:e.map(o=>n.jsx(Ar,{onClick:t,active:a,label:o.label,link:o.link},o.link))})})}const Ar=({onClick:e,label:t,link:a,active:i})=>n.jsx("li",{"tabs-active":String(i===a),onClick:()=>e(a),children:t});pn.defaultProps={size:"M",view:"H"};const Zr={Section:Br,Main:Pr,Item:Or,Tabs:pn},Gr={Icon:pr,Item:ft,Active:xr},Wr={Send:mi,Line:on};function Kr(){return n.jsx("svg",{viewBox:"0 0 462.86 359.96",children:n.jsx("path",{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",transform:"translate(-88.37 0)"})})}const Ur={Logo:Kr,Sprite:br,Symbol:kr},Vr={sort:"_sort_1yrvt_1"};let Je={};function qr(e,t){switch(t.type){case"active":let a="<";return e.active===t.data&&(a=e.sort==="<"?">":"<"),Je.get({active:t.data,sort:a},!1),Kt({active:t.data,sort:a}),{...e,active:t.data,sort:a};default:throw new Error}}function Yr(){const[e,t]=p.useReducer(qr,lt()===void 0?{active:1,sort:"<"}:lt());return n.jsxs("div",{className:Vr.sort,children:[n.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),n.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),n.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function Hr(e){Je.get=e}function Jr(e){Je.set(e)}function Xr(e,t,a){let i=1,r=0,o={},s=50;o[i]=[];let l={},c="s1a";switch(l.s1a=(_,u)=>u.s1-_.s1,l.s1d=(_,u)=>_.s1-u.s1,l.s2a=(_,u)=>_.s2-u.s2,l.s2d=(_,u)=>u.s2-_.s2,l.s3a=(_,u)=>_.s3.localeCompare(u.s3),l.s3d=(_,u)=>u.s3.localeCompare(_.s3),a.active){case 1:c=a.sort===">"?"s1d":"s1a";break;case 2:c=a.sort===">"?"s2d":"s2a";break;case 3:c=a.sort===">"?"s3d":"s3a";break}return t.sort(l[c]).forEach(_=>{r++,r<=s||(i++,r=1,o[i]=[]),o[i].push(e[_.id])}),{data:o}}function Qr(e){Je.count(e)}const eo={Init:Yr,useValue:Hr,Set:Jr,Run:Xr,Count:Qr},Xe={},xn={};function to(e){const[t,a]=p.useState({}),i=async r=>{a(Object.keys(Xe).reduce((o,s)=>(o?o[s]=Xe[s].all:o={},o),{}))};return p.useEffect(()=>{e.forEach(r=>Xe[r]={all:0}),xn.menu=i,i()},[e]),t}function no(e,t){switch(typeof t){case"number":Xe[e].all+=t,xn.menu();break}}const ao={useMenu:to,setUpdate:no};class io{constructor(t="el",a="db"){Ot(this,"storeName");Ot(this,"_dbp");this.storeName=a,this._dbp=new Promise((i,r)=>{const o=indexedDB.open(t,1);o.onerror=()=>r(o.error),o.onsuccess=()=>i(o.result),o.onupgradeneeded=()=>{o.result.createObjectStore(a)}})}_withIDBStore(t,a){return this._dbp.then(i=>new Promise((r,o)=>{const s=i.transaction(this.storeName,t);s.oncomplete=()=>r(),s.onabort=s.onerror=()=>o(s.error),a(s.objectStore(this.storeName))}))}}let ht,W={};const Ee=()=>(ht||(ht=new io),ht),ve=(e,t,a=Ee())=>a._withIDBStore("readwrite",i=>{W[e]=t,i.put(F.enCode(t),e)}),_e=(e,t=Ee())=>W[e]===void 0?new Promise((a,i)=>{let r;t._withIDBStore("readonly",o=>{r=o.get(e)}).then(()=>{if(r.result!==void 0){let o=F.deCode(r.result);W[e]=o,a(o)}else a({})})}):W[e],ro=(e,t=Ee())=>t._withIDBStore("readwrite",a=>{a.delete(e)}),gt=(e=Ee())=>e._withIDBStore("readwrite",t=>{t.clear()}),oo={id:async(e,t,a)=>{let i=await _e(t);if(a!==void 0)a({type:"load",base:i});else return i[e]},get:_e,set:ve,add:async(e,t,a,i)=>{let r,o;o=await _e(a),o[e.id]=e,await ve(a,o),r!==null&&(r=await _e(t),r[e.id]=e.eDate,await ve(t,r)),i!==void 0&&i({type:"load",page:r,base:o})},del:ro,upd:(e,t,a,i=Ee())=>{if(W[e]===void 0)return new Promise((r,o)=>{let s;i._withIDBStore("readonly",l=>{s=l.get(e)}).then(()=>{if(s.result!==void 0){let l=F.deCode(s.result);W[e]=l,W[e][t.id]={...W[e][t.id],...t.data},i.put(F.enCode(W[e]),e),r({})}else r({})})});if(W[e][t.id]!==void 0)return W[e][t.id]={...W[e][t.id],...t.data},a!==void 0&&W[a]!==void 0?W[a][t.id]!==void 0&&(W[a][t.id]=t.data.eDate):W[a]=[],delete W[e][t.id].$_item,delete W[e][t.id].$_send,i._withIDBStore("readwrite",r=>{r.put(F.enCode(W[e]),e),a!==void 0&&r.put(F.enCode(W[a]),a)})},key:(e=Ee())=>{const t=[];return e._withIDBStore("readonly",a=>{(a.openKeyCursor||a.openCursor).call(a).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},load:e=>W[e],split:(e,t,a=[],i={})=>{let r=a.length!==0,o=[],s=i.sort,l=Object.keys(i).length!==0,c=Object.keys(i),_=Object.keys(e),u=[],f=x=>{let v="";if(a.forEach(b=>{v+=t[x][b]}),l){let b={};c.forEach(g=>{b[g]=t[x][g]});for(let g in s)t[x][s[g]]===void 0&&(gt(),location.reload()),g==="s1"&&(b[g]=new Date(t[x][s[g]]).getTime()),g==="s2"&&(b[g]=t[x][s[g]]),g==="s3"&&(b[g]=t[x][s[g]].replace(/[^a-zа-яё]/gi,"").substring(0,1));o.push({id:x,text:v,...b})}else o.push({id:x,text:v})},m=x=>{};return _.forEach(x=>{u.push(t[x])}),u.forEach(x=>{x===void 0?(gt(),location.reload()):(r&&f(x.id),l&&m(x.id))}),{list:u,search:o,filter:i}},clear:gt,updAll:async(e,t,a,i)=>{let r=await _e(t),o=await _e(a);for(let s in e)o[s]=e[s],r[s]=e[s].eDate;await ve(t,r),await ve(a,o),i!==void 0&&i({type:"load",page:r,base:o})},delAll:async(e,t,a,i)=>{let r=await _e(t),o=await _e(a);e.forEach(s=>delete r[s]),await ve(t,r),i!==void 0&&i({type:"load",page:r,base:o})},delList:async(e,t,a)=>{let i=await _e(t);e.forEach(r=>delete i[r]),await ve(t,i)},addList:async(e,t,a)=>{let i=await _e(t);e.forEach(r=>i[r.id]=r.eDate),await ve(t,i)}},so={useKey:(e,t)=>{const a=[];t=t.map(i=>i.charCodeAt(0)),document.onkeydown=function(i){a.push(i.keyCode);for(var r=0;r<t.length;r++)if(a.indexOf(t[r])==-1)return;e(),a.length=0},document.onkeyup=function(i){a.length=0}}},lo={s:"_s_18bde_1",loadingB:"_loadingB_18bde_1",ul:"_ul_18bde_31"};function hn({children:e}){return n.jsx("ul",{className:Q.ul,children:e})}function co(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,item:1,data:t.data,list:t.data[1],size:Object.keys(t.data).length};case"update":let a=Object.keys(e.data).length,i=e.item+1;return i=a<i?1:i,e.item===i?e:{...e,wait:e.size===i,item:i,list:[...e.list,...e.data[i]]};case"clear":return{load:!1,list:[],data:{},item:1,wait:!1,size:0};default:throw new Error}}function gn({list:e,load:t,className:a,...i}){const r=p.useRef(null),[o,s]=p.useReducer(co,{load:!1,list:[],data:{},item:1,wait:!1,size:0});p.useEffect(()=>{r.current.scrollTop=0,e!==null&&s({type:"load",load:!0,data:e})},[t]);let l=()=>{r.current.scrollHeight-r.current.scrollTop-300<=r.current.clientHeight&&!o.wait&&s({type:"update"})};return n.jsx("div",{className:[lo.s,a].join(" "),ref:r,onScroll:l,children:n.jsx(hn,{"el-empty":"Данные не найдены",children:o.load&&o.list!==void 0?o.list.map(c=>n.jsx(i.item,{data:c},c.id)):n.jsxs("div",{"data-load":"load",children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})})})}const _o={Widget:_r},vn=({onClick:e,active:t})=>(t=!!t,n.jsx("div",{role:"switch",onClick:()=>e,"aria-checked":`${t?"true":"false"}`}));let fe={};fe.KeyDown=e=>{e.key==="Enter"&&e.preventDefault()},fe.PasteOne=e=>{e.preventDefault(),navigator.clipboard.readText().then(t=>{t=t.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,t)}).catch(t=>{})},fe.Focus=e=>{e.target.textContent.length===0&&(e.target.innerHTML="<br>")},fe.Blur=e=>{e.target.scrollLeft=0,e.target.querySelector("br")!==null&&e.target.querySelector("br").remove()};function Ae({value:e,onValue:t,name:a,placeholder:i="",title:r="",error:o="",hide:s=!1,edit:l=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:m,onSave:x,className:v=""}){let b=!!(s&&(e===""||e===void 0)),g=T=>{t&&t({value:T.target.textContent,name:a})},y=T=>{T.key==="Enter"&&T.preventDefault()},E=T=>{},B=T=>{T.preventDefault(),navigator.clipboard.writeText(T.target.textContent).then(function(){Se.Copy("Данные в буфер обмене")},function(N){})};if(!(l&&c)&&!u||!(l&&c)&&b)return"";const M={};M.field="input",v&&(M.className=v);const j={};i&&(j.placeholder=i),l&&c&&(j.edit="");const D=T=>{fe.Blur(T),x&&x({value:T.target.textContent,name:a})};return n.jsxs("dl",{...M,children:[r?n.jsx("dt",{children:r}):"",n.jsx("dd",{onPaste:E,onInput:g,onBlur:D,onKeyDown:y,onContextMenu:B,contentEditable:l&&c?"plaintext-only":"false",suppressContentEditableWarning:!0,...j,children:e}),o?n.jsx("em",{children:o}):""]})}function bn({onClick:e,onSend:t,name:a,onRef:i}){let[r,o]=p.useState(!1);const s=()=>{if(e)return e();r||(o(!0),t&&t(o))};return n.jsx("button",{ref:i,"data-form":"button",className:r?"btn await":"btn confirm pointer",onClick:s,children:r?"Ожидайте":a})}function kn({value:e,onValue:t,onActive:a,data:i,name:r,view:o,edit:s=!0,active:l=!0,placeholder:c="Введите сообщение"}){const _=p.useRef({value:e,timerId:null,shift:!1,send:!0}),u=()=>{_.current.value.length>0?_.current.send&&(a(!0),_.current.send=!1,_.current.timerId=setTimeout(()=>{_.current.send=!0},3e3)):a(!1)},f=y=>{_.current.value=y.target.textContent,u()},m=y=>{y.keyCode===16&&(_.current.shift=!0),y.keyCode===13&&!_.current.shift&&(y.preventDefault(),_.current.value.length!==0&&(y.target.textContent="",i&&i(_.current.value),t&&t(_.current.value),_.current.value="",a(!1)))},x=y=>{y.keyCode===16&&(_.current.shift=!1)},v=y=>{y.preventDefault(),navigator.clipboard.readText().then(E=>{window.document.execCommand("insertText",!1,E)}).catch(E=>{})},b=()=>{a(!1)},g={spellCheck:"true"};return c&&(g.placeholder=c),s&&l&&(g.contentEditable="plaintext-only"),n.jsx("dl",{"data-form":"message",children:n.jsx("dd",{onPaste:v,onInput:f,onKeyUp:x,onKeyDown:m,onBlur:b,...g,suppressContentEditableWarning:!0,children:e})})}function yn(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,r=e.placeholder!==void 0?e.placeholder:"",o=c=>{e.onValue({value:c.target.textContent,name:e.name})},s=c=>{c.key==="Enter"&&c.preventDefault()},l=c=>{c.preventDefault(),navigator.clipboard.readText().then(_=>{window.document.execCommand("insertText",!1,_)}).catch(_=>{})};return n.jsxs("dl",{"data-form":"input","type-data":"generator",children:[t(),n.jsx("dd",{onPaste:l,onInput:o,onKeyDown:s,contentEditable:a&&i?"plaintext-only":"false","data-placeholder":r,suppressContentEditableWarning:!0,children:e.value})]})}function wn({value:e,onValue:t,placeholder:a="",name:i}){let r=(x,v)=>Number(Math.round(x+Math.random()*(v-x))),o=p.useRef(null),s=p.useRef(null),l=r(1e4,99999),c=x=>{x.key!=="Backspace"&&(x.key==="Enter"&&x.preventDefault(),x.target.textContent.length===5&&x.preventDefault(),/\d/.test(x.key)||x.preventDefault())},_=x=>{t({value:Number(x.target.textContent)===l,name:i})},u=x=>{x.preventDefault(),navigator.clipboard.readText().then(v=>{window.document.execCommand("insertText",!1,v.replace(/(\r\n|\n|\r)/gm," ").replace(/[^0-9]/g,"").substring(0,5))}).catch(v=>{})};p.useEffect(()=>{const x=o.current,v=x.getContext("2d");v.clearRect(0,0,x.width,x.height),v.font="30px brush script mt",v.fillStyle="#eee",v.textAlign="center",v.fillText(l,50,27),s.current.textContent=""},[l]);const f={};f.field="captcha";const m={};return a&&(m.placeholder=a),n.jsxs("dl",{...f,children:[n.jsx("dd",{ref:s,onPaste:u,onInput:_,onBlur:fe.Blur,onKeyDown:c,contentEditable:"plaintext-only",suppressContentEditableWarning:!0,...m}),n.jsx("canvas",{ref:o,width:"100",height:"35"})]})}function Cn(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""},r=_=>{_.preventDefault(),_.target.textContent=_.target.textContent.slice(-1).replace(/[^+\d]/g,"");let u=window.getSelection(),f=_.target.textContent.length;if(i[_.target.id]=_.target.textContent,i.code=i.n1+""+i.n2+i.n3+i.n4+i.n5+i.n6,u.collapse(_.target.firstChild,1),f===0){_.target.blur(),_.target.focus();return}_.target.nextSibling!=null&&_.target.nextSibling.focus()},o=_=>{if(_.key==="Enter"&&_.preventDefault(),_.key==="Backspace"){if(_.preventDefault(),_.target.textContent="",i[_.target.id]="",_.target.previousSibling!=null){let u=_.target.previousSibling.id.slice(1);_.target.previousSibling.textContent="",i["n"+u]="",_.target.previousSibling.focus()}i.code=i.n1+""+i.n2+i.n3+i.n4+i.n5+i.n6}},s=_=>{if(e.real)e.onValue({value:i.code,name:e.name});else if(i.code.length===6&&(e.onValue({value:i.code,name:e.name}),e.empty)){i={n1:"",n2:"",n3:"",n4:"",n5:"",n6:"",code:""};for(let u=1;u<=6;u++){let f=document.getElementById("n"+u);f&&(f.textContent="")}}},l=_=>{_.target.textContent=""},c=_=>{_.preventDefault()};return n.jsxs("dl",{"data-form":"code",children:[t(),n.jsxs("div",{children:[n.jsx("dd",{id:"n1",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n2",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n3",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n4",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n5",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0}),n.jsx("dd",{id:"n6",onKeyDown:o,onKeyUp:s,onFocus:l,onPaste:c,onInput:r,contentEditable:!0})]}),a()]})}function jn(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"";e.edit!==void 0&&e.edit,e.active!==void 0&&e.active;let[i,r]=p.useState(e.value),o=s=>{let l=s.target.getAttribute("set-color");r(l),e.onValue({value:l,name:e.name})};return n.jsx(n.Fragment,{children:e.view==="icon"?n.jsx("i",{"data-icon":"F043"}):n.jsxs("dl",{children:[t(),n.jsxs("dd",{"el-val":i,children:[n.jsx("em",{onClick:o,"set-color":"0"}),n.jsx("em",{onClick:o,"set-color":"1"}),n.jsx("em",{onClick:o,"set-color":"2"}),n.jsx("em",{onClick:o,"set-color":"3"}),n.jsx("em",{onClick:o,"set-color":"4"}),n.jsx("em",{onClick:o,"set-color":"5"})]}),a()]})})}const Ne={o:"_o_1kqkq_1",c:"_c_1kqkq_11"};function vt(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i=e.edit!==void 0?e.edit:!0,r=e.active!==void 0?e.active:!0,o=e.placeholder!==void 0?e.placeholder:"",[s,l]=p.useState(e.value===void 0?new Date:e.value),c=!i&&r;p.useEffect(()=>{l(e.value===void 0?new Date:e.value)},[e.value]);let _=x=>{l(x),e.onValue({value:x,name:e.name})},u=x=>{const v=x.target.getBoundingClientRect(),b=v.left,g=v.top;ge.setListener("form",n.jsx(uo,{position:{x:b,y:g},onValue:_,date:s},new Date().getTime()))};const f={};f.field="input";const m={};return o&&(m.placeholder=o),c?n.jsx(n.Fragment,{}):n.jsx(n.Fragment,{children:e.view==="icon"?n.jsx("i",{"data-icon":"F043",className:"pointer","data-color":"_b5b9cc :506290",onClick:u}):n.jsxs("dl",{...f,children:[t(),n.jsx("dd",{onClick:u,...m,"data-edit":(i&&r)+"",children:Z.Date(s,"dd.mm.yyyy")}),a()]})})}const uo=e=>{let[t,a]=p.useState(!0),i=new Date,r=new Date(e.date),o={y:parseInt(i.getFullYear()),d:parseInt(i.getDate()),m:parseInt(i.getMonth())+1},s={y:parseInt(r.getFullYear()),d:parseInt(r.getDate()),m:parseInt(r.getMonth())+1},[l,c]=p.useState({y:s.y,m:s.m}),_=j=>{let D=j.getDay();return D===0&&(D=7),D-1},u=["пн","вт","ср","чт","пт","сб","вс"],f=l.m-1,m=new Date(l.y,f),x=[];for(let j=0;j<_(m);j++)x.push(0);for(;m.getMonth()===f;)x.push(m.getDate()),m.setDate(m.getDate()+1);let v=()=>{a(!1)},b=()=>{E(l.m+1,l.y)},g=()=>{E(l.m-1,l.y)},y=j=>{e.onValue(l.y+"-"+Z.Number(2,l.m)+"-"+Z.Number(2,j)),v()},E=(j,D)=>{D=j>12?D+1:j<1?D-1:D,j=j>12?1:j<1?12:j,c({y:D,m:j})},B=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,M=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return n.jsx(n.Fragment,{children:t?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ne.o,onClick:()=>v()},new Date().getTime()),n.jsxs("div",{className:Ne.c,style:{top:B+"px",left:M+"px"},children:[n.jsxs("s",{children:[n.jsx("i",{"data-icon":"F021",onClick:()=>g()}),n.jsxs("h2",{children:[Z.Month(l.m).name," ",l.y]}),n.jsx("i",{"data-icon":"F022",onClick:()=>b()})]}),n.jsxs("div",{children:[u.map((j,D)=>n.jsx("p",{children:j},"v"+D)),x.map((j,D)=>n.jsx("span",{children:j!==0?n.jsx("b",{color:o.y===l.y&&o.m===l.m&&o.d===j?"_FFEB3B":"",onClick:()=>y(j),children:j}):n.jsx("p",{})},D))]})]})]}):""})};function bt({value:e,onValue:t,name:a,placeholder:i="",title:r,error:o,hide:s=!1,edit:l=!0,show:c=!0,active:_=!0,after:u="",view:f,modal:m,module:x,options:v}){let[b,g]=p.useState(e),y=B=>{if(!m)return;let M=m.split(".");Ye.Open(M[0],M[1],{callback:j=>{t&&t({value:j,name:a}),g(j)},onValue:t,options:v,name:a,value:e})};const E={};return E.field="input",s?n.jsx(n.Fragment,{}):n.jsxs("dl",{...E,children:[r?n.jsx("dt",{children:r}):"",n.jsx("dd",{onClick:y,"data-edit":(l&&_)+"","data-placeholder":i,"data-after":u,children:b}),o?n.jsx("dt",{children:o}):""]})}function kt(e){let t=e.value,a=f=>e.type==="multi"?f.replace(/[^+\d.+-]/g,""):f.replace(/[^+\d.]/g,""),i=(f,m)=>{let x=document.createRange(),v=window.getSelection();x.setStart(m.childNodes[0],f),x.collapse(!0),v.removeAllRanges(),v.addRange(x),m.focus()},r=f=>{e.onValue({value:a(f.target.textContent),name:e.name}),f.target.textContent=a(f.target.textContent),f.target.textContent.length>0&&i(f.target.textContent.length,f.target)},o=f=>{f.target.textContent===""&&(f.target.textContent=0),e.onValue({value:a(f.target.textContent),name:e.name}),f.target.textContent=Z.Money(f.target.textContent)},s=f=>{f.target.textContent=a(f.target.textContent)},l=f=>{f.key==="Enter"&&f.preventDefault()},c=f=>{f.preventDefault(),navigator.clipboard.readText().then(m=>{m=m.replace(/^\s*/,"").replace(/\s*$/,""),window.document.execCommand("insertText",!1,m)}).catch(m=>{})},_=()=>e.title?n.jsx("dt",{children:e.title}):"",u=()=>e.error?n.jsx("em",{children:e.error}):"";return n.jsxs("dl",{"data-form":"input",children:[_(),n.jsx("dd",{onInput:r,onPaste:c,onBlur:o,onKeyDown:l,onFocus:s,contentEditable:!0,suppressContentEditableWarning:!0,"e-after":e.after,children:Z.Money(t)}),u()]})}function Sn({value:e,onValue:t,name:a,view:i,error:r,edit:o=!0,active:s=!0,title:l,placeholder:c="",after:_}){let[u,f]=p.useState(e);p.useEffect(()=>{f(e)},[e]);let m=b=>{f(b),t&&t({value:b,name:a})},x=b=>{if(!o||!s)return;const g=b.target.getBoundingClientRect(),y=g.left,E=g.top;ge.setListener("form",n.jsx(fo,{position:{x:y,y:E},onValue:m,date:u},new Date().getTime()))};const v={};return c&&(v.placeholder=c),n.jsx(n.Fragment,{children:i==="icon"?n.jsx("i",{"data-icon":"F043",onClick:x}):n.jsxs("dl",{children:[l&&n.jsx("dt",{children:l}),n.jsx("dd",{onClick:x,...v,children:Z.Date(u,"mm.yyyy")}),r&&n.jsx("em",{children:r})]})})}const fo=e=>{let[t,a]=p.useState(!0),i=new Date,r=new Date(e.date),o={y:parseInt(i.getFullYear()),m:parseInt(i.getMonth())+1},s={y:parseInt(r.getFullYear()),m:parseInt(r.getMonth())+1},[l,c]=p.useState(s.y),_=()=>{a(!1)},u=()=>{c(l+1)},f=()=>{c(l-1)},m=y=>{e.onValue(l+"-"+Z.Number(2,y)),_()},x=y=>o.y===s.y&&o.m===y?"_FFEB3B":"",v=Array(12).fill("").map((y,E)=>E+1),b=window.innerHeight-e.position.y+33<320?e.position.y-312:e.position.y+33,g=window.innerWidth-e.position.x<265?e.position.x-235:e.position.x;return n.jsx(n.Fragment,{children:t?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ne.o,onClick:()=>_()},new Date().getTime()),n.jsxs("div",{className:Ne.c,style:{top:b+"px",left:g+"px"},children:[n.jsxs("s",{children:[n.jsx("i",{"data-icon":"F021",onClick:()=>f()}),n.jsx("h2",{children:l}),n.jsx("i",{"data-icon":"F022",onClick:()=>u()})]}),n.jsx("div",{children:v.map((y,E)=>n.jsx("span",{onClick:()=>{m(y)},color:x(y),children:n.jsx("b",{children:Z.Month(y).abc})},E))})]})]}):""})};function En(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",[i,r]=p.useState(!1),o=e.edit!==void 0?e.edit:!0,s=e.active!==void 0?e.active:!0,c=!!(e.hide&&(e.value===""||e.value===void 0))&&!(o&&s);i=o?!0:i;let _=e.placeholder!==void 0?e.placeholder:"Заметка пуста",u=g=>{e.onValue&&e.onValue({value:g.target.innerText,name:e.name})},f=g=>{g.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y)}).catch(y=>{})},m=g=>{o||r(!i)};const x=g=>{e.onSave&&e.onSave({value:g.target.innerText,name:e.name})},v={};v.field="notes",e.className&&(v.className=e.className);const b={};return _&&(b.placeholder=_),i&&(b.open=""),o&&s&&(b.edit=""),c?n.jsx(n.Fragment,{}):n.jsxs("dl",{...v,children:[t(),n.jsx("dd",{onPaste:f,onInput:u,onBlur:x,contentEditable:o&&s?"plaintext-only":"false",...b,onDoubleClick:m,suppressContentEditableWarning:!0,children:e.value}),a()]})}function yt({onValue:e,active:t,max:a,edit:i,title:r,error:o,show:s,hide:l,value:c,placeholder:_,className:u,name:f,after:m,view:x}){let v=()=>r?n.jsx("dt",{children:r}):"",b=()=>o?n.jsx("em",{children:o}):"";i=i!==void 0?i:!0,t=t!==void 0?t:!0,l=!!(l&&(c===""||c===void 0))&&!(i&&t),_=_!==void 0?_:"",a=a!==void 0?a:99;let y=!1,E=N=>{e&&e({value:N.target.textContent,name:f})},B=N=>{if(!(y&&N.which===86)){if(N.which===17||N.which===91)return y=!0;N.key!=="Backspace"&&(N.target.textContent.length===a&&N.preventDefault(),N.key==="Enter"&&N.preventDefault(),isNaN(parseInt(String.fromCharCode(N.which)))&&N.preventDefault())}},M=N=>{if(N.which===17||N.which===91)return y=!1},j=N=>{N.preventDefault(),navigator.clipboard.readText().then(A=>{A=A.replace(/\D/g,""),window.document.execCommand("insertText",!1,""+A.replace(/\D/g,""))}).catch(A=>{})};const D={};D.field="input",u&&(D.className=u);let T={};return i&&t?(T.edit="true",T.contentEditable="plaintext-only"):T.contentEditable="false",_&&(T.placeholder=_),m&&(T.after=m),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{...D,children:[v(),n.jsx("dd",{...T,onPaste:j,onInput:E,onKeyDown:B,onKeyUp:M,suppressContentEditableWarning:!0,children:c}),b()]})}function Nn({value:e,onValue:t,name:a,placeholder:i="",className:r,title:o,error:s,edit:l=!0,active:c=!0,reload:_=!1,after:u=""}){let f=g=>{t&&t({value:g.target.textContent,name:a,reload:_})},m=g=>{g.key==="Enter"&&g.preventDefault()},x=g=>{g.preventDefault(),navigator.clipboard.readText().then(y=>{window.document.execCommand("insertText",!1,y.replace(/(\r\n|\n|\r)/gm," "))}).catch(y=>{})};const v={};v.field="password",r&&(v.className=r);const b={};return i&&(b.placeholder=i),n.jsxs("dl",{...v,children:[o?n.jsx("dt",{children:o}):"",n.jsx("dd",{onPaste:x,onInput:f,onKeyDown:m,onBlur:fe.Blur,contentEditable:l&&c?"plaintext-only":"false",...b,suppressContentEditableWarning:!0,children:e}),s?n.jsx("em",{children:s}):""]})}const wt={0:{name:"Heard Island and Mcdonald Islands",dial_code:"+0",code:"HM",mask:"+0(___) ___-__-__"},1:{name:"United States",dial_code:"+1",code:"US",mask:"+1(___) ___-__-__"},7:{name:"Russia",dial_code:"+7",code:"RU",mask:"+7(___) ___-__-__"},20:{name:"Egypt",dial_code:"+20",code:"EG",mask:"+20(___) ___-__-__"},27:{name:"South Africa",dial_code:"+27",code:"ZA",mask:"+27(___) __-__-__"},30:{name:"Greece",dial_code:"+30",code:"GR",mask:"+30(___) ___-__-__"},31:{name:"Netherlands",dial_code:"+31",code:"NL",mask:"+31(___) __-__-__"},32:{name:"Belgium",dial_code:"+32",code:"BE",mask:"+32(___) __-__-__"},33:{name:"France",dial_code:"+33",code:"FR",mask:"+33(___) __-__-__"},34:{name:"Spain",dial_code:"+34",code:"ES",mask:"+34(___) __-__-__"},36:{name:"Hungary",dial_code:"+36",code:"HU",mask:"+36(___) __-__-__"},39:{name:"Italy",dial_code:"+39",code:"IT",mask:"+39(___) ___-__-__"},40:{name:"Romania",dial_code:"+40",code:"RO",mask:"+40(___) __-__-__"},41:{name:"Switzerland",dial_code:"+41",code:"CH",mask:"+41(___) __-__-__"},43:{name:"Austria",dial_code:"+43",code:"AT",mask:"+43(__) ___-__-__"},44:{name:"United Kingdom",dial_code:"+44",code:"GB",mask:"+44(___) ___-__-__"},45:{name:"Denmark",dial_code:"+45",code:"DK",mask:"+45(__) __-__-__"},46:{name:"Sweden",dial_code:"+46",code:"SE",mask:"+46(___) __-__-__"},47:{name:"Svalbard and Jan Mayen",dial_code:"+47",code:"SJ",mask:"+47(__) __-__-__"},48:{name:"Poland",dial_code:"+48",code:"PL",mask:"+48(__) __-__-__"},49:{name:"Germany",dial_code:"+49",code:"DE",mask:"+49(___) ___-__-__"},51:{name:"Peru",dial_code:"+51",code:"PE",mask:"+51(___) __-__-__"},52:{name:"Mexico",dial_code:"+52",code:"MX",mask:"+52(__-__) ___-__-__"},53:{name:"Cuba",dial_code:"+53",code:"CU",mask:"+53(__) __-__-__"},54:{name:"Argentina",dial_code:"+54",code:"AR",mask:"+54(__-__) ___-__-__"},55:{name:"Brazil",dial_code:"+55",code:"BR",mask:"+55(___) ___-__-__"},56:{name:"Chile",dial_code:"+56",code:"CL",mask:"+56(___) __-__-__"},57:{name:"Colombia",dial_code:"+57",code:"CO",mask:"+57(___) ___-__-__"},58:{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",code:"VE",mask:"+58(___) ___-__-__"},60:{name:"Malaysia",dial_code:"+60",code:"MY",mask:"+60(___) __-__-__"},61:{name:"Cocos (Keeling) Islands",dial_code:"+61",code:"CC",mask:"+61(___) ___-__-__"},62:{name:"Indonesia",dial_code:"+62",code:"ID",mask:"+62(___) __-__-__"},63:{name:"Philippines",dial_code:"+63",code:"PH",mask:"+63(___) ___-__-__"},64:{name:"Pitcairn",dial_code:"+64",code:"PN",mask:"+64(___) __-__-__"},65:{name:"Singapore",dial_code:"+65",code:"SG",mask:"+65(__) __-__-__"},66:{name:"Thailand",dial_code:"+66",code:"TH",mask:"+66(___) __-__-__"},77:{name:"Kazakhstan",dial_code:"+77",code:"KZ",mask:"+77(__) ___-__-__"},81:{name:"Japan",dial_code:"+81",code:"JP",mask:"+81(___) ___-__-__"},82:{name:"Korea, Republic of South Korea",dial_code:"+82",code:"KR",mask:"+82(___) ___-__-__"},84:{name:"Vietnam",dial_code:"+84",code:"VN",mask:"+84(___) __-__-__"},86:{name:"China",dial_code:"+86",code:"CN",mask:"+86(__-__) ___-__-__"},90:{name:"Turkey",dial_code:"+90",code:"TR",mask:"+90(___) ___-__-__"},91:{name:"India",dial_code:"+91",code:"IN",mask:"+91(___) ___-__-__"},92:{name:"Pakistan",dial_code:"+92",code:"PK",mask:"+92(___) ___-__-__"},93:{name:"Afghanistan",dial_code:"+93",code:"AF",mask:"+93(__) ___-__-__"},94:{name:"Sri Lanka",dial_code:"+94",code:"LK",mask:"+94(___) __-__-__"},95:{name:"Myanmar",dial_code:"+95",code:"MM",mask:"+95(___) ___-__-__"},98:{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",code:"IR",mask:"+98(___) ___-__-__"},211:{name:"South Sudan",dial_code:"+211",code:"SS",mask:"+211(___) ___-__-__"},212:{name:"Morocco",dial_code:"+212",code:"MA",mask:"+212(___) __-__-__"},213:{name:"Algeria",dial_code:"+213",code:"DZ",mask:"+213(__) ___-__-__"},216:{name:"Tunisia",dial_code:"+216",code:"TN",mask:"+216(__) __-__-__"},218:{name:"Libyan Arab Jamahiriya",dial_code:"+218",code:"LY",mask:"+218(___) ___-__-__"},220:{name:"Gambia",dial_code:"+220",code:"GM",mask:"+220(___) __-__"},221:{name:"Senegal",dial_code:"+221",code:"SN",mask:"+221(___) __-__-__"},222:{name:"Mauritania",dial_code:"+222",code:"MR",mask:"+222(__) __-__-__"},223:{name:"Mali",dial_code:"+223",code:"ML",mask:"+223(__) __-__-__"},224:{name:"Guinea",dial_code:"+224",code:"GN",mask:"+224(__) __-__-__"},225:{name:"Cote d'Ivoire",dial_code:"+225",code:"CI",mask:"+225(__) __-__-__"},226:{name:"Burkina Faso",dial_code:"+226",code:"BF",mask:"+226(__) __-__-__"},227:{name:"Niger",dial_code:"+227",code:"NE",mask:"+227(__) __-__-__"},228:{name:"Togo",dial_code:"+228",code:"TG",mask:"+228(__) __-__-__"},229:{name:"Benin",dial_code:"+229",code:"BJ",mask:"+229(__) __-__-__"},230:{name:"Mauritius",dial_code:"+230",code:"MU",mask:"+230(___) __-__"},231:{name:"Liberia",dial_code:"+231",code:"LR",mask:"+231(___) __-__"},232:{name:"Sierra Leone",dial_code:"+232",code:"SL",mask:"+232(__) __-__-__"},233:{name:"Ghana",dial_code:"+233",code:"GH",mask:"+233(___) __-__-__"},234:{name:"Nigeria",dial_code:"+234",code:"NG",mask:"+234(___) ___-__-__"},235:{name:"Chad",dial_code:"+235",code:"TD",mask:"+235(__) __-__-__"},236:{name:"Central African Republic",dial_code:"+236",code:"CF",mask:"+236(__) __-__-__"},237:{name:"Cameroon",dial_code:"+237",code:"CM",mask:"+237(__) __-__-__"},238:{name:"Cape Verde",dial_code:"+238",code:"CV",mask:"+238(___) __-__"},239:{name:"Sao Tome and Principe",dial_code:"+239",code:"ST",mask:"+239(___) ___-__-__"},240:{name:"Equatorial Guinea",dial_code:"+240",code:"GQ",mask:"+240(___) __-__-__"},241:{name:"Gabon",dial_code:"+241",code:"GA",mask:"+241(__) __-__-__"},242:{name:"Congo",dial_code:"+242",code:"CG",mask:"+242(___) __-__-__"},243:{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",code:"CD",mask:"+243(___) ___-__-__"},244:{name:"Angola",dial_code:"+244",code:"AO",mask:"+244(__) ___-__-__"},245:{name:"Guinea-Bissau",dial_code:"+245",code:"GW",mask:"+245(___) __-__"},246:{name:"British Indian Ocean Territory",dial_code:"+246",code:"IO",mask:"+246(___) ___-__-__"},248:{name:"Seychelles",dial_code:"+248",code:"SC",mask:"+248(___) ___-__-__"},249:{name:"Sudan",dial_code:"+249",code:"SD",mask:"+249(___) __-__-__"},250:{name:"Rwanda",dial_code:"+250",code:"RW",mask:"+250(___) __-__-__"},251:{name:"Ethiopia",dial_code:"+251",code:"ET",mask:"+251(___) __-__-__"},252:{name:"Somalia",dial_code:"+252",code:"SO",mask:"+252(___) ___-__-__"},253:{name:"Djibouti",dial_code:"+253",code:"DJ",mask:"+253(___) ___-__-__"},254:{name:"Kenya",dial_code:"+254",code:"KE",mask:"+254(___) __-__-__"},255:{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",code:"TZ",mask:"+255(___) __-__-__"},256:{name:"Uganda",dial_code:"+256",code:"UG",mask:"+256(___) __-__-__"},257:{name:"Burundi",dial_code:"+257",code:"BI",mask:"+257(__) __-__-__"},258:{name:"Mozambique",dial_code:"+258",code:"MZ",mask:"+258(___) __-__-__"},260:{name:"Zambia",dial_code:"+260",code:"ZM",mask:"+260(___) __-__-__"},261:{name:"Madagascar",dial_code:"+261",code:"MG",mask:"+261(___) __-__-__"},262:{name:"Reunion",dial_code:"+262",code:"RE",mask:"+262(___) __-__-__"},263:{name:"Zimbabwe",dial_code:"+263",code:"ZW",mask:"+263(___) __-__-__"},264:{name:"Namibia",dial_code:"+264",code:"NA",mask:"+264(___) __-__-__"},265:{name:"Malawi",dial_code:"+265",code:"MW",mask:"+265(___) __-__-__"},266:{name:"Lesotho",dial_code:"+266",code:"LS",mask:"+266(__) __-__-__"},267:{name:"Botswana",dial_code:"+267",code:"BW",mask:"+267(__) __-__-__"},268:{name:"Swaziland",dial_code:"+268",code:"SZ",mask:"+268(___) ___-__-__"},269:{name:"Comoros",dial_code:"+269",code:"KM",mask:"+269(___) __-__"},290:{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",code:"SH",mask:"+290(___) ___-__-__"},291:{name:"Eritrea",dial_code:"+291",code:"ER",mask:"+291(___) ___-__-__"},297:{name:"Aruba",dial_code:"+297",code:"AW",mask:"+297(_) __-__-__"},298:{name:"Faroe Islands",dial_code:"+298",code:"FO",mask:"+298(__) __-__"},299:{name:"Greenland",dial_code:"+299",code:"GL",mask:"+299(__) __-__"},345:{name:"Cayman Islands",dial_code:"+ 345",code:"KY",mask:"+345(___) ___-__-__"},350:{name:"Gibraltar",dial_code:"+350",code:"GI",mask:"+350(__) __-__-__"},351:{name:"Portugal",dial_code:"+351",code:"PT",mask:"+351(___) __-__-__"},352:{name:"Luxembourg",dial_code:"+352",code:"LU",mask:"+352(___) __-__-__"},353:{name:"Ireland",dial_code:"+353",code:"IE",mask:"+353(___) __-__-__"},354:{name:"Iceland",dial_code:"+354",code:"IS",mask:"+354(___) __-__"},355:{name:"Albania",dial_code:"+355",code:"AL",mask:"+355(__) ___-__-__"},356:{name:"Malta",dial_code:"+356",code:"MT",mask:"+356(__) __-__-__"},357:{name:"Cyprus",dial_code:"+357",code:"CY",mask:"+357(__) __-__-__"},358:{name:"Finland",dial_code:"+358",code:"FI",mask:"+358(___) __-__-__"},359:{name:"Bulgaria",dial_code:"+359",code:"BG",mask:"+359(___) __-__-__"},370:{name:"Lithuania",dial_code:"+370",code:"LT",mask:"+370(_) ___-__-__"},371:{name:"Latvia",dial_code:"+371",code:"LV",mask:"+371(__) __-__-__"},372:{name:"Estonia",dial_code:"+372",code:"EE",mask:"+372(__) __-__-__"},373:{name:"Moldova",dial_code:"+373",code:"MD",mask:"+373(__) __-__-__"},374:{name:"Armenia",dial_code:"+374",code:"AM",mask:"+374(_) ___-__-__"},375:{name:"Belarus",dial_code:"+375",code:"BY",mask:"+375(__) ___-__-__"},376:{name:"Andorra",dial_code:"+376",code:"AD",mask:"+376(_) _-__-__"},377:{name:"Monaco",dial_code:"+377",code:"MC",mask:"+377(___) __-__-__"},378:{name:"San Marino",dial_code:"+378",code:"SM",mask:"+378(__) __-__-__"},379:{name:"Holy See (Vatican City State)",dial_code:"+379",code:"VA",mask:"+379(___) ___-__-__"},380:{name:"Ukraine",dial_code:"+380",code:"UA",mask:"+380(__) ___-__-__"},381:{name:"Serbia",dial_code:"+381",code:"RS",mask:"+381(__) __-__-__"},382:{name:"Montenegro",dial_code:"+382",code:"ME",mask:"+382(___) ___-__-__"},383:{name:"Kosovo",dial_code:"+383",code:"XK",mask:"+383(___) __-__"},385:{name:"Croatia",dial_code:"+385",code:"HR",mask:"+385(__) __-__-__"},386:{name:"Slovenia",dial_code:"+386",code:"SI",mask:"+386(__) __-__-__"},387:{name:"Bosnia and Herzegovina",dial_code:"+387",code:"BA",mask:"+387(__) __-__-__"},389:{name:"Macedonia",dial_code:"+389",code:"MK",mask:"+389(__) __-__-__"},420:{name:"Czech Republic",dial_code:"+420",code:"CZ",mask:"+420(___) __-__-__"},421:{name:"Slovakia",dial_code:"+421",code:"SK",mask:"+421(___) __-__-__"},423:{name:"Liechtenstein",dial_code:"+423",code:"LI",mask:"+423(___) __-__-__"},500:{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",code:"GS",mask:"+500(___) ___-__-__"},501:{name:"Belize",dial_code:"+501",code:"BZ",mask:"+501(___) __-__"},502:{name:"Guatemala",dial_code:"+502",code:"GT",mask:"+502(__) __-__-__"},503:{name:"El Salvador",dial_code:"+503",code:"SV",mask:"+503(__) __-__-__"},504:{name:"Honduras",dial_code:"+504",code:"HN",mask:"+504(__) __-__-__"},505:{name:"Nicaragua",dial_code:"+505",code:"NI",mask:"+505(__) __-__-__"},506:{name:"Costa Rica",dial_code:"+506",code:"CR",mask:"+506(__) __-__-__"},507:{name:"Panama",dial_code:"+507",code:"PA",mask:"+507(__) __-__-__"},508:{name:"Saint Pierre and Miquelon",dial_code:"+508",code:"PM",mask:"+508(___) ___-__-__"},509:{name:"Haiti",dial_code:"+509",code:"HT",mask:"+509(__) __-__-__"},590:{name:"Saint Martin",dial_code:"+590",code:"MF",mask:"+590(___) __-__-__"},591:{name:"Bolivia, Plurinational State of bolivia",dial_code:"+591",code:"BO",mask:"+591(__) __-__-__"},592:{name:"Guyana",dial_code:"+592",code:"GY",mask:"+592(___) ___-__-__"},593:{name:"Ecuador",dial_code:"+593",code:"EC",mask:"+593(___) __-__-__"},594:{name:"French Guiana",dial_code:"+594",code:"GF",mask:"+594(___) __-__-__"},595:{name:"Paraguay",dial_code:"+595",code:"PY",mask:"+595(___) __-__-__"},596:{name:"Martinique",dial_code:"+596",code:"MQ",mask:"+596(___) __-__-__"},597:{name:"Suriname",dial_code:"+597",code:"SR",mask:"+597(___) __-__"},598:{name:"Uruguay",dial_code:"+598",code:"UY",mask:"+598(__) __-__-__"},599:{name:"Netherlands Antilles",dial_code:"+599",code:"AN",mask:"+599(__) __-__-__"},670:{name:"Timor-Leste",dial_code:"+670",code:"TL",mask:"+670(__) __-__-__"},672:{name:"Norfolk Island",dial_code:"+672",code:"NF",mask:"+672(___) ___-__-__"},673:{name:"Brunei Darussalam",dial_code:"+673",code:"BN",mask:"+673(___) __-__"},674:{name:"Nauru",dial_code:"+674",code:"NR",mask:"+674(___) __-__"},675:{name:"Papua New Guinea",dial_code:"+675",code:"PG",mask:"+675(___) __-__"},676:{name:"Tonga",dial_code:"+676",code:"TO",mask:"+676(___) __-__"},677:{name:"Solomon Islands",dial_code:"+677",code:"SB",mask:"+677(___) __-__"},678:{name:"Vanuatu",dial_code:"+678",code:"VU",mask:"+678(___) __-__"},679:{name:"Fiji",dial_code:"+679",code:"FJ",mask:"+679(___) __-__"},680:{name:"Palau",dial_code:"+680",code:"PW",mask:"+680(___) ___-__-__"},681:{name:"Wallis and Futuna",dial_code:"+681",code:"WF",mask:"+681(___) ___-__-__"},682:{name:"Cook Islands",dial_code:"+682",code:"CK",mask:"+682(_) __-__"},683:{name:"Niue",dial_code:"+683",code:"NU",mask:"+683(___) ___-__-__"},685:{name:"Samoa",dial_code:"+685",code:"WS",mask:"+685(__) __-__"},686:{name:"Kiribati",dial_code:"+686",code:"KI",mask:"+686(___) ___-__-__"},687:{name:"New Caledonia",dial_code:"+687",code:"NC",mask:"+687(__) __-__"},688:{name:"Tuvalu",dial_code:"+688",code:"TV",mask:"+688(___) ___-__-__"},689:{name:"French Polynesia",dial_code:"+689",code:"PF",mask:"+689(__) __-__"},690:{name:"Tokelau",dial_code:"+690",code:"TK",mask:"+690(___) ___-__-__"},691:{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",code:"FM",mask:"+691(___) ___-__-__"},692:{name:"Marshall Islands",dial_code:"+692",code:"MH",mask:"+692(___) ___-__-__"},850:{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",code:"KP",mask:"+850(___) ___-__-__"},852:{name:"Hong Kong",dial_code:"+852",code:"HK",mask:"+852(__) __-__-__"},853:{name:"Macao",dial_code:"+853",code:"MO",mask:"+853(__) __-__-__"},855:{name:"Cambodia",dial_code:"+855",code:"KH",mask:"+855(__) __-__-__"},856:{name:"Laos",dial_code:"+856",code:"LA",mask:"+856(___) ___-__-__"},880:{name:"Bangladesh",dial_code:"+880",code:"BD",mask:"+880(___) ___-__-__"},886:{name:"Taiwan",dial_code:"+886",code:"TW",mask:"+886(___) __-__-__"},960:{name:"Maldives",dial_code:"+960",code:"MV",mask:"+960(___) __-__"},961:{name:"Lebanon",dial_code:"+961",code:"LB",mask:"+961(__) __-__-__"},962:{name:"Jordan",dial_code:"+962",code:"JO",mask:"+962(___) __-__-__"},963:{name:"Syrian Arab Republic",dial_code:"+963",code:"SY",mask:"+963(___) __-__-__"},964:{name:"Iraq",dial_code:"+964",code:"IQ",mask:"+964(___) ___-__-__"},965:{name:"Kuwait",dial_code:"+965",code:"KW",mask:"+965(__) __-__-__"},966:{name:"Saudi Arabia",dial_code:"+966",code:"SA",mask:"+966(___) __-__-__"},967:{name:"Yemen",dial_code:"+967",code:"YE",mask:"+967(___) __-__-__"},968:{name:"Oman",dial_code:"+968",code:"OM",mask:"+968(__) __-__-__"},970:{name:"Palestinian Territory, Occupied",dial_code:"+970",code:"PS",mask:"+970(___) __-__-__"},971:{name:"United Arab Emirates",dial_code:"+971",code:"AE",mask:"+971(___) __-__-__"},972:{name:"Israel",dial_code:"+972",code:"IL",mask:"+972(___) __-__-__"},973:{name:"Bahrain",dial_code:"+973",code:"BH",mask:"+973(__) __-__-__"},974:{name:"Qatar",dial_code:"+974",code:"QA",mask:"+974(__) __-__-__"},975:{name:"Bhutan",dial_code:"+975",code:"BT",mask:"+975(__) __-__-__"},976:{name:"Mongolia",dial_code:"+976",code:"MN",mask:"+976(__) __-__-__"},977:{name:"Nepal",dial_code:"+977",code:"NP",mask:"+977(___) ___-__-__"},992:{name:"Tajikistan",dial_code:"+992",code:"TJ",mask:"+992(___) __-__-__"},993:{name:"Turkmenistan",dial_code:"+993",code:"TM",mask:"+993(__) __-__-__"},994:{name:"Azerbaijan",dial_code:"+994",code:"AZ",mask:"+994(__) ___-__-__"},995:{name:"Georgia",dial_code:"+995",code:"GE",mask:"+995(___) __-__-__"},996:{name:"Kyrgyzstan",dial_code:"+996",code:"KG",mask:"+996(___) __-__-__"},998:{name:"Uzbekistan",dial_code:"+998",code:"UZ",mask:"+998(___) __-__-__"},1242:{name:"Bahamas",dial_code:"+1242",code:"BS",mask:"+1242(___) __-__"},1246:{name:"Barbados",dial_code:"+1246",code:"BB",mask:"+1246(___) __-__"},1264:{name:"Anguilla",dial_code:"+1264",code:"AI",mask:"+1264(___) ___-__-__"},1268:{name:"Antigua and Barbuda",dial_code:"+1268",code:"AG",mask:"+1268(_) __-__"},1284:{name:"Virgin Islands, British",dial_code:"+1284",code:"VG",mask:"+1284(___) __-__"},1340:{name:"Virgin Islands, U.S.",dial_code:"+1340",code:"VI",mask:"+1340(___) ___-__-__"},1441:{name:"Bermuda",dial_code:"+1441",code:"BM",mask:"+1441(___) __-__"},1473:{name:"Grenada",dial_code:"+1473",code:"GD",mask:"+1473(___) __-__"},1649:{name:"Turks and Caicos Islands",dial_code:"+1649",code:"TC",mask:"+1649(___) ___-__-__"},1664:{name:"Montserrat",dial_code:"+1664",code:"MS",mask:"+1664(___) ___-__-__"},1670:{name:"Northern Mariana Islands",dial_code:"+1670",code:"MP",mask:"+1670(___) ___-__-__"},1671:{name:"Guam",dial_code:"+1671",code:"GU",mask:"+1671(___) ___-__-__"},1684:{name:"American Samoa",dial_code:"+1684",code:"AS",mask:"+1684(___) ___-__-__"},1758:{name:"Saint Lucia",dial_code:"+1758",code:"LC",mask:"+1758(___) __-__"},1767:{name:"Dominica",dial_code:"+1767",code:"DM",mask:"+1767(___) __-__"},1784:{name:"Saint Vincent and the Grenadines",dial_code:"+1784",code:"VC",mask:"+1784(___) __-__"},1849:{name:"Dominican Republic",dial_code:"+1849",code:"DO",mask:"+1849(___) ___-__-__"},1868:{name:"Trinidad and Tobago",dial_code:"+1868",code:"TT",mask:"+1868(___) __-__"},1869:{name:"Saint Kitts and Nevis",dial_code:"+1869",code:"KN",mask:"+1869(___) __-__"},1876:{name:"Jamaica",dial_code:"+1876",code:"JM",mask:"+1876(___) __-__"},1939:{name:"Puerto Rico",dial_code:"+1939",code:"PR",mask:"+1939(___) ___-__-__"}};function Ct({value:e,onValue:t,onSave:a,name:i,placeholder:r="",title:o="",error:s="",hide:l=!1,edit:c=!0,active:_=!0,after:u="",show:f=!0,view:m,className:x=""}){c=c!==void 0?c:!0,_=_!==void 0?_:!0,l=!!(l&&(e===""||e===void 0))&&!(c&&_),p.useRef(null);let b="+_(___) ___-__-__",g=!0,y=0,E=(K,P)=>{let Y=document.createRange(),J=window.getSelection();Y.setStart(P.childNodes[0],K),Y.collapse(!0),J.removeAllRanges(),J.addRange(Y),P.focus()},B=K=>{K.preventDefault(),navigator.clipboard.readText().then(P=>{window.document.execCommand("insertText",!1,P)}).catch(P=>{})},M=K=>{let P=0,Y="",J=K.replace(/\D/g,"");J===""&&(g=!0);let Qe=J.split(""),le="";Qe.forEach(et=>{g&&(le+=et,wt[le]!==void 0&&g?(g=!1,b=wt[le].mask.replace(new RegExp("[0-9]","g"),"_"),Y=wt[le].code):(g&&(y=(""+le).length,b=`+${le}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),Y=""),y>(""+le).length&&(g=!0,b=`+${le}_(___) ___-__-__`.replace(new RegExp("[0-9]","g"),"_"),Y="")))});let Ze=b.replace(/\D/g,"");return Ze.length>=J.length&&(J=Ze),{q:b.replace(/[_\d]/g,function(){return J.charAt(P++)||"_"}),i:P,v:J,f:Y}},j=K=>{K.preventDefault(),navigator.clipboard.writeText(K.target.textContent.replace(/\D/g,"")).then(function(){Se.Copy("Данные в буфер обмене")},function(P){})},D=M(e),T=K=>{let P=M(K.target.textContent);K.target.textContent=P.q,P.i=P.q.lastIndexOf(P.v.substr(-1)),P.i<P.q.length&&P.q!==b?P.i++:P.i=P.q.indexOf("_"),E(P.i,K.target),t&&t({value:P.q.replace(/\D/g,""),name:i})},N=K=>{K.key==="Enter"&&K.preventDefault()};const A=K=>{fe.Blur(K),a&&a({value:K.target.textContent.replace(/\D/g,""),name:i})},ee={};ee.field="input",x&&(ee.className=x);let ue={};return c&&_?(ue.edit="true",ue.contentEditable="plaintext-only"):ue.contentEditable="false",r&&(ue.placeholder=r),u&&(ue.after=u),l?n.jsx(n.Fragment,{}):n.jsxs("dl",{...ee,children:[o&&n.jsx("dt",{children:o}),n.jsx("dd",{...ue,onPaste:B,onInput:T,onKeyDown:N,onContextMenu:j,onBlur:A,suppressContentEditableWarning:!0,children:D.q}),s&&n.jsx("em",{children:s})]})}const Tn=e=>{let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=e.edit!==void 0?e.edit:!0,i=e.active!==void 0?e.active:!0,r=e.placeholder!==void 0?e.placeholder:"",o=0,s=()=>{clearTimeout(o),o=setTimeout(()=>{},1e3)},l=u=>{u.key==="Enter"&&u.preventDefault()},c=u=>{u.preventDefault(),navigator.clipboard.readText().then(f=>{window.document.execCommand("insertText",!1,f)}).catch(f=>{})};const _={};return r&&(_.placeholder=r),n.jsxs("dl",{"data-form":"input",children:[t(),n.jsx("dd",{onPaste:c,onInput:s,onKeyDown:l,contentEditable:a&&i?"plaintext-only":"false",..._,suppressContentEditableWarning:!0,children:e.value})]})};function jt({title:e,error:t,edit:a=!0,active:i=!0,hide:r,value:o="0",onValue:s,options:l,placeholder:c="",name:_,after:u,view:f}){const m=p.useRef();r=!!(r&&(o===""||l[o].n===void 0))&&!(a&&i);let v=o!==void 0&&o!==""?l[o].n:o,b=B=>{m.current.textContent=l[B].n,s&&s({value:B,name:_})},g=B=>{if(!(a&&i))return;const M=B.target.getBoundingClientRect();ge.setListener("form",n.jsx(mo,{parent:M,onValue:b,view:f,options:l},new Date().getTime()))},y={field:"select"},E={onClick:g};return c&&(E.placeholder=c),u&&(E.after=u),a&&i&&(E.edit=""),r?"":n.jsxs("dl",{...y,children:[e&&n.jsx("dt",{children:e}),n.jsx("dd",{...E,ref:m,children:v}),t&&n.jsx("em",{children:t})]})}const mo=({onValue:e,parent:t,view:a,options:i})=>{let[r,o]=p.useState(!0),s=()=>{o(!1)},l=u=>{o(!1),e(u)},c=window.innerHeight-t.y+t.height<320?t.y-312:t.y+33,_=window.innerWidth-t.x<265?t.x-235:t.x;return n.jsx(n.Fragment,{children:r?n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-select":"backdrop",onClick:s},new Date().getTime()),n.jsx("div",{"data-select":"background "+a,style:{top:c+"px",left:_+"px",width:t.width},children:n.jsx("ul",{children:Object.keys(i).map((u,f)=>i[u].s===1?n.jsx("li",{onClick:()=>{l(u)},children:i[u].n},f):"")})})]}):""})};function St(e){let t=()=>e.title?n.jsx("dt",{children:e.title}):"",a=()=>e.error?n.jsx("em",{children:e.error}):"",i=e.edit!==void 0?e.edit:!0,r=e.active!==void 0?e.active:!0,s=!!(e.hide&&(e.default===""||e.options[e.default]===void 0))&&!(i&&r),l=e.placeholder!==void 0?e.placeholder:"",c=x=>{u(e.options[x]),e.onValue({value:x,name:e.name})},[_,u]=p.useState(e.default!==void 0?e.options[e.default]:e.default),f=x=>{if(!(i&&r))return;const v=x.target.getBoundingClientRect();ge.setListener("form",n.jsx(po,{parent:v,onValue:c,view:e.view,options:e.options},new Date().getTime()))};const m={};return l&&(m.placeholder=l),s?n.jsx(n.Fragment,{}):n.jsxs("dl",{"data-form":"select",children:[t(),n.jsx("dd",{onClick:f,"data-edit":(i&&r)+"",...m,children:_}),a()]})}const po=({onValue:e,parent:t,view:a,options:i})=>{let[r,o]=p.useState(!0),s=()=>{o(!1)},l=f=>{o(!1),e(f)},c=Object.keys(i).length*36,_=window.innerHeight-t.y+t.height<c?t.y-(c-33):t.y+33,u=window.innerWidth-t.x<265?t.x-235:t.x;return n.jsx(n.Fragment,{children:r?n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-select":"backdrop",onClick:s},new Date().getTime()),n.jsx("div",{"data-select":"background "+a,style:{top:_+"px",left:u+"px",width:t.width},children:n.jsx("ul",{children:Object.keys(i).map((f,m)=>n.jsx("li",{onClick:()=>{l(f)},children:i[f]},m))})})]}):""})};function Et({set:e,value:t,onValue:a,name:i,placeholder:r="",title:o="",error:s="",hide:l=!1,edit:c=!0,show:_=!0,active:u=!0,after:f="",view:m,module:x,item:v,className:b=""}){let g={};switch(e){case"Input":return n.jsx(Ae,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Select":return v&&(g=ae.getSelect(parseInt(v))?ae.getSelect(parseInt(v)):{0:{s:"1",n:"не известно"}}),n.jsx(jt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b,options:g});case"Users":return ae.getSelect("user"),n.jsx(St,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b,options:g});case"Date":return n.jsx(vt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Phone":return n.jsx(Ct,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Number":return n.jsx(yt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Money":return n.jsx(kt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i,placeholder:r,className:b});case"Modal":return n.jsx(bt,{title:o,show:_,hide:l,view:m,edit:c,active:u,value:t,onValue:a,name:i||"",placeholder:r,className:b,options:g,module:x||""})}}function In({value:e,onValue:t,name:a,placeholder:i="",title:r="",error:o="",hide:s=!1,edit:l=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:m,onSave:x,className:v=""}){let b=!!(s&&(e===""||e===void 0));if(!(l&&c)&&!u||!(l&&c)&&b)return"";let g=M=>{t&&t({value:M.target.innerText,name:a})},y=M=>{x&&x({value:M.target.innerText,name:a})},E=M=>{M.preventDefault(),navigator.clipboard.readText().then(j=>{window.document.execCommand("insertText",!1,j)}).catch(j=>{})};const B={};return i&&(B.placeholder=i),n.jsxs("dl",{children:[r??n.jsx("dt",{children:r}),n.jsx("dd",{onPaste:E,onBlur:y,onInput:g,contentEditable:l&&c?"plaintext-only":"false",...B,suppressContentEditableWarning:!0,children:e}),o??n.jsx("em",{children:o})]})}function Dn({value:e,onValue:t,name:a,placeholder:i="",title:r="",error:o="",hide:s=!1,edit:l=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:m,onSave:x,className:v=""}){let b=!!(s&&(e===""||e===void 0)),g=Z.Date(e===void 0?new Date:e,"HH:MM"),y=p.useRef(null);if(!(l&&c)&&!u||!(l&&c)&&b)return"";let E=T=>{y.current.textContent=T,t&&t({value:T,name:a})},B=T=>{x&&x({value:T,name:a})},M=T=>{const N=T.target.getBoundingClientRect(),A=N.left,ee=N.top;ge.setListener("form",n.jsx(xo,{positions:{x:A,y:ee},onSave:B,onValue:E,date:g},new Date().getTime()))};const j={};j.field="input",v&&(j.className=v);const D={};return i&&(D.placeholder=i),n.jsx(n.Fragment,{children:f==="icon"?n.jsx("i",{"data-icon":"F043",onClick:M}):n.jsxs("dl",{...j,children:[r?n.jsx("dt",{children:r}):"",n.jsx("dd",{onClick:M,ref:y,...D,children:g}),o?n.jsx("em",{children:o}):""]})})}const xo=({positions:e,onSave:t,onValue:a,date:i})=>{let r=i.split(":"),o={h:Z.Number(2,r[0]),m:Z.Number(2,r[1])},s="hour",[l,c]=p.useState({}),_=!1,u=0,f=0,m={body:p.useRef(null),time:p.useRef(null),hour:p.useRef(null),timeText:p.useRef(null),hourText:p.useRef(null)};p.useEffect(()=>{c(m.body.current.getBoundingClientRect()),m.hour.current.style.transform="rotate("+o.h*15+"deg)",m.time.current.style.transform="rotate("+o.m*6+"deg)"},[m.body,m.hour,m.time,o.m,o.h]);let x=()=>{_=!0},v=()=>{_=!1,s=s==="hour"?"time":"hour",m.body.current.setAttribute("active",s)},b=D=>{if(_){let N=Math.atan2(D.pageX-(l.x+78),D.pageY-(l.y+78))*(180/Math.PI)*-1+180;m[s].current.style.transform="rotate("+N+"deg)",s==="hour"?(o={...o,h:Z.Number(2,parseInt(String(N/15),10))},m.hourText.current.textContent=o.h):(o={...o,m:Z.Number(2,parseInt(String(N/6),10))},m.timeText.current.textContent=o.m),a(o.h+":"+o.m)}},g=D=>{if(s==="hour")if(D.deltaY>0){u+=D.deltaY;let T=parseInt(String(u/50));if(f!==T){f=T;let N=parseInt(o.h,10)+1;N=N>23?0:N,o={...o,h:Z.Number(2,N)},m.hourText.current.textContent=o.h,m[s].current.style.transform="rotate("+o.h*15+"deg)"}}else{u-=D.deltaY;let T=parseInt(String(u/50));if(f!==T){f=T;let N=parseInt(o.h,10)-1;N=N<0?23:N,o={...o,h:Z.Number(2,N)},m.hourText.current.textContent=o.h,m[s].current.style.transform="rotate("+o.h*15+"deg)"}}else if(D.deltaY>0){u+=D.deltaY;let T=parseInt(String(u/50));if(f!==T){f=T;let N=parseInt(o.m,10)+1;N=N>59?0:N,o={...o,m:Z.Number(2,N)},m.timeText.current.textContent=o.m,m[s].current.style.transform="rotate("+o.m*6+"deg)"}}else{u-=D.deltaY;let T=parseInt(String(u/50));if(f!==T){f=T;let N=parseInt(o.m,10)-1;N=N<0?59:N,o={...o,m:Z.Number(2,N)},m.timeText.current.textContent=o.m,m[s].current.style.transform="rotate("+o.m*6+"deg)"}}a(o.h+":"+o.m)},[y,E]=p.useState(!0),B=()=>{E(!1),t(o.h+":"+o.m)},M=window.innerHeight-e.y+33<320?e.y-312:e.y+33,j=window.innerWidth-e.x<265?e.x-235:e.x;return n.jsx(n.Fragment,{children:y?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ne.o,onClick:()=>B()},new Date().getTime()),n.jsxs("div",{className:Ne.c,onMouseDown:x,onMouseUp:v,onMouseMove:b,onWheel:g,ref:m.body,style:{top:M+"px",left:j+"px"},children:[n.jsx("div",{className:"b"}),n.jsxs("div",{className:"s",children:[n.jsx("span",{className:"hour",ref:m.hourText,children:o.h})," ",":"," ",n.jsx("span",{className:"min",ref:m.timeText,children:o.m})]}),n.jsx("div",{className:"h",ref:m.hour}),n.jsx("div",{className:"t",ref:m.time})]})]}):""})};function Mn({onValue:e,label:t,value:a,className:i,name:r,reload:o}){a=!!a;const[s,l]=p.useState(a),c=()=>{let f=!s;e({name:r,value:f,reload:o}),l(f)},_={};_.field="check",i&&(_.className=i);const u={};return s&&(u.active=""),n.jsxs("dl",{..._,children:[t?n.jsx("dt",{children:t}):"",n.jsx("dd",{...u,onClick:c})]})}const ho=({label:e,onValue:t,value:a,name:i,item:r})=>{const[o,s]=p.useState(!!a);p.useEffect(()=>{s(!!a)},[a]);let l=()=>{let c=parseInt(o)===0?1:0;s(c),t({value:c,name:i,key:r,item:r})};return n.jsx("div",{role:"switch",onClick:l,"aria-checked":`${o?"true":"false"}`})},Fn=({onValue:e,value:t,name:a,item:i})=>{const[r,o]=p.useState(!!t);p.useEffect(()=>{o(!!t)},[t]);let s=()=>{let l=parseInt(r)===0?1:0;o(l),e({value:l,name:a,key:i,item:i})};return n.jsx("div",{role:"switch",onClick:s,"aria-checked":`${r?"true":"false"}`})};function $n({value:e,onValue:t,name:a,placeholder:i="",title:r="",error:o="",hide:s=!1,edit:l=!0,active:c=!0,after:_="",show:u=!0,view:f,onBlur:m,onSave:x,className:v=""}){const[b,g]=p.useState(e!==void 0?e.split(","):[]);p.useEffect(()=>{e!==void 0&&g(e!==void 0?e.split(","):[])},[e]);let y=()=>{g([...b,""])},E=A=>{b.splice(A,1),b.length===0&&b.push(""),g([...b]),m!==void 0&&m({value:b.join(","),name:a})},B=!!(s&&(e===""||e===void 0)),M=A=>{};if(!(l&&c)&&!u||!(l&&c)&&B)return"";const j={};j.field="group",v&&(j.className=v);const D=A=>{fe.Blur(A),x&&x({value:A.target.textContent,name:a})};let T=(A,ee)=>{b[ee]=A.target.textContent,t!==void 0&&t({value:b.join(","),name:a})},N=A=>{A.key==="Enter"&&A.preventDefault()};return n.jsxs("dl",{...j,children:[n.jsxs("dt",{children:[r,n.jsx("i",{onClick:y,children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.jsx("path",{d:"M12 5.25v13.5"}),n.jsx("path",{d:"M18.75 12H5.25"})]})})]}),n.jsx("dd",{children:b.map((A,ee)=>n.jsxs("li",{className:"field_group_item",children:[n.jsx("span",{onInput:ue=>T(ue,ee),edit:"true",name:a,placeholder:i,onPaste:M,contentEditable:!0,onKeyDown:N,onBlur:D,suppressContentEditableWarning:!0,children:b[ee]}),n.jsx("i",{onClick:()=>{E(ee)},children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),n.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})})]},ee))}),o?n.jsx("em",{children:o}):""]})}const Te={};function go(e){const[t,a]=p.useState({}),i=p.useRef(e);return Te.u=r=>{i.current={...i.current,[r.name]:r.value}},Te.r=()=>{a(Date.now())},[i.current]}function vo(e){Te.u(e),e.reload&&Te.r()}function bo(){Te.r&&Te.r()}const ko={Color:jn,Date:vt,Code:Cn,Check:Mn,Switch:vn,Input:Ae,Button:bn,Message:kn,Generator:yn,Captcha:wn,Modal:bt,Money:kt,Month:Sn,Notes:En,Number:yt,Password:Nn,Phone:Ct,Search:Tn,Select:jt,Set:Et,Textarea:In,Time:Dn,Users:St,String:Ae,Form:Et,runReload:bo,useData:go,setValue:vo,Palette:ho,Toogle:Fn,Group:$n},yo={Color:jn,Date:vt,Code:Cn,Check:Mn,Switch:vn,Input:Ae,Button:bn,Message:kn,Generator:yn,Captcha:wn,Modal:bt,Money:kt,Month:Sn,Notes:En,Number:yt,Password:Nn,Phone:Ct,Search:Tn,Select:jt,Set:Et,Textarea:In,Time:Dn,Users:St,String:Ae,Toogle:Fn,Group:$n},Bn={spinner:"_spinner_1ul0m_1",l:"_l_1ul0m_75",loadingB:"_loadingB_1ul0m_1"};function wo(){return n.jsx("div",{className:Bn.spinner,children:n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 483 484",children:n.jsx("path",{d:"M264,492a22.2,22.2,0,0,0,22-22V411a22.2,22.2,0,0,0-22-22H236a22.2,22.2,0,0,0-22,22v59a22.2,22.2,0,0,0,22,22Zm74-134a23.9,23.9,0,0,0-6,16,20.35,20.35,0,0,0,6,15l42,42q7,7,16,7,10,0,16-7l20-20a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16l-42-42q-7-7-16-7-8,0-15,7ZM163,389a18.94,18.94,0,0,0,7-15q0-9-7-16l-20-20q-7-7-16-7-8,0-15,7L70,380q-7,7-7,16a18.94,18.94,0,0,0,7,15l20,20q7,7,16,7a18.94,18.94,0,0,0,15-7ZM112,237a22.2,22.2,0,0,0-22-22H31a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,9,237v28a21.17,21.17,0,0,0,6.5,15.5A21.17,21.17,0,0,0,31,287H90a22.2,22.2,0,0,0,22-22Zm358,50a22.2,22.2,0,0,0,22-22V237a22.2,22.2,0,0,0-22-22H411a22.2,22.2,0,0,0-22,22v28a22.2,22.2,0,0,0,22,22ZM163,142q7-7,7-15.5T163,111L121,69q-7-7-15-7-7,0-16,7L70,89q-7,7-7,16a18.94,18.94,0,0,0,7,15l42,42a18.94,18.94,0,0,0,15,7q10,0,16-7Zm269-22a20.35,20.35,0,0,0,6-15,23.9,23.9,0,0,0-6-16L412,69q-7-7-16-7-7,0-16,7l-42,42q-7,8-7,16t7,15l21,20a18.94,18.94,0,0,0,15,7q10,0,16-7Zm-168-9a22.06,22.06,0,0,0,15.5-6q6.5-6,6.5-16V30a21.17,21.17,0,0,0-6.5-15.5A21.17,21.17,0,0,0,264,8H236a21.17,21.17,0,0,0-15.5,6.5A21.17,21.17,0,0,0,214,30V89q0,10,6.5,16a22.06,22.06,0,0,0,15.5,6Z",transform:"translate(-9 -8)"})})})}function Co(){return n.jsxs("div",{className:Bn.l,children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})}const jo={Spinner:wo,Inline:Co},Ln={s:"_s_t9swc_1"};let Nt;function So({className:e,placeholder:t}){let a=s=>{Nt(s.target.textContent)},i=s=>{s.key==="Enter"&&s.preventDefault()},r=s=>{s.preventDefault(),navigator.clipboard.readText().then(l=>{window.document.execCommand("insertText",!1,l)}).catch(l=>{})};const o={};return t&&(o.placeholder=t),o.className=e?[Ln.s,e].join(" "):Ln.s,n.jsx("div",{onPaste:r,onInput:a,onKeyDown:i,contentEditable:"true",...o,suppressContentEditableWarning:!0})}function Eo(e,t,a){let i=[],r=1,o=0,s={},l=50;return s[r]=[],e.forEach(c=>{c.text.toLowerCase().indexOf(t)>-1&&i.push(c.id)}),i.forEach(c=>{o++,o<=l||(r++,o=1,s[r]=[]),s[r].push(a[c])}),s}function No(e){Nt=e}function To(e){Nt=e}const Io={Field:So,Run:Eo,Get:No,useValue:To},Do={f:"_f_q3r0i_1"};let ie={};function Mo(e,t){switch(t.type){case"open":return{...e,open:t.open};case"view":return{...e,view:e.view===t.view?null:t.view};case"data":let a={};return Object.keys(t.data).forEach(r=>{r!=="sort"&&(a[r]=t.data[r],e.take[r]="999")}),{...e,data:a,take:e.take};case"size":return{...e,size:t.size};case"take":let i={[t.list]:t.take};i={...e.take,...i},e.active=!1;for(let r in i)i[r]!=="999"&&(e.active=!0);return ie.get(i,e.active),{...e,take:i,active:e.active};case"exit":for(let r in e.take)e.take[r]="999";return ie.get&&ie.get([],!1),{...e,size:0,active:!1,take:e.take,open:!1};default:throw new Error}}function Fo(){const[e,t]=p.useReducer(Mo,{open:!1,view:null,data:{},take:{},size:0,active:!1});return ie.set=a=>{t({type:"data",data:a})},ie.count=a=>{t({type:"size",size:a})},ie.reset=()=>{t({type:"exit"})},n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:Do.f,onClick:()=>{t({type:"open",open:!0})},children:[n.jsx(hi,{}),e.active&&n.jsxs("i",{children:[e.size,"1"]})]}),e.open?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"filter o",onClick:()=>{t({type:"open",open:!1})}}),n.jsxs("div",{className:"filter m",children:[n.jsx("div",{className:"filter l",children:Object.keys(e.data).map(a=>n.jsx(Ro,{data:a,dispatch:t,state:e},a))}),n.jsx("div",{className:"filter b",onClick:()=>{t({type:"exit"})},children:"Убрать фильтер"})]})]}):n.jsx(n.Fragment,{})]})}function $o(e){ie.get=e}function Bo(e){ie.set!==void 0&&ie.set(e)}function Lo(e){ie.reset!==void 0&&ie.reset(e)}function Po(e,t,a,i){let r=[],o=1,s=0,l={},c=50;return l[o]=[],i===!0&&(Object.keys(t).forEach(_=>{Number.parseInt(t[_])!==999&&(e=e.filter(u=>Number.parseInt(u[_])===Number.parseInt(t[_])))}),Pn(e.length)),e.forEach(_=>{r.push(_.id)}),r.forEach(_=>{s++,s<=c||(o++,s=1,l[o]=[]),l[o].push(a[_])}),l}function Pn(e){ie.count(e)}function Ro({data:e,state:t,dispatch:a}){let i=()=>{a({type:"view",view:e})},r=()=>{a({type:"take",list:e,take:"999"})};return n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"filter s",children:[n.jsxs("div",{onClick:i,children:[" ",t.data[e].name," "]}),t.take[e]!=="999"?n.jsx("div",{onClick:r,className:"filter x","data-icon":"F038"}):""]}),n.jsx("div",{className:"filter u","set-active":(t.view===e)+"",children:Object.keys(t.data[e].list).map((o,s)=>n.jsx(zo,{data:t.data[e].list[o],head:e,type:o,dispatch:a,state:t},s))})]})}function zo({data:e,head:t,state:a,dispatch:i,type:r}){if(r!=="999"&&e.count===void 0)return"";const o=()=>{i({type:"take",list:t,take:r})};return n.jsxs("div",{className:"filter a",onClick:o,"set-active":(a.take[t]===r)+"",children:[e.name,n.jsx("div",{className:"filter e",children:e.count})]})}const Oo={Button:Fo,useValue:$o,Set:Bo,Run:Po,Count:Pn,Reset:Lo},Ao={Bell:Ci,Send:ki,Add:bi},Rn={p:"_p_djnh1_1",l:"_l_djnh1_38"};function Zo(e){let t=3,a=e.page,i=e.count,r=[],o=()=>{r.push({page:1}),r.push({text:"..."})},s=()=>{r.push({text:"..."}),r.push({page:i})},l=(c,_)=>{for(let u=c;u<_;u++)r.push({page:u})};return i<t*2+6?l(1,i+1):a<t*2+1?(l(1,t*2+4),s()):a>i-t*2?(t=i>1e4?1:t,o(),l(i-t*2-2,i+1)):(t=i>1e4?1:t,o(),l(a-t,a+t+1),s()),r.length===1?n.jsx(n.Fragment,{}):n.jsxs("div",{className:Rn.p,children:[n.jsx("i",{onClick:()=>e.onChangePage(a-1),children:n.jsx("svg",{viewBox:"0 0 24 24",children:n.jsx("path",{d:"M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z"})})}),r.map((c,_)=>{const u={};return c.page&&(u.onClick=()=>e.onChangePage(c.page)),c.page===e.page&&(u.active=""),p.createElement("span",{...u,key:_},c.page||c.text)}),n.jsx("i",{onClick:()=>e.onChangePage(a+1),children:n.jsx("svg",{viewBox:"0 0 24 24",children:n.jsx("path",{d:"M8.19486 5.40705C8.52237 4.96235 9.14837 4.86736 9.59306 5.19488C9.93847 5.44927 10.2668 5.70372 10.5528 5.92689C11.1236 6.3724 11.8882 6.98573 12.6556 7.65208C13.4181 8.31412 14.2064 9.04815 14.8119 9.73344C15.1136 10.0749 15.3911 10.4279 15.5986 10.7721C15.7895 11.0888 16 11.524 16 12.0001C16 12.4762 15.7895 12.9115 15.5986 13.2282C15.3911 13.5724 15.1136 13.9253 14.8119 14.2668C14.2064 14.9521 13.4181 15.6861 12.6556 16.3482C11.8882 17.0145 11.1236 17.6278 10.5528 18.0734C10.2668 18.2965 9.93847 18.551 9.59307 18.8054C9.14837 19.1329 8.52237 19.0379 8.19486 18.5932C8.0632 18.4144 7.99983 18.2064 8.00001 18.0002L8 12.0001L8 6.00007C7.99983 5.79387 8.0632 5.58581 8.19486 5.40705Z"})})})]})}function Go(e,t){switch(t.type){case"load":return{...e,load:t.load,wait:!1,data:t.data,list:t.data[e.page],size:Object.keys(t.data).length};case"page":return{...e,page:t.page,list:e.data[t.page]};default:throw new Error}}function zn({load:e,list:t,item:a}){const i=p.useRef(null),[r,o]=p.useReducer(Go,{load:!1,list:[],data:{},page:1,wait:!1,item:a});p.useEffect(()=>{t!==null&&o({type:"load",load:e,data:t})},[e]);let s=l=>{if(l===0)return l=1;if(l>r.size)return l=r.size;o({type:"page",page:l})};return p.useEffect(()=>{},[r]),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Rn.l,ref:i,children:n.jsx(hn,{"el-empty":"Данные не найдены",children:r.load&&r.list!==void 0?r.list.map(l=>n.jsx(r.item,{data:l},l.id)):n.jsxs("div",{"type-data":"load",children:[n.jsx("i",{}),n.jsx("i",{}),n.jsx("i",{})]})})}),r.load&&r.list!==void 0?n.jsx(Zo,{page:r.page,count:r.size,onChangePage:s}):n.jsx(n.Fragment,{})]})}const Wo={Pagination:zn};function Ko({head:e,load:t,list:a,item:i}){const r=e;return n.jsxs(n.Fragment,{children:[n.jsx(r,{}),He.getSetting("s05")===1?n.jsx(zn,{list:a,load:t,item:i}):n.jsx(gn,{list:a,load:t,item:i})]})}function Uo(e,t){switch(t.type){case"load":return{...e,time:Date.now(),load:t.load,list:t.list,temp:t.temp};case"filter":return{...e,list:t.list,filter:t.active,band:t.band,time:Date.now()};case"search":return{...e,time:Date.now(),list:t.list};case"triage":return{...e,time:Date.now(),list:t.list,sort:t.sort};case"noload":return{...e,load:!0,time:Date.now()};default:throw new Error}}const Tt={};function Vo(e){Tt.get=e}function qo(e){Tt.get&&Tt.get(e)}const Yo={View:Ko,Reducer:Uo,useValue:Vo,setValue:qo},Ho={Get:Ti},Jo={Open:gr};S.Action=mn,S.Alert=Wr,S.Api=dt,S.Badge=ao,S.Bookmarks=Gr,S.Browser=Fr,S.Button=rn,S.Company=Ho,S.Component=ut,S.DataBase=oo,S.Event=ge,S.Events=ge,S.Files=_o,S.Filter=Oo,S.Form=ko,S.Format=Z,S.HotKey=so,S.Icon=Ur,S.Init=un,S.Input=yo,S.List=Yo,S.Loading=jo,S.Modal=Ye,S.Notice=Se,S.Notifications=Ao,S.Pagination=Wo,S.Phone=Jo,S.Router=Pe,S.Scrolling=gn,S.Search=Io,S.Setting=Zr,S.Sistym=Ue,S.Socket=ce,S.Store=ae,S.Tabs=fn,S.Triage=eo,S.User=He,S.WebRTC=O,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elcrm",
3
- "version": "0.8.26",
3
+ "version": "0.8.28",
4
4
  "description": "React framework for creating modules for elCRM",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",