@elcrm/telegram 0.0.139 → 0.0.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(v,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(v=typeof globalThis<"u"?globalThis:v||self,w((v.elCRM=v.elCRM||{},v.elCRM.components={}),v.React,v.ReactDOM))})(this,function(v,w,pr){"use strict";var Ht=document.createElement("style");Ht.textContent=`@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-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}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{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)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{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}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{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)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 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)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 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)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{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}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-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_1axqy_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_1axqy_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}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.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);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.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}}body:has(._h_xfork_1){--tg-offset-bottom: 60px}._h_xfork_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;gap:10px;max-width:var(--tg-max-width, 500px);opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease,transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;background-color:var(--tab-bar-bg, var(--tg-theme-secondary-bg-color-alpha));margin:var(--tab-bar-margin, 0 auto);padding:var(--tab-bar-padding, 0 0 calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px)) 0)}._h_xfork_1[data-scale=true]{transform:scale(1.02)}._h_xfork_1[data-style=liquid-glass]{--tab-bar-actual-radius: 100px;--tab-bar-padding: 3px;--tab-bar-margin: 0px 16px calc( var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) ) 16px;box-shadow:0 -.5px #0000001a;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);justify-content:space-around;align-items:flex-start;align-self:stretch;border-radius:100px;touch-action:none}._h_xfork_1[data-style=liquid-glass]:after{border-radius:inherit;box-shadow:inset 0 .4px #ffffff80,inset 0 -.3px #ffffff80;content:"";top:0;right:0;bottom:0;left:0;mix-blend-mode:soft-light;pointer-events:none;position:absolute;z-index:2}._h_xfork_1._r_xfork_53{flex-direction:row}._h_xfork_1._c_xfork_56{flex-direction:column}._h_xfork_1._x_xfork_59{opacity:0;visibility:hidden}._h_xfork_1 ._b_xfork_63{width:100%;position:relative;display:flex;justify-content:space-around;align-items:flex-start;align-self:stretch;color:var(--tg-theme-hint-color)}._h_xfork_1 ._b_xfork_63 div{display:flex;flex-direction:column;align-items:center;padding:var(--tab-bar-button-padding);cursor:pointer;transition:transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;justify-content:center}._h_xfork_1 ._b_xfork_63 div[data-active]{flex:1;text-align:center;position:relative;z-index:1}._h_xfork_1 ._b_xfork_63 div[data-active=true]{color:var(--tg-theme-button-color)}._h_xfork_1 ._b_xfork_63 span{padding-top:2px;font-size:10px;font-weight:400}._h_xfork_1 ._b_xfork_63 ._a_xfork_99{position:absolute;top:0;bottom:0;left:0;width:calc(100% / var(--count-options));border-radius:inherit;box-shadow:var(--tab-bar-actual-shadow);transform:translate(calc(var(--tab-bar-actual-index) * 100%));transform-origin:0 0;transition:transform .15s;border-radius:var(--tab-bar-actual-radius);background:var(--tab-bar-actual-color)}@keyframes _draw_xfork_1{to{stroke-dashoffset:0}}._h_xfork_1 [data-active=true] path{stroke-dasharray:60;stroke-dashoffset:60;animation:_draw_xfork_1 1s ease-in-out forwards}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;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);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_l7xl0_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_l7xl0_3._n_l7xl0_14{padding-left:var(--scroll-padding, 7px);padding-right:var(--scroll-padding, 7px)}._b_l7xl0_19{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:1;background:var(--tg-theme-bg-color)}._s_l7xl0_3._f_l7xl0_29{position:fixed;top:0;right:0;bottom:0;left:0;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));height:100dvh;max-height:100dvh}._a_ohhaz_1{display:flex;align-items:center;justify-content:center;padding:8px 8px 12px}._a_ohhaz_1 b{font-size:18px;font-weight:600}._a_ohhaz_1._l_ohhaz_12{justify-content:flex-start}._a_ohhaz_1._r_ohhaz_15{justify-content:flex-end}
2
- /*$vite$:1*/`,document.head.appendChild(Ht);var ct={exports:{}},Re={};/**
1
+ (function(v,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(v=typeof globalThis<"u"?globalThis:v||self,w((v.elCRM=v.elCRM||{},v.elCRM.components={}),v.React,v.ReactDOM))})(this,function(v,w,pr){"use strict";var Ht=document.createElement("style");Ht.textContent=`@charset "UTF-8";:root{--tg-safe-area-height: 100dvh;--tg-max-width: 500px;--tg-scroll-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) );--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px) - var(--tg-header-height, 0px) )}*{-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}:root{--tg-modal-height: calc( 100dvh - var(--tg-safe-area-inset-top, 0px) - var( --tg-content-safe-area-inset-top, 0px ) - var(--tg-offset-bottom, 60px) )}._o_1apbm_11{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;justify-content:center;animation:_fadeIn_1apbm_1 .3s ease}._o_1apbm_11._x_1apbm_24{animation:_fadeOut_1apbm_1 .3s ease}._p_1apbm_28{position:fixed;width:100%;overflow:hidden;animation:_slideUp_1apbm_1 .3s ease;background:var(--tg-theme-bg-color);bottom:0;left:0;right:0;margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px))}._p_1apbm_28._x_1apbm_24{animation:_slideDown_1apbm_1 .3s ease}._p_1apbm_28._m_1apbm_45{--tg-scroll-height: 100dvh;--tg-modal-offset-top: calc( var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) );top:0}._p_1apbm_28._o_1apbm_11{--tg-modal-offset-top: 0px;top:calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px))}@keyframes _fadeIn_1apbm_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1apbm_1{0%{opacity:1}to{opacity:0}}@keyframes _slideUp_1apbm_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1apbm_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._n_zlj3m_1{position:fixed;z-index:999;max-height:0px;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._n_zlj3m_1 ._i_zlj3m_10{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)}._n_zlj3m_1 svg{margin-top:7px}._n_zlj3m_1 ._t_zlj3m_28{padding:9px 0;flex:1}._n_zlj3m_1 ._e_zlj3m_32{background:var(--tg-notice-error, #f44336)}._n_zlj3m_1 ._s_zlj3m_35{background:var(--tg-notice-success, #4caf50)}._n_zlj3m_1 ._w_zlj3m_38{background:var(--tg-notice-warning, #ff9800)}._n_zlj3m_1 ._i_zlj3m_10._h_zlj3m_41{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}._n_zlj3m_1 ._i_zlj3m_10._e_zlj3m_32._h_zlj3m_41 svg{color:#f44336}._n_zlj3m_1 ._i_zlj3m_10._s_zlj3m_35._t_zlj3m_28 svg{color:#4caf50}._n_zlj3m_1 ._i_zlj3m_10._w_zlj3m_38._t_zlj3m_28 svg{color:#ff9800}body:has(._d_1u25q_1){--tg-viewport-height: calc(100dvh - 50px) ;--tg-safe-area-inset-top: 50px}._d_1u25q_1{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}._d_1u25q_1 ._b_1u25q_21,._d_1u25q_1 ._o_1u25q_25{padding:0 15px;cursor:pointer}._m_1u25q_30{bottom:0;position:fixed;left:0;right:0;padding:10px}._m_1u25q_30 button{width:100%}._t_1u25q_41{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)}._t_1u25q_41 ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}._t_1u25q_41 ul:first-child{border-top:0}._t_1u25q_41 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)}._t_1u25q_41 ol:hover{display:flex}._t_1u25q_41 li{position:relative}._t_1u25q_41 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)}._t_1u25q_41 button:hover{background-color:var(--tg-theme-button-color)}._t_1u25q_41 button:hover+ol{display:flex}._a_1u25q_108{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}._a_1u25q_108 ._v_1u25q_118{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}._p_1axqy_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-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_1axqy_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_1axqy_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}._m_ppm7n_2{display:flex;flex-direction:column;gap:8px;margin-top:20px;padding:0 10px}._g_ppm7n_10{display:flex;flex-direction:column;border-radius:10px;overflow:hidden;gap:1px}._i_ppm7n_18{display:flex;align-items:center;padding:12px 16px;border:none;text-align:left;font-size:17px;cursor:pointer;transition:background-color .2s;width:100%;position:relative;background:none;color:inherit;background-color:var(--tg-theme-secondary-bg-color);font-weight:400}._c_ppm7n_35{display:flex;align-items:center;gap:12px;flex:1}._l_ppm7n_42{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}._l_ppm7n_42 svg{width:20px;height:20px;color:#fff}._a_ppm7n_57{color:#8e8e93;font-size:18px}._n_ppm7n_62{margin-left:auto;color:#8e8e93;font-size:17px;margin-right:4px}._o_8ho2f_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_8ho2f_1 .3s ease}._m_8ho2f_14{position:fixed;bottom:0;width:80%;max-width:320px;background:var(--tg-theme-bg-color, #ffffff);z-index:999;transition:transform .3s ease;box-shadow:2px 0 10px #0000001a;display:flex;flex-direction:column;top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}._l_8ho2f_28{left:0;transform:translate(-100%)}._r_8ho2f_33{right:0;transform:translate(100%)}._x_8ho2f_38{transform:translate(0)}._h_8ho2f_42{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-bottom:1px solid var(--tg-theme-section-bg-color, #e5e5e5)}._h_8ho2f_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_8ho2f_57{flex:1;overflow-y:auto}._c_8ho2f_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_8ho2f_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_8ho2f_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_8ho2f_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_8ho2f_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_8ho2f_72 li:last-child{border-bottom:none}._u_8ho2f_72 li p{margin:0;font-size:15px;color:var(--tg-theme-text-color, #000000)}.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);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.footer{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px)}.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}}body:has(._h_xfork_1){--tg-offset-bottom: 60px}._h_xfork_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;gap:10px;max-width:var(--tg-max-width, 500px);opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease,transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;background-color:var(--tab-bar-bg, var(--tg-theme-secondary-bg-color-alpha));margin:var(--tab-bar-margin, 0 auto);padding:var(--tab-bar-padding, 0 0 calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px)) 0)}._h_xfork_1[data-scale=true]{transform:scale(1.02)}._h_xfork_1[data-style=liquid-glass]{--tab-bar-actual-radius: 100px;--tab-bar-padding: 3px;--tab-bar-margin: 0px 16px calc( var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) ) 16px;box-shadow:0 -.5px #0000001a;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);justify-content:space-around;align-items:flex-start;align-self:stretch;border-radius:100px;touch-action:none}._h_xfork_1[data-style=liquid-glass]:after{border-radius:inherit;box-shadow:inset 0 .4px #ffffff80,inset 0 -.3px #ffffff80;content:"";top:0;right:0;bottom:0;left:0;mix-blend-mode:soft-light;pointer-events:none;position:absolute;z-index:2}._h_xfork_1._r_xfork_53{flex-direction:row}._h_xfork_1._c_xfork_56{flex-direction:column}._h_xfork_1._x_xfork_59{opacity:0;visibility:hidden}._h_xfork_1 ._b_xfork_63{width:100%;position:relative;display:flex;justify-content:space-around;align-items:flex-start;align-self:stretch;color:var(--tg-theme-hint-color)}._h_xfork_1 ._b_xfork_63 div{display:flex;flex-direction:column;align-items:center;padding:var(--tab-bar-button-padding);cursor:pointer;transition:transform .15s cubic-bezier(.4,0,.2,1);transform-origin:center;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;justify-content:center}._h_xfork_1 ._b_xfork_63 div[data-active]{flex:1;text-align:center;position:relative;z-index:1}._h_xfork_1 ._b_xfork_63 div[data-active=true]{color:var(--tg-theme-button-color)}._h_xfork_1 ._b_xfork_63 span{padding-top:2px;font-size:10px;font-weight:400}._h_xfork_1 ._b_xfork_63 ._a_xfork_99{position:absolute;top:0;bottom:0;left:0;width:calc(100% / var(--count-options));border-radius:inherit;box-shadow:var(--tab-bar-actual-shadow);transform:translate(calc(var(--tab-bar-actual-index) * 100%));transform-origin:0 0;transition:transform .15s;border-radius:var(--tab-bar-actual-radius);background:var(--tab-bar-actual-color)}@keyframes _draw_xfork_1{to{stroke-dashoffset:0}}._h_xfork_1 [data-active=true] path{stroke-dasharray:60;stroke-dashoffset:60;animation:_draw_xfork_1 1s ease-in-out forwards}._b_r6m8n_1{position:absolute;inset:var(--tg-badge-inset, 0px 0px auto auto);color:var(--tg-badge-color, #ffffff);border-radius:var(--tg-badge-border-radius, 50%);transform:var(--tg-badge-transform, translate(50%, -50%));background:var(--tg-badge-background, #ff0000);padding:var(--tg-badge-padding, 5px);font-size:var(--tg-badge-font-size, 14px);font-weight:var(--tg-badge-font-weight, 700);line-height:var(--tg-badge-line-height, 1);letter-spacing:var(--tg-badge-letter-spacing, 0)}._w_yx04q_3{position:fixed;top:0;left:0;z-index:10;width:100%;height:100%;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1);will-change:transform;overflow:hidden;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);background:var(--tg-theme-bg-color)}._v_yx04q_24{transform:translate(0)}._w_yx04q_3{backface-visibility:hidden;perspective:1000px}._s_yx04q_34{overflow:scroll}._n_yx04q_38{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}@media (prefers-reduced-motion: no-preference){._w_yx04q_3{transition:transform .35s cubic-bezier(.4,0,.2,1)}}@media (prefers-reduced-motion: reduce){._w_yx04q_3{transform:translate(0);transition:none}}._s_l7xl0_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-scroll-height);max-height:var(--tg-scroll-height);padding-top:var(--tg-modal-offset-top, 0px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));margin:0 auto}._s_l7xl0_3._n_l7xl0_14{padding-left:var(--scroll-padding, 7px);padding-right:var(--scroll-padding, 7px)}._b_l7xl0_19{position:fixed;top:0;right:0;bottom:0;width:7px;z-index:1;background:var(--tg-theme-bg-color)}._s_l7xl0_3._f_l7xl0_29{position:fixed;top:0;right:0;bottom:0;left:0;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-offset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));height:100dvh;max-height:100dvh}._a_prp23_1{display:flex;align-items:center;justify-content:center;padding:10px 0;gap:16px;margin-bottom:10px}._a_prp23_1 b{font-size:18px;font-weight:600}._a_prp23_1._l_prp23_13{justify-content:flex-start}._a_prp23_1._r_prp23_16{justify-content:flex-end}._a_prp23_1._b_prp23_19{justify-content:space-between}
2
+ /*$vite$:1*/`,document.head.appendChild(Ht);var ut={exports:{}},Re={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -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 Jt;function gr(){if(Jt)return Re;Jt=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,m){var _,x={},k=null,R=null;m!==void 0&&(k=""+m),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(R=f.ref);for(_ in f)i.call(f,_)&&!l.hasOwnProperty(_)&&(x[_]=f[_]);if(p&&p.defaultProps)for(_ in f=p.defaultProps,f)x[_]===void 0&&(x[_]=f[_]);return{$$typeof:r,type:p,key:k,ref:R,props:x,_owner:s.current}}return Re.Fragment=n,Re.jsx=d,Re.jsxs=d,Re}var Ae={};/**
10
+ */var Jt;function gr(){if(Jt)return Re;Jt=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,m){var h,x={},k=null,R=null;m!==void 0&&(k=""+m),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(R=f.ref);for(h in f)i.call(f,h)&&!l.hasOwnProperty(h)&&(x[h]=f[h]);if(p&&p.defaultProps)for(h in f=p.defaultProps,f)x[h]===void 0&&(x[h]=f[h]);return{$$typeof:r,type:p,key:k,ref:R,props:x,_owner:s.current}}return Re.Fragment=n,Re.jsx=d,Re.jsxs=d,Re}var Ae={};/**
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 Kt;function hr(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=B.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(h){return String(h)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,I=!1,_t=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function bt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===m||e===_||_t||e===R||Ee||je||I||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return vt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,h=b._init;try{return T(h(y))}catch{return null}}}return null}var z=Object.assign,Y=0,Te,Me,Ne,Be,Ie,ze,Le;function De(){}De.__reactDisabledLog=!0;function yt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,Be=console.error,Ie=console.group,ze=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function xt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:Te}),info:z({},e,{value:Me}),warn:z({},e,{value:Ne}),error:z({},e,{value:Be}),group:z({},e,{value:Ie}),groupCollapsed:z({},e,{value:ze}),groupEnd:z({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=B.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
19
- `+fe+e}}var de=!1,Q;{var kt=typeof WeakMap=="function"?WeakMap:Map;Q=new kt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,yt();try{if(o){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch($){u=$}Reflect.construct(e,[],h)}else{try{h.call()}catch($){u=$}e.call(h.prototype)}}else{try{throw Error()}catch($){u=$}e()}}catch($){if($&&u&&typeof $.stack=="string"){for(var g=$.stack.split(`
20
- `),O=u.stack.split(`
21
- `),S=g.length-1,E=O.length-1;S>=1&&E>=0&&g[S]!==O[E];)E--;for(;S>=1&&E>=0;S--,E--)if(g[S]!==O[E]){if(S!==1||E!==1)do if(S--,E--,E<0||g[S]!==O[E]){var P=`
22
- `+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,xt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function wt(e,o,a){return Ue(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,St(e));if(typeof e=="string")return Z(e);switch(e){case m:return Z("Suspense");case _:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return wt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=B.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function Et(e,o,a,u,b){{var y=Function.call.bind(V);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((u||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](o,h,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%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).",u||"React class",a,h,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var jt=Array.isArray;function pe(e){return jt(e)}function Rt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function At(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rt(e)),qe(e)}var Ve=B.ReactCurrentOwner,Ot={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function $t(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ve.current}function Tt(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Mt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Nt=function(e,o,a,u,b,y,h){var g={$$typeof:r,type:e,key:o,ref:a,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Bt(e,o,a,u,b){{var y,h={},g=null,O=null;a!==void 0&&(Ye(a),g=""+a),Pt(o)&&(Ye(o.key),g=""+o.key),$t(o)&&(O=o.ref,Ct(o,b));for(y in o)V.call(o,y)&&!Ot.hasOwnProperty(y)&&(h[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)h[y]===void 0&&(h[y]=S[y])}if(g||O){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Tt(h,E),O&&Mt(h,E)}return Nt(e,g,O,b,u,Ve.current,h)}}var ge=B.ReactCurrentOwner,Ke=B.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var he;he=!1;function _e(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
18
+ */var Kt;function _r(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=B.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(_){return String(_)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,I=!1,ht=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function bt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===m||e===h||ht||e===R||Ee||je||I||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return vt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,_=b._init;try{return T(_(y))}catch{return null}}}return null}var z=Object.assign,Y=0,Te,Me,Ne,Be,Ie,ze,Le;function De(){}De.__reactDisabledLog=!0;function yt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,Be=console.error,Ie=console.group,ze=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function xt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:Te}),info:z({},e,{value:Me}),warn:z({},e,{value:Ne}),error:z({},e,{value:Be}),group:z({},e,{value:Ie}),groupCollapsed:z({},e,{value:ze}),groupEnd:z({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=B.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
19
+ `+fe+e}}var de=!1,Q;{var kt=typeof WeakMap=="function"?WeakMap:Map;Q=new kt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,yt();try{if(o){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(O){u=O}Reflect.construct(e,[],_)}else{try{_.call()}catch(O){u=O}e.call(_.prototype)}}else{try{throw Error()}catch(O){u=O}e()}}catch(O){if(O&&u&&typeof O.stack=="string"){for(var g=O.stack.split(`
20
+ `),$=u.stack.split(`
21
+ `),S=g.length-1,E=$.length-1;S>=1&&E>=0&&g[S]!==$[E];)E--;for(;S>=1&&E>=0;S--,E--)if(g[S]!==$[E]){if(S!==1||E!==1)do if(S--,E--,E<0||g[S]!==$[E]){var P=`
22
+ `+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,xt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function wt(e,o,a){return Ue(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,St(e));if(typeof e=="string")return Z(e);switch(e){case m:return Z("Suspense");case h:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return wt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=B.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function Et(e,o,a,u,b){{var y=Function.call.bind(V);for(var _ in e)if(y(e,_)){var g=void 0;try{if(typeof e[_]!="function"){var $=Error((u||"React class")+": "+a+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}g=e[_](o,_,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%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).",u||"React class",a,_,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var jt=Array.isArray;function pe(e){return jt(e)}function Rt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function At(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rt(e)),qe(e)}var Ve=B.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function Ot(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ve.current}function Tt(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Mt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Nt=function(e,o,a,u,b,y,_){var g={$$typeof:r,type:e,key:o,ref:a,props:_,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Bt(e,o,a,u,b){{var y,_={},g=null,$=null;a!==void 0&&(Ye(a),g=""+a),Pt(o)&&(Ye(o.key),g=""+o.key),Ot(o)&&($=o.ref,Ct(o,b));for(y in o)V.call(o,y)&&!$t.hasOwnProperty(y)&&(_[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)_[y]===void 0&&(_[y]=S[y])}if(g||$){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Tt(_,E),$&&Mt(_,E)}return Nt(e,g,$,b,u,Ve.current,_)}}var ge=B.ReactCurrentOwner,Ke=B.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var _e;_e=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
23
23
 
24
24
  Check the render method of \``+e+"`."}return""}}function It(e){return""}var Xe={};function zt(e){{var o=Ge();if(!o){var a=typeof e=="string"?e:e.displayName||e.name;a&&(o=`
25
25
 
26
- Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=zt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];_e(u)&&Ze(u,o)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)_e(h.value)&&Ze(h.value,o)}}}function Lt(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);Et(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!he){he=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var h=bt(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=It();O?g+=O:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Bt(e,o,a,b,y);if(E==null)return E;if(h){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("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(P,e)}if(V.call(o,"key")){var L=T(e),$=Object.keys(o).filter(function(Vt){return Vt!=="key"}),me=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+me]){var Yt=$.length>0?"{"+$.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=zt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];he(u)&&Ze(u,o)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),_;!(_=y.next()).done;)he(_.value)&&Ze(_.value,o)}}}function Lt(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);Et(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!_e){_e=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var _=bt(e);if(!_){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $=It();$?g+=$:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Bt(e,o,a,b,y);if(E==null)return E;if(_){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("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(P,e)}if(V.call(o,"key")){var L=T(e),O=Object.keys(o).filter(function(Vt){return Vt!=="key"}),me=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+me]){var Yt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";j(`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} />`,me,L,Yt,L),et[L+me]=!0}}return e===i?Dt(E):Lt(E),E}}function Ut(e,o,a){return tt(e,o,a,!0)}function Ft(e,o,a){return tt(e,o,a,!1)}var Wt=Ft,qt=Ut;Ae.Fragment=i,Ae.jsx=Wt,Ae.jsxs=qt}()),Ae}process.env.NODE_ENV==="production"?ct.exports=gr():ct.exports=hr();var c=ct.exports;const be={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let U={};var ut;(t=>{function r({children:p,onCallbackModal:f,nameModal:m,offsetTop:_}){const[x,k]=w.useState(!1),[R,C]=w.useState(!1);if(U[m].onClose=()=>{v.default.BackButton(!1),C(!0),setTimeout(()=>{k(!1),C(!1),f==null||f(),U.x(m)},300)},w.useEffect(()=>{x?U[m].onClose():(v.default.BackButton({callback:()=>U[m].onClose()}),k(!0))},[]),!!x)return c.jsx("div",{className:ae(be.o,R&&be.x),children:c.jsx("div",{className:ae(be.p,R&&be.x,_?be.o:be.m),children:p})})}t.Content=r;function n({import_modules:p}){let[f,m]=w.useState([]);return U.x=_=>{m(_?f.filter(x=>x.key!==_):[])},w.useEffect(()=>{p&&(U.i=p)},[]),U.add=(_,x=Date.now())=>{m([...f,{key:x,item:_}])},c.jsx(c.Fragment,{children:f.map(_=>_.item)})}t.Init=n;function i(p,f,m){U.add(c.jsx(r,{onCallbackModal:U["callback_modal"+f],nameModal:f||"",offsetTop:m,children:p},String(Date.now())),f)}t.Add=i;function s(p,f=Date.now().toString(),m){return U[f]={},{Open:k=>{t.Add(c.jsx(p,{...k,onCallbackModal:R=>{var C;(C=k.callback)==null||C.call(k,R)},nameModal:f},new Date().getTime()),f,m===void 0?!0:m)}}}t.Create=s;function l(p){U[p].onClose()}t.Close=l;function d(p,f,m,_){U.i&&(_&&(m.callback=_),U.i(`${p}/modals/${f}.tsx`).then(x=>{var k;x.Open?x.Open(m):(k=x.default)!=null&&k.Open?x.default.Open(m):x.default&&x.default(m)}))}t.Open=d})(ut||(ut={}));function Gt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Xt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Zt(t){const r=Gt();r.CRYPTO_PARAMS?r.CRYPTO_PARAMS={...r.CRYPTO_PARAMS,...t}:r.CRYPTO_PARAMS={...Xt,...t}}function rt(){return Gt().CRYPTO_PARAMS||Xt}const ot=t=>{let r=0;for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);r=(r<<5)-r+s,r=r&r}r=Math.abs(r);let n="";for(let i=0;i<64;i++){const s=(r^i*197)&255;n+=s.toString(16).padStart(2,"0")}return n},Qt=(t,r)=>{let n=t+r;for(let s=0;s<rt().iterations;s++)n=ot(n);const i=new Uint8Array(32);for(let s=0;s<32;s++)i[s]=parseInt(n.substring(s*2,s*2+2),16);return i},er=(t,r)=>{const n=new Uint8Array(t.length),i=new Uint8Array(t.length);let s=0;for(let l=0;l<t.length;l++){const d=l%r.length;s=r[d]+l+s&255,i[l]=s}for(let l=0;l<t.length;l++)n[l]=t[l]^i[l];return n},_r=t=>new TextEncoder().encode(t),mr=t=>new TextDecoder().decode(t),br=t=>{let r="";for(let n=0;n<t.length;n+=8192){const i=t.slice(n,Math.min(n+8192,t.length));r+=String.fromCharCode.apply(null,Array.from(i))}return btoa(r)},vr=t=>{const r=atob(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n},yr=t=>{try{const r=ot(Date.now().toString()+Math.random()).substring(0,rt().saltLength*2),n=ot(t+r).substring(0,8),i=Qt(rt().key,r),s=_r(t),l=er(s,i),d=br(l);return`${r}.${d}.${n}`}catch{throw new Error("Не удалось зашифровать данные")}},xr=t=>{try{const r=t.split(".");if(r.length!==3)throw new Error("Неверный формат зашифрованных данных");const n=r[0],i=r[1],s=r[2],l=Qt(rt().key,n),d=vr(i),p=er(d,l),f=mr(p);if(ot(f+n).substring(0,8)!==s)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var re;(t=>{t.setKey=r=>{Zt({key:r})},t.enCode=r=>{try{const n=JSON.stringify(r);return yr(n)}catch{throw new Error("Не удалось зашифровать объект")}},t.deCode=r=>{try{if(!r||r.length<10)return!1;const n=xr(r);return n&&JSON.parse(n)||!1}catch{return!1}},t.setSecurityParams=(r,n)=>{Zt({iterations:r,saltLength:n})}})(re||(re={}));var Oe={};/**
31
+ <%s key={someKey} {...props} />`,me,L,Yt,L),et[L+me]=!0}}return e===i?Dt(E):Lt(E),E}}function Ut(e,o,a){return tt(e,o,a,!0)}function Ft(e,o,a){return tt(e,o,a,!1)}var Wt=Ft,qt=Ut;Ae.Fragment=i,Ae.jsx=Wt,Ae.jsxs=qt}()),Ae}process.env.NODE_ENV==="production"?ut.exports=gr():ut.exports=_r();var c=ut.exports;const be={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let U={};var ft;(t=>{function r({children:p,onCallbackModal:f,nameModal:m,offsetTop:h}){const[x,k]=w.useState(!1),[R,C]=w.useState(!1);if(U[m].onClose=()=>{v.default.BackButton(!1),C(!0),setTimeout(()=>{k(!1),C(!1),f==null||f(),U.x(m)},300)},w.useEffect(()=>{x?U[m].onClose():(v.default.BackButton({callback:()=>U[m].onClose()}),k(!0))},[]),!!x)return c.jsx("div",{className:ae(be.o,R&&be.x),children:c.jsx("div",{className:ae(be.p,R&&be.x,h?be.o:be.m),children:p})})}t.Content=r;function n({import_modules:p}){let[f,m]=w.useState([]);return U.x=h=>{m(h?f.filter(x=>x.key!==h):[])},w.useEffect(()=>{p&&(U.i=p)},[]),U.add=(h,x=Date.now())=>{m([...f,{key:x,item:h}])},c.jsx(c.Fragment,{children:f.map(h=>h.item)})}t.Init=n;function i(p,f,m){U.add(c.jsx(r,{onCallbackModal:U["callback_modal"+f],nameModal:f||"",offsetTop:m,children:p},String(Date.now())),f)}t.Add=i;function s(p,f=Date.now().toString(),m){return U[f]={},{Open:k=>{t.Add(c.jsx(p,{...k,onCallbackModal:R=>{var C;(C=k.callback)==null||C.call(k,R)},nameModal:f},new Date().getTime()),f,m===void 0?!0:m)}}}t.Create=s;function l(p){U[p].onClose()}t.Close=l;function d(p,f,m,h){U.i&&(h&&(m.callback=h),U.i(`${p}/modals/${f}.tsx`).then(x=>{var k;x.Open?x.Open(m):(k=x.default)!=null&&k.Open?x.default.Open(m):x.default&&x.default(m)}))}t.Open=d})(ft||(ft={}));function Gt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Xt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Zt(t){const r=Gt();r.CRYPTO_PARAMS?r.CRYPTO_PARAMS={...r.CRYPTO_PARAMS,...t}:r.CRYPTO_PARAMS={...Xt,...t}}function rt(){return Gt().CRYPTO_PARAMS||Xt}const ot=t=>{let r=0;for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);r=(r<<5)-r+s,r=r&r}r=Math.abs(r);let n="";for(let i=0;i<64;i++){const s=(r^i*197)&255;n+=s.toString(16).padStart(2,"0")}return n},Qt=(t,r)=>{let n=t+r;for(let s=0;s<rt().iterations;s++)n=ot(n);const i=new Uint8Array(32);for(let s=0;s<32;s++)i[s]=parseInt(n.substring(s*2,s*2+2),16);return i},er=(t,r)=>{const n=new Uint8Array(t.length),i=new Uint8Array(t.length);let s=0;for(let l=0;l<t.length;l++){const d=l%r.length;s=r[d]+l+s&255,i[l]=s}for(let l=0;l<t.length;l++)n[l]=t[l]^i[l];return n},hr=t=>new TextEncoder().encode(t),mr=t=>new TextDecoder().decode(t),br=t=>{let r="";for(let n=0;n<t.length;n+=8192){const i=t.slice(n,Math.min(n+8192,t.length));r+=String.fromCharCode.apply(null,Array.from(i))}return btoa(r)},vr=t=>{const r=atob(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n},yr=t=>{try{const r=ot(Date.now().toString()+Math.random()).substring(0,rt().saltLength*2),n=ot(t+r).substring(0,8),i=Qt(rt().key,r),s=hr(t),l=er(s,i),d=br(l);return`${r}.${d}.${n}`}catch{throw new Error("Не удалось зашифровать данные")}},xr=t=>{try{const r=t.split(".");if(r.length!==3)throw new Error("Неверный формат зашифрованных данных");const n=r[0],i=r[1],s=r[2],l=Qt(rt().key,n),d=vr(i),p=er(d,l),f=mr(p);if(ot(f+n).substring(0,8)!==s)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var re;(t=>{t.setKey=r=>{Zt({key:r})},t.enCode=r=>{try{const n=JSON.stringify(r);return yr(n)}catch{throw new Error("Не удалось зашифровать объект")}},t.deCode=r=>{try{if(!r||r.length<10)return!1;const n=xr(r);return n&&JSON.parse(n)||!1}catch{return!1}},t.setSecurityParams=(r,n)=>{Zt({iterations:r,saltLength:n})}})(re||(re={}));var $e={};/**
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 tr;function kr(){if(tr)return Oe;tr=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,m){var _,x={},k=null,R=null;m!==void 0&&(k=""+m),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(R=f.ref);for(_ in f)i.call(f,_)&&!l.hasOwnProperty(_)&&(x[_]=f[_]);if(p&&p.defaultProps)for(_ in f=p.defaultProps,f)x[_]===void 0&&(x[_]=f[_]);return{$$typeof:r,type:p,key:k,ref:R,props:x,_owner:s.current}}return Oe.Fragment=n,Oe.jsx=d,Oe.jsxs=d,Oe}var nt={};/**
39
+ */var tr;function kr(){if(tr)return $e;tr=1;var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function d(p,f,m){var h,x={},k=null,R=null;m!==void 0&&(k=""+m),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(R=f.ref);for(h in f)i.call(f,h)&&!l.hasOwnProperty(h)&&(x[h]=f[h]);if(p&&p.defaultProps)for(h in f=p.defaultProps,f)x[h]===void 0&&(x[h]=f[h]);return{$$typeof:r,type:p,key:k,ref:R,props:x,_owner:s.current}}return $e.Fragment=n,$e.jsx=d,$e.jsxs=d,$e}var nt={};/**
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 rr;function wr(){return rr||(rr=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=B.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(h){return String(h)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,I=!1,_t=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function bt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===m||e===_||_t||e===R||Ee||je||I||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return vt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,h=b._init;try{return T(h(y))}catch{return null}}}return null}var z=Object.assign,Y=0,Te,Me,Ne,Be,Ie,ze,Le;function De(){}De.__reactDisabledLog=!0;function yt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,Be=console.error,Ie=console.group,ze=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function xt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:Te}),info:z({},e,{value:Me}),warn:z({},e,{value:Ne}),error:z({},e,{value:Be}),group:z({},e,{value:Ie}),groupCollapsed:z({},e,{value:ze}),groupEnd:z({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=B.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
48
- `+fe+e}}var de=!1,Q;{var kt=typeof WeakMap=="function"?WeakMap:Map;Q=new kt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,yt();try{if(o){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch($){u=$}Reflect.construct(e,[],h)}else{try{h.call()}catch($){u=$}e.call(h.prototype)}}else{try{throw Error()}catch($){u=$}e()}}catch($){if($&&u&&typeof $.stack=="string"){for(var g=$.stack.split(`
49
- `),O=u.stack.split(`
50
- `),S=g.length-1,E=O.length-1;S>=1&&E>=0&&g[S]!==O[E];)E--;for(;S>=1&&E>=0;S--,E--)if(g[S]!==O[E]){if(S!==1||E!==1)do if(S--,E--,E<0||g[S]!==O[E]){var P=`
51
- `+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,xt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function wt(e,o,a){return Ue(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,St(e));if(typeof e=="string")return Z(e);switch(e){case m:return Z("Suspense");case _:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return wt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=B.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function Et(e,o,a,u,b){{var y=Function.call.bind(V);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var O=Error((u||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}g=e[h](o,h,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%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).",u||"React class",a,h,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var jt=Array.isArray;function pe(e){return jt(e)}function Rt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function At(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rt(e)),qe(e)}var Ve=B.ReactCurrentOwner,Ot={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function $t(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ve.current}function Tt(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Mt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Nt=function(e,o,a,u,b,y,h){var g={$$typeof:r,type:e,key:o,ref:a,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Bt(e,o,a,u,b){{var y,h={},g=null,O=null;a!==void 0&&(Ye(a),g=""+a),Pt(o)&&(Ye(o.key),g=""+o.key),$t(o)&&(O=o.ref,Ct(o));for(y in o)V.call(o,y)&&!Ot.hasOwnProperty(y)&&(h[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)h[y]===void 0&&(h[y]=S[y])}if(g||O){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Tt(h,E),O&&Mt(h,E)}return Nt(e,g,O,b,u,Ve.current,h)}}var ge=B.ReactCurrentOwner,Ke=B.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var he;he=!1;function _e(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
47
+ */var rr;function wr(){return rr||(rr=1,process.env.NODE_ENV!=="production"&&function(){var t=w,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),C=Symbol.iterator,ke="@@iterator";function we(e){if(e===null||typeof e!="object")return null;var o=C&&e[C]||e[ke];return typeof o=="function"?o:null}var B=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var o=arguments.length,a=new Array(o>1?o-1:0),u=1;u<o;u++)a[u-1]=arguments[u];Se("error",e,a)}}function Se(e,o,a){{var u=B.ReactDebugCurrentFrame,b=u.getStackAddendum();b!==""&&(o+="%s",a=a.concat([b]));var y=a.map(function(_){return String(_)});y.unshift("Warning: "+o),Function.prototype.apply.call(console[e],console,y)}}var Ee=!1,je=!1,I=!1,ht=!1,mt=!1,Pe;Pe=Symbol.for("react.module.reference");function bt(e){return!!(typeof e=="string"||typeof e=="function"||e===i||e===l||mt||e===s||e===m||e===h||ht||e===R||Ee||je||I||typeof e=="object"&&e!==null&&(e.$$typeof===k||e.$$typeof===x||e.$$typeof===d||e.$$typeof===p||e.$$typeof===f||e.$$typeof===Pe||e.getModuleId!==void 0))}function vt(e,o,a){var u=e.displayName;if(u)return u;var b=o.displayName||o.name||"";return b!==""?a+"("+b+")":a}function Ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&j("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 i:return"Fragment";case n:return"Portal";case l:return"Profiler";case s:return"StrictMode";case m:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var o=e;return Ce(o)+".Consumer";case d:var a=e;return Ce(a._context)+".Provider";case f:return vt(e,e.render,"ForwardRef");case x:var u=e.displayName||null;return u!==null?u:T(e.type)||"Memo";case k:{var b=e,y=b._payload,_=b._init;try{return T(_(y))}catch{return null}}}return null}var z=Object.assign,Y=0,Te,Me,Ne,Be,Ie,ze,Le;function De(){}De.__reactDisabledLog=!0;function yt(){{if(Y===0){Te=console.log,Me=console.info,Ne=console.warn,Be=console.error,Ie=console.group,ze=console.groupCollapsed,Le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function xt(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:Te}),info:z({},e,{value:Me}),warn:z({},e,{value:Ne}),error:z({},e,{value:Be}),group:z({},e,{value:Ie}),groupCollapsed:z({},e,{value:ze}),groupEnd:z({},e,{value:Le})})}Y<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ue=B.ReactCurrentDispatcher,fe;function Z(e,o,a){{if(fe===void 0)try{throw Error()}catch(b){var u=b.stack.trim().match(/\n( *(at )?)/);fe=u&&u[1]||""}return`
48
+ `+fe+e}}var de=!1,Q;{var kt=typeof WeakMap=="function"?WeakMap:Map;Q=new kt}function Ue(e,o){if(!e||de)return"";{var a=Q.get(e);if(a!==void 0)return a}var u;de=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=ue.current,ue.current=null,yt();try{if(o){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(O){u=O}Reflect.construct(e,[],_)}else{try{_.call()}catch(O){u=O}e.call(_.prototype)}}else{try{throw Error()}catch(O){u=O}e()}}catch(O){if(O&&u&&typeof O.stack=="string"){for(var g=O.stack.split(`
49
+ `),$=u.stack.split(`
50
+ `),S=g.length-1,E=$.length-1;S>=1&&E>=0&&g[S]!==$[E];)E--;for(;S>=1&&E>=0;S--,E--)if(g[S]!==$[E]){if(S!==1||E!==1)do if(S--,E--,E<0||g[S]!==$[E]){var P=`
51
+ `+g[S].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&Q.set(e,P),P}while(S>=1&&E>=0);break}}}finally{de=!1,ue.current=y,xt(),Error.prepareStackTrace=b}var W=e?e.displayName||e.name:"",L=W?Z(W):"";return typeof e=="function"&&Q.set(e,L),L}function wt(e,o,a){return Ue(e,!1)}function St(e){var o=e.prototype;return!!(o&&o.isReactComponent)}function ee(e,o,a){if(e==null)return"";if(typeof e=="function")return Ue(e,St(e));if(typeof e=="string")return Z(e);switch(e){case m:return Z("Suspense");case h:return Z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return wt(e.render);case x:return ee(e.type,o,a);case k:{var u=e,b=u._payload,y=u._init;try{return ee(y(b),o,a)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,Fe={},We=B.ReactDebugCurrentFrame;function te(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);We.setExtraStackFrame(a)}else We.setExtraStackFrame(null)}function Et(e,o,a,u,b){{var y=Function.call.bind(V);for(var _ in e)if(y(e,_)){var g=void 0;try{if(typeof e[_]!="function"){var $=Error((u||"React class")+": "+a+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}g=e[_](o,_,u,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){g=S}g&&!(g instanceof Error)&&(te(b),j("%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).",u||"React class",a,_,typeof g),te(null)),g instanceof Error&&!(g.message in Fe)&&(Fe[g.message]=!0,te(b),j("Failed %s type: %s",a,g.message),te(null))}}}var jt=Array.isArray;function pe(e){return jt(e)}function Rt(e){{var o=typeof Symbol=="function"&&Symbol.toStringTag,a=o&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function At(e){try{return qe(e),!1}catch{return!0}}function qe(e){return""+e}function Ye(e){if(At(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Rt(e)),qe(e)}var Ve=B.ReactCurrentOwner,$t={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function Ot(e){if(V.call(e,"ref")){var o=Object.getOwnPropertyDescriptor(e,"ref").get;if(o&&o.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(V.call(e,"key")){var o=Object.getOwnPropertyDescriptor(e,"key").get;if(o&&o.isReactWarning)return!1}return e.key!==void 0}function Ct(e,o){typeof e.ref=="string"&&Ve.current}function Tt(e,o){{var a=function(){He||(He=!0,j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function Mt(e,o){{var a=function(){Je||(Je=!0,j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",o))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var Nt=function(e,o,a,u,b,y,_){var g={$$typeof:r,type:e,key:o,ref:a,props:_,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Bt(e,o,a,u,b){{var y,_={},g=null,$=null;a!==void 0&&(Ye(a),g=""+a),Pt(o)&&(Ye(o.key),g=""+o.key),Ot(o)&&($=o.ref,Ct(o));for(y in o)V.call(o,y)&&!$t.hasOwnProperty(y)&&(_[y]=o[y]);if(e&&e.defaultProps){var S=e.defaultProps;for(y in S)_[y]===void 0&&(_[y]=S[y])}if(g||$){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Tt(_,E),$&&Mt(_,E)}return Nt(e,g,$,b,u,Ve.current,_)}}var ge=B.ReactCurrentOwner,Ke=B.ReactDebugCurrentFrame;function F(e){if(e){var o=e._owner,a=ee(e.type,e._source,o?o.type:null);Ke.setExtraStackFrame(a)}else Ke.setExtraStackFrame(null)}var _e;_e=!1;function he(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function Ge(){{if(ge.current){var e=T(ge.current.type);if(e)return`
52
52
 
53
53
  Check the render method of \``+e+"`."}return""}}function It(e){return""}var Xe={};function zt(e){{var o=Ge();if(!o){var a=typeof e=="string"?e:e.displayName||e.name;a&&(o=`
54
54
 
55
- Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=zt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];_e(u)&&Ze(u,o)}else if(_e(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)_e(h.value)&&Ze(h.value,o)}}}function Lt(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);Et(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!he){he=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var h=bt(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=It();O?g+=O:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Bt(e,o,a,b,y);if(E==null)return E;if(h){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("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(P,e)}if(V.call(o,"key")){var L=T(e),$=Object.keys(o).filter(function(Vt){return Vt!=="key"}),me=$.length>0?"{key: someKey, "+$.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+me]){var Yt=$.length>0?"{"+$.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+a+">.")}return o}}function Ze(e,o){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=zt(o);if(Xe[a])return;Xe[a]=!0;var u="";e&&e._owner&&e._owner!==ge.current&&(u=" It was passed a child from "+T(e._owner.type)+"."),F(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,u),F(null)}}function Qe(e,o){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var u=e[a];he(u)&&Ze(u,o)}else if(he(e))e._store&&(e._store.validated=!0);else if(e){var b=we(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),_;!(_=y.next()).done;)he(_.value)&&Ze(_.value,o)}}}function Lt(e){{var o=e.type;if(o==null||typeof o=="string")return;var a;if(typeof o=="function")a=o.propTypes;else if(typeof o=="object"&&(o.$$typeof===f||o.$$typeof===x))a=o.propTypes;else return;if(a){var u=T(o);Et(a,e.props,"prop",u,e)}else if(o.PropTypes!==void 0&&!_e){_e=!0;var b=T(o);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof o.getDefaultProps=="function"&&!o.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Dt(e){{for(var o=Object.keys(e.props),a=0;a<o.length;a++){var u=o[a];if(u!=="children"&&u!=="key"){F(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),F(null);break}}e.ref!==null&&(F(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),F(null))}}var et={};function tt(e,o,a,u,b,y){{var _=bt(e);if(!_){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $=It();$?g+=$:g+=Ge();var S;e===null?S="null":pe(e)?S="array":e!==void 0&&e.$$typeof===r?(S="<"+(T(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,g)}var E=Bt(e,o,a,b,y);if(E==null)return E;if(_){var P=o.children;if(P!==void 0)if(u)if(pe(P)){for(var W=0;W<P.length;W++)Qe(P[W],e);Object.freeze&&Object.freeze(P)}else j("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(P,e)}if(V.call(o,"key")){var L=T(e),O=Object.keys(o).filter(function(Vt){return Vt!=="key"}),me=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+me]){var Yt=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";j(`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} />`,me,L,Yt,L),et[L+me]=!0}}return e===i?Dt(E):Lt(E),E}}function Ut(e,o,a){return tt(e,o,a,!0)}function Ft(e,o,a){return tt(e,o,a,!1)}var Wt=Ft,qt=Ut;nt.Fragment=i,nt.jsx=Wt,nt.jsxs=qt}()),nt}process.env.NODE_ENV==="production"?kr():wr();const Sr="0.0.46",or={version:Sr},K={},D={module:"",v:or.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function H(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}H().elcrm||(H().elcrm={}),Object.assign(H().elcrm,{router:or.version});function J(t){var r,n,i,s;const l=H();if(l.ROUTER_PARAMS){t.debug||l.ROUTER_PARAMS.debug;const d={page:(r=l.ROUTER_PARAMS)==null?void 0:r.page,module:(n=l.ROUTER_PARAMS)==null?void 0:n.module,tab:(i=l.ROUTER_PARAMS)==null?void 0:i.tab,id:(s=l.ROUTER_PARAMS)==null?void 0:s.id};l.ROUTER_PARAMS={...l.ROUTER_PARAMS,...t,prev:d}}else{t.debug||D.debug;const d={page:D==null?void 0:D.page,module:D==null?void 0:D.module,tab:D==null?void 0:D.tab,id:D==null?void 0:D.id};l.ROUTER_PARAMS={...D,...t,prev:d}}}function A(){return H().ROUTER_PARAMS||D}function ie(t){const r=H();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...D}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(n=>{r.ROUTER_PARAMS.LISTENER[n]||(r.ROUTER_PARAMS.LISTENER[n]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[n])||(r.ROUTER_PARAMS.LISTENER[n]=[r.ROUTER_PARAMS.LISTENER[n]]),r.ROUTER_PARAMS.LISTENER[n].includes(t[n])||r.ROUTER_PARAMS.LISTENER[n].push(t[n])})}function q(){var t;const r=H();let n=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||D.LISTENER;return n||(n={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=n:D.LISTENER=n),new Proxy(n,{get(i,s){const l=i[s];return Array.isArray(l)&&l.length>0?(...d)=>{l.forEach(p=>{if(typeof p=="function")try{p(...d)}catch{}})}:l==null?()=>{}:typeof l=="function"?l:()=>{}}})}function nr(t,r){const n=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[i,s]of Object.entries(r))if(i.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===n)return s;return null}function ft(t){const{basePath:r=".",devExtensions:n=[".tsx",".ts",".jsx",".js"],prodExtension:i=".js"}=t||{};return s=>{const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function Er(t){const{basePath:r=".",modules:n,pages:i}=t||{};return s=>{if(n){const d=nr(s,n);if(d)return d()}if(i){const d=nr(s,i);if(d)return d()}const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function ar(t=".",r,n){return r||n?Er({basePath:t,modules:r,pages:n}):ft({basePath:t})}function jr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=re.deCode(r),!r)return!1;J({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else J({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?A().page:A().auth,module:A().module});return!0}function ir(){return A().page}function sr(){return A().module||""}function dt(){return A().tab}function lr(){return A().id}function Rr(t){let r=s=>(J({page:s}),s);const[n,i]=w.useState(ir()||t&&r(t)||A().page);return w.useEffect(()=>{const s=l=>{i(l)};return ie({page:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.page){const f=p.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(f)){const m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}function Ar(t,r=!0,n={}){J({page:t,...n}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&q().page(t)}function Or(t){return A().page===t}function $r(){return A().prev}function Pr(t,r){const[n,i]=w.useState(sr()||t||A().module);return w.useEffect(()=>(ie({module:i}),()=>{const s=q();s.module===i&&delete s.module}),[]),n}function Cr(t,r=!0){J({module:t}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&q().module(t)}function Tr(t){return A().module===t}function Mr(t,r){if(typeof t!="function"){const[n,i]=w.useState(!r),[s,l]=w.useState(t||dt());return ie({tabs:l}),r&&w.useEffect(()=>{i(!0)},[]),[s,n]}else ie({tabs:t})}function Nr(t){let r=s=>(J({tab:s}),s);const[n,i]=w.useState(dt()||t&&r(t)||A().tab);return w.useEffect(()=>{const s=l=>{i(l)};return ie({tabs:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.tabs){const f=p.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(f)){const m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}async function Br(t,r=!0){J({tab:t}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&(q().tabs&&q().tabs(t))}function Ir(t){return A().tab===t}function zr(t){if(typeof t!="function"){const[r,n]=w.useState(t||lr());return w.useEffect(()=>{const i=s=>{n(s)};return ie({id:i}),()=>{const s=q();s.id===i&&delete s.id}},[]),r}else w.useEffect(()=>(ie({id:t}),()=>{var r,n;const i=H();if((n=(r=i.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&n.id){const s=i.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(s)){const l=s.indexOf(t);l>-1&&s.splice(l,1)}}}),[t])}function Lr(t){}async function Dr(t,r=!0){J({id:t}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&q().id(t)}function Ur(t){return Number(A().id)===t}async function Fr(t){var r,n,i,s,l,d,p,f;const{page:m,module:_,tab:x,id:k}=t;m!==void 0&&(K.page=m),_!==void 0&&(K.module=_),x!==void 0&&(K.tab=x),k!==void 0&&(K.id=k),J({...K}),k!==void 0&&((n=(r=q()).id)==null||n.call(r,k)),x!==void 0&&((s=(i=q()).tabs)==null||s.call(i,x)),_!==void 0&&((d=(l=q()).module)==null||d.call(l,_)),m!==void 0&&((f=(p=q()).page)==null||f.call(p,m)),sessionStorage.setItem(A().STORAGE,re.enCode(A()))}const ve={Reset(){K.id=0,K.tab="",K.page=A().page,K.module=A().module},Default({module:t=A().module,page:r=A().page,auth:n=A().auth,debug:i=A().debug,dir:s=A().dir||".",importModules:l,modules:d,pages:p,glob:f}){let m=l,_=d,x=p;f?(_=typeof d=="object"?d:f,x=typeof p=="object"?p:f):(_=_||f,x=x||f),!m&&(_||x)?!f&&(typeof _=="string"||typeof x=="string")?m=ft({basePath:s}):m=ar(s,_,x):m||(m=ft({basePath:s})),J({page:r,module:t,auth:n,debug:i,dir:s,importModules:m}),jr()},createImportModules:ar,getImportModules:()=>A().importModules,usePage:Rr,setPage:Ar,getPage:ir,isPage:Or,getBack:$r,useModule:Pr,setModule:Cr,getModule:sr,isModule:Tr,useTabs:Mr,useTab:Nr,setTabs:Br,getTabs:dt,isTabs:Ir,useId:zr,subId:Lr,setId:Dr,getId:lr,isId:Ur,navigate:Fr},se={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let at={};function Wr(){const[t,r]=w.useState([]);return at.set=n=>{r([...t,n])},at.del=n=>{t.forEach((i,s)=>{i.key===n&&t.splice(s,1)}),r(t)},t.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:se.n,children:t.map(n=>n.item)})}function qr(t){let r=new Date().getTime();t.key=r,at.set({item:c.jsx(Yr,{data:t},r),key:r})}function Yr(t){const r=t.data;let[n]=w.useState("show"),[i,s]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){s(!0),at.del(r.key)},5e3)},[r.key]);let l;switch(r.type){case"error":l=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":l=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":l=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:l="icon fa fa-exclamation-circle";break}const d={error:se.e,success:se.s,warning:se.w};return c.jsx(c.Fragment,{children:i?c.jsx(c.Fragment,{}):c.jsxs("div",{className:se.i+d[r.type]+` ${r.thema!==void 0?se.h:""}`,"data-status":n,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:l}),c.jsx("span",{className:se.t,children:r.text})]})})}let le={Send:qr,Init:Wr};const oe={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},ne={is:!1,MainButton:{},BackButton:{}};let M={};M.dark={"--tg-color-scheme":"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"},M.light={"--tg-color-scheme":"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"},M.users={"--tg-color-scheme":"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 Vr=()=>{if(location.hostname==="localhost"){let[t,r]=w.useState(!1),[n,i]=w.useState(!1),[s,l]=w.useState("dark"),[d,p]=w.useState(!1),[f,m]=w.useState(!1);ne.is=!0,ne.MainButton.set=r,ne.BackButton.set=i,w.useEffect(()=>{var k;M[s]["--tg-theme-bg-color-alpha"]=M[s]["--tg-theme-bg-color"]+"b3",M[s]["--tg-theme-secondary-bg-color-alpha"]=M[s]["--tg-theme-secondary-bg-color"]+"d3",M[s]["--tg-theme-bg-color-alpha-25"]=M[s]["--tg-theme-bg-color"]+"40",M[s]["--tg-theme-secondary-bg-color-alpha-25"]=M[s]["--tg-theme-secondary-bg-color"]+"40";for(let R in M[s])document.documentElement.style.setProperty(R,M[s][R]);((k=X.safeAreaInset)==null?void 0:k.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let _=k=>{for(let R in M[k])document.documentElement.style.setProperty(R,M[k][R]),document.documentElement.setAttribute("data-color-scheme",k);l(k),p(!1)},x=()=>{p(!1),m(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.d,children:[n===!1?c.jsx("div",{className:oe.b,children:"Отмена"}):c.jsx("div",{onClick:()=>{var k;n.page===void 0?(k=n.callback)==null||k.call(n):ve.setPage(n.page)},className:oe.b,children:"Назад"}),c.jsx("div",{className:oe.o,onClick:()=>p(!d),children:"Меню"})]}),c.jsx(le.Init,{}),t&&c.jsx("div",{className:oe.m,children:c.jsx("button",{onClick:()=>{t.page&&ve.setPage(t.page),t.callback&&t.callback()},children:t.text})}),d?c.jsxs("div",{className:oe.t,children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:x,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:()=>_("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>_("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>p(!d),children:"Closed"})})]})]}):"",f?c.jsx(Hr,{setAuthorization:m}):""]})}else return w.useEffect(()=>{var t;document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",X.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",X.themeParams.bg_color+"b3"),((t=X.safeAreaInset)==null?void 0:t.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(le.Init,{})})},Hr=({setAuthorization:t})=>{let r={},n=()=>{localStorage.setItem("auth",r)};return c.jsx("div",{className:oe.a,children:c.jsxs("div",{className:oe.v,children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:n,children:" Сохранить "})]})})},cr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Jr=({className:t,children:r,isScroll:n=!0})=>c.jsx("div",{className:[cr.p,n&&cr.s,t].filter(i=>i!==void 0).join(" "),children:r}),Kr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>c.jsx("div",{className:[Kr.l,r].filter(n=>n!==void 0).join(" "),children:t}),ce={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},Xr=({items:t})=>{const r=i=>{ve.setPage(i)},n=i=>{X.openTelegramLink(i)};return c.jsx("div",{className:ce.m,children:t.map(i=>c.jsx("div",{className:ce.g,children:i.items.map((s,l)=>c.jsxs("div",{className:ce.i,onClick:()=>{s.link&&n(s.link),s.page&&r(s.page),s.callback&&s.callback()},children:[c.jsxs("div",{className:ce.c,children:[c.jsx("span",{className:ce.l,style:{background:s.color},children:s.icon}),s.title,s.count&&c.jsx("span",{className:ce.n,children:s.count})]}),c.jsx("span",{className:ce.a,children:"›"})]},l))},i.id))})},G={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"},it={};function Zr({children:t,icon:r,iconBadge:n=0,title:i,className:s,view:l="list",position:d="left",name:p="default"}){const[f,m]=w.useState(!1),[_,x]=w.useState(null);w.useEffect(()=>{let R=document.querySelector(".p_sb");return R||(R=document.createElement("div"),R.className="_p_sb",document.body.appendChild(R)),x(R),it[p]=C=>m(C),()=>{R&&R.parentNode&&R.parentNode.removeChild(R)}},[]);const k=c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:G.o,onClick:()=>m(!1)}),c.jsxs("div",{className:ae(G.m,d==="left"?G.l:G.r,f&&G.x,s),children:[c.jsxs("div",{className:G.h,children:[i&&c.jsx("h3",{className:G.t,children:i}),c.jsxs("svg",{onClick:()=>m(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[c.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),c.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),c.jsx("div",{className:G.c,children:l==="list"?c.jsx("ul",{className:G.u,children:t}):t})]})]});return c.jsxs(c.Fragment,{children:[r&&c.jsx("div",{onClick:()=>m(!0),className:"bage","data-count":n,children:r}),_&&pr.createPortal(k,_)]})}const Qr=(t,r)=>{var n;(n=it[t])==null||n.call(it,r)};let $e=()=>{};const ur=({children:t,title:r,isOverlay:n=!0,footer:i=!0,className:s,onOpen:l})=>{const[d,p]=w.useState(!1);return $e=()=>{p(!0),setTimeout(()=>{var f;l==null||l(!1),(f=xe==null?void 0:xe.onClose)==null||f.call(xe)},300)},c.jsx("div",{className:`footer-menu-overlay ${n?"is-overlay":""} ${d?"closing":""} `,onClick:$e,children:c.jsxs("div",{className:`footer-menu-popup-book ${d?"closing":""} ${s||""} ${i?"footer":""}`,onClick:f=>f.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:r}),c.jsx("button",{className:"footer-menu-close-btn",onClick:$e,children:"✕"})]}),t]})})},ye={h:"_h_xfork_1",r:"_r_xfork_53",c:"_c_xfork_56",x:"_x_xfork_59",b:"_b_xfork_63",a:"_a_xfork_99",draw:"_draw_xfork_1"},eo={b:"_b_r6m8n_1"},to=({className:t,value:r})=>c.jsx("div",{className:[eo.b,t].filter(n=>n!==void 0).join(" "),children:r}),xe=[],fr=(t,r)=>t.findIndex(n=>(n==null?void 0:n.page)===r),ro=({actions:t,children:r,className:n,actual:i,toHide:s=!1,page:l,style:d="default",onPageChange:p,direction:f="row"})=>{const[m,_]=w.useState(null),[x,k]=w.useState(l?fr(t||[],l):0);xe.onClose=()=>{_(null),k(l?fr(t||[],l):0)},w.useEffect(()=>{if(!s)return;const Se=document.querySelectorAll("[contenteditable]"),Ee=()=>{const I=document.querySelector("footer");I&&I.classList.remove(ye.x)},je=()=>{const I=document.querySelector("footer");I&&I.classList.add(ye.x)};return Se.forEach(I=>{I.addEventListener("focus",je,!0),I.addEventListener("blur",Ee,!0)}),()=>{Se.forEach(I=>{I.removeEventListener("focus",je,!0),I.removeEventListener("blur",Ee,!0)})}},[]);const[R,C]=w.useState(!1),ke=()=>{C(!0)},we=()=>{C(!1)},B=()=>{C(!1)},j={};return d==="liquid-glass"&&(j.onMouseDown=ke,j.onMouseUp=we,j.onMouseLeave=B,j.onTouchStart=ke,j.onTouchEnd=we),c.jsxs(c.Fragment,{children:[m,c.jsxs("footer",{"data-style":d,"data-scale":R?"true":"false",...j,className:ae(ye.h,ye[f==="row"?"r":"c"],n),children:[r,t&&c.jsx(oo,{actions:t,activeIndex:x,setActiveIndex:k,onPageChange:p,setComponent:_,actual:i})]})]})},oo=({actions:t,activeIndex:r,setActiveIndex:n,onPageChange:i,setComponent:s,actual:l})=>c.jsxs("div",{className:ye.b,children:[t.map((d,p)=>c.jsxs("div",{"data-active":r===p?"true":"false",onClick:()=>{d.page&&(n(p),i==null||i(d.page)),d.onClick&&d.onClick(()=>n(p)),d.component&&(r===p?$e():(s(d.component),n(p)))},children:[d.icon,d.title&&c.jsx("span",{children:d.title}),d.badge&&c.jsx(to,{value:d.badge})]},p)),l&&c.jsx("div",{className:ye.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]}),st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},pt={};function no({children:t,name:r,onClose:n,isOpen:i,isScroll:s=!0,nextBackButton:l}){const[d,p]=w.useState(!1);return w.useEffect(()=>{if(!i)return;const f=l===void 0?dr().pop():l,m=()=>{p(!1),setTimeout(()=>{ht(f||!1),n==null||n()},300)};pt[r]={onClose:m,onOpen:()=>{p(!0)}},ht({callback:m});const _=setTimeout(()=>{p(!0)},10);return()=>{clearTimeout(_)}},[i]),i?c.jsxs("div",{className:ae(st.w,d&&st.v,s&&st.s),children:[c.jsx("div",{className:st.n}),t]}):""}const ao=(t,r)=>{var n,i;r?(n=pt[t])==null||n.onOpen():(i=pt[t])==null||i.onClose()},lt={s:"_s_l7xl0_3",n:"_n_l7xl0_14",b:"_b_l7xl0_19",f:"_f_l7xl0_29"};function io({className:t,children:r,onScrollEnd:n,offset:i=100,isLoading:s,fullscreen:l=!1,isScrollBar:d=!1}){const[p,f]=w.useState(s||!1);w.useEffect(()=>{f(s||!1)},[s]);let m={onScroll:_=>{const{scrollTop:x,scrollHeight:k,clientHeight:R}=_.currentTarget;x+R>=k-i&&!p&&(f(!0),n==null||n())}};return c.jsxs(c.Fragment,{children:[!d&&c.jsx("div",{className:lt.b}),c.jsx("div",{...m,className:ae(lt.s,!d&&lt.n,l&&lt.f,t),children:r})]})}const gt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function so({children:t,className:r,position:n="center",title:i}){let s="";return n==="left"?s=gt.l:n==="right"&&(s=gt.r),c.jsxs("div",{className:ae(gt.a,s,r),children:[t,i&&c.jsx("b",{children:i})]})}const N={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.state.length!==1&&N.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.listen.push(()=>{var n;let r=N.state.pop();N.prev=ve.getPage(),r.page!==void 0?ve.setPage(r.page):(n=r.callback)==null||n.call(r)}),X.BackButton.onClick(N.listen[0]))}},ae=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var n;return((n=t.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:t.WebApp.initDataUnsafe},t.Location=n=>{if(ne.is)return n({latitude:55.752555,longitude:37.623123});let i=()=>{t.WebApp.LocationManager.getLocation(async s=>{if(!s){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}n(s)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{i()}):i()},t.Notice={Send:(n,i,s)=>{var l,d;i!==void 0?(le.Send({type:n,text:i,thema:s}),(l=t.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(le.Send(n),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(n.type))},Error:n=>{var i;le.Send({type:"error",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:n=>{var i;le.Send({type:"success",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:n=>{var i;le.Send({type:"warning",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ro,t.BottomSheet=ur,t.toggleBottomSheet=$e,t.SafeArea=Jr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=no,t.AppBar=so,t.SideBarController=Qr,t.SidePanelController=ao,t.Scroll=io,t.Modal=ut,t.Menu=Xr,t.MainButton={callback:[],set:n=>{ne.is?ne.MainButton.set(n):(t.WebApp.MainButton.callback.forEach(i=>{t.WebApp.MainButton.offClick(i)}),t.WebApp.MainButton.callback=[],typeof n=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=n.text,n.color&&(t.WebApp.MainButton.color=n.color),n.textColor&&(t.WebApp.MainButton.textColor=n.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,t.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ve.setPage(n.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{N.prev&&(0,t.BackButton)(N.prev)},t.BackButtonState=()=>N.state,t.BackButton=n=>{ne.is?ne.BackButton.set(n):(N.state.push(n),N.router(n))}})(v.default||(v.default={}));const lo=v.default.TabBar,co=ur,ht=v.default.BackButton,uo=v.default.BackButtonPrev,dr=v.default.BackButtonState,fo=v.default.Notice,po=v.default.SafeArea,go=v.default.Loading,ho=v.default.Menu,_o=v.default.SidePanel,mo=v.default.Scroll,bo=v.default.AppBar,vo=v.default.Sidebar,yo=v.default.Location,xo=v.default.SidePanelController,ko=v.default.SideBarController,{Header:wo,toggleBottomSheet:So,Modal:Eo,MainButton:jo,WebApp:X,getUser:Ro}=v.default;v.AppBar=bo,v.BackButton=ht,v.BackButtonPrev=uo,v.BackButtonState=dr,v.BottomSheet=co,v.Header=wo,v.Loading=go,v.Location=yo,v.MainButton=jo,v.Menu=ho,v.Modal=Eo,v.Notice=fo,v.SafeArea=po,v.Scroll=mo,v.SideBarController=ko,v.SidePanel=_o,v.SidePanelController=xo,v.Sidebar=vo,v.TabBar=lo,v.WebApp=X,v.clsx=ae,v.getUser=Ro,v.toggleBottomSheet=So,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,me,L,Yt,L),et[L+me]=!0}}return e===i?Dt(E):Lt(E),E}}function Ut(e,o,a){return tt(e,o,a,!0)}function Ft(e,o,a){return tt(e,o,a,!1)}var Wt=Ft,qt=Ut;nt.Fragment=i,nt.jsx=Wt,nt.jsxs=qt}()),nt}process.env.NODE_ENV==="production"?kr():wr();const Sr="0.0.46",or={version:Sr},K={},D={module:"",v:or.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,dir:".",fileExtension:".tsx",prev:{page:"",module:"",tab:"",id:0}};function H(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}H().elcrm||(H().elcrm={}),Object.assign(H().elcrm,{router:or.version});function J(t){var r,n,i,s;const l=H();if(l.ROUTER_PARAMS){t.debug||l.ROUTER_PARAMS.debug;const d={page:(r=l.ROUTER_PARAMS)==null?void 0:r.page,module:(n=l.ROUTER_PARAMS)==null?void 0:n.module,tab:(i=l.ROUTER_PARAMS)==null?void 0:i.tab,id:(s=l.ROUTER_PARAMS)==null?void 0:s.id};l.ROUTER_PARAMS={...l.ROUTER_PARAMS,...t,prev:d}}else{t.debug||D.debug;const d={page:D==null?void 0:D.page,module:D==null?void 0:D.module,tab:D==null?void 0:D.tab,id:D==null?void 0:D.id};l.ROUTER_PARAMS={...D,...t,prev:d}}}function A(){return H().ROUTER_PARAMS||D}function ie(t){const r=H();r.ROUTER_PARAMS||(r.ROUTER_PARAMS={...D}),r.ROUTER_PARAMS.LISTENER||(r.ROUTER_PARAMS.LISTENER={}),Object.keys(t).forEach(n=>{r.ROUTER_PARAMS.LISTENER[n]||(r.ROUTER_PARAMS.LISTENER[n]=[]),Array.isArray(r.ROUTER_PARAMS.LISTENER[n])||(r.ROUTER_PARAMS.LISTENER[n]=[r.ROUTER_PARAMS.LISTENER[n]]),r.ROUTER_PARAMS.LISTENER[n].includes(t[n])||r.ROUTER_PARAMS.LISTENER[n].push(t[n])})}function q(){var t;const r=H();let n=((t=r.ROUTER_PARAMS)==null?void 0:t.LISTENER)||D.LISTENER;return n||(n={},r.ROUTER_PARAMS?r.ROUTER_PARAMS.LISTENER=n:D.LISTENER=n),new Proxy(n,{get(i,s){const l=i[s];return Array.isArray(l)&&l.length>0?(...d)=>{l.forEach(p=>{if(typeof p=="function")try{p(...d)}catch{}})}:l==null?()=>{}:typeof l=="function"?l:()=>{}}})}function nr(t,r){const n=t.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"");for(const[i,s]of Object.entries(r))if(i.replace(/^\.\//,"").replace(/\.(tsx|ts|jsx|js)$/,"")===n)return s;return null}function dt(t){const{basePath:r=".",devExtensions:n=[".tsx",".ts",".jsx",".js"],prodExtension:i=".js"}=t||{};return s=>{const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function Er(t){const{basePath:r=".",modules:n,pages:i}=t||{};return s=>{if(n){const d=nr(s,n);if(d)return d()}if(i){const d=nr(s,i);if(d)return d()}const l=s.replace(/\.(tsx|ts|jsx|js)$/,"");if(r===".")return import(`./${l.replace(/^\.\//,"").replace(/\/+/g,"/")}.js`);{const d=r.replace(/^\.\//,"").replace(/\/+$/,""),p=l.replace(/^\.\//,"").replace(/\/+/g,"/");return import(`./${d}/${p}.js`)}}}function ar(t=".",r,n){return r||n?Er({basePath:t,modules:r,pages:n}):dt({basePath:t})}function jr(){var t;let r=sessionStorage.getItem("f");if(r){if(r=re.deCode(r),!r)return!1;J({id:r.id,tab:r.tab,page:r.page,module:r.module,time:r.time,payment:{active:!0},module_admin:r.module_admin})}else J({id:0,tab:"",page:(t=localStorage.getItem("d"))!=null&&t.length?A().page:A().auth,module:A().module});return!0}function ir(){return A().page}function sr(){return A().module||""}function pt(){return A().tab}function lr(){return A().id}function Rr(t){let r=s=>(J({page:s}),s);const[n,i]=w.useState(ir()||t&&r(t)||A().page);return w.useEffect(()=>{const s=l=>{i(l)};return ie({page:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.page){const f=p.ROUTER_PARAMS.LISTENER.page;if(Array.isArray(f)){const m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}function Ar(t,r=!0,n={}){J({page:t,...n}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&q().page(t)}function $r(t){return A().page===t}function Or(){return A().prev}function Pr(t,r){const[n,i]=w.useState(sr()||t||A().module);return w.useEffect(()=>(ie({module:i}),()=>{const s=q();s.module===i&&delete s.module}),[]),n}function Cr(t,r=!0){J({module:t}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&q().module(t)}function Tr(t){return A().module===t}function Mr(t,r){if(typeof t!="function"){const[n,i]=w.useState(!r),[s,l]=w.useState(t||pt());return ie({tabs:l}),r&&w.useEffect(()=>{i(!0)},[]),[s,n]}else ie({tabs:t})}function Nr(t){let r=s=>(J({tab:s}),s);const[n,i]=w.useState(pt()||t&&r(t)||A().tab);return w.useEffect(()=>{const s=l=>{i(l)};return ie({tabs:s}),()=>{var l,d;const p=H();if((d=(l=p.ROUTER_PARAMS)==null?void 0:l.LISTENER)!=null&&d.tabs){const f=p.ROUTER_PARAMS.LISTENER.tabs;if(Array.isArray(f)){const m=f.indexOf(s);m>-1&&f.splice(m,1)}}}},[]),n}async function Br(t,r=!0){J({tab:t}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&(q().tabs&&q().tabs(t))}function Ir(t){return A().tab===t}function zr(t){if(typeof t!="function"){const[r,n]=w.useState(t||lr());return w.useEffect(()=>{const i=s=>{n(s)};return ie({id:i}),()=>{const s=q();s.id===i&&delete s.id}},[]),r}else w.useEffect(()=>(ie({id:t}),()=>{var r,n;const i=H();if((n=(r=i.ROUTER_PARAMS)==null?void 0:r.LISTENER)!=null&&n.id){const s=i.ROUTER_PARAMS.LISTENER.id;if(Array.isArray(s)){const l=s.indexOf(t);l>-1&&s.splice(l,1)}}}),[t])}function Lr(t){}async function Dr(t,r=!0){J({id:t}),sessionStorage.setItem(A().STORAGE,re.enCode(A())),r&&q().id(t)}function Ur(t){return Number(A().id)===t}async function Fr(t){var r,n,i,s,l,d,p,f;const{page:m,module:h,tab:x,id:k}=t;m!==void 0&&(K.page=m),h!==void 0&&(K.module=h),x!==void 0&&(K.tab=x),k!==void 0&&(K.id=k),J({...K}),k!==void 0&&((n=(r=q()).id)==null||n.call(r,k)),x!==void 0&&((s=(i=q()).tabs)==null||s.call(i,x)),h!==void 0&&((d=(l=q()).module)==null||d.call(l,h)),m!==void 0&&((f=(p=q()).page)==null||f.call(p,m)),sessionStorage.setItem(A().STORAGE,re.enCode(A()))}const ve={Reset(){K.id=0,K.tab="",K.page=A().page,K.module=A().module},Default({module:t=A().module,page:r=A().page,auth:n=A().auth,debug:i=A().debug,dir:s=A().dir||".",importModules:l,modules:d,pages:p,glob:f}){let m=l,h=d,x=p;f?(h=typeof d=="object"?d:f,x=typeof p=="object"?p:f):(h=h||f,x=x||f),!m&&(h||x)?!f&&(typeof h=="string"||typeof x=="string")?m=dt({basePath:s}):m=ar(s,h,x):m||(m=dt({basePath:s})),J({page:r,module:t,auth:n,debug:i,dir:s,importModules:m}),jr()},createImportModules:ar,getImportModules:()=>A().importModules,usePage:Rr,setPage:Ar,getPage:ir,isPage:$r,getBack:Or,useModule:Pr,setModule:Cr,getModule:sr,isModule:Tr,useTabs:Mr,useTab:Nr,setTabs:Br,getTabs:pt,isTabs:Ir,useId:zr,subId:Lr,setId:Dr,getId:lr,isId:Ur,navigate:Fr},se={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let at={};function Wr(){const[t,r]=w.useState([]);return at.set=n=>{r([...t,n])},at.del=n=>{t.forEach((i,s)=>{i.key===n&&t.splice(s,1)}),r(t)},t.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:se.n,children:t.map(n=>n.item)})}function qr(t){let r=new Date().getTime();t.key=r,at.set({item:c.jsx(Yr,{data:t},r),key:r})}function Yr(t){const r=t.data;let[n]=w.useState("show"),[i,s]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){s(!0),at.del(r.key)},5e3)},[r.key]);let l;switch(r.type){case"error":l=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":l=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":l=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:l="icon fa fa-exclamation-circle";break}const d={error:se.e,success:se.s,warning:se.w};return c.jsx(c.Fragment,{children:i?c.jsx(c.Fragment,{}):c.jsxs("div",{className:se.i+d[r.type]+` ${r.thema!==void 0?se.h:""}`,"data-status":n,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:l}),c.jsx("span",{className:se.t,children:r.text})]})})}let le={Send:qr,Init:Wr};const oe={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},ne={is:!1,MainButton:{},BackButton:{}};let M={};M.dark={"--tg-color-scheme":"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"},M.light={"--tg-color-scheme":"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"},M.users={"--tg-color-scheme":"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 Vr=()=>{if(location.hostname==="localhost"){let[t,r]=w.useState(!1),[n,i]=w.useState(!1),[s,l]=w.useState("dark"),[d,p]=w.useState(!1),[f,m]=w.useState(!1);ne.is=!0,ne.MainButton.set=r,ne.BackButton.set=i,w.useEffect(()=>{var k;M[s]["--tg-theme-bg-color-alpha"]=M[s]["--tg-theme-bg-color"]+"b3",M[s]["--tg-theme-secondary-bg-color-alpha"]=M[s]["--tg-theme-secondary-bg-color"]+"d3",M[s]["--tg-theme-bg-color-alpha-25"]=M[s]["--tg-theme-bg-color"]+"40",M[s]["--tg-theme-secondary-bg-color-alpha-25"]=M[s]["--tg-theme-secondary-bg-color"]+"40";for(let R in M[s])document.documentElement.style.setProperty(R,M[s][R]);((k=X.safeAreaInset)==null?void 0:k.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=k=>{for(let R in M[k])document.documentElement.style.setProperty(R,M[k][R]),document.documentElement.setAttribute("data-color-scheme",k);l(k),p(!1)},x=()=>{p(!1),m(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:oe.d,children:[n===!1?c.jsx("div",{className:oe.b,children:"Отмена"}):c.jsx("div",{onClick:()=>{var k;n.page===void 0?(k=n.callback)==null||k.call(n):ve.setPage(n.page)},className:oe.b,children:"Назад"}),c.jsx("div",{className:oe.o,onClick:()=>p(!d),children:"Меню"})]}),c.jsx(le.Init,{}),t&&c.jsx("div",{className:oe.m,children:c.jsx("button",{onClick:()=>{t.page&&ve.setPage(t.page),t.callback&&t.callback()},children:t.text})}),d?c.jsxs("div",{className:oe.t,children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:x,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(!d),children:"Closed"})})]})]}):"",f?c.jsx(Hr,{setAuthorization:m}):""]})}else return w.useEffect(()=>{var t;document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",X.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",X.themeParams.bg_color+"b3"),((t=X.safeAreaInset)==null?void 0:t.bottom)===0?document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px"):X.safeAreaInset||document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(le.Init,{})})},Hr=({setAuthorization:t})=>{let r={},n=()=>{localStorage.setItem("auth",r)};return c.jsx("div",{className:oe.a,children:c.jsxs("div",{className:oe.v,children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:n,children:" Сохранить "})]})})},cr={p:"_p_1axqy_1",s:"_s_1axqy_17"},Jr=({className:t,children:r,isScroll:n=!0})=>c.jsx("div",{className:[cr.p,n&&cr.s,t].filter(i=>i!==void 0).join(" "),children:r}),Kr={l:"_l_gfyud_1"},Gr=({children:t,className:r})=>c.jsx("div",{className:[Kr.l,r].filter(n=>n!==void 0).join(" "),children:t}),ce={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},Xr=({items:t})=>{const r=i=>{ve.setPage(i)},n=i=>{X.openTelegramLink(i)};return c.jsx("div",{className:ce.m,children:t.map(i=>c.jsx("div",{className:ce.g,children:i.items.map((s,l)=>c.jsxs("div",{className:ce.i,onClick:()=>{s.link&&n(s.link),s.page&&r(s.page),s.callback&&s.callback()},children:[c.jsxs("div",{className:ce.c,children:[c.jsx("span",{className:ce.l,style:{background:s.color},children:s.icon}),s.title,s.count&&c.jsx("span",{className:ce.n,children:s.count})]}),c.jsx("span",{className:ce.a,children:"›"})]},l))},i.id))})},G={o:"_o_8ho2f_3",m:"_m_8ho2f_14",l:"_l_8ho2f_28",r:"_r_8ho2f_33",x:"_x_8ho2f_38",h:"_h_8ho2f_42",c:"_c_8ho2f_57",u:"_u_8ho2f_72"},it={};function Zr({children:t,icon:r,iconBadge:n=0,title:i,className:s,view:l="list",position:d="left",name:p="default"}){const[f,m]=w.useState(!1),[h,x]=w.useState(null);w.useEffect(()=>{let R=document.querySelector(".p_sb");return R||(R=document.createElement("div"),R.className="_p_sb",document.body.appendChild(R)),x(R),it[p]=C=>m(C),()=>{R&&R.parentNode&&R.parentNode.removeChild(R)}},[]);const k=c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:G.o,onClick:()=>m(!1)}),c.jsxs("div",{className:ae(G.m,d==="left"?G.l:G.r,f&&G.x,s),children:[c.jsxs("div",{className:G.h,children:[i&&c.jsx("h3",{className:G.t,children:i}),c.jsxs("svg",{onClick:()=>m(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[c.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),c.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),c.jsx("div",{className:G.c,children:l==="list"?c.jsx("ul",{className:G.u,children:t}):t})]})]});return c.jsxs(c.Fragment,{children:[r&&c.jsx("div",{onClick:()=>m(!0),className:"bage","data-count":n,children:r}),h&&pr.createPortal(k,h)]})}const Qr=(t,r)=>{var n;(n=it[t])==null||n.call(it,r)};let Oe=()=>{};const ur=({children:t,title:r,isOverlay:n=!0,footer:i=!0,className:s,onOpen:l})=>{const[d,p]=w.useState(!1);return Oe=()=>{p(!0),setTimeout(()=>{var f;l==null||l(!1),(f=xe==null?void 0:xe.onClose)==null||f.call(xe)},300)},c.jsx("div",{className:`footer-menu-overlay ${n?"is-overlay":""} ${d?"closing":""} `,onClick:Oe,children:c.jsxs("div",{className:`footer-menu-popup-book ${d?"closing":""} ${s||""} ${i?"footer":""}`,onClick:f=>f.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:r}),c.jsx("button",{className:"footer-menu-close-btn",onClick:Oe,children:"✕"})]}),t]})})},ye={h:"_h_xfork_1",r:"_r_xfork_53",c:"_c_xfork_56",x:"_x_xfork_59",b:"_b_xfork_63",a:"_a_xfork_99",draw:"_draw_xfork_1"},eo={b:"_b_r6m8n_1"},to=({className:t,value:r})=>c.jsx("div",{className:[eo.b,t].filter(n=>n!==void 0).join(" "),children:r}),xe=[],fr=(t,r)=>t.findIndex(n=>(n==null?void 0:n.page)===r),ro=({actions:t,children:r,className:n,actual:i,toHide:s=!1,page:l,style:d="default",onPageChange:p,direction:f="row"})=>{const[m,h]=w.useState(null),[x,k]=w.useState(l?fr(t||[],l):0);xe.onClose=()=>{h(null),k(l?fr(t||[],l):0)},w.useEffect(()=>{if(!s)return;const Se=document.querySelectorAll("[contenteditable]"),Ee=()=>{const I=document.querySelector("footer");I&&I.classList.remove(ye.x)},je=()=>{const I=document.querySelector("footer");I&&I.classList.add(ye.x)};return Se.forEach(I=>{I.addEventListener("focus",je,!0),I.addEventListener("blur",Ee,!0)}),()=>{Se.forEach(I=>{I.removeEventListener("focus",je,!0),I.removeEventListener("blur",Ee,!0)})}},[]);const[R,C]=w.useState(!1),ke=()=>{C(!0)},we=()=>{C(!1)},B=()=>{C(!1)},j={};return d==="liquid-glass"&&(j.onMouseDown=ke,j.onMouseUp=we,j.onMouseLeave=B,j.onTouchStart=ke,j.onTouchEnd=we),c.jsxs(c.Fragment,{children:[m,c.jsxs("footer",{"data-style":d,"data-scale":R?"true":"false",...j,className:ae(ye.h,ye[f==="row"?"r":"c"],n),children:[r,t&&c.jsx(oo,{actions:t,activeIndex:x,setActiveIndex:k,onPageChange:p,setComponent:h,actual:i})]})]})},oo=({actions:t,activeIndex:r,setActiveIndex:n,onPageChange:i,setComponent:s,actual:l})=>c.jsxs("div",{className:ye.b,children:[t.map((d,p)=>c.jsxs("div",{"data-active":r===p?"true":"false",onClick:()=>{d.page&&(n(p),i==null||i(d.page)),d.onClick&&d.onClick(()=>n(p)),d.component&&(r===p?Oe():(s(d.component),n(p)))},children:[d.icon,d.title&&c.jsx("span",{children:d.title}),d.badge&&c.jsx(to,{value:d.badge})]},p)),l&&c.jsx("div",{className:ye.a,style:{"--count-options":t.length,"--tab-bar-actual-index":r}})]}),st={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},gt={};function no({children:t,name:r,onClose:n,isOpen:i,isScroll:s=!0,nextBackButton:l}){const[d,p]=w.useState(!1);return w.useEffect(()=>{if(!i)return;const f=l===void 0?dr().pop():l,m=()=>{p(!1),setTimeout(()=>{_t(f||!1),n==null||n()},300)};gt[r]={onClose:m,onOpen:()=>{p(!0)}},_t({callback:m});const h=setTimeout(()=>{p(!0)},10);return()=>{clearTimeout(h)}},[i]),i?c.jsxs("div",{className:ae(st.w,d&&st.v,s&&st.s),children:[c.jsx("div",{className:st.n}),t]}):""}const ao=(t,r)=>{var n,i;r?(n=gt[t])==null||n.onOpen():(i=gt[t])==null||i.onClose()},lt={s:"_s_l7xl0_3",n:"_n_l7xl0_14",b:"_b_l7xl0_19",f:"_f_l7xl0_29"};function io({className:t,children:r,onScrollEnd:n,offset:i=100,isLoading:s,fullscreen:l=!1,isScrollBar:d=!1}){const[p,f]=w.useState(s||!1);w.useEffect(()=>{f(s||!1)},[s]);let m={onScroll:h=>{const{scrollTop:x,scrollHeight:k,clientHeight:R}=h.currentTarget;x+R>=k-i&&!p&&(f(!0),n==null||n())}};return c.jsxs(c.Fragment,{children:[!d&&c.jsx("div",{className:lt.b}),c.jsx("div",{...m,className:ae(lt.s,!d&&lt.n,l&&lt.f,t),children:r})]})}const ct={a:"_a_prp23_1",l:"_l_prp23_13",r:"_r_prp23_16",b:"_b_prp23_19"};function so({children:t,className:r,position:n="center",title:i}){let s="";return n==="left"?s=ct.l:n==="right"?s=ct.r:n==="between"&&(s=ct.b),c.jsxs("div",{className:ae(ct.a,s,r),children:[t,i&&c.jsx("b",{children:i})]})}const N={state:[!1],listen:[],prev:{},router:t=>{t===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.state.length!==1&&N.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(N.listen[0]),N.listen.shift(),N.listen.push(()=>{var n;let r=N.state.pop();N.prev=ve.getPage(),r.page!==void 0?ve.setPage(r.page):(n=r.callback)==null||n.call(r)}),X.BackButton.onClick(N.listen[0]))}},ae=(...t)=>t.filter(r=>r!==void 0&&r!==!1&&r!==null&&r!=="").join(" ");v.default=void 0,(t=>{var r;t.WebApp=typeof window<"u"&&((r=window.Telegram)==null?void 0:r.WebApp)||{},t.getUser=()=>{var n;return((n=t.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:t.WebApp.initDataUnsafe},t.Location=n=>{if(ne.is)return n({latitude:55.752555,longitude:37.623123});let i=()=>{t.WebApp.LocationManager.getLocation(async s=>{if(!s){t.WebApp.LocationManager.isAccessRequested||t.WebApp.LocationManager.openSettings();return}n(s)})};!t.WebApp.LocationManager||!t.WebApp.LocationManager.isInited?t.WebApp.LocationManager.init(()=>{i()}):i()},t.Notice={Send:(n,i,s)=>{var l,d;i!==void 0?(le.Send({type:n,text:i,thema:s}),(l=t.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(le.Send(n),(d=t.WebApp.HapticFeedback)==null||d.notificationOccurred(n.type))},Error:n=>{var i;le.Send({type:"error",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("error")},Success:n=>{var i;le.Send({type:"success",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("success")},Warning:n=>{var i;le.Send({type:"warning",text:n}),(i=t.WebApp.HapticFeedback)==null||i.notificationOccurred("warning")}},t.Header=Vr,t.TabBar=ro,t.BottomSheet=ur,t.toggleBottomSheet=Oe,t.SafeArea=Jr,t.Loading=Gr,t.Sidebar=Zr,t.SidePanel=no,t.AppBar=so,t.SideBarController=Qr,t.SidePanelController=ao,t.Scroll=io,t.Modal=ft,t.Menu=Xr,t.MainButton={callback:[],set:n=>{ne.is?ne.MainButton.set(n):(t.WebApp.MainButton.callback.forEach(i=>{t.WebApp.MainButton.offClick(i)}),t.WebApp.MainButton.callback=[],typeof n=="boolean"?t.WebApp.MainButton.isVisible=!1:(t.WebApp.MainButton.text=n.text,n.color&&(t.WebApp.MainButton.color=n.color),n.textColor&&(t.WebApp.MainButton.textColor=n.textColor),t.WebApp.MainButton.isVisible=!0,t.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,t.WebApp.MainButton.callback.push(()=>{var i;n.page===void 0?(i=n.callback)==null||i.call(n):ve.setPage(n.page)}),t.WebApp.MainButton.onClick(t.WebApp.MainButton.callback[0])))}},t.BackButtonPrev=()=>{N.prev&&(0,t.BackButton)(N.prev)},t.BackButtonState=()=>N.state,t.BackButton=n=>{ne.is?ne.BackButton.set(n):(N.state.push(n),N.router(n))}})(v.default||(v.default={}));const lo=v.default.TabBar,co=ur,_t=v.default.BackButton,uo=v.default.BackButtonPrev,dr=v.default.BackButtonState,fo=v.default.Notice,po=v.default.SafeArea,go=v.default.Loading,_o=v.default.Menu,ho=v.default.SidePanel,mo=v.default.Scroll,bo=v.default.AppBar,vo=v.default.Sidebar,yo=v.default.Location,xo=v.default.SidePanelController,ko=v.default.SideBarController,{Header:wo,toggleBottomSheet:So,Modal:Eo,MainButton:jo,WebApp:X,getUser:Ro}=v.default;v.AppBar=bo,v.BackButton=_t,v.BackButtonPrev=uo,v.BackButtonState=dr,v.BottomSheet=co,v.Header=wo,v.Loading=go,v.Location=yo,v.MainButton=jo,v.Menu=_o,v.Modal=Eo,v.Notice=fo,v.SafeArea=po,v.Scroll=mo,v.SideBarController=ko,v.SidePanel=ho,v.SidePanelController=xo,v.Sidebar=vo,v.TabBar=lo,v.WebApp=X,v.clsx=ae,v.getUser=Ro,v.toggleBottomSheet=So,Object.defineProperties(v,{__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.139",
3
+ "version": "0.0.140",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",