@cregis/ui 0.2.13 → 0.2.16

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