sprof 0.0.213 → 0.0.215

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sprof.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Xl = Object.defineProperty;
2
2
  var Yl = (t, e, i) => e in t ? Xl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
3
3
  var a = (t, e, i) => Yl(t, typeof e != "symbol" ? e + "" : e, i);
4
- import { reactive as ze, ref as T, openBlock as m, createElementBlock as w, createElementVNode as f, getCurrentInstance as Jl, inject as Ql, onUnmounted as Fr, onDeactivated as Kl, onActivated as eu, onBeforeMount as lt, defineComponent as $, computed as ue, mergeProps as It, unref as p, withModifiers as De, renderSlot as P, createTextVNode as is, toDisplayString as Ie, Fragment as V, normalizeClass as ne, normalizeStyle as I, mergeModels as Ee, useModel as pt, withDirectives as Je, vModelCheckbox as tu, createVNode as R, createCommentVNode as J, vModelDynamic as iu, resolveComponent as B, isRef as _e, withKeys as nu, vModelText as Dr, watch as Ze, createBlock as U, vModelRadio as su, vShow as ns, vModelSelect as ru, useCssVars as Lr, onMounted as Xt, renderList as Oe, withCtx as X, resolveDirective as Br, nextTick as ou, Transition as Hr, onBeforeUnmount as ss, createStaticVNode as qr, onUpdated as au, useTemplateRef as lu, resolveDynamicComponent as li } from "vue";
4
+ import { reactive as ze, ref as T, openBlock as m, createElementBlock as w, createElementVNode as f, getCurrentInstance as Jl, inject as Ql, onUnmounted as Fr, onDeactivated as Kl, onActivated as eu, onBeforeMount as ut, defineComponent as $, computed as ue, mergeProps as It, unref as p, withModifiers as De, renderSlot as P, createTextVNode as is, toDisplayString as Ie, Fragment as V, normalizeClass as ne, normalizeStyle as I, mergeModels as Ee, useModel as pt, withDirectives as Je, vModelCheckbox as tu, createVNode as R, createCommentVNode as J, vModelDynamic as iu, resolveComponent as B, isRef as _e, withKeys as nu, vModelText as Dr, watch as Ze, createBlock as U, vModelRadio as su, vShow as ns, vModelSelect as ru, useCssVars as Lr, onMounted as Xt, renderList as Oe, withCtx as X, resolveDirective as Br, nextTick as ou, Transition as Hr, onBeforeUnmount as ss, createStaticVNode as qr, onUpdated as au, useTemplateRef as lu, resolveDynamicComponent as li } from "vue";
5
5
  var Ae = /* @__PURE__ */ ((t) => (t.Login = "login", t.Register = "register", t.Restore = "restore", t.Refresh = "refresh", t))(Ae || {}), xe = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Success = "success", t.Warning = "warning", t.Error = "error", t.Info = "info", t))(xe || {});
