@elcrm/telegram 0.0.77 → 0.0.79

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.
@@ -0,0 +1,6 @@
1
+ export type TLoading = {
2
+ className?: string;
3
+ children?: React.ReactNode;
4
+ };
5
+ declare const Loading: ({ children, className }: TLoading) => import("react/jsx-runtime").JSX.Element;
6
+ export default Loading;
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- *{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}._h_rl5ga_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_rl5ga_1._row_rl5ga_14{flex-direction:row}._h_rl5ga_1._column_rl5ga_17{flex-direction:column}._h_rl5ga_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_rl5ga_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_rl5ga_1 button{flex:1}._p_11v0c_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_11v0c_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_11v0c_17{overflow:scroll}
1
+ *{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}._h_rl5ga_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_rl5ga_1._row_rl5ga_14{flex-direction:row}._h_rl5ga_1._column_rl5ga_17{flex-direction:column}._h_rl5ga_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_rl5ga_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_rl5ga_1 button{flex:1}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ declare namespace Telegram {
45
45
  }) => import("react/jsx-runtime").JSX.Element;
46
46
  const toggleBottomSheet: () => void;
47
47
  const SafeArea: ({ className, children, isScroll }: import("./SafeArea").TSafeArea) => import("react/jsx-runtime").JSX.Element;
48
+ const Loading: ({ children, className }: import("./Loading").TLoading) => import("react/jsx-runtime").JSX.Element;
48
49
  const Modal: typeof _Modal;
