sprof 0.2.4 → 0.2.7

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.
Files changed (63) hide show
  1. package/README.md +163 -11
  2. package/dist/{ExtractsList-CqMn_6Rp.js → ExtractsList-BNHHbmEu.js} +1 -1
  3. package/dist/core/components/CarouselImages.vue.d.ts +1 -1
  4. package/dist/core/components/GeneralItem.vue.d.ts +1 -1
  5. package/dist/core/components/GridContainer.vue.d.ts +1 -1
  6. package/dist/core/components/InfoItem.vue.d.ts +3 -3
  7. package/dist/core/components/atoms/PBadge/PBadge.stories.d.ts +471 -0
  8. package/dist/core/components/atoms/PBadge/PBadge.test.d.ts +1 -0
  9. package/dist/core/components/atoms/PBadge/PBadge.vue.d.ts +84 -0
  10. package/dist/core/components/atoms/PButton/PButton.stories.d.ts +6 -6
  11. package/dist/core/components/atoms/PButton/PButton.vue.d.ts +1 -1
  12. package/dist/core/components/atoms/PCheckbox/PCheckBox.stories.d.ts +2 -2
  13. package/dist/core/components/atoms/PCheckbox/PCheckBox.vue.d.ts +1 -1
  14. package/dist/core/components/atoms/PChip/PChip.stories.d.ts +639 -0
  15. package/dist/core/components/atoms/PChip/PChip.test.d.ts +1 -0
  16. package/dist/core/components/atoms/PChip/PChip.vue.d.ts +85 -0
  17. package/dist/core/components/atoms/PDatePicker/PDatePicker.stories.d.ts +469 -0
  18. package/dist/core/components/atoms/PDialog/PDialog.stories.d.ts +235 -0
  19. package/dist/core/components/atoms/PDialog/PDialog.test.d.ts +1 -0
  20. package/dist/core/components/atoms/PDialog/PDialog.vue.d.ts +62 -0
  21. package/dist/core/components/atoms/PFlex/PFlex.stories.d.ts +6 -6
  22. package/dist/core/components/atoms/PFlex/PFlex.vue.d.ts +1 -1
  23. package/dist/core/components/atoms/PInput/PInput.stories.d.ts +8 -14
  24. package/dist/core/components/atoms/PInput/PInput.vue.d.ts +3 -6
  25. package/dist/core/components/atoms/PInputDate/PInputDate.stories.d.ts +2 -2
  26. package/dist/core/components/atoms/PInputDate/PInputDate.vue.d.ts +1 -1
  27. package/dist/core/components/atoms/PLabelField/PLabelField.stories.d.ts +6 -6
  28. package/dist/core/components/atoms/PLabelField/PLabelField.vue.d.ts +1 -1
  29. package/dist/core/components/atoms/PList/PList.stories.d.ts +6 -6
  30. package/dist/core/components/atoms/PList/PList.vue.d.ts +1 -1
  31. package/dist/core/components/atoms/PRadio/PRadio.stories.d.ts +2 -2
  32. package/dist/core/components/atoms/PRadio/PRadio.vue.d.ts +1 -1
  33. package/dist/core/components/atoms/PSelect/PSelect.stories.d.ts +12 -52
  34. package/dist/core/components/atoms/PSelect/PSelect.vue.d.ts +4 -24
  35. package/dist/core/components/atoms/PString/PString.stories.d.ts +2 -2
  36. package/dist/core/components/atoms/PString/PString.vue.d.ts +1 -1
  37. package/dist/core/components/atoms/PTable/{PTable.storeis.d.ts → PTable.stories.d.ts} +8 -9
  38. package/dist/core/components/atoms/PTable/PTable.vue.d.ts +1 -1
  39. package/dist/core/components/atoms/PToggle/PToggle.stories.d.ts +248 -0
  40. package/dist/core/components/atoms/PToggle/PToggle.test.d.ts +1 -0
  41. package/dist/core/components/atoms/PToggle/PToggle.vue.d.ts +71 -0
  42. package/dist/core/components/atoms/__consumer__/consumer-render.test.d.ts +1 -0
  43. package/dist/core/components/atoms/__consumer__/q-imports.test.d.ts +1 -0
  44. package/dist/core/components/atoms/index.d.ts +5 -1
  45. package/dist/core/components/molecules/PAdd/PContainerStickyHead.vue.d.ts +1 -1
  46. package/dist/core/components/molecules/PModal/PModal.vue.d.ts +2 -2
  47. package/dist/core/components/organisms/PAuthForm/PAuthForm.stories.d.ts +16 -22
  48. package/dist/core/components/organisms/PAuthForm/PAuthForm.vue.d.ts +8 -11
  49. package/dist/core/components/organisms/PAuthModal/PAuthModal.stories.d.ts +2 -2
  50. package/dist/core/components/organisms/PAuthModal/PAuthModal.vue.d.ts +1 -1
  51. package/dist/core/components/organisms/PUploaderFile/PUploaderFile.stories.d.ts +9 -9
  52. package/dist/core/components/organisms/PUploaderFile/PUploaderFile.vue.d.ts +1 -1
  53. package/dist/global-components.d.ts +78 -0
  54. package/dist/{index-8p7UPAAQ.js → index-T6suvcZB.js} +4143 -3985
  55. package/dist/index.d.ts +6 -0
  56. package/dist/modules/forms/components/Fields/DateField.vue.d.ts +1 -1
  57. package/dist/modules/forms/components/Fields/FieldsComponentsMap.d.ts +1 -1
  58. package/dist/modules/forms/components/admin/AdminFormPage.vue.d.ts +1 -1
  59. package/dist/sprof.js +18 -13
  60. package/dist/sprof.umd.cjs +10 -10
  61. package/dist/style.css +1 -1
  62. package/dist/test-utils/quasar-minimal.d.ts +6 -0
  63. package/package.json +15 -16
@@ -1,4 +1,4 @@
1
- (function(j,ae){typeof exports=="object"&&typeof module<"u"?ae(exports,require("quasar"),require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","quasar","vue","vue-router"],ae):(j=typeof globalThis<"u"?globalThis:j||self,ae(j.sprof={},j.Quasar,j.Vue,j.VueRouter))})(this,function(j,ae,i,na){"use strict";var Cg=Object.defineProperty;var Sg=(j,ae,i)=>ae in j?Cg(j,ae,{enumerable:!0,configurable:!0,writable:!0,value:i}):j[ae]=i;var l=(j,ae,i)=>Sg(j,typeof ae!="symbol"?ae+"":ae,i);var lt,ct,Be,rn,q,Ie,gt,Nr;var Vt=typeof document<"u"?document.currentScript:null,me=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(me||{}),Y=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(Y||{});class bt{constructor(e,n,r,o){l(this,"text","Сохранить");l(this,"type",Y.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,o!==void 0&&(this.condition=o)}static Primary(e,n,r){return new bt(e,n,Y.Primary,r)}static Success(e,n,r){return new bt(e,n,Y.Success,r)}static Warning(e,n,r){return new bt(e,n,Y.Warning,r)}static Error(e,n,r){return new bt(e,n,Y.Error,r)}}class Pn extends bt{constructor(){super();l(this,"id","auth-button");l(this,"chunk",me.Login);l(this,"text","");l(this,"isSubmit",!1);l(this,"isLink",!0)}GetChunk(){return this.chunk}}let Mi=class extends Pn{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"chunk",me.Login)}};class Vr extends Pn{constructor(){super(...arguments);l(this,"id","auth-button-refresh");l(this,"text","Обновить пароль");l(this,"isSubmit",!1);l(this,"chunk",me.Refresh)}}class Bi extends Pn{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"chunk",me.Register)}}class Nn extends Pn{constructor(){super(...arguments);l(this,"id","auth-button-restore");l(this,"text","Забыли пароль?");l(this,"isSubmit",!1);l(this,"chunk",me.Restore)}}class Fr{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 it=(t=>(t.Email="field-auth-email",t.Password="field-auth-password",t.PasswordRepeat="field-auth-password-repeat",t))(it||{});class zn extends Fr{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}get IsPassword(){return this.id===it.Password||this.id===it.PasswordRepeat}}var Ft=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(Ft||{});const ia=/\S+@\S+\.\S+/;class Dr{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),ia.test(e)||this.errors.push("Некорректный email"),this.errors}}let ra=class extends zn{constructor(){super(...arguments);l(this,"id",it.Email);l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new Dr);l(this,"method",Ft.Email)}};const Tn=new ra;class oa{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)}}let sa=class extends zn{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new oa);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id",it.Password)}};const On=new sa;let aa=class extends zn{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id",it.PasswordRepeat)}};const Lr=new aa,Hr={allowRestore:!1,[me.Login]:{methods:[Ft.Email],title:"Вход в систему",action:"login",buttons:[new Mi,new Bi,new Nn],fields:[Tn,On],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[me.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Bi,new Mi,new Nn],fields:[Tn,On,Lr],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[me.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new Nn],fields:[Tn]},[me.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new Vr],fields:[On]}};class la{constructor(){l(this,"block",!1);l(this,"settings",Hr);l(this,"chunk",me.Login);l(this,"selectedMethod",Ft.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(it.Password),n=this.GetField(it.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===me.Login}get IsRegister(){return this.chunk===me.Register}get IsRestore(){return this.chunk===me.Restore}get IsRefresh(){return this.chunk===me.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(me.Login),this.ResetFields()}GetField(e){return this.GetFields().find(n=>n.id===e)}}class ca{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 Dt{constructor(){l(this,"type",Y.Success);l(this,"text","");l(this,"title","")}static ToQuasarColor(e){switch(e){case Y.Success:return"positive";case Y.Warning:return"warning";case Y.Error:return"negative";case Y.Info:return"info";default:return"primary"}}static ContainsHtml(e){return/<[a-z][\s\S]*>/i.test(e)}showMessage(e,n){this.type=n,typeof e=="string"?(this.text=e,this.title=""):(this.text=e.text,this.title=e.title??"")}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}GetQuasarColor(){return Dt.ToQuasarColor(this.type)}Info(e){this.showMessage(e,Y.Info)}Success(e){this.showMessage(e,Y.Success)}Error(e){this.showMessage(e,Y.Error)}Warning(e){this.showMessage(e,Y.Warning)}FormMessage(e){let n="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const r of Object.keys(e))e[r][0]&&e[r][0].message&&(n+=`<li>${e[r][0].message}</li>`);return n+="</ul>",n}}class Ri{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,o){return e===r||n===o||e>r&&e<o||n>r&&n<o||n>o&&e<r}}const qr=1e3,_r=60*qr,$i=60*_r;var an=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(an||{});const Vn={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class H{static S(e){return qr*e}static M(e){return _r*e}static H(e){return $i*e}static D(e){return $i*e}static W(e){return $i*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=H.SplitHM(e);return n.length>1?H.HtoM(n[0])+n[1]:H.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=H.SplitHM(e);return H.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const r=new Date,o=H.SplitHM(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return H.ConcatHM(a,c)}static ConcatHM(e,n){return`${e}:${H.NormalizeTime(n)}`}static DiffM(e,n){return H.Gt(n,e)?H.HMtoM(n)-H.HMtoM(e):H.HMtoM(e)-H.HMtoM(n)}static GetPeriod(e,n){return Ri.Get(e,n)}static Gt(e,n){return H.HMtoM(e)>H.HMtoM(n)}static GtOrEq(e,n){return H.Gt(e,n)||H.Eq(e,n)}static Eq(e,n){return H.HMtoM(e)===H.HMtoM(n)}static PeriodInPeriod(e,n,r,o){return H.HMtoM(e)>=H.HMtoM(r)&&H.HMtoM(n)<=H.HMtoM(o)}static PeriodsIntersects(e,n,r,o){return Ri.Intersects(H.HMtoM(e),H.HMtoM(n),H.HMtoM(r),H.HMtoM(o))}}const da="top";class ua extends Dt{constructor(){super(...arguments);l(this,"duration",H.S(3))}showMessage(n,r){if(super.showMessage(n,r),typeof ae.Notify.create!="function"){console.warn("[sprof] Quasar Notify plugin is not installed. Add `app.use(Quasar, { plugins: { Notify } })` (imported from 'quasar') to your app.");return}const o=typeof n=="string"?{}:n;ae.Notify.create({message:this.text,caption:this.title||void 0,color:this.GetQuasarColor(),timeout:o.duration??this.duration,html:Dt.ContainsHtml(this.text),position:da})}GetDuration(){return this.duration}Dev(){this.showMessage("В режиме разработки",Y.Warning)}Save(){this.showMessage("Изменения успешно сохранены",Y.Success)}}const Ge=new ua;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 Oe=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Oe||{});class ha{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return Ze.Get(Oe.AccessToken)}getRefreshToken(){return Ze.Get(Oe.RefreshToken)}setAccessToken(e){Ze.Set(Oe.AccessToken,e)}setRefreshToken(e){Ze.Set(Oe.RefreshToken,e)}reset(){Ze.Remove(Oe.AccessToken),Ze.Remove(Oe.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class fa{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(Oe.User,this.user))}reset(){this.user=void 0,Ze.Remove(Oe.User)}actualize(){const e=Ze.Get(Oe.User);e&&this.set(e)}}class ma{constructor(){l(this,"isAuth",!1);l(this,"user",new fa);l(this,"tokens",new ha);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){Ge.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()}}let pa=(lt=class{constructor(){l(this,"form",i.reactive(new la));l(this,"status",i.reactive(new ma));l(this,"modal",i.reactive(new ca));if(lt.instance)return lt.instance;lt.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}},l(lt,"instance"),lt);const pe=new pa;var Ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/*! *****************************************************************************
1
+ (function(H,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("quasar"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","quasar","vue-router"],i):(H=typeof globalThis<"u"?globalThis:H||self,i(H.sprof={},H.Vue,H.Quasar,H.VueRouter))})(this,function(H,i,G,sa){"use strict";var Eg=Object.defineProperty;var Mg=(H,i,G)=>i in H?Eg(H,i,{enumerable:!0,configurable:!0,writable:!0,value:G}):H[i]=G;var l=(H,i,G)=>Mg(H,typeof i!="symbol"?i+"":i,G);var lt,ct,Re,rn,_,Ae,gt,Nr;var Vt=typeof document<"u"?document.currentScript:null,me=(t=>(t.Login="login",t.Register="register",t.Restore="restore",t.Refresh="refresh",t))(me||{}),J=(t=>(t.Primary="primary",t.Success="success",t.Warning="warning",t.Error="error",t.Info="info",t))(J||{});class bt{constructor(e,n,r,o){l(this,"text","Сохранить");l(this,"type",J.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,o!==void 0&&(this.condition=o)}static Primary(e,n,r){return new bt(e,n,J.Primary,r)}static Success(e,n,r){return new bt(e,n,J.Success,r)}static Warning(e,n,r){return new bt(e,n,J.Warning,r)}static Error(e,n,r){return new bt(e,n,J.Error,r)}}class Pn extends bt{constructor(){super();l(this,"id","auth-button");l(this,"chunk",me.Login);l(this,"text","");l(this,"isSubmit",!1);l(this,"isLink",!0)}GetChunk(){return this.chunk}}let vi=class extends Pn{constructor(){super(...arguments);l(this,"id","auth-button-login");l(this,"text","Войти");l(this,"isSubmit",!1);l(this,"chunk",me.Login)}};class Vr extends Pn{constructor(){super(...arguments);l(this,"id","auth-button-refresh");l(this,"text","Обновить пароль");l(this,"isSubmit",!1);l(this,"chunk",me.Refresh)}}class Ri extends Pn{constructor(){super(...arguments);l(this,"id","auth-button-register");l(this,"text","Зарегистрироваться");l(this,"isSubmit",!1);l(this,"chunk",me.Register)}}class Nn extends Pn{constructor(){super(...arguments);l(this,"id","auth-button-restore");l(this,"text","Забыли пароль?");l(this,"isSubmit",!1);l(this,"chunk",me.Restore)}}class Fr{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 it=(t=>(t.Email="field-auth-email",t.Password="field-auth-password",t.PasswordRepeat="field-auth-password-repeat",t))(it||{});class zn extends Fr{constructor(){super(...arguments);l(this,"method");l(this,"id","field-auth");l(this,"name","")}get IsPassword(){return this.id===it.Password||this.id===it.PasswordRepeat}}var Ft=(t=>(t.Login="login",t.Email="email",t.Phone="phone",t.VK="vk",t.ESIA="esia",t))(Ft||{});const aa=/\S+@\S+\.\S+/;class Dr{constructor(){l(this,"errors",[])}validate(e){return(e===""||!e)&&this.errors.push("Введите email"),aa.test(e)||this.errors.push("Некорректный email"),this.errors}}let la=class extends zn{constructor(){super(...arguments);l(this,"id",it.Email);l(this,"label","Email");l(this,"name","email");l(this,"placeholder","Введите email");l(this,"validator",new Dr);l(this,"method",Ft.Email)}};const Tn=new la;class ca{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)}}let da=class extends zn{constructor(){super(...arguments);l(this,"label","Пароль");l(this,"validator",new ca);l(this,"name","password");l(this,"placeholder","Введите пароль");l(this,"id",it.Password)}};const On=new da;let ua=class extends zn{constructor(){super(...arguments);l(this,"label","Повторите пароль");l(this,"id",it.PasswordRepeat)}};const Lr=new ua,Hr={allowRestore:!1,[me.Login]:{methods:[Ft.Email],title:"Вход в систему",action:"login",buttons:[new vi,new Ri,new Nn],fields:[Tn,On],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно вошли в систему"},[me.Register]:{methods:[],title:"Регистрация",action:"register",buttons:[new Ri,new vi,new Nn],fields:[Tn,On,Lr],errorMessage:"Неверно указан email или пароль",successMessage:"Вы успешно зарегистрировались в системе, войдите под своим паролем"},[me.Restore]:{title:"Восстановление пароля",methods:[],action:"restorePassword",successMessage:"Ссылка для восстановления пароля отправлена на Вашу почту",errorMessage:"Неверно указан email",buttons:[new Nn],fields:[Tn]},[me.Refresh]:{methods:[],title:"Создание нового пароля",action:"passwordChange",successMessage:"Воспользуйтесь новым паролем для входа",errorMessage:"Неверно указан email",buttons:[new Vr],fields:[On]}};class fa{constructor(){l(this,"block",!1);l(this,"settings",Hr);l(this,"chunk",me.Login);l(this,"selectedMethod",Ft.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(it.Password),n=this.GetField(it.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===me.Login}get IsRegister(){return this.chunk===me.Register}get IsRestore(){return this.chunk===me.Restore}get IsRefresh(){return this.chunk===me.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(me.Login),this.ResetFields()}GetField(e){return this.GetFields().find(n=>n.id===e)}}class ha{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 Dt{constructor(){l(this,"type",J.Success);l(this,"text","");l(this,"title","")}static ToQuasarColor(e){switch(e){case J.Success:return"positive";case J.Warning:return"warning";case J.Error:return"negative";case J.Info:return"info";default:return"primary"}}static ContainsHtml(e){return/<[a-z][\s\S]*>/i.test(e)}showMessage(e,n){this.type=n,typeof e=="string"?(this.text=e,this.title=""):(this.text=e.text,this.title=e.title??"")}GetText(){return this.text}GetTitle(){return this.title}GetType(){return this.type}GetQuasarColor(){return Dt.ToQuasarColor(this.type)}Info(e){this.showMessage(e,J.Info)}Success(e){this.showMessage(e,J.Success)}Error(e){this.showMessage(e,J.Error)}Warning(e){this.showMessage(e,J.Warning)}FormMessage(e){let n="<strong>Проверьте правильность введенных данных:</strong><ul>";for(const r of Object.keys(e))e[r][0]&&e[r][0].message&&(n+=`<li>${e[r][0].message}</li>`);return n+="</ul>",n}}class $i{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,o){return e===r||n===o||e>r&&e<o||n>r&&n<o||n>o&&e<r}}const qr=1e3,Ur=60*qr,Ii=60*Ur;var an=(t=>(t.FiveMinutes="5",t.HourQuarter="15",t.HourHalf="30",t.Hour="60",t))(an||{});const Vn={5:["00","05","10","15","20","25","30","35","40","45","50","55"],15:["00","15","30","45"],30:["00","30"],60:["00"]};class U{static S(e){return qr*e}static M(e){return Ur*e}static H(e){return Ii*e}static D(e){return Ii*e}static W(e){return Ii*e}static NormalizeTime(e){return String(e).padStart(2,"0")}static HMtoM(e){const n=U.SplitHM(e);return n.length>1?U.HtoM(n[0])+n[1]:U.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=U.SplitHM(e);return U.ConcatHM(n[0],n[1])}static AddMtoHM(e,n){const r=new Date,o=U.SplitHM(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return U.ConcatHM(a,c)}static ConcatHM(e,n){return`${e}:${U.NormalizeTime(n)}`}static DiffM(e,n){return U.Gt(n,e)?U.HMtoM(n)-U.HMtoM(e):U.HMtoM(e)-U.HMtoM(n)}static GetPeriod(e,n){return $i.Get(e,n)}static Gt(e,n){return U.HMtoM(e)>U.HMtoM(n)}static GtOrEq(e,n){return U.Gt(e,n)||U.Eq(e,n)}static Eq(e,n){return U.HMtoM(e)===U.HMtoM(n)}static PeriodInPeriod(e,n,r,o){return U.HMtoM(e)>=U.HMtoM(r)&&U.HMtoM(n)<=U.HMtoM(o)}static PeriodsIntersects(e,n,r,o){return $i.Intersects(U.HMtoM(e),U.HMtoM(n),U.HMtoM(r),U.HMtoM(o))}}const ma="top";class pa extends Dt{constructor(){super(...arguments);l(this,"duration",U.S(3))}showMessage(n,r){if(super.showMessage(n,r),typeof G.Notify.create!="function"){console.warn("[sprof] Quasar Notify plugin is not installed. Add `app.use(Quasar, { plugins: { Notify } })` (imported from 'quasar') to your app.");return}const o=typeof n=="string"?{}:n;G.Notify.create({message:this.text,caption:this.title||void 0,color:this.GetQuasarColor(),timeout:o.duration??this.duration,html:Dt.ContainsHtml(this.text),position:ma})}GetDuration(){return this.duration}Dev(){this.showMessage("В режиме разработки",J.Warning)}Save(){this.showMessage("Изменения успешно сохранены",J.Success)}}const Ge=new pa;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 Oe=(t=>(t.User="user",t.AccessToken="accessToken",t.RefreshToken="refreshToken",t))(Oe||{});class ga{set(e){this.setAccessToken(e.accessToken),this.setRefreshToken(e.refreshToken)}getAccessToken(){return Ze.Get(Oe.AccessToken)}getRefreshToken(){return Ze.Get(Oe.RefreshToken)}setAccessToken(e){Ze.Set(Oe.AccessToken,e)}setRefreshToken(e){Ze.Set(Oe.RefreshToken,e)}reset(){Ze.Remove(Oe.AccessToken),Ze.Remove(Oe.RefreshToken)}actualize(){this.setAccessToken(this.getAccessToken()),this.setRefreshToken(this.getAccessToken())}}class ya{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(Oe.User,this.user))}reset(){this.user=void 0,Ze.Remove(Oe.User)}actualize(){const e=Ze.Get(Oe.User);e&&this.set(e)}}class wa{constructor(){l(this,"isAuth",!1);l(this,"user",new ya);l(this,"tokens",new ga);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){Ge.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()}}let ba=(lt=class{constructor(){l(this,"form",i.reactive(new fa));l(this,"status",i.reactive(new wa));l(this,"modal",i.reactive(new ha));if(lt.instance)return lt.instance;lt.instance=this,Object.freeze(this)}get Form(){return this.form}get Status(){return this.status}get Modal(){return this.modal}},l(lt,"instance"),lt);const pe=new ba;var _r=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,20 +11,20 @@
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 jr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof Ur=="object"?Ur:typeof self=="object"?self:typeof this=="object"?this:c(),r=o(t);typeof n.Reflect<"u"&&(r=o(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function o(d,u){return function(h,f){Object.defineProperty(d,h,{configurable:!0,writable:!0,value:f}),u&&u(h,f)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",d={__proto__:[]}instanceof Array,u=!c&&!d,h={create:c?function(){return zr(Object.create(null))}:d?function(){return zr({__proto__:null})}:function(){return zr({})},has:u?function(g,b){return r.call(g,b)}:function(g,b){return b in g},get:u?function(g,b){return r.call(g,b)?g[b]:void 0}:function(g,b){return g[b]}},f=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:pg(),y=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:gg(),w=typeof WeakMap=="function"?WeakMap:yg(),S=o?Symbol.for("@reflect-metadata:registry"):void 0,x=hg(),C=fg(x);function P(g,b,k,M){if(V(k)){if(!vn(g))throw new TypeError;if(!Mn(b))throw new TypeError;return on(g,b)}else{if(!vn(g))throw new TypeError;if(!ie(b))throw new TypeError;if(!ie(M)&&!V(M)&&!ze(M))throw new TypeError;return ze(M)&&(M=void 0),k=He(k),ki(g,b,k,M)}}e("decorate",P);function E(g,b){function k(M,F){if(!ie(M))throw new TypeError;if(!V(F)&&!Bn(F))throw new TypeError;Ei(g,b,M,F)}return k}e("metadata",E);function I(g,b,k,M){if(!ie(k))throw new TypeError;return V(M)||(M=He(M)),Ei(g,b,k,M)}e("defineMetadata",I);function L(g,b,k){if(!ie(b))throw new TypeError;return V(k)||(k=He(k)),Ne(g,b,k)}e("hasMetadata",L);function Q(g,b,k){if(!ie(b))throw new TypeError;return V(k)||(k=He(k)),yt(g,b,k)}e("hasOwnMetadata",Q);function Ae(g,b,k){if(!ie(b))throw new TypeError;return V(k)||(k=He(k)),wt(g,b,k)}e("getMetadata",Ae);function Pt(g,b,k){if(!ie(b))throw new TypeError;return V(k)||(k=He(k)),sn(g,b,k)}e("getOwnMetadata",Pt);function Nt(g,b){if(!ie(g))throw new TypeError;return V(b)||(b=He(b)),xn(g,b)}e("getMetadataKeys",Nt);function Pe(g,b){if(!ie(g))throw new TypeError;return V(b)||(b=He(b)),Ue(g,b)}e("getOwnMetadataKeys",Pe);function tt(g,b,k){if(!ie(b))throw new TypeError;if(V(k)||(k=He(k)),!ie(b))throw new TypeError;V(k)||(k=He(k));var M=In(b,k,!1);return V(M)?!1:M.OrdinaryDeleteMetadata(g,b,k)}e("deleteMetadata",tt);function on(g,b){for(var k=g.length-1;k>=0;--k){var M=g[k],F=M(b);if(!V(F)&&!ze(F)){if(!Mn(F))throw new TypeError;b=F}}return b}function ki(g,b,k,M){for(var F=g.length-1;F>=0;--F){var fe=g[F],ce=fe(b,k,M);if(!V(ce)&&!ze(ce)){if(!ie(ce))throw new TypeError;M=ce}}return M}function Ne(g,b,k){var M=yt(g,b,k);if(M)return!0;var F=$n(b);return ze(F)?!1:Ne(g,F,k)}function yt(g,b,k){var M=In(b,k,!1);return V(M)?!1:Tt(M.OrdinaryHasOwnMetadata(g,b,k))}function wt(g,b,k){var M=yt(g,b,k);if(M)return sn(g,b,k);var F=$n(b);if(!ze(F))return wt(g,F,k)}function sn(g,b,k){var M=In(b,k,!1);if(!V(M))return M.OrdinaryGetOwnMetadata(g,b,k)}function Ei(g,b,k,M){var F=In(k,M,!0);F.OrdinaryDefineOwnMetadata(g,b,k,M)}function xn(g,b){var k=Ue(g,b),M=$n(g);if(M===null)return k;var F=xn(M,b);if(F.length<=0)return k;if(k.length<=0)return F;for(var fe=new y,ce=[],_=0,$=k;_<$.length;_++){var N=$[_],z=fe.has(N);z||(fe.add(N),ce.push(N))}for(var T=0,U=F;T<U.length;T++){var N=U[T],z=fe.has(N);z||(fe.add(N),ce.push(N))}return ce}function Ue(g,b){var k=In(g,b,!1);return k?k.OrdinaryOwnMetadataKeys(g,b):[]}function se(g){if(g===null)return 1;switch(typeof g){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return g===null?1:6;default:return 6}}function V(g){return g===void 0}function ze(g){return g===null}function zt(g){return typeof g=="symbol"}function ie(g){return typeof g=="object"?g!==null:typeof g=="function"}function X(g,b){switch(se(g)){case 0:return g;case 1:return g;case 2:return g;case 3:return g;case 4:return g;case 5:return g}var k="string",M=D(g,s);if(M!==void 0){var F=M.call(g,k);if(ie(F))throw new TypeError;return F}return Re(g)}function Re(g,b){var k,M;{var F=g.toString;if($e(F)){var M=F.call(g);if(!ie(M))return M}var k=g.valueOf;if($e(k)){var M=k.call(g);if(!ie(M))return M}}throw new TypeError}function Tt(g){return!!g}function xi(g){return""+g}function He(g){var b=X(g);return zt(b)?b:xi(b)}function vn(g){return Array.isArray?Array.isArray(g):g instanceof Object?g instanceof Array:Object.prototype.toString.call(g)==="[object Array]"}function $e(g){return typeof g=="function"}function Mn(g){return typeof g=="function"}function Bn(g){switch(se(g)){case 3:return!0;case 4:return!0;default:return!1}}function Te(g,b){return g===b||g!==g&&b!==b}function D(g,b){var k=g[b];if(k!=null){if(!$e(k))throw new TypeError;return k}}function xe(g){var b=D(g,a);if(!$e(b))throw new TypeError;var k=b.call(g);if(!ie(k))throw new TypeError;return k}function je(g){return g.value}function nt(g){var b=g.next();return b.done?!1:b}function Rn(g){var b=g.return;b&&b.call(g)}function $n(g){var b=Object.getPrototypeOf(g);if(typeof g!="function"||g===f||b!==f)return b;var k=g.prototype,M=k&&Object.getPrototypeOf(k);if(M==null||M===Object.prototype)return b;var F=M.constructor;return typeof F!="function"||F===g?b:F}function Ot(){var g;!V(S)&&typeof n.Reflect<"u"&&!(S in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(g=mg(n.Reflect));var b,k,M,F=new w,fe={registerProvider:ce,getProvider:$,setProvider:z};return fe;function ce(T){if(!Object.isExtensible(fe))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case g===T:break;case V(b):b=T;break;case b===T:break;case V(k):k=T;break;case k===T:break;default:M===void 0&&(M=new y),M.add(T);break}}function _(T,U){if(!V(b)){if(b.isProviderFor(T,U))return b;if(!V(k)){if(k.isProviderFor(T,U))return b;if(!V(M))for(var ee=xe(M);;){var oe=nt(ee);if(!oe)return;var We=je(oe);if(We.isProviderFor(T,U))return Rn(ee),We}}}if(!V(g)&&g.isProviderFor(T,U))return g}function $(T,U){var ee=F.get(T),oe;return V(ee)||(oe=ee.get(U)),V(oe)&&(oe=_(T,U),V(oe)||(V(ee)&&(ee=new m,F.set(T,ee)),ee.set(U,oe))),oe}function N(T){if(V(T))throw new TypeError;return b===T||k===T||!V(M)&&M.has(T)}function z(T,U,ee){if(!N(ee))throw new Error("Metadata provider not registered.");var oe=$(T,U);if(oe!==ee){if(!V(oe))return!1;var We=F.get(T);V(We)&&(We=new m,F.set(T,We)),We.set(U,ee)}return!0}}function hg(){var g;return!V(S)&&ie(n.Reflect)&&Object.isExtensible(n.Reflect)&&(g=n.Reflect[S]),V(g)&&(g=Ot()),!V(S)&&ie(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,S,{enumerable:!1,configurable:!1,writable:!1,value:g}),g}function fg(g){var b=new w,k={isProviderFor:function(N,z){var T=b.get(N);return V(T)?!1:T.has(z)},OrdinaryDefineOwnMetadata:ce,OrdinaryHasOwnMetadata:F,OrdinaryGetOwnMetadata:fe,OrdinaryOwnMetadataKeys:_,OrdinaryDeleteMetadata:$};return x.registerProvider(k),k;function M(N,z,T){var U=b.get(N),ee=!1;if(V(U)){if(!T)return;U=new m,b.set(N,U),ee=!0}var oe=U.get(z);if(V(oe)){if(!T)return;if(oe=new m,U.set(z,oe),!g.setProvider(N,z,k))throw U.delete(z),ee&&b.delete(N),new Error("Wrong provider for target.")}return oe}function F(N,z,T){var U=M(z,T,!1);return V(U)?!1:Tt(U.has(N))}function fe(N,z,T){var U=M(z,T,!1);if(!V(U))return U.get(N)}function ce(N,z,T,U){var ee=M(T,U,!0);ee.set(N,z)}function _(N,z){var T=[],U=M(N,z,!1);if(V(U))return T;for(var ee=U.keys(),oe=xe(ee),We=0;;){var Gs=nt(oe);if(!Gs)return T.length=We,T;var wg=je(Gs);try{T[We]=wg}catch(bg){try{Rn(oe)}finally{throw bg}}We++}}function $(N,z,T){var U=M(z,T,!1);if(V(U)||!U.delete(N))return!1;if(U.size===0){var ee=b.get(z);V(ee)||(ee.delete(T),ee.size===0&&b.delete(ee))}return!0}}function mg(g){var b=g.defineMetadata,k=g.hasOwnMetadata,M=g.getOwnMetadata,F=g.getOwnMetadataKeys,fe=g.deleteMetadata,ce=new w,_={isProviderFor:function($,N){var z=ce.get($);return!V(z)&&z.has(N)?!0:F($,N).length?(V(z)&&(z=new y,ce.set($,z)),z.add(N),!0):!1},OrdinaryDefineOwnMetadata:b,OrdinaryHasOwnMetadata:k,OrdinaryGetOwnMetadata:M,OrdinaryOwnMetadataKeys:F,OrdinaryDeleteMetadata:fe};return _}function In(g,b,k){var M=x.getProvider(g,b);if(!V(M))return M;if(k){if(x.setProvider(g,b,C))return C;throw new Error("Illegal state.")}}function pg(){var g={},b=[],k=function(){function _($,N,z){this._index=0,this._keys=$,this._values=N,this._selector=z}return _.prototype["@@iterator"]=function(){return this},_.prototype[a]=function(){return this},_.prototype.next=function(){var $=this._index;if($>=0&&$<this._keys.length){var N=this._selector(this._keys[$],this._values[$]);return $+1>=this._keys.length?(this._index=-1,this._keys=b,this._values=b):this._index++,{value:N,done:!1}}return{value:void 0,done:!0}},_.prototype.throw=function($){throw this._index>=0&&(this._index=-1,this._keys=b,this._values=b),$},_.prototype.return=function($){return this._index>=0&&(this._index=-1,this._keys=b,this._values=b),{value:$,done:!0}},_}(),M=function(){function _(){this._keys=[],this._values=[],this._cacheKey=g,this._cacheIndex=-2}return Object.defineProperty(_.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),_.prototype.has=function($){return this._find($,!1)>=0},_.prototype.get=function($){var N=this._find($,!1);return N>=0?this._values[N]:void 0},_.prototype.set=function($,N){var z=this._find($,!0);return this._values[z]=N,this},_.prototype.delete=function($){var N=this._find($,!1);if(N>=0){for(var z=this._keys.length,T=N+1;T<z;T++)this._keys[T-1]=this._keys[T],this._values[T-1]=this._values[T];return this._keys.length--,this._values.length--,Te($,this._cacheKey)&&(this._cacheKey=g,this._cacheIndex=-2),!0}return!1},_.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=g,this._cacheIndex=-2},_.prototype.keys=function(){return new k(this._keys,this._values,F)},_.prototype.values=function(){return new k(this._keys,this._values,fe)},_.prototype.entries=function(){return new k(this._keys,this._values,ce)},_.prototype["@@iterator"]=function(){return this.entries()},_.prototype[a]=function(){return this.entries()},_.prototype._find=function($,N){if(!Te(this._cacheKey,$)){this._cacheIndex=-1;for(var z=0;z<this._keys.length;z++)if(Te(this._keys[z],$)){this._cacheIndex=z;break}}return this._cacheIndex<0&&N&&(this._cacheIndex=this._keys.length,this._keys.push($),this._values.push(void 0)),this._cacheIndex},_}();return M;function F(_,$){return _}function fe(_,$){return $}function ce(_,$){return[_,$]}}function gg(){var g=function(){function b(){this._map=new m}return Object.defineProperty(b.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),b.prototype.has=function(k){return this._map.has(k)},b.prototype.add=function(k){return this._map.set(k,k),this},b.prototype.delete=function(k){return this._map.delete(k)},b.prototype.clear=function(){this._map.clear()},b.prototype.keys=function(){return this._map.keys()},b.prototype.values=function(){return this._map.keys()},b.prototype.entries=function(){return this._map.entries()},b.prototype["@@iterator"]=function(){return this.keys()},b.prototype[a]=function(){return this.keys()},b}();return g}function yg(){var g=16,b=h.create(),k=M();return function(){function $(){this._key=M()}return $.prototype.has=function(N){var z=F(N,!1);return z!==void 0?h.has(z,this._key):!1},$.prototype.get=function(N){var z=F(N,!1);return z!==void 0?h.get(z,this._key):void 0},$.prototype.set=function(N,z){var T=F(N,!0);return T[this._key]=z,this},$.prototype.delete=function(N){var z=F(N,!1);return z!==void 0?delete z[this._key]:!1},$.prototype.clear=function(){this._key=M()},$}();function M(){var $;do $="@@WeakMap@@"+_();while(h.has(b,$));return b[$]=!0,$}function F($,N){if(!r.call($,k)){if(!N)return;Object.defineProperty($,k,{value:h.create()})}return $[k]}function fe($,N){for(var z=0;z<N;++z)$[z]=Math.random()*255|0;return $}function ce($){if(typeof Uint8Array=="function"){var N=new Uint8Array($);return typeof crypto<"u"?crypto.getRandomValues(N):typeof msCrypto<"u"?msCrypto.getRandomValues(N):fe(N,$),N}return fe(new Array($),$)}function _(){var $=ce(g);$[6]=$[6]&79|64,$[8]=$[8]&191|128;for(var N="",z=0;z<g;++z){var T=$[z];(z===4||z===6||z===8)&&(N+="-"),T<16&&(N+="0"),N+=T.toString(16).toLowerCase()}return N}}function zr(g){return g.__=void 0,delete g.__,g}})})(jr||(jr={}));const ge=[];for(let t=0;t<256;++t)ge.push((t+256).toString(16).slice(1));function ga(t,e=0){return(ge[t[e+0]]+ge[t[e+1]]+ge[t[e+2]]+ge[t[e+3]]+"-"+ge[t[e+4]]+ge[t[e+5]]+"-"+ge[t[e+6]]+ge[t[e+7]]+"-"+ge[t[e+8]]+ge[t[e+9]]+"-"+ge[t[e+10]]+ge[t[e+11]]+ge[t[e+12]]+ge[t[e+13]]+ge[t[e+14]]+ge[t[e+15]]).toLowerCase()}const ya=new Uint8Array(16);function wa(){return crypto.getRandomValues(ya)}function dt(t,e,n){return crypto.randomUUID?crypto.randomUUID():ba(t)}function ba(t,e,n){var o;t=t||{};const r=t.random??((o=t.rng)==null?void 0:o.call(t))??wa();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ga(r)}class de{static UUID(){return dt()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}function Ca(t){var e=[];if(t.length===0)return"";if(typeof t[0]!="string")throw new TypeError("Url must be a string. Received "+t[0]);if(t[0].match(/^[^/:]+:\/*$/)&&t.length>1){var n=t.shift();t[0]=n+t[0]}t[0].match(/^file:\/\/\//)?t[0]=t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0]=t[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<t.length;r++){var o=t[r];if(typeof o!="string")throw new TypeError("Url must be a string. Received "+o);o!==""&&(r>0&&(o=o.replace(/^[\/]+/,"")),r<t.length-1?o=o.replace(/[\/]+$/,""):o=o.replace(/[\/]+$/,"/"),e.push(o))}var s=e.join("/");s=s.replace(/\/(\?|&|#[^!])/g,"$1");var a=s.split("?");return s=a.shift()+(a.length>0?"?":"")+a.join("&"),s}function Ii(){var t;return typeof arguments[0]=="object"?t=arguments[0]:t=[].slice.call(arguments),Ca(t)}class W{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static BuildSafeUrl(e,n,r){try{const o=new URL(e);return n&&(o.port=n.toString()),Ii(o.toString(),r)}catch{throw new Error(`Invalid host URL: ${e}`)}}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((o,s)=>s===0?o.toLowerCase():W.Capitalize(o.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,o=>{if(o===o.toLowerCase()){const a=Object.keys(r).find(c=>r[c]===o);return a||""}const s=Object.keys(r).find(a=>r[a]===o.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,o=>o===o.toLowerCase()?r[o]:r[o.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,""),o=n.toLowerCase().replaceAll(/\s/g,""),s=W.Translit(r),a=W.Translit(o);return r.includes(o)||s.includes(o)||r.includes(a)}static SearchIn(e,n){return W.StringsEquals(e,n)}static SearchInFields(e,n){let r=!1;for(let o=0;o<n.length;o++)if(W.SearchIn(n[o],e)){r=!0;break}return r}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const o=r??"highlight-text",s=new RegExp(W.GetVariants(n).join("|"),"gi");return e.replace(s,`<span class="${o}">$&</span>`)}static GetVariants(e){const n=W.Translit(e);return[e,W.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,W.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 pt=class pt{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const o=n[r];if(this.isPrimitive(o))e[r]instanceof Date?e[r]=new Date(o):e[r]=o;else if(o!=null&&!Array.isArray(o))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(o);else{const s=Reflect.getMetadata(r,e);s&&(e[r]=new s[r](o))}if(Array.isArray(o)){if(o.length===0)return;const s=Reflect.getMetadata(r,e);o.length!==0&&!s&&(e[r]=o),s&&(e[r]=o.map(a=>new s[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){pt.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const o=n.findIndex(s=>s.id===e);pt.RemoveFromClass(o,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const o=n[e].id;o&&r&&r.push(o),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,o){return o}})}static InitClassInstance(e,n){const r=e.constructor(n);return pt.BuildClass(r),r.id=de.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(pt.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,o])=>[r,pt.DeepMap(e)(o)])):e(n)}static DeepTrim(e){return this.DeepMap(W.TrimText)(e)}};l(pt,"GetClassConstructor",e=>(n,r)=>{const o=Reflect.getMetadata(`property:${r}`,n)||{};o[r]=e,Reflect.defineMetadata(r,o,n)});let A=pt;class Ct{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");A.BuildClass(this,e)}static Create(){const e=new Ct;return e.id=de.UUID(),e}}class Ai{static Setup(e="http://localhost",n="9000",r="api"){this.staticUrl=W.BuildSafeUrl(e,n,r),this.staticUrl=Ii(this.staticUrl,"static")}static get StaticUrl(){return this.staticUrl}}l(Ai,"staticUrl","");class ye{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);A.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Ai.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Vt&&Vt.tagName.toUpperCase()==="SCRIPT"&&Vt.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new ye;return r.id=n??de.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=de.UUID(),r}setFile(e){this.id||(this.id=de.UUID()),this.originalName=e.name,this.file=e,this.fileSystemPath=de.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:Vt&&Vt.tagName.toUpperCase()==="SCRIPT"&&Vt.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 Wr{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);A.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=W.Capitalize(this.name),this.surname=W.Capitalize(this.surname),this.patronymic=W.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");A.BuildClass(this,e)}static Create(){const e=new St;return e.id=de.UUID(),e}}class Fn{constructor(e){l(this,"id");l(this,"address");l(this,"description");A.BuildClass(this,e)}}class Dn{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");A.BuildClass(this,e)}static Create(){const e=new Dn;return e.id=de.UUID(),e}}class Pi{constructor(e){l(this,"id");l(this,"address");l(this,"description");A.BuildClass(this,e)}}let Sa=(ct=class{},l(ct,"Phone",St),l(ct,"FileInfo",ye),l(ct,"Website",Pi),l(ct,"Email",Ct),l(ct,"Human",Wr),l(ct,"PostAddress",Fn),l(ct,"UserAccount",Dn),ct);var te=(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))(te||{});class Ln{constructor(e){l(this,"field","");l(this,"operator",te.Eq);l(this,"value","");A.BuildClass(this,e)}setValue(e){this.value=e}static Create(e,n){return new Ln({operator:n,field:e})}eq(e){return this.field===e.field&&this.operator===e.operator}isUnary(){return this.operator===te.Eq||this.operator===te.Gt||this.operator===te.Lt}isBetween(){return this.operator===te.Btw}isSet(){return this.operator===te.In}}class Ni{constructor(e){l(this,"model","");l(this,"field","");l(this,"value","");l(this,"wheres",[]);A.BuildClass(this,e)}static Create(e){const n=new Ni;return n.model=e.GetClassName(),n}eq(e){return e.model===this.model&&e.field===this.field}addWhere(e,n){const r=this.findWhere({field:e,operator:n});if(r)return r;const o=Ln.Create(e,n);return this.wheres.push(o),o}findWhere(e){return this.wheres.find(n=>n.eq(e))}}let Gr=class Zs{constructor(e){l(this,"id");l(this,"model","");l(this,"wheres",[]);l(this,"joins",[]);A.BuildClass(this,e)}static Create(e){const n=new Zs;return n.model=e.GetClassName(),n}addWhere(e,n){const r=this.findWhere({field:e,operator:n});if(r)return r;const o=Ln.Create(e,n);return this.wheres.push(o),o}removeWhere(e){const n=this.wheres.findIndex(r=>r.eq(e));n>-1&&this.wheres.splice(n,1)}addJoin(e){const n=this.findJoin({model:e.GetClassName()});if(n)return n;const r=Ni.Create(e);return this.joins.push(r),r}findJoin(e){return this.joins.find(n=>n.eq(e))}findWhere(e){return this.wheres.find(n=>n.eq(e))}toRef(){return i.ref(this)}};class rt{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},(o,s)=>e+s*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,o)=>e[o]==n[o]))}static SwipeById(e,n,r){const o=e.findIndex(a=>n.id===a.id),s=e.findIndex(a=>r.id===a.id);o||s||([e[o],e[s]]=[e[s],e[o]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const o=e[n];e[n]=e[r],e[r]=o}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 ue=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t.ArrayString="arrayString",t.ArrayNumber="arrayNumber",t))(ue||{}),ka=Object.defineProperty,Ea=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&ka(e,n,o),o};const Zr=class An{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",te.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",ue.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","");A.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===ue.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===te.In?n&&rt.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===ue.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===ue.String?this.value1===(e==null?void 0:e.value1):this.type===ue.Join&&this.set.length?rt.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}"`:"",o=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===ue.Boolean?`"boolean":${this.boolean}`:"",c=this.type===ue.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",d=this.type===ue.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===ue.Number?`"number":${this.number}`:"",h=this.type===ue.Set||this.operator===te.In?`"set":${JSON.stringify(this.set)}`:"",f=this.type===ue.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,o,s,a,c,d,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===te.Eq||this.operator===te.Gt||this.operator===te.Lt}isBetweenFilter(){return this.operator===te.Btw}isSetFilter(){return this.operator===te.In}static Create(e,n,r){const o=new An;return o.model=e.GetClassName(),o.col=n??"",o.type=r,o.type===ue.Number&&(o.value1="0"),o.type===ue.String&&(o.value1=""),o.type===ue.Boolean&&(o.value1="false",o.operator=te.Eq),o}static CreateFilterModelWithJoin(e,n,r,o,s,a,c,d){const u=new An;return u.id=dt(),u.joinTable=r,u.joinTablePk=o,u.joinTableFk=s,u.col=n,u.type=a,c&&(u.joinTableId=c),d&&(u.joinTableIdCol=d),u}static CreateFilterModelWithJoinV2(e,n,r,o,s,a,c){const d=new An;return d.model=e,d.joinTableModel=r,d.joinTablePk=o,d.joinTableFk=s,d.col=n,d.type=ue.Join,a&&(d.joinTableId=a),c&&(d.joinTableIdCol=c),d}static OnlyIfSecondModelExists(e,n){const r=new An;return r.id=dt(),r.model=W.ToCamelCase(e.GetClassName()),r.joinTableModel=W.ToCamelCase(n.GetClassName()),r.type=ue.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=te.Eq;return}this.setDate2(n),this.operator=te.Btw}};Ea([A.GetClassConstructor(String)],Zr.prototype,"set");let zi=Zr;class xa{constructor(){l(this,"operation",te.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,o=r?`"value":"${r}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,o,s,a].filter(c=>c!=="").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 Hn{constructor(e){l(this,"page",0);l(this,"rowsPerPage",25);l(this,"rowsNumber",0);l(this,"cursor",new xa);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");A.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=te.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=te.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.page=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,o=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,o,s,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.page=Number(r.get("offset")),this.rowsPerPage=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.rowsPerPage)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.page/this.rowsPerPage+1}drop(){this.page=0,this.rowsPerPage=25,A.BuildClass(this)}}var Ve=(t=>(t.Asc="asc",t.Desc="desc",t))(Ve||{});class qn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);A.BuildClass(this,e)}static Create(e,n,r=Ve.Asc,o,s){const a=new qn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ve.Asc,a.label=o??"",a.default=s??!1,a}isAsc(){return this.order===Ve.Asc}isDesc(){return this.order===Ve.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=Ve.Asc}desc(){this.order=Ve.Desc}}class _n{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new _n;return r.model=e.GetClassName(),r.cols=n,r}}var va=Object.defineProperty,ln=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&va(e,n,o),o};const Lt=(Be=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"f2",[]);l(this,"s",[]);l(this,"p",new Hn);l(this,"t",new _n);A.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Be),this.instance}createFrom(e){const n=new Be(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Be(this);return e.f=this.f.map(n=>Be.EmptyEntiries(n)),e.f2=this.f2.map(n=>Be.EmptyEntiries(n)),e.s=this.s.map(n=>Be.EmptyEntiries(n)),e.p=Be.EmptyEntiries(this.p),e.t=Be.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([o,s])=>o!=="label"&&s!==""&&s!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return rt.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}setF2(e){this.f2.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));A.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new Hn}resetF(){this.f=[]}},l(Be,"instance"),Be);ln([A.GetClassConstructor(zi)],Lt.prototype,"f"),ln([A.GetClassConstructor(Gr)],Lt.prototype,"f2"),ln([A.GetClassConstructor(qn)],Lt.prototype,"s"),ln([A.GetClassConstructor(Hn)],Lt.prototype,"p"),ln([A.GetClassConstructor(_n)],Lt.prototype,"t");let ot=Lt,Ma=(rn=class{},l(rn,"SortModel",qn),l(rn,"FilterModel",zi),l(rn,"FilterModelV2",Gr),l(rn,"FTSP",ot),rn);function Xr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ba}=Object.prototype,{getPrototypeOf:Ht}=Object,{iterator:cn,toStringTag:Qr}=Symbol,Un=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),dn=(t,e)=>{let n=t;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Un(n,e))return!0;n=Ht(n)}return!1},Ra=(t,e)=>t!=null&&dn(t,e)?t[e]:void 0,Ti=(t=>e=>{const n=Ba.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qe=t=>(t=t.toLowerCase(),e=>Ti(e)===t),jn=t=>e=>typeof e===t,{isArray:kt}=Array,qt=jn("undefined");function _t(t){return t!==null&&!qt(t)&&t.constructor!==null&&!qt(t.constructor)&&ve(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Yr=qe("ArrayBuffer");function $a(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Yr(t.buffer),e}const Ia=jn("string"),ve=jn("function"),Jr=jn("number"),Ut=t=>t!==null&&typeof t=="object",Aa=t=>t===!0||t===!1,Wn=t=>{if(!Ut(t))return!1;const e=Ht(t);return(e===null||e===Object.prototype||Ht(e)===null)&&!dn(t,Qr)&&!dn(t,cn)},Pa=t=>{if(!Ut(t)||_t(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Na=qe("Date"),za=qe("File"),Ta=t=>!!(t&&typeof t.uri<"u"),Oa=t=>t&&typeof t.getParts<"u",Va=qe("Blob"),Fa=qe("FileList"),Da=t=>Ut(t)&&ve(t.pipe);function La(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Kr=La(),eo=typeof Kr.FormData<"u"?Kr.FormData:void 0,Ha=t=>{if(!t)return!1;if(eo&&t instanceof eo)return!0;const e=Ht(t);if(!e||e===Object.prototype||!ve(t.append))return!1;const n=Ti(t);return n==="formdata"||n==="object"&&ve(t.toString)&&t.toString()==="[object FormData]"},qa=qe("URLSearchParams"),[_a,Ua,ja,Wa]=["ReadableStream","Request","Response","Headers"].map(qe),Ga=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function un(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),kt(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(_t(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let c;for(r=0;r<a;r++)c=s[r],e.call(null,t[c],c,t)}}function to(t,e){if(_t(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Et=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,no=t=>!qt(t)&&t!==Et;function Oi(...t){const{caseless:e,skipUndefined:n}=no(this)&&this||{},r={},o=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=e&&typeof a=="string"&&to(r,a)||a,d=Un(r,c)?r[c]:void 0;Wn(d)&&Wn(s)?r[c]=Oi(d,s):Wn(s)?r[c]=Oi({},s):kt(s)?r[c]=s.slice():(!n||!qt(s))&&(r[c]=s)};for(let s=0,a=t.length;s<a;s++){const c=t[s];if(!c||_t(c)||(un(c,o),typeof c!="object"||kt(c)))continue;const d=Object.getOwnPropertySymbols(c);for(let u=0;u<d.length;u++){const h=d[u];ol.call(c,h)&&o(c[h],h)}}return r}const Za=(t,e,n,{allOwnKeys:r}={})=>(un(e,(o,s)=>{n&&ve(o)?Object.defineProperty(t,s,{__proto__:null,value:Xr(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Xa=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Qa=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},Ya=(t,e,n,r)=>{let o,s,a;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],(!r||r(a,t,e))&&!c[a]&&(e[a]=t[a],c[a]=!0);t=n!==!1&&Ht(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Ja=(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},Ka=t=>{if(!t)return null;if(kt(t))return t;let e=t.length;if(!Jr(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},el=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ht(Uint8Array)),tl=(t,e)=>{const r=(t&&t[cn]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},nl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},il=qe("HTMLFormElement"),rl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:ol}=Object.prototype,sl=qe("RegExp"),io=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};un(n,(o,s)=>{let a;(a=e(o,s,t))!==!1&&(r[s]=a||o)}),Object.defineProperties(t,r)},al=t=>{io(t,(e,n)=>{if(ve(t)&&["arguments","caller","callee"].includes(n))return!1;const r=t[n];if(ve(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+"'")})}})},ll=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return kt(t)?r(t):r(String(t).split(e)),n},cl=()=>{},dl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function ul(t){return!!(t&&ve(t.append)&&t[Qr]==="FormData"&&t[cn])}const hl=t=>{const e=new WeakSet,n=r=>{if(Ut(r)){if(e.has(r))return;if(_t(r))return r;if(!("toJSON"in r)){e.add(r);const o=kt(r)?[]:{};return un(r,(s,a)=>{const c=n(s);!qt(c)&&(o[a]=c)}),e.delete(r),o}}return r};return n(t)},fl=qe("AsyncFunction"),ml=t=>t&&(Ut(t)||ve(t))&&ve(t.then)&&ve(t.catch),ro=((t,e)=>t?setImmediate:e?((n,r)=>(Et.addEventListener("message",({source:o,data:s})=>{o===Et&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Et.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ve(Et.postMessage)),pl=typeof queueMicrotask<"u"?queueMicrotask.bind(Et):typeof process<"u"&&process.nextTick||ro,oo=t=>t!=null&&ve(t[cn]),p={isArray:kt,isArrayBuffer:Yr,isBuffer:_t,isFormData:Ha,isArrayBufferView:$a,isString:Ia,isNumber:Jr,isBoolean:Aa,isObject:Ut,isPlainObject:Wn,isEmptyObject:Pa,isReadableStream:_a,isRequest:Ua,isResponse:ja,isHeaders:Wa,isUndefined:qt,isDate:Na,isFile:za,isReactNativeBlob:Ta,isReactNative:Oa,isBlob:Va,isRegExp:sl,isFunction:ve,isStream:Da,isURLSearchParams:qa,isTypedArray:el,isFileList:Fa,forEach:un,merge:Oi,extend:Za,trim:Ga,stripBOM:Xa,inherits:Qa,toFlatObject:Ya,kindOf:Ti,kindOfTest:qe,endsWith:Ja,toArray:Ka,forEachEntry:tl,matchAll:nl,isHTMLForm:il,hasOwnProperty:Un,hasOwnProp:Un,hasOwnInPrototypeChain:dn,getSafeProp:Ra,reduceDescriptors:io,freezeMethods:al,toObjectSet:ll,toCamelCase:rl,noop:cl,toFiniteNumber:dl,findKey:to,global:Et,isContextDefined:no,isSpecCompliantForm:ul,toJSONObject:hl,isAsyncFn:fl,isThenable:ml,setImmediate:ro,asap:pl,isIterable:oo,isSafeIterable:t=>t!=null&&dn(t,cn)&&oo(t)},gl=p.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"]),yl=t=>{const e={};let n,r,o;return t&&t.split(`
15
- `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||e[n]&&gl[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};function wl(t){let e=0,n=t.length;for(;e<n;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;n>e;){const r=t.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const bl=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Cl=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Vi(t,e){return p.isArray(t)?t.map(n=>Vi(n,e)):wl(String(t).replace(e,""))}const Sl=t=>Vi(t,bl),kl=t=>Vi(t,Cl);function so(t){const e=Object.create(null);return p.forEach(t.toJSON(),(n,r)=>{e[r]=kl(n)}),e}const ao=Symbol("internals");function hn(t){return t&&String(t).trim().toLowerCase()}function Gn(t){return t===!1||t==null?t:p.isArray(t)?t.map(Gn):Sl(String(t))}function El(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 xl=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Fi(t,e,n,r,o){if(p.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!p.isString(e)){if(p.isString(r))return e.indexOf(r)!==-1;if(p.isRegExp(r))return r.test(e)}}function vl(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Ml(t,e){const n=p.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{__proto__:null,value:function(o,s,a){return this[r].call(this,e,o,s,a)},configurable:!0})})}let Se=class{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(c,d,u){const h=hn(d);if(!h)return;const f=p.findKey(o,h);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||d]=Gn(c))}const a=(c,d)=>p.forEach(c,(u,h)=>s(u,h,d));if(p.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(p.isString(e)&&(e=e.trim())&&!xl(e))a(yl(e),n);else if(p.isObject(e)&&p.isSafeIterable(e)){let c=Object.create(null),d,u;for(const h of e){if(!p.isArray(h))throw new TypeError("Object iterator must return a key-value pair");u=h[0],p.hasOwnProp(c,u)?(d=c[u],c[u]=p.isArray(d)?[...d,h[1]]:[d,h[1]]):c[u]=h[1]}a(c,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=hn(e),e){const r=p.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return El(o);if(p.isFunction(n))return n.call(this,o,r);if(p.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=hn(e),e){const r=p.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Fi(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(a){if(a=hn(a),a){const c=p.findKey(r,a);c&&(!n||Fi(r,r[c],c,n))&&(delete r[c],o=!0)}}return p.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||Fi(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return p.forEach(this,(o,s)=>{const a=p.findKey(r,s);if(a){n[a]=Gn(o),delete n[s];return}const c=e?vl(s):String(s).trim();c!==s&&delete n[s],n[c]=Gn(o),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return p.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&p.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
- `)}getSetCookie(){return this.get("set-cookie")||[]}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(o=>r.set(o)),r}static accessor(e){const r=(this[ao]=this[ao]={accessors:{}}).accessors,o=this.prototype;function s(a){const c=hn(a);r[c]||(Ml(o,a),r[c]=!0)}return p.isArray(e)?e.forEach(s):s(e),this}};Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),p.reduceDescriptors(Se.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),p.freezeMethods(Se);const Bl="[REDACTED ****]";function Rl(t){if(p.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(p.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function $l(t,e){const n=new Set(e.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||p.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Se&&(s=s.toJSON()),r.push(s);let a;if(p.isArray(s))a=[],s.forEach((c,d)=>{const u=o(c);p.isUndefined(u)||(a[d]=u)});else{if(!p.isPlainObject(s)&&Rl(s))return r.pop(),s;a=Object.create(null);for(const[c,d]of Object.entries(s)){const u=n.has(c.toLowerCase())?Bl:o(d);p.isUndefined(u)||(a[c]=u)}}return r.pop(),a};return o(t)}let B=class Xs extends Error{static from(e,n,r,o,s,a){const c=new Xs(e.message,n||e.code,r,o,s);return Object.defineProperty(c,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),c.name=e.name,e.status!=null&&c.status==null&&(c.status=e.status),a&&Object.assign(c,a),c}constructor(e,n,r,o,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,n=e&&p.hasOwnProp(e,"redact")?e.redact:void 0,r=p.isArray(n)&&n.length>0?$l(e,n):p.toJSONObject(e);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:r,code:this.code,status:this.status}}};B.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",B.ERR_BAD_OPTION="ERR_BAD_OPTION",B.ECONNABORTED="ECONNABORTED",B.ETIMEDOUT="ETIMEDOUT",B.ECONNREFUSED="ECONNREFUSED",B.ERR_NETWORK="ERR_NETWORK",B.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",B.ERR_DEPRECATED="ERR_DEPRECATED",B.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",B.ERR_BAD_REQUEST="ERR_BAD_REQUEST",B.ERR_CANCELED="ERR_CANCELED",B.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",B.ERR_INVALID_URL="ERR_INVALID_URL",B.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Il=null,lo=100;function Di(t){return p.isPlainObject(t)||p.isArray(t)}function co(t){return p.endsWith(t,"[]")?t.slice(0,-2):t}function Li(t,e,n){return t?t.concat(e).map(function(o,s){return o=co(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Al(t){return p.isArray(t)&&!t.some(Di)}const Pl=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function Zn(t,e,n){if(!p.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=p.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(P,E){return!p.isUndefined(E[P])});const r=n.metaTokens,o=n.visitor||w,s=n.dots,a=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,d=n.maxDepth===void 0?lo:n.maxDepth,u=c&&p.isSpecCompliantForm(e),h=[];if(!p.isFunction(o))throw new TypeError("visitor must be a function");function f(C){if(C===null)return"";if(p.isDate(C))return C.toISOString();if(p.isBoolean(C))return C.toString();if(!u&&p.isBlob(C))throw new B("Blob is not supported. Use a Buffer instead.");if(p.isArrayBuffer(C)||p.isTypedArray(C)){if(u&&typeof c=="function")return new c([C]);if(typeof Buffer<"u")return Buffer.from(C);throw new B("Blob is not supported. Use a Buffer instead.",B.ERR_NOT_SUPPORT)}return C}function m(C){if(C>d)throw new B("Object is too deeply nested ("+C+" levels). Max depth: "+d,B.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(C,P){if(d===1/0)return JSON.stringify(C);const E=[];return JSON.stringify(C,function(L,Q){if(!p.isObject(Q))return Q;for(;E.length&&E[E.length-1]!==this;)E.pop();return E.push(Q),m(P+E.length-1),Q})}function w(C,P,E){let I=C;if(p.isReactNative(e)&&p.isReactNativeBlob(C))return e.append(Li(E,P,s),f(C)),!1;if(C&&!E&&typeof C=="object"){if(p.endsWith(P,"{}"))P=r?P:P.slice(0,-2),C=y(C,1);else if(p.isArray(C)&&Al(C)||(p.isFileList(C)||p.endsWith(P,"[]"))&&(I=p.toArray(C)))return P=co(P),I.forEach(function(Q,Ae){!(p.isUndefined(Q)||Q===null)&&e.append(a===!0?Li([P],Ae,s):a===null?P:P+"[]",f(Q))}),!1}return Di(C)?!0:(e.append(Li(E,P,s),f(C)),!1)}const S=Object.assign(Pl,{defaultVisitor:w,convertValue:f,isVisitable:Di});function x(C,P,E=0){if(!p.isUndefined(C)){if(m(E),h.indexOf(C)!==-1)throw new Error("Circular reference detected in "+P.join("."));h.push(C),p.forEach(C,function(L,Q){(!(p.isUndefined(L)||L===null)&&o.call(e,L,p.isString(Q)?Q.trim():Q,P,S))===!0&&x(L,P?P.concat(Q):[Q],E+1)}),h.pop()}}if(!p.isObject(t))throw new TypeError("data must be an object");return x(t),e}function uo(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function Hi(t,e){this._pairs=[],t&&Zn(t,this,e)}const ho=Hi.prototype;ho.append=function(e,n){this._pairs.push([e,n])},ho.toString=function(e){const n=e?r=>e.call(this,r,uo):uo;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Nl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function fo(t,e,n){if(!e)return t;t=t||"";const r=p.isFunction(n)?{serialize:n}:n,o=p.getSafeProp(r,"encode")||Nl,s=p.getSafeProp(r,"serialize");let a;if(s?a=s(e,r):a=p.isURLSearchParams(e)?e.toString():new Hi(e,r).toString(o),a){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class mo{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){p.forEach(this.handlers,function(r){r!==null&&e(r)})}}const qi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},zl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Hi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_i=typeof window<"u"&&typeof document<"u",Ui=typeof navigator=="object"&&navigator||void 0,Tl=_i&&(!Ui||["ReactNative","NativeScript","NS"].indexOf(Ui.product)<0),Ol=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vl=_i&&window.location.href||"http://localhost",we={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_i,hasStandardBrowserEnv:Tl,hasStandardBrowserWebWorkerEnv:Ol,navigator:Ui,origin:Vl},Symbol.toStringTag,{value:"Module"})),...zl};function Fl(t,e){return Zn(t,new we.classes.URLSearchParams,{visitor:function(n,r,o,s){return we.isNode&&p.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}const po=lo;function go(t){if(t>po)throw new B("FormData field is too deeply nested ("+t+" levels). Max depth: "+po,B.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Dl(t){const e=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(t))!==null;)go(e.length),e.push(r[0]==="[]"?"":r[1]||r[0]);return e}function Ll(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function yo(t){function e(n,r,o,s){go(s);let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),d=s>=n.length;return a=!a&&p.isArray(o)?o.length:a,d?(p.hasOwnProp(o,a)?o[a]=p.isArray(o[a])?o[a].concat(r):[o[a],r]:o[a]=r,!c):((!p.hasOwnProp(o,a)||!p.isObject(o[a]))&&(o[a]=[]),e(n,r,o[a],s)&&p.isArray(o[a])&&(o[a]=Ll(o[a])),!c)}if(p.isFormData(t)&&p.isFunction(t.entries)){const n={};return p.forEachEntry(t,(r,o)=>{e(Dl(r),o,n,0)}),n}return null}const jt=(t,e)=>t!=null&&p.hasOwnProp(t,e)?t[e]:void 0;function Hl(t,e,n){if(p.isString(t))try{return(e||JSON.parse)(t),p.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const fn={transitional:qi,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=p.isObject(e);if(s&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return o?JSON.stringify(yo(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){const d=jt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Fl(e,d).toString();if((c=p.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=jt(this,"env"),h=u&&u.FormData;return Zn(c?{"files[]":e}:e,h&&new h,d)}}return s||o?(n.setContentType("application/json",!1),Hl(e)):e}],transformResponse:[function(e){const n=jt(this,"transitional")||fn.transitional,r=n&&n.forcedJSONParsing,o=jt(this,"responseType"),s=o==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(r&&!o||s)){const c=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,jt(this,"parseReviver"))}catch(d){if(c)throw d.name==="SyntaxError"?B.from(d,B.ERR_BAD_RESPONSE,this,null,jt(this,"response")):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch","query"],t=>{fn.headers[t]={}});function ji(t,e){const n=this||fn,r=e||n,o=Se.from(r.headers);let s=r.data;return p.forEach(t,function(c){s=c.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function wo(t){return!!(t&&t.__CANCEL__)}let mn=class extends B{constructor(e,n,r){super(e??"canceled",B.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function bo(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new B("Request failed with status code "+n.status,n.status>=400&&n.status<500?B.ERR_BAD_REQUEST:B.ERR_BAD_RESPONSE,n.config,n.request,n))}function ql(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function _l(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,a;return e=e!==void 0?e:1e3,function(d){const u=Date.now(),h=r[s];a||(a=u),n[o]=d,r[o]=u;let f=s,m=0;for(;f!==o;)m+=n[f++],f=f%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-a<e)return;const y=h&&u-h;return y?Math.round(m*1e3/y):void 0}}function Ul(t,e){let n=0,r=1e3/e,o,s;const a=(u,h=Date.now())=>{n=h,o=null,s&&(clearTimeout(s),s=null),t(...u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?a(u,h):(o=u,s||(s=setTimeout(()=>{s=null,a(o)},r-f)))},()=>o&&a(o)]}const Xn=(t,e,n=3)=>{let r=0;const o=_l(50,250);return Ul(s=>{if(!s||typeof s.loaded!="number")return;const a=s.loaded,c=s.lengthComputable?s.total:void 0,d=c!=null?Math.min(a,c):a,u=Math.max(0,d-r),h=o(u);r=Math.max(r,d);const f={loaded:d,total:c,progress:c?d/c:void 0,bytes:u,rate:h||void 0,estimated:h&&c?(c-d)/h:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(f)},n)},Co=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},So=t=>(...e)=>p.asap(()=>t(...e)),jl=we.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,we.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(we.origin),we.navigator&&/(msie|trident)/i.test(we.navigator.userAgent)):()=>!0,Wl=we.hasStandardBrowserEnv?{write(t,e,n,r,o,s,a){if(typeof document>"u")return;const c=[`${t}=${encodeURIComponent(e)}`];p.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),p.isString(r)&&c.push(`path=${r}`),p.isString(o)&&c.push(`domain=${o}`),s===!0&&c.push("secure"),p.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Gl(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Zl(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const Xl=/^https?:(?!\/\/)/i,Ql=/[\t\n\r]/g;function Yl(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function Jl(t){return Yl(t).replace(Ql,"")}function ko(t,e){if(typeof t=="string"&&Xl.test(Jl(t)))throw new B('Invalid URL: missing "//" after protocol',B.ERR_INVALID_URL,e)}function Eo(t,e,n,r){ko(e,r);let o=!Gl(e);return t&&(o||n===!1)?(ko(t,r),Zl(t,e)):e}const xo=t=>t instanceof Se?{...t}:t;function xt(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(h,f,m,y){return p.isPlainObject(h)&&p.isPlainObject(f)?p.merge.call({caseless:y},h,f):p.isPlainObject(f)?p.merge({},f):p.isArray(f)?f.slice():f}function o(h,f,m,y){if(p.isUndefined(f)){if(!p.isUndefined(h))return r(void 0,h,m,y)}else return r(h,f,m,y)}function s(h,f){if(!p.isUndefined(f))return r(void 0,f)}function a(h,f){if(p.isUndefined(f)){if(!p.isUndefined(h))return r(void 0,h)}else return r(void 0,f)}function c(h){const f=p.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!p.isUndefined(f))if(p.isPlainObject(f)){if(p.hasOwnProp(f,h))return f[h]}else return;const m=p.hasOwnProp(t,"transitional")?t.transitional:void 0;if(p.isPlainObject(m)&&p.hasOwnProp(m,h))return m[h]}function d(h,f,m){if(p.hasOwnProp(e,m))return r(h,f);if(p.hasOwnProp(t,m))return r(void 0,h)}const u={url:s,method:s,data:s,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,allowedSocketPaths:a,responseEncoding:a,validateStatus:d,headers:(h,f,m)=>o(xo(h),xo(f),m,!0)};return p.forEach(Object.keys({...t,...e}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const m=p.hasOwnProp(u,f)?u[f]:o,y=p.hasOwnProp(t,f)?t[f]:void 0,w=p.hasOwnProp(e,f)?e[f]:void 0,S=m(y,w,f);p.isUndefined(S)&&m!==d||(n[f]=S)}),p.hasOwnProp(e,"validateStatus")&&p.isUndefined(e.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(p.hasOwnProp(t,"validateStatus")?n.validateStatus=r(void 0,t.validateStatus):delete n.validateStatus),n}const Kl=["content-type","content-length"];function ec(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([r,o])=>{Kl.includes(r.toLowerCase())&&t.set(r,o)})}const tc=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function vo(t){const e=xt({},t),n=m=>p.hasOwnProp(e,m)?e[m]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),a=n("xsrfCookieName");let c=n("headers");const d=n("auth"),u=n("baseURL"),h=n("allowAbsoluteUrls"),f=n("url");if(e.headers=c=Se.from(c),e.url=fo(Eo(u,f,h,e),n("params"),n("paramsSerializer")),d){const m=p.getSafeProp(d,"username")||"",y=p.getSafeProp(d,"password")||"";try{c.set("Authorization","Basic "+btoa(m+":"+(y?tc(y):"")))}catch(w){throw B.from(w,B.ERR_BAD_OPTION_VALUE,t)}}if(p.isFormData(r)&&(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv||p.isReactNative(r)?c.setContentType(void 0):p.isFunction(r.getHeaders)&&ec(c,r.getHeaders(),n("formDataHeaderPolicy"))),we.hasStandardBrowserEnv&&(p.isFunction(o)&&(o=o(e)),o===!0||o==null&&jl(e.url))){const y=s&&a&&Wl.read(a);y&&c.set(s,y)}return e}const nc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=vo(t);let s=o.data;const a=Se.from(o.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:u}=o,h,f,m,y,w;function S(){y&&y(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function C(){if(!x)return;const E=Se.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),L={data:!c||c==="text"||c==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:E,config:t,request:x};bo(function(Ae){n(Ae),S()},function(Ae){r(Ae),S()},L),x=null}"onloadend"in x?x.onloadend=C:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.startsWith("file:"))||setTimeout(C)},x.onabort=function(){x&&(r(new B("Request aborted",B.ECONNABORTED,t,x)),S(),x=null)},x.onerror=function(I){const L=I&&I.message?I.message:"Network Error",Q=new B(L,B.ERR_NETWORK,t,x);Q.event=I||null,r(Q),S(),x=null},x.ontimeout=function(){let I=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const L=o.transitional||qi;o.timeoutErrorMessage&&(I=o.timeoutErrorMessage),r(new B(I,L.clarifyTimeoutError?B.ETIMEDOUT:B.ECONNABORTED,t,x)),S(),x=null},s===void 0&&a.setContentType(null),"setRequestHeader"in x&&p.forEach(so(a),function(I,L){x.setRequestHeader(L,I)}),p.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),c&&c!=="json"&&(x.responseType=o.responseType),u&&([m,w]=Xn(u,!0),x.addEventListener("progress",m)),d&&x.upload&&([f,y]=Xn(d),x.upload.addEventListener("progress",f),x.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(h=E=>{x&&(r(!E||E.type?new mn(null,t,x):E),x.abort(),S(),x=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const P=ql(o.url);if(P&&!we.protocols.includes(P)){r(new B("Unsupported protocol "+P+":",B.ERR_BAD_REQUEST,t)),S();return}x.send(s||null)})},ic=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let r=!1;const o=function(d){if(!r){r=!0,a();const u=d instanceof Error?d:this.reason;n.abort(u instanceof B?u:new mn(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,o(new B(`timeout of ${e}ms exceeded`,B.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),t=null)};t.forEach(d=>d.addEventListener("abort",o,{once:!0}));const{signal:c}=n;return c.unsubscribe=()=>p.asap(a),c},rc=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},oc=async function*(t,e){for await(const n of sc(t))yield*rc(n,e)},sc=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()}},Mo=(t,e,n,r)=>{const o=oc(t,e);let s=0,a,c=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:u,value:h}=await o.next();if(u){c(),d.close();return}let f=h.byteLength;if(n){let m=s+=f;n(m)}d.enqueue(new Uint8Array(h))}catch(u){throw c(u),u}},cancel(d){return c(d),o.return()}},{highWaterMark:2})},Qn=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,ac=(t,e,n)=>e+2<n&&Qn(t.charCodeAt(e+1))&&Qn(t.charCodeAt(e+2));function lc(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),r=t.slice(e+1);if(/;base64/i.test(n)){let a=r.length;const c=r.length;for(let y=0;y<c;y++)if(r.charCodeAt(y)===37&&y+2<c){const w=r.charCodeAt(y+1),S=r.charCodeAt(y+2);Qn(w)&&Qn(S)&&(a-=2,y+=2)}let d=0,u=c-1;const h=y=>y>=2&&r.charCodeAt(y-2)===37&&r.charCodeAt(y-1)===51&&(r.charCodeAt(y)===68||r.charCodeAt(y)===100);u>=0&&(r.charCodeAt(u)===61?(d++,u--):h(u)&&(d++,u-=3)),d===1&&u>=0&&(r.charCodeAt(u)===61||h(u))&&d++;const m=Math.floor(a/4)*3-(d||0);return m>0?m:0}let s=0;for(let a=0,c=r.length;a<c;a++){const d=r.charCodeAt(a);if(d===37&&ac(r,a,c))s+=1,a+=2;else if(d<128)s+=1;else if(d<2048)s+=2;else if(d>=55296&&d<=56319&&a+1<c){const u=r.charCodeAt(a+1);u>=56320&&u<=57343?(s+=4,a++):s+=3}else s+=3}return s}const Wi="1.18.1",Bo=64*1024,{isFunction:Yn}=p,cc=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),Ro=t=>{if(!p.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},$o=(t,...e)=>{try{return!!t(...e)}catch{return!1}},dc=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},uc=t=>{const e=p.global!==void 0&&p.global!==null?p.global:globalThis,{ReadableStream:n,TextEncoder:r}=e;t=p.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:o,Request:s,Response:a}=t,c=o?Yn(o):typeof fetch=="function",d=Yn(s),u=Yn(a);if(!c)return!1;const h=c&&Yn(n),f=c&&(typeof r=="function"?(C=>P=>C.encode(P))(new r):async C=>new Uint8Array(await new s(C).arrayBuffer())),m=d&&h&&$o(()=>{let C=!1;const P=new s(we.origin,{body:new n,method:"POST",get duplex(){return C=!0,"half"}}),E=P.headers.has("Content-Type");return P.body!=null&&P.body.cancel(),C&&!E}),y=u&&h&&$o(()=>p.isReadableStream(new a("").body)),w={stream:y&&(C=>C.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!w[C]&&(w[C]=(P,E)=>{let I=P&&P[C];if(I)return I.call(P);throw new B(`Response type '${C}' is not supported`,B.ERR_NOT_SUPPORT,E)})});const S=async C=>{if(C==null)return 0;if(p.isBlob(C))return C.size;if(p.isSpecCompliantForm(C))return(await new s(we.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(p.isArrayBufferView(C)||p.isArrayBuffer(C))return C.byteLength;if(p.isURLSearchParams(C)&&(C=C+""),p.isString(C))return(await f(C)).byteLength},x=async(C,P)=>{const E=p.toFiniteNumber(C.getContentLength());return E??S(P)};return async C=>{let{url:P,method:E,data:I,signal:L,cancelToken:Q,timeout:Ae,onDownloadProgress:Pt,onUploadProgress:Nt,responseType:Pe,headers:tt,withCredentials:on="same-origin",fetchOptions:ki,maxContentLength:Ne,maxBodyLength:yt}=vo(C);const wt=p.isNumber(Ne)&&Ne>-1,sn=p.isNumber(yt)&&yt>-1,Ei=X=>p.hasOwnProp(C,X)?C[X]:void 0;let xn=o||fetch;Pe=Pe?(Pe+"").toLowerCase():"text";let Ue=ic([L,Q&&Q.toAbortSignal()],Ae),se=null;const V=Ue&&Ue.unsubscribe&&(()=>{Ue.unsubscribe()});let ze,zt=null;const ie=()=>new B("Request body larger than maxBodyLength limit",B.ERR_BAD_REQUEST,C,se);try{let X;const Re=Ei("auth");if(Re){const D=p.getSafeProp(Re,"username")||"",xe=p.getSafeProp(Re,"password")||"";X={username:D,password:xe}}if(dc(P)){const D=new URL(P,we.origin);if(!X&&(D.username||D.password)){const xe=Ro(D.username),je=Ro(D.password);X={username:xe,password:je}}(D.username||D.password)&&(D.username="",D.password="",P=D.href)}if(X&&(tt.delete("authorization"),tt.set("Authorization","Basic "+btoa(cc((X.username||"")+":"+(X.password||""))))),wt&&typeof P=="string"&&P.startsWith("data:")&&lc(P)>Ne)throw new B("maxContentLength size of "+Ne+" exceeded",B.ERR_BAD_RESPONSE,C,se);if(sn&&E!=="get"&&E!=="head"){const D=await S(I);if(typeof D=="number"&&isFinite(D)&&(ze=D,D>yt))throw ie()}const Tt=sn&&(p.isReadableStream(I)||p.isStream(I)),xi=(D,xe,je)=>Mo(D,Bo,nt=>{if(sn&&nt>yt)throw zt=ie();xe&&xe(nt)},je);if(m&&E!=="get"&&E!=="head"&&(Nt||Tt)){if(ze=ze??await x(tt,I),ze!==0||Tt){let D=new s(P,{method:"POST",body:I,duplex:"half"}),xe;if(p.isFormData(I)&&(xe=D.headers.get("content-type"))&&tt.setContentType(xe),D.body){const[je,nt]=Nt&&Co(ze,Xn(So(Nt)))||[];I=xi(D.body,je,nt)}}}else if(Tt&&!d&&h&&E!=="get"&&E!=="head")I=xi(I);else if(Tt&&d&&!m&&E!=="get"&&E!=="head")throw new B("Stream request bodies are not supported by the current fetch implementation",B.ERR_NOT_SUPPORT,C,se);p.isString(on)||(on=on?"include":"omit");const He=d&&"credentials"in s.prototype;if(p.isFormData(I)){const D=tt.getContentType();D&&/^multipart\/form-data/i.test(D)&&!/boundary=/i.test(D)&&tt.delete("content-type")}tt.set("User-Agent","axios/"+Wi,!1);const vn={...ki,signal:Ue,method:E.toUpperCase(),headers:so(tt.normalize()),body:I,duplex:"half",credentials:He?on:void 0};se=d&&new s(P,vn);let $e=await(d?xn(se,ki):xn(P,vn));const Mn=Se.from($e.headers);if(wt){const D=p.toFiniteNumber(Mn.getContentLength());if(D!=null&&D>Ne)throw new B("maxContentLength size of "+Ne+" exceeded",B.ERR_BAD_RESPONSE,C,se)}const Bn=y&&(Pe==="stream"||Pe==="response");if(y&&$e.body&&(Pt||wt||Bn&&V)){const D={};["status","statusText","headers"].forEach(Ot=>{D[Ot]=$e[Ot]});const xe=p.toFiniteNumber(Mn.getContentLength()),[je,nt]=Pt&&Co(xe,Xn(So(Pt),!0))||[];let Rn=0;const $n=Ot=>{if(wt&&(Rn=Ot,Rn>Ne))throw new B("maxContentLength size of "+Ne+" exceeded",B.ERR_BAD_RESPONSE,C,se);je&&je(Ot)};$e=new a(Mo($e.body,Bo,$n,()=>{nt&&nt(),V&&V()}),D)}Pe=Pe||"text";let Te=await w[p.findKey(w,Pe)||"text"]($e,C);if(wt&&!y&&!Bn){let D;if(Te!=null&&(typeof Te.byteLength=="number"?D=Te.byteLength:typeof Te.size=="number"?D=Te.size:typeof Te=="string"&&(D=typeof r=="function"?new r().encode(Te).byteLength:Te.length)),typeof D=="number"&&D>Ne)throw new B("maxContentLength size of "+Ne+" exceeded",B.ERR_BAD_RESPONSE,C,se)}return!Bn&&V&&V(),await new Promise((D,xe)=>{bo(D,xe,{data:Te,headers:Se.from($e.headers),status:$e.status,statusText:$e.statusText,config:C,request:se})})}catch(X){if(V&&V(),Ue&&Ue.aborted&&Ue.reason instanceof B){const Re=Ue.reason;throw Re.config=C,se&&(Re.request=se),X!==Re&&Object.defineProperty(Re,"cause",{__proto__:null,value:X,writable:!0,enumerable:!1,configurable:!0}),Re}if(zt)throw se&&!zt.request&&(zt.request=se),zt;if(X instanceof B)throw se&&!X.request&&(X.request=se),X;if(X&&X.name==="TypeError"&&/Load failed|fetch/i.test(X.message)){const Re=new B("Network Error",B.ERR_NETWORK,C,se,X&&X.response);throw Object.defineProperty(Re,"cause",{__proto__:null,value:X.cause||X,writable:!0,enumerable:!1,configurable:!0}),Re}throw B.from(X,X&&X.code,C,se,X&&X.response)}}},hc=new Map,Io=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,s=[r,o,n];let a=s.length,c=a,d,u,h=hc;for(;c--;)d=s[c],u=h.get(d),u===void 0&&h.set(d,u=c?new Map:uc(e)),h=u;return u};Io();const Gi={http:Il,xhr:nc,fetch:{get:Io}};p.forEach(Gi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Ao=t=>`- ${t}`,fc=t=>p.isFunction(t)||t===null||t===!1;function mc(t,e){t=p.isArray(t)?t:[t];const{length:n}=t;let r,o;const s={};for(let a=0;a<n;a++){r=t[a];let c;if(o=r,!fc(r)&&(o=Gi[(c=String(r)).toLowerCase()],o===void 0))throw new B(`Unknown adapter '${c}'`);if(o&&(p.isFunction(o)||(o=o.get(e))))break;s[c||"#"+a]=o}if(!o){const a=Object.entries(s).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?a.length>1?`since :
14
+ ***************************************************************************** */var jr;(function(t){(function(e){var n=typeof globalThis=="object"?globalThis:typeof _r=="object"?_r:typeof self=="object"?self:typeof this=="object"?this:c(),r=o(t);typeof n.Reflect<"u"&&(r=o(n.Reflect,r)),e(r,n),typeof n.Reflect>"u"&&(n.Reflect=t);function o(d,u){return function(f,h){Object.defineProperty(d,f,{configurable:!0,writable:!0,value:h}),u&&u(f,h)}}function s(){try{return Function("return this;")()}catch{}}function a(){try{return(0,eval)("(function() { return this; })()")}catch{}}function c(){return s()||a()}})(function(e,n){var r=Object.prototype.hasOwnProperty,o=typeof Symbol=="function",s=o&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",a=o&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",c=typeof Object.create=="function",d={__proto__:[]}instanceof Array,u=!c&&!d,f={create:c?function(){return zr(Object.create(null))}:d?function(){return zr({__proto__:null})}:function(){return zr({})},has:u?function(g,b){return r.call(g,b)}:function(g,b){return b in g},get:u?function(g,b){return r.call(g,b)?g[b]:void 0}:function(g,b){return g[b]}},h=Object.getPrototypeOf(Function),m=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:bg(),y=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Cg(),w=typeof WeakMap=="function"?WeakMap:Sg(),k=o?Symbol.for("@reflect-metadata:registry"):void 0,x=gg(),C=yg(x);function A(g,b,S,B){if(F(S)){if(!Mn(g))throw new TypeError;if(!Bn(b))throw new TypeError;return on(g,b)}else{if(!Mn(g))throw new TypeError;if(!re(b))throw new TypeError;if(!re(B)&&!F(B)&&!ze(B))throw new TypeError;return ze(B)&&(B=void 0),S=He(S),xi(g,b,S,B)}}e("decorate",A);function E(g,b){function S(B,D){if(!re(B))throw new TypeError;if(!F(D)&&!vn(D))throw new TypeError;Ei(g,b,B,D)}return S}e("metadata",E);function z(g,b,S,B){if(!re(S))throw new TypeError;return F(B)||(B=He(B)),Ei(g,b,S,B)}e("defineMetadata",z);function O(g,b,S){if(!re(b))throw new TypeError;return F(S)||(S=He(S)),Ne(g,b,S)}e("hasMetadata",O);function q(g,b,S){if(!re(b))throw new TypeError;return F(S)||(S=He(S)),yt(g,b,S)}e("hasOwnMetadata",q);function Me(g,b,S){if(!re(b))throw new TypeError;return F(S)||(S=He(S)),wt(g,b,S)}e("getMetadata",Me);function Pt(g,b,S){if(!re(b))throw new TypeError;return F(S)||(S=He(S)),sn(g,b,S)}e("getOwnMetadata",Pt);function Nt(g,b){if(!re(g))throw new TypeError;return F(b)||(b=He(b)),En(g,b)}e("getMetadataKeys",Nt);function Pe(g,b){if(!re(g))throw new TypeError;return F(b)||(b=He(b)),_e(g,b)}e("getOwnMetadataKeys",Pe);function tt(g,b,S){if(!re(b))throw new TypeError;if(F(S)||(S=He(S)),!re(b))throw new TypeError;F(S)||(S=He(S));var B=In(b,S,!1);return F(B)?!1:B.OrdinaryDeleteMetadata(g,b,S)}e("deleteMetadata",tt);function on(g,b){for(var S=g.length-1;S>=0;--S){var B=g[S],D=B(b);if(!F(D)&&!ze(D)){if(!Bn(D))throw new TypeError;b=D}}return b}function xi(g,b,S,B){for(var D=g.length-1;D>=0;--D){var he=g[D],ce=he(b,S,B);if(!F(ce)&&!ze(ce)){if(!re(ce))throw new TypeError;B=ce}}return B}function Ne(g,b,S){var B=yt(g,b,S);if(B)return!0;var D=$n(b);return ze(D)?!1:Ne(g,D,S)}function yt(g,b,S){var B=In(b,S,!1);return F(B)?!1:Tt(B.OrdinaryHasOwnMetadata(g,b,S))}function wt(g,b,S){var B=yt(g,b,S);if(B)return sn(g,b,S);var D=$n(b);if(!ze(D))return wt(g,D,S)}function sn(g,b,S){var B=In(b,S,!1);if(!F(B))return B.OrdinaryGetOwnMetadata(g,b,S)}function Ei(g,b,S,B){var D=In(S,B,!0);D.OrdinaryDefineOwnMetadata(g,b,S,B)}function En(g,b){var S=_e(g,b),B=$n(g);if(B===null)return S;var D=En(B,b);if(D.length<=0)return S;if(S.length<=0)return D;for(var he=new y,ce=[],j=0,$=S;j<$.length;j++){var P=$[j],N=he.has(P);N||(he.add(P),ce.push(P))}for(var T=0,W=D;T<W.length;T++){var P=W[T],N=he.has(P);N||(he.add(P),ce.push(P))}return ce}function _e(g,b){var S=In(g,b,!1);return S?S.OrdinaryOwnMetadataKeys(g,b):[]}function ae(g){if(g===null)return 1;switch(typeof g){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return g===null?1:6;default:return 6}}function F(g){return g===void 0}function ze(g){return g===null}function zt(g){return typeof g=="symbol"}function re(g){return typeof g=="object"?g!==null:typeof g=="function"}function Y(g,b){switch(ae(g)){case 0:return g;case 1:return g;case 2:return g;case 3:return g;case 4:return g;case 5:return g}var S="string",B=L(g,s);if(B!==void 0){var D=B.call(g,S);if(re(D))throw new TypeError;return D}return $e(g)}function $e(g,b){var S,B;{var D=g.toString;if(Ie(D)){var B=D.call(g);if(!re(B))return B}var S=g.valueOf;if(Ie(S)){var B=S.call(g);if(!re(B))return B}}throw new TypeError}function Tt(g){return!!g}function Mi(g){return""+g}function He(g){var b=Y(g);return zt(b)?b:Mi(b)}function Mn(g){return Array.isArray?Array.isArray(g):g instanceof Object?g instanceof Array:Object.prototype.toString.call(g)==="[object Array]"}function Ie(g){return typeof g=="function"}function Bn(g){return typeof g=="function"}function vn(g){switch(ae(g)){case 3:return!0;case 4:return!0;default:return!1}}function Te(g,b){return g===b||g!==g&&b!==b}function L(g,b){var S=g[b];if(S!=null){if(!Ie(S))throw new TypeError;return S}}function Ee(g){var b=L(g,a);if(!Ie(b))throw new TypeError;var S=b.call(g);if(!re(S))throw new TypeError;return S}function je(g){return g.value}function nt(g){var b=g.next();return b.done?!1:b}function Rn(g){var b=g.return;b&&b.call(g)}function $n(g){var b=Object.getPrototypeOf(g);if(typeof g!="function"||g===h||b!==h)return b;var S=g.prototype,B=S&&Object.getPrototypeOf(S);if(B==null||B===Object.prototype)return b;var D=B.constructor;return typeof D!="function"||D===g?b:D}function Ot(){var g;!F(k)&&typeof n.Reflect<"u"&&!(k in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(g=wg(n.Reflect));var b,S,B,D=new w,he={registerProvider:ce,getProvider:$,setProvider:N};return he;function ce(T){if(!Object.isExtensible(he))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case g===T:break;case F(b):b=T;break;case b===T:break;case F(S):S=T;break;case S===T:break;default:B===void 0&&(B=new y),B.add(T);break}}function j(T,W){if(!F(b)){if(b.isProviderFor(T,W))return b;if(!F(S)){if(S.isProviderFor(T,W))return b;if(!F(B))for(var te=Ee(B);;){var se=nt(te);if(!se)return;var We=je(se);if(We.isProviderFor(T,W))return Rn(te),We}}}if(!F(g)&&g.isProviderFor(T,W))return g}function $(T,W){var te=D.get(T),se;return F(te)||(se=te.get(W)),F(se)&&(se=j(T,W),F(se)||(F(te)&&(te=new m,D.set(T,te)),te.set(W,se))),se}function P(T){if(F(T))throw new TypeError;return b===T||S===T||!F(B)&&B.has(T)}function N(T,W,te){if(!P(te))throw new Error("Metadata provider not registered.");var se=$(T,W);if(se!==te){if(!F(se))return!1;var We=D.get(T);F(We)&&(We=new m,D.set(T,We)),We.set(W,te)}return!0}}function gg(){var g;return!F(k)&&re(n.Reflect)&&Object.isExtensible(n.Reflect)&&(g=n.Reflect[k]),F(g)&&(g=Ot()),!F(k)&&re(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,k,{enumerable:!1,configurable:!1,writable:!1,value:g}),g}function yg(g){var b=new w,S={isProviderFor:function(P,N){var T=b.get(P);return F(T)?!1:T.has(N)},OrdinaryDefineOwnMetadata:ce,OrdinaryHasOwnMetadata:D,OrdinaryGetOwnMetadata:he,OrdinaryOwnMetadataKeys:j,OrdinaryDeleteMetadata:$};return x.registerProvider(S),S;function B(P,N,T){var W=b.get(P),te=!1;if(F(W)){if(!T)return;W=new m,b.set(P,W),te=!0}var se=W.get(N);if(F(se)){if(!T)return;if(se=new m,W.set(N,se),!g.setProvider(P,N,S))throw W.delete(N),te&&b.delete(P),new Error("Wrong provider for target.")}return se}function D(P,N,T){var W=B(N,T,!1);return F(W)?!1:Tt(W.has(P))}function he(P,N,T){var W=B(N,T,!1);if(!F(W))return W.get(P)}function ce(P,N,T,W){var te=B(T,W,!0);te.set(P,N)}function j(P,N){var T=[],W=B(P,N,!1);if(F(W))return T;for(var te=W.keys(),se=Ee(te),We=0;;){var Ys=nt(se);if(!Ys)return T.length=We,T;var kg=je(Ys);try{T[We]=kg}catch(xg){try{Rn(se)}finally{throw xg}}We++}}function $(P,N,T){var W=B(N,T,!1);if(F(W)||!W.delete(P))return!1;if(W.size===0){var te=b.get(N);F(te)||(te.delete(T),te.size===0&&b.delete(te))}return!0}}function wg(g){var b=g.defineMetadata,S=g.hasOwnMetadata,B=g.getOwnMetadata,D=g.getOwnMetadataKeys,he=g.deleteMetadata,ce=new w,j={isProviderFor:function($,P){var N=ce.get($);return!F(N)&&N.has(P)?!0:D($,P).length?(F(N)&&(N=new y,ce.set($,N)),N.add(P),!0):!1},OrdinaryDefineOwnMetadata:b,OrdinaryHasOwnMetadata:S,OrdinaryGetOwnMetadata:B,OrdinaryOwnMetadataKeys:D,OrdinaryDeleteMetadata:he};return j}function In(g,b,S){var B=x.getProvider(g,b);if(!F(B))return B;if(S){if(x.setProvider(g,b,C))return C;throw new Error("Illegal state.")}}function bg(){var g={},b=[],S=function(){function j($,P,N){this._index=0,this._keys=$,this._values=P,this._selector=N}return j.prototype["@@iterator"]=function(){return this},j.prototype[a]=function(){return this},j.prototype.next=function(){var $=this._index;if($>=0&&$<this._keys.length){var P=this._selector(this._keys[$],this._values[$]);return $+1>=this._keys.length?(this._index=-1,this._keys=b,this._values=b):this._index++,{value:P,done:!1}}return{value:void 0,done:!0}},j.prototype.throw=function($){throw this._index>=0&&(this._index=-1,this._keys=b,this._values=b),$},j.prototype.return=function($){return this._index>=0&&(this._index=-1,this._keys=b,this._values=b),{value:$,done:!0}},j}(),B=function(){function j(){this._keys=[],this._values=[],this._cacheKey=g,this._cacheIndex=-2}return Object.defineProperty(j.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),j.prototype.has=function($){return this._find($,!1)>=0},j.prototype.get=function($){var P=this._find($,!1);return P>=0?this._values[P]:void 0},j.prototype.set=function($,P){var N=this._find($,!0);return this._values[N]=P,this},j.prototype.delete=function($){var P=this._find($,!1);if(P>=0){for(var N=this._keys.length,T=P+1;T<N;T++)this._keys[T-1]=this._keys[T],this._values[T-1]=this._values[T];return this._keys.length--,this._values.length--,Te($,this._cacheKey)&&(this._cacheKey=g,this._cacheIndex=-2),!0}return!1},j.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=g,this._cacheIndex=-2},j.prototype.keys=function(){return new S(this._keys,this._values,D)},j.prototype.values=function(){return new S(this._keys,this._values,he)},j.prototype.entries=function(){return new S(this._keys,this._values,ce)},j.prototype["@@iterator"]=function(){return this.entries()},j.prototype[a]=function(){return this.entries()},j.prototype._find=function($,P){if(!Te(this._cacheKey,$)){this._cacheIndex=-1;for(var N=0;N<this._keys.length;N++)if(Te(this._keys[N],$)){this._cacheIndex=N;break}}return this._cacheIndex<0&&P&&(this._cacheIndex=this._keys.length,this._keys.push($),this._values.push(void 0)),this._cacheIndex},j}();return B;function D(j,$){return j}function he(j,$){return $}function ce(j,$){return[j,$]}}function Cg(){var g=function(){function b(){this._map=new m}return Object.defineProperty(b.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),b.prototype.has=function(S){return this._map.has(S)},b.prototype.add=function(S){return this._map.set(S,S),this},b.prototype.delete=function(S){return this._map.delete(S)},b.prototype.clear=function(){this._map.clear()},b.prototype.keys=function(){return this._map.keys()},b.prototype.values=function(){return this._map.keys()},b.prototype.entries=function(){return this._map.entries()},b.prototype["@@iterator"]=function(){return this.keys()},b.prototype[a]=function(){return this.keys()},b}();return g}function Sg(){var g=16,b=f.create(),S=B();return function(){function $(){this._key=B()}return $.prototype.has=function(P){var N=D(P,!1);return N!==void 0?f.has(N,this._key):!1},$.prototype.get=function(P){var N=D(P,!1);return N!==void 0?f.get(N,this._key):void 0},$.prototype.set=function(P,N){var T=D(P,!0);return T[this._key]=N,this},$.prototype.delete=function(P){var N=D(P,!1);return N!==void 0?delete N[this._key]:!1},$.prototype.clear=function(){this._key=B()},$}();function B(){var $;do $="@@WeakMap@@"+j();while(f.has(b,$));return b[$]=!0,$}function D($,P){if(!r.call($,S)){if(!P)return;Object.defineProperty($,S,{value:f.create()})}return $[S]}function he($,P){for(var N=0;N<P;++N)$[N]=Math.random()*255|0;return $}function ce($){if(typeof Uint8Array=="function"){var P=new Uint8Array($);return typeof crypto<"u"?crypto.getRandomValues(P):typeof msCrypto<"u"?msCrypto.getRandomValues(P):he(P,$),P}return he(new Array($),$)}function j(){var $=ce(g);$[6]=$[6]&79|64,$[8]=$[8]&191|128;for(var P="",N=0;N<g;++N){var T=$[N];(N===4||N===6||N===8)&&(P+="-"),T<16&&(P+="0"),P+=T.toString(16).toLowerCase()}return P}}function zr(g){return g.__=void 0,delete g.__,g}})})(jr||(jr={}));const ge=[];for(let t=0;t<256;++t)ge.push((t+256).toString(16).slice(1));function Ca(t,e=0){return(ge[t[e+0]]+ge[t[e+1]]+ge[t[e+2]]+ge[t[e+3]]+"-"+ge[t[e+4]]+ge[t[e+5]]+"-"+ge[t[e+6]]+ge[t[e+7]]+"-"+ge[t[e+8]]+ge[t[e+9]]+"-"+ge[t[e+10]]+ge[t[e+11]]+ge[t[e+12]]+ge[t[e+13]]+ge[t[e+14]]+ge[t[e+15]]).toLowerCase()}const Sa=new Uint8Array(16);function ka(){return crypto.getRandomValues(Sa)}function dt(t,e,n){return crypto.randomUUID?crypto.randomUUID():xa(t)}function xa(t,e,n){var o;t=t||{};const r=t.random??((o=t.rng)==null?void 0:o.call(t))??ka();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ca(r)}class de{static UUID(){return dt()}static GUID(){const e=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}}function Ea(t){var e=[];if(t.length===0)return"";if(typeof t[0]!="string")throw new TypeError("Url must be a string. Received "+t[0]);if(t[0].match(/^[^/:]+:\/*$/)&&t.length>1){var n=t.shift();t[0]=n+t[0]}t[0].match(/^file:\/\/\//)?t[0]=t[0].replace(/^([^/:]+):\/*/,"$1:///"):t[0]=t[0].replace(/^([^/:]+):\/*/,"$1://");for(var r=0;r<t.length;r++){var o=t[r];if(typeof o!="string")throw new TypeError("Url must be a string. Received "+o);o!==""&&(r>0&&(o=o.replace(/^[\/]+/,"")),r<t.length-1?o=o.replace(/[\/]+$/,""):o=o.replace(/[\/]+$/,"/"),e.push(o))}var s=e.join("/");s=s.replace(/\/(\?|&|#[^!])/g,"$1");var a=s.split("?");return s=a.shift()+(a.length>0?"?":"")+a.join("&"),s}function Ai(){var t;return typeof arguments[0]=="object"?t=arguments[0]:t=[].slice.call(arguments),Ea(t)}class Z{static Capitalize(e){return e?e[0].toUpperCase()+e.slice(1):""}static BuildSafeUrl(e,n,r){try{const o=new URL(e);return n&&(o.port=n.toString()),Ai(o.toString(),r)}catch{throw new Error(`Invalid host URL: ${e}`)}}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((o,s)=>s===0?o.toLowerCase():Z.Capitalize(o.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,o=>{if(o===o.toLowerCase()){const a=Object.keys(r).find(c=>r[c]===o);return a||""}const s=Object.keys(r).find(a=>r[a]===o.toLowerCase());return s?s.toUpperCase():""}):e.replace(/[A-z/,.;'\][]/g,o=>o===o.toLowerCase()?r[o]:r[o.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,""),o=n.toLowerCase().replaceAll(/\s/g,""),s=Z.Translit(r),a=Z.Translit(o);return r.includes(o)||s.includes(o)||r.includes(a)}static SearchIn(e,n){return Z.StringsEquals(e,n)}static SearchInFields(e,n){let r=!1;for(let o=0;o<n.length;o++)if(Z.SearchIn(n[o],e)){r=!0;break}return r}static FormatToPercentage(e){return`${e}%`}static ApplyClassToSubStr(e,n,r){const o=r??"highlight-text",s=new RegExp(Z.GetVariants(n).join("|"),"gi");return e.replace(s,`<span class="${o}">$&</span>`)}static GetVariants(e){const n=Z.Translit(e);return[e,Z.Capitalize(e),e.toLowerCase(),e.toUpperCase(),n,Z.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 pt=class pt{static BuildClass(e,n){n&&Object.keys(n).forEach(r=>{const o=n[r];if(this.isPrimitive(o))e[r]instanceof Date?e[r]=new Date(o):e[r]=o;else if(o!=null&&!Array.isArray(o))if(e[r]&&e[r].constructor)e[r]=new e[r].constructor(o);else{const s=Reflect.getMetadata(r,e);s&&(e[r]=new s[r](o))}if(Array.isArray(o)){if(o.length===0)return;const s=Reflect.getMetadata(r,e);o.length!==0&&!s&&(e[r]=o),s&&(e[r]=o.map(a=>new s[r](a)))}})}static isPrimitive(e){return e!==null&&typeof e<"u"&&e!==Object(e)}static RemoveFromClassByIndex(e,n,r){pt.RemoveFromClass(e,n,r)}static RemoveFromClassById(e,n,r){if(!e)return;const o=n.findIndex(s=>s.id===e);pt.RemoveFromClass(o,n,r)}static RemoveFromClass(e,n,r){if(e<0)return;const o=n[e].id;o&&r&&r.push(o),n.splice(e,1)}static GetPropertyName(e){const n=new e;return new Proxy(n,{get(r,o){return o}})}static InitClassInstance(e,n){const r=e.constructor(n);return pt.BuildClass(r),r.id=de.UUID(),r}static ExistsWithId(e,n){return e.some(r=>r.id===n)}static DeepMap(e){return n=>Array.isArray(n)?n.map(pt.DeepMap(e)):Object(n)===n?Object.fromEntries(Object.entries(n).map(([r,o])=>[r,pt.DeepMap(e)(o)])):e(n)}static DeepTrim(e){return this.DeepMap(Z.TrimText)(e)}};l(pt,"GetClassConstructor",e=>(n,r)=>{const o=Reflect.getMetadata(`property:${r}`,n)||{};o[r]=e,Reflect.defineMetadata(r,o,n)});let I=pt;class Ct{constructor(e){l(this,"id");l(this,"address");l(this,"description");l(this,"contactId");I.BuildClass(this,e)}static Create(){const e=new Ct;return e.id=de.UUID(),e}}class Pi{static Setup(e="http://localhost",n="9000",r="api"){this.staticUrl=Z.BuildSafeUrl(e,n,r),this.staticUrl=Ai(this.staticUrl,"static")}static get StaticUrl(){return this.staticUrl}}l(Pi,"staticUrl","");class ye{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);I.BuildClass(this,e)}getFileUrl(){const e=this.url?this.url:`${Pi.StaticUrl}/${this.fileSystemPath}`;return new URL(e,typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:Vt&&Vt.tagName.toUpperCase()==="SCRIPT"&&Vt.src||new URL("sprof.umd.cjs",document.baseURI).href)}getFileListObject(){return{name:this.originalName,url:this.url}}static CreatePreviewFile(e,n){const r=new ye;return r.id=n??de.UUID(),r.originalName=e.name,r.file=e.blob,r.fileSystemPath=de.UUID(),r}setFile(e){this.id||(this.id=de.UUID()),this.originalName=e.name,this.file=e,this.fileSystemPath=de.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:Vt&&Vt.tagName.toUpperCase()==="SCRIPT"&&Vt.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 Wr{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);I.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=Z.Capitalize(this.name),this.surname=Z.Capitalize(this.surname),this.patronymic=Z.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");I.BuildClass(this,e)}static Create(){const e=new St;return e.id=de.UUID(),e}}class Fn{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}class Dn{constructor(e){l(this,"id");l(this,"login","");l(this,"email","");l(this,"password","");I.BuildClass(this,e)}static Create(){const e=new Dn;return e.id=de.UUID(),e}}class Ni{constructor(e){l(this,"id");l(this,"address");l(this,"description");I.BuildClass(this,e)}}let Ma=(ct=class{},l(ct,"Phone",St),l(ct,"FileInfo",ye),l(ct,"Website",Ni),l(ct,"Email",Ct),l(ct,"Human",Wr),l(ct,"PostAddress",Fn),l(ct,"UserAccount",Dn),ct);var ne=(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))(ne||{});class Ln{constructor(e){l(this,"field","");l(this,"operator",ne.Eq);l(this,"value","");I.BuildClass(this,e)}setValue(e){this.value=e}static Create(e,n){return new Ln({operator:n,field:e})}eq(e){return this.field===e.field&&this.operator===e.operator}isUnary(){return this.operator===ne.Eq||this.operator===ne.Gt||this.operator===ne.Lt}isBetween(){return this.operator===ne.Btw}isSet(){return this.operator===ne.In}}class zi{constructor(e){l(this,"model","");l(this,"field","");l(this,"value","");l(this,"wheres",[]);I.BuildClass(this,e)}static Create(e){const n=new zi;return n.model=e.GetClassName(),n}eq(e){return e.model===this.model&&e.field===this.field}addWhere(e,n){const r=this.findWhere({field:e,operator:n});if(r)return r;const o=Ln.Create(e,n);return this.wheres.push(o),o}findWhere(e){return this.wheres.find(n=>n.eq(e))}}let Gr=class Js{constructor(e){l(this,"id");l(this,"model","");l(this,"wheres",[]);l(this,"joins",[]);I.BuildClass(this,e)}static Create(e){const n=new Js;return n.model=e.GetClassName(),n}addWhere(e,n){const r=this.findWhere({field:e,operator:n});if(r)return r;const o=Ln.Create(e,n);return this.wheres.push(o),o}removeWhere(e){const n=this.wheres.findIndex(r=>r.eq(e));n>-1&&this.wheres.splice(n,1)}addJoin(e){const n=this.findJoin({model:e.GetClassName()});if(n)return n;const r=zi.Create(e);return this.joins.push(r),r}findJoin(e){return this.joins.find(n=>n.eq(e))}findWhere(e){return this.wheres.find(n=>n.eq(e))}toRef(){return i.ref(this)}};class rt{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},(o,s)=>e+s*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,o)=>e[o]==n[o]))}static SwipeById(e,n,r){const o=e.findIndex(a=>n.id===a.id),s=e.findIndex(a=>r.id===a.id);o||s||([e[o],e[s]]=[e[s],e[o]])}static Swap(e,n,r){if(n<0||n>=e.length||r<0||r>=e.length)return;const o=e[n];e[n]=e[r],e[r]=o}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 ue=(t=>(t.Date="date",t.String="string",t.Boolean="boolean",t.Number="number",t.Set="set",t.Join="join",t.ArrayString="arrayString",t.ArrayNumber="arrayNumber",t))(ue||{}),Ba=Object.defineProperty,va=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Ba(e,n,o),o};const Zr=class An{constructor(e){l(this,"id");l(this,"model","");l(this,"label","");l(this,"col","");l(this,"operator",ne.Eq);l(this,"date1");l(this,"date2");l(this,"value1","");l(this,"boolean",!1);l(this,"number",0);l(this,"type",ue.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","");I.BuildClass(this,e)}eq(e){if(!e)return!1;if(this.type===ue.Join){const n=e.model===this.model&&e.operator===this.operator&&this.joinTableModel===e.joinTableModel;return e.operator===ne.In?n&&rt.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===ue.Boolean?this.boolean===(e==null?void 0:e.boolean):this.type===ue.String?this.value1===(e==null?void 0:e.value1):this.type===ue.Join&&this.set.length?rt.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}"`:"",o=this.operator?`"operator":"${this.operator}"`:"",s=this.value1?`"value1":"${this.value1}"`:"",a=this.type===ue.Boolean?`"boolean":${this.boolean}`:"",c=this.type===ue.Date&&this.date1?`"date1":"${this.date1.toISOString()}"`:"",d=this.type===ue.Date&&this.date2?`"date2":"${this.date2.toISOString()}"`:"",u=this.type===ue.Number?`"number":${this.number}`:"",f=this.type===ue.Set||this.operator===ne.In?`"set":${JSON.stringify(this.set)}`:"",h=this.type===ue.Join?`"joinTableModel":"${this.joinTableModel}"`:"";return[e,n,r,o,s,a,c,d,u,f,h].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===ne.Eq||this.operator===ne.Gt||this.operator===ne.Lt}isBetweenFilter(){return this.operator===ne.Btw}isSetFilter(){return this.operator===ne.In}static Create(e,n,r){const o=new An;return o.model=e.GetClassName(),o.col=n??"",o.type=r,o.type===ue.Number&&(o.value1="0"),o.type===ue.String&&(o.value1=""),o.type===ue.Boolean&&(o.value1="false",o.operator=ne.Eq),o}static CreateFilterModelWithJoin(e,n,r,o,s,a,c,d){const u=new An;return u.id=dt(),u.joinTable=r,u.joinTablePk=o,u.joinTableFk=s,u.col=n,u.type=a,c&&(u.joinTableId=c),d&&(u.joinTableIdCol=d),u}static CreateFilterModelWithJoinV2(e,n,r,o,s,a,c){const d=new An;return d.model=e,d.joinTableModel=r,d.joinTablePk=o,d.joinTableFk=s,d.col=n,d.type=ue.Join,a&&(d.joinTableId=a),c&&(d.joinTableIdCol=c),d}static OnlyIfSecondModelExists(e,n){const r=new An;return r.id=dt(),r.model=Z.ToCamelCase(e.GetClassName()),r.joinTableModel=Z.ToCamelCase(n.GetClassName()),r.type=ue.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=ne.Eq;return}this.setDate2(n),this.operator=ne.Btw}};va([I.GetClassConstructor(String)],Zr.prototype,"set");let Ti=Zr;class Ra{constructor(){l(this,"operation",ne.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,o=r?`"value":"${r}"`:"",s=this.model?`"model":"${this.model}"`:"",a=`"initial":${this.initial}`;return[e,n,o,s,a].filter(c=>c!=="").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 Hn{constructor(e){l(this,"page",0);l(this,"rowsPerPage",25);l(this,"rowsNumber",0);l(this,"cursor",new Ra);l(this,"cursorMode",!1);l(this,"append",!1);l(this,"allLoaded",!1);l(this,"version","");I.BuildClass(this,e)}setLoadMore(e,n,r){this.cursor.value=e,this.cursor.initial=!1,this.cursor.operation=ne.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=ne.Gt,this.cursor.column=n,this.cursor.model=r,this.cursorMode=!0,this.version="v2"}setOffset(e){this.page=e}toUrlQuery(){const e=`"offset":${this.offset}`,n=`"limit":${this.limit}`,r=`"cursorMode":${this.cursorMode}`,o=`"append":${this.append}`,s=`"allLoaded":${this.allLoaded}`,a=`"cursor":{${this.cursor.toUrlQuery()}}`;return[e,n,r,o,s,a].toString()}fromUrlQuery(){const e=window.location.search,n=e.substring(e.indexOf("p=")+2,e.lastIndexOf("|")),r=new URLSearchParams(decodeURIComponent(n));this.page=Number(r.get("offset")),this.rowsPerPage=Number(r.get("col"))}setAllLoaded(e){this.allLoaded=!(e>=this.rowsPerPage)}resetAllLoaded(){this.allLoaded=!1}getPageNum(){return this.page/this.rowsPerPage+1}drop(){this.page=0,this.rowsPerPage=25,I.BuildClass(this)}}var Ve=(t=>(t.Asc="asc",t.Desc="desc",t))(Ve||{});class qn{constructor(e){l(this,"model","");l(this,"col","");l(this,"order");l(this,"label","");l(this,"default",!1);l(this,"selected",!1);I.BuildClass(this,e)}static Create(e,n,r=Ve.Asc,o,s){const a=new qn;return a.model=e.GetClassName(),a.col=n??"",a.order=r??Ve.Asc,a.label=o??"",a.default=s??!1,a}isAsc(){return this.order===Ve.Asc}isDesc(){return this.order===Ve.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=Ve.Asc}desc(){this.order=Ve.Desc}}class Un{constructor(){l(this,"model","");l(this,"cols",[]);l(this,"models",[])}static Create(e,n){const r=new Un;return r.model=e.GetClassName(),r.cols=n,r}}var $a=Object.defineProperty,ln=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&$a(e,n,o),o};const Lt=(Re=class{constructor(e){l(this,"id");l(this,"f",[]);l(this,"f2",[]);l(this,"s",[]);l(this,"p",new Hn);l(this,"t",new Un);I.BuildClass(this,e)}static Get(){return this.instance||(this.instance=new Re),this.instance}createFrom(e){const n=new Re(JSON.parse(e));this.f=n.f}clearForHTTP(){const e=new Re(this);return e.f=this.f.map(n=>Re.EmptyEntiries(n)),e.f2=this.f2.map(n=>Re.EmptyEntiries(n)),e.s=this.s.map(n=>Re.EmptyEntiries(n)),e.p=Re.EmptyEntiries(this.p),e.t=Re.EmptyEntiries(this.t),e}static EmptyEntiries(e){if(!e)return;const r=Object.entries(e).filter(([o,s])=>o!=="label"&&s!==""&&s!==null);return Object.fromEntries(r)}findFilterModel(e){return this.f.find(n=>e.id===n.id)}getFirstSortModel(){return rt.GetLast(this.s)}setSortModel(e){e&&(this.s[0]=e)}setS(e){this.s[0]=e}setF(e){this.f.push(e)}setF2(e){this.f2.push(e)}replaceF(e,n){this.removeF(n),e&&this.setF(e)}removeF(e){const n=this.f.findIndex(r=>r.eq(e));I.RemoveFromClassByIndex(n,this.f)}reset(){this.f=[],this.s=[],this.p=new Hn}resetF(){this.f=[]}},l(Re,"instance"),Re);ln([I.GetClassConstructor(Ti)],Lt.prototype,"f"),ln([I.GetClassConstructor(Gr)],Lt.prototype,"f2"),ln([I.GetClassConstructor(qn)],Lt.prototype,"s"),ln([I.GetClassConstructor(Hn)],Lt.prototype,"p"),ln([I.GetClassConstructor(Un)],Lt.prototype,"t");let ot=Lt,Ia=(rn=class{},l(rn,"SortModel",qn),l(rn,"FilterModel",Ti),l(rn,"FilterModelV2",Gr),l(rn,"FTSP",ot),rn);function Xr(t,e){return function(){return t.apply(e,arguments)}}const{toString:Aa}=Object.prototype,{getPrototypeOf:Ht}=Object,{iterator:cn,toStringTag:Qr}=Symbol,_n=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),dn=(t,e)=>{let n=t;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),_n(n,e))return!0;n=Ht(n)}return!1},Pa=(t,e)=>t!=null&&dn(t,e)?t[e]:void 0,Oi=(t=>e=>{const n=Aa.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qe=t=>(t=t.toLowerCase(),e=>Oi(e)===t),jn=t=>e=>typeof e===t,{isArray:kt}=Array,qt=jn("undefined");function Ut(t){return t!==null&&!qt(t)&&t.constructor!==null&&!qt(t.constructor)&&Be(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Yr=qe("ArrayBuffer");function Na(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Yr(t.buffer),e}const za=jn("string"),Be=jn("function"),Jr=jn("number"),_t=t=>t!==null&&typeof t=="object",Ta=t=>t===!0||t===!1,Wn=t=>{if(!_t(t))return!1;const e=Ht(t);return(e===null||e===Object.prototype||Ht(e)===null)&&!dn(t,Qr)&&!dn(t,cn)},Oa=t=>{if(!_t(t)||Ut(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},Va=qe("Date"),Fa=qe("File"),Da=t=>!!(t&&typeof t.uri<"u"),La=t=>t&&typeof t.getParts<"u",Ha=qe("Blob"),qa=qe("FileList"),Ua=t=>_t(t)&&Be(t.pipe);function _a(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Kr=_a(),eo=typeof Kr.FormData<"u"?Kr.FormData:void 0,ja=t=>{if(!t)return!1;if(eo&&t instanceof eo)return!0;const e=Ht(t);if(!e||e===Object.prototype||!Be(t.append))return!1;const n=Oi(t);return n==="formdata"||n==="object"&&Be(t.toString)&&t.toString()==="[object FormData]"},Wa=qe("URLSearchParams"),[Ga,Za,Xa,Qa]=["ReadableStream","Request","Response","Headers"].map(qe),Ya=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function un(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),kt(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(Ut(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let c;for(r=0;r<a;r++)c=s[r],e.call(null,t[c],c,t)}}function to(t,e){if(Ut(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,no=t=>!qt(t)&&t!==xt;function Vi(...t){const{caseless:e,skipUndefined:n}=no(this)&&this||{},r={},o=(s,a)=>{if(a==="__proto__"||a==="constructor"||a==="prototype")return;const c=e&&typeof a=="string"&&to(r,a)||a,d=_n(r,c)?r[c]:void 0;Wn(d)&&Wn(s)?r[c]=Vi(d,s):Wn(s)?r[c]=Vi({},s):kt(s)?r[c]=s.slice():(!n||!qt(s))&&(r[c]=s)};for(let s=0,a=t.length;s<a;s++){const c=t[s];if(!c||Ut(c)||(un(c,o),typeof c!="object"||kt(c)))continue;const d=Object.getOwnPropertySymbols(c);for(let u=0;u<d.length;u++){const f=d[u];cl.call(c,f)&&o(c[f],f)}}return r}const Ja=(t,e,n,{allOwnKeys:r}={})=>(un(e,(o,s)=>{n&&Be(o)?Object.defineProperty(t,s,{__proto__:null,value:Xr(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Ka=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),el=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),n&&Object.assign(t.prototype,n)},tl=(t,e,n,r)=>{let o,s,a;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)a=o[s],(!r||r(a,t,e))&&!c[a]&&(e[a]=t[a],c[a]=!0);t=n!==!1&&Ht(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},nl=(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},il=t=>{if(!t)return null;if(kt(t))return t;let e=t.length;if(!Jr(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},rl=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ht(Uint8Array)),ol=(t,e)=>{const r=(t&&t[cn]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},sl=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},al=qe("HTMLFormElement"),ll=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),{propertyIsEnumerable:cl}=Object.prototype,dl=qe("RegExp"),io=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};un(n,(o,s)=>{let a;(a=e(o,s,t))!==!1&&(r[s]=a||o)}),Object.defineProperties(t,r)},ul=t=>{io(t,(e,n)=>{if(Be(t)&&["arguments","caller","callee"].includes(n))return!1;const r=t[n];if(Be(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+"'")})}})},fl=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return kt(t)?r(t):r(String(t).split(e)),n},hl=()=>{},ml=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function pl(t){return!!(t&&Be(t.append)&&t[Qr]==="FormData"&&t[cn])}const gl=t=>{const e=new WeakSet,n=r=>{if(_t(r)){if(e.has(r))return;if(Ut(r))return r;if(!("toJSON"in r)){e.add(r);const o=kt(r)?[]:{};return un(r,(s,a)=>{const c=n(s);!qt(c)&&(o[a]=c)}),e.delete(r),o}}return r};return n(t)},yl=qe("AsyncFunction"),wl=t=>t&&(_t(t)||Be(t))&&Be(t.then)&&Be(t.catch),ro=((t,e)=>t?setImmediate:e?((n,r)=>(xt.addEventListener("message",({source:o,data:s})=>{o===xt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),xt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Be(xt.postMessage)),bl=typeof queueMicrotask<"u"?queueMicrotask.bind(xt):typeof process<"u"&&process.nextTick||ro,oo=t=>t!=null&&Be(t[cn]),p={isArray:kt,isArrayBuffer:Yr,isBuffer:Ut,isFormData:ja,isArrayBufferView:Na,isString:za,isNumber:Jr,isBoolean:Ta,isObject:_t,isPlainObject:Wn,isEmptyObject:Oa,isReadableStream:Ga,isRequest:Za,isResponse:Xa,isHeaders:Qa,isUndefined:qt,isDate:Va,isFile:Fa,isReactNativeBlob:Da,isReactNative:La,isBlob:Ha,isRegExp:dl,isFunction:Be,isStream:Ua,isURLSearchParams:Wa,isTypedArray:rl,isFileList:qa,forEach:un,merge:Vi,extend:Ja,trim:Ya,stripBOM:Ka,inherits:el,toFlatObject:tl,kindOf:Oi,kindOfTest:qe,endsWith:nl,toArray:il,forEachEntry:ol,matchAll:sl,isHTMLForm:al,hasOwnProperty:_n,hasOwnProp:_n,hasOwnInPrototypeChain:dn,getSafeProp:Pa,reduceDescriptors:io,freezeMethods:ul,toObjectSet:fl,toCamelCase:ll,noop:hl,toFiniteNumber:ml,findKey:to,global:xt,isContextDefined:no,isSpecCompliantForm:pl,toJSONObject:gl,isAsyncFn:yl,isThenable:wl,setImmediate:ro,asap:bl,isIterable:oo,isSafeIterable:t=>t!=null&&dn(t,cn)&&oo(t)},Cl=p.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"]),Sl=t=>{const e={};let n,r,o;return t&&t.split(`
15
+ `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||e[n]&&Cl[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e};function kl(t){let e=0,n=t.length;for(;e<n;){const r=t.charCodeAt(e);if(r!==9&&r!==32)break;e+=1}for(;n>e;){const r=t.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return e===0&&n===t.length?t:t.slice(e,n)}const xl=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),El=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Fi(t,e){return p.isArray(t)?t.map(n=>Fi(n,e)):kl(String(t).replace(e,""))}const Ml=t=>Fi(t,xl),Bl=t=>Fi(t,El);function so(t){const e=Object.create(null);return p.forEach(t.toJSON(),(n,r)=>{e[r]=Bl(n)}),e}const ao=Symbol("internals");function fn(t){return t&&String(t).trim().toLowerCase()}function Gn(t){return t===!1||t==null?t:p.isArray(t)?t.map(Gn):Ml(String(t))}function vl(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 Rl=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Di(t,e,n,r,o){if(p.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!p.isString(e)){if(p.isString(r))return e.indexOf(r)!==-1;if(p.isRegExp(r))return r.test(e)}}function $l(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Il(t,e){const n=p.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{__proto__:null,value:function(o,s,a){return this[r].call(this,e,o,s,a)},configurable:!0})})}let Se=class{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(c,d,u){const f=fn(d);if(!f)return;const h=p.findKey(o,f);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||d]=Gn(c))}const a=(c,d)=>p.forEach(c,(u,f)=>s(u,f,d));if(p.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(p.isString(e)&&(e=e.trim())&&!Rl(e))a(Sl(e),n);else if(p.isObject(e)&&p.isSafeIterable(e)){let c=Object.create(null),d,u;for(const f of e){if(!p.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],p.hasOwnProp(c,u)?(d=c[u],c[u]=p.isArray(d)?[...d,f[1]]:[d,f[1]]):c[u]=f[1]}a(c,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=fn(e),e){const r=p.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return vl(o);if(p.isFunction(n))return n.call(this,o,r);if(p.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=fn(e),e){const r=p.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Di(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(a){if(a=fn(a),a){const c=p.findKey(r,a);c&&(!n||Di(r,r[c],c,n))&&(delete r[c],o=!0)}}return p.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||Di(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return p.forEach(this,(o,s)=>{const a=p.findKey(r,s);if(a){n[a]=Gn(o),delete n[s];return}const c=e?$l(s):String(s).trim();c!==s&&delete n[s],n[c]=Gn(o),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return p.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&p.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
+ `)}getSetCookie(){return this.get("set-cookie")||[]}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(o=>r.set(o)),r}static accessor(e){const r=(this[ao]=this[ao]={accessors:{}}).accessors,o=this.prototype;function s(a){const c=fn(a);r[c]||(Il(o,a),r[c]=!0)}return p.isArray(e)?e.forEach(s):s(e),this}};Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),p.reduceDescriptors(Se.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),p.freezeMethods(Se);const Al="[REDACTED ****]";function Pl(t){if(p.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(p.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Nl(t,e){const n=new Set(e.map(s=>String(s).toLowerCase())),r=[],o=s=>{if(s===null||typeof s!="object"||p.isBuffer(s))return s;if(r.indexOf(s)!==-1)return;s instanceof Se&&(s=s.toJSON()),r.push(s);let a;if(p.isArray(s))a=[],s.forEach((c,d)=>{const u=o(c);p.isUndefined(u)||(a[d]=u)});else{if(!p.isPlainObject(s)&&Pl(s))return r.pop(),s;a=Object.create(null);for(const[c,d]of Object.entries(s)){const u=n.has(c.toLowerCase())?Al:o(d);p.isUndefined(u)||(a[c]=u)}}return r.pop(),a};return o(t)}let v=class Ks extends Error{static from(e,n,r,o,s,a){const c=new Ks(e.message,n||e.code,r,o,s);return Object.defineProperty(c,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),c.name=e.name,e.status!=null&&c.status==null&&(c.status=e.status),a&&Object.assign(c,a),c}constructor(e,n,r,o,s){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){const e=this.config,n=e&&p.hasOwnProp(e,"redact")?e.redact:void 0,r=p.isArray(n)&&n.length>0?Nl(e,n):p.toJSONObject(e);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:r,code:this.code,status:this.status}}};v.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",v.ERR_BAD_OPTION="ERR_BAD_OPTION",v.ECONNABORTED="ECONNABORTED",v.ETIMEDOUT="ETIMEDOUT",v.ECONNREFUSED="ECONNREFUSED",v.ERR_NETWORK="ERR_NETWORK",v.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",v.ERR_DEPRECATED="ERR_DEPRECATED",v.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",v.ERR_BAD_REQUEST="ERR_BAD_REQUEST",v.ERR_CANCELED="ERR_CANCELED",v.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",v.ERR_INVALID_URL="ERR_INVALID_URL",v.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const zl=null,lo=100;function Li(t){return p.isPlainObject(t)||p.isArray(t)}function co(t){return p.endsWith(t,"[]")?t.slice(0,-2):t}function Hi(t,e,n){return t?t.concat(e).map(function(o,s){return o=co(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Tl(t){return p.isArray(t)&&!t.some(Li)}const Ol=p.toFlatObject(p,{},null,function(e){return/^is[A-Z]/.test(e)});function Zn(t,e,n){if(!p.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=p.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,E){return!p.isUndefined(E[A])});const r=n.metaTokens,o=n.visitor||w,s=n.dots,a=n.indexes,c=n.Blob||typeof Blob<"u"&&Blob,d=n.maxDepth===void 0?lo:n.maxDepth,u=c&&p.isSpecCompliantForm(e),f=[];if(!p.isFunction(o))throw new TypeError("visitor must be a function");function h(C){if(C===null)return"";if(p.isDate(C))return C.toISOString();if(p.isBoolean(C))return C.toString();if(!u&&p.isBlob(C))throw new v("Blob is not supported. Use a Buffer instead.");if(p.isArrayBuffer(C)||p.isTypedArray(C)){if(u&&typeof c=="function")return new c([C]);if(typeof Buffer<"u")return Buffer.from(C);throw new v("Blob is not supported. Use a Buffer instead.",v.ERR_NOT_SUPPORT)}return C}function m(C){if(C>d)throw new v("Object is too deeply nested ("+C+" levels). Max depth: "+d,v.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(C,A){if(d===1/0)return JSON.stringify(C);const E=[];return JSON.stringify(C,function(O,q){if(!p.isObject(q))return q;for(;E.length&&E[E.length-1]!==this;)E.pop();return E.push(q),m(A+E.length-1),q})}function w(C,A,E){let z=C;if(p.isReactNative(e)&&p.isReactNativeBlob(C))return e.append(Hi(E,A,s),h(C)),!1;if(C&&!E&&typeof C=="object"){if(p.endsWith(A,"{}"))A=r?A:A.slice(0,-2),C=y(C,1);else if(p.isArray(C)&&Tl(C)||(p.isFileList(C)||p.endsWith(A,"[]"))&&(z=p.toArray(C)))return A=co(A),z.forEach(function(q,Me){!(p.isUndefined(q)||q===null)&&e.append(a===!0?Hi([A],Me,s):a===null?A:A+"[]",h(q))}),!1}return Li(C)?!0:(e.append(Hi(E,A,s),h(C)),!1)}const k=Object.assign(Ol,{defaultVisitor:w,convertValue:h,isVisitable:Li});function x(C,A,E=0){if(!p.isUndefined(C)){if(m(E),f.indexOf(C)!==-1)throw new Error("Circular reference detected in "+A.join("."));f.push(C),p.forEach(C,function(O,q){(!(p.isUndefined(O)||O===null)&&o.call(e,O,p.isString(q)?q.trim():q,A,k))===!0&&x(O,A?A.concat(q):[q],E+1)}),f.pop()}}if(!p.isObject(t))throw new TypeError("data must be an object");return x(t),e}function uo(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(r){return e[r]})}function qi(t,e){this._pairs=[],t&&Zn(t,this,e)}const fo=qi.prototype;fo.append=function(e,n){this._pairs.push([e,n])},fo.toString=function(e){const n=e?r=>e.call(this,r,uo):uo;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Vl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ho(t,e,n){if(!e)return t;t=t||"";const r=p.isFunction(n)?{serialize:n}:n,o=p.getSafeProp(r,"encode")||Vl,s=p.getSafeProp(r,"serialize");let a;if(s?a=s(e,r):a=p.isURLSearchParams(e)?e.toString():new qi(e,r).toString(o),a){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class mo{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){p.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ui={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Fl={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:qi,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_i=typeof window<"u"&&typeof document<"u",ji=typeof navigator=="object"&&navigator||void 0,Dl=_i&&(!ji||["ReactNative","NativeScript","NS"].indexOf(ji.product)<0),Ll=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hl=_i&&window.location.href||"http://localhost",we={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_i,hasStandardBrowserEnv:Dl,hasStandardBrowserWebWorkerEnv:Ll,navigator:ji,origin:Hl},Symbol.toStringTag,{value:"Module"})),...Fl};function ql(t,e){return Zn(t,new we.classes.URLSearchParams,{visitor:function(n,r,o,s){return we.isNode&&p.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}const po=lo;function go(t){if(t>po)throw new v("FormData field is too deeply nested ("+t+" levels). Max depth: "+po,v.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ul(t){const e=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(t))!==null;)go(e.length),e.push(r[0]==="[]"?"":r[1]||r[0]);return e}function _l(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function yo(t){function e(n,r,o,s){go(s);let a=n[s++];if(a==="__proto__")return!0;const c=Number.isFinite(+a),d=s>=n.length;return a=!a&&p.isArray(o)?o.length:a,d?(p.hasOwnProp(o,a)?o[a]=p.isArray(o[a])?o[a].concat(r):[o[a],r]:o[a]=r,!c):((!p.hasOwnProp(o,a)||!p.isObject(o[a]))&&(o[a]=[]),e(n,r,o[a],s)&&p.isArray(o[a])&&(o[a]=_l(o[a])),!c)}if(p.isFormData(t)&&p.isFunction(t.entries)){const n={};return p.forEachEntry(t,(r,o)=>{e(Ul(r),o,n,0)}),n}return null}const jt=(t,e)=>t!=null&&p.hasOwnProp(t,e)?t[e]:void 0;function jl(t,e,n){if(p.isString(t))try{return(e||JSON.parse)(t),p.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const hn={transitional:Ui,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=p.isObject(e);if(s&&p.isHTMLForm(e)&&(e=new FormData(e)),p.isFormData(e))return o?JSON.stringify(yo(e)):e;if(p.isArrayBuffer(e)||p.isBuffer(e)||p.isStream(e)||p.isFile(e)||p.isBlob(e)||p.isReadableStream(e))return e;if(p.isArrayBufferView(e))return e.buffer;if(p.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(s){const d=jt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return ql(e,d).toString();if((c=p.isFileList(e))||r.indexOf("multipart/form-data")>-1){const u=jt(this,"env"),f=u&&u.FormData;return Zn(c?{"files[]":e}:e,f&&new f,d)}}return s||o?(n.setContentType("application/json",!1),jl(e)):e}],transformResponse:[function(e){const n=jt(this,"transitional")||hn.transitional,r=n&&n.forcedJSONParsing,o=jt(this,"responseType"),s=o==="json";if(p.isResponse(e)||p.isReadableStream(e))return e;if(e&&p.isString(e)&&(r&&!o||s)){const c=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e,jt(this,"parseReviver"))}catch(d){if(c)throw d.name==="SyntaxError"?v.from(d,v.ERR_BAD_RESPONSE,this,null,jt(this,"response")):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:we.classes.FormData,Blob:we.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};p.forEach(["delete","get","head","post","put","patch","query"],t=>{hn.headers[t]={}});function Wi(t,e){const n=this||hn,r=e||n,o=Se.from(r.headers);let s=r.data;return p.forEach(t,function(c){s=c.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function wo(t){return!!(t&&t.__CANCEL__)}let mn=class extends v{constructor(e,n,r){super(e??"canceled",v.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function bo(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new v("Request failed with status code "+n.status,n.status>=400&&n.status<500?v.ERR_BAD_REQUEST:v.ERR_BAD_RESPONSE,n.config,n.request,n))}function Wl(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function Gl(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,a;return e=e!==void 0?e:1e3,function(d){const u=Date.now(),f=r[s];a||(a=u),n[o]=d,r[o]=u;let h=s,m=0;for(;h!==o;)m+=n[h++],h=h%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-a<e)return;const y=f&&u-f;return y?Math.round(m*1e3/y):void 0}}function Zl(t,e){let n=0,r=1e3/e,o,s;const a=(u,f=Date.now())=>{n=f,o=null,s&&(clearTimeout(s),s=null),t(...u)};return[(...u)=>{const f=Date.now(),h=f-n;h>=r?a(u,f):(o=u,s||(s=setTimeout(()=>{s=null,a(o)},r-h)))},()=>o&&a(o)]}const Xn=(t,e,n=3)=>{let r=0;const o=Gl(50,250);return Zl(s=>{if(!s||typeof s.loaded!="number")return;const a=s.loaded,c=s.lengthComputable?s.total:void 0,d=c!=null?Math.min(a,c):a,u=Math.max(0,d-r),f=o(u);r=Math.max(r,d);const h={loaded:d,total:c,progress:c?d/c:void 0,bytes:u,rate:f||void 0,estimated:f&&c?(c-d)/f:void 0,event:s,lengthComputable:c!=null,[e?"download":"upload"]:!0};t(h)},n)},Co=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},So=t=>(...e)=>p.asap(()=>t(...e)),Xl=we.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,we.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(we.origin),we.navigator&&/(msie|trident)/i.test(we.navigator.userAgent)):()=>!0,Ql=we.hasStandardBrowserEnv?{write(t,e,n,r,o,s,a){if(typeof document>"u")return;const c=[`${t}=${encodeURIComponent(e)}`];p.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),p.isString(r)&&c.push(`path=${r}`),p.isString(o)&&c.push(`domain=${o}`),s===!0&&c.push("secure"),p.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.split(";");for(let n=0;n<e.length;n++){const r=e[n].replace(/^\s+/,""),o=r.indexOf("=");if(o!==-1&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch{return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Yl(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Jl(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}const Kl=/^https?:(?!\/\/)/i,ec=/[\t\n\r]/g;function tc(t){let e=0;for(;e<t.length&&t.charCodeAt(e)<=32;)e++;return t.slice(e)}function nc(t){return tc(t).replace(ec,"")}function ko(t,e){if(typeof t=="string"&&Kl.test(nc(t)))throw new v('Invalid URL: missing "//" after protocol',v.ERR_INVALID_URL,e)}function xo(t,e,n,r){ko(e,r);let o=!Yl(e);return t&&(o||n===!1)?(ko(t,r),Jl(t,e)):e}const Eo=t=>t instanceof Se?{...t}:t;function Et(t,e){t=t||{},e=e||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,h,m,y){return p.isPlainObject(f)&&p.isPlainObject(h)?p.merge.call({caseless:y},f,h):p.isPlainObject(h)?p.merge({},h):p.isArray(h)?h.slice():h}function o(f,h,m,y){if(p.isUndefined(h)){if(!p.isUndefined(f))return r(void 0,f,m,y)}else return r(f,h,m,y)}function s(f,h){if(!p.isUndefined(h))return r(void 0,h)}function a(f,h){if(p.isUndefined(h)){if(!p.isUndefined(f))return r(void 0,f)}else return r(void 0,h)}function c(f){const h=p.hasOwnProp(e,"transitional")?e.transitional:void 0;if(!p.isUndefined(h))if(p.isPlainObject(h)){if(p.hasOwnProp(h,f))return h[f]}else return;const m=p.hasOwnProp(t,"transitional")?t.transitional:void 0;if(p.isPlainObject(m)&&p.hasOwnProp(m,f))return m[f]}function d(f,h,m){if(p.hasOwnProp(e,m))return r(f,h);if(p.hasOwnProp(t,m))return r(void 0,f)}const u={url:s,method:s,data:s,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,allowedSocketPaths:a,responseEncoding:a,validateStatus:d,headers:(f,h,m)=>o(Eo(f),Eo(h),m,!0)};return p.forEach(Object.keys({...t,...e}),function(h){if(h==="__proto__"||h==="constructor"||h==="prototype")return;const m=p.hasOwnProp(u,h)?u[h]:o,y=p.hasOwnProp(t,h)?t[h]:void 0,w=p.hasOwnProp(e,h)?e[h]:void 0,k=m(y,w,h);p.isUndefined(k)&&m!==d||(n[h]=k)}),p.hasOwnProp(e,"validateStatus")&&p.isUndefined(e.validateStatus)&&c("validateStatusUndefinedResolves")===!1&&(p.hasOwnProp(t,"validateStatus")?n.validateStatus=r(void 0,t.validateStatus):delete n.validateStatus),n}const ic=["content-type","content-length"];function rc(t,e,n){if(n!=="content-only"){t.set(e);return}Object.entries(e||{}).forEach(([r,o])=>{ic.includes(r.toLowerCase())&&t.set(r,o)})}const oc=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16)));function Mo(t){const e=Et({},t),n=m=>p.hasOwnProp(e,m)?e[m]:void 0,r=n("data");let o=n("withXSRFToken");const s=n("xsrfHeaderName"),a=n("xsrfCookieName");let c=n("headers");const d=n("auth"),u=n("baseURL"),f=n("allowAbsoluteUrls"),h=n("url");if(e.headers=c=Se.from(c),e.url=ho(xo(u,h,f,e),n("params"),n("paramsSerializer")),d){const m=p.getSafeProp(d,"username")||"",y=p.getSafeProp(d,"password")||"";try{c.set("Authorization","Basic "+btoa(m+":"+(y?oc(y):"")))}catch(w){throw v.from(w,v.ERR_BAD_OPTION_VALUE,t)}}if(p.isFormData(r)&&(we.hasStandardBrowserEnv||we.hasStandardBrowserWebWorkerEnv||p.isReactNative(r)?c.setContentType(void 0):p.isFunction(r.getHeaders)&&rc(c,r.getHeaders(),n("formDataHeaderPolicy"))),we.hasStandardBrowserEnv&&(p.isFunction(o)&&(o=o(e)),o===!0||o==null&&Xl(e.url))){const y=s&&a&&Ql.read(a);y&&c.set(s,y)}return e}const sc=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=Mo(t);let s=o.data;const a=Se.from(o.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:u}=o,f,h,m,y,w;function k(){y&&y(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let x=new XMLHttpRequest;x.open(o.method.toUpperCase(),o.url,!0),x.timeout=o.timeout;function C(){if(!x)return;const E=Se.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),O={data:!c||c==="text"||c==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:E,config:t,request:x};bo(function(Me){n(Me),k()},function(Me){r(Me),k()},O),x=null}"onloadend"in x?x.onloadend=C:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.startsWith("file:"))||setTimeout(C)},x.onabort=function(){x&&(r(new v("Request aborted",v.ECONNABORTED,t,x)),k(),x=null)},x.onerror=function(z){const O=z&&z.message?z.message:"Network Error",q=new v(O,v.ERR_NETWORK,t,x);q.event=z||null,r(q),k(),x=null},x.ontimeout=function(){let z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const O=o.transitional||Ui;o.timeoutErrorMessage&&(z=o.timeoutErrorMessage),r(new v(z,O.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,t,x)),k(),x=null},s===void 0&&a.setContentType(null),"setRequestHeader"in x&&p.forEach(so(a),function(z,O){x.setRequestHeader(O,z)}),p.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),c&&c!=="json"&&(x.responseType=o.responseType),u&&([m,w]=Xn(u,!0),x.addEventListener("progress",m)),d&&x.upload&&([h,y]=Xn(d),x.upload.addEventListener("progress",h),x.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(f=E=>{x&&(r(!E||E.type?new mn(null,t,x):E),x.abort(),k(),x=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const A=Wl(o.url);if(A&&!we.protocols.includes(A)){r(new v("Unsupported protocol "+A+":",v.ERR_BAD_REQUEST,t)),k();return}x.send(s||null)})},ac=(t,e)=>{if(t=t?t.filter(Boolean):[],!e&&!t.length)return;const n=new AbortController;let r=!1;const o=function(d){if(!r){r=!0,a();const u=d instanceof Error?d:this.reason;n.abort(u instanceof v?u:new mn(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{s=null,o(new v(`timeout of ${e}ms exceeded`,v.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(o):d.removeEventListener("abort",o)}),t=null)};t.forEach(d=>d.addEventListener("abort",o,{once:!0}));const{signal:c}=n;return c.unsubscribe=()=>p.asap(a),c},lc=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},cc=async function*(t,e){for await(const n of dc(t))yield*lc(n,e)},dc=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()}},Bo=(t,e,n,r)=>{const o=cc(t,e);let s=0,a,c=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:u,value:f}=await o.next();if(u){c(),d.close();return}let h=f.byteLength;if(n){let m=s+=h;n(m)}d.enqueue(new Uint8Array(f))}catch(u){throw c(u),u}},cancel(d){return c(d),o.return()}},{highWaterMark:2})},Qn=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,uc=(t,e,n)=>e+2<n&&Qn(t.charCodeAt(e+1))&&Qn(t.charCodeAt(e+2));function fc(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const n=t.slice(5,e),r=t.slice(e+1);if(/;base64/i.test(n)){let a=r.length;const c=r.length;for(let y=0;y<c;y++)if(r.charCodeAt(y)===37&&y+2<c){const w=r.charCodeAt(y+1),k=r.charCodeAt(y+2);Qn(w)&&Qn(k)&&(a-=2,y+=2)}let d=0,u=c-1;const f=y=>y>=2&&r.charCodeAt(y-2)===37&&r.charCodeAt(y-1)===51&&(r.charCodeAt(y)===68||r.charCodeAt(y)===100);u>=0&&(r.charCodeAt(u)===61?(d++,u--):f(u)&&(d++,u-=3)),d===1&&u>=0&&(r.charCodeAt(u)===61||f(u))&&d++;const m=Math.floor(a/4)*3-(d||0);return m>0?m:0}let s=0;for(let a=0,c=r.length;a<c;a++){const d=r.charCodeAt(a);if(d===37&&uc(r,a,c))s+=1,a+=2;else if(d<128)s+=1;else if(d<2048)s+=2;else if(d>=55296&&d<=56319&&a+1<c){const u=r.charCodeAt(a+1);u>=56320&&u<=57343?(s+=4,a++):s+=3}else s+=3}return s}const Gi="1.18.1",vo=64*1024,{isFunction:Yn}=p,hc=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,n)=>String.fromCharCode(parseInt(n,16))),Ro=t=>{if(!p.isString(t))return t;try{return decodeURIComponent(t)}catch{return t}},$o=(t,...e)=>{try{return!!t(...e)}catch{return!1}},mc=t=>{const e=t.indexOf("://");let n=t;return e!==-1&&(n=n.slice(e+3)),n.includes("@")||n.includes(":")},pc=t=>{const e=p.global!==void 0&&p.global!==null?p.global:globalThis,{ReadableStream:n,TextEncoder:r}=e;t=p.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:o,Request:s,Response:a}=t,c=o?Yn(o):typeof fetch=="function",d=Yn(s),u=Yn(a);if(!c)return!1;const f=c&&Yn(n),h=c&&(typeof r=="function"?(C=>A=>C.encode(A))(new r):async C=>new Uint8Array(await new s(C).arrayBuffer())),m=d&&f&&$o(()=>{let C=!1;const A=new s(we.origin,{body:new n,method:"POST",get duplex(){return C=!0,"half"}}),E=A.headers.has("Content-Type");return A.body!=null&&A.body.cancel(),C&&!E}),y=u&&f&&$o(()=>p.isReadableStream(new a("").body)),w={stream:y&&(C=>C.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(C=>{!w[C]&&(w[C]=(A,E)=>{let z=A&&A[C];if(z)return z.call(A);throw new v(`Response type '${C}' is not supported`,v.ERR_NOT_SUPPORT,E)})});const k=async C=>{if(C==null)return 0;if(p.isBlob(C))return C.size;if(p.isSpecCompliantForm(C))return(await new s(we.origin,{method:"POST",body:C}).arrayBuffer()).byteLength;if(p.isArrayBufferView(C)||p.isArrayBuffer(C))return C.byteLength;if(p.isURLSearchParams(C)&&(C=C+""),p.isString(C))return(await h(C)).byteLength},x=async(C,A)=>{const E=p.toFiniteNumber(C.getContentLength());return E??k(A)};return async C=>{let{url:A,method:E,data:z,signal:O,cancelToken:q,timeout:Me,onDownloadProgress:Pt,onUploadProgress:Nt,responseType:Pe,headers:tt,withCredentials:on="same-origin",fetchOptions:xi,maxContentLength:Ne,maxBodyLength:yt}=Mo(C);const wt=p.isNumber(Ne)&&Ne>-1,sn=p.isNumber(yt)&&yt>-1,Ei=Y=>p.hasOwnProp(C,Y)?C[Y]:void 0;let En=o||fetch;Pe=Pe?(Pe+"").toLowerCase():"text";let _e=ac([O,q&&q.toAbortSignal()],Me),ae=null;const F=_e&&_e.unsubscribe&&(()=>{_e.unsubscribe()});let ze,zt=null;const re=()=>new v("Request body larger than maxBodyLength limit",v.ERR_BAD_REQUEST,C,ae);try{let Y;const $e=Ei("auth");if($e){const L=p.getSafeProp($e,"username")||"",Ee=p.getSafeProp($e,"password")||"";Y={username:L,password:Ee}}if(mc(A)){const L=new URL(A,we.origin);if(!Y&&(L.username||L.password)){const Ee=Ro(L.username),je=Ro(L.password);Y={username:Ee,password:je}}(L.username||L.password)&&(L.username="",L.password="",A=L.href)}if(Y&&(tt.delete("authorization"),tt.set("Authorization","Basic "+btoa(hc((Y.username||"")+":"+(Y.password||""))))),wt&&typeof A=="string"&&A.startsWith("data:")&&fc(A)>Ne)throw new v("maxContentLength size of "+Ne+" exceeded",v.ERR_BAD_RESPONSE,C,ae);if(sn&&E!=="get"&&E!=="head"){const L=await k(z);if(typeof L=="number"&&isFinite(L)&&(ze=L,L>yt))throw re()}const Tt=sn&&(p.isReadableStream(z)||p.isStream(z)),Mi=(L,Ee,je)=>Bo(L,vo,nt=>{if(sn&&nt>yt)throw zt=re();Ee&&Ee(nt)},je);if(m&&E!=="get"&&E!=="head"&&(Nt||Tt)){if(ze=ze??await x(tt,z),ze!==0||Tt){let L=new s(A,{method:"POST",body:z,duplex:"half"}),Ee;if(p.isFormData(z)&&(Ee=L.headers.get("content-type"))&&tt.setContentType(Ee),L.body){const[je,nt]=Nt&&Co(ze,Xn(So(Nt)))||[];z=Mi(L.body,je,nt)}}}else if(Tt&&!d&&f&&E!=="get"&&E!=="head")z=Mi(z);else if(Tt&&d&&!m&&E!=="get"&&E!=="head")throw new v("Stream request bodies are not supported by the current fetch implementation",v.ERR_NOT_SUPPORT,C,ae);p.isString(on)||(on=on?"include":"omit");const He=d&&"credentials"in s.prototype;if(p.isFormData(z)){const L=tt.getContentType();L&&/^multipart\/form-data/i.test(L)&&!/boundary=/i.test(L)&&tt.delete("content-type")}tt.set("User-Agent","axios/"+Gi,!1);const Mn={...xi,signal:_e,method:E.toUpperCase(),headers:so(tt.normalize()),body:z,duplex:"half",credentials:He?on:void 0};ae=d&&new s(A,Mn);let Ie=await(d?En(ae,xi):En(A,Mn));const Bn=Se.from(Ie.headers);if(wt){const L=p.toFiniteNumber(Bn.getContentLength());if(L!=null&&L>Ne)throw new v("maxContentLength size of "+Ne+" exceeded",v.ERR_BAD_RESPONSE,C,ae)}const vn=y&&(Pe==="stream"||Pe==="response");if(y&&Ie.body&&(Pt||wt||vn&&F)){const L={};["status","statusText","headers"].forEach(Ot=>{L[Ot]=Ie[Ot]});const Ee=p.toFiniteNumber(Bn.getContentLength()),[je,nt]=Pt&&Co(Ee,Xn(So(Pt),!0))||[];let Rn=0;const $n=Ot=>{if(wt&&(Rn=Ot,Rn>Ne))throw new v("maxContentLength size of "+Ne+" exceeded",v.ERR_BAD_RESPONSE,C,ae);je&&je(Ot)};Ie=new a(Bo(Ie.body,vo,$n,()=>{nt&&nt(),F&&F()}),L)}Pe=Pe||"text";let Te=await w[p.findKey(w,Pe)||"text"](Ie,C);if(wt&&!y&&!vn){let L;if(Te!=null&&(typeof Te.byteLength=="number"?L=Te.byteLength:typeof Te.size=="number"?L=Te.size:typeof Te=="string"&&(L=typeof r=="function"?new r().encode(Te).byteLength:Te.length)),typeof L=="number"&&L>Ne)throw new v("maxContentLength size of "+Ne+" exceeded",v.ERR_BAD_RESPONSE,C,ae)}return!vn&&F&&F(),await new Promise((L,Ee)=>{bo(L,Ee,{data:Te,headers:Se.from(Ie.headers),status:Ie.status,statusText:Ie.statusText,config:C,request:ae})})}catch(Y){if(F&&F(),_e&&_e.aborted&&_e.reason instanceof v){const $e=_e.reason;throw $e.config=C,ae&&($e.request=ae),Y!==$e&&Object.defineProperty($e,"cause",{__proto__:null,value:Y,writable:!0,enumerable:!1,configurable:!0}),$e}if(zt)throw ae&&!zt.request&&(zt.request=ae),zt;if(Y instanceof v)throw ae&&!Y.request&&(Y.request=ae),Y;if(Y&&Y.name==="TypeError"&&/Load failed|fetch/i.test(Y.message)){const $e=new v("Network Error",v.ERR_NETWORK,C,ae,Y&&Y.response);throw Object.defineProperty($e,"cause",{__proto__:null,value:Y.cause||Y,writable:!0,enumerable:!1,configurable:!0}),$e}throw v.from(Y,Y&&Y.code,C,ae,Y&&Y.response)}}},gc=new Map,Io=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,s=[r,o,n];let a=s.length,c=a,d,u,f=gc;for(;c--;)d=s[c],u=f.get(d),u===void 0&&f.set(d,u=c?new Map:pc(e)),f=u;return u};Io();const Zi={http:zl,xhr:sc,fetch:{get:Io}};p.forEach(Zi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch{}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Ao=t=>`- ${t}`,yc=t=>p.isFunction(t)||t===null||t===!1;function wc(t,e){t=p.isArray(t)?t:[t];const{length:n}=t;let r,o;const s={};for(let a=0;a<n;a++){r=t[a];let c;if(o=r,!yc(r)&&(o=Zi[(c=String(r)).toLowerCase()],o===void 0))throw new v(`Unknown adapter '${c}'`);if(o&&(p.isFunction(o)||(o=o.get(e))))break;s[c||"#"+a]=o}if(!o){const a=Object.entries(s).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?a.length>1?`since :
17
17
  `+a.map(Ao).join(`
18
- `):" "+Ao(a[0]):"as no adapter specified";throw new B("There is no suitable adapter to dispatch the request "+c,B.ERR_NOT_SUPPORT)}return o}const Po={getAdapter:mc,adapters:Gi};function Zi(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new mn(null,t)}function No(t){return Zi(t),t.headers=Se.from(t.headers),t.data=ji.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Po.getAdapter(t.adapter||fn.adapter,t)(t).then(function(r){Zi(t),t.response=r;try{r.data=ji.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=Se.from(r.headers),r},function(r){if(!wo(r)&&(Zi(t),r&&r.response)){t.response=r.response;try{r.response.data=ji.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=Se.from(r.response.headers)}return Promise.reject(r)})}const Jn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Jn[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const zo={};Jn.transitional=function(e,n,r){function o(s,a){return"[Axios v"+Wi+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,c)=>{if(e===!1)throw new B(o(a," has been removed"+(n?" in "+n:"")),B.ERR_DEPRECATED);return n&&!zo[a]&&(zo[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,c):!0}},Jn.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function pc(t,e,n){if(typeof t!="object"||t===null)throw new B("options must be an object",B.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],a=Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;if(a){const c=t[s],d=c===void 0||a(c,s,t);if(d!==!0)throw new B("option "+s+" must be "+d,B.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new B("Unknown option "+s,B.ERR_BAD_OPTION)}}const Kn={assertOptions:pc,validators:Jn},ke=Kn.validators;let vt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new mo,response:new mo}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=(()=>{if(!o.stack)return"";const a=o.stack.indexOf(`
18
+ `):" "+Ao(a[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+c,v.ERR_NOT_SUPPORT)}return o}const Po={getAdapter:wc,adapters:Zi};function Xi(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new mn(null,t)}function No(t){return Xi(t),t.headers=Se.from(t.headers),t.data=Wi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Po.getAdapter(t.adapter||hn.adapter,t)(t).then(function(r){Xi(t),t.response=r;try{r.data=Wi.call(t,t.transformResponse,r)}finally{delete t.response}return r.headers=Se.from(r.headers),r},function(r){if(!wo(r)&&(Xi(t),r&&r.response)){t.response=r.response;try{r.response.data=Wi.call(t,t.transformResponse,r.response)}finally{delete t.response}r.response.headers=Se.from(r.response.headers)}return Promise.reject(r)})}const Jn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Jn[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const zo={};Jn.transitional=function(e,n,r){function o(s,a){return"[Axios v"+Gi+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,c)=>{if(e===!1)throw new v(o(a," has been removed"+(n?" in "+n:"")),v.ERR_DEPRECATED);return n&&!zo[a]&&(zo[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,c):!0}},Jn.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function bc(t,e,n){if(typeof t!="object"||t===null)throw new v("options must be an object",v.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],a=Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;if(a){const c=t[s],d=c===void 0||a(c,s,t);if(d!==!0)throw new v("option "+s+" must be "+d,v.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new v("Unknown option "+s,v.ERR_BAD_OPTION)}}const Kn={assertOptions:bc,validators:Jn},ke=Kn.validators;let Mt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new mo,response:new mo}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=(()=>{if(!o.stack)return"";const a=o.stack.indexOf(`
19
19
  `);return a===-1?"":o.stack.slice(a+1)})();try{if(!r.stack)r.stack=s;else if(s){const a=s.indexOf(`
20
20
  `),c=a===-1?-1:s.indexOf(`
21
21
  `,a+1),d=c===-1?"":s.slice(c+1);String(r.stack).endsWith(d)||(r.stack+=`
22
- `+s)}}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=xt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Kn.assertOptions(r,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean),legacyInterceptorReqResOrdering:ke.transitional(ke.boolean),advertiseZstdAcceptEncoding:ke.transitional(ke.boolean),validateStatusUndefinedResolves:ke.transitional(ke.boolean)},!1),o!=null&&(p.isFunction(o)?n.paramsSerializer={serialize:o}:Kn.assertOptions(o,{encode:ke.function,serialize:ke.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Kn.assertOptions(n,{baseUrl:ke.spelling("baseURL"),withXsrfToken:ke.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&p.merge(s.common,s[n.method]);s&&p.forEach(["delete","get","head","post","put","patch","query","common"],w=>{delete s[w]}),n.headers=Se.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen=="function"&&S.runWhen(n)===!1)return;d=d&&S.synchronous;const x=n.transitional||qi;x&&x.legacyInterceptorReqResOrdering?c.unshift(S.fulfilled,S.rejected):c.push(S.fulfilled,S.rejected)});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let h,f=0,m;if(!d){const w=[No.bind(this),void 0];for(w.unshift(...c),w.push(...u),m=w.length,h=Promise.resolve(n);f<m;)h=h.then(w[f++],w[f++]);return h}m=c.length;let y=n;for(;f<m;){const w=c[f++],S=c[f++];try{y=w(y)}catch(x){S.call(this,x);break}}try{h=No.call(this,y)}catch(w){return Promise.reject(w)}for(f=0,m=u.length;f<m;)h=h.then(u[f++],u[f++]);return h}getUri(e){e=xt(this.defaults,e);const n=Eo(e.baseURL,e.url,e.allowAbsoluteUrls,e);return fo(n,e.params,e.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(e){vt.prototype[e]=function(n,r){return this.request(xt(r||{},{method:e,url:n,data:r&&p.hasOwnProp(r,"data")?r.data:void 0}))}}),p.forEach(["post","put","patch","query"],function(e){function n(r){return function(s,a,c){return this.request(xt(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}vt.prototype[e]=n(),e!=="query"&&(vt.prototype[e+"Form"]=n(!0))});let gc=class Qs{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(c=>{r.subscribe(c),s=c}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,c){r.reason||(r.reason=new mn(s,a,c),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 Qs(function(o){e=o}),cancel:e}}};function yc(t){return function(n){return t.apply(null,n)}}function wc(t){return p.isObject(t)&&t.isAxiosError===!0}const Xi={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Xi).forEach(([t,e])=>{Xi[e]=t});function To(t){const e=new vt(t),n=Xr(vt.prototype.request,e);return p.extend(n,vt.prototype,e,{allOwnKeys:!0}),p.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return To(xt(t,o))},n}const re=To(fn);re.Axios=vt,re.CanceledError=mn,re.CancelToken=gc,re.isCancel=wo,re.VERSION=Wi,re.toFormData=Zn,re.AxiosError=B,re.Cancel=re.CanceledError,re.all=function(e){return Promise.all(e)},re.spread=yc,re.isAxiosError=wc,re.mergeConfig=xt,re.AxiosHeaders=Se,re.formToJSON=t=>yo(p.isHTMLForm(t)?new FormData(t):t),re.getAdapter=Po.getAdapter,re.HttpStatusCode=Xi,re.default=re;const{Axios:Rg,AxiosError:$g,CanceledError:Ig,isCancel:Ag,CancelToken:Pg,VERSION:Ng,all:zg,Cancel:Tg,isAxiosError:Og,spread:Vg,toFormData:Fg,AxiosHeaders:Dg,HttpStatusCode:Lg,formToJSON:Hg,getAdapter:qg,mergeConfig:_g,create:Ug}=re;var pn=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(pn||{});const gn=(()=>{function t(){const d=o();return!(!d||d==="undefined")}function e(d){d.accessToken&&localStorage.setItem("access_token",d.accessToken),d.refreshToken&&localStorage.setItem("refresh_token",d.refreshToken)}function n(){const d=localStorage.getItem("user");return d?JSON.parse(d).id:""}function r(){const d=localStorage.getItem("user");if(d)return JSON.parse(d)}function o(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(d){if(!t())return;const u=gn.getUser();u&&(u.human=d,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:o,getRefreshToken:s,getUserId:n,clearTokens:a,getUser:r,updateHuman:c}})();class Qi{constructor(e){l(this,"code",400);l(this,"err","");A.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=gn.getAccessToken(),e.config.headers.token=gn.getAccessToken(),e.config.baseURL=void 0,n.request(r);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){Ge.Error("Неверный логин или пароль");return}Ge.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const o=new Qi(e.response.data).getErr();o&&Ge.Error(o)}return Promise.reject(e)}}}const Wt=re.create();Wt.interceptors.response.use(t=>t,async t=>await Qi.Handle(t,Wt));class yn{static async Get(e,n,r){return await Wt({method:pn.GET,url:e,headers:n,responseType:r})}static async Post(e,n,r,o){return n["Content-Type"]="multipart/form-data",await Wt({method:pn.POST,url:e,headers:n,responseType:r,data:o})}static async Put(e,n,r){return n["Content-Type"]="multipart/form-data",await Wt({method:pn.PUT,url:e,headers:n,data:r})}static async Delete(e,n){return await Wt({method:pn.DELETE,url:e,headers:n})}}class ei{constructor(e){l(this,"name","");A.BuildClass(this,e)}static Set(){}static Get(e,n){const r=sessionStorage.getItem(e);if(r){const o=JSON.parse(r),s=new Date,a=new Date(o.time),c=s.getTime()-a.getTime();return Math.round(c/6e4)>(n||10)?null:o.data}else return null}static async TryGet(e,n,r){let o;return o=ei.Get(e,r),o||(o=await n()),o}}var Yi=(t=>(t.ContentType="Content-Type",t.Token="token",t))(Yi||{}),Oo=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(Oo||{});const J=class J{static Setup(e="http://localhost",n,r="api"){this.baseUrl=W.BuildSafeUrl(e,n,r),this.host=e,this.apiVersion=r}static newWebSocket(e){const n=this.host.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const r=J.getDownloadFileName(e,n.headers);if(!(n.data instanceof Blob)){console.warn("download: response data is not a Blob");return}const o=URL.createObjectURL(n.data),s=document.createElement("a");s.href=o,s.setAttribute("download",r),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(e,n){if(e)return e;const r=n["content-disposition"];if(!r)return"file";const o=r.indexOf('"')+1,s=r.lastIndexOf('"'),a=r.substring(o,s);return a||"file"}static getHeaders(e){const n=Ze.Get(Oe.AccessToken);return e||(e=J.headers),n&&(e[Yi.Token]=n),e??J.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?J.download(e.downloadFileName,n):n.data}static async Get(e){return J.returnResponse(e,await yn.Get(J.buildUrl((e==null?void 0:e.query)??""),J.getHeaders(e==null?void 0:e.headers),J.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return J.returnResponse(e,await yn.Post(J.buildUrl(e==null?void 0:e.query),J.getHeaders(e==null?void 0:e.headers),J.getResponseType(e.isBlob),J.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return J.returnResponse(e,await yn.Put(J.buildUrl(e==null?void 0:e.query),J.getHeaders(e==null?void 0:e.headers),J.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return J.returnResponse(e,await yn.Delete(J.buildUrl(e==null?void 0:e.query),J.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(J.buildUrl(n))}static buildUrl(e=""){try{return Ii(this.baseUrl,e)}catch{throw new Error(`Invalid base URL: ${this.baseUrl}`)}}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 o of n)o.file&&r.append(o.id??"files",o.file,o.originalName);return r}};l(J,"baseUrl",""),l(J,"apiVersion","api"),l(J,"host",""),l(J,"headers",{[Yi.ContentType]:Oo.ApplicationJson});let ne=J;const v=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},bc={},Cc={style:{"text-align":"center"}};function Sc(t,e){return i.openBlock(),i.createElementBlock("div",Cc,[...e[0]||(e[0]=[i.createElementVNode("h1",null,"Страница не найдена",-1)])])}const Vo=v(bc,[["render",Sc]]),kc=[{path:"/:pathMatch(.*)*",name:"NotFound",component:Vo}],Le=class Le{static Setup(e,n=""){this.router=e,this.title=n,this.ChangeDocumentTitle(),this.AddRoutes(kc)}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,"title",""),l(Le,"ChangeDocumentTitle",(e="")=>{let n=Le.Route().meta.title??e;n&&(n=" | "+n),document.title=Le.title+n});let Xe=Le;class K{constructor(e,n){l(this,"items",i.reactive([]));l(this,"item");l(this,"options",i.reactive([]));l(this,"count",i.ref(0));l(this,"classConstructor");l(this,"url","");l(this,"searchStr",i.ref(""));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 GetOptions(e="name",n="id"){const r=`${this.getUrl()}/options/${e}/${n}`;try{const o=await ne.Get({query:r});o&&(this.options.splice(0,this.options.length),this.options.push(...o))}catch(o){console.warn("GetOptions failed:",o)}}async GetAll(e){try{let n;const r=ne.Get;e&&e.withCache?n=await ei.TryGet(this.getUrl(),r):n=await r({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}catch(n){console.warn("GetAll failed:",n)}}async Get(e){try{e||(e=Xe.Id()),this.Set(await ne.Get({query:this.getUrl(e)}))}catch(n){console.warn("Get failed:",n)}}async GetBySlug(e){try{e||(e=Xe.Slug()),this.Set(await R.H.HttpClient.Get({query:this.getUrl("by-slug/"+e)}))}catch(n){console.warn("GetBySlug failed:",n)}}async FTSP(e){var n;try{const o=((e==null?void 0:e.ftsp)??ot.Get()).clearForHTTP(),s={payload:{ftsp:o},query:this.getUrl("ftsp")},a=await ne.Post(s);if(!a||!a.ftsp)return;if(Array.isArray(a.data))this.SetAll(a.data);else{if(o.p.append){this.AppendToAll((n=a.data)==null?void 0:n.items);return}this.SetAllWithCount(a.data)}}catch(r){console.warn("FTSP failed:",r)}}async Create(e){try{const n=e??this.item,r={payload:n,query:this.getUrl()};return n.getFileInfos&&(r.fileInfos=n.getFileInfos()),await ne.Post(r)}catch(n){console.warn("Create failed:",n)}}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){try{const n=e??this.item,r={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(r.fileInfos=n.getFileInfos(),r.fileInfos.forEach(o=>o.url="")),await ne.Put(r)}catch(n){console.warn("Update failed:",n)}}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)try{await ne.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}catch(n){console.warn("Remove failed:",n)}}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){this.items.splice(0,this.items.length),e&&this.items.push(...e.map(n=>new this.classConstructor(n)))}SetAllWithCount(e){this.SetAll(e.items),this.count.value=e.count}RemoveItem(e){const n=this.items.findIndex(r=>r.id===e);n<0||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(){A.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 ItemsFiltered(){return this.searchStr.value.trim()?this.Items.filter(e=>R.H.Strings.SearchInFields(this.searchStr.value,e.SearchFields())):this.Items}get Options(){return this.options}get Item(){return this.item}get Count(){return this.count}get SearchStr(){return this.searchStr}}function Ec(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const xc=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class vc{static GetRandColor(e){return rt.GetRandEL(e??xc)}}function Fo(t,e){const n=[],r=e||Ve.Asc,o=r===Ve.Asc?Ve.Desc:Ve.Asc;return Object.values(t).forEach(s=>{n.push(s(r)),n.push(s(o))}),n.length>0&&!n.some(s=>s.default)&&(n[0].default=!0),e&&n.forEach(s=>{s.default&&(s.default=s.order===e)}),n}let Mc=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",an.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",Vn[an.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=Vn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return rt.GenerateNumsRange(this.startHour,this.endHour)}};const Ji=t=>t===8||t===46,Bc=t=>t>46&&t<58,Rc=t=>t>34&&t<41,$c=t=>t+".",Ic=(t,e,n)=>{Ji(e)||Rc(e)||(!Bc(e)||n>9)&&t.preventDefault()};function Ac(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 o=t.substring(6,10).replace(".","1");Number(o)>2100&&(o="2100"),t=n+"."+r+"."+o}return t}function Pc(t){const e=t.keyCode;let n=t.srcElement.value;const r=n.length;Ic(t,e,r),!Ji(e)&&(r===2||r===5)&&(n=$c(n));const o=t.srcElement.value+String.fromCharCode(t.which);if(Ji(e)){t.srcElement.value=n;return}n.length===0&&Number(o)>3&&(n="3",t.preventDefault()),n.length===1&&Number(o)>31&&(n="31",t.preventDefault()),o.length===5&&Number(o.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=Ac(n,r),t.srcElement.value=n}const Nc=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],zc="ru-RU";class Qe{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(zc,r).format(new Date(e))}static FormatWithTime(e){return Qe.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?Nc[e.getDay()]:""}static GetCurrentWeekPeriod(e){const n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),o=new Date(n.getFullYear(),n.getMonth(),r.getDate()+7);return this.GetPeriod(r,o,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,n){const r=new Date,o=new Date,s=Qe.SplitHourTime(e),a=Qe.SplitHourTime(n);return r.setHours(s[0],s[1],0,0),o.setHours(a[0],a[1],0,0),(o.getTime()-r.getTime())/1e3/60}static HourTimeinMunutes(e){const n=Qe.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,o=Qe.SplitHourTime(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}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 o=e;for(;o<=n;)o=Qe.AddDays(o,1),r.push(o);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 Tc{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 Do{static Get(e){const n=e.split(".");return n[n.length-1]}}const Oc=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function n(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){t(s,[a]);return}const d=c.split(",");d.push(a),t(s,d)}function r(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const d=c.split(",").filter(u=>u!==a);t(s,d)}function o(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:r,setFavourite:t,isFavourite:e,clearFavourite:o}})();class Vc{constructor(){l(this,"list",[]);l(this,"defaultSortModel");l(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=Fo(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 Mt=new Vc;function Fc(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:s=>{t.value&&s.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(s,a)=>{t.value&&!e.value?s():a()}}}const Dc=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{R.F.FTSP.Get().reset(),Mt.Set(a==null?void 0:a.sortsLib),await s()}),{saveButtonClick:e,showConfirmModal:n}=Fc(),r=s=>na.onBeforeRouteLeave((a,c,d)=>{n((s||o)(),d)}),o=s=>async()=>{e.value=!0;try{s&&await s()}catch{return}};return{onBeforeMount:t,onBeforeRouteLeave:r,submit:o}})();function Lo(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 Ki{constructor(){l(this,"items",[]);l(this,"idx",0);l(this,"key","")}preSelect(){const e=Xe.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 Ki;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,Xe.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 Si=class Si{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,""),o=r.length;switch(!0){case o===0:e="";break;case(o===1&&n.length===1&&r==="7"):case(o===1&&n.length===1&&r==="8"):e="+7 (";break;case o<4:e=`+7 (${r}`;break;case o<7:e=`+7 (${r.slice(0,3)}) ${r.slice(3)}`;break;case o<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(Si,"validatePhone",(e,n,r)=>{Si.getPhoneRegExp().test(n)||!n?r():r(new Error("Пожалуйста, введите корректный номер телефона"))});let er=Si;class Lc{static Count(e){const n=e.filter(s=>s.rating!==0);let r=0;n.forEach(s=>r=r+s.rating);const o=r/n.length;return isNaN(o)?0:Number((r/n.length).toFixed(2))}}class Hc{static async Auth(e){e&&e()}static Dev(){}}class qc{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",an.FiveMinutes);l(this,"timelines",Vn[an.FiveMinutes])}periodIsCorrect(e,n){return H.GtOrEq(e,this.startHM)&&H.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Vn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return rt.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,r,o){return o.filter(s=>s.id!==r).every(s=>!H.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,r)=>H.HMtoM(n.startTime)-H.HMtoM(r.startTime))}}const _c=-68;function Uc(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),r=e??_c;let o=0;n&&(o=n.getBoundingClientRect().top+r+document.body.scrollTop),o&&document.body.scrollTo({top:o,behavior:"smooth"})}class jc{static Sort(e){e.forEach((n,r)=>n.order=r)}}class ti{static Wait(e,n){return new Promise(r=>setTimeout(()=>r(n),e))}static WaitS(e,n){return ti.Wait(H.S(e),n)}static WaitM(e,n){return ti.Wait(H.M(e),n)}}function Wc(t,e){let n=!0;return t.value.validate(r=>(r||(n=!1),n)),n}const Gc=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})});let Zc=class Tr{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");A.BuildClass(this,e)}static Create(e,n,r,o){const s=new Tr;return s.id=dt(),s.chatId=e,s.message=r,s.userName=o,s}static CreatePingMessage(){const e=new Tr;return e.type="ping",e.id=dt(),e}isMessage(){return this.type==="message"||this.type===""}};const Xc="";class Qc{constructor(e="",n="",r="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);A.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(Zc.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Xc.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 Yc=(q=class{},l(q,"Arrays",rt),l(q,"Axios",yn),l(q,"BaseStore",K),l(q,"Cache",ei),l(q,"Classes",A),l(q,"CarouselSwipe",Ec),l(q,"Color",vc),l(q,"CreateSortModels",Fo),l(q,"Cursor",Mc),l(q,"DateMask",Pc),l(q,"Dates",Qe),l(q,"Dragger",Tc),l(q,"Extension",Do),l(q,"Favourite",Oc),l(q,"Hooks",Dc),l(q,"HttpClient",ne),l(q,"Id",de),l(q,"MakeCarousel",Lo),l(q,"Period",Ri),l(q,"PhoneService",er),l(q,"Rating",Lc),l(q,"Router",Xe),l(q,"RouterGuard",Hc),l(q,"Scheduler",qc),l(q,"Scroll",Uc),l(q,"Sorter",jc),l(q,"Static",Ai),l(q,"Strings",W),l(q,"Time",H),l(q,"Timer",ti),l(q,"Token",gn),l(q,"Menus",Ki),l(q,"validate",Wc),l(q,"WaitElement",Gc),l(q,"WebSocketClient",Qc),q);class Jc{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 Ho=new Jc;var qo=(t=>(t.TableList="tableList",t.Default="",t))(qo||{}),Ye=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(Ye||{}),_o=(t=>(t.Year="Год",t.Month="Месяц",t.Week="Неделя",t.Day="День",t))(_o||{}),Uo=(t=>(t.YouTube="YouTube",t.VK="VK",t.Instagram="Instagram",t.Facebook="Facebook",t))(Uo||{}),tr=(t=>(t.simple="simple",t.oneToMany="oneToMany",t.manyToMany="manyToMany",t))(tr||{});const Kc=Object.freeze(Object.defineProperty({__proto__:null,AdminLayout:qo,Animations:Ye,CalendarScale:_o,LocalStoreKeys:Oe,SocialTypes:Uo,ValueRelation:tr},Symbol.toStringTag,{value:"Module"}));let ed=class{async Login(e=pe.Form.GetValues()){const n=await ne.Post({query:"auth/login",payload:e});if(!n)throw"Ошибка авторизации";pe.Status.SetState(n)}async LoginAs(e){await ne.Post({query:"auth/login-as",payload:{email:e}})}async Register(e=pe.Form.GetValues()){const n=await ne.Post({query:"auth/register",payload:e});if(!n)throw n}async RestorePassword(e=pe.Form.GetValues()){await ne.Post({query:"auth/restore-password",payload:e})}async PasswordChange(e=pe.Form.GetValues()){e.id=Xe.GetStringParam("userId"),await ne.Put({query:"auth/password-change",payload:e})}async RefreshToken(){await ne.Post({query:"auth/refresh-token",payload:{refreshToken:gn.getRefreshToken()}})}async CheckUuid(e){await ne.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}async ConfirmEmail(e){await ne.Get({query:`auth/confirm-email/${e}`})}async EmailIsConfirm(e){await ne.Get({query:`auth/email-is-confirm/${e}`})}};const td=new ed;var nd=Object.defineProperty,ni=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&nd(e,n,o),o};const wn=class Ys{constructor(e){l(this,"id");l(this,"description","");l(this,"time","");l(this,"latitude","");l(this,"longitude","");l(this,"emails",[]);l(this,"postAddresses",[new Fn]);l(this,"phones",[]);l(this,"websites",[]);A.BuildClass(this,e)}addEmail(){const e=Ct.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 Ys;return e.id=de.UUID(),e}removeEmail(e){A.RemoveFromClassById(e,this.emails)}removePhone(e){A.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new Fn)}addWebsite(){this.websites.push(new Pi)}pushFirst(){this.emails.length||this.emails.push(new Ct),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}};ni([A.GetClassConstructor(Ct)],wn.prototype,"emails"),ni([A.GetClassConstructor(Fn)],wn.prototype,"postAddresses"),ni([A.GetClassConstructor(St)],wn.prototype,"phones"),ni([A.GetClassConstructor(Pi)],wn.prototype,"websites");let jo=wn,id=class extends K{constructor(){super(jo,"contacts")}};const rd=new id;let od=class extends K{constructor(){super(Ct,"emails")}};const sd=new od;class nr{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");A.BuildClass(this,e)}static Create(e){const n=new nr;return n.id=de.UUID(),n.ftsp=JSON.stringify(e),n}}let ad=class extends K{constructor(){super(nr,"ftsp-presets")}};const ld=new ad;let cd=class extends K{constructor(){super(Wr,"humans")}};const dd=new cd;let ud=class extends K{constructor(){super(St,"phones")}};const hd=new ud;class fd{constructor(e){l(this,"id");l(this,"nameRus","");A.BuildClass(this,e)}}var md=Object.defineProperty,pd=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&md(e,n,o),o};class Wo{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);A.BuildClass(this,e)}}pd([A.GetClassConstructor(fd)],Wo.prototype,"fields");let gd=class extends K{constructor(){super(Wo,"schemas")}};const yd=new gd;class Go{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);A.BuildClass(this,e)}}class wd{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");A.BuildClass(this,e)}}var bd=Object.defineProperty,Zo=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&bd(e,n,o),o};class Gt{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",[]);A.BuildClass(this,e)}}Zo([A.GetClassConstructor(Go)],Gt.prototype,"options"),Zo([A.GetClassConstructor(wd)],Gt.prototype,"searchGroupMetaColumns");class ir{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 Gt);l(this,"searchObjects",[]);l(this,"pagination",new Hn);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new Gt(n))),e.searchGroup&&(this.searchGroup=new Gt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new Go(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 Gt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Xe.Route().query.groupId)}setQuery(){const e=Xe.Route().query.query;e&&(this.query=e)}}let Cd=class{constructor(){l(this,"isSearchDrawerOpen",i.ref(!1));l(this,"searchModel",i.reactive(new ir));l(this,"searchGroups",i.reactive([]));l(this,"count",0)}async Search(e){const n=await ne.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 ne.Get({query:`search/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(r=>{r.options=[]});const n=await ne.Get({query:`search/main?searchModel=${e.toUrl()}`});return this.SetSearchModel(n),n}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new ir}SetSearchModel(e){e&&(this.searchModel=new ir(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const rr=new Cd;let Sd=class extends K{constructor(){super(Dn,"users-accounts")}};const kd=new Sd;var Ee=(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))(Ee||{});class Xo{constructor(e){l(this,"id");l(this,"name",Ee.String);l(this,"valueRelation",tr.simple);A.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===Ee.Radio)return"RadioProp";if(this.name===Ee.Set)return"SetProp";if(this.name===Ee.Number)return"NumberProp";if(this.name===Ee.String)return"StringProp"}}let Ed=class extends K{constructor(){super(Xo,"value-types")}};const xd=new Ed;let Qo=(Ie=class{},l(Ie,"Auth",td),l(Ie,"Contacts",rd),l(Ie,"Emails",sd),l(Ie,"FileInfos",new K(ye,"file-infos")),l(Ie,"FTSPPresets",ld),l(Ie,"Humans",dd),l(Ie,"Phones",hd),l(Ie,"Schemas",yd),l(Ie,"UserAccounts",kd),l(Ie,"ValueTypes",xd),l(Ie,"Search",rr),Ie);var ut=(t=>(t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl",t))(ut||{});let vd=(gt=class{},l(gt,"Orders",Ve),l(gt,"Sizes",ut),l(gt,"Statuses",Y),l(gt,"DataTypes",ue),l(gt,"ValueTypes",Ee),l(gt,"Operators",te),gt);class Md{constructor(){l(this,"title","");l(this,"buttons",[]);l(this,"editTitle",i.ref(!1));l(this,"showEdit",i.ref(!1))}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const Bd=new Md;class Rd{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 W.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(r=>W.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=>W.SearchIn(r.name,this.filterString)):e.children}}const $d=new Rd;class Id{constructor(){l(this,"Menu",i.reactive($d));l(this,"Head",i.reactive(Bd))}}const Ad=new Id,Yo="Да",Jo="Нет";class Pd extends Dt{constructor(){super(...arguments);l(this,"confirmButtonText",Yo);l(this,"cancelButtonText",Jo);l(this,"persistent",!0);l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){const r=typeof n=="string"?{text:n}:n;return this.confirmButtonText=r.confirmButtonText??Yo,this.cancelButtonText=r.cancelButtonText??Jo,this.persistent=r.persistent??!0,super.showMessage(r,this.type),new Promise((o,s)=>{if(this.resolve=o,this.reject=s,typeof ae.Dialog.create!="function"){console.warn("[sprof] Quasar Dialog plugin is not installed. Add `app.use(Quasar, { plugins: { Dialog } })` (imported from 'quasar') to your app."),this.Settle(()=>s({type:"cancel"}));return}const a=ae.Dialog.create({title:this.title||void 0,message:this.text,html:Dt.ContainsHtml(this.text),persistent:this.persistent,ok:{label:this.confirmButtonText,flat:!0,color:"primary"},cancel:{label:this.cancelButtonText,flat:!0,color:"warning"}});a.onOk(()=>this.Settle(()=>o({type:"submit"}))),a.onCancel(()=>this.Settle(()=>s({type:"cancel"}))),a.onDismiss(()=>this.Settle())})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.Settle(()=>{var n;return(n=this.resolve)==null?void 0:n.call(this,!0)})}Cancel(){this.Settle(()=>{var n;return(n=this.reject)==null?void 0:n.call(this)})}Settle(n){n==null||n(),this.resolve=void 0,this.reject=void 0}}const Nd=new Pd;class zd{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class Td extends zd{Show(){super.show()}Hide(){super.hide()}}const Od=new Td;class ht{}l(ht,"Admin",Ad),l(ht,"Dialog",Nd),l(ht,"Loading",Od),l(ht,"Notify",Ge),l(ht,"Btn",bt),l(ht,"Input",Fr);class R{}l(R,"Auth",i.reactive(pe)),l(R,"UI",i.reactive(ht)),l(R,"Paginator",i.reactive(Ho)),l(R,"S",Qo),l(R,"H",Yc),l(R,"C",Sa),l(R,"T",vd),l(R,"I",Kc),l(R,"F",Ma);class Ko{constructor(e){l(this,"id");l(this,"name","");l(this,"address","");l(this,"number");l(this,"building");l(this,"buildingId");R.H.Classes.BuildClass(this,e),this.setName()}setName(){this.building&&(this.name=this.building.address+", вход "+this.number,this.address=this.name)}getBuildingNumber(){var e;return String((e=this.building)==null?void 0:e.number)}getEntranceNumber(){return String(this.number)}}class es{constructor(e){l(this,"id");l(this,"number");l(this,"buildingId");R.H.Classes.BuildClass(this,e)}}var Vd=Object.defineProperty,ts=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Vd(e,n,o),o};class ii{constructor(e){l(this,"id");l(this,"number","");l(this,"address","");l(this,"name","");l(this,"status","");l(this,"description","");l(this,"floors",[]);l(this,"entrances",[]);R.H.Classes.BuildClass(this,e)}}ts([R.H.Classes.GetClassConstructor(es)],ii.prototype,"floors"),ts([R.H.Classes.GetClassConstructor(Ko)],ii.prototype,"entrances");const Fd=Object.freeze(Object.defineProperty({__proto__:null,Building:ii,Entrance:Ko,Floor:es},Symbol.toStringTag,{value:"Module"}));let Dd=class extends K{constructor(){super(ii,"buildings")}};const Ld=new Dd,Hd=Object.freeze(Object.defineProperty({__proto__:null,C:Fd,S:Object.freeze(Object.defineProperty({__proto__:null,BuildingsStore:Ld},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));var Zt=(t=>(t.Ping="ping",t.Enter="enter",t.Exit="exit",t.Message="message",t.Write="write",t.Empty="",t))(Zt||{});class Bt{constructor(e){l(this,"id");l(this,"userId");l(this,"chatId");l(this,"message","");l(this,"fileInfo",new R.C.FileInfo);l(this,"createdAt",new Date);l(this,"type",Zt.Message);A.BuildClass(this,e)}static Create(e,n,r){const o=new Bt;return o.id=R.H.Id.UUID(),o.chatId=n,o.userId=r,o.message=e,o}static CreatePingMessage(){const e=new Bt;return e.type=Zt.Ping,e.id=R.H.Id.UUID(),e}isMessage(){return this.type===Zt.Message||this.type===Zt.Empty}}var qd=Object.defineProperty,_d=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&qd(e,n,o),o};const ns=class Js{constructor(e){l(this,"id");l(this,"name","");l(this,"createdAt",new Date);l(this,"newMesage","");l(this,"userId","");l(this,"chatMessages",[]);R.H.Classes.BuildClass(this,e)}static Create(){const e=new Js;return e.id=R.H.Id.UUID(),e}addMessage(){if(this.newMesage==="")return;const e=Bt.Create(this.newMesage,this.id,this.userId);return this.chatMessages.push(e),this.newMesage="",e}};_d([R.H.Classes.GetClassConstructor(Bt)],ns.prototype,"chatMessages");let is=ns;const Ud=Object.freeze(Object.defineProperty({__proto__:null,Chat:is,ChatMessage:Bt},Symbol.toStringTag,{value:"Module"}));let jd=class extends K{constructor(){super(Bt,"chat-messages")}};const Wd=new jd;let Gd=class extends K{constructor(){super(is,"chats")}};const Zd=new Gd,Xd=Object.freeze(Object.defineProperty({__proto__:null,C:Ud,S:Object.freeze(Object.defineProperty({__proto__:null,ChatMessages:Wd,Chats:Zd},Symbol.toStringTag,{value:"Module"})),T:(Nr=class{},l(Nr,"ChatMessage",Zt),Nr)},Symbol.toStringTag,{value:"Module"}));class rs{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new ye);R.H.Classes.BuildClass(this,e)}}class bn{constructor(e){l(this,"id");l(this,"passportId");l(this,"fileInfoId");l(this,"fileInfo",new R.C.FileInfo);l(this,"order",0);A.BuildClass(this,e)}static Create(e){const n=new bn;return n.id=R.H.Id.UUID(),n.passportId=e,n}}var Qd=Object.defineProperty,Yd=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Qd(e,n,o),o};class or{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",[]);A.BuildClass(this,e)}}Yd([A.GetClassConstructor(bn)],or.prototype,"passportScans");class os{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new ye);R.H.Classes.BuildClass(this,e)}}const Jd=Object.freeze(Object.defineProperty({__proto__:null,Inn:rs,Passport:or,PassportScan:bn,Snils:os},Symbol.toStringTag,{value:"Module"}));let Kd=class extends K{constructor(){super(rs,"inns")}};const eu=new Kd;let tu=class extends K{constructor(){super(bn,"passport-scans")}};const nu=new tu;let iu=class extends K{constructor(){super(or,"passports")}};const ru=new iu;let ou=class extends K{constructor(){super(os,"snilss")}};const su=new ou,au=Object.freeze(Object.defineProperty({__proto__:null,C:Jd,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:eu,PassportScans:nu,Passports:ru,Snilss:su},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class sr{constructor(e){l(this,"id");l(this,"name","");R.H.Classes.BuildClass(this,e)}static Create(e){const n=new sr;return n.id=R.H.Id.UUID(),n.name=e,n}}const lu=Object.freeze(Object.defineProperty({__proto__:null,Extract:sr},Symbol.toStringTag,{value:"Module"})),cu=[{path:"/admin/extracts",name:"ExtractsList",component:()=>Promise.resolve().then(()=>ug)}];class Cn{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");R.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new Cn;return r.id=R.H.Id.UUID(),r.name=e,r.label=n,r}}let du=class extends K{constructor(){super(Cn,"extracts")}};const uu=new du,hu=Object.freeze(Object.defineProperty({__proto__:null,C:lu,R:cu,S:Object.freeze(Object.defineProperty({__proto__:null,ExtractsStore:uu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Rt{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);R.H.Classes.BuildClass(this,e)}static Create(e){const n=new Rt;return n.id=R.H.Id.UUID(),n.fieldId=e,n}}class ss{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");R.H.Classes.BuildClass(this,e)}}class ar{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);R.H.Classes.BuildClass(this,e)}}class Xt{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");R.H.Classes.BuildClass(this,e)}static Create(e){const n=new Xt;return n.id=R.H.Id.UUID(),n.fieldId=e,n}}var fu=Object.defineProperty,Sn=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&fu(e,n,o),o};const $t=class vi{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 Xo);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);R.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 vi;return n.id=R.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 Rt(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 ar(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new Xt)}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=Rt.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=vi.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=Xt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new vi(this);return e.id=R.H.Id.UUID(),e.answerVariants.forEach(n=>{n.id=R.H.Id.UUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const r=n.copy();return r.parentId=e.id,r}),e}};Sn([R.H.Classes.GetClassConstructor(Rt)],$t.prototype,"answerVariants"),Sn([R.H.Classes.GetClassConstructor(ss)],$t.prototype,"fieldExamples"),Sn([R.H.Classes.GetClassConstructor(Xt)],$t.prototype,"fieldVariants"),Sn([R.H.Classes.GetClassConstructor(ar)],$t.prototype,"fieldMeasures"),Sn([R.H.Classes.GetClassConstructor($t)],$t.prototype,"children");let ri=$t;class lr{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new ye);R.H.Classes.BuildClass(this,e)}}class It{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");R.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new It;return r.id=dt(),r.fieldFillId=e,r.answerVariantId=n,r}static GetClassName(){return"selectedAnswerVariant"}}var mu=Object.defineProperty,as=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&mu(e,n,o),o};const cr=class Or{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new ye);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",[]);R.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const r=new Or;return r.id=dt(),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=>Or.Create(r,n))}addFile(){const e=new lr;return e.id=dt(),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=It.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=It.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}};as([R.H.Classes.GetClassConstructor(It)],cr.prototype,"selectedAnswerVariants"),as([R.H.Classes.GetClassConstructor(lr)],cr.prototype,"answerFiles");let Qt=cr;class pu{constructor(e){l(this,"id");l(this,"fieldId");R.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var gu=Object.defineProperty,yu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&gu(e,n,o),o};const ls=class Ks{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");R.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 Ks;return n.id=R.H.Id.UUID(),n.formId=e,n}addField(){const e=ri.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}};yu([R.H.Classes.GetClassConstructor(ri)],ls.prototype,"fields");let oi=ls;var wu=Object.defineProperty,bu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&wu(e,n,o),o};const cs=class ea{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);R.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new ea;return e.id=R.H.Id.UUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=oi.Create(this.id);return this.formSections.push(e),R.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)}};bu([R.H.Classes.GetClassConstructor(oi)],cs.prototype,"formSections");let ds=cs;var Cu=Object.defineProperty,Su=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Cu(e,n,o),o};const us=class ta{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");R.H.Classes.BuildClass(this,e)}static Create(e){const n=new ta;return n.id=R.H.Id.UUID(),n.formId=e.id,n.fieldFills.push(...Qt.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 Qt;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=Qt.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 o;if(r.code){const s=(o=this.getFieldFillByFieldId(r.id))==null?void 0:o.valueNumber;n[r.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};Su([R.H.Classes.GetClassConstructor(Qt)],us.prototype,"fieldFills");let hs=us;const ku=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:Rt,Field:ri,FieldExample:ss,FieldFill:Qt,FieldFillFile:lr,FieldFilter:pu,FieldMeasure:ar,FieldVariant:Xt,Form:ds,FormFill:hs,FormSection:oi,SelectedAnswerVariant:It},Symbol.toStringTag,{value:"Module"}));let Eu=class extends K{constructor(){super(Rt,"answer-variants")}};const xu=new Eu;let vu=class extends K{constructor(){super(Qt,"field-fills")}};const Mu=new vu;let Bu=class extends K{constructor(){super(ri,"fields")}};const Ru=new Bu;let $u=class extends K{constructor(){super(hs,"form-fills")}};const Iu=new $u;let Au=class extends K{constructor(){super(oi,"form-sections")}};const Pu=new Au;let Nu=class extends K{constructor(){super(ds,"forms")}};const zu=new Nu;let Tu=class extends K{constructor(){super(It,"selected-answer-variants")}};const Ou=new Tu,Vu=Object.freeze(Object.defineProperty({__proto__:null,C:ku,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:xu,FieldFills:Mu,Fields:Ru,FormFills:Iu,FormSections:Pu,Forms:zu,SelectedAnswerVariants:Ou},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class si{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 ye);l(this,"iconName","");l(this,"svgCode","");A.BuildClass(this,e)}addFile(e){this.icon.id||(this.icon.id=de.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}}var Fu=Object.defineProperty,Du=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Fu(e,n,o),o};class dr{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 ye);A.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=de.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new si)}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"}}Du([A.GetClassConstructor(si)],dr.prototype,"subMenus");const Lu=Object.freeze(Object.defineProperty({__proto__:null,Menu:dr,SubMenu:si},Symbol.toStringTag,{value:"Module"}));let Hu=class extends R.H.BaseStore{constructor(){super(dr,"menus")}};const qu=new Hu;let _u=class extends R.H.BaseStore{constructor(){super(si,"sub-menus")}};const Uu=new _u,ju=Object.freeze(Object.defineProperty({__proto__:null,C:Lu,S:Object.freeze(Object.defineProperty({__proto__:null,Menus:qu,SubMenus:Uu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class ai{constructor(e){l(this,"id","");l(this,"name","");l(this,"component","");l(this,"order");l(this,"active",!1);l(this,"key",0);A.BuildClass(this,e)}static Create(e,n,r,o,s){const a=new ai;return a.id=e,a.name=n,a.component=r,a.order=o,a.active=!!s,a}}var fs=(t=>(t.User="USER",t.Admin="ADMIN",t))(fs||{});class Wu{constructor(e){l(this,"id");l(this,"name",fs.User);l(this,"label","");l(this,"startPage","");A.BuildClass(this,e)}}class ur{constructor(e){l(this,"id");l(this,"document",new ye);l(this,"documentId");l(this,"pageId");A.BuildClass(this,e)}}var Gu=Object.defineProperty,Zu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Gu(e,n,o),o};class li{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");A.BuildClass(this,e)}}Zu([A.GetClassConstructor(ye)],li.prototype,"fileInfo");class ci{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new ye);l(this,"scanId");A.BuildClass(this,e)}getFileInfos(){return[this.scan]}getFileName(){return this.name?this.name:this.scan.originalName}}var Xu=Object.defineProperty,Qu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Xu(e,n,o),o};class Yt{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",[]);A.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new ci;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=W.SearchIn(this.name,e),r=W.SearchIn(this.description,e),o=this.getDocuments(e);return n||r||o.length>0}getDocuments(e){return this.pageSectionDocuments.filter(n=>W.SearchIn(n.name,e))}getDescription(e){return e?W.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=W.SearchIn(this.description,e)?W.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(n=>W.SearchIn(n.name,e))}}Qu([A.GetClassConstructor(ci)],Yt.prototype,"pageSectionDocuments");var Yu=Object.defineProperty,Ju=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Yu(e,n,o),o};class ft{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","");A.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 Yt;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=de.UUID(),this.pageSections.push(e)}infoExists(e){const n=W.SearchIn(this.name,e),r=W.SearchIn(this.description,e),o=this.getPageSections(e).length>0;return n||r||o}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=W.SearchIn(this.description,e)?W.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(n=>n.filter(e))}}Ju([A.GetClassConstructor(Yt)],ft.prototype,"pageSections");var Ku=Object.defineProperty,di=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Ku(e,n,o),o};class Jt{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 jo);l(this,"contactId");l(this,"role",new Wu);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");A.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 ft;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=de.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 ft}addCustomSectionsToSideMenu(e){e.forEach(n=>{const r=new ft;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 ft;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"}}di([A.GetClassConstructor(li)],Jt.prototype,"pageImages"),di([A.GetClassConstructor(ft)],Jt.prototype,"pageSideMenus"),di([A.GetClassConstructor(Yt)],Jt.prototype,"pageSections"),di([A.GetClassConstructor(ur)],Jt.prototype,"pageDocuments");const eh=Object.freeze(Object.defineProperty({__proto__:null,CustomSection:ai,Page:Jt,PageDocument:ur,PageImage:li,PageSection:Yt,PageSectionDocument:ci,PageSideMenu:ft},Symbol.toStringTag,{value:"Module"}));let th=class extends R.H.BaseStore{constructor(){super(ai,"custom-sections")}};const nh=new th;let ih=class extends R.H.BaseStore{constructor(){super(ur,"page-documents")}};const rh=new ih;let oh=class extends R.H.BaseStore{constructor(){super(li,"page-images")}};const sh=new oh;let ah=class extends R.H.BaseStore{constructor(){super(ci,"page-section-documents")}};const lh=new ah;let ch=class extends R.H.BaseStore{constructor(){super(Yt,"page-sections")}};const dh=new ch;let uh=class extends R.H.BaseStore{constructor(){super(ft,"page-side-menus")}};const hh=new uh;let fh=class extends R.H.BaseStore{constructor(){super(Jt,"pages")}};const mh=new fh,ph=Object.freeze(Object.defineProperty({__proto__:null,C:eh,S:Object.freeze(Object.defineProperty({__proto__:null,CustomSections:nh,PageDocuments:rh,PageImages:sh,PageSectionDocuments:lh,PageSections:dh,PageSideMenus:hh,Pages:mh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),gh=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:Cn},Symbol.toStringTag,{value:"Module"}));let yh=class extends K{constructor(){super(Cn,"color-themes")}};const wh=new yh,bh=Object.freeze(Object.defineProperty({__proto__:null,Buildings:Hd,Chats:Xd,Docs:au,Extracts:hu,Forms:Vu,Menus:ju,Pages:ph,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:gh,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:wh},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),hr=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:ut.M,required:!1},type:{type:String,default:Y.Primary,required:!1},fontSize:{type:String,default:"",required:!1},disabled:{type:Boolean,default:!1,required:!1}},setup(t){const e=t,n=i.useAttrs(),r=i.computed(()=>{const C={};for(const P of Object.keys(n))["disable","color","size","flat","outline","unelevated","type"].includes(P)||(C[P]=n[P]);return C}),o=["submit","button","reset"],s=i.computed(()=>o.includes(e.type)),a=i.computed(()=>s.value?e.type:void 0),c=i.computed(()=>s.value?Y.Primary:e.type),d=i.computed(()=>{const C={};return e.margin&&(C.margin=e.margin),e.padding&&(C.padding=e.padding),e.width&&(C.maxWidth=e.width,C.minWidth=e.width),e.height&&(C.minHeight=e.height,C.maxHeight=e.height),e.fontSize&&(C.fontSize=e.fontSize),C}),u={[Y.Primary]:"primary",[Y.Success]:"positive",[Y.Warning]:"warning",[Y.Error]:"negative",[Y.Info]:"info"},h=i.computed(()=>n.color!==void 0?n.color:u[c.value]??"primary"),f={[ut.XS]:"xs",[ut.S]:"sm",[ut.M]:"md",[ut.L]:"lg",[ut.XL]:"xl"},m=i.computed(()=>n.size!==void 0?n.size:["xs","sm","md","lg","xl"].includes(e.size)?e.size:f[e.size]??"md"),y=i.computed(()=>n.flat!==void 0?n.flat:["text","pag","text_ano"].includes(e.skin)),w=i.computed(()=>n.outline!==void 0?n.outline:e.skin==="invert"),S=i.computed(()=>n.unelevated!==void 0?n.unelevated:e.skin==="base"),x=i.computed(()=>n.disable??e.disabled);return(C,P)=>{const E=i.resolveComponent("QBtn");return i.openBlock(),i.createBlock(E,i.mergeProps(i.unref(r),{style:i.unref(d),color:i.unref(h),size:i.unref(m),flat:i.unref(y),outline:i.unref(w),unelevated:i.unref(S),disable:i.unref(x),type:i.unref(a),"no-wrap":""}),{default:i.withCtx(()=>[i.renderSlot(C.$slots,"default"),i.createTextVNode(" "+i.toDisplayString(t.text),1)]),_:3},16,["style","color","size","flat","outline","unelevated","disable","type"])}}}),ms=i.defineComponent({inheritAttrs:!1,__name:"PCheckBox",props:i.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:""},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"md"},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,o=i.useAttrs(),s=i.computed(()=>{const c={};for(const d of Object.keys(o))c[d]=o[d];return c}),a=()=>{r("change",n.value)};return(c,d)=>{const u=i.resolveComponent("QCheckbox");return i.openBlock(),i.createElementBlock("div",{class:"p-checkbox",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createVNode(u,i.mergeProps({modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=h=>n.value=h)},i.unref(s),{label:t.label||void 0,size:t.size,style:{fontSize:t.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4)}}}),Ch=i.defineComponent({inheritAttrs:!1,__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"),o=i.useAttrs(),s=i.computed(()=>typeof o.id=="string"?o.id:void 0),a=t,c=h=>{const f=h==null||h===""?null:new Date(String(h));f?(r.value=f,n("input",d(r.value))):(r.value=null,n("input",null))},d=h=>h?new Date(h.getTime()-h.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"",u=i.computed(()=>{const h={};return a.margin&&(h.margin=a.margin),a.padding&&(h.padding=a.padding),h});return(h,f)=>{const m=i.resolveComponent("QInput");return i.openBlock(),i.createBlock(m,{for:i.unref(s),max:"2100",min:"1900","model-value":d(r.value),label:t.label||void 0,class:"p-datepicker",type:"date",name:t.label,style:i.normalizeStyle(i.unref(u)),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":c},{before:i.withCtx(()=>[i.renderSlot(h.$slots,"default")]),append:i.withCtx(()=>[i.renderSlot(h.$slots,"right")]),_:3},8,["for","model-value","label","name","style"])}}}),Sh=v(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 flex",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-71357bc9"]]),ui=v(i.defineComponent({inheritAttrs:!1,__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},width:{type:String,required:!1,default:""},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"",required:!1},color:{type:String,default:"",required:!1},rules:{type:Array,required:!1,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input","focus","clear"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const r=n,o=i.useModel(t,"modelValue"),s=i.useAttrs(),a=i.computed(()=>typeof s.id=="string"?s.id:void 0),c=i.computed(()=>{const w={};for(const S of Object.keys(s))S!=="id"&&S!=="disable"&&(w[S]=s[S]);return w}),d=t,u=i.computed(()=>s.disable??d.disabled),h=i.ref(null);function f(){var w;(w=h.value)==null||w.focus()}e({focus:f});const m=()=>{r("input",o.value)},y=i.computed(()=>{const w={};return d.margin&&(w.margin=d.margin),d.padding&&(w.padding=d.padding),d.width&&(w.width=d.width),d.borderColor&&(w["--p-border-color"]=d.borderColor),w});return(w,S)=>{const x=i.resolveComponent("QInput");return i.openBlock(),i.createBlock(x,i.mergeProps({ref_key:"input",ref:h,modelValue:o.value,"onUpdate:modelValue":S[0]||(S[0]=C=>o.value=C)},i.unref(c),{for:i.unref(a),label:t.label||void 0,mask:t.mask,disable:i.unref(u),rules:t.rules,"input-style":{color:t.color||void 0},style:i.unref(y),class:"p-input",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":m,onBlur:S[1]||(S[1]=C=>w.$emit("blur",o.value)),onFocus:S[2]||(S[2]=C=>w.$emit("focus",o.value)),onClear:S[3]||(S[3]=C=>w.$emit("clear"))}),i.createSlots({before:i.withCtx(()=>[i.renderSlot(w.$slots,"before",{},()=>[i.renderSlot(w.$slots,"default",{},void 0,!0)],!0)]),append:i.withCtx(()=>[i.renderSlot(w.$slots,"append",{},()=>[i.renderSlot(w.$slots,"right",{},void 0,!0)],!0)]),_:2},[w.$slots.prepend?{name:"prepend",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,w.$slots.after?{name:"after",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"after",{},void 0,!0)]),key:"1"}:void 0,w.$slots.label?{name:"label",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"label",{},void 0,!0)]),key:"2"}:void 0,w.$slots.error?{name:"error",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"error",{},void 0,!0)]),key:"3"}:void 0,w.$slots.hint?{name:"hint",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"hint",{},void 0,!0)]),key:"4"}:void 0,w.$slots.counter?{name:"counter",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"counter",{},void 0,!0)]),key:"5"}:void 0,w.$slots.loading?{name:"loading",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"loading",{},void 0,!0)]),key:"6"}:void 0]),1040,["modelValue","for","label","mask","disable","rules","input-style","style"])}}}),[["__scopeId","data-v-04ddb0ed"]]),kh=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"),o=Qe.Format(r.value),s=i.ref(o),a=d=>{if(!c(d))return;const u=Qe.FromRuStr(d);r.value=u,n("beforeChange",u),n("change",u)},c=d=>d.length!=10?(s.value=o,Ge.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=o,Ge.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=o,Ge.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=o,Ge.Error("Неверный год"),!1):!0;return(d,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(s),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(s)?s.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)}}}),Eh=v(i.defineComponent({__name:"IconMinus",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":"#minus"},null,-1)])],6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"minus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[i.createElementVNode("path",{d:"M19.4995 13.8856H5.53125V11.8926H19.4995V13.8856Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-582bd65a"]]),xh=v(i.defineComponent({__name:"IconPlus",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":"#plus"},null,-1)])],6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[i.createElementVNode("path",{d:"M11.3263 19.8672V13.8881H5.33984V11.8951H11.3263V5.91602H13.3217V11.8951H19.3081V13.8881H13.3217V19.8672H11.3263Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1f1f064c"]]),vh=i.defineComponent({inheritAttrs:!1,__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:"",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=i.useAttrs(),o=i.computed(()=>typeof r.id=="string"?r.id:void 0),s=i.computed(()=>{const E={};for(const I of Object.keys(r))I!=="id"&&(E[I]=r[I]);return E}),a=t,c=()=>{const E=a.step.toString();return E.includes(".")?E.split(".")[1].length:0},d=c(),u=i.useModel(t,"modelValue"),h=i.ref(u.value.toFixed(c())),f=i.computed(()=>{const E={};return a.margin&&(E.margin=a.margin),a.padding&&(E.padding=a.padding),E}),m=E=>{const I=Math.pow(10,d);return Math.round(E*I)/I},y=(E,...I)=>{u.value=m(E),h.value=m(E).toFixed(c()),I.forEach(L=>n(L,u.value))},w=(E,...I)=>{a.disabled||E>a.max||E<a.min||y(E,...I)},S=()=>w(+h.value+a.step,"change"),x=()=>w(+h.value-a.step,"change"),C=E=>w(Number(E),"input"),P=()=>w(+h.value,"change","blur");return(E,I)=>{const L=i.resolveComponent("QBtn"),Q=i.resolveComponent("QInput");return i.openBlock(),i.createBlock(Q,i.mergeProps(i.unref(s),{for:i.unref(o),"model-value":i.unref(h),label:t.label||void 0,class:"p-input-number",type:"number",disable:t.disabled,"input-style":{color:t.disabled?"#828587":t.color,textAlign:"center"},style:i.unref(f),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":C,onBlur:P}),{before:i.withCtx(()=>[i.createVNode(L,{class:"number-minus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:x},{default:i.withCtx(()=>[i.createVNode(Eh)]),_:1})]),append:i.withCtx(()=>[i.createVNode(L,{class:"number-plus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:S},{default:i.withCtx(()=>[i.createVNode(xh)]),_:1})]),_:1},16,["for","model-value","label","disable","input-style","style"])}}}),Mh=v(vh,[["__scopeId","data-v-02457132"]]),Bh=v(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,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,c)=>{const d=i.resolveComponent("PString"),u=i.resolveComponent("QBtn");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(o)?"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.createVNode(u,{class:"click-line",flat:"","no-caps":"",style:i.normalizeStyle({width:t.widthClosed,minWidth:t.widthClosed,height:t.height,borderRadius:"0"}),onClick:c[0]||(c[0]=h=>s(!i.unref(o)))},{default:i.withCtx(()=>[i.unref(o)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"])],4)],64)}}}),[["__scopeId","data-v-83ad17a5"]]),Rh=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)=>{const r=i.resolveComponent("QList");return i.openBlock(),i.createBlock(r,{tag:"ul",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["style"])}}}),$h=i.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1},background:{type:String,required:!1,default:""}},setup(t){return(e,n)=>{const r=i.resolveComponent("QItem");return i.openBlock(),i.createBlock(r,{tag:"li",style:i.normalizeStyle({margin:t.margin,padding:t.padding,borderBottom:t.showDivider?"1px solid":"none",background:t.background})},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["style"])}}}),Ih=i.defineComponent({__name:"PRadio",props:i.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:""},size:{type:String,default:"md"},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,o=t,s=()=>{r("change",o.value)};return(a,c)=>{const d=i.resolveComponent("QRadio");return i.openBlock(),i.createElementBlock("div",{class:"p-radio",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createVNode(d,{modelValue:n.value,"onUpdate:modelValue":[c[0]||(c[0]=u=>n.value=u),s],val:t.value,name:t.name,label:t.label||void 0,size:t.size,style:i.normalizeStyle({fontSize:t.fontSize})},null,8,["modelValue","val","name","label","size","style"])],4)}}}),Ah=v(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,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,c)=>{const d=i.resolveComponent("PString"),u=i.resolveComponent("QBtn");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(o)?"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.createVNode(u,{class:"click-line",flat:"","no-caps":"",style:i.normalizeStyle({width:t.widthClosed,minWidth:t.widthClosed,height:t.height,borderRadius:"0"}),onClick:c[0]||(c[0]=h=>s(!i.unref(o)))},{default:i.withCtx(()=>[i.unref(o)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"]),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-12848f83"]]),fr=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:""},options:{type:Array,required:!1,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=e,o=i.useAttrs(),s=i.computed(()=>typeof o.id=="string"?o.id:void 0),a=i.computed(()=>{const m={};for(const y of Object.keys(o))y!=="id"&&y!=="disable"&&(m[y]=o[y]);return m}),c=t,d=i.computed(()=>o.disable??c.disabled),u=m=>{r("change",m)},h=()=>{r("clear",void 0)},f=i.computed(()=>{const m={};return c.margin&&(m.margin=c.margin),c.padding&&(m.padding=c.padding),c.width&&(m.width=c.width),c.inPadding&&(m.padding=c.inPadding),m});return(m,y)=>{const w=i.resolveComponent("QSelect");return i.openBlock(),i.createBlock(w,i.mergeProps({modelValue:n.value,"onUpdate:modelValue":y[0]||(y[0]=S=>n.value=S)},i.unref(a),{for:i.unref(s),options:t.options,label:t.label||void 0,placeholder:t.placeholder,clearable:t.clearable,disable:i.unref(d),readonly:t.readonly,"input-style":{color:t.color||void 0},style:i.unref(f),class:"p-select",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":u,onClear:h}),i.createSlots({before:i.withCtx(()=>[i.renderSlot(m.$slots,"before",{},()=>[i.renderSlot(m.$slots,"left")])]),append:i.withCtx(()=>[i.renderSlot(m.$slots,"append",{},()=>[i.renderSlot(m.$slots,"right")])]),_:2},[m.$slots.prepend?{name:"prepend",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"prepend")]),key:"0"}:void 0,m.$slots.after?{name:"after",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"after")]),key:"1"}:void 0,m.$slots.default?{name:"default",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"default")]),key:"2"}:void 0,m.$slots.label?{name:"label",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"label")]),key:"3"}:void 0,m.$slots.error?{name:"error",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"error")]),key:"4"}:void 0,m.$slots.hint?{name:"hint",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"hint")]),key:"5"}:void 0,m.$slots.counter?{name:"counter",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"counter")]),key:"6"}:void 0,m.$slots.loading?{name:"loading",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"loading")]),key:"7"}:void 0,m.$slots.selected?{name:"selected",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"selected")]),key:"8"}:void 0,m.$slots.option?{name:"option",fn:i.withCtx(S=>[i.renderSlot(m.$slots,"option",i.normalizeProps(i.guardReactiveProps(S)))]),key:"9"}:void 0,m.$slots["no-option"]?{name:"no-option",fn:i.withCtx(S=>[i.renderSlot(m.$slots,"no-option",i.normalizeProps(i.guardReactiveProps(S)))]),key:"10"}:void 0,m.$slots["before-options"]?{name:"before-options",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"before-options")]),key:"11"}:void 0,m.$slots["after-options"]?{name:"after-options",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"after-options")]),key:"12"}:void 0,m.$slots["selected-item"]?{name:"selected-item",fn:i.withCtx(S=>[i.renderSlot(m.$slots,"selected-item",i.normalizeProps(i.guardReactiveProps(S)))]),key:"13"}:void 0]),1040,["modelValue","for","options","label","placeholder","clearable","disable","readonly","input-style","style"])}}}),Ph=v(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:"rgba(0, 0, 0, 0.12)"}},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-4748d546"]]),Nh=["innerHTML"],zh={key:1},mr=v(i.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""},fontSize:{type:String,required:!1,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||void 0,fontSize:e.fontSize||void 0,fontWeight:e.fontWeight||void 0,background:e.background||void 0,padding:e.padding||void 0,width:e.width||void 0,maxWidth:e.width||void 0,minWidth:e.minWidth||void 0,margin:e.margin||void 0,justifyContent:e.justifyContent||void 0};return(r,o)=>{const s=i.resolveComponent("QItemLabel");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:o[0]||(o[0]=a=>r.$emit("click"))},[i.createVNode(s,null,{default:i.withCtx(()=>[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,Nh)):(i.openBlock(),i.createElementBlock("span",zh,i.toDisplayString(t.string),1))]),_:1})],2)}}}),[["__scopeId","data-v-faa0d29a"]]),Th=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))}}),Oh=v(i.defineComponent({inheritAttrs:!1,__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:"",required:!1},color:{type:String,default:"",required:!1},resize:{type:String,default:"vertical",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input","focus"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue"),n=i.useAttrs(),r=i.computed(()=>typeof n.id=="string"?n.id:void 0),o=i.computed(()=>{const d={};for(const u of Object.keys(n))u!=="id"&&(d[u]=n[u]);return d}),s=t,a=i.computed(()=>({color:s.color||void 0,resize:s.resize})),c=i.computed(()=>{const d={};return s.margin&&(d.margin=s.margin),s.padding&&(d.padding=s.padding),s.borderColor&&(d["--p-border-color"]=s.borderColor),d});return(d,u)=>{const h=i.resolveComponent("QInput");return i.openBlock(),i.createBlock(h,i.mergeProps({modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f)},i.unref(o),{for:i.unref(r),label:t.label||void 0,mask:t.mask,type:"textarea","input-style":i.unref(a),style:i.unref(c),class:"p-textarea",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":u[1]||(u[1]=f=>d.$emit("input",e.value)),onBlur:u[2]||(u[2]=f=>d.$emit("blur",e.value)),onFocus:u[3]||(u[3]=f=>d.$emit("focus",e.value))}),{before:i.withCtx(()=>[i.renderSlot(d.$slots,"default",{},void 0,!0)]),append:i.withCtx(()=>[i.renderSlot(d.$slots,"right",{},void 0,!0)]),_:3},16,["modelValue","for","label","mask","input-style","style"])}}}),[["__scopeId","data-v-611da668"]]),Vh={class:"tooltip-wrapper"},Fh=v(i.defineComponent({__name:"PTooltip",props:{tooltipText:{type:String,default:"Подсказка",required:!1},timeout:{type:Number,default:500,required:!1},typeStyle:{type:String,default:"primary",required:!1},height:{type:String,default:"16px",required:!1},relPosition:{type:String,default:"right",required:!1},level:{type:String,default:"top",required:!1}},setup(t){const e=t,n={primary:"var(--q-primary)",success:"var(--q-positive)",warning:"var(--q-warning)",danger:"var(--q-negative)",neutral:"var(--q-dark)"},r=i.computed(()=>{const a=e.relPosition==="left"?"right":"left";return`${e.level==="top"?"top":"bottom"} ${a}`}),o=i.computed(()=>{const a=e.relPosition==="left"?"right":"left";return`${e.level==="top"?"bottom":"top"} ${a}`}),s=i.computed(()=>({background:n[e.typeStyle],whiteSpace:"pre",height:e.height,borderRadius:"2px",display:"flex",justifyContent:"center",alignItems:"center"}));return(a,c)=>{const d=i.resolveComponent("QTooltip");return i.openBlock(),i.createElementBlock("div",Vh,[i.renderSlot(a.$slots,"default",{},void 0,!0),i.createVNode(d,{delay:t.timeout,anchor:i.unref(r),self:i.unref(o),class:"tooltip-box",style:i.normalizeStyle(i.unref(s))},{default:i.withCtx(()=>[i.createVNode(mr,{string:t.tooltipText,padding:"0 3px",height:t.height},null,8,["string","height"])]),_:1},8,["delay","anchor","self","style"])])}}}),[["__scopeId","data-v-f8d01a89"]]),Dh={class:"top-slider-content"},Lh={class:"center"},Hh=v(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,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,c)=>{const d=i.resolveComponent("QBtn");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(u=>o.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(o)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:c[3]||(c[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",Dh,[i.createElementVNode("div",Lh,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createVNode(d,{class:"click-line",flat:"","no-caps":"",style:i.normalizeStyle({height:t.sliderOffHeight,minHeight:t.sliderOffHeight,borderRadius:"0"}),onClick:c[2]||(c[2]=u=>s(!i.unref(o)))},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"title",{},void 0,!0)]),_:3},8,["style"])],4)],64)}}}),[["__scopeId","data-v-c96d0d0d"]]);function qh(t){t.component("PButton",hr),t.component("PCheckBox",ms),t.component("PDatePicker",Ch),t.component("PFlex",Sh),t.component("PInput",ui),t.component("PInputDate",kh),t.component("PInputNumber",Mh),t.component("PLeftSlider",Bh),t.component("PList",Rh),t.component("PListItem",$h),t.component("PRadio",Ih),t.component("PRightSlider",Ah),t.component("PSelect",fr),t.component("PSticky",Ph),t.component("PString",mr),t.component("PTextarea",Oh),t.component("PTopSlider",Hh),t.component("PTable",Th),t.component("PTooltip",Fh)}const _h={key:0,class:"mainblock"},Uh={class:"mainblock-right"},jh={class:"body"},Wh=v(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),o=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").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}),n.value=!0}),(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",_h,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,maxWidth:i.unref(o)?"100%":t.menuWidth,marginLeft:i.unref(o)?"-110%":"0",position:i.unref(o)?"fixed":"relative",top:i.unref(o)?"140px":""})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(o)?"auto":t.menuWidth,boxShadow:i.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!i.unref(r)&&i.unref(o)?"110%":"0",borderTopLeftRadius:i.unref(o)?"0":"",borderBottomLeftRadius:i.unref(o)?"0":""}),onClick:c[0]||(c[0]=d=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Uh,[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(o)?"flex":"none"}),onClick:c[1]||(c[1]=d=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4)):i.createCommentVNode("",!0),i.createElementVNode("div",jh,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])])):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-52b3d807"]]),Gh={class:"mainblock-right"},Zh={class:"body"},Xh=v(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),o=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").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}),n.value=!0}),(a,c)=>(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(o)?"block":"flex"})},[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,display:t.leftWidth!=="0px"?"flex":"none",top:i.unref(o)?"58px":"80px"})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,boxShadow:i.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!i.unref(r)&&i.unref(o),"0"),overflowX:i.unref(o)?"scroll":"hidden",display:i.unref(o)?"flex":"block",background:i.unref(o)?"#ffffff":"",overflowY:i.unref(o)?"hidden":"auto"}),onClick:c[0]||(c[0]=d=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Gh,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({position:t.titleSticky?"sticky":"relative",top:t.titleSticky?i.unref(o)?"108px":"58px":"0",zIndex:t.titleSticky?"10":""})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(o)?"flex":"none"}),onClick:c[1]||(c[1]=d=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4),i.createElementVNode("div",Zh,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),ps=v(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,v52bd0ff4:t.background,v1795aeac:t.gridGap,v0cfa7c52:t.gridTemplateColumns,v0c6d2a1f: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"]]),Qh={class:"container"},Yh={class:"slide-box"},Jh={class:"image"},Kh={class:"image-box"},ef=["id","src","alt"],tf={class:"link-number"},nf=["id","onClick"],rf=v(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(y=>({v582c9d05:n}));const e=t,n=`${e.animationTime}ms`,r=i.ref(e.startActiveGroupIndex),o=i.ref(Ye.None),s=i.ref(Lo(e.events,e.quantity)),a=i.computed(()=>s.value[r.value]);i.onMounted(()=>{});const c=()=>r.value=r.value+1<s.value.length?r.value+1:0,d=()=>r.value=r.value-1<0?s.value.length-1:r.value-1,u=y=>{o.value=y,setTimeout(()=>o.value=Ye.None,e.animationTime)},h=y=>{y!=r.value&&(u(y<r.value?Ye.Prev:Ye.Next),setTimeout(()=>r.value=y,e.animationTime/2))},f=()=>{u(Ye.Next),setTimeout(c,e.animationTime/2)},m=()=>{u(Ye.Prev),setTimeout(d,e.animationTime/2)};return(y,w)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",Qh,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:w[0]||(w[0]=i.withModifiers(S=>m(),["stop"]))},[...w[3]||(w[3]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)])])),i.createElementVNode("div",Yh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(S,x)=>(i.openBlock(),i.createElementBlock("div",{key:x,class:i.normalizeClass({animationnext:i.unref(o)===i.unref(Ye).Next,animationprev:i.unref(o)===i.unref(Ye).Prev})},[i.createElementVNode("div",Jh,[i.createElementVNode("div",Kh,[i.createElementVNode("img",{id:S.fileInfo.getImageUrl(),style:i.normalizeStyle({height:`calc(${t.height} - 110px)`,maxHeight:`calc(${t.maxHeight} - 110px)`}),src:S.fileInfo.getImageUrl(),alt:S.fileInfo.originalName,onClick:w[1]||(w[1]=C=>y.showImageInFullScreen())},null,12,ef)])])],2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:w[2]||(w[2]=i.withModifiers(S=>f(),["stop"]))},[...w[4]||(w[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])]))]),i.createElementVNode("div",tf,[i.createVNode(ps,{"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(s),(S,x)=>(i.openBlock(),i.createElementBlock("div",{id:x.toString(),key:x,class:"number",style:i.normalizeStyle({background:x.toString()===i.unref(r).toString()?"#9D9D9D":""}),onClick:i.withModifiers(C=>h(x),["stop"])},i.toDisplayString(x+1),13,nf))),128))]),_:1})])],4))}}),[["__scopeId","data-v-c5b846b9"]]),of=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,o=i.ref(n.x),s=i.ref(n.y),a=i.computed(()=>o.value+"px"),c=i.computed(()=>s.value+"px"),d=()=>{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(c)})},[i.renderSlot(u.$slots,"default")],4)),[[f,d]])}}}),sf={class:"date-range"},af=v(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||(o.value=void 0),n.end||(s.value=void 0)});const o=i.ref(n.start),s=i.ref(n.end),a=d=>{o.value=d,!(!n.end||d>n.end)&&(r("update:start",d),r("setStart",d))},c=d=>{s.value=d,!(!n.start||d<n.start)&&(r("update:end",d),r("setEnd",d))};return(d,u)=>{const h=i.resolveComponent("PInputDate");return i.openBlock(),i.createElementBlock("div",sf,[i.createVNode(h,{"model-value":i.unref(o),"onUpdate:modelValue":u[0]||(u[0]=f=>i.isRef(o)?o.value=f:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=i.createTextVNode(" - ",-1)),i.createVNode(h,{"model-value":i.unref(s),"onUpdate:modelValue":u[1]||(u[1]=f=>i.isRef(s)?s.value=f:null),onChange:c},null,8,["model-value"])])}}}),[["__scopeId","data-v-b93b6d46"]]),lf=i.defineComponent({name:"DateInputRangeV2"}),cf={class:"date-range"};function df(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",cf,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const uf=v(lf,[["render",df],["__scopeId","data-v-d28c6f33"]]),hf={class:"drop-item"},ff={key:0,class:"drop-item-list"},mf=v(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(o,s)=>{const a=i.resolveComponent("PString"),c=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",hf,[i.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=d=>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(c,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",ff,[i.renderSlot(o.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),pf=v(i.defineComponent({__name:"FilterCheckbox",props:{model:{type:Object,default:()=>new zi,required:!0}},emits:["load"],setup(t,{emit:e}){const n=t,r=i.ref(!1),o=e,s=()=>{n.model.setBoolean(r.value),r.value?R.F.FTSP.Get().setF(n.model):R.F.FTSP.Get().removeF(n.model),o("load")};return(a,c)=>{const d=i.resolveComponent("PCheckBox");return i.openBlock(),i.createBlock(d,{modelValue:i.unref(r),"onUpdate:modelValue":c[0]||(c[0]=u=>i.isRef(r)?r.value=u:null),label:t.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-72984c94"]]),gf=v(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),o=async a=>{ot.Get().replaceF(a,r.value),r.value=a,ot.Get().p.drop()},s=async a=>{await o(a),n("load")};return(a,c)=>{const d=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(d,{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(()=>[...c[0]||(c[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,y)=>(i.openBlock(),i.createBlock(u,{key:y,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(i.unref(r)),"toggle-mode":!0,inverse:t.inverse,onClick:w=>s(m.valueEq(i.unref(r))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-586481ea"]]),yf=["value","label"],wf=v(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=ot.Get(),o=i.ref(void 0),s=async c=>{r.replaceF(c,o.value),o.value=c},a=async c=>{c?await s(o.value):await s(void 0),n("load")};return(c,d)=>{const u=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(u,{modelValue:i.unref(o),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(o)?o.value=h:null),clearable:i.unref(o),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,yf))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ae66df57"]]),bf=v(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-e280d85b"]]),Cf=v(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),Sf={key:0,class:"blur"},kf={style:{display:"flex","justify-content":"center"}},Ef=v(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,o=n.customClass!==""?n.customClass:"inside-class",s=i.ref(!1),a=i.ref(!1),c=i.ref(!1),d=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=I=>{I.stopPropagation(),I.key==="Escape"&&(n.showSaveDialog?c.value=!0:a.value=!1)};i.watch(a,async()=>{var I,L;await i.nextTick(),a.value?((L=(I=document.getElementById("info-item-opened-content"))==null?void 0:I.querySelector("input"))==null||L.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,d.value!==n.close&&(a.value=!1,d.value=!d.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),y=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:s.value||a.value?n.colorSelected:n.borderColor,color:s.value?n.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${n.colorSelected}`:"none",alignItems:m.value?"end":"center",cursor:(n.withHover,"pointer")})),w=i.computed(()=>({height:m.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),S=i.computed(()=>({height:m.value?"auto":"0"})),x=i.computed(()=>({color:s.value?n.colorSelected:"#343E5C",fill:s.value?n.colorSelected:"#343E5C",background:n.background})),C=()=>{n.showSaveDialog?c.value=!0:a.value=!1},P=async()=>{await r("keyup-enter"),n.close&&(a.value=!1),c.value=!1},E=()=>{a.value=!1,c.value=!1};return(I,L)=>{const Q=i.resolveComponent("PString"),Ae=i.resolveComponent("PButton"),Pt=i.resolveComponent("PModal"),Nt=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",Sf)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(f)),onClick:L[2]||(L[2]=i.withModifiers(Pe=>h(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(o)]),style:i.normalizeStyle(i.unref(y)),onMouseenter:L[0]||(L[0]=Pe=>t.withHover?s.value=!0:s.value=!1),onMouseleave:L[1]||(L[1]=Pe=>s.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(w))},[i.renderSlot(I.$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(S))},[i.renderSlot(I.$slots,"open-inside-content",{},void 0,!0)],4)),[[Nt,C,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(x))},[i.renderSlot(I.$slots,"title",{},()=>[i.createVNode(Q,{string:t.title,"font-size":"10px",padding:"0 0 0 3px",style:i.normalizeStyle({color:i.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),i.createVNode(Pt,{show:i.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",kf,[i.createVNode(Ae,{text:"Не сохранять",onClick:E}),i.createVNode(Ae,{text:"Сохранять",onClick:P})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),xf=v(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,o=s=>{n.value=!n.value,r("select",s)};return(s,a)=>{const c=i.resolveComponent("PString"),d=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(d,{key:h,type:"admin",color:"blue",text:h,onClick:f=>o(h)},null,8,["text","onClick"]))),128)),i.createVNode(d,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=h=>o(void 0))})]),default:i.withCtx(()=>[i.createVNode(c,{string:t.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),vf={class:"mainblock"},Mf={class:"mainline"},Bf=v(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",vf,[i.createElementVNode("div",Mf,[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"]]),gs=v(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"]]),Rf={class:"search-list"},$f=["onClick"],ys=v(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,o=i.ref(r.modelValue),s=i.ref([]);async function a(){n("input",o.value),await c()}async function c(){r.searchFunc&&(s.value=await r.searchFunc(o.value))}async function d(u){o.value="",n("select",u)}return(u,h)=>(i.openBlock(),i.createElementBlock("div",{class:"container",style:i.normalizeStyle({width:t.width})},[i.createVNode(ui,{modelValue:i.unref(o),"onUpdate:modelValue":h[0]||(h[0]=f=>i.isRef(o)?o.value=f:null),placeholder:"Найти",onInput:a},{right:i.withCtx(()=>[i.createVNode(gs,{size:"24px"})]),_:1},8,["modelValue"]),i.unref(o)&&i.unref(o).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",Rf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),f=>(i.openBlock(),i.createElementBlock("li",{key:f.value,onClick:m=>d(f)},i.toDisplayString(f.label),9,$f))),128))])],4)):i.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-d02c66ef"]]),If=v(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{};return(r,o)=>{const s=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":o[0]||(o[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":o[1]||(o[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-51bf3f08"]]),Af={};function Pf(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 Nf=v(Af,[["render",Pf],["__scopeId","data-v-0f1f2f84"]]),zf={style:{display:"flex","justify-content":"center",width:"100%"}},Tf={class:"pag-number"},Of={class:"pag-ul"},Vf={key:2},Ff=v(i.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},setup(t){const e=t,n=f=>f?"active":"neutral",r=f=>f?"not-active":"neutral",o=i.ref(Ho),s=i.ref(!1),a=i.ref(!1);o.value.count=e.store.Count.value,i.watch(e.store.Count,()=>{o.value.count=e.store.Count.value});const c=async f=>{if(f!==o.value.curPage&&(f<1&&(f=1),f>o.value.pagesCount()&&(f=o.value.pagesCount()),!e.showConfirm))return await d(f)},d=async(f,m)=>{o.value.setCurPage(f),ot.Get().p.offset=(f-1)*o.value.limit,await e.store.FTSP(),h()},u=i.computed(()=>{const f=o.value.pagesCount();return f<8?rt.GenerateNumsRange(2,f-1).filter(m=>m<f&&m>1):rt.GenerateNumsRange(o.value.curPage-2,o.value.curPage+3).filter(m=>m<f&&m>1)}),h=()=>{const f=document.querySelector(".el-table__body-wrapper"),m=document.querySelector("#list");f?f.scrollTo({top:0}):m&&m.scrollTo({top:0})};return i.onBeforeUnmount(()=>{ot.Get().p.drop()}),(f,m)=>{const y=i.resolveComponent("ArrowLeft"),w=i.resolveComponent("PButton"),S=i.resolveComponent("DoubleArrowLeft"),x=i.resolveComponent("EllipsisSvg"),C=i.resolveComponent("DoubleArrowRight"),P=i.resolveComponent("ArrowRight");return i.openBlock(),i.createElementBlock("div",zf,[i.createElementVNode("div",{class:"pag-container",style:i.normalizeStyle({justifyContent:t.justifyContent})},[i.createElementVNode("div",Tf,[i.createVNode(w,{skin:"pag",type:r(i.unref(o).curPage===1),onClick:m[0]||(m[0]=E=>c(i.unref(o).curPage-1))},{default:i.withCtx(()=>[i.createVNode(y)]),_:1},8,["type"]),i.createElementVNode("ul",Of,[i.createElementVNode("li",null,[i.createVNode(w,{skin:"pag",type:n(i.unref(o).curPage===1),text:"1",onClick:m[1]||(m[1]=E=>c(1))},null,8,["type"])]),i.unref(o).pagesCount()>8&&i.unref(o).curPage>4?(i.openBlock(),i.createElementBlock("li",{key:0,onMouseenter:m[3]||(m[3]=E=>s.value=!0),onMouseleave:m[4]||(m[4]=E=>s.value=!1)},[i.createVNode(w,{skin:"pag",type:"neutral",onClick:m[2]||(m[2]=E=>c(i.unref(o).curPage-5))},{default:i.withCtx(()=>[i.unref(s)?(i.openBlock(),i.createBlock(S,{key:0})):(i.openBlock(),i.createBlock(x,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),E=>(i.openBlock(),i.createElementBlock("li",{key:E},[i.createVNode(w,{skin:"pag",type:n(E===i.unref(o).curPage),text:E,onClick:I=>c(E)},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:m[6]||(m[6]=E=>a.value=!0),onMouseleave:m[7]||(m[7]=E=>a.value=!1)},[i.createVNode(w,{skin:"pag",type:"neutral",onClick:m[5]||(m[5]=E=>c(i.unref(o).curPage+5))},{default:i.withCtx(()=>[i.unref(a)?(i.openBlock(),i.createBlock(C,{key:0})):(i.openBlock(),i.createBlock(x,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),i.unref(o).pagesCount()>1?(i.openBlock(),i.createElementBlock("li",Vf,[i.createVNode(w,{skin:"pag",type:n(i.unref(o).pagesCount()===i.unref(o).curPage),text:i.unref(o).pagesCount(),onClick:m[8]||(m[8]=E=>c(i.unref(o).pagesCount()))},null,8,["type","text"])])):i.createCommentVNode("",!0)]),i.createVNode(w,{skin:"pag",type:r(i.unref(o).curPage===i.unref(o).pagesCount()),onClick:m[9]||(m[9]=E=>c(i.unref(o).curPage+1))},{default:i.withCtx(()=>[i.createVNode(P)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-57f15ca8"]]),Df=v(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,o=i.ref(n.modelValue),s=i.ref();let a=rr.SearchModel();i.watch(()=>n.focus,()=>{n.focus&&setTimeout(()=>{s.value.focus(),o.value=""},500)});const c=async h=>{if(h.length<2)return;s.value.activated=!0,a=rr.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 Qo.Search.Search(a),a.searchObjects},d=async h=>{r("select",h),o.value=""},u=h=>{r("input",h),h.length===0&&r("input","")};return(h,f)=>(i.openBlock(),i.createBlock(ys,{ref_key:"searchForm",ref:s,modelValue:i.unref(o),"onUpdate:modelValue":f[0]||(f[0]=m=>i.isRef(o)?o.value=m:null),"max-height-result-list":t.maxHeightResultList,"z-index-result-list":t.zIndexResultList,"box-shadow-result-list":t.boxShadowResultList,width:t.width,"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:t.placeholder,"search-func":c,"trigger-on-focus":t.showSuggestions,suggestions:i.unref(a).searchObjects,onSelect:d,onInput:u},null,8,["modelValue","max-height-result-list","z-index-result-list","box-shadow-result-list","width","placeholder","trigger-on-focus","suggestions"]))}}),[["__scopeId","data-v-af0b4b1a"]]),Lf={class:"mainblock-body"},Hf={class:"mainblock-footer"},qf=v(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",Lf,[i.renderSlot(e.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",Hf,[i.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),_f={class:"right-slider-content"},Uf={class:"right-slider-content-header"},jf={class:"right-slider-content-box"},Wf={class:"right-slider-button"},Gf=v(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,o=i.ref(!1);i.watch(()=>n.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,c)=>{const d=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",{class:"right-slider",style:i.normalizeStyle({marginRight:i.unref(o)?`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`:"0",width:t.sliderOnWidth})},[i.createElementVNode("div",{class:"click-line",onClick:c[0]||(c[0]=u=>s(!i.unref(o)))},[i.unref(o)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),i.createElementVNode("div",_f,[i.createElementVNode("div",Uf,[i.renderSlot(a.$slots,"header",{},void 0,!0)]),i.createElementVNode("div",jf,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",Wf,[i.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),Zf={class:"mainblock"},Xf={class:"body-block"},Qf={class:"tab-block"},Yf=v(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,o=i.ref(!1),s=i.ref(window.matchMedia("(max-width: 768px)").matches),a=d=>{r("toggle",d)},c=i.ref(!1);return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(n.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").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}),o.value=!0}),(d,u)=>(i.openBlock(),i.createElementBlock("div",Zf,[i.createElementVNode("div",{class:"slider-block",style:i.normalizeStyle({marginRight:i.unref(s)?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=>c.value=!0),onMouseleave:u[2]||(u[2]=h=>c.value=!1)},[i.createElementVNode("div",{class:"icon-block",style:i.normalizeStyle({transform:i.unref(c)?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(d.$slots,"icon",{},void 0,!0)],4)],36),i.createElementVNode("div",{class:"slider-info",style:i.normalizeStyle({width:`calc(${t.sliderOnWidth} - ${t.sliderOffWidth})`})},[i.renderSlot(d.$slots,"slider-body",{},void 0,!0)],4)],4),i.createElementVNode("div",Xf,[i.renderSlot(d.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",Qf,[i.renderSlot(d.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),Jf=["label","value"],Kf=v(i.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(t,{emit:e}){const n={[Ee.String]:"Текстовый ответ",[Ee.Text]:"Развёрнутый текстовый ответ",[Ee.Number]:"Числовой ответ",[Ee.Date]:"Ответ в виде даты",[Ee.Radio]:"Выбор одного из вариантов",[Ee.Set]:"Выбор нескольких вариантов",[Ee.File]:"Ответ в виде файла",[Ee.MatrixRadio]:"Матрица с одним выбором",[Ee.MatrixSet]:"Матрица с несколькими выборами"},r=e,o=s=>{r("select",s)};return(s,a)=>{const c=i.resolveComponent("PString"),d=i.resolveComponent("PSelect");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(c,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),i.createVNode(d,{"model-value":t.selectedType,placeholder:"Вид ответа",onChange:o},{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,Jf)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),em=["label","value"],tm=v(i.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=i.ref(!1),r=e,o=i.ref();i.onBeforeMount(()=>{n.value=!0,o.value=Mt.GetDefault()});const s=async c=>{o.value=c??Mt.GetDefault(),r("load")},a=async c=>{await s(c)};return(c,d)=>{var h;const u=i.resolveComponent("PSelect");return i.unref(n)?(i.openBlock(),i.createBlock(u,{key:0,modelValue:i.unref(o),"onUpdate:modelValue":d[0]||(d[0]=f=>i.isRef(o)?o.value=f:null),"popper-append-to-body":!1,clearable:!((h=i.unref(o))!=null&&h.default),"value-key":"label",onChange:a,onClear:d[1]||(d[1]=f=>a())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Mt).Get(),(f,m)=>(i.openBlock(),i.createElementBlock("option",{key:m,label:f.label,value:f},null,8,em))),128))]),_:1},8,["modelValue","clearable"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-982338b4"]]),nm=["label","value"],im=v(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=Mt.GetDefault()});const o=async a=>{a||(r.value=Mt.GetDefault()),ot.Get().setSortModel(r.value),ot.Get().p.drop(),n("load")},s=async a=>{await o(a)};return(a,c)=>{var u;const d=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(d,{modelValue:i.unref(r),"onUpdate:modelValue":c[0]||(c[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:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Mt).Get(),(h,f)=>(i.openBlock(),i.createElementBlock("option",{key:f,label:h.label,value:h},null,8,nm))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-80f413ec"]]),rm={class:"switch-container"},om={class:"line"},sm={class:"line"},am=v(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"},o=()=>n.firstModel.valueEq(u.value)?void 0:r,s=()=>u.value?r:void 0,a=()=>n.secondModel.valueEq(u.value)?void 0:r,c=f=>{var y;return{color:(y=u.value)!=null&&y.valueEq(f)?"#006bb4":"#B0A4C0"}},d=e,u=i.ref(void 0),h=async f=>{var m;(m=u.value)!=null&&m.valueEq(f)||(u.value=f,d("load"))};return(f,m)=>{const y=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",rm,[i.createElementVNode("div",om,[i.createVNode(y,{string:t.firstModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(c(t.firstModel)),onClick:m[0]||(m[0]=w=>h(t.firstModel))},null,8,["string","style"]),i.createVNode(y,{string:"Все","font-size":"12px",padding:"0",style:i.normalizeStyle(c()),onClick:m[1]||(m[1]=w=>h())},null,8,["style"]),i.createVNode(y,{string:t.secondModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(c(t.secondModel)),onClick:m[2]||(m[2]=w=>h(t.secondModel))},null,8,["string","style"])]),i.createElementVNode("div",sm,[i.createElementVNode("div",{class:i.normalizeClass(["switch-knob1",{active:t.firstModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(o()),onClick:m[3]||(m[3]=w=>h(t.firstModel))},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob2",{active:!i.unref(u)}]),style:i.normalizeStyle(s()),onClick:m[4]||(m[4]=w=>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]=w=>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"]]),lm={},cm={class:"flex"};function dm(t,e){return i.openBlock(),i.createElementBlock("div",cm,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const um=v(lm,[["render",dm],["__scopeId","data-v-5023d414"]]),hm=v(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,o=async()=>{r("submit"),n.value=!n.value};return(s,a)=>{const c=i.resolveComponent("PString"),d=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:o},{"open-inside-content":i.withCtx(()=>[i.createVNode(u,{"custom-class":"grid"},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0),i.createVNode(d,{type:"admin",color:"blue",text:"Сохранить",onClick:o})]),_:3})]),default:i.withCtx(()=>[t.content.length>0?(i.openBlock(),i.createBlock(c,{key:0,string:t.content},null,8,["string"])):(i.openBlock(),i.createBlock(c,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),fm={class:"top-slider-content"},mm={class:"center"},pm=v(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,o=i.ref(!0);i.watch(()=>n.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(d=>o.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(o)?`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`:"0",height:t.sliderOnHeight}),onClick:c[3]||(c[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:c[2]||(c[2]=d=>s(!i.unref(o)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]);function gm(t){t.component("PageNotFound",Vo),t.component("AdaptiveContainer",Wh),t.component("AdaptiveContainerHorizontal",Xh),t.component("CarouselImages",rf),t.component("ContextWindow",of),t.component("DateInputRangeV2",uf),t.component("DateInputRange",af),t.component("DropList",mf),t.component("FilterCheckbox",pf),t.component("FiltersButtonsSelect",gf),t.component("FilterSelect",wf),t.component("FTSPPanel",bf),t.component("GeneralItem",Cf),t.component("GridContainer",ps),t.component("InfoItem",Ef),t.component("InfoItemSelectButtons",xf),t.component("LeftRightContainer",Bf),t.component("PAutocomplete",ys),t.component("PhoneForm",If),t.component("PLoader",Nf),t.component("PPagination",Ff),t.component("RemoteSearch",Df),t.component("ResearcheContainer",qf),t.component("RightSliderContainer",Gf),t.component("RightTabsContainer",Yf),t.component("SelectValueType",Kf),t.component("SortList",tm),t.component("SortSelect",im),t.component("Switch3Pos",am),t.component("ThemeWrapper",um),t.component("ToggleInfoItem",hm),t.component("TopSliderContainer",pm)}const ym=v(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),wm=v(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),bm=v(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"]]),Cm=v(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"]]),ws=v(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"]]),Sm=v(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"]]),km=v(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"]]),Em=v(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"]]),xm=v(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"]]),vm=v(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"]]),Mm=v(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),Bm=v(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),Rm=v(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),$m=v(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),Im=v(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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 Am(t){t.component("IconDownload",ym),t.component("IconFilter",wm),t.component("ArrowLeft",Mm),t.component("ArrowRight",Bm),t.component("DoubleArrowLeft",Rm),t.component("DoubleArrowRight",$m),t.component("EllipsisSvg",Im),t.component("IconArrowLeft",bm),t.component("IconCheckDefault",Cm),t.component("IconClose",ws),t.component("IconEdit",Sm),t.component("IconEmail",km),t.component("IconMove",Em),t.component("IconPhone",xm),t.component("IconSearch",gs),t.component("IconSelectArrow",vm)}const Pm=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 Nm(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default",{activeIdx:t.activeIdx,changeActiveId:t.changeActiveId})])}const zm=v(Pm,[["render",Nm]]),Tm=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}}}),Om=["for"],Vm={class:"inside-icon"};function Fm(t,e,n,r,o,s){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",Vm,[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,Om),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 Dm=v(Tm,[["render",Fm],["__scopeId","data-v-c2e31ebb"]]),Lm={class:"tab"},Hm={class:"rotate"},qm=v(i.defineComponent({__name:"VerticalCollapseContainer",setup(t){const e=i.ref(!1),n=async()=>{e.value=!e.value};return(r,o)=>{const s=i.resolveComponent("ArrowRight"),a=i.resolveComponent("ArrowLeft");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",Lm,[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",Hm,[i.renderSlot(r.$slots,"inside-title",{},void 0,!0)]),i.unref(e)?(i.openBlock(),i.createBlock(s,{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(s)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),_m={class:"add-block_body"},Um=v(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",_m,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),jm=v(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"]]),Wm={class:"add-block_body"},Gm=v(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"),o=i.resolveComponent("PContainer");return i.openBlock(),i.createBlock(o,{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",Wm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),Zm={class:"del-block_title"},Xm={class:"del-block_body"},Qm=v(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",Xm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),pr=v(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,o=a=>{a.key==="Escape"&&s()};i.onMounted(()=>{document.body.addEventListener("keydown",o)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",o)});const s=()=>{n.closable&&r("close")};return(a,c)=>{const d=i.resolveComponent("IconClose");return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.show?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:s})):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:s},[i.createVNode(d,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ece06e7d"]]);function Ym(t){t.component("CollapseContainer",zm),t.component("CollapseItem",Dm),t.component("VerticalCollapseContainer",qm),t.component("PAdd",Um),t.component("PModal",pr),t.component("PContainer",jm),t.component("PContainerStickyHead",Gm),t.component("PDel",Qm)}const Jm={class:"btn-group"},bs=v(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(()=>pe.Form.GetButtons()),o=i.useTemplateRef("fields"),s=async c=>{if(!c.isSubmit){pe.Form.SetChunk(c.GetChunk()),a();return}const d=pe.Form.Validate();if(d.length>0){ht.Notify.Error(d.join("<br/>"));return}n("submit")},a=()=>{if(!o.value)return;const c=o.value[0];c&&c.$refs.input.focus()};return i.onMounted(async()=>{await a()}),i.onBeforeUnmount(()=>{pe.Form.Reset()}),(c,d)=>(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(mr,{string:i.unref(pe).Form.GetTitle(),"font-size":"18px"},null,8,["string"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(pe).Form.GetFields(),u=>(i.openBlock(),i.createBlock(ui,{id:u.id,key:u.id,ref_for:!0,ref_key:"fields",ref:o,modelValue:u.value,"onUpdate:modelValue":h=>u.value=h,autocomplete:"nope",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",Jm,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(r),(u,h)=>(i.openBlock(),i.createBlock(hr,{id:u.id,key:u.GetChunk(),disabled:i.unref(pe).Form.IsBlock,type:h===0?i.unref(Y).Success:i.unref(Y).Primary,skin:"base",text:u.text,margin:"10px 0 0 0",width:"100%",onClick:f=>s(u)},null,8,["id","disabled","type","text","onClick"]))),128))])],4))}}),[["__scopeId","data-v-b315f2c4"]]),Km=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=()=>{pe.Form.Reset(),pe.Modal.Close()};return(n,r)=>(i.openBlock(),i.createBlock(pr,{show:i.unref(pe).Modal.Visible,closable:i.unref(pe).Modal.Closable,width:t.width,padding:t.padding,onClose:e},{default:i.withCtx(()=>[i.createVNode(bs,{margin:t.margin,padding:"0",onSubmit:r[0]||(r[0]=o=>n.$emit("submit"))},null,8,["margin"])]),_:1},8,["show","closable","width","padding"]))}}),ep={class:"field"},tp=v(i.defineComponent({__name:"PNameEdit",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(!1),s=i.ref(),a=i.ref(n.withName.name),c=i.ref(!1),d=()=>{c.value=!1},u=async()=>{a.value.trim(),n.withName.setName&&n.withName.setName(a.value),o.value=!o.value,r("submit")};return(h,f)=>{const m=i.resolveComponent("PString"),y=i.resolveComponent("PInput"),w=i.resolveComponent("InfoItem"),S=i.resolveComponent("PButton"),x=i.resolveComponent("el-form");return i.openBlock(),i.createBlock(x,{ref_key:"form",ref:s,style:{width:"100%"}},{default:i.withCtx(()=>[i.createVNode(w,{title:"Название","show-save-dialog":c.value,icon:"edit-title","with-hover":!0,close:o.value,width:"100%",onKeyupEnter:u,onAfterClose:d},{"open-inside-content":i.withCtx(()=>[i.createVNode(w,{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",ep,[i.createVNode(y,{modelValue:a.value,"onUpdate:modelValue":f[0]||(f[0]=C=>a.value=C),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])])]),_:1}),i.createVNode(S,{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"]]),np=["onClick"],ip=v(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,o=i.ref(window.innerWidth),s=i.ref(),a=i.ref(Number(n.tabHeight.replace(/[^+\d]/g,""))),c=()=>{o.value=window.innerWidth,a.value=s.value?s.value.clientHeight:Number(n.tabHeight.replace(/[^+\d]/g,""))};i.onMounted(()=>window.addEventListener("resize",c)),i.onUnmounted(()=>window.removeEventListener("resize",c));const d=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:s,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,y)=>(i.openBlock(),i.createElementBlock("div",{key:y},[i.createElementVNode("div",{class:i.normalizeClass({"selected-tab":y===t.menus.idx,tab:y!==t.menus.idx}),style:i.normalizeStyle({minHeight:t.tabHeight,maxHeight:t.tabHeight}),onClick:w=>u(y)},i.toDisplayString(m.name),15,np)]))),128))],4),i.createElementVNode("div",{class:"body-container",style:i.normalizeStyle({background:t.background,height:i.unref(d)})},[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"]]),rp=["id"],op=["for"],sp={class:"left-field"},ap=["href","download"],lp={key:1,class:"text-field__input"},cp={class:"right-field"},dp=i.defineComponent({__name:"PUploaderFile",props:{fileInfo:{type:Object,required:!1,default:new ye},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,o=de.GUID(),s=de.GUID(),a=()=>{const u=document.getElementById(o);if(!u.files)return;const h=u.files[0];if(!h)return;if(!d(h.name)){Ge.Error(`Загруженный файл должен быть в одном из форматов: ${n.formats.join(", ")}`);return}const f=new ye;f.setFile(h),f.url=URL.createObjectURL(h),r("upload",f)},c=()=>{r("remove")};i.onMounted(()=>{const u=document.getElementById(s);u&&(u.onclick=()=>{var h;return(h=document.getElementById(o))==null?void 0:h.click()})});const d=u=>{let h=Do.Get(u);return!!n.formats.includes(h.toLowerCase())};return(u,h)=>{const f=i.resolveComponent("PString"),m=i.resolveComponent("PFlex"),y=i.resolveComponent("PButton");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("input",{id:i.unref(o),type:"file",hidden:"",onChange:a},null,40,rp),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,op)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",sp,[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,ap),i.createVNode(y,{skin:"text",type:"del",onClick:c},{default:i.withCtx(()=>[i.createVNode(ws,{size:"20px",margin:"0 5px"})]),_:1})],4)):(i.openBlock(),i.createElementBlock("div",lp,[i.createVNode(f,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),i.createElementVNode("div",cp,[i.createVNode(y,{id:i.unref(s),skin:"text",type:"success","data-test":"upload-btn",text:t.fileInfo&&t.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),up=v(dp,[["__scopeId","data-v-8b73ee22"]]);function Cs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cs(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hp(t,e){if(t==null)return{};var n,r,o=function(a,c){if(a==null)return{};var d,u,h={},f=Object.keys(a);for(u=0;u<f.length;u++)d=f[u],c.indexOf(d)>=0||(h[d]=a[d]);return h}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function At(t){return function(e){if(Array.isArray(e))return gr(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 gr(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 gr(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function gr(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 Ss,fp,hi,le=(Ss=function(t){/*!
22
+ `+s)}}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Et(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Kn.assertOptions(r,{silentJSONParsing:ke.transitional(ke.boolean),forcedJSONParsing:ke.transitional(ke.boolean),clarifyTimeoutError:ke.transitional(ke.boolean),legacyInterceptorReqResOrdering:ke.transitional(ke.boolean),advertiseZstdAcceptEncoding:ke.transitional(ke.boolean),validateStatusUndefinedResolves:ke.transitional(ke.boolean)},!1),o!=null&&(p.isFunction(o)?n.paramsSerializer={serialize:o}:Kn.assertOptions(o,{encode:ke.function,serialize:ke.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Kn.assertOptions(n,{baseUrl:ke.spelling("baseURL"),withXsrfToken:ke.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&p.merge(s.common,s[n.method]);s&&p.forEach(["delete","get","head","post","put","patch","query","common"],w=>{delete s[w]}),n.headers=Se.concat(a,s);const c=[];let d=!0;this.interceptors.request.forEach(function(k){if(typeof k.runWhen=="function"&&k.runWhen(n)===!1)return;d=d&&k.synchronous;const x=n.transitional||Ui;x&&x.legacyInterceptorReqResOrdering?c.unshift(k.fulfilled,k.rejected):c.push(k.fulfilled,k.rejected)});const u=[];this.interceptors.response.forEach(function(k){u.push(k.fulfilled,k.rejected)});let f,h=0,m;if(!d){const w=[No.bind(this),void 0];for(w.unshift(...c),w.push(...u),m=w.length,f=Promise.resolve(n);h<m;)f=f.then(w[h++],w[h++]);return f}m=c.length;let y=n;for(;h<m;){const w=c[h++],k=c[h++];try{y=w(y)}catch(x){k.call(this,x);break}}try{f=No.call(this,y)}catch(w){return Promise.reject(w)}for(h=0,m=u.length;h<m;)f=f.then(u[h++],u[h++]);return f}getUri(e){e=Et(this.defaults,e);const n=xo(e.baseURL,e.url,e.allowAbsoluteUrls,e);return ho(n,e.params,e.paramsSerializer)}};p.forEach(["delete","get","head","options"],function(e){Mt.prototype[e]=function(n,r){return this.request(Et(r||{},{method:e,url:n,data:r&&p.hasOwnProp(r,"data")?r.data:void 0}))}}),p.forEach(["post","put","patch","query"],function(e){function n(r){return function(s,a,c){return this.request(Et(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Mt.prototype[e]=n(),e!=="query"&&(Mt.prototype[e+"Form"]=n(!0))});let Cc=class ea{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(c=>{r.subscribe(c),s=c}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,c){r.reason||(r.reason=new mn(s,a,c),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 ea(function(o){e=o}),cancel:e}}};function Sc(t){return function(n){return t.apply(null,n)}}function kc(t){return p.isObject(t)&&t.isAxiosError===!0}const Qi={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Qi).forEach(([t,e])=>{Qi[e]=t});function To(t){const e=new Mt(t),n=Xr(Mt.prototype.request,e);return p.extend(n,Mt.prototype,e,{allOwnKeys:!0}),p.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return To(Et(t,o))},n}const oe=To(hn);oe.Axios=Mt,oe.CanceledError=mn,oe.CancelToken=Cc,oe.isCancel=wo,oe.VERSION=Gi,oe.toFormData=Zn,oe.AxiosError=v,oe.Cancel=oe.CanceledError,oe.all=function(e){return Promise.all(e)},oe.spread=Sc,oe.isAxiosError=kc,oe.mergeConfig=Et,oe.AxiosHeaders=Se,oe.formToJSON=t=>yo(p.isHTMLForm(t)?new FormData(t):t),oe.getAdapter=Po.getAdapter,oe.HttpStatusCode=Qi,oe.default=oe;const{Axios:Pg,AxiosError:Ng,CanceledError:zg,isCancel:Tg,CancelToken:Og,VERSION:Vg,all:Fg,Cancel:Dg,isAxiosError:Lg,spread:Hg,toFormData:qg,AxiosHeaders:Ug,HttpStatusCode:_g,formToJSON:jg,getAdapter:Wg,mergeConfig:Gg,create:Zg}=oe;var pn=(t=>(t.GET="get",t.POST="post",t.PUT="put",t.DELETE="delete",t))(pn||{});const gn=(()=>{function t(){const d=o();return!(!d||d==="undefined")}function e(d){d.accessToken&&localStorage.setItem("access_token",d.accessToken),d.refreshToken&&localStorage.setItem("refresh_token",d.refreshToken)}function n(){const d=localStorage.getItem("user");return d?JSON.parse(d).id:""}function r(){const d=localStorage.getItem("user");if(d)return JSON.parse(d)}function o(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}function c(d){if(!t())return;const u=gn.getUser();u&&(u.human=d,localStorage.setItem("user",JSON.stringify(u)))}return{isAuth:t,setTokens:e,getAccessToken:o,getRefreshToken:s,getUserId:n,clearTokens:a,getUser:r,updateHuman:c}})();class Yi{constructor(e){l(this,"code",400);l(this,"err","");I.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=gn.getAccessToken(),e.config.headers.token=gn.getAccessToken(),e.config.baseURL=void 0,n.request(r);if(e.response.status>=500){if(e.response.data==="неверный логин или пароль"){Ge.Error("Неверный логин или пароль");return}Ge.Error("Ошибка на сервере, попробуйте позже")}if(e.response.status>=400&&e.response.status<500){const o=new Yi(e.response.data).getErr();o&&Ge.Error(o)}return Promise.reject(e)}}}const Wt=oe.create();Wt.interceptors.response.use(t=>t,async t=>await Yi.Handle(t,Wt));class yn{static async Get(e,n,r){return await Wt({method:pn.GET,url:e,headers:n,responseType:r})}static async Post(e,n,r,o){return n["Content-Type"]="multipart/form-data",await Wt({method:pn.POST,url:e,headers:n,responseType:r,data:o})}static async Put(e,n,r){return n["Content-Type"]="multipart/form-data",await Wt({method:pn.PUT,url:e,headers:n,data:r})}static async Delete(e,n){return await Wt({method:pn.DELETE,url:e,headers:n})}}class ei{constructor(e){l(this,"name","");I.BuildClass(this,e)}static Set(){}static Get(e,n){const r=sessionStorage.getItem(e);if(r){const o=JSON.parse(r),s=new Date,a=new Date(o.time),c=s.getTime()-a.getTime();return Math.round(c/6e4)>(n||10)?null:o.data}else return null}static async TryGet(e,n,r){let o;return o=ei.Get(e,r),o||(o=await n()),o}}var Ji=(t=>(t.ContentType="Content-Type",t.Token="token",t))(Ji||{}),Oo=(t=>(t.ApplicationJson="application/json",t.MultipartFormData="multipart/form-data",t))(Oo||{});const K=class K{static Setup(e="http://localhost",n,r="api"){this.baseUrl=Z.BuildSafeUrl(e,n,r),this.host=e,this.apiVersion=r}static newWebSocket(e){const n=this.host.replace("http","ws")+"/ws/"+e;return new WebSocket(n)}static download(e,n){const r=K.getDownloadFileName(e,n.headers);if(!(n.data instanceof Blob)){console.warn("download: response data is not a Blob");return}const o=URL.createObjectURL(n.data),s=document.createElement("a");s.href=o,s.setAttribute("download",r),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click()}static getDownloadFileName(e,n){if(e)return e;const r=n["content-disposition"];if(!r)return"file";const o=r.indexOf('"')+1,s=r.lastIndexOf('"'),a=r.substring(o,s);return a||"file"}static getHeaders(e){const n=Ze.Get(Oe.AccessToken);return e||(e=K.headers),n&&(e[Ji.Token]=n),e??K.headers}static returnResponse(e,n){if(n)return e!=null&&e.isBlob?K.download(e.downloadFileName,n):n.data}static async Get(e){return K.returnResponse(e,await yn.Get(K.buildUrl((e==null?void 0:e.query)??""),K.getHeaders(e==null?void 0:e.headers),K.getResponseType(e==null?void 0:e.isBlob)))}static async Post(e){return K.returnResponse(e,await yn.Post(K.buildUrl(e==null?void 0:e.query),K.getHeaders(e==null?void 0:e.headers),K.getResponseType(e.isBlob),K.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Put(e){return K.returnResponse(e,await yn.Put(K.buildUrl(e==null?void 0:e.query),K.getHeaders(e==null?void 0:e.headers),K.createFormDataPayload(e==null?void 0:e.payload,e==null?void 0:e.fileInfos)))}static async Delete(e){return K.returnResponse(e,await yn.Delete(K.buildUrl(e==null?void 0:e.query),K.getHeaders(e==null?void 0:e.headers)))}static async Subscribe(e){const{query:n}=e;return new EventSource(K.buildUrl(n))}static buildUrl(e=""){try{return Ai(this.baseUrl,e)}catch{throw new Error(`Invalid base URL: ${this.baseUrl}`)}}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 o of n)o.file&&r.append(o.id??"files",o.file,o.originalName);return r}};l(K,"baseUrl",""),l(K,"apiVersion","api"),l(K,"host",""),l(K,"headers",{[Ji.ContentType]:Oo.ApplicationJson});let ie=K;const M=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},xc={},Ec={style:{"text-align":"center"}};function Mc(t,e){return i.openBlock(),i.createElementBlock("div",Ec,[...e[0]||(e[0]=[i.createElementVNode("h1",null,"Страница не найдена",-1)])])}const Vo=M(xc,[["render",Mc]]),Bc=[{path:"/:pathMatch(.*)*",name:"NotFound",component:Vo}],Le=class Le{static Setup(e,n=""){this.router=e,this.title=n,this.ChangeDocumentTitle(),this.AddRoutes(Bc)}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,"title",""),l(Le,"ChangeDocumentTitle",(e="")=>{let n=Le.Route().meta.title??e;n&&(n=" | "+n),document.title=Le.title+n});let Xe=Le;class ee{constructor(e,n){l(this,"items",i.reactive([]));l(this,"item");l(this,"options",i.reactive([]));l(this,"count",i.ref(0));l(this,"classConstructor");l(this,"url","");l(this,"searchStr",i.ref(""));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 GetOptions(e="name",n="id"){const r=`${this.getUrl()}/options/${e}/${n}`;try{const o=await ie.Get({query:r});o&&(this.options.splice(0,this.options.length),this.options.push(...o))}catch(o){console.warn("GetOptions failed:",o)}}async GetAll(e){try{let n;const r=ie.Get;e&&e.withCache?n=await ei.TryGet(this.getUrl(),r):n=await r({query:this.getUrl()}),Array.isArray(n)?this.SetAll(n):this.SetAllWithCount(n)}catch(n){console.warn("GetAll failed:",n)}}async Get(e){try{e||(e=Xe.Id()),this.Set(await ie.Get({query:this.getUrl(e)}))}catch(n){console.warn("Get failed:",n)}}async GetBySlug(e){try{e||(e=Xe.Slug()),this.Set(await R.H.HttpClient.Get({query:this.getUrl("by-slug/"+e)}))}catch(n){console.warn("GetBySlug failed:",n)}}async FTSP(e){var n;try{const o=((e==null?void 0:e.ftsp)??ot.Get()).clearForHTTP(),s={payload:{ftsp:o},query:this.getUrl("ftsp")},a=await ie.Post(s);if(!a||!a.ftsp)return;if(Array.isArray(a.data))this.SetAll(a.data);else{if(o.p.append){this.AppendToAll((n=a.data)==null?void 0:n.items);return}this.SetAllWithCount(a.data)}}catch(r){console.warn("FTSP failed:",r)}}async Create(e){try{const n=e??this.item,r={payload:n,query:this.getUrl()};return n.getFileInfos&&(r.fileInfos=n.getFileInfos()),await ie.Post(r)}catch(n){console.warn("Create failed:",n)}}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){try{const n=e??this.item,r={query:this.getUrl(`${n.id}`),payload:n};return n.getFileInfos&&(r.fileInfos=n.getFileInfos(),r.fileInfos.forEach(o=>o.url="")),await ie.Put(r)}catch(n){console.warn("Update failed:",n)}}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)try{await ie.Delete({query:this.getUrl(`${e}`)}),this.RemoveItem(e)}catch(n){console.warn("Remove failed:",n)}}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){this.items.splice(0,this.items.length),e&&this.items.push(...e.map(n=>new this.classConstructor(n)))}SetAllWithCount(e){this.SetAll(e.items),this.count.value=e.count}RemoveItem(e){const n=this.items.findIndex(r=>r.id===e);n<0||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(){I.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 ItemsFiltered(){return this.searchStr.value.trim()?this.Items.filter(e=>R.H.Strings.SearchInFields(this.searchStr.value,e.SearchFields())):this.Items}get Options(){return this.options}get Item(){return this.item}get Count(){return this.count}get SearchStr(){return this.searchStr}}function vc(t,e){t=="left"&&e.next(),t=="right"&&e.prev()}const Rc=["#31af5e","#ff4d3b","#006BB5","#f3911c"];class $c{static GetRandColor(e){return rt.GetRandEL(e??Rc)}}function Fo(t,e){const n=[],r=e||Ve.Asc,o=r===Ve.Asc?Ve.Desc:Ve.Asc;return Object.values(t).forEach(s=>{n.push(s(r)),n.push(s(o))}),n.length>0&&!n.some(s=>s.default)&&(n[0].default=!0),e&&n.forEach(s=>{s.default&&(s.default=s.order===e)}),n}let Ic=class{constructor(){l(this,"startHour",9);l(this,"endHour",19);l(this,"timelinePxHeight",50);l(this,"timelineStep",an.FiveMinutes);l(this,"activeTime","");l(this,"activeObjectId","");l(this,"dragged",!1);l(this,"draggedStartTime","");l(this,"draggedEndTime","");l(this,"timelines",Vn[an.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=Vn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return rt.GenerateNumsRange(this.startHour,this.endHour)}};const Ki=t=>t===8||t===46,Ac=t=>t>46&&t<58,Pc=t=>t>34&&t<41,Nc=t=>t+".",zc=(t,e,n)=>{Ki(e)||Pc(e)||(!Ac(e)||n>9)&&t.preventDefault()};function Tc(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 o=t.substring(6,10).replace(".","1");Number(o)>2100&&(o="2100"),t=n+"."+r+"."+o}return t}function Oc(t){const e=t.keyCode;let n=t.srcElement.value;const r=n.length;zc(t,e,r),!Ki(e)&&(r===2||r===5)&&(n=Nc(n));const o=t.srcElement.value+String.fromCharCode(t.which);if(Ki(e)){t.srcElement.value=n;return}n.length===0&&Number(o)>3&&(n="3",t.preventDefault()),n.length===1&&Number(o)>31&&(n="31",t.preventDefault()),o.length===5&&Number(o.substring(3,5))>12&&(n=n.substring(0,3)+"12",t.preventDefault()),n=Tc(n,r),t.srcElement.value=n}const Vc=["ВС","ПН","ВТ","СР","ЧТ","ПТ","СБ"],Fc="ru-RU";class Qe{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(Fc,r).format(new Date(e))}static FormatWithTime(e){return Qe.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?Vc[e.getDay()]:""}static GetCurrentWeekPeriod(e){const n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-n.getDay()+1),o=new Date(n.getFullYear(),n.getMonth(),r.getDate()+7);return this.GetPeriod(r,o,e||{month:"2-digit",day:"numeric",year:void 0})}static GetDurationInDay(e,n){const r=new Date,o=new Date,s=Qe.SplitHourTime(e),a=Qe.SplitHourTime(n);return r.setHours(s[0],s[1],0,0),o.setHours(a[0],a[1],0,0),(o.getTime()-r.getTime())/1e3/60}static HourTimeinMunutes(e){const n=Qe.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,o=Qe.SplitHourTime(e);r.setHours(o[0],o[1],0,0);const s=new Date(r.getTime()+n*6e4),a=s.getHours(),c=s.getMinutes();return`${a}:${c}`}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 o=e;for(;o<=n;)o=Qe.AddDays(o,1),r.push(o);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 Dc{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 Do{static Get(e){const n=e.split(".");return n[n.length-1]}}const Lc=(()=>{function t(s,a){localStorage.setItem(`${s}_favourite`,a.toString())}function e(s,a){const c=localStorage.getItem(`${s}_favourite`);return c?c.split(",").includes(a):!1}function n(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c){t(s,[a]);return}const d=c.split(",");d.push(a),t(s,d)}function r(s,a){const c=localStorage.getItem(`${s}_favourite`);if(!c)return;const d=c.split(",").filter(u=>u!==a);t(s,d)}function o(){for(const s in localStorage)s.includes("_favourite")&&localStorage.removeItem(s)}return{addToFavourite:n,removeFromFavourite:r,setFavourite:t,isFavourite:e,clearFavourite:o}})();class Hc{constructor(){l(this,"list",[]);l(this,"defaultSortModel");l(this,"changeFlag",!1)}Set(e){this.Reset(),e&&(Array.isArray(e)?this.list=e:this.list=Fo(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 Bt=new Hc;function qc(){const t=i.ref(!1),e=i.ref(!1);return{confirmLeave:t,saveButtonClick:e,beforeWindowUnload:s=>{t.value&&s.preventDefault()},formUpdated:()=>{t.value=!0},showConfirmModal:(s,a)=>{t.value&&!e.value?s():a()}}}const Uc=(()=>{const t=(s,a)=>i.onBeforeMount(async()=>{R.F.FTSP.Get().reset(),Bt.Set(a==null?void 0:a.sortsLib),await s()}),{saveButtonClick:e,showConfirmModal:n}=qc(),r=s=>sa.onBeforeRouteLeave((a,c,d)=>{n((s||o)(),d)}),o=s=>async()=>{e.value=!0;try{s&&await s()}catch{return}};return{onBeforeMount:t,onBeforeRouteLeave:r,submit:o}})();function Lo(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 er{constructor(){l(this,"items",[]);l(this,"idx",0);l(this,"key","")}preSelect(){const e=Xe.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 er;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,Xe.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 ki=class ki{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,""),o=r.length;switch(!0){case o===0:e="";break;case(o===1&&n.length===1&&r==="7"):case(o===1&&n.length===1&&r==="8"):e="+7 (";break;case o<4:e=`+7 (${r}`;break;case o<7:e=`+7 (${r.slice(0,3)}) ${r.slice(3)}`;break;case o<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(ki,"validatePhone",(e,n,r)=>{ki.getPhoneRegExp().test(n)||!n?r():r(new Error("Пожалуйста, введите корректный номер телефона"))});let tr=ki;class _c{static Count(e){const n=e.filter(s=>s.rating!==0);let r=0;n.forEach(s=>r=r+s.rating);const o=r/n.length;return isNaN(o)?0:Number((r/n.length).toFixed(2))}}class jc{static async Auth(e){e&&e()}static Dev(){}}class Wc{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",an.FiveMinutes);l(this,"timelines",Vn[an.FiveMinutes])}periodIsCorrect(e,n){return U.GtOrEq(e,this.startHM)&&U.GtOrEq(this.endHM,n)}setTimelineStep(e){this.timelineStep=e,this.setTimelines()}setTimelines(){this.timelines=Vn[this.timelineStep]}getScheduleHeight(){return this.getHourHeight()*this.getHoursArr().length}getHourHeight(){return this.timelinePxHeight*this.timelines.length}getHoursArr(){return rt.GenerateNumsRange(this.startHour,this.endHour)}timeIsFree(e,n,r,o){return o.filter(s=>s.id!==r).every(s=>!U.PeriodsIntersects(e,n,s.startTime,s.endTime))}sortByStartTime(e){e.sort((n,r)=>U.HMtoM(n.startTime)-U.HMtoM(r.startTime))}}const Gc=-68;function Zc(t,e){if(!t){document.body.scrollTo({top:0,behavior:"smooth"});return}const n=document.querySelector(t),r=e??Gc;let o=0;n&&(o=n.getBoundingClientRect().top+r+document.body.scrollTop),o&&document.body.scrollTo({top:o,behavior:"smooth"})}class Xc{static Sort(e){e.forEach((n,r)=>n.order=r)}}class ti{static Wait(e,n){return new Promise(r=>setTimeout(()=>r(n),e))}static WaitS(e,n){return ti.Wait(U.S(e),n)}static WaitM(e,n){return ti.Wait(U.M(e),n)}}function Qc(t,e){let n=!0;return t.value.validate(r=>(r||(n=!1),n)),n}const Yc=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})});let Jc=class Tr{constructor(e){l(this,"id");l(this,"message","");l(this,"userName");l(this,"createdOn",new Date);l(this,"chatId");l(this,"type","message");I.BuildClass(this,e)}static Create(e,n,r,o){const s=new Tr;return s.id=dt(),s.chatId=e,s.message=r,s.userName=o,s}static CreatePingMessage(){const e=new Tr;return e.type="ping",e.id=dt(),e}isMessage(){return this.type==="message"||this.type===""}};const Kc="";class ed{constructor(e="",n="",r="set"){l(this,"client");l(this,"endpoint","");l(this,"query","");l(this,"period",2e4);I.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(Jc.CreatePingMessage()))}setOnMessage(){this.client&&(this.client.onmessage=e=>{e.data})}buildUrl(){const e=`ws/${this.endpoint}/${this.query}`;return new URL(e,Kc.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 td=(_=class{},l(_,"Arrays",rt),l(_,"Axios",yn),l(_,"BaseStore",ee),l(_,"Cache",ei),l(_,"Classes",I),l(_,"CarouselSwipe",vc),l(_,"Color",$c),l(_,"CreateSortModels",Fo),l(_,"Cursor",Ic),l(_,"DateMask",Oc),l(_,"Dates",Qe),l(_,"Dragger",Dc),l(_,"Extension",Do),l(_,"Favourite",Lc),l(_,"Hooks",Uc),l(_,"HttpClient",ie),l(_,"Id",de),l(_,"MakeCarousel",Lo),l(_,"Period",$i),l(_,"PhoneService",tr),l(_,"Rating",_c),l(_,"Router",Xe),l(_,"RouterGuard",jc),l(_,"Scheduler",Wc),l(_,"Scroll",Zc),l(_,"Sorter",Xc),l(_,"Static",Pi),l(_,"Strings",Z),l(_,"Time",U),l(_,"Timer",ti),l(_,"Token",gn),l(_,"Menus",er),l(_,"validate",Qc),l(_,"WaitElement",Yc),l(_,"WebSocketClient",ed),_);class nd{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 Ho=new nd;var qo=(t=>(t.TableList="tableList",t.Default="",t))(qo||{}),Ye=(t=>(t.None="None",t.Next="Next",t.Prev="Prev",t))(Ye||{}),Uo=(t=>(t.Year="Год",t.Month="Месяц",t.Week="Неделя",t.Day="День",t))(Uo||{}),_o=(t=>(t.YouTube="YouTube",t.VK="VK",t.Instagram="Instagram",t.Facebook="Facebook",t))(_o||{}),nr=(t=>(t.simple="simple",t.oneToMany="oneToMany",t.manyToMany="manyToMany",t))(nr||{});const id=Object.freeze(Object.defineProperty({__proto__:null,AdminLayout:qo,Animations:Ye,CalendarScale:Uo,LocalStoreKeys:Oe,SocialTypes:_o,ValueRelation:nr},Symbol.toStringTag,{value:"Module"}));let rd=class{async Login(e=pe.Form.GetValues()){const n=await ie.Post({query:"auth/login",payload:e});if(!n)throw"Ошибка авторизации";pe.Status.SetState(n)}async LoginAs(e){await ie.Post({query:"auth/login-as",payload:{email:e}})}async Register(e=pe.Form.GetValues()){const n=await ie.Post({query:"auth/register",payload:e});if(!n)throw n}async RestorePassword(e=pe.Form.GetValues()){await ie.Post({query:"auth/restore-password",payload:e})}async PasswordChange(e=pe.Form.GetValues()){e.id=Xe.GetStringParam("userId"),await ie.Put({query:"auth/password-change",payload:e})}async RefreshToken(){await ie.Post({query:"auth/refresh-token",payload:{refreshToken:gn.getRefreshToken()}})}async CheckUuid(e){await ie.Get({query:`auth/check-uuid/${e.userId}/${e.uniqueId}`})}async ConfirmEmail(e){await ie.Get({query:`auth/confirm-email/${e}`})}async EmailIsConfirm(e){await ie.Get({query:`auth/email-is-confirm/${e}`})}};const od=new rd;var sd=Object.defineProperty,ni=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&sd(e,n,o),o};const wn=class ta{constructor(e){l(this,"id");l(this,"description","");l(this,"time","");l(this,"latitude","");l(this,"longitude","");l(this,"emails",[]);l(this,"postAddresses",[new Fn]);l(this,"phones",[]);l(this,"websites",[]);I.BuildClass(this,e)}addEmail(){const e=Ct.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 ta;return e.id=de.UUID(),e}removeEmail(e){I.RemoveFromClassById(e,this.emails)}removePhone(e){I.RemoveFromClassById(e,this.phones)}addPostAddress(){this.postAddresses.push(new Fn)}addWebsite(){this.websites.push(new Ni)}pushFirst(){this.emails.length||this.emails.push(new Ct),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}};ni([I.GetClassConstructor(Ct)],wn.prototype,"emails"),ni([I.GetClassConstructor(Fn)],wn.prototype,"postAddresses"),ni([I.GetClassConstructor(St)],wn.prototype,"phones"),ni([I.GetClassConstructor(Ni)],wn.prototype,"websites");let jo=wn,ad=class extends ee{constructor(){super(jo,"contacts")}};const ld=new ad;let cd=class extends ee{constructor(){super(Ct,"emails")}};const dd=new cd;class ir{constructor(e){l(this,"id");l(this,"ftsp");l(this,"name","");I.BuildClass(this,e)}static Create(e){const n=new ir;return n.id=de.UUID(),n.ftsp=JSON.stringify(e),n}}let ud=class extends ee{constructor(){super(ir,"ftsp-presets")}};const fd=new ud;let hd=class extends ee{constructor(){super(Wr,"humans")}};const md=new hd;let pd=class extends ee{constructor(){super(St,"phones")}};const gd=new pd;class yd{constructor(e){l(this,"id");l(this,"nameRus","");I.BuildClass(this,e)}}var wd=Object.defineProperty,bd=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&wd(e,n,o),o};class Wo{constructor(e){l(this,"id");l(this,"nameRus","");l(this,"fields",[]);I.BuildClass(this,e)}}bd([I.GetClassConstructor(yd)],Wo.prototype,"fields");let Cd=class extends ee{constructor(){super(Wo,"schemas")}};const Sd=new Cd;class Go{constructor(e){l(this,"id","");l(this,"value","");l(this,"label","");l(this,"key","");l(this,"description","");l(this,"route","");l(this,"searchElementMetas",[]);I.BuildClass(this,e)}}class kd{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");I.BuildClass(this,e)}}var xd=Object.defineProperty,Zo=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&xd(e,n,o),o};class Gt{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",[]);I.BuildClass(this,e)}}Zo([I.GetClassConstructor(Go)],Gt.prototype,"options"),Zo([I.GetClassConstructor(kd)],Gt.prototype,"searchGroupMetaColumns");class rr{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 Gt);l(this,"searchObjects",[]);l(this,"pagination",new Hn);l(this,"count",0);e&&(this.query=e.query,e.searchGroups&&(this.searchGroups=e.searchGroups.map(n=>new Gt(n))),e.searchGroup&&(this.searchGroup=new Gt(e.searchGroup)),e.options&&(this.options=e.options.map(n=>new Go(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 Gt}async reproduceFromRoute(){this.setQuery(),await this.setSearchGroup(Xe.Route().query.groupId)}setQuery(){const e=Xe.Route().query.query;e&&(this.query=e)}}let Ed=class{constructor(){l(this,"isSearchDrawerOpen",i.ref(!1));l(this,"searchModel",i.reactive(new rr));l(this,"searchGroups",i.reactive([]));l(this,"count",0)}async Search(e){const n=await ie.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 ie.Get({query:`search/main?searchModel=${e.toUrl()}`}))}async Full(e){e.options=[],e.searchGroups.forEach(r=>{r.options=[]});const n=await ie.Get({query:`search/main?searchModel=${e.toUrl()}`});return this.SetSearchModel(n),n}ToggleDrawer(e){this.isSearchDrawerOpen.value=e,this.searchModel=new rr}SetSearchModel(e){e&&(this.searchModel=new rr(e))}SetSearchGroups(){}IsSearchDrawerOpen(){return this.isSearchDrawerOpen}SearchModel(){return this.searchModel}SearchGroups(){return this.searchGroups}Count(){return this.count}};const or=new Ed;let Md=class extends ee{constructor(){super(Dn,"users-accounts")}};const Bd=new Md;var xe=(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))(xe||{});class Xo{constructor(e){l(this,"id");l(this,"name",xe.String);l(this,"valueRelation",nr.simple);I.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===xe.Radio)return"RadioProp";if(this.name===xe.Set)return"SetProp";if(this.name===xe.Number)return"NumberProp";if(this.name===xe.String)return"StringProp"}}let vd=class extends ee{constructor(){super(Xo,"value-types")}};const Rd=new vd;let Qo=(Ae=class{},l(Ae,"Auth",od),l(Ae,"Contacts",ld),l(Ae,"Emails",dd),l(Ae,"FileInfos",new ee(ye,"file-infos")),l(Ae,"FTSPPresets",fd),l(Ae,"Humans",md),l(Ae,"Phones",gd),l(Ae,"Schemas",Sd),l(Ae,"UserAccounts",Bd),l(Ae,"ValueTypes",Rd),l(Ae,"Search",or),Ae);var ut=(t=>(t.XS="xs",t.S="s",t.M="m",t.L="l",t.XL="xl",t))(ut||{});let $d=(gt=class{},l(gt,"Orders",Ve),l(gt,"Sizes",ut),l(gt,"Statuses",J),l(gt,"DataTypes",ue),l(gt,"ValueTypes",xe),l(gt,"Operators",ne),gt);class Id{constructor(){l(this,"title","");l(this,"buttons",[]);l(this,"editTitle",i.ref(!1));l(this,"showEdit",i.ref(!1))}Set(e="",n){typeof e=="function"?this.title=e():typeof e=="string"?this.title=e:this.title=e.value,this.buttons=n}}const Ad=new Id;class Pd{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 Z.SearchIn(e.name,this.filterString)||((n=e.children)==null?void 0:n.some(r=>Z.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=>Z.SearchIn(r.name,this.filterString)):e.children}}const Nd=new Pd;class zd{constructor(){l(this,"Menu",i.reactive(Nd));l(this,"Head",i.reactive(Ad))}}const Td=new zd,Yo="Да",Jo="Нет";class Od extends Dt{constructor(){super(...arguments);l(this,"confirmButtonText",Yo);l(this,"cancelButtonText",Jo);l(this,"persistent",!0);l(this,"resolve");l(this,"reject")}GetConfirmButtonText(){return this.confirmButtonText}GetCancelButtonText(){return this.cancelButtonText}Show(n){const r=typeof n=="string"?{text:n}:n;return this.confirmButtonText=r.confirmButtonText??Yo,this.cancelButtonText=r.cancelButtonText??Jo,this.persistent=r.persistent??!0,super.showMessage(r,this.type),new Promise((o,s)=>{if(this.resolve=o,this.reject=s,typeof G.Dialog.create!="function"){console.warn("[sprof] Quasar Dialog plugin is not installed. Add `app.use(Quasar, { plugins: { Dialog } })` (imported from 'quasar') to your app."),this.Settle(()=>s({type:"cancel"}));return}const a=G.Dialog.create({title:this.title||void 0,message:this.text,html:Dt.ContainsHtml(this.text),persistent:this.persistent,ok:{label:this.confirmButtonText,flat:!0,color:"primary"},cancel:{label:this.cancelButtonText,flat:!0,color:"warning"}});a.onOk(()=>this.Settle(()=>o({type:"submit"}))),a.onCancel(()=>this.Settle(()=>s({type:"cancel"}))),a.onDismiss(()=>this.Settle())})}Save(){return this.Show({text:"У вас есть несохранённые изменения",confirmButtonText:"Сохранить",cancelButtonText:"Не сохранять"})}Submit(){this.Settle(()=>{var n;return(n=this.resolve)==null?void 0:n.call(this,!0)})}Cancel(){this.Settle(()=>{var n;return(n=this.reject)==null?void 0:n.call(this)})}Settle(n){n==null||n(),this.resolve=void 0,this.reject=void 0}}const Vd=new Od;class Fd{constructor(){l(this,"visible",!1)}hide(){this.visible=!1}show(){this.hide(),this.visible=!0}IsVisible(){return this.visible}}class Dd extends Fd{Show(){super.show()}Hide(){super.hide()}}const Ld=new Dd;class ft{}l(ft,"Admin",Td),l(ft,"Dialog",Vd),l(ft,"Loading",Ld),l(ft,"Notify",Ge),l(ft,"Btn",bt),l(ft,"Input",Fr);class R{}l(R,"Auth",i.reactive(pe)),l(R,"UI",i.reactive(ft)),l(R,"Paginator",i.reactive(Ho)),l(R,"S",Qo),l(R,"H",td),l(R,"C",Ma),l(R,"T",$d),l(R,"I",id),l(R,"F",Ia);class Ko{constructor(e){l(this,"id");l(this,"name","");l(this,"address","");l(this,"number");l(this,"building");l(this,"buildingId");R.H.Classes.BuildClass(this,e),this.setName()}setName(){this.building&&(this.name=this.building.address+", вход "+this.number,this.address=this.name)}getBuildingNumber(){var e;return String((e=this.building)==null?void 0:e.number)}getEntranceNumber(){return String(this.number)}}class es{constructor(e){l(this,"id");l(this,"number");l(this,"buildingId");R.H.Classes.BuildClass(this,e)}}var Hd=Object.defineProperty,ts=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Hd(e,n,o),o};class ii{constructor(e){l(this,"id");l(this,"number","");l(this,"address","");l(this,"name","");l(this,"status","");l(this,"description","");l(this,"floors",[]);l(this,"entrances",[]);R.H.Classes.BuildClass(this,e)}}ts([R.H.Classes.GetClassConstructor(es)],ii.prototype,"floors"),ts([R.H.Classes.GetClassConstructor(Ko)],ii.prototype,"entrances");const qd=Object.freeze(Object.defineProperty({__proto__:null,Building:ii,Entrance:Ko,Floor:es},Symbol.toStringTag,{value:"Module"}));let Ud=class extends ee{constructor(){super(ii,"buildings")}};const _d=new Ud,jd=Object.freeze(Object.defineProperty({__proto__:null,C:qd,S:Object.freeze(Object.defineProperty({__proto__:null,BuildingsStore:_d},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));var Zt=(t=>(t.Ping="ping",t.Enter="enter",t.Exit="exit",t.Message="message",t.Write="write",t.Empty="",t))(Zt||{});class vt{constructor(e){l(this,"id");l(this,"userId");l(this,"chatId");l(this,"message","");l(this,"fileInfo",new R.C.FileInfo);l(this,"createdAt",new Date);l(this,"type",Zt.Message);I.BuildClass(this,e)}static Create(e,n,r){const o=new vt;return o.id=R.H.Id.UUID(),o.chatId=n,o.userId=r,o.message=e,o}static CreatePingMessage(){const e=new vt;return e.type=Zt.Ping,e.id=R.H.Id.UUID(),e}isMessage(){return this.type===Zt.Message||this.type===Zt.Empty}}var Wd=Object.defineProperty,Gd=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Wd(e,n,o),o};const ns=class na{constructor(e){l(this,"id");l(this,"name","");l(this,"createdAt",new Date);l(this,"newMesage","");l(this,"userId","");l(this,"chatMessages",[]);R.H.Classes.BuildClass(this,e)}static Create(){const e=new na;return e.id=R.H.Id.UUID(),e}addMessage(){if(this.newMesage==="")return;const e=vt.Create(this.newMesage,this.id,this.userId);return this.chatMessages.push(e),this.newMesage="",e}};Gd([R.H.Classes.GetClassConstructor(vt)],ns.prototype,"chatMessages");let is=ns;const Zd=Object.freeze(Object.defineProperty({__proto__:null,Chat:is,ChatMessage:vt},Symbol.toStringTag,{value:"Module"}));let Xd=class extends ee{constructor(){super(vt,"chat-messages")}};const Qd=new Xd;let Yd=class extends ee{constructor(){super(is,"chats")}};const Jd=new Yd,Kd=Object.freeze(Object.defineProperty({__proto__:null,C:Zd,S:Object.freeze(Object.defineProperty({__proto__:null,ChatMessages:Qd,Chats:Jd},Symbol.toStringTag,{value:"Module"})),T:(Nr=class{},l(Nr,"ChatMessage",Zt),Nr)},Symbol.toStringTag,{value:"Module"}));class rs{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new ye);R.H.Classes.BuildClass(this,e)}}class bn{constructor(e){l(this,"id");l(this,"passportId");l(this,"fileInfoId");l(this,"fileInfo",new R.C.FileInfo);l(this,"order",0);I.BuildClass(this,e)}static Create(e){const n=new bn;return n.id=R.H.Id.UUID(),n.passportId=e,n}}var eu=Object.defineProperty,tu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&eu(e,n,o),o};class sr{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",[]);I.BuildClass(this,e)}}tu([I.GetClassConstructor(bn)],sr.prototype,"passportScans");class os{constructor(e){l(this,"id");l(this,"num","");l(this,"fileInfoId");l(this,"fileInfo",new ye);R.H.Classes.BuildClass(this,e)}}const nu=Object.freeze(Object.defineProperty({__proto__:null,Inn:rs,Passport:sr,PassportScan:bn,Snils:os},Symbol.toStringTag,{value:"Module"}));let iu=class extends ee{constructor(){super(rs,"inns")}};const ru=new iu;let ou=class extends ee{constructor(){super(bn,"passport-scans")}};const su=new ou;let au=class extends ee{constructor(){super(sr,"passports")}};const lu=new au;let cu=class extends ee{constructor(){super(os,"snilss")}};const du=new cu,uu=Object.freeze(Object.defineProperty({__proto__:null,C:nu,S:Object.freeze(Object.defineProperty({__proto__:null,Inns:ru,PassportScans:su,Passports:lu,Snilss:du},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class ar{constructor(e){l(this,"id");l(this,"name","");R.H.Classes.BuildClass(this,e)}static Create(e){const n=new ar;return n.id=R.H.Id.UUID(),n.name=e,n}}const fu=Object.freeze(Object.defineProperty({__proto__:null,Extract:ar},Symbol.toStringTag,{value:"Module"})),hu=[{path:"/admin/extracts",name:"ExtractsList",component:()=>Promise.resolve().then(()=>pg)}];class Cn{constructor(e){l(this,"id");l(this,"name","");l(this,"label","");R.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new Cn;return r.id=R.H.Id.UUID(),r.name=e,r.label=n,r}}let mu=class extends ee{constructor(){super(Cn,"extracts")}};const pu=new mu,gu=Object.freeze(Object.defineProperty({__proto__:null,C:fu,R:hu,S:Object.freeze(Object.defineProperty({__proto__:null,ExtractsStore:pu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class Rt{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);R.H.Classes.BuildClass(this,e)}static Create(e){const n=new Rt;return n.id=R.H.Id.UUID(),n.fieldId=e,n}}class ss{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fieldId");R.H.Classes.BuildClass(this,e)}}class lr{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);R.H.Classes.BuildClass(this,e)}}class Xt{constructor(e){l(this,"id");l(this,"name","");l(this,"fieldId");R.H.Classes.BuildClass(this,e)}static Create(e){const n=new Xt;return n.id=R.H.Id.UUID(),n.fieldId=e,n}}var yu=Object.defineProperty,Sn=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&yu(e,n,o),o};const $t=class Bi{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 Xo);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);R.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 Bi;return n.id=R.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 Rt(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 lr(e))}addRegisterPropertyVariant(){this.fieldVariants.push(new Xt)}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=Rt.Create(this.id);return e.name="Вариант",e.order=this.answerVariants.length,this.answerVariants.push(e),e}addChild(){const e=Bi.Create();return e.parentId=this.id,e.name="Вопрос",e.order=this.children.length,this.children.push(e),e}addFieldVariant(){const e=Xt.Create(this.id);return this.fieldVariants.push(e),e}copy(){const e=new Bi(this);return e.id=R.H.Id.UUID(),e.answerVariants.forEach(n=>{n.id=R.H.Id.UUID(),n.fieldId=e.id}),e.children=e.children.map(n=>{const r=n.copy();return r.parentId=e.id,r}),e}};Sn([R.H.Classes.GetClassConstructor(Rt)],$t.prototype,"answerVariants"),Sn([R.H.Classes.GetClassConstructor(ss)],$t.prototype,"fieldExamples"),Sn([R.H.Classes.GetClassConstructor(Xt)],$t.prototype,"fieldVariants"),Sn([R.H.Classes.GetClassConstructor(lr)],$t.prototype,"fieldMeasures"),Sn([R.H.Classes.GetClassConstructor($t)],$t.prototype,"children");let ri=$t;class cr{constructor(e){l(this,"id");l(this,"answerId");l(this,"comment","");l(this,"fileInfoId");l(this,"fileInfo",new ye);R.H.Classes.BuildClass(this,e)}}class It{constructor(e){l(this,"id");l(this,"answerVariantId");l(this,"answerVariantIdY");l(this,"fieldFillId");R.H.Classes.BuildClass(this,e)}static Create(e,n){const r=new It;return r.id=dt(),r.fieldFillId=e,r.answerVariantId=n,r}static GetClassName(){return"selectedAnswerVariant"}}var wu=Object.defineProperty,as=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&wu(e,n,o),o};const dr=class Or{constructor(e){l(this,"id");l(this,"valueString");l(this,"valueOther");l(this,"valueNumber");l(this,"valueDate");l(this,"fileInfo",new ye);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",[]);R.H.Classes.BuildClass(this,e)}setFilled(e){this.filled=e}static Create(e,n){const r=new Or;return r.id=dt(),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=>Or.Create(r,n))}addFile(){const e=new cr;return e.id=dt(),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=It.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=It.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}};as([R.H.Classes.GetClassConstructor(It)],dr.prototype,"selectedAnswerVariants"),as([R.H.Classes.GetClassConstructor(cr)],dr.prototype,"answerFiles");let Qt=dr;class bu{constructor(e){l(this,"id");l(this,"fieldId");R.H.Classes.BuildClass(this,e)}static GetClassName(){return"fieldFilter"}}var Cu=Object.defineProperty,Su=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Cu(e,n,o),o};const ls=class ia{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"fields",[]);l(this,"formId");R.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 ia;return n.id=R.H.Id.UUID(),n.formId=e,n}addField(){const e=ri.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}};Su([R.H.Classes.GetClassConstructor(ri)],ls.prototype,"fields");let oi=ls;var ku=Object.defineProperty,xu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&ku(e,n,o),o};const cs=class ra{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);R.H.Classes.BuildClass(this,e)}static GetClassName(){return"Form"}static Create(){const e=new ra;return e.id=R.H.Id.UUID(),e}editRegisterGroup(e){this.isEdit=e??!this.isEdit}addFormSection(){const e=oi.Create(this.id);return this.formSections.push(e),R.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)}};xu([R.H.Classes.GetClassConstructor(oi)],cs.prototype,"formSections");let ds=cs;var Eu=Object.defineProperty,Mu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Eu(e,n,o),o};const us=class oa{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");R.H.Classes.BuildClass(this,e)}static Create(e){const n=new oa;return n.id=R.H.Id.UUID(),n.formId=e.id,n.fieldFills.push(...Qt.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 Qt;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=Qt.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 o;if(r.code){const s=(o=this.getFieldFillByFieldId(r.id))==null?void 0:o.valueNumber;n[r.code]=s}}),n}getIdWithoutDashes(){return this.id?this.id.replaceAll(/[^a-zA-Z]+/g,""):""}};Mu([R.H.Classes.GetClassConstructor(Qt)],us.prototype,"fieldFills");let fs=us;const Bu=Object.freeze(Object.defineProperty({__proto__:null,AnswerVariant:Rt,Field:ri,FieldExample:ss,FieldFill:Qt,FieldFillFile:cr,FieldFilter:bu,FieldMeasure:lr,FieldVariant:Xt,Form:ds,FormFill:fs,FormSection:oi,SelectedAnswerVariant:It},Symbol.toStringTag,{value:"Module"}));let vu=class extends ee{constructor(){super(Rt,"answer-variants")}};const Ru=new vu;let $u=class extends ee{constructor(){super(Qt,"field-fills")}};const Iu=new $u;let Au=class extends ee{constructor(){super(ri,"fields")}};const Pu=new Au;let Nu=class extends ee{constructor(){super(fs,"form-fills")}};const zu=new Nu;let Tu=class extends ee{constructor(){super(oi,"form-sections")}};const Ou=new Tu;let Vu=class extends ee{constructor(){super(ds,"forms")}};const Fu=new Vu;let Du=class extends ee{constructor(){super(It,"selected-answer-variants")}};const Lu=new Du,Hu=Object.freeze(Object.defineProperty({__proto__:null,C:Bu,S:Object.freeze(Object.defineProperty({__proto__:null,AnswerVariants:Ru,FieldFills:Iu,Fields:Pu,FormFills:zu,FormSections:Ou,Forms:Fu,SelectedAnswerVariants:Lu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class si{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 ye);l(this,"iconName","");l(this,"svgCode","");I.BuildClass(this,e)}addFile(e){this.icon.id||(this.icon.id=de.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}}var qu=Object.defineProperty,Uu=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&qu(e,n,o),o};class ur{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 ye);I.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=de.UUID()),this.icon.originalName=e.name,this.icon.file=e.raw}addSubMenu(){this.subMenus.push(new si)}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"}}Uu([I.GetClassConstructor(si)],ur.prototype,"subMenus");const _u=Object.freeze(Object.defineProperty({__proto__:null,Menu:ur,SubMenu:si},Symbol.toStringTag,{value:"Module"}));let ju=class extends R.H.BaseStore{constructor(){super(ur,"menus")}};const Wu=new ju;let Gu=class extends R.H.BaseStore{constructor(){super(si,"sub-menus")}};const Zu=new Gu,Xu=Object.freeze(Object.defineProperty({__proto__:null,C:_u,S:Object.freeze(Object.defineProperty({__proto__:null,Menus:Wu,SubMenus:Zu},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}));class ai{constructor(e){l(this,"id","");l(this,"name","");l(this,"component","");l(this,"order");l(this,"active",!1);l(this,"key",0);I.BuildClass(this,e)}static Create(e,n,r,o,s){const a=new ai;return a.id=e,a.name=n,a.component=r,a.order=o,a.active=!!s,a}}var hs=(t=>(t.User="USER",t.Admin="ADMIN",t))(hs||{});class Qu{constructor(e){l(this,"id");l(this,"name",hs.User);l(this,"label","");l(this,"startPage","");I.BuildClass(this,e)}}class fr{constructor(e){l(this,"id");l(this,"document",new ye);l(this,"documentId");l(this,"pageId");I.BuildClass(this,e)}}var Yu=Object.defineProperty,Ju=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Yu(e,n,o),o};class li{constructor(e){l(this,"id");l(this,"pageId");l(this,"fileInfoId");l(this,"fileInfo");l(this,"description");I.BuildClass(this,e)}}Ju([I.GetClassConstructor(ye)],li.prototype,"fileInfo");class ci{constructor(e){l(this,"id");l(this,"name","");l(this,"order",0);l(this,"downloadToFile",!1);l(this,"pageSectionId");l(this,"scan",new ye);l(this,"scanId");I.BuildClass(this,e)}getFileInfos(){return[this.scan]}getFileName(){return this.name?this.name:this.scan.originalName}}var Ku=Object.defineProperty,ef=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&Ku(e,n,o),o};class Yt{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",[]);I.BuildClass(this,e),this.documents=this.pageSectionDocuments,this.text=this.description.replace("<p>undefined</p>","")}addDocument(){const e=new ci;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=Z.SearchIn(this.name,e),r=Z.SearchIn(this.description,e),o=this.getDocuments(e);return n||r||o.length>0}getDocuments(e){return this.pageSectionDocuments.filter(n=>Z.SearchIn(n.name,e))}getDescription(e){return e?Z.WrapSubStr(this.description,e):this.description}filter(e){if(!e){this.text=this.description,this.documents=this.pageSectionDocuments;return}this.text=Z.SearchIn(this.description,e)?Z.WrapSubStr(this.description,e):"",this.documents=this.pageSectionDocuments.filter(n=>Z.SearchIn(n.name,e))}}ef([I.GetClassConstructor(ci)],Yt.prototype,"pageSectionDocuments");var tf=Object.defineProperty,nf=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&tf(e,n,o),o};class ht{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","");I.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 Yt;e.order=this.pageSections.length+1,e.name=`Новой раздел ${e.order}`,e.id=de.UUID(),this.pageSections.push(e)}infoExists(e){const n=Z.SearchIn(this.name,e),r=Z.SearchIn(this.description,e),o=this.getPageSections(e).length>0;return n||r||o}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=Z.SearchIn(this.description,e)?Z.WrapSubStr(this.description,e):""):(this.sections=this.pageSections,this.text=this.description),this.sections.forEach(n=>n.filter(e))}}nf([I.GetClassConstructor(Yt)],ht.prototype,"pageSections");var rf=Object.defineProperty,di=(t,e,n,r)=>{for(var o=void 0,s=t.length-1,a;s>=0;s--)(a=t[s])&&(o=a(e,n,o)||o);return o&&rf(e,n,o),o};class Jt{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 jo);l(this,"contactId");l(this,"role",new Qu);l(this,"roleId");l(this,"filterStr","");l(this,"activeMenuId","");I.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 ht;return e.order=this.pageSideMenus.length+1,e.name=`Новое меню ${e.order}`,e.id=de.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 ht}addCustomSectionsToSideMenu(e){e.forEach(n=>{const r=new ht;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 ht;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"}}di([I.GetClassConstructor(li)],Jt.prototype,"pageImages"),di([I.GetClassConstructor(ht)],Jt.prototype,"pageSideMenus"),di([I.GetClassConstructor(Yt)],Jt.prototype,"pageSections"),di([I.GetClassConstructor(fr)],Jt.prototype,"pageDocuments");const of=Object.freeze(Object.defineProperty({__proto__:null,CustomSection:ai,Page:Jt,PageDocument:fr,PageImage:li,PageSection:Yt,PageSectionDocument:ci,PageSideMenu:ht},Symbol.toStringTag,{value:"Module"}));let sf=class extends R.H.BaseStore{constructor(){super(ai,"custom-sections")}};const af=new sf;let lf=class extends R.H.BaseStore{constructor(){super(fr,"page-documents")}};const cf=new lf;let df=class extends R.H.BaseStore{constructor(){super(li,"page-images")}};const uf=new df;let ff=class extends R.H.BaseStore{constructor(){super(ci,"page-section-documents")}};const hf=new ff;let mf=class extends R.H.BaseStore{constructor(){super(Yt,"page-sections")}};const pf=new mf;let gf=class extends R.H.BaseStore{constructor(){super(ht,"page-side-menus")}};const yf=new gf;let wf=class extends R.H.BaseStore{constructor(){super(Jt,"pages")}};const bf=new wf,Cf=Object.freeze(Object.defineProperty({__proto__:null,C:of,S:Object.freeze(Object.defineProperty({__proto__:null,CustomSections:af,PageDocuments:cf,PageImages:uf,PageSectionDocuments:hf,PageSections:pf,PageSideMenus:yf,Pages:bf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),Sf=Object.freeze(Object.defineProperty({__proto__:null,ColorTheme:Cn},Symbol.toStringTag,{value:"Module"}));let kf=class extends ee{constructor(){super(Cn,"color-themes")}};const xf=new kf,Ef=Object.freeze(Object.defineProperty({__proto__:null,Buildings:jd,Chats:Kd,Docs:uu,Extracts:gu,Forms:Hu,Menus:Xu,Pages:Cf,Settings:Object.freeze(Object.defineProperty({__proto__:null,C:Sf,S:Object.freeze(Object.defineProperty({__proto__:null,ColorThemes:xf},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"}))},Symbol.toStringTag,{value:"Module"})),ms=i.defineComponent({inheritAttrs:!1,__name:"PBadge",props:{label:{type:[String,Number],default:void 0},color:{type:String,default:""},textColor:{type:String,default:""},outline:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},floating:{type:Boolean,default:!1},multiLine:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1}},setup(t){const e=i.useAttrs(),n=i.computed(()=>{const r={};for(const o of Object.keys(e))["label","color","text-color","outline","rounded","floating","multi-line","transparent"].includes(o)||(r[o]=e[o]);return r});return(r,o)=>(i.openBlock(),i.createBlock(i.unref(G.QBadge),i.mergeProps(i.unref(n),{label:t.label||void 0,color:t.color||void 0,"text-color":t.textColor||void 0,outline:t.outline,rounded:t.rounded,floating:t.floating,"multi-line":t.multiLine,transparent:t.transparent}),{default:i.withCtx(()=>[i.renderSlot(r.$slots,"default")]),_:3},16,["label","color","text-color","outline","rounded","floating","multi-line","transparent"]))}}),ui=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:ut.M,required:!1},type:{type:String,default:J.Primary,required:!1},fontSize:{type:String,default:"",required:!1},disabled:{type:Boolean,default:!1,required:!1}},setup(t){const e=t,n=i.useAttrs(),r=i.computed(()=>{const C={};for(const A of Object.keys(n))["disable","color","size","flat","outline","unelevated","type"].includes(A)||(C[A]=n[A]);return C}),o=["submit","button","reset"],s=i.computed(()=>o.includes(e.type)),a=i.computed(()=>s.value?e.type:void 0),c=i.computed(()=>s.value?J.Primary:e.type),d=i.computed(()=>{const C={};return e.margin&&(C.margin=e.margin),e.padding&&(C.padding=e.padding),e.width&&(C.maxWidth=e.width,C.minWidth=e.width),e.height&&(C.minHeight=e.height,C.maxHeight=e.height),e.fontSize&&(C.fontSize=e.fontSize),C}),u={[J.Primary]:"primary",[J.Success]:"positive",[J.Warning]:"warning",[J.Error]:"negative",[J.Info]:"info"},f=i.computed(()=>n.color!==void 0?n.color:u[c.value]??"primary"),h={[ut.XS]:"xs",[ut.S]:"sm",[ut.M]:"md",[ut.L]:"lg",[ut.XL]:"xl"},m=i.computed(()=>n.size!==void 0?n.size:["xs","sm","md","lg","xl"].includes(e.size)?e.size:h[e.size]??"md"),y=i.computed(()=>n.flat!==void 0?n.flat:["text","pag","text_ano"].includes(e.skin)),w=i.computed(()=>n.outline!==void 0?n.outline:e.skin==="invert"),k=i.computed(()=>n.unelevated!==void 0?n.unelevated:e.skin==="base"),x=i.computed(()=>n.disable??e.disabled);return(C,A)=>(i.openBlock(),i.createBlock(i.unref(G.QBtn),i.mergeProps(i.unref(r),{style:i.unref(d),color:i.unref(f),size:i.unref(m),flat:i.unref(y),outline:i.unref(w),unelevated:i.unref(k),disable:i.unref(x),type:i.unref(a),"no-wrap":""}),{default:i.withCtx(()=>[i.renderSlot(C.$slots,"default"),i.createTextVNode(" "+i.toDisplayString(t.text),1)]),_:3},16,["style","color","size","flat","outline","unelevated","disable","type"]))}}),ps=i.defineComponent({inheritAttrs:!1,__name:"PCheckBox",props:i.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:""},value:{type:[String,Boolean],default:void 0},size:{type:String,default:"md"},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,o=i.useAttrs(),s=i.computed(()=>{const c={};for(const d of Object.keys(o))c[d]=o[d];return c}),a=()=>{r("change",n.value)};return(c,d)=>(i.openBlock(),i.createElementBlock("div",{class:"p-checkbox",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createVNode(i.unref(G.QCheckbox),i.mergeProps({modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=u=>n.value=u)},i.unref(s),{label:t.label||void 0,size:t.size,style:{fontSize:t.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),gs=i.defineComponent({inheritAttrs:!1,__name:"PChip",props:{label:{type:String,default:""},color:{type:String,default:""},textColor:{type:String,default:""},outline:{type:Boolean,default:!1},square:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},removable:{type:Boolean,default:!1}},emits:["remove","update:model-value","update:selected"],setup(t,{emit:e}){const n=e,r=i.useAttrs(),o=i.computed(()=>{const s={};for(const a of Object.keys(r))["label","color","text-color","outline","square","dense","removable"].includes(a)||(s[a]=r[a]);return s});return(s,a)=>(i.openBlock(),i.createBlock(i.unref(G.QChip),i.mergeProps(i.unref(o),{label:t.label||void 0,color:t.color||void 0,"text-color":t.textColor||void 0,outline:t.outline,square:t.square,dense:t.dense,removable:t.removable,onRemove:a[0]||(a[0]=c=>n("remove"))}),i.createSlots({default:i.withCtx(()=>[i.renderSlot(s.$slots,"default")]),_:2},[s.$slots.avatar?{name:"avatar",fn:i.withCtx(()=>[i.renderSlot(s.$slots,"avatar")]),key:"0"}:void 0,s.$slots.remove?{name:"remove",fn:i.withCtx(()=>[i.renderSlot(s.$slots,"remove")]),key:"1"}:void 0]),1040,["label","color","text-color","outline","square","dense","removable"]))}}),Mf=i.defineComponent({inheritAttrs:!1,__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"),o=i.useAttrs(),s=i.computed(()=>typeof o.id=="string"?o.id:void 0),a=t,c=f=>{const h=f==null||f===""?null:new Date(String(f));h?(r.value=h,n("input",d(r.value))):(r.value=null,n("input",null))},d=f=>f?new Date(f.getTime()-f.getTimezoneOffset()*60*1e3).toISOString().split("T")[0]:"",u=i.computed(()=>{const f={};return a.margin&&(f.margin=a.margin),a.padding&&(f.padding=a.padding),f});return(f,h)=>(i.openBlock(),i.createBlock(i.unref(G.QInput),{for:i.unref(s),max:"2100",min:"1900","model-value":d(r.value),label:t.label||void 0,class:"p-datepicker",type:"date",name:t.label,style:i.normalizeStyle(i.unref(u)),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":c},{before:i.withCtx(()=>[i.renderSlot(f.$slots,"default")]),append:i.withCtx(()=>[i.renderSlot(f.$slots,"right")]),_:3},8,["for","model-value","label","name","style"]))}}),ys=i.defineComponent({inheritAttrs:!1,__name:"PDialog",props:i.mergeModels({persistent:{type:Boolean,default:!1},maximized:{type:Boolean,default:!1},transitionShow:{type:String,default:"fade"},transitionHide:{type:String,default:"fade"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=i.useAttrs(),r=i.computed(()=>{const o={};for(const s of Object.keys(n))["persistent","maximized","transition-show","transition-hide"].includes(s)||(o[s]=n[s]);return o});return(o,s)=>(i.openBlock(),i.createBlock(i.unref(G.QDialog),i.mergeProps({modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=a=>e.value=a)},i.unref(r),{persistent:t.persistent,maximized:t.maximized,"transition-show":t.transitionShow,"transition-hide":t.transitionHide}),i.createSlots({default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:2},[o.$slots.title?{name:"title",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"title")]),key:"0"}:void 0,o.$slots.header?{name:"header",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"header")]),key:"1"}:void 0,o.$slots.body?{name:"body",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"body")]),key:"2"}:void 0,o.$slots.footer?{name:"footer",fn:i.withCtx(()=>[i.renderSlot(o.$slots,"footer")]),key:"3"}:void 0]),1040,["modelValue","persistent","maximized","transition-show","transition-hide"]))}}),Bf=M(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 flex",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-71357bc9"]]),fi=M(i.defineComponent({inheritAttrs:!1,__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},width:{type:String,required:!1,default:""},mask:{type:String,required:!1,default:void 0},borderColor:{type:String,default:"",required:!1},color:{type:String,default:"",required:!1},rules:{type:Array,required:!1,default:void 0}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input","focus","clear"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const r=n,o=i.useModel(t,"modelValue"),s=i.useAttrs(),a=i.computed(()=>typeof s.id=="string"?s.id:void 0),c=i.computed(()=>{const w={};for(const k of Object.keys(s))k!=="id"&&k!=="disable"&&(w[k]=s[k]);return w}),d=t,u=i.computed(()=>s.disable??d.disabled),f=i.ref(null);function h(){var w;(w=f.value)==null||w.focus()}e({focus:h});const m=()=>{r("input",o.value)},y=i.computed(()=>{const w={};return d.margin&&(w.margin=d.margin),d.padding&&(w.padding=d.padding),d.width&&(w.width=d.width),d.borderColor&&(w["--p-border-color"]=d.borderColor),w});return(w,k)=>(i.openBlock(),i.createBlock(i.unref(G.QInput),i.mergeProps({ref_key:"input",ref:f,modelValue:o.value,"onUpdate:modelValue":k[0]||(k[0]=x=>o.value=x)},i.unref(c),{for:i.unref(a),label:t.label||void 0,mask:t.mask,disable:i.unref(u),rules:t.rules,"input-style":{color:t.color||void 0},style:i.unref(y),class:"p-input",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":m,onBlur:k[1]||(k[1]=x=>w.$emit("blur",o.value)),onFocus:k[2]||(k[2]=x=>w.$emit("focus",o.value)),onClear:k[3]||(k[3]=x=>w.$emit("clear"))}),i.createSlots({before:i.withCtx(()=>[i.renderSlot(w.$slots,"before",{},()=>[i.renderSlot(w.$slots,"default",{},void 0,!0)],!0)]),append:i.withCtx(()=>[i.renderSlot(w.$slots,"append",{},()=>[i.renderSlot(w.$slots,"right",{},void 0,!0)],!0)]),_:2},[w.$slots.prepend?{name:"prepend",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"prepend",{},void 0,!0)]),key:"0"}:void 0,w.$slots.after?{name:"after",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"after",{},void 0,!0)]),key:"1"}:void 0,w.$slots.label?{name:"label",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"label",{},void 0,!0)]),key:"2"}:void 0,w.$slots.error?{name:"error",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"error",{},void 0,!0)]),key:"3"}:void 0,w.$slots.hint?{name:"hint",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"hint",{},void 0,!0)]),key:"4"}:void 0,w.$slots.counter?{name:"counter",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"counter",{},void 0,!0)]),key:"5"}:void 0,w.$slots.loading?{name:"loading",fn:i.withCtx(()=>[i.renderSlot(w.$slots,"loading",{},void 0,!0)]),key:"6"}:void 0]),1040,["modelValue","for","label","mask","disable","rules","input-style","style"]))}}),[["__scopeId","data-v-c4acf8be"]]),vf=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"),o=Qe.Format(r.value),s=i.ref(o),a=d=>{if(!c(d))return;const u=Qe.FromRuStr(d);r.value=u,n("beforeChange",u),n("change",u)},c=d=>d.length!=10?(s.value=o,Ge.Error("Неверный формат даты"),!1):Number(s.value.slice(0,2))>31?(s.value=o,Ge.Error("Неверный день месяца"),!1):Number(s.value.slice(3,5))>12?(s.value=o,Ge.Error("Неверный месяц"),!1):Number(s.value.slice(6,10))>2100?(s.value=o,Ge.Error("Неверный год"),!1):!0;return(d,u)=>{const f=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock("div",{class:"style-container",style:i.normalizeStyle({width:t.width,position:"relative"})},[i.createVNode(f,{modelValue:i.unref(s),"onUpdate:modelValue":u[0]||(u[0]=h=>i.isRef(s)?s.value=h:null),mask:"##.##.####",placeholder:t.placeholder,margin:t.margin,label:t.label,onBlur:a,onKeydown:i.withKeys(i.withModifiers(h=>{},["prevent"]),["enter"])},null,8,["modelValue","placeholder","margin","label","onKeydown"])],4)}}}),Rf=M(i.defineComponent({__name:"IconMinus",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":"#minus"},null,-1)])],6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"minus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[i.createElementVNode("path",{d:"M19.4995 13.8856H5.53125V11.8926H19.4995V13.8856Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-582bd65a"]]),$f=M(i.defineComponent({__name:"IconPlus",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":"#plus"},null,-1)])],6)),n[1]||(n[1]=i.createElementVNode("svg",{width:"0",height:"0",class:"hidden"},[i.createElementVNode("symbol",{id:"plus",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 25"},[i.createElementVNode("path",{d:"M11.3263 19.8672V13.8881H5.33984V11.8951H11.3263V5.91602H13.3217V11.8951H19.3081V13.8881H13.3217V19.8672H11.3263Z",fill:"currentColor"})])],-1))],64))}}),[["__scopeId","data-v-1f1f064c"]]),If=i.defineComponent({inheritAttrs:!1,__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:"",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=i.useAttrs(),o=i.computed(()=>typeof r.id=="string"?r.id:void 0),s=i.computed(()=>{const O={};for(const q of Object.keys(r))q!=="id"&&(O[q]=r[q]);return O}),a=t,c=()=>{const O=a.step.toString();return O.includes(".")?O.split(".")[1].length:0},d=c(),u=i.useModel(t,"modelValue"),h=(O=>Math.min(Math.max(O,a.min),a.max))(u.value);h!==u.value&&(u.value=h);const m=i.ref(h.toFixed(c())),y=i.computed(()=>{const O={};return a.margin&&(O.margin=a.margin),a.padding&&(O.padding=a.padding),O}),w=O=>{const q=Math.pow(10,d);return Math.round(O*q)/q},k=(O,...q)=>{u.value=w(O),m.value=w(O).toFixed(c()),q.forEach(Me=>n(Me,u.value))},x=(O,...q)=>{a.disabled||O>a.max||O<a.min||k(O,...q)},C=()=>x(+m.value+a.step,"change"),A=()=>x(+m.value-a.step,"change"),E=O=>x(Number(O),"input"),z=()=>x(+m.value,"change","blur");return(O,q)=>(i.openBlock(),i.createBlock(i.unref(G.QInput),i.mergeProps(i.unref(s),{for:i.unref(o),"model-value":i.unref(m),label:t.label||void 0,class:"p-input-number",type:"number",disable:t.disabled,"input-style":{color:t.disabled?"#828587":t.color,textAlign:"center"},style:i.unref(y),outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":E,onBlur:z}),{before:i.withCtx(()=>[i.createVNode(i.unref(G.QBtn),{class:"number-minus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:A},{default:i.withCtx(()=>[i.createVNode(Rf)]),_:1})]),append:i.withCtx(()=>[i.createVNode(i.unref(G.QBtn),{class:"number-plus",flat:"",dense:"",round:"",style:{width:"32px",height:"32px"},onClick:C},{default:i.withCtx(()=>[i.createVNode($f)]),_:1})]),_:1},16,["for","model-value","label","disable","input-style","style"]))}}),Af=M(If,[["__scopeId","data-v-6f4093e8"]]),Pf=M(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,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,c)=>{const d=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(o)?"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.createVNode(i.unref(G.QBtn),{class:"click-line",flat:"","no-caps":"",style:i.normalizeStyle({width:t.widthClosed,minWidth:t.widthClosed,height:t.height,borderRadius:"0"}),onClick:c[0]||(c[0]=u=>s(!i.unref(o)))},{default:i.withCtx(()=>[i.unref(o)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"])],4)],64)}}}),[["__scopeId","data-v-31292b0b"]]),Nf=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.createBlock(i.unref(G.QList),{tag:"ul",style:i.normalizeStyle({margin:t.margin,padding:t.padding,width:t.width})},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["style"]))}}),zf=i.defineComponent({__name:"PListItem",props:{margin:{type:String,required:!1,default:""},padding:{type:String,required:!1,default:""},showDivider:{type:Boolean,required:!1,default:!1},background:{type:String,required:!1,default:""}},setup(t){return(e,n)=>(i.openBlock(),i.createBlock(i.unref(G.QItem),{tag:"li",style:i.normalizeStyle({margin:t.margin,padding:t.padding,borderBottom:t.showDivider?"1px solid":"none",background:t.background})},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default")]),_:3},8,["style"]))}}),Tf=i.defineComponent({__name:"PRadio",props:i.mergeModels({label:{type:String,default:""},name:{type:String,default:"group"},fontSize:{type:String,default:""},size:{type:String,default:"md"},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,o=t,s=()=>{r("change",o.value)};return(a,c)=>(i.openBlock(),i.createElementBlock("div",{class:"p-radio",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createVNode(i.unref(G.QRadio),{modelValue:n.value,"onUpdate:modelValue":[c[0]||(c[0]=d=>n.value=d),s],val:t.value,name:t.name,label:t.label||void 0,size:t.size,style:i.normalizeStyle({fontSize:t.fontSize})},null,8,["modelValue","val","name","label","size","style"])],4))}}),Of=M(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,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,c)=>{const d=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(o)?"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.createVNode(i.unref(G.QBtn),{class:"click-line",flat:"","no-caps":"",style:i.normalizeStyle({width:t.widthClosed,minWidth:t.widthClosed,height:t.height,borderRadius:"0"}),onClick:c[0]||(c[0]=u=>s(!i.unref(o)))},{default:i.withCtx(()=>[i.unref(o)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleOpen,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleClose,"font-size":"16px",padding:"0",color:"inherit"},null,8,["string"]))]),_:1},8,["style"]),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-8ab50ea6"]]),hr=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:""},options:{type:Array,required:!1,default:()=>[]}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["change","clear"],["update:modelValue"]),setup(t,{emit:e}){const n=i.useModel(t,"modelValue"),r=e,o=i.useAttrs(),s=i.computed(()=>typeof o.id=="string"?o.id:void 0),a=i.computed(()=>{const m={};for(const y of Object.keys(o))y!=="id"&&y!=="disable"&&(m[y]=o[y]);return m}),c=t,d=i.computed(()=>o.disable??c.disabled),u=m=>{r("change",m)},f=()=>{r("clear",void 0)},h=i.computed(()=>{const m={};return c.margin&&(m.margin=c.margin),c.padding&&(m.padding=c.padding),c.width&&(m.width=c.width),c.inPadding&&(m.padding=c.inPadding),m});return(m,y)=>(i.openBlock(),i.createBlock(i.unref(G.QSelect),i.mergeProps({modelValue:n.value,"onUpdate:modelValue":y[0]||(y[0]=w=>n.value=w)},i.unref(a),{for:i.unref(s),options:t.options,label:t.label||void 0,placeholder:t.placeholder,clearable:t.clearable,disable:i.unref(d),readonly:t.readonly,"input-style":{color:t.color||void 0},style:i.unref(h),class:"p-select",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":u,onClear:f}),i.createSlots({before:i.withCtx(()=>[i.renderSlot(m.$slots,"before",{},()=>[i.renderSlot(m.$slots,"left")])]),append:i.withCtx(()=>[i.renderSlot(m.$slots,"append",{},()=>[i.renderSlot(m.$slots,"right")])]),_:2},[m.$slots.prepend?{name:"prepend",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"prepend")]),key:"0"}:void 0,m.$slots.after?{name:"after",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"after")]),key:"1"}:void 0,m.$slots.default?{name:"default",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"default")]),key:"2"}:void 0,m.$slots.label?{name:"label",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"label")]),key:"3"}:void 0,m.$slots.error?{name:"error",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"error")]),key:"4"}:void 0,m.$slots.hint?{name:"hint",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"hint")]),key:"5"}:void 0,m.$slots.counter?{name:"counter",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"counter")]),key:"6"}:void 0,m.$slots.loading?{name:"loading",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"loading")]),key:"7"}:void 0,m.$slots.selected?{name:"selected",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"selected")]),key:"8"}:void 0,m.$slots.option?{name:"option",fn:i.withCtx(w=>[i.renderSlot(m.$slots,"option",i.normalizeProps(i.guardReactiveProps(w)))]),key:"9"}:void 0,m.$slots["no-option"]?{name:"no-option",fn:i.withCtx(w=>[i.renderSlot(m.$slots,"no-option",i.normalizeProps(i.guardReactiveProps(w)))]),key:"10"}:void 0,m.$slots["before-options"]?{name:"before-options",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"before-options")]),key:"11"}:void 0,m.$slots["after-options"]?{name:"after-options",fn:i.withCtx(()=>[i.renderSlot(m.$slots,"after-options")]),key:"12"}:void 0,m.$slots["selected-item"]?{name:"selected-item",fn:i.withCtx(w=>[i.renderSlot(m.$slots,"selected-item",i.normalizeProps(i.guardReactiveProps(w)))]),key:"13"}:void 0]),1040,["modelValue","for","options","label","placeholder","clearable","disable","readonly","input-style","style"]))}}),Vf=M(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:"rgba(0, 0, 0, 0.12)"}},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-4748d546"]]),Ff=["innerHTML"],Df={key:1},mr=M(i.defineComponent({__name:"PString",props:{string:{type:String,required:!1,default:""},color:{type:String,required:!1,default:""},fontSize:{type:String,required:!1,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||void 0,fontSize:e.fontSize||void 0,fontWeight:e.fontWeight||void 0,background:e.background||void 0,padding:e.padding||void 0,width:e.width||void 0,maxWidth:e.width||void 0,minWidth:e.minWidth||void 0,margin:e.margin||void 0,justifyContent:e.justifyContent||void 0};return(r,o)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["string",t.customClass]),style:n,onClick:o[0]||(o[0]=s=>r.$emit("click"))},[i.createVNode(i.unref(G.QItemLabel),null,{default:i.withCtx(()=>[t.isHtml?(i.openBlock(),i.createElementBlock("span",{key:0,innerHTML:t.string},null,8,Ff)):(i.openBlock(),i.createElementBlock("span",Df,i.toDisplayString(t.string),1))]),_:1})],2))}}),[["__scopeId","data-v-049d3e33"]]),Lf=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))}}),Hf=M(i.defineComponent({inheritAttrs:!1,__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:"",required:!1},color:{type:String,default:"",required:!1},resize:{type:String,default:"vertical",required:!1}},{modelValue:{},modelModifiers:{}}),emits:i.mergeModels(["blur","input","focus"],["update:modelValue"]),setup(t){const e=i.useModel(t,"modelValue"),n=i.useAttrs(),r=i.computed(()=>typeof n.id=="string"?n.id:void 0),o=i.computed(()=>{const d={};for(const u of Object.keys(n))u!=="id"&&(d[u]=n[u]);return d}),s=t,a=i.computed(()=>({color:s.color||void 0,resize:s.resize})),c=i.computed(()=>{const d={};return s.margin&&(d.margin=s.margin),s.padding&&(d.padding=s.padding),s.borderColor&&(d["--p-border-color"]=s.borderColor),d});return(d,u)=>(i.openBlock(),i.createBlock(i.unref(G.QInput),i.mergeProps({modelValue:e.value,"onUpdate:modelValue":u[0]||(u[0]=f=>e.value=f)},i.unref(o),{for:i.unref(r),label:t.label||void 0,mask:t.mask,type:"textarea","input-style":i.unref(a),style:i.unref(c),class:"p-textarea",outlined:"",dense:"","hide-bottom-space":"","onUpdate:modelValue":u[1]||(u[1]=f=>d.$emit("input",e.value)),onBlur:u[2]||(u[2]=f=>d.$emit("blur",e.value)),onFocus:u[3]||(u[3]=f=>d.$emit("focus",e.value))}),{before:i.withCtx(()=>[i.renderSlot(d.$slots,"default",{},void 0,!0)]),append:i.withCtx(()=>[i.renderSlot(d.$slots,"right",{},void 0,!0)]),_:3},16,["modelValue","for","label","mask","input-style","style"]))}}),[["__scopeId","data-v-8e01fef2"]]),ws=i.defineComponent({inheritAttrs:!1,__name:"PToggle",props:i.mergeModels({label:{type:String,default:""},fontSize:{type:String,default:""},size:{type:String,default:"md"},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,o=i.useAttrs(),s=i.computed(()=>{const c={};for(const d of Object.keys(o))c[d]=o[d];return c}),a=()=>{r("change",n.value)};return(c,d)=>(i.openBlock(),i.createElementBlock("div",{class:"p-toggle",style:i.normalizeStyle({padding:t.padding,margin:t.margin,maxWidth:t.width})},[i.createVNode(i.unref(G.QToggle),i.mergeProps({modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=u=>n.value=u)},i.unref(s),{label:t.label||void 0,size:t.size,style:{fontSize:t.fontSize},"onUpdate:modelValue":a}),null,16,["modelValue","label","size","style"])],4))}}),qf={class:"tooltip-wrapper"},Uf=M(i.defineComponent({__name:"PTooltip",props:{tooltipText:{type:String,default:"Подсказка",required:!1},timeout:{type:Number,default:500,required:!1},typeStyle:{type:String,default:"primary",required:!1},height:{type:String,default:"16px",required:!1},relPosition:{type:String,default:"right",required:!1},level:{type:String,default:"top",required:!1}},setup(t){const e=t,n={primary:"var(--q-primary)",success:"var(--q-positive)",warning:"var(--q-warning)",danger:"var(--q-negative)",neutral:"var(--q-dark)"},r=i.computed(()=>{const a=e.relPosition==="left"?"right":"left";return`${e.level==="top"?"top":"bottom"} ${a}`}),o=i.computed(()=>{const a=e.relPosition==="left"?"right":"left";return`${e.level==="top"?"bottom":"top"} ${a}`}),s=i.computed(()=>({background:n[e.typeStyle],whiteSpace:"pre",height:e.height,borderRadius:"2px",display:"flex",justifyContent:"center",alignItems:"center"}));return(a,c)=>(i.openBlock(),i.createElementBlock("div",qf,[i.renderSlot(a.$slots,"default",{},void 0,!0),i.createVNode(i.unref(G.QTooltip),{delay:t.timeout,anchor:i.unref(r),self:i.unref(o),class:"tooltip-box",style:i.normalizeStyle(i.unref(s))},{default:i.withCtx(()=>[i.createVNode(mr,{string:t.tooltipText,padding:"0 3px",height:t.height},null,8,["string","height"])]),_:1},8,["delay","anchor","self","style"])]))}}),[["__scopeId","data-v-f131379d"]]),_f={class:"top-slider-content"},jf={class:"center"},Wf=M(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,o=i.ref(n.open);i.watch(()=>n.open,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("open",a)};return(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(d=>o.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(o)?"0":`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`,height:t.sliderOnHeight}),onClick:c[3]||(c[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",_f,[i.createElementVNode("div",jf,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createVNode(i.unref(G.QBtn),{class:"click-line",flat:"","no-caps":"",style:i.normalizeStyle({height:t.sliderOffHeight,minHeight:t.sliderOffHeight,borderRadius:"0"}),onClick:c[2]||(c[2]=d=>s(!i.unref(o)))},{default:i.withCtx(()=>[i.renderSlot(a.$slots,"title",{},void 0,!0)]),_:3},8,["style"])],4)],64))}}),[["__scopeId","data-v-88b1978e"]]);function Gf(t){t.component("PButton",ui),t.component("PBadge",ms),t.component("PCheckBox",ps),t.component("PChip",gs),t.component("PDatePicker",Mf),t.component("PDialog",ys),t.component("PFlex",Bf),t.component("PInput",fi),t.component("PInputDate",vf),t.component("PInputNumber",Af),t.component("PLeftSlider",Pf),t.component("PList",Nf),t.component("PListItem",zf),t.component("PRadio",Tf),t.component("PRightSlider",Of),t.component("PSelect",hr),t.component("PSticky",Vf),t.component("PString",mr),t.component("PTextarea",Hf),t.component("PTopSlider",Wf),t.component("PTable",Lf),t.component("PToggle",ws),t.component("PTooltip",Uf)}const Zf={key:0,class:"mainblock"},Xf={class:"mainblock-right"},Qf={class:"body"},Yf=M(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),o=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").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}),n.value=!0}),(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.renderSlot(a.$slots,"main",{},void 0,!0),i.unref(n)?(i.openBlock(),i.createElementBlock("div",Zf,[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,maxWidth:i.unref(o)?"100%":t.menuWidth,marginLeft:i.unref(o)?"-110%":"0",position:i.unref(o)?"fixed":"relative",top:i.unref(o)?"140px":""})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(o)?"auto":t.menuWidth,boxShadow:i.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:!i.unref(r)&&i.unref(o)?"110%":"0",borderTopLeftRadius:i.unref(o)?"0":"",borderBottomLeftRadius:i.unref(o)?"0":""}),onClick:c[0]||(c[0]=d=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Xf,[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(o)?"flex":"none"}),onClick:c[1]||(c[1]=d=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4)):i.createCommentVNode("",!0),i.createElementVNode("div",Qf,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])])):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-52b3d807"]]),Jf={class:"mainblock-right"},Kf={class:"body"},eh=M(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),o=i.ref(window.matchMedia("(max-width: 1330px)").matches),s=()=>{r.value=!r.value};return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(e.mobileWidth){case"1330px":return o.value=window.matchMedia("(max-width: 1330px)").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}),n.value=!0}),(a,c)=>(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(o)?"block":"flex"})},[i.createElementVNode("div",{class:"mainblock-left",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,display:t.leftWidth!=="0px"?"flex":"none",top:i.unref(o)?"58px":"80px"})},[i.createElementVNode("div",{class:"left-menu",style:i.normalizeStyle({minWidth:i.unref(o)?"100%":t.menuWidth,boxShadow:i.unref(o)?"0 0px 10px 0px rgba(0 0 0 / 20%)":"",marginLeft:(!i.unref(r)&&i.unref(o),"0"),overflowX:i.unref(o)?"scroll":"hidden",display:i.unref(o)?"flex":"block",background:i.unref(o)?"#ffffff":"",overflowY:i.unref(o)?"hidden":"auto"}),onClick:c[0]||(c[0]=d=>s())},[i.renderSlot(a.$slots,"menu",{},void 0,!0)],4)],4),i.createElementVNode("div",Jf,[i.createElementVNode("div",{class:"title",style:i.normalizeStyle({position:t.titleSticky?"sticky":"relative",top:t.titleSticky?i.unref(o)?"108px":"58px":"0",zIndex:t.titleSticky?"10":""})},[i.createElementVNode("div",{class:"icon",style:i.normalizeStyle({display:i.unref(o)?"flex":"none"}),onClick:c[1]||(c[1]=d=>s())},[i.renderSlot(a.$slots,"icon",{},void 0,!0)],4),i.renderSlot(a.$slots,"title",{},void 0,!0)],4),i.createElementVNode("div",Kf,[i.renderSlot(a.$slots,"body",{},void 0,!0)])])],4)):i.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-a7d519dd"]]),bs=M(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,v52bd0ff4:t.background,v1795aeac:t.gridGap,v0cfa7c52:t.gridTemplateColumns,v0c6d2a1f: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"]]),th={class:"container"},nh={class:"slide-box"},ih={class:"image"},rh={class:"image-box"},oh=["id","src","alt"],sh={class:"link-number"},ah=["id","onClick"],lh=M(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(y=>({v582c9d05:n}));const e=t,n=`${e.animationTime}ms`,r=i.ref(e.startActiveGroupIndex),o=i.ref(Ye.None),s=i.ref(Lo(e.events,e.quantity)),a=i.computed(()=>s.value[r.value]);i.onMounted(()=>{});const c=()=>r.value=r.value+1<s.value.length?r.value+1:0,d=()=>r.value=r.value-1<0?s.value.length-1:r.value-1,u=y=>{o.value=y,setTimeout(()=>o.value=Ye.None,e.animationTime)},f=y=>{y!=r.value&&(u(y<r.value?Ye.Prev:Ye.Next),setTimeout(()=>r.value=y,e.animationTime/2))},h=()=>{u(Ye.Next),setTimeout(c,e.animationTime/2)},m=()=>{u(Ye.Prev),setTimeout(d,e.animationTime/2)};return(y,w)=>(i.openBlock(),i.createElementBlock("div",{class:"field",style:i.normalizeStyle({height:t.height,maxHeight:t.maxHeight})},[i.createElementVNode("div",th,[(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:w[0]||(w[0]=i.withModifiers(k=>m(),["stop"]))},[...w[3]||(w[3]=[i.createElementVNode("use",{"xlink:href":"#arrow-prev"},null,-1)])])),i.createElementVNode("div",nh,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(a),(k,x)=>(i.openBlock(),i.createElementBlock("div",{key:x,class:i.normalizeClass({animationnext:i.unref(o)===i.unref(Ye).Next,animationprev:i.unref(o)===i.unref(Ye).Prev})},[i.createElementVNode("div",ih,[i.createElementVNode("div",rh,[i.createElementVNode("img",{id:k.fileInfo.getImageUrl(),style:i.normalizeStyle({height:`calc(${t.height} - 110px)`,maxHeight:`calc(${t.maxHeight} - 110px)`}),src:k.fileInfo.getImageUrl(),alt:k.fileInfo.originalName,onClick:w[1]||(w[1]=C=>y.showImageInFullScreen())},null,12,oh)])])],2))),128))]),(i.openBlock(),i.createElementBlock("svg",{class:"icon-arrow",onClick:w[2]||(w[2]=i.withModifiers(k=>h(),["stop"]))},[...w[4]||(w[4]=[i.createElementVNode("use",{"xlink:href":"#arrow-next"},null,-1)])]))]),i.createElementVNode("div",sh,[i.createVNode(bs,{"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(s),(k,x)=>(i.openBlock(),i.createElementBlock("div",{id:x.toString(),key:x,class:"number",style:i.normalizeStyle({background:x.toString()===i.unref(r).toString()?"#9D9D9D":""}),onClick:i.withModifiers(C=>f(x),["stop"])},i.toDisplayString(x+1),13,ah))),128))]),_:1})])],4))}}),[["__scopeId","data-v-c5b846b9"]]),ch=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,o=i.ref(n.x),s=i.ref(n.y),a=i.computed(()=>o.value+"px"),c=i.computed(()=>s.value+"px"),d=()=>{r("close")};return(u,f)=>{const h=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(c)})},[i.renderSlot(u.$slots,"default")],4)),[[h,d]])}}}),dh={class:"date-range"},uh=M(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||(o.value=void 0),n.end||(s.value=void 0)});const o=i.ref(n.start),s=i.ref(n.end),a=d=>{o.value=d,!(!n.end||d>n.end)&&(r("update:start",d),r("setStart",d))},c=d=>{s.value=d,!(!n.start||d<n.start)&&(r("update:end",d),r("setEnd",d))};return(d,u)=>{const f=i.resolveComponent("PInputDate");return i.openBlock(),i.createElementBlock("div",dh,[i.createVNode(f,{"model-value":i.unref(o),"onUpdate:modelValue":u[0]||(u[0]=h=>i.isRef(o)?o.value=h:null),onChange:a},null,8,["model-value"]),u[2]||(u[2]=i.createTextVNode(" - ",-1)),i.createVNode(f,{"model-value":i.unref(s),"onUpdate:modelValue":u[1]||(u[1]=h=>i.isRef(s)?s.value=h:null),onChange:c},null,8,["model-value"])])}}}),[["__scopeId","data-v-b93b6d46"]]),fh=i.defineComponent({name:"DateInputRangeV2"}),hh={class:"date-range"};function mh(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",hh,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const ph=M(fh,[["render",mh],["__scopeId","data-v-d28c6f33"]]),gh={class:"drop-item"},yh={key:0,class:"drop-item-list"},wh=M(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(o,s)=>{const a=i.resolveComponent("PString"),c=i.resolveComponent("IconArrowDrop");return i.openBlock(),i.createElementBlock("div",gh,[i.createElementVNode("div",{class:"drop-item-name",onClick:s[0]||(s[0]=d=>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(c,{size:"10px",margin:"0"})],4)]),i.unref(n)?(i.openBlock(),i.createElementBlock("div",yh,[i.renderSlot(o.$slots,"default",{},void 0,!0)])):i.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-97057f9c"]]),bh=M(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),o=e,s=()=>{n.model.setBoolean(r.value),r.value?R.F.FTSP.Get().setF(n.model):R.F.FTSP.Get().removeF(n.model),o("load")};return(a,c)=>{const d=i.resolveComponent("PCheckBox");return i.openBlock(),i.createBlock(d,{modelValue:i.unref(r),"onUpdate:modelValue":c[0]||(c[0]=u=>i.isRef(r)?r.value=u:null),label:t.model.label,size:"mini",onChange:s},null,8,["modelValue","label"])}}}),[["__scopeId","data-v-72984c94"]]),Ch=M(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),o=async a=>{ot.Get().replaceF(a,r.value),r.value=a,ot.Get().p.drop()},s=async a=>{await o(a),n("load")};return(a,c)=>{const d=i.resolveComponent("PString"),u=i.resolveComponent("PButton"),f=i.resolveComponent("GridContainer"),h=i.resolveComponent("InfoItem");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(d,{string:t.defaultLabel,"font-size":"14px",padding:"0",margin:"20px 0 0 10px"},null,8,["string"]),i.createVNode(h,{margin:"5px 0 0 0px","with-open-window":!1,height:"auto",background:"#F5F5F5","border-color":"#C4C4C4",padding:"7px","with-hover":!1},{title:i.withCtx(()=>[...c[0]||(c[0]=[])]),default:i.withCtx(()=>[i.createVNode(f,{"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,y)=>(i.openBlock(),i.createBlock(u,{key:y,color:"blue",height:"auto",text:m.label,"is-toggle":m.valueEq(i.unref(r)),"toggle-mode":!0,inverse:t.inverse,onClick:w=>s(m.valueEq(i.unref(r))?void 0:m)},null,8,["text","is-toggle","inverse","onClick"]))),128))]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-586481ea"]]),Sh=["value","label"],kh=M(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=ot.Get(),o=i.ref(void 0),s=async c=>{r.replaceF(c,o.value),o.value=c},a=async c=>{c?await s(o.value):await s(void 0),n("load")};return(c,d)=>{const u=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(u,{modelValue:i.unref(o),"onUpdate:modelValue":d[0]||(d[0]=f=>i.isRef(o)?o.value=f:null),clearable:i.unref(o),placeholder:t.defaultLabel,onChange:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.models,(f,h)=>(i.openBlock(),i.createElementBlock("option",{key:h,value:f,label:f.label},null,8,Sh))),128))]),_:1},8,["modelValue","clearable","placeholder"])}}}),[["__scopeId","data-v-ae66df57"]]),xh=M(i.defineComponent({__name:"FTSPPanel",setup(t){return i.onBeforeMount(async()=>{}),(e,n)=>(i.openBlock(),i.createElementBlock("div"))}}),[["__scopeId","data-v-e280d85b"]]),Eh=M(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),Mh={key:0,class:"blur"},Bh={style:{display:"flex","justify-content":"center"}},vh=M(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,o=n.customClass!==""?n.customClass:"inside-class",s=i.ref(!1),a=i.ref(!1),c=i.ref(!1),d=i.ref(n.close);i.watch(()=>n.close,()=>{a.value=!1});const u=z=>{z.stopPropagation(),z.key==="Escape"&&(n.showSaveDialog?c.value=!0:a.value=!1)};i.watch(a,async()=>{var z,O;await i.nextTick(),a.value?((O=(z=document.getElementById("info-item-opened-content"))==null?void 0:z.querySelector("input"))==null||O.focus(),document.body.addEventListener("keydown",u)):document.body.removeEventListener("keydown",u,!1),a.value===!1&&r("after-close")});const f=()=>{r("click"),a.value=!!n.withOpenWindow,d.value!==n.close&&(a.value=!1,d.value=!d.value)},h=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),y=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:s.value||a.value?n.colorSelected:n.borderColor,color:s.value?n.colorSelected:"#343E5C",boxShadow:s.value||a.value?`0px 0px 1px 1px ${n.colorSelected}`:"none",alignItems:m.value?"end":"center",cursor:(n.withHover,"pointer")})),w=i.computed(()=>({height:m.value?"0":"",overflow:n.closeWindowOverflow,width:n.width})),k=i.computed(()=>({height:m.value?"auto":"0"})),x=i.computed(()=>({color:s.value?n.colorSelected:"#343E5C",fill:s.value?n.colorSelected:"#343E5C",background:n.background})),C=()=>{n.showSaveDialog?c.value=!0:a.value=!1},A=async()=>{await r("keyup-enter"),n.close&&(a.value=!1),c.value=!1},E=()=>{a.value=!1,c.value=!1};return(z,O)=>{const q=i.resolveComponent("PString"),Me=i.resolveComponent("PButton"),Pt=i.resolveComponent("PModal"),Nt=i.resolveDirective("click-outside");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(a)?(i.openBlock(),i.createElementBlock("div",Mh)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"base-box",style:i.normalizeStyle(i.unref(h)),onClick:O[2]||(O[2]=i.withModifiers(Pe=>f(),["prevent","stop"]))},[i.createElementVNode("div",{class:i.normalizeClass(["body",i.unref(o)]),style:i.normalizeStyle(i.unref(y)),onMouseenter:O[0]||(O[0]=Pe=>t.withHover?s.value=!0:s.value=!1),onMouseleave:O[1]||(O[1]=Pe=>s.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(w))},[i.renderSlot(z.$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(k))},[i.renderSlot(z.$slots,"open-inside-content",{},void 0,!0)],4)),[[Nt,C,void 0,{prevent:!0}]]):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-title",style:i.normalizeStyle(i.unref(x))},[i.renderSlot(z.$slots,"title",{},()=>[i.createVNode(q,{string:t.title,"font-size":"10px",padding:"0 0 0 3px",style:i.normalizeStyle({color:i.unref(s)?"#006BB4":"#c4c4c4",transition:"0.2s"})},null,8,["string","style"])],!0)],4)],38)],4),i.createVNode(Pt,{show:i.unref(c),title:"У вас остались несохраненные изменения, вы уверены что хотите закрыть окно?"},{default:i.withCtx(()=>[i.createElementVNode("div",Bh,[i.createVNode(Me,{text:"Не сохранять",onClick:E}),i.createVNode(Me,{text:"Сохранять",onClick:A})])]),_:1},8,["show"])],64)}}}),[["__scopeId","data-v-e8e8f1a1"]]),Rh=M(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,o=s=>{n.value=!n.value,r("select",s)};return(s,a)=>{const c=i.resolveComponent("PString"),d=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,f=>(i.openBlock(),i.createBlock(d,{key:f,type:"admin",color:"blue",text:f,onClick:h=>o(f)},null,8,["text","onClick"]))),128)),i.createVNode(d,{type:"admin",color:"blue",text:"Сбросить",onClick:a[0]||(a[0]=f=>o(void 0))})]),default:i.withCtx(()=>[i.createVNode(c,{string:t.selected,"font-size":"14px",width:"100%"},null,8,["string"])]),_:1},8,["close","title"])}}}),[["__scopeId","data-v-973addd1"]]),$h={class:"mainblock"},Ih={class:"mainline"},Ah=M(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",$h,[i.createElementVNode("div",Ih,[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"]]),Cs=M(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"]]),Ph={class:"search-list"},Nh=["onClick"],Ss=M(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,o=i.ref(r.modelValue),s=i.ref([]);async function a(){n("input",o.value),await c()}async function c(){r.searchFunc&&(s.value=await r.searchFunc(o.value))}async function d(u){o.value="",n("select",u)}return(u,f)=>(i.openBlock(),i.createElementBlock("div",{class:"container",style:i.normalizeStyle({width:t.width})},[i.createVNode(fi,{modelValue:i.unref(o),"onUpdate:modelValue":f[0]||(f[0]=h=>i.isRef(o)?o.value=h:null),placeholder:"Найти",onInput:a},{right:i.withCtx(()=>[i.createVNode(Cs,{size:"24px"})]),_:1},8,["modelValue"]),i.unref(o)&&i.unref(o).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",Ph,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(s),h=>(i.openBlock(),i.createElementBlock("li",{key:h.value,onClick:m=>d(h)},i.toDisplayString(h.label),9,Nh))),128))])],4)):i.createCommentVNode("",!0)],4))}}),[["__scopeId","data-v-d02c66ef"]]),zh=M(i.defineComponent({__name:"PhoneForm",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=async()=>{};return(r,o)=>{const s=i.resolveComponent("PInput");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(s,{modelValue:e.value.number,"onUpdate:modelValue":o[0]||(o[0]=a=>e.value.number=a),onBlur:n},null,8,["modelValue"]),i.createVNode(s,{modelValue:e.value.description,"onUpdate:modelValue":o[1]||(o[1]=a=>e.value.description=a),onBlur:n},null,8,["modelValue"])],64)}}}),[["__scopeId","data-v-51bf3f08"]]),Th={};function Oh(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 Vh=M(Th,[["render",Oh],["__scopeId","data-v-0f1f2f84"]]),Fh={style:{display:"flex","justify-content":"center",width:"100%"}},Dh={class:"pag-number"},Lh={class:"pag-ul"},Hh={key:2},qh=M(i.defineComponent({__name:"PPagination",props:{showConfirm:{type:Boolean,default:!1},justifyContent:{type:String,default:"center"},store:{type:Object,required:!0}},setup(t){const e=t,n=h=>h?"active":"neutral",r=h=>h?"not-active":"neutral",o=i.ref(Ho),s=i.ref(!1),a=i.ref(!1);o.value.count=e.store.Count.value,i.watch(e.store.Count,()=>{o.value.count=e.store.Count.value});const c=async h=>{if(h!==o.value.curPage&&(h<1&&(h=1),h>o.value.pagesCount()&&(h=o.value.pagesCount()),!e.showConfirm))return await d(h)},d=async(h,m)=>{o.value.setCurPage(h),ot.Get().p.offset=(h-1)*o.value.limit,await e.store.FTSP(),f()},u=i.computed(()=>{const h=o.value.pagesCount();return h<8?rt.GenerateNumsRange(2,h-1).filter(m=>m<h&&m>1):rt.GenerateNumsRange(o.value.curPage-2,o.value.curPage+3).filter(m=>m<h&&m>1)}),f=()=>{const h=document.querySelector(".el-table__body-wrapper"),m=document.querySelector("#list");h?h.scrollTo({top:0}):m&&m.scrollTo({top:0})};return i.onBeforeUnmount(()=>{ot.Get().p.drop()}),(h,m)=>{const y=i.resolveComponent("ArrowLeft"),w=i.resolveComponent("PButton"),k=i.resolveComponent("DoubleArrowLeft"),x=i.resolveComponent("EllipsisSvg"),C=i.resolveComponent("DoubleArrowRight"),A=i.resolveComponent("ArrowRight");return i.openBlock(),i.createElementBlock("div",Fh,[i.createElementVNode("div",{class:"pag-container",style:i.normalizeStyle({justifyContent:t.justifyContent})},[i.createElementVNode("div",Dh,[i.createVNode(w,{skin:"pag",type:r(i.unref(o).curPage===1),onClick:m[0]||(m[0]=E=>c(i.unref(o).curPage-1))},{default:i.withCtx(()=>[i.createVNode(y)]),_:1},8,["type"]),i.createElementVNode("ul",Lh,[i.createElementVNode("li",null,[i.createVNode(w,{skin:"pag",type:n(i.unref(o).curPage===1),text:"1",onClick:m[1]||(m[1]=E=>c(1))},null,8,["type"])]),i.unref(o).pagesCount()>8&&i.unref(o).curPage>4?(i.openBlock(),i.createElementBlock("li",{key:0,onMouseenter:m[3]||(m[3]=E=>s.value=!0),onMouseleave:m[4]||(m[4]=E=>s.value=!1)},[i.createVNode(w,{skin:"pag",type:"neutral",onClick:m[2]||(m[2]=E=>c(i.unref(o).curPage-5))},{default:i.withCtx(()=>[i.unref(s)?(i.openBlock(),i.createBlock(k,{key:0})):(i.openBlock(),i.createBlock(x,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(u),E=>(i.openBlock(),i.createElementBlock("li",{key:E},[i.createVNode(w,{skin:"pag",type:n(E===i.unref(o).curPage),text:E,onClick:z=>c(E)},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:m[6]||(m[6]=E=>a.value=!0),onMouseleave:m[7]||(m[7]=E=>a.value=!1)},[i.createVNode(w,{skin:"pag",type:"neutral",onClick:m[5]||(m[5]=E=>c(i.unref(o).curPage+5))},{default:i.withCtx(()=>[i.unref(a)?(i.openBlock(),i.createBlock(C,{key:0})):(i.openBlock(),i.createBlock(x,{key:1}))]),_:1})],32)):i.createCommentVNode("",!0),i.unref(o).pagesCount()>1?(i.openBlock(),i.createElementBlock("li",Hh,[i.createVNode(w,{skin:"pag",type:n(i.unref(o).pagesCount()===i.unref(o).curPage),text:i.unref(o).pagesCount(),onClick:m[8]||(m[8]=E=>c(i.unref(o).pagesCount()))},null,8,["type","text"])])):i.createCommentVNode("",!0)]),i.createVNode(w,{skin:"pag",type:r(i.unref(o).curPage===i.unref(o).pagesCount()),onClick:m[9]||(m[9]=E=>c(i.unref(o).curPage+1))},{default:i.withCtx(()=>[i.createVNode(A)]),_:1},8,["type"])])],4)])}}}),[["__scopeId","data-v-57f15ca8"]]),Uh=M(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,o=i.ref(n.modelValue),s=i.ref();let a=or.SearchModel();i.watch(()=>n.focus,()=>{n.focus&&setTimeout(()=>{s.value.focus(),o.value=""},500)});const c=async f=>{if(f.length<2)return;s.value.activated=!0,a=or.SearchModel(),a.searchObjects=[],a.query=f,a.key=n.keyValue;const h=a.searchGroups.find(m=>m.key===n.keyValue);return h&&(a.searchGroup=h),await Qo.Search.Search(a),a.searchObjects},d=async f=>{r("select",f),o.value=""},u=f=>{r("input",f),f.length===0&&r("input","")};return(f,h)=>(i.openBlock(),i.createBlock(Ss,{ref_key:"searchForm",ref:s,modelValue:i.unref(o),"onUpdate:modelValue":h[0]||(h[0]=m=>i.isRef(o)?o.value=m:null),"max-height-result-list":t.maxHeightResultList,"z-index-result-list":t.zIndexResultList,"box-shadow-result-list":t.boxShadowResultList,width:t.width,"value-key":"label",style:{width:"100%","margin-right":"10px"},placeholder:t.placeholder,"search-func":c,"trigger-on-focus":t.showSuggestions,suggestions:i.unref(a).searchObjects,onSelect:d,onInput:u},null,8,["modelValue","max-height-result-list","z-index-result-list","box-shadow-result-list","width","placeholder","trigger-on-focus","suggestions"]))}}),[["__scopeId","data-v-af0b4b1a"]]),_h={class:"mainblock-body"},jh={class:"mainblock-footer"},Wh=M(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",_h,[i.renderSlot(e.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",jh,[i.renderSlot(e.$slots,"footer",{},void 0,!0)])],4))}}),[["__scopeId","data-v-367c3367"]]),Gh={class:"right-slider-content"},Zh={class:"right-slider-content-header"},Xh={class:"right-slider-content-box"},Qh={class:"right-slider-button"},Yh=M(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,o=i.ref(!1);i.watch(()=>n.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,c)=>{const d=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",{class:"right-slider",style:i.normalizeStyle({marginRight:i.unref(o)?`calc(${t.sliderOffWidth} - ${t.sliderOnWidth})`:"0",width:t.sliderOnWidth})},[i.createElementVNode("div",{class:"click-line",onClick:c[0]||(c[0]=u=>s(!i.unref(o)))},[i.unref(o)?(i.openBlock(),i.createBlock(d,{key:0,string:t.titleClose,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"])):i.createCommentVNode("",!0),i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock(d,{key:1,string:t.titleOpen,"font-size":"16px",padding:"0",color:"#343E5C"},null,8,["string"]))]),i.createElementVNode("div",Gh,[i.createElementVNode("div",Zh,[i.renderSlot(a.$slots,"header",{},void 0,!0)]),i.createElementVNode("div",Xh,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",Qh,[i.renderSlot(a.$slots,"button",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-262b1c53"]]),Jh={class:"mainblock"},Kh={class:"body-block"},em={class:"tab-block"},tm=M(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,o=i.ref(!1),s=i.ref(window.matchMedia("(max-width: 768px)").matches),a=d=>{r("toggle",d)},c=i.ref(!1);return i.onBeforeMount(async()=>{window.addEventListener("resize",()=>{switch(n.mobileWidth){case"1330px":return s.value=window.matchMedia("(max-width: 1330px)").matches;case"1215px":return s.value=window.matchMedia("(max-width: 1215px)").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}),o.value=!0}),(d,u)=>(i.openBlock(),i.createElementBlock("div",Jh,[i.createElementVNode("div",{class:"slider-block",style:i.normalizeStyle({marginRight:i.unref(s)?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]=f=>a(!t.isToggle)),onMouseenter:u[1]||(u[1]=f=>c.value=!0),onMouseleave:u[2]||(u[2]=f=>c.value=!1)},[i.createElementVNode("div",{class:"icon-block",style:i.normalizeStyle({transform:i.unref(c)?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(d.$slots,"icon",{},void 0,!0)],4)],36),i.createElementVNode("div",{class:"slider-info",style:i.normalizeStyle({width:`calc(${t.sliderOnWidth} - ${t.sliderOffWidth})`})},[i.renderSlot(d.$slots,"slider-body",{},void 0,!0)],4)],4),i.createElementVNode("div",Kh,[i.renderSlot(d.$slots,"body",{},void 0,!0)]),i.createElementVNode("div",em,[i.renderSlot(d.$slots,"tabs",{},void 0,!0)])]))}}),[["__scopeId","data-v-0cfd77ce"]]),nm=["label","value"],im=M(i.defineComponent({__name:"SelectValueType",props:{selectedType:{type:String,required:!0}},emits:["select"],setup(t,{emit:e}){const n={[xe.String]:"Текстовый ответ",[xe.Text]:"Развёрнутый текстовый ответ",[xe.Number]:"Числовой ответ",[xe.Date]:"Ответ в виде даты",[xe.Radio]:"Выбор одного из вариантов",[xe.Set]:"Выбор нескольких вариантов",[xe.File]:"Ответ в виде файла",[xe.MatrixRadio]:"Матрица с одним выбором",[xe.MatrixSet]:"Матрица с несколькими выборами"},r=e,o=s=>{r("select",s)};return(s,a)=>{const c=i.resolveComponent("PString"),d=i.resolveComponent("PSelect");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(c,{string:"Выберите вид ответа:","font-size":"14px",padding:"0","justify-content":"left",margin:"10px 0"}),i.createVNode(d,{"model-value":t.selectedType,placeholder:"Вид ответа",onChange:o},{default:i.withCtx(()=>[(i.openBlock(),i.createElementBlock(i.Fragment,null,i.renderList(n,(u,f)=>i.createElementVNode("option",{key:u,label:u,value:f},null,8,nm)),64))]),_:1},8,["model-value"])],64)}}}),[["__scopeId","data-v-36a59e2b"]]),rm=["label","value"],om=M(i.defineComponent({__name:"SortList",props:{maxWidth:{type:[Number,String],default:250}},emits:["load"],setup(t,{emit:e}){const n=i.ref(!1),r=e,o=i.ref();i.onBeforeMount(()=>{n.value=!0,o.value=Bt.GetDefault()});const s=async c=>{o.value=c??Bt.GetDefault(),r("load")},a=async c=>{await s(c)};return(c,d)=>{var f;const u=i.resolveComponent("PSelect");return i.unref(n)?(i.openBlock(),i.createBlock(u,{key:0,modelValue:i.unref(o),"onUpdate:modelValue":d[0]||(d[0]=h=>i.isRef(o)?o.value=h:null),"popper-append-to-body":!1,clearable:!((f=i.unref(o))!=null&&f.default),"value-key":"label",onChange:a,onClear:d[1]||(d[1]=h=>a())},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Bt).Get(),(h,m)=>(i.openBlock(),i.createElementBlock("option",{key:m,label:h.label,value:h},null,8,rm))),128))]),_:1},8,["modelValue","clearable"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-982338b4"]]),sm=["label","value"],am=M(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=Bt.GetDefault()});const o=async a=>{a||(r.value=Bt.GetDefault()),ot.Get().setSortModel(r.value),ot.Get().p.drop(),n("load")},s=async a=>{await o(a)};return(a,c)=>{var u;const d=i.resolveComponent("PSelect");return i.openBlock(),i.createBlock(d,{modelValue:i.unref(r),"onUpdate:modelValue":c[0]||(c[0]=f=>i.isRef(r)?r.value=f:null),"popper-append-to-body":!1,clearable:!((u=i.unref(r))!=null&&u.default),"value-key":"label",onChange:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(Bt).Get(),(f,h)=>(i.openBlock(),i.createElementBlock("option",{key:h,label:f.label,value:f},null,8,sm))),128))]),_:1},8,["modelValue","clearable"])}}}),[["__scopeId","data-v-80f413ec"]]),lm={class:"switch-container"},cm={class:"line"},dm={class:"line"},um=M(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"},o=()=>n.firstModel.valueEq(u.value)?void 0:r,s=()=>u.value?r:void 0,a=()=>n.secondModel.valueEq(u.value)?void 0:r,c=h=>{var y;return{color:(y=u.value)!=null&&y.valueEq(h)?"#006bb4":"#B0A4C0"}},d=e,u=i.ref(void 0),f=async h=>{var m;(m=u.value)!=null&&m.valueEq(h)||(u.value=h,d("load"))};return(h,m)=>{const y=i.resolveComponent("PString");return i.openBlock(),i.createElementBlock("div",lm,[i.createElementVNode("div",cm,[i.createVNode(y,{string:t.firstModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(c(t.firstModel)),onClick:m[0]||(m[0]=w=>f(t.firstModel))},null,8,["string","style"]),i.createVNode(y,{string:"Все","font-size":"12px",padding:"0",style:i.normalizeStyle(c()),onClick:m[1]||(m[1]=w=>f())},null,8,["style"]),i.createVNode(y,{string:t.secondModel.label,"font-size":"12px",padding:"0",style:i.normalizeStyle(c(t.secondModel)),onClick:m[2]||(m[2]=w=>f(t.secondModel))},null,8,["string","style"])]),i.createElementVNode("div",dm,[i.createElementVNode("div",{class:i.normalizeClass(["switch-knob1",{active:t.firstModel.valueEq(i.unref(u))}]),style:i.normalizeStyle(o()),onClick:m[3]||(m[3]=w=>f(t.firstModel))},null,6),i.createElementVNode("div",{class:i.normalizeClass(["switch-knob2",{active:!i.unref(u)}]),style:i.normalizeStyle(s()),onClick:m[4]||(m[4]=w=>f())},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]=w=>f(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"]]),fm={},hm={class:"flex"};function mm(t,e){return i.openBlock(),i.createElementBlock("div",hm,[i.renderSlot(t.$slots,"default",{},void 0,!0)])}const pm=M(fm,[["render",mm],["__scopeId","data-v-5023d414"]]),gm=M(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,o=async()=>{r("submit"),n.value=!n.value};return(s,a)=>{const c=i.resolveComponent("PString"),d=i.resolveComponent("PButton"),u=i.resolveComponent("GridContainer"),f=i.resolveComponent("InfoItem");return i.openBlock(),i.createBlock(f,{title:t.title,icon:"edit-title","with-hover":!0,close:i.unref(n),width:"100%",onKeyupEnter:o},{"open-inside-content":i.withCtx(()=>[i.createVNode(u,{"custom-class":"grid"},{default:i.withCtx(()=>[i.renderSlot(s.$slots,"default",{},void 0,!0),i.createVNode(d,{type:"admin",color:"blue",text:"Сохранить",onClick:o})]),_:3})]),default:i.withCtx(()=>[t.content.length>0?(i.openBlock(),i.createBlock(c,{key:0,string:t.content},null,8,["string"])):(i.openBlock(),i.createBlock(c,{key:1,string:"Введите данные",color:"#B0A4C0"}))]),_:3},8,["title","close"])}}}),[["__scopeId","data-v-0794596f"]]),ym={class:"top-slider-content"},wm={class:"center"},bm=M(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,o=i.ref(!0);i.watch(()=>n.toggle,()=>{o.value=!o.value});const s=a=>{o.value=!o.value,r("toggle",a)};return(a,c)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.unref(o)?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:[c[0]||(c[0]=i.withModifiers(d=>o.value=!0,["prevent"])),c[1]||(c[1]=i.withModifiers(()=>{},["stop"]))]})),i.createElementVNode("div",{class:"top-slider",style:i.normalizeStyle({marginTop:i.unref(o)?`calc(${t.sliderOffHeight} - ${t.sliderOnHeight})`:"0",height:t.sliderOnHeight}),onClick:c[3]||(c[3]=i.withModifiers(()=>{},["stop"]))},[i.createElementVNode("div",ym,[i.createElementVNode("div",wm,[i.renderSlot(a.$slots,"default",{},void 0,!0)])]),i.createElementVNode("div",{class:"click-line",style:i.normalizeStyle({height:t.sliderOffHeight}),onClick:c[2]||(c[2]=d=>s(!i.unref(o)))},[i.renderSlot(a.$slots,"title",{},void 0,!0)],4)],4)],64))}}),[["__scopeId","data-v-683131f5"]]);function Cm(t){t.component("PageNotFound",Vo),t.component("AdaptiveContainer",Yf),t.component("AdaptiveContainerHorizontal",eh),t.component("CarouselImages",lh),t.component("ContextWindow",ch),t.component("DateInputRangeV2",ph),t.component("DateInputRange",uh),t.component("DropList",wh),t.component("FilterCheckbox",bh),t.component("FiltersButtonsSelect",Ch),t.component("FilterSelect",kh),t.component("FTSPPanel",xh),t.component("GeneralItem",Eh),t.component("GridContainer",bs),t.component("InfoItem",vh),t.component("InfoItemSelectButtons",Rh),t.component("LeftRightContainer",Ah),t.component("PAutocomplete",Ss),t.component("PhoneForm",zh),t.component("PLoader",Vh),t.component("PPagination",qh),t.component("RemoteSearch",Uh),t.component("ResearcheContainer",Wh),t.component("RightSliderContainer",Yh),t.component("RightTabsContainer",tm),t.component("SelectValueType",im),t.component("SortList",om),t.component("SortSelect",am),t.component("Switch3Pos",um),t.component("ThemeWrapper",pm),t.component("ToggleInfoItem",gm),t.component("TopSliderContainer",bm)}const Sm=M(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),km=M(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),xm=M(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"]]),Em=M(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"]]),ks=M(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"]]),Mm=M(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"]]),Bm=M(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"]]),vm=M(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"]]),Rm=M(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"]]),$m=M(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"]]),Im=M(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),Am=M(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),Pm=M(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),Nm=M(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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"]]),zm=M(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]=o=>e.value=!0),onMouseleave:r[1]||(r[1]=o=>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 Tm(t){t.component("IconDownload",Sm),t.component("IconFilter",km),t.component("ArrowLeft",Im),t.component("ArrowRight",Am),t.component("DoubleArrowLeft",Pm),t.component("DoubleArrowRight",Nm),t.component("EllipsisSvg",zm),t.component("IconArrowLeft",xm),t.component("IconCheckDefault",Em),t.component("IconClose",ks),t.component("IconEdit",Mm),t.component("IconEmail",Bm),t.component("IconMove",vm),t.component("IconPhone",Rm),t.component("IconSearch",Cs),t.component("IconSelectArrow",$m)}const Om=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 Vm(t,e,n,r,o,s){return i.openBlock(),i.createElementBlock("div",null,[i.renderSlot(t.$slots,"default",{activeIdx:t.activeIdx,changeActiveId:t.changeActiveId})])}const Fm=M(Om,[["render",Vm]]),Dm=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}}}),Lm=["for"],Hm={class:"inside-icon"};function qm(t,e,n,r,o,s){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",Hm,[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,Lm),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 Um=M(Dm,[["render",qm],["__scopeId","data-v-c2e31ebb"]]),_m={class:"tab"},jm={class:"rotate"},Wm=M(i.defineComponent({__name:"VerticalCollapseContainer",setup(t){const e=i.ref(!1),n=async()=>{e.value=!e.value};return(r,o)=>{const s=i.resolveComponent("ArrowRight"),a=i.resolveComponent("ArrowLeft");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",_m,[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",jm,[i.renderSlot(r.$slots,"inside-title",{},void 0,!0)]),i.unref(e)?(i.openBlock(),i.createBlock(s,{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(s)],64)}}}),[["__scopeId","data-v-4ccaade5"]]),Gm={class:"add-block_body"},Zm=M(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",Gm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-338720bc"]]),Xm=M(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"]]),Qm={class:"add-block_body"},Ym=M(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"),o=i.resolveComponent("PContainer");return i.openBlock(),i.createBlock(o,{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",Qm,[i.renderSlot(e.$slots,"default",{},void 0,!0)])]),_:3},8,["background","margin","padding"])}}}),[["__scopeId","data-v-9464e4a8"]]),Jm={class:"del-block_title"},Km={class:"del-block_body"},ep=M(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",Jm,[i.renderSlot(e.$slots,"title",{},void 0,!0)]),i.createElementVNode("div",Km,[i.renderSlot(e.$slots,"default",{},void 0,!0)])],4))}}),[["__scopeId","data-v-58d048aa"]]),pr=M(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,o=a=>{a.key==="Escape"&&s()};i.onMounted(()=>{document.body.addEventListener("keydown",o)}),i.onBeforeUnmount(()=>{document.body.removeEventListener("keydown",o)});const s=()=>{n.closable&&r("close")};return(a,c)=>{const d=i.resolveComponent("IconClose");return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.show?(i.openBlock(),i.createElementBlock("div",{key:0,class:"blur",onClick:s})):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:s},[i.createVNode(d,{size:"20px"})])):i.createCommentVNode("",!0),i.renderSlot(a.$slots,"default",{},void 0,!0)],4)):i.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ece06e7d"]]);function tp(t){t.component("CollapseContainer",Fm),t.component("CollapseItem",Um),t.component("VerticalCollapseContainer",Wm),t.component("PAdd",Zm),t.component("PModal",pr),t.component("PContainer",Xm),t.component("PContainerStickyHead",Ym),t.component("PDel",ep)}const np={class:"btn-group"},xs=M(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(()=>pe.Form.GetButtons()),o=i.useTemplateRef("fields"),s=async c=>{if(!c.isSubmit){pe.Form.SetChunk(c.GetChunk()),a();return}const d=pe.Form.Validate();if(d.length>0){ft.Notify.Error(d.join("<br/>"));return}n("submit")},a=()=>{if(!o.value)return;const c=o.value[0];c&&c.$refs.input.focus()};return i.onMounted(async()=>{await a()}),i.onBeforeUnmount(()=>{pe.Form.Reset()}),(c,d)=>(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(mr,{string:i.unref(pe).Form.GetTitle(),"font-size":"18px"},null,8,["string"]),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(pe).Form.GetFields(),u=>(i.openBlock(),i.createBlock(fi,{id:u.id,key:u.id,ref_for:!0,ref_key:"fields",ref:o,modelValue:u.value,"onUpdate:modelValue":f=>u.value=f,autocomplete:"nope",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",np,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(r),(u,f)=>(i.openBlock(),i.createBlock(ui,{id:u.id,key:u.GetChunk(),disabled:i.unref(pe).Form.IsBlock,type:f===0?i.unref(J).Success:i.unref(J).Primary,skin:"base",text:u.text,margin:"10px 0 0 0",width:"100%",onClick:h=>s(u)},null,8,["id","disabled","type","text","onClick"]))),128))])],4))}}),[["__scopeId","data-v-b315f2c4"]]),ip=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=()=>{pe.Form.Reset(),pe.Modal.Close()};return(n,r)=>(i.openBlock(),i.createBlock(pr,{show:i.unref(pe).Modal.Visible,closable:i.unref(pe).Modal.Closable,width:t.width,padding:t.padding,onClose:e},{default:i.withCtx(()=>[i.createVNode(xs,{margin:t.margin,padding:"0",onSubmit:r[0]||(r[0]=o=>n.$emit("submit"))},null,8,["margin"])]),_:1},8,["show","closable","width","padding"]))}}),rp={class:"field"},op=M(i.defineComponent({__name:"PNameEdit",props:{withName:{type:Object,required:!0}},emits:["submit"],setup(t,{emit:e}){const n=t,r=e,o=i.ref(!1),s=i.ref(),a=i.ref(n.withName.name),c=i.ref(!1),d=()=>{c.value=!1},u=async()=>{a.value.trim(),n.withName.setName&&n.withName.setName(a.value),o.value=!o.value,r("submit")};return(f,h)=>{const m=i.resolveComponent("PString"),y=i.resolveComponent("PInput"),w=i.resolveComponent("InfoItem"),k=i.resolveComponent("PButton"),x=i.resolveComponent("el-form");return i.openBlock(),i.createBlock(x,{ref_key:"form",ref:s,style:{width:"100%"}},{default:i.withCtx(()=>[i.createVNode(w,{title:"Название","show-save-dialog":c.value,icon:"edit-title","with-hover":!0,close:o.value,width:"100%",onKeyupEnter:u,onAfterClose:d},{"open-inside-content":i.withCtx(()=>[i.createVNode(w,{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",rp,[i.createVNode(y,{modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=C=>a.value=C),style:{width:"100%"},autosize:!0,type:"textarea"},null,8,["modelValue"])])]),_:1}),i.createVNode(k,{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"]]),sp=["onClick"],ap=M(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,o=i.ref(window.innerWidth),s=i.ref(),a=i.ref(Number(n.tabHeight.replace(/[^+\d]/g,""))),c=()=>{o.value=window.innerWidth,a.value=s.value?s.value.clientHeight:Number(n.tabHeight.replace(/[^+\d]/g,""))};i.onMounted(()=>window.addEventListener("resize",c)),i.onUnmounted(()=>window.removeEventListener("resize",c));const d=i.computed(()=>`calc(100% - ${a.value}px + 1px)`);i.onBeforeMount(()=>{n.menus.Select()});const u=f=>{n.menus.Select(f),r("select")};return(f,h)=>(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:s,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,y)=>(i.openBlock(),i.createElementBlock("div",{key:y},[i.createElementVNode("div",{class:i.normalizeClass({"selected-tab":y===t.menus.idx,tab:y!==t.menus.idx}),style:i.normalizeStyle({minHeight:t.tabHeight,maxHeight:t.tabHeight}),onClick:w=>u(y)},i.toDisplayString(m.name),15,sp)]))),128))],4),i.createElementVNode("div",{class:"body-container",style:i.normalizeStyle({background:t.background,height:i.unref(d)})},[i.renderSlot(f.$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"]]),lp=["id"],cp=["for"],dp={class:"left-field"},up=["href","download"],fp={key:1,class:"text-field__input"},hp={class:"right-field"},mp=i.defineComponent({__name:"PUploaderFile",props:{fileInfo:{type:Object,required:!1,default:new ye},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,o=de.GUID(),s=de.GUID(),a=()=>{const u=document.getElementById(o);if(!u.files)return;const f=u.files[0];if(!f)return;if(!d(f.name)){Ge.Error(`Загруженный файл должен быть в одном из форматов: ${n.formats.join(", ")}`);return}const h=new ye;h.setFile(f),h.url=URL.createObjectURL(f),r("upload",h)},c=()=>{r("remove")};i.onMounted(()=>{const u=document.getElementById(s);u&&(u.onclick=()=>{var f;return(f=document.getElementById(o))==null?void 0:f.click()})});const d=u=>{let f=Do.Get(u);return!!n.formats.includes(f.toLowerCase())};return(u,f)=>{const h=i.resolveComponent("PString"),m=i.resolveComponent("PFlex"),y=i.resolveComponent("PButton");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("input",{id:i.unref(o),type:"file",hidden:"",onChange:a},null,40,lp),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,cp)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"field",style:i.normalizeStyle({borderColor:t.borderColor})},[i.createElementVNode("div",dp,[i.createVNode(m,null,{default:i.withCtx(()=>[i.renderSlot(u.$slots,"default",{},void 0,!0),i.createVNode(h,{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,up),i.createVNode(y,{skin:"text",type:"del",onClick:c},{default:i.withCtx(()=>[i.createVNode(ks,{size:"20px",margin:"0 5px"})]),_:1})],4)):(i.openBlock(),i.createElementBlock("div",fp,[i.createVNode(h,{string:"Файл не загружен","font-size":"var(--inpur-font-size-default)",color:"var(--palette-warning)",margin:"0 10px 0 0"})])),i.createElementVNode("div",hp,[i.createVNode(y,{id:i.unref(s),skin:"text",type:"success","data-test":"upload-btn",text:t.fileInfo&&t.fileInfo.originalName?"Обновить":"Загрузить",margin:"0"},null,8,["id","text"])])],4)],4)],64)}}}),pp=M(mp,[["__scopeId","data-v-8b73ee22"]]);function Es(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function X(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Es(Object(n),!0).forEach(function(r){Fe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gp(t,e){if(t==null)return{};var n,r,o=function(a,c){if(a==null)return{};var d,u,f={},h=Object.keys(a);for(u=0;u<h.length;u++)d=h[u],c.indexOf(d)>=0||(f[d]=a[d]);return f}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(r=0;r<s.length;r++)n=s[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function At(t){return function(e){if(Array.isArray(e))return gr(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 gr(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 gr(e,n)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function gr(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 Ms,yp,hi,le=(Ms=function(t){/*!
24
24
  Copyright (c) 2018 Jed Watson.
25
25
  Licensed under the MIT License (MIT), see
26
26
  http://jedwatson.github.io/classnames
27
- */(function(){var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var s=arguments[o];if(s){var a=typeof s;if(a==="string"||a==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var c=n.apply(null,s);c&&r.push(c)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var d in s)e.call(s,d)&&s[d]&&r.push(d);else r.push(s.toString())}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},Ss(hi={path:fp,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&hi.path)}},hi.exports),hi.exports),_e=function(t){return function(e,n){if(!e)return t;var r;typeof e=="string"?r=e:n=e;var o=t;return r&&(o+="__"+r),o+(n?Object.keys(n).reduce(function(s,a){var c=n[a];return c&&(s+=" "+(typeof c=="boolean"?o+"--"+a:o+"--"+a+"_"+c)),s},""):"")}};function yr(t,e,n){var r,o,s,a,c;function d(){var h=Date.now()-a;h<e&&h>=0?r=setTimeout(d,e-h):(r=null,n||(c=t.apply(s,o),s=o=null))}e==null&&(e=100);var u=function(){s=this,o=arguments,a=Date.now();var h=n&&!r;return r||(r=setTimeout(d,e)),h&&(c=t.apply(s,o),s=o=null),c};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(c=t.apply(s,o),s=o=null,clearTimeout(r),r=null)},u}yr.debounce=yr;var wr=yr,O=function(){return O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},O.apply(this,arguments)};/*! *****************************************************************************
27
+ */(function(){var e={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var s=arguments[o];if(s){var a=typeof s;if(a==="string"||a==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var c=n.apply(null,s);c&&r.push(c)}}else if(a==="object")if(s.toString===Object.prototype.toString)for(var d in s)e.call(s,d)&&s[d]&&r.push(d);else r.push(s.toString())}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()},Ms(hi={path:yp,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&hi.path)}},hi.exports),hi.exports),Ue=function(t){return function(e,n){if(!e)return t;var r;typeof e=="string"?r=e:n=e;var o=t;return r&&(o+="__"+r),o+(n?Object.keys(n).reduce(function(s,a){var c=n[a];return c&&(s+=" "+(typeof c=="boolean"?o+"--"+a:o+"--"+a+"_"+c)),s},""):"")}};function yr(t,e,n){var r,o,s,a,c;function d(){var f=Date.now()-a;f<e&&f>=0?r=setTimeout(d,e-f):(r=null,n||(c=t.apply(s,o),s=o=null))}e==null&&(e=100);var u=function(){s=this,o=arguments,a=Date.now();var f=n&&!r;return r||(r=setTimeout(d,e)),f&&(c=t.apply(s,o),s=o=null),c};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(c=t.apply(s,o),s=o=null,clearTimeout(r),r=null)},u}yr.debounce=yr;var wr=yr,V=function(){return V=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},V.apply(this,arguments)};/*! *****************************************************************************
28
28
  Copyright (c) Microsoft Corporation.
29
29
 
30
30
  Permission to use, copy, modify, and/or distribute this software for any
@@ -37,5 +37,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
37
37
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
38
38
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39
39
  PERFORMANCE OF THIS SOFTWARE.
40
- ***************************************************************************** */function ks(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 Es(t){return/^blob:/.test(t)}function xs(t){return Es(t)||function(e){return/^data:/.test(e)}(t)}function Kt(t){return!!(t&&t.constructor&&t.call&&t.apply)}function he(t){return t===void 0}function fi(t){return typeof t=="object"&&t!==null}function br(t,e,n){var r={};return fi(t)?(Object.keys(e).forEach(function(o){he(t[o])?r[o]=e[o]:fi(e[o])?fi(t[o])?r[o]=br(t[o],e[o],n[o]):r[o]=t[o]?e[o]:n[o]:e[o]===!0||e[o]===!1?r[o]=!!t[o]:r[o]=t[o]}),r):t?e:n}function mi(t){var e=Number(t);return Number.isNaN(e)?t:e}function vs(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!Ms(t)}function Ms(t){return t!=t}function Bs(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var kn=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},mp=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},Cr=function(t){this.type="move",this.directions=t},pp=function(){function t(e,n,r,o,s){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=o,this.element=n,this.anchor=s}return t.prototype.shift=function(){var e=this,n=e.element,r=e.anchor,o=e.position;if(n){var s=n.getBoundingClientRect(),a=s.left,c=s.top;return{left:o.left-a-r.left,top:o.top-c-r.top}}return{left:0,top:0}},t}(),Sr={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=At(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,o=e.bottom,s=e.top;this.anchor={left:t.clientX-n,top:t.clientY-s,bottom:o-t.clientY,right:r-t.clientX}},processMove:function(t,e){var n=At(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var r=this.$refs.draggable;this.$emit("drag",new pp(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"]};Sr.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"draggable",class:n.classname,onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onMouseover:e[3]||(e[3]=function(){return s.onMouseOver&&s.onMouseOver.apply(s,arguments)}),onMouseleave:e[4]||(e[4]=function(){return s.onMouseLeave&&s.onMouseLeave.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],34)};var kr=_e("vue-handler-wrapper"),Rs={name:"HandlerWrapper",components:{DraggableElement:Sr},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=ks(this.horizontalPosition,this.verticalPosition);t=kr((Fe(e={},n.classname,!0),Fe(e,"disabled",this.disabled),e))}else t=kr({disabled:this.disabled});return{root:t,draggable:kr("draggable")}}},emits:["leave","enter","drag","drag-end"]};Rs.render=function(t,e,n,r,o,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock("div",{class:s.classes.root},[i.createVNode(a,{class:s.classes.draggable,onDrag:e[1]||(e[1]=function(c){return t.$emit("drag",c)}),onDragEnd:e[2]||(e[2]=function(c){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(c){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(c){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])],2)};var gp=_e("vue-line-wrapper"),$s={name:"LineWrapper",components:{DraggableElement:Sr},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return gp((Fe(t={},this.position,!0),Fe(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};$s.render=function(t,e,n,r,o,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock(a,{class:s.classname,onDrag:e[1]||(e[1]=function(c){return t.$emit("drag",c)}),onDragEnd:e[2]||(e[2]=function(c){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(c){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(c){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])};var Je=["left","right","top","bottom"],yp=["left","right"],wp=["top","bottom"],bp=["left","top"],Cp=["fill-area","fit-area","stencil","none"],Is={left:0,top:0,width:0,height:0};function As(t,e,n){return!(n=n||["width","height","left","top"]).some(function(r){return t[r]!==e[r]})}function Ke(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function en(t,e){return{left:t.left-e.left,top:t.top-e.top}}function be(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function En(t,e){var n={left:0,top:0,right:0,bottom:0};return Je.forEach(function(r){var o=e[r],s=Ke(t)[r];n[r]=o!==void 0&&s!==void 0?r==="left"||r==="top"?Math.max(0,o-s):Math.max(0,s-o):0}),n}function et(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 pi(t){return{left:-t.left,top:-t.top}}function Me(t,e){return O(O({},t),{left:t.left+e.left,top:t.top+e.top})}function De(t,e,n,r){if(e!==1){if(n){var o=be(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-o.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-o.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 Z(t){return t.width/t.height}function tn(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 nn(t,e){var n={left:0,top:0},r=En(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 Er(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function Ps(t,e){var n=Z(t),r=Z(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 Ns(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 mt(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 gi(t,e){var n=En(Ce(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,tn(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,tn(t,e)):1}function Ce(t,e,n){n===void 0&&(n=!1);var r=nn(t,e);return Me(t,n?pi(r):r)}function xr(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 Sp(t,e){return O(O({},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 zs(t,e,n){n===void 0&&(n=!0);var r={};return Je.forEach(function(o){var s=t[o],a=e[o];s!==void 0&&a!==void 0?r[o]=o==="left"||o==="top"?n?Math.max(s,a):Math.min(s,a):n?Math.min(s,a):Math.max(s,a):a!==void 0?r[o]=a:s!==void 0&&(r[o]=s)}),r}function yi(t,e){return zs(t,e,!0)}function Ts(t){var e=t.size,n=t.aspectRatio,r=t.ignoreMinimum,o=t.sizeRestrictions;return!!((e.correctRatio||Z(e)>=n.minimum&&Z(e)<=n.maximum)&&e.height<=o.maxHeight&&e.width<=o.maxWidth&&e.width&&e.height&&(r||e.height>=o.minHeight&&e.width>=o.minWidth))}function Os(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function st(t){var e=t.width,n=t.height,r=t.sizeRestrictions,o={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},s={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 Ts({size:m,aspectRatio:o,sizeRestrictions:r,ignoreMinimum:h})&&(!f||Os(m,{width:e,height:n})<Os(f,{width:e,height:n}))?m:f},null)}var c=[];o&&[o.minimum,o.maximum].forEach(function(u){u&&c.push({width:s.width,height:s.width/u,correctRatio:!0},{width:s.height*u,height:s.height,correctRatio:!0})}),Ts({size:s,aspectRatio:o,sizeRestrictions:r})&&c.push(s);var d=a(c)||a(c,!0);return d&&{width:d.width,height:d.height}}function vr(t){var e=t.event,n=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=Me(n,e.directions);return Me(s,nn(s,o))}function kp(t){var e=t.coordinates,n=t.transform,r=t.imageSize,o=t.sizeRestrictions,s=t.positionRestrictions,a=t.aspectRatio,c=t.visibleArea,d=function(h,f){return vr({coordinates:h,positionRestrictions:s,event:new Cr({left:f.left-h.left,top:f.top-h.top})})},u=O({},e);return(Array.isArray(n)?n:[n]).forEach(function(h){var f={};he((f=typeof h=="function"?h({coordinates:u,imageSize:r,visibleArea:c}):h).width)&&he(f.height)||(u=function(m,y){var w=O(O(O({},m),st({width:y.width,height:y.height,sizeRestrictions:o,aspectRatio:a})),{left:0,top:0});return d(w,{left:m.left,top:m.top})}(u,O(O({},u),f))),he(f.left)&&he(f.top)||(u=d(u,O(O({},u),f)))}),u}function Ep(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,o=t.visibleArea;t.aspectRatio;var s=t.stencilSize,a=t.sizeRestrictions,c=t.positionRestrictions;t.stencilReference;var d,u,h,f=O({},r),m=O({},o),y=O({},s);d=Z(y),u=Z(f),h===void 0&&(h=.001),(d===0||u===0?Math.abs(u-d)<h:Math.abs(u/d)<1+h&&Math.abs(u/d)>1-h)||(f=O(O({},f),st({sizeRestrictions:a,width:f.width,height:f.height,aspectRatio:{minimum:Z(y),maximum:Z(y)}})));var w=gi(m=De(m,f.width*n.width/(m.width*y.width)),e({visibleArea:m,type:"resize"}));return w!==1&&(m=De(m,w),f=De(f,w)),m=Ce(m=Me(m,en(be(f),be(m))),e({visibleArea:m,type:"move"})),{coordinates:f=Ce(f,yi(Ke(m),c)),visibleArea:m}}function xp(t){var e=t.event,n=t.getAreaRestrictions,r=t.boundaries,o=t.coordinates,s=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var c=O({},o),d=O({},s);if(o&&s&&e.type!=="manipulateImage"){var u={width:0,height:0};d.width,r.width,Z(r)>Z(c)?(u.height=.8*r.height,u.width=u.height*Z(c)):(u.width=.8*r.width,u.height=u.width*Z(c));var h=gi(d=De(d,c.width*r.width/(d.width*u.width)),n({visibleArea:d,type:"resize"}));d=De(d,h),h!==1&&(u.height/=h,u.width/=h),d=Ce(d=Me(d,en(be(c),be(d))),n({visibleArea:d,type:"move"})),c=Ce(c,yi(Ke(d),a))}return{coordinates:c,visibleArea:d}}function vp(t){var e=t.event,n=t.coordinates,r=t.visibleArea,o=t.getAreaRestrictions,s=O({},r),a=O({},n);if(e.type==="setCoordinates"){var c=Math.max(0,a.width-s.width),d=Math.max(0,a.height-s.height);c>d?s=De(s,Math.min(a.width/s.width,tn(s,o({visibleArea:s,type:"resize"})))):d>c&&(s=De(s,Math.min(a.height/s.height,tn(s,o({visibleArea:s,type:"resize"}))))),s=Ce(s=Me(s,pi(nn(a,Ke(s)))),o({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function Mp(t){var e=t.imageSize,n=t.visibleArea,r=t.coordinates,o=n||e;return{left:(n?n.left:0)+o.width/2-r.width/2,top:(n?n.top:0)+o.height/2-r.height/2}}function Bp(t){var e=t.imageSize,n=t.visibleArea,r=t.aspectRatio,o=t.sizeRestrictions,s=n||e,a=Math.min(r.maximum||1/0,Math.max(r.minimum||0,Z(s))),c=s.width<s.height?{width:.8*s.width,height:.8*s.width/a}:{height:.8*s.height,width:.8*s.height*a};return st(O(O({},c),{aspectRatio:r,sizeRestrictions:o}))}function Rp(t){var e,n,r=t.imageSize,o=t.visibleArea,s=t.boundaries,a=t.aspectRatio,c=t.sizeRestrictions,d=t.stencilSize,u=o||r;return Z(u)>Z(s)?n=(e=d.height*u.height/s.height)*Z(d):e=(n=d.width*u.width/s.width)/Z(d),st({width:n,height:e,aspectRatio:a,sizeRestrictions:c})}function $p(t){var e=t.getAreaRestrictions,n=t.coordinates,r=t.imageSize,o=Z(t.boundaries);if(n){var s={height:Math.max(n.height,r.height),width:Math.max(n.width,r.width)},a=Ps({width:Z(s)>o?s.width:s.height*o,height:Z(s)>o?s.width/o:s.height},xr(e())),c={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},d=En(n,Ke(O({left:0,top:0},r))),u={};return!d.left&&!d.right&&c.width<=r.width&&(u.left=0,u.right=r.width),!d.top&&!d.bottom&&c.height<=r.height&&(u.top=0,u.bottom=r.height),Ce(c,u)}var h=Z(r);return a={height:h>o?r.height:r.width/o,width:h>o?r.height*o:r.width},{left:r.width/2-a.width/2,top:r.height/2-a.height/2,width:a.width,height:a.height}}function wi(t,e){return zs(t,Ke(e))}function Ip(t){var e=t.event,n=t.coordinates,r=t.visibleArea,o=t.sizeRestrictions,s=t.getAreaRestrictions,a=t.positionRestrictions,c=t.adjustStencil,d=e.scale,u=e.move,h=O({},r),f=O({},n),m=1,y=1,w=d.factor&&Math.abs(d.factor-1)>.001;h=Me(h,{left:u.left||0,top:u.top||0});var S={stencil:{minimum:Math.max(o.minWidth?o.minWidth/f.width:0,o.minHeight?o.minHeight/f.height:0),maximum:Math.min(o.maxWidth?o.maxWidth/f.width:1/0,o.maxHeight?o.maxHeight/f.height:1/0,tn(f,a))},area:{maximum:tn(h,s({visibleArea:h,type:"resize"}))}};d.factor&&w&&(d.factor<1?(y=Math.max(d.factor,S.stencil.minimum))>1&&(y=1):d.factor>1&&(y=Math.min(d.factor,Math.min(S.area.maximum,S.stencil.maximum)))<1&&(y=1)),y&&(h=De(h,y,d.center));var x=n.left-r.left,C=r.width+r.left-(n.width+n.left),P=n.top-r.top,E=r.height+r.top-(n.height+n.top);return h=Ce(h=Me(h,nn(h,{left:a.left!==void 0?a.left-x*y:void 0,top:a.top!==void 0?a.top-P*y:void 0,bottom:a.bottom!==void 0?a.bottom+E*y:void 0,right:a.right!==void 0?a.right+C*y:void 0})),s({visibleArea:h,type:"move"})),f.width=f.width*y,f.height=f.height*y,f.left=h.left+x*y,f.top=h.top+P*y,f=Ce(f,yi(Ke(h),a)),d.factor&&w&&c&&(d.factor>1?m=Math.min(S.area.maximum,d.factor)/y:d.factor<1&&(m=Math.max(f.height/h.height,f.width/h.width,d.factor/y)),m!==1&&(h=Me(h=Ce(h=De(h,m,d.factor>1?d.center:be(f)),s({visibleArea:h,type:"move"})),pi(nn(f,Ke(h)))))),{coordinates:f,visibleArea:h}}function Ap(t){var e=t.aspectRatio,n=t.getAreaRestrictions,r=t.coordinates,o=t.visibleArea,s=t.sizeRestrictions,a=t.positionRestrictions,c=t.imageSize,d=t.previousImageSize,u=t.angle,h=O({},r),f=O({},o),m=mt(be(O({left:0,top:0},d)),u);return(h=O(O({},st({sizeRestrictions:s,aspectRatio:e,width:h.width,height:h.height})),mt(be(h),u))).left-=m.left-c.width/2+h.width/2,h.top-=m.top-c.height/2+h.height/2,f=De(f,gi(f,n({visibleArea:f,type:"resize"}))),{coordinates:h=Ce(h,a),visibleArea:f=Ce(f=Me(f,en(be(h),be(r))),n({visibleArea:f,type:"move"}))}}function Pp(t){var e=t.flip,n=t.previousFlip,r=t.rotate,o=t.getAreaRestrictions,s=t.coordinates,a=t.visibleArea,c=t.imageSize,d=O({},s),u=O({},a),h=n.horizontal!==e.horizontal,f=n.vertical!==e.vertical;if(h||f){var m=mt({left:c.width/2,top:c.height/2},-r),y=mt(be(d),-r),w=mt({left:h?m.left-(y.left-m.left):y.left,top:f?m.top-(y.top-m.top):y.top},r);d=Me(d,en(w,be(d))),y=mt(be(u),-r),u=Ce(u=Me(u,en(w=mt({left:h?m.left-(y.left-m.left):y.left,top:f?m.top-(y.top-m.top):y.top},r),be(u))),o({visibleArea:u,type:"move"}))}return{coordinates:d,visibleArea:u}}function Vs(t){var e=t.directions,n=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=t.sizeRestrictions,a=t.preserveRatio,c=t.compensate,d=O({},e),u=et(n,d).width,h=et(n,d).height;u<0&&(d.left<0&&d.right<0?(d.left=-(n.width-s.minWidth)/(d.left/d.right),d.right=-(n.width-s.minWidth)/(d.right/d.left)):d.left<0?d.left=-(n.width-s.minWidth):d.right<0&&(d.right=-(n.width-s.minWidth))),h<0&&(d.top<0&&d.bottom<0?(d.top=-(n.height-s.minHeight)/(d.top/d.bottom),d.bottom=-(n.height-s.minHeight)/(d.bottom/d.top)):d.top<0?d.top=-(n.height-s.minHeight):d.bottom<0&&(d.bottom=-(n.height-s.minHeight)));var f=En(et(n,d),o);c&&(f.left&&f.left>0&&f.right===0?(d.right+=f.left,d.left-=f.left):f.right&&f.right>0&&f.left===0&&(d.left+=f.right,d.right-=f.right),f.top&&f.top>0&&f.bottom===0?(d.bottom+=f.top,d.top-=f.top):f.bottom&&f.bottom>0&&f.top===0&&(d.top+=f.bottom,d.bottom-=f.bottom),f=En(et(n,d),o));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Je.forEach(function(S){var x=f[S];x&&d[S]&&(m[S]=Math.max(0,1-x/d[S]))}),a){var y=Math.min.apply(null,Je.map(function(S){return m[S]}));y!==1/0&&Je.forEach(function(S){d[S]*=y})}else Je.forEach(function(S){m[S]!==1/0&&(d[S]*=m[S])});if(u=et(n,d).width,h=et(n,d).height,d.right+d.left&&(u>s.maxWidth?m.width=(s.maxWidth-n.width)/(d.right+d.left):u<s.minWidth&&(m.width=(s.minWidth-n.width)/(d.right+d.left))),d.bottom+d.top&&(h>s.maxHeight?m.height=(s.maxHeight-n.height)/(d.bottom+d.top):h<s.minHeight&&(m.height=(s.minHeight-n.height)/(d.bottom+d.top))),a){var w=Math.min(m.width,m.height);w!==1/0&&Je.forEach(function(S){d[S]*=w})}else m.width!==1/0&&yp.forEach(function(S){d[S]*=m.width}),m.height!==1/0&&wp.forEach(function(S){d[S]*=m.height});return d}function bi(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var Np=_e("vue-simple-handler"),zp=_e("vue-simple-handler-wrapper"),Mr={name:"SimpleHandler",components:{HandlerWrapper:Rs},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=(Fe(t={},this.horizontalPosition,!!this.horizontalPosition),Fe(t,this.verticalPosition,!!this.verticalPosition),Fe(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Fe(t,"hover",this.hover),t);return{default:le(Np(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:le(zp(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"]};Mr.render=function(t,e,n,r,o,s){var a=i.resolveComponent("HandlerWrapper");return i.openBlock(),i.createBlock(a,{class:s.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Tp=_e("vue-simple-line"),Op=_e("vue-simple-line-wrapper"),Br={name:"SimpleLine",components:{LineWrapper:$s},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:le(Tp(Fe({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:le(Op(Fe({},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"]};Br.render=function(t,e,n,r,o,s){var a=i.resolveComponent("LineWrapper");return i.openBlock(),i.createBlock(a,{class:s.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Rr=_e("vue-bounding-box"),Vp=["east","west",null],Fp=["south","north",null],Fs={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 Mr}},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 Br}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return Vp.forEach(function(e){Fp.forEach(function(n){if(e!==n){var r=ks(e,n),o=r.name,s=r.classname;t.push({name:o,classname:s,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:Rr(),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:le(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:le(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(o){if(t.handlers[o.name]){var s={name:o.name,component:t.handlersComponent,class:le(t.classes.handlers.default,t.classes.handlers[o.name]),wrapperClass:le(t.classes.handlersWrappers.default,t.classes.handlersWrappers[o.name]),hoverClass:t.classes.handlers.hover,verticalDirection:o.verticalDirection,horizontalDirection:o.horizontalDirection,disabled:!t.resizable};if(n&&r){var a=o.horizontalDirection,c=o.verticalDirection,d=a==="east"?n:a==="west"?0:n/2,u=c==="south"?r:c==="north"?0:r/2;s.wrapperClass=Rr("handler"),s.wrapperStyle={transform:"translate(".concat(d,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(s.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else s.wrapperClass=Rr("handler",Fe({},o.classname,!0));e.push(s)}}),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,o=t.shift(),s=o.left,a=o.top,c={left:0,right:0,top:0,bottom:0};e==="west"?c.left-=s:e==="east"&&(c.right+=s),n==="north"?c.top-=a:n==="south"&&(c.bottom+=a),!n&&e?r="width":n&&!e&&(r="height"),this.resizable&&this.$emit("resize",new mp(c,{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"]};Fs.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"box",class:s.classes.root,style:s.style},[i.renderSlot(t.$slots,"default"),i.createVNode("div",null,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.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(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[1]||(e[1]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.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(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[2]||(e[2]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var Dp=_e("vue-draggable-area"),Ds={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Dp()}}},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=At(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()):Bs({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=At(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),o=r.left,s=r.top;this.touches.length===1&&n.length===1&&this.$emit("move",new Cr({left:n[0].clientX-(o+this.anchor.x),top:n[0].clientY-(s+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};Ds.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],544)};function $r(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 Lp(t){return new Promise(function(e,n){try{if(t)if(/^data:/i.test(t))e(function(d){d=d.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(d),h=u.length,f=new ArrayBuffer(h),m=new Uint8Array(f),y=0;y<h;y++)m[y]=u.charCodeAt(y);return f}(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(d){e(d.target.result)},s=t,a=function(d){r.readAsArrayBuffer(d)},(c=new XMLHttpRequest).open("GET",s,!0),c.responseType="blob",c.onload=function(){this.status!=200&&this.status!==0||a(this.response)},c.send()}else{var o=new XMLHttpRequest;o.onreadystatechange=function(){o.readyState===4&&(o.status===200||o.status===0?e(o.response):n("Warning: could not load an image to parse its orientation"),o=null)},o.onprogress=function(){o.getResponseHeader("content-type")!=="image/jpeg"&&o.abort()},o.withCredentials=!1,o.open("GET",t,!0),o.responseType="arraybuffer",o.send(null)}else n("Error: the image is empty")}catch(d){n(d)}var s,a,c})}function Ls(t){var e=t.rotate,n=t.flip,r=t.scaleX,o=t.scaleY,s="";return s+=" rotate("+e+"deg) ",s+=" scaleX("+r*(n.horizontal?-1:1)+") ",s+=" scaleY("+o*(n.vertical?-1:1)+") "}function Hp(t){try{var e,n=new DataView(t),r=void 0,o=void 0,s=void 0,a=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var c=n.byteLength,d=2;d+1<c;){if(n.getUint8(d)===255&&n.getUint8(d+1)===225){s=d;break}d++}if(s&&(r=s+10,function(y,w,S){var x,C="";for(x=w,S+=w;x<S;x++)C+=String.fromCharCode(y.getUint8(x));return C}(n,s+4,4)==="Exif")){var u=n.getUint16(r);if(((o=u===18761)||u===19789)&&n.getUint16(r+2,o)===42){var h=n.getUint32(r+4,o);h>=8&&(a=r+h)}}if(a){for(var f=n.getUint16(a,o),m=0;m<f;m++)if(d=a+12*m+2,n.getUint16(d,o)===274){d+=8,e=n.getUint16(d,o),n.setUint16(d,1,o);break}}return e}catch{return null}}function Hs(t,e){var n=e.getBoundingClientRect(),r=n.left,o=n.top,s={left:0,top:0},a=0;return t.forEach(function(c){s.left+=(c.clientX-r)/t.length,s.top+=(c.clientY-o)/t.length}),t.forEach(function(c){a+=Bs({x:s.left,y:s.top},{x:c.clientX-r,y:c.clientY-o})}),{centerMass:s,spread:a,count:t.length}}var qs={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=wr(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 kn({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=Hs(e,this.$refs.container),r=this.oldGeometricProperties;r.count===n.count&&r.count>1&&this.$emit("resize",new kn({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,o=n.top,s=n.bottom,a=n.right;this.touches=At(t.touches).filter(function(c){return c.clientX>r&&c.clientX<a&&c.clientY>o&&c.clientY<s}),this.oldGeometricProperties=Hs(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=At(t.touches).filter(function(r){return!r.identifier||e.touches.find(function(o){return o.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,o=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(c=+a)==0||Ms(c)?c:c>0?1:-1),s={left:t.clientX-n,top:t.clientY-r};this.$emit("resize",new kn({},{factor:o,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,c}},emits:["resize","move","transform-end"]};qs.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onWheel:e[3]||(e[3]=function(){return s.onWheel&&s.onWheel.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],544)};var Ir={components:{TransformableImage:qs},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,o,s){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(c){return t.$emit("move",c)}),onResize:e[2]||(e[2]=function(c){return t.$emit("resize",c)})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var Ci=_e("vue-preview"),_s={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:Ci({fill:this.fill}),wrapper:Ci("wrapper"),imageWrapper:Ci("image-wrapper"),image:le(Ci("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=G(G({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,r=this.imageSize.height,o=Ns({width:n,height:r},e.rotate),s={width:"".concat(n,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-o.width)*e.scaleX/2,top:(r-o.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*r/2}};return s.transform=`translate(
41
- `.concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+Ls(e),this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}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()}}};_s.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"root",class:s.classes.root,style:s.style},[i.createVNode("div",{ref:"wrapper",class:s.classes.wrapper,style:s.wrapperStyle},[i.withDirectives(i.createVNode("img",{ref:"image",src:n.image&&n.image.src,class:s.classes.image,style:s.imageStyle},null,14,["src"]),[[i.vShow,n.image&&n.image.src]])],6)],6)};var Us={components:{Preview:_s},inheritAttrs:!1};Us.render=function(t,e,n,r,o,s){var a=i.resolveComponent("preview");return i.openBlock(),i.createBlock(a,i.mergeProps(t.$attrs,{fill:!0}),null,16)};var Ar=_e("vue-rectangle-stencil"),js={name:"RectangleStencil",components:{StencilPreview:Us,BoundingBox:Fs,DraggableArea:Ds},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Mr}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return Br}},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:le(Ar({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:le(Ar("preview"),this.previewClass),boundingBox:le(Ar("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,r=t.left,o=t.top,s={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(r,"px, ").concat(o,"px)")};return this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}},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"]};js.render=function(t,e,n,r,o,s){var a=i.resolveComponent("stencil-preview"),c=i.resolveComponent("draggable-area"),d=i.resolveComponent("bounding-box");return i.openBlock(),i.createBlock("div",{class:s.classes.stencil,style:s.style},[i.createVNode(d,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:s.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:s.onResize,onResizeEnd:s.onResizeEnd},{default:i.withCtx(function(){return[i.createVNode(c,{movable:n.movable,onMove:s.onMove,onMoveEnd:s.onMoveEnd},{default:i.withCtx(function(){return[i.createVNode(a,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:s.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 qp=["transitions"],at=_e("vue-advanced-cropper"),Ws={name:"Cropper",components:{BackgroundWrapper:Ir},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return js}},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 Cp.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,o=t.positionRestrictions,s=t.sizeRestrictions,a=O(O({},n),{right:n.left+n.width,bottom:n.top+n.height}),c=e.params||{},d=O({},e.directions),u=c.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(d.left=0,d.right=0),s.heightFrozen&&(d.top=0,d.bottom=0),Je.forEach(function(I){u[I]||(d[I]=0)});var h=et(a,d=Vs({coordinates:a,directions:d,sizeRestrictions:s,positionRestrictions:o})).width,f=et(a,d).height,m=c.preserveRatio?Z(a):Er(h/f,r);if(m){var y=c.respectDirection;if(y||(y=a.width>=a.height||m===1?"width":"height"),y==="width"){var w=h/m-a.height;if(u.top&&u.bottom){var S=d.top,x=d.bottom;d.bottom=bi(w,x,S),d.top=bi(w,S,x)}else u.bottom?d.bottom=w:u.top?d.top=w:u.right?d.right=0:u.left&&(d.left=0)}else if(y==="height"){var C=a.width-f*m;if(u.left&&u.right){var P=d.left,E=d.right;d.left=-bi(C,P,E),d.right=-bi(C,E,P)}else u.left?d.left=-C:u.right?d.right=-C:u.top?d.top=0:u.bottom&&(d.bottom=0)}d=Vs({directions:d,coordinates:a,sizeRestrictions:s,positionRestrictions:o,preserveRatio:!0,compensate:c.compensate})}return h=et(a,d).width,f=et(a,d).height,(m=c.preserveRatio?Z(a):Er(h/f,r))&&Math.abs(m-h/f)>.001&&Je.forEach(function(I){u[I]||(d[I]=0)}),vr({event:new Cr({left:-d.left,top:-d.top}),coordinates:{width:n.width+d.right+d.left,height:n.height+d.top+d.bottom,left:n.left,top:n.top},positionRestrictions:o})}},moveAlgorithm:{type:Function,default:vr},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,r=Z(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,o=t.sizeRestrictions,s=t.positionRestrictions,a=O(O({},n),st({width:n.width,height:n.height,aspectRatio:r,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,o.minHeight),minWidth:Math.min(e.width,o.minWidth)}}));return a=Ce(a=Me(a,en(be(n),be(a))),yi(Ke(e),s))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.getAreaRestrictions,o=t.coordinates,s=O({},e);s.height=s.width/Z(n),s.top+=(e.height-s.height)/2,(o.height-s.height>0||o.width-s.width>0)&&(s=De(s,Math.max(o.height/s.height,o.width/s.width)));var a=pi(nn(o,Ke(s=De(s,gi(s,r({visibleArea:s,type:"resize"}))))));return s.width<o.width&&(a.left=0),s.height<o.height&&(a.top=0),s=Ce(s=Me(s,a),r({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.imageSize,o=t.imageRestriction,s=t.type,a={};return o==="fill-area"?a={left:0,top:0,right:r.width,bottom:r.height}:o==="fit-area"&&(Z(n)>Z(r)?(a={top:0,bottom:r.height},e&&s==="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&&s==="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:G({},Is)}},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=br(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:br(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:he(this.minWidth)?0:mi(this.minWidth),minHeight:he(this.minHeight)?0:mi(this.minHeight),maxWidth:he(this.maxWidth)?1/0:mi(this.maxWidth),maxHeight:he(this.maxHeight)?1/0:mi(this.maxHeight)});if(t=function(r){var o=r.areaRestrictions,s=r.sizeRestrictions,a=r.boundaries,c=r.positionRestrictions,d=O(O({},s),{minWidth:s.minWidth!==void 0?s.minWidth:0,minHeight:s.minHeight!==void 0?s.minHeight:0,maxWidth:s.maxWidth!==void 0?s.maxWidth:1/0,maxHeight:s.maxHeight!==void 0?s.maxHeight:1/0});c.left!==void 0&&c.right!==void 0&&(d.maxWidth=Math.min(d.maxWidth,c.right-c.left)),c.bottom!==void 0&&c.top!==void 0&&(d.maxHeight=Math.min(d.maxHeight,c.bottom-c.top));var u=xr(o),h=Ps(a,u);return u.width<1/0&&(!d.maxWidth||d.maxWidth>h.width)&&(d.maxWidth=Math.min(d.maxWidth,h.width)),u.height<1/0&&(!d.maxHeight||d.maxHeight>h.height)&&(d.maxHeight=Math.min(d.maxHeight,h.height)),d.minWidth>d.maxWidth&&(d.minWidth=d.maxWidth,d.widthFrozen=!0),d.minHeight>d.maxHeight&&(d.minHeight=d.maxHeight,d.heightFrozen=!0),d}({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=xr(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:at(),image:le(at("image"),this.imageClass),stencil:at("stencil"),boundaries:le(at("boundaries"),this.boundariesClass),stretcher:le(at("stretcher")),background:le(at("background"),this.backgroundClass),foreground:le(at("foreground"),this.foregroundClass),imageWrapper:le(at("image-wrapper")),cropperWrapper:le(at("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,r=t.left,o=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(r-this.visibleArea.left)/this.coefficient,top:(o-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=G(G({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),o={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)")+Ls(r)};return this.transitionsOptions.enabled&&(o.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),o}},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=wr(this.update,this.debounce),this.debouncedDisableTransitions=wr(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(G({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:G({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?G({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?G({},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,o=r===void 0||r;this.onManipulateImage(new kn({},{factor:1/t,center:e}),{normalize:!1,transitions:o})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,o=r===void 0||r;this.onManipulateImage(new kn({left:t||0,top:e||0}),{normalize:!1,transitions:o})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.autoZoom,o=r===void 0||r,s=n.transitions,a=s===void 0||s;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),o&&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,o=e.positionRestrictions,s={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return s.width>r.maxWidth?s.width=Math.floor(n.width):s.width<r.minWidth&&(s.width=Math.ceil(n.width)),s.height>r.maxHeight?s.height=Math.floor(n.height):s.height<r.minHeight&&(s.height=Math.ceil(n.height)),Ce(s,o)}(G(G({},this.getPublicProperties()),{},{positionRestrictions:wi(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,r){var o=this.autoZoomAlgorithm;o||(o=this.stencilSize?Ep:this.autoZoom?xp:vp);var s=o({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 G(G({},s),{},{changed:!As(s.visibleArea,e)||!As(s.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n!==void 0&&n,o=hp(e,qp),s=this.processAutoZoom(t,this.visibleArea,this.coordinates,o),a=s.visibleArea,c=s.coordinates,d=s.changed;r&&d&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,r&&d&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var n=e.event,r=e.visibleArea,o=e.coefficient;if(n.type==="manipulateImage")return O(O({},n),{move:{left:n.move&&n.move.left?o*n.move.left:0,top:n.move&&n.move.top?o*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*o+r.left,top:n.scale.center.top*o+r.top}:null}});if(n.type==="resize"){var s=O(O({},n),{directions:O({},n.directions)});return Je.forEach(function(c){s.directions[c]*=o}),s}if(n.type==="move"){var a=O(O({},n),{directions:O({},n.directions)});return bp.forEach(function(c){a.directions[c]*=o}),a}return n}(G(G({},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(c,d,u){var h=u.rotate,f=u.flip,m={width:d.naturalWidth,height:d.naturalHeight},y=Ns(m,h),w=c.getContext("2d");c.height=y.height,c.width=y.width,w.save();var S=mt(be(O({left:0,top:0},m)),h);return w.translate(-(S.left-y.width/2),-(S.top-y.height/2)),w.rotate(h*Math.PI/180),w.translate(f.horizontal?m.width:0,f.vertical?m.height:0),w.scale(f.horizontal?-1:1,f.vertical?-1:1),w.drawImage(d,0,0,m.width,m.height),w.restore(),c}(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=G({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),o=function(c){return c.find(function(d){return u=d,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},s=st({sizeRestrictions:{minWidth:o([r.width,r.minWidth])||0,minHeight:o([r.height,r.minHeight])||0,maxWidth:o([r.width,r.maxWidth])||1/0,maxHeight:o([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&&s.width*s.height>r.maxArea){var a=Math.sqrt(r.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(c,d,u,h,f){c.width=h?h.width:u.width,c.height=h?h.height:u.height;var m=c.getContext("2d");m.clearRect(0,0,c.width,c.height),f&&(f.imageSmoothingEnabled&&(m.imageSmoothingEnabled=f.imageSmoothingEnabled),f.imageSmoothingQuality&&(m.imageSmoothingQuality=f.imageSmoothingQuality),f.fillColor&&(m.fillStyle=f.fillColor,m.fillRect(0,0,c.width,c.height),m.save()));var y=u.left<0?-u.left:0,w=u.top<0?-u.top:0;m.drawImage(d,u.left+y,u.top+w,u.width,u.height,y*(c.width/u.width),w*(c.height/u.height),c.width,c.height)}(t,n,this.coordinates,s,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?Sp(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?wi(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return kp({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?Rp:Bp);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var r=Kt(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,o=this.defaultPosition||Mp,s=[r,function(a){var c=a.coordinates;return G({},Kt(o)?o({coordinates:c,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,At(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!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(Kt(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=function(o){var s=o.cropper,a=o.imageSize,c=s.clientHeight,d=s.clientWidth,u=c,h=a.width*c/a.height;return h>d&&(h=d,u=a.height*d/a.width),{width:h,height:u}}(r):t.boundaries=function(o){var s=o.cropper;return{width:s.clientWidth,height:s.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=G(G({},this.defaultImageTransforms),{},{flip:G({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,r,o,s,a,c=t.defaultVisibleArea||$p;t.visibleArea=Kt(c)?c({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,o=e.getAreaRestrictions,s=O({},n),a=Z(r),s.width/s.height!==a&&(s.height=s.width/a),Ce(s,o({visibleArea:s,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(o){if(xs(o))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(o)||[],c={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},d=function(u){return u.port||((u.protocol||s.protocol)==="http"?80:433)};return!(!c.protocol&&!c.host&&!c.port||c.protocol&&c.protocol==s.protocol&&c.host&&c.host==s.host&&c.host&&d(c)==d(s))}(this.src)){var n=he(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(o){Lp(t).then(function(s){var a=Hp(s);o(s?{source:t,arrayBuffer:s,orientation:a}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),o({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,o=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,r&&o&&o>1?Es(n)||!xs(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([r])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],c=new Uint8Array(s);c.length>0;){var d=c.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(d):d.slice())),c=c.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(r):this.imageAttributes.src=n,Kt(this.defaultTransforms)?this.appliedImageTransforms=$r(this.defaultTransforms()):fi(this.defaultTransforms)?this.appliedImageTransforms=$r(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=$r({});if(s)switch(s){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}(o),this.defaultImageTransforms=G(G({},this.appliedImageTransforms),{},{flip:G({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var s=e.$refs.image;s&&s.complete&&(function(a){return!!a.naturalWidth}(s)?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(G(G({},e.getPublicProperties()),{},{positionRestrictions:wi(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(G(G({},e.getPublicProperties()),{},{positionRestrictions:wi(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,o=e.normalize,s=o===void 0||o;r&&this.enableTransitions();var a=Ip(G(G({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,d=a.coordinates;this.visibleArea=c,this.coordinates=d,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,o=r.aspectRatio,s=r.minAspectRatio,a=r.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var c=this.$refs.stencil.aspectRatios();e=c.minimum,n=c.maximum}if(he(e)&&(e=he(o)?s:o),he(n)&&(n=he(o)?a:o),!t&&(he(e)||he(n))){var d=this.getStencilSize(),u=d?Z(d):null;he(e)&&(e=vs(u)?u:void 0),he(n)&&(n=vs(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,Er(Z(o=Kt(n)?n({boundaries:e,aspectRatio:r}):n),r)&&(o=st({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:r.minimum,maximum:r.maximum}})),(o.width>e.width||o.height>e.height)&&(o=st({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:Z(o),maximum:Z(o)}})),o;var t,e,n,r,o},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 G({},Is)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,o=r===void 0||r;if(!this.transitionsActive){o&&this.enableTransitions();var s=G({},this.imageTransforms.flip),a=Pp({flip:{horizontal:t?!s.horizontal:s.horizontal,vertical:e?!s.vertical:s.vertical},previousFlip:s,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()}),c=a.visibleArea,d=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=c,this.coordinates=d,this.onChange(),o&&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 o=G({},this.imageSize);this.appliedImageTransforms.rotate+=t;var s=Ap({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:o,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,c=s.coordinates,d=this.processAutoZoom("rotateImage",a,c);a=d.visibleArea,c=d.coordinates,this.visibleArea=a,this.coordinates=c,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},_p={key:0,ref:"canvas",style:{display:"none"}},Up={key:1,ref:"sourceCanvas",style:{display:"none"}};Ws.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"cropper",class:s.classes.cropper},[i.createVNode("div",{ref:"stretcher",class:s.classes.stretcher},null,2),i.createVNode("div",{class:s.classes.boundaries,style:s.boundariesStyle},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.backgroundWrapperComponent),{class:s.classes.cropperWrapper,"wheel-resize":s.settings.resizeImage.wheel,"touch-resize":s.settings.resizeImage.touch,"touch-move":s.settings.moveImage.touch,"mouse-move":s.settings.moveImage.mouse,onMove:s.onManipulateImage,onResize:s.onManipulateImage},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.background,style:s.boundariesStyle},null,6),i.createVNode("div",{class:s.classes.imageWrapper},[i.createVNode("img",{ref:"image",crossorigin:o.imageAttributes.crossOrigin,src:o.imageAttributes.src,class:s.classes.image,style:s.imageStyle,onMousedown:e[1]||(e[1]=i.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),i.createVNode("div",{class:s.classes.foreground,style:s.boundariesStyle},null,6),i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.stencilComponent),i.mergeProps({ref:"stencil",image:s.image,coordinates:o.coordinates,"stencil-coordinates":s.stencilCoordinates,transitions:s.transitionsOptions},n.stencilProps,{onResize:s.onResize,onResizeEnd:s.onResizeEnd,onMove:s.onMove,onMoveEnd:s.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[i.vShow,o.imageLoaded]]),n.canvas?(i.openBlock(),i.createBlock("canvas",_p,null,512)):i.createCommentVNode("",!0),n.canvas?(i.openBlock(),i.createBlock("canvas",Up,null,512)):i.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const jp={width:0,height:0,left:0,top:0};class Pr{constructor(){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"coordinates",jp)}setCoordinates(e){this.coordinates=e}getCoordinates(){return this.coordinates}static Create(e,n=0,r){const o=new Pr;return o.src=e,o.ratio=n,o.id=r,o}setRatio(e){this.ratio=e}getRatio(){return this.ratio}setSrc(e){this.src=e}getSrc(){return this.src}}const Wp={class:"background-container"},Gp={class:"dialog-footer"},Zp=v(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,o=i.ref(n.ratio),s=i.ref(Pr.Create(n.src,n.ratio));s.value.setRatio(o.value);const a=()=>{s.value.setRatio(o.value)},c=i.ref(),d=async()=>{const u=c.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",s.value.coordinates.width/s.value.coordinates.height)})};return(u,h)=>(i.openBlock(),i.createElementBlock("div",Wp,[i.createVNode(fr,{modelValue:i.unref(o),"onUpdate:modelValue":h[0]||(h[0]=f=>i.isRef(o)?o.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(Ws),{ref_key:"cropperRef",ref:c,src:i.unref(s).src,"stencil-props":{aspectRatio:i.unref(s).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:h[1]||(h[1]=f=>i.unref(s).setCoordinates(f.coordinates))},null,8,["src","stencil-props"]),i.createElementVNode("div",Gp,[i.createVNode(hr,{skin:"text",type:"primary",text:"Сохранить",onClick:d})])]))}}),[["__scopeId","data-v-7b32def2"]]),Xp=v(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"]]),Qp=v(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"]]),Yp=v(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"]]),Jp={key:0},Kp=["src"],eg={class:"tools-button"},tg={key:1},ng=["id"],ig=i.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:ye,required:!0,default:new ye},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:s.height*f.value+"px",height:s.height+"px"})),r=i.computed(()=>({width:f.value<.66?s.height*.66+"px":s.height*f.value+"px",height:s.height+"px"})),o=i.computed(()=>({width:f.value<.66?s.height*.66+"px":s.height*f.value+"px",height:s.height+"px"})),s=t,a=e,c=i.ref(void 0),d=de.GUID(),u=i.ref(!1),h=i.ref(),f=i.ref(s.ratio),m=i.ref(""),y=()=>{c.value=void 0,f.value=1,a("update:ratio",1),a("removeFile"),S=document.getElementById(d),S.value=""},w=E=>{E.blob.src=E.src,s.fileInfo.setFile(E.blob),s.fileInfo.fileSystemPath&&(c.value=s.fileInfo),u.value=!1,a("crop")};i.watch(()=>[s.fileInfo.description,s.fileInfo.order,s.fileInfo.fileSystemPath],()=>{s.fileInfo.fileSystemPath&&(c.value=s.fileInfo,c.value.url=s.fileInfo.getFileUrl())}),i.onBeforeMount(()=>{s.fileInfo.fileSystemPath&&(c.value=s.fileInfo,c.value.url=s.fileInfo.getFileUrl())});let S=null;i.onMounted(()=>{document.getElementById("drop-area")&&(S=document.getElementById(d))});const x=()=>{S&&S.click()},C=E=>{m.value=E.url,u.value=!0},P=()=>{if(!S||!S.files||!S.files.length)return;const E=S.files[0];E.url=URL.createObjectURL(E),c.value=E,s.fileInfo.setFile(E),s.withCrop&&C(c.value)};return i.watch(f,E=>{a("update:ratio",E)}),(E,I)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:"drop-area",class:"img-container",style:i.normalizeStyle(i.unref(n))},[i.unref(c)?(i.openBlock(),i.createElementBlock("div",Jp,[i.createElementVNode("div",{class:"img-block",style:i.normalizeStyle(i.unref(r))},[i.createElementVNode("img",{src:i.unref(c).url,alt:"upload-image"},null,8,Kp)],4),i.createElementVNode("div",eg,[i.createElementVNode("div",{class:"ins",style:i.normalizeStyle(i.unref(o))},[i.createElementVNode("div",{class:"change",onClick:I[0]||(I[0]=L=>C(i.unref(c)))},[i.createVNode(Xp,{margin:"0 10px 0 0",size:"40px"})]),i.createElementVNode("div",{claSS:"del",onClick:I[1]||(I[1]=L=>y())},[i.createVNode(Qp,{size:"40px"})])],4)])])):(i.openBlock(),i.createElementBlock("div",tg,[i.createElementVNode("div",{class:"add-button",style:i.normalizeStyle({width:t.height*i.unref(f)-2+"px",height:t.height-2+"px"}),onClick:x},[i.createVNode(Yp,{size:"40px"})],4)]))],4),i.createElementVNode("input",{id:i.unref(d),ref_key:"uploader",ref:h,hidden:"",type:"file",onChange:P},null,40,ng),i.createVNode(pr,{show:i.unref(u),title:"Настройка изображения","max-height":"90vh",top:"5vh"},{default:i.withCtx(()=>[i.createVNode(Zp,{ratio:i.unref(f),"onUpdate:ratio":I[2]||(I[2]=L=>i.isRef(f)?f.value=L:null),src:i.unref(m),onCrop:w,onClose:I[3]||(I[3]=L=>u.value=!1)},null,8,["ratio","src"])]),_:1},8,["show"])],64))}}),rg=v(ig,[["__scopeId","data-v-d0c48ec7"]]);function og(t){t.component("PTabs",ip),t.component("PUploaderFile",up),t.component("PUploaderImage",rg),t.component("PAuthForm",bs),t.component("PAuthModal",Km),t.component("PNameEdit",tp)}const sg={install:function(t){qh(t),Ym(t),Am(t),og(t),gm(t)}};function ag(t,e={}){const{quasarPlugins:n=!0}=e;n&&t.use(ae.Quasar,{plugins:{Notify:ae.Notify,Dialog:ae.Dialog}}),sg.install(t)}class lg extends zn{constructor(){super(...arguments);l(this,"label","Логин");l(this,"name","login");l(this,"validator",new Dr);l(this,"method",Ft.Login);l(this,"id","field-auth-login")}}const cg=["PF","PFM"],dg=v(i.defineComponent({__name:"ExtractCreateForm",emits:["create"],setup(t,{emit:e}){const n=e,r=ExtractsStore.Item,o=async()=>{await ExtractsStore.Create(),ExtractsStore.AppendToAll([r]),n("create")};return(s,a)=>{const c=i.resolveComponent("PInput"),d=i.resolveComponent("PButton");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(c,{modelValue:i.unref(r).name,"onUpdate:modelValue":a[0]||(a[0]=u=>i.unref(r).name=u)},null,8,["modelValue"]),i.createVNode(d,{text:"Создать",onClick:o})],64)}}}),[["__scopeId","data-v-acdf750a"]]),ug=Object.freeze(Object.defineProperty({__proto__:null,default:v(i.defineComponent({__name:"ExtractsList",setup(t){const e=i.ref(!1),n=i.ref(!1),r=async()=>{n.value=!0},o=async()=>{await Promise.all([r()])},s=()=>{e.value=!e.value};return R.H.Hooks.onBeforeMount(o),(a,c)=>{const d=dg,u=i.resolveComponent("PModal");return i.unref(e)?(i.openBlock(),i.createBlock(u,{key:0,show:i.unref(e)},{default:i.withCtx(()=>[i.createVNode(d,{onCreate:s})]),_:1},8,["show"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-03915680"]])},Symbol.toStringTag,{value:"Module"}));j.AuthButtonLogin=Mi,j.AuthButtonRefresh=Vr,j.AuthButtonRegister=Bi,j.AuthButtonRestore=Nn,j.AuthChunks=me,j.AuthFieldsIds=it,j.AuthFormSettings=Hr,j.AuthMethods=Ft,j.EmailField=Tn,j.LoginField=lg,j.PCheckBox=ms,j.PF=R,j.PFM=bh,j.PInput=ui,j.PSelect=fr,j.PasswordField=On,j.PasswordRepeatField=Lr,j.installSprof=ag,j.pfName=cg,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
40
+ ***************************************************************************** */function Bs(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 vs(t){return/^blob:/.test(t)}function Rs(t){return vs(t)||function(e){return/^data:/.test(e)}(t)}function Kt(t){return!!(t&&t.constructor&&t.call&&t.apply)}function fe(t){return t===void 0}function mi(t){return typeof t=="object"&&t!==null}function br(t,e,n){var r={};return mi(t)?(Object.keys(e).forEach(function(o){fe(t[o])?r[o]=e[o]:mi(e[o])?mi(t[o])?r[o]=br(t[o],e[o],n[o]):r[o]=t[o]?e[o]:n[o]:e[o]===!0||e[o]===!1?r[o]=!!t[o]:r[o]=t[o]}),r):t?e:n}function pi(t){var e=Number(t);return Number.isNaN(e)?t:e}function $s(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!Is(t)}function Is(t){return t!=t}function As(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var kn=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},wp=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},Cr=function(t){this.type="move",this.directions=t},bp=function(){function t(e,n,r,o,s){this.type="drag",this.nativeEvent=e,this.position=r,this.previousPosition=o,this.element=n,this.anchor=s}return t.prototype.shift=function(){var e=this,n=e.element,r=e.anchor,o=e.position;if(n){var s=n.getBoundingClientRect(),a=s.left,c=s.top;return{left:o.left-a-r.left,top:o.top-c-r.top}}return{left:0,top:0}},t}(),Sr={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=At(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,o=e.bottom,s=e.top;this.anchor={left:t.clientX-n,top:t.clientY-s,bottom:o-t.clientY,right:r-t.clientX}},processMove:function(t,e){var n=At(e);if(this.touches.length){if(this.touches.length===1&&n.length===1){var r=this.$refs.draggable;this.$emit("drag",new bp(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"]};Sr.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"draggable",class:n.classname,onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onMouseover:e[3]||(e[3]=function(){return s.onMouseOver&&s.onMouseOver.apply(s,arguments)}),onMouseleave:e[4]||(e[4]=function(){return s.onMouseLeave&&s.onMouseLeave.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],34)};var kr=Ue("vue-handler-wrapper"),Ps={name:"HandlerWrapper",components:{DraggableElement:Sr},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=Bs(this.horizontalPosition,this.verticalPosition);t=kr((Fe(e={},n.classname,!0),Fe(e,"disabled",this.disabled),e))}else t=kr({disabled:this.disabled});return{root:t,draggable:kr("draggable")}}},emits:["leave","enter","drag","drag-end"]};Ps.render=function(t,e,n,r,o,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock("div",{class:s.classes.root},[i.createVNode(a,{class:s.classes.draggable,onDrag:e[1]||(e[1]=function(c){return t.$emit("drag",c)}),onDragEnd:e[2]||(e[2]=function(c){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(c){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(c){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])],2)};var Cp=Ue("vue-line-wrapper"),Ns={name:"LineWrapper",components:{DraggableElement:Sr},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return Cp((Fe(t={},this.position,!0),Fe(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};Ns.render=function(t,e,n,r,o,s){var a=i.resolveComponent("DraggableElement");return i.openBlock(),i.createBlock(a,{class:s.classname,onDrag:e[1]||(e[1]=function(c){return t.$emit("drag",c)}),onDragEnd:e[2]||(e[2]=function(c){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(c){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(c){return t.$emit("enter")})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["class"])};var Je=["left","right","top","bottom"],Sp=["left","right"],kp=["top","bottom"],xp=["left","top"],Ep=["fill-area","fit-area","stencil","none"],zs={left:0,top:0,width:0,height:0};function Ts(t,e,n){return!(n=n||["width","height","left","top"]).some(function(r){return t[r]!==e[r]})}function Ke(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function en(t,e){return{left:t.left-e.left,top:t.top-e.top}}function be(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function xn(t,e){var n={left:0,top:0,right:0,bottom:0};return Je.forEach(function(r){var o=e[r],s=Ke(t)[r];n[r]=o!==void 0&&s!==void 0?r==="left"||r==="top"?Math.max(0,o-s):Math.max(0,s-o):0}),n}function et(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 gi(t){return{left:-t.left,top:-t.top}}function ve(t,e){return V(V({},t),{left:t.left+e.left,top:t.top+e.top})}function De(t,e,n,r){if(e!==1){if(n){var o=be(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(n.left-o.left)*(1-e),top:t.top+t.height*(1-e)/2+(n.top-o.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 Q(t){return t.width/t.height}function tn(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 nn(t,e){var n={left:0,top:0},r=xn(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 xr(t,e){var n;return e.minimum&&t<e.minimum?n=e.minimum:e.maximum&&t>e.maximum&&(n=e.maximum),n}function Os(t,e){var n=Q(t),r=Q(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 Vs(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 mt(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 yi(t,e){var n=xn(Ce(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,tn(t,e)):Math.min((t.height+n.top+n.bottom)/t.height,tn(t,e)):1}function Ce(t,e,n){n===void 0&&(n=!1);var r=nn(t,e);return ve(t,n?gi(r):r)}function Er(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 Mp(t,e){return V(V({},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 Fs(t,e,n){n===void 0&&(n=!0);var r={};return Je.forEach(function(o){var s=t[o],a=e[o];s!==void 0&&a!==void 0?r[o]=o==="left"||o==="top"?n?Math.max(s,a):Math.min(s,a):n?Math.min(s,a):Math.max(s,a):a!==void 0?r[o]=a:s!==void 0&&(r[o]=s)}),r}function wi(t,e){return Fs(t,e,!0)}function Ds(t){var e=t.size,n=t.aspectRatio,r=t.ignoreMinimum,o=t.sizeRestrictions;return!!((e.correctRatio||Q(e)>=n.minimum&&Q(e)<=n.maximum)&&e.height<=o.maxHeight&&e.width<=o.maxWidth&&e.width&&e.height&&(r||e.height>=o.minHeight&&e.width>=o.minWidth))}function Ls(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function st(t){var e=t.width,n=t.height,r=t.sizeRestrictions,o={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},s={width:Math.max(r.minWidth,Math.min(r.maxWidth,e)),height:Math.max(r.minHeight,Math.min(r.maxHeight,n))};function a(u,f){return f===void 0&&(f=!1),u.reduce(function(h,m){return Ds({size:m,aspectRatio:o,sizeRestrictions:r,ignoreMinimum:f})&&(!h||Ls(m,{width:e,height:n})<Ls(h,{width:e,height:n}))?m:h},null)}var c=[];o&&[o.minimum,o.maximum].forEach(function(u){u&&c.push({width:s.width,height:s.width/u,correctRatio:!0},{width:s.height*u,height:s.height,correctRatio:!0})}),Ds({size:s,aspectRatio:o,sizeRestrictions:r})&&c.push(s);var d=a(c)||a(c,!0);return d&&{width:d.width,height:d.height}}function Mr(t){var e=t.event,n=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=ve(n,e.directions);return ve(s,nn(s,o))}function Bp(t){var e=t.coordinates,n=t.transform,r=t.imageSize,o=t.sizeRestrictions,s=t.positionRestrictions,a=t.aspectRatio,c=t.visibleArea,d=function(f,h){return Mr({coordinates:f,positionRestrictions:s,event:new Cr({left:h.left-f.left,top:h.top-f.top})})},u=V({},e);return(Array.isArray(n)?n:[n]).forEach(function(f){var h={};fe((h=typeof f=="function"?f({coordinates:u,imageSize:r,visibleArea:c}):f).width)&&fe(h.height)||(u=function(m,y){var w=V(V(V({},m),st({width:y.width,height:y.height,sizeRestrictions:o,aspectRatio:a})),{left:0,top:0});return d(w,{left:m.left,top:m.top})}(u,V(V({},u),h))),fe(h.left)&&fe(h.top)||(u=d(u,V(V({},u),h)))}),u}function vp(t){t.event;var e=t.getAreaRestrictions,n=t.boundaries,r=t.coordinates,o=t.visibleArea;t.aspectRatio;var s=t.stencilSize,a=t.sizeRestrictions,c=t.positionRestrictions;t.stencilReference;var d,u,f,h=V({},r),m=V({},o),y=V({},s);d=Q(y),u=Q(h),f===void 0&&(f=.001),(d===0||u===0?Math.abs(u-d)<f:Math.abs(u/d)<1+f&&Math.abs(u/d)>1-f)||(h=V(V({},h),st({sizeRestrictions:a,width:h.width,height:h.height,aspectRatio:{minimum:Q(y),maximum:Q(y)}})));var w=yi(m=De(m,h.width*n.width/(m.width*y.width)),e({visibleArea:m,type:"resize"}));return w!==1&&(m=De(m,w),h=De(h,w)),m=Ce(m=ve(m,en(be(h),be(m))),e({visibleArea:m,type:"move"})),{coordinates:h=Ce(h,wi(Ke(m),c)),visibleArea:m}}function Rp(t){var e=t.event,n=t.getAreaRestrictions,r=t.boundaries,o=t.coordinates,s=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var c=V({},o),d=V({},s);if(o&&s&&e.type!=="manipulateImage"){var u={width:0,height:0};d.width,r.width,Q(r)>Q(c)?(u.height=.8*r.height,u.width=u.height*Q(c)):(u.width=.8*r.width,u.height=u.width*Q(c));var f=yi(d=De(d,c.width*r.width/(d.width*u.width)),n({visibleArea:d,type:"resize"}));d=De(d,f),f!==1&&(u.height/=f,u.width/=f),d=Ce(d=ve(d,en(be(c),be(d))),n({visibleArea:d,type:"move"})),c=Ce(c,wi(Ke(d),a))}return{coordinates:c,visibleArea:d}}function $p(t){var e=t.event,n=t.coordinates,r=t.visibleArea,o=t.getAreaRestrictions,s=V({},r),a=V({},n);if(e.type==="setCoordinates"){var c=Math.max(0,a.width-s.width),d=Math.max(0,a.height-s.height);c>d?s=De(s,Math.min(a.width/s.width,tn(s,o({visibleArea:s,type:"resize"})))):d>c&&(s=De(s,Math.min(a.height/s.height,tn(s,o({visibleArea:s,type:"resize"}))))),s=Ce(s=ve(s,gi(nn(a,Ke(s)))),o({visibleArea:s,type:"move"}))}return{visibleArea:s,coordinates:a}}function Ip(t){var e=t.imageSize,n=t.visibleArea,r=t.coordinates,o=n||e;return{left:(n?n.left:0)+o.width/2-r.width/2,top:(n?n.top:0)+o.height/2-r.height/2}}function Ap(t){var e=t.imageSize,n=t.visibleArea,r=t.aspectRatio,o=t.sizeRestrictions,s=n||e,a=Math.min(r.maximum||1/0,Math.max(r.minimum||0,Q(s))),c=s.width<s.height?{width:.8*s.width,height:.8*s.width/a}:{height:.8*s.height,width:.8*s.height*a};return st(V(V({},c),{aspectRatio:r,sizeRestrictions:o}))}function Pp(t){var e,n,r=t.imageSize,o=t.visibleArea,s=t.boundaries,a=t.aspectRatio,c=t.sizeRestrictions,d=t.stencilSize,u=o||r;return Q(u)>Q(s)?n=(e=d.height*u.height/s.height)*Q(d):e=(n=d.width*u.width/s.width)/Q(d),st({width:n,height:e,aspectRatio:a,sizeRestrictions:c})}function Np(t){var e=t.getAreaRestrictions,n=t.coordinates,r=t.imageSize,o=Q(t.boundaries);if(n){var s={height:Math.max(n.height,r.height),width:Math.max(n.width,r.width)},a=Os({width:Q(s)>o?s.width:s.height*o,height:Q(s)>o?s.width/o:s.height},Er(e())),c={left:n.left+n.width/2-a.width/2,top:n.top+n.height/2-a.height/2,width:a.width,height:a.height},d=xn(n,Ke(V({left:0,top:0},r))),u={};return!d.left&&!d.right&&c.width<=r.width&&(u.left=0,u.right=r.width),!d.top&&!d.bottom&&c.height<=r.height&&(u.top=0,u.bottom=r.height),Ce(c,u)}var f=Q(r);return a={height:f>o?r.height:r.width/o,width:f>o?r.height*o:r.width},{left:r.width/2-a.width/2,top:r.height/2-a.height/2,width:a.width,height:a.height}}function bi(t,e){return Fs(t,Ke(e))}function zp(t){var e=t.event,n=t.coordinates,r=t.visibleArea,o=t.sizeRestrictions,s=t.getAreaRestrictions,a=t.positionRestrictions,c=t.adjustStencil,d=e.scale,u=e.move,f=V({},r),h=V({},n),m=1,y=1,w=d.factor&&Math.abs(d.factor-1)>.001;f=ve(f,{left:u.left||0,top:u.top||0});var k={stencil:{minimum:Math.max(o.minWidth?o.minWidth/h.width:0,o.minHeight?o.minHeight/h.height:0),maximum:Math.min(o.maxWidth?o.maxWidth/h.width:1/0,o.maxHeight?o.maxHeight/h.height:1/0,tn(h,a))},area:{maximum:tn(f,s({visibleArea:f,type:"resize"}))}};d.factor&&w&&(d.factor<1?(y=Math.max(d.factor,k.stencil.minimum))>1&&(y=1):d.factor>1&&(y=Math.min(d.factor,Math.min(k.area.maximum,k.stencil.maximum)))<1&&(y=1)),y&&(f=De(f,y,d.center));var x=n.left-r.left,C=r.width+r.left-(n.width+n.left),A=n.top-r.top,E=r.height+r.top-(n.height+n.top);return f=Ce(f=ve(f,nn(f,{left:a.left!==void 0?a.left-x*y:void 0,top:a.top!==void 0?a.top-A*y:void 0,bottom:a.bottom!==void 0?a.bottom+E*y:void 0,right:a.right!==void 0?a.right+C*y:void 0})),s({visibleArea:f,type:"move"})),h.width=h.width*y,h.height=h.height*y,h.left=f.left+x*y,h.top=f.top+A*y,h=Ce(h,wi(Ke(f),a)),d.factor&&w&&c&&(d.factor>1?m=Math.min(k.area.maximum,d.factor)/y:d.factor<1&&(m=Math.max(h.height/f.height,h.width/f.width,d.factor/y)),m!==1&&(f=ve(f=Ce(f=De(f,m,d.factor>1?d.center:be(h)),s({visibleArea:f,type:"move"})),gi(nn(h,Ke(f)))))),{coordinates:h,visibleArea:f}}function Tp(t){var e=t.aspectRatio,n=t.getAreaRestrictions,r=t.coordinates,o=t.visibleArea,s=t.sizeRestrictions,a=t.positionRestrictions,c=t.imageSize,d=t.previousImageSize,u=t.angle,f=V({},r),h=V({},o),m=mt(be(V({left:0,top:0},d)),u);return(f=V(V({},st({sizeRestrictions:s,aspectRatio:e,width:f.width,height:f.height})),mt(be(f),u))).left-=m.left-c.width/2+f.width/2,f.top-=m.top-c.height/2+f.height/2,h=De(h,yi(h,n({visibleArea:h,type:"resize"}))),{coordinates:f=Ce(f,a),visibleArea:h=Ce(h=ve(h,en(be(f),be(r))),n({visibleArea:h,type:"move"}))}}function Op(t){var e=t.flip,n=t.previousFlip,r=t.rotate,o=t.getAreaRestrictions,s=t.coordinates,a=t.visibleArea,c=t.imageSize,d=V({},s),u=V({},a),f=n.horizontal!==e.horizontal,h=n.vertical!==e.vertical;if(f||h){var m=mt({left:c.width/2,top:c.height/2},-r),y=mt(be(d),-r),w=mt({left:f?m.left-(y.left-m.left):y.left,top:h?m.top-(y.top-m.top):y.top},r);d=ve(d,en(w,be(d))),y=mt(be(u),-r),u=Ce(u=ve(u,en(w=mt({left:f?m.left-(y.left-m.left):y.left,top:h?m.top-(y.top-m.top):y.top},r),be(u))),o({visibleArea:u,type:"move"}))}return{coordinates:d,visibleArea:u}}function Hs(t){var e=t.directions,n=t.coordinates,r=t.positionRestrictions,o=r===void 0?{}:r,s=t.sizeRestrictions,a=t.preserveRatio,c=t.compensate,d=V({},e),u=et(n,d).width,f=et(n,d).height;u<0&&(d.left<0&&d.right<0?(d.left=-(n.width-s.minWidth)/(d.left/d.right),d.right=-(n.width-s.minWidth)/(d.right/d.left)):d.left<0?d.left=-(n.width-s.minWidth):d.right<0&&(d.right=-(n.width-s.minWidth))),f<0&&(d.top<0&&d.bottom<0?(d.top=-(n.height-s.minHeight)/(d.top/d.bottom),d.bottom=-(n.height-s.minHeight)/(d.bottom/d.top)):d.top<0?d.top=-(n.height-s.minHeight):d.bottom<0&&(d.bottom=-(n.height-s.minHeight)));var h=xn(et(n,d),o);c&&(h.left&&h.left>0&&h.right===0?(d.right+=h.left,d.left-=h.left):h.right&&h.right>0&&h.left===0&&(d.left+=h.right,d.right-=h.right),h.top&&h.top>0&&h.bottom===0?(d.bottom+=h.top,d.top-=h.top):h.bottom&&h.bottom>0&&h.top===0&&(d.top+=h.bottom,d.bottom-=h.bottom),h=xn(et(n,d),o));var m={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(Je.forEach(function(k){var x=h[k];x&&d[k]&&(m[k]=Math.max(0,1-x/d[k]))}),a){var y=Math.min.apply(null,Je.map(function(k){return m[k]}));y!==1/0&&Je.forEach(function(k){d[k]*=y})}else Je.forEach(function(k){m[k]!==1/0&&(d[k]*=m[k])});if(u=et(n,d).width,f=et(n,d).height,d.right+d.left&&(u>s.maxWidth?m.width=(s.maxWidth-n.width)/(d.right+d.left):u<s.minWidth&&(m.width=(s.minWidth-n.width)/(d.right+d.left))),d.bottom+d.top&&(f>s.maxHeight?m.height=(s.maxHeight-n.height)/(d.bottom+d.top):f<s.minHeight&&(m.height=(s.minHeight-n.height)/(d.bottom+d.top))),a){var w=Math.min(m.width,m.height);w!==1/0&&Je.forEach(function(k){d[k]*=w})}else m.width!==1/0&&Sp.forEach(function(k){d[k]*=m.width}),m.height!==1/0&&kp.forEach(function(k){d[k]*=m.height});return d}function Ci(t,e,n){return e==0&&n==0?t/2:e==0?0:n==0?t:t*Math.abs(e/(e+n))}var Vp=Ue("vue-simple-handler"),Fp=Ue("vue-simple-handler-wrapper"),Br={name:"SimpleHandler",components:{HandlerWrapper:Ps},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=(Fe(t={},this.horizontalPosition,!!this.horizontalPosition),Fe(t,this.verticalPosition,!!this.verticalPosition),Fe(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),Fe(t,"hover",this.hover),t);return{default:le(Vp(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:le(Fp(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"]};Br.render=function(t,e,n,r,o,s){var a=i.resolveComponent("HandlerWrapper");return i.openBlock(),i.createBlock(a,{class:s.classes.wrapper,"vertical-position":n.verticalPosition,"horizontal-position":n.horizontalPosition,disabled:n.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Dp=Ue("vue-simple-line"),Lp=Ue("vue-simple-line-wrapper"),vr={name:"SimpleLine",components:{LineWrapper:Ns},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:le(Dp(Fe({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:le(Lp(Fe({},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"]};vr.render=function(t,e,n,r,o,s){var a=i.resolveComponent("LineWrapper");return i.openBlock(),i.createBlock(a,{class:s.classes.wrapper,position:n.position,disabled:n.disabled,onDrag:s.onDrag,onDragEnd:s.onDragEnd,onEnter:s.onEnter,onLeave:s.onLeave},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var Rr=Ue("vue-bounding-box"),Hp=["east","west",null],qp=["south","north",null],qs={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 Br}},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 vr}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return Hp.forEach(function(e){qp.forEach(function(n){if(e!==n){var r=Bs(e,n),o=r.name,s=r.classname;t.push({name:o,classname:s,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:Rr(),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:le(t.classes.lines.default,t.classes.lines[n.name],!t.resizable&&t.classes.lines.disabled),wrapperClass:le(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(o){if(t.handlers[o.name]){var s={name:o.name,component:t.handlersComponent,class:le(t.classes.handlers.default,t.classes.handlers[o.name]),wrapperClass:le(t.classes.handlersWrappers.default,t.classes.handlersWrappers[o.name]),hoverClass:t.classes.handlers.hover,verticalDirection:o.verticalDirection,horizontalDirection:o.horizontalDirection,disabled:!t.resizable};if(n&&r){var a=o.horizontalDirection,c=o.verticalDirection,d=a==="east"?n:a==="west"?0:n/2,u=c==="south"?r:c==="north"?0:r/2;s.wrapperClass=Rr("handler"),s.wrapperStyle={transform:"translate(".concat(d,"px, ").concat(u,"px)")},t.transitions&&t.transitions.enabled&&(s.wrapperStyle.transition="".concat(t.transitions.time,"ms ").concat(t.transitions.timingFunction))}else s.wrapperClass=Rr("handler",Fe({},o.classname,!0));e.push(s)}}),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,o=t.shift(),s=o.left,a=o.top,c={left:0,right:0,top:0,bottom:0};e==="west"?c.left-=s:e==="east"&&(c.right+=s),n==="north"?c.top-=a:n==="south"&&(c.bottom+=a),!n&&e?r="width":n&&!e&&(r="height"),this.resizable&&this.$emit("resize",new wp(c,{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"]};qs.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"box",class:s.classes.root,style:s.style},[i.renderSlot(t.$slots,"default"),i.createVNode("div",null,[(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.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(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[1]||(e[1]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(i.openBlock(!0),i.createBlock(i.Fragment,null,i.renderList(s.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(c){return s.onHandlerDrag(c,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[2]||(e[2]=function(c){return s.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var Up=Ue("vue-draggable-area"),Us={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:Up()}}},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=At(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()):As({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=At(e);if(this.touches.length){var r=this.$refs.container.getBoundingClientRect(),o=r.left,s=r.top;this.touches.length===1&&n.length===1&&this.$emit("move",new Cr({left:n[0].clientX-(o+this.anchor.x),top:n[0].clientY-(s+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};Us.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],544)};function $r(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 _p(t){return new Promise(function(e,n){try{if(t)if(/^data:/i.test(t))e(function(d){d=d.replace(/^data:([^;]+);base64,/gim,"");for(var u=atob(d),f=u.length,h=new ArrayBuffer(f),m=new Uint8Array(h),y=0;y<f;y++)m[y]=u.charCodeAt(y);return h}(t));else if(/^blob:/i.test(t)){var r=new FileReader;r.onload=function(d){e(d.target.result)},s=t,a=function(d){r.readAsArrayBuffer(d)},(c=new XMLHttpRequest).open("GET",s,!0),c.responseType="blob",c.onload=function(){this.status!=200&&this.status!==0||a(this.response)},c.send()}else{var o=new XMLHttpRequest;o.onreadystatechange=function(){o.readyState===4&&(o.status===200||o.status===0?e(o.response):n("Warning: could not load an image to parse its orientation"),o=null)},o.onprogress=function(){o.getResponseHeader("content-type")!=="image/jpeg"&&o.abort()},o.withCredentials=!1,o.open("GET",t,!0),o.responseType="arraybuffer",o.send(null)}else n("Error: the image is empty")}catch(d){n(d)}var s,a,c})}function _s(t){var e=t.rotate,n=t.flip,r=t.scaleX,o=t.scaleY,s="";return s+=" rotate("+e+"deg) ",s+=" scaleX("+r*(n.horizontal?-1:1)+") ",s+=" scaleY("+o*(n.vertical?-1:1)+") "}function jp(t){try{var e,n=new DataView(t),r=void 0,o=void 0,s=void 0,a=void 0;if(n.getUint8(0)===255&&n.getUint8(1)===216)for(var c=n.byteLength,d=2;d+1<c;){if(n.getUint8(d)===255&&n.getUint8(d+1)===225){s=d;break}d++}if(s&&(r=s+10,function(y,w,k){var x,C="";for(x=w,k+=w;x<k;x++)C+=String.fromCharCode(y.getUint8(x));return C}(n,s+4,4)==="Exif")){var u=n.getUint16(r);if(((o=u===18761)||u===19789)&&n.getUint16(r+2,o)===42){var f=n.getUint32(r+4,o);f>=8&&(a=r+f)}}if(a){for(var h=n.getUint16(a,o),m=0;m<h;m++)if(d=a+12*m+2,n.getUint16(d,o)===274){d+=8,e=n.getUint16(d,o),n.setUint16(d,1,o);break}}return e}catch{return null}}function js(t,e){var n=e.getBoundingClientRect(),r=n.left,o=n.top,s={left:0,top:0},a=0;return t.forEach(function(c){s.left+=(c.clientX-r)/t.length,s.top+=(c.clientY-o)/t.length}),t.forEach(function(c){a+=As({x:s.left,y:s.top},{x:c.clientX-r,y:c.clientY-o})}),{centerMass:s,spread:a,count:t.length}}var Ws={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=wr(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 kn({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=js(e,this.$refs.container),r=this.oldGeometricProperties;r.count===n.count&&r.count>1&&this.$emit("resize",new kn({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,o=n.top,s=n.bottom,a=n.right;this.touches=At(t.touches).filter(function(c){return c.clientX>r&&c.clientX<a&&c.clientY>o&&c.clientY<s}),this.oldGeometricProperties=js(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=At(t.touches).filter(function(r){return!r.identifier||e.touches.find(function(o){return o.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,o=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(c=+a)==0||Is(c)?c:c>0?1:-1),s={left:t.clientX-n,top:t.clientY-r};this.$emit("resize",new kn({},{factor:o,center:s})),this.touches.length||this.debouncedProcessEnd()}var a,c}},emits:["resize","move","transform-end"]};Ws.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return s.onTouchStart&&s.onTouchStart.apply(s,arguments)}),onMousedown:e[2]||(e[2]=function(){return s.onMouseDown&&s.onMouseDown.apply(s,arguments)}),onWheel:e[3]||(e[3]=function(){return s.onWheel&&s.onWheel.apply(s,arguments)})},[i.renderSlot(t.$slots,"default")],544)};var Ir={components:{TransformableImage:Ws},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,o,s){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(c){return t.$emit("move",c)}),onResize:e[2]||(e[2]=function(c){return t.$emit("resize",c)})},{default:i.withCtx(function(){return[i.renderSlot(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var Si=Ue("vue-preview"),Gs={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:Si({fill:this.fill}),wrapper:Si("wrapper"),imageWrapper:Si("image-wrapper"),image:le(Si("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=X(X({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),n=this.imageSize.width,r=this.imageSize.height,o=Vs({width:n,height:r},e.rotate),s={width:"".concat(n,"px"),height:"".concat(r,"px"),left:"0px",top:"0px"},a={rotate:{left:(n-o.width)*e.scaleX/2,top:(r-o.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*n/2,top:(1-e.scaleY)*r/2}};return s.transform=`translate(
41
+ `.concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+_s(e),this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}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()}}};Gs.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"root",class:s.classes.root,style:s.style},[i.createVNode("div",{ref:"wrapper",class:s.classes.wrapper,style:s.wrapperStyle},[i.withDirectives(i.createVNode("img",{ref:"image",src:n.image&&n.image.src,class:s.classes.image,style:s.imageStyle},null,14,["src"]),[[i.vShow,n.image&&n.image.src]])],6)],6)};var Zs={components:{Preview:Gs},inheritAttrs:!1};Zs.render=function(t,e,n,r,o,s){var a=i.resolveComponent("preview");return i.openBlock(),i.createBlock(a,i.mergeProps(t.$attrs,{fill:!0}),null,16)};var Ar=Ue("vue-rectangle-stencil"),Xs={name:"RectangleStencil",components:{StencilPreview:Zs,BoundingBox:qs,DraggableArea:Us},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Br}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return vr}},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:le(Ar({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:le(Ar("preview"),this.previewClass),boundingBox:le(Ar("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,n=t.width,r=t.left,o=t.top,s={width:"".concat(n,"px"),height:"".concat(e,"px"),transform:"translate(".concat(r,"px, ").concat(o,"px)")};return this.transitions&&this.transitions.enabled&&(s.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),s}},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"]};Xs.render=function(t,e,n,r,o,s){var a=i.resolveComponent("stencil-preview"),c=i.resolveComponent("draggable-area"),d=i.resolveComponent("bounding-box");return i.openBlock(),i.createBlock("div",{class:s.classes.stencil,style:s.style},[i.createVNode(d,{width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,transitions:n.transitions,class:s.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:s.onResize,onResizeEnd:s.onResizeEnd},{default:i.withCtx(function(){return[i.createVNode(c,{movable:n.movable,onMove:s.onMove,onMoveEnd:s.onMoveEnd},{default:i.withCtx(function(){return[i.createVNode(a,{image:n.image,coordinates:n.coordinates,width:n.stencilCoordinates.width,height:n.stencilCoordinates.height,class:s.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 Wp=["transitions"],at=Ue("vue-advanced-cropper"),Qs={name:"Cropper",components:{BackgroundWrapper:Ir},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return Xs}},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 Ep.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,o=t.positionRestrictions,s=t.sizeRestrictions,a=V(V({},n),{right:n.left+n.width,bottom:n.top+n.height}),c=e.params||{},d=V({},e.directions),u=c.allowedDirections||{left:!0,right:!0,bottom:!0,top:!0};s.widthFrozen&&(d.left=0,d.right=0),s.heightFrozen&&(d.top=0,d.bottom=0),Je.forEach(function(z){u[z]||(d[z]=0)});var f=et(a,d=Hs({coordinates:a,directions:d,sizeRestrictions:s,positionRestrictions:o})).width,h=et(a,d).height,m=c.preserveRatio?Q(a):xr(f/h,r);if(m){var y=c.respectDirection;if(y||(y=a.width>=a.height||m===1?"width":"height"),y==="width"){var w=f/m-a.height;if(u.top&&u.bottom){var k=d.top,x=d.bottom;d.bottom=Ci(w,x,k),d.top=Ci(w,k,x)}else u.bottom?d.bottom=w:u.top?d.top=w:u.right?d.right=0:u.left&&(d.left=0)}else if(y==="height"){var C=a.width-h*m;if(u.left&&u.right){var A=d.left,E=d.right;d.left=-Ci(C,A,E),d.right=-Ci(C,E,A)}else u.left?d.left=-C:u.right?d.right=-C:u.top?d.top=0:u.bottom&&(d.bottom=0)}d=Hs({directions:d,coordinates:a,sizeRestrictions:s,positionRestrictions:o,preserveRatio:!0,compensate:c.compensate})}return f=et(a,d).width,h=et(a,d).height,(m=c.preserveRatio?Q(a):xr(f/h,r))&&Math.abs(m-f/h)>.001&&Je.forEach(function(z){u[z]||(d[z]=0)}),Mr({event:new Cr({left:-d.left,top:-d.top}),coordinates:{width:n.width+d.right+d.left,height:n.height+d.top+d.bottom,left:n.left,top:n.top},positionRestrictions:o})}},moveAlgorithm:{type:Function,default:Mr},initStretcher:{type:Function,default:function(t){var e=t.stretcher,n=t.imageSize,r=Q(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,o=t.sizeRestrictions,s=t.positionRestrictions,a=V(V({},n),st({width:n.width,height:n.height,aspectRatio:r,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,o.minHeight),minWidth:Math.min(e.width,o.minWidth)}}));return a=Ce(a=ve(a,en(be(n),be(a))),wi(Ke(e),s))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.getAreaRestrictions,o=t.coordinates,s=V({},e);s.height=s.width/Q(n),s.top+=(e.height-s.height)/2,(o.height-s.height>0||o.width-s.width>0)&&(s=De(s,Math.max(o.height/s.height,o.width/s.width)));var a=gi(nn(o,Ke(s=De(s,yi(s,r({visibleArea:s,type:"resize"}))))));return s.width<o.width&&(a.left=0),s.height<o.height&&(a.top=0),s=Ce(s=ve(s,a),r({visibleArea:s,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,n=t.boundaries,r=t.imageSize,o=t.imageRestriction,s=t.type,a={};return o==="fill-area"?a={left:0,top:0,right:r.width,bottom:r.height}:o==="fit-area"&&(Q(n)>Q(r)?(a={top:0,bottom:r.height},e&&s==="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&&s==="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:X({},zs)}},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=br(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:br(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:fe(this.minWidth)?0:pi(this.minWidth),minHeight:fe(this.minHeight)?0:pi(this.minHeight),maxWidth:fe(this.maxWidth)?1/0:pi(this.maxWidth),maxHeight:fe(this.maxHeight)?1/0:pi(this.maxHeight)});if(t=function(r){var o=r.areaRestrictions,s=r.sizeRestrictions,a=r.boundaries,c=r.positionRestrictions,d=V(V({},s),{minWidth:s.minWidth!==void 0?s.minWidth:0,minHeight:s.minHeight!==void 0?s.minHeight:0,maxWidth:s.maxWidth!==void 0?s.maxWidth:1/0,maxHeight:s.maxHeight!==void 0?s.maxHeight:1/0});c.left!==void 0&&c.right!==void 0&&(d.maxWidth=Math.min(d.maxWidth,c.right-c.left)),c.bottom!==void 0&&c.top!==void 0&&(d.maxHeight=Math.min(d.maxHeight,c.bottom-c.top));var u=Er(o),f=Os(a,u);return u.width<1/0&&(!d.maxWidth||d.maxWidth>f.width)&&(d.maxWidth=Math.min(d.maxWidth,f.width)),u.height<1/0&&(!d.maxHeight||d.maxHeight>f.height)&&(d.maxHeight=Math.min(d.maxHeight,f.height)),d.minWidth>d.maxWidth&&(d.minWidth=d.maxWidth,d.widthFrozen=!0),d.minHeight>d.maxHeight&&(d.minHeight=d.maxHeight,d.heightFrozen=!0),d}({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=Er(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:at(),image:le(at("image"),this.imageClass),stencil:at("stencil"),boundaries:le(at("boundaries"),this.boundariesClass),stretcher:le(at("stretcher")),background:le(at("background"),this.backgroundClass),foreground:le(at("foreground"),this.foregroundClass),imageWrapper:le(at("image-wrapper")),cropperWrapper:le(at("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,n=t.height,r=t.left,o=t.top;return{width:e/this.coefficient,height:n/this.coefficient,left:(r-this.visibleArea.left)/this.coefficient,top:(o-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=X(X({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),o={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)")+_s(r)};return this.transitionsOptions.enabled&&(o.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),o}},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=wr(this.update,this.debounce),this.debouncedDisableTransitions=wr(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(X({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:X({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var n=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?X({},this.visibleArea):null,imageTransforms:e,get canvas(){return n.canvas?n.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?X({},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,o=r===void 0||r;this.onManipulateImage(new kn({},{factor:1/t,center:e}),{normalize:!1,transitions:o})},move:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,o=r===void 0||r;this.onManipulateImage(new kn({left:t||0,top:e||0}),{normalize:!1,transitions:o})},setCoordinates:function(t){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.autoZoom,o=r===void 0||r,s=n.transitions,a=s===void 0||s;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),o&&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,o=e.positionRestrictions,s={width:Math.round(n.width),height:Math.round(n.height),left:Math.round(n.left),top:Math.round(n.top)};return s.width>r.maxWidth?s.width=Math.floor(n.width):s.width<r.minWidth&&(s.width=Math.ceil(n.width)),s.height>r.maxHeight?s.height=Math.floor(n.height):s.height<r.minHeight&&(s.height=Math.ceil(n.height)),Ce(s,o)}(X(X({},this.getPublicProperties()),{},{positionRestrictions:bi(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,n,r){var o=this.autoZoomAlgorithm;o||(o=this.stencilSize?vp:this.autoZoom?Rp:$p);var s=o({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 X(X({},s),{},{changed:!Ts(s.visibleArea,e)||!Ts(s.coordinates,n)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transitions,r=n!==void 0&&n,o=gp(e,Wp),s=this.processAutoZoom(t,this.visibleArea,this.coordinates,o),a=s.visibleArea,c=s.coordinates,d=s.changed;r&&d&&this.enableTransitions(),this.visibleArea=a,this.coordinates=c,r&&d&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var n=e.event,r=e.visibleArea,o=e.coefficient;if(n.type==="manipulateImage")return V(V({},n),{move:{left:n.move&&n.move.left?o*n.move.left:0,top:n.move&&n.move.top?o*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*o+r.left,top:n.scale.center.top*o+r.top}:null}});if(n.type==="resize"){var s=V(V({},n),{directions:V({},n.directions)});return Je.forEach(function(c){s.directions[c]*=o}),s}if(n.type==="move"){var a=V(V({},n),{directions:V({},n.directions)});return xp.forEach(function(c){a.directions[c]*=o}),a}return n}(X(X({},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(c,d,u){var f=u.rotate,h=u.flip,m={width:d.naturalWidth,height:d.naturalHeight},y=Vs(m,f),w=c.getContext("2d");c.height=y.height,c.width=y.width,w.save();var k=mt(be(V({left:0,top:0},m)),f);return w.translate(-(k.left-y.width/2),-(k.top-y.height/2)),w.rotate(f*Math.PI/180),w.translate(h.horizontal?m.width:0,h.vertical?m.height:0),w.scale(h.horizontal?-1:1,h.vertical?-1:1),w.drawImage(d,0,0,m.width,m.height),w.restore(),c}(this.$refs.sourceCanvas,e,this.imageTransforms):e,r=X({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),o=function(c){return c.find(function(d){return u=d,!Number.isNaN(parseFloat(u))&&isFinite(u);var u})},s=st({sizeRestrictions:{minWidth:o([r.width,r.minWidth])||0,minHeight:o([r.height,r.minHeight])||0,maxWidth:o([r.width,r.maxWidth])||1/0,maxHeight:o([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&&s.width*s.height>r.maxArea){var a=Math.sqrt(r.maxArea/(s.width*s.height));s={width:Math.round(a*s.width),height:Math.round(a*s.height)}}return function(c,d,u,f,h){c.width=f?f.width:u.width,c.height=f?f.height:u.height;var m=c.getContext("2d");m.clearRect(0,0,c.width,c.height),h&&(h.imageSmoothingEnabled&&(m.imageSmoothingEnabled=h.imageSmoothingEnabled),h.imageSmoothingQuality&&(m.imageSmoothingQuality=h.imageSmoothingQuality),h.fillColor&&(m.fillStyle=h.fillColor,m.fillRect(0,0,c.width,c.height),m.save()));var y=u.left<0?-u.left:0,w=u.top<0?-u.top:0;m.drawImage(d,u.left+y,u.top+w,u.width,u.height,y*(c.width/u.width),w*(c.height/u.height),c.width,c.height)}(t,n,this.coordinates,s,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?Mp(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,r=this.visibleArea&&e?bi(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return Bp({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?Pp:Ap);var n=this.sizeRestrictions;n.minWidth,n.minHeight,n.maxWidth,n.maxHeight;var r=Kt(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,o=this.defaultPosition||Ip,s=[r,function(a){var c=a.coordinates;return X({},Kt(o)?o({coordinates:c,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&s.push.apply(s,At(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(s,!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(Kt(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(r):t.defaultBoundaries==="fit"?t.boundaries=function(o){var s=o.cropper,a=o.imageSize,c=s.clientHeight,d=s.clientWidth,u=c,f=a.width*c/a.height;return f>d&&(f=d,u=a.height*d/a.width),{width:f,height:u}}(r):t.boundaries=function(o){var s=o.cropper;return{width:s.clientWidth,height:s.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=X(X({},this.defaultImageTransforms),{},{flip:X({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,n,r,o,s,a,c=t.defaultVisibleArea||Np;t.visibleArea=Kt(c)?c({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,o=e.getAreaRestrictions,s=V({},n),a=Q(r),s.width/s.height!==a&&(s.height=s.width/a),Ce(s,o({visibleArea:s,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(o){if(Rs(o))return!1;var s=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(o)||[],c={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},d=function(u){return u.port||((u.protocol||s.protocol)==="http"?80:433)};return!(!c.protocol&&!c.host&&!c.port||c.protocol&&c.protocol==s.protocol&&c.host&&c.host==s.host&&c.host&&d(c)==d(s))}(this.src)){var n=fe(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(o){_p(t).then(function(s){var a=jp(s);o(s?{source:t,arrayBuffer:s,orientation:a}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(s){console.warn(s),o({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,o=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,r&&o&&o>1?vs(n)||!Rs(n)?(this.imageAttributes.src=URL.createObjectURL(new Blob([r])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(s){for(var a=[],c=new Uint8Array(s);c.length>0;){var d=c.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(d):d.slice())),c=c.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(r):this.imageAttributes.src=n,Kt(this.defaultTransforms)?this.appliedImageTransforms=$r(this.defaultTransforms()):mi(this.defaultTransforms)?this.appliedImageTransforms=$r(this.defaultTransforms):this.appliedImageTransforms=function(s){var a=$r({});if(s)switch(s){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}(o),this.defaultImageTransforms=X(X({},this.appliedImageTransforms),{},{flip:X({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var s=e.$refs.image;s&&s.complete&&(function(a){return!!a.naturalWidth}(s)?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(X(X({},e.getPublicProperties()),{},{positionRestrictions:bi(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(X(X({},e.getPublicProperties()),{},{positionRestrictions:bi(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,o=e.normalize,s=o===void 0||o;r&&this.enableTransitions();var a=zp(X(X({},this.getPublicProperties()),{},{event:s?this.normalizeEvent(t):t,getAreaRestrictions:this.getAreaRestrictions,imageRestriction:this.imageRestriction,adjustStencil:!this.stencilSize&&this.settings.resizeImage.adjustStencil})),c=a.visibleArea,d=a.coordinates;this.visibleArea=c,this.coordinates=d,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,o=r.aspectRatio,s=r.minAspectRatio,a=r.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var c=this.$refs.stencil.aspectRatios();e=c.minimum,n=c.maximum}if(fe(e)&&(e=fe(o)?s:o),fe(n)&&(n=fe(o)?a:o),!t&&(fe(e)||fe(n))){var d=this.getStencilSize(),u=d?Q(d):null;fe(e)&&(e=$s(u)?u:void 0),fe(n)&&(n=$s(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,xr(Q(o=Kt(n)?n({boundaries:e,aspectRatio:r}):n),r)&&(o=st({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:r.minimum,maximum:r.maximum}})),(o.width>e.width||o.height>e.height)&&(o=st({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:Q(o),maximum:Q(o)}})),o;var t,e,n,r,o},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 X({},zs)},flip:function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.transitions,o=r===void 0||r;if(!this.transitionsActive){o&&this.enableTransitions();var s=X({},this.imageTransforms.flip),a=Op({flip:{horizontal:t?!s.horizontal:s.horizontal,vertical:e?!s.vertical:s.vertical},previousFlip:s,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()}),c=a.visibleArea,d=a.coordinates;t&&(this.appliedImageTransforms.flip.horizontal=!this.appliedImageTransforms.flip.horizontal),e&&(this.appliedImageTransforms.flip.vertical=!this.appliedImageTransforms.flip.vertical),this.visibleArea=c,this.coordinates=d,this.onChange(),o&&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 o=X({},this.imageSize);this.appliedImageTransforms.rotate+=t;var s=Tp({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:o,imageSize:this.imageSize,angle:t,positionRestrictions:this.positionRestrictions,sizeRestrictions:this.sizeRestrictions,getAreaRestrictions:this.getAreaRestrictions,aspectRatio:this.getAspectRatio()}),a=s.visibleArea,c=s.coordinates,d=this.processAutoZoom("rotateImage",a,c);a=d.visibleArea,c=d.coordinates,this.visibleArea=a,this.coordinates=c,this.onChange(),r&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]},Gp={key:0,ref:"canvas",style:{display:"none"}},Zp={key:1,ref:"sourceCanvas",style:{display:"none"}};Qs.render=function(t,e,n,r,o,s){return i.openBlock(),i.createBlock("div",{ref:"cropper",class:s.classes.cropper},[i.createVNode("div",{ref:"stretcher",class:s.classes.stretcher},null,2),i.createVNode("div",{class:s.classes.boundaries,style:s.boundariesStyle},[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.backgroundWrapperComponent),{class:s.classes.cropperWrapper,"wheel-resize":s.settings.resizeImage.wheel,"touch-resize":s.settings.resizeImage.touch,"touch-move":s.settings.moveImage.touch,"mouse-move":s.settings.moveImage.mouse,onMove:s.onManipulateImage,onResize:s.onManipulateImage},{default:i.withCtx(function(){return[i.createVNode("div",{class:s.classes.background,style:s.boundariesStyle},null,6),i.createVNode("div",{class:s.classes.imageWrapper},[i.createVNode("img",{ref:"image",crossorigin:o.imageAttributes.crossOrigin,src:o.imageAttributes.src,class:s.classes.image,style:s.imageStyle,onMousedown:e[1]||(e[1]=i.withModifiers(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),i.createVNode("div",{class:s.classes.foreground,style:s.boundariesStyle},null,6),i.withDirectives((i.openBlock(),i.createBlock(i.resolveDynamicComponent(n.stencilComponent),i.mergeProps({ref:"stencil",image:s.image,coordinates:o.coordinates,"stencil-coordinates":s.stencilCoordinates,transitions:s.transitionsOptions},n.stencilProps,{onResize:s.onResize,onResizeEnd:s.onResizeEnd,onMove:s.onMove,onMoveEnd:s.onMoveEnd}),null,16,["image","coordinates","stencil-coordinates","transitions","onResize","onResizeEnd","onMove","onMoveEnd"])),[[i.vShow,o.imageLoaded]]),n.canvas?(i.openBlock(),i.createBlock("canvas",Gp,null,512)):i.createCommentVNode("",!0),n.canvas?(i.openBlock(),i.createBlock("canvas",Zp,null,512)):i.createCommentVNode("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)};const Xp={width:0,height:0,left:0,top:0};class Pr{constructor(){l(this,"id");l(this,"ratio",0);l(this,"src","");l(this,"coordinates",Xp)}setCoordinates(e){this.coordinates=e}getCoordinates(){return this.coordinates}static Create(e,n=0,r){const o=new Pr;return o.src=e,o.ratio=n,o.id=r,o}setRatio(e){this.ratio=e}getRatio(){return this.ratio}setSrc(e){this.src=e}getSrc(){return this.src}}const Qp={class:"background-container"},Yp={class:"dialog-footer"},Jp=M(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,o=i.ref(n.ratio),s=i.ref(Pr.Create(n.src,n.ratio));s.value.setRatio(o.value);const a=()=>{s.value.setRatio(o.value)},c=i.ref(),d=async()=>{const u=c.value.getResult();u&&u.canvas.toBlob(f=>{var h;r("crop",{blob:f,src:(h=u.canvas)==null?void 0:h.toDataURL()}),r("update:ratio",s.value.coordinates.width/s.value.coordinates.height)})};return(u,f)=>(i.openBlock(),i.createElementBlock("div",Qp,[i.createVNode(hr,{modelValue:i.unref(o),"onUpdate:modelValue":f[0]||(f[0]=h=>i.isRef(o)?o.value=h:null),label:"Задайте пропорции фото",width:"100%",margin:"0 0 20px 0",onChange:a},{default:i.withCtx(()=>[...f[2]||(f[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(Qs),{ref_key:"cropperRef",ref:c,src:i.unref(s).src,"stencil-props":{aspectRatio:i.unref(s).ratio},style:{"max-height":"50vh","min-height":"50vh"},onChange:f[1]||(f[1]=h=>i.unref(s).setCoordinates(h.coordinates))},null,8,["src","stencil-props"]),i.createElementVNode("div",Yp,[i.createVNode(ui,{skin:"text",type:"primary",text:"Сохранить",onClick:d})])]))}}),[["__scopeId","data-v-7b32def2"]]),Kp=M(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"]]),eg=M(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"]]),tg=M(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"]]),ng={key:0},ig=["src"],rg={class:"tools-button"},og={key:1},sg=["id"],ag=i.defineComponent({__name:"PUploaderImage",props:{withCrop:{type:Boolean,default:!0},fileInfo:{type:ye,required:!0,default:new ye},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:s.height*h.value+"px",height:s.height+"px"})),r=i.computed(()=>({width:h.value<.66?s.height*.66+"px":s.height*h.value+"px",height:s.height+"px"})),o=i.computed(()=>({width:h.value<.66?s.height*.66+"px":s.height*h.value+"px",height:s.height+"px"})),s=t,a=e,c=i.ref(void 0),d=de.GUID(),u=i.ref(!1),f=i.ref(),h=i.ref(s.ratio),m=i.ref(""),y=()=>{c.value=void 0,h.value=1,a("update:ratio",1),a("removeFile"),k=document.getElementById(d),k.value=""},w=E=>{E.blob.src=E.src,s.fileInfo.setFile(E.blob),s.fileInfo.fileSystemPath&&(c.value=s.fileInfo),u.value=!1,a("crop")};i.watch(()=>[s.fileInfo.description,s.fileInfo.order,s.fileInfo.fileSystemPath],()=>{s.fileInfo.fileSystemPath&&(c.value=s.fileInfo,c.value.url=s.fileInfo.getFileUrl())}),i.onBeforeMount(()=>{s.fileInfo.fileSystemPath&&(c.value=s.fileInfo,c.value.url=s.fileInfo.getFileUrl())});let k=null;i.onMounted(()=>{document.getElementById("drop-area")&&(k=document.getElementById(d))});const x=()=>{k&&k.click()},C=E=>{m.value=E.url,u.value=!0},A=()=>{if(!k||!k.files||!k.files.length)return;const E=k.files[0];E.url=URL.createObjectURL(E),c.value=E,s.fileInfo.setFile(E),s.withCrop&&C(c.value)};return i.watch(h,E=>{a("update:ratio",E)}),(E,z)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createElementVNode("div",{id:"drop-area",class:"img-container",style:i.normalizeStyle(i.unref(n))},[i.unref(c)?(i.openBlock(),i.createElementBlock("div",ng,[i.createElementVNode("div",{class:"img-block",style:i.normalizeStyle(i.unref(r))},[i.createElementVNode("img",{src:i.unref(c).url,alt:"upload-image"},null,8,ig)],4),i.createElementVNode("div",rg,[i.createElementVNode("div",{class:"ins",style:i.normalizeStyle(i.unref(o))},[i.createElementVNode("div",{class:"change",onClick:z[0]||(z[0]=O=>C(i.unref(c)))},[i.createVNode(Kp,{margin:"0 10px 0 0",size:"40px"})]),i.createElementVNode("div",{claSS:"del",onClick:z[1]||(z[1]=O=>y())},[i.createVNode(eg,{size:"40px"})])],4)])])):(i.openBlock(),i.createElementBlock("div",og,[i.createElementVNode("div",{class:"add-button",style:i.normalizeStyle({width:t.height*i.unref(h)-2+"px",height:t.height-2+"px"}),onClick:x},[i.createVNode(tg,{size:"40px"})],4)]))],4),i.createElementVNode("input",{id:i.unref(d),ref_key:"uploader",ref:f,hidden:"",type:"file",onChange:A},null,40,sg),i.createVNode(pr,{show:i.unref(u),title:"Настройка изображения","max-height":"90vh",top:"5vh"},{default:i.withCtx(()=>[i.createVNode(Jp,{ratio:i.unref(h),"onUpdate:ratio":z[2]||(z[2]=O=>i.isRef(h)?h.value=O:null),src:i.unref(m),onCrop:w,onClose:z[3]||(z[3]=O=>u.value=!1)},null,8,["ratio","src"])]),_:1},8,["show"])],64))}}),lg=M(ag,[["__scopeId","data-v-d0c48ec7"]]);function cg(t){t.component("PTabs",ap),t.component("PUploaderFile",pp),t.component("PUploaderImage",lg),t.component("PAuthForm",xs),t.component("PAuthModal",ip),t.component("PNameEdit",op)}const dg={install:function(t){Gf(t),tp(t),Tm(t),cg(t),Cm(t)}};function ug(t,e={}){const{quasarPlugins:n=!0}=e;n&&t.use(G.Quasar,{plugins:{Notify:G.Notify,Dialog:G.Dialog}}),dg.install(t)}class fg extends zn{constructor(){super(...arguments);l(this,"label","Логин");l(this,"name","login");l(this,"validator",new Dr);l(this,"method",Ft.Login);l(this,"id","field-auth-login")}}const hg=["PF","PFM"],mg=M(i.defineComponent({__name:"ExtractCreateForm",emits:["create"],setup(t,{emit:e}){const n=e,r=ExtractsStore.Item,o=async()=>{await ExtractsStore.Create(),ExtractsStore.AppendToAll([r]),n("create")};return(s,a)=>{const c=i.resolveComponent("PInput"),d=i.resolveComponent("PButton");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(c,{modelValue:i.unref(r).name,"onUpdate:modelValue":a[0]||(a[0]=u=>i.unref(r).name=u)},null,8,["modelValue"]),i.createVNode(d,{text:"Создать",onClick:o})],64)}}}),[["__scopeId","data-v-acdf750a"]]),pg=Object.freeze(Object.defineProperty({__proto__:null,default:M(i.defineComponent({__name:"ExtractsList",setup(t){const e=i.ref(!1),n=i.ref(!1),r=async()=>{n.value=!0},o=async()=>{await Promise.all([r()])},s=()=>{e.value=!e.value};return R.H.Hooks.onBeforeMount(o),(a,c)=>{const d=mg,u=i.resolveComponent("PModal");return i.unref(e)?(i.openBlock(),i.createBlock(u,{key:0,show:i.unref(e)},{default:i.withCtx(()=>[i.createVNode(d,{onCreate:s})]),_:1},8,["show"])):i.createCommentVNode("",!0)}}}),[["__scopeId","data-v-03915680"]])},Symbol.toStringTag,{value:"Module"}));H.AuthButtonLogin=vi,H.AuthButtonRefresh=Vr,H.AuthButtonRegister=Ri,H.AuthButtonRestore=Nn,H.AuthChunks=me,H.AuthFieldsIds=it,H.AuthFormSettings=Hr,H.AuthMethods=Ft,H.EmailField=Tn,H.LoginField=fg,H.PBadge=ms,H.PButton=ui,H.PCheckBox=ps,H.PChip=gs,H.PDialog=ys,H.PF=R,H.PFM=Ef,H.PInput=fi,H.PSelect=hr,H.PToggle=ws,H.PasswordField=On,H.PasswordRepeatField=Lr,H.installSprof=ug,H.pfName=hg,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});