@elcrm/telegram 0.0.62 → 0.0.63

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
1
  (function(k,ve){typeof exports=="object"&&typeof module<"u"?module.exports=ve(require("react")):typeof define=="function"&&define.amd?define(["react"],ve):(k=typeof globalThis<"u"?globalThis:k||self,k.elCRM=k.elCRM||{},k.elCRM.components=ve(k.React))})(this,function(k){"use strict";var ve=document.createElement("style");ve.textContent=`*{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;box-sizing:border-box;padding:0;margin:0}html{height:-webkit-fill-available}body{background-color:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);-webkit-font-smoothing:antialiased;font-family:sans-serif;font-variant:no-common-ligatures;text-rendering:optimizeLegibility;padding:0;margin:0}body{overflow:hidden!important}body::-webkit-scrollbar{width:0px;height:0px;display:none!important;-ms-overflow-style:none;scrollbar-width:none}body:has(.debug){--tg-viewport-height: calc(100dvh - 50px) }.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:sticky;top:0}.debug .b,.debug .o{padding:0 15px;cursor:pointer}.mb{bottom:0;position:fixed;left:0;right:0;padding:10px}.mb button{width:100%}.tm{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;width:200px;position:absolute;right:5px;z-index:999;border:1px solid var(--tg-theme-hint-color)}.tm ul{list-style-type:none;margin:0;display:block;width:100%;padding:8px;border-top:1px solid var(--tg-theme-hint-color)}.tm ul:first-child{border-top:0}.tm ol{list-style-type:none;display:none;padding:8px;background-color:var(--tg-theme-bg-color);border-radius:10px;box-shadow:0 10px 20px #40404026;position:absolute;right:100%;left:-180px;z-index:100;width:100%;top:0;flex-direction:column;border:1px solid var(--tg-theme-hint-color)}.tm ol:hover{display:flex}.tm li{position:relative}.tm button{font:inherit;border:0;padding:8px 36px 8px 8px;width:100%;border-radius:8px;text-align:left;display:flex;align-items:center;position:relative;color:var(--tg-theme-text-color);background-color:var(--tg-theme-bg-color)}.tm button:hover{background-color:var(--tg-theme-button-color)}.tm button:hover+ol{display:flex}.ta{margin:0;width:100vw;height:100vh;display:-webkit-flex;display:flex;justify-content:center;align-items:center;background-color:#0006}.ta .--body{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;overflow:hidden;width:270px;height:auto;background-color:#ffffff73;border-radius:12px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:var(--tg-theme-bg-color-alpha);z-index:11;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .3s ease}.modal-overlay.closing{animation:fadeOut .3s ease}.modal-popup{position:relative;width:100%;min-height:var(--modal-height);max-width:500px;max-height:var(--modal-height);overflow:hidden;animation:slideUp .3s ease;background:var(--tg-theme-bg-color)}.modal-popup.closing{animation:slideDown .3s ease}.notice{position:fixed;top:0;z-index:999;max-height:0px}.notice .item{display:block;color:#fff;overflow:hidden;cursor:pointer;display:flex;margin:20px 20px 10px;border-radius:10px;padding-left:10px;gap:10px;width:calc(100vw - 40px)}.notice svg{margin-top:7px}.notice .text{padding:9px 0;flex:1}.notice .error{background:#f44336}.notice .success{background:#4caf50}.notice .warning{background:#ff9800}.notice .item.thema{background:var(--tg-theme-secondary-bg-color);color:var(--tg-theme-text-color)}.notice .item.error.thema svg{color:#f44336}.notice .item.success.thema svg{color:#4caf50}.notice .item.warning.thema svg{color:#ff9800}footer{z-index:2;position:fixed;bottom:0;left:0;right:0;display:flex;padding:5px 16px 0;padding-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom, 0px))}footer button{flex:1}footer.icon-inline{display:flex}footer.icon-inline>div{z-index:1;display:flex;align-items:center;justify-content:center;flex:1;padding:10px 0 0}footer.island{background-color:var(--tg-theme-bg-color);margin:10px;padding:0;border-radius:10px;margin-bottom:calc(var(--tg-safe-area-inset-bottom) + var(--tg-content-safe-area-inset-bottom))}footer div[data-active=true]{color:var(--tg-theme-button-color)}.footer-menu-overlay{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;transition:opacity .5s ease-out;opacity:1}.footer-menu-overlay.is-overlay{background:var(--tg-theme-bg-color-alpha);top:0}.footer-menu-overlay.closing{opacity:0}.footer-menu-popup-book{position:relative;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);border-radius:20px 20px 0 0;width:100%;max-width:500px;max-height:70vh;overflow:hidden;animation:slideUp .3s ease;box-shadow:0 -10px 30px #00000080;box-shadow:0 -.5px #0000001a;background:var(--tg-theme-secondary-bg-color-alpha);margin-bottom:calc(var(--tg-safe-area-inset-bottom) + 40px);border-bottom:1px solid var(--tg-theme-section-separator-color)}.footer-menu-popup-book.closing{animation:slideDown .3s ease}.footer-menu-header{position:relative;display:flex;opacity:.8;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--tg-theme-section-separator-color);z-index:1}.footer-menu-header h3{margin:0;color:var(--tg-theme-text-color);font-size:18px;font-weight:600}.footer-menu-close-btn{background:none;border:none;color:var(--tg-theme-text-color);font-size:20px;cursor:pointer;padding:5px;border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease,transform .15s ease-in-out}.footer-menu-close-btn:active{transform:scale(1.1)}.chapters-list{position:relative;max-height:60vh;overflow-y:auto;overflow-x:hidden;padding:10px 0 20px;z-index:1}.chapter-item{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;cursor:pointer;transition:background-color .2s ease,transform .15s ease-in-out;border-bottom:1px solid var(--tg-theme-section-separator-color)}.chapter-item:active{transform:scale(1.02)}.chapter-item:hover{background-color:#ffffff0d}.chapter-item.active{background-color:#ffffff1a}.chapter-info-item{display:flex;align-items:center;gap:12px}.chapter-number{background:var(--tg-theme-bg-color);color:var(--tg-theme-text-color);min-width:24px;min-height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}.chapter-item.active .chapter-number{background:var(--tg-theme-button-color);color:var(--tg-theme-button-text-color)}.chapter-title{color:var(--tg-theme-text-color);font-size:16px;font-weight:400}.chapter-title p{font-size:10px;color:var(--tg-subtitle_text_color);font-weight:400}.chapter-title b{font-size:16px;font-weight:400}.chapter-duration{color:var(--tg-theme-text-color);opacity:.8;font-size:14px;font-weight:400}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slideDown{0%{transform:translateY(0)}to{transform:translateY(100%)}}.chapters-list::-webkit-scrollbar{width:6px}.chapters-list::-webkit-scrollbar-track{background:#333}.chapters-list::-webkit-scrollbar-thumb{background:#666;border-radius:3px}.chapters-list::-webkit-scrollbar-thumb:hover{background:#888}@media (max-width: 375px){.chapter-progress{padding:15px 10px 5px}.chapters-popup{max-height:80vh}.chapter-item{padding:12px 15px}.chapter-title{font-size:14px}.chapter-duration{font-size:12px}}
2
- /*$vite$:1*/`,document.head.appendChild(ve);var Qe={exports:{}},ke={};/**
2
+ /*$vite$:1*/`,document.head.appendChild(ve);var et={exports:{}},ke={};/**
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 Tt;function zt(){if(Tt)return ke;Tt=1;var o=k,n=Symbol.for("react.element"),l=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,h=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function C(_,d,w){var m,S={},I=null,A=null;w!==void 0&&(I=""+w),d.key!==void 0&&(I=""+d.key),d.ref!==void 0&&(A=d.ref);for(m in d)c.call(d,m)&&!v.hasOwnProperty(m)&&(S[m]=d[m]);if(_&&_.defaultProps)for(m in d=_.defaultProps,d)S[m]===void 0&&(S[m]=d[m]);return{$$typeof:n,type:_,key:I,ref:A,props:S,_owner:h.current}}return ke.Fragment=l,ke.jsx=C,ke.jsxs=C,ke}var _e={};/**
10
+ */var Ct;function zt(){if(Ct)return ke;Ct=1;var o=k,n=Symbol.for("react.element"),l=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,h=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function C(_,d,w){var g,S={},I=null,A=null;w!==void 0&&(I=""+w),d.key!==void 0&&(I=""+d.key),d.ref!==void 0&&(A=d.ref);for(g in d)u.call(d,g)&&!v.hasOwnProperty(g)&&(S[g]=d[g]);if(_&&_.defaultProps)for(g in d=_.defaultProps,d)S[g]===void 0&&(S[g]=d[g]);return{$$typeof:n,type:_,key:I,ref:A,props:S,_owner:h.current}}return ke.Fragment=l,ke.jsx=C,ke.jsxs=C,ke}var _e={};/**
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 Ct;function Yt(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var o=k,n=Symbol.for("react.element"),l=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),V=Symbol.iterator,Ee="@@iterator";function Re(e){if(e===null||typeof e!="object")return null;var t=V&&e[V]||e[Ee];return typeof t=="function"?t:null}var N=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];xe("error",e,r)}}function xe(e,t,r){{var a=N.ReactDebugCurrentFrame,f=a.getStackAddendum();f!==""&&(t+="%s",r=r.concat([f]));var p=r.map(function(s){return String(s)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Se=!1,Oe=!1,b=!1,E=!1,D=!1,F;F=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===v||D||e===h||e===w||e===m||E||e===A||Se||Oe||b||typeof e=="object"&&e!==null&&(e.$$typeof===I||e.$$typeof===S||e.$$typeof===C||e.$$typeof===_||e.$$typeof===d||e.$$typeof===F||e.getModuleId!==void 0))}function ae(e,t,r){var a=e.displayName;if(a)return a;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function ie(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 l:return"Portal";case v:return"Profiler";case h:return"StrictMode";case w:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return ie(t)+".Consumer";case C:var r=e;return ie(r._context)+".Provider";case d:return ae(e,e.render,"ForwardRef");case S:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case I:{var f=e,p=f._payload,s=f._init;try{return B(s(p))}catch{return null}}}return null}var M=Object.assign,$=0,K,G,H,je,Te,Ce,Pe;function Ae(){}Ae.__reactDisabledLog=!0;function rt(){{if($===0){K=console.log,G=console.info,H=console.warn,je=console.error,Te=console.group,Ce=console.groupCollapsed,Pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function ot(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:H}),error:M({},e,{value:je}),group:M({},e,{value:Te}),groupCollapsed:M({},e,{value:Ce}),groupEnd:M({},e,{value:Pe})})}$<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=N.ReactCurrentDispatcher,ue;function ee(e,t,r){{if(ue===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);ue=a&&a[1]||""}return`
19
- `+ue+e}}var fe=!1,te;{var nt=typeof WeakMap=="function"?WeakMap:Map;te=new nt}function Be(e,t){if(!e||fe)return"";{var r=te.get(e);if(r!==void 0)return r}var a;fe=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ce.current,ce.current=null,rt();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(j){a=j}Reflect.construct(e,[],s)}else{try{s.call()}catch(j){a=j}e.call(s.prototype)}}else{try{throw Error()}catch(j){a=j}e()}}catch(j){if(j&&a&&typeof j.stack=="string"){for(var i=j.stack.split(`
20
- `),O=a.stack.split(`
21
- `),y=i.length-1,x=O.length-1;y>=1&&x>=0&&i[y]!==O[x];)x--;for(;y>=1&&x>=0;y--,x--)if(i[y]!==O[x]){if(y!==1||x!==1)do if(y--,x--,x<0||i[y]!==O[x]){var P=`
22
- `+i[y].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,P),P}while(y>=1&&x>=0);break}}}finally{fe=!1,ce.current=p,ot(),Error.prepareStackTrace=f}var Y=e?e.displayName||e.name:"",L=Y?ee(Y):"";return typeof e=="function"&&te.set(e,L),L}function at(e,t,r){return Be(e,!1)}function it(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,r){if(e==null)return"";if(typeof e=="function")return Be(e,it(e));if(typeof e=="string")return ee(e);switch(e){case w:return ee("Suspense");case m:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return at(e.render);case S:return re(e.type,t,r);case I:{var a=e,f=a._payload,p=a._init;try{return re(p(f),t,r)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,Ie={},De=N.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);De.setExtraStackFrame(r)}else De.setExtraStackFrame(null)}function st(e,t,r,a,f){{var p=Function.call.bind(J);for(var s in e)if(p(e,s)){var i=void 0;try{if(typeof e[s]!="function"){var O=Error((a||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}i=e[s](t,s,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){i=y}i&&!(i instanceof Error)&&(oe(f),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",r,s,typeof i),oe(null)),i instanceof Error&&!(i.message in Ie)&&(Ie[i.message]=!0,oe(f),R("Failed %s type: %s",r,i.message),oe(null))}}}var lt=Array.isArray;function de(e){return lt(e)}function ct(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function ut(e){try{return Me(e),!1}catch{return!0}}function Me(e){return""+e}function Fe(e){if(ut(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ct(e)),Me(e)}var $e=N.ReactCurrentOwner,ft={key:!0,ref:!0,__self:!0,__source:!0},Ne,Le;function dt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function pt(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){typeof e.ref=="string"&&$e.current}function gt(e,t){{var r=function(){Ne||(Ne=!0,R("%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))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function ht(e,t){{var r=function(){Le||(Le=!0,R("%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))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var vt=function(e,t,r,a,f,p,s){var i={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:p};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function bt(e,t,r,a,f){{var p,s={},i=null,O=null;r!==void 0&&(Fe(r),i=""+r),pt(t)&&(Fe(t.key),i=""+t.key),dt(t)&&(O=t.ref,mt(t,f));for(p in t)J.call(t,p)&&!ft.hasOwnProperty(p)&&(s[p]=t[p]);if(e&&e.defaultProps){var y=e.defaultProps;for(p in y)s[p]===void 0&&(s[p]=y[p])}if(i||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&gt(s,x),O&&ht(s,x)}return vt(e,i,O,f,a,$e.current,s)}}var pe=N.ReactCurrentOwner,Ue=N.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);Ue.setExtraStackFrame(r)}else Ue.setExtraStackFrame(null)}var me;me=!1;function ge(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function ze(){{if(pe.current){var e=B(pe.current.type);if(e)return`
18
+ */var Pt;function Yt(){return Pt||(Pt=1,process.env.NODE_ENV!=="production"&&function(){var o=k,n=Symbol.for("react.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),V=Symbol.iterator,Re="@@iterator";function Se(e){if(e===null||typeof e!="object")return null;var t=V&&e[V]||e[Re];return typeof t=="function"?t:null}var N=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];xe("error",e,r)}}function xe(e,t,r){{var a=N.ReactDebugCurrentFrame,f=a.getStackAddendum();f!==""&&(t+="%s",r=r.concat([f]));var p=r.map(function(s){return String(s)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var je=!1,Oe=!1,b=!1,E=!1,D=!1,F;F=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===v||D||e===h||e===w||e===g||E||e===A||je||Oe||b||typeof e=="object"&&e!==null&&(e.$$typeof===I||e.$$typeof===S||e.$$typeof===C||e.$$typeof===_||e.$$typeof===d||e.$$typeof===F||e.getModuleId!==void 0))}function ae(e,t,r){var a=e.displayName;if(a)return a;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function ie(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 u:return"Fragment";case l:return"Portal";case v:return"Profiler";case h:return"StrictMode";case w:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return ie(t)+".Consumer";case C:var r=e;return ie(r._context)+".Provider";case d:return ae(e,e.render,"ForwardRef");case S:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case I:{var f=e,p=f._payload,s=f._init;try{return B(s(p))}catch{return null}}}return null}var M=Object.assign,$=0,K,G,H,Te,Ce,Pe,Ae;function Be(){}Be.__reactDisabledLog=!0;function ot(){{if($===0){K=console.log,G=console.info,H=console.warn,Te=console.error,Ce=console.group,Pe=console.groupCollapsed,Ae=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function nt(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:H}),error:M({},e,{value:Te}),group:M({},e,{value:Ce}),groupCollapsed:M({},e,{value:Pe}),groupEnd:M({},e,{value:Ae})})}$<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=N.ReactCurrentDispatcher,ue;function ee(e,t,r){{if(ue===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);ue=a&&a[1]||""}return`
19
+ `+ue+e}}var fe=!1,te;{var at=typeof WeakMap=="function"?WeakMap:Map;te=new at}function Ie(e,t){if(!e||fe)return"";{var r=te.get(e);if(r!==void 0)return r}var a;fe=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ce.current,ce.current=null,ot();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(O){a=O}Reflect.construct(e,[],s)}else{try{s.call()}catch(O){a=O}e.call(s.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var i=O.stack.split(`
20
+ `),j=a.stack.split(`
21
+ `),y=i.length-1,x=j.length-1;y>=1&&x>=0&&i[y]!==j[x];)x--;for(;y>=1&&x>=0;y--,x--)if(i[y]!==j[x]){if(y!==1||x!==1)do if(y--,x--,x<0||i[y]!==j[x]){var P=`
22
+ `+i[y].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,P),P}while(y>=1&&x>=0);break}}}finally{fe=!1,ce.current=p,nt(),Error.prepareStackTrace=f}var Y=e?e.displayName||e.name:"",L=Y?ee(Y):"";return typeof e=="function"&&te.set(e,L),L}function it(e,t,r){return Ie(e,!1)}function st(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,r){if(e==null)return"";if(typeof e=="function")return Ie(e,st(e));if(typeof e=="string")return ee(e);switch(e){case w:return ee("Suspense");case g:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return it(e.render);case S:return re(e.type,t,r);case I:{var a=e,f=a._payload,p=a._init;try{return re(p(f),t,r)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},Me=N.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(r)}else Me.setExtraStackFrame(null)}function lt(e,t,r,a,f){{var p=Function.call.bind(J);for(var s in e)if(p(e,s)){var i=void 0;try{if(typeof e[s]!="function"){var j=Error((a||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}i=e[s](t,s,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){i=y}i&&!(i instanceof Error)&&(oe(f),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",r,s,typeof i),oe(null)),i instanceof Error&&!(i.message in De)&&(De[i.message]=!0,oe(f),R("Failed %s type: %s",r,i.message),oe(null))}}}var ct=Array.isArray;function de(e){return ct(e)}function ut(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function ft(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function $e(e){if(ft(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ut(e)),Fe(e)}var Ne=N.ReactCurrentOwner,dt={key:!0,ref:!0,__self:!0,__source:!0},Le,Ue;function pt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function gt(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){typeof e.ref=="string"&&Ne.current}function ht(e,t){{var r=function(){Le||(Le=!0,R("%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))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function vt(e,t){{var r=function(){Ue||(Ue=!0,R("%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))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var bt=function(e,t,r,a,f,p,s){var i={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:p};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function yt(e,t,r,a,f){{var p,s={},i=null,j=null;r!==void 0&&($e(r),i=""+r),gt(t)&&($e(t.key),i=""+t.key),pt(t)&&(j=t.ref,mt(t,f));for(p in t)J.call(t,p)&&!dt.hasOwnProperty(p)&&(s[p]=t[p]);if(e&&e.defaultProps){var y=e.defaultProps;for(p in y)s[p]===void 0&&(s[p]=y[p])}if(i||j){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&ht(s,x),j&&vt(s,x)}return bt(e,i,j,f,a,Ne.current,s)}}var pe=N.ReactCurrentOwner,ze=N.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);ze.setExtraStackFrame(r)}else ze.setExtraStackFrame(null)}var ge;ge=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ye(){{if(pe.current){var e=B(pe.current.type);if(e)return`
23
23
 
24
- Check the render method of \``+e+"`."}return""}}function yt(e){return""}var Ye={};function xt(e){{var t=ze();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
24
+ Check the render method of \``+e+"`."}return""}}function xt(e){return""}var We={};function kt(e){{var t=Ye();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
25
25
 
26
- Check the top-level render call using <`+r+">.")}return t}}function We(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=xt(t);if(Ye[r])return;Ye[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),z(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),z(null)}}function Ve(e,t){{if(typeof e!="object")return;if(de(e))for(var r=0;r<e.length;r++){var a=e[r];ge(a)&&We(a,t)}else if(ge(e))e._store&&(e._store.validated=!0);else if(e){var f=Re(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),s;!(s=p.next()).done;)ge(s.value)&&We(s.value,t)}}}function kt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===d||t.$$typeof===S))r=t.propTypes;else return;if(r){var a=B(t);st(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=B(t);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&R("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),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){z(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),z(null);break}}e.ref!==null&&(z(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}var Je={};function qe(e,t,r,a,f,p){{var s=U(e);if(!s){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=yt();O?i+=O:i+=ze();var y;e===null?y="null":de(e)?y="array":e!==void 0&&e.$$typeof===n?(y="<"+(B(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,i)}var x=bt(e,t,r,f,p);if(x==null)return x;if(s){var P=t.children;if(P!==void 0)if(a)if(de(P)){for(var Y=0;Y<P.length;Y++)Ve(P[Y],e);Object.freeze&&Object.freeze(P)}else R("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 Ve(P,e)}if(J.call(t,"key")){var L=B(e),j=Object.keys(t).filter(function(jt){return jt!=="key"}),he=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";if(!Je[L+he]){var Ot=j.length>0?"{"+j.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+r+">.")}return t}}function Ve(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=kt(t);if(We[r])return;We[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),z(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),z(null)}}function Je(e,t){{if(typeof e!="object")return;if(de(e))for(var r=0;r<e.length;r++){var a=e[r];me(a)&&Ve(a,t)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var f=Se(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),s;!(s=p.next()).done;)me(s.value)&&Ve(s.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===d||t.$$typeof===S))r=t.propTypes;else return;if(r){var a=B(t);lt(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!ge){ge=!0;var f=B(t);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){z(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),z(null);break}}e.ref!==null&&(z(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}var qe={};function Ke(e,t,r,a,f,p){{var s=U(e);if(!s){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j=xt();j?i+=j:i+=Ye();var y;e===null?y="null":de(e)?y="array":e!==void 0&&e.$$typeof===n?(y="<"+(B(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,i)}var x=yt(e,t,r,f,p);if(x==null)return x;if(s){var P=t.children;if(P!==void 0)if(a)if(de(P)){for(var Y=0;Y<P.length;Y++)Je(P[Y],e);Object.freeze&&Object.freeze(P)}else R("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 Je(P,e)}if(J.call(t,"key")){var L=B(e),O=Object.keys(t).filter(function(Tt){return Tt!=="key"}),he=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[L+he]){var Ot=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";R(`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} />`,he,L,Ot,L),Je[L+he]=!0}}return e===c?_t(x):kt(x),x}}function wt(e,t,r){return qe(e,t,r,!0)}function Et(e,t,r){return qe(e,t,r,!1)}var Rt=Et,St=wt;_e.Fragment=c,_e.jsx=Rt,_e.jsxs=St}()),_e}process.env.NODE_ENV==="production"?Qe.exports=zt():Qe.exports=Yt();var u=Qe.exports;let q={};var et;(o=>{function n({children:_}){const[d,w]=k.useState(!1),[m,S]=k.useState(!1);if(q.onClose=()=>{g.BackButton.set(!1),S(!0),setTimeout(()=>{w(!1),S(!1)},300)},k.useEffect(()=>{d?q.onClose():(g.BackButton.set({callback:()=>q.onClose()}),w(!0))},[]),!!d)return u.jsx("div",{className:`modal-overlay ${m?"closing":""}`,children:u.jsx("div",{className:`modal-popup ${m?"closing":""}`,children:u.jsx("div",{children:_})})})}o.Content=n;function l({import_modules:_}){let[d,w]=k.useState([]);return q.x=m=>{w(m?d.filter(S=>S.key!==m):[])},k.useEffect(()=>{_&&(q.i=_)},[]),q.add=(m,S=Date.now())=>{w([...d,{key:S,item:m}])},u.jsx(u.Fragment,{children:d.map(m=>m.item)})}o.Init=l;function c(_,d){q.add(u.jsx(n,{children:_},String(Date.now())),d)}o.Add=c;function h(_){return{Open:m=>{o.Add(u.jsx(_,{...m},new Date().getTime()))}}}o.Create=h;function v(){q.onClose()}o.Close=v;function C(_,d,w){q.i&&q.i(`${_}/modals/${d}.tsx`).then(m=>{m.default.Open(w)})}o.Open=C})(et||(et={}));function Pt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const At={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Bt(o){const n=Pt();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...o}:n.CRYPTO_PARAMS={...At,...o}}function Ke(){return Pt().CRYPTO_PARAMS||At}const Ge=o=>{let n=0;for(let c=0;c<o.length;c++){const h=o.charCodeAt(c);n=(n<<5)-n+h,n=n&n}n=Math.abs(n);let l="";for(let c=0;c<64;c++){const h=(n^c*197)&255;l+=h.toString(16).padStart(2,"0")}return l},It=(o,n)=>{let l=o+n;for(let h=0;h<Ke().iterations;h++)l=Ge(l);const c=new Uint8Array(32);for(let h=0;h<32;h++)c[h]=parseInt(l.substring(h*2,h*2+2),16);return c},Dt=(o,n)=>{const l=new Uint8Array(o.length),c=new Uint8Array(o.length);let h=0;for(let v=0;v<o.length;v++){const C=v%n.length;h=n[C]+v+h&255,c[v]=h}for(let v=0;v<o.length;v++)l[v]=o[v]^c[v];return l},Wt=o=>new TextEncoder().encode(o),Vt=o=>new TextDecoder().decode(o),Jt=o=>{let n="";for(let l=0;l<o.length;l+=8192){const c=o.slice(l,Math.min(l+8192,o.length));n+=String.fromCharCode.apply(null,Array.from(c))}return btoa(n)},qt=o=>{const n=atob(o),l=new Uint8Array(n.length);for(let c=0;c<n.length;c++)l[c]=n.charCodeAt(c);return l},Kt=o=>{try{const n=Ge(Date.now().toString()+Math.random()).substring(0,Ke().saltLength*2),l=Ge(o+n).substring(0,8),c=It(Ke().key,n),h=Wt(o),v=Dt(h,c),C=Jt(v);return`${n}.${C}.${l}`}catch{throw new Error("Не удалось зашифровать данные")}},Gt=o=>{try{const n=o.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const l=n[0],c=n[1],h=n[2],v=It(Ke().key,l),C=qt(c),_=Dt(C,v),d=Vt(_);if(Ge(d+l).substring(0,8)!==h)throw new Error("Контрольная сумма не совпадает");return d}catch{return""}};var ne;(o=>{o.setKey=n=>{Bt({key:n})},o.enCode=n=>{try{const l=JSON.stringify(n);return Kt(l)}catch{throw new Error("Не удалось зашифровать объект")}},o.deCode=n=>{try{if(!n||n.length<10)return!1;const l=Gt(n);return l&&JSON.parse(l)||!1}catch{return!1}},o.setSecurityParams=(n,l)=>{Bt({iterations:n,saltLength:l})}})(ne||(ne={}));var we={};/**
31
+ <%s key={someKey} {...props} />`,he,L,Ot,L),qe[L+he]=!0}}return e===u?wt(x):_t(x),x}}function Et(e,t,r){return Ke(e,t,r,!0)}function Rt(e,t,r){return Ke(e,t,r,!1)}var St=Rt,jt=Et;_e.Fragment=u,_e.jsx=St,_e.jsxs=jt}()),_e}process.env.NODE_ENV==="production"?et.exports=zt():et.exports=Yt();var c=et.exports;let q={};var tt;(o=>{function n({children:_}){const[d,w]=k.useState(!1),[g,S]=k.useState(!1);if(q.onClose=()=>{m.BackButton.set(!1),S(!0),setTimeout(()=>{w(!1),S(!1)},300)},k.useEffect(()=>{d?q.onClose():(m.BackButton.set({callback:()=>q.onClose()}),w(!0))},[]),!!d)return c.jsx("div",{className:`modal-overlay ${g?"closing":""}`,children:c.jsx("div",{className:`modal-popup ${g?"closing":""}`,children:c.jsx("div",{children:_})})})}o.Content=n;function l({import_modules:_}){let[d,w]=k.useState([]);return q.x=g=>{w(g?d.filter(S=>S.key!==g):[])},k.useEffect(()=>{_&&(q.i=_)},[]),q.add=(g,S=Date.now())=>{w([...d,{key:S,item:g}])},c.jsx(c.Fragment,{children:d.map(g=>g.item)})}o.Init=l;function u(_,d){q.add(c.jsx(n,{children:_},String(Date.now())),d)}o.Add=u;function h(_){return{Open:g=>{o.Add(c.jsx(_,{...g},new Date().getTime()))}}}o.Create=h;function v(){q.onClose()}o.Close=v;function C(_,d,w){q.i&&q.i(`${_}/modals/${d}.tsx`).then(g=>{g.default.Open(w)})}o.Open=C})(tt||(tt={}));function At(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Bt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function It(o){const n=At();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...o}:n.CRYPTO_PARAMS={...Bt,...o}}function Ge(){return At().CRYPTO_PARAMS||Bt}const He=o=>{let n=0;for(let u=0;u<o.length;u++){const h=o.charCodeAt(u);n=(n<<5)-n+h,n=n&n}n=Math.abs(n);let l="";for(let u=0;u<64;u++){const h=(n^u*197)&255;l+=h.toString(16).padStart(2,"0")}return l},Dt=(o,n)=>{let l=o+n;for(let h=0;h<Ge().iterations;h++)l=He(l);const u=new Uint8Array(32);for(let h=0;h<32;h++)u[h]=parseInt(l.substring(h*2,h*2+2),16);return u},Mt=(o,n)=>{const l=new Uint8Array(o.length),u=new Uint8Array(o.length);let h=0;for(let v=0;v<o.length;v++){const C=v%n.length;h=n[C]+v+h&255,u[v]=h}for(let v=0;v<o.length;v++)l[v]=o[v]^u[v];return l},Wt=o=>new TextEncoder().encode(o),Vt=o=>new TextDecoder().decode(o),Jt=o=>{let n="";for(let l=0;l<o.length;l+=8192){const u=o.slice(l,Math.min(l+8192,o.length));n+=String.fromCharCode.apply(null,Array.from(u))}return btoa(n)},qt=o=>{const n=atob(o),l=new Uint8Array(n.length);for(let u=0;u<n.length;u++)l[u]=n.charCodeAt(u);return l},Kt=o=>{try{const n=He(Date.now().toString()+Math.random()).substring(0,Ge().saltLength*2),l=He(o+n).substring(0,8),u=Dt(Ge().key,n),h=Wt(o),v=Mt(h,u),C=Jt(v);return`${n}.${C}.${l}`}catch{throw new Error("Не удалось зашифровать данные")}},Gt=o=>{try{const n=o.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const l=n[0],u=n[1],h=n[2],v=Dt(Ge().key,l),C=qt(u),_=Mt(C,v),d=Vt(_);if(He(d+l).substring(0,8)!==h)throw new Error("Контрольная сумма не совпадает");return d}catch{return""}};var ne;(o=>{o.setKey=n=>{It({key:n})},o.enCode=n=>{try{const l=JSON.stringify(n);return Kt(l)}catch{throw new Error("Не удалось зашифровать объект")}},o.deCode=n=>{try{if(!n||n.length<10)return!1;const l=Gt(n);return l&&JSON.parse(l)||!1}catch{return!1}},o.setSecurityParams=(n,l)=>{It({iterations:n,saltLength:l})}})(ne||(ne={}));var we={};/**
32
32
  * @license React
33
33
  * react-jsx-runtime.production.min.js
34
34
  *
@@ -36,7 +36,7 @@ React keys must be passed directly to JSX without using spread:
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var Mt;function Ht(){if(Mt)return we;Mt=1;var o=k,n=Symbol.for("react.element"),l=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,h=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function C(_,d,w){var m,S={},I=null,A=null;w!==void 0&&(I=""+w),d.key!==void 0&&(I=""+d.key),d.ref!==void 0&&(A=d.ref);for(m in d)c.call(d,m)&&!v.hasOwnProperty(m)&&(S[m]=d[m]);if(_&&_.defaultProps)for(m in d=_.defaultProps,d)S[m]===void 0&&(S[m]=d[m]);return{$$typeof:n,type:_,key:I,ref:A,props:S,_owner:h.current}}return we.Fragment=l,we.jsx=C,we.jsxs=C,we}var He={};/**
39
+ */var Ft;function Ht(){if(Ft)return we;Ft=1;var o=k,n=Symbol.for("react.element"),l=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,h=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,v={key:!0,ref:!0,__self:!0,__source:!0};function C(_,d,w){var g,S={},I=null,A=null;w!==void 0&&(I=""+w),d.key!==void 0&&(I=""+d.key),d.ref!==void 0&&(A=d.ref);for(g in d)u.call(d,g)&&!v.hasOwnProperty(g)&&(S[g]=d[g]);if(_&&_.defaultProps)for(g in d=_.defaultProps,d)S[g]===void 0&&(S[g]=d[g]);return{$$typeof:n,type:_,key:I,ref:A,props:S,_owner:h.current}}return we.Fragment=l,we.jsx=C,we.jsxs=C,we}var Ze={};/**
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 Ft;function Zt(){return Ft||(Ft=1,process.env.NODE_ENV!=="production"&&function(){var o=k,n=Symbol.for("react.element"),l=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),V=Symbol.iterator,Ee="@@iterator";function Re(e){if(e===null||typeof e!="object")return null;var t=V&&e[V]||e[Ee];return typeof t=="function"?t:null}var N=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];xe("error",e,r)}}function xe(e,t,r){{var a=N.ReactDebugCurrentFrame,f=a.getStackAddendum();f!==""&&(t+="%s",r=r.concat([f]));var p=r.map(function(s){return String(s)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var Se=!1,Oe=!1,b=!1,E=!1,D=!1,F;F=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===v||D||e===h||e===w||e===m||E||e===A||Se||Oe||b||typeof e=="object"&&e!==null&&(e.$$typeof===I||e.$$typeof===S||e.$$typeof===C||e.$$typeof===_||e.$$typeof===d||e.$$typeof===F||e.getModuleId!==void 0))}function ae(e,t,r){var a=e.displayName;if(a)return a;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function ie(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 l:return"Portal";case v:return"Profiler";case h:return"StrictMode";case w:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return ie(t)+".Consumer";case C:var r=e;return ie(r._context)+".Provider";case d:return ae(e,e.render,"ForwardRef");case S:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case I:{var f=e,p=f._payload,s=f._init;try{return B(s(p))}catch{return null}}}return null}var M=Object.assign,$=0,K,G,H,je,Te,Ce,Pe;function Ae(){}Ae.__reactDisabledLog=!0;function rt(){{if($===0){K=console.log,G=console.info,H=console.warn,je=console.error,Te=console.group,Ce=console.groupCollapsed,Pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function ot(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:H}),error:M({},e,{value:je}),group:M({},e,{value:Te}),groupCollapsed:M({},e,{value:Ce}),groupEnd:M({},e,{value:Pe})})}$<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=N.ReactCurrentDispatcher,ue;function ee(e,t,r){{if(ue===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);ue=a&&a[1]||""}return`
48
- `+ue+e}}var fe=!1,te;{var nt=typeof WeakMap=="function"?WeakMap:Map;te=new nt}function Be(e,t){if(!e||fe)return"";{var r=te.get(e);if(r!==void 0)return r}var a;fe=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ce.current,ce.current=null,rt();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(j){a=j}Reflect.construct(e,[],s)}else{try{s.call()}catch(j){a=j}e.call(s.prototype)}}else{try{throw Error()}catch(j){a=j}e()}}catch(j){if(j&&a&&typeof j.stack=="string"){for(var i=j.stack.split(`
49
- `),O=a.stack.split(`
50
- `),y=i.length-1,x=O.length-1;y>=1&&x>=0&&i[y]!==O[x];)x--;for(;y>=1&&x>=0;y--,x--)if(i[y]!==O[x]){if(y!==1||x!==1)do if(y--,x--,x<0||i[y]!==O[x]){var P=`
51
- `+i[y].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,P),P}while(y>=1&&x>=0);break}}}finally{fe=!1,ce.current=p,ot(),Error.prepareStackTrace=f}var Y=e?e.displayName||e.name:"",L=Y?ee(Y):"";return typeof e=="function"&&te.set(e,L),L}function at(e,t,r){return Be(e,!1)}function it(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,r){if(e==null)return"";if(typeof e=="function")return Be(e,it(e));if(typeof e=="string")return ee(e);switch(e){case w:return ee("Suspense");case m:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return at(e.render);case S:return re(e.type,t,r);case I:{var a=e,f=a._payload,p=a._init;try{return re(p(f),t,r)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,Ie={},De=N.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);De.setExtraStackFrame(r)}else De.setExtraStackFrame(null)}function st(e,t,r,a,f){{var p=Function.call.bind(J);for(var s in e)if(p(e,s)){var i=void 0;try{if(typeof e[s]!="function"){var O=Error((a||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw O.name="Invariant Violation",O}i=e[s](t,s,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){i=y}i&&!(i instanceof Error)&&(oe(f),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",r,s,typeof i),oe(null)),i instanceof Error&&!(i.message in Ie)&&(Ie[i.message]=!0,oe(f),R("Failed %s type: %s",r,i.message),oe(null))}}}var lt=Array.isArray;function de(e){return lt(e)}function ct(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function ut(e){try{return Me(e),!1}catch{return!0}}function Me(e){return""+e}function Fe(e){if(ut(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ct(e)),Me(e)}var $e=N.ReactCurrentOwner,ft={key:!0,ref:!0,__self:!0,__source:!0},Ne,Le;function dt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function pt(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){typeof e.ref=="string"&&$e.current}function gt(e,t){{var r=function(){Ne||(Ne=!0,R("%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))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function ht(e,t){{var r=function(){Le||(Le=!0,R("%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))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var vt=function(e,t,r,a,f,p,s){var i={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:p};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function bt(e,t,r,a,f){{var p,s={},i=null,O=null;r!==void 0&&(Fe(r),i=""+r),pt(t)&&(Fe(t.key),i=""+t.key),dt(t)&&(O=t.ref,mt(t));for(p in t)J.call(t,p)&&!ft.hasOwnProperty(p)&&(s[p]=t[p]);if(e&&e.defaultProps){var y=e.defaultProps;for(p in y)s[p]===void 0&&(s[p]=y[p])}if(i||O){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&gt(s,x),O&&ht(s,x)}return vt(e,i,O,f,a,$e.current,s)}}var pe=N.ReactCurrentOwner,Ue=N.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);Ue.setExtraStackFrame(r)}else Ue.setExtraStackFrame(null)}var me;me=!1;function ge(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function ze(){{if(pe.current){var e=B(pe.current.type);if(e)return`
47
+ */var $t;function Zt(){return $t||($t=1,process.env.NODE_ENV!=="production"&&function(){var o=k,n=Symbol.for("react.element"),l=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),V=Symbol.iterator,Re="@@iterator";function Se(e){if(e===null||typeof e!="object")return null;var t=V&&e[V]||e[Re];return typeof t=="function"?t:null}var N=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];xe("error",e,r)}}function xe(e,t,r){{var a=N.ReactDebugCurrentFrame,f=a.getStackAddendum();f!==""&&(t+="%s",r=r.concat([f]));var p=r.map(function(s){return String(s)});p.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,p)}}var je=!1,Oe=!1,b=!1,E=!1,D=!1,F;F=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===v||D||e===h||e===w||e===g||E||e===A||je||Oe||b||typeof e=="object"&&e!==null&&(e.$$typeof===I||e.$$typeof===S||e.$$typeof===C||e.$$typeof===_||e.$$typeof===d||e.$$typeof===F||e.getModuleId!==void 0))}function ae(e,t,r){var a=e.displayName;if(a)return a;var f=t.displayName||t.name||"";return f!==""?r+"("+f+")":r}function ie(e){return e.displayName||"Context"}function B(e){if(e==null)return null;if(typeof e.tag=="number"&&R("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 u:return"Fragment";case l:return"Portal";case v:return"Profiler";case h:return"StrictMode";case w:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return ie(t)+".Consumer";case C:var r=e;return ie(r._context)+".Provider";case d:return ae(e,e.render,"ForwardRef");case S:var a=e.displayName||null;return a!==null?a:B(e.type)||"Memo";case I:{var f=e,p=f._payload,s=f._init;try{return B(s(p))}catch{return null}}}return null}var M=Object.assign,$=0,K,G,H,Te,Ce,Pe,Ae;function Be(){}Be.__reactDisabledLog=!0;function ot(){{if($===0){K=console.log,G=console.info,H=console.warn,Te=console.error,Ce=console.group,Pe=console.groupCollapsed,Ae=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}$++}}function nt(){{if($--,$===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:K}),info:M({},e,{value:G}),warn:M({},e,{value:H}),error:M({},e,{value:Te}),group:M({},e,{value:Ce}),groupCollapsed:M({},e,{value:Pe}),groupEnd:M({},e,{value:Ae})})}$<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ce=N.ReactCurrentDispatcher,ue;function ee(e,t,r){{if(ue===void 0)try{throw Error()}catch(f){var a=f.stack.trim().match(/\n( *(at )?)/);ue=a&&a[1]||""}return`
48
+ `+ue+e}}var fe=!1,te;{var at=typeof WeakMap=="function"?WeakMap:Map;te=new at}function Ie(e,t){if(!e||fe)return"";{var r=te.get(e);if(r!==void 0)return r}var a;fe=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=ce.current,ce.current=null,ot();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(O){a=O}Reflect.construct(e,[],s)}else{try{s.call()}catch(O){a=O}e.call(s.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var i=O.stack.split(`
49
+ `),j=a.stack.split(`
50
+ `),y=i.length-1,x=j.length-1;y>=1&&x>=0&&i[y]!==j[x];)x--;for(;y>=1&&x>=0;y--,x--)if(i[y]!==j[x]){if(y!==1||x!==1)do if(y--,x--,x<0||i[y]!==j[x]){var P=`
51
+ `+i[y].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,P),P}while(y>=1&&x>=0);break}}}finally{fe=!1,ce.current=p,nt(),Error.prepareStackTrace=f}var Y=e?e.displayName||e.name:"",L=Y?ee(Y):"";return typeof e=="function"&&te.set(e,L),L}function it(e,t,r){return Ie(e,!1)}function st(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function re(e,t,r){if(e==null)return"";if(typeof e=="function")return Ie(e,st(e));if(typeof e=="string")return ee(e);switch(e){case w:return ee("Suspense");case g:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return it(e.render);case S:return re(e.type,t,r);case I:{var a=e,f=a._payload,p=a._init;try{return re(p(f),t,r)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,De={},Me=N.ReactDebugCurrentFrame;function oe(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);Me.setExtraStackFrame(r)}else Me.setExtraStackFrame(null)}function lt(e,t,r,a,f){{var p=Function.call.bind(J);for(var s in e)if(p(e,s)){var i=void 0;try{if(typeof e[s]!="function"){var j=Error((a||"React class")+": "+r+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw j.name="Invariant Violation",j}i=e[s](t,s,a,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(y){i=y}i&&!(i instanceof Error)&&(oe(f),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",r,s,typeof i),oe(null)),i instanceof Error&&!(i.message in De)&&(De[i.message]=!0,oe(f),R("Failed %s type: %s",r,i.message),oe(null))}}}var ct=Array.isArray;function de(e){return ct(e)}function ut(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,r=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r}}function ft(e){try{return Fe(e),!1}catch{return!0}}function Fe(e){return""+e}function $e(e){if(ft(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ut(e)),Fe(e)}var Ne=N.ReactCurrentOwner,dt={key:!0,ref:!0,__self:!0,__source:!0},Le,Ue;function pt(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function gt(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function mt(e,t){typeof e.ref=="string"&&Ne.current}function ht(e,t){{var r=function(){Le||(Le=!0,R("%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))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}}function vt(e,t){{var r=function(){Ue||(Ue=!0,R("%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))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}}var bt=function(e,t,r,a,f,p,s){var i={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:p};return i._store={},Object.defineProperty(i._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(i,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(i,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(i.props),Object.freeze(i)),i};function yt(e,t,r,a,f){{var p,s={},i=null,j=null;r!==void 0&&($e(r),i=""+r),gt(t)&&($e(t.key),i=""+t.key),pt(t)&&(j=t.ref,mt(t));for(p in t)J.call(t,p)&&!dt.hasOwnProperty(p)&&(s[p]=t[p]);if(e&&e.defaultProps){var y=e.defaultProps;for(p in y)s[p]===void 0&&(s[p]=y[p])}if(i||j){var x=typeof e=="function"?e.displayName||e.name||"Unknown":e;i&&ht(s,x),j&&vt(s,x)}return bt(e,i,j,f,a,Ne.current,s)}}var pe=N.ReactCurrentOwner,ze=N.ReactDebugCurrentFrame;function z(e){if(e){var t=e._owner,r=re(e.type,e._source,t?t.type:null);ze.setExtraStackFrame(r)}else ze.setExtraStackFrame(null)}var ge;ge=!1;function me(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ye(){{if(pe.current){var e=B(pe.current.type);if(e)return`
52
52
 
53
- Check the render method of \``+e+"`."}return""}}function yt(e){return""}var Ye={};function xt(e){{var t=ze();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
53
+ Check the render method of \``+e+"`."}return""}}function xt(e){return""}var We={};function kt(e){{var t=Ye();if(!t){var r=typeof e=="string"?e:e.displayName||e.name;r&&(t=`
54
54
 
55
- Check the top-level render call using <`+r+">.")}return t}}function We(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=xt(t);if(Ye[r])return;Ye[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),z(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),z(null)}}function Ve(e,t){{if(typeof e!="object")return;if(de(e))for(var r=0;r<e.length;r++){var a=e[r];ge(a)&&We(a,t)}else if(ge(e))e._store&&(e._store.validated=!0);else if(e){var f=Re(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),s;!(s=p.next()).done;)ge(s.value)&&We(s.value,t)}}}function kt(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===d||t.$$typeof===S))r=t.propTypes;else return;if(r){var a=B(t);st(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!me){me=!0;var f=B(t);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&R("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),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){z(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),z(null);break}}e.ref!==null&&(z(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}var Je={};function qe(e,t,r,a,f,p){{var s=U(e);if(!s){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=yt();O?i+=O:i+=ze();var y;e===null?y="null":de(e)?y="array":e!==void 0&&e.$$typeof===n?(y="<"+(B(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,i)}var x=bt(e,t,r,f,p);if(x==null)return x;if(s){var P=t.children;if(P!==void 0)if(a)if(de(P)){for(var Y=0;Y<P.length;Y++)Ve(P[Y],e);Object.freeze&&Object.freeze(P)}else R("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 Ve(P,e)}if(J.call(t,"key")){var L=B(e),j=Object.keys(t).filter(function(jt){return jt!=="key"}),he=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";if(!Je[L+he]){var Ot=j.length>0?"{"+j.join(": ..., ")+": ...}":"{}";R(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+r+">.")}return t}}function Ve(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var r=kt(t);if(We[r])return;We[r]=!0;var a="";e&&e._owner&&e._owner!==pe.current&&(a=" It was passed a child from "+B(e._owner.type)+"."),z(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,a),z(null)}}function Je(e,t){{if(typeof e!="object")return;if(de(e))for(var r=0;r<e.length;r++){var a=e[r];me(a)&&Ve(a,t)}else if(me(e))e._store&&(e._store.validated=!0);else if(e){var f=Se(e);if(typeof f=="function"&&f!==e.entries)for(var p=f.call(e),s;!(s=p.next()).done;)me(s.value)&&Ve(s.value,t)}}}function _t(e){{var t=e.type;if(t==null||typeof t=="string")return;var r;if(typeof t=="function")r=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===d||t.$$typeof===S))r=t.propTypes;else return;if(r){var a=B(t);lt(r,e.props,"prop",a,e)}else if(t.PropTypes!==void 0&&!ge){ge=!0;var f=B(t);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wt(e){{for(var t=Object.keys(e.props),r=0;r<t.length;r++){var a=t[r];if(a!=="children"&&a!=="key"){z(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),z(null);break}}e.ref!==null&&(z(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),z(null))}}var qe={};function Ke(e,t,r,a,f,p){{var s=U(e);if(!s){var i="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(i+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var j=xt();j?i+=j:i+=Ye();var y;e===null?y="null":de(e)?y="array":e!==void 0&&e.$$typeof===n?(y="<"+(B(e.type)||"Unknown")+" />",i=" Did you accidentally export a JSX literal instead of a component?"):y=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",y,i)}var x=yt(e,t,r,f,p);if(x==null)return x;if(s){var P=t.children;if(P!==void 0)if(a)if(de(P)){for(var Y=0;Y<P.length;Y++)Je(P[Y],e);Object.freeze&&Object.freeze(P)}else R("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 Je(P,e)}if(J.call(t,"key")){var L=B(e),O=Object.keys(t).filter(function(Tt){return Tt!=="key"}),he=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[L+he]){var Ot=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";R(`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} />`,he,L,Ot,L),Je[L+he]=!0}}return e===c?_t(x):kt(x),x}}function wt(e,t,r){return qe(e,t,r,!0)}function Et(e,t,r){return qe(e,t,r,!1)}var Rt=Et,St=wt;He.Fragment=c,He.jsx=Rt,He.jsxs=St}()),He}process.env.NODE_ENV==="production"?Ht():Zt();const Xt="0.0.37",$t={version:Xt},Z={},tt={module:"",v:$t.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function se(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}se().elcrm||(se().elcrm={}),Object.assign(se().elcrm,{router:$t.version});function X(o){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...o}:n.ROUTER_PARAMS={...tt,...o}}function T(){return se().ROUTER_PARAMS||tt}function be(o){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...o}:n.ROUTER_PARAMS.LISTENER={...o}}function Q(){return se().ROUTER_PARAMS.LISTENER||tt.LISTENER}var ye;(o=>{function n(){var b;let E=sessionStorage.getItem("f");if(E){if(E=ne.deCode(E),!E)return!1;X({id:E.id,tab:E.tab,page:E.page,module:E.module,time:E.time,payment:{active:!0},module_admin:E.module_admin})}else X({id:0,tab:"",page:(b=localStorage.getItem("d"))!=null&&b.length?T().page:T().auth,module:T().module});return!0}function l(){Z.id=0,Z.tab="",Z.page=T().page,Z.module=T().module}o.Reset=l;function c({module:b=T().module,page:E=T().page,auth:D=T().auth}){X({page:E,module:b,auth:D}),n()}o.Default=c;function h(b){let E=U=>(X({page:U}),U);const[D,F]=k.useState(C()||b&&E(b)||T().page);return be({page:U=>{F(U)}}),D}o.usePage=h;function v(b,E=!0,D={}){X({page:b,...D}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&Q().page(b)}o.setPage=v;function C(){return T().page}o.getPage=C;function _(b){return T().page===b}o.isPage=_;function d(b,E){const[D,F]=k.useState(m()||b||T().module);return be({module:F}),D}o.useModule=d;function w(b,E=!0){X({module:b}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&Q().module(b)}o.setModule=w;function m(){return T().module||""}o.getModule=m;function S(b){return T().module===b}o.isModule=S;function I(b,E){if(typeof b!="function"){const[D,F]=k.useState(!E),[U,ae]=k.useState(b||V());return be({tabs:ae}),E&&k.useEffect(()=>{F(!0)},[]),[U,D]}else be({tabs:b})}o.useTabs=I;async function A(b,E=!0){X({tab:b}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&(Q().tabs&&Q().tabs(b))}o.setTabs=A;function V(){return T().tab}o.getTabs=V;function Ee(b){return T().tab===b}o.isTabs=Ee;function Re(b){if(typeof b!="function"){const[E,D]=k.useState(b||xe());return be({id:F=>{D(F)}}),E}else be({id:b})}o.useId=Re;function N(b){}o.subId=N;async function R(b,E=!0){X({id:b}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&Q().id(b)}o.setId=R;function xe(){return T().id}o.getId=xe;function Se(b){return Number(T().id)===b}o.isId=Se;async function Oe(b){var E,D,F,U,ae,ie,B,M;const{page:$,module:K,tab:G,id:H}=b;$!==void 0&&(Z.page=$),K!==void 0&&(Z.module=K),G!==void 0&&(Z.tab=G),H!==void 0&&(Z.id=H),X({...Z}),H!==void 0&&((D=(E=Q()).id)==null||D.call(E,H)),G!==void 0&&((U=(F=Q()).tabs)==null||U.call(F,G)),K!==void 0&&((ie=(ae=Q()).module)==null||ie.call(ae,K)),$!==void 0&&((M=(B=Q()).page)==null||M.call(B,$)),sessionStorage.setItem(T().STORAGE,ne.enCode(T()))}o.navigate=Oe})(ye||(ye={}));let Ze={};function Qt(){const[o,n]=k.useState([]);return Ze.set=l=>{n([...o,l])},Ze.del=l=>{o.forEach((c,h)=>{c.key===l&&o.splice(h,1)}),n(o)},o.length===0?u.jsx(u.Fragment,{}):u.jsx("div",{className:"notice",children:o.map(l=>l.item)})}function er(o){let n=new Date().getTime();o.key=n,Ze.set({item:u.jsx(tr,{data:o},n),key:n})}function tr(o){const n=o.data;let[l]=k.useState("show"),[c,h]=k.useState(!1);k.useEffect(()=>{setTimeout(function(){h(!0),Ze.del(n.key)},5e3)},[n.key]);let v;switch(n.type){case"error":v=u.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":v=u.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":v=u.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:v="icon fa fa-exclamation-circle";break}return u.jsx(u.Fragment,{children:c?u.jsx(u.Fragment,{}):u.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":l,children:[u.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:v}),u.jsx("span",{className:"text",children:n.text})]})})}let Nt={Send:er,Init:Qt},Xe=()=>{};const rr=({children:o,title:n,isOverlay:l=!0})=>{const[c,h]=k.useState(!1);return Xe=()=>{h(!0),setTimeout(()=>{Lt.onClose()},300)},u.jsx("div",{className:`footer-menu-overlay ${l?"is-overlay":""} ${c?"closing":""}`,onClick:Xe,children:u.jsxs("div",{className:`footer-menu-popup-book ${c?"closing":""}`,onClick:v=>v.stopPropagation(),children:[u.jsxs("div",{className:"footer-menu-header",children:[u.jsx("h3",{children:n}),u.jsx("button",{className:"footer-menu-close-btn",onClick:Xe,children:"✕"})]}),o]})})},Lt=[],Ut=(o,n)=>o.findIndex(l=>(l==null?void 0:l.page)===n),or=({actions:o,children:n,className:l,page:c,setPage:h})=>{const[v,C]=k.useState(null),[_,d]=k.useState(c?Ut(o||[],c):0);return Lt.onClose=()=>{C(null),d(c?Ut(o||[],c):0)},k.useEffect(()=>{document.addEventListener("blur",()=>{document.querySelector("footer").style.display="flex"}),document.addEventListener("focus",()=>{document.querySelector("footer").style.display="none"})},[]),u.jsxs(u.Fragment,{children:[v,u.jsxs("footer",{className:l,children:[n,o&&u.jsx("div",{className:"actions-book",children:o.map((w,m)=>u.jsx("div",{"data-active":_===m?"true":"false",onClick:()=>{w.page&&(d(m),h==null||h(w.page)),w.callback&&(w.callback(),d(m)),w.component&&(_===m?Xe():(C(w.component),d(m)))},children:w.icon},m))})]})]})},g=window.Telegram.WebApp,le={is:!1,MainButton:{},BackButton:{}};let W={};W.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"},W.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":"#ffffff"},W.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"},g.getUser=()=>{var o;return((o=g.initDataUnsafe)==null?void 0:o.user)===void 0?{}:g.initDataUnsafe},g.Notice=(o,n,l)=>{var c,h;n!==void 0?(Nt.Send({type:o,text:n,thema:l}),(c=g.HapticFeedback)==null||c.notificationOccurred(o)):(Nt.Send(o),(h=g.HapticFeedback)==null||h.notificationOccurred(o.type))},g.MainButton.callback=[],g.MainButton.set=o=>{le.is?le.MainButton.set(o):(g.MainButton.callback.forEach(n=>{g.MainButton.offClick(n)}),g.MainButton.callback=[],typeof o=="boolean"?g.MainButton.isVisible=!1:(g.MainButton.text=o.text,o.color&&(g.MainButton.color=o.color),o.textColor&&(g.MainButton.textColor=o.textColor),g.MainButton.isVisible=!0,g.MainButton.isActive=o.isActive===void 0?!0:o.isActive,g.MainButton.callback.push(()=>{var n;o.page===void 0?(n=o.callback)==null||n.call(o):ye.setPage(o.page)}),g.MainButton.onClick(g.MainButton.callback[0])))},g.BackButton.state=[!1],g.BackButton.listen=[],g.BackButton.router=o=>{o===!1?(g.BackButton.isVisible=!1,g.BackButton.offClick(g.BackButton.listen[0]),g.BackButton.listen.shift(),g.BackButton.state.length!==1&&g.BackButton.state.pop()):(g.BackButton.isVisible=!0,g.BackButton.offClick(g.BackButton.listen[0]),g.BackButton.listen.shift(),g.BackButton.listen.push(()=>{var l;let n=g.BackButton.state.pop();n.page!==void 0?ye.setPage(n.page):(l=n.callback)==null||l.call(n)}),g.BackButton.onClick(g.BackButton.listen[0]))},g.BackButton.set=o=>{le.is?le.BackButton.set(o):(g.BackButton.state.push(o),g.BackButton.router(o))},g.Init=({dev:o})=>{if(o){let[n,l]=k.useState(!1),[c,h]=k.useState(!1),[v,C]=k.useState("dark"),[_,d]=k.useState(!1),[w,m]=k.useState(!1);le.is=!0,le.MainButton.set=l,le.BackButton.set=h,k.useEffect(()=>{W[v]["--tg-theme-bg-color-alpha"]=W[v]["--tg-theme-bg-color"]+"b3",W[v]["--tg-theme-secondary-bg-color-alpha"]=W[v]["--tg-theme-secondary-bg-color"]+"d3";for(let A in W[v])document.documentElement.style.setProperty(A,W[v][A]);g.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let S=A=>{for(let V in W[A])document.documentElement.style.setProperty(V,W[A][V]);C(A),d(!1)},I=()=>{d(!1),m(!0)};return u.jsxs(u.Fragment,{children:[u.jsxs("header",{className:"debug",children:[c===!1?u.jsx("div",{className:"b",children:"Отмена"}):u.jsx("div",{onClick:()=>{var A;c.page===void 0?(A=c.callback)==null||A.call(c):ye.setPage(c.page)},className:"b",children:"Назад"}),u.jsx("div",{className:"o",onClick:()=>d(!_),children:"Меню"})]}),n&&u.jsx("div",{className:"mb",children:u.jsx("button",{onClick:()=>{n.page&&ye.setPage(n.page),n.callback&&n.callback()},children:n.text})}),_?u.jsxs("div",{className:"tm",children:[u.jsxs("ul",{children:[u.jsx("li",{children:u.jsx("button",{onClick:I,children:"Authorization"})}),u.jsx("li",{})]}),u.jsxs("ul",{children:[u.jsxs("li",{children:[u.jsx("button",{children:"Thema"}),u.jsxs("ol",{children:[u.jsx("li",{children:u.jsx("button",{onClick:()=>S("dark"),children:"Dark"})}),u.jsx("li",{children:u.jsx("button",{onClick:()=>S("light"),children:"Light"})}),u.jsx("li",{children:u.jsx("button",{onClick:()=>S("users"),children:"Users"})})]})]}),u.jsx("li",{children:u.jsx("button",{onClick:()=>d(!_),children:"Closed"})})]})]}):"",w?u.jsx(nr,{setAuthorization:m}):""]})}else return k.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",g.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",g.themeParams.bg_color+"b3"),g.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),u.jsx(u.Fragment,{})},g.Modal=et,g.Footer=or,g.FooterMenu=rr;const nr=({setAuthorization:o})=>{let n={},l=()=>{localStorage.setItem("auth",n)};return u.jsx("div",{className:"ta",children:u.jsxs("div",{className:"--body",children:[u.jsx("fieldset",{}),u.jsx("div",{onClick:l,children:" Сохранить "})]})})};return g});
60
+ <%s key={someKey} {...props} />`,he,L,Ot,L),qe[L+he]=!0}}return e===u?wt(x):_t(x),x}}function Et(e,t,r){return Ke(e,t,r,!0)}function Rt(e,t,r){return Ke(e,t,r,!1)}var St=Rt,jt=Et;Ze.Fragment=u,Ze.jsx=St,Ze.jsxs=jt}()),Ze}process.env.NODE_ENV==="production"?Ht():Zt();const Xt="0.0.37",Nt={version:Xt},Z={},rt={module:"",v:Nt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{}};function se(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}se().elcrm||(se().elcrm={}),Object.assign(se().elcrm,{router:Nt.version});function X(o){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS={...n.ROUTER_PARAMS,...o}:n.ROUTER_PARAMS={...rt,...o}}function T(){return se().ROUTER_PARAMS||rt}function be(o){const n=se();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...o}:n.ROUTER_PARAMS.LISTENER={...o}}function Q(){return se().ROUTER_PARAMS.LISTENER||rt.LISTENER}var ye;(o=>{function n(){var b;let E=sessionStorage.getItem("f");if(E){if(E=ne.deCode(E),!E)return!1;X({id:E.id,tab:E.tab,page:E.page,module:E.module,time:E.time,payment:{active:!0},module_admin:E.module_admin})}else X({id:0,tab:"",page:(b=localStorage.getItem("d"))!=null&&b.length?T().page:T().auth,module:T().module});return!0}function l(){Z.id=0,Z.tab="",Z.page=T().page,Z.module=T().module}o.Reset=l;function u({module:b=T().module,page:E=T().page,auth:D=T().auth}){X({page:E,module:b,auth:D}),n()}o.Default=u;function h(b){let E=U=>(X({page:U}),U);const[D,F]=k.useState(C()||b&&E(b)||T().page);return be({page:U=>{F(U)}}),D}o.usePage=h;function v(b,E=!0,D={}){X({page:b,...D}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&Q().page(b)}o.setPage=v;function C(){return T().page}o.getPage=C;function _(b){return T().page===b}o.isPage=_;function d(b,E){const[D,F]=k.useState(g()||b||T().module);return be({module:F}),D}o.useModule=d;function w(b,E=!0){X({module:b}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&Q().module(b)}o.setModule=w;function g(){return T().module||""}o.getModule=g;function S(b){return T().module===b}o.isModule=S;function I(b,E){if(typeof b!="function"){const[D,F]=k.useState(!E),[U,ae]=k.useState(b||V());return be({tabs:ae}),E&&k.useEffect(()=>{F(!0)},[]),[U,D]}else be({tabs:b})}o.useTabs=I;async function A(b,E=!0){X({tab:b}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&(Q().tabs&&Q().tabs(b))}o.setTabs=A;function V(){return T().tab}o.getTabs=V;function Re(b){return T().tab===b}o.isTabs=Re;function Se(b){if(typeof b!="function"){const[E,D]=k.useState(b||xe());return be({id:F=>{D(F)}}),E}else be({id:b})}o.useId=Se;function N(b){}o.subId=N;async function R(b,E=!0){X({id:b}),sessionStorage.setItem(T().STORAGE,ne.enCode(T())),E&&Q().id(b)}o.setId=R;function xe(){return T().id}o.getId=xe;function je(b){return Number(T().id)===b}o.isId=je;async function Oe(b){var E,D,F,U,ae,ie,B,M;const{page:$,module:K,tab:G,id:H}=b;$!==void 0&&(Z.page=$),K!==void 0&&(Z.module=K),G!==void 0&&(Z.tab=G),H!==void 0&&(Z.id=H),X({...Z}),H!==void 0&&((D=(E=Q()).id)==null||D.call(E,H)),G!==void 0&&((U=(F=Q()).tabs)==null||U.call(F,G)),K!==void 0&&((ie=(ae=Q()).module)==null||ie.call(ae,K)),$!==void 0&&((M=(B=Q()).page)==null||M.call(B,$)),sessionStorage.setItem(T().STORAGE,ne.enCode(T()))}o.navigate=Oe})(ye||(ye={}));let Xe={};function Qt(){const[o,n]=k.useState([]);return Xe.set=l=>{n([...o,l])},Xe.del=l=>{o.forEach((u,h)=>{u.key===l&&o.splice(h,1)}),n(o)},o.length===0?c.jsx(c.Fragment,{}):c.jsx("div",{className:"notice",children:o.map(l=>l.item)})}function er(o){let n=new Date().getTime();o.key=n,Xe.set({item:c.jsx(tr,{data:o},n),key:n})}function tr(o){const n=o.data;let[l]=k.useState("show"),[u,h]=k.useState(!1);k.useEffect(()=>{setTimeout(function(){h(!0),Xe.del(n.key)},5e3)},[n.key]);let v;switch(n.type){case"error":v=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":v=c.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":v=c.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:v="icon fa fa-exclamation-circle";break}return c.jsx(c.Fragment,{children:u?c.jsx(c.Fragment,{}):c.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":l,children:[c.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:v}),c.jsx("span",{className:"text",children:n.text})]})})}let Qe={Send:er,Init:Qt},Ee=()=>{};const rr=({children:o,title:n,isOverlay:l=!0})=>{const[u,h]=k.useState(!1);return Ee=()=>{h(!0),setTimeout(()=>{Lt.onClose()},300)},c.jsx("div",{className:`footer-menu-overlay ${l?"is-overlay":""} ${u?"closing":""}`,onClick:Ee,children:c.jsxs("div",{className:`footer-menu-popup-book ${u?"closing":""}`,onClick:v=>v.stopPropagation(),children:[c.jsxs("div",{className:"footer-menu-header",children:[c.jsx("h3",{children:n}),c.jsx("button",{className:"footer-menu-close-btn",onClick:Ee,children:"✕"})]}),o]})})},Lt=[],Ut=(o,n)=>o.findIndex(l=>(l==null?void 0:l.page)===n),or=({actions:o,children:n,className:l,page:u,setPage:h})=>{const[v,C]=k.useState(null),[_,d]=k.useState(u?Ut(o||[],u):0);return Lt.onClose=()=>{C(null),d(u?Ut(o||[],u):0)},k.useEffect(()=>{document.addEventListener("blur",()=>{document.querySelector("footer").style.display="flex"}),document.addEventListener("focus",()=>{document.querySelector("footer").style.display="none"})},[]),c.jsxs(c.Fragment,{children:[v,c.jsxs("footer",{className:l,children:[n,o&&c.jsx("div",{className:"actions-book",children:o.map((w,g)=>c.jsx("div",{"data-active":_===g?"true":"false",onClick:()=>{w.page&&(d(g),h==null||h(w.page)),w.callback&&(w.callback(),d(g)),w.component&&(_===g?Ee():(C(w.component),d(g)))},children:w.icon},g))})]})]})},m=window.Telegram.WebApp,le={is:!1,MainButton:{},BackButton:{}};let W={};W.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"},W.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":"#ffffff"},W.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"},m.getUser=()=>{var o;return((o=m.initDataUnsafe)==null?void 0:o.user)===void 0?{}:m.initDataUnsafe},m.Notice=(o,n,l)=>{var u,h;n!==void 0?(Qe.Send({type:o,text:n,thema:l}),(u=m.HapticFeedback)==null||u.notificationOccurred(o)):(Qe.Send(o),(h=m.HapticFeedback)==null||h.notificationOccurred(o.type))},m.MainButton.callback=[],m.MainButton.set=o=>{le.is?le.MainButton.set(o):(m.MainButton.callback.forEach(n=>{m.MainButton.offClick(n)}),m.MainButton.callback=[],typeof o=="boolean"?m.MainButton.isVisible=!1:(m.MainButton.text=o.text,o.color&&(m.MainButton.color=o.color),o.textColor&&(m.MainButton.textColor=o.textColor),m.MainButton.isVisible=!0,m.MainButton.isActive=o.isActive===void 0?!0:o.isActive,m.MainButton.callback.push(()=>{var n;o.page===void 0?(n=o.callback)==null||n.call(o):ye.setPage(o.page)}),m.MainButton.onClick(m.MainButton.callback[0])))},m.BackButton.state=[!1],m.BackButton.listen=[],m.BackButton.router=o=>{o===!1?(m.BackButton.isVisible=!1,m.BackButton.offClick(m.BackButton.listen[0]),m.BackButton.listen.shift(),m.BackButton.state.length!==1&&m.BackButton.state.pop()):(m.BackButton.isVisible=!0,m.BackButton.offClick(m.BackButton.listen[0]),m.BackButton.listen.shift(),m.BackButton.listen.push(()=>{var l;let n=m.BackButton.state.pop();n.page!==void 0?ye.setPage(n.page):(l=n.callback)==null||l.call(n)}),m.BackButton.onClick(m.BackButton.listen[0]))},m.BackButton.set=o=>{le.is?le.BackButton.set(o):(m.BackButton.state.push(o),m.BackButton.router(o))},m.Init=({dev:o})=>{if(o){let[n,l]=k.useState(!1),[u,h]=k.useState(!1),[v,C]=k.useState("dark"),[_,d]=k.useState(!1),[w,g]=k.useState(!1);le.is=!0,le.MainButton.set=l,le.BackButton.set=h,k.useEffect(()=>{W[v]["--tg-theme-bg-color-alpha"]=W[v]["--tg-theme-bg-color"]+"b3",W[v]["--tg-theme-secondary-bg-color-alpha"]=W[v]["--tg-theme-secondary-bg-color"]+"d3";for(let A in W[v])document.documentElement.style.setProperty(A,W[v][A]);m.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let S=A=>{for(let V in W[A])document.documentElement.style.setProperty(V,W[A][V]);C(A),d(!1)},I=()=>{d(!1),g(!0)};return c.jsxs(c.Fragment,{children:[c.jsxs("header",{className:"debug",children:[u===!1?c.jsx("div",{className:"b",children:"Отмена"}):c.jsx("div",{onClick:()=>{var A;u.page===void 0?(A=u.callback)==null||A.call(u):ye.setPage(u.page)},className:"b",children:"Назад"}),c.jsx("div",{className:"o",onClick:()=>d(!_),children:"Меню"})]}),c.jsx(Qe.Init,{}),n&&c.jsx("div",{className:"mb",children:c.jsx("button",{onClick:()=>{n.page&&ye.setPage(n.page),n.callback&&n.callback()},children:n.text})}),_?c.jsxs("div",{className:"tm",children:[c.jsxs("ul",{children:[c.jsx("li",{children:c.jsx("button",{onClick:I,children:"Authorization"})}),c.jsx("li",{})]}),c.jsxs("ul",{children:[c.jsxs("li",{children:[c.jsx("button",{children:"Thema"}),c.jsxs("ol",{children:[c.jsx("li",{children:c.jsx("button",{onClick:()=>S("dark"),children:"Dark"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>S("light"),children:"Light"})}),c.jsx("li",{children:c.jsx("button",{onClick:()=>S("users"),children:"Users"})})]})]}),c.jsx("li",{children:c.jsx("button",{onClick:()=>d(!_),children:"Closed"})})]})]}):"",w?c.jsx(nr,{setAuthorization:g}):""]})}else return k.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",m.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",m.themeParams.bg_color+"b3"),m.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),c.jsx(c.Fragment,{children:c.jsx(Qe.Init,{})})},m.Modal=tt,m.Footer=or,m.FooterMenu=rr,m.toggleFooterMenu=Ee;const nr=({setAuthorization:o})=>{let n={},l=()=>{localStorage.setItem("auth",n)};return c.jsx("div",{className:"ta",children:c.jsxs("div",{className:"--body",children:[c.jsx("fieldset",{}),c.jsx("div",{onClick:l,children:" Сохранить "})]})})};return m});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",