49
50
  const MainButton: {
50
51
  callback: never[];
@@ -102,6 +103,7 @@ export declare const BackButton: (params: boolean | {
102
103
  */
103
104
  export declare const Notice: (type: any, text?: any, thema?: any) => void;
104
105
  export declare const SafeArea: ({ className, children, isScroll }: import('./SafeArea').TSafeArea) => import("react/jsx-runtime").JSX.Element;
106
+ export declare const Loading: ({ children, className }: import('./Loading').TLoading) => import("react/jsx-runtime").JSX.Element;
105
107
  export declare const Header: () => import("react/jsx-runtime").JSX.Element, toggleBottomSheet: () => void, Modal: typeof _Modal, MainButton: {
106
108
  callback: never[];
107
109
  set: (j: MainButton | boolean) => void;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import B, { useState as le, useEffect as Ze } from "react";
1
+ import N, { useState as le, useEffect as Ze } from "react";
2
2
  import './index.css';var Pt = { exports: {} }, Je = {};
3
3
  /**
4
4
  * @license React
@@ -13,7 +13,7 @@ var It;
13
13
  function Ht() {
14
14
  if (It) return Je;
15
15
  It = 1;
16
- var r = B, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
16
+ var r = N, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
17
17
  function w(R, v, x) {
18
18
  var m, b = {}, E = null, D = null;
19
19
  x !== void 0 && (E = "" + x), v.key !== void 0 && (E = "" + v.key), v.ref !== void 0 && (D = v.ref);
@@ -36,7 +36,7 @@ var qe = {};
36
36
  var $t;
37
37
  function Gt() {
38
38
  return $t || ($t = 1, process.env.NODE_ENV !== "production" && function() {
39
- var r = B, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), R = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), A = Symbol.iterator, Ee = "@@iterator";
39
+ var r = N, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), R = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), A = Symbol.iterator, Ee = "@@iterator";
40
40
  function ke(e) {
41
41
  if (e === null || typeof e != "object")
42
42
  return null;
@@ -61,14 +61,14 @@ function Gt() {
61
61
  p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
62
62
  }
63
63
  }
64
- var Se = !1, xe = !1, g = !1, k = !1, I = !1, F;
65
- F = Symbol.for("react.module.reference");
64
+ var Se = !1, xe = !1, g = !1, k = !1, I = !1, B;
65
+ B = Symbol.for("react.module.reference");
66
66
  function L(e) {
67
67
  return !!(typeof e == "string" || typeof e == "function" || e === f || e === h || I || e === d || e === x || e === m || k || e === D || Se || xe || g || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === b || e.$$typeof === w || e.$$typeof === R || e.$$typeof === v || // This needs to include all possible module reference object
68
68
  // types supported by any Flight configuration anywhere since
69
69
  // we don't know which Flight build this will end up being used
70
70
  // with.
71
- e.$$typeof === F || e.getModuleId !== void 0));
71
+ e.$$typeof === B || e.getModuleId !== void 0));
72
72
  }
73
73
  function ae(e, t, n) {
74
74
  var a = e.displayName;
@@ -125,13 +125,13 @@ function Gt() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var $ = Object.assign, N = 0, K, H, G, Oe, je, we, Ce;
128
+ var $ = Object.assign, F = 0, K, H, G, Oe, je, we, Ce;
129
129
  function Pe() {
130
130
  }
131
131
  Pe.__reactDisabledLog = !0;
132
132
  function nt() {
133
133
  {
134
- if (N === 0) {
134
+ if (F === 0) {
135
135
  K = console.log, H = console.info, G = console.warn, Oe = console.error, je = console.group, we = console.groupCollapsed, Ce = console.groupEnd;
136
136
  var e = {
137
137
  configurable: !0,
@@ -149,12 +149,12 @@ function Gt() {
149
149
  groupEnd: e
150
150
  });
151
151
  }
152
- N++;
152
+ F++;
153
153
  }
154
154
  }
155
155
  function ot() {
156
156
  {
157
- if (N--, N === 0) {
157
+ if (F--, F === 0) {
158
158
  var e = {
159
159
  configurable: !0,
160
160
  enumerable: !0,
@@ -184,7 +184,7 @@ function Gt() {
184
184
  })
185
185
  });
186
186
  }
187
- N < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ F < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
190
  var ue = M.ReactCurrentDispatcher, ce;
@@ -364,12 +364,12 @@ function Gt() {
364
364
  if (ft(e))
365
365
  return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ct(e)), $e(e);
366
366
  }
367
- var Be = M.ReactCurrentOwner, dt = {
367
+ var Ne = M.ReactCurrentOwner, dt = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
- }, Fe, Ne;
372
+ }, Be, Fe;
373
373
  function pt(e) {
374
374
  if (z.call(e, "ref")) {
375
375
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -387,12 +387,12 @@ function Gt() {
387
387
  return e.key !== void 0;
388
388
  }
389
389
  function mt(e, t) {
390
- typeof e.ref == "string" && Be.current;
390
+ typeof e.ref == "string" && Ne.current;
391
391
  }
392
392
  function ht(e, t) {
393
393
  {
394
394
  var n = function() {
395
- Fe || (Fe = !0, S("%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)", t));
395
+ Be || (Be = !0, S("%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)", t));
396
396
  };
397
397
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
398
398
  get: n,
@@ -403,7 +403,7 @@ function Gt() {
403
403
  function gt(e, t) {
404
404
  {
405
405
  var n = function() {
406
- Ne || (Ne = !0, S("%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)", t));
406
+ Fe || (Fe = !0, S("%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)", t));
407
407
  };
408
408
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
409
  get: n,
@@ -455,7 +455,7 @@ function Gt() {
455
455
  var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
456
  s && ht(l, _), O && gt(l, _);
457
457
  }
458
- return yt(e, s, O, c, a, Be.current, l);
458
+ return yt(e, s, O, c, a, Ne.current, l);
459
459
  }
460
460
  }
461
461
  var pe = M.ReactCurrentOwner, Me = M.ReactDebugCurrentFrame;
@@ -797,11 +797,11 @@ var Ke = {};
797
797
  * This source code is licensed under the MIT license found in the
798
798
  * LICENSE file in the root directory of this source tree.
799
799
  */
800
- var Bt;
800
+ var Nt;
801
801
  function nr() {
802
- if (Bt) return Ke;
803
- Bt = 1;
804
- var r = B, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
802
+ if (Nt) return Ke;
803
+ Nt = 1;
804
+ var r = N, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
805
805
  function w(R, v, x) {
806
806
  var m, b = {}, E = null, D = null;
807
807
  x !== void 0 && (E = "" + x), v.key !== void 0 && (E = "" + v.key), v.ref !== void 0 && (D = v.ref);
@@ -821,10 +821,10 @@ var Xe = {};
821
821
  * This source code is licensed under the MIT license found in the
822
822
  * LICENSE file in the root directory of this source tree.
823
823
  */
824
- var Ft;
824
+ var Bt;
825
825
  function or() {
826
- return Ft || (Ft = 1, process.env.NODE_ENV !== "production" && function() {
827
- var r = B, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), R = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), A = Symbol.iterator, Ee = "@@iterator";
826
+ return Bt || (Bt = 1, process.env.NODE_ENV !== "production" && function() {
827
+ var r = N, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), R = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), A = Symbol.iterator, Ee = "@@iterator";
828
828
  function ke(e) {
829
829
  if (e === null || typeof e != "object")
830
830
  return null;
@@ -849,14 +849,14 @@ function or() {
849
849
  p.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, p);
850
850
  }
851
851
  }
852
- var Se = !1, xe = !1, g = !1, k = !1, I = !1, F;
853
- F = Symbol.for("react.module.reference");
852
+ var Se = !1, xe = !1, g = !1, k = !1, I = !1, B;
853
+ B = Symbol.for("react.module.reference");
854
854
  function L(e) {
855
855
  return !!(typeof e == "string" || typeof e == "function" || e === f || e === h || I || e === d || e === x || e === m || k || e === D || Se || xe || g || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === b || e.$$typeof === w || e.$$typeof === R || e.$$typeof === v || // This needs to include all possible module reference object
856
856
  // types supported by any Flight configuration anywhere since
857
857
  // we don't know which Flight build this will end up being used
858
858
  // with.
859
- e.$$typeof === F || e.getModuleId !== void 0));
859
+ e.$$typeof === B || e.getModuleId !== void 0));
860
860
  }
861
861
  function ae(e, t, n) {
862
862
  var a = e.displayName;
@@ -913,13 +913,13 @@ function or() {
913
913
  }
914
914
  return null;
915
915
  }
916
- var $ = Object.assign, N = 0, K, H, G, Oe, je, we, Ce;
916
+ var $ = Object.assign, F = 0, K, H, G, Oe, je, we, Ce;
917
917
  function Pe() {
918
918
  }
919
919
  Pe.__reactDisabledLog = !0;
920
920
  function nt() {
921
921
  {
922
- if (N === 0) {
922
+ if (F === 0) {
923
923
  K = console.log, H = console.info, G = console.warn, Oe = console.error, je = console.group, we = console.groupCollapsed, Ce = console.groupEnd;
924
924
  var e = {
925
925
  configurable: !0,
@@ -937,12 +937,12 @@ function or() {
937
937
  groupEnd: e
938
938
  });
939
939
  }
940
- N++;
940
+ F++;
941
941
  }
942
942
  }
943
943
  function ot() {
944
944
  {
945
- if (N--, N === 0) {
945
+ if (F--, F === 0) {
946
946
  var e = {
947
947
  configurable: !0,
948
948
  enumerable: !0,
@@ -972,7 +972,7 @@ function or() {
972
972
  })
973
973
  });
974
974
  }
975
- N < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
975
+ F < 0 && S("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
976
976
  }
977
977
  }
978
978
  var ue = M.ReactCurrentDispatcher, ce;
@@ -1152,12 +1152,12 @@ function or() {
1152
1152
  if (ft(e))
1153
1153
  return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ct(e)), $e(e);
1154
1154
  }
1155
- var Be = M.ReactCurrentOwner, dt = {
1155
+ var Ne = M.ReactCurrentOwner, dt = {
1156
1156
  key: !0,
1157
1157
  ref: !0,
1158
1158
  __self: !0,
1159
1159
  __source: !0
1160
- }, Fe, Ne;
1160
+ }, Be, Fe;
1161
1161
  function pt(e) {
1162
1162
  if (z.call(e, "ref")) {
1163
1163
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
@@ -1175,12 +1175,12 @@ function or() {
1175
1175
  return e.key !== void 0;
1176
1176
  }
1177
1177
  function mt(e, t) {
1178
- typeof e.ref == "string" && Be.current;
1178
+ typeof e.ref == "string" && Ne.current;
1179
1179
  }
1180
1180
  function ht(e, t) {
1181
1181
  {
1182
1182
  var n = function() {
1183
- Fe || (Fe = !0, S("%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)", t));
1183
+ Be || (Be = !0, S("%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)", t));
1184
1184
  };
1185
1185
  n.isReactWarning = !0, Object.defineProperty(e, "key", {
1186
1186
  get: n,
@@ -1191,7 +1191,7 @@ function or() {
1191
1191
  function gt(e, t) {
1192
1192
  {
1193
1193
  var n = function() {
1194
- Ne || (Ne = !0, S("%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)", t));
1194
+ Fe || (Fe = !0, S("%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)", t));
1195
1195
  };
1196
1196
  n.isReactWarning = !0, Object.defineProperty(e, "ref", {
1197
1197
  get: n,
@@ -1243,7 +1243,7 @@ function or() {
1243
1243
  var _ = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
1244
1244
  s && ht(l, _), O && gt(l, _);
1245
1245
  }
1246
- return yt(e, s, O, c, a, Be.current, l);
1246
+ return yt(e, s, O, c, a, Ne.current, l);
1247
1247
  }
1248
1248
  }
1249
1249
  var pe = M.ReactCurrentOwner, Me = M.ReactDebugCurrentFrame;
@@ -1483,11 +1483,11 @@ var Re;
1483
1483
  r.Default = f;
1484
1484
  function d(g) {
1485
1485
  let k = (L) => (ne({ page: L }), L);
1486
- const [I, F] = B.useState(
1486
+ const [I, B] = N.useState(
1487
1487
  w() || g && k(g) || C().page
1488
1488
  );
1489
1489
  return _e({ page: (L) => {
1490
- F(L);
1490
+ B(L);
1491
1491
  } }), I;
1492
1492
  }
1493
1493
  r.usePage = d;
@@ -1507,10 +1507,10 @@ var Re;
1507
1507
  }
1508
1508
  r.isPage = R;
1509
1509
  function v(g, k) {
1510
- const [I, F] = B.useState(
1510
+ const [I, B] = N.useState(
1511
1511
  m() || g || C().module
1512
1512
  );
1513
- return _e({ module: F }), I;
1513
+ return _e({ module: B }), I;
1514
1514
  }
1515
1515
  r.useModule = v;
1516
1516
  function x(g, k = !0) {
@@ -1530,9 +1530,9 @@ var Re;
1530
1530
  r.isModule = b;
1531
1531
  function E(g, k) {
1532
1532
  if (typeof g != "function") {
1533
- const [I, F] = B.useState(!k), [L, ae] = B.useState(g || A());
1534
- return _e({ tabs: ae }), k && B.useEffect(() => {
1535
- F(!0);
1533
+ const [I, B] = N.useState(!k), [L, ae] = N.useState(g || A());
1534
+ return _e({ tabs: ae }), k && N.useEffect(() => {
1535
+ B(!0);
1536
1536
  }, []), [L, I];
1537
1537
  } else
1538
1538
  _e({ tabs: g });
@@ -1555,9 +1555,9 @@ var Re;
1555
1555
  r.isTabs = Ee;
1556
1556
  function ke(g) {
1557
1557
  if (typeof g != "function") {
1558
- const [k, I] = B.useState(g || be());
1559
- return _e({ id: (F) => {
1560
- I(F);
1558
+ const [k, I] = N.useState(g || be());
1559
+ return _e({ id: (B) => {
1560
+ I(B);
1561
1561
  } }), k;
1562
1562
  } else
1563
1563
  _e({ id: g });
@@ -1582,9 +1582,9 @@ var Re;
1582
1582
  }
1583
1583
  r.isId = Se;
1584
1584
  async function xe(g) {
1585
- var k, I, F, L, ae, ie, T, $;
1586
- const { page: N, module: K, tab: H, id: G } = g;
1587
- N !== void 0 && (re.page = N), K !== void 0 && (re.module = K), H !== void 0 && (re.tab = H), G !== void 0 && (re.id = G), ne({ ...re }), G !== void 0 && ((I = (k = oe()).id) == null || I.call(k, G)), H !== void 0 && ((L = (F = oe()).tabs) == null || L.call(F, H)), K !== void 0 && ((ie = (ae = oe()).module) == null || ie.call(ae, K)), N !== void 0 && (($ = (T = oe()).page) == null || $.call(T, N)), sessionStorage.setItem(
1585
+ var k, I, B, L, ae, ie, T, $;
1586
+ const { page: F, module: K, tab: H, id: G } = g;
1587
+ F !== void 0 && (re.page = F), K !== void 0 && (re.module = K), H !== void 0 && (re.tab = H), G !== void 0 && (re.id = G), ne({ ...re }), G !== void 0 && ((I = (k = oe()).id) == null || I.call(k, G)), H !== void 0 && ((L = (B = oe()).tabs) == null || L.call(B, H)), K !== void 0 && ((ie = (ae = oe()).module) == null || ie.call(ae, K)), F !== void 0 && (($ = (T = oe()).page) == null || $.call(T, F)), sessionStorage.setItem(
1588
1588
  C().STORAGE,
1589
1589
  se.enCode(C())
1590
1590
  );
@@ -1593,7 +1593,7 @@ var Re;
1593
1593
  })(Re || (Re = {}));
1594
1594
  let tt = {};
1595
1595
  function ir() {
1596
- const [r, o] = B.useState([]);
1596
+ const [r, o] = N.useState([]);
1597
1597
  return tt.set = (i) => {
1598
1598
  o([...r, i]);
1599
1599
  }, tt.del = (i) => {
@@ -1608,8 +1608,8 @@ function sr(r) {
1608
1608
  }
1609
1609
  function lr(r) {
1610
1610
  const o = r.data;
1611
- let [i] = B.useState("show"), [f, d] = B.useState(!1);
1612
- B.useEffect(() => {
1611
+ let [i] = N.useState("show"), [f, d] = N.useState(!1);
1612
+ N.useEffect(() => {
1613
1613
  setTimeout(function() {
1614
1614
  d(!0), tt.del(o.key);
1615
1615
  }, 5e3);
@@ -1659,7 +1659,7 @@ let rt = {
1659
1659
  }, Ge = () => {
1660
1660
  };
1661
1661
  const Jt = ({ children: r, title: o, isOverlay: i = !0 }) => {
1662
- const [f, d] = B.useState(!1);
1662
+ const [f, d] = N.useState(!1);
1663
1663
  return Ge = () => {
1664
1664
  d(!0), setTimeout(() => {
1665
1665
  qt.onClose();
@@ -1692,7 +1692,7 @@ const Jt = ({ children: r, title: o, isOverlay: i = !0 }) => {
1692
1692
  )
1693
1693
  }
1694
1694
  );
1695
- }, ur = "_h_rl5ga_1", cr = "_row_rl5ga_14", fr = "_column_rl5ga_17", Nt = {
1695
+ }, ur = "_h_rl5ga_1", cr = "_row_rl5ga_14", fr = "_column_rl5ga_17", Ft = {
1696
1696
  h: ur,
1697
1697
  row: cr,
1698
1698
  column: fr
@@ -1705,7 +1705,7 @@ const Jt = ({ children: r, title: o, isOverlay: i = !0 }) => {
1705
1705
  onPageChange: h,
1706
1706
  direction: w = "row"
1707
1707
  }) => {
1708
- const [R, v] = B.useState(null), [x, m] = B.useState(
1708
+ const [R, v] = N.useState(null), [x, m] = N.useState(
1709
1709
  d ? Mt(r || [], d) : 0
1710
1710
  );
1711
1711
  return qt.onClose = () => {
@@ -1732,7 +1732,7 @@ const Jt = ({ children: r, title: o, isOverlay: i = !0 }) => {
1732
1732
  /* @__PURE__ */ u.jsxs(
1733
1733
  "footer",
1734
1734
  {
1735
- className: `${Nt.h} ${Nt[w]} ${i} `,
1735
+ className: `${Ft.h} ${Ft[w]} ${i} `,
1736
1736
  children: [
1737
1737
  o,
1738
1738
  r && r.map((b, E) => /* @__PURE__ */ u.jsx(
@@ -1904,15 +1904,23 @@ const dr = () => {
1904
1904
  /* @__PURE__ */ u.jsx("fieldset", {}),
1905
1905
  /* @__PURE__ */ u.jsx("div", { onClick: i, children: " Сохранить " })
1906
1906
  ] }) });
1907
- }, vr = "_p_11v0c_1", mr = "_s_11v0c_17", Wt = {
1907
+ }, vr = "_p_12hh1_1", mr = "_s_12hh1_17", Wt = {
1908
1908
  p: vr,
1909
1909
  s: mr
1910
1910
  }, hr = ({ className: r, children: o, isScroll: i = !0 }) => /* @__PURE__ */ u.jsx(
1911
1911
  "div",
1912
1912
  {
1913
- className: [Wt.p, i ?? Wt.s, r].filter((f) => f !== void 0).join(" "),
1913
+ className: [Wt.p, i && Wt.s, r].filter((f) => f !== void 0).join(" "),
1914
1914
  children: o
1915
1915
  }
1916
+ ), gr = "_l_gfyud_1", yr = {
1917
+ l: gr
1918
+ }, br = ({ children: r, className: o }) => /* @__PURE__ */ u.jsx(
1919
+ "div",
1920
+ {
1921
+ className: [yr.l, o].filter((i) => i !== void 0).join(" "),
1922
+ children: r
1923
+ }
1916
1924
  ), J = {
1917
1925
  state: [!1],
1918
1926
  listen: [],
@@ -1932,7 +1940,7 @@ var V;
1932
1940
  }, r.Notice = (o, i, f) => {
1933
1941
  var d, h;
1934
1942
  i !== void 0 ? (rt.Send({ type: o, text: i, thema: f }), (d = r.WebApp.HapticFeedback) == null || d.notificationOccurred(o)) : (rt.Send(o), (h = r.WebApp.HapticFeedback) == null || h.notificationOccurred(o.type));
1935
- }, r.Header = dr, r.Footer = Kt, r.BottomSheet = Jt, r.toggleBottomSheet = Ge, r.SafeArea = hr, r.Modal = At, r.MainButton = {
1943
+ }, r.Header = dr, r.Footer = Kt, r.BottomSheet = Jt, r.toggleBottomSheet = Ge, r.SafeArea = hr, r.Loading = br, r.Modal = At, r.MainButton = {
1936
1944
  callback: [],
1937
1945
  set: (o) => {
1938
1946
  ge.is ? ge.MainButton.set(o) : (r.WebApp.MainButton.callback.forEach((i) => {
@@ -1948,18 +1956,19 @@ var V;
1948
1956
  ge.is ? ge.BackButton.set(o) : (J.state.push(o), J.router(o));
1949
1957
  };
1950
1958
  })(V || (V = {}));
1951
- const yr = Kt, br = Jt, _r = V.BackButton, Rr = V.Notice, Er = V.SafeArea, { Header: kr, toggleBottomSheet: Sr, Modal: xr, MainButton: Or, WebApp: He, getUser: jr } = V;
1959
+ const Rr = Kt, Er = Jt, kr = V.BackButton, Sr = V.Notice, xr = V.SafeArea, Or = V.Loading, { Header: jr, toggleBottomSheet: wr, Modal: Cr, MainButton: Pr, WebApp: He, getUser: Ar } = V;
1952
1960
  export {
1953
- _r as BackButton,
1954
- br as BottomSheet,
1955
- yr as Footer,
1956
- kr as Header,
1957
- Or as MainButton,
1958
- xr as Modal,
1959
- Rr as Notice,
1960
- Er as SafeArea,
1961
+ kr as BackButton,
1962
+ Er as BottomSheet,
1963
+ Rr as Footer,
1964
+ jr as Header,
1965
+ Or as Loading,
1966
+ Pr as MainButton,
1967
+ Cr as Modal,
1968
+ Sr as Notice,
1969
+ xr as SafeArea,
1961
1970
  He as WebApp,
1962
1971
  V as default,
1963
- jr as getUser,
1964
- Sr as toggleBottomSheet
1972
+ Ar as getUser,
1973
+ wr as toggleBottomSheet
1965
1974
  };
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(E,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],w):(E=typeof globalThis<"u"?globalThis:E||self,w((E.elCRM=E.elCRM||{},E.elCRM.components={}),E.React))})(this,function(E,w){"use strict";var Pt=document.createElement("style");Pt.textContent=`*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}._h_rl5ga_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_rl5ga_1._row_rl5ga_14{flex-direction:row}._h_rl5ga_1._column_rl5ga_17{flex-direction:column}._h_rl5ga_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_rl5ga_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_rl5ga_1 button{flex:1}._p_11v0c_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_11v0c_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_11v0c_17{overflow:scroll}
1
+ (function(w,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],S):(w=typeof globalThis<"u"?globalThis:w||self,S((w.elCRM=w.elCRM||{},w.elCRM.components={}),w.React))})(this,function(w,S){"use strict";var Pt=document.createElement("style");Pt.textContent=`*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}._h_rl5ga_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_rl5ga_1._row_rl5ga_14{flex-direction:row}._h_rl5ga_1._column_rl5ga_17{flex-direction:column}._h_rl5ga_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0}._h_rl5ga_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_rl5ga_1 button{flex:1}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}
2
2
  /*$vite$:1*/`,document.head.appendChild(Pt);var tt={exports:{}},ke={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var Tt;function Ht(){if(Tt)return ke;Tt=1;var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function P(_,g,j){var m,y={},k=null,D=null;j!==void 0&&(k=""+j),g.key!==void 0&&(k=""+g.key),g.ref!==void 0&&(D=g.ref);for(m in g)f.call(g,m)&&!h.hasOwnProperty(m)&&(y[m]=g[m]);if(_&&_.defaultProps)for(m in g=_.defaultProps,g)y[m]===void 0&&(y[m]=g[m]);return{$$typeof:n,type:_,key:k,ref:D,props:y,_owner:d.current}}return ke.Fragment=i,ke.jsx=P,ke.jsxs=P,ke}var Re={};/**
10
+ */var Tt;function Ht(){if(Tt)return ke;Tt=1;var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function P(_,g,j){var h,y={},k=null,D=null;j!==void 0&&(k=""+j),g.key!==void 0&&(k=""+g.key),g.ref!==void 0&&(D=g.ref);for(h in g)f.call(g,h)&&!m.hasOwnProperty(h)&&(y[h]=g[h]);if(_&&_.defaultProps)for(h in g=_.defaultProps,g)y[h]===void 0&&(y[h]=g[h]);return{$$typeof:n,type:_,key:k,ref:D,props:y,_owner:d.current}}return ke.Fragment=i,ke.jsx=P,ke.jsxs=P,ke}var Re={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,20 +15,20 @@
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 It;function Kt(){return It||(It=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),I=Symbol.iterator,Ee="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Ee];return typeof t=="function"?t:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];_e("error",e,o)}}function _e(e,t,o){{var a=U.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(t+="%s",o=o.concat([u]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Oe=!1,Ce=!1,v=!1,R=!1,M=!1,F;F=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||M||e===d||e===j||e===m||R||e===D||Oe||Ce||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===P||e.$$typeof===_||e.$$typeof===g||e.$$typeof===F||e.getModuleId!==void 0))}function ie(e,t,o){var a=e.displayName;if(a)return a;var u=t.displayName||t.name||"";return u!==""?o+"("+u+")":o}function se(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case h:return"Profiler";case d:return"StrictMode";case j:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case P:var o=e;return se(o._context)+".Provider";case g:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case k:{var u=e,p=u._payload,l=u._init;try{return B(l(p))}catch{return null}}}return null}var $=Object.assign,N=0,K,G,Z,Ae,Pe,Te,Ie;function Be(){}Be.__reactDisabledLog=!0;function nt(){{if(N===0){K=console.log,G=console.info,Z=console.warn,Ae=console.error,Pe=console.group,Te=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function at(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:K}),info:$({},e,{value:G}),warn:$({},e,{value:Z}),error:$({},e,{value:Ae}),group:$({},e,{value:Pe}),groupCollapsed:$({},e,{value:Te}),groupEnd:$({},e,{value:Ie})})}N<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=U.ReactCurrentDispatcher,fe;function te(e,t,o){{if(fe===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);fe=a&&a[1]||""}return`
19
- `+fe+e}}var de=!1,re;{var it=typeof WeakMap=="function"?WeakMap:Map;re=new it}function Me(e,t){if(!e||de)return"";{var o=re.get(e);if(o!==void 0)return o}var a;de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ue.current,ue.current=null,nt();try{if(t){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(C){a=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){a=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var s=C.stack.split(`
18
+ */var It;function Kt(){return It||(It=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),I=Symbol.iterator,Ee="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Ee];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];_e("error",e,o)}}function _e(e,t,o){{var a=L.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(t+="%s",o=o.concat([u]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Oe=!1,Ce=!1,v=!1,R=!1,B=!1,F;F=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===m||B||e===d||e===j||e===h||R||e===D||Oe||Ce||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===P||e.$$typeof===_||e.$$typeof===g||e.$$typeof===F||e.getModuleId!==void 0))}function ie(e,t,o){var a=e.displayName;if(a)return a;var u=t.displayName||t.name||"";return u!==""?o+"("+u+")":o}function se(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case m:return"Profiler";case d:return"StrictMode";case j:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case P:var o=e;return se(o._context)+".Provider";case g:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var u=e,p=u._payload,l=u._init;try{return $(l(p))}catch{return null}}}return null}var M=Object.assign,N=0,K,G,Z,Ae,Pe,Te,Ie;function $e(){}$e.__reactDisabledLog=!0;function nt(){{if(N===0){K=console.log,G=console.info,Z=console.warn,Ae=console.error,Pe=console.group,Te=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:$e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function at(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:Z}),error:M({},e,{value:Ae}),group:M({},e,{value:Pe}),groupCollapsed:M({},e,{value:Te}),groupEnd:M({},e,{value:Ie})})}N<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=L.ReactCurrentDispatcher,fe;function te(e,t,o){{if(fe===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);fe=a&&a[1]||""}return`
19
+ `+fe+e}}var de=!1,re;{var it=typeof WeakMap=="function"?WeakMap:Map;re=new it}function Be(e,t){if(!e||de)return"";{var o=re.get(e);if(o!==void 0)return o}var a;de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ue.current,ue.current=null,nt();try{if(t){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(C){a=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){a=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var s=C.stack.split(`
20
20
  `),O=a.stack.split(`
21
21
  `),b=s.length-1,x=O.length-1;b>=1&&x>=0&&s[b]!==O[x];)x--;for(;b>=1&&x>=0;b--,x--)if(s[b]!==O[x]){if(b!==1||x!==1)do if(b--,x--,x<0||s[b]!==O[x]){var T=`
22
- `+s[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var W=e?e.displayName||e.name:"",L=W?te(W):"";return typeof e=="function"&&re.set(e,L),L}function st(e,t,o){return Me(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,o){if(e==null)return"";if(typeof e=="function")return Me(e,lt(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return st(e.render);case y:return oe(e.type,t,o);case k:{var a=e,u=a._payload,p=a._init;try{return oe(p(u),t,o)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,$e={},De=U.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(o)}else De.setExtraStackFrame(null)}function ct(e,t,o,a,u){{var p=Function.call.bind(q);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var O=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(ne(u),S("%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).",a||"React class",o,l,typeof s),ne(null)),s instanceof Error&&!(s.message in $e)&&($e[s.message]=!0,ne(u),S("Failed %s type: %s",o,s.message),ne(null))}}}var ut=Array.isArray;function pe(e){return ut(e)}function ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function dt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Ne(e){if(dt(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Fe(e)}var Ue=U.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Le,ze;function gt(e){if(q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function mt(e){if(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function ht(e,t){typeof e.ref=="string"&&Ue.current}function vt(e,t){{var o=function(){Le||(Le=!0,S("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function bt(e,t){{var o=function(){ze||(ze=!0,S("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var yt=function(e,t,o,a,u,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function xt(e,t,o,a,u){{var p,l={},s=null,O=null;o!==void 0&&(Ne(o),s=""+o),mt(t)&&(Ne(t.key),s=""+t.key),gt(t)&&(O=t.ref,ht(t,u));for(p in t)q.call(t,p)&&!pt.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&vt(l,x),O&&bt(l,x)}return yt(e,s,O,u,a,Ue.current,l)}}var ge=U.ReactCurrentOwner,Ye=U.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}var me;me=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(ge.current){var e=B(ge.current.type);if(e)return`
22
+ `+s[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function st(e,t,o){return Be(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,o){if(e==null)return"";if(typeof e=="function")return Be(e,lt(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case h:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return st(e.render);case y:return oe(e.type,t,o);case k:{var a=e,u=a._payload,p=a._init;try{return oe(p(u),t,o)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,Me={},De=L.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(o)}else De.setExtraStackFrame(null)}function ct(e,t,o,a,u){{var p=Function.call.bind(q);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var O=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(ne(u),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).",a||"React class",o,l,typeof s),ne(null)),s instanceof Error&&!(s.message in Me)&&(Me[s.message]=!0,ne(u),E("Failed %s type: %s",o,s.message),ne(null))}}}var ut=Array.isArray;function pe(e){return ut(e)}function ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function dt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Ne(e){if(dt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Fe(e)}var Le=L.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Ue,ze;function gt(e){if(q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ht(e){if(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){typeof e.ref=="string"&&Le.current}function vt(e,t){{var o=function(){Ue||(Ue=!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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function bt(e,t){{var o=function(){ze||(ze=!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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var yt=function(e,t,o,a,u,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function xt(e,t,o,a,u){{var p,l={},s=null,O=null;o!==void 0&&(Ne(o),s=""+o),ht(t)&&(Ne(t.key),s=""+t.key),gt(t)&&(O=t.ref,mt(t,u));for(p in t)q.call(t,p)&&!pt.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&vt(l,x),O&&bt(l,x)}return yt(e,s,O,u,a,Le.current,l)}}var ge=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}var he;he=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(ge.current){var e=$(ge.current.type);if(e)return`
23
23
 
24
24
  Check the render method of \``+e+"`."}return""}}function _t(e){return""}var Ve={};function kt(e){{var t=We();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
25
25
 
26
- Check the top-level render call using <`+o+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=kt(t);if(Ve[o])return;Ve[o]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),Y(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,a),Y(null)}}function qe(e,t){{if(typeof e!="object")return;if(pe(e))for(var o=0;o<e.length;o++){var a=e[o];he(a)&&Je(a,t)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var u=je(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)he(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))o=t.propTypes;else return;if(o){var a=B(t);ct(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var u=B(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){Y(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var He={};function Ke(e,t,o,a,u,p){{var l=z(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 O=_t();O?s+=O:s+=We();var b;e===null?b="null":pe(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+(B(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,s)}var x=xt(e,t,o,u,p);if(x==null)return x;if(l){var T=t.children;if(T!==void 0)if(a)if(pe(T)){for(var W=0;W<T.length;W++)qe(T[W],e);Object.freeze&&Object.freeze(T)}else S("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 qe(T,e)}if(q.call(t,"key")){var L=B(e),C=Object.keys(t).filter(function(At){return At!=="key"}),ve=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!He[L+ve]){var Ct=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+o+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=kt(t);if(Ve[o])return;Ve[o]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,a),Y(null)}}function qe(e,t){{if(typeof e!="object")return;if(pe(e))for(var o=0;o<e.length;o++){var a=e[o];me(a)&&Je(a,t)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var u=je(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)me(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))o=t.propTypes;else return;if(o){var a=$(t);ct(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!he){he=!0;var u=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var He={};function Ke(e,t,o,a,u,p){{var l=z(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 O=_t();O?s+=O:s+=We();var b;e===null?b="null":pe(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+($(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,s)}var x=xt(e,t,o,u,p);if(x==null)return x;if(l){var T=t.children;if(T!==void 0)if(a)if(pe(T)){for(var W=0;W<T.length;W++)qe(T[W],e);Object.freeze&&Object.freeze(T)}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 qe(T,e)}if(q.call(t,"key")){var U=$(e),C=Object.keys(t).filter(function(At){return At!=="key"}),ve=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!He[U+ve]){var Ct=C.length>0?"{"+C.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} />`,ve,L,Ct,L),He[L+ve]=!0}}return e===f?wt(x):Rt(x),x}}function St(e,t,o){return Ke(e,t,o,!0)}function Et(e,t,o){return Ke(e,t,o,!1)}var jt=Et,Ot=St;Re.Fragment=f,Re.jsx=jt,Re.jsxs=Ot}()),Re}process.env.NODE_ENV==="production"?tt.exports=Ht():tt.exports=Kt();var c=tt.exports;let H={};var rt;(r=>{function n({children:_}){const[g,j]=w.useState(!1),[m,y]=w.useState(!1);if(H.onClose=()=>{E.default.BackButton(!1),y(!0),setTimeout(()=>{j(!1),y(!1)},300)},w.useEffect(()=>{g?H.onClose():(E.default.BackButton({callback:()=>H.onClose()}),j(!0))},[]),!!g)return c.jsx("div",{className:`modal-overlay ${m?"closing":""}`,children:c.jsx("div",{className:`modal-popup ${m?"closing":""}`,children:c.jsx("div",{children:_})})})}r.Content=n;function i({import_modules:_}){let[g,j]=w.useState([]);return H.x=m=>{j(m?g.filter(y=>y.key!==m):[])},w.useEffect(()=>{_&&(H.i=_)},[]),H.add=(m,y=Date.now())=>{j([...g,{key:y,item:m}])},c.jsx(c.Fragment,{children:g.map(m=>m.item)})}r.Init=i;function f(_,g){H.add(c.jsx(n,{children:_},String(Date.now())),g)}r.Add=f;function d(_){return{Open:m=>{r.Add(c.jsx(_,{...m},new Date().getTime()))}}}r.Create=d;function h(){H.onClose()}r.Close=h;function P(_,g,j){H.i&&H.i(`${_}/modals/${g}.tsx`).then(m=>{m.default.Open(j)})}r.Open=P})(rt||(rt={}));function Bt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Mt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function $t(r){const n=Bt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Mt,...r}}function Ge(){return Bt().CRYPTO_PARAMS||Mt}const Ze=r=>{let n=0;for(let f=0;f<r.length;f++){const d=r.charCodeAt(f);n=(n<<5)-n+d,n=n&n}n=Math.abs(n);let i="";for(let f=0;f<64;f++){const d=(n^f*197)&255;i+=d.toString(16).padStart(2,"0")}return i},Dt=(r,n)=>{let i=r+n;for(let d=0;d<Ge().iterations;d++)i=Ze(i);const f=new Uint8Array(32);for(let d=0;d<32;d++)f[d]=parseInt(i.substring(d*2,d*2+2),16);return f},Ft=(r,n)=>{const i=new Uint8Array(r.length),f=new Uint8Array(r.length);let d=0;for(let h=0;h<r.length;h++){const P=h%n.length;d=n[P]+h+d&255,f[h]=d}for(let h=0;h<r.length;h++)i[h]=r[h]^f[h];return i},Gt=r=>new TextEncoder().encode(r),Zt=r=>new TextDecoder().decode(r),Xt=r=>{let n="";for(let i=0;i<r.length;i+=8192){const f=r.slice(i,Math.min(i+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(f))}return btoa(n)},Qt=r=>{const n=atob(r),i=new Uint8Array(n.length);for(let f=0;f<n.length;f++)i[f]=n.charCodeAt(f);return i},er=r=>{try{const n=Ze(Date.now().toString()+Math.random()).substring(0,Ge().saltLength*2),i=Ze(r+n).substring(0,8),f=Dt(Ge().key,n),d=Gt(r),h=Ft(d,f),P=Xt(h);return`${n}.${P}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},tr=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=n[0],f=n[1],d=n[2],h=Dt(Ge().key,i),P=Qt(f),_=Ft(P,h),g=Zt(_);if(Ze(g+i).substring(0,8)!==d)throw new Error("Контрольная сумма не совпадает");return g}catch{return""}};var ae;(r=>{r.setKey=n=>{$t({key:n})},r.enCode=n=>{try{const i=JSON.stringify(n);return er(i)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const i=tr(n);return i&&JSON.parse(i)||!1}catch{return!1}},r.setSecurityParams=(n,i)=>{$t({iterations:n,saltLength:i})}})(ae||(ae={}));var we={};/**
31
+ <%s key={someKey} {...props} />`,ve,U,Ct,U),He[U+ve]=!0}}return e===f?wt(x):Rt(x),x}}function St(e,t,o){return Ke(e,t,o,!0)}function Et(e,t,o){return Ke(e,t,o,!1)}var jt=Et,Ot=St;Re.Fragment=f,Re.jsx=jt,Re.jsxs=Ot}()),Re}process.env.NODE_ENV==="production"?tt.exports=Ht():tt.exports=Kt();var c=tt.exports;let H={};var rt;(r=>{function n({children:_}){const[g,j]=S.useState(!1),[h,y]=S.useState(!1);if(H.onClose=()=>{w.default.BackButton(!1),y(!0),setTimeout(()=>{j(!1),y(!1)},300)},S.useEffect(()=>{g?H.onClose():(w.default.BackButton({callback:()=>H.onClose()}),j(!0))},[]),!!g)return c.jsx("div",{className:`modal-overlay ${h?"closing":""}`,children:c.jsx("div",{className:`modal-popup ${h?"closing":""}`,children:c.jsx("div",{children:_})})})}r.Content=n;function i({import_modules:_}){let[g,j]=S.useState([]);return H.x=h=>{j(h?g.filter(y=>y.key!==h):[])},S.useEffect(()=>{_&&(H.i=_)},[]),H.add=(h,y=Date.now())=>{j([...g,{key:y,item:h}])},c.jsx(c.Fragment,{children:g.map(h=>h.item)})}r.Init=i;function f(_,g){H.add(c.jsx(n,{children:_},String(Date.now())),g)}r.Add=f;function d(_){return{Open:h=>{r.Add(c.jsx(_,{...h},new Date().getTime()))}}}r.Create=d;function m(){H.onClose()}r.Close=m;function P(_,g,j){H.i&&H.i(`${_}/modals/${g}.tsx`).then(h=>{h.default.Open(j)})}r.Open=P})(rt||(rt={}));function $t(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Bt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Mt(r){const n=$t();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Bt,...r}}function Ge(){return $t().CRYPTO_PARAMS||Bt}const Ze=r=>{let n=0;for(let f=0;f<r.length;f++){const d=r.charCodeAt(f);n=(n<<5)-n+d,n=n&n}n=Math.abs(n);let i="";for(let f=0;f<64;f++){const d=(n^f*197)&255;i+=d.toString(16).padStart(2,"0")}return i},Dt=(r,n)=>{let i=r+n;for(let d=0;d<Ge().iterations;d++)i=Ze(i);const f=new Uint8Array(32);for(let d=0;d<32;d++)f[d]=parseInt(i.substring(d*2,d*2+2),16);return f},Ft=(r,n)=>{const i=new Uint8Array(r.length),f=new Uint8Array(r.length);let d=0;for(let m=0;m<r.length;m++){const P=m%n.length;d=n[P]+m+d&255,f[m]=d}for(let m=0;m<r.length;m++)i[m]=r[m]^f[m];return i},Gt=r=>new TextEncoder().encode(r),Zt=r=>new TextDecoder().decode(r),Xt=r=>{let n="";for(let i=0;i<r.length;i+=8192){const f=r.slice(i,Math.min(i+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(f))}return btoa(n)},Qt=r=>{const n=atob(r),i=new Uint8Array(n.length);for(let f=0;f<n.length;f++)i[f]=n.charCodeAt(f);return i},er=r=>{try{const n=Ze(Date.now().toString()+Math.random()).substring(0,Ge().saltLength*2),i=Ze(r+n).substring(0,8),f=Dt(Ge().key,n),d=Gt(r),m=Ft(d,f),P=Xt(m);return`${n}.${P}.${i}`}catch{throw new Error("Не удалось зашифровать данные")}},tr=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const i=n[0],f=n[1],d=n[2],m=Dt(Ge().key,i),P=Qt(f),_=Ft(P,m),g=Zt(_);if(Ze(g+i).substring(0,8)!==d)throw new Error("Контрольная сумма не совпадает");return g}catch{return""}};var ae;(r=>{r.setKey=n=>{Mt({key:n})},r.enCode=n=>{try{const i=JSON.stringify(n);return er(i)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const i=tr(n);return i&&JSON.parse(i)||!1}catch{return!1}},r.setSecurityParams=(n,i)=>{Mt({iterations:n,saltLength:i})}})(ae||(ae={}));var we={};/**
32
32
  * @license React
33
33
  * react-jsx-runtime.production.min.js
34
34
  *
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var Nt;function rr(){if(Nt)return we;Nt=1;var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function P(_,g,j){var m,y={},k=null,D=null;j!==void 0&&(k=""+j),g.key!==void 0&&(k=""+g.key),g.ref!==void 0&&(D=g.ref);for(m in g)f.call(g,m)&&!h.hasOwnProperty(m)&&(y[m]=g[m]);if(_&&_.defaultProps)for(m in g=_.defaultProps,g)y[m]===void 0&&(y[m]=g[m]);return{$$typeof:n,type:_,key:k,ref:D,props:y,_owner:d.current}}return we.Fragment=i,we.jsx=P,we.jsxs=P,we}var Xe={};/**
39
+ */var Nt;function rr(){if(Nt)return we;Nt=1;var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function P(_,g,j){var h,y={},k=null,D=null;j!==void 0&&(k=""+j),g.key!==void 0&&(k=""+g.key),g.ref!==void 0&&(D=g.ref);for(h in g)f.call(g,h)&&!m.hasOwnProperty(h)&&(y[h]=g[h]);if(_&&_.defaultProps)for(h in g=_.defaultProps,g)y[h]===void 0&&(y[h]=g[h]);return{$$typeof:n,type:_,key:k,ref:D,props:y,_owner:d.current}}return we.Fragment=i,we.jsx=P,we.jsxs=P,we}var Xe={};/**
40
40
  * @license React
41
41
  * react-jsx-runtime.development.js
42
42
  *
@@ -44,17 +44,17 @@ React keys must be passed directly to JSX without using spread:
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var Ut;function or(){return Ut||(Ut=1,process.env.NODE_ENV!=="production"&&function(){var r=w,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),I=Symbol.iterator,Ee="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Ee];return typeof t=="function"?t:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];_e("error",e,o)}}function _e(e,t,o){{var a=U.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(t+="%s",o=o.concat([u]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Oe=!1,Ce=!1,v=!1,R=!1,M=!1,F;F=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===h||M||e===d||e===j||e===m||R||e===D||Oe||Ce||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===P||e.$$typeof===_||e.$$typeof===g||e.$$typeof===F||e.getModuleId!==void 0))}function ie(e,t,o){var a=e.displayName;if(a)return a;var u=t.displayName||t.name||"";return u!==""?o+"("+u+")":o}function se(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case h:return"Profiler";case d:return"StrictMode";case j:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case P:var o=e;return se(o._context)+".Provider";case g:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case k:{var u=e,p=u._payload,l=u._init;try{return B(l(p))}catch{return null}}}return null}var $=Object.assign,N=0,K,G,Z,Ae,Pe,Te,Ie;function Be(){}Be.__reactDisabledLog=!0;function nt(){{if(N===0){K=console.log,G=console.info,Z=console.warn,Ae=console.error,Pe=console.group,Te=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function at(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},e,{value:K}),info:$({},e,{value:G}),warn:$({},e,{value:Z}),error:$({},e,{value:Ae}),group:$({},e,{value:Pe}),groupCollapsed:$({},e,{value:Te}),groupEnd:$({},e,{value:Ie})})}N<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=U.ReactCurrentDispatcher,fe;function te(e,t,o){{if(fe===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);fe=a&&a[1]||""}return`
48
- `+fe+e}}var de=!1,re;{var it=typeof WeakMap=="function"?WeakMap:Map;re=new it}function Me(e,t){if(!e||de)return"";{var o=re.get(e);if(o!==void 0)return o}var a;de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ue.current,ue.current=null,nt();try{if(t){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(C){a=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){a=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var s=C.stack.split(`
47
+ */var Lt;function or(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),i=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),_=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),D=Symbol.for("react.offscreen"),I=Symbol.iterator,Ee="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var t=I&&e[I]||e[Ee];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];_e("error",e,o)}}function _e(e,t,o){{var a=L.ReactDebugCurrentFrame,u=a.getStackAddendum();u!==""&&(t+="%s",o=o.concat([u]));var p=o.map(function(l){return String(l)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Oe=!1,Ce=!1,v=!1,R=!1,B=!1,F;F=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===f||e===m||B||e===d||e===j||e===h||R||e===D||Oe||Ce||v||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===y||e.$$typeof===P||e.$$typeof===_||e.$$typeof===g||e.$$typeof===F||e.getModuleId!==void 0))}function ie(e,t,o){var a=e.displayName;if(a)return a;var u=t.displayName||t.name||"";return u!==""?o+"("+u+")":o}function se(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case i:return"Portal";case m:return"Profiler";case d:return"StrictMode";case j:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return se(t)+".Consumer";case P:var o=e;return se(o._context)+".Provider";case g:return ie(e,e.render,"ForwardRef");case y:var a=e.displayName||null;return a!==null?a:$(e.type)||"Memo";case k:{var u=e,p=u._payload,l=u._init;try{return $(l(p))}catch{return null}}}return null}var M=Object.assign,N=0,K,G,Z,Ae,Pe,Te,Ie;function $e(){}$e.__reactDisabledLog=!0;function nt(){{if(N===0){K=console.log,G=console.info,Z=console.warn,Ae=console.error,Pe=console.group,Te=console.groupCollapsed,Ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:$e,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}N++}}function at(){{if(N--,N===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:Z}),error:M({},e,{value:Ae}),group:M({},e,{value:Pe}),groupCollapsed:M({},e,{value:Te}),groupEnd:M({},e,{value:Ie})})}N<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=L.ReactCurrentDispatcher,fe;function te(e,t,o){{if(fe===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);fe=a&&a[1]||""}return`
48
+ `+fe+e}}var de=!1,re;{var it=typeof WeakMap=="function"?WeakMap:Map;re=new it}function Be(e,t){if(!e||de)return"";{var o=re.get(e);if(o!==void 0)return o}var a;de=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ue.current,ue.current=null,nt();try{if(t){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(C){a=C}Reflect.construct(e,[],l)}else{try{l.call()}catch(C){a=C}e.call(l.prototype)}}else{try{throw Error()}catch(C){a=C}e()}}catch(C){if(C&&a&&typeof C.stack=="string"){for(var s=C.stack.split(`
49
49
  `),O=a.stack.split(`
50
50
  `),b=s.length-1,x=O.length-1;b>=1&&x>=0&&s[b]!==O[x];)x--;for(;b>=1&&x>=0;b--,x--)if(s[b]!==O[x]){if(b!==1||x!==1)do if(b--,x--,x<0||s[b]!==O[x]){var T=`
51
- `+s[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var W=e?e.displayName||e.name:"",L=W?te(W):"";return typeof e=="function"&&re.set(e,L),L}function st(e,t,o){return Me(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,o){if(e==null)return"";if(typeof e=="function")return Me(e,lt(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case m:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return st(e.render);case y:return oe(e.type,t,o);case k:{var a=e,u=a._payload,p=a._init;try{return oe(p(u),t,o)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,$e={},De=U.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(o)}else De.setExtraStackFrame(null)}function ct(e,t,o,a,u){{var p=Function.call.bind(q);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var O=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(ne(u),S("%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).",a||"React class",o,l,typeof s),ne(null)),s instanceof Error&&!(s.message in $e)&&($e[s.message]=!0,ne(u),S("Failed %s type: %s",o,s.message),ne(null))}}}var ut=Array.isArray;function pe(e){return ut(e)}function ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function dt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Ne(e){if(dt(e))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Fe(e)}var Ue=U.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Le,ze;function gt(e){if(q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function mt(e){if(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function ht(e,t){typeof e.ref=="string"&&Ue.current}function vt(e,t){{var o=function(){Le||(Le=!0,S("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function bt(e,t){{var o=function(){ze||(ze=!0,S("%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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var yt=function(e,t,o,a,u,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function xt(e,t,o,a,u){{var p,l={},s=null,O=null;o!==void 0&&(Ne(o),s=""+o),mt(t)&&(Ne(t.key),s=""+t.key),gt(t)&&(O=t.ref,ht(t));for(p in t)q.call(t,p)&&!pt.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&vt(l,x),O&&bt(l,x)}return yt(e,s,O,u,a,Ue.current,l)}}var ge=U.ReactCurrentOwner,Ye=U.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}var me;me=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(ge.current){var e=B(ge.current.type);if(e)return`
51
+ `+s[b].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&re.set(e,T),T}while(b>=1&&x>=0);break}}}finally{de=!1,ue.current=p,at(),Error.prepareStackTrace=u}var W=e?e.displayName||e.name:"",U=W?te(W):"";return typeof e=="function"&&re.set(e,U),U}function st(e,t,o){return Be(e,!1)}function lt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function oe(e,t,o){if(e==null)return"";if(typeof e=="function")return Be(e,lt(e));if(typeof e=="string")return te(e);switch(e){case j:return te("Suspense");case h:return te("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return st(e.render);case y:return oe(e.type,t,o);case k:{var a=e,u=a._payload,p=a._init;try{return oe(p(u),t,o)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,Me={},De=L.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);De.setExtraStackFrame(o)}else De.setExtraStackFrame(null)}function ct(e,t,o,a,u){{var p=Function.call.bind(q);for(var l in e)if(p(e,l)){var s=void 0;try{if(typeof e[l]!="function"){var O=Error((a||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}s=e[l](t,l,a,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){s=b}s&&!(s instanceof Error)&&(ne(u),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).",a||"React class",o,l,typeof s),ne(null)),s instanceof Error&&!(s.message in Me)&&(Me[s.message]=!0,ne(u),E("Failed %s type: %s",o,s.message),ne(null))}}}var ut=Array.isArray;function pe(e){return ut(e)}function ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function dt(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function Ne(e){if(dt(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Fe(e)}var Le=L.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Ue,ze;function gt(e){if(q.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ht(e){if(q.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){typeof e.ref=="string"&&Le.current}function vt(e,t){{var o=function(){Ue||(Ue=!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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function bt(e,t){{var o=function(){ze||(ze=!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)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var yt=function(e,t,o,a,u,p,l){var s={$$typeof:n,type:e,key:t,ref:o,props:l,_owner:p};return s._store={},Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};function xt(e,t,o,a,u){{var p,l={},s=null,O=null;o!==void 0&&(Ne(o),s=""+o),ht(t)&&(Ne(t.key),s=""+t.key),gt(t)&&(O=t.ref,mt(t));for(p in t)q.call(t,p)&&!pt.hasOwnProperty(p)&&(l[p]=t[p]);if(e&&e.defaultProps){var b=e.defaultProps;for(p in b)l[p]===void 0&&(l[p]=b[p])}if(s||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;s&&vt(l,x),O&&bt(l,x)}return yt(e,s,O,u,a,Le.current,l)}}var ge=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function Y(e){if(e){var t=e._owner,o=oe(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(o)}else Ye.setExtraStackFrame(null)}var he;he=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(ge.current){var e=$(ge.current.type);if(e)return`
52
52
 
53
53
  Check the render method of \``+e+"`."}return""}}function _t(e){return""}var Ve={};function kt(e){{var t=We();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
54
54
 
55
- Check the top-level render call using <`+o+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=kt(t);if(Ve[o])return;Ve[o]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),Y(e),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,a),Y(null)}}function qe(e,t){{if(typeof e!="object")return;if(pe(e))for(var o=0;o<e.length;o++){var a=e[o];he(a)&&Je(a,t)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var u=je(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)he(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))o=t.propTypes;else return;if(o){var a=B(t);ct(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var u=B(t);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){Y(e),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),S("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var He={};function Ke(e,t,o,a,u,p){{var l=z(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 O=_t();O?s+=O:s+=We();var b;e===null?b="null":pe(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+(B(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,s)}var x=xt(e,t,o,u,p);if(x==null)return x;if(l){var T=t.children;if(T!==void 0)if(a)if(pe(T)){for(var W=0;W<T.length;W++)qe(T[W],e);Object.freeze&&Object.freeze(T)}else S("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 qe(T,e)}if(q.call(t,"key")){var L=B(e),C=Object.keys(t).filter(function(At){return At!=="key"}),ve=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!He[L+ve]){var Ct=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+o+">.")}return t}}function Je(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=kt(t);if(Ve[o])return;Ve[o]=!0;var a="";e&&e._owner&&e._owner!==ge.current&&(a=" It was passed a child from "+$(e._owner.type)+"."),Y(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,a),Y(null)}}function qe(e,t){{if(typeof e!="object")return;if(pe(e))for(var o=0;o<e.length;o++){var a=e[o];me(a)&&Je(a,t)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var u=je(e);if(typeof u=="function"&&u!==e.entries)for(var p=u.call(e),l;!(l=p.next()).done;)me(l.value)&&Je(l.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===g||t.$$typeof===y))o=t.propTypes;else return;if(o){var a=$(t);ct(o,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!he){he=!0;var u=$(t);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",u||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var a=t[o];if(a!=="children"&&a!=="key"){Y(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),Y(null);break}}e.ref!==null&&(Y(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),Y(null))}}var He={};function Ke(e,t,o,a,u,p){{var l=z(e);if(!l){var s="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(s+=" 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 O=_t();O?s+=O:s+=We();var b;e===null?b="null":pe(e)?b="array":e!==void 0&&e.$$typeof===n?(b="<"+($(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):b=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",b,s)}var x=xt(e,t,o,u,p);if(x==null)return x;if(l){var T=t.children;if(T!==void 0)if(a)if(pe(T)){for(var W=0;W<T.length;W++)qe(T[W],e);Object.freeze&&Object.freeze(T)}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 qe(T,e)}if(q.call(t,"key")){var U=$(e),C=Object.keys(t).filter(function(At){return At!=="key"}),ve=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!He[U+ve]){var Ct=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
56
56
  let props = %s;
57
57
  <%s {...props} />
58
58
  React keys must be passed directly to JSX without using spread:
59
59
  let props = %s;
60
- <%s key={someKey} {...props} />`,ve,L,Ct,L),He[L+ve]=!0}}return e===f?wt(x):Rt(x),x}}function St(e,t,o){return Ke(e,t,o,!0)}function Et(e,t,o){return Ke(e,t,o,!1)}var jt=Et,Ot=St;Xe.Fragment=f,Xe.jsx=jt,Xe.jsxs=Ot}()),Xe}process.env.NODE_ENV==="production"?rr():or();const nr="0.0.37",Lt={version:nr},X={},ot={module:"",v:Lt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function le(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}le().elcrm||(le().elcrm={}),Object.assign(le().elcrm,{router:Lt.version});function Q(r){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...r}:n.ROUTER_PARAMS={...ot,...r}}function A(){return le().ROUTER_PARAMS||ot}function be(r){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function ee(){return le().ROUTER_PARAMS.LISTENER||ot.LISTENER}var ye;(r=>{function n(){var v;let R=sessionStorage.getItem("f");if(R){if(R=ae.deCode(R),!R)return!1;Q({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else Q({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?A().page:A().auth,module:A().module});return!0}function i(){X.id=0,X.tab="",X.page=A().page,X.module=A().module}r.Reset=i;function f({module:v=A().module,page:R=A().page,auth:M=A().auth}){Q({page:R,module:v,auth:M}),n()}r.Default=f;function d(v){let R=z=>(Q({page:z}),z);const[M,F]=w.useState(P()||v&&R(v)||A().page);return be({page:z=>{F(z)}}),M}r.usePage=d;function h(v,R=!0,M={}){Q({page:v,...M}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().page(v)}r.setPage=h;function P(){return A().page}r.getPage=P;function _(v){return A().page===v}r.isPage=_;function g(v,R){const[M,F]=w.useState(m()||v||A().module);return be({module:F}),M}r.useModule=g;function j(v,R=!0){Q({module:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().module(v)}r.setModule=j;function m(){return A().module||""}r.getModule=m;function y(v){return A().module===v}r.isModule=y;function k(v,R){if(typeof v!="function"){const[M,F]=w.useState(!R),[z,ie]=w.useState(v||I());return be({tabs:ie}),R&&w.useEffect(()=>{F(!0)},[]),[z,M]}else be({tabs:v})}r.useTabs=k;async function D(v,R=!0){Q({tab:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&(ee().tabs&&ee().tabs(v))}r.setTabs=D;function I(){return A().tab}r.getTabs=I;function Ee(v){return A().tab===v}r.isTabs=Ee;function je(v){if(typeof v!="function"){const[R,M]=w.useState(v||_e());return be({id:F=>{M(F)}}),R}else be({id:v})}r.useId=je;function U(v){}r.subId=U;async function S(v,R=!0){Q({id:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().id(v)}r.setId=S;function _e(){return A().id}r.getId=_e;function Oe(v){return Number(A().id)===v}r.isId=Oe;async function Ce(v){var R,M,F,z,ie,se,B,$;const{page:N,module:K,tab:G,id:Z}=v;N!==void 0&&(X.page=N),K!==void 0&&(X.module=K),G!==void 0&&(X.tab=G),Z!==void 0&&(X.id=Z),Q({...X}),Z!==void 0&&((M=(R=ee()).id)==null||M.call(R,Z)),G!==void 0&&((z=(F=ee()).tabs)==null||z.call(F,G)),K!==void 0&&((se=(ie=ee()).module)==null||se.call(ie,K)),N!==void 0&&(($=(B=ee()).page)==null||$.call(B,N)),sessionStorage.setItem(A().STORAGE,ae.enCode(A()))}r.navigate=Ce})(ye||(ye={}));let Qe={};function ar(){const[r,n]=w.useState([]);return Qe.set=i=>{n([...r,i])},Qe.del=i=>{r.forEach((f,d)=>{f.key===i&&r.splice(d,1)}),n(r)},r.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function ir(r){let n=new Date().getTime();r.key=n,Qe.set({item:c.jsx(sr,{data:r},n),key:n})}function sr(r){const n=r.data;let[i]=w.useState("show"),[f,d]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){d(!0),Qe.del(n.key)},5e3)},[n.key]);let h;switch(n.type){case"error":h=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":h=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":h=c.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:h="icon fa fa-exclamation-circle";break}return c.jsx(c.Fragment,{children:f?c.jsx(c.Fragment,{}):c.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":i,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:h}),c.jsx("span",{className:"text",children:n.text})]})})}let et={Send:ir,Init:ar},Se=()=>{};const zt=({children:r,title:n,isOverlay:i=!0})=>{const[f,d]=w.useState(!1);return Se=()=>{d(!0),setTimeout(()=>{Wt.onClose()},300)},c.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${f?"closing":""}`,onClick:Se,children:c.jsxs("div",{className:`footer-menu-popup-book ${f?"closing":""}`,onClick:h=>h.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:n}),c.jsx("button",{className:"footer-menu-close-btn",onClick:Se,children:"✕"})]}),r]})})},Yt={h:"_h_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},Wt=[],Vt=(r,n)=>r.findIndex(i=>(i==null?void 0:i.page)===n),Jt=({actions:r,children:n,className:i,toHide:f=!1,page:d,onPageChange:h,direction:P="row"})=>{const[_,g]=w.useState(null),[j,m]=w.useState(d?Vt(r||[],d):0);return Wt.onClose=()=>{g(null),m(d?Vt(r||[],d):0)},w.useEffect(()=>{if(!f)return;const y=document.querySelectorAll("[contenteditable]"),k=()=>{const I=document.querySelector("footer");I&&(I.style.display="flex")},D=()=>{const I=document.querySelector("footer");I&&(I.style.display="none")};return y.forEach(I=>{I.addEventListener("focus",D,!0),I.addEventListener("blur",k,!0)}),()=>{y.forEach(I=>{I.removeEventListener("focus",D,!0),I.removeEventListener("blur",k,!0)})}},[]),c.jsxs(c.Fragment,{children:[_,c.jsxs("footer",{className:`${Yt.h} ${Yt[P]} ${i} `,children:[n,r&&r.map((y,k)=>c.jsx("div",{"data-active":j===k?"true":"false",onClick:()=>{y.page&&(m(k),h==null||h(y.page)),y.callback&&(y.callback(),m(k)),y.component&&(j===k?Se():(g(y.component),m(k)))},children:y.icon},k))]})]})},ce={is:!1,MainButton:{},BackButton:{}};let V={};V.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},V.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},V.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const lr=()=>{if(location.hostname==="localhost"){let[r,n]=w.useState(!1),[i,f]=w.useState(!1),[d,h]=w.useState("dark"),[P,_]=w.useState(!1),[g,j]=w.useState(!1);ce.is=!0,ce.MainButton.set=n,ce.BackButton.set=f,w.useEffect(()=>{V[d]["--tg-theme-bg-color-alpha"]=V[d]["--tg-theme-bg-color"]+"b3",V[d]["--tg-theme-secondary-bg-color-alpha"]=V[d]["--tg-theme-secondary-bg-color"]+"d3";for(let k in V[d])document.documentElement.style.setProperty(k,V[d][k]);xe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=k=>{for(let D in V[k])document.documentElement.style.setProperty(D,V[k][D]);h(k),_(!1)},y=()=>{_(!1),j(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"debug",children:[i===!1?c.jsx("div",{className:"b",children:"Отмена"}):c.jsx("div",{onClick:()=>{var k;i.page===void 0?(k=i.callback)==null||k.call(i):ye.setPage(i.page)},className:"b",children:"Назад"}),c.jsx("div",{className:"o",onClick:()=>_(!P),children:"Меню"})]}),c.jsx(et.Init,{}),r&&c.jsx("div",{className:"mb",children:c.jsx("button",{onClick:()=>{r.page&&ye.setPage(r.page),r.callback&&r.callback()},children:r.text})}),P?c.jsxs("div",{className:"tm",children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:y,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>m("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_(!P),children:"Closed"})})]})]}):"",g?c.jsx(cr,{setAuthorization:j}):""]})}else return w.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",xe.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",xe.themeParams.bg_color+"b3"),xe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(et.Init,{})})},cr=({setAuthorization:r})=>{let n={},i=()=>{localStorage.setItem("auth",n)};return c.jsx("div",{className:"ta",children:c.jsxs("div",{className:"--body",children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:i,children:" Сохранить "})]})})},qt={p:"_p_11v0c_1",s:"_s_11v0c_17"},ur=({className:r,children:n,isScroll:i=!0})=>c.jsx("div",{className:[qt.p,i??qt.s,r].filter(f=>f!==void 0).join(" "),children:n}),J={state:[!1],listen:[],router:r=>{r===!1?(E.default.WebApp.BackButton.isVisible=!1,E.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.state.length!==1&&J.state.pop()):(E.default.WebApp.BackButton.isVisible=!0,E.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.listen.push(()=>{var i;let n=J.state.pop();n.page!==void 0?ye.setPage(n.page):(i=n.callback)==null||i.call(n)}),xe.BackButton.onClick(J.listen[0]))}};E.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(n,i,f)=>{var d,h;i!==void 0?(et.Send({type:n,text:i,thema:f}),(d=r.WebApp.HapticFeedback)==null||d.notificationOccurred(n)):(et.Send(n),(h=r.WebApp.HapticFeedback)==null||h.notificationOccurred(n.type))},r.Header=lr,r.Footer=Jt,r.BottomSheet=zt,r.toggleBottomSheet=Se,r.SafeArea=ur,r.Modal=rt,r.MainButton={callback:[],set:n=>{ce.is?ce.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ye.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton=n=>{ce.is?ce.BackButton.set(n):(J.state.push(n),J.router(n))}})(E.default||(E.default={}));const fr=Jt,dr=zt,pr=E.default.BackButton,gr=E.default.Notice,mr=E.default.SafeArea,{Header:hr,toggleBottomSheet:vr,Modal:br,MainButton:yr,WebApp:xe,getUser:xr}=E.default;E.BackButton=pr,E.BottomSheet=dr,E.Footer=fr,E.Header=hr,E.MainButton=yr,E.Modal=br,E.Notice=gr,E.SafeArea=mr,E.WebApp=xe,E.getUser=xr,E.toggleBottomSheet=vr,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,ve,U,Ct,U),He[U+ve]=!0}}return e===f?wt(x):Rt(x),x}}function St(e,t,o){return Ke(e,t,o,!0)}function Et(e,t,o){return Ke(e,t,o,!1)}var jt=Et,Ot=St;Xe.Fragment=f,Xe.jsx=jt,Xe.jsxs=Ot}()),Xe}process.env.NODE_ENV==="production"?rr():or();const nr="0.0.37",Ut={version:nr},X={},ot={module:"",v:Ut.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function le(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}le().elcrm||(le().elcrm={}),Object.assign(le().elcrm,{router:Ut.version});function Q(r){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...r}:n.ROUTER_PARAMS={...ot,...r}}function A(){return le().ROUTER_PARAMS||ot}function be(r){const n=le();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function ee(){return le().ROUTER_PARAMS.LISTENER||ot.LISTENER}var ye;(r=>{function n(){var v;let R=sessionStorage.getItem("f");if(R){if(R=ae.deCode(R),!R)return!1;Q({id:R.id,tab:R.tab,page:R.page,module:R.module,time:R.time,payment:{active:!0},module_admin:R.module_admin})}else Q({id:0,tab:"",page:(v=localStorage.getItem("d"))!=null&&v.length?A().page:A().auth,module:A().module});return!0}function i(){X.id=0,X.tab="",X.page=A().page,X.module=A().module}r.Reset=i;function f({module:v=A().module,page:R=A().page,auth:B=A().auth}){Q({page:R,module:v,auth:B}),n()}r.Default=f;function d(v){let R=z=>(Q({page:z}),z);const[B,F]=S.useState(P()||v&&R(v)||A().page);return be({page:z=>{F(z)}}),B}r.usePage=d;function m(v,R=!0,B={}){Q({page:v,...B}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().page(v)}r.setPage=m;function P(){return A().page}r.getPage=P;function _(v){return A().page===v}r.isPage=_;function g(v,R){const[B,F]=S.useState(h()||v||A().module);return be({module:F}),B}r.useModule=g;function j(v,R=!0){Q({module:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().module(v)}r.setModule=j;function h(){return A().module||""}r.getModule=h;function y(v){return A().module===v}r.isModule=y;function k(v,R){if(typeof v!="function"){const[B,F]=S.useState(!R),[z,ie]=S.useState(v||I());return be({tabs:ie}),R&&S.useEffect(()=>{F(!0)},[]),[z,B]}else be({tabs:v})}r.useTabs=k;async function D(v,R=!0){Q({tab:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&(ee().tabs&&ee().tabs(v))}r.setTabs=D;function I(){return A().tab}r.getTabs=I;function Ee(v){return A().tab===v}r.isTabs=Ee;function je(v){if(typeof v!="function"){const[R,B]=S.useState(v||_e());return be({id:F=>{B(F)}}),R}else be({id:v})}r.useId=je;function L(v){}r.subId=L;async function E(v,R=!0){Q({id:v}),sessionStorage.setItem(A().STORAGE,ae.enCode(A())),R&&ee().id(v)}r.setId=E;function _e(){return A().id}r.getId=_e;function Oe(v){return Number(A().id)===v}r.isId=Oe;async function Ce(v){var R,B,F,z,ie,se,$,M;const{page:N,module:K,tab:G,id:Z}=v;N!==void 0&&(X.page=N),K!==void 0&&(X.module=K),G!==void 0&&(X.tab=G),Z!==void 0&&(X.id=Z),Q({...X}),Z!==void 0&&((B=(R=ee()).id)==null||B.call(R,Z)),G!==void 0&&((z=(F=ee()).tabs)==null||z.call(F,G)),K!==void 0&&((se=(ie=ee()).module)==null||se.call(ie,K)),N!==void 0&&((M=($=ee()).page)==null||M.call($,N)),sessionStorage.setItem(A().STORAGE,ae.enCode(A()))}r.navigate=Ce})(ye||(ye={}));let Qe={};function ar(){const[r,n]=S.useState([]);return Qe.set=i=>{n([...r,i])},Qe.del=i=>{r.forEach((f,d)=>{f.key===i&&r.splice(d,1)}),n(r)},r.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:"notice",children:r.map(i=>i.item)})}function ir(r){let n=new Date().getTime();r.key=n,Qe.set({item:c.jsx(sr,{data:r},n),key:n})}function sr(r){const n=r.data;let[i]=S.useState("show"),[f,d]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){d(!0),Qe.del(n.key)},5e3)},[n.key]);let m;switch(n.type){case"error":m=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":m=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":m=c.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:m="icon fa fa-exclamation-circle";break}return c.jsx(c.Fragment,{children:f?c.jsx(c.Fragment,{}):c.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":i,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:m}),c.jsx("span",{className:"text",children:n.text})]})})}let et={Send:ir,Init:ar},Se=()=>{};const zt=({children:r,title:n,isOverlay:i=!0})=>{const[f,d]=S.useState(!1);return Se=()=>{d(!0),setTimeout(()=>{Wt.onClose()},300)},c.jsx("div",{className:`footer-menu-overlay ${i?"is-overlay":""} ${f?"closing":""}`,onClick:Se,children:c.jsxs("div",{className:`footer-menu-popup-book ${f?"closing":""}`,onClick:m=>m.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:n}),c.jsx("button",{className:"footer-menu-close-btn",onClick:Se,children:"✕"})]}),r]})})},Yt={h:"_h_rl5ga_1",row:"_row_rl5ga_14",column:"_column_rl5ga_17"},Wt=[],Vt=(r,n)=>r.findIndex(i=>(i==null?void 0:i.page)===n),Jt=({actions:r,children:n,className:i,toHide:f=!1,page:d,onPageChange:m,direction:P="row"})=>{const[_,g]=S.useState(null),[j,h]=S.useState(d?Vt(r||[],d):0);return Wt.onClose=()=>{g(null),h(d?Vt(r||[],d):0)},S.useEffect(()=>{if(!f)return;const y=document.querySelectorAll("[contenteditable]"),k=()=>{const I=document.querySelector("footer");I&&(I.style.display="flex")},D=()=>{const I=document.querySelector("footer");I&&(I.style.display="none")};return y.forEach(I=>{I.addEventListener("focus",D,!0),I.addEventListener("blur",k,!0)}),()=>{y.forEach(I=>{I.removeEventListener("focus",D,!0),I.removeEventListener("blur",k,!0)})}},[]),c.jsxs(c.Fragment,{children:[_,c.jsxs("footer",{className:`${Yt.h} ${Yt[P]} ${i} `,children:[n,r&&r.map((y,k)=>c.jsx("div",{"data-active":j===k?"true":"false",onClick:()=>{y.page&&(h(k),m==null||m(y.page)),y.callback&&(y.callback(),h(k)),y.component&&(j===k?Se():(g(y.component),h(k)))},children:y.icon},k))]})]})},ce={is:!1,MainButton:{},BackButton:{}};let V={};V.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},V.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},V.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const lr=()=>{if(location.hostname==="localhost"){let[r,n]=S.useState(!1),[i,f]=S.useState(!1),[d,m]=S.useState("dark"),[P,_]=S.useState(!1),[g,j]=S.useState(!1);ce.is=!0,ce.MainButton.set=n,ce.BackButton.set=f,S.useEffect(()=>{V[d]["--tg-theme-bg-color-alpha"]=V[d]["--tg-theme-bg-color"]+"b3",V[d]["--tg-theme-secondary-bg-color-alpha"]=V[d]["--tg-theme-secondary-bg-color"]+"d3";for(let k in V[d])document.documentElement.style.setProperty(k,V[d][k]);xe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=k=>{for(let D in V[k])document.documentElement.style.setProperty(D,V[k][D]);m(k),_(!1)},y=()=>{_(!1),j(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"debug",children:[i===!1?c.jsx("div",{className:"b",children:"Отмена"}):c.jsx("div",{onClick:()=>{var k;i.page===void 0?(k=i.callback)==null||k.call(i):ye.setPage(i.page)},className:"b",children:"Назад"}),c.jsx("div",{className:"o",onClick:()=>_(!P),children:"Меню"})]}),c.jsx(et.Init,{}),r&&c.jsx("div",{className:"mb",children:c.jsx("button",{onClick:()=>{r.page&&ye.setPage(r.page),r.callback&&r.callback()},children:r.text})}),P?c.jsxs("div",{className:"tm",children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:y,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>h("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_(!P),children:"Closed"})})]})]}):"",g?c.jsx(cr,{setAuthorization:j}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",xe.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",xe.themeParams.bg_color+"b3"),xe.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(et.Init,{})})},cr=({setAuthorization:r})=>{let n={},i=()=>{localStorage.setItem("auth",n)};return c.jsx("div",{className:"ta",children:c.jsxs("div",{className:"--body",children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:i,children:" Сохранить "})]})})},qt={p:"_p_12hh1_1",s:"_s_12hh1_17"},ur=({className:r,children:n,isScroll:i=!0})=>c.jsx("div",{className:[qt.p,i&&qt.s,r].filter(f=>f!==void 0).join(" "),children:n}),fr={l:"_l_gfyud_1"},dr=({children:r,className:n})=>c.jsx("div",{className:[fr.l,n].filter(i=>i!==void 0).join(" "),children:r}),J={state:[!1],listen:[],router:r=>{r===!1?(w.default.WebApp.BackButton.isVisible=!1,w.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.state.length!==1&&J.state.pop()):(w.default.WebApp.BackButton.isVisible=!0,w.default.WebApp.BackButton.offClick(J.listen[0]),J.listen.shift(),J.listen.push(()=>{var i;let n=J.state.pop();n.page!==void 0?ye.setPage(n.page):(i=n.callback)==null||i.call(n)}),xe.BackButton.onClick(J.listen[0]))}};w.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice=(n,i,f)=>{var d,m;i!==void 0?(et.Send({type:n,text:i,thema:f}),(d=r.WebApp.HapticFeedback)==null||d.notificationOccurred(n)):(et.Send(n),(m=r.WebApp.HapticFeedback)==null||m.notificationOccurred(n.type))},r.Header=lr,r.Footer=Jt,r.BottomSheet=zt,r.toggleBottomSheet=Se,r.SafeArea=ur,r.Loading=dr,r.Modal=rt,r.MainButton={callback:[],set:n=>{ce.is?ce.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(i=>{r.WebApp.MainButton.offClick(i)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ye.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButton=n=>{ce.is?ce.BackButton.set(n):(J.state.push(n),J.router(n))}})(w.default||(w.default={}));const pr=Jt,gr=zt,hr=w.default.BackButton,mr=w.default.Notice,vr=w.default.SafeArea,br=w.default.Loading,{Header:yr,toggleBottomSheet:xr,Modal:_r,MainButton:kr,WebApp:xe,getUser:Rr}=w.default;w.BackButton=hr,w.BottomSheet=gr,w.Footer=pr,w.Header=yr,w.Loading=br,w.MainButton=kr,w.Modal=_r,w.Notice=mr,w.SafeArea=vr,w.WebApp=xe,w.getUser=Rr,w.toggleBottomSheet=xr,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",