@squirrel-cloud/ui-vue 0.2.1 → 0.2.3

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,15 +1,15 @@
1
- import { createElementBlock as k, openBlock as C, createElementVNode as J, defineComponent as H, computed as b, normalizeClass as X, createVNode as Xt, unref as I, withCtx as ft, createBlock as Q, createCommentVNode as it, renderSlot as T, resolveDynamicComponent as xt, useSlots as jt, toDisplayString as le, mergeModels as bt, useModel as Ut, useTemplateRef as St, withDirectives as Yt, vModelText as ce, ref as nt, shallowRef as ae, watch as wt, getCurrentScope as ue, onScopeDispose as fe, shallowReadonly as Y, onBeforeUnmount as de, Fragment as pe, withModifiers as Pt, Teleport as me, Transition as he, normalizeStyle as Kt, vShow as ge } from "vue";
1
+ import { createElementBlock as _, openBlock as C, createElementVNode as J, defineComponent as M, computed as w, normalizeClass as D, createVNode as Xt, unref as H, withCtx as ft, createBlock as Q, createCommentVNode as st, renderSlot as T, resolveDynamicComponent as xt, useSlots as Ut, toDisplayString as le, mergeModels as bt, useModel as Yt, useTemplateRef as St, withDirectives as Kt, vModelText as ce, ref as nt, shallowRef as ae, watch as yt, getCurrentScope as ue, onScopeDispose as fe, shallowReadonly as Y, onBeforeUnmount as de, Fragment as pe, withModifiers as qt, Teleport as me, Transition as he, normalizeStyle as At, vShow as ge } from "vue";
2
2
  const ve = (t, e) => {
3
3
  const n = t.__vccOpts || t;
4
- for (const [o, i] of e)
5
- n[o] = i;
4
+ for (const [o, s] of e)
5
+ n[o] = s;
6
6
  return n;
7
- }, we = {}, ye = {
7
+ }, ye = {}, we = {
8
8
  class: "sq-icon is-loading",
9
9
  "data-icon": "loading"
10
10
  };
11
11
  function xe(t, e) {
12
- return C(), k("span", ye, e[0] || (e[0] = [
12
+ return C(), _("span", we, e[0] || (e[0] = [
13
13
  J("svg", {
14
14
  viewBox: "0 0 48 48",
15
15
  version: "1.1",
@@ -23,7 +23,7 @@ function xe(t, e) {
23
23
  ], -1)
24
24
  ]));
25
25
  }
26
- const be = /* @__PURE__ */ ve(we, [["render", xe]]), Se = ["disabled"], On = /* @__PURE__ */ H({
26
+ const be = /* @__PURE__ */ ve(ye, [["render", xe]]), Se = ["disabled"], On = /* @__PURE__ */ M({
27
27
  __name: "SqButton",
28
28
  props: {
29
29
  type: {},
@@ -35,20 +35,20 @@ const be = /* @__PURE__ */ ve(we, [["render", xe]]), Se = ["disabled"], On = /*
35
35
  size: { default: "md" }
36
36
  },
37
37
  setup(t) {
38
- const e = t, n = b(() => {
39
- const s = [];
40
- return e.size !== "md" && s.push(`sq-button--${e.size}`), e.type && s.push(`is-${e.type}`), e.round && s.push("is-round"), e.text && s.push("is-text"), s;
41
- }), o = b(() => e.loading ? be : e.icon), i = b(() => e.loading || e.disabled);
42
- return (s, r) => (C(), k("button", {
43
- class: X(["sq-button", n.value]),
44
- disabled: i.value
38
+ const e = t, n = w(() => {
39
+ const i = [];
40
+ return e.size !== "md" && i.push(`sq-button--${e.size}`), e.type && i.push(`is-${e.type}`), e.round && i.push("is-round"), e.text && i.push("is-text"), i;
41
+ }), o = w(() => e.loading ? be : e.icon), s = w(() => e.loading || e.disabled);
42
+ return (i, r) => (C(), _("button", {
43
+ class: D(["sq-button", n.value]),
44
+ disabled: s.value
45
45
  }, [
46
- Xt(I(kt), {
46
+ Xt(H(kt), {
47
47
  size: e.size
48
48
  }, {
49
49
  default: ft(() => [
50
- o.value ? (C(), Q(xt(o.value), { key: 0 })) : it("", !0),
51
- T(s.$slots, "default")
50
+ o.value ? (C(), Q(xt(o.value), { key: 0 })) : st("", !0),
51
+ T(i.$slots, "default")
52
52
  ]),
53
53
  _: 3
54
54
  }, 8, ["size"])
@@ -57,38 +57,38 @@ const be = /* @__PURE__ */ ve(we, [["render", xe]]), Se = ["disabled"], On = /*
57
57
  }), Re = { class: "sq-card" }, Ce = {
58
58
  key: 0,
59
59
  class: "sq-card-header"
60
- }, Ae = ["textContent"], Le = {
60
+ }, Le = ["textContent"], Ae = {
61
61
  key: 1,
62
62
  class: "sq-card-footer"
63
- }, Tn = /* @__PURE__ */ H({
63
+ }, _n = /* @__PURE__ */ M({
64
64
  __name: "SqCard",
65
65
  props: {
66
66
  title: {},
67
67
  decorative: { type: Boolean, default: !1 }
68
68
  },
69
69
  setup(t) {
70
- const e = jt(), n = t;
71
- return (o, i) => (C(), k("div", Re, [
72
- n.title || I(e).title ? (C(), k("div", Ce, [
70
+ const e = Ut(), n = t;
71
+ return (o, s) => (C(), _("div", Re, [
72
+ n.title || H(e).title ? (C(), _("div", Ce, [
73
73
  J("h2", {
74
- class: X({ "has-decorative": n.decorative }),
74
+ class: D({ "has-decorative": n.decorative }),
75
75
  textContent: le(n.title)
76
- }, null, 10, Ae),
76
+ }, null, 10, Le),
77
77
  T(o.$slots, "title")
78
- ])) : it("", !0),
78
+ ])) : st("", !0),
79
79
  T(o.$slots, "default"),
80
- I(e).footer ? (C(), k("div", Le, [
80
+ H(e).footer ? (C(), _("div", Ae, [
81
81
  T(o.$slots, "footer")
82
- ])) : it("", !0)
82
+ ])) : st("", !0)
83
83
  ]));
84
84
  }
85
85
  }), Oe = {
86
86
  key: 0,
87
87
  class: "sq-input-prefix"
88
- }, Te = ["disabled", "readonly"], Ee = {
88
+ }, _e = ["disabled", "readonly"], Te = {
89
89
  key: 1,
90
90
  class: "sq-input-suffix"
91
- }, En = /* @__PURE__ */ H({
91
+ }, Tn = /* @__PURE__ */ M({
92
92
  __name: "SqInput",
93
93
  props: /* @__PURE__ */ bt({
94
94
  status: {},
@@ -105,13 +105,13 @@ const be = /* @__PURE__ */ ve(we, [["render", xe]]), Se = ["disabled"], On = /*
105
105
  }),
106
106
  emits: /* @__PURE__ */ bt(["focus", "blur", "input", "change"], ["update:value"]),
107
107
  setup(t, { expose: e, emit: n }) {
108
- const o = jt(), i = n, s = t, r = Ut(t, "value"), l = St("inputRef"), a = b(() => {
108
+ const o = Ut(), s = n, i = t, r = Yt(t, "value"), l = St("inputRef"), a = w(() => {
109
109
  const p = [];
110
- return s.size !== "md" && p.push(`sq-input--${s.size}`), s.status && p.push(`is-${s.status}`), s.round && p.push("is-round"), s.disabled && p.push("is-disabled"), p;
111
- }), c = b(() => o.prefix || s.prefixIcon), u = b(() => {
112
- const p = s.showStatusIcon && s.status;
113
- return o.suffix || p || s.suffixIcon;
114
- }), f = b(() => s.suffixIcon);
110
+ return i.size !== "md" && p.push(`sq-input--${i.size}`), i.status && p.push(`is-${i.status}`), i.round && p.push("is-round"), i.disabled && p.push("is-disabled"), p;
111
+ }), c = w(() => o.prefix || i.prefixIcon), u = w(() => {
112
+ const p = i.showStatusIcon && i.status;
113
+ return o.suffix || p || i.suffixIcon;
114
+ }), f = w(() => i.suffixIcon);
115
115
  function m() {
116
116
  var p;
117
117
  (p = l.value) == null || p.focus();
@@ -120,48 +120,48 @@ const be = /* @__PURE__ */ ve(we, [["render", xe]]), Se = ["disabled"], On = /*
120
120
  var p;
121
121
  (p = l.value) == null || p.blur();
122
122
  }
123
- return e({ focus: m, blur: d }), (p, h) => (C(), k("section", {
124
- class: X(["sq-input", a.value])
123
+ return e({ focus: m, blur: d }), (p, h) => (C(), _("section", {
124
+ class: D(["sq-input", a.value])
125
125
  }, [
126
- c.value ? (C(), k("span", Oe, [
126
+ c.value ? (C(), _("span", Oe, [
127
127
  T(p.$slots, "prefix", {}, () => [
128
- (C(), Q(xt(s.prefixIcon)))
128
+ (C(), Q(xt(i.prefixIcon)))
129
129
  ])
130
- ])) : it("", !0),
131
- Yt(J("input", {
130
+ ])) : st("", !0),
131
+ Kt(J("input", {
132
132
  "onUpdate:modelValue": h[0] || (h[0] = (g) => r.value = g),
133
133
  class: "sq-input-inner",
134
- disabled: s.disabled,
135
- readonly: s.readonly,
134
+ disabled: i.disabled,
135
+ readonly: i.readonly,
136
136
  ref_key: "inputRef",
137
137
  ref: l,
138
- onFocus: h[1] || (h[1] = (g) => i("focus", g)),
139
- onBlur: h[2] || (h[2] = (g) => i("blur", g)),
140
- onInput: h[3] || (h[3] = (g) => i("input", g)),
141
- onChange: h[4] || (h[4] = (g) => i("change", g))
142
- }, null, 40, Te), [
138
+ onFocus: h[1] || (h[1] = (g) => s("focus", g)),
139
+ onBlur: h[2] || (h[2] = (g) => s("blur", g)),
140
+ onInput: h[3] || (h[3] = (g) => s("input", g)),
141
+ onChange: h[4] || (h[4] = (g) => s("change", g))
142
+ }, null, 40, _e), [
143
143
  [ce, r.value]
144
144
  ]),
145
- u.value ? (C(), k("span", Ee, [
145
+ u.value ? (C(), _("span", Te, [
146
146
  T(p.$slots, "suffix", {}, () => [
147
147
  (C(), Q(xt(f.value)))
148
148
  ])
149
- ])) : it("", !0)
149
+ ])) : st("", !0)
150
150
  ], 2));
151
151
  }
152
- }), Rt = Math.min, K = Math.max, ct = Math.round, lt = Math.floor, $ = (t) => ({
152
+ }), Rt = Math.min, K = Math.max, ct = Math.round, lt = Math.floor, k = (t) => ({
153
153
  x: t,
154
154
  y: t
155
- }), _e = {
155
+ }), Ee = {
156
156
  left: "right",
157
157
  right: "left",
158
158
  bottom: "top",
159
159
  top: "bottom"
160
- }, ke = {
160
+ }, $e = {
161
161
  start: "end",
162
162
  end: "start"
163
163
  };
164
- function Lt(t, e) {
164
+ function Ot(t, e) {
165
165
  return typeof t == "function" ? t(e) : t;
166
166
  }
167
167
  function Z(t) {
@@ -170,52 +170,52 @@ function Z(t) {
170
170
  function dt(t) {
171
171
  return t.split("-")[1];
172
172
  }
173
- function $e(t) {
173
+ function ke(t) {
174
174
  return t === "x" ? "y" : "x";
175
175
  }
176
176
  function Gt(t) {
177
177
  return t === "y" ? "height" : "width";
178
178
  }
179
179
  const Be = /* @__PURE__ */ new Set(["top", "bottom"]);
180
- function N(t) {
180
+ function W(t) {
181
181
  return Be.has(Z(t)) ? "y" : "x";
182
182
  }
183
183
  function Jt(t) {
184
- return $e(N(t));
184
+ return ke(W(t));
185
185
  }
186
- function De(t, e, n) {
186
+ function Pe(t, e, n) {
187
187
  n === void 0 && (n = !1);
188
- const o = dt(t), i = Jt(t), s = Gt(i);
189
- let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
190
- return e.reference[s] > e.floating[s] && (r = at(r)), [r, at(r)];
188
+ const o = dt(t), s = Jt(t), i = Gt(s);
189
+ let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
190
+ return e.reference[i] > e.floating[i] && (r = at(r)), [r, at(r)];
191
191
  }
192
- function Pe(t) {
192
+ function De(t) {
193
193
  const e = at(t);
194
194
  return [Ct(t), e, Ct(e)];
195
195
  }
196
196
  function Ct(t) {
197
- return t.replace(/start|end/g, (e) => ke[e]);
197
+ return t.replace(/start|end/g, (e) => $e[e]);
198
198
  }
199
- const zt = ["left", "right"], Mt = ["right", "left"], ze = ["top", "bottom"], Me = ["bottom", "top"];
200
- function qe(t, e, n) {
199
+ const zt = ["left", "right"], Mt = ["right", "left"], qe = ["top", "bottom"], ze = ["bottom", "top"];
200
+ function Me(t, e, n) {
201
201
  switch (t) {
202
202
  case "top":
203
203
  case "bottom":
204
204
  return n ? e ? Mt : zt : e ? zt : Mt;
205
205
  case "left":
206
206
  case "right":
207
- return e ? ze : Me;
207
+ return e ? qe : ze;
208
208
  default:
209
209
  return [];
210
210
  }
211
211
  }
212
212
  function Ve(t, e, n, o) {
213
- const i = dt(t);
214
- let s = qe(Z(t), n === "start", o);
215
- return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(Ct)))), s;
213
+ const s = dt(t);
214
+ let i = Me(Z(t), n === "start", o);
215
+ return s && (i = i.map((r) => r + "-" + s), e && (i = i.concat(i.map(Ct)))), i;
216
216
  }
217
217
  function at(t) {
218
- return t.replace(/left|right|bottom|top/g, (e) => _e[e]);
218
+ return t.replace(/left|right|bottom|top/g, (e) => Ee[e]);
219
219
  }
220
220
  function Fe(t) {
221
221
  return {
@@ -239,31 +239,31 @@ function ut(t) {
239
239
  x: e,
240
240
  y: n,
241
241
  width: o,
242
- height: i
242
+ height: s
243
243
  } = t;
244
244
  return {
245
245
  width: o,
246
- height: i,
246
+ height: s,
247
247
  top: n,
248
248
  left: e,
249
249
  right: e + o,
250
- bottom: n + i,
250
+ bottom: n + s,
251
251
  x: e,
252
252
  y: n
253
253
  };
254
254
  }
255
- function qt(t, e, n) {
255
+ function Vt(t, e, n) {
256
256
  let {
257
257
  reference: o,
258
- floating: i
258
+ floating: s
259
259
  } = t;
260
- const s = N(e), r = Jt(e), l = Gt(r), a = Z(e), c = s === "y", u = o.x + o.width / 2 - i.width / 2, f = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
260
+ const i = W(e), r = Jt(e), l = Gt(r), a = Z(e), c = i === "y", u = o.x + o.width / 2 - s.width / 2, f = o.y + o.height / 2 - s.height / 2, m = o[l] / 2 - s[l] / 2;
261
261
  let d;
262
262
  switch (a) {
263
263
  case "top":
264
264
  d = {
265
265
  x: u,
266
- y: o.y - i.height
266
+ y: o.y - s.height
267
267
  };
268
268
  break;
269
269
  case "bottom":
@@ -280,7 +280,7 @@ function qt(t, e, n) {
280
280
  break;
281
281
  case "left":
282
282
  d = {
283
- x: o.x - i.width,
283
+ x: o.x - s.width,
284
284
  y: f
285
285
  };
286
286
  break;
@@ -303,25 +303,25 @@ function qt(t, e, n) {
303
303
  const Ie = async (t, e, n) => {
304
304
  const {
305
305
  placement: o = "bottom",
306
- strategy: i = "absolute",
307
- middleware: s = [],
306
+ strategy: s = "absolute",
307
+ middleware: i = [],
308
308
  platform: r
309
- } = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
309
+ } = n, l = i.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
310
310
  let c = await r.getElementRects({
311
311
  reference: t,
312
312
  floating: e,
313
- strategy: i
313
+ strategy: s
314
314
  }), {
315
315
  x: u,
316
316
  y: f
317
- } = qt(c, o, a), m = o, d = {}, p = 0;
317
+ } = Vt(c, o, a), m = o, d = {}, p = 0;
318
318
  for (let h = 0; h < l.length; h++) {
319
319
  const {
320
320
  name: g,
321
321
  fn: v
322
322
  } = l[h], {
323
- x: w,
324
- y: x,
323
+ x: y,
324
+ y: b,
325
325
  data: R,
326
326
  reset: S
327
327
  } = await v({
@@ -329,7 +329,7 @@ const Ie = async (t, e, n) => {
329
329
  y: f,
330
330
  initialPlacement: o,
331
331
  placement: m,
332
- strategy: i,
332
+ strategy: s,
333
333
  middlewareData: d,
334
334
  rects: c,
335
335
  platform: r,
@@ -338,7 +338,7 @@ const Ie = async (t, e, n) => {
338
338
  floating: e
339
339
  }
340
340
  });
341
- u = w ?? u, f = x ?? f, d = {
341
+ u = y ?? u, f = b ?? f, d = {
342
342
  ...d,
343
343
  [g]: {
344
344
  ...d[g],
@@ -347,17 +347,17 @@ const Ie = async (t, e, n) => {
347
347
  }, S && p <= 50 && (p++, typeof S == "object" && (S.placement && (m = S.placement), S.rects && (c = S.rects === !0 ? await r.getElementRects({
348
348
  reference: t,
349
349
  floating: e,
350
- strategy: i
350
+ strategy: s
351
351
  }) : S.rects), {
352
352
  x: u,
353
353
  y: f
354
- } = qt(c, m, a)), h = -1);
354
+ } = Vt(c, m, a)), h = -1);
355
355
  }
356
356
  return {
357
357
  x: u,
358
358
  y: f,
359
359
  placement: m,
360
- strategy: i,
360
+ strategy: s,
361
361
  middlewareData: d
362
362
  };
363
363
  };
@@ -366,8 +366,8 @@ async function We(t, e) {
366
366
  e === void 0 && (e = {});
367
367
  const {
368
368
  x: o,
369
- y: i,
370
- platform: s,
369
+ y: s,
370
+ platform: i,
371
371
  rects: r,
372
372
  elements: l,
373
373
  strategy: a
@@ -377,28 +377,28 @@ async function We(t, e) {
377
377
  elementContext: f = "floating",
378
378
  altBoundary: m = !1,
379
379
  padding: d = 0
380
- } = Lt(e, t), p = Ne(d), g = l[m ? f === "floating" ? "reference" : "floating" : f], v = ut(await s.getClippingRect({
381
- element: (n = await (s.isElement == null ? void 0 : s.isElement(g))) == null || n ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
380
+ } = Ot(e, t), p = Ne(d), g = l[m ? f === "floating" ? "reference" : "floating" : f], v = ut(await i.getClippingRect({
381
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
382
382
  boundary: c,
383
383
  rootBoundary: u,
384
384
  strategy: a
385
- })), w = f === "floating" ? {
385
+ })), y = f === "floating" ? {
386
386
  x: o,
387
- y: i,
387
+ y: s,
388
388
  width: r.floating.width,
389
389
  height: r.floating.height
390
- } : r.reference, x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), R = await (s.isElement == null ? void 0 : s.isElement(x)) ? await (s.getScale == null ? void 0 : s.getScale(x)) || {
390
+ } : r.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l.floating)), R = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
391
391
  x: 1,
392
392
  y: 1
393
393
  } : {
394
394
  x: 1,
395
395
  y: 1
396
- }, S = ut(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
396
+ }, S = ut(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
397
397
  elements: l,
398
- rect: w,
399
- offsetParent: x,
398
+ rect: y,
399
+ offsetParent: b,
400
400
  strategy: a
401
- }) : w);
401
+ }) : y);
402
402
  return {
403
403
  top: (v.top - S.top + p.top) / R.y,
404
404
  bottom: (S.bottom - v.bottom + p.bottom) / R.y,
@@ -413,8 +413,8 @@ const He = function(t) {
413
413
  async fn(e) {
414
414
  var n, o;
415
415
  const {
416
- placement: i,
417
- middlewareData: s,
416
+ placement: s,
417
+ middlewareData: i,
418
418
  rects: r,
419
419
  initialPlacement: l,
420
420
  platform: a,
@@ -427,57 +427,57 @@ const He = function(t) {
427
427
  fallbackAxisSideDirection: p = "none",
428
428
  flipAlignment: h = !0,
429
429
  ...g
430
- } = Lt(t, e);
431
- if ((n = s.arrow) != null && n.alignmentOffset)
430
+ } = Ot(t, e);
431
+ if ((n = i.arrow) != null && n.alignmentOffset)
432
432
  return {};
433
- const v = Z(i), w = N(l), x = Z(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = m || (x || !h ? [at(l)] : Pe(l)), M = p !== "none";
434
- !m && M && S.push(...Ve(l, h, p, R));
435
- const y = [l, ...S], L = await We(e, g), q = [];
436
- let U = ((o = s.flip) == null ? void 0 : o.overflows) || [];
437
- if (u && q.push(L[v]), f) {
438
- const V = De(i, r, R);
439
- q.push(L[V[0]], L[V[1]]);
433
+ const v = Z(s), y = W(l), b = Z(l) === l, R = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), S = m || (b || !h ? [at(l)] : De(l)), V = p !== "none";
434
+ !m && V && S.push(...Ve(l, h, p, R));
435
+ const x = [l, ...S], A = await We(e, g), F = [];
436
+ let U = ((o = i.flip) == null ? void 0 : o.overflows) || [];
437
+ if (u && F.push(A[v]), f) {
438
+ const N = Pe(s, r, R);
439
+ F.push(A[N[0]], A[N[1]]);
440
440
  }
441
441
  if (U = [...U, {
442
- placement: i,
443
- overflows: q
444
- }], !q.every((V) => V <= 0)) {
445
- var $t, Bt;
446
- const V = ((($t = s.flip) == null ? void 0 : $t.index) || 0) + 1, vt = y[V];
447
- if (vt && (!(f === "alignment" ? w !== N(vt) : !1) || // We leave the current main axis only if every placement on that axis
442
+ placement: s,
443
+ overflows: F
444
+ }], !F.every((N) => N <= 0)) {
445
+ var Bt, Pt;
446
+ const N = (((Bt = i.flip) == null ? void 0 : Bt.index) || 0) + 1, vt = x[N];
447
+ if (vt && (!(f === "alignment" ? y !== W(vt) : !1) || // We leave the current main axis only if every placement on that axis
448
448
  // overflows the main axis.
449
- U.every((O) => N(O.placement) === w ? O.overflows[0] > 0 : !0)))
449
+ U.every((O) => W(O.placement) === y ? O.overflows[0] > 0 : !0)))
450
450
  return {
451
451
  data: {
452
- index: V,
452
+ index: N,
453
453
  overflows: U
454
454
  },
455
455
  reset: {
456
456
  placement: vt
457
457
  }
458
458
  };
459
- let et = (Bt = U.filter((F) => F.overflows[0] <= 0).sort((F, O) => F.overflows[1] - O.overflows[1])[0]) == null ? void 0 : Bt.placement;
459
+ let et = (Pt = U.filter((I) => I.overflows[0] <= 0).sort((I, O) => I.overflows[1] - O.overflows[1])[0]) == null ? void 0 : Pt.placement;
460
460
  if (!et)
461
461
  switch (d) {
462
462
  case "bestFit": {
463
463
  var Dt;
464
- const F = (Dt = U.filter((O) => {
465
- if (M) {
466
- const P = N(O.placement);
467
- return P === w || // Create a bias to the `y` side axis due to horizontal
464
+ const I = (Dt = U.filter((O) => {
465
+ if (V) {
466
+ const q = W(O.placement);
467
+ return q === y || // Create a bias to the `y` side axis due to horizontal
468
468
  // reading directions favoring greater width.
469
- P === "y";
469
+ q === "y";
470
470
  }
471
471
  return !0;
472
- }).map((O) => [O.placement, O.overflows.filter((P) => P > 0).reduce((P, re) => P + re, 0)]).sort((O, P) => O[1] - P[1])[0]) == null ? void 0 : Dt[0];
473
- F && (et = F);
472
+ }).map((O) => [O.placement, O.overflows.filter((q) => q > 0).reduce((q, re) => q + re, 0)]).sort((O, q) => O[1] - q[1])[0]) == null ? void 0 : Dt[0];
473
+ I && (et = I);
474
474
  break;
475
475
  }
476
476
  case "initialPlacement":
477
477
  et = l;
478
478
  break;
479
479
  }
480
- if (i !== et)
480
+ if (s !== et)
481
481
  return {
482
482
  reset: {
483
483
  placement: et
@@ -487,13 +487,13 @@ const He = function(t) {
487
487
  return {};
488
488
  }
489
489
  };
490
- }, Xe = /* @__PURE__ */ new Set(["left", "top"]);
491
- async function je(t, e) {
490
+ }, je = /* @__PURE__ */ new Set(["left", "top"]);
491
+ async function Xe(t, e) {
492
492
  const {
493
493
  placement: n,
494
494
  platform: o,
495
- elements: i
496
- } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = Z(n), l = dt(n), a = N(n) === "y", c = Xe.has(r) ? -1 : 1, u = s && a ? -1 : 1, f = Lt(e, t);
495
+ elements: s
496
+ } = t, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = Z(n), l = dt(n), a = W(n) === "y", c = je.has(r) ? -1 : 1, u = i && a ? -1 : 1, f = Ot(e, t);
497
497
  let {
498
498
  mainAxis: m,
499
499
  crossAxis: d,
@@ -522,14 +522,14 @@ const Ue = function(t) {
522
522
  async fn(e) {
523
523
  var n, o;
524
524
  const {
525
- x: i,
526
- y: s,
525
+ x: s,
526
+ y: i,
527
527
  placement: r,
528
528
  middlewareData: l
529
- } = e, a = await je(e, t);
529
+ } = e, a = await Xe(e, t);
530
530
  return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
531
- x: i + a.x,
532
- y: s + a.y,
531
+ x: s + a.x,
532
+ y: i + a.y,
533
533
  data: {
534
534
  ...a,
535
535
  placement: r
@@ -541,28 +541,28 @@ const Ue = function(t) {
541
541
  function pt() {
542
542
  return typeof window < "u";
543
543
  }
544
- function j(t) {
545
- return Ot(t) ? (t.nodeName || "").toLowerCase() : "#document";
544
+ function X(t) {
545
+ return _t(t) ? (t.nodeName || "").toLowerCase() : "#document";
546
546
  }
547
- function A(t) {
547
+ function L(t) {
548
548
  var e;
549
549
  return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
550
550
  }
551
- function D(t) {
551
+ function P(t) {
552
552
  var e;
553
- return (e = (Ot(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
553
+ return (e = (_t(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
554
554
  }
555
- function Ot(t) {
556
- return pt() ? t instanceof Node || t instanceof A(t).Node : !1;
555
+ function _t(t) {
556
+ return pt() ? t instanceof Node || t instanceof L(t).Node : !1;
557
557
  }
558
558
  function E(t) {
559
- return pt() ? t instanceof Element || t instanceof A(t).Element : !1;
559
+ return pt() ? t instanceof Element || t instanceof L(t).Element : !1;
560
560
  }
561
561
  function B(t) {
562
- return pt() ? t instanceof HTMLElement || t instanceof A(t).HTMLElement : !1;
562
+ return pt() ? t instanceof HTMLElement || t instanceof L(t).HTMLElement : !1;
563
563
  }
564
- function Vt(t) {
565
- return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
564
+ function Ft(t) {
565
+ return !pt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof L(t).ShadowRoot;
566
566
  }
567
567
  const Ye = /* @__PURE__ */ new Set(["inline", "contents"]);
568
568
  function rt(t) {
@@ -570,13 +570,13 @@ function rt(t) {
570
570
  overflow: e,
571
571
  overflowX: n,
572
572
  overflowY: o,
573
- display: i
574
- } = _(t);
575
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Ye.has(i);
573
+ display: s
574
+ } = $(t);
575
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !Ye.has(s);
576
576
  }
577
577
  const Ke = /* @__PURE__ */ new Set(["table", "td", "th"]);
578
578
  function Ge(t) {
579
- return Ke.has(j(t));
579
+ return Ke.has(X(t));
580
580
  }
581
581
  const Je = [":popover-open", ":modal"];
582
582
  function mt(t) {
@@ -590,7 +590,7 @@ function mt(t) {
590
590
  }
591
591
  const Qe = ["transform", "translate", "scale", "rotate", "perspective"], Ze = ["transform", "translate", "scale", "rotate", "perspective", "filter"], tn = ["paint", "layout", "strict", "content"];
592
592
  function Tt(t) {
593
- const e = Et(), n = E(t) ? _(t) : t;
593
+ const e = Et(), n = E(t) ? $(t) : t;
594
594
  return Qe.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || Ze.some((o) => (n.willChange || "").includes(o)) || tn.some((o) => (n.contain || "").includes(o));
595
595
  }
596
596
  function en(t) {
@@ -609,10 +609,10 @@ function Et() {
609
609
  }
610
610
  const nn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
611
611
  function tt(t) {
612
- return nn.has(j(t));
612
+ return nn.has(X(t));
613
613
  }
614
- function _(t) {
615
- return A(t).getComputedStyle(t);
614
+ function $(t) {
615
+ return L(t).getComputedStyle(t);
616
616
  }
617
617
  function ht(t) {
618
618
  return E(t) ? {
@@ -624,86 +624,86 @@ function ht(t) {
624
624
  };
625
625
  }
626
626
  function z(t) {
627
- if (j(t) === "html")
627
+ if (X(t) === "html")
628
628
  return t;
629
629
  const e = (
630
630
  // Step into the shadow DOM of the parent of a slotted node.
631
631
  t.assignedSlot || // DOM Element detected.
632
632
  t.parentNode || // ShadowRoot detected.
633
- Vt(t) && t.host || // Fallback.
634
- D(t)
633
+ Ft(t) && t.host || // Fallback.
634
+ P(t)
635
635
  );
636
- return Vt(e) ? e.host : e;
636
+ return Ft(e) ? e.host : e;
637
637
  }
638
638
  function Qt(t) {
639
639
  const e = z(t);
640
640
  return tt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : B(e) && rt(e) ? e : Qt(e);
641
641
  }
642
- function st(t, e, n) {
642
+ function it(t, e, n) {
643
643
  var o;
644
644
  e === void 0 && (e = []), n === void 0 && (n = !0);
645
- const i = Qt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = A(i);
646
- if (s) {
647
- const l = At(r);
648
- return e.concat(r, r.visualViewport || [], rt(i) ? i : [], l && n ? st(l) : []);
645
+ const s = Qt(t), i = s === ((o = t.ownerDocument) == null ? void 0 : o.body), r = L(s);
646
+ if (i) {
647
+ const l = Lt(r);
648
+ return e.concat(r, r.visualViewport || [], rt(s) ? s : [], l && n ? it(l) : []);
649
649
  }
650
- return e.concat(i, st(i, [], n));
650
+ return e.concat(s, it(s, [], n));
651
651
  }
652
- function At(t) {
652
+ function Lt(t) {
653
653
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
654
654
  }
655
655
  function Zt(t) {
656
- const e = _(t);
656
+ const e = $(t);
657
657
  let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
658
- const i = B(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = ct(n) !== s || ct(o) !== r;
659
- return l && (n = s, o = r), {
658
+ const s = B(t), i = s ? t.offsetWidth : n, r = s ? t.offsetHeight : o, l = ct(n) !== i || ct(o) !== r;
659
+ return l && (n = i, o = r), {
660
660
  width: n,
661
661
  height: o,
662
662
  $: l
663
663
  };
664
664
  }
665
- function _t(t) {
665
+ function $t(t) {
666
666
  return E(t) ? t : t.contextElement;
667
667
  }
668
668
  function G(t) {
669
- const e = _t(t);
669
+ const e = $t(t);
670
670
  if (!B(e))
671
- return $(1);
671
+ return k(1);
672
672
  const n = e.getBoundingClientRect(), {
673
673
  width: o,
674
- height: i,
675
- $: s
674
+ height: s,
675
+ $: i
676
676
  } = Zt(e);
677
- let r = (s ? ct(n.width) : n.width) / o, l = (s ? ct(n.height) : n.height) / i;
677
+ let r = (i ? ct(n.width) : n.width) / o, l = (i ? ct(n.height) : n.height) / s;
678
678
  return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
679
679
  x: r,
680
680
  y: l
681
681
  };
682
682
  }
683
- const on = /* @__PURE__ */ $(0);
683
+ const on = /* @__PURE__ */ k(0);
684
684
  function te(t) {
685
- const e = A(t);
685
+ const e = L(t);
686
686
  return !Et() || !e.visualViewport ? on : {
687
687
  x: e.visualViewport.offsetLeft,
688
688
  y: e.visualViewport.offsetTop
689
689
  };
690
690
  }
691
691
  function sn(t, e, n) {
692
- return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
692
+ return e === void 0 && (e = !1), !n || e && n !== L(t) ? !1 : e;
693
693
  }
694
- function W(t, e, n, o) {
694
+ function j(t, e, n, o) {
695
695
  e === void 0 && (e = !1), n === void 0 && (n = !1);
696
- const i = t.getBoundingClientRect(), s = _t(t);
697
- let r = $(1);
696
+ const s = t.getBoundingClientRect(), i = $t(t);
697
+ let r = k(1);
698
698
  e && (o ? E(o) && (r = G(o)) : r = G(t));
699
- const l = sn(s, n, o) ? te(s) : $(0);
700
- let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, u = i.width / r.x, f = i.height / r.y;
701
- if (s) {
702
- const m = A(s), d = o && E(o) ? A(o) : o;
703
- let p = m, h = At(p);
699
+ const l = sn(i, n, o) ? te(i) : k(0);
700
+ let a = (s.left + l.x) / r.x, c = (s.top + l.y) / r.y, u = s.width / r.x, f = s.height / r.y;
701
+ if (i) {
702
+ const m = L(i), d = o && E(o) ? L(o) : o;
703
+ let p = m, h = Lt(p);
704
704
  for (; h && o && d !== p; ) {
705
- const g = G(h), v = h.getBoundingClientRect(), w = _(h), x = v.left + (h.clientLeft + parseFloat(w.paddingLeft)) * g.x, R = v.top + (h.clientTop + parseFloat(w.paddingTop)) * g.y;
706
- a *= g.x, c *= g.y, u *= g.x, f *= g.y, a += x, c += R, p = A(h), h = At(p);
705
+ const g = G(h), v = h.getBoundingClientRect(), y = $(h), b = v.left + (h.clientLeft + parseFloat(y.paddingLeft)) * g.x, R = v.top + (h.clientTop + parseFloat(y.paddingTop)) * g.y;
706
+ a *= g.x, c *= g.y, u *= g.x, f *= g.y, a += b, c += R, p = L(h), h = Lt(p);
707
707
  }
708
708
  }
709
709
  return ut({
@@ -715,13 +715,13 @@ function W(t, e, n, o) {
715
715
  }
716
716
  function gt(t, e) {
717
717
  const n = ht(t).scrollLeft;
718
- return e ? e.left + n : W(D(t)).left + n;
718
+ return e ? e.left + n : j(P(t)).left + n;
719
719
  }
720
720
  function ee(t, e) {
721
- const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - gt(t, n), i = n.top + e.scrollTop;
721
+ const n = t.getBoundingClientRect(), o = n.left + e.scrollLeft - gt(t, n), s = n.top + e.scrollTop;
722
722
  return {
723
723
  x: o,
724
- y: i
724
+ y: s
725
725
  };
726
726
  }
727
727
  function rn(t) {
@@ -729,21 +729,21 @@ function rn(t) {
729
729
  elements: e,
730
730
  rect: n,
731
731
  offsetParent: o,
732
- strategy: i
732
+ strategy: s
733
733
  } = t;
734
- const s = i === "fixed", r = D(o), l = e ? mt(e.floating) : !1;
735
- if (o === r || l && s)
734
+ const i = s === "fixed", r = P(o), l = e ? mt(e.floating) : !1;
735
+ if (o === r || l && i)
736
736
  return n;
737
737
  let a = {
738
738
  scrollLeft: 0,
739
739
  scrollTop: 0
740
- }, c = $(1);
741
- const u = $(0), f = B(o);
742
- if ((f || !f && !s) && ((j(o) !== "body" || rt(r)) && (a = ht(o)), B(o))) {
743
- const d = W(o);
740
+ }, c = k(1);
741
+ const u = k(0), f = B(o);
742
+ if ((f || !f && !i) && ((X(o) !== "body" || rt(r)) && (a = ht(o)), B(o))) {
743
+ const d = j(o);
744
744
  c = G(o), u.x = d.x + o.clientLeft, u.y = d.y + o.clientTop;
745
745
  }
746
- const m = r && !f && !s ? ee(r, a) : $(0);
746
+ const m = r && !f && !i ? ee(r, a) : k(0);
747
747
  return {
748
748
  width: n.width * c.x,
749
749
  height: n.height * c.y,
@@ -755,32 +755,32 @@ function ln(t) {
755
755
  return Array.from(t.getClientRects());
756
756
  }
757
757
  function cn(t) {
758
- const e = D(t), n = ht(t), o = t.ownerDocument.body, i = K(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = K(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
758
+ const e = P(t), n = ht(t), o = t.ownerDocument.body, s = K(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = K(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
759
759
  let r = -n.scrollLeft + gt(t);
760
760
  const l = -n.scrollTop;
761
- return _(o).direction === "rtl" && (r += K(e.clientWidth, o.clientWidth) - i), {
762
- width: i,
763
- height: s,
761
+ return $(o).direction === "rtl" && (r += K(e.clientWidth, o.clientWidth) - s), {
762
+ width: s,
763
+ height: i,
764
764
  x: r,
765
765
  y: l
766
766
  };
767
767
  }
768
- const Ft = 25;
768
+ const Nt = 25;
769
769
  function an(t, e) {
770
- const n = A(t), o = D(t), i = n.visualViewport;
771
- let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
772
- if (i) {
773
- s = i.width, r = i.height;
770
+ const n = L(t), o = P(t), s = n.visualViewport;
771
+ let i = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
772
+ if (s) {
773
+ i = s.width, r = s.height;
774
774
  const u = Et();
775
- (!u || u && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
775
+ (!u || u && e === "fixed") && (l = s.offsetLeft, a = s.offsetTop);
776
776
  }
777
777
  const c = gt(o);
778
778
  if (c <= 0) {
779
779
  const u = o.ownerDocument, f = u.body, m = getComputedStyle(f), d = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - f.clientWidth - d);
780
- p <= Ft && (s -= p);
781
- } else c <= Ft && (s += c);
780
+ p <= Nt && (i -= p);
781
+ } else c <= Nt && (i += c);
782
782
  return {
783
- width: s,
783
+ width: i,
784
784
  height: r,
785
785
  x: l,
786
786
  y: a
@@ -788,7 +788,7 @@ function an(t, e) {
788
788
  }
789
789
  const un = /* @__PURE__ */ new Set(["absolute", "fixed"]);
790
790
  function fn(t, e) {
791
- const n = W(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = B(t) ? G(t) : $(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
791
+ const n = j(t, !0, e === "fixed"), o = n.top + t.clientTop, s = n.left + t.clientLeft, i = B(t) ? G(t) : k(1), r = t.clientWidth * i.x, l = t.clientHeight * i.y, a = s * i.x, c = o * i.y;
792
792
  return {
793
793
  width: r,
794
794
  height: l,
@@ -796,19 +796,19 @@ function fn(t, e) {
796
796
  y: c
797
797
  };
798
798
  }
799
- function Nt(t, e, n) {
799
+ function It(t, e, n) {
800
800
  let o;
801
801
  if (e === "viewport")
802
802
  o = an(t, n);
803
803
  else if (e === "document")
804
- o = cn(D(t));
804
+ o = cn(P(t));
805
805
  else if (E(e))
806
806
  o = fn(e, n);
807
807
  else {
808
- const i = te(t);
808
+ const s = te(t);
809
809
  o = {
810
- x: e.x - i.x,
811
- y: e.y - i.y,
810
+ x: e.x - s.x,
811
+ y: e.y - s.y,
812
812
  width: e.width,
813
813
  height: e.height
814
814
  };
@@ -817,18 +817,18 @@ function Nt(t, e, n) {
817
817
  }
818
818
  function ne(t, e) {
819
819
  const n = z(t);
820
- return n === e || !E(n) || tt(n) ? !1 : _(n).position === "fixed" || ne(n, e);
820
+ return n === e || !E(n) || tt(n) ? !1 : $(n).position === "fixed" || ne(n, e);
821
821
  }
822
822
  function dn(t, e) {
823
823
  const n = e.get(t);
824
824
  if (n)
825
825
  return n;
826
- let o = st(t, [], !1).filter((l) => E(l) && j(l) !== "body"), i = null;
827
- const s = _(t).position === "fixed";
828
- let r = s ? z(t) : t;
826
+ let o = it(t, [], !1).filter((l) => E(l) && X(l) !== "body"), s = null;
827
+ const i = $(t).position === "fixed";
828
+ let r = i ? z(t) : t;
829
829
  for (; E(r) && !tt(r); ) {
830
- const l = _(r), a = Tt(r);
831
- !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && un.has(i.position) || rt(r) && !a && ne(t, r)) ? o = o.filter((u) => u !== r) : i = l, r = z(r);
830
+ const l = $(r), a = Tt(r);
831
+ !a && l.position === "fixed" && (s = null), (i ? !a && !s : !a && l.position === "static" && !!s && un.has(s.position) || rt(r) && !a && ne(t, r)) ? o = o.filter((u) => u !== r) : s = l, r = z(r);
832
832
  }
833
833
  return e.set(t, o), o;
834
834
  }
@@ -837,12 +837,12 @@ function pn(t) {
837
837
  element: e,
838
838
  boundary: n,
839
839
  rootBoundary: o,
840
- strategy: i
840
+ strategy: s
841
841
  } = t;
842
842
  const r = [...n === "clippingAncestors" ? mt(e) ? [] : dn(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, u) => {
843
- const f = Nt(e, u, i);
843
+ const f = It(e, u, s);
844
844
  return c.top = K(f.top, c.top), c.right = Rt(f.right, c.right), c.bottom = Rt(f.bottom, c.bottom), c.left = K(f.left, c.left), c;
845
- }, Nt(e, l, i));
845
+ }, It(e, l, s));
846
846
  return {
847
847
  width: a.right - a.left,
848
848
  height: a.bottom - a.top,
@@ -861,22 +861,22 @@ function mn(t) {
861
861
  };
862
862
  }
863
863
  function hn(t, e, n) {
864
- const o = B(e), i = D(e), s = n === "fixed", r = W(t, !0, s, e);
864
+ const o = B(e), s = P(e), i = n === "fixed", r = j(t, !0, i, e);
865
865
  let l = {
866
866
  scrollLeft: 0,
867
867
  scrollTop: 0
868
868
  };
869
- const a = $(0);
869
+ const a = k(0);
870
870
  function c() {
871
- a.x = gt(i);
871
+ a.x = gt(s);
872
872
  }
873
- if (o || !o && !s)
874
- if ((j(e) !== "body" || rt(i)) && (l = ht(e)), o) {
875
- const d = W(e, !0, s, e);
873
+ if (o || !o && !i)
874
+ if ((X(e) !== "body" || rt(s)) && (l = ht(e)), o) {
875
+ const d = j(e, !0, i, e);
876
876
  a.x = d.x + e.clientLeft, a.y = d.y + e.clientTop;
877
- } else i && c();
878
- s && !o && i && c();
879
- const u = i && !o && !s ? ee(i, l) : $(0), f = r.left + l.scrollLeft - a.x - u.x, m = r.top + l.scrollTop - a.y - u.y;
877
+ } else s && c();
878
+ i && !o && s && c();
879
+ const u = s && !o && !i ? ee(s, l) : k(0), f = r.left + l.scrollLeft - a.x - u.x, m = r.top + l.scrollTop - a.y - u.y;
880
880
  return {
881
881
  x: f,
882
882
  y: m,
@@ -884,34 +884,34 @@ function hn(t, e, n) {
884
884
  height: r.height
885
885
  };
886
886
  }
887
- function yt(t) {
888
- return _(t).position === "static";
887
+ function wt(t) {
888
+ return $(t).position === "static";
889
889
  }
890
- function It(t, e) {
891
- if (!B(t) || _(t).position === "fixed")
890
+ function Wt(t, e) {
891
+ if (!B(t) || $(t).position === "fixed")
892
892
  return null;
893
893
  if (e)
894
894
  return e(t);
895
895
  let n = t.offsetParent;
896
- return D(t) === n && (n = n.ownerDocument.body), n;
896
+ return P(t) === n && (n = n.ownerDocument.body), n;
897
897
  }
898
898
  function oe(t, e) {
899
- const n = A(t);
899
+ const n = L(t);
900
900
  if (mt(t))
901
901
  return n;
902
902
  if (!B(t)) {
903
- let i = z(t);
904
- for (; i && !tt(i); ) {
905
- if (E(i) && !yt(i))
906
- return i;
907
- i = z(i);
903
+ let s = z(t);
904
+ for (; s && !tt(s); ) {
905
+ if (E(s) && !wt(s))
906
+ return s;
907
+ s = z(s);
908
908
  }
909
909
  return n;
910
910
  }
911
- let o = It(t, e);
912
- for (; o && Ge(o) && yt(o); )
913
- o = It(o, e);
914
- return o && tt(o) && yt(o) && !Tt(o) ? n : o || en(t) || n;
911
+ let o = Wt(t, e);
912
+ for (; o && Ge(o) && wt(o); )
913
+ o = Wt(o, e);
914
+ return o && tt(o) && wt(o) && !Tt(o) ? n : o || en(t) || n;
915
915
  }
916
916
  const gn = async function(t) {
917
917
  const e = this.getOffsetParent || oe, n = this.getDimensions, o = await n(t.floating);
@@ -926,11 +926,11 @@ const gn = async function(t) {
926
926
  };
927
927
  };
928
928
  function vn(t) {
929
- return _(t).direction === "rtl";
929
+ return $(t).direction === "rtl";
930
930
  }
931
- const wn = {
931
+ const yn = {
932
932
  convertOffsetParentRelativeRectToViewportRelativeRect: rn,
933
- getDocumentElement: D,
933
+ getDocumentElement: P,
934
934
  getClippingRect: pn,
935
935
  getOffsetParent: oe,
936
936
  getElementRects: gn,
@@ -940,18 +940,18 @@ const wn = {
940
940
  isElement: E,
941
941
  isRTL: vn
942
942
  };
943
- function ie(t, e) {
943
+ function se(t, e) {
944
944
  return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
945
945
  }
946
- function yn(t, e) {
946
+ function wn(t, e) {
947
947
  let n = null, o;
948
- const i = D(t);
949
- function s() {
948
+ const s = P(t);
949
+ function i() {
950
950
  var l;
951
951
  clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
952
952
  }
953
953
  function r(l, a) {
954
- l === void 0 && (l = !1), a === void 0 && (a = 1), s();
954
+ l === void 0 && (l = !1), a === void 0 && (a = 1), i();
955
955
  const c = t.getBoundingClientRect(), {
956
956
  left: u,
957
957
  top: f,
@@ -960,173 +960,173 @@ function yn(t, e) {
960
960
  } = c;
961
961
  if (l || e(), !m || !d)
962
962
  return;
963
- const p = lt(f), h = lt(i.clientWidth - (u + m)), g = lt(i.clientHeight - (f + d)), v = lt(u), x = {
963
+ const p = lt(f), h = lt(s.clientWidth - (u + m)), g = lt(s.clientHeight - (f + d)), v = lt(u), b = {
964
964
  rootMargin: -p + "px " + -h + "px " + -g + "px " + -v + "px",
965
965
  threshold: K(0, Rt(1, a)) || 1
966
966
  };
967
967
  let R = !0;
968
- function S(M) {
969
- const y = M[0].intersectionRatio;
970
- if (y !== a) {
968
+ function S(V) {
969
+ const x = V[0].intersectionRatio;
970
+ if (x !== a) {
971
971
  if (!R)
972
972
  return r();
973
- y ? r(!1, y) : o = setTimeout(() => {
973
+ x ? r(!1, x) : o = setTimeout(() => {
974
974
  r(!1, 1e-7);
975
975
  }, 1e3);
976
976
  }
977
- y === 1 && !ie(c, t.getBoundingClientRect()) && r(), R = !1;
977
+ x === 1 && !se(c, t.getBoundingClientRect()) && r(), R = !1;
978
978
  }
979
979
  try {
980
980
  n = new IntersectionObserver(S, {
981
- ...x,
981
+ ...b,
982
982
  // Handle <iframe>s
983
- root: i.ownerDocument
983
+ root: s.ownerDocument
984
984
  });
985
985
  } catch {
986
- n = new IntersectionObserver(S, x);
986
+ n = new IntersectionObserver(S, b);
987
987
  }
988
988
  n.observe(t);
989
989
  }
990
- return r(!0), s;
990
+ return r(!0), i;
991
991
  }
992
992
  function xn(t, e, n, o) {
993
993
  o === void 0 && (o = {});
994
994
  const {
995
- ancestorScroll: i = !0,
996
- ancestorResize: s = !0,
995
+ ancestorScroll: s = !0,
996
+ ancestorResize: i = !0,
997
997
  elementResize: r = typeof ResizeObserver == "function",
998
998
  layoutShift: l = typeof IntersectionObserver == "function",
999
999
  animationFrame: a = !1
1000
- } = o, c = _t(t), u = i || s ? [...c ? st(c) : [], ...st(e)] : [];
1000
+ } = o, c = $t(t), u = s || i ? [...c ? it(c) : [], ...it(e)] : [];
1001
1001
  u.forEach((v) => {
1002
- i && v.addEventListener("scroll", n, {
1002
+ s && v.addEventListener("scroll", n, {
1003
1003
  passive: !0
1004
- }), s && v.addEventListener("resize", n);
1004
+ }), i && v.addEventListener("resize", n);
1005
1005
  });
1006
- const f = c && l ? yn(c, n) : null;
1006
+ const f = c && l ? wn(c, n) : null;
1007
1007
  let m = -1, d = null;
1008
1008
  r && (d = new ResizeObserver((v) => {
1009
- let [w] = v;
1010
- w && w.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1011
- var x;
1012
- (x = d) == null || x.observe(e);
1009
+ let [y] = v;
1010
+ y && y.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1011
+ var b;
1012
+ (b = d) == null || b.observe(e);
1013
1013
  })), n();
1014
1014
  }), c && !a && d.observe(c), d.observe(e));
1015
- let p, h = a ? W(t) : null;
1015
+ let p, h = a ? j(t) : null;
1016
1016
  a && g();
1017
1017
  function g() {
1018
- const v = W(t);
1019
- h && !ie(h, v) && n(), h = v, p = requestAnimationFrame(g);
1018
+ const v = j(t);
1019
+ h && !se(h, v) && n(), h = v, p = requestAnimationFrame(g);
1020
1020
  }
1021
1021
  return n(), () => {
1022
1022
  var v;
1023
- u.forEach((w) => {
1024
- i && w.removeEventListener("scroll", n), s && w.removeEventListener("resize", n);
1023
+ u.forEach((y) => {
1024
+ s && y.removeEventListener("scroll", n), i && y.removeEventListener("resize", n);
1025
1025
  }), f == null || f(), (v = d) == null || v.disconnect(), d = null, a && cancelAnimationFrame(p);
1026
1026
  };
1027
1027
  }
1028
1028
  const bn = Ue, Sn = He, Rn = (t, e, n) => {
1029
- const o = /* @__PURE__ */ new Map(), i = {
1030
- platform: wn,
1029
+ const o = /* @__PURE__ */ new Map(), s = {
1030
+ platform: yn,
1031
1031
  ...n
1032
- }, s = {
1033
- ...i.platform,
1032
+ }, i = {
1033
+ ...s.platform,
1034
1034
  _c: o
1035
1035
  };
1036
1036
  return Ie(t, e, {
1037
- ...i,
1038
- platform: s
1037
+ ...s,
1038
+ platform: i
1039
1039
  });
1040
1040
  };
1041
1041
  function Cn(t) {
1042
1042
  return t != null && typeof t == "object" && "$el" in t;
1043
1043
  }
1044
- function Wt(t) {
1044
+ function Ht(t) {
1045
1045
  if (Cn(t)) {
1046
1046
  const e = t.$el;
1047
- return Ot(e) && j(e) === "#comment" ? null : e;
1047
+ return _t(e) && X(e) === "#comment" ? null : e;
1048
1048
  }
1049
1049
  return t;
1050
1050
  }
1051
1051
  function ot(t) {
1052
- return typeof t == "function" ? t() : I(t);
1052
+ return typeof t == "function" ? t() : H(t);
1053
1053
  }
1054
- function se(t) {
1054
+ function ie(t) {
1055
1055
  return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
1056
1056
  }
1057
- function Ht(t, e) {
1058
- const n = se(t);
1057
+ function jt(t, e) {
1058
+ const n = ie(t);
1059
1059
  return Math.round(e * n) / n;
1060
1060
  }
1061
- function An(t, e, n) {
1061
+ function Ln(t, e, n) {
1062
1062
  n === void 0 && (n = {});
1063
- const o = n.whileElementsMounted, i = b(() => {
1064
- var y;
1065
- return (y = ot(n.open)) != null ? y : !0;
1066
- }), s = b(() => ot(n.middleware)), r = b(() => {
1067
- var y;
1068
- return (y = ot(n.placement)) != null ? y : "bottom";
1069
- }), l = b(() => {
1070
- var y;
1071
- return (y = ot(n.strategy)) != null ? y : "absolute";
1072
- }), a = b(() => {
1073
- var y;
1074
- return (y = ot(n.transform)) != null ? y : !0;
1075
- }), c = b(() => Wt(t.value)), u = b(() => Wt(e.value)), f = nt(0), m = nt(0), d = nt(l.value), p = nt(r.value), h = ae({}), g = nt(!1), v = b(() => {
1076
- const y = {
1063
+ const o = n.whileElementsMounted, s = w(() => {
1064
+ var x;
1065
+ return (x = ot(n.open)) != null ? x : !0;
1066
+ }), i = w(() => ot(n.middleware)), r = w(() => {
1067
+ var x;
1068
+ return (x = ot(n.placement)) != null ? x : "bottom";
1069
+ }), l = w(() => {
1070
+ var x;
1071
+ return (x = ot(n.strategy)) != null ? x : "absolute";
1072
+ }), a = w(() => {
1073
+ var x;
1074
+ return (x = ot(n.transform)) != null ? x : !0;
1075
+ }), c = w(() => Ht(t.value)), u = w(() => Ht(e.value)), f = nt(0), m = nt(0), d = nt(l.value), p = nt(r.value), h = ae({}), g = nt(!1), v = w(() => {
1076
+ const x = {
1077
1077
  position: d.value,
1078
1078
  left: "0",
1079
1079
  top: "0"
1080
1080
  };
1081
1081
  if (!u.value)
1082
- return y;
1083
- const L = Ht(u.value, f.value), q = Ht(u.value, m.value);
1082
+ return x;
1083
+ const A = jt(u.value, f.value), F = jt(u.value, m.value);
1084
1084
  return a.value ? {
1085
- ...y,
1086
- transform: "translate(" + L + "px, " + q + "px)",
1087
- ...se(u.value) >= 1.5 && {
1085
+ ...x,
1086
+ transform: "translate(" + A + "px, " + F + "px)",
1087
+ ...ie(u.value) >= 1.5 && {
1088
1088
  willChange: "transform"
1089
1089
  }
1090
1090
  } : {
1091
1091
  position: d.value,
1092
- left: L + "px",
1093
- top: q + "px"
1092
+ left: A + "px",
1093
+ top: F + "px"
1094
1094
  };
1095
1095
  });
1096
- let w;
1097
- function x() {
1096
+ let y;
1097
+ function b() {
1098
1098
  if (c.value == null || u.value == null)
1099
1099
  return;
1100
- const y = i.value;
1100
+ const x = s.value;
1101
1101
  Rn(c.value, u.value, {
1102
- middleware: s.value,
1102
+ middleware: i.value,
1103
1103
  placement: r.value,
1104
1104
  strategy: l.value
1105
- }).then((L) => {
1106
- f.value = L.x, m.value = L.y, d.value = L.strategy, p.value = L.placement, h.value = L.middlewareData, g.value = y !== !1;
1105
+ }).then((A) => {
1106
+ f.value = A.x, m.value = A.y, d.value = A.strategy, p.value = A.placement, h.value = A.middlewareData, g.value = x !== !1;
1107
1107
  });
1108
1108
  }
1109
1109
  function R() {
1110
- typeof w == "function" && (w(), w = void 0);
1110
+ typeof y == "function" && (y(), y = void 0);
1111
1111
  }
1112
1112
  function S() {
1113
1113
  if (R(), o === void 0) {
1114
- x();
1114
+ b();
1115
1115
  return;
1116
1116
  }
1117
1117
  if (c.value != null && u.value != null) {
1118
- w = o(c.value, u.value, x);
1118
+ y = o(c.value, u.value, b);
1119
1119
  return;
1120
1120
  }
1121
1121
  }
1122
- function M() {
1123
- i.value || (g.value = !1);
1122
+ function V() {
1123
+ s.value || (g.value = !1);
1124
1124
  }
1125
- return wt([s, r, l, i], x, {
1125
+ return yt([i, r, l, s], b, {
1126
1126
  flush: "sync"
1127
- }), wt([c, u], S, {
1127
+ }), yt([c, u], S, {
1128
1128
  flush: "sync"
1129
- }), wt(i, M, {
1129
+ }), yt(s, V, {
1130
1130
  flush: "sync"
1131
1131
  }), ue() && fe(R), {
1132
1132
  x: Y(f),
@@ -1136,15 +1136,15 @@ function An(t, e, n) {
1136
1136
  middlewareData: Y(h),
1137
1137
  isPositioned: Y(g),
1138
1138
  floatingStyles: v,
1139
- update: x
1139
+ update: b
1140
1140
  };
1141
1141
  }
1142
- const _n = /* @__PURE__ */ H({
1142
+ const En = /* @__PURE__ */ M({
1143
1143
  __name: "SqPopover",
1144
1144
  props: /* @__PURE__ */ bt({
1145
1145
  placement: { default: "top" },
1146
1146
  offset: { default: 10 },
1147
- teleported: { type: Boolean },
1147
+ teleported: { type: Boolean, default: !0 },
1148
1148
  trigger: { default: "hover" },
1149
1149
  showAfter: { default: 0 },
1150
1150
  hideAfter: { default: 300 },
@@ -1157,9 +1157,10 @@ const _n = /* @__PURE__ */ H({
1157
1157
  emits: ["update:visible"],
1158
1158
  setup(t) {
1159
1159
  let e;
1160
- const n = t, o = St("triggerRef"), i = St("popverRef"), s = Ut(t, "visible"), { floatingStyles: r } = An(o, i, {
1160
+ const n = t, o = St("triggerRef"), s = St("popverRef"), i = Yt(t, "visible"), { floatingStyles: r } = Ln(o, s, {
1161
1161
  placement: n.placement,
1162
1162
  whileElementsMounted: xn,
1163
+ transform: !1,
1163
1164
  middleware: [bn(n.offset), Sn()]
1164
1165
  });
1165
1166
  de(() => {
@@ -1176,45 +1177,45 @@ const _n = /* @__PURE__ */ H({
1176
1177
  }, n.hideAfter));
1177
1178
  }
1178
1179
  function c() {
1179
- n.trigger === "click" && (s.value ? f() : n.disabled || u());
1180
+ n.trigger === "click" && (i.value ? f() : n.disabled || u());
1180
1181
  }
1181
1182
  function u() {
1182
- s.value = !0, document.addEventListener("click", f);
1183
+ i.value = !0, document.addEventListener("click", f);
1183
1184
  }
1184
1185
  function f() {
1185
- s.value = !1, document.removeEventListener("click", f);
1186
+ i.value = !1, document.removeEventListener("click", f);
1186
1187
  }
1187
1188
  function m() {
1188
1189
  e && (clearTimeout(e), e = void 0);
1189
1190
  }
1190
- return (d, p) => (C(), k(pe, null, [
1191
+ return (d, p) => (C(), _(pe, null, [
1191
1192
  J("span", {
1192
- class: "sq-popover-trigger",
1193
+ class: D(["sq-popover-trigger", d.$attrs.class]),
1193
1194
  ref_key: "triggerRef",
1194
1195
  ref: o,
1195
1196
  onMouseenter: l,
1196
1197
  onMouseleave: a,
1197
- onClick: Pt(c, ["stop"])
1198
+ onClick: qt(c, ["stop"])
1198
1199
  }, [
1199
1200
  T(d.$slots, "reference")
1200
- ], 544),
1201
+ ], 34),
1201
1202
  (C(), Q(me, {
1202
1203
  to: "body",
1203
1204
  disabled: !n.teleported
1204
1205
  }, [
1205
1206
  Xt(he, { name: "sq-fade" }, {
1206
1207
  default: ft(() => [
1207
- Yt(J("div", {
1208
- class: X(["sq-popover", d.popoverClass]),
1208
+ Kt(J("div", {
1209
+ class: D(["sq-popover", d.popoverClass]),
1209
1210
  ref_key: "popverRef",
1210
- ref: i,
1211
- style: Kt(I(r)),
1212
- onClick: p[0] || (p[0] = Pt(() => {
1211
+ ref: s,
1212
+ style: At(H(r)),
1213
+ onClick: p[0] || (p[0] = qt(() => {
1213
1214
  }, ["stop"]))
1214
1215
  }, [
1215
1216
  T(d.$slots, "default")
1216
1217
  ], 6), [
1217
- [ge, s.value]
1218
+ [ge, i.value]
1218
1219
  ])
1219
1220
  ]),
1220
1221
  _: 3
@@ -1222,7 +1223,33 @@ const _n = /* @__PURE__ */ H({
1222
1223
  ], 8, ["disabled"]))
1223
1224
  ], 64));
1224
1225
  }
1225
- }), kn = /* @__PURE__ */ H({
1226
+ }), $n = /* @__PURE__ */ M({
1227
+ __name: "SqProgress",
1228
+ props: {
1229
+ value: {},
1230
+ min: { default: 0 },
1231
+ max: { default: 100 },
1232
+ color: {},
1233
+ type: { default: "primary" }
1234
+ },
1235
+ setup(t) {
1236
+ const e = t, n = w(() => e.color ? [] : [`is-${e.type}`]), o = w(() => {
1237
+ const i = e.max - e.min;
1238
+ return (e.value - e.min) * 100 / i;
1239
+ }), s = w(() => {
1240
+ const i = {};
1241
+ if (i["--progress-value"] = `${o.value}%`, e.color) {
1242
+ const l = typeof e.color == "string" ? e.color : e.color(o.value);
1243
+ i["--progress-color"] = l;
1244
+ }
1245
+ return i;
1246
+ });
1247
+ return (i, r) => (C(), _("div", {
1248
+ class: D(["sq-progress", n.value]),
1249
+ style: At(s.value)
1250
+ }, null, 6));
1251
+ }
1252
+ }), kn = /* @__PURE__ */ M({
1226
1253
  __name: "SqTag",
1227
1254
  props: {
1228
1255
  type: {},
@@ -1231,21 +1258,21 @@ const _n = /* @__PURE__ */ H({
1231
1258
  size: { default: "md" }
1232
1259
  },
1233
1260
  setup(t) {
1234
- const e = t, n = b(() => {
1235
- const i = [];
1236
- return e.size !== "md" && i.push(`sq-tag--${e.size}`), e.theme !== "materialize" && e.type && i.push(`is-${e.theme}`), e.type && i.push(`is-${e.type}`), e.round && i.push("is-round"), i;
1237
- }), o = b(() => e.size === "lg" ? "md" : "sm");
1238
- return (i, s) => (C(), Q(I(kt), {
1239
- class: X(["sq-tag", n.value]),
1261
+ const e = t, n = w(() => {
1262
+ const s = [];
1263
+ return e.size !== "md" && s.push(`sq-tag--${e.size}`), e.theme !== "materialize" && e.type && s.push(`is-${e.theme}`), e.type && s.push(`is-${e.type}`), e.round && s.push("is-round"), s;
1264
+ }), o = w(() => e.size === "lg" ? "md" : "sm");
1265
+ return (s, i) => (C(), Q(H(kt), {
1266
+ class: D(["sq-tag", n.value]),
1240
1267
  size: o.value
1241
1268
  }, {
1242
1269
  default: ft(() => [
1243
- T(i.$slots, "default")
1270
+ T(s.$slots, "default")
1244
1271
  ]),
1245
1272
  _: 3
1246
1273
  }, 8, ["class", "size"]));
1247
1274
  }
1248
- }), $n = /* @__PURE__ */ H({
1275
+ }), Bn = /* @__PURE__ */ M({
1249
1276
  __name: "SqCheckTag",
1250
1277
  props: {
1251
1278
  checked: { type: Boolean, default: !1 },
@@ -1255,13 +1282,13 @@ const _n = /* @__PURE__ */ H({
1255
1282
  },
1256
1283
  emits: ["change"],
1257
1284
  setup(t, { emit: e }) {
1258
- const n = e, o = t, i = b(() => {
1285
+ const n = e, o = t, s = w(() => {
1259
1286
  const r = [];
1260
1287
  return o.size !== "md" && r.push(`sq-tag--${o.size}`), o.type && r.push(`is-${o.type}`), o.round && r.push("is-round"), o.checked && r.push("is-checked"), r;
1261
- }), s = b(() => o.size === "lg" ? "md" : "sm");
1262
- return (r, l) => (C(), Q(I(kt), {
1263
- class: X(["sq-check-tag", i.value]),
1264
- size: s.value,
1288
+ }), i = w(() => o.size === "lg" ? "md" : "sm");
1289
+ return (r, l) => (C(), Q(H(kt), {
1290
+ class: D(["sq-check-tag", s.value]),
1291
+ size: i.value,
1265
1292
  onClick: l[0] || (l[0] = (a) => n("change", !o.checked))
1266
1293
  }, {
1267
1294
  default: ft(() => [
@@ -1270,7 +1297,7 @@ const _n = /* @__PURE__ */ H({
1270
1297
  _: 3
1271
1298
  }, 8, ["class", "size"]));
1272
1299
  }
1273
- }), kt = /* @__PURE__ */ H({
1300
+ }), kt = /* @__PURE__ */ M({
1274
1301
  __name: "SqText",
1275
1302
  props: {
1276
1303
  rowNum: { default: 1 },
@@ -1278,26 +1305,27 @@ const _n = /* @__PURE__ */ H({
1278
1305
  size: { default: "md" }
1279
1306
  },
1280
1307
  setup(t) {
1281
- const e = t, n = b(() => {
1282
- const i = [];
1283
- return e.size !== "md" && i.push(`s-text--${e.size}`), e.ellipsis && i.push(e.rowNum > 1 ? "multi-line" : "single-line"), i;
1284
- }), o = b(
1308
+ const e = t, n = w(() => {
1309
+ const s = [];
1310
+ return e.size !== "md" && s.push(`s-text--${e.size}`), e.ellipsis && s.push(e.rowNum > 1 ? "multi-line" : "single-line"), s;
1311
+ }), o = w(
1285
1312
  () => e.ellipsis ? `--row-num: ${e.rowNum}` : ""
1286
1313
  );
1287
- return (i, s) => (C(), k("span", {
1288
- class: X(["sq-text", n.value]),
1289
- style: Kt(o.value)
1314
+ return (s, i) => (C(), _("span", {
1315
+ class: D(["sq-text", n.value]),
1316
+ style: At(o.value)
1290
1317
  }, [
1291
- T(i.$slots, "default")
1318
+ T(s.$slots, "default")
1292
1319
  ], 6));
1293
1320
  }
1294
1321
  });
1295
1322
  export {
1296
1323
  On as SqButton,
1297
- Tn as SqCard,
1298
- $n as SqCheckTag,
1299
- En as SqInput,
1300
- _n as SqPopover,
1324
+ _n as SqCard,
1325
+ Bn as SqCheckTag,
1326
+ Tn as SqInput,
1327
+ En as SqPopover,
1328
+ $n as SqProgress,
1301
1329
  kn as SqTag,
1302
1330
  kt as SqText
1303
1331
  };