@elcrm/telegram 0.0.96 → 0.0.97

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 Ft;function er(){if(Ft)return Oe;Ft=1;var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(x,f,j){var m,v={},b=null,B=null;j!==void 0&&(b=""+j),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(B=f.ref);for(m in f)u.call(f,m)&&!p.hasOwnProperty(m)&&(v[m]=f[m]);if(x&&x.defaultProps)for(m in f=x.defaultProps,f)v[m]===void 0&&(v[m]=f[m]);return{$$typeof:n,type:x,key:b,ref:B,props:v,_owner:l.current}}return Oe.Fragment=a,Oe.jsx=R,Oe.jsxs=R,Oe}var Ae={};/**
10
+ */var Ft;function er(){if(Ft)return Oe;Ft=1;var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(_,f,j){var g,v={},b=null,B=null;j!==void 0&&(b=""+j),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(B=f.ref);for(g in f)c.call(f,g)&&!p.hasOwnProperty(g)&&(v[g]=f[g]);if(_&&_.defaultProps)for(g in f=_.defaultProps,f)v[g]===void 0&&(v[g]=f[g]);return{$$typeof:n,type:_,key:b,ref:B,props:v,_owner:l.current}}return Oe.Fragment=a,Oe.jsx=R,Oe.jsxs=R,Oe}var Ae={};/**
11
11
  * @license React
12
12
  * react-jsx-runtime.development.js
13
13
  *
@@ -15,20 +15,20 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var Wt;function tr(){return Wt||(Wt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),x=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),M=Symbol.iterator,Te="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[Te];return typeof t=="function"?t:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Be("error",e,o)}}function Be(e,t,o){{var i=U.ReactDebugCurrentFrame,h=i.getStackAddendum();h!==""&&(t+="%s",o=o.concat([h]));var g=o.map(function(d){return String(d)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var $e=!1,je=!1,Ne=!1,Ie=!1,_=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===p||_||e===l||e===j||e===m||Ie||e===B||$e||je||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===R||e.$$typeof===x||e.$$typeof===f||e.$$typeof===E||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var h=t.displayName||t.name||"";return h!==""?o+"("+h+")":o}function I(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case j:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var t=e;return I(t)+".Consumer";case R:var o=e;return I(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case v:var i=e.displayName||null;return i!==null?i:$(e.type)||"Memo";case b:{var h=e,g=h._payload,d=h._init;try{return $(d(g))}catch{return null}}}return null}var F=Object.assign,z=0,ue,X,Y,Q,ee,Me,De;function Fe(){}Fe.__reactDisabledLog=!0;function ft(){{if(z===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Me=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}z++}}function dt(){{if(z--,z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Me}),groupEnd:F({},e,{value:De})})}z<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=U.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(h){var i=h.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
19
- `+ye+e}}var _e=!1,ae;{var pt=typeof WeakMap=="function"?WeakMap:Map;ae=new pt}function We(e,t){if(!e||_e)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;_e=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=be.current,be.current=null,ft();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(C){i=C}Reflect.construct(e,[],d)}else{try{d.call()}catch(C){i=C}e.call(d.prototype)}}else{try{throw Error()}catch(C){i=C}e()}}catch(C){if(C&&i&&typeof C.stack=="string"){for(var c=C.stack.split(`
18
+ */var Wt;function tr(){return Wt||(Wt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),M=Symbol.iterator,Te="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[Te];return typeof t=="function"?t:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Be("error",e,o)}}function Be(e,t,o){{var i=U.ReactDebugCurrentFrame,h=i.getStackAddendum();h!==""&&(t+="%s",o=o.concat([h]));var m=o.map(function(d){return String(d)});m.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,m)}}var $e=!1,je=!1,Ne=!1,Ie=!1,x=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===j||e===g||Ie||e===B||$e||je||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===R||e.$$typeof===_||e.$$typeof===f||e.$$typeof===E||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var h=t.displayName||t.name||"";return h!==""?o+"("+h+")":o}function I(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case j:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return I(t)+".Consumer";case R:var o=e;return I(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case v:var i=e.displayName||null;return i!==null?i:$(e.type)||"Memo";case b:{var h=e,m=h._payload,d=h._init;try{return $(d(m))}catch{return null}}}return null}var F=Object.assign,z=0,ue,X,Y,Q,ee,Me,De;function Fe(){}Fe.__reactDisabledLog=!0;function ft(){{if(z===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Me=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}z++}}function dt(){{if(z--,z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Me}),groupEnd:F({},e,{value:De})})}z<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=U.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(h){var i=h.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
19
+ `+ye+e}}var _e=!1,ae;{var pt=typeof WeakMap=="function"?WeakMap:Map;ae=new pt}function We(e,t){if(!e||_e)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;_e=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=be.current,be.current=null,ft();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(C){i=C}Reflect.construct(e,[],d)}else{try{d.call()}catch(C){i=C}e.call(d.prototype)}}else{try{throw Error()}catch(C){i=C}e()}}catch(C){if(C&&i&&typeof C.stack=="string"){for(var u=C.stack.split(`
20
20
  `),P=i.stack.split(`
21
- `),k=c.length-1,w=P.length-1;k>=1&&w>=0&&c[k]!==P[w];)w--;for(;k>=1&&w>=0;k--,w--)if(c[k]!==P[w]){if(k!==1||w!==1)do if(k--,w--,w<0||c[k]!==P[w]){var T=`
22
- `+c[k].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(k>=1&&w>=0);break}}}finally{_e=!1,be.current=g,dt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",L=H?oe(H):"";return typeof e=="function"&&ae.set(e,L),L}function ht(e,t,o){return We(e,!1)}function gt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return We(e,gt(e));if(typeof e=="string")return oe(e);switch(e){case j:return oe("Suspense");case m:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return ht(e.render);case v:return ie(e.type,t,o);case b:{var i=e,h=i._payload,g=i._init;try{return ie(g(h),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ue={},Le=U.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function mt(e,t,o,i,h){{var g=Function.call.bind(G);for(var d in e)if(g(e,d)){var c=void 0;try{if(typeof e[d]!="function"){var P=Error((i||"React class")+": "+o+" 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 P.name="Invariant Violation",P}c=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){c=k}c&&!(c instanceof Error)&&(se(h),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",o,d,typeof c),se(null)),c instanceof Error&&!(c.message in Ue)&&(Ue[c.message]=!0,se(h),O("Failed %s type: %s",o,c.message),se(null))}}}var vt=Array.isArray;function xe(e){return vt(e)}function bt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function yt(e){try{return ze(e),!1}catch{return!0}}function ze(e){return""+e}function Ve(e){if(yt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(e)),ze(e)}var qe=U.ReactCurrentOwner,_t={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function xt(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 kt(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 wt(e,t){typeof e.ref=="string"&&qe.current}function St(e,t){{var o=function(){He||(He=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Rt(e,t){{var o=function(){Je||(Je=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Et=function(e,t,o,i,h,g,d){var c={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:g};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function jt(e,t,o,i,h){{var g,d={},c=null,P=null;o!==void 0&&(Ve(o),c=""+o),kt(t)&&(Ve(t.key),c=""+t.key),xt(t)&&(P=t.ref,wt(t,h));for(g in t)G.call(t,g)&&!_t.hasOwnProperty(g)&&(d[g]=t[g]);if(e&&e.defaultProps){var k=e.defaultProps;for(g in k)d[g]===void 0&&(d[g]=k[g])}if(c||P){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&St(d,w),P&&Rt(d,w)}return Et(e,c,P,h,i,qe.current,d)}}var ke=U.ReactCurrentOwner,Ke=U.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ke.setExtraStackFrame(o)}else Ke.setExtraStackFrame(null)}var we;we=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ge(){{if(ke.current){var e=$(ke.current.type);if(e)return`
21
+ `),k=u.length-1,w=P.length-1;k>=1&&w>=0&&u[k]!==P[w];)w--;for(;k>=1&&w>=0;k--,w--)if(u[k]!==P[w]){if(k!==1||w!==1)do if(k--,w--,w<0||u[k]!==P[w]){var T=`
22
+ `+u[k].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(k>=1&&w>=0);break}}}finally{_e=!1,be.current=m,dt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",L=H?oe(H):"";return typeof e=="function"&&ae.set(e,L),L}function ht(e,t,o){return We(e,!1)}function gt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return We(e,gt(e));if(typeof e=="string")return oe(e);switch(e){case j:return oe("Suspense");case g:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return ht(e.render);case v:return ie(e.type,t,o);case b:{var i=e,h=i._payload,m=i._init;try{return ie(m(h),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ue={},Le=U.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function mt(e,t,o,i,h){{var m=Function.call.bind(G);for(var d in e)if(m(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var P=Error((i||"React class")+": "+o+" 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 P.name="Invariant Violation",P}u=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){u=k}u&&!(u instanceof Error)&&(se(h),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",o,d,typeof u),se(null)),u instanceof Error&&!(u.message in Ue)&&(Ue[u.message]=!0,se(h),O("Failed %s type: %s",o,u.message),se(null))}}}var vt=Array.isArray;function xe(e){return vt(e)}function bt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function yt(e){try{return ze(e),!1}catch{return!0}}function ze(e){return""+e}function Ve(e){if(yt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(e)),ze(e)}var qe=U.ReactCurrentOwner,_t={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function xt(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 kt(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 wt(e,t){typeof e.ref=="string"&&qe.current}function St(e,t){{var o=function(){He||(He=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Rt(e,t){{var o=function(){Je||(Je=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Et=function(e,t,o,i,h,m,d){var u={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:m};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function jt(e,t,o,i,h){{var m,d={},u=null,P=null;o!==void 0&&(Ve(o),u=""+o),kt(t)&&(Ve(t.key),u=""+t.key),xt(t)&&(P=t.ref,wt(t,h));for(m in t)G.call(t,m)&&!_t.hasOwnProperty(m)&&(d[m]=t[m]);if(e&&e.defaultProps){var k=e.defaultProps;for(m in k)d[m]===void 0&&(d[m]=k[m])}if(u||P){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&St(d,w),P&&Rt(d,w)}return Et(e,u,P,h,i,qe.current,d)}}var ke=U.ReactCurrentOwner,Ke=U.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ke.setExtraStackFrame(o)}else Ke.setExtraStackFrame(null)}var we;we=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ge(){{if(ke.current){var e=$(ke.current.type);if(e)return`
23
23
 
24
24
  Check the render method of \``+e+"`."}return""}}function Ot(e){return""}var Ze={};function At(e){{var t=Ge();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
25
25
 
26
- Check the top-level render call using <`+o+">.")}return t}}function Xe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=At(t);if(Ze[o])return;Ze[o]=!0;var i="";e&&e._owner&&e._owner!==ke.current&&(i=" It was passed a child from "+$(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),q(null)}}function Ye(e,t){{if(typeof e!="object")return;if(xe(e))for(var o=0;o<e.length;o++){var i=e[o];Se(i)&&Xe(i,t)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var h=ve(e);if(typeof h=="function"&&h!==e.entries)for(var g=h.call(e),d;!(d=g.next()).done;)Se(d.value)&&Xe(d.value,t)}}}function Pt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===f||t.$$typeof===v))o=t.propTypes;else return;if(o){var i=$(t);mt(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var h=$(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ct(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Qe={};function et(e,t,o,i,h,g){{var d=N(e);if(!d){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" 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 P=Ot();P?c+=P:c+=Ge();var k;e===null?k="null":xe(e)?k="array":e!==void 0&&e.$$typeof===n?(k="<"+($(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,c)}var w=jt(e,t,o,h,g);if(w==null)return w;if(d){var T=t.children;if(T!==void 0)if(i)if(xe(T)){for(var H=0;H<T.length;H++)Ye(T[H],e);Object.freeze&&Object.freeze(T)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(T,e)}if(G.call(t,"key")){var L=$(e),C=Object.keys(t).filter(function(Mt){return Mt!=="key"}),Re=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Qe[L+Re]){var It=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
26
+ Check the top-level render call using <`+o+">.")}return t}}function Xe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=At(t);if(Ze[o])return;Ze[o]=!0;var i="";e&&e._owner&&e._owner!==ke.current&&(i=" It was passed a child from "+$(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),q(null)}}function Ye(e,t){{if(typeof e!="object")return;if(xe(e))for(var o=0;o<e.length;o++){var i=e[o];Se(i)&&Xe(i,t)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var h=ve(e);if(typeof h=="function"&&h!==e.entries)for(var m=h.call(e),d;!(d=m.next()).done;)Se(d.value)&&Xe(d.value,t)}}}function Pt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===f||t.$$typeof===v))o=t.propTypes;else return;if(o){var i=$(t);mt(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var h=$(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ct(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Qe={};function et(e,t,o,i,h,m){{var d=N(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 P=Ot();P?u+=P:u+=Ge();var k;e===null?k="null":xe(e)?k="array":e!==void 0&&e.$$typeof===n?(k="<"+($(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,u)}var w=jt(e,t,o,h,m);if(w==null)return w;if(d){var T=t.children;if(T!==void 0)if(i)if(xe(T)){for(var H=0;H<T.length;H++)Ye(T[H],e);Object.freeze&&Object.freeze(T)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(T,e)}if(G.call(t,"key")){var L=$(e),C=Object.keys(t).filter(function(Mt){return Mt!=="key"}),Re=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Qe[L+Re]){var It=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
27
27
  let props = %s;
28
28
  <%s {...props} />
29
29
  React keys must be passed directly to JSX without using spread:
30
30
  let props = %s;
31
- <%s key={someKey} {...props} />`,Re,L,It,L),Qe[L+Re]=!0}}return e===u?Ct(w):Pt(w),w}}function Tt(e,t,o){return et(e,t,o,!0)}function Bt(e,t,o){return et(e,t,o,!1)}var $t=Bt,Nt=Tt;Ae.Fragment=u,Ae.jsx=$t,Ae.jsxs=Nt}()),Ae}process.env.NODE_ENV==="production"?it.exports=er():it.exports=tr();var s=it.exports;let V={};var st;(r=>{function n({children:x,onCallbackModal:f,nameModal:j}){const[m,v]=S.useState(!1),[b,B]=S.useState(!1);if(V[j].onClose=()=>{y.default.BackButton(!1),B(!0),setTimeout(()=>{v(!1),B(!1),f==null||f(),V.x(j)},300)},S.useEffect(()=>{m?V[j].onClose():(y.default.BackButton({callback:()=>V[j].onClose()}),v(!0))},[]),!!m)return s.jsx("div",{className:`modal-overlay ${b?"closing":""}`,children:s.jsx("div",{className:`modal-popup ${b?"closing":""}`,children:s.jsx("div",{children:x})})})}r.Content=n;function a({import_modules:x}){let[f,j]=S.useState([]);return V.x=m=>{j(m?f.filter(v=>v.key!==m):[])},S.useEffect(()=>{x&&(V.i=x)},[]),V.add=(m,v=Date.now())=>{j([...f,{key:v,item:m}])},s.jsx(s.Fragment,{children:f.map(m=>m.item)})}r.Init=a;function u(x,f){V.add(s.jsx(n,{onCallbackModal:V["callback_modal"+f],nameModal:f||"",children:x},String(Date.now())),f)}r.Add=u;function l(x,f=Date.now().toString()){return V[f]={},{Open:v=>{r.Add(s.jsx(x,{...v,onCallbackModal:b=>{var B;(B=v.callback)==null||B.call(v,b)},nameModal:f},new Date().getTime()),f)}}}r.Create=l;function p(x){V[x].onClose()}r.Close=p;function R(x,f,j,m){V.i&&(m&&(j.callback=m),V.i(`${x}/modals/${f}.tsx`).then(v=>{v.default.Open(j)}))}r.Open=R})(st||(st={}));function Ut(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Lt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function zt(r){const n=Ut();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Lt,...r}}function tt(){return Ut().CRYPTO_PARAMS||Lt}const rt=r=>{let n=0;for(let u=0;u<r.length;u++){const l=r.charCodeAt(u);n=(n<<5)-n+l,n=n&n}n=Math.abs(n);let a="";for(let u=0;u<64;u++){const l=(n^u*197)&255;a+=l.toString(16).padStart(2,"0")}return a},Vt=(r,n)=>{let a=r+n;for(let l=0;l<tt().iterations;l++)a=rt(a);const u=new Uint8Array(32);for(let l=0;l<32;l++)u[l]=parseInt(a.substring(l*2,l*2+2),16);return u},qt=(r,n)=>{const a=new Uint8Array(r.length),u=new Uint8Array(r.length);let l=0;for(let p=0;p<r.length;p++){const R=p%n.length;l=n[R]+p+l&255,u[p]=l}for(let p=0;p<r.length;p++)a[p]=r[p]^u[p];return a},rr=r=>new TextEncoder().encode(r),nr=r=>new TextDecoder().decode(r),or=r=>{let n="";for(let a=0;a<r.length;a+=8192){const u=r.slice(a,Math.min(a+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(u))}return btoa(n)},ar=r=>{const n=atob(r),a=new Uint8Array(n.length);for(let u=0;u<n.length;u++)a[u]=n.charCodeAt(u);return a},ir=r=>{try{const n=rt(Date.now().toString()+Math.random()).substring(0,tt().saltLength*2),a=rt(r+n).substring(0,8),u=Vt(tt().key,n),l=rr(r),p=qt(l,u),R=or(p);return`${n}.${R}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},sr=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=n[0],u=n[1],l=n[2],p=Vt(tt().key,a),R=ar(u),x=qt(R,p),f=nr(x);if(rt(f+a).substring(0,8)!==l)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var le;(r=>{r.setKey=n=>{zt({key:n})},r.enCode=n=>{try{const a=JSON.stringify(n);return ir(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const a=sr(n);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(n,a)=>{zt({iterations:n,saltLength:a})}})(le||(le={}));var Pe={};/**
31
+ <%s key={someKey} {...props} />`,Re,L,It,L),Qe[L+Re]=!0}}return e===c?Ct(w):Pt(w),w}}function Tt(e,t,o){return et(e,t,o,!0)}function Bt(e,t,o){return et(e,t,o,!1)}var $t=Bt,Nt=Tt;Ae.Fragment=c,Ae.jsx=$t,Ae.jsxs=Nt}()),Ae}process.env.NODE_ENV==="production"?it.exports=er():it.exports=tr();var s=it.exports;let V={};var st;(r=>{function n({children:_,onCallbackModal:f,nameModal:j}){const[g,v]=S.useState(!1),[b,B]=S.useState(!1);if(V[j].onClose=()=>{y.default.BackButton(!1),B(!0),setTimeout(()=>{v(!1),B(!1),f==null||f(),V.x(j)},300)},S.useEffect(()=>{g?V[j].onClose():(y.default.BackButton({callback:()=>V[j].onClose()}),v(!0))},[]),!!g)return s.jsx("div",{className:`modal-overlay ${b?"closing":""}`,children:s.jsx("div",{className:`modal-popup ${b?"closing":""}`,children:s.jsx("div",{children:_})})})}r.Content=n;function a({import_modules:_}){let[f,j]=S.useState([]);return V.x=g=>{j(g?f.filter(v=>v.key!==g):[])},S.useEffect(()=>{_&&(V.i=_)},[]),V.add=(g,v=Date.now())=>{j([...f,{key:v,item:g}])},s.jsx(s.Fragment,{children:f.map(g=>g.item)})}r.Init=a;function c(_,f){V.add(s.jsx(n,{onCallbackModal:V["callback_modal"+f],nameModal:f||"",children:_},String(Date.now())),f)}r.Add=c;function l(_,f=Date.now().toString()){return V[f]={},{Open:v=>{r.Add(s.jsx(_,{...v,onCallbackModal:b=>{var B;(B=v.callback)==null||B.call(v,b)},nameModal:f},new Date().getTime()),f)}}}r.Create=l;function p(_){V[_].onClose()}r.Close=p;function R(_,f,j,g){V.i&&(g&&(j.callback=g),V.i(`${_}/modals/${f}.tsx`).then(v=>{v.default.Open(j)}))}r.Open=R})(st||(st={}));function Ut(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}const Lt={key:"Y0zt37HgOx-BY7SQjYVmrqhPkO41Ii2Jcb9yydUDPf6",iterations:7,saltLength:16};function zt(r){const n=Ut();n.CRYPTO_PARAMS?n.CRYPTO_PARAMS={...n.CRYPTO_PARAMS,...r}:n.CRYPTO_PARAMS={...Lt,...r}}function tt(){return Ut().CRYPTO_PARAMS||Lt}const rt=r=>{let n=0;for(let c=0;c<r.length;c++){const l=r.charCodeAt(c);n=(n<<5)-n+l,n=n&n}n=Math.abs(n);let a="";for(let c=0;c<64;c++){const l=(n^c*197)&255;a+=l.toString(16).padStart(2,"0")}return a},Vt=(r,n)=>{let a=r+n;for(let l=0;l<tt().iterations;l++)a=rt(a);const c=new Uint8Array(32);for(let l=0;l<32;l++)c[l]=parseInt(a.substring(l*2,l*2+2),16);return c},qt=(r,n)=>{const a=new Uint8Array(r.length),c=new Uint8Array(r.length);let l=0;for(let p=0;p<r.length;p++){const R=p%n.length;l=n[R]+p+l&255,c[p]=l}for(let p=0;p<r.length;p++)a[p]=r[p]^c[p];return a},rr=r=>new TextEncoder().encode(r),nr=r=>new TextDecoder().decode(r),or=r=>{let n="";for(let a=0;a<r.length;a+=8192){const c=r.slice(a,Math.min(a+8192,r.length));n+=String.fromCharCode.apply(null,Array.from(c))}return btoa(n)},ar=r=>{const n=atob(r),a=new Uint8Array(n.length);for(let c=0;c<n.length;c++)a[c]=n.charCodeAt(c);return a},ir=r=>{try{const n=rt(Date.now().toString()+Math.random()).substring(0,tt().saltLength*2),a=rt(r+n).substring(0,8),c=Vt(tt().key,n),l=rr(r),p=qt(l,c),R=or(p);return`${n}.${R}.${a}`}catch{throw new Error("Не удалось зашифровать данные")}},sr=r=>{try{const n=r.split(".");if(n.length!==3)throw new Error("Неверный формат зашифрованных данных");const a=n[0],c=n[1],l=n[2],p=Vt(tt().key,a),R=ar(c),_=qt(R,p),f=nr(_);if(rt(f+a).substring(0,8)!==l)throw new Error("Контрольная сумма не совпадает");return f}catch{return""}};var le;(r=>{r.setKey=n=>{zt({key:n})},r.enCode=n=>{try{const a=JSON.stringify(n);return ir(a)}catch{throw new Error("Не удалось зашифровать объект")}},r.deCode=n=>{try{if(!n||n.length<10)return!1;const a=sr(n);return a&&JSON.parse(a)||!1}catch{return!1}},r.setSecurityParams=(n,a)=>{zt({iterations:n,saltLength:a})}})(le||(le={}));var Pe={};/**
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 Ht;function lr(){if(Ht)return Pe;Ht=1;var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(x,f,j){var m,v={},b=null,B=null;j!==void 0&&(b=""+j),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(B=f.ref);for(m in f)u.call(f,m)&&!p.hasOwnProperty(m)&&(v[m]=f[m]);if(x&&x.defaultProps)for(m in f=x.defaultProps,f)v[m]===void 0&&(v[m]=f[m]);return{$$typeof:n,type:x,key:b,ref:B,props:v,_owner:l.current}}return Pe.Fragment=a,Pe.jsx=R,Pe.jsxs=R,Pe}var nt={};/**
39
+ */var Ht;function lr(){if(Ht)return Pe;Ht=1;var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function R(_,f,j){var g,v={},b=null,B=null;j!==void 0&&(b=""+j),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(B=f.ref);for(g in f)c.call(f,g)&&!p.hasOwnProperty(g)&&(v[g]=f[g]);if(_&&_.defaultProps)for(g in f=_.defaultProps,f)v[g]===void 0&&(v[g]=f[g]);return{$$typeof:n,type:_,key:b,ref:B,props:v,_owner:l.current}}return Pe.Fragment=a,Pe.jsx=R,Pe.jsxs=R,Pe}var nt={};/**
40
40
  * @license React
41
41
  * react-jsx-runtime.development.js
42
42
  *
@@ -44,17 +44,17 @@ React keys must be passed directly to JSX without using spread:
44
44
  *
45
45
  * This source code is licensed under the MIT license found in the
46
46
  * LICENSE file in the root directory of this source tree.
47
- */var Jt;function cr(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),x=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),M=Symbol.iterator,Te="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[Te];return typeof t=="function"?t:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Be("error",e,o)}}function Be(e,t,o){{var i=U.ReactDebugCurrentFrame,h=i.getStackAddendum();h!==""&&(t+="%s",o=o.concat([h]));var g=o.map(function(d){return String(d)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var $e=!1,je=!1,Ne=!1,Ie=!1,_=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===p||_||e===l||e===j||e===m||Ie||e===B||$e||je||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===R||e.$$typeof===x||e.$$typeof===f||e.$$typeof===E||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var h=t.displayName||t.name||"";return h!==""?o+"("+h+")":o}function I(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case j:return"Suspense";case m:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case x:var t=e;return I(t)+".Consumer";case R:var o=e;return I(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case v:var i=e.displayName||null;return i!==null?i:$(e.type)||"Memo";case b:{var h=e,g=h._payload,d=h._init;try{return $(d(g))}catch{return null}}}return null}var F=Object.assign,z=0,ue,X,Y,Q,ee,Me,De;function Fe(){}Fe.__reactDisabledLog=!0;function ft(){{if(z===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Me=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}z++}}function dt(){{if(z--,z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Me}),groupEnd:F({},e,{value:De})})}z<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=U.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(h){var i=h.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
48
- `+ye+e}}var _e=!1,ae;{var pt=typeof WeakMap=="function"?WeakMap:Map;ae=new pt}function We(e,t){if(!e||_e)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;_e=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=be.current,be.current=null,ft();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(C){i=C}Reflect.construct(e,[],d)}else{try{d.call()}catch(C){i=C}e.call(d.prototype)}}else{try{throw Error()}catch(C){i=C}e()}}catch(C){if(C&&i&&typeof C.stack=="string"){for(var c=C.stack.split(`
47
+ */var Jt;function cr(){return Jt||(Jt=1,process.env.NODE_ENV!=="production"&&function(){var r=S,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),M=Symbol.iterator,Te="@@iterator";function ve(e){if(e===null||typeof e!="object")return null;var t=M&&e[M]||e[Te];return typeof t=="function"?t:null}var U=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(e){{for(var t=arguments.length,o=new Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];Be("error",e,o)}}function Be(e,t,o){{var i=U.ReactDebugCurrentFrame,h=i.getStackAddendum();h!==""&&(t+="%s",o=o.concat([h]));var m=o.map(function(d){return String(d)});m.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,m)}}var $e=!1,je=!1,Ne=!1,Ie=!1,x=!1,E;E=Symbol.for("react.module.reference");function N(e){return!!(typeof e=="string"||typeof e=="function"||e===c||e===p||x||e===l||e===j||e===g||Ie||e===B||$e||je||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===R||e.$$typeof===_||e.$$typeof===f||e.$$typeof===E||e.getModuleId!==void 0))}function D(e,t,o){var i=e.displayName;if(i)return i;var h=t.displayName||t.name||"";return h!==""?o+"("+h+")":o}function I(e){return e.displayName||"Context"}function $(e){if(e==null)return null;if(typeof e.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case c:return"Fragment";case a:return"Portal";case p:return"Profiler";case l:return"StrictMode";case j:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return I(t)+".Consumer";case R:var o=e;return I(o._context)+".Provider";case f:return D(e,e.render,"ForwardRef");case v:var i=e.displayName||null;return i!==null?i:$(e.type)||"Memo";case b:{var h=e,m=h._payload,d=h._init;try{return $(d(m))}catch{return null}}}return null}var F=Object.assign,z=0,ue,X,Y,Q,ee,Me,De;function Fe(){}Fe.__reactDisabledLog=!0;function ft(){{if(z===0){ue=console.log,X=console.info,Y=console.warn,Q=console.error,ee=console.group,Me=console.groupCollapsed,De=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Fe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}z++}}function dt(){{if(z--,z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ue}),info:F({},e,{value:X}),warn:F({},e,{value:Y}),error:F({},e,{value:Q}),group:F({},e,{value:ee}),groupCollapsed:F({},e,{value:Me}),groupEnd:F({},e,{value:De})})}z<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var be=U.ReactCurrentDispatcher,ye;function oe(e,t,o){{if(ye===void 0)try{throw Error()}catch(h){var i=h.stack.trim().match(/\n( *(at )?)/);ye=i&&i[1]||""}return`
48
+ `+ye+e}}var _e=!1,ae;{var pt=typeof WeakMap=="function"?WeakMap:Map;ae=new pt}function We(e,t){if(!e||_e)return"";{var o=ae.get(e);if(o!==void 0)return o}var i;_e=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var m;m=be.current,be.current=null,ft();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(C){i=C}Reflect.construct(e,[],d)}else{try{d.call()}catch(C){i=C}e.call(d.prototype)}}else{try{throw Error()}catch(C){i=C}e()}}catch(C){if(C&&i&&typeof C.stack=="string"){for(var u=C.stack.split(`
49
49
  `),P=i.stack.split(`
50
- `),k=c.length-1,w=P.length-1;k>=1&&w>=0&&c[k]!==P[w];)w--;for(;k>=1&&w>=0;k--,w--)if(c[k]!==P[w]){if(k!==1||w!==1)do if(k--,w--,w<0||c[k]!==P[w]){var T=`
51
- `+c[k].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(k>=1&&w>=0);break}}}finally{_e=!1,be.current=g,dt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",L=H?oe(H):"";return typeof e=="function"&&ae.set(e,L),L}function ht(e,t,o){return We(e,!1)}function gt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return We(e,gt(e));if(typeof e=="string")return oe(e);switch(e){case j:return oe("Suspense");case m:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return ht(e.render);case v:return ie(e.type,t,o);case b:{var i=e,h=i._payload,g=i._init;try{return ie(g(h),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ue={},Le=U.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function mt(e,t,o,i,h){{var g=Function.call.bind(G);for(var d in e)if(g(e,d)){var c=void 0;try{if(typeof e[d]!="function"){var P=Error((i||"React class")+": "+o+" 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 P.name="Invariant Violation",P}c=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){c=k}c&&!(c instanceof Error)&&(se(h),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",o,d,typeof c),se(null)),c instanceof Error&&!(c.message in Ue)&&(Ue[c.message]=!0,se(h),O("Failed %s type: %s",o,c.message),se(null))}}}var vt=Array.isArray;function xe(e){return vt(e)}function bt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function yt(e){try{return ze(e),!1}catch{return!0}}function ze(e){return""+e}function Ve(e){if(yt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(e)),ze(e)}var qe=U.ReactCurrentOwner,_t={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function xt(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 kt(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 wt(e,t){typeof e.ref=="string"&&qe.current}function St(e,t){{var o=function(){He||(He=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Rt(e,t){{var o=function(){Je||(Je=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Et=function(e,t,o,i,h,g,d){var c={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:g};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function jt(e,t,o,i,h){{var g,d={},c=null,P=null;o!==void 0&&(Ve(o),c=""+o),kt(t)&&(Ve(t.key),c=""+t.key),xt(t)&&(P=t.ref,wt(t));for(g in t)G.call(t,g)&&!_t.hasOwnProperty(g)&&(d[g]=t[g]);if(e&&e.defaultProps){var k=e.defaultProps;for(g in k)d[g]===void 0&&(d[g]=k[g])}if(c||P){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&St(d,w),P&&Rt(d,w)}return Et(e,c,P,h,i,qe.current,d)}}var ke=U.ReactCurrentOwner,Ke=U.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ke.setExtraStackFrame(o)}else Ke.setExtraStackFrame(null)}var we;we=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ge(){{if(ke.current){var e=$(ke.current.type);if(e)return`
50
+ `),k=u.length-1,w=P.length-1;k>=1&&w>=0&&u[k]!==P[w];)w--;for(;k>=1&&w>=0;k--,w--)if(u[k]!==P[w]){if(k!==1||w!==1)do if(k--,w--,w<0||u[k]!==P[w]){var T=`
51
+ `+u[k].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(k>=1&&w>=0);break}}}finally{_e=!1,be.current=m,dt(),Error.prepareStackTrace=h}var H=e?e.displayName||e.name:"",L=H?oe(H):"";return typeof e=="function"&&ae.set(e,L),L}function ht(e,t,o){return We(e,!1)}function gt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ie(e,t,o){if(e==null)return"";if(typeof e=="function")return We(e,gt(e));if(typeof e=="string")return oe(e);switch(e){case j:return oe("Suspense");case g:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return ht(e.render);case v:return ie(e.type,t,o);case b:{var i=e,h=i._payload,m=i._init;try{return ie(m(h),t,o)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,Ue={},Le=U.ReactDebugCurrentFrame;function se(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Le.setExtraStackFrame(o)}else Le.setExtraStackFrame(null)}function mt(e,t,o,i,h){{var m=Function.call.bind(G);for(var d in e)if(m(e,d)){var u=void 0;try{if(typeof e[d]!="function"){var P=Error((i||"React class")+": "+o+" 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 P.name="Invariant Violation",P}u=e[d](t,d,i,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(k){u=k}u&&!(u instanceof Error)&&(se(h),O("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",i||"React class",o,d,typeof u),se(null)),u instanceof Error&&!(u.message in Ue)&&(Ue[u.message]=!0,se(h),O("Failed %s type: %s",o,u.message),se(null))}}}var vt=Array.isArray;function xe(e){return vt(e)}function bt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,o=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function yt(e){try{return ze(e),!1}catch{return!0}}function ze(e){return""+e}function Ve(e){if(yt(e))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(e)),ze(e)}var qe=U.ReactCurrentOwner,_t={key:!0,ref:!0,__self:!0,__source:!0},He,Je;function xt(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 kt(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 wt(e,t){typeof e.ref=="string"&&qe.current}function St(e,t){{var o=function(){He||(He=!0,O("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function Rt(e,t){{var o=function(){Je||(Je=!0,O("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var Et=function(e,t,o,i,h,m,d){var u={$$typeof:n,type:e,key:t,ref:o,props:d,_owner:m};return u._store={},Object.defineProperty(u._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(u,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(u,"_source",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.freeze&&(Object.freeze(u.props),Object.freeze(u)),u};function jt(e,t,o,i,h){{var m,d={},u=null,P=null;o!==void 0&&(Ve(o),u=""+o),kt(t)&&(Ve(t.key),u=""+t.key),xt(t)&&(P=t.ref,wt(t));for(m in t)G.call(t,m)&&!_t.hasOwnProperty(m)&&(d[m]=t[m]);if(e&&e.defaultProps){var k=e.defaultProps;for(m in k)d[m]===void 0&&(d[m]=k[m])}if(u||P){var w=typeof e=="function"?e.displayName||e.name||"Unknown":e;u&&St(d,w),P&&Rt(d,w)}return Et(e,u,P,h,i,qe.current,d)}}var ke=U.ReactCurrentOwner,Ke=U.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,o=ie(e.type,e._source,t?t.type:null);Ke.setExtraStackFrame(o)}else Ke.setExtraStackFrame(null)}var we;we=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ge(){{if(ke.current){var e=$(ke.current.type);if(e)return`
52
52
 
53
53
  Check the render method of \``+e+"`."}return""}}function Ot(e){return""}var Ze={};function At(e){{var t=Ge();if(!t){var o=typeof e=="string"?e:e.displayName||e.name;o&&(t=`
54
54
 
55
- Check the top-level render call using <`+o+">.")}return t}}function Xe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=At(t);if(Ze[o])return;Ze[o]=!0;var i="";e&&e._owner&&e._owner!==ke.current&&(i=" It was passed a child from "+$(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),q(null)}}function Ye(e,t){{if(typeof e!="object")return;if(xe(e))for(var o=0;o<e.length;o++){var i=e[o];Se(i)&&Xe(i,t)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var h=ve(e);if(typeof h=="function"&&h!==e.entries)for(var g=h.call(e),d;!(d=g.next()).done;)Se(d.value)&&Xe(d.value,t)}}}function Pt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===f||t.$$typeof===v))o=t.propTypes;else return;if(o){var i=$(t);mt(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var h=$(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ct(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Qe={};function et(e,t,o,i,h,g){{var d=N(e);if(!d){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" 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 P=Ot();P?c+=P:c+=Ge();var k;e===null?k="null":xe(e)?k="array":e!==void 0&&e.$$typeof===n?(k="<"+($(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,c)}var w=jt(e,t,o,h,g);if(w==null)return w;if(d){var T=t.children;if(T!==void 0)if(i)if(xe(T)){for(var H=0;H<T.length;H++)Ye(T[H],e);Object.freeze&&Object.freeze(T)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(T,e)}if(G.call(t,"key")){var L=$(e),C=Object.keys(t).filter(function(Mt){return Mt!=="key"}),Re=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Qe[L+Re]){var It=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
55
+ Check the top-level render call using <`+o+">.")}return t}}function Xe(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=At(t);if(Ze[o])return;Ze[o]=!0;var i="";e&&e._owner&&e._owner!==ke.current&&(i=" It was passed a child from "+$(e._owner.type)+"."),q(e),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,i),q(null)}}function Ye(e,t){{if(typeof e!="object")return;if(xe(e))for(var o=0;o<e.length;o++){var i=e[o];Se(i)&&Xe(i,t)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var h=ve(e);if(typeof h=="function"&&h!==e.entries)for(var m=h.call(e),d;!(d=m.next()).done;)Se(d.value)&&Xe(d.value,t)}}}function Pt(e){{var t=e.type;if(t==null||typeof t=="string")return;var o;if(typeof t=="function")o=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===f||t.$$typeof===v))o=t.propTypes;else return;if(o){var i=$(t);mt(o,e.props,"prop",i,e)}else if(t.PropTypes!==void 0&&!we){we=!0;var h=$(t);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",h||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ct(e){{for(var t=Object.keys(e.props),o=0;o<t.length;o++){var i=t[o];if(i!=="children"&&i!=="key"){q(e),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",i),q(null);break}}e.ref!==null&&(q(e),O("Invalid attribute `ref` supplied to `React.Fragment`."),q(null))}}var Qe={};function et(e,t,o,i,h,m){{var d=N(e);if(!d){var u="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" 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 P=Ot();P?u+=P:u+=Ge();var k;e===null?k="null":xe(e)?k="array":e!==void 0&&e.$$typeof===n?(k="<"+($(e.type)||"Unknown")+" />",u=" Did you accidentally export a JSX literal instead of a component?"):k=typeof e,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,u)}var w=jt(e,t,o,h,m);if(w==null)return w;if(d){var T=t.children;if(T!==void 0)if(i)if(xe(T)){for(var H=0;H<T.length;H++)Ye(T[H],e);Object.freeze&&Object.freeze(T)}else O("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ye(T,e)}if(G.call(t,"key")){var L=$(e),C=Object.keys(t).filter(function(Mt){return Mt!=="key"}),Re=C.length>0?"{key: someKey, "+C.join(": ..., ")+": ...}":"{key: someKey}";if(!Qe[L+Re]){var It=C.length>0?"{"+C.join(": ..., ")+": ...}":"{}";O(`A props object containing a "key" prop is being spread into JSX:
56
56
  let props = %s;
57
57
  <%s {...props} />
58
58
  React keys must be passed directly to JSX without using spread:
59
59
  let props = %s;
60
- <%s key={someKey} {...props} />`,Re,L,It,L),Qe[L+Re]=!0}}return e===u?Ct(w):Pt(w),w}}function Tt(e,t,o){return et(e,t,o,!0)}function Bt(e,t,o){return et(e,t,o,!1)}var $t=Bt,Nt=Tt;nt.Fragment=u,nt.jsx=$t,nt.jsxs=Nt}()),nt}process.env.NODE_ENV==="production"?lr():cr();const ur="0.0.40",Kt={version:ur},te={},J={module:"",v:Kt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function fe(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}fe().elcrm||(fe().elcrm={}),Object.assign(fe().elcrm,{router:Kt.version});function Z(r){var n,a,u,l;const p=fe();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const R={page:(n=p.ROUTER_PARAMS)==null?void 0:n.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(u=p.ROUTER_PARAMS)==null?void 0:u.tab,id:(l=p.ROUTER_PARAMS)==null?void 0:l.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:R}}else{r.debug||J.debug;const R={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:R}}}function A(){return fe().ROUTER_PARAMS||J}function de(r){const n=fe();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function re(){return fe().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function n(){var _;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:(_=localStorage.getItem("d"))!=null&&_.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function u({module:_=A().module,page:E=A().page,auth:N=A().auth,debug:D=A().debug}){Z({page:E,module:_,auth:N,debug:D}),n()}r.Default=u;function l(_){let E=I=>(Z({page:I}),I);const[N,D]=S.useState(R()||_&&E(_)||A().page);return de({page:I=>{D(I)}}),N}r.usePage=l;function p(_,E=!0,N={}){Z({page:_,...N}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),E&&re().page(_)}r.setPage=p;function R(){return A().page}r.getPage=R;function x(_){return A().page===_}r.isPage=x;function f(){return A().prev}r.getBack=f;function j(_,E){const[N,D]=S.useState(v()||_||A().module);return de({module:D}),N}r.useModule=j;function m(_,E=!0){Z({module:_}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),E&&re().module(_)}r.setModule=m;function v(){return A().module||""}r.getModule=v;function b(_){return A().module===_}r.isModule=b;function B(_,E){if(typeof _!="function"){const[N,D]=S.useState(!E),[I,$]=S.useState(_||ve());return de({tabs:$}),E&&S.useEffect(()=>{D(!0)},[]),[I,N]}else de({tabs:_})}r.useTabs=B;function M(_){let E=I=>(Z({tab:I}),I);const[N,D]=S.useState(ve()||_&&E(_)||A().tab);return de({tabs:I=>{D(I)}}),N}r.useTab=M;async function Te(_,E=!0){Z({tab:_}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),E&&(re().tabs&&re().tabs(_))}r.setTabs=Te;function ve(){return A().tab}r.getTabs=ve;function U(_){return A().tab===_}r.isTabs=U;function O(_){if(typeof _!="function"){const[E,N]=S.useState(_||je());return de({id:D=>{N(D)}}),E}else de({id:_})}r.useId=O;function Be(_){}r.subId=Be;async function $e(_,E=!0){Z({id:_}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),E&&re().id(_)}r.setId=$e;function je(){return A().id}r.getId=je;function Ne(_){return Number(A().id)===_}r.isId=Ne;async function Ie(_){var E,N,D,I,$,F,z,ue;const{page:X,module:Y,tab:Q,id:ee}=_;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=(D=re()).tabs)==null||I.call(D,Q)),Y!==void 0&&((F=($=re()).module)==null||F.call($,Y)),X!==void 0&&((ue=(z=re()).page)==null||ue.call(z,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=Ie})(ce||(ce={}));let ot={};function fr(){const[r,n]=S.useState([]);return ot.set=a=>{n([...r,a])},ot.del=a=>{r.forEach((u,l)=>{u.key===a&&r.splice(l,1)}),n(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function dr(r){let n=new Date().getTime();r.key=n,ot.set({item:s.jsx(pr,{data:r},n),key:n})}function pr(r){const n=r.data;let[a]=S.useState("show"),[u,l]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){l(!0),ot.del(n.key)},5e3)},[n.key]);let p;switch(n.type){case"error":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":p=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:u?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:n.text})]})})}let pe={Send:dr,Init:fr};const he={is:!1,MainButton:{},BackButton:{}};let K={};K.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},K.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},K.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const hr=()=>{if(location.hostname==="localhost"){let[r,n]=S.useState(!1),[a,u]=S.useState(!1),[l,p]=S.useState("dark"),[R,x]=S.useState(!1),[f,j]=S.useState(!1);he.is=!0,he.MainButton.set=n,he.BackButton.set=u,S.useEffect(()=>{K[l]["--tg-theme-bg-color-alpha"]=K[l]["--tg-theme-bg-color"]+"b3",K[l]["--tg-theme-secondary-bg-color-alpha"]=K[l]["--tg-theme-secondary-bg-color"]+"d3";for(let b in K[l])document.documentElement.style.setProperty(b,K[l][b]);me.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let m=b=>{for(let B in K[b])document.documentElement.style.setProperty(B,K[b][B]);p(b),x(!1)},v=()=>{x(!1),j(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var b;a.page===void 0?(b=a.callback)==null||b.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>x(!R),children:"Меню"})]}),s.jsx(pe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:v,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>m("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>m("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>x(!R),children:"Closed"})})]})]}):"",f?s.jsx(gr,{setAuthorization:j}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",me.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",me.themeParams.bg_color+"b3"),me.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(pe.Init,{})})},gr=({setAuthorization:r})=>{let n={},a=()=>{localStorage.setItem("auth",n)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Gt={p:"_p_12hh1_1",s:"_s_12hh1_17"},mr=({className:r,children:n,isScroll:a=!0})=>s.jsx("div",{className:[Gt.p,a&&Gt.s,r].filter(u=>u!==void 0).join(" "),children:n}),vr={l:"_l_gfyud_1"},br=({children:r,className:n})=>s.jsx("div",{className:[vr.l,n].filter(a=>a!==void 0).join(" "),children:r}),ge={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},yr=({items:r})=>{const n=u=>{ce.setPage(u)},a=u=>{me.openTelegramLink(u)};return s.jsx("div",{className:ge.m,children:r.map(u=>s.jsx("div",{className:ge.g,children:u.items.map((l,p)=>s.jsxs("div",{className:ge.i,onClick:()=>{l.link&&a(l.link),l.page&&n(l.page),l.callback&&l.callback()},children:[s.jsxs("div",{className:ge.c,children:[s.jsx("span",{className:ge.l,style:{background:l.color},children:l.icon}),l.title,l.count&&s.jsx("span",{className:ge.n,children:l.count})]}),s.jsx("span",{className:ge.a,children:"›"})]},p))},u.id))})},ne={o:"_o_1dahh_3",m:"_m_1dahh_14",l:"_l_1dahh_28",r:"_r_1dahh_33",x:"_x_1dahh_38",h:"_h_1dahh_42",c:"_c_1dahh_57",u:"_u_1dahh_72"};function _r({children:r,icon:n,iconBadge:a=0,title:u,className:l,view:p="list",position:R="left"}){const[x,f]=S.useState(!1),[j,m]=S.useState(null);S.useEffect(()=>{let b=document.querySelector(".p_sb");return b||(b=document.createElement("div"),b.className="_p_sb",document.body.appendChild(b)),m(b),()=>{b&&b.parentNode&&b.parentNode.removeChild(b)}},[]);const v=s.jsxs(s.Fragment,{children:[x&&s.jsx("div",{className:ne.o,onClick:()=>f(!1)}),s.jsxs("div",{className:ct(ne.m,R==="left"?ne.l:ne.r,x&&ne.x,l),children:[s.jsxs("div",{className:ne.h,children:[u&&s.jsx("h3",{className:ne.t,children:u}),s.jsxs("svg",{onClick:()=>f(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[s.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),s.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),s.jsx("div",{className:ne.c,children:p==="list"?s.jsx("ul",{className:ne.u,children:r}):r})]})]});return s.jsxs(s.Fragment,{children:[n&&s.jsx("div",{onClick:()=>f(!0),className:"bage","data-count":a,children:n}),j&&Qt.createPortal(v,j)]})}let Ce=()=>{};const Zt=({children:r,title:n,isOverlay:a=!0,footer:u=!0,className:l,onOpen:p})=>{const[R,x]=S.useState(!1);return Ce=()=>{x(!0),setTimeout(()=>{var f;p==null||p(!1),(f=Ee==null?void 0:Ee.onClose)==null||f.call(Ee)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:Ce,children:s.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${l||""} ${u?"footer":""}`,onClick:f=>f.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:n}),s.jsx("button",{className:"footer-menu-close-btn",onClick:Ce,children:"✕"})]}),r]})})},lt={h:"_h_11wu4_1",row:"_row_11wu4_18",column:"_column_11wu4_21",badge:"_badge_11wu4_34"},Ee=[],Xt=(r,n)=>r.findIndex(a=>(a==null?void 0:a.page)===n),xr=({actions:r,children:n,className:a,toHide:u=!1,page:l,onPageChange:p,direction:R="row"})=>{const[x,f]=S.useState(null),[j,m]=S.useState(l?Xt(r||[],l):0);return Ee.onClose=()=>{f(null),m(l?Xt(r||[],l):0)},S.useEffect(()=>{if(!u)return;const v=document.querySelectorAll("[contenteditable]"),b=()=>{const M=document.querySelector("footer");M&&(M.style.display="flex")},B=()=>{const M=document.querySelector("footer");M&&(M.style.display="none")};return v.forEach(M=>{M.addEventListener("focus",B,!0),M.addEventListener("blur",b,!0)}),()=>{v.forEach(M=>{M.removeEventListener("focus",B,!0),M.removeEventListener("blur",b,!0)})}},[]),s.jsxs(s.Fragment,{children:[x,s.jsxs("footer",{className:`${lt.h} ${lt[R]} ${a} `,children:[n,r&&r.map((v,b)=>s.jsxs("div",{"data-active":j===b?"true":"false",onClick:()=>{v.page&&(m(b),p==null||p(v.page)),v.callback&&(v.callback(),m(b)),v.component&&(j===b?Ce():(f(v.component),m(b)))},children:[v.icon,v.badge&&s.jsx("div",{className:lt.badge,children:v.badge})]},b))]})]})},at={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"};function kr({children:r,onClose:n,isOpen:a,isScroll:u=!0,nextBackButton:l}){const[p,R]=S.useState(!1);return S.useEffect(()=>{if(!a)return;const x=l===void 0?Yt().pop():l;ut({callback:()=>{R(!1),setTimeout(()=>{ut(x||!1),n==null||n()},300)}});const f=setTimeout(()=>{R(!0)},10);return()=>{clearTimeout(f)}},[a]),a?s.jsxs("div",{className:ct(at.w,p&&at.v,u&&at.s),children:[s.jsx("div",{className:at.n}),r]}):""}const W={state:[!1],listen:[],prev:{},router:r=>{r===!1?(y.default.WebApp.BackButton.isVisible=!1,y.default.WebApp.BackButton.offClick(W.listen[0]),W.listen.shift(),W.state.length!==1&&W.state.pop()):(y.default.WebApp.BackButton.isVisible=!0,y.default.WebApp.BackButton.offClick(W.listen[0]),W.listen.shift(),W.listen.push(()=>{var a;let n=W.state.pop();W.prev=ce.getPage(),n.page!==void 0?ce.setPage(n.page):(a=n.callback)==null||a.call(n)}),me.BackButton.onClick(W.listen[0]))}},ct=(...r)=>r.filter(n=>n!==void 0&&n!==!1&&n!==null&&n!=="").join(" ");y.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(n,a,u)=>{var l,p;a!==void 0?(pe.Send({type:n,text:a,thema:u}),(l=r.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(pe.Send(n),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(n.type))},Error:n=>{var a;pe.Send({type:"error",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:n=>{var a;pe.Send({type:"success",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:n=>{var a;pe.Send({type:"warning",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=hr,r.TabBar=xr,r.BottomSheet=Zt,r.toggleBottomSheet=Ce,r.SafeArea=mr,r.Loading=br,r.Sidebar=_r,r.SidePanel=kr,r.Modal=st,r.Menu=yr,r.MainButton={callback:[],set:n=>{he.is?he.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var a;n.page===void 0?(a=n.callback)==null||a.call(n):ce.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{W.prev&&(0,r.BackButton)(W.prev)},r.BackButtonState=()=>W.state,r.BackButton=n=>{he.is?he.BackButton.set(n):(W.state.push(n),W.router(n))}})(y.default||(y.default={}));const wr=y.default.TabBar,Sr=Zt,ut=y.default.BackButton,Rr=y.default.BackButtonPrev,Yt=y.default.BackButtonState,Er=y.default.Notice,jr=y.default.SafeArea,Or=y.default.Loading,Ar=y.default.Menu,Pr=y.default.SidePanel,Cr=y.default.Sidebar,{Header:Tr,toggleBottomSheet:Br,Modal:$r,MainButton:Nr,WebApp:me,getUser:Ir}=y.default;y.BackButton=ut,y.BackButtonPrev=Rr,y.BackButtonState=Yt,y.BottomSheet=Sr,y.Header=Tr,y.Loading=Or,y.MainButton=Nr,y.Menu=Ar,y.Modal=$r,y.Notice=Er,y.SafeArea=jr,y.SidePanel=Pr,y.Sidebar=Cr,y.TabBar=wr,y.WebApp=me,y.clsx=ct,y.getUser=Ir,y.toggleBottomSheet=Br,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
+ <%s key={someKey} {...props} />`,Re,L,It,L),Qe[L+Re]=!0}}return e===c?Ct(w):Pt(w),w}}function Tt(e,t,o){return et(e,t,o,!0)}function Bt(e,t,o){return et(e,t,o,!1)}var $t=Bt,Nt=Tt;nt.Fragment=c,nt.jsx=$t,nt.jsxs=Nt}()),nt}process.env.NODE_ENV==="production"?lr():cr();const ur="0.0.40",Kt={version:ur},te={},J={module:"",v:Kt.version,page:"Main",auth:"Auth",STORAGE:"f",LISTENER:{},debug:!1,tab:"",id:0,prev:{page:"",module:"",tab:"",id:0}};function fe(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:{}}fe().elcrm||(fe().elcrm={}),Object.assign(fe().elcrm,{router:Kt.version});function Z(r){var n,a,c,l;const p=fe();if(p.ROUTER_PARAMS){r.debug||p.ROUTER_PARAMS.debug;const R={page:(n=p.ROUTER_PARAMS)==null?void 0:n.page,module:(a=p.ROUTER_PARAMS)==null?void 0:a.module,tab:(c=p.ROUTER_PARAMS)==null?void 0:c.tab,id:(l=p.ROUTER_PARAMS)==null?void 0:l.id};p.ROUTER_PARAMS={...p.ROUTER_PARAMS,...r,prev:R}}else{r.debug||J.debug;const R={page:J==null?void 0:J.page,module:J==null?void 0:J.module,tab:J==null?void 0:J.tab,id:J==null?void 0:J.id};p.ROUTER_PARAMS={...J,...r,prev:R}}}function A(){return fe().ROUTER_PARAMS||J}function de(r){const n=fe();n.ROUTER_PARAMS?n.ROUTER_PARAMS.LISTENER={...n.ROUTER_PARAMS.LISTENER,...r}:n.ROUTER_PARAMS.LISTENER={...r}}function re(){return fe().ROUTER_PARAMS.LISTENER||J.LISTENER}var ce;(r=>{function n(){var x;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:(x=localStorage.getItem("d"))!=null&&x.length?A().page:A().auth,module:A().module});return!0}function a(){te.id=0,te.tab="",te.page=A().page,te.module=A().module}r.Reset=a;function c({module:x=A().module,page:E=A().page,auth:N=A().auth,debug:D=A().debug}){Z({page:E,module:x,auth:N,debug:D}),n()}r.Default=c;function l(x){let E=I=>(Z({page:I}),I);const[N,D]=S.useState(R()||x&&E(x)||A().page);return de({page:I=>{D(I)}}),N}r.usePage=l;function p(x,E=!0,N={}){Z({page:x,...N}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),E&&re().page(x)}r.setPage=p;function R(){return A().page}r.getPage=R;function _(x){return A().page===x}r.isPage=_;function f(){return A().prev}r.getBack=f;function j(x,E){const[N,D]=S.useState(v()||x||A().module);return de({module:D}),N}r.useModule=j;function g(x,E=!0){Z({module:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),E&&re().module(x)}r.setModule=g;function v(){return A().module||""}r.getModule=v;function b(x){return A().module===x}r.isModule=b;function B(x,E){if(typeof x!="function"){const[N,D]=S.useState(!E),[I,$]=S.useState(x||ve());return de({tabs:$}),E&&S.useEffect(()=>{D(!0)},[]),[I,N]}else de({tabs:x})}r.useTabs=B;function M(x){let E=I=>(Z({tab:I}),I);const[N,D]=S.useState(ve()||x&&E(x)||A().tab);return de({tabs:I=>{D(I)}}),N}r.useTab=M;async function Te(x,E=!0){Z({tab:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),E&&(re().tabs&&re().tabs(x))}r.setTabs=Te;function ve(){return A().tab}r.getTabs=ve;function U(x){return A().tab===x}r.isTabs=U;function O(x){if(typeof x!="function"){const[E,N]=S.useState(x||je());return de({id:D=>{N(D)}}),E}else de({id:x})}r.useId=O;function Be(x){}r.subId=Be;async function $e(x,E=!0){Z({id:x}),sessionStorage.setItem(A().STORAGE,le.enCode(A())),E&&re().id(x)}r.setId=$e;function je(){return A().id}r.getId=je;function Ne(x){return Number(A().id)===x}r.isId=Ne;async function Ie(x){var E,N,D,I,$,F,z,ue;const{page:X,module:Y,tab:Q,id:ee}=x;X!==void 0&&(te.page=X),Y!==void 0&&(te.module=Y),Q!==void 0&&(te.tab=Q),ee!==void 0&&(te.id=ee),Z({...te}),ee!==void 0&&((N=(E=re()).id)==null||N.call(E,ee)),Q!==void 0&&((I=(D=re()).tabs)==null||I.call(D,Q)),Y!==void 0&&((F=($=re()).module)==null||F.call($,Y)),X!==void 0&&((ue=(z=re()).page)==null||ue.call(z,X)),sessionStorage.setItem(A().STORAGE,le.enCode(A()))}r.navigate=Ie})(ce||(ce={}));let ot={};function fr(){const[r,n]=S.useState([]);return ot.set=a=>{n([...r,a])},ot.del=a=>{r.forEach((c,l)=>{c.key===a&&r.splice(l,1)}),n(r)},r.length===0?s.jsx(s.Fragment,{}):s.jsx("div",{className:"notice",children:r.map(a=>a.item)})}function dr(r){let n=new Date().getTime();r.key=n,ot.set({item:s.jsx(pr,{data:r},n),key:n})}function pr(r){const n=r.data;let[a]=S.useState("show"),[c,l]=S.useState(!1);S.useEffect(()=>{setTimeout(function(){l(!0),ot.del(n.key)},5e3)},[n.key]);let p;switch(n.type){case"error":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm3.53 12.22a.75.75 0 1 1-1.06 1.06L12 13.06l-2.47 2.47a.75.75 0 0 1-1.06-1.06L10.94 12 8.47 9.53a.75.75 0 0 1 1.06-1.06L12 10.94l2.47-2.47a.75.75 0 0 1 1.06 1.06L13.06 12l2.47 2.47Z"});break;case"success":p=s.jsx("path",{d:"M12 2.25c-5.376 0-9.75 4.374-9.75 9.75s4.374 9.75 9.75 9.75 9.75-4.374 9.75-9.75S17.376 2.25 12 2.25Zm5.074 6.482-6.3 7.5a.748.748 0 0 1-.562.268h-.013a.75.75 0 0 1-.557-.248l-2.7-3a.751.751 0 0 1 .88-1.186c.09.045.17.107.234.182l2.123 2.36 5.747-6.84a.75.75 0 0 1 1.148.964Z"});break;case"warning":p=s.jsx("path",{d:"M12 2.625c-5.17 0-9.375 4.206-9.375 9.375 0 5.17 4.206 9.375 9.375 9.375 5.17 0 9.375-4.206 9.375-9.375 0-5.17-4.206-9.375-9.375-9.375Zm0 3.844a1.219 1.219 0 1 1 0 2.437 1.219 1.219 0 0 1 0-2.437Zm2.25 10.593h-4.125a.75.75 0 1 1 0-1.5h1.313v-4.124h-.75a.75.75 0 1 1 0-1.5h1.5a.75.75 0 0 1 .75.75v4.874h1.312a.75.75 0 1 1 0 1.5Z"});break;default:p="icon fa fa-exclamation-circle";break}return s.jsx(s.Fragment,{children:c?s.jsx(s.Fragment,{}):s.jsxs("div",{className:"item "+n.type+` ${n.thema!==void 0?" thema":""}`,"data-status":a,children:[s.jsx("svg",{type:"solid",fill:"currentColor",stroke:"none",strokeWidth:"0",width:"24",height:"24",viewBox:"0 0 24 24",children:p}),s.jsx("span",{className:"text",children:n.text})]})})}let pe={Send:dr,Init:fr};const he={is:!1,MainButton:{},BackButton:{}};let K={};K.dark={"--tg-theme-subtitle-text-color":"#98989e","--tg-theme-destructive-text-color":"#e53935","--tg-theme-section-separator-color":"#545458","--tg-theme-link-color":"#3e88f7","--tg-theme-accent-text-color":"#3e88f7","--tg-theme-bg-color":"#000000","--tg-theme-secondary-bg-color":"#1c1c1d","--tg-theme-button-color":"#3e88f7","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#1d1d1d","--tg-theme-section-header-text-color":"#8d8e93","--tg-theme-header-bg-color":"#1a1a1a","--tg-theme-hint-color":"#98989e","--tg-theme-text-color":"#ffffff","--tg-theme-section-bg-color":"#2c2c2e"},K.light={"--tg-theme-subtitle-text-color":"#8e8e93","--tg-theme-destructive-text-color":"#ff3b30","--tg-theme-section-separator-color":"#c8c7cc","--tg-theme-link-color":"#007aff","--tg-theme-accent-text-color":"#007aff","--tg-theme-bg-color":"#ffffff","--tg-theme-secondary-bg-color":"#efeff4","--tg-theme-button-color":"#007aff","--tg-theme-button-text-color":"#ffffff","--tg-theme-bottom-bar-bg-color":"#f2f2f2","--tg-theme-section-header-text-color":"#6d6d72","--tg-theme-header-bg-color":"#f8f8f8","--tg-theme-hint-color":"#8e8e93","--tg-theme-text-color":"#000000","--tg-theme-section-bg-color":"#f8f8f8"},K.users={"--tg-theme-bg-color":"#000000","--tg-theme-text-color":"#ffffff","--tg-theme-hint-color":"#98989e","--tg-theme-link-color":"#ffffff","--tg-theme-button-color":"#ffffff","--tg-theme-button-text-color":"#000000","--tg-theme-secondary-bg-color":"#000000"};const hr=()=>{if(location.hostname==="localhost"){let[r,n]=S.useState(!1),[a,c]=S.useState(!1),[l,p]=S.useState("dark"),[R,_]=S.useState(!1),[f,j]=S.useState(!1);he.is=!0,he.MainButton.set=n,he.BackButton.set=c,S.useEffect(()=>{K[l]["--tg-theme-bg-color-alpha"]=K[l]["--tg-theme-bg-color"]+"b3",K[l]["--tg-theme-secondary-bg-color-alpha"]=K[l]["--tg-theme-secondary-bg-color"]+"d3";for(let b in K[l])document.documentElement.style.setProperty(b,K[l][b]);me.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]);let g=b=>{for(let B in K[b])document.documentElement.style.setProperty(B,K[b][B]);p(b),_(!1)},v=()=>{_(!1),j(!0)};return s.jsxs(s.Fragment,{children:[s.jsxs("header",{className:"debug",children:[a===!1?s.jsx("div",{className:"b",children:"Отмена"}):s.jsx("div",{onClick:()=>{var b;a.page===void 0?(b=a.callback)==null||b.call(a):ce.setPage(a.page)},className:"b",children:"Назад"}),s.jsx("div",{className:"o",onClick:()=>_(!R),children:"Меню"})]}),s.jsx(pe.Init,{}),r&&s.jsx("div",{className:"mb",children:s.jsx("button",{onClick:()=>{r.page&&ce.setPage(r.page),r.callback&&r.callback()},children:r.text})}),R?s.jsxs("div",{className:"tm",children:[s.jsxs("ul",{children:[s.jsx("li",{children:s.jsx("button",{onClick:v,children:"Authorization"})}),s.jsx("li",{})]}),s.jsxs("ul",{children:[s.jsxs("li",{children:[s.jsx("button",{children:"Thema"}),s.jsxs("ol",{children:[s.jsx("li",{children:s.jsx("button",{onClick:()=>g("dark"),children:"Dark"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>g("light"),children:"Light"})}),s.jsx("li",{children:s.jsx("button",{onClick:()=>g("users"),children:"Users"})})]})]}),s.jsx("li",{children:s.jsx("button",{onClick:()=>_(!R),children:"Closed"})})]})]}):"",f?s.jsx(gr,{setAuthorization:j}):""]})}else return S.useEffect(()=>{document.documentElement.style.setProperty("--tg-theme-secondary-bg-color-alpha",me.themeParams.secondary_bg_color+"d3"),document.documentElement.style.setProperty("--tg-theme-bg-color-alpha",me.themeParams.bg_color+"b3"),me.safeAreaInset.bottom===0&&document.documentElement.style.setProperty("--tg-safe-area-inset-bottom","16px")},[]),s.jsx(s.Fragment,{children:s.jsx(pe.Init,{})})},gr=({setAuthorization:r})=>{let n={},a=()=>{localStorage.setItem("auth",n)};return s.jsx("div",{className:"ta",children:s.jsxs("div",{className:"--body",children:[s.jsx("fieldset",{}),s.jsx("div",{onClick:a,children:" Сохранить "})]})})},Gt={p:"_p_12hh1_1",s:"_s_12hh1_17"},mr=({className:r,children:n,isScroll:a=!0})=>s.jsx("div",{className:[Gt.p,a&&Gt.s,r].filter(c=>c!==void 0).join(" "),children:n}),vr={l:"_l_gfyud_1"},br=({children:r,className:n})=>s.jsx("div",{className:[vr.l,n].filter(a=>a!==void 0).join(" "),children:r}),ge={m:"_m_ppm7n_2",g:"_g_ppm7n_10",i:"_i_ppm7n_18",c:"_c_ppm7n_35",l:"_l_ppm7n_42",a:"_a_ppm7n_57",n:"_n_ppm7n_62"},yr=({items:r})=>{const n=c=>{ce.setPage(c)},a=c=>{me.openTelegramLink(c)};return s.jsx("div",{className:ge.m,children:r.map(c=>s.jsx("div",{className:ge.g,children:c.items.map((l,p)=>s.jsxs("div",{className:ge.i,onClick:()=>{l.link&&a(l.link),l.page&&n(l.page),l.callback&&l.callback()},children:[s.jsxs("div",{className:ge.c,children:[s.jsx("span",{className:ge.l,style:{background:l.color},children:l.icon}),l.title,l.count&&s.jsx("span",{className:ge.n,children:l.count})]}),s.jsx("span",{className:ge.a,children:"›"})]},p))},c.id))})},ne={o:"_o_1dahh_3",m:"_m_1dahh_14",l:"_l_1dahh_28",r:"_r_1dahh_33",x:"_x_1dahh_38",h:"_h_1dahh_42",c:"_c_1dahh_57",u:"_u_1dahh_72"};function _r({children:r,icon:n,iconBadge:a=0,title:c,className:l,view:p="list",position:R="left"}){const[_,f]=S.useState(!1),[j,g]=S.useState(null);S.useEffect(()=>{let b=document.querySelector(".p_sb");return b||(b=document.createElement("div"),b.className="_p_sb",document.body.appendChild(b)),g(b),()=>{b&&b.parentNode&&b.parentNode.removeChild(b)}},[]);const v=s.jsxs(s.Fragment,{children:[_&&s.jsx("div",{className:ne.o,onClick:()=>f(!1)}),s.jsxs("div",{className:ct(ne.m,R==="left"?ne.l:ne.r,_&&ne.x,l),children:[s.jsxs("div",{className:ne.h,children:[c&&s.jsx("h3",{className:ne.t,children:c}),s.jsxs("svg",{onClick:()=>f(!1),fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"24",height:"24","data-pointer":"true",style:{cursor:"pointer"},children:[s.jsx("path",{d:"M17.25 17.25 6.75 6.75"}),s.jsx("path",{d:"m17.25 6.75-10.5 10.5"})]})]}),s.jsx("div",{className:ne.c,children:p==="list"?s.jsx("ul",{className:ne.u,children:r}):r})]})]});return s.jsxs(s.Fragment,{children:[n&&s.jsx("div",{onClick:()=>f(!0),className:"bage","data-count":a,children:n}),j&&Qt.createPortal(v,j)]})}let Ce=()=>{};const Zt=({children:r,title:n,isOverlay:a=!0,footer:c=!0,className:l,onOpen:p})=>{const[R,_]=S.useState(!1);return Ce=()=>{_(!0),setTimeout(()=>{var f;p==null||p(!1),(f=Ee==null?void 0:Ee.onClose)==null||f.call(Ee)},300)},s.jsx("div",{className:`footer-menu-overlay ${a?"is-overlay":""} ${R?"closing":""} `,onClick:Ce,children:s.jsxs("div",{className:`footer-menu-popup-book ${R?"closing":""} ${l||""} ${c?"footer":""}`,onClick:f=>f.stopPropagation(),children:[s.jsxs("div",{className:"footer-menu-header",children:[s.jsx("h3",{children:n}),s.jsx("button",{className:"footer-menu-close-btn",onClick:Ce,children:"✕"})]}),r]})})},lt={h:"_h_11wu4_1",row:"_row_11wu4_18",column:"_column_11wu4_21",badge:"_badge_11wu4_34"},Ee=[],Xt=(r,n)=>r.findIndex(a=>(a==null?void 0:a.page)===n),xr=({actions:r,children:n,className:a,toHide:c=!1,page:l,onPageChange:p,direction:R="row"})=>{const[_,f]=S.useState(null),[j,g]=S.useState(l?Xt(r||[],l):0);return Ee.onClose=()=>{f(null),g(l?Xt(r||[],l):0)},S.useEffect(()=>{if(!c)return;const v=document.querySelectorAll("[contenteditable]"),b=()=>{const M=document.querySelector("footer");M&&(M.style.display="flex")},B=()=>{const M=document.querySelector("footer");M&&(M.style.display="none")};return v.forEach(M=>{M.addEventListener("focus",B,!0),M.addEventListener("blur",b,!0)}),()=>{v.forEach(M=>{M.removeEventListener("focus",B,!0),M.removeEventListener("blur",b,!0)})}},[]),s.jsxs(s.Fragment,{children:[_,s.jsxs("footer",{className:`${lt.h} ${lt[R]} ${a} `,children:[n,r&&r.map((v,b)=>s.jsxs("div",{"data-active":j===b?"true":"false",onClick:()=>{v.page&&(g(b),p==null||p(v.page)),v.callback&&(v.callback(),g(b)),v.component&&(j===b?Ce():(f(v.component),g(b)))},children:[v.icon,v.badge&&s.jsx("div",{className:lt.badge,children:v.badge})]},b))]})]})},at={w:"_w_yx04q_3",v:"_v_yx04q_24",s:"_s_yx04q_34",n:"_n_yx04q_38"};function kr({children:r,name:n,onClose:a,isOpen:c,isScroll:l=!0,nextBackButton:p}){const[R,_]=S.useState(!1);return S.useEffect(()=>{if(!c)return;const f=p===void 0?Yt().pop():p;ut({callback:()=>{_(!1),setTimeout(()=>{ut(f||!1),a==null||a()},300)}});const g=setTimeout(()=>{_(!0)},10);return()=>{clearTimeout(g)}},[c]),c?s.jsxs("div",{className:ct(at.w,R&&at.v,l&&at.s),children:[s.jsx("div",{className:at.n}),r]}):""}const W={state:[!1],listen:[],prev:{},router:r=>{r===!1?(y.default.WebApp.BackButton.isVisible=!1,y.default.WebApp.BackButton.offClick(W.listen[0]),W.listen.shift(),W.state.length!==1&&W.state.pop()):(y.default.WebApp.BackButton.isVisible=!0,y.default.WebApp.BackButton.offClick(W.listen[0]),W.listen.shift(),W.listen.push(()=>{var a;let n=W.state.pop();W.prev=ce.getPage(),n.page!==void 0?ce.setPage(n.page):(a=n.callback)==null||a.call(n)}),me.BackButton.onClick(W.listen[0]))}},ct=(...r)=>r.filter(n=>n!==void 0&&n!==!1&&n!==null&&n!=="").join(" ");y.default=void 0,(r=>{r.WebApp=window.Telegram.WebApp,r.getUser=()=>{var n;return((n=r.WebApp.initDataUnsafe)==null?void 0:n.user)===void 0?{}:r.WebApp.initDataUnsafe},r.Notice={Send:(n,a,c)=>{var l,p;a!==void 0?(pe.Send({type:n,text:a,thema:c}),(l=r.WebApp.HapticFeedback)==null||l.notificationOccurred(n)):(pe.Send(n),(p=r.WebApp.HapticFeedback)==null||p.notificationOccurred(n.type))},Error:n=>{var a;pe.Send({type:"error",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("error")},Success:n=>{var a;pe.Send({type:"success",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("success")},Warning:n=>{var a;pe.Send({type:"warning",text:n}),(a=r.WebApp.HapticFeedback)==null||a.notificationOccurred("warning")}},r.Header=hr,r.TabBar=xr,r.BottomSheet=Zt,r.toggleBottomSheet=Ce,r.SafeArea=mr,r.Loading=br,r.Sidebar=_r,r.SidePanel=kr,r.Modal=st,r.Menu=yr,r.MainButton={callback:[],set:n=>{he.is?he.MainButton.set(n):(r.WebApp.MainButton.callback.forEach(a=>{r.WebApp.MainButton.offClick(a)}),r.WebApp.MainButton.callback=[],typeof n=="boolean"?r.WebApp.MainButton.isVisible=!1:(r.WebApp.MainButton.text=n.text,n.color&&(r.WebApp.MainButton.color=n.color),n.textColor&&(r.WebApp.MainButton.textColor=n.textColor),r.WebApp.MainButton.isVisible=!0,r.WebApp.MainButton.isActive=n.isActive===void 0?!0:n.isActive,r.WebApp.MainButton.callback.push(()=>{var a;n.page===void 0?(a=n.callback)==null||a.call(n):ce.setPage(n.page)}),r.WebApp.MainButton.onClick(r.WebApp.MainButton.callback[0])))}},r.BackButtonPrev=()=>{W.prev&&(0,r.BackButton)(W.prev)},r.BackButtonState=()=>W.state,r.BackButton=n=>{he.is?he.BackButton.set(n):(W.state.push(n),W.router(n))}})(y.default||(y.default={}));const wr=y.default.TabBar,Sr=Zt,ut=y.default.BackButton,Rr=y.default.BackButtonPrev,Yt=y.default.BackButtonState,Er=y.default.Notice,jr=y.default.SafeArea,Or=y.default.Loading,Ar=y.default.Menu,Pr=y.default.SidePanel,Cr=y.default.Sidebar,{Header:Tr,toggleBottomSheet:Br,Modal:$r,MainButton:Nr,WebApp:me,getUser:Ir}=y.default;y.BackButton=ut,y.BackButtonPrev=Rr,y.BackButtonState=Yt,y.BottomSheet=Sr,y.Header=Tr,y.Loading=Or,y.MainButton=Nr,y.Menu=Ar,y.Modal=$r,y.Notice=Er,y.SafeArea=jr,y.SidePanel=Pr,y.Sidebar=Cr,y.TabBar=wr,y.WebApp=me,y.clsx=ct,y.getUser=Ir,y.toggleBottomSheet=Br,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/telegram",
3
- "version": "0.0.96",
3
+ "version": "0.0.97",
4
4
  "description": "plugin for elCRM to work with telegram",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",