@elcrm/telegram 0.0.123 → 0.0.125

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
@@ -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 qt;function ir(){if(qt)return $e;qt=1;var r=R,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 w(y,u,x){var _,m={},g=null,z=null;x!==void 0&&(g=""+x),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(z=u.ref);for(_ in u)l.call(u,_)&&!p.hasOwnProperty(_)&&(m[_]=u[_]);if(y&&y.defaultProps)for(_ in u=y.defaultProps,u)m[_]===void 0&&(m[_]=u[_]);return{$$typeof:o,type:y,key:g,ref:z,props:m,_owner:c.current}}return $e.Fragment=a,$e.jsx=w,$e.jsxs=w,$e}var Te={};/**
10
+ */var qt;function ir(){if(qt)return $e;qt=1;var r=R,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 w(y,u,x){var m,_={},g=null,z=null;x!==void 0&&(g=""+x),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(z=u.ref);for(m in u)l.call(u,m)&&!p.hasOwnProperty(m)&&(_[m]=u[m]);if(y&&y.defaultProps)for(m in u=y.defaultProps,u)_[m]===void 0&&(_[m]=u[m]);return{$$typeof:o,type:y,key:g,ref:z,props:_,_owner:c.current}}return $e.Fragment=a,$e.jsx=w,$e.jsxs=w,$e}var Te={};/**
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 Vt;function sr(){return Vt||(Vt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,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"),w=Symbol.for("react.provider"),y=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),$=Symbol.iterator,Ne="@@iterator";function ye(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[Ne];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Ie("error",e,n)}}function Ie(e,t,n){{var s=L.ReactDebugCurrentFrame,h=s.getStackAddendum();h!==""&&(t+="%s",n=n.concat([h]));var b=n.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Me=!1,Pe=!1,De=!1,Fe=!1,k=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||k||e===c||e===x||e===_||Fe||e===z||Me||Pe||De||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===w||e.$$typeof===y||e.$$typeof===u||e.$$typeof===E||e.getModuleId!==void 0))}function M(e,t,n){var s=e.displayName;if(s)return s;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"&&A("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 x:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return I(t)+".Consumer";case w:var n=e;return I(n._context)+".Provider";case u:return M(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case g:{var h=e,b=h._payload,d=h._init;try{return B(d(b))}catch{return null}}}return null}var D=Object.assign,U=0,pe,X,Y,Q,ee,Le,We;function Ue(){}Ue.__reactDisabledLog=!0;function _t(){{if(U===0){pe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Le=console.groupCollapsed,We=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function mt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:pe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:Le}),groupEnd:D({},e,{value:We})})}U<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=L.ReactCurrentDispatcher,ke;function ne(e,t,n){{if(ke===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);ke=s&&s[1]||""}return`
18
+ */var Vt;function sr(){return Vt||(Vt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,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"),w=Symbol.for("react.provider"),y=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),$=Symbol.iterator,Ne="@@iterator";function ye(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[Ne];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Ie("error",e,n)}}function Ie(e,t,n){{var s=L.ReactDebugCurrentFrame,h=s.getStackAddendum();h!==""&&(t+="%s",n=n.concat([h]));var b=n.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Me=!1,Pe=!1,De=!1,Fe=!1,k=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||k||e===c||e===x||e===m||Fe||e===z||Me||Pe||De||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y||e.$$typeof===u||e.$$typeof===E||e.getModuleId!==void 0))}function M(e,t,n){var s=e.displayName;if(s)return s;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"&&A("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 x:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return I(t)+".Consumer";case w:var n=e;return I(n._context)+".Provider";case u:return M(e,e.render,"ForwardRef");case _:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case g:{var h=e,b=h._payload,d=h._init;try{return B(d(b))}catch{return null}}}return null}var D=Object.assign,U=0,pe,X,Y,Q,ee,Le,We;function Ue(){}Ue.__reactDisabledLog=!0;function _t(){{if(U===0){pe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Le=console.groupCollapsed,We=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function mt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:pe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:Le}),groupEnd:D({},e,{value:We})})}U<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=L.ReactCurrentDispatcher,ke;function ne(e,t,n){{if(ke===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);ke=s&&s[1]||""}return`
19
19
  `+ke+e}}var we=!1,ae;{var vt=typeof WeakMap=="function"?WeakMap:Map;ae=new vt}function qe(e,t){if(!e||we)return"";{var n=ae.get(e);if(n!==void 0)return n}var s;we=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=xe.current,xe.current=null,_t();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
20
  `),C=s.stack.split(`
21
21
  `),S=f.length-1,j=C.length-1;S>=1&&j>=0&&f[S]!==C[j];)j--;for(;S>=1&&j>=0;S--,j--)if(f[S]!==C[j]){if(S!==1||j!==1)do if(S--,j--,j<0||f[S]!==C[j]){var T=`
22
- `+f[S].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(S>=1&&j>=0);break}}}finally{we=!1,xe.current=b,mt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",W=H?ne(H):"";return typeof e=="function"&&ae.set(e,W),W}function bt(e,t,n){return qe(e,!1)}function yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return qe(e,yt(e));if(typeof e=="string")return ne(e);switch(e){case x:return ne("Suspense");case _:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return bt(e.render);case m:return ie(e.type,t,n);case g:{var s=e,h=s._payload,b=s._init;try{return ie(b(h),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ve={},He=L.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(n)}else He.setExtraStackFrame(null)}function xt(e,t,n,s,h){{var b=Function.call.bind(G);for(var d in e)if(b(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(S){f=S}f&&!(f instanceof Error)&&(se(h),A("%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 Ve)&&(Ve[f.message]=!0,se(h),A("Failed %s type: %s",n,f.message),se(null))}}}var kt=Array.isArray;function Se(e){return kt(e)}function wt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function St(e){try{return Je(e),!1}catch{return!0}}function Je(e){return""+e}function Ke(e){if(St(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(e)),Je(e)}var Ge=L.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Ze,Xe;function jt(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 Et(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 At(e,t){typeof e.ref=="string"&&Ge.current}function Ot(e,t){{var n=function(){Ze||(Ze=!0,A("%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 Ct(e,t){{var n=function(){Xe||(Xe=!0,A("%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 Pt=function(e,t,n,s,h,b,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:b};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:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function $t(e,t,n,s,h){{var b,d={},f=null,C=null;n!==void 0&&(Ke(n),f=""+n),Et(t)&&(Ke(t.key),f=""+t.key),jt(t)&&(C=t.ref,At(t,h));for(b in t)G.call(t,b)&&!Rt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var S=e.defaultProps;for(b in S)d[b]===void 0&&(d[b]=S[b])}if(f||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ot(d,j),C&&Ct(d,j)}return Pt(e,f,C,h,s,Ge.current,d)}}var Re=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(n)}else Ye.setExtraStackFrame(null)}var je;je=!1;function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Qe(){{if(Re.current){var e=B(Re.current.type);if(e)return`
22
+ `+f[S].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(S>=1&&j>=0);break}}}finally{we=!1,xe.current=b,mt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",W=H?ne(H):"";return typeof e=="function"&&ae.set(e,W),W}function bt(e,t,n){return qe(e,!1)}function yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return qe(e,yt(e));if(typeof e=="string")return ne(e);switch(e){case x:return ne("Suspense");case m:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return bt(e.render);case _:return ie(e.type,t,n);case g:{var s=e,h=s._payload,b=s._init;try{return ie(b(h),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ve={},He=L.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(n)}else He.setExtraStackFrame(null)}function xt(e,t,n,s,h){{var b=Function.call.bind(G);for(var d in e)if(b(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(S){f=S}f&&!(f instanceof Error)&&(se(h),A("%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 Ve)&&(Ve[f.message]=!0,se(h),A("Failed %s type: %s",n,f.message),se(null))}}}var kt=Array.isArray;function Se(e){return kt(e)}function wt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function St(e){try{return Je(e),!1}catch{return!0}}function Je(e){return""+e}function Ke(e){if(St(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(e)),Je(e)}var Ge=L.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Ze,Xe;function jt(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 Et(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 At(e,t){typeof e.ref=="string"&&Ge.current}function Ot(e,t){{var n=function(){Ze||(Ze=!0,A("%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 Ct(e,t){{var n=function(){Xe||(Xe=!0,A("%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 Pt=function(e,t,n,s,h,b,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:b};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:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function $t(e,t,n,s,h){{var b,d={},f=null,C=null;n!==void 0&&(Ke(n),f=""+n),Et(t)&&(Ke(t.key),f=""+t.key),jt(t)&&(C=t.ref,At(t,h));for(b in t)G.call(t,b)&&!Rt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var S=e.defaultProps;for(b in S)d[b]===void 0&&(d[b]=S[b])}if(f||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ot(d,j),C&&Ct(d,j)}return Pt(e,f,C,h,s,Ge.current,d)}}var Re=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(n)}else Ye.setExtraStackFrame(null)}var je;je=!1;function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Qe(){{if(Re.current){var e=B(Re.current.type);if(e)return`
23
23
 
24
24
  Check the render method of \``+e+"`."}return""}}function Tt(e){return""}var et={};function zt(e){{var t=Qe();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 tt(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=zt(t);if(et[n])return;et[n]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),V(e),A('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),V(null)}}function rt(e,t){{if(typeof e!="object")return;if(Se(e))for(var n=0;n<e.length;n++){var s=e[n];Ee(s)&&tt(s,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var h=ye(e);if(typeof h=="function"&&h!==e.entries)for(var b=h.call(e),d;!(d=b.next()).done;)Ee(d.value)&&tt(d.value,t)}}}function Bt(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);xt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var h=B(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var ot={};function nt(e,t,n,s,h,b){{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=Tt();C?f+=C:f+=Qe();var S;e===null?S="null":Se(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var j=$t(e,t,n,h,b);if(j==null)return j;if(d){var T=t.children;if(T!==void 0)if(s)if(Se(T)){for(var H=0;H<T.length;H++)rt(T[H],e);Object.freeze&&Object.freeze(T)}else A("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 rt(T,e)}if(G.call(t,"key")){var W=B(e),P=Object.keys(t).filter(function(Wt){return Wt!=="key"}),Ae=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[W+Ae]){var Lt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+n+">.")}return t}}function tt(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=zt(t);if(et[n])return;et[n]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),V(e),A('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),V(null)}}function rt(e,t){{if(typeof e!="object")return;if(Se(e))for(var n=0;n<e.length;n++){var s=e[n];Ee(s)&&tt(s,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var h=ye(e);if(typeof h=="function"&&h!==e.entries)for(var b=h.call(e),d;!(d=b.next()).done;)Ee(d.value)&&tt(d.value,t)}}}function Bt(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===_))n=t.propTypes;else return;if(n){var s=B(t);xt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var h=B(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var ot={};function nt(e,t,n,s,h,b){{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=Tt();C?f+=C:f+=Qe();var S;e===null?S="null":Se(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var j=$t(e,t,n,h,b);if(j==null)return j;if(d){var T=t.children;if(T!==void 0)if(s)if(Se(T)){for(var H=0;H<T.length;H++)rt(T[H],e);Object.freeze&&Object.freeze(T)}else A("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 rt(T,e)}if(G.call(t,"key")){var W=B(e),P=Object.keys(t).filter(function(Wt){return Wt!=="key"}),Ae=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[W+Ae]){var Lt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`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} />`,Ae,W,Lt,W),ot[W+Ae]=!0}}return e===l?Nt(j):Bt(j),j}}function It(e,t,n){return nt(e,t,n,!0)}function Mt(e,t,n){return nt(e,t,n,!1)}var Dt=Mt,Ft=It;Te.Fragment=l,Te.jsx=Dt,Te.jsxs=Ft}()),Te}process.env.NODE_ENV==="production"?ft.exports=ir():ft.exports=sr();var i=ft.exports;const Oe={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let q={};var dt;(r=>{function o({children:y,onCallbackModal:u,nameModal:x,offsetTop:_}){const[m,g]=R.useState(!1),[z,$]=R.useState(!1);if(q[x].onClose=()=>{v.default.BackButton(!1),$(!0),setTimeout(()=>{g(!1),$(!1),u==null||u(),q.x(x)},300)},R.useEffect(()=>{m?q[x].onClose():(v.default.BackButton({callback:()=>q[x].onClose()}),g(!0))},[]),!!m)return i.jsx("div",{className:de(Oe.o,z&&Oe.x),children:i.jsx("div",{className:de(Oe.p,z&&Oe.x,_?Oe.o:Oe.m),children:y})})}r.Content=o;function a({import_modules:y}){let[u,x]=R.useState([]);return q.x=_=>{x(_?u.filter(m=>m.key!==_):[])},R.useEffect(()=>{y&&(q.i=y)},[]),q.add=(_,m=Date.now())=>{x([...u,{key:m,item:_}])},i.jsx(i.Fragment,{children:u.map(_=>_.item)})}r.Init=a;function l(y,u,x){q.add(i.jsx(o,{onCallbackModal:q["callback_modal"+u],nameModal:u||"",offsetTop:x,children:y},String(Date.now())),u)}r.Add=l;function c(y,u=Date.now().toString(),x){return q[u]={},{Open:g=>{r.Add(i.jsx(y,{...g,onCallbackModal:z=>{var $;($=g.callback)==null||$.call(g,z)},nameModal:u},new Date().getTime()),u,x===void 0?!0:x)}}}r.Create=c;function p(y){q[y].onClose()}r.Close=p;function w(y,u,x,_){q.i&&(_&&(x.callback=_),q.i(`${y}/modals/${u}.tsx`).then(m=>{var g;m.Open?m.Open(x):(g=m.default)!=null&&g.Open?m.default.Open(x):m.default&&m.default(x)}))}r.Open=w})(dt||(dt={}));function Ht(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Jt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Kt(r){const o=Ht();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...Jt,...r}}function at(){return Ht().CRYPTO_PARAMS||Jt}const it=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},Gt=(r,o)=>{let a=r+o;for(let c=0;c<at().iterations;c++)a=it(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},Zt=(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 w=p%o.length;c=o[w]+p+c&255,l[p]=c}for(let p=0;p<r.length;p++)a[p]=r[p]^l[p];return a},lr=r=>new TextEncoder().encode(r),cr=r=>new TextDecoder().decode(r),ur=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)},fr=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},dr=r=>{try{const o=it(Date.now().toString()+Math.random()).substring(0,at().saltLength*2),a=it(r+o).substring(0,8),l=Gt(at().key,o),c=lr(r),p=Zt(c,l),w=ur(p);return`${o}.${w}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},pr=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=o[0],l=o[1],c=o[2],p=Gt(at().key,a),w=fr(l),y=Zt(w,p),u=cr(y);if(it(u+a).substring(0,8)!==c)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(r=>{r.setKey=o=>{Kt({key:o})},r.enCode=o=>{try{const a=JSON.stringify(o);return dr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const a=pr(o);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(o,a)=>{Kt({iterations:o,saltLength:a})}})(le||(le={}));var ze={};/**
31
+ <%s key={someKey} {...props} />`,Ae,W,Lt,W),ot[W+Ae]=!0}}return e===l?Nt(j):Bt(j),j}}function It(e,t,n){return nt(e,t,n,!0)}function Mt(e,t,n){return nt(e,t,n,!1)}var Dt=Mt,Ft=It;Te.Fragment=l,Te.jsx=Dt,Te.jsxs=Ft}()),Te}process.env.NODE_ENV==="production"?ft.exports=ir():ft.exports=sr();var i=ft.exports;const Oe={o:"_o_1apbm_11",x:"_x_1apbm_24",p:"_p_1apbm_28",m:"_m_1apbm_45"};let q={};var dt;(r=>{function o({children:y,onCallbackModal:u,nameModal:x,offsetTop:m}){const[_,g]=R.useState(!1),[z,$]=R.useState(!1);if(q[x].onClose=()=>{v.default.BackButton(!1),$(!0),setTimeout(()=>{g(!1),$(!1),u==null||u(),q.x(x)},300)},R.useEffect(()=>{_?q[x].onClose():(v.default.BackButton({callback:()=>q[x].onClose()}),g(!0))},[]),!!_)return i.jsx("div",{className:de(Oe.o,z&&Oe.x),children:i.jsx("div",{className:de(Oe.p,z&&Oe.x,m?Oe.o:Oe.m),children:y})})}r.Content=o;function a({import_modules:y}){let[u,x]=R.useState([]);return q.x=m=>{x(m?u.filter(_=>_.key!==m):[])},R.useEffect(()=>{y&&(q.i=y)},[]),q.add=(m,_=Date.now())=>{x([...u,{key:_,item:m}])},i.jsx(i.Fragment,{children:u.map(m=>m.item)})}r.Init=a;function l(y,u,x){q.add(i.jsx(o,{onCallbackModal:q["callback_modal"+u],nameModal:u||"",offsetTop:x,children:y},String(Date.now())),u)}r.Add=l;function c(y,u=Date.now().toString(),x){return q[u]={},{Open:g=>{r.Add(i.jsx(y,{...g,onCallbackModal:z=>{var $;($=g.callback)==null||$.call(g,z)},nameModal:u},new Date().getTime()),u,x===void 0?!0:x)}}}r.Create=c;function p(y){q[y].onClose()}r.Close=p;function w(y,u,x,m){q.i&&(m&&(x.callback=m),q.i(`${y}/modals/${u}.tsx`).then(_=>{var g;_.Open?_.Open(x):(g=_.default)!=null&&g.Open?_.default.Open(x):_.default&&_.default(x)}))}r.Open=w})(dt||(dt={}));function Ht(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Jt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function Kt(r){const o=Ht();o.CRYPTO_PARAMS?o.CRYPTO_PARAMS={...o.CRYPTO_PARAMS,...r}:o.CRYPTO_PARAMS={...Jt,...r}}function at(){return Ht().CRYPTO_PARAMS||Jt}const it=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},Gt=(r,o)=>{let a=r+o;for(let c=0;c<at().iterations;c++)a=it(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},Zt=(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 w=p%o.length;c=o[w]+p+c&255,l[p]=c}for(let p=0;p<r.length;p++)a[p]=r[p]^l[p];return a},lr=r=>new TextEncoder().encode(r),cr=r=>new TextDecoder().decode(r),ur=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)},fr=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},dr=r=>{try{const o=it(Date.now().toString()+Math.random()).substring(0,at().saltLength*2),a=it(r+o).substring(0,8),l=Gt(at().key,o),c=lr(r),p=Zt(c,l),w=ur(p);return`${o}.${w}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},pr=r=>{try{const o=r.split(".");if(o.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=o[0],l=o[1],c=o[2],p=Gt(at().key,a),w=fr(l),y=Zt(w,p),u=cr(y);if(it(u+a).substring(0,8)!==c)throw new Error("Контрольная сумма не совпадает");return u}catch{return""}};var le;(r=>{r.setKey=o=>{Kt({key:o})},r.enCode=o=>{try{const a=JSON.stringify(o);return dr(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=o=>{try{if(!o||o.length<10)return!1;const a=pr(o);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(o,a)=>{Kt({iterations:o,saltLength:a})}})(le||(le={}));var ze={};/**
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 Xt;function gr(){if(Xt)return ze;Xt=1;var r=R,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 w(y,u,x){var _,m={},g=null,z=null;x!==void 0&&(g=""+x),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(z=u.ref);for(_ in u)l.call(u,_)&&!p.hasOwnProperty(_)&&(m[_]=u[_]);if(y&&y.defaultProps)for(_ in u=y.defaultProps,u)m[_]===void 0&&(m[_]=u[_]);return{$$typeof:o,type:y,key:g,ref:z,props:m,_owner:c.current}}return ze.Fragment=a,ze.jsx=w,ze.jsxs=w,ze}var st={};/**
39
+ */var Xt;function gr(){if(Xt)return ze;Xt=1;var r=R,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 w(y,u,x){var m,_={},g=null,z=null;x!==void 0&&(g=""+x),u.key!==void 0&&(g=""+u.key),u.ref!==void 0&&(z=u.ref);for(m in u)l.call(u,m)&&!p.hasOwnProperty(m)&&(_[m]=u[m]);if(y&&y.defaultProps)for(m in u=y.defaultProps,u)_[m]===void 0&&(_[m]=u[m]);return{$$typeof:o,type:y,key:g,ref:z,props:_,_owner:c.current}}return ze.Fragment=a,ze.jsx=w,ze.jsxs=w,ze}var st={};/**
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 Yt;function hr(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,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"),w=Symbol.for("react.provider"),y=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),$=Symbol.iterator,Ne="@@iterator";function ye(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[Ne];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Ie("error",e,n)}}function Ie(e,t,n){{var s=L.ReactDebugCurrentFrame,h=s.getStackAddendum();h!==""&&(t+="%s",n=n.concat([h]));var b=n.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Me=!1,Pe=!1,De=!1,Fe=!1,k=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||k||e===c||e===x||e===_||Fe||e===z||Me||Pe||De||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===w||e.$$typeof===y||e.$$typeof===u||e.$$typeof===E||e.getModuleId!==void 0))}function M(e,t,n){var s=e.displayName;if(s)return s;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"&&A("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 x:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return I(t)+".Consumer";case w:var n=e;return I(n._context)+".Provider";case u:return M(e,e.render,"ForwardRef");case m:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case g:{var h=e,b=h._payload,d=h._init;try{return B(d(b))}catch{return null}}}return null}var D=Object.assign,U=0,pe,X,Y,Q,ee,Le,We;function Ue(){}Ue.__reactDisabledLog=!0;function _t(){{if(U===0){pe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Le=console.groupCollapsed,We=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function mt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:pe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:Le}),groupEnd:D({},e,{value:We})})}U<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=L.ReactCurrentDispatcher,ke;function ne(e,t,n){{if(ke===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);ke=s&&s[1]||""}return`
47
+ */var Yt;function hr(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&function(){var r=R,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"),w=Symbol.for("react.provider"),y=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),z=Symbol.for("react.offscreen"),$=Symbol.iterator,Ne="@@iterator";function ye(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[Ne];return typeof t=="function"?t:null}var L=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];Ie("error",e,n)}}function Ie(e,t,n){{var s=L.ReactDebugCurrentFrame,h=s.getStackAddendum();h!==""&&(t+="%s",n=n.concat([h]));var b=n.map(function(d){return String(d)});b.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,b)}}var Me=!1,Pe=!1,De=!1,Fe=!1,k=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===p||k||e===c||e===x||e===m||Fe||e===z||Me||Pe||De||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y||e.$$typeof===u||e.$$typeof===E||e.getModuleId!==void 0))}function M(e,t,n){var s=e.displayName;if(s)return s;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"&&A("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 x:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y:var t=e;return I(t)+".Consumer";case w:var n=e;return I(n._context)+".Provider";case u:return M(e,e.render,"ForwardRef");case _:var s=e.displayName||null;return s!==null?s:B(e.type)||"Memo";case g:{var h=e,b=h._payload,d=h._init;try{return B(d(b))}catch{return null}}}return null}var D=Object.assign,U=0,pe,X,Y,Q,ee,Le,We;function Ue(){}Ue.__reactDisabledLog=!0;function _t(){{if(U===0){pe=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Le=console.groupCollapsed,We=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}U++}}function mt(){{if(U--,U===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},e,{value:pe}),info:D({},e,{value:X}),warn:D({},e,{value:Y}),error:D({},e,{value:Q}),group:D({},e,{value:ee}),groupCollapsed:D({},e,{value:Le}),groupEnd:D({},e,{value:We})})}U<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var xe=L.ReactCurrentDispatcher,ke;function ne(e,t,n){{if(ke===void 0)try{throw Error()}catch(h){var s=h.stack.trim().match(/\n( *(at )?)/);ke=s&&s[1]||""}return`
48
48
  `+ke+e}}var we=!1,ae;{var vt=typeof WeakMap=="function"?WeakMap:Map;ae=new vt}function qe(e,t){if(!e||we)return"";{var n=ae.get(e);if(n!==void 0)return n}var s;we=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=xe.current,xe.current=null,_t();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
49
  `),C=s.stack.split(`
50
50
  `),S=f.length-1,j=C.length-1;S>=1&&j>=0&&f[S]!==C[j];)j--;for(;S>=1&&j>=0;S--,j--)if(f[S]!==C[j]){if(S!==1||j!==1)do if(S--,j--,j<0||f[S]!==C[j]){var T=`
51
- `+f[S].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(S>=1&&j>=0);break}}}finally{we=!1,xe.current=b,mt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",W=H?ne(H):"";return typeof e=="function"&&ae.set(e,W),W}function bt(e,t,n){return qe(e,!1)}function yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return qe(e,yt(e));if(typeof e=="string")return ne(e);switch(e){case x:return ne("Suspense");case _:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return bt(e.render);case m:return ie(e.type,t,n);case g:{var s=e,h=s._payload,b=s._init;try{return ie(b(h),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ve={},He=L.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(n)}else He.setExtraStackFrame(null)}function xt(e,t,n,s,h){{var b=Function.call.bind(G);for(var d in e)if(b(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(S){f=S}f&&!(f instanceof Error)&&(se(h),A("%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 Ve)&&(Ve[f.message]=!0,se(h),A("Failed %s type: %s",n,f.message),se(null))}}}var kt=Array.isArray;function Se(e){return kt(e)}function wt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function St(e){try{return Je(e),!1}catch{return!0}}function Je(e){return""+e}function Ke(e){if(St(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(e)),Je(e)}var Ge=L.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Ze,Xe;function jt(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 Et(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 At(e,t){typeof e.ref=="string"&&Ge.current}function Ot(e,t){{var n=function(){Ze||(Ze=!0,A("%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 Ct(e,t){{var n=function(){Xe||(Xe=!0,A("%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 Pt=function(e,t,n,s,h,b,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:b};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:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function $t(e,t,n,s,h){{var b,d={},f=null,C=null;n!==void 0&&(Ke(n),f=""+n),Et(t)&&(Ke(t.key),f=""+t.key),jt(t)&&(C=t.ref,At(t));for(b in t)G.call(t,b)&&!Rt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var S=e.defaultProps;for(b in S)d[b]===void 0&&(d[b]=S[b])}if(f||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ot(d,j),C&&Ct(d,j)}return Pt(e,f,C,h,s,Ge.current,d)}}var Re=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(n)}else Ye.setExtraStackFrame(null)}var je;je=!1;function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Qe(){{if(Re.current){var e=B(Re.current.type);if(e)return`
51
+ `+f[S].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,T),T}while(S>=1&&j>=0);break}}}finally{we=!1,xe.current=b,mt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",W=H?ne(H):"";return typeof e=="function"&&ae.set(e,W),W}function bt(e,t,n){return qe(e,!1)}function yt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,n){if(e==null)return"";if(typeof e=="function")return qe(e,yt(e));if(typeof e=="string")return ne(e);switch(e){case x:return ne("Suspense");case m:return ne("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case u:return bt(e.render);case _:return ie(e.type,t,n);case g:{var s=e,h=s._payload,b=s._init;try{return ie(b(h),t,n)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ve={},He=L.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);He.setExtraStackFrame(n)}else He.setExtraStackFrame(null)}function xt(e,t,n,s,h){{var b=Function.call.bind(G);for(var d in e)if(b(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(S){f=S}f&&!(f instanceof Error)&&(se(h),A("%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 Ve)&&(Ve[f.message]=!0,se(h),A("Failed %s type: %s",n,f.message),se(null))}}}var kt=Array.isArray;function Se(e){return kt(e)}function wt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function St(e){try{return Je(e),!1}catch{return!0}}function Je(e){return""+e}function Ke(e){if(St(e))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",wt(e)),Je(e)}var Ge=L.ReactCurrentOwner,Rt={key:!0,ref:!0,__self:!0,__source:!0},Ze,Xe;function jt(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 Et(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 At(e,t){typeof e.ref=="string"&&Ge.current}function Ot(e,t){{var n=function(){Ze||(Ze=!0,A("%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 Ct(e,t){{var n=function(){Xe||(Xe=!0,A("%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 Pt=function(e,t,n,s,h,b,d){var f={$$typeof:o,type:e,key:t,ref:n,props:d,_owner:b};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:h}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f};function $t(e,t,n,s,h){{var b,d={},f=null,C=null;n!==void 0&&(Ke(n),f=""+n),Et(t)&&(Ke(t.key),f=""+t.key),jt(t)&&(C=t.ref,At(t));for(b in t)G.call(t,b)&&!Rt.hasOwnProperty(b)&&(d[b]=t[b]);if(e&&e.defaultProps){var S=e.defaultProps;for(b in S)d[b]===void 0&&(d[b]=S[b])}if(f||C){var j=typeof e=="function"?e.displayName||e.name||"Unknown":e;f&&Ot(d,j),C&&Ct(d,j)}return Pt(e,f,C,h,s,Ge.current,d)}}var Re=L.ReactCurrentOwner,Ye=L.ReactDebugCurrentFrame;function V(e){if(e){var t=e._owner,n=ie(e.type,e._source,t?t.type:null);Ye.setExtraStackFrame(n)}else Ye.setExtraStackFrame(null)}var je;je=!1;function Ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Qe(){{if(Re.current){var e=B(Re.current.type);if(e)return`
52
52
 
53
53
  Check the render method of \``+e+"`."}return""}}function Tt(e){return""}var et={};function zt(e){{var t=Qe();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 tt(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=zt(t);if(et[n])return;et[n]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),V(e),A('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),V(null)}}function rt(e,t){{if(typeof e!="object")return;if(Se(e))for(var n=0;n<e.length;n++){var s=e[n];Ee(s)&&tt(s,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var h=ye(e);if(typeof h=="function"&&h!==e.entries)for(var b=h.call(e),d;!(d=b.next()).done;)Ee(d.value)&&tt(d.value,t)}}}function Bt(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);xt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var h=B(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var ot={};function nt(e,t,n,s,h,b){{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=Tt();C?f+=C:f+=Qe();var S;e===null?S="null":Se(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var j=$t(e,t,n,h,b);if(j==null)return j;if(d){var T=t.children;if(T!==void 0)if(s)if(Se(T)){for(var H=0;H<T.length;H++)rt(T[H],e);Object.freeze&&Object.freeze(T)}else A("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 rt(T,e)}if(G.call(t,"key")){var W=B(e),P=Object.keys(t).filter(function(Wt){return Wt!=="key"}),Ae=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[W+Ae]){var Lt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+n+">.")}return t}}function tt(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=zt(t);if(et[n])return;et[n]=!0;var s="";e&&e._owner&&e._owner!==Re.current&&(s=" It was passed a child from "+B(e._owner.type)+"."),V(e),A('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),V(null)}}function rt(e,t){{if(typeof e!="object")return;if(Se(e))for(var n=0;n<e.length;n++){var s=e[n];Ee(s)&&tt(s,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var h=ye(e);if(typeof h=="function"&&h!==e.entries)for(var b=h.call(e),d;!(d=b.next()).done;)Ee(d.value)&&tt(d.value,t)}}}function Bt(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===_))n=t.propTypes;else return;if(n){var s=B(t);xt(n,e.props,"prop",s,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var h=B(t);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Nt(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var s=t[n];if(s!=="children"&&s!=="key"){V(e),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s),V(null);break}}e.ref!==null&&(V(e),A("Invalid attribute `ref` supplied to `React.Fragment`."),V(null))}}var ot={};function nt(e,t,n,s,h,b){{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=Tt();C?f+=C:f+=Qe();var S;e===null?S="null":Se(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(B(e.type)||"Unknown")+" />",f=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,f)}var j=$t(e,t,n,h,b);if(j==null)return j;if(d){var T=t.children;if(T!==void 0)if(s)if(Se(T)){for(var H=0;H<T.length;H++)rt(T[H],e);Object.freeze&&Object.freeze(T)}else A("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 rt(T,e)}if(G.call(t,"key")){var W=B(e),P=Object.keys(t).filter(function(Wt){return Wt!=="key"}),Ae=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!ot[W+Ae]){var Lt=P.length>0?"{"+P.join(": ..., ")+": ...}":"{}";A(`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} />`,Ae,W,Lt,W),ot[W+Ae]=!0}}return e===l?Nt(j):Bt(j),j}}function It(e,t,n){return nt(e,t,n,!0)}function Mt(e,t,n){return nt(e,t,n,!1)}var Dt=Mt,Ft=It;st.Fragment=l,st.jsx=Dt,st.jsxs=Ft}()),st}process.env.NODE_ENV==="production"?gr():hr();const _r="0.0.40",Qt={version:_r},te={},J={module:"",v:Qt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ge(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ge().elcrm||(ge().elcrm={}),Object.assign(ge().elcrm,{router:Qt.version});function Z(r){var o,a,l,c;const p=ge();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const w={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:w}}else{r.debug||J.debug;const w={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:w}}}function O(){return ge().ROUTER_PARAMS||J}function he(r){const o=ge();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function re(){return ge().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function o(){var k;let E=sessionStorage.getItem("f");if(E){if(E=le.deCode(E),!E)return!1;Z({id:E.id,tab:E.tab,page:E.page,module:E.module,time:E.time,payment:{active:!0},module_admin:E.module_admin})}else Z({id:0,tab:"",page:(k=localStorage.getItem("d"))!=null&&k.length?O().page:O().auth,module:O().module});return!0}function a(){te.id=0,te.tab="",te.page=O().page,te.module=O().module}r.Reset=a;function l({module:k=O().module,page:E=O().page,auth:N=O().auth,debug:M=O().debug}){Z({page:E,module:k,auth:N,debug:M}),o()}r.Default=l;function c(k){let E=I=>(Z({page:I}),I);const[N,M]=R.useState(w()||k&&E(k)||O().page);return he({page:I=>{M(I)}}),N}r.usePage=c;function p(k,E=!0,N={}){Z({page:k,...N}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().page(k)}r.setPage=p;function w(){return O().page}r.getPage=w;function y(k){return O().page===k}r.isPage=y;function u(){return O().prev}r.getBack=u;function x(k,E){const[N,M]=R.useState(m()||k||O().module);return he({module:M}),N}r.useModule=x;function _(k,E=!0){Z({module:k}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().module(k)}r.setModule=_;function m(){return O().module||""}r.getModule=m;function g(k){return O().module===k}r.isModule=g;function z(k,E){if(typeof k!="function"){const[N,M]=R.useState(!E),[I,B]=R.useState(k||ye());return he({tabs:B}),E&&R.useEffect(()=>{M(!0)},[]),[I,N]}else he({tabs:k})}r.useTabs=z;function $(k){let E=I=>(Z({tab:I}),I);const[N,M]=R.useState(ye()||k&&E(k)||O().tab);return he({tabs:I=>{M(I)}}),N}r.useTab=$;async function Ne(k,E=!0){Z({tab:k}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&(re().tabs&&re().tabs(k))}r.setTabs=Ne;function ye(){return O().tab}r.getTabs=ye;function L(k){return O().tab===k}r.isTabs=L;function A(k){if(typeof k!="function"){const[E,N]=R.useState(k||Pe());return he({id:M=>{N(M)}}),E}else he({id:k})}r.useId=A;function Ie(k){}r.subId=Ie;async function Me(k,E=!0){Z({id:k}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().id(k)}r.setId=Me;function Pe(){return O().id}r.getId=Pe;function De(k){return Number(O().id)===k}r.isId=De;async function Fe(k){var E,N,M,I,B,D,U,pe;const{page:X,module:Y,tab:Q,id:ee}=k;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=(E=re()).id)==null||N.call(E,ee)),Q!==void 0&&((I=(M=re()).tabs)==null||I.call(M,Q)),Y!==void 0&&((D=(B=re()).module)==null||D.call(B,Y)),X!==void 0&&((pe=(U=re()).page)==null||pe.call(U,X)),sessionStorage.setItem(O().STORAGE,le.enCode(O()))}r.navigate=Fe})(ce||(ce={}));const _e={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let lt={};function mr(){const[r,o]=R.useState([]);return lt.set=a=>{o([...r,a])},lt.del=a=>{r.forEach((l,c)=>{l.key===a&&r.splice(c,1)}),o(r)},r.length===0?i.jsx(i.Fragment,{}):i.jsx("div",{className:_e.n,children:r.map(a=>a.item)})}function vr(r){let o=new Date().getTime();r.key=o,lt.set({item:i.jsx(br,{data:r},o),key:o})}function br(r){const o=r.data;let[a]=R.useState("show"),[l,c]=R.useState(!1);R.useEffect(()=>{setTimeout(function(){c(!0),lt.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}const w={error:_e.e,success:_e.s,warning:_e.w};return i.jsx(i.Fragment,{children:l?i.jsx(i.Fragment,{}):i.jsxs("div",{className:_e.i+w[o.type]+` ${o.thema!==void 0?_e.h:""}`,"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:_e.t,children:o.text})]})})}let me={Send:vr,Init:mr};const ue={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},fe={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 yr=()=>{if(location.hostname==="localhost"){let[r,o]=R.useState(!1),[a,l]=R.useState(!1),[c,p]=R.useState("dark"),[w,y]=R.useState(!1),[u,x]=R.useState(!1);fe.is=!0,fe.MainButton.set=o,fe.BackButton.set=l,R.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 g in K[c])document.documentElement.style.setProperty(g,K[c][g]);be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let _=g=>{for(let z in K[g])document.documentElement.style.setProperty(z,K[g][z]);p(g),y(!1)},m=()=>{y(!1),x(!0)};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:ue.d,children:[a===!1?i.jsx("div",{className:ue.b,children:"Отмена"}):i.jsx("div",{onClick:()=>{var g;a.page===void 0?(g=a.callback)==null||g.call(a):ce.setPage(a.page)},className:ue.b,children:"Назад"}),i.jsx("div",{className:ue.o,onClick:()=>y(!w),children:"Меню"})]}),i.jsx(me.Init,{}),r&&i.jsx("div",{className:ue.m,children:i.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),w?i.jsxs("div",{className:ue.t,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:()=>_("dark"),children:"Dark"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>_("light"),children:"Light"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>_("users"),children:"Users"})})]})]}),i.jsx("li",{children:i.jsx("button",{onClick:()=>y(!w),children:"Closed"})})]})]}):"",u?i.jsx(xr,{setAuthorization:x}):""]})}else return R.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",be.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",be.themeParams.bg_color+"b3"),be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),i.jsx(i.Fragment,{children:i.jsx(me.Init,{})})},xr=({setAuthorization:r})=>{let o={},a=()=>{localStorage.setItem("auth",o)};return i.jsx("div",{className:ue.a,children:i.jsxs("div",{className:ue.v,children:[i.jsx("fieldset",{}),i.jsx("div",{onClick:a,children:" Сохранить "})]})})},er={p:"_p_1axqy_1",s:"_s_1axqy_17"},kr=({className:r,children:o,isScroll:a=!0})=>i.jsx("div",{className:[er.p,a&&er.s,r].filter(l=>l!==void 0).join(" "),children:o}),wr={l:"_l_gfyud_1"},Sr=({children:r,className:o})=>i.jsx("div",{className:[wr.l,o].filter(a=>a!==void 0).join(" "),children:r}),ve={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"},Rr=({items:r})=>{const o=l=>{ce.setPage(l)},a=l=>{be.openTelegramLink(l)};return i.jsx("div",{className:ve.m,children:r.map(l=>i.jsx("div",{className:ve.g,children:l.items.map((c,p)=>i.jsxs("div",{className:ve.i,onClick:()=>{c.link&&a(c.link),c.page&&o(c.page),c.callback&&c.callback()},children:[i.jsxs("div",{className:ve.c,children:[i.jsx("span",{className:ve.l,style:{background:c.color},children:c.icon}),c.title,c.count&&i.jsx("span",{className:ve.n,children:c.count})]}),i.jsx("span",{className:ve.a,children:"›"})]},p))},l.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 jr({children:r,icon:o,iconBadge:a=0,title:l,className:c,view:p="list",position:w="left"}){const[y,u]=R.useState(!1),[x,_]=R.useState(null);R.useEffect(()=>{let g=document.querySelector(".p_sb");return g||(g=document.createElement("div"),g.className="_p_sb",document.body.appendChild(g)),_(g),()=>{g&&g.parentNode&&g.parentNode.removeChild(g)}},[]);const m=i.jsxs(i.Fragment,{children:[y&&i.jsx("div",{className:oe.o,onClick:()=>u(!1)}),i.jsxs("div",{className:de(oe.m,w==="left"?oe.l:oe.r,y&&oe.x,c),children:[i.jsxs("div",{className:oe.h,children:[l&&i.jsx("h3",{className:oe.t,children:l}),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}),x&&ar.createPortal(m,x)]})}let Be=()=>{};const tr=({children:r,title:o,isOverlay:a=!0,footer:l=!0,className:c,onOpen:p})=>{const[w,y]=R.useState(!1);return Be=()=>{y(!0),setTimeout(()=>{var u;p==null||p(!1),(u=Ce==null?void 0:Ce.onClose)==null||u.call(Ce)},300)},i.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${w?"closing":""} `,onClick:Be,children:i.jsxs("div",{className:`footer-menu-popup-book ${w?"closing":""} ${c||""} ${l?"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:Be,children:"✕"})]}),r]})})},ct={h:"_h_4aije_1",r:"_r_4aije_23",c:"_c_4aije_26",x:"_x_4aije_29"},Er={b:"_b_r6m8n_1"},Ar=({className:r,value:o})=>i.jsx("div",{className:[Er.b,r].filter(a=>a!==void 0).join(" "),children:o}),Ce=[],rr=(r,o)=>r.findIndex(a=>(a==null?void 0:a.page)===o),Or=({actions:r,children:o,className:a,toHide:l=!1,page:c,onPageChange:p,direction:w="row"})=>{const[y,u]=R.useState(null),[x,_]=R.useState(c?rr(r||[],c):0);return Ce.onClose=()=>{u(null),_(c?rr(r||[],c):0)},R.useEffect(()=>{if(!l)return;const m=document.querySelectorAll("[contenteditable]"),g=()=>{const $=document.querySelector("footer");$&&$.classList.remove(ct.x)},z=()=>{const $=document.querySelector("footer");$&&$.classList.add(ct.x)};return m.forEach($=>{$.addEventListener("focus",z,!0),$.addEventListener("blur",g,!0)}),()=>{m.forEach($=>{$.removeEventListener("focus",z,!0),$.removeEventListener("blur",g,!0)})}},[]),i.jsxs(i.Fragment,{children:[y,i.jsxs("footer",{className:de(ct.h,ct[w==="row"?"r":"c"],a),children:[o,r&&r.map((m,g)=>i.jsxs("div",{"data-active":x===g?"true":"false",onClick:()=>{m.page&&(_(g),p==null||p(m.page)),m.onClick&&m.onClick(()=>_(g)),m.component&&(x===g?Be():(u(m.component),_(g)))},children:[m.icon,m.badge&&i.jsx(Ar,{value:m.badge})]},g))]})]})},ut={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},pt={};function Cr({children:r,name:o,onClose:a,isOpen:l,isScroll:c=!0,nextBackButton:p}){const[w,y]=R.useState(!1);return R.useEffect(()=>{if(!l)return;const u=p===void 0?nr().pop():p,x=()=>{y(!1),setTimeout(()=>{ht(u||!1),a==null||a()},300)};pt[o]={onClose:x,onOpen:()=>{y(!0)}},ht({callback:x});const _=setTimeout(()=>{y(!0)},10);return()=>{clearTimeout(_)}},[l]),l?i.jsxs("div",{className:de(ut.w,w&&ut.v,c&&ut.s),children:[i.jsx("div",{className:ut.n}),r]}):""}const Pr=(r,o)=>{var a,l;o?(a=pt[r])==null||a.onOpen():(l=pt[r])==null||l.onClose()},or={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function $r({className:r,children:o,onScrollEnd:a,offset:l=100,isLoading:c,isScrollBar:p=!1}){const[w,y]=R.useState(c||!1);R.useEffect(()=>{y(c||!1)},[c]);let u={onScroll:x=>{const{scrollTop:_,scrollHeight:m,clientHeight:g}=x.currentTarget;_+g>=m-l&&!w&&(y(!0),a==null||a())}};return i.jsx("div",{...u,className:de(or.s,!p&&or.n,r),children:o})}const gt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Tr({children:r,className:o,position:a="center",title:l}){let c="";return a==="left"?c=gt.l:a==="right"&&(c=gt.r),i.jsxs("div",{className:de(gt.a,c,o),children:[r,l&&i.jsx("b",{children:l})]})}const F={state:[!1],listen:[],prev:{},router:r=>{r===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(F.listen[0]),F.listen.shift(),F.state.length!==1&&F.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(F.listen[0]),F.listen.shift(),F.listen.push(()=>{var a;let o=F.state.pop();F.prev=ce.getPage(),o.page!==void 0?ce.setPage(o.page):(a=o.callback)==null||a.call(o)}),be.BackButton.onClick(F.listen[0]))}},de=(...r)=>r.filter(o=>o!==void 0&&o!==!1&&o!==null&&o!=="").join(" ");v.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.Location=o=>{if(fe.is)return o({latitude:55.752555,longitude:37.623123});let a=()=>{r.WebApp.LocationManager.getLocation(async l=>{if(!l){r.WebApp.LocationManager.isAccessRequested||r.WebApp.LocationManager.openSettings();return}o(l)})};!r.WebApp.LocationManager||!r.WebApp.LocationManager.isInited?r.WebApp.LocationManager.init(()=>{a()}):a()},r.Notice={Send:(o,a,l)=>{var c,p;a!==void 0?(me.Send({type:o,text:a,thema:l}),(c=r.WebApp.HapticFeedback)==null||c.notificationOccurred(o)):(me.Send(o),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(o.type))},Error:o=>{var a;me.Send({type:"error",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:o=>{var a;me.Send({type:"success",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:o=>{var a;me.Send({type:"warning",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=yr,r.TabBar=Or,r.BottomSheet=tr,r.toggleBottomSheet=Be,r.SafeArea=kr,r.Loading=Sr,r.Sidebar=jr,r.SidePanel=Cr,r.AppBar=Tr,r.SidePanelController=Pr,r.Scroll=$r,r.Modal=dt,r.Menu=Rr,r.MainButton={callback:[],set:o=>{fe.is?fe.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=()=>{F.prev&&(0,r.BackButton)(F.prev)},r.BackButtonState=()=>F.state,r.BackButton=o=>{fe.is?fe.BackButton.set(o):(F.state.push(o),F.router(o))}})(v.default||(v.default={}));const zr=v.default.TabBar,Br=tr,ht=v.default.BackButton,Nr=v.default.BackButtonPrev,nr=v.default.BackButtonState,Ir=v.default.Notice,Mr=v.default.SafeArea,Dr=v.default.Loading,Fr=v.default.Menu,Lr=v.default.SidePanel,Wr=v.default.Scroll,Ur=v.default.AppBar,qr=v.default.Sidebar,Vr=v.default.Location,Hr=v.default.SidePanelController,{Header:Jr,toggleBottomSheet:Kr,Modal:Gr,MainButton:Zr,WebApp:be,getUser:Xr}=v.default;v.AppBar=Ur,v.BackButton=ht,v.BackButtonPrev=Nr,v.BackButtonState=nr,v.BottomSheet=Br,v.Header=Jr,v.Loading=Dr,v.Location=Vr,v.MainButton=Zr,v.Menu=Fr,v.Modal=Gr,v.Notice=Ir,v.SafeArea=Mr,v.Scroll=Wr,v.SidePanel=Lr,v.SidePanelController=Hr,v.Sidebar=qr,v.TabBar=zr,v.WebApp=be,v.clsx=de,v.getUser=Xr,v.toggleBottomSheet=Kr,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,Ae,W,Lt,W),ot[W+Ae]=!0}}return e===l?Nt(j):Bt(j),j}}function It(e,t,n){return nt(e,t,n,!0)}function Mt(e,t,n){return nt(e,t,n,!1)}var Dt=Mt,Ft=It;st.Fragment=l,st.jsx=Dt,st.jsxs=Ft}()),st}process.env.NODE_ENV==="production"?gr():hr();const _r="0.0.40",Qt={version:_r},te={},J={module:"",v:Qt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function ge(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}ge().elcrm||(ge().elcrm={}),Object.assign(ge().elcrm,{router:Qt.version});function Z(r){var o,a,l,c;const p=ge();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const w={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:w}}else{r.debug||J.debug;const w={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:w}}}function O(){return ge().ROUTER_PARAMS||J}function he(r){const o=ge();o.ROUTER_PARAMS?o.ROUTER_PARAMS.LISTENER={...o.ROUTER_PARAMS.LISTENER,...r}:o.ROUTER_PARAMS.LISTENER={...r}}function re(){return ge().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function o(){var k;let E=sessionStorage.getItem("f");if(E){if(E=le.deCode(E),!E)return!1;Z({id:E.id,tab:E.tab,page:E.page,module:E.module,time:E.time,payment:{active:!0},module_admin:E.module_admin})}else Z({id:0,tab:"",page:(k=localStorage.getItem("d"))!=null&&k.length?O().page:O().auth,module:O().module});return!0}function a(){te.id=0,te.tab="",te.page=O().page,te.module=O().module}r.Reset=a;function l({module:k=O().module,page:E=O().page,auth:N=O().auth,debug:M=O().debug}){Z({page:E,module:k,auth:N,debug:M}),o()}r.Default=l;function c(k){let E=I=>(Z({page:I}),I);const[N,M]=R.useState(w()||k&&E(k)||O().page);return he({page:I=>{M(I)}}),N}r.usePage=c;function p(k,E=!0,N={}){Z({page:k,...N}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().page(k)}r.setPage=p;function w(){return O().page}r.getPage=w;function y(k){return O().page===k}r.isPage=y;function u(){return O().prev}r.getBack=u;function x(k,E){const[N,M]=R.useState(_()||k||O().module);return he({module:M}),N}r.useModule=x;function m(k,E=!0){Z({module:k}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().module(k)}r.setModule=m;function _(){return O().module||""}r.getModule=_;function g(k){return O().module===k}r.isModule=g;function z(k,E){if(typeof k!="function"){const[N,M]=R.useState(!E),[I,B]=R.useState(k||ye());return he({tabs:B}),E&&R.useEffect(()=>{M(!0)},[]),[I,N]}else he({tabs:k})}r.useTabs=z;function $(k){let E=I=>(Z({tab:I}),I);const[N,M]=R.useState(ye()||k&&E(k)||O().tab);return he({tabs:I=>{M(I)}}),N}r.useTab=$;async function Ne(k,E=!0){Z({tab:k}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&(re().tabs&&re().tabs(k))}r.setTabs=Ne;function ye(){return O().tab}r.getTabs=ye;function L(k){return O().tab===k}r.isTabs=L;function A(k){if(typeof k!="function"){const[E,N]=R.useState(k||Pe());return he({id:M=>{N(M)}}),E}else he({id:k})}r.useId=A;function Ie(k){}r.subId=Ie;async function Me(k,E=!0){Z({id:k}),sessionStorage.setItem(O().STORAGE,le.enCode(O())),E&&re().id(k)}r.setId=Me;function Pe(){return O().id}r.getId=Pe;function De(k){return Number(O().id)===k}r.isId=De;async function Fe(k){var E,N,M,I,B,D,U,pe;const{page:X,module:Y,tab:Q,id:ee}=k;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=(E=re()).id)==null||N.call(E,ee)),Q!==void 0&&((I=(M=re()).tabs)==null||I.call(M,Q)),Y!==void 0&&((D=(B=re()).module)==null||D.call(B,Y)),X!==void 0&&((pe=(U=re()).page)==null||pe.call(U,X)),sessionStorage.setItem(O().STORAGE,le.enCode(O()))}r.navigate=Fe})(ce||(ce={}));const _e={n:"_n_zlj3m_1",i:"_i_zlj3m_10",t:"_t_zlj3m_28",e:"_e_zlj3m_32",s:"_s_zlj3m_35",w:"_w_zlj3m_38",h:"_h_zlj3m_41"};let lt={};function mr(){const[r,o]=R.useState([]);return lt.set=a=>{o([...r,a])},lt.del=a=>{r.forEach((l,c)=>{l.key===a&&r.splice(c,1)}),o(r)},r.length===0?i.jsx(i.Fragment,{}):i.jsx("div",{className:_e.n,children:r.map(a=>a.item)})}function vr(r){let o=new Date().getTime();r.key=o,lt.set({item:i.jsx(br,{data:r},o),key:o})}function br(r){const o=r.data;let[a]=R.useState("show"),[l,c]=R.useState(!1);R.useEffect(()=>{setTimeout(function(){c(!0),lt.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}const w={error:_e.e,success:_e.s,warning:_e.w};return i.jsx(i.Fragment,{children:l?i.jsx(i.Fragment,{}):i.jsxs("div",{className:_e.i+w[o.type]+` ${o.thema!==void 0?_e.h:""}`,"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:_e.t,children:o.text})]})})}let me={Send:vr,Init:mr};const ue={d:"_d_1u25q_1",b:"_b_1u25q_21",o:"_o_1u25q_25",m:"_m_1u25q_30",t:"_t_1u25q_41",a:"_a_1u25q_108",v:"_v_1u25q_118"},fe={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 yr=()=>{if(location.hostname==="localhost"){let[r,o]=R.useState(!1),[a,l]=R.useState(!1),[c,p]=R.useState("dark"),[w,y]=R.useState(!1),[u,x]=R.useState(!1);fe.is=!0,fe.MainButton.set=o,fe.BackButton.set=l,R.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 g in K[c])document.documentElement.style.setProperty(g,K[c][g]);be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=g=>{for(let z in K[g])document.documentElement.style.setProperty(z,K[g][z]);p(g),y(!1)},_=()=>{y(!1),x(!0)};return i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:ue.d,children:[a===!1?i.jsx("div",{className:ue.b,children:"Отмена"}):i.jsx("div",{onClick:()=>{var g;a.page===void 0?(g=a.callback)==null||g.call(a):ce.setPage(a.page)},className:ue.b,children:"Назад"}),i.jsx("div",{className:ue.o,onClick:()=>y(!w),children:"Меню"})]}),i.jsx(me.Init,{}),r&&i.jsx("div",{className:ue.m,children:i.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),w?i.jsxs("div",{className:ue.t,children:[i.jsxs("ul",{children:[i.jsx("li",{children:i.jsx("button",{onClick:_,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:()=>m("dark"),children:"Dark"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>m("light"),children:"Light"})}),i.jsx("li",{children:i.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),i.jsx("li",{children:i.jsx("button",{onClick:()=>y(!w),children:"Closed"})})]})]}):"",u?i.jsx(xr,{setAuthorization:x}):""]})}else return R.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",be.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",be.themeParams.bg_color+"b3"),be.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),i.jsx(i.Fragment,{children:i.jsx(me.Init,{})})},xr=({setAuthorization:r})=>{let o={},a=()=>{localStorage.setItem("auth",o)};return i.jsx("div",{className:ue.a,children:i.jsxs("div",{className:ue.v,children:[i.jsx("fieldset",{}),i.jsx("div",{onClick:a,children:" Сохранить "})]})})},er={p:"_p_1axqy_1",s:"_s_1axqy_17"},kr=({className:r,children:o,isScroll:a=!0})=>i.jsx("div",{className:[er.p,a&&er.s,r].filter(l=>l!==void 0).join(" "),children:o}),wr={l:"_l_gfyud_1"},Sr=({children:r,className:o})=>i.jsx("div",{className:[wr.l,o].filter(a=>a!==void 0).join(" "),children:r}),ve={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"},Rr=({items:r})=>{const o=l=>{ce.setPage(l)},a=l=>{be.openTelegramLink(l)};return i.jsx("div",{className:ve.m,children:r.map(l=>i.jsx("div",{className:ve.g,children:l.items.map((c,p)=>i.jsxs("div",{className:ve.i,onClick:()=>{c.link&&a(c.link),c.page&&o(c.page),c.callback&&c.callback()},children:[i.jsxs("div",{className:ve.c,children:[i.jsx("span",{className:ve.l,style:{background:c.color},children:c.icon}),c.title,c.count&&i.jsx("span",{className:ve.n,children:c.count})]}),i.jsx("span",{className:ve.a,children:"›"})]},p))},l.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 jr({children:r,icon:o,iconBadge:a=0,title:l,className:c,view:p="list",position:w="left"}){const[y,u]=R.useState(!1),[x,m]=R.useState(null);R.useEffect(()=>{let g=document.querySelector(".p_sb");return g||(g=document.createElement("div"),g.className="_p_sb",document.body.appendChild(g)),m(g),()=>{g&&g.parentNode&&g.parentNode.removeChild(g)}},[]);const _=i.jsxs(i.Fragment,{children:[y&&i.jsx("div",{className:oe.o,onClick:()=>u(!1)}),i.jsxs("div",{className:de(oe.m,w==="left"?oe.l:oe.r,y&&oe.x,c),children:[i.jsxs("div",{className:oe.h,children:[l&&i.jsx("h3",{className:oe.t,children:l}),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}),x&&ar.createPortal(_,x)]})}let Be=()=>{};const tr=({children:r,title:o,isOverlay:a=!0,footer:l=!0,className:c,onOpen:p})=>{const[w,y]=R.useState(!1);return Be=()=>{y(!0),setTimeout(()=>{var u;p==null||p(!1),(u=Ce==null?void 0:Ce.onClose)==null||u.call(Ce)},300)},i.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${w?"closing":""} `,onClick:Be,children:i.jsxs("div",{className:`footer-menu-popup-book ${w?"closing":""} ${c||""} ${l?"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:Be,children:"✕"})]}),r]})})},ct={h:"_h_4aije_1",r:"_r_4aije_23",c:"_c_4aije_26",x:"_x_4aije_29"},Er={b:"_b_r6m8n_1"},Ar=({className:r,value:o})=>i.jsx("div",{className:[Er.b,r].filter(a=>a!==void 0).join(" "),children:o}),Ce=[],rr=(r,o)=>r.findIndex(a=>(a==null?void 0:a.page)===o),Or=({actions:r,children:o,className:a,toHide:l=!1,page:c,onPageChange:p,direction:w="row"})=>{const[y,u]=R.useState(null),[x,m]=R.useState(c?rr(r||[],c):0);return Ce.onClose=()=>{u(null),m(c?rr(r||[],c):0)},R.useEffect(()=>{if(!l)return;const _=document.querySelectorAll("[contenteditable]"),g=()=>{const $=document.querySelector("footer");$&&$.classList.remove(ct.x)},z=()=>{const $=document.querySelector("footer");$&&$.classList.add(ct.x)};return _.forEach($=>{$.addEventListener("focus",z,!0),$.addEventListener("blur",g,!0)}),()=>{_.forEach($=>{$.removeEventListener("focus",z,!0),$.removeEventListener("blur",g,!0)})}},[]),i.jsxs(i.Fragment,{children:[y,i.jsxs("footer",{className:de(ct.h,ct[w==="row"?"r":"c"],a),children:[o,r&&r.map((_,g)=>i.jsxs("div",{"data-active":x===g?"true":"false",onClick:()=>{_.page&&(m(g),p==null||p(_.page)),_.onClick&&_.onClick(()=>m(g)),_.component&&(x===g?Be():(u(_.component),m(g)))},children:[_.icon,_.title&&i.jsx("span",{children:_.title}),_.badge&&i.jsx(Ar,{value:_.badge})]},g))]})]})},ut={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"},pt={};function Cr({children:r,name:o,onClose:a,isOpen:l,isScroll:c=!0,nextBackButton:p}){const[w,y]=R.useState(!1);return R.useEffect(()=>{if(!l)return;const u=p===void 0?nr().pop():p,x=()=>{y(!1),setTimeout(()=>{ht(u||!1),a==null||a()},300)};pt[o]={onClose:x,onOpen:()=>{y(!0)}},ht({callback:x});const m=setTimeout(()=>{y(!0)},10);return()=>{clearTimeout(m)}},[l]),l?i.jsxs("div",{className:de(ut.w,w&&ut.v,c&&ut.s),children:[i.jsx("div",{className:ut.n}),r]}):""}const Pr=(r,o)=>{var a,l;o?(a=pt[r])==null||a.onOpen():(l=pt[r])==null||l.onClose()},or={s:"_s_ezoxx_3",n:"_n_ezoxx_14"};function $r({className:r,children:o,onScrollEnd:a,offset:l=100,isLoading:c,isScrollBar:p=!1}){const[w,y]=R.useState(c||!1);R.useEffect(()=>{y(c||!1)},[c]);let u={onScroll:x=>{const{scrollTop:m,scrollHeight:_,clientHeight:g}=x.currentTarget;m+g>=_-l&&!w&&(y(!0),a==null||a())}};return i.jsx("div",{...u,className:de(or.s,!p&&or.n,r),children:o})}const gt={a:"_a_ohhaz_1",l:"_l_ohhaz_12",r:"_r_ohhaz_15"};function Tr({children:r,className:o,position:a="center",title:l}){let c="";return a==="left"?c=gt.l:a==="right"&&(c=gt.r),i.jsxs("div",{className:de(gt.a,c,o),children:[r,l&&i.jsx("b",{children:l})]})}const F={state:[!1],listen:[],prev:{},router:r=>{r===!1?(v.default.WebApp.BackButton.isVisible=!1,v.default.WebApp.BackButton.offClick(F.listen[0]),F.listen.shift(),F.state.length!==1&&F.state.pop()):(v.default.WebApp.BackButton.isVisible=!0,v.default.WebApp.BackButton.offClick(F.listen[0]),F.listen.shift(),F.listen.push(()=>{var a;let o=F.state.pop();F.prev=ce.getPage(),o.page!==void 0?ce.setPage(o.page):(a=o.callback)==null||a.call(o)}),be.BackButton.onClick(F.listen[0]))}},de=(...r)=>r.filter(o=>o!==void 0&&o!==!1&&o!==null&&o!=="").join(" ");v.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.Location=o=>{if(fe.is)return o({latitude:55.752555,longitude:37.623123});let a=()=>{r.WebApp.LocationManager.getLocation(async l=>{if(!l){r.WebApp.LocationManager.isAccessRequested||r.WebApp.LocationManager.openSettings();return}o(l)})};!r.WebApp.LocationManager||!r.WebApp.LocationManager.isInited?r.WebApp.LocationManager.init(()=>{a()}):a()},r.Notice={Send:(o,a,l)=>{var c,p;a!==void 0?(me.Send({type:o,text:a,thema:l}),(c=r.WebApp.HapticFeedback)==null||c.notificationOccurred(o)):(me.Send(o),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(o.type))},Error:o=>{var a;me.Send({type:"error",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:o=>{var a;me.Send({type:"success",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:o=>{var a;me.Send({type:"warning",text:o}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=yr,r.TabBar=Or,r.BottomSheet=tr,r.toggleBottomSheet=Be,r.SafeArea=kr,r.Loading=Sr,r.Sidebar=jr,r.SidePanel=Cr,r.AppBar=Tr,r.SidePanelController=Pr,r.Scroll=$r,r.Modal=dt,r.Menu=Rr,r.MainButton={callback:[],set:o=>{fe.is?fe.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=()=>{F.prev&&(0,r.BackButton)(F.prev)},r.BackButtonState=()=>F.state,r.BackButton=o=>{fe.is?fe.BackButton.set(o):(F.state.push(o),F.router(o))}})(v.default||(v.default={}));const zr=v.default.TabBar,Br=tr,ht=v.default.BackButton,Nr=v.default.BackButtonPrev,nr=v.default.BackButtonState,Ir=v.default.Notice,Mr=v.default.SafeArea,Dr=v.default.Loading,Fr=v.default.Menu,Lr=v.default.SidePanel,Wr=v.default.Scroll,Ur=v.default.AppBar,qr=v.default.Sidebar,Vr=v.default.Location,Hr=v.default.SidePanelController,{Header:Jr,toggleBottomSheet:Kr,Modal:Gr,MainButton:Zr,WebApp:be,getUser:Xr}=v.default;v.AppBar=Ur,v.BackButton=ht,v.BackButtonPrev=Nr,v.BackButtonState=nr,v.BottomSheet=Br,v.Header=Jr,v.Loading=Dr,v.Location=Vr,v.MainButton=Zr,v.Menu=Fr,v.Modal=Gr,v.Notice=Ir,v.SafeArea=Mr,v.Scroll=Wr,v.SidePanel=Lr,v.SidePanelController=Hr,v.Sidebar=qr,v.TabBar=zr,v.WebApp=be,v.clsx=de,v.getUser=Xr,v.toggleBottomSheet=Kr,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.123",
3
+ "version": "0.0.125",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",