elcrm 0.5.1 → 0.5.3
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.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"./index.css";var sn=Object.defineProperty;var on=(e,t,r)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Fe=(e,t,r)=>(on(e,typeof t!="symbol"?t+"":t,r),r);import R from"react";let w={};const v={},L={},re={},_t={},H={};function cn(e,t){if(w=e,localStorage.getItem("d")){let a=sessionStorage.getItem("f");a?(a=w.deCode(a),v.id=a.id,v.tab=a.tab,v.page=a.page,v.module=a.module,v.time=a.time,v.payment={active:!0},v.module_admin=a.module_admin):(v.id=0,v.tab="",v.page="Main",v.module=v.module||"M05")}else["a","b","c","d","e","m","u","s","q","p"].forEach(a=>localStorage.removeItem(a)),["f"].forEach(a=>sessionStorage.removeItem(a)),v.id=0,v.tab="",v.page="Auth",v.module="M00";return t}function M(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function ln(e){e=e.split("/"),v.page="Main",v.module=e[0],v.tab=e[1],v.id=0,sessionStorage.setItem("f",w.enCode({module:v.module,page:v.page,tab:v.tab,id:v.id,time:(new Date).getTime()})),L.page(v.page)}function un(e){return localStorage.setItem("d",e)}function dn(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?localStorage.getItem("d"):(M(),!1)}function fn(e){return localStorage.setItem("a",e)}function mn(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:(M(),!1)}function pn(e){localStorage.setItem("p",w.enCode(e))}function Le(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=w.deCode(e);return t||M(),t}else return M(),!1}function hn(){const[e,t]=R.useState(xt()),r=a=>{t(a)};return L.page=r,[e]}function vn(e){v.page=e,sessionStorage.setItem("f",w.enCode(v)),L.page(e)}function xt(){return v.page}function gn(){const[e,t]=R.useState(yt()),r=a=>{t(a)};return L.module=r,[e]}function bn(e,t){v.module=e,sessionStorage.setItem("f",w.enCode(v)),t!=="false"&&L.module(e)}function yt(){return v.module}function _n(e){const[t,r]=R.useState(we()||e),a=o=>{r(o)};return L.tabs=a,[t]}function xn(e,t){v.tab=e,sessionStorage.setItem("f",w.enCode(v)),t!=="false"&&L.tabs(e)}function we(){return v.tab}function yn(){const[e,t]=R.useState(v.id),r=a=>{t(a)};return L.id=r,[e]}function Sn(e){L.id=e}function jn(e,t){v.id=e,sessionStorage.setItem("f",w.enCode(v)),t!=="false"&&L.id(e)}function wn(){return v.id}function Cn(e,t,r){v.module=e,v.id=r,v.tab=t,sessionStorage.setItem("f",w.enCode(v)),L.module(e),L.tabs(t)}function kn(e){re.data=e[0],delete re.data.id,document.body.dataset.theme=re.data.s15,localStorage.setItem("s",w.enCode(re.data))}function Rn(e,t){re.data[e]=t,localStorage.setItem("s",w.enCode(re.data))}function En(e){let t=localStorage.getItem("s");return t===null?{}:(t=w.deCode(t),t?e!==void 0?t[e]:t:M())}function St(e){localStorage.setItem("m",w.enCode({data:e}))}function In(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),r=w.deCode(t);r||M();const a=(l,c)=>{let f=c+"";for(;f.length<l;)f="0"+f;return f};return r.data.split(",").map(l=>"M"+a(2,l))}else return M(),!1}function Tn(e){L.sort=e}function jt(e){let t=localStorage.getItem("b");t=t===null?{}:w.deCode(t),t[we()]=e,localStorage.setItem("b",w.enCode(t))}function Me(){let e=localStorage.getItem("b");return e===null?{}:(e=w.deCode(e),e=e[we()],e=e===void 0?{active:1,sort:"<"}:e,e)}function wt(e){localStorage.setItem("c",w.enCode(e))}function Nn(e){let t=localStorage.getItem("c");if(t!==""&&t!=="undefined"&&t!==null){let r=w.deCode(t);return r||M(),e===void 0?r:r[e]}else return M(),!1}function de(e){H.data=e,localStorage.setItem("q",w.enCode(H.data))}function fe(e,t){if(!H.data){let r=localStorage.getItem("q");r&&(H.data=w.deCode(r))}return e===void 0&&t===void 0?H.data:e!==void 0&&t===void 0?H.data[e]:H.data[e][t]}function Pn(e){_t.data=e}function On(e){return _t.data[e]}function Fn(e){v.payment=e}function Dn(){return v.payment}function Ct(e){localStorage.setItem("u",w.enCode(e))}function $n(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=w.deCode(e);return t||M(),t}else return M(),!1}const Ye={setSSID:un,getSSID:dn,getPORT:Le,setPORT:pn,setAUTH:fn,getAUTH:mn,Logaut:M,Start:ln,setMenu:St,getMenu:In,useSort:Tn,setSort:jt,getSort:Me,setCompany:wt,getCompany:Nn,setSelect:de,getSelect:fe,setApi:Pn,getApi:On,setPayment:Fn,getPayment:Dn,setUser:Ct,getUser:$n},kt="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOnsiQ29udGVudC10eXBlIjoiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04Iixzc2lkOnQuZGF0YS5zc2lkfSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaHtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciJ9KX19fSkoKTsK",Ln=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),mt=typeof window<"u"&&window.Blob&&new Blob([Ln(kt)],{type:"text/javascript;charset=utf-8"});function Mn(e){let t;try{if(t=mt&&(window.URL||window.webkitURL).createObjectURL(mt),!t)throw"";const r=new Worker(t,{name:e==null?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;base64,"+kt,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var zn={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function Zn(e){return"https://"+Ye.getPORT().address+"/audio/"+e}function Rt(e,t={},r=Ye.getAUTH()){return new Promise(a=>{const o=new Mn;o.onmessage=c=>{a(c.data),o.terminate()};let l=zn.VITE_URL==="localhost"?"http://localhost:3535/":"https://api.elcrm.online/";o.postMessage({link:e,data:t,ssid:r,host:l})})}async function An(e,t,r={}){try{return await(await Rt("https://"+e+"/"+t,{method:"POST",headers:{"Content-type":"application/json;charset=utf-8",ssid:Ye.getAUTH()||""},body:JSON.stringify(r)})).json()}catch{return{status:"error"}}}const vs={audio:Zn,fetch:Rt,remoute:An};var ze={exports:{}},ce={};var pt;function Yn(){if(pt)return ce;pt=1;var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(f,d,m){var p,b={},S=null,O=null;m!==void 0&&(S=""+m),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(O=d.ref);for(p in d)a.call(d,p)&&!l.hasOwnProperty(p)&&(b[p]=d[p]);if(f&&f.defaultProps)for(p in d=f.defaultProps,d)b[p]===void 0&&(b[p]=d[p]);return{$$typeof:t,type:f,key:S,ref:O,props:b,_owner:o.current}}return ce.Fragment=r,ce.jsx=c,ce.jsxs=c,ce}var le={};var ht;function Wn(){return ht||(ht=1,process.env.NODE_ENV!=="production"&&function(){var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),D=Symbol.iterator,C="@@iterator";function k(n){if(n===null||typeof n!="object")return null;var i=D&&n[D]||n[C];return typeof i=="function"?i:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(n){{for(var i=arguments.length,u=new Array(i>1?i-1:0),h=1;h<i;h++)u[h-1]=arguments[h];Z("error",n,u)}}function Z(n,i,u){{var h=E.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(i+="%s",u=u.concat([y]));var j=u.map(function(_){return String(_)});j.unshift("Warning: "+i),Function.prototype.apply.call(console[n],console,j)}}var V=!1,X=!1,ee=!1,pe=!1,Nt=!1,We;We=Symbol.for("react.module.reference");function Pt(n){return!!(typeof n=="string"||typeof n=="function"||n===a||n===l||Nt||n===o||n===m||n===p||pe||n===O||V||X||ee||typeof n=="object"&&n!==null&&(n.$$typeof===S||n.$$typeof===b||n.$$typeof===c||n.$$typeof===f||n.$$typeof===d||n.$$typeof===We||n.getModuleId!==void 0))}function Ot(n,i,u){var h=n.displayName;if(h)return h;var y=i.displayName||i.name||"";return y!==""?u+"("+y+")":u}function Ve(n){return n.displayName||"Context"}function Y(n){if(n==null)return null;if(typeof n.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case a:return"Fragment";case r:return"Portal";case l:return"Profiler";case o:return"StrictMode";case m:return"Suspense";case p:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case f:var i=n;return Ve(i)+".Consumer";case c:var u=n;return Ve(u._context)+".Provider";case d:return Ot(n,n.render,"ForwardRef");case b:var h=n.displayName||null;return h!==null?h:Y(n.type)||"Memo";case S:{var y=n,j=y._payload,_=y._init;try{return Y(_(j))}catch{return null}}}return null}var J=Object.assign,oe=0,Ue,Be,Ge,Ke,Xe,Je,He;function Qe(){}Qe.__reactDisabledLog=!0;function Ft(){{if(oe===0){Ue=console.log,Be=console.info,Ge=console.warn,Ke=console.error,Xe=console.group,Je=console.groupCollapsed,He=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Qe,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}oe++}}function Dt(){{if(oe--,oe===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},n,{value:Ue}),info:J({},n,{value:Be}),warn:J({},n,{value:Ge}),error:J({},n,{value:Ke}),group:J({},n,{value:Xe}),groupCollapsed:J({},n,{value:Je}),groupEnd:J({},n,{value:He})})}oe<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ke=E.ReactCurrentDispatcher,Re;function he(n,i,u){{if(Re===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);Re=h&&h[1]||""}return`
|
|
2
|
-
`+Re+n}}var Ee=!1,
|
|
1
|
+
import"./index.css";var on=Object.defineProperty;var cn=(e,t,r)=>t in e?on(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Fe=(e,t,r)=>(cn(e,typeof t!="symbol"?t+"":t,r),r);import R from"react";let w={};const v={},L={},ae={},_t={},Q={};function ln(e,t){if(w=e,localStorage.getItem("d")){let a=sessionStorage.getItem("f");a?(a=w.deCode(a),v.id=a.id,v.tab=a.tab,v.page=a.page,v.module=a.module,v.time=a.time,v.payment={active:!0},v.module_admin=a.module_admin):(v.id=0,v.tab="",v.page="Main",v.module=v.module||"M05")}else["a","b","c","d","e","m","u","s","q","p"].forEach(a=>localStorage.removeItem(a)),["f"].forEach(a=>sessionStorage.removeItem(a)),v.id=0,v.tab="",v.page="Auth",v.module="M00";return t}function M(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function un(e){e=e.split("/"),v.page="Main",v.module=e[0],v.tab=e[1],v.id=0,sessionStorage.setItem("f",w.enCode({module:v.module,page:v.page,tab:v.tab,id:v.id,time:(new Date).getTime()})),L.page(v.page)}function dn(e){return localStorage.setItem("d",e)}function fn(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?localStorage.getItem("d"):(M(),!1)}function mn(e){return localStorage.setItem("a",e)}function pn(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:(M(),!1)}function hn(e){localStorage.setItem("p",w.enCode(e))}function Le(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=w.deCode(e);return t||M(),t}else return M(),!1}function vn(){const[e,t]=R.useState(xt()),r=a=>{t(a)};return L.page=r,[e]}function gn(e){v.page=e,sessionStorage.setItem("f",w.enCode(v)),L.page(e)}function xt(){return v.page}function bn(){const[e,t]=R.useState(yt()),r=a=>{t(a)};return L.module=r,[e]}function _n(e,t){v.module=e,sessionStorage.setItem("f",w.enCode(v)),t!=="false"&&L.module(e)}function yt(){return v.module}function xn(e){const[t,r]=R.useState(we()||e),a=o=>{r(o)};return L.tabs=a,[t]}function yn(e,t){v.tab=e,sessionStorage.setItem("f",w.enCode(v)),t!=="false"&&L.tabs(e)}function we(){return v.tab}function Sn(){const[e,t]=R.useState(v.id),r=a=>{t(a)};return L.id=r,[e]}function jn(e){L.id=e}function wn(e,t){v.id=e,sessionStorage.setItem("f",w.enCode(v)),t!=="false"&&L.id(e)}function Cn(){return v.id}function kn(e,t,r){v.module=e,v.id=r,v.tab=t,sessionStorage.setItem("f",w.enCode(v)),L.module(e),L.tabs(t)}function Rn(e){ae.data=e[0],delete ae.data.id,document.body.dataset.theme=ae.data.s15,localStorage.setItem("s",w.enCode(ae.data))}function En(e,t){ae.data[e]=t,localStorage.setItem("s",w.enCode(ae.data))}function In(e){let t=localStorage.getItem("s");return t===null?{}:(t=w.deCode(t),t?e!==void 0?t[e]:t:M())}function St(e){localStorage.setItem("m",w.enCode({data:e}))}function Tn(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),r=w.deCode(t);r||M();const a=(l,c)=>{let f=c+"";for(;f.length<l;)f="0"+f;return f};return r.data.split(",").map(l=>"M"+a(2,l))}else return M(),!1}function Nn(e){L.sort=e}function jt(e){let t=localStorage.getItem("b");t=t===null?{}:w.deCode(t),t[we()]=e,localStorage.setItem("b",w.enCode(t))}function Me(){let e=localStorage.getItem("b");return e===null?{}:(e=w.deCode(e),e=e[we()],e=e===void 0?{active:1,sort:"<"}:e,e)}function wt(e){localStorage.setItem("c",w.enCode(e))}function Pn(e){let t=localStorage.getItem("c");if(t!==""&&t!=="undefined"&&t!==null){let r=w.deCode(t);return r||M(),e===void 0?r:r[e]}else return M(),!1}function fe(e){Q.data=e,localStorage.setItem("q",w.enCode(Q.data))}function me(e,t){if(!Q.data){let r=localStorage.getItem("q");r&&(Q.data=w.deCode(r))}return e===void 0&&t===void 0?Q.data:e!==void 0&&t===void 0?Q.data[e]:Q.data[e][t]}function On(e){_t.data=e}function Fn(e){return _t.data[e]}function $n(e){v.payment=e}function Dn(){return v.payment}function Ct(e){localStorage.setItem("u",w.enCode(e))}function Ln(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=w.deCode(e);return t||M(),t}else return M(),!1}const Ae={setSSID:dn,getSSID:fn,getPORT:Le,setPORT:hn,setAUTH:mn,getAUTH:pn,Logaut:M,Start:un,setMenu:St,getMenu:Tn,useSort:Nn,setSort:jt,getSort:Me,setCompany:wt,getCompany:Pn,setSelect:fe,getSelect:me,setApi:On,getApi:Fn,setPayment:$n,getPayment:Dn,setUser:Ct,getUser:Ln},kt="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOnsiQ29udGVudC10eXBlIjoiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04Iixzc2lkOnQuZGF0YS5zc2lkfSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaHtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciJ9KX19fSkoKTsK",Mn=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),mt=typeof window<"u"&&window.Blob&&new Blob([Mn(kt)],{type:"text/javascript;charset=utf-8"});function zn(e){let t;try{if(t=mt&&(window.URL||window.webkitURL).createObjectURL(mt),!t)throw"";const r=new Worker(t,{name:e==null?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;base64,"+kt,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const B={};function Zn(e){return e&&(B.s=e),B.s}function Yn(e){return e&&(B.a=e),B.a}function An(e){return e&&(B.c=e),B.c}function Wn(e){return e&&(B.h=e),B.h}const Rt={version:{Api:Yn,Server:Zn,Client:An},Host:Wn};let Vn="api.elcrm.online";function Un(e){return"https://"+Ae.getPORT().address+"/audio/"+e}function Et(e,t={},r=Ae.getAUTH()){return new Promise(a=>{const o=new zn;o.onmessage=l=>{a(l.data),o.terminate()},o.postMessage({link:e,data:t,ssid:r,host:Rt.Host()||`https://${Vn}/`})})}async function Gn(e,t,r={}){try{return await(await Et("https://"+e+"/"+t,{method:"POST",headers:{"Content-type":"application/json;charset=utf-8",ssid:Ae.getAUTH()||""},body:JSON.stringify(r)})).json()}catch{return{status:"error"}}}const bs={audio:Un,fetch:Et,remoute:Gn};var ze={exports:{}},le={};var pt;function Bn(){if(pt)return le;pt=1;var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(f,d,m){var p,b={},S=null,O=null;m!==void 0&&(S=""+m),d.key!==void 0&&(S=""+d.key),d.ref!==void 0&&(O=d.ref);for(p in d)a.call(d,p)&&!l.hasOwnProperty(p)&&(b[p]=d[p]);if(f&&f.defaultProps)for(p in d=f.defaultProps,d)b[p]===void 0&&(b[p]=d[p]);return{$$typeof:t,type:f,key:S,ref:O,props:b,_owner:o.current}}return le.Fragment=r,le.jsx=c,le.jsxs=c,le}var ue={};var ht;function Kn(){return ht||(ht=1,process.env.NODE_ENV!=="production"&&function(){var e=R,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),$=Symbol.iterator,C="@@iterator";function k(n){if(n===null||typeof n!="object")return null;var i=$&&n[$]||n[C];return typeof i=="function"?i:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(n){{for(var i=arguments.length,u=new Array(i>1?i-1:0),h=1;h<i;h++)u[h-1]=arguments[h];Z("error",n,u)}}function Z(n,i,u){{var h=E.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(i+="%s",u=u.concat([y]));var j=u.map(function(_){return String(_)});j.unshift("Warning: "+i),Function.prototype.apply.call(console[n],console,j)}}var V=!1,H=!1,te=!1,he=!1,Pt=!1,We;We=Symbol.for("react.module.reference");function Ot(n){return!!(typeof n=="string"||typeof n=="function"||n===a||n===l||Pt||n===o||n===m||n===p||he||n===O||V||H||te||typeof n=="object"&&n!==null&&(n.$$typeof===S||n.$$typeof===b||n.$$typeof===c||n.$$typeof===f||n.$$typeof===d||n.$$typeof===We||n.getModuleId!==void 0))}function Ft(n,i,u){var h=n.displayName;if(h)return h;var y=i.displayName||i.name||"";return y!==""?u+"("+y+")":u}function Ve(n){return n.displayName||"Context"}function A(n){if(n==null)return null;if(typeof n.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case a:return"Fragment";case r:return"Portal";case l:return"Profiler";case o:return"StrictMode";case m:return"Suspense";case p:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case f:var i=n;return Ve(i)+".Consumer";case c:var u=n;return Ve(u._context)+".Provider";case d:return Ft(n,n.render,"ForwardRef");case b:var h=n.displayName||null;return h!==null?h:A(n.type)||"Memo";case S:{var y=n,j=y._payload,_=y._init;try{return A(_(j))}catch{return null}}}return null}var J=Object.assign,ie=0,Ue,Ge,Be,Ke,Xe,He,Je;function Qe(){}Qe.__reactDisabledLog=!0;function $t(){{if(ie===0){Ue=console.log,Ge=console.info,Be=console.warn,Ke=console.error,Xe=console.group,He=console.groupCollapsed,Je=console.groupEnd;var n={configurable:!0,enumerable:!0,value:Qe,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}ie++}}function Dt(){{if(ie--,ie===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},n,{value:Ue}),info:J({},n,{value:Ge}),warn:J({},n,{value:Be}),error:J({},n,{value:Ke}),group:J({},n,{value:Xe}),groupCollapsed:J({},n,{value:He}),groupEnd:J({},n,{value:Je})})}ie<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ke=E.ReactCurrentDispatcher,Re;function ve(n,i,u){{if(Re===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);Re=h&&h[1]||""}return`
|
|
2
|
+
`+Re+n}}var Ee=!1,ge;{var Lt=typeof WeakMap=="function"?WeakMap:Map;ge=new Lt}function qe(n,i){if(!n||Ee)return"";{var u=ge.get(n);if(u!==void 0)return u}var h;Ee=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=ke.current,ke.current=null,$t();try{if(i){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(W){h=W}Reflect.construct(n,[],_)}else{try{_.call()}catch(W){h=W}n.call(_.prototype)}}else{try{throw Error()}catch(W){h=W}n()}}catch(W){if(W&&h&&typeof W.stack=="string"){for(var g=W.stack.split(`
|
|
3
3
|
`),F=h.stack.split(`
|
|
4
4
|
`),I=g.length-1,N=F.length-1;I>=1&&N>=0&&g[I]!==F[N];)N--;for(;I>=1&&N>=0;I--,N--)if(g[I]!==F[N]){if(I!==1||N!==1)do{if(I--,N--,N<0||g[I]!==F[N]){var z=`
|
|
5
|
-
`+g[I].replace(" at new "," at ");return n.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",n.displayName)),typeof n=="function"&&
|
|
5
|
+
`+g[I].replace(" at new "," at ");return n.displayName&&z.includes("<anonymous>")&&(z=z.replace("<anonymous>",n.displayName)),typeof n=="function"&&ge.set(n,z),z}}while(I>=1&&N>=0);break}}}finally{Ee=!1,ke.current=j,Dt(),Error.prepareStackTrace=y}var re=n?n.displayName||n.name:"",ft=re?ve(re):"";return typeof n=="function"&&ge.set(n,ft),ft}function Mt(n,i,u){return qe(n,!1)}function zt(n){var i=n.prototype;return!!(i&&i.isReactComponent)}function be(n,i,u){if(n==null)return"";if(typeof n=="function")return qe(n,zt(n));if(typeof n=="string")return ve(n);switch(n){case m:return ve("Suspense");case p:return ve("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case d:return Mt(n.render);case b:return be(n.type,i,u);case S:{var h=n,y=h._payload,j=h._init;try{return be(j(y),i,u)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,et={},tt=E.ReactDebugCurrentFrame;function xe(n){if(n){var i=n._owner,u=be(n.type,n._source,i?i.type:null);tt.setExtraStackFrame(u)}else tt.setExtraStackFrame(null)}function Zt(n,i,u,h,y){{var j=Function.call.bind(_e);for(var _ in n)if(j(n,_)){var g=void 0;try{if(typeof n[_]!="function"){var F=Error((h||"React class")+": "+u+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw F.name="Invariant Violation",F}g=n[_](i,_,h,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(I){g=I}g&&!(g instanceof Error)&&(xe(y),x("%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).",h||"React class",u,_,typeof g),xe(null)),g instanceof Error&&!(g.message in et)&&(et[g.message]=!0,xe(y),x("Failed %s type: %s",u,g.message),xe(null))}}}var Yt=Array.isArray;function Ie(n){return Yt(n)}function At(n){{var i=typeof Symbol=="function"&&Symbol.toStringTag,u=i&&n[Symbol.toStringTag]||n.constructor.name||"Object";return u}}function Wt(n){try{return nt(n),!1}catch{return!0}}function nt(n){return""+n}function rt(n){if(Wt(n))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",At(n)),nt(n)}var ce=E.ReactCurrentOwner,Vt={key:!0,ref:!0,__self:!0,__source:!0},at,st,Te;Te={};function Ut(n){if(_e.call(n,"ref")){var i=Object.getOwnPropertyDescriptor(n,"ref").get;if(i&&i.isReactWarning)return!1}return n.ref!==void 0}function Gt(n){if(_e.call(n,"key")){var i=Object.getOwnPropertyDescriptor(n,"key").get;if(i&&i.isReactWarning)return!1}return n.key!==void 0}function Bt(n,i){if(typeof n.ref=="string"&&ce.current&&i&&ce.current.stateNode!==i){var u=A(ce.current.type);Te[u]||(x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',A(ce.current.type),n.ref),Te[u]=!0)}}function Kt(n,i){{var u=function(){at||(at=!0,x("%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)",i))};u.isReactWarning=!0,Object.defineProperty(n,"key",{get:u,configurable:!0})}}function Xt(n,i){{var u=function(){st||(st=!0,x("%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)",i))};u.isReactWarning=!0,Object.defineProperty(n,"ref",{get:u,configurable:!0})}}var Ht=function(n,i,u,h,y,j,_){var g={$$typeof:t,type:n,key:i,ref:u,props:_,_owner:j};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:h}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Jt(n,i,u,h,y){{var j,_={},g=null,F=null;u!==void 0&&(rt(u),g=""+u),Gt(i)&&(rt(i.key),g=""+i.key),Ut(i)&&(F=i.ref,Bt(i,y));for(j in i)_e.call(i,j)&&!Vt.hasOwnProperty(j)&&(_[j]=i[j]);if(n&&n.defaultProps){var I=n.defaultProps;for(j in I)_[j]===void 0&&(_[j]=I[j])}if(g||F){var N=typeof n=="function"?n.displayName||n.name||"Unknown":n;g&&Kt(_,N),F&&Xt(_,N)}return Ht(n,g,F,y,h,ce.current,_)}}var Ne=E.ReactCurrentOwner,ot=E.ReactDebugCurrentFrame;function ne(n){if(n){var i=n._owner,u=be(n.type,n._source,i?i.type:null);ot.setExtraStackFrame(u)}else ot.setExtraStackFrame(null)}var Pe;Pe=!1;function Oe(n){return typeof n=="object"&&n!==null&&n.$$typeof===t}function it(){{if(Ne.current){var n=A(Ne.current.type);if(n)return`
|
|
6
6
|
|
|
7
|
-
Check the render method of \``+n+"`."}return""}}function
|
|
7
|
+
Check the render method of \``+n+"`."}return""}}function Qt(n){{if(n!==void 0){var i=n.fileName.replace(/^.*[\\\/]/,""),u=n.lineNumber;return`
|
|
8
8
|
|
|
9
|
-
Check your code at `+i+":"+u+"."}return""}}var ct={};function
|
|
9
|
+
Check your code at `+i+":"+u+"."}return""}}var ct={};function qt(n){{var i=it();if(!i){var u=typeof n=="string"?n:n.displayName||n.name;u&&(i=`
|
|
10
10
|
|
|
11
|
-
Check the top-level render call using <`+u+">.")}return i}}function lt(n,i){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var u=Qt(i);if(ct[u])return;ct[u]=!0;var h="";n&&n._owner&&n._owner!==Ne.current&&(h=" It was passed a child from "+Y(n._owner.type)+"."),te(n),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,h),te(null)}}function ut(n,i){{if(typeof n!="object")return;if(Ie(n))for(var u=0;u<n.length;u++){var h=n[u];Oe(h)&<(h,i)}else if(Oe(n))n._store&&(n._store.validated=!0);else if(n){var y=k(n);if(typeof y=="function"&&y!==n.entries)for(var j=y.call(n),_;!(_=j.next()).done;)Oe(_.value)&<(_.value,i)}}}function qt(n){{var i=n.type;if(i==null||typeof i=="string")return;var u;if(typeof i=="function")u=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===d||i.$$typeof===b))u=i.propTypes;else return;if(u){var h=Y(i);zt(u,n.props,"prop",h,n)}else if(i.PropTypes!==void 0&&!Pe){Pe=!0;var y=Y(i);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function en(n){{for(var i=Object.keys(n.props),u=0;u<i.length;u++){var h=i[u];if(h!=="children"&&h!=="key"){te(n),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",h),te(null);break}}n.ref!==null&&(te(n),x("Invalid attribute `ref` supplied to `React.Fragment`."),te(null))}}function dt(n,i,u,h,y,j){{var _=Pt(n);if(!_){var g="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(g+=" 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 F=Ht(y);F?g+=F:g+=it();var I;n===null?I="null":Ie(n)?I="array":n!==void 0&&n.$$typeof===t?(I="<"+(Y(n.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):I=typeof n,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,g)}var N=Jt(n,i,u,y,j);if(N==null)return N;if(_){var z=i.children;if(z!==void 0)if(h)if(Ie(z)){for(var ne=0;ne<z.length;ne++)ut(z[ne],n);Object.freeze&&Object.freeze(z)}else x("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 ut(z,n)}return n===a?en(N):qt(N),N}}function tn(n,i,u){return dt(n,i,u,!0)}function nn(n,i,u){return dt(n,i,u,!1)}var rn=nn,an=tn;le.Fragment=a,le.jsx=rn,le.jsxs=an}()),le}process.env.NODE_ENV==="production"?ze.exports=Yn():ze.exports=Wn();var s=ze.exports;const Vn="_notice_820sc_2",Un="_error_820sc_9",Bn="_success_820sc_12",Gn="_remark_820sc_15",Kn="_copy_820sc_18",Xn={notice:Vn,error:Un,success:Bn,remark:Gn,copy:Kn,"show-notice":"_show-notice_820sc_1","hide-notice":"_hide-notice_820sc_1"};let G={};function Jn(){let[e,t]=R.useState([]);return G.set=r=>{t([...e,r])},G.del=r=>{t(e.filter(a=>a.key!==r))},e.length===0?"":s.jsx("ul",{className:Xn.notice,children:e.map(r=>r.item)})}function me({data:e}){let[t,r]=R.useState("show");R.useEffect(()=>{setTimeout(function(){r("hide")},1800),setTimeout(function(){G.del(e.key)},2500)},[e.key]);let a,o;switch(e.type){case"error":a=s.jsx(Q.error,{}),o="Ошибка:";break;case"success":a=s.jsx(Q.success,{}),o="Информация:";break;case"copy":a=s.jsx(Q.success,{}),o="Копирование:";break;case"remark":a=s.jsx(Q.success,{}),o="Подсказка:";break;default:a=s.jsx(Q.success,{}),o="Предупреждение:";break}return s.jsxs("li",{className:"item "+e.type,"data-status":t,children:[a,s.jsx("b",{children:o}),s.jsx("p",{children:e.text})]})}function Hn(e){let t=Date.now(),r={key:t,...e};G.set({item:s.jsx(me,{data:r},t),key:t})}function Qn(e){let t=Date.now(),r={key:t,text:e,type:"error"};G.set({item:s.jsx(me,{data:r},t),key:t})}function qn(e){let t=Date.now(),r={key:t,text:e,type:"success"};G.set({item:s.jsx(me,{data:r},t),key:t})}function er(e){let t=Date.now(),r={key:t,text:e,type:"remark"};G.set({item:s.jsx(me,{data:r},t),key:t})}function tr(e){let t=Date.now(),r={key:t,text:e,type:"copy"};G.set({item:s.jsx(me,{data:r},t),key:t})}const Q={};Q.error=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[s.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),s.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]});Q.success=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[s.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),s.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const nr="_alerts_1e9y0_1",rr="_menuAnimation_1e9y0_1",ar="_menuItemAnimation_1e9y0_1",sr="_allert_1e9y0_111",or={alerts:nr,menuAnimation:rr,menuItemAnimation:ar,"--body":"_--body_1e9y0_103",allert:sr,"--form":"_--form_1e9y0_111"};let ue={};function ir(){let[e,t]=R.useState("");return ue.set=r=>t(r),ue.del=()=>t(""),s.jsx(s.Fragment,{children:e})}const cr=({data:e,callback:t})=>(e.button=e.button===void 0?"Подтвердить":e.button,s.jsxs("div",{className:or.alerts,children:[s.jsxs("dl",{children:[s.jsx("dt",{children:e.title}),s.jsx("dd",{children:e.text}),s.jsx("ul",{children:s.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),ue.del()},children:e.button})})]}),s.jsx("div",{className:"--body",onClick:ue.del})]}));function lr(e,t){ue.set(s.jsx(cr,{data:e,callback:t}))}function ur({children:e}){return s.jsx("div",{className:"l",children:s.jsx("ul",{children:e})})}function dr({children:e}){return s.jsx("div",{className:"s",children:e})}const fr=({children:e,disabled:t,label:r,onClick:a})=>{const o=l=>{t||a&&a(l)};return s.jsx("button",{disabled:t,onClick:o,children:r})},mr="_white_1iomo_14",pr="_black_1iomo_26",hr="_shake_1iomo_1",vr="_modal_1iomo_73",gr="_o_1iomo_83",br="_w_1iomo_14",_r="_h_1iomo_106",xr="_l_1iomo_120",yr="_t_1iomo_158",Sr="_m_1iomo_73",jr="_x_1iomo_166",wr="_s_1iomo_176",Cr="_c_1iomo_181",kr="_f_1iomo_186",Rr="_btn_1iomo_229",Er="_g_1iomo_242",Ir="_confirm_1iomo_320",Tr="_cancel_1iomo_325",Nr="_disabled_1iomo_330",Pr="_active_1iomo_387",Or="_coincidence_1iomo_393",U={white:mr,black:pr,shake:hr,modal:vr,o:gr,w:br,h:_r,l:xr,t:yr,m:Sr,x:jr,s:wr,c:Cr,f:kr,btn:Rr,g:Er,"size-a":"_size-a_1iomo_294","size-s":"_size-s_1iomo_298","size-m":"_size-m_1iomo_302","size-l":"_size-l_1iomo_306","size-x":"_size-x_1iomo_310","size-f":"_size-f_1iomo_314",confirm:Ir,cancel:Tr,disabled:Nr,await:"_await_1iomo_337",active:Pr,coincidence:Or};let ae={};const Fr=({config:e})=>{let[t,r]=R.useState([]);return ae.x=()=>{r([])},ae.config=e,ae.add=a=>{r([...t,a])},s.jsx(s.Fragment,{children:t.map(a=>a)})},Dr=({children:e,title:t,button:r,tabs:a,size:o="m",menu:l})=>{const[c,f]=R.useState(!0),d=R.useRef(),m=b=>{if(r&&r.onClick)return r.onClick({closed:f,disabled:b})},p=()=>{d.current.setAttribute("shake",!0),setTimeout(()=>{d.current.setAttribute("shake",!1)},1e3)};return s.jsx(s.Fragment,{children:c?s.jsxs("div",{className:`${U.modal} ${U.white}`,children:[s.jsx("div",{className:U.o,onClick:p}),s.jsxs("div",{className:U.w,ref:d,children:[s.jsxs("div",{className:U.h,children:[s.jsx("div",{className:U.t,children:t}),s.jsxs("div",{className:U.m,children:[a&&s.jsx("nav",{children:a.map((b,S)=>s.jsx("span",{onClick:b.onClick,className:b.active?"active":"",children:b.name},S))}),l]}),s.jsx("div",{className:U.x,onClick:()=>{f(!1)},children:s.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:s.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),e,r!==void 0?s.jsx(fr,{label:String(r.name),onClick:m}):""]})]}):""})},$r=e=>{ae.add(s.jsx(Lr,{children:e},String(Date.now())))},Lr=({children:e})=>s.jsx(s.Fragment,{children:e}),Mr=({type:e,name:t,params:r})=>{let[a,o]=R.useState(null);return R.useEffect(()=>{ae.config(e,t,r,o)},[r.id]),s.jsx(s.Fragment,{children:a})},zr=(e,t,r)=>{ae.config(e,t,r)},Zr={List:ur,Scroll:dr,Init:Fr,Main:Dr,Add:$r,Icon:Mr,Open:zr},Ar=({children:e,config:t,crypto:r,...a})=>cn(r,s.jsxs(s.Fragment,{children:[s.jsx(Zr.Init,{config:t.modal}),s.jsx(Jn,{}),s.jsx(ir,{}),e]})),Yr=({children:e,...t})=>s.jsx("menu",{children:e}),Wr=({children:e,...t})=>s.jsxs("header",{children:["xz",e]}),Vr="_payment_1lxfv_1",Ur={payment:Vr};function Br(){let[e,t]=R.useState({});return!e.active&&!e.payment?"":s.jsx("div",{className:Ur.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const gs=({children:e,...t})=>{let r={};return r.enCode=a=>JSON.stringify(a).toString(),r.deCode=a=>JSON.parse(a),s.jsxs("div",{className:"app",children:[s.jsx(Br,{}),s.jsx(Yr,{}),s.jsx(Wr,{}),s.jsx(Ar,{config:{modal:{}},crypto:r}),e]})},Gr=({list:e,onClick:t,active:r,size:a,view:o})=>s.jsx("nav",{children:s.jsx("ul",{className:[a,o].join(" "),children:e.map(l=>s.jsx(Kr,{onClick:t,active:r,label:l.label,link:l.link},l.link))})}),Kr=({onClick:e,label:t,link:r,active:a})=>s.jsx("li",{"tabs-active":String(a===r),onClick:()=>e(r),children:t});Gr.defaultProps={size:"M",view:"H"};const Xr=({title:e="",button:t,description:r="",children:a})=>s.jsxs("fieldset",{children:[e&&s.jsxs("legend",{children:[e,t&&s.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),s.jsx("ul",{children:a}),r&&s.jsx("article",{children:r})]}),Jr="_setting_1r0pc_2",Hr={setting:Jr},Qr=({children:e})=>s.jsx("div",{className:Hr.setting,children:e}),qr=({label:e,children:t})=>{let[r,a]=R.useState(!1);return s.jsxs("li",{"data-item":"accordion",children:[s.jsxs("dl",{onClick:()=>a(!r),children:[s.jsx("dt",{children:e}),s.jsx("dd",{children:s.jsx("div",{"data-close":String(r)})})]}),r&&s.jsx("div",{children:t})]})},ea=({label:e,onClick:t,button:r})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{role:"button",onClick:()=>t(),children:r})]})}),ta=({active:e,onClick:t})=>(e=typeof e=="number"?!!e:e,s.jsx("div",{role:"switch",onClick:()=>{t()},"aria-checked":e?"true":"false"})),na={Switch:ta},ra=({label:e,onClick:t,active:r})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{children:s.jsx(na.Switch,{onClick:t,active:r})})]})}),aa=({label:e,active:t,options:r})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{role:"info",children:t})]})}),sa=({label:e,info:t})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{role:"info",children:t})]})}),oa=({label:e,children:t})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{children:t})]})}),ia=({label:e,children:t})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{children:t})]})}),ca={Accordion:qr,Button:ea,Switch:ra,Info:sa,Select:aa,Component:oa,Node:ia};function Et({list:e,onClick:t,active:r,size:a,view:o}){return s.jsx("nav",{children:s.jsx("ul",{className:[a,o].join(" "),children:e.map(l=>s.jsx(la,{onClick:t,active:r,label:l.label,link:l.link},l.link))})})}const la=({onClick:e,label:t,link:r,active:a})=>s.jsx("li",{"tabs-active":String(a===r),onClick:()=>e(r),children:t});Et.defaultProps={size:"M",view:"H"};const bs={Section:Xr,Main:Qr,Item:ca,Tabs:Et},ua="_h_158b4_1",da="_t_158b4_11",fa="_s_158b4_31",ma="_u_158b4_40",pa="_o_158b4_47",ha="_l_158b4_56",va="_hh_158b4_63",q={h:ua,t:da,s:fa,u:ma,o:pa,l:ha,hh:va},vt=({title:e,children:t})=>s.jsxs("div",{className:q.h,children:[s.jsx("div",{className:q.t,children:e}),t]}),ga=({children:e,title:t})=>s.jsxs("div",{className:q.o,children:[t&&s.jsx("div",{className:q.hh,children:t}),e]}),ba=({children:e})=>s.jsx("div",{className:q.u,children:e}),gt=({children:e})=>s.jsx("div",{className:q.s,children:e}),bt=({children:e,...t})=>s.jsx("div",{className:q.l,children:e}),_s={Header:vt,Section:gt,List:bt,U:ba,L:bt,O:ga,S:gt,H:vt},xs={Send:Hn,Error:Qn,Remark:er,Success:qn,Copy:tr},ys={Send:lr};function _a(){return s.jsx("svg",{viewBox:"0 0 462.86 359.96",children:s.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const Ss={Logo:_a},De={Path:Cn,setPage:vn,getPage:xt,usePage:hn,setModule:bn,getModule:yt,useModule:gn,setTabs:xn,getTabs:we,useTabs:_n,useId:yn,setId:jn,subId:Sn,getId:wn},xa="_sort_1yrvt_1",ya={sort:xa};let Ce={};function Sa(e,t){switch(t.type){case"active":let r="<";return e.active===t.data&&(r=e.sort==="<"?">":"<"),Ce.get({active:t.data,sort:r},!1),jt({active:t.data,sort:r}),{...e,active:t.data,sort:r};default:throw new Error}}function ja(){const[e,t]=R.useReducer(Sa,Me()===void 0?{active:1,sort:"<"}:Me());return s.jsxs("div",{className:ya.sort,children:[s.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),s.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),s.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function wa(e){Ce.get=e}function Ca(e){Ce.set(e)}function ka(e,t,r){let a=1,o=0,l={},c=50;l[a]=[];let f={},d="s1a";switch(f.s1a=(m,p)=>p.s1-m.s1,f.s1d=(m,p)=>m.s1-p.s1,f.s2a=(m,p)=>m.s2-p.s2,f.s2d=(m,p)=>p.s2-m.s2,f.s3a=(m,p)=>m.s3.localeCompare(p.s3),f.s3d=(m,p)=>p.s3.localeCompare(m.s3),r.active){case 1:d=r.sort===">"?"s1d":"s1a";break;case 2:d=r.sort===">"?"s2d":"s2a";break;case 3:d=r.sort===">"?"s3d":"s3a";break}return t.sort(f[d]).forEach(m=>{o++,o<=c||(a++,o=1,l[a]=[]),l[a].push(e[m.id])}),{data:l}}function Ra(e){Ce.count(e)}const js={Init:ja,useValue:wa,Set:Ca,Run:ka,Count:Ra};function Ea(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let r={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:" ",_:" "};for(const a in r)t=t.replace(a,r[a]);return t}function Ia(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],r=new Date(e);return{day:(""+r.getFullYear()).slice(-2)+""+("0"+(r.getMonth()+1)).slice(-2)+("0"+r.getDate()).slice(-2),name:r.getDate()+" "+t[r.getMonth()]}}const Ta=e=>{function t(Z,V){var X,pe,ee;Z=Z??"",V=V??1;for(var X=[],ee=0,pe=Z.length;ee<pe;)X.push(Z.slice(ee,ee+=V));return X}function r(Z,V){var X=[2,0,1,1,1,2];return V[Z>4&&Z<20?2:X[Math.min(Z,5)]]}var a={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},o,l,c,f,k,d,m,C,p,b,S,O;p=parseFloat(e).toFixed(2).split("."),d=p[0],f=p[1];var D=12-d.length;if(D<0)return!1;for(var C=[];D--;)C.push("0");d=C.join("")+d;var k=[];if(d>0){b=t(d,3);for(var E=-1;E<b.length;E++)if(m=b[E],m>0&&(S=t(m,1),o=parseInt(S[0]),l=parseInt(S[1]),c=parseInt(S[2]),k.push(a.a100[o-1]),O=E+1==3?"a2":"a1",l>1?k.push(a.a20[l-2]+(c>0?" "+a[O][c-1]:"")):k.push(l>0?a.a10[c]:a[O][c-1]),b.length>E+1)){var x=a["u"+(E+1)];k.push(r(m,x))}}else k.push(a.null);return k.push(r(d,a.ur)),k.push(f+" "+r(f,a.uc)),k.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function Na(e){let t=-1,r=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do{e=e/1024,t++}while(e>1024);return Math.max(e,.1).toFixed(1)+r[t]}function Pa(e){let t={};return t["application/atom+xml"]="atom",t["application/json"]="json",t["application/javascript"]="js",t["application/ogg"]="ogg",t["application/pdf"]="pdf",t["application/soap+xml"]="soap",t["application/font-woff"]="woff",t["application/xhtml+xml"]="xml",t["application/xml-dtd"]="dtd",t["application/xop+xml"]="xop",t["application/zip"]="zip",t["application/gzip"]="gzip",t["application/x-bittorrent"]="bittorrent",t["application/x-tex"]="tex",t["application/xml"]="xml",t["application/msword"]="doc",t["image/svg+xml"]="svg",t[e]}function Oa(e,t,r,a){let o={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var c in this.rules)for(var f in this.rules[c])for(var d=0,m=this.rules[c][f].length;d<m;d++)this.rules[c][f][d]=this.rule(this.rules[c][f][d])},rule:function(c){var f=c.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return f?{sex:f[1],test:f[2].split(","),mods:[f[3],f[4],f[5],f[6],f[7]]}:!1},word:function(c,f,d,m){if(m===this.gcaseNom)return c;if(c.match(/[-]/)){for(var p=c.split("-"),b=0,S=p.length;b<S;b++)p[b]=this.word(p[b],f,d,m);return p.join("-")}if(c.match(/^[А-ЯЁ]\.?$/i))return c;this.init();var O=this.rules[d];let D;return O.exceptions&&(D=this.pick(c,f,m,O.exceptions,!0),D)?D:(D=this.pick(c,f,m,O.suffixes,!1),D||c)},pick:function(c,f,d,m,p){let b=c.toLowerCase();for(var S=0,O=m.length;S<O;S++)if(this.ruleMatch(b,f,m[S],p))return this.applyMod(c,d,m[S]);return!1},ruleMatch:function(c,f,d,m){if(d.sex===this.sexM&&f===this.sexF||d.sex===this.sexF&&f!==this.sexF)return!1;for(var p=0,b=d.test.length;p<b;p++){var S=m?c:c.substr(Math.max(c.length-d.test[p].length,0));if(S===d.test[p])return!0}return!1},applyMod:function(c,f,d){let m;switch(f){case this.gcaseNom:m=".";break;case this.gcaseGen:m=d.mods[0];break;case this.gcaseDat:m=d.mods[1];break;case this.gcaseAcc:m=d.mods[2];break;case this.gcaseIns:m=d.mods[3];break;case this.gcasePos:m=d.mods[4];break}for(var p=0,b=m.length;p<b;p++){var S=m.substr(p,1);switch(S){case".":break;case"-":c=c.substr(0,c.length-1);break;default:c+=S}}return c},getSex:()=>{if(o.mn.length>2)switch(o.mn.substr(o.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:c=>((o.fullNameSurnameLast?"":o.lastName(c)+" ")+o.firstName(c)+" "+o.middleName(c)+(o.fullNameSurnameLast?" "+o.lastName(c):"")).replace(/^ +| +$/g,""),lastName:c=>o.word(o.ln,o.sex,"lastName",c),firstName:c=>o.word(o.fn,o.sex,"firstName",c),middleName:c=>o.word(o.mn,o.sex,"middleName",c)};if(typeof t>"u"){var l=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!l)return"Cannot parse supplied name";l[5]&&l[3].match(/(ич|на)$/)&&!l[5].match(/(ич|на)$/)?(e=l[5],t=l[1],r=l[3],o.fullNameSurnameLast=!0):(e=l[1],t=l[3],r=l[5])}return o.ln=e,o.fn=t||"",o.mn=r||"",o.sex=a||o.getSex(),o}function Fa(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function Da(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function $a(e){return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function La(e,t){let r=t+"";for(;r.length<e;)r="0"+r;return r}function Ma(e,t,r){let a=t/e*r;return(typeof a!="number"||a===1/0)&&(a=0),parseFloat(a).toFixed(1)}function za(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ws={Date:Ea,MoneyString:Ta,DateSort:Ia,Size:Na,TypeFiles:Pa,Cases:Oa,Initials:Fa,Month:Da,Money:$a,Number:La,Percent:Ma,CapitalizeFirstLetter:za},Ze={};function Za(e,t){Ze[e]=t}function Aa(e,t){Ze[e]!==void 0&&Ze[e](t)}const B={};function Ya(e,t){const[r,a]=R.useState(t);return R.useEffect(()=>{if(B[e])return B[e].push(a);B[e]=[a]},[]),[r]}function Wa(e,t){if(B[e])return B[e].push(t);B[e]=[t]}function Va(e,t){B[e]&&B[e].forEach(r=>r(t))}const Cs={setListener:Aa,useListener:Za,setEmitter:Va,useEmitter:Ya,subEmitter:Wa},ye={},It={};function Ua(e){const[t,r]=R.useState({}),a=async o=>{r(Object.keys(ye).reduce((l,c)=>(l?l[c]=ye[c].all:l={},l),{}))};return R.useEffect(()=>{e.forEach(o=>ye[o]={all:0}),It.menu=a,a()},[e]),t}function Ba(e,t){switch(typeof t){case"number":ye[e].all+=t,It.menu();break}}const ks={useMenu:Ua,setUpdate:Ba},je={};function Ga(e){return e&&(je.s=e),je.s}function Ka(e){return e&&(je.a=e),je.a}const Xa={version:{Api:Ka,Server:Ga}},Ja="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function Ha(e){return new SharedWorker("data:text/javascript;base64,"+Ja,{name:e==null?void 0:e.name})}let $={},P={},xe=["filter","online","users","company","select","setting","info","job"];const Qa=()=>{const[e,t]=R.useState(!1),[r,a]=R.useState(!1);return[l=>{const c=new Ha;$.laodData=f=>{let d=xe.indexOf(f);d>=0&&xe.splice(d,1),xe.length===0&&t(!0)},$.send=f=>{c.port.postMessage({type:"send",json:f})},c.port.onmessage=f=>{let d=f.data;d.type==="error"&&a(!0),d.type==="true"&&t(!0),d.type==="closed"&&c.port.postMessage({type:"connect",ukey:l,lk:Le()}),xe.length!==0&&$.laodData(d.type),P[d.type]&&P[d.type](d)},c.port.postMessage({type:"connect",ukey:l,lk:Le()})},e,r]};P.module=e=>{$[e.listen]!==void 0&&($[e.listen](e),delete $[e.listen])};P.bell=e=>{$.bell!==void 0&&$.bell(e)};P.info=e=>{let t={};t.db=e.db,t.id=e.data.id,t.job=e.data.job,t.login=e.data.login,t.name=e.data.p02,t.patronymic=e.data.p03,t.surname=e.data.p01,t.email=e.data.email,t.admin=e.data.menu.includes("99"),Ct(t),St(e.data.menu)};P.version=async e=>{Xa.version.Server(e.data)};P.online=async e=>{};P.offline=async e=>{};P.chat=e=>{switch(e.data.action){case"new_message":De.getModule();break;case"view_message":De.getModule();break;case"write_message":De.getModule();break}};P.users=e=>{let t={};e.data.forEach(a=>{let o=a.p01+" "+a.p02+" "+a.p03,l=a.p01+" "+a.p02.substring(0,1)+"."+a.p03.substring(0,1)+".",c=a.p01.substring(0,1)+""+a.p02.substring(0,1)+a.p03.substring(0,1);t[a.id]={id:a.id,admin:a.m.includes("99"),ava:JSON.parse(a.a),job:a.j,login:"",online:{time:a.o,status:0},sts:a.s,nameFull:o,name:l,number:c}});let r={...fe(),user:t};de(r)};P.company=e=>{let t={},r={};e.data.forEach(o=>{t[o.id]={s:o.v,n:o.a},r[o.id]=o});let a={...fe(),901:t};wt(r),de(a)};P.api=e=>{let t={};e.data.forEach(r=>{t[r.api]={key:r.key,p01:r.p01,p02:r.p02}})};P.delete=()=>{M()};P.select=e=>{let t={...fe()};e.data.forEach(r=>{t[r.n]=JSON.parse(r.s)}),de(t)};P.job=e=>{let t={...fe()},r={};Object.keys(e.data).forEach(a=>{r[a]={s:1,n:e.data[a]}}),t[1]=r,de(t)};P.setting=e=>{kn(e.data)};P.app=()=>{};const qa=(e,t)=>{$[e]=t},es=(e,t)=>{$[e](t)};function ts(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(r=>{$[t]=a=>{a.error!==void 0?r({error:a.error}):r(a.data),delete $[t]},e={...e,listen:t},e.type="modules",$.send(e)})}const Rs={useConnect:Qa,useListener:qa,setListener:es,Send:ts};let Se=e=>w.enCode(e),Tt=e=>w.enCode(e);class ns{constructor(t="el",r="db"){Fe(this,"storeName");Fe(this,"_dbp");this.storeName=r,this._dbp=new Promise((a,o)=>{const l=indexedDB.open(t,1);l.onerror=()=>o(l.error),l.onsuccess=()=>a(l.result),l.onupgradeneeded=()=>{l.result.createObjectStore(r)}})}_withIDBStore(t,r){return this._dbp.then(a=>new Promise((o,l)=>{const c=a.transaction(this.storeName,t);c.oncomplete=()=>o(),c.onabort=c.onerror=()=>l(c.error),r(c.objectStore(this.storeName))}))}}let $e,T={};const se=()=>($e||($e=new ns),$e),K=(e,t,r=se())=>r._withIDBStore("readwrite",a=>{T[e]=t,a.put(Se(t),e)}),A=(e,t=se())=>T[e]===void 0?new Promise((r,a)=>{let o;t._withIDBStore("readonly",l=>{o=l.get(e)}).then(()=>{if(o.result!==void 0){let l=JSON.parse(Tt(o.result));T[e]=l,r(l)}else r({})})}):T[e],rs=(e,t=se())=>t._withIDBStore("readwrite",r=>{r.delete(e)}),Ae=(e=se())=>e._withIDBStore("readwrite",t=>{t.clear()}),as=(e=se())=>{const t=[];return e._withIDBStore("readonly",r=>{(r.openKeyCursor||r.openCursor).call(r).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},ss=(e,t,r=[],a={})=>{let o=r.length!==0,l=[],c=a.sort,f=Object.keys(a).length!==0,d=Object.keys(a),m=Object.keys(e),p=1,b=[],S={};S[p]=[];let O=C=>{let k="";if(r.forEach(E=>{k+=t[C][E]}),f){let E={};d.forEach(x=>{E[x]=t[C][x]});for(let x in c)t[C][c[x]]===void 0&&(Ae(),location.reload()),x==="s1"&&(E[x]=new Date(t[C][c[x]]).getTime()),x==="s2"&&(E[x]=t[C][c[x]]),x==="s3"&&(E[x]=t[C][c[x]].replace(/[^a-zа-яё]/gi,"").substring(0,1));l.push({id:C,text:k,...E})}else l.push({id:C,text:k})},D=C=>{d.forEach(k=>{k!=="b"&&a[k].list[t[C][k]]!==void 0&&(a[k].list[t[C][k]].count===void 0?a[k].list[t[C][k]].count=1:a[k].list[t[C][k]].count++)})};return m.forEach(C=>{b.push(t[C])}),b.forEach(C=>{C===void 0?(Ae(),location.reload()):(o&&O(C.id),f&&D(C.id))}),{list:S,search:l,filter:a}},os=(e,t,r,a=se())=>{if(T[e]===void 0)return new Promise((o,l)=>{let c;a._withIDBStore("readonly",f=>{c=f.get(e)}).then(()=>{if(c.result!==void 0){let f=JSON.parse(Tt(c.result));T[e]=f,T[e][t.id]={...T[e][t.id],...t.data},a.put(Se(T[e]),e),o({})}else o({})})});if(T[e][t.id]!==void 0)return T[e][t.id]={...T[e][t.id],...t.data},r!==void 0&&T[r]!==void 0?T[r][t.id]!==void 0&&(T[r][t.id]=t.data.eDate):T[r]=[],delete T[e][t.id].$_item,delete T[e][t.id].$_send,a._withIDBStore("readwrite",o=>{o.put(Se(T[e]),e),r!==void 0&&o.put(Se(T[r]),r)})},is=async(e,t,r,a)=>{let o,l;l=await A(r),l[e.id]=e,await K(r,l),o!==null&&(o=await A(t),o[e.id]=e.eDate,await K(t,o)),a!==void 0&&a({type:"load",page:o,base:l})},cs=async(e,t,r,a)=>{let o=await A(t),l=await A(r);for(let c in e)l[c]=e[c],o[c]=e[c].eDate;await K(t,o),await K(r,l),a!==void 0&&a({type:"load",page:o,base:l})},ls=async(e,t,r,a)=>{let o=await A(t),l=await A(r);e.forEach(c=>delete o[c]),await K(t,o),a!==void 0&&a({type:"load",page:o,base:l})},us=async(e,t,r)=>{let a=await A(t);e.forEach(o=>delete a[o]),await K(t,a)},ds=async(e,t,r)=>{let a=await A(t);e.forEach(o=>a[o.id]=o.eDate),await K(t,a)},fs=async(e,t,r)=>{let a=await A(t);if(r!==void 0)r({type:"load",base:a});else return a[e]},ms=e=>T[e],Es={id:fs,get:A,set:K,add:is,del:rs,upd:os,key:as,load:ms,split:ss,clear:Ae,updAll:cs,delAll:ls,delList:us,addList:ds},Is={setSetting:Rn,getSetting:En};export{na as Action,ys as Alert,vs as Api,ks as Badge,gs as Browser,fr as Button,_s as Component,Es as DataBase,Cs as Event,ws as Format,Ss as Icon,Ar as Init,Zr as Modal,xs as Notice,De as Router,bs as Setting,Xa as Sistym,Rs as Socket,Ye as Store,Gr as Tabs,js as Triage,Is as User};
|
|
11
|
+
Check the top-level render call using <`+u+">.")}return i}}function lt(n,i){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var u=qt(i);if(ct[u])return;ct[u]=!0;var h="";n&&n._owner&&n._owner!==Ne.current&&(h=" It was passed a child from "+A(n._owner.type)+"."),ne(n),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,h),ne(null)}}function ut(n,i){{if(typeof n!="object")return;if(Ie(n))for(var u=0;u<n.length;u++){var h=n[u];Oe(h)&<(h,i)}else if(Oe(n))n._store&&(n._store.validated=!0);else if(n){var y=k(n);if(typeof y=="function"&&y!==n.entries)for(var j=y.call(n),_;!(_=j.next()).done;)Oe(_.value)&<(_.value,i)}}}function en(n){{var i=n.type;if(i==null||typeof i=="string")return;var u;if(typeof i=="function")u=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===d||i.$$typeof===b))u=i.propTypes;else return;if(u){var h=A(i);Zt(u,n.props,"prop",h,n)}else if(i.PropTypes!==void 0&&!Pe){Pe=!0;var y=A(i);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",y||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tn(n){{for(var i=Object.keys(n.props),u=0;u<i.length;u++){var h=i[u];if(h!=="children"&&h!=="key"){ne(n),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",h),ne(null);break}}n.ref!==null&&(ne(n),x("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}}function dt(n,i,u,h,y,j){{var _=Ot(n);if(!_){var g="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(g+=" 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 F=Qt(y);F?g+=F:g+=it();var I;n===null?I="null":Ie(n)?I="array":n!==void 0&&n.$$typeof===t?(I="<"+(A(n.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):I=typeof n,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",I,g)}var N=Jt(n,i,u,y,j);if(N==null)return N;if(_){var z=i.children;if(z!==void 0)if(h)if(Ie(z)){for(var re=0;re<z.length;re++)ut(z[re],n);Object.freeze&&Object.freeze(z)}else x("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 ut(z,n)}return n===a?tn(N):en(N),N}}function nn(n,i,u){return dt(n,i,u,!0)}function rn(n,i,u){return dt(n,i,u,!1)}var an=rn,sn=nn;ue.Fragment=a,ue.jsx=an,ue.jsxs=sn}()),ue}process.env.NODE_ENV==="production"?ze.exports=Bn():ze.exports=Kn();var s=ze.exports;const Xn="_notice_820sc_2",Hn="_error_820sc_9",Jn="_success_820sc_12",Qn="_remark_820sc_15",qn="_copy_820sc_18",er={notice:Xn,error:Hn,success:Jn,remark:Qn,copy:qn,"show-notice":"_show-notice_820sc_1","hide-notice":"_hide-notice_820sc_1"};let K={};function tr(){let[e,t]=R.useState([]);return K.set=r=>{t([...e,r])},K.del=r=>{t(e.filter(a=>a.key!==r))},e.length===0?"":s.jsx("ul",{className:er.notice,children:e.map(r=>r.item)})}function pe({data:e}){let[t,r]=R.useState("show");R.useEffect(()=>{setTimeout(function(){r("hide")},1800),setTimeout(function(){K.del(e.key)},2500)},[e.key]);let a,o;switch(e.type){case"error":a=s.jsx(q.error,{}),o="Ошибка:";break;case"success":a=s.jsx(q.success,{}),o="Информация:";break;case"copy":a=s.jsx(q.success,{}),o="Копирование:";break;case"remark":a=s.jsx(q.success,{}),o="Подсказка:";break;default:a=s.jsx(q.success,{}),o="Предупреждение:";break}return s.jsxs("li",{className:"item "+e.type,"data-status":t,children:[a,s.jsx("b",{children:o}),s.jsx("p",{children:e.text})]})}function nr(e){let t=Date.now(),r={key:t,...e};K.set({item:s.jsx(pe,{data:r},t),key:t})}function rr(e){let t=Date.now(),r={key:t,text:e,type:"error"};K.set({item:s.jsx(pe,{data:r},t),key:t})}function ar(e){let t=Date.now(),r={key:t,text:e,type:"success"};K.set({item:s.jsx(pe,{data:r},t),key:t})}function sr(e){let t=Date.now(),r={key:t,text:e,type:"remark"};K.set({item:s.jsx(pe,{data:r},t),key:t})}function or(e){let t=Date.now(),r={key:t,text:e,type:"copy"};K.set({item:s.jsx(pe,{data:r},t),key:t})}const q={};q.error=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[s.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),s.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]});q.success=()=>s.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[s.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),s.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const ir="_alerts_1e9y0_1",cr="_menuAnimation_1e9y0_1",lr="_menuItemAnimation_1e9y0_1",ur="_allert_1e9y0_111",dr={alerts:ir,menuAnimation:cr,menuItemAnimation:lr,"--body":"_--body_1e9y0_103",allert:ur,"--form":"_--form_1e9y0_111"};let de={};function fr(){let[e,t]=R.useState("");return de.set=r=>t(r),de.del=()=>t(""),s.jsx(s.Fragment,{children:e})}const mr=({data:e,callback:t})=>(e.button=e.button===void 0?"Подтвердить":e.button,s.jsxs("div",{className:dr.alerts,children:[s.jsxs("dl",{children:[s.jsx("dt",{children:e.title}),s.jsx("dd",{children:e.text}),s.jsx("ul",{children:s.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),de.del()},children:e.button})})]}),s.jsx("div",{className:"--body",onClick:de.del})]}));function pr(e,t){de.set(s.jsx(mr,{data:e,callback:t}))}function hr({children:e}){return s.jsx("div",{className:"l",children:s.jsx("ul",{children:e})})}function vr({children:e}){return s.jsx("div",{className:"s",children:e})}const gr=({children:e,disabled:t,label:r,onClick:a})=>{const o=l=>{t||a&&a(l)};return s.jsx("button",{disabled:t,onClick:o,children:r})},br="_white_1iomo_14",_r="_black_1iomo_26",xr="_shake_1iomo_1",yr="_modal_1iomo_73",Sr="_o_1iomo_83",jr="_w_1iomo_14",wr="_h_1iomo_106",Cr="_l_1iomo_120",kr="_t_1iomo_158",Rr="_m_1iomo_73",Er="_x_1iomo_166",Ir="_s_1iomo_176",Tr="_c_1iomo_181",Nr="_f_1iomo_186",Pr="_btn_1iomo_229",Or="_g_1iomo_242",Fr="_confirm_1iomo_320",$r="_cancel_1iomo_325",Dr="_disabled_1iomo_330",Lr="_active_1iomo_387",Mr="_coincidence_1iomo_393",U={white:br,black:_r,shake:xr,modal:yr,o:Sr,w:jr,h:wr,l:Cr,t:kr,m:Rr,x:Er,s:Ir,c:Tr,f:Nr,btn:Pr,g:Or,"size-a":"_size-a_1iomo_294","size-s":"_size-s_1iomo_298","size-m":"_size-m_1iomo_302","size-l":"_size-l_1iomo_306","size-x":"_size-x_1iomo_310","size-f":"_size-f_1iomo_314",confirm:Fr,cancel:$r,disabled:Dr,await:"_await_1iomo_337",active:Lr,coincidence:Mr};let se={};const zr=({config:e})=>{let[t,r]=R.useState([]);return se.x=()=>{r([])},se.config=e,se.add=a=>{r([...t,a])},s.jsx(s.Fragment,{children:t.map(a=>a)})},Zr=({children:e,title:t,button:r,tabs:a,size:o="m",menu:l})=>{const[c,f]=R.useState(!0),d=R.useRef(),m=b=>{if(r&&r.onClick)return r.onClick({closed:f,disabled:b})},p=()=>{d.current.setAttribute("shake",!0),setTimeout(()=>{d.current.setAttribute("shake",!1)},1e3)};return s.jsx(s.Fragment,{children:c?s.jsxs("div",{className:`${U.modal} ${U.white}`,children:[s.jsx("div",{className:U.o,onClick:p}),s.jsxs("div",{className:U.w,ref:d,children:[s.jsxs("div",{className:U.h,children:[s.jsx("div",{className:U.t,children:t}),s.jsxs("div",{className:U.m,children:[a&&s.jsx("nav",{children:a.map((b,S)=>s.jsx("span",{onClick:b.onClick,className:b.active?"active":"",children:b.name},S))}),l]}),s.jsx("div",{className:U.x,onClick:()=>{f(!1)},children:s.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:s.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),e,r!==void 0?s.jsx(gr,{label:String(r.name),onClick:m}):""]})]}):""})},Yr=e=>{se.add(s.jsx(Ar,{children:e},String(Date.now())))},Ar=({children:e})=>s.jsx(s.Fragment,{children:e}),Wr=({type:e,name:t,params:r})=>{let[a,o]=R.useState(null);return R.useEffect(()=>{se.config(e,t,r,o)},[r.id]),s.jsx(s.Fragment,{children:a})},Vr=(e,t,r)=>{se.config(e,t,r)},Ur={List:hr,Scroll:vr,Init:zr,Main:Zr,Add:Yr,Icon:Wr,Open:Vr},Gr=({children:e,config:t,crypto:r,...a})=>ln(r,s.jsxs(s.Fragment,{children:[s.jsx(Ur.Init,{config:t.modal}),s.jsx(tr,{}),s.jsx(fr,{}),e]})),Br=({children:e,...t})=>s.jsx("menu",{children:e}),Kr=({children:e,...t})=>s.jsxs("header",{children:["xz",e]}),Xr="_payment_1lxfv_1",Hr={payment:Xr};function Jr(){let[e,t]=R.useState({});return!e.active&&!e.payment?"":s.jsx("div",{className:Hr.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const _s=({children:e,...t})=>{let r={};return r.enCode=a=>JSON.stringify(a).toString(),r.deCode=a=>JSON.parse(a),s.jsxs("div",{className:"app",children:[s.jsx(Jr,{}),s.jsx(Br,{}),s.jsx(Kr,{}),s.jsx(Gr,{config:{modal:{}},crypto:r}),e]})},Qr=({list:e,onClick:t,active:r,size:a,view:o})=>s.jsx("nav",{children:s.jsx("ul",{className:[a,o].join(" "),children:e.map(l=>s.jsx(qr,{onClick:t,active:r,label:l.label,link:l.link},l.link))})}),qr=({onClick:e,label:t,link:r,active:a})=>s.jsx("li",{"tabs-active":String(a===r),onClick:()=>e(r),children:t});Qr.defaultProps={size:"M",view:"H"};const ea=({title:e="",button:t,description:r="",children:a})=>s.jsxs("fieldset",{children:[e&&s.jsxs("legend",{children:[e,t&&s.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),s.jsx("ul",{children:a}),r&&s.jsx("article",{children:r})]}),ta="_setting_1r0pc_2",na={setting:ta},ra=({children:e})=>s.jsx("div",{className:na.setting,children:e}),aa=({label:e,children:t})=>{let[r,a]=R.useState(!1);return s.jsxs("li",{"data-item":"accordion",children:[s.jsxs("dl",{onClick:()=>a(!r),children:[s.jsx("dt",{children:e}),s.jsx("dd",{children:s.jsx("div",{"data-close":String(r)})})]}),r&&s.jsx("div",{children:t})]})},sa=({label:e,onClick:t,button:r})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{role:"button",onClick:()=>t(),children:r})]})}),oa=({active:e,onClick:t})=>(e=typeof e=="number"?!!e:e,s.jsx("div",{role:"switch",onClick:()=>{t()},"aria-checked":e?"true":"false"})),ia={Switch:oa},ca=({label:e,onClick:t,active:r})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{children:s.jsx(ia.Switch,{onClick:t,active:r})})]})}),la=({label:e,active:t,options:r})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{role:"info",children:t})]})}),ua=({label:e,info:t})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{role:"info",children:t})]})}),da=({label:e,children:t})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{children:t})]})}),fa=({label:e,children:t})=>s.jsx("li",{children:s.jsxs("dl",{children:[s.jsx("dt",{children:e}),s.jsx("dd",{children:t})]})}),ma={Accordion:aa,Button:sa,Switch:ca,Info:ua,Select:la,Component:da,Node:fa};function It({list:e,onClick:t,active:r,size:a,view:o}){return s.jsx("nav",{children:s.jsx("ul",{className:[a,o].join(" "),children:e.map(l=>s.jsx(pa,{onClick:t,active:r,label:l.label,link:l.link},l.link))})})}const pa=({onClick:e,label:t,link:r,active:a})=>s.jsx("li",{"tabs-active":String(a===r),onClick:()=>e(r),children:t});It.defaultProps={size:"M",view:"H"};const xs={Section:ea,Main:ra,Item:ma,Tabs:It},ha="_h_158b4_1",va="_t_158b4_11",ga="_s_158b4_31",ba="_u_158b4_40",_a="_o_158b4_47",xa="_l_158b4_56",ya="_hh_158b4_63",ee={h:ha,t:va,s:ga,u:ba,o:_a,l:xa,hh:ya},vt=({title:e,children:t})=>s.jsxs("div",{className:ee.h,children:[s.jsx("div",{className:ee.t,children:e}),t]}),Sa=({children:e,title:t})=>s.jsxs("div",{className:ee.o,children:[t&&s.jsx("div",{className:ee.hh,children:t}),e]}),ja=({children:e})=>s.jsx("div",{className:ee.u,children:e}),gt=({children:e})=>s.jsx("div",{className:ee.s,children:e}),bt=({children:e,...t})=>s.jsx("div",{className:ee.l,children:e}),ys={Header:vt,Section:gt,List:bt,U:ja,L:bt,O:Sa,S:gt,H:vt},Ss={Send:nr,Error:rr,Remark:sr,Success:ar,Copy:or},js={Send:pr};function wa(){return s.jsx("svg",{viewBox:"0 0 462.86 359.96",children:s.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const ws={Logo:wa},$e={Path:kn,setPage:gn,getPage:xt,usePage:vn,setModule:_n,getModule:yt,useModule:bn,setTabs:yn,getTabs:we,useTabs:xn,useId:Sn,setId:wn,subId:jn,getId:Cn},Ca="_sort_1yrvt_1",ka={sort:Ca};let Ce={};function Ra(e,t){switch(t.type){case"active":let r="<";return e.active===t.data&&(r=e.sort==="<"?">":"<"),Ce.get({active:t.data,sort:r},!1),jt({active:t.data,sort:r}),{...e,active:t.data,sort:r};default:throw new Error}}function Ea(){const[e,t]=R.useReducer(Ra,Me()===void 0?{active:1,sort:"<"}:Me());return s.jsxs("div",{className:ka.sort,children:[s.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),s.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),s.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function Ia(e){Ce.get=e}function Ta(e){Ce.set(e)}function Na(e,t,r){let a=1,o=0,l={},c=50;l[a]=[];let f={},d="s1a";switch(f.s1a=(m,p)=>p.s1-m.s1,f.s1d=(m,p)=>m.s1-p.s1,f.s2a=(m,p)=>m.s2-p.s2,f.s2d=(m,p)=>p.s2-m.s2,f.s3a=(m,p)=>m.s3.localeCompare(p.s3),f.s3d=(m,p)=>p.s3.localeCompare(m.s3),r.active){case 1:d=r.sort===">"?"s1d":"s1a";break;case 2:d=r.sort===">"?"s2d":"s2a";break;case 3:d=r.sort===">"?"s3d":"s3a";break}return t.sort(f[d]).forEach(m=>{o++,o<=c||(a++,o=1,l[a]=[]),l[a].push(e[m.id])}),{data:l}}function Pa(e){Ce.count(e)}const Cs={Init:Ea,useValue:Ia,Set:Ta,Run:Na,Count:Pa};function Oa(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let r={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:" ",_:" "};for(const a in r)t=t.replace(a,r[a]);return t}function Fa(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],r=new Date(e);return{day:(""+r.getFullYear()).slice(-2)+""+("0"+(r.getMonth()+1)).slice(-2)+("0"+r.getDate()).slice(-2),name:r.getDate()+" "+t[r.getMonth()]}}const $a=e=>{function t(Z,V){var H,he,te;Z=Z??"",V=V??1;for(var H=[],te=0,he=Z.length;te<he;)H.push(Z.slice(te,te+=V));return H}function r(Z,V){var H=[2,0,1,1,1,2];return V[Z>4&&Z<20?2:H[Math.min(Z,5)]]}var a={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},o,l,c,f,k,d,m,C,p,b,S,O;p=parseFloat(e).toFixed(2).split("."),d=p[0],f=p[1];var $=12-d.length;if($<0)return!1;for(var C=[];$--;)C.push("0");d=C.join("")+d;var k=[];if(d>0){b=t(d,3);for(var E=-1;E<b.length;E++)if(m=b[E],m>0&&(S=t(m,1),o=parseInt(S[0]),l=parseInt(S[1]),c=parseInt(S[2]),k.push(a.a100[o-1]),O=E+1==3?"a2":"a1",l>1?k.push(a.a20[l-2]+(c>0?" "+a[O][c-1]:"")):k.push(l>0?a.a10[c]:a[O][c-1]),b.length>E+1)){var x=a["u"+(E+1)];k.push(r(m,x))}}else k.push(a.null);return k.push(r(d,a.ur)),k.push(f+" "+r(f,a.uc)),k.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function Da(e){let t=-1,r=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do{e=e/1024,t++}while(e>1024);return Math.max(e,.1).toFixed(1)+r[t]}function La(e){let t={};return t["application/atom+xml"]="atom",t["application/json"]="json",t["application/javascript"]="js",t["application/ogg"]="ogg",t["application/pdf"]="pdf",t["application/soap+xml"]="soap",t["application/font-woff"]="woff",t["application/xhtml+xml"]="xml",t["application/xml-dtd"]="dtd",t["application/xop+xml"]="xop",t["application/zip"]="zip",t["application/gzip"]="gzip",t["application/x-bittorrent"]="bittorrent",t["application/x-tex"]="tex",t["application/xml"]="xml",t["application/msword"]="doc",t["image/svg+xml"]="svg",t[e]}function Ma(e,t,r,a){let o={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var c in this.rules)for(var f in this.rules[c])for(var d=0,m=this.rules[c][f].length;d<m;d++)this.rules[c][f][d]=this.rule(this.rules[c][f][d])},rule:function(c){var f=c.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return f?{sex:f[1],test:f[2].split(","),mods:[f[3],f[4],f[5],f[6],f[7]]}:!1},word:function(c,f,d,m){if(m===this.gcaseNom)return c;if(c.match(/[-]/)){for(var p=c.split("-"),b=0,S=p.length;b<S;b++)p[b]=this.word(p[b],f,d,m);return p.join("-")}if(c.match(/^[А-ЯЁ]\.?$/i))return c;this.init();var O=this.rules[d];let $;return O.exceptions&&($=this.pick(c,f,m,O.exceptions,!0),$)?$:($=this.pick(c,f,m,O.suffixes,!1),$||c)},pick:function(c,f,d,m,p){let b=c.toLowerCase();for(var S=0,O=m.length;S<O;S++)if(this.ruleMatch(b,f,m[S],p))return this.applyMod(c,d,m[S]);return!1},ruleMatch:function(c,f,d,m){if(d.sex===this.sexM&&f===this.sexF||d.sex===this.sexF&&f!==this.sexF)return!1;for(var p=0,b=d.test.length;p<b;p++){var S=m?c:c.substr(Math.max(c.length-d.test[p].length,0));if(S===d.test[p])return!0}return!1},applyMod:function(c,f,d){let m;switch(f){case this.gcaseNom:m=".";break;case this.gcaseGen:m=d.mods[0];break;case this.gcaseDat:m=d.mods[1];break;case this.gcaseAcc:m=d.mods[2];break;case this.gcaseIns:m=d.mods[3];break;case this.gcasePos:m=d.mods[4];break}for(var p=0,b=m.length;p<b;p++){var S=m.substr(p,1);switch(S){case".":break;case"-":c=c.substr(0,c.length-1);break;default:c+=S}}return c},getSex:()=>{if(o.mn.length>2)switch(o.mn.substr(o.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:c=>((o.fullNameSurnameLast?"":o.lastName(c)+" ")+o.firstName(c)+" "+o.middleName(c)+(o.fullNameSurnameLast?" "+o.lastName(c):"")).replace(/^ +| +$/g,""),lastName:c=>o.word(o.ln,o.sex,"lastName",c),firstName:c=>o.word(o.fn,o.sex,"firstName",c),middleName:c=>o.word(o.mn,o.sex,"middleName",c)};if(typeof t>"u"){var l=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!l)return"Cannot parse supplied name";l[5]&&l[3].match(/(ич|на)$/)&&!l[5].match(/(ич|на)$/)?(e=l[5],t=l[1],r=l[3],o.fullNameSurnameLast=!0):(e=l[1],t=l[3],r=l[5])}return o.ln=e,o.fn=t||"",o.mn=r||"",o.sex=a||o.getSex(),o}function za(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function Za(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function Ya(e){return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function Aa(e,t){let r=t+"";for(;r.length<e;)r="0"+r;return r}function Wa(e,t,r){let a=t/e*r;return(typeof a!="number"||a===1/0)&&(a=0),parseFloat(a).toFixed(1)}function Va(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ks={Date:Oa,MoneyString:$a,DateSort:Fa,Size:Da,TypeFiles:La,Cases:Ma,Initials:za,Month:Za,Money:Ya,Number:Aa,Percent:Wa,CapitalizeFirstLetter:Va},Ze={};function Ua(e,t){Ze[e]=t}function Ga(e,t){Ze[e]!==void 0&&Ze[e](t)}const G={};function Ba(e,t){const[r,a]=R.useState(t);return R.useEffect(()=>{if(G[e])return G[e].push(a);G[e]=[a]},[]),[r]}function Ka(e,t){if(G[e])return G[e].push(t);G[e]=[t]}function Xa(e,t){G[e]&&G[e].forEach(r=>r(t))}const Rs={setListener:Ga,useListener:Ua,setEmitter:Xa,useEmitter:Ba,subEmitter:Ka},Se={},Tt={};function Ha(e){const[t,r]=R.useState({}),a=async o=>{r(Object.keys(Se).reduce((l,c)=>(l?l[c]=Se[c].all:l={},l),{}))};return R.useEffect(()=>{e.forEach(o=>Se[o]={all:0}),Tt.menu=a,a()},[e]),t}function Ja(e,t){switch(typeof t){case"number":Se[e].all+=t,Tt.menu();break}}const Es={useMenu:Ha,setUpdate:Ja},Qa="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function qa(e){return new SharedWorker("data:text/javascript;base64,"+Qa,{name:e==null?void 0:e.name})}let D={},P={},ye=["filter","online","users","company","select","setting","info","job"];const es=()=>{const[e,t]=R.useState(!1),[r,a]=R.useState(!1);return[l=>{const c=new qa;D.laodData=f=>{let d=ye.indexOf(f);d>=0&&ye.splice(d,1),ye.length===0&&t(!0)},D.send=f=>{c.port.postMessage({type:"send",json:f})},c.port.onmessage=f=>{let d=f.data;d.type==="error"&&a(!0),d.type==="true"&&t(!0),d.type==="closed"&&c.port.postMessage({type:"connect",ukey:l,lk:Le()}),ye.length!==0&&D.laodData(d.type),P[d.type]&&P[d.type](d)},c.port.postMessage({type:"connect",ukey:l,lk:Le()})},e,r]};P.module=e=>{D[e.listen]!==void 0&&(D[e.listen](e),delete D[e.listen])};P.bell=e=>{D.bell!==void 0&&D.bell(e)};P.info=e=>{let t={};t.db=e.db,t.id=e.data.id,t.job=e.data.job,t.login=e.data.login,t.name=e.data.p02,t.patronymic=e.data.p03,t.surname=e.data.p01,t.email=e.data.email,t.admin=e.data.menu.includes("99"),Ct(t),St(e.data.menu)};P.version=async e=>{Rt.version.Server(e.data)};P.online=async e=>{};P.offline=async e=>{};P.chat=e=>{switch(e.data.action){case"new_message":$e.getModule();break;case"view_message":$e.getModule();break;case"write_message":$e.getModule();break}};P.users=e=>{let t={};e.data.forEach(a=>{let o=a.p01+" "+a.p02+" "+a.p03,l=a.p01+" "+a.p02.substring(0,1)+"."+a.p03.substring(0,1)+".",c=a.p01.substring(0,1)+""+a.p02.substring(0,1)+a.p03.substring(0,1);t[a.id]={id:a.id,admin:a.m.includes("99"),ava:JSON.parse(a.a),job:a.j,login:"",online:{time:a.o,status:0},sts:a.s,nameFull:o,name:l,number:c}});let r={...me(),user:t};fe(r)};P.company=e=>{let t={},r={};e.data.forEach(o=>{t[o.id]={s:o.v,n:o.a},r[o.id]=o});let a={...me(),901:t};wt(r),fe(a)};P.api=e=>{let t={};e.data.forEach(r=>{t[r.api]={key:r.key,p01:r.p01,p02:r.p02}})};P.delete=()=>{M()};P.select=e=>{let t={...me()};e.data.forEach(r=>{t[r.n]=JSON.parse(r.s)}),fe(t)};P.job=e=>{let t={...me()},r={};Object.keys(e.data).forEach(a=>{r[a]={s:1,n:e.data[a]}}),t[1]=r,fe(t)};P.setting=e=>{Rn(e.data)};P.app=()=>{};const ts=(e,t)=>{D[e]=t},ns=(e,t)=>{D[e](t)};function rs(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(r=>{D[t]=a=>{a.error!==void 0?r({error:a.error}):r(a.data),delete D[t]},e={...e,listen:t},e.type="modules",D.send(e)})}const Is={useConnect:es,useListener:ts,setListener:ns,Send:rs};let je=e=>w.enCode(e),Nt=e=>w.enCode(e);class as{constructor(t="el",r="db"){Fe(this,"storeName");Fe(this,"_dbp");this.storeName=r,this._dbp=new Promise((a,o)=>{const l=indexedDB.open(t,1);l.onerror=()=>o(l.error),l.onsuccess=()=>a(l.result),l.onupgradeneeded=()=>{l.result.createObjectStore(r)}})}_withIDBStore(t,r){return this._dbp.then(a=>new Promise((o,l)=>{const c=a.transaction(this.storeName,t);c.oncomplete=()=>o(),c.onabort=c.onerror=()=>l(c.error),r(c.objectStore(this.storeName))}))}}let De,T={};const oe=()=>(De||(De=new as),De),X=(e,t,r=oe())=>r._withIDBStore("readwrite",a=>{T[e]=t,a.put(je(t),e)}),Y=(e,t=oe())=>T[e]===void 0?new Promise((r,a)=>{let o;t._withIDBStore("readonly",l=>{o=l.get(e)}).then(()=>{if(o.result!==void 0){let l=JSON.parse(Nt(o.result));T[e]=l,r(l)}else r({})})}):T[e],ss=(e,t=oe())=>t._withIDBStore("readwrite",r=>{r.delete(e)}),Ye=(e=oe())=>e._withIDBStore("readwrite",t=>{t.clear()}),os=(e=oe())=>{const t=[];return e._withIDBStore("readonly",r=>{(r.openKeyCursor||r.openCursor).call(r).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},is=(e,t,r=[],a={})=>{let o=r.length!==0,l=[],c=a.sort,f=Object.keys(a).length!==0,d=Object.keys(a),m=Object.keys(e),p=1,b=[],S={};S[p]=[];let O=C=>{let k="";if(r.forEach(E=>{k+=t[C][E]}),f){let E={};d.forEach(x=>{E[x]=t[C][x]});for(let x in c)t[C][c[x]]===void 0&&(Ye(),location.reload()),x==="s1"&&(E[x]=new Date(t[C][c[x]]).getTime()),x==="s2"&&(E[x]=t[C][c[x]]),x==="s3"&&(E[x]=t[C][c[x]].replace(/[^a-zа-яё]/gi,"").substring(0,1));l.push({id:C,text:k,...E})}else l.push({id:C,text:k})},$=C=>{d.forEach(k=>{k!=="b"&&a[k].list[t[C][k]]!==void 0&&(a[k].list[t[C][k]].count===void 0?a[k].list[t[C][k]].count=1:a[k].list[t[C][k]].count++)})};return m.forEach(C=>{b.push(t[C])}),b.forEach(C=>{C===void 0?(Ye(),location.reload()):(o&&O(C.id),f&&$(C.id))}),{list:S,search:l,filter:a}},cs=(e,t,r,a=oe())=>{if(T[e]===void 0)return new Promise((o,l)=>{let c;a._withIDBStore("readonly",f=>{c=f.get(e)}).then(()=>{if(c.result!==void 0){let f=JSON.parse(Nt(c.result));T[e]=f,T[e][t.id]={...T[e][t.id],...t.data},a.put(je(T[e]),e),o({})}else o({})})});if(T[e][t.id]!==void 0)return T[e][t.id]={...T[e][t.id],...t.data},r!==void 0&&T[r]!==void 0?T[r][t.id]!==void 0&&(T[r][t.id]=t.data.eDate):T[r]=[],delete T[e][t.id].$_item,delete T[e][t.id].$_send,a._withIDBStore("readwrite",o=>{o.put(je(T[e]),e),r!==void 0&&o.put(je(T[r]),r)})},ls=async(e,t,r,a)=>{let o,l;l=await Y(r),l[e.id]=e,await X(r,l),o!==null&&(o=await Y(t),o[e.id]=e.eDate,await X(t,o)),a!==void 0&&a({type:"load",page:o,base:l})},us=async(e,t,r,a)=>{let o=await Y(t),l=await Y(r);for(let c in e)l[c]=e[c],o[c]=e[c].eDate;await X(t,o),await X(r,l),a!==void 0&&a({type:"load",page:o,base:l})},ds=async(e,t,r,a)=>{let o=await Y(t),l=await Y(r);e.forEach(c=>delete o[c]),await X(t,o),a!==void 0&&a({type:"load",page:o,base:l})},fs=async(e,t,r)=>{let a=await Y(t);e.forEach(o=>delete a[o]),await X(t,a)},ms=async(e,t,r)=>{let a=await Y(t);e.forEach(o=>a[o.id]=o.eDate),await X(t,a)},ps=async(e,t,r)=>{let a=await Y(t);if(r!==void 0)r({type:"load",base:a});else return a[e]},hs=e=>T[e],Ts={id:ps,get:Y,set:X,add:ls,del:ss,upd:cs,key:os,load:hs,split:is,clear:Ye,updAll:us,delAll:ds,delList:fs,addList:ms},Ns={setSetting:En,getSetting:In};export{ia as Action,js as Alert,bs as Api,Es as Badge,_s as Browser,gr as Button,ys as Component,Ts as DataBase,Rs as Event,ks as Format,ws as Icon,Gr as Init,Ur as Modal,Ss as Notice,$e as Router,xs as Setting,Rt as Sistym,Is as Socket,Ae as Store,Qr as Tabs,Cs as Triage,Ns as User};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(h,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],g):(h=typeof globalThis<"u"?globalThis:h||self,g((h.elCRM=h.elCRM||{},h.elCRM.components={}),h.React))})(this,function(h,g){"use strict";var jo=Object.defineProperty;var Co=(h,g,U)=>g in h?jo(h,g,{enumerable:!0,configurable:!0,writable:!0,value:U}):h[g]=U;var Be=(h,g,U)=>(Co(h,typeof g!="symbol"?g+"":g,U),U);var U=document.createElement("style");U.textContent=`@charset "UTF-8";._notice_820sc_2{position:absolute;right:20px;top:72px;z-index:1111;font-family:Inter,sans-serif}._notice_820sc_2 ._error_820sc_9{color:#bb2014}._notice_820sc_2 ._success_820sc_12{color:#367738}._notice_820sc_2 ._remark_820sc_15{color:#b77513}._notice_820sc_2 ._copy_820sc_18{color:#3f51b5}._notice_820sc_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:5px;box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_820sc_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_820sc_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_820sc_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_820sc_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_820sc_1 1s 1;animation-fill-mode:forwards}._notice_820sc_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_820sc_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_820sc_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_820sc_1{0%{opacity:1}to{opacity:0}}._alerts_1e9y0_1{position:fixed;top:0;bottom:0;left:0;right:0;color:var(--system-color);background:#0000009e;z-index:30;display:flex;flex:1;align-content:center;justify-content:center}._alerts_1e9y0_1 dl{margin:auto;overflow:hidden;width:270px;height:auto;border-radius:12px;border:0;height:fit-content;z-index:1;background:var(--system-bg);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);-webkit-animation:_menuAnimation_1e9y0_1 .4s 0s both;animation:_menuAnimation_1e9y0_1 .4s 0s both;list-style:none;padding-top:20px;font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017}._alerts_1e9y0_1 dt{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;text-align:center;text-transform:capitalize;font-weight:600;line-height:22px;margin:0 0 5px;padding:0 20px}._alerts_1e9y0_1 dd{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:13px;margin:0;text-align:center;line-height:16px;padding:0 20px 20px}._alerts_1e9y0_1 ul{border-top:1px solid var(--system-hr);width:100%;display:flex}._alerts_1e9y0_1 button{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:10px;cursor:pointer;text-align:center;font-weight:600;background:#0000;border-radius:0;display:block;width:-webkit-fill-available;-webkit-animation:_menuItemAnimation_1e9y0_1 .2s 0s both;animation:_menuItemAnimation_1e9y0_1 .2s 0s both;font-family:Inter,sans-serif;border:0}._alerts_1e9y0_1 button[color=blue]{color:#1b6ac0}._alerts_1e9y0_1 button[color=red]{color:#c21c0d}._alerts_1e9y0_1 button:hover{background:var(--system-hover)}._alerts_1e9y0_1 ._--body_1e9y0_103{position:fixed;top:0;bottom:0;left:0;right:0}._allert_1e9y0_111 ._--form_1e9y0_111{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:20px;border-bottom:1px solid var(--system-hr)}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade)}._white_1iomo_14{--background: #e4ebf5;--shadow: #abb6d2;--shade: #fff;--color: #1f253d;--disabled: #9baacf;--text: #394264;--tinge: #3f51b50a;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px var(--shadow), -1px -1px 1px var(--shade)}._black_1iomo_26{--background: #506290;--shadow: #1f253d;--shade: #394264;--color: #fff;--disabled: #29314c;--text: #abb6d2;--tinge: #00000026;--inset: inset 1px 1px 1px #394264, inset -1px -1px 1px #39426470;--outset: 1px 1px 1px #394264, -1px -1px 1px #39426470}[shake=true]{-webkit-animation-name:_shake_1iomo_1;animation-name:_shake_1iomo_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_1iomo_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}[data-color-bg=fff1d6]{--inset: inset 1px 1px 1px #c9c1ac, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #c9c1ac, -1px -1px 1px var(--shade)}[data-color-bg=ffd9d9]{--inset: inset 1px 1px 1px #cdb0b1, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #cdb0b1, -1px -1px 1px var(--shade)}[data-color-bg=daffe5]{--inset: inset 1px 1px 1px #b6d2be, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #b6d2be, -1px -1px 1px var(--shade)}._modal_1iomo_73{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._o_1iomo_83{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b8}._w_1iomo_14{box-shadow:5px 7px 18px #000000a8;background:var(--background);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap}._h_1iomo_106{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_1iomo_120{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_1iomo_120 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_1iomo_120 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_1iomo_120 li:last-child{border-bottom:0}._l_1iomo_120 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_1iomo_158{padding-right:10px}._m_1iomo_73{flex:1}._x_1iomo_166{cursor:pointer;color:#1f253d;opacity:.5;display:flex}._x_1iomo_166 svg{width:20px}._s_1iomo_176{flex:1;overflow-y:scroll}._c_1iomo_181{text-align:center;margin:20px}._f_1iomo_186{padding:0 20px;display:flex;flex-direction:column}._f_1iomo_186 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_1iomo_186 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_1iomo_186 dd{margin:0;background:var(--tinge);color:var(--color);box-shadow:var(--inset);border-radius:5px;min-height:33px;padding:7px 10px;flex:1 1}._f_1iomo_186 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._x_1iomo_166:hover{opacity:1}._btn_1iomo_229{min-width:200px;margin:10px auto 20px;opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._g_1iomo_242{display:flex;gap:10px}._c_1iomo_181{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;cursor:pointer}._c_1iomo_181:first-child{margin-left:20px}._c_1iomo_181:last-child{margin-right:20px}._c_1iomo_181:hover{opacity:1;background:var(--tinge)}._c_1iomo_181 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_1iomo_181 b{text-align:center;display:block;color:var(--color)}._c_1iomo_181 p{text-align:center;font-size:15px;color:var(--text)}._btn_1iomo_229:hover{opacity:1}._modal_1iomo_73._size-a_1iomo_294 ._w_1iomo_14{width:auto}._modal_1iomo_73._size-s_1iomo_298 ._w_1iomo_14{width:400px}._modal_1iomo_73._size-m_1iomo_302 ._w_1iomo_14{width:500px}._modal_1iomo_73._size-l_1iomo_306 ._w_1iomo_14{width:800px}._modal_1iomo_73._size-x_1iomo_310 ._w_1iomo_14{width:1000px}._modal_1iomo_73._size-f_1iomo_314 ._w_1iomo_14{width:100%;max-width:1200px;min-width:910px}._btn_1iomo_229._confirm_1iomo_320{background:#4caf50;color:#fff}._btn_1iomo_229._cancel_1iomo_325{background:#f44336;color:#fff}._btn_1iomo_229._disabled_1iomo_330,._btn_1iomo_229._await_1iomo_337{background:#efefef;color:#000;opacity:1;cursor:default}._m_1iomo_73 big{position:absolute;margin:10px auto 20px;border-radius:5px;box-shadow:var(--outset);display:flex;top:-1px;right:55px}._m_1iomo_73 big i{width:30px;height:30px;text-align:center;margin:3px;line-height:30px;cursor:pointer;border-radius:5px}._m_1iomo_73 big i:hover{box-shadow:var(--inset)}._m_1iomo_73 nav{width:fit-content;height:35px;margin:0 auto;box-shadow:var(--outset);border-radius:5px;display:flex}._m_1iomo_73 span{border-radius:3px;flex:1 1;margin:2px;padding:0 10px;line-height:35px;color:var(--disabled);cursor:pointer}._m_1iomo_73 span._active_1iomo_387{box-shadow:var(--inset);color:var(--color)}._coincidence_1iomo_393{position:fixed;right:20px;bottom:20px;z-index:1111;overflow-y:scroll;max-height:565px;padding-top:90px}._coincidence_1iomo_393 span{display:block;width:300px;border-radius:5px;overflow:hidden;cursor:pointer;margin:10px 0;padding:10px;color:#1f253d}._coincidence_1iomo_393 dl{display:flex;padding:0;margin:5px}._coincidence_1iomo_393 dd{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 10px}menu{border-radius:5px;overflow:hidden;display:flex;flex-direction:column;background:var(--contex);grid-area:m}._payment_1lxfv_1{background:#f44336;height:42px;border-radius:5px;color:#fff;font-weight:700;line-height:42px;margin-top:8px;grid-area:p;text-align:center}._setting_1r0pc_2{width:100%;overflow:auto}._setting_1r0pc_2 nav{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_1r0pc_2 nav ul{display:flex;justify-content:space-between;gap:1px}._setting_1r0pc_2 nav li{flex:1;text-align:center;background:var(--setting-bg);color:var(--setting-color);cursor:pointer;opacity:.7}._setting_1r0pc_2 nav li[tabs-active=true]{opacity:1}._setting_1r0pc_2 fieldset{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_1r0pc_2 legend{text-transform:uppercase;font-weight:300;font-size:1.3em}._setting_1r0pc_2 ul{margin:10px 0;color:#000;border-radius:8px;overflow:hidden;list-style-type:none;padding:0}._setting_1r0pc_2 li{font-size:20px;line-height:40px}._setting_1r0pc_2 dl{display:flex;margin:0 0 1px;align-items:center;padding-right:9px;background:var(--setting-bg);color:var(--setting-color)}._setting_1r0pc_2 dd{text-align:right;padding-left:15px;position:relative;display:flex;justify-content:center}._setting_1r0pc_2 dt{flex:1;padding:0 15px}._setting_1r0pc_2 article{padding-left:15px;color:var(--setting-bg);font-weight:100;font-size:14px}._setting_1r0pc_2 legend{color:var(--setting-bg);display:flex;justify-content:space-between;width:100%}._setting_1r0pc_2 svg{fill:var(--setting-color);width:15px;margin-left:10px}._setting_1r0pc_2 [data-close]{cursor:pointer;width:10px;height:10px;border-top:3px solid var(--setting-color);border-left:3px solid var(--setting-color);position:absolute;right:10px;top:3px;-webkit-transform:translate(0,-50%) rotate(45deg);-ms-transform:translate(0,-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}._setting_1r0pc_2 [data-close=false]{right:10px;top:0;-webkit-transform:translate(0,-50%) rotate(-135deg);-ms-transform:translate(0,-50%) rotate(-135deg);transform:translateY(-50%) rotate(-135deg)}._setting_1r0pc_2 [data-item=accordion]>div{margin-top:1px;background-color:var(--setting-bg)}._setting_1r0pc_2 [role=button]{font-size:13px;border-radius:5px;text-align:center;width:100px;line-height:30px;padding:0;cursor:pointer}._setting_1r0pc_2 [role=button]:hover{background:var(--setting-action)}._setting_1r0pc_2 [role=button-outline]{font-size:14px;border:1px solid;padding:3px 13px;border-radius:6px;cursor:pointer;text-transform:none}._setting_1r0pc_2 [role=button-outline]:hover{background:#00000038}._setting_1r0pc_2 [role=switch]{cursor:pointer;position:relative;width:44px;height:22px;border-radius:50px;vertical-align:text-bottom;transition:all .3s linear;margin:0}._setting_1r0pc_2 [role=switch]:after{content:"";position:absolute;left:4px;width:16px;height:16px;background-color:#fff;border-radius:50%;box-shadow:0 2px 2px #0000003d;transform:translate3d(0,3px,0);transition:all .2s ease-in-out}._setting_1r0pc_2 [role=switch]:before{content:"";position:absolute;left:0;width:42px;height:22px;background-color:#ddd;border-radius:11px;transition:all .25s linear}._setting_1r0pc_2 [role=switch][aria-checked=true]{background-color:#1f253d}._setting_1r0pc_2 [role=switch][aria-checked=true]:before{transform:translate3d(18px,2px,0) scale3d(0,0,0)}._setting_1r0pc_2 [role=switch][aria-checked=true]:after{transform:translate3d(19px,3px,0)}._h_158b4_1{background:var(--content);margin-bottom:2px;border-radius:5px 5px 0 0;line-height:35px;align-items:center;display:flex;height:35px}._t_158b4_11{border-bottom:0;cursor:default;display:block;flex:1;margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px;font-size:14px!important;line-height:35px;font-weight:700;text-align:center;color:var(--label);position:absolute;left:0;right:0;height:35px}._s_158b4_31{display:flex;flex:1;position:relative;overflow:hidden;border-radius:5px;flex-flow:column nowrap}._u_158b4_40{overflow:hidden;border-radius:0 0 5px 5px;background:var(--content);display:block}._o_158b4_47{overflow:hidden;position:relative;border-radius:5px;margin-top:5px;flex:1 1;background:var(--content)}._l_158b4_56{flex:1;overflow:hidden;overflow-y:scroll;background:var(--content)}._hh_158b4_63{background:#fff;display:block;flex:1 1;font-size:14px;line-height:35px;font-weight:700;text-align:center;color:#1f253d;border-bottom:1px solid #ddd;position:relative}._sort_1yrvt_1{text-align:center;position:absolute;top:0;right:0}._sort_1yrvt_1 i{flex:0 1 35px;text-align:center;font-size:16px;line-height:35px;cursor:pointer;width:30px;display:inline-block}
|
|
2
|
-
`,document.head.appendChild(U);let C={};const x={}
|
|
1
|
+
(function(h,g){typeof exports=="object"&&typeof module<"u"?g(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],g):(h=typeof globalThis<"u"?globalThis:h||self,g((h.elCRM=h.elCRM||{},h.elCRM.components={}),h.React))})(this,function(h,g){"use strict";var Eo=Object.defineProperty;var Ro=(h,g,U)=>g in h?Eo(h,g,{enumerable:!0,configurable:!0,writable:!0,value:U}):h[g]=U;var Ue=(h,g,U)=>(Ro(h,typeof g!="symbol"?g+"":g,U),U);var U=document.createElement("style");U.textContent=`@charset "UTF-8";._notice_820sc_2{position:absolute;right:20px;top:72px;z-index:1111;font-family:Inter,sans-serif}._notice_820sc_2 ._error_820sc_9{color:#bb2014}._notice_820sc_2 ._success_820sc_12{color:#367738}._notice_820sc_2 ._remark_820sc_15{color:#b77513}._notice_820sc_2 ._copy_820sc_18{color:#3f51b5}._notice_820sc_2 li{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:block;width:300px;height:70px;border-radius:5px;box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017;background:var(--system-bg);overflow:hidden;cursor:pointer;margin:10px 0;transition:all 3s ease 0s;opacity:0}._notice_820sc_2 svg{float:left;width:50px;height:50px;margin:10px;font-size:40px;line-height:51px;text-align:center}._notice_820sc_2 b{width:222px;font-size:17px;font-weight:700;position:absolute;left:70px;display:block;margin-top:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_820sc_2 p{color:var(--system-color);font-size:14px;width:222px;position:absolute;left:70px;display:block;margin-top:37px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._notice_820sc_2 [data-status=show]{opacity:1;transition:1s;animation:_show-notice_820sc_1 1s 1;animation-fill-mode:forwards}._notice_820sc_2 [data-status=hide]{opacity:1;transition:1s;animation:_hide-notice_820sc_1 1s 1;animation-fill-mode:forwards}@keyframes _show-notice_820sc_1{0%{opacity:0}to{opacity:1}}@keyframes _hide-notice_820sc_1{0%{opacity:1}to{opacity:0}}._alerts_1e9y0_1{position:fixed;top:0;bottom:0;left:0;right:0;color:var(--system-color);background:#0000009e;z-index:30;display:flex;flex:1;align-content:center;justify-content:center}._alerts_1e9y0_1 dl{margin:auto;overflow:hidden;width:270px;height:auto;border-radius:12px;border:0;height:fit-content;z-index:1;background:var(--system-bg);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);-webkit-animation:_menuAnimation_1e9y0_1 .4s 0s both;animation:_menuAnimation_1e9y0_1 .4s 0s both;list-style:none;padding-top:20px;font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;box-shadow:0 0 0 1px var(--system-border),0 2px 2px #00000008,0 4px 4px #0000000a,0 10px 8px #0000000d,0 15px 15px #0000000f,0 30px 30px #00000012,0 70px 65px #00000017}._alerts_1e9y0_1 dt{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;text-align:center;text-transform:capitalize;font-weight:600;line-height:22px;margin:0 0 5px;padding:0 20px}._alerts_1e9y0_1 dd{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:13px;margin:0;text-align:center;line-height:16px;padding:0 20px 20px}._alerts_1e9y0_1 ul{border-top:1px solid var(--system-hr);width:100%;display:flex}._alerts_1e9y0_1 button{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:10px;cursor:pointer;text-align:center;font-weight:600;background:#0000;border-radius:0;display:block;width:-webkit-fill-available;-webkit-animation:_menuItemAnimation_1e9y0_1 .2s 0s both;animation:_menuItemAnimation_1e9y0_1 .2s 0s both;font-family:Inter,sans-serif;border:0}._alerts_1e9y0_1 button[color=blue]{color:#1b6ac0}._alerts_1e9y0_1 button[color=red]{color:#c21c0d}._alerts_1e9y0_1 button:hover{background:var(--system-hover)}._alerts_1e9y0_1 ._--body_1e9y0_103{position:fixed;top:0;bottom:0;left:0;right:0}._allert_1e9y0_111 ._--form_1e9y0_111{font-family:-apple-system,BlinkMacSystemFont;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;box-sizing:border-box;font-size:17px;padding:20px;border-bottom:1px solid var(--system-hr)}:root{--primary-light: #8abdff;--primary: #6d5dfc;--primary-dark: #5b0eeb;--white: #fff;--greyLight-1: #e4ebf5;--greyLight-2: #abb6d2;--greyLight-3: #bec8e4;--greyDark: #9baacf;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade)}._white_1iomo_14{--background: #e4ebf5;--shadow: #abb6d2;--shade: #fff;--color: #1f253d;--disabled: #9baacf;--text: #394264;--tinge: #3f51b50a;--inset: inset 2px 2px 2px var(--shadow), inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px var(--shadow), -1px -1px 1px var(--shade)}._black_1iomo_26{--background: #506290;--shadow: #1f253d;--shade: #394264;--color: #fff;--disabled: #29314c;--text: #abb6d2;--tinge: #00000026;--inset: inset 1px 1px 1px #394264, inset -1px -1px 1px #39426470;--outset: 1px 1px 1px #394264, -1px -1px 1px #39426470}[shake=true]{-webkit-animation-name:_shake_1iomo_1;animation-name:_shake_1iomo_1;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@keyframes _shake_1iomo_1{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}[data-color-bg=fff1d6]{--inset: inset 1px 1px 1px #c9c1ac, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #c9c1ac, -1px -1px 1px var(--shade)}[data-color-bg=ffd9d9]{--inset: inset 1px 1px 1px #cdb0b1, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #cdb0b1, -1px -1px 1px var(--shade)}[data-color-bg=daffe5]{--inset: inset 1px 1px 1px #b6d2be, inset -1px -1px 1px var(--shade);--outset: 2px 2px 2px #b6d2be, -1px -1px 1px var(--shade)}._modal_1iomo_73{position:fixed;top:0;left:0;right:0;bottom:0;z-index:10;display:flex}._o_1iomo_83{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000000b8}._w_1iomo_14{box-shadow:5px 7px 18px #000000a8;background:var(--background);position:relative;min-width:300px;margin:auto;border-radius:10px;width:400px;max-height:90%;display:flex;flex-flow:column nowrap}._h_1iomo_106{flex:1;font-size:15px;line-height:35px;font-weight:700;text-align:left;color:var(--color);padding:10px 15px 5px 30px;user-select:none;-webkit-user-select:none;display:flex;z-index:1}._l_1iomo_120{border-radius:10px;font-size:15px;box-shadow:var(--inset);color:var(--color);margin:10px;overflow:hidden;overflow-y:scroll;padding:5px 0}._l_1iomo_120 li{display:flex;margin:0 5px;padding:10px;position:relative}._l_1iomo_120 li:after{content:"";border-bottom:1px solid #ddd;position:absolute;bottom:0;left:5px;right:5px}._l_1iomo_120 li:last-child{border-bottom:0}._l_1iomo_120 li:hover{background:#00000012;cursor:pointer;border-radius:5px}._t_1iomo_158{padding-right:10px}._m_1iomo_73{flex:1}._x_1iomo_166{cursor:pointer;color:#1f253d;opacity:.5;display:flex}._x_1iomo_166 svg{width:20px}._s_1iomo_176{flex:1;overflow-y:scroll}._c_1iomo_181{text-align:center;margin:20px}._f_1iomo_186{padding:0 20px;display:flex;flex-direction:column}._f_1iomo_186 dl{margin:7px 0;flex:1 1;flex-direction:row;display:flex}._f_1iomo_186 dt{padding:7px 10px;color:var(--text);margin-left:7px;flex:0 1 150px}._f_1iomo_186 dd{margin:0;background:var(--tinge);color:var(--color);box-shadow:var(--inset);border-radius:5px;min-height:33px;padding:7px 10px;flex:1 1}._f_1iomo_186 p{margin:auto;width:300px;padding:20px 0 5px;color:#1f253dc7;font-size:15px}._x_1iomo_166:hover{opacity:1}._btn_1iomo_229{min-width:200px;margin:10px auto 20px;opacity:.7;padding:7px 25px;border-radius:5px;box-shadow:var(--outset);display:flex;justify-content:center;cursor:pointer;transition:.3s ease}._g_1iomo_242{display:flex;gap:10px}._c_1iomo_181{margin:10px 7px 20px;opacity:.8;box-shadow:var(--outset);border-radius:10px;padding:20px;flex:1;cursor:pointer}._c_1iomo_181:first-child{margin-left:20px}._c_1iomo_181:last-child{margin-right:20px}._c_1iomo_181:hover{opacity:1;background:var(--tinge)}._c_1iomo_181 i{font-size:70px;margin-bottom:20px;text-align:center;display:block;color:var(--disabled)}._c_1iomo_181 b{text-align:center;display:block;color:var(--color)}._c_1iomo_181 p{text-align:center;font-size:15px;color:var(--text)}._btn_1iomo_229:hover{opacity:1}._modal_1iomo_73._size-a_1iomo_294 ._w_1iomo_14{width:auto}._modal_1iomo_73._size-s_1iomo_298 ._w_1iomo_14{width:400px}._modal_1iomo_73._size-m_1iomo_302 ._w_1iomo_14{width:500px}._modal_1iomo_73._size-l_1iomo_306 ._w_1iomo_14{width:800px}._modal_1iomo_73._size-x_1iomo_310 ._w_1iomo_14{width:1000px}._modal_1iomo_73._size-f_1iomo_314 ._w_1iomo_14{width:100%;max-width:1200px;min-width:910px}._btn_1iomo_229._confirm_1iomo_320{background:#4caf50;color:#fff}._btn_1iomo_229._cancel_1iomo_325{background:#f44336;color:#fff}._btn_1iomo_229._disabled_1iomo_330,._btn_1iomo_229._await_1iomo_337{background:#efefef;color:#000;opacity:1;cursor:default}._m_1iomo_73 big{position:absolute;margin:10px auto 20px;border-radius:5px;box-shadow:var(--outset);display:flex;top:-1px;right:55px}._m_1iomo_73 big i{width:30px;height:30px;text-align:center;margin:3px;line-height:30px;cursor:pointer;border-radius:5px}._m_1iomo_73 big i:hover{box-shadow:var(--inset)}._m_1iomo_73 nav{width:fit-content;height:35px;margin:0 auto;box-shadow:var(--outset);border-radius:5px;display:flex}._m_1iomo_73 span{border-radius:3px;flex:1 1;margin:2px;padding:0 10px;line-height:35px;color:var(--disabled);cursor:pointer}._m_1iomo_73 span._active_1iomo_387{box-shadow:var(--inset);color:var(--color)}._coincidence_1iomo_393{position:fixed;right:20px;bottom:20px;z-index:1111;overflow-y:scroll;max-height:565px;padding-top:90px}._coincidence_1iomo_393 span{display:block;width:300px;border-radius:5px;overflow:hidden;cursor:pointer;margin:10px 0;padding:10px;color:#1f253d}._coincidence_1iomo_393 dl{display:flex;padding:0;margin:5px}._coincidence_1iomo_393 dd{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0;margin:0 10px}menu{border-radius:5px;overflow:hidden;display:flex;flex-direction:column;background:var(--contex);grid-area:m}._payment_1lxfv_1{background:#f44336;height:42px;border-radius:5px;color:#fff;font-weight:700;line-height:42px;margin-top:8px;grid-area:p;text-align:center}._setting_1r0pc_2{width:100%;overflow:auto}._setting_1r0pc_2 nav{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_1r0pc_2 nav ul{display:flex;justify-content:space-between;gap:1px}._setting_1r0pc_2 nav li{flex:1;text-align:center;background:var(--setting-bg);color:var(--setting-color);cursor:pointer;opacity:.7}._setting_1r0pc_2 nav li[tabs-active=true]{opacity:1}._setting_1r0pc_2 fieldset{border:0px;padding:0 10px 5px;margin:25px auto;width:600px}._setting_1r0pc_2 legend{text-transform:uppercase;font-weight:300;font-size:1.3em}._setting_1r0pc_2 ul{margin:10px 0;color:#000;border-radius:8px;overflow:hidden;list-style-type:none;padding:0}._setting_1r0pc_2 li{font-size:20px;line-height:40px}._setting_1r0pc_2 dl{display:flex;margin:0 0 1px;align-items:center;padding-right:9px;background:var(--setting-bg);color:var(--setting-color)}._setting_1r0pc_2 dd{text-align:right;padding-left:15px;position:relative;display:flex;justify-content:center}._setting_1r0pc_2 dt{flex:1;padding:0 15px}._setting_1r0pc_2 article{padding-left:15px;color:var(--setting-bg);font-weight:100;font-size:14px}._setting_1r0pc_2 legend{color:var(--setting-bg);display:flex;justify-content:space-between;width:100%}._setting_1r0pc_2 svg{fill:var(--setting-color);width:15px;margin-left:10px}._setting_1r0pc_2 [data-close]{cursor:pointer;width:10px;height:10px;border-top:3px solid var(--setting-color);border-left:3px solid var(--setting-color);position:absolute;right:10px;top:3px;-webkit-transform:translate(0,-50%) rotate(45deg);-ms-transform:translate(0,-50%) rotate(45deg);transform:translateY(-50%) rotate(45deg)}._setting_1r0pc_2 [data-close=false]{right:10px;top:0;-webkit-transform:translate(0,-50%) rotate(-135deg);-ms-transform:translate(0,-50%) rotate(-135deg);transform:translateY(-50%) rotate(-135deg)}._setting_1r0pc_2 [data-item=accordion]>div{margin-top:1px;background-color:var(--setting-bg)}._setting_1r0pc_2 [role=button]{font-size:13px;border-radius:5px;text-align:center;width:100px;line-height:30px;padding:0;cursor:pointer}._setting_1r0pc_2 [role=button]:hover{background:var(--setting-action)}._setting_1r0pc_2 [role=button-outline]{font-size:14px;border:1px solid;padding:3px 13px;border-radius:6px;cursor:pointer;text-transform:none}._setting_1r0pc_2 [role=button-outline]:hover{background:#00000038}._setting_1r0pc_2 [role=switch]{cursor:pointer;position:relative;width:44px;height:22px;border-radius:50px;vertical-align:text-bottom;transition:all .3s linear;margin:0}._setting_1r0pc_2 [role=switch]:after{content:"";position:absolute;left:4px;width:16px;height:16px;background-color:#fff;border-radius:50%;box-shadow:0 2px 2px #0000003d;transform:translate3d(0,3px,0);transition:all .2s ease-in-out}._setting_1r0pc_2 [role=switch]:before{content:"";position:absolute;left:0;width:42px;height:22px;background-color:#ddd;border-radius:11px;transition:all .25s linear}._setting_1r0pc_2 [role=switch][aria-checked=true]{background-color:#1f253d}._setting_1r0pc_2 [role=switch][aria-checked=true]:before{transform:translate3d(18px,2px,0) scale3d(0,0,0)}._setting_1r0pc_2 [role=switch][aria-checked=true]:after{transform:translate3d(19px,3px,0)}._h_158b4_1{background:var(--content);margin-bottom:2px;border-radius:5px 5px 0 0;line-height:35px;align-items:center;display:flex;height:35px}._t_158b4_11{border-bottom:0;cursor:default;display:block;flex:1;margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px;font-size:14px!important;line-height:35px;font-weight:700;text-align:center;color:var(--label);position:absolute;left:0;right:0;height:35px}._s_158b4_31{display:flex;flex:1;position:relative;overflow:hidden;border-radius:5px;flex-flow:column nowrap}._u_158b4_40{overflow:hidden;border-radius:0 0 5px 5px;background:var(--content);display:block}._o_158b4_47{overflow:hidden;position:relative;border-radius:5px;margin-top:5px;flex:1 1;background:var(--content)}._l_158b4_56{flex:1;overflow:hidden;overflow-y:scroll;background:var(--content)}._hh_158b4_63{background:#fff;display:block;flex:1 1;font-size:14px;line-height:35px;font-weight:700;text-align:center;color:#1f253d;border-bottom:1px solid #ddd;position:relative}._sort_1yrvt_1{text-align:center;position:absolute;top:0;right:0}._sort_1yrvt_1 i{flex:0 1 35px;text-align:center;font-size:16px;line-height:35px;cursor:pointer;width:30px;display:inline-block}
|
|
2
|
+
`,document.head.appendChild(U);let C={};const x={},$={},re={},Ve={},q={};function Dt(e,t){if(C=e,localStorage.getItem("d")){let o=sessionStorage.getItem("f");o?(o=C.deCode(o),x.id=o.id,x.tab=o.tab,x.page=o.page,x.module=o.module,x.time=o.time,x.payment={active:!0},x.module_admin=o.module_admin):(x.id=0,x.tab="",x.page="Main",x.module=x.module||"M05")}else["a","b","c","d","e","m","u","s","q","p"].forEach(o=>localStorage.removeItem(o)),["f"].forEach(o=>sessionStorage.removeItem(o)),x.id=0,x.tab="",x.page="Auth",x.module="M00";return t}function M(){["a","b","c","d","e","m","u","s","q","p"].forEach(e=>localStorage.removeItem(e)),["f"].forEach(e=>sessionStorage.removeItem(e)),window.location.reload()}function At(e){e=e.split("/"),x.page="Main",x.module=e[0],x.tab=e[1],x.id=0,sessionStorage.setItem("f",C.enCode({module:x.module,page:x.page,tab:x.tab,id:x.id,time:new Date().getTime()})),$.page(x.page)}function Zt(e){return localStorage.setItem("d",e)}function Yt(){let e=localStorage.getItem("d");return e!==""&&e!=="undefined"&&e!==null?localStorage.getItem("d"):(M(),!1)}function Wt(e){return localStorage.setItem("a",e)}function Bt(){let e=localStorage.getItem("a");return e!==""&&e!=="undefined"&&e!==null?e:(M(),!1)}function Ut(e){localStorage.setItem("p",C.enCode(e))}function Te(){let e=localStorage.getItem("p");if(e!==""&&e!=="undefined"&&e!==null){let t=C.deCode(e);return t||M(),t}else return M(),!1}function Vt(){const[e,t]=g.useState(Ge()),r=o=>{t(o)};return $.page=r,[e]}function Gt(e){x.page=e,sessionStorage.setItem("f",C.enCode(x)),$.page(e)}function Ge(){return x.page}function Kt(){const[e,t]=g.useState(Ke()),r=o=>{t(o)};return $.module=r,[e]}function Xt(e,t){x.module=e,sessionStorage.setItem("f",C.enCode(x)),t!=="false"&&$.module(e)}function Ke(){return x.module}function Ht(e){const[t,r]=g.useState(he()||e),o=a=>{r(a)};return $.tabs=o,[t]}function Jt(e,t){x.tab=e,sessionStorage.setItem("f",C.enCode(x)),t!=="false"&&$.tabs(e)}function he(){return x.tab}function qt(){const[e,t]=g.useState(x.id),r=o=>{t(o)};return $.id=r,[e]}function Qt(e){$.id=e}function en(e,t){x.id=e,sessionStorage.setItem("f",C.enCode(x)),t!=="false"&&$.id(e)}function tn(){return x.id}function nn(e,t,r){x.module=e,x.id=r,x.tab=t,sessionStorage.setItem("f",C.enCode(x)),$.module(e),$.tabs(t)}function rn(e){re.data=e[0],delete re.data.id,document.body.dataset.theme=re.data.s15,localStorage.setItem("s",C.enCode(re.data))}function on(e,t){re.data[e]=t,localStorage.setItem("s",C.enCode(re.data))}function an(e){let t=localStorage.getItem("s");return t===null?{}:(t=C.deCode(t),t?e!==void 0?t[e]:t:M())}function Xe(e){localStorage.setItem("m",C.enCode({data:e}))}function sn(){let e=localStorage.getItem("m");if(e!==""&&e!=="undefined"&&e!==null){let t=localStorage.getItem("m"),r=C.deCode(t);r||M();const o=(c,l)=>{let f=l+"";for(;f.length<c;)f="0"+f;return f};return r.data.split(",").map(c=>"M"+o(2,c))}else return M(),!1}function ln(e){$.sort=e}function He(e){let t=localStorage.getItem("b");t=t===null?{}:C.deCode(t),t[he()]=e,localStorage.setItem("b",C.enCode(t))}function Ne(){let e=localStorage.getItem("b");return e===null?{}:(e=C.deCode(e),e=e[he()],e=e===void 0?{active:1,sort:"<"}:e,e)}function Je(e){localStorage.setItem("c",C.enCode(e))}function cn(e){let t=localStorage.getItem("c");if(t!==""&&t!=="undefined"&&t!==null){let r=C.deCode(t);return r||M(),e===void 0?r:r[e]}else return M(),!1}function ce(e){q.data=e,localStorage.setItem("q",C.enCode(q.data))}function de(e,t){if(!q.data){let r=localStorage.getItem("q");r&&(q.data=C.deCode(r))}return e===void 0&&t===void 0?q.data:e!==void 0&&t===void 0?q.data[e]:q.data[e][t]}function dn(e){Ve.data=e}function un(e){return Ve.data[e]}function fn(e){x.payment=e}function pn(){return x.payment}function qe(e){localStorage.setItem("u",C.enCode(e))}function mn(){let e=localStorage.getItem("u");if(e!==""&&e!=="undefined"&&e!==null){let t=C.deCode(e);return t||M(),t}else return M(),!1}const ge={setSSID:Zt,getSSID:Yt,getPORT:Te,setPORT:Ut,setAUTH:Wt,getAUTH:Bt,Logaut:M,Start:At,setMenu:Xe,getMenu:sn,useSort:ln,setSort:He,getSort:Ne,setCompany:Je,getCompany:cn,setSelect:ce,getSelect:de,setApi:dn,getApi:un,setPayment:fn,getPayment:pn,setUser:qe,getUser:mn},Qe="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO29ubWVzc2FnZT1hc3luYyB0PT57dHJ5e2xldCBhPWF3YWl0IGZldGNoKGAke3QuZGF0YS5ob3N0fSR7dC5kYXRhLmxpbmt9YCx7bWV0aG9kOiJQT1NUIixoZWFkZXJzOnsiQ29udGVudC10eXBlIjoiYXBwbGljYXRpb24vanNvbjtjaGFyc2V0PXV0Zi04Iixzc2lkOnQuZGF0YS5zc2lkfSxib2R5OkpTT04uc3RyaW5naWZ5KHQuZGF0YS5kYXRhKX0pO3Bvc3RNZXNzYWdlKGF3YWl0IGEuanNvbigpKX1jYXRjaHtwb3N0TWVzc2FnZSh7c3RhdHVzOiJlcnJvciJ9KX19fSkoKTsK",_n=e=>Uint8Array.from(atob(e),t=>t.charCodeAt(0)),et=typeof window<"u"&&window.Blob&&new Blob([_n(Qe)],{type:"text/javascript;charset=utf-8"});function xn(e){let t;try{if(t=et&&(window.URL||window.webkitURL).createObjectURL(et),!t)throw"";const r=new Worker(t,{name:e==null?void 0:e.name});return r.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;base64,"+Qe,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}const V={};function hn(e){return e&&(V.s=e),V.s}function gn(e){return e&&(V.a=e),V.a}function bn(e){return e&&(V.c=e),V.c}function vn(e){return e&&(V.h=e),V.h}const ze={version:{Api:gn,Server:hn,Client:bn},Host:vn};let yn="api.elcrm.online";function wn(e){return"https://"+ge.getPORT().address+"/audio/"+e}function tt(e,t={},r=ge.getAUTH()){return new Promise(o=>{const a=new xn;a.onmessage=c=>{o(c.data),a.terminate()},a.postMessage({link:e,data:t,ssid:r,host:ze.Host()||`https://${yn}/`})})}async function kn(e,t,r={}){try{return await(await tt("https://"+e+"/"+t,{method:"POST",headers:{"Content-type":"application/json;charset=utf-8",ssid:ge.getAUTH()||""},body:JSON.stringify(r)})).json()}catch{return{status:"error"}}}const Sn={audio:wn,fetch:tt,remoute:kn};var Pe={exports:{}},ue={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var nt;function jn(){if(nt)return ue;nt=1;var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(f,u,p){var m,v={},S=null,O=null;p!==void 0&&(S=""+p),u.key!==void 0&&(S=""+u.key),u.ref!==void 0&&(O=u.ref);for(m in u)o.call(u,m)&&!c.hasOwnProperty(m)&&(v[m]=u[m]);if(f&&f.defaultProps)for(m in u=f.defaultProps,u)v[m]===void 0&&(v[m]=u[m]);return{$$typeof:t,type:f,key:S,ref:O,props:v,_owner:a.current}}return ue.Fragment=r,ue.jsx=l,ue.jsxs=l,ue}var fe={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -15,14 +15,14 @@
|
|
|
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
|
|
19
|
-
|
|
18
|
+
*/var rt;function Cn(){return rt||(rt=1,process.env.NODE_ENV!=="production"&&function(){var e=g,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),f=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),O=Symbol.for("react.offscreen"),D=Symbol.iterator,E="@@iterator";function R(n){if(n===null||typeof n!="object")return null;var s=D&&n[D]||n[E];return typeof s=="function"?s:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(n){{for(var s=arguments.length,d=new Array(s>1?s-1:0),_=1;_<s;_++)d[_-1]=arguments[_];Z("error",n,d)}}function Z(n,s,d){{var _=T.ReactDebugCurrentFrame,k=_.getStackAddendum();k!==""&&(s+="%s",d=d.concat([k]));var j=d.map(function(y){return String(y)});j.unshift("Warning: "+s),Function.prototype.apply.call(console[n],console,j)}}var J=!1,te=!1,ae=!1,Se=!1,qr=!1,_t;_t=Symbol.for("react.module.reference");function Qr(n){return!!(typeof n=="string"||typeof n=="function"||n===o||n===c||qr||n===a||n===p||n===m||Se||n===O||J||te||ae||typeof n=="object"&&n!==null&&(n.$$typeof===S||n.$$typeof===v||n.$$typeof===l||n.$$typeof===f||n.$$typeof===u||n.$$typeof===_t||n.getModuleId!==void 0))}function eo(n,s,d){var _=n.displayName;if(_)return _;var k=s.displayName||s.name||"";return k!==""?d+"("+k+")":d}function xt(n){return n.displayName||"Context"}function W(n){if(n==null)return null;if(typeof n.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case o:return"Fragment";case r:return"Portal";case c:return"Profiler";case a:return"StrictMode";case p:return"Suspense";case m:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case f:var s=n;return xt(s)+".Consumer";case l:var d=n;return xt(d._context)+".Provider";case u:return eo(n,n.render,"ForwardRef");case v:var _=n.displayName||null;return _!==null?_:W(n.type)||"Memo";case S:{var k=n,j=k._payload,y=k._init;try{return W(y(j))}catch{return null}}}return null}var ne=Object.assign,_e=0,ht,gt,bt,vt,yt,wt,kt;function St(){}St.__reactDisabledLog=!0;function to(){{if(_e===0){ht=console.log,gt=console.info,bt=console.warn,vt=console.error,yt=console.group,wt=console.groupCollapsed,kt=console.groupEnd;var n={configurable:!0,enumerable:!0,value:St,writable:!0};Object.defineProperties(console,{info:n,log:n,warn:n,error:n,group:n,groupCollapsed:n,groupEnd:n})}_e++}}function no(){{if(_e--,_e===0){var n={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ne({},n,{value:ht}),info:ne({},n,{value:gt}),warn:ne({},n,{value:bt}),error:ne({},n,{value:vt}),group:ne({},n,{value:yt}),groupCollapsed:ne({},n,{value:wt}),groupEnd:ne({},n,{value:kt})})}_e<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Me=T.ReactCurrentDispatcher,Le;function je(n,s,d){{if(Le===void 0)try{throw Error()}catch(k){var _=k.stack.trim().match(/\n( *(at )?)/);Le=_&&_[1]||""}return`
|
|
19
|
+
`+Le+n}}var De=!1,Ce;{var ro=typeof WeakMap=="function"?WeakMap:Map;Ce=new ro}function jt(n,s){if(!n||De)return"";{var d=Ce.get(n);if(d!==void 0)return d}var _;De=!0;var k=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=Me.current,Me.current=null,to();try{if(s){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(B){_=B}Reflect.construct(n,[],y)}else{try{y.call()}catch(B){_=B}n.call(y.prototype)}}else{try{throw Error()}catch(B){_=B}n()}}catch(B){if(B&&_&&typeof B.stack=="string"){for(var b=B.stack.split(`
|
|
20
20
|
`),F=_.stack.split(`
|
|
21
21
|
`),N=b.length-1,z=F.length-1;N>=1&&z>=0&&b[N]!==F[z];)z--;for(;N>=1&&z>=0;N--,z--)if(b[N]!==F[z]){if(N!==1||z!==1)do if(N--,z--,z<0||b[N]!==F[z]){var A=`
|
|
22
|
-
`+b[N].replace(" at new "," at ");return n.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",n.displayName)),typeof n=="function"&&Ce.set(n,A),A}while(N>=1&&z>=0);break}}}finally{
|
|
22
|
+
`+b[N].replace(" at new "," at ");return n.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",n.displayName)),typeof n=="function"&&Ce.set(n,A),A}while(N>=1&&z>=0);break}}}finally{De=!1,Me.current=j,no(),Error.prepareStackTrace=k}var le=n?n.displayName||n.name:"",Lt=le?je(le):"";return typeof n=="function"&&Ce.set(n,Lt),Lt}function oo(n,s,d){return jt(n,!1)}function io(n){var s=n.prototype;return!!(s&&s.isReactComponent)}function Ee(n,s,d){if(n==null)return"";if(typeof n=="function")return jt(n,io(n));if(typeof n=="string")return je(n);switch(n){case p:return je("Suspense");case m:return je("SuspenseList")}if(typeof n=="object")switch(n.$$typeof){case u:return oo(n.render);case v:return Ee(n.type,s,d);case S:{var _=n,k=_._payload,j=_._init;try{return Ee(j(k),s,d)}catch{}}}return""}var Re=Object.prototype.hasOwnProperty,Ct={},Et=T.ReactDebugCurrentFrame;function Ie(n){if(n){var s=n._owner,d=Ee(n.type,n._source,s?s.type:null);Et.setExtraStackFrame(d)}else Et.setExtraStackFrame(null)}function ao(n,s,d,_,k){{var j=Function.call.bind(Re);for(var y in n)if(j(n,y)){var b=void 0;try{if(typeof n[y]!="function"){var F=Error((_||"React class")+": "+d+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw F.name="Invariant Violation",F}b=n[y](s,y,_,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(N){b=N}b&&!(b instanceof Error)&&(Ie(k),w("%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).",_||"React class",d,y,typeof b),Ie(null)),b instanceof Error&&!(b.message in Ct)&&(Ct[b.message]=!0,Ie(k),w("Failed %s type: %s",d,b.message),Ie(null))}}}var so=Array.isArray;function Ae(n){return so(n)}function lo(n){{var s=typeof Symbol=="function"&&Symbol.toStringTag,d=s&&n[Symbol.toStringTag]||n.constructor.name||"Object";return d}}function co(n){try{return Rt(n),!1}catch{return!0}}function Rt(n){return""+n}function It(n){if(co(n))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",lo(n)),Rt(n)}var xe=T.ReactCurrentOwner,uo={key:!0,ref:!0,__self:!0,__source:!0},Tt,Nt,Ze;Ze={};function fo(n){if(Re.call(n,"ref")){var s=Object.getOwnPropertyDescriptor(n,"ref").get;if(s&&s.isReactWarning)return!1}return n.ref!==void 0}function po(n){if(Re.call(n,"key")){var s=Object.getOwnPropertyDescriptor(n,"key").get;if(s&&s.isReactWarning)return!1}return n.key!==void 0}function mo(n,s){if(typeof n.ref=="string"&&xe.current&&s&&xe.current.stateNode!==s){var d=W(xe.current.type);Ze[d]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W(xe.current.type),n.ref),Ze[d]=!0)}}function _o(n,s){{var d=function(){Tt||(Tt=!0,w("%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)",s))};d.isReactWarning=!0,Object.defineProperty(n,"key",{get:d,configurable:!0})}}function xo(n,s){{var d=function(){Nt||(Nt=!0,w("%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)",s))};d.isReactWarning=!0,Object.defineProperty(n,"ref",{get:d,configurable:!0})}}var ho=function(n,s,d,_,k,j,y){var b={$$typeof:t,type:n,key:s,ref:d,props:y,_owner:j};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function go(n,s,d,_,k){{var j,y={},b=null,F=null;d!==void 0&&(It(d),b=""+d),po(s)&&(It(s.key),b=""+s.key),fo(s)&&(F=s.ref,mo(s,k));for(j in s)Re.call(s,j)&&!uo.hasOwnProperty(j)&&(y[j]=s[j]);if(n&&n.defaultProps){var N=n.defaultProps;for(j in N)y[j]===void 0&&(y[j]=N[j])}if(b||F){var z=typeof n=="function"?n.displayName||n.name||"Unknown":n;b&&_o(y,z),F&&xo(y,z)}return ho(n,b,F,k,_,xe.current,y)}}var Ye=T.ReactCurrentOwner,zt=T.ReactDebugCurrentFrame;function se(n){if(n){var s=n._owner,d=Ee(n.type,n._source,s?s.type:null);zt.setExtraStackFrame(d)}else zt.setExtraStackFrame(null)}var We;We=!1;function Be(n){return typeof n=="object"&&n!==null&&n.$$typeof===t}function Pt(){{if(Ye.current){var n=W(Ye.current.type);if(n)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+n+"`."}return""}}function
|
|
24
|
+
Check the render method of \``+n+"`."}return""}}function bo(n){{if(n!==void 0){var s=n.fileName.replace(/^.*[\\\/]/,""),d=n.lineNumber;return`
|
|
25
25
|
|
|
26
|
-
Check your code at `+s+":"+d+"."}return""}}var Ot={};function
|
|
26
|
+
Check your code at `+s+":"+d+"."}return""}}var Ot={};function vo(n){{var s=Pt();if(!s){var d=typeof n=="string"?n:n.displayName||n.name;d&&(s=`
|
|
27
27
|
|
|
28
|
-
Check the top-level render call using <`+d+">.")}return s}}function Ft(n,s){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var d=go(s);if(Ot[d])return;Ot[d]=!0;var _="";n&&n._owner&&n._owner!==Ze.current&&(_=" It was passed a child from "+W(n._owner.type)+"."),ae(n),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,_),ae(null)}}function Mt(n,s){{if(typeof n!="object")return;if(De(n))for(var d=0;d<n.length;d++){var _=n[d];We(_)&&Ft(_,s)}else if(We(n))n._store&&(n._store.validated=!0);else if(n){var k=R(n);if(typeof k=="function"&&k!==n.entries)for(var j=k.call(n),y;!(y=j.next()).done;)We(y.value)&&Ft(y.value,s)}}}function bo(n){{var s=n.type;if(s==null||typeof s=="string")return;var d;if(typeof s=="function")d=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===u||s.$$typeof===v))d=s.propTypes;else return;if(d){var _=W(s);oo(d,n.props,"prop",_,n)}else if(s.PropTypes!==void 0&&!Ye){Ye=!0;var k=W(s);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function vo(n){{for(var s=Object.keys(n.props),d=0;d<s.length;d++){var _=s[d];if(_!=="children"&&_!=="key"){ae(n),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),ae(null);break}}n.ref!==null&&(ae(n),w("Invalid attribute `ref` supplied to `React.Fragment`."),ae(null))}}function $t(n,s,d,_,k,j){{var y=Hr(n);if(!y){var b="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(b+=" 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 F=ho(k);F?b+=F:b+=Pt();var N;n===null?N="null":De(n)?N="array":n!==void 0&&n.$$typeof===t?(N="<"+(W(n.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):N=typeof n,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,b)}var z=xo(n,s,d,k,j);if(z==null)return z;if(y){var A=s.children;if(A!==void 0)if(_)if(De(A)){for(var se=0;se<A.length;se++)Mt(A[se],n);Object.freeze&&Object.freeze(A)}else w("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 Mt(A,n)}return n===o?vo(z):bo(z),z}}function yo(n,s,d){return $t(n,s,d,!0)}function wo(n,s,d){return $t(n,s,d,!1)}var ko=wo,So=yo;ue.Fragment=o,ue.jsx=ko,ue.jsxs=So}()),ue}process.env.NODE_ENV==="production"?ze.exports=yn():ze.exports=wn();var i=ze.exports;const kn={notice:"_notice_820sc_2",error:"_error_820sc_9",success:"_success_820sc_12",remark:"_remark_820sc_15",copy:"_copy_820sc_18","show-notice":"_show-notice_820sc_1","hide-notice":"_hide-notice_820sc_1"};let V={};function Sn(){let[e,t]=g.useState([]);return V.set=r=>{t([...e,r])},V.del=r=>{t(e.filter(o=>o.key!==r))},e.length===0?"":i.jsx("ul",{className:kn.notice,children:e.map(r=>r.item)})}function fe({data:e}){let[t,r]=g.useState("show");g.useEffect(()=>{setTimeout(function(){r("hide")},1800),setTimeout(function(){V.del(e.key)},2500)},[e.key]);let o,a;switch(e.type){case"error":o=i.jsx(q.error,{}),a="Ошибка:";break;case"success":o=i.jsx(q.success,{}),a="Информация:";break;case"copy":o=i.jsx(q.success,{}),a="Копирование:";break;case"remark":o=i.jsx(q.success,{}),a="Подсказка:";break;default:o=i.jsx(q.success,{}),a="Предупреждение:";break}return i.jsxs("li",{className:"item "+e.type,"data-status":t,children:[o,i.jsx("b",{children:a}),i.jsx("p",{children:e.text})]})}function jn(e){let t=Date.now(),r={key:t,...e};V.set({item:i.jsx(fe,{data:r},t),key:t})}function Cn(e){let t=Date.now(),r={key:t,text:e,type:"error"};V.set({item:i.jsx(fe,{data:r},t),key:t})}function En(e){let t=Date.now(),r={key:t,text:e,type:"success"};V.set({item:i.jsx(fe,{data:r},t),key:t})}function Rn(e){let t=Date.now(),r={key:t,text:e,type:"remark"};V.set({item:i.jsx(fe,{data:r},t),key:t})}function In(e){let t=Date.now(),r={key:t,text:e,type:"copy"};V.set({item:i.jsx(fe,{data:r},t),key:t})}const q={};q.error=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[i.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),i.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),q.success=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[i.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),i.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const Tn={alerts:"_alerts_1e9y0_1",menuAnimation:"_menuAnimation_1e9y0_1",menuItemAnimation:"_menuItemAnimation_1e9y0_1","--body":"_--body_1e9y0_103",allert:"_allert_1e9y0_111","--form":"_--form_1e9y0_111"};let pe={};function Nn(){let[e,t]=g.useState("");return pe.set=r=>t(r),pe.del=()=>t(""),i.jsx(i.Fragment,{children:e})}const zn=({data:e,callback:t})=>(e.button=e.button===void 0?"Подтвердить":e.button,i.jsxs("div",{className:Tn.alerts,children:[i.jsxs("dl",{children:[i.jsx("dt",{children:e.title}),i.jsx("dd",{children:e.text}),i.jsx("ul",{children:i.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),pe.del()},children:e.button})})]}),i.jsx("div",{className:"--body",onClick:pe.del})]}));function Pn(e,t){pe.set(i.jsx(zn,{data:e,callback:t}))}function On({children:e}){return i.jsx("div",{className:"l",children:i.jsx("ul",{children:e})})}function Fn({children:e}){return i.jsx("div",{className:"s",children:e})}const rt=({children:e,disabled:t,label:r,onClick:o})=>{const a=c=>{t||o&&o(c)};return i.jsx("button",{disabled:t,onClick:a,children:r})},G={white:"_white_1iomo_14",black:"_black_1iomo_26",shake:"_shake_1iomo_1",modal:"_modal_1iomo_73",o:"_o_1iomo_83",w:"_w_1iomo_14",h:"_h_1iomo_106",l:"_l_1iomo_120",t:"_t_1iomo_158",m:"_m_1iomo_73",x:"_x_1iomo_166",s:"_s_1iomo_176",c:"_c_1iomo_181",f:"_f_1iomo_186",btn:"_btn_1iomo_229",g:"_g_1iomo_242","size-a":"_size-a_1iomo_294","size-s":"_size-s_1iomo_298","size-m":"_size-m_1iomo_302","size-l":"_size-l_1iomo_306","size-x":"_size-x_1iomo_310","size-f":"_size-f_1iomo_314",confirm:"_confirm_1iomo_320",cancel:"_cancel_1iomo_325",disabled:"_disabled_1iomo_330",await:"_await_1iomo_337",active:"_active_1iomo_387",coincidence:"_coincidence_1iomo_393"};let re={};const Mn=({config:e})=>{let[t,r]=g.useState([]);return re.x=()=>{r([])},re.config=e,re.add=o=>{r([...t,o])},i.jsx(i.Fragment,{children:t.map(o=>o)})},$n=({children:e,title:t,button:r,tabs:o,size:a="m",menu:c})=>{const[l,f]=g.useState(!0),u=g.useRef(),p=v=>{if(r&&r.onClick)return r.onClick({closed:f,disabled:v})},m=()=>{u.current.setAttribute("shake",!0),setTimeout(()=>{u.current.setAttribute("shake",!1)},1e3)};return i.jsx(i.Fragment,{children:l?i.jsxs("div",{className:`${G.modal} ${G.white}`,children:[i.jsx("div",{className:G.o,onClick:m}),i.jsxs("div",{className:G.w,ref:u,children:[i.jsxs("div",{className:G.h,children:[i.jsx("div",{className:G.t,children:t}),i.jsxs("div",{className:G.m,children:[o&&i.jsx("nav",{children:o.map((v,S)=>i.jsx("span",{onClick:v.onClick,className:v.active?"active":"",children:v.name},S))}),c]}),i.jsx("div",{className:G.x,onClick:()=>{f(!1)},children:i.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:i.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),e,r!==void 0?i.jsx(rt,{label:String(r.name),onClick:p}):""]})]}):""})},Ln=e=>{re.add(i.jsx(Dn,{children:e},String(Date.now())))},Dn=({children:e})=>i.jsx(i.Fragment,{children:e}),ot={List:On,Scroll:Fn,Init:Mn,Main:$n,Add:Ln,Icon:({type:e,name:t,params:r})=>{let[o,a]=g.useState(null);return g.useEffect(()=>{re.config(e,t,r,a)},[r.id]),i.jsx(i.Fragment,{children:o})},Open:(e,t,r)=>{re.config(e,t,r)}},it=({children:e,config:t,crypto:r,...o})=>Dt(r,i.jsxs(i.Fragment,{children:[i.jsx(ot.Init,{config:t.modal}),i.jsx(Sn,{}),i.jsx(Nn,{}),e]})),An=({children:e,...t})=>i.jsx("menu",{children:e}),Zn=({children:e,...t})=>i.jsxs("header",{children:["xz",e]}),Yn={payment:"_payment_1lxfv_1"};function Wn(){let[e,t]=g.useState({});return!e.active&&!e.payment?"":i.jsx("div",{className:Yn.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const Bn=({children:e,...t})=>{let r={};return r.enCode=o=>JSON.stringify(o).toString(),r.deCode=o=>JSON.parse(o),i.jsxs("div",{className:"app",children:[i.jsx(Wn,{}),i.jsx(An,{}),i.jsx(Zn,{}),i.jsx(it,{config:{modal:{}},crypto:r}),e]})},at=({list:e,onClick:t,active:r,size:o,view:a})=>i.jsx("nav",{children:i.jsx("ul",{className:[o,a].join(" "),children:e.map(c=>i.jsx(Un,{onClick:t,active:r,label:c.label,link:c.link},c.link))})}),Un=({onClick:e,label:t,link:r,active:o})=>i.jsx("li",{"tabs-active":String(o===r),onClick:()=>e(r),children:t});at.defaultProps={size:"M",view:"H"};const Vn=({title:e="",button:t,description:r="",children:o})=>i.jsxs("fieldset",{children:[e&&i.jsxs("legend",{children:[e,t&&i.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),i.jsx("ul",{children:o}),r&&i.jsx("article",{children:r})]}),Gn={setting:"_setting_1r0pc_2"},Kn=({children:e})=>i.jsx("div",{className:Gn.setting,children:e}),Xn=({label:e,children:t})=>{let[r,o]=g.useState(!1);return i.jsxs("li",{"data-item":"accordion",children:[i.jsxs("dl",{onClick:()=>o(!r),children:[i.jsx("dt",{children:e}),i.jsx("dd",{children:i.jsx("div",{"data-close":String(r)})})]}),r&&i.jsx("div",{children:t})]})},Jn=({label:e,onClick:t,button:r})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{role:"button",onClick:()=>t(),children:r})]})}),st={Switch:({active:e,onClick:t})=>(e=typeof e=="number"?!!e:e,i.jsx("div",{role:"switch",onClick:()=>{t()},"aria-checked":e?"true":"false"}))},Hn={Accordion:Xn,Button:Jn,Switch:({label:e,onClick:t,active:r})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{children:i.jsx(st.Switch,{onClick:t,active:r})})]})}),Info:({label:e,info:t})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{role:"info",children:t})]})}),Select:({label:e,active:t,options:r})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{role:"info",children:t})]})}),Component:({label:e,children:t})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{children:t})]})}),Node:({label:e,children:t})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{children:t})]})})};function lt({list:e,onClick:t,active:r,size:o,view:a}){return i.jsx("nav",{children:i.jsx("ul",{className:[o,a].join(" "),children:e.map(c=>i.jsx(qn,{onClick:t,active:r,label:c.label,link:c.link},c.link))})})}const qn=({onClick:e,label:t,link:r,active:o})=>i.jsx("li",{"tabs-active":String(o===r),onClick:()=>e(r),children:t});lt.defaultProps={size:"M",view:"H"};const Qn={Section:Vn,Main:Kn,Item:Hn,Tabs:lt},Q={h:"_h_158b4_1",t:"_t_158b4_11",s:"_s_158b4_31",u:"_u_158b4_40",o:"_o_158b4_47",l:"_l_158b4_56",hh:"_hh_158b4_63"},ct=({title:e,children:t})=>i.jsxs("div",{className:Q.h,children:[i.jsx("div",{className:Q.t,children:e}),t]}),er=({children:e,title:t})=>i.jsxs("div",{className:Q.o,children:[t&&i.jsx("div",{className:Q.hh,children:t}),e]}),tr=({children:e})=>i.jsx("div",{className:Q.u,children:e}),dt=({children:e})=>i.jsx("div",{className:Q.s,children:e}),ut=({children:e,...t})=>i.jsx("div",{className:Q.l,children:e}),nr={Header:ct,Section:dt,List:ut,U:tr,L:ut,O:er,S:dt,H:ct},rr={Send:jn,Error:Cn,Remark:Rn,Success:En,Copy:In},or={Send:Pn};function ir(){return i.jsx("svg",{viewBox:"0 0 462.86 359.96",children:i.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const ar={Logo:ir},ge={Path:nn,setPage:Gt,getPage:Ve,usePage:Vt,setModule:Xt,getModule:Ge,useModule:Kt,setTabs:Ht,getTabs:xe,useTabs:Jt,useId:qt,setId:en,subId:Qt,getId:tn},sr={sort:"_sort_1yrvt_1"};let be={};function lr(e,t){switch(t.type){case"active":let r="<";return e.active===t.data&&(r=e.sort==="<"?">":"<"),be.get({active:t.data,sort:r},!1),Xe({active:t.data,sort:r}),{...e,active:t.data,sort:r};default:throw new Error}}function cr(){const[e,t]=g.useReducer(lr,Ne()===void 0?{active:1,sort:"<"}:Ne());return i.jsxs("div",{className:sr.sort,children:[i.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),i.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),i.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function dr(e){be.get=e}function ur(e){be.set(e)}function fr(e,t,r){let o=1,a=0,c={},l=50;c[o]=[];let f={},u="s1a";switch(f.s1a=(p,m)=>m.s1-p.s1,f.s1d=(p,m)=>p.s1-m.s1,f.s2a=(p,m)=>p.s2-m.s2,f.s2d=(p,m)=>m.s2-p.s2,f.s3a=(p,m)=>p.s3.localeCompare(m.s3),f.s3d=(p,m)=>m.s3.localeCompare(p.s3),r.active){case 1:u=r.sort===">"?"s1d":"s1a";break;case 2:u=r.sort===">"?"s2d":"s2a";break;case 3:u=r.sort===">"?"s3d":"s3a";break}return t.sort(f[u]).forEach(p=>{a++,a<=l||(o++,a=1,c[o]=[]),c[o].push(e[p.id])}),{data:c}}function pr(e){be.count(e)}const mr={Init:cr,useValue:dr,Set:ur,Run:fr,Count:pr};function _r(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let r={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:" ",_:" "};for(const o in r)t=t.replace(o,r[o]);return t}function xr(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],r=new Date(e);return{day:(""+r.getFullYear()).slice(-2)+""+("0"+(r.getMonth()+1)).slice(-2)+("0"+r.getDate()).slice(-2),name:r.getDate()+" "+t[r.getMonth()]}}const hr=e=>{function t(Z,J){var ee,Se,ie;Z=Z??"",J=J??1;for(var ee=[],ie=0,Se=Z.length;ie<Se;)ee.push(Z.slice(ie,ie+=J));return ee}function r(Z,J){var ee=[2,0,1,1,1,2];return J[Z>4&&Z<20?2:ee[Math.min(Z,5)]]}var o={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},a,c,l,f,R,u,p,E,m,v,S,O;m=parseFloat(e).toFixed(2).split("."),u=m[0],f=m[1];var D=12-u.length;if(D<0)return!1;for(var E=[];D--;)E.push("0");u=E.join("")+u;var R=[];if(u>0){v=t(u,3);for(var T=-1;T<v.length;T++)if(p=v[T],p>0&&(S=t(p,1),a=parseInt(S[0]),c=parseInt(S[1]),l=parseInt(S[2]),R.push(o.a100[a-1]),O=T+1==3?"a2":"a1",c>1?R.push(o.a20[c-2]+(l>0?" "+o[O][l-1]:"")):R.push(c>0?o.a10[l]:o[O][l-1]),v.length>T+1)){var w=o["u"+(T+1)];R.push(r(p,w))}}else R.push(o.null);return R.push(r(u,o.ur)),R.push(f+" "+r(f,o.uc)),R.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function gr(e){let t=-1,r=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do e=e/1024,t++;while(e>1024);return Math.max(e,.1).toFixed(1)+r[t]}function br(e){let t={};return t["application/atom+xml"]="atom",t["application/json"]="json",t["application/javascript"]="js",t["application/ogg"]="ogg",t["application/pdf"]="pdf",t["application/soap+xml"]="soap",t["application/font-woff"]="woff",t["application/xhtml+xml"]="xml",t["application/xml-dtd"]="dtd",t["application/xop+xml"]="xop",t["application/zip"]="zip",t["application/gzip"]="gzip",t["application/x-bittorrent"]="bittorrent",t["application/x-tex"]="tex",t["application/xml"]="xml",t["application/msword"]="doc",t["image/svg+xml"]="svg",t[e]}function vr(e,t,r,o){let a={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var l in this.rules)for(var f in this.rules[l])for(var u=0,p=this.rules[l][f].length;u<p;u++)this.rules[l][f][u]=this.rule(this.rules[l][f][u])},rule:function(l){var f=l.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return f?{sex:f[1],test:f[2].split(","),mods:[f[3],f[4],f[5],f[6],f[7]]}:!1},word:function(l,f,u,p){if(p===this.gcaseNom)return l;if(l.match(/[-]/)){for(var m=l.split("-"),v=0,S=m.length;v<S;v++)m[v]=this.word(m[v],f,u,p);return m.join("-")}if(l.match(/^[А-ЯЁ]\.?$/i))return l;this.init();var O=this.rules[u];let D;return O.exceptions&&(D=this.pick(l,f,p,O.exceptions,!0),D)?D:(D=this.pick(l,f,p,O.suffixes,!1),D||l)},pick:function(l,f,u,p,m){let v=l.toLowerCase();for(var S=0,O=p.length;S<O;S++)if(this.ruleMatch(v,f,p[S],m))return this.applyMod(l,u,p[S]);return!1},ruleMatch:function(l,f,u,p){if(u.sex===this.sexM&&f===this.sexF||u.sex===this.sexF&&f!==this.sexF)return!1;for(var m=0,v=u.test.length;m<v;m++){var S=p?l:l.substr(Math.max(l.length-u.test[m].length,0));if(S===u.test[m])return!0}return!1},applyMod:function(l,f,u){let p;switch(f){case this.gcaseNom:p=".";break;case this.gcaseGen:p=u.mods[0];break;case this.gcaseDat:p=u.mods[1];break;case this.gcaseAcc:p=u.mods[2];break;case this.gcaseIns:p=u.mods[3];break;case this.gcasePos:p=u.mods[4];break}for(var m=0,v=p.length;m<v;m++){var S=p.substr(m,1);switch(S){case".":break;case"-":l=l.substr(0,l.length-1);break;default:l+=S}}return l},getSex:()=>{if(a.mn.length>2)switch(a.mn.substr(a.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:l=>((a.fullNameSurnameLast?"":a.lastName(l)+" ")+a.firstName(l)+" "+a.middleName(l)+(a.fullNameSurnameLast?" "+a.lastName(l):"")).replace(/^ +| +$/g,""),lastName:l=>a.word(a.ln,a.sex,"lastName",l),firstName:l=>a.word(a.fn,a.sex,"firstName",l),middleName:l=>a.word(a.mn,a.sex,"middleName",l)};if(typeof t>"u"){var c=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!c)return"Cannot parse supplied name";c[5]&&c[3].match(/(ич|на)$/)&&!c[5].match(/(ич|на)$/)?(e=c[5],t=c[1],r=c[3],a.fullNameSurnameLast=!0):(e=c[1],t=c[3],r=c[5])}return a.ln=e,a.fn=t||"",a.mn=r||"",a.sex=o||a.getSex(),a}function yr(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function wr(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function kr(e){return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function Sr(e,t){let r=t+"";for(;r.length<e;)r="0"+r;return r}function jr(e,t,r){let o=t/e*r;return(typeof o!="number"||o===1/0)&&(o=0),parseFloat(o).toFixed(1)}function Cr(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Er={Date:_r,MoneyString:hr,DateSort:xr,Size:gr,TypeFiles:br,Cases:vr,Initials:yr,Month:wr,Money:kr,Number:Sr,Percent:jr,CapitalizeFirstLetter:Cr},Pe={};function Rr(e,t){Pe[e]=t}function Ir(e,t){Pe[e]!==void 0&&Pe[e](t)}const K={};function Tr(e,t){const[r,o]=g.useState(t);return g.useEffect(()=>{if(K[e])return K[e].push(o);K[e]=[o]},[]),[r]}function Nr(e,t){if(K[e])return K[e].push(t);K[e]=[t]}function zr(e,t){K[e]&&K[e].forEach(r=>r(t))}const Pr={setListener:Ir,useListener:Rr,setEmitter:zr,useEmitter:Tr,subEmitter:Nr},ve={},ft={};function Or(e){const[t,r]=g.useState({}),o=async a=>{r(Object.keys(ve).reduce((c,l)=>(c?c[l]=ve[l].all:c={},c),{}))};return g.useEffect(()=>{e.forEach(a=>ve[a]={all:0}),ft.menu=o,o()},[e]),t}function Fr(e,t){switch(typeof t){case"number":ve[e].all+=t,ft.menu();break}}const Mr={useMenu:Or,setUpdate:Fr},ye={};function $r(e){return e&&(ye.s=e),ye.s}function Lr(e){return e&&(ye.a=e),ye.a}const pt={version:{Api:Lr,Server:$r}},Dr="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function Ar(e){return new SharedWorker("data:text/javascript;base64,"+Dr,{name:e==null?void 0:e.name})}let L={},P={},we=["filter","online","users","company","select","setting","info","job"];const Zr=()=>{const[e,t]=g.useState(!1),[r,o]=g.useState(!1);return[c=>{const l=new Ar;L.laodData=f=>{let u=we.indexOf(f);u>=0&&we.splice(u,1),we.length===0&&t(!0)},L.send=f=>{l.port.postMessage({type:"send",json:f})},l.port.onmessage=f=>{let u=f.data;u.type==="error"&&o(!0),u.type==="true"&&t(!0),u.type==="closed"&&l.port.postMessage({type:"connect",ukey:c,lk:Te()}),we.length!==0&&L.laodData(u.type),P[u.type]&&P[u.type](u)},l.port.postMessage({type:"connect",ukey:c,lk:Te()})},e,r]};P.module=e=>{L[e.listen]!==void 0&&(L[e.listen](e),delete L[e.listen])},P.bell=e=>{L.bell!==void 0&&L.bell(e)},P.info=e=>{let t={};t.db=e.db,t.id=e.data.id,t.job=e.data.job,t.login=e.data.login,t.name=e.data.p02,t.patronymic=e.data.p03,t.surname=e.data.p01,t.email=e.data.email,t.admin=e.data.menu.includes("99"),He(t),Ke(e.data.menu)},P.version=async e=>{pt.version.Server(e.data)},P.online=async e=>{},P.offline=async e=>{},P.chat=e=>{switch(e.data.action){case"new_message":ge.getModule();break;case"view_message":ge.getModule();break;case"write_message":ge.getModule();break}},P.users=e=>{let t={};e.data.forEach(o=>{let a=o.p01+" "+o.p02+" "+o.p03,c=o.p01+" "+o.p02.substring(0,1)+"."+o.p03.substring(0,1)+".",l=o.p01.substring(0,1)+""+o.p02.substring(0,1)+o.p03.substring(0,1);t[o.id]={id:o.id,admin:o.m.includes("99"),ava:JSON.parse(o.a),job:o.j,login:"",online:{time:o.o,status:0},sts:o.s,nameFull:a,name:c,number:l}});let r={...ce(),user:t};le(r)},P.company=e=>{let t={},r={};e.data.forEach(a=>{t[a.id]={s:a.v,n:a.a},r[a.id]=a});let o={...ce(),901:t};Je(r),le(o)},P.api=e=>{let t={};e.data.forEach(r=>{t[r.api]={key:r.key,p01:r.p01,p02:r.p02}})},P.delete=()=>{$()},P.select=e=>{let t={...ce()};e.data.forEach(r=>{t[r.n]=JSON.parse(r.s)}),le(t)},P.job=e=>{let t={...ce()},r={};Object.keys(e.data).forEach(o=>{r[o]={s:1,n:e.data[o]}}),t[1]=r,le(t)},P.setting=e=>{rn(e.data)},P.app=()=>{};const Yr=(e,t)=>{L[e]=t},Wr=(e,t)=>{L[e](t)};function Br(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(r=>{L[t]=o=>{o.error!==void 0?r({error:o.error}):r(o.data),delete L[t]},e={...e,listen:t},e.type="modules",L.send(e)})}const Ur={useConnect:Zr,useListener:Yr,setListener:Wr,Send:Br};let ke=e=>C.enCode(e),mt=e=>C.enCode(e);class Vr{constructor(t="el",r="db"){Be(this,"storeName");Be(this,"_dbp");this.storeName=r,this._dbp=new Promise((o,a)=>{const c=indexedDB.open(t,1);c.onerror=()=>a(c.error),c.onsuccess=()=>o(c.result),c.onupgradeneeded=()=>{c.result.createObjectStore(r)}})}_withIDBStore(t,r){return this._dbp.then(o=>new Promise((a,c)=>{const l=o.transaction(this.storeName,t);l.oncomplete=()=>a(),l.onabort=l.onerror=()=>c(l.error),r(l.objectStore(this.storeName))}))}}let Oe,I={};const oe=()=>(Oe||(Oe=new Vr),Oe),X=(e,t,r=oe())=>r._withIDBStore("readwrite",o=>{I[e]=t,o.put(ke(t),e)}),Y=(e,t=oe())=>I[e]===void 0?new Promise((r,o)=>{let a;t._withIDBStore("readonly",c=>{a=c.get(e)}).then(()=>{if(a.result!==void 0){let c=JSON.parse(mt(a.result));I[e]=c,r(c)}else r({})})}):I[e],Gr=(e,t=oe())=>t._withIDBStore("readwrite",r=>{r.delete(e)}),Fe=(e=oe())=>e._withIDBStore("readwrite",t=>{t.clear()}),Kr={id:async(e,t,r)=>{let o=await Y(t);if(r!==void 0)r({type:"load",base:o});else return o[e]},get:Y,set:X,add:async(e,t,r,o)=>{let a,c;c=await Y(r),c[e.id]=e,await X(r,c),a!==null&&(a=await Y(t),a[e.id]=e.eDate,await X(t,a)),o!==void 0&&o({type:"load",page:a,base:c})},del:Gr,upd:(e,t,r,o=oe())=>{if(I[e]===void 0)return new Promise((a,c)=>{let l;o._withIDBStore("readonly",f=>{l=f.get(e)}).then(()=>{if(l.result!==void 0){let f=JSON.parse(mt(l.result));I[e]=f,I[e][t.id]={...I[e][t.id],...t.data},o.put(ke(I[e]),e),a({})}else a({})})});if(I[e][t.id]!==void 0)return I[e][t.id]={...I[e][t.id],...t.data},r!==void 0&&I[r]!==void 0?I[r][t.id]!==void 0&&(I[r][t.id]=t.data.eDate):I[r]=[],delete I[e][t.id].$_item,delete I[e][t.id].$_send,o._withIDBStore("readwrite",a=>{a.put(ke(I[e]),e),r!==void 0&&a.put(ke(I[r]),r)})},key:(e=oe())=>{const t=[];return e._withIDBStore("readonly",r=>{(r.openKeyCursor||r.openCursor).call(r).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},load:e=>I[e],split:(e,t,r=[],o={})=>{let a=r.length!==0,c=[],l=o.sort,f=Object.keys(o).length!==0,u=Object.keys(o),p=Object.keys(e),m=1,v=[],S={};S[m]=[];let O=E=>{let R="";if(r.forEach(T=>{R+=t[E][T]}),f){let T={};u.forEach(w=>{T[w]=t[E][w]});for(let w in l)t[E][l[w]]===void 0&&(Fe(),location.reload()),w==="s1"&&(T[w]=new Date(t[E][l[w]]).getTime()),w==="s2"&&(T[w]=t[E][l[w]]),w==="s3"&&(T[w]=t[E][l[w]].replace(/[^a-zа-яё]/gi,"").substring(0,1));c.push({id:E,text:R,...T})}else c.push({id:E,text:R})},D=E=>{u.forEach(R=>{R!=="b"&&o[R].list[t[E][R]]!==void 0&&(o[R].list[t[E][R]].count===void 0?o[R].list[t[E][R]].count=1:o[R].list[t[E][R]].count++)})};return p.forEach(E=>{v.push(t[E])}),v.forEach(E=>{E===void 0?(Fe(),location.reload()):(a&&O(E.id),f&&D(E.id))}),{list:S,search:c,filter:o}},clear:Fe,updAll:async(e,t,r,o)=>{let a=await Y(t),c=await Y(r);for(let l in e)c[l]=e[l],a[l]=e[l].eDate;await X(t,a),await X(r,c),o!==void 0&&o({type:"load",page:a,base:c})},delAll:async(e,t,r,o)=>{let a=await Y(t),c=await Y(r);e.forEach(l=>delete a[l]),await X(t,a),o!==void 0&&o({type:"load",page:a,base:c})},delList:async(e,t,r)=>{let o=await Y(t);e.forEach(a=>delete o[a]),await X(t,o)},addList:async(e,t,r)=>{let o=await Y(t);e.forEach(a=>o[a.id]=a.eDate),await X(t,o)}},Xr={setSetting:on,getSetting:an};h.Action=st,h.Alert=or,h.Api=vn,h.Badge=Mr,h.Browser=Bn,h.Button=rt,h.Component=nr,h.DataBase=Kr,h.Event=Pr,h.Format=Er,h.Icon=ar,h.Init=it,h.Modal=ot,h.Notice=rr,h.Router=ge,h.Setting=Qn,h.Sistym=pt,h.Socket=Ur,h.Store=he,h.Tabs=at,h.Triage=mr,h.User=Xr,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|
|
28
|
+
Check the top-level render call using <`+d+">.")}return s}}function Ft(n,s){{if(!n._store||n._store.validated||n.key!=null)return;n._store.validated=!0;var d=vo(s);if(Ot[d])return;Ot[d]=!0;var _="";n&&n._owner&&n._owner!==Ye.current&&(_=" It was passed a child from "+W(n._owner.type)+"."),se(n),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,_),se(null)}}function $t(n,s){{if(typeof n!="object")return;if(Ae(n))for(var d=0;d<n.length;d++){var _=n[d];Be(_)&&Ft(_,s)}else if(Be(n))n._store&&(n._store.validated=!0);else if(n){var k=R(n);if(typeof k=="function"&&k!==n.entries)for(var j=k.call(n),y;!(y=j.next()).done;)Be(y.value)&&Ft(y.value,s)}}}function yo(n){{var s=n.type;if(s==null||typeof s=="string")return;var d;if(typeof s=="function")d=s.propTypes;else if(typeof s=="object"&&(s.$$typeof===u||s.$$typeof===v))d=s.propTypes;else return;if(d){var _=W(s);ao(d,n.props,"prop",_,n)}else if(s.PropTypes!==void 0&&!We){We=!0;var k=W(s);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",k||"Unknown")}typeof s.getDefaultProps=="function"&&!s.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wo(n){{for(var s=Object.keys(n.props),d=0;d<s.length;d++){var _=s[d];if(_!=="children"&&_!=="key"){se(n),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_),se(null);break}}n.ref!==null&&(se(n),w("Invalid attribute `ref` supplied to `React.Fragment`."),se(null))}}function Mt(n,s,d,_,k,j){{var y=Qr(n);if(!y){var b="";(n===void 0||typeof n=="object"&&n!==null&&Object.keys(n).length===0)&&(b+=" 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 F=bo(k);F?b+=F:b+=Pt();var N;n===null?N="null":Ae(n)?N="array":n!==void 0&&n.$$typeof===t?(N="<"+(W(n.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):N=typeof n,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",N,b)}var z=go(n,s,d,k,j);if(z==null)return z;if(y){var A=s.children;if(A!==void 0)if(_)if(Ae(A)){for(var le=0;le<A.length;le++)$t(A[le],n);Object.freeze&&Object.freeze(A)}else w("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 $t(A,n)}return n===o?wo(z):yo(z),z}}function ko(n,s,d){return Mt(n,s,d,!0)}function So(n,s,d){return Mt(n,s,d,!1)}var jo=So,Co=ko;fe.Fragment=o,fe.jsx=jo,fe.jsxs=Co}()),fe}process.env.NODE_ENV==="production"?Pe.exports=jn():Pe.exports=Cn();var i=Pe.exports;const En={notice:"_notice_820sc_2",error:"_error_820sc_9",success:"_success_820sc_12",remark:"_remark_820sc_15",copy:"_copy_820sc_18","show-notice":"_show-notice_820sc_1","hide-notice":"_hide-notice_820sc_1"};let G={};function Rn(){let[e,t]=g.useState([]);return G.set=r=>{t([...e,r])},G.del=r=>{t(e.filter(o=>o.key!==r))},e.length===0?"":i.jsx("ul",{className:En.notice,children:e.map(r=>r.item)})}function pe({data:e}){let[t,r]=g.useState("show");g.useEffect(()=>{setTimeout(function(){r("hide")},1800),setTimeout(function(){G.del(e.key)},2500)},[e.key]);let o,a;switch(e.type){case"error":o=i.jsx(Q.error,{}),a="Ошибка:";break;case"success":o=i.jsx(Q.success,{}),a="Информация:";break;case"copy":o=i.jsx(Q.success,{}),a="Копирование:";break;case"remark":o=i.jsx(Q.success,{}),a="Подсказка:";break;default:o=i.jsx(Q.success,{}),a="Предупреждение:";break}return i.jsxs("li",{className:"item "+e.type,"data-status":t,children:[o,i.jsx("b",{children:a}),i.jsx("p",{children:e.text})]})}function In(e){let t=Date.now(),r={key:t,...e};G.set({item:i.jsx(pe,{data:r},t),key:t})}function Tn(e){let t=Date.now(),r={key:t,text:e,type:"error"};G.set({item:i.jsx(pe,{data:r},t),key:t})}function Nn(e){let t=Date.now(),r={key:t,text:e,type:"success"};G.set({item:i.jsx(pe,{data:r},t),key:t})}function zn(e){let t=Date.now(),r={key:t,text:e,type:"remark"};G.set({item:i.jsx(pe,{data:r},t),key:t})}function Pn(e){let t=Date.now(),r={key:t,text:e,type:"copy"};G.set({item:i.jsx(pe,{data:r},t),key:t})}const Q={};Q.error=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[i.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#bb2014"}),i.jsx("path",{d:"M8.96967 8.96967C9.26256 8.67678 9.73744 8.67678 10.0303 8.96967L12 10.9394L13.9697 8.96969C14.2626 8.6768 14.7374 8.6768 15.0303 8.96969C15.3232 9.26258 15.3232 9.73746 15.0303 10.0303L13.0607 12L15.0303 13.9697C15.3232 14.2625 15.3232 14.7374 15.0303 15.0303C14.7374 15.3232 14.2625 15.3232 13.9696 15.0303L12 13.0607L10.0304 15.0303C9.73746 15.3232 9.26258 15.3232 8.96969 15.0303C8.6768 14.7374 8.6768 14.2626 8.96969 13.9697L10.9394 12L8.96967 10.0303C8.67678 9.73744 8.67678 9.26256 8.96967 8.96967Z",fill:"#fff"})]}),Q.success=()=>i.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",children:[i.jsx("path",{d:"M12 22C7.28595 22 4.92893 22 3.46447 20.5355C2 19.0711 2 16.714 2 12C2 7.28595 2 4.92893 3.46447 3.46447C4.92893 2 7.28595 2 12 2C16.714 2 19.0711 2 20.5355 3.46447C22 4.92893 22 7.28595 22 12C22 16.714 22 19.0711 20.5355 20.5355C19.0711 22 16.714 22 12 22Z",fill:"#367738"}),i.jsx("path",{d:"M16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z",fill:"#fff"})]});const On={alerts:"_alerts_1e9y0_1",menuAnimation:"_menuAnimation_1e9y0_1",menuItemAnimation:"_menuItemAnimation_1e9y0_1","--body":"_--body_1e9y0_103",allert:"_allert_1e9y0_111","--form":"_--form_1e9y0_111"};let me={};function Fn(){let[e,t]=g.useState("");return me.set=r=>t(r),me.del=()=>t(""),i.jsx(i.Fragment,{children:e})}const $n=({data:e,callback:t})=>(e.button=e.button===void 0?"Подтвердить":e.button,i.jsxs("div",{className:On.alerts,children:[i.jsxs("dl",{children:[i.jsx("dt",{children:e.title}),i.jsx("dd",{children:e.text}),i.jsx("ul",{children:i.jsx("button",{"data-color":e.color||"blue",onClick:()=>{t(),me.del()},children:e.button})})]}),i.jsx("div",{className:"--body",onClick:me.del})]}));function Mn(e,t){me.set(i.jsx($n,{data:e,callback:t}))}function Ln({children:e}){return i.jsx("div",{className:"l",children:i.jsx("ul",{children:e})})}function Dn({children:e}){return i.jsx("div",{className:"s",children:e})}const ot=({children:e,disabled:t,label:r,onClick:o})=>{const a=c=>{t||o&&o(c)};return i.jsx("button",{disabled:t,onClick:a,children:r})},K={white:"_white_1iomo_14",black:"_black_1iomo_26",shake:"_shake_1iomo_1",modal:"_modal_1iomo_73",o:"_o_1iomo_83",w:"_w_1iomo_14",h:"_h_1iomo_106",l:"_l_1iomo_120",t:"_t_1iomo_158",m:"_m_1iomo_73",x:"_x_1iomo_166",s:"_s_1iomo_176",c:"_c_1iomo_181",f:"_f_1iomo_186",btn:"_btn_1iomo_229",g:"_g_1iomo_242","size-a":"_size-a_1iomo_294","size-s":"_size-s_1iomo_298","size-m":"_size-m_1iomo_302","size-l":"_size-l_1iomo_306","size-x":"_size-x_1iomo_310","size-f":"_size-f_1iomo_314",confirm:"_confirm_1iomo_320",cancel:"_cancel_1iomo_325",disabled:"_disabled_1iomo_330",await:"_await_1iomo_337",active:"_active_1iomo_387",coincidence:"_coincidence_1iomo_393"};let oe={};const An=({config:e})=>{let[t,r]=g.useState([]);return oe.x=()=>{r([])},oe.config=e,oe.add=o=>{r([...t,o])},i.jsx(i.Fragment,{children:t.map(o=>o)})},Zn=({children:e,title:t,button:r,tabs:o,size:a="m",menu:c})=>{const[l,f]=g.useState(!0),u=g.useRef(),p=v=>{if(r&&r.onClick)return r.onClick({closed:f,disabled:v})},m=()=>{u.current.setAttribute("shake",!0),setTimeout(()=>{u.current.setAttribute("shake",!1)},1e3)};return i.jsx(i.Fragment,{children:l?i.jsxs("div",{className:`${K.modal} ${K.white}`,children:[i.jsx("div",{className:K.o,onClick:m}),i.jsxs("div",{className:K.w,ref:u,children:[i.jsxs("div",{className:K.h,children:[i.jsx("div",{className:K.t,children:t}),i.jsxs("div",{className:K.m,children:[o&&i.jsx("nav",{children:o.map((v,S)=>i.jsx("span",{onClick:v.onClick,className:v.active?"active":"",children:v.name},S))}),c]}),i.jsx("div",{className:K.x,onClick:()=>{f(!1)},children:i.jsx("svg",{viewBox:"0 0 24 24",fill:"none",children:i.jsx("path",{d:"M19.0005 4.99988L5.00045 18.9999M5.00045 4.99988L19.0005 18.9999",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})})})]}),e,r!==void 0?i.jsx(ot,{label:String(r.name),onClick:p}):""]})]}):""})},Yn=e=>{oe.add(i.jsx(Wn,{children:e},String(Date.now())))},Wn=({children:e})=>i.jsx(i.Fragment,{children:e}),it={List:Ln,Scroll:Dn,Init:An,Main:Zn,Add:Yn,Icon:({type:e,name:t,params:r})=>{let[o,a]=g.useState(null);return g.useEffect(()=>{oe.config(e,t,r,a)},[r.id]),i.jsx(i.Fragment,{children:o})},Open:(e,t,r)=>{oe.config(e,t,r)}},at=({children:e,config:t,crypto:r,...o})=>Dt(r,i.jsxs(i.Fragment,{children:[i.jsx(it.Init,{config:t.modal}),i.jsx(Rn,{}),i.jsx(Fn,{}),e]})),Bn=({children:e,...t})=>i.jsx("menu",{children:e}),Un=({children:e,...t})=>i.jsxs("header",{children:["xz",e]}),Vn={payment:"_payment_1lxfv_1"};function Gn(){let[e,t]=g.useState({});return!e.active&&!e.payment?"":i.jsx("div",{className:Vn.payment,children:"Истек срок оплаты! Доступ доступен до 16.04.2024"})}const Kn=({children:e,...t})=>{let r={};return r.enCode=o=>JSON.stringify(o).toString(),r.deCode=o=>JSON.parse(o),i.jsxs("div",{className:"app",children:[i.jsx(Gn,{}),i.jsx(Bn,{}),i.jsx(Un,{}),i.jsx(at,{config:{modal:{}},crypto:r}),e]})},st=({list:e,onClick:t,active:r,size:o,view:a})=>i.jsx("nav",{children:i.jsx("ul",{className:[o,a].join(" "),children:e.map(c=>i.jsx(Xn,{onClick:t,active:r,label:c.label,link:c.link},c.link))})}),Xn=({onClick:e,label:t,link:r,active:o})=>i.jsx("li",{"tabs-active":String(o===r),onClick:()=>e(r),children:t});st.defaultProps={size:"M",view:"H"};const Hn=({title:e="",button:t,description:r="",children:o})=>i.jsxs("fieldset",{children:[e&&i.jsxs("legend",{children:[e,t&&i.jsx("div",{role:"button-outline",onClick:()=>t.onClick(),children:t.label})," "]}),i.jsx("ul",{children:o}),r&&i.jsx("article",{children:r})]}),Jn={setting:"_setting_1r0pc_2"},qn=({children:e})=>i.jsx("div",{className:Jn.setting,children:e}),Qn=({label:e,children:t})=>{let[r,o]=g.useState(!1);return i.jsxs("li",{"data-item":"accordion",children:[i.jsxs("dl",{onClick:()=>o(!r),children:[i.jsx("dt",{children:e}),i.jsx("dd",{children:i.jsx("div",{"data-close":String(r)})})]}),r&&i.jsx("div",{children:t})]})},er=({label:e,onClick:t,button:r})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{role:"button",onClick:()=>t(),children:r})]})}),lt={Switch:({active:e,onClick:t})=>(e=typeof e=="number"?!!e:e,i.jsx("div",{role:"switch",onClick:()=>{t()},"aria-checked":e?"true":"false"}))},tr={Accordion:Qn,Button:er,Switch:({label:e,onClick:t,active:r})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{children:i.jsx(lt.Switch,{onClick:t,active:r})})]})}),Info:({label:e,info:t})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{role:"info",children:t})]})}),Select:({label:e,active:t,options:r})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{role:"info",children:t})]})}),Component:({label:e,children:t})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{children:t})]})}),Node:({label:e,children:t})=>i.jsx("li",{children:i.jsxs("dl",{children:[i.jsx("dt",{children:e}),i.jsx("dd",{children:t})]})})};function ct({list:e,onClick:t,active:r,size:o,view:a}){return i.jsx("nav",{children:i.jsx("ul",{className:[o,a].join(" "),children:e.map(c=>i.jsx(nr,{onClick:t,active:r,label:c.label,link:c.link},c.link))})})}const nr=({onClick:e,label:t,link:r,active:o})=>i.jsx("li",{"tabs-active":String(o===r),onClick:()=>e(r),children:t});ct.defaultProps={size:"M",view:"H"};const rr={Section:Hn,Main:qn,Item:tr,Tabs:ct},ee={h:"_h_158b4_1",t:"_t_158b4_11",s:"_s_158b4_31",u:"_u_158b4_40",o:"_o_158b4_47",l:"_l_158b4_56",hh:"_hh_158b4_63"},dt=({title:e,children:t})=>i.jsxs("div",{className:ee.h,children:[i.jsx("div",{className:ee.t,children:e}),t]}),or=({children:e,title:t})=>i.jsxs("div",{className:ee.o,children:[t&&i.jsx("div",{className:ee.hh,children:t}),e]}),ir=({children:e})=>i.jsx("div",{className:ee.u,children:e}),ut=({children:e})=>i.jsx("div",{className:ee.s,children:e}),ft=({children:e,...t})=>i.jsx("div",{className:ee.l,children:e}),ar={Header:dt,Section:ut,List:ft,U:ir,L:ft,O:or,S:ut,H:dt},sr={Send:In,Error:Tn,Remark:zn,Success:Nn,Copy:Pn},lr={Send:Mn};function cr(){return i.jsx("svg",{viewBox:"0 0 462.86 359.96",children:i.jsx("path",{d:"M210.5,307.78c-27,35.41-58.14,58-120.55,50.84-1-.12-1.58-.39-1.58-2V327.87c0-1.32.51-2.12,1.85-2,100.39-1,88.17-63.46,74.8-90.94-47.3-97.28-14.46-166.27,20.26-205.14,14.1-16.37,50.53-42,128.07-23.24,9.1,2,30.51,7.8,24.46,11.38C317.5,30,297.66,68.33,295,73.12c-3.62,6.59-6.26,13.17-4.57,14.13,2.37,1.35,3.5-1.56,6.58-7.91C319.78,34.41,366-22.76,402.78,37.68a1.14,1.14,0,0,1,.09.26c9.3,56.05,30.57,228.62-97.76,224.22-23.38-2-28.82-22-32.57-18.89-3.36,3,10,21.4,32.76,23.19C448.18,270.75,411.55,66.74,407.79,41.91a1.41,1.41,0,0,1,0-.3c2-7.32,129.15,17.47,112.77,158.08,4.82,6.57,10.89,10,18.7,16.08l.13.07c8.9,3.67,10.46,12.06,11.43,18.88a63.15,63.15,0,0,1-.14,15.49c-10.48-4.62-22.74-10.11-22.26-22.53.43-12,7.35-5.21-8.8-14.22a.69.69,0,0,0-1,.57c-.33,3.87-2.7,14.69-3,16.59v0c-4.64,17-16.59,86-18.41,99.58-.77,5.7-4.94,10.41-11.4,10.39l-56.71.18c-7.73.22-9.57-7.9-10.27-11.89-2.7-15.31-4.08-29.7-4.18-29.67-20.24,9.26-108.69,3.08-108.69,3.27V330c-.29,7.56-4.51,15.26-11.74,15.32l-52.87,1c-10.36.1-13.85-1.67-15.5-11.87-2.08-13.08-1-34.26-5.32-37.43-2,1.84-8.33,8.11-10,10.83M196.16,203q9.57,0,11.42-7.72c2.18-9.07-5.66-17.7-14.77-15.68-4.95,1.11-7.53,4.94-7.53,11.53C185.28,199,188.94,203,196.16,203Z",transform:"translate(-88.37 0)"})})}const dr={Logo:cr},be={Path:nn,setPage:Gt,getPage:Ge,usePage:Vt,setModule:Xt,getModule:Ke,useModule:Kt,setTabs:Jt,getTabs:he,useTabs:Ht,useId:qt,setId:en,subId:Qt,getId:tn},ur={sort:"_sort_1yrvt_1"};let ve={};function fr(e,t){switch(t.type){case"active":let r="<";return e.active===t.data&&(r=e.sort==="<"?">":"<"),ve.get({active:t.data,sort:r},!1),He({active:t.data,sort:r}),{...e,active:t.data,sort:r};default:throw new Error}}function pr(){const[e,t]=g.useReducer(fr,Ne()===void 0?{active:1,sort:"<"}:Ne());return i.jsxs("div",{className:ur.sort,children:[i.jsx("i",{"data-color":e.active===1?"_506290":"_b5b9cc","data-icon":e.active===1?e.sort==="<"?"F073":"F072":"F071",onClick:()=>t({type:"active",data:1})}),i.jsx("i",{"data-color":e.active===2?"_506290":"_b5b9cc","data-icon":e.active===2?e.sort==="<"?"F066":"F067":"F074",onClick:()=>t({type:"active",data:2})}),i.jsx("i",{"data-color":e.active===3?"_506290":"_b5b9cc","data-icon":e.active===3?e.sort==="<"?"F068":"F069":"F070",onClick:()=>t({type:"active",data:3})})]})}function mr(e){ve.get=e}function _r(e){ve.set(e)}function xr(e,t,r){let o=1,a=0,c={},l=50;c[o]=[];let f={},u="s1a";switch(f.s1a=(p,m)=>m.s1-p.s1,f.s1d=(p,m)=>p.s1-m.s1,f.s2a=(p,m)=>p.s2-m.s2,f.s2d=(p,m)=>m.s2-p.s2,f.s3a=(p,m)=>p.s3.localeCompare(m.s3),f.s3d=(p,m)=>m.s3.localeCompare(p.s3),r.active){case 1:u=r.sort===">"?"s1d":"s1a";break;case 2:u=r.sort===">"?"s2d":"s2a";break;case 3:u=r.sort===">"?"s3d":"s3a";break}return t.sort(f[u]).forEach(p=>{a++,a<=l||(o++,a=1,c[o]=[]),c[o].push(e[p.id])}),{data:c}}function hr(e){ve.count(e)}const gr={Init:pr,useValue:mr,Set:_r,Run:xr,Count:hr};function br(e,t){t===void 0?(t=e,e=new Date):e=new Date(e);let r={yyyy:e.getFullYear(),yy:(""+e.getFullYear()).slice(-2),mm:("0"+(e.getMonth()+1)).slice(-2),dd:("0"+e.getDate()).slice(-2),HH:("0"+e.getHours()).slice(-2),MM:("0"+e.getMinutes()).slice(-2),SS:("0"+e.getSeconds()).slice(-2),__:" ",_:" "};for(const o in r)t=t.replace(o,r[o]);return t}function vr(e){let t=["Января","Февраля","Марта","Апреля","Мая","Июня","Июля","Августа","Сентября","Октября","Ноября","Декабря"],r=new Date(e);return{day:(""+r.getFullYear()).slice(-2)+""+("0"+(r.getMonth()+1)).slice(-2)+("0"+r.getDate()).slice(-2),name:r.getDate()+" "+t[r.getMonth()]}}const yr=e=>{function t(Z,J){var te,Se,ae;Z=Z??"",J=J??1;for(var te=[],ae=0,Se=Z.length;ae<Se;)te.push(Z.slice(ae,ae+=J));return te}function r(Z,J){var te=[2,0,1,1,1,2];return J[Z>4&&Z<20?2:te[Math.min(Z,5)]]}var o={null:"ноль",a1:["один","два","три","четыре","пять","шесть","семь","восемь","девять"],a2:["одна","две","три","четыре","пять","шесть","семь","восемь","девять"],a10:["десять","одиннадцать","двенадцать","тринадцать","четырнадцать","пятнадцать","шестнадцать","семнадцать","восемнадцать","девятнадцать"],a20:["двадцать","тридцать","сорок","пятьдесят","шестьдесят","семьдесят","восемьдесят","девяносто"],a100:["сто","двести","триста","четыреста","пятьсот","шестьсот","семьсот","восемьсот","девятьсот"],uc:["копейка","копейки","копеек"],ur:["рубль","рубля","рублей"],u3:["тысяча","тысячи","тысяч"],u2:["миллион","миллиона","миллионов"],u1:["миллиард","миллиарда","миллиардов"]},a,c,l,f,R,u,p,E,m,v,S,O;m=parseFloat(e).toFixed(2).split("."),u=m[0],f=m[1];var D=12-u.length;if(D<0)return!1;for(var E=[];D--;)E.push("0");u=E.join("")+u;var R=[];if(u>0){v=t(u,3);for(var T=-1;T<v.length;T++)if(p=v[T],p>0&&(S=t(p,1),a=parseInt(S[0]),c=parseInt(S[1]),l=parseInt(S[2]),R.push(o.a100[a-1]),O=T+1==3?"a2":"a1",c>1?R.push(o.a20[c-2]+(l>0?" "+o[O][l-1]:"")):R.push(c>0?o.a10[l]:o[O][l-1]),v.length>T+1)){var w=o["u"+(T+1)];R.push(r(p,w))}}else R.push(o.null);return R.push(r(u,o.ur)),R.push(f+" "+r(f,o.uc)),R.join(" ").replace(RegExp(" {2,}","g")," ").trimLeft()};function wr(e){let t=-1,r=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];do e=e/1024,t++;while(e>1024);return Math.max(e,.1).toFixed(1)+r[t]}function kr(e){let t={};return t["application/atom+xml"]="atom",t["application/json"]="json",t["application/javascript"]="js",t["application/ogg"]="ogg",t["application/pdf"]="pdf",t["application/soap+xml"]="soap",t["application/font-woff"]="woff",t["application/xhtml+xml"]="xml",t["application/xml-dtd"]="dtd",t["application/xop+xml"]="xop",t["application/zip"]="zip",t["application/gzip"]="gzip",t["application/x-bittorrent"]="bittorrent",t["application/x-tex"]="tex",t["application/xml"]="xml",t["application/msword"]="doc",t["image/svg+xml"]="svg",t[e]}function Sr(e,t,r,o){let a={sexM:"m",sexF:"f",gcaseIm:"nominative",gcaseNom:"nominative",gcaseRod:"genitive",gcaseGen:"genitive",gcaseDat:"dative",gcaseVin:"accusative",gcaseAcc:"accusative",gcaseTvor:"instrumentative",gcaseIns:"instrumentative",gcasePred:"prepositional",gcasePos:"prepositional",rules:{lastName:{exceptions:[" дюма,тома,дега,люка,ферма,гамарра,петипа,шандра . . . . ."," гусь,ремень,камень,онук,богода,нечипас,долгопалец,маненок,рева,кива . . . . ."," вий,сой,цой,хой -я -ю -я -ем -е"],suffixes:["f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ,ь . . . . .","f ска,цка -ой -ой -ую -ой -ой","f ая --ой --ой --ую --ой --ой"," ская --ой --ой --ую --ой --ой","f на -ой -ой -у -ой -ой"," иной -я -ю -я -ем -е"," уй -я -ю -я -ем -е"," ца -a -е -у -ей -е"," рих а у а ом е"," ия . . . . ."," иа,аа,оа,уа,ыа,еа,юа,эа . . . . ."," их,ых . . . . ."," о,е,э,и,ы,у,ю . . . . ."," ова,ева -ой -ой -у -ой -ой"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ца -и -е -у -ей -е"," а -ы -е -у -ой -е"," ь -я -ю -я -ем -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ян,ан,йн а у а ом е"," ынец,обец --ца --цу --ца --цем --це"," онец,овец --ца --цу --ца --цом --це"," ц,ч,ш,щ а у а ем е"," ай -я -ю -я -ем -е"," гой,кой -го -му -го --им -м"," ой -го -му -го --ым -м"," ах,ив а у а ом е"," ший,щий,жий,ний --его --ему --его -м --ем"," кий,ый --ого --ому --ого -м --ом"," ий -я -ю -я -ем -и"," ок --ка --ку --ка --ком --ке"," ец --ца --цу --ца --цом --це"," в,н а у а ым е"," б,г,д,ж,з,к,л,м,п,р,с,т,ф,х а у а ом е"]},firstName:{exceptions:[" лев --ьва --ьву --ьва --ьвом --ьве"," павел --ла --лу --ла --лом --ле","m шота . . . . .","m пётр ---етра ---етру ---етра ---етром ---етре","f рашель,нинель,николь,габриэль,даниэль . . . . ."],suffixes:[" е,ё,и,о,у,ы,э,ю . . . . .","f б,в,г,д,ж,з,й,к,л,м,н,п,р,с,т,ф,х,ц,ч,ш,щ,ъ . . . . .","f ь -и -и . ю -и","m ь -я -ю -я -ем -е"," га,ка,ха,ча,ща,жа -и -е -у -ой -е"," ша -и -е -у -ей -е"," а -ы -е -у -ой -е"," ия -и -и -ю -ей -и"," я -и -е -ю -ей -е"," ей -я -ю -я -ем -е"," ий -я -ю -я -ем -и"," й -я -ю -я -ем -е"," б,в,г,д,ж,з,к,л,м,н,п,р,с,т,ф,х,ц,ч а у а ом е"]},middleName:{suffixes:[" ич а у а ем е"," на -ы -е -у -ой -е"]}},initialized:!1,init:function(){this.initialized||(this.prepareRules(),this.initialized=!0)},prepareRules:function(){for(var l in this.rules)for(var f in this.rules[l])for(var u=0,p=this.rules[l][f].length;u<p;u++)this.rules[l][f][u]=this.rule(this.rules[l][f][u])},rule:function(l){var f=l.match(/^\s*([fm]?)\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*$/);return f?{sex:f[1],test:f[2].split(","),mods:[f[3],f[4],f[5],f[6],f[7]]}:!1},word:function(l,f,u,p){if(p===this.gcaseNom)return l;if(l.match(/[-]/)){for(var m=l.split("-"),v=0,S=m.length;v<S;v++)m[v]=this.word(m[v],f,u,p);return m.join("-")}if(l.match(/^[А-ЯЁ]\.?$/i))return l;this.init();var O=this.rules[u];let D;return O.exceptions&&(D=this.pick(l,f,p,O.exceptions,!0),D)?D:(D=this.pick(l,f,p,O.suffixes,!1),D||l)},pick:function(l,f,u,p,m){let v=l.toLowerCase();for(var S=0,O=p.length;S<O;S++)if(this.ruleMatch(v,f,p[S],m))return this.applyMod(l,u,p[S]);return!1},ruleMatch:function(l,f,u,p){if(u.sex===this.sexM&&f===this.sexF||u.sex===this.sexF&&f!==this.sexF)return!1;for(var m=0,v=u.test.length;m<v;m++){var S=p?l:l.substr(Math.max(l.length-u.test[m].length,0));if(S===u.test[m])return!0}return!1},applyMod:function(l,f,u){let p;switch(f){case this.gcaseNom:p=".";break;case this.gcaseGen:p=u.mods[0];break;case this.gcaseDat:p=u.mods[1];break;case this.gcaseAcc:p=u.mods[2];break;case this.gcaseIns:p=u.mods[3];break;case this.gcasePos:p=u.mods[4];break}for(var m=0,v=p.length;m<v;m++){var S=p.substr(m,1);switch(S){case".":break;case"-":l=l.substr(0,l.length-1);break;default:l+=S}}return l},getSex:()=>{if(a.mn.length>2)switch(a.mn.substr(a.mn.length-2)){case"ич":return"m";case"на":return"f"}return""},fullName:l=>((a.fullNameSurnameLast?"":a.lastName(l)+" ")+a.firstName(l)+" "+a.middleName(l)+(a.fullNameSurnameLast?" "+a.lastName(l):"")).replace(/^ +| +$/g,""),lastName:l=>a.word(a.ln,a.sex,"lastName",l),firstName:l=>a.word(a.fn,a.sex,"firstName",l),middleName:l=>a.word(a.mn,a.sex,"middleName",l)};if(typeof t>"u"){var c=e.match(/^\s*(\S+)(\s+(\S+)(\s+(\S+))?)?\s*$/);if(!c)return"Cannot parse supplied name";c[5]&&c[3].match(/(ич|на)$/)&&!c[5].match(/(ич|на)$/)?(e=c[5],t=c[1],r=c[3],a.fullNameSurnameLast=!0):(e=c[1],t=c[3],r=c[5])}return a.ln=e,a.fn=t||"",a.mn=r||"",a.sex=o||a.getSex(),a}function jr(e){let t=e.split(" ");switch(t.length){case 2:return t[0]+" "+t[1].substring(0,1)+".";case 3:return t[0]+" "+t[1].substring(0,1)+"."+t[2].substring(0,1)+".";default:return e}}function Cr(e){return{1:{val:"01",name:"Январь",names:"Января",abc:"Янв"},2:{val:"02",name:"Февраль",names:"Февраля",abc:"Февр"},3:{val:"03",name:"Март",names:"Марта",abc:"Март"},4:{val:"04",name:"Апрель",names:"Апреля",abc:"Апр"},5:{val:"05",name:"Май",names:"Мая",abc:"Май"},6:{val:"06",name:"Июнь",names:"Июня",abc:"Июнь"},7:{val:"07",name:"Июль",names:"Июля",abc:"Июль"},8:{val:"08",name:"Август",names:"Августа",abc:"Авг"},9:{val:"09",name:"Сентябрь",names:"Сентебря",abc:"Сент"},10:{val:"10",name:"Октябрь",names:"Октября",abc:"Окт"},11:{val:"11",name:"Ноябрь",names:"Ноября",abc:"Нояб"},12:{val:"12",name:"Декабрь",names:"Декабря",abc:"Дек"}}[e]}function Er(e){return parseFloat(e).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,"$1 ")}function Rr(e,t){let r=t+"";for(;r.length<e;)r="0"+r;return r}function Ir(e,t,r){let o=t/e*r;return(typeof o!="number"||o===1/0)&&(o=0),parseFloat(o).toFixed(1)}function Tr(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Nr={Date:br,MoneyString:yr,DateSort:vr,Size:wr,TypeFiles:kr,Cases:Sr,Initials:jr,Month:Cr,Money:Er,Number:Rr,Percent:Ir,CapitalizeFirstLetter:Tr},Oe={};function zr(e,t){Oe[e]=t}function Pr(e,t){Oe[e]!==void 0&&Oe[e](t)}const X={};function Or(e,t){const[r,o]=g.useState(t);return g.useEffect(()=>{if(X[e])return X[e].push(o);X[e]=[o]},[]),[r]}function Fr(e,t){if(X[e])return X[e].push(t);X[e]=[t]}function $r(e,t){X[e]&&X[e].forEach(r=>r(t))}const Mr={setListener:Pr,useListener:zr,setEmitter:$r,useEmitter:Or,subEmitter:Fr},ye={},pt={};function Lr(e){const[t,r]=g.useState({}),o=async a=>{r(Object.keys(ye).reduce((c,l)=>(c?c[l]=ye[l].all:c={},c),{}))};return g.useEffect(()=>{e.forEach(a=>ye[a]={all:0}),pt.menu=o,o()},[e]),t}function Dr(e,t){switch(typeof t){case"number":ye[e].all+=t,pt.menu();break}}const Ar={useMenu:Lr,setUpdate:Dr},Zr="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2xldCBhPVtdLHM9bnVsbDtvbmNvbm5lY3Q9ZnVuY3Rpb24obCl7dmFyIHQ9bC5zb3VyY2U7YS5wdXNoKHQpO2NvbnN0IG49ZT0+e3MhPT1udWxsJiZzLnJlYWR5U3RhdGU9PT0xP3Muc2VuZChKU09OLnN0cmluZ2lmeShlKSk6dC5wb3N0TWVzc2FnZSh7dHlwZToibm9TZW5kIn0pfTtsZXQgcj1lPT57aWYocyE9PW51bGwmJnMucmVhZHlTdGF0ZT09PTEpcmV0dXJuIHQucG9zdE1lc3NhZ2Uoe3R5cGU6InRydWUifSk7ZS5say5hZGRyZXNzPT09ImxvY2FsaG9zdCI/cz1uZXcgV2ViU29ja2V0KGB3czovL2xvY2FsaG9zdDoke2UubGsuc29ja2V0KzF9YCk6cz1uZXcgV2ViU29ja2V0KCJ3c3M6Ly8iK2UubGsuYWRkcmVzcysiOiIrKGUubGsuc29ja2V0KzEpKSxzLm9uZXJyb3I9KCk9PnQucG9zdE1lc3NhZ2Uoe3R5cGU6ImVycm9yIn0pLHMub25vcGVuPSgpPT57bih7dHlwZToiY29ubmVjdCIsdWtleTplLnVrZXl9KX0scy5vbm1lc3NhZ2U9bz0+e2xldCBjPUpTT04ucGFyc2Uoby5kYXRhKTthLmZvckVhY2goZD0+e2QucG9zdE1lc3NhZ2UoYyl9KX0scy5vbmNsb3NlPSgpPT50LnBvc3RNZXNzYWdlKHt0eXBlOiJjbG9zZWQifSl9O3Qub25tZXNzYWdlPWZ1bmN0aW9uKGUpe3N3aXRjaChlLmRhdGEudHlwZSl7Y2FzZSJsZW5ndGgiOnJldHVybiB0LnBvc3RNZXNzYWdlKGEubGVuZ3RoKTtjYXNlImFsbCI6cmV0dXJuIGEuZm9yRWFjaChvPT5vLnBvc3RNZXNzYWdlKHthbGw6YS5sZW5ndGh9KSk7Y2FzZSJzZW5kIjpyZXR1cm4gbihlLmRhdGEuanNvbik7Y2FzZSJjb25uZWN0IjpyZXR1cm4gcihlLmRhdGEpO2RlZmF1bHQ6dC5wb3N0TWVzc2FnZSh7dHlwZToiZGVmYXVsdCIsZGF0YTplLmRhdGEuanNvbn0pfX19fSkoKTsK";function Yr(e){return new SharedWorker("data:text/javascript;base64,"+Zr,{name:e==null?void 0:e.name})}let L={},P={},we=["filter","online","users","company","select","setting","info","job"];const Wr=()=>{const[e,t]=g.useState(!1),[r,o]=g.useState(!1);return[c=>{const l=new Yr;L.laodData=f=>{let u=we.indexOf(f);u>=0&&we.splice(u,1),we.length===0&&t(!0)},L.send=f=>{l.port.postMessage({type:"send",json:f})},l.port.onmessage=f=>{let u=f.data;u.type==="error"&&o(!0),u.type==="true"&&t(!0),u.type==="closed"&&l.port.postMessage({type:"connect",ukey:c,lk:Te()}),we.length!==0&&L.laodData(u.type),P[u.type]&&P[u.type](u)},l.port.postMessage({type:"connect",ukey:c,lk:Te()})},e,r]};P.module=e=>{L[e.listen]!==void 0&&(L[e.listen](e),delete L[e.listen])},P.bell=e=>{L.bell!==void 0&&L.bell(e)},P.info=e=>{let t={};t.db=e.db,t.id=e.data.id,t.job=e.data.job,t.login=e.data.login,t.name=e.data.p02,t.patronymic=e.data.p03,t.surname=e.data.p01,t.email=e.data.email,t.admin=e.data.menu.includes("99"),qe(t),Xe(e.data.menu)},P.version=async e=>{ze.version.Server(e.data)},P.online=async e=>{},P.offline=async e=>{},P.chat=e=>{switch(e.data.action){case"new_message":be.getModule();break;case"view_message":be.getModule();break;case"write_message":be.getModule();break}},P.users=e=>{let t={};e.data.forEach(o=>{let a=o.p01+" "+o.p02+" "+o.p03,c=o.p01+" "+o.p02.substring(0,1)+"."+o.p03.substring(0,1)+".",l=o.p01.substring(0,1)+""+o.p02.substring(0,1)+o.p03.substring(0,1);t[o.id]={id:o.id,admin:o.m.includes("99"),ava:JSON.parse(o.a),job:o.j,login:"",online:{time:o.o,status:0},sts:o.s,nameFull:a,name:c,number:l}});let r={...de(),user:t};ce(r)},P.company=e=>{let t={},r={};e.data.forEach(a=>{t[a.id]={s:a.v,n:a.a},r[a.id]=a});let o={...de(),901:t};Je(r),ce(o)},P.api=e=>{let t={};e.data.forEach(r=>{t[r.api]={key:r.key,p01:r.p01,p02:r.p02}})},P.delete=()=>{M()},P.select=e=>{let t={...de()};e.data.forEach(r=>{t[r.n]=JSON.parse(r.s)}),ce(t)},P.job=e=>{let t={...de()},r={};Object.keys(e.data).forEach(o=>{r[o]={s:1,n:e.data[o]}}),t[1]=r,ce(t)},P.setting=e=>{rn(e.data)},P.app=()=>{};const Br=(e,t)=>{L[e]=t},Ur=(e,t)=>{L[e](t)};function Vr(e){let t="_"+String(Math.random()).substring(2,7);return new Promise(r=>{L[t]=o=>{o.error!==void 0?r({error:o.error}):r(o.data),delete L[t]},e={...e,listen:t},e.type="modules",L.send(e)})}const Gr={useConnect:Wr,useListener:Br,setListener:Ur,Send:Vr};let ke=e=>C.enCode(e),mt=e=>C.enCode(e);class Kr{constructor(t="el",r="db"){Ue(this,"storeName");Ue(this,"_dbp");this.storeName=r,this._dbp=new Promise((o,a)=>{const c=indexedDB.open(t,1);c.onerror=()=>a(c.error),c.onsuccess=()=>o(c.result),c.onupgradeneeded=()=>{c.result.createObjectStore(r)}})}_withIDBStore(t,r){return this._dbp.then(o=>new Promise((a,c)=>{const l=o.transaction(this.storeName,t);l.oncomplete=()=>a(),l.onabort=l.onerror=()=>c(l.error),r(l.objectStore(this.storeName))}))}}let Fe,I={};const ie=()=>(Fe||(Fe=new Kr),Fe),H=(e,t,r=ie())=>r._withIDBStore("readwrite",o=>{I[e]=t,o.put(ke(t),e)}),Y=(e,t=ie())=>I[e]===void 0?new Promise((r,o)=>{let a;t._withIDBStore("readonly",c=>{a=c.get(e)}).then(()=>{if(a.result!==void 0){let c=JSON.parse(mt(a.result));I[e]=c,r(c)}else r({})})}):I[e],Xr=(e,t=ie())=>t._withIDBStore("readwrite",r=>{r.delete(e)}),$e=(e=ie())=>e._withIDBStore("readwrite",t=>{t.clear()}),Hr={id:async(e,t,r)=>{let o=await Y(t);if(r!==void 0)r({type:"load",base:o});else return o[e]},get:Y,set:H,add:async(e,t,r,o)=>{let a,c;c=await Y(r),c[e.id]=e,await H(r,c),a!==null&&(a=await Y(t),a[e.id]=e.eDate,await H(t,a)),o!==void 0&&o({type:"load",page:a,base:c})},del:Xr,upd:(e,t,r,o=ie())=>{if(I[e]===void 0)return new Promise((a,c)=>{let l;o._withIDBStore("readonly",f=>{l=f.get(e)}).then(()=>{if(l.result!==void 0){let f=JSON.parse(mt(l.result));I[e]=f,I[e][t.id]={...I[e][t.id],...t.data},o.put(ke(I[e]),e),a({})}else a({})})});if(I[e][t.id]!==void 0)return I[e][t.id]={...I[e][t.id],...t.data},r!==void 0&&I[r]!==void 0?I[r][t.id]!==void 0&&(I[r][t.id]=t.data.eDate):I[r]=[],delete I[e][t.id].$_item,delete I[e][t.id].$_send,o._withIDBStore("readwrite",a=>{a.put(ke(I[e]),e),r!==void 0&&a.put(ke(I[r]),r)})},key:(e=ie())=>{const t=[];return e._withIDBStore("readonly",r=>{(r.openKeyCursor||r.openCursor).call(r).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)},load:e=>I[e],split:(e,t,r=[],o={})=>{let a=r.length!==0,c=[],l=o.sort,f=Object.keys(o).length!==0,u=Object.keys(o),p=Object.keys(e),m=1,v=[],S={};S[m]=[];let O=E=>{let R="";if(r.forEach(T=>{R+=t[E][T]}),f){let T={};u.forEach(w=>{T[w]=t[E][w]});for(let w in l)t[E][l[w]]===void 0&&($e(),location.reload()),w==="s1"&&(T[w]=new Date(t[E][l[w]]).getTime()),w==="s2"&&(T[w]=t[E][l[w]]),w==="s3"&&(T[w]=t[E][l[w]].replace(/[^a-zа-яё]/gi,"").substring(0,1));c.push({id:E,text:R,...T})}else c.push({id:E,text:R})},D=E=>{u.forEach(R=>{R!=="b"&&o[R].list[t[E][R]]!==void 0&&(o[R].list[t[E][R]].count===void 0?o[R].list[t[E][R]].count=1:o[R].list[t[E][R]].count++)})};return p.forEach(E=>{v.push(t[E])}),v.forEach(E=>{E===void 0?($e(),location.reload()):(a&&O(E.id),f&&D(E.id))}),{list:S,search:c,filter:o}},clear:$e,updAll:async(e,t,r,o)=>{let a=await Y(t),c=await Y(r);for(let l in e)c[l]=e[l],a[l]=e[l].eDate;await H(t,a),await H(r,c),o!==void 0&&o({type:"load",page:a,base:c})},delAll:async(e,t,r,o)=>{let a=await Y(t),c=await Y(r);e.forEach(l=>delete a[l]),await H(t,a),o!==void 0&&o({type:"load",page:a,base:c})},delList:async(e,t,r)=>{let o=await Y(t);e.forEach(a=>delete o[a]),await H(t,o)},addList:async(e,t,r)=>{let o=await Y(t);e.forEach(a=>o[a.id]=a.eDate),await H(t,o)}},Jr={setSetting:on,getSetting:an};h.Action=lt,h.Alert=lr,h.Api=Sn,h.Badge=Ar,h.Browser=Kn,h.Button=ot,h.Component=ar,h.DataBase=Hr,h.Event=Mr,h.Format=Nr,h.Icon=dr,h.Init=at,h.Modal=it,h.Notice=sr,h.Router=be,h.Setting=rr,h.Sistym=ze,h.Socket=Gr,h.Store=ge,h.Tabs=st,h.Triage=gr,h.User=Jr,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { Api, Server } from './Version';
|
|
1
|
+
import { Api, Server, Client, Host } from './Version';
|
|
2
2
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
version: {
|
|
5
5
|
Api: typeof Api;
|
|
6
6
|
Server: typeof Server;
|
|
7
|
+
Client: typeof Client;
|
|
7
8
|
};
|
|
9
|
+
Host: typeof Host;
|
|
8
10
|
};
|
|
9
11
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "elcrm",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "React framework for creating modules for elCRM",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"author": "MaSkal",
|
|
6
|
+
"author": "MaSkal <dev@elcrm.online>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "tsc && vite build"
|