@vue-interface/btn-dropdown 2.0.0-beta.5 → 2.0.0-beta.6

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,13 +1,13 @@
1
- import { defineComponent as Mt, openBlock as W, createBlock as ee, resolveDynamicComponent as He, mergeProps as me, withCtx as B, renderSlot as P, createTextVNode as ge, toDisplayString as be, createElementBlock as Ue, normalizeClass as F, h as It, Fragment as Lt, resolveComponent as te, createVNode as ye, normalizeProps as ie, createCommentVNode as de, guardReactiveProps as Re, withKeys as bt, withModifiers as yt, normalizeStyle as Vt, createSlots as qt } from "vue";
2
- var R = "top", N = "bottom", M = "right", j = "left", Te = "auto", xe = [R, N, M, j], ae = "start", we = "end", Ft = "clippingParents", wt = "viewport", ce = "popper", Wt = "reference", st = /* @__PURE__ */ xe.reduce(function(e, t) {
3
- return e.concat([t + "-" + ae, t + "-" + we]);
4
- }, []), Ot = /* @__PURE__ */ [].concat(xe, [Te]).reduce(function(e, t) {
5
- return e.concat([t, t + "-" + ae, t + "-" + we]);
6
- }, []), Ht = "beforeRead", Ut = "read", Xt = "afterRead", Yt = "beforeMain", Kt = "main", Gt = "afterMain", Jt = "beforeWrite", Qt = "write", Zt = "afterWrite", qe = [Ht, Ut, Xt, Yt, Kt, Gt, Jt, Qt, Zt];
1
+ import { defineComponent as U, openBlock as W, createBlock as te, resolveDynamicComponent as Ue, mergeProps as me, withCtx as B, renderSlot as P, createTextVNode as be, toDisplayString as ye, createElementBlock as Xe, normalizeClass as F, h as Lt, Fragment as Vt, resolveComponent as re, createVNode as we, normalizeProps as ae, guardReactiveProps as Re, normalizeStyle as It, withKeys as yt, withModifiers as wt, createCommentVNode as ce, createSlots as qt } from "vue";
2
+ var R = "top", N = "bottom", M = "right", j = "left", Te = "auto", xe = [R, N, M, j], se = "start", Oe = "end", Ft = "clippingParents", Ot = "viewport", ve = "popper", Wt = "reference", lt = /* @__PURE__ */ xe.reduce(function(e, t) {
3
+ return e.concat([t + "-" + se, t + "-" + Oe]);
4
+ }, []), $t = /* @__PURE__ */ [].concat(xe, [Te]).reduce(function(e, t) {
5
+ return e.concat([t, t + "-" + se, t + "-" + Oe]);
6
+ }, []), Ht = "beforeRead", Ut = "read", Xt = "afterRead", Yt = "beforeMain", Kt = "main", Gt = "afterMain", Jt = "beforeWrite", Qt = "write", Zt = "afterWrite", Fe = [Ht, Ut, Xt, Yt, Kt, Gt, Jt, Qt, Zt];
7
7
  function H(e) {
8
8
  return e ? (e.nodeName || "").toLowerCase() : null;
9
9
  }