6
6
  class Rt {
7
7
  constructor(e, i, n, s) {
@@ -465,7 +465,7 @@ class wu extends Wr {
465
465
  }
466
466
  }
467
467
  const bu = new wu(), Fe = ze(bu);
468
- class nt {
468
+ class st {
469
469
  static Get(e) {
470
470
  const i = localStorage.getItem(e);
471
471
  if (i)
@@ -486,19 +486,19 @@ class Su {
486
486
  this.setAccessToken(e.accessToken), this.setRefreshToken(e.refreshToken);
487
487
  }
488
488
  getAccessToken() {
489
- return nt.Get(Ye.AccessToken);
489
+ return st.Get(Ye.AccessToken);
490
490
  }
491
491
  getRefreshToken() {
492
- return nt.Get(Ye.RefreshToken);
492
+ return st.Get(Ye.RefreshToken);
493
493
  }
494
494
  setAccessToken(e) {
495
- nt.Set(Ye.AccessToken, e);
495
+ st.Set(Ye.AccessToken, e);
496
496
  }
497
497
  setRefreshToken(e) {
498
- nt.Set(Ye.RefreshToken, e);
498
+ st.Set(Ye.RefreshToken, e);
499
499
  }
500
500
  reset() {
501
- nt.Remove(Ye.AccessToken), nt.Remove(Ye.RefreshToken);
501
+ st.Remove(Ye.AccessToken), st.Remove(Ye.RefreshToken);
502
502
  }
503
503
  actualize() {
504
504
  this.setAccessToken(this.getAccessToken()), this.setRefreshToken(this.getAccessToken());
@@ -523,13 +523,13 @@ class Cu {
523
523
  return this.user;
524
524
  }
525
525
  set(e) {
526
- this.userConstructor && (this.user = new this.userConstructor(e), nt.Set(Ye.User, this.user));
526
+ this.userConstructor && (this.user = new this.userConstructor(e), st.Set(Ye.User, this.user));
527
527
  }
528
528
  reset() {
529
- this.user = void 0, nt.Remove(Ye.User);
529
+ this.user = void 0, st.Remove(Ye.User);
530
530
  }
531
531
  actualize() {
532
- const e = nt.Get(Ye.User);
532
+ const e = st.Get(Ye.User);
533
533
  e && this.set(e);
534
534
  }
535
535
  }
@@ -673,7 +673,7 @@ var ir;
673
673
  throw new TypeError();
674
674
  if (!me(E) && !_(E) && !Ht(E))
675
675
  throw new TypeError();
676
- return Ht(E) && (E = void 0), k = et(k), Ol(v, b, k, E);
676
+ return Ht(E) && (E = void 0), k = tt(k), Ol(v, b, k, E);
677
677
  }
678
678
  }
679
679
  e("decorate", Y);
@@ -691,51 +691,51 @@ var ir;
691
691
  function H(v, b, k, E) {
692
692
  if (!me(k))
693
693
  throw new TypeError();
694
- return _(E) || (E = et(E)), qs(v, b, k, E);
694
+ return _(E) || (E = tt(E)), qs(v, b, k, E);
695
695
  }
696
696
  e("defineMetadata", H);
697
697
  function Q(v, b, k) {
698
698
  if (!me(b))
699
699
  throw new TypeError();
700
- return _(k) || (k = et(k)), Ls(v, b, k);
700
+ return _(k) || (k = tt(k)), Ls(v, b, k);
701
701
  }
702
702
  e("hasMetadata", Q);
703
703
  function Ue(v, b, k) {
704
704
  if (!me(b))
705
705
  throw new TypeError();
706
- return _(k) || (k = et(k)), vn(v, b, k);
706
+ return _(k) || (k = tt(k)), vn(v, b, k);
707
707
  }
708
708
  e("hasOwnMetadata", Ue);
709
709
  function je(v, b, k) {
710
710
  if (!me(b))
711
711
  throw new TypeError();
712
- return _(k) || (k = et(k)), Bs(v, b, k);
712
+ return _(k) || (k = tt(k)), Bs(v, b, k);
713
713
  }
714
714
  e("getMetadata", je);
715
715
  function vt(v, b, k) {
716
716
  if (!me(b))
717
717
  throw new TypeError();
718
- return _(k) || (k = et(k)), Hs(v, b, k);
718
+ return _(k) || (k = tt(k)), Hs(v, b, k);
719
719
  }
720
720
  e("getOwnMetadata", vt);
721
721
  function Bt(v, b) {
722
722
  if (!me(v))
723
723
  throw new TypeError();
724
- return _(b) || (b = et(b)), Ns(v, b);
724
+ return _(b) || (b = tt(b)), Ns(v, b);
725
725
  }
726
726
  e("getMetadataKeys", Bt);
727
727
  function Si(v, b) {
728
728
  if (!me(v))
729
729
  throw new TypeError();
730
- return _(b) || (b = et(b)), Us(v, b);
730
+ return _(b) || (b = tt(b)), Us(v, b);
731
731
  }
732
732
  e("getOwnMetadataKeys", Si);
733
733
  function Tl(v, b, k) {
734
734
  if (!me(b))
735
735
  throw new TypeError();
736
- if (_(k) || (k = et(k)), !me(b))
736
+ if (_(k) || (k = tt(k)), !me(b))
737
737
  throw new TypeError();
738
- _(k) || (k = et(k));
738
+ _(k) || (k = tt(k));
739
739
  var E = ei(
740
740
  b,
741
741
  k,
@@ -918,7 +918,7 @@ var ir;
918
918
  function Bl(v) {
919
919
  return "" + v;
920
920
  }
921
- function et(v) {
921
+ function tt(v) {
922
922
  var b = Dl(v);
923
923
  return Fl(b) ? b : Bl(b);
924
924
  }
@@ -1755,7 +1755,7 @@ class os {
1755
1755
  var yt;
1756
1756
  let $u = (yt = class {
1757
1757
  }, a(yt, "Phone", Tt), a(yt, "FileInfo", Te), a(yt, "PostAddress", Di), a(yt, "Website", os), a(yt, "Email", Et), a(yt, "Human", _r), yt);
1758
- class ft {
1758
+ class mt {
1759
1759
  static Shuffle(e) {
1760
1760
  for (let i = e.length - 1; i > 0; i--) {
1761
1761
  const n = Math.floor(Math.random() * (i + 1));
@@ -1833,12 +1833,12 @@ const Zr = class ni {
1833
1833
  return !1;
1834
1834
  if (this.type === we.Join) {
1835
1835
  const i = e.model === this.model && e.operator === this.operator && this.joinTableModel === e.joinTableModel;
1836
- return e.operator === Re.In ? i && ft.Eq(this.set, e.set) : i;
1836
+ return e.operator === Re.In ? i && mt.Eq(this.set, e.set) : i;
1837
1837
  }
1838
1838
  return e.model === this.model && e.col === this.col && e.operator === this.operator;
1839
1839
  }
1840
1840
  valueEq(e) {
1841
- return !this || !e || !this.eq(e) ? !1 : this.type === we.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === we.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === we.Join && this.set.length ? ft.Eq(this.set, e.set) : !1;
1841
+ return !this || !e || !this.eq(e) ? !1 : this.type === we.Boolean ? this.boolean === (e == null ? void 0 : e.boolean) : this.type === we.String ? this.value1 === (e == null ? void 0 : e.value1) : this.type === we.Join && this.set.length ? mt.Eq(this.set, e.set) : !1;
1842
1842
  }
1843
1843
  toUrlQuery() {
1844
1844
  const e = this.type ? `"type":"${this.type}"` : "", i = this.model ? `"model":"${this.model}"` : "", n = this.col ? `"col":"${this.col}"` : "", s = this.operator ? `"operator":"${this.operator}"` : "", r = this.value1 ? `"value1":"${this.value1}"` : "", o = this.type === we.Boolean ? `"boolean":${this.boolean}` : "", u = this.type === we.Date && this.date1 ? `"date1":"${this.date1.toISOString()}"` : "", l = this.type === we.Date && this.date2 ? `"date2":"${this.date2.toISOString()}"` : "", c = this.type === we.Number ? `"number":${this.number}` : "", d = this.type === we.Set || this.operator === Re.In ? `"set":${JSON.stringify(this.set)}` : "", h = this.type === we.Join ? `"joinTableModel":"${this.joinTableModel}"` : "";
@@ -2064,7 +2064,7 @@ const gi = (qe = class {
2064
2064
  return this.f.find((i) => e.id === i.id);
2065
2065
  }
2066
2066
  getFirstSortModel() {
2067
- return ft.GetLast(this.s);
2067
+ return mt.GetLast(this.s);
2068
2068
  }
2069
2069
  setSortModel(e) {
2070
2070
  e && (this.s[0] = e);
@@ -2101,10 +2101,10 @@ Vi([
2101
2101
  Vi([
2102
2102
  F.GetClassConstructor(Gi)
2103
2103
  ], gi.prototype, "t");
2104
- let mt = gi;
2104
+ let Qe = gi;
2105
2105
  var ii;
2106
2106
  let zu = (ii = class {
2107
- }, a(ii, "SortModel", Wi), a(ii, "FilterModel", as), a(ii, "FTSP", ze(mt)), ii);
2107
+ }, a(ii, "SortModel", Wi), a(ii, "FilterModel", as), a(ii, "FTSP", ze(Qe)), ii);
2108
2108
  function Xr(t, e) {
2109
2109
  return function() {
2110
2110
  return t.apply(e, arguments);
@@ -2113,11 +2113,11 @@ function Xr(t, e) {
2113
2113
  const { toString: Ou } = Object.prototype, { getPrototypeOf: ls } = Object, _i = /* @__PURE__ */ ((t) => (e) => {
2114
2114
  const i = Ou.call(e);
2115
2115
  return t[i] || (t[i] = i.slice(8, -1).toLowerCase());
2116
- })(/* @__PURE__ */ Object.create(null)), Qe = (t) => (t = t.toLowerCase(), (e) => _i(e) === t), Zi = (t) => (e) => typeof e === t, { isArray: Yt } = Array, di = Zi("undefined");
2116
+ })(/* @__PURE__ */ Object.create(null)), Ke = (t) => (t = t.toLowerCase(), (e) => _i(e) === t), Zi = (t) => (e) => typeof e === t, { isArray: Yt } = Array, di = Zi("undefined");
2117
2117
  function Fu(t) {
2118
2118
  return t !== null && !di(t) && t.constructor !== null && !di(t.constructor) && Ne(t.constructor.isBuffer) && t.constructor.isBuffer(t);
2119
2119
  }
2120
- const Yr = Qe("ArrayBuffer");
2120
+ const Yr = Ke("ArrayBuffer");
2121
2121
  function Du(t) {
2122
2122
  let e;
2123
2123
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Yr(t.buffer), e;
@@ -2127,11 +2127,11 @@ const Lu = Zi("string"), Ne = Zi("function"), Jr = Zi("number"), Xi = (t) => t !
2127
2127
  return !1;
2128
2128
  const e = ls(t);
2129
2129
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
2130
- }, Hu = Qe("Date"), qu = Qe("File"), Nu = Qe("Blob"), Uu = Qe("FileList"), ju = (t) => Xi(t) && Ne(t.pipe), Wu = (t) => {
2130
+ }, Hu = Ke("Date"), qu = Ke("File"), Nu = Ke("Blob"), Uu = Ke("FileList"), ju = (t) => Xi(t) && Ne(t.pipe), Wu = (t) => {
2131
2131
  let e;
2132
2132
  return t && (typeof FormData == "function" && t instanceof FormData || Ne(t.append) && ((e = _i(t)) === "formdata" || // detect form-data instance
2133
2133
  e === "object" && Ne(t.toString) && t.toString() === "[object FormData]"));
2134
- }, Gu = Qe("URLSearchParams"), [Vu, _u, Zu, Xu] = ["ReadableStream", "Request", "Response", "Headers"].map(Qe), Yu = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
2134
+ }, Gu = Ke("URLSearchParams"), [Vu, _u, Zu, Xu] = ["ReadableStream", "Request", "Response", "Headers"].map(Ke), Yu = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
2135
2135
  function pi(t, e, { allOwnKeys: i = !1 } = {}) {
2136
2136
  if (t === null || typeof t > "u")
2137
2137
  return;
@@ -2207,12 +2207,12 @@ const Ju = (t, e, i, { allOwnKeys: n } = {}) => (pi(e, (s, r) => {
2207
2207
  for (; (i = t.exec(e)) !== null; )
2208
2208
  n.push(i);
2209
2209
  return n;
2210
- }, oc = Qe("HTMLFormElement"), ac = (t) => t.toLowerCase().replace(
2210
+ }, oc = Ke("HTMLFormElement"), ac = (t) => t.toLowerCase().replace(
2211
2211
  /[-_\s]([a-z\d])(\w*)/g,
2212
2212
  function(i, n, s) {
2213
2213
  return n.toUpperCase() + s;
2214
2214
  }
2215
- ), sr = (({ hasOwnProperty: t }) => (e, i) => t.call(e, i))(Object.prototype), lc = Qe("RegExp"), eo = (t, e) => {
2215
+ ), sr = (({ hasOwnProperty: t }) => (e, i) => t.call(e, i))(Object.prototype), lc = Ke("RegExp"), eo = (t, e) => {
2216
2216
  const i = Object.getOwnPropertyDescriptors(t), n = {};
2217
2217
  pi(i, (s, r) => {
2218
2218
  let o;
@@ -2272,7 +2272,7 @@ const gc = (t) => {
2272
2272
  return n;
2273
2273
  };
2274
2274
  return i(t, 0);
2275
- }, pc = Qe("AsyncFunction"), vc = (t) => t && (Xi(t) || Ne(t)) && Ne(t.then) && Ne(t.catch), io = ((t, e) => t ? setImmediate : e ? ((i, n) => ($t.addEventListener("message", ({ source: s, data: r }) => {
2275
+ }, pc = Ke("AsyncFunction"), vc = (t) => t && (Xi(t) || Ne(t)) && Ne(t.then) && Ne(t.catch), io = ((t, e) => t ? setImmediate : e ? ((i, n) => ($t.addEventListener("message", ({ source: s, data: r }) => {
2276
2276
  s === $t && r === i && n.length && n.shift()();
2277
2277
  }, !1), (s) => {
2278
2278
  n.push(s), $t.postMessage(i, "*");
@@ -2312,7 +2312,7 @@ const gc = (t) => {
2312
2312
  inherits: Ku,
2313
2313
  toFlatObject: ec,
2314
2314
  kindOf: _i,
2315
- kindOfTest: Qe,
2315
+ kindOfTest: Ke,
2316
2316
  endsWith: tc,
2317
2317
  toArray: ic,
2318
2318
  forEachEntry: sc,
@@ -3488,7 +3488,7 @@ function od(t, e, i) {
3488
3488
  const Ti = {
3489
3489
  assertOptions: od,
3490
3490
  validators: Qi
3491
- }, tt = Ti.validators;
3491
+ }, it = Ti.validators;
3492
3492
  class At {
3493
3493
  constructor(e) {
3494
3494
  this.defaults = e, this.interceptors = {
@@ -3525,17 +3525,17 @@ class At {
3525
3525
  typeof e == "string" ? (i = i || {}, i.url = e) : i = e || {}, i = zt(this.defaults, i);
3526
3526
  const { transitional: n, paramsSerializer: s, headers: r } = i;
3527
3527
  n !== void 0 && Ti.assertOptions(n, {
3528
- silentJSONParsing: tt.transitional(tt.boolean),
3529
- forcedJSONParsing: tt.transitional(tt.boolean),
3530
- clarifyTimeoutError: tt.transitional(tt.boolean)
3528
+ silentJSONParsing: it.transitional(it.boolean),
3529
+ forcedJSONParsing: it.transitional(it.boolean),
3530
+ clarifyTimeoutError: it.transitional(it.boolean)
3531
3531
  }, !1), s != null && (S.isFunction(s) ? i.paramsSerializer = {
3532
3532
  serialize: s
3533
3533
  } : Ti.assertOptions(s, {
3534
- encode: tt.function,
3535
- serialize: tt.function
3534
+ encode: it.function,
3535
+ serialize: it.function
3536
3536
  }, !0)), Ti.assertOptions(i, {
3537
- baseUrl: tt.spelling("baseURL"),
3538
- withXsrfToken: tt.spelling("withXSRFToken")
3537
+ baseUrl: it.spelling("baseURL"),
3538
+ withXsrfToken: it.spelling("withXSRFToken")
3539
3539
  }, !0), i.method = (i.method || this.defaults.method || "get").toLowerCase();
3540
3540
  let o = r && S.merge(
3541
3541
  r.common,
@@ -3944,7 +3944,7 @@ const ae = class ae {
3944
3944
  return o || "file";
3945
3945
  }
3946
3946
  static getHeaders(e) {
3947
- const i = nt.Get(Ye.AccessToken);
3947
+ const i = st.Get(Ye.AccessToken);
3948
3948
  return e || (e = ae.headers), i && (e[Gn.Token] = i), e ?? ae.headers;
3949
3949
  }
3950
3950
  static returnResponse(e, i) {
@@ -4028,7 +4028,7 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4028
4028
  name: "NotFound",
4029
4029
  component: fs
4030
4030
  }
4031
- ], it = class it {
4031
+ ], nt = class nt {
4032
4032
  static Set(e) {
4033
4033
  this.router = e, this.AddRoutes(hd);
4034
4034
  }
@@ -4049,16 +4049,16 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4049
4049
  await this.Get().replace(e);
4050
4050
  }
4051
4051
  static Id() {
4052
- return it.GetStringParam("id");
4052
+ return nt.GetStringParam("id");
4053
4053
  }
4054
4054
  static Slug() {
4055
- return it.GetStringParam("slug");
4055
+ return nt.GetStringParam("slug");
4056
4056
  }
4057
4057
  static async Back() {
4058
4058
  this.Get().go(-1);
4059
4059
  }
4060
4060
  static GetQid() {
4061
- return it.GetStringQueryParam("qid");
4061
+ return nt.GetStringQueryParam("qid");
4062
4062
  }
4063
4063
  static Route() {
4064
4064
  var e;
@@ -4070,7 +4070,7 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4070
4070
  }
4071
4071
  static GetPath() {
4072
4072
  var i;
4073
- const e = (i = it.Route()) == null ? void 0 : i.path.split("/");
4073
+ const e = (i = nt.Route()) == null ? void 0 : i.path.split("/");
4074
4074
  return !e || e.length <= 0 ? "" : e[e.length - 1];
4075
4075
  }
4076
4076
  static async ToAdmin(e) {
@@ -4079,7 +4079,7 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4079
4079
  return;
4080
4080
  }
4081
4081
  let i = e;
4082
- i[0] === "/" && (i = e.substring(1)), await it.To(`/admin/${i}`);
4082
+ i[0] === "/" && (i = e.substring(1)), await nt.To(`/admin/${i}`);
4083
4083
  }
4084
4084
  static GetStringQueryParam(e) {
4085
4085
  return String(this.Route().query[e]);
@@ -4099,11 +4099,11 @@ const fs = /* @__PURE__ */ A(ud, [["render", dd]]), hd = [
4099
4099
  return this.Get().resolve(e);
4100
4100
  }
4101
4101
  };
4102
- a(it, "router"), a(it, "ChangeDocumentTitle", (e = "") => {
4103
- let i = it.Route().meta.title ?? e;
4102
+ a(nt, "router"), a(nt, "ChangeDocumentTitle", (e = "") => {
4103
+ let i = nt.Route().meta.title ?? e;
4104
4104
  i && e && (i = i + ` | ${e}`), document.title = i;
4105
4105
  });
4106
- let gt = it;
4106
+ let gt = nt;
4107
4107
  class ce {
4108
4108
  constructor(e, i) {
4109
4109
  a(this, "items", ze([]));
@@ -4132,7 +4132,7 @@ class ce {
4132
4132
  }
4133
4133
  async FTSP(e) {
4134
4134
  var o;
4135
- const n = ((e == null ? void 0 : e.ftsp) ?? mt.Get()).clearForHTTP(), s = {
4135
+ const n = ((e == null ? void 0 : e.ftsp) ?? Qe.Get()).clearForHTTP(), s = {
4136
4136
  payload: { ftsp: n },
4137
4137
  query: this.getUrl("ftsp")
4138
4138
  }, r = await he.Post(s);
@@ -4256,7 +4256,7 @@ function fd(t, e) {
4256
4256
  const md = ["#31af5e", "#ff4d3b", "#006BB5", "#f3911c"];
4257
4257
  class gd {
4258
4258
  static GetRandColor(e) {
4259
- return ft.GetRandEL(e ?? md);
4259
+ return mt.GetRandEL(e ?? md);
4260
4260
  }
4261
4261
  }
4262
4262
  function So(t, e) {
@@ -4299,7 +4299,7 @@ let pd = class {
4299
4299
  return this.timelinePxHeight * this.timelines.length;
4300
4300
  }
4301
4301
  getHoursArr() {
4302
- return ft.GenerateNumsRange(this.startHour, this.endHour);
4302
+ return mt.GenerateNumsRange(this.startHour, this.endHour);
4303
4303
  }
4304
4304
  };
4305
4305
  const Vn = (t) => t === 8 || t === 46, vd = (t) => t > 46 && t < 58, yd = (t) => t > 34 && t < 41, wd = (t) => t + ".", bd = (t, e, i) => {
@@ -4329,7 +4329,7 @@ function Cd(t) {
4329
4329
  i.length === 0 && Number(s) > 3 && (i = "3", t.preventDefault()), i.length === 1 && Number(s) > 31 && (i = "31", t.preventDefault()), s.length === 5 && Number(s.substring(3, 5)) > 12 && (i = i.substring(0, 3) + "12", t.preventDefault()), i = Sd(i, n), t.srcElement.value = i;
4330
4330
  }
4331
4331
  const xd = ["ВС", "ПН", "ВТ", "СР", "ЧТ", "ПТ", "СБ"], Md = "ru-RU";
4332
- class st {
4332
+ class rt {
4333
4333
  constructor() {
4334
4334
  a(this, "locale", "ru-RU");
4335
4335
  }
@@ -4340,7 +4340,7 @@ class st {
4340
4340
  return i && (n.year = i.year || i.year === void 0 ? i.year : n.year, n.month = i.month || i.month === void 0 ? i.month : n.month, n.day = i.day || i.day === void 0 ? i.day : n.day, n.hour = i.hour ?? n.hour, n.minute = i.minute ?? n.minute), Intl.DateTimeFormat(Md, n).format(new Date(e));
4341
4341
  }
4342
4342
  static FormatWithTime(e) {
4343
- return st.Format(e, {
4343
+ return rt.Format(e, {
4344
4344
  month: "2-digit",
4345
4345
  day: "2-digit",
4346
4346
  year: "numeric",
@@ -4363,11 +4363,11 @@ class st {
4363
4363
  return this.GetPeriod(n, s, e || { month: "2-digit", day: "numeric", year: void 0 });
4364
4364
  }
4365
4365
  static GetDurationInDay(e, i) {
4366
- const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = st.SplitHourTime(e), o = st.SplitHourTime(i);
4366
+ const n = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date(), r = rt.SplitHourTime(e), o = rt.SplitHourTime(i);
4367
4367
  return n.setHours(r[0], r[1], 0, 0), s.setHours(o[0], o[1], 0, 0), (s.getTime() - n.getTime()) / 1e3 / 60;
4368
4368
  }
4369
4369
  static HourTimeinMunutes(e) {
4370
- const i = st.SplitHourTime(e);
4370
+ const i = rt.SplitHourTime(e);
4371
4371
  return i[0] * 60 + i[1];
4372
4372
  }
4373
4373
  static SplitHourTime(e) {
@@ -4375,7 +4375,7 @@ class st {
4375
4375
  return [Number(i[0]), Number(i[1])];
4376
4376
  }
4377
4377
  static AddMinutesToHM(e, i) {
4378
- const n = /* @__PURE__ */ new Date(), s = st.SplitHourTime(e);
4378
+ const n = /* @__PURE__ */ new Date(), s = rt.SplitHourTime(e);
4379
4379
  n.setHours(s[0], s[1], 0, 0);
4380
4380
  const r = new Date(n.getTime() + i * 6e4), o = r.getHours(), u = r.getMinutes();
4381
4381
  return `${o}:${u}`;
@@ -4397,7 +4397,7 @@ class st {
4397
4397
  const n = [new Date(e)];
4398
4398
  let s = e;
4399
4399
  for (; s <= i; )
4400
- s = st.AddDays(s, 1), n.push(s);
4400
+ s = rt.AddDays(s, 1), n.push(s);
4401
4401
  return n;
4402
4402
  }
4403
4403
  static AddDays(e, i) {
@@ -4557,7 +4557,7 @@ function Ed() {
4557
4557
  };
4558
4558
  }
4559
4559
  const Td = (() => {
4560
- const t = (r, o) => lt(async () => {
4560
+ const t = (r, o) => ut(async () => {
4561
4561
  N.F.FTSP.Get().reset(), Pt.Set(o == null ? void 0 : o.sortsLib), await r();
4562
4562
  }), { saveButtonClick: e, showConfirmModal: i } = Ed(), n = (r) => Ad((o, u, l) => {
4563
4563
  i((r || s)(), l);
@@ -4701,7 +4701,7 @@ class Fd {
4701
4701
  return this.timelinePxHeight * this.timelines.length;
4702
4702
  }
4703
4703
  getHoursArr() {
4704
- return ft.GenerateNumsRange(this.startHour, this.endHour);
4704
+ return mt.GenerateNumsRange(this.startHour, this.endHour);
4705
4705
  }
4706
4706
  timeIsFree(e, i, n, s) {
4707
4707
  return s.filter((r) => r.id !== n).every(
@@ -4804,8 +4804,8 @@ class Ud {
4804
4804
  }
4805
4805
  var ee;
4806
4806
  let jd = (ee = class {
4807
- }, a(ee, "Arrays", ft), a(ee, "Axios", ri), a(ee, "BaseStore", ce), // static Phone = Phone;
4808
- a(ee, "Cache", Ki), a(ee, "Classes", F), a(ee, "CarouselSwipe", fd), a(ee, "Color", gd), a(ee, "CreateSortModels", So), a(ee, "Cursor", pd), a(ee, "DateMask", Cd), a(ee, "Dates", st), a(ee, "Dragger", kd), a(ee, "Extension", Co), a(ee, "Favourite", Id), // static FTSP = FTSP;
4807
+ }, a(ee, "Arrays", mt), a(ee, "Axios", ri), a(ee, "BaseStore", ce), // static Phone = Phone;
4808
+ a(ee, "Cache", Ki), a(ee, "Classes", F), a(ee, "CarouselSwipe", fd), a(ee, "Color", gd), a(ee, "CreateSortModels", So), a(ee, "Cursor", pd), a(ee, "DateMask", Cd), a(ee, "Dates", rt), a(ee, "Dragger", kd), a(ee, "Extension", Co), a(ee, "Favourite", Id), // static FTSP = FTSP;
4809
4809
  a(ee, "Hooks", Td), a(ee, "HttpClient", he), a(ee, "Id", ve), a(ee, "MakeCarousel", xo), a(ee, "Period", Ln), a(ee, "PhoneService", _n), a(ee, "Rating", zd), a(ee, "Router", gt), a(ee, "RouterGuard", Od), a(ee, "Scheduler", Fd), a(ee, "Scroll", Ld), // static Sizes = Sizes;
4810
4810
  a(ee, "Sorter", Bd), a(ee, "Static", rs), // static Statuses = Statuses;
4811
4811
  a(ee, "Strings", se), a(ee, "Time", te), a(ee, "Timer", ci), a(ee, "Token", hi), a(ee, "Menus", ms), // static useConfirmLeavePage = useConfirmLeavePage();
@@ -5322,7 +5322,7 @@ class xh extends Wr {
5322
5322
  this.resolve = void 0, this.reject = void 0, super.hide();
5323
5323
  }
5324
5324
  }
5325
- const ct = new xh();
5325
+ const dt = new xh();
5326
5326
  class Mh extends jr {
5327
5327
  Show() {
5328
5328
  super.show();
@@ -5334,7 +5334,7 @@ class Mh extends jr {
5334
5334
  const kh = new Mh();
5335
5335
  class bt {
5336
5336
  }
5337
- a(bt, "Admin", Ch), a(bt, "Dialog", ct), a(bt, "Loading", kh), a(bt, "Notify", ze(Fe)), a(bt, "Btn", Rt), a(bt, "Input", Nr);
5337
+ a(bt, "Admin", Ch), a(bt, "Dialog", dt), a(bt, "Loading", kh), a(bt, "Notify", ze(Fe)), a(bt, "Btn", Rt), a(bt, "Input", Nr);
5338
5338
  class N {
5339
5339
  }
5340
5340
  a(N, "Auth", ze(Ce)), a(N, "UI", ze(bt)), a(N, "Paginator", ze(Mo)), /**
@@ -6962,7 +6962,7 @@ const Pn = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
6962
6962
  ], 4)
6963
6963
  ], 4));
6964
6964
  }
6965
- }), dn = /* @__PURE__ */ A(Cm, [["__scopeId", "data-v-cbca4ebc"]]), Jo = /* @__PURE__ */ $({
6965
+ }), dn = /* @__PURE__ */ A(Cm, [["__scopeId", "data-v-054fd088"]]), Jo = /* @__PURE__ */ $({
6966
6966
  __name: "PInputDate",
6967
6967
  props: /* @__PURE__ */ Ee({
6968
6968
  placeholder: {
@@ -6978,10 +6978,10 @@ const Pn = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
6978
6978
  }),
6979
6979
  emits: /* @__PURE__ */ Ee(["update:modelValue", "change", "beforeChange"], ["update:modelValue"]),
6980
6980
  setup(t, { emit: e }) {
6981
- const i = e, n = pt(t, "modelValue"), s = st.Format(n.value), r = T(s), o = (l) => {
6981
+ const i = e, n = pt(t, "modelValue"), s = rt.Format(n.value), r = T(s), o = (l) => {
6982
6982
  if (!u(l))
6983
6983
  return;
6984
- const c = st.FromRuStr(l);
6984
+ const c = rt.FromRuStr(l);
6985
6985
  n.value = c, i("beforeChange", c), i("change", c);
6986
6986
  }, u = (l) => l.length != 10 ? (r.value = s, Fe.Error("Неверный формат даты"), !1) : Number(r.value.slice(0, 2)) > 31 ? (r.value = s, Fe.Error("Неверный день месяца"), !1) : Number(r.value.slice(3, 5)) > 12 ? (r.value = s, Fe.Error("Неверный месяц"), !1) : Number(r.value.slice(6, 10)) > 2100 ? (r.value = s, Fe.Error("Неверный год"), !1) : !0;
6987
6987
  return (l, c) => {
@@ -7636,7 +7636,7 @@ const Pn = /* @__PURE__ */ new WeakMap(), vm = (t, e) => {
7636
7636
  ], 4)
7637
7637
  ], 4));
7638
7638
  }
7639
- }), oa = /* @__PURE__ */ A(Jm, [["__scopeId", "data-v-7cea9260"]]), Qm = { class: "top-slider-content" }, Km = { class: "center" }, eg = /* @__PURE__ */ $({
7639
+ }), oa = /* @__PURE__ */ A(Jm, [["__scopeId", "data-v-7859dc3a"]]), Qm = { class: "top-slider-content" }, Km = { class: "center" }, eg = /* @__PURE__ */ $({
7640
7640
  __name: "PTopSlider",
7641
7641
  props: {
7642
7642
  sliderOffHeight: {
@@ -7750,7 +7750,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7750
7750
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
7751
7751
  n.value = !n.value;
7752
7752
  };
7753
- return lt(async () => {
7753
+ return ut(async () => {
7754
7754
  window.addEventListener("resize", () => {
7755
7755
  switch (e.mobileWidth) {
7756
7756
  case "1330px":
@@ -7837,7 +7837,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7837
7837
  const e = t, i = T(!1), n = T(!0), s = T(window.matchMedia("(max-width: 1330px)").matches), r = () => {
7838
7838
  n.value = !n.value;
7839
7839
  };
7840
- return lt(async () => {
7840
+ return ut(async () => {
7841
7841
  window.addEventListener("resize", () => {
7842
7842
  switch (e.mobileWidth) {
7843
7843
  case "1330px":
@@ -7966,7 +7966,7 @@ const cv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
7966
7966
  ], 2));
7967
7967
  }
7968
7968
  }), Rs = /* @__PURE__ */ A(ug, [["__scopeId", "data-v-a3c4743c"]]);
7969
- var dt = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(dt || {});
7969
+ var ht = /* @__PURE__ */ ((t) => (t.None = "None", t.Next = "Next", t.Prev = "Prev", t))(ht || {});
7970
7970
  const cg = { class: "container" }, dg = { class: "slide-box" }, hg = { class: "image" }, fg = { class: "image-box" }, mg = ["id", "src", "alt"], gg = { class: "link-number" }, pg = ["id", "onClick"], vg = /* @__PURE__ */ $({
7971
7971
  __name: "CarouselImages",
7972
7972
  props: {
@@ -8001,17 +8001,17 @@ const cg = { class: "container" }, dg = { class: "slide-box" }, hg = { class: "i
8001
8001
  Lr((y) => ({
8002
8002
  "582c9d05": i
8003
8003
  }));
8004
- const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(dt.None), r = T(xo(e.events, e.quantity)), o = ue(() => r.value[n.value]);
8004
+ const e = t, i = `${e.animationTime}ms`, n = T(e.startActiveGroupIndex), s = T(ht.None), r = T(xo(e.events, e.quantity)), o = ue(() => r.value[n.value]);
8005
8005
  Xt(() => {
8006
8006
  });
8007
8007
  const u = () => n.value = n.value + 1 < r.value.length ? n.value + 1 : 0, l = () => n.value = n.value - 1 < 0 ? r.value.length - 1 : n.value - 1, c = (y) => {
8008
- s.value = y, setTimeout(() => s.value = dt.None, e.animationTime);
8008
+ s.value = y, setTimeout(() => s.value = ht.None, e.animationTime);
8009
8009
  }, d = (y) => {
8010
- y != n.value && (c(y < n.value ? dt.Prev : dt.Next), setTimeout(() => n.value = y, e.animationTime / 2));
8010
+ y != n.value && (c(y < n.value ? ht.Prev : ht.Next), setTimeout(() => n.value = y, e.animationTime / 2));
8011
8011
  }, h = () => {
8012
- c(dt.Next), setTimeout(u, e.animationTime / 2);
8012
+ c(ht.Next), setTimeout(u, e.animationTime / 2);
8013
8013
  }, g = () => {
8014
- c(dt.Prev), setTimeout(l, e.animationTime / 2);
8014
+ c(ht.Prev), setTimeout(l, e.animationTime / 2);
8015
8015
  };
8016
8016
  return (y, x) => (m(), w("div", {
8017
8017
  class: "field",
@@ -8028,8 +8028,8 @@ const cg = { class: "container" }, dg = { class: "slide-box" }, hg = { class: "i
8028
8028
  (m(!0), w(V, null, Oe(p(o), (C, M) => (m(), w("div", {
8029
8029
  key: M,
8030
8030
  class: ne({
8031
- animationnext: p(s) === p(dt).Next,
8032
- animationprev: p(s) === p(dt).Prev
8031
+ animationnext: p(s) === p(ht).Next,
8032
+ animationprev: p(s) === p(ht).Prev
8033
8033
  })
8034
8034
  }, [
8035
8035
  f("div", hg, [
@@ -8213,7 +8213,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8213
8213
  emits: ["load"],
8214
8214
  setup(t, { emit: e }) {
8215
8215
  const i = t, n = T(!1), s = e, r = () => {
8216
- i.model.setBoolean(n.value), s("load");
8216
+ i.model.setBoolean(n.value), n.value ? Qe.Get().setF(i.model) : Qe.Get().removeF(i.model), s("load");
8217
8217
  };
8218
8218
  return (o, u) => {
8219
8219
  const l = B("PCheckBox");
@@ -8226,7 +8226,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8226
8226
  }, null, 8, ["modelValue", "label"]);
8227
8227
  };
8228
8228
  }
8229
- }), pa = /* @__PURE__ */ A(Ig, [["__scopeId", "data-v-783d7387"]]), Rg = /* @__PURE__ */ $({
8229
+ }), pa = /* @__PURE__ */ A(Ig, [["__scopeId", "data-v-2b95a799"]]), Rg = /* @__PURE__ */ $({
8230
8230
  __name: "FiltersButtonsSelect",
8231
8231
  props: {
8232
8232
  models: {
@@ -8242,7 +8242,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8242
8242
  emits: ["load"],
8243
8243
  setup(t, { emit: e }) {
8244
8244
  const i = e, n = T(void 0), s = async (o) => {
8245
- mt.Get().replaceF(o, n.value), n.value = o, mt.Get().p.drop();
8245
+ Qe.Get().replaceF(o, n.value), n.value = o, Qe.Get().p.drop();
8246
8246
  }, r = async (o) => {
8247
8247
  await s(o), i("load");
8248
8248
  };
@@ -8307,7 +8307,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8307
8307
  },
8308
8308
  emits: ["load"],
8309
8309
  setup(t, { emit: e }) {
8310
- const i = e, n = mt.Get(), s = T(void 0), r = async (u) => {
8310
+ const i = e, n = Qe.Get(), s = T(void 0), r = async (u) => {
8311
8311
  n.replaceF(u, s.value), s.value = u;
8312
8312
  }, o = async (u) => {
8313
8313
  u ? await r(s.value) : await r(void 0), i("load");
@@ -8335,7 +8335,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8335
8335
  }), ya = /* @__PURE__ */ A(Ag, [["__scopeId", "data-v-ae66df57"]]), Pg = /* @__PURE__ */ $({
8336
8336
  __name: "FTSPPanel",
8337
8337
  setup(t) {
8338
- return lt(async () => {
8338
+ return ut(async () => {
8339
8339
  }), (e, i) => (m(), w("div"));
8340
8340
  }
8341
8341
  }), wa = /* @__PURE__ */ A(Pg, [["__scopeId", "data-v-e280d85b"]]), Eg = /* @__PURE__ */ $({
@@ -8819,7 +8819,7 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8819
8819
  __name: "PDialog",
8820
8820
  setup(t) {
8821
8821
  const e = ue(() => {
8822
- switch (ct.GetType()) {
8822
+ switch (dt.GetType()) {
8823
8823
  case "info":
8824
8824
  return "message primary";
8825
8825
  case "success":
@@ -8836,26 +8836,26 @@ const ma = /* @__PURE__ */ A(bg, [["render", Cg], ["__scopeId", "data-v-d28c6f33
8836
8836
  const s = B("MessageBody"), r = B("PButton");
8837
8837
  return m(), U(Hr, { name: "fade" }, {
8838
8838
  default: X(() => [
8839
- p(ct).IsVisible() ? (m(), w("div", {
8839
+ p(dt).IsVisible() ? (m(), w("div", {
8840
8840
  key: 0,
8841
8841
  class: ne(p(e))
8842
8842
  }, [
8843
8843
  R(s, {
8844
- title: p(ct).GetTitle(),
8845
- text: p(ct).GetText()
8844
+ title: p(dt).GetTitle(),
8845
+ text: p(dt).GetText()
8846
8846
  }, null, 8, ["title", "text"]),
8847
8847
  f("div", _g, [
8848
8848
  R(r, {
8849
8849
  type: "primary",
8850
- text: p(ct).GetConfirmButtonText(),
8850
+ text: p(dt).GetConfirmButtonText(),
8851
8851
  margin: "10px 0 0 0",
8852
- onClick: n[0] || (n[0] = (o) => p(ct).Submit())
8852
+ onClick: n[0] || (n[0] = (o) => p(dt).Submit())
8853
8853
  }, null, 8, ["text"]),
8854
8854
  R(r, {
8855
8855
  type: "warning",
8856
- text: p(ct).GetCancelButtonText(),
8856
+ text: p(dt).GetCancelButtonText(),
8857
8857
  margin: "10px 0 0 0",
8858
- onClick: n[1] || (n[1] = (o) => p(ct).Cancel())
8858
+ onClick: n[1] || (n[1] = (o) => p(dt).Cancel())
8859
8859
  }, null, 8, ["text"])
8860
8860
  ])
8861
8861
  ], 2)) : J("", !0)
@@ -8926,16 +8926,16 @@ const Ia = /* @__PURE__ */ A(Yg, [["render", Jg], ["__scopeId", "data-v-0f1f2f84
8926
8926
  if (g !== r.curPage && (g < 1 && (g = 1), g > r.pagesCount() && (g = r.pagesCount()), !i.showConfirm))
8927
8927
  return await c(g);
8928
8928
  }, c = async (g, y) => {
8929
- r.setCurPage(g), mt.Get().p.offset = (g - 1) * r.limit, await i.store.FTSP(), h();
8929
+ r.setCurPage(g), Qe.Get().p.offset = (g - 1) * r.limit, await i.store.FTSP(), h();
8930
8930
  }, d = ue(() => {
8931
8931
  const g = r.pagesCount();
8932
- return g < 8 ? ft.GenerateNumsRange(2, g - 1).filter((y) => y < g && y > 1) : ft.GenerateNumsRange(r.curPage - 2, r.curPage + 3).filter((y) => y < g && y > 1);
8932
+ return g < 8 ? mt.GenerateNumsRange(2, g - 1).filter((y) => y < g && y > 1) : mt.GenerateNumsRange(r.curPage - 2, r.curPage + 3).filter((y) => y < g && y > 1);
8933
8933
  }), h = () => {
8934
8934
  const g = document.querySelector(".el-table__body-wrapper"), y = document.querySelector("#list");
8935
8935
  g ? g.scrollTo({ top: 0 }) : y && y.scrollTo({ top: 0 });
8936
8936
  };
8937
8937
  return ss(() => {
8938
- mt.Get().p.drop();
8938
+ Qe.Get().p.drop();
8939
8939
  }), (g, y) => {
8940
8940
  const x = B("ArrowLeft"), C = B("PButton"), M = B("DoubleArrowLeft"), D = B("EllipsisSvg"), Y = B("DoubleArrowRight"), W = B("ArrowRight");
8941
8941
  return m(), w("div", Qg, [
@@ -9259,7 +9259,7 @@ const Ia = /* @__PURE__ */ A(Yg, [["render", Jg], ["__scopeId", "data-v-0f1f2f84
9259
9259
  const i = t, n = e, s = T(!1), r = T(window.matchMedia("(max-width: 768px)").matches), o = (l) => {
9260
9260
  n("toggle", l);
9261
9261
  }, u = T(!1);
9262
- return lt(async () => {
9262
+ return ut(async () => {
9263
9263
  window.addEventListener("resize", () => {
9264
9264
  switch (i.mobileWidth) {
9265
9265
  case "1330px":
@@ -9381,7 +9381,7 @@ const Ia = /* @__PURE__ */ A(Yg, [["render", Jg], ["__scopeId", "data-v-0f1f2f84
9381
9381
  emits: ["load"],
9382
9382
  setup(t, { emit: e }) {
9383
9383
  const i = T(!1), n = e, s = T();
9384
- lt(() => {
9384
+ ut(() => {
9385
9385
  i.value = !0, s.value = Pt.GetDefault();
9386
9386
  });
9387
9387
  const r = async (u) => {
@@ -9424,11 +9424,11 @@ const Ia = /* @__PURE__ */ A(Yg, [["render", Jg], ["__scopeId", "data-v-0f1f2f84
9424
9424
  emits: ["load"],
9425
9425
  setup(t, { emit: e }) {
9426
9426
  const i = e, n = T();
9427
- lt(() => {
9427
+ ut(() => {
9428
9428
  n.value = Pt.GetDefault();
9429
9429
  });
9430
9430
  const s = async (o) => {
9431
- o || (n.value = Pt.GetDefault()), mt.Get().setSortModel(n.value), mt.Get().p.drop(), i("load");
9431
+ o || (n.value = Pt.GetDefault()), Qe.Get().setSortModel(n.value), Qe.Get().p.drop(), i("load");
9432
9432
  }, r = async (o) => {
9433
9433
  await s(o);
9434
9434
  };
@@ -10280,7 +10280,7 @@ const el = /* @__PURE__ */ A(V1, [["render", _1]]), Z1 = $({
10280
10280
  };
10281
10281
  return au(() => {
10282
10282
  t.activeId && t.activeId !== t.tabId && (i.value = !0);
10283
- }), lt(() => {
10283
+ }), ut(() => {
10284
10284
  t.activeId && t.activeId !== t.tabId && (i.value = !1);
10285
10285
  }), {
10286
10286
  collapsed: i,
@@ -10967,7 +10967,7 @@ const fv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10967
10967
  };
10968
10968
  Xt(() => window.addEventListener("resize", u)), Fr(() => window.removeEventListener("resize", u));
10969
10969
  const l = ue(() => `calc(100% - ${o.value}px + 1px)`);
10970
- lt(() => {
10970
+ ut(() => {
10971
10971
  i.menus.Select();
10972
10972
  });
10973
10973
  const c = (d) => {
@@ -11245,7 +11245,7 @@ var Ir, kp, ki, pe = (Ir = function(t) {
11245
11245
  return function() {
11246
11246
  throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
11247
11247
  }(e == null && ki.path);
11248
- } }, ki.exports), ki.exports), Ke = function(t) {
11248
+ } }, ki.exports), ki.exports), et = function(t) {
11249
11249
  return function(e, i) {
11250
11250
  if (!e) return t;
11251
11251
  var n;
@@ -11410,7 +11410,7 @@ zs.render = function(t, e, i, n, s, r) {
11410
11410
  return r.onMouseLeave && r.onMouseLeave.apply(r, arguments);
11411
11411
  }) }, [P(t.$slots, "default")], 34);
11412
11412
  };
11413
- var Tn = Ke("vue-handler-wrapper"), vl = { name: "HandlerWrapper", components: { DraggableElement: zs }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
11413
+ var Tn = et("vue-handler-wrapper"), vl = { name: "HandlerWrapper", components: { DraggableElement: zs }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
11414
11414
  var t;
11415
11415
  if (this.horizontalPosition || this.verticalPosition) {
11416
11416
  var e, i = fl(this.horizontalPosition, this.verticalPosition);
@@ -11432,7 +11432,7 @@ vl.render = function(t, e, i, n, s, r) {
11432
11432
  return [P(t.$slots, "default")];
11433
11433
  }), _: 3 }, 8, ["class"])], 2);
11434
11434
  };
11435
- var $p = Ke("vue-line-wrapper"), yl = { name: "LineWrapper", components: { DraggableElement: zs }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
11435
+ var $p = et("vue-line-wrapper"), yl = { name: "LineWrapper", components: { DraggableElement: zs }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
11436
11436
  var t;
11437
11437
  return $p((Ge(t = {}, this.position, !0), Ge(t, "disabled", this.disabled), t));
11438
11438
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
@@ -11450,13 +11450,13 @@ yl.render = function(t, e, i, n, s, r) {
11450
11450
  return [P(t.$slots, "default")];
11451
11451
  }), _: 3 }, 8, ["class"]);
11452
11452
  };
11453
- var ot = ["left", "right", "top", "bottom"], Ap = ["left", "right"], Pp = ["top", "bottom"], Ep = ["left", "top"], Tp = ["fill-area", "fit-area", "stencil", "none"], Ar = { left: 0, top: 0, width: 0, height: 0 };
11453
+ var at = ["left", "right", "top", "bottom"], Ap = ["left", "right"], Pp = ["top", "bottom"], Ep = ["left", "top"], Tp = ["fill-area", "fit-area", "stencil", "none"], Ar = { left: 0, top: 0, width: 0, height: 0 };
11454
11454
  function Pr(t, e, i) {
11455
11455
  return !(i = i || ["width", "height", "left", "top"]).some(function(n) {
11456
11456
  return t[n] !== e[n];
11457
11457
  });
11458
11458
  }
11459
- function at(t) {
11459
+ function lt(t) {
11460
11460
  return { left: t.left, top: t.top, right: t.left + t.width, bottom: t.top + t.height };
11461
11461
  }
11462
11462
  function Vt(t, e) {
@@ -11467,12 +11467,12 @@ function Me(t) {
11467
11467
  }
11468
11468
  function fi(t, e) {
11469
11469
  var i = { left: 0, top: 0, right: 0, bottom: 0 };
11470
- return ot.forEach(function(n) {
11471
- var s = e[n], r = at(t)[n];
11470
+ return at.forEach(function(n) {
11471
+ var s = e[n], r = lt(t)[n];
11472
11472
  i[n] = s !== void 0 && r !== void 0 ? n === "left" || n === "top" ? Math.max(0, s - r) : Math.max(0, r - s) : 0;
11473
11473
  }), i;
11474
11474
  }
11475
- function rt(t, e) {
11475
+ function ot(t, e) {
11476
11476
  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 };
11477
11477
  }
11478
11478
  function mn(t) {
@@ -11535,7 +11535,7 @@ function zp(t, e) {
11535
11535
  function Sl(t, e, i) {
11536
11536
  i === void 0 && (i = !0);
11537
11537
  var n = {};
11538
- return ot.forEach(function(s) {
11538
+ return at.forEach(function(s) {
11539
11539
  var r = t[s], o = e[s];
11540
11540
  r !== void 0 && o !== void 0 ? n[s] = s === "left" || s === "top" ? i ? Math.max(r, o) : Math.min(r, o) : i ? Math.min(r, o) : Math.max(r, o) : o !== void 0 ? n[s] = o : r !== void 0 && (n[s] = r);
11541
11541
  }), n;
@@ -11550,7 +11550,7 @@ function Er(t) {
11550
11550
  function Tr(t, e) {
11551
11551
  return Math.pow(t.width - e.width, 2) + Math.pow(t.height - e.height, 2);
11552
11552
  }
11553
- function ht(t) {
11553
+ function ft(t) {
11554
11554
  var e = t.width, i = t.height, n = t.sizeRestrictions, s = { minimum: t.aspectRatio && t.aspectRatio.minimum || 0, maximum: t.aspectRatio && t.aspectRatio.maximum || 1 / 0 }, r = { width: Math.max(n.minWidth, Math.min(n.maxWidth, e)), height: Math.max(n.minHeight, Math.min(n.maxHeight, i)) };
11555
11555
  function o(c, d) {
11556
11556
  return d === void 0 && (d = !1), c.reduce(function(h, g) {
@@ -11575,7 +11575,7 @@ function Op(t) {
11575
11575
  return (Array.isArray(i) ? i : [i]).forEach(function(d) {
11576
11576
  var h = {};
11577
11577
  be((h = typeof d == "function" ? d({ coordinates: c, imageSize: n, visibleArea: u }) : d).width) && be(h.height) || (c = function(g, y) {
11578
- var x = j(j(j({}, g), ht({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
11578
+ var x = j(j(j({}, g), ft({ width: y.width, height: y.height, sizeRestrictions: s, aspectRatio: o })), { left: 0, top: 0 });
11579
11579
  return l(x, { left: g.left, top: g.top });
11580
11580
  }(c, j(j({}, c), h))), be(h.left) && be(h.top) || (c = l(c, j(j({}, c), h)));
11581
11581
  }), c;
@@ -11587,9 +11587,9 @@ function Fp(t) {
11587
11587
  var r = t.stencilSize, o = t.sizeRestrictions, u = t.positionRestrictions;
11588
11588
  t.stencilReference;
11589
11589
  var l, c, d, h = j({}, n), g = j({}, s), y = j({}, r);
11590
- l = oe(y), c = oe(h), d === void 0 && (d = 1e-3), (l === 0 || c === 0 ? Math.abs(c - l) < d : Math.abs(c / l) < 1 + d && Math.abs(c / l) > 1 - d) || (h = j(j({}, h), ht({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(y), maximum: oe(y) } })));
11590
+ l = oe(y), c = oe(h), d === void 0 && (d = 1e-3), (l === 0 || c === 0 ? Math.abs(c - l) < d : Math.abs(c / l) < 1 + d && Math.abs(c / l) > 1 - d) || (h = j(j({}, h), ft({ sizeRestrictions: o, width: h.width, height: h.height, aspectRatio: { minimum: oe(y), maximum: oe(y) } })));
11591
11591
  var x = gn(g = Ve(g, h.width * i.width / (g.width * y.width)), e({ visibleArea: g, type: "resize" }));
11592
- return x !== 1 && (g = Ve(g, x), h = Ve(h, x)), g = ke(g = Be(g, Vt(Me(h), Me(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = ke(h, pn(at(g), u)), visibleArea: g };
11592
+ return x !== 1 && (g = Ve(g, x), h = Ve(h, x)), g = ke(g = Be(g, Vt(Me(h), Me(g))), e({ visibleArea: g, type: "move" })), { coordinates: h = ke(h, pn(lt(g), u)), visibleArea: g };
11593
11593
  }
11594
11594
  function Dp(t) {
11595
11595
  var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, r = t.visibleArea;
@@ -11601,7 +11601,7 @@ function Dp(t) {
11601
11601
  var c = { width: 0, height: 0 };
11602
11602
  l.width, n.width, oe(n) > oe(u) ? (c.height = 0.8 * n.height, c.width = c.height * oe(u)) : (c.width = 0.8 * n.width, c.height = c.width * oe(u));
11603
11603
  var d = gn(l = Ve(l, u.width * n.width / (l.width * c.width)), i({ visibleArea: l, type: "resize" }));
11604
- l = Ve(l, d), d !== 1 && (c.height /= d, c.width /= d), l = ke(l = Be(l, Vt(Me(u), Me(l))), i({ visibleArea: l, type: "move" })), u = ke(u, pn(at(l), o));
11604
+ l = Ve(l, d), d !== 1 && (c.height /= d, c.width /= d), l = ke(l = Be(l, Vt(Me(u), Me(l))), i({ visibleArea: l, type: "move" })), u = ke(u, pn(lt(l), o));
11605
11605
  }
11606
11606
  return { coordinates: u, visibleArea: l };
11607
11607
  }
@@ -11609,7 +11609,7 @@ function Lp(t) {
11609
11609
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, r = j({}, n), o = j({}, i);
11610
11610
  if (e.type === "setCoordinates") {
11611
11611
  var u = Math.max(0, o.width - r.width), l = Math.max(0, o.height - r.height);
11612
- u > l ? r = Ve(r, Math.min(o.width / r.width, _t(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ve(r, Math.min(o.height / r.height, _t(r, s({ visibleArea: r, type: "resize" }))))), r = ke(r = Be(r, mn(Zt(o, at(r)))), s({ visibleArea: r, type: "move" }));
11612
+ u > l ? r = Ve(r, Math.min(o.width / r.width, _t(r, s({ visibleArea: r, type: "resize" })))) : l > u && (r = Ve(r, Math.min(o.height / r.height, _t(r, s({ visibleArea: r, type: "resize" }))))), r = ke(r = Be(r, mn(Zt(o, lt(r)))), s({ visibleArea: r, type: "move" }));
11613
11613
  }
11614
11614
  return { visibleArea: r, coordinates: o };
11615
11615
  }
@@ -11619,23 +11619,23 @@ function Bp(t) {
11619
11619
  }
11620
11620
  function Hp(t) {
11621
11621
  var e = t.imageSize, i = t.visibleArea, n = t.aspectRatio, s = t.sizeRestrictions, r = i || e, o = Math.min(n.maximum || 1 / 0, Math.max(n.minimum || 0, oe(r))), u = r.width < r.height ? { width: 0.8 * r.width, height: 0.8 * r.width / o } : { height: 0.8 * r.height, width: 0.8 * r.height * o };
11622
- return ht(j(j({}, u), { aspectRatio: n, sizeRestrictions: s }));
11622
+ return ft(j(j({}, u), { aspectRatio: n, sizeRestrictions: s }));
11623
11623
  }
11624
11624
  function qp(t) {
11625
11625
  var e, i, n = t.imageSize, s = t.visibleArea, r = t.boundaries, o = t.aspectRatio, u = t.sizeRestrictions, l = t.stencilSize, c = s || n;
11626
- return oe(c) > oe(r) ? i = (e = l.height * c.height / r.height) * oe(l) : e = (i = l.width * c.width / r.width) / oe(l), ht({ width: i, height: e, aspectRatio: o, sizeRestrictions: u });
11626
+ return oe(c) > oe(r) ? i = (e = l.height * c.height / r.height) * oe(l) : e = (i = l.width * c.width / r.width) / oe(l), ft({ width: i, height: e, aspectRatio: o, sizeRestrictions: u });
11627
11627
  }
11628
11628
  function Np(t) {
11629
11629
  var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = oe(t.boundaries);
11630
11630
  if (i) {
11631
- var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = wl({ width: oe(r) > s ? r.width : r.height * s, height: oe(r) > s ? r.width / s : r.height }, Kn(e())), u = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, l = fi(i, at(j({ left: 0, top: 0 }, n))), c = {};
11631
+ var r = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, o = wl({ width: oe(r) > s ? r.width : r.height * s, height: oe(r) > s ? r.width / s : r.height }, Kn(e())), u = { left: i.left + i.width / 2 - o.width / 2, top: i.top + i.height / 2 - o.height / 2, width: o.width, height: o.height }, l = fi(i, lt(j({ left: 0, top: 0 }, n))), c = {};
11632
11632
  return !l.left && !l.right && u.width <= n.width && (c.left = 0, c.right = n.width), !l.top && !l.bottom && u.height <= n.height && (c.top = 0, c.bottom = n.height), ke(u, c);
11633
11633
  }
11634
11634
  var d = oe(n);
11635
11635
  return o = { height: d > s ? n.height : n.width / s, width: d > s ? n.height * s : n.width }, { left: n.width / 2 - o.width / 2, top: n.height / 2 - o.height / 2, width: o.width, height: o.height };
11636
11636
  }
11637
11637
  function Ri(t, e) {
11638
- return Sl(t, at(e));
11638
+ return Sl(t, lt(e));
11639
11639
  }
11640
11640
  function Up(t) {
11641
11641
  var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.sizeRestrictions, r = t.getAreaRestrictions, o = t.positionRestrictions, u = t.adjustStencil, l = e.scale, c = e.move, d = j({}, n), h = j({}, i), g = 1, y = 1, x = l.factor && Math.abs(l.factor - 1) > 1e-3;
@@ -11643,11 +11643,11 @@ function Up(t) {
11643
11643
  var C = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / h.width : 0, s.minHeight ? s.minHeight / h.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / h.width : 1 / 0, s.maxHeight ? s.maxHeight / h.height : 1 / 0, _t(h, o)) }, area: { maximum: _t(d, r({ visibleArea: d, type: "resize" })) } };
11644
11644
  l.factor && x && (l.factor < 1 ? (y = Math.max(l.factor, C.stencil.minimum)) > 1 && (y = 1) : l.factor > 1 && (y = Math.min(l.factor, Math.min(C.area.maximum, C.stencil.maximum))) < 1 && (y = 1)), y && (d = Ve(d, y, l.center));
11645
11645
  var M = i.left - n.left, D = n.width + n.left - (i.width + i.left), Y = i.top - n.top, W = n.height + n.top - (i.height + i.top);
11646
- return d = ke(d = Be(d, Zt(d, { left: o.left !== void 0 ? o.left - M * y : void 0, top: o.top !== void 0 ? o.top - Y * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + W * y : void 0, right: o.right !== void 0 ? o.right + D * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + M * y, h.top = d.top + Y * y, h = ke(h, pn(at(d), o)), l.factor && x && u && (l.factor > 1 ? g = Math.min(C.area.maximum, l.factor) / y : l.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), g !== 1 && (d = Be(d = ke(d = Ve(d, g, l.factor > 1 ? l.center : Me(h)), r({ visibleArea: d, type: "move" })), mn(Zt(h, at(d)))))), { coordinates: h, visibleArea: d };
11646
+ return d = ke(d = Be(d, Zt(d, { left: o.left !== void 0 ? o.left - M * y : void 0, top: o.top !== void 0 ? o.top - Y * y : void 0, bottom: o.bottom !== void 0 ? o.bottom + W * y : void 0, right: o.right !== void 0 ? o.right + D * y : void 0 })), r({ visibleArea: d, type: "move" })), h.width = h.width * y, h.height = h.height * y, h.left = d.left + M * y, h.top = d.top + Y * y, h = ke(h, pn(lt(d), o)), l.factor && x && u && (l.factor > 1 ? g = Math.min(C.area.maximum, l.factor) / y : l.factor < 1 && (g = Math.max(h.height / d.height, h.width / d.width, l.factor / y)), g !== 1 && (d = Be(d = ke(d = Ve(d, g, l.factor > 1 ? l.center : Me(h)), r({ visibleArea: d, type: "move" })), mn(Zt(h, lt(d)))))), { coordinates: h, visibleArea: d };
11647
11647
  }
11648
11648
  function jp(t) {
11649
11649
  var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, r = t.sizeRestrictions, o = t.positionRestrictions, u = t.imageSize, l = t.previousImageSize, c = t.angle, d = j({}, n), h = j({}, s), g = Ct(Me(j({ left: 0, top: 0 }, l)), c);
11650
- return (d = j(j({}, ht({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(Me(d), c))).left -= g.left - u.width / 2 + d.width / 2, d.top -= g.top - u.height / 2 + d.height / 2, h = Ve(h, gn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = ke(d, o), visibleArea: h = ke(h = Be(h, Vt(Me(d), Me(n))), i({ visibleArea: h, type: "move" })) };
11650
+ return (d = j(j({}, ft({ sizeRestrictions: r, aspectRatio: e, width: d.width, height: d.height })), Ct(Me(d), c))).left -= g.left - u.width / 2 + d.width / 2, d.top -= g.top - u.height / 2 + d.height / 2, h = Ve(h, gn(h, i({ visibleArea: h, type: "resize" }))), { coordinates: d = ke(d, o), visibleArea: h = ke(h = Be(h, Vt(Me(d), Me(n))), i({ visibleArea: h, type: "move" })) };
11651
11651
  }
11652
11652
  function Wp(t) {
11653
11653
  var e = t.flip, i = t.previousFlip, n = t.rotate, s = t.getAreaRestrictions, r = t.coordinates, o = t.visibleArea, u = t.imageSize, l = j({}, r), c = j({}, o), d = i.horizontal !== e.horizontal, h = i.vertical !== e.vertical;
@@ -11658,27 +11658,27 @@ function Wp(t) {
11658
11658
  return { coordinates: l, visibleArea: c };
11659
11659
  }
11660
11660
  function zr(t) {
11661
- var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, u = t.compensate, l = j({}, e), c = rt(i, l).width, d = rt(i, l).height;
11661
+ var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = n === void 0 ? {} : n, r = t.sizeRestrictions, o = t.preserveRatio, u = t.compensate, l = j({}, e), c = ot(i, l).width, d = ot(i, l).height;
11662
11662
  c < 0 && (l.left < 0 && l.right < 0 ? (l.left = -(i.width - r.minWidth) / (l.left / l.right), l.right = -(i.width - r.minWidth) / (l.right / l.left)) : l.left < 0 ? l.left = -(i.width - r.minWidth) : l.right < 0 && (l.right = -(i.width - r.minWidth))), d < 0 && (l.top < 0 && l.bottom < 0 ? (l.top = -(i.height - r.minHeight) / (l.top / l.bottom), l.bottom = -(i.height - r.minHeight) / (l.bottom / l.top)) : l.top < 0 ? l.top = -(i.height - r.minHeight) : l.bottom < 0 && (l.bottom = -(i.height - r.minHeight)));
11663
- var h = fi(rt(i, l), s);
11664
- u && (h.left && h.left > 0 && h.right === 0 ? (l.right += h.left, l.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (l.left += h.right, l.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (l.bottom += h.top, l.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (l.top += h.bottom, l.bottom -= h.bottom), h = fi(rt(i, l), s));
11663
+ var h = fi(ot(i, l), s);
11664
+ u && (h.left && h.left > 0 && h.right === 0 ? (l.right += h.left, l.left -= h.left) : h.right && h.right > 0 && h.left === 0 && (l.left += h.right, l.right -= h.right), h.top && h.top > 0 && h.bottom === 0 ? (l.bottom += h.top, l.top -= h.top) : h.bottom && h.bottom > 0 && h.top === 0 && (l.top += h.bottom, l.bottom -= h.bottom), h = fi(ot(i, l), s));
11665
11665
  var g = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
11666
- if (ot.forEach(function(C) {
11666
+ if (at.forEach(function(C) {
11667
11667
  var M = h[C];
11668
11668
  M && l[C] && (g[C] = Math.max(0, 1 - M / l[C]));
11669
11669
  }), o) {
11670
- var y = Math.min.apply(null, ot.map(function(C) {
11670
+ var y = Math.min.apply(null, at.map(function(C) {
11671
11671
  return g[C];
11672
11672
  }));
11673
- y !== 1 / 0 && ot.forEach(function(C) {
11673
+ y !== 1 / 0 && at.forEach(function(C) {
11674
11674
  l[C] *= y;
11675
11675
  });
11676
- } else ot.forEach(function(C) {
11676
+ } else at.forEach(function(C) {
11677
11677
  g[C] !== 1 / 0 && (l[C] *= g[C]);
11678
11678
  });
11679
- if (c = rt(i, l).width, d = rt(i, l).height, l.right + l.left && (c > r.maxWidth ? g.width = (r.maxWidth - i.width) / (l.right + l.left) : c < r.minWidth && (g.width = (r.minWidth - i.width) / (l.right + l.left))), l.bottom + l.top && (d > r.maxHeight ? g.height = (r.maxHeight - i.height) / (l.bottom + l.top) : d < r.minHeight && (g.height = (r.minHeight - i.height) / (l.bottom + l.top))), o) {
11679
+ if (c = ot(i, l).width, d = ot(i, l).height, l.right + l.left && (c > r.maxWidth ? g.width = (r.maxWidth - i.width) / (l.right + l.left) : c < r.minWidth && (g.width = (r.minWidth - i.width) / (l.right + l.left))), l.bottom + l.top && (d > r.maxHeight ? g.height = (r.maxHeight - i.height) / (l.bottom + l.top) : d < r.minHeight && (g.height = (r.minHeight - i.height) / (l.bottom + l.top))), o) {
11680
11680
  var x = Math.min(g.width, g.height);
11681
- x !== 1 / 0 && ot.forEach(function(C) {
11681
+ x !== 1 / 0 && at.forEach(function(C) {
11682
11682
  l[C] *= x;
11683
11683
  });
11684
11684
  } else g.width !== 1 / 0 && Ap.forEach(function(C) {
@@ -11691,7 +11691,7 @@ function zr(t) {
11691
11691
  function $i(t, e, i) {
11692
11692
  return e == 0 && i == 0 ? t / 2 : e == 0 ? 0 : i == 0 ? t : t * Math.abs(e / (e + i));
11693
11693
  }
11694
- var Gp = Ke("vue-simple-handler"), Vp = Ke("vue-simple-handler-wrapper"), Os = { name: "SimpleHandler", components: { HandlerWrapper: vl }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
11694
+ var Gp = et("vue-simple-handler"), Vp = et("vue-simple-handler-wrapper"), Os = { name: "SimpleHandler", components: { HandlerWrapper: vl }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
11695
11695
  return { hover: !1 };
11696
11696
  }, computed: { classes: function() {
11697
11697
  var t, e = (Ge(t = {}, this.horizontalPosition, !!this.horizontalPosition), Ge(t, this.verticalPosition, !!this.verticalPosition), Ge(t, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), Ge(t, "hover", this.hover), t);
@@ -11711,7 +11711,7 @@ Os.render = function(t, e, i, n, s, r) {
11711
11711
  return [R("div", { class: r.classes.default }, null, 2)];
11712
11712
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
11713
11713
  };
11714
- var _p = Ke("vue-simple-line"), Zp = Ke("vue-simple-line-wrapper"), Fs = { name: "SimpleLine", components: { LineWrapper: yl }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
11714
+ var _p = et("vue-simple-line"), Zp = et("vue-simple-line-wrapper"), Fs = { name: "SimpleLine", components: { LineWrapper: yl }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
11715
11715
  return { hover: !1 };
11716
11716
  }, computed: { classes: function() {
11717
11717
  return { root: pe(_p(Ge({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: pe(Zp(Ge({}, this.position, !0)), this.wrapperClass) };
@@ -11730,7 +11730,7 @@ Fs.render = function(t, e, i, n, s, r) {
11730
11730
  return [R("div", { class: r.classes.root }, null, 2)];
11731
11731
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
11732
11732
  };
11733
- var On = Ke("vue-bounding-box"), Xp = ["east", "west", null], Yp = ["south", "north", null], Cl = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
11733
+ var On = et("vue-bounding-box"), Xp = ["east", "west", null], Yp = ["south", "north", null], Cl = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
11734
11734
  return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
11735
11735
  } }, handlersComponent: { type: [Object, String], default: function() {
11736
11736
  return Os;
@@ -11806,7 +11806,7 @@ Cl.render = function(t, e, i, n, s, r) {
11806
11806
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "horizontal-position", "vertical-position", "disabled", "onDrag"]))], 6);
11807
11807
  }), 128))], 6);
11808
11808
  };
11809
- var Jp = Ke("vue-draggable-area"), xl = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
11809
+ var Jp = et("vue-draggable-area"), xl = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
11810
11810
  return { default: Jp() };
11811
11811
  } }, beforeMount: function() {
11812
11812
  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 });
@@ -12008,7 +12008,7 @@ ts.render = function(t, e, i, n, s, r) {
12008
12008
  return [P(t.$slots, "default")];
12009
12009
  }), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
12010
12010
  };
12011
- var Ai = Ke("vue-preview"), Il = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
12011
+ var Ai = et("vue-preview"), Il = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
12012
12012
  return {};
12013
12013
  } }, imageClass: { type: String }, width: { type: Number }, height: { type: Number }, fill: { type: Boolean } }, data: function() {
12014
12014
  return { calculatedImageSize: { width: 0, height: 0 }, calculatedSize: { width: 0, height: 0 } };
@@ -12059,7 +12059,7 @@ Rl.render = function(t, e, i, n, s, r) {
12059
12059
  var o = B("preview");
12060
12060
  return m(), U(o, It(t.$attrs, { fill: !0 }), null, 16);
12061
12061
  };
12062
- var Dn = Ke("vue-rectangle-stencil"), $l = { name: "RectangleStencil", components: { StencilPreview: Rl, BoundingBox: Cl, DraggableArea: xl }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
12062
+ var Dn = et("vue-rectangle-stencil"), $l = { name: "RectangleStencil", components: { StencilPreview: Rl, BoundingBox: Cl, DraggableArea: xl }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
12063
12063
  return Os;
12064
12064
  } }, lines: { type: Object }, linesComponent: { type: [Object, String], default: function() {
12065
12065
  return Fs;
@@ -12097,7 +12097,7 @@ $l.render = function(t, e, i, n, s, r) {
12097
12097
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
12098
12098
  }), _: 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);
12099
12099
  };
12100
- var e0 = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper", components: { BackgroundWrapper: ts }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
12100
+ var e0 = ["transitions"], ct = et("vue-advanced-cropper"), Al = { name: "Cropper", components: { BackgroundWrapper: ts }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
12101
12101
  return $l;
12102
12102
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
12103
12103
  return ts;
@@ -12109,10 +12109,10 @@ var e0 = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12109
12109
  return !(typeof t == "string" && t !== "fill" && t !== "fit");
12110
12110
  } }, 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) {
12111
12111
  var e = t.event, i = t.coordinates, n = t.aspectRatio, s = t.positionRestrictions, r = t.sizeRestrictions, o = j(j({}, i), { right: i.left + i.width, bottom: i.top + i.height }), u = e.params || {}, l = j({}, e.directions), c = u.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
12112
- r.widthFrozen && (l.left = 0, l.right = 0), r.heightFrozen && (l.top = 0, l.bottom = 0), ot.forEach(function(H) {
12112
+ r.widthFrozen && (l.left = 0, l.right = 0), r.heightFrozen && (l.top = 0, l.bottom = 0), at.forEach(function(H) {
12113
12113
  c[H] || (l[H] = 0);
12114
12114
  });
12115
- var d = rt(o, l = zr({ coordinates: o, directions: l, sizeRestrictions: r, positionRestrictions: s })).width, h = rt(o, l).height, g = u.preserveRatio ? oe(o) : zn(d / h, n);
12115
+ var d = ot(o, l = zr({ coordinates: o, directions: l, sizeRestrictions: r, positionRestrictions: s })).width, h = ot(o, l).height, g = u.preserveRatio ? oe(o) : zn(d / h, n);
12116
12116
  if (g) {
12117
12117
  var y = u.respectDirection;
12118
12118
  if (y || (y = o.width >= o.height || g === 1 ? "width" : "height"), y === "width") {
@@ -12130,19 +12130,19 @@ var e0 = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12130
12130
  }
12131
12131
  l = zr({ directions: l, coordinates: o, sizeRestrictions: r, positionRestrictions: s, preserveRatio: !0, compensate: u.compensate });
12132
12132
  }
12133
- return d = rt(o, l).width, h = rt(o, l).height, (g = u.preserveRatio ? oe(o) : zn(d / h, n)) && Math.abs(g - d / h) > 1e-3 && ot.forEach(function(H) {
12133
+ return d = ot(o, l).width, h = ot(o, l).height, (g = u.preserveRatio ? oe(o) : zn(d / h, n)) && Math.abs(g - d / h) > 1e-3 && at.forEach(function(H) {
12134
12134
  c[H] || (l[H] = 0);
12135
12135
  }), es({ event: new Ts({ left: -l.left, top: -l.top }), coordinates: { width: i.width + l.right + l.left, height: i.height + l.top + l.bottom, left: i.left, top: i.top }, positionRestrictions: s });
12136
12136
  } }, moveAlgorithm: { type: Function, default: es }, initStretcher: { type: Function, default: function(t) {
12137
12137
  var e = t.stretcher, i = t.imageSize, n = oe(i);
12138
12138
  e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
12139
12139
  } }, fitCoordinates: { type: Function, default: function(t) {
12140
- var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = j(j({}, i), ht({ width: i.width, height: i.height, aspectRatio: n, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
12141
- return o = ke(o = Be(o, Vt(Me(i), Me(o))), pn(at(e), r));
12140
+ var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, r = t.positionRestrictions, o = j(j({}, i), ft({ width: i.width, height: i.height, aspectRatio: n, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
12141
+ return o = ke(o = Be(o, Vt(Me(i), Me(o))), pn(lt(e), r));
12142
12142
  } }, fitVisibleArea: { type: Function, default: function(t) {
12143
12143
  var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, r = j({}, e);
12144
12144
  r.height = r.width / oe(i), r.top += (e.height - r.height) / 2, (s.height - r.height > 0 || s.width - r.width > 0) && (r = Ve(r, Math.max(s.height / r.height, s.width / r.width)));
12145
- var o = mn(Zt(s, at(r = Ve(r, gn(r, n({ visibleArea: r, type: "resize" }))))));
12145
+ var o = mn(Zt(s, lt(r = Ve(r, gn(r, n({ visibleArea: r, type: "resize" }))))));
12146
12146
  return r.width < s.width && (o.left = 0), r.height < s.height && (o.top = 0), r = ke(r = Be(r, o), n({ visibleArea: r, type: "move" }));
12147
12147
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
12148
12148
  var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, r = t.type, o = {};
@@ -12192,7 +12192,7 @@ var e0 = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12192
12192
  }, positionRestrictions: function() {
12193
12193
  return this.positionRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction });
12194
12194
  }, classes: function() {
12195
- return { cropper: ut(), image: pe(ut("image"), this.imageClass), stencil: ut("stencil"), boundaries: pe(ut("boundaries"), this.boundariesClass), stretcher: pe(ut("stretcher")), background: pe(ut("background"), this.backgroundClass), foreground: pe(ut("foreground"), this.foregroundClass), imageWrapper: pe(ut("image-wrapper")), cropperWrapper: pe(ut("cropper-wrapper")) };
12195
+ return { cropper: ct(), image: pe(ct("image"), this.imageClass), stencil: ct("stencil"), boundaries: pe(ct("boundaries"), this.boundariesClass), stretcher: pe(ct("stretcher")), background: pe(ct("background"), this.backgroundClass), foreground: pe(ct("foreground"), this.foregroundClass), imageWrapper: pe(ct("image-wrapper")), cropperWrapper: pe(ct("cropper-wrapper")) };
12196
12196
  }, stencilCoordinates: function() {
12197
12197
  if (this.initialized) {
12198
12198
  var t = this.coordinates, e = t.width, i = t.height, n = t.left, s = t.top;
@@ -12288,7 +12288,7 @@ var e0 = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12288
12288
  if (i.type === "manipulateImage") return j(j({}, i), { move: { left: i.move && i.move.left ? s * i.move.left : 0, top: i.move && i.move.top ? s * i.move.top : 0 }, scale: { factor: i.scale && i.scale.factor ? i.scale.factor : 1, center: i.scale && i.scale.center ? { left: i.scale.center.left * s + n.left, top: i.scale.center.top * s + n.top } : null } });
12289
12289
  if (i.type === "resize") {
12290
12290
  var r = j(j({}, i), { directions: j({}, i.directions) });
12291
- return ot.forEach(function(u) {
12291
+ return at.forEach(function(u) {
12292
12292
  r.directions[u] *= s;
12293
12293
  }), r;
12294
12294
  }
@@ -12312,7 +12312,7 @@ var e0 = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12312
12312
  return c = l, !Number.isNaN(parseFloat(c)) && isFinite(c);
12313
12313
  var c;
12314
12314
  });
12315
- }, r = ht({ sizeRestrictions: { minWidth: s([n.width, n.minWidth]) || 0, minHeight: s([n.height, n.minHeight]) || 0, maxWidth: s([n.width, n.maxWidth]) || 1 / 0, maxHeight: s([n.height, n.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 } });
12315
+ }, r = ft({ sizeRestrictions: { minWidth: s([n.width, n.minWidth]) || 0, minHeight: s([n.height, n.minHeight]) || 0, maxWidth: s([n.width, n.maxWidth]) || 1 / 0, maxHeight: s([n.height, n.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 } });
12316
12316
  if (n.maxArea && r.width * r.height > n.maxArea) {
12317
12317
  var o = Math.sqrt(n.maxArea / (r.width * r.height));
12318
12318
  r = { width: Math.round(o * r.width), height: Math.round(o * r.height) };
@@ -12500,7 +12500,7 @@ var e0 = ["transitions"], ut = Ke("vue-advanced-cropper"), Al = { name: "Cropper
12500
12500
  }
12501
12501
  return { minimum: e, maximum: i };
12502
12502
  }, getStencilSize: function() {
12503
- 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, i = t.stencilSize, n = t.aspectRatio, zn(oe(s = qt(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = ht({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: n.minimum, maximum: n.maximum } })), (s.width > e.width || s.height > e.height) && (s = ht({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: oe(s), maximum: oe(s) } })), s;
12503
+ 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, i = t.stencilSize, n = t.aspectRatio, zn(oe(s = qt(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = ft({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: n.minimum, maximum: n.maximum } })), (s.width > e.width || s.height > e.height) && (s = ft({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: oe(s), maximum: oe(s) } })), s;
12504
12504
  var t, e, i, n, s;
12505
12505
  }, getPublicProperties: function() {
12506
12506
  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 };
@@ -12831,7 +12831,7 @@ const s0 = { class: "background-container" }, r0 = { class: "dialog-footer" }, o
12831
12831
  () => {
12832
12832
  r.fileInfo.fileSystemPath && (u.value = r.fileInfo, u.value.url = r.fileInfo.getFileUrl());
12833
12833
  }
12834
- ), lt(() => {
12834
+ ), ut(() => {
12835
12835
  r.fileInfo.fileSystemPath && (u.value = r.fileInfo, u.value.url = r.fileInfo.getFileUrl());
12836
12836
  });
12837
12837
  let C = null;