@elcrm/telegram 0.0.99 → 0.0.101

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(y,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):(y=typeof globalThis<"u"?globalThis:y||self,w((y.elCRM=y.elCRM||{},y.elCRM.components={}),y.React,y.ReactDOM))})(this,function(y,w,tr){"use strict";var Ft=document.createElement("style");Ft.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._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_1dahh_3{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:998;animation:_fadeIn_1dahh_1 .3s ease}._m_1dahh_14{position:fixed;top:var(--tg-safe-area-inset-top, 0px);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}._l_1dahh_28{left:0;transform:translate(-100%)}._r_1dahh_33{right:0;transform:translate(100%)}._x_1dahh_38{transform:translate(0)}._h_1dahh_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_1dahh_42 h3{margin:0;font-size:18px;font-weight:700;color:var(--tg-theme-text-color, #000000)}._c_1dahh_57{flex:1;overflow-y:auto}._c_1dahh_57:after{content:"";position:absolute;top:0;bottom:0;right:0;width:7px;height:100%;background:var(--tg-theme-bg-color)}._u_1dahh_72{display:flex;flex-direction:column;gap:10px;padding:16px}._u_1dahh_72 li{padding:12px 0;border-bottom:1px solid var(--tg-theme-secondary-bg-color, #e5e5e5);display:flex;align-items:center;gap:10px}._u_1dahh_72 li i{width:15px;height:15px;display:block;background:var(--tg-theme-button-color);border-radius:50%}._u_1dahh_72 li em{display:block;width:15px;height:15px;background:var(--tg-theme-secondary-bg-color);border-radius:50%}._u_1dahh_72 li:last-child{border-bottom:none}._u_1dahh_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_wowd5_1){--tg-footer-height: 60px}._h_wowd5_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);max-width:var(--tg-max-width, 500px);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_wowd5_1._row_wowd5_19{flex-direction:row}._h_wowd5_1._column_wowd5_22{flex-direction:column}._h_wowd5_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_wowd5_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_wowd5_1 ._badge_wowd5_35{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._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_6z0ml_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:var(--tg-viewport-height);max-height:var(--tg-viewport-height);padding-bottom:calc(var(--tg-footer-height) + 20px);margin:0 auto}._s_6z0ml_3._n_6z0ml_13:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}
2
- /*$vite$:1*/`,document.head.appendChild(Ft);var st={exports:{}},Oe={};/**
1
+ (function(y,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],S):(y=typeof globalThis<"u"?globalThis:y||self,S((y.elCRM=y.elCRM||{},y.elCRM.components={}),y.React,y.ReactDOM))})(this,function(y,S,rr){"use strict";var zt=document.createElement("style");zt.textContent=`@charset "UTF-8";*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}.debug{height:50px;font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;background:var(--tg-theme-header-bg-color);color:var(--tg-theme-text-color);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--tg-theme-bg-color);z-index:222;position:fixed;top:0;left:0;right:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color);padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px))}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}._p_12hh1_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));height:var(--tg-safe-area-height);max-height:var(--tg-safe-area-height)}._m_12hh1_10{margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));margin-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));margin-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));margin-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px))}._s_12hh1_17{overflow:scroll}._l_gfyud_1{padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px));padding-top:calc(var(--tg-safe-area-inset-top) + var(--tg-content-safe-area-inset-top, 0px));padding-left:calc(var(--tg-safe-area-inset-left) + var(--tg-content-safe-area-inset-left, 0px));padding-right:calc(var(--tg-safe-area-inset-right) + var(--tg-content-safe-area-inset-right, 0px));margin:auto;position:absolute;top:0;right:0;bottom:0;left:0}._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_1ffr7_1){--tg-footer-height: 60px}._h_1ffr7_1{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;gap:10px;background-color:var(--tg-theme-footer-bg);max-width:var(--tg-max-width, 500px);margin:0 auto;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}._h_1ffr7_1._row_1ffr7_20{flex-direction:row}._h_1ffr7_1._column_1ffr7_23{flex-direction:column}._h_1ffr7_1 div[data-active]{flex:1;text-align:center;padding:10px 0 0;position:relative}._h_1ffr7_1 div[data-active=true]{color:var(--tg-theme-button-color)}._h_1ffr7_1 ._badge_1ffr7_36{position:absolute;top:0;right:0;color:var(--tg-theme-button-text-color);border-radius:50%;transform:translate(50%,-50%)}._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_10r8v_3{overflow:scroll;width:100%;max-width:var(--tg-max-width);height:calc(100dvh - var(--tg-safe-area-inset-top) - var(--tg-content-safe-area-inset-top, 0px));max-height:var(--tg-viewport-height);padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px) + var(--tg-footer-height, 0px));margin:0 auto}._s_10r8v_3._n_10r8v_13:after{content:"";position:fixed;top:0;right:0;bottom:0;width:7px;z-index:2;background:var(--tg-theme-bg-color)}._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(zt);var st={exports:{}},Oe={};/**
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 Wt;function rr(){if(Wt)return Oe;Wt=1;var r=w,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(_,u,S){var g,m={},b=null,T=null;S!==void 0&&(b=""+S),u.key!==void 0&&(b=""+u.key),u.ref!==void 0&&(T=u.ref);for(g in u)l.call(u,g)&&!p.hasOwnProperty(g)&&(m[g]=u[g]);if(_&&_.defaultProps)for(g in u=_.defaultProps,u)m[g]===void 0&&(m[g]=u[g]);return{$$typeof:o,type:_,key:b,ref:T,props:m,_owner:c.current}}return Oe.Fragment=a,Oe.jsx=R,Oe.jsxs=R,Oe}var Ae={};/**
10
+ */var Wt;function or(){if(Wt)return Oe;Wt=1;var r=S,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(_,u,w){var h,m={},b=null,T=null;w!==void 0&&(b=""+w),u.key!==void 0&&(b=""+u.key),u.ref!==void 0&&(T=u.ref);for(h in u)c.call(u,h)&&!p.hasOwnProperty(h)&&(m[h]=u[h]);if(_&&_.defaultProps)for(h in u=_.defaultProps,u)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:o,type:_,key:b,ref:T,props:m,_owner:l.current}}return Oe.Fragment=a,Oe.jsx=R,Oe.jsxs=R,Oe}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 zt;function or(){return zt||(zt=1,process.env.NODE_ENV!=="production"&&function(){var r=w,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),M=Symbol.iterator,Te="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[Te];return typeof t=="function"?t:null}var z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];$e("error",e,n)}}function $e(e,t,n){{var i=z.ReactDebugCurrentFrame,h=i.getStackAddendum();h!==""&&(t+="%s",n=n.concat([h]));var v=n.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Be=!1,je=!1,Ne=!1,Ie=!1,x=!1,j;j=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||x||e===c||e===S||e===g||Ie||e===T||Be||je||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===R||e.$$typeof===_||e.$$typeof===u||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,n){var i=e.displayName;if(i)return i;var h=t.displayName||t.name||"";return h!==""?n+"("+h+")":n}function I(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 l:return"Fragment";case a:return"Portal";case p:return"Profiler";case c:return"StrictMode";case S:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return I(t)+".Consumer";case R:var n=e;return I(n._context)+".Provider";case u:return D(e,e.render,"ForwardRef");case m:var i=e.displayName||null;return i!==null?i:B(e.type)||"Memo";case b:{var h=e,v=h._payload,d=h._init;try{return B(d(v))}catch{return null}}}return null}var F=Object.assign,U=0,ue,X,Y,Q,ee,Me,De;function Fe(){}Fe.__reactDisabledLog=!0;function dt(){{if(U===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Me=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function pt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Me}),groupEnd:F({},e,{value:De})})}U<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=z.ReactCurrentDispatcher,ye;function ne(e,t,n){{if(ye===void 0)try{throw Error()}catch(h){var i=h.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
19
- `+ye+e}}var _e=!1,ae;{var ht=typeof WeakMap=="function"?WeakMap:Map;ae=new ht}function We(e,t){if(!e||_e)return"";{var n=ae.get(e);if(n!==void 0)return n}var i;_e=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=be.current,be.current=null,dt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var f=P.stack.split(`
20
- `),C=i.stack.split(`
18
+ */var Lt;function nr(){return Lt||(Lt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),M=Symbol.iterator,$e="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[$e];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Be("error",e,n)}}function Be(e,t,n){{var s=W.ReactDebugCurrentFrame,g=s.getStackAddendum();g!==""&&(t+="%s",n=n.concat([g]));var v=n.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Ne=!1,je=!1,Ie=!1,Me=!1,x=!1,j;j=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===w||e===h||Me||e===T||Ne||je||Ie||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===R||e.$$typeof===_||e.$$typeof===u||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,n){var s=e.displayName;if(s)return s;var g=t.displayName||t.name||"";return g!==""?n+"("+g+")":n}function I(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case w:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return I(t)+".Consumer";case R:var n=e;return I(n._context)+".Provider";case u:return D(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case b:{var g=e,v=g._payload,d=g._init;try{return B(d(v))}catch{return null}}}return null}var F=Object.assign,U=0,ue,X,Y,Q,ee,De,Fe;function ze(){}ze.__reactDisabledLog=!0;function pt(){{if(U===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,De=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ze,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function gt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:De}),groupEnd:F({},e,{value:Fe})})}U<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=W.ReactCurrentDispatcher,ye;function ne(e,t,n){{if(ye===void 0)try{throw Error()}catch(g){var s=g.stack.trim().match(/\n( *(at )?)/);ye=s&&s[1]||""}return`
19
+ `+ye+e}}var _e=!1,ae;{var ht=typeof WeakMap=="function"?WeakMap:Map;ae=new ht}function We(e,t){if(!e||_e)return"";{var n=ae.get(e);if(n!==void 0)return n}var s;_e=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=be.current,be.current=null,pt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){s=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){s=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){s=P}e()}}catch(P){if(P&&s&&typeof P.stack=="string"){for(var f=P.stack.split(`
20
+ `),C=s.stack.split(`
21
21
  `),k=f.length-1,E=C.length-1;k>=1&&E>=0&&f[k]!==C[E];)E--;for(;k>=1&&E>=0;k--,E--)if(f[k]!==C[E]){if(k!==1||E!==1)do if(k--,E--,E<0||f[k]!==C[E]){var $=`
22
- `+f[k].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(k>=1&&E>=0);break}}}finally{_e=!1,be.current=v,pt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",L=H?ne(H):"";return typeof e=="function"&&ae.set(e,L),L}function gt(e,t,n){return We(e,!1)}function mt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return We(e,mt(e));if(typeof e=="string")return ne(e);switch(e){case S:return ne("Suspense");case g:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return gt(e.render);case m:return ie(e.type,t,n);case b:{var i=e,h=i._payload,v=i._init;try{return ie(v(h),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,ze={},Le=z.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(n)}else Le.setExtraStackFrame(null)}function vt(e,t,n,i,h){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"React class")+": "+n+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){f=k}f&&!(f instanceof Error)&&(se(h),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,d,typeof f),se(null)),f instanceof Error&&!(f.message in ze)&&(ze[f.message]=!0,se(h),O("Failed %s type: %s",n,f.message),se(null))}}}var bt=Array.isArray;function xe(e){return bt(e)}function yt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function _t(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function Ve(e){if(_t(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yt(e)),Ue(e)}var qe=z.ReactCurrentOwner,xt={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function kt(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function wt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function St(e,t){typeof e.ref=="string"&&qe.current}function Rt(e,t){{var n=function(){He||(He=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Et(e,t){{var n=function(){Je||(Je=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var jt=function(e,t,n,i,h,v,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:v};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Ot(e,t,n,i,h){{var v,d={},f=null,C=null;n!==void 0&&(Ve(n),f=""+n),wt(t)&&(Ve(t.key),f=""+t.key),kt(t)&&(C=t.ref,St(t,h));for(v in t)G.call(t,v)&&!xt.hasOwnProperty(v)&&(d[v]=t[v]);if(e&&e.defaultProps){var k=e.defaultProps;for(v in k)d[v]===void 0&&(d[v]=k[v])}if(f||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Rt(d,E),C&&Et(d,E)}return jt(e,f,C,h,i,qe.current,d)}}var ke=z.ReactCurrentOwner,Ke=z.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ke.setExtraStackFrame(n)}else Ke.setExtraStackFrame(null)}var we;we=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ge(){{if(ke.current){var e=B(ke.current.type);if(e)return`
22
+ `+f[k].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(k>=1&&E>=0);break}}}finally{_e=!1,be.current=v,gt(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",L=H?ne(H):"";return typeof e=="function"&&ae.set(e,L),L}function mt(e,t,n){return We(e,!1)}function vt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return We(e,vt(e));if(typeof e=="string")return ne(e);switch(e){case w:return ne("Suspense");case h:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return mt(e.render);case m:return ie(e.type,t,n);case b:{var s=e,g=s._payload,v=s._init;try{return ie(v(g),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},Ue=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ue.setExtraStackFrame(n)}else Ue.setExtraStackFrame(null)}function bt(e,t,n,s,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((s||"React class")+": "+n+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,s,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){f=k}f&&!(f instanceof Error)&&(se(g),O("%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).",s||"React class",n,d,typeof f),se(null)),f instanceof Error&&!(f.message in Le)&&(Le[f.message]=!0,se(g),O("Failed %s type: %s",n,f.message),se(null))}}}var yt=Array.isArray;function xe(e){return yt(e)}function _t(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function xt(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function qe(e){if(xt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_t(e)),Ve(e)}var He=W.ReactCurrentOwner,kt={key:!0,ref:!0,__self:!0,__source:!0},Je,Ke;function St(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function wt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Rt(e,t){typeof e.ref=="string"&&He.current}function Et(e,t){{var n=function(){Je||(Je=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function jt(e,t){{var n=function(){Ke||(Ke=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Ot=function(e,t,n,s,g,v,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:v};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function At(e,t,n,s,g){{var v,d={},f=null,C=null;n!==void 0&&(qe(n),f=""+n),wt(t)&&(qe(t.key),f=""+t.key),St(t)&&(C=t.ref,Rt(t,g));for(v in t)G.call(t,v)&&!kt.hasOwnProperty(v)&&(d[v]=t[v]);if(e&&e.defaultProps){var k=e.defaultProps;for(v in k)d[v]===void 0&&(d[v]=k[v])}if(f||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Et(d,E),C&&jt(d,E)}return Ot(e,f,C,g,s,He.current,d)}}var ke=W.ReactCurrentOwner,Ge=W.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ge.setExtraStackFrame(n)}else Ge.setExtraStackFrame(null)}var Se;Se=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ze(){{if(ke.current){var e=B(ke.current.type);if(e)return`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function At(e){return""}var Ze={};function Ct(e){{var t=Ge();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
24
+ Check the render method of \``+e+"`."}return""}}function Ct(e){return""}var Xe={};function Pt(e){{var t=Ze();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
25
25
 
26
- Check the top-level render call using <`+n+">.")}return t}}function Xe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Ct(t);if(Ze[n])return;Ze[n]=!0;var i="";e&&e._owner&&e._owner!==ke.current&&(i=" It was passed a child from "+B(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),q(null)}}function Ye(e,t){{if(typeof e!="object")return;if(xe(e))for(var n=0;n<e.length;n++){var i=e[n];Se(i)&&Xe(i,t)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var h=ve(e);if(typeof h=="function"&&h!==e.entries)for(var v=h.call(e),d;!(d=v.next()).done;)Se(d.value)&&Xe(d.value,t)}}}function Pt(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===u||t.$$typeof===m))n=t.propTypes;else return;if(n){var i=B(t);vt(n,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var h=B(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Tt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var i=t[n];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Qe={};function et(e,t,n,i,h,v){{var d=N(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" 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 C=At();C?f+=C:f+=Ge();var k;e===null?k="null":xe(e)?k="array":e!==void 0&&e.$$typeof===o?(k="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,f)}var E=Ot(e,t,n,h,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(xe($)){for(var H=0;H<$.length;H++)Ye($[H],e);Object.freeze&&Object.freeze($)}else O("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 Ye($,e)}if(G.call(t,"key")){var L=B(e),P=Object.keys(t).filter(function(Dt){return Dt!=="key"}),Re=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!Qe[L+Re]){var Mt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+n+">.")}return t}}function Ye(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Pt(t);if(Xe[n])return;Xe[n]=!0;var s="";e&&e._owner&&e._owner!==ke.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,s),q(null)}}function Qe(e,t){{if(typeof e!="object")return;if(xe(e))for(var n=0;n<e.length;n++){var s=e[n];we(s)&&Ye(s,t)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var g=ve(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)we(d.value)&&Ye(d.value,t)}}}function Tt(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===u||t.$$typeof===m))n=t.propTypes;else return;if(n){var s=B(t);bt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!Se){Se=!0;var g=B(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $t(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var et={};function tt(e,t,n,s,g,v){{var d=N(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" 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 C=Ct();C?f+=C:f+=Ze();var k;e===null?k="null":xe(e)?k="array":e!==void 0&&e.$$typeof===o?(k="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,f)}var E=At(e,t,n,g,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(s)if(xe($)){for(var H=0;H<$.length;H++)Qe($[H],e);Object.freeze&&Object.freeze($)}else O("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($,e)}if(G.call(t,"key")){var L=B(e),P=Object.keys(t).filter(function(Ft){return Ft!=="key"}),Re=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+Re]){var Dt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`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} />`,Re,L,Mt,L),Qe[L+Re]=!0}}return e===l?Tt(E):Pt(E),E}}function $t(e,t,n){return et(e,t,n,!0)}function Bt(e,t,n){return et(e,t,n,!1)}var Nt=Bt,It=$t;Ae.Fragment=l,Ae.jsx=Nt,Ae.jsxs=It}()),Ae}process.env.NODE_ENV==="production"?st.exports=rr():st.exports=or();var s=st.exports;let V={};var lt;(r=>{function o({children:_,onCallbackModal:u,nameModal:S}){const[g,m]=w.useState(!1),[b,T]=w.useState(!1);if(V[S].onClose=()=>{y.default.BackButton(!1),T(!0),setTimeout(()=>{m(!1),T(!1),u==null||u(),V.x(S)},300)},w.useEffect(()=>{g?V[S].onClose():(y.default.BackButton({callback:()=>V[S].onClose()}),m(!0))},[]),!!g)return s.jsx("div",{className:`modal-overlay ${b?"closing":""}`,children:s.jsx("div",{className:`modal-popup ${b?"closing":""}`,children:s.jsx("div",{children:_})})})}r.Content=o;function a({import_modules:_}){let[u,S]=w.useState([]);return V.x=g=>{S(g?u.filter(m=>m.key!==g):[])},w.useEffect(()=>{_&&(V.i=_)},[]),V.add=(g,m=Date.now())=>{S([...u,{key:m,item:g}])},s.jsx(s.Fragment,{children:u.map(g=>g.item)})}r.Init=a;function l(_,u){V.add(s.jsx(o,{onCallbackModal:V["callback_modal"+u],nameModal:u||"",children:_},String(Date.now())),u)}r.Add=l;function c(_,u=Date.now().toString()){return V[u]={},{Open:m=>{r.Add(s.jsx(_,{...m,onCallbackModal:b=>{var T;(T=m.callback)==null||T.call(m,b)},nameModal:u},new Date().getTime()),u)}}}r.Create=c;function p(_){V[_].onClose()}r.Close=p;function R(_,u,S,g){V.i&&(g&&(S.callback=g),V.i(`${_}/modals/${u}.tsx`).then(m=>{m.default.Open(S)}))}r.Open=R})(lt||(lt={}));function Lt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Ut={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Vt(r){const o=Lt();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...Ut,...r}}function tt(){return Lt().CRYPTO_PARAMS||Ut}const rt=r=>{let o=0;for(let l=0;l<r.length;l++){const c=r.charCodeAt(l);o=(o<<5)-o+c,o=o&o}o=Math.abs(o);let a="";for(let l=0;l<64;l++){const c=(o^l*197)&255;a+=c.toString(16).padStart(2,"0")}return a},qt=(r,o)=>{let a=r+o;for(let c=0;c<tt().iterations;c++)a=rt(a);const l=new Uint8Array(32);for(let c=0;c<32;c++)l[c]=parseInt(a.substring(c*2,c*2+2),16);return l},Ht=(r,o)=>{const a=new Uint8Array(r.length),l=new Uint8Array(r.length);let c=0;for(let p=0;p<r.length;p++){const R=p%o.length;c=o[R]+p+c&255,l[p]=c}for(let p=0;p<r.length;p++)a[p]=r[p]^l[p];return a},nr=r=>new TextEncoder().encode(r),ar=r=>new TextDecoder().decode(r),ir=r=>{let o="";for(let a=0;a<r.length;a+=8192){const l=r.slice(a,Math.min(a+8192,r.length));o+=String.fromCharCode.apply(null,Array.from(l))}return btoa(o)},sr=r=>{const o=atob(r),a=new Uint8Array(o.length);for(let l=0;l<o.length;l++)a[l]=o.charCodeAt(l);return a},lr=r=>{try{const o=rt(Date.now().toString()+Math.random()).substring(0,tt().saltLength*2),a=rt(r+o).substring(0,8),l=qt(tt().key,o),c=nr(r),p=Ht(c,l),R=ir(p);return`${o}.${R}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},cr=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=o[0],l=o[1],c=o[2],p=qt(tt().key,a),R=sr(l),_=Ht(R,p),u=ar(_);if(rt(u+a).substring(0,8)!==c)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(r=>{r.setKey=o=>{Vt({key:o})},r.enCode=o=>{try{const a=JSON.stringify(o);return lr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const a=cr(o);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(o,a)=>{Vt({iterations:o,saltLength:a})}})(le||(le={}));var Ce={};/**
31
+ <%s key={someKey} {...props} />`,Re,L,Dt,L),et[L+Re]=!0}}return e===c?$t(E):Tt(E),E}}function Bt(e,t,n){return tt(e,t,n,!0)}function Nt(e,t,n){return tt(e,t,n,!1)}var It=Nt,Mt=Bt;Ae.Fragment=c,Ae.jsx=It,Ae.jsxs=Mt}()),Ae}process.env.NODE_ENV==="production"?st.exports=or():st.exports=nr();var i=st.exports;let V={};var lt;(r=>{function o({children:_,onCallbackModal:u,nameModal:w}){const[h,m]=S.useState(!1),[b,T]=S.useState(!1);if(V[w].onClose=()=>{y.default.BackButton(!1),T(!0),setTimeout(()=>{m(!1),T(!1),u==null||u(),V.x(w)},300)},S.useEffect(()=>{h?V[w].onClose():(y.default.BackButton({callback:()=>V[w].onClose()}),m(!0))},[]),!!h)return i.jsx("div",{className:`modal-overlay ${b?"closing":""}`,children:i.jsx("div",{className:`modal-popup ${b?"closing":""}`,children:i.jsx("div",{children:_})})})}r.Content=o;function a({import_modules:_}){let[u,w]=S.useState([]);return V.x=h=>{w(h?u.filter(m=>m.key!==h):[])},S.useEffect(()=>{_&&(V.i=_)},[]),V.add=(h,m=Date.now())=>{w([...u,{key:m,item:h}])},i.jsx(i.Fragment,{children:u.map(h=>h.item)})}r.Init=a;function c(_,u){V.add(i.jsx(o,{onCallbackModal:V["callback_modal"+u],nameModal:u||"",children:_},String(Date.now())),u)}r.Add=c;function l(_,u=Date.now().toString()){return V[u]={},{Open:m=>{r.Add(i.jsx(_,{...m,onCallbackModal:b=>{var T;(T=m.callback)==null||T.call(m,b)},nameModal:u},new Date().getTime()),u)}}}r.Create=l;function p(_){V[_].onClose()}r.Close=p;function R(_,u,w,h){V.i&&(h&&(w.callback=h),V.i(`${_}/modals/${u}.tsx`).then(m=>{m.default.Open(w)}))}r.Open=R})(lt||(lt={}));function Ut(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Vt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function qt(r){const o=Ut();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...Vt,...r}}function rt(){return Ut().CRYPTO_PARAMS||Vt}const ot=r=>{let o=0;for(let c=0;c<r.length;c++){const l=r.charCodeAt(c);o=(o<<5)-o+l,o=o&o}o=Math.abs(o);let a="";for(let c=0;c<64;c++){const l=(o^c*197)&255;a+=l.toString(16).padStart(2,"0")}return a},Ht=(r,o)=>{let a=r+o;for(let l=0;l<rt().iterations;l++)a=ot(a);const c=new Uint8Array(32);for(let l=0;l<32;l++)c[l]=parseInt(a.substring(l*2,l*2+2),16);return c},Jt=(r,o)=>{const a=new Uint8Array(r.length),c=new Uint8Array(r.length);let l=0;for(let p=0;p<r.length;p++){const R=p%o.length;l=o[R]+p+l&255,c[p]=l}for(let p=0;p<r.length;p++)a[p]=r[p]^c[p];return a},ar=r=>new TextEncoder().encode(r),ir=r=>new TextDecoder().decode(r),sr=r=>{let o="";for(let a=0;a<r.length;a+=8192){const c=r.slice(a,Math.min(a+8192,r.length));o+=String.fromCharCode.apply(null,Array.from(c))}return btoa(o)},lr=r=>{const o=atob(r),a=new Uint8Array(o.length);for(let c=0;c<o.length;c++)a[c]=o.charCodeAt(c);return a},cr=r=>{try{const o=ot(Date.now().toString()+Math.random()).substring(0,rt().saltLength*2),a=ot(r+o).substring(0,8),c=Ht(rt().key,o),l=ar(r),p=Jt(l,c),R=sr(p);return`${o}.${R}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},ur=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=o[0],c=o[1],l=o[2],p=Ht(rt().key,a),R=lr(c),_=Jt(R,p),u=ir(_);if(ot(u+a).substring(0,8)!==l)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(r=>{r.setKey=o=>{qt({key:o})},r.enCode=o=>{try{const a=JSON.stringify(o);return cr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const a=ur(o);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(o,a)=>{qt({iterations:o,saltLength:a})}})(le||(le={}));var Ce={};/**
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 Jt;function ur(){if(Jt)return Ce;Jt=1;var r=w,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(_,u,S){var g,m={},b=null,T=null;S!==void 0&&(b=""+S),u.key!==void 0&&(b=""+u.key),u.ref!==void 0&&(T=u.ref);for(g in u)l.call(u,g)&&!p.hasOwnProperty(g)&&(m[g]=u[g]);if(_&&_.defaultProps)for(g in u=_.defaultProps,u)m[g]===void 0&&(m[g]=u[g]);return{$$typeof:o,type:_,key:b,ref:T,props:m,_owner:c.current}}return Ce.Fragment=a,Ce.jsx=R,Ce.jsxs=R,Ce}var ot={};/**
39
+ */var Kt;function fr(){if(Kt)return Ce;Kt=1;var r=S,o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(_,u,w){var h,m={},b=null,T=null;w!==void 0&&(b=""+w),u.key!==void 0&&(b=""+u.key),u.ref!==void 0&&(T=u.ref);for(h in u)c.call(u,h)&&!p.hasOwnProperty(h)&&(m[h]=u[h]);if(_&&_.defaultProps)for(h in u=_.defaultProps,u)m[h]===void 0&&(m[h]=u[h]);return{$$typeof:o,type:_,key:b,ref:T,props:m,_owner:l.current}}return Ce.Fragment=a,Ce.jsx=R,Ce.jsxs=R,Ce}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 Kt;function fr(){return Kt||(Kt=1,process.env.NODE_ENV!=="production"&&function(){var r=w,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),M=Symbol.iterator,Te="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[Te];return typeof t=="function"?t:null}var z=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];$e("error",e,n)}}function $e(e,t,n){{var i=z.ReactDebugCurrentFrame,h=i.getStackAddendum();h!==""&&(t+="%s",n=n.concat([h]));var v=n.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Be=!1,je=!1,Ne=!1,Ie=!1,x=!1,j;j=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||x||e===c||e===S||e===g||Ie||e===T||Be||je||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===R||e.$$typeof===_||e.$$typeof===u||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,n){var i=e.displayName;if(i)return i;var h=t.displayName||t.name||"";return h!==""?n+"("+h+")":n}function I(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 l:return"Fragment";case a:return"Portal";case p:return"Profiler";case c:return"StrictMode";case S:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return I(t)+".Consumer";case R:var n=e;return I(n._context)+".Provider";case u:return D(e,e.render,"ForwardRef");case m:var i=e.displayName||null;return i!==null?i:B(e.type)||"Memo";case b:{var h=e,v=h._payload,d=h._init;try{return B(d(v))}catch{return null}}}return null}var F=Object.assign,U=0,ue,X,Y,Q,ee,Me,De;function Fe(){}Fe.__reactDisabledLog=!0;function dt(){{if(U===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Me=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function pt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Me}),groupEnd:F({},e,{value:De})})}U<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=z.ReactCurrentDispatcher,ye;function ne(e,t,n){{if(ye===void 0)try{throw Error()}catch(h){var i=h.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
48
- `+ye+e}}var _e=!1,ae;{var ht=typeof WeakMap=="function"?WeakMap:Map;ae=new ht}function We(e,t){if(!e||_e)return"";{var n=ae.get(e);if(n!==void 0)return n}var i;_e=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=be.current,be.current=null,dt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){i=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){i=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){i=P}e()}}catch(P){if(P&&i&&typeof P.stack=="string"){for(var f=P.stack.split(`
49
- `),C=i.stack.split(`
47
+ */var Gt;function dr(){return Gt||(Gt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,o=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),M=Symbol.iterator,$e="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[$e];return typeof t=="function"?t:null}var W=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Be("error",e,n)}}function Be(e,t,n){{var s=W.ReactDebugCurrentFrame,g=s.getStackAddendum();g!==""&&(t+="%s",n=n.concat([g]));var v=n.map(function(d){return String(d)});v.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,v)}}var Ne=!1,je=!1,Ie=!1,Me=!1,x=!1,j;j=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===w||e===h||Me||e===T||Ne||je||Ie||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===R||e.$$typeof===_||e.$$typeof===u||e.$$typeof===j||e.getModuleId!==void 0))}function D(e,t,n){var s=e.displayName;if(s)return s;var g=t.displayName||t.name||"";return g!==""?n+"("+g+")":n}function I(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&O("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 c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case w:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return I(t)+".Consumer";case R:var n=e;return I(n._context)+".Provider";case u:return D(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case b:{var g=e,v=g._payload,d=g._init;try{return B(d(v))}catch{return null}}}return null}var F=Object.assign,U=0,ue,X,Y,Q,ee,De,Fe;function ze(){}ze.__reactDisabledLog=!0;function pt(){{if(U===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,De=console.groupCollapsed,Fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ze,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function gt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:De}),groupEnd:F({},e,{value:Fe})})}U<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=W.ReactCurrentDispatcher,ye;function ne(e,t,n){{if(ye===void 0)try{throw Error()}catch(g){var s=g.stack.trim().match(/\n( *(at )?)/);ye=s&&s[1]||""}return`
48
+ `+ye+e}}var _e=!1,ae;{var ht=typeof WeakMap=="function"?WeakMap:Map;ae=new ht}function We(e,t){if(!e||_e)return"";{var n=ae.get(e);if(n!==void 0)return n}var s;_e=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=be.current,be.current=null,pt();try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(P){s=P}Reflect.construct(e,[],d)}else{try{d.call()}catch(P){s=P}e.call(d.prototype)}}else{try{throw Error()}catch(P){s=P}e()}}catch(P){if(P&&s&&typeof P.stack=="string"){for(var f=P.stack.split(`
49
+ `),C=s.stack.split(`
50
50
  `),k=f.length-1,E=C.length-1;k>=1&&E>=0&&f[k]!==C[E];)E--;for(;k>=1&&E>=0;k--,E--)if(f[k]!==C[E]){if(k!==1||E!==1)do if(k--,E--,E<0||f[k]!==C[E]){var $=`
51
- `+f[k].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(k>=1&&E>=0);break}}}finally{_e=!1,be.current=v,pt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",L=H?ne(H):"";return typeof e=="function"&&ae.set(e,L),L}function gt(e,t,n){return We(e,!1)}function mt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return We(e,mt(e));if(typeof e=="string")return ne(e);switch(e){case S:return ne("Suspense");case g:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return gt(e.render);case m:return ie(e.type,t,n);case b:{var i=e,h=i._payload,v=i._init;try{return ie(v(h),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,ze={},Le=z.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(n)}else Le.setExtraStackFrame(null)}function vt(e,t,n,i,h){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((i||"React class")+": "+n+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,i,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){f=k}f&&!(f instanceof Error)&&(se(h),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",n,d,typeof f),se(null)),f instanceof Error&&!(f.message in ze)&&(ze[f.message]=!0,se(h),O("Failed %s type: %s",n,f.message),se(null))}}}var bt=Array.isArray;function xe(e){return bt(e)}function yt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function _t(e){try{return Ue(e),!1}catch{return!0}}function Ue(e){return""+e}function Ve(e){if(_t(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yt(e)),Ue(e)}var qe=z.ReactCurrentOwner,xt={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function kt(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function wt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function St(e,t){typeof e.ref=="string"&&qe.current}function Rt(e,t){{var n=function(){He||(He=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Et(e,t){{var n=function(){Je||(Je=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var jt=function(e,t,n,i,h,v,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:v};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function Ot(e,t,n,i,h){{var v,d={},f=null,C=null;n!==void 0&&(Ve(n),f=""+n),wt(t)&&(Ve(t.key),f=""+t.key),kt(t)&&(C=t.ref,St(t));for(v in t)G.call(t,v)&&!xt.hasOwnProperty(v)&&(d[v]=t[v]);if(e&&e.defaultProps){var k=e.defaultProps;for(v in k)d[v]===void 0&&(d[v]=k[v])}if(f||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Rt(d,E),C&&Et(d,E)}return jt(e,f,C,h,i,qe.current,d)}}var ke=z.ReactCurrentOwner,Ke=z.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ke.setExtraStackFrame(n)}else Ke.setExtraStackFrame(null)}var we;we=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ge(){{if(ke.current){var e=B(ke.current.type);if(e)return`
51
+ `+f[k].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,$),$}while(k>=1&&E>=0);break}}}finally{_e=!1,be.current=v,gt(),Error.prepareStackTrace=g}var H=e?e.displayName||e.name:"",L=H?ne(H):"";return typeof e=="function"&&ae.set(e,L),L}function mt(e,t,n){return We(e,!1)}function vt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return We(e,vt(e));if(typeof e=="string")return ne(e);switch(e){case w:return ne("Suspense");case h:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return mt(e.render);case m:return ie(e.type,t,n);case b:{var s=e,g=s._payload,v=s._init;try{return ie(v(g),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Le={},Ue=W.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ue.setExtraStackFrame(n)}else Ue.setExtraStackFrame(null)}function bt(e,t,n,s,g){{var v=Function.call.bind(G);for(var d in e)if(v(e,d)){var f=void 0;try{if(typeof e[d]!="function"){var C=Error((s||"React class")+": "+n+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}f=e[d](t,d,s,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){f=k}f&&!(f instanceof Error)&&(se(g),O("%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).",s||"React class",n,d,typeof f),se(null)),f instanceof Error&&!(f.message in Le)&&(Le[f.message]=!0,se(g),O("Failed %s type: %s",n,f.message),se(null))}}}var yt=Array.isArray;function xe(e){return yt(e)}function _t(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function xt(e){try{return Ve(e),!1}catch{return!0}}function Ve(e){return""+e}function qe(e){if(xt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_t(e)),Ve(e)}var He=W.ReactCurrentOwner,kt={key:!0,ref:!0,__self:!0,__source:!0},Je,Ke;function St(e){if(G.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function wt(e){if(G.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function Rt(e,t){typeof e.ref=="string"&&He.current}function Et(e,t){{var n=function(){Je||(Je=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function jt(e,t){{var n=function(){Ke||(Ke=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Ot=function(e,t,n,s,g,v,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:v};return f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(f,"_self",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.defineProperty(f,"_source",{configurable:!1,enumerable:!1,writable:!1,value:g}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function At(e,t,n,s,g){{var v,d={},f=null,C=null;n!==void 0&&(qe(n),f=""+n),wt(t)&&(qe(t.key),f=""+t.key),St(t)&&(C=t.ref,Rt(t));for(v in t)G.call(t,v)&&!kt.hasOwnProperty(v)&&(d[v]=t[v]);if(e&&e.defaultProps){var k=e.defaultProps;for(v in k)d[v]===void 0&&(d[v]=k[v])}if(f||C){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Et(d,E),C&&jt(d,E)}return Ot(e,f,C,g,s,He.current,d)}}var ke=W.ReactCurrentOwner,Ge=W.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ge.setExtraStackFrame(n)}else Ge.setExtraStackFrame(null)}var Se;Se=!1;function we(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ze(){{if(ke.current){var e=B(ke.current.type);if(e)return`
52
52
 
53
- Check the render method of \``+e+"`."}return""}}function At(e){return""}var Ze={};function Ct(e){{var t=Ge();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
53
+ Check the render method of \``+e+"`."}return""}}function Ct(e){return""}var Xe={};function Pt(e){{var t=Ze();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
54
54
 
55
- Check the top-level render call using <`+n+">.")}return t}}function Xe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Ct(t);if(Ze[n])return;Ze[n]=!0;var i="";e&&e._owner&&e._owner!==ke.current&&(i=" It was passed a child from "+B(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,i),q(null)}}function Ye(e,t){{if(typeof e!="object")return;if(xe(e))for(var n=0;n<e.length;n++){var i=e[n];Se(i)&&Xe(i,t)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var h=ve(e);if(typeof h=="function"&&h!==e.entries)for(var v=h.call(e),d;!(d=v.next()).done;)Se(d.value)&&Xe(d.value,t)}}}function Pt(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===u||t.$$typeof===m))n=t.propTypes;else return;if(n){var i=B(t);vt(n,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var h=B(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Tt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var i=t[n];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Qe={};function et(e,t,n,i,h,v){{var d=N(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" 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 C=At();C?f+=C:f+=Ge();var k;e===null?k="null":xe(e)?k="array":e!==void 0&&e.$$typeof===o?(k="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,f)}var E=Ot(e,t,n,h,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(i)if(xe($)){for(var H=0;H<$.length;H++)Ye($[H],e);Object.freeze&&Object.freeze($)}else O("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 Ye($,e)}if(G.call(t,"key")){var L=B(e),P=Object.keys(t).filter(function(Dt){return Dt!=="key"}),Re=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!Qe[L+Re]){var Mt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+n+">.")}return t}}function Ye(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Pt(t);if(Xe[n])return;Xe[n]=!0;var s="";e&&e._owner&&e._owner!==ke.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,s),q(null)}}function Qe(e,t){{if(typeof e!="object")return;if(xe(e))for(var n=0;n<e.length;n++){var s=e[n];we(s)&&Ye(s,t)}else if(we(e))e._store&&(e._store.validated=!0);else if(e){var g=ve(e);if(typeof g=="function"&&g!==e.entries)for(var v=g.call(e),d;!(d=v.next()).done;)we(d.value)&&Ye(d.value,t)}}}function Tt(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===u||t.$$typeof===m))n=t.propTypes;else return;if(n){var s=B(t);bt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!Se){Se=!0;var g=B(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",g||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $t(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var et={};function tt(e,t,n,s,g,v){{var d=N(e);if(!d){var f="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(f+=" 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 C=Ct();C?f+=C:f+=Ze();var k;e===null?k="null":xe(e)?k="array":e!==void 0&&e.$$typeof===o?(k="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,f)}var E=At(e,t,n,g,v);if(E==null)return E;if(d){var $=t.children;if($!==void 0)if(s)if(xe($)){for(var H=0;H<$.length;H++)Qe($[H],e);Object.freeze&&Object.freeze($)}else O("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($,e)}if(G.call(t,"key")){var L=B(e),P=Object.keys(t).filter(function(Ft){return Ft!=="key"}),Re=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!et[L+Re]){var Dt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";O(`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} />`,Re,L,Mt,L),Qe[L+Re]=!0}}return e===l?Tt(E):Pt(E),E}}function $t(e,t,n){return et(e,t,n,!0)}function Bt(e,t,n){return et(e,t,n,!1)}var Nt=Bt,It=$t;ot.Fragment=l,ot.jsx=Nt,ot.jsxs=It}()),ot}process.env.NODE_ENV==="production"?ur():fr();const dr="0.0.40",Gt={version:dr},te={},J={module:"",v:Gt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function fe(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}fe().elcrm||(fe().elcrm={}),Object.assign(fe().elcrm,{router:Gt.version});function Z(r){var o,a,l,c;const p=fe();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const R={page:(o=p.ROUTER_PARAMS)==null?void 0:o.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(l=p.ROUTER_PARAMS)==null?void 0:l.tab,id:(c=p.ROUTER_PARAMS)==null?void 0:c.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:R}}else{r.debug||J.debug;const R={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:R}}}function A(){return fe().ROUTER_PARAMS||J}function de(r){const o=fe();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function re(){return fe().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function o(){var x;let j=sessionStorage.getItem("f");if(j){if(j=le.deCode(j),!j)return!1;Z({id:j.id,tab:j.tab,page:j.page,module:j.module,time:j.time,payment:{active:!0},module_admin:j.module_admin})}else Z({id:0,tab:"",page:(x=localStorage.getItem("d"))!=null&&x.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function l({module:x=A().module,page:j=A().page,auth:N=A().auth,debug:D=A().debug}){Z({page:j,module:x,auth:N,debug:D}),o()}r.Default=l;function c(x){let j=I=>(Z({page:I}),I);const[N,D]=w.useState(R()||x&&j(x)||A().page);return de({page:I=>{D(I)}}),N}r.usePage=c;function p(x,j=!0,N={}){Z({page:x,...N}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().page(x)}r.setPage=p;function R(){return A().page}r.getPage=R;function _(x){return A().page===x}r.isPage=_;function u(){return A().prev}r.getBack=u;function S(x,j){const[N,D]=w.useState(m()||x||A().module);return de({module:D}),N}r.useModule=S;function g(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=g;function m(){return A().module||""}r.getModule=m;function b(x){return A().module===x}r.isModule=b;function T(x,j){if(typeof x!="function"){const[N,D]=w.useState(!j),[I,B]=w.useState(x||ve());return de({tabs:B}),j&&w.useEffect(()=>{D(!0)},[]),[I,N]}else de({tabs:x})}r.useTabs=T;function M(x){let j=I=>(Z({tab:I}),I);const[N,D]=w.useState(ve()||x&&j(x)||A().tab);return de({tabs:I=>{D(I)}}),N}r.useTab=M;async function Te(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=Te;function ve(){return A().tab}r.getTabs=ve;function z(x){return A().tab===x}r.isTabs=z;function O(x){if(typeof x!="function"){const[j,N]=w.useState(x||je());return de({id:D=>{N(D)}}),j}else de({id:x})}r.useId=O;function $e(x){}r.subId=$e;async function Be(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Be;function je(){return A().id}r.getId=je;function Ne(x){return Number(A().id)===x}r.isId=Ne;async function Ie(x){var j,N,D,I,B,F,U,ue;const{page:X,module:Y,tab:Q,id:ee}=x;X!==void 0&&(te.page=X),Y!==void 0&&(te.module=Y),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),Z({...te}),ee!==void 0&&((N=(j=re()).id)==null||N.call(j,ee)),Q!==void 0&&((I=(D=re()).tabs)==null||I.call(D,Q)),Y!==void 0&&((F=(B=re()).module)==null||F.call(B,Y)),X!==void 0&&((ue=(U=re()).page)==null||ue.call(U,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=Ie})(ce||(ce={}));let nt={};function pr(){const[r,o]=w.useState([]);return nt.set=a=>{o([...r,a])},nt.del=a=>{r.forEach((l,c)=>{l.key===a&&r.splice(c,1)}),o(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function hr(r){let o=new Date().getTime();r.key=o,nt.set({item:s.jsx(gr,{data:r},o),key:o})}function gr(r){const o=r.data;let[a]=w.useState("show"),[l,c]=w.useState(!1);w.useEffect(()=>{setTimeout(function(){c(!0),nt.del(o.key)},5e3)},[o.key]);let p;switch(o.type){case"error":p=s.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":p=s.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":p=s.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:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:l?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:o.text})]})})}let pe={Send:hr,Init:pr};const he={is:!1,MainButton:{},BackButton:{}};let K={};K.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"},K.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"},K.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 mr=()=>{if(location.hostname==="localhost"){let[r,o]=w.useState(!1),[a,l]=w.useState(!1),[c,p]=w.useState("dark"),[R,_]=w.useState(!1),[u,S]=w.useState(!1);he.is=!0,he.MainButton.set=o,he.BackButton.set=l,w.useEffect(()=>{K[c]["--tg-theme-bg-color-alpha"]=K[c]["--tg-theme-bg-color"]+"b3",K[c]["--tg-theme-secondary-bg-color-alpha"]=K[c]["--tg-theme-secondary-bg-color"]+"d3";for(let b in K[c])document.documentElement.style.setProperty(b,K[c][b]);me.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let g=b=>{for(let T in K[b])document.documentElement.style.setProperty(T,K[b][T]);p(b),_(!1)},m=()=>{_(!1),S(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var b;a.page===void 0?(b=a.callback)==null||b.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!R),children:"Меню"})]}),s.jsx(pe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:m,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>g("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>g("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>g("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!R),children:"Closed"})})]})]}):"",u?s.jsx(vr,{setAuthorization:S}):""]})}else return w.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",me.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",me.themeParams.bg_color+"b3"),me.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(pe.Init,{})})},vr=({setAuthorization:r})=>{let o={},a=()=>{localStorage.setItem("auth",o)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Zt={p:"_p_12hh1_1",s:"_s_12hh1_17"},br=({className:r,children:o,isScroll:a=!0})=>s.jsx("div",{className:[Zt.p,a&&Zt.s,r].filter(l=>l!==void 0).join(" "),children:o}),yr={l:"_l_gfyud_1"},_r=({children:r,className:o})=>s.jsx("div",{className:[yr.l,o].filter(a=>a!==void 0).join(" "),children:r}),ge={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:r})=>{const o=l=>{ce.setPage(l)},a=l=>{me.openTelegramLink(l)};return s.jsx("div",{className:ge.m,children:r.map(l=>s.jsx("div",{className:ge.g,children:l.items.map((c,p)=>s.jsxs("div",{className:ge.i,onClick:()=>{c.link&&a(c.link),c.page&&o(c.page),c.callback&&c.callback()},children:[s.jsxs("div",{className:ge.c,children:[s.jsx("span",{className:ge.l,style:{background:c.color},children:c.icon}),c.title,c.count&&s.jsx("span",{className:ge.n,children:c.count})]}),s.jsx("span",{className:ge.a,children:"›"})]},p))},l.id))})},oe={o:"_o_1dahh_3",m:"_m_1dahh_14",l:"_l_1dahh_28",r:"_r_1dahh_33",x:"_x_1dahh_38",h:"_h_1dahh_42",c:"_c_1dahh_57",u:"_u_1dahh_72"};function kr({children:r,icon:o,iconBadge:a=0,title:l,className:c,view:p="list",position:R="left"}){const[_,u]=w.useState(!1),[S,g]=w.useState(null);w.useEffect(()=>{let b=document.querySelector(".p_sb");return b||(b=document.createElement("div"),b.className="_p_sb",document.body.appendChild(b)),g(b),()=>{b&&b.parentNode&&b.parentNode.removeChild(b)}},[]);const m=s.jsxs(s.Fragment,{children:[_&&s.jsx("div",{className:oe.o,onClick:()=>u(!1)}),s.jsxs("div",{className:it(oe.m,R==="left"?oe.l:oe.r,_&&oe.x,c),children:[s.jsxs("div",{className:oe.h,children:[l&&s.jsx("h3",{className:oe.t,children:l}),s.jsxs("svg",{onClick:()=>u(!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:[s.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),s.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),s.jsx("div",{className:oe.c,children:p==="list"?s.jsx("ul",{className:oe.u,children:r}):r})]})]});return s.jsxs(s.Fragment,{children:[o&&s.jsx("div",{onClick:()=>u(!0),className:"bage","data-count":a,children:o}),S&&tr.createPortal(m,S)]})}let Pe=()=>{};const Xt=({children:r,title:o,isOverlay:a=!0,footer:l=!0,className:c,onOpen:p})=>{const[R,_]=w.useState(!1);return Pe=()=>{_(!0),setTimeout(()=>{var u;p==null||p(!1),(u=Ee==null?void 0:Ee.onClose)==null||u.call(Ee)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:Pe,children:s.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${c||""} ${l?"footer":""}`,onClick:u=>u.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:o}),s.jsx("button",{className:"footer-menu-close-btn",onClick:Pe,children:"✕"})]}),r]})})},ct={h:"_h_wowd5_1",row:"_row_wowd5_19",column:"_column_wowd5_22",badge:"_badge_wowd5_35"},Ee=[],Yt=(r,o)=>r.findIndex(a=>(a==null?void 0:a.page)===o),wr=({actions:r,children:o,className:a,toHide:l=!1,page:c,onPageChange:p,direction:R="row"})=>{const[_,u]=w.useState(null),[S,g]=w.useState(c?Yt(r||[],c):0);return Ee.onClose=()=>{u(null),g(c?Yt(r||[],c):0)},w.useEffect(()=>{if(!l)return;const m=document.querySelectorAll("[contenteditable]"),b=()=>{const M=document.querySelector("footer");M&&(M.style.display="flex")},T=()=>{const M=document.querySelector("footer");M&&(M.style.display="none")};return m.forEach(M=>{M.addEventListener("focus",T,!0),M.addEventListener("blur",b,!0)}),()=>{m.forEach(M=>{M.removeEventListener("focus",T,!0),M.removeEventListener("blur",b,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${ct.h} ${ct[R]} ${a} `,children:[o,r&&r.map((m,b)=>s.jsxs("div",{"data-active":S===b?"true":"false",onClick:()=>{m.page&&(g(b),p==null||p(m.page)),m.callback&&(m.callback(),g(b)),m.component&&(S===b?Pe():(u(m.component),g(b)))},children:[m.icon,m.badge&&s.jsx("div",{className:ct.badge,children:m.badge})]},b))]})]})},at={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ut={};function Sr({children:r,name:o,onClose:a,isOpen:l,isScroll:c=!0,nextBackButton:p}){const[R,_]=w.useState(!1);return w.useEffect(()=>{if(!l)return;const u=p===void 0?er().pop():p,S=()=>{_(!1),setTimeout(()=>{ft(u||!1),a==null||a()},300)};ut[o]={onClose:S,onOpen:()=>{_(!0)}},ft({callback:S});const g=setTimeout(()=>{_(!0)},10);return()=>{clearTimeout(g)}},[l]),l?s.jsxs("div",{className:it(at.w,R&&at.v,c&&at.s),children:[s.jsx("div",{className:at.n}),r]}):""}const Rr=(r,o)=>{var a,l;o?(a=ut[r])==null||a.onOpen():(l=ut[r])==null||l.onClose()},Qt={s:"_s_6z0ml_3",n:"_n_6z0ml_13"};function Er({className:r,children:o,onScrollEnd:a,offset:l=100,isLoading:c,isScrollBar:p=!1}){const[R,_]=w.useState(c||!1),u=g=>{const{scrollTop:m,scrollHeight:b,clientHeight:T}=g.currentTarget;m+T>=b-l&&!R&&(_(!0),a==null||a())};w.useEffect(()=>{_(c||!1)},[c]);let S={onScroll:u};return a&&a(),s.jsx("div",{...S,className:it(Qt.s,!p&&Qt.n,r),children:o})}const W={state:[!1],listen:[],prev:{},router:r=>{r===!1?(y.default.WebApp.BackButton.isVisible=!1,y.default.WebApp.BackButton.offClick(W.listen[0]),W.listen.shift(),W.state.length!==1&&W.state.pop()):(y.default.WebApp.BackButton.isVisible=!0,y.default.WebApp.BackButton.offClick(W.listen[0]),W.listen.shift(),W.listen.push(()=>{var a;let o=W.state.pop();W.prev=ce.getPage(),o.page!==void 0?ce.setPage(o.page):(a=o.callback)==null||a.call(o)}),me.BackButton.onClick(W.listen[0]))}},it=(...r)=>r.filter(o=>o!==void 0&&o!==!1&&o!==null&&o!=="").join(" ");y.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var o;return((o=r.WebApp.initDataUnsafe)==null?void 0:o.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(o,a,l)=>{var c,p;a!==void 0?(pe.Send({type:o,text:a,thema:l}),(c=r.WebApp.HapticFeedback)==null||c.notificationOccurred(o)):(pe.Send(o),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(o.type))},Error:o=>{var a;pe.Send({type:"error",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:o=>{var a;pe.Send({type:"success",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:o=>{var a;pe.Send({type:"warning",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=mr,r.TabBar=wr,r.BottomSheet=Xt,r.toggleBottomSheet=Pe,r.SafeArea=br,r.Loading=_r,r.Sidebar=kr,r.SidePanel=Sr,r.SidePanelController=Rr,r.Scroll=Er,r.Modal=lt,r.Menu=xr,r.MainButton={callback:[],set:o=>{he.is?he.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),r.WebApp.MainButton.callback=[],typeof o=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=o.text,o.color&&(r.WebApp.MainButton.color=o.color),o.textColor&&(r.WebApp.MainButton.textColor=o.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=o.isActive===void 0?!0:o.isActive,r.WebApp.MainButton.callback.push(()=>{var a;o.page===void 0?(a=o.callback)==null||a.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{W.prev&&(0,r.BackButton)(W.prev)},r.BackButtonState=()=>W.state,r.BackButton=o=>{he.is?he.BackButton.set(o):(W.state.push(o),W.router(o))}})(y.default||(y.default={}));const jr=y.default.TabBar,Or=Xt,ft=y.default.BackButton,Ar=y.default.BackButtonPrev,er=y.default.BackButtonState,Cr=y.default.Notice,Pr=y.default.SafeArea,Tr=y.default.Loading,$r=y.default.Menu,Br=y.default.SidePanel,Nr=y.default.Scroll,Ir=y.default.Sidebar,Mr=y.default.SidePanelController,{Header:Dr,toggleBottomSheet:Fr,Modal:Wr,MainButton:zr,WebApp:me,getUser:Lr}=y.default;y.BackButton=ft,y.BackButtonPrev=Ar,y.BackButtonState=er,y.BottomSheet=Or,y.Header=Dr,y.Loading=Tr,y.MainButton=zr,y.Menu=$r,y.Modal=Wr,y.Notice=Cr,y.SafeArea=Pr,y.Scroll=Nr,y.SidePanel=Br,y.SidePanelController=Mr,y.Sidebar=Ir,y.TabBar=jr,y.WebApp=me,y.clsx=it,y.getUser=Lr,y.toggleBottomSheet=Fr,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,Re,L,Dt,L),et[L+Re]=!0}}return e===c?$t(E):Tt(E),E}}function Bt(e,t,n){return tt(e,t,n,!0)}function Nt(e,t,n){return tt(e,t,n,!1)}var It=Nt,Mt=Bt;nt.Fragment=c,nt.jsx=It,nt.jsxs=Mt}()),nt}process.env.NODE_ENV==="production"?fr():dr();const pr="0.0.40",Zt={version:pr},te={},J={module:"",v:Zt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function fe(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}fe().elcrm||(fe().elcrm={}),Object.assign(fe().elcrm,{router:Zt.version});function Z(r){var o,a,c,l;const p=fe();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const R={page:(o=p.ROUTER_PARAMS)==null?void 0:o.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(c=p.ROUTER_PARAMS)==null?void 0:c.tab,id:(l=p.ROUTER_PARAMS)==null?void 0:l.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:R}}else{r.debug||J.debug;const R={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:R}}}function A(){return fe().ROUTER_PARAMS||J}function de(r){const o=fe();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function re(){return fe().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function o(){var x;let j=sessionStorage.getItem("f");if(j){if(j=le.deCode(j),!j)return!1;Z({id:j.id,tab:j.tab,page:j.page,module:j.module,time:j.time,payment:{active:!0},module_admin:j.module_admin})}else Z({id:0,tab:"",page:(x=localStorage.getItem("d"))!=null&&x.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function c({module:x=A().module,page:j=A().page,auth:N=A().auth,debug:D=A().debug}){Z({page:j,module:x,auth:N,debug:D}),o()}r.Default=c;function l(x){let j=I=>(Z({page:I}),I);const[N,D]=S.useState(R()||x&&j(x)||A().page);return de({page:I=>{D(I)}}),N}r.usePage=l;function p(x,j=!0,N={}){Z({page:x,...N}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().page(x)}r.setPage=p;function R(){return A().page}r.getPage=R;function _(x){return A().page===x}r.isPage=_;function u(){return A().prev}r.getBack=u;function w(x,j){const[N,D]=S.useState(m()||x||A().module);return de({module:D}),N}r.useModule=w;function h(x,j=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().module(x)}r.setModule=h;function m(){return A().module||""}r.getModule=m;function b(x){return A().module===x}r.isModule=b;function T(x,j){if(typeof x!="function"){const[N,D]=S.useState(!j),[I,B]=S.useState(x||ve());return de({tabs:B}),j&&S.useEffect(()=>{D(!0)},[]),[I,N]}else de({tabs:x})}r.useTabs=T;function M(x){let j=I=>(Z({tab:I}),I);const[N,D]=S.useState(ve()||x&&j(x)||A().tab);return de({tabs:I=>{D(I)}}),N}r.useTab=M;async function $e(x,j=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&(re().tabs&&re().tabs(x))}r.setTabs=$e;function ve(){return A().tab}r.getTabs=ve;function W(x){return A().tab===x}r.isTabs=W;function O(x){if(typeof x!="function"){const[j,N]=S.useState(x||je());return de({id:D=>{N(D)}}),j}else de({id:x})}r.useId=O;function Be(x){}r.subId=Be;async function Ne(x,j=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),j&&re().id(x)}r.setId=Ne;function je(){return A().id}r.getId=je;function Ie(x){return Number(A().id)===x}r.isId=Ie;async function Me(x){var j,N,D,I,B,F,U,ue;const{page:X,module:Y,tab:Q,id:ee}=x;X!==void 0&&(te.page=X),Y!==void 0&&(te.module=Y),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),Z({...te}),ee!==void 0&&((N=(j=re()).id)==null||N.call(j,ee)),Q!==void 0&&((I=(D=re()).tabs)==null||I.call(D,Q)),Y!==void 0&&((F=(B=re()).module)==null||F.call(B,Y)),X!==void 0&&((ue=(U=re()).page)==null||ue.call(U,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=Me})(ce||(ce={}));let at={};function gr(){const[r,o]=S.useState([]);return at.set=a=>{o([...r,a])},at.del=a=>{r.forEach((c,l)=>{c.key===a&&r.splice(l,1)}),o(r)},r.length===0?i.jsx(i.Fragment,{}):i.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function hr(r){let o=new Date().getTime();r.key=o,at.set({item:i.jsx(mr,{data:r},o),key:o})}function mr(r){const o=r.data;let[a]=S.useState("show"),[c,l]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){l(!0),at.del(o.key)},5e3)},[o.key]);let p;switch(o.type){case"error":p=i.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":p=i.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":p=i.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:p="icon fa fa-exclamation-circle";break}return i.jsx(i.Fragment,{children:c?i.jsx(i.Fragment,{}):i.jsxs("div",{className:"item "+o.type+` ${o.thema!==void 0?" thema":""}`,"data-status":a,children:[i.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),i.jsx("span",{className:"text",children:o.text})]})})}let pe={Send:hr,Init:gr};const ge={is:!1,MainButton:{},BackButton:{}};let K={};K.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"},K.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"},K.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[r,o]=S.useState(!1),[a,c]=S.useState(!1),[l,p]=S.useState("dark"),[R,_]=S.useState(!1),[u,w]=S.useState(!1);ge.is=!0,ge.MainButton.set=o,ge.BackButton.set=c,S.useEffect(()=>{K[l]["--tg-theme-bg-color-alpha"]=K[l]["--tg-theme-bg-color"]+"b3",K[l]["--tg-theme-secondary-bg-color-alpha"]=K[l]["--tg-theme-secondary-bg-color"]+"d3";for(let b in K[l])document.documentElement.style.setProperty(b,K[l][b]);me.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let h=b=>{for(let T in K[b])document.documentElement.style.setProperty(T,K[b][T]);p(b),_(!1)},m=()=>{_(!1),w(!0)};return i.jsxs(i.Fragment,{children:[i.jsxs("header",{className:"debug",children:[a===!1?i.jsx("div",{className:"b",children:"Отмена"}):i.jsx("div",{onClick:()=>{var b;a.page===void 0?(b=a.callback)==null||b.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),i.jsx("div",{className:"o",onClick:()=>_(!R),children:"Меню"})]}),i.jsx(pe.Init,{}),r&&i.jsx("div",{className:"mb",children:i.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?i.jsxs("div",{className:"tm",children:[i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("button",{onClick:m,children:"Authorization"})}),i.jsx("li",{})]}),i.jsxs("ul",{children:[i.jsxs("li",{children:[i.jsx("button",{children:"Thema"}),i.jsxs("ol",{children:[i.jsx("li",{children:i.jsx("button",{onClick:()=>h("dark"),children:"Dark"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>h("light"),children:"Light"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>h("users"),children:"Users"})})]})]}),i.jsx("li",{children:i.jsx("button",{onClick:()=>_(!R),children:"Closed"})})]})]}):"",u?i.jsx(br,{setAuthorization:w}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",me.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",me.themeParams.bg_color+"b3"),me.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),i.jsx(i.Fragment,{children:i.jsx(pe.Init,{})})},br=({setAuthorization:r})=>{let o={},a=()=>{localStorage.setItem("auth",o)};return i.jsx("div",{className:"ta",children:i.jsxs("div",{className:"--body",children:[i.jsx("fieldset",{}),i.jsx("div",{onClick:a,children:" Сохранить "})]})})},Xt={p:"_p_12hh1_1",s:"_s_12hh1_17"},yr=({className:r,children:o,isScroll:a=!0})=>i.jsx("div",{className:[Xt.p,a&&Xt.s,r].filter(c=>c!==void 0).join(" "),children:o}),_r={l:"_l_gfyud_1"},xr=({children:r,className:o})=>i.jsx("div",{className:[_r.l,o].filter(a=>a!==void 0).join(" "),children:r}),he={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"},kr=({items:r})=>{const o=c=>{ce.setPage(c)},a=c=>{me.openTelegramLink(c)};return i.jsx("div",{className:he.m,children:r.map(c=>i.jsx("div",{className:he.g,children:c.items.map((l,p)=>i.jsxs("div",{className:he.i,onClick:()=>{l.link&&a(l.link),l.page&&o(l.page),l.callback&&l.callback()},children:[i.jsxs("div",{className:he.c,children:[i.jsx("span",{className:he.l,style:{background:l.color},children:l.icon}),l.title,l.count&&i.jsx("span",{className:he.n,children:l.count})]}),i.jsx("span",{className:he.a,children:"›"})]},p))},c.id))})},oe={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"};function Sr({children:r,icon:o,iconBadge:a=0,title:c,className:l,view:p="list",position:R="left"}){const[_,u]=S.useState(!1),[w,h]=S.useState(null);S.useEffect(()=>{let b=document.querySelector(".p_sb");return b||(b=document.createElement("div"),b.className="_p_sb",document.body.appendChild(b)),h(b),()=>{b&&b.parentNode&&b.parentNode.removeChild(b)}},[]);const m=i.jsxs(i.Fragment,{children:[_&&i.jsx("div",{className:oe.o,onClick:()=>u(!1)}),i.jsxs("div",{className:Te(oe.m,R==="left"?oe.l:oe.r,_&&oe.x,l),children:[i.jsxs("div",{className:oe.h,children:[c&&i.jsx("h3",{className:oe.t,children:c}),i.jsxs("svg",{onClick:()=>u(!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:[i.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),i.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),i.jsx("div",{className:oe.c,children:p==="list"?i.jsx("ul",{className:oe.u,children:r}):r})]})]});return i.jsxs(i.Fragment,{children:[o&&i.jsx("div",{onClick:()=>u(!0),className:"bage","data-count":a,children:o}),w&&rr.createPortal(m,w)]})}let Pe=()=>{};const Yt=({children:r,title:o,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[R,_]=S.useState(!1);return Pe=()=>{_(!0),setTimeout(()=>{var u;p==null||p(!1),(u=Ee==null?void 0:Ee.onClose)==null||u.call(Ee)},300)},i.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:Pe,children:i.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${l||""} ${c?"footer":""}`,onClick:u=>u.stopPropagation(),children:[i.jsxs("div",{className:"footer-menu-header",children:[i.jsx("h3",{children:o}),i.jsx("button",{className:"footer-menu-close-btn",onClick:Pe,children:"✕"})]}),r]})})},ct={h:"_h_1ffr7_1",row:"_row_1ffr7_20",column:"_column_1ffr7_23",badge:"_badge_1ffr7_36"},Ee=[],Qt=(r,o)=>r.findIndex(a=>(a==null?void 0:a.page)===o),wr=({actions:r,children:o,className:a,toHide:c=!1,page:l,onPageChange:p,direction:R="row"})=>{const[_,u]=S.useState(null),[w,h]=S.useState(l?Qt(r||[],l):0);return Ee.onClose=()=>{u(null),h(l?Qt(r||[],l):0)},S.useEffect(()=>{if(!c)return;const m=document.querySelectorAll("[contenteditable]"),b=()=>{const M=document.querySelector("footer");M&&(M.style.display="flex")},T=()=>{const M=document.querySelector("footer");M&&(M.style.display="none")};return m.forEach(M=>{M.addEventListener("focus",T,!0),M.addEventListener("blur",b,!0)}),()=>{m.forEach(M=>{M.removeEventListener("focus",T,!0),M.removeEventListener("blur",b,!0)})}},[]),i.jsxs(i.Fragment,{children:[_,i.jsxs("footer",{className:`${ct.h} ${ct[R]} ${a} `,children:[o,r&&r.map((m,b)=>i.jsxs("div",{"data-active":w===b?"true":"false",onClick:()=>{m.page&&(h(b),p==null||p(m.page)),m.callback&&(m.callback(),h(b)),m.component&&(w===b?Pe():(u(m.component),h(b)))},children:[m.icon,m.badge&&i.jsx("div",{className:ct.badge,children:m.badge})]},b))]})]})},it={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},ut={};function Rr({children:r,name:o,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[R,_]=S.useState(!1);return S.useEffect(()=>{if(!c)return;const u=p===void 0?tr().pop():p,w=()=>{_(!1),setTimeout(()=>{dt(u||!1),a==null||a()},300)};ut[o]={onClose:w,onOpen:()=>{_(!0)}},dt({callback:w});const h=setTimeout(()=>{_(!0)},10);return()=>{clearTimeout(h)}},[c]),c?i.jsxs("div",{className:Te(it.w,R&&it.v,l&&it.s),children:[i.jsx("div",{className:it.n}),r]}):""}const Er=(r,o)=>{var a,c;o?(a=ut[r])==null||a.onOpen():(c=ut[r])==null||c.onClose()},er={s:"_s_10r8v_3",n:"_n_10r8v_13"};function jr({className:r,children:o,onScrollEnd:a,offset:c=100,isLoading:l,isScrollBar:p=!1}){const[R,_]=S.useState(l||!1),u=h=>{const{scrollTop:m,scrollHeight:b,clientHeight:T}=h.currentTarget;m+T>=b-c&&!R&&(_(!0),a==null||a())};S.useEffect(()=>{_(l||!1)},[l]);let w={onScroll:u};return a&&a(),i.jsx("div",{...w,className:Te(er.s,!p&&er.n,r),children:o})}const ft={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Or({children:r,className:o,position:a="center",title:c}){let l="";return a==="left"?l=ft.l:a==="right"&&(l=ft.r),i.jsxs("div",{className:Te(ft.a,l,o),children:[r,c&&i.jsx("b",{children:c})]})}const z={state:[!1],listen:[],prev:{},router:r=>{r===!1?(y.default.WebApp.BackButton.isVisible=!1,y.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.state.length!==1&&z.state.pop()):(y.default.WebApp.BackButton.isVisible=!0,y.default.WebApp.BackButton.offClick(z.listen[0]),z.listen.shift(),z.listen.push(()=>{var a;let o=z.state.pop();z.prev=ce.getPage(),o.page!==void 0?ce.setPage(o.page):(a=o.callback)==null||a.call(o)}),me.BackButton.onClick(z.listen[0]))}},Te=(...r)=>r.filter(o=>o!==void 0&&o!==!1&&o!==null&&o!=="").join(" ");y.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var o;return((o=r.WebApp.initDataUnsafe)==null?void 0:o.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(o,a,c)=>{var l,p;a!==void 0?(pe.Send({type:o,text:a,thema:c}),(l=r.WebApp.HapticFeedback)==null||l.notificationOccurred(o)):(pe.Send(o),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(o.type))},Error:o=>{var a;pe.Send({type:"error",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:o=>{var a;pe.Send({type:"success",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:o=>{var a;pe.Send({type:"warning",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=vr,r.TabBar=wr,r.BottomSheet=Yt,r.toggleBottomSheet=Pe,r.SafeArea=yr,r.Loading=xr,r.Sidebar=Sr,r.SidePanel=Rr,r.AppBar=Or,r.SidePanelController=Er,r.Scroll=jr,r.Modal=lt,r.Menu=kr,r.MainButton={callback:[],set:o=>{ge.is?ge.MainButton.set(o):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),r.WebApp.MainButton.callback=[],typeof o=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=o.text,o.color&&(r.WebApp.MainButton.color=o.color),o.textColor&&(r.WebApp.MainButton.textColor=o.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=o.isActive===void 0?!0:o.isActive,r.WebApp.MainButton.callback.push(()=>{var a;o.page===void 0?(a=o.callback)==null||a.call(o):ce.setPage(o.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{z.prev&&(0,r.BackButton)(z.prev)},r.BackButtonState=()=>z.state,r.BackButton=o=>{ge.is?ge.BackButton.set(o):(z.state.push(o),z.router(o))}})(y.default||(y.default={}));const Ar=y.default.TabBar,Cr=Yt,dt=y.default.BackButton,Pr=y.default.BackButtonPrev,tr=y.default.BackButtonState,Tr=y.default.Notice,$r=y.default.SafeArea,Br=y.default.Loading,Nr=y.default.Menu,Ir=y.default.SidePanel,Mr=y.default.Scroll,Dr=y.default.AppBar,Fr=y.default.Sidebar,zr=y.default.SidePanelController,{Header:Wr,toggleBottomSheet:Lr,Modal:Ur,MainButton:Vr,WebApp:me,getUser:qr}=y.default;y.AppBar=Dr,y.BackButton=dt,y.BackButtonPrev=Pr,y.BackButtonState=tr,y.BottomSheet=Cr,y.Header=Wr,y.Loading=Br,y.MainButton=Vr,y.Menu=Nr,y.Modal=Ur,y.Notice=Tr,y.SafeArea=$r,y.Scroll=Mr,y.SidePanel=Ir,y.SidePanelController=zr,y.Sidebar=Fr,y.TabBar=Ar,y.WebApp=me,y.clsx=Te,y.getUser=qr,y.toggleBottomSheet=Lr,Object.defineProperties(y,{__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.99",
3
+ "version": "0.0.101",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",