10
- function I(e) {
10
+ function L(e) {
11
11
  if (e == null)
12
12
  return window;
13
13
  if (e.toString() !== "[object Window]") {
@@ -16,18 +16,18 @@ function I(e) {
16
16
  }
17
17
  return e;
18
18
  }
19
- function ne(e) {
20
- var t = I(e).Element;
19
+ function oe(e) {
20
+ var t = L(e).Element;
21
21
  return e instanceof t || e instanceof Element;
22
22
  }
23
23
  function z(e) {
24
- var t = I(e).HTMLElement;
24
+ var t = L(e).HTMLElement;
25
25
  return e instanceof t || e instanceof HTMLElement;
26
26
  }
27
- function Xe(e) {
27
+ function Ye(e) {
28
28
  if (typeof ShadowRoot > "u")
29
29
  return !1;
30
- var t = I(e).ShadowRoot;
30
+ var t = L(e).ShadowRoot;
31
31
  return e instanceof t || e instanceof ShadowRoot;
32
32
  }
33
33
  function _t(e) {
@@ -72,24 +72,24 @@ const tr = {
72
72
  effect: er,
73
73
  requires: ["computeStyles"]
74
74
  };
75
- function V(e) {
75
+ function I(e) {
76
76
  return e.split("-")[0];
77
77
  }
78
- var re = Math.max, je = Math.min, se = Math.round;
79
- function Fe() {
78
+ var ne = Math.max, je = Math.min, le = Math.round;
79
+ function We() {
80
80
  var e = navigator.userAgentData;
81
81
  return e != null && e.brands ? e.brands.map(function(t) {
82
82
  return t.brand + "/" + t.version;
83
83
  }).join(" ") : navigator.userAgent;
84
84
  }
85
85
  function xt() {
86
- return !/^((?!chrome|android).)*safari/i.test(Fe());
86
+ return !/^((?!chrome|android).)*safari/i.test(We());
87
87
  }
88
- function le(e, t, r) {
88
+ function pe(e, t, r) {
89
89
  t === void 0 && (t = !1), r === void 0 && (r = !1);
90
90
  var n = e.getBoundingClientRect(), o = 1, i = 1;
91
- t && z(e) && (o = e.offsetWidth > 0 && se(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && se(n.height) / e.offsetHeight || 1);
92
- var a = ne(e) ? I(e) : window, l = a.visualViewport, s = !xt() && r, f = (n.left + (s && l ? l.offsetLeft : 0)) / o, p = (n.top + (s && l ? l.offsetTop : 0)) / i, h = n.width / o, y = n.height / i;
91
+ t && z(e) && (o = e.offsetWidth > 0 && le(n.width) / e.offsetWidth || 1, i = e.offsetHeight > 0 && le(n.height) / e.offsetHeight || 1);
92
+ var a = oe(e) ? L(e) : window, l = a.visualViewport, s = !xt() && r, f = (n.left + (s && l ? l.offsetLeft : 0)) / o, p = (n.top + (s && l ? l.offsetTop : 0)) / i, h = n.width / o, y = n.height / i;
93
93
  return {
94
94
  width: h,
95
95
  height: y,
@@ -101,8 +101,8 @@ function le(e, t, r) {
101
101
  y: p
102
102
  };
103
103
  }
104
- function Ye(e) {
105
- var t = le(e), r = e.offsetWidth, n = e.offsetHeight;
104
+ function Ke(e) {
105
+ var t = pe(e), r = e.offsetWidth, n = e.offsetHeight;
106
106
  return Math.abs(t.width - r) <= 1 && (r = t.width), Math.abs(t.height - n) <= 1 && (n = t.height), {
107
107
  x: e.offsetLeft,
108
108
  y: e.offsetTop,
@@ -110,11 +110,11 @@ function Ye(e) {
110
110
  height: n
111
111
  };
112
112
  }
113
- function $t(e, t) {
113
+ function Ct(e, t) {
114
114
  var r = t.getRootNode && t.getRootNode();
115
115
  if (e.contains(t))
116
116
  return !0;
117
- if (r && Xe(r)) {
117
+ if (r && Ye(r)) {
118
118
  var n = t;
119
119
  do {
120
120
  if (n && e.isSameNode(n))
@@ -125,13 +125,13 @@ function $t(e, t) {
125
125
  return !1;
126
126
  }
127
127
  function q(e) {
128
- return I(e).getComputedStyle(e);
128
+ return L(e).getComputedStyle(e);
129
129
  }
130
130
  function rr(e) {
131
131
  return ["table", "td", "th"].indexOf(H(e)) >= 0;
132
132
  }
133
- function Y(e) {
134
- return ((ne(e) ? e.ownerDocument : (
133
+ function K(e) {
134
+ return ((oe(e) ? e.ownerDocument : (
135
135
  // $FlowFixMe[prop-missing]
136
136
  e.document
137
137
  )) || window.document).documentElement;
@@ -143,24 +143,24 @@ function ze(e) {
143
143
  // $FlowFixMe[prop-missing]
144
144
  e.assignedSlot || // step into the shadow DOM of the parent of a slotted node
145
145
  e.parentNode || // DOM Element detected
146
- (Xe(e) ? e.host : null) || // ShadowRoot detected
146
+ (Ye(e) ? e.host : null) || // ShadowRoot detected
147
147
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
148
- Y(e)
148
+ K(e)
149
149
  );
150
150
  }
151
- function lt(e) {
151
+ function pt(e) {
152
152
  return !z(e) || // https://github.com/popperjs/popper-core/issues/837
153
153
  q(e).position === "fixed" ? null : e.offsetParent;
154
154
  }
155
155
  function nr(e) {
156
- var t = /firefox/i.test(Fe()), r = /Trident/i.test(Fe());
156
+ var t = /firefox/i.test(We()), r = /Trident/i.test(We());
157
157
  if (r && z(e)) {
158
158
  var n = q(e);
159
159
  if (n.position === "fixed")
160
160
  return null;
161
161
  }
162
162
  var o = ze(e);
163
- for (Xe(o) && (o = o.host); z(o) && ["html", "body"].indexOf(H(o)) < 0; ) {
163
+ for (Ye(o) && (o = o.host); z(o) && ["html", "body"].indexOf(H(o)) < 0; ) {
164
164
  var i = q(o);
165
165
  if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || t && i.willChange === "filter" || t && i.filter && i.filter !== "none")
166
166
  return o;
@@ -168,22 +168,22 @@ function nr(e) {
168
168
  }
169
169
  return null;
170
170
  }
171
- function $e(e) {
172
- for (var t = I(e), r = lt(e); r && rr(r) && q(r).position === "static"; )
173
- r = lt(r);
171
+ function Ce(e) {
172
+ for (var t = L(e), r = pt(e); r && rr(r) && q(r).position === "static"; )
173
+ r = pt(r);
174
174
  return r && (H(r) === "html" || H(r) === "body" && q(r).position === "static") ? t : r || nr(e) || t;
175
175
  }
176
- function Ke(e) {
176
+ function Ge(e) {
177
177
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
178
178
  }
179
- function ve(e, t, r) {
180
- return re(e, je(t, r));
179
+ function he(e, t, r) {
180
+ return ne(e, je(t, r));
181
181
  }
182
182
  function or(e, t, r) {
183
- var n = ve(e, t, r);
183
+ var n = he(e, t, r);
184
184
  return n > r ? r : n;
185
185
  }
186
- function Ct() {
186
+ function Pt() {
187
187
  return {
188
188
  top: 0,
189
189
  right: 0,
@@ -191,10 +191,10 @@ function Ct() {
191
191
  left: 0
192
192
  };
193
193
  }
194
- function Pt(e) {
195
- return Object.assign({}, Ct(), e);
194
+ function Et(e) {
195
+ return Object.assign({}, Pt(), e);
196
196
  }
197
- function Et(e, t) {
197
+ function St(e, t) {
198
198
  return t.reduce(function(r, n) {
199
199
  return r[n] = e, r;
200
200
  }, {});
@@ -202,19 +202,19 @@ function Et(e, t) {
202
202
  var ir = function(t, r) {
203
203
  return t = typeof t == "function" ? t(Object.assign({}, r.rects, {
204
204
  placement: r.placement
205
- })) : t, Pt(typeof t != "number" ? t : Et(t, xe));
205
+ })) : t, Et(typeof t != "number" ? t : St(t, xe));
206
206
  };
207
207
  function ar(e) {
208
- var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = V(r.placement), s = Ke(l), f = [j, M].indexOf(l) >= 0, p = f ? "height" : "width";
208
+ var t, r = e.state, n = e.name, o = e.options, i = r.elements.arrow, a = r.modifiersData.popperOffsets, l = I(r.placement), s = Ge(l), f = [j, M].indexOf(l) >= 0, p = f ? "height" : "width";
209
209
  if (!(!i || !a)) {
210
- var h = ir(o.padding, r), y = Ye(i), u = s === "y" ? R : j, O = s === "y" ? N : M, m = r.rects.reference[p] + r.rects.reference[s] - a[s] - r.rects.popper[p], v = a[s] - r.rects.reference[s], w = $e(i), C = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, $ = m / 2 - v / 2, d = h[u], g = C - y[p] - h[O], c = C / 2 - y[p] / 2 + $, x = ve(d, c, g), E = s;
211
- r.modifiersData[n] = (t = {}, t[E] = x, t.centerOffset = x - c, t);
210
+ var h = ir(o.padding, r), y = Ke(i), u = s === "y" ? R : j, O = s === "y" ? N : M, g = r.rects.reference[p] + r.rects.reference[s] - a[s] - r.rects.popper[p], v = a[s] - r.rects.reference[s], w = Ce(i), C = w ? s === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, x = g / 2 - v / 2, d = h[u], m = C - y[p] - h[O], c = C / 2 - y[p] / 2 + x, $ = he(d, c, m), E = s;
211
+ r.modifiersData[n] = (t = {}, t[E] = $, t.centerOffset = $ - c, t);
212
212
  }
213
213
  }
214
214
  function sr(e) {
215
215
  var t = e.state, r = e.options, n = r.element, o = n === void 0 ? "[data-popper-arrow]" : n;
216
216
  if (o != null && !(typeof o == "string" && (o = t.elements.popper.querySelector(o), !o))) {
217
- if (process.env.NODE_ENV !== "production" && (z(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !$t(t.elements.popper, o)) {
217
+ if (process.env.NODE_ENV !== "production" && (z(o) || console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "))), !Ct(t.elements.popper, o)) {
218
218
  process.env.NODE_ENV !== "production" && console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
219
219
  return;
220
220
  }
@@ -230,7 +230,7 @@ const lr = {
230
230
  requires: ["popperOffsets"],
231
231
  requiresIfExists: ["preventOverflow"]
232
232
  };
233
- function pe(e) {
233
+ function fe(e) {
234
234
  return e.split("-")[1];
235
235
  }
236
236
  var pr = {
@@ -242,33 +242,33 @@ var pr = {
242
242
  function fr(e) {
243
243
  var t = e.x, r = e.y, n = window, o = n.devicePixelRatio || 1;
244
244
  return {
245
- x: se(t * o) / o || 0,
246
- y: se(r * o) / o || 0
245
+ x: le(t * o) / o || 0,
246
+ y: le(r * o) / o || 0
247
247
  };
248
248
  }
249
- function pt(e) {
250
- var t, r = e.popper, n = e.popperRect, o = e.placement, i = e.variation, a = e.offsets, l = e.position, s = e.gpuAcceleration, f = e.adaptive, p = e.roundOffsets, h = e.isFixed, y = a.x, u = y === void 0 ? 0 : y, O = a.y, m = O === void 0 ? 0 : O, v = typeof p == "function" ? p({
249
+ function ft(e) {
250
+ var t, r = e.popper, n = e.popperRect, o = e.placement, i = e.variation, a = e.offsets, l = e.position, s = e.gpuAcceleration, f = e.adaptive, p = e.roundOffsets, h = e.isFixed, y = a.x, u = y === void 0 ? 0 : y, O = a.y, g = O === void 0 ? 0 : O, v = typeof p == "function" ? p({
251
251
  x: u,
252
- y: m
252
+ y: g
253
253
  }) : {
254
254
  x: u,
255
- y: m
255
+ y: g
256
256
  };
257
- u = v.x, m = v.y;
258
- var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), $ = j, d = R, g = window;
257
+ u = v.x, g = v.y;
258
+ var w = a.hasOwnProperty("x"), C = a.hasOwnProperty("y"), x = j, d = R, m = window;
259
259
  if (f) {
260
- var c = $e(r), x = "clientHeight", E = "clientWidth";
261
- if (c === I(r) && (c = Y(r), q(c).position !== "static" && l === "absolute" && (x = "scrollHeight", E = "scrollWidth")), c = c, o === R || (o === j || o === M) && i === we) {
260
+ var c = Ce(r), $ = "clientHeight", E = "clientWidth";
261
+ if (c === L(r) && (c = K(r), q(c).position !== "static" && l === "absolute" && ($ = "scrollHeight", E = "scrollWidth")), c = c, o === R || (o === j || o === M) && i === Oe) {
262
262
  d = N;
263
- var S = h && c === g && g.visualViewport ? g.visualViewport.height : (
263
+ var S = h && c === m && m.visualViewport ? m.visualViewport.height : (
264
264
  // $FlowFixMe[prop-missing]
265
- c[x]
265
+ c[$]
266
266
  );
267
- m -= S - n.height, m *= s ? 1 : -1;
267
+ g -= S - n.height, g *= s ? 1 : -1;
268
268
  }
269
- if (o === j || (o === R || o === N) && i === we) {
270
- $ = M;
271
- var k = h && c === g && g.visualViewport ? g.visualViewport.width : (
269
+ if (o === j || (o === R || o === N) && i === Oe) {
270
+ x = M;
271
+ var k = h && c === m && m.visualViewport ? m.visualViewport.width : (
272
272
  // $FlowFixMe[prop-missing]
273
273
  c[E]
274
274
  );
@@ -279,16 +279,16 @@ function pt(e) {
279
279
  position: l
280
280
  }, f && pr), D = p === !0 ? fr({
281
281
  x: u,
282
- y: m
282
+ y: g
283
283
  }) : {
284
284
  x: u,
285
- y: m
285
+ y: g
286
286
  };
287
- if (u = D.x, m = D.y, s) {
287
+ if (u = D.x, g = D.y, s) {
288
288
  var A;
289
- return Object.assign({}, b, (A = {}, A[d] = C ? "0" : "", A[$] = w ? "0" : "", A.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + m + "px)" : "translate3d(" + u + "px, " + m + "px, 0)", A));
289
+ return Object.assign({}, b, (A = {}, A[d] = C ? "0" : "", A[x] = w ? "0" : "", A.transform = (m.devicePixelRatio || 1) <= 1 ? "translate(" + u + "px, " + g + "px)" : "translate3d(" + u + "px, " + g + "px, 0)", A));
290
290
  }
291
- return Object.assign({}, b, (t = {}, t[d] = C ? m + "px" : "", t[$] = w ? u + "px" : "", t.transform = "", t));
291
+ return Object.assign({}, b, (t = {}, t[d] = C ? g + "px" : "", t[x] = w ? u + "px" : "", t.transform = "", t));
292
292
  }
293
293
  function ur(e) {
294
294
  var t = e.state, r = e.options, n = r.gpuAcceleration, o = n === void 0 ? !0 : n, i = r.adaptive, a = i === void 0 ? !0 : i, l = r.roundOffsets, s = l === void 0 ? !0 : l;
@@ -303,19 +303,19 @@ function ur(e) {
303
303
  `, "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
304
304
  }
305
305
  var p = {
306
- placement: V(t.placement),
307
- variation: pe(t.placement),
306
+ placement: I(t.placement),
307
+ variation: fe(t.placement),
308
308
  popper: t.elements.popper,
309
309
  popperRect: t.rects.popper,
310
310
  gpuAcceleration: o,
311
311
  isFixed: t.options.strategy === "fixed"
312
312
  };
313
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, pt(Object.assign({}, p, {
313
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, ft(Object.assign({}, p, {
314
314
  offsets: t.modifiersData.popperOffsets,
315
315
  position: t.options.strategy,
316
316
  adaptive: a,
317
317
  roundOffsets: s
318
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, pt(Object.assign({}, p, {
318
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, ft(Object.assign({}, p, {
319
319
  offsets: t.modifiersData.arrow,
320
320
  position: "absolute",
321
321
  adaptive: !1,
@@ -335,7 +335,7 @@ var De = {
335
335
  passive: !0
336
336
  };
337
337
  function cr(e) {
338
- var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s = I(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
338
+ var t = e.state, r = e.instance, n = e.options, o = n.scroll, i = o === void 0 ? !0 : o, a = n.resize, l = a === void 0 ? !0 : a, s = L(t.elements.popper), f = [].concat(t.scrollParents.reference, t.scrollParents.popper);
339
339
  return i && f.forEach(function(p) {
340
340
  p.addEventListener("scroll", r.update, De);
341
341
  }), l && s.addEventListener("resize", r.update, De), function() {
@@ -364,27 +364,27 @@ function Ae(e) {
364
364
  return hr[t];
365
365
  });
366
366
  }
367
- var mr = {
367
+ var gr = {
368
368
  start: "end",
369
369
  end: "start"
370
370
  };
371
- function ft(e) {
371
+ function ut(e) {
372
372
  return e.replace(/start|end/g, function(t) {
373
- return mr[t];
373
+ return gr[t];
374
374
  });
375
375
  }
376
- function Ge(e) {
377
- var t = I(e), r = t.pageXOffset, n = t.pageYOffset;
376
+ function Je(e) {
377
+ var t = L(e), r = t.pageXOffset, n = t.pageYOffset;
378
378
  return {
379
379
  scrollLeft: r,
380
380
  scrollTop: n
381
381
  };
382
382
  }
383
- function Je(e) {
384
- return le(Y(e)).left + Ge(e).scrollLeft;
383
+ function Qe(e) {
384
+ return pe(K(e)).left + Je(e).scrollLeft;
385
385
  }
386
- function gr(e, t) {
387
- var r = I(e), n = Y(e), o = r.visualViewport, i = n.clientWidth, a = n.clientHeight, l = 0, s = 0;
386
+ function mr(e, t) {
387
+ var r = L(e), n = K(e), o = r.visualViewport, i = n.clientWidth, a = n.clientHeight, l = 0, s = 0;
388
388
  if (o) {
389
389
  i = o.width, a = o.height;
390
390
  var f = xt();
@@ -393,36 +393,36 @@ function gr(e, t) {
393
393
  return {
394
394
  width: i,
395
395
  height: a,
396
- x: l + Je(e),
396
+ x: l + Qe(e),
397
397
  y: s
398
398
  };
399
399
  }
400
400
  function br(e) {
401
- var t, r = Y(e), n = Ge(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = re(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = re(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Je(e), s = -n.scrollTop;
402
- return q(o || r).direction === "rtl" && (l += re(r.clientWidth, o ? o.clientWidth : 0) - i), {
401
+ var t, r = K(e), n = Je(e), o = (t = e.ownerDocument) == null ? void 0 : t.body, i = ne(r.scrollWidth, r.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), a = ne(r.scrollHeight, r.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), l = -n.scrollLeft + Qe(e), s = -n.scrollTop;
402
+ return q(o || r).direction === "rtl" && (l += ne(r.clientWidth, o ? o.clientWidth : 0) - i), {
403
403
  width: i,
404
404
  height: a,
405
405
  x: l,
406
406
  y: s
407
407
  };
408
408
  }
409
- function Qe(e) {
409
+ function Ze(e) {
410
410
  var t = q(e), r = t.overflow, n = t.overflowX, o = t.overflowY;
411
411
  return /auto|scroll|overlay|hidden/.test(r + o + n);
412
412
  }
413
- function St(e) {
414
- return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : z(e) && Qe(e) ? e : St(ze(e));
413
+ function kt(e) {
414
+ return ["html", "body", "#document"].indexOf(H(e)) >= 0 ? e.ownerDocument.body : z(e) && Ze(e) ? e : kt(ze(e));
415
415
  }
416
- function he(e, t) {
416
+ function ge(e, t) {
417
417
  var r;
418
418
  t === void 0 && (t = []);
419
- var n = St(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = I(n), a = o ? [i].concat(i.visualViewport || [], Qe(n) ? n : []) : n, l = t.concat(a);
419
+ var n = kt(e), o = n === ((r = e.ownerDocument) == null ? void 0 : r.body), i = L(n), a = o ? [i].concat(i.visualViewport || [], Ze(n) ? n : []) : n, l = t.concat(a);
420
420
  return o ? l : (
421
421
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
422
- l.concat(he(ze(a)))
422
+ l.concat(ge(ze(a)))
423
423
  );
424
424
  }
425
- function We(e) {
425
+ function He(e) {
426
426
  return Object.assign({}, e, {
427
427
  left: e.x,
428
428
  top: e.y,
@@ -431,27 +431,27 @@ function We(e) {
431
431
  });
432
432
  }
433
433
  function yr(e, t) {
434
- var r = le(e, !1, t === "fixed");
434
+ var r = pe(e, !1, t === "fixed");
435
435
  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;
436
436
  }
437
- function ut(e, t, r) {
438
- return t === wt ? We(gr(e, r)) : ne(t) ? yr(t, r) : We(br(Y(e)));
437
+ function dt(e, t, r) {
438
+ return t === Ot ? He(mr(e, r)) : oe(t) ? yr(t, r) : He(br(K(e)));
439
439
  }
440
440
  function wr(e) {
441
- var t = he(ze(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && z(e) ? $e(e) : e;
442
- return ne(n) ? t.filter(function(o) {
443
- return ne(o) && $t(o, n) && H(o) !== "body";
441
+ var t = ge(ze(e)), r = ["absolute", "fixed"].indexOf(q(e).position) >= 0, n = r && z(e) ? Ce(e) : e;
442
+ return oe(n) ? t.filter(function(o) {
443
+ return oe(o) && Ct(o, n) && H(o) !== "body";
444
444
  }) : [];
445
445
  }
446
446
  function Or(e, t, r, n) {
447
447
  var o = t === "clippingParents" ? wr(e) : [].concat(t), i = [].concat(o, [r]), a = i[0], l = i.reduce(function(s, f) {
448
- var p = ut(e, f, n);
449
- return s.top = re(p.top, s.top), s.right = je(p.right, s.right), s.bottom = je(p.bottom, s.bottom), s.left = re(p.left, s.left), s;
450
- }, ut(e, a, n));
448
+ var p = dt(e, f, n);
449
+ return s.top = ne(p.top, s.top), s.right = je(p.right, s.right), s.bottom = je(p.bottom, s.bottom), s.left = ne(p.left, s.left), s;
450
+ }, dt(e, a, n));
451
451
  return l.width = l.right - l.left, l.height = l.bottom - l.top, l.x = l.left, l.y = l.top, l;
452
452
  }
453
- function kt(e) {
454
- var t = e.reference, r = e.element, n = e.placement, o = n ? V(n) : null, i = n ? pe(n) : null, a = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, s;
453
+ function Bt(e) {
454
+ var t = e.reference, r = e.element, n = e.placement, o = n ? I(n) : null, i = n ? fe(n) : null, a = t.x + t.width / 2 - r.width / 2, l = t.y + t.height / 2 - r.height / 2, s;
455
455
  switch (o) {
456
456
  case R:
457
457
  s = {
@@ -483,111 +483,111 @@ function kt(e) {
483
483
  y: t.y
484
484
  };
485
485
  }
486
- var f = o ? Ke(o) : null;
486
+ var f = o ? Ge(o) : null;
487
487
  if (f != null) {
488
488
  var p = f === "y" ? "height" : "width";
489
489
  switch (i) {
490
- case ae:
490
+ case se:
491
491
  s[f] = s[f] - (t[p] / 2 - r[p] / 2);
492
492
  break;
493
- case we:
493
+ case Oe:
494
494
  s[f] = s[f] + (t[p] / 2 - r[p] / 2);
495
495
  break;
496
496
  }
497
497
  }
498
498
  return s;
499
499
  }
500
- function Oe(e, t) {
500
+ function $e(e, t) {
501
501
  t === void 0 && (t = {});
502
- var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ? Ft : l, f = r.rootBoundary, p = f === void 0 ? wt : f, h = r.elementContext, y = h === void 0 ? ce : h, u = r.altBoundary, O = u === void 0 ? !1 : u, m = r.padding, v = m === void 0 ? 0 : m, w = Pt(typeof v != "number" ? v : Et(v, xe)), C = y === ce ? Wt : ce, $ = e.rects.popper, d = e.elements[O ? C : y], g = Or(ne(d) ? d : d.contextElement || Y(e.elements.popper), s, p, a), c = le(e.elements.reference), x = kt({
502
+ var r = t, n = r.placement, o = n === void 0 ? e.placement : n, i = r.strategy, a = i === void 0 ? e.strategy : i, l = r.boundary, s = l === void 0 ? Ft : l, f = r.rootBoundary, p = f === void 0 ? Ot : f, h = r.elementContext, y = h === void 0 ? ve : h, u = r.altBoundary, O = u === void 0 ? !1 : u, g = r.padding, v = g === void 0 ? 0 : g, w = Et(typeof v != "number" ? v : St(v, xe)), C = y === ve ? Wt : ve, x = e.rects.popper, d = e.elements[O ? C : y], m = Or(oe(d) ? d : d.contextElement || K(e.elements.popper), s, p, a), c = pe(e.elements.reference), $ = Bt({
503
503
  reference: c,
504
- element: $,
504
+ element: x,
505
505
  strategy: "absolute",
506
506
  placement: o
507
- }), E = We(Object.assign({}, $, x)), S = y === ce ? E : c, k = {
508
- top: g.top - S.top + w.top,
509
- bottom: S.bottom - g.bottom + w.bottom,
510
- left: g.left - S.left + w.left,
511
- right: S.right - g.right + w.right
507
+ }), E = He(Object.assign({}, x, $)), S = y === ve ? E : c, k = {
508
+ top: m.top - S.top + w.top,
509
+ bottom: S.bottom - m.bottom + w.bottom,
510
+ left: m.left - S.left + w.left,
511
+ right: S.right - m.right + w.right
512
512
  }, b = e.modifiersData.offset;
513
- if (y === ce && b) {
513
+ if (y === ve && b) {
514
514
  var D = b[o];
515
515
  Object.keys(k).forEach(function(A) {
516
- var K = [M, N].indexOf(A) >= 0 ? 1 : -1, G = [R, N].indexOf(A) >= 0 ? "y" : "x";
517
- k[A] += D[G] * K;
516
+ var G = [M, N].indexOf(A) >= 0 ? 1 : -1, J = [R, N].indexOf(A) >= 0 ? "y" : "x";
517
+ k[A] += D[J] * G;
518
518
  });
519
519
  }
520
520
  return k;
521
521
  }
522
- function xr(e, t) {
522
+ function $r(e, t) {
523
523
  t === void 0 && (t = {});
524
- var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, a = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? Ot : s, p = pe(n), h = p ? l ? st : st.filter(function(O) {
525
- return pe(O) === p;
524
+ var r = t, n = r.placement, o = r.boundary, i = r.rootBoundary, a = r.padding, l = r.flipVariations, s = r.allowedAutoPlacements, f = s === void 0 ? $t : s, p = fe(n), h = p ? l ? lt : lt.filter(function(O) {
525
+ return fe(O) === p;
526
526
  }) : xe, y = h.filter(function(O) {
527
527
  return f.indexOf(O) >= 0;
528
528
  });
529
529
  y.length === 0 && (y = h, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
530
- var u = y.reduce(function(O, m) {
531
- return O[m] = Oe(e, {
532
- placement: m,
530
+ var u = y.reduce(function(O, g) {
531
+ return O[g] = $e(e, {
532
+ placement: g,
533
533
  boundary: o,
534
534
  rootBoundary: i,
535
535
  padding: a
536
- })[V(m)], O;
536
+ })[I(g)], O;
537
537
  }, {});
538
- return Object.keys(u).sort(function(O, m) {
539
- return u[O] - u[m];
538
+ return Object.keys(u).sort(function(O, g) {
539
+ return u[O] - u[g];
540
540
  });
541
541
  }
542
- function $r(e) {
543
- if (V(e) === Te)
542
+ function xr(e) {
543
+ if (I(e) === Te)
544
544
  return [];
545
545
  var t = Ae(e);
546
- return [ft(e), t, ft(t)];
546
+ return [ut(e), t, ut(t)];
547
547
  }
548
548
  function Cr(e) {
549
549
  var t = e.state, r = e.options, n = e.name;
550
550
  if (!t.modifiersData[n]._skip) {
551
- for (var o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !0 : a, s = r.fallbackPlacements, f = r.padding, p = r.boundary, h = r.rootBoundary, y = r.altBoundary, u = r.flipVariations, O = u === void 0 ? !0 : u, m = r.allowedAutoPlacements, v = t.options.placement, w = V(v), C = w === v, $ = s || (C || !O ? [Ae(v)] : $r(v)), d = [v].concat($).reduce(function(oe, U) {
552
- return oe.concat(V(U) === Te ? xr(t, {
553
- placement: U,
551
+ for (var o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !0 : a, s = r.fallbackPlacements, f = r.padding, p = r.boundary, h = r.rootBoundary, y = r.altBoundary, u = r.flipVariations, O = u === void 0 ? !0 : u, g = r.allowedAutoPlacements, v = t.options.placement, w = I(v), C = w === v, x = s || (C || !O ? [Ae(v)] : xr(v)), d = [v].concat(x).reduce(function(ie, X) {
552
+ return ie.concat(I(X) === Te ? $r(t, {
553
+ placement: X,
554
554
  boundary: p,
555
555
  rootBoundary: h,
556
556
  padding: f,
557
557
  flipVariations: O,
558
- allowedAutoPlacements: m
559
- }) : U);
560
- }, []), g = t.rects.reference, c = t.rects.popper, x = /* @__PURE__ */ new Map(), E = !0, S = d[0], k = 0; k < d.length; k++) {
561
- var b = d[k], D = V(b), A = pe(b) === ae, K = [R, N].indexOf(D) >= 0, G = K ? "width" : "height", T = Oe(t, {
558
+ allowedAutoPlacements: g
559
+ }) : X);
560
+ }, []), m = t.rects.reference, c = t.rects.popper, $ = /* @__PURE__ */ new Map(), E = !0, S = d[0], k = 0; k < d.length; k++) {
561
+ var b = d[k], D = I(b), A = fe(b) === se, G = [R, N].indexOf(D) >= 0, J = G ? "width" : "height", T = $e(t, {
562
562
  placement: b,
563
563
  boundary: p,
564
564
  rootBoundary: h,
565
565
  altBoundary: y,
566
566
  padding: f
567
- }), L = K ? A ? M : j : A ? N : R;
568
- g[G] > c[G] && (L = Ae(L));
569
- var Pe = Ae(L), J = [];
570
- if (i && J.push(T[D] <= 0), l && J.push(T[L] <= 0, T[Pe] <= 0), J.every(function(oe) {
571
- return oe;
567
+ }), V = G ? A ? M : j : A ? N : R;
568
+ m[J] > c[J] && (V = Ae(V));
569
+ var Pe = Ae(V), Q = [];
570
+ if (i && Q.push(T[D] <= 0), l && Q.push(T[V] <= 0, T[Pe] <= 0), Q.every(function(ie) {
571
+ return ie;
572
572
  })) {
573
573
  S = b, E = !1;
574
574
  break;
575
575
  }
576
- x.set(b, J);
576
+ $.set(b, Q);
577
577
  }
578
578
  if (E)
579
- for (var Ee = O ? 3 : 1, Ne = function(U) {
580
- var ue = d.find(function(ke) {
581
- var Q = x.get(ke);
582
- if (Q)
583
- return Q.slice(0, U).every(function(Me) {
584
- return Me;
579
+ for (var Ee = O ? 3 : 1, Me = function(X) {
580
+ var de = d.find(function(ke) {
581
+ var Z = $.get(ke);
582
+ if (Z)
583
+ return Z.slice(0, X).every(function(Le) {
584
+ return Le;
585
585
  });
586
586
  });
587
- if (ue)
588
- return S = ue, "break";
589
- }, fe = Ee; fe > 0; fe--) {
590
- var Se = Ne(fe);
587
+ if (de)
588
+ return S = de, "break";
589
+ }, ue = Ee; ue > 0; ue--) {
590
+ var Se = Me(ue);
591
591
  if (Se === "break")
592
592
  break;
593
593
  }
@@ -604,7 +604,7 @@ const Pr = {
604
604
  _skip: !1
605
605
  }
606
606
  };
607
- function dt(e, t, r) {
607
+ function ct(e, t, r) {
608
608
  return r === void 0 && (r = {
609
609
  x: 0,
610
610
  y: 0
@@ -615,17 +615,17 @@ function dt(e, t, r) {
615
615
  left: e.left - t.width - r.x
616
616
  };
617
617
  }
618
- function ct(e) {
618
+ function vt(e) {
619
619
  return [R, M, N, j].some(function(t) {
620
620
  return e[t] >= 0;
621
621
  });
622
622
  }
623
623
  function Er(e) {
624
- var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = Oe(t, {
624
+ var t = e.state, r = e.name, n = t.rects.reference, o = t.rects.popper, i = t.modifiersData.preventOverflow, a = $e(t, {
625
625
  elementContext: "reference"
626
- }), l = Oe(t, {
626
+ }), l = $e(t, {
627
627
  altBoundary: !0
628
- }), s = dt(a, n), f = dt(l, o, i), p = ct(s), h = ct(f);
628
+ }), s = ct(a, n), f = ct(l, o, i), p = vt(s), h = vt(f);
629
629
  t.modifiersData[r] = {
630
630
  referenceClippingOffsets: s,
631
631
  popperEscapeOffsets: f,
@@ -644,7 +644,7 @@ const Sr = {
644
644
  fn: Er
645
645
  };
646
646
  function kr(e, t, r) {
647
- var n = V(e), o = [j, R].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
647
+ var n = I(e), o = [j, R].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, t, {
648
648
  placement: e
649
649
  })) : r, a = i[0], l = i[1];
650
650
  return a = a || 0, l = (l || 0) * o, [j, M].indexOf(n) >= 0 ? {
@@ -656,7 +656,7 @@ function kr(e, t, r) {
656
656
  };
657
657
  }
658
658
  function Br(e) {
659
- var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a = Ot.reduce(function(p, h) {
659
+ var t = e.state, r = e.options, n = e.name, o = r.offset, i = o === void 0 ? [0, 0] : o, a = $t.reduce(function(p, h) {
660
660
  return p[h] = kr(h, t.rects, i), p;
661
661
  }, {}), l = a[t.placement], s = l.x, f = l.y;
662
662
  t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += s, t.modifiersData.popperOffsets.y += f), t.modifiersData[n] = a;
@@ -670,7 +670,7 @@ const Dr = {
670
670
  };
671
671
  function Ar(e) {
672
672
  var t = e.state, r = e.name;
673
- t.modifiersData[r] = kt({
673
+ t.modifiersData[r] = Bt({
674
674
  reference: t.rects.reference,
675
675
  element: t.rects.popper,
676
676
  strategy: "absolute",
@@ -688,14 +688,14 @@ function jr(e) {
688
688
  return e === "x" ? "y" : "x";
689
689
  }
690
690
  function Tr(e) {
691
- var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y, O = r.tetherOffset, m = O === void 0 ? 0 : O, v = Oe(t, {
691
+ var t = e.state, r = e.options, n = e.name, o = r.mainAxis, i = o === void 0 ? !0 : o, a = r.altAxis, l = a === void 0 ? !1 : a, s = r.boundary, f = r.rootBoundary, p = r.altBoundary, h = r.padding, y = r.tether, u = y === void 0 ? !0 : y, O = r.tetherOffset, g = O === void 0 ? 0 : O, v = $e(t, {
692
692
  boundary: s,
693
693
  rootBoundary: f,
694
694
  padding: h,
695
695
  altBoundary: p
696
- }), w = V(t.placement), C = pe(t.placement), $ = !C, d = Ke(w), g = jr(d), c = t.modifiersData.popperOffsets, x = t.rects.reference, E = t.rects.popper, S = typeof m == "function" ? m(Object.assign({}, t.rects, {
696
+ }), w = I(t.placement), C = fe(t.placement), x = !C, d = Ge(w), m = jr(d), c = t.modifiersData.popperOffsets, $ = t.rects.reference, E = t.rects.popper, S = typeof g == "function" ? g(Object.assign({}, t.rects, {
697
697
  placement: t.placement
698
- })) : m, k = typeof S == "number" ? {
698
+ })) : g, k = typeof S == "number" ? {
699
699
  mainAxis: S,
700
700
  altAxis: S
701
701
  } : Object.assign({
@@ -707,15 +707,15 @@ function Tr(e) {
707
707
  };
708
708
  if (c) {
709
709
  if (i) {
710
- var A, K = d === "y" ? R : j, G = d === "y" ? N : M, T = d === "y" ? "height" : "width", L = c[d], Pe = L + v[K], J = L - v[G], Ee = u ? -E[T] / 2 : 0, Ne = C === ae ? x[T] : E[T], fe = C === ae ? -E[T] : -x[T], Se = t.elements.arrow, oe = u && Se ? Ye(Se) : {
710
+ var A, G = d === "y" ? R : j, J = d === "y" ? N : M, T = d === "y" ? "height" : "width", V = c[d], Pe = V + v[G], Q = V - v[J], Ee = u ? -E[T] / 2 : 0, Me = C === se ? $[T] : E[T], ue = C === se ? -E[T] : -$[T], Se = t.elements.arrow, ie = u && Se ? Ke(Se) : {
711
711
  width: 0,
712
712
  height: 0
713
- }, U = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ct(), ue = U[K], ke = U[G], Q = ve(0, x[T], oe[T]), Me = $ ? x[T] / 2 - Ee - Q - ue - k.mainAxis : Ne - Q - ue - k.mainAxis, At = $ ? -x[T] / 2 + Ee + Q + ke + k.mainAxis : fe + Q + ke + k.mainAxis, Ie = t.elements.arrow && $e(t.elements.arrow), Rt = Ie ? d === "y" ? Ie.clientTop || 0 : Ie.clientLeft || 0 : 0, Ze = (A = b == null ? void 0 : b[d]) != null ? A : 0, jt = L + Me - Ze - Rt, Tt = L + At - Ze, _e = ve(u ? je(Pe, jt) : Pe, L, u ? re(J, Tt) : J);
714
- c[d] = _e, D[d] = _e - L;
713
+ }, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Pt(), de = X[G], ke = X[J], Z = he(0, $[T], ie[T]), Le = x ? $[T] / 2 - Ee - Z - de - k.mainAxis : Me - Z - de - k.mainAxis, Rt = x ? -$[T] / 2 + Ee + Z + ke + k.mainAxis : ue + Z + ke + k.mainAxis, Ve = t.elements.arrow && Ce(t.elements.arrow), jt = Ve ? d === "y" ? Ve.clientTop || 0 : Ve.clientLeft || 0 : 0, _e = (A = b == null ? void 0 : b[d]) != null ? A : 0, Tt = V + Le - _e - jt, zt = V + Rt - _e, et = he(u ? je(Pe, Tt) : Pe, V, u ? ne(Q, zt) : Q);
714
+ c[d] = et, D[d] = et - V;
715
715
  }
716
716
  if (l) {
717
- var et, zt = d === "x" ? R : j, Nt = d === "x" ? N : M, Z = c[g], Be = g === "y" ? "height" : "width", tt = Z + v[zt], rt = Z - v[Nt], Le = [R, j].indexOf(w) !== -1, nt = (et = b == null ? void 0 : b[g]) != null ? et : 0, ot = Le ? tt : Z - x[Be] - E[Be] - nt + k.altAxis, it = Le ? Z + x[Be] + E[Be] - nt - k.altAxis : rt, at = u && Le ? or(ot, Z, it) : ve(u ? ot : tt, Z, u ? it : rt);
718
- c[g] = at, D[g] = at - Z;
717
+ var tt, Nt = d === "x" ? R : j, Mt = d === "x" ? N : M, _ = c[m], Be = m === "y" ? "height" : "width", rt = _ + v[Nt], nt = _ - v[Mt], Ie = [R, j].indexOf(w) !== -1, ot = (tt = b == null ? void 0 : b[m]) != null ? tt : 0, it = Ie ? rt : _ - $[Be] - E[Be] - ot + k.altAxis, at = Ie ? _ + $[Be] + E[Be] - ot - k.altAxis : nt, st = u && Ie ? or(it, _, at) : he(u ? it : rt, _, u ? at : nt);
718
+ c[m] = st, D[m] = st - _;
719
719
  }
720
720
  t.modifiersData[n] = D;
721
721
  }
@@ -734,15 +734,15 @@ function Nr(e) {
734
734
  };
735
735
  }
736
736
  function Mr(e) {
737
- return e === I(e) || !z(e) ? Ge(e) : Nr(e);
737
+ return e === L(e) || !z(e) ? Je(e) : Nr(e);
738
738
  }
739
- function Ir(e) {
740
- var t = e.getBoundingClientRect(), r = se(t.width) / e.offsetWidth || 1, n = se(t.height) / e.offsetHeight || 1;
739
+ function Lr(e) {
740
+ var t = e.getBoundingClientRect(), r = le(t.width) / e.offsetWidth || 1, n = le(t.height) / e.offsetHeight || 1;
741
741
  return r !== 1 || n !== 1;
742
742
  }
743
- function Lr(e, t, r) {
743
+ function Vr(e, t, r) {
744
744
  r === void 0 && (r = !1);
745
- var n = z(t), o = z(t) && Ir(t), i = Y(t), a = le(e, o, r), l = {
745
+ var n = z(t), o = z(t) && Lr(t), i = K(t), a = pe(e, o, r), l = {
746
746
  scrollLeft: 0,
747
747
  scrollTop: 0
748
748
  }, s = {
@@ -750,14 +750,14 @@ function Lr(e, t, r) {
750
750
  y: 0
751
751
  };
752
752
  return (n || !n && !r) && ((H(t) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
753
- Qe(i)) && (l = Mr(t)), z(t) ? (s = le(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Je(i))), {
753
+ Ze(i)) && (l = Mr(t)), z(t) ? (s = pe(t, !0), s.x += t.clientLeft, s.y += t.clientTop) : i && (s.x = Qe(i))), {
754
754
  x: a.left + l.scrollLeft - s.x,
755
755
  y: a.top + l.scrollTop - s.y,
756
756
  width: a.width,
757
757
  height: a.height
758
758
  };
759
759
  }
760
- function Vr(e) {
760
+ function Ir(e) {
761
761
  var t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
762
762
  e.forEach(function(i) {
763
763
  t.set(i.name, i);
@@ -777,8 +777,8 @@ function Vr(e) {
777
777
  }), n;
778
778
  }
779
779
  function qr(e) {
780
- var t = Vr(e);
781
- return qe.reduce(function(r, n) {
780
+ var t = Ir(e);
781
+ return Fe.reduce(function(r, n) {
782
782
  return r.concat(t.filter(function(o) {
783
783
  return o.phase === n;
784
784
  }));
@@ -794,53 +794,53 @@ function Fr(e) {
794
794
  })), t;
795
795
  };
796
796
  }
797
- function X(e) {
797
+ function Y(e) {
798
798
  for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; n < t; n++)
799
799
  r[n - 1] = arguments[n];
800
800
  return [].concat(r).reduce(function(o, i) {
801
801
  return o.replace(/%s/, i);
802
802
  }, e);
803
803
  }
804
- var _ = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Wr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', vt = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
804
+ var ee = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s', Wr = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available', ht = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
805
805
  function Hr(e) {
806
806
  e.forEach(function(t) {
807
- [].concat(Object.keys(t), vt).filter(function(r, n, o) {
807
+ [].concat(Object.keys(t), ht).filter(function(r, n, o) {
808
808
  return o.indexOf(r) === n;
809
809
  }).forEach(function(r) {
810
810
  switch (r) {
811
811
  case "name":
812
- typeof t.name != "string" && console.error(X(_, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
812
+ typeof t.name != "string" && console.error(Y(ee, String(t.name), '"name"', '"string"', '"' + String(t.name) + '"'));
813
813
  break;
814
814
  case "enabled":
815
- typeof t.enabled != "boolean" && console.error(X(_, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
815
+ typeof t.enabled != "boolean" && console.error(Y(ee, t.name, '"enabled"', '"boolean"', '"' + String(t.enabled) + '"'));
816
816
  break;
817
817
  case "phase":
818
- qe.indexOf(t.phase) < 0 && console.error(X(_, t.name, '"phase"', "either " + qe.join(", "), '"' + String(t.phase) + '"'));
818
+ Fe.indexOf(t.phase) < 0 && console.error(Y(ee, t.name, '"phase"', "either " + Fe.join(", "), '"' + String(t.phase) + '"'));
819
819
  break;
820
820
  case "fn":
821
- typeof t.fn != "function" && console.error(X(_, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
821
+ typeof t.fn != "function" && console.error(Y(ee, t.name, '"fn"', '"function"', '"' + String(t.fn) + '"'));
822
822
  break;
823
823
  case "effect":
824
- t.effect != null && typeof t.effect != "function" && console.error(X(_, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
824
+ t.effect != null && typeof t.effect != "function" && console.error(Y(ee, t.name, '"effect"', '"function"', '"' + String(t.fn) + '"'));
825
825
  break;
826
826
  case "requires":
827
- t.requires != null && !Array.isArray(t.requires) && console.error(X(_, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
827
+ t.requires != null && !Array.isArray(t.requires) && console.error(Y(ee, t.name, '"requires"', '"array"', '"' + String(t.requires) + '"'));
828
828
  break;
829
829
  case "requiresIfExists":
830
- Array.isArray(t.requiresIfExists) || console.error(X(_, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
830
+ Array.isArray(t.requiresIfExists) || console.error(Y(ee, t.name, '"requiresIfExists"', '"array"', '"' + String(t.requiresIfExists) + '"'));
831
831
  break;
832
832
  case "options":
833
833
  case "data":
834
834
  break;
835
835
  default:
836
- console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + vt.map(function(n) {
836
+ console.error('PopperJS: an invalid property has been provided to the "' + t.name + '" modifier, valid properties are ' + ht.map(function(n) {
837
837
  return '"' + n + '"';
838
838
  }).join(", ") + '; but "' + r + '" was provided.');
839
839
  }
840
840
  t.requires && t.requires.forEach(function(n) {
841
841
  e.find(function(o) {
842
842
  return o.name === n;
843
- }) == null && console.error(X(Wr, String(t.name), n, n));
843
+ }) == null && console.error(Y(Wr, String(t.name), n, n));
844
844
  });
845
845
  });
846
846
  });
@@ -865,12 +865,12 @@ function Xr(e) {
865
865
  return t[r];
866
866
  });
867
867
  }
868
- var ht = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Yr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
868
+ var gt = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.", Yr = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.", mt = {
869
869
  placement: "bottom",
870
870
  modifiers: [],
871
871
  strategy: "absolute"
872
872
  };
873
- function gt() {
873
+ function bt() {
874
874
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
875
875
  t[r] = arguments[r];
876
876
  return !t.some(function(n) {
@@ -897,27 +897,27 @@ function Kr(e) {
897
897
  state: p,
898
898
  setOptions: function(w) {
899
899
  var C = typeof w == "function" ? w(p.options) : w;
900
- m(), p.options = Object.assign({}, i, p.options, C), p.scrollParents = {
901
- reference: ne(l) ? he(l) : l.contextElement ? he(l.contextElement) : [],
902
- popper: he(s)
900
+ g(), p.options = Object.assign({}, i, p.options, C), p.scrollParents = {
901
+ reference: oe(l) ? ge(l) : l.contextElement ? ge(l.contextElement) : [],
902
+ popper: ge(s)
903
903
  };
904
- var $ = qr(Xr([].concat(n, p.options.modifiers)));
905
- if (p.orderedModifiers = $.filter(function(b) {
904
+ var x = qr(Xr([].concat(n, p.options.modifiers)));
905
+ if (p.orderedModifiers = x.filter(function(b) {
906
906
  return b.enabled;
907
907
  }), process.env.NODE_ENV !== "production") {
908
- var d = Ur([].concat($, p.options.modifiers), function(b) {
908
+ var d = Ur([].concat(x, p.options.modifiers), function(b) {
909
909
  var D = b.name;
910
910
  return D;
911
911
  });
912
- if (Hr(d), V(p.options.placement) === Te) {
913
- var g = p.orderedModifiers.find(function(b) {
912
+ if (Hr(d), I(p.options.placement) === Te) {
913
+ var m = p.orderedModifiers.find(function(b) {
914
914
  var D = b.name;
915
915
  return D === "flip";
916
916
  });
917
- g || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
917
+ m || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
918
918
  }
919
- var c = q(s), x = c.marginTop, E = c.marginRight, S = c.marginBottom, k = c.marginLeft;
920
- [x, E, S, k].some(function(b) {
919
+ var c = q(s), $ = c.marginTop, E = c.marginRight, S = c.marginBottom, k = c.marginLeft;
920
+ [$, E, S, k].some(function(b) {
921
921
  return parseFloat(b);
922
922
  }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
923
923
  }
@@ -930,28 +930,28 @@ function Kr(e) {
930
930
  // prefer the async Popper#update method
931
931
  forceUpdate: function() {
932
932
  if (!y) {
933
- var w = p.elements, C = w.reference, $ = w.popper;
934
- if (!gt(C, $)) {
935
- process.env.NODE_ENV !== "production" && console.error(ht);
933
+ var w = p.elements, C = w.reference, x = w.popper;
934
+ if (!bt(C, x)) {
935
+ process.env.NODE_ENV !== "production" && console.error(gt);
936
936
  return;
937
937
  }
938
938
  p.rects = {
939
- reference: Lr(C, $e($), p.options.strategy === "fixed"),
940
- popper: Ye($)
939
+ reference: Vr(C, Ce(x), p.options.strategy === "fixed"),
940
+ popper: Ke(x)
941
941
  }, p.reset = !1, p.placement = p.options.placement, p.orderedModifiers.forEach(function(b) {
942
942
  return p.modifiersData[b.name] = Object.assign({}, b.data);
943
943
  });
944
- for (var d = 0, g = 0; g < p.orderedModifiers.length; g++) {
944
+ for (var d = 0, m = 0; m < p.orderedModifiers.length; m++) {
945
945
  if (process.env.NODE_ENV !== "production" && (d += 1, d > 100)) {
946
946
  console.error(Yr);
947
947
  break;
948
948
  }
949
949
  if (p.reset === !0) {
950
- p.reset = !1, g = -1;
950
+ p.reset = !1, m = -1;
951
951
  continue;
952
952
  }
953
- var c = p.orderedModifiers[g], x = c.fn, E = c.options, S = E === void 0 ? {} : E, k = c.name;
954
- typeof x == "function" && (p = x({
953
+ var c = p.orderedModifiers[m], $ = c.fn, E = c.options, S = E === void 0 ? {} : E, k = c.name;
954
+ typeof $ == "function" && (p = $({
955
955
  state: p,
956
956
  options: S,
957
957
  name: k,
@@ -968,30 +968,30 @@ function Kr(e) {
968
968
  });
969
969
  }),
970
970
  destroy: function() {
971
- m(), y = !0;
971
+ g(), y = !0;
972
972
  }
973
973
  };
974
- if (!gt(l, s))
975
- return process.env.NODE_ENV !== "production" && console.error(ht), u;
974
+ if (!bt(l, s))
975
+ return process.env.NODE_ENV !== "production" && console.error(gt), u;
976
976
  u.setOptions(f).then(function(v) {
977
977
  !y && f.onFirstUpdate && f.onFirstUpdate(v);
978
978
  });
979
979
  function O() {
980
980
  p.orderedModifiers.forEach(function(v) {
981
- var w = v.name, C = v.options, $ = C === void 0 ? {} : C, d = v.effect;
981
+ var w = v.name, C = v.options, x = C === void 0 ? {} : C, d = v.effect;
982
982
  if (typeof d == "function") {
983
- var g = d({
983
+ var m = d({
984
984
  state: p,
985
985
  name: w,
986
986
  instance: u,
987
- options: $
987
+ options: x
988
988
  }), c = function() {
989
989
  };
990
- h.push(g || c);
990
+ h.push(m || c);
991
991
  }
992
992
  });
993
993
  }
994
- function m() {
994
+ function g() {
995
995
  h.forEach(function(v) {
996
996
  return v();
997
997
  }), h = [];
@@ -1036,7 +1036,7 @@ const Qr = {
1036
1036
  return this.variant ? !this.variantClassPrefix || this.hasVariantPrefix ? this.variant : `${this.variantClassPrefix}-${this.variant}` : "";
1037
1037
  }
1038
1038
  }
1039
- }, _r = Mt({
1039
+ }, _r = U({
1040
1040
  mixins: [Qr, Zr],
1041
1041
  props: {
1042
1042
  active: Boolean,
@@ -1072,16 +1072,16 @@ const Qr = {
1072
1072
  return r;
1073
1073
  };
1074
1074
  function tn(e, t, r, n, o, i) {
1075
- return W(), ee(He(e.component), me(e.$attrs, {
1075
+ return W(), te(Ue(e.component), me(e.$attrs, {
1076
1076
  disabled: e.disabled,
1077
1077
  class: e.classes,
1078
1078
  role: "button"
1079
1079
  }), {
1080
- default: B(() => [P(e.$slots, "default", {}, () => [ge(be(e.label), 1)])]),
1080
+ default: B(() => [P(e.$slots, "default", {}, () => [be(ye(e.label), 1)])]),
1081
1081
  _: 3
1082
1082
  }, 16, ["disabled", "class"]);
1083
1083
  }
1084
- const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = {
1084
+ const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = U({
1085
1085
  props: {
1086
1086
  componentPrefix: String,
1087
1087
  size: String,
@@ -1092,28 +1092,38 @@ const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = {
1092
1092
  return this.sizePrefix || this.componentPrefix;
1093
1093
  },
1094
1094
  hasSizeablePrefix() {
1095
- return this.size && !!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`));
1095
+ return this.size === void 0 ? !1 : !!this.size.match(new RegExp(`^${this.sizeableClassPrefix}`));
1096
1096
  },
1097
1097
  sizeableClass() {
1098
1098
  return this.size ? !this.sizeableClassPrefix || this.hasSizeablePrefix ? this.size : `${this.sizeableClassPrefix}-${this.size}` : "";
1099
1099
  }
1100
1100
  }
1101
- }, on = (e, t) => {
1102
- const r = e.__vccOpts || e;
1103
- for (const [n, o] of t)
1104
- r[n] = o;
1105
- return r;
1106
- }, an = {
1101
+ }), on = U({
1107
1102
  name: "BtnGroup",
1108
1103
  mixins: [nn],
1109
1104
  props: {
1105
+ /**
1106
+ * The size prefix.
1107
+ *
1108
+ * @param {String}
1109
+ */
1110
1110
  sizePrefix: {
1111
1111
  type: String,
1112
1112
  default() {
1113
1113
  return "btn-group";
1114
1114
  }
1115
1115
  },
1116
+ /**
1117
+ * Denote the button group as toggle buttons
1118
+ *
1119
+ * @type {Boolean}
1120
+ */
1116
1121
  toggle: Boolean,
1122
+ /**
1123
+ * Display the buttons vertically
1124
+ *
1125
+ * @type {Boolean}
1126
+ */
1117
1127
  vertical: Boolean
1118
1128
  },
1119
1129
  computed: {
@@ -1126,35 +1136,40 @@ const rn = /* @__PURE__ */ en(_r, [["render", tn]]), nn = {
1126
1136
  };
1127
1137
  }
1128
1138
  }
1139
+ }), an = (e, t) => {
1140
+ const r = e.__vccOpts || e;
1141
+ for (const [n, o] of t)
1142
+ r[n] = o;
1143
+ return r;
1129
1144
  }, sn = ["data-toggle"];
1130
1145
  function ln(e, t, r, n, o, i) {
1131
- return W(), Ue("div", {
1132
- class: F(i.classes),
1133
- "data-toggle": r.toggle ? "buttons" : !1,
1146
+ return W(), Xe("div", {
1147
+ class: F(e.classes),
1148
+ "data-toggle": e.toggle ? "buttons" : !1,
1134
1149
  role: "group"
1135
1150
  }, [P(e.$slots, "default")], 10, sn);
1136
1151
  }
1137
- const pn = /* @__PURE__ */ on(an, [["render", ln]]);
1138
- function Ve(e, t) {
1152
+ const pn = /* @__PURE__ */ an(on, [["render", ln]]);
1153
+ U({
1154
+ name: "BtnGroupToggle"
1155
+ });
1156
+ function qe(e, t) {
1139
1157
  e.props.class = `${e.props.class || ""} ${t}`.trim();
1140
1158
  }
1141
- function Bt(e) {
1159
+ function Dt(e) {
1142
1160
  for (const t of e) {
1143
- t.type === Lt && Bt(t.children), t.props = Object.assign({ class: void 0 }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
1161
+ t.type === Vt && Dt(t.children), t.props = Object.assign({
1162
+ class: void 0
1163
+ }, t.props), t.attrs = Object.assign({}, t.attrs), t.attrs.on || (t.attrs.on = {});
1144
1164
  const r = t.props.class && t.props.class.match(/dropdown-item/), n = t.props.class && t.props.class.match(/dropdown-divider/);
1145
- typeof t.type == "string" && t.type.match(/^h\d$/) ? Ve(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", Ve(t, "dropdown-divider")) : !r && !n && Ve(t, "dropdown-item");
1165
+ typeof t.type == "string" && t.type.match(/^h\d$/) ? qe(t, "dropdown-header") : t.type === "hr" && !n ? (t.type = "div", qe(t, "dropdown-divider")) : !r && !n && qe(t, "dropdown-item");
1146
1166
  }
1147
1167
  return e;
1148
1168
  }
1149
- const fn = (e, t) => It("div", {}, Bt(t.slots.default())), un = fn, Ce = (e, t) => {
1150
- const r = e.__vccOpts || e;
1151
- for (const [n, o] of t)
1152
- r[n] = o;
1153
- return r;
1154
- }, dn = {
1169
+ const fn = (e, t) => Lt("div", {}, Dt(t.slots.default())), un = U({
1155
1170
  name: "DropdownMenu",
1156
1171
  components: {
1157
- DropdownMenuItems: un
1172
+ DropdownMenuItems: fn
1158
1173
  },
1159
1174
  props: {
1160
1175
  /**
@@ -1176,48 +1191,61 @@ const fn = (e, t) => It("div", {}, Bt(t.slots.default())), un = fn, Ce = (e, t)
1176
1191
  */
1177
1192
  show: Boolean
1178
1193
  }
1194
+ }), dn = (e, t) => {
1195
+ const r = e.__vccOpts || e;
1196
+ for (const [n, o] of t)
1197
+ r[n] = o;
1198
+ return r;
1179
1199
  }, cn = ["aria-labelledby"];
1180
1200
  function vn(e, t, r, n, o, i) {
1181
- const a = te("dropdown-menu-items");
1182
- return W(), Ue("div", {
1201
+ const a = re("dropdown-menu-items");
1202
+ return W(), Xe("div", {
1183
1203
  class: F(["dropdown-menu", {
1184
- "dropdown-menu-left": r.align === "left",
1185
- "dropdown-menu-right": r.align === "right",
1186
- show: r.show
1204
+ "dropdown-menu-left": e.align === "left",
1205
+ "dropdown-menu-right": e.align === "right",
1206
+ show: e.show
1187
1207
  }]),
1188
1208
  "aria-labelledby": e.$attrs.id
1189
- }, [
1190
- ye(a, null, {
1191
- default: B(() => [
1192
- P(e.$slots, "default", {
1193
- onClick: t[0] || (t[0] = (...l) => e.onItemClick && e.onItemClick(...l))
1194
- })
1195
- ]),
1196
- _: 3
1197
- })
1198
- ], 10, cn);
1209
+ }, [we(a, null, {
1210
+ default: B(() => [P(e.$slots, "default")]),
1211
+ _: 3
1212
+ })], 10, cn);
1199
1213
  }
1200
- const hn = /* @__PURE__ */ Ce(dn, [["render", vn]]), mn = {
1214
+ const hn = /* @__PURE__ */ dn(un, [["render", vn]]), gn = U({
1201
1215
  props: {
1202
1216
  expanded: {
1203
1217
  type: Boolean,
1204
1218
  default: !1
1205
1219
  },
1206
- id: String,
1207
- href: String,
1208
- to: [String, Object]
1220
+ id: {
1221
+ type: String,
1222
+ default: void 0
1223
+ },
1224
+ href: {
1225
+ type: String,
1226
+ default: void 0
1227
+ },
1228
+ to: {
1229
+ type: [String, Object],
1230
+ default: void 0
1231
+ }
1209
1232
  },
1210
1233
  computed: {
1211
1234
  is() {
1212
1235
  return this.to ? "router-link" : this.href ? "a" : "button";
1213
1236
  }
1214
1237
  }
1238
+ }), Ne = (e, t) => {
1239
+ const r = e.__vccOpts || e;
1240
+ for (const [n, o] of t)
1241
+ r[n] = o;
1242
+ return r;
1215
1243
  };
1216
- function gn(e, t, r, n, o, i) {
1217
- return W(), ee(He(i.is), me({ id: r.id }, r.to ? { to: r.to } : { href: r.href }, {
1244
+ function mn(e, t, r, n, o, i) {
1245
+ return W(), te(Ue(e.is), me({ id: e.id }, e.to ? { to: e.to } : { href: e.href }, {
1218
1246
  "aria-haspopup": "true",
1219
- "aria-expanded": r.expanded,
1220
- type: i.is === "button" ? "button" : void 0
1247
+ "aria-expanded": e.expanded,
1248
+ type: e.is === "button" ? "button" : void 0
1221
1249
  }), {
1222
1250
  default: B(() => [
1223
1251
  P(e.$slots, "default")
@@ -1225,14 +1253,19 @@ function gn(e, t, r, n, o, i) {
1225
1253
  _: 3
1226
1254
  }, 16, ["id", "aria-expanded", "type"]);
1227
1255
  }
1228
- const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
1256
+ const bn = /* @__PURE__ */ Ne(gn, [["render", mn]]), At = {
1229
1257
  components: {
1230
1258
  BtnDropdownAction: bn,
1231
1259
  BtnGroup: pn,
1232
1260
  DropdownMenu: hn
1233
1261
  },
1234
1262
  extends: rn,
1235
- emits: ["click-toggle", "show", "hide", "toggle"],
1263
+ emits: [
1264
+ "click-toggle",
1265
+ "show",
1266
+ "hide",
1267
+ "toggle"
1268
+ ],
1236
1269
  props: {
1237
1270
  /**
1238
1271
  * Display the dropdown menu aligned left or right
@@ -1485,7 +1518,7 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
1485
1518
  */
1486
1519
  isFocusable(e) {
1487
1520
  const t = this.queryFocusable();
1488
- for (let r in t)
1521
+ for (const r in t)
1489
1522
  if (e === t[r])
1490
1523
  return !0;
1491
1524
  return !1;
@@ -1495,7 +1528,7 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
1495
1528
  *
1496
1529
  * @return void
1497
1530
  */
1498
- toggle(e) {
1531
+ toggle() {
1499
1532
  this.expanded ? this.hide() : this.show();
1500
1533
  },
1501
1534
  /**
@@ -1511,13 +1544,15 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
1511
1544
  onFirstUpdate: () => {
1512
1545
  this.triggerAnimation = this.animated;
1513
1546
  },
1514
- modifiers: [{
1515
- name: "offset",
1516
- options: {
1517
- offset: [0, this.nav ? 1 : this.offset]
1518
- // offset: ['.125rem', !this.nav ? 4 : 1],
1547
+ modifiers: [
1548
+ {
1549
+ name: "offset",
1550
+ options: {
1551
+ offset: [0, this.nav ? 1 : this.offset]
1552
+ // offset: ['.125rem', !this.nav ? 4 : 1],
1553
+ }
1519
1554
  }
1520
- }]
1555
+ ]
1521
1556
  }) : this.popper && this.popper.update();
1522
1557
  },
1523
1558
  /**
@@ -1534,7 +1569,7 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
1534
1569
  * @return void
1535
1570
  */
1536
1571
  onBlur(e) {
1537
- (this.$refs.menu && !this.$refs.menu.$el.contains(e.relatedTarget) || !this.$el.contains(e.relatedTarget)) && this.hide();
1572
+ (!this.$refs.menu.$el.contains(e.relatedTarget) || !this.$el.contains(e.relatedTarget)) && this.hide();
1538
1573
  },
1539
1574
  onClickDocument(e) {
1540
1575
  this.$el.contains(e.target) || this.hide();
@@ -1568,22 +1603,75 @@ const bn = /* @__PURE__ */ Ce(mn, [["render", gn]]), Dt = {
1568
1603
  });
1569
1604
  }
1570
1605
  }
1571
- }, yn = {
1606
+ }, yn = U({
1572
1607
  mixins: [
1573
- Dt
1608
+ At
1609
+ ]
1610
+ });
1611
+ function wn(e, t, r, n, o, i) {
1612
+ const a = re("btn-dropdown-action"), l = re("dropdown-menu"), s = re("btn-group");
1613
+ return W(), te(s, {
1614
+ class: F(e.classes)
1615
+ }, {
1616
+ default: B(() => [
1617
+ P(e.$slots, "button", ae(Re(e.scope)), () => [
1618
+ we(a, {
1619
+ id: e.$attrs.id,
1620
+ ref: "button",
1621
+ expanded: e.expanded,
1622
+ href: e.href,
1623
+ to: e.to,
1624
+ style: It(e.toggleStyle),
1625
+ class: F(e.toggleClasses),
1626
+ onBlur: e.onBlur,
1627
+ onClick: e.onClickToggle
1628
+ }, {
1629
+ default: B(() => [
1630
+ P(e.$slots, "icon"),
1631
+ P(e.$slots, "label", {}, () => [
1632
+ be(ye(e.label), 1)
1633
+ ])
1634
+ ]),
1635
+ _: 3
1636
+ }, 8, ["id", "expanded", "href", "to", "style", "class", "onBlur", "onClick"])
1637
+ ]),
1638
+ we(l, {
1639
+ id: e.$attrs.id,
1640
+ ref: "menu",
1641
+ align: e.align,
1642
+ show: e.expanded,
1643
+ class: F({ animated: e.triggerAnimation }),
1644
+ onBlur: e.onBlur,
1645
+ onClick: e.onClickItem,
1646
+ onKeydown: yt(e.onKeydown, ["tab"]),
1647
+ onMousedown: t[0] || (t[0] = wt(() => {
1648
+ }, ["prevent"]))
1649
+ }, {
1650
+ default: B(() => [
1651
+ P(e.$slots, "default")
1652
+ ]),
1653
+ _: 3
1654
+ }, 8, ["id", "align", "show", "class", "onBlur", "onClick", "onKeydown"])
1655
+ ]),
1656
+ _: 3
1657
+ }, 8, ["class"]);
1658
+ }
1659
+ const On = /* @__PURE__ */ Ne(yn, [["render", wn]]), $n = U({
1660
+ mixins: [
1661
+ At
1574
1662
  ],
1575
1663
  emits: [
1576
1664
  "click"
1577
1665
  ]
1578
- }, wn = ["id", "aria-expanded"];
1579
- function On(e, t, r, n, o, i) {
1580
- const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
1581
- return W(), ee(s, {
1666
+ }), xn = ["id", "aria-expanded"];
1667
+ function Cn(e, t, r, n, o, i) {
1668
+ const a = re("btn-dropdown-action"), l = re("dropdown-menu"), s = re("btn-group");
1669
+ return W(), te(s, {
1582
1670
  class: F([e.classes, "btn-dropdown-split"])
1583
1671
  }, {
1584
1672
  default: B(() => [
1585
- e.dropleft ? de("", !0) : P(e.$slots, "button", ie(me({ key: 0 }, e.scope)), () => [
1586
- e.dropleft ? de("", !0) : (W(), ee(a, {
1673
+ e.dropleft ? ce("", !0) : P(e.$slots, "button", ae(me({ key: 0 }, e.scope)), () => [
1674
+ e.dropleft ? ce("", !0) : (W(), te(a, {
1587
1675
  key: 0,
1588
1676
  id: e.$attrs.id,
1589
1677
  ref: "button",
@@ -1596,16 +1684,16 @@ function On(e, t, r, n, o, i) {
1596
1684
  default: B(() => [
1597
1685
  P(e.$slots, "icon"),
1598
1686
  P(e.$slots, "label", {}, () => [
1599
- ge(be(e.label), 1)
1687
+ be(ye(e.label), 1)
1600
1688
  ])
1601
1689
  ]),
1602
1690
  _: 3
1603
1691
  }, 8, ["id", "expanded", "href", "to", "class"]))
1604
1692
  ]),
1605
- ye(s, { ref: "split" }, {
1693
+ we(s, { ref: "split" }, {
1606
1694
  default: B(() => [
1607
- P(e.$slots, "split", ie(Re(e.scope)), () => [
1608
- e.split ? (W(), Ue("button", {
1695
+ P(e.$slots, "split", ae(Re(e.scope)), () => [
1696
+ e.split ? (W(), Xe("button", {
1609
1697
  key: 0,
1610
1698
  id: e.$attrs.id,
1611
1699
  type: "button",
@@ -1614,9 +1702,9 @@ function On(e, t, r, n, o, i) {
1614
1702
  class: F(e.toggleClasses),
1615
1703
  onBlur: t[1] || (t[1] = (...f) => e.onBlur && e.onBlur(...f)),
1616
1704
  onClick: t[2] || (t[2] = (...f) => e.onClickToggle && e.onClickToggle(...f))
1617
- }, null, 42, wn)) : de("", !0)
1705
+ }, null, 42, xn)) : ce("", !0)
1618
1706
  ]),
1619
- ye(l, {
1707
+ we(l, {
1620
1708
  id: e.$attrs.id,
1621
1709
  ref: "menu",
1622
1710
  align: e.align,
@@ -1624,8 +1712,8 @@ function On(e, t, r, n, o, i) {
1624
1712
  class: F({ animated: e.triggerAnimation }),
1625
1713
  onBlur: e.onBlur,
1626
1714
  onClick: e.onClickItem,
1627
- onKeydown: bt(e.onKeydown, ["tab"]),
1628
- onMousedown: t[3] || (t[3] = yt(() => {
1715
+ onKeydown: yt(e.onKeydown, ["tab"]),
1716
+ onMousedown: t[3] || (t[3] = wt(() => {
1629
1717
  }, ["prevent"]))
1630
1718
  }, {
1631
1719
  default: B(() => [
@@ -1636,8 +1724,8 @@ function On(e, t, r, n, o, i) {
1636
1724
  ]),
1637
1725
  _: 3
1638
1726
  }, 512),
1639
- e.dropleft ? P(e.$slots, "button", ie(me({ key: 1 }, e.scope)), () => [
1640
- e.dropleft ? (W(), ee(a, {
1727
+ e.dropleft ? P(e.$slots, "button", ae(me({ key: 1 }, e.scope)), () => [
1728
+ e.dropleft ? (W(), te(a, {
1641
1729
  key: 0,
1642
1730
  id: e.$attrs.id,
1643
1731
  ref: "button",
@@ -1650,75 +1738,21 @@ function On(e, t, r, n, o, i) {
1650
1738
  default: B(() => [
1651
1739
  P(e.$slots, "icon"),
1652
1740
  P(e.$slots, "label", {}, () => [
1653
- ge(be(e.label), 1)
1741
+ be(ye(e.label), 1)
1654
1742
  ])
1655
1743
  ]),
1656
1744
  _: 3
1657
- }, 8, ["id", "expanded", "href", "to", "class"])) : de("", !0)
1658
- ]) : de("", !0)
1745
+ }, 8, ["id", "expanded", "href", "to", "class"])) : ce("", !0)
1746
+ ]) : ce("", !0)
1659
1747
  ]),
1660
1748
  _: 3
1661
1749
  }, 8, ["class"]);
1662
1750
  }
1663
- const xn = /* @__PURE__ */ Ce(yn, [["render", On]]), $n = {
1664
- mixins: [
1665
- Dt
1666
- ]
1667
- };
1668
- function Cn(e, t, r, n, o, i) {
1669
- const a = te("btn-dropdown-action"), l = te("dropdown-menu"), s = te("btn-group");
1670
- return W(), ee(s, {
1671
- class: F(e.classes)
1672
- }, {
1673
- default: B(() => [
1674
- P(e.$slots, "button", ie(Re(e.scope)), () => [
1675
- ye(a, {
1676
- id: e.$attrs.id,
1677
- ref: "button",
1678
- expanded: e.expanded,
1679
- href: e.href,
1680
- to: e.to,
1681
- style: Vt(e.toggleStyle),
1682
- class: F(e.toggleClasses),
1683
- onBlur: e.onBlur,
1684
- onClick: e.onClickToggle
1685
- }, {
1686
- default: B(() => [
1687
- P(e.$slots, "icon"),
1688
- P(e.$slots, "label", {}, () => [
1689
- ge(be(e.label), 1)
1690
- ])
1691
- ]),
1692
- _: 3
1693
- }, 8, ["id", "expanded", "href", "to", "style", "class", "onBlur", "onClick"])
1694
- ]),
1695
- ye(l, {
1696
- id: e.$attrs.id,
1697
- ref: "menu",
1698
- align: e.align,
1699
- show: e.expanded,
1700
- class: F({ animated: e.triggerAnimation }),
1701
- onBlur: e.onBlur,
1702
- onClick: e.onClickItem,
1703
- onKeydown: bt(e.onKeydown, ["tab"]),
1704
- onMousedown: t[0] || (t[0] = yt(() => {
1705
- }, ["prevent"]))
1706
- }, {
1707
- default: B(() => [
1708
- P(e.$slots, "default")
1709
- ]),
1710
- _: 3
1711
- }, 8, ["id", "align", "show", "class", "onBlur", "onClick", "onKeydown"])
1712
- ]),
1713
- _: 3
1714
- }, 8, ["class"]);
1715
- }
1716
- const Pn = /* @__PURE__ */ Ce($n, [["render", Cn]]);
1717
- const En = {
1751
+ const Pn = /* @__PURE__ */ Ne($n, [["render", Cn]]), En = U({
1718
1752
  name: "BtnDropdown",
1719
1753
  components: {
1720
- BtnDropdownSplit: xn,
1721
- BtnDropdownSingle: Pn
1754
+ BtnDropdownSplit: Pn,
1755
+ BtnDropdownSingle: On
1722
1756
  },
1723
1757
  inheritAttrs: !1,
1724
1758
  emits: [
@@ -1729,9 +1763,9 @@ const En = {
1729
1763
  "hide",
1730
1764
  "toggle"
1731
1765
  ]
1732
- };
1766
+ });
1733
1767
  function Sn(e, t, r, n, o, i) {
1734
- return W(), ee(He(e.$attrs.split === void 0 || e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), me({ class: "btn-dropdown" }, e.$attrs, {
1768
+ return W(), te(Ue(e.$attrs.split === void 0 || e.$attrs.nav ? "btn-dropdown-single" : "btn-dropdown-split"), me({ class: "btn-dropdown" }, e.$attrs, {
1735
1769
  onClick: t[0] || (t[0] = (...a) => e.$emit("click", ...a)),
1736
1770
  onClickToggle: t[1] || (t[1] = (...a) => e.$emit("click-toggle", ...a)),
1737
1771
  onDropdown: t[2] || (t[2] = (...a) => e.$emit("dropdown", ...a)),
@@ -1743,10 +1777,10 @@ function Sn(e, t, r, n, o, i) {
1743
1777
  P(e.$slots, "icon")
1744
1778
  ]),
1745
1779
  button: B((a) => [
1746
- P(e.$slots, "button", ie(Re(a)))
1780
+ P(e.$slots, "button", ae(Re(a)))
1747
1781
  ]),
1748
1782
  split: B((a) => [
1749
- P(e.$slots, "split", ie(Re(a)))
1783
+ P(e.$slots, "split", ae(Re(a)))
1750
1784
  ]),
1751
1785
  default: B(() => [
1752
1786
  P(e.$slots, "default")
@@ -1757,14 +1791,14 @@ function Sn(e, t, r, n, o, i) {
1757
1791
  name: "label",
1758
1792
  fn: B(() => [
1759
1793
  P(e.$slots, "label", {}, () => [
1760
- ge(be(e.$attrs.label), 1)
1794
+ be(ye(e.$attrs.label), 1)
1761
1795
  ])
1762
1796
  ]),
1763
1797
  key: "0"
1764
1798
  } : void 0
1765
1799
  ]), 1040);
1766
1800
  }
1767
- const Bn = /* @__PURE__ */ Ce(En, [["render", Sn]]);
1801
+ const Bn = /* @__PURE__ */ Ne(En, [["render", Sn]]);
1768
1802
  export {
1769
1803
  Bn as BtnDropdown
1770
1804
  };