@elcrm/telegram 0.0.67 → 0.0.68

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