sprof 0.0.239 → 0.0.241
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/core/components/atoms/PTooltip/PTooltip.stories.d.ts +301 -0
- package/dist/core/components/atoms/PTooltip/PTooltip.test.d.ts +1 -0
- package/dist/core/components/atoms/PTooltip/PTooltip.vue.d.ts +81 -0
- package/dist/sprof.js +1576 -1597
- package/dist/sprof.umd.cjs +11 -11
- package/package.json +1 -1
package/dist/sprof.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(j,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(j=typeof globalThis<"u"?globalThis:j||self,i(j.sprof={},j.Vue))})(this,function(j,i){"use strict";var sg=Object.defineProperty;var og=(j,i,Ie)=>i in j?sg(j,i,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):j[i]=Ie;var l=(j,i,Ie)=>og(j,typeof i!="symbol"?i+"":i,Ie);var et,Se,Wt,L,ke,tt;var Ie=typeof document<"u"?document.currentScript:null,le=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(le||{}),ce=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(ce||{});class it{constructor(e,n,r,s){l(this,"text","Сохранить");l(this,"type",ce.Success);l(this,"condition",!0);l(this,"action");l(this,"id","button");l(this,"disabled",!1);this.text=e,this.type=r,this.action=n,s!==void 0&&(this.condition=s)}static Primary(e,n,r){return new it(e,n,ce.Primary,r)}static Success(e,n,r){return new it(e,n,ce.Success,r)}static Warning(e,n,r){return new it(e,n,ce.Warning,r)}static Error(e,n,r){return new it(e,n,ce.Error,r)}}class Xt extends it{constructor(){super();l(this,"id","auth-button");l(this,"chunk",le.Login);l(this,"text","");l(this,"isSubmit",!1);l(this,"isLink",!0)}GetChunk(){return this.chunk}}let Zn=class extends Xt{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"chunk",le.Login)}};class ur extends Xt{constructor(){super(...arguments);l(this,"id","auth-button-refresh");l(this,"text","Обновить пароль");l(this,"isSubmit",!1);l(this,"chunk",le.Refresh)}}class Xn extends Xt{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"chunk",le.Register)}}class Yt extends Xt{constructor(){super(...arguments);l(this,"id","auth-button-restore");l(this,"text","Забыли пароль?");l(this,"isSubmit",!1);l(this,"chunk",le.Restore)}}class hr{constructor(){l(this,"value","");l(this,"label","");l(this,"placeholder","");l(this,"validator")}Validate(){return this.validator?(this.validator.errors=[],this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}var qe=(t=>(t.Email="field-auth-email",t.Password="field-auth-password",t.PasswordRepeat="field-auth-password-repeat",t))(qe||{});class Jt extends hr{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}get IsPassword(){return this.id===qe.Password||this.id===qe.PasswordRepeat}}var mt=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(mt||{});const tl=/\S+@\S+\.\S+/;class fr{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),tl.test(e)||this.errors.push("Некорректный email"),this.errors}}class nl extends Jt{constructor(){super(...arguments);l(this,"id",qe.Email);l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new fr);l(this,"method",mt.Email)}}const Qt=new nl;class il{constructor(){l(this,"errors",[]);l(this,"length",3)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль должен быть длиннее 3 символов"),this.errors)}}class rl extends Jt{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new il);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id",qe.Password)}}const Kt=new rl;class sl extends Jt{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id",qe.PasswordRepeat)}}const mr=new sl,pr={allowRestore:!1,[le.Login]:{methods:[mt.Email],title:"Вход в систему",action:"login",buttons:[new Zn,new Xn,new Yt],fields:[Qt,Kt],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[le.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Xn,new Zn,new Yt],fields:[Qt,Kt,mr],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[le.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new Yt],fields:[Qt]},[le.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new ur],fields:[Kt]}};class ol{constructor(){l(this,"block",!1);l(this,"settings",pr);l(this,"chunk",le.Login);l(this,"selectedMethod",mt.Email)}async Block(e){this.block=!0,await e(),this.block=!1}get IsBlock(){return this.block}GetValues(){const e=this.GetFields(),n=new Map;return e.forEach(r=>{r.value&&n.set(r.name,r.value)}),Object.fromEntries(n)}Validate(){if(this.IsRegister){const e=this.GetField(qe.Password),n=this.GetField(qe.PasswordRepeat);if((e==null?void 0:e.value)!==(n==null?void 0:n.value))return["Пароли не совпадают"]}return this.GetFields().map(e=>e.Validate()).flat()}GetFields(){return this.GetCurSet().fields.filter(e=>!e.method||e.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Chunk(){return this.chunk}get Settings(){return this.settings}GetCurSet(){return this.settings[this.chunk]}get IsLogin(){return this.chunk===le.Login}get IsRegister(){return this.chunk===le.Register}get IsRestore(){return this.chunk===le.Restore}get IsRefresh(){return this.chunk===le.Refresh}SetChunk(e){this.chunk=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(n=>{n.isSubmit=!1}),e[0].isSubmit=!0,e}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(e=>e.Reset())}Reset(){this.SetChunk(le.Login),this.ResetFields()}GetField(e){return this.GetFields().find(n=>n.id===e)}}class al{constructor(){l(this,"visible",!1);l(this,"closable",!1)}get Closable(){return this.closable}get Visible(){return this.visible}Close(){this.visible=!1}Open(e){e&&(this.closable=!0),this.visible=!0}}class gr{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class yr extends gr{constructor(){super(...arguments);l(this,"type",ce.Success);l(this,"text","");l(this,"title","")}showMessage(n,r){this.hide(),this.type=r,typeof n=="string"?this.text=n:(this.text=n.text,this.title=n.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(n){this.showMessage(n,ce.Info)}Success(n){this.showMessage(n,ce.Success)}Error(n){this.showMessage(n,ce.Error)}Warning(n){this.showMessage(n,ce.Warning)}FormMessage(n){let r="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const s of Object.keys(n))n[s][0]&&n[s][0].message&&(r+=`<li>${n[s][0].message}</li>`);return r+="</ul>",r}}class Yn{static Get(e,n,r="-"){return!e||!n?"":`${e}${r}${n}`}static In(e,n,r){return e>=n&&e<=r}static Intersects(e,n,r,s){return e===r||n===s||e>r&&e<s||n>r&&n<s||n>s&&e<r}}const wr=1e3,br=60*wr,Jn=60*br;var vt=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(vt||{});const en={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class D{static S(e){return wr*e}static M(e){return br*e}static H(e){return Jn*e}static D(e){return Jn*e}static W(e){return Jn*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=D.SplitHM(e);return n.length>1?D.HtoM(n[0])+n[1]:D.HtoM(n[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const n=e.split(":");return[Number(n[0]),Number(n[1])]}static HmsToHm(e){const n=D.SplitHM(e);return D.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const r=new Date,s=D.SplitHM(e);r.setHours(s[0],s[1],0,0);const o=new Date(r.getTime()+n*6e4),a=o.getHours(),d=o.getMinutes();return D.ConcatHM(a,d)}static ConcatHM(e,n){return`${e}:${D.NormalizeTime(n)}`}static DiffM(e,n){return D.Gt(n,e)?D.HMtoM(n)-D.HMtoM(e):D.HMtoM(e)-D.HMtoM(n)}static GetPeriod(e,n){return Yn.Get(e,n)}static Gt(e,n){return D.HMtoM(e)>D.HMtoM(n)}static GtOrEq(e,n){return D.Gt(e,n)||D.Eq(e,n)}static Eq(e,n){return D.HMtoM(e)===D.HMtoM(n)}static PeriodInPeriod(e,n,r,s){return D.HMtoM(e)>=D.HMtoM(r)&&D.HMtoM(n)<=D.HMtoM(s)}static PeriodsIntersects(e,n,r,s){return Yn.Intersects(D.HMtoM(e),D.HMtoM(n),D.HMtoM(r),D.HMtoM(s))}}class Nt{static Wait(e,n){return new Promise(r=>setTimeout(()=>r(n),e))}static WaitS(e,n){return Nt.Wait(D.S(e),n)}static WaitM(e,n){return Nt.Wait(D.M(e),n)}}class ll extends yr{constructor(){super(...arguments);l(this,"duration",D.S(3));l(this,"instance")}showMessage(n,r){super.showMessage(n,r),this.visible=!0,typeof n!="string"&&(this.duration=n.duration??this.duration),Nt.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",r=ce.Warning;super.showMessage(n,r)}Save(){const n="Изменения успешно сохранены",r=ce.Success;super.showMessage(n,r)}}const cl=new ll,ye=i.reactive(cl);class Pe{static Get(e){const n=localStorage.getItem(e);if(n)return JSON.parse(n)}static Set(e,n){n&&localStorage.setItem(e,JSON.stringify(n))}static Remove(e){localStorage.removeItem(e)}}var Re=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Re||{});class dl{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return Pe.Get(Re.AccessToken)}getRefreshToken(){return Pe.Get(Re.RefreshToken)}setAccessToken(e){Pe.Set(Re.AccessToken,e)}setRefreshToken(e){Pe.Set(Re.RefreshToken,e)}reset(){Pe.Remove(Re.AccessToken),Pe.Remove(Re.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class ul{constructor(){l(this,"user");l(this,"userConstructor")}AssignTo(e){e.user=this.get()}setUserConstructor(e){this.userConstructor=e}get(){if(!this.userConstructor){console.warn("No userConstructor was set");return}return this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),Pe.Set(Re.User,this.user))}reset(){this.user=void 0,Pe.Remove(Re.User)}actualize(){const e=Pe.Get(Re.User);e&&this.set(e)}}class hl{constructor(){l(this,"isAuth",!1);l(this,"user",new ul);l(this,"tokens",new dl);l(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(e){this.user.setUserConstructor(e)}SetUser(e){this.user.set(e)}SetState(e){this.SetUser(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){ye.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.user.actualize(),this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}const $t=class $t{constructor(){l(this,"form",i.reactive(new ol));l(this,"status",i.reactive(new hl));l(this,"modal",i.reactive(new al));if($t.instance)return $t.instance;$t.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}};l($t,"instance");let Qn=$t;const re=new Qn;var Cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
|
|
1
|
+
(function(_,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(_=typeof globalThis<"u"?globalThis:_||self,i(_.sprof={},_.Vue))})(this,function(_,i){"use strict";var Qp=Object.defineProperty;var Kp=(_,i,Ie)=>i in _?Qp(_,i,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):_[i]=Ie;var l=(_,i,Ie)=>Kp(_,typeof i!="symbol"?i+"":i,Ie);var et,Se,Wt,L,ke,tt;var Ie=typeof document<"u"?document.currentScript:null,le=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(le||{}),ce=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(ce||{});class it{constructor(e,n,r,s){l(this,"text","Сохранить");l(this,"type",ce.Success);l(this,"condition",!0);l(this,"action");l(this,"id","button");l(this,"disabled",!1);this.text=e,this.type=r,this.action=n,s!==void 0&&(this.condition=s)}static Primary(e,n,r){return new it(e,n,ce.Primary,r)}static Success(e,n,r){return new it(e,n,ce.Success,r)}static Warning(e,n,r){return new it(e,n,ce.Warning,r)}static Error(e,n,r){return new it(e,n,ce.Error,r)}}class Xt extends it{constructor(){super();l(this,"id","auth-button");l(this,"chunk",le.Login);l(this,"text","");l(this,"isSubmit",!1);l(this,"isLink",!0)}GetChunk(){return this.chunk}}let Zn=class extends Xt{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"chunk",le.Login)}};class ur extends Xt{constructor(){super(...arguments);l(this,"id","auth-button-refresh");l(this,"text","Обновить пароль");l(this,"isSubmit",!1);l(this,"chunk",le.Refresh)}}class Xn extends Xt{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"chunk",le.Register)}}class Yt extends Xt{constructor(){super(...arguments);l(this,"id","auth-button-restore");l(this,"text","Забыли пароль?");l(this,"isSubmit",!1);l(this,"chunk",le.Restore)}}class hr{constructor(){l(this,"value","");l(this,"label","");l(this,"placeholder","");l(this,"validator")}Validate(){return this.validator?(this.validator.errors=[],this.validator.validate(this.value),this.validator.errors):[]}Reset(){this.value=""}}var qe=(t=>(t.Email="field-auth-email",t.Password="field-auth-password",t.PasswordRepeat="field-auth-password-repeat",t))(qe||{});class Jt extends hr{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}get IsPassword(){return this.id===qe.Password||this.id===qe.PasswordRepeat}}var mt=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(mt||{});const el=/\S+@\S+\.\S+/;class fr{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),el.test(e)||this.errors.push("Некорректный email"),this.errors}}class tl extends Jt{constructor(){super(...arguments);l(this,"id",qe.Email);l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new fr);l(this,"method",mt.Email)}}const Qt=new tl;class nl{constructor(){l(this,"errors",[]);l(this,"length",3)}validate(e){return e===""||!e?(this.errors.push("Введите пароль"),this.errors):(e.length<this.length&&this.errors.push("Пароль должен быть длиннее 3 символов"),this.errors)}}class il extends Jt{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new nl);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id",qe.Password)}}const Kt=new il;class rl extends Jt{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id",qe.PasswordRepeat)}}const mr=new rl,pr={allowRestore:!1,[le.Login]:{methods:[mt.Email],title:"Вход в систему",action:"login",buttons:[new Zn,new Xn,new Yt],fields:[Qt,Kt],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[le.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Xn,new Zn,new Yt],fields:[Qt,Kt,mr],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[le.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new Yt],fields:[Qt]},[le.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new ur],fields:[Kt]}};class sl{constructor(){l(this,"block",!1);l(this,"settings",pr);l(this,"chunk",le.Login);l(this,"selectedMethod",mt.Email)}async Block(e){this.block=!0,await e(),this.block=!1}get IsBlock(){return this.block}GetValues(){const e=this.GetFields(),n=new Map;return e.forEach(r=>{r.value&&n.set(r.name,r.value)}),Object.fromEntries(n)}Validate(){if(this.IsRegister){const e=this.GetField(qe.Password),n=this.GetField(qe.PasswordRepeat);if((e==null?void 0:e.value)!==(n==null?void 0:n.value))return["Пароли не совпадают"]}return this.GetFields().map(e=>e.Validate()).flat()}GetFields(){return this.GetCurSet().fields.filter(e=>!e.method||e.method===this.selectedMethod)}GetMethods(){return this.GetCurSet().methods}Chunk(){return this.chunk}get Settings(){return this.settings}GetCurSet(){return this.settings[this.chunk]}get IsLogin(){return this.chunk===le.Login}get IsRegister(){return this.chunk===le.Register}get IsRestore(){return this.chunk===le.Restore}get IsRefresh(){return this.chunk===le.Refresh}SetChunk(e){this.chunk=e}GetTitle(){return this.GetCurSet().title}GetButtons(){const e=this.GetCurSet().buttons;return e.forEach(n=>{n.isSubmit=!1}),e[0].isSubmit=!0,e}GetSuccessMessage(){return this.GetCurSet().successMessage}GetErrorMessage(){return this.GetCurSet().errorMessage}GetAction(){return this.GetCurSet().action}ResetFields(){this.GetCurSet().fields.forEach(e=>e.Reset())}Reset(){this.SetChunk(le.Login),this.ResetFields()}GetField(e){return this.GetFields().find(n=>n.id===e)}}class ol{constructor(){l(this,"visible",!1);l(this,"closable",!1)}get Closable(){return this.closable}get Visible(){return this.visible}Close(){this.visible=!1}Open(e){e&&(this.closable=!0),this.visible=!0}}class gr{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class yr extends gr{constructor(){super(...arguments);l(this,"type",ce.Success);l(this,"text","");l(this,"title","")}showMessage(n,r){this.hide(),this.type=r,typeof n=="string"?this.text=n:(this.text=n.text,this.title=n.title??""),super.show()}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}Info(n){this.showMessage(n,ce.Info)}Success(n){this.showMessage(n,ce.Success)}Error(n){this.showMessage(n,ce.Error)}Warning(n){this.showMessage(n,ce.Warning)}FormMessage(n){let r="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const s of Object.keys(n))n[s][0]&&n[s][0].message&&(r+=`<li>${n[s][0].message}</li>`);return r+="</ul>",r}}class Yn{static Get(e,n,r="-"){return!e||!n?"":`${e}${r}${n}`}static In(e,n,r){return e>=n&&e<=r}static Intersects(e,n,r,s){return e===r||n===s||e>r&&e<s||n>r&&n<s||n>s&&e<r}}const wr=1e3,br=60*wr,Jn=60*br;var vt=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(vt||{});const en={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class D{static S(e){return wr*e}static M(e){return br*e}static H(e){return Jn*e}static D(e){return Jn*e}static W(e){return Jn*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=D.SplitHM(e);return n.length>1?D.HtoM(n[0])+n[1]:D.HtoM(n[0])}static HtoM(e){return Number(e)*60}static SplitHM(e){if(!e)return[];const n=e.split(":");return[Number(n[0]),Number(n[1])]}static HmsToHm(e){const n=D.SplitHM(e);return D.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const r=new Date,s=D.SplitHM(e);r.setHours(s[0],s[1],0,0);const o=new Date(r.getTime()+n*6e4),a=o.getHours(),d=o.getMinutes();return D.ConcatHM(a,d)}static ConcatHM(e,n){return`${e}:${D.NormalizeTime(n)}`}static DiffM(e,n){return D.Gt(n,e)?D.HMtoM(n)-D.HMtoM(e):D.HMtoM(e)-D.HMtoM(n)}static GetPeriod(e,n){return Yn.Get(e,n)}static Gt(e,n){return D.HMtoM(e)>D.HMtoM(n)}static GtOrEq(e,n){return D.Gt(e,n)||D.Eq(e,n)}static Eq(e,n){return D.HMtoM(e)===D.HMtoM(n)}static PeriodInPeriod(e,n,r,s){return D.HMtoM(e)>=D.HMtoM(r)&&D.HMtoM(n)<=D.HMtoM(s)}static PeriodsIntersects(e,n,r,s){return Yn.Intersects(D.HMtoM(e),D.HMtoM(n),D.HMtoM(r),D.HMtoM(s))}}class Nt{static Wait(e,n){return new Promise(r=>setTimeout(()=>r(n),e))}static WaitS(e,n){return Nt.Wait(D.S(e),n)}static WaitM(e,n){return Nt.Wait(D.M(e),n)}}class al extends yr{constructor(){super(...arguments);l(this,"duration",D.S(3));l(this,"instance")}showMessage(n,r){super.showMessage(n,r),this.visible=!0,typeof n!="string"&&(this.duration=n.duration??this.duration),Nt.Wait(this.GetDuration()).then(()=>super.hide())}GetDuration(){return this.duration}Dev(){const n="В режиме разработки",r=ce.Warning;super.showMessage(n,r)}Save(){const n="Изменения успешно сохранены",r=ce.Success;super.showMessage(n,r)}}const ll=new al,ye=i.reactive(ll);class ze{static Get(e){const n=localStorage.getItem(e);if(n)return JSON.parse(n)}static Set(e,n){n&&localStorage.setItem(e,JSON.stringify(n))}static Remove(e){localStorage.removeItem(e)}}var Re=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Re||{});class cl{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return ze.Get(Re.AccessToken)}getRefreshToken(){return ze.Get(Re.RefreshToken)}setAccessToken(e){ze.Set(Re.AccessToken,e)}setRefreshToken(e){ze.Set(Re.RefreshToken,e)}reset(){ze.Remove(Re.AccessToken),ze.Remove(Re.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class dl{constructor(){l(this,"user");l(this,"userConstructor")}AssignTo(e){e.user=this.get()}setUserConstructor(e){this.userConstructor=e}get(){if(!this.userConstructor){console.warn("No userConstructor was set");return}return this.user}set(e){this.userConstructor&&(this.user=new this.userConstructor(e),ze.Set(Re.User,this.user))}reset(){this.user=void 0,ze.Remove(Re.User)}actualize(){const e=ze.Get(Re.User);e&&this.set(e)}}class ul{constructor(){l(this,"isAuth",!1);l(this,"user",new dl);l(this,"tokens",new cl);l(this,"preventLogout",!1)}DeprecateLogout(){this.preventLogout=!0}AllowLogout(){this.preventLogout=!1}get IsAuth(){return this.isAuth}get User(){return this.user.get()}SetUserConstructor(e){this.user.setUserConstructor(e)}SetUser(e){this.user.set(e)}SetState(e){this.SetUser(e.user),this.tokens.set(e.tokens),this.isAuth=!0}Logout(){if(this.preventLogout){ye.Warning("В текущий момент Вы не можете выйти из системы");return}this.user.reset(),this.tokens.reset(),this.isAuth=!1}Actualize(){if(this.user.actualize(),this.tokens.actualize(),this.tokens.getAccessToken()){this.isAuth=!0;return}this.Logout()}}const $t=class $t{constructor(){l(this,"form",i.reactive(new sl));l(this,"status",i.reactive(new ul));l(this,"modal",i.reactive(new ol));if($t.instance)return $t.instance;$t.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}};l($t,"instance");let Qn=$t;const re=new Qn;var Cr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
|
|
2
2
|
Copyright (C) Microsoft. All rights reserved.
|
|
3
3
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
4
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
|
|
12
12
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
13
|
and limitations under the License.
|
|
14
|
-
***************************************************************************** */var Sr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof Cr=="object"?Cr:typeof self=="object"?self:typeof this=="object"?this:d(),r=s(t);typeof n.Reflect<"u"&&(r=s(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function s(c,u){return function(h,f){Object.defineProperty(c,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function o(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return o()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",o=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,h={create:d?function(){return cr(Object.create(null))}:c?function(){return cr({__proto__:null})}:function(){return cr({})},has:u?function(p,y){return r.call(p,y)}:function(p,y){return y in p},get:u?function(p,y){return r.call(p,y)?p[y]:void 0}:function(p,y){return p[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:eg(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:tg(),C=typeof WeakMap=="function"?WeakMap:ng(),b=s?Symbol.for("@reflect-metadata:registry"):void 0,S=Jp(),I=Qp(S);function O(p,y,k,x){if(T(k)){if(!Ua(p))throw new TypeError;if(!ja(y))throw new TypeError;return Up(p,y)}else{if(!Ua(p))throw new TypeError;if(!ne(y))throw new TypeError;if(!ne(x)&&!T(x)&&!Rt(x))throw new TypeError;return Rt(x)&&(x=void 0),k=He(k),jp(p,y,k,x)}}e("decorate",O);function z(p,y){function k(x,V){if(!ne(x))throw new TypeError;if(!T(V)&&!Xp(V))throw new TypeError;Oa(p,y,x,V)}return k}e("metadata",z);function v(p,y,k,x){if(!ne(k))throw new TypeError;return T(x)||(x=He(x)),Oa(p,y,k,x)}e("defineMetadata",v);function H(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=He(k)),Va(p,y,k)}e("hasMetadata",H);function Be(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=He(k)),or(p,y,k)}e("hasOwnMetadata",Be);function $e(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=He(k)),Ta(p,y,k)}e("getMetadata",$e);function nt(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=He(k)),Fa(p,y,k)}e("getOwnMetadata",nt);function It(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=He(y)),Da(p,y)}e("getMetadataKeys",It);function _n(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=He(y)),La(p,y)}e("getOwnMetadataKeys",_n);function qp(p,y,k){if(!ne(y))throw new TypeError;if(T(k)||(k=He(k)),!ne(y))throw new TypeError;T(k)||(k=He(k));var x=Gt(y,k,!1);return T(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",qp);function Up(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],V=x(y);if(!T(V)&&!Rt(V)){if(!ja(V))throw new TypeError;y=V}}return y}function jp(p,y,k,x){for(var V=p.length-1;V>=0;--V){var ae=p[V],ie=ae(y,k,x);if(!T(ie)&&!Rt(ie)){if(!ne(ie))throw new TypeError;x=ie}}return x}function Va(p,y,k){var x=or(p,y,k);if(x)return!0;var V=lr(y);return Rt(V)?!1:Va(p,V,k)}function or(p,y,k){var x=Gt(y,k,!1);return T(x)?!1:qa(x.OrdinaryHasOwnMetadata(p,y,k))}function Ta(p,y,k){var x=or(p,y,k);if(x)return Fa(p,y,k);var V=lr(y);if(!Rt(V))return Ta(p,V,k)}function Fa(p,y,k){var x=Gt(y,k,!1);if(!T(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Oa(p,y,k,x){var V=Gt(k,x,!0);V.OrdinaryDefineOwnMetadata(p,y,k,x)}function Da(p,y){var k=La(p,y),x=lr(p);if(x===null)return k;var V=Da(x,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var ae=new g,ie=[],q=0,M=k;q<M.length;q++){var B=M[q],R=ae.has(B);R||(ae.add(B),ie.push(B))}for(var N=0,U=V;N<U.length;N++){var B=U[N],R=ae.has(B);R||(ae.add(B),ie.push(B))}return ie}function La(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function Ha(p){if(p===null)return 1;switch(typeof p){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return p===null?1:6;default:return 6}}function T(p){return p===void 0}function Rt(p){return p===null}function _p(p){return typeof p=="symbol"}function ne(p){return typeof p=="object"?p!==null:typeof p=="function"}function Wp(p,y){switch(Ha(p)){case 0:return p;case 1:return p;case 2:return p;case 3:return p;case 4:return p;case 5:return p}var k="string",x=_a(p,o);if(x!==void 0){var V=x.call(p,k);if(ne(V))throw new TypeError;return V}return Gp(p)}function Gp(p,y){var k,x;{var V=p.toString;if(Wn(V)){var x=V.call(p);if(!ne(x))return x}var k=p.valueOf;if(Wn(k)){var x=k.call(p);if(!ne(x))return x}}throw new TypeError}function qa(p){return!!p}function Zp(p){return""+p}function He(p){var y=Wp(p);return _p(y)?y:Zp(y)}function Ua(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function Wn(p){return typeof p=="function"}function ja(p){return typeof p=="function"}function Xp(p){switch(Ha(p)){case 3:return!0;case 4:return!0;default:return!1}}function ar(p,y){return p===y||p!==p&&y!==y}function _a(p,y){var k=p[y];if(k!=null){if(!Wn(k))throw new TypeError;return k}}function Wa(p){var y=_a(p,a);if(!Wn(y))throw new TypeError;var k=y.call(p);if(!ne(k))throw new TypeError;return k}function Ga(p){return p.value}function Za(p){var y=p.next();return y.done?!1:y}function Xa(p){var y=p.return;y&&y.call(p)}function lr(p){var y=Object.getPrototypeOf(p);if(typeof p!="function"||p===f||y!==f)return y;var k=p.prototype,x=k&&Object.getPrototypeOf(k);if(x==null||x===Object.prototype)return y;var V=x.constructor;return typeof V!="function"||V===p?y:V}function Yp(){var p;!T(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Kp(n.Reflect));var y,k,x,V=new C,ae={registerProvider:ie,getProvider:M,setProvider:R};return ae;function ie(N){if(!Object.isExtensible(ae))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===N:break;case T(y):y=N;break;case y===N:break;case T(k):k=N;break;case k===N:break;default:x===void 0&&(x=new g),x.add(N);break}}function q(N,U){if(!T(y)){if(y.isProviderFor(N,U))return y;if(!T(k)){if(k.isProviderFor(N,U))return y;if(!T(x))for(var X=Wa(x);;){var Q=Za(X);if(!Q)return;var Ae=Ga(Q);if(Ae.isProviderFor(N,U))return Xa(X),Ae}}}if(!T(p)&&p.isProviderFor(N,U))return p}function M(N,U){var X=V.get(N),Q;return T(X)||(Q=X.get(U)),T(Q)&&(Q=q(N,U),T(Q)||(T(X)&&(X=new m,V.set(N,X)),X.set(U,Q))),Q}function B(N){if(T(N))throw new TypeError;return y===N||k===N||!T(x)&&x.has(N)}function R(N,U,X){if(!B(X))throw new Error("Metadata provider not registered.");var Q=M(N,U);if(Q!==X){if(!T(Q))return!1;var Ae=V.get(N);T(Ae)&&(Ae=new m,V.set(N,Ae)),Ae.set(U,X)}return!0}}function Jp(){var p;return!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[b]),T(p)&&(p=Yp()),!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function Qp(p){var y=new C,k={isProviderFor:function(B,R){var N=y.get(B);return T(N)?!1:N.has(R)},OrdinaryDefineOwnMetadata:ie,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:ae,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return S.registerProvider(k),k;function x(B,R,N){var U=y.get(B),X=!1;if(T(U)){if(!N)return;U=new m,y.set(B,U),X=!0}var Q=U.get(R);if(T(Q)){if(!N)return;if(Q=new m,U.set(R,Q),!p.setProvider(B,R,k))throw U.delete(R),X&&y.delete(B),new Error("Wrong provider for target.")}return Q}function V(B,R,N){var U=x(R,N,!1);return T(U)?!1:qa(U.has(B))}function ae(B,R,N){var U=x(R,N,!1);if(!T(U))return U.get(B)}function ie(B,R,N,U){var X=x(N,U,!0);X.set(B,R)}function q(B,R){var N=[],U=x(B,R,!1);if(T(U))return N;for(var X=U.keys(),Q=Wa(X),Ae=0;;){var Ya=Za(Q);if(!Ya)return N.length=Ae,N;var ig=Ga(Ya);try{N[Ae]=ig}catch(rg){try{Xa(Q)}finally{throw rg}}Ae++}}function M(B,R,N){var U=x(R,N,!1);if(T(U)||!U.delete(B))return!1;if(U.size===0){var X=y.get(R);T(X)||(X.delete(N),X.size===0&&y.delete(X))}return!0}}function Kp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,V=p.getOwnMetadataKeys,ae=p.deleteMetadata,ie=new C,q={isProviderFor:function(M,B){var R=ie.get(M);return!T(R)&&R.has(B)?!0:V(M,B).length?(T(R)&&(R=new g,ie.set(M,R)),R.add(B),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:ae};return q}function Gt(p,y,k){var x=S.getProvider(p,y);if(!T(x))return x;if(k){if(S.setProvider(p,y,I))return I;throw new Error("Illegal state.")}}function eg(){var p={},y=[],k=function(){function q(M,B,R){this._index=0,this._keys=M,this._values=B,this._selector=R}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var B=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:B,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),x=function(){function q(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var B=this._find(M,!1);return B>=0?this._values[B]:void 0},q.prototype.set=function(M,B){var R=this._find(M,!0);return this._values[R]=B,this},q.prototype.delete=function(M){var B=this._find(M,!1);if(B>=0){for(var R=this._keys.length,N=B+1;N<R;N++)this._keys[N-1]=this._keys[N],this._values[N-1]=this._values[N];return this._keys.length--,this._values.length--,ar(M,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,ae)},q.prototype.entries=function(){return new k(this._keys,this._values,ie)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,B){if(!ar(this._cacheKey,M)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(ar(this._keys[R],M)){this._cacheIndex=R;break}}return this._cacheIndex<0&&B&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return x;function V(q,M){return q}function ae(q,M){return M}function ie(q,M){return[q,M]}}function tg(){var p=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return p}function ng(){var p=16,y=h.create(),k=x();return function(){function M(){this._key=x()}return M.prototype.has=function(B){var R=V(B,!1);return R!==void 0?h.has(R,this._key):!1},M.prototype.get=function(B){var R=V(B,!1);return R!==void 0?h.get(R,this._key):void 0},M.prototype.set=function(B,R){var N=V(B,!0);return N[this._key]=R,this},M.prototype.delete=function(B){var R=V(B,!1);return R!==void 0?delete R[this._key]:!1},M.prototype.clear=function(){this._key=x()},M}();function x(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,B){if(!r.call(M,k)){if(!B)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function ae(M,B){for(var R=0;R<B;++R)M[R]=Math.random()*255|0;return M}function ie(M){if(typeof Uint8Array=="function"){var B=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues(B):typeof msCrypto<"u"?msCrypto.getRandomValues(B):ae(B,M),B}return ae(new Array(M),M)}function q(){var M=ie(p);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var B="",R=0;R<p;++R){var N=M[R];(R===4||R===6||R===8)&&(B+="-"),N<16&&(B+="0"),B+=N.toString(16).toLowerCase()}return B}}function cr(p){return p.__=void 0,delete p.__,p}})})(Sr||(Sr={}));let tn;const fl=new Uint8Array(16);function ml(){if(!tn&&(tn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tn(fl)}const de=[];for(let t=0;t<256;++t)de.push((t+256).toString(16).slice(1));function pl(t,e=0){return de[t[e+0]]+de[t[e+1]]+de[t[e+2]]+de[t[e+3]]+"-"+de[t[e+4]]+de[t[e+5]]+"-"+de[t[e+6]]+de[t[e+7]]+"-"+de[t[e+8]]+de[t[e+9]]+"-"+de[t[e+10]]+de[t[e+11]]+de[t[e+12]]+de[t[e+13]]+de[t[e+14]]+de[t[e+15]]}const kr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xe(t,e,n){if(kr.randomUUID&&!t)return kr.randomUUID();t=t||{};const r=t.random||(t.rng||ml)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,pl(r)}class ee{static UUID(){return Xe()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}class _{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((s,o)=>o===0?s.toLowerCase():_.Capitalize(s.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,s=>{if(s===s.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===s);return a||""}const o=Object.keys(r).find(a=>r[a]===s.toLowerCase());return o?o.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,s=>s===s.toLowerCase()?r[s]:r[s.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const r=e.toLowerCase().replaceAll(/\s/g,""),s=n.toLowerCase().replaceAll(/\s/g,""),o=_.Translit(r),a=_.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return _.StringsEquals(e,n)}static SearchInFields(e,n){let r=!1;for(let s=0;s<n.length;s++)if(_.SearchIn(n[s],e)){r=!0;break}return r}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const s=r??"highlight-text",o=new RegExp(_.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="${s}">$&</span>`)}static GetVariants(e){const n=_.Translit(e);return[e,_.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,_.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const Ke=class Ke{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const s=n[r];if(this.isPrimitive(s))e[r]instanceof Date?e[r]=new Date(s):e[r]=s;else if(s!=null&&!Array.isArray(s))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(s);else{const o=Reflect.getMetadata(r,e);o&&(e[r]=new o[r](s))}if(Array.isArray(s)){if(s.length===0)return;const o=Reflect.getMetadata(r,e);o&&(e[r]=s.map(a=>new o[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){Ke.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Ke.RemoveFromClass(s,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const s=n[e].id;s&&r&&r.push(s),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,s){return s}})}static InitClassInstance(e,n){const r=e.constructor(n);return Ke.BuildClass(r),r.id=ee.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Ke.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Ke.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(_.TrimText)(e)}};l(Ke,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let $=Ke;class rt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");$.BuildClass(this,e)}static Create(){const e=new rt;return e.id=ee.UUID(),e}}class Kn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Kn,"staticUrl","");class fe{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);$.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Kn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new fe;return r.id=n??ee.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=ee.UUID(),r}setFile(e){this.id||(this.id=ee.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=ee.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Er{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);$.BuildClass(this,e)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=_.Capitalize(this.name),this.surname=_.Capitalize(this.surname),this.patronymic=_.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class st{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");$.BuildClass(this,e)}static Create(){const e=new st;return e.id=ee.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");$.BuildClass(this,e)}}class ei{constructor(e){l(this,"id");l(this,"address");l(this,"description");$.BuildClass(this,e)}}let gl=(et=class{},l(et,"Phone",st),l(et,"FileInfo",fe),l(et,"PostAddress",nn),l(et,"Website",ei),l(et,"Email",rt),l(et,"Human",Er),et);class Ue{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(s,o)=>e+o*r)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,r)=>n.order=r)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((r,s)=>e[s]==n[s]))}static SwipeById(e,n,r){const s=e.findIndex(a=>n.id===a.id),o=e.findIndex(a=>r.id===a.id);s||o||([e[s],e[o]]=[e[o],e[s]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const s=e[n];e[n]=e[r],e[r]=s}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var se=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(se||{}),me=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(me||{}),yl=Object.defineProperty,wl=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&yl(e,n,s),s};const xr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",me.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",se.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");$.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===se.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===me.In?n&&Ue.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===se.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===se.String?this.value1===(e==null?void 0:e.value1):this.type===se.Join&&this.set.length?Ue.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",r=this.col?`"col":"${this.col}"`:"",s=this.operator?`"operator":"${this.operator}"`:"",o=this.value1?`"value1":"${this.value1}"`:"",a=this.type===se.Boolean?`"boolean":${this.boolean}`:"",d=this.type===se.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===se.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===se.Number?`"number":${this.number}`:"",h=this.type===se.Set||this.operator===me.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===se.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,s,o,a,d,c,u,h,f].filter(m=>m!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===me.Eq||this.operator===me.Gt||this.operator===me.Lt}isBetweenFilter(){return this.operator===me.Btw}isSetFilter(){return this.operator===me.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===se.Number&&(s.value1="0"),s.type===se.String&&(s.value1=""),s.type===se.Boolean&&(s.value1="false",s.operator=me.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Xe(),u.joinTable=r,u.joinTablePk=s,u.joinTableFk=o,u.col=n,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,n,r,s,o,a,d){const c=new Zt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=se.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Xe(),r.model=_.ToCamelCase(e.GetClassName()),r.joinTableModel=_.ToCamelCase(n.GetClassName()),r.type=se.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=me.Eq;return}this.setDate2(n),this.operator=me.Btw}};wl([$.GetClassConstructor(String)],xr.prototype,"set");let ti=xr;class bl{constructor(){l(this,"operation",me.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,s=r?`"value":"${r}"`:"",o=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,s,o,a].filter(d=>d!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class rn{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new bl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");$.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,s=`"append":${this.append}`,o=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,s,o,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,$.BuildClass(this)}}var Ee=(t=>(t.Asc="asc",t.Desc="desc",t))(Ee||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);$.BuildClass(this,e)}static Create(e,n,r=Ee.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ee.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===Ee.Asc}isDesc(){return this.order===Ee.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=Ee.Asc}desc(){this.order=Ee.Desc}}class on{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new on;return r.model=e.GetClassName(),r.cols=n,r}}var Cl=Object.defineProperty,an=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Cl(e,n,s),s};const At=(Se=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);$.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Se),this.instance}createFrom(e){const n=new Se(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Se(this);return e.f=this.f.map(n=>Se.EmptyEntiries(n)),e.s=this.s.map(n=>Se.EmptyEntiries(n)),e.p=Se.EmptyEntiries(this.p),e.t=Se.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([s,o])=>s!=="label"&&o!==""&&o!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return Ue.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));$.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Se,"instance"),Se);an([$.GetClassConstructor(ti)],At.prototype,"f"),an([$.GetClassConstructor(sn)],At.prototype,"s"),an([$.GetClassConstructor(rn)],At.prototype,"p"),an([$.GetClassConstructor(on)],At.prototype,"t");let je=At,Sl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ti),l(Wt,"FTSP",i.reactive(je)),Wt);function Mr(t,e){return function(){return t.apply(e,arguments)}}const{toString:kl}=Object.prototype,{getPrototypeOf:ni}=Object,ln=(t=>e=>{const n=kl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ve=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:pt}=Array,Pt=cn("undefined");function El(t){return t!==null&&!Pt(t)&&t.constructor!==null&&!Pt(t.constructor)&&Ce(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Br=ve("ArrayBuffer");function xl(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Br(t.buffer),e}const Ml=cn("string"),Ce=cn("function"),$r=cn("number"),dn=t=>t!==null&&typeof t=="object",Bl=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ni(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},$l=ve("Date"),Il=ve("File"),Rl=ve("Blob"),vl=ve("FileList"),Nl=t=>dn(t)&&Ce(t.pipe),Al=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ce(t.append)&&((e=ln(t))==="formdata"||e==="object"&&Ce(t.toString)&&t.toString()==="[object FormData]"))},Pl=ve("URLSearchParams"),[zl,Vl,Tl,Fl]=["ReadableStream","Request","Response","Headers"].map(ve),Ol=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),pt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let d;for(r=0;r<a;r++)d=o[r],e.call(null,t[d],d,t)}}function Ir(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rr=t=>!Pt(t)&&t!==ot;function ii(){const{caseless:t}=Rr(this)&&this||{},e={},n=(r,s)=>{const o=t&&Ir(e,s)||s;un(e[o])&&un(r)?e[o]=ii(e[o],r):un(r)?e[o]=ii({},r):pt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&zt(arguments[r],n);return e}const Dl=(t,e,n,{allOwnKeys:r}={})=>(zt(e,(s,o)=>{n&&Ce(s)?t[o]=Mr(s,n):t[o]=s},{allOwnKeys:r}),t),Ll=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Hl=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},ql=(t,e,n,r)=>{let s,o,a;const d={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)a=s[o],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&ni(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ul=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},jl=t=>{if(!t)return null;if(pt(t))return t;let e=t.length;if(!$r(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_l=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ni(Uint8Array)),Wl=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Gl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Zl=ve("HTMLFormElement"),Xl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),vr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Yl=ve("RegExp"),Nr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};zt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},Jl=t=>{Nr(t,(e,n)=>{if(Ce(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ce(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ql=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return pt(t)?r(t):r(String(t).split(e)),n},Kl=()=>{},ec=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ri="abcdefghijklmnopqrstuvwxyz",Ar="0123456789",Pr={DIGIT:Ar,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+Ar},tc=(t=16,e=Pr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function nc(t){return!!(t&&Ce(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ic=t=>{const e=new Array(10),n=(r,s)=>{if(dn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=pt(r)?[]:{};return zt(r,(a,d)=>{const c=n(a,s+1);!Pt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},rc=ve("AsyncFunction"),sc=t=>t&&(dn(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),zr=((t,e)=>t?setImmediate:e?((n,r)=>(ot.addEventListener("message",({source:s,data:o})=>{s===ot&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(ot.postMessage)),oc=typeof queueMicrotask<"u"?queueMicrotask.bind(ot):typeof process<"u"&&process.nextTick||zr,w={isArray:pt,isArrayBuffer:Br,isBuffer:El,isFormData:Al,isArrayBufferView:xl,isString:Ml,isNumber:$r,isBoolean:Bl,isObject:dn,isPlainObject:un,isReadableStream:zl,isRequest:Vl,isResponse:Tl,isHeaders:Fl,isUndefined:Pt,isDate:$l,isFile:Il,isBlob:Rl,isRegExp:Yl,isFunction:Ce,isStream:Nl,isURLSearchParams:Pl,isTypedArray:_l,isFileList:vl,forEach:zt,merge:ii,extend:Dl,trim:Ol,stripBOM:Ll,inherits:Hl,toFlatObject:ql,kindOf:ln,kindOfTest:ve,endsWith:Ul,toArray:jl,forEachEntry:Wl,matchAll:Gl,isHTMLForm:Zl,hasOwnProperty:vr,hasOwnProp:vr,reduceDescriptors:Nr,freezeMethods:Jl,toObjectSet:Ql,toCamelCase:Xl,noop:Kl,toFiniteNumber:ec,findKey:Ir,global:ot,isContextDefined:Rr,ALPHABET:Pr,generateString:tc,isSpecCompliantForm:nc,toJSONObject:ic,isAsyncFn:rc,isThenable:sc,setImmediate:zr,asap:oc};function F(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}w.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Vr=F.prototype,Tr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Tr[t]={value:t}}),Object.defineProperties(F,Tr),Object.defineProperty(Vr,"isAxiosError",{value:!0}),F.from=(t,e,n,r,s,o)=>{const a=Object.create(Vr);return w.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const ac=null;function si(t){return w.isPlainObject(t)||w.isArray(t)}function Fr(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Or(t,e,n){return t?t.concat(e).map(function(s,o){return s=Fr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function lc(t){return w.isArray(t)&&!t.some(si)}const cc=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!w.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!w.isUndefined(S[b])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(w.isDate(C))return C.toISOString();if(!c&&w.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(C)||w.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,b,S){let I=C;if(C&&!S&&typeof C=="object"){if(w.endsWith(b,"{}"))b=r?b:b.slice(0,-2),C=JSON.stringify(C);else if(w.isArray(C)&&lc(C)||(w.isFileList(C)||w.endsWith(b,"[]"))&&(I=w.toArray(C)))return b=Fr(b),I.forEach(function(z,v){!(w.isUndefined(z)||z===null)&&e.append(a===!0?Or([b],v,o):a===null?b:b+"[]",u(z))}),!1}return si(C)?!0:(e.append(Or(S,b,o),u(C)),!1)}const f=[],m=Object.assign(cc,{defaultVisitor:h,convertValue:u,isVisitable:si});function g(C,b){if(!w.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(C),w.forEach(C,function(I,O){(!(w.isUndefined(I)||I===null)&&s.call(e,I,w.isString(O)?O.trim():O,b,m))===!0&&g(I,b?b.concat(O):[O])}),f.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Dr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function oi(t,e){this._pairs=[],t&&hn(t,this,e)}const Lr=oi.prototype;Lr.append=function(e,n){this._pairs.push([e,n])},Lr.toString=function(e){const n=e?function(r){return e.call(this,r,Dr)}:Dr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function dc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hr(t,e,n){if(!e)return t;const r=n&&n.encode||dc;w.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=w.isURLSearchParams(e)?e.toString():new oi(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class qr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ur={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:oi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ai=typeof window<"u"&&typeof document<"u",li=typeof navigator=="object"&&navigator||void 0,hc=ai&&(!li||["ReactNative","NativeScript","NS"].indexOf(li.product)<0),fc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mc=ai&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ai,hasStandardBrowserEnv:hc,hasStandardBrowserWebWorkerEnv:fc,navigator:li,origin:mc},Symbol.toStringTag,{value:"Module"})),...uc};function pc(t,e){return hn(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function gc(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function yc(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function jr(t){function e(n,r,s,o){let a=n[o++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=o>=n.length;return a=!a&&w.isArray(s)?s.length:a,c?(w.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!w.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&w.isArray(s[a])&&(s[a]=yc(s[a])),!d)}if(w.isFormData(t)&&w.isFunction(t.entries)){const n={};return w.forEachEntry(t,(r,s)=>{e(gc(r),s,n,0)}),n}return null}function wc(t,e,n){if(w.isString(t))try{return(e||JSON.parse)(t),w.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Ur,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=w.isObject(e);if(o&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return s?JSON.stringify(jr(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return pc(e,this.formSerializer).toString();if((d=w.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return hn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),wc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const bc=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cc=t=>{const e={};let n,r,s;return t&&t.split(`
|
|
15
|
-
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||e[n]&&
|
|
16
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[_r]=this[_r]={accessors:{}}).accessors,s=this.prototype;function o(a){const d=Tt(a);r[d]||(xc(s,a),r[d]=!0)}return w.isArray(e)?e.forEach(o):o(e),this}}we.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(we.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),w.freezeMethods(we);function di(t,e){const n=this||Vt,r=e||n,s=we.from(r.headers);let o=r.data;return w.forEach(t,function(d){o=d.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Wr(t){return!!(t&&t.__CANCEL__)}function gt(t,e,n){F.call(this,t??"canceled",F.ERR_CANCELED,e,n),this.name="CanceledError"}w.inherits(gt,F,{__CANCEL__:!0});function Gr(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mc(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Bc(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),h=r[o];a||(a=u),n[s]=c,r[s]=u;let f=o,m=0;for(;f!==s;)m+=n[f++],f=f%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-a<e)return;const g=h&&u-h;return g?Math.round(m*1e3/g):void 0}}function $c(t,e){let n=0,r=1e3/e,s,o;const a=(u,h=Date.now())=>{n=h,s=null,o&&(clearTimeout(o),o=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?a(u,h):(s=u,o||(o=setTimeout(()=>{o=null,a(s)},r-f)))},()=>s&&a(s)]}const mn=(t,e,n=3)=>{let r=0;const s=Bc(50,250);return $c(o=>{const a=o.loaded,d=o.lengthComputable?o.total:void 0,c=a-r,u=s(c),h=a<=d;r=a;const f={loaded:a,total:d,progress:d?a/d:void 0,bytes:c,rate:u||void 0,estimated:u&&d&&h?(d-a)/u:void 0,event:o,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(f)},n)},Zr=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Xr=t=>(...e)=>w.asap(()=>t(...e)),Ic=pe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,pe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,Rc=pe.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const a=[t+"="+encodeURIComponent(e)];w.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),w.isString(r)&&a.push("path="+r),w.isString(s)&&a.push("domain="+s),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vc(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Nc(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Yr(t,e){return t&&!vc(e)?Nc(t,e):e}const Jr=t=>t instanceof we?{...t}:t;function at(t,e){e=e||{};const n={};function r(u,h,f,m){return w.isPlainObject(u)&&w.isPlainObject(h)?w.merge.call({caseless:m},u,h):w.isPlainObject(h)?w.merge({},h):w.isArray(h)?h.slice():h}function s(u,h,f,m){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u,f,m)}else return r(u,h,f,m)}function o(u,h){if(!w.isUndefined(h))return r(void 0,h)}function a(u,h){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function d(u,h,f){if(f in e)return r(u,h);if(f in t)return r(void 0,u)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:d,headers:(u,h,f)=>s(Jr(u),Jr(h),f,!0)};return w.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=c[h]||s,m=f(t[h],e[h],h);w.isUndefined(m)&&f!==d||(n[h]=m)}),n}const Qr=t=>{const e=at({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:d}=e;e.headers=a=we.from(a),e.url=Hr(Yr(e.baseURL,e.url),t.params,t.paramsSerializer),d&&a.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let c;if(w.isFormData(n)){if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...h]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(pe.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(e)),r||r!==!1&&Ic(e.url))){const u=s&&o&&Rc.read(o);u&&a.set(s,u)}return e},Ac=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const s=Qr(t);let o=s.data;const a=we.from(s.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=s,h,f,m,g,C;function b(){g&&g(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let S=new XMLHttpRequest;S.open(s.method.toUpperCase(),s.url,!0),S.timeout=s.timeout;function I(){if(!S)return;const z=we.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:z,config:t,request:S};Gr(function($e){n($e),b()},function($e){r($e),b()},H),S=null}"onloadend"in S?S.onloadend=I:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(I)},S.onabort=function(){S&&(r(new F("Request aborted",F.ECONNABORTED,t,S)),S=null)},S.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let v=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const H=s.transitional||Ur;s.timeoutErrorMessage&&(v=s.timeoutErrorMessage),r(new F(v,H.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,S)),S=null},o===void 0&&a.setContentType(null),"setRequestHeader"in S&&w.forEach(a.toJSON(),function(v,H){S.setRequestHeader(H,v)}),w.isUndefined(s.withCredentials)||(S.withCredentials=!!s.withCredentials),d&&d!=="json"&&(S.responseType=s.responseType),u&&([m,C]=mn(u,!0),S.addEventListener("progress",m)),c&&S.upload&&([f,g]=mn(c),S.upload.addEventListener("progress",f),S.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(h=z=>{S&&(r(!z||z.type?new gt(null,t,S):z),S.abort(),S=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const O=Mc(s.url);if(O&&pe.protocols.indexOf(O)===-1){r(new F("Unsupported protocol "+O+":",F.ERR_BAD_REQUEST,t));return}S.send(o||null)})},Pc=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,d();const h=u instanceof Error?u:this.reason;r.abort(h instanceof F?h:new gt(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,o(new F(`timeout ${e} of ms exceeded`,F.ETIMEDOUT))},e);const d=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>w.asap(d),c}},zc=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},Vc=async function*(t,e){for await(const n of Tc(t))yield*zc(n,e)},Tc=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Kr=(t,e,n,r)=>{const s=Vc(t,e);let o=0,a,d=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:h}=await s.next();if(u){d(),c.close();return}let f=h.byteLength;if(n){let m=o+=f;n(m)}c.enqueue(new Uint8Array(h))}catch(u){throw d(u),u}},cancel(c){return d(c),s.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",es=pn&&typeof ReadableStream=="function",Fc=pn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ts=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Oc=es&&ts(()=>{let t=!1;const e=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ns=64*1024,ui=es&&ts(()=>w.isReadableStream(new Response("").body)),gn={stream:ui&&(t=>t.body)};pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!gn[e]&&(gn[e]=w.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new F(`Response type '${e}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const Dc=async t=>{if(t==null)return 0;if(w.isBlob(t))return t.size;if(w.isSpecCompliantForm(t))return(await new Request(pe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(w.isArrayBufferView(t)||w.isArrayBuffer(t))return t.byteLength;if(w.isURLSearchParams(t)&&(t=t+""),w.isString(t))return(await Fc(t)).byteLength},Lc=async(t,e)=>{const n=w.toFiniteNumber(t.getContentLength());return n??Dc(e)},hi={http:ac,xhr:Ac,fetch:pn&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:d,onUploadProgress:c,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:m}=Qr(t);u=u?(u+"").toLowerCase():"text";let g=Pc([s,o&&o.toAbortSignal()],a),C;const b=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let S;try{if(c&&Oc&&n!=="get"&&n!=="head"&&(S=await Lc(h,r))!==0){let H=new Request(e,{method:"POST",body:r,duplex:"half"}),Be;if(w.isFormData(r)&&(Be=H.headers.get("content-type"))&&h.setContentType(Be),H.body){const[$e,nt]=Zr(S,mn(Xr(c)));r=Kr(H.body,ns,$e,nt)}}w.isString(f)||(f=f?"include":"omit");const I="credentials"in Request.prototype;C=new Request(e,{...m,signal:g,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:I?f:void 0});let O=await fetch(C);const z=ui&&(u==="stream"||u==="response");if(ui&&(d||z&&b)){const H={};["status","statusText","headers"].forEach(It=>{H[It]=O[It]});const Be=w.toFiniteNumber(O.headers.get("content-length")),[$e,nt]=d&&Zr(Be,mn(Xr(d),!0))||[];O=new Response(Kr(O.body,ns,$e,()=>{nt&&nt(),b&&b()}),H)}u=u||"text";let v=await gn[w.findKey(gn,u)||"text"](O,t);return!z&&b&&b(),await new Promise((H,Be)=>{Gr(H,Be,{data:v,headers:we.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:C})})}catch(I){throw b&&b(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,t,C),{cause:I.cause||I}):F.from(I,I&&I.code,t,C)}})};w.forEach(hi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const is=t=>`- ${t}`,Hc=t=>w.isFunction(t)||t===null||t===!1,rs={getAdapter:t=>{t=w.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let a;if(r=n,!Hc(n)&&(r=hi[(a=String(n)).toLowerCase()],r===void 0))throw new F(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+o]=r}if(!r){const o=Object.entries(s).map(([d,c])=>`adapter ${d} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
|
|
14
|
+
***************************************************************************** */var Sr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof Cr=="object"?Cr:typeof self=="object"?self:typeof this=="object"?this:d(),r=s(t);typeof n.Reflect<"u"&&(r=s(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function s(c,u){return function(h,f){Object.defineProperty(c,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function o(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function d(){return o()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,s=typeof Symbol=="function",o=s&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=s&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",d=typeof Object.create=="function",c={__proto__:[]}instanceof Array,u=!d&&!c,h={create:d?function(){return cr(Object.create(null))}:c?function(){return cr({__proto__:null})}:function(){return cr({})},has:u?function(p,y){return r.call(p,y)}:function(p,y){return y in p},get:u?function(p,y){return r.call(p,y)?p[y]:void 0}:function(p,y){return p[y]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Gp(),g=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Zp(),C=typeof WeakMap=="function"?WeakMap:Xp(),b=s?Symbol.for("@reflect-metadata:registry"):void 0,S=_p(),I=jp(S);function O(p,y,k,x){if(T(k)){if(!qa(p))throw new TypeError;if(!Ua(y))throw new TypeError;return Tp(p,y)}else{if(!qa(p))throw new TypeError;if(!ne(y))throw new TypeError;if(!ne(x)&&!T(x)&&!Rt(x))throw new TypeError;return Rt(x)&&(x=void 0),k=He(k),Fp(p,y,k,x)}}e("decorate",O);function P(p,y){function k(x,V){if(!ne(x))throw new TypeError;if(!T(V)&&!qp(V))throw new TypeError;Fa(p,y,x,V)}return k}e("metadata",P);function v(p,y,k,x){if(!ne(k))throw new TypeError;return T(x)||(x=He(x)),Fa(p,y,k,x)}e("defineMetadata",v);function H(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=He(k)),Pa(p,y,k)}e("hasMetadata",H);function Be(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=He(k)),or(p,y,k)}e("hasOwnMetadata",Be);function $e(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=He(k)),Va(p,y,k)}e("getMetadata",$e);function nt(p,y,k){if(!ne(y))throw new TypeError;return T(k)||(k=He(k)),Ta(p,y,k)}e("getOwnMetadata",nt);function It(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=He(y)),Oa(p,y)}e("getMetadataKeys",It);function jn(p,y){if(!ne(p))throw new TypeError;return T(y)||(y=He(y)),Da(p,y)}e("getOwnMetadataKeys",jn);function Vp(p,y,k){if(!ne(y))throw new TypeError;if(T(k)||(k=He(k)),!ne(y))throw new TypeError;T(k)||(k=He(k));var x=Gt(y,k,!1);return T(x)?!1:x.OrdinaryDeleteMetadata(p,y,k)}e("deleteMetadata",Vp);function Tp(p,y){for(var k=p.length-1;k>=0;--k){var x=p[k],V=x(y);if(!T(V)&&!Rt(V)){if(!Ua(V))throw new TypeError;y=V}}return y}function Fp(p,y,k,x){for(var V=p.length-1;V>=0;--V){var ae=p[V],ie=ae(y,k,x);if(!T(ie)&&!Rt(ie)){if(!ne(ie))throw new TypeError;x=ie}}return x}function Pa(p,y,k){var x=or(p,y,k);if(x)return!0;var V=lr(y);return Rt(V)?!1:Pa(p,V,k)}function or(p,y,k){var x=Gt(y,k,!1);return T(x)?!1:Ha(x.OrdinaryHasOwnMetadata(p,y,k))}function Va(p,y,k){var x=or(p,y,k);if(x)return Ta(p,y,k);var V=lr(y);if(!Rt(V))return Va(p,V,k)}function Ta(p,y,k){var x=Gt(y,k,!1);if(!T(x))return x.OrdinaryGetOwnMetadata(p,y,k)}function Fa(p,y,k,x){var V=Gt(k,x,!0);V.OrdinaryDefineOwnMetadata(p,y,k,x)}function Oa(p,y){var k=Da(p,y),x=lr(p);if(x===null)return k;var V=Oa(x,y);if(V.length<=0)return k;if(k.length<=0)return V;for(var ae=new g,ie=[],q=0,M=k;q<M.length;q++){var B=M[q],R=ae.has(B);R||(ae.add(B),ie.push(B))}for(var N=0,U=V;N<U.length;N++){var B=U[N],R=ae.has(B);R||(ae.add(B),ie.push(B))}return ie}function Da(p,y){var k=Gt(p,y,!1);return k?k.OrdinaryOwnMetadataKeys(p,y):[]}function La(p){if(p===null)return 1;switch(typeof p){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return p===null?1:6;default:return 6}}function T(p){return p===void 0}function Rt(p){return p===null}function Op(p){return typeof p=="symbol"}function ne(p){return typeof p=="object"?p!==null:typeof p=="function"}function Dp(p,y){switch(La(p)){case 0:return p;case 1:return p;case 2:return p;case 3:return p;case 4:return p;case 5:return p}var k="string",x=_a(p,o);if(x!==void 0){var V=x.call(p,k);if(ne(V))throw new TypeError;return V}return Lp(p)}function Lp(p,y){var k,x;{var V=p.toString;if(Wn(V)){var x=V.call(p);if(!ne(x))return x}var k=p.valueOf;if(Wn(k)){var x=k.call(p);if(!ne(x))return x}}throw new TypeError}function Ha(p){return!!p}function Hp(p){return""+p}function He(p){var y=Dp(p);return Op(y)?y:Hp(y)}function qa(p){return Array.isArray?Array.isArray(p):p instanceof Object?p instanceof Array:Object.prototype.toString.call(p)==="[object Array]"}function Wn(p){return typeof p=="function"}function Ua(p){return typeof p=="function"}function qp(p){switch(La(p)){case 3:return!0;case 4:return!0;default:return!1}}function ar(p,y){return p===y||p!==p&&y!==y}function _a(p,y){var k=p[y];if(k!=null){if(!Wn(k))throw new TypeError;return k}}function ja(p){var y=_a(p,a);if(!Wn(y))throw new TypeError;var k=y.call(p);if(!ne(k))throw new TypeError;return k}function Wa(p){return p.value}function Ga(p){var y=p.next();return y.done?!1:y}function Za(p){var y=p.return;y&&y.call(p)}function lr(p){var y=Object.getPrototypeOf(p);if(typeof p!="function"||p===f||y!==f)return y;var k=p.prototype,x=k&&Object.getPrototypeOf(k);if(x==null||x===Object.prototype)return y;var V=x.constructor;return typeof V!="function"||V===p?y:V}function Up(){var p;!T(b)&&typeof n.Reflect<"u"&&!(b in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(p=Wp(n.Reflect));var y,k,x,V=new C,ae={registerProvider:ie,getProvider:M,setProvider:R};return ae;function ie(N){if(!Object.isExtensible(ae))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case p===N:break;case T(y):y=N;break;case y===N:break;case T(k):k=N;break;case k===N:break;default:x===void 0&&(x=new g),x.add(N);break}}function q(N,U){if(!T(y)){if(y.isProviderFor(N,U))return y;if(!T(k)){if(k.isProviderFor(N,U))return y;if(!T(x))for(var X=ja(x);;){var Q=Ga(X);if(!Q)return;var Ae=Wa(Q);if(Ae.isProviderFor(N,U))return Za(X),Ae}}}if(!T(p)&&p.isProviderFor(N,U))return p}function M(N,U){var X=V.get(N),Q;return T(X)||(Q=X.get(U)),T(Q)&&(Q=q(N,U),T(Q)||(T(X)&&(X=new m,V.set(N,X)),X.set(U,Q))),Q}function B(N){if(T(N))throw new TypeError;return y===N||k===N||!T(x)&&x.has(N)}function R(N,U,X){if(!B(X))throw new Error("Metadata provider not registered.");var Q=M(N,U);if(Q!==X){if(!T(Q))return!1;var Ae=V.get(N);T(Ae)&&(Ae=new m,V.set(N,Ae)),Ae.set(U,X)}return!0}}function _p(){var p;return!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&(p=n.Reflect[b]),T(p)&&(p=Up()),!T(b)&&ne(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,b,{enumerable:!1,configurable:!1,writable:!1,value:p}),p}function jp(p){var y=new C,k={isProviderFor:function(B,R){var N=y.get(B);return T(N)?!1:N.has(R)},OrdinaryDefineOwnMetadata:ie,OrdinaryHasOwnMetadata:V,OrdinaryGetOwnMetadata:ae,OrdinaryOwnMetadataKeys:q,OrdinaryDeleteMetadata:M};return S.registerProvider(k),k;function x(B,R,N){var U=y.get(B),X=!1;if(T(U)){if(!N)return;U=new m,y.set(B,U),X=!0}var Q=U.get(R);if(T(Q)){if(!N)return;if(Q=new m,U.set(R,Q),!p.setProvider(B,R,k))throw U.delete(R),X&&y.delete(B),new Error("Wrong provider for target.")}return Q}function V(B,R,N){var U=x(R,N,!1);return T(U)?!1:Ha(U.has(B))}function ae(B,R,N){var U=x(R,N,!1);if(!T(U))return U.get(B)}function ie(B,R,N,U){var X=x(N,U,!0);X.set(B,R)}function q(B,R){var N=[],U=x(B,R,!1);if(T(U))return N;for(var X=U.keys(),Q=ja(X),Ae=0;;){var Xa=Ga(Q);if(!Xa)return N.length=Ae,N;var Yp=Wa(Xa);try{N[Ae]=Yp}catch(Jp){try{Za(Q)}finally{throw Jp}}Ae++}}function M(B,R,N){var U=x(R,N,!1);if(T(U)||!U.delete(B))return!1;if(U.size===0){var X=y.get(R);T(X)||(X.delete(N),X.size===0&&y.delete(X))}return!0}}function Wp(p){var y=p.defineMetadata,k=p.hasOwnMetadata,x=p.getOwnMetadata,V=p.getOwnMetadataKeys,ae=p.deleteMetadata,ie=new C,q={isProviderFor:function(M,B){var R=ie.get(M);return!T(R)&&R.has(B)?!0:V(M,B).length?(T(R)&&(R=new g,ie.set(M,R)),R.add(B),!0):!1},OrdinaryDefineOwnMetadata:y,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:x,OrdinaryOwnMetadataKeys:V,OrdinaryDeleteMetadata:ae};return q}function Gt(p,y,k){var x=S.getProvider(p,y);if(!T(x))return x;if(k){if(S.setProvider(p,y,I))return I;throw new Error("Illegal state.")}}function Gp(){var p={},y=[],k=function(){function q(M,B,R){this._index=0,this._keys=M,this._values=B,this._selector=R}return q.prototype["@@iterator"]=function(){return this},q.prototype[a]=function(){return this},q.prototype.next=function(){var M=this._index;if(M>=0&&M<this._keys.length){var B=this._selector(this._keys[M],this._values[M]);return M+1>=this._keys.length?(this._index=-1,this._keys=y,this._values=y):this._index++,{value:B,done:!1}}return{value:void 0,done:!0}},q.prototype.throw=function(M){throw this._index>=0&&(this._index=-1,this._keys=y,this._values=y),M},q.prototype.return=function(M){return this._index>=0&&(this._index=-1,this._keys=y,this._values=y),{value:M,done:!0}},q}(),x=function(){function q(){this._keys=[],this._values=[],this._cacheKey=p,this._cacheIndex=-2}return Object.defineProperty(q.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),q.prototype.has=function(M){return this._find(M,!1)>=0},q.prototype.get=function(M){var B=this._find(M,!1);return B>=0?this._values[B]:void 0},q.prototype.set=function(M,B){var R=this._find(M,!0);return this._values[R]=B,this},q.prototype.delete=function(M){var B=this._find(M,!1);if(B>=0){for(var R=this._keys.length,N=B+1;N<R;N++)this._keys[N-1]=this._keys[N],this._values[N-1]=this._values[N];return this._keys.length--,this._values.length--,ar(M,this._cacheKey)&&(this._cacheKey=p,this._cacheIndex=-2),!0}return!1},q.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=p,this._cacheIndex=-2},q.prototype.keys=function(){return new k(this._keys,this._values,V)},q.prototype.values=function(){return new k(this._keys,this._values,ae)},q.prototype.entries=function(){return new k(this._keys,this._values,ie)},q.prototype["@@iterator"]=function(){return this.entries()},q.prototype[a]=function(){return this.entries()},q.prototype._find=function(M,B){if(!ar(this._cacheKey,M)){this._cacheIndex=-1;for(var R=0;R<this._keys.length;R++)if(ar(this._keys[R],M)){this._cacheIndex=R;break}}return this._cacheIndex<0&&B&&(this._cacheIndex=this._keys.length,this._keys.push(M),this._values.push(void 0)),this._cacheIndex},q}();return x;function V(q,M){return q}function ae(q,M){return M}function ie(q,M){return[q,M]}}function Zp(){var p=function(){function y(){this._map=new m}return Object.defineProperty(y.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),y.prototype.has=function(k){return this._map.has(k)},y.prototype.add=function(k){return this._map.set(k,k),this},y.prototype.delete=function(k){return this._map.delete(k)},y.prototype.clear=function(){this._map.clear()},y.prototype.keys=function(){return this._map.keys()},y.prototype.values=function(){return this._map.keys()},y.prototype.entries=function(){return this._map.entries()},y.prototype["@@iterator"]=function(){return this.keys()},y.prototype[a]=function(){return this.keys()},y}();return p}function Xp(){var p=16,y=h.create(),k=x();return function(){function M(){this._key=x()}return M.prototype.has=function(B){var R=V(B,!1);return R!==void 0?h.has(R,this._key):!1},M.prototype.get=function(B){var R=V(B,!1);return R!==void 0?h.get(R,this._key):void 0},M.prototype.set=function(B,R){var N=V(B,!0);return N[this._key]=R,this},M.prototype.delete=function(B){var R=V(B,!1);return R!==void 0?delete R[this._key]:!1},M.prototype.clear=function(){this._key=x()},M}();function x(){var M;do M="@@WeakMap@@"+q();while(h.has(y,M));return y[M]=!0,M}function V(M,B){if(!r.call(M,k)){if(!B)return;Object.defineProperty(M,k,{value:h.create()})}return M[k]}function ae(M,B){for(var R=0;R<B;++R)M[R]=Math.random()*255|0;return M}function ie(M){if(typeof Uint8Array=="function"){var B=new Uint8Array(M);return typeof crypto<"u"?crypto.getRandomValues(B):typeof msCrypto<"u"?msCrypto.getRandomValues(B):ae(B,M),B}return ae(new Array(M),M)}function q(){var M=ie(p);M[6]=M[6]&79|64,M[8]=M[8]&191|128;for(var B="",R=0;R<p;++R){var N=M[R];(R===4||R===6||R===8)&&(B+="-"),N<16&&(B+="0"),B+=N.toString(16).toLowerCase()}return B}}function cr(p){return p.__=void 0,delete p.__,p}})})(Sr||(Sr={}));let tn;const hl=new Uint8Array(16);function fl(){if(!tn&&(tn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tn(hl)}const de=[];for(let t=0;t<256;++t)de.push((t+256).toString(16).slice(1));function ml(t,e=0){return de[t[e+0]]+de[t[e+1]]+de[t[e+2]]+de[t[e+3]]+"-"+de[t[e+4]]+de[t[e+5]]+"-"+de[t[e+6]]+de[t[e+7]]+"-"+de[t[e+8]]+de[t[e+9]]+"-"+de[t[e+10]]+de[t[e+11]]+de[t[e+12]]+de[t[e+13]]+de[t[e+14]]+de[t[e+15]]}const kr={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xe(t,e,n){if(kr.randomUUID&&!t)return kr.randomUUID();t=t||{};const r=t.random||(t.rng||fl)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ml(r)}class ee{static UUID(){return Xe()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}class j{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static ToCamelCase(e){const n=new RegExp(["[А-Я][а-я][A-Z][a-z]+","[А-Я]+(?=[А-Я][а-я])","[A-Z]+(?=[A-Z][a-z])","[А-Я]+","[A-Z]+","[а-я]+","[a-z]+","[0-9]+"].join("|"),"g");return e.match(n).map((s,o)=>o===0?s.toLowerCase():j.Capitalize(s.toLowerCase())).join("")}static ToKebabCase(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()}static GetStringBetweenChars(e,n,r){return e.substring(e.indexOf(n)+2,e.lastIndexOf(r))}static Translit(e,n){const r={q:"й",w:"ц",e:"у",r:"к",t:"е",y:"н",u:"г",i:"ш",o:"щ",p:"з","[":"х","]":"ъ",a:"ф",s:"ы",d:"в",f:"а",g:"п",h:"р",j:"о",k:"л",l:"д",";":"ж","'":"э",z:"я",x:"ч",c:"с",v:"м",b:"и",n:"т",m:"ь",",":"б",".":"ю","/":"."};return n&&/[а-яА-Я]/g.test(e)?e.replace(/[А-я/,.;'\][]/g,s=>{if(s===s.toLowerCase()){const a=Object.keys(r).find(d=>r[d]===s);return a||""}const o=Object.keys(r).find(a=>r[a]===s.toLowerCase());return o?o.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,s=>s===s.toLowerCase()?r[s]:r[s.toLowerCase()].toUpperCase())}static RemoveEmoji(e){const n=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;return e.replace(n,"")}static CanBeTranslited(e){return/^[~`!@#$%^&*()_+=[\]\\{}|;':",.\/<>?a-zA-Z0-9-]+$/.test(e)}static StringsEquals(e,n){const r=e.toLowerCase().replaceAll(/\s/g,""),s=n.toLowerCase().replaceAll(/\s/g,""),o=j.Translit(r),a=j.Translit(s);return r.includes(s)||o.includes(s)||r.includes(a)}static SearchIn(e,n){return j.StringsEquals(e,n)}static SearchInFields(e,n){let r=!1;for(let s=0;s<n.length;s++)if(j.SearchIn(n[s],e)){r=!0;break}return r}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const s=r??"highlight-text",o=new RegExp(j.GetVariants(n).join("|"),"gi");return e.replace(o,`<span class="${s}">$&</span>`)}static GetVariants(e){const n=j.Translit(e);return[e,j.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,j.Capitalize(n),n.toLowerCase(),n.toUpperCase()]}static ContainsNum(e){return/\d/.test(e)}static JoinSnake(...e){return e.join("_")}static GetDynamicCountName(e,n){const r=[2,0,1,1,1,2];return e.length+" "+n[e.length%100>4&&e.length%100<20?2:r[e.length%10<5?e.length%10:5]]}static TrimText(e){return typeof e=="string"?e.trim():e}}const Ke=class Ke{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const s=n[r];if(this.isPrimitive(s))e[r]instanceof Date?e[r]=new Date(s):e[r]=s;else if(s!=null&&!Array.isArray(s))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(s);else{const o=Reflect.getMetadata(r,e);o&&(e[r]=new o[r](s))}if(Array.isArray(s)){if(s.length===0)return;const o=Reflect.getMetadata(r,e);o&&(e[r]=s.map(a=>new o[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){Ke.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const s=n.findIndex(o=>o.id===e);Ke.RemoveFromClass(s,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const s=n[e].id;s&&r&&r.push(s),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,s){return s}})}static InitClassInstance(e,n){const r=e.constructor(n);return Ke.BuildClass(r),r.id=ee.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(Ke.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,s])=>[r,Ke.DeepMap(e)(s)])):e(n)}static DeepTrim(e){return this.DeepMap(j.TrimText)(e)}};l(Ke,"GetClassConstructor",e=>(n,r)=>{const s=Reflect.getMetadata(`property:${r}`,n)||{};s[r]=e,Reflect.defineMetadata(r,s,n)});let $=Ke;class rt{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");$.BuildClass(this,e)}static Create(){const e=new rt;return e.id=ee.UUID(),e}}class Kn{static Setup(e){this.staticUrl=e}static get StaticUrl(){return this.staticUrl}}l(Kn,"staticUrl","");class fe{constructor(e){l(this,"name","");l(this,"url","");l(this,"src","");l(this,"raw");l(this,"blob");l(this,"file");l(this,"type","");l(this,"id");l(this,"originalName","");l(this,"fileSystemPath","");l(this,"itemId");l(this,"itemOneId");l(this,"description","");l(this,"order",0);$.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Kn.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new fe;return r.id=n??ee.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=ee.UUID(),r}setFile(e){this.id||(this.id=ee.UUID()),this.originalName=e.name,this.file=e.blob,this.fileSystemPath=ee.UUID(),this.url=e.src}clearFile(){this.url="",this.file=void 0,this.fileSystemPath="",this.originalName=""}errorImg(e,n){if(e.target){let r="";return n&&(r=`@/assets/img/${n}`),new URL(r,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Ie&&Ie.tagName.toUpperCase()==="SCRIPT"&&Ie.src||new URL("sprof.umd.cjs",document.baseURI).href)}}getFileInfos(){return[this]}isPdf(){return this.getExtension(this.originalName)===""}getExtension(e){const n=e.split(".");return n[n.length-1]}}class Er{constructor(e){l(this,"id");l(this,"name","");l(this,"surname","");l(this,"patronymic","");l(this,"isMale",!0);l(this,"dateBirth",new Date);l(this,"contactId");l(this,"slug","");l(this,"postIndex","");l(this,"address","");l(this,"editNameMode",!1);$.BuildClass(this,e)}setEditNameMode(e){this.editNameMode=e}getFullName(){return!this.surname.length&&!this.name.length&&!this.patronymic.length?"":`${this.surname} ${this.name} ${this.patronymic}`}getInitialsName(){return`${this.name.slice(0,1)}.${this.patronymic.slice(0,1)}. ${this.surname}`}getGender(e){return e?this.isMale?"Мужской":"Женский":this.isMale?"М":"Ж"}capitalizeName(){this.name=j.Capitalize(this.name),this.surname=j.Capitalize(this.surname),this.patronymic=j.Capitalize(this.patronymic)}trimName(){this.name=this.name.trim(),this.surname=this.surname.trim(),this.patronymic=this.patronymic.trim()}sanitizeName(){this.trimName(),this.capitalizeName()}setFullName(e){this.surname=e.surname,this.name=e.name,this.patronymic=e.patronymic}}class st{constructor(e){l(this,"id");l(this,"number");l(this,"description");l(this,"contactId");$.BuildClass(this,e)}static Create(){const e=new st;return e.id=ee.UUID(),e}}class nn{constructor(e){l(this,"id");l(this,"address");l(this,"description");$.BuildClass(this,e)}}class ei{constructor(e){l(this,"id");l(this,"address");l(this,"description");$.BuildClass(this,e)}}let pl=(et=class{},l(et,"Phone",st),l(et,"FileInfo",fe),l(et,"PostAddress",nn),l(et,"Website",ei),l(et,"Email",rt),l(et,"Human",Er),et);class Ue{static Shuffle(e){for(let n=e.length-1;n>0;n--){const r=Math.floor(Math.random()*(n+1));[e[n],e[r]]=[e[r],e[n]]}}static GenerateNumsRange(e,n,r=1){return Array.from({length:(n-e)/r+1},(s,o)=>e+o*r)}static GetLast(e){return e[e.length-1]}static GetFirst(e){return e[0]}static GetRandEL(e){return e[Math.floor(Math.random()*e.length)]}static Sort(e){e.forEach((n,r)=>n.order=r)}static Refill(e,n){e.splice(0,e.length),e.push(...n)}static Eq(e,n){return e.length===n.length&&(e==null?void 0:e.every((r,s)=>e[s]==n[s]))}static SwipeById(e,n,r){const s=e.findIndex(a=>n.id===a.id),o=e.findIndex(a=>r.id===a.id);s||o||([e[s],e[o]]=[e[o],e[s]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const s=e[n];e[n]=e[r],e[r]=s}static MoveUp(e,n){e[n].order=n-1,e[n-1]&&(e[n-1].order=n),[e[n],e[n-1]]=[e[n-1],e[n]]}static MoveDown(e,n){e[n].order=n+1,e[n+1]&&(e[n+1].order=n),[e[n],e[n+1]]=[e[n+1],e[n]]}}var se=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t))(se||{}),me=(t=>(t.Eq="=",t.Ne="!=",t.Gt=">",t.Lt="<",t.Btw="between",t.In="in",t.Like="like",t.Null="is null",t.NotNull="is not null",t))(me||{}),gl=Object.defineProperty,yl=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&gl(e,n,s),s};const xr=class Zt{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",me.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",se.String);l(this,"set",[]);l(this,"isSet",!1);l(this,"joinTable","");l(this,"joinTableModel","");l(this,"joinTableFk","");l(this,"joinTablePk","");l(this,"joinTableId","");l(this,"joinTableIdCol","");$.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===se.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===me.In?n&&Ue.Eq(this.set,e.set):n}return e.model===this.model&&e.col===this.col&&e.operator===this.operator}valueEq(e){return!this||!e||!this.eq(e)?!1:this.type===se.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===se.String?this.value1===(e==null?void 0:e.value1):this.type===se.Join&&this.set.length?Ue.Eq(this.set,e.set):!1}toUrlQuery(){const e=this.type?`"type":"${this.type}"`:"",n=this.model?`"model":"${this.model}"`:"",r=this.col?`"col":"${this.col}"`:"",s=this.operator?`"operator":"${this.operator}"`:"",o=this.value1?`"value1":"${this.value1}"`:"",a=this.type===se.Boolean?`"boolean":${this.boolean}`:"",d=this.type===se.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",c=this.type===se.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===se.Number?`"number":${this.number}`:"",h=this.type===se.Set||this.operator===me.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===se.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,s,o,a,d,c,u,h,f].filter(m=>m!=="").toString()}fromUrlQuery(e){this.model=e.get("model")??"",this.col=e.get("col")??"",this.label=e.get("label")??"",this.operator=e.get("operator")??"",this.value1=e.get("value1")??"",this.type=e.get("type")??"",this.boolean=!!(e.get("boolean")??""),this.joinTableModel=e.get("joinTableModel")??"",this.joinTableId=e.get("joinTableId")??"",this.joinTableFk=e.get("joinTableFk")??"",this.joinTableIdCol=e.get("joinTableIdCol")??"",this.joinTablePk=e.get("joinTablePk")??""}isUnaryFilter(){return this.operator===me.Eq||this.operator===me.Gt||this.operator===me.Lt}isBetweenFilter(){return this.operator===me.Btw}isSetFilter(){return this.operator===me.In}static Create(e,n,r){const s=new Zt;return s.model=e.GetClassName(),s.col=n??"",s.type=r,s.type===se.Number&&(s.value1="0"),s.type===se.String&&(s.value1=""),s.type===se.Boolean&&(s.value1="false",s.operator=me.Eq),s}static CreateFilterModelWithJoin(e,n,r,s,o,a,d,c){const u=new Zt;return u.id=Xe(),u.joinTable=r,u.joinTablePk=s,u.joinTableFk=o,u.col=n,u.type=a,d&&(u.joinTableId=d),c&&(u.joinTableIdCol=c),u}static CreateFilterModelWithJoinV2(e,n,r,s,o,a,d){const c=new Zt;return c.model=e,c.joinTableModel=r,c.joinTablePk=s,c.joinTableFk=o,c.col=n,c.type=se.Join,a&&(c.joinTableId=a),d&&(c.joinTableIdCol=d),c}static OnlyIfSecondModelExists(e,n){const r=new Zt;return r.id=Xe(),r.model=j.ToCamelCase(e.GetClassName()),r.joinTableModel=j.ToCamelCase(n.GetClassName()),r.type=se.Join,r}addToSet(...e){e.forEach(n=>{if(this.set.indexOf(n)===-1){this.set.push(n);return}this.set=this.set.filter(r=>r!==n)})}pushToSet(...e){e.forEach(n=>{this.set.indexOf(n)===-1&&this.set.push(n)})}replaceSet(...e){this.set=e}setBoolean(e){this.boolean=e}toRef(){return i.ref(this)}setDate1(e){this.date1=e}setDate2(e){this.date2=e}dropDates(){this.setDate1(),this.setDate2()}setDatesRange(e,n){if(!e&&!n){this.dropDates();return}if(!n){this.setDate1(e),this.operator=me.Eq;return}this.setDate2(n),this.operator=me.Btw}};yl([$.GetClassConstructor(String)],xr.prototype,"set");let ti=xr;class wl{constructor(){l(this,"operation",me.Lt);l(this,"column","");l(this,"value");l(this,"initial",!0);l(this,"tableName","");l(this,"version","");l(this,"model","")}toUrlQuery(){const e=this.operation?`"operation":"${this.operation}"`:"",n=this.column?`"column":"${this.column}"`:"",r=this.value&&typeof this.value.toISOString=="function"?this.value.toISOString():this.value,s=r?`"value":"${r}"`:"",o=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,s,o,a].filter(d=>d!=="").toString()}fromUrlQuery(e){e.cursvalue&&(this.value=e.cursvalue),e.curscolumn&&(this.column=String(e.curscolumn)),e.cursinitial!==void 0&&(this.initial=!!e.cursinitial),e.curstableName&&(this.tableName=String(e.curstableName)),e.cursoperation&&(this.operation=e.cursoperation)}}class rn{constructor(e){l(this,"offset",0);l(this,"limit",25);l(this,"cursor",new wl);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");$.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.tableName=r,this.cursorMode=!0}setLoadMoreV2(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=me.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.offset=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,s=`"append":${this.append}`,o=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,s,o,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.offset=Number(r.get("offset")),this.limit=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.limit)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.offset/this.limit+1}drop(){this.offset=0,this.limit=25,$.BuildClass(this)}}var Ee=(t=>(t.Asc="asc",t.Desc="desc",t))(Ee||{});class sn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);$.BuildClass(this,e)}static Create(e,n,r=Ee.Asc,s,o){const a=new sn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ee.Asc,a.label=s??"",a.default=o??!1,a}isAsc(){return this.order===Ee.Asc}isDesc(){return this.order===Ee.Desc}eq(e){return e.model===this.model&&e.col===this.col&&e.order===this.order}toUrlQuery(){const e=this.model?`"model":"${this.model}"`:"",n=this.col?`"col":"${this.col}"`:"",r=this.order?`"order":"${this.order}"`:"";return[e,n,r].toString()}async fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("s=")+2,e.indexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.model=r.get("model")??"",this.col=r.get("col")??"",this.label=r.get("label")??"",this.default=!!r.get("default"),this.order=r.get("order")??""}asc(){this.order=Ee.Asc}desc(){this.order=Ee.Desc}}class on{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new on;return r.model=e.GetClassName(),r.cols=n,r}}var bl=Object.defineProperty,an=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&bl(e,n,s),s};const At=(Se=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"s",[]);l(this,"p",new rn);l(this,"t",new on);$.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Se),this.instance}createFrom(e){const n=new Se(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Se(this);return e.f=this.f.map(n=>Se.EmptyEntiries(n)),e.s=this.s.map(n=>Se.EmptyEntiries(n)),e.p=Se.EmptyEntiries(this.p),e.t=Se.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([s,o])=>s!=="label"&&o!==""&&o!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return Ue.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));$.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new rn}resetF(){this.f=[]}},l(Se,"instance"),Se);an([$.GetClassConstructor(ti)],At.prototype,"f"),an([$.GetClassConstructor(sn)],At.prototype,"s"),an([$.GetClassConstructor(rn)],At.prototype,"p"),an([$.GetClassConstructor(on)],At.prototype,"t");let _e=At,Cl=(Wt=class{},l(Wt,"SortModel",sn),l(Wt,"FilterModel",ti),l(Wt,"FTSP",i.reactive(_e)),Wt);function Mr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Sl}=Object.prototype,{getPrototypeOf:ni}=Object,ln=(t=>e=>{const n=Sl.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ve=t=>(t=t.toLowerCase(),e=>ln(e)===t),cn=t=>e=>typeof e===t,{isArray:pt}=Array,zt=cn("undefined");function kl(t){return t!==null&&!zt(t)&&t.constructor!==null&&!zt(t.constructor)&&Ce(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Br=ve("ArrayBuffer");function El(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Br(t.buffer),e}const xl=cn("string"),Ce=cn("function"),$r=cn("number"),dn=t=>t!==null&&typeof t=="object",Ml=t=>t===!0||t===!1,un=t=>{if(ln(t)!=="object")return!1;const e=ni(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Bl=ve("Date"),$l=ve("File"),Il=ve("Blob"),Rl=ve("FileList"),vl=t=>dn(t)&&Ce(t.pipe),Nl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ce(t.append)&&((e=ln(t))==="formdata"||e==="object"&&Ce(t.toString)&&t.toString()==="[object FormData]"))},Al=ve("URLSearchParams"),[zl,Pl,Vl,Tl]=["ReadableStream","Request","Response","Headers"].map(ve),Fl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Pt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),pt(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let d;for(r=0;r<a;r++)d=o[r],e.call(null,t[d],d,t)}}function Ir(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const ot=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rr=t=>!zt(t)&&t!==ot;function ii(){const{caseless:t}=Rr(this)&&this||{},e={},n=(r,s)=>{const o=t&&Ir(e,s)||s;un(e[o])&&un(r)?e[o]=ii(e[o],r):un(r)?e[o]=ii({},r):pt(r)?e[o]=r.slice():e[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Pt(arguments[r],n);return e}const Ol=(t,e,n,{allOwnKeys:r}={})=>(Pt(e,(s,o)=>{n&&Ce(s)?t[o]=Mr(s,n):t[o]=s},{allOwnKeys:r}),t),Dl=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Ll=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Hl=(t,e,n,r)=>{let s,o,a;const d={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)a=s[o],(!r||r(a,t,e))&&!d[a]&&(e[a]=t[a],d[a]=!0);t=n!==!1&&ni(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ql=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Ul=t=>{if(!t)return null;if(pt(t))return t;let e=t.length;if(!$r(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},_l=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ni(Uint8Array)),jl=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},Wl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Gl=ve("HTMLFormElement"),Zl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),vr=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Xl=ve("RegExp"),Nr=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Pt(n,(s,o)=>{let a;(a=e(s,o,t))!==!1&&(r[o]=a||s)}),Object.defineProperties(t,r)},Yl=t=>{Nr(t,(e,n)=>{if(Ce(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ce(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Jl=(t,e)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return pt(t)?r(t):r(String(t).split(e)),n},Ql=()=>{},Kl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,ri="abcdefghijklmnopqrstuvwxyz",Ar="0123456789",zr={DIGIT:Ar,ALPHA:ri,ALPHA_DIGIT:ri+ri.toUpperCase()+Ar},ec=(t=16,e=zr.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function tc(t){return!!(t&&Ce(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const nc=t=>{const e=new Array(10),n=(r,s)=>{if(dn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const o=pt(r)?[]:{};return Pt(r,(a,d)=>{const c=n(a,s+1);!zt(c)&&(o[d]=c)}),e[s]=void 0,o}}return r};return n(t,0)},ic=ve("AsyncFunction"),rc=t=>t&&(dn(t)||Ce(t))&&Ce(t.then)&&Ce(t.catch),Pr=((t,e)=>t?setImmediate:e?((n,r)=>(ot.addEventListener("message",({source:s,data:o})=>{s===ot&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),ot.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(ot.postMessage)),sc=typeof queueMicrotask<"u"?queueMicrotask.bind(ot):typeof process<"u"&&process.nextTick||Pr,w={isArray:pt,isArrayBuffer:Br,isBuffer:kl,isFormData:Nl,isArrayBufferView:El,isString:xl,isNumber:$r,isBoolean:Ml,isObject:dn,isPlainObject:un,isReadableStream:zl,isRequest:Pl,isResponse:Vl,isHeaders:Tl,isUndefined:zt,isDate:Bl,isFile:$l,isBlob:Il,isRegExp:Xl,isFunction:Ce,isStream:vl,isURLSearchParams:Al,isTypedArray:_l,isFileList:Rl,forEach:Pt,merge:ii,extend:Ol,trim:Fl,stripBOM:Dl,inherits:Ll,toFlatObject:Hl,kindOf:ln,kindOfTest:ve,endsWith:ql,toArray:Ul,forEachEntry:jl,matchAll:Wl,isHTMLForm:Gl,hasOwnProperty:vr,hasOwnProp:vr,reduceDescriptors:Nr,freezeMethods:Yl,toObjectSet:Jl,toCamelCase:Zl,noop:Ql,toFiniteNumber:Kl,findKey:Ir,global:ot,isContextDefined:Rr,ALPHABET:zr,generateString:ec,isSpecCompliantForm:tc,toJSONObject:nc,isAsyncFn:ic,isThenable:rc,setImmediate:Pr,asap:sc};function F(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}w.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.status}}});const Vr=F.prototype,Tr={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Tr[t]={value:t}}),Object.defineProperties(F,Tr),Object.defineProperty(Vr,"isAxiosError",{value:!0}),F.from=(t,e,n,r,s,o)=>{const a=Object.create(Vr);return w.toFlatObject(t,a,function(c){return c!==Error.prototype},d=>d!=="isAxiosError"),F.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const oc=null;function si(t){return w.isPlainObject(t)||w.isArray(t)}function Fr(t){return w.endsWith(t,"[]")?t.slice(0,-2):t}function Or(t,e,n){return t?t.concat(e).map(function(s,o){return s=Fr(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function ac(t){return w.isArray(t)&&!t.some(si)}const lc=w.toFlatObject(w,{},null,function(e){return/^is[A-Z]/.test(e)});function hn(t,e,n){if(!w.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,S){return!w.isUndefined(S[b])});const r=n.metaTokens,s=n.visitor||h,o=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(e);if(!w.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(w.isDate(C))return C.toISOString();if(!c&&w.isBlob(C))throw new F("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(C)||w.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,b,S){let I=C;if(C&&!S&&typeof C=="object"){if(w.endsWith(b,"{}"))b=r?b:b.slice(0,-2),C=JSON.stringify(C);else if(w.isArray(C)&&ac(C)||(w.isFileList(C)||w.endsWith(b,"[]"))&&(I=w.toArray(C)))return b=Fr(b),I.forEach(function(P,v){!(w.isUndefined(P)||P===null)&&e.append(a===!0?Or([b],v,o):a===null?b:b+"[]",u(P))}),!1}return si(C)?!0:(e.append(Or(S,b,o),u(C)),!1)}const f=[],m=Object.assign(lc,{defaultVisitor:h,convertValue:u,isVisitable:si});function g(C,b){if(!w.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(C),w.forEach(C,function(I,O){(!(w.isUndefined(I)||I===null)&&s.call(e,I,w.isString(O)?O.trim():O,b,m))===!0&&g(I,b?b.concat(O):[O])}),f.pop()}}if(!w.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Dr(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function oi(t,e){this._pairs=[],t&&hn(t,this,e)}const Lr=oi.prototype;Lr.append=function(e,n){this._pairs.push([e,n])},Lr.toString=function(e){const n=e?function(r){return e.call(this,r,Dr)}:Dr;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cc(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Hr(t,e,n){if(!e)return t;const r=n&&n.encode||cc;w.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(e,n):o=w.isURLSearchParams(e)?e.toString():new oi(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class qr{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){w.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ur={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dc={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:oi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ai=typeof window<"u"&&typeof document<"u",li=typeof navigator=="object"&&navigator||void 0,uc=ai&&(!li||["ReactNative","NativeScript","NS"].indexOf(li.product)<0),hc=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",fc=ai&&window.location.href||"http://localhost",pe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ai,hasStandardBrowserEnv:uc,hasStandardBrowserWebWorkerEnv:hc,navigator:li,origin:fc},Symbol.toStringTag,{value:"Module"})),...dc};function mc(t,e){return hn(t,new pe.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return pe.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function pc(t){return w.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function gc(t){const e={},n=Object.keys(t);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],e[o]=t[o];return e}function _r(t){function e(n,r,s,o){let a=n[o++];if(a==="__proto__")return!0;const d=Number.isFinite(+a),c=o>=n.length;return a=!a&&w.isArray(s)?s.length:a,c?(w.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!d):((!s[a]||!w.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],o)&&w.isArray(s[a])&&(s[a]=gc(s[a])),!d)}if(w.isFormData(t)&&w.isFunction(t.entries)){const n={};return w.forEachEntry(t,(r,s)=>{e(pc(r),s,n,0)}),n}return null}function yc(t,e,n){if(w.isString(t))try{return(e||JSON.parse)(t),w.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(t)}const Vt={transitional:Ur,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=w.isObject(e);if(o&&w.isHTMLForm(e)&&(e=new FormData(e)),w.isFormData(e))return s?JSON.stringify(_r(e)):e;if(w.isArrayBuffer(e)||w.isBuffer(e)||w.isStream(e)||w.isFile(e)||w.isBlob(e)||w.isReadableStream(e))return e;if(w.isArrayBufferView(e))return e.buffer;if(w.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mc(e,this.formSerializer).toString();if((d=w.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return hn(d?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),yc(e)):e}],transformResponse:[function(e){const n=this.transitional||Vt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(w.isResponse(e)||w.isReadableStream(e))return e;if(e&&w.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(d){if(a)throw d.name==="SyntaxError"?F.from(d,F.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:pe.classes.FormData,Blob:pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],t=>{Vt.headers[t]={}});const wc=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),bc=t=>{const e={};let n,r,s;return t&&t.split(`
|
|
15
|
+
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||e[n]&&wc[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},jr=Symbol("internals");function Tt(t){return t&&String(t).trim().toLowerCase()}function fn(t){return t===!1||t==null?t:w.isArray(t)?t.map(fn):String(t)}function Cc(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Sc=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ci(t,e,n,r,s){if(w.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!w.isString(e)){if(w.isString(r))return e.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(e)}}function kc(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Ec(t,e){const n=w.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,o,a){return this[r].call(this,e,s,o,a)},configurable:!0})})}class we{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function o(d,c,u){const h=Tt(c);if(!h)throw new Error("header name must be a non-empty string");const f=w.findKey(s,h);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||c]=fn(d))}const a=(d,c)=>w.forEach(d,(u,h)=>o(u,h,c));if(w.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(w.isString(e)&&(e=e.trim())&&!Sc(e))a(bc(e),n);else if(w.isHeaders(e))for(const[d,c]of e.entries())o(c,d,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=Tt(e),e){const r=w.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return Cc(s);if(w.isFunction(n))return n.call(this,s,r);if(w.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Tt(e),e){const r=w.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ci(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function o(a){if(a=Tt(a),a){const d=w.findKey(r,a);d&&(!n||ci(r,r[d],d,n))&&(delete r[d],s=!0)}}return w.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!e||ci(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,r={};return w.forEach(this,(s,o)=>{const a=w.findKey(r,o);if(a){n[a]=fn(s),delete n[o];return}const d=e?kc(o):String(o).trim();d!==o&&delete n[o],n[d]=fn(s),r[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return w.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
16
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[jr]=this[jr]={accessors:{}}).accessors,s=this.prototype;function o(a){const d=Tt(a);r[d]||(Ec(s,a),r[d]=!0)}return w.isArray(e)?e.forEach(o):o(e),this}}we.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),w.reduceDescriptors(we.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),w.freezeMethods(we);function di(t,e){const n=this||Vt,r=e||n,s=we.from(r.headers);let o=r.data;return w.forEach(t,function(d){o=d.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function Wr(t){return!!(t&&t.__CANCEL__)}function gt(t,e,n){F.call(this,t??"canceled",F.ERR_CANCELED,e,n),this.name="CanceledError"}w.inherits(gt,F,{__CANCEL__:!0});function Gr(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function xc(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Mc(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,o=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),h=r[o];a||(a=u),n[s]=c,r[s]=u;let f=o,m=0;for(;f!==s;)m+=n[f++],f=f%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),u-a<e)return;const g=h&&u-h;return g?Math.round(m*1e3/g):void 0}}function Bc(t,e){let n=0,r=1e3/e,s,o;const a=(u,h=Date.now())=>{n=h,s=null,o&&(clearTimeout(o),o=null),t.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?a(u,h):(s=u,o||(o=setTimeout(()=>{o=null,a(s)},r-f)))},()=>s&&a(s)]}const mn=(t,e,n=3)=>{let r=0;const s=Mc(50,250);return Bc(o=>{const a=o.loaded,d=o.lengthComputable?o.total:void 0,c=a-r,u=s(c),h=a<=d;r=a;const f={loaded:a,total:d,progress:d?a/d:void 0,bytes:c,rate:u||void 0,estimated:u&&d&&h?(d-a)/u:void 0,event:o,lengthComputable:d!=null,[e?"download":"upload"]:!0};t(f)},n)},Zr=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Xr=t=>(...e)=>w.asap(()=>t(...e)),$c=pe.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,pe.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(pe.origin),pe.navigator&&/(msie|trident)/i.test(pe.navigator.userAgent)):()=>!0,Ic=pe.hasStandardBrowserEnv?{write(t,e,n,r,s,o){const a=[t+"="+encodeURIComponent(e)];w.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),w.isString(r)&&a.push("path="+r),w.isString(s)&&a.push("domain="+s),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rc(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function vc(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Yr(t,e){return t&&!Rc(e)?vc(t,e):e}const Jr=t=>t instanceof we?{...t}:t;function at(t,e){e=e||{};const n={};function r(u,h,f,m){return w.isPlainObject(u)&&w.isPlainObject(h)?w.merge.call({caseless:m},u,h):w.isPlainObject(h)?w.merge({},h):w.isArray(h)?h.slice():h}function s(u,h,f,m){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u,f,m)}else return r(u,h,f,m)}function o(u,h){if(!w.isUndefined(h))return r(void 0,h)}function a(u,h){if(w.isUndefined(h)){if(!w.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function d(u,h,f){if(f in e)return r(u,h);if(f in t)return r(void 0,u)}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:d,headers:(u,h,f)=>s(Jr(u),Jr(h),f,!0)};return w.forEach(Object.keys(Object.assign({},t,e)),function(h){const f=c[h]||s,m=f(t[h],e[h],h);w.isUndefined(m)&&f!==d||(n[h]=m)}),n}const Qr=t=>{const e=at({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:a,auth:d}=e;e.headers=a=we.from(a),e.url=Hr(Yr(e.baseURL,e.url),t.params,t.paramsSerializer),d&&a.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):"")));let c;if(w.isFormData(n)){if(pe.hasStandardBrowserEnv||pe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[u,...h]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...h].join("; "))}}if(pe.hasStandardBrowserEnv&&(r&&w.isFunction(r)&&(r=r(e)),r||r!==!1&&$c(e.url))){const u=s&&o&&Ic.read(o);u&&a.set(s,u)}return e},Nc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const s=Qr(t);let o=s.data;const a=we.from(s.headers).normalize();let{responseType:d,onUploadProgress:c,onDownloadProgress:u}=s,h,f,m,g,C;function b(){g&&g(),C&&C(),s.cancelToken&&s.cancelToken.unsubscribe(h),s.signal&&s.signal.removeEventListener("abort",h)}let S=new XMLHttpRequest;S.open(s.method.toUpperCase(),s.url,!0),S.timeout=s.timeout;function I(){if(!S)return;const P=we.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),H={data:!d||d==="text"||d==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:P,config:t,request:S};Gr(function($e){n($e),b()},function($e){r($e),b()},H),S=null}"onloadend"in S?S.onloadend=I:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(I)},S.onabort=function(){S&&(r(new F("Request aborted",F.ECONNABORTED,t,S)),S=null)},S.onerror=function(){r(new F("Network Error",F.ERR_NETWORK,t,S)),S=null},S.ontimeout=function(){let v=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const H=s.transitional||Ur;s.timeoutErrorMessage&&(v=s.timeoutErrorMessage),r(new F(v,H.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,t,S)),S=null},o===void 0&&a.setContentType(null),"setRequestHeader"in S&&w.forEach(a.toJSON(),function(v,H){S.setRequestHeader(H,v)}),w.isUndefined(s.withCredentials)||(S.withCredentials=!!s.withCredentials),d&&d!=="json"&&(S.responseType=s.responseType),u&&([m,C]=mn(u,!0),S.addEventListener("progress",m)),c&&S.upload&&([f,g]=mn(c),S.upload.addEventListener("progress",f),S.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(h=P=>{S&&(r(!P||P.type?new gt(null,t,S):P),S.abort(),S=null)},s.cancelToken&&s.cancelToken.subscribe(h),s.signal&&(s.signal.aborted?h():s.signal.addEventListener("abort",h)));const O=xc(s.url);if(O&&pe.protocols.indexOf(O)===-1){r(new F("Unsupported protocol "+O+":",F.ERR_BAD_REQUEST,t));return}S.send(o||null)})},Ac=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,s;const o=function(u){if(!s){s=!0,d();const h=u instanceof Error?u:this.reason;r.abort(h instanceof F?h:new gt(h instanceof Error?h.message:h))}};let a=e&&setTimeout(()=>{a=null,o(new F(`timeout ${e} of ms exceeded`,F.ETIMEDOUT))},e);const d=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),t=null)};t.forEach(u=>u.addEventListener("abort",o));const{signal:c}=r;return c.unsubscribe=()=>w.asap(d),c}},zc=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,s;for(;r<n;)s=r+e,yield t.slice(r,s),r=s},Pc=async function*(t,e){for await(const n of Vc(t))yield*zc(n,e)},Vc=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Kr=(t,e,n,r)=>{const s=Pc(t,e);let o=0,a,d=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:u,value:h}=await s.next();if(u){d(),c.close();return}let f=h.byteLength;if(n){let m=o+=f;n(m)}c.enqueue(new Uint8Array(h))}catch(u){throw d(u),u}},cancel(c){return d(c),s.return()}},{highWaterMark:2})},pn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",es=pn&&typeof ReadableStream=="function",Tc=pn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ts=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Fc=es&&ts(()=>{let t=!1;const e=new Request(pe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ns=64*1024,ui=es&&ts(()=>w.isReadableStream(new Response("").body)),gn={stream:ui&&(t=>t.body)};pn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!gn[e]&&(gn[e]=w.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new F(`Response type '${e}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const Oc=async t=>{if(t==null)return 0;if(w.isBlob(t))return t.size;if(w.isSpecCompliantForm(t))return(await new Request(pe.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(w.isArrayBufferView(t)||w.isArrayBuffer(t))return t.byteLength;if(w.isURLSearchParams(t)&&(t=t+""),w.isString(t))return(await Tc(t)).byteLength},Dc=async(t,e)=>{const n=w.toFiniteNumber(t.getContentLength());return n??Oc(e)},hi={http:oc,xhr:Nc,fetch:pn&&(async t=>{let{url:e,method:n,data:r,signal:s,cancelToken:o,timeout:a,onDownloadProgress:d,onUploadProgress:c,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:m}=Qr(t);u=u?(u+"").toLowerCase():"text";let g=Ac([s,o&&o.toAbortSignal()],a),C;const b=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let S;try{if(c&&Fc&&n!=="get"&&n!=="head"&&(S=await Dc(h,r))!==0){let H=new Request(e,{method:"POST",body:r,duplex:"half"}),Be;if(w.isFormData(r)&&(Be=H.headers.get("content-type"))&&h.setContentType(Be),H.body){const[$e,nt]=Zr(S,mn(Xr(c)));r=Kr(H.body,ns,$e,nt)}}w.isString(f)||(f=f?"include":"omit");const I="credentials"in Request.prototype;C=new Request(e,{...m,signal:g,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:I?f:void 0});let O=await fetch(C);const P=ui&&(u==="stream"||u==="response");if(ui&&(d||P&&b)){const H={};["status","statusText","headers"].forEach(It=>{H[It]=O[It]});const Be=w.toFiniteNumber(O.headers.get("content-length")),[$e,nt]=d&&Zr(Be,mn(Xr(d),!0))||[];O=new Response(Kr(O.body,ns,$e,()=>{nt&&nt(),b&&b()}),H)}u=u||"text";let v=await gn[w.findKey(gn,u)||"text"](O,t);return!P&&b&&b(),await new Promise((H,Be)=>{Gr(H,Be,{data:v,headers:we.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:C})})}catch(I){throw b&&b(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,t,C),{cause:I.cause||I}):F.from(I,I&&I.code,t,C)}})};w.forEach(hi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const is=t=>`- ${t}`,Lc=t=>w.isFunction(t)||t===null||t===!1,rs={getAdapter:t=>{t=w.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let o=0;o<e;o++){n=t[o];let a;if(r=n,!Lc(n)&&(r=hi[(a=String(n)).toLowerCase()],r===void 0))throw new F(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+o]=r}if(!r){const o=Object.entries(s).map(([d,c])=>`adapter ${d} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
|
|
17
17
|
`+o.map(is).join(`
|
|
18
|
-
`):" "+is(o[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:hi};function fi(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new gt(null,t)}function ss(t){return fi(t),t.headers=we.from(t.headers),t.data=di.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rs.getAdapter(t.adapter||Vt.adapter)(t).then(function(r){return fi(t),r.data=di.call(t,t.transformResponse,r),r.headers=we.from(r.headers),r},function(r){return Wr(r)||(fi(t),r&&r.response&&(r.response.data=di.call(t,t.transformResponse,r.response),r.response.headers=we.from(r.response.headers))),Promise.reject(r)})}const os="1.7.9",yn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{yn[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const as={};yn.transitional=function(e,n,r){function s(o,a){return"[Axios v"+os+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,d)=>{if(e===!1)throw new F(s(a," has been removed"+(n?" in "+n:"")),F.ERR_DEPRECATED);return n&&!as[a]&&(as[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,a,d):!0}},yn.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function
|
|
19
|
-
`+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=at(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&wn.assertOptions(r,{silentJSONParsing:ze.transitional(ze.boolean),forcedJSONParsing:ze.transitional(ze.boolean),clarifyTimeoutError:ze.transitional(ze.boolean)},!1),s!=null&&(w.isFunction(s)?n.paramsSerializer={serialize:s}:wn.assertOptions(s,{encode:ze.function,serialize:ze.function},!0)),wn.assertOptions(n,{baseUrl:ze.spelling("baseURL"),withXsrfToken:ze.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&w.merge(o.common,o[n.method]);o&&w.forEach(["delete","get","head","post","put","patch","common"],C=>{delete o[C]}),n.headers=we.concat(a,o);const d=[];let c=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(c=c&&b.synchronous,d.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let h,f=0,m;if(!c){const C=[ss.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,u),m=C.length,h=Promise.resolve(n);f<m;)h=h.then(C[f++],C[f++]);return h}m=d.length;let g=n;for(f=0;f<m;){const C=d[f++],b=d[f++];try{g=C(g)}catch(S){b.call(this,S);break}}try{h=ss.call(this,g)}catch(C){return Promise.reject(C)}for(f=0,m=u.length;f<m;)h=h.then(u[f++],u[f++]);return h}getUri(e){e=at(this.defaults,e);const n=Yr(e.baseURL,e.url);return Hr(n,e.params,e.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(e){lt.prototype[e]=function(n,r){return this.request(at(r||{},{method:e,url:n,data:(r||{}).data}))}}),w.forEach(["post","put","patch"],function(e){function n(r){return function(o,a,d){return this.request(at(d||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}lt.prototype[e]=n(),lt.prototype[e+"Form"]=n(!0)});class mi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(d=>{r.subscribe(d),o=d}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,d){r.reason||(r.reason=new gt(o,a,d),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new mi(function(s){e=s}),cancel:e}}}function Uc(t){return function(n){return t.apply(null,n)}}function jc(t){return w.isObject(t)&&t.isAxiosError===!0}const pi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pi).forEach(([t,e])=>{pi[e]=t});function ls(t){const e=new lt(t),n=Mr(lt.prototype.request,e);return w.extend(n,lt.prototype,e,{allOwnKeys:!0}),w.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return ls(at(t,s))},n}const K=ls(Vt);K.Axios=lt,K.CanceledError=gt,K.CancelToken=mi,K.isCancel=Wr,K.VERSION=os,K.toFormData=hn,K.AxiosError=F,K.Cancel=K.CanceledError,K.all=function(e){return Promise.all(e)},K.spread=Uc,K.isAxiosError=jc,K.mergeConfig=at,K.AxiosHeaders=we,K.formToJSON=t=>jr(w.isHTMLForm(t)?new FormData(t):t),K.getAdapter=rs.getAdapter,K.HttpStatusCode=pi,K.default=K;var Ft=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(Ft||{});const Ot=(()=>{function t(){const c=s();return!(!c||c==="undefined")}function e(c){c.accessToken&&localStorage.setItem("access_token",c.accessToken),c.refreshToken&&localStorage.setItem("refresh_token",c.refreshToken)}function n(){const c=localStorage.getItem("user");return c?JSON.parse(c).id:""}function r(){const c=localStorage.getItem("user");if(c)return JSON.parse(c)}function s(){return localStorage.getItem("access_token")}function o(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function d(c){if(!t())return;const u=Ot.getUser();u&&(u.human=c,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:s,getRefreshToken:o,getUserId:n,clearTokens:a,getUser:r,updateHuman:d}})();class gi{constructor(e){l(this,"code",400);l(this,"err","");$.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,n){const r=e.config;if(e.response){if(e.response.status===401&&!r._retry)return r._retry=!0,n.defaults.headers.common.token=Ot.getAccessToken(),e.config.headers.token=Ot.getAccessToken(),e.config.baseURL=void 0,n.request(r);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){ye.Error("Неверный логин или пароль");return}ye.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const s=new gi(e.response.data).getErr();s&&ye.Error(s)}return Promise.reject(e)}}}const yt=K.create();yt.interceptors.response.use(t=>t,async t=>await gi.Handle(t,yt));class Dt{static async Get(e,n,r){return await yt({method:Ft.GET,url:e,headers:n,responseType:r})}static async Post(e,n,r,s){return n["Content-Type"]="multipart/form-data",await yt({method:Ft.POST,url:e,headers:n,responseType:r,data:s})}static async Put(e,n,r){return n["Content-Type"]="multipart/form-data",await yt({method:Ft.PUT,url:e,headers:n,data:r})}static async Delete(e,n){return await yt({method:Ft.DELETE,url:e,headers:n})}}class bn{constructor(e){l(this,"name","");$.BuildClass(this,e)}static Set(){}static Get(e,n){const r=sessionStorage.getItem(e);if(r){const s=JSON.parse(r),o=new Date,a=new Date(s.time),d=o.getTime()-a.getTime();return Math.round(d/6e4)>(n||10)?null:s.data}else return null}static async TryGet(e,n,r){let s;return s=bn.Get(e,r),s||(s=await n()),s}}var yi=(t=>(t.ContentType="Content-Type",t.Token="token",t))(yi||{}),cs=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(cs||{});const{parse:mg,stringify:_c}=JSON,Wc=String,Gc="string",Zc="object",Xc=(t,e)=>e,ds=(t,e,n)=>{const r=Wc(e.push(n)-1);return t.set(n,r),r},Yc=(t,e,n)=>{const r=Xc,s=new Map,o=[],a=[];let d=+ds(s,o,r.call({"":t},"",t)),c=!d;for(;d<o.length;)c=!0,a[d]=_c(o[d++],u,n);return"["+a.join(",")+"]";function u(h,f){if(c)return c=!c,f;const m=r.call(this,h,f);switch(typeof m){case Zc:if(m===null)return m;case Gc:return s.get(m)||ds(s,o,m)}return m}},Z=class Z{static Setup(e,n,r){this.baseUrl=e,this.apiVersion=n,this.apiHost=r}static newWebSocket(e){const n=this.apiHost.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const r=Z.getDownloadFileName(e,n.headers),s=URL.createObjectURL(n.data),o=document.createElement("a");o.href=s,o.setAttribute("download",r),o.setAttribute("target","_blank"),document.body.appendChild(o),o.click()}static getDownloadFileName(e,n){if(e)return e;const r=n["content-disposition"],s=r.indexOf('"')+1,o=r.lastIndexOf('"'),a=r.substring(s,o);return a||"file"}static getHeaders(e){const n=Pe.Get(Re.AccessToken);return e||(e=Z.headers),n&&(e[yi.Token]=n),e??Z.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?Z.download(e.downloadFileName,n):n.data}static async Get(e){return Z.returnResponse(e,await Dt.Get(Z.buildUrl((e==null?void 0:e.query)??""),Z.getHeaders(e==null?void 0:e.headers),Z.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return Z.returnResponse(e,await Dt.Post(Z.buildUrl(e==null?void 0:e.query),Z.getHeaders(e==null?void 0:e.headers),Z.getResponseType(e.isBlob),Z.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return Z.returnResponse(e,await Dt.Put(Z.buildUrl(e==null?void 0:e.query),Z.getHeaders(e==null?void 0:e.headers),Z.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return Z.returnResponse(e,await Dt.Delete(Z.buildUrl(e==null?void 0:e.query),Z.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(Z.buildUrl(n))}static buildUrl(e){const n=e??"";return this.baseUrl+this.apiVersion+n}static getResponseType(e){return e?"blob":"json"}static createFormDataPayload(e,n){const r=new FormData;if(r.append("form",Yc(e)),n)for(const s of n)s.file&&r.append(s.id??"files",s.file,s.originalName);return r}};l(Z,"baseUrl",""),l(Z,"apiVersion",""),l(Z,"apiHost",""),l(Z,"headers",{[yi.ContentType]:cs.ApplicationJson});let J=Z;const E=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},Jc={},Qc={style:{"text-align":"center"}};function Kc(t,e){return i.openBlock(),i.createElementBlock("div",Qc,e[0]||(e[0]=[i.createElementVNode("h1",null,"Страница не найдена",-1)]))}const wi=E(Jc,[["render",Kc]]),ed=[{path:"/:pathMatch(.*)*",name:"NotFound",component:wi}],Le=class Le{static Set(e){this.router=e,this.AddRoutes(ed)}static Get(){return this.router}static AddRoutes(e){e.forEach(n=>{this.Get().addRoute(n)})}static async To(e){await this.Get().push(e)}static async ToHome(){}static async Replace(e){await this.Get().replace(e)}static Id(){return Le.GetStringParam("id")}static Slug(){return Le.GetStringParam("slug")}static async Back(){this.Get().go(-1)}static GetQid(){return Le.GetStringQueryParam("qid")}static Route(){var e;return(e=this.Get())==null?void 0:e.currentRoute.value}static RouterPushBlank(e){const n=this.Get().resolve({path:e});window.open(n==null?void 0:n.href,"_blank")}static GetPath(){var n;const e=(n=Le.Route())==null?void 0:n.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.Get().push("/admin");return}let n=e;n[0]==="/"&&(n=e.substring(1)),await Le.To(`/admin/${n}`)}static GetStringQueryParam(e){return String(this.Route().query[e])}static GetNumberQueryParam(e){return Number(this.Route().query[e]??0)}static GetStringParam(e){var n;return(n=this.Route())==null?void 0:n.params[e]}static SetQueryParam(e,n){const r=new URL(window.location);r.searchParams.set(e,String(n)),history.replaceState(null,"",r)}static Resolve(e){return this.Get().resolve(e)}};l(Le,"router"),l(Le,"ChangeDocumentTitle",(e="")=>{let n=Le.Route().meta.title??e;n&&e&&(n=n+` | ${e}`),document.title=n});let Ve=Le;class Y{constructor(e,n){l(this,"items",i.reactive([]));l(this,"item");l(this,"count",i.ref(0));l(this,"classConstructor");l(this,"url","");this.classConstructor=e,this.item=i.reactive(new this.classConstructor),this.url=n}Set(e){Object.assign(this.item,new this.classConstructor(e))}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetAll(e){let n;const r=J.Get;e&&e.withCache?n=await bn.TryGet(this.getUrl(),r):n=await r({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}async Get(e){e||(e=Ve.Id()),this.Set(await J.Get({query:this.getUrl(e)}))}async GetBySlug(e){e||(e=Ve.Slug()),this.Set(await A.H.HttpClient.Get({query:this.getUrl("by-slug/"+e)}))}async FTSP(e){var a;const r=((e==null?void 0:e.ftsp)??je.Get()).clearForHTTP(),s={payload:{ftsp:r},query:this.getUrl("ftsp")},o=await J.Post(s);if(!(!o||!o.ftsp))if(Array.isArray(o.data))this.SetAll(o.data);else{if(r.p.append){this.AppendToAll((a=o.data)==null?void 0:a.items);return}this.SetAllWithCount(o.data)}}async Create(e){const n=e??this.item,r={payload:n,query:this.getUrl()};return n.getFileInfos&&(r.fileInfos=n.getFileInfos()),await J.Post(r)}async CreateAndSet(e){const n=await this.Create(e);this.Set(n)}async CreateMany(e){if(!e)return;const n=[];e.forEach(r=>{n.push(new Promise(()=>this.Create(r)))}),Promise.all(n)}async Update(e){const n=e??this.item,r={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(r.fileInfos=n.getFileInfos(),r.fileInfos.forEach(s=>s.url="")),await J.Put(r)}async UpdateAndSet(e){const n=await this.Update(e);this.Set(n)}async UpdateAndReset(e){await this.Update(e??this.item),this.Set()}async Remove(e){if(!e){console.warn("BaseStore/Remove. id is undefined");return}await J.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}async UpdateMany(e){if(e||(e=this.items),!e)return;const n=[];e.forEach(r=>{n.push(new Promise(()=>this.Update(r)))}),Promise.all(n)}SetAll(e){e&&(this.items.splice(0,this.items.length),this.items.push(...e.map(n=>new this.classConstructor(n))))}SetAllWithCount(e){e&&(this.SetAll(e.items),this.count.value=e.count)}RemoveItem(e){const n=this.items.findIndex(r=>r.id===e);this.items.splice(n,1)}AppendToAll(e){if(e){if(Array.isArray(e)){const n=e.map(r=>new this.classConstructor(r));this.items.push(...n);return}this.items.push(new this.classConstructor(e))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){$.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){if(e){if(Array.isArray(e)){const n=e.map(r=>new this.classConstructor(r));this.items.unshift(...n);return}this.items.unshift(new this.classConstructor(e))}}get Items(){return this.items}get Item(){return this.item}get Count(){return this.count}}function td(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const nd=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class id{static GetRandColor(e){return Ue.GetRandEL(e??nd)}}function us(t,e){const n=[],r=e||Ee.Asc,s=r===Ee.Asc?Ee.Desc:Ee.Asc;return Object.values(t).forEach(o=>{n.push(o(r)),n.push(o(s))}),n.length>0&&!n.some(o=>o.default)&&(n[0].default=!0),e&&n.forEach(o=>{o.default&&(o.default=o.order===e)}),n}let rd=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",vt.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",en[vt.FiveMinutes])}startDrag(e,n){this.draggedStartTime=e,this.draggedEndTime=n,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=en[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ue.GenerateNumsRange(this.startHour,this.endHour)}};const bi=t=>t===8||t===46,sd=t=>t>46&&t<58,od=t=>t>34&&t<41,ad=t=>t+".",ld=(t,e,n)=>{bi(e)||od(e)||(!sd(e)||n>9)&&t.preventDefault()};function cd(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let r=t.substring(3,5).replace(".","1");Number(r)>12&&(r="12");let s=t.substring(6,10).replace(".","1");Number(s)>2100&&(s="2100"),t=n+"."+r+"."+s}return t}function dd(t){const e=t.keyCode;let n=t.srcElement.value;const r=n.length;ld(t,e,r),!bi(e)&&(r===2||r===5)&&(n=ad(n));const s=t.srcElement.value+String.fromCharCode(t.which);if(bi(e)){t.srcElement.value=n;return}n.length===0&&Number(s)>3&&(n="3",t.preventDefault()),n.length===1&&Number(s)>31&&(n="31",t.preventDefault()),s.length===5&&Number(s.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=cd(n,r),t.srcElement.value=n}const ud=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],hd="ru-RU";class Te{constructor(){l(this,"locale","ru-RU")}static Format(e,n){if(!e)return"";const r={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(r.year=n.year||n.year===void 0?n.year:r.year,r.month=n.month||n.month===void 0?n.month:r.month,r.day=n.day||n.day===void 0?n.day:r.day,r.hour=n.hour??r.hour,r.minute=n.minute??r.minute),Intl.DateTimeFormat(hd,r).format(new Date(e))}static FormatWithTime(e){return Te.Format(e,{month:"2-digit",day:"2-digit",year:"numeric",hour:"numeric",minute:"numeric"})}static FromRuStr(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetPeriod(e,n,r){return`${this.Format(e,r)}-${this.Format(n,r)}`}static GetShortDayName(e){return e?ud[e.getDay()]:""}static GetCurrentWeekPeriod(e){const n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),s=new Date(n.getFullYear(),n.getMonth(),r.getDate()+7);return this.GetPeriod(r,s,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,n){const r=new Date,s=new Date,o=Te.SplitHourTime(e),a=Te.SplitHourTime(n);return r.setHours(o[0],o[1],0,0),s.setHours(a[0],a[1],0,0),(s.getTime()-r.getTime())/1e3/60}static HourTimeinMunutes(e){const n=Te.SplitHourTime(e);return n[0]*60+n[1]}static SplitHourTime(e){const n=e.split(":");return[Number(n[0]),Number(n[1])]}static AddMinutesToHM(e,n){const r=new Date,s=Te.SplitHourTime(e);r.setHours(s[0],s[1],0,0);const o=new Date(r.getTime()+n*6e4),a=o.getHours(),d=o.getMinutes();return`${a}:${d}`}static GetMonthsDiff(e,n){return n.getMonth()-e.getMonth()+12*(n.getFullYear()-e.getFullYear())}static StringToDate(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,n,r){return new Date(e)>=new Date(n)&&new Date(e)<=new Date(r)}static GetDatesFromPeriod(e,n){const r=[new Date(e)];let s=e;for(;s<=n;)s=Te.AddDays(s,1),r.push(s);return r}static AddDays(e,n){const r=new Date(e);return r.setDate(r.getDate()+n),r}static Eq(e,n){return e.getTime()===n.getTime()}}class fd{constructor(){l(this,"dragged",!1);l(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class hs{static Get(e){const n=e.split(".");return n[n.length-1]}}const md=(()=>{function t(o,a){localStorage.setItem(`${o}_favourite`,a.toString())}function e(o,a){const d=localStorage.getItem(`${o}_favourite`);return d?d.split(",").includes(a):!1}function n(o,a){const d=localStorage.getItem(`${o}_favourite`);if(!d){t(o,[a]);return}const c=d.split(",");c.push(a),t(o,c)}function r(o,a){const d=localStorage.getItem(`${o}_favourite`);if(!d)return;const c=d.split(",").filter(u=>u!==a);t(o,c)}function s(){for(const o in localStorage)o.includes("_favourite")&&localStorage.removeItem(o)}return{addToFavourite:n,removeFromFavourite:r,setFavourite:t,isFavourite:e,clearFavourite:s}})();/*!
|
|
18
|
+
`):" "+is(o[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:hi};function fi(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new gt(null,t)}function ss(t){return fi(t),t.headers=we.from(t.headers),t.data=di.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rs.getAdapter(t.adapter||Vt.adapter)(t).then(function(r){return fi(t),r.data=di.call(t,t.transformResponse,r),r.headers=we.from(r.headers),r},function(r){return Wr(r)||(fi(t),r&&r.response&&(r.response.data=di.call(t,t.transformResponse,r.response),r.response.headers=we.from(r.response.headers))),Promise.reject(r)})}const os="1.7.9",yn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{yn[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const as={};yn.transitional=function(e,n,r){function s(o,a){return"[Axios v"+os+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,d)=>{if(e===!1)throw new F(s(a," has been removed"+(n?" in "+n:"")),F.ERR_DEPRECATED);return n&&!as[a]&&(as[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,a,d):!0}},yn.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Hc(t,e,n){if(typeof t!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const o=r[s],a=e[o];if(a){const d=t[o],c=d===void 0||a(d,o,t);if(c!==!0)throw new F("option "+o+" must be "+c,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F("Unknown option "+o,F.ERR_BAD_OPTION)}}const wn={assertOptions:Hc,validators:yn},Pe=wn.validators;class lt{constructor(e){this.defaults=e,this.interceptors={request:new qr,response:new qr}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
19
|
+
`+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=at(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&wn.assertOptions(r,{silentJSONParsing:Pe.transitional(Pe.boolean),forcedJSONParsing:Pe.transitional(Pe.boolean),clarifyTimeoutError:Pe.transitional(Pe.boolean)},!1),s!=null&&(w.isFunction(s)?n.paramsSerializer={serialize:s}:wn.assertOptions(s,{encode:Pe.function,serialize:Pe.function},!0)),wn.assertOptions(n,{baseUrl:Pe.spelling("baseURL"),withXsrfToken:Pe.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&w.merge(o.common,o[n.method]);o&&w.forEach(["delete","get","head","post","put","patch","common"],C=>{delete o[C]}),n.headers=we.concat(a,o);const d=[];let c=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(c=c&&b.synchronous,d.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let h,f=0,m;if(!c){const C=[ss.bind(this),void 0];for(C.unshift.apply(C,d),C.push.apply(C,u),m=C.length,h=Promise.resolve(n);f<m;)h=h.then(C[f++],C[f++]);return h}m=d.length;let g=n;for(f=0;f<m;){const C=d[f++],b=d[f++];try{g=C(g)}catch(S){b.call(this,S);break}}try{h=ss.call(this,g)}catch(C){return Promise.reject(C)}for(f=0,m=u.length;f<m;)h=h.then(u[f++],u[f++]);return h}getUri(e){e=at(this.defaults,e);const n=Yr(e.baseURL,e.url);return Hr(n,e.params,e.paramsSerializer)}}w.forEach(["delete","get","head","options"],function(e){lt.prototype[e]=function(n,r){return this.request(at(r||{},{method:e,url:n,data:(r||{}).data}))}}),w.forEach(["post","put","patch"],function(e){function n(r){return function(o,a,d){return this.request(at(d||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}lt.prototype[e]=n(),lt.prototype[e+"Form"]=n(!0)});class mi{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const a=new Promise(d=>{r.subscribe(d),o=d}).then(s);return a.cancel=function(){r.unsubscribe(o)},a},e(function(o,a,d){r.reason||(r.reason=new gt(o,a,d),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new mi(function(s){e=s}),cancel:e}}}function qc(t){return function(n){return t.apply(null,n)}}function Uc(t){return w.isObject(t)&&t.isAxiosError===!0}const pi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(pi).forEach(([t,e])=>{pi[e]=t});function ls(t){const e=new lt(t),n=Mr(lt.prototype.request,e);return w.extend(n,lt.prototype,e,{allOwnKeys:!0}),w.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return ls(at(t,s))},n}const K=ls(Vt);K.Axios=lt,K.CanceledError=gt,K.CancelToken=mi,K.isCancel=Wr,K.VERSION=os,K.toFormData=hn,K.AxiosError=F,K.Cancel=K.CanceledError,K.all=function(e){return Promise.all(e)},K.spread=qc,K.isAxiosError=Uc,K.mergeConfig=at,K.AxiosHeaders=we,K.formToJSON=t=>_r(w.isHTMLForm(t)?new FormData(t):t),K.getAdapter=rs.getAdapter,K.HttpStatusCode=pi,K.default=K;var Ft=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(Ft||{});const Ot=(()=>{function t(){const c=s();return!(!c||c==="undefined")}function e(c){c.accessToken&&localStorage.setItem("access_token",c.accessToken),c.refreshToken&&localStorage.setItem("refresh_token",c.refreshToken)}function n(){const c=localStorage.getItem("user");return c?JSON.parse(c).id:""}function r(){const c=localStorage.getItem("user");if(c)return JSON.parse(c)}function s(){return localStorage.getItem("access_token")}function o(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function d(c){if(!t())return;const u=Ot.getUser();u&&(u.human=c,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:s,getRefreshToken:o,getUserId:n,clearTokens:a,getUser:r,updateHuman:d}})();class gi{constructor(e){l(this,"code",400);l(this,"err","");$.BuildClass(this,e)}getErr(){return this.capitalizedErr()}capitalizedErr(){return this.err.charAt(0).toUpperCase()+this.err.slice(1)}static async Handle(e,n){const r=e.config;if(e.response){if(e.response.status===401&&!r._retry)return r._retry=!0,n.defaults.headers.common.token=Ot.getAccessToken(),e.config.headers.token=Ot.getAccessToken(),e.config.baseURL=void 0,n.request(r);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){ye.Error("Неверный логин или пароль");return}ye.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const s=new gi(e.response.data).getErr();s&&ye.Error(s)}return Promise.reject(e)}}}const yt=K.create();yt.interceptors.response.use(t=>t,async t=>await gi.Handle(t,yt));class Dt{static async Get(e,n,r){return await yt({method:Ft.GET,url:e,headers:n,responseType:r})}static async Post(e,n,r,s){return n["Content-Type"]="multipart/form-data",await yt({method:Ft.POST,url:e,headers:n,responseType:r,data:s})}static async Put(e,n,r){return n["Content-Type"]="multipart/form-data",await yt({method:Ft.PUT,url:e,headers:n,data:r})}static async Delete(e,n){return await yt({method:Ft.DELETE,url:e,headers:n})}}class bn{constructor(e){l(this,"name","");$.BuildClass(this,e)}static Set(){}static Get(e,n){const r=sessionStorage.getItem(e);if(r){const s=JSON.parse(r),o=new Date,a=new Date(s.time),d=o.getTime()-a.getTime();return Math.round(d/6e4)>(n||10)?null:s.data}else return null}static async TryGet(e,n,r){let s;return s=bn.Get(e,r),s||(s=await n()),s}}var yi=(t=>(t.ContentType="Content-Type",t.Token="token",t))(yi||{}),cs=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(cs||{});const Z=class Z{static Setup(e,n,r){this.baseUrl=e,this.apiVersion=n,this.apiHost=r}static newWebSocket(e){const n=this.apiHost.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const r=Z.getDownloadFileName(e,n.headers),s=URL.createObjectURL(n.data),o=document.createElement("a");o.href=s,o.setAttribute("download",r),o.setAttribute("target","_blank"),document.body.appendChild(o),o.click()}static getDownloadFileName(e,n){if(e)return e;const r=n["content-disposition"],s=r.indexOf('"')+1,o=r.lastIndexOf('"'),a=r.substring(s,o);return a||"file"}static getHeaders(e){const n=ze.Get(Re.AccessToken);return e||(e=Z.headers),n&&(e[yi.Token]=n),e??Z.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?Z.download(e.downloadFileName,n):n.data}static async Get(e){return Z.returnResponse(e,await Dt.Get(Z.buildUrl((e==null?void 0:e.query)??""),Z.getHeaders(e==null?void 0:e.headers),Z.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return Z.returnResponse(e,await Dt.Post(Z.buildUrl(e==null?void 0:e.query),Z.getHeaders(e==null?void 0:e.headers),Z.getResponseType(e.isBlob),Z.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return Z.returnResponse(e,await Dt.Put(Z.buildUrl(e==null?void 0:e.query),Z.getHeaders(e==null?void 0:e.headers),Z.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return Z.returnResponse(e,await Dt.Delete(Z.buildUrl(e==null?void 0:e.query),Z.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(Z.buildUrl(n))}static buildUrl(e){const n=e??"";return this.baseUrl+this.apiVersion+n}static getResponseType(e){return e?"blob":"json"}static createFormDataPayload(e,n){const r=new FormData;if(r.append("form",JSON.stringify(e)),n)for(const s of n)s.file&&r.append(s.id??"files",s.file,s.originalName);return r}};l(Z,"baseUrl",""),l(Z,"apiVersion",""),l(Z,"apiHost",""),l(Z,"headers",{[yi.ContentType]:cs.ApplicationJson});let J=Z;const E=(t,e)=>{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n},_c={},jc={style:{"text-align":"center"}};function Wc(t,e){return i.openBlock(),i.createElementBlock("div",jc,e[0]||(e[0]=[i.createElementVNode("h1",null,"Страница не найдена",-1)]))}const wi=E(_c,[["render",Wc]]),Gc=[{path:"/:pathMatch(.*)*",name:"NotFound",component:wi}],Le=class Le{static Set(e){this.router=e,this.AddRoutes(Gc)}static Get(){return this.router}static AddRoutes(e){e.forEach(n=>{this.Get().addRoute(n)})}static async To(e){await this.Get().push(e)}static async ToHome(){}static async Replace(e){await this.Get().replace(e)}static Id(){return Le.GetStringParam("id")}static Slug(){return Le.GetStringParam("slug")}static async Back(){this.Get().go(-1)}static GetQid(){return Le.GetStringQueryParam("qid")}static Route(){var e;return(e=this.Get())==null?void 0:e.currentRoute.value}static RouterPushBlank(e){const n=this.Get().resolve({path:e});window.open(n==null?void 0:n.href,"_blank")}static GetPath(){var n;const e=(n=Le.Route())==null?void 0:n.path.split("/");return!e||e.length<=0?"":e[e.length-1]}static async ToAdmin(e){if(!e){await this.Get().push("/admin");return}let n=e;n[0]==="/"&&(n=e.substring(1)),await Le.To(`/admin/${n}`)}static GetStringQueryParam(e){return String(this.Route().query[e])}static GetNumberQueryParam(e){return Number(this.Route().query[e]??0)}static GetStringParam(e){var n;return(n=this.Route())==null?void 0:n.params[e]}static SetQueryParam(e,n){const r=new URL(window.location);r.searchParams.set(e,String(n)),history.replaceState(null,"",r)}static Resolve(e){return this.Get().resolve(e)}};l(Le,"router"),l(Le,"ChangeDocumentTitle",(e="")=>{let n=Le.Route().meta.title??e;n&&e&&(n=n+` | ${e}`),document.title=n});let Ve=Le;class Y{constructor(e,n){l(this,"items",i.reactive([]));l(this,"item");l(this,"count",i.ref(0));l(this,"classConstructor");l(this,"url","");this.classConstructor=e,this.item=i.reactive(new this.classConstructor),this.url=n}Set(e){Object.assign(this.item,new this.classConstructor(e))}getUrl(e){return e?`${this.url}/${e}`:this.url}async GetAll(e){let n;const r=J.Get;e&&e.withCache?n=await bn.TryGet(this.getUrl(),r):n=await r({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}async Get(e){e||(e=Ve.Id()),this.Set(await J.Get({query:this.getUrl(e)}))}async GetBySlug(e){e||(e=Ve.Slug()),this.Set(await A.H.HttpClient.Get({query:this.getUrl("by-slug/"+e)}))}async FTSP(e){var a;const r=((e==null?void 0:e.ftsp)??_e.Get()).clearForHTTP(),s={payload:{ftsp:r},query:this.getUrl("ftsp")},o=await J.Post(s);if(!(!o||!o.ftsp))if(Array.isArray(o.data))this.SetAll(o.data);else{if(r.p.append){this.AppendToAll((a=o.data)==null?void 0:a.items);return}this.SetAllWithCount(o.data)}}async Create(e){const n=e??this.item,r={payload:n,query:this.getUrl()};return n.getFileInfos&&(r.fileInfos=n.getFileInfos()),await J.Post(r)}async CreateAndSet(e){const n=await this.Create(e);this.Set(n)}async CreateMany(e){if(!e)return;const n=[];e.forEach(r=>{n.push(new Promise(()=>this.Create(r)))}),Promise.all(n)}async Update(e){const n=e??this.item,r={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(r.fileInfos=n.getFileInfos(),r.fileInfos.forEach(s=>s.url="")),await J.Put(r)}async UpdateAndSet(e){const n=await this.Update(e);this.Set(n)}async UpdateAndReset(e){await this.Update(e??this.item),this.Set()}async Remove(e){if(!e){console.warn("BaseStore/Remove. id is undefined");return}await J.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}async UpdateMany(e){if(e||(e=this.items),!e)return;const n=[];e.forEach(r=>{n.push(new Promise(()=>this.Update(r)))}),Promise.all(n)}SetAll(e){e&&(this.items.splice(0,this.items.length),this.items.push(...e.map(n=>new this.classConstructor(n))))}SetAllWithCount(e){e&&(this.SetAll(e.items),this.count.value=e.count)}RemoveItem(e){const n=this.items.findIndex(r=>r.id===e);this.items.splice(n,1)}AppendToAll(e){if(e){if(Array.isArray(e)){const n=e.map(r=>new this.classConstructor(r));this.items.push(...n);return}this.items.push(new this.classConstructor(e))}}ResetState(){this.ResetItem(),this.ClearItems(),this.count.value=0}ResetItem(){$.BuildClass(this.item,new this.classConstructor)}ClearItems(){this.items.splice(0,this.items.length)}UnshiftToAll(e){if(e){if(Array.isArray(e)){const n=e.map(r=>new this.classConstructor(r));this.items.unshift(...n);return}this.items.unshift(new this.classConstructor(e))}}get Items(){return this.items}get Item(){return this.item}get Count(){return this.count}}function Zc(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const Xc=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class Yc{static GetRandColor(e){return Ue.GetRandEL(e??Xc)}}function ds(t,e){const n=[],r=e||Ee.Asc,s=r===Ee.Asc?Ee.Desc:Ee.Asc;return Object.values(t).forEach(o=>{n.push(o(r)),n.push(o(s))}),n.length>0&&!n.some(o=>o.default)&&(n[0].default=!0),e&&n.forEach(o=>{o.default&&(o.default=o.order===e)}),n}let Jc=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",vt.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",en[vt.FiveMinutes])}startDrag(e,n){this.draggedStartTime=e,this.draggedEndTime=n,this.dragged=!0}endDrag(){this.activeTime="",this.dragged=!1}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=en[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ue.GenerateNumsRange(this.startHour,this.endHour)}};const bi=t=>t===8||t===46,Qc=t=>t>46&&t<58,Kc=t=>t>34&&t<41,ed=t=>t+".",td=(t,e,n)=>{bi(e)||Kc(e)||(!Qc(e)||n>9)&&t.preventDefault()};function nd(t,e){if(e>8){let n=t.substring(0,2).replace(".","1");Number(n)>31&&(n="31");let r=t.substring(3,5).replace(".","1");Number(r)>12&&(r="12");let s=t.substring(6,10).replace(".","1");Number(s)>2100&&(s="2100"),t=n+"."+r+"."+s}return t}function id(t){const e=t.keyCode;let n=t.srcElement.value;const r=n.length;td(t,e,r),!bi(e)&&(r===2||r===5)&&(n=ed(n));const s=t.srcElement.value+String.fromCharCode(t.which);if(bi(e)){t.srcElement.value=n;return}n.length===0&&Number(s)>3&&(n="3",t.preventDefault()),n.length===1&&Number(s)>31&&(n="31",t.preventDefault()),s.length===5&&Number(s.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=nd(n,r),t.srcElement.value=n}const rd=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],sd="ru-RU";class Te{constructor(){l(this,"locale","ru-RU")}static Format(e,n){if(!e)return"";const r={year:"numeric",month:"2-digit",day:"2-digit",hour:void 0,minute:void 0};return n&&(r.year=n.year||n.year===void 0?n.year:r.year,r.month=n.month||n.month===void 0?n.month:r.month,r.day=n.day||n.day===void 0?n.day:r.day,r.hour=n.hour??r.hour,r.minute=n.minute??r.minute),Intl.DateTimeFormat(sd,r).format(new Date(e))}static FormatWithTime(e){return Te.Format(e,{month:"2-digit",day:"2-digit",year:"numeric",hour:"numeric",minute:"numeric"})}static FromRuStr(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetPeriod(e,n,r){return`${this.Format(e,r)}-${this.Format(n,r)}`}static GetShortDayName(e){return e?rd[e.getDay()]:""}static GetCurrentWeekPeriod(e){const n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),s=new Date(n.getFullYear(),n.getMonth(),r.getDate()+7);return this.GetPeriod(r,s,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,n){const r=new Date,s=new Date,o=Te.SplitHourTime(e),a=Te.SplitHourTime(n);return r.setHours(o[0],o[1],0,0),s.setHours(a[0],a[1],0,0),(s.getTime()-r.getTime())/1e3/60}static HourTimeinMunutes(e){const n=Te.SplitHourTime(e);return n[0]*60+n[1]}static SplitHourTime(e){const n=e.split(":");return[Number(n[0]),Number(n[1])]}static AddMinutesToHM(e,n){const r=new Date,s=Te.SplitHourTime(e);r.setHours(s[0],s[1],0,0);const o=new Date(r.getTime()+n*6e4),a=o.getHours(),d=o.getMinutes();return`${a}:${d}`}static GetMonthsDiff(e,n){return n.getMonth()-e.getMonth()+12*(n.getFullYear()-e.getFullYear())}static StringToDate(e){const n=e.split(".");return new Date(`${n[2]}-${n[1]}-${n[0]}`)}static GetDateOrToday(e){return e?e.date:new Date}static InPeriod(e,n,r){return new Date(e)>=new Date(n)&&new Date(e)<=new Date(r)}static GetDatesFromPeriod(e,n){const r=[new Date(e)];let s=e;for(;s<=n;)s=Te.AddDays(s,1),r.push(s);return r}static AddDays(e,n){const r=new Date(e);return r.setDate(r.getDate()+n),r}static Eq(e,n){return e.getTime()===n.getTime()}}class od{constructor(){l(this,"dragged",!1);l(this,"dragImg",new Image);this.dragImg.src="data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs="}start(e){this.dragged=!0,e&&e.dataTransfer&&e.dataTransfer.setDragImage(this.dragImg,0,0)}end(){this.dragged=!1}isDragged(){return this.dragged}}class us{static Get(e){const n=e.split(".");return n[n.length-1]}}const ad=(()=>{function t(o,a){localStorage.setItem(`${o}_favourite`,a.toString())}function e(o,a){const d=localStorage.getItem(`${o}_favourite`);return d?d.split(",").includes(a):!1}function n(o,a){const d=localStorage.getItem(`${o}_favourite`);if(!d){t(o,[a]);return}const c=d.split(",");c.push(a),t(o,c)}function r(o,a){const d=localStorage.getItem(`${o}_favourite`);if(!d)return;const c=d.split(",").filter(u=>u!==a);t(o,c)}function s(){for(const o in localStorage)o.includes("_favourite")&&localStorage.removeItem(o)}return{addToFavourite:n,removeFromFavourite:r,setFavourite:t,isFavourite:e,clearFavourite:s}})();/*!
|
|
20
20
|
* vue-router v4.5.0
|
|
21
21
|
* (c) 2024 Eduardo San Martin Morote
|
|
22
22
|
* @license MIT
|
|
23
|
-
*/function fs(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}var ms;(function(t){t.pop="pop",t.push="push"})(ms||(ms={}));var ps;(function(t){t.back="back",t.forward="forward",t.unknown=""})(ps||(ps={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var gs;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(gs||(gs={}));const pd=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":""),Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function gd(t,e,n){const r=()=>{t[e].delete(n)};i.onUnmounted(r),i.onDeactivated(r),i.onActivated(()=>{t[e].add(n)}),t[e].add(n)}function yd(t){if(process.env.NODE_ENV!=="production"&&!i.getCurrentInstance()){fs("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const e=i.inject(pd,{}).value;if(!e){process.env.NODE_ENV!=="production"&&fs("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}gd(e,"leaveGuards",t)}class wd{constructor(){l(this,"list",[]);l(this,"defaultSortModel");l(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=us(e),this.SetDefault())}SetDefault(){this.defaultSortModel=this.list.find(e=>e.default)??this.list[0],this.changeFlag=!this.changeFlag}Get(){return this.list}GetDefault(){return this.defaultSortModel}Reset(){this.list=[],this.defaultSortModel=void 0}}const ct=new wd;function bd(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:o=>{t.value&&o.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(o,a)=>{t.value&&!e.value?o():a()}}}const Cd=(()=>{const t=(o,a)=>i.onBeforeMount(async()=>{A.F.FTSP.Get().reset(),ct.Set(a==null?void 0:a.sortsLib),await o()}),{saveButtonClick:e,showConfirmModal:n}=bd(),r=o=>yd((a,d,c)=>{n((o||s)(),c)}),s=o=>async()=>{e.value=!0;try{o&&await o()}catch(a){console.log(a);return}};return{onBeforeMount:t,onBeforeRouteLeave:r,submit:s}})();function ys(t,e){const n=[];if(t)for(let r=0;r<Math.ceil(t.length/e);r++)n[r]=t.slice(r*e,r*e+e);return n}class Ci{constructor(){l(this,"items",[]);l(this,"idx",0);l(this,"key","")}preSelect(){const e=Ve.GetStringQueryParam(this.key);if(!e||e==="undefined"){this.Select(0);return}const n=this.items.findIndex(r=>r.slug===e);n>-1&&this.Select(n)}static Create(e,n){const r=new Ci;return r.key=e,r.items=n,r.items.length&&r.preSelect(),r}Select(e){if(this.items.length){if(e===void 0)return this.preSelect();this.idx=e,Ve.SetQueryParam(this.key,this.GetSlug())}}GetMenu(){return this.items[this.idx]}GetComponent(){return this.items[this.idx].component}GetSlug(){return this.items[this.idx].slug}}const jn=class jn{static Format(e){let n=e;if(!n)e=n;else{(n[0]==="7"||n[0]==="8")&&n.length!==1&&(n=n.slice(1));const r=n.replace(/\+7|[^\d]/g,""),s=r.length;switch(!0){case s===0:e="";break;case(s===1&&n.length===1&&r==="7"):case(s===1&&n.length===1&&r==="8"):e="+7 (";break;case s<4:e=`+7 (${r}`;break;case s<7:e=`+7 (${r.slice(0,3)}) ${r.slice(3)}`;break;case s<9:e=`+7 (${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6,8)}`;break;default:e=`+7 (${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6,8)}-${r.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};l(jn,"validatePhone",(e,n,r)=>{jn.getPhoneRegExp().test(n)||!n?r():r(new Error("Пожалуйста, введите корректный номер телефона"))});let Si=jn;class Sd{static Count(e){const n=e.filter(o=>o.rating!==0);let r=0;n.forEach(o=>r=r+o.rating);const s=r/n.length;return isNaN(s)?0:Number((r/n.length).toFixed(2))}}class kd{static async Auth(e){e&&e()}static Dev(){}}class Ed{constructor(){l(this,"startHour",9);l(this,"startHM",`${this.startHour}:00`);l(this,"endHour",19);l(this,"endHM",`${this.endHour}:00`);l(this,"timelinePxHeight",50);l(this,"timelineStep",vt.FiveMinutes);l(this,"timelines",en[vt.FiveMinutes])}periodIsCorrect(e,n){return D.GtOrEq(e,this.startHM)&&D.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=en[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ue.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,r,s){return s.filter(o=>o.id!==r).every(o=>!D.PeriodsIntersects(e,n,o.startTime,o.endTime))}sortByStartTime(e){e.sort((n,r)=>D.HMtoM(n.startTime)-D.HMtoM(r.startTime))}}const xd=-68;function Md(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),r=e??xd;let s=0;n&&(s=n.getBoundingClientRect().top+r+document.body.scrollTop),s&&document.body.scrollTo({top:s,behavior:"smooth"})}class Bd{static Sort(e){e.forEach((n,r)=>n.order=r)}}function $d(t,e){let n=!0;return t.value.validate(r=>(r||(n=!1),n)),n}const Id=t=>new Promise(e=>{if(document.querySelector(t))return e(document.querySelector(t));const n=new MutationObserver(()=>{document.querySelector(t)&&(n.disconnect(),e(document.querySelector(t)))});n.observe(document.body,{childList:!0,subtree:!0})});class Cn{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");$.BuildClass(this,e)}static Create(e,n,r,s){const o=new Cn;return o.id=Xe(),o.chatId=e,o.message=r,o.userName=s,o}static CreatePingMessage(){const e=new Cn;return e.type="ping",e.id=Xe(),e}isMessage(){return this.type==="message"||this.type===""}}const Rd="";class vd{constructor(e="",n="",r="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);$.BuildClass(this,{endpoint:e,query:n,mutation:r}),this.connect(),this.ping()}send(e){!this.client||this.client.readyState!==1||this.client.send(e)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(Cn.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Rd.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}let Nd=(L=class{},l(L,"Arrays",Ue),l(L,"Axios",Dt),l(L,"BaseStore",Y),l(L,"Cache",bn),l(L,"Classes",$),l(L,"CarouselSwipe",td),l(L,"Color",id),l(L,"CreateSortModels",us),l(L,"Cursor",rd),l(L,"DateMask",dd),l(L,"Dates",Te),l(L,"Dragger",fd),l(L,"Extension",hs),l(L,"Favourite",md),l(L,"Hooks",Cd),l(L,"HttpClient",J),l(L,"Id",ee),l(L,"MakeCarousel",ys),l(L,"Period",Yn),l(L,"PhoneService",Si),l(L,"Rating",Sd),l(L,"Router",Ve),l(L,"RouterGuard",kd),l(L,"Scheduler",Ed),l(L,"Scroll",Md),l(L,"Sorter",Bd),l(L,"Static",Kn),l(L,"Strings",_),l(L,"Time",D),l(L,"Timer",Nt),l(L,"Token",Ot),l(L,"Menus",Ci),l(L,"validate",$d),l(L,"WaitElement",Id),l(L,"WebSocketClient",vd),L);class Ad{constructor(){l(this,"limit",25);l(this,"count",0);l(this,"curPage",1);l(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const ws=new Ad;let Pd=class{async Login(e=re.Form.GetValues()){const n=await J.Post({query:"auth/login",payload:e});if(!n)throw"Ошибка авторизации";re.Status.SetState(n)}async LoginAs(e){await J.Post({query:"auth/login-as",payload:{email:e}})}async Register(e=re.Form.GetValues()){const n=await J.Post({query:"auth/register",payload:e});if(!n)throw n}async RestorePassword(e=re.Form.GetValues()){await J.Post({query:"auth/restore-password",payload:e})}async PasswordChange(e=re.Form.GetValues()){e.id=Ve.GetStringParam("userId"),await J.Put({query:"auth/password-change",payload:e})}async RefreshToken(){await J.Post({query:"auth/refresh-token",payload:{refreshToken:Ot.getRefreshToken()}})}async CheckUuid(e){await J.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}async ConfirmEmail(e){await J.Get({query:`auth/confirm-email/${e}`})}async EmailIsConfirm(e){await J.Get({query:`auth/email-is-confirm/${e}`})}};const zd=new Pd;var Vd=Object.defineProperty,Sn=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Vd(e,n,s),s};const Lt=class Ja{constructor(e){l(this,"id");l(this,"description","");l(this,"time","");l(this,"latitude","");l(this,"longitude","");l(this,"emails",[]);l(this,"postAddresses",[new nn]);l(this,"phones",[]);l(this,"websites",[]);$.BuildClass(this,e)}addEmail(){const e=rt.Create();return e.contactId=this.id,this.emails.push(e),e}addPhone(){const e=st.Create();return e.contactId=this.id,this.phones.push(e),e}static Create(){const e=new Ja;return e.id=ee.UUID(),e}removeEmail(e){$.RemoveFromClassById(e,this.emails)}removePhone(e){$.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new nn)}addWebsite(){this.websites.push(new ei)}pushFirst(){this.emails.length||this.emails.push(new rt),this.phones.length||this.phones.push(new st)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}updateDescription(e){this.description=e}updateTime(e){this.time=e}updateLatitude(e){this.latitude=e}updateLongitutde(e){this.longitude=e}};Sn([$.GetClassConstructor(rt)],Lt.prototype,"emails"),Sn([$.GetClassConstructor(nn)],Lt.prototype,"postAddresses"),Sn([$.GetClassConstructor(st)],Lt.prototype,"phones"),Sn([$.GetClassConstructor(ei)],Lt.prototype,"websites");let bs=Lt,Td=class extends Y{constructor(){super(bs,"contacts")}};const Fd=new Td;let Od=class extends Y{constructor(){super(rt,"emails")}};const Dd=new Od;class ki{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");$.BuildClass(this,e)}static Create(e){const n=new ki;return n.id=ee.UUID(),n.ftsp=JSON.stringify(e),n}}let Ld=class extends Y{constructor(){super(ki,"ftsp-presets")}};const Hd=new Ld;let qd=class extends Y{constructor(){super(Er,"humans")}};const Ud=new qd;let jd=class extends Y{constructor(){super(st,"phones")}};const _d=new jd;class Wd{constructor(e){l(this,"id");l(this,"nameRus","");$.BuildClass(this,e)}}var Gd=Object.defineProperty,Zd=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Gd(e,n,s),s};class Cs{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);$.BuildClass(this,e)}}Zd([$.GetClassConstructor(Wd)],Cs.prototype,"fields");let Xd=class extends Y{constructor(){super(Cs,"schemas")}};const Yd=new Xd;class Ss{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);$.BuildClass(this,e)}}class Jd{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");$.BuildClass(this,e)}}var Qd=Object.defineProperty,ks=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Qd(e,n,s),s};class wt{constructor(e){l(this,"id");l(this,"key","");l(this,"label","");l(this,"order",0);l(this,"route","");l(this,"table","");l(this,"active",!0);l(this,"searchColumn","");l(this,"descriptionColumn","");l(this,"labelColumn","");l(this,"valueColumn","");l(this,"options",[]);l(this,"searchGroupMetaColumns",[]);$.BuildClass(this,e)}}ks([$.GetClassConstructor(Ss)],wt.prototype,"options"),ks([$.GetClassConstructor(Jd)],wt.prototype,"searchGroupMetaColumns");class Ei{constructor(e){l(this,"query","");l(this,"key","");l(this,"params","");l(this,"suggester",!1);l(this,"mustBeTranslated",!0);l(this,"options",[]);l(this,"searchGroupId","");l(this,"searchGroups",[]);l(this,"searchGroup",new wt);l(this,"searchObjects",[]);l(this,"pagination",new rn);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new wt(n))),e.searchGroup&&(this.searchGroup=new wt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new Ss(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(r=>r.id===e);n?this.searchGroup=n:this.searchGroup=new wt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Ve.Route().query.groupId)}setQuery(){const e=Ve.Route().query.query;e&&(this.query=e)}}let Kd=class{constructor(){l(this,"isSearchDrawerOpen",i.ref(!1));l(this,"searchModel",i.reactive(new Ei));l(this,"searchGroups",i.reactive([]));l(this,"count",0)}async Search(e){const n=await J.Get({query:`search?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(r=>{e.searchObjects.push({id:r.id,value:r.value,label:r.label,description:r.description})})}async mainSearch(e){this.SetSearchModel(await J.Get({query:`search/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(r=>{r.options=[]});const n=await J.Get({query:`search/main?searchModel=${e.toUrl()}`});return this.SetSearchModel(n),n}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new Ei}SetSearchModel(e){e&&(this.searchModel=new Ei(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const xi=new Kd;class Mi{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");$.BuildClass(this,e)}static Create(){const e=new Mi;return e.id=ee.UUID(),e}}let eu=class extends Y{constructor(){super(Mi,"users-accounts")}};const tu=new eu;var Es=(t=>(t.simple="simple",t.oneToMany="oneToMany",t.manyToMany="manyToMany",t))(Es||{}),ge=(t=>(t.String="string",t.Text="text",t.Number="number",t.Date="date",t.DateTime="dateTime",t.Radio="radio",t.Set="set",t.Boolean="boolean",t.Files="files",t.File="file",t.MatrixRadio="matrixRadio",t.MatrixSet="matrixSet",t))(ge||{});class xs{constructor(e){l(this,"id");l(this,"name",ge.String);l(this,"valueRelation",Es.simple);$.BuildClass(this,e)}isString(){return this.name==="string"}isNumber(){return this.name==="number"}isDate(){return this.name==="date"}isDateTime(){return this.name==="dateTime"}isRadio(){return this.name==="radio"}isSet(){return this.name==="set"}isText(){return this.name==="text"}isBoolean(){return this.name==="boolean"}isFile(){return this.name==="file"}isFiles(){return this.name==="files"}getComponentType(){if(this.name===ge.Radio)return"RadioProp";if(this.name===ge.Set)return"SetProp";if(this.name===ge.Number)return"NumberProp";if(this.name===ge.String)return"StringProp"}}let nu=class extends Y{constructor(){super(xs,"value-types")}};const iu=new nu;let Ms=(ke=class{},l(ke,"Auth",zd),l(ke,"Contacts",Fd),l(ke,"Emails",Dd),l(ke,"FileInfos",new Y(fe,"file-infos")),l(ke,"FTSPPresets",Hd),l(ke,"Humans",Ud),l(ke,"Phones",_d),l(ke,"Schemas",Yd),l(ke,"UserAccounts",tu),l(ke,"ValueTypes",iu),l(ke,"Search",xi),ke);var Bi=(t=>(t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl",t))(Bi||{});let ru=(tt=class{},l(tt,"Orders",Ee),l(tt,"Sizes",Bi),l(tt,"Statuses",ce),l(tt,"DataTypes",se),l(tt,"ValueTypes",ge),l(tt,"Operators",me),tt);class su{constructor(){l(this,"title","");l(this,"buttons",[])}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const ou=new su;class au{constructor(){l(this,"menu",[]);l(this,"path","");l(this,"isOpen",!0);l(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return _.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(r=>_.SearchIn(r.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(e){this.path=e}GetPath(){return this.path}SetFilter(e){this.filterString=e}GetChildren(e){var n;return this.filterString?(n=e.children)==null?void 0:n.filter(r=>_.SearchIn(r.name,this.filterString)):e.children}}const lu=new au;class cu{constructor(){l(this,"Menu",i.reactive(lu));l(this,"Head",i.reactive(ou))}}const du=new cu;class uu extends yr{constructor(){super(...arguments);l(this,"confirmButtonText","Да");l(this,"cancelButtonText","Нет");l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){return super.show(),typeof n!="string"&&(this.confirmButtonText=n.confirmButtonText,this.cancelButtonText=n.cancelButtonText),new Promise((r,s)=>{this.resolve=r,this.reject=s})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const _e=new uu;class hu extends gr{Show(){super.show()}Hide(){super.hide()}}const fu=new hu;class Ye{}l(Ye,"Admin",du),l(Ye,"Dialog",_e),l(Ye,"Loading",fu),l(Ye,"Notify",i.reactive(ye)),l(Ye,"Btn",it),l(Ye,"Input",hr);class A{}l(A,"Auth",i.reactive(re)),l(A,"UI",i.reactive(Ye)),l(A,"Paginator",i.reactive(ws)),l(A,"S",Ms),l(A,"H",Nd),l(A,"C",gl),l(A,"T",ru),l(A,"F",Sl);class Bs{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new fe);A.H.Classes.BuildClass(this,e)}}class Ht{constructor(e){l(this,"id");l(this,"passportId");l(this,"fileInfoId");l(this,"fileInfo",new A.C.FileInfo);l(this,"order",0);$.BuildClass(this,e)}static Create(e){const n=new Ht;return n.id=A.H.Id.UUID(),n.passportId=e,n}}var mu=Object.defineProperty,pu=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&mu(e,n,s),s};class $i{constructor(e){l(this,"id");l(this,"num","");l(this,"seria","");l(this,"division","");l(this,"divisionCode","");l(this,"citzenship","");l(this,"date",new Date);l(this,"address","");l(this,"passportScans",[]);$.BuildClass(this,e)}}pu([$.GetClassConstructor(Ht)],$i.prototype,"passportScans");class $s{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new fe);A.H.Classes.BuildClass(this,e)}}const gu=Object.freeze(Object.defineProperty({__proto__:null,Inn:Bs,Passport:$i,PassportScan:Ht,Snils:$s},Symbol.toStringTag,{value:"Module"}));let yu=class extends Y{constructor(){super(Bs,"inns")}};const wu=new yu;let bu=class extends Y{constructor(){super(Ht,"passport-scans")}};const Cu=new bu;let Su=class extends Y{constructor(){super($i,"passports")}};const ku=new Su;let Eu=class extends Y{constructor(){super($s,"snilss")}};const xu=new Eu,Mu=Object.freeze(Object.defineProperty({__proto__:null,C:gu,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:wu,PassportScans:Cu,Passports:ku,Snilss:xu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class dt{constructor(e){l(this,"id");l(this,"name","");l(this,"score",0);l(this,"order",0);l(this,"showMoreQuestions",!1);l(this,"showOther",!1);l(this,"fieldId");l(this,"isMatrixY",!1);A.H.Classes.BuildClass(this,e)}static Create(e){const n=new dt;return n.id=A.H.Id.UUID(),n.fieldId=e,n}}class Is{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");A.H.Classes.BuildClass(this,e)}}class Ii{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);A.H.Classes.BuildClass(this,e)}}class bt{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");A.H.Classes.BuildClass(this,e)}static Create(e){const n=new bt;return n.id=A.H.Id.UUID(),n.fieldId=e,n}}var Bu=Object.defineProperty,qt=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Bu(e,n,s),s};const ut=class Gn{constructor(e){l(this,"id");l(this,"name","");l(this,"code","");l(this,"valueTypeId");l(this,"order",0);l(this,"ageCompare",!1);l(this,"answerVariants",[]);l(this,"answerVariantsForDelete",[]);l(this,"fieldExamples",[]);l(this,"fieldVariants",[]);l(this,"valueType",new xs);l(this,"fieldMeasures",[]);l(this,"showSet",!1);l(this,"showRadio",!1);l(this,"isEdit",!1);l(this,"children",[]);l(this,"parentId");l(this,"formSectionId");l(this,"selected",!1);A.H.Classes.BuildClass(this,e),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(e=>!e.isMatrixY)}getMatrixY(){return this.answerVariants.filter(e=>e.isMatrixY)}static Create(e){const n=new Gn;return n.id=A.H.Id.UUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(r=>r.id===e);return n?n.name:""}addRadioItem(e){const n=new dt(e);n.order=this.answerVariants.length,this.answerVariants.push(n)}removeRadioItem(e){const n=this.answerVariants[e].id;n&&this.answerVariantsForDelete.push(n),this.answerVariants.splice(e,1)}changeRelation(e){const n=e.find(r=>r.id===this.valueTypeId);if(n){if(n.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(n.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=n}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,n)=>e.order=n)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new Ii(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new bt)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(e){this.valueType=e,this.valueTypeId=e.id}setName(e){this.name=e}addAnswerVariant(){const e=dt.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=Gn.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=bt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new Gn(this);return e.id=A.H.Id.UUID(),e.answerVariants.forEach(n=>{n.id=A.H.Id.UUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const r=n.copy();return r.parentId=e.id,r}),e}};qt([A.H.Classes.GetClassConstructor(dt)],ut.prototype,"answerVariants"),qt([A.H.Classes.GetClassConstructor(Is)],ut.prototype,"fieldExamples"),qt([A.H.Classes.GetClassConstructor(bt)],ut.prototype,"fieldVariants"),qt([A.H.Classes.GetClassConstructor(Ii)],ut.prototype,"fieldMeasures"),qt([A.H.Classes.GetClassConstructor(ut)],ut.prototype,"children");let kn=ut;class Ri{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new fe);A.H.Classes.BuildClass(this,e)}}class ht{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");A.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new ht;return r.id=Xe(),r.fieldFillId=e,r.answerVariantId=n,r}static GetClassName(){return"selectedAnswerVariant"}}var $u=Object.defineProperty,Rs=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&$u(e,n,s),s};const vi=class dr{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new fe);l(this,"fileInfoId");l(this,"order",0);l(this,"selectedAnswerVariants",[]);l(this,"patientId");l(this,"fieldId");l(this,"formFillId");l(this,"answerVariantId");l(this,"filled",!1);l(this,"researchResultId");l(this,"answerFiles",[]);l(this,"answerFilesForDelete",[]);A.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const r=new dr;return r.id=Xe(),r.fieldId=e.id,r.formFillId=n,r.order=e.order,r.valueNumber=0,r.valueString="",r.valueDate=new Date,r}setString(e){this.valueString=e,this.valueString&&(this.filled=this.valueString.length>0)}setNumber(e){this.valueNumber=e,this.valueNumber&&(this.filled=!0)}setOther(e){this.valueOther=e,this.valueOther&&(this.filled=this.valueOther.length>0)}setDate(e){this.valueDate=e,this.filled=!0}setRadio(e){this.answerVariantId=e,this.filled=!!this.answerVariantId}static CreateMany(e,n){return e.map(r=>dr.Create(r,n))}addFile(){const e=new Ri;return e.id=Xe(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(n=>e.push(n.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,n){const r=ht.Create(this.id,e);return r.answerVariantIdY=n,this.selectedAnswerVariants.push(r),this.filled=!0,r}getMatrixValue(e,n){return this.selectedAnswerVariants.find(r=>r.answerVariantId===e&&r.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=ht.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(r=>r.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(r=>r.answerVariantId===n.id):!1}};Rs([A.H.Classes.GetClassConstructor(ht)],vi.prototype,"selectedAnswerVariants"),Rs([A.H.Classes.GetClassConstructor(Ri)],vi.prototype,"answerFiles");let Ct=vi;class Iu{constructor(e){l(this,"id");l(this,"fieldId");A.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var Ru=Object.defineProperty,vu=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Ru(e,n,s),s};const vs=class Qa{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");A.H.Classes.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,n){return`${this.getFieldN(e)}.${n+1}`}static Create(e){const n=new Qa;return n.id=A.H.Id.UUID(),n.formId=e,n}addField(){const e=kn.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,n)=>e.order=n)}getAnswerVariants(){const e=[];return this.fields.forEach(n=>e.push(...n.answerVariants)),e}};vu([A.H.Classes.GetClassConstructor(kn)],vs.prototype,"fields");let En=vs;var Nu=Object.defineProperty,Au=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Nu(e,n,s),s};const Ns=class Ka{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"isLaboratory",!1);l(this,"formSections",[]);l(this,"isEdit",!1);l(this,"withDates",!1);l(this,"withScores",!1);l(this,"selectedForExport",!1);l(this,"filterString","");l(this,"showOnlyNotFilled",!1);l(this,"showOnlyFilled",!1);A.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new Ka;return e.id=A.H.Id.UUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=En.Create(this.id);return this.formSections.push(e),A.H.Sorter.Sort(this.formSections),e}getFields(){const e=this.formSections.map(r=>r.fields).flat(),n=e.map(r=>r.children).flat();return e.concat(n).filter(r=>r.children.length===0)}};Au([A.H.Classes.GetClassConstructor(En)],Ns.prototype,"formSections");let As=Ns;var Pu=Object.defineProperty,zu=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Pu(e,n,s),s};const Ps=class el{constructor(e){l(this,"id");l(this,"date",new Date);l(this,"editMode",!1);l(this,"userFormId");l(this,"fillingPercentage",0);l(this,"fieldFills",[]);l(this,"num","");l(this,"formId");A.H.Classes.BuildClass(this,e)}static Create(e){const n=new el;return n.id=A.H.Id.UUID(),n.formId=e.id,n.fieldFills.push(...Ct.CreateMany(e.getFields(),n.id)),n}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var n;return(n=this.fieldFills)==null?void 0:n.find(r=>r.fieldId===e)}pushRegisterProperty(e){const n=new Ct;n.researchResultId=e,this.fieldFills.push(n)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(n=>n.researchResultId===e)}getOrCreateFieldFill(e){let n=this.getFieldFill(e.id);return n||(n=Ct.Create(e),this.addFieldFill(n)),n}getFileInfos(){const e=[];return this.fieldFills.forEach(n=>e.push(...n.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(r=>r.filled).length,n=this.fieldFills.length;this.fillingPercentage=Math.round(e/n*100)}getFieldFillByFieldId(e){return this.fieldFills.find(n=>n.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(n=>n.answerVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(r=>{var s;if(r.code){const o=(s=this.getFieldFillByFieldId(r.id))==null?void 0:s.valueNumber;n[r.code]=o}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};zu([A.H.Classes.GetClassConstructor(Ct)],Ps.prototype,"fieldFills");let zs=Ps;const Vu=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:dt,Field:kn,FieldExample:Is,FieldFill:Ct,FieldFillFile:Ri,FieldFilter:Iu,FieldMeasure:Ii,FieldVariant:bt,Form:As,FormFill:zs,FormSection:En,SelectedAnswerVariant:ht},Symbol.toStringTag,{value:"Module"}));let Tu=class extends Y{constructor(){super(dt,"answer-variants")}};const Fu=new Tu;let Ou=class extends Y{constructor(){super(Ct,"field-fills")}};const Du=new Ou;let Lu=class extends Y{constructor(){super(kn,"fields")}};const Hu=new Lu;let qu=class extends Y{constructor(){super(zs,"form-fills")}};const Uu=new qu;let ju=class extends Y{constructor(){super(En,"form-sections")}};const _u=new ju;let Wu=class extends Y{constructor(){super(As,"forms")}};const Gu=new Wu;let Zu=class extends Y{constructor(){super(ht,"selected-answer-variants")}};const Xu=new Zu,Yu=Object.freeze(Object.defineProperty({__proto__:null,C:Vu,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:Fu,FieldFills:Du,Fields:Hu,FormFills:Uu,FormSections:_u,Forms:Gu,SelectedAnswerVariants:Xu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class xn{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"selected",!1);l(this,"hide",!1);l(this,"editMode",!1);l(this,"color","");l(this,"background","");l(this,"order",0);l(this,"menuId");l(this,"iconId");l(this,"icon",new fe);l(this,"iconName","");l(this,"svgCode","");$.BuildClass(this,e)}addFile(e){this.icon.id||(this.icon.id=ee.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}}var Ju=Object.defineProperty,Qu=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Ju(e,n,s),s};class Ni{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"top",!0);l(this,"side",!0);l(this,"show",!1);l(this,"hide",!1);l(this,"active",!1);l(this,"order",0);l(this,"selected",!1);l(this,"editMode",!1);l(this,"subMenus",[]);l(this,"subMenusForDelete",[]);l(this,"iconId");l(this,"icon",new fe);$.BuildClass(this,e)}withoutChildren(){return this.subMenus.length===0}getFileInfos(){const e=[];return e.push(this.icon),this.subMenus.forEach(n=>{e.push(n.icon)}),e}addFile(e){this.icon.id||(this.icon.id=ee.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new xn)}removeSubMenu(e){const n=this.subMenus[e].id;n&&this.subMenusForDelete.push(n),this.subMenus.splice(e,1)}setColorsForSubMenus(){const e=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let n=0;this.subMenus.forEach(r=>{r.color=e[n],n=e.length-1?n=0:n++})}containPath(e){return this.link===e||!!this.subMenus.find(n=>n.link===e)}static GetClassName(){return"menu"}}Qu([$.GetClassConstructor(xn)],Ni.prototype,"subMenus");const Ku=Object.freeze(Object.defineProperty({__proto__:null,Menu:Ni,SubMenu:xn},Symbol.toStringTag,{value:"Module"}));let eh=class extends A.H.BaseStore{constructor(){super(Ni,"menus")}};const th=new eh;let nh=class extends A.H.BaseStore{constructor(){super(xn,"sub-menus")}};const ih=new nh,rh=Object.freeze(Object.defineProperty({__proto__:null,C:Ku,S:Object.freeze(Object.defineProperty({__proto__:null,Menus:th,SubMenus:ih},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Mn{constructor(e){l(this,"id","");l(this,"name","");l(this,"component","");l(this,"order");l(this,"active",!1);l(this,"key",0);$.BuildClass(this,e)}static Create(e,n,r,s,o){const a=new Mn;return a.id=e,a.name=n,a.component=r,a.order=s,a.active=!!o,a}}var Vs=(t=>(t.User="USER",t.Admin="ADMIN",t))(Vs||{});class sh{constructor(e){l(this,"id");l(this,"name",Vs.User);l(this,"label","");l(this,"startPage","");$.BuildClass(this,e)}}class Ai{constructor(e){l(this,"id");l(this,"document",new fe);l(this,"documentId");l(this,"pageId");$.BuildClass(this,e)}}var oh=Object.defineProperty,ah=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&oh(e,n,s),s};class Bn{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");$.BuildClass(this,e)}}ah([$.GetClassConstructor(fe)],Bn.prototype,"fileInfo");class $n{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new fe);l(this,"scanId");$.BuildClass(this,e)}getFileInfos(){return[this.scan]}getFileName(){return this.name?this.name:this.scan.originalName}}var lh=Object.defineProperty,ch=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&lh(e,n,s),s};class St{constructor(e){l(this,"id");l(this,"name","");l(this,"singleScan",!1);l(this,"scan");l(this,"scanId");l(this,"order",0);l(this,"description","");l(this,"scans",[]);l(this,"scansForDelete",[]);l(this,"pageSectionDocuments",[]);l(this,"pageSideMenuId");l(this,"pageId");l(this,"text","");l(this,"documents",[]);$.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new $n;e.order=this.pageSectionDocuments.length-1,this.pageSectionDocuments.push(e)}getFileInfos(){const e=[];return this.pageSectionDocuments.forEach(n=>{e.push(...n.getFileInfos())}),e}infoExists(e){const n=_.SearchIn(this.name,e),r=_.SearchIn(this.description,e),s=this.getDocuments(e);return n||r||s.length>0}getDocuments(e){return this.pageSectionDocuments.filter(n=>_.SearchIn(n.name,e))}getDescription(e){return e?_.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=_.SearchIn(this.description,e)?_.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(n=>_.SearchIn(n.name,e))}}ch([$.GetClassConstructor($n)],St.prototype,"pageSectionDocuments");var dh=Object.defineProperty,uh=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&dh(e,n,s),s};class Je{constructor(e){l(this,"id");l(this,"name","Новое меню");l(this,"order",0);l(this,"description","");l(this,"routeAnchor","");l(this,"slug","");l(this,"pageSections",[]);l(this,"showContent",!1);l(this,"pageId");l(this,"selected",!1);l(this,"sections",[]);l(this,"text","");$.BuildClass(this,e),this.sections=this.pageSections,this.text=this.description.replace("<p>undefined</p>","")}getFileInfos(){const e=[];return this.pageSections.forEach(n=>{e.push(...n.getFileInfos())}),e}addPageSection(){const e=new St;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=ee.UUID(),this.pageSections.push(e)}infoExists(e){const n=_.SearchIn(this.name,e),r=_.SearchIn(this.description,e),s=this.getPageSections(e).length>0;return n||r||s}getPageSections(e){return e.length?this.pageSections.filter(n=>n.infoExists(e)):this.pageSections}filter(e){e.length?(this.sections=this.pageSections.filter(n=>n.infoExists(e)),this.text=_.SearchIn(this.description,e)?_.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(n=>n.filter(e))}}uh([$.GetClassConstructor(St)],Je.prototype,"pageSections");var hh=Object.defineProperty,In=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&hh(e,n,s),s};class kt{constructor(e){l(this,"id");l(this,"title","");l(this,"content","");l(this,"slug","");l(this,"pagesGroup","Без группы");l(this,"link","");l(this,"withComments",!1);l(this,"showContacts",!1);l(this,"collaps",!1);l(this,"showContent",!1);l(this,"pageImages",[]);l(this,"pageImagesForDelete",[]);l(this,"pageImagesNames",[]);l(this,"pageSideMenus",[]);l(this,"menus",[]);l(this,"pageSideMenusForDelete",[]);l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"pageDocuments",[]);l(this,"contact",new bs);l(this,"contactId");l(this,"role",new sh);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");$.BuildClass(this,e),this.menus=this.pageSideMenus}getActiveMenu(){const e=this.pageSideMenus.find(n=>n.id===this.activeMenuId);return e||this.pageSideMenus[0]}setActiveMenuId(e){this.activeMenuId=e}getLink(){return this.slug!==""?`/pages/${this.slug}`:"404"}getFileInfos(){const e=[];return this.pageSideMenus.forEach(n=>{e.push(...n.getFileInfos())}),this.pageImages.forEach(n=>{n.fileInfo&&e.push(n.fileInfo)}),e}addSideMenu(){const e=new Je;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=ee.UUID(),this.pageSideMenus.push(e),e.id}selectSideMenu(e,n){if(!e&&this.pageSideMenus.length>0){this.pageSideMenus[0].selected=!0;return}this.pageSideMenus.forEach(r=>{n?r.selected=r.id===e:r.selected=r.slug===e})}getSelectedSideMenu(){const e=this.pageSideMenus.find(n=>n.selected);return e||new Je}addCustomSectionsToSideMenu(e){e.forEach(n=>{const r=new Je;r.id=n.id,r.name=n.name,typeof n.order<"u"?this.pageSideMenus.splice(n.order,0,r):this.pageSideMenus.push(r)})}getPageSideMenus(){if(this.showContacts&&!this.pageSideMenus.find(e=>e.id==="contacts")){const e=new Je;e.id="contacts",e.name="Контакты",this.pageSideMenus.push(e)}return this.filterStr===""?this.pageSideMenus:this.pageSideMenus.filter(e=>e.infoExists(this.filterStr))}filter(){this.filterStr===""?this.menus=this.pageSideMenus:this.menus=this.pageSideMenus.filter(e=>e.infoExists(this.filterStr)),this.menus.forEach(e=>e.filter(this.filterStr))}static GetClassName(){return"page"}}In([$.GetClassConstructor(Bn)],kt.prototype,"pageImages"),In([$.GetClassConstructor(Je)],kt.prototype,"pageSideMenus"),In([$.GetClassConstructor(St)],kt.prototype,"pageSections"),In([$.GetClassConstructor(Ai)],kt.prototype,"pageDocuments");const fh=Object.freeze(Object.defineProperty({__proto__:null,CustomSection:Mn,Page:kt,PageDocument:Ai,PageImage:Bn,PageSection:St,PageSectionDocument:$n,PageSideMenu:Je},Symbol.toStringTag,{value:"Module"}));let mh=class extends A.H.BaseStore{constructor(){super(Mn,"custom-sections")}};const ph=new mh;let gh=class extends A.H.BaseStore{constructor(){super(Ai,"page-documents")}};const yh=new gh;let wh=class extends A.H.BaseStore{constructor(){super(Bn,"page-images")}};const bh=new wh;let Ch=class extends A.H.BaseStore{constructor(){super($n,"page-section-documents")}};const Sh=new Ch;let kh=class extends A.H.BaseStore{constructor(){super(St,"page-sections")}};const Eh=new kh;let xh=class extends A.H.BaseStore{constructor(){super(Je,"page-side-menus")}};const Mh=new xh;let Bh=class extends A.H.BaseStore{constructor(){super(kt,"pages")}};const $h=new Bh,Ih=Object.freeze(Object.defineProperty({__proto__:null,C:fh,S:Object.freeze(Object.defineProperty({__proto__:null,CustomSections:ph,PageDocuments:yh,PageImages:bh,PageSectionDocuments:Sh,PageSections:Eh,PageSideMenus:Mh,Pages:$h},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Rn{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");A.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new Rn;return r.id=A.H.Id.UUID(),r.name=e,r.label=n,r}}const Rh=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:Rn},Symbol.toStringTag,{value:"Module"}));let vh=class extends Y{constructor(){super(Rn,"color-themes")}};const Nh=new vh,Ah=Object.freeze(Object.defineProperty({__proto__:null,Docs:Mu,Forms:Yu,Menus:rh,Pages:Ih,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:Rh,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:Nh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Ph extends Jt{constructor(){super(...arguments);l(this,"label","Логин");l(this,"name","login");l(this,"validator",new fr);l(this,"method",mt.Login);l(this,"id","field-auth-login")}}const zh="p-button",Vh=i.defineComponent({inheritAttrs:!1,__name:"PButton",props:{text:{type:String,default:"",required:!1},margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},skin:{type:String,default:"base",required:!1},size:{type:String,default:Bi.M,required:!1},type:{type:String,default:ce.Primary,required:!1},fontSize:{type:String,default:"",required:!1}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,s=()=>{r("click")},o=i.computed(()=>_.JoinSnake(zh,n.skin)),a=i.computed(()=>_.JoinSnake(o.value,n.type)),d=i.computed(()=>_.JoinSnake(o.value,n.size)),c=i.computed(()=>[o.value,a.value,d.value]);return(u,h)=>(i.openBlock(),i.createElementBlock("button",i.mergeProps(u.$attrs,{style:{margin:t.margin,padding:t.padding,maxWidth:t.width,minWidth:t.width,minHeight:t.height,maxHeight:t.height,fontSize:t.fontSize},class:i.unref(c),onClick:i.withModifiers(s,["prevent"])}),[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createTextVNode(" "+i.toDisplayString(t.text),1)],16))}}),vn=E(Vh,[["__scopeId","data-v-814c9b41"]]),Pi=E(i.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M29.3678 7.25259C29.2732 7.3128 28.8775 7.6999 28.5076 8.13001C27.7076 9.02463 16.2409 22.0483 16.2065 22.0999C16.1549 22.1601 15.6732 21.73 13.9786 20.1042C8.31835 14.6934 8.5334 14.8827 8.03448 14.8827C7.69899 14.8827 7.59577 14.9257 7.3463 15.1752C7.09684 15.4246 7.05383 15.5279 7.05383 15.8547C7.05383 16.3365 6.98501 16.259 10.1506 19.2354C11.5011 20.4999 13.256 22.1601 14.056 22.9171C15.6302 24.4225 15.9485 24.6461 16.3872 24.5687C16.7399 24.4999 16.7743 24.4569 20.0947 20.6891C21.5485 19.0289 23.2689 17.0762 23.914 16.3451C29.4624 10.0655 30.6495 8.69775 30.77 8.48269C30.942 8.14721 30.8474 7.6999 30.5377 7.38162C30.3399 7.19237 30.2194 7.14076 29.9183 7.14076C29.7119 7.14936 29.471 7.19237 29.3678 7.25259Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-48c8e6e2"]]),Th=["value"],Ts=E(i.defineComponent({__name:"PCheckBox",props:i.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:"14px"},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"22px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=e,s=()=>{r("change",n.value)};return(o,a)=>(i.openBlock(),i.createElementBlock("div",{id:"some",class:"check-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"check-field__label",style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=d=>n.value=d),class:"check-field__input",type:"checkbox",value:t.value,onChange:s},null,40,Th),[[i.vModelCheckbox,n.value]]),i.createElementVNode("div",{id:"abc",class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius})},[n.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"check-icon",style:i.normalizeStyle({width:t.size,height:t.size})},[i.createVNode(Pi,{margin:"auto",size:t.size},null,8,["size"])],4)):i.createCommentVNode("",!0)],4),i.createTextVNode(" "+i.toDisplayString(t.label),1)],4)],4))}}),[["__scopeId","data-v-85407c13"]]),Fh=["for"],Oh={class:"field"},Dh={class:"left-field"},Lh=["id","value","name"],Hh={class:"right-field"},Fs=E(i.defineComponent({__name:"PDatePicker",props:i.mergeModels({text:{type:String,default:"",required:!1},label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),s=a=>{const c=a.target.valueAsDate;c?(r.value=c,n("input",o(r.value))):(r.value=null,n("input",null))},o=a=>a?new Date(a.getTime()-a.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"";return(a,d)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Fh)):i.createCommentVNode("",!0),i.createElementVNode("div",Oh,[i.createElementVNode("div",Dh,[i.renderSlot(a.$slots,"default",{},void 0,!0)]),i.createElementVNode("input",{id:t.label,max:"2100",min:"1900",value:o(r.value),class:"text-field__input",type:"date",name:t.label,onInput:s},null,40,Lh),i.createElementVNode("div",Hh,[i.renderSlot(a.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-60c7417a"]]),Os=E(i.defineComponent({inheritAttrs:!1,__name:"PFlex",props:{margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},minWidth:{type:String,default:"",required:!1},maxWidth:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},justifyContent:{type:String,default:"",required:!1},background:{type:String,default:"",required:!1},alignItems:{type:String,default:"",required:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"flex-line",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,height:t.height,justifyContent:t.justifyContent,background:t.background,alignItems:t.alignItems})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-d9fdfe7d"]]);var qh=Object.defineProperty,Uh=(t,e,n)=>e in t?qh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ut=(t,e,n)=>Uh(t,typeof e!="symbol"?e+"":e,n);const Ds={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Ls=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),Hs=(t,e,n)=>{var r;return new Intl.NumberFormat(((r=n.number)==null?void 0:r.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},jh=(t,e=!0,n)=>{var r,s,o,a;const d=((r=n.number)==null?void 0:r.unsigned)!==!0&&t.startsWith("-")?"-":"",c=((s=n.number)==null?void 0:s.fraction)??0;let u=Hs(0,c,n);const h=u.formatToParts(1000.12),f=((o=h.find(S=>S.type==="group"))==null?void 0:o.value)??" ",m=((a=h.find(S=>S.type==="decimal"))==null?void 0:a.value)??".",g=Ls(t,f,m);if(Number.isNaN(parseFloat(g)))return d;const C=g.split(".");if(C[1]!=null&&C[1].length>=1){const S=C[1].length<=c?C[1].length:c;u=Hs(S,c,n)}let b=u.format(parseFloat(g));return e?c>0&&g.endsWith(".")&&!g.slice(0,-1).includes(".")&&(b+=m):b=Ls(b,f,m),d+b};let _h=class{constructor(e={}){Ut(this,"opts",{}),Ut(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...Ds,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else n.tokens=Ds;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,s)=>r.length-s.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(e);if(this.opts.mask==null||n==null)return!1;const r=this.process(e,n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:r>=n.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(s=>this.process(e,s,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((s,o)=>{s==="!"&&e[o-1]!=="!"?r.push(o-r.length):n.push(s)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(this.opts.number!=null)return jh(e,r,this.opts);if(n==null)return e;const s=`v=${e},mr=${n},m=${r?1:0}`;if(this.memo.has(s))return this.memo.get(s);const{mask:o,escaped:a}=this.escapeMask(n),d=[],c=this.opts.tokens!=null?this.opts.tokens:{},u=this.isReversed()?-1:1,h=this.isReversed()?"unshift":"push",f=this.isReversed()?0:o.length-1,m=this.isReversed()?()=>S>-1&&I>-1:()=>S<o.length&&I<e.length,g=z=>!this.isReversed()&&z<=f||this.isReversed()&&z>=f;let C,b=-1,S=this.isReversed()?o.length-1:0,I=this.isReversed()?e.length-1:0,O=!1;for(;m();){const z=o.charAt(S),v=c[z],H=(v==null?void 0:v.transform)!=null?v.transform(e.charAt(I)):e.charAt(I);if(!a.includes(S)&&v!=null?(H.match(v.pattern)!=null?(d[h](H),v.repeated?(b===-1?b=S:S===f&&S!==b&&(S=b-u),f===b&&(S-=u)):v.multiple&&(O=!0,S-=u),S+=u):v.multiple?O&&(S+=u,I-=u,O=!1):H===C?C=void 0:v.optional&&(S+=u,I-=u),I+=u):(r&&!this.isEager()&&d[h](z),H===z&&!this.isEager()?I+=u:C=z,this.isEager()||(S+=u)),this.isEager())for(;g(S)&&(c[o.charAt(S)]==null||a.includes(S));){if(r){if(d[h](o.charAt(S)),e.charAt(I)===o.charAt(S)){S+=u,I+=u;continue}}else o.charAt(S)===e.charAt(I)&&(I+=u);S+=u}}return this.memo.set(s,d.join("")),this.memo.get(s)}};const qs=t=>JSON.parse(t.replaceAll("'",'"')),Wh=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=Gh(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Nn(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Nn(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Nn(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=Zh(t.dataset.maskaTokens));const r={};return t.dataset.maskaNumberLocale!=null&&(r.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(r.unsigned=Nn(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},Nn=t=>t!==""?!!JSON.parse(t):!0,Gh=t=>t.startsWith("[")&&t.endsWith("]")?qs(t):t,Zh=t=>{if(t.startsWith("{")&&t.endsWith("}"))return qs(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};let Xh=class{constructor(e,n={}){Ut(this,"items",new Map),Ut(this,"eventAbortController"),Ut(this,"onInput",r=>{if(r instanceof CustomEvent&&r.type==="input"&&!r.isTrusted&&!r.bubbles)return;const s=r.target,o=this.items.get(s),a="inputType"in r&&r.inputType.startsWith("delete"),d=o.isEager(),c=a&&d&&o.unmasked(s.value)===""?"":s.value;this.fixCursor(s,a,()=>this.setValue(s,c))}),this.options=n,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){e.value!==""&&e.value!==this.processInput(e).masked&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){const n=this.getOptions(this.options);for(const r of e){if(!this.items.has(r)){const{signal:o}=this.eventAbortController;r.addEventListener("input",this.onInput,{capture:!0,signal:o})}const s=new _h(Wh(r,n));this.items.set(r,s),queueMicrotask(()=>this.updateValue(r)),r.selectionStart===null&&s.isEager()&&console.warn("Maska: input of `%s` type is not supported",r.type)}}getInputs(e){return typeof e=="string"?Array.from(document.querySelectorAll(e)):"length"in e?Array.from(e):[e]}getOptions(e){const{onMaska:n,preProcess:r,postProcess:s,...o}=e;return o}fixCursor(e,n,r){const s=e.selectionStart,o=e.value;if(r(),s===null||s===o.length&&!n)return;const a=e.value,d=o.slice(0,s),c=a.slice(0,s),u=this.processInput(e,d).unmasked,h=this.processInput(e,c).unmasked;let f=s;d!==c&&(f+=n?a.length-o.length:u.length-h.length),e.setSelectionRange(f,f)}setValue(e,n){const r=this.processInput(e,n);e.value=r.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(s=>s(r)):this.options.onMaska(r)),e.dispatchEvent(new CustomEvent("maska",{detail:r})),e.dispatchEvent(new CustomEvent("input",{detail:r.masked}))}processInput(e,n){const r=this.items.get(e);let s=n??e.value;this.options.preProcess!=null&&(s=this.options.preProcess(s));let o=r.masked(s);return this.options.postProcess!=null&&(o=this.options.postProcess(o)),{masked:o,unmasked:r.unmasked(s),completed:r.completed(s)}}};const zi=new WeakMap,Yh=(t,e)=>{if(t.arg==null||t.instance==null)return;const n="setup"in t.instance.$.type;t.arg in t.instance?t.instance[t.arg]=e:n&&console.warn("Maska: please expose `%s` using defineExpose",t.arg)},Us=(t,e)=>{var n;const r=t instanceof HTMLInputElement?t:t.querySelector("input");if(r==null||(r==null?void 0:r.type)==="file")return;let s={};if(e.value!=null&&(s=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const o=a=>{const d=e.modifiers.unmasked?a.unmasked:e.modifiers.completed?a.completed:a.masked;Yh(e,d)};s.onMaska=s.onMaska==null?o:Array.isArray(s.onMaska)?[...s.onMaska,o]:[s.onMaska,o]}zi.has(r)?(n=zi.get(r))==null||n.update(s):zi.set(r,new Xh(r,s))},Jh=["for"],Qh={class:"left-field"},Kh=["disabled"],ef={class:"right-field"},An=E(i.defineComponent({__name:"PInput",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),s=o=>{o.inputType==="insertText"&&(console.log(o.inputType),n("input",r.value))};return(o,a)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Jh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor,background:t.disabled?"#F5F5F5":"var(--input-background)"})},[i.createElementVNode("div",Qh,[i.renderSlot(o.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("input",i.mergeProps({ref:"input"},o.$attrs,{"onUpdate:modelValue":a[0]||(a[0]=d=>r.value=d),class:"text-field__input",style:{color:t.color},disabled:t.disabled,onBlur:a[1]||(a[1]=d=>o.$emit("blur",r.value)),onInput:s}),null,16,Kh),[[i.vModelDynamic,r.value],[i.unref(Us),t.mask]]),i.createElementVNode("div",ef,[i.renderSlot(o.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-054fd088"]]),js=i.defineComponent({__name:"PInputDate",props:i.mergeModels({placeholder:{type:String,default:"Укажите дату"},width:{type:String,required:!1,default:"auto"},margin:{type:String,required:!1,default:""},label:{type:String,default:"",required:!1}},{modelValue:{default:new Date},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),s=Te.Format(r.value),o=i.ref(s),a=c=>{if(!d(c))return;const u=Te.FromRuStr(c);r.value=u,n("beforeChange",u),n("change",u)},d=c=>c.length!=10?(o.value=s,ye.Error("Неверный формат даты"),!1):Number(o.value.slice(0,2))>31?(o.value=s,ye.Error("Неверный день месяца"),!1):Number(o.value.slice(3,5))>12?(o.value=s,ye.Error("Неверный месяц"),!1):Number(o.value.slice(6,10))>2100?(o.value=s,ye.Error("Неверный год"),!1):!0;return(c,u)=>{const h=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock("div",{class:"style-container",style:i.normalizeStyle({width:t.width,position:"relative"})},[i.createVNode(h,{modelValue:i.unref(o),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(o)?o.value=f:null),mask:"##.##.####",placeholder:t.placeholder,margin:t.margin,label:t.label,onBlur:a,onKeydown:i.withKeys(i.withModifiers(f=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),tf=["for"],nf={class:"number"},rf=["disabled"],sf=i.defineComponent({__name:"PInputNumber",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},disabled:{type:Boolean,required:!1,default:!1},max:{type:Number,default:Number.MAX_VALUE,required:!1},min:{type:Number,default:Number.NEGATIVE_INFINITY,required:!1},step:{type:Number,default:1,required:!1}},{modelValue:{default:0},modelModifiers:{}}),emits:i.mergeModels(["blur","input","change"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=t,s=()=>{const b=r.step.toString();return b.includes(".")?b.split(".")[1].length:0},o=s(),a=i.useModel(t,"modelValue"),d=i.ref(a.value.toFixed(s())),c=b=>{const S=Math.pow(10,o);return Math.round(b*S)/S},u=(b,...S)=>{a.value=c(b),d.value=c(b).toFixed(s()),S.forEach(I=>n(I,a.value))},h=(b,...S)=>{u(b,...S)},f=()=>h(+d.value+r.step,"change"),m=()=>h(+d.value-r.step,"change"),g=()=>h(+d.value,"input"),C=()=>h(+d.value,"change","blur");return(b,S)=>{const I=i.resolveComponent("IconMinus"),O=i.resolveComponent("IconPlus");return i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,tf)):i.createCommentVNode("",!0),i.createElementVNode("div",nf,[i.createElementVNode("button",{class:"number-minus",type:"button",onClick:m},[i.createElementVNode("div",{class:i.normalizeClass(t.disabled||a.value<=t.min?"icon-minus-disabled":"icon-minus")},[i.createVNode(I)],2)]),i.withDirectives(i.createElementVNode("input",i.mergeProps(b.$attrs,{"onUpdate:modelValue":S[0]||(S[0]=z=>i.isRef(d)?d.value=z:null),class:"input-field",type:"number",disabled:t.disabled,style:{color:t.disabled?"#828587":t.color,background:t.disabled?"var(--input-readonly-background)":""},onBlur:C,onInput:i.withModifiers(g,["stop"])}),null,16,rf),[[i.vModelText,i.unref(d),void 0,{lazy:!0}]]),i.createElementVNode("button",{class:"number-plus",style:i.normalizeStyle({transform:t.disabled?"none":"transform: scale(1.2, 1.2)"}),type:"button",onClick:f},[i.createElementVNode("div",{class:i.normalizeClass(t.disabled||a.value>=t.max?"icon-plus-disabled":"icon-plus")},[i.createVNode(O)],2)],4)])],4)}}}),_s=E(sf,[["__scopeId","data-v-807eb4e2"]]),Ws=E(i.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть меню"},titleClose:{type:String,required:!1,default:"Показать меню"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.open);i.watch(()=>n.open,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("open",a)};return(a,d)=>{const c=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.shift?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({minWidth:t.widthClosed,maxWidth:t.widthClosed,height:t.height})},null,4)),i.createElementVNode("div",{class:"LS-body",style:i.normalizeStyle({marginLeft:i.unref(s)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute",background:t.background,height:t.height})},[i.createElementVNode("div",{class:"LS-content",style:i.normalizeStyle({width:`calc(100% - ${t.widthClosed})`,height:t.height,background:"#ffffff"})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed,height:t.height}),onClick:d[0]||(d[0]=u=>o(!i.unref(s)))},[i.unref(s)?(i.openBlock(),i.createBlock(c,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-d68a122a"]]),Gs=E(i.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-eaa10a96"]]),Zs=E(i.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("li",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,borderBottom:t.showDivider?"1px solid":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-93410b0d"]]),of=["for"],af=["id","name","checked","value"],Xs=E(i.defineComponent({__name:"PRadio",props:i.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:"14px"},size:{type:String,default:"20px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:"auto"},value:{type:[String,Boolean],default:void 0}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=e,s=t,o=ee.GUID(),a=i.computed(()=>n.value===s.value),d=()=>{r("change",s.value)};return(c,u)=>(i.openBlock(),i.createElementBlock("div",{class:"radio-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"radio-field__label",for:i.unref(o),style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{id:i.unref(o),"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),name:t.name,checked:i.unref(a),class:"radio-field__input",type:"radio",value:t.value},null,8,af),[[i.vModelRadio,n.value]]),i.createElementVNode("div",{class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius}),onClick:d},[n.value===t.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"radio-dot",style:i.normalizeStyle({width:`calc(${t.size} - 50%)`,height:`calc(${t.size} - 50%)`})},null,4)):i.createCommentVNode("",!0)],4),i.createElementVNode("span",{onClick:d},i.toDisplayString(t.label),1)],12,of)],4))}}),[["__scopeId","data-v-25033aee"]]),Ys=E(i.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть"},titleClose:{type:String,required:!1,default:"Показать"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.open);i.watch(()=>n.open,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("open",a)};return(a,d)=>{const c=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",{class:"wrapper",style:i.normalizeStyle({maxHeight:t.height,height:t.height})},[i.createElementVNode("div",{class:"content",style:i.normalizeStyle({paddingRight:t.shift?"0":`${t.widthClosed}`})},[i.renderSlot(a.$slots,"content",{},void 0,!0)],4),i.createElementVNode("div",{class:"RS-body",style:i.normalizeStyle({marginRight:i.unref(s)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute"})},[i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed,height:t.height}),onClick:d[0]||(d[0]=u=>o(!i.unref(s)))},[i.unref(s)?(i.openBlock(),i.createBlock(c,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4),i.createElementVNode("div",{class:"RS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed} - 2px)`,background:t.background,height:t.height})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)],4)}}}),[["__scopeId","data-v-45d26c84"]]),Pn=E(i.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[i.createElementVNode("path",{d:"M7.53508 7.18138C7.03684 7.5158 6.86132 8.14496 7.1161 8.66643C7.18971 8.8138 8.02201 9.69236 9.44881 11.1207C10.6718 12.345 11.8211 13.49 12.0023 13.6714L12.3251 14.0058L9.80551 16.5224C7.92576 18.4043 7.25199 19.1184 7.14441 19.3225C6.83867 19.9346 7.0425 20.5865 7.637 20.8926C7.89745 21.0286 8.41268 21.0343 8.6618 20.9096C8.76372 20.8585 10.0037 19.6626 11.4191 18.2455L14.001 15.6666L16.5432 18.2229C18.1964 19.8723 19.1703 20.8132 19.3232 20.8869C19.5779 21.0116 20.0309 21.0399 20.2913 20.9379C20.5178 20.8529 20.8632 20.5015 20.9368 20.2747C21.0274 19.9913 21.0161 19.5719 20.9028 19.3508C20.8519 19.2431 19.6516 17.9961 18.2361 16.5791L15.6656 14.0001L18.2191 11.4495C19.7138 9.95309 20.8179 8.80813 20.8858 8.6721C21.0104 8.42837 21.0387 7.98058 20.9425 7.73119C20.8519 7.50446 20.5971 7.23239 20.3593 7.11336C20.0988 6.97733 19.6516 6.96599 19.3628 7.08502C19.2212 7.14737 18.3097 8.01459 16.5771 9.74904L14.001 12.328L11.4191 9.75471C9.6583 7.99192 8.77504 7.14737 8.63349 7.08502C8.51459 7.03968 8.28246 7 8.1126 7C7.86347 7 7.76156 7.03401 7.53508 7.18138Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-cbcad2a0"]]),Vi=E(i.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[i.createElementVNode("path",{d:"M3.08417 4.43062C2.86268 4.4769 2.70731 4.56285 2.52549 4.74467C2.29408 4.97607 2.20152 5.2174 2.22136 5.55459C2.25111 6.0207 1.96681 5.70996 6.78995 10.5397C9.18995 12.9463 11.2263 14.9662 11.309 15.029C11.5238 15.1843 11.7123 15.2471 11.99 15.2505C12.4693 15.2538 12.109 15.581 17.1106 10.5728C22.0891 5.58764 21.7288 5.98103 21.7255 5.505C21.7255 5.37607 21.7023 5.21078 21.6726 5.13145C21.5106 4.68186 21.0511 4.38434 20.5817 4.4174C20.1519 4.44715 20.4263 4.19591 16.0164 8.60252L11.9833 12.629L8.06598 8.71161C5.91061 6.55624 4.0726 4.73475 3.98003 4.66202C3.71227 4.45376 3.38499 4.36781 3.08417 4.43062Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M9.69602 16.8994C9.70593 16.9292 9.72577 17.0184 9.73569 17.1044C9.76213 17.2664 9.7985 17.2994 9.83486 17.1903C9.84478 17.154 9.89106 17.1143 9.93734 17.1044C10.0464 17.078 10.0365 17.0548 9.87453 16.9589C9.6861 16.8465 9.67288 16.8432 9.69602 16.8994Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-4d8b581f"]]),lf=["for"],cf={class:"field"},df={class:"left-field"},uf={class:"arrow"},hf={selected:"",hidden:""},ff={class:"right-field"},Ti=E(i.defineComponent({inheritAttrs:!1,__name:"PSelect",props:i.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},value:{type:String,default:"",required:!1},readonly:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},clearable:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:""},borderColor:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""},inPadding:{type:String,required:!1,default:"var(--select-internal-padding)"}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=i.ref(!0),s=e,o=i.ref(!1),a=()=>{r.value=!1,s("change",n.value)},d=()=>{n.value=void 0,s("clear",void 0),s("change",void 0),r.value=!0};return(c,u)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,lf)):i.createCommentVNode("",!0),i.createElementVNode("div",cf,[i.createElementVNode("div",df,[i.renderSlot(c.$slots,"left",{},void 0,!0)]),i.createElementVNode("div",{class:"sl",onMouseover:u[1]||(u[1]=h=>o.value=!0),onMouseleave:u[2]||(u[2]=h=>o.value=!1)},[t.clearable?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"clear",onClick:d},[i.createVNode(Pn,{margin:"0"})],512)),[[i.vShow,i.unref(o)]]):i.createCommentVNode("",!0),i.createElementVNode("div",uf,[i.createVNode(Vi,{margin:"2px 2px 0 0"})]),i.withDirectives(i.createElementVNode("select",i.mergeProps(c.$attrs,{"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),class:"text-field__input",style:{padding:t.inPadding},onChange:a}),[i.createElementVNode("option",hf,i.toDisplayString(t.placeholder),1),i.renderSlot(c.$slots,"default",{},void 0,!0)],16),[[i.vModelSelect,n.value]])],32),i.createElementVNode("div",ff,[i.renderSlot(c.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-0a8feca7"]]),Js=E(i.defineComponent({__name:"PSticky",props:{shadow:{type:Boolean,default:!1},zIndex:{type:Number,default:0},background:{type:String,default:"inherit"},padding:{type:String,default:"0"},top:{type:String,default:"0"},divider:{type:Boolean,default:!1},dividerColor:{type:String,default:"var(--border-color-default)"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"sticky-block",style:i.normalizeStyle({zIndex:1+t.zIndex,top:t.top,background:t.background,padding:t.padding,boxShadow:t.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none",borderBottom:t.divider?"1px solid":"none",borderColor:t.dividerColor})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-832b5223"]]),mf=["innerHTML"],pf={key:1},Fi=E(i.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"var(--font-color)"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"},fontWeight:{type:String,required:!1,default:""},background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},justifyContent:{type:String,required:!1,default:"center"},isHtml:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(t){const e=t,n={color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,background:e.background,padding:e.padding,width:e.width,maxWidth:e.width,minWidth:e.minWidth,margin:e.margin,justifyContent:e.justifyContent};return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:s[0]||(s[0]=o=>r.$emit("click"))},[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,mf)):(i.openBlock(),i.createElementBlock("span",pf,i.toDisplayString(t.string),1))],2))}}),[["__scopeId","data-v-98febd87"]]),Qs=i.defineComponent({__name:"PTable",props:{margin:{type:String,required:!1,default:"0 0 20px 0"},width:{type:String,required:!1,default:"100%"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("table",i.mergeProps(e.$attrs,{style:{width:t.width,margin:t.margin},class:"p-table"}),[i.createElementVNode("thead",null,[i.renderSlot(e.$slots,"thead")]),i.createElementVNode("tbody",null,[i.renderSlot(e.$slots,"tbody")])],16))}}),gf=["for"],yf={class:"left-field"},wf={class:"right-field"},Ks=E(i.defineComponent({__name:"PTextarea",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:"0"},padding:{type:String,default:"0",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},resize:{type:String,default:"vertical",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue"),n=t,r=i.computed(()=>({color:n.color,resize:n.resize}));return(s,o)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,gf)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",yf,[i.renderSlot(s.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("textarea",i.mergeProps({ref:"textarea"},s.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=a=>e.value=a),class:"text-field__input",style:i.unref(r),onBlur:o[1]||(o[1]=a=>s.$emit("blur",e.value)),onInput:o[2]||(o[2]=a=>s.$emit("input",e.value))}),null,16),[[i.vModelText,e.value],[i.unref(Us),t.mask]]),i.createElementVNode("div",wf,[i.renderSlot(s.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-7859dc3a"]]),bf={class:"top-slider-content"},Cf={class:"center"},eo=E(i.defineComponent({__name:"PTopSlider",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},open:{type:Boolean,default:!1}},emits:["open"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.open);i.watch(()=>n.open,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("open",a)};return(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=i.withModifiers(c=>s.value=!0,["prevent"])),d[1]||(d[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(s)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:d[3]||(d[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",bf,[i.createElementVNode("div",Cf,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:d[2]||(d[2]=c=>o(!i.unref(s)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-863b4aff"]]);function to(t){t.component("PButton",vn),t.component("PCheckBox",Ts),t.component("PDatePicker",Fs),t.component("PFlex",Os),t.component("PInput",An),t.component("PInputDate",js),t.component("PInputNumber",_s),t.component("PLeftSlider",Ws),t.component("PList",Gs),t.component("PListItem",Zs),t.component("PRadio",Xs),t.component("PRightSlider",Ys),t.component("PSelect",Ti),t.component("PSticky",Js),t.component("PString",Fi),t.component("PTextarea",Ks),t.component("PTopSlider",eo),t.component("PTable",Qs)}const Sf=Object.freeze(Object.defineProperty({__proto__:null,PButton:vn,PCheckBox:Ts,PDatePicker:Fs,PFlex:Os,PInput:An,PInputDate:js,PInputNumber:_s,PLeftSlider:Ws,PList:Gs,PListItem:Zs,PRadio:Xs,PRightSlider:Ys,PSelect:Ti,PSticky:Js,PString:Fi,PTable:Qs,PTextarea:Ks,PTopSlider:eo,default:to},Symbol.toStringTag,{value:"Module"})),kf={key:0,class:"mainblock"},Ef={class:"mainblock-right"},xf={class:"body"},no=E(i.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(t){const e=t,n=i.ref(!1),r=i.ref(!0),s=i.ref(window.matchMedia("(max-width: 1330px)").matches),o=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",kf,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(s)?"100%":t.menuWidth,maxWidth:i.unref(s)?"100%":t.menuWidth,marginLeft:i.unref(s)?"-110%":"0",position:i.unref(s)?"fixed":"relative",top:i.unref(s)?"140px":""})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(s)?"auto":t.menuWidth,boxShadow:i.unref(s)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!i.unref(r)&&i.unref(s)?"110%":"0",borderTopLeftRadius:i.unref(s)?"0":"",borderBottomLeftRadius:i.unref(s)?"0":""}),onClick:d[0]||(d[0]=c=>o())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Ef,[a.$slots.title?(i.openBlock(),i.createElementBlock("div",{key:0,class:"title",style:i.normalizeStyle({display:a.$slots.title?"flex":"none"})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(s)?"flex":"none"}),onClick:d[1]||(d[1]=c=>o())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4)):i.createCommentVNode("",!0),i.createElementVNode("div",xf,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])])):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-52b3d807"]]),Mf={class:"mainblock-right"},Bf={class:"body"},io=E(i.defineComponent({__name:"AdaptiveContainerHorizontal",props:{menuWidth:{type:String,required:!1,default:"0px"},leftWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"},titleSticky:{type:Boolean,required:!1,default:!1}},setup(t){const e=t,n=i.ref(!1),r=i.ref(!0),s=i.ref(window.matchMedia("(max-width: 1330px)").matches),o=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",{key:0,class:"mainblock",style:i.normalizeStyle({display:i.unref(s)?"block":"flex"})},[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(s)?"100%":t.menuWidth,display:t.leftWidth!=="0px"?"flex":"none",top:i.unref(s)?"58px":"80px"})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(s)?"100%":t.menuWidth,boxShadow:i.unref(s)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!i.unref(r)&&i.unref(s),"0"),overflowX:i.unref(s)?"scroll":"hidden",display:i.unref(s)?"flex":"block",background:i.unref(s)?"#ffffff":"",overflowY:i.unref(s)?"hidden":"auto"}),onClick:d[0]||(d[0]=c=>o())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Mf,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({position:t.titleSticky?"sticky":"relative",top:t.titleSticky?i.unref(s)?"108px":"58px":"0",zIndex:t.titleSticky?"10":""})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(s)?"flex":"none"}),onClick:d[1]||(d[1]=c=>o())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4),i.createElementVNode("div",Bf,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),Oi=E(i.defineComponent({__name:"GridContainer",props:{maxWidth:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"100%"},background:{type:String,required:!1,default:"inherit"},gridGap:{type:String,required:!1,default:"10px"},gridTemplateColumns:{type:String,required:!1,default:"repeat(auto-fit, minmax(250px, 1fr))"},gridTemplateRows:{type:String,required:!1,default:"repeat(0 0px)"},margin:{type:String,required:!1,default:"10px 0 0 0"},customClass:{type:String,required:!1,default:""}},setup(t){return i.useCssVars(e=>({d143e9f0:t.maxWidth,b9d56180:t.width,"52bd0ff4":t.background,"1795aeac":t.gridGap,"0cfa7c52":t.gridTemplateColumns,"0c6d2a1f":t.gridTemplateRows,a3ccd918:t.margin})),(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["grid-block",t.customClass])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-a3c4743c"]]);var We=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(We||{});const $f={class:"container"},If={class:"slide-box"},Rf={class:"image"},vf={class:"image-box"},Nf=["id","src","alt"],Af={class:"link-number"},Pf=["id","onClick"],ro=E(i.defineComponent({__name:"CarouselImages",props:{events:{type:Array,required:!0},quantity:{type:Number,default:1,required:!1},animationTime:{type:Number,default:500},height:{type:String,default:"360px"},maxHeight:{type:String,default:"360px"},startActiveGroupIndex:{type:Number,default:0}},emits:["openModalWindow"],setup(t){i.useCssVars(g=>({"582c9d05":n}));const e=t,n=`${e.animationTime}ms`,r=i.ref(e.startActiveGroupIndex),s=i.ref(We.None),o=i.ref(ys(e.events,e.quantity)),a=i.computed(()=>o.value[r.value]);i.onMounted(()=>{});const d=()=>r.value=r.value+1<o.value.length?r.value+1:0,c=()=>r.value=r.value-1<0?o.value.length-1:r.value-1,u=g=>{s.value=g,setTimeout(()=>s.value=We.None,e.animationTime)},h=g=>{g!=r.value&&(u(g<r.value?We.Prev:We.Next),setTimeout(()=>r.value=g,e.animationTime/2))},f=()=>{u(We.Next),setTimeout(d,e.animationTime/2)},m=()=>{u(We.Prev),setTimeout(c,e.animationTime/2)};return(g,C)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",$f,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:C[0]||(C[0]=i.withModifiers(b=>m(),["stop"]))},C[3]||(C[3]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),i.createElementVNode("div",If,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(b,S)=>(i.openBlock(),i.createElementBlock("div",{key:S,class:i.normalizeClass({animationnext:i.unref(s)===i.unref(We).Next,animationprev:i.unref(s)===i.unref(We).Prev})},[i.createElementVNode("div",Rf,[i.createElementVNode("div",vf,[i.createElementVNode("img",{id:b.fileInfo.getImageUrl(),style:i.normalizeStyle({height:`calc(${t.height} - 110px)`,maxHeight:`calc(${t.maxHeight} - 110px)`}),src:b.fileInfo.getImageUrl(),alt:b.fileInfo.originalName,onClick:C[1]||(C[1]=I=>g.showImageInFullScreen())},null,12,Nf)])])],2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:C[2]||(C[2]=i.withModifiers(b=>f(),["stop"]))},C[4]||(C[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),i.createElementVNode("div",Af,[i.createVNode(Oi,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),(b,S)=>(i.openBlock(),i.createElementBlock("div",{id:S.toString(),key:S,class:"number",style:i.normalizeStyle({background:S.toString()===i.unref(r).toString()?"#9D9D9D":""}),onClick:i.withModifiers(I=>h(S),["stop"])},i.toDisplayString(S+1),13,Pf))),128))]),_:1})])],4))}}),[["__scopeId","data-v-c5b846b9"]]),so=i.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.x),o=i.ref(n.y),a=i.computed(()=>s.value+"px"),d=i.computed(()=>o.value+"px"),c=()=>{r("close")};return(u,h)=>{const f=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"context-window",style:i.normalizeStyle({left:i.unref(a),top:i.unref(d)})},[i.renderSlot(u.$slots,"default")],4)),[[f,c]])}}}),zf={class:"date-range"},oo=E(i.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(t,{emit:e}){const n=t,r=e;i.watch(()=>[n.start,n.end],()=>{n.start||(s.value=void 0),n.end||(o.value=void 0)});const s=i.ref(n.start),o=i.ref(n.end),a=c=>{s.value=c,!(!n.end||c>n.end)&&(r("update:start",c),r("setStart",c))},d=c=>{o.value=c,!(!n.start||c<n.start)&&(r("update:end",c),r("setEnd",c))};return(c,u)=>{const h=i.resolveComponent("PInputDate");return i.openBlock(),i.createElementBlock("div",zf,[i.createVNode(h,{"model-value":i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(s)?s.value=f:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=i.createTextVNode(" - ")),i.createVNode(h,{"model-value":i.unref(o),"onUpdate:modelValue":u[1]||(u[1]=f=>i.isRef(o)?o.value=f:null),onChange:d},null,8,["model-value"])])}}}),[["__scopeId","data-v-b93b6d46"]]),Vf=i.defineComponent({name:"DateInputRangeV2"}),Tf={class:"date-range"};function Ff(t,e,n,r,s,o){return i.openBlock(),i.createElementBlock("div",Tf,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const ao=E(Vf,[["render",Ff],["__scopeId","data-v-d28c6f33"]]),Of={class:"drop-item"},Df={key:0,class:"drop-item-list"},lo=E(i.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(t){const e=t,n=i.ref(e.rolledUp),r=async()=>{n.value=!n.value};return(s,o)=>{const a=i.resolveComponent("PString"),d=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",Of,[i.createElementVNode("div",{class:"drop-item-name",onClick:o[0]||(o[0]=c=>r())},[i.createVNode(a,{"font-size":"13px","font-weight":"600",string:t.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),i.createElementVNode("div",{style:i.normalizeStyle({transform:i.unref(n)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[i.createVNode(d,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",Df,[i.renderSlot(s.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),co=E(i.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new ti,required:!0}},emits:["load"],setup(t,{emit:e}){const n=t,r=i.ref(!1),s=e,o=()=>{n.model.setBoolean(r.value),r.value?A.F.FTSP.Get().setF(n.model):A.F.FTSP.Get().removeF(n.model),s("load")};return(a,d)=>{const c=i.resolveComponent("PCheckBox");return i.openBlock(),i.createBlock(c,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=u=>i.isRef(r)?r.value=u:null),label:t.model.label,size:"mini",onChange:o},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-72984c94"]]),uo=E(i.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,r=i.ref(void 0),s=async a=>{je.Get().replaceF(a,r.value),r.value=a,je.Get().p.drop()},o=async a=>{await s(a),n("load")};return(a,d)=>{const c=i.resolveComponent("PString"),u=i.resolveComponent("PButton"),h=i.resolveComponent("GridContainer"),f=i.resolveComponent("InfoItem");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(c,{string:t.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),i.createVNode(f,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:i.withCtx(()=>d[0]||(d[0]=[])),default:i.withCtx(()=>[i.createVNode(h,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(m,g)=>(i.openBlock(),i.createBlock(u,{key:g,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(i.unref(r)),"toggle-mode":!0,inverse:t.inverse,onClick:C=>o(m.valueEq(i.unref(r))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-586481ea"]]),Lf=["value","label"],ho=E(i.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,r=je.Get(),s=i.ref(void 0),o=async d=>{r.replaceF(d,s.value),s.value=d},a=async d=>{d?await o(s.value):await o(void 0),n("load")};return(d,c)=>{const u=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(u,{modelValue:i.unref(s),"onUpdate:modelValue":c[0]||(c[0]=h=>i.isRef(s)?s.value=h:null),clearable:i.unref(s),placeholder:t.defaultLabel,onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:h,label:h.label},null,8,Lf))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ae66df57"]]),fo=E(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-e280d85b"]]),mo=E(i.defineComponent({__name:"GeneralItem",props:{background:{type:String,required:!1,default:"#ffffff"},height:{type:String,required:!1,default:"40px"},width:{type:String,required:!1,default:"auto"},ready:{type:String,required:!1,default:"0%"},padding:{type:String,required:!1,default:"10px"},borderColor:{type:String,required:!1,default:"#343D5C"},margin:{type:String,required:!1,default:"5px"},scale:{type:Boolean,required:!1,default:!0},fontSize:{type:String,required:!1,default:"14px"},withIcon:{type:Boolean,required:!1,default:!1}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:"general-block-item",style:i.normalizeStyle({background:t.background,height:t.height,width:t.width,borderColor:t.borderColor,padding:t.padding,margin:t.margin,transform:t.scale&&i.unref(e)?"scale(1.03, 1.03)":""}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},[i.createElementVNode("div",{class:"green",style:i.normalizeStyle({width:`${t.ready}`})},null,4),i.createElementVNode("div",{class:"general-block-item-title",style:i.normalizeStyle({fontSize:t.fontSize})},[i.renderSlot(n.$slots,"general-item",{},void 0,!0)],4),i.createElementVNode("div",{class:"tools-icon",style:i.normalizeStyle({display:t.withIcon?"flex":"none"})},r[2]||(r[2]=[i.createElementVNode("svg",{class:"icon-del"},[i.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[i.createElementVNode("path",{d:"M2.91797 8.75C2.6888 8.75 2.49255 8.66833 2.32922 8.505C2.16589 8.34167 2.08436 8.14556 2.08464 7.91667V2.5H1.66797V1.66667H3.7513V1.25H6.2513V1.66667H8.33464V2.5H7.91797V7.91667C7.91797 8.14583 7.8363 8.34208 7.67297 8.50542C7.50964 8.66875 7.31352 8.75028 7.08464 8.75H2.91797ZM7.08464 2.5H2.91797V7.91667H7.08464V2.5ZM3.7513 7.08333H4.58464V3.33333H3.7513V7.08333ZM5.41797 7.08333H6.2513V3.33333H5.41797V7.08333Z"})])],-1))],36))}}),[["__scopeId","data-v-1056443d"]]),Hf={key:0,class:"blur"},qf={style:{display:"flex","justify-content":"center"}},po=E(i.defineComponent({__name:"InfoItem",props:{background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},openWidth:{type:String,required:!1,default:"auto"},openHeight:{type:String,required:!1,default:"auto"},maxWidth:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},height:{type:String,required:!1,default:""},withOpenWindow:{type:Boolean,required:!1,default:!0},colorSelected:{type:String,required:!1,default:"#1979CF"},borderColor:{type:String,required:!1,default:"#E3E3E3"},withHover:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},close:{type:Boolean,required:!1,default:!0},baseBoxMargin:{type:String,required:!1,default:""},closeWindowOverflow:{type:String,required:!1,default:""},showSaveDialog:{type:Boolean,required:!1,default:!1}},emits:["click","keyup-enter","after-close"],setup(t,{emit:e}){const n=t,r=e,s=n.customClass!==""?n.customClass:"inside-class",o=i.ref(!1),a=i.ref(!1),d=i.ref(!1),c=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=v=>{v.stopPropagation(),v.key==="Escape"&&(n.showSaveDialog?d.value=!0:a.value=!1)};i.watch(a,async()=>{var v,H;await i.nextTick(),a.value?((H=(v=document.getElementById("info-item-opened-content"))==null?void 0:v.querySelector("input"))==null||H.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&r("after-close")});const h=()=>{r("click"),a.value=!!n.withOpenWindow,c.value!==n.close&&(a.value=!1,c.value=!c.value)},f=i.computed(()=>n.customClass===""?{width:n.width,minHeight:"40px",height:"auto",maxWidth:n.maxWidth,minWidth:n.minWidth,margin:n.baseBoxMargin}:void 0),m=i.computed(()=>a.value&&n.withOpenWindow),g=i.computed(()=>({background:n.background?n.background:void 0,zIndex:m.value?"2":"0",padding:m.value?"0":n.padding,margin:n.margin,width:m.value?n.openWidth:n.width,height:m.value?n.openHeight:n.height,minHeight:"40px",maxWidth:n.maxWidth,minWidth:n.minWidth,borderColor:o.value||a.value?n.colorSelected:n.borderColor,color:o.value?n.colorSelected:"#343E5C",boxShadow:o.value||a.value?`0px 0px 1px 1px ${n.colorSelected}`:"none",alignItems:m.value?"end":"center",cursor:(n.withHover,"pointer")})),C=i.computed(()=>({height:m.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),b=i.computed(()=>({height:m.value?"auto":"0"})),S=i.computed(()=>({color:o.value?n.colorSelected:"#343E5C",fill:o.value?n.colorSelected:"#343E5C",background:n.background})),I=()=>{n.showSaveDialog?d.value=!0:a.value=!1},O=async()=>{await r("keyup-enter"),n.close&&(a.value=!1),d.value=!1},z=()=>{a.value=!1,d.value=!1};return(v,H)=>{const Be=i.resolveComponent("PString"),$e=i.resolveComponent("PButton"),nt=i.resolveComponent("PModal"),It=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",Hf)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(f)),onClick:H[2]||(H[2]=i.withModifiers(_n=>h(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(s)]),style:i.normalizeStyle(i.unref(g)),onMouseenter:H[0]||(H[0]=_n=>t.withHover?o.value=!0:o.value=!1),onMouseleave:H[1]||(H[1]=_n=>o.value=!1)},[i.unref(a)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["close-window",t.customClass]),style:i.normalizeStyle(i.unref(C))},[i.renderSlot(v.$slots,"default",{},void 0,!0)],6)),i.unref(a)?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:i.normalizeStyle(i.unref(b))},[i.renderSlot(v.$slots,"open-inside-content",{},void 0,!0)],4)),[[It,I,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(S))},[i.renderSlot(v.$slots,"title",{},()=>[i.createVNode(Be,{string:t.title,"font-size":"10px",padding:"0 0 0 3px",style:i.normalizeStyle({color:i.unref(o)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),i.createVNode(nt,{show:i.unref(d),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",qf,[i.createVNode($e,{text:"Не сохранять",onClick:z}),i.createVNode($e,{text:"Сохранять",onClick:O})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),go=E(i.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},title:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(t,{emit:e}){const n=i.ref(!1),r=e,s=o=>{n.value=!n.value,r("select",o)};return(o,a)=>{const d=i.resolveComponent("PString"),c=i.resolveComponent("PButton"),u=i.resolveComponent("InfoItem");return i.openBlock(),i.createBlock(u,{close:i.unref(n),title:t.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.list,h=>(i.openBlock(),i.createBlock(c,{key:h,type:"admin",color:"blue",text:h,onClick:f=>s(h)},null,8,["text","onClick"]))),128)),i.createVNode(c,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=h=>s(void 0))})]),default:i.withCtx(()=>[i.createVNode(d,{string:t.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),Uf={class:"mainblock"},jf={class:"mainline"},yo=E(i.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Uf,[i.createElementVNode("div",jf,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:t.leftWidth,maxWidth:t.leftWidth,background:t.background,display:t.leftWidth!=="0px"?"block":"none"})},[i.renderSlot(e.$slots,"left",{},void 0,!0)],4),i.createElementVNode("div",{class:"mainblock-right",style:i.normalizeStyle({background:t.background})},[i.renderSlot(e.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-42fa7104"]]),_f={class:"message-title"},Wf=["innerHTML"],Di=E(i.defineComponent({__name:"MessageBody",props:{title:{type:String,default:"",required:!1},text:{type:String,default:"",required:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",_f,i.toDisplayString(t.title),1),i.createElementVNode("div",{class:"message-text",innerHTML:t.text},null,8,Wf)]))}}),[["__scopeId","data-v-4e49e31b"]]),Li=E(i.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#search"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M11 19C12.775 18.9996 14.4988 18.4054 15.897 17.312L20.293 21.708L21.707 20.294L17.311 15.898C18.405 14.4997 18.9996 12.7754 19 11C19 6.589 15.411 3 11 3C6.589 3 3 6.589 3 11C3 15.411 6.589 19 11 19ZM11 5C14.309 5 17 7.691 17 11C17 14.309 14.309 17 11 17C7.691 17 5 14.309 5 11C5 7.691 7.691 5 11 5Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-64e76eb7"]]),Gf={class:"search-list"},Zf=["onClick"],Hi=E(i.defineComponent({inheritAttrs:!1,__name:"PAutocomplete",props:{modelValue:{type:String,default:""},searchFunc:{type:Function,default:()=>{}},suggestions:{type:Array,default:[]},width:{type:[Number,String],default:""},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"var(--box-shadow)"}},emits:["select","input"],setup(t,{emit:e}){const n=e,r=t,s=i.ref(r.modelValue),o=i.ref([]);async function a(){n("input",s.value),await d()}async function d(){r.searchFunc&&(o.value=await r.searchFunc(s.value))}async function c(u){s.value="",n("select",u)}return(u,h)=>(i.openBlock(),i.createElementBlock("div",{class:"container",style:i.normalizeStyle({width:t.width})},[i.createVNode(An,{modelValue:i.unref(s),"onUpdate:modelValue":h[0]||(h[0]=f=>i.isRef(s)?s.value=f:null),placeholder:"Найти",onInput:a},{right:i.withCtx(()=>[i.createVNode(Li,{size:"24px"})]),_:1},8,["modelValue"]),i.unref(s)&&i.unref(s).length>=2?(i.openBlock(),i.createElementBlock("div",{key:0,class:"result",style:i.normalizeStyle({maxHeight:t.maxHeightResultList,zIndex:t.zIndexResultList,boxShadow:t.boxShadowResultList})},[i.createElementVNode("ul",Gf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),f=>(i.openBlock(),i.createElementBlock("li",{key:f.value,onClick:m=>c(f)},i.toDisplayString(f.label),9,Zf))),128))])],4)):i.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-d02c66ef"]]),Xf={class:"footer"},wo=E(i.defineComponent({__name:"PDialog",setup(t){const e=i.computed(()=>{switch(_e.GetType()){case"info":return"message primary";case"success":return"message success";case"warning":return"message warning";case"error":return"message danger";default:return"message neutral"}});return(n,r)=>{const s=i.resolveComponent("MessageBody"),o=i.resolveComponent("PButton");return i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[i.unref(_e).IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(s,{title:i.unref(_e).GetTitle(),text:i.unref(_e).GetText()},null,8,["title","text"]),i.createElementVNode("div",Xf,[i.createVNode(o,{type:"primary",text:i.unref(_e).GetConfirmButtonText(),margin:"10px 0 0 0",onClick:r[0]||(r[0]=a=>i.unref(_e).Submit())},null,8,["text"]),i.createVNode(o,{type:"warning",text:i.unref(_e).GetCancelButtonText(),margin:"10px 0 0 0",onClick:r[1]||(r[1]=a=>i.unref(_e).Cancel())},null,8,["text"])])],2)):i.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-aa85ea7a"]]),bo=E(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{};return(r,s)=>{const o=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(o,{modelValue:e.value.number,"onUpdate:modelValue":s[0]||(s[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(o,{modelValue:e.value.description,"onUpdate:modelValue":s[1]||(s[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-51bf3f08"]]),Yf={};function Jf(t,e){return i.openBlock(),i.createElementBlock(i.Fragment,null,[e[0]||(e[0]=i.createElementVNode("div",{class:"blur"},null,-1)),e[1]||(e[1]=i.createElementVNode("div",{class:"loader-container"},[i.createElementVNode("div",{class:"loader",style:{"--b":"20px",width:"200px","--n":"10"}})],-1))],64)}const Co=E(Yf,[["render",Jf],["__scopeId","data-v-0f1f2f84"]]),Qf={style:{display:"flex","justify-content":"center",width:"100%"}},Kf={class:"pag-number"},em={class:"pag-ul"},tm={key:2},So=E(i.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},emits:["cancel","save"],setup(t,{emit:e}){const n=t,r=m=>m?"active":"neutral",s=m=>m?"not-active":"neutral",o=i.ref(ws),a=i.ref(!1),d=i.ref(!1);o.value.count=n.store.Count.value;const c=async m=>{if(m!==o.value.curPage&&(m<1&&(m=1),m>o.value.pagesCount()&&(m=o.value.pagesCount()),!n.showConfirm))return await u(m)},u=async(m,g)=>{o.value.setCurPage(m),je.Get().p.offset=(m-1)*o.value.limit,await n.store.FTSP(),f()},h=i.computed(()=>{const m=o.value.pagesCount();return m<8?Ue.GenerateNumsRange(2,m-1).filter(g=>g<m&&g>1):Ue.GenerateNumsRange(o.value.curPage-2,o.value.curPage+3).filter(g=>g<m&&g>1)}),f=()=>{const m=document.querySelector(".el-table__body-wrapper"),g=document.querySelector("#list");m?m.scrollTo({top:0}):g&&g.scrollTo({top:0})};return i.onBeforeUnmount(()=>{je.Get().p.drop()}),(m,g)=>{const C=i.resolveComponent("ArrowLeft"),b=i.resolveComponent("PButton"),S=i.resolveComponent("DoubleArrowLeft"),I=i.resolveComponent("EllipsisSvg"),O=i.resolveComponent("DoubleArrowRight"),z=i.resolveComponent("ArrowRight");return i.openBlock(),i.createElementBlock("div",Qf,[i.createElementVNode("div",{class:"pag-container",style:i.normalizeStyle({justifyContent:t.justifyContent})},[i.createElementVNode("div",Kf,[i.createVNode(b,{skin:"pag",type:s(i.unref(o).curPage===1),onClick:g[0]||(g[0]=v=>c(i.unref(o).curPage-1))},{default:i.withCtx(()=>[i.createVNode(C)]),_:1},8,["type"]),i.createElementVNode("ul",em,[i.createElementVNode("li",null,[i.createVNode(b,{skin:"pag",type:r(i.unref(o).curPage===1),text:"1",onClick:g[1]||(g[1]=v=>c(1))},null,8,["type"])]),i.unref(o).pagesCount()>8&&i.unref(o).curPage>4?(i.openBlock(),i.createElementBlock("li",{key:0,onMouseenter:g[3]||(g[3]=v=>a.value=!0),onMouseleave:g[4]||(g[4]=v=>a.value=!1)},[i.createVNode(b,{skin:"pag",type:"neutral",onClick:g[2]||(g[2]=v=>c(i.unref(o).curPage-5))},{default:i.withCtx(()=>[i.unref(a)?(i.openBlock(),i.createBlock(S,{key:0})):(i.openBlock(),i.createBlock(I,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(h),v=>(i.openBlock(),i.createElementBlock("li",{key:v},[i.createVNode(b,{skin:"pag",type:r(v===i.unref(o).curPage),text:v,onClick:H=>c(v)},null,8,["type","text","onClick"])]))),128)),i.unref(o).pagesCount()>=8&&i.unref(o).curPage<i.unref(o).pagesCount()-3?(i.openBlock(),i.createElementBlock("li",{key:1,onMouseenter:g[6]||(g[6]=v=>d.value=!0),onMouseleave:g[7]||(g[7]=v=>d.value=!1)},[i.createVNode(b,{skin:"pag",type:"neutral",onClick:g[5]||(g[5]=v=>c(i.unref(o).curPage+5))},{default:i.withCtx(()=>[i.unref(d)?(i.openBlock(),i.createBlock(O,{key:0})):(i.openBlock(),i.createBlock(I,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),i.unref(o).pagesCount()>1?(i.openBlock(),i.createElementBlock("li",tm,[i.createVNode(b,{skin:"pag",type:r(i.unref(o).pagesCount()===i.unref(o).curPage),text:i.unref(o).pagesCount(),onClick:g[8]||(g[8]=v=>c(i.unref(o).pagesCount()))},null,8,["type","text"])])):i.createCommentVNode("",!0)]),i.createVNode(b,{skin:"pag",type:s(i.unref(o).curPage===i.unref(o).pagesCount()),onClick:g[9]||(g[9]=v=>c(i.unref(o).curPage+1))},{default:i.withCtx(()=>[i.createVNode(z)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-416e9080"]]),ko=E(i.defineComponent({__name:"RemoteSearch",props:{keyValue:{type:String,default:""},modelValue:{type:String,default:""},storeModule:{type:String,default:""},placeholder:{type:String,default:"Начните вводить запрос"},showSuggestions:{type:Boolean,default:!0},width:{type:[Number,String],default:"var(--input-width-default, 100%)"},focus:{type:Boolean,default:!1},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"rgba(0, 0, 0, 0.35) 0px 5px 5px"}},emits:["select","load","input"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.modelValue),o=i.ref();let a=xi.SearchModel();i.watch(()=>n.focus,()=>{n.focus&&setTimeout(()=>{o.value.focus(),s.value=""},500)});const d=async h=>{if(h.length<2)return;o.value.activated=!0,a=xi.SearchModel(),a.searchObjects=[],a.query=h,a.key=n.keyValue;const f=a.searchGroups.find(m=>m.key===n.keyValue);return f&&(a.searchGroup=f),await Ms.Search.Search(a),a.searchObjects},c=async h=>{r("select",h),s.value=""},u=h=>{r("input",h),h.length===0&&r("input","")};return(h,f)=>(i.openBlock(),i.createBlock(Hi,{ref_key:"searchForm",ref:o,modelValue:i.unref(s),"onUpdate:modelValue":f[0]||(f[0]=m=>i.isRef(s)?s.value=m:null),maxHeightResultList:t.maxHeightResultList,zIndexResultList:t.zIndexResultList,boxShadowResultList:t.boxShadowResultList,width:t.width,"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:t.placeholder,"search-func":d,"trigger-on-focus":t.showSuggestions,suggestions:i.unref(a).searchObjects,onSelect:c,onInput:u},null,8,["modelValue","maxHeightResultList","zIndexResultList","boxShadowResultList","width","placeholder","trigger-on-focus","suggestions"]))}}),[["__scopeId","data-v-acf1a4c6"]]),nm={class:"mainblock-body"},im={class:"mainblock-footer"},Eo=E(i.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({background:t.background,padding:t.padding})},[i.createElementVNode("div",{class:"mainblock-header",style:i.normalizeStyle({background:t.background})},[i.renderSlot(e.$slots,"header",{},void 0,!0)],4),i.createElementVNode("div",nm,[i.renderSlot(e.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",im,[i.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),rm={class:"right-slider-content"},sm={class:"right-slider-content-header"},om={class:"right-slider-content-box"},am={class:"right-slider-button"},xo=E(i.defineComponent({__name:"RightSliderContainer",props:{sliderOffWidth:{type:String,required:!1,default:"30px"},sliderOnWidth:{type:String,required:!1,default:"260px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1},titleOpen:{type:String,required:!1,default:"Скрыть список исследований"},titleClose:{type:String,required:!1,default:"Показать список исследований"}},emits:["toggle"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!1);i.watch(()=>n.toggle,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("toggle",a)};return(a,d)=>{const c=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",{class:"right-slider",style:i.normalizeStyle({marginRight:i.unref(s)?`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`:"0",width:t.sliderOnWidth})},[i.createElementVNode("div",{class:"click-line",onClick:d[0]||(d[0]=u=>o(!i.unref(s)))},[i.unref(s)?(i.openBlock(),i.createBlock(c,{key:0,string:t.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:1,string:t.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),i.createElementVNode("div",rm,[i.createElementVNode("div",sm,[i.renderSlot(a.$slots,"header",{},void 0,!0)]),i.createElementVNode("div",om,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",am,[i.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),lm={class:"mainblock"},cm={class:"body-block"},dm={class:"tab-block"},Mo=E(i.defineComponent({__name:"RightTabsContainer",props:{sliderOffWidth:{type:String,required:!1,default:"101px"},sliderOnWidth:{type:String,required:!1,default:"332px"},background:{type:String,required:!1,default:"inherit"},isToggle:{type:Boolean,required:!1,default:!1},mobileWidth:{type:String,required:!1,default:"768px"}},emits:["toggle"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!1),o=i.ref(window.matchMedia("(max-width: 768px)").matches),a=c=>{r("toggle",c)},d=i.ref(!1);return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(n.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return o.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return o.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return o.value=window.matchMedia("(max-width: 768px)").matches}return o.value=window.matchMedia("(max-width: 1330px)").matches}),s.value=!0}),(c,u)=>(i.openBlock(),i.createElementBlock("div",lm,[i.createElementVNode("div",{class:"slider-block",style:i.normalizeStyle({marginRight:i.unref(o)?t.isToggle?"49px":`calc(49px - ${t.sliderOnWidth})`:t.isToggle?t.sliderOffWidth:`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`,width:t.sliderOnWidth,minHeight:t.sliderOffWidth,height:t.isToggle?"auto":"100px"})},[i.createElementVNode("div",{class:"slider-icon",style:i.normalizeStyle({border:t.isToggle?"1px solid #379FFF":"1px solid #00B5A4",background:t.isToggle?"#ffffff":"#C7ECEA"}),onClick:u[0]||(u[0]=h=>a(!t.isToggle)),onMouseenter:u[1]||(u[1]=h=>d.value=!0),onMouseleave:u[2]||(u[2]=h=>d.value=!1)},[i.createElementVNode("div",{class:"icon-block",style:i.normalizeStyle({transform:i.unref(d)?t.isToggle?"rotate(-225deg) scale(1.2, 1.2)":"rotate(0deg) scale(1.2, 1.2)":t.isToggle?"rotate(-225deg)":"rotate(0deg)",fill:t.isToggle?"#379FFF":"#00B5A4"})},[i.renderSlot(c.$slots,"icon",{},void 0,!0)],4)],36),i.createElementVNode("div",{class:"slider-info",style:i.normalizeStyle({width:`calc(${t.sliderOnWidth} - ${t.sliderOffWidth})`})},[i.renderSlot(c.$slots,"slider-body",{},void 0,!0)],4)],4),i.createElementVNode("div",cm,[i.renderSlot(c.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",dm,[i.renderSlot(c.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),um=["label","value"],Bo=E(i.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(t,{emit:e}){const n={[ge.String]:"Текстовый ответ",[ge.Text]:"Развёрнутый текстовый ответ",[ge.Number]:"Числовой ответ",[ge.Date]:"Ответ в виде даты",[ge.Radio]:"Выбор одного из вариантов",[ge.Set]:"Выбор нескольких вариантов",[ge.File]:"Ответ в виде файла",[ge.MatrixRadio]:"Матрица с одним выбором",[ge.MatrixSet]:"Матрица с несколькими выборами"},r=e,s=o=>{r("select",o)};return(o,a)=>{const d=i.resolveComponent("PString"),c=i.resolveComponent("PSelect");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(d,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),i.createVNode(c,{"model-value":t.selectedType,placeholder:"Вид ответа",onChange:s},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,(u,h)=>i.createElementVNode("option",{key:u,label:u,value:h},null,8,um)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),hm=["label","value"],$o=E(i.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=i.ref(!1),r=e,s=i.ref();i.onBeforeMount(()=>{n.value=!0,s.value=ct.GetDefault()});const o=async d=>{s.value=d??ct.GetDefault(),r("load")},a=async d=>{await o(d)};return(d,c)=>{var h;const u=i.resolveComponent("PSelect");return i.unref(n)?(i.openBlock(),i.createBlock(u,{key:0,modelValue:i.unref(s),"onUpdate:modelValue":c[0]||(c[0]=f=>i.isRef(s)?s.value=f:null),"popper-append-to-body":!1,clearable:!((h=i.unref(s))!=null&&h.default),"value-key":"label",onChange:a,onClear:c[1]||(c[1]=f=>a())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ct).Get(),(f,m)=>(i.openBlock(),i.createElementBlock("option",{key:m,label:f.label,value:f},null,8,hm))),128))]),_:1},8,["modelValue","clearable"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-982338b4"]]),fm=["label","value"],Io=E(i.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=e,r=i.ref();i.onBeforeMount(()=>{r.value=ct.GetDefault()});const s=async a=>{a||(r.value=ct.GetDefault()),je.Get().setSortModel(r.value),je.Get().p.drop(),n("load")},o=async a=>{await s(a)};return(a,d)=>{var u;const c=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(c,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(r)?r.value=h:null),"popper-append-to-body":!1,clearable:!((u=i.unref(r))!=null&&u.default),"value-key":"label",onChange:o},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ct).Get(),(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,label:h.label,value:h},null,8,fm))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-80f413ec"]]),mm={class:"switch-container"},pm={class:"line"},gm={class:"line"},Ro=E(i.defineComponent({__name:"Switch3Pos",props:{firstModel:{type:Object,required:!0},secondModel:{type:Object,required:!0},defaultLabel:{type:String,default:"Все"}},emits:["load"],setup(t,{emit:e}){const n=t,r={background:"inherit",border:"1px solid #c4c4c4"},s=()=>n.firstModel.valueEq(u.value)?void 0:r,o=()=>u.value?r:void 0,a=()=>n.secondModel.valueEq(u.value)?void 0:r,d=f=>{var g;return{color:(g=u.value)!=null&&g.valueEq(f)?"#006bb4":"#B0A4C0"}},c=e,u=i.ref(void 0),h=async f=>{var m;(m=u.value)!=null&&m.valueEq(f)||(u.value=f,c("load"))};return(f,m)=>{const g=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",mm,[i.createElementVNode("div",pm,[i.createVNode(g,{string:t.firstModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(d(t.firstModel)),onClick:m[0]||(m[0]=C=>h(t.firstModel))},null,8,["string","style"]),i.createVNode(g,{string:"Все","font-size":"12px",padding:"0",style:i.normalizeStyle(d()),onClick:m[1]||(m[1]=C=>h())},null,8,["style"]),i.createVNode(g,{string:t.secondModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(d(t.secondModel)),onClick:m[2]||(m[2]=C=>h(t.secondModel))},null,8,["string","style"])]),i.createElementVNode("div",gm,[i.createElementVNode("div",{class:i.normalizeClass(["switch-knob1",{active:t.firstModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(s()),onClick:m[3]||(m[3]=C=>h(t.firstModel))},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob2",{active:!i.unref(u)}]),style:i.normalizeStyle(o()),onClick:m[4]||(m[4]=C=>h())},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob3",{active:t.secondModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(a()),onClick:m[5]||(m[5]=C=>h(t.secondModel))},null,6),m[6]||(m[6]=i.createElementVNode("div",{class:"switch-axis"},null,-1)),m[7]||(m[7]=i.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),m[8]||(m[8]=i.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),m[9]||(m[9]=i.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-ecff678c"]]),ym={},wm={class:"flex"};function bm(t,e){return i.openBlock(),i.createElementBlock("div",wm,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const vo=E(ym,[["render",bm],["__scopeId","data-v-5023d414"]]),No=E(i.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=i.ref(!1),r=e,s=async()=>{r("submit"),n.value=!n.value};return(o,a)=>{const d=i.resolveComponent("PString"),c=i.resolveComponent("PButton"),u=i.resolveComponent("GridContainer"),h=i.resolveComponent("InfoItem");return i.openBlock(),i.createBlock(h,{title:t.title,icon:"edit-title","with-hover":!0,close:i.unref(n),width:"100%",onKeyupEnter:s},{"open-inside-content":i.withCtx(()=>[i.createVNode(u,{"custom-class":"grid"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0),i.createVNode(c,{type:"admin",color:"blue",text:"Сохранить",onClick:s})]),_:3})]),default:i.withCtx(()=>[t.content.length>0?(i.openBlock(),i.createBlock(d,{key:0,string:t.content},null,8,["string"])):(i.openBlock(),i.createBlock(d,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),Cm={class:"top-slider-content"},Sm={class:"center"},Ao=E(i.defineComponent({__name:"TopSliderContainer",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1}},emits:["toggle"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!0);i.watch(()=>n.toggle,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("toggle",a)};return(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=i.withModifiers(c=>s.value=!0,["prevent"])),d[1]||(d[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(s)?`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`:"0",height:t.sliderOnHeight}),onClick:d[3]||(d[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Cm,[i.createElementVNode("div",Sm,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:d[2]||(d[2]=c=>o(!i.unref(s)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]);function Po(t){t.component("PageNotFound",wi),t.component("AdaptiveContainer",no),t.component("AdaptiveContainerHorizontal",io),t.component("CarouselImages",ro),t.component("ContextWindow",so),t.component("DateInputRangeV2",ao),t.component("DateInputRange",oo),t.component("DropList",lo),t.component("FilterCheckbox",co),t.component("FiltersButtonsSelect",uo),t.component("FilterSelect",ho),t.component("FTSPPanel",fo),t.component("GeneralItem",mo),t.component("GridContainer",Oi),t.component("InfoItem",po),t.component("InfoItemSelectButtons",go),t.component("LeftRightContainer",yo),t.component("MessageBody",Di),t.component("PAutocomplete",Hi),t.component("PDialog",wo),t.component("PhoneForm",bo),t.component("PLoader",Co),t.component("PPagination",So),t.component("RemoteSearch",ko),t.component("ResearcheContainer",Eo),t.component("RightSliderContainer",xo),t.component("RightTabsContainer",Mo),t.component("SelectValueType",Bo),t.component("SortList",$o),t.component("SortSelect",Io),t.component("Switch3Pos",Ro),t.component("ThemeWrapper",vo),t.component("ToggleInfoItem",No),t.component("TopSliderContainer",Ao)}const km=Object.freeze(Object.defineProperty({__proto__:null,AdaptiveContainer:no,AdaptiveContainerHorizontal:io,CarouselImages:ro,ContextWindow:so,DateInputRange:oo,DateInputRange_v2:ao,DropList:lo,FTSPPanel:fo,FilterCheckbox:co,FilterSelect:ho,FiltersButtonsSelect:uo,GeneralItem:mo,GridContainer:Oi,InfoItem:po,InfoItemSelectButtons:go,LeftRightContainer:yo,MessageBody:Di,PAutocomplete:Hi,PDialog:wo,PLoader:Co,PPagination:So,PageNotFound:wi,PhoneForm:bo,RemoteSearch:ko,ResearcheContainer:Eo,RightSliderContainer:xo,RightTabsContainer:Mo,SelectValueType:Bo,SortList:$o,SortSelect:Io,Switch3Pos:Ro,ThemeWrapper:vo,ToggleInfoItem:No,TopSliderContainer:Ao,default:Po},Symbol.toStringTag,{value:"Module"})),zo=E(i.defineComponent({__name:"IconDownload",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M15.6443 5.06141C15.0797 5.29331 15.0998 5.06141 15.0998 12.1393C15.0998 15.7388 15.0696 18.6728 15.0293 18.6728C14.9889 18.6728 14.1521 17.8763 13.1842 16.9083C11.6819 15.4061 11.3592 15.1338 11.0467 15.0733C10.724 15.0229 10.6333 15.0632 10.3611 15.3254C10.1292 15.5573 10.0586 15.7186 10.0586 16.0211C10.0586 16.3941 10.1594 16.5151 12.8615 19.2071C15.4326 21.7681 15.6947 22 16.0073 22C16.3198 22 16.582 21.7681 19.153 19.2071C21.9156 16.4546 21.9559 16.4042 21.9559 15.9908C21.9559 15.4867 21.6535 15.1641 21.109 15.0733C20.736 15.0128 20.7259 15.0229 18.8808 16.868C17.0357 18.6929 17.0155 18.7131 17.0155 18.3703C17.0054 18.1787 16.9953 15.2145 16.9853 11.7965L16.9651 5.56554L16.713 5.31348C16.4307 5.03117 15.9669 4.92026 15.6443 5.06141Z"}),i.createElementVNode("path",{d:"M5.30247 20.3872L5 20.6997L5.04033 22.081C5.07058 23.4321 5.08066 23.4825 5.44363 24.2488C6.09899 25.6099 7.17782 26.5173 8.59945 26.8904C9.47663 27.1122 22.5335 27.1223 23.4006 26.8904C25.044 26.4669 26.3245 25.2671 26.8084 23.7043C26.9496 23.2506 27 22.7868 27 21.8794C27 20.6796 27 20.6695 26.7076 20.3771C26.3144 19.9839 25.901 19.9839 25.4675 20.3771L25.1347 20.6695L25.1045 21.8189C25.0843 22.8776 25.0541 23.0086 24.7516 23.6035C24.3987 24.3093 23.7938 24.8235 23.088 25.0251C22.5839 25.1663 9.4363 25.1663 8.93217 25.0251C8.30706 24.8436 7.64161 24.3093 7.29881 23.7144C7.00642 23.2002 6.98625 23.0691 6.93584 21.9197L6.88543 20.6695L6.5527 20.3771C6.11916 19.9839 5.70577 19.9839 5.30247 20.3872Z"})])],-1))],64))}}),[["__scopeId","data-v-94c18208"]]),Vo=E(i.defineComponent({__name:"IconFilter",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M8.58216 5.14236C6.22884 5.77558 4.70721 8.02494 5.04745 10.3688C5.61452 14.2627 10.3684 15.8127 13.0714 12.9962C13.6385 12.4103 14.319 11.2194 14.319 10.8225C14.319 10.6902 14.9428 10.6713 20.3771 10.6713H26.4353L26.7094 10.3972C27.0969 10.0097 27.0969 9.44261 26.7094 9.05511L26.4353 8.78103H20.396H14.3662L14.1867 8.23287C13.4589 5.9646 10.8599 4.52803 8.58216 5.14236ZM10.9638 7.21215C13.0525 8.24232 13.0336 11.2194 10.9355 12.2496C10.2172 12.5993 9.20593 12.6276 8.54436 12.2968C6.21939 11.1533 6.43676 7.81702 8.8846 7.01368C9.45166 6.8341 10.3495 6.91916 10.9638 7.21215Z"}),i.createElementVNode("path",{d:"M21.5953 17.6266C21.1133 17.7211 20.2155 18.0519 19.8752 18.2599C18.9868 18.7986 18.0322 20.0083 17.8054 20.8778L17.6826 21.3504H12.3616C6.66257 21.3504 6.63422 21.3504 6.37904 21.8135C6.20892 22.1443 6.26562 22.6452 6.51135 22.9287L6.73818 23.1933L12.1915 23.2406L17.6448 23.2878L17.8621 23.8738C18.4292 25.4427 19.7334 26.6052 21.2929 26.936C22.1057 27.1061 23.3154 27.0021 24.062 26.6997C25.3379 26.1799 26.4059 25.0174 26.8029 23.7037C26.9635 23.165 27.0013 22.8625 26.9635 22.0781C26.9352 21.1991 26.8974 21.0479 26.5855 20.3864C25.8105 18.7513 24.2794 17.7117 22.5499 17.6172C22.1529 17.5983 21.7276 17.6077 21.5953 17.6266ZM23.5517 19.8004C24.081 20.0556 24.5913 20.5754 24.8748 21.1519C24.9977 21.4071 25.045 21.7095 25.045 22.3427C25.045 23.1555 25.0261 23.2311 24.7236 23.7415C23.5611 25.6412 20.8014 25.5656 19.7902 23.5997C19.5066 23.0421 19.4405 22.0119 19.6484 21.3787C20.1682 19.8004 22.0206 19.0537 23.5517 19.8004Z"})])],-1))],64))}}),[["__scopeId","data-v-d11e6069"]]),To=E(i.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[i.createElementVNode("path",{d:"M13.4323 2.0816C13.3788 2.0909 13.2951 2.12113 13.2462 2.14904C13.1997 2.17462 11.5439 3.85601 9.56715 5.8816C6.70668 8.81648 5.96017 9.59322 5.90436 9.69787C5.84622 9.8095 5.83691 9.85601 5.83691 9.99787C5.83691 10.1397 5.84622 10.1886 5.90436 10.2979C6.00436 10.4886 13.102 17.7746 13.2764 17.8653C13.3695 17.9142 13.423 17.9258 13.5555 17.9258C13.916 17.9235 14.1788 17.6583 14.1788 17.2932C14.1788 17.0374 14.1392 16.9769 13.623 16.4467C13.3695 16.1862 11.8555 14.6328 10.2555 12.9909C8.65552 11.349 7.35087 9.99787 7.35552 9.9909C7.36017 9.9816 8.86715 8.43276 10.7044 6.54904C12.5416 4.66532 14.0671 3.08392 14.0951 3.03508C14.2392 2.79555 14.1951 2.45834 13.9927 2.25834C13.8462 2.1095 13.6323 2.04206 13.4323 2.0816Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-ca16a90c"]]),Fo=E(i.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#edit"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M21.993 4.16087C21.6831 4.26049 21.2404 4.48185 20.9969 4.64787C20.1778 5.22342 4.60489 20.9402 4.39459 21.4051C4.11789 22.0138 3 25.8434 3 26.1865C3 26.5961 3.30991 27.1938 3.65302 27.4373C4.2507 27.8689 4.58275 27.8468 6.88493 27.1716C8.06923 26.8174 9.23138 26.4411 9.47488 26.3194C10.0062 26.0537 25.4795 10.6468 26.0772 9.79458C26.8519 8.67669 26.9626 7.32637 26.3871 6.10887C25.6234 4.48185 23.6754 3.61853 21.993 4.16087ZM24.0406 6.25276C24.7379 6.70655 25.0035 7.69162 24.6272 8.44426C24.4501 8.78737 9.331 24.0393 8.73332 24.471C8.48982 24.6481 5.2247 25.6995 5.13616 25.6331C5.11402 25.611 5.42393 24.5042 5.82239 23.1871L6.12123 22.1909L14.1125 14.1886C22.5243 5.76576 22.4911 5.79896 23.3101 5.94285C23.4983 5.97605 23.8192 6.11994 24.0406 6.25276Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M15.098 25.9216C14.5446 26.1872 14.4118 27.1169 14.8656 27.5265C15.0759 27.7146 15.4743 27.7257 21.1302 27.7589C25.325 27.781 27.273 27.7478 27.4722 27.6703C28.0367 27.4268 28.1806 26.6521 27.7489 26.154L27.4833 25.8441L21.4069 25.822C17.2674 25.8109 15.264 25.833 15.098 25.9216Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-55ea5a5c"]]),Oo=E(i.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#email"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V5.913C2.02243 5.39779 2.24301 4.91116 2.61568 4.5547C2.98835 4.19824 3.4843 3.99951 4 4H20C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20ZM4 7.868V18H20V7.868L12 13.2L4 7.868ZM4.8 6L12 10.8L19.2 6H4.8Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-99358e0a"]]),Do=E(i.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[i.createElementVNode("path",{d:"M8.91736 3.08529L6.83471 5.17059H8.0843H9.33058V7.25588V9.34117H7.24793H5.16529L5.15868 8.09993L5.14876 6.85868L3.07273 8.93404L1 11.0127L3.08264 13.098L5.16529 15.1833V13.9321V12.6843H7.24793H9.33058V14.7696V16.8548H7.89256C7.10248 16.8548 6.45455 16.8648 6.45785 16.878C6.45785 16.8946 6.60992 17.0402 6.79504 17.2057C7.16529 17.5367 8.90744 19.1189 9.38017 19.5525C10.7058 20.7639 10.9967 21.0188 11.0331 20.999C11.0562 20.9857 12.0876 20.0523 13.3273 18.9236L15.5785 16.8714L14.124 16.8615L12.6694 16.8548V14.7696V12.6843H14.7521H16.8347V13.9255C16.8347 14.6074 16.8446 15.1668 16.8612 15.1668C16.8975 15.1668 21 11.0491 21 11.0127C21 10.9763 16.8975 6.85868 16.8612 6.85868C16.8446 6.85868 16.8347 7.41807 16.8347 8.09993V9.34117H14.7521H12.6694V7.25588V5.17059H13.9091C14.5901 5.17059 15.1488 5.16066 15.1488 5.14411C15.1488 5.12094 11.043 1 11.0165 1C11.0066 1 10.0612 1.93673 8.91736 3.08529ZM12.081 3.24086C12.6595 3.82011 13.1322 4.30337 13.1322 4.31661C13.1322 4.33316 12.8413 4.34309 12.4876 4.34309H11.843V7.25588V10.1687H14.7686H17.6942V9.53646C17.6909 9.18891 17.6975 8.89763 17.7041 8.89101C17.7074 8.88439 18.1934 9.36103 18.7785 9.9469L19.843 11.0127L18.7686 12.0885L17.6942 13.1642V12.9325C17.6909 12.8034 17.6876 12.5155 17.6843 12.2871L17.6777 11.8733L14.762 11.8634L11.843 11.8568V14.7696V17.6823L12.6331 17.689L13.4264 17.6989L12.2165 18.7978L11.0066 19.9L10.7223 19.6419C10.5669 19.5028 10.4314 19.3804 10.4215 19.3704C10.405 19.3539 9.92893 18.917 9.28099 18.3311C9.09917 18.1656 8.86777 17.9538 8.7686 17.8578L8.58678 17.6823H9.37355H10.157V14.7696V11.8568H7.24793H4.33884L4.33223 12.5022L4.32231 13.1477L3.25455 12.0785L2.19008 11.0127L3.25455 9.94359L4.32231 8.87446L4.33223 9.52322L4.33884 10.1687H7.24793H10.157V7.25588V4.34309L9.5124 4.33647L8.86446 4.32654L9.93223 3.25741C10.5174 2.67154 11.0066 2.1916 11.0165 2.1916C11.0264 2.1916 11.5058 2.66492 12.081 3.24086Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-05547f14"]]),Lo=E(i.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#phone"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M19.4998 21.75H19.3723C4.63482 20.9025 2.54232 8.4675 2.24982 4.6725C2.22625 4.37744 2.26114 4.08062 2.35248 3.79906C2.44382 3.5175 2.58981 3.25673 2.78211 3.03169C2.9744 2.80665 3.20921 2.62177 3.47308 2.48763C3.73695 2.35349 4.02469 2.27274 4.31982 2.25H8.45232C8.75274 2.24971 9.04632 2.33963 9.29504 2.50812C9.54377 2.67661 9.73617 2.9159 9.84732 3.195L10.9873 6C11.0971 6.27266 11.1243 6.57156 11.0657 6.85957C11.007 7.14758 10.865 7.412 10.6573 7.62L9.05982 9.2325C9.30936 10.6506 9.98846 11.9578 11.0052 12.9772C12.022 13.9967 13.3274 14.6792 14.7448 14.9325L16.3723 13.32C16.5834 13.1146 16.8504 12.9759 17.1398 12.9213C17.4292 12.8666 17.7283 12.8983 17.9998 13.0125L20.8273 14.145C21.1022 14.2597 21.3367 14.4536 21.501 14.702C21.6653 14.9504 21.7519 15.2422 21.7498 15.54V19.5C21.7498 20.0967 21.5128 20.669 21.0908 21.091C20.6689 21.5129 20.0966 21.75 19.4998 21.75ZM4.49982 3.75C4.30091 3.75 4.11014 3.82902 3.96949 3.96967C3.82884 4.11032 3.74982 4.30109 3.74982 4.5V4.56C4.09482 9 6.30732 19.5 19.4548 20.25C19.5534 20.2561 19.6521 20.2427 19.7454 20.2105C19.8388 20.1783 19.9248 20.1281 19.9987 20.0626C20.0726 19.9971 20.1328 19.9176 20.1759 19.8288C20.219 19.74 20.2441 19.6436 20.2498 19.545V15.54L17.4223 14.4075L15.2698 16.545L14.9098 16.5C8.38482 15.6825 7.49982 9.1575 7.49982 9.09L7.45482 8.73L9.58482 6.5775L8.45982 3.75H4.49982Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-131f6ba1"]]),Ho=E(i.defineComponent({__name:"ArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})])],-1))],64))}}),[["__scopeId","data-v-ec3439ce"]]),qo=E(i.defineComponent({__name:"ArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})])],-1))],64))}}),[["__scopeId","data-v-cd0d3c21"]]),Uo=E(i.defineComponent({__name:"DoubleArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M529.408 149.376C532.121 146.589 535.365 144.374 538.949 142.862C542.532 141.35 546.382 140.57 550.272 140.57C554.161 140.57 558.011 141.35 561.595 142.862C565.178 144.374 568.422 146.589 571.136 149.376C576.699 155.088 579.813 162.746 579.813 170.72C579.813 178.694 576.699 186.352 571.136 192.064L259.264 511.936L571.136 831.872C573.943 834.746 576.157 838.145 577.651 841.875C579.145 845.605 579.889 849.593 579.842 853.61C579.794 857.628 578.956 861.597 577.374 865.29C575.792 868.984 573.499 872.329 570.624 875.136C567.886 877.812 564.647 879.922 561.092 881.344C557.538 882.767 553.738 883.475 549.91 883.427C546.081 883.38 542.3 882.578 538.782 881.067C535.264 879.556 532.079 877.367 529.408 874.624L197.76 534.272C191.935 528.296 188.675 520.281 188.675 511.936C188.675 503.591 191.935 495.576 197.76 489.6L529.408 149.376ZM785.408 149.376C788.121 146.589 791.365 144.374 794.949 142.862C798.532 141.35 802.382 140.57 806.272 140.57C810.161 140.57 814.011 141.35 817.595 142.862C821.178 144.374 824.422 146.589 827.136 149.376C832.699 155.088 835.813 162.746 835.813 170.72C835.813 178.694 832.699 186.352 827.136 192.064L515.264 511.936L827.136 831.872C829.943 834.746 832.157 838.145 833.651 841.875C835.145 845.605 835.889 849.593 835.842 853.61C835.794 857.628 834.956 861.597 833.374 865.29C831.792 868.984 829.499 872.329 826.624 875.136C823.886 877.812 820.647 879.922 817.092 881.344C813.538 882.767 809.738 883.475 805.91 883.427C802.081 883.38 798.3 882.578 794.782 881.067C791.264 879.556 788.079 877.367 785.408 874.624L453.76 534.272C447.935 528.296 444.675 520.281 444.675 511.936C444.675 503.591 447.935 495.576 453.76 489.6L785.408 149.376Z"})])],-1))],64))}}),[["__scopeId","data-v-98099ad2"]]),jo=E(i.defineComponent({__name:"DoubleArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M495.111 874.624C492.397 877.411 489.153 879.626 485.57 881.138C481.987 882.65 478.136 883.43 474.247 883.43C470.357 883.43 466.507 882.65 462.924 881.138C459.34 879.626 456.096 877.411 453.383 874.624C447.819 868.912 444.706 861.254 444.706 853.28C444.706 845.306 447.819 837.648 453.383 831.936L765.255 512.064L453.383 192.128C450.575 189.254 448.361 185.855 446.867 182.125C445.374 178.395 444.629 174.407 444.677 170.39C444.724 166.372 445.563 162.403 447.145 158.71C448.726 155.016 451.02 151.671 453.895 148.864C456.633 146.188 459.872 144.078 463.426 142.656C466.981 141.233 470.781 140.525 474.609 140.573C478.437 140.62 482.219 141.422 485.737 142.933C489.254 144.444 492.44 146.633 495.111 149.376L826.759 489.728C832.584 495.704 835.844 503.719 835.844 512.064C835.844 520.409 832.584 528.424 826.759 534.4L495.111 874.624ZM239.111 874.624C236.397 877.411 233.153 879.626 229.57 881.138C225.987 882.65 222.136 883.43 218.247 883.43C214.357 883.43 210.507 882.65 206.924 881.138C203.34 879.626 200.096 877.411 197.383 874.624C191.819 868.912 188.706 861.254 188.706 853.28C188.706 845.306 191.819 837.648 197.383 831.936L509.255 512.064L197.383 192.128C194.575 189.254 192.361 185.855 190.867 182.125C189.374 178.395 188.629 174.407 188.677 170.39C188.724 166.372 189.563 162.403 191.145 158.71C192.726 155.016 195.02 151.671 197.895 148.864C200.633 146.188 203.872 144.078 207.426 142.656C210.981 141.233 214.781 140.525 218.609 140.573C222.437 140.62 226.219 141.422 229.737 142.933C233.254 144.444 236.44 146.633 239.111 149.376L570.759 489.728C576.584 495.704 579.844 503.719 579.844 512.064C579.844 520.409 576.584 528.424 570.759 534.4L239.111 874.624Z"})])],-1))],64))}}),[["__scopeId","data-v-053c9917"]]),_o=E(i.defineComponent({__name:"EllipsisSvg",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),r[3]||(r[3]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1798f31d><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1798f31d><path d="M65 135C73.2843 135 80 128.284 80 120C80 111.716 73.2843 105 65 105C56.7157 105 50 111.716 50 120C50 128.284 56.7157 135 65 135Z" data-v-1798f31d></path><path d="M120 135C128.284 135 135 128.284 135 120C135 111.716 128.284 105 120 105C111.716 105 105 111.716 105 120C105 128.284 111.716 135 120 135Z" data-v-1798f31d></path><path d="M175 135C183.284 135 190 128.284 190 120C190 111.716 183.284 105 175 105C166.716 105 160 111.716 160 120C160 128.284 166.716 135 175 135Z" data-v-1798f31d></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1798f31d"]]);function Wo(t){t.component("IconDownload",zo),t.component("IconFilter",Vo),t.component("ArrowLeft",Ho),t.component("ArrowRight",qo),t.component("DoubleArrowLeft",Uo),t.component("DoubleArrowRight",jo),t.component("EllipsisSvg",_o),t.component("IconArrowLeft",To),t.component("IconCheckDefault",Pi),t.component("IconClose",Pn),t.component("IconEdit",Fo),t.component("IconEmail",Oo),t.component("IconMove",Do),t.component("IconPhone",Lo),t.component("IconSearch",Li),t.component("IconSelectArrow",Vi)}const Em=Object.freeze(Object.defineProperty({__proto__:null,ArrowLeft:Ho,ArrowRight:qo,DoubleArrowLeft:Uo,DoubleArrowRight:jo,EllipsisSvg:_o,IconArrowLeft:To,IconCheckDefault:Pi,IconClose:Pn,IconDownload:zo,IconEdit:Fo,IconEmail:Oo,IconFilter:Vo,IconMove:Do,IconPhone:Lo,IconSearch:Li,IconSelectArrow:Vi,default:Wo},Symbol.toStringTag,{value:"Module"})),xm=i.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(t){const e=i.ref(t.initActiveIdx),n=r=>{e.value=r};return i.watch(()=>t.initActiveIdx,()=>{n(t.initActiveIdx)}),{changeActiveId:n,activeIdx:e}}});function Mm(t,e,n,r,s,o){return i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default",{activeIdx:t.activeIdx,changeActiveId:t.changeActiveId})])}const Go=E(xm,[["render",Mm]]),Bm=i.defineComponent({name:"CollapseItem",props:{tabId:{type:String,required:!1,default:""},activeId:{type:String,default:""},isCollaps:{type:Boolean,default:!0},title:{type:String,default:""},showToolsOnHover:{type:Boolean,default:!0},background:{type:String,required:!1,default:"#ffffff"},backgroundAttention:{type:String,required:!1,default:"#ffffff"},changeColor:{type:Boolean,default:!1},margin:{type:String,default:"10px 8px 2px 2px"},padding:{type:String,default:"0 10px"},selectable:{type:Boolean,default:!1}},emits:["changeActiveId"],setup(t,{emit:e}){const n=i.ref(t.activeId==="0"),r=()=>{n.value=!n.value,e("changeActiveId",t.tabId)};return i.onUpdated(()=>{t.activeId&&t.activeId!==t.tabId&&(n.value=!0)}),i.onBeforeMount(()=>{t.activeId&&t.activeId!==t.tabId&&(n.value=!1)}),{collapsed:n,handleItemClick:r}}}),$m=["for"],Im={class:"inside-icon"};function Rm(t,e,n,r,s,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{class:"tab",style:i.normalizeStyle({margin:t.margin,height:t.isCollaps&&t.collapsed?"60px":"","box-shadow":t.selectable&&t.activeId===t.tabId?"0px 0px 1px 2px #1979cf":""})},[t.isCollaps&&t.collapsed?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:e[0]||(e[0]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},e[3]||(e[3]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]))):t.isCollaps&&!t.collapsed?(i.openBlock(),i.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:e[1]||(e[1]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},e[4]||(e[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)]))):i.createCommentVNode("",!0),i.createElementVNode("label",{for:t.tabId,onClick:e[2]||(e[2]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},[i.createElementVNode("div",{style:i.normalizeStyle({cursor:t.isCollaps?"pointer":"default",background:t.changeColor?t.background:t.backgroundAttention,padding:t.padding,borderRadius:"5px"}),class:"tab-name"},[i.createElementVNode("div",Im,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),i.createElementVNode("div",{class:"title-in",style:i.normalizeStyle({marginRight:t.isCollaps?"50px":"0",width:t.isCollaps?"calc(100% - 50px)":"100%"})},[i.renderSlot(t.$slots,"inside-title",{},()=>[i.createTextVNode(i.toDisplayString(t.title),1)],!0)],4),i.createElementVNode("div",{class:i.normalizeClass(["tools-bar",{"hidden-part":t.showToolsOnHover}])},[i.renderSlot(t.$slots,"tools",{},void 0,!0)],2)],4)],8,$m),i.createElementVNode("div",{style:i.normalizeStyle({maxHeight:t.isCollaps?"":"1000000vh",background:t.changeColor?t.background:t.backgroundAttention}),class:i.normalizeClass(t.collapsed?"tab-content-down":"tab-content-up")},[i.renderSlot(t.$slots,"default",{},void 0,!0)],6)],4),e[5]||(e[5]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-c2e31ebb><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-c2e31ebb><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-c2e31ebb></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-c2e31ebb><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-c2e31ebb></path></symbol></svg>',1))],64)}const Zo=E(Bm,[["render",Rm],["__scopeId","data-v-c2e31ebb"]]),vm={class:"tab"},Nm={class:"rotate"},Xo=E(i.defineComponent({__name:"VerticalCollapseContainer",setup(t){const e=i.ref(!1),n=async()=>{e.value=!e.value};return(r,s)=>{const o=i.resolveComponent("ArrowRight"),a=i.resolveComponent("ArrowLeft");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",vm,[i.renderSlot(r.$slots,"main",{},void 0,!0),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"20px",transition:"0.3s"}),class:"left"},[i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"100%":"0",transition:"0.3s"}),class:"left-content"},[i.renderSlot(r.$slots,"inside-content-left",{},void 0,!0)],4),i.createElementVNode("div",{class:"arrow-bar",onClick:n},[i.createElementVNode("div",Nm,[i.renderSlot(r.$slots,"inside-title",{},void 0,!0)]),i.unref(e)?(i.openBlock(),i.createBlock(o,{key:0,"icon-class":"icon-arrow"})):(i.openBlock(),i.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"100%",transition:"0.3s"}),class:"right"},[i.renderSlot(r.$slots,"inside-content-right",{},void 0,!0)],4)]),i.createVNode(a),i.createVNode(o)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),Am={class:"add-block_body"},Yo=E(i.defineComponent({__name:"PAdd",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(t){return(e,n)=>{const r=i.resolveComponent("PSticky");return i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createVNode(r,{top:t.top,"z-index":t.zIndex},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),i.createElementVNode("div",Am,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),Jo=E(i.defineComponent({__name:"PContainer",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b2b43a38"]]),Pm={class:"add-block_body"},Qo=E(i.defineComponent({__name:"PContainerStickyHead",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(t){return(e,n)=>{const r=i.resolveComponent("PSticky"),s=i.resolveComponent("PContainer");return i.openBlock(),i.createBlock(s,{background:t.background,margin:t.margin,padding:t.padding},{default:i.withCtx(()=>[i.createVNode(r,{top:t.top,"z-index":t.zIndex},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),i.createElementVNode("div",Pm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),zm={class:"del-block_title"},Vm={class:"del-block_body"},Ko=E(i.defineComponent({__name:"PDel",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"10px 10px 10px 50px"},padding:{type:String,required:!1,default:"10px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"del-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createElementVNode("div",zm,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",Vm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),zn=E(i.defineComponent({__name:"PModal",props:{showCloseDialog:{type:Boolean,required:!1,default:!1},closable:{type:Boolean,required:!1,default:!1},show:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"760px"},maxHeight:{type:String,default:"70vh"},margin:{type:String,default:"auto"},top:{type:String,default:"20vh"},padding:{type:String,default:"var(--modal-window-padding)"},showClose:{type:Boolean,default:!1}},emits:["save","close"],setup(t,{emit:e}){const n=t,r=e,s=a=>{a.key==="Escape"&&o()};i.onMounted(()=>{document.body.addEventListener("keydown",s)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",s)});const o=()=>{n.closable&&r("close")};return(a,d)=>{const c=i.resolveComponent("IconClose");return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.show?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:o})):i.createCommentVNode("",!0),t.show?(i.openBlock(),i.createElementBlock("div",{key:1,class:"modal-w",style:i.normalizeStyle({maxWidth:t.width,width:t.width,margin:t.margin,padding:t.padding,top:t.top,maxHeight:t.maxHeight})},[t.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"icon-box",onClick:o},[i.createVNode(c,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ece06e7d"]]),ea=E(i.defineComponent({__name:"PNotify",setup(t){const e=i.computed(()=>{switch(ye.GetType()){case"info":return"message info";case"success":return"message success";case"warning":return"message warning";case"error":return"message error";default:return"message neutral"}});return(n,r)=>(i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[i.unref(ye).IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(Di,{title:i.unref(ye).GetTitle(),text:i.unref(ye).GetText()},null,8,["title","text"])],2)):i.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-3714a37b"]]);function ta(t){t.component("CollapseContainer",Go),t.component("CollapseItem",Zo),t.component("VerticalCollapseContainer",Xo),t.component("PAdd",Yo),t.component("PModal",zn),t.component("PContainer",Jo),t.component("PContainerStickyHead",Qo),t.component("PDel",Ko),t.component("PNotify",ea)}const Tm=Object.freeze(Object.defineProperty({__proto__:null,CollapseContainer:Go,CollapseItem:Zo,PAdd:Yo,PContainer:Jo,PContainerStickyHead:Qo,PDel:Ko,PModal:zn,PNotify:ea,VerticalCollapseContainer:Xo,default:ta},Symbol.toStringTag,{value:"Module"})),Fm={class:"btn-group"},qi=E(i.defineComponent({__name:"PAuthForm",props:{width:{type:String,default:"auto"},margin:{type:String,default:"auto"},padding:{type:String,default:"0"},background:{type:String,default:"inherit"}},emits:["submit"],setup(t,{emit:e}){const n=e,r=i.computed(()=>re.Form.GetButtons()),s=i.useTemplateRef("fields"),o=async d=>{if(!d.isSubmit){re.Form.SetChunk(d.GetChunk()),a();return}const c=re.Form.Validate();if(c.length>0){Ye.Notify.Error(c.join("<br/>"));return}n("submit")},a=()=>{if(!s.value)return;const d=s.value[0];d&&d.$refs.input.focus()};return i.onMounted(async()=>{await a()}),i.onBeforeUnmount(()=>{re.Form.Reset()}),(d,c)=>(i.openBlock(),i.createElementBlock("div",{class:"auth-card",style:i.normalizeStyle({maxWidth:t.width,margin:t.margin,padding:t.padding,background:t.background})},[i.createVNode(Fi,{string:i.unref(re).Form.GetTitle(),"font-size":"18px"},null,8,["string"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(re).Form.GetFields(),u=>(i.openBlock(),i.createBlock(An,{id:u.id,key:u.id,ref_for:!0,ref_key:"fields",ref:s,modelValue:u.value,"onUpdate:modelValue":h=>u.value=h,type:u.IsPassword?"password":"text",placeholder:u.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder"]))),128)),i.createElementVNode("div",Fm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(r),(u,h)=>(i.openBlock(),i.createBlock(vn,{id:u.id,key:u.GetChunk(),disabled:i.unref(re).Form.IsBlock,type:h===0?i.unref(ce).Success:i.unref(ce).Primary,skin:"base",text:u.text,margin:"10px 0 0 0",width:"100%",onClick:f=>o(u)},null,8,["id","disabled","type","text","onClick"]))),128))])],4))}}),[["__scopeId","data-v-bbd3e3b8"]]),na=i.defineComponent({__name:"PAuthModal",props:{width:{type:String,default:"320px"},margin:{type:String,default:"0"},padding:{type:String,default:"2vw"}},emits:["submit"],setup(t){const e=()=>{re.Form.Reset(),re.Modal.Close()};return(n,r)=>(i.openBlock(),i.createBlock(zn,{show:i.unref(re).Modal.Visible,closable:i.unref(re).Modal.Closable,width:t.width,padding:t.padding,onClose:e},{default:i.withCtx(()=>[i.createVNode(qi,{margin:t.margin,padding:"0",onSubmit:r[0]||(r[0]=s=>n.$emit("submit"))},null,8,["margin"])]),_:1},8,["show","closable","width","padding"]))}}),Om={class:"field"},ia=E(i.defineComponent({__name:"PNameEdit",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!1),o=i.ref(),a=i.ref(n.withName.name),d=i.ref(!1),c=()=>{d.value=!1},u=async()=>{a.value.trim(),n.withName.setName&&n.withName.setName(a.value),s.value=!s.value,r("submit")};return(h,f)=>{const m=i.resolveComponent("PString"),g=i.resolveComponent("PInput"),C=i.resolveComponent("InfoItem"),b=i.resolveComponent("PButton"),S=i.resolveComponent("el-form");return i.openBlock(),i.createBlock(S,{ref_key:"form",ref:o,style:{width:"100%"}},{default:i.withCtx(()=>[i.createVNode(C,{title:"Название","show-save-dialog":d.value,icon:"edit-title","with-hover":!0,close:s.value,width:"100%",onKeyupEnter:u,onAfterClose:c},{"open-inside-content":i.withCtx(()=>[i.createVNode(C,{title:"",icon:"edit-title","with-open-window":!1,"with-hover":!1,"border-color":"#ffffff","base-box-margin":"0 0 15px 0",padding:"0",width:"100%","custom-class":"test","open-width":"100%"},{default:i.withCtx(()=>[i.createElementVNode("div",Om,[i.createVNode(g,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=I=>a.value=I),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])])]),_:1}),i.createVNode(b,{type:"admin",color:"blue",text:"Сохранить",onClick:u})]),default:i.withCtx(()=>[a.value.length?(i.openBlock(),i.createBlock(m,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(i.openBlock(),i.createBlock(m,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-4f7966cb"]]),Dm=["onClick"],ra=E(i.defineComponent({__name:"PTabs",props:{menus:{type:Object,required:!0},tabHeight:{type:String,required:!1,default:"40px"},height:{type:String,required:!1,default:""},minMenuItemWidth:{type:String,required:!1,default:"150px"},outTopMargin:{type:String,required:!1,default:"40px"},background:{type:String,required:!1,default:"#ffffff"},margin:{type:String,required:!1,default:"var(--tabs-margin, 0 10px 10px 10px)"},borderRadius:{type:String,required:!1,default:"var(--tabs-border-radius, 10px)"}},emits:["select"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(window.innerWidth),o=i.ref(),a=i.ref(Number(n.tabHeight.replace(/[^+\d]/g,""))),d=()=>{s.value=window.innerWidth,a.value=o.value?o.value.clientHeight:Number(n.tabHeight.replace(/[^+\d]/g,""))};i.onMounted(()=>window.addEventListener("resize",d)),i.onUnmounted(()=>window.removeEventListener("resize",d));const c=i.computed(()=>`calc(100% - ${a.value}px + 1px)`);i.onBeforeMount(()=>{n.menus.Select()});const u=h=>{n.menus.Select(h),r("select")};return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({height:`calc(100% - ${t.outTopMargin} - ${t.tabHeight}`,margin:t.margin,borderRadius:t.borderRadius})},[i.createElementVNode("div",{ref_key:"menuRef",ref:o,class:"top-menu",style:i.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${t.minMenuItemWidth}, 1fr))`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.menus.items,(m,g)=>(i.openBlock(),i.createElementBlock("div",{key:g},[i.createElementVNode("div",{class:i.normalizeClass({"selected-tab":g===t.menus.idx,tab:g!==t.menus.idx}),style:i.normalizeStyle({minHeight:t.tabHeight,maxHeight:t.tabHeight}),onClick:C=>u(g)},i.toDisplayString(m.name),15,Dm)]))),128))],4),i.createElementVNode("div",{class:"body-container",style:i.normalizeStyle({background:t.background,height:i.unref(c)})},[i.renderSlot(h.$slots,"default",{},()=>[t.menus.idx>-1?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.menus.GetComponent()),{key:0})):i.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-caa5b5d8"]]),Lm=["id"],Hm=["for"],qm={class:"left-field"},Um=["href","download"],jm={key:1,class:"text-field__input"},_m={class:"right-field"},Wm=i.defineComponent({__name:"PUploaderFile",props:{fileInfo:{type:Object,required:!1,default:new fe},formats:{type:Array,default:()=>["pdf","jpeg","jpg"]},label:{type:String,default:"Label",required:!1},margin:{type:String,required:!1,default:"10px 0 0 0"},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},placeholder:{type:String,required:!1,default:""}},emits:["upload","remove"],setup(t,{emit:e}){const n=t,r=e,s=ee.GUID(),o=ee.GUID(),a=()=>{const u=document.getElementById(s);if(!u.files)return;const h=u.files[0];if(h){if(!c(h.name)){ye.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");return}n.fileInfo.setFile(h),r("upload",n.fileInfo)}},d=()=>{n.fileInfo.clearFile(),r("remove",n.fileInfo)};i.onMounted(()=>{const u=document.getElementById(o);u&&(u.onclick=()=>{var h;return(h=document.getElementById(s))==null?void 0:h.click()})});const c=u=>{let h=hs.Get(u);return!!n.formats.includes(h.toLowerCase())};return(u,h)=>{const f=i.resolveComponent("PString"),m=i.resolveComponent("PFlex"),g=i.resolveComponent("PButton");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("input",{id:i.unref(s),type:"file",hidden:"",onChange:a},null,40,Lm),i.createElementVNode("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Hm)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",qm,[i.createVNode(m,null,{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createVNode(f,{string:t.placeholder,"font-size":"var(--font-size-default:)",color:"var(--input-label-color)",margin:"0 10px 0 0"},null,8,["string"])]),_:3})]),t.fileInfo&&t.fileInfo.originalName?(i.openBlock(),i.createElementBlock("div",{key:0,class:"text-field__input",style:i.normalizeStyle({color:t.color})},[i.createElementVNode("a",{href:t.fileInfo.getFileUrl(),target:"_blank",download:t.fileInfo.originalName},[i.createElementVNode("div",null,i.toDisplayString(t.fileInfo.originalName),1)],8,Um),i.createVNode(g,{skin:"text",type:"del",onClick:d},{default:i.withCtx(()=>[i.createVNode(Pn,{size:"20px",margin:"0 5px"})]),_:1})],4)):(i.openBlock(),i.createElementBlock("div",jm,[i.createVNode(f,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),i.createElementVNode("div",_m,[i.createVNode(g,{id:i.unref(o),skin:"text",type:"success","data-test":"upload-btn",text:t.fileInfo&&t.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),sa=E(Wm,[["__scopeId","data-v-da26d0d4"]]);function oa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oa(Object(n),!0).forEach(function(r){xe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gm(t,e){if(t==null)return{};var n,r,s=function(a,d){if(a==null)return{};var c,u,h={},f=Object.keys(a);for(u=0;u<f.length;u++)c=f[u],d.indexOf(c)>=0||(h[c]=a[c]);return h}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function ft(t){return function(e){if(Array.isArray(e))return Ui(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return Ui(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ui(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
24
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ui(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var
|
|
23
|
+
*/function hs(t){const e=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+t].concat(e))}var fs;(function(t){t.pop="pop",t.push="push"})(fs||(fs={}));var ms;(function(t){t.back="back",t.forward="forward",t.unknown=""})(ms||(ms={})),Symbol(process.env.NODE_ENV!=="production"?"navigation failure":"");var ps;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(ps||(ps={}));const ld=Symbol(process.env.NODE_ENV!=="production"?"router view location matched":"");Symbol(process.env.NODE_ENV!=="production"?"router view depth":""),Symbol(process.env.NODE_ENV!=="production"?"router":""),Symbol(process.env.NODE_ENV!=="production"?"route location":""),Symbol(process.env.NODE_ENV!=="production"?"router view location":"");function cd(t,e,n){const r=()=>{t[e].delete(n)};i.onUnmounted(r),i.onDeactivated(r),i.onActivated(()=>{t[e].add(n)}),t[e].add(n)}function dd(t){if(process.env.NODE_ENV!=="production"&&!i.getCurrentInstance()){hs("getCurrentInstance() returned null. onBeforeRouteLeave() must be called at the top of a setup function");return}const e=i.inject(ld,{}).value;if(!e){process.env.NODE_ENV!=="production"&&hs("No active route record was found when calling `onBeforeRouteLeave()`. Make sure you call this function inside a component child of <router-view>. Maybe you called it inside of App.vue?");return}cd(e,"leaveGuards",t)}class ud{constructor(){l(this,"list",[]);l(this,"defaultSortModel");l(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=ds(e),this.SetDefault())}SetDefault(){this.defaultSortModel=this.list.find(e=>e.default)??this.list[0],this.changeFlag=!this.changeFlag}Get(){return this.list}GetDefault(){return this.defaultSortModel}Reset(){this.list=[],this.defaultSortModel=void 0}}const ct=new ud;function hd(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:o=>{t.value&&o.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(o,a)=>{t.value&&!e.value?o():a()}}}const fd=(()=>{const t=(o,a)=>i.onBeforeMount(async()=>{A.F.FTSP.Get().reset(),ct.Set(a==null?void 0:a.sortsLib),await o()}),{saveButtonClick:e,showConfirmModal:n}=hd(),r=o=>dd((a,d,c)=>{n((o||s)(),c)}),s=o=>async()=>{e.value=!0;try{o&&await o()}catch(a){console.log(a);return}};return{onBeforeMount:t,onBeforeRouteLeave:r,submit:s}})();function gs(t,e){const n=[];if(t)for(let r=0;r<Math.ceil(t.length/e);r++)n[r]=t.slice(r*e,r*e+e);return n}class Ci{constructor(){l(this,"items",[]);l(this,"idx",0);l(this,"key","")}preSelect(){const e=Ve.GetStringQueryParam(this.key);if(!e||e==="undefined"){this.Select(0);return}const n=this.items.findIndex(r=>r.slug===e);n>-1&&this.Select(n)}static Create(e,n){const r=new Ci;return r.key=e,r.items=n,r.items.length&&r.preSelect(),r}Select(e){if(this.items.length){if(e===void 0)return this.preSelect();this.idx=e,Ve.SetQueryParam(this.key,this.GetSlug())}}GetMenu(){return this.items[this.idx]}GetComponent(){return this.items[this.idx].component}GetSlug(){return this.items[this.idx].slug}}const _n=class _n{static Format(e){let n=e;if(!n)e=n;else{(n[0]==="7"||n[0]==="8")&&n.length!==1&&(n=n.slice(1));const r=n.replace(/\+7|[^\d]/g,""),s=r.length;switch(!0){case s===0:e="";break;case(s===1&&n.length===1&&r==="7"):case(s===1&&n.length===1&&r==="8"):e="+7 (";break;case s<4:e=`+7 (${r}`;break;case s<7:e=`+7 (${r.slice(0,3)}) ${r.slice(3)}`;break;case s<9:e=`+7 (${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6,8)}`;break;default:e=`+7 (${r.slice(0,3)}) ${r.slice(3,6)}-${r.slice(6,8)}-${r.slice(8,10)}`;break}}return e}static getPhoneRegExp(){return/^(\s*)?(\+)?([- _():=+]?\d[- _():=+]?){10,14}(\s*)?$/}};l(_n,"validatePhone",(e,n,r)=>{_n.getPhoneRegExp().test(n)||!n?r():r(new Error("Пожалуйста, введите корректный номер телефона"))});let Si=_n;class md{static Count(e){const n=e.filter(o=>o.rating!==0);let r=0;n.forEach(o=>r=r+o.rating);const s=r/n.length;return isNaN(s)?0:Number((r/n.length).toFixed(2))}}class pd{static async Auth(e){e&&e()}static Dev(){}}class gd{constructor(){l(this,"startHour",9);l(this,"startHM",`${this.startHour}:00`);l(this,"endHour",19);l(this,"endHM",`${this.endHour}:00`);l(this,"timelinePxHeight",50);l(this,"timelineStep",vt.FiveMinutes);l(this,"timelines",en[vt.FiveMinutes])}periodIsCorrect(e,n){return D.GtOrEq(e,this.startHM)&&D.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=en[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return Ue.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,r,s){return s.filter(o=>o.id!==r).every(o=>!D.PeriodsIntersects(e,n,o.startTime,o.endTime))}sortByStartTime(e){e.sort((n,r)=>D.HMtoM(n.startTime)-D.HMtoM(r.startTime))}}const yd=-68;function wd(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),r=e??yd;let s=0;n&&(s=n.getBoundingClientRect().top+r+document.body.scrollTop),s&&document.body.scrollTo({top:s,behavior:"smooth"})}class bd{static Sort(e){e.forEach((n,r)=>n.order=r)}}function Cd(t,e){let n=!0;return t.value.validate(r=>(r||(n=!1),n)),n}const Sd=t=>new Promise(e=>{if(document.querySelector(t))return e(document.querySelector(t));const n=new MutationObserver(()=>{document.querySelector(t)&&(n.disconnect(),e(document.querySelector(t)))});n.observe(document.body,{childList:!0,subtree:!0})});class Cn{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");$.BuildClass(this,e)}static Create(e,n,r,s){const o=new Cn;return o.id=Xe(),o.chatId=e,o.message=r,o.userName=s,o}static CreatePingMessage(){const e=new Cn;return e.type="ping",e.id=Xe(),e}isMessage(){return this.type==="message"||this.type===""}}const kd="";class Ed{constructor(e="",n="",r="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);$.BuildClass(this,{endpoint:e,query:n,mutation:r}),this.connect(),this.ping()}send(e){!this.client||this.client.readyState!==1||this.client.send(e)}ping(){setInterval(this.sendPing.bind(this),this.period)}sendPing(){!this.client||this.client.readyState!==1||this.send(JSON.stringify(Cn.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,kd.replace("http","ws")).toString()}connect(){this.client=new WebSocket(this.buildUrl()),this.client.onclose=this.reconnect,this.client.onerror=this.reconnect}reconnect(){setTimeout(this.connect,3e3)}}let xd=(L=class{},l(L,"Arrays",Ue),l(L,"Axios",Dt),l(L,"BaseStore",Y),l(L,"Cache",bn),l(L,"Classes",$),l(L,"CarouselSwipe",Zc),l(L,"Color",Yc),l(L,"CreateSortModels",ds),l(L,"Cursor",Jc),l(L,"DateMask",id),l(L,"Dates",Te),l(L,"Dragger",od),l(L,"Extension",us),l(L,"Favourite",ad),l(L,"Hooks",fd),l(L,"HttpClient",J),l(L,"Id",ee),l(L,"MakeCarousel",gs),l(L,"Period",Yn),l(L,"PhoneService",Si),l(L,"Rating",md),l(L,"Router",Ve),l(L,"RouterGuard",pd),l(L,"Scheduler",gd),l(L,"Scroll",wd),l(L,"Sorter",bd),l(L,"Static",Kn),l(L,"Strings",j),l(L,"Time",D),l(L,"Timer",Nt),l(L,"Token",Ot),l(L,"Menus",Ci),l(L,"validate",Cd),l(L,"WaitElement",Sd),l(L,"WebSocketClient",Ed),L);class Md{constructor(){l(this,"limit",25);l(this,"count",0);l(this,"curPage",1);l(this,"storeModule","")}setCurPage(e){this.curPage=e}pagesCount(){return Math.ceil(this.count/this.limit)??1}reset(){this.count=0,this.curPage=1}}const ys=new Md;let Bd=class{async Login(e=re.Form.GetValues()){const n=await J.Post({query:"auth/login",payload:e});if(!n)throw"Ошибка авторизации";re.Status.SetState(n)}async LoginAs(e){await J.Post({query:"auth/login-as",payload:{email:e}})}async Register(e=re.Form.GetValues()){const n=await J.Post({query:"auth/register",payload:e});if(!n)throw n}async RestorePassword(e=re.Form.GetValues()){await J.Post({query:"auth/restore-password",payload:e})}async PasswordChange(e=re.Form.GetValues()){e.id=Ve.GetStringParam("userId"),await J.Put({query:"auth/password-change",payload:e})}async RefreshToken(){await J.Post({query:"auth/refresh-token",payload:{refreshToken:Ot.getRefreshToken()}})}async CheckUuid(e){await J.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}async ConfirmEmail(e){await J.Get({query:`auth/confirm-email/${e}`})}async EmailIsConfirm(e){await J.Get({query:`auth/email-is-confirm/${e}`})}};const $d=new Bd;var Id=Object.defineProperty,Sn=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Id(e,n,s),s};const Lt=class Ya{constructor(e){l(this,"id");l(this,"description","");l(this,"time","");l(this,"latitude","");l(this,"longitude","");l(this,"emails",[]);l(this,"postAddresses",[new nn]);l(this,"phones",[]);l(this,"websites",[]);$.BuildClass(this,e)}addEmail(){const e=rt.Create();return e.contactId=this.id,this.emails.push(e),e}addPhone(){const e=st.Create();return e.contactId=this.id,this.phones.push(e),e}static Create(){const e=new Ya;return e.id=ee.UUID(),e}removeEmail(e){$.RemoveFromClassById(e,this.emails)}removePhone(e){$.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new nn)}addWebsite(){this.websites.push(new ei)}pushFirst(){this.emails.length||this.emails.push(new rt),this.phones.length||this.phones.push(new st)}getCoords(){return[Number(this.latitude),Number(this.longitude)]}updateDescription(e){this.description=e}updateTime(e){this.time=e}updateLatitude(e){this.latitude=e}updateLongitutde(e){this.longitude=e}};Sn([$.GetClassConstructor(rt)],Lt.prototype,"emails"),Sn([$.GetClassConstructor(nn)],Lt.prototype,"postAddresses"),Sn([$.GetClassConstructor(st)],Lt.prototype,"phones"),Sn([$.GetClassConstructor(ei)],Lt.prototype,"websites");let ws=Lt,Rd=class extends Y{constructor(){super(ws,"contacts")}};const vd=new Rd;let Nd=class extends Y{constructor(){super(rt,"emails")}};const Ad=new Nd;class ki{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");$.BuildClass(this,e)}static Create(e){const n=new ki;return n.id=ee.UUID(),n.ftsp=JSON.stringify(e),n}}let zd=class extends Y{constructor(){super(ki,"ftsp-presets")}};const Pd=new zd;let Vd=class extends Y{constructor(){super(Er,"humans")}};const Td=new Vd;let Fd=class extends Y{constructor(){super(st,"phones")}};const Od=new Fd;class Dd{constructor(e){l(this,"id");l(this,"nameRus","");$.BuildClass(this,e)}}var Ld=Object.defineProperty,Hd=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Ld(e,n,s),s};class bs{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);$.BuildClass(this,e)}}Hd([$.GetClassConstructor(Dd)],bs.prototype,"fields");let qd=class extends Y{constructor(){super(bs,"schemas")}};const Ud=new qd;class Cs{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);$.BuildClass(this,e)}}class _d{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");$.BuildClass(this,e)}}var jd=Object.defineProperty,Ss=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&jd(e,n,s),s};class wt{constructor(e){l(this,"id");l(this,"key","");l(this,"label","");l(this,"order",0);l(this,"route","");l(this,"table","");l(this,"active",!0);l(this,"searchColumn","");l(this,"descriptionColumn","");l(this,"labelColumn","");l(this,"valueColumn","");l(this,"options",[]);l(this,"searchGroupMetaColumns",[]);$.BuildClass(this,e)}}Ss([$.GetClassConstructor(Cs)],wt.prototype,"options"),Ss([$.GetClassConstructor(_d)],wt.prototype,"searchGroupMetaColumns");class Ei{constructor(e){l(this,"query","");l(this,"key","");l(this,"params","");l(this,"suggester",!1);l(this,"mustBeTranslated",!0);l(this,"options",[]);l(this,"searchGroupId","");l(this,"searchGroups",[]);l(this,"searchGroup",new wt);l(this,"searchObjects",[]);l(this,"pagination",new rn);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new wt(n))),e.searchGroup&&(this.searchGroup=new wt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new Cs(n))),this.count=e.count)}toUrl(){return JSON.stringify(this)}async setSearchGroup(e){const n=this.searchGroups.find(r=>r.id===e);n?this.searchGroup=n:this.searchGroup=new wt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Ve.Route().query.groupId)}setQuery(){const e=Ve.Route().query.query;e&&(this.query=e)}}let Wd=class{constructor(){l(this,"isSearchDrawerOpen",i.ref(!1));l(this,"searchModel",i.reactive(new Ei));l(this,"searchGroups",i.reactive([]));l(this,"count",0)}async Search(e){const n=await J.Get({query:`search?key=${e.key}&query=${e.query}`});n&&n.searchGroup&&n.searchGroup.options.forEach(r=>{e.searchObjects.push({id:r.id,value:r.value,label:r.label,description:r.description})})}async mainSearch(e){this.SetSearchModel(await J.Get({query:`search/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(r=>{r.options=[]});const n=await J.Get({query:`search/main?searchModel=${e.toUrl()}`});return this.SetSearchModel(n),n}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new Ei}SetSearchModel(e){e&&(this.searchModel=new Ei(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const xi=new Wd;class Mi{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");$.BuildClass(this,e)}static Create(){const e=new Mi;return e.id=ee.UUID(),e}}let Gd=class extends Y{constructor(){super(Mi,"users-accounts")}};const Zd=new Gd;var ks=(t=>(t.simple="simple",t.oneToMany="oneToMany",t.manyToMany="manyToMany",t))(ks||{}),ge=(t=>(t.String="string",t.Text="text",t.Number="number",t.Date="date",t.DateTime="dateTime",t.Radio="radio",t.Set="set",t.Boolean="boolean",t.Files="files",t.File="file",t.MatrixRadio="matrixRadio",t.MatrixSet="matrixSet",t))(ge||{});class Es{constructor(e){l(this,"id");l(this,"name",ge.String);l(this,"valueRelation",ks.simple);$.BuildClass(this,e)}isString(){return this.name==="string"}isNumber(){return this.name==="number"}isDate(){return this.name==="date"}isDateTime(){return this.name==="dateTime"}isRadio(){return this.name==="radio"}isSet(){return this.name==="set"}isText(){return this.name==="text"}isBoolean(){return this.name==="boolean"}isFile(){return this.name==="file"}isFiles(){return this.name==="files"}getComponentType(){if(this.name===ge.Radio)return"RadioProp";if(this.name===ge.Set)return"SetProp";if(this.name===ge.Number)return"NumberProp";if(this.name===ge.String)return"StringProp"}}let Xd=class extends Y{constructor(){super(Es,"value-types")}};const Yd=new Xd;let xs=(ke=class{},l(ke,"Auth",$d),l(ke,"Contacts",vd),l(ke,"Emails",Ad),l(ke,"FileInfos",new Y(fe,"file-infos")),l(ke,"FTSPPresets",Pd),l(ke,"Humans",Td),l(ke,"Phones",Od),l(ke,"Schemas",Ud),l(ke,"UserAccounts",Zd),l(ke,"ValueTypes",Yd),l(ke,"Search",xi),ke);var Bi=(t=>(t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl",t))(Bi||{});let Jd=(tt=class{},l(tt,"Orders",Ee),l(tt,"Sizes",Bi),l(tt,"Statuses",ce),l(tt,"DataTypes",se),l(tt,"ValueTypes",ge),l(tt,"Operators",me),tt);class Qd{constructor(){l(this,"title","");l(this,"buttons",[])}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const Kd=new Qd;class eu{constructor(){l(this,"menu",[]);l(this,"path","");l(this,"isOpen",!0);l(this,"filterString","")}Set(e){this.menu=e}Get(){return this.filterString?this.filterMenu():this.menu}filterMenu(){return this.menu.filter(e=>{var n;return j.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(r=>j.SearchIn(r.name,this.filterString)))})}IsOpen(){return this.isOpen}Toggle(){this.isOpen=!this.isOpen}SetPath(e){this.path=e}GetPath(){return this.path}SetFilter(e){this.filterString=e}GetChildren(e){var n;return this.filterString?(n=e.children)==null?void 0:n.filter(r=>j.SearchIn(r.name,this.filterString)):e.children}}const tu=new eu;class nu{constructor(){l(this,"Menu",i.reactive(tu));l(this,"Head",i.reactive(Kd))}}const iu=new nu;class ru extends yr{constructor(){super(...arguments);l(this,"confirmButtonText","Да");l(this,"cancelButtonText","Нет");l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){return super.show(),typeof n!="string"&&(this.confirmButtonText=n.confirmButtonText,this.cancelButtonText=n.cancelButtonText),new Promise((r,s)=>{this.resolve=r,this.reject=s})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.resolve(!0),this.hide()}Cancel(){this.reject(),this.hide()}hide(){this.resolve=void 0,this.reject=void 0,super.hide()}}const je=new ru;class su extends gr{Show(){super.show()}Hide(){super.hide()}}const ou=new su;class Ye{}l(Ye,"Admin",iu),l(Ye,"Dialog",je),l(Ye,"Loading",ou),l(Ye,"Notify",i.reactive(ye)),l(Ye,"Btn",it),l(Ye,"Input",hr);class A{}l(A,"Auth",i.reactive(re)),l(A,"UI",i.reactive(Ye)),l(A,"Paginator",i.reactive(ys)),l(A,"S",xs),l(A,"H",xd),l(A,"C",pl),l(A,"T",Jd),l(A,"F",Cl);class Ms{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new fe);A.H.Classes.BuildClass(this,e)}}class Ht{constructor(e){l(this,"id");l(this,"passportId");l(this,"fileInfoId");l(this,"fileInfo",new A.C.FileInfo);l(this,"order",0);$.BuildClass(this,e)}static Create(e){const n=new Ht;return n.id=A.H.Id.UUID(),n.passportId=e,n}}var au=Object.defineProperty,lu=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&au(e,n,s),s};class $i{constructor(e){l(this,"id");l(this,"num","");l(this,"seria","");l(this,"division","");l(this,"divisionCode","");l(this,"citzenship","");l(this,"date",new Date);l(this,"address","");l(this,"passportScans",[]);$.BuildClass(this,e)}}lu([$.GetClassConstructor(Ht)],$i.prototype,"passportScans");class Bs{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new fe);A.H.Classes.BuildClass(this,e)}}const cu=Object.freeze(Object.defineProperty({__proto__:null,Inn:Ms,Passport:$i,PassportScan:Ht,Snils:Bs},Symbol.toStringTag,{value:"Module"}));let du=class extends Y{constructor(){super(Ms,"inns")}};const uu=new du;let hu=class extends Y{constructor(){super(Ht,"passport-scans")}};const fu=new hu;let mu=class extends Y{constructor(){super($i,"passports")}};const pu=new mu;let gu=class extends Y{constructor(){super(Bs,"snilss")}};const yu=new gu,wu=Object.freeze(Object.defineProperty({__proto__:null,C:cu,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:uu,PassportScans:fu,Passports:pu,Snilss:yu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class dt{constructor(e){l(this,"id");l(this,"name","");l(this,"score",0);l(this,"order",0);l(this,"showMoreQuestions",!1);l(this,"showOther",!1);l(this,"fieldId");l(this,"isMatrixY",!1);A.H.Classes.BuildClass(this,e)}static Create(e){const n=new dt;return n.id=A.H.Id.UUID(),n.fieldId=e,n}}class $s{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");A.H.Classes.BuildClass(this,e)}}class Ii{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);A.H.Classes.BuildClass(this,e)}}class bt{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");A.H.Classes.BuildClass(this,e)}static Create(e){const n=new bt;return n.id=A.H.Id.UUID(),n.fieldId=e,n}}var bu=Object.defineProperty,qt=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&bu(e,n,s),s};const ut=class Gn{constructor(e){l(this,"id");l(this,"name","");l(this,"code","");l(this,"valueTypeId");l(this,"order",0);l(this,"ageCompare",!1);l(this,"answerVariants",[]);l(this,"answerVariantsForDelete",[]);l(this,"fieldExamples",[]);l(this,"fieldVariants",[]);l(this,"valueType",new Es);l(this,"fieldMeasures",[]);l(this,"showSet",!1);l(this,"showRadio",!1);l(this,"isEdit",!1);l(this,"children",[]);l(this,"parentId");l(this,"formSectionId");l(this,"selected",!1);A.H.Classes.BuildClass(this,e),this.changeRelation([this.valueType])}getMatrixX(){return this.answerVariants.filter(e=>!e.isMatrixY)}getMatrixY(){return this.answerVariants.filter(e=>e.isMatrixY)}static Create(e){const n=new Gn;return n.id=A.H.Id.UUID(),n.formSectionId=e,n}getRegisterPropertyRadioOriginalValue(e){const n=this.answerVariants.find(r=>r.id===e);return n?n.name:""}addRadioItem(e){const n=new dt(e);n.order=this.answerVariants.length,this.answerVariants.push(n)}removeRadioItem(e){const n=this.answerVariants[e].id;n&&this.answerVariantsForDelete.push(n),this.answerVariants.splice(e,1)}changeRelation(e){const n=e.find(r=>r.id===this.valueTypeId);if(n){if(n.isRadio()){this.showRadio=!0,this.showSet=!1;return}if(n.isSet()){this.showSet=!0,this.showRadio=!1;return}this.showSet=!1,this.showRadio=!1,this.valueType=n}}editRegisterProperty(e){this.isEdit=e??!this.isEdit}sortExamples(){this.fieldExamples.forEach((e,n)=>e.order=n)}addRegisterPropertyMeasure(e){this.fieldMeasures.push(new Ii(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new bt)}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}static GetClassName(){return"Field"}setType(e){this.valueType=e,this.valueTypeId=e.id}setName(e){this.name=e}addAnswerVariant(){const e=dt.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=Gn.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=bt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new Gn(this);return e.id=A.H.Id.UUID(),e.answerVariants.forEach(n=>{n.id=A.H.Id.UUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const r=n.copy();return r.parentId=e.id,r}),e}};qt([A.H.Classes.GetClassConstructor(dt)],ut.prototype,"answerVariants"),qt([A.H.Classes.GetClassConstructor($s)],ut.prototype,"fieldExamples"),qt([A.H.Classes.GetClassConstructor(bt)],ut.prototype,"fieldVariants"),qt([A.H.Classes.GetClassConstructor(Ii)],ut.prototype,"fieldMeasures"),qt([A.H.Classes.GetClassConstructor(ut)],ut.prototype,"children");let kn=ut;class Ri{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new fe);A.H.Classes.BuildClass(this,e)}}class ht{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");A.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new ht;return r.id=Xe(),r.fieldFillId=e,r.answerVariantId=n,r}static GetClassName(){return"selectedAnswerVariant"}}var Cu=Object.defineProperty,Is=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Cu(e,n,s),s};const vi=class dr{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new fe);l(this,"fileInfoId");l(this,"order",0);l(this,"selectedAnswerVariants",[]);l(this,"patientId");l(this,"fieldId");l(this,"formFillId");l(this,"answerVariantId");l(this,"filled",!1);l(this,"researchResultId");l(this,"answerFiles",[]);l(this,"answerFilesForDelete",[]);A.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const r=new dr;return r.id=Xe(),r.fieldId=e.id,r.formFillId=n,r.order=e.order,r.valueNumber=0,r.valueString="",r.valueDate=new Date,r}setString(e){this.valueString=e,this.valueString&&(this.filled=this.valueString.length>0)}setNumber(e){this.valueNumber=e,this.valueNumber&&(this.filled=!0)}setOther(e){this.valueOther=e,this.valueOther&&(this.filled=this.valueOther.length>0)}setDate(e){this.valueDate=e,this.filled=!0}setRadio(e){this.answerVariantId=e,this.filled=!!this.answerVariantId}static CreateMany(e,n){return e.map(r=>dr.Create(r,n))}addFile(){const e=new Ri;return e.id=Xe(),e.answerId=this.id,this.answerFiles.push(e),e}getFileInfos(){const e=[];return this.answerFiles.forEach(n=>e.push(n.fileInfo)),e}getSelectedAnswerVariant(){return!0}setMatrixRadioValue(e,n){const r=ht.Create(this.id,e);return r.answerVariantIdY=n,this.selectedAnswerVariants.push(r),this.filled=!0,r}getMatrixValue(e,n){return this.selectedAnswerVariants.find(r=>r.answerVariantId===e&&r.answerVariantIdY===n)}addSelectedAnswerVariant(e){const n=ht.Create(this.id,e);return this.selectedAnswerVariants.push(n),this.filled=!0,n}static GetClassName(){return"answer"}showOther(e){const n=e.find(r=>r.showOther);return n?this.answerVariantId===n.id||this.selectedAnswerVariants.some(r=>r.answerVariantId===n.id):!1}};Is([A.H.Classes.GetClassConstructor(ht)],vi.prototype,"selectedAnswerVariants"),Is([A.H.Classes.GetClassConstructor(Ri)],vi.prototype,"answerFiles");let Ct=vi;class Su{constructor(e){l(this,"id");l(this,"fieldId");A.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var ku=Object.defineProperty,Eu=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&ku(e,n,s),s};const Rs=class Ja{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");A.H.Classes.BuildClass(this,e)}static GetClassName(){return"formSection"}getN(){return`${this.order+1}`}getFieldN(e){return`${this.getN()}.${e+1}`}getSubFieldN(e,n){return`${this.getFieldN(e)}.${n+1}`}static Create(e){const n=new Ja;return n.id=A.H.Id.UUID(),n.formId=e,n}addField(){const e=kn.Create(this.id);return this.fields.push(e),this.sortFields(),e}sortFields(){this.fields.forEach((e,n)=>e.order=n)}getAnswerVariants(){const e=[];return this.fields.forEach(n=>e.push(...n.answerVariants)),e}};Eu([A.H.Classes.GetClassConstructor(kn)],Rs.prototype,"fields");let En=Rs;var xu=Object.defineProperty,Mu=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&xu(e,n,s),s};const vs=class Qa{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"isLaboratory",!1);l(this,"formSections",[]);l(this,"isEdit",!1);l(this,"withDates",!1);l(this,"withScores",!1);l(this,"selectedForExport",!1);l(this,"filterString","");l(this,"showOnlyNotFilled",!1);l(this,"showOnlyFilled",!1);A.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new Qa;return e.id=A.H.Id.UUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=En.Create(this.id);return this.formSections.push(e),A.H.Sorter.Sort(this.formSections),e}getFields(){const e=this.formSections.map(r=>r.fields).flat(),n=e.map(r=>r.children).flat();return e.concat(n).filter(r=>r.children.length===0)}};Mu([A.H.Classes.GetClassConstructor(En)],vs.prototype,"formSections");let Ns=vs;var Bu=Object.defineProperty,$u=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Bu(e,n,s),s};const As=class Ka{constructor(e){l(this,"id");l(this,"date",new Date);l(this,"editMode",!1);l(this,"userFormId");l(this,"fillingPercentage",0);l(this,"fieldFills",[]);l(this,"num","");l(this,"formId");A.H.Classes.BuildClass(this,e)}static Create(e){const n=new Ka;return n.id=A.H.Id.UUID(),n.formId=e.id,n.fieldFills.push(...Ct.CreateMany(e.getFields(),n.id)),n}addFieldFill(e){this.fieldFills.push(e)}getFieldFill(e){var n;return(n=this.fieldFills)==null?void 0:n.find(r=>r.fieldId===e)}pushRegisterProperty(e){const n=new Ct;n.researchResultId=e,this.fieldFills.push(n)}getRegisterPropertyToPatient(e){return this.fieldFills.filter(n=>n.researchResultId===e)}getOrCreateFieldFill(e){let n=this.getFieldFill(e.id);return n||(n=Ct.Create(e),this.addFieldFill(n)),n}getFileInfos(){const e=[];return this.fieldFills.forEach(n=>e.push(...n.getFileInfos())),e}calculateFilling(){const e=this.fieldFills.filter(r=>r.filled).length,n=this.fieldFills.length;this.fillingPercentage=Math.round(e/n*100)}getFieldFillByFieldId(e){return this.fieldFills.find(n=>n.fieldId===e)}getFieldVariantFieldFill(e){return this.fieldFills.find(n=>n.answerVariantId===e)}getFieldsFieldFillsMap(e){const n={};return e.forEach(r=>{var s;if(r.code){const o=(s=this.getFieldFillByFieldId(r.id))==null?void 0:s.valueNumber;n[r.code]=o}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};$u([A.H.Classes.GetClassConstructor(Ct)],As.prototype,"fieldFills");let zs=As;const Iu=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:dt,Field:kn,FieldExample:$s,FieldFill:Ct,FieldFillFile:Ri,FieldFilter:Su,FieldMeasure:Ii,FieldVariant:bt,Form:Ns,FormFill:zs,FormSection:En,SelectedAnswerVariant:ht},Symbol.toStringTag,{value:"Module"}));let Ru=class extends Y{constructor(){super(dt,"answer-variants")}};const vu=new Ru;let Nu=class extends Y{constructor(){super(Ct,"field-fills")}};const Au=new Nu;let zu=class extends Y{constructor(){super(kn,"fields")}};const Pu=new zu;let Vu=class extends Y{constructor(){super(zs,"form-fills")}};const Tu=new Vu;let Fu=class extends Y{constructor(){super(En,"form-sections")}};const Ou=new Fu;let Du=class extends Y{constructor(){super(Ns,"forms")}};const Lu=new Du;let Hu=class extends Y{constructor(){super(ht,"selected-answer-variants")}};const qu=new Hu,Uu=Object.freeze(Object.defineProperty({__proto__:null,C:Iu,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:vu,FieldFills:Au,Fields:Pu,FormFills:Tu,FormSections:Ou,Forms:Lu,SelectedAnswerVariants:qu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class xn{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"selected",!1);l(this,"hide",!1);l(this,"editMode",!1);l(this,"color","");l(this,"background","");l(this,"order",0);l(this,"menuId");l(this,"iconId");l(this,"icon",new fe);l(this,"iconName","");l(this,"svgCode","");$.BuildClass(this,e)}addFile(e){this.icon.id||(this.icon.id=ee.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}}var _u=Object.defineProperty,ju=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&_u(e,n,s),s};class Ni{constructor(e){l(this,"id");l(this,"name","");l(this,"link","");l(this,"top",!0);l(this,"side",!0);l(this,"show",!1);l(this,"hide",!1);l(this,"active",!1);l(this,"order",0);l(this,"selected",!1);l(this,"editMode",!1);l(this,"subMenus",[]);l(this,"subMenusForDelete",[]);l(this,"iconId");l(this,"icon",new fe);$.BuildClass(this,e)}withoutChildren(){return this.subMenus.length===0}getFileInfos(){const e=[];return e.push(this.icon),this.subMenus.forEach(n=>{e.push(n.icon)}),e}addFile(e){this.icon.id||(this.icon.id=ee.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new xn)}removeSubMenu(e){const n=this.subMenus[e].id;n&&this.subMenusForDelete.push(n),this.subMenus.splice(e,1)}setColorsForSubMenus(){const e=["#00A248","#E63021","#006BB5","#F3911F","#6F6D6B"];let n=0;this.subMenus.forEach(r=>{r.color=e[n],n=e.length-1?n=0:n++})}containPath(e){return this.link===e||!!this.subMenus.find(n=>n.link===e)}static GetClassName(){return"menu"}}ju([$.GetClassConstructor(xn)],Ni.prototype,"subMenus");const Wu=Object.freeze(Object.defineProperty({__proto__:null,Menu:Ni,SubMenu:xn},Symbol.toStringTag,{value:"Module"}));let Gu=class extends A.H.BaseStore{constructor(){super(Ni,"menus")}};const Zu=new Gu;let Xu=class extends A.H.BaseStore{constructor(){super(xn,"sub-menus")}};const Yu=new Xu,Ju=Object.freeze(Object.defineProperty({__proto__:null,C:Wu,S:Object.freeze(Object.defineProperty({__proto__:null,Menus:Zu,SubMenus:Yu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Mn{constructor(e){l(this,"id","");l(this,"name","");l(this,"component","");l(this,"order");l(this,"active",!1);l(this,"key",0);$.BuildClass(this,e)}static Create(e,n,r,s,o){const a=new Mn;return a.id=e,a.name=n,a.component=r,a.order=s,a.active=!!o,a}}var Ps=(t=>(t.User="USER",t.Admin="ADMIN",t))(Ps||{});class Qu{constructor(e){l(this,"id");l(this,"name",Ps.User);l(this,"label","");l(this,"startPage","");$.BuildClass(this,e)}}class Ai{constructor(e){l(this,"id");l(this,"document",new fe);l(this,"documentId");l(this,"pageId");$.BuildClass(this,e)}}var Ku=Object.defineProperty,eh=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&Ku(e,n,s),s};class Bn{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");$.BuildClass(this,e)}}eh([$.GetClassConstructor(fe)],Bn.prototype,"fileInfo");class $n{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new fe);l(this,"scanId");$.BuildClass(this,e)}getFileInfos(){return[this.scan]}getFileName(){return this.name?this.name:this.scan.originalName}}var th=Object.defineProperty,nh=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&th(e,n,s),s};class St{constructor(e){l(this,"id");l(this,"name","");l(this,"singleScan",!1);l(this,"scan");l(this,"scanId");l(this,"order",0);l(this,"description","");l(this,"scans",[]);l(this,"scansForDelete",[]);l(this,"pageSectionDocuments",[]);l(this,"pageSideMenuId");l(this,"pageId");l(this,"text","");l(this,"documents",[]);$.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new $n;e.order=this.pageSectionDocuments.length-1,this.pageSectionDocuments.push(e)}getFileInfos(){const e=[];return this.pageSectionDocuments.forEach(n=>{e.push(...n.getFileInfos())}),e}infoExists(e){const n=j.SearchIn(this.name,e),r=j.SearchIn(this.description,e),s=this.getDocuments(e);return n||r||s.length>0}getDocuments(e){return this.pageSectionDocuments.filter(n=>j.SearchIn(n.name,e))}getDescription(e){return e?j.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=j.SearchIn(this.description,e)?j.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(n=>j.SearchIn(n.name,e))}}nh([$.GetClassConstructor($n)],St.prototype,"pageSectionDocuments");var ih=Object.defineProperty,rh=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&ih(e,n,s),s};class Je{constructor(e){l(this,"id");l(this,"name","Новое меню");l(this,"order",0);l(this,"description","");l(this,"routeAnchor","");l(this,"slug","");l(this,"pageSections",[]);l(this,"showContent",!1);l(this,"pageId");l(this,"selected",!1);l(this,"sections",[]);l(this,"text","");$.BuildClass(this,e),this.sections=this.pageSections,this.text=this.description.replace("<p>undefined</p>","")}getFileInfos(){const e=[];return this.pageSections.forEach(n=>{e.push(...n.getFileInfos())}),e}addPageSection(){const e=new St;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=ee.UUID(),this.pageSections.push(e)}infoExists(e){const n=j.SearchIn(this.name,e),r=j.SearchIn(this.description,e),s=this.getPageSections(e).length>0;return n||r||s}getPageSections(e){return e.length?this.pageSections.filter(n=>n.infoExists(e)):this.pageSections}filter(e){e.length?(this.sections=this.pageSections.filter(n=>n.infoExists(e)),this.text=j.SearchIn(this.description,e)?j.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(n=>n.filter(e))}}rh([$.GetClassConstructor(St)],Je.prototype,"pageSections");var sh=Object.defineProperty,In=(t,e,n,r)=>{for(var s=void 0,o=t.length-1,a;o>=0;o--)(a=t[o])&&(s=a(e,n,s)||s);return s&&sh(e,n,s),s};class kt{constructor(e){l(this,"id");l(this,"title","");l(this,"content","");l(this,"slug","");l(this,"pagesGroup","Без группы");l(this,"link","");l(this,"withComments",!1);l(this,"showContacts",!1);l(this,"collaps",!1);l(this,"showContent",!1);l(this,"pageImages",[]);l(this,"pageImagesForDelete",[]);l(this,"pageImagesNames",[]);l(this,"pageSideMenus",[]);l(this,"menus",[]);l(this,"pageSideMenusForDelete",[]);l(this,"pageSections",[]);l(this,"pageSectionsForDelete",[]);l(this,"pageDocuments",[]);l(this,"contact",new ws);l(this,"contactId");l(this,"role",new Qu);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");$.BuildClass(this,e),this.menus=this.pageSideMenus}getActiveMenu(){const e=this.pageSideMenus.find(n=>n.id===this.activeMenuId);return e||this.pageSideMenus[0]}setActiveMenuId(e){this.activeMenuId=e}getLink(){return this.slug!==""?`/pages/${this.slug}`:"404"}getFileInfos(){const e=[];return this.pageSideMenus.forEach(n=>{e.push(...n.getFileInfos())}),this.pageImages.forEach(n=>{n.fileInfo&&e.push(n.fileInfo)}),e}addSideMenu(){const e=new Je;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=ee.UUID(),this.pageSideMenus.push(e),e.id}selectSideMenu(e,n){if(!e&&this.pageSideMenus.length>0){this.pageSideMenus[0].selected=!0;return}this.pageSideMenus.forEach(r=>{n?r.selected=r.id===e:r.selected=r.slug===e})}getSelectedSideMenu(){const e=this.pageSideMenus.find(n=>n.selected);return e||new Je}addCustomSectionsToSideMenu(e){e.forEach(n=>{const r=new Je;r.id=n.id,r.name=n.name,typeof n.order<"u"?this.pageSideMenus.splice(n.order,0,r):this.pageSideMenus.push(r)})}getPageSideMenus(){if(this.showContacts&&!this.pageSideMenus.find(e=>e.id==="contacts")){const e=new Je;e.id="contacts",e.name="Контакты",this.pageSideMenus.push(e)}return this.filterStr===""?this.pageSideMenus:this.pageSideMenus.filter(e=>e.infoExists(this.filterStr))}filter(){this.filterStr===""?this.menus=this.pageSideMenus:this.menus=this.pageSideMenus.filter(e=>e.infoExists(this.filterStr)),this.menus.forEach(e=>e.filter(this.filterStr))}static GetClassName(){return"page"}}In([$.GetClassConstructor(Bn)],kt.prototype,"pageImages"),In([$.GetClassConstructor(Je)],kt.prototype,"pageSideMenus"),In([$.GetClassConstructor(St)],kt.prototype,"pageSections"),In([$.GetClassConstructor(Ai)],kt.prototype,"pageDocuments");const oh=Object.freeze(Object.defineProperty({__proto__:null,CustomSection:Mn,Page:kt,PageDocument:Ai,PageImage:Bn,PageSection:St,PageSectionDocument:$n,PageSideMenu:Je},Symbol.toStringTag,{value:"Module"}));let ah=class extends A.H.BaseStore{constructor(){super(Mn,"custom-sections")}};const lh=new ah;let ch=class extends A.H.BaseStore{constructor(){super(Ai,"page-documents")}};const dh=new ch;let uh=class extends A.H.BaseStore{constructor(){super(Bn,"page-images")}};const hh=new uh;let fh=class extends A.H.BaseStore{constructor(){super($n,"page-section-documents")}};const mh=new fh;let ph=class extends A.H.BaseStore{constructor(){super(St,"page-sections")}};const gh=new ph;let yh=class extends A.H.BaseStore{constructor(){super(Je,"page-side-menus")}};const wh=new yh;let bh=class extends A.H.BaseStore{constructor(){super(kt,"pages")}};const Ch=new bh,Sh=Object.freeze(Object.defineProperty({__proto__:null,C:oh,S:Object.freeze(Object.defineProperty({__proto__:null,CustomSections:lh,PageDocuments:dh,PageImages:hh,PageSectionDocuments:mh,PageSections:gh,PageSideMenus:wh,Pages:Ch},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Rn{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");A.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new Rn;return r.id=A.H.Id.UUID(),r.name=e,r.label=n,r}}const kh=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:Rn},Symbol.toStringTag,{value:"Module"}));let Eh=class extends Y{constructor(){super(Rn,"color-themes")}};const xh=new Eh,Mh=Object.freeze(Object.defineProperty({__proto__:null,Docs:wu,Forms:Uu,Menus:Ju,Pages:Sh,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:kh,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:xh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Bh extends Jt{constructor(){super(...arguments);l(this,"label","Логин");l(this,"name","login");l(this,"validator",new fr);l(this,"method",mt.Login);l(this,"id","field-auth-login")}}const $h="p-button",Ih=i.defineComponent({inheritAttrs:!1,__name:"PButton",props:{text:{type:String,default:"",required:!1},margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},skin:{type:String,default:"base",required:!1},size:{type:String,default:Bi.M,required:!1},type:{type:String,default:ce.Primary,required:!1},fontSize:{type:String,default:"",required:!1}},emits:["click"],setup(t,{emit:e}){const n=t,r=e,s=()=>{r("click")},o=i.computed(()=>j.JoinSnake($h,n.skin)),a=i.computed(()=>j.JoinSnake(o.value,n.type)),d=i.computed(()=>j.JoinSnake(o.value,n.size)),c=i.computed(()=>[o.value,a.value,d.value]);return(u,h)=>(i.openBlock(),i.createElementBlock("button",i.mergeProps(u.$attrs,{style:{margin:t.margin,padding:t.padding,maxWidth:t.width,minWidth:t.width,minHeight:t.height,maxHeight:t.height,fontSize:t.fontSize},class:i.unref(c),onClick:i.withModifiers(s,["prevent"])}),[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createTextVNode(" "+i.toDisplayString(t.text),1)],16))}}),vn=E(Ih,[["__scopeId","data-v-814c9b41"]]),zi=E(i.defineComponent({__name:"IconCheckDefault",props:{size:{type:String,default:"22px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#check_on"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"check_on",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M29.3678 7.25259C29.2732 7.3128 28.8775 7.6999 28.5076 8.13001C27.7076 9.02463 16.2409 22.0483 16.2065 22.0999C16.1549 22.1601 15.6732 21.73 13.9786 20.1042C8.31835 14.6934 8.5334 14.8827 8.03448 14.8827C7.69899 14.8827 7.59577 14.9257 7.3463 15.1752C7.09684 15.4246 7.05383 15.5279 7.05383 15.8547C7.05383 16.3365 6.98501 16.259 10.1506 19.2354C11.5011 20.4999 13.256 22.1601 14.056 22.9171C15.6302 24.4225 15.9485 24.6461 16.3872 24.5687C16.7399 24.4999 16.7743 24.4569 20.0947 20.6891C21.5485 19.0289 23.2689 17.0762 23.914 16.3451C29.4624 10.0655 30.6495 8.69775 30.77 8.48269C30.942 8.14721 30.8474 7.6999 30.5377 7.38162C30.3399 7.19237 30.2194 7.14076 29.9183 7.14076C29.7119 7.14936 29.471 7.19237 29.3678 7.25259Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-48c8e6e2"]]),Rh=["value"],Vs=E(i.defineComponent({__name:"PCheckBox",props:i.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:"14px"},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"22px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:""}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=e,s=()=>{r("change",n.value)};return(o,a)=>(i.openBlock(),i.createElementBlock("div",{id:"some",class:"check-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"check-field__label",style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=d=>n.value=d),class:"check-field__input",type:"checkbox",value:t.value,onChange:s},null,40,Rh),[[i.vModelCheckbox,n.value]]),i.createElementVNode("div",{id:"abc",class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius})},[n.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"check-icon",style:i.normalizeStyle({width:t.size,height:t.size})},[i.createVNode(zi,{margin:"auto",size:t.size},null,8,["size"])],4)):i.createCommentVNode("",!0)],4),i.createTextVNode(" "+i.toDisplayString(t.label),1)],4)],4))}}),[["__scopeId","data-v-85407c13"]]),vh=["for"],Nh={class:"field"},Ah={class:"left-field"},zh=["id","value","name"],Ph={class:"right-field"},Ts=E(i.defineComponent({__name:"PDatePicker",props:i.mergeModels({text:{type:String,default:"",required:!1},label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1}},{modelValue:{required:!0},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),s=a=>{const c=a.target.valueAsDate;c?(r.value=c,n("input",o(r.value))):(r.value=null,n("input",null))},o=a=>a?new Date(a.getTime()-a.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"";return(a,d)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,vh)):i.createCommentVNode("",!0),i.createElementVNode("div",Nh,[i.createElementVNode("div",Ah,[i.renderSlot(a.$slots,"default",{},void 0,!0)]),i.createElementVNode("input",{id:t.label,max:"2100",min:"1900",value:o(r.value),class:"text-field__input",type:"date",name:t.label,onInput:s},null,40,zh),i.createElementVNode("div",Ph,[i.renderSlot(a.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-60c7417a"]]),Fs=E(i.defineComponent({inheritAttrs:!1,__name:"PFlex",props:{margin:{type:String,default:"",required:!1},padding:{type:String,default:"",required:!1},width:{type:String,default:"",required:!1},minWidth:{type:String,default:"",required:!1},maxWidth:{type:String,default:"",required:!1},height:{type:String,default:"",required:!1},justifyContent:{type:String,default:"",required:!1},background:{type:String,default:"",required:!1},alignItems:{type:String,default:"",required:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"flex-line",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,height:t.height,justifyContent:t.justifyContent,background:t.background,alignItems:t.alignItems})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-d9fdfe7d"]]);var Vh=Object.defineProperty,Th=(t,e,n)=>e in t?Vh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ut=(t,e,n)=>Th(t,typeof e!="symbol"?e+"":e,n);const Os={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Ds=(t,e,n)=>t.replaceAll(e,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),Ls=(t,e,n)=>{var r;return new Intl.NumberFormat(((r=n.number)==null?void 0:r.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:e,roundingMode:"trunc"})},Fh=(t,e=!0,n)=>{var r,s,o,a;const d=((r=n.number)==null?void 0:r.unsigned)!==!0&&t.startsWith("-")?"-":"",c=((s=n.number)==null?void 0:s.fraction)??0;let u=Ls(0,c,n);const h=u.formatToParts(1000.12),f=((o=h.find(S=>S.type==="group"))==null?void 0:o.value)??" ",m=((a=h.find(S=>S.type==="decimal"))==null?void 0:a.value)??".",g=Ds(t,f,m);if(Number.isNaN(parseFloat(g)))return d;const C=g.split(".");if(C[1]!=null&&C[1].length>=1){const S=C[1].length<=c?C[1].length:c;u=Ls(S,c,n)}let b=u.format(parseFloat(g));return e?c>0&&g.endsWith(".")&&!g.slice(0,-1).includes(".")&&(b+=m):b=Ds(b,f,m),d+b};let Oh=class{constructor(e={}){Ut(this,"opts",{}),Ut(this,"memo",new Map);const n={...e};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...Os,...n.tokens};for(const r of Object.values(n.tokens))typeof r.pattern=="string"&&(r.pattern=new RegExp(r.pattern))}else n.tokens=Os;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((r,s)=>r.length-s.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(e){return this.process(e,this.findMask(e))}unmasked(e){return this.process(e,this.findMask(e),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(e){const n=this.findMask(e);if(this.opts.mask==null||n==null)return!1;const r=this.process(e,n).length;return typeof this.opts.mask=="string"?r>=this.opts.mask.length:r>=n.length}findMask(e){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(e);const r=this.process(e,n.slice(-1).pop()??"",!1);return n.find(s=>this.process(e,s,!1).length>=r.length)??""}escapeMask(e){const n=[],r=[];return e.split("").forEach((s,o)=>{s==="!"&&e[o-1]!=="!"?r.push(o-r.length):n.push(s)}),{mask:n.join(""),escaped:r}}process(e,n,r=!0){if(this.opts.number!=null)return Fh(e,r,this.opts);if(n==null)return e;const s=`v=${e},mr=${n},m=${r?1:0}`;if(this.memo.has(s))return this.memo.get(s);const{mask:o,escaped:a}=this.escapeMask(n),d=[],c=this.opts.tokens!=null?this.opts.tokens:{},u=this.isReversed()?-1:1,h=this.isReversed()?"unshift":"push",f=this.isReversed()?0:o.length-1,m=this.isReversed()?()=>S>-1&&I>-1:()=>S<o.length&&I<e.length,g=P=>!this.isReversed()&&P<=f||this.isReversed()&&P>=f;let C,b=-1,S=this.isReversed()?o.length-1:0,I=this.isReversed()?e.length-1:0,O=!1;for(;m();){const P=o.charAt(S),v=c[P],H=(v==null?void 0:v.transform)!=null?v.transform(e.charAt(I)):e.charAt(I);if(!a.includes(S)&&v!=null?(H.match(v.pattern)!=null?(d[h](H),v.repeated?(b===-1?b=S:S===f&&S!==b&&(S=b-u),f===b&&(S-=u)):v.multiple&&(O=!0,S-=u),S+=u):v.multiple?O&&(S+=u,I-=u,O=!1):H===C?C=void 0:v.optional&&(S+=u,I-=u),I+=u):(r&&!this.isEager()&&d[h](P),H===P&&!this.isEager()?I+=u:C=P,this.isEager()||(S+=u)),this.isEager())for(;g(S)&&(c[o.charAt(S)]==null||a.includes(S));){if(r){if(d[h](o.charAt(S)),e.charAt(I)===o.charAt(S)){S+=u,I+=u;continue}}else o.charAt(S)===e.charAt(I)&&(I+=u);S+=u}}return this.memo.set(s,d.join("")),this.memo.get(s)}};const Hs=t=>JSON.parse(t.replaceAll("'",'"')),Dh=(t,e={})=>{const n={...e};t.dataset.maska!=null&&t.dataset.maska!==""&&(n.mask=Lh(t.dataset.maska)),t.dataset.maskaEager!=null&&(n.eager=Nn(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(n.reversed=Nn(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(n.tokensReplace=Nn(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(n.tokens=Hh(t.dataset.maskaTokens));const r={};return t.dataset.maskaNumberLocale!=null&&(r.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(r.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(r.unsigned=Nn(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(r).length>0)&&(n.number=r),n},Nn=t=>t!==""?!!JSON.parse(t):!0,Lh=t=>t.startsWith("[")&&t.endsWith("]")?Hs(t):t,Hh=t=>{if(t.startsWith("{")&&t.endsWith("}"))return Hs(t);const e={};return t.split("|").forEach(n=>{const r=n.split(":");e[r[0]]={pattern:new RegExp(r[1]),optional:r[2]==="optional",multiple:r[2]==="multiple",repeated:r[2]==="repeated"}}),e};let qh=class{constructor(e,n={}){Ut(this,"items",new Map),Ut(this,"eventAbortController"),Ut(this,"onInput",r=>{if(r instanceof CustomEvent&&r.type==="input"&&!r.isTrusted&&!r.bubbles)return;const s=r.target,o=this.items.get(s),a="inputType"in r&&r.inputType.startsWith("delete"),d=o.isEager(),c=a&&d&&o.unmasked(s.value)===""?"":s.value;this.fixCursor(s,a,()=>this.setValue(s,c))}),this.options=n,this.eventAbortController=new AbortController,this.init(this.getInputs(e))}update(e={}){this.options={...e},this.init(Array.from(this.items.keys()))}updateValue(e){e.value!==""&&e.value!==this.processInput(e).masked&&this.setValue(e,e.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(e){const n=this.getOptions(this.options);for(const r of e){if(!this.items.has(r)){const{signal:o}=this.eventAbortController;r.addEventListener("input",this.onInput,{capture:!0,signal:o})}const s=new Oh(Dh(r,n));this.items.set(r,s),queueMicrotask(()=>this.updateValue(r)),r.selectionStart===null&&s.isEager()&&console.warn("Maska: input of `%s` type is not supported",r.type)}}getInputs(e){return typeof e=="string"?Array.from(document.querySelectorAll(e)):"length"in e?Array.from(e):[e]}getOptions(e){const{onMaska:n,preProcess:r,postProcess:s,...o}=e;return o}fixCursor(e,n,r){const s=e.selectionStart,o=e.value;if(r(),s===null||s===o.length&&!n)return;const a=e.value,d=o.slice(0,s),c=a.slice(0,s),u=this.processInput(e,d).unmasked,h=this.processInput(e,c).unmasked;let f=s;d!==c&&(f+=n?a.length-o.length:u.length-h.length),e.setSelectionRange(f,f)}setValue(e,n){const r=this.processInput(e,n);e.value=r.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(s=>s(r)):this.options.onMaska(r)),e.dispatchEvent(new CustomEvent("maska",{detail:r})),e.dispatchEvent(new CustomEvent("input",{detail:r.masked}))}processInput(e,n){const r=this.items.get(e);let s=n??e.value;this.options.preProcess!=null&&(s=this.options.preProcess(s));let o=r.masked(s);return this.options.postProcess!=null&&(o=this.options.postProcess(o)),{masked:o,unmasked:r.unmasked(s),completed:r.completed(s)}}};const Pi=new WeakMap,Uh=(t,e)=>{if(t.arg==null||t.instance==null)return;const n="setup"in t.instance.$.type;t.arg in t.instance?t.instance[t.arg]=e:n&&console.warn("Maska: please expose `%s` using defineExpose",t.arg)},qs=(t,e)=>{var n;const r=t instanceof HTMLInputElement?t:t.querySelector("input");if(r==null||(r==null?void 0:r.type)==="file")return;let s={};if(e.value!=null&&(s=typeof e.value=="string"?{mask:e.value}:{...e.value}),e.arg!=null){const o=a=>{const d=e.modifiers.unmasked?a.unmasked:e.modifiers.completed?a.completed:a.masked;Uh(e,d)};s.onMaska=s.onMaska==null?o:Array.isArray(s.onMaska)?[...s.onMaska,o]:[s.onMaska,o]}Pi.has(r)?(n=Pi.get(r))==null||n.update(s):Pi.set(r,new qh(r,s))},_h=["for"],jh={class:"left-field"},Wh=["disabled"],Gh={class:"right-field"},An=E(i.defineComponent({__name:"PInput",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),s=o=>{o.inputType==="insertText"&&(console.log(o.inputType),n("input",r.value))};return(o,a)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,_h)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor,background:t.disabled?"#F5F5F5":"var(--input-background)"})},[i.createElementVNode("div",jh,[i.renderSlot(o.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("input",i.mergeProps({ref:"input"},o.$attrs,{"onUpdate:modelValue":a[0]||(a[0]=d=>r.value=d),class:"text-field__input",style:{color:t.color},disabled:t.disabled,onBlur:a[1]||(a[1]=d=>o.$emit("blur",r.value)),onInput:s}),null,16,Wh),[[i.vModelDynamic,r.value],[i.unref(qs),t.mask]]),i.createElementVNode("div",Gh,[i.renderSlot(o.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-054fd088"]]),Us=i.defineComponent({__name:"PInputDate",props:i.mergeModels({placeholder:{type:String,default:"Укажите дату"},width:{type:String,required:!1,default:"auto"},margin:{type:String,required:!1,default:""},label:{type:String,default:"",required:!1}},{modelValue:{default:new Date},modelModifiers:{}}),emits:i.mergeModels(["update:modelValue","change","beforeChange"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=i.useModel(t,"modelValue"),s=Te.Format(r.value),o=i.ref(s),a=c=>{if(!d(c))return;const u=Te.FromRuStr(c);r.value=u,n("beforeChange",u),n("change",u)},d=c=>c.length!=10?(o.value=s,ye.Error("Неверный формат даты"),!1):Number(o.value.slice(0,2))>31?(o.value=s,ye.Error("Неверный день месяца"),!1):Number(o.value.slice(3,5))>12?(o.value=s,ye.Error("Неверный месяц"),!1):Number(o.value.slice(6,10))>2100?(o.value=s,ye.Error("Неверный год"),!1):!0;return(c,u)=>{const h=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock("div",{class:"style-container",style:i.normalizeStyle({width:t.width,position:"relative"})},[i.createVNode(h,{modelValue:i.unref(o),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(o)?o.value=f:null),mask:"##.##.####",placeholder:t.placeholder,margin:t.margin,label:t.label,onBlur:a,onKeydown:i.withKeys(i.withModifiers(f=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),Zh=["for"],Xh={class:"number"},Yh=["disabled"],Jh=i.defineComponent({__name:"PInputNumber",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,default:"",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},disabled:{type:Boolean,required:!1,default:!1},max:{type:Number,default:Number.MAX_VALUE,required:!1},min:{type:Number,default:Number.NEGATIVE_INFINITY,required:!1},step:{type:Number,default:1,required:!1}},{modelValue:{default:0},modelModifiers:{}}),emits:i.mergeModels(["blur","input","change"],["update:modelValue"]),setup(t,{emit:e}){const n=e,r=t,s=()=>{const b=r.step.toString();return b.includes(".")?b.split(".")[1].length:0},o=s(),a=i.useModel(t,"modelValue"),d=i.ref(a.value.toFixed(s())),c=b=>{const S=Math.pow(10,o);return Math.round(b*S)/S},u=(b,...S)=>{a.value=c(b),d.value=c(b).toFixed(s()),S.forEach(I=>n(I,a.value))},h=(b,...S)=>{u(b,...S)},f=()=>h(+d.value+r.step,"change"),m=()=>h(+d.value-r.step,"change"),g=()=>h(+d.value,"input"),C=()=>h(+d.value,"change","blur");return(b,S)=>{const I=i.resolveComponent("IconMinus"),O=i.resolveComponent("IconPlus");return i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Zh)):i.createCommentVNode("",!0),i.createElementVNode("div",Xh,[i.createElementVNode("button",{class:"number-minus",type:"button",onClick:m},[i.createElementVNode("div",{class:i.normalizeClass(t.disabled||a.value<=t.min?"icon-minus-disabled":"icon-minus")},[i.createVNode(I)],2)]),i.withDirectives(i.createElementVNode("input",i.mergeProps(b.$attrs,{"onUpdate:modelValue":S[0]||(S[0]=P=>i.isRef(d)?d.value=P:null),class:"input-field",type:"number",disabled:t.disabled,style:{color:t.disabled?"#828587":t.color,background:t.disabled?"var(--input-readonly-background)":""},onBlur:C,onInput:i.withModifiers(g,["stop"])}),null,16,Yh),[[i.vModelText,i.unref(d),void 0,{lazy:!0}]]),i.createElementVNode("button",{class:"number-plus",style:i.normalizeStyle({transform:t.disabled?"none":"transform: scale(1.2, 1.2)"}),type:"button",onClick:f},[i.createElementVNode("div",{class:i.normalizeClass(t.disabled||a.value>=t.max?"icon-plus-disabled":"icon-plus")},[i.createVNode(O)],2)],4)])],4)}}}),_s=E(Jh,[["__scopeId","data-v-807eb4e2"]]),js=E(i.defineComponent({__name:"PLeftSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть меню"},titleClose:{type:String,required:!1,default:"Показать меню"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.open);i.watch(()=>n.open,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("open",a)};return(a,d)=>{const c=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.shift?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({minWidth:t.widthClosed,maxWidth:t.widthClosed,height:t.height})},null,4)),i.createElementVNode("div",{class:"LS-body",style:i.normalizeStyle({marginLeft:i.unref(s)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute",background:t.background,height:t.height})},[i.createElementVNode("div",{class:"LS-content",style:i.normalizeStyle({width:`calc(100% - ${t.widthClosed})`,height:t.height,background:"#ffffff"})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed,height:t.height}),onClick:d[0]||(d[0]=u=>o(!i.unref(s)))},[i.unref(s)?(i.openBlock(),i.createBlock(c,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4)],4)],64)}}}),[["__scopeId","data-v-d68a122a"]]),Ws=E(i.defineComponent({__name:"PList",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"300px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("ul",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-eaa10a96"]]),Gs=E(i.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("li",{style:i.normalizeStyle({margin:t.margin,padding:t.padding,borderBottom:t.showDivider?"1px solid":"none"})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-93410b0d"]]),Qh=["for"],Kh=["id","name","checked","value"],Zs=E(i.defineComponent({__name:"PRadio",props:i.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:"14px"},size:{type:String,default:"20px"},borderRadius:{type:String,default:""},padding:{type:String,default:""},margin:{type:String,default:""},width:{type:String,default:"auto"},value:{type:[String,Boolean],default:void 0}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=e,s=t,o=ee.GUID(),a=i.computed(()=>n.value===s.value),d=()=>{r("change",s.value)};return(c,u)=>(i.openBlock(),i.createElementBlock("div",{class:"radio-line",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createElementVNode("label",{class:"radio-field__label",for:i.unref(o),style:i.normalizeStyle({fontSize:t.fontSize})},[i.withDirectives(i.createElementVNode("input",{id:i.unref(o),"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),name:t.name,checked:i.unref(a),class:"radio-field__input",type:"radio",value:t.value},null,8,Kh),[[i.vModelRadio,n.value]]),i.createElementVNode("div",{class:"box",style:i.normalizeStyle({width:t.size,height:t.size,borderRadius:t.borderRadius}),onClick:d},[n.value===t.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"radio-dot",style:i.normalizeStyle({width:`calc(${t.size} - 50%)`,height:`calc(${t.size} - 50%)`})},null,4)):i.createCommentVNode("",!0)],4),i.createElementVNode("span",{onClick:d},i.toDisplayString(t.label),1)],12,Qh)],4))}}),[["__scopeId","data-v-25033aee"]]),Xs=E(i.defineComponent({__name:"PRightSlider",props:{open:{type:Boolean,default:!1},shadow:{type:Boolean,default:!0},border:{type:Boolean,default:!0},shift:{type:Boolean,default:!0},height:{type:String,required:!1,default:"100%"},widthClosed:{type:String,required:!1,default:"30px"},widthOpened:{type:String,required:!1,default:"300px"},titleOpen:{type:String,required:!1,default:"Скрыть"},titleClose:{type:String,required:!1,default:"Показать"},background:{type:String,required:!1,default:"inherit"}},emits:["open"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.open);i.watch(()=>n.open,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("open",a)};return(a,d)=>{const c=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",{class:"wrapper",style:i.normalizeStyle({maxHeight:t.height,height:t.height})},[i.createElementVNode("div",{class:"content",style:i.normalizeStyle({paddingRight:t.shift?"0":`${t.widthClosed}`})},[i.renderSlot(a.$slots,"content",{},void 0,!0)],4),i.createElementVNode("div",{class:"RS-body",style:i.normalizeStyle({marginRight:i.unref(s)?"0":`calc(${t.widthClosed} - ${t.widthOpened})`,minWidth:t.widthOpened,maxWidth:t.widthOpened,boxShadow:t.shadow?"-5px 0 5px -3px rgba(0,0,0,0.3)":"none",position:t.shift?"relative":"absolute"})},[i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({width:t.widthClosed,height:t.height}),onClick:d[0]||(d[0]=u=>o(!i.unref(s)))},[i.unref(s)?(i.openBlock(),i.createBlock(c,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))],4),i.createElementVNode("div",{class:"RS-content",style:i.normalizeStyle({width:`calc(${t.widthOpened} - ${t.widthClosed} - 2px)`,background:t.background,height:t.height})},[i.renderSlot(a.$slots,"default",{},void 0,!0)],4)],4)],4)}}}),[["__scopeId","data-v-45d26c84"]]),zn=E(i.defineComponent({__name:"IconClose",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#close"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"close",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},[i.createElementVNode("path",{d:"M7.53508 7.18138C7.03684 7.5158 6.86132 8.14496 7.1161 8.66643C7.18971 8.8138 8.02201 9.69236 9.44881 11.1207C10.6718 12.345 11.8211 13.49 12.0023 13.6714L12.3251 14.0058L9.80551 16.5224C7.92576 18.4043 7.25199 19.1184 7.14441 19.3225C6.83867 19.9346 7.0425 20.5865 7.637 20.8926C7.89745 21.0286 8.41268 21.0343 8.6618 20.9096C8.76372 20.8585 10.0037 19.6626 11.4191 18.2455L14.001 15.6666L16.5432 18.2229C18.1964 19.8723 19.1703 20.8132 19.3232 20.8869C19.5779 21.0116 20.0309 21.0399 20.2913 20.9379C20.5178 20.8529 20.8632 20.5015 20.9368 20.2747C21.0274 19.9913 21.0161 19.5719 20.9028 19.3508C20.8519 19.2431 19.6516 17.9961 18.2361 16.5791L15.6656 14.0001L18.2191 11.4495C19.7138 9.95309 20.8179 8.80813 20.8858 8.6721C21.0104 8.42837 21.0387 7.98058 20.9425 7.73119C20.8519 7.50446 20.5971 7.23239 20.3593 7.11336C20.0988 6.97733 19.6516 6.96599 19.3628 7.08502C19.2212 7.14737 18.3097 8.01459 16.5771 9.74904L14.001 12.328L11.4191 9.75471C9.6583 7.99192 8.77504 7.14737 8.63349 7.08502C8.51459 7.03968 8.28246 7 8.1126 7C7.86347 7 7.76156 7.03401 7.53508 7.18138Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-cbcad2a0"]]),Vi=E(i.defineComponent({__name:"IconSelectArrow",props:{size:{type:String,default:"20px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-down",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 20"},[i.createElementVNode("path",{d:"M3.08417 4.43062C2.86268 4.4769 2.70731 4.56285 2.52549 4.74467C2.29408 4.97607 2.20152 5.2174 2.22136 5.55459C2.25111 6.0207 1.96681 5.70996 6.78995 10.5397C9.18995 12.9463 11.2263 14.9662 11.309 15.029C11.5238 15.1843 11.7123 15.2471 11.99 15.2505C12.4693 15.2538 12.109 15.581 17.1106 10.5728C22.0891 5.58764 21.7288 5.98103 21.7255 5.505C21.7255 5.37607 21.7023 5.21078 21.6726 5.13145C21.5106 4.68186 21.0511 4.38434 20.5817 4.4174C20.1519 4.44715 20.4263 4.19591 16.0164 8.60252L11.9833 12.629L8.06598 8.71161C5.91061 6.55624 4.0726 4.73475 3.98003 4.66202C3.71227 4.45376 3.38499 4.36781 3.08417 4.43062Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M9.69602 16.8994C9.70593 16.9292 9.72577 17.0184 9.73569 17.1044C9.76213 17.2664 9.7985 17.2994 9.83486 17.1903C9.84478 17.154 9.89106 17.1143 9.93734 17.1044C10.0464 17.078 10.0365 17.0548 9.87453 16.9589C9.6861 16.8465 9.67288 16.8432 9.69602 16.8994Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-4d8b581f"]]),ef=["for"],tf={class:"field"},nf={class:"left-field"},rf={class:"arrow"},sf={selected:"",hidden:""},of={class:"right-field"},Ti=E(i.defineComponent({inheritAttrs:!1,__name:"PSelect",props:i.mergeModels({label:{type:String,default:"",required:!1},placeholder:{type:String,default:"",required:!1},value:{type:String,default:"",required:!1},readonly:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1},margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},clearable:{type:Boolean,required:!1,default:!0},width:{type:String,required:!1,default:""},borderColor:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""},inPadding:{type:String,required:!1,default:"var(--select-internal-padding)"}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=i.ref(!0),s=e,o=i.ref(!1),a=()=>{r.value=!1,s("change",n.value)},d=()=>{n.value=void 0,s("clear",void 0),s("change",void 0),r.value=!0};return(c,u)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,ef)):i.createCommentVNode("",!0),i.createElementVNode("div",tf,[i.createElementVNode("div",nf,[i.renderSlot(c.$slots,"left",{},void 0,!0)]),i.createElementVNode("div",{class:"sl",onMouseover:u[1]||(u[1]=h=>o.value=!0),onMouseleave:u[2]||(u[2]=h=>o.value=!1)},[t.clearable?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:0,class:"clear",onClick:d},[i.createVNode(zn,{margin:"0"})],512)),[[i.vShow,i.unref(o)]]):i.createCommentVNode("",!0),i.createElementVNode("div",rf,[i.createVNode(Vi,{margin:"2px 2px 0 0"})]),i.withDirectives(i.createElementVNode("select",i.mergeProps(c.$attrs,{"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),class:"text-field__input",style:{padding:t.inPadding},onChange:a}),[i.createElementVNode("option",sf,i.toDisplayString(t.placeholder),1),i.renderSlot(c.$slots,"default",{},void 0,!0)],16),[[i.vModelSelect,n.value]])],32),i.createElementVNode("div",of,[i.renderSlot(c.$slots,"right",{},void 0,!0)])])],4))}}),[["__scopeId","data-v-0a8feca7"]]),Ys=E(i.defineComponent({__name:"PSticky",props:{shadow:{type:Boolean,default:!1},zIndex:{type:Number,default:0},background:{type:String,default:"inherit"},padding:{type:String,default:"0"},top:{type:String,default:"0"},divider:{type:Boolean,default:!1},dividerColor:{type:String,default:"var(--border-color-default)"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"sticky-block",style:i.normalizeStyle({zIndex:1+t.zIndex,top:t.top,background:t.background,padding:t.padding,boxShadow:t.shadow?"0 0 5px 2px rgba(0,0,0,0.3)":"none",borderBottom:t.divider?"1px solid":"none",borderColor:t.dividerColor})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-832b5223"]]),af=["innerHTML"],lf={key:1},Fi=E(i.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"var(--font-color)"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"},fontWeight:{type:String,required:!1,default:""},background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},justifyContent:{type:String,required:!1,default:"center"},isHtml:{type:Boolean,required:!1,default:!1}},emits:["click"],setup(t){const e=t,n={color:e.color,fontSize:e.fontSize,fontWeight:e.fontWeight,background:e.background,padding:e.padding,width:e.width,maxWidth:e.width,minWidth:e.minWidth,margin:e.margin,justifyContent:e.justifyContent};return(r,s)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:s[0]||(s[0]=o=>r.$emit("click"))},[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,af)):(i.openBlock(),i.createElementBlock("span",lf,i.toDisplayString(t.string),1))],2))}}),[["__scopeId","data-v-98febd87"]]),Js=i.defineComponent({__name:"PTable",props:{margin:{type:String,required:!1,default:"0 0 20px 0"},width:{type:String,required:!1,default:"100%"},fontSize:{type:String,required:!1,default:"var(--font-size-default)"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("table",i.mergeProps(e.$attrs,{style:{width:t.width,margin:t.margin},class:"p-table"}),[i.createElementVNode("thead",null,[i.renderSlot(e.$slots,"thead")]),i.createElementVNode("tbody",null,[i.renderSlot(e.$slots,"tbody")])],16))}}),cf=["for"],df={class:"left-field"},uf={class:"right-field"},Qs=E(i.defineComponent({__name:"PTextarea",props:i.mergeModels({label:{type:String,default:"",required:!1},margin:{type:String,required:!1,default:"0"},padding:{type:String,default:"0",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},resize:{type:String,default:"vertical",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue"),n=t,r=i.computed(()=>({color:n.color,resize:n.resize}));return(s,o)=>(i.openBlock(),i.createElementBlock("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,cf)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",df,[i.renderSlot(s.$slots,"default",{},void 0,!0)]),i.withDirectives(i.createElementVNode("textarea",i.mergeProps({ref:"textarea"},s.$attrs,{"onUpdate:modelValue":o[0]||(o[0]=a=>e.value=a),class:"text-field__input",style:i.unref(r),onBlur:o[1]||(o[1]=a=>s.$emit("blur",e.value)),onInput:o[2]||(o[2]=a=>s.$emit("input",e.value))}),null,16),[[i.vModelText,e.value],[i.unref(qs),t.mask]]),i.createElementVNode("div",uf,[i.renderSlot(s.$slots,"right",{},void 0,!0)])],4)],4))}}),[["__scopeId","data-v-7859dc3a"]]),hf={class:"top-slider-content"},ff={class:"center"},Ks=E(i.defineComponent({__name:"PTopSlider",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},open:{type:Boolean,default:!1}},emits:["open"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.open);i.watch(()=>n.open,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("open",a)};return(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=i.withModifiers(c=>s.value=!0,["prevent"])),d[1]||(d[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(s)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:d[3]||(d[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",hf,[i.createElementVNode("div",ff,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:d[2]||(d[2]=c=>o(!i.unref(s)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-863b4aff"]]);function eo(t){t.component("PButton",vn),t.component("PCheckBox",Vs),t.component("PDatePicker",Ts),t.component("PFlex",Fs),t.component("PInput",An),t.component("PInputDate",Us),t.component("PInputNumber",_s),t.component("PLeftSlider",js),t.component("PList",Ws),t.component("PListItem",Gs),t.component("PRadio",Zs),t.component("PRightSlider",Xs),t.component("PSelect",Ti),t.component("PSticky",Ys),t.component("PString",Fi),t.component("PTextarea",Qs),t.component("PTopSlider",Ks),t.component("PTable",Js)}const mf=Object.freeze(Object.defineProperty({__proto__:null,PButton:vn,PCheckBox:Vs,PDatePicker:Ts,PFlex:Fs,PInput:An,PInputDate:Us,PInputNumber:_s,PLeftSlider:js,PList:Ws,PListItem:Gs,PRadio:Zs,PRightSlider:Xs,PSelect:Ti,PSticky:Ys,PString:Fi,PTable:Js,PTextarea:Qs,PTopSlider:Ks,default:eo},Symbol.toStringTag,{value:"Module"})),pf={key:0,class:"mainblock"},gf={class:"mainblock-right"},yf={class:"body"},to=E(i.defineComponent({__name:"AdaptiveContainer",props:{menuWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"}},setup(t){const e=t,n=i.ref(!1),r=i.ref(!0),s=i.ref(window.matchMedia("(max-width: 1330px)").matches),o=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",pf,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(s)?"100%":t.menuWidth,maxWidth:i.unref(s)?"100%":t.menuWidth,marginLeft:i.unref(s)?"-110%":"0",position:i.unref(s)?"fixed":"relative",top:i.unref(s)?"140px":""})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(s)?"auto":t.menuWidth,boxShadow:i.unref(s)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!i.unref(r)&&i.unref(s)?"110%":"0",borderTopLeftRadius:i.unref(s)?"0":"",borderBottomLeftRadius:i.unref(s)?"0":""}),onClick:d[0]||(d[0]=c=>o())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",gf,[a.$slots.title?(i.openBlock(),i.createElementBlock("div",{key:0,class:"title",style:i.normalizeStyle({display:a.$slots.title?"flex":"none"})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(s)?"flex":"none"}),onClick:d[1]||(d[1]=c=>o())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4)):i.createCommentVNode("",!0),i.createElementVNode("div",yf,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])])):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-52b3d807"]]),wf={class:"mainblock-right"},bf={class:"body"},no=E(i.defineComponent({__name:"AdaptiveContainerHorizontal",props:{menuWidth:{type:String,required:!1,default:"0px"},leftWidth:{type:String,required:!1,default:"0px"},mobileWidth:{type:String,required:!1,default:"1330px"},titleSticky:{type:Boolean,required:!1,default:!1}},setup(t){const e=t,n=i.ref(!1),r=i.ref(!0),s=i.ref(window.matchMedia("(max-width: 1330px)").matches),o=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1024px":return s.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return s.value=window.matchMedia("(max-width: 768px)").matches}return s.value=window.matchMedia("(max-width: 1330px)").matches}),n.value=!0}),(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",{key:0,class:"mainblock",style:i.normalizeStyle({display:i.unref(s)?"block":"flex"})},[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(s)?"100%":t.menuWidth,display:t.leftWidth!=="0px"?"flex":"none",top:i.unref(s)?"58px":"80px"})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(s)?"100%":t.menuWidth,boxShadow:i.unref(s)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!i.unref(r)&&i.unref(s),"0"),overflowX:i.unref(s)?"scroll":"hidden",display:i.unref(s)?"flex":"block",background:i.unref(s)?"#ffffff":"",overflowY:i.unref(s)?"hidden":"auto"}),onClick:d[0]||(d[0]=c=>o())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",wf,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({position:t.titleSticky?"sticky":"relative",top:t.titleSticky?i.unref(s)?"108px":"58px":"0",zIndex:t.titleSticky?"10":""})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(s)?"flex":"none"}),onClick:d[1]||(d[1]=c=>o())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4),i.createElementVNode("div",bf,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),Oi=E(i.defineComponent({__name:"GridContainer",props:{maxWidth:{type:String,required:!1,default:""},width:{type:String,required:!1,default:"100%"},background:{type:String,required:!1,default:"inherit"},gridGap:{type:String,required:!1,default:"10px"},gridTemplateColumns:{type:String,required:!1,default:"repeat(auto-fit, minmax(250px, 1fr))"},gridTemplateRows:{type:String,required:!1,default:"repeat(0 0px)"},margin:{type:String,required:!1,default:"10px 0 0 0"},customClass:{type:String,required:!1,default:""}},setup(t){return i.useCssVars(e=>({d143e9f0:t.maxWidth,b9d56180:t.width,"52bd0ff4":t.background,"1795aeac":t.gridGap,"0cfa7c52":t.gridTemplateColumns,"0c6d2a1f":t.gridTemplateRows,a3ccd918:t.margin})),(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["grid-block",t.customClass])},[i.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-a3c4743c"]]);var We=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(We||{});const Cf={class:"container"},Sf={class:"slide-box"},kf={class:"image"},Ef={class:"image-box"},xf=["id","src","alt"],Mf={class:"link-number"},Bf=["id","onClick"],io=E(i.defineComponent({__name:"CarouselImages",props:{events:{type:Array,required:!0},quantity:{type:Number,default:1,required:!1},animationTime:{type:Number,default:500},height:{type:String,default:"360px"},maxHeight:{type:String,default:"360px"},startActiveGroupIndex:{type:Number,default:0}},emits:["openModalWindow"],setup(t){i.useCssVars(g=>({"582c9d05":n}));const e=t,n=`${e.animationTime}ms`,r=i.ref(e.startActiveGroupIndex),s=i.ref(We.None),o=i.ref(gs(e.events,e.quantity)),a=i.computed(()=>o.value[r.value]);i.onMounted(()=>{});const d=()=>r.value=r.value+1<o.value.length?r.value+1:0,c=()=>r.value=r.value-1<0?o.value.length-1:r.value-1,u=g=>{s.value=g,setTimeout(()=>s.value=We.None,e.animationTime)},h=g=>{g!=r.value&&(u(g<r.value?We.Prev:We.Next),setTimeout(()=>r.value=g,e.animationTime/2))},f=()=>{u(We.Next),setTimeout(d,e.animationTime/2)},m=()=>{u(We.Prev),setTimeout(c,e.animationTime/2)};return(g,C)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",Cf,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:C[0]||(C[0]=i.withModifiers(b=>m(),["stop"]))},C[3]||(C[3]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)]))),i.createElementVNode("div",Sf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(b,S)=>(i.openBlock(),i.createElementBlock("div",{key:S,class:i.normalizeClass({animationnext:i.unref(s)===i.unref(We).Next,animationprev:i.unref(s)===i.unref(We).Prev})},[i.createElementVNode("div",kf,[i.createElementVNode("div",Ef,[i.createElementVNode("img",{id:b.fileInfo.getImageUrl(),style:i.normalizeStyle({height:`calc(${t.height} - 110px)`,maxHeight:`calc(${t.maxHeight} - 110px)`}),src:b.fileInfo.getImageUrl(),alt:b.fileInfo.originalName,onClick:C[1]||(C[1]=I=>g.showImageInFullScreen())},null,12,xf)])])],2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:C[2]||(C[2]=i.withModifiers(b=>f(),["stop"]))},C[4]||(C[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])))]),i.createElementVNode("div",Mf,[i.createVNode(Oi,{"grid-template-columns":"repeat(auto-fit, minmax(26px, 1fr))","grid-gap":"5px",margin:"0"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),(b,S)=>(i.openBlock(),i.createElementBlock("div",{id:S.toString(),key:S,class:"number",style:i.normalizeStyle({background:S.toString()===i.unref(r).toString()?"#9D9D9D":""}),onClick:i.withModifiers(I=>h(S),["stop"])},i.toDisplayString(S+1),13,Bf))),128))]),_:1})])],4))}}),[["__scopeId","data-v-c5b846b9"]]),ro=i.defineComponent({__name:"ContextWindow",props:{x:{type:Number,default:-1},y:{type:Number,default:-1}},emits:["close"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.x),o=i.ref(n.y),a=i.computed(()=>s.value+"px"),d=i.computed(()=>o.value+"px"),c=()=>{r("close")};return(u,h)=>{const f=i.resolveDirective("click-outside");return i.withDirectives((i.openBlock(),i.createElementBlock("div",{class:"context-window",style:i.normalizeStyle({left:i.unref(a),top:i.unref(d)})},[i.renderSlot(u.$slots,"default")],4)),[[f,c]])}}}),$f={class:"date-range"},so=E(i.defineComponent({__name:"DateInputRange",props:{start:{type:Date,default:void 0},end:{type:Date,default:void 0}},emits:["update:start","update:end","setStart","setEnd"],setup(t,{emit:e}){const n=t,r=e;i.watch(()=>[n.start,n.end],()=>{n.start||(s.value=void 0),n.end||(o.value=void 0)});const s=i.ref(n.start),o=i.ref(n.end),a=c=>{s.value=c,!(!n.end||c>n.end)&&(r("update:start",c),r("setStart",c))},d=c=>{o.value=c,!(!n.start||c<n.start)&&(r("update:end",c),r("setEnd",c))};return(c,u)=>{const h=i.resolveComponent("PInputDate");return i.openBlock(),i.createElementBlock("div",$f,[i.createVNode(h,{"model-value":i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(s)?s.value=f:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=i.createTextVNode(" - ")),i.createVNode(h,{"model-value":i.unref(o),"onUpdate:modelValue":u[1]||(u[1]=f=>i.isRef(o)?o.value=f:null),onChange:d},null,8,["model-value"])])}}}),[["__scopeId","data-v-b93b6d46"]]),If=i.defineComponent({name:"DateInputRangeV2"}),Rf={class:"date-range"};function vf(t,e,n,r,s,o){return i.openBlock(),i.createElementBlock("div",Rf,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const oo=E(If,[["render",vf],["__scopeId","data-v-d28c6f33"]]),Nf={class:"drop-item"},Af={key:0,class:"drop-item-list"},ao=E(i.defineComponent({__name:"DropList",props:{name:{type:String,default:"Name"},rolledUp:{type:Boolean,default:!0}},setup(t){const e=t,n=i.ref(e.rolledUp),r=async()=>{n.value=!n.value};return(s,o)=>{const a=i.resolveComponent("PString"),d=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",Nf,[i.createElementVNode("div",{class:"drop-item-name",onClick:o[0]||(o[0]=c=>r())},[i.createVNode(a,{"font-size":"13px","font-weight":"600",string:t.name,"justify-content":"left",width:"auto",margin:"0 5px 0 0",padding:"6px 0",color:"inherit"},null,8,["string"]),i.createElementVNode("div",{style:i.normalizeStyle({transform:i.unref(n)?"":"rotate(-90deg)",display:"flex",alignItems:"center",margin:"0 0 2px 0"})},[i.createVNode(d,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",Af,[i.renderSlot(s.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),lo=E(i.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new ti,required:!0}},emits:["load"],setup(t,{emit:e}){const n=t,r=i.ref(!1),s=e,o=()=>{n.model.setBoolean(r.value),r.value?A.F.FTSP.Get().setF(n.model):A.F.FTSP.Get().removeF(n.model),s("load")};return(a,d)=>{const c=i.resolveComponent("PCheckBox");return i.openBlock(),i.createBlock(c,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=u=>i.isRef(r)?r.value=u:null),label:t.model.label,size:"mini",onChange:o},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-72984c94"]]),co=E(i.defineComponent({__name:"FiltersButtonsSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,r=i.ref(void 0),s=async a=>{_e.Get().replaceF(a,r.value),r.value=a,_e.Get().p.drop()},o=async a=>{await s(a),n("load")};return(a,d)=>{const c=i.resolveComponent("PString"),u=i.resolveComponent("PButton"),h=i.resolveComponent("GridContainer"),f=i.resolveComponent("InfoItem");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(c,{string:t.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),i.createVNode(f,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:i.withCtx(()=>d[0]||(d[0]=[])),default:i.withCtx(()=>[i.createVNode(h,{"max-width":"100%","grid-gap":"7px","grid-template-columns":"repeat(auto-fit, minmax(100%, 1fr))",margin:"0px"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(m,g)=>(i.openBlock(),i.createBlock(u,{key:g,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(i.unref(r)),"toggle-mode":!0,inverse:t.inverse,onClick:C=>o(m.valueEq(i.unref(r))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-586481ea"]]),zf=["value","label"],uo=E(i.defineComponent({__name:"FilterSelect",props:{models:{type:Array,default:()=>[]},defaultLabel:{type:String,default:"Все"},inverse:{type:Boolean,required:!1,default:!1}},emits:["load"],setup(t,{emit:e}){const n=e,r=_e.Get(),s=i.ref(void 0),o=async d=>{r.replaceF(d,s.value),s.value=d},a=async d=>{d?await o(s.value):await o(void 0),n("load")};return(d,c)=>{const u=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(u,{modelValue:i.unref(s),"onUpdate:modelValue":c[0]||(c[0]=h=>i.isRef(s)?s.value=h:null),clearable:i.unref(s),placeholder:t.defaultLabel,onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,value:h,label:h.label},null,8,zf))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ae66df57"]]),ho=E(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-e280d85b"]]),fo=E(i.defineComponent({__name:"GeneralItem",props:{background:{type:String,required:!1,default:"#ffffff"},height:{type:String,required:!1,default:"40px"},width:{type:String,required:!1,default:"auto"},ready:{type:String,required:!1,default:"0%"},padding:{type:String,required:!1,default:"10px"},borderColor:{type:String,required:!1,default:"#343D5C"},margin:{type:String,required:!1,default:"5px"},scale:{type:Boolean,required:!1,default:!0},fontSize:{type:String,required:!1,default:"14px"},withIcon:{type:Boolean,required:!1,default:!1}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock("div",{class:"general-block-item",style:i.normalizeStyle({background:t.background,height:t.height,width:t.width,borderColor:t.borderColor,padding:t.padding,margin:t.margin,transform:t.scale&&i.unref(e)?"scale(1.03, 1.03)":""}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},[i.createElementVNode("div",{class:"green",style:i.normalizeStyle({width:`${t.ready}`})},null,4),i.createElementVNode("div",{class:"general-block-item-title",style:i.normalizeStyle({fontSize:t.fontSize})},[i.renderSlot(n.$slots,"general-item",{},void 0,!0)],4),i.createElementVNode("div",{class:"tools-icon",style:i.normalizeStyle({display:t.withIcon?"flex":"none"})},r[2]||(r[2]=[i.createElementVNode("svg",{class:"icon-del"},[i.createElementVNode("use",{"xlink:href":"#del"})],-1)]),4),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"del",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},[i.createElementVNode("path",{d:"M2.91797 8.75C2.6888 8.75 2.49255 8.66833 2.32922 8.505C2.16589 8.34167 2.08436 8.14556 2.08464 7.91667V2.5H1.66797V1.66667H3.7513V1.25H6.2513V1.66667H8.33464V2.5H7.91797V7.91667C7.91797 8.14583 7.8363 8.34208 7.67297 8.50542C7.50964 8.66875 7.31352 8.75028 7.08464 8.75H2.91797ZM7.08464 2.5H2.91797V7.91667H7.08464V2.5ZM3.7513 7.08333H4.58464V3.33333H3.7513V7.08333ZM5.41797 7.08333H6.2513V3.33333H5.41797V7.08333Z"})])],-1))],36))}}),[["__scopeId","data-v-1056443d"]]),Pf={key:0,class:"blur"},Vf={style:{display:"flex","justify-content":"center"}},mo=E(i.defineComponent({__name:"InfoItem",props:{background:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},width:{type:String,required:!1,default:""},openWidth:{type:String,required:!1,default:"auto"},openHeight:{type:String,required:!1,default:"auto"},maxWidth:{type:String,required:!1,default:""},minWidth:{type:String,required:!1,default:""},margin:{type:String,required:!1,default:""},height:{type:String,required:!1,default:""},withOpenWindow:{type:Boolean,required:!1,default:!0},colorSelected:{type:String,required:!1,default:"#1979CF"},borderColor:{type:String,required:!1,default:"#E3E3E3"},withHover:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},customClass:{type:String,required:!1,default:""},close:{type:Boolean,required:!1,default:!0},baseBoxMargin:{type:String,required:!1,default:""},closeWindowOverflow:{type:String,required:!1,default:""},showSaveDialog:{type:Boolean,required:!1,default:!1}},emits:["click","keyup-enter","after-close"],setup(t,{emit:e}){const n=t,r=e,s=n.customClass!==""?n.customClass:"inside-class",o=i.ref(!1),a=i.ref(!1),d=i.ref(!1),c=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=v=>{v.stopPropagation(),v.key==="Escape"&&(n.showSaveDialog?d.value=!0:a.value=!1)};i.watch(a,async()=>{var v,H;await i.nextTick(),a.value?((H=(v=document.getElementById("info-item-opened-content"))==null?void 0:v.querySelector("input"))==null||H.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&r("after-close")});const h=()=>{r("click"),a.value=!!n.withOpenWindow,c.value!==n.close&&(a.value=!1,c.value=!c.value)},f=i.computed(()=>n.customClass===""?{width:n.width,minHeight:"40px",height:"auto",maxWidth:n.maxWidth,minWidth:n.minWidth,margin:n.baseBoxMargin}:void 0),m=i.computed(()=>a.value&&n.withOpenWindow),g=i.computed(()=>({background:n.background?n.background:void 0,zIndex:m.value?"2":"0",padding:m.value?"0":n.padding,margin:n.margin,width:m.value?n.openWidth:n.width,height:m.value?n.openHeight:n.height,minHeight:"40px",maxWidth:n.maxWidth,minWidth:n.minWidth,borderColor:o.value||a.value?n.colorSelected:n.borderColor,color:o.value?n.colorSelected:"#343E5C",boxShadow:o.value||a.value?`0px 0px 1px 1px ${n.colorSelected}`:"none",alignItems:m.value?"end":"center",cursor:(n.withHover,"pointer")})),C=i.computed(()=>({height:m.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),b=i.computed(()=>({height:m.value?"auto":"0"})),S=i.computed(()=>({color:o.value?n.colorSelected:"#343E5C",fill:o.value?n.colorSelected:"#343E5C",background:n.background})),I=()=>{n.showSaveDialog?d.value=!0:a.value=!1},O=async()=>{await r("keyup-enter"),n.close&&(a.value=!1),d.value=!1},P=()=>{a.value=!1,d.value=!1};return(v,H)=>{const Be=i.resolveComponent("PString"),$e=i.resolveComponent("PButton"),nt=i.resolveComponent("PModal"),It=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",Pf)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(f)),onClick:H[2]||(H[2]=i.withModifiers(jn=>h(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(s)]),style:i.normalizeStyle(i.unref(g)),onMouseenter:H[0]||(H[0]=jn=>t.withHover?o.value=!0:o.value=!1),onMouseleave:H[1]||(H[1]=jn=>o.value=!1)},[i.unref(a)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["close-window",t.customClass]),style:i.normalizeStyle(i.unref(C))},[i.renderSlot(v.$slots,"default",{},void 0,!0)],6)),i.unref(a)?i.withDirectives((i.openBlock(),i.createElementBlock("div",{key:1,id:"info-item-opened-content",class:"open-window",style:i.normalizeStyle(i.unref(b))},[i.renderSlot(v.$slots,"open-inside-content",{},void 0,!0)],4)),[[It,I,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(S))},[i.renderSlot(v.$slots,"title",{},()=>[i.createVNode(Be,{string:t.title,"font-size":"10px",padding:"0 0 0 3px",style:i.normalizeStyle({color:i.unref(o)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),i.createVNode(nt,{show:i.unref(d),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",Vf,[i.createVNode($e,{text:"Не сохранять",onClick:P}),i.createVNode($e,{text:"Сохранять",onClick:O})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),po=E(i.defineComponent({__name:"InfoItemSelectButtons",props:{selected:{type:String,required:!0},title:{type:String,required:!0},list:{type:Array,required:!0}},emits:["select","reset"],setup(t,{emit:e}){const n=i.ref(!1),r=e,s=o=>{n.value=!n.value,r("select",o)};return(o,a)=>{const d=i.resolveComponent("PString"),c=i.resolveComponent("PButton"),u=i.resolveComponent("InfoItem");return i.openBlock(),i.createBlock(u,{close:i.unref(n),title:t.title,"close-window-overflow":"hidden","with-hover":!0,"with-open-window":!0},{"open-inside-content":i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.list,h=>(i.openBlock(),i.createBlock(c,{key:h,type:"admin",color:"blue",text:h,onClick:f=>s(h)},null,8,["text","onClick"]))),128)),i.createVNode(c,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=h=>s(void 0))})]),default:i.withCtx(()=>[i.createVNode(d,{string:t.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),Tf={class:"mainblock"},Ff={class:"mainline"},go=E(i.defineComponent({__name:"LeftRightContainer",props:{leftWidth:{type:String,required:!1,default:"0px"},background:{type:String,required:!1,default:"inherit"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",Tf,[i.createElementVNode("div",Ff,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:t.leftWidth,maxWidth:t.leftWidth,background:t.background,display:t.leftWidth!=="0px"?"block":"none"})},[i.renderSlot(e.$slots,"left",{},void 0,!0)],4),i.createElementVNode("div",{class:"mainblock-right",style:i.normalizeStyle({background:t.background})},[i.renderSlot(e.$slots,"right",{},void 0,!0)],4)])]))}}),[["__scopeId","data-v-42fa7104"]]),Of={class:"message-title"},Df=["innerHTML"],Di=E(i.defineComponent({__name:"MessageBody",props:{title:{type:String,default:"",required:!1},text:{type:String,default:"",required:!1}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",Of,i.toDisplayString(t.title),1),i.createElementVNode("div",{class:"message-text",innerHTML:t.text},null,8,Df)]))}}),[["__scopeId","data-v-4e49e31b"]]),Li=E(i.defineComponent({__name:"IconSearch",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#search"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"search",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M11 19C12.775 18.9996 14.4988 18.4054 15.897 17.312L20.293 21.708L21.707 20.294L17.311 15.898C18.405 14.4997 18.9996 12.7754 19 11C19 6.589 15.411 3 11 3C6.589 3 3 6.589 3 11C3 15.411 6.589 19 11 19ZM11 5C14.309 5 17 7.691 17 11C17 14.309 14.309 17 11 17C7.691 17 5 14.309 5 11C5 7.691 7.691 5 11 5Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-64e76eb7"]]),Lf={class:"search-list"},Hf=["onClick"],Hi=E(i.defineComponent({inheritAttrs:!1,__name:"PAutocomplete",props:{modelValue:{type:String,default:""},searchFunc:{type:Function,default:()=>{}},suggestions:{type:Array,default:[]},width:{type:[Number,String],default:""},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"var(--box-shadow)"}},emits:["select","input"],setup(t,{emit:e}){const n=e,r=t,s=i.ref(r.modelValue),o=i.ref([]);async function a(){n("input",s.value),await d()}async function d(){r.searchFunc&&(o.value=await r.searchFunc(s.value))}async function c(u){s.value="",n("select",u)}return(u,h)=>(i.openBlock(),i.createElementBlock("div",{class:"container",style:i.normalizeStyle({width:t.width})},[i.createVNode(An,{modelValue:i.unref(s),"onUpdate:modelValue":h[0]||(h[0]=f=>i.isRef(s)?s.value=f:null),placeholder:"Найти",onInput:a},{right:i.withCtx(()=>[i.createVNode(Li,{size:"24px"})]),_:1},8,["modelValue"]),i.unref(s)&&i.unref(s).length>=2?(i.openBlock(),i.createElementBlock("div",{key:0,class:"result",style:i.normalizeStyle({maxHeight:t.maxHeightResultList,zIndex:t.zIndexResultList,boxShadow:t.boxShadowResultList})},[i.createElementVNode("ul",Lf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(o),f=>(i.openBlock(),i.createElementBlock("li",{key:f.value,onClick:m=>c(f)},i.toDisplayString(f.label),9,Hf))),128))])],4)):i.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-d02c66ef"]]),qf={class:"footer"},yo=E(i.defineComponent({__name:"PDialog",setup(t){const e=i.computed(()=>{switch(je.GetType()){case"info":return"message primary";case"success":return"message success";case"warning":return"message warning";case"error":return"message danger";default:return"message neutral"}});return(n,r)=>{const s=i.resolveComponent("MessageBody"),o=i.resolveComponent("PButton");return i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[i.unref(je).IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(s,{title:i.unref(je).GetTitle(),text:i.unref(je).GetText()},null,8,["title","text"]),i.createElementVNode("div",qf,[i.createVNode(o,{type:"primary",text:i.unref(je).GetConfirmButtonText(),margin:"10px 0 0 0",onClick:r[0]||(r[0]=a=>i.unref(je).Submit())},null,8,["text"]),i.createVNode(o,{type:"warning",text:i.unref(je).GetCancelButtonText(),margin:"10px 0 0 0",onClick:r[1]||(r[1]=a=>i.unref(je).Cancel())},null,8,["text"])])],2)):i.createCommentVNode("",!0)]),_:1})}}}),[["__scopeId","data-v-aa85ea7a"]]),wo=E(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{};return(r,s)=>{const o=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(o,{modelValue:e.value.number,"onUpdate:modelValue":s[0]||(s[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(o,{modelValue:e.value.description,"onUpdate:modelValue":s[1]||(s[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-51bf3f08"]]),Uf={};function _f(t,e){return i.openBlock(),i.createElementBlock(i.Fragment,null,[e[0]||(e[0]=i.createElementVNode("div",{class:"blur"},null,-1)),e[1]||(e[1]=i.createElementVNode("div",{class:"loader-container"},[i.createElementVNode("div",{class:"loader",style:{"--b":"20px",width:"200px","--n":"10"}})],-1))],64)}const bo=E(Uf,[["render",_f],["__scopeId","data-v-0f1f2f84"]]),jf={style:{display:"flex","justify-content":"center",width:"100%"}},Wf={class:"pag-number"},Gf={class:"pag-ul"},Zf={key:2},Co=E(i.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},emits:["cancel","save"],setup(t,{emit:e}){const n=t,r=m=>m?"active":"neutral",s=m=>m?"not-active":"neutral",o=i.ref(ys),a=i.ref(!1),d=i.ref(!1);o.value.count=n.store.Count.value;const c=async m=>{if(m!==o.value.curPage&&(m<1&&(m=1),m>o.value.pagesCount()&&(m=o.value.pagesCount()),!n.showConfirm))return await u(m)},u=async(m,g)=>{o.value.setCurPage(m),_e.Get().p.offset=(m-1)*o.value.limit,await n.store.FTSP(),f()},h=i.computed(()=>{const m=o.value.pagesCount();return m<8?Ue.GenerateNumsRange(2,m-1).filter(g=>g<m&&g>1):Ue.GenerateNumsRange(o.value.curPage-2,o.value.curPage+3).filter(g=>g<m&&g>1)}),f=()=>{const m=document.querySelector(".el-table__body-wrapper"),g=document.querySelector("#list");m?m.scrollTo({top:0}):g&&g.scrollTo({top:0})};return i.onBeforeUnmount(()=>{_e.Get().p.drop()}),(m,g)=>{const C=i.resolveComponent("ArrowLeft"),b=i.resolveComponent("PButton"),S=i.resolveComponent("DoubleArrowLeft"),I=i.resolveComponent("EllipsisSvg"),O=i.resolveComponent("DoubleArrowRight"),P=i.resolveComponent("ArrowRight");return i.openBlock(),i.createElementBlock("div",jf,[i.createElementVNode("div",{class:"pag-container",style:i.normalizeStyle({justifyContent:t.justifyContent})},[i.createElementVNode("div",Wf,[i.createVNode(b,{skin:"pag",type:s(i.unref(o).curPage===1),onClick:g[0]||(g[0]=v=>c(i.unref(o).curPage-1))},{default:i.withCtx(()=>[i.createVNode(C)]),_:1},8,["type"]),i.createElementVNode("ul",Gf,[i.createElementVNode("li",null,[i.createVNode(b,{skin:"pag",type:r(i.unref(o).curPage===1),text:"1",onClick:g[1]||(g[1]=v=>c(1))},null,8,["type"])]),i.unref(o).pagesCount()>8&&i.unref(o).curPage>4?(i.openBlock(),i.createElementBlock("li",{key:0,onMouseenter:g[3]||(g[3]=v=>a.value=!0),onMouseleave:g[4]||(g[4]=v=>a.value=!1)},[i.createVNode(b,{skin:"pag",type:"neutral",onClick:g[2]||(g[2]=v=>c(i.unref(o).curPage-5))},{default:i.withCtx(()=>[i.unref(a)?(i.openBlock(),i.createBlock(S,{key:0})):(i.openBlock(),i.createBlock(I,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(h),v=>(i.openBlock(),i.createElementBlock("li",{key:v},[i.createVNode(b,{skin:"pag",type:r(v===i.unref(o).curPage),text:v,onClick:H=>c(v)},null,8,["type","text","onClick"])]))),128)),i.unref(o).pagesCount()>=8&&i.unref(o).curPage<i.unref(o).pagesCount()-3?(i.openBlock(),i.createElementBlock("li",{key:1,onMouseenter:g[6]||(g[6]=v=>d.value=!0),onMouseleave:g[7]||(g[7]=v=>d.value=!1)},[i.createVNode(b,{skin:"pag",type:"neutral",onClick:g[5]||(g[5]=v=>c(i.unref(o).curPage+5))},{default:i.withCtx(()=>[i.unref(d)?(i.openBlock(),i.createBlock(O,{key:0})):(i.openBlock(),i.createBlock(I,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),i.unref(o).pagesCount()>1?(i.openBlock(),i.createElementBlock("li",Zf,[i.createVNode(b,{skin:"pag",type:r(i.unref(o).pagesCount()===i.unref(o).curPage),text:i.unref(o).pagesCount(),onClick:g[8]||(g[8]=v=>c(i.unref(o).pagesCount()))},null,8,["type","text"])])):i.createCommentVNode("",!0)]),i.createVNode(b,{skin:"pag",type:s(i.unref(o).curPage===i.unref(o).pagesCount()),onClick:g[9]||(g[9]=v=>c(i.unref(o).curPage+1))},{default:i.withCtx(()=>[i.createVNode(P)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-416e9080"]]),So=E(i.defineComponent({__name:"RemoteSearch",props:{keyValue:{type:String,default:""},modelValue:{type:String,default:""},storeModule:{type:String,default:""},placeholder:{type:String,default:"Начните вводить запрос"},showSuggestions:{type:Boolean,default:!0},width:{type:[Number,String],default:"var(--input-width-default, 100%)"},focus:{type:Boolean,default:!1},maxHeightResultList:{type:String,default:"200px"},zIndexResultList:{type:String,default:"10"},boxShadowResultList:{type:String,default:"rgba(0, 0, 0, 0.35) 0px 5px 5px"}},emits:["select","load","input"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.modelValue),o=i.ref();let a=xi.SearchModel();i.watch(()=>n.focus,()=>{n.focus&&setTimeout(()=>{o.value.focus(),s.value=""},500)});const d=async h=>{if(h.length<2)return;o.value.activated=!0,a=xi.SearchModel(),a.searchObjects=[],a.query=h,a.key=n.keyValue;const f=a.searchGroups.find(m=>m.key===n.keyValue);return f&&(a.searchGroup=f),await xs.Search.Search(a),a.searchObjects},c=async h=>{r("select",h),s.value=""},u=h=>{r("input",h),h.length===0&&r("input","")};return(h,f)=>(i.openBlock(),i.createBlock(Hi,{ref_key:"searchForm",ref:o,modelValue:i.unref(s),"onUpdate:modelValue":f[0]||(f[0]=m=>i.isRef(s)?s.value=m:null),maxHeightResultList:t.maxHeightResultList,zIndexResultList:t.zIndexResultList,boxShadowResultList:t.boxShadowResultList,width:t.width,"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:t.placeholder,"search-func":d,"trigger-on-focus":t.showSuggestions,suggestions:i.unref(a).searchObjects,onSelect:c,onInput:u},null,8,["modelValue","maxHeightResultList","zIndexResultList","boxShadowResultList","width","placeholder","trigger-on-focus","suggestions"]))}}),[["__scopeId","data-v-acf1a4c6"]]),Xf={class:"mainblock-body"},Yf={class:"mainblock-footer"},ko=E(i.defineComponent({__name:"ResearcheContainer",props:{background:{type:String,required:!1,default:"inherit"},padding:{type:String,required:!1,default:"0px 10px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({background:t.background,padding:t.padding})},[i.createElementVNode("div",{class:"mainblock-header",style:i.normalizeStyle({background:t.background})},[i.renderSlot(e.$slots,"header",{},void 0,!0)],4),i.createElementVNode("div",Xf,[i.renderSlot(e.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",Yf,[i.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),Jf={class:"right-slider-content"},Qf={class:"right-slider-content-header"},Kf={class:"right-slider-content-box"},em={class:"right-slider-button"},Eo=E(i.defineComponent({__name:"RightSliderContainer",props:{sliderOffWidth:{type:String,required:!1,default:"30px"},sliderOnWidth:{type:String,required:!1,default:"260px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1},titleOpen:{type:String,required:!1,default:"Скрыть список исследований"},titleClose:{type:String,required:!1,default:"Показать список исследований"}},emits:["toggle"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!1);i.watch(()=>n.toggle,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("toggle",a)};return(a,d)=>{const c=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",{class:"right-slider",style:i.normalizeStyle({marginRight:i.unref(s)?`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`:"0",width:t.sliderOnWidth})},[i.createElementVNode("div",{class:"click-line",onClick:d[0]||(d[0]=u=>o(!i.unref(s)))},[i.unref(s)?(i.openBlock(),i.createBlock(c,{key:0,string:t.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(c,{key:1,string:t.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),i.createElementVNode("div",Jf,[i.createElementVNode("div",Qf,[i.renderSlot(a.$slots,"header",{},void 0,!0)]),i.createElementVNode("div",Kf,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",em,[i.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),tm={class:"mainblock"},nm={class:"body-block"},im={class:"tab-block"},xo=E(i.defineComponent({__name:"RightTabsContainer",props:{sliderOffWidth:{type:String,required:!1,default:"101px"},sliderOnWidth:{type:String,required:!1,default:"332px"},background:{type:String,required:!1,default:"inherit"},isToggle:{type:Boolean,required:!1,default:!1},mobileWidth:{type:String,required:!1,default:"768px"}},emits:["toggle"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!1),o=i.ref(window.matchMedia("(max-width: 768px)").matches),a=c=>{r("toggle",c)},d=i.ref(!1);return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(n.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return o.value=window.matchMedia("(max-width: 1215px)").matches;case"1024px":return o.value=window.matchMedia("(max-width: 1024px)").matches;case"768px":return o.value=window.matchMedia("(max-width: 768px)").matches}return o.value=window.matchMedia("(max-width: 1330px)").matches}),s.value=!0}),(c,u)=>(i.openBlock(),i.createElementBlock("div",tm,[i.createElementVNode("div",{class:"slider-block",style:i.normalizeStyle({marginRight:i.unref(o)?t.isToggle?"49px":`calc(49px - ${t.sliderOnWidth})`:t.isToggle?t.sliderOffWidth:`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`,width:t.sliderOnWidth,minHeight:t.sliderOffWidth,height:t.isToggle?"auto":"100px"})},[i.createElementVNode("div",{class:"slider-icon",style:i.normalizeStyle({border:t.isToggle?"1px solid #379FFF":"1px solid #00B5A4",background:t.isToggle?"#ffffff":"#C7ECEA"}),onClick:u[0]||(u[0]=h=>a(!t.isToggle)),onMouseenter:u[1]||(u[1]=h=>d.value=!0),onMouseleave:u[2]||(u[2]=h=>d.value=!1)},[i.createElementVNode("div",{class:"icon-block",style:i.normalizeStyle({transform:i.unref(d)?t.isToggle?"rotate(-225deg) scale(1.2, 1.2)":"rotate(0deg) scale(1.2, 1.2)":t.isToggle?"rotate(-225deg)":"rotate(0deg)",fill:t.isToggle?"#379FFF":"#00B5A4"})},[i.renderSlot(c.$slots,"icon",{},void 0,!0)],4)],36),i.createElementVNode("div",{class:"slider-info",style:i.normalizeStyle({width:`calc(${t.sliderOnWidth} - ${t.sliderOffWidth})`})},[i.renderSlot(c.$slots,"slider-body",{},void 0,!0)],4)],4),i.createElementVNode("div",nm,[i.renderSlot(c.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",im,[i.renderSlot(c.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),rm=["label","value"],Mo=E(i.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(t,{emit:e}){const n={[ge.String]:"Текстовый ответ",[ge.Text]:"Развёрнутый текстовый ответ",[ge.Number]:"Числовой ответ",[ge.Date]:"Ответ в виде даты",[ge.Radio]:"Выбор одного из вариантов",[ge.Set]:"Выбор нескольких вариантов",[ge.File]:"Ответ в виде файла",[ge.MatrixRadio]:"Матрица с одним выбором",[ge.MatrixSet]:"Матрица с несколькими выборами"},r=e,s=o=>{r("select",o)};return(o,a)=>{const d=i.resolveComponent("PString"),c=i.resolveComponent("PSelect");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(d,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),i.createVNode(c,{"model-value":t.selectedType,placeholder:"Вид ответа",onChange:s},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,(u,h)=>i.createElementVNode("option",{key:u,label:u,value:h},null,8,rm)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),sm=["label","value"],Bo=E(i.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=i.ref(!1),r=e,s=i.ref();i.onBeforeMount(()=>{n.value=!0,s.value=ct.GetDefault()});const o=async d=>{s.value=d??ct.GetDefault(),r("load")},a=async d=>{await o(d)};return(d,c)=>{var h;const u=i.resolveComponent("PSelect");return i.unref(n)?(i.openBlock(),i.createBlock(u,{key:0,modelValue:i.unref(s),"onUpdate:modelValue":c[0]||(c[0]=f=>i.isRef(s)?s.value=f:null),"popper-append-to-body":!1,clearable:!((h=i.unref(s))!=null&&h.default),"value-key":"label",onChange:a,onClear:c[1]||(c[1]=f=>a())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ct).Get(),(f,m)=>(i.openBlock(),i.createElementBlock("option",{key:m,label:f.label,value:f},null,8,sm))),128))]),_:1},8,["modelValue","clearable"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-982338b4"]]),om=["label","value"],$o=E(i.defineComponent({__name:"SortSelect",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=e,r=i.ref();i.onBeforeMount(()=>{r.value=ct.GetDefault()});const s=async a=>{a||(r.value=ct.GetDefault()),_e.Get().setSortModel(r.value),_e.Get().p.drop(),n("load")},o=async a=>{await s(a)};return(a,d)=>{var u;const c=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(c,{modelValue:i.unref(r),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(r)?r.value=h:null),"popper-append-to-body":!1,clearable:!((u=i.unref(r))!=null&&u.default),"value-key":"label",onChange:o},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(ct).Get(),(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,label:h.label,value:h},null,8,om))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-80f413ec"]]),am={class:"switch-container"},lm={class:"line"},cm={class:"line"},Io=E(i.defineComponent({__name:"Switch3Pos",props:{firstModel:{type:Object,required:!0},secondModel:{type:Object,required:!0},defaultLabel:{type:String,default:"Все"}},emits:["load"],setup(t,{emit:e}){const n=t,r={background:"inherit",border:"1px solid #c4c4c4"},s=()=>n.firstModel.valueEq(u.value)?void 0:r,o=()=>u.value?r:void 0,a=()=>n.secondModel.valueEq(u.value)?void 0:r,d=f=>{var g;return{color:(g=u.value)!=null&&g.valueEq(f)?"#006bb4":"#B0A4C0"}},c=e,u=i.ref(void 0),h=async f=>{var m;(m=u.value)!=null&&m.valueEq(f)||(u.value=f,c("load"))};return(f,m)=>{const g=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",am,[i.createElementVNode("div",lm,[i.createVNode(g,{string:t.firstModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(d(t.firstModel)),onClick:m[0]||(m[0]=C=>h(t.firstModel))},null,8,["string","style"]),i.createVNode(g,{string:"Все","font-size":"12px",padding:"0",style:i.normalizeStyle(d()),onClick:m[1]||(m[1]=C=>h())},null,8,["style"]),i.createVNode(g,{string:t.secondModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(d(t.secondModel)),onClick:m[2]||(m[2]=C=>h(t.secondModel))},null,8,["string","style"])]),i.createElementVNode("div",cm,[i.createElementVNode("div",{class:i.normalizeClass(["switch-knob1",{active:t.firstModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(s()),onClick:m[3]||(m[3]=C=>h(t.firstModel))},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob2",{active:!i.unref(u)}]),style:i.normalizeStyle(o()),onClick:m[4]||(m[4]=C=>h())},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob3",{active:t.secondModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(a()),onClick:m[5]||(m[5]=C=>h(t.secondModel))},null,6),m[6]||(m[6]=i.createElementVNode("div",{class:"switch-axis"},null,-1)),m[7]||(m[7]=i.createElementVNode("div",{class:"switch-axis-dash1"},null,-1)),m[8]||(m[8]=i.createElementVNode("div",{class:"switch-axis-dash2"},null,-1)),m[9]||(m[9]=i.createElementVNode("div",{class:"switch-axis-dash3"},null,-1))])])}}}),[["__scopeId","data-v-ecff678c"]]),dm={},um={class:"flex"};function hm(t,e){return i.openBlock(),i.createElementBlock("div",um,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const Ro=E(dm,[["render",hm],["__scopeId","data-v-5023d414"]]),vo=E(i.defineComponent({__name:"ToggleInfoItem",props:{title:{type:String,required:!0},content:{type:String,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=i.ref(!1),r=e,s=async()=>{r("submit"),n.value=!n.value};return(o,a)=>{const d=i.resolveComponent("PString"),c=i.resolveComponent("PButton"),u=i.resolveComponent("GridContainer"),h=i.resolveComponent("InfoItem");return i.openBlock(),i.createBlock(h,{title:t.title,icon:"edit-title","with-hover":!0,close:i.unref(n),width:"100%",onKeyupEnter:s},{"open-inside-content":i.withCtx(()=>[i.createVNode(u,{"custom-class":"grid"},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default",{},void 0,!0),i.createVNode(c,{type:"admin",color:"blue",text:"Сохранить",onClick:s})]),_:3})]),default:i.withCtx(()=>[t.content.length>0?(i.openBlock(),i.createBlock(d,{key:0,string:t.content},null,8,["string"])):(i.openBlock(),i.createBlock(d,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),fm={class:"top-slider-content"},mm={class:"center"},No=E(i.defineComponent({__name:"TopSliderContainer",props:{sliderOffHeight:{type:String,required:!1,default:"53px"},sliderOnHeight:{type:String,required:!1,default:"220px"},background:{type:String,required:!1,default:"inherit"},toggle:{type:Boolean,default:!1}},emits:["toggle"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!0);i.watch(()=>n.toggle,()=>{s.value=!s.value});const o=a=>{s.value=!s.value,r("toggle",a)};return(a,d)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(s)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[d[0]||(d[0]=i.withModifiers(c=>s.value=!0,["prevent"])),d[1]||(d[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(s)?`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`:"0",height:t.sliderOnHeight}),onClick:d[3]||(d[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",fm,[i.createElementVNode("div",mm,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:d[2]||(d[2]=c=>o(!i.unref(s)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]);function Ao(t){t.component("PageNotFound",wi),t.component("AdaptiveContainer",to),t.component("AdaptiveContainerHorizontal",no),t.component("CarouselImages",io),t.component("ContextWindow",ro),t.component("DateInputRangeV2",oo),t.component("DateInputRange",so),t.component("DropList",ao),t.component("FilterCheckbox",lo),t.component("FiltersButtonsSelect",co),t.component("FilterSelect",uo),t.component("FTSPPanel",ho),t.component("GeneralItem",fo),t.component("GridContainer",Oi),t.component("InfoItem",mo),t.component("InfoItemSelectButtons",po),t.component("LeftRightContainer",go),t.component("MessageBody",Di),t.component("PAutocomplete",Hi),t.component("PDialog",yo),t.component("PhoneForm",wo),t.component("PLoader",bo),t.component("PPagination",Co),t.component("RemoteSearch",So),t.component("ResearcheContainer",ko),t.component("RightSliderContainer",Eo),t.component("RightTabsContainer",xo),t.component("SelectValueType",Mo),t.component("SortList",Bo),t.component("SortSelect",$o),t.component("Switch3Pos",Io),t.component("ThemeWrapper",Ro),t.component("ToggleInfoItem",vo),t.component("TopSliderContainer",No)}const pm=Object.freeze(Object.defineProperty({__proto__:null,AdaptiveContainer:to,AdaptiveContainerHorizontal:no,CarouselImages:io,ContextWindow:ro,DateInputRange:so,DateInputRange_v2:oo,DropList:ao,FTSPPanel:ho,FilterCheckbox:lo,FilterSelect:uo,FiltersButtonsSelect:co,GeneralItem:fo,GridContainer:Oi,InfoItem:mo,InfoItemSelectButtons:po,LeftRightContainer:go,MessageBody:Di,PAutocomplete:Hi,PDialog:yo,PLoader:bo,PPagination:Co,PageNotFound:wi,PhoneForm:wo,RemoteSearch:So,ResearcheContainer:ko,RightSliderContainer:Eo,RightTabsContainer:xo,SelectValueType:Mo,SortList:Bo,SortSelect:$o,Switch3Pos:Io,ThemeWrapper:Ro,ToggleInfoItem:vo,TopSliderContainer:No,default:Ao},Symbol.toStringTag,{value:"Module"})),zo=E(i.defineComponent({__name:"IconDownload",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#download"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"download",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M15.6443 5.06141C15.0797 5.29331 15.0998 5.06141 15.0998 12.1393C15.0998 15.7388 15.0696 18.6728 15.0293 18.6728C14.9889 18.6728 14.1521 17.8763 13.1842 16.9083C11.6819 15.4061 11.3592 15.1338 11.0467 15.0733C10.724 15.0229 10.6333 15.0632 10.3611 15.3254C10.1292 15.5573 10.0586 15.7186 10.0586 16.0211C10.0586 16.3941 10.1594 16.5151 12.8615 19.2071C15.4326 21.7681 15.6947 22 16.0073 22C16.3198 22 16.582 21.7681 19.153 19.2071C21.9156 16.4546 21.9559 16.4042 21.9559 15.9908C21.9559 15.4867 21.6535 15.1641 21.109 15.0733C20.736 15.0128 20.7259 15.0229 18.8808 16.868C17.0357 18.6929 17.0155 18.7131 17.0155 18.3703C17.0054 18.1787 16.9953 15.2145 16.9853 11.7965L16.9651 5.56554L16.713 5.31348C16.4307 5.03117 15.9669 4.92026 15.6443 5.06141Z"}),i.createElementVNode("path",{d:"M5.30247 20.3872L5 20.6997L5.04033 22.081C5.07058 23.4321 5.08066 23.4825 5.44363 24.2488C6.09899 25.6099 7.17782 26.5173 8.59945 26.8904C9.47663 27.1122 22.5335 27.1223 23.4006 26.8904C25.044 26.4669 26.3245 25.2671 26.8084 23.7043C26.9496 23.2506 27 22.7868 27 21.8794C27 20.6796 27 20.6695 26.7076 20.3771C26.3144 19.9839 25.901 19.9839 25.4675 20.3771L25.1347 20.6695L25.1045 21.8189C25.0843 22.8776 25.0541 23.0086 24.7516 23.6035C24.3987 24.3093 23.7938 24.8235 23.088 25.0251C22.5839 25.1663 9.4363 25.1663 8.93217 25.0251C8.30706 24.8436 7.64161 24.3093 7.29881 23.7144C7.00642 23.2002 6.98625 23.0691 6.93584 21.9197L6.88543 20.6695L6.5527 20.3771C6.11916 19.9839 5.70577 19.9839 5.30247 20.3872Z"})])],-1))],64))}}),[["__scopeId","data-v-94c18208"]]),Po=E(i.defineComponent({__name:"IconFilter",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#filter"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"filter",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M8.58216 5.14236C6.22884 5.77558 4.70721 8.02494 5.04745 10.3688C5.61452 14.2627 10.3684 15.8127 13.0714 12.9962C13.6385 12.4103 14.319 11.2194 14.319 10.8225C14.319 10.6902 14.9428 10.6713 20.3771 10.6713H26.4353L26.7094 10.3972C27.0969 10.0097 27.0969 9.44261 26.7094 9.05511L26.4353 8.78103H20.396H14.3662L14.1867 8.23287C13.4589 5.9646 10.8599 4.52803 8.58216 5.14236ZM10.9638 7.21215C13.0525 8.24232 13.0336 11.2194 10.9355 12.2496C10.2172 12.5993 9.20593 12.6276 8.54436 12.2968C6.21939 11.1533 6.43676 7.81702 8.8846 7.01368C9.45166 6.8341 10.3495 6.91916 10.9638 7.21215Z"}),i.createElementVNode("path",{d:"M21.5953 17.6266C21.1133 17.7211 20.2155 18.0519 19.8752 18.2599C18.9868 18.7986 18.0322 20.0083 17.8054 20.8778L17.6826 21.3504H12.3616C6.66257 21.3504 6.63422 21.3504 6.37904 21.8135C6.20892 22.1443 6.26562 22.6452 6.51135 22.9287L6.73818 23.1933L12.1915 23.2406L17.6448 23.2878L17.8621 23.8738C18.4292 25.4427 19.7334 26.6052 21.2929 26.936C22.1057 27.1061 23.3154 27.0021 24.062 26.6997C25.3379 26.1799 26.4059 25.0174 26.8029 23.7037C26.9635 23.165 27.0013 22.8625 26.9635 22.0781C26.9352 21.1991 26.8974 21.0479 26.5855 20.3864C25.8105 18.7513 24.2794 17.7117 22.5499 17.6172C22.1529 17.5983 21.7276 17.6077 21.5953 17.6266ZM23.5517 19.8004C24.081 20.0556 24.5913 20.5754 24.8748 21.1519C24.9977 21.4071 25.045 21.7095 25.045 22.3427C25.045 23.1555 25.0261 23.2311 24.7236 23.7415C23.5611 25.6412 20.8014 25.5656 19.7902 23.5997C19.5066 23.0421 19.4405 22.0119 19.6484 21.3787C20.1682 19.8004 22.0206 19.0537 23.5517 19.8004Z"})])],-1))],64))}}),[["__scopeId","data-v-d11e6069"]]),Vo=E(i.defineComponent({__name:"IconArrowLeft",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[i.createElementVNode("path",{d:"M13.4323 2.0816C13.3788 2.0909 13.2951 2.12113 13.2462 2.14904C13.1997 2.17462 11.5439 3.85601 9.56715 5.8816C6.70668 8.81648 5.96017 9.59322 5.90436 9.69787C5.84622 9.8095 5.83691 9.85601 5.83691 9.99787C5.83691 10.1397 5.84622 10.1886 5.90436 10.2979C6.00436 10.4886 13.102 17.7746 13.2764 17.8653C13.3695 17.9142 13.423 17.9258 13.5555 17.9258C13.916 17.9235 14.1788 17.6583 14.1788 17.2932C14.1788 17.0374 14.1392 16.9769 13.623 16.4467C13.3695 16.1862 11.8555 14.6328 10.2555 12.9909C8.65552 11.349 7.35087 9.99787 7.35552 9.9909C7.36017 9.9816 8.86715 8.43276 10.7044 6.54904C12.5416 4.66532 14.0671 3.08392 14.0951 3.03508C14.2392 2.79555 14.1951 2.45834 13.9927 2.25834C13.8462 2.1095 13.6323 2.04206 13.4323 2.0816Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-ca16a90c"]]),To=E(i.defineComponent({__name:"IconEdit",props:{size:{type:String,default:""},margin:{type:String,default:"0 15px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#edit"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"edit",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},[i.createElementVNode("path",{d:"M21.993 4.16087C21.6831 4.26049 21.2404 4.48185 20.9969 4.64787C20.1778 5.22342 4.60489 20.9402 4.39459 21.4051C4.11789 22.0138 3 25.8434 3 26.1865C3 26.5961 3.30991 27.1938 3.65302 27.4373C4.2507 27.8689 4.58275 27.8468 6.88493 27.1716C8.06923 26.8174 9.23138 26.4411 9.47488 26.3194C10.0062 26.0537 25.4795 10.6468 26.0772 9.79458C26.8519 8.67669 26.9626 7.32637 26.3871 6.10887C25.6234 4.48185 23.6754 3.61853 21.993 4.16087ZM24.0406 6.25276C24.7379 6.70655 25.0035 7.69162 24.6272 8.44426C24.4501 8.78737 9.331 24.0393 8.73332 24.471C8.48982 24.6481 5.2247 25.6995 5.13616 25.6331C5.11402 25.611 5.42393 24.5042 5.82239 23.1871L6.12123 22.1909L14.1125 14.1886C22.5243 5.76576 22.4911 5.79896 23.3101 5.94285C23.4983 5.97605 23.8192 6.11994 24.0406 6.25276Z",fill:"currentColor"}),i.createElementVNode("path",{d:"M15.098 25.9216C14.5446 26.1872 14.4118 27.1169 14.8656 27.5265C15.0759 27.7146 15.4743 27.7257 21.1302 27.7589C25.325 27.781 27.273 27.7478 27.4722 27.6703C28.0367 27.4268 28.1806 26.6521 27.7489 26.154L27.4833 25.8441L21.4069 25.822C17.2674 25.8109 15.264 25.833 15.098 25.9216Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-55ea5a5c"]]),Fo=E(i.defineComponent({__name:"IconEmail",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#email"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"email",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M20 20H4C3.46957 20 2.96086 19.7893 2.58579 19.4142C2.21071 19.0391 2 18.5304 2 18V5.913C2.02243 5.39779 2.24301 4.91116 2.61568 4.5547C2.98835 4.19824 3.4843 3.99951 4 4H20C20.5304 4 21.0391 4.21071 21.4142 4.58579C21.7893 4.96086 22 5.46957 22 6V18C22 18.5304 21.7893 19.0391 21.4142 19.4142C21.0391 19.7893 20.5304 20 20 20ZM4 7.868V18H20V7.868L12 13.2L4 7.868ZM4.8 6L12 10.8L19.2 6H4.8Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-99358e0a"]]),Oo=E(i.defineComponent({__name:"IconMove",props:{size:{type:String,default:"24px"},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#icon-move"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"icon-move",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 22 22"},[i.createElementVNode("path",{d:"M8.91736 3.08529L6.83471 5.17059H8.0843H9.33058V7.25588V9.34117H7.24793H5.16529L5.15868 8.09993L5.14876 6.85868L3.07273 8.93404L1 11.0127L3.08264 13.098L5.16529 15.1833V13.9321V12.6843H7.24793H9.33058V14.7696V16.8548H7.89256C7.10248 16.8548 6.45455 16.8648 6.45785 16.878C6.45785 16.8946 6.60992 17.0402 6.79504 17.2057C7.16529 17.5367 8.90744 19.1189 9.38017 19.5525C10.7058 20.7639 10.9967 21.0188 11.0331 20.999C11.0562 20.9857 12.0876 20.0523 13.3273 18.9236L15.5785 16.8714L14.124 16.8615L12.6694 16.8548V14.7696V12.6843H14.7521H16.8347V13.9255C16.8347 14.6074 16.8446 15.1668 16.8612 15.1668C16.8975 15.1668 21 11.0491 21 11.0127C21 10.9763 16.8975 6.85868 16.8612 6.85868C16.8446 6.85868 16.8347 7.41807 16.8347 8.09993V9.34117H14.7521H12.6694V7.25588V5.17059H13.9091C14.5901 5.17059 15.1488 5.16066 15.1488 5.14411C15.1488 5.12094 11.043 1 11.0165 1C11.0066 1 10.0612 1.93673 8.91736 3.08529ZM12.081 3.24086C12.6595 3.82011 13.1322 4.30337 13.1322 4.31661C13.1322 4.33316 12.8413 4.34309 12.4876 4.34309H11.843V7.25588V10.1687H14.7686H17.6942V9.53646C17.6909 9.18891 17.6975 8.89763 17.7041 8.89101C17.7074 8.88439 18.1934 9.36103 18.7785 9.9469L19.843 11.0127L18.7686 12.0885L17.6942 13.1642V12.9325C17.6909 12.8034 17.6876 12.5155 17.6843 12.2871L17.6777 11.8733L14.762 11.8634L11.843 11.8568V14.7696V17.6823L12.6331 17.689L13.4264 17.6989L12.2165 18.7978L11.0066 19.9L10.7223 19.6419C10.5669 19.5028 10.4314 19.3804 10.4215 19.3704C10.405 19.3539 9.92893 18.917 9.28099 18.3311C9.09917 18.1656 8.86777 17.9538 8.7686 17.8578L8.58678 17.6823H9.37355H10.157V14.7696V11.8568H7.24793H4.33884L4.33223 12.5022L4.32231 13.1477L3.25455 12.0785L2.19008 11.0127L3.25455 9.94359L4.32231 8.87446L4.33223 9.52322L4.33884 10.1687H7.24793H10.157V7.25588V4.34309L9.5124 4.33647L8.86446 4.32654L9.93223 3.25741C10.5174 2.67154 11.0066 2.1916 11.0165 2.1916C11.0264 2.1916 11.5058 2.66492 12.081 3.24086Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-05547f14"]]),Do=E(i.defineComponent({__name:"IconPhone",props:{size:{type:String,default:""},margin:{type:String,default:"0 10px 0 0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#phone"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"phone",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M19.4998 21.75H19.3723C4.63482 20.9025 2.54232 8.4675 2.24982 4.6725C2.22625 4.37744 2.26114 4.08062 2.35248 3.79906C2.44382 3.5175 2.58981 3.25673 2.78211 3.03169C2.9744 2.80665 3.20921 2.62177 3.47308 2.48763C3.73695 2.35349 4.02469 2.27274 4.31982 2.25H8.45232C8.75274 2.24971 9.04632 2.33963 9.29504 2.50812C9.54377 2.67661 9.73617 2.9159 9.84732 3.195L10.9873 6C11.0971 6.27266 11.1243 6.57156 11.0657 6.85957C11.007 7.14758 10.865 7.412 10.6573 7.62L9.05982 9.2325C9.30936 10.6506 9.98846 11.9578 11.0052 12.9772C12.022 13.9967 13.3274 14.6792 14.7448 14.9325L16.3723 13.32C16.5834 13.1146 16.8504 12.9759 17.1398 12.9213C17.4292 12.8666 17.7283 12.8983 17.9998 13.0125L20.8273 14.145C21.1022 14.2597 21.3367 14.4536 21.501 14.702C21.6653 14.9504 21.7519 15.2422 21.7498 15.54V19.5C21.7498 20.0967 21.5128 20.669 21.0908 21.091C20.6689 21.5129 20.0966 21.75 19.4998 21.75ZM4.49982 3.75C4.30091 3.75 4.11014 3.82902 3.96949 3.96967C3.82884 4.11032 3.74982 4.30109 3.74982 4.5V4.56C4.09482 9 6.30732 19.5 19.4548 20.25C19.5534 20.2561 19.6521 20.2427 19.7454 20.2105C19.8388 20.1783 19.9248 20.1281 19.9987 20.0626C20.0726 19.9971 20.1328 19.9176 20.1759 19.8288C20.219 19.74 20.2441 19.6436 20.2498 19.545V15.54L17.4223 14.4075L15.2698 16.545L14.9098 16.5C8.38482 15.6825 7.49982 9.1575 7.49982 9.09L7.45482 8.73L9.58482 6.5775L8.45982 3.75H4.49982Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-131f6ba1"]]),Lo=E(i.defineComponent({__name:"ArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-left"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M656.733 149.806C659.446 147.019 662.69 144.804 666.274 143.292C669.857 141.779 673.707 141 677.597 141C681.486 141 685.337 141.779 688.92 143.292C692.503 144.804 695.748 147.019 698.461 149.806C704.024 155.518 707.138 163.176 707.138 171.15C707.138 179.123 704.024 186.782 698.461 192.494L386.589 512.366L698.461 832.302C701.269 835.176 703.483 838.575 704.976 842.305C706.47 846.035 707.215 850.022 707.167 854.04C707.119 858.057 706.281 862.026 704.699 865.72C703.118 869.413 700.824 872.759 697.949 875.566C695.211 878.242 691.972 880.351 688.417 881.774C684.863 883.197 681.063 883.904 677.235 883.857C673.407 883.809 669.625 883.007 666.107 881.497C662.589 879.986 659.404 877.797 656.733 875.054L325.085 534.702C319.26 528.726 316 520.711 316 512.366C316 504.021 319.26 496.006 325.085 490.03L656.733 149.806Z"})])],-1))],64))}}),[["__scopeId","data-v-ec3439ce"]]),Ho=E(i.defineComponent({__name:"ArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#arrow-right"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M366.436 875.054C363.723 877.84 360.479 880.055 356.895 881.568C353.312 883.08 349.462 883.859 345.572 883.859C341.683 883.859 337.832 883.08 334.249 881.568C330.666 880.055 327.421 877.84 324.708 875.054C319.145 869.342 316.031 861.683 316.031 853.71C316.031 845.736 319.145 838.077 324.708 832.366L636.58 512.494L324.708 192.558C321.9 189.684 319.686 186.284 318.193 182.555C316.699 178.825 315.954 174.837 316.002 170.82C316.049 166.802 316.888 162.833 318.47 159.14C320.051 155.446 322.345 152.1 325.22 149.294C327.958 146.618 331.197 144.508 334.752 143.086C338.306 141.663 342.106 140.955 345.934 141.003C349.762 141.05 353.544 141.852 357.062 143.363C360.58 144.873 363.765 147.063 366.436 149.806L698.084 490.158C703.909 496.134 707.169 504.148 707.169 512.494C707.169 520.839 703.909 528.854 698.084 534.83L366.436 875.054Z"})])],-1))],64))}}),[["__scopeId","data-v-cd0d3c21"]]),qo=E(i.defineComponent({__name:"DoubleArrowLeft",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-left"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-left",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M529.408 149.376C532.121 146.589 535.365 144.374 538.949 142.862C542.532 141.35 546.382 140.57 550.272 140.57C554.161 140.57 558.011 141.35 561.595 142.862C565.178 144.374 568.422 146.589 571.136 149.376C576.699 155.088 579.813 162.746 579.813 170.72C579.813 178.694 576.699 186.352 571.136 192.064L259.264 511.936L571.136 831.872C573.943 834.746 576.157 838.145 577.651 841.875C579.145 845.605 579.889 849.593 579.842 853.61C579.794 857.628 578.956 861.597 577.374 865.29C575.792 868.984 573.499 872.329 570.624 875.136C567.886 877.812 564.647 879.922 561.092 881.344C557.538 882.767 553.738 883.475 549.91 883.427C546.081 883.38 542.3 882.578 538.782 881.067C535.264 879.556 532.079 877.367 529.408 874.624L197.76 534.272C191.935 528.296 188.675 520.281 188.675 511.936C188.675 503.591 191.935 495.576 197.76 489.6L529.408 149.376ZM785.408 149.376C788.121 146.589 791.365 144.374 794.949 142.862C798.532 141.35 802.382 140.57 806.272 140.57C810.161 140.57 814.011 141.35 817.595 142.862C821.178 144.374 824.422 146.589 827.136 149.376C832.699 155.088 835.813 162.746 835.813 170.72C835.813 178.694 832.699 186.352 827.136 192.064L515.264 511.936L827.136 831.872C829.943 834.746 832.157 838.145 833.651 841.875C835.145 845.605 835.889 849.593 835.842 853.61C835.794 857.628 834.956 861.597 833.374 865.29C831.792 868.984 829.499 872.329 826.624 875.136C823.886 877.812 820.647 879.922 817.092 881.344C813.538 882.767 809.738 883.475 805.91 883.427C802.081 883.38 798.3 882.578 794.782 881.067C791.264 879.556 788.079 877.367 785.408 874.624L453.76 534.272C447.935 528.296 444.675 520.281 444.675 511.936C444.675 503.591 447.935 495.576 453.76 489.6L785.408 149.376Z"})])],-1))],64))}}),[["__scopeId","data-v-98099ad2"]]),Uo=E(i.defineComponent({__name:"DoubleArrowRight",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#double-arrow-right"},null,-1)]),38)),r[3]||(r[3]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"double-arrow-right",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{d:"M495.111 874.624C492.397 877.411 489.153 879.626 485.57 881.138C481.987 882.65 478.136 883.43 474.247 883.43C470.357 883.43 466.507 882.65 462.924 881.138C459.34 879.626 456.096 877.411 453.383 874.624C447.819 868.912 444.706 861.254 444.706 853.28C444.706 845.306 447.819 837.648 453.383 831.936L765.255 512.064L453.383 192.128C450.575 189.254 448.361 185.855 446.867 182.125C445.374 178.395 444.629 174.407 444.677 170.39C444.724 166.372 445.563 162.403 447.145 158.71C448.726 155.016 451.02 151.671 453.895 148.864C456.633 146.188 459.872 144.078 463.426 142.656C466.981 141.233 470.781 140.525 474.609 140.573C478.437 140.62 482.219 141.422 485.737 142.933C489.254 144.444 492.44 146.633 495.111 149.376L826.759 489.728C832.584 495.704 835.844 503.719 835.844 512.064C835.844 520.409 832.584 528.424 826.759 534.4L495.111 874.624ZM239.111 874.624C236.397 877.411 233.153 879.626 229.57 881.138C225.987 882.65 222.136 883.43 218.247 883.43C214.357 883.43 210.507 882.65 206.924 881.138C203.34 879.626 200.096 877.411 197.383 874.624C191.819 868.912 188.706 861.254 188.706 853.28C188.706 845.306 191.819 837.648 197.383 831.936L509.255 512.064L197.383 192.128C194.575 189.254 192.361 185.855 190.867 182.125C189.374 178.395 188.629 174.407 188.677 170.39C188.724 166.372 189.563 162.403 191.145 158.71C192.726 155.016 195.02 151.671 197.895 148.864C200.633 146.188 203.872 144.078 207.426 142.656C210.981 141.233 214.781 140.525 218.609 140.573C222.437 140.62 226.219 141.422 229.737 142.933C233.254 144.444 236.44 146.633 239.111 149.376L570.759 489.728C576.584 495.704 579.844 503.719 579.844 512.064C579.844 520.409 576.584 528.424 570.759 534.4L239.111 874.624Z"})])],-1))],64))}}),[["__scopeId","data-v-053c9917"]]),_o=E(i.defineComponent({__name:"EllipsisSvg",props:{color:{type:String,default:""},hoverColor:{type:String,default:""},size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){const e=i.ref(!1);return(n,r)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size,fill:t.hoverColor?i.unref(e)?t.hoverColor:t.color:(i.unref(e),t.color)}),onMouseenter:r[0]||(r[0]=s=>e.value=!0),onMouseleave:r[1]||(r[1]=s=>e.value=!1)},r[2]||(r[2]=[i.createElementVNode("use",{"xlink:href":"#ellipsis"},null,-1)]),38)),r[3]||(r[3]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-1798f31d><symbol id="ellipsis" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" data-v-1798f31d><path d="M65 135C73.2843 135 80 128.284 80 120C80 111.716 73.2843 105 65 105C56.7157 105 50 111.716 50 120C50 128.284 56.7157 135 65 135Z" data-v-1798f31d></path><path d="M120 135C128.284 135 135 128.284 135 120C135 111.716 128.284 105 120 105C111.716 105 105 111.716 105 120C105 128.284 111.716 135 120 135Z" data-v-1798f31d></path><path d="M175 135C183.284 135 190 128.284 190 120C190 111.716 183.284 105 175 105C166.716 105 160 111.716 160 120C160 128.284 166.716 135 175 135Z" data-v-1798f31d></path></symbol></svg>',1))],64))}}),[["__scopeId","data-v-1798f31d"]]);function jo(t){t.component("IconDownload",zo),t.component("IconFilter",Po),t.component("ArrowLeft",Lo),t.component("ArrowRight",Ho),t.component("DoubleArrowLeft",qo),t.component("DoubleArrowRight",Uo),t.component("EllipsisSvg",_o),t.component("IconArrowLeft",Vo),t.component("IconCheckDefault",zi),t.component("IconClose",zn),t.component("IconEdit",To),t.component("IconEmail",Fo),t.component("IconMove",Oo),t.component("IconPhone",Do),t.component("IconSearch",Li),t.component("IconSelectArrow",Vi)}const gm=Object.freeze(Object.defineProperty({__proto__:null,ArrowLeft:Lo,ArrowRight:Ho,DoubleArrowLeft:qo,DoubleArrowRight:Uo,EllipsisSvg:_o,IconArrowLeft:Vo,IconCheckDefault:zi,IconClose:zn,IconDownload:zo,IconEdit:To,IconEmail:Fo,IconFilter:Po,IconMove:Oo,IconPhone:Do,IconSearch:Li,IconSelectArrow:Vi,default:jo},Symbol.toStringTag,{value:"Module"})),ym=i.defineComponent({name:"CollapseContainer",props:{initActiveIdx:{type:Number,default:0}},setup(t){const e=i.ref(t.initActiveIdx),n=r=>{e.value=r};return i.watch(()=>t.initActiveIdx,()=>{n(t.initActiveIdx)}),{changeActiveId:n,activeIdx:e}}});function wm(t,e,n,r,s,o){return i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default",{activeIdx:t.activeIdx,changeActiveId:t.changeActiveId})])}const Wo=E(ym,[["render",wm]]),bm=i.defineComponent({name:"CollapseItem",props:{tabId:{type:String,required:!1,default:""},activeId:{type:String,default:""},isCollaps:{type:Boolean,default:!0},title:{type:String,default:""},showToolsOnHover:{type:Boolean,default:!0},background:{type:String,required:!1,default:"#ffffff"},backgroundAttention:{type:String,required:!1,default:"#ffffff"},changeColor:{type:Boolean,default:!1},margin:{type:String,default:"10px 8px 2px 2px"},padding:{type:String,default:"0 10px"},selectable:{type:Boolean,default:!1}},emits:["changeActiveId"],setup(t,{emit:e}){const n=i.ref(t.activeId==="0"),r=()=>{n.value=!n.value,e("changeActiveId",t.tabId)};return i.onUpdated(()=>{t.activeId&&t.activeId!==t.tabId&&(n.value=!0)}),i.onBeforeMount(()=>{t.activeId&&t.activeId!==t.tabId&&(n.value=!1)}),{collapsed:n,handleItemClick:r}}}),Cm=["for"],Sm={class:"inside-icon"};function km(t,e,n,r,s,o){return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{class:"tab",style:i.normalizeStyle({margin:t.margin,height:t.isCollaps&&t.collapsed?"60px":"","box-shadow":t.selectable&&t.activeId===t.tabId?"0px 0px 1px 2px #1979cf":""})},[t.isCollaps&&t.collapsed?(i.openBlock(),i.createElementBlock("svg",{key:0,class:"icon-arrow",onClick:e[0]||(e[0]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},e[3]||(e[3]=[i.createElementVNode("use",{"xlink:href":"#arrow-down"},null,-1)]))):t.isCollaps&&!t.collapsed?(i.openBlock(),i.createElementBlock("svg",{key:1,class:"icon-arrow",onClick:e[1]||(e[1]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},e[4]||(e[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-up"},null,-1)]))):i.createCommentVNode("",!0),i.createElementVNode("label",{for:t.tabId,onClick:e[2]||(e[2]=(...a)=>t.handleItemClick&&t.handleItemClick(...a))},[i.createElementVNode("div",{style:i.normalizeStyle({cursor:t.isCollaps?"pointer":"default",background:t.changeColor?t.background:t.backgroundAttention,padding:t.padding,borderRadius:"5px"}),class:"tab-name"},[i.createElementVNode("div",Sm,[i.renderSlot(t.$slots,"icon",{},void 0,!0)]),i.createElementVNode("div",{class:"title-in",style:i.normalizeStyle({marginRight:t.isCollaps?"50px":"0",width:t.isCollaps?"calc(100% - 50px)":"100%"})},[i.renderSlot(t.$slots,"inside-title",{},()=>[i.createTextVNode(i.toDisplayString(t.title),1)],!0)],4),i.createElementVNode("div",{class:i.normalizeClass(["tools-bar",{"hidden-part":t.showToolsOnHover}])},[i.renderSlot(t.$slots,"tools",{},void 0,!0)],2)],4)],8,Cm),i.createElementVNode("div",{style:i.normalizeStyle({maxHeight:t.isCollaps?"":"1000000vh",background:t.changeColor?t.background:t.backgroundAttention}),class:i.normalizeClass(t.collapsed?"tab-content-down":"tab-content-up")},[i.renderSlot(t.$slots,"default",{},void 0,!0)],6)],4),e[5]||(e[5]=i.createStaticVNode('<svg width="0" height="0" class="hidden" data-v-c2e31ebb><symbol id="arrow-down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-c2e31ebb><path d="M5 6L10 11L15 6L17 7L10 14L3 7L5 6Z" fill="currentColor" data-v-c2e31ebb></path></symbol><symbol id="arrow-up" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" data-v-c2e31ebb><path d="M15 14L10 9L5 14L3 13L10 6L17 13L15 14Z" fill="currentColor" data-v-c2e31ebb></path></symbol></svg>',1))],64)}const Go=E(bm,[["render",km],["__scopeId","data-v-c2e31ebb"]]),Em={class:"tab"},xm={class:"rotate"},Zo=E(i.defineComponent({__name:"VerticalCollapseContainer",setup(t){const e=i.ref(!1),n=async()=>{e.value=!e.value};return(r,s)=>{const o=i.resolveComponent("ArrowRight"),a=i.resolveComponent("ArrowLeft");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Em,[i.renderSlot(r.$slots,"main",{},void 0,!0),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"20px",transition:"0.3s"}),class:"left"},[i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"100%":"0",transition:"0.3s"}),class:"left-content"},[i.renderSlot(r.$slots,"inside-content-left",{},void 0,!0)],4),i.createElementVNode("div",{class:"arrow-bar",onClick:n},[i.createElementVNode("div",xm,[i.renderSlot(r.$slots,"inside-title",{},void 0,!0)]),i.unref(e)?(i.openBlock(),i.createBlock(o,{key:0,"icon-class":"icon-arrow"})):(i.openBlock(),i.createBlock(a,{key:1,"icon-class":"icon-arrow"}))])],4),i.createElementVNode("div",{style:i.normalizeStyle({width:i.unref(e)?"50%":"100%",transition:"0.3s"}),class:"right"},[i.renderSlot(r.$slots,"inside-content-right",{},void 0,!0)],4)]),i.createVNode(a),i.createVNode(o)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),Mm={class:"add-block_body"},Xo=E(i.defineComponent({__name:"PAdd",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(t){return(e,n)=>{const r=i.resolveComponent("PSticky");return i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createVNode(r,{top:t.top,"z-index":t.zIndex},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),i.createElementVNode("div",Mm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),Yo=E(i.defineComponent({__name:"PContainer",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"add-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),[["__scopeId","data-v-b2b43a38"]]),Bm={class:"add-block_body"},Jo=E(i.defineComponent({__name:"PContainerStickyHead",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"0"},padding:{type:String,required:!1,default:"0"},top:{type:String,required:!1,default:"0"},zIndex:{type:Number,required:!1,default:0}},setup(t){return(e,n)=>{const r=i.resolveComponent("PSticky"),s=i.resolveComponent("PContainer");return i.openBlock(),i.createBlock(s,{background:t.background,margin:t.margin,padding:t.padding},{default:i.withCtx(()=>[i.createVNode(r,{top:t.top,"z-index":t.zIndex},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"title",{},void 0,!0)]),_:3},8,["top","z-index"]),i.createElementVNode("div",Bm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),$m={class:"del-block_title"},Im={class:"del-block_body"},Qo=E(i.defineComponent({__name:"PDel",props:{background:{type:String,required:!1,default:"inherit"},margin:{type:String,required:!1,default:"10px 10px 10px 50px"},padding:{type:String,required:!1,default:"10px"}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("div",{class:"del-block",style:i.normalizeStyle({margin:t.margin,background:t.background,padding:t.padding})},[i.createElementVNode("div",$m,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",Im,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),Pn=E(i.defineComponent({__name:"PModal",props:{showCloseDialog:{type:Boolean,required:!1,default:!1},closable:{type:Boolean,required:!1,default:!1},show:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"760px"},maxHeight:{type:String,default:"70vh"},margin:{type:String,default:"auto"},top:{type:String,default:"20vh"},padding:{type:String,default:"var(--modal-window-padding)"},showClose:{type:Boolean,default:!1}},emits:["save","close"],setup(t,{emit:e}){const n=t,r=e,s=a=>{a.key==="Escape"&&o()};i.onMounted(()=>{document.body.addEventListener("keydown",s)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",s)});const o=()=>{n.closable&&r("close")};return(a,d)=>{const c=i.resolveComponent("IconClose");return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.show?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:o})):i.createCommentVNode("",!0),t.show?(i.openBlock(),i.createElementBlock("div",{key:1,class:"modal-w",style:i.normalizeStyle({maxWidth:t.width,width:t.width,margin:t.margin,padding:t.padding,top:t.top,maxHeight:t.maxHeight})},[t.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"icon-box",onClick:o},[i.createVNode(c,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ece06e7d"]]),Ko=E(i.defineComponent({__name:"PNotify",setup(t){const e=i.computed(()=>{switch(ye.GetType()){case"info":return"message info";case"success":return"message success";case"warning":return"message warning";case"error":return"message error";default:return"message neutral"}});return(n,r)=>(i.openBlock(),i.createBlock(i.Transition,{name:"fade"},{default:i.withCtx(()=>[i.unref(ye).IsVisible()?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(i.unref(e))},[i.createVNode(Di,{title:i.unref(ye).GetTitle(),text:i.unref(ye).GetText()},null,8,["title","text"])],2)):i.createCommentVNode("",!0)]),_:1}))}}),[["__scopeId","data-v-3714a37b"]]);function ea(t){t.component("CollapseContainer",Wo),t.component("CollapseItem",Go),t.component("VerticalCollapseContainer",Zo),t.component("PAdd",Xo),t.component("PModal",Pn),t.component("PContainer",Yo),t.component("PContainerStickyHead",Jo),t.component("PDel",Qo),t.component("PNotify",Ko)}const Rm=Object.freeze(Object.defineProperty({__proto__:null,CollapseContainer:Wo,CollapseItem:Go,PAdd:Xo,PContainer:Yo,PContainerStickyHead:Jo,PDel:Qo,PModal:Pn,PNotify:Ko,VerticalCollapseContainer:Zo,default:ea},Symbol.toStringTag,{value:"Module"})),vm={class:"btn-group"},qi=E(i.defineComponent({__name:"PAuthForm",props:{width:{type:String,default:"auto"},margin:{type:String,default:"auto"},padding:{type:String,default:"0"},background:{type:String,default:"inherit"}},emits:["submit"],setup(t,{emit:e}){const n=e,r=i.computed(()=>re.Form.GetButtons()),s=i.useTemplateRef("fields"),o=async d=>{if(!d.isSubmit){re.Form.SetChunk(d.GetChunk()),a();return}const c=re.Form.Validate();if(c.length>0){Ye.Notify.Error(c.join("<br/>"));return}n("submit")},a=()=>{if(!s.value)return;const d=s.value[0];d&&d.$refs.input.focus()};return i.onMounted(async()=>{await a()}),i.onBeforeUnmount(()=>{re.Form.Reset()}),(d,c)=>(i.openBlock(),i.createElementBlock("div",{class:"auth-card",style:i.normalizeStyle({maxWidth:t.width,margin:t.margin,padding:t.padding,background:t.background})},[i.createVNode(Fi,{string:i.unref(re).Form.GetTitle(),"font-size":"18px"},null,8,["string"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(re).Form.GetFields(),u=>(i.openBlock(),i.createBlock(An,{id:u.id,key:u.id,ref_for:!0,ref_key:"fields",ref:s,modelValue:u.value,"onUpdate:modelValue":h=>u.value=h,type:u.IsPassword?"password":"text",placeholder:u.label,margin:"10px 0 0 0"},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder"]))),128)),i.createElementVNode("div",vm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(r),(u,h)=>(i.openBlock(),i.createBlock(vn,{id:u.id,key:u.GetChunk(),disabled:i.unref(re).Form.IsBlock,type:h===0?i.unref(ce).Success:i.unref(ce).Primary,skin:"base",text:u.text,margin:"10px 0 0 0",width:"100%",onClick:f=>o(u)},null,8,["id","disabled","type","text","onClick"]))),128))])],4))}}),[["__scopeId","data-v-bbd3e3b8"]]),ta=i.defineComponent({__name:"PAuthModal",props:{width:{type:String,default:"320px"},margin:{type:String,default:"0"},padding:{type:String,default:"2vw"}},emits:["submit"],setup(t){const e=()=>{re.Form.Reset(),re.Modal.Close()};return(n,r)=>(i.openBlock(),i.createBlock(Pn,{show:i.unref(re).Modal.Visible,closable:i.unref(re).Modal.Closable,width:t.width,padding:t.padding,onClose:e},{default:i.withCtx(()=>[i.createVNode(qi,{margin:t.margin,padding:"0",onSubmit:r[0]||(r[0]=s=>n.$emit("submit"))},null,8,["margin"])]),_:1},8,["show","closable","width","padding"]))}}),Nm={class:"field"},na=E(i.defineComponent({__name:"PNameEdit",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(!1),o=i.ref(),a=i.ref(n.withName.name),d=i.ref(!1),c=()=>{d.value=!1},u=async()=>{a.value.trim(),n.withName.setName&&n.withName.setName(a.value),s.value=!s.value,r("submit")};return(h,f)=>{const m=i.resolveComponent("PString"),g=i.resolveComponent("PInput"),C=i.resolveComponent("InfoItem"),b=i.resolveComponent("PButton"),S=i.resolveComponent("el-form");return i.openBlock(),i.createBlock(S,{ref_key:"form",ref:o,style:{width:"100%"}},{default:i.withCtx(()=>[i.createVNode(C,{title:"Название","show-save-dialog":d.value,icon:"edit-title","with-hover":!0,close:s.value,width:"100%",onKeyupEnter:u,onAfterClose:c},{"open-inside-content":i.withCtx(()=>[i.createVNode(C,{title:"",icon:"edit-title","with-open-window":!1,"with-hover":!1,"border-color":"#ffffff","base-box-margin":"0 0 15px 0",padding:"0",width:"100%","custom-class":"test","open-width":"100%"},{default:i.withCtx(()=>[i.createElementVNode("div",Nm,[i.createVNode(g,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=I=>a.value=I),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])])]),_:1}),i.createVNode(b,{type:"admin",color:"blue",text:"Сохранить",onClick:u})]),default:i.withCtx(()=>[a.value.length?(i.openBlock(),i.createBlock(m,{key:0,string:a.value.length>60?a.value.slice(0,60)+"...":a.value},null,8,["string"])):(i.openBlock(),i.createBlock(m,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:1},8,["show-save-dialog","close"])]),_:1},512)}}}),[["__scopeId","data-v-4f7966cb"]]),Am=["onClick"],ia=E(i.defineComponent({__name:"PTabs",props:{menus:{type:Object,required:!0},tabHeight:{type:String,required:!1,default:"40px"},height:{type:String,required:!1,default:""},minMenuItemWidth:{type:String,required:!1,default:"150px"},outTopMargin:{type:String,required:!1,default:"40px"},background:{type:String,required:!1,default:"#ffffff"},margin:{type:String,required:!1,default:"var(--tabs-margin, 0 10px 10px 10px)"},borderRadius:{type:String,required:!1,default:"var(--tabs-border-radius, 10px)"}},emits:["select"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(window.innerWidth),o=i.ref(),a=i.ref(Number(n.tabHeight.replace(/[^+\d]/g,""))),d=()=>{s.value=window.innerWidth,a.value=o.value?o.value.clientHeight:Number(n.tabHeight.replace(/[^+\d]/g,""))};i.onMounted(()=>window.addEventListener("resize",d)),i.onUnmounted(()=>window.removeEventListener("resize",d));const c=i.computed(()=>`calc(100% - ${a.value}px + 1px)`);i.onBeforeMount(()=>{n.menus.Select()});const u=h=>{n.menus.Select(h),r("select")};return(h,f)=>(i.openBlock(),i.createElementBlock("div",{class:"mainblock",style:i.normalizeStyle({height:`calc(100% - ${t.outTopMargin} - ${t.tabHeight}`,margin:t.margin,borderRadius:t.borderRadius})},[i.createElementVNode("div",{ref_key:"menuRef",ref:o,class:"top-menu",style:i.normalizeStyle({gridTemplateColumns:`repeat(auto-fit, minmax(${t.minMenuItemWidth}, 1fr))`})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.menus.items,(m,g)=>(i.openBlock(),i.createElementBlock("div",{key:g},[i.createElementVNode("div",{class:i.normalizeClass({"selected-tab":g===t.menus.idx,tab:g!==t.menus.idx}),style:i.normalizeStyle({minHeight:t.tabHeight,maxHeight:t.tabHeight}),onClick:C=>u(g)},i.toDisplayString(m.name),15,Am)]))),128))],4),i.createElementVNode("div",{class:"body-container",style:i.normalizeStyle({background:t.background,height:i.unref(c)})},[i.renderSlot(h.$slots,"default",{},()=>[t.menus.idx>-1?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(t.menus.GetComponent()),{key:0})):i.createCommentVNode("",!0)],!0)],4)],4))}}),[["__scopeId","data-v-caa5b5d8"]]),zm=["id"],Pm=["for"],Vm={class:"left-field"},Tm=["href","download"],Fm={key:1,class:"text-field__input"},Om={class:"right-field"},Dm=i.defineComponent({__name:"PUploaderFile",props:{fileInfo:{type:Object,required:!1,default:new fe},formats:{type:Array,default:()=>["pdf","jpeg","jpg"]},label:{type:String,default:"Label",required:!1},margin:{type:String,required:!1,default:"10px 0 0 0"},disabled:{type:Boolean,required:!1,default:!1},padding:{type:String,default:"",required:!1},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"var(--input-border-color)",required:!1},color:{type:String,default:"var(--input-font-color)",required:!1},placeholder:{type:String,required:!1,default:""}},emits:["upload","remove"],setup(t,{emit:e}){const n=t,r=e,s=ee.GUID(),o=ee.GUID(),a=()=>{const u=document.getElementById(s);if(!u.files)return;const h=u.files[0];if(h){if(!c(h.name)){ye.Error("Загруженный файл должен быть в формате pdf, jpg или jpeg");return}n.fileInfo.setFile(h),r("upload",n.fileInfo)}},d=()=>{n.fileInfo.clearFile(),r("remove",n.fileInfo)};i.onMounted(()=>{const u=document.getElementById(o);u&&(u.onclick=()=>{var h;return(h=document.getElementById(s))==null?void 0:h.click()})});const c=u=>{let h=us.Get(u);return!!n.formats.includes(h.toLowerCase())};return(u,h)=>{const f=i.resolveComponent("PString"),m=i.resolveComponent("PFlex"),g=i.resolveComponent("PButton");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("input",{id:i.unref(s),type:"file",hidden:"",onChange:a},null,40,zm),i.createElementVNode("div",{class:"text-field",style:i.normalizeStyle({margin:t.margin,padding:t.padding})},[t.label?(i.openBlock(),i.createElementBlock("label",{key:0,class:"text-field__label",for:t.label},i.toDisplayString(t.label),9,Pm)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",Vm,[i.createVNode(m,null,{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createVNode(f,{string:t.placeholder,"font-size":"var(--font-size-default:)",color:"var(--input-label-color)",margin:"0 10px 0 0"},null,8,["string"])]),_:3})]),t.fileInfo&&t.fileInfo.originalName?(i.openBlock(),i.createElementBlock("div",{key:0,class:"text-field__input",style:i.normalizeStyle({color:t.color})},[i.createElementVNode("a",{href:t.fileInfo.getFileUrl(),target:"_blank",download:t.fileInfo.originalName},[i.createElementVNode("div",null,i.toDisplayString(t.fileInfo.originalName),1)],8,Tm),i.createVNode(g,{skin:"text",type:"del",onClick:d},{default:i.withCtx(()=>[i.createVNode(zn,{size:"20px",margin:"0 5px"})]),_:1})],4)):(i.openBlock(),i.createElementBlock("div",Fm,[i.createVNode(f,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),i.createElementVNode("div",Om,[i.createVNode(g,{id:i.unref(o),skin:"text",type:"success","data-test":"upload-btn",text:t.fileInfo&&t.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),ra=E(Dm,[["__scopeId","data-v-da26d0d4"]]);function sa(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,r)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sa(Object(n),!0).forEach(function(r){xe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lm(t,e){if(t==null)return{};var n,r,s=function(a,d){if(a==null)return{};var c,u,h={},f=Object.keys(a);for(u=0;u<f.length;u++)c=f[u],d.indexOf(c)>=0||(h[c]=a[c]);return h}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(s[n]=t[n])}return s}function ft(t){return function(e){if(Array.isArray(e))return Ui(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,n){if(e){if(typeof e=="string")return Ui(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ui(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ui(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var oa,Hm,Vn,te=(oa=function(t){/*!
|
|
25
25
|
Copyright (c) 2018 Jed Watson.
|
|
26
26
|
Licensed under the MIT License (MIT), see
|
|
27
27
|
http://jedwatson.github.io/classnames
|
|
28
|
-
*/(function(){var e={}.hasOwnProperty;function n(){for(var r=[],s=0;s<arguments.length;s++){var o=arguments[s];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var d=n.apply(null,o);d&&r.push(d)}}else if(a==="object")if(o.toString===Object.prototype.toString)for(var c in o)e.call(o,c)&&o[c]&&r.push(c);else r.push(o.toString())}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},
|
|
28
|
+
*/(function(){var e={}.hasOwnProperty;function n(){for(var r=[],s=0;s<arguments.length;s++){var o=arguments[s];if(o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var d=n.apply(null,o);d&&r.push(d)}}else if(a==="object")if(o.toString===Object.prototype.toString)for(var c in o)e.call(o,c)&&o[c]&&r.push(c);else r.push(o.toString())}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},oa(Vn={path:Hm,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&Vn.path)}},Vn.exports),Vn.exports),Ne=function(t){return function(e,n){if(!e)return t;var r;typeof e=="string"?r=e:n=e;var s=t;return r&&(s+="__"+r),s+(n?Object.keys(n).reduce(function(o,a){var d=n[a];return d&&(o+=" "+(typeof d=="boolean"?s+"--"+a:s+"--"+a+"_"+d)),o},""):"")}};function _i(t,e,n){var r,s,o,a,d;function c(){var h=Date.now()-a;h<e&&h>=0?r=setTimeout(c,e-h):(r=null,n||(d=t.apply(o,s),o=s=null))}e==null&&(e=100);var u=function(){o=this,s=arguments,a=Date.now();var h=n&&!r;return r||(r=setTimeout(c,e)),h&&(d=t.apply(o,s),o=s=null),d};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(d=t.apply(o,s),o=s=null,clearTimeout(r),r=null)},u}_i.debounce=_i;var ji=_i,z=function(){return z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var s in e=arguments[n])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},z.apply(this,arguments)};/*! *****************************************************************************
|
|
29
29
|
Copyright (c) Microsoft Corporation.
|
|
30
30
|
|
|
31
31
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -38,5 +38,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
38
38
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
39
39
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
40
40
|
PERFORMANCE OF THIS SOFTWARE.
|
|
41
|
-
***************************************************************************** */function la(t,e){var n,r;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),r=t+"-"+e):(n=t||e,r=t||e),{name:n,classname:r}}function ca(t){return/^blob:/.test(t)}function da(t){return ca(t)||function(e){return/^data:/.test(e)}(t)}function Et(t){return!!(t&&t.constructor&&t.call&&t.apply)}function oe(t){return t===void 0}function Tn(t){return typeof t=="object"&&t!==null}function Wi(t,e,n){var r={};return Tn(t)?(Object.keys(e).forEach(function(s){oe(t[s])?r[s]=e[s]:Tn(e[s])?Tn(t[s])?r[s]=Wi(t[s],e[s],n[s]):r[s]=t[s]?e[s]:n[s]:e[s]===!0||e[s]===!1?r[s]=!!t[s]:r[s]=t[s]}),r):t?e:n}function Fn(t){var e=Number(t);return Number.isNaN(e)?t:e}function ua(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!ha(t)}function ha(t){return t!=t}function fa(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var jt=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},Xm=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},Gi=function(t){this.type="move",this.directions=t},Ym=function(){function t(e,n,r,s,o){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=s,this.element=n,this.anchor=o}return t.prototype.shift=function(){var e=this,n=e.element,r=e.anchor,s=e.position;if(n){var o=n.getBoundingClientRect(),a=o.left,d=o.top;return{left:s.left-a-r.left,top:s.top-d-r.top}}return{left:0,top:0}},t}(),Zi={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&t.touches.length===1&&(this.touches=ft(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce(function(e,n){return{clientX:e.clientX+n.clientX/t.touches.length,clientY:e.clientY+n.clientY/t.touches.length}},{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),n=e.left,r=e.right,s=e.bottom,o=e.top;this.anchor={left:t.clientX-n,top:t.clientY-o,bottom:s-t.clientY,right:r-t.clientX}},processMove:function(t,e){var n=ft(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var r=this.$refs.draggable;this.$emit("drag",new Ym(t,r,{left:n[0].clientX,top:n[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=n}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};Zi.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"draggable",class:n.classname,onTouchstart:e[1]||(e[1]=function(){return o.onTouchStart&&o.onTouchStart.apply(o,arguments)}),onMousedown:e[2]||(e[2]=function(){return o.onMouseDown&&o.onMouseDown.apply(o,arguments)}),onMouseover:e[3]||(e[3]=function(){return o.onMouseOver&&o.onMouseOver.apply(o,arguments)}),onMouseleave:e[4]||(e[4]=function(){return o.onMouseLeave&&o.onMouseLeave.apply(o,arguments)})},[i.renderSlot(t.$slots,"default")],34)};var Xi=Ne("vue-handler-wrapper"),ma={name:"HandlerWrapper",components:{DraggableElement:Zi},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,n=la(this.horizontalPosition,this.verticalPosition);t=Xi((xe(e={},n.classname,!0),xe(e,"disabled",this.disabled),e))}else t=Xi({disabled:this.disabled});return{root:t,draggable:Xi("draggable")}}},emits:["leave","enter","drag","drag-end"]};ma.render=function(t,e,n,r,s,o){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock("div",{class:o.classes.root},[i.createVNode(a,{class:o.classes.draggable,onDrag:e[1]||(e[1]=function(d){return t.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])],2)};var Jm=Ne("vue-line-wrapper"),pa={name:"LineWrapper",components:{DraggableElement:Zi},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return Jm((xe(t={},this.position,!0),xe(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};pa.render=function(t,e,n,r,s,o){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock(a,{class:o.classname,onDrag:e[1]||(e[1]=function(d){return t.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])};var Fe=["left","right","top","bottom"],Qm=["left","right"],Km=["top","bottom"],ep=["left","top"],tp=["fill-area","fit-area","stencil","none"],ga={left:0,top:0,width:0,height:0};function ya(t,e,n){return!(n=n||["width","height","left","top"]).some(function(r){return t[r]!==e[r]})}function Oe(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function xt(t,e){return{left:t.left-e.left,top:t.top-e.top}}function ue(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function _t(t,e){var n={left:0,top:0,right:0,bottom:0};return Fe.forEach(function(r){var s=e[r],o=Oe(t)[r];n[r]=s!==void 0&&o!==void 0?r==="left"||r==="top"?Math.max(0,s-o):Math.max(0,o-s):0}),n}function De(t,e){return{left:t.left-e.left,top:t.top-e.top,width:t.width+e.left+e.right,height:t.height+e.top+e.bottom}}function On(t){return{left:-t.left,top:-t.top}}function be(t,e){return P(P({},t),{left:t.left+e.left,top:t.top+e.top})}function Me(t,e,n,r){if(e!==1){if(n){var s=ue(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-s.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-s.top)*(1-e)}}return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2,top:t.top+t.height*(1-e)/2}}return t}function G(t){return t.width/t.height}function Mt(t,e){return Math.min(e.right!==void 0&&e.left!==void 0?(e.right-e.left)/t.width:1/0,e.bottom!==void 0&&e.top!==void 0?(e.bottom-e.top)/t.height:1/0)}function Bt(t,e){var n={left:0,top:0},r=_t(t,e);return r.left&&r.left>0?n.left=r.left:r.right&&r.right>0&&(n.left=-r.right),r.top&&r.top>0?n.top=r.top:r.bottom&&r.bottom>0&&(n.top=-r.bottom),n}function Yi(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function wa(t,e){var n=G(t),r=G(e);return e.width<1/0&&e.height<1/0?n>r?{width:e.width,height:e.width/n}:{width:e.height*n,height:e.height}:e.width<1/0?{width:e.width,height:e.width/n}:e.height<1/0?{width:e.height*n,height:e.height}:t}function ba(t,e){var n=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(n))+Math.abs(t.height*Math.sin(n)),height:Math.abs(t.width*Math.sin(n))+Math.abs(t.height*Math.cos(n))}}function Qe(t,e){var n=e*Math.PI/180;return{left:t.left*Math.cos(n)-t.top*Math.sin(n),top:t.left*Math.sin(n)+t.top*Math.cos(n)}}function Dn(t,e){var n=_t(he(t,e),e);return n.left+n.right+n.top+n.bottom?n.left+n.right>n.top+n.bottom?Math.min((t.width+n.left+n.right)/t.width,Mt(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,Mt(t,e)):1}function he(t,e,n){n===void 0&&(n=!1);var r=Bt(t,e);return be(t,n?On(r):r)}function Ji(t){return{width:t.right!==void 0&&t.left!==void 0?t.right-t.left:1/0,height:t.bottom!==void 0&&t.top!==void 0?t.bottom-t.top:1/0}}function np(t,e){return P(P({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}function Ca(t,e,n){n===void 0&&(n=!0);var r={};return Fe.forEach(function(s){var o=t[s],a=e[s];o!==void 0&&a!==void 0?r[s]=s==="left"||s==="top"?n?Math.max(o,a):Math.min(o,a):n?Math.min(o,a):Math.max(o,a):a!==void 0?r[s]=a:o!==void 0&&(r[s]=o)}),r}function Ln(t,e){return Ca(t,e,!0)}function Sa(t){var e=t.size,n=t.aspectRatio,r=t.ignoreMinimum,s=t.sizeRestrictions;return!!((e.correctRatio||G(e)>=n.minimum&&G(e)<=n.maximum)&&e.height<=s.maxHeight&&e.width<=s.maxWidth&&e.width&&e.height&&(r||e.height>=s.minHeight&&e.width>=s.minWidth))}function ka(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function Ge(t){var e=t.width,n=t.height,r=t.sizeRestrictions,s={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},o={width:Math.max(r.minWidth,Math.min(r.maxWidth,e)),height:Math.max(r.minHeight,Math.min(r.maxHeight,n))};function a(u,h){return h===void 0&&(h=!1),u.reduce(function(f,m){return Sa({size:m,aspectRatio:s,sizeRestrictions:r,ignoreMinimum:h})&&(!f||ka(m,{width:e,height:n})<ka(f,{width:e,height:n}))?m:f},null)}var d=[];[s.minimum,s.maximum].forEach(function(u){u&&d.push({width:o.width,height:o.width/u,correctRatio:!0},{width:o.height*u,height:o.height,correctRatio:!0})}),Sa({size:o,aspectRatio:s,sizeRestrictions:r})&&d.push(o);var c=a(d)||a(d,!0);return c&&{width:c.width,height:c.height}}function Qi(t){var e=t.event,n=t.coordinates,r=t.positionRestrictions,s=r===void 0?{}:r,o=be(n,e.directions);return be(o,Bt(o,s))}function ip(t){var e=t.coordinates,n=t.transform,r=t.imageSize,s=t.sizeRestrictions,o=t.positionRestrictions,a=t.aspectRatio,d=t.visibleArea,c=function(h,f){return Qi({coordinates:h,positionRestrictions:o,event:new Gi({left:f.left-h.left,top:f.top-h.top})})},u=P({},e);return(Array.isArray(n)?n:[n]).forEach(function(h){var f={};oe((f=typeof h=="function"?h({coordinates:u,imageSize:r,visibleArea:d}):h).width)&&oe(f.height)||(u=function(m,g){var C=P(P(P({},m),Ge({width:g.width,height:g.height,sizeRestrictions:s,aspectRatio:a})),{left:0,top:0});return c(C,{left:m.left,top:m.top})}(u,P(P({},u),f))),oe(f.left)&&oe(f.top)||(u=c(u,P(P({},u),f)))}),u}function rp(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,s=t.visibleArea;t.aspectRatio;var o=t.stencilSize,a=t.sizeRestrictions,d=t.positionRestrictions;t.stencilReference;var c,u,h,f=P({},r),m=P({},s),g=P({},o);c=G(g),u=G(f),h===void 0&&(h=.001),(c===0||u===0?Math.abs(u-c)<h:Math.abs(u/c)<1+h&&Math.abs(u/c)>1-h)||(f=P(P({},f),Ge({sizeRestrictions:a,width:f.width,height:f.height,aspectRatio:{minimum:G(g),maximum:G(g)}})));var C=Dn(m=Me(m,f.width*n.width/(m.width*g.width)),e({visibleArea:m,type:"resize"}));return C!==1&&(m=Me(m,C),f=Me(f,C)),m=he(m=be(m,xt(ue(f),ue(m))),e({visibleArea:m,type:"move"})),{coordinates:f=he(f,Ln(Oe(m),d)),visibleArea:m}}function sp(t){var e=t.event,n=t.getAreaRestrictions,r=t.boundaries,s=t.coordinates,o=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var d=P({},s),c=P({},o);if(s&&o&&e.type!=="manipulateImage"){var u={width:0,height:0};c.width,r.width,G(r)>G(d)?(u.height=.8*r.height,u.width=u.height*G(d)):(u.width=.8*r.width,u.height=u.width*G(d));var h=Dn(c=Me(c,d.width*r.width/(c.width*u.width)),n({visibleArea:c,type:"resize"}));c=Me(c,h),h!==1&&(u.height/=h,u.width/=h),c=he(c=be(c,xt(ue(d),ue(c))),n({visibleArea:c,type:"move"})),d=he(d,Ln(Oe(c),a))}return{coordinates:d,visibleArea:c}}function op(t){var e=t.event,n=t.coordinates,r=t.visibleArea,s=t.getAreaRestrictions,o=P({},r),a=P({},n);if(e.type==="setCoordinates"){var d=Math.max(0,a.width-o.width),c=Math.max(0,a.height-o.height);d>c?o=Me(o,Math.min(a.width/o.width,Mt(o,s({visibleArea:o,type:"resize"})))):c>d&&(o=Me(o,Math.min(a.height/o.height,Mt(o,s({visibleArea:o,type:"resize"}))))),o=he(o=be(o,On(Bt(a,Oe(o)))),s({visibleArea:o,type:"move"}))}return{visibleArea:o,coordinates:a}}function ap(t){var e=t.imageSize,n=t.visibleArea,r=t.coordinates,s=n||e;return{left:(n?n.left:0)+s.width/2-r.width/2,top:(n?n.top:0)+s.height/2-r.height/2}}function lp(t){var e=t.imageSize,n=t.visibleArea,r=t.aspectRatio,s=t.sizeRestrictions,o=n||e,a=Math.min(r.maximum||1/0,Math.max(r.minimum||0,G(o))),d=o.width<o.height?{width:.8*o.width,height:.8*o.width/a}:{height:.8*o.height,width:.8*o.height*a};return Ge(P(P({},d),{aspectRatio:r,sizeRestrictions:s}))}function cp(t){var e,n,r=t.imageSize,s=t.visibleArea,o=t.boundaries,a=t.aspectRatio,d=t.sizeRestrictions,c=t.stencilSize,u=s||r;return G(u)>G(o)?n=(e=c.height*u.height/o.height)*G(c):e=(n=c.width*u.width/o.width)/G(c),Ge({width:n,height:e,aspectRatio:a,sizeRestrictions:d})}function dp(t){var e=t.getAreaRestrictions,n=t.coordinates,r=t.imageSize,s=G(t.boundaries);if(n){var o={height:Math.max(n.height,r.height),width:Math.max(n.width,r.width)},a=wa({width:G(o)>s?o.width:o.height*s,height:G(o)>s?o.width/s:o.height},Ji(e())),d={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},c=_t(n,Oe(P({left:0,top:0},r))),u={};return!c.left&&!c.right&&d.width<=r.width&&(u.left=0,u.right=r.width),!c.top&&!c.bottom&&d.height<=r.height&&(u.top=0,u.bottom=r.height),he(d,u)}var h=G(r);return a={height:h>s?r.height:r.width/s,width:h>s?r.height*s:r.width},{left:r.width/2-a.width/2,top:r.height/2-a.height/2,width:a.width,height:a.height}}function Hn(t,e){return Ca(t,Oe(e))}function up(t){var e=t.event,n=t.coordinates,r=t.visibleArea,s=t.sizeRestrictions,o=t.getAreaRestrictions,a=t.positionRestrictions,d=t.adjustStencil,c=e.scale,u=e.move,h=P({},r),f=P({},n),m=1,g=1,C=c.factor&&Math.abs(c.factor-1)>.001;h=be(h,{left:u.left||0,top:u.top||0});var b={stencil:{minimum:Math.max(s.minWidth?s.minWidth/f.width:0,s.minHeight?s.minHeight/f.height:0),maximum:Math.min(s.maxWidth?s.maxWidth/f.width:1/0,s.maxHeight?s.maxHeight/f.height:1/0,Mt(f,a))},area:{maximum:Mt(h,o({visibleArea:h,type:"resize"}))}};c.factor&&C&&(c.factor<1?(g=Math.max(c.factor,b.stencil.minimum))>1&&(g=1):c.factor>1&&(g=Math.min(c.factor,Math.min(b.area.maximum,b.stencil.maximum)))<1&&(g=1)),g&&(h=Me(h,g,c.center));var S=n.left-r.left,I=r.width+r.left-(n.width+n.left),O=n.top-r.top,z=r.height+r.top-(n.height+n.top);return h=he(h=be(h,Bt(h,{left:a.left!==void 0?a.left-S*g:void 0,top:a.top!==void 0?a.top-O*g:void 0,bottom:a.bottom!==void 0?a.bottom+z*g:void 0,right:a.right!==void 0?a.right+I*g:void 0})),o({visibleArea:h,type:"move"})),f.width=f.width*g,f.height=f.height*g,f.left=h.left+S*g,f.top=h.top+O*g,f=he(f,Ln(Oe(h),a)),c.factor&&C&&d&&(c.factor>1?m=Math.min(b.area.maximum,c.factor)/g:c.factor<1&&(m=Math.max(f.height/h.height,f.width/h.width,c.factor/g)),m!==1&&(h=be(h=he(h=Me(h,m,c.factor>1?c.center:ue(f)),o({visibleArea:h,type:"move"})),On(Bt(f,Oe(h)))))),{coordinates:f,visibleArea:h}}function hp(t){var e=t.aspectRatio,n=t.getAreaRestrictions,r=t.coordinates,s=t.visibleArea,o=t.sizeRestrictions,a=t.positionRestrictions,d=t.imageSize,c=t.previousImageSize,u=t.angle,h=P({},r),f=P({},s),m=Qe(ue(P({left:0,top:0},c)),u);return(h=P(P({},Ge({sizeRestrictions:o,aspectRatio:e,width:h.width,height:h.height})),Qe(ue(h),u))).left-=m.left-d.width/2+h.width/2,h.top-=m.top-d.height/2+h.height/2,f=Me(f,Dn(f,n({visibleArea:f,type:"resize"}))),{coordinates:h=he(h,a),visibleArea:f=he(f=be(f,xt(ue(h),ue(r))),n({visibleArea:f,type:"move"}))}}function fp(t){var e=t.flip,n=t.previousFlip,r=t.rotate,s=t.getAreaRestrictions,o=t.coordinates,a=t.visibleArea,d=t.imageSize,c=P({},o),u=P({},a),h=n.horizontal!==e.horizontal,f=n.vertical!==e.vertical;if(h||f){var m=Qe({left:d.width/2,top:d.height/2},-r),g=Qe(ue(c),-r),C=Qe({left:h?m.left-(g.left-m.left):g.left,top:f?m.top-(g.top-m.top):g.top},r);c=be(c,xt(C,ue(c))),g=Qe(ue(u),-r),u=he(u=be(u,xt(C=Qe({left:h?m.left-(g.left-m.left):g.left,top:f?m.top-(g.top-m.top):g.top},r),ue(u))),s({visibleArea:u,type:"move"}))}return{coordinates:c,visibleArea:u}}function Ea(t){var e=t.directions,n=t.coordinates,r=t.positionRestrictions,s=r===void 0?{}:r,o=t.sizeRestrictions,a=t.preserveRatio,d=t.compensate,c=P({},e),u=De(n,c).width,h=De(n,c).height;u<0&&(c.left<0&&c.right<0?(c.left=-(n.width-o.minWidth)/(c.left/c.right),c.right=-(n.width-o.minWidth)/(c.right/c.left)):c.left<0?c.left=-(n.width-o.minWidth):c.right<0&&(c.right=-(n.width-o.minWidth))),h<0&&(c.top<0&&c.bottom<0?(c.top=-(n.height-o.minHeight)/(c.top/c.bottom),c.bottom=-(n.height-o.minHeight)/(c.bottom/c.top)):c.top<0?c.top=-(n.height-o.minHeight):c.bottom<0&&(c.bottom=-(n.height-o.minHeight)));var f=_t(De(n,c),s);d&&(f.left&&f.left>0&&f.right===0?(c.right+=f.left,c.left-=f.left):f.right&&f.right>0&&f.left===0&&(c.left+=f.right,c.right-=f.right),f.top&&f.top>0&&f.bottom===0?(c.bottom+=f.top,c.top-=f.top):f.bottom&&f.bottom>0&&f.top===0&&(c.top+=f.bottom,c.bottom-=f.bottom),f=_t(De(n,c),s));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Fe.forEach(function(b){var S=f[b];S&&c[b]&&(m[b]=Math.max(0,1-S/c[b]))}),a){var g=Math.min.apply(null,Fe.map(function(b){return m[b]}));g!==1/0&&Fe.forEach(function(b){c[b]*=g})}else Fe.forEach(function(b){m[b]!==1/0&&(c[b]*=m[b])});if(u=De(n,c).width,h=De(n,c).height,c.right+c.left&&(u>o.maxWidth?m.width=(o.maxWidth-n.width)/(c.right+c.left):u<o.minWidth&&(m.width=(o.minWidth-n.width)/(c.right+c.left))),c.bottom+c.top&&(h>o.maxHeight?m.height=(o.maxHeight-n.height)/(c.bottom+c.top):h<o.minHeight&&(m.height=(o.minHeight-n.height)/(c.bottom+c.top))),a){var C=Math.min(m.width,m.height);C!==1/0&&Fe.forEach(function(b){c[b]*=C})}else m.width!==1/0&&Qm.forEach(function(b){c[b]*=m.width}),m.height!==1/0&&Km.forEach(function(b){c[b]*=m.height});return c}function qn(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var mp=Ne("vue-simple-handler"),pp=Ne("vue-simple-handler-wrapper"),Ki={name:"SimpleHandler",components:{HandlerWrapper:ma},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(xe(t={},this.horizontalPosition,!!this.horizontalPosition),xe(t,this.verticalPosition,!!this.verticalPosition),xe(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),xe(t,"hover",this.hover),t);return{default:te(mp(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:te(pp(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Ki.render=function(t,e,n,r,s,o){var a=i.resolveComponent("HandlerWrapper");return i.openBlock(),i.createBlock(a,{class:o.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:o.onDrag,onDragEnd:o.onDragEnd,onEnter:o.onEnter,onLeave:o.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:o.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var gp=Ne("vue-simple-line"),yp=Ne("vue-simple-line-wrapper"),er={name:"SimpleLine",components:{LineWrapper:pa},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:te(gp(xe({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:te(yp(xe({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};er.render=function(t,e,n,r,s,o){var a=i.resolveComponent("LineWrapper");return i.openBlock(),i.createBlock(a,{class:o.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:o.onDrag,onDragEnd:o.onDragEnd,onEnter:o.onEnter,onLeave:o.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:o.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var tr=Ne("vue-bounding-box"),wp=["east","west",null],bp=["south","north",null],xa={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return Ki}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return er}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return wp.forEach(function(e){bp.forEach(function(n){if(e!==n){var r=la(e,n),s=r.name,o=r.classname;t.push({name:s,classname:o,verticalDirection:n,horizontalDirection:e})}})}),{points:t}},computed:{style:function(){var t={};return this.width&&this.height&&(t.width="".concat(this.width,"px"),t.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),t},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,n=this.linesClasses,r=this.linesWrappersClasses;return{root:tr(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:r}},lineNodes:function(){var t=this,e=[];return this.points.forEach(function(n){n.horizontalDirection&&n.verticalDirection||!t.lines[n.name]||e.push({name:n.name,component:t.linesComponent,class:te(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:te(t.classes.linesWrappers.default,t.classes.linesWrappers[n.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!t.resizable})}),e},handlerNodes:function(){var t=this,e=[],n=this.width,r=this.height;return this.points.forEach(function(s){if(t.handlers[s.name]){var o={name:s.name,component:t.handlersComponent,class:te(t.classes.handlers.default,t.classes.handlers[s.name]),wrapperClass:te(t.classes.handlersWrappers.default,t.classes.handlersWrappers[s.name]),hoverClass:t.classes.handlers.hover,verticalDirection:s.verticalDirection,horizontalDirection:s.horizontalDirection,disabled:!t.resizable};if(n&&r){var a=s.horizontalDirection,d=s.verticalDirection,c=a==="east"?n:a==="west"?0:n/2,u=d==="south"?r:d==="north"?0:r/2;o.wrapperClass=tr("handler"),o.wrapperStyle={transform:"translate(".concat(c,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(o.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else o.wrapperClass=tr("handler",xe({},s.classname,!0));e.push(o)}}),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,n){var r,s=t.shift(),o=s.left,a=s.top,d={left:0,right:0,top:0,bottom:0};e==="west"?d.left-=o:e==="east"&&(d.right+=o),n==="north"?d.top-=a:n==="south"&&(d.bottom+=a),!n&&e?r="width":n&&!e&&(r="height"),this.resizable&&this.$emit("resize",new Xm(d,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:r}))}},emits:["resize","resize-end"]};xa.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"box",class:o.classes.root,style:o.style},[i.renderSlot(t.$slots,"default"),i.createVNode("div",null,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.lineNodes,function(a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),{key:a.name,"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,position:a.name,disabled:a.disabled,onDrag:function(d){return o.onHandlerDrag(d,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[1]||(e[1]=function(d){return o.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.handlerNodes,function(a){return i.openBlock(),i.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),{"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,"horizontal-position":a.horizontalDirection,"vertical-position":a.verticalDirection,disabled:a.disabled,onDrag:function(d){return o.onHandlerDrag(d,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[2]||(e[2]=function(d){return o.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var Cp=Ne("vue-draggable-area"),Ma={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Cp()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&t.touches.length===1;e&&(this.touches=ft(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):fa({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&t.button===0){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top;this.anchor={x:t.clientX-n,y:t.clientY-r}},processMove:function(t,e){var n=ft(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),s=r.left,o=r.top;this.touches.length===1&&n.length===1&&this.$emit("move",new Gi({left:n[0].clientX-(s+this.anchor.x),top:n[0].clientY-(o+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};Ma.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return o.onTouchStart&&o.onTouchStart.apply(o,arguments)}),onMousedown:e[2]||(e[2]=function(){return o.onMouseDown&&o.onMouseDown.apply(o,arguments)})},[i.renderSlot(t.$slots,"default")],544)};function nr(t){var e,n;return{rotate:t.rotate||0,flip:{horizontal:((e=t==null?void 0:t.flip)===null||e===void 0?void 0:e.horizontal)||!1,vertical:((n=t==null?void 0:t.flip)===null||n===void 0?void 0:n.vertical)||!1}}}function Sp(t){return new Promise(function(e,n){try{if(t)if(/^data:/i.test(t))e(function(c){c=c.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(c),h=u.length,f=new ArrayBuffer(h),m=new Uint8Array(f),g=0;g<h;g++)m[g]=u.charCodeAt(g);return f}(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(c){e(c.target.result)},o=t,a=function(c){r.readAsArrayBuffer(c)},(d=new XMLHttpRequest).open("GET",o,!0),d.responseType="blob",d.onload=function(){this.status!=200&&this.status!==0||a(this.response)},d.send()}else{var s=new XMLHttpRequest;s.onreadystatechange=function(){s.readyState===4&&(s.status===200||s.status===0?e(s.response):n("Warning: could not load an image to parse its orientation"),s=null)},s.onprogress=function(){s.getResponseHeader("content-type")!=="image/jpeg"&&s.abort()},s.withCredentials=!1,s.open("GET",t,!0),s.responseType="arraybuffer",s.send(null)}else n("Error: the image is empty")}catch(c){n(c)}var o,a,d})}function Ba(t){var e=t.rotate,n=t.flip,r=t.scaleX,s=t.scaleY,o="";return o+=" rotate("+e+"deg) ",o+=" scaleX("+r*(n.horizontal?-1:1)+") ",o+=" scaleY("+s*(n.vertical?-1:1)+") "}function kp(t){try{var e,n=new DataView(t),r=void 0,s=void 0,o=void 0,a=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var d=n.byteLength,c=2;c+1<d;){if(n.getUint8(c)===255&&n.getUint8(c+1)===225){o=c;break}c++}if(o&&(r=o+10,function(g,C,b){var S,I="";for(S=C,b+=C;S<b;S++)I+=String.fromCharCode(g.getUint8(S));return I}(n,o+4,4)==="Exif")){var u=n.getUint16(r);if(((s=u===18761)||u===19789)&&n.getUint16(r+2,s)===42){var h=n.getUint32(r+4,s);h>=8&&(a=r+h)}}if(a){for(var f=n.getUint16(a,s),m=0;m<f;m++)if(c=a+12*m+2,n.getUint16(c,s)===274){c+=8,e=n.getUint16(c,s),n.setUint16(c,1,s);break}}return e}catch{return null}}function $a(t,e){var n=e.getBoundingClientRect(),r=n.left,s=n.top,o={left:0,top:0},a=0;return t.forEach(function(d){o.left+=(d.clientX-r)/t.length,o.top+=(d.clientY-s)/t.length}),t.forEach(function(d){a+=fa({x:o.left,y:o.top},{x:d.clientX-r,y:d.clientY-s})}),{centerMass:o,spread:a,count:t.length}}var Ia={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=_i(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(this.touches.length===1&&e.length===1)this.$emit("move",new jt({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var n=$a(e,this.$refs.container),r=this.oldGeometricProperties;r.count===n.count&&r.count>1&&this.$emit("resize",new jt({left:r.centerMass.left-n.centerMass.left,top:r.centerMass.top-n.centerMass.top},{factor:r.spread/n.spread,center:n.centerMass})),this.oldGeometricProperties=n}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?this.eventsFilter(t,this.transforming)!==!1:(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,n=e.getBoundingClientRect(),r=n.left,s=n.top,o=n.bottom,a=n.right;this.touches=ft(t.touches).filter(function(d){return d.clientX>r&&d.clientX<a&&d.clientY>s&&d.clientY<o}),this.oldGeometricProperties=$a(this.touches,e)}},onTouchEnd:function(t){t.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(t){var e=this;if(this.touches.length){var n=ft(t.touches).filter(function(r){return!r.identifier||e.touches.find(function(s){return s.identifier===r.identifier})});this.processEvent(t)&&(this.processMove(t,n),this.processStart())}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&t.buttons===1&&this.processEvent(t)){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(t){this.touches.length&&this.processEvent(t)&&this.processMove(t,[{clientX:t.clientX,clientY:t.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(t){if(this.wheelResize&&this.processEvent(t)){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top,s=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(d=+a)==0||ha(d)?d:d>0?1:-1),o={left:t.clientX-n,top:t.clientY-r};this.$emit("resize",new jt({},{factor:s,center:o})),this.touches.length||this.debouncedProcessEnd()}var a,d}},emits:["resize","move","transform-end"]};Ia.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return o.onTouchStart&&o.onTouchStart.apply(o,arguments)}),onMousedown:e[2]||(e[2]=function(){return o.onMouseDown&&o.onMouseDown.apply(o,arguments)}),onWheel:e[3]||(e[3]=function(){return o.onWheel&&o.onWheel.apply(o,arguments)})},[i.renderSlot(t.$slots,"default")],544)};var ir={components:{TransformableImage:Ia},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};ir.render=function(t,e,n,r,s,o){var a=i.resolveComponent("transformable-image");return i.openBlock(),i.createBlock(a,{"touch-move":n.touchMove,"touch-resize":n.touchResize,"mouse-move":n.mouseMove,"wheel-resize":n.wheelResize,onMove:e[1]||(e[1]=function(d){return t.$emit("move",d)}),onResize:e[2]||(e[2]=function(d){return t.$emit("resize",d)})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var Un=Ne("vue-preview"),Ra={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:Un({fill:this.fill}),wrapper:Un("wrapper"),imageWrapper:Un("image-wrapper"),image:te(Un("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=W(W({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,r=this.imageSize.height,s=ba({width:n,height:r},e.rotate),o={width:"".concat(n,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-s.width)*e.scaleX/2,top:(r-s.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*r/2}};return o.transform=`translate(
|
|
42
|
-
`.concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+Ba(e),this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){t.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}};Ra.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"root",class:o.classes.root,style:o.style},[i.createVNode("div",{ref:"wrapper",class:o.classes.wrapper,style:o.wrapperStyle},[i.withDirectives(i.createVNode("img",{ref:"image",src:n.image&&n.image.src,class:o.classes.image,style:o.imageStyle},null,14,["src"]),[[i.vShow,n.image&&n.image.src]])],6)],6)};var va={components:{Preview:Ra},inheritAttrs:!1};va.render=function(t,e,n,r,s,o){var a=i.resolveComponent("preview");return i.openBlock(),i.createBlock(a,i.mergeProps(t.$attrs,{fill:!0}),null,16)};var rr=Ne("vue-rectangle-stencil"),Na={name:"RectangleStencil",components:{StencilPreview:va,BoundingBox:xa,DraggableArea:Ma},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Ki}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return er}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:te(rr({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:te(rr("preview"),this.previewClass),boundingBox:te(rr("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,r=t.left,s=t.top,o={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(r,"px, ").concat(s,"px)")};return this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};Na.render=function(t,e,n,r,s,o){var a=i.resolveComponent("stencil-preview"),d=i.resolveComponent("draggable-area"),c=i.resolveComponent("bounding-box");return i.openBlock(),i.createBlock("div",{class:o.classes.stencil,style:o.style},[i.createVNode(c,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:o.classes.boundingBox,handlers:n.handlers,"handlers-component":n.handlersComponent,"handlers-classes":n.handlersClasses,"handlers-wrappers-classes":n.handlersWrappersClasses,lines:n.lines,"lines-component":n.linesComponent,"lines-classes":n.linesClasses,"lines-wrappers-classes":n.linesWrappersClasses,resizable:n.resizable,onResize:o.onResize,onResizeEnd:o.onResizeEnd},{default:i.withCtx(function(){return[i.createVNode(d,{movable:n.movable,onMove:o.onMove,onMoveEnd:o.onMoveEnd},{default:i.withCtx(function(){return[i.createVNode(a,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:o.classes.preview,transitions:n.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var Ep=["transitions"],Ze=Ne("vue-advanced-cropper"),Aa={name:"Cropper",components:{BackgroundWrapper:ir},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Na}},backgroundWrapperComponent:{type:[Object,String],default:function(){return ir}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return tp.indexOf(t)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(t){return!(typeof t=="string"&&t!=="fill"&&t!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,n=t.coordinates,r=t.aspectRatio,s=t.positionRestrictions,o=t.sizeRestrictions,a=P(P({},n),{right:n.left+n.width,bottom:n.top+n.height}),d=e.params||{},c=P({},e.directions),u=d.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};o.widthFrozen&&(c.left=0,c.right=0),o.heightFrozen&&(c.top=0,c.bottom=0),Fe.forEach(function(v){u[v]||(c[v]=0)});var h=De(a,c=Ea({coordinates:a,directions:c,sizeRestrictions:o,positionRestrictions:s})).width,f=De(a,c).height,m=d.preserveRatio?G(a):Yi(h/f,r);if(m){var g=d.respectDirection;if(g||(g=a.width>=a.height||m===1?"width":"height"),g==="width"){var C=h/m-a.height;if(u.top&&u.bottom){var b=c.top,S=c.bottom;c.bottom=qn(C,S,b),c.top=qn(C,b,S)}else u.bottom?c.bottom=C:u.top?c.top=C:u.right?c.right=0:u.left&&(c.left=0)}else if(g==="height"){var I=a.width-f*m;if(u.left&&u.right){var O=c.left,z=c.right;c.left=-qn(I,O,z),c.right=-qn(I,z,O)}else u.left?c.left=-I:u.right?c.right=-I:u.top?c.top=0:u.bottom&&(c.bottom=0)}c=Ea({directions:c,coordinates:a,sizeRestrictions:o,positionRestrictions:s,preserveRatio:!0,compensate:d.compensate})}return h=De(a,c).width,f=De(a,c).height,(m=d.preserveRatio?G(a):Yi(h/f,r))&&Math.abs(m-h/f)>.001&&Fe.forEach(function(v){u[v]||(c[v]=0)}),Qi({event:new Gi({left:-c.left,top:-c.top}),coordinates:{width:n.width+c.right+c.left,height:n.height+c.top+c.bottom,left:n.left,top:n.top},positionRestrictions:s})}},moveAlgorithm:{type:Function,default:Qi},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,r=G(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/r+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,r=t.aspectRatio,s=t.sizeRestrictions,o=t.positionRestrictions,a=P(P({},n),Ge({width:n.width,height:n.height,aspectRatio:r,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,s.minHeight),minWidth:Math.min(e.width,s.minWidth)}}));return a=he(a=be(a,xt(ue(n),ue(a))),Ln(Oe(e),o))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.getAreaRestrictions,s=t.coordinates,o=P({},e);o.height=o.width/G(n),o.top+=(e.height-o.height)/2,(s.height-o.height>0||s.width-o.width>0)&&(o=Me(o,Math.max(s.height/o.height,s.width/o.width)));var a=On(Bt(s,Oe(o=Me(o,Dn(o,r({visibleArea:o,type:"resize"}))))));return o.width<s.width&&(a.left=0),o.height<s.height&&(a.top=0),o=he(o=be(o,a),r({visibleArea:o,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.imageSize,s=t.imageRestriction,o=t.type,a={};return s==="fill-area"?a={left:0,top:0,right:r.width,bottom:r.height}:s==="fit-area"&&(G(n)>G(r)?(a={top:0,bottom:r.height},e&&o==="move"&&(e.width>r.width?(a.left=-(e.width-r.width)/2,a.right=r.width-a.left):(a.left=0,a.right=r.width))):(a={left:0,right:r.width},e&&o==="move"&&(e.height>r.height?(a.top=-(e.height-r.height)/2,a.bottom=r.height-a.top):(a.top=0,a.bottom=r.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,n={};return t.imageRestriction!=="none"&&(n={left:0,top:0,right:e.width,bottom:e.height}),n}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:W({},ga)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=function(e){return e*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var t=Wi(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Wi(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:oe(this.minWidth)?0:Fn(this.minWidth),minHeight:oe(this.minHeight)?0:Fn(this.minHeight),maxWidth:oe(this.maxWidth)?1/0:Fn(this.maxWidth),maxHeight:oe(this.maxHeight)?1/0:Fn(this.maxHeight)});if(t=function(r){var s=r.areaRestrictions,o=r.sizeRestrictions,a=r.boundaries,d=r.positionRestrictions,c=P(P({},o),{minWidth:o.minWidth!==void 0?o.minWidth:0,minHeight:o.minHeight!==void 0?o.minHeight:0,maxWidth:o.maxWidth!==void 0?o.maxWidth:1/0,maxHeight:o.maxHeight!==void 0?o.maxHeight:1/0});d.left!==void 0&&d.right!==void 0&&(c.maxWidth=Math.min(c.maxWidth,d.right-d.left)),d.bottom!==void 0&&d.top!==void 0&&(c.maxHeight=Math.min(c.maxHeight,d.bottom-d.top));var u=Ji(s),h=wa(a,u);return u.width<1/0&&(!c.maxWidth||c.maxWidth>h.width)&&(c.maxWidth=Math.min(c.maxWidth,h.width)),u.height<1/0&&(!c.maxHeight||c.maxHeight>h.height)&&(c.maxHeight=Math.min(c.maxHeight,h.height)),c.minWidth>c.maxWidth&&(c.minWidth=c.maxWidth,c.widthFrozen=!0),c.minHeight>c.maxHeight&&(c.minHeight=c.maxHeight,c.heightFrozen=!0),c}({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),n=Ji(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,n.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,n.height*e.height/this.boundaries.height),t.maxWidth<t.minWidth&&(t.minWidth=t.maxWidth),t.maxHeight<t.minHeight&&(t.minHeight=t.maxHeight)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:Ze(),image:te(Ze("image"),this.imageClass),stencil:Ze("stencil"),boundaries:te(Ze("boundaries"),this.boundariesClass),stretcher:te(Ze("stretcher")),background:te(Ze("background"),this.backgroundClass),foreground:te(Ze("foreground"),this.foregroundClass),imageWrapper:te(Ze("image-wrapper")),cropperWrapper:te(Ze("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,r=t.left,s=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(r-this.visibleArea.left)/this.coefficient,top:(s-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var t={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){var t=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e={left:(t.width-this.imageSize.width)/(2*this.coefficient),top:(t.height-this.imageSize.height)/(2*this.coefficient)},n={left:(1-1/this.coefficient)*t.width/2,top:(1-1/this.coefficient)*t.height/2},r=W(W({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),s={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e.left-n.left-this.imageTransforms.translateX,"px, ").concat(-e.top-n.top-this.imageTransforms.translateY,"px)")+Ba(r)};return this.transitionsOptions.enabled&&(s.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),s}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick(function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(n){return t[n]!==e[n]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=_i(this.update,this.debounce),this.debouncedDisableTransitions=_i(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(W({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:W({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?W({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?W({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,s=r===void 0||r;this.onManipulateImage(new jt({},{factor:1/t,center:e}),{normalize:!1,transitions:s})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,s=r===void 0||r;this.onManipulateImage(new jt({left:t||0,top:e||0}),{normalize:!1,transitions:s})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.autoZoom,s=r===void 0||r,o=n.transitions,a=o===void 0||o;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),s&&e.runAutoZoom("setCoordinates"),a&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t})},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then(function(){t.onChange()}):this.resetVisibleArea().then(function(){t.onChange()})},reset:function(){var t=this;return this.resetVisibleArea().then(function(){t.onChange(!1)})},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){t(),e.awaiting=!1}))},prepareResult:function(t){return this.roundResult?function(e){var n=e.coordinates,r=e.sizeRestrictions,s=e.positionRestrictions,o={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return o.width>r.maxWidth?o.width=Math.floor(n.width):o.width<r.minWidth&&(o.width=Math.ceil(n.width)),o.height>r.maxHeight?o.height=Math.floor(n.height):o.height<r.minHeight&&(o.height=Math.ceil(n.height)),he(o,s)}(W(W({},this.getPublicProperties()),{},{positionRestrictions:Hn(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,r){var s=this.autoZoomAlgorithm;s||(s=this.stencilSize?rp:this.autoZoom?sp:op);var o=s({event:{type:t,params:r},visibleArea:e,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return W(W({},o),{},{changed:!ya(o.visibleArea,e)||!ya(o.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n!==void 0&&n,s=Gm(e,Ep),o=this.processAutoZoom(t,this.visibleArea,this.coordinates,s),a=o.visibleArea,d=o.coordinates,c=o.changed;r&&c&&this.enableTransitions(),this.visibleArea=a,this.coordinates=d,r&&c&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var n=e.event,r=e.visibleArea,s=e.coefficient;if(n.type==="manipulateImage")return P(P({},n),{move:{left:n.move&&n.move.left?s*n.move.left:0,top:n.move&&n.move.top?s*n.move.top:0},scale:{factor:n.scale&&n.scale.factor?n.scale.factor:1,center:n.scale&&n.scale.center?{left:n.scale.center.left*s+r.left,top:n.scale.center.top*s+r.top}:null}});if(n.type==="resize"){var o=P(P({},n),{directions:P({},n.directions)});return Fe.forEach(function(d){o.directions[d]*=s}),o}if(n.type==="move"){var a=P(P({},n),{directions:P({},n.directions)});return ep.forEach(function(d){a.directions[d]*=s}),a}return n}(W(W({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,n=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(d,c,u){var h=u.rotate,f=u.flip,m={width:c.naturalWidth,height:c.naturalHeight},g=ba(m,h),C=d.getContext("2d");d.height=g.height,d.width=g.width,C.save();var b=Qe(ue(P({left:0,top:0},m)),h);return C.translate(-(b.left-g.width/2),-(b.top-g.height/2)),C.rotate(h*Math.PI/180),C.translate(f.horizontal?m.width:0,f.vertical?m.height:0),C.scale(f.horizontal?-1:1,f.vertical?-1:1),C.drawImage(c,0,0,m.width,m.height),C.restore(),d}(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=W({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),s=function(d){return d.find(function(c){return u=c,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},o=Ge({sizeRestrictions:{minWidth:s([r.width,r.minWidth])||0,minHeight:s([r.height,r.minHeight])||0,maxWidth:s([r.width,r.maxWidth])||1/0,maxHeight:s([r.height,r.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(r.maxArea&&o.width*o.height>r.maxArea){var a=Math.sqrt(r.maxArea/(o.width*o.height));o={width:Math.round(a*o.width),height:Math.round(a*o.height)}}return function(d,c,u,h,f){d.width=h?h.width:u.width,d.height=h?h.height:u.height;var m=d.getContext("2d");m.clearRect(0,0,d.width,d.height),f&&(f.imageSmoothingEnabled&&(m.imageSmoothingEnabled=f.imageSmoothingEnabled),f.imageSmoothingQuality&&(m.imageSmoothingQuality=f.imageSmoothingQuality),f.fillColor&&(m.fillStyle=f.fillColor,m.fillRect(0,0,d.width,d.height),m.save()));var g=u.left<0?-u.left:0,C=u.top<0?-u.top:0;m.drawImage(c,u.left+g,u.top+C,u.width,u.height,g*(d.width/u.width),C*(d.height/u.height),d.width,d.height)}(t,n,this.coordinates,o,r),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.visibleArea&&e?np(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?Hn(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return ip({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:r,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?cp:lp);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var r=Et(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,s=this.defaultPosition||ap,o=[r,function(a){var d=a.coordinates;return W({},Et(s)?s({coordinates:d,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&o.push.apply(o,ft(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(o,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout(function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,n=this.$refs.cropper;return this.initStretcher({cropper:n,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then(function(){var r={cropper:n,imageSize:t.imageSize};if(Et(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=function(s){var o=s.cropper,a=s.imageSize,d=o.clientHeight,c=o.clientWidth,u=d,h=a.width*d/a.height;return h>c&&(h=c,u=a.height*c/a.width),{width:h,height:u}}(r):t.boundaries=function(s){var o=s.cropper;return{width:o.clientWidth,height:o.clientHeight}}(r),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=W(W({},this.defaultImageTransforms),{},{flip:W({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,r,s,o,a,d=t.defaultVisibleArea||dp;t.visibleArea=Et(d)?d({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:t.priority!=="visible-area"?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions},n=e.visibleArea,r=e.boundaries,s=e.getAreaRestrictions,o=P({},n),a=G(r),o.width/o.height!==a&&(o.height=o.width/a),he(o,s({visibleArea:o,type:"move"}))),t.priority==="visible-area"?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")}).catch(function(){t.visibleArea=null})},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then(function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")}).catch(function(){t.visibleArea=null})},onChange:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];t&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(s){if(da(s))return!1;var o=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(s)||[],d={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},c=function(u){return u.port||((u.protocol||o.protocol)==="http"?80:433)};return!(!d.protocol&&!d.host&&!d.port||d.protocol&&d.protocol==o.protocol&&d.host&&d.host==o.host&&d.host&&c(d)==c(o))}(this.src)){var n=oe(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var r=(t=this.src,new Promise(function(s){Sp(t).then(function(o){var a=kp(o);s(o?{source:t,arrayBuffer:o,orientation:a}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(o){console.warn(o),s({source:t,arrayBuffer:null,orientation:null})})}));setTimeout(function(){r.then(e.onParseImage)},this.transitionTime)}else setTimeout(function(){e.onParseImage({source:e.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){t.$emit("ready"),t.onChange(!1)}))},onParseImage:function(t){var e=this,n=t.source,r=t.arrayBuffer,s=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,r&&s&&s>1?ca(n)||!da(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([r])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(o){for(var a=[],d=new Uint8Array(o);d.length>0;){var c=d.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(c):c.slice())),d=d.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(r):this.imageAttributes.src=n,Et(this.defaultTransforms)?this.appliedImageTransforms=nr(this.defaultTransforms()):Tn(this.defaultTransforms)?this.appliedImageTransforms=nr(this.defaultTransforms):this.appliedImageTransforms=function(o){var a=nr({});if(o)switch(o){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(s),this.defaultImageTransforms=W(W({},this.appliedImageTransforms),{},{flip:W({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var o=e.$refs.image;o&&o.complete&&(function(a){return!!a.naturalWidth}(o)?e.onSuccessLoadImage():e.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender(function(){e.coordinates=e.moveAlgorithm(W(W({},e.getPublicProperties()),{},{positionRestrictions:Hn(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()})},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var n=e.sizeRestrictions,r=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(W(W({},e.getPublicProperties()),{},{positionRestrictions:Hn(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,e.visibleArea.width),maxHeight:Math.min(n.maxHeight,e.visibleArea.height),minWidth:Math.max(n.minWidth,r),minHeight:Math.max(n.minHeight,r)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1})},onManipulateImage:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=e.transitions,r=n!==void 0&&n,s=e.normalize,o=s===void 0||s;r&&this.enableTransitions();var a=up(W(W({},this.getPublicProperties()),{},{event:o?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),d=a.visibleArea,c=a.coordinates;this.visibleArea=d,this.coordinates=c,this.runAutoZoom("manipulateImage"),this.onChange(),r&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.visibleArea,n=t.type,r=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:r})},getAspectRatio:function(t){var e,n,r=this.stencilProps,s=r.aspectRatio,o=r.minAspectRatio,a=r.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var d=this.$refs.stencil.aspectRatios();e=d.minimum,n=d.maximum}if(oe(e)&&(e=oe(s)?o:s),oe(n)&&(n=oe(s)?a:s),!t&&(oe(e)||oe(n))){var c=this.getStencilSize(),u=c?G(c):null;oe(e)&&(e=ua(u)?u:void 0),oe(n)&&(n=ua(u)?u:void 0)}return{minimum:e,maximum:n}},getStencilSize:function(){if(this.stencilSize)return t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},e=t.boundaries,n=t.stencilSize,r=t.aspectRatio,Yi(G(s=Et(n)?n({boundaries:e,aspectRatio:r}):n),r)&&(s=Ge({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:r.minimum,maximum:r.maximum}})),(s.width>e.width||s.height>e.height)&&(s=Ge({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:G(s),maximum:G(s)}})),s;var t,e,n,r,s},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return W({},ga)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,s=r===void 0||r;if(!this.transitionsActive){s&&this.enableTransitions();var o=W({},this.imageTransforms.flip),a=fp({flip:{horizontal:t?!o.horizontal:o.horizontal,vertical:e?!o.vertical:o.vertical},previousFlip:o,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),d=a.visibleArea,c=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=d,this.coordinates=c,this.onChange(),s&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n===void 0||n;if(!this.transitionsActive){r&&this.enableTransitions();var s=W({},this.imageSize);this.appliedImageTransforms.rotate+=t;var o=hp({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:s,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=o.visibleArea,d=o.coordinates,c=this.processAutoZoom("rotateImage",a,d);a=c.visibleArea,d=c.coordinates,this.visibleArea=a,this.coordinates=d,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},xp={key:0,ref:"canvas",style:{display:"none"}},Mp={key:1,ref:"sourceCanvas",style:{display:"none"}};Aa.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"cropper",class:o.classes.cropper},[i.createVNode("div",{ref:"stretcher",class:o.classes.stretcher},null,2),i.createVNode("div",{class:o.classes.boundaries,style:o.boundariesStyle},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.backgroundWrapperComponent),{class:o.classes.cropperWrapper,"wheel-resize":o.settings.resizeImage.wheel,"touch-resize":o.settings.resizeImage.touch,"touch-move":o.settings.moveImage.touch,"mouse-move":o.settings.moveImage.mouse,onMove:o.onManipulateImage,onResize:o.onManipulateImage},{default:i.withCtx(function(){return[i.createVNode("div",{class:o.classes.background,style:o.boundariesStyle},null,6),i.createVNode("div",{class:o.classes.imageWrapper},[i.createVNode("img",{ref:"image",crossorigin:s.imageAttributes.crossOrigin,src:s.imageAttributes.src,class:o.classes.image,style:o.imageStyle,onMousedown:e[1]||(e[1]=i.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),i.createVNode("div",{class:o.classes.foreground,style:o.boundariesStyle},null,6),i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.stencilComponent),i.mergeProps({ref:"stencil",image:o.image,coordinates:s.coordinates,"stencil-coordinates":o.stencilCoordinates,transitions:o.transitionsOptions},n.stencilProps,{onResize:o.onResize,onResizeEnd:o.onResizeEnd,onMove:o.onMove,onMoveEnd:o.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[i.vShow,s.imageLoaded]]),n.canvas?(i.openBlock(),i.createBlock("canvas",xp,null,512)):i.createCommentVNode("",!0),n.canvas?(i.openBlock(),i.createBlock("canvas",Mp,null,512)):i.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const Bp={width:0,height:0,left:0,top:0};class sr{constructor(){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"coordinates",Bp)}setCoordinates(e){this.coordinates=e}getCoordinates(){return this.coordinates}static Create(e,n=0,r){const s=new sr;return s.src=e,s.ratio=n,s.id=r,s}setRatio(e){this.ratio=e}getRatio(){return this.ratio}setSrc(e){this.src=e}getSrc(){return this.src}}const $p={class:"background-container"},Ip={class:"dialog-footer"},Rp=E(i.defineComponent({__name:"ImageCropper",props:{src:{type:String,required:!0},ratio:{type:Number,required:!1,default:1}},emits:["crop","close","update:ratio"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.ratio),o=i.ref(sr.Create(n.src,n.ratio));o.value.setRatio(s.value);const a=()=>{o.value.setRatio(s.value)},d=i.ref(),c=async()=>{const u=d.value.getResult();u&&u.canvas.toBlob(h=>{var f;r("crop",{blob:h,src:(f=u.canvas)==null?void 0:f.toDataURL()}),r("update:ratio",o.value.coordinates.width/o.value.coordinates.height)})};return(u,h)=>(i.openBlock(),i.createElementBlock("div",$p,[i.createVNode(Ti,{modelValue:i.unref(s),"onUpdate:modelValue":h[0]||(h[0]=f=>i.isRef(s)?s.value=f:null),label:"Задайте пропорции фото",width:"100%",margin:"0 0 20px 0",onChange:a},{default:i.withCtx(()=>h[2]||(h[2]=[i.createElementVNode("option",{label:"2:3 (формат A4)",value:2/3},null,-1),i.createElementVNode("option",{label:"4:3 (для карточек новостей)",value:4/3},null,-1),i.createElementVNode("option",{label:"1:1 (для фото сотрудников)",value:1},null,-1),i.createElementVNode("option",{label:"3:2",value:3/2},null,-1),i.createElementVNode("option",{label:"16:9",value:16/9},null,-1),i.createElementVNode("option",{label:"3:4 (вертикальное изображение)",value:3/4},null,-1),i.createElementVNode("option",{label:"Задать пропорции вручную",value:0},null,-1)])),_:1},8,["modelValue"]),i.createVNode(i.unref(Aa),{ref_key:"cropperRef",ref:d,src:i.unref(o).src,"stencil-props":{aspectRatio:i.unref(o).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:h[1]||(h[1]=f=>i.unref(o).setCoordinates(f.coordinates))},null,8,["src","stencil-props"]),i.createElementVNode("div",Ip,[i.createVNode(vn,{skin:"text",type:"primary",text:"Сохранить",onClick:c})])]))}}),[["__scopeId","data-v-7b32def2"]]),vp=E(i.defineComponent({__name:"IconUploaderChange",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#uploader-change"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"uploader-change",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M12.825 15.783C12.175 15.787 11.5393 15.7173 10.918 15.574C10.2967 15.4307 9.762 15.1347 9.314 14.686C8.95467 14.3273 8.678 13.9173 8.484 13.456C8.28933 12.9947 8.192 12.5113 8.192 12.006C8.192 11.788 8.207 11.5807 8.237 11.384C8.26633 11.1867 8.31867 10.9873 8.394 10.786C8.43533 10.6633 8.43133 10.5437 8.382 10.427C8.33267 10.3103 8.25467 10.2293 8.148 10.184C8.038 10.1393 7.92567 10.1427 7.811 10.194C7.69633 10.2453 7.61833 10.3327 7.577 10.456C7.49367 10.706 7.428 10.9593 7.38 11.216C7.332 11.472 7.308 11.7333 7.308 12C7.308 12.628 7.42733 13.227 7.666 13.797C7.90533 14.367 8.24533 14.8723 8.686 15.313C9.20067 15.8437 9.81667 16.202 10.534 16.388C11.2513 16.5747 11.9797 16.6697 12.719 16.673L11.756 17.637C11.67 17.723 11.6237 17.8243 11.617 17.941C11.6103 18.0577 11.6567 18.1653 11.756 18.264C11.8553 18.3627 11.9597 18.412 12.069 18.412C12.1783 18.412 12.283 18.3627 12.383 18.264L13.906 16.741C14.0673 16.579 14.148 16.3903 14.148 16.175C14.148 15.9597 14.0673 15.7713 13.906 15.61L12.383 14.087C12.2963 14.0003 12.195 13.954 12.079 13.948C11.9623 13.9413 11.8547 13.9877 11.756 14.087C11.6573 14.1863 11.608 14.2907 11.608 14.4C11.608 14.5093 11.6573 14.614 11.756 14.714L12.825 15.783ZM11.189 8.212C11.839 8.212 12.4753 8.28333 13.098 8.426C13.7213 8.56867 14.2573 8.86433 14.706 9.313C15.0647 9.67233 15.3413 10.0827 15.536 10.544C15.7307 11.0053 15.8277 11.4887 15.827 11.994C15.827 12.212 15.8123 12.4193 15.783 12.616C15.7537 12.8127 15.701 13.0117 15.625 13.213C15.5843 13.3363 15.5887 13.4573 15.638 13.576C15.6873 13.6947 15.765 13.7763 15.871 13.821C15.9817 13.8657 16.0943 13.8657 16.209 13.821C16.3237 13.7763 16.4013 13.6923 16.442 13.569C16.5253 13.319 16.5913 13.0617 16.64 12.797C16.688 12.5323 16.712 12.2667 16.712 12C16.712 11.372 16.5943 10.773 16.359 10.203C16.1237 9.633 15.7837 9.12567 15.339 8.681C14.8203 8.14967 14.2023 7.79233 13.485 7.609C12.7683 7.425 12.04 7.333 11.3 7.333L12.27 6.363C12.3513 6.277 12.3953 6.17567 12.402 6.059C12.4087 5.94233 12.3627 5.83467 12.264 5.736C12.1653 5.63733 12.0607 5.58833 11.95 5.589C11.8393 5.58967 11.735 5.63867 11.637 5.736L10.114 7.26C9.952 7.422 9.871 7.61067 9.871 7.826C9.871 8.04133 9.952 8.22967 10.114 8.391L11.637 9.914C11.723 10.0007 11.8243 10.047 11.941 10.053C12.0577 10.059 12.1653 10.013 12.264 9.915C12.3627 9.817 12.412 9.71233 12.412 9.601C12.412 9.48967 12.3627 9.38533 12.264 9.288L11.189 8.212ZM12 21C10.7573 21 9.58867 20.7633 8.494 20.29C7.39933 19.816 6.447 19.174 5.637 18.364C4.82633 17.5533 4.18433 16.6007 3.711 15.506C3.237 14.4113 3 13.2427 3 12C3 10.7573 3.23667 9.58867 3.71 8.494C4.18333 7.39933 4.82567 6.447 5.637 5.637C6.44833 4.827 7.40067 4.18467 8.494 3.71C9.58933 3.23667 10.758 3 12 3C13.242 3 14.4107 3.23667 15.506 3.71C16.6007 4.184 17.553 4.82633 18.363 5.637C19.1737 6.447 19.8157 7.39933 20.289 8.494C20.763 9.58933 21 10.758 21 12C21 13.242 20.7633 14.4107 20.29 15.506C19.816 16.6007 19.174 17.553 18.364 18.363C17.5533 19.1737 16.6007 19.8157 15.506 20.289C14.4113 20.763 13.2427 21 12 21ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-24be7852"]]),Np=E(i.defineComponent({__name:"IconUploaderDel",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#uploader-del"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"uploader-del",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M7.616 20.0005C7.168 20.0005 6.78667 19.8431 6.472 19.5285C6.15733 19.2138 6 18.8328 6 18.3855V6.00047H5V5.00047H9V4.23047H15V5.00047H19V6.00047H18V18.3855C18 18.8455 17.846 19.2298 17.538 19.5385C17.23 19.8471 16.8453 20.0011 16.384 20.0005H7.616ZM17 6.00047H7V18.3855C7 18.5648 7.05767 18.7121 7.173 18.8275C7.28833 18.9428 7.436 19.0005 7.616 19.0005H16.385C16.5383 19.0005 16.6793 18.9365 16.808 18.8085C16.9367 18.6805 17.0007 18.5391 17 18.3845V6.00047ZM9.808 17.0005H10.808V8.00047H9.808V17.0005ZM13.192 17.0005H14.192V8.00047H13.192V17.0005Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-dd770f25"]]),Ap=E(i.defineComponent({__name:"IconUploaderPlus",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#uploader-plus"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"uploader-plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[i.createElementVNode("path",{d:"M8 12H12V8H13V12H17V13H13V17H12V13H8V12ZM12.5 3C15.0196 3 17.4359 4.00089 19.2175 5.78249C20.9991 7.56408 22 9.98044 22 12.5C22 15.0196 20.9991 17.4359 19.2175 19.2175C17.4359 20.9991 15.0196 22 12.5 22C9.98044 22 7.56408 20.9991 5.78249 19.2175C4.00089 17.4359 3 15.0196 3 12.5C3 9.98044 4.00089 7.56408 5.78249 5.78249C7.56408 4.00089 9.98044 3 12.5 3ZM12.5 4C10.2457 4 8.08365 4.89553 6.48959 6.48959C4.89553 8.08365 4 10.2457 4 12.5C4 14.7543 4.89553 16.9163 6.48959 18.5104C8.08365 20.1045 10.2457 21 12.5 21C13.6162 21 14.7215 20.7801 15.7528 20.353C16.7841 19.9258 17.7211 19.2997 18.5104 18.5104C19.2997 17.7211 19.9258 16.7841 20.353 15.7528C20.7801 14.7215 21 13.6162 21 12.5C21 10.2457 20.1045 8.08365 18.5104 6.48959C16.9163 4.89553 14.7543 4 12.5 4Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-92c28425"]]),Pp={key:0},zp=["src"],Vp={class:"tools-button"},Tp={key:1},Fp=["id"],Op=i.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:fe,required:!0,default:new fe},height:{type:Number,default:150},emitCrop:{type:Boolean,default:!1},ratio:{type:Number,required:!1,default:1}},emits:["crop","removeFile","update:ratio"],setup(t,{emit:e}){const n=i.computed(()=>({width:o.height*f.value+"px",height:o.height+"px"})),r=i.computed(()=>({width:f.value<.66?o.height*.66+"px":o.height*f.value+"px",height:o.height+"px"})),s=i.computed(()=>({width:f.value<.66?o.height*.66+"px":o.height*f.value+"px",height:o.height+"px"})),o=t,a=e,d=i.ref(void 0),c=ee.GUID(),u=i.ref(!1),h=i.ref(),f=i.ref(o.ratio),m=i.ref(""),g=()=>{d.value=void 0,f.value=1,a("update:ratio",1),a("removeFile"),b=document.getElementById(c),b.value=""},C=z=>{o.fileInfo.setFile(z),o.fileInfo.fileSystemPath&&(d.value=o.fileInfo),u.value=!1,a("crop")};i.watch(()=>[o.fileInfo.description,o.fileInfo.order,o.fileInfo.fileSystemPath],()=>{o.fileInfo.fileSystemPath&&(d.value=o.fileInfo,d.value.url=o.fileInfo.getFileUrl())}),i.onBeforeMount(()=>{o.fileInfo.fileSystemPath&&(d.value=o.fileInfo,d.value.url=o.fileInfo.getFileUrl())});let b=null;i.onMounted(()=>{document.getElementById("drop-area")&&(b=document.getElementById(c))});const S=()=>{b&&b.click()},I=z=>{m.value=z.url,u.value=!0},O=()=>{if(!b||!b.files||!b.files.length)return;const z=b.files[0];z.url=URL.createObjectURL(z),d.value=z,o.fileInfo.setFile(z),o.withCrop&&I(d.value)};return i.watch(f,z=>{console.log("watchRatio",z,o.ratio),a("update:ratio",z),console.log("watchRatio2",o.ratio)}),(z,v)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:"drop-area",class:"img-container",style:i.normalizeStyle(i.unref(n))},[i.unref(d)?(i.openBlock(),i.createElementBlock("div",Pp,[i.createElementVNode("div",{class:"img-block",style:i.normalizeStyle(i.unref(r))},[i.createElementVNode("img",{src:i.unref(d).url,alt:"upload-image"},null,8,zp)],4),i.createElementVNode("div",Vp,[i.createElementVNode("div",{class:"ins",style:i.normalizeStyle(i.unref(s))},[i.createElementVNode("div",{class:"change",onClick:v[0]||(v[0]=H=>I(i.unref(d)))},[i.createVNode(vp,{margin:"0 10px 0 0",size:"40px"})]),i.createElementVNode("div",{claSS:"del",onClick:v[1]||(v[1]=H=>g())},[i.createVNode(Np,{size:"40px"})])],4)])])):(i.openBlock(),i.createElementBlock("div",Tp,[i.createElementVNode("div",{class:"add-button",style:i.normalizeStyle({width:t.height*i.unref(f)-2+"px",height:t.height-2+"px"}),onClick:S},[i.createVNode(Ap,{size:"40px"})],4)]))],4),i.createElementVNode("input",{id:i.unref(c),ref_key:"uploader",ref:h,hidden:"",type:"file",onChange:O},null,40,Fp),i.createVNode(zn,{show:i.unref(u),title:"Настройка изображения","max-height":"90vh",top:"5vh"},{default:i.withCtx(()=>[i.createVNode(Rp,{ratio:i.unref(f),"onUpdate:ratio":v[2]||(v[2]=H=>i.isRef(f)?f.value=H:null),src:i.unref(m),onCrop:C,onClose:v[3]||(v[3]=H=>u.value=!1)},null,8,["ratio","src"])]),_:1},8,["show"])],64))}}),Pa=E(Op,[["__scopeId","data-v-62bda261"]]);function za(t){t.component("PTabs",ra),t.component("PUploaderFile",sa),t.component("PUploaderImage",Pa),t.component("PAuthForm",qi),t.component("PAuthModal",na),t.component("PNameEdit",ia)}const Dp=Object.freeze(Object.defineProperty({__proto__:null,PAuthForm:qi,PAuthModal:na,PNameEdit:ia,PTabs:ra,PUploaderFile:sa,PUploaderImage:Pa,default:za},Symbol.toStringTag,{value:"Module"})),Lp={install:function(t){to(t),ta(t),Wo(t),za(t),Po(t)}},Hp=["PF","PFM"];j.Auth=re,j.AuthButtonLogin=Zn,j.AuthButtonRefresh=ur,j.AuthButtonRegister=Xn,j.AuthButtonRestore=Yt,j.AuthChunks=le,j.AuthFieldsIds=qe,j.AuthFormSettings=pr,j.AuthMethods=mt,j.EmailField=Qt,j.LoginField=Ph,j.PF=A,j.PFM=Ah,j.PasswordField=Kt,j.PasswordRepeatField=mr,j.atoms=Sf,j.components=km,j.icons=Em,j.molecules=Tm,j.organisms=Dp,j.pfName=Hp,j.servicesComponents=Lp,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
41
|
+
***************************************************************************** */function aa(t,e){var n,r;return t&&e?(n=""+t+e[0].toUpperCase()+e.slice(1),r=t+"-"+e):(n=t||e,r=t||e),{name:n,classname:r}}function la(t){return/^blob:/.test(t)}function ca(t){return la(t)||function(e){return/^data:/.test(e)}(t)}function Et(t){return!!(t&&t.constructor&&t.call&&t.apply)}function oe(t){return t===void 0}function Tn(t){return typeof t=="object"&&t!==null}function Wi(t,e,n){var r={};return Tn(t)?(Object.keys(e).forEach(function(s){oe(t[s])?r[s]=e[s]:Tn(e[s])?Tn(t[s])?r[s]=Wi(t[s],e[s],n[s]):r[s]=t[s]?e[s]:n[s]:e[s]===!0||e[s]===!1?r[s]=!!t[s]:r[s]=t[s]}),r):t?e:n}function Fn(t){var e=Number(t);return Number.isNaN(e)?t:e}function da(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!ua(t)}function ua(t){return t!=t}function ha(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var _t=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},qm=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},Gi=function(t){this.type="move",this.directions=t},Um=function(){function t(e,n,r,s,o){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=s,this.element=n,this.anchor=o}return t.prototype.shift=function(){var e=this,n=e.element,r=e.anchor,s=e.position;if(n){var o=n.getBoundingClientRect(),a=o.left,d=o.top;return{left:s.left-a-r.left,top:s.top-d-r.top}}return{left:0,top:0}},t}(),Zi={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&t.touches.length===1&&(this.touches=ft(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce(function(e,n){return{clientX:e.clientX+n.clientX/t.touches.length,clientY:e.clientY+n.clientY/t.touches.length}},{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),n=e.left,r=e.right,s=e.bottom,o=e.top;this.anchor={left:t.clientX-n,top:t.clientY-o,bottom:s-t.clientY,right:r-t.clientX}},processMove:function(t,e){var n=ft(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var r=this.$refs.draggable;this.$emit("drag",new Um(t,r,{left:n[0].clientX,top:n[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=n}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};Zi.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"draggable",class:n.classname,onTouchstart:e[1]||(e[1]=function(){return o.onTouchStart&&o.onTouchStart.apply(o,arguments)}),onMousedown:e[2]||(e[2]=function(){return o.onMouseDown&&o.onMouseDown.apply(o,arguments)}),onMouseover:e[3]||(e[3]=function(){return o.onMouseOver&&o.onMouseOver.apply(o,arguments)}),onMouseleave:e[4]||(e[4]=function(){return o.onMouseLeave&&o.onMouseLeave.apply(o,arguments)})},[i.renderSlot(t.$slots,"default")],34)};var Xi=Ne("vue-handler-wrapper"),fa={name:"HandlerWrapper",components:{DraggableElement:Zi},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,n=aa(this.horizontalPosition,this.verticalPosition);t=Xi((xe(e={},n.classname,!0),xe(e,"disabled",this.disabled),e))}else t=Xi({disabled:this.disabled});return{root:t,draggable:Xi("draggable")}}},emits:["leave","enter","drag","drag-end"]};fa.render=function(t,e,n,r,s,o){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock("div",{class:o.classes.root},[i.createVNode(a,{class:o.classes.draggable,onDrag:e[1]||(e[1]=function(d){return t.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])],2)};var _m=Ne("vue-line-wrapper"),ma={name:"LineWrapper",components:{DraggableElement:Zi},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return _m((xe(t={},this.position,!0),xe(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};ma.render=function(t,e,n,r,s,o){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock(a,{class:o.classname,onDrag:e[1]||(e[1]=function(d){return t.$emit("drag",d)}),onDragEnd:e[2]||(e[2]=function(d){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(d){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(d){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])};var Fe=["left","right","top","bottom"],jm=["left","right"],Wm=["top","bottom"],Gm=["left","top"],Zm=["fill-area","fit-area","stencil","none"],pa={left:0,top:0,width:0,height:0};function ga(t,e,n){return!(n=n||["width","height","left","top"]).some(function(r){return t[r]!==e[r]})}function Oe(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function xt(t,e){return{left:t.left-e.left,top:t.top-e.top}}function ue(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function jt(t,e){var n={left:0,top:0,right:0,bottom:0};return Fe.forEach(function(r){var s=e[r],o=Oe(t)[r];n[r]=s!==void 0&&o!==void 0?r==="left"||r==="top"?Math.max(0,s-o):Math.max(0,o-s):0}),n}function De(t,e){return{left:t.left-e.left,top:t.top-e.top,width:t.width+e.left+e.right,height:t.height+e.top+e.bottom}}function On(t){return{left:-t.left,top:-t.top}}function be(t,e){return z(z({},t),{left:t.left+e.left,top:t.top+e.top})}function Me(t,e,n,r){if(e!==1){if(n){var s=ue(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-s.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-s.top)*(1-e)}}return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2,top:t.top+t.height*(1-e)/2}}return t}function G(t){return t.width/t.height}function Mt(t,e){return Math.min(e.right!==void 0&&e.left!==void 0?(e.right-e.left)/t.width:1/0,e.bottom!==void 0&&e.top!==void 0?(e.bottom-e.top)/t.height:1/0)}function Bt(t,e){var n={left:0,top:0},r=jt(t,e);return r.left&&r.left>0?n.left=r.left:r.right&&r.right>0&&(n.left=-r.right),r.top&&r.top>0?n.top=r.top:r.bottom&&r.bottom>0&&(n.top=-r.bottom),n}function Yi(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function ya(t,e){var n=G(t),r=G(e);return e.width<1/0&&e.height<1/0?n>r?{width:e.width,height:e.width/n}:{width:e.height*n,height:e.height}:e.width<1/0?{width:e.width,height:e.width/n}:e.height<1/0?{width:e.height*n,height:e.height}:t}function wa(t,e){var n=e*Math.PI/180;return{width:Math.abs(t.width*Math.cos(n))+Math.abs(t.height*Math.sin(n)),height:Math.abs(t.width*Math.sin(n))+Math.abs(t.height*Math.cos(n))}}function Qe(t,e){var n=e*Math.PI/180;return{left:t.left*Math.cos(n)-t.top*Math.sin(n),top:t.left*Math.sin(n)+t.top*Math.cos(n)}}function Dn(t,e){var n=jt(he(t,e),e);return n.left+n.right+n.top+n.bottom?n.left+n.right>n.top+n.bottom?Math.min((t.width+n.left+n.right)/t.width,Mt(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,Mt(t,e)):1}function he(t,e,n){n===void 0&&(n=!1);var r=Bt(t,e);return be(t,n?On(r):r)}function Ji(t){return{width:t.right!==void 0&&t.left!==void 0?t.right-t.left:1/0,height:t.bottom!==void 0&&t.top!==void 0?t.bottom-t.top:1/0}}function Xm(t,e){return z(z({},t),{minWidth:Math.min(e.width,t.minWidth),minHeight:Math.min(e.height,t.minHeight),maxWidth:Math.min(e.width,t.maxWidth),maxHeight:Math.min(e.height,t.maxHeight)})}function ba(t,e,n){n===void 0&&(n=!0);var r={};return Fe.forEach(function(s){var o=t[s],a=e[s];o!==void 0&&a!==void 0?r[s]=s==="left"||s==="top"?n?Math.max(o,a):Math.min(o,a):n?Math.min(o,a):Math.max(o,a):a!==void 0?r[s]=a:o!==void 0&&(r[s]=o)}),r}function Ln(t,e){return ba(t,e,!0)}function Ca(t){var e=t.size,n=t.aspectRatio,r=t.ignoreMinimum,s=t.sizeRestrictions;return!!((e.correctRatio||G(e)>=n.minimum&&G(e)<=n.maximum)&&e.height<=s.maxHeight&&e.width<=s.maxWidth&&e.width&&e.height&&(r||e.height>=s.minHeight&&e.width>=s.minWidth))}function Sa(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function Ge(t){var e=t.width,n=t.height,r=t.sizeRestrictions,s={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},o={width:Math.max(r.minWidth,Math.min(r.maxWidth,e)),height:Math.max(r.minHeight,Math.min(r.maxHeight,n))};function a(u,h){return h===void 0&&(h=!1),u.reduce(function(f,m){return Ca({size:m,aspectRatio:s,sizeRestrictions:r,ignoreMinimum:h})&&(!f||Sa(m,{width:e,height:n})<Sa(f,{width:e,height:n}))?m:f},null)}var d=[];[s.minimum,s.maximum].forEach(function(u){u&&d.push({width:o.width,height:o.width/u,correctRatio:!0},{width:o.height*u,height:o.height,correctRatio:!0})}),Ca({size:o,aspectRatio:s,sizeRestrictions:r})&&d.push(o);var c=a(d)||a(d,!0);return c&&{width:c.width,height:c.height}}function Qi(t){var e=t.event,n=t.coordinates,r=t.positionRestrictions,s=r===void 0?{}:r,o=be(n,e.directions);return be(o,Bt(o,s))}function Ym(t){var e=t.coordinates,n=t.transform,r=t.imageSize,s=t.sizeRestrictions,o=t.positionRestrictions,a=t.aspectRatio,d=t.visibleArea,c=function(h,f){return Qi({coordinates:h,positionRestrictions:o,event:new Gi({left:f.left-h.left,top:f.top-h.top})})},u=z({},e);return(Array.isArray(n)?n:[n]).forEach(function(h){var f={};oe((f=typeof h=="function"?h({coordinates:u,imageSize:r,visibleArea:d}):h).width)&&oe(f.height)||(u=function(m,g){var C=z(z(z({},m),Ge({width:g.width,height:g.height,sizeRestrictions:s,aspectRatio:a})),{left:0,top:0});return c(C,{left:m.left,top:m.top})}(u,z(z({},u),f))),oe(f.left)&&oe(f.top)||(u=c(u,z(z({},u),f)))}),u}function Jm(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,s=t.visibleArea;t.aspectRatio;var o=t.stencilSize,a=t.sizeRestrictions,d=t.positionRestrictions;t.stencilReference;var c,u,h,f=z({},r),m=z({},s),g=z({},o);c=G(g),u=G(f),h===void 0&&(h=.001),(c===0||u===0?Math.abs(u-c)<h:Math.abs(u/c)<1+h&&Math.abs(u/c)>1-h)||(f=z(z({},f),Ge({sizeRestrictions:a,width:f.width,height:f.height,aspectRatio:{minimum:G(g),maximum:G(g)}})));var C=Dn(m=Me(m,f.width*n.width/(m.width*g.width)),e({visibleArea:m,type:"resize"}));return C!==1&&(m=Me(m,C),f=Me(f,C)),m=he(m=be(m,xt(ue(f),ue(m))),e({visibleArea:m,type:"move"})),{coordinates:f=he(f,Ln(Oe(m),d)),visibleArea:m}}function Qm(t){var e=t.event,n=t.getAreaRestrictions,r=t.boundaries,s=t.coordinates,o=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var d=z({},s),c=z({},o);if(s&&o&&e.type!=="manipulateImage"){var u={width:0,height:0};c.width,r.width,G(r)>G(d)?(u.height=.8*r.height,u.width=u.height*G(d)):(u.width=.8*r.width,u.height=u.width*G(d));var h=Dn(c=Me(c,d.width*r.width/(c.width*u.width)),n({visibleArea:c,type:"resize"}));c=Me(c,h),h!==1&&(u.height/=h,u.width/=h),c=he(c=be(c,xt(ue(d),ue(c))),n({visibleArea:c,type:"move"})),d=he(d,Ln(Oe(c),a))}return{coordinates:d,visibleArea:c}}function Km(t){var e=t.event,n=t.coordinates,r=t.visibleArea,s=t.getAreaRestrictions,o=z({},r),a=z({},n);if(e.type==="setCoordinates"){var d=Math.max(0,a.width-o.width),c=Math.max(0,a.height-o.height);d>c?o=Me(o,Math.min(a.width/o.width,Mt(o,s({visibleArea:o,type:"resize"})))):c>d&&(o=Me(o,Math.min(a.height/o.height,Mt(o,s({visibleArea:o,type:"resize"}))))),o=he(o=be(o,On(Bt(a,Oe(o)))),s({visibleArea:o,type:"move"}))}return{visibleArea:o,coordinates:a}}function ep(t){var e=t.imageSize,n=t.visibleArea,r=t.coordinates,s=n||e;return{left:(n?n.left:0)+s.width/2-r.width/2,top:(n?n.top:0)+s.height/2-r.height/2}}function tp(t){var e=t.imageSize,n=t.visibleArea,r=t.aspectRatio,s=t.sizeRestrictions,o=n||e,a=Math.min(r.maximum||1/0,Math.max(r.minimum||0,G(o))),d=o.width<o.height?{width:.8*o.width,height:.8*o.width/a}:{height:.8*o.height,width:.8*o.height*a};return Ge(z(z({},d),{aspectRatio:r,sizeRestrictions:s}))}function np(t){var e,n,r=t.imageSize,s=t.visibleArea,o=t.boundaries,a=t.aspectRatio,d=t.sizeRestrictions,c=t.stencilSize,u=s||r;return G(u)>G(o)?n=(e=c.height*u.height/o.height)*G(c):e=(n=c.width*u.width/o.width)/G(c),Ge({width:n,height:e,aspectRatio:a,sizeRestrictions:d})}function ip(t){var e=t.getAreaRestrictions,n=t.coordinates,r=t.imageSize,s=G(t.boundaries);if(n){var o={height:Math.max(n.height,r.height),width:Math.max(n.width,r.width)},a=ya({width:G(o)>s?o.width:o.height*s,height:G(o)>s?o.width/s:o.height},Ji(e())),d={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},c=jt(n,Oe(z({left:0,top:0},r))),u={};return!c.left&&!c.right&&d.width<=r.width&&(u.left=0,u.right=r.width),!c.top&&!c.bottom&&d.height<=r.height&&(u.top=0,u.bottom=r.height),he(d,u)}var h=G(r);return a={height:h>s?r.height:r.width/s,width:h>s?r.height*s:r.width},{left:r.width/2-a.width/2,top:r.height/2-a.height/2,width:a.width,height:a.height}}function Hn(t,e){return ba(t,Oe(e))}function rp(t){var e=t.event,n=t.coordinates,r=t.visibleArea,s=t.sizeRestrictions,o=t.getAreaRestrictions,a=t.positionRestrictions,d=t.adjustStencil,c=e.scale,u=e.move,h=z({},r),f=z({},n),m=1,g=1,C=c.factor&&Math.abs(c.factor-1)>.001;h=be(h,{left:u.left||0,top:u.top||0});var b={stencil:{minimum:Math.max(s.minWidth?s.minWidth/f.width:0,s.minHeight?s.minHeight/f.height:0),maximum:Math.min(s.maxWidth?s.maxWidth/f.width:1/0,s.maxHeight?s.maxHeight/f.height:1/0,Mt(f,a))},area:{maximum:Mt(h,o({visibleArea:h,type:"resize"}))}};c.factor&&C&&(c.factor<1?(g=Math.max(c.factor,b.stencil.minimum))>1&&(g=1):c.factor>1&&(g=Math.min(c.factor,Math.min(b.area.maximum,b.stencil.maximum)))<1&&(g=1)),g&&(h=Me(h,g,c.center));var S=n.left-r.left,I=r.width+r.left-(n.width+n.left),O=n.top-r.top,P=r.height+r.top-(n.height+n.top);return h=he(h=be(h,Bt(h,{left:a.left!==void 0?a.left-S*g:void 0,top:a.top!==void 0?a.top-O*g:void 0,bottom:a.bottom!==void 0?a.bottom+P*g:void 0,right:a.right!==void 0?a.right+I*g:void 0})),o({visibleArea:h,type:"move"})),f.width=f.width*g,f.height=f.height*g,f.left=h.left+S*g,f.top=h.top+O*g,f=he(f,Ln(Oe(h),a)),c.factor&&C&&d&&(c.factor>1?m=Math.min(b.area.maximum,c.factor)/g:c.factor<1&&(m=Math.max(f.height/h.height,f.width/h.width,c.factor/g)),m!==1&&(h=be(h=he(h=Me(h,m,c.factor>1?c.center:ue(f)),o({visibleArea:h,type:"move"})),On(Bt(f,Oe(h)))))),{coordinates:f,visibleArea:h}}function sp(t){var e=t.aspectRatio,n=t.getAreaRestrictions,r=t.coordinates,s=t.visibleArea,o=t.sizeRestrictions,a=t.positionRestrictions,d=t.imageSize,c=t.previousImageSize,u=t.angle,h=z({},r),f=z({},s),m=Qe(ue(z({left:0,top:0},c)),u);return(h=z(z({},Ge({sizeRestrictions:o,aspectRatio:e,width:h.width,height:h.height})),Qe(ue(h),u))).left-=m.left-d.width/2+h.width/2,h.top-=m.top-d.height/2+h.height/2,f=Me(f,Dn(f,n({visibleArea:f,type:"resize"}))),{coordinates:h=he(h,a),visibleArea:f=he(f=be(f,xt(ue(h),ue(r))),n({visibleArea:f,type:"move"}))}}function op(t){var e=t.flip,n=t.previousFlip,r=t.rotate,s=t.getAreaRestrictions,o=t.coordinates,a=t.visibleArea,d=t.imageSize,c=z({},o),u=z({},a),h=n.horizontal!==e.horizontal,f=n.vertical!==e.vertical;if(h||f){var m=Qe({left:d.width/2,top:d.height/2},-r),g=Qe(ue(c),-r),C=Qe({left:h?m.left-(g.left-m.left):g.left,top:f?m.top-(g.top-m.top):g.top},r);c=be(c,xt(C,ue(c))),g=Qe(ue(u),-r),u=he(u=be(u,xt(C=Qe({left:h?m.left-(g.left-m.left):g.left,top:f?m.top-(g.top-m.top):g.top},r),ue(u))),s({visibleArea:u,type:"move"}))}return{coordinates:c,visibleArea:u}}function ka(t){var e=t.directions,n=t.coordinates,r=t.positionRestrictions,s=r===void 0?{}:r,o=t.sizeRestrictions,a=t.preserveRatio,d=t.compensate,c=z({},e),u=De(n,c).width,h=De(n,c).height;u<0&&(c.left<0&&c.right<0?(c.left=-(n.width-o.minWidth)/(c.left/c.right),c.right=-(n.width-o.minWidth)/(c.right/c.left)):c.left<0?c.left=-(n.width-o.minWidth):c.right<0&&(c.right=-(n.width-o.minWidth))),h<0&&(c.top<0&&c.bottom<0?(c.top=-(n.height-o.minHeight)/(c.top/c.bottom),c.bottom=-(n.height-o.minHeight)/(c.bottom/c.top)):c.top<0?c.top=-(n.height-o.minHeight):c.bottom<0&&(c.bottom=-(n.height-o.minHeight)));var f=jt(De(n,c),s);d&&(f.left&&f.left>0&&f.right===0?(c.right+=f.left,c.left-=f.left):f.right&&f.right>0&&f.left===0&&(c.left+=f.right,c.right-=f.right),f.top&&f.top>0&&f.bottom===0?(c.bottom+=f.top,c.top-=f.top):f.bottom&&f.bottom>0&&f.top===0&&(c.top+=f.bottom,c.bottom-=f.bottom),f=jt(De(n,c),s));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Fe.forEach(function(b){var S=f[b];S&&c[b]&&(m[b]=Math.max(0,1-S/c[b]))}),a){var g=Math.min.apply(null,Fe.map(function(b){return m[b]}));g!==1/0&&Fe.forEach(function(b){c[b]*=g})}else Fe.forEach(function(b){m[b]!==1/0&&(c[b]*=m[b])});if(u=De(n,c).width,h=De(n,c).height,c.right+c.left&&(u>o.maxWidth?m.width=(o.maxWidth-n.width)/(c.right+c.left):u<o.minWidth&&(m.width=(o.minWidth-n.width)/(c.right+c.left))),c.bottom+c.top&&(h>o.maxHeight?m.height=(o.maxHeight-n.height)/(c.bottom+c.top):h<o.minHeight&&(m.height=(o.minHeight-n.height)/(c.bottom+c.top))),a){var C=Math.min(m.width,m.height);C!==1/0&&Fe.forEach(function(b){c[b]*=C})}else m.width!==1/0&&jm.forEach(function(b){c[b]*=m.width}),m.height!==1/0&&Wm.forEach(function(b){c[b]*=m.height});return c}function qn(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var ap=Ne("vue-simple-handler"),lp=Ne("vue-simple-handler-wrapper"),Ki={name:"SimpleHandler",components:{HandlerWrapper:fa},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(xe(t={},this.horizontalPosition,!!this.horizontalPosition),xe(t,this.verticalPosition,!!this.verticalPosition),xe(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),xe(t,"hover",this.hover),t);return{default:te(ap(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:te(lp(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Ki.render=function(t,e,n,r,s,o){var a=i.resolveComponent("HandlerWrapper");return i.openBlock(),i.createBlock(a,{class:o.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:o.onDrag,onDragEnd:o.onDragEnd,onEnter:o.onEnter,onLeave:o.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:o.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var cp=Ne("vue-simple-line"),dp=Ne("vue-simple-line-wrapper"),er={name:"SimpleLine",components:{LineWrapper:ma},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:te(cp(xe({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:te(dp(xe({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};er.render=function(t,e,n,r,s,o){var a=i.resolveComponent("LineWrapper");return i.openBlock(),i.createBlock(a,{class:o.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:o.onDrag,onDragEnd:o.onDragEnd,onEnter:o.onEnter,onLeave:o.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:o.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var tr=Ne("vue-bounding-box"),up=["east","west",null],hp=["south","north",null],Ea={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return Ki}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return er}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return up.forEach(function(e){hp.forEach(function(n){if(e!==n){var r=aa(e,n),s=r.name,o=r.classname;t.push({name:s,classname:o,verticalDirection:n,horizontalDirection:e})}})}),{points:t}},computed:{style:function(){var t={};return this.width&&this.height&&(t.width="".concat(this.width,"px"),t.height="".concat(this.height,"px"),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction))),t},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,n=this.linesClasses,r=this.linesWrappersClasses;return{root:tr(),handlers:t,handlersWrappers:e,lines:n,linesWrappers:r}},lineNodes:function(){var t=this,e=[];return this.points.forEach(function(n){n.horizontalDirection&&n.verticalDirection||!t.lines[n.name]||e.push({name:n.name,component:t.linesComponent,class:te(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:te(t.classes.linesWrappers.default,t.classes.linesWrappers[n.name],!t.resizable&&t.classes.linesWrappers.disabled),hoverClass:t.classes.lines.hover,verticalDirection:n.verticalDirection,horizontalDirection:n.horizontalDirection,disabled:!t.resizable})}),e},handlerNodes:function(){var t=this,e=[],n=this.width,r=this.height;return this.points.forEach(function(s){if(t.handlers[s.name]){var o={name:s.name,component:t.handlersComponent,class:te(t.classes.handlers.default,t.classes.handlers[s.name]),wrapperClass:te(t.classes.handlersWrappers.default,t.classes.handlersWrappers[s.name]),hoverClass:t.classes.handlers.hover,verticalDirection:s.verticalDirection,horizontalDirection:s.horizontalDirection,disabled:!t.resizable};if(n&&r){var a=s.horizontalDirection,d=s.verticalDirection,c=a==="east"?n:a==="west"?0:n/2,u=d==="south"?r:d==="north"?0:r/2;o.wrapperClass=tr("handler"),o.wrapperStyle={transform:"translate(".concat(c,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(o.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else o.wrapperClass=tr("handler",xe({},s.classname,!0));e.push(o)}}),e}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,n){var r,s=t.shift(),o=s.left,a=s.top,d={left:0,right:0,top:0,bottom:0};e==="west"?d.left-=o:e==="east"&&(d.right+=o),n==="north"?d.top-=a:n==="south"&&(d.bottom+=a),!n&&e?r="width":n&&!e&&(r="height"),this.resizable&&this.$emit("resize",new qm(d,{allowedDirections:{left:e==="west"||!e,right:e==="east"||!e,bottom:n==="south"||!n,top:n==="north"||!n},preserveAspectRatio:t.nativeEvent&&t.nativeEvent.shiftKey,respectDirection:r}))}},emits:["resize","resize-end"]};Ea.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"box",class:o.classes.root,style:o.style},[i.renderSlot(t.$slots,"default"),i.createVNode("div",null,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.lineNodes,function(a){return i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),{key:a.name,"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,position:a.name,disabled:a.disabled,onDrag:function(d){return o.onHandlerDrag(d,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[1]||(e[1]=function(d){return o.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(o.handlerNodes,function(a){return i.openBlock(),i.createBlock("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(a.component),{"default-class":a.class,"hover-class":a.hoverClass,"wrapper-class":a.wrapperClass,"horizontal-position":a.horizontalDirection,"vertical-position":a.verticalDirection,disabled:a.disabled,onDrag:function(d){return o.onHandlerDrag(d,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[2]||(e[2]=function(d){return o.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var fp=Ne("vue-draggable-area"),xa={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:fp()}}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&t.touches.length===1;e&&(this.touches=ft(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):ha({x:this.touches[0].clientX,y:this.touches[0].clientY},{x:t.touches[0].clientX,y:t.touches[0].clientY})>this.activationDistance&&(this.initAnchor({clientX:t.touches[0].clientX,clientY:t.touches[0].clientY}),this.touchStarted=!0))},onMouseDown:function(t){if(this.movable&&t.button===0){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top;this.anchor={x:t.clientX-n,y:t.clientY-r}},processMove:function(t,e){var n=ft(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),s=r.left,o=r.top;this.touches.length===1&&n.length===1&&this.$emit("move",new Gi({left:n[0].clientX-(s+this.anchor.x),top:n[0].clientY-(o+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};xa.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return o.onTouchStart&&o.onTouchStart.apply(o,arguments)}),onMousedown:e[2]||(e[2]=function(){return o.onMouseDown&&o.onMouseDown.apply(o,arguments)})},[i.renderSlot(t.$slots,"default")],544)};function nr(t){var e,n;return{rotate:t.rotate||0,flip:{horizontal:((e=t==null?void 0:t.flip)===null||e===void 0?void 0:e.horizontal)||!1,vertical:((n=t==null?void 0:t.flip)===null||n===void 0?void 0:n.vertical)||!1}}}function mp(t){return new Promise(function(e,n){try{if(t)if(/^data:/i.test(t))e(function(c){c=c.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(c),h=u.length,f=new ArrayBuffer(h),m=new Uint8Array(f),g=0;g<h;g++)m[g]=u.charCodeAt(g);return f}(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(c){e(c.target.result)},o=t,a=function(c){r.readAsArrayBuffer(c)},(d=new XMLHttpRequest).open("GET",o,!0),d.responseType="blob",d.onload=function(){this.status!=200&&this.status!==0||a(this.response)},d.send()}else{var s=new XMLHttpRequest;s.onreadystatechange=function(){s.readyState===4&&(s.status===200||s.status===0?e(s.response):n("Warning: could not load an image to parse its orientation"),s=null)},s.onprogress=function(){s.getResponseHeader("content-type")!=="image/jpeg"&&s.abort()},s.withCredentials=!1,s.open("GET",t,!0),s.responseType="arraybuffer",s.send(null)}else n("Error: the image is empty")}catch(c){n(c)}var o,a,d})}function Ma(t){var e=t.rotate,n=t.flip,r=t.scaleX,s=t.scaleY,o="";return o+=" rotate("+e+"deg) ",o+=" scaleX("+r*(n.horizontal?-1:1)+") ",o+=" scaleY("+s*(n.vertical?-1:1)+") "}function pp(t){try{var e,n=new DataView(t),r=void 0,s=void 0,o=void 0,a=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var d=n.byteLength,c=2;c+1<d;){if(n.getUint8(c)===255&&n.getUint8(c+1)===225){o=c;break}c++}if(o&&(r=o+10,function(g,C,b){var S,I="";for(S=C,b+=C;S<b;S++)I+=String.fromCharCode(g.getUint8(S));return I}(n,o+4,4)==="Exif")){var u=n.getUint16(r);if(((s=u===18761)||u===19789)&&n.getUint16(r+2,s)===42){var h=n.getUint32(r+4,s);h>=8&&(a=r+h)}}if(a){for(var f=n.getUint16(a,s),m=0;m<f;m++)if(c=a+12*m+2,n.getUint16(c,s)===274){c+=8,e=n.getUint16(c,s),n.setUint16(c,1,s);break}}return e}catch{return null}}function Ba(t,e){var n=e.getBoundingClientRect(),r=n.left,s=n.top,o={left:0,top:0},a=0;return t.forEach(function(d){o.left+=(d.clientX-r)/t.length,o.top+=(d.clientY-s)/t.length}),t.forEach(function(d){a+=ha({x:o.left,y:o.top},{x:d.clientX-r,y:d.clientY-s})}),{centerMass:o,spread:a,count:t.length}}var $a={props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0},eventsFilter:{type:Function,required:!1}},beforeMount:function(){window.addEventListener("mouseup",this.onMouseUp,{passive:!1}),window.addEventListener("mousemove",this.onMouseMove,{passive:!1}),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd,{passive:!1})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=ji(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(this.touches.length===1&&e.length===1)this.$emit("move",new _t({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var n=Ba(e,this.$refs.container),r=this.oldGeometricProperties;r.count===n.count&&r.count>1&&this.$emit("resize",new _t({left:r.centerMass.left-n.centerMass.left,top:r.centerMass.top-n.centerMass.top},{factor:r.spread/n.spread,center:n.centerMass})),this.oldGeometricProperties=n}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?this.eventsFilter(t,this.transforming)!==!1:(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,n=e.getBoundingClientRect(),r=n.left,s=n.top,o=n.bottom,a=n.right;this.touches=ft(t.touches).filter(function(d){return d.clientX>r&&d.clientX<a&&d.clientY>s&&d.clientY<o}),this.oldGeometricProperties=Ba(this.touches,e)}},onTouchEnd:function(t){t.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(t){var e=this;if(this.touches.length){var n=ft(t.touches).filter(function(r){return!r.identifier||e.touches.find(function(s){return s.identifier===r.identifier})});this.processEvent(t)&&(this.processMove(t,n),this.processStart())}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&t.buttons===1&&this.processEvent(t)){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(t){this.touches.length&&this.processEvent(t)&&this.processMove(t,[{clientX:t.clientX,clientY:t.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(t){if(this.wheelResize&&this.processEvent(t)){var e=this.$refs.container.getBoundingClientRect(),n=e.left,r=e.top,s=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(d=+a)==0||ua(d)?d:d>0?1:-1),o={left:t.clientX-n,top:t.clientY-r};this.$emit("resize",new _t({},{factor:s,center:o})),this.touches.length||this.debouncedProcessEnd()}var a,d}},emits:["resize","move","transform-end"]};$a.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return o.onTouchStart&&o.onTouchStart.apply(o,arguments)}),onMousedown:e[2]||(e[2]=function(){return o.onMouseDown&&o.onMouseDown.apply(o,arguments)}),onWheel:e[3]||(e[3]=function(){return o.onWheel&&o.onWheel.apply(o,arguments)})},[i.renderSlot(t.$slots,"default")],544)};var ir={components:{TransformableImage:$a},props:{touchMove:{type:Boolean,required:!0},mouseMove:{type:Boolean,required:!0},touchResize:{type:Boolean,required:!0},wheelResize:{type:[Boolean,Object],required:!0}},emits:["resize","move"]};ir.render=function(t,e,n,r,s,o){var a=i.resolveComponent("transformable-image");return i.openBlock(),i.createBlock(a,{"touch-move":n.touchMove,"touch-resize":n.touchResize,"mouse-move":n.mouseMove,"wheel-resize":n.wheelResize,onMove:e[1]||(e[1]=function(d){return t.$emit("move",d)}),onResize:e[2]||(e[2]=function(d){return t.$emit("resize",d)})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var Un=Ne("vue-preview"),Ia={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:Un({fill:this.fill}),wrapper:Un("wrapper"),imageWrapper:Un("image-wrapper"),image:te(Un("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=W(W({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,r=this.imageSize.height,s=wa({width:n,height:r},e.rotate),o={width:"".concat(n,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-s.width)*e.scaleX/2,top:(r-s.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*r/2}};return o.transform=`translate(
|
|
42
|
+
`.concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+Ma(e),this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){t.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}};Ia.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"root",class:o.classes.root,style:o.style},[i.createVNode("div",{ref:"wrapper",class:o.classes.wrapper,style:o.wrapperStyle},[i.withDirectives(i.createVNode("img",{ref:"image",src:n.image&&n.image.src,class:o.classes.image,style:o.imageStyle},null,14,["src"]),[[i.vShow,n.image&&n.image.src]])],6)],6)};var Ra={components:{Preview:Ia},inheritAttrs:!1};Ra.render=function(t,e,n,r,s,o){var a=i.resolveComponent("preview");return i.openBlock(),i.createBlock(a,i.mergeProps(t.$attrs,{fill:!0}),null,16)};var rr=Ne("vue-rectangle-stencil"),va={name:"RectangleStencil",components:{StencilPreview:Ra,BoundingBox:Ea,DraggableArea:xa},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Ki}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return er}},aspectRatio:{type:[Number,String]},minAspectRatio:{type:[Number,String]},maxAspectRatio:{type:[Number,String]},movable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},transitions:{type:Object},movingClass:{type:String},resizingClass:{type:String},previewClass:{type:String},boundingBoxClass:{type:String},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:te(rr({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:te(rr("preview"),this.previewClass),boundingBox:te(rr("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,r=t.left,s=t.top,o={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(r,"px, ").concat(s,"px)")};return this.transitions&&this.transitions.enabled&&(o.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),o}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};va.render=function(t,e,n,r,s,o){var a=i.resolveComponent("stencil-preview"),d=i.resolveComponent("draggable-area"),c=i.resolveComponent("bounding-box");return i.openBlock(),i.createBlock("div",{class:o.classes.stencil,style:o.style},[i.createVNode(c,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:o.classes.boundingBox,handlers:n.handlers,"handlers-component":n.handlersComponent,"handlers-classes":n.handlersClasses,"handlers-wrappers-classes":n.handlersWrappersClasses,lines:n.lines,"lines-component":n.linesComponent,"lines-classes":n.linesClasses,"lines-wrappers-classes":n.linesWrappersClasses,resizable:n.resizable,onResize:o.onResize,onResizeEnd:o.onResizeEnd},{default:i.withCtx(function(){return[i.createVNode(d,{movable:n.movable,onMove:o.onMove,onMoveEnd:o.onMoveEnd},{default:i.withCtx(function(){return[i.createVNode(a,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:o.classes.preview,transitions:n.transitions},null,8,["image","coordinates","width","height","class","transitions"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_:1},8,["width","height","transitions","class","handlers","handlers-component","handlers-classes","handlers-wrappers-classes","lines","lines-component","lines-classes","lines-wrappers-classes","resizable","onResize","onResizeEnd"])],6)};var gp=["transitions"],Ze=Ne("vue-advanced-cropper"),Na={name:"Cropper",components:{BackgroundWrapper:ir},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return va}},backgroundWrapperComponent:{type:[Object,String],default:function(){return ir}},stencilProps:{type:Object,default:function(){return{}}},autoZoom:{type:Boolean,default:!1},imageClass:{type:String},boundariesClass:{type:String},backgroundClass:{type:String},foregroundClass:{type:String},minWidth:{type:[Number,String]},minHeight:{type:[Number,String]},maxWidth:{type:[Number,String]},maxHeight:{type:[Number,String]},debounce:{type:[Boolean,Number],default:500},transitions:{type:Boolean,default:!0},checkOrientation:{type:Boolean,default:!0},canvas:{type:[Object,Boolean],default:!0},crossOrigin:{type:[Boolean,String],default:void 0},transitionTime:{type:Number,default:300},imageRestriction:{type:String,default:"fit-area",validator:function(t){return Zm.indexOf(t)!==-1}},roundResult:{type:Boolean,default:!0},defaultSize:{type:[Function,Object]},defaultPosition:{type:[Function,Object]},defaultVisibleArea:{type:[Function,Object]},defaultTransforms:{type:[Function,Object]},defaultBoundaries:{type:[Function,String],validator:function(t){return!(typeof t=="string"&&t!=="fill"&&t!=="fit")}},priority:{type:String,default:"coordinates"},stencilSize:{type:[Object,Function]},resizeImage:{type:[Boolean,Object],default:!0},moveImage:{type:[Boolean,Object],default:!0},autoZoomAlgorithm:{type:Function},resizeAlgorithm:{type:Function,default:function(t){var e=t.event,n=t.coordinates,r=t.aspectRatio,s=t.positionRestrictions,o=t.sizeRestrictions,a=z(z({},n),{right:n.left+n.width,bottom:n.top+n.height}),d=e.params||{},c=z({},e.directions),u=d.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};o.widthFrozen&&(c.left=0,c.right=0),o.heightFrozen&&(c.top=0,c.bottom=0),Fe.forEach(function(v){u[v]||(c[v]=0)});var h=De(a,c=ka({coordinates:a,directions:c,sizeRestrictions:o,positionRestrictions:s})).width,f=De(a,c).height,m=d.preserveRatio?G(a):Yi(h/f,r);if(m){var g=d.respectDirection;if(g||(g=a.width>=a.height||m===1?"width":"height"),g==="width"){var C=h/m-a.height;if(u.top&&u.bottom){var b=c.top,S=c.bottom;c.bottom=qn(C,S,b),c.top=qn(C,b,S)}else u.bottom?c.bottom=C:u.top?c.top=C:u.right?c.right=0:u.left&&(c.left=0)}else if(g==="height"){var I=a.width-f*m;if(u.left&&u.right){var O=c.left,P=c.right;c.left=-qn(I,O,P),c.right=-qn(I,P,O)}else u.left?c.left=-I:u.right?c.right=-I:u.top?c.top=0:u.bottom&&(c.bottom=0)}c=ka({directions:c,coordinates:a,sizeRestrictions:o,positionRestrictions:s,preserveRatio:!0,compensate:d.compensate})}return h=De(a,c).width,f=De(a,c).height,(m=d.preserveRatio?G(a):Yi(h/f,r))&&Math.abs(m-h/f)>.001&&Fe.forEach(function(v){u[v]||(c[v]=0)}),Qi({event:new Gi({left:-c.left,top:-c.top}),coordinates:{width:n.width+c.right+c.left,height:n.height+c.top+c.bottom,left:n.left,top:n.top},positionRestrictions:s})}},moveAlgorithm:{type:Function,default:Qi},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,r=G(n);e.style.width=n.width+"px",e.style.height=e.clientWidth/r+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,n=t.coordinates,r=t.aspectRatio,s=t.sizeRestrictions,o=t.positionRestrictions,a=z(z({},n),Ge({width:n.width,height:n.height,aspectRatio:r,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,s.minHeight),minWidth:Math.min(e.width,s.minWidth)}}));return a=he(a=be(a,xt(ue(n),ue(a))),Ln(Oe(e),o))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.getAreaRestrictions,s=t.coordinates,o=z({},e);o.height=o.width/G(n),o.top+=(e.height-o.height)/2,(s.height-o.height>0||s.width-o.width>0)&&(o=Me(o,Math.max(s.height/o.height,s.width/o.width)));var a=On(Bt(s,Oe(o=Me(o,Dn(o,r({visibleArea:o,type:"resize"}))))));return o.width<s.width&&(a.left=0),o.height<s.height&&(a.top=0),o=he(o=be(o,a),r({visibleArea:o,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.imageSize,s=t.imageRestriction,o=t.type,a={};return s==="fill-area"?a={left:0,top:0,right:r.width,bottom:r.height}:s==="fit-area"&&(G(n)>G(r)?(a={top:0,bottom:r.height},e&&o==="move"&&(e.width>r.width?(a.left=-(e.width-r.width)/2,a.right=r.width-a.left):(a.left=0,a.right=r.width))):(a={left:0,right:r.width},e&&o==="move"&&(e.height>r.height?(a.top=-(e.height-r.height)/2,a.bottom=r.height-a.top):(a.top=0,a.bottom=r.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,n={};return t.imageRestriction!=="none"&&(n={left:0,top:0,right:e.width,bottom:e.height}),n}}},data:function(){return{transitionsActive:!1,imageLoaded:!1,imageAttributes:{width:null,height:null,crossOrigin:null,src:null},defaultImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},appliedImageTransforms:{rotate:0,flip:{horizontal:!1,vertical:!1}},boundaries:{width:0,height:0},visibleArea:null,coordinates:W({},pa)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){return{rotate:this.appliedImageTransforms.rotate,flip:{horizontal:this.appliedImageTransforms.flip.horizontal,vertical:this.appliedImageTransforms.flip.vertical},translateX:this.visibleArea?this.visibleArea.left/this.coefficient:0,translateY:this.visibleArea?this.visibleArea.top/this.coefficient:0,scaleX:1/this.coefficient,scaleY:1/this.coefficient}},imageSize:function(){var t=function(e){return e*Math.PI/180}(this.imageTransforms.rotate);return{width:Math.abs(this.imageAttributes.width*Math.cos(t))+Math.abs(this.imageAttributes.height*Math.sin(t)),height:Math.abs(this.imageAttributes.width*Math.sin(t))+Math.abs(this.imageAttributes.height*Math.cos(t))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var t=Wi(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:Wi(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:oe(this.minWidth)?0:Fn(this.minWidth),minHeight:oe(this.minHeight)?0:Fn(this.minHeight),maxWidth:oe(this.maxWidth)?1/0:Fn(this.maxWidth),maxHeight:oe(this.maxHeight)?1/0:Fn(this.maxHeight)});if(t=function(r){var s=r.areaRestrictions,o=r.sizeRestrictions,a=r.boundaries,d=r.positionRestrictions,c=z(z({},o),{minWidth:o.minWidth!==void 0?o.minWidth:0,minHeight:o.minHeight!==void 0?o.minHeight:0,maxWidth:o.maxWidth!==void 0?o.maxWidth:1/0,maxHeight:o.maxHeight!==void 0?o.maxHeight:1/0});d.left!==void 0&&d.right!==void 0&&(c.maxWidth=Math.min(c.maxWidth,d.right-d.left)),d.bottom!==void 0&&d.top!==void 0&&(c.maxHeight=Math.min(c.maxHeight,d.bottom-d.top));var u=Ji(s),h=ya(a,u);return u.width<1/0&&(!c.maxWidth||c.maxWidth>h.width)&&(c.maxWidth=Math.min(c.maxWidth,h.width)),u.height<1/0&&(!c.maxHeight||c.maxHeight>h.height)&&(c.maxHeight=Math.min(c.maxHeight,h.height)),c.minWidth>c.maxWidth&&(c.minWidth=c.maxWidth,c.widthFrozen=!0),c.minHeight>c.maxHeight&&(c.minHeight=c.maxHeight,c.heightFrozen=!0),c}({sizeRestrictions:t,areaRestrictions:this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}),imageSize:this.imageSize,boundaries:this.boundaries,positionRestrictions:this.positionRestrictions,imageRestriction:this.imageRestriction,visibleArea:this.visibleArea,stencilSize:this.getStencilSize()}),this.visibleArea&&this.stencilSize){var e=this.getStencilSize(),n=Ji(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));t.maxWidth=Math.min(t.maxWidth,n.width*e.width/this.boundaries.width),t.maxHeight=Math.min(t.maxHeight,n.height*e.height/this.boundaries.height),t.maxWidth<t.minWidth&&(t.minWidth=t.maxWidth),t.maxHeight<t.minHeight&&(t.minHeight=t.maxHeight)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:Ze(),image:te(Ze("image"),this.imageClass),stencil:Ze("stencil"),boundaries:te(Ze("boundaries"),this.boundariesClass),stretcher:te(Ze("stretcher")),background:te(Ze("background"),this.backgroundClass),foreground:te(Ze("foreground"),this.foregroundClass),imageWrapper:te(Ze("image-wrapper")),cropperWrapper:te(Ze("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,r=t.left,s=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(r-this.visibleArea.left)/this.coefficient,top:(s-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){var t={width:this.boundaries.width?"".concat(Math.round(this.boundaries.width),"px"):"auto",height:this.boundaries.height?"".concat(Math.round(this.boundaries.height),"px"):"auto",transition:"opacity ".concat(this.transitionTime,"ms"),pointerEvents:this.imageLoaded?"all":"none"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){var t=this.imageAttributes.width>this.imageAttributes.height?{width:Math.min(1024,this.imageAttributes.width),height:Math.min(1024,this.imageAttributes.width)/(this.imageAttributes.width/this.imageAttributes.height)}:{height:Math.min(1024,this.imageAttributes.height),width:Math.min(1024,this.imageAttributes.height)*(this.imageAttributes.width/this.imageAttributes.height)},e={left:(t.width-this.imageSize.width)/(2*this.coefficient),top:(t.height-this.imageSize.height)/(2*this.coefficient)},n={left:(1-1/this.coefficient)*t.width/2,top:(1-1/this.coefficient)*t.height/2},r=W(W({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),s={width:"".concat(t.width,"px"),height:"".concat(t.height,"px"),left:"0px",top:"0px",transform:"translate(".concat(-e.left-n.left-this.imageTransforms.translateX,"px, ").concat(-e.top-n.top-this.imageTransforms.translateY,"px)")+Ma(r)};return this.transitionsOptions.enabled&&(s.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),s}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick(function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(n){return t[n]!==e[n]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=ji(this.update,this.debounce),this.debouncedDisableTransitions=ji(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){this.$refs.image.addEventListener("load",this.onSuccessLoadImage),this.$refs.image.addEventListener("error",this.onFailLoadImage),this.onChangeImage(),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh),this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.debouncedUpdate.clear(),this.debouncedDisableTransitions.clear()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(W({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:W({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?W({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?W({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,s=r===void 0||r;this.onManipulateImage(new _t({},{factor:1/t,center:e}),{normalize:!1,transitions:s})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,s=r===void 0||r;this.onManipulateImage(new _t({left:t||0,top:e||0}),{normalize:!1,transitions:s})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.autoZoom,s=r===void 0||r,o=n.transitions,a=o===void 0||o;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),s&&e.runAutoZoom("setCoordinates"),a&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t})},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then(function(){t.onChange()}):this.resetVisibleArea().then(function(){t.onChange()})},reset:function(){var t=this;return this.resetVisibleArea().then(function(){t.onChange(!1)})},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){t(),e.awaiting=!1}))},prepareResult:function(t){return this.roundResult?function(e){var n=e.coordinates,r=e.sizeRestrictions,s=e.positionRestrictions,o={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return o.width>r.maxWidth?o.width=Math.floor(n.width):o.width<r.minWidth&&(o.width=Math.ceil(n.width)),o.height>r.maxHeight?o.height=Math.floor(n.height):o.height<r.minHeight&&(o.height=Math.ceil(n.height)),he(o,s)}(W(W({},this.getPublicProperties()),{},{positionRestrictions:Hn(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,r){var s=this.autoZoomAlgorithm;s||(s=this.stencilSize?Jm:this.autoZoom?Qm:Km);var o=s({event:{type:t,params:r},visibleArea:e,coordinates:n,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return W(W({},o),{},{changed:!ga(o.visibleArea,e)||!ga(o.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n!==void 0&&n,s=Lm(e,gp),o=this.processAutoZoom(t,this.visibleArea,this.coordinates,s),a=o.visibleArea,d=o.coordinates,c=o.changed;r&&c&&this.enableTransitions(),this.visibleArea=a,this.coordinates=d,r&&c&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var n=e.event,r=e.visibleArea,s=e.coefficient;if(n.type==="manipulateImage")return z(z({},n),{move:{left:n.move&&n.move.left?s*n.move.left:0,top:n.move&&n.move.top?s*n.move.top:0},scale:{factor:n.scale&&n.scale.factor?n.scale.factor:1,center:n.scale&&n.scale.center?{left:n.scale.center.left*s+r.left,top:n.scale.center.top*s+r.top}:null}});if(n.type==="resize"){var o=z(z({},n),{directions:z({},n.directions)});return Fe.forEach(function(d){o.directions[d]*=s}),o}if(n.type==="move"){var a=z(z({},n),{directions:z({},n.directions)});return Gm.forEach(function(d){a.directions[d]*=s}),a}return n}(W(W({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){var t=this.$refs.canvas,e=this.$refs.image,n=this.imageTransforms.rotate!==0||this.imageTransforms.flip.horizontal||this.imageTransforms.flip.vertical?function(d,c,u){var h=u.rotate,f=u.flip,m={width:c.naturalWidth,height:c.naturalHeight},g=wa(m,h),C=d.getContext("2d");d.height=g.height,d.width=g.width,C.save();var b=Qe(ue(z({left:0,top:0},m)),h);return C.translate(-(b.left-g.width/2),-(b.top-g.height/2)),C.rotate(h*Math.PI/180),C.translate(f.horizontal?m.width:0,f.vertical?m.height:0),C.scale(f.horizontal?-1:1,f.vertical?-1:1),C.drawImage(c,0,0,m.width,m.height),C.restore(),d}(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=W({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),s=function(d){return d.find(function(c){return u=c,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},o=Ge({sizeRestrictions:{minWidth:s([r.width,r.minWidth])||0,minHeight:s([r.height,r.minHeight])||0,maxWidth:s([r.width,r.maxWidth])||1/0,maxHeight:s([r.height,r.maxHeight])||1/0},width:this.coordinates.width,height:this.coordinates.height,aspectRatio:{minimum:this.coordinates.width/this.coordinates.height,maximum:this.coordinates.width/this.coordinates.height}});if(r.maxArea&&o.width*o.height>r.maxArea){var a=Math.sqrt(r.maxArea/(o.width*o.height));o={width:Math.round(a*o.width),height:Math.round(a*o.height)}}return function(d,c,u,h,f){d.width=h?h.width:u.width,d.height=h?h.height:u.height;var m=d.getContext("2d");m.clearRect(0,0,d.width,d.height),f&&(f.imageSmoothingEnabled&&(m.imageSmoothingEnabled=f.imageSmoothingEnabled),f.imageSmoothingQuality&&(m.imageSmoothingQuality=f.imageSmoothingQuality),f.fillColor&&(m.fillStyle=f.fillColor,m.fillRect(0,0,d.width,d.height),m.save()));var g=u.left<0?-u.left:0,C=u.top<0?-u.top:0;m.drawImage(c,u.left+g,u.top+C,u.width,u.height,g*(d.width/u.width),C*(d.height/u.height),d.width,d.height)}(t,n,this.coordinates,o,r),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.visibleArea&&e?Xm(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?Hn(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Ym({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:n,positionRestrictions:r,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?np:tp);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var r=Et(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,s=this.defaultPosition||ep,o=[r,function(a){var d=a.coordinates;return W({},Et(s)?s({coordinates:d,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&o.push.apply(o,ft(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(o,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout(function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,n=this.$refs.cropper;return this.initStretcher({cropper:n,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then(function(){var r={cropper:n,imageSize:t.imageSize};if(Et(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=function(s){var o=s.cropper,a=s.imageSize,d=o.clientHeight,c=o.clientWidth,u=d,h=a.width*d/a.height;return h>c&&(h=c,u=a.height*c/a.width),{width:h,height:u}}(r):t.boundaries=function(s){var o=s.cropper;return{width:o.clientWidth,height:o.clientHeight}}(r),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=W(W({},this.defaultImageTransforms),{},{flip:W({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,r,s,o,a,d=t.defaultVisibleArea||ip;t.visibleArea=Et(d)?d({imageSize:t.imageSize,boundaries:t.boundaries,coordinates:t.priority!=="visible-area"?t.coordinates:null,getAreaRestrictions:t.getAreaRestrictions,stencilSize:t.getStencilSize()}):t.defaultVisibleArea,t.visibleArea=(e={visibleArea:t.visibleArea,boundaries:t.boundaries,getAreaRestrictions:t.getAreaRestrictions},n=e.visibleArea,r=e.boundaries,s=e.getAreaRestrictions,o=z({},n),a=G(r),o.width/o.height!==a&&(o.height=o.width/a),he(o,s({visibleArea:o,type:"move"}))),t.priority==="visible-area"?t.resetCoordinates():t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("resetVisibleArea")}).catch(function(){t.visibleArea=null})},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then(function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")}).catch(function(){t.visibleArea=null})},onChange:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];t&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(s){if(ca(s))return!1;var o=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(s)||[],d={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},c=function(u){return u.port||((u.protocol||o.protocol)==="http"?80:433)};return!(!d.protocol&&!d.host&&!d.port||d.protocol&&d.protocol==o.protocol&&d.host&&d.host==o.host&&d.host&&c(d)==c(o))}(this.src)){var n=oe(this.crossOrigin)?this.canvas:this.crossOrigin;n===!0&&(n="anonymous"),this.imageAttributes.crossOrigin=n||null}if(this.checkOrientation){var r=(t=this.src,new Promise(function(s){mp(t).then(function(o){var a=pp(o);s(o?{source:t,arrayBuffer:o,orientation:a}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(o){console.warn(o),s({source:t,arrayBuffer:null,orientation:null})})}));setTimeout(function(){r.then(e.onParseImage)},this.transitionTime)}else setTimeout(function(){e.onParseImage({source:e.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){t.$emit("ready"),t.onChange(!1)}))},onParseImage:function(t){var e=this,n=t.source,r=t.arrayBuffer,s=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,r&&s&&s>1?la(n)||!ca(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([r])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(o){for(var a=[],d=new Uint8Array(o);d.length>0;){var c=d.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(c):c.slice())),d=d.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(r):this.imageAttributes.src=n,Et(this.defaultTransforms)?this.appliedImageTransforms=nr(this.defaultTransforms()):Tn(this.defaultTransforms)?this.appliedImageTransforms=nr(this.defaultTransforms):this.appliedImageTransforms=function(o){var a=nr({});if(o)switch(o){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(s),this.defaultImageTransforms=W(W({},this.appliedImageTransforms),{},{flip:W({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var o=e.$refs.image;o&&o.complete&&(function(a){return!!a.naturalWidth}(o)?e.onSuccessLoadImage():e.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender(function(){e.coordinates=e.moveAlgorithm(W(W({},e.getPublicProperties()),{},{positionRestrictions:Hn(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()})},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var n=e.sizeRestrictions,r=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(W(W({},e.getPublicProperties()),{},{positionRestrictions:Hn(e.positionRestrictions,e.visibleArea),sizeRestrictions:{maxWidth:Math.min(n.maxWidth,e.visibleArea.width),maxHeight:Math.min(n.maxHeight,e.visibleArea.height),minWidth:Math.max(n.minWidth,r),minHeight:Math.max(n.minHeight,r)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1})},onManipulateImage:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var n=e.transitions,r=n!==void 0&&n,s=e.normalize,o=s===void 0||s;r&&this.enableTransitions();var a=rp(W(W({},this.getPublicProperties()),{},{event:o?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),d=a.visibleArea,c=a.coordinates;this.visibleArea=d,this.coordinates=c,this.runAutoZoom("manipulateImage"),this.onChange(),r&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.visibleArea,n=t.type,r=n===void 0?"move":n;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:r})},getAspectRatio:function(t){var e,n,r=this.stencilProps,s=r.aspectRatio,o=r.minAspectRatio,a=r.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var d=this.$refs.stencil.aspectRatios();e=d.minimum,n=d.maximum}if(oe(e)&&(e=oe(s)?o:s),oe(n)&&(n=oe(s)?a:s),!t&&(oe(e)||oe(n))){var c=this.getStencilSize(),u=c?G(c):null;oe(e)&&(e=da(u)?u:void 0),oe(n)&&(n=da(u)?u:void 0)}return{minimum:e,maximum:n}},getStencilSize:function(){if(this.stencilSize)return t={currentStencilSize:{width:this.stencilCoordinates.width,height:this.stencilCoordinates.height},stencilSize:this.stencilSize,boundaries:this.boundaries,coefficient:this.coefficient,coordinates:this.coordinates,aspectRatio:this.getAspectRatio(!0)},e=t.boundaries,n=t.stencilSize,r=t.aspectRatio,Yi(G(s=Et(n)?n({boundaries:e,aspectRatio:r}):n),r)&&(s=Ge({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:r.minimum,maximum:r.maximum}})),(s.width>e.width||s.height>e.height)&&(s=Ge({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:s.width,height:s.height,aspectRatio:{minimum:G(s),maximum:G(s)}})),s;var t,e,n,r,s},getPublicProperties:function(){return{coefficient:this.coefficient,visibleArea:this.visibleArea,coordinates:this.coordinates,boundaries:this.boundaries,sizeRestrictions:this.sizeRestrictions,positionRestrictions:this.positionRestrictions,aspectRatio:this.getAspectRatio(),imageRestriction:this.imageRestriction}},defaultCoordinates:function(){return W({},pa)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,s=r===void 0||r;if(!this.transitionsActive){s&&this.enableTransitions();var o=W({},this.imageTransforms.flip),a=op({flip:{horizontal:t?!o.horizontal:o.horizontal,vertical:e?!o.vertical:o.vertical},previousFlip:o,rotate:this.imageTransforms.rotate,visibleArea:this.visibleArea,coordinates:this.coordinates,imageSize:this.imageSize,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),d=a.visibleArea,c=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=d,this.coordinates=c,this.onChange(),s&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n===void 0||n;if(!this.transitionsActive){r&&this.enableTransitions();var s=W({},this.imageSize);this.appliedImageTransforms.rotate+=t;var o=sp({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:s,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=o.visibleArea,d=o.coordinates,c=this.processAutoZoom("rotateImage",a,d);a=c.visibleArea,d=c.coordinates,this.visibleArea=a,this.coordinates=d,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},yp={key:0,ref:"canvas",style:{display:"none"}},wp={key:1,ref:"sourceCanvas",style:{display:"none"}};Na.render=function(t,e,n,r,s,o){return i.openBlock(),i.createBlock("div",{ref:"cropper",class:o.classes.cropper},[i.createVNode("div",{ref:"stretcher",class:o.classes.stretcher},null,2),i.createVNode("div",{class:o.classes.boundaries,style:o.boundariesStyle},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.backgroundWrapperComponent),{class:o.classes.cropperWrapper,"wheel-resize":o.settings.resizeImage.wheel,"touch-resize":o.settings.resizeImage.touch,"touch-move":o.settings.moveImage.touch,"mouse-move":o.settings.moveImage.mouse,onMove:o.onManipulateImage,onResize:o.onManipulateImage},{default:i.withCtx(function(){return[i.createVNode("div",{class:o.classes.background,style:o.boundariesStyle},null,6),i.createVNode("div",{class:o.classes.imageWrapper},[i.createVNode("img",{ref:"image",crossorigin:s.imageAttributes.crossOrigin,src:s.imageAttributes.src,class:o.classes.image,style:o.imageStyle,onMousedown:e[1]||(e[1]=i.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),i.createVNode("div",{class:o.classes.foreground,style:o.boundariesStyle},null,6),i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.stencilComponent),i.mergeProps({ref:"stencil",image:o.image,coordinates:s.coordinates,"stencil-coordinates":o.stencilCoordinates,transitions:o.transitionsOptions},n.stencilProps,{onResize:o.onResize,onResizeEnd:o.onResizeEnd,onMove:o.onMove,onMoveEnd:o.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[i.vShow,s.imageLoaded]]),n.canvas?(i.openBlock(),i.createBlock("canvas",yp,null,512)):i.createCommentVNode("",!0),n.canvas?(i.openBlock(),i.createBlock("canvas",wp,null,512)):i.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const bp={width:0,height:0,left:0,top:0};class sr{constructor(){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"coordinates",bp)}setCoordinates(e){this.coordinates=e}getCoordinates(){return this.coordinates}static Create(e,n=0,r){const s=new sr;return s.src=e,s.ratio=n,s.id=r,s}setRatio(e){this.ratio=e}getRatio(){return this.ratio}setSrc(e){this.src=e}getSrc(){return this.src}}const Cp={class:"background-container"},Sp={class:"dialog-footer"},kp=E(i.defineComponent({__name:"ImageCropper",props:{src:{type:String,required:!0},ratio:{type:Number,required:!1,default:1}},emits:["crop","close","update:ratio"],setup(t,{emit:e}){const n=t,r=e,s=i.ref(n.ratio),o=i.ref(sr.Create(n.src,n.ratio));o.value.setRatio(s.value);const a=()=>{o.value.setRatio(s.value)},d=i.ref(),c=async()=>{const u=d.value.getResult();u&&u.canvas.toBlob(h=>{var f;r("crop",{blob:h,src:(f=u.canvas)==null?void 0:f.toDataURL()}),r("update:ratio",o.value.coordinates.width/o.value.coordinates.height)})};return(u,h)=>(i.openBlock(),i.createElementBlock("div",Cp,[i.createVNode(Ti,{modelValue:i.unref(s),"onUpdate:modelValue":h[0]||(h[0]=f=>i.isRef(s)?s.value=f:null),label:"Задайте пропорции фото",width:"100%",margin:"0 0 20px 0",onChange:a},{default:i.withCtx(()=>h[2]||(h[2]=[i.createElementVNode("option",{label:"2:3 (формат A4)",value:2/3},null,-1),i.createElementVNode("option",{label:"4:3 (для карточек новостей)",value:4/3},null,-1),i.createElementVNode("option",{label:"1:1 (для фото сотрудников)",value:1},null,-1),i.createElementVNode("option",{label:"3:2",value:3/2},null,-1),i.createElementVNode("option",{label:"16:9",value:16/9},null,-1),i.createElementVNode("option",{label:"3:4 (вертикальное изображение)",value:3/4},null,-1),i.createElementVNode("option",{label:"Задать пропорции вручную",value:0},null,-1)])),_:1},8,["modelValue"]),i.createVNode(i.unref(Na),{ref_key:"cropperRef",ref:d,src:i.unref(o).src,"stencil-props":{aspectRatio:i.unref(o).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:h[1]||(h[1]=f=>i.unref(o).setCoordinates(f.coordinates))},null,8,["src","stencil-props"]),i.createElementVNode("div",Sp,[i.createVNode(vn,{skin:"text",type:"primary",text:"Сохранить",onClick:c})])]))}}),[["__scopeId","data-v-7b32def2"]]),Ep=E(i.defineComponent({__name:"IconUploaderChange",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#uploader-change"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"uploader-change",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M12.825 15.783C12.175 15.787 11.5393 15.7173 10.918 15.574C10.2967 15.4307 9.762 15.1347 9.314 14.686C8.95467 14.3273 8.678 13.9173 8.484 13.456C8.28933 12.9947 8.192 12.5113 8.192 12.006C8.192 11.788 8.207 11.5807 8.237 11.384C8.26633 11.1867 8.31867 10.9873 8.394 10.786C8.43533 10.6633 8.43133 10.5437 8.382 10.427C8.33267 10.3103 8.25467 10.2293 8.148 10.184C8.038 10.1393 7.92567 10.1427 7.811 10.194C7.69633 10.2453 7.61833 10.3327 7.577 10.456C7.49367 10.706 7.428 10.9593 7.38 11.216C7.332 11.472 7.308 11.7333 7.308 12C7.308 12.628 7.42733 13.227 7.666 13.797C7.90533 14.367 8.24533 14.8723 8.686 15.313C9.20067 15.8437 9.81667 16.202 10.534 16.388C11.2513 16.5747 11.9797 16.6697 12.719 16.673L11.756 17.637C11.67 17.723 11.6237 17.8243 11.617 17.941C11.6103 18.0577 11.6567 18.1653 11.756 18.264C11.8553 18.3627 11.9597 18.412 12.069 18.412C12.1783 18.412 12.283 18.3627 12.383 18.264L13.906 16.741C14.0673 16.579 14.148 16.3903 14.148 16.175C14.148 15.9597 14.0673 15.7713 13.906 15.61L12.383 14.087C12.2963 14.0003 12.195 13.954 12.079 13.948C11.9623 13.9413 11.8547 13.9877 11.756 14.087C11.6573 14.1863 11.608 14.2907 11.608 14.4C11.608 14.5093 11.6573 14.614 11.756 14.714L12.825 15.783ZM11.189 8.212C11.839 8.212 12.4753 8.28333 13.098 8.426C13.7213 8.56867 14.2573 8.86433 14.706 9.313C15.0647 9.67233 15.3413 10.0827 15.536 10.544C15.7307 11.0053 15.8277 11.4887 15.827 11.994C15.827 12.212 15.8123 12.4193 15.783 12.616C15.7537 12.8127 15.701 13.0117 15.625 13.213C15.5843 13.3363 15.5887 13.4573 15.638 13.576C15.6873 13.6947 15.765 13.7763 15.871 13.821C15.9817 13.8657 16.0943 13.8657 16.209 13.821C16.3237 13.7763 16.4013 13.6923 16.442 13.569C16.5253 13.319 16.5913 13.0617 16.64 12.797C16.688 12.5323 16.712 12.2667 16.712 12C16.712 11.372 16.5943 10.773 16.359 10.203C16.1237 9.633 15.7837 9.12567 15.339 8.681C14.8203 8.14967 14.2023 7.79233 13.485 7.609C12.7683 7.425 12.04 7.333 11.3 7.333L12.27 6.363C12.3513 6.277 12.3953 6.17567 12.402 6.059C12.4087 5.94233 12.3627 5.83467 12.264 5.736C12.1653 5.63733 12.0607 5.58833 11.95 5.589C11.8393 5.58967 11.735 5.63867 11.637 5.736L10.114 7.26C9.952 7.422 9.871 7.61067 9.871 7.826C9.871 8.04133 9.952 8.22967 10.114 8.391L11.637 9.914C11.723 10.0007 11.8243 10.047 11.941 10.053C12.0577 10.059 12.1653 10.013 12.264 9.915C12.3627 9.817 12.412 9.71233 12.412 9.601C12.412 9.48967 12.3627 9.38533 12.264 9.288L11.189 8.212ZM12 21C10.7573 21 9.58867 20.7633 8.494 20.29C7.39933 19.816 6.447 19.174 5.637 18.364C4.82633 17.5533 4.18433 16.6007 3.711 15.506C3.237 14.4113 3 13.2427 3 12C3 10.7573 3.23667 9.58867 3.71 8.494C4.18333 7.39933 4.82567 6.447 5.637 5.637C6.44833 4.827 7.40067 4.18467 8.494 3.71C9.58933 3.23667 10.758 3 12 3C13.242 3 14.4107 3.23667 15.506 3.71C16.6007 4.184 17.553 4.82633 18.363 5.637C19.1737 6.447 19.8157 7.39933 20.289 8.494C20.763 9.58933 21 10.758 21 12C21 13.242 20.7633 14.4107 20.29 15.506C19.816 16.6007 19.174 17.553 18.364 18.363C17.5533 19.1737 16.6007 19.8157 15.506 20.289C14.4113 20.763 13.2427 21 12 21ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-24be7852"]]),xp=E(i.defineComponent({__name:"IconUploaderDel",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#uploader-del"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"uploader-del",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},[i.createElementVNode("path",{d:"M7.616 20.0005C7.168 20.0005 6.78667 19.8431 6.472 19.5285C6.15733 19.2138 6 18.8328 6 18.3855V6.00047H5V5.00047H9V4.23047H15V5.00047H19V6.00047H18V18.3855C18 18.8455 17.846 19.2298 17.538 19.5385C17.23 19.8471 16.8453 20.0011 16.384 20.0005H7.616ZM17 6.00047H7V18.3855C7 18.5648 7.05767 18.7121 7.173 18.8275C7.28833 18.9428 7.436 19.0005 7.616 19.0005H16.385C16.5383 19.0005 16.6793 18.9365 16.808 18.8085C16.9367 18.6805 17.0007 18.5391 17 18.3845V6.00047ZM9.808 17.0005H10.808V8.00047H9.808V17.0005ZM13.192 17.0005H14.192V8.00047H13.192V17.0005Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-dd770f25"]]),Mp=E(i.defineComponent({__name:"IconUploaderPlus",props:{size:{type:String,default:""},margin:{type:String,default:"0"},iconClass:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[(i.openBlock(),i.createElementBlock("svg",{class:i.normalizeClass(["icon",t.iconClass]),style:i.normalizeStyle({margin:t.margin,width:t.size,height:t.size})},n[0]||(n[0]=[i.createElementVNode("use",{"xlink:href":"#uploader-plus"},null,-1)]),6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"uploader-plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[i.createElementVNode("path",{d:"M8 12H12V8H13V12H17V13H13V17H12V13H8V12ZM12.5 3C15.0196 3 17.4359 4.00089 19.2175 5.78249C20.9991 7.56408 22 9.98044 22 12.5C22 15.0196 20.9991 17.4359 19.2175 19.2175C17.4359 20.9991 15.0196 22 12.5 22C9.98044 22 7.56408 20.9991 5.78249 19.2175C4.00089 17.4359 3 15.0196 3 12.5C3 9.98044 4.00089 7.56408 5.78249 5.78249C7.56408 4.00089 9.98044 3 12.5 3ZM12.5 4C10.2457 4 8.08365 4.89553 6.48959 6.48959C4.89553 8.08365 4 10.2457 4 12.5C4 14.7543 4.89553 16.9163 6.48959 18.5104C8.08365 20.1045 10.2457 21 12.5 21C13.6162 21 14.7215 20.7801 15.7528 20.353C16.7841 19.9258 17.7211 19.2997 18.5104 18.5104C19.2997 17.7211 19.9258 16.7841 20.353 15.7528C20.7801 14.7215 21 13.6162 21 12.5C21 10.2457 20.1045 8.08365 18.5104 6.48959C16.9163 4.89553 14.7543 4 12.5 4Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-92c28425"]]),Bp={key:0},$p=["src"],Ip={class:"tools-button"},Rp={key:1},vp=["id"],Np=i.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:fe,required:!0,default:new fe},height:{type:Number,default:150},emitCrop:{type:Boolean,default:!1},ratio:{type:Number,required:!1,default:1}},emits:["crop","removeFile","update:ratio"],setup(t,{emit:e}){const n=i.computed(()=>({width:o.height*f.value+"px",height:o.height+"px"})),r=i.computed(()=>({width:f.value<.66?o.height*.66+"px":o.height*f.value+"px",height:o.height+"px"})),s=i.computed(()=>({width:f.value<.66?o.height*.66+"px":o.height*f.value+"px",height:o.height+"px"})),o=t,a=e,d=i.ref(void 0),c=ee.GUID(),u=i.ref(!1),h=i.ref(),f=i.ref(o.ratio),m=i.ref(""),g=()=>{d.value=void 0,f.value=1,a("update:ratio",1),a("removeFile"),b=document.getElementById(c),b.value=""},C=P=>{o.fileInfo.setFile(P),o.fileInfo.fileSystemPath&&(d.value=o.fileInfo),u.value=!1,a("crop")};i.watch(()=>[o.fileInfo.description,o.fileInfo.order,o.fileInfo.fileSystemPath],()=>{o.fileInfo.fileSystemPath&&(d.value=o.fileInfo,d.value.url=o.fileInfo.getFileUrl())}),i.onBeforeMount(()=>{o.fileInfo.fileSystemPath&&(d.value=o.fileInfo,d.value.url=o.fileInfo.getFileUrl())});let b=null;i.onMounted(()=>{document.getElementById("drop-area")&&(b=document.getElementById(c))});const S=()=>{b&&b.click()},I=P=>{m.value=P.url,u.value=!0},O=()=>{if(!b||!b.files||!b.files.length)return;const P=b.files[0];P.url=URL.createObjectURL(P),d.value=P,o.fileInfo.setFile(P),o.withCrop&&I(d.value)};return i.watch(f,P=>{console.log("watchRatio",P,o.ratio),a("update:ratio",P),console.log("watchRatio2",o.ratio)}),(P,v)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:"drop-area",class:"img-container",style:i.normalizeStyle(i.unref(n))},[i.unref(d)?(i.openBlock(),i.createElementBlock("div",Bp,[i.createElementVNode("div",{class:"img-block",style:i.normalizeStyle(i.unref(r))},[i.createElementVNode("img",{src:i.unref(d).url,alt:"upload-image"},null,8,$p)],4),i.createElementVNode("div",Ip,[i.createElementVNode("div",{class:"ins",style:i.normalizeStyle(i.unref(s))},[i.createElementVNode("div",{class:"change",onClick:v[0]||(v[0]=H=>I(i.unref(d)))},[i.createVNode(Ep,{margin:"0 10px 0 0",size:"40px"})]),i.createElementVNode("div",{claSS:"del",onClick:v[1]||(v[1]=H=>g())},[i.createVNode(xp,{size:"40px"})])],4)])])):(i.openBlock(),i.createElementBlock("div",Rp,[i.createElementVNode("div",{class:"add-button",style:i.normalizeStyle({width:t.height*i.unref(f)-2+"px",height:t.height-2+"px"}),onClick:S},[i.createVNode(Mp,{size:"40px"})],4)]))],4),i.createElementVNode("input",{id:i.unref(c),ref_key:"uploader",ref:h,hidden:"",type:"file",onChange:O},null,40,vp),i.createVNode(Pn,{show:i.unref(u),title:"Настройка изображения","max-height":"90vh",top:"5vh"},{default:i.withCtx(()=>[i.createVNode(kp,{ratio:i.unref(f),"onUpdate:ratio":v[2]||(v[2]=H=>i.isRef(f)?f.value=H:null),src:i.unref(m),onCrop:C,onClose:v[3]||(v[3]=H=>u.value=!1)},null,8,["ratio","src"])]),_:1},8,["show"])],64))}}),Aa=E(Np,[["__scopeId","data-v-62bda261"]]);function za(t){t.component("PTabs",ia),t.component("PUploaderFile",ra),t.component("PUploaderImage",Aa),t.component("PAuthForm",qi),t.component("PAuthModal",ta),t.component("PNameEdit",na)}const Ap=Object.freeze(Object.defineProperty({__proto__:null,PAuthForm:qi,PAuthModal:ta,PNameEdit:na,PTabs:ia,PUploaderFile:ra,PUploaderImage:Aa,default:za},Symbol.toStringTag,{value:"Module"})),zp={install:function(t){eo(t),ea(t),jo(t),za(t),Ao(t)}},Pp=["PF","PFM"];_.Auth=re,_.AuthButtonLogin=Zn,_.AuthButtonRefresh=ur,_.AuthButtonRegister=Xn,_.AuthButtonRestore=Yt,_.AuthChunks=le,_.AuthFieldsIds=qe,_.AuthFormSettings=pr,_.AuthMethods=mt,_.EmailField=Qt,_.LoginField=Bh,_.PF=A,_.PFM=Mh,_.PasswordField=Kt,_.PasswordRepeatField=mr,_.atoms=mf,_.components=pm,_.icons=gm,_.molecules=Rm,_.organisms=Ap,_.pfName=Pp,_.servicesComponents=zp,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|