@cregis/ui 0.2.16 → 1.0.1

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.
@@ -1,6 +1,6 @@
1
- import { defineComponent as Q, useSlots as da, ref as Y, computed as v, createElementBlock as x, openBlock as b, normalizeClass as L, createElementVNode as A, createCommentVNode as X, mergeProps as ye, createBlock as Oe, resolveDynamicComponent as Ht, normalizeStyle as ce, renderSlot as K, toDisplayString as I, unref as ne, watch as ee, withDirectives as Ne, vModelDynamic as fa, withModifiers as _t, vModelText as pa, createVNode as Z, withCtx as re, createTextVNode as he, nextTick as Ke, reactive as Ce, provide as qt, toRef as va, Fragment as ct, renderList as ut, inject as Ut, onMounted as et, onUnmounted as De, onBeforeUnmount as Yt, Transition as mt, render as Qe, h as Xt, toHandlers as it, Teleport as ma, vShow as gt } from "vue";
2
- import { EdsLoad as ga, EdsCloseCircleFill as ha, EdsTickFill as ba, EdsWarningFill as ya, EdsSearch as Kt, EdsArrowDownMiniIos as Qt, EdsArrowRightMiniIos as xa } from "@cregis/icon";
3
- const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__ */ Q({
1
+ import { defineComponent as Q, useSlots as ya, ref as F, computed as v, createElementBlock as y, openBlock as p, normalizeClass as W, createElementVNode as A, createCommentVNode as j, mergeProps as we, createBlock as pe, resolveDynamicComponent as Gt, normalizeStyle as ne, renderSlot as G, toDisplayString as M, unref as Z, watch as J, withDirectives as _e, vModelDynamic as wa, withModifiers as bt, vModelText as xa, createVNode as K, withCtx as ee, createTextVNode as ve, nextTick as Fe, reactive as Ve, provide as Qt, toRef as ka, Fragment as ft, renderList as pt, inject as Zt, onMounted as at, onUnmounted as xe, onBeforeUnmount as Jt, Transition as nt, render as Ee, h as yt, toHandlers as st, Teleport as ea, vShow as wt } from "vue";
2
+ import { EdsLoad as $a, EdsCloseCircleFill as Oa, EdsTickFill as Ca, EdsWarningFill as Sa, EdsSearch as ta, EdsArrowDownMiniIos as aa, EdsArrowRightMiniIos as Ta, EdsAdd as Rt, EdsClose as Va, EdsWarningLonely as Ba } from "@cregis/icon";
3
+ const Ea = ["disabled"], Aa = ["disabled"], Da = ["disabled"], Be = /* @__PURE__ */ Q({
4
4
  name: "Button",
5
5
  inheritAttrs: !1,
6
6
  __name: "Button",
@@ -21,16 +21,16 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
21
21
  isActive: { type: Boolean }
22
22
  },
23
23
  setup(e) {
24
- const t = e, a = da(), n = Y(null);
25
- function r() {
26
- t.disabled || t.loading || n.value?.click();
24
+ const a = e, t = ya(), r = F(null);
25
+ function n() {
26
+ a.disabled || a.loading || r.value?.click();
27
27
  }
28
- const o = v(() => {
29
- const c = t, w = a.icon;
28
+ const i = v(() => {
29
+ const c = a, w = t.icon;
30
30
  return !c.icon && typeof w == "function";
31
- }), s = v(() => t.size === "large" ? "20px" : t.size === "medium" ? "16px" : "12px"), i = v(() => t.size === "large" || t.size === "medium" ? "16px" : "12px"), l = v(() => t.width ? { width: t.width } : void 0), d = v(() => {
32
- if (t.plain || t.text)
33
- switch (t.type) {
31
+ }), l = v(() => a.size === "large" ? "20px" : a.size === "medium" ? "16px" : "12px"), o = v(() => a.size === "large" || a.size === "medium" ? "16px" : "12px"), s = v(() => a.width ? { width: a.width } : void 0), d = v(() => {
32
+ if (a.plain || a.text)
33
+ switch (a.type) {
34
34
  case "primary":
35
35
  return "var(--material-brand-primary)";
36
36
  case "secondary":
@@ -43,42 +43,42 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
43
43
  return "var(--material-same-black)";
44
44
  }
45
45
  else
46
- return t.type === "secondary" ? "var(--material-base-secondary)" : t.type === "foreground" ? "var(--text-face-primary)" : t.type === "sameWhite" ? "var(--text-same-black-primary)" : "var(--material-same-white-primary)";
46
+ return a.type === "secondary" ? "var(--material-base-secondary)" : a.type === "foreground" ? "var(--text-face-primary)" : a.type === "sameWhite" ? "var(--text-same-black-primary)" : "var(--material-same-white-primary)";
47
47
  });
48
- return (c, w) => e.icon || c.$slots.icon ? (b(), x("div", {
48
+ return (c, w) => e.icon || c.$slots.icon ? (p(), y("div", {
49
49
  key: 0,
50
- class: L(["cregis-button__icon-wrapper", { "cregis-button__icon-wrapper--professional": e.iconType === "professional" }])
50
+ class: W(["cregis-button__icon-wrapper", { "cregis-button__icon-wrapper--professional": e.iconType === "professional" }])
51
51
  }, [
52
- A("button", ye({
52
+ A("button", we({
53
53
  ref_key: "iconButtonRef",
54
- ref: n
54
+ ref: r
55
55
  }, c.$attrs, {
56
56
  class: ["cregis-button__icon", {
57
57
  [`cregis-button__icon--${e.iconType}`]: e.iconType,
58
58
  [`cregis-button__icon--${e.size}`]: e.size,
59
- "cregis-button__icon--slot": o.value,
59
+ "cregis-button__icon--slot": i.value,
60
60
  "is-disabled": e.disabled,
61
61
  "is-active": e.isActive
62
62
  }],
63
63
  disabled: e.disabled || e.loading
64
64
  }), [
65
- e.icon ? (b(), Oe(Ht(e.icon), {
65
+ e.icon ? (p(), pe(Gt(e.icon), {
66
66
  key: 0,
67
- size: s.value
68
- }, null, 8, ["size"])) : (b(), x("span", {
67
+ size: l.value
68
+ }, null, 8, ["size"])) : (p(), y("span", {
69
69
  key: 1,
70
70
  class: "cregis-button__icon-slot-inner",
71
- style: ce({ "--cregis-btn-icon-slot-size": s.value })
71
+ style: ne({ "--cregis-btn-icon-slot-size": l.value })
72
72
  }, [
73
- K(c.$slots, "icon")
73
+ G(c.$slots, "icon")
74
74
  ], 4))
75
- ], 16, wa),
76
- e.iconText ? (b(), x("span", {
75
+ ], 16, Ea),
76
+ e.iconText ? (p(), y("span", {
77
77
  key: 0,
78
- class: L(["cregis-button__icon-text", { "is-disabled": e.disabled }]),
79
- onClick: r
80
- }, I(e.iconText), 3)) : X("", !0)
81
- ], 2)) : e.link ? (b(), x("button", ye({ key: 1 }, c.$attrs, {
78
+ class: W(["cregis-button__icon-text", { "is-disabled": e.disabled }]),
79
+ onClick: n
80
+ }, M(e.iconText), 3)) : j("", !0)
81
+ ], 2)) : e.link ? (p(), y("button", we({ key: 1 }, c.$attrs, {
82
82
  class: ["cregis-button__link", {
83
83
  [`cregis-button__link--${e.type}`]: e.type,
84
84
  [`cregis-button__link--${e.size}`]: e.size,
@@ -87,12 +87,12 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
87
87
  }],
88
88
  disabled: e.disabled || e.loading
89
89
  }), [
90
- K(c.$slots, "default")
91
- ], 16, $a)) : (b(), x("button", ye({
90
+ G(c.$slots, "default")
91
+ ], 16, Aa)) : (p(), y("button", we({
92
92
  key: 2,
93
93
  ref: "buttonRef"
94
94
  }, c.$attrs, {
95
- style: l.value,
95
+ style: s.value,
96
96
  class: ["cregis-button", {
97
97
  [`cregis-button--${e.type}`]: e.type,
98
98
  [`cregis-button--${e.size}`]: e.size,
@@ -106,24 +106,24 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
106
106
  }],
107
107
  disabled: e.disabled || e.loading
108
108
  }), [
109
- e.loading ? (b(), Oe(ne(ga), {
109
+ e.loading ? (p(), pe(Z($a), {
110
110
  key: 0,
111
111
  class: "loading",
112
- size: i.value,
112
+ size: o.value,
113
113
  color: d.value
114
- }, null, 8, ["size", "color"])) : K(c.$slots, "default", { key: 1 })
115
- ], 16, ka));
114
+ }, null, 8, ["size", "color"])) : G(c.$slots, "default", { key: 1 })
115
+ ], 16, Da));
116
116
  }
117
- }), Oa = {
117
+ }), Pa = {
118
118
  key: 0,
119
119
  class: "cregis-input__prefix"
120
- }, Ta = ["type", "inputmode", "placeholder", "min", "disabled"], Sa = {
120
+ }, za = ["type", "inputmode", "placeholder", "min", "disabled"], Ra = {
121
121
  key: 2,
122
122
  class: "cregis-input__suffix"
123
- }, Ca = ["disabled", "placeholder", "rows"], Va = {
123
+ }, La = ["disabled", "placeholder", "rows"], Wa = {
124
124
  key: 0,
125
125
  class: "cregis-textarea__buttons"
126
- }, Gt = /* @__PURE__ */ Q({
126
+ }, na = /* @__PURE__ */ Q({
127
127
  name: "Input",
128
128
  inheritAttrs: !1,
129
129
  __name: "Input",
@@ -144,234 +144,234 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
144
144
  clearText: { default: "Clear" }
145
145
  },
146
146
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
147
- setup(e, { expose: t, emit: a }) {
148
- const n = e, r = a, o = (u) => {
147
+ setup(e, { expose: a, emit: t }) {
148
+ const r = e, n = t, i = (u) => {
149
149
  if (u === "" || u === null || u === void 0) return "";
150
- const h = String(u).trim();
151
- if (h === "") return "";
152
- const D = Number(h.replace(/,/g, ""));
153
- if (!Number.isNaN(D) && D < 0) return Math.abs(D);
154
- if (/^-/.test(h)) {
155
- const _ = h.replace(/^-+/, "");
156
- return _ === "" ? "" : _;
150
+ const b = String(u).trim();
151
+ if (b === "") return "";
152
+ const z = Number(b.replace(/,/g, ""));
153
+ if (!Number.isNaN(z) && z < 0) return Math.abs(z);
154
+ if (/^-/.test(b)) {
155
+ const q = b.replace(/^-+/, "");
156
+ return q === "" ? "" : q;
157
157
  }
158
158
  return u;
159
- }, s = v(() => {
160
- const u = n.decimals;
159
+ }, l = v(() => {
160
+ const u = r.decimals;
161
161
  return u === void 0 || !Number.isFinite(u) ? null : Math.max(0, Math.floor(u));
162
- }), i = v(
163
- () => n.type === "number" && s.value !== null
164
- ), l = v(
165
- () => i.value ? "text" : n.type
166
- ), d = v(() => i.value ? "decimal" : void 0), c = (u) => u.replace(/[,,。.]/g, "."), w = (u) => {
162
+ }), o = v(
163
+ () => r.type === "number" && l.value !== null
164
+ ), s = v(
165
+ () => o.value ? "text" : r.type
166
+ ), d = v(() => o.value ? "decimal" : void 0), c = (u) => u.replace(/[,,。.]/g, "."), w = (u) => {
167
167
  if (u === "" || u === null || u === void 0) return "";
168
- let h = c(String(u).trim());
169
- if (h === "") return "";
170
- let D = !1;
171
- !n.nonNegative && h.startsWith("-") && (D = !0, h = h.slice(1)), h = h.replace(/[^\d.]/g, "");
172
- const _ = h.indexOf(".");
173
- return _ !== -1 && (h = h.slice(0, _ + 1) + h.slice(_ + 1).replace(/\./g, "")), (D ? "-" : "") + h;
174
- }, O = (u) => {
175
- const h = s.value;
176
- if (h === null) return u;
168
+ let b = c(String(u).trim());
169
+ if (b === "") return "";
170
+ let z = !1;
171
+ !r.nonNegative && b.startsWith("-") && (z = !0, b = b.slice(1)), b = b.replace(/[^\d.]/g, "");
172
+ const q = b.indexOf(".");
173
+ return q !== -1 && (b = b.slice(0, q + 1) + b.slice(q + 1).replace(/\./g, "")), (z ? "-" : "") + b;
174
+ }, $ = (u) => {
175
+ const b = l.value;
176
+ if (b === null) return u;
177
177
  if (u === "" || u === null || u === void 0) return "";
178
- const D = String(u).trim();
179
- if (D === "") return "";
180
- const _ = D.startsWith("-");
181
- let te = _ ? D.slice(1) : D;
182
- const m = te.indexOf(".");
183
- if (m === -1) return u;
184
- const F = te.slice(0, m), q = te.slice(m + 1);
185
- return h === 0 ? (_ ? "-" : "") + F : q.length <= h ? u : (_ ? "-" : "") + F + "." + q.slice(0, h);
186
- }, g = (u) => {
187
- let h = u;
188
- return i.value && (h = w(h)), n.nonNegative && (h = o(h)), s.value !== null && (h = O(h)), h;
189
- }, y = Y(
190
- n.type === "number" ? g(n.modelValue) : n.modelValue
178
+ const z = String(u).trim();
179
+ if (z === "") return "";
180
+ const q = z.startsWith("-");
181
+ let re = q ? z.slice(1) : z;
182
+ const h = re.indexOf(".");
183
+ if (h === -1) return u;
184
+ const H = re.slice(0, h), Y = re.slice(h + 1);
185
+ return b === 0 ? (q ? "-" : "") + H : Y.length <= b ? u : (q ? "-" : "") + H + "." + Y.slice(0, b);
186
+ }, m = (u) => {
187
+ let b = u;
188
+ return o.value && (b = w(b)), r.nonNegative && (b = i(b)), l.value !== null && (b = $(b)), b;
189
+ }, k = F(
190
+ r.type === "number" ? m(r.modelValue) : r.modelValue
191
191
  );
192
- ee(
193
- () => n.modelValue,
192
+ J(
193
+ () => r.modelValue,
194
194
  (u) => {
195
- y.value = n.type === "number" ? g(u) : u;
195
+ k.value = r.type === "number" ? m(u) : u;
196
196
  }
197
197
  );
198
- const $ = Y(), T = Y(0), B = Y(!1);
199
- let z = null;
200
- const N = async () => {
201
- await Ke(), $.value?.focus();
202
- }, S = async () => {
203
- if (n.type === "number") {
204
- const u = g(y.value);
205
- u !== y.value && (y.value = u);
198
+ const O = F(), V = F(0), x = F(!1);
199
+ let B = null;
200
+ const R = async () => {
201
+ await Fe(), O.value?.focus();
202
+ }, C = async () => {
203
+ if (r.type === "number") {
204
+ const u = m(k.value);
205
+ u !== k.value && (k.value = u);
206
206
  }
207
- r("update:modelValue", y.value), r("input", y.value), await Ke(), M();
208
- }, C = () => {
209
- r("change", y.value);
207
+ n("update:modelValue", k.value), n("input", k.value), await Fe(), I();
208
+ }, E = () => {
209
+ n("change", k.value);
210
210
  }, f = (u) => {
211
- B.value = !0, r("focus", u);
212
- }, V = (u) => {
213
- B.value = !1, r("blur", u);
214
- }, E = v(() => n.clearable && !n.disabled && !!y.value && B.value), W = () => {
215
- y.value = "", r("update:modelValue", ""), r("clear"), r("input", ""), r("change", "");
216
- }, M = () => {
217
- z && cancelAnimationFrame(z), z = requestAnimationFrame(() => {
218
- if (!$.value || $.value.tagName !== "INPUT") return;
219
- const u = $.value, h = u.value, D = document.createElement("span");
220
- D.style.position = "absolute", D.style.visibility = "hidden", D.style.whiteSpace = "pre", D.style.font = window.getComputedStyle(u).font, D.style.letterSpacing = window.getComputedStyle(u).letterSpacing, D.textContent = h || " ", document.body.appendChild(D), T.value = D.getBoundingClientRect().width, document.body.removeChild(D);
211
+ x.value = !0, n("focus", u);
212
+ }, S = (u) => {
213
+ x.value = !1, n("blur", u);
214
+ }, P = v(() => r.clearable && !r.disabled && !!k.value && x.value), N = () => {
215
+ k.value = "", n("update:modelValue", ""), n("clear"), n("input", ""), n("change", "");
216
+ }, I = () => {
217
+ B && cancelAnimationFrame(B), B = requestAnimationFrame(() => {
218
+ if (!O.value || O.value.tagName !== "INPUT") return;
219
+ const u = O.value, b = u.value, z = document.createElement("span");
220
+ z.style.position = "absolute", z.style.visibility = "hidden", z.style.whiteSpace = "pre", z.style.font = window.getComputedStyle(u).font, z.style.letterSpacing = window.getComputedStyle(u).letterSpacing, z.textContent = b || " ", document.body.appendChild(z), V.value = z.getBoundingClientRect().width, document.body.removeChild(z);
221
221
  });
222
- }, j = v(() => {
222
+ }, _ = v(() => {
223
223
  const u = {};
224
- return T.value > 0 && (u.position = "absolute", u.left = `${T.value + 16}px`), u;
225
- }), k = async () => {
224
+ return V.value > 0 && (u.position = "absolute", u.left = `${V.value + 16}px`), u;
225
+ }), T = async () => {
226
226
  try {
227
- y.value = await navigator.clipboard.readText(), r("update:modelValue", y.value);
227
+ k.value = await navigator.clipboard.readText(), n("update:modelValue", k.value);
228
228
  } catch (u) {
229
229
  console.error("paste error:", u);
230
230
  }
231
- }, P = v(
232
- () => n.type === "number" && n.nonNegative ? 0 : void 0
233
- ), U = (u) => u === "." || u === "," || u === "," || u === "。" || u === "." || u === "Decimal", G = (u) => {
234
- if (n.type !== "number" || u.isComposing) return;
235
- const h = s.value;
236
- if ((n.nonNegative || h !== null) && (u.key === "e" || u.key === "E")) {
231
+ }, D = v(
232
+ () => r.type === "number" && r.nonNegative ? 0 : void 0
233
+ ), X = (u) => u === "." || u === "," || u === "," || u === "。" || u === "." || u === "Decimal", te = (u) => {
234
+ if (r.type !== "number" || u.isComposing) return;
235
+ const b = l.value;
236
+ if ((r.nonNegative || b !== null) && (u.key === "e" || u.key === "E")) {
237
237
  u.preventDefault();
238
238
  return;
239
239
  }
240
- if (n.nonNegative && (u.key === "-" || u.key === "+")) {
240
+ if (r.nonNegative && (u.key === "-" || u.key === "+")) {
241
241
  u.preventDefault();
242
242
  return;
243
243
  }
244
- if (h === 0 && U(u.key)) {
244
+ if (b === 0 && X(u.key)) {
245
245
  u.preventDefault();
246
246
  return;
247
247
  }
248
- if (h !== null && h > 0 && U(u.key)) {
249
- const D = u.target;
250
- c(D.value).includes(".") && u.preventDefault();
248
+ if (b !== null && b > 0 && X(u.key)) {
249
+ const z = u.target;
250
+ c(z.value).includes(".") && u.preventDefault();
251
251
  return;
252
252
  }
253
- if (h !== null && h > 0 && u.key !== "." && /^\d$/.test(u.key)) {
254
- const D = u.target, _ = c(D.value), te = D.selectionStart, m = D.selectionEnd;
255
- if (te === null || m === null) return;
256
- const F = _.slice(0, te) + u.key + _.slice(m), q = F.indexOf(".");
257
- q !== -1 && F.slice(q + 1).replace(/\D/g, "").length > h && u.preventDefault();
253
+ if (b !== null && b > 0 && u.key !== "." && /^\d$/.test(u.key)) {
254
+ const z = u.target, q = c(z.value), re = z.selectionStart, h = z.selectionEnd;
255
+ if (re === null || h === null) return;
256
+ const H = q.slice(0, re) + u.key + q.slice(h), Y = H.indexOf(".");
257
+ Y !== -1 && H.slice(Y + 1).replace(/\D/g, "").length > b && u.preventDefault();
258
258
  }
259
259
  };
260
- return t({
261
- focus: N,
262
- updateTextWidth: M
263
- }), (u, h) => e.type !== "textarea" ? (b(), x("div", {
260
+ return a({
261
+ focus: R,
262
+ updateTextWidth: I
263
+ }), (u, b) => e.type !== "textarea" ? (p(), y("div", {
264
264
  key: 0,
265
- class: L(["cregis-input", {
265
+ class: W(["cregis-input", {
266
266
  [`cregis-input--${e.size}`]: e.size,
267
267
  "is-disabled": e.disabled,
268
268
  "is-prefix": u.$slots.prefix,
269
269
  "is-suffix": u.$slots.suffix
270
270
  }]),
271
- style: ce([{ width: e.width }, e.inputStyle])
271
+ style: ne([{ width: e.width }, e.inputStyle])
272
272
  }, [
273
273
  A("div", {
274
- class: L(["cregis-input__wrapper", { "is-focus": B.value }])
274
+ class: W(["cregis-input__wrapper", { "is-focus": x.value }])
275
275
  }, [
276
- u.$slots.prefix ? (b(), x("span", Oa, [
277
- K(u.$slots, "prefix")
278
- ])) : X("", !0),
279
- Ne(A("input", ye({
276
+ u.$slots.prefix ? (p(), y("span", Pa, [
277
+ G(u.$slots, "prefix")
278
+ ])) : j("", !0),
279
+ _e(A("input", we({
280
280
  class: "cregis-input__inner",
281
- "onUpdate:modelValue": h[0] || (h[0] = (D) => y.value = D),
281
+ "onUpdate:modelValue": b[0] || (b[0] = (z) => k.value = z),
282
282
  ref_key: "inputRef",
283
- ref: $,
284
- type: l.value,
283
+ ref: O,
284
+ type: s.value,
285
285
  inputmode: d.value,
286
286
  placeholder: e.placeholder
287
287
  }, u.$attrs, {
288
- min: P.value,
288
+ min: D.value,
289
289
  spellcheck: "false",
290
290
  disabled: e.disabled,
291
- onInput: S,
292
- onChange: C,
291
+ onInput: C,
292
+ onChange: E,
293
293
  onFocus: f,
294
- onBlur: V,
295
- onKeydown: G
296
- }), null, 16, Ta), [
297
- [fa, y.value]
294
+ onBlur: S,
295
+ onKeydown: te
296
+ }), null, 16, za), [
297
+ [wa, k.value]
298
298
  ]),
299
- e.unit && y.value ? (b(), x("span", {
299
+ e.unit && k.value ? (p(), y("span", {
300
300
  key: 1,
301
- style: ce(j.value),
301
+ style: ne(_.value),
302
302
  class: "cregis-input__unit"
303
- }, I(e.unit), 5)) : X("", !0),
304
- u.$slots.suffix || E.value ? (b(), x("span", Sa, [
305
- K(u.$slots, "suffix"),
306
- E.value ? (b(), Oe(Ye, {
303
+ }, M(e.unit), 5)) : j("", !0),
304
+ u.$slots.suffix || P.value ? (p(), y("span", Ra, [
305
+ G(u.$slots, "suffix"),
306
+ P.value ? (p(), pe(Be, {
307
307
  key: 0,
308
- icon: ne(ha),
308
+ icon: Z(Oa),
309
309
  "icon-type": "square",
310
- onClick: W,
311
- onMousedown: h[1] || (h[1] = _t(() => {
310
+ onClick: N,
311
+ onMousedown: b[1] || (b[1] = bt(() => {
312
312
  }, ["prevent"]))
313
- }, null, 8, ["icon"])) : X("", !0)
314
- ])) : X("", !0)
313
+ }, null, 8, ["icon"])) : j("", !0)
314
+ ])) : j("", !0)
315
315
  ], 2)
316
- ], 6)) : (b(), x("div", {
316
+ ], 6)) : (p(), y("div", {
317
317
  key: 1,
318
- class: L(["cregis-textarea", { "is-disabled": e.disabled }]),
319
- style: ce([{ width: e.width }, e.inputStyle])
318
+ class: W(["cregis-textarea", { "is-disabled": e.disabled }]),
319
+ style: ne([{ width: e.width }, e.inputStyle])
320
320
  }, [
321
- Ne(A("textarea", ye({ class: "cregis-textarea__wrapper" }, u.$attrs, {
321
+ _e(A("textarea", we({ class: "cregis-textarea__wrapper" }, u.$attrs, {
322
322
  spellcheck: "false",
323
323
  ref_key: "inputRef",
324
- ref: $,
324
+ ref: O,
325
325
  disabled: e.disabled,
326
326
  placeholder: e.placeholder,
327
327
  rows: e.rows,
328
- "onUpdate:modelValue": h[2] || (h[2] = (D) => y.value = D),
329
- onInput: S,
330
- onChange: C,
328
+ "onUpdate:modelValue": b[2] || (b[2] = (z) => k.value = z),
329
+ onInput: C,
330
+ onChange: E,
331
331
  onFocus: f,
332
- onBlur: V
333
- }), null, 16, Ca), [
334
- [pa, y.value]
332
+ onBlur: S
333
+ }), null, 16, La), [
334
+ [xa, k.value]
335
335
  ]),
336
- e.disabled ? X("", !0) : (b(), x("div", Va, [
337
- Z(Ye, {
336
+ e.disabled ? j("", !0) : (p(), y("div", Wa, [
337
+ K(Be, {
338
338
  class: "cregis-textarea__button",
339
339
  link: "",
340
340
  size: "small",
341
- onClick: k
341
+ onClick: T
342
342
  }, {
343
- default: re(() => [
344
- he(I(e.pasteText), 1)
343
+ default: ee(() => [
344
+ ve(M(e.pasteText), 1)
345
345
  ]),
346
346
  _: 1
347
347
  }),
348
- Z(Ye, {
348
+ K(Be, {
349
349
  class: "cregis-textarea__button",
350
350
  link: "",
351
351
  size: "small",
352
- disabled: !y.value,
353
- onClick: W
352
+ disabled: !k.value,
353
+ onClick: N
354
354
  }, {
355
- default: re(() => [
356
- he(I(e.clearText), 1)
355
+ default: ee(() => [
356
+ ve(M(e.clearText), 1)
357
357
  ]),
358
358
  _: 1
359
359
  }, 8, ["disabled"])
360
360
  ]))
361
361
  ], 6));
362
362
  }
363
- }), Ba = ["width", "height"], Pa = {
363
+ }), Ma = ["width", "height"], ja = {
364
364
  stroke: "none",
365
365
  "stroke-width": "1",
366
366
  fill: "none",
367
367
  "fill-rule": "evenodd"
368
- }, Ea = { transform: "translate(-394.000000, -457.000000)" }, Da = { transform: "translate(394.000000, 457.000000)" }, Aa = ["width", "height"], za = /* @__PURE__ */ Q({
368
+ }, Na = { transform: "translate(-394.000000, -457.000000)" }, Ia = { transform: "translate(394.000000, 457.000000)" }, _a = ["width", "height"], Fa = /* @__PURE__ */ Q({
369
369
  __name: "checked-basis",
370
370
  props: {
371
371
  size: { default: "16px" }
372
372
  },
373
373
  setup(e) {
374
- return (t, a) => (b(), x("svg", {
374
+ return (a, t) => (p(), y("svg", {
375
375
  width: e.size,
376
376
  height: e.size,
377
377
  viewBox: "0 0 16 16",
@@ -379,16 +379,16 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
379
379
  xmlns: "http://www.w3.org/2000/svg",
380
380
  "xmlns:xlink": "http://www.w3.org/1999/xlink"
381
381
  }, [
382
- A("g", Pa, [
383
- A("g", Ea, [
384
- A("g", Da, [
382
+ A("g", ja, [
383
+ A("g", Na, [
384
+ A("g", Ia, [
385
385
  A("rect", {
386
386
  x: "0",
387
387
  y: "0",
388
388
  width: e.size,
389
389
  height: e.size
390
- }, null, 8, Aa),
391
- a[0] || (a[0] = A("path", {
390
+ }, null, 8, _a),
391
+ t[0] || (t[0] = A("path", {
392
392
  d: "M6.67713976,13.5709642 C7.12567714,13.5709642 7.468039,13.3943662 7.70422535,13.0411701 L13.7562297,3.77789816 C13.8407367,3.65005417 13.9024919,3.52546046 13.9414951,3.40411701 C13.9804984,3.28277356 14,3.16468039 14,3.04983749 C14,2.74647887 13.8976165,2.49566631 13.6928494,2.29739978 C13.4880823,2.09913326 13.2307692,2 12.9209101,2 C12.7063922,2 12.5265439,2.04225352 12.3813651,2.12676056 C12.2361863,2.21126761 12.0975081,2.35536295 11.9653304,2.55904659 L6.65113759,10.9512459 L3.95016251,7.60346696 C3.71830986,7.32177681 3.43011918,7.18093174 3.08559047,7.18093174 C2.77139762,7.18093174 2.51191766,7.28169014 2.3071506,7.48320693 C2.10238353,7.68472373 2,7.93824485 2,8.24377031 C2,8.38028169 2.02329361,8.51083424 2.06988082,8.63542795 C2.11646804,8.76002167 2.19826652,8.88949079 2.31527627,9.02383532 L5.67280607,13.0899242 C5.94149512,13.4106176 6.27627302,13.5709642 6.67713976,13.5709642 Z",
393
393
  fill: "currentColor",
394
394
  "fill-rule": "nonzero"
@@ -396,12 +396,12 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
396
396
  ])
397
397
  ])
398
398
  ])
399
- ], 8, Ba));
399
+ ], 8, Ma));
400
400
  }
401
- }), Ra = {
401
+ }), Ha = {
402
402
  key: 0,
403
403
  class: "cregis-checkbox--indeterminate"
404
- }, Wa = /* @__PURE__ */ Q({
404
+ }, Ua = /* @__PURE__ */ Q({
405
405
  name: "Checkbox",
406
406
  __name: "Checkbox",
407
407
  props: {
@@ -412,43 +412,43 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
412
412
  indeterminate: { type: Boolean }
413
413
  },
414
414
  emits: ["update:modelValue", "change"],
415
- setup(e, { emit: t }) {
416
- const a = e, n = t, r = v(() => a.modelValue), o = () => {
417
- a.disabled || n("update:modelValue", !r.value);
415
+ setup(e, { emit: a }) {
416
+ const t = e, r = a, n = v(() => t.modelValue), i = () => {
417
+ t.disabled || r("update:modelValue", !n.value);
418
418
  };
419
- return ee(
420
- () => r.value,
419
+ return J(
420
+ () => n.value,
421
421
  () => {
422
- n("change", r.value);
422
+ r("change", n.value);
423
423
  }
424
- ), (s, i) => (b(), x("div", {
424
+ ), (l, o) => (p(), y("div", {
425
425
  class: "cregis-checkbox__wrapper",
426
- onClick: o
426
+ onClick: i
427
427
  }, [
428
428
  A("div", {
429
- class: L(["cregis-checkbox", {
429
+ class: W(["cregis-checkbox", {
430
430
  "is-disabled": e.disabled,
431
- "is-checked": r.value,
431
+ "is-checked": n.value,
432
432
  "is-circle": e.circle,
433
433
  "is-indeterminate": e.indeterminate
434
434
  }])
435
435
  }, [
436
- e.indeterminate ? (b(), x("div", Ra)) : (b(), Oe(za, {
436
+ e.indeterminate ? (p(), y("div", Ha)) : (p(), pe(Fa, {
437
437
  key: 1,
438
438
  size: "10px"
439
439
  }))
440
440
  ], 2),
441
- s.$slots.default || e.label ? (b(), x("span", {
441
+ l.$slots.default || e.label ? (p(), y("span", {
442
442
  key: 0,
443
- class: L(["cregis-checkbox__label", { "is-disabled": e.disabled }])
443
+ class: W(["cregis-checkbox__label", { "is-disabled": e.disabled }])
444
444
  }, [
445
- K(s.$slots, "default", {}, () => [
446
- he(I(e.label), 1)
445
+ G(l.$slots, "default", {}, () => [
446
+ ve(M(e.label), 1)
447
447
  ])
448
- ], 2)) : X("", !0)
448
+ ], 2)) : j("", !0)
449
449
  ]));
450
450
  }
451
- }), ri = /* @__PURE__ */ Q({
451
+ }), Si = /* @__PURE__ */ Q({
452
452
  name: "Radio",
453
453
  __name: "Radio",
454
454
  props: {
@@ -458,33 +458,33 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
458
458
  disabled: { type: Boolean }
459
459
  },
460
460
  emits: ["update:modelValue", "change"],
461
- setup(e, { emit: t }) {
462
- const a = e, n = t, r = v(() => a.modelValue === a.value), o = () => {
463
- a.disabled || (n("update:modelValue", a.value), n("change", a.value));
461
+ setup(e, { emit: a }) {
462
+ const t = e, r = a, n = v(() => t.modelValue === t.value), i = () => {
463
+ t.disabled || (r("update:modelValue", t.value), r("change", t.value));
464
464
  };
465
- return (s, i) => (b(), x("div", {
465
+ return (l, o) => (p(), y("div", {
466
466
  class: "cregis-radio__wrapper",
467
- onClick: o
467
+ onClick: i
468
468
  }, [
469
469
  A("div", {
470
- class: L(["cregis-radio", {
470
+ class: W(["cregis-radio", {
471
471
  "is-disabled": e.disabled,
472
- "is-checked": r.value
472
+ "is-checked": n.value
473
473
  }])
474
- }, [...i[0] || (i[0] = [
474
+ }, [...o[0] || (o[0] = [
475
475
  A("div", { class: "cregis-radio__inner" }, null, -1)
476
476
  ])], 2),
477
- s.$slots.default || e.label ? (b(), x("span", {
477
+ l.$slots.default || e.label ? (p(), y("span", {
478
478
  key: 0,
479
- class: L(["cregis-radio__label", { "is-disabled": e.disabled }])
479
+ class: W(["cregis-radio__label", { "is-disabled": e.disabled }])
480
480
  }, [
481
- K(s.$slots, "default", {}, () => [
482
- he(I(e.label), 1)
481
+ G(l.$slots, "default", {}, () => [
482
+ ve(M(e.label), 1)
483
483
  ])
484
- ], 2)) : X("", !0)
484
+ ], 2)) : j("", !0)
485
485
  ]));
486
486
  }
487
- }), ii = /* @__PURE__ */ Q({
487
+ }), Ti = /* @__PURE__ */ Q({
488
488
  name: "Divider",
489
489
  __name: "Divider",
490
490
  props: {
@@ -496,33 +496,33 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
496
496
  length: {}
497
497
  },
498
498
  setup(e) {
499
- const t = e, a = v(() => {
500
- if (Array.isArray(t.margin)) {
501
- const [r, o] = t.margin;
502
- return t.direction === "horizontal" ? `${r} 0 ${o} 0` : `0 ${o} 0 ${r}`;
499
+ const a = e, t = v(() => {
500
+ if (Array.isArray(a.margin)) {
501
+ const [n, i] = a.margin;
502
+ return a.direction === "horizontal" ? `${n} 0 ${i} 0` : `0 ${i} 0 ${n}`;
503
503
  } else
504
- return t.direction === "horizontal" ? `${t.margin} 0` : `0 ${t.margin}`;
505
- }), n = v(() => t.direction === "horizontal" ? {
506
- width: t.length || "100%",
507
- borderTopWidth: t.lineThickness,
508
- borderTopStyle: t.borderStyle,
509
- borderTopColor: t.color,
510
- margin: a.value
504
+ return a.direction === "horizontal" ? `${a.margin} 0` : `0 ${a.margin}`;
505
+ }), r = v(() => a.direction === "horizontal" ? {
506
+ width: a.length || "100%",
507
+ borderTopWidth: a.lineThickness,
508
+ borderTopStyle: a.borderStyle,
509
+ borderTopColor: a.color,
510
+ margin: t.value
511
511
  } : {
512
- height: t.length || "1rem",
513
- borderLeftWidth: t.lineThickness,
514
- borderLeftStyle: t.borderStyle,
515
- borderLeftColor: t.color,
516
- margin: a.value
512
+ height: a.length || "1rem",
513
+ borderLeftWidth: a.lineThickness,
514
+ borderLeftStyle: a.borderStyle,
515
+ borderLeftColor: a.color,
516
+ margin: t.value
517
517
  });
518
- return (r, o) => (b(), x("div", {
519
- class: L(["cregis-divider", {
518
+ return (n, i) => (p(), y("div", {
519
+ class: W(["cregis-divider", {
520
520
  [`cregis-divider--${e.direction}`]: e.direction
521
521
  }]),
522
- style: ce(n.value)
522
+ style: ne(r.value)
523
523
  }, null, 6));
524
524
  }
525
- }), Zt = Symbol("TABS_KEY"), Ma = ["onClick"], La = { style: { display: "none" } }, oi = /* @__PURE__ */ Q({
525
+ }), ra = Symbol("TABS_KEY"), qa = ["onClick"], Ya = { style: { display: "none" } }, Vi = /* @__PURE__ */ Q({
526
526
  name: "Tabs",
527
527
  __name: "Tabs",
528
528
  props: {
@@ -532,44 +532,44 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
532
532
  },
533
533
  emits: ["update:modelValue"],
534
534
  setup(e) {
535
- const t = e, a = Ce([]), n = (s) => {
536
- a.some((i) => i.name === s.name) || a.push(s);
537
- }, r = (s) => {
538
- const i = a.findIndex((l) => l.name === s);
539
- i !== -1 && a.splice(i, 1);
540
- }, o = v(() => t.type === "card" ? t.size === "large" ? {
535
+ const a = e, t = Ve([]), r = (l) => {
536
+ t.some((o) => o.name === l.name) || t.push(l);
537
+ }, n = (l) => {
538
+ const o = t.findIndex((s) => s.name === l);
539
+ o !== -1 && t.splice(o, 1);
540
+ }, i = v(() => a.type === "card" ? a.size === "large" ? {
541
541
  borderRadius: "13px"
542
- } : t.size === "medium" ? {
542
+ } : a.size === "medium" ? {
543
543
  borderRadius: "11px"
544
544
  } : {
545
545
  borderRadius: "9px"
546
546
  } : {
547
547
  borderRadius: 0
548
548
  });
549
- return qt(Zt, {
550
- activeName: va(t, "modelValue"),
551
- registerTab: n,
552
- unregisterTab: r
553
- }), (s, i) => (b(), x("div", {
554
- class: L(["cregis-tabs", {
549
+ return Qt(ra, {
550
+ activeName: ka(a, "modelValue"),
551
+ registerTab: r,
552
+ unregisterTab: n
553
+ }), (l, o) => (p(), y("div", {
554
+ class: W(["cregis-tabs", {
555
555
  [`cregis-tabs--${e.type}`]: e.type,
556
556
  [`cregis-tabs--${e.size}`]: e.size
557
557
  }])
558
558
  }, [
559
- (b(!0), x(ct, null, ut(a, (l) => (b(), x("div", {
560
- key: l.name,
561
- class: L(["cregis-tabs__item", { "is-active": e.modelValue === l.name }]),
562
- style: ce(o.value),
563
- onClick: (d) => s.$emit("update:modelValue", l.name)
559
+ (p(!0), y(ft, null, pt(t, (s) => (p(), y("div", {
560
+ key: s.name,
561
+ class: W(["cregis-tabs__item", { "is-active": e.modelValue === s.name }]),
562
+ style: ne(i.value),
563
+ onClick: (d) => l.$emit("update:modelValue", s.name)
564
564
  }, [
565
- A("span", null, I(l.label), 1)
566
- ], 14, Ma))), 128)),
567
- A("div", La, [
568
- K(s.$slots, "default")
565
+ A("span", null, M(s.label), 1)
566
+ ], 14, qa))), 128)),
567
+ A("div", Ya, [
568
+ G(l.$slots, "default")
569
569
  ])
570
570
  ], 2));
571
571
  }
572
- }), li = /* @__PURE__ */ Q({
572
+ }), Bi = /* @__PURE__ */ Q({
573
573
  name: "TabPane",
574
574
  __name: "TabPane",
575
575
  props: {
@@ -577,25 +577,25 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
577
577
  name: {}
578
578
  },
579
579
  setup(e) {
580
- const t = e, a = Ut(Zt);
581
- if (!a) throw new Error("TabPane must be used within Tabs");
582
- return et(() => {
583
- a.registerTab({ label: t.label, name: t.name });
584
- }), ee(
585
- () => t.label,
586
- (n) => {
587
- a.unregisterTab(t.name), a.registerTab({ label: n, name: t.name });
580
+ const a = e, t = Zt(ra);
581
+ if (!t) throw new Error("TabPane must be used within Tabs");
582
+ return at(() => {
583
+ t.registerTab({ label: a.label, name: a.name });
584
+ }), J(
585
+ () => a.label,
586
+ (r) => {
587
+ t.unregisterTab(a.name), t.registerTab({ label: r, name: a.name });
588
588
  }
589
- ), De(() => {
590
- a.unregisterTab(t.name);
591
- }), (n, r) => null;
589
+ ), xe(() => {
590
+ t.unregisterTab(a.name);
591
+ }), (r, n) => null;
592
592
  }
593
- }), Na = {
593
+ }), Xa = {
594
594
  key: 1,
595
595
  class: "cregis-message--success",
596
596
  role: "status",
597
597
  "aria-live": "polite"
598
- }, ja = { class: "cregis-message__icon" }, Ia = /* @__PURE__ */ Q({
598
+ }, Ka = { class: "cregis-message__icon" }, Ga = /* @__PURE__ */ Q({
599
599
  name: "Message",
600
600
  __name: "Message",
601
601
  props: {
@@ -605,79 +605,79 @@ const wa = ["disabled"], $a = ["disabled"], ka = ["disabled"], Ye = /* @__PURE__
605
605
  onVanish: {}
606
606
  },
607
607
  setup(e) {
608
- const t = e, a = Y(!1);
609
- let n;
610
- const r = () => {
611
- n = window.setTimeout(() => {
612
- a.value = !1;
613
- }, t.duration);
614
- }, o = () => {
615
- t.onVanish?.();
608
+ const a = e, t = F(!1);
609
+ let r;
610
+ const n = () => {
611
+ r = window.setTimeout(() => {
612
+ t.value = !1;
613
+ }, a.duration);
614
+ }, i = () => {
615
+ a.onVanish?.();
616
616
  };
617
- return Yt(() => {
618
- n !== void 0 && clearTimeout(n);
619
- }), Ke(() => {
620
- a.value = !0;
621
- }), (s, i) => (b(), x("div", {
622
- class: L(["cregis-message__wrapper", { "cregis-message__wrapper--success": e.type === "success" }])
617
+ return Jt(() => {
618
+ r !== void 0 && clearTimeout(r);
619
+ }), Fe(() => {
620
+ t.value = !0;
621
+ }), (l, o) => (p(), y("div", {
622
+ class: W(["cregis-message__wrapper", { "cregis-message__wrapper--success": e.type === "success" }])
623
623
  }, [
624
- Z(mt, {
624
+ K(nt, {
625
625
  name: "cregis-message",
626
- onAfterEnter: r,
627
- onAfterLeave: o
626
+ onAfterEnter: n,
627
+ onAfterLeave: i
628
628
  }, {
629
- default: re(() => [
630
- a.value && e.type !== "success" ? (b(), x("div", {
629
+ default: ee(() => [
630
+ t.value && e.type !== "success" ? (p(), y("div", {
631
631
  key: 0,
632
- class: L(["cregis-message", { "cregis-message--danger": e.type === "danger" }]),
632
+ class: W(["cregis-message", { "cregis-message--danger": e.type === "danger" }]),
633
633
  role: "status",
634
634
  "aria-live": "polite"
635
- }, I(e.message), 3)) : a.value && e.type === "success" ? (b(), x("div", Na, [
636
- A("div", ja, [
637
- Z(ne(ba), {
635
+ }, M(e.message), 3)) : t.value && e.type === "success" ? (p(), y("div", Xa, [
636
+ A("div", Ka, [
637
+ K(Z(Ca), {
638
638
  size: "16px",
639
639
  color: "var(--material-same-white-primary)"
640
640
  })
641
641
  ]),
642
- A("p", null, I(e.message), 1)
643
- ])) : X("", !0)
642
+ A("p", null, M(e.message), 1)
643
+ ])) : j("", !0)
644
644
  ]),
645
645
  _: 1
646
646
  })
647
647
  ], 2));
648
648
  }
649
649
  });
650
- let ot = !1;
651
- function Fa(e) {
650
+ let ct = !1;
651
+ function Qa(e) {
652
652
  return typeof e == "string" ? { message: e, duration: 1e3, type: "default" } : {
653
653
  message: e.message,
654
654
  duration: e.duration ?? 1e3,
655
655
  type: e.type ?? "default"
656
656
  };
657
657
  }
658
- function si(e) {
659
- if (ot) return;
660
- const { message: t, duration: a, type: n } = Fa(e);
661
- ot = !0;
662
- const r = document.createElement("div");
663
- document.body.appendChild(r), Qe(
664
- Xt(Ia, {
665
- message: t,
666
- duration: a,
667
- type: n,
658
+ function Lt(e) {
659
+ if (ct) return;
660
+ const { message: a, duration: t, type: r } = Qa(e);
661
+ ct = !0;
662
+ const n = document.createElement("div");
663
+ document.body.appendChild(n), Ee(
664
+ yt(Ga, {
665
+ message: a,
666
+ duration: t,
667
+ type: r,
668
668
  onVanish: () => {
669
- ot = !1, Qe(null, r), r.remove();
669
+ ct = !1, Ee(null, n), n.remove();
670
670
  }
671
671
  }),
672
- r
672
+ n
673
673
  );
674
674
  }
675
- const Ha = { class: "cregis-notification__wrapper" }, _a = {
675
+ const Za = { class: "cregis-notification__wrapper" }, Ja = {
676
676
  key: 0,
677
677
  class: "cregis-notification",
678
678
  role: "status",
679
679
  "aria-live": "polite"
680
- }, qa = { class: "cregis-notification__content" }, Ua = { class: "cregis-notification__title" }, Ya = { class: "cregis-notification__message" }, Xa = /* @__PURE__ */ Q({
680
+ }, en = { class: "cregis-notification__content" }, tn = { class: "cregis-notification__title" }, an = { class: "cregis-notification__message" }, nn = /* @__PURE__ */ Q({
681
681
  name: "Notification",
682
682
  __name: "Notification",
683
683
  props: {
@@ -688,68 +688,68 @@ const Ha = { class: "cregis-notification__wrapper" }, _a = {
688
688
  onVanish: {}
689
689
  },
690
690
  setup(e) {
691
- const t = e, a = Y(!1), n = () => {
692
- a.value = !1;
693
- }, r = () => {
694
- t.onVanish?.();
691
+ const a = e, t = F(!1), r = () => {
692
+ t.value = !1;
693
+ }, n = () => {
694
+ a.onVanish?.();
695
695
  };
696
- return Yt(() => {
697
- }), Ke(() => {
698
- a.value = !0;
699
- }), (o, s) => (b(), x("div", Ha, [
700
- Z(mt, {
696
+ return Jt(() => {
697
+ }), Fe(() => {
698
+ t.value = !0;
699
+ }), (i, l) => (p(), y("div", Za, [
700
+ K(nt, {
701
701
  name: "cregis-notification",
702
- onAfterLeave: r
702
+ onAfterLeave: n
703
703
  }, {
704
- default: re(() => [
705
- a.value ? (b(), x("div", _a, [
706
- (b(), Oe(Ht(ne(ya)), {
704
+ default: ee(() => [
705
+ t.value ? (p(), y("div", Ja, [
706
+ (p(), pe(Gt(Z(Sa)), {
707
707
  size: "18px",
708
708
  color: "var(--material-danger-primary)"
709
709
  })),
710
- A("div", qa, [
711
- A("div", Ua, I(e.title), 1),
712
- A("div", Ya, I(e.message), 1)
710
+ A("div", en, [
711
+ A("div", tn, M(e.title), 1),
712
+ A("div", an, M(e.message), 1)
713
713
  ]),
714
- Z(Ye, {
714
+ K(Be, {
715
715
  type: "sameWhite",
716
- onClick: n
716
+ onClick: r
717
717
  }, {
718
- default: re(() => [
719
- he(I(e.btnText), 1)
718
+ default: ee(() => [
719
+ ve(M(e.btnText), 1)
720
720
  ]),
721
721
  _: 1
722
722
  })
723
- ])) : X("", !0)
723
+ ])) : j("", !0)
724
724
  ]),
725
725
  _: 1
726
726
  })
727
727
  ]));
728
728
  }
729
729
  });
730
- let lt = !1;
731
- function ci(e) {
732
- if (lt) return;
733
- const { title: t, message: a, type: n, btnText: r } = e;
734
- lt = !0;
735
- const o = document.createElement("div");
736
- document.body.appendChild(o), Qe(
737
- Xt(Xa, {
738
- title: t,
739
- message: a,
740
- type: n,
741
- btnText: r,
730
+ let ut = !1;
731
+ function Ei(e) {
732
+ if (ut) return;
733
+ const { title: a, message: t, type: r, btnText: n } = e;
734
+ ut = !0;
735
+ const i = document.createElement("div");
736
+ document.body.appendChild(i), Ee(
737
+ yt(nn, {
738
+ title: a,
739
+ message: t,
740
+ type: r,
741
+ btnText: n,
742
742
  onVanish: () => {
743
- lt = !1, Qe(null, o), o.remove();
743
+ ut = !1, Ee(null, i), i.remove();
744
744
  }
745
745
  }),
746
- o
746
+ i
747
747
  );
748
748
  }
749
- const Ka = { class: "cregis-progress__wrapper" }, Qa = { class: "cregis-progress__track-wrap" }, Ga = { class: "cregis-progress cregis-progress--striped active" }, Za = {
749
+ const rn = { class: "cregis-progress__wrapper" }, on = { class: "cregis-progress__track-wrap" }, ln = { class: "cregis-progress cregis-progress--striped active" }, sn = {
750
750
  key: 0,
751
751
  class: "cregis-progress__sliding-block"
752
- }, ui = /* @__PURE__ */ Q({
752
+ }, Ai = /* @__PURE__ */ Q({
753
753
  name: "Progress",
754
754
  __name: "Progress",
755
755
  props: {
@@ -759,76 +759,76 @@ const Ka = { class: "cregis-progress__wrapper" }, Qa = { class: "cregis-progress
759
759
  loading: { type: Boolean, default: !1 }
760
760
  },
761
761
  setup(e) {
762
- const t = e, a = v(() => Math.min(100, Math.max(0, t.percentage - 1))), n = v(() => ({
763
- width: `${t.percentage}%`,
764
- height: `${t.strokeWidth}px`
765
- })), r = v(() => ({
766
- "--cregis-progress-tip-left": `${a.value}%`
767
- })), o = v(() => `${Math.round(t.percentage)}%`);
768
- return (s, i) => (b(), x("div", Ka, [
769
- A("div", Qa, [
770
- e.showPercentage && !t.loading ? (b(), x("div", {
762
+ const a = e, t = v(() => Math.min(100, Math.max(0, a.percentage - 1))), r = v(() => ({
763
+ width: `${a.percentage}%`,
764
+ height: `${a.strokeWidth}px`
765
+ })), n = v(() => ({
766
+ "--cregis-progress-tip-left": `${t.value}%`
767
+ })), i = v(() => `${Math.round(a.percentage)}%`);
768
+ return (l, o) => (p(), y("div", rn, [
769
+ A("div", on, [
770
+ e.showPercentage && !a.loading ? (p(), y("div", {
771
771
  key: 0,
772
772
  class: "cregis-progress__tip",
773
- style: ce(r.value),
773
+ style: ne(n.value),
774
774
  "aria-live": "polite"
775
- }, I(o.value), 5)) : X("", !0),
776
- A("div", Ga, [
775
+ }, M(i.value), 5)) : j("", !0),
776
+ A("div", ln, [
777
777
  A("div", {
778
778
  class: "cregis-progress__bar",
779
- style: ce(n.value)
779
+ style: ne(r.value)
780
780
  }, null, 4),
781
- t.loading ? (b(), x("div", Za)) : X("", !0)
781
+ a.loading ? (p(), y("div", sn)) : j("", !0)
782
782
  ])
783
783
  ])
784
784
  ]));
785
785
  }
786
786
  });
787
- var ie = "top", de = "bottom", fe = "right", oe = "left", ht = "auto", Fe = [ie, de, fe, oe], Ve = "start", je = "end", Ja = "clippingParents", Jt = "viewport", Re = "popper", en = "reference", Et = /* @__PURE__ */ Fe.reduce(function(e, t) {
788
- return e.concat([t + "-" + Ve, t + "-" + je]);
789
- }, []), ea = /* @__PURE__ */ [].concat(Fe, [ht]).reduce(function(e, t) {
790
- return e.concat([t, t + "-" + Ve, t + "-" + je]);
791
- }, []), tn = "beforeRead", an = "read", nn = "afterRead", rn = "beforeMain", on = "main", ln = "afterMain", sn = "beforeWrite", cn = "write", un = "afterWrite", dn = [tn, an, nn, rn, on, ln, sn, cn, un];
792
- function me(e) {
787
+ var oe = "top", de = "bottom", fe = "right", le = "left", xt = "auto", qe = [oe, de, fe, le], Ae = "start", He = "end", cn = "clippingParents", ia = "viewport", We = "popper", un = "reference", Wt = /* @__PURE__ */ qe.reduce(function(e, a) {
788
+ return e.concat([a + "-" + Ae, a + "-" + He]);
789
+ }, []), oa = /* @__PURE__ */ [].concat(qe, [xt]).reduce(function(e, a) {
790
+ return e.concat([a, a + "-" + Ae, a + "-" + He]);
791
+ }, []), dn = "beforeRead", fn = "read", pn = "afterRead", vn = "beforeMain", mn = "main", gn = "afterMain", hn = "beforeWrite", bn = "write", yn = "afterWrite", wn = [dn, fn, pn, vn, mn, gn, hn, bn, yn];
792
+ function he(e) {
793
793
  return e ? (e.nodeName || "").toLowerCase() : null;
794
794
  }
795
- function le(e) {
795
+ function se(e) {
796
796
  if (e == null)
797
797
  return window;
798
798
  if (e.toString() !== "[object Window]") {
799
- var t = e.ownerDocument;
800
- return t && t.defaultView || window;
799
+ var a = e.ownerDocument;
800
+ return a && a.defaultView || window;
801
801
  }
802
802
  return e;
803
803
  }
804
- function Te(e) {
805
- var t = le(e).Element;
806
- return e instanceof t || e instanceof Element;
804
+ function Se(e) {
805
+ var a = se(e).Element;
806
+ return e instanceof a || e instanceof Element;
807
807
  }
808
808
  function ue(e) {
809
- var t = le(e).HTMLElement;
810
- return e instanceof t || e instanceof HTMLElement;
809
+ var a = se(e).HTMLElement;
810
+ return e instanceof a || e instanceof HTMLElement;
811
811
  }
812
- function bt(e) {
812
+ function kt(e) {
813
813
  if (typeof ShadowRoot > "u")
814
814
  return !1;
815
- var t = le(e).ShadowRoot;
816
- return e instanceof t || e instanceof ShadowRoot;
817
- }
818
- function fn(e) {
819
- var t = e.state;
820
- Object.keys(t.elements).forEach(function(a) {
821
- var n = t.styles[a] || {}, r = t.attributes[a] || {}, o = t.elements[a];
822
- !ue(o) || !me(o) || (Object.assign(o.style, n), Object.keys(r).forEach(function(s) {
823
- var i = r[s];
824
- i === !1 ? o.removeAttribute(s) : o.setAttribute(s, i === !0 ? "" : i);
815
+ var a = se(e).ShadowRoot;
816
+ return e instanceof a || e instanceof ShadowRoot;
817
+ }
818
+ function xn(e) {
819
+ var a = e.state;
820
+ Object.keys(a.elements).forEach(function(t) {
821
+ var r = a.styles[t] || {}, n = a.attributes[t] || {}, i = a.elements[t];
822
+ !ue(i) || !he(i) || (Object.assign(i.style, r), Object.keys(n).forEach(function(l) {
823
+ var o = n[l];
824
+ o === !1 ? i.removeAttribute(l) : i.setAttribute(l, o === !0 ? "" : o);
825
825
  }));
826
826
  });
827
827
  }
828
- function pn(e) {
829
- var t = e.state, a = {
828
+ function kn(e) {
829
+ var a = e.state, t = {
830
830
  popper: {
831
- position: t.options.strategy,
831
+ position: a.options.strategy,
832
832
  left: "0",
833
833
  top: "0",
834
834
  margin: "0"
@@ -838,137 +838,137 @@ function pn(e) {
838
838
  },
839
839
  reference: {}
840
840
  };
841
- return Object.assign(t.elements.popper.style, a.popper), t.styles = a, t.elements.arrow && Object.assign(t.elements.arrow.style, a.arrow), function() {
842
- Object.keys(t.elements).forEach(function(n) {
843
- var r = t.elements[n], o = t.attributes[n] || {}, s = Object.keys(t.styles.hasOwnProperty(n) ? t.styles[n] : a[n]), i = s.reduce(function(l, d) {
844
- return l[d] = "", l;
841
+ return Object.assign(a.elements.popper.style, t.popper), a.styles = t, a.elements.arrow && Object.assign(a.elements.arrow.style, t.arrow), function() {
842
+ Object.keys(a.elements).forEach(function(r) {
843
+ var n = a.elements[r], i = a.attributes[r] || {}, l = Object.keys(a.styles.hasOwnProperty(r) ? a.styles[r] : t[r]), o = l.reduce(function(s, d) {
844
+ return s[d] = "", s;
845
845
  }, {});
846
- !ue(r) || !me(r) || (Object.assign(r.style, i), Object.keys(o).forEach(function(l) {
847
- r.removeAttribute(l);
846
+ !ue(n) || !he(n) || (Object.assign(n.style, o), Object.keys(i).forEach(function(s) {
847
+ n.removeAttribute(s);
848
848
  }));
849
849
  });
850
850
  };
851
851
  }
852
- const vn = {
852
+ const $n = {
853
853
  name: "applyStyles",
854
854
  enabled: !0,
855
855
  phase: "write",
856
- fn,
857
- effect: pn,
856
+ fn: xn,
857
+ effect: kn,
858
858
  requires: ["computeStyles"]
859
859
  };
860
- function ve(e) {
860
+ function ge(e) {
861
861
  return e.split("-")[0];
862
862
  }
863
- var ke = Math.max, Ge = Math.min, Be = Math.round;
864
- function dt() {
863
+ var Ce = Math.max, Ze = Math.min, De = Math.round;
864
+ function vt() {
865
865
  var e = navigator.userAgentData;
866
- return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
867
- return t.brand + "/" + t.version;
866
+ return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(a) {
867
+ return a.brand + "/" + a.version;
868
868
  }).join(" ") : navigator.userAgent;
869
869
  }
870
- function ta() {
871
- return !/^((?!chrome|android).)*safari/i.test(dt());
870
+ function la() {
871
+ return !/^((?!chrome|android).)*safari/i.test(vt());
872
872
  }
873
- function Pe(e, t, a) {
874
- t === void 0 && (t = !1), a === void 0 && (a = !1);
875
- var n = e.getBoundingClientRect(), r = 1, o = 1;
876
- t && ue(e) && (r = e.offsetWidth > 0 && Be(n.width) / e.offsetWidth || 1, o = e.offsetHeight > 0 && Be(n.height) / e.offsetHeight || 1);
877
- var s = Te(e) ? le(e) : window, i = s.visualViewport, l = !ta() && a, d = (n.left + (l && i ? i.offsetLeft : 0)) / r, c = (n.top + (l && i ? i.offsetTop : 0)) / o, w = n.width / r, O = n.height / o;
873
+ function Pe(e, a, t) {
874
+ a === void 0 && (a = !1), t === void 0 && (t = !1);
875
+ var r = e.getBoundingClientRect(), n = 1, i = 1;
876
+ a && ue(e) && (n = e.offsetWidth > 0 && De(r.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && De(r.height) / e.offsetHeight || 1);
877
+ var l = Se(e) ? se(e) : window, o = l.visualViewport, s = !la() && t, d = (r.left + (s && o ? o.offsetLeft : 0)) / n, c = (r.top + (s && o ? o.offsetTop : 0)) / i, w = r.width / n, $ = r.height / i;
878
878
  return {
879
879
  width: w,
880
- height: O,
880
+ height: $,
881
881
  top: c,
882
882
  right: d + w,
883
- bottom: c + O,
883
+ bottom: c + $,
884
884
  left: d,
885
885
  x: d,
886
886
  y: c
887
887
  };
888
888
  }
889
- function yt(e) {
890
- var t = Pe(e), a = e.offsetWidth, n = e.offsetHeight;
891
- return Math.abs(t.width - a) <= 1 && (a = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
889
+ function $t(e) {
890
+ var a = Pe(e), t = e.offsetWidth, r = e.offsetHeight;
891
+ return Math.abs(a.width - t) <= 1 && (t = a.width), Math.abs(a.height - r) <= 1 && (r = a.height), {
892
892
  x: e.offsetLeft,
893
893
  y: e.offsetTop,
894
- width: a,
895
- height: n
894
+ width: t,
895
+ height: r
896
896
  };
897
897
  }
898
- function aa(e, t) {
899
- var a = t.getRootNode && t.getRootNode();
900
- if (e.contains(t))
898
+ function sa(e, a) {
899
+ var t = a.getRootNode && a.getRootNode();
900
+ if (e.contains(a))
901
901
  return !0;
902
- if (a && bt(a)) {
903
- var n = t;
902
+ if (t && kt(t)) {
903
+ var r = a;
904
904
  do {
905
- if (n && e.isSameNode(n))
905
+ if (r && e.isSameNode(r))
906
906
  return !0;
907
- n = n.parentNode || n.host;
908
- } while (n);
907
+ r = r.parentNode || r.host;
908
+ } while (r);
909
909
  }
910
910
  return !1;
911
911
  }
912
- function be(e) {
913
- return le(e).getComputedStyle(e);
912
+ function ye(e) {
913
+ return se(e).getComputedStyle(e);
914
914
  }
915
- function mn(e) {
916
- return ["table", "td", "th"].indexOf(me(e)) >= 0;
915
+ function On(e) {
916
+ return ["table", "td", "th"].indexOf(he(e)) >= 0;
917
917
  }
918
- function xe(e) {
919
- return ((Te(e) ? e.ownerDocument : (
918
+ function ke(e) {
919
+ return ((Se(e) ? e.ownerDocument : (
920
920
  // $FlowFixMe[prop-missing]
921
921
  e.document
922
922
  )) || window.document).documentElement;
923
923
  }
924
- function tt(e) {
925
- return me(e) === "html" ? e : (
924
+ function rt(e) {
925
+ return he(e) === "html" ? e : (
926
926
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
927
927
  // $FlowFixMe[incompatible-return]
928
928
  // $FlowFixMe[prop-missing]
929
929
  e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
930
930
  e.parentNode || // DOM Element detected
931
- (bt(e) ? e.host : null) || // ShadowRoot detected
931
+ (kt(e) ? e.host : null) || // ShadowRoot detected
932
932
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
933
- xe(e)
933
+ ke(e)
934
934
  );
935
935
  }
936
- function Dt(e) {
936
+ function Mt(e) {
937
937
  return !ue(e) || // https://github.com/popperjs/popper-core/issues/837
938
- be(e).position === "fixed" ? null : e.offsetParent;
938
+ ye(e).position === "fixed" ? null : e.offsetParent;
939
939
  }
940
- function gn(e) {
941
- var t = /firefox/i.test(dt()), a = /Trident/i.test(dt());
942
- if (a && ue(e)) {
943
- var n = be(e);
944
- if (n.position === "fixed")
940
+ function Cn(e) {
941
+ var a = /firefox/i.test(vt()), t = /Trident/i.test(vt());
942
+ if (t && ue(e)) {
943
+ var r = ye(e);
944
+ if (r.position === "fixed")
945
945
  return null;
946
946
  }
947
- var r = tt(e);
948
- for (bt(r) && (r = r.host); ue(r) && ["html", "body"].indexOf(me(r)) < 0; ) {
949
- var o = be(r);
950
- if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || t && o.willChange === "filter" || t && o.filter && o.filter !== "none")
951
- return r;
952
- r = r.parentNode;
947
+ var n = rt(e);
948
+ for (kt(n) && (n = n.host); ue(n) && ["html", "body"].indexOf(he(n)) < 0; ) {
949
+ var i = ye(n);
950
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || a && i.willChange === "filter" || a && i.filter && i.filter !== "none")
951
+ return n;
952
+ n = n.parentNode;
953
953
  }
954
954
  return null;
955
955
  }
956
- function He(e) {
957
- for (var t = le(e), a = Dt(e); a && mn(a) && be(a).position === "static"; )
958
- a = Dt(a);
959
- return a && (me(a) === "html" || me(a) === "body" && be(a).position === "static") ? t : a || gn(e) || t;
956
+ function Ye(e) {
957
+ for (var a = se(e), t = Mt(e); t && On(t) && ye(t).position === "static"; )
958
+ t = Mt(t);
959
+ return t && (he(t) === "html" || he(t) === "body" && ye(t).position === "static") ? a : t || Cn(e) || a;
960
960
  }
961
- function xt(e) {
961
+ function Ot(e) {
962
962
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
963
963
  }
964
- function Me(e, t, a) {
965
- return ke(e, Ge(t, a));
964
+ function je(e, a, t) {
965
+ return Ce(e, Ze(a, t));
966
966
  }
967
- function hn(e, t, a) {
968
- var n = Me(e, t, a);
969
- return n > a ? a : n;
967
+ function Sn(e, a, t) {
968
+ var r = je(e, a, t);
969
+ return r > t ? t : r;
970
970
  }
971
- function na() {
971
+ function ca() {
972
972
  return {
973
973
  top: 0,
974
974
  right: 0,
@@ -976,221 +976,221 @@ function na() {
976
976
  left: 0
977
977
  };
978
978
  }
979
- function ra(e) {
980
- return Object.assign({}, na(), e);
979
+ function ua(e) {
980
+ return Object.assign({}, ca(), e);
981
981
  }
982
- function ia(e, t) {
983
- return t.reduce(function(a, n) {
984
- return a[n] = e, a;
982
+ function da(e, a) {
983
+ return a.reduce(function(t, r) {
984
+ return t[r] = e, t;
985
985
  }, {});
986
986
  }
987
- var bn = function(t, a) {
988
- return t = typeof t == "function" ? t(Object.assign({}, a.rects, {
989
- placement: a.placement
990
- })) : t, ra(typeof t != "number" ? t : ia(t, Fe));
987
+ var Tn = function(a, t) {
988
+ return a = typeof a == "function" ? a(Object.assign({}, t.rects, {
989
+ placement: t.placement
990
+ })) : a, ua(typeof a != "number" ? a : da(a, qe));
991
991
  };
992
- function yn(e) {
993
- var t, a = e.state, n = e.name, r = e.options, o = a.elements.arrow, s = a.modifiersData.popperOffsets, i = ve(a.placement), l = xt(i), d = [oe, fe].indexOf(i) >= 0, c = d ? "height" : "width";
994
- if (!(!o || !s)) {
995
- var w = bn(r.padding, a), O = yt(o), g = l === "y" ? ie : oe, y = l === "y" ? de : fe, $ = a.rects.reference[c] + a.rects.reference[l] - s[l] - a.rects.popper[c], T = s[l] - a.rects.reference[l], B = He(o), z = B ? l === "y" ? B.clientHeight || 0 : B.clientWidth || 0 : 0, N = $ / 2 - T / 2, S = w[g], C = z - O[c] - w[y], f = z / 2 - O[c] / 2 + N, V = Me(S, f, C), E = l;
996
- a.modifiersData[n] = (t = {}, t[E] = V, t.centerOffset = V - f, t);
992
+ function Vn(e) {
993
+ var a, t = e.state, r = e.name, n = e.options, i = t.elements.arrow, l = t.modifiersData.popperOffsets, o = ge(t.placement), s = Ot(o), d = [le, fe].indexOf(o) >= 0, c = d ? "height" : "width";
994
+ if (!(!i || !l)) {
995
+ var w = Tn(n.padding, t), $ = $t(i), m = s === "y" ? oe : le, k = s === "y" ? de : fe, O = t.rects.reference[c] + t.rects.reference[s] - l[s] - t.rects.popper[c], V = l[s] - t.rects.reference[s], x = Ye(i), B = x ? s === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, R = O / 2 - V / 2, C = w[m], E = B - $[c] - w[k], f = B / 2 - $[c] / 2 + R, S = je(C, f, E), P = s;
996
+ t.modifiersData[r] = (a = {}, a[P] = S, a.centerOffset = S - f, a);
997
997
  }
998
998
  }
999
- function xn(e) {
1000
- var t = e.state, a = e.options, n = a.element, r = n === void 0 ? "[data-popper-arrow]" : n;
1001
- r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || aa(t.elements.popper, r) && (t.elements.arrow = r));
999
+ function Bn(e) {
1000
+ var a = e.state, t = e.options, r = t.element, n = r === void 0 ? "[data-popper-arrow]" : r;
1001
+ n != null && (typeof n == "string" && (n = a.elements.popper.querySelector(n), !n) || sa(a.elements.popper, n) && (a.elements.arrow = n));
1002
1002
  }
1003
- const wn = {
1003
+ const En = {
1004
1004
  name: "arrow",
1005
1005
  enabled: !0,
1006
1006
  phase: "main",
1007
- fn: yn,
1008
- effect: xn,
1007
+ fn: Vn,
1008
+ effect: Bn,
1009
1009
  requires: ["popperOffsets"],
1010
1010
  requiresIfExists: ["preventOverflow"]
1011
1011
  };
1012
- function Ee(e) {
1012
+ function ze(e) {
1013
1013
  return e.split("-")[1];
1014
1014
  }
1015
- var $n = {
1015
+ var An = {
1016
1016
  top: "auto",
1017
1017
  right: "auto",
1018
1018
  bottom: "auto",
1019
1019
  left: "auto"
1020
1020
  };
1021
- function kn(e, t) {
1022
- var a = e.x, n = e.y, r = t.devicePixelRatio || 1;
1021
+ function Dn(e, a) {
1022
+ var t = e.x, r = e.y, n = a.devicePixelRatio || 1;
1023
1023
  return {
1024
- x: Be(a * r) / r || 0,
1025
- y: Be(n * r) / r || 0
1024
+ x: De(t * n) / n || 0,
1025
+ y: De(r * n) / n || 0
1026
1026
  };
1027
1027
  }
1028
- function At(e) {
1029
- var t, a = e.popper, n = e.popperRect, r = e.placement, o = e.variation, s = e.offsets, i = e.position, l = e.gpuAcceleration, d = e.adaptive, c = e.roundOffsets, w = e.isFixed, O = s.x, g = O === void 0 ? 0 : O, y = s.y, $ = y === void 0 ? 0 : y, T = typeof c == "function" ? c({
1030
- x: g,
1031
- y: $
1028
+ function jt(e) {
1029
+ var a, t = e.popper, r = e.popperRect, n = e.placement, i = e.variation, l = e.offsets, o = e.position, s = e.gpuAcceleration, d = e.adaptive, c = e.roundOffsets, w = e.isFixed, $ = l.x, m = $ === void 0 ? 0 : $, k = l.y, O = k === void 0 ? 0 : k, V = typeof c == "function" ? c({
1030
+ x: m,
1031
+ y: O
1032
1032
  }) : {
1033
- x: g,
1034
- y: $
1033
+ x: m,
1034
+ y: O
1035
1035
  };
1036
- g = T.x, $ = T.y;
1037
- var B = s.hasOwnProperty("x"), z = s.hasOwnProperty("y"), N = oe, S = ie, C = window;
1036
+ m = V.x, O = V.y;
1037
+ var x = l.hasOwnProperty("x"), B = l.hasOwnProperty("y"), R = le, C = oe, E = window;
1038
1038
  if (d) {
1039
- var f = He(a), V = "clientHeight", E = "clientWidth";
1040
- if (f === le(a) && (f = xe(a), be(f).position !== "static" && i === "absolute" && (V = "scrollHeight", E = "scrollWidth")), f = f, r === ie || (r === oe || r === fe) && o === je) {
1041
- S = de;
1042
- var W = w && f === C && C.visualViewport ? C.visualViewport.height : (
1039
+ var f = Ye(t), S = "clientHeight", P = "clientWidth";
1040
+ if (f === se(t) && (f = ke(t), ye(f).position !== "static" && o === "absolute" && (S = "scrollHeight", P = "scrollWidth")), f = f, n === oe || (n === le || n === fe) && i === He) {
1041
+ C = de;
1042
+ var N = w && f === E && E.visualViewport ? E.visualViewport.height : (
1043
1043
  // $FlowFixMe[prop-missing]
1044
- f[V]
1044
+ f[S]
1045
1045
  );
1046
- $ -= W - n.height, $ *= l ? 1 : -1;
1046
+ O -= N - r.height, O *= s ? 1 : -1;
1047
1047
  }
1048
- if (r === oe || (r === ie || r === de) && o === je) {
1049
- N = fe;
1050
- var M = w && f === C && C.visualViewport ? C.visualViewport.width : (
1048
+ if (n === le || (n === oe || n === de) && i === He) {
1049
+ R = fe;
1050
+ var I = w && f === E && E.visualViewport ? E.visualViewport.width : (
1051
1051
  // $FlowFixMe[prop-missing]
1052
- f[E]
1052
+ f[P]
1053
1053
  );
1054
- g -= M - n.width, g *= l ? 1 : -1;
1054
+ m -= I - r.width, m *= s ? 1 : -1;
1055
1055
  }
1056
1056
  }
1057
- var j = Object.assign({
1058
- position: i
1059
- }, d && $n), k = c === !0 ? kn({
1060
- x: g,
1061
- y: $
1062
- }, le(a)) : {
1063
- x: g,
1064
- y: $
1057
+ var _ = Object.assign({
1058
+ position: o
1059
+ }, d && An), T = c === !0 ? Dn({
1060
+ x: m,
1061
+ y: O
1062
+ }, se(t)) : {
1063
+ x: m,
1064
+ y: O
1065
1065
  };
1066
- if (g = k.x, $ = k.y, l) {
1067
- var P;
1068
- return Object.assign({}, j, (P = {}, P[S] = z ? "0" : "", P[N] = B ? "0" : "", P.transform = (C.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + $ + "px)" : "translate3d(" + g + "px, " + $ + "px, 0)", P));
1066
+ if (m = T.x, O = T.y, s) {
1067
+ var D;
1068
+ return Object.assign({}, _, (D = {}, D[C] = B ? "0" : "", D[R] = x ? "0" : "", D.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + O + "px)" : "translate3d(" + m + "px, " + O + "px, 0)", D));
1069
1069
  }
1070
- return Object.assign({}, j, (t = {}, t[S] = z ? $ + "px" : "", t[N] = B ? g + "px" : "", t.transform = "", t));
1071
- }
1072
- function On(e) {
1073
- var t = e.state, a = e.options, n = a.gpuAcceleration, r = n === void 0 ? !0 : n, o = a.adaptive, s = o === void 0 ? !0 : o, i = a.roundOffsets, l = i === void 0 ? !0 : i, d = {
1074
- placement: ve(t.placement),
1075
- variation: Ee(t.placement),
1076
- popper: t.elements.popper,
1077
- popperRect: t.rects.popper,
1078
- gpuAcceleration: r,
1079
- isFixed: t.options.strategy === "fixed"
1070
+ return Object.assign({}, _, (a = {}, a[C] = B ? O + "px" : "", a[R] = x ? m + "px" : "", a.transform = "", a));
1071
+ }
1072
+ function Pn(e) {
1073
+ var a = e.state, t = e.options, r = t.gpuAcceleration, n = r === void 0 ? !0 : r, i = t.adaptive, l = i === void 0 ? !0 : i, o = t.roundOffsets, s = o === void 0 ? !0 : o, d = {
1074
+ placement: ge(a.placement),
1075
+ variation: ze(a.placement),
1076
+ popper: a.elements.popper,
1077
+ popperRect: a.rects.popper,
1078
+ gpuAcceleration: n,
1079
+ isFixed: a.options.strategy === "fixed"
1080
1080
  };
1081
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, At(Object.assign({}, d, {
1082
- offsets: t.modifiersData.popperOffsets,
1083
- position: t.options.strategy,
1084
- adaptive: s,
1085
- roundOffsets: l
1086
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, At(Object.assign({}, d, {
1087
- offsets: t.modifiersData.arrow,
1081
+ a.modifiersData.popperOffsets != null && (a.styles.popper = Object.assign({}, a.styles.popper, jt(Object.assign({}, d, {
1082
+ offsets: a.modifiersData.popperOffsets,
1083
+ position: a.options.strategy,
1084
+ adaptive: l,
1085
+ roundOffsets: s
1086
+ })))), a.modifiersData.arrow != null && (a.styles.arrow = Object.assign({}, a.styles.arrow, jt(Object.assign({}, d, {
1087
+ offsets: a.modifiersData.arrow,
1088
1088
  position: "absolute",
1089
1089
  adaptive: !1,
1090
- roundOffsets: l
1091
- })))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
1092
- "data-popper-placement": t.placement
1090
+ roundOffsets: s
1091
+ })))), a.attributes.popper = Object.assign({}, a.attributes.popper, {
1092
+ "data-popper-placement": a.placement
1093
1093
  });
1094
1094
  }
1095
- const Tn = {
1095
+ const zn = {
1096
1096
  name: "computeStyles",
1097
1097
  enabled: !0,
1098
1098
  phase: "beforeWrite",
1099
- fn: On,
1099
+ fn: Pn,
1100
1100
  data: {}
1101
1101
  };
1102
- var Ue = {
1102
+ var Ge = {
1103
1103
  passive: !0
1104
1104
  };
1105
- function Sn(e) {
1106
- var t = e.state, a = e.instance, n = e.options, r = n.scroll, o = r === void 0 ? !0 : r, s = n.resize, i = s === void 0 ? !0 : s, l = le(t.elements.popper), d = [].concat(t.scrollParents.reference, t.scrollParents.popper);
1107
- return o && d.forEach(function(c) {
1108
- c.addEventListener("scroll", a.update, Ue);
1109
- }), i && l.addEventListener("resize", a.update, Ue), function() {
1110
- o && d.forEach(function(c) {
1111
- c.removeEventListener("scroll", a.update, Ue);
1112
- }), i && l.removeEventListener("resize", a.update, Ue);
1105
+ function Rn(e) {
1106
+ var a = e.state, t = e.instance, r = e.options, n = r.scroll, i = n === void 0 ? !0 : n, l = r.resize, o = l === void 0 ? !0 : l, s = se(a.elements.popper), d = [].concat(a.scrollParents.reference, a.scrollParents.popper);
1107
+ return i && d.forEach(function(c) {
1108
+ c.addEventListener("scroll", t.update, Ge);
1109
+ }), o && s.addEventListener("resize", t.update, Ge), function() {
1110
+ i && d.forEach(function(c) {
1111
+ c.removeEventListener("scroll", t.update, Ge);
1112
+ }), o && s.removeEventListener("resize", t.update, Ge);
1113
1113
  };
1114
1114
  }
1115
- const Cn = {
1115
+ const Ln = {
1116
1116
  name: "eventListeners",
1117
1117
  enabled: !0,
1118
1118
  phase: "write",
1119
1119
  fn: function() {
1120
1120
  },
1121
- effect: Sn,
1121
+ effect: Rn,
1122
1122
  data: {}
1123
1123
  };
1124
- var Vn = {
1124
+ var Wn = {
1125
1125
  left: "right",
1126
1126
  right: "left",
1127
1127
  bottom: "top",
1128
1128
  top: "bottom"
1129
1129
  };
1130
- function Xe(e) {
1131
- return e.replace(/left|right|bottom|top/g, function(t) {
1132
- return Vn[t];
1130
+ function Qe(e) {
1131
+ return e.replace(/left|right|bottom|top/g, function(a) {
1132
+ return Wn[a];
1133
1133
  });
1134
1134
  }
1135
- var Bn = {
1135
+ var Mn = {
1136
1136
  start: "end",
1137
1137
  end: "start"
1138
1138
  };
1139
- function zt(e) {
1140
- return e.replace(/start|end/g, function(t) {
1141
- return Bn[t];
1139
+ function Nt(e) {
1140
+ return e.replace(/start|end/g, function(a) {
1141
+ return Mn[a];
1142
1142
  });
1143
1143
  }
1144
- function wt(e) {
1145
- var t = le(e), a = t.pageXOffset, n = t.pageYOffset;
1144
+ function Ct(e) {
1145
+ var a = se(e), t = a.pageXOffset, r = a.pageYOffset;
1146
1146
  return {
1147
- scrollLeft: a,
1148
- scrollTop: n
1147
+ scrollLeft: t,
1148
+ scrollTop: r
1149
1149
  };
1150
1150
  }
1151
- function $t(e) {
1152
- return Pe(xe(e)).left + wt(e).scrollLeft;
1153
- }
1154
- function Pn(e, t) {
1155
- var a = le(e), n = xe(e), r = a.visualViewport, o = n.clientWidth, s = n.clientHeight, i = 0, l = 0;
1156
- if (r) {
1157
- o = r.width, s = r.height;
1158
- var d = ta();
1159
- (d || !d && t === "fixed") && (i = r.offsetLeft, l = r.offsetTop);
1151
+ function St(e) {
1152
+ return Pe(ke(e)).left + Ct(e).scrollLeft;
1153
+ }
1154
+ function jn(e, a) {
1155
+ var t = se(e), r = ke(e), n = t.visualViewport, i = r.clientWidth, l = r.clientHeight, o = 0, s = 0;
1156
+ if (n) {
1157
+ i = n.width, l = n.height;
1158
+ var d = la();
1159
+ (d || !d && a === "fixed") && (o = n.offsetLeft, s = n.offsetTop);
1160
1160
  }
1161
1161
  return {
1162
- width: o,
1163
- height: s,
1164
- x: i + $t(e),
1165
- y: l
1162
+ width: i,
1163
+ height: l,
1164
+ x: o + St(e),
1165
+ y: s
1166
1166
  };
1167
1167
  }
1168
- function En(e) {
1169
- var t, a = xe(e), n = wt(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, o = ke(a.scrollWidth, a.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), s = ke(a.scrollHeight, a.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), i = -n.scrollLeft + $t(e), l = -n.scrollTop;
1170
- return be(r || a).direction === "rtl" && (i += ke(a.clientWidth, r ? r.clientWidth : 0) - o), {
1171
- width: o,
1172
- height: s,
1173
- x: i,
1174
- y: l
1168
+ function Nn(e) {
1169
+ var a, t = ke(e), r = Ct(e), n = (a = e.ownerDocument) == null ? void 0 : a.body, i = Ce(t.scrollWidth, t.clientWidth, n ? n.scrollWidth : 0, n ? n.clientWidth : 0), l = Ce(t.scrollHeight, t.clientHeight, n ? n.scrollHeight : 0, n ? n.clientHeight : 0), o = -r.scrollLeft + St(e), s = -r.scrollTop;
1170
+ return ye(n || t).direction === "rtl" && (o += Ce(t.clientWidth, n ? n.clientWidth : 0) - i), {
1171
+ width: i,
1172
+ height: l,
1173
+ x: o,
1174
+ y: s
1175
1175
  };
1176
1176
  }
1177
- function kt(e) {
1178
- var t = be(e), a = t.overflow, n = t.overflowX, r = t.overflowY;
1179
- return /auto|scroll|overlay|hidden/.test(a + r + n);
1177
+ function Tt(e) {
1178
+ var a = ye(e), t = a.overflow, r = a.overflowX, n = a.overflowY;
1179
+ return /auto|scroll|overlay|hidden/.test(t + n + r);
1180
1180
  }
1181
- function oa(e) {
1182
- return ["html", "body", "#document"].indexOf(me(e)) >= 0 ? e.ownerDocument.body : ue(e) && kt(e) ? e : oa(tt(e));
1181
+ function fa(e) {
1182
+ return ["html", "body", "#document"].indexOf(he(e)) >= 0 ? e.ownerDocument.body : ue(e) && Tt(e) ? e : fa(rt(e));
1183
1183
  }
1184
- function Le(e, t) {
1185
- var a;
1186
- t === void 0 && (t = []);
1187
- var n = oa(e), r = n === ((a = e.ownerDocument) == null ? void 0 : a.body), o = le(n), s = r ? [o].concat(o.visualViewport || [], kt(n) ? n : []) : n, i = t.concat(s);
1188
- return r ? i : (
1184
+ function Ne(e, a) {
1185
+ var t;
1186
+ a === void 0 && (a = []);
1187
+ var r = fa(e), n = r === ((t = e.ownerDocument) == null ? void 0 : t.body), i = se(r), l = n ? [i].concat(i.visualViewport || [], Tt(r) ? r : []) : r, o = a.concat(l);
1188
+ return n ? o : (
1189
1189
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
1190
- i.concat(Le(tt(s)))
1190
+ o.concat(Ne(rt(l)))
1191
1191
  );
1192
1192
  }
1193
- function ft(e) {
1193
+ function mt(e) {
1194
1194
  return Object.assign({}, e, {
1195
1195
  left: e.x,
1196
1196
  top: e.y,
@@ -1198,419 +1198,419 @@ function ft(e) {
1198
1198
  bottom: e.y + e.height
1199
1199
  });
1200
1200
  }
1201
- function Dn(e, t) {
1202
- var a = Pe(e, !1, t === "fixed");
1203
- return a.top = a.top + e.clientTop, a.left = a.left + e.clientLeft, a.bottom = a.top + e.clientHeight, a.right = a.left + e.clientWidth, a.width = e.clientWidth, a.height = e.clientHeight, a.x = a.left, a.y = a.top, a;
1201
+ function In(e, a) {
1202
+ var t = Pe(e, !1, a === "fixed");
1203
+ return t.top = t.top + e.clientTop, t.left = t.left + e.clientLeft, t.bottom = t.top + e.clientHeight, t.right = t.left + e.clientWidth, t.width = e.clientWidth, t.height = e.clientHeight, t.x = t.left, t.y = t.top, t;
1204
1204
  }
1205
- function Rt(e, t, a) {
1206
- return t === Jt ? ft(Pn(e, a)) : Te(t) ? Dn(t, a) : ft(En(xe(e)));
1205
+ function It(e, a, t) {
1206
+ return a === ia ? mt(jn(e, t)) : Se(a) ? In(a, t) : mt(Nn(ke(e)));
1207
1207
  }
1208
- function An(e) {
1209
- var t = Le(tt(e)), a = ["absolute", "fixed"].indexOf(be(e).position) >= 0, n = a && ue(e) ? He(e) : e;
1210
- return Te(n) ? t.filter(function(r) {
1211
- return Te(r) && aa(r, n) && me(r) !== "body";
1208
+ function _n(e) {
1209
+ var a = Ne(rt(e)), t = ["absolute", "fixed"].indexOf(ye(e).position) >= 0, r = t && ue(e) ? Ye(e) : e;
1210
+ return Se(r) ? a.filter(function(n) {
1211
+ return Se(n) && sa(n, r) && he(n) !== "body";
1212
1212
  }) : [];
1213
1213
  }
1214
- function zn(e, t, a, n) {
1215
- var r = t === "clippingParents" ? An(e) : [].concat(t), o = [].concat(r, [a]), s = o[0], i = o.reduce(function(l, d) {
1216
- var c = Rt(e, d, n);
1217
- return l.top = ke(c.top, l.top), l.right = Ge(c.right, l.right), l.bottom = Ge(c.bottom, l.bottom), l.left = ke(c.left, l.left), l;
1218
- }, Rt(e, s, n));
1219
- return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
1220
- }
1221
- function la(e) {
1222
- var t = e.reference, a = e.element, n = e.placement, r = n ? ve(n) : null, o = n ? Ee(n) : null, s = t.x + t.width / 2 - a.width / 2, i = t.y + t.height / 2 - a.height / 2, l;
1223
- switch (r) {
1224
- case ie:
1225
- l = {
1226
- x: s,
1227
- y: t.y - a.height
1214
+ function Fn(e, a, t, r) {
1215
+ var n = a === "clippingParents" ? _n(e) : [].concat(a), i = [].concat(n, [t]), l = i[0], o = i.reduce(function(s, d) {
1216
+ var c = It(e, d, r);
1217
+ return s.top = Ce(c.top, s.top), s.right = Ze(c.right, s.right), s.bottom = Ze(c.bottom, s.bottom), s.left = Ce(c.left, s.left), s;
1218
+ }, It(e, l, r));
1219
+ return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
1220
+ }
1221
+ function pa(e) {
1222
+ var a = e.reference, t = e.element, r = e.placement, n = r ? ge(r) : null, i = r ? ze(r) : null, l = a.x + a.width / 2 - t.width / 2, o = a.y + a.height / 2 - t.height / 2, s;
1223
+ switch (n) {
1224
+ case oe:
1225
+ s = {
1226
+ x: l,
1227
+ y: a.y - t.height
1228
1228
  };
1229
1229
  break;
1230
1230
  case de:
1231
- l = {
1232
- x: s,
1233
- y: t.y + t.height
1231
+ s = {
1232
+ x: l,
1233
+ y: a.y + a.height
1234
1234
  };
1235
1235
  break;
1236
1236
  case fe:
1237
- l = {
1238
- x: t.x + t.width,
1239
- y: i
1237
+ s = {
1238
+ x: a.x + a.width,
1239
+ y: o
1240
1240
  };
1241
1241
  break;
1242
- case oe:
1243
- l = {
1244
- x: t.x - a.width,
1245
- y: i
1242
+ case le:
1243
+ s = {
1244
+ x: a.x - t.width,
1245
+ y: o
1246
1246
  };
1247
1247
  break;
1248
1248
  default:
1249
- l = {
1250
- x: t.x,
1251
- y: t.y
1249
+ s = {
1250
+ x: a.x,
1251
+ y: a.y
1252
1252
  };
1253
1253
  }
1254
- var d = r ? xt(r) : null;
1254
+ var d = n ? Ot(n) : null;
1255
1255
  if (d != null) {
1256
1256
  var c = d === "y" ? "height" : "width";
1257
- switch (o) {
1258
- case Ve:
1259
- l[d] = l[d] - (t[c] / 2 - a[c] / 2);
1257
+ switch (i) {
1258
+ case Ae:
1259
+ s[d] = s[d] - (a[c] / 2 - t[c] / 2);
1260
1260
  break;
1261
- case je:
1262
- l[d] = l[d] + (t[c] / 2 - a[c] / 2);
1261
+ case He:
1262
+ s[d] = s[d] + (a[c] / 2 - t[c] / 2);
1263
1263
  break;
1264
1264
  }
1265
1265
  }
1266
- return l;
1266
+ return s;
1267
1267
  }
1268
- function Ie(e, t) {
1269
- t === void 0 && (t = {});
1270
- var a = t, n = a.placement, r = n === void 0 ? e.placement : n, o = a.strategy, s = o === void 0 ? e.strategy : o, i = a.boundary, l = i === void 0 ? Ja : i, d = a.rootBoundary, c = d === void 0 ? Jt : d, w = a.elementContext, O = w === void 0 ? Re : w, g = a.altBoundary, y = g === void 0 ? !1 : g, $ = a.padding, T = $ === void 0 ? 0 : $, B = ra(typeof T != "number" ? T : ia(T, Fe)), z = O === Re ? en : Re, N = e.rects.popper, S = e.elements[y ? z : O], C = zn(Te(S) ? S : S.contextElement || xe(e.elements.popper), l, c, s), f = Pe(e.elements.reference), V = la({
1268
+ function Ue(e, a) {
1269
+ a === void 0 && (a = {});
1270
+ var t = a, r = t.placement, n = r === void 0 ? e.placement : r, i = t.strategy, l = i === void 0 ? e.strategy : i, o = t.boundary, s = o === void 0 ? cn : o, d = t.rootBoundary, c = d === void 0 ? ia : d, w = t.elementContext, $ = w === void 0 ? We : w, m = t.altBoundary, k = m === void 0 ? !1 : m, O = t.padding, V = O === void 0 ? 0 : O, x = ua(typeof V != "number" ? V : da(V, qe)), B = $ === We ? un : We, R = e.rects.popper, C = e.elements[k ? B : $], E = Fn(Se(C) ? C : C.contextElement || ke(e.elements.popper), s, c, l), f = Pe(e.elements.reference), S = pa({
1271
1271
  reference: f,
1272
- element: N,
1273
- placement: r
1274
- }), E = ft(Object.assign({}, N, V)), W = O === Re ? E : f, M = {
1275
- top: C.top - W.top + B.top,
1276
- bottom: W.bottom - C.bottom + B.bottom,
1277
- left: C.left - W.left + B.left,
1278
- right: W.right - C.right + B.right
1279
- }, j = e.modifiersData.offset;
1280
- if (O === Re && j) {
1281
- var k = j[r];
1282
- Object.keys(M).forEach(function(P) {
1283
- var U = [fe, de].indexOf(P) >= 0 ? 1 : -1, G = [ie, de].indexOf(P) >= 0 ? "y" : "x";
1284
- M[P] += k[G] * U;
1272
+ element: R,
1273
+ placement: n
1274
+ }), P = mt(Object.assign({}, R, S)), N = $ === We ? P : f, I = {
1275
+ top: E.top - N.top + x.top,
1276
+ bottom: N.bottom - E.bottom + x.bottom,
1277
+ left: E.left - N.left + x.left,
1278
+ right: N.right - E.right + x.right
1279
+ }, _ = e.modifiersData.offset;
1280
+ if ($ === We && _) {
1281
+ var T = _[n];
1282
+ Object.keys(I).forEach(function(D) {
1283
+ var X = [fe, de].indexOf(D) >= 0 ? 1 : -1, te = [oe, de].indexOf(D) >= 0 ? "y" : "x";
1284
+ I[D] += T[te] * X;
1285
1285
  });
1286
1286
  }
1287
- return M;
1288
- }
1289
- function Rn(e, t) {
1290
- t === void 0 && (t = {});
1291
- var a = t, n = a.placement, r = a.boundary, o = a.rootBoundary, s = a.padding, i = a.flipVariations, l = a.allowedAutoPlacements, d = l === void 0 ? ea : l, c = Ee(n), w = c ? i ? Et : Et.filter(function(y) {
1292
- return Ee(y) === c;
1293
- }) : Fe, O = w.filter(function(y) {
1294
- return d.indexOf(y) >= 0;
1287
+ return I;
1288
+ }
1289
+ function Hn(e, a) {
1290
+ a === void 0 && (a = {});
1291
+ var t = a, r = t.placement, n = t.boundary, i = t.rootBoundary, l = t.padding, o = t.flipVariations, s = t.allowedAutoPlacements, d = s === void 0 ? oa : s, c = ze(r), w = c ? o ? Wt : Wt.filter(function(k) {
1292
+ return ze(k) === c;
1293
+ }) : qe, $ = w.filter(function(k) {
1294
+ return d.indexOf(k) >= 0;
1295
1295
  });
1296
- O.length === 0 && (O = w);
1297
- var g = O.reduce(function(y, $) {
1298
- return y[$] = Ie(e, {
1299
- placement: $,
1300
- boundary: r,
1301
- rootBoundary: o,
1302
- padding: s
1303
- })[ve($)], y;
1296
+ $.length === 0 && ($ = w);
1297
+ var m = $.reduce(function(k, O) {
1298
+ return k[O] = Ue(e, {
1299
+ placement: O,
1300
+ boundary: n,
1301
+ rootBoundary: i,
1302
+ padding: l
1303
+ })[ge(O)], k;
1304
1304
  }, {});
1305
- return Object.keys(g).sort(function(y, $) {
1306
- return g[y] - g[$];
1305
+ return Object.keys(m).sort(function(k, O) {
1306
+ return m[k] - m[O];
1307
1307
  });
1308
1308
  }
1309
- function Wn(e) {
1310
- if (ve(e) === ht)
1309
+ function Un(e) {
1310
+ if (ge(e) === xt)
1311
1311
  return [];
1312
- var t = Xe(e);
1313
- return [zt(e), t, zt(t)];
1314
- }
1315
- function Mn(e) {
1316
- var t = e.state, a = e.options, n = e.name;
1317
- if (!t.modifiersData[n]._skip) {
1318
- for (var r = a.mainAxis, o = r === void 0 ? !0 : r, s = a.altAxis, i = s === void 0 ? !0 : s, l = a.fallbackPlacements, d = a.padding, c = a.boundary, w = a.rootBoundary, O = a.altBoundary, g = a.flipVariations, y = g === void 0 ? !0 : g, $ = a.allowedAutoPlacements, T = t.options.placement, B = ve(T), z = B === T, N = l || (z || !y ? [Xe(T)] : Wn(T)), S = [T].concat(N).reduce(function(J, pe) {
1319
- return J.concat(ve(pe) === ht ? Rn(t, {
1320
- placement: pe,
1312
+ var a = Qe(e);
1313
+ return [Nt(e), a, Nt(a)];
1314
+ }
1315
+ function qn(e) {
1316
+ var a = e.state, t = e.options, r = e.name;
1317
+ if (!a.modifiersData[r]._skip) {
1318
+ for (var n = t.mainAxis, i = n === void 0 ? !0 : n, l = t.altAxis, o = l === void 0 ? !0 : l, s = t.fallbackPlacements, d = t.padding, c = t.boundary, w = t.rootBoundary, $ = t.altBoundary, m = t.flipVariations, k = m === void 0 ? !0 : m, O = t.allowedAutoPlacements, V = a.options.placement, x = ge(V), B = x === V, R = s || (B || !k ? [Qe(V)] : Un(V)), C = [V].concat(R).reduce(function(ae, me) {
1319
+ return ae.concat(ge(me) === xt ? Hn(a, {
1320
+ placement: me,
1321
1321
  boundary: c,
1322
1322
  rootBoundary: w,
1323
1323
  padding: d,
1324
- flipVariations: y,
1325
- allowedAutoPlacements: $
1326
- }) : pe);
1327
- }, []), C = t.rects.reference, f = t.rects.popper, V = /* @__PURE__ */ new Map(), E = !0, W = S[0], M = 0; M < S.length; M++) {
1328
- var j = S[M], k = ve(j), P = Ee(j) === Ve, U = [ie, de].indexOf(k) >= 0, G = U ? "width" : "height", u = Ie(t, {
1329
- placement: j,
1324
+ flipVariations: k,
1325
+ allowedAutoPlacements: O
1326
+ }) : me);
1327
+ }, []), E = a.rects.reference, f = a.rects.popper, S = /* @__PURE__ */ new Map(), P = !0, N = C[0], I = 0; I < C.length; I++) {
1328
+ var _ = C[I], T = ge(_), D = ze(_) === Ae, X = [oe, de].indexOf(T) >= 0, te = X ? "width" : "height", u = Ue(a, {
1329
+ placement: _,
1330
1330
  boundary: c,
1331
1331
  rootBoundary: w,
1332
- altBoundary: O,
1332
+ altBoundary: $,
1333
1333
  padding: d
1334
- }), h = U ? P ? fe : oe : P ? de : ie;
1335
- C[G] > f[G] && (h = Xe(h));
1336
- var D = Xe(h), _ = [];
1337
- if (o && _.push(u[k] <= 0), i && _.push(u[h] <= 0, u[D] <= 0), _.every(function(J) {
1338
- return J;
1334
+ }), b = X ? D ? fe : le : D ? de : oe;
1335
+ E[te] > f[te] && (b = Qe(b));
1336
+ var z = Qe(b), q = [];
1337
+ if (i && q.push(u[T] <= 0), o && q.push(u[b] <= 0, u[z] <= 0), q.every(function(ae) {
1338
+ return ae;
1339
1339
  })) {
1340
- W = j, E = !1;
1340
+ N = _, P = !1;
1341
1341
  break;
1342
1342
  }
1343
- V.set(j, _);
1343
+ S.set(_, q);
1344
1344
  }
1345
- if (E)
1346
- for (var te = y ? 3 : 1, m = function(pe) {
1347
- var we = S.find(function(Se) {
1348
- var ge = V.get(Se);
1349
- if (ge)
1350
- return ge.slice(0, pe).every(function(Ae) {
1351
- return Ae;
1345
+ if (P)
1346
+ for (var re = k ? 3 : 1, h = function(me) {
1347
+ var $e = C.find(function(Te) {
1348
+ var be = S.get(Te);
1349
+ if (be)
1350
+ return be.slice(0, me).every(function(Re) {
1351
+ return Re;
1352
1352
  });
1353
1353
  });
1354
- if (we)
1355
- return W = we, "break";
1356
- }, F = te; F > 0; F--) {
1357
- var q = m(F);
1358
- if (q === "break") break;
1354
+ if ($e)
1355
+ return N = $e, "break";
1356
+ }, H = re; H > 0; H--) {
1357
+ var Y = h(H);
1358
+ if (Y === "break") break;
1359
1359
  }
1360
- t.placement !== W && (t.modifiersData[n]._skip = !0, t.placement = W, t.reset = !0);
1360
+ a.placement !== N && (a.modifiersData[r]._skip = !0, a.placement = N, a.reset = !0);
1361
1361
  }
1362
1362
  }
1363
- const Ln = {
1363
+ const Yn = {
1364
1364
  name: "flip",
1365
1365
  enabled: !0,
1366
1366
  phase: "main",
1367
- fn: Mn,
1367
+ fn: qn,
1368
1368
  requiresIfExists: ["offset"],
1369
1369
  data: {
1370
1370
  _skip: !1
1371
1371
  }
1372
1372
  };
1373
- function Wt(e, t, a) {
1374
- return a === void 0 && (a = {
1373
+ function _t(e, a, t) {
1374
+ return t === void 0 && (t = {
1375
1375
  x: 0,
1376
1376
  y: 0
1377
1377
  }), {
1378
- top: e.top - t.height - a.y,
1379
- right: e.right - t.width + a.x,
1380
- bottom: e.bottom - t.height + a.y,
1381
- left: e.left - t.width - a.x
1378
+ top: e.top - a.height - t.y,
1379
+ right: e.right - a.width + t.x,
1380
+ bottom: e.bottom - a.height + t.y,
1381
+ left: e.left - a.width - t.x
1382
1382
  };
1383
1383
  }
1384
- function Mt(e) {
1385
- return [ie, fe, de, oe].some(function(t) {
1386
- return e[t] >= 0;
1384
+ function Ft(e) {
1385
+ return [oe, fe, de, le].some(function(a) {
1386
+ return e[a] >= 0;
1387
1387
  });
1388
1388
  }
1389
- function Nn(e) {
1390
- var t = e.state, a = e.name, n = t.rects.reference, r = t.rects.popper, o = t.modifiersData.preventOverflow, s = Ie(t, {
1389
+ function Xn(e) {
1390
+ var a = e.state, t = e.name, r = a.rects.reference, n = a.rects.popper, i = a.modifiersData.preventOverflow, l = Ue(a, {
1391
1391
  elementContext: "reference"
1392
- }), i = Ie(t, {
1392
+ }), o = Ue(a, {
1393
1393
  altBoundary: !0
1394
- }), l = Wt(s, n), d = Wt(i, r, o), c = Mt(l), w = Mt(d);
1395
- t.modifiersData[a] = {
1396
- referenceClippingOffsets: l,
1394
+ }), s = _t(l, r), d = _t(o, n, i), c = Ft(s), w = Ft(d);
1395
+ a.modifiersData[t] = {
1396
+ referenceClippingOffsets: s,
1397
1397
  popperEscapeOffsets: d,
1398
1398
  isReferenceHidden: c,
1399
1399
  hasPopperEscaped: w
1400
- }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
1400
+ }, a.attributes.popper = Object.assign({}, a.attributes.popper, {
1401
1401
  "data-popper-reference-hidden": c,
1402
1402
  "data-popper-escaped": w
1403
1403
  });
1404
1404
  }
1405
- const jn = {
1405
+ const Kn = {
1406
1406
  name: "hide",
1407
1407
  enabled: !0,
1408
1408
  phase: "main",
1409
1409
  requiresIfExists: ["preventOverflow"],
1410
- fn: Nn
1410
+ fn: Xn
1411
1411
  };
1412
- function In(e, t, a) {
1413
- var n = ve(e), r = [oe, ie].indexOf(n) >= 0 ? -1 : 1, o = typeof a == "function" ? a(Object.assign({}, t, {
1412
+ function Gn(e, a, t) {
1413
+ var r = ge(e), n = [le, oe].indexOf(r) >= 0 ? -1 : 1, i = typeof t == "function" ? t(Object.assign({}, a, {
1414
1414
  placement: e
1415
- })) : a, s = o[0], i = o[1];
1416
- return s = s || 0, i = (i || 0) * r, [oe, fe].indexOf(n) >= 0 ? {
1417
- x: i,
1418
- y: s
1415
+ })) : t, l = i[0], o = i[1];
1416
+ return l = l || 0, o = (o || 0) * n, [le, fe].indexOf(r) >= 0 ? {
1417
+ x: o,
1418
+ y: l
1419
1419
  } : {
1420
- x: s,
1421
- y: i
1420
+ x: l,
1421
+ y: o
1422
1422
  };
1423
1423
  }
1424
- function Fn(e) {
1425
- var t = e.state, a = e.options, n = e.name, r = a.offset, o = r === void 0 ? [0, 0] : r, s = ea.reduce(function(c, w) {
1426
- return c[w] = In(w, t.rects, o), c;
1427
- }, {}), i = s[t.placement], l = i.x, d = i.y;
1428
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += l, t.modifiersData.popperOffsets.y += d), t.modifiersData[n] = s;
1424
+ function Qn(e) {
1425
+ var a = e.state, t = e.options, r = e.name, n = t.offset, i = n === void 0 ? [0, 0] : n, l = oa.reduce(function(c, w) {
1426
+ return c[w] = Gn(w, a.rects, i), c;
1427
+ }, {}), o = l[a.placement], s = o.x, d = o.y;
1428
+ a.modifiersData.popperOffsets != null && (a.modifiersData.popperOffsets.x += s, a.modifiersData.popperOffsets.y += d), a.modifiersData[r] = l;
1429
1429
  }
1430
- const Hn = {
1430
+ const Zn = {
1431
1431
  name: "offset",
1432
1432
  enabled: !0,
1433
1433
  phase: "main",
1434
1434
  requires: ["popperOffsets"],
1435
- fn: Fn
1435
+ fn: Qn
1436
1436
  };
1437
- function _n(e) {
1438
- var t = e.state, a = e.name;
1439
- t.modifiersData[a] = la({
1440
- reference: t.rects.reference,
1441
- element: t.rects.popper,
1442
- placement: t.placement
1437
+ function Jn(e) {
1438
+ var a = e.state, t = e.name;
1439
+ a.modifiersData[t] = pa({
1440
+ reference: a.rects.reference,
1441
+ element: a.rects.popper,
1442
+ placement: a.placement
1443
1443
  });
1444
1444
  }
1445
- const qn = {
1445
+ const er = {
1446
1446
  name: "popperOffsets",
1447
1447
  enabled: !0,
1448
1448
  phase: "read",
1449
- fn: _n,
1449
+ fn: Jn,
1450
1450
  data: {}
1451
1451
  };
1452
- function Un(e) {
1452
+ function tr(e) {
1453
1453
  return e === "x" ? "y" : "x";
1454
1454
  }
1455
- function Yn(e) {
1456
- var t = e.state, a = e.options, n = e.name, r = a.mainAxis, o = r === void 0 ? !0 : r, s = a.altAxis, i = s === void 0 ? !1 : s, l = a.boundary, d = a.rootBoundary, c = a.altBoundary, w = a.padding, O = a.tether, g = O === void 0 ? !0 : O, y = a.tetherOffset, $ = y === void 0 ? 0 : y, T = Ie(t, {
1457
- boundary: l,
1455
+ function ar(e) {
1456
+ var a = e.state, t = e.options, r = e.name, n = t.mainAxis, i = n === void 0 ? !0 : n, l = t.altAxis, o = l === void 0 ? !1 : l, s = t.boundary, d = t.rootBoundary, c = t.altBoundary, w = t.padding, $ = t.tether, m = $ === void 0 ? !0 : $, k = t.tetherOffset, O = k === void 0 ? 0 : k, V = Ue(a, {
1457
+ boundary: s,
1458
1458
  rootBoundary: d,
1459
1459
  padding: w,
1460
1460
  altBoundary: c
1461
- }), B = ve(t.placement), z = Ee(t.placement), N = !z, S = xt(B), C = Un(S), f = t.modifiersData.popperOffsets, V = t.rects.reference, E = t.rects.popper, W = typeof $ == "function" ? $(Object.assign({}, t.rects, {
1462
- placement: t.placement
1463
- })) : $, M = typeof W == "number" ? {
1464
- mainAxis: W,
1465
- altAxis: W
1461
+ }), x = ge(a.placement), B = ze(a.placement), R = !B, C = Ot(x), E = tr(C), f = a.modifiersData.popperOffsets, S = a.rects.reference, P = a.rects.popper, N = typeof O == "function" ? O(Object.assign({}, a.rects, {
1462
+ placement: a.placement
1463
+ })) : O, I = typeof N == "number" ? {
1464
+ mainAxis: N,
1465
+ altAxis: N
1466
1466
  } : Object.assign({
1467
1467
  mainAxis: 0,
1468
1468
  altAxis: 0
1469
- }, W), j = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, k = {
1469
+ }, N), _ = a.modifiersData.offset ? a.modifiersData.offset[a.placement] : null, T = {
1470
1470
  x: 0,
1471
1471
  y: 0
1472
1472
  };
1473
1473
  if (f) {
1474
- if (o) {
1475
- var P, U = S === "y" ? ie : oe, G = S === "y" ? de : fe, u = S === "y" ? "height" : "width", h = f[S], D = h + T[U], _ = h - T[G], te = g ? -E[u] / 2 : 0, m = z === Ve ? V[u] : E[u], F = z === Ve ? -E[u] : -V[u], q = t.elements.arrow, J = g && q ? yt(q) : {
1474
+ if (i) {
1475
+ var D, X = C === "y" ? oe : le, te = C === "y" ? de : fe, u = C === "y" ? "height" : "width", b = f[C], z = b + V[X], q = b - V[te], re = m ? -P[u] / 2 : 0, h = B === Ae ? S[u] : P[u], H = B === Ae ? -P[u] : -S[u], Y = a.elements.arrow, ae = m && Y ? $t(Y) : {
1476
1476
  width: 0,
1477
1477
  height: 0
1478
- }, pe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : na(), we = pe[U], Se = pe[G], ge = Me(0, V[u], J[u]), Ae = N ? V[u] / 2 - te - ge - we - M.mainAxis : m - ge - we - M.mainAxis, _e = N ? -V[u] / 2 + te + ge + Se + M.mainAxis : F + ge + Se + M.mainAxis, ze = t.elements.arrow && He(t.elements.arrow), at = ze ? S === "y" ? ze.clientTop || 0 : ze.clientLeft || 0 : 0, p = (P = j?.[S]) != null ? P : 0, H = h + Ae - p - at, R = h + _e - p, se = Me(g ? Ge(D, H) : D, h, g ? ke(_, R) : _);
1479
- f[S] = se, k[S] = se - h;
1478
+ }, me = a.modifiersData["arrow#persistent"] ? a.modifiersData["arrow#persistent"].padding : ca(), $e = me[X], Te = me[te], be = je(0, S[u], ae[u]), Re = R ? S[u] / 2 - re - be - $e - I.mainAxis : h - be - $e - I.mainAxis, Xe = R ? -S[u] / 2 + re + be + Te + I.mainAxis : H + be + Te + I.mainAxis, Le = a.elements.arrow && Ye(a.elements.arrow), it = Le ? C === "y" ? Le.clientTop || 0 : Le.clientLeft || 0 : 0, g = (D = _?.[C]) != null ? D : 0, U = b + Re - g - it, L = b + Xe - g, ce = je(m ? Ze(z, U) : z, b, m ? Ce(q, L) : q);
1479
+ f[C] = ce, T[C] = ce - b;
1480
1480
  }
1481
- if (i) {
1482
- var ae, nt = S === "x" ? ie : oe, Ot = S === "x" ? de : fe, $e = f[C], qe = C === "y" ? "height" : "width", Tt = $e + T[nt], St = $e - T[Ot], rt = [ie, oe].indexOf(B) !== -1, Ct = (ae = j?.[C]) != null ? ae : 0, Vt = rt ? Tt : $e - V[qe] - E[qe] - Ct + M.altAxis, Bt = rt ? $e + V[qe] + E[qe] - Ct - M.altAxis : St, Pt = g && rt ? hn(Vt, $e, Bt) : Me(g ? Vt : Tt, $e, g ? Bt : St);
1483
- f[C] = Pt, k[C] = Pt - $e;
1481
+ if (o) {
1482
+ var ie, ot = C === "x" ? oe : le, Vt = C === "x" ? de : fe, Oe = f[E], Ke = E === "y" ? "height" : "width", Bt = Oe + V[ot], Et = Oe - V[Vt], lt = [oe, le].indexOf(x) !== -1, At = (ie = _?.[E]) != null ? ie : 0, Dt = lt ? Bt : Oe - S[Ke] - P[Ke] - At + I.altAxis, Pt = lt ? Oe + S[Ke] + P[Ke] - At - I.altAxis : Et, zt = m && lt ? Sn(Dt, Oe, Pt) : je(m ? Dt : Bt, Oe, m ? Pt : Et);
1483
+ f[E] = zt, T[E] = zt - Oe;
1484
1484
  }
1485
- t.modifiersData[n] = k;
1485
+ a.modifiersData[r] = T;
1486
1486
  }
1487
1487
  }
1488
- const Xn = {
1488
+ const nr = {
1489
1489
  name: "preventOverflow",
1490
1490
  enabled: !0,
1491
1491
  phase: "main",
1492
- fn: Yn,
1492
+ fn: ar,
1493
1493
  requiresIfExists: ["offset"]
1494
1494
  };
1495
- function Kn(e) {
1495
+ function rr(e) {
1496
1496
  return {
1497
1497
  scrollLeft: e.scrollLeft,
1498
1498
  scrollTop: e.scrollTop
1499
1499
  };
1500
1500
  }
1501
- function Qn(e) {
1502
- return e === le(e) || !ue(e) ? wt(e) : Kn(e);
1501
+ function ir(e) {
1502
+ return e === se(e) || !ue(e) ? Ct(e) : rr(e);
1503
1503
  }
1504
- function Gn(e) {
1505
- var t = e.getBoundingClientRect(), a = Be(t.width) / e.offsetWidth || 1, n = Be(t.height) / e.offsetHeight || 1;
1506
- return a !== 1 || n !== 1;
1504
+ function or(e) {
1505
+ var a = e.getBoundingClientRect(), t = De(a.width) / e.offsetWidth || 1, r = De(a.height) / e.offsetHeight || 1;
1506
+ return t !== 1 || r !== 1;
1507
1507
  }
1508
- function Zn(e, t, a) {
1509
- a === void 0 && (a = !1);
1510
- var n = ue(t), r = ue(t) && Gn(t), o = xe(t), s = Pe(e, r, a), i = {
1508
+ function lr(e, a, t) {
1509
+ t === void 0 && (t = !1);
1510
+ var r = ue(a), n = ue(a) && or(a), i = ke(a), l = Pe(e, n, t), o = {
1511
1511
  scrollLeft: 0,
1512
1512
  scrollTop: 0
1513
- }, l = {
1513
+ }, s = {
1514
1514
  x: 0,
1515
1515
  y: 0
1516
1516
  };
1517
- return (n || !n && !a) && ((me(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1518
- kt(o)) && (i = Qn(t)), ue(t) ? (l = Pe(t, !0), l.x += t.clientLeft, l.y += t.clientTop) : o && (l.x = $t(o))), {
1519
- x: s.left + i.scrollLeft - l.x,
1520
- y: s.top + i.scrollTop - l.y,
1521
- width: s.width,
1522
- height: s.height
1517
+ return (r || !r && !t) && ((he(a) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
1518
+ Tt(i)) && (o = ir(a)), ue(a) ? (s = Pe(a, !0), s.x += a.clientLeft, s.y += a.clientTop) : i && (s.x = St(i))), {
1519
+ x: l.left + o.scrollLeft - s.x,
1520
+ y: l.top + o.scrollTop - s.y,
1521
+ width: l.width,
1522
+ height: l.height
1523
1523
  };
1524
1524
  }
1525
- function Jn(e) {
1526
- var t = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), n = [];
1527
- e.forEach(function(o) {
1528
- t.set(o.name, o);
1525
+ function sr(e) {
1526
+ var a = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), r = [];
1527
+ e.forEach(function(i) {
1528
+ a.set(i.name, i);
1529
1529
  });
1530
- function r(o) {
1531
- a.add(o.name);
1532
- var s = [].concat(o.requires || [], o.requiresIfExists || []);
1533
- s.forEach(function(i) {
1534
- if (!a.has(i)) {
1535
- var l = t.get(i);
1536
- l && r(l);
1530
+ function n(i) {
1531
+ t.add(i.name);
1532
+ var l = [].concat(i.requires || [], i.requiresIfExists || []);
1533
+ l.forEach(function(o) {
1534
+ if (!t.has(o)) {
1535
+ var s = a.get(o);
1536
+ s && n(s);
1537
1537
  }
1538
- }), n.push(o);
1538
+ }), r.push(i);
1539
1539
  }
1540
- return e.forEach(function(o) {
1541
- a.has(o.name) || r(o);
1542
- }), n;
1543
- }
1544
- function er(e) {
1545
- var t = Jn(e);
1546
- return dn.reduce(function(a, n) {
1547
- return a.concat(t.filter(function(r) {
1548
- return r.phase === n;
1540
+ return e.forEach(function(i) {
1541
+ t.has(i.name) || n(i);
1542
+ }), r;
1543
+ }
1544
+ function cr(e) {
1545
+ var a = sr(e);
1546
+ return wn.reduce(function(t, r) {
1547
+ return t.concat(a.filter(function(n) {
1548
+ return n.phase === r;
1549
1549
  }));
1550
1550
  }, []);
1551
1551
  }
1552
- function tr(e) {
1553
- var t;
1552
+ function ur(e) {
1553
+ var a;
1554
1554
  return function() {
1555
- return t || (t = new Promise(function(a) {
1555
+ return a || (a = new Promise(function(t) {
1556
1556
  Promise.resolve().then(function() {
1557
- t = void 0, a(e());
1557
+ a = void 0, t(e());
1558
1558
  });
1559
- })), t;
1559
+ })), a;
1560
1560
  };
1561
1561
  }
1562
- function ar(e) {
1563
- var t = e.reduce(function(a, n) {
1564
- var r = a[n.name];
1565
- return a[n.name] = r ? Object.assign({}, r, n, {
1566
- options: Object.assign({}, r.options, n.options),
1567
- data: Object.assign({}, r.data, n.data)
1568
- }) : n, a;
1562
+ function dr(e) {
1563
+ var a = e.reduce(function(t, r) {
1564
+ var n = t[r.name];
1565
+ return t[r.name] = n ? Object.assign({}, n, r, {
1566
+ options: Object.assign({}, n.options, r.options),
1567
+ data: Object.assign({}, n.data, r.data)
1568
+ }) : r, t;
1569
1569
  }, {});
1570
- return Object.keys(t).map(function(a) {
1571
- return t[a];
1570
+ return Object.keys(a).map(function(t) {
1571
+ return a[t];
1572
1572
  });
1573
1573
  }
1574
- var Lt = {
1574
+ var Ht = {
1575
1575
  placement: "bottom",
1576
1576
  modifiers: [],
1577
1577
  strategy: "absolute"
1578
1578
  };
1579
- function Nt() {
1580
- for (var e = arguments.length, t = new Array(e), a = 0; a < e; a++)
1581
- t[a] = arguments[a];
1582
- return !t.some(function(n) {
1583
- return !(n && typeof n.getBoundingClientRect == "function");
1579
+ function Ut() {
1580
+ for (var e = arguments.length, a = new Array(e), t = 0; t < e; t++)
1581
+ a[t] = arguments[t];
1582
+ return !a.some(function(r) {
1583
+ return !(r && typeof r.getBoundingClientRect == "function");
1584
1584
  });
1585
1585
  }
1586
- function nr(e) {
1586
+ function fr(e) {
1587
1587
  e === void 0 && (e = {});
1588
- var t = e, a = t.defaultModifiers, n = a === void 0 ? [] : a, r = t.defaultOptions, o = r === void 0 ? Lt : r;
1589
- return function(i, l, d) {
1590
- d === void 0 && (d = o);
1588
+ var a = e, t = a.defaultModifiers, r = t === void 0 ? [] : t, n = a.defaultOptions, i = n === void 0 ? Ht : n;
1589
+ return function(o, s, d) {
1590
+ d === void 0 && (d = i);
1591
1591
  var c = {
1592
1592
  placement: "bottom",
1593
1593
  orderedModifiers: [],
1594
- options: Object.assign({}, Lt, o),
1594
+ options: Object.assign({}, Ht, i),
1595
1595
  modifiersData: {},
1596
1596
  elements: {
1597
- reference: i,
1598
- popper: l
1597
+ reference: o,
1598
+ popper: s
1599
1599
  },
1600
1600
  attributes: {},
1601
1601
  styles: {}
1602
- }, w = [], O = !1, g = {
1602
+ }, w = [], $ = !1, m = {
1603
1603
  state: c,
1604
- setOptions: function(B) {
1605
- var z = typeof B == "function" ? B(c.options) : B;
1606
- $(), c.options = Object.assign({}, o, c.options, z), c.scrollParents = {
1607
- reference: Te(i) ? Le(i) : i.contextElement ? Le(i.contextElement) : [],
1608
- popper: Le(l)
1604
+ setOptions: function(x) {
1605
+ var B = typeof x == "function" ? x(c.options) : x;
1606
+ O(), c.options = Object.assign({}, i, c.options, B), c.scrollParents = {
1607
+ reference: Se(o) ? Ne(o) : o.contextElement ? Ne(o.contextElement) : [],
1608
+ popper: Ne(s)
1609
1609
  };
1610
- var N = er(ar([].concat(n, c.options.modifiers)));
1611
- return c.orderedModifiers = N.filter(function(S) {
1612
- return S.enabled;
1613
- }), y(), g.update();
1610
+ var R = cr(dr([].concat(r, c.options.modifiers)));
1611
+ return c.orderedModifiers = R.filter(function(C) {
1612
+ return C.enabled;
1613
+ }), k(), m.update();
1614
1614
  },
1615
1615
  // Sync update – it will always be executed, even if not necessary. This
1616
1616
  // is useful for low frequency updates where sync behavior simplifies the
@@ -1618,26 +1618,26 @@ function nr(e) {
1618
1618
  // For high frequency updates (e.g. `resize` and `scroll` events), always
1619
1619
  // prefer the async Popper#update method
1620
1620
  forceUpdate: function() {
1621
- if (!O) {
1622
- var B = c.elements, z = B.reference, N = B.popper;
1623
- if (Nt(z, N)) {
1621
+ if (!$) {
1622
+ var x = c.elements, B = x.reference, R = x.popper;
1623
+ if (Ut(B, R)) {
1624
1624
  c.rects = {
1625
- reference: Zn(z, He(N), c.options.strategy === "fixed"),
1626
- popper: yt(N)
1627
- }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(M) {
1628
- return c.modifiersData[M.name] = Object.assign({}, M.data);
1625
+ reference: lr(B, Ye(R), c.options.strategy === "fixed"),
1626
+ popper: $t(R)
1627
+ }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(I) {
1628
+ return c.modifiersData[I.name] = Object.assign({}, I.data);
1629
1629
  });
1630
- for (var S = 0; S < c.orderedModifiers.length; S++) {
1630
+ for (var C = 0; C < c.orderedModifiers.length; C++) {
1631
1631
  if (c.reset === !0) {
1632
- c.reset = !1, S = -1;
1632
+ c.reset = !1, C = -1;
1633
1633
  continue;
1634
1634
  }
1635
- var C = c.orderedModifiers[S], f = C.fn, V = C.options, E = V === void 0 ? {} : V, W = C.name;
1635
+ var E = c.orderedModifiers[C], f = E.fn, S = E.options, P = S === void 0 ? {} : S, N = E.name;
1636
1636
  typeof f == "function" && (c = f({
1637
1637
  state: c,
1638
- options: E,
1639
- name: W,
1640
- instance: g
1638
+ options: P,
1639
+ name: N,
1640
+ instance: m
1641
1641
  }) || c);
1642
1642
  }
1643
1643
  }
@@ -1645,173 +1645,173 @@ function nr(e) {
1645
1645
  },
1646
1646
  // Async and optimistically optimized update – it will not be executed if
1647
1647
  // not necessary (debounced to run at most once-per-tick)
1648
- update: tr(function() {
1649
- return new Promise(function(T) {
1650
- g.forceUpdate(), T(c);
1648
+ update: ur(function() {
1649
+ return new Promise(function(V) {
1650
+ m.forceUpdate(), V(c);
1651
1651
  });
1652
1652
  }),
1653
1653
  destroy: function() {
1654
- $(), O = !0;
1654
+ O(), $ = !0;
1655
1655
  }
1656
1656
  };
1657
- if (!Nt(i, l))
1658
- return g;
1659
- g.setOptions(d).then(function(T) {
1660
- !O && d.onFirstUpdate && d.onFirstUpdate(T);
1657
+ if (!Ut(o, s))
1658
+ return m;
1659
+ m.setOptions(d).then(function(V) {
1660
+ !$ && d.onFirstUpdate && d.onFirstUpdate(V);
1661
1661
  });
1662
- function y() {
1663
- c.orderedModifiers.forEach(function(T) {
1664
- var B = T.name, z = T.options, N = z === void 0 ? {} : z, S = T.effect;
1665
- if (typeof S == "function") {
1666
- var C = S({
1662
+ function k() {
1663
+ c.orderedModifiers.forEach(function(V) {
1664
+ var x = V.name, B = V.options, R = B === void 0 ? {} : B, C = V.effect;
1665
+ if (typeof C == "function") {
1666
+ var E = C({
1667
1667
  state: c,
1668
- name: B,
1669
- instance: g,
1670
- options: N
1668
+ name: x,
1669
+ instance: m,
1670
+ options: R
1671
1671
  }), f = function() {
1672
1672
  };
1673
- w.push(C || f);
1673
+ w.push(E || f);
1674
1674
  }
1675
1675
  });
1676
1676
  }
1677
- function $() {
1678
- w.forEach(function(T) {
1679
- return T();
1677
+ function O() {
1678
+ w.forEach(function(V) {
1679
+ return V();
1680
1680
  }), w = [];
1681
1681
  }
1682
- return g;
1682
+ return m;
1683
1683
  };
1684
1684
  }
1685
- var rr = [Cn, qn, Tn, vn, Hn, Ln, Xn, wn, jn], ir = /* @__PURE__ */ nr({
1686
- defaultModifiers: rr
1687
- }), or = typeof global == "object" && global && global.Object === Object && global, lr = typeof self == "object" && self && self.Object === Object && self, sa = or || lr || Function("return this")(), Ze = sa.Symbol, ca = Object.prototype, sr = ca.hasOwnProperty, cr = ca.toString, We = Ze ? Ze.toStringTag : void 0;
1688
- function ur(e) {
1689
- var t = sr.call(e, We), a = e[We];
1685
+ var pr = [Ln, er, zn, $n, Zn, Yn, nr, En, Kn], vr = /* @__PURE__ */ fr({
1686
+ defaultModifiers: pr
1687
+ }), mr = typeof global == "object" && global && global.Object === Object && global, gr = typeof self == "object" && self && self.Object === Object && self, va = mr || gr || Function("return this")(), Je = va.Symbol, ma = Object.prototype, hr = ma.hasOwnProperty, br = ma.toString, Me = Je ? Je.toStringTag : void 0;
1688
+ function yr(e) {
1689
+ var a = hr.call(e, Me), t = e[Me];
1690
1690
  try {
1691
- e[We] = void 0;
1692
- var n = !0;
1691
+ e[Me] = void 0;
1692
+ var r = !0;
1693
1693
  } catch {
1694
1694
  }
1695
- var r = cr.call(e);
1696
- return n && (t ? e[We] = a : delete e[We]), r;
1695
+ var n = br.call(e);
1696
+ return r && (a ? e[Me] = t : delete e[Me]), n;
1697
1697
  }
1698
- var dr = Object.prototype, fr = dr.toString;
1699
- function pr(e) {
1700
- return fr.call(e);
1698
+ var wr = Object.prototype, xr = wr.toString;
1699
+ function kr(e) {
1700
+ return xr.call(e);
1701
1701
  }
1702
- var vr = "[object Null]", mr = "[object Undefined]", jt = Ze ? Ze.toStringTag : void 0;
1703
- function gr(e) {
1704
- return e == null ? e === void 0 ? mr : vr : jt && jt in Object(e) ? ur(e) : pr(e);
1702
+ var $r = "[object Null]", Or = "[object Undefined]", qt = Je ? Je.toStringTag : void 0;
1703
+ function Cr(e) {
1704
+ return e == null ? e === void 0 ? Or : $r : qt && qt in Object(e) ? yr(e) : kr(e);
1705
1705
  }
1706
- function hr(e) {
1706
+ function Sr(e) {
1707
1707
  return e != null && typeof e == "object";
1708
1708
  }
1709
- var br = "[object Symbol]";
1710
- function yr(e) {
1711
- return typeof e == "symbol" || hr(e) && gr(e) == br;
1709
+ var Tr = "[object Symbol]";
1710
+ function Vr(e) {
1711
+ return typeof e == "symbol" || Sr(e) && Cr(e) == Tr;
1712
1712
  }
1713
- var xr = /\s/;
1714
- function wr(e) {
1715
- for (var t = e.length; t-- && xr.test(e.charAt(t)); )
1713
+ var Br = /\s/;
1714
+ function Er(e) {
1715
+ for (var a = e.length; a-- && Br.test(e.charAt(a)); )
1716
1716
  ;
1717
- return t;
1717
+ return a;
1718
1718
  }
1719
- var $r = /^\s+/;
1720
- function kr(e) {
1721
- return e && e.slice(0, wr(e) + 1).replace($r, "");
1719
+ var Ar = /^\s+/;
1720
+ function Dr(e) {
1721
+ return e && e.slice(0, Er(e) + 1).replace(Ar, "");
1722
1722
  }
1723
- function Je(e) {
1724
- var t = typeof e;
1725
- return e != null && (t == "object" || t == "function");
1723
+ function et(e) {
1724
+ var a = typeof e;
1725
+ return e != null && (a == "object" || a == "function");
1726
1726
  }
1727
- var It = NaN, Or = /^[-+]0x[0-9a-f]+$/i, Tr = /^0b[01]+$/i, Sr = /^0o[0-7]+$/i, Cr = parseInt;
1728
- function Ft(e) {
1727
+ var Yt = NaN, Pr = /^[-+]0x[0-9a-f]+$/i, zr = /^0b[01]+$/i, Rr = /^0o[0-7]+$/i, Lr = parseInt;
1728
+ function Xt(e) {
1729
1729
  if (typeof e == "number")
1730
1730
  return e;
1731
- if (yr(e))
1732
- return It;
1733
- if (Je(e)) {
1734
- var t = typeof e.valueOf == "function" ? e.valueOf() : e;
1735
- e = Je(t) ? t + "" : t;
1731
+ if (Vr(e))
1732
+ return Yt;
1733
+ if (et(e)) {
1734
+ var a = typeof e.valueOf == "function" ? e.valueOf() : e;
1735
+ e = et(a) ? a + "" : a;
1736
1736
  }
1737
1737
  if (typeof e != "string")
1738
1738
  return e === 0 ? e : +e;
1739
- e = kr(e);
1740
- var a = Tr.test(e);
1741
- return a || Sr.test(e) ? Cr(e.slice(2), a ? 2 : 8) : Or.test(e) ? It : +e;
1742
- }
1743
- var st = function() {
1744
- return sa.Date.now();
1745
- }, Vr = "Expected a function", Br = Math.max, Pr = Math.min;
1746
- function pt(e, t, a) {
1747
- var n, r, o, s, i, l, d = 0, c = !1, w = !1, O = !0;
1739
+ e = Dr(e);
1740
+ var t = zr.test(e);
1741
+ return t || Rr.test(e) ? Lr(e.slice(2), t ? 2 : 8) : Pr.test(e) ? Yt : +e;
1742
+ }
1743
+ var dt = function() {
1744
+ return va.Date.now();
1745
+ }, Wr = "Expected a function", Mr = Math.max, jr = Math.min;
1746
+ function gt(e, a, t) {
1747
+ var r, n, i, l, o, s, d = 0, c = !1, w = !1, $ = !0;
1748
1748
  if (typeof e != "function")
1749
- throw new TypeError(Vr);
1750
- t = Ft(t) || 0, Je(a) && (c = !!a.leading, w = "maxWait" in a, o = w ? Br(Ft(a.maxWait) || 0, t) : o, O = "trailing" in a ? !!a.trailing : O);
1751
- function g(f) {
1752
- var V = n, E = r;
1753
- return n = r = void 0, d = f, s = e.apply(E, V), s;
1754
- }
1755
- function y(f) {
1756
- return d = f, i = setTimeout(B, t), c ? g(f) : s;
1749
+ throw new TypeError(Wr);
1750
+ a = Xt(a) || 0, et(t) && (c = !!t.leading, w = "maxWait" in t, i = w ? Mr(Xt(t.maxWait) || 0, a) : i, $ = "trailing" in t ? !!t.trailing : $);
1751
+ function m(f) {
1752
+ var S = r, P = n;
1753
+ return r = n = void 0, d = f, l = e.apply(P, S), l;
1757
1754
  }
1758
- function $(f) {
1759
- var V = f - l, E = f - d, W = t - V;
1760
- return w ? Pr(W, o - E) : W;
1755
+ function k(f) {
1756
+ return d = f, o = setTimeout(x, a), c ? m(f) : l;
1761
1757
  }
1762
- function T(f) {
1763
- var V = f - l, E = f - d;
1764
- return l === void 0 || V >= t || V < 0 || w && E >= o;
1758
+ function O(f) {
1759
+ var S = f - s, P = f - d, N = a - S;
1760
+ return w ? jr(N, i - P) : N;
1765
1761
  }
1766
- function B() {
1767
- var f = st();
1768
- if (T(f))
1769
- return z(f);
1770
- i = setTimeout(B, $(f));
1762
+ function V(f) {
1763
+ var S = f - s, P = f - d;
1764
+ return s === void 0 || S >= a || S < 0 || w && P >= i;
1771
1765
  }
1772
- function z(f) {
1773
- return i = void 0, O && n ? g(f) : (n = r = void 0, s);
1766
+ function x() {
1767
+ var f = dt();
1768
+ if (V(f))
1769
+ return B(f);
1770
+ o = setTimeout(x, O(f));
1774
1771
  }
1775
- function N() {
1776
- i !== void 0 && clearTimeout(i), d = 0, n = l = r = i = void 0;
1772
+ function B(f) {
1773
+ return o = void 0, $ && r ? m(f) : (r = n = void 0, l);
1777
1774
  }
1778
- function S() {
1779
- return i === void 0 ? s : z(st());
1775
+ function R() {
1776
+ o !== void 0 && clearTimeout(o), d = 0, r = s = n = o = void 0;
1780
1777
  }
1781
1778
  function C() {
1782
- var f = st(), V = T(f);
1783
- if (n = arguments, r = this, l = f, V) {
1784
- if (i === void 0)
1785
- return y(l);
1779
+ return o === void 0 ? l : B(dt());
1780
+ }
1781
+ function E() {
1782
+ var f = dt(), S = V(f);
1783
+ if (r = arguments, n = this, s = f, S) {
1784
+ if (o === void 0)
1785
+ return k(s);
1786
1786
  if (w)
1787
- return clearTimeout(i), i = setTimeout(B, t), g(l);
1787
+ return clearTimeout(o), o = setTimeout(x, a), m(s);
1788
1788
  }
1789
- return i === void 0 && (i = setTimeout(B, t)), s;
1789
+ return o === void 0 && (o = setTimeout(x, a)), l;
1790
1790
  }
1791
- return C.cancel = N, C.flush = S, C;
1791
+ return E.cancel = R, E.flush = C, E;
1792
1792
  }
1793
- var Er = "Expected a function";
1794
- function Dr(e, t, a) {
1795
- var n = !0, r = !0;
1793
+ var Nr = "Expected a function";
1794
+ function Ir(e, a, t) {
1795
+ var r = !0, n = !0;
1796
1796
  if (typeof e != "function")
1797
- throw new TypeError(Er);
1798
- return Je(a) && (n = "leading" in a ? !!a.leading : n, r = "trailing" in a ? !!a.trailing : r), pt(e, t, {
1799
- leading: n,
1800
- maxWait: t,
1801
- trailing: r
1797
+ throw new TypeError(Nr);
1798
+ return et(t) && (r = "leading" in t ? !!t.leading : r, n = "trailing" in t ? !!t.trailing : n), gt(e, a, {
1799
+ leading: r,
1800
+ maxWait: a,
1801
+ trailing: n
1802
1802
  });
1803
1803
  }
1804
- const Ar = (e, t) => {
1805
- const a = (n) => {
1806
- const r = e.value, o = n.target;
1807
- !r || !o || !(o instanceof Node) || r.contains(o) || t(n);
1804
+ const _r = (e, a) => {
1805
+ const t = (r) => {
1806
+ const n = e.value, i = r.target;
1807
+ !n || !i || !(i instanceof Node) || n.contains(i) || a(r);
1808
1808
  };
1809
- et(() => {
1810
- document.addEventListener("click", a, !0);
1811
- }), De(() => {
1812
- document.removeEventListener("click", a, !0);
1809
+ at(() => {
1810
+ document.addEventListener("click", t, !0);
1811
+ }), xe(() => {
1812
+ document.removeEventListener("click", t, !0);
1813
1813
  });
1814
- }, zr = 80, vt = /* @__PURE__ */ Q({
1814
+ }, Fr = 80, ht = /* @__PURE__ */ Q({
1815
1815
  name: "Popover",
1816
1816
  __name: "Popover",
1817
1817
  props: {
@@ -1830,138 +1830,138 @@ const Ar = (e, t) => {
1830
1830
  padding: { default: 4 }
1831
1831
  },
1832
1832
  emits: ["visible-change", "click-outside", "scroll"],
1833
- setup(e, { expose: t, emit: a }) {
1834
- const n = Y(!1), r = e, o = v(() => r.preserveContentMount || n.value), s = v(() => !r.preserveContentMount || n.value), i = a, l = Y(), d = Y(), c = Y();
1835
- let w = null, O = Ce({}), g = Ce({}), y = Ce({});
1836
- const $ = (k) => typeof k == "number" ? `${k}px` : k, T = v(() => {
1837
- const k = r.maxPopperHeight;
1838
- return k != null && k !== "";
1839
- }), B = v(() => {
1840
- const k = {}, P = r.popperWidth;
1841
- if (P != null && P !== "" && (k.width = $(P)), T.value) {
1842
- const U = r.maxPopperHeight;
1843
- k.maxHeight = $(U), k.overflowY = "auto", k.scrollbarWidth = "none", k.msOverflowStyle = "none";
1833
+ setup(e, { expose: a, emit: t }) {
1834
+ const r = F(!1), n = e, i = v(() => n.preserveContentMount || r.value), l = v(() => !n.preserveContentMount || r.value), o = t, s = F(), d = F(), c = F();
1835
+ let w = null, $ = Ve({}), m = Ve({}), k = Ve({});
1836
+ const O = (T) => typeof T == "number" ? `${T}px` : T, V = v(() => {
1837
+ const T = n.maxPopperHeight;
1838
+ return T != null && T !== "";
1839
+ }), x = v(() => {
1840
+ const T = {}, D = n.popperWidth;
1841
+ if (D != null && D !== "" && (T.width = O(D)), V.value) {
1842
+ const X = n.maxPopperHeight;
1843
+ T.maxHeight = O(X), T.overflowY = "auto", T.scrollbarWidth = "none", T.msOverflowStyle = "none";
1844
1844
  }
1845
- return k.padding = $(r.padding), k;
1846
- }), z = v(() => ({
1847
- placement: r.placement,
1845
+ return T.padding = O(n.padding), T;
1846
+ }), B = v(() => ({
1847
+ placement: n.placement,
1848
1848
  modifiers: [
1849
1849
  {
1850
1850
  name: "offset",
1851
1851
  options: {
1852
- offset: r.offset
1852
+ offset: n.offset
1853
1853
  }
1854
1854
  }
1855
1855
  ],
1856
- ...r.popoverOptions
1857
- })), N = () => {
1858
- r.disabled || (n.value = !0, i("visible-change", !0));
1859
- }, S = () => {
1860
- n.value = !1, i("visible-change", !1);
1861
- }, C = pt(N, r.openDelay), f = pt(S, r.closeDelay), V = () => {
1862
- r.disabled || (f.cancel(), C());
1863
- }, E = () => {
1864
- C.cancel(), f();
1856
+ ...n.popoverOptions
1857
+ })), R = () => {
1858
+ n.disabled || (r.value = !0, o("visible-change", !0));
1859
+ }, C = () => {
1860
+ r.value = !1, o("visible-change", !1);
1861
+ }, E = gt(R, n.openDelay), f = gt(C, n.closeDelay), S = () => {
1862
+ n.disabled || (f.cancel(), E());
1863
+ }, P = () => {
1864
+ E.cancel(), f();
1865
1865
  };
1866
- Ar(l, (k) => {
1867
- const P = k.target;
1868
- P instanceof Node && c.value?.contains(P) || (r.trigger === "click" && n.value && !r.manual && E(), n.value && i("click-outside", !0));
1866
+ _r(s, (T) => {
1867
+ const D = T.target;
1868
+ D instanceof Node && c.value?.contains(D) || (n.trigger === "click" && r.value && !n.manual && P(), r.value && o("click-outside", !0));
1869
1869
  });
1870
- const W = () => {
1871
- r.disabled || (n.value ? E() : V());
1872
- }, M = () => {
1873
- y = {}, r.trigger === "hover" ? (g.mouseenter = V, O.mouseleave = E, r.teleport && (y.mouseenter = V, y.mouseleave = E)) : r.trigger === "click" && (g.click = W);
1870
+ const N = () => {
1871
+ n.disabled || (r.value ? P() : S());
1872
+ }, I = () => {
1873
+ k = {}, n.trigger === "hover" ? (m.mouseenter = S, $.mouseleave = P, n.teleport && (k.mouseenter = S, k.mouseleave = P)) : n.trigger === "click" && (m.click = N);
1874
1874
  };
1875
- ee(
1876
- () => n.value,
1877
- (k) => {
1878
- k && (d.value && c.value ? w = ir(d.value, c.value, z.value) : w?.destroy());
1875
+ J(
1876
+ () => r.value,
1877
+ (T) => {
1878
+ T && (d.value && c.value ? w = vr(d.value, c.value, B.value) : w?.destroy());
1879
1879
  },
1880
1880
  { flush: "post" }
1881
- ), ee(
1882
- () => r.manual,
1883
- (k) => {
1884
- k ? (g = {}, O = {}, y = {}) : M();
1881
+ ), J(
1882
+ () => n.manual,
1883
+ (T) => {
1884
+ T ? (m = {}, $ = {}, k = {}) : I();
1885
1885
  }
1886
- ), ee(
1887
- () => r.trigger,
1888
- (k, P) => {
1889
- k !== P && (g = {}, O = {}, y = {}, M());
1886
+ ), J(
1887
+ () => n.trigger,
1888
+ (T, D) => {
1889
+ T !== D && (m = {}, $ = {}, k = {}, I());
1890
1890
  }
1891
- ), ee(
1892
- () => r.teleport,
1891
+ ), J(
1892
+ () => n.teleport,
1893
1893
  () => {
1894
- r.manual || M();
1894
+ n.manual || I();
1895
1895
  }
1896
- ), ee(
1897
- () => r.disabled,
1898
- (k) => {
1899
- k && E();
1896
+ ), J(
1897
+ () => n.disabled,
1898
+ (T) => {
1899
+ T && P();
1900
1900
  }
1901
- ), et(() => {
1902
- r.manual || M();
1901
+ ), at(() => {
1902
+ n.manual || I();
1903
1903
  });
1904
- const j = Dr((k) => {
1905
- const P = k.target;
1906
- i("scroll", { scrollTop: P.scrollTop, scrollLeft: P.scrollLeft });
1907
- }, zr);
1908
- return De(() => {
1909
- j.cancel(), w?.destroy();
1910
- }), t({
1911
- isOpen: n,
1912
- open: V,
1913
- close: E
1914
- }), (k, P) => (b(), x("div", ye({
1904
+ const _ = Ir((T) => {
1905
+ const D = T.target;
1906
+ o("scroll", { scrollTop: D.scrollTop, scrollLeft: D.scrollLeft });
1907
+ }, Fr);
1908
+ return xe(() => {
1909
+ _.cancel(), w?.destroy();
1910
+ }), a({
1911
+ isOpen: r,
1912
+ open: S,
1913
+ close: P
1914
+ }), (T, D) => (p(), y("div", we({
1915
1915
  class: "cregis-popover",
1916
1916
  ref_key: "popoverRef",
1917
- ref: l
1918
- }, it(ne(O), !0)), [
1919
- A("div", ye({
1917
+ ref: s
1918
+ }, st(Z($), !0)), [
1919
+ A("div", we({
1920
1920
  class: ["cregis-popover__trigger", { "cregis-popover__trigger--disabled": e.disabled }],
1921
1921
  ref_key: "popoverTriggerRef",
1922
1922
  ref: d
1923
- }, it(ne(g), !0)), [
1924
- K(k.$slots, "reference")
1923
+ }, st(Z(m), !0)), [
1924
+ G(T.$slots, "reference")
1925
1925
  ], 16),
1926
- (b(), Oe(ma, {
1926
+ (p(), pe(ea, {
1927
1927
  to: "body",
1928
1928
  disabled: !e.teleport
1929
1929
  }, [
1930
- Z(mt, { name: "fade" }, {
1931
- default: re(() => [
1932
- o.value ? Ne((b(), x("div", ye({
1930
+ K(nt, { name: "fade" }, {
1931
+ default: ee(() => [
1932
+ i.value ? _e((p(), y("div", we({
1933
1933
  key: 0,
1934
- class: ["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": T.value }],
1934
+ class: ["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": V.value }],
1935
1935
  ref_key: "popoverContentRef",
1936
1936
  ref: c,
1937
- style: B.value
1938
- }, it(ne(y), !0), {
1939
- onScroll: P[0] || (P[0] = //@ts-ignore
1940
- (...U) => ne(j) && ne(j)(...U))
1937
+ style: x.value
1938
+ }, st(Z(k), !0), {
1939
+ onScroll: D[0] || (D[0] = //@ts-ignore
1940
+ (...X) => Z(_) && Z(_)(...X))
1941
1941
  }), [
1942
- K(k.$slots, "default")
1942
+ G(T.$slots, "default")
1943
1943
  ], 16)), [
1944
- [gt, s.value]
1945
- ]) : X("", !0)
1944
+ [wt, l.value]
1945
+ ]) : j("", !0)
1946
1946
  ]),
1947
1947
  _: 3
1948
1948
  })
1949
1949
  ], 8, ["disabled"]))
1950
1950
  ], 16));
1951
1951
  }
1952
- }), ua = Symbol("CregisSelect"), Rr = { class: "cregis-select__selected" }, Wr = {
1952
+ }), ga = Symbol("CregisSelect"), Hr = { class: "cregis-select__selected" }, Ur = {
1953
1953
  key: 0,
1954
1954
  class: "cregis-select__count"
1955
- }, Mr = {
1955
+ }, qr = {
1956
1956
  key: 1,
1957
1957
  class: "cregis-select__placeholder"
1958
- }, Lr = {
1958
+ }, Yr = {
1959
1959
  key: 0,
1960
1960
  class: "cregis-select__dropdown-empty"
1961
- }, Nr = {
1961
+ }, Xr = {
1962
1962
  key: 2,
1963
1963
  class: "cregis-select__dropdown-filter-empty"
1964
- }, jr = { class: "cregis-select__dropdown-content" }, di = /* @__PURE__ */ Q({
1964
+ }, Kr = { class: "cregis-select__dropdown-content" }, Di = /* @__PURE__ */ Q({
1965
1965
  name: "Select",
1966
1966
  __name: "Select",
1967
1967
  props: {
@@ -1982,165 +1982,165 @@ const Ar = (e, t) => {
1982
1982
  multiple: { type: Boolean }
1983
1983
  },
1984
1984
  emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
1985
- setup(e, { emit: t }) {
1986
- const a = e, n = t, r = Y(null), o = Y(!1);
1987
- let s = null;
1988
- const i = () => {
1989
- s !== null && (clearTimeout(s), s = null);
1990
- }, l = (m) => {
1991
- o.value = m, n("visible-change", m), !m && a.filterable && (C.value = "", f.value = "", i());
1992
- }, d = (m) => typeof m == "number" ? `n:${m}` : `s:${m}`, c = Ce({}), w = Ce({}), O = Y(0), g = Y(null), y = (m, F, q) => {
1993
- const J = d(m);
1994
- return O.value++, c[J] = F, w[J] = q ?? F, () => {
1995
- O.value--, delete c[J], delete w[J];
1985
+ setup(e, { emit: a }) {
1986
+ const t = e, r = a, n = F(null), i = F(!1);
1987
+ let l = null;
1988
+ const o = () => {
1989
+ l !== null && (clearTimeout(l), l = null);
1990
+ }, s = (h) => {
1991
+ i.value = h, r("visible-change", h), !h && t.filterable && (E.value = "", f.value = "", o());
1992
+ }, d = (h) => typeof h == "number" ? `n:${h}` : `s:${h}`, c = Ve({}), w = Ve({}), $ = F(0), m = F(null), k = (h, H, Y) => {
1993
+ const ae = d(h);
1994
+ return $.value++, c[ae] = H, w[ae] = Y ?? H, () => {
1995
+ $.value--, delete c[ae], delete w[ae];
1996
1996
  };
1997
- }, $ = v(() => O.value === 0);
1998
- ee(
1999
- () => a.modelValue,
2000
- (m) => {
2001
- if (!a.multiple) {
2002
- if (m == null || m === "") {
2003
- g.value = null;
1997
+ }, O = v(() => $.value === 0);
1998
+ J(
1999
+ () => t.modelValue,
2000
+ (h) => {
2001
+ if (!t.multiple) {
2002
+ if (h == null || h === "") {
2003
+ m.value = null;
2004
2004
  return;
2005
2005
  }
2006
- g.value && g.value.value !== m && (g.value = null);
2006
+ m.value && m.value.value !== h && (m.value = null);
2007
2007
  }
2008
2008
  }
2009
2009
  );
2010
- const T = v(() => {
2011
- if (a.multiple)
2012
- return Array.isArray(a.modelValue) && a.modelValue.length > 0;
2013
- const m = a.modelValue;
2014
- return m != null && m !== "";
2015
- }), B = v(() => !a.multiple || !Array.isArray(a.modelValue) ? 0 : a.modelValue.length), z = v(() => {
2016
- if (!T.value) return "";
2017
- if (a.multiple)
2018
- return a.modelValue.map((q) => c[d(q)] ?? String(q)).join("、");
2019
- const m = a.modelValue;
2020
- return g.value?.value === m ? g.value.label : c[d(m)] ?? String(m);
2021
- }), N = (m) => a.multiple ? Array.isArray(a.modelValue) && a.modelValue.includes(m) : a.modelValue === m, S = (m, F) => {
2022
- if (!a.disabled) {
2023
- if (a.multiple) {
2024
- const q = Array.isArray(a.modelValue) ? [...a.modelValue] : [], J = q.indexOf(m);
2025
- J >= 0 ? q.splice(J, 1) : q.push(m), n("update:modelValue", q), n("change", q);
2010
+ const V = v(() => {
2011
+ if (t.multiple)
2012
+ return Array.isArray(t.modelValue) && t.modelValue.length > 0;
2013
+ const h = t.modelValue;
2014
+ return h != null && h !== "";
2015
+ }), x = v(() => !t.multiple || !Array.isArray(t.modelValue) ? 0 : t.modelValue.length), B = v(() => {
2016
+ if (!V.value) return "";
2017
+ if (t.multiple)
2018
+ return t.modelValue.map((Y) => c[d(Y)] ?? String(Y)).join("、");
2019
+ const h = t.modelValue;
2020
+ return m.value?.value === h ? m.value.label : c[d(h)] ?? String(h);
2021
+ }), R = (h) => t.multiple ? Array.isArray(t.modelValue) && t.modelValue.includes(h) : t.modelValue === h, C = (h, H) => {
2022
+ if (!t.disabled) {
2023
+ if (t.multiple) {
2024
+ const Y = Array.isArray(t.modelValue) ? [...t.modelValue] : [], ae = Y.indexOf(h);
2025
+ ae >= 0 ? Y.splice(ae, 1) : Y.push(h), r("update:modelValue", Y), r("change", Y);
2026
2026
  return;
2027
2027
  }
2028
- g.value = { value: m, label: F }, n("update:modelValue", m), n("change", m), r.value?.close();
2028
+ m.value = { value: h, label: H }, r("update:modelValue", h), r("change", h), n.value?.close();
2029
2029
  }
2030
- }, C = Y(""), f = Y(""), V = v(() => f.value.trim().toLowerCase()), E = v(() => {
2031
- const m = V.value;
2032
- return !a.filterable || !m ? !0 : Object.keys(c).some((F) => (w[F] ?? c[F]).toLowerCase().includes(m));
2033
- }), W = v(
2034
- () => a.filterable && !!V.value && !E.value && !$.value
2035
- ), M = () => {
2036
- a.filterable && (i(), s = setTimeout(() => {
2037
- f.value = C.value.trim(), s = null;
2038
- }, a.filterDebounceMs));
2030
+ }, E = F(""), f = F(""), S = v(() => f.value.trim().toLowerCase()), P = v(() => {
2031
+ const h = S.value;
2032
+ return !t.filterable || !h ? !0 : Object.keys(c).some((H) => (w[H] ?? c[H]).toLowerCase().includes(h));
2033
+ }), N = v(
2034
+ () => t.filterable && !!S.value && !P.value && !O.value
2035
+ ), I = () => {
2036
+ t.filterable && (o(), l = setTimeout(() => {
2037
+ f.value = E.value.trim(), l = null;
2038
+ }, t.filterDebounceMs));
2039
2039
  };
2040
- ee(C, () => {
2041
- a.filterable && M();
2042
- }), ee(
2043
- () => a.filterable,
2044
- (m) => {
2045
- m || (C.value = "", f.value = "", i());
2040
+ J(E, () => {
2041
+ t.filterable && I();
2042
+ }), J(
2043
+ () => t.filterable,
2044
+ (h) => {
2045
+ h || (E.value = "", f.value = "", o());
2046
2046
  }
2047
- ), De(() => i());
2048
- const j = (m) => {
2049
- n("filter-input", String(m ?? ""));
2050
- }, k = () => {
2051
- f.value = "", i(), n("filter-clear");
2047
+ ), xe(() => o());
2048
+ const _ = (h) => {
2049
+ r("filter-input", String(h ?? ""));
2050
+ }, T = () => {
2051
+ f.value = "", o(), r("filter-clear");
2052
2052
  };
2053
- qt(ua, {
2054
- modelValue: v(() => a.modelValue),
2055
- multiple: v(() => !!a.multiple),
2056
- disabled: v(() => !!a.disabled),
2057
- selectOption: S,
2058
- isOptionSelected: N,
2059
- registerOption: y,
2060
- filterQuery: V
2053
+ Qt(ga, {
2054
+ modelValue: v(() => t.modelValue),
2055
+ multiple: v(() => !!t.multiple),
2056
+ disabled: v(() => !!t.disabled),
2057
+ selectOption: C,
2058
+ isOptionSelected: R,
2059
+ registerOption: k,
2060
+ filterQuery: S
2061
2061
  });
2062
- const P = (m) => typeof m == "number" ? `${m}px` : m, U = v(() => {
2063
- if (a.popperWidth) return P(a.popperWidth);
2064
- const m = a.triggerWidth;
2065
- return typeof m == "number" ? m + 8 : `calc(${m} + 8px)`;
2066
- }), G = v(() => typeof U.value == "number" ? `${U.value - 12}px` : `calc(${U.value} - 12px)`), u = v(() => a.align === "center" ? "bottom" : a.align === "left" ? "bottom-start" : "bottom-end"), h = v(() => ({
2067
- width: P(a.triggerWidth)
2068
- })), D = v(() => a.size === "large" ? "20px" : a.size === "medium" ? "14px" : "12px"), _ = Y(0), te = (m) => {
2069
- _.value = m.scrollTop;
2062
+ const D = (h) => typeof h == "number" ? `${h}px` : h, X = v(() => {
2063
+ if (t.popperWidth) return D(t.popperWidth);
2064
+ const h = t.triggerWidth;
2065
+ return typeof h == "number" ? h + 8 : `calc(${h} + 8px)`;
2066
+ }), te = v(() => typeof X.value == "number" ? `${X.value - 12}px` : `calc(${X.value} - 12px)`), u = v(() => t.align === "center" ? "bottom" : t.align === "left" ? "bottom-start" : "bottom-end"), b = v(() => ({
2067
+ width: D(t.triggerWidth)
2068
+ })), z = v(() => t.size === "large" ? "20px" : t.size === "medium" ? "14px" : "12px"), q = F(0), re = (h) => {
2069
+ q.value = h.scrollTop;
2070
2070
  };
2071
- return (m, F) => (b(), x("div", {
2072
- class: L(["cregis-select", { "is-disabled": e.disabled }])
2071
+ return (h, H) => (p(), y("div", {
2072
+ class: W(["cregis-select", { "is-disabled": e.disabled }])
2073
2073
  }, [
2074
- Z(vt, {
2074
+ K(ht, {
2075
2075
  ref_key: "popoverRef",
2076
- ref: r,
2076
+ ref: n,
2077
2077
  "preserve-content-mount": "",
2078
- "popper-width": U.value,
2078
+ "popper-width": X.value,
2079
2079
  placement: u.value,
2080
2080
  disabled: !!e.disabled,
2081
2081
  padding: 0,
2082
2082
  "max-popper-height": e.maxPopperHeight,
2083
- onVisibleChange: l,
2084
- onScroll: te
2083
+ onVisibleChange: s,
2084
+ onScroll: re
2085
2085
  }, {
2086
- reference: re(() => [
2086
+ reference: ee(() => [
2087
2087
  A("div", {
2088
- class: L(["cregis-select__trigger", { [`cregis-select__trigger--${e.size}`]: e.size, [`cregis-select__trigger--${e.type}`]: e.type }]),
2089
- style: ce(h.value)
2088
+ class: W(["cregis-select__trigger", { [`cregis-select__trigger--${e.size}`]: e.size, [`cregis-select__trigger--${e.type}`]: e.type }]),
2089
+ style: ne(b.value)
2090
2090
  }, [
2091
2091
  A("div", {
2092
- class: L(["cregis-select__trigger-label", { "is-multiple": e.multiple }])
2092
+ class: W(["cregis-select__trigger-label", { "is-multiple": e.multiple }])
2093
2093
  }, [
2094
- T.value ? K(m.$slots, "label", {
2094
+ V.value ? G(h.$slots, "label", {
2095
2095
  key: 0,
2096
2096
  modelValue: e.modelValue,
2097
- displayText: z.value,
2098
- selectedCount: B.value,
2097
+ displayText: B.value,
2098
+ selectedCount: x.value,
2099
2099
  placeholder: e.placeholder,
2100
- hasSelection: T.value
2100
+ hasSelection: V.value
2101
2101
  }, () => [
2102
- A("p", Rr, I(z.value), 1),
2103
- e.multiple ? (b(), x("span", Wr, I(B.value), 1)) : X("", !0)
2104
- ]) : (b(), x("p", Mr, I(e.placeholder), 1))
2102
+ A("p", Hr, M(B.value), 1),
2103
+ e.multiple ? (p(), y("span", Ur, M(x.value), 1)) : j("", !0)
2104
+ ]) : (p(), y("p", qr, M(e.placeholder), 1))
2105
2105
  ], 2),
2106
2106
  A("span", {
2107
- class: L(["cregis-select__icon", { "is-open": o.value }])
2107
+ class: W(["cregis-select__icon", { "is-open": i.value }])
2108
2108
  }, [
2109
- Z(ne(Qt), {
2110
- size: D.value,
2109
+ K(Z(aa), {
2110
+ size: z.value,
2111
2111
  color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-base-secondary)"
2112
2112
  }, null, 8, ["size", "color"])
2113
2113
  ], 2)
2114
2114
  ], 6)
2115
2115
  ]),
2116
- default: re(() => [
2116
+ default: ee(() => [
2117
2117
  A("div", {
2118
- class: L(["cregis-select__dropdown", { "is-empty": $.value }])
2118
+ class: W(["cregis-select__dropdown", { "is-empty": O.value }])
2119
2119
  }, [
2120
- $.value ? (b(), x("p", Lr, I(e.noDataText), 1)) : X("", !0),
2121
- e.filterable && !$.value ? (b(), x("div", {
2120
+ O.value ? (p(), y("p", Yr, M(e.noDataText), 1)) : j("", !0),
2121
+ e.filterable && !O.value ? (p(), y("div", {
2122
2122
  key: 1,
2123
- class: L(["cregis-select__dropdown-filter", { "backdrop-fixed-header": _.value > 10 }])
2123
+ class: W(["cregis-select__dropdown-filter", { "backdrop-fixed-header": q.value > 10 }])
2124
2124
  }, [
2125
- Z(Gt, {
2126
- modelValue: C.value,
2127
- "onUpdate:modelValue": F[0] || (F[0] = (q) => C.value = q),
2125
+ K(na, {
2126
+ modelValue: E.value,
2127
+ "onUpdate:modelValue": H[0] || (H[0] = (Y) => E.value = Y),
2128
2128
  placeholder: e.searchText,
2129
- width: G.value,
2129
+ width: te.value,
2130
2130
  size: "small",
2131
2131
  clearable: "",
2132
- onInput: j,
2133
- onClear: k
2132
+ onInput: _,
2133
+ onClear: T
2134
2134
  }, {
2135
- prefix: re(() => [
2136
- Z(ne(Kt), { size: "14px" })
2135
+ prefix: ee(() => [
2136
+ K(Z(ta), { size: "14px" })
2137
2137
  ]),
2138
2138
  _: 1
2139
2139
  }, 8, ["modelValue", "placeholder", "width"])
2140
- ], 2)) : X("", !0),
2141
- W.value ? (b(), x("p", Nr, I(e.noMatchText), 1)) : X("", !0),
2142
- A("div", jr, [
2143
- K(m.$slots, "default")
2140
+ ], 2)) : j("", !0),
2141
+ N.value ? (p(), y("p", Xr, M(e.noMatchText), 1)) : j("", !0),
2142
+ A("div", Kr, [
2143
+ G(h.$slots, "default")
2144
2144
  ])
2145
2145
  ], 2)
2146
2146
  ]),
@@ -2148,10 +2148,10 @@ const Ar = (e, t) => {
2148
2148
  }, 8, ["popper-width", "placement", "disabled", "max-popper-height"])
2149
2149
  ], 2));
2150
2150
  }
2151
- }), Ir = ["aria-selected"], Fr = {
2151
+ }), Gr = ["aria-selected"], Qr = {
2152
2152
  key: 1,
2153
2153
  class: "cregis-select__option-content"
2154
- }, fi = /* @__PURE__ */ Q({
2154
+ }, Pi = /* @__PURE__ */ Q({
2155
2155
  name: "Option",
2156
2156
  __name: "Option",
2157
2157
  props: {
@@ -2161,76 +2161,76 @@ const Ar = (e, t) => {
2161
2161
  filterText: {}
2162
2162
  },
2163
2163
  setup(e) {
2164
- const t = e, a = Ut(ua, null);
2165
- let n;
2166
- const r = () => t.filterText ?? t.label, o = () => {
2167
- n?.(), a && (n = a.registerOption(t.value, t.label, r()));
2164
+ const a = e, t = Zt(ga, null);
2165
+ let r;
2166
+ const n = () => a.filterText ?? a.label, i = () => {
2167
+ r?.(), t && (r = t.registerOption(a.value, a.label, n()));
2168
2168
  };
2169
- et(o), De(() => n?.()), ee(() => [t.value, t.label, t.filterText], o);
2170
- const s = v(() => a?.multiple.value ?? !1), i = v(() => a?.isOptionSelected(t.value) ?? !1), l = () => {
2171
- t.disabled || a?.disabled.value || a?.selectOption(t.value, t.label);
2169
+ at(i), xe(() => r?.()), J(() => [a.value, a.label, a.filterText], i);
2170
+ const l = v(() => t?.multiple.value ?? !1), o = v(() => t?.isOptionSelected(a.value) ?? !1), s = () => {
2171
+ a.disabled || t?.disabled.value || t?.selectOption(a.value, a.label);
2172
2172
  }, d = () => {
2173
- l();
2174
- }, c = v(() => a?.filterQuery?.value ?? ""), w = v(() => {
2175
- const O = c.value;
2176
- return O ? r().toLowerCase().includes(O) : !0;
2173
+ s();
2174
+ }, c = v(() => t?.filterQuery?.value ?? ""), w = v(() => {
2175
+ const $ = c.value;
2176
+ return $ ? n().toLowerCase().includes($) : !0;
2177
2177
  });
2178
- return (O, g) => Ne((b(), x("div", {
2179
- class: L(["cregis-select__option", {
2180
- "is-selected": i.value && !s.value,
2178
+ return ($, m) => _e((p(), y("div", {
2179
+ class: W(["cregis-select__option", {
2180
+ "is-selected": o.value && !l.value,
2181
2181
  "is-disabled": e.disabled,
2182
- "cregis-select__option--multiple": s.value
2182
+ "cregis-select__option--multiple": l.value
2183
2183
  }]),
2184
2184
  role: "option",
2185
- "aria-selected": i.value,
2186
- onClick: l
2185
+ "aria-selected": o.value,
2186
+ onClick: s
2187
2187
  }, [
2188
- s.value ? (b(), Oe(Wa, {
2188
+ l.value ? (p(), pe(Ua, {
2189
2189
  key: 0,
2190
- "model-value": i.value,
2191
- disabled: e.disabled || !!ne(a)?.disabled.value,
2192
- onClick: g[0] || (g[0] = _t(() => {
2190
+ "model-value": o.value,
2191
+ disabled: e.disabled || !!Z(t)?.disabled.value,
2192
+ onClick: m[0] || (m[0] = bt(() => {
2193
2193
  }, ["stop"])),
2194
2194
  "onUpdate:modelValue": d
2195
- }, null, 8, ["model-value", "disabled"])) : X("", !0),
2196
- s.value ? (b(), x("div", Fr, [
2197
- K(O.$slots, "default", {
2195
+ }, null, 8, ["model-value", "disabled"])) : j("", !0),
2196
+ l.value ? (p(), y("div", Qr, [
2197
+ G($.$slots, "default", {
2198
2198
  label: e.label,
2199
2199
  value: e.value,
2200
2200
  disabled: !!e.disabled,
2201
- selected: i.value
2201
+ selected: o.value
2202
2202
  }, () => [
2203
- he(I(e.label), 1)
2203
+ ve(M(e.label), 1)
2204
2204
  ])
2205
- ])) : K(O.$slots, "default", {
2205
+ ])) : G($.$slots, "default", {
2206
2206
  key: 2,
2207
2207
  label: e.label,
2208
2208
  value: e.value,
2209
2209
  disabled: !!e.disabled,
2210
- selected: i.value
2210
+ selected: o.value
2211
2211
  }, () => [
2212
- he(I(e.label), 1)
2212
+ ve(M(e.label), 1)
2213
2213
  ])
2214
- ], 10, Ir)), [
2215
- [gt, w.value]
2214
+ ], 10, Gr)), [
2215
+ [wt, w.value]
2216
2216
  ]);
2217
2217
  }
2218
- }), Hr = { class: "cregis-cascader__trigger-label" }, _r = { class: "cregis-cascader__selected" }, qr = {
2218
+ }), Zr = { class: "cregis-cascader__trigger-label" }, Jr = { class: "cregis-cascader__selected" }, ei = {
2219
2219
  key: 1,
2220
2220
  class: "cregis-cascader__placeholder"
2221
- }, Ur = {
2221
+ }, ti = {
2222
2222
  key: 0,
2223
2223
  class: "cregis-cascader__dropdown-empty"
2224
- }, Yr = {
2224
+ }, ai = {
2225
2225
  key: 2,
2226
2226
  class: "cregis-cascader__dropdown-filter-empty"
2227
- }, Xr = { class: "cregis-cascader__dropdown-content" }, Kr = {
2227
+ }, ni = { class: "cregis-cascader__dropdown-content" }, ri = {
2228
2228
  key: 0,
2229
2229
  class: "cregis-cascader__dropdown-item-popover"
2230
- }, Qr = { class: "cregis-cascader__suboption-amount-container" }, Gr = {
2230
+ }, ii = { class: "cregis-cascader__suboption-amount-container" }, oi = {
2231
2231
  key: 0,
2232
2232
  class: "cregis-cascader__suboption-amount"
2233
- }, Zr = { class: "cregis-cascader__suboption-panel" }, Jr = ["onClick"], ei = ["onClick"], pi = /* @__PURE__ */ Q({
2233
+ }, li = { class: "cregis-cascader__suboption-panel" }, si = ["onClick"], ci = ["onClick"], zi = /* @__PURE__ */ Q({
2234
2234
  name: "Cascader",
2235
2235
  __name: "Cascader",
2236
2236
  props: {
@@ -2254,289 +2254,289 @@ const Ar = (e, t) => {
2254
2254
  searchText: { default: "search" }
2255
2255
  },
2256
2256
  emits: ["update:modelValue", "change", "visible-change", "filter-input", "filter-clear"],
2257
- setup(e, { emit: t }) {
2258
- const a = e, n = t, r = Y(null), o = Y(!1);
2259
- let s = null;
2260
- const i = () => {
2261
- s !== null && (clearTimeout(s), s = null);
2262
- }, l = Y(""), d = Y(""), c = v(() => d.value.trim().toLowerCase()), w = () => {
2263
- a.filterable && (i(), s = setTimeout(() => {
2264
- d.value = l.value.trim(), s = null;
2265
- }, a.filterDebounceMs));
2257
+ setup(e, { emit: a }) {
2258
+ const t = e, r = a, n = F(null), i = F(!1);
2259
+ let l = null;
2260
+ const o = () => {
2261
+ l !== null && (clearTimeout(l), l = null);
2262
+ }, s = F(""), d = F(""), c = v(() => d.value.trim().toLowerCase()), w = () => {
2263
+ t.filterable && (o(), l = setTimeout(() => {
2264
+ d.value = s.value.trim(), l = null;
2265
+ }, t.filterDebounceMs));
2266
2266
  };
2267
- ee(l, () => {
2268
- a.filterable && w();
2269
- }), ee(
2270
- () => a.filterable,
2271
- (p) => {
2272
- p || (l.value = "", d.value = "", i());
2267
+ J(s, () => {
2268
+ t.filterable && w();
2269
+ }), J(
2270
+ () => t.filterable,
2271
+ (g) => {
2272
+ g || (s.value = "", d.value = "", o());
2273
2273
  }
2274
- ), De(() => i());
2275
- const O = (p) => {
2276
- n("filter-input", String(p ?? ""));
2277
- }, g = () => {
2278
- d.value = "", i(), n("filter-clear");
2279
- }, y = (p) => (p.filterText ?? p.label).toLowerCase(), $ = (p) => {
2280
- const H = c.value;
2281
- return !H || y(p).includes(H) ? !0 : (p.children ?? []).some((se) => y(se).includes(H));
2282
- }, T = (p, H) => {
2283
- const R = c.value;
2284
- return !R || y(p).includes(R) ? !0 : y(H).includes(R);
2285
- }, B = v(() => a.options.filter((p) => $(p))), z = v(() => a.options.length === 0), N = v(() => (c.value, a.options.some((p) => $(p)))), S = v(
2286
- () => a.filterable && !!d.value.trim() && !N.value && !z.value
2287
- ), C = (p) => {
2288
- o.value = p, n("visible-change", p), !p && a.filterable && (l.value = "", d.value = "", i());
2289
- }, f = Y(null), V = (p) => {
2290
- const H = a.options.find((R) => R.value === p);
2291
- if (H)
2274
+ ), xe(() => o());
2275
+ const $ = (g) => {
2276
+ r("filter-input", String(g ?? ""));
2277
+ }, m = () => {
2278
+ d.value = "", o(), r("filter-clear");
2279
+ }, k = (g) => (g.filterText ?? g.label).toLowerCase(), O = (g) => {
2280
+ const U = c.value;
2281
+ return !U || k(g).includes(U) ? !0 : (g.children ?? []).some((ce) => k(ce).includes(U));
2282
+ }, V = (g, U) => {
2283
+ const L = c.value;
2284
+ return !L || k(g).includes(L) ? !0 : k(U).includes(L);
2285
+ }, x = v(() => t.options.filter((g) => O(g))), B = v(() => t.options.length === 0), R = v(() => (c.value, t.options.some((g) => O(g)))), C = v(
2286
+ () => t.filterable && !!d.value.trim() && !R.value && !B.value
2287
+ ), E = (g) => {
2288
+ i.value = g, r("visible-change", g), !g && t.filterable && (s.value = "", d.value = "", o());
2289
+ }, f = F(null), S = (g) => {
2290
+ const U = t.options.find((L) => L.value === g);
2291
+ if (U)
2292
2292
  return {
2293
2293
  level: 1,
2294
- label: H.label,
2295
- primary: H,
2294
+ label: U.label,
2295
+ primary: U,
2296
2296
  sub: void 0
2297
2297
  };
2298
- for (const R of a.options) {
2299
- const se = R.children?.find((ae) => ae.value === p);
2300
- if (se)
2298
+ for (const L of t.options) {
2299
+ const ce = L.children?.find((ie) => ie.value === g);
2300
+ if (ce)
2301
2301
  return {
2302
2302
  level: 2,
2303
- label: se.label,
2304
- primary: R,
2305
- sub: se
2303
+ label: ce.label,
2304
+ primary: L,
2305
+ sub: ce
2306
2306
  };
2307
2307
  }
2308
2308
  return {
2309
2309
  level: 0,
2310
- label: String(p),
2310
+ label: String(g),
2311
2311
  primary: void 0,
2312
2312
  sub: void 0
2313
2313
  };
2314
- }, E = v(() => {
2315
- const p = a.modelValue;
2316
- return p == null || p === "" ? {
2314
+ }, P = v(() => {
2315
+ const g = t.modelValue;
2316
+ return g == null || g === "" ? {
2317
2317
  level: 0,
2318
2318
  label: "",
2319
2319
  primary: void 0,
2320
2320
  sub: void 0
2321
- } : f.value !== null && f.value.value === p ? {
2321
+ } : f.value !== null && f.value.value === g ? {
2322
2322
  level: f.value.level,
2323
2323
  label: f.value.label,
2324
2324
  primary: f.value.primary,
2325
2325
  sub: f.value.sub
2326
- } : V(p);
2326
+ } : S(g);
2327
2327
  });
2328
- ee(
2329
- () => a.modelValue,
2330
- (p) => {
2331
- if (p == null || p === "") {
2328
+ J(
2329
+ () => t.modelValue,
2330
+ (g) => {
2331
+ if (g == null || g === "") {
2332
2332
  f.value = null;
2333
2333
  return;
2334
2334
  }
2335
- f.value !== null && f.value.value !== p && (f.value = null);
2335
+ f.value !== null && f.value.value !== g && (f.value = null);
2336
2336
  }
2337
2337
  );
2338
- const W = v(() => E.value.level > 0), M = v(() => E.value.label), j = v(() => a.modelValue), k = v(() => M.value), P = v(() => E.value.level), U = v(() => E.value.primary), G = v(() => E.value.sub), u = (p) => (p.children?.length ?? 0) > 0, h = (p) => a.modelValue === p, D = (p) => {
2339
- const H = a.modelValue;
2340
- return H == null || H === "" ? !1 : (p.children ?? []).some((R) => R.value === H);
2341
- }, _ = (p, H) => {
2342
- a.disabled || p.disabled || H.disabled || (f.value = { value: H.value, label: H.label, level: 2, primary: p, sub: H }, n("update:modelValue", H.value), n("change", H.value), r.value?.close());
2343
- }, te = (p) => {
2344
- a.disabled || p.disabled || u(p) || (f.value = { value: p.value, label: p.label, level: 1, primary: p }, n("update:modelValue", p.value), n("change", p.value), r.value?.close());
2345
- }, m = (p) => typeof p == "number" ? `${p}px` : p, F = v(() => {
2346
- if (a.popperWidth !== void 0 && a.popperWidth !== null && a.popperWidth !== "")
2347
- return m(a.popperWidth);
2348
- const p = a.triggerWidth;
2349
- return typeof p == "number" ? `${p + 8}px` : `calc(${p} + 8px)`;
2350
- }), q = v(() => m(a.subPopperWidth)), J = v(() => typeof F.value == "number" ? `${F.value - 12}px` : `calc(${F.value} - 12px)`), pe = v(() => ({
2351
- maxHeight: m(a.maxPopperHeight),
2338
+ const N = v(() => P.value.level > 0), I = v(() => P.value.label), _ = v(() => t.modelValue), T = v(() => I.value), D = v(() => P.value.level), X = v(() => P.value.primary), te = v(() => P.value.sub), u = (g) => (g.children?.length ?? 0) > 0, b = (g) => t.modelValue === g, z = (g) => {
2339
+ const U = t.modelValue;
2340
+ return U == null || U === "" ? !1 : (g.children ?? []).some((L) => L.value === U);
2341
+ }, q = (g, U) => {
2342
+ t.disabled || g.disabled || U.disabled || (f.value = { value: U.value, label: U.label, level: 2, primary: g, sub: U }, r("update:modelValue", U.value), r("change", U.value), n.value?.close());
2343
+ }, re = (g) => {
2344
+ t.disabled || g.disabled || u(g) || (f.value = { value: g.value, label: g.label, level: 1, primary: g }, r("update:modelValue", g.value), r("change", g.value), n.value?.close());
2345
+ }, h = (g) => typeof g == "number" ? `${g}px` : g, H = v(() => {
2346
+ if (t.popperWidth !== void 0 && t.popperWidth !== null && t.popperWidth !== "")
2347
+ return h(t.popperWidth);
2348
+ const g = t.triggerWidth;
2349
+ return typeof g == "number" ? `${g + 8}px` : `calc(${g} + 8px)`;
2350
+ }), Y = v(() => h(t.subPopperWidth)), ae = v(() => typeof H.value == "number" ? `${H.value - 12}px` : `calc(${H.value} - 12px)`), me = v(() => ({
2351
+ maxHeight: h(t.maxPopperHeight),
2352
2352
  overflowY: "auto"
2353
- })), we = { strategy: "fixed" }, Se = v(() => a.align === "center" ? "bottom" : a.align === "left" ? "bottom-start" : "bottom-end"), ge = v(() => ({
2354
- width: m(a.triggerWidth)
2355
- })), Ae = v(() => a.size === "large" ? "20px" : a.size === "medium" ? "14px" : "12px"), _e = Y(0), ze = (p) => {
2356
- const H = p.target;
2357
- _e.value = H.scrollTop;
2358
- }, at = [-16, -8];
2359
- return (p, H) => (b(), x("div", {
2360
- class: L(["cregis-cascader", { "is-disabled": e.disabled }])
2353
+ })), $e = { strategy: "fixed" }, Te = v(() => t.align === "center" ? "bottom" : t.align === "left" ? "bottom-start" : "bottom-end"), be = v(() => ({
2354
+ width: h(t.triggerWidth)
2355
+ })), Re = v(() => t.size === "large" ? "20px" : t.size === "medium" ? "14px" : "12px"), Xe = F(0), Le = (g) => {
2356
+ const U = g.target;
2357
+ Xe.value = U.scrollTop;
2358
+ }, it = [-16, -8];
2359
+ return (g, U) => (p(), y("div", {
2360
+ class: W(["cregis-cascader", { "is-disabled": e.disabled }])
2361
2361
  }, [
2362
- Z(vt, {
2362
+ K(ht, {
2363
2363
  ref_key: "popoverRef",
2364
- ref: r,
2364
+ ref: n,
2365
2365
  "preserve-content-mount": "",
2366
- "popper-width": F.value,
2367
- placement: Se.value,
2366
+ "popper-width": H.value,
2367
+ placement: Te.value,
2368
2368
  offset: e.offset,
2369
2369
  disabled: !!e.disabled,
2370
2370
  padding: 0,
2371
- onVisibleChange: C
2371
+ onVisibleChange: E
2372
2372
  }, {
2373
- reference: re(() => [
2374
- p.$slots.trigger ? K(p.$slots, "trigger", {
2373
+ reference: ee(() => [
2374
+ g.$slots.trigger ? G(g.$slots, "trigger", {
2375
2375
  key: 0,
2376
- modelValue: j.value,
2377
- selectedLabel: k.value,
2378
- level: P.value,
2379
- primaryOption: U.value,
2380
- subOption: G.value,
2376
+ modelValue: _.value,
2377
+ selectedLabel: T.value,
2378
+ level: D.value,
2379
+ primaryOption: X.value,
2380
+ subOption: te.value,
2381
2381
  placeholder: e.placeholder,
2382
- hasSelection: W.value,
2383
- open: o.value,
2382
+ hasSelection: N.value,
2383
+ open: i.value,
2384
2384
  disabled: !!e.disabled
2385
- }) : (b(), x("div", {
2385
+ }) : (p(), y("div", {
2386
2386
  key: 1,
2387
- class: L(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
2388
- style: ce(ge.value)
2387
+ class: W(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
2388
+ style: ne(be.value)
2389
2389
  }, [
2390
- A("div", Hr, [
2391
- W.value ? K(p.$slots, "label", {
2390
+ A("div", Zr, [
2391
+ N.value ? G(g.$slots, "label", {
2392
2392
  key: 0,
2393
- modelValue: j.value,
2394
- selectedLabel: k.value,
2395
- level: P.value,
2396
- primaryOption: U.value,
2397
- subOption: G.value,
2393
+ modelValue: _.value,
2394
+ selectedLabel: T.value,
2395
+ level: D.value,
2396
+ primaryOption: X.value,
2397
+ subOption: te.value,
2398
2398
  placeholder: e.placeholder,
2399
- hasSelection: W.value
2399
+ hasSelection: N.value
2400
2400
  }, () => [
2401
- A("p", _r, I(M.value), 1)
2402
- ]) : (b(), x("p", qr, I(e.placeholder), 1))
2401
+ A("p", Jr, M(I.value), 1)
2402
+ ]) : (p(), y("p", ei, M(e.placeholder), 1))
2403
2403
  ]),
2404
2404
  A("span", {
2405
- class: L(["cregis-cascader__icon", { "is-open": o.value }])
2405
+ class: W(["cregis-cascader__icon", { "is-open": i.value }])
2406
2406
  }, [
2407
- Z(ne(Qt), {
2408
- size: Ae.value,
2407
+ K(Z(aa), {
2408
+ size: Re.value,
2409
2409
  color: e.disabled ? "var(--text-base-quaternary)" : "var(--material-base-secondary)"
2410
2410
  }, null, 8, ["size", "color"])
2411
2411
  ], 2)
2412
2412
  ], 6))
2413
2413
  ]),
2414
- default: re(() => [
2414
+ default: ee(() => [
2415
2415
  A("div", {
2416
- class: L(["cregis-cascader__dropdown", { "is-empty": z.value }]),
2417
- style: ce(pe.value),
2418
- onScroll: ze
2416
+ class: W(["cregis-cascader__dropdown", { "is-empty": B.value }]),
2417
+ style: ne(me.value),
2418
+ onScroll: Le
2419
2419
  }, [
2420
- z.value ? (b(), x("p", Ur, I(e.noDataText), 1)) : X("", !0),
2421
- e.filterable && !z.value ? (b(), x("div", {
2420
+ B.value ? (p(), y("p", ti, M(e.noDataText), 1)) : j("", !0),
2421
+ e.filterable && !B.value ? (p(), y("div", {
2422
2422
  key: 1,
2423
- class: L(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": _e.value > 10 }])
2423
+ class: W(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": Xe.value > 10 }])
2424
2424
  }, [
2425
- Z(Gt, {
2426
- modelValue: l.value,
2427
- "onUpdate:modelValue": H[0] || (H[0] = (R) => l.value = R),
2425
+ K(na, {
2426
+ modelValue: s.value,
2427
+ "onUpdate:modelValue": U[0] || (U[0] = (L) => s.value = L),
2428
2428
  placeholder: e.searchText,
2429
- width: J.value,
2429
+ width: ae.value,
2430
2430
  size: "small",
2431
2431
  clearable: "",
2432
- onInput: O,
2433
- onClear: g
2432
+ onInput: $,
2433
+ onClear: m
2434
2434
  }, {
2435
- prefix: re(() => [
2436
- Z(ne(Kt), { size: "14px" })
2435
+ prefix: ee(() => [
2436
+ K(Z(ta), { size: "14px" })
2437
2437
  ]),
2438
2438
  _: 1
2439
2439
  }, 8, ["modelValue", "placeholder", "width"])
2440
- ], 2)) : X("", !0),
2441
- S.value ? (b(), x("p", Yr, I(e.noMatchText), 1)) : X("", !0),
2442
- A("ul", Xr, [
2443
- (b(!0), x(ct, null, ut(B.value, (R, se) => (b(), x("li", {
2444
- key: R.value,
2445
- class: L(["cregis-cascader__dropdown-item", { "is-disabled": R.disabled }])
2440
+ ], 2)) : j("", !0),
2441
+ C.value ? (p(), y("p", ai, M(e.noMatchText), 1)) : j("", !0),
2442
+ A("ul", ni, [
2443
+ (p(!0), y(ft, null, pt(x.value, (L, ce) => (p(), y("li", {
2444
+ key: L.value,
2445
+ class: W(["cregis-cascader__dropdown-item", { "is-disabled": L.disabled }])
2446
2446
  }, [
2447
- u(R) ? (b(), x("div", Kr, [
2448
- Z(vt, {
2447
+ u(L) ? (p(), y("div", ri, [
2448
+ K(ht, {
2449
2449
  trigger: "hover",
2450
2450
  placement: "right-start",
2451
- offset: at,
2452
- "popover-options": we,
2453
- "popper-width": q.value,
2451
+ offset: it,
2452
+ "popover-options": $e,
2453
+ "popper-width": Y.value,
2454
2454
  padding: 4,
2455
- disabled: !!R.disabled || !!e.disabled
2455
+ disabled: !!L.disabled || !!e.disabled
2456
2456
  }, {
2457
- reference: re(() => [
2457
+ reference: ee(() => [
2458
2458
  A("div", {
2459
- class: L(["cregis-cascader__suboption-trigger", {
2460
- "is-disabled": R.disabled,
2461
- "is-parent-active": D(R)
2459
+ class: W(["cregis-cascader__suboption-trigger", {
2460
+ "is-disabled": L.disabled,
2461
+ "is-parent-active": z(L)
2462
2462
  }])
2463
2463
  }, [
2464
- K(p.$slots, "option", {
2465
- modelValue: j.value,
2466
- selectedLabel: k.value,
2467
- level: P.value,
2468
- primaryOption: U.value,
2469
- subOption: G.value,
2470
- option: R,
2471
- index: se,
2472
- disabled: !!R.disabled,
2473
- selected: h(R.value),
2474
- isParentOfSelected: D(R)
2464
+ G(g.$slots, "option", {
2465
+ modelValue: _.value,
2466
+ selectedLabel: T.value,
2467
+ level: D.value,
2468
+ primaryOption: X.value,
2469
+ subOption: te.value,
2470
+ option: L,
2471
+ index: ce,
2472
+ disabled: !!L.disabled,
2473
+ selected: b(L.value),
2474
+ isParentOfSelected: z(L)
2475
2475
  }, () => [
2476
- A("p", null, I(R.label), 1)
2476
+ A("p", null, M(L.label), 1)
2477
2477
  ]),
2478
- A("div", Qr, [
2479
- e.showSubOptionAmount ? (b(), x("div", Gr, I(R.children.length), 1)) : X("", !0),
2480
- Z(ne(xa), {
2478
+ A("div", ii, [
2479
+ e.showSubOptionAmount ? (p(), y("div", oi, M(L.children.length), 1)) : j("", !0),
2480
+ K(Z(Ta), {
2481
2481
  size: "14px",
2482
2482
  color: "currentColor"
2483
2483
  })
2484
2484
  ])
2485
2485
  ], 2)
2486
2486
  ]),
2487
- default: re(() => [
2488
- A("div", Zr, [
2489
- (b(!0), x(ct, null, ut(R.children, (ae, nt) => Ne((b(), x("div", {
2490
- key: ae.value,
2491
- class: L(["cregis-cascader__suboption-row", {
2492
- "is-active": h(ae.value),
2493
- "is-disabled": ae.disabled
2487
+ default: ee(() => [
2488
+ A("div", li, [
2489
+ (p(!0), y(ft, null, pt(L.children, (ie, ot) => _e((p(), y("div", {
2490
+ key: ie.value,
2491
+ class: W(["cregis-cascader__suboption-row", {
2492
+ "is-active": b(ie.value),
2493
+ "is-disabled": ie.disabled
2494
2494
  }]),
2495
2495
  role: "menuitem",
2496
- onClick: (Ot) => _(R, ae)
2496
+ onClick: (Vt) => q(L, ie)
2497
2497
  }, [
2498
- K(p.$slots, "subOption", {
2499
- modelValue: j.value,
2500
- selectedLabel: k.value,
2501
- level: P.value,
2502
- primaryOption: U.value,
2503
- subOption: G.value,
2504
- option: ae,
2505
- index: nt,
2506
- parent: R,
2507
- parentIndex: se,
2508
- selected: h(ae.value),
2509
- disabled: !!ae.disabled
2498
+ G(g.$slots, "subOption", {
2499
+ modelValue: _.value,
2500
+ selectedLabel: T.value,
2501
+ level: D.value,
2502
+ primaryOption: X.value,
2503
+ subOption: te.value,
2504
+ option: ie,
2505
+ index: ot,
2506
+ parent: L,
2507
+ parentIndex: ce,
2508
+ selected: b(ie.value),
2509
+ disabled: !!ie.disabled
2510
2510
  }, () => [
2511
- he(I(ae.label), 1)
2511
+ ve(M(ie.label), 1)
2512
2512
  ])
2513
- ], 10, Jr)), [
2514
- [gt, T(R, ae)]
2513
+ ], 10, si)), [
2514
+ [wt, V(L, ie)]
2515
2515
  ])), 128))
2516
2516
  ])
2517
2517
  ]),
2518
2518
  _: 2
2519
2519
  }, 1032, ["popper-width", "disabled"])
2520
- ])) : (b(), x("div", {
2520
+ ])) : (p(), y("div", {
2521
2521
  key: 1,
2522
2522
  class: "cregis-cascader__leaf-only",
2523
- onClick: (ae) => te(R)
2523
+ onClick: (ie) => re(L)
2524
2524
  }, [
2525
- K(p.$slots, "option", {
2526
- modelValue: j.value,
2527
- selectedLabel: k.value,
2528
- level: P.value,
2529
- primaryOption: U.value,
2530
- subOption: G.value,
2531
- option: R,
2532
- index: se,
2533
- disabled: !!R.disabled,
2534
- selected: h(R.value),
2525
+ G(g.$slots, "option", {
2526
+ modelValue: _.value,
2527
+ selectedLabel: T.value,
2528
+ level: D.value,
2529
+ primaryOption: X.value,
2530
+ subOption: te.value,
2531
+ option: L,
2532
+ index: ce,
2533
+ disabled: !!L.disabled,
2534
+ selected: b(L.value),
2535
2535
  isParentOfSelected: !1
2536
2536
  }, () => [
2537
- A("p", null, I(R.label), 1)
2537
+ A("p", null, M(L.label), 1)
2538
2538
  ])
2539
- ], 8, ei))
2539
+ ], 8, ci))
2540
2540
  ], 2))), 128))
2541
2541
  ])
2542
2542
  ], 38)
@@ -2545,7 +2545,7 @@ const Ar = (e, t) => {
2545
2545
  }, 8, ["popper-width", "placement", "offset", "disabled"])
2546
2546
  ], 2));
2547
2547
  }
2548
- }), vi = /* @__PURE__ */ Q({
2548
+ }), Ri = /* @__PURE__ */ Q({
2549
2549
  name: "Tag",
2550
2550
  __name: "Tag",
2551
2551
  props: {
@@ -2554,15 +2554,15 @@ const Ar = (e, t) => {
2554
2554
  text: {}
2555
2555
  },
2556
2556
  setup(e) {
2557
- return (t, a) => (b(), x("div", {
2558
- class: L(["cregis-tag", [`cregis-tag--${e.type}`, `cregis-tag--${e.size}`]])
2557
+ return (a, t) => (p(), y("div", {
2558
+ class: W(["cregis-tag", [`cregis-tag--${e.type}`, `cregis-tag--${e.size}`]])
2559
2559
  }, [
2560
- K(t.$slots, "default", {}, () => [
2561
- he(I(e.text), 1)
2560
+ G(a.$slots, "default", {}, () => [
2561
+ ve(M(e.text), 1)
2562
2562
  ])
2563
2563
  ], 2));
2564
2564
  }
2565
- }), mi = /* @__PURE__ */ Q({
2565
+ }), Li = /* @__PURE__ */ Q({
2566
2566
  name: "Switch",
2567
2567
  __name: "Switch",
2568
2568
  props: {
@@ -2574,38 +2574,38 @@ const Ar = (e, t) => {
2574
2574
  beforeChange: {}
2575
2575
  },
2576
2576
  emits: ["update:modelValue", "change"],
2577
- setup(e, { emit: t }) {
2578
- const a = e, n = t, r = Y(!1), o = v(() => a.modelValue === a.activeValue), s = async () => {
2579
- if (a.disabled || r.value) return;
2580
- const i = o.value ? a.inactiveValue : a.activeValue;
2581
- if (a.beforeChange) {
2582
- r.value = !0;
2577
+ setup(e, { emit: a }) {
2578
+ const t = e, r = a, n = F(!1), i = v(() => t.modelValue === t.activeValue), l = async () => {
2579
+ if (t.disabled || n.value) return;
2580
+ const o = i.value ? t.inactiveValue : t.activeValue;
2581
+ if (t.beforeChange) {
2582
+ n.value = !0;
2583
2583
  try {
2584
- if (!await a.beforeChange()) return;
2584
+ if (!await t.beforeChange()) return;
2585
2585
  } catch {
2586
2586
  return;
2587
2587
  } finally {
2588
- r.value = !1;
2588
+ n.value = !1;
2589
2589
  }
2590
2590
  }
2591
- n("update:modelValue", i);
2591
+ r("update:modelValue", o);
2592
2592
  };
2593
- return ee(
2594
- () => a.modelValue,
2595
- (i) => {
2596
- n("change", i);
2593
+ return J(
2594
+ () => t.modelValue,
2595
+ (o) => {
2596
+ r("change", o);
2597
2597
  }
2598
- ), (i, l) => (b(), x("div", {
2599
- class: L(["cregis-switch", [
2598
+ ), (o, s) => (p(), y("div", {
2599
+ class: W(["cregis-switch", [
2600
2600
  `cregis-switch--${e.size}`,
2601
- { "is-checked": o.value, "is-disabled": e.disabled || r.value }
2601
+ { "is-checked": i.value, "is-disabled": e.disabled || n.value }
2602
2602
  ]]),
2603
- onClick: s
2604
- }, [...l[0] || (l[0] = [
2603
+ onClick: l
2604
+ }, [...s[0] || (s[0] = [
2605
2605
  A("div", { class: "cregis-switch__circle" }, null, -1)
2606
2606
  ])], 2));
2607
2607
  }
2608
- }), ti = { class: "cregis-badge__wrapper" }, gi = /* @__PURE__ */ Q({
2608
+ }), ui = { class: "cregis-badge__wrapper" }, Wi = /* @__PURE__ */ Q({
2609
2609
  name: "Badge",
2610
2610
  __name: "Badge",
2611
2611
  props: {
@@ -2617,41 +2617,370 @@ const Ar = (e, t) => {
2617
2617
  offset: {}
2618
2618
  },
2619
2619
  setup(e) {
2620
- const t = {
2620
+ const a = {
2621
2621
  normal: [-8, -10],
2622
2622
  dot: [-2, -2]
2623
- }, a = e, n = v(() => a.offset ?? (a.isDot ? t.dot : t.normal)), r = v(() => ({
2624
- top: `${n.value[0]}px`,
2625
- right: `${n.value[1]}px`
2623
+ }, t = e, r = v(() => t.offset ?? (t.isDot ? a.dot : a.normal)), n = v(() => ({
2624
+ top: `${r.value[0]}px`,
2625
+ right: `${r.value[1]}px`
2626
2626
  }));
2627
- return (o, s) => (b(), x("div", ti, [
2628
- e.hidden ? X("", !0) : (b(), x("div", {
2627
+ return (i, l) => (p(), y("div", ui, [
2628
+ e.hidden ? j("", !0) : (p(), y("div", {
2629
2629
  key: 0,
2630
- class: L(["cregis-badge", [`cregis-badge--${e.type}`, { "cregis-badge--dot": e.isDot }]]),
2631
- style: ce(r.value)
2632
- }, I(e.isDot ? "" : Number(e.value) > e.max ? `${e.max}+` : e.value), 7)),
2633
- K(o.$slots, "default")
2630
+ class: W(["cregis-badge", [`cregis-badge--${e.type}`, { "cregis-badge--dot": e.isDot }]]),
2631
+ style: ne(n.value)
2632
+ }, M(e.isDot ? "" : Number(e.value) > e.max ? `${e.max}+` : e.value), 7)),
2633
+ G(i.$slots, "default")
2634
2634
  ]));
2635
2635
  }
2636
+ }), di = ["accept", "disabled"], fi = ["src"], pi = {
2637
+ key: 2,
2638
+ class: "cregis-upload__mask"
2639
+ }, Mi = /* @__PURE__ */ Q({
2640
+ name: "Upload",
2641
+ __name: "Upload",
2642
+ props: {
2643
+ modelValue: {},
2644
+ accept: {},
2645
+ size: {},
2646
+ width: { default: 72 },
2647
+ disabled: { type: Boolean },
2648
+ exceedAcceptTip: {},
2649
+ exceedSizeTip: {},
2650
+ onChange: {}
2651
+ },
2652
+ emits: ["update:modelValue"],
2653
+ setup(e, { emit: a }) {
2654
+ const t = e, r = a, n = F(0), i = F(""), l = ["http:", "https:", "blob:"], o = (x) => {
2655
+ if (!x) return !1;
2656
+ if (x.toLowerCase().startsWith("data:image/")) return !0;
2657
+ try {
2658
+ const { protocol: B } = new URL(x, window.location.origin);
2659
+ return l.includes(B);
2660
+ } catch {
2661
+ return x.startsWith("/") && !x.startsWith("//");
2662
+ }
2663
+ }, s = v(() => o(i.value) ? i.value : ""), d = v(() => ({
2664
+ width: typeof t.width == "number" ? `${t.width}px` : t.width,
2665
+ height: typeof t.width == "number" ? `${t.width}px` : t.width
2666
+ })), c = (x) => {
2667
+ const B = x.lastIndexOf(".");
2668
+ return B === -1 ? "" : x.slice(B + 1).toLowerCase();
2669
+ }, w = (x, B) => {
2670
+ const R = B.split(",").map((f) => f.trim()).filter(Boolean);
2671
+ if (!R.length) return !0;
2672
+ const C = c(x.name), E = x.type.toLowerCase();
2673
+ return R.some((f) => {
2674
+ const S = f.toLowerCase();
2675
+ return S.startsWith(".") ? C === S.slice(1) : S.includes("/") ? S.endsWith("/*") ? E.startsWith(S.slice(0, -1)) : E === S : C === S;
2676
+ });
2677
+ }, $ = (x) => {
2678
+ x.value = "";
2679
+ };
2680
+ let m;
2681
+ const k = (x) => {
2682
+ const B = x.target, R = B.files?.[0];
2683
+ if (!R) return;
2684
+ if (t.accept && !w(R, t.accept)) {
2685
+ Lt(t.exceedAcceptTip ?? "The file format does not meet the requirements."), $(B);
2686
+ return;
2687
+ }
2688
+ if (t.size !== void 0 && R.size > t.size * 1024 * 1024) {
2689
+ Lt(t.exceedSizeTip ?? `The file size cannot exceed ${t.size} MB.`), $(B);
2690
+ return;
2691
+ }
2692
+ r("update:modelValue", "");
2693
+ const C = new FormData();
2694
+ C.append("file", R, R.name), t.onChange?.(C), m = setInterval(() => {
2695
+ n.value += 30, n.value >= 90 && clearInterval(m);
2696
+ }, 200);
2697
+ };
2698
+ J(
2699
+ () => t.modelValue,
2700
+ (x) => {
2701
+ x ? (n.value = 100, i.value = x) : (n.value = 0, i.value = "");
2702
+ },
2703
+ {
2704
+ immediate: !0
2705
+ }
2706
+ );
2707
+ const O = v(() => ({
2708
+ width: `${n.value}%`,
2709
+ borderRadius: n.value === 100 ? "0 0 6px 6px" : "0 0 0 6px"
2710
+ })), V = v(() => t.disabled || n.value > 0 && n.value < 100);
2711
+ return xe(() => {
2712
+ m && clearInterval(m);
2713
+ }), (x, B) => (p(), y("div", {
2714
+ class: W(["cregis-upload", { "cregis-upload--disabled": V.value }]),
2715
+ style: ne(d.value)
2716
+ }, [
2717
+ K(Z(Rt), {
2718
+ size: "16px",
2719
+ color: "var(--stroke-base-secondary)"
2720
+ }),
2721
+ A("input", {
2722
+ type: "file",
2723
+ title: "",
2724
+ accept: e.accept,
2725
+ disabled: V.value,
2726
+ onChange: k
2727
+ }, null, 40, di),
2728
+ n.value > 0 && n.value < 100 ? (p(), y("div", {
2729
+ key: 0,
2730
+ class: "cregis-upload__progress",
2731
+ style: ne(O.value)
2732
+ }, null, 4)) : j("", !0),
2733
+ s.value ? (p(), y("img", {
2734
+ key: 1,
2735
+ src: s.value,
2736
+ alt: ""
2737
+ }, null, 8, fi)) : j("", !0),
2738
+ s.value ? (p(), y("div", pi, [
2739
+ K(Z(Rt), {
2740
+ size: "16px",
2741
+ color: "var(--text-same-white-primary)"
2742
+ })
2743
+ ])) : j("", !0)
2744
+ ], 6));
2745
+ }
2636
2746
  });
2747
+ let Ie = 0, ha = "";
2748
+ const vi = () => {
2749
+ Ie === 0 && (ha = document.body.style.overflow, document.body.style.overflow = "hidden"), Ie++;
2750
+ }, Kt = () => {
2751
+ Ie <= 0 || (Ie--, Ie === 0 && (document.body.style.overflow = ha));
2752
+ }, tt = /* @__PURE__ */ Q({
2753
+ name: "Dialog",
2754
+ __name: "Dialog",
2755
+ props: {
2756
+ modelValue: { type: Boolean, default: !1 },
2757
+ width: { default: "50%" },
2758
+ top: { default: "20vh" },
2759
+ alignCenter: { type: Boolean, default: !1 },
2760
+ showClose: { type: Boolean, default: !0 },
2761
+ closeOnClickModal: { type: Boolean, default: !0 },
2762
+ modal: { type: Boolean, default: !0 },
2763
+ lockScroll: { type: Boolean, default: !0 }
2764
+ },
2765
+ emits: ["update:modelValue", "after-leave"],
2766
+ setup(e, { emit: a }) {
2767
+ const t = e, r = a;
2768
+ let n = !1;
2769
+ J(() => [t.modelValue, t.lockScroll], () => {
2770
+ const w = t.modelValue && t.lockScroll;
2771
+ w && !n ? (vi(), n = !0) : !w && n && (Kt(), n = !1);
2772
+ }, { immediate: !0 }), xe(() => {
2773
+ n && (Kt(), n = !1);
2774
+ });
2775
+ const l = v(() => ({
2776
+ width: typeof t.width == "number" ? `${t.width}px` : t.width
2777
+ })), o = v(() => {
2778
+ if (!t.alignCenter)
2779
+ return {
2780
+ paddingTop: t.top
2781
+ };
2782
+ }), s = () => {
2783
+ r("update:modelValue", !1);
2784
+ }, d = () => {
2785
+ t.closeOnClickModal && s();
2786
+ }, c = () => {
2787
+ r("after-leave");
2788
+ };
2789
+ return (w, $) => (p(), pe(ea, { to: "body" }, [
2790
+ K(nt, {
2791
+ name: "cregis-dialog-fade",
2792
+ onAfterLeave: c
2793
+ }, {
2794
+ default: ee(() => [
2795
+ e.modelValue ? (p(), y("div", {
2796
+ key: 0,
2797
+ class: W(["cregis-dialog__wrapper", {
2798
+ "cregis-dialog__wrapper--center": e.alignCenter,
2799
+ "cregis-dialog__wrapper--no-modal": !e.modal
2800
+ }]),
2801
+ style: ne(o.value)
2802
+ }, [
2803
+ e.modal ? (p(), y("div", {
2804
+ key: 0,
2805
+ class: "cregis-dialog__mask",
2806
+ onClick: d
2807
+ })) : j("", !0),
2808
+ A("div", {
2809
+ class: "cregis-dialog",
2810
+ style: ne(l.value),
2811
+ onClick: $[0] || ($[0] = bt(() => {
2812
+ }, ["stop"]))
2813
+ }, [
2814
+ e.showClose ? (p(), y("div", {
2815
+ key: 0,
2816
+ class: "cregis-dialog__close",
2817
+ onClick: s
2818
+ }, [
2819
+ K(Z(Va), {
2820
+ size: "10px",
2821
+ color: "var(--material-same-white-primary)"
2822
+ })
2823
+ ])) : j("", !0),
2824
+ G(w.$slots, "default")
2825
+ ], 4)
2826
+ ], 6)) : j("", !0)
2827
+ ]),
2828
+ _: 3
2829
+ })
2830
+ ]));
2831
+ }
2832
+ }), mi = { class: "cregis-dialog-confirm" }, gi = { class: "cregis-dialog-confirm__icon-wrapper" }, hi = { class: "cregis-dialog-confirm__icon" }, bi = {
2833
+ key: 0,
2834
+ class: "cregis-dialog-confirm__title"
2835
+ }, yi = {
2836
+ key: 1,
2837
+ class: "cregis-dialog-confirm__message"
2838
+ }, wi = { class: "cregis-dialog-confirm__footer" }, xi = /* @__PURE__ */ Q({
2839
+ name: "ConfirmDialog",
2840
+ __name: "ConfirmDialog",
2841
+ props: {
2842
+ title: {},
2843
+ message: {},
2844
+ confirmButtonText: { default: "Confirm" },
2845
+ cancelButtonText: { default: "Cancel" },
2846
+ showConfirmButton: { type: Boolean, default: !0 },
2847
+ showCancelButton: { type: Boolean, default: !0 },
2848
+ closeOnClickModal: { type: Boolean, default: !0 },
2849
+ lockScroll: { type: Boolean, default: !0 },
2850
+ width: { default: "280px" },
2851
+ onConfirm: {},
2852
+ onCancel: {}
2853
+ },
2854
+ emits: ["after-leave"],
2855
+ setup(e, { emit: a }) {
2856
+ const t = e, r = a, n = F(!1), i = F(null), l = F(null), o = async (w) => {
2857
+ if (!i.value) {
2858
+ i.value = w;
2859
+ try {
2860
+ await (w === "confirm" ? t.onConfirm : t.onCancel)?.(), l.value = w, n.value = !1;
2861
+ } catch {
2862
+ i.value = null;
2863
+ }
2864
+ }
2865
+ }, s = () => o("confirm"), d = () => o("cancel"), c = () => {
2866
+ l.value || t.onCancel?.(), i.value = null, l.value = null, r("after-leave");
2867
+ };
2868
+ return Fe(() => {
2869
+ n.value = !0;
2870
+ }), (w, $) => (p(), pe(tt, {
2871
+ modelValue: n.value,
2872
+ "onUpdate:modelValue": $[0] || ($[0] = (m) => n.value = m),
2873
+ width: e.width,
2874
+ "show-close": !1,
2875
+ "close-on-click-modal": e.closeOnClickModal,
2876
+ "lock-scroll": e.lockScroll,
2877
+ onAfterLeave: c
2878
+ }, {
2879
+ default: ee(() => [
2880
+ A("div", mi, [
2881
+ A("div", gi, [
2882
+ A("div", hi, [
2883
+ K(Z(Ba), {
2884
+ "stroke-width": 3.4,
2885
+ size: "24px",
2886
+ color: "var(--text-base-primary)"
2887
+ })
2888
+ ])
2889
+ ]),
2890
+ e.title ? (p(), y("div", bi, M(e.title), 1)) : j("", !0),
2891
+ e.message ? (p(), y("div", yi, M(e.message), 1)) : j("", !0),
2892
+ A("div", wi, [
2893
+ e.showConfirmButton ? (p(), pe(Be, {
2894
+ key: 0,
2895
+ type: "foreground",
2896
+ block: "",
2897
+ loading: i.value === "confirm",
2898
+ onClick: s
2899
+ }, {
2900
+ default: ee(() => [
2901
+ ve(M(e.confirmButtonText), 1)
2902
+ ]),
2903
+ _: 1
2904
+ }, 8, ["loading"])) : j("", !0),
2905
+ e.showCancelButton ? (p(), pe(Be, {
2906
+ key: 1,
2907
+ type: "secondary",
2908
+ text: "",
2909
+ block: "",
2910
+ loading: i.value === "cancel",
2911
+ onClick: d
2912
+ }, {
2913
+ default: ee(() => [
2914
+ ve(M(e.cancelButtonText), 1)
2915
+ ]),
2916
+ _: 1
2917
+ }, 8, ["loading"])) : j("", !0)
2918
+ ])
2919
+ ])
2920
+ ]),
2921
+ _: 1
2922
+ }, 8, ["modelValue", "width", "close-on-click-modal", "lock-scroll"]));
2923
+ }
2924
+ });
2925
+ function ki(e) {
2926
+ return typeof e == "string" ? { message: e } : e;
2927
+ }
2928
+ function $i(e) {
2929
+ return new Promise((a, t) => {
2930
+ const r = ki(e), n = document.createElement("div");
2931
+ document.body.appendChild(n);
2932
+ const i = () => {
2933
+ Ee(null, n), n.remove();
2934
+ };
2935
+ let l = !1;
2936
+ const o = () => {
2937
+ l || (l = !0, a());
2938
+ }, s = (d) => {
2939
+ l || (l = !0, t(d));
2940
+ };
2941
+ Ee(
2942
+ yt(xi, {
2943
+ ...r,
2944
+ onConfirm: async () => {
2945
+ await r.onConfirm?.(), o();
2946
+ },
2947
+ onCancel: async () => {
2948
+ await r.onCancel?.(), s("cancel");
2949
+ },
2950
+ onAfterLeave: () => {
2951
+ i(), l || s("cancel");
2952
+ }
2953
+ }),
2954
+ n
2955
+ );
2956
+ });
2957
+ }
2958
+ const ba = tt;
2959
+ ba.install = (e) => {
2960
+ e.component(tt.name, tt);
2961
+ };
2962
+ ba.confirm = $i;
2637
2963
  export {
2638
- gi as Badge,
2639
- Ye as Button,
2640
- pi as Cascader,
2641
- Wa as Checkbox,
2642
- ii as Divider,
2643
- Gt as Input,
2644
- si as Message,
2645
- ci as Notification,
2646
- fi as Option,
2647
- vt as Popover,
2648
- ui as Progress,
2649
- ri as Radio,
2650
- di as Select,
2651
- mi as Switch,
2652
- Zt as TABS_KEY,
2653
- li as TabPane,
2654
- oi as Tabs,
2655
- vi as Tag,
2656
- ua as selectInjectKey
2964
+ Wi as Badge,
2965
+ Be as Button,
2966
+ zi as Cascader,
2967
+ Ua as Checkbox,
2968
+ ba as Dialog,
2969
+ Ti as Divider,
2970
+ na as Input,
2971
+ Lt as Message,
2972
+ Ei as Notification,
2973
+ Pi as Option,
2974
+ ht as Popover,
2975
+ Ai as Progress,
2976
+ Si as Radio,
2977
+ Di as Select,
2978
+ Li as Switch,
2979
+ ra as TABS_KEY,
2980
+ Bi as TabPane,
2981
+ Vi as Tabs,
2982
+ Ri as Tag,
2983
+ Mi as Upload,
2984
+ $i as confirm,
2985
+ ga as selectInjectKey
2657
2986
  };