Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

10652 righe
354 KiB

  1. var Hn = Object.defineProperty;
  2. var zn = (e, t, o) => t in e ? Hn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
  3. var De = (e, t, o) => (zn(e, typeof t != "symbol" ? t + "" : t, o), o);
  4. import { unref as v, computed as w, ref as W, shallowRef as ua, watch as ue, getCurrentScope as el, onScopeDispose as tl, shallowReadonly as Tt, effectScope as al, isRef as ol, toRef as E, readonly as Xe, customRef as Rn, getCurrentInstance as Ht, onMounted as st, nextTick as Ne, reactive as da, watchEffect as Xt, toValue as it, onActivated as xn, defineComponent as q, onBeforeUnmount as Wa, openBlock as m, createElementBlock as N, Fragment as ge, createElementVNode as ee, renderSlot as A, createBlock as x, Teleport as zt, mergeProps as Q, normalizeClass as j, normalizeStyle as ze, createTextVNode as ne, toDisplayString as Z, createCommentVNode as J, createApp as Mn, h as Le, provide as at, resolveDynamicComponent as se, withCtx as R, useAttrs as Kt, inject as Ge, createVNode as ye, Transition as Dn, normalizeProps as Se, guardReactiveProps as Ee, useSlots as Me, renderList as Te, TransitionGroup as jn, withDirectives as ht, vShow as ha, withModifiers as Bt, vModelCheckbox as qn, vModelRadio as Gn, vModelSelect as Wn, createSlots as Ua, onUnmounted as Un, withKeys as Qt } from "vue";
  5. class dt {
  6. constructor(t, o = {}) {
  7. De(this, "cancelable", !0);
  8. De(this, "componentId", null);
  9. De(this, "_defaultPrevented", !1);
  10. De(this, "eventType", "");
  11. De(this, "nativeEvent", null);
  12. De(this, "_preventDefault");
  13. De(this, "relatedTarget", null);
  14. De(this, "target", null);
  15. if (!t)
  16. throw new TypeError(
  17. `Failed to construct '${this.constructor.name}'. 1 argument required, ${arguments.length} given.`
  18. );
  19. Object.assign(this, dt.Defaults, o, { eventType: t }), this._preventDefault = function() {
  20. this.cancelable && (this.defaultPrevented = !0);
  21. };
  22. }
  23. // Readable by everyone,
  24. // But only overwritten by inherrited constructors
  25. get defaultPrevented() {
  26. return this._defaultPrevented;
  27. }
  28. set defaultPrevented(t) {
  29. this._defaultPrevented = t;
  30. }
  31. // I think this is right
  32. // We want to be able to have it callable to everyone,
  33. // But only overwritten by inherrited constructors
  34. get preventDefault() {
  35. return this._preventDefault;
  36. }
  37. // This may not be correct, because it doesn't get correct type inferences in children
  38. // Ex overwrite this.preventDefault = () => true is valid. Could be a TS issue
  39. set preventDefault(t) {
  40. this._preventDefault = t;
  41. }
  42. static get Defaults() {
  43. return {
  44. cancelable: !0,
  45. componentId: null,
  46. eventType: "",
  47. nativeEvent: null,
  48. relatedTarget: null,
  49. target: null
  50. };
  51. }
  52. }
  53. class Rt extends dt {
  54. constructor(o, a = {}) {
  55. super(o, a);
  56. De(this, "trigger", null);
  57. Object.assign(this, dt.Defaults, a, { eventType: o });
  58. }
  59. static get Defaults() {
  60. return {
  61. ...super.Defaults,
  62. trigger: null
  63. };
  64. }
  65. }
  66. class ll extends dt {
  67. constructor(o, a) {
  68. super(o, a);
  69. De(this, "from");
  70. De(this, "to");
  71. De(this, "direction");
  72. Object.assign(this, dt.Defaults, a, { eventType: o });
  73. const { from: l, direction: n, to: i } = a;
  74. this.from = l, this.to = i, this.direction = n;
  75. }
  76. static get Defaults() {
  77. return {
  78. ...super.Defaults
  79. };
  80. }
  81. }
  82. const nl = /_/g, sl = /([a-z])([A-Z])/g, Xn = /(\s|^)(\w)/g, Kn = /(\s|^)(\w)/, sa = /\s+/, Yn = /^#/, Zn = /^#[A-Za-z]+[\w\-:.]*$/, Jn = /-u-.+/, Qn = /[-/\\^$*+?.()|[\]{}]/g, es = /[\s\uFEFF\xA0]+/g, ca = (e, t = 2) => typeof e == "string" ? e : e == null ? "" : Array.isArray(e) || Object.prototype.toString.call(e) === "[object Object]" && e.toString === Object.prototype.toString ? JSON.stringify(e, null, t) : String(e), _a = (e) => e.replace(nl, " ").replace(sl, (t, o, a) => `${o} ${a}`).replace(Kn, (t, o, a) => o + a.toUpperCase()), bo = (e) => e.replace(nl, " ").replace(sl, (t, o, a) => `${o} ${a}`).replace(Xn, (t, o, a) => o + a.toUpperCase()), ts = (e) => {
  83. const t = e.trim();
  84. return t.charAt(0).toUpperCase() + t.slice(1);
  85. }, as = (e) => e.replace(Qn, "\\$&"), os = (e) => as(e).replace(es, "\\s"), Va = (e) => `\\${e}`, ls = (e) => {
  86. const t = ca(e), { length: o } = t, a = t.charCodeAt(0);
  87. return t.split("").reduce((l, n, i) => {
  88. const s = t.charCodeAt(i);
  89. return s === 0 ? `${l}�` : (
  90. // ... is U+007F OR
  91. s === 127 || // ... is in the range [\1-\1F] (U+0001 to U+001F) OR ...
  92. s >= 1 && s <= 31 || // ... is the first character and is in the range [0-9] (U+0030 to U+0039) OR ...
  93. i === 0 && s >= 48 && s <= 57 || // ... is the second character and is in the range [0-9] (U+0030 to U+0039)
  94. // and the first character is a `-` (U+002D) ...
  95. i === 1 && s >= 48 && s <= 57 && a === 45 ? l + Va(`${s.toString(16)} `) : (
  96. // ... is the first character AND ...
  97. i === 0 && // ... is a `-` (U+002D) AND ...
  98. s === 45 && // ... there is no second character ...
  99. o === 1 ? l + Va(n) : (
  100. // ... is greater than or equal to U+0080 OR ...
  101. s >= 128 || // ... is `-` (U+002D) OR ...
  102. s === 45 || // ... is `_` (U+005F) OR ...
  103. s === 95 || // ... is in the range [0-9] (U+0030 to U+0039) OR ...
  104. s >= 48 && s <= 57 || // ... is in the range [A-Z] (U+0041 to U+005A) OR ...
  105. s >= 65 && s <= 90 || // ... is in the range [a-z] (U+0061 to U+007A) ...
  106. s >= 97 && s <= 122 ? l + n : l + Va(n)
  107. )
  108. )
  109. );
  110. }, "");
  111. }, il = typeof window < "u", rl = typeof document < "u", ns = typeof Element < "u", ss = typeof navigator < "u", is = il && rl && ss, _t = il ? window : {}, Xa = rl ? document : {};
  112. (() => {
  113. let e = !1;
  114. if (!is)
  115. return e;
  116. try {
  117. const t = {
  118. // This function will be called when the browser
  119. // attempts to access the passive property
  120. get passive() {
  121. return e = !0, e;
  122. }
  123. };
  124. "addEventListener" in _t && typeof _t.addEventListener == "function" && _t.addEventListener("test", t, t), "removeEventListener" in _t && typeof _t.removeEventListener == "function" && _t.removeEventListener("test", t, t);
  125. } catch {
  126. e = !1;
  127. }
  128. })();
  129. const ul = typeof window < "u", rs = typeof document < "u", us = typeof navigator < "u", Ka = ul && rs && us, yo = ul ? window : {}, ds = (() => {
  130. let e = !1;
  131. if (Ka)
  132. try {
  133. const t = {
  134. // This function will be called when the browser
  135. // attempts to access the passive property
  136. get passive() {
  137. e = !0;
  138. }
  139. };
  140. yo.addEventListener("test", t, t), yo.removeEventListener("test", t, t);
  141. } catch {
  142. e = !1;
  143. }
  144. return e;
  145. })(), Aa = ns ? Element.prototype : void 0, ot = (e) => !!(e && typeof e == "object" && "nodeType" in e && e.nodeType === Node.ELEMENT_NODE), cs = (e) => ot(e) ? e.getBoundingClientRect() : null, fs = (e = []) => {
  146. const { activeElement: t } = document;
  147. return t && !e.some((o) => o === t) ? t : null;
  148. }, vs = (e) => ot(e) && e === fs(), ps = (e, t = {}) => {
  149. try {
  150. e.focus(t);
  151. } catch (o) {
  152. console.error(o);
  153. }
  154. return vs(e);
  155. }, ms = (e, t) => t && ot(e) && e.getAttribute(t) || null, gs = (e) => {
  156. if (ms(e, "display") === "none")
  157. return !1;
  158. const t = cs(e);
  159. return !!(t && t.height > 0 && t.width > 0);
  160. }, Ie = (e) => ((e == null ? void 0 : e()) ?? []).length === 0, dl = (e, t) => (ot(t) ? t : Xa).querySelector(e) || null, bs = (e, t) => Array.from([(ot(t) ? t : Xa).querySelectorAll(e)]), Ya = (e, t) => t && ot(e) ? e.getAttribute(t) : null, ys = (e) => Xa.getElementById(/^#/.test(e) ? e.slice(1) : e) || null, hs = (e, t, o) => {
  161. t && ot(e) && e.setAttribute(t, o);
  162. }, Bs = (e, t) => {
  163. t && ot(e) && e.removeAttribute(t);
  164. }, Ss = (e, t) => ca(e).toLowerCase() === ca(t).toLowerCase(), Cs = (e, t) => ot(e) ? e.matches(t) : !1, ws = (Aa == null ? void 0 : Aa.closest) || function(e) {
  165. let t = this;
  166. if (!t)
  167. return null;
  168. do {
  169. if (ot(t) && t.matches(e))
  170. return t;
  171. t = t.parentElement || t.parentNode;
  172. } while (t !== null && t.nodeType === Node.ELEMENT_NODE);
  173. return null;
  174. }, ho = (e, t, o = !1) => {
  175. if (!ot(t))
  176. return null;
  177. const a = ws.call(t, e);
  178. return o ? a : a === t ? null : a;
  179. }, La = (e) => {
  180. const t = window.getComputedStyle(e), o = t.transitionDelay.split(",")[0] || "", a = t.transitionDuration.split(",")[0] || "", l = Number(o.slice(0, -1)) * 1e3, n = Number(a.slice(0, -1)) * 1e3;
  181. return l + n;
  182. }, ks = ["TD", "TH", "TR"], $s = [
  183. "a",
  184. "a *",
  185. // Include content inside links
  186. "button",
  187. "button *",
  188. // Include content inside buttons
  189. "input:not(.disabled):not([disabled])",
  190. "select:not(.disabled):not([disabled])",
  191. "textarea:not(.disabled):not([disabled])",
  192. '[role="link"]',
  193. '[role="link"] *',
  194. '[role="button"]',
  195. '[role="button"] *',
  196. "[tabindex]:not(.disabled):not([disabled])"
  197. ].join(","), ea = (e) => {
  198. if (!e || !e.target)
  199. return !1;
  200. const t = e.target;
  201. if ("disabled" in t && t.disabled || ks.indexOf(t.tagName) !== -1)
  202. return !1;
  203. if (ho(".dropdown-menu", t))
  204. return !0;
  205. const o = t.tagName === "LABEL" ? t : ho("label", t);
  206. if (o) {
  207. const a = Ya(o, "for"), l = a ? ys(a) : dl("input, select, textarea", o);
  208. if (l && !l.disabled)
  209. return !0;
  210. }
  211. return Cs(t, $s);
  212. }, cl = ["top", "right", "bottom", "left"], Bo = ["start", "end"], So = /* @__PURE__ */ cl.reduce((e, t) => e.concat(t, t + "-" + Bo[0], t + "-" + Bo[1]), []), et = Math.min, Fe = Math.max, fa = Math.round, ta = Math.floor, mt = (e) => ({
  213. x: e,
  214. y: e
  215. }), Ts = {
  216. left: "right",
  217. right: "left",
  218. bottom: "top",
  219. top: "bottom"
  220. }, _s = {
  221. start: "end",
  222. end: "start"
  223. };
  224. function Fa(e, t, o) {
  225. return Fe(e, et(t, o));
  226. }
  227. function ft(e, t) {
  228. return typeof e == "function" ? e(t) : e;
  229. }
  230. function Ye(e) {
  231. return e.split("-")[0];
  232. }
  233. function Je(e) {
  234. return e.split("-")[1];
  235. }
  236. function fl(e) {
  237. return e === "x" ? "y" : "x";
  238. }
  239. function Za(e) {
  240. return e === "y" ? "height" : "width";
  241. }
  242. function xt(e) {
  243. return ["top", "bottom"].includes(Ye(e)) ? "y" : "x";
  244. }
  245. function Ja(e) {
  246. return fl(xt(e));
  247. }
  248. function vl(e, t, o) {
  249. o === void 0 && (o = !1);
  250. const a = Je(e), l = Ja(e), n = Za(l);
  251. let i = l === "x" ? a === (o ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
  252. return t.reference[n] > t.floating[n] && (i = pa(i)), [i, pa(i)];
  253. }
  254. function Vs(e) {
  255. const t = pa(e);
  256. return [va(e), t, va(t)];
  257. }
  258. function va(e) {
  259. return e.replace(/start|end/g, (t) => _s[t]);
  260. }
  261. function As(e, t, o) {
  262. const a = ["left", "right"], l = ["right", "left"], n = ["top", "bottom"], i = ["bottom", "top"];
  263. switch (e) {
  264. case "top":
  265. case "bottom":
  266. return o ? t ? l : a : t ? a : l;
  267. case "left":
  268. case "right":
  269. return t ? n : i;
  270. default:
  271. return [];
  272. }
  273. }
  274. function Os(e, t, o, a) {
  275. const l = Je(e);
  276. let n = As(Ye(e), o === "start", a);
  277. return l && (n = n.map((i) => i + "-" + l), t && (n = n.concat(n.map(va)))), n;
  278. }
  279. function pa(e) {
  280. return e.replace(/left|right|bottom|top/g, (t) => Ts[t]);
  281. }
  282. function Es(e) {
  283. return {
  284. top: 0,
  285. right: 0,
  286. bottom: 0,
  287. left: 0,
  288. ...e
  289. };
  290. }
  291. function Qa(e) {
  292. return typeof e != "number" ? Es(e) : {
  293. top: e,
  294. right: e,
  295. bottom: e,
  296. left: e
  297. };
  298. }
  299. function It(e) {
  300. return {
  301. ...e,
  302. top: e.y,
  303. left: e.x,
  304. right: e.x + e.width,
  305. bottom: e.y + e.height
  306. };
  307. }
  308. function Co(e, t, o) {
  309. let {
  310. reference: a,
  311. floating: l
  312. } = e;
  313. const n = xt(t), i = Ja(t), s = Za(i), u = Ye(t), d = n === "y", f = a.x + a.width / 2 - l.width / 2, g = a.y + a.height / 2 - l.height / 2, p = a[s] / 2 - l[s] / 2;
  314. let y;
  315. switch (u) {
  316. case "top":
  317. y = {
  318. x: f,
  319. y: a.y - l.height
  320. };
  321. break;
  322. case "bottom":
  323. y = {
  324. x: f,
  325. y: a.y + a.height
  326. };
  327. break;
  328. case "right":
  329. y = {
  330. x: a.x + a.width,
  331. y: g
  332. };
  333. break;
  334. case "left":
  335. y = {
  336. x: a.x - l.width,
  337. y: g
  338. };
  339. break;
  340. default:
  341. y = {
  342. x: a.x,
  343. y: a.y
  344. };
  345. }
  346. switch (Je(t)) {
  347. case "start":
  348. y[i] -= p * (o && d ? -1 : 1);
  349. break;
  350. case "end":
  351. y[i] += p * (o && d ? -1 : 1);
  352. break;
  353. }
  354. return y;
  355. }
  356. const Ps = async (e, t, o) => {
  357. const {
  358. placement: a = "bottom",
  359. strategy: l = "absolute",
  360. middleware: n = [],
  361. platform: i
  362. } = o, s = n.filter(Boolean), u = await (i.isRTL == null ? void 0 : i.isRTL(t));
  363. let d = await i.getElementRects({
  364. reference: e,
  365. floating: t,
  366. strategy: l
  367. }), {
  368. x: f,
  369. y: g
  370. } = Co(d, a, u), p = a, y = {}, b = 0;
  371. for (let V = 0; V < s.length; V++) {
  372. const {
  373. name: C,
  374. fn: c
  375. } = s[V], {
  376. x: h,
  377. y: B,
  378. data: _,
  379. reset: k
  380. } = await c({
  381. x: f,
  382. y: g,
  383. initialPlacement: a,
  384. placement: p,
  385. strategy: l,
  386. middlewareData: y,
  387. rects: d,
  388. platform: i,
  389. elements: {
  390. reference: e,
  391. floating: t
  392. }
  393. });
  394. if (f = h ?? f, g = B ?? g, y = {
  395. ...y,
  396. [C]: {
  397. ...y[C],
  398. ..._
  399. }
  400. }, k && b <= 50) {
  401. b++, typeof k == "object" && (k.placement && (p = k.placement), k.rects && (d = k.rects === !0 ? await i.getElementRects({
  402. reference: e,
  403. floating: t,
  404. strategy: l
  405. }) : k.rects), {
  406. x: f,
  407. y: g
  408. } = Co(d, p, u)), V = -1;
  409. continue;
  410. }
  411. }
  412. return {
  413. x: f,
  414. y: g,
  415. placement: p,
  416. strategy: l,
  417. middlewareData: y
  418. };
  419. };
  420. async function Lt(e, t) {
  421. var o;
  422. t === void 0 && (t = {});
  423. const {
  424. x: a,
  425. y: l,
  426. platform: n,
  427. rects: i,
  428. elements: s,
  429. strategy: u
  430. } = e, {
  431. boundary: d = "clippingAncestors",
  432. rootBoundary: f = "viewport",
  433. elementContext: g = "floating",
  434. altBoundary: p = !1,
  435. padding: y = 0
  436. } = ft(t, e), b = Qa(y), C = s[p ? g === "floating" ? "reference" : "floating" : g], c = It(await n.getClippingRect({
  437. element: (o = await (n.isElement == null ? void 0 : n.isElement(C))) == null || o ? C : C.contextElement || await (n.getDocumentElement == null ? void 0 : n.getDocumentElement(s.floating)),
  438. boundary: d,
  439. rootBoundary: f,
  440. strategy: u
  441. })), h = g === "floating" ? {
  442. ...i.floating,
  443. x: a,
  444. y: l
  445. } : i.reference, B = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(s.floating)), _ = await (n.isElement == null ? void 0 : n.isElement(B)) ? await (n.getScale == null ? void 0 : n.getScale(B)) || {
  446. x: 1,
  447. y: 1
  448. } : {
  449. x: 1,
  450. y: 1
  451. }, k = It(n.convertOffsetParentRelativeRectToViewportRelativeRect ? await n.convertOffsetParentRelativeRectToViewportRelativeRect({
  452. rect: h,
  453. offsetParent: B,
  454. strategy: u
  455. }) : h);
  456. return {
  457. top: (c.top - k.top + b.top) / _.y,
  458. bottom: (k.bottom - c.bottom + b.bottom) / _.y,
  459. left: (c.left - k.left + b.left) / _.x,
  460. right: (k.right - c.right + b.right) / _.x
  461. };
  462. }
  463. const Ns = (e) => ({
  464. name: "arrow",
  465. options: e,
  466. async fn(t) {
  467. const {
  468. x: o,
  469. y: a,
  470. placement: l,
  471. rects: n,
  472. platform: i,
  473. elements: s,
  474. middlewareData: u
  475. } = t, {
  476. element: d,
  477. padding: f = 0
  478. } = ft(e, t) || {};
  479. if (d == null)
  480. return {};
  481. const g = Qa(f), p = {
  482. x: o,
  483. y: a
  484. }, y = Ja(l), b = Za(y), V = await i.getDimensions(d), C = y === "y", c = C ? "top" : "left", h = C ? "bottom" : "right", B = C ? "clientHeight" : "clientWidth", _ = n.reference[b] + n.reference[y] - p[y] - n.floating[b], k = p[y] - n.reference[y], S = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
  485. let $ = S ? S[B] : 0;
  486. (!$ || !await (i.isElement == null ? void 0 : i.isElement(S))) && ($ = s.floating[B] || n.floating[b]);
  487. const I = _ / 2 - k / 2, T = $ / 2 - V[b] / 2 - 1, O = et(g[c], T), F = et(g[h], T), K = O, z = $ - V[b] - F, P = $ / 2 - V[b] / 2 + I, D = Fa(K, P, z), ae = !u.arrow && Je(l) != null && P != D && n.reference[b] / 2 - (P < K ? O : F) - V[b] / 2 < 0, le = ae ? P < K ? P - K : P - z : 0;
  488. return {
  489. [y]: p[y] + le,
  490. data: {
  491. [y]: D,
  492. centerOffset: P - D - le,
  493. ...ae && {
  494. alignmentOffset: le
  495. }
  496. },
  497. reset: ae
  498. };
  499. }
  500. });
  501. function Is(e, t, o) {
  502. return (e ? [...o.filter((l) => Je(l) === e), ...o.filter((l) => Je(l) !== e)] : o.filter((l) => Ye(l) === l)).filter((l) => e ? Je(l) === e || (t ? va(l) !== l : !1) : !0);
  503. }
  504. const Ls = function(e) {
  505. return e === void 0 && (e = {}), {
  506. name: "autoPlacement",
  507. options: e,
  508. async fn(t) {
  509. var o, a, l;
  510. const {
  511. rects: n,
  512. middlewareData: i,
  513. placement: s,
  514. platform: u,
  515. elements: d
  516. } = t, {
  517. crossAxis: f = !1,
  518. alignment: g,
  519. allowedPlacements: p = So,
  520. autoAlignment: y = !0,
  521. ...b
  522. } = ft(e, t), V = g !== void 0 || p === So ? Is(g || null, y, p) : p, C = await Lt(t, b), c = ((o = i.autoPlacement) == null ? void 0 : o.index) || 0, h = V[c];
  523. if (h == null)
  524. return {};
  525. const B = vl(h, n, await (u.isRTL == null ? void 0 : u.isRTL(d.floating)));
  526. if (s !== h)
  527. return {
  528. reset: {
  529. placement: V[0]
  530. }
  531. };
  532. const _ = [C[Ye(h)], C[B[0]], C[B[1]]], k = [...((a = i.autoPlacement) == null ? void 0 : a.overflows) || [], {
  533. placement: h,
  534. overflows: _
  535. }], S = V[c + 1];
  536. if (S)
  537. return {
  538. data: {
  539. index: c + 1,
  540. overflows: k
  541. },
  542. reset: {
  543. placement: S
  544. }
  545. };
  546. const $ = k.map((O) => {
  547. const F = Je(O.placement);
  548. return [O.placement, F && f ? (
  549. // Check along the mainAxis and main crossAxis side.
  550. O.overflows.slice(0, 2).reduce((K, z) => K + z, 0)
  551. ) : (
  552. // Check only the mainAxis.
  553. O.overflows[0]
  554. ), O.overflows];
  555. }).sort((O, F) => O[1] - F[1]), T = ((l = $.filter((O) => O[2].slice(
  556. 0,
  557. // Aligned placements should not check their opposite crossAxis
  558. // side.
  559. Je(O[0]) ? 2 : 3
  560. ).every((F) => F <= 0))[0]) == null ? void 0 : l[0]) || $[0][0];
  561. return T !== s ? {
  562. data: {
  563. index: c + 1,
  564. overflows: k
  565. },
  566. reset: {
  567. placement: T
  568. }
  569. } : {};
  570. }
  571. };
  572. }, pl = function(e) {
  573. return e === void 0 && (e = {}), {
  574. name: "flip",
  575. options: e,
  576. async fn(t) {
  577. var o, a;
  578. const {
  579. placement: l,
  580. middlewareData: n,
  581. rects: i,
  582. initialPlacement: s,
  583. platform: u,
  584. elements: d
  585. } = t, {
  586. mainAxis: f = !0,
  587. crossAxis: g = !0,
  588. fallbackPlacements: p,
  589. fallbackStrategy: y = "bestFit",
  590. fallbackAxisSideDirection: b = "none",
  591. flipAlignment: V = !0,
  592. ...C
  593. } = ft(e, t);
  594. if ((o = n.arrow) != null && o.alignmentOffset)
  595. return {};
  596. const c = Ye(l), h = Ye(s) === s, B = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), _ = p || (h || !V ? [pa(s)] : Vs(s));
  597. !p && b !== "none" && _.push(...Os(s, V, b, B));
  598. const k = [s, ..._], S = await Lt(t, C), $ = [];
  599. let I = ((a = n.flip) == null ? void 0 : a.overflows) || [];
  600. if (f && $.push(S[c]), g) {
  601. const K = vl(l, i, B);
  602. $.push(S[K[0]], S[K[1]]);
  603. }
  604. if (I = [...I, {
  605. placement: l,
  606. overflows: $
  607. }], !$.every((K) => K <= 0)) {
  608. var T, O;
  609. const K = (((T = n.flip) == null ? void 0 : T.index) || 0) + 1, z = k[K];
  610. if (z)
  611. return {
  612. data: {
  613. index: K,
  614. overflows: I
  615. },
  616. reset: {
  617. placement: z
  618. }
  619. };
  620. let P = (O = I.filter((D) => D.overflows[0] <= 0).sort((D, ae) => D.overflows[1] - ae.overflows[1])[0]) == null ? void 0 : O.placement;
  621. if (!P)
  622. switch (y) {
  623. case "bestFit": {
  624. var F;
  625. const D = (F = I.map((ae) => [ae.placement, ae.overflows.filter((le) => le > 0).reduce((le, ve) => le + ve, 0)]).sort((ae, le) => ae[1] - le[1])[0]) == null ? void 0 : F[0];
  626. D && (P = D);
  627. break;
  628. }
  629. case "initialPlacement":
  630. P = s;
  631. break;
  632. }
  633. if (l !== P)
  634. return {
  635. reset: {
  636. placement: P
  637. }
  638. };
  639. }
  640. return {};
  641. }
  642. };
  643. };
  644. function wo(e, t) {
  645. return {
  646. top: e.top - t.height,
  647. right: e.right - t.width,
  648. bottom: e.bottom - t.height,
  649. left: e.left - t.width
  650. };
  651. }
  652. function ko(e) {
  653. return cl.some((t) => e[t] >= 0);
  654. }
  655. const Fs = function(e) {
  656. return e === void 0 && (e = {}), {
  657. name: "hide",
  658. options: e,
  659. async fn(t) {
  660. const {
  661. rects: o
  662. } = t, {
  663. strategy: a = "referenceHidden",
  664. ...l
  665. } = ft(e, t);
  666. switch (a) {
  667. case "referenceHidden": {
  668. const n = await Lt(t, {
  669. ...l,
  670. elementContext: "reference"
  671. }), i = wo(n, o.reference);
  672. return {
  673. data: {
  674. referenceHiddenOffsets: i,
  675. referenceHidden: ko(i)
  676. }
  677. };
  678. }
  679. case "escaped": {
  680. const n = await Lt(t, {
  681. ...l,
  682. altBoundary: !0
  683. }), i = wo(n, o.floating);
  684. return {
  685. data: {
  686. escapedOffsets: i,
  687. escaped: ko(i)
  688. }
  689. };
  690. }
  691. default:
  692. return {};
  693. }
  694. }
  695. };
  696. };
  697. function ml(e) {
  698. const t = et(...e.map((n) => n.left)), o = et(...e.map((n) => n.top)), a = Fe(...e.map((n) => n.right)), l = Fe(...e.map((n) => n.bottom));
  699. return {
  700. x: t,
  701. y: o,
  702. width: a - t,
  703. height: l - o
  704. };
  705. }
  706. function Hs(e) {
  707. const t = e.slice().sort((l, n) => l.y - n.y), o = [];
  708. let a = null;
  709. for (let l = 0; l < t.length; l++) {
  710. const n = t[l];
  711. !a || n.y - a.y > a.height / 2 ? o.push([n]) : o[o.length - 1].push(n), a = n;
  712. }
  713. return o.map((l) => It(ml(l)));
  714. }
  715. const zs = function(e) {
  716. return e === void 0 && (e = {}), {
  717. name: "inline",
  718. options: e,
  719. async fn(t) {
  720. const {
  721. placement: o,
  722. elements: a,
  723. rects: l,
  724. platform: n,
  725. strategy: i
  726. } = t, {
  727. padding: s = 2,
  728. x: u,
  729. y: d
  730. } = ft(e, t), f = Array.from(await (n.getClientRects == null ? void 0 : n.getClientRects(a.reference)) || []), g = Hs(f), p = It(ml(f)), y = Qa(s);
  731. function b() {
  732. if (g.length === 2 && g[0].left > g[1].right && u != null && d != null)
  733. return g.find((C) => u > C.left - y.left && u < C.right + y.right && d > C.top - y.top && d < C.bottom + y.bottom) || p;
  734. if (g.length >= 2) {
  735. if (xt(o) === "y") {
  736. const O = g[0], F = g[g.length - 1], K = Ye(o) === "top", z = O.top, P = F.bottom, D = K ? O.left : F.left, ae = K ? O.right : F.right, le = ae - D, ve = P - z;
  737. return {
  738. top: z,
  739. bottom: P,
  740. left: D,
  741. right: ae,
  742. width: le,
  743. height: ve,
  744. x: D,
  745. y: z
  746. };
  747. }
  748. const C = Ye(o) === "left", c = Fe(...g.map((O) => O.right)), h = et(...g.map((O) => O.left)), B = g.filter((O) => C ? O.left === h : O.right === c), _ = B[0].top, k = B[B.length - 1].bottom, S = h, $ = c, I = $ - S, T = k - _;
  749. return {
  750. top: _,
  751. bottom: k,
  752. left: S,
  753. right: $,
  754. width: I,
  755. height: T,
  756. x: S,
  757. y: _
  758. };
  759. }
  760. return p;
  761. }
  762. const V = await n.getElementRects({
  763. reference: {
  764. getBoundingClientRect: b
  765. },
  766. floating: a.floating,
  767. strategy: i
  768. });
  769. return l.reference.x !== V.reference.x || l.reference.y !== V.reference.y || l.reference.width !== V.reference.width || l.reference.height !== V.reference.height ? {
  770. reset: {
  771. rects: V
  772. }
  773. } : {};
  774. }
  775. };
  776. };
  777. async function Rs(e, t) {
  778. const {
  779. placement: o,
  780. platform: a,
  781. elements: l
  782. } = e, n = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), i = Ye(o), s = Je(o), u = xt(o) === "y", d = ["left", "top"].includes(i) ? -1 : 1, f = n && u ? -1 : 1, g = ft(t, e);
  783. let {
  784. mainAxis: p,
  785. crossAxis: y,
  786. alignmentAxis: b
  787. } = typeof g == "number" ? {
  788. mainAxis: g,
  789. crossAxis: 0,
  790. alignmentAxis: null
  791. } : {
  792. mainAxis: 0,
  793. crossAxis: 0,
  794. alignmentAxis: null,
  795. ...g
  796. };
  797. return s && typeof b == "number" && (y = s === "end" ? b * -1 : b), u ? {
  798. x: y * f,
  799. y: p * d
  800. } : {
  801. x: p * d,
  802. y: y * f
  803. };
  804. }
  805. const gl = function(e) {
  806. return e === void 0 && (e = 0), {
  807. name: "offset",
  808. options: e,
  809. async fn(t) {
  810. const {
  811. x: o,
  812. y: a
  813. } = t, l = await Rs(t, e);
  814. return {
  815. x: o + l.x,
  816. y: a + l.y,
  817. data: l
  818. };
  819. }
  820. };
  821. }, bl = function(e) {
  822. return e === void 0 && (e = {}), {
  823. name: "shift",
  824. options: e,
  825. async fn(t) {
  826. const {
  827. x: o,
  828. y: a,
  829. placement: l
  830. } = t, {
  831. mainAxis: n = !0,
  832. crossAxis: i = !1,
  833. limiter: s = {
  834. fn: (C) => {
  835. let {
  836. x: c,
  837. y: h
  838. } = C;
  839. return {
  840. x: c,
  841. y: h
  842. };
  843. }
  844. },
  845. ...u
  846. } = ft(e, t), d = {
  847. x: o,
  848. y: a
  849. }, f = await Lt(t, u), g = xt(Ye(l)), p = fl(g);
  850. let y = d[p], b = d[g];
  851. if (n) {
  852. const C = p === "y" ? "top" : "left", c = p === "y" ? "bottom" : "right", h = y + f[C], B = y - f[c];
  853. y = Fa(h, y, B);
  854. }
  855. if (i) {
  856. const C = g === "y" ? "top" : "left", c = g === "y" ? "bottom" : "right", h = b + f[C], B = b - f[c];
  857. b = Fa(h, b, B);
  858. }
  859. const V = s.fn({
  860. ...t,
  861. [p]: y,
  862. [g]: b
  863. });
  864. return {
  865. ...V,
  866. data: {
  867. x: V.x - o,
  868. y: V.y - a
  869. }
  870. };
  871. }
  872. };
  873. }, yl = function(e) {
  874. return e === void 0 && (e = {}), {
  875. name: "size",
  876. options: e,
  877. async fn(t) {
  878. const {
  879. placement: o,
  880. rects: a,
  881. platform: l,
  882. elements: n
  883. } = t, {
  884. apply: i = () => {
  885. },
  886. ...s
  887. } = ft(e, t), u = await Lt(t, s), d = Ye(o), f = Je(o), g = xt(o) === "y", {
  888. width: p,
  889. height: y
  890. } = a.floating;
  891. let b, V;
  892. d === "top" || d === "bottom" ? (b = d, V = f === (await (l.isRTL == null ? void 0 : l.isRTL(n.floating)) ? "start" : "end") ? "left" : "right") : (V = d, b = f === "end" ? "top" : "bottom");
  893. const C = y - u[b], c = p - u[V], h = !t.middlewareData.shift;
  894. let B = C, _ = c;
  895. if (g) {
  896. const S = p - u.left - u.right;
  897. _ = f || h ? et(c, S) : S;
  898. } else {
  899. const S = y - u.top - u.bottom;
  900. B = f || h ? et(C, S) : S;
  901. }
  902. if (h && !f) {
  903. const S = Fe(u.left, 0), $ = Fe(u.right, 0), I = Fe(u.top, 0), T = Fe(u.bottom, 0);
  904. g ? _ = p - 2 * (S !== 0 || $ !== 0 ? S + $ : Fe(u.left, u.right)) : B = y - 2 * (I !== 0 || T !== 0 ? I + T : Fe(u.top, u.bottom));
  905. }
  906. await i({
  907. ...t,
  908. availableWidth: _,
  909. availableHeight: B
  910. });
  911. const k = await l.getDimensions(n.floating);
  912. return p !== k.width || y !== k.height ? {
  913. reset: {
  914. rects: !0
  915. }
  916. } : {};
  917. }
  918. };
  919. };
  920. function gt(e) {
  921. return hl(e) ? (e.nodeName || "").toLowerCase() : "#document";
  922. }
  923. function We(e) {
  924. var t;
  925. return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
  926. }
  927. function vt(e) {
  928. var t;
  929. return (t = (hl(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
  930. }
  931. function hl(e) {
  932. return e instanceof Node || e instanceof We(e).Node;
  933. }
  934. function ct(e) {
  935. return e instanceof Element || e instanceof We(e).Element;
  936. }
  937. function nt(e) {
  938. return e instanceof HTMLElement || e instanceof We(e).HTMLElement;
  939. }
  940. function $o(e) {
  941. return typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof We(e).ShadowRoot;
  942. }
  943. function Yt(e) {
  944. const {
  945. overflow: t,
  946. overflowX: o,
  947. overflowY: a,
  948. display: l
  949. } = Ze(e);
  950. return /auto|scroll|overlay|hidden|clip/.test(t + a + o) && !["inline", "contents"].includes(l);
  951. }
  952. function xs(e) {
  953. return ["table", "td", "th"].includes(gt(e));
  954. }
  955. function eo(e) {
  956. const t = to(), o = Ze(e);
  957. return o.transform !== "none" || o.perspective !== "none" || (o.containerType ? o.containerType !== "normal" : !1) || !t && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !t && (o.filter ? o.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((a) => (o.willChange || "").includes(a)) || ["paint", "layout", "strict", "content"].some((a) => (o.contain || "").includes(a));
  958. }
  959. function Ms(e) {
  960. let t = Ft(e);
  961. for (; nt(t) && !Ba(t); ) {
  962. if (eo(t))
  963. return t;
  964. t = Ft(t);
  965. }
  966. return null;
  967. }
  968. function to() {
  969. return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
  970. }
  971. function Ba(e) {
  972. return ["html", "body", "#document"].includes(gt(e));
  973. }
  974. function Ze(e) {
  975. return We(e).getComputedStyle(e);
  976. }
  977. function Sa(e) {
  978. return ct(e) ? {
  979. scrollLeft: e.scrollLeft,
  980. scrollTop: e.scrollTop
  981. } : {
  982. scrollLeft: e.pageXOffset,
  983. scrollTop: e.pageYOffset
  984. };
  985. }
  986. function Ft(e) {
  987. if (gt(e) === "html")
  988. return e;
  989. const t = (
  990. // Step into the shadow DOM of the parent of a slotted node.
  991. e.assignedSlot || // DOM Element detected.
  992. e.parentNode || // ShadowRoot detected.
  993. $o(e) && e.host || // Fallback.
  994. vt(e)
  995. );
  996. return $o(t) ? t.host : t;
  997. }
  998. function Bl(e) {
  999. const t = Ft(e);
  1000. return Ba(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : nt(t) && Yt(t) ? t : Bl(t);
  1001. }
  1002. function Wt(e, t, o) {
  1003. var a;
  1004. t === void 0 && (t = []), o === void 0 && (o = !0);
  1005. const l = Bl(e), n = l === ((a = e.ownerDocument) == null ? void 0 : a.body), i = We(l);
  1006. return n ? t.concat(i, i.visualViewport || [], Yt(l) ? l : [], i.frameElement && o ? Wt(i.frameElement) : []) : t.concat(l, Wt(l, [], o));
  1007. }
  1008. function Sl(e) {
  1009. const t = Ze(e);
  1010. let o = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
  1011. const l = nt(e), n = l ? e.offsetWidth : o, i = l ? e.offsetHeight : a, s = fa(o) !== n || fa(a) !== i;
  1012. return s && (o = n, a = i), {
  1013. width: o,
  1014. height: a,
  1015. $: s
  1016. };
  1017. }
  1018. function ao(e) {
  1019. return ct(e) ? e : e.contextElement;
  1020. }
  1021. function Pt(e) {
  1022. const t = ao(e);
  1023. if (!nt(t))
  1024. return mt(1);
  1025. const o = t.getBoundingClientRect(), {
  1026. width: a,
  1027. height: l,
  1028. $: n
  1029. } = Sl(t);
  1030. let i = (n ? fa(o.width) : o.width) / a, s = (n ? fa(o.height) : o.height) / l;
  1031. return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
  1032. x: i,
  1033. y: s
  1034. };
  1035. }
  1036. const Ds = /* @__PURE__ */ mt(0);
  1037. function Cl(e) {
  1038. const t = We(e);
  1039. return !to() || !t.visualViewport ? Ds : {
  1040. x: t.visualViewport.offsetLeft,
  1041. y: t.visualViewport.offsetTop
  1042. };
  1043. }
  1044. function js(e, t, o) {
  1045. return t === void 0 && (t = !1), !o || t && o !== We(e) ? !1 : t;
  1046. }
  1047. function St(e, t, o, a) {
  1048. t === void 0 && (t = !1), o === void 0 && (o = !1);
  1049. const l = e.getBoundingClientRect(), n = ao(e);
  1050. let i = mt(1);
  1051. t && (a ? ct(a) && (i = Pt(a)) : i = Pt(e));
  1052. const s = js(n, o, a) ? Cl(n) : mt(0);
  1053. let u = (l.left + s.x) / i.x, d = (l.top + s.y) / i.y, f = l.width / i.x, g = l.height / i.y;
  1054. if (n) {
  1055. const p = We(n), y = a && ct(a) ? We(a) : a;
  1056. let b = p.frameElement;
  1057. for (; b && a && y !== p; ) {
  1058. const V = Pt(b), C = b.getBoundingClientRect(), c = Ze(b), h = C.left + (b.clientLeft + parseFloat(c.paddingLeft)) * V.x, B = C.top + (b.clientTop + parseFloat(c.paddingTop)) * V.y;
  1059. u *= V.x, d *= V.y, f *= V.x, g *= V.y, u += h, d += B, b = We(b).frameElement;
  1060. }
  1061. }
  1062. return It({
  1063. width: f,
  1064. height: g,
  1065. x: u,
  1066. y: d
  1067. });
  1068. }
  1069. function qs(e) {
  1070. let {
  1071. rect: t,
  1072. offsetParent: o,
  1073. strategy: a
  1074. } = e;
  1075. const l = nt(o), n = vt(o);
  1076. if (o === n)
  1077. return t;
  1078. let i = {
  1079. scrollLeft: 0,
  1080. scrollTop: 0
  1081. }, s = mt(1);
  1082. const u = mt(0);
  1083. if ((l || !l && a !== "fixed") && ((gt(o) !== "body" || Yt(n)) && (i = Sa(o)), nt(o))) {
  1084. const d = St(o);
  1085. s = Pt(o), u.x = d.x + o.clientLeft, u.y = d.y + o.clientTop;
  1086. }
  1087. return {
  1088. width: t.width * s.x,
  1089. height: t.height * s.y,
  1090. x: t.x * s.x - i.scrollLeft * s.x + u.x,
  1091. y: t.y * s.y - i.scrollTop * s.y + u.y
  1092. };
  1093. }
  1094. function Gs(e) {
  1095. return Array.from(e.getClientRects());
  1096. }
  1097. function wl(e) {
  1098. return St(vt(e)).left + Sa(e).scrollLeft;
  1099. }
  1100. function Ws(e) {
  1101. const t = vt(e), o = Sa(e), a = e.ownerDocument.body, l = Fe(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), n = Fe(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
  1102. let i = -o.scrollLeft + wl(e);
  1103. const s = -o.scrollTop;
  1104. return Ze(a).direction === "rtl" && (i += Fe(t.clientWidth, a.clientWidth) - l), {
  1105. width: l,
  1106. height: n,
  1107. x: i,
  1108. y: s
  1109. };
  1110. }
  1111. function Us(e, t) {
  1112. const o = We(e), a = vt(e), l = o.visualViewport;
  1113. let n = a.clientWidth, i = a.clientHeight, s = 0, u = 0;
  1114. if (l) {
  1115. n = l.width, i = l.height;
  1116. const d = to();
  1117. (!d || d && t === "fixed") && (s = l.offsetLeft, u = l.offsetTop);
  1118. }
  1119. return {
  1120. width: n,
  1121. height: i,
  1122. x: s,
  1123. y: u
  1124. };
  1125. }
  1126. function Xs(e, t) {
  1127. const o = St(e, !0, t === "fixed"), a = o.top + e.clientTop, l = o.left + e.clientLeft, n = nt(e) ? Pt(e) : mt(1), i = e.clientWidth * n.x, s = e.clientHeight * n.y, u = l * n.x, d = a * n.y;
  1128. return {
  1129. width: i,
  1130. height: s,
  1131. x: u,
  1132. y: d
  1133. };
  1134. }
  1135. function To(e, t, o) {
  1136. let a;
  1137. if (t === "viewport")
  1138. a = Us(e, o);
  1139. else if (t === "document")
  1140. a = Ws(vt(e));
  1141. else if (ct(t))
  1142. a = Xs(t, o);
  1143. else {
  1144. const l = Cl(e);
  1145. a = {
  1146. ...t,
  1147. x: t.x - l.x,
  1148. y: t.y - l.y
  1149. };
  1150. }
  1151. return It(a);
  1152. }
  1153. function kl(e, t) {
  1154. const o = Ft(e);
  1155. return o === t || !ct(o) || Ba(o) ? !1 : Ze(o).position === "fixed" || kl(o, t);
  1156. }
  1157. function Ks(e, t) {
  1158. const o = t.get(e);
  1159. if (o)
  1160. return o;
  1161. let a = Wt(e, [], !1).filter((s) => ct(s) && gt(s) !== "body"), l = null;
  1162. const n = Ze(e).position === "fixed";
  1163. let i = n ? Ft(e) : e;
  1164. for (; ct(i) && !Ba(i); ) {
  1165. const s = Ze(i), u = eo(i);
  1166. !u && s.position === "fixed" && (l = null), (n ? !u && !l : !u && s.position === "static" && !!l && ["absolute", "fixed"].includes(l.position) || Yt(i) && !u && kl(e, i)) ? a = a.filter((f) => f !== i) : l = s, i = Ft(i);
  1167. }
  1168. return t.set(e, a), a;
  1169. }
  1170. function Ys(e) {
  1171. let {
  1172. element: t,
  1173. boundary: o,
  1174. rootBoundary: a,
  1175. strategy: l
  1176. } = e;
  1177. const i = [...o === "clippingAncestors" ? Ks(t, this._c) : [].concat(o), a], s = i[0], u = i.reduce((d, f) => {
  1178. const g = To(t, f, l);
  1179. return d.top = Fe(g.top, d.top), d.right = et(g.right, d.right), d.bottom = et(g.bottom, d.bottom), d.left = Fe(g.left, d.left), d;
  1180. }, To(t, s, l));
  1181. return {
  1182. width: u.right - u.left,
  1183. height: u.bottom - u.top,
  1184. x: u.left,
  1185. y: u.top
  1186. };
  1187. }
  1188. function Zs(e) {
  1189. return Sl(e);
  1190. }
  1191. function Js(e, t, o) {
  1192. const a = nt(t), l = vt(t), n = o === "fixed", i = St(e, !0, n, t);
  1193. let s = {
  1194. scrollLeft: 0,
  1195. scrollTop: 0
  1196. };
  1197. const u = mt(0);
  1198. if (a || !a && !n)
  1199. if ((gt(t) !== "body" || Yt(l)) && (s = Sa(t)), a) {
  1200. const d = St(t, !0, n, t);
  1201. u.x = d.x + t.clientLeft, u.y = d.y + t.clientTop;
  1202. } else
  1203. l && (u.x = wl(l));
  1204. return {
  1205. x: i.left + s.scrollLeft - u.x,
  1206. y: i.top + s.scrollTop - u.y,
  1207. width: i.width,
  1208. height: i.height
  1209. };
  1210. }
  1211. function _o(e, t) {
  1212. return !nt(e) || Ze(e).position === "fixed" ? null : t ? t(e) : e.offsetParent;
  1213. }
  1214. function $l(e, t) {
  1215. const o = We(e);
  1216. if (!nt(e))
  1217. return o;
  1218. let a = _o(e, t);
  1219. for (; a && xs(a) && Ze(a).position === "static"; )
  1220. a = _o(a, t);
  1221. return a && (gt(a) === "html" || gt(a) === "body" && Ze(a).position === "static" && !eo(a)) ? o : a || Ms(e) || o;
  1222. }
  1223. const Qs = async function(e) {
  1224. let {
  1225. reference: t,
  1226. floating: o,
  1227. strategy: a
  1228. } = e;
  1229. const l = this.getOffsetParent || $l, n = this.getDimensions;
  1230. return {
  1231. reference: Js(t, await l(o), a),
  1232. floating: {
  1233. x: 0,
  1234. y: 0,
  1235. ...await n(o)
  1236. }
  1237. };
  1238. };
  1239. function ei(e) {
  1240. return Ze(e).direction === "rtl";
  1241. }
  1242. const ti = {
  1243. convertOffsetParentRelativeRectToViewportRelativeRect: qs,
  1244. getDocumentElement: vt,
  1245. getClippingRect: Ys,
  1246. getOffsetParent: $l,
  1247. getElementRects: Qs,
  1248. getClientRects: Gs,
  1249. getDimensions: Zs,
  1250. getScale: Pt,
  1251. isElement: ct,
  1252. isRTL: ei
  1253. };
  1254. function ai(e, t) {
  1255. let o = null, a;
  1256. const l = vt(e);
  1257. function n() {
  1258. clearTimeout(a), o && o.disconnect(), o = null;
  1259. }
  1260. function i(s, u) {
  1261. s === void 0 && (s = !1), u === void 0 && (u = 1), n();
  1262. const {
  1263. left: d,
  1264. top: f,
  1265. width: g,
  1266. height: p
  1267. } = e.getBoundingClientRect();
  1268. if (s || t(), !g || !p)
  1269. return;
  1270. const y = ta(f), b = ta(l.clientWidth - (d + g)), V = ta(l.clientHeight - (f + p)), C = ta(d), h = {
  1271. rootMargin: -y + "px " + -b + "px " + -V + "px " + -C + "px",
  1272. threshold: Fe(0, et(1, u)) || 1
  1273. };
  1274. let B = !0;
  1275. function _(k) {
  1276. const S = k[0].intersectionRatio;
  1277. if (S !== u) {
  1278. if (!B)
  1279. return i();
  1280. S ? i(!1, S) : a = setTimeout(() => {
  1281. i(!1, 1e-7);
  1282. }, 100);
  1283. }
  1284. B = !1;
  1285. }
  1286. try {
  1287. o = new IntersectionObserver(_, {
  1288. ...h,
  1289. // Handle <iframe>s
  1290. root: l.ownerDocument
  1291. });
  1292. } catch {
  1293. o = new IntersectionObserver(_, h);
  1294. }
  1295. o.observe(e);
  1296. }
  1297. return i(!0), n;
  1298. }
  1299. function Tl(e, t, o, a) {
  1300. a === void 0 && (a = {});
  1301. const {
  1302. ancestorScroll: l = !0,
  1303. ancestorResize: n = !0,
  1304. elementResize: i = typeof ResizeObserver == "function",
  1305. layoutShift: s = typeof IntersectionObserver == "function",
  1306. animationFrame: u = !1
  1307. } = a, d = ao(e), f = l || n ? [...d ? Wt(d) : [], ...Wt(t)] : [];
  1308. f.forEach((c) => {
  1309. l && c.addEventListener("scroll", o, {
  1310. passive: !0
  1311. }), n && c.addEventListener("resize", o);
  1312. });
  1313. const g = d && s ? ai(d, o) : null;
  1314. let p = -1, y = null;
  1315. i && (y = new ResizeObserver((c) => {
  1316. let [h] = c;
  1317. h && h.target === d && y && (y.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
  1318. y && y.observe(t);
  1319. })), o();
  1320. }), d && !u && y.observe(d), y.observe(t));
  1321. let b, V = u ? St(e) : null;
  1322. u && C();
  1323. function C() {
  1324. const c = St(e);
  1325. V && (c.x !== V.x || c.y !== V.y || c.width !== V.width || c.height !== V.height) && o(), V = c, b = requestAnimationFrame(C);
  1326. }
  1327. return o(), () => {
  1328. f.forEach((c) => {
  1329. l && c.removeEventListener("scroll", o), n && c.removeEventListener("resize", o);
  1330. }), g && g(), y && y.disconnect(), y = null, u && cancelAnimationFrame(b);
  1331. };
  1332. }
  1333. const oi = (e, t, o) => {
  1334. const a = /* @__PURE__ */ new Map(), l = {
  1335. platform: ti,
  1336. ...o
  1337. }, n = {
  1338. ...l.platform,
  1339. _c: a
  1340. };
  1341. return Ps(e, t, {
  1342. ...l,
  1343. platform: n
  1344. });
  1345. };
  1346. function Ha(e) {
  1347. var t;
  1348. return (t = e == null ? void 0 : e.$el) != null ? t : e;
  1349. }
  1350. function li(e) {
  1351. return {
  1352. name: "arrow",
  1353. options: e,
  1354. fn(t) {
  1355. const o = Ha(v(e.element));
  1356. return o == null ? {} : Ns({
  1357. element: o,
  1358. padding: e.padding
  1359. }).fn(t);
  1360. }
  1361. };
  1362. }
  1363. function _l(e) {
  1364. return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
  1365. }
  1366. function Vo(e, t) {
  1367. const o = _l(e);
  1368. return Math.round(t * o) / o;
  1369. }
  1370. function Vl(e, t, o) {
  1371. o === void 0 && (o = {});
  1372. const a = o.whileElementsMounted, l = w(() => {
  1373. var $;
  1374. return ($ = v(o.open)) != null ? $ : !0;
  1375. }), n = w(() => v(o.middleware)), i = w(() => {
  1376. var $;
  1377. return ($ = v(o.placement)) != null ? $ : "bottom";
  1378. }), s = w(() => {
  1379. var $;
  1380. return ($ = v(o.strategy)) != null ? $ : "absolute";
  1381. }), u = w(() => {
  1382. var $;
  1383. return ($ = v(o.transform)) != null ? $ : !0;
  1384. }), d = w(() => Ha(e.value)), f = w(() => Ha(t.value)), g = W(0), p = W(0), y = W(s.value), b = W(i.value), V = ua({}), C = W(!1), c = w(() => {
  1385. const $ = {
  1386. position: y.value,
  1387. left: "0",
  1388. top: "0"
  1389. };
  1390. if (!f.value)
  1391. return $;
  1392. const I = Vo(f.value, g.value), T = Vo(f.value, p.value);
  1393. return u.value ? {
  1394. ...$,
  1395. transform: "translate(" + I + "px, " + T + "px)",
  1396. ..._l(f.value) >= 1.5 && {
  1397. willChange: "transform"
  1398. }
  1399. } : {
  1400. position: y.value,
  1401. left: I + "px",
  1402. top: T + "px"
  1403. };
  1404. });
  1405. let h;
  1406. function B() {
  1407. d.value == null || f.value == null || oi(d.value, f.value, {
  1408. middleware: n.value,
  1409. placement: i.value,
  1410. strategy: s.value
  1411. }).then(($) => {
  1412. g.value = $.x, p.value = $.y, y.value = $.strategy, b.value = $.placement, V.value = $.middlewareData, C.value = !0;
  1413. });
  1414. }
  1415. function _() {
  1416. typeof h == "function" && (h(), h = void 0);
  1417. }
  1418. function k() {
  1419. if (_(), a === void 0) {
  1420. B();
  1421. return;
  1422. }
  1423. if (d.value != null && f.value != null) {
  1424. h = a(d.value, f.value, B);
  1425. return;
  1426. }
  1427. }
  1428. function S() {
  1429. l.value || (C.value = !1);
  1430. }
  1431. return ue([n, i, s], B, {
  1432. flush: "sync"
  1433. }), ue([d, f], k, {
  1434. flush: "sync"
  1435. }), ue(l, S, {
  1436. flush: "sync"
  1437. }), el() && tl(_), {
  1438. x: Tt(g),
  1439. y: Tt(p),
  1440. strategy: Tt(y),
  1441. placement: Tt(b),
  1442. middlewareData: Tt(V),
  1443. isPositioned: Tt(C),
  1444. floatingStyles: c,
  1445. update: B
  1446. };
  1447. }
  1448. const ni = /* @__PURE__ */ new Set([
  1449. "background",
  1450. "cite",
  1451. "href",
  1452. "itemtype",
  1453. "longdesc",
  1454. "poster",
  1455. "src",
  1456. "xlink:href"
  1457. ]), si = /^aria-[\w-]*$/i, ii = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i, ri = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i, ui = (e, t) => {
  1458. const o = e.nodeName.toLowerCase();
  1459. return t.includes(o) ? ni.has(o) ? !!(ii.test(e.nodeValue || "") || ri.test(e.nodeValue || "")) : !0 : t.filter((a) => a instanceof RegExp).some((a) => a.test(o));
  1460. }, At = {
  1461. // Global attributes allowed on any supplied element below.
  1462. "*": ["class", "dir", "id", "lang", "role", si],
  1463. a: ["target", "href", "title", "rel"],
  1464. area: [],
  1465. b: [],
  1466. br: [],
  1467. col: [],
  1468. code: [],
  1469. div: [],
  1470. em: [],
  1471. hr: [],
  1472. h1: [],
  1473. h2: [],
  1474. h3: [],
  1475. h4: [],
  1476. h5: [],
  1477. h6: [],
  1478. i: [],
  1479. img: ["src", "srcset", "alt", "title", "width", "height"],
  1480. li: [],
  1481. ol: [],
  1482. p: [],
  1483. pre: [],
  1484. s: [],
  1485. small: [],
  1486. span: [],
  1487. sub: [],
  1488. sup: [],
  1489. strong: [],
  1490. u: [],
  1491. ul: []
  1492. }, Ot = (e, t, o) => {
  1493. if (!e.length)
  1494. return e;
  1495. if (o && typeof o == "function")
  1496. return o(e);
  1497. const l = new window.DOMParser().parseFromString(e, "text/html"), n = l.body.querySelectorAll("*");
  1498. for (const i of n) {
  1499. const s = i.nodeName.toLowerCase();
  1500. if (!Object.keys(t).includes(s)) {
  1501. i.remove();
  1502. continue;
  1503. }
  1504. const u = i.attributes, d = [...t["*"] || [], ...t[s] || []];
  1505. for (const f of u)
  1506. ui(f, d) || i.removeAttribute(f.nodeName);
  1507. }
  1508. return l.body.innerHTML;
  1509. };
  1510. function bt(e) {
  1511. return el() ? (tl(e), !0) : !1;
  1512. }
  1513. function Al(e) {
  1514. let t = !1, o;
  1515. const a = al(!0);
  1516. return (...l) => (t || (o = a.run(() => e(...l)), t = !0), o);
  1517. }
  1518. function di(e) {
  1519. let t = 0, o, a;
  1520. const l = () => {
  1521. t -= 1, a && t <= 0 && (a.stop(), o = void 0, a = void 0);
  1522. };
  1523. return (...n) => (t += 1, o || (a = al(!0), o = a.run(() => e(...n))), bt(l), o);
  1524. }
  1525. function Ke(e) {
  1526. return typeof e == "function" ? e() : v(e);
  1527. }
  1528. const ma = typeof window < "u" && typeof document < "u";
  1529. typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
  1530. const ci = (e) => typeof e < "u", fi = Object.prototype.toString, vi = (e) => fi.call(e) === "[object Object]", yt = () => {
  1531. }, za = /* @__PURE__ */ pi();
  1532. function pi() {
  1533. var e;
  1534. return ma && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
  1535. }
  1536. function Ol(e, t) {
  1537. function o(...a) {
  1538. return new Promise((l, n) => {
  1539. Promise.resolve(e(() => t.apply(this, a), { fn: t, thisArg: this, args: a })).then(l).catch(n);
  1540. });
  1541. }
  1542. return o;
  1543. }
  1544. const El = (e) => e();
  1545. function mi(e, t = {}) {
  1546. let o, a, l = yt;
  1547. const n = (s) => {
  1548. clearTimeout(s), l(), l = yt;
  1549. };
  1550. return (s) => {
  1551. const u = Ke(e), d = Ke(t.maxWait);
  1552. return o && n(o), u <= 0 || d !== void 0 && d <= 0 ? (a && (n(a), a = null), Promise.resolve(s())) : new Promise((f, g) => {
  1553. l = t.rejectOnCancel ? g : f, d && !a && (a = setTimeout(() => {
  1554. o && n(o), a = null, f(s());
  1555. }, d)), o = setTimeout(() => {
  1556. a && n(a), a = null, f(s());
  1557. }, u);
  1558. });
  1559. };
  1560. }
  1561. function gi(e = El) {
  1562. const t = W(!0);
  1563. function o() {
  1564. t.value = !1;
  1565. }
  1566. function a() {
  1567. t.value = !0;
  1568. }
  1569. const l = (...n) => {
  1570. t.value && e(...n);
  1571. };
  1572. return { isActive: Xe(t), pause: o, resume: a, eventFilter: l };
  1573. }
  1574. function Pl(...e) {
  1575. if (e.length !== 1)
  1576. return E(...e);
  1577. const t = e[0];
  1578. return typeof t == "function" ? Xe(Rn(() => ({ get: t, set: yt }))) : W(t);
  1579. }
  1580. function bi(e, t = 200, o = {}) {
  1581. return Ol(
  1582. mi(t, o),
  1583. e
  1584. );
  1585. }
  1586. function yi(e, t, o = {}) {
  1587. const {
  1588. eventFilter: a = El,
  1589. ...l
  1590. } = o;
  1591. return ue(
  1592. e,
  1593. Ol(
  1594. a,
  1595. t
  1596. ),
  1597. l
  1598. );
  1599. }
  1600. function hi(e, t, o = {}) {
  1601. const {
  1602. eventFilter: a,
  1603. ...l
  1604. } = o, { eventFilter: n, pause: i, resume: s, isActive: u } = gi(a);
  1605. return { stop: yi(
  1606. e,
  1607. t,
  1608. {
  1609. ...l,
  1610. eventFilter: n
  1611. }
  1612. ), pause: i, resume: s, isActive: u };
  1613. }
  1614. function Nl(e, t = !0) {
  1615. Ht() ? st(e) : t ? e() : Ne(e);
  1616. }
  1617. function Il(e, t = 1e3, o = {}) {
  1618. const {
  1619. immediate: a = !0,
  1620. immediateCallback: l = !1
  1621. } = o;
  1622. let n = null;
  1623. const i = W(!1);
  1624. function s() {
  1625. n && (clearInterval(n), n = null);
  1626. }
  1627. function u() {
  1628. i.value = !1, s();
  1629. }
  1630. function d() {
  1631. const f = Ke(t);
  1632. f <= 0 || (i.value = !0, l && e(), s(), n = setInterval(e, f));
  1633. }
  1634. if (a && ma && d(), ol(t) || typeof t == "function") {
  1635. const f = ue(t, () => {
  1636. i.value && ma && d();
  1637. });
  1638. bt(f);
  1639. }
  1640. return bt(u), {
  1641. isActive: i,
  1642. pause: u,
  1643. resume: d
  1644. };
  1645. }
  1646. function he(e, t = {}) {
  1647. const {
  1648. method: o = "parseFloat",
  1649. radix: a,
  1650. nanToZero: l
  1651. } = t;
  1652. return w(() => {
  1653. let n = Ke(e);
  1654. return typeof n == "string" && (n = Number[o](n, a)), l && Number.isNaN(n) && (n = 0), n;
  1655. });
  1656. }
  1657. function ut(e) {
  1658. var t;
  1659. const o = Ke(e);
  1660. return (t = o == null ? void 0 : o.$el) != null ? t : o;
  1661. }
  1662. const tt = ma ? window : void 0;
  1663. function Oe(...e) {
  1664. let t, o, a, l;
  1665. if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, a, l] = e, t = tt) : [t, o, a, l] = e, !t)
  1666. return yt;
  1667. Array.isArray(o) || (o = [o]), Array.isArray(a) || (a = [a]);
  1668. const n = [], i = () => {
  1669. n.forEach((f) => f()), n.length = 0;
  1670. }, s = (f, g, p, y) => (f.addEventListener(g, p, y), () => f.removeEventListener(g, p, y)), u = ue(
  1671. () => [ut(t), Ke(l)],
  1672. ([f, g]) => {
  1673. if (i(), !f)
  1674. return;
  1675. const p = vi(g) ? { ...g } : g;
  1676. n.push(
  1677. ...o.flatMap((y) => a.map((b) => s(f, y, b, p)))
  1678. );
  1679. },
  1680. { immediate: !0, flush: "post" }
  1681. ), d = () => {
  1682. u(), i();
  1683. };
  1684. return bt(d), d;
  1685. }
  1686. let Ao = !1;
  1687. function Ll(e, t, o = {}) {
  1688. const { window: a = tt, ignore: l = [], capture: n = !0, detectIframe: i = !1 } = o;
  1689. if (!a)
  1690. return;
  1691. za && !Ao && (Ao = !0, Array.from(a.document.body.children).forEach((p) => p.addEventListener("click", yt)), a.document.documentElement.addEventListener("click", yt));
  1692. let s = !0;
  1693. const u = (p) => l.some((y) => {
  1694. if (typeof y == "string")
  1695. return Array.from(a.document.querySelectorAll(y)).some((b) => b === p.target || p.composedPath().includes(b));
  1696. {
  1697. const b = ut(y);
  1698. return b && (p.target === b || p.composedPath().includes(b));
  1699. }
  1700. }), f = [
  1701. Oe(a, "click", (p) => {
  1702. const y = ut(e);
  1703. if (!(!y || y === p.target || p.composedPath().includes(y))) {
  1704. if (p.detail === 0 && (s = !u(p)), !s) {
  1705. s = !0;
  1706. return;
  1707. }
  1708. t(p);
  1709. }
  1710. }, { passive: !0, capture: n }),
  1711. Oe(a, "pointerdown", (p) => {
  1712. const y = ut(e);
  1713. s = !u(p) && !!(y && !p.composedPath().includes(y));
  1714. }, { passive: !0 }),
  1715. i && Oe(a, "blur", (p) => {
  1716. setTimeout(() => {
  1717. var y;
  1718. const b = ut(e);
  1719. ((y = a.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(b != null && b.contains(a.document.activeElement)) && t(p);
  1720. }, 0);
  1721. })
  1722. ].filter(Boolean);
  1723. return () => f.forEach((p) => p());
  1724. }
  1725. function Bi(e) {
  1726. return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
  1727. }
  1728. function qe(...e) {
  1729. let t, o, a = {};
  1730. e.length === 3 ? (t = e[0], o = e[1], a = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, o = e[0], a = e[1]) : (t = e[0], o = e[1]) : (t = !0, o = e[0]);
  1731. const {
  1732. target: l = tt,
  1733. eventName: n = "keydown",
  1734. passive: i = !1,
  1735. dedupe: s = !1
  1736. } = a, u = Bi(t);
  1737. return Oe(l, n, (f) => {
  1738. f.repeat && Ke(s) || u(f) && o(f);
  1739. }, i);
  1740. }
  1741. function Si() {
  1742. const e = W(!1);
  1743. return Ht() && st(() => {
  1744. e.value = !0;
  1745. }), e;
  1746. }
  1747. function Ci(e) {
  1748. const t = Si();
  1749. return w(() => (t.value, !!e()));
  1750. }
  1751. function wi(e, t = {}) {
  1752. const { window: o = tt } = t, a = Ci(() => o && "matchMedia" in o && typeof o.matchMedia == "function");
  1753. let l;
  1754. const n = W(!1), i = (d) => {
  1755. n.value = d.matches;
  1756. }, s = () => {
  1757. l && ("removeEventListener" in l ? l.removeEventListener("change", i) : l.removeListener(i));
  1758. }, u = Xt(() => {
  1759. a.value && (s(), l = o.matchMedia(Ke(e)), "addEventListener" in l ? l.addEventListener("change", i) : l.addListener(i), n.value = l.matches);
  1760. });
  1761. return bt(() => {
  1762. u(), s(), l = void 0;
  1763. }), n;
  1764. }
  1765. function ki(e) {
  1766. return JSON.parse(JSON.stringify(e));
  1767. }
  1768. const aa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, oa = "__vueuse_ssr_handlers__", $i = /* @__PURE__ */ Ti();
  1769. function Ti() {
  1770. return oa in aa || (aa[oa] = aa[oa] || {}), aa[oa];
  1771. }
  1772. function oo(e, t) {
  1773. return $i[e] || t;
  1774. }
  1775. function _i(e) {
  1776. return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
  1777. }
  1778. const Vi = {
  1779. boolean: {
  1780. read: (e) => e === "true",
  1781. write: (e) => String(e)
  1782. },
  1783. object: {
  1784. read: (e) => JSON.parse(e),
  1785. write: (e) => JSON.stringify(e)
  1786. },
  1787. number: {
  1788. read: (e) => Number.parseFloat(e),
  1789. write: (e) => String(e)
  1790. },
  1791. any: {
  1792. read: (e) => e,
  1793. write: (e) => String(e)
  1794. },
  1795. string: {
  1796. read: (e) => e,
  1797. write: (e) => String(e)
  1798. },
  1799. map: {
  1800. read: (e) => new Map(JSON.parse(e)),
  1801. write: (e) => JSON.stringify(Array.from(e.entries()))
  1802. },
  1803. set: {
  1804. read: (e) => new Set(JSON.parse(e)),
  1805. write: (e) => JSON.stringify(Array.from(e))
  1806. },
  1807. date: {
  1808. read: (e) => new Date(e),
  1809. write: (e) => e.toISOString()
  1810. }
  1811. }, Oo = "vueuse-storage";
  1812. function Ai(e, t, o, a = {}) {
  1813. var l;
  1814. const {
  1815. flush: n = "pre",
  1816. deep: i = !0,
  1817. listenToStorageChanges: s = !0,
  1818. writeDefaults: u = !0,
  1819. mergeDefaults: d = !1,
  1820. shallow: f,
  1821. window: g = tt,
  1822. eventFilter: p,
  1823. onError: y = (T) => {
  1824. console.error(T);
  1825. },
  1826. initOnMounted: b
  1827. } = a, V = (f ? ua : W)(typeof t == "function" ? t() : t);
  1828. if (!o)
  1829. try {
  1830. o = oo("getDefaultStorage", () => {
  1831. var T;
  1832. return (T = tt) == null ? void 0 : T.localStorage;
  1833. })();
  1834. } catch (T) {
  1835. y(T);
  1836. }
  1837. if (!o)
  1838. return V;
  1839. const C = Ke(t), c = _i(C), h = (l = a.serializer) != null ? l : Vi[c], { pause: B, resume: _ } = hi(
  1840. V,
  1841. () => k(V.value),
  1842. { flush: n, deep: i, eventFilter: p }
  1843. );
  1844. return g && s && Nl(() => {
  1845. Oe(g, "storage", I), Oe(g, Oo, $), b && I();
  1846. }), b || I(), V;
  1847. function k(T) {
  1848. try {
  1849. if (T == null)
  1850. o.removeItem(e);
  1851. else {
  1852. const O = h.write(T), F = o.getItem(e);
  1853. F !== O && (o.setItem(e, O), g && g.dispatchEvent(new CustomEvent(Oo, {
  1854. detail: {
  1855. key: e,
  1856. oldValue: F,
  1857. newValue: O,
  1858. storageArea: o
  1859. }
  1860. })));
  1861. }
  1862. } catch (O) {
  1863. y(O);
  1864. }
  1865. }
  1866. function S(T) {
  1867. const O = T ? T.newValue : o.getItem(e);
  1868. if (O == null)
  1869. return u && C !== null && o.setItem(e, h.write(C)), C;
  1870. if (!T && d) {
  1871. const F = h.read(O);
  1872. return typeof d == "function" ? d(F, C) : c === "object" && !Array.isArray(F) ? { ...C, ...F } : F;
  1873. } else
  1874. return typeof O != "string" ? O : h.read(O);
  1875. }
  1876. function $(T) {
  1877. I(T.detail);
  1878. }
  1879. function I(T) {
  1880. if (!(T && T.storageArea !== o)) {
  1881. if (T && T.key == null) {
  1882. V.value = C;
  1883. return;
  1884. }
  1885. if (!(T && T.key !== e)) {
  1886. B();
  1887. try {
  1888. (T == null ? void 0 : T.newValue) !== h.write(V.value) && (V.value = S(T));
  1889. } catch (O) {
  1890. y(O);
  1891. } finally {
  1892. T ? Ne(_) : _();
  1893. }
  1894. }
  1895. }
  1896. }
  1897. }
  1898. function Oi(e) {
  1899. return wi("(prefers-color-scheme: dark)", e);
  1900. }
  1901. function Ei(e = {}) {
  1902. const {
  1903. selector: t = "html",
  1904. attribute: o = "class",
  1905. initialValue: a = "auto",
  1906. window: l = tt,
  1907. storage: n,
  1908. storageKey: i = "vueuse-color-scheme",
  1909. listenToStorageChanges: s = !0,
  1910. storageRef: u,
  1911. emitAuto: d,
  1912. disableTransition: f = !0
  1913. } = e, g = {
  1914. auto: "",
  1915. light: "light",
  1916. dark: "dark",
  1917. ...e.modes || {}
  1918. }, p = Oi({ window: l }), y = w(() => p.value ? "dark" : "light"), b = u || (i == null ? Pl(a) : Ai(i, a, n, { window: l, listenToStorageChanges: s })), V = w(() => b.value === "auto" ? y.value : b.value), C = oo(
  1919. "updateHTMLAttrs",
  1920. (_, k, S) => {
  1921. const $ = typeof _ == "string" ? l == null ? void 0 : l.document.querySelector(_) : ut(_);
  1922. if (!$)
  1923. return;
  1924. let I;
  1925. if (f) {
  1926. I = l.document.createElement("style");
  1927. const T = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
  1928. I.appendChild(document.createTextNode(T)), l.document.head.appendChild(I);
  1929. }
  1930. if (k === "class") {
  1931. const T = S.split(/\s/g);
  1932. Object.values(g).flatMap((O) => (O || "").split(/\s/g)).filter(Boolean).forEach((O) => {
  1933. T.includes(O) ? $.classList.add(O) : $.classList.remove(O);
  1934. });
  1935. } else
  1936. $.setAttribute(k, S);
  1937. f && (l.getComputedStyle(I).opacity, document.head.removeChild(I));
  1938. }
  1939. );
  1940. function c(_) {
  1941. var k;
  1942. C(t, o, (k = g[_]) != null ? k : _);
  1943. }
  1944. function h(_) {
  1945. e.onChanged ? e.onChanged(_, c) : c(_);
  1946. }
  1947. ue(V, h, { flush: "post", immediate: !0 }), Nl(() => h(V.value));
  1948. const B = w({
  1949. get() {
  1950. return d ? b.value : V.value;
  1951. },
  1952. set(_) {
  1953. b.value = _;
  1954. }
  1955. });
  1956. try {
  1957. return Object.assign(B, { store: b, system: y, state: V });
  1958. } catch {
  1959. return B;
  1960. }
  1961. }
  1962. function lo(e, t = {}) {
  1963. const {
  1964. delayEnter: o = 0,
  1965. delayLeave: a = 0,
  1966. window: l = tt
  1967. } = t, n = W(!1);
  1968. let i;
  1969. const s = (u) => {
  1970. const d = u ? o : a;
  1971. i && (clearTimeout(i), i = void 0), d ? i = setTimeout(() => n.value = u, d) : n.value = u;
  1972. };
  1973. return l && (Oe(e, "mouseenter", () => s(!0), { passive: !0 }), Oe(e, "mouseleave", () => s(!1), { passive: !0 })), n;
  1974. }
  1975. function xe(e, t = {}) {
  1976. const { initialValue: o = !1, focusVisible: a = !1 } = t, l = W(!1), n = w(() => ut(e));
  1977. Oe(n, "focus", (s) => {
  1978. var u, d;
  1979. (!a || (d = (u = s.target).matches) != null && d.call(u, ":focus-visible")) && (l.value = !0);
  1980. }), Oe(n, "blur", () => l.value = !1);
  1981. const i = w({
  1982. get: () => l.value,
  1983. set(s) {
  1984. var u, d;
  1985. !s && l.value ? (u = n.value) == null || u.blur() : s && !l.value && ((d = n.value) == null || d.focus());
  1986. }
  1987. });
  1988. return ue(
  1989. n,
  1990. () => {
  1991. i.value = o;
  1992. },
  1993. { immediate: !0, flush: "post" }
  1994. ), { focused: i };
  1995. }
  1996. function Oa(e) {
  1997. return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
  1998. }
  1999. const Pi = {
  2000. page: (e) => [e.pageX, e.pageY],
  2001. client: (e) => [e.clientX, e.clientY],
  2002. screen: (e) => [e.screenX, e.screenY],
  2003. movement: (e) => e instanceof Touch ? null : [e.movementX, e.movementY]
  2004. };
  2005. function Ni(e = {}) {
  2006. const {
  2007. type: t = "page",
  2008. touch: o = !0,
  2009. resetOnTouchEnds: a = !1,
  2010. initialValue: l = { x: 0, y: 0 },
  2011. window: n = tt,
  2012. target: i = n,
  2013. scroll: s = !0,
  2014. eventFilter: u
  2015. } = e;
  2016. let d = null;
  2017. const f = W(l.x), g = W(l.y), p = W(null), y = typeof t == "function" ? t : Pi[t], b = (k) => {
  2018. const S = y(k);
  2019. d = k, S && ([f.value, g.value] = S, p.value = "mouse");
  2020. }, V = (k) => {
  2021. if (k.touches.length > 0) {
  2022. const S = y(k.touches[0]);
  2023. S && ([f.value, g.value] = S, p.value = "touch");
  2024. }
  2025. }, C = () => {
  2026. if (!d || !n)
  2027. return;
  2028. const k = y(d);
  2029. d instanceof MouseEvent && k && (f.value = k[0] + n.scrollX, g.value = k[1] + n.scrollY);
  2030. }, c = () => {
  2031. f.value = l.x, g.value = l.y;
  2032. }, h = u ? (k) => u(() => b(k), {}) : (k) => b(k), B = u ? (k) => u(() => V(k), {}) : (k) => V(k), _ = u ? () => u(() => C(), {}) : () => C();
  2033. if (i) {
  2034. const k = { passive: !0 };
  2035. Oe(i, ["mousemove", "dragover"], h, k), o && t !== "movement" && (Oe(i, ["touchstart", "touchmove"], B, k), a && Oe(i, "touchend", c, k)), s && t === "page" && Oe(n, "scroll", _, { passive: !0 });
  2036. }
  2037. return {
  2038. x: f,
  2039. y: g,
  2040. sourceType: p
  2041. };
  2042. }
  2043. function Eo(e, t = {}) {
  2044. const {
  2045. handleOutside: o = !0,
  2046. window: a = tt
  2047. } = t, l = t.type || "page", { x: n, y: i, sourceType: s } = Ni(t), u = W(e ?? (a == null ? void 0 : a.document.body)), d = W(0), f = W(0), g = W(0), p = W(0), y = W(0), b = W(0), V = W(!0);
  2048. let C = () => {
  2049. };
  2050. return a && (C = ue(
  2051. [u, n, i],
  2052. () => {
  2053. const c = ut(u);
  2054. if (!c)
  2055. return;
  2056. const {
  2057. left: h,
  2058. top: B,
  2059. width: _,
  2060. height: k
  2061. } = c.getBoundingClientRect();
  2062. g.value = h + (l === "page" ? a.pageXOffset : 0), p.value = B + (l === "page" ? a.pageYOffset : 0), y.value = k, b.value = _;
  2063. const S = n.value - g.value, $ = i.value - p.value;
  2064. V.value = _ === 0 || k === 0 || S < 0 || $ < 0 || S > _ || $ > k, (o || !V.value) && (d.value = S, f.value = $);
  2065. },
  2066. { immediate: !0 }
  2067. ), Oe(document, "mouseleave", () => {
  2068. V.value = !0;
  2069. })), {
  2070. x: n,
  2071. y: i,
  2072. sourceType: s,
  2073. elementX: d,
  2074. elementY: f,
  2075. elementPositionX: g,
  2076. elementPositionY: p,
  2077. elementHeight: y,
  2078. elementWidth: b,
  2079. isOutside: V,
  2080. stop: C
  2081. };
  2082. }
  2083. function Fl(e) {
  2084. const t = window.getComputedStyle(e);
  2085. if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
  2086. return !0;
  2087. {
  2088. const o = e.parentNode;
  2089. return !o || o.tagName === "BODY" ? !1 : Fl(o);
  2090. }
  2091. }
  2092. function Ii(e) {
  2093. const t = e || window.event, o = t.target;
  2094. return Fl(o) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
  2095. }
  2096. const la = /* @__PURE__ */ new WeakMap();
  2097. function Li(e, t = !1) {
  2098. const o = W(t);
  2099. let a = null, l;
  2100. ue(Pl(e), (s) => {
  2101. const u = Oa(Ke(s));
  2102. if (u) {
  2103. const d = u;
  2104. la.get(d) || la.set(d, l), o.value && (d.style.overflow = "hidden");
  2105. }
  2106. }, {
  2107. immediate: !0
  2108. });
  2109. const n = () => {
  2110. const s = Oa(Ke(e));
  2111. !s || o.value || (za && (a = Oe(
  2112. s,
  2113. "touchmove",
  2114. (u) => {
  2115. Ii(u);
  2116. },
  2117. { passive: !1 }
  2118. )), s.style.overflow = "hidden", o.value = !0);
  2119. }, i = () => {
  2120. var s;
  2121. const u = Oa(Ke(e));
  2122. !u || !o.value || (za && (a == null || a()), u.style.overflow = (s = la.get(u)) != null ? s : "", la.delete(u), o.value = !1);
  2123. };
  2124. return bt(i), w({
  2125. get() {
  2126. return o.value;
  2127. },
  2128. set(s) {
  2129. s ? n() : i();
  2130. }
  2131. });
  2132. }
  2133. function Fi(e, t = {}) {
  2134. const {
  2135. threshold: o = 50,
  2136. onSwipe: a,
  2137. onSwipeEnd: l,
  2138. onSwipeStart: n,
  2139. passive: i = !0,
  2140. window: s = tt
  2141. } = t, u = da({ x: 0, y: 0 }), d = da({ x: 0, y: 0 }), f = w(() => u.x - d.x), g = w(() => u.y - d.y), { max: p, abs: y } = Math, b = w(() => p(y(f.value), y(g.value)) >= o), V = W(!1), C = w(() => b.value ? y(f.value) > y(g.value) ? f.value > 0 ? "left" : "right" : g.value > 0 ? "up" : "down" : "none"), c = (T) => [T.touches[0].clientX, T.touches[0].clientY], h = (T, O) => {
  2142. u.x = T, u.y = O;
  2143. }, B = (T, O) => {
  2144. d.x = T, d.y = O;
  2145. };
  2146. let _;
  2147. const k = Hi(s == null ? void 0 : s.document);
  2148. i ? _ = k ? { passive: !0 } : { capture: !1 } : _ = k ? { passive: !1, capture: !0 } : { capture: !0 };
  2149. const S = (T) => {
  2150. V.value && (l == null || l(T, C.value)), V.value = !1;
  2151. }, $ = [
  2152. Oe(e, "touchstart", (T) => {
  2153. if (T.touches.length !== 1)
  2154. return;
  2155. _.capture && !_.passive && T.preventDefault();
  2156. const [O, F] = c(T);
  2157. h(O, F), B(O, F), n == null || n(T);
  2158. }, _),
  2159. Oe(e, "touchmove", (T) => {
  2160. if (T.touches.length !== 1)
  2161. return;
  2162. const [O, F] = c(T);
  2163. B(O, F), !V.value && b.value && (V.value = !0), V.value && (a == null || a(T));
  2164. }, _),
  2165. Oe(e, ["touchend", "touchcancel"], S, _)
  2166. ];
  2167. return {
  2168. isPassiveEventSupported: k,
  2169. isSwiping: V,
  2170. direction: C,
  2171. coordsStart: u,
  2172. coordsEnd: d,
  2173. lengthX: f,
  2174. lengthY: g,
  2175. stop: () => $.forEach((T) => T())
  2176. };
  2177. }
  2178. function Hi(e) {
  2179. if (!e)
  2180. return !1;
  2181. let t = !1;
  2182. const o = {
  2183. get passive() {
  2184. return t = !0, !1;
  2185. }
  2186. };
  2187. return e.addEventListener("x", yt, o), e.removeEventListener("x", yt), t;
  2188. }
  2189. function ke(e, t, o, a = {}) {
  2190. var l, n, i;
  2191. const {
  2192. clone: s = !1,
  2193. passive: u = !1,
  2194. eventName: d,
  2195. deep: f = !1,
  2196. defaultValue: g,
  2197. shouldEmit: p
  2198. } = a, y = Ht(), b = o || (y == null ? void 0 : y.emit) || ((l = y == null ? void 0 : y.$emit) == null ? void 0 : l.bind(y)) || ((i = (n = y == null ? void 0 : y.proxy) == null ? void 0 : n.$emit) == null ? void 0 : i.bind(y == null ? void 0 : y.proxy));
  2199. let V = d;
  2200. t || (t = "modelValue"), V = V || `update:${t.toString()}`;
  2201. const C = (B) => s ? typeof s == "function" ? s(B) : ki(B) : B, c = () => ci(e[t]) ? C(e[t]) : g, h = (B) => {
  2202. p ? p(B) && b(V, B) : b(V, B);
  2203. };
  2204. if (u) {
  2205. const B = c(), _ = W(B);
  2206. let k = !1;
  2207. return ue(
  2208. () => e[t],
  2209. (S) => {
  2210. k || (k = !0, _.value = C(S), Ne(() => k = !1));
  2211. }
  2212. ), ue(
  2213. _,
  2214. (S) => {
  2215. !k && (S !== e[t] || f) && h(S);
  2216. },
  2217. { deep: f }
  2218. ), _;
  2219. } else
  2220. return w({
  2221. get() {
  2222. return c();
  2223. },
  2224. set(B) {
  2225. h(B);
  2226. }
  2227. });
  2228. }
  2229. const Zt = (e) => w(() => {
  2230. const t = it(e);
  2231. return t ? `justify-content-${t}` : "";
  2232. }), zi = (e) => typeof e == "boolean" || e === "" || e === "true" || e === "false", r = (e) => w(() => {
  2233. const t = it(e);
  2234. return zi(t) ? typeof t == "boolean" ? t : t === "" || t === "true" : t;
  2235. }), Ca = (e, t) => {
  2236. const o = r(e), a = E(t);
  2237. return w(
  2238. () => o.value === !0 ? "true" : typeof o.value == "string" ? o.value : a.value === !1 ? "true" : o.value === !1 ? "false" : void 0
  2239. );
  2240. }, Ct = (e, t) => {
  2241. const o = E(t), a = E(e), l = E(() => Ji(a.value)), n = w(
  2242. () => l.value ? fo(
  2243. a.value,
  2244. o.value ?? [
  2245. "active",
  2246. "activeClass",
  2247. "append",
  2248. "href",
  2249. "rel",
  2250. "replace",
  2251. "routerComponentName",
  2252. "target",
  2253. "to",
  2254. "variant",
  2255. "opacity",
  2256. "opacityHover",
  2257. "underlineVariant",
  2258. "underlineOffset",
  2259. "underlineOffsetHover",
  2260. "underlineOpacity",
  2261. "underlineOpacityHover"
  2262. ]
  2263. ) : {}
  2264. );
  2265. return { computedLink: l, computedLinkProps: n };
  2266. }, Hl = Al(() => {
  2267. const e = da([]);
  2268. return { items: e, reset: () => {
  2269. e.splice(0, e.length);
  2270. } };
  2271. }), Ri = (e = {}) => {
  2272. const t = e.persist ?? !1, o = "data-bs-theme", a = "body";
  2273. return Ei({
  2274. attribute: o,
  2275. selector: a,
  2276. storageKey: t === !0 ? `bv-color-${e.attribute ?? o}-${e.selector ?? a}` : null,
  2277. ...e
  2278. });
  2279. }, Qe = (e) => w(() => {
  2280. const t = it(e);
  2281. return {
  2282. [`text-bg-${t.variant}`]: t.variant !== null,
  2283. [`text-${t.textVariant}`]: t.textVariant !== null && t.variant === null,
  2284. [`bg-${t.bgVariant}`]: t.bgVariant !== null && t.variant === null
  2285. };
  2286. }), xi = (e) => w(() => {
  2287. const t = it(e);
  2288. return {
  2289. container: t === !0,
  2290. [`container-${t}`]: typeof t == "string"
  2291. };
  2292. }), zl = (e, t = W(1e3), o = {}) => {
  2293. const a = Xe(E(e)), l = Xe(E(t)), n = W(!1), i = W(0), s = E(() => Math.ceil(a.value / l.value)), u = E(
  2294. () => g.value || n.value ? Math.round(a.value - i.value * l.value) : 0
  2295. ), { pause: d, resume: f, isActive: g } = Il(
  2296. () => {
  2297. i.value = i.value + 1;
  2298. },
  2299. t,
  2300. o
  2301. ), p = () => {
  2302. n.value = !1, i.value = 0, f();
  2303. }, y = () => {
  2304. n.value = !1, i.value = s.value;
  2305. };
  2306. Xt(() => {
  2307. i.value > s.value && (i.value = s.value), i.value === s.value && d();
  2308. }), ue([l, a], () => {
  2309. y(), p();
  2310. });
  2311. const b = () => {
  2312. g.value !== !1 && (n.value = !0, d());
  2313. }, V = () => {
  2314. i.value !== s.value && (n.value = !1, f());
  2315. };
  2316. return {
  2317. isActive: Xe(g),
  2318. isPaused: Xe(n),
  2319. restart: p,
  2320. stop: y,
  2321. pause: b,
  2322. resume: V,
  2323. value: u
  2324. };
  2325. }, wt = (e) => w(() => {
  2326. const t = it(e);
  2327. return t === !0 ? "is-valid" : t === !1 ? "is-invalid" : null;
  2328. }), Rl = (e) => w(() => {
  2329. const t = it(e);
  2330. return {
  2331. "form-check": t.plain === !1 && t.button === !1,
  2332. "form-check-inline": t.inline === !0,
  2333. "form-switch": t.switch === !0,
  2334. [`form-control-${t.size}`]: t.size !== void 0 && t.size !== "md" && t.button === !1
  2335. };
  2336. }), xl = (e) => {
  2337. const t = E(e), o = wt(() => t.value.state ?? null);
  2338. return w(() => [
  2339. o.value,
  2340. {
  2341. "form-check-input": t.value.plain === !1 && t.value.button === !1,
  2342. "btn-check": t.value.button === !0
  2343. }
  2344. ]);
  2345. }, Ml = (e) => w(() => {
  2346. const t = it(e);
  2347. return {
  2348. "form-check-label": t.plain === !1 && t.button === !1,
  2349. btn: t.button === !0,
  2350. [`btn-${t.buttonVariant}`]: t.button === !0 && t.buttonVariant !== void 0 && t.buttonVariant !== null,
  2351. [`btn-${t.size}`]: t.button && t.size && t.size !== "md"
  2352. };
  2353. }), Dl = (e) => {
  2354. const t = E(e), o = Ca(
  2355. () => t.value.ariaInvalid,
  2356. () => t.value.state
  2357. );
  2358. return w(() => ({
  2359. "aria-invalid": o.value,
  2360. "aria-required": t.value.required === !0 ? !0 : void 0
  2361. }));
  2362. }, jl = (e) => w(() => {
  2363. const t = it(e);
  2364. return {
  2365. "was-validated": t.validated === !0,
  2366. "btn-group": t.buttons === !0 && t.stacked === !1,
  2367. "btn-group-vertical": t.stacked === !0 && t.buttons === !0,
  2368. [`btn-group-${t.size}`]: t.size !== void 0
  2369. };
  2370. }), _e = (e, t) => w(() => it(e) || qt(t)), ql = (e, t) => {
  2371. const o = W(null), a = ke(e, "modelValue", t), l = _e(() => e.id, "input"), n = r(() => e.autofocus), i = r(() => e.disabled), s = r(() => e.lazy), u = r(() => e.lazyFormatter), d = r(() => e.number), f = r(() => e.state), g = r(() => e.trim), p = he(() => e.debounce ?? 0), y = he(() => e.debounceMaxWait ?? NaN), b = bi(
  2372. (T) => {
  2373. a.value = T;
  2374. },
  2375. () => s.value === !0 ? 0 : p.value,
  2376. { maxWait: () => s.value === !0 ? NaN : y.value }
  2377. ), V = (T, O = !1) => {
  2378. s.value === !0 && O === !1 || b(T);
  2379. }, { focused: C } = xe(o, {
  2380. initialValue: n.value
  2381. }), c = (T, O, F = !1) => e.formatter !== void 0 && (!u.value || F) ? e.formatter(T, O) : T, h = (T) => g.value ? T.trim() : d.value ? Number.parseFloat(T) : T;
  2382. st(() => {
  2383. var T;
  2384. o.value && (o.value.value = ((T = a.value) == null ? void 0 : T.toString()) ?? "");
  2385. }), xn(() => {
  2386. Ne(() => {
  2387. n.value && (C.value = !0);
  2388. });
  2389. });
  2390. const B = Ca(() => e.ariaInvalid, f);
  2391. return {
  2392. input: o,
  2393. computedId: l,
  2394. computedAriaInvalid: B,
  2395. onInput: (T) => {
  2396. const { value: O } = T.target, F = c(O, T);
  2397. if (T.defaultPrevented) {
  2398. T.preventDefault();
  2399. return;
  2400. }
  2401. const K = h(F);
  2402. V(K), t("input", F);
  2403. },
  2404. onChange: (T) => {
  2405. const { value: O } = T.target, F = c(O, T);
  2406. if (T.defaultPrevented) {
  2407. T.preventDefault();
  2408. return;
  2409. }
  2410. const K = h(F);
  2411. a.value !== K && V(F, !0), t("change", F);
  2412. },
  2413. onBlur: (T) => {
  2414. if (t("blur", T), !s.value && !u.value)
  2415. return;
  2416. const { value: O } = T.target, F = c(O, T, !0), K = h(F);
  2417. a.value !== K && V(F, !0);
  2418. },
  2419. focus: () => {
  2420. i.value || (C.value = !0);
  2421. },
  2422. blur: () => {
  2423. i.value || (C.value = !1);
  2424. }
  2425. };
  2426. }, Vt = (e, t) => {
  2427. if (!e)
  2428. return e;
  2429. if (t in e)
  2430. return e[t];
  2431. const o = t.split(".");
  2432. return Vt(e[o[0]], o.splice(1).join("."));
  2433. }, Ea = (e, t = null, o, a) => {
  2434. if (Object.prototype.toString.call(e) === "[object Object]") {
  2435. const l = Vt(e, a.valueField), n = Vt(e, a.textField), i = Vt(e, a.htmlField), s = Vt(e, a.disabledField), u = e[a.optionsField] || null;
  2436. return u !== null ? {
  2437. label: String(Vt(e, a.labelField) || n),
  2438. options: no(u, o, a)
  2439. } : {
  2440. value: typeof l > "u" ? t || n : l,
  2441. text: String(typeof n > "u" ? t : n),
  2442. html: i,
  2443. disabled: !!s
  2444. };
  2445. }
  2446. return {
  2447. value: t || e,
  2448. text: String(e),
  2449. disabled: !1
  2450. };
  2451. }, no = (e, t, o) => Array.isArray(e) ? e.map((a) => Ea(a, null, t, o)) : Object.prototype.toString.call(e) === "[object Object]" ? (console.warn(
  2452. `[BootstrapVue warn]: ${t} - Setting prop "options" to an object is deprecated. Use the array format instead.`
  2453. ), Object.keys(e).map((a) => {
  2454. const l = e[a];
  2455. switch (typeof l) {
  2456. case "object":
  2457. return Ea(l.text, String(l.value), t, o);
  2458. default:
  2459. return Ea(l, String(a), t, o);
  2460. }
  2461. })) : [], Pa = "modal-open", so = di(() => {
  2462. const e = ua([]), t = E(() => e.value.length), o = E(() => e.value[e.value.length - 1]), a = (f) => {
  2463. e.value = [...e.value, f];
  2464. }, l = (f) => {
  2465. e.value = e.value.filter((g) => g.uid !== f.uid);
  2466. }, n = ua([]), i = (f) => {
  2467. n.value = [...n.value, f];
  2468. }, s = (f) => {
  2469. n.value = n.value.filter((g) => g.uid !== f.uid);
  2470. }, u = (f) => {
  2471. l(f), s(f);
  2472. }, d = oo("updateHTMLAttrs", (f, g, p) => {
  2473. const y = typeof f == "string" ? window == null ? void 0 : window.document.querySelector(f) : ut(f);
  2474. y && (g === "class" ? y.classList.toggle(Pa, p === Pa) : y.setAttribute(g, p));
  2475. });
  2476. return bt(() => {
  2477. d("body", "class", "");
  2478. }), ue(t, (f) => {
  2479. d("body", "class", f > 0 ? Pa : "");
  2480. }), {
  2481. registry: n,
  2482. stack: e,
  2483. lastStack: o,
  2484. countStack: t,
  2485. pushStack: a,
  2486. removeStack: l,
  2487. pushRegistry: i,
  2488. removeRegistry: s,
  2489. dispose: u
  2490. };
  2491. }), Mi = (e) => {
  2492. const { pushRegistry: t, pushStack: o, removeStack: a, stack: l, dispose: n, countStack: i } = so(), s = Ht();
  2493. if (!s || s.type.__name !== "BModal")
  2494. throw new Error("useModalManager must only use in BModal component");
  2495. return t(s), bt(() => {
  2496. n(s);
  2497. }), ue(
  2498. e,
  2499. (u, d) => {
  2500. u ? o(s) : d && !u && a(s);
  2501. },
  2502. { immediate: !0 }
  2503. ), {
  2504. activePosition: w(
  2505. () => l.value.findIndex((u) => {
  2506. var d, f;
  2507. return ((d = u.exposed) == null ? void 0 : d.id) === ((f = s.exposed) == null ? void 0 : f.id);
  2508. })
  2509. ),
  2510. activeModalCount: i
  2511. };
  2512. }, Di = (e = void 0) => {
  2513. const { registry: t } = so(), o = Ht(), a = w(() => {
  2514. const n = it(e);
  2515. return n ? t.value.find((i) => {
  2516. var s;
  2517. return ((s = i.exposed) == null ? void 0 : s.id.value) === n;
  2518. }) || null : o ? Gl(o) : null;
  2519. }), l = E(() => {
  2520. var n;
  2521. return (n = a.value) == null ? void 0 : n.proxy;
  2522. });
  2523. return {
  2524. show() {
  2525. var n, i;
  2526. (i = (n = a.value) == null ? void 0 : n.exposed) == null || i.show();
  2527. },
  2528. hide(n = "") {
  2529. var i, s;
  2530. (s = (i = a.value) == null ? void 0 : i.exposed) == null || s.hide(n);
  2531. },
  2532. modal: l
  2533. };
  2534. }, Gl = (e) => e.parent ? e.parent.type.__name === "BModal" ? e.parent : Gl(e.parent) : null, ji = () => {
  2535. const { lastStack: e, stack: t } = so();
  2536. return {
  2537. hide: (l = "") => {
  2538. var n;
  2539. e.value && ((n = e.value.exposed) == null || n.hide(l));
  2540. },
  2541. hideAll: (l = "") => {
  2542. var n;
  2543. for (const i of t.value)
  2544. (n = i.exposed) == null || n.hide(l);
  2545. }
  2546. // Todo: Supports listening events globally in the future
  2547. };
  2548. }, io = (e) => {
  2549. const t = (u, d) => {
  2550. const f = d === null ? "" : `${d}-`;
  2551. return u === "circle" ? `${f}rounded-circle` : u === "pill" ? `${f}rounded-pill` : typeof u == "number" || u === "0" || u === "1" || u === "2" || u === "3" || u === "4" || u === "5" ? `${f}rounded-${u}` : u === "none" ? `${f}rounded-0` : u === "sm" ? `${f}rounded-1` : u === "lg" ? `${f}rounded-5` : `${f}rounded`;
  2552. }, o = Xe(E(e)), a = r(() => o.value.rounded), l = r(() => o.value.roundedTop), n = r(() => o.value.roundedBottom), i = r(() => o.value.roundedStart), s = r(() => o.value.roundedEnd);
  2553. return w(() => ({
  2554. [`${t(a.value, null)}`]: !!a.value,
  2555. [`${t(l.value, "top")}`]: !!l.value,
  2556. [`${t(n.value, "bottom")}`]: !!n.value,
  2557. [`${t(i.value, "start")}`]: !!i.value,
  2558. [`${t(s.value, "end")}`]: !!s.value
  2559. }));
  2560. }, Wl = (e, t) => {
  2561. const o = Xe(E(e)), a = Xe(E(t)), l = E(() => !a.value);
  2562. st(() => {
  2563. const n = Li(
  2564. document.body,
  2565. o.value && l.value
  2566. );
  2567. ue([o, l], ([i, s]) => {
  2568. n.value = i && s;
  2569. });
  2570. });
  2571. }, qi = "top-right", Ul = Al(() => {
  2572. const e = W([]);
  2573. return { toasts: e, show: (...[a, l]) => {
  2574. const n = { pos: qi };
  2575. typeof a == "string" ? Object.assign(n, l, {
  2576. body: a,
  2577. value: (l == null ? void 0 : l.value) || 5e3
  2578. }) : Object.assign(n, a, { value: a.value || 5e3 });
  2579. const i = Symbol();
  2580. return e.value.push({ ...n, self: i }), i;
  2581. }, hide: (a) => {
  2582. const l = e.value.findIndex((n) => n.self === a);
  2583. l !== -1 && e.value.splice(l, 1);
  2584. } };
  2585. }), Gi = ["id"], Wi = ["innerHTML"], Ui = ["innerHTML"], ro = /* @__PURE__ */ q({
  2586. inheritAttrs: !1,
  2587. __name: "BPopover",
  2588. props: {
  2589. boundary: { default: "clippingAncestors" },
  2590. boundaryPadding: { default: void 0 },
  2591. click: { type: [String, Boolean], default: !1 },
  2592. container: { default: void 0 },
  2593. content: { default: void 0 },
  2594. customClass: { default: "" },
  2595. delay: { default: () => ({ show: 100, hide: 300 }) },
  2596. floatingMiddleware: { default: void 0 },
  2597. hide: { type: [String, Boolean], default: void 0 },
  2598. html: { type: [String, Boolean], default: !1 },
  2599. id: { default: void 0 },
  2600. inline: { type: [String, Boolean], default: !1 },
  2601. manual: { type: [String, Boolean], default: !1 },
  2602. modelValue: { type: [String, Boolean], default: !1 },
  2603. noAutoClose: { type: [String, Boolean], default: !1 },
  2604. noFade: { type: [String, Boolean], default: !1 },
  2605. noFlip: { type: [String, Boolean], default: !1 },
  2606. noHide: { type: [String, Boolean], default: !1 },
  2607. noShift: { type: [String, Boolean], default: !1 },
  2608. noSize: { type: [String, Boolean], default: !1 },
  2609. noninteractive: { type: [String, Boolean], default: !1 },
  2610. offset: { default: null },
  2611. placement: { default: "top" },
  2612. persistent: { type: [String, Boolean], default: !1 },
  2613. realtime: { type: [String, Boolean], default: !1 },
  2614. reference: { default: null },
  2615. strategy: { default: "absolute" },
  2616. target: { default: null },
  2617. title: { default: void 0 },
  2618. tooltip: { type: [String, Boolean], default: !1 },
  2619. variant: { default: null }
  2620. },
  2621. emits: ["hidden", "hide", "hide-prevented", "show", "show-prevented", "shown", "update:modelValue"],
  2622. setup(e, { expose: t, emit: o }) {
  2623. const a = e, l = o, n = r(() => a.modelValue), i = W(n.value), s = W(n.value);
  2624. Xt(() => {
  2625. l("update:modelValue", i.value);
  2626. }), ue(n, () => {
  2627. n.value !== i.value && (n.value ? me() : de(new Event("update:modelValue")));
  2628. });
  2629. const u = _e(() => a.id, "popover"), d = r(() => a.click), f = r(() => a.manual), g = r(() => a.noShift), p = r(() => a.noSize), y = r(() => a.noFlip), b = r(() => a.noFade), V = r(() => a.noAutoClose), C = r(() => a.noHide), c = r(() => a.realtime), h = r(() => a.inline), B = r(() => a.persistent), _ = r(() => a.tooltip), k = r(() => a.noninteractive), S = r(() => a.html), $ = W(!1), I = W(null), T = W(null), O = W(null), F = W(null), K = W(null), z = w(
  2630. () => a.title ? Ot(a.title, At) : ""
  2631. ), P = w(
  2632. () => a.content ? Ot(a.content, At) : ""
  2633. ), D = E(() => a.placement.startsWith("auto")), ae = he(() => a.offset ?? NaN), le = w(
  2634. () => a.boundary === "document" || a.boundary === "viewport" ? void 0 : a.boundary
  2635. ), ve = w(
  2636. () => a.boundary === "document" || a.boundary === "viewport" ? a.boundary : void 0
  2637. ), Be = W({}), Ve = w(() => {
  2638. if (a.floatingMiddleware !== void 0)
  2639. return a.floatingMiddleware;
  2640. const Y = a.offset !== null ? ae.value : _.value ? 6 : 8, re = [gl(Y)];
  2641. return y.value === !1 && !D.value && re.push(
  2642. pl({
  2643. boundary: le.value,
  2644. rootBoundary: ve.value,
  2645. padding: a.boundaryPadding
  2646. })
  2647. ), D.value && re.push(
  2648. Ls({
  2649. alignment: a.placement.split("-")[1] || void 0,
  2650. boundary: le.value,
  2651. rootBoundary: ve.value,
  2652. padding: a.boundaryPadding
  2653. })
  2654. ), g.value === !1 && re.push(
  2655. bl({
  2656. boundary: le.value,
  2657. rootBoundary: ve.value,
  2658. padding: a.boundaryPadding
  2659. })
  2660. ), C.value === !1 && re.push(
  2661. Fs({
  2662. boundary: le.value,
  2663. rootBoundary: ve.value,
  2664. padding: a.boundaryPadding
  2665. })
  2666. ), h.value === !0 && re.push(zs()), re.push(li({ element: O, padding: 10 })), p.value === !1 && re.push(
  2667. yl({
  2668. boundary: le.value,
  2669. rootBoundary: ve.value,
  2670. padding: a.boundaryPadding,
  2671. apply({ availableWidth: Ae, availableHeight: He }) {
  2672. Be.value = {
  2673. maxHeight: He ? `${He}px` : void 0,
  2674. maxWidth: Ae ? `${Ae}px` : void 0
  2675. };
  2676. }
  2677. })
  2678. ), re;
  2679. }), oe = E(
  2680. () => D.value ? void 0 : a.placement
  2681. ), { floatingStyles: fe, middlewareData: $e, placement: we, update: M } = Vl(T, I, {
  2682. placement: oe,
  2683. middleware: Ve,
  2684. strategy: E(() => a.strategy),
  2685. whileElementsMounted: (...Y) => Tl(...Y, { animationFrame: c.value })
  2686. }), L = W({ position: "absolute" });
  2687. ue($e, () => {
  2688. var Y;
  2689. if (C.value === !1 && ((Y = $e.value.hide) != null && Y.referenceHidden ? $.value = !0 : $.value = !1), $e.value.arrow) {
  2690. const { x: re, y: Ae } = $e.value.arrow;
  2691. L.value = {
  2692. position: "absolute",
  2693. top: Ae ? `${Ae}px` : "",
  2694. left: re ? `${re}px` : ""
  2695. };
  2696. }
  2697. });
  2698. const U = w(() => {
  2699. const Y = _.value ? "tooltip" : "popover";
  2700. return [
  2701. Y,
  2702. `b-${Y}`,
  2703. {
  2704. [`b-${Y}-${a.variant}`]: a.variant !== null,
  2705. show: i.value && !$.value,
  2706. "pe-none": !i.value,
  2707. fade: !b.value,
  2708. "d-none": !i.value && b.value,
  2709. [`${a.customClass}`]: a.customClass !== void 0,
  2710. [`bs-${Y}-${Ki(we.value)}`]: we.value !== void 0
  2711. }
  2712. ];
  2713. }), { isOutside: H } = Eo(I), { isOutside: G } = Eo(F), X = (Y) => {
  2714. const re = Y ?? new Event("click");
  2715. i.value ? de(re) : me();
  2716. }, te = (Y, re = {}) => new Rt(Y, {
  2717. cancelable: !1,
  2718. target: I.value || null,
  2719. relatedTarget: null,
  2720. trigger: null,
  2721. ...re,
  2722. componentId: u.value
  2723. });
  2724. let be;
  2725. const me = () => {
  2726. const Y = te("show", { cancelable: !0 });
  2727. if (l("show", Y), Y.defaultPrevented) {
  2728. l("show-prevented");
  2729. return;
  2730. }
  2731. s.value = !0, Ne(() => {
  2732. var re;
  2733. M(), be = setTimeout(
  2734. () => {
  2735. M(), i.value = !0, Ne(() => {
  2736. l("shown", te("shown"));
  2737. });
  2738. },
  2739. typeof a.delay == "number" ? a.delay : ((re = a.delay) == null ? void 0 : re.show) || 0
  2740. );
  2741. });
  2742. }, de = (Y) => {
  2743. var He;
  2744. const re = te("hide", { cancelable: !0 });
  2745. if (l("hide", re), re.defaultPrevented) {
  2746. l("hide-prevented");
  2747. return;
  2748. }
  2749. be && (clearTimeout(be), be = void 0);
  2750. const Ae = typeof a.delay == "number" ? a.delay : ((He = a.delay) == null ? void 0 : He.hide) || 0;
  2751. setTimeout(() => {
  2752. var Re, kt;
  2753. (Y == null ? void 0 : Y.type) === "click" || (Y == null ? void 0 : Y.type) === "forceHide" || (Y == null ? void 0 : Y.type) === "update:modelValue" && f.value || !k.value && H.value && G.value && !((Re = I.value) != null && Re.contains(document == null ? void 0 : document.activeElement)) && !((kt = F.value) != null && kt.contains(document == null ? void 0 : document.activeElement)) || k.value && G.value ? (i.value = !1, Ne(() => {
  2754. setTimeout(
  2755. () => {
  2756. s.value = !1;
  2757. },
  2758. I.value ? La(I.value) : 150
  2759. ), l("hidden", te("hidden"));
  2760. })) : setTimeout(
  2761. () => {
  2762. de(Y);
  2763. },
  2764. Ae < 50 ? 50 : Ae
  2765. );
  2766. }, Ae);
  2767. };
  2768. t({
  2769. hide: de,
  2770. show: me,
  2771. toggle: X
  2772. });
  2773. const ie = (Y) => {
  2774. const re = v(Y);
  2775. if (re) {
  2776. if (typeof re == "string") {
  2777. const Ae = document.getElementById(re);
  2778. return Ae || void 0;
  2779. }
  2780. return re.$el ? re.$el : re;
  2781. }
  2782. }, ce = () => {
  2783. var Y;
  2784. if (a.target) {
  2785. const re = ie(a.target);
  2786. re ? F.value = re : console.warn("Target element not found", a.target);
  2787. } else
  2788. F.value = (Y = K.value) == null ? void 0 : Y.nextElementSibling;
  2789. if (a.reference) {
  2790. const re = ie(a.reference);
  2791. re ? T.value = re : console.warn("Reference element not found", a.reference);
  2792. } else
  2793. T.value = F.value;
  2794. if (!(!F.value || f.value) && Ka) {
  2795. if (F.value.addEventListener("forceHide", de), d.value) {
  2796. F.value.addEventListener("click", X);
  2797. return;
  2798. }
  2799. F.value.addEventListener("pointerenter", me), F.value.addEventListener("pointerleave", de), F.value.addEventListener("focus", me), F.value.addEventListener("blur", de);
  2800. }
  2801. }, Ce = () => {
  2802. F.value && (F.value.removeEventListener("forceHide", de), F.value.removeEventListener("click", X), F.value.removeEventListener("pointerenter", me), F.value.removeEventListener("pointerleave", de), F.value.removeEventListener("focus", me), F.value.removeEventListener("blur", de));
  2803. };
  2804. return Ll(
  2805. I,
  2806. () => {
  2807. i.value && d.value && !V.value && !f.value && de(new Event("clickOutside"));
  2808. },
  2809. { ignore: [F] }
  2810. ), ue([() => a.click, () => a.target, () => a.reference], () => {
  2811. Ce(), ce();
  2812. }), st(ce), Wa(Ce), (Y, re) => (m(), N(ge, null, [
  2813. ee("span", {
  2814. ref_key: "placeholder",
  2815. ref: K
  2816. }, null, 512),
  2817. A(Y.$slots, "target", {
  2818. show: me,
  2819. hide: de,
  2820. toggle: X,
  2821. showState: i.value
  2822. }),
  2823. (m(), x(zt, {
  2824. to: Y.container,
  2825. disabled: !Y.container
  2826. }, [
  2827. s.value || v(B) ? (m(), N("div", Q({
  2828. key: 0,
  2829. id: Y.id
  2830. }, Y.$attrs, {
  2831. ref_key: "element",
  2832. ref: I,
  2833. class: U.value,
  2834. role: "tooltip",
  2835. tabindex: "-1",
  2836. style: v(fe)
  2837. }), [
  2838. ee("div", {
  2839. ref_key: "arrow",
  2840. ref: O,
  2841. class: j(`${v(_) ? "tooltip" : "popover"}-arrow`),
  2842. style: ze(L.value),
  2843. "data-popper-arrow": ""
  2844. }, null, 6),
  2845. ee("div", {
  2846. class: "overflow-auto",
  2847. style: ze(Be.value)
  2848. }, [
  2849. Y.title || Y.$slots.title ? (m(), N(ge, { key: 0 }, [
  2850. v(S) ? (m(), N("div", {
  2851. key: 1,
  2852. class: j(["position-sticky top-0", v(_) ? "tooltip-inner" : "popover-header"]),
  2853. innerHTML: z.value
  2854. }, null, 10, Wi)) : (m(), N("div", {
  2855. key: 0,
  2856. class: j(["position-sticky top-0", v(_) ? "tooltip-inner" : "popover-header"])
  2857. }, [
  2858. A(Y.$slots, "title", {}, () => [
  2859. ne(Z(Y.title), 1)
  2860. ])
  2861. ], 2))
  2862. ], 64)) : J("", !0),
  2863. v(_) && !Y.$slots.title && !Y.title || !v(_) ? (m(), N(ge, { key: 1 }, [
  2864. v(S) ? (m(), N("div", {
  2865. key: 1,
  2866. class: j(v(_) ? "tooltip-inner" : "popover-body"),
  2867. innerHTML: P.value
  2868. }, null, 10, Ui)) : (m(), N("div", {
  2869. key: 0,
  2870. class: j(v(_) ? "tooltip-inner" : "popover-body")
  2871. }, [
  2872. A(Y.$slots, "default", {}, () => [
  2873. ne(Z(Y.content), 1)
  2874. ])
  2875. ], 2))
  2876. ], 64)) : J("", !0)
  2877. ], 4)
  2878. ], 16, Gi)) : J("", !0)
  2879. ], 8, ["to", "disabled"]))
  2880. ], 64));
  2881. }
  2882. }), Xi = ({
  2883. top: e,
  2884. end: t,
  2885. start: o,
  2886. alignCenter: a,
  2887. alignEnd: l
  2888. }) => {
  2889. const n = e ? "top" : o ? "left" : t ? "right" : "bottom", i = l ? "end" : a ? null : "start";
  2890. return `${n}${i ? `-${i}` : ""}`;
  2891. }, Ki = (e) => {
  2892. const [t] = e.split("-");
  2893. switch (t) {
  2894. case "left":
  2895. return "start";
  2896. case "right":
  2897. return "end";
  2898. default:
  2899. return t;
  2900. }
  2901. }, Ut = (e) => typeof e != "object" || e.active !== !1, ga = (e, t) => {
  2902. if (!Ut(e))
  2903. return {};
  2904. const a = typeof e > "u" || typeof e == "object" && !e.title && !e.content, l = t.getAttribute("title") || t.getAttribute("data-original-title");
  2905. return a ? l ? (t.removeAttribute("title"), t.setAttribute("data-original-title", l), {
  2906. content: Ot(l, At)
  2907. }) : {} : typeof e == "string" ? {
  2908. content: Ot(e, At)
  2909. } : {
  2910. title: e != null && e.title ? Ot(e == null ? void 0 : e.title, At) : void 0,
  2911. content: e != null && e.content ? Ot(e == null ? void 0 : e.content, At) : void 0
  2912. };
  2913. }, Nt = (e, t) => ({
  2914. target: t,
  2915. modelValue: e.modifiers.show,
  2916. inline: e.modifiers.inline,
  2917. click: e.modifiers.click,
  2918. realtime: e.modifiers.realtime,
  2919. persistent: e.modifiers.persistent,
  2920. placement: e.modifiers.left ? "left" : e.modifiers.right ? "right" : e.modifiers.bottom ? "bottom" : e.modifiers.top ? "top" : void 0,
  2921. html: !0,
  2922. ...typeof e.value == "object" ? e.value : {},
  2923. title: null,
  2924. content: null
  2925. }), ba = (e, t) => {
  2926. var a;
  2927. const o = document.createElement("span");
  2928. t.modifiers.body ? document.body.appendChild(o) : t.modifiers.child ? e.appendChild(o) : (a = e.parentNode) == null || a.insertBefore(o, e.nextSibling), e.$__app = Mn({ render: () => {
  2929. var l;
  2930. return Le(ro, { ...(l = e.$__state) == null ? void 0 : l.value });
  2931. } }), e.$__app.mount(o), e.$__element = o;
  2932. }, Xl = (e) => {
  2933. var o;
  2934. const t = e.$__element;
  2935. (o = e.$__app) == null || o.unmount(), delete e.$__app, delete e.$__state, setTimeout(() => {
  2936. t == null || t.remove();
  2937. }, 0), delete e.$__element;
  2938. }, wa = (e, t, o) => t.concat(["sm", "md", "lg", "xl", "xxl"]).reduce((a, l) => (a[e ? `${e}${l.charAt(0).toUpperCase() + l.slice(1)}` : l] = o, a), /* @__PURE__ */ Object.create(null)), Kl = (e, t, o, a = o) => Object.keys(t).reduce((l, n) => (e[n] && l.push(
  2939. [a, n.replace(o, ""), e[n]].filter((i) => i && typeof i != "boolean").join("-").toLowerCase()
  2940. ), l), []), ia = (e) => typeof e == "string" ? bo(e) : e.label !== void 0 ? e.label : typeof e.key == "string" ? bo(e.key) : e.key, qt = (e = "") => `__BVID__${Math.random().toString().slice(2, 8)}___BV_${e}__`, Yi = (e, t) => ((e == null ? void 0 : e()) ?? []).reduce((o, a) => (typeof a.type == "symbol" ? o = o.concat(a.children) : o.push(a), o), []).filter((o) => {
  2941. var a;
  2942. return ((a = o.type) == null ? void 0 : a.__name) === t;
  2943. }), Po = (e) => e !== null && typeof e == "object", Zi = (e) => /^[0-9]*\.?[0-9]+$/.test(String(e)), Ji = (e) => !!(e.href || e.to), Yl = Symbol("carousel"), Zl = Symbol("tabs"), Jl = Symbol("progress"), Ql = Symbol("listGroup"), en = Symbol("avatarGroup"), tn = Symbol("accordion"), an = Symbol("checkboxGroup"), on = Symbol("radioGroup"), uo = Symbol("collapse"), ln = Symbol("collapse"), co = Symbol("navbar"), jt = (e, t = {}, o = {}) => {
  2944. const a = [e];
  2945. let l;
  2946. for (let n = 0; n < a.length && !l; n++) {
  2947. const i = a[n];
  2948. l = o[i];
  2949. }
  2950. return l && typeof l == "function" ? l(t) : l;
  2951. }, Qi = (e, t = NaN) => {
  2952. const o = Number.parseInt(e, 10);
  2953. return Number.isNaN(o) ? t : o;
  2954. }, er = (e, t = NaN) => {
  2955. const o = Number.parseFloat(e.toString());
  2956. return Number.isNaN(o) ? t : o;
  2957. }, nn = (e, t) => Object.keys(e).filter((o) => !t.map((a) => a.toString()).includes(o)).reduce((o, a) => ({ ...o, [a]: e[a] }), {}), fo = (e, t) => [...t].reduce(
  2958. (o, a) => (o[a] = e[a], o),
  2959. {}
  2960. ), No = (e, t, o) => {
  2961. const a = t.split(/[.[\]]/g);
  2962. let l = e;
  2963. for (const n of a) {
  2964. if (l === null || l === void 0)
  2965. return o;
  2966. n.trim() !== "" && (l = l[n]);
  2967. }
  2968. return l === void 0 ? o : l;
  2969. }, Io = (e, t) => {
  2970. const { all: o, ...a } = e, l = {};
  2971. o && t.forEach((i) => {
  2972. l[i] = o;
  2973. });
  2974. const n = { ...l, ...a };
  2975. return Object.entries(n).filter(([i, s]) => !!s && t.includes(i)).map(([i]) => i);
  2976. }, Lo = (e, t) => t + (e ? ts(e) : ""), tr = ["id"], ar = /* @__PURE__ */ q({
  2977. __name: "BAccordion",
  2978. props: {
  2979. flush: { type: [String, Boolean], default: !1 },
  2980. free: { type: [String, Boolean], default: !1 },
  2981. id: { default: void 0 },
  2982. modelValue: { default: void 0 }
  2983. },
  2984. emits: ["update:modelValue"],
  2985. setup(e, { emit: t }) {
  2986. const o = e, l = ke(o, "modelValue", t, { passive: !0 }), n = _e(() => o.id, "accordion"), i = r(() => o.flush), s = r(() => o.free), u = w(() => ({
  2987. "accordion-flush": i.value
  2988. }));
  2989. return at(tn, {
  2990. openItem: Xe(l),
  2991. free: s,
  2992. setOpenItem: (d) => {
  2993. l.value = d;
  2994. }
  2995. }), (d, f) => (m(), N("div", {
  2996. id: v(n),
  2997. class: j(["accordion", u.value])
  2998. }, [
  2999. A(d.$slots, "default")
  3000. ], 10, tr));
  3001. }
  3002. }), sn = /* @__PURE__ */ q({
  3003. inheritAttrs: !1,
  3004. __name: "BCollapse",
  3005. props: {
  3006. horizontal: { type: [String, Boolean], default: !1 },
  3007. id: { default: void 0 },
  3008. isNav: { type: [String, Boolean], default: !1 },
  3009. modelValue: { type: [String, Boolean], default: !1 },
  3010. skipAnimation: { type: [String, Boolean], default: !1 },
  3011. tag: { default: "div" },
  3012. toggle: { type: [String, Boolean], default: !1 },
  3013. visible: { type: [String, Boolean], default: !1 }
  3014. },
  3015. emits: ["hidden", "hide", "hide-prevented", "show", "show-prevented", "shown", "update:modelValue"],
  3016. setup(e, { expose: t, emit: o }) {
  3017. const a = e, l = o, n = (O, F = {}) => new Rt(O, {
  3018. cancelable: !1,
  3019. target: b.value || null,
  3020. relatedTarget: null,
  3021. trigger: null,
  3022. ...F,
  3023. componentId: y.value
  3024. }), i = ke(a, "modelValue", l, { passive: !0 }), s = r(i), u = r(() => a.toggle), d = r(() => a.horizontal), f = r(() => a.isNav), g = r(() => a.visible), p = r(() => a.skipAnimation), y = _e(() => a.id, "collapse"), b = W(null), V = W(!1), C = W(s.value), c = w(() => ({
  3025. show: C.value,
  3026. "navbar-collapse": f.value,
  3027. collapsing: V.value,
  3028. closing: C.value && !s.value,
  3029. "collapse-horizontal": d.value
  3030. })), h = () => {
  3031. i.value = !1;
  3032. }, B = () => {
  3033. i.value = !0;
  3034. }, _ = () => {
  3035. i.value = !s.value;
  3036. };
  3037. let k, S, $ = p.value;
  3038. const I = () => {
  3039. const O = n("show", { cancelable: !0 });
  3040. if (l("show", O), O.defaultPrevented) {
  3041. l("show-prevented");
  3042. return;
  3043. }
  3044. clearTimeout(S), clearTimeout(k), C.value = !0, !$ && (V.value = !0, Ne(() => {
  3045. b.value !== null && (d.value ? b.value.style.width = `${b.value.scrollWidth}px` : b.value.style.height = `${b.value.scrollHeight}px`, k = setTimeout(() => {
  3046. V.value = !1, l("shown"), b.value !== null && (b.value.style.height = "", b.value.style.width = "");
  3047. }, La(b.value)));
  3048. }));
  3049. }, T = () => {
  3050. const O = n("hide", { cancelable: !0 });
  3051. if (l("hide", O), O.defaultPrevented) {
  3052. l("hide-prevented");
  3053. return;
  3054. }
  3055. if (clearTimeout(k), clearTimeout(S), b.value !== null) {
  3056. if ($) {
  3057. C.value = !1;
  3058. return;
  3059. }
  3060. V.value ? (b.value.style.height = "", b.value.style.width = "") : d.value ? b.value.style.width = `${b.value.scrollWidth}px` : b.value.style.height = `${b.value.scrollHeight}px`, b.value.offsetHeight, V.value = !0, Ne(() => {
  3061. b.value !== null && (b.value.style.height = "", b.value.style.width = "", S = setTimeout(() => {
  3062. C.value = !1, V.value = !1, l("hidden");
  3063. }, La(b.value)));
  3064. });
  3065. }
  3066. };
  3067. return ue(i, () => {
  3068. s.value ? I() : T();
  3069. }), st(() => {
  3070. b.value !== null && !s.value && u.value && Ne(() => {
  3071. i.value = !0;
  3072. });
  3073. }), ue(p, (O) => {
  3074. $ = O;
  3075. }), g.value && ($ = !0, i.value = !0, Ne(() => {
  3076. $ = p.value;
  3077. })), ue(g, (O) => {
  3078. $ = !0, O ? B() : h(), Ne(() => {
  3079. $ = p.value;
  3080. });
  3081. }), Oe(b, "bv-toggle", () => {
  3082. i.value = !s.value;
  3083. }), t({
  3084. close: h,
  3085. isNav: f,
  3086. open: B,
  3087. toggle: _,
  3088. visible: Xe(C)
  3089. }), at(uo, {
  3090. id: y,
  3091. close: h,
  3092. open: B,
  3093. toggle: _,
  3094. visible: Xe(C),
  3095. isNav: f
  3096. }), (O, F) => (m(), N(ge, null, [
  3097. A(O.$slots, "header", {
  3098. id: v(y),
  3099. visible: v(s),
  3100. toggle: _,
  3101. open: B,
  3102. close: h
  3103. }),
  3104. (m(), x(se(O.tag), Q({
  3105. id: v(y),
  3106. ref_key: "element",
  3107. ref: b,
  3108. class: ["collapse", c.value],
  3109. "is-nav": v(f)
  3110. }, O.$attrs), {
  3111. default: R(() => [
  3112. A(O.$slots, "default", {
  3113. visible: v(s),
  3114. toggle: _,
  3115. open: B,
  3116. close: h
  3117. })
  3118. ]),
  3119. _: 3
  3120. }, 16, ["id", "class", "is-nav"])),
  3121. A(O.$slots, "footer", {
  3122. id: v(y),
  3123. visible: v(s),
  3124. toggle: _,
  3125. open: B,
  3126. close: h
  3127. })
  3128. ], 64));
  3129. }
  3130. }), or = ["aria-expanded", "aria-controls", "onClick"], lr = /* @__PURE__ */ q({
  3131. inheritAttrs: !1,
  3132. __name: "BAccordionItem",
  3133. props: {
  3134. bodyAttrs: { default: void 0 },
  3135. bodyClass: { default: void 0 },
  3136. buttonAttrs: { default: void 0 },
  3137. buttonClass: { default: void 0 },
  3138. collapseClass: { default: void 0 },
  3139. headerAttrs: { default: void 0 },
  3140. headerClass: { default: void 0 },
  3141. headerTag: { default: "h2" },
  3142. horizontal: { type: [String, Boolean], default: void 0 },
  3143. id: { default: void 0 },
  3144. isNav: { type: [String, Boolean], default: void 0 },
  3145. modelValue: { type: Boolean, default: !1 },
  3146. tag: { default: void 0 },
  3147. title: { default: void 0 },
  3148. toggle: { type: [String, Boolean], default: void 0 },
  3149. visible: { type: [String, Boolean], default: !1 },
  3150. wrapperAttrs: { default: void 0 }
  3151. },
  3152. emits: ["hidden", "hide", "hide-prevented", "show", "show-prevented", "shown", "update:modelValue"],
  3153. setup(e, { emit: t }) {
  3154. const { class: o, ...a } = Kt(), l = e, n = t, i = ke(l, "modelValue", n, { passive: !0 }), s = Ge(tn, null), u = _e(() => l.id, "accordion_item");
  3155. return st(() => {
  3156. i.value && !(s != null && s.free.value) && (s == null || s.setOpenItem(u.value)), !i.value && (s == null ? void 0 : s.openItem.value) === u.value && (i.value = !0);
  3157. }), ue(
  3158. () => s == null ? void 0 : s.openItem.value,
  3159. () => i.value = (s == null ? void 0 : s.openItem.value) === u.value && !(s != null && s.free.value)
  3160. ), ue(i, () => {
  3161. i.value && !(s != null && s.free.value) && (s == null || s.setOpenItem(u.value));
  3162. }), (d, f) => (m(), N("div", Q({ class: "accordion-item" }, d.wrapperAttrs, { class: v(o) }), [
  3163. ye(sn, Q({
  3164. id: v(u),
  3165. modelValue: v(i),
  3166. "onUpdate:modelValue": f[0] || (f[0] = (g) => ol(i) ? i.value = g : null),
  3167. class: ["accordion-collapse", d.collapseClass],
  3168. "aria-labelledby": `${v(u)}-heading`
  3169. }, a, {
  3170. tag: d.tag,
  3171. toggle: d.toggle,
  3172. horizontal: d.horizontal,
  3173. visible: d.visible,
  3174. "is-nav": d.isNav,
  3175. onShow: f[1] || (f[1] = (g) => n("show", g)),
  3176. onShown: f[2] || (f[2] = (g) => n("shown")),
  3177. onHide: f[3] || (f[3] = (g) => n("hide", g)),
  3178. onHidden: f[4] || (f[4] = (g) => n("hidden")),
  3179. onHidePrevented: f[5] || (f[5] = (g) => n("hide-prevented")),
  3180. onShowPrevented: f[6] || (f[6] = (g) => n("show-prevented"))
  3181. }), {
  3182. header: R(({ visible: g, toggle: p }) => [
  3183. (m(), x(se(d.headerTag), Q({
  3184. id: `${v(u)}-heading`,
  3185. class: ["accordion-header", d.headerClass]
  3186. }, d.headerAttrs), {
  3187. default: R(() => [
  3188. ee("button", Q({ class: "accordion-button" }, d.buttonAttrs, {
  3189. class: [{ collapsed: !g }, d.buttonClass],
  3190. type: "button",
  3191. "aria-expanded": g ? "true" : "false",
  3192. "aria-controls": v(u),
  3193. onClick: p
  3194. }), [
  3195. A(d.$slots, "title", {}, () => [
  3196. ne(Z(d.title), 1)
  3197. ])
  3198. ], 16, or)
  3199. ]),
  3200. _: 2
  3201. }, 1040, ["id", "class"]))
  3202. ]),
  3203. default: R(() => [
  3204. ee("div", Q({ class: "accordion-body" }, d.bodyAttrs, { class: d.bodyClass }), [
  3205. A(d.$slots, "default")
  3206. ], 16)
  3207. ]),
  3208. _: 3
  3209. }, 16, ["id", "modelValue", "class", "aria-labelledby", "tag", "toggle", "horizontal", "visible", "is-nav"])
  3210. ], 16));
  3211. }
  3212. }), Mt = /* @__PURE__ */ q({
  3213. __name: "BTransition",
  3214. props: {
  3215. appear: { type: [String, Boolean], default: !1 },
  3216. mode: { default: void 0 },
  3217. noFade: { type: [String, Boolean], default: !1 },
  3218. transProps: { default: void 0 }
  3219. },
  3220. setup(e) {
  3221. const t = e, o = r(() => t.appear), a = r(() => t.noFade), l = w(() => {
  3222. const s = {
  3223. name: "",
  3224. enterActiveClass: "",
  3225. enterToClass: "",
  3226. leaveActiveClass: "",
  3227. leaveToClass: "showing",
  3228. enterFromClass: "showing",
  3229. leaveFromClass: ""
  3230. }, u = {
  3231. ...s,
  3232. enterActiveClass: "fade showing",
  3233. leaveActiveClass: "fade showing"
  3234. };
  3235. return a.value ? s : u;
  3236. }), n = w(() => ({ mode: t.mode, css: !0, ...l.value })), i = w(
  3237. () => t.transProps !== void 0 ? {
  3238. // Order matters here since the props.transProps would get overwritten if it came first
  3239. // But the goal of props.transProps is to overwrite base properties
  3240. ...n.value,
  3241. ...t.transProps
  3242. } : o.value ? {
  3243. ...n.value,
  3244. appear: !0,
  3245. appearActiveClass: l.value.enterActiveClass,
  3246. appearToClass: l.value.enterToClass
  3247. } : n.value
  3248. );
  3249. return (s, u) => (m(), x(Dn, Se(Ee(i.value)), {
  3250. default: R(() => [
  3251. A(s.$slots, "default")
  3252. ]),
  3253. _: 3
  3254. }, 16));
  3255. }
  3256. });
  3257. const nr = ["type", "disabled", "aria-label"], Dt = /* @__PURE__ */ q({
  3258. __name: "BCloseButton",
  3259. props: {
  3260. ariaLabel: { default: "Close" },
  3261. disabled: { type: [String, Boolean], default: !1 },
  3262. type: { default: "button" }
  3263. },
  3264. emits: ["click"],
  3265. setup(e, { emit: t }) {
  3266. const o = e, a = t, l = r(() => o.disabled);
  3267. return (n, i) => (m(), N("button", {
  3268. type: n.type,
  3269. class: "btn-close",
  3270. disabled: v(l),
  3271. "aria-label": n.ariaLabel,
  3272. onClick: i[0] || (i[0] = (s) => a("click", s))
  3273. }, null, 8, nr));
  3274. }
  3275. }), sr = {
  3276. key: 0,
  3277. class: "visually-hidden"
  3278. }, ka = /* @__PURE__ */ q({
  3279. __name: "BSpinner",
  3280. props: {
  3281. label: { default: void 0 },
  3282. role: { default: "status" },
  3283. small: { type: [String, Boolean], default: !1 },
  3284. tag: { default: "span" },
  3285. type: { default: "border" },
  3286. variant: { default: null }
  3287. },
  3288. setup(e) {
  3289. const t = e, o = Me(), a = r(() => t.small), l = w(() => [
  3290. `spinner-${t.type}`,
  3291. {
  3292. [`spinner-${t.type}-sm`]: a.value,
  3293. [`text-${t.variant}`]: t.variant !== null
  3294. }
  3295. ]), n = E(() => !Ie(o.label));
  3296. return (i, s) => (m(), x(se(i.tag), {
  3297. class: j(l.value),
  3298. role: i.label || n.value ? i.role : null,
  3299. "aria-hidden": i.label || n.value ? null : !0
  3300. }, {
  3301. default: R(() => [
  3302. i.label || n.value ? (m(), N("span", sr, [
  3303. A(i.$slots, "label", {}, () => [
  3304. ne(Z(i.label), 1)
  3305. ])
  3306. ])) : J("", !0)
  3307. ]),
  3308. _: 3
  3309. }, 8, ["class", "role", "aria-hidden"]));
  3310. }
  3311. }), Fo = "active", rt = /* @__PURE__ */ q({
  3312. __name: "BLink",
  3313. props: {
  3314. active: { type: [String, Boolean], default: void 0 },
  3315. activeClass: { default: "router-link-active" },
  3316. append: { type: [String, Boolean], default: !1 },
  3317. disabled: { type: [String, Boolean], default: !1 },
  3318. exactActiveClass: { default: "router-link-exact-active" },
  3319. event: { default: "click" },
  3320. href: { default: void 0 },
  3321. icon: { type: [String, Boolean], default: !1 },
  3322. opacity: { default: void 0 },
  3323. opacityHover: { default: void 0 },
  3324. rel: { default: void 0 },
  3325. replace: { type: [String, Boolean], default: !1 },
  3326. routerComponentName: { default: "router-link" },
  3327. routerTag: { default: "a" },
  3328. target: { default: void 0 },
  3329. to: { default: void 0 },
  3330. underlineOffset: { default: void 0 },
  3331. underlineOffsetHover: { default: void 0 },
  3332. underlineOpacity: { default: void 0 },
  3333. underlineOpacityHover: { default: void 0 },
  3334. underlineVariant: { default: null },
  3335. variant: { default: null }
  3336. },
  3337. emits: ["click"],
  3338. setup(e, { emit: t }) {
  3339. const o = e, a = t, l = Kt(), n = r(() => o.active), i = r(() => o.icon);
  3340. r(() => o.append);
  3341. const s = r(() => o.disabled);
  3342. r(() => o.replace);
  3343. const u = Ge(uo, null), d = Ge(co, null), f = Ht(), g = w(() => {
  3344. const c = o.routerComponentName.split("-").map((B) => B.charAt(0).toUpperCase() + B.slice(1)).join("");
  3345. return !((f == null ? void 0 : f.appContext.app.component(c)) !== void 0) || s.value || !o.to ? "a" : o.routerComponentName;
  3346. }), p = w(() => {
  3347. const c = "#";
  3348. if (o.href)
  3349. return o.href;
  3350. if (typeof o.to == "string")
  3351. return o.to || c;
  3352. const { to: h } = o;
  3353. if (h !== void 0 && "path" in h) {
  3354. const B = h.path || "", _ = h.query ? `?${Object.keys(h.query).map((S) => {
  3355. var $;
  3356. return `${S}=${($ = h.query) == null ? void 0 : $[S]}`;
  3357. }).join("=")}` : "", k = !h.hash || h.hash.charAt(0) === "#" ? h.hash || "" : `#${h.hash}`;
  3358. return `${B}${_}${k}` || c;
  3359. }
  3360. return c;
  3361. }), y = w(() => ({
  3362. [`link-${o.variant}`]: o.variant !== null,
  3363. [`link-opacity-${o.opacity}`]: o.opacity !== void 0,
  3364. [`link-opacity-${o.opacityHover}-hover`]: o.opacityHover !== void 0,
  3365. [`link-underline-${o.underlineVariant}`]: o.underlineVariant !== null,
  3366. [`link-offset-${o.underlineOffset}`]: o.underlineOffset !== void 0,
  3367. [`link-offset-${o.underlineOffsetHover}-hover`]: o.underlineOffsetHover !== void 0,
  3368. [`link-underline-opacity-${o.underlineOpacity}`]: o.underlineOpacity !== void 0,
  3369. [`link-underline-opacity-${o.underlineOpacityHover}-hover`]: o.underlineOpacityHover !== void 0,
  3370. "icon-link": i.value === !0
  3371. })), b = w(() => ({
  3372. class: y.value,
  3373. to: o.to,
  3374. href: p.value,
  3375. target: o.target,
  3376. rel: o.target === "_blank" ? o.rel ?? "noopener" : void 0,
  3377. tabindex: s.value ? "-1" : typeof l.tabindex > "u" ? null : l.tabindex,
  3378. "aria-disabled": s.value ? !0 : null
  3379. })), V = w(() => ({
  3380. [Fo]: n.value,
  3381. disabled: s.value
  3382. })), C = (c) => {
  3383. var h, B, _;
  3384. if (s.value) {
  3385. c.preventDefault(), c.stopImmediatePropagation();
  3386. return;
  3387. }
  3388. (((h = u == null ? void 0 : u.isNav) == null ? void 0 : h.value) === !0 && d === null || d !== null && ((B = d.autoClose) == null ? void 0 : B.value) === !0) && ((_ = u == null ? void 0 : u.close) == null || _.call(u)), a("click", c);
  3389. };
  3390. return (c, h) => g.value === "router-link" ? (m(), x(se(g.value), Q({ key: 0 }, b.value, { custom: "" }), {
  3391. default: R(({ href: B, navigate: _, isActive: k, isExactActive: S }) => [
  3392. (m(), x(se(c.routerTag), Q({
  3393. href: B,
  3394. class: {
  3395. [Fo]: v(n),
  3396. [c.activeClass]: k,
  3397. [c.exactActiveClass]: S
  3398. }
  3399. }, c.$attrs, {
  3400. onClick: ($) => {
  3401. _($), C($);
  3402. }
  3403. }), {
  3404. default: R(() => [
  3405. A(c.$slots, "default")
  3406. ]),
  3407. _: 2
  3408. }, 1040, ["href", "class", "onClick"]))
  3409. ]),
  3410. _: 3
  3411. }, 16)) : (m(), x(se(g.value), Q({
  3412. key: 1,
  3413. class: V.value
  3414. }, b.value, { onClick: C }), {
  3415. default: R(() => [
  3416. A(c.$slots, "default")
  3417. ]),
  3418. _: 3
  3419. }, 16, ["class"]));
  3420. }
  3421. }), pt = /* @__PURE__ */ q({
  3422. __name: "BButton",
  3423. props: {
  3424. loading: { type: [String, Boolean], default: !1 },
  3425. loadingFill: { type: [String, Boolean], default: !1 },
  3426. loadingText: { default: "Loading..." },
  3427. pill: { type: [String, Boolean], default: !1 },
  3428. pressed: { type: [String, Boolean], default: void 0 },
  3429. size: { default: "md" },
  3430. squared: { type: [String, Boolean], default: !1 },
  3431. tag: { default: "button" },
  3432. type: { default: "button" },
  3433. variant: { default: "secondary" },
  3434. active: { type: [String, Boolean], default: !1 },
  3435. activeClass: { default: void 0 },
  3436. append: { type: [String, Boolean], default: void 0 },
  3437. disabled: { type: [String, Boolean], default: void 0 },
  3438. exactActiveClass: { default: void 0 },
  3439. event: { default: void 0 },
  3440. href: { default: void 0 },
  3441. icon: { type: [String, Boolean], default: void 0 },
  3442. opacity: { default: void 0 },
  3443. opacityHover: { default: void 0 },
  3444. rel: { default: void 0 },
  3445. replace: { type: [String, Boolean], default: void 0 },
  3446. routerComponentName: { default: void 0 },
  3447. routerTag: { default: void 0 },
  3448. target: { default: void 0 },
  3449. to: { default: void 0 },
  3450. underlineOffset: { default: void 0 },
  3451. underlineOffsetHover: { default: void 0 },
  3452. underlineOpacity: { default: void 0 },
  3453. underlineOpacityHover: { default: void 0 },
  3454. underlineVariant: { default: void 0 }
  3455. },
  3456. emits: ["click", "update:pressed"],
  3457. setup(e, { emit: t }) {
  3458. const o = e, a = t, l = ke(o, "pressed", a), n = r(() => o.active), i = r(() => o.disabled), s = r(() => o.pill), u = r(() => o.pressed), d = r(() => o.squared), f = r(() => o.loading), g = r(() => o.loadingFill), { computedLink: p, computedLinkProps: y } = Ct(o, [
  3459. "active-class",
  3460. "exact-active-class",
  3461. "event",
  3462. "replace",
  3463. "router-component-name",
  3464. "router-tag"
  3465. ]), b = E(() => typeof u.value == "boolean"), V = E(
  3466. () => o.tag === "button" && o.href === void 0 && o.to === void 0
  3467. ), C = E(() => o.to !== void 0), c = E(() => o.href !== void 0 ? !1 : !V.value), h = w(() => C.value ? y.value : []), B = w(() => [
  3468. [`btn-${o.size}`],
  3469. {
  3470. [`btn-${o.variant}`]: o.variant !== null,
  3471. active: n.value || u.value,
  3472. "rounded-pill": s.value,
  3473. "rounded-0": d.value,
  3474. disabled: i.value
  3475. }
  3476. ]), _ = E(() => C.value ? rt : o.href ? "a" : o.tag), k = (S) => {
  3477. if (i.value) {
  3478. S.preventDefault(), S.stopPropagation();
  3479. return;
  3480. }
  3481. a("click", S), b.value && (l.value = !u.value);
  3482. };
  3483. return (S, $) => (m(), x(se(_.value), Q({ class: "btn" }, h.value, {
  3484. class: B.value,
  3485. "aria-disabled": c.value ? v(i) : null,
  3486. "aria-pressed": b.value ? v(u) : null,
  3487. autocomplete: b.value ? "off" : null,
  3488. disabled: V.value ? v(i) : null,
  3489. href: S.href,
  3490. rel: v(p) ? S.rel : null,
  3491. role: c.value || v(p) ? "button" : null,
  3492. target: v(p) ? S.target : null,
  3493. type: V.value ? S.type : null,
  3494. to: V.value ? null : S.to,
  3495. append: v(p) ? S.append : null,
  3496. onClick: k
  3497. }), {
  3498. default: R(() => [
  3499. v(f) ? A(S.$slots, "loading", { key: 0 }, () => [
  3500. v(g) ? J("", !0) : (m(), N(ge, { key: 0 }, [
  3501. ne(Z(S.loadingText), 1)
  3502. ], 64)),
  3503. A(S.$slots, "loading-spinner", {}, () => [
  3504. ye(ka, {
  3505. small: S.size !== "lg",
  3506. label: v(g) ? S.loadingText : void 0
  3507. }, null, 8, ["small", "label"])
  3508. ])
  3509. ]) : A(S.$slots, "default", { key: 1 })
  3510. ]),
  3511. _: 3
  3512. }, 16, ["class", "aria-disabled", "aria-pressed", "autocomplete", "disabled", "href", "rel", "role", "target", "type", "to", "append"]));
  3513. }
  3514. }), ir = /* @__PURE__ */ q({
  3515. __name: "BAlert",
  3516. props: {
  3517. closeClass: { default: void 0 },
  3518. closeContent: { default: void 0 },
  3519. closeLabel: { default: "Close" },
  3520. closeVariant: { default: "secondary" },
  3521. dismissible: { type: [String, Boolean], default: !1 },
  3522. fade: { type: [String, Boolean], default: !1 },
  3523. immediate: { type: [String, Boolean], default: !0 },
  3524. interval: { default: 1e3 },
  3525. modelValue: { type: [Boolean, Number], default: !1 },
  3526. noHoverPause: { type: [String, Boolean], default: !1 },
  3527. showOnPause: { type: [String, Boolean], default: !0 },
  3528. variant: { default: "info" }
  3529. },
  3530. emits: ["close", "close-countdown", "closed", "update:modelValue"],
  3531. setup(e, { expose: t, emit: o }) {
  3532. const a = e, l = o, n = Me(), i = W(null), s = ke(a, "modelValue", l), u = lo(i), d = r(() => a.dismissible), f = r(() => a.fade), g = r(() => a.immediate), p = r(() => a.showOnPause), y = r(() => a.noHoverPause), b = he(() => a.interval), V = E(() => !Ie(n.close)), C = E(() => typeof s.value == "boolean" ? 0 : s.value), c = w(() => ({
  3533. [`alert-${a.variant}`]: a.variant !== null,
  3534. "alert-dismissible": d.value
  3535. })), h = w(() => [a.closeClass, { "btn-close-custom": V.value }]), {
  3536. isActive: B,
  3537. pause: _,
  3538. restart: k,
  3539. resume: S,
  3540. stop: $,
  3541. isPaused: I,
  3542. value: T
  3543. } = zl(C, b, {
  3544. immediate: typeof s.value == "number" && g.value
  3545. }), O = E(
  3546. () => typeof s.value == "boolean" ? s.value : B.value || p.value && I.value
  3547. ), F = w(() => ({
  3548. variant: V.value ? a.closeVariant : void 0,
  3549. class: h.value
  3550. }));
  3551. Xt(() => {
  3552. l("close-countdown", T.value);
  3553. });
  3554. const K = () => {
  3555. l("close"), typeof s.value == "boolean" ? s.value = !1 : (s.value = 0, $()), l("closed");
  3556. }, z = () => {
  3557. y.value || _();
  3558. };
  3559. return ue(u, (P) => {
  3560. if (P) {
  3561. z();
  3562. return;
  3563. }
  3564. S();
  3565. }), Wa($), t({
  3566. pause: _,
  3567. restart: k,
  3568. resume: S,
  3569. stop: $
  3570. }), (P, D) => (m(), x(Mt, {
  3571. "no-fade": !v(f),
  3572. "trans-props": { enterToClass: "show" }
  3573. }, {
  3574. default: R(() => [
  3575. O.value ? (m(), N("div", {
  3576. key: 0,
  3577. ref_key: "element",
  3578. ref: i,
  3579. class: j(["alert", c.value]),
  3580. role: "alert",
  3581. "aria-live": "polite",
  3582. "aria-atomic": "true"
  3583. }, [
  3584. A(P.$slots, "default", {}, void 0, !0),
  3585. v(d) ? (m(), N(ge, { key: 0 }, [
  3586. V.value || P.closeContent ? (m(), x(pt, Q({ key: 0 }, F.value, { onClick: K }), {
  3587. default: R(() => [
  3588. A(P.$slots, "close", {}, () => [
  3589. ne(Z(P.closeContent), 1)
  3590. ], !0)
  3591. ]),
  3592. _: 3
  3593. }, 16)) : (m(), x(Dt, Q({
  3594. key: 1,
  3595. "aria-label": P.closeLabel
  3596. }, F.value, { onClick: K }), null, 16, ["aria-label"]))
  3597. ], 64)) : J("", !0)
  3598. ], 2)) : J("", !0)
  3599. ]),
  3600. _: 3
  3601. }, 8, ["no-fade"]));
  3602. }
  3603. });
  3604. const $a = (e, t) => {
  3605. const o = e.__vccOpts || e;
  3606. for (const [a, l] of t)
  3607. o[a] = l;
  3608. return o;
  3609. }, rr = /* @__PURE__ */ $a(ir, [["__scopeId", "data-v-e683f25c"]]), ur = {
  3610. key: 0,
  3611. class: "b-avatar-custom"
  3612. }, dr = {
  3613. key: 1,
  3614. class: "b-avatar-img"
  3615. }, cr = ["src", "alt"], Ra = (e) => {
  3616. const t = typeof e == "string" && Zi(e) ? er(e, 0) : e;
  3617. return typeof t == "number" ? `${t}px` : t || null;
  3618. }, fr = /* @__PURE__ */ q({
  3619. __name: "BAvatar",
  3620. props: {
  3621. alt: { default: "avatar" },
  3622. badge: { type: [Boolean, String], default: !1 },
  3623. badgeBgVariant: { default: null },
  3624. badgeOffset: { default: void 0 },
  3625. badgeStart: { type: [String, Boolean], default: !1 },
  3626. badgeTextVariant: { default: null },
  3627. badgeTop: { type: [String, Boolean], default: !1 },
  3628. badgeVariant: { default: "primary" },
  3629. button: { type: [String, Boolean], default: !1 },
  3630. buttonType: { default: "button" },
  3631. icon: { type: [String, Boolean], default: void 0 },
  3632. size: { default: void 0 },
  3633. square: { type: [String, Boolean], default: !1 },
  3634. src: { default: void 0 },
  3635. text: { default: void 0 },
  3636. active: { type: [String, Boolean], default: void 0 },
  3637. activeClass: { default: void 0 },
  3638. append: { type: [String, Boolean], default: void 0 },
  3639. disabled: { type: [String, Boolean], default: void 0 },
  3640. exactActiveClass: { default: void 0 },
  3641. href: { default: void 0 },
  3642. opacity: { default: void 0 },
  3643. opacityHover: { default: void 0 },
  3644. rel: { default: void 0 },
  3645. replace: { type: [String, Boolean], default: void 0 },
  3646. routerComponentName: { default: void 0 },
  3647. target: { default: void 0 },
  3648. to: { default: void 0 },
  3649. underlineOffset: { default: void 0 },
  3650. underlineOffsetHover: { default: void 0 },
  3651. underlineOpacity: { default: void 0 },
  3652. underlineOpacityHover: { default: void 0 },
  3653. underlineVariant: { default: void 0 },
  3654. variant: { default: "secondary" },
  3655. bgVariant: { default: null },
  3656. textVariant: { default: null },
  3657. rounded: { type: [String, Number, Boolean], default: !1 },
  3658. roundedTop: { type: [String, Number, Boolean], default: void 0 },
  3659. roundedBottom: { type: [String, Number, Boolean], default: void 0 },
  3660. roundedStart: { type: [String, Number, Boolean], default: void 0 },
  3661. roundedEnd: { type: [String, Number, Boolean], default: void 0 }
  3662. },
  3663. emits: ["click", "img-error"],
  3664. setup(e, { emit: t }) {
  3665. const o = e, a = t, l = Me(), { computedLink: n, computedLinkProps: i } = Ct(o), s = Ge(en, null), u = ["sm", null, "lg"], d = 0.4, f = d * 0.7, g = r(() => o.badgeStart), p = r(() => o.badgeTop), y = r(() => o.button), b = r(() => o.disabled), V = r(() => o.square), C = r(() => o.rounded), c = r(() => o.roundedTop), h = r(() => o.roundedBottom), B = r(() => o.roundedStart), _ = r(() => o.roundedEnd), k = E(() => !Ie(l.default)), S = E(() => !Ie(l.badge)), $ = E(() => !!o.badge || o.badge === "" || S.value), I = E(() => (s == null ? void 0 : s.size.value) ?? V.value), T = E(() => (s == null ? void 0 : s.size.value) ?? Ra(o.size)), O = E(() => (s == null ? void 0 : s.variant.value) ?? o.variant), F = E(() => (s == null ? void 0 : s.rounded.value) ?? C.value), K = E(() => (s == null ? void 0 : s.roundedTop.value) ?? c.value), z = E(
  3666. () => (s == null ? void 0 : s.roundedBottom.value) ?? h.value
  3667. ), P = E(
  3668. () => (s == null ? void 0 : s.roundedStart.value) ?? B.value
  3669. ), D = E(() => (s == null ? void 0 : s.roundedEnd.value) ?? _.value), ae = io(() => ({
  3670. rounded: F.value,
  3671. roundedTop: K.value,
  3672. roundedBottom: z.value,
  3673. roundedStart: P.value,
  3674. roundedEnd: D.value
  3675. })), le = Qe(() => ({
  3676. variant: o.badgeVariant,
  3677. bgVariant: o.badgeBgVariant,
  3678. textVariant: o.badgeTextVariant
  3679. })), ve = E(() => o.badge === !0 ? "" : o.badge), Be = E(() => (s == null ? void 0 : s.textVariant.value) ?? o.textVariant), Ve = E(() => (s == null ? void 0 : s.bgVariant.value) ?? o.bgVariant), oe = Qe(() => ({
  3680. bgVariant: Ve.value,
  3681. textVariant: Be.value,
  3682. variant: O.value
  3683. })), fe = w(() => [
  3684. oe.value,
  3685. // Square overwrites all else
  3686. I.value === !0 ? void 0 : ae.value,
  3687. {
  3688. [`b-avatar-${o.size}`]: !!o.size && u.indexOf(Ra(o.size)) !== -1,
  3689. [`btn-${O.value}`]: y.value ? O.value !== null : !1,
  3690. badge: !y.value && O.value !== null && k.value,
  3691. btn: y.value,
  3692. // Square is the same as rounded-0 class
  3693. "rounded-0": I.value === !0
  3694. }
  3695. ]), $e = w(() => {
  3696. const X = o.badgeOffset || "0px";
  3697. return {
  3698. fontSize: (u.indexOf(T.value || null) === -1 ? `calc(${T.value} * ${f})` : "") || "",
  3699. top: p.value ? X : "",
  3700. bottom: p.value ? "" : X,
  3701. left: g.value ? X : "",
  3702. right: g.value ? "" : X
  3703. };
  3704. }), we = w(() => {
  3705. const X = u.indexOf(T.value || null) === -1 ? `calc(${T.value} * ${d})` : null;
  3706. return X ? { fontSize: X } : {};
  3707. }), M = w(() => {
  3708. var be;
  3709. const X = ((be = s == null ? void 0 : s.overlapScale) == null ? void 0 : be.value) || 0, te = T.value && X ? `calc(${T.value} * -${X})` : null;
  3710. return te ? { marginLeft: te, marginRight: te } : {};
  3711. }), L = E(
  3712. () => n.value ? rt : y.value ? "button" : "span"
  3713. ), U = w(() => ({
  3714. ...M.value,
  3715. width: T.value ?? void 0,
  3716. height: T.value ?? void 0
  3717. })), H = (X) => {
  3718. !b.value && (n.value || y.value) && a("click", X);
  3719. }, G = (X) => {
  3720. a("img-error", X);
  3721. };
  3722. return (X, te) => (m(), x(se(L.value), Q({
  3723. class: ["b-avatar", fe.value],
  3724. style: U.value
  3725. }, v(i), {
  3726. type: v(y) && !v(n) ? o.buttonType : void 0,
  3727. disabled: v(b) || null,
  3728. onClick: H
  3729. }), {
  3730. default: R(() => [
  3731. k.value ? (m(), N("span", ur, [
  3732. A(X.$slots, "default")
  3733. ])) : X.src ? (m(), N("span", dr, [
  3734. ee("img", {
  3735. src: X.src,
  3736. alt: X.alt,
  3737. onError: G
  3738. }, null, 40, cr)
  3739. ])) : X.text ? (m(), N("span", {
  3740. key: 2,
  3741. class: "b-avatar-text",
  3742. style: ze(we.value)
  3743. }, Z(X.text), 5)) : J("", !0),
  3744. $.value ? (m(), N("span", {
  3745. key: 3,
  3746. class: j(["b-avatar-badge", v(le)]),
  3747. style: ze($e.value)
  3748. }, [
  3749. A(X.$slots, "badge", {}, () => [
  3750. ne(Z(ve.value), 1)
  3751. ])
  3752. ], 6)) : J("", !0)
  3753. ]),
  3754. _: 3
  3755. }, 16, ["class", "style", "type", "disabled"]));
  3756. }
  3757. }), vr = /* @__PURE__ */ q({
  3758. __name: "BAvatarGroup",
  3759. props: {
  3760. overlap: { default: 0.3 },
  3761. size: { default: void 0 },
  3762. square: { type: [String, Boolean], default: !1 },
  3763. tag: { default: "div" },
  3764. variant: { default: null },
  3765. bgVariant: { default: null },
  3766. textVariant: { default: null },
  3767. rounded: { type: [String, Number, Boolean], default: !1 },
  3768. roundedTop: { type: [String, Number, Boolean], default: void 0 },
  3769. roundedBottom: { type: [String, Number, Boolean], default: void 0 },
  3770. roundedStart: { type: [String, Number, Boolean], default: void 0 },
  3771. roundedEnd: { type: [String, Number, Boolean], default: void 0 }
  3772. },
  3773. setup(e) {
  3774. const t = e, o = r(() => t.square), a = r(() => t.rounded), l = r(() => t.roundedTop), n = r(() => t.roundedBottom), i = r(() => t.roundedStart), s = r(() => t.roundedEnd), u = he(() => t.overlap), d = w(() => Ra(t.size)), f = E(() => Math.min(Math.max(u.value, 0), 1) / 2), g = w(() => {
  3775. const p = d.value ? `calc(${d.value} * ${f.value})` : null;
  3776. return p ? { paddingLeft: p, paddingRight: p } : {};
  3777. });
  3778. return at(en, {
  3779. overlapScale: f,
  3780. size: E(() => t.size),
  3781. square: o,
  3782. rounded: a,
  3783. roundedTop: l,
  3784. roundedBottom: n,
  3785. roundedStart: i,
  3786. roundedEnd: s,
  3787. variant: E(() => t.variant),
  3788. bgVariant: E(() => t.bgVariant),
  3789. textVariant: E(() => t.textVariant)
  3790. }), (p, y) => (m(), x(se(p.tag), {
  3791. class: "b-avatar-group",
  3792. role: "group"
  3793. }, {
  3794. default: R(() => [
  3795. ee("div", {
  3796. class: "b-avatar-group-inner",
  3797. style: ze(g.value)
  3798. }, [
  3799. A(p.$slots, "default")
  3800. ], 4)
  3801. ]),
  3802. _: 3
  3803. }));
  3804. }
  3805. }), pr = /* @__PURE__ */ q({
  3806. __name: "BBadge",
  3807. props: {
  3808. dotIndicator: { type: [String, Boolean], default: !1 },
  3809. pill: { type: [String, Boolean], default: !1 },
  3810. tag: { default: "span" },
  3811. textIndicator: { type: [String, Boolean], default: !1 },
  3812. active: { type: [String, Boolean], default: void 0 },
  3813. activeClass: { default: void 0 },
  3814. append: { type: [String, Boolean], default: void 0 },
  3815. disabled: { type: [String, Boolean], default: void 0 },
  3816. exactActiveClass: { default: void 0 },
  3817. href: { default: void 0 },
  3818. icon: { type: [String, Boolean], default: void 0 },
  3819. opacity: { default: void 0 },
  3820. opacityHover: { default: void 0 },
  3821. rel: { default: void 0 },
  3822. replace: { type: [String, Boolean], default: void 0 },
  3823. routerComponentName: { default: void 0 },
  3824. target: { default: void 0 },
  3825. to: { default: void 0 },
  3826. underlineOffset: { default: void 0 },
  3827. underlineOffsetHover: { default: void 0 },
  3828. underlineOpacity: { default: void 0 },
  3829. underlineOpacityHover: { default: void 0 },
  3830. underlineVariant: { default: void 0 },
  3831. variant: { default: "secondary" },
  3832. bgVariant: { default: null },
  3833. textVariant: { default: null }
  3834. },
  3835. setup(e) {
  3836. const t = e, o = r(() => t.pill), a = r(() => t.textIndicator), l = r(() => t.dotIndicator), n = r(() => t.active), i = r(() => t.disabled), s = Qe(t), { computedLink: u, computedLinkProps: d } = Ct(t, [
  3837. "active",
  3838. "activeClass",
  3839. "append",
  3840. "disabled",
  3841. "href",
  3842. "rel",
  3843. "replace",
  3844. "routerComponentName",
  3845. "target",
  3846. "to",
  3847. "opacity",
  3848. "opacityHover",
  3849. "underlineVariant",
  3850. "underlineOffset",
  3851. "underlineOffsetHover",
  3852. "underlineOpacity",
  3853. "underlineOpacityHover",
  3854. "icon"
  3855. ]), f = E(() => u.value ? rt : t.tag), g = w(() => [
  3856. s.value,
  3857. {
  3858. active: n.value,
  3859. disabled: i.value,
  3860. "rounded-pill": o.value,
  3861. "position-absolute top-0 start-100 translate-middle": a.value || l.value,
  3862. "p-2 border border-light rounded-circle": l.value,
  3863. "text-decoration-none": u.value
  3864. }
  3865. ]);
  3866. return (p, y) => (m(), x(se(f.value), Q({
  3867. class: ["badge", g.value]
  3868. }, v(d)), {
  3869. default: R(() => [
  3870. A(p.$slots, "default")
  3871. ]),
  3872. _: 3
  3873. }, 16, ["class"]));
  3874. }
  3875. }), rn = /* @__PURE__ */ q({
  3876. __name: "BBreadcrumbItem",
  3877. props: {
  3878. ariaCurrent: { default: "location" },
  3879. text: { default: void 0 },
  3880. active: { type: [String, Boolean], default: !1 },
  3881. activeClass: { default: void 0 },
  3882. append: { type: [String, Boolean], default: void 0 },
  3883. disabled: { type: [String, Boolean], default: void 0 },
  3884. exactActiveClass: { default: void 0 },
  3885. href: { default: void 0 },
  3886. icon: { type: [String, Boolean], default: void 0 },
  3887. opacity: { default: void 0 },
  3888. opacityHover: { default: void 0 },
  3889. rel: { default: void 0 },
  3890. replace: { type: [String, Boolean], default: void 0 },
  3891. routerComponentName: { default: void 0 },
  3892. target: { default: void 0 },
  3893. to: { default: void 0 },
  3894. underlineOffset: { default: void 0 },
  3895. underlineOffsetHover: { default: void 0 },
  3896. underlineOpacity: { default: void 0 },
  3897. underlineOpacityHover: { default: void 0 },
  3898. underlineVariant: { default: void 0 },
  3899. variant: { default: void 0 }
  3900. },
  3901. emits: ["click"],
  3902. setup(e, { emit: t }) {
  3903. const o = e, a = t, l = r(() => o.active), n = r(() => o.disabled), i = w(() => ({
  3904. active: l.value
  3905. })), s = E(() => l.value ? "span" : rt), u = E(() => l.value ? o.ariaCurrent : void 0), d = w(
  3906. () => s.value !== "span" ? fo(o, [
  3907. "active",
  3908. "activeClass",
  3909. "append",
  3910. "disabled",
  3911. "href",
  3912. "rel",
  3913. "replace",
  3914. "routerComponentName",
  3915. "target",
  3916. "to",
  3917. "variant",
  3918. "opacity",
  3919. "opacityHover",
  3920. "underlineVariant",
  3921. "underlineOffset",
  3922. "underlineOffsetHover",
  3923. "underlineOpacity",
  3924. "underlineOpacityHover",
  3925. "icon"
  3926. ]) : {}
  3927. ), f = (g) => {
  3928. if (n.value || l.value) {
  3929. g.preventDefault(), g.stopImmediatePropagation();
  3930. return;
  3931. }
  3932. n.value || a("click", g);
  3933. };
  3934. return (g, p) => (m(), N("li", {
  3935. class: j(["breadcrumb-item", i.value])
  3936. }, [
  3937. (m(), x(se(s.value), Q({ "aria-current": u.value }, d.value, { onClick: f }), {
  3938. default: R(() => [
  3939. A(g.$slots, "default", {}, () => [
  3940. ne(Z(g.text), 1)
  3941. ])
  3942. ]),
  3943. _: 3
  3944. }, 16, ["aria-current"]))
  3945. ], 2));
  3946. }
  3947. }), mr = { "aria-label": "breadcrumb" }, gr = { class: "breadcrumb" }, br = /* @__PURE__ */ q({
  3948. __name: "BBreadcrumb",
  3949. props: {
  3950. items: { default: void 0 }
  3951. },
  3952. setup(e) {
  3953. const t = e, o = Hl(), a = w(() => {
  3954. const l = t.items || (o == null ? void 0 : o.items) || [];
  3955. let n = !1;
  3956. return l.map((s, u) => (typeof s == "string" && (s = { text: s }, u < l.length - 1 && (s.href = "#")), s.active && (n = !0), !s.active && !n && (s.active = u + 1 === l.length), s));
  3957. });
  3958. return (l, n) => (m(), N("nav", mr, [
  3959. ee("ol", gr, [
  3960. A(l.$slots, "prepend"),
  3961. (m(!0), N(ge, null, Te(a.value, (i, s) => (m(), x(rn, Q({ key: s }, i), {
  3962. default: R(() => [
  3963. ne(Z(i.text), 1)
  3964. ]),
  3965. _: 2
  3966. }, 1040))), 128)),
  3967. A(l.$slots, "default"),
  3968. A(l.$slots, "append")
  3969. ])
  3970. ]));
  3971. }
  3972. }), yr = /* @__PURE__ */ q({
  3973. __name: "BButtonGroup",
  3974. props: {
  3975. ariaLabel: { default: "Group" },
  3976. size: { default: "md" },
  3977. tag: { default: "div" },
  3978. vertical: { type: [String, Boolean], default: !1 }
  3979. },
  3980. setup(e) {
  3981. const t = e, o = r(() => t.vertical), a = w(() => ({
  3982. "btn-group": !o.value,
  3983. [`btn-group-${t.size}`]: t.size !== "md",
  3984. "btn-group-vertical": o.value
  3985. }));
  3986. return (l, n) => (m(), x(se(l.tag), {
  3987. class: j(a.value),
  3988. role: "group",
  3989. "aria-label": l.ariaLabel
  3990. }, {
  3991. default: R(() => [
  3992. A(l.$slots, "default")
  3993. ]),
  3994. _: 3
  3995. }, 8, ["class", "aria-label"]));
  3996. }
  3997. }), hr = ["role", "aria-label"], Br = /* @__PURE__ */ q({
  3998. __name: "BButtonToolbar",
  3999. props: {
  4000. ariaLabel: { default: "Group" },
  4001. justify: { type: [String, Boolean], default: !1 },
  4002. role: { default: "toolbar" }
  4003. },
  4004. setup(e) {
  4005. const t = e, o = r(() => t.justify), a = w(() => ({
  4006. "justify-content-between": o.value
  4007. }));
  4008. return (l, n) => (m(), N("div", {
  4009. class: j([a.value, "btn-toolbar"]),
  4010. role: l.role,
  4011. "aria-label": l.ariaLabel
  4012. }, [
  4013. A(l.$slots, "default")
  4014. ], 10, hr));
  4015. }
  4016. }), Sr = ["src", "width", "height", "srcset", "sizes", "loading"], vo = /* @__PURE__ */ q({
  4017. __name: "BImg",
  4018. props: {
  4019. blank: { type: [String, Boolean], default: !1 },
  4020. blankColor: { default: "transparent" },
  4021. block: { type: [String, Boolean], default: !1 },
  4022. center: { type: [String, Boolean], default: !1 },
  4023. end: { type: [String, Boolean], default: !1 },
  4024. fluid: { type: [String, Boolean], default: !1 },
  4025. fluidGrow: { type: [String, Boolean], default: !1 },
  4026. height: { default: void 0 },
  4027. lazy: { type: [String, Boolean], default: !1 },
  4028. sizes: { default: void 0 },
  4029. src: { default: void 0 },
  4030. srcset: { default: void 0 },
  4031. start: { type: [String, Boolean], default: !1 },
  4032. thumbnail: { type: [String, Boolean], default: !1 },
  4033. width: { default: void 0 },
  4034. rounded: { type: [String, Number, Boolean], default: !1 },
  4035. roundedTop: { type: [String, Number, Boolean], default: void 0 },
  4036. roundedBottom: { type: [String, Number, Boolean], default: void 0 },
  4037. roundedStart: { type: [String, Number, Boolean], default: void 0 },
  4038. roundedEnd: { type: [String, Number, Boolean], default: void 0 }
  4039. },
  4040. setup(e) {
  4041. const t = e, o = r(() => t.lazy), a = r(() => t.blank), l = r(() => t.block), n = r(() => t.center), i = r(() => t.fluid), s = r(() => t.fluidGrow), u = r(() => t.start), d = r(() => t.end), f = r(() => t.thumbnail), g = he(() => t.height ?? NaN), p = he(() => t.width ?? NaN), y = r(() => t.rounded), b = r(() => t.roundedTop), V = r(() => t.roundedBottom), C = r(() => t.roundedStart), c = r(() => t.roundedEnd), h = io(() => ({
  4042. rounded: y.value,
  4043. roundedTop: b.value,
  4044. roundedBottom: V.value,
  4045. roundedStart: C.value,
  4046. roundedEnd: c.value
  4047. })), B = w(
  4048. () => typeof t.srcset == "string" ? t.srcset.split(",").filter((O) => O).join(",") : Array.isArray(t.srcset) ? t.srcset.filter((O) => O).join(",") : void 0
  4049. ), _ = w(
  4050. () => typeof t.sizes == "string" ? t.sizes.split(",").filter((O) => O).join(",") : Array.isArray(t.sizes) ? t.sizes.filter((O) => O).join(",") : void 0
  4051. ), k = w(() => {
  4052. const O = Number.isNaN(p.value) ? void 0 : p.value, F = Number.isNaN(g.value) ? void 0 : g.value;
  4053. return a.value ? O !== void 0 && F === void 0 ? { height: O, width: O } : O === void 0 && F !== void 0 ? { height: F, width: F } : { height: 1, width: 1 } : {
  4054. width: O,
  4055. height: F
  4056. };
  4057. }), S = E(
  4058. () => T(k.value.width, k.value.height, t.blankColor)
  4059. ), $ = E(
  4060. () => u.value ? "float-start" : d.value ? "float-end" : n.value ? "mx-auto" : void 0
  4061. ), I = w(() => [
  4062. h.value,
  4063. {
  4064. "img-thumbnail": f.value,
  4065. "img-fluid": i.value || s.value,
  4066. "w-100": s.value,
  4067. [`${$.value}`]: $.value !== void 0,
  4068. "d-block": l.value || n.value
  4069. }
  4070. ]), T = (O, F, K) => `data:image/svg+xml;charset=UTF-8,${encodeURIComponent(`<svg width="${O}" height="${F}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${O} ${F}" preserveAspectRatio="none">
  4071. <rect width="100%" height="100%" style="fill:${K};"></rect>
  4072. </svg>`)}`;
  4073. return (O, F) => (m(), N("img", {
  4074. class: j(I.value),
  4075. src: v(a) ? S.value : O.src,
  4076. width: k.value.width || void 0,
  4077. height: k.value.height || void 0,
  4078. srcset: v(a) ? void 0 : B.value,
  4079. sizes: v(a) ? void 0 : _.value,
  4080. loading: v(o) ? "lazy" : "eager"
  4081. }, null, 10, Sr));
  4082. }
  4083. }), ya = /* @__PURE__ */ q({
  4084. __name: "BCardImg",
  4085. props: {
  4086. bottom: { type: [String, Boolean], default: !1 },
  4087. top: { type: [String, Boolean], default: !1 },
  4088. blank: { type: [String, Boolean], default: void 0 },
  4089. blankColor: { default: void 0 },
  4090. block: { type: [String, Boolean], default: void 0 },
  4091. center: { type: [String, Boolean], default: void 0 },
  4092. end: { type: [String, Boolean], default: void 0 },
  4093. fluid: { type: [String, Boolean], default: void 0 },
  4094. fluidGrow: { type: [String, Boolean], default: void 0 },
  4095. height: { default: void 0 },
  4096. lazy: { type: [String, Boolean], default: void 0 },
  4097. sizes: { default: void 0 },
  4098. src: { default: void 0 },
  4099. srcset: { default: void 0 },
  4100. start: { type: [String, Boolean], default: void 0 },
  4101. thumbnail: { type: [String, Boolean], default: void 0 },
  4102. width: { default: void 0 },
  4103. rounded: { type: [String, Number, Boolean], default: void 0 },
  4104. roundedTop: { type: [String, Number, Boolean], default: void 0 },
  4105. roundedBottom: { type: [String, Number, Boolean], default: void 0 },
  4106. roundedStart: { type: [String, Number, Boolean], default: void 0 },
  4107. roundedEnd: { type: [String, Number, Boolean], default: void 0 }
  4108. },
  4109. setup(e) {
  4110. const t = e, o = r(() => t.bottom), a = r(() => t.end), l = r(() => t.start), n = r(() => t.top), i = E(
  4111. () => n.value ? "card-img-top" : a.value ? "card-img-right" : o.value ? "card-img-bottom" : l.value ? "card-img-left" : "card-img"
  4112. ), s = w(() => nn(t, ["bottom", "top", "end", "start"]));
  4113. return (u, d) => (m(), x(vo, Q(s.value, { class: i.value }), null, 16, ["class"]));
  4114. }
  4115. }), Cr = ["innerHTML"], un = /* @__PURE__ */ q({
  4116. __name: "BCardHeadFoot",
  4117. props: {
  4118. borderVariant: { default: null },
  4119. html: { default: void 0 },
  4120. tag: { default: "div" },
  4121. text: { default: void 0 },
  4122. variant: { default: null },
  4123. bgVariant: { default: null },
  4124. textVariant: { default: null }
  4125. },
  4126. setup(e) {
  4127. const t = e, o = Qe(t), a = w(() => [
  4128. o.value,
  4129. {
  4130. [`border-${t.borderVariant}`]: t.borderVariant !== null
  4131. }
  4132. ]);
  4133. return (l, n) => (m(), x(se(l.tag), {
  4134. class: j(a.value)
  4135. }, {
  4136. default: R(() => [
  4137. l.html ? (m(), N("div", {
  4138. key: 0,
  4139. innerHTML: l.html
  4140. }, null, 8, Cr)) : A(l.$slots, "default", { key: 1 }, () => [
  4141. ne(Z(l.text), 1)
  4142. ])
  4143. ]),
  4144. _: 3
  4145. }, 8, ["class"]));
  4146. }
  4147. }), dn = /* @__PURE__ */ q({
  4148. __name: "BCardHeader",
  4149. props: {
  4150. borderVariant: { default: void 0 },
  4151. html: { default: void 0 },
  4152. tag: { default: "div" },
  4153. text: { default: void 0 },
  4154. variant: { default: void 0 },
  4155. bgVariant: { default: void 0 },
  4156. textVariant: { default: void 0 }
  4157. },
  4158. setup(e) {
  4159. const t = e;
  4160. return (o, a) => (m(), x(un, Q({ class: "card-header" }, t), {
  4161. default: R(() => [
  4162. A(o.$slots, "default")
  4163. ]),
  4164. _: 3
  4165. }, 16));
  4166. }
  4167. }), cn = /* @__PURE__ */ q({
  4168. __name: "BCardTitle",
  4169. props: {
  4170. tag: { default: "h4" },
  4171. text: { default: void 0 }
  4172. },
  4173. setup(e) {
  4174. return (t, o) => (m(), x(se(t.tag), { class: "card-title" }, {
  4175. default: R(() => [
  4176. A(t.$slots, "default", {}, () => [
  4177. ne(Z(t.text), 1)
  4178. ])
  4179. ]),
  4180. _: 3
  4181. }));
  4182. }
  4183. }), fn = /* @__PURE__ */ q({
  4184. __name: "BCardSubtitle",
  4185. props: {
  4186. text: { default: void 0 },
  4187. tag: { default: "h6" },
  4188. textVariant: { default: "body-secondary" }
  4189. },
  4190. setup(e) {
  4191. const t = e, o = w(() => ({
  4192. [`text-${t.textVariant}`]: t.textVariant !== null
  4193. }));
  4194. return (a, l) => (m(), x(se(a.tag), {
  4195. class: j(["card-subtitle mb-2", o.value])
  4196. }, {
  4197. default: R(() => [
  4198. A(a.$slots, "default", {}, () => [
  4199. ne(Z(a.text), 1)
  4200. ])
  4201. ]),
  4202. _: 3
  4203. }, 8, ["class"]));
  4204. }
  4205. }), vn = /* @__PURE__ */ q({
  4206. __name: "BCardBody",
  4207. props: {
  4208. overlay: { type: [String, Boolean], default: !1 },
  4209. subtitle: { default: void 0 },
  4210. subtitleTag: { default: "h4" },
  4211. subtitleTextVariant: { default: void 0 },
  4212. tag: { default: "div" },
  4213. text: { default: void 0 },
  4214. title: { default: void 0 },
  4215. titleTag: { default: "h4" },
  4216. variant: { default: null },
  4217. bgVariant: { default: null },
  4218. textVariant: { default: null }
  4219. },
  4220. setup(e) {
  4221. const t = e, o = Me(), a = r(() => t.overlay), l = Qe(t), n = E(() => !Ie(o.title)), i = E(() => !Ie(o.subtitle)), s = w(() => [
  4222. l.value,
  4223. {
  4224. "card-img-overlay": a.value
  4225. }
  4226. ]);
  4227. return (u, d) => (m(), x(se(u.tag), {
  4228. class: j(["card-body", s.value])
  4229. }, {
  4230. default: R(() => [
  4231. u.title || n.value ? (m(), x(cn, {
  4232. key: 0,
  4233. tag: u.titleTag
  4234. }, {
  4235. default: R(() => [
  4236. A(u.$slots, "title", {}, () => [
  4237. ne(Z(u.title), 1)
  4238. ])
  4239. ]),
  4240. _: 3
  4241. }, 8, ["tag"])) : J("", !0),
  4242. u.subtitle || i.value ? (m(), x(fn, {
  4243. key: 1,
  4244. tag: u.subtitleTag,
  4245. "text-variant": u.subtitleTextVariant
  4246. }, {
  4247. default: R(() => [
  4248. A(u.$slots, "subtitle", {}, () => [
  4249. ne(Z(u.subtitle), 1)
  4250. ])
  4251. ]),
  4252. _: 3
  4253. }, 8, ["tag", "text-variant"])) : J("", !0),
  4254. A(u.$slots, "default", {}, () => [
  4255. ne(Z(u.text), 1)
  4256. ])
  4257. ]),
  4258. _: 3
  4259. }, 8, ["class"]));
  4260. }
  4261. }), pn = /* @__PURE__ */ q({
  4262. __name: "BCardFooter",
  4263. props: {
  4264. borderVariant: { default: void 0 },
  4265. html: { default: void 0 },
  4266. tag: { default: "div" },
  4267. text: { default: void 0 },
  4268. variant: { default: void 0 },
  4269. bgVariant: { default: void 0 },
  4270. textVariant: { default: void 0 }
  4271. },
  4272. setup(e) {
  4273. const t = e;
  4274. return (o, a) => (m(), x(un, Q({ class: "card-footer" }, t), {
  4275. default: R(() => [
  4276. A(o.$slots, "default", {}, () => [
  4277. ne(Z(o.text), 1)
  4278. ])
  4279. ]),
  4280. _: 3
  4281. }, 16));
  4282. }
  4283. }), mn = /* @__PURE__ */ q({
  4284. __name: "BCard",
  4285. props: {
  4286. align: { default: void 0 },
  4287. bodyBgVariant: { default: void 0 },
  4288. bodyClass: { default: void 0 },
  4289. bodyTag: { default: "div" },
  4290. bodyText: { default: "" },
  4291. bodyTextVariant: { default: void 0 },
  4292. borderVariant: { default: null },
  4293. footer: { default: void 0 },
  4294. footerBgVariant: { default: void 0 },
  4295. footerBorderVariant: { default: void 0 },
  4296. footerClass: { default: void 0 },
  4297. footerHtml: { default: "" },
  4298. footerTag: { default: "div" },
  4299. footerTextVariant: { default: void 0 },
  4300. footerVariant: { default: null },
  4301. header: { default: void 0 },
  4302. headerBgVariant: { default: void 0 },
  4303. headerBorderVariant: { default: void 0 },
  4304. headerClass: { default: void 0 },
  4305. headerHtml: { default: "" },
  4306. headerTag: { default: "div" },
  4307. headerTextVariant: { default: void 0 },
  4308. headerVariant: { default: null },
  4309. imgAlt: { default: void 0 },
  4310. imgBottom: { type: [String, Boolean], default: !1 },
  4311. imgEnd: { type: [String, Boolean], default: !1 },
  4312. imgHeight: { default: void 0 },
  4313. imgSrc: { default: void 0 },
  4314. imgStart: { type: [String, Boolean], default: !1 },
  4315. imgTop: { type: [String, Boolean], default: !1 },
  4316. imgWidth: { default: void 0 },
  4317. noBody: { type: [String, Boolean], default: !1 },
  4318. overlay: { type: [String, Boolean], default: !1 },
  4319. subtitle: { default: void 0 },
  4320. subtitleTag: { default: "h6" },
  4321. subtitleTextVariant: { default: "body-secondary" },
  4322. tag: { default: "div" },
  4323. title: { default: void 0 },
  4324. titleTag: { default: "h4" },
  4325. variant: { default: null },
  4326. bgVariant: { default: null },
  4327. textVariant: { default: null }
  4328. },
  4329. setup(e) {
  4330. const t = e, o = Me(), a = r(() => t.imgBottom), l = r(() => t.imgEnd), n = r(() => t.imgStart), i = r(() => t.noBody), s = E(() => !Ie(o.header)), u = E(() => !Ie(o.footer)), d = Qe(t), f = w(() => [
  4331. d.value,
  4332. {
  4333. [`text-${t.align}`]: t.align !== void 0,
  4334. [`border-${t.borderVariant}`]: t.borderVariant !== null,
  4335. "flex-row": n.value,
  4336. "flex-row-reverse": l.value
  4337. }
  4338. ]), g = w(() => ({
  4339. src: t.imgSrc,
  4340. alt: t.imgAlt,
  4341. height: t.imgHeight,
  4342. width: t.imgWidth,
  4343. bottom: t.imgBottom,
  4344. end: t.imgEnd,
  4345. start: t.imgStart,
  4346. top: t.imgTop
  4347. }));
  4348. return (p, y) => (m(), x(se(p.tag), {
  4349. class: j(["card", f.value])
  4350. }, {
  4351. default: R(() => [
  4352. v(a) ? J("", !0) : A(p.$slots, "img", { key: 0 }, () => [
  4353. p.imgSrc ? (m(), x(ya, Se(Q({ key: 0 }, g.value)), null, 16)) : J("", !0)
  4354. ]),
  4355. p.header || s.value || p.headerHtml ? (m(), x(dn, {
  4356. key: 1,
  4357. "bg-variant": p.headerBgVariant,
  4358. variant: p.headerVariant,
  4359. "border-variant": p.headerBorderVariant,
  4360. html: p.headerHtml,
  4361. tag: p.headerTag,
  4362. "text-variant": p.headerTextVariant,
  4363. class: j(p.headerClass)
  4364. }, {
  4365. default: R(() => [
  4366. A(p.$slots, "header", {}, () => [
  4367. ne(Z(p.header), 1)
  4368. ])
  4369. ]),
  4370. _: 3
  4371. }, 8, ["bg-variant", "variant", "border-variant", "html", "tag", "text-variant", "class"])) : J("", !0),
  4372. v(i) ? A(p.$slots, "default", { key: 3 }, () => [
  4373. ne(Z(p.bodyText), 1)
  4374. ]) : (m(), x(vn, {
  4375. key: 2,
  4376. overlay: p.overlay,
  4377. "bg-variant": p.bodyBgVariant,
  4378. tag: p.bodyTag,
  4379. "text-variant": p.bodyTextVariant,
  4380. subtitle: p.subtitle,
  4381. "subtitle-tag": p.subtitleTag,
  4382. "subtitle-text-variant": p.subtitleTextVariant,
  4383. title: p.title,
  4384. "title-tag": p.titleTag,
  4385. class: j(p.bodyClass)
  4386. }, {
  4387. default: R(() => [
  4388. A(p.$slots, "default", {}, () => [
  4389. ne(Z(p.bodyText), 1)
  4390. ])
  4391. ]),
  4392. _: 3
  4393. }, 8, ["overlay", "bg-variant", "tag", "text-variant", "subtitle", "subtitle-tag", "subtitle-text-variant", "title", "title-tag", "class"])),
  4394. p.footer || u.value || p.footerHtml ? (m(), x(pn, {
  4395. key: 4,
  4396. "bg-variant": p.footerBgVariant,
  4397. "border-variant": p.footerBorderVariant,
  4398. variant: p.footerVariant,
  4399. html: p.footerHtml,
  4400. tag: p.footerTag,
  4401. "text-variant": p.footerTextVariant,
  4402. class: j(p.footerClass)
  4403. }, {
  4404. default: R(() => [
  4405. A(p.$slots, "footer", {}, () => [
  4406. ne(Z(p.footer), 1)
  4407. ])
  4408. ]),
  4409. _: 3
  4410. }, 8, ["bg-variant", "border-variant", "variant", "html", "tag", "text-variant", "class"])) : J("", !0),
  4411. v(a) ? A(p.$slots, "img", { key: 5 }, () => [
  4412. p.imgSrc ? (m(), x(ya, Se(Q({ key: 0 }, g.value)), null, 16)) : J("", !0)
  4413. ]) : J("", !0)
  4414. ]),
  4415. _: 3
  4416. }, 8, ["class"]));
  4417. }
  4418. }), wr = /* @__PURE__ */ q({
  4419. __name: "BCardGroup",
  4420. props: {
  4421. columns: { type: [String, Boolean], default: !1 },
  4422. deck: { type: [String, Boolean], default: !1 },
  4423. tag: { default: "div" }
  4424. },
  4425. setup(e) {
  4426. const t = e, o = r(() => t.columns), a = r(() => t.deck), l = E(
  4427. () => a.value ? "card-deck" : o.value ? "card-columns" : "card-group"
  4428. );
  4429. return (n, i) => (m(), x(se(n.tag), {
  4430. class: j(l.value)
  4431. }, {
  4432. default: R(() => [
  4433. A(n.$slots, "default")
  4434. ]),
  4435. _: 3
  4436. }, 8, ["class"]));
  4437. }
  4438. }), kr = /* @__PURE__ */ q({
  4439. __name: "BCardText",
  4440. props: {
  4441. tag: { default: "p" },
  4442. text: { default: void 0 }
  4443. },
  4444. setup(e) {
  4445. return (t, o) => (m(), x(se(t.tag), { class: "card-text" }, {
  4446. default: R(() => [
  4447. A(t.$slots, "default", {}, () => [
  4448. ne(Z(t.text), 1)
  4449. ])
  4450. ]),
  4451. _: 3
  4452. }));
  4453. }
  4454. }), $r = ["id"], Tr = {
  4455. key: 0,
  4456. class: "carousel-indicators"
  4457. }, _r = ["aria-current", "aria-label", "onClick"], Vr = /* @__PURE__ */ ee("span", {
  4458. class: "carousel-control-prev-icon",
  4459. "aria-hidden": "true"
  4460. }, null, -1), Ar = { class: "visually-hidden" }, Or = /* @__PURE__ */ ee("span", {
  4461. class: "carousel-control-next-icon",
  4462. "aria-hidden": "true"
  4463. }, null, -1), Er = { class: "visually-hidden" }, Pr = /* @__PURE__ */ q({
  4464. __name: "BCarousel",
  4465. props: {
  4466. background: { default: void 0 },
  4467. controls: { type: [String, Boolean], default: !1 },
  4468. controlsNextText: { default: "Next" },
  4469. controlsPrevText: { default: "Previous" },
  4470. fade: { type: [String, Boolean], default: !1 },
  4471. id: { default: void 0 },
  4472. imgHeight: { default: void 0 },
  4473. imgWidth: { default: void 0 },
  4474. indicators: { type: [String, Boolean], default: !1 },
  4475. indicatorsButtonLabel: { default: "Slide" },
  4476. interval: { default: 5e3 },
  4477. keyboard: { type: [String, Boolean], default: !0 },
  4478. modelValue: { default: 0 },
  4479. noHoverPause: { type: [String, Boolean], default: !1 },
  4480. noTouch: { type: [String, Boolean], default: !1 },
  4481. noWrap: { type: [String, Boolean], default: !1 },
  4482. ride: { type: [String, Boolean], default: !1 },
  4483. rideReverse: { type: [String, Boolean], default: !1 },
  4484. touchThreshold: { default: 50 }
  4485. },
  4486. emits: ["slide", "slid", "update:modelValue"],
  4487. setup(e, { expose: t, emit: o }) {
  4488. const a = e, l = o, n = Me(), i = _e(() => a.id, "carousel"), s = ke(a, "modelValue", l, { passive: !0 }), u = r(() => a.keyboard), d = r(() => a.rideReverse), f = r(() => a.noHoverPause), g = r(() => a.fade), p = r(() => a.controls), y = r(() => a.indicators), b = r(() => a.noTouch), V = r(() => a.noWrap), C = he(() => a.touchThreshold), c = he(() => a.interval), h = r(() => a.ride), B = W(!1), _ = W(!1), k = W(!0), S = W(null), $ = W(null), I = W(s.value), T = lo($), O = E(
  4489. () => `carousel-item carousel-item-${k.value ? "prev" : "next"} carousel-item-${k.value ? "end" : "start"}`
  4490. ), F = E(
  4491. () => `carousel-item active carousel-item-${k.value ? "start" : "end"}`
  4492. ), { pause: K, resume: z } = Il(
  4493. () => {
  4494. d.value ? Be() : Ve();
  4495. },
  4496. c,
  4497. { immediate: h.value === "carousel" }
  4498. ), P = E(
  4499. () => h.value === !0 && _.value === !0 || h.value === "carousel"
  4500. ), D = w(() => Yi(n.default, "BCarouselSlide")), ae = w(() => ({ "carousel-fade": g.value })), le = (H) => {
  4501. var G;
  4502. return new ll(H, {
  4503. componentId: i.value,
  4504. cancelable: !1,
  4505. target: $.value,
  4506. direction: k.value ? "right" : "left",
  4507. from: I.value,
  4508. to: s.value,
  4509. relatedTarget: ((G = S.value) == null ? void 0 : G.children[s.value]) ?? null
  4510. });
  4511. }, ve = (H) => {
  4512. if (B.value !== !0) {
  4513. if (h.value === !0 && (_.value = !0), P.value === !0 && z(), k.value = !(H < s.value), H >= D.value.length) {
  4514. if (V.value)
  4515. return;
  4516. s.value = 0;
  4517. return;
  4518. }
  4519. if (H < 0) {
  4520. if (V.value)
  4521. return;
  4522. s.value = D.value.length - 1;
  4523. return;
  4524. }
  4525. I.value = s.value, s.value = H;
  4526. }
  4527. }, Be = () => {
  4528. ve(s.value - 1);
  4529. }, Ve = () => {
  4530. ve(s.value + 1);
  4531. }, oe = (H) => {
  4532. u.value !== !1 && H();
  4533. }, fe = () => {
  4534. f.value || K();
  4535. }, $e = () => {
  4536. P.value && z();
  4537. }, { lengthX: we } = Fi($, {
  4538. passive: !0,
  4539. onSwipeStart() {
  4540. b.value !== !0 && K();
  4541. },
  4542. onSwipeEnd() {
  4543. if (b.value === !0)
  4544. return;
  4545. const H = () => {
  4546. P.value !== !1 && z();
  4547. };
  4548. if (we.value >= C.value) {
  4549. Ve(), H();
  4550. return;
  4551. }
  4552. we.value <= -C.value && (Be(), H());
  4553. }
  4554. }), M = () => {
  4555. l("slide", le("slide")), B.value = !0;
  4556. }, L = () => {
  4557. l("slid", le("slid")), B.value = !1;
  4558. }, U = (H) => {
  4559. s.value !== 0 && H.classList.add("carousel-item");
  4560. };
  4561. return qe(
  4562. "ArrowLeft",
  4563. () => {
  4564. oe(Be);
  4565. },
  4566. { target: $ }
  4567. ), qe(
  4568. "ArrowRight",
  4569. () => {
  4570. oe(Ve);
  4571. },
  4572. { target: $ }
  4573. ), ue(h, () => {
  4574. _.value = !1;
  4575. }), ue(T, (H) => {
  4576. if (H) {
  4577. fe();
  4578. return;
  4579. }
  4580. $e();
  4581. }), t({
  4582. next: Ve,
  4583. pause: K,
  4584. prev: Be,
  4585. resume: z
  4586. }), at(Yl, {
  4587. background: E(() => a.background),
  4588. width: E(() => a.imgWidth),
  4589. height: E(() => a.imgHeight)
  4590. }), (H, G) => (m(), N("div", {
  4591. id: v(i),
  4592. ref_key: "element",
  4593. ref: $,
  4594. class: j(["carousel slide pointer-event", ae.value])
  4595. }, [
  4596. v(y) ? (m(), N("div", Tr, [
  4597. (m(!0), N(ge, null, Te(D.value.length, (X, te) => (m(), N("button", {
  4598. key: te,
  4599. type: "button",
  4600. "data-bs-target": "",
  4601. class: j(te === v(s) ? "active" : ""),
  4602. "aria-current": te === v(s) ? !0 : void 0,
  4603. "aria-label": `${H.indicatorsButtonLabel} ${te}`,
  4604. onClick: (be) => ve(te)
  4605. }, null, 10, _r))), 128))
  4606. ])) : J("", !0),
  4607. ee("div", {
  4608. ref_key: "relatedTarget",
  4609. ref: S,
  4610. class: "carousel-inner"
  4611. }, [
  4612. ye(jn, {
  4613. "enter-from-class": O.value,
  4614. "enter-active-class": O.value,
  4615. "enter-to-class": O.value,
  4616. "leave-from-class": F.value,
  4617. "leave-active-class": F.value,
  4618. "leave-to-class": F.value,
  4619. onBeforeLeave: M,
  4620. onAfterLeave: L,
  4621. onAfterEnter: U
  4622. }, {
  4623. default: R(() => [
  4624. (m(!0), N(ge, null, Te(D.value, (X, te) => ht((m(), x(se(X), {
  4625. key: te,
  4626. class: j({ active: te === v(s) && B.value === !1 })
  4627. }, null, 8, ["class"])), [
  4628. [ha, te === v(s)]
  4629. ])), 128))
  4630. ]),
  4631. _: 1
  4632. }, 8, ["enter-from-class", "enter-active-class", "enter-to-class", "leave-from-class", "leave-active-class", "leave-to-class"])
  4633. ], 512),
  4634. v(p) ? (m(), N(ge, { key: 1 }, [
  4635. ee("button", {
  4636. class: "carousel-control-prev",
  4637. type: "button",
  4638. onClick: Be
  4639. }, [
  4640. Vr,
  4641. ee("span", Ar, Z(H.controlsPrevText), 1)
  4642. ]),
  4643. ee("button", {
  4644. class: "carousel-control-next",
  4645. type: "button",
  4646. onClick: Ve
  4647. }, [
  4648. Or,
  4649. ee("span", Er, Z(H.controlsNextText), 1)
  4650. ])
  4651. ], 64)) : J("", !0)
  4652. ], 10, $r));
  4653. }
  4654. }), Nr = ["innerHTML"], Ir = { key: 1 }, Lr = ["innerHTML"], Fr = { key: 1 }, Hr = /* @__PURE__ */ q({
  4655. __name: "BCarouselSlide",
  4656. props: {
  4657. background: { default: void 0 },
  4658. caption: { default: void 0 },
  4659. captionHtml: { default: void 0 },
  4660. captionTag: { default: "h3" },
  4661. contentTag: { default: "div" },
  4662. contentVisibleUp: { default: void 0 },
  4663. id: { default: void 0 },
  4664. imgAlt: { default: void 0 },
  4665. imgBlank: { type: [String, Boolean], default: !1 },
  4666. imgBlankColor: { default: "transparent" },
  4667. imgHeight: { default: void 0 },
  4668. imgSrc: { default: void 0 },
  4669. imgSrcset: { default: void 0 },
  4670. imgWidth: { default: void 0 },
  4671. interval: { default: void 0 },
  4672. text: { default: void 0 },
  4673. textHtml: { default: void 0 },
  4674. textTag: { default: "p" }
  4675. },
  4676. setup(e) {
  4677. const t = e, o = Me(), a = Ge(Yl, null), l = E(() => t.text || t.textHtml || !Ie(o.text)), n = E(() => t.caption || t.captionHtml || !Ie(o.caption)), i = E(() => l.value || n.value || !Ie(o.default)), s = w(() => ({
  4678. background: `${t.background || (a == null ? void 0 : a.background.value) || "rgb(171, 171, 171)"} none repeat scroll 0% 0%`
  4679. })), u = w(() => ({
  4680. "d-none": t.contentVisibleUp !== void 0,
  4681. [`d-${t.contentVisibleUp}-block`]: t.contentVisibleUp !== void 0
  4682. }));
  4683. return (d, f) => (m(), N("div", {
  4684. class: "carousel-item",
  4685. style: ze(s.value)
  4686. }, [
  4687. A(d.$slots, "img", {}, () => {
  4688. var g, p;
  4689. return [
  4690. ye(vo, {
  4691. class: "d-block w-100",
  4692. alt: d.imgAlt,
  4693. srcset: d.imgSrcset,
  4694. src: d.imgSrc,
  4695. width: d.imgWidth || ((g = v(a)) == null ? void 0 : g.width.value),
  4696. height: d.imgHeight || ((p = v(a)) == null ? void 0 : p.height.value),
  4697. blank: d.imgBlank,
  4698. "blank-color": d.imgBlankColor
  4699. }, null, 8, ["alt", "srcset", "src", "width", "height", "blank", "blank-color"])
  4700. ];
  4701. }),
  4702. i.value ? (m(), x(se(d.contentTag), {
  4703. key: 0,
  4704. class: j(["carousel-caption", u.value])
  4705. }, {
  4706. default: R(() => [
  4707. n.value ? (m(), x(se(d.captionTag), { key: 0 }, {
  4708. default: R(() => [
  4709. A(d.$slots, "caption", {}, () => [
  4710. d.captionHtml ? (m(), N("span", {
  4711. key: 0,
  4712. innerHTML: d.captionHtml
  4713. }, null, 8, Nr)) : (m(), N("span", Ir, Z(d.caption), 1))
  4714. ])
  4715. ]),
  4716. _: 3
  4717. })) : J("", !0),
  4718. l.value ? (m(), x(se(d.textTag), { key: 1 }, {
  4719. default: R(() => [
  4720. A(d.$slots, "text", {}, () => [
  4721. d.textHtml ? (m(), N("span", {
  4722. key: 0,
  4723. innerHTML: d.textHtml
  4724. }, null, 8, Lr)) : (m(), N("span", Fr, Z(d.text), 1))
  4725. ])
  4726. ]),
  4727. _: 3
  4728. })) : J("", !0),
  4729. A(d.$slots, "default")
  4730. ]),
  4731. _: 3
  4732. }, 8, ["class"])) : J("", !0)
  4733. ], 4));
  4734. }
  4735. }), Ho = wa("", [], { type: [Boolean, String, Number], default: !1 }), zo = wa("offset", [""], { type: [String, Number], default: null }), Ro = wa("order", [""], { type: [String, Number], default: null }), zr = q({
  4736. name: "BCol",
  4737. slots: Object,
  4738. props: {
  4739. col: { type: [Boolean, String], default: !1 },
  4740. // Generic flexbox .col (xs)
  4741. cols: { type: [String, Number], default: null },
  4742. // .col-[1-12]|auto (xs)
  4743. ...Ho,
  4744. offset: { type: [String, Number], default: null },
  4745. ...zo,
  4746. order: { type: [String, Number], default: null },
  4747. ...Ro,
  4748. alignSelf: { type: String, default: null },
  4749. tag: { type: String, default: "div" }
  4750. },
  4751. setup(e) {
  4752. const t = [
  4753. { content: Ho, propPrefix: "cols", classPrefix: "col" },
  4754. { content: zo, propPrefix: "offset" },
  4755. { content: Ro, propPrefix: "order" }
  4756. ], o = r(() => e.col), a = w(
  4757. () => t.flatMap((n) => Kl(e, n.content, n.propPrefix, n.classPrefix))
  4758. );
  4759. return {
  4760. computedClasses: w(() => [
  4761. a.value,
  4762. {
  4763. col: o.value || !a.value.some((n) => /^col-/.test(n)) && !e.cols,
  4764. [`col-${e.cols}`]: !!e.cols,
  4765. [`offset-${e.offset}`]: !!e.offset,
  4766. [`order-${e.order}`]: !!e.order,
  4767. [`align-self-${e.alignSelf}`]: !!e.alignSelf
  4768. }
  4769. ])
  4770. };
  4771. }
  4772. });
  4773. function Rr(e, t, o, a, l, n) {
  4774. return m(), x(se(e.tag), {
  4775. class: j(e.computedClasses)
  4776. }, {
  4777. default: R(() => [
  4778. A(e.$slots, "default")
  4779. ]),
  4780. _: 3
  4781. }, 8, ["class"]);
  4782. }
  4783. const Gt = /* @__PURE__ */ $a(zr, [["render", Rr]]), xr = /* @__PURE__ */ q({
  4784. __name: "BContainer",
  4785. props: {
  4786. fluid: { type: [String, Boolean], default: !1 },
  4787. gutterX: { default: void 0 },
  4788. gutterY: { default: void 0 },
  4789. tag: { default: "div" }
  4790. },
  4791. setup(e) {
  4792. const t = e, o = he(() => t.gutterX ?? NaN, { method: "parseInt" }), a = he(() => t.gutterY ?? NaN, { method: "parseInt" }), l = r(() => t.fluid), n = w(() => ({
  4793. container: l.value === !1,
  4794. "container-fluid": l.value === !0,
  4795. [`container-${l.value}`]: typeof l.value == "string",
  4796. [`gx-${o.value}`]: !Number.isNaN(o.value),
  4797. [`gy-${a.value}`]: !Number.isNaN(a.value)
  4798. }));
  4799. return (i, s) => (m(), x(se(i.tag), {
  4800. class: j(n.value)
  4801. }, {
  4802. default: R(() => [
  4803. A(i.$slots, "default")
  4804. ]),
  4805. _: 3
  4806. }, 8, ["class"]));
  4807. }
  4808. }), Mr = { class: "visually-hidden" }, Dr = ["aria-labelledby", "role"], gn = /* @__PURE__ */ q({
  4809. __name: "BDropdown",
  4810. props: {
  4811. ariaLabel: { default: void 0 },
  4812. autoClose: { type: [Boolean, String], default: !0 },
  4813. boundary: { default: "clippingAncestors" },
  4814. boundaryPadding: { default: void 0 },
  4815. center: { type: [String, Boolean], default: !1 },
  4816. container: { default: void 0 },
  4817. disabled: { type: [String, Boolean], default: !1 },
  4818. dropend: { type: [String, Boolean], default: !1 },
  4819. dropstart: { type: [String, Boolean], default: !1 },
  4820. dropup: { type: [String, Boolean], default: !1 },
  4821. end: { type: [String, Boolean], default: !1 },
  4822. floatingMiddleware: { default: void 0 },
  4823. id: { default: void 0 },
  4824. isNav: { type: [String, Boolean], default: !1 },
  4825. lazy: { type: [String, Boolean], default: !1 },
  4826. menuClass: { default: void 0 },
  4827. modelValue: { type: [String, Boolean], default: !1 },
  4828. noCaret: { type: [String, Boolean], default: !1 },
  4829. noFlip: { type: [String, Boolean], default: !1 },
  4830. noShift: { type: [String, Boolean], default: !1 },
  4831. noSize: { type: [String, Boolean], default: !1 },
  4832. offset: { default: 0 },
  4833. role: { default: "menu" },
  4834. size: { default: "md" },
  4835. split: { type: [String, Boolean], default: !1 },
  4836. splitButtonType: { default: "button" },
  4837. splitClass: { default: void 0 },
  4838. splitDisabled: { type: [String, Boolean], default: void 0 },
  4839. splitHref: { default: void 0 },
  4840. splitTo: { default: void 0 },
  4841. splitVariant: { default: void 0 },
  4842. strategy: { default: "absolute" },
  4843. text: { default: void 0 },
  4844. toggleClass: { default: void 0 },
  4845. toggleText: { default: "Toggle dropdown" },
  4846. variant: { default: "secondary" }
  4847. },
  4848. emits: ["click", "hidden", "hide", "hide-prevented", "show", "show-prevented", "shown", "toggle", "update:modelValue"],
  4849. setup(e, { expose: t, emit: o }) {
  4850. const a = e, l = o, n = _e(() => a.id, "dropdown"), i = ke(a, "modelValue", l, { passive: !0 }), s = r(i), u = r(() => a.dropup), d = r(() => a.dropend), f = r(() => a.isNav), g = r(() => a.dropstart), p = r(() => a.center), y = r(() => a.end), b = r(() => a.split), V = r(() => a.noCaret), C = r(() => a.noFlip), c = r(() => a.noShift), h = r(() => a.noSize), B = r(() => a.lazy), _ = r(() => a.splitDisabled), k = E(
  4851. () => typeof a.offset == "string" || typeof a.offset == "number" ? a.offset : NaN
  4852. ), S = he(k), $ = W(null), I = W(null), T = W(null), O = W(null), F = w(
  4853. () => a.boundary === "document" || a.boundary === "viewport" ? void 0 : a.boundary
  4854. ), K = w(
  4855. () => a.boundary === "document" || a.boundary === "viewport" ? a.boundary : void 0
  4856. ), z = E(() => b.value ? I.value : T.value);
  4857. qe(
  4858. "Escape",
  4859. () => {
  4860. i.value = !s;
  4861. },
  4862. { target: z }
  4863. ), qe(
  4864. "Escape",
  4865. () => {
  4866. i.value = !s;
  4867. },
  4868. { target: $ }
  4869. );
  4870. const P = (H, G) => {
  4871. var te, be, me, de;
  4872. if (H.preventDefault(), !s.value) {
  4873. L(), Ne(() => P(H, G));
  4874. return;
  4875. }
  4876. const X = (te = $.value) == null ? void 0 : te.querySelectorAll(".dropdown-item:not(.disabled):not(:disabled)");
  4877. if (X)
  4878. if ((be = $.value) != null && be.contains(document.activeElement)) {
  4879. const ie = $.value.querySelector(".dropdown-item:focus"), ce = Array.prototype.indexOf.call(X, ie) + G;
  4880. ce >= 0 && ce < (X == null ? void 0 : X.length) && ((me = X[ce]) == null || me.focus());
  4881. } else
  4882. (de = X[G === -1 ? X.length - 1 : 0]) == null || de.focus();
  4883. };
  4884. qe("ArrowUp", (H) => P(H, -1), { target: z }), qe("ArrowDown", (H) => P(H, 1), { target: z }), qe("ArrowUp", (H) => P(H, -1), { target: $ }), qe("ArrowDown", (H) => P(H, 1), { target: $ });
  4885. const D = w(
  4886. () => Xi({
  4887. top: u.value,
  4888. start: g.value,
  4889. end: d.value,
  4890. alignCenter: p.value,
  4891. alignEnd: y.value
  4892. })
  4893. ), ae = W({}), le = w(() => {
  4894. if (a.floatingMiddleware !== void 0)
  4895. return a.floatingMiddleware;
  4896. const H = typeof a.offset == "string" || typeof a.offset == "number" ? S.value : a.offset, G = [gl(H)];
  4897. return C.value === !1 && G.push(
  4898. pl({
  4899. boundary: F.value,
  4900. rootBoundary: K.value,
  4901. padding: a.boundaryPadding
  4902. })
  4903. ), c.value === !1 && G.push(
  4904. bl({
  4905. boundary: F.value,
  4906. rootBoundary: K.value,
  4907. padding: a.boundaryPadding
  4908. })
  4909. ), h.value === !1 && G.push(
  4910. yl({
  4911. boundary: F.value,
  4912. rootBoundary: K.value,
  4913. padding: a.boundaryPadding,
  4914. apply({ availableWidth: X, availableHeight: te }) {
  4915. ae.value = {
  4916. maxHeight: te ? `${te}px` : void 0,
  4917. maxWidth: X ? `${X}px` : void 0
  4918. };
  4919. }
  4920. })
  4921. ), G;
  4922. }), { update: ve, floatingStyles: Be } = Vl(z, $, {
  4923. placement: D,
  4924. middleware: le,
  4925. strategy: E(() => a.strategy),
  4926. whileElementsMounted: Tl
  4927. }), Ve = w(() => ({
  4928. dropup: u.value,
  4929. dropend: d.value,
  4930. dropstart: g.value,
  4931. "position-static": a.boundary !== "clippingAncestors" && !f.value
  4932. })), oe = w(() => [
  4933. b.value ? a.splitClass : a.toggleClass,
  4934. {
  4935. "nav-link": f.value,
  4936. "dropdown-toggle": !b.value,
  4937. "dropdown-toggle-no-caret": V.value && !b.value,
  4938. show: b.value ? void 0 : s.value
  4939. }
  4940. ]), fe = () => {
  4941. U();
  4942. }, $e = (H) => {
  4943. b.value ? l("click", H) : fe();
  4944. };
  4945. Ll(
  4946. $,
  4947. () => {
  4948. s.value && (a.autoClose === !0 || a.autoClose === "outside") && U();
  4949. },
  4950. { ignore: [I, T] }
  4951. );
  4952. const we = () => {
  4953. s.value && (a.autoClose === !0 || a.autoClose === "inside") && U();
  4954. }, M = () => {
  4955. i.value && U();
  4956. }, L = () => {
  4957. i.value || U();
  4958. }, U = () => {
  4959. var X;
  4960. l("toggle");
  4961. const H = s.value, G = new Rt(H ? "hide" : "show");
  4962. if (l(H ? "hide" : "show", G), G.defaultPrevented) {
  4963. l(H ? "hide-prevented" : "show-prevented");
  4964. return;
  4965. }
  4966. i.value = !H, l(H ? "hidden" : "shown"), (X = O.value) == null || X.dispatchEvent(new Event("forceHide"));
  4967. };
  4968. return ue(s, () => {
  4969. ve();
  4970. }), t({
  4971. close: M,
  4972. open: L,
  4973. toggle: U
  4974. }), at(ln, {
  4975. id: n,
  4976. open: L,
  4977. close: M,
  4978. toggle: U,
  4979. visible: s,
  4980. isNav: f
  4981. }), (H, G) => (m(), N("div", {
  4982. ref_key: "wrapper",
  4983. ref: O,
  4984. class: j([Ve.value, "btn-group"])
  4985. }, [
  4986. ye(pt, {
  4987. id: v(n),
  4988. ref_key: "splitButton",
  4989. ref: T,
  4990. variant: H.splitVariant || H.variant,
  4991. size: H.size,
  4992. class: j(oe.value),
  4993. disabled: v(_) || H.disabled,
  4994. type: H.splitButtonType,
  4995. "aria-label": H.ariaLabel,
  4996. "aria-expanded": v(b) ? void 0 : v(s),
  4997. "aria-haspopup": v(b) ? void 0 : "menu",
  4998. href: v(b) ? H.splitHref : void 0,
  4999. to: v(b) && H.splitTo ? H.splitTo : void 0,
  5000. onClick: $e
  5001. }, {
  5002. default: R(() => [
  5003. A(H.$slots, "button-content", {}, () => [
  5004. ne(Z(H.text), 1)
  5005. ])
  5006. ]),
  5007. _: 3
  5008. }, 8, ["id", "variant", "size", "class", "disabled", "type", "aria-label", "aria-expanded", "aria-haspopup", "href", "to"]),
  5009. v(b) ? (m(), x(pt, {
  5010. key: 0,
  5011. ref_key: "button",
  5012. ref: I,
  5013. variant: H.variant,
  5014. size: H.size,
  5015. disabled: H.disabled,
  5016. class: j([[H.toggleClass, v(s) ? "show" : void 0], "dropdown-toggle-split dropdown-toggle"]),
  5017. "aria-expanded": v(s),
  5018. "aria-haspopup": "menu",
  5019. onClick: fe
  5020. }, {
  5021. default: R(() => [
  5022. ee("span", Mr, [
  5023. A(H.$slots, "toggle-text", {}, () => [
  5024. ne(Z(H.toggleText), 1)
  5025. ])
  5026. ])
  5027. ]),
  5028. _: 3
  5029. }, 8, ["variant", "size", "disabled", "class", "aria-expanded"])) : J("", !0),
  5030. (m(), x(zt, {
  5031. to: H.container,
  5032. disabled: !H.container
  5033. }, [
  5034. !v(B) || v(s) ? ht((m(), N("ul", {
  5035. key: 0,
  5036. ref_key: "floating",
  5037. ref: $,
  5038. style: ze([v(Be), ae.value]),
  5039. class: j(["dropdown-menu show overflow-auto", H.menuClass]),
  5040. "aria-labelledby": v(n),
  5041. role: H.role,
  5042. onClick: we
  5043. }, [
  5044. A(H.$slots, "default", {
  5045. hide: M,
  5046. show: L
  5047. })
  5048. ], 14, Dr)), [
  5049. [ha, v(B) || v(s)]
  5050. ]) : J("", !0)
  5051. ], 8, ["to", "disabled"]))
  5052. ], 2));
  5053. }
  5054. }), jr = { role: "presentation" }, qr = /* @__PURE__ */ q({
  5055. __name: "BDropdownDivider",
  5056. props: {
  5057. tag: { default: "hr" }
  5058. },
  5059. setup(e) {
  5060. return (t, o) => (m(), N("li", jr, [
  5061. (m(), x(se(t.tag), {
  5062. class: "dropdown-divider",
  5063. role: "separator",
  5064. "aria-orientation": "horizontal"
  5065. }))
  5066. ]));
  5067. }
  5068. }), Gr = { role: "presentation" }, Wr = { class: "px-4 py-3" }, Ur = /* @__PURE__ */ q({
  5069. __name: "BDropdownForm",
  5070. setup(e) {
  5071. return (t, o) => (m(), N("li", Gr, [
  5072. ee("form", Wr, [
  5073. A(t.$slots, "default")
  5074. ])
  5075. ]));
  5076. }
  5077. }), Xr = { role: "presentation" }, Kr = ["id", "aria-describedby"], Yr = /* @__PURE__ */ q({
  5078. inheritAttrs: !1,
  5079. __name: "BDropdownGroup",
  5080. props: {
  5081. ariaDescribedby: { default: void 0 },
  5082. header: { default: void 0 },
  5083. headerClass: { default: void 0 },
  5084. headerTag: { default: "header" },
  5085. headerVariant: { default: null },
  5086. id: { default: void 0 }
  5087. },
  5088. setup(e) {
  5089. const t = e, o = E(() => t.id ? `${t.id}_group_dd_header` : void 0), a = E(() => t.headerTag === "header" ? void 0 : "heading"), l = w(() => [
  5090. t.headerClass,
  5091. {
  5092. [`text-${t.headerVariant}`]: t.headerVariant !== null
  5093. }
  5094. ]);
  5095. return (n, i) => (m(), N("li", Xr, [
  5096. (m(), x(se(n.headerTag), {
  5097. id: o.value,
  5098. class: j(["dropdown-header", l.value]),
  5099. role: a.value
  5100. }, {
  5101. default: R(() => [
  5102. A(n.$slots, "header", {}, () => [
  5103. ne(Z(n.header), 1)
  5104. ])
  5105. ]),
  5106. _: 3
  5107. }, 8, ["id", "class", "role"])),
  5108. ee("ul", Q({
  5109. id: n.id,
  5110. role: "group",
  5111. class: "list-unstyled"
  5112. }, n.$attrs, {
  5113. "aria-describedby": n.ariaDescribedby || o.value
  5114. }), [
  5115. A(n.$slots, "default")
  5116. ], 16, Kr)
  5117. ]));
  5118. }
  5119. }), Zr = { class: "dropdown-header" }, Jr = /* @__PURE__ */ q({
  5120. __name: "BDropdownHeader",
  5121. setup(e) {
  5122. return (t, o) => (m(), N("li", null, [
  5123. ee("h6", Zr, [
  5124. A(t.$slots, "default")
  5125. ])
  5126. ]));
  5127. }
  5128. }), Qr = /* @__PURE__ */ q({
  5129. inheritAttrs: !1,
  5130. __name: "BDropdownItem",
  5131. props: {
  5132. linkClass: { default: void 0 },
  5133. wrapperAttrs: { default: void 0 },
  5134. active: { type: [String, Boolean], default: void 0 },
  5135. activeClass: { default: void 0 },
  5136. append: { type: [String, Boolean], default: void 0 },
  5137. disabled: { type: [String, Boolean], default: void 0 },
  5138. exactActiveClass: { default: void 0 },
  5139. href: { default: void 0 },
  5140. icon: { type: [String, Boolean], default: void 0 },
  5141. opacity: { default: void 0 },
  5142. opacityHover: { default: void 0 },
  5143. rel: { default: void 0 },
  5144. replace: { type: [String, Boolean], default: void 0 },
  5145. routerComponentName: { default: void 0 },
  5146. target: { default: void 0 },
  5147. to: { default: void 0 },
  5148. underlineOffset: { default: void 0 },
  5149. underlineOffsetHover: { default: void 0 },
  5150. underlineOpacity: { default: void 0 },
  5151. underlineOpacityHover: { default: void 0 },
  5152. underlineVariant: { default: void 0 },
  5153. variant: { default: "secondary" }
  5154. },
  5155. emits: ["click"],
  5156. setup(e, { emit: t }) {
  5157. const o = e, a = t, { class: l, ...n } = Kt(), i = r(() => o.active), s = r(() => o.disabled), { computedLink: u, computedLinkProps: d } = Ct(o), f = w(() => [
  5158. o.linkClass,
  5159. {
  5160. active: i.value,
  5161. disabled: s.value,
  5162. [`text-${o.variant}`]: o.variant !== null
  5163. }
  5164. ]), g = E(() => u.value ? rt : o.href ? "a" : "button"), p = Ge(uo, null), y = Ge(ln, null), b = Ge(co, null), V = (C) => {
  5165. var c, h, B;
  5166. a("click", C), b !== null && ((c = b == null ? void 0 : b.autoClose) == null ? void 0 : c.value) === !0 && ((h = p == null ? void 0 : p.close) == null || h.call(p)), (B = y == null ? void 0 : y.close) == null || B.call(y);
  5167. };
  5168. return (C, c) => (m(), N("li", Q({
  5169. role: "presentation",
  5170. class: v(l)
  5171. }, C.wrapperAttrs), [
  5172. (m(), x(se(g.value), Q({
  5173. class: ["dropdown-item", f.value],
  5174. disabled: v(s),
  5175. "aria-disabled": v(s) ? !0 : null,
  5176. "aria-current": v(i) ? !0 : null,
  5177. href: g.value === "a" ? C.href : null,
  5178. rel: C.rel,
  5179. role: "menuitem",
  5180. type: g.value === "button" ? "button" : null,
  5181. target: C.target
  5182. }, { ...v(d), ...n }, { onClick: V }), {
  5183. default: R(() => [
  5184. A(C.$slots, "default")
  5185. ]),
  5186. _: 3
  5187. }, 16, ["class", "disabled", "aria-disabled", "aria-current", "href", "rel", "type", "target"]))
  5188. ], 16));
  5189. }
  5190. }), eu = { role: "presentation" }, tu = ["disabled"], au = /* @__PURE__ */ q({
  5191. inheritAttrs: !1,
  5192. __name: "BDropdownItemButton",
  5193. props: {
  5194. active: { type: [String, Boolean], default: !1 },
  5195. activeClass: { default: "active" },
  5196. buttonClass: { default: void 0 },
  5197. disabled: { type: [String, Boolean], default: !1 },
  5198. variant: { default: null }
  5199. },
  5200. emits: ["click"],
  5201. setup(e, { emit: t }) {
  5202. const o = e, a = t, l = r(() => o.active), n = r(() => o.disabled), i = w(() => [
  5203. o.buttonClass,
  5204. {
  5205. [o.activeClass]: l.value,
  5206. disabled: n.value,
  5207. [`text-${o.variant}`]: o.variant !== null
  5208. }
  5209. ]), s = (u) => {
  5210. a("click", u);
  5211. };
  5212. return (u, d) => (m(), N("li", eu, [
  5213. ee("button", {
  5214. role: "menu",
  5215. type: "button",
  5216. class: j(["dropdown-item", i.value]),
  5217. disabled: v(n),
  5218. onClick: s
  5219. }, [
  5220. A(u.$slots, "default")
  5221. ], 10, tu)
  5222. ]));
  5223. }
  5224. }), ou = { role: "presentation" }, lu = { class: "px-4 py-1 mb-0 text-body-secondary" }, nu = /* @__PURE__ */ q({
  5225. __name: "BDropdownText",
  5226. props: {
  5227. text: { default: "" }
  5228. },
  5229. setup(e) {
  5230. return (t, o) => (m(), N("li", ou, [
  5231. ee("p", lu, [
  5232. A(t.$slots, "default", {}, () => [
  5233. ne(Z(t.text), 1)
  5234. ])
  5235. ])
  5236. ]));
  5237. }
  5238. }), su = ["id", "novalidate", "onSubmit"], bn = /* @__PURE__ */ q({
  5239. __name: "BForm",
  5240. props: {
  5241. floating: { type: [String, Boolean], default: !1 },
  5242. id: { default: void 0 },
  5243. novalidate: { type: [String, Boolean], default: !1 },
  5244. validated: { type: [String, Boolean], default: !1 }
  5245. },
  5246. emits: ["submit"],
  5247. setup(e, { expose: t, emit: o }) {
  5248. const a = e, l = o, n = W(null), i = r(() => a.floating), s = r(() => a.novalidate), u = r(() => a.validated), d = w(() => ({
  5249. "form-floating": i.value,
  5250. "was-validated": u.value
  5251. })), f = (g) => {
  5252. l("submit", g);
  5253. };
  5254. return t({
  5255. element: n
  5256. }), (g, p) => (m(), N("form", {
  5257. id: g.id,
  5258. ref_key: "element",
  5259. ref: n,
  5260. novalidate: v(s),
  5261. class: j(d.value),
  5262. onSubmit: Bt(f, ["prevent"])
  5263. }, [
  5264. A(g.$slots, "default")
  5265. ], 42, su));
  5266. }
  5267. }), iu = { class: "form-floating" }, ru = ["for"], uu = /* @__PURE__ */ q({
  5268. __name: "BFormFloatingLabel",
  5269. props: {
  5270. label: { default: void 0 },
  5271. labelFor: { default: void 0 },
  5272. text: { default: void 0 }
  5273. },
  5274. setup(e) {
  5275. return (t, o) => (m(), N("div", iu, [
  5276. A(t.$slots, "default", {}, () => [
  5277. ne(Z(t.text), 1)
  5278. ]),
  5279. ee("label", { for: t.labelFor }, [
  5280. A(t.$slots, "label", {}, () => [
  5281. ne(Z(t.label), 1)
  5282. ])
  5283. ], 8, ru)
  5284. ]));
  5285. }
  5286. }), xa = /* @__PURE__ */ q({
  5287. __name: "BFormInvalidFeedback",
  5288. props: {
  5289. ariaLive: { default: void 0 },
  5290. forceShow: { type: [String, Boolean], default: !1 },
  5291. id: { default: void 0 },
  5292. role: { default: void 0 },
  5293. state: { type: [String, Boolean, null], default: null },
  5294. tag: { default: "div" },
  5295. text: { default: void 0 },
  5296. tooltip: { type: [String, Boolean], default: !1 }
  5297. },
  5298. setup(e) {
  5299. const t = e, o = r(() => t.forceShow), a = r(() => t.state), l = r(() => t.tooltip), n = E(() => o.value === !0 || a.value === !1), i = w(() => ({
  5300. "d-block": n.value,
  5301. "invalid-feedback": !l.value,
  5302. "invalid-tooltip": l.value
  5303. }));
  5304. return (s, u) => (m(), x(se(s.tag), {
  5305. id: s.id,
  5306. role: s.role,
  5307. "aria-live": s.ariaLive,
  5308. "aria-atomic": s.ariaLive ? !0 : void 0,
  5309. class: j(i.value)
  5310. }, {
  5311. default: R(() => [
  5312. A(s.$slots, "default", {}, () => [
  5313. ne(Z(s.text), 1)
  5314. ])
  5315. ]),
  5316. _: 3
  5317. }, 8, ["id", "role", "aria-live", "aria-atomic", "class"]));
  5318. }
  5319. }), ra = /* @__PURE__ */ q({
  5320. __name: "BFormRow",
  5321. props: {
  5322. tag: { default: "div" }
  5323. },
  5324. setup(e) {
  5325. return (t, o) => (m(), x(se(t.tag), { class: "row d-flex flex-wrap" }, {
  5326. default: R(() => [
  5327. A(t.$slots, "default")
  5328. ]),
  5329. _: 3
  5330. }));
  5331. }
  5332. }), Ma = /* @__PURE__ */ q({
  5333. __name: "BFormText",
  5334. props: {
  5335. id: { default: void 0 },
  5336. inline: { type: [String, Boolean], default: !1 },
  5337. tag: { default: "small" },
  5338. text: { default: void 0 },
  5339. textVariant: { default: "body-secondary" }
  5340. },
  5341. setup(e) {
  5342. const t = e, o = r(() => t.inline), a = w(() => ({
  5343. [`text-${t.textVariant}`]: t.textVariant !== null,
  5344. "form-text": !o.value
  5345. }));
  5346. return (l, n) => (m(), x(se(l.tag), {
  5347. id: l.id,
  5348. class: j(a.value)
  5349. }, {
  5350. default: R(() => [
  5351. A(l.$slots, "default", {}, () => [
  5352. ne(Z(l.text), 1)
  5353. ])
  5354. ]),
  5355. _: 3
  5356. }, 8, ["id", "class"]));
  5357. }
  5358. }), Da = /* @__PURE__ */ q({
  5359. __name: "BFormValidFeedback",
  5360. props: {
  5361. ariaLive: { default: void 0 },
  5362. forceShow: { type: [String, Boolean], default: !1 },
  5363. id: { default: void 0 },
  5364. role: { default: void 0 },
  5365. state: { type: [String, Boolean, null], default: null },
  5366. tag: { default: "div" },
  5367. text: { default: void 0 },
  5368. tooltip: { type: [String, Boolean], default: !1 }
  5369. },
  5370. setup(e) {
  5371. const t = e, o = r(() => t.forceShow), a = r(() => t.state), l = r(() => t.tooltip), n = E(() => o.value === !0 || a.value === !0), i = w(() => ({
  5372. "d-block": n.value,
  5373. "valid-feedback": !l.value,
  5374. "valid-tooltip": l.value
  5375. }));
  5376. return (s, u) => (m(), x(se(s.tag), {
  5377. id: s.id,
  5378. role: s.role,
  5379. "aria-live": s.ariaLive,
  5380. "aria-atomic": s.ariaLive ? !0 : void 0,
  5381. class: j(i.value)
  5382. }, {
  5383. default: R(() => [
  5384. A(s.$slots, "default", {}, () => [
  5385. ne(Z(s.text), 1)
  5386. ])
  5387. ]),
  5388. _: 3
  5389. }, 8, ["id", "role", "aria-live", "aria-atomic", "class"]));
  5390. }
  5391. }), yn = q({
  5392. name: "ComponentOrEmpty",
  5393. slots: Object,
  5394. props: {
  5395. tag: {
  5396. type: String,
  5397. default: "div"
  5398. },
  5399. to: {
  5400. type: [String, Object],
  5401. default: null
  5402. },
  5403. skip: {
  5404. type: Boolean,
  5405. default: !1
  5406. }
  5407. },
  5408. setup(e, { slots: t, attrs: o }) {
  5409. return () => {
  5410. var a, l, n;
  5411. return e.skip ? (a = t.default) == null ? void 0 : a.call(t) : e.tag === "Teleport" ? Le(zt, { to: e.to }, [(l = t.default) == null ? void 0 : l.call(t)]) : Le(e.tag, { ...o }, [(n = t.default) == null ? void 0 : n.call(t)]);
  5412. };
  5413. }
  5414. }), du = ["id", "disabled", "required", "name", "form", "aria-label", "aria-labelledby", "aria-required", "value", "true-value", "false-value", "indeterminate"], cu = ["for"], hn = /* @__PURE__ */ q({
  5415. inheritAttrs: !1,
  5416. __name: "BFormCheckbox",
  5417. props: {
  5418. ariaLabel: { default: void 0 },
  5419. ariaLabelledBy: { default: void 0 },
  5420. autofocus: { type: [String, Boolean], default: !1 },
  5421. button: { type: [String, Boolean], default: !1 },
  5422. buttonGroup: { type: [String, Boolean], default: !1 },
  5423. buttonVariant: { default: null },
  5424. disabled: { type: [String, Boolean], default: !1 },
  5425. form: { default: void 0 },
  5426. id: { default: void 0 },
  5427. indeterminate: { type: [String, Boolean], default: void 0 },
  5428. inline: { type: [String, Boolean], default: !1 },
  5429. modelValue: { type: [Array, Set, Boolean, String, Object, Number, null], default: void 0 },
  5430. name: { default: void 0 },
  5431. plain: { type: [String, Boolean], default: !1 },
  5432. required: { type: [String, Boolean], default: void 0 },
  5433. size: { default: void 0 },
  5434. state: { type: [String, Boolean, null], default: null },
  5435. switch: { type: [String, Boolean], default: !1 },
  5436. uncheckedValue: { type: [Array, Set, Boolean, String, Object, Number, null], default: !1 },
  5437. value: { type: [Array, Set, Boolean, String, Object, Number, null], default: !0 }
  5438. },
  5439. emits: ["change", "input", "update:modelValue"],
  5440. setup(e, { expose: t, emit: o }) {
  5441. const a = e, l = o, n = Me(), i = ke(a, "modelValue", l, { passive: !0 }), s = _e(() => a.id, "form-check"), u = r(() => a.indeterminate), d = r(() => a.autofocus), f = r(() => a.plain), g = r(() => a.button), p = r(() => a.buttonGroup), y = r(() => a.switch), b = r(() => a.disabled), V = r(() => a.inline), C = r(() => a.required), c = r(() => a.state), h = Ge(an, null), B = W(null), { focused: _ } = xe(B, {
  5442. initialValue: d.value
  5443. }), k = E(() => !Ie(n.default)), S = w({
  5444. get: () => (h == null ? void 0 : h.modelValue.value) ?? i.value,
  5445. set: (z) => {
  5446. if (z !== void 0) {
  5447. if (h !== null && Array.isArray(z)) {
  5448. h.modelValue.value = z;
  5449. return;
  5450. }
  5451. i.value = z;
  5452. }
  5453. }
  5454. }), $ = E(
  5455. () => !!(a.name ?? (h == null ? void 0 : h.name.value)) && (C.value || (h == null ? void 0 : h.required.value))
  5456. ), I = E(() => p.value || ((h == null ? void 0 : h.buttons.value) ?? !1)), T = w(() => ({
  5457. plain: f.value || ((h == null ? void 0 : h.plain.value) ?? !1),
  5458. button: g.value || ((h == null ? void 0 : h.buttons.value) ?? !1),
  5459. inline: V.value || ((h == null ? void 0 : h.inline.value) ?? !1),
  5460. switch: y.value || ((h == null ? void 0 : h.switch.value) ?? !1),
  5461. state: c.value || (h == null ? void 0 : h.state.value),
  5462. size: a.size ?? (h == null ? void 0 : h.size.value) ?? "md",
  5463. // This is where the true default is made
  5464. buttonVariant: a.buttonVariant ?? (h == null ? void 0 : h.buttonVariant.value) ?? "secondary"
  5465. // This is where the true default is made
  5466. })), O = Rl(T), F = xl(T), K = Ml(T);
  5467. return t({
  5468. blur: () => {
  5469. _.value = !1;
  5470. },
  5471. element: B,
  5472. focus: () => {
  5473. _.value = !0;
  5474. }
  5475. }), (z, P) => (m(), x(yn, {
  5476. skip: I.value,
  5477. class: j(v(O))
  5478. }, {
  5479. default: R(() => {
  5480. var D, ae, le;
  5481. return [
  5482. ht(ee("input", Q({ id: v(s) }, z.$attrs, {
  5483. ref_key: "input",
  5484. ref: B,
  5485. "onUpdate:modelValue": P[0] || (P[0] = (ve) => S.value = ve),
  5486. class: v(F),
  5487. type: "checkbox",
  5488. disabled: v(b) || ((D = v(h)) == null ? void 0 : D.disabled.value),
  5489. required: $.value || void 0,
  5490. name: z.name || ((ae = v(h)) == null ? void 0 : ae.name.value),
  5491. form: z.form || ((le = v(h)) == null ? void 0 : le.form.value),
  5492. "aria-label": z.ariaLabel,
  5493. "aria-labelledby": z.ariaLabelledBy,
  5494. "aria-required": $.value || void 0,
  5495. value: z.value,
  5496. "true-value": z.value,
  5497. "false-value": z.uncheckedValue,
  5498. indeterminate: v(u),
  5499. onChange: P[1] || (P[1] = (ve) => v(i) !== void 0 && l("change", v(i))),
  5500. onInput: P[2] || (P[2] = (ve) => v(i) !== void 0 && l("input", v(i)))
  5501. }), null, 16, du), [
  5502. [qn, S.value]
  5503. ]),
  5504. k.value || v(f) === !1 ? (m(), N("label", {
  5505. key: 0,
  5506. for: v(s),
  5507. class: j(v(K))
  5508. }, [
  5509. A(z.$slots, "default")
  5510. ], 10, cu)) : J("", !0)
  5511. ];
  5512. }),
  5513. _: 3
  5514. }, 8, ["skip", "class"]));
  5515. }
  5516. }), fu = ["id"], vu = ["innerHTML"], pu = ["textContent"], mu = /* @__PURE__ */ q({
  5517. __name: "BFormCheckboxGroup",
  5518. props: {
  5519. ariaInvalid: { type: [String, Boolean], default: void 0 },
  5520. autofocus: { type: [String, Boolean], default: !1 },
  5521. buttonVariant: { default: "secondary" },
  5522. buttons: { type: [String, Boolean], default: !1 },
  5523. disabled: { type: [String, Boolean], default: !1 },
  5524. disabledField: { default: "disabled" },
  5525. form: { default: void 0 },
  5526. htmlField: { default: "html" },
  5527. id: { default: void 0 },
  5528. modelValue: { default: () => [] },
  5529. name: { default: void 0 },
  5530. options: { default: () => [] },
  5531. plain: { type: [String, Boolean], default: !1 },
  5532. required: { type: [String, Boolean], default: !1 },
  5533. size: { default: "md" },
  5534. stacked: { type: [String, Boolean], default: !1 },
  5535. state: { type: [String, Boolean, null], default: null },
  5536. switches: { type: [String, Boolean], default: !1 },
  5537. textField: { default: "text" },
  5538. validated: { type: [String, Boolean], default: !1 },
  5539. valueField: { default: "value" }
  5540. },
  5541. emits: ["change", "input", "update:modelValue"],
  5542. setup(e, { expose: t, emit: o }) {
  5543. const a = e, l = o, n = ke(a, "modelValue", l), i = _e(() => a.id, "checkbox"), s = _e(() => a.name, "checkbox"), u = r(() => a.autofocus), d = r(() => a.buttons), f = r(() => a.disabled), g = r(() => a.plain), p = r(() => a.required), y = r(() => a.stacked), b = r(() => a.state), V = r(() => a.switches), C = r(() => a.validated), c = W(null), { focused: h } = xe(c, {
  5544. initialValue: u.value
  5545. });
  5546. at(an, {
  5547. modelValue: n,
  5548. switch: V,
  5549. buttonVariant: E(() => a.buttonVariant),
  5550. form: E(() => a.form),
  5551. name: s,
  5552. state: b,
  5553. plain: g,
  5554. size: E(() => a.size),
  5555. inline: E(() => !y.value),
  5556. required: p,
  5557. buttons: d,
  5558. disabled: f
  5559. }), ue(n, ($) => {
  5560. l("input", $), Ne(() => {
  5561. l("change", $);
  5562. });
  5563. });
  5564. const B = w(
  5565. () => a.options.map(
  5566. ($, I) => typeof $ == "string" || typeof $ == "number" ? {
  5567. props: {
  5568. value: $,
  5569. disabled: f.value
  5570. },
  5571. text: $.toString(),
  5572. html: void 0,
  5573. self: Symbol(`checkboxGroupOptionItem${I}`)
  5574. } : {
  5575. props: {
  5576. value: $[a.valueField],
  5577. disabled: $[a.disabledField],
  5578. ...$.props ? $.props : {}
  5579. },
  5580. text: $[a.textField],
  5581. html: $[a.htmlField],
  5582. self: Symbol(`checkboxGroupOptionItem${I}`)
  5583. }
  5584. )
  5585. ), _ = w(() => ({
  5586. required: p.value,
  5587. ariaInvalid: a.ariaInvalid,
  5588. state: b.value,
  5589. validated: C.value,
  5590. buttons: d.value,
  5591. stacked: y.value,
  5592. size: a.size
  5593. })), k = Dl(_), S = jl(_);
  5594. return t({
  5595. blur: () => {
  5596. h.value = !1;
  5597. },
  5598. focus: () => {
  5599. h.value = !0;
  5600. }
  5601. }), ($, I) => (m(), N("div", Q(v(k), {
  5602. id: v(i),
  5603. ref_key: "element",
  5604. ref: c,
  5605. role: "group",
  5606. class: [v(S), "bv-no-focus-ring"],
  5607. tabindex: "-1"
  5608. }), [
  5609. A($.$slots, "first"),
  5610. (m(!0), N(ge, null, Te(B.value, (T) => (m(), x(hn, Q({
  5611. key: T.self
  5612. }, T.props), {
  5613. default: R(() => [
  5614. T.html ? (m(), N("span", {
  5615. key: 0,
  5616. innerHTML: T.html
  5617. }, null, 8, vu)) : (m(), N("span", {
  5618. key: 1,
  5619. textContent: Z(T.text)
  5620. }, null, 8, pu))
  5621. ]),
  5622. _: 2
  5623. }, 1040))), 128)),
  5624. A($.$slots, "default")
  5625. ], 16, fu));
  5626. }
  5627. }), gu = ["for"], bu = ["id", "form", "name", "multiple", "disabled", "capture", "accept", "required", "aria-required", "directory", "webkitdirectory"], yu = /* @__PURE__ */ q({
  5628. inheritAttrs: !1,
  5629. __name: "BFormFile",
  5630. props: {
  5631. accept: { default: "" },
  5632. autofocus: { type: [String, Boolean], default: !1 },
  5633. capture: { type: [String, Boolean], default: !1 },
  5634. directory: { type: [String, Boolean], default: !1 },
  5635. disabled: { type: [String, Boolean], default: !1 },
  5636. form: { default: void 0 },
  5637. id: { default: void 0 },
  5638. label: { default: "" },
  5639. labelClass: { default: void 0 },
  5640. modelValue: { default: null },
  5641. multiple: { type: [String, Boolean], default: !1 },
  5642. name: { default: void 0 },
  5643. noDrop: { type: [String, Boolean], default: !1 },
  5644. noTraverse: { type: [String, Boolean], default: !1 },
  5645. required: { type: [String, Boolean], default: !1 },
  5646. size: { default: void 0 },
  5647. state: { type: [String, Boolean, null], default: null }
  5648. },
  5649. emits: ["change", "update:modelValue"],
  5650. setup(e, { expose: t, emit: o }) {
  5651. const a = Me(), l = e, n = o, i = ke(l, "modelValue", n), s = _e(() => l.id), u = r(() => l.autofocus), d = r(() => l.directory), f = r(() => l.disabled), g = r(() => l.multiple), p = r(() => l.noDrop);
  5652. r(() => l.noTraverse);
  5653. const y = r(() => l.required), b = r(() => l.state), V = r(() => l.capture), C = wt(b), c = W(null), { focused: h } = xe(c, { initialValue: u.value }), B = E(() => !Ie(a.label)), _ = E(
  5654. () => typeof l.accept == "string" ? l.accept : l.accept.join(",")
  5655. ), k = w(() => [
  5656. C.value,
  5657. {
  5658. [`form-control-${l.size}`]: l.size !== void 0
  5659. }
  5660. ]), S = (T) => {
  5661. var F, K;
  5662. const O = ((F = c.value) == null ? void 0 : F.files) === null || ((K = c.value) == null ? void 0 : K.files) === void 0 ? null : [...c.value.files];
  5663. i.value = O === null ? null : g.value === !0 ? O : O[0], n("change", T);
  5664. }, $ = (T) => {
  5665. p.value === !0 && T.preventDefault();
  5666. }, I = () => {
  5667. i.value = null;
  5668. };
  5669. return ue(i, (T) => {
  5670. T === null && c.value !== null && (c.value.value = "");
  5671. }), t({
  5672. blur: () => {
  5673. h.value = !1;
  5674. },
  5675. element: c,
  5676. focus: () => {
  5677. h.value = !0;
  5678. },
  5679. reset: I
  5680. }), (T, O) => (m(), N(ge, null, [
  5681. B.value || T.label ? (m(), N("label", {
  5682. key: 0,
  5683. for: v(s),
  5684. class: j(["form-label", T.labelClass])
  5685. }, [
  5686. A(T.$slots, "label", {}, () => [
  5687. ne(Z(T.label), 1)
  5688. ])
  5689. ], 10, gu)) : J("", !0),
  5690. ee("input", Q({ id: v(s) }, T.$attrs, {
  5691. ref_key: "input",
  5692. ref: c,
  5693. type: "file",
  5694. class: ["form-control", k.value],
  5695. form: T.form,
  5696. name: T.name,
  5697. multiple: v(g),
  5698. disabled: v(f),
  5699. capture: v(V),
  5700. accept: _.value || void 0,
  5701. required: v(y) || void 0,
  5702. "aria-required": v(y) || void 0,
  5703. directory: v(d),
  5704. webkitdirectory: v(d),
  5705. onChange: S,
  5706. onDrop: $
  5707. }), null, 16, bu)
  5708. ], 64));
  5709. }
  5710. }), Bn = ["input", "select", "textarea"], hu = Bn.map((e) => `${e}:not([disabled])`).join(), Bu = [...Bn, "a", "button", "label"], Su = "label", Cu = "invalid-feedback", wu = "valid-feedback", ku = "description", $u = "default", Tu = q({
  5711. components: { BCol: Gt, BFormInvalidFeedback: xa, BFormRow: ra, BFormText: Ma, BFormValidFeedback: Da },
  5712. props: {
  5713. ariaInvalid: { type: [Boolean, String], default: void 0 },
  5714. contentCols: { type: [Boolean, String, Number], default: void 0 },
  5715. contentColsLg: { type: [Boolean, String, Number], default: void 0 },
  5716. contentColsMd: { type: [Boolean, String, Number], default: void 0 },
  5717. contentColsSm: { type: [Boolean, String, Number], default: void 0 },
  5718. contentColsXl: { type: [Boolean, String, Number], default: void 0 },
  5719. description: { type: [String], default: void 0 },
  5720. disabled: { type: [Boolean, String], default: !1 },
  5721. feedbackAriaLive: { type: String, default: "assertive" },
  5722. id: { type: String, default: void 0 },
  5723. invalidFeedback: { type: String, default: void 0 },
  5724. label: { type: String, default: void 0 },
  5725. labelAlign: { type: [Boolean, String, Number], default: void 0 },
  5726. labelAlignLg: { type: [Boolean, String, Number], default: void 0 },
  5727. labelAlignMd: { type: [Boolean, String, Number], default: void 0 },
  5728. labelAlignSm: { type: [Boolean, String, Number], default: void 0 },
  5729. labelAlignXl: { type: [Boolean, String, Number], default: void 0 },
  5730. labelClass: { type: [Array, Object, String], default: void 0 },
  5731. labelCols: { type: [Boolean, String, Number], default: void 0 },
  5732. labelColsLg: { type: [Boolean, String, Number], default: void 0 },
  5733. labelColsMd: { type: [Boolean, String, Number], default: void 0 },
  5734. labelColsSm: { type: [Boolean, String, Number], default: void 0 },
  5735. labelColsXl: { type: [Boolean, String, Number], default: void 0 },
  5736. labelFor: { type: String, default: void 0 },
  5737. labelSize: { type: String, default: void 0 },
  5738. labelSrOnly: { type: [Boolean, String], default: !1 },
  5739. state: { type: [Boolean, String], default: null },
  5740. tooltip: { type: [Boolean, String], default: !1 },
  5741. validFeedback: { type: String, default: void 0 },
  5742. validated: { type: [Boolean, String], default: !1 },
  5743. floating: { type: [Boolean, String], default: !1 }
  5744. },
  5745. setup(e) {
  5746. const t = r(() => e.disabled), o = r(() => e.labelSrOnly), a = r(() => e.state), l = r(() => e.tooltip), n = r(() => e.validated), i = r(() => e.floating), s = null, u = ["xs", "sm", "md", "lg", "xl"], d = (_, k) => u.reduce((S, $) => {
  5747. const I = Lo($ === "xs" ? "" : $, `${k}Align`), T = _[I] || null;
  5748. return T && ($ === "xs" ? S.push(`text-${T}`) : S.push(`text-${$}-${T}`)), S;
  5749. }, []), f = (_, k) => (
  5750. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  5751. u.reduce((S, $) => {
  5752. const I = Lo($ === "xs" ? "" : $, `${k}Cols`);
  5753. let T = _[I];
  5754. return T = T === "" ? !0 : T || !1, typeof T != "boolean" && T !== "auto" && (T = Qi(T, 0), T = T > 0 ? T : !1), T && ($ === "xs" ? S[typeof T == "boolean" ? "col" : "cols"] = T : S[$ || (typeof T == "boolean" ? "col" : "cols")] = T), S;
  5755. }, {})
  5756. ), g = W(null), p = (_, k = null) => {
  5757. if (Ka && e.labelFor && g.value !== null) {
  5758. const S = dl(`#${ls(e.labelFor)}`, g.value);
  5759. if (S) {
  5760. const $ = "aria-describedby", I = (_ || "").split(sa), T = (k || "").split(sa), O = (Ya(S, $) || "").split(sa).filter((F) => !T.includes(F)).concat(I).filter((F, K, z) => z.indexOf(F) === K).filter((F) => F).join(" ").trim();
  5761. O ? hs(S, $, O) : Bs(S, $);
  5762. }
  5763. }
  5764. }, y = w(() => f(e, "content")), b = w(() => d(e, "label")), V = w(() => f(e, "label")), C = w(
  5765. () => (
  5766. // Determine if the form group will be rendered horizontal
  5767. // based on the existence of 'content-col' or 'label-col' props
  5768. Object.keys(y.value).length > 0 || Object.keys(V.value).length > 0
  5769. )
  5770. ), c = wt(a), h = Ca(() => e.ariaInvalid, a);
  5771. return ue(
  5772. () => s,
  5773. (_, k) => {
  5774. _ !== k && p(_, k);
  5775. }
  5776. ), st(() => {
  5777. Ne(() => {
  5778. p(s);
  5779. });
  5780. }), {
  5781. disabledBoolean: t,
  5782. labelSrOnlyBoolean: o,
  5783. stateBoolean: a,
  5784. tooltipBoolean: l,
  5785. validatedBoolean: n,
  5786. floatingBoolean: i,
  5787. ariaDescribedby: s,
  5788. computedAriaInvalid: h,
  5789. contentColProps: y,
  5790. isHorizontal: C,
  5791. labelAlignClasses: b,
  5792. labelColProps: V,
  5793. onLegendClick: (_) => {
  5794. if (e.labelFor || g.value === null)
  5795. return;
  5796. const { target: k } = _, S = k ? k.tagName : "";
  5797. if (Bu.indexOf(S) !== -1)
  5798. return;
  5799. const $ = bs(hu, g.value).filter(gs);
  5800. $.length === 1 && ps($[0]);
  5801. },
  5802. stateClass: c
  5803. };
  5804. },
  5805. render() {
  5806. const e = this.$props, t = this.$slots, o = _e(), a = !e.labelFor;
  5807. let l = null;
  5808. const n = jt(Su, {}, t) || e.label, i = n ? qt("_BV_label_") : null;
  5809. if (n || this.isHorizontal) {
  5810. const _ = a ? "legend" : "label";
  5811. if (this.labelSrOnlyBoolean)
  5812. n && (l = Le(
  5813. _,
  5814. {
  5815. class: "visually-hidden",
  5816. id: i,
  5817. for: e.labelFor || null
  5818. },
  5819. n
  5820. )), this.isHorizontal ? l = Le(Gt, this.labelColProps, { default: () => l }) : l = Le("div", {}, [l]);
  5821. else {
  5822. const k = {
  5823. onClick: a ? this.onLegendClick : null,
  5824. ...this.isHorizontal ? this.labelColProps : {},
  5825. tag: this.isHorizontal ? _ : null,
  5826. id: i,
  5827. for: e.labelFor || null,
  5828. tabIndex: a ? "-1" : null,
  5829. class: [
  5830. this.isHorizontal ? "col-form-label" : "form-label",
  5831. {
  5832. "bv-no-focus-ring": a,
  5833. "col-form-label": this.isHorizontal || a,
  5834. "pt-0": !this.isHorizontal && a,
  5835. "d-block": !this.isHorizontal && !a,
  5836. [`col-form-label-${e.labelSize}`]: !!e.labelSize
  5837. },
  5838. this.labelAlignClasses,
  5839. e.labelClass
  5840. ]
  5841. };
  5842. this.isHorizontal ? l = Le(Gt, k, { default: () => n }) : l = Le(_, k, n);
  5843. }
  5844. }
  5845. let s = null;
  5846. const u = jt(Cu, {}, t) || this.invalidFeedback, d = u ? qt("_BV_feedback_invalid_") : void 0;
  5847. u && (s = Le(
  5848. xa,
  5849. {
  5850. ariaLive: e.feedbackAriaLive,
  5851. id: d,
  5852. state: this.stateBoolean,
  5853. tooltip: this.tooltipBoolean
  5854. },
  5855. { default: () => u }
  5856. ));
  5857. let f = null;
  5858. const g = jt(wu, {}, t) || this.validFeedback, p = g ? qt("_BV_feedback_valid_") : void 0;
  5859. g && (f = Le(
  5860. Da,
  5861. {
  5862. ariaLive: e.feedbackAriaLive,
  5863. id: p,
  5864. state: this.stateBoolean,
  5865. tooltip: this.tooltipBoolean
  5866. },
  5867. { default: () => g }
  5868. // validFeedbackContent
  5869. ));
  5870. let y = null;
  5871. const b = jt(ku, {}, t) || this.description, V = b ? qt("_BV_description_") : void 0;
  5872. b && (y = Le(
  5873. Ma,
  5874. {
  5875. id: V
  5876. },
  5877. { default: () => b }
  5878. ));
  5879. const C = this.ariaDescribedby = [
  5880. V,
  5881. this.stateBoolean === !1 ? d : null,
  5882. this.stateBoolean === !0 ? p : null
  5883. ].filter((_) => _).join(" ") || null, c = [
  5884. jt($u, { ariaDescribedby: C, descriptionId: V, id: o, labelId: i }, t) || "",
  5885. s,
  5886. f,
  5887. y
  5888. ];
  5889. !this.isHorizontal && this.floatingBoolean && c.push(l);
  5890. let h = Le(
  5891. "div",
  5892. {
  5893. ref: "content",
  5894. class: [
  5895. {
  5896. "form-floating": !this.isHorizontal && this.floatingBoolean
  5897. }
  5898. ]
  5899. },
  5900. c
  5901. );
  5902. this.isHorizontal && (h = Le(Gt, { ref: "content", ...this.contentColProps }, { default: () => c }));
  5903. const B = {
  5904. class: [
  5905. this.stateClass,
  5906. {
  5907. "was-validated": this.validatedBoolean
  5908. }
  5909. ],
  5910. id: _e(() => e.id).value,
  5911. disabled: a ? this.disabledBoolean : null,
  5912. role: a ? null : "group",
  5913. "aria-invalid": this.computedAriaInvalid,
  5914. // Only apply `aria-labelledby` if we are a horizontal fieldset
  5915. // as the legend is no longer a direct child of fieldset
  5916. "aria-labelledby": a && this.isHorizontal ? i : null
  5917. };
  5918. return this.isHorizontal && !a ? Le(ra, B, { default: () => [l, h] }) : Le(
  5919. a ? "fieldset" : "div",
  5920. B,
  5921. this.isHorizontal && a ? [Le(ra, null, { default: () => [l, h] })] : this.isHorizontal || !this.floatingBoolean ? [l, h] : [h]
  5922. );
  5923. }
  5924. }), _u = ["id", "value", "name", "form", "type", "disabled", "placeholder", "required", "autocomplete", "readonly", "min", "max", "step", "list", "aria-required", "aria-invalid"], Vu = /* @__PURE__ */ q({
  5925. __name: "BFormInput",
  5926. props: {
  5927. max: { default: void 0 },
  5928. min: { default: void 0 },
  5929. step: { default: void 0 },
  5930. type: { default: "text" },
  5931. ariaInvalid: { type: [String, Boolean], default: void 0 },
  5932. autocomplete: { default: void 0 },
  5933. autofocus: { type: [String, Boolean], default: !1 },
  5934. disabled: { type: [String, Boolean], default: !1 },
  5935. form: { default: void 0 },
  5936. debounce: { default: 0 },
  5937. debounceMaxWait: { default: NaN },
  5938. formatter: { type: Function, default: void 0 },
  5939. id: { default: void 0 },
  5940. lazy: { type: [String, Boolean], default: !1 },
  5941. lazyFormatter: { type: [String, Boolean], default: !1 },
  5942. list: { default: void 0 },
  5943. modelValue: { default: "" },
  5944. name: { default: void 0 },
  5945. number: { type: [String, Boolean], default: !1 },
  5946. placeholder: { default: void 0 },
  5947. plaintext: { type: [String, Boolean], default: !1 },
  5948. readonly: { type: [String, Boolean], default: !1 },
  5949. required: { type: [String, Boolean], default: !1 },
  5950. size: { default: void 0 },
  5951. state: { type: [String, Boolean, null], default: null },
  5952. trim: { type: [String, Boolean], default: !1 }
  5953. },
  5954. emits: ["blur", "change", "input", "update:modelValue"],
  5955. setup(e, { expose: t, emit: o }) {
  5956. const a = e, l = o, { input: n, computedId: i, computedAriaInvalid: s, onInput: u, onChange: d, onBlur: f, focus: g, blur: p } = ql(a, l), y = r(() => a.disabled), b = r(() => a.required), V = r(() => a.readonly), C = r(() => a.plaintext), c = r(() => a.state), h = wt(c), B = W(!1), _ = w(() => {
  5957. const k = a.type === "range", S = a.type === "color";
  5958. return [
  5959. h.value,
  5960. {
  5961. "form-control-highlighted": B.value,
  5962. "form-range": k,
  5963. "form-control": S || !a.plaintext && !k,
  5964. "form-control-color": S,
  5965. "form-control-plaintext": a.plaintext && !k && !S,
  5966. [`form-control-${a.size}`]: !!a.size
  5967. }
  5968. ];
  5969. });
  5970. return t({
  5971. blur: p,
  5972. element: n,
  5973. focus: g
  5974. }), (k, S) => (m(), N("input", {
  5975. id: v(i),
  5976. ref_key: "input",
  5977. ref: n,
  5978. value: k.modelValue,
  5979. class: j(_.value),
  5980. name: k.name || void 0,
  5981. form: k.form || void 0,
  5982. type: k.type,
  5983. disabled: v(y),
  5984. placeholder: k.placeholder,
  5985. required: v(b) || void 0,
  5986. autocomplete: k.autocomplete || void 0,
  5987. readonly: v(V) || v(C),
  5988. min: k.min,
  5989. max: k.max,
  5990. step: k.step,
  5991. list: k.type !== "password" ? k.list : void 0,
  5992. "aria-required": v(b) || void 0,
  5993. "aria-invalid": v(s),
  5994. onInput: S[0] || (S[0] = ($) => v(u)($)),
  5995. onChange: S[1] || (S[1] = ($) => v(d)($)),
  5996. onBlur: S[2] || (S[2] = ($) => v(f)($))
  5997. }, null, 42, _u));
  5998. }
  5999. }), Au = ["id", "disabled", "required", "name", "form", "aria-label", "aria-labelledby", "value", "aria-required"], Ou = ["for"], Sn = /* @__PURE__ */ q({
  6000. inheritAttrs: !1,
  6001. __name: "BFormRadio",
  6002. props: {
  6003. ariaLabel: { default: void 0 },
  6004. ariaLabelledby: { default: void 0 },
  6005. autofocus: { type: [String, Boolean], default: !1 },
  6006. button: { type: [String, Boolean], default: !1 },
  6007. buttonGroup: { type: [String, Boolean], default: !1 },
  6008. buttonVariant: { default: null },
  6009. disabled: { type: [String, Boolean], default: !1 },
  6010. form: { default: void 0 },
  6011. id: { default: void 0 },
  6012. inline: { type: [String, Boolean], default: !1 },
  6013. modelValue: { type: [String, Boolean, Array, Object, Number, null], default: void 0 },
  6014. name: { default: void 0 },
  6015. plain: { type: [String, Boolean], default: !1 },
  6016. required: { type: [String, Boolean], default: !1 },
  6017. size: { default: void 0 },
  6018. state: { type: [String, Boolean, null], default: null },
  6019. value: { type: [String, Boolean, Array, Object, Number, null], default: !0 }
  6020. },
  6021. emits: ["change", "input", "update:modelValue"],
  6022. setup(e, { expose: t, emit: o }) {
  6023. const a = e, l = o, n = Me(), i = ke(a, "modelValue", l, { passive: !0 }), s = _e(() => a.id, "form-check"), u = r(() => a.autofocus), d = r(() => a.plain), f = r(() => a.button), g = r(() => a.buttonGroup), p = r(() => a.disabled), y = r(() => a.inline), b = r(() => a.required), V = r(() => a.state), C = Ge(on, null), c = W(null), { focused: h } = xe(c, {
  6024. initialValue: u.value
  6025. }), B = E(() => !Ie(n.default)), _ = w({
  6026. get: () => (C == null ? void 0 : C.modelValue.value) ?? i.value,
  6027. set: (F) => {
  6028. if (F !== void 0) {
  6029. if (C !== null) {
  6030. C.modelValue.value = F;
  6031. return;
  6032. }
  6033. i.value = F;
  6034. }
  6035. }
  6036. }), k = E(
  6037. () => !!(a.name ?? (C == null ? void 0 : C.name.value)) && (b.value || (C == null ? void 0 : C.required.value))
  6038. ), S = E(() => g.value || ((C == null ? void 0 : C.buttons.value) ?? !1)), $ = w(() => ({
  6039. plain: d.value || ((C == null ? void 0 : C.plain.value) ?? !1),
  6040. button: f.value || ((C == null ? void 0 : C.buttons.value) ?? !1),
  6041. inline: y.value || ((C == null ? void 0 : C.inline.value) ?? !1),
  6042. state: V.value || (C == null ? void 0 : C.state.value),
  6043. size: a.size ?? (C == null ? void 0 : C.size.value) ?? "md",
  6044. // This is where the true default is made
  6045. buttonVariant: a.buttonVariant ?? (C == null ? void 0 : C.buttonVariant.value) ?? "secondary"
  6046. // This is where the true default is made
  6047. })), I = Rl($), T = xl($), O = Ml($);
  6048. return t({
  6049. blur: () => {
  6050. h.value = !1;
  6051. },
  6052. element: c,
  6053. focus: () => {
  6054. h.value = !0;
  6055. }
  6056. }), (F, K) => (m(), x(yn, {
  6057. skip: S.value,
  6058. class: j(v(I))
  6059. }, {
  6060. default: R(() => {
  6061. var z, P, D;
  6062. return [
  6063. ht(ee("input", Q({ id: v(s) }, F.$attrs, {
  6064. ref_key: "input",
  6065. ref: c,
  6066. "onUpdate:modelValue": K[0] || (K[0] = (ae) => _.value = ae),
  6067. class: v(T),
  6068. type: "radio",
  6069. disabled: v(p) || ((z = v(C)) == null ? void 0 : z.disabled.value),
  6070. required: k.value || void 0,
  6071. name: F.name || ((P = v(C)) == null ? void 0 : P.name.value),
  6072. form: F.form || ((D = v(C)) == null ? void 0 : D.form.value),
  6073. "aria-label": F.ariaLabel,
  6074. "aria-labelledby": F.ariaLabelledby,
  6075. value: F.value,
  6076. "aria-required": k.value || void 0,
  6077. onChange: K[1] || (K[1] = (ae) => v(i) !== void 0 && l("change", v(i))),
  6078. onInput: K[2] || (K[2] = (ae) => v(i) !== void 0 && l("input", v(i)))
  6079. }), null, 16, Au), [
  6080. [Gn, _.value]
  6081. ]),
  6082. B.value || v(d) === !1 ? (m(), N("label", {
  6083. key: 0,
  6084. for: v(s),
  6085. class: j(v(O))
  6086. }, [
  6087. A(F.$slots, "default")
  6088. ], 10, Ou)) : J("", !0)
  6089. ];
  6090. }),
  6091. _: 3
  6092. }, 8, ["skip", "class"]));
  6093. }
  6094. }), Eu = ["id"], Pu = ["innerHTML"], Nu = ["textContent"], Iu = /* @__PURE__ */ q({
  6095. __name: "BFormRadioGroup",
  6096. props: {
  6097. ariaInvalid: { type: [String, Boolean], default: void 0 },
  6098. autofocus: { type: [String, Boolean], default: !1 },
  6099. buttonVariant: { default: "secondary" },
  6100. buttons: { type: [String, Boolean], default: !1 },
  6101. disabled: { type: [String, Boolean], default: !1 },
  6102. disabledField: { default: "disabled" },
  6103. form: { default: void 0 },
  6104. htmlField: { default: "html" },
  6105. id: { default: void 0 },
  6106. modelValue: { type: [String, Boolean, Array, Object, Number, null], default: null },
  6107. name: { default: void 0 },
  6108. options: { default: () => [] },
  6109. plain: { type: [String, Boolean], default: !1 },
  6110. required: { type: [String, Boolean], default: !1 },
  6111. size: { default: "md" },
  6112. stacked: { type: [String, Boolean], default: !1 },
  6113. state: { type: [String, Boolean, null], default: null },
  6114. textField: { default: "text" },
  6115. validated: { type: [String, Boolean], default: !1 },
  6116. valueField: { default: "value" }
  6117. },
  6118. emits: ["change", "input", "update:modelValue"],
  6119. setup(e, { expose: t, emit: o }) {
  6120. const a = e, l = o, n = ke(a, "modelValue", l), i = _e(() => a.id, "radio"), s = _e(() => a.name, "checkbox"), u = r(() => a.autofocus), d = r(() => a.buttons), f = r(() => a.disabled), g = r(() => a.plain), p = r(() => a.required), y = r(() => a.stacked), b = r(() => a.state), V = r(() => a.validated), C = W(null), { focused: c } = xe(C, {
  6121. initialValue: u.value
  6122. });
  6123. at(on, {
  6124. modelValue: n,
  6125. buttonVariant: E(() => a.buttonVariant),
  6126. form: E(() => a.form),
  6127. name: s,
  6128. buttons: d,
  6129. state: b,
  6130. plain: g,
  6131. size: E(() => a.size),
  6132. inline: E(() => !y.value),
  6133. required: p,
  6134. disabled: f
  6135. }), ue(n, (S) => {
  6136. l("input", S), Ne(() => {
  6137. l("change", S);
  6138. });
  6139. });
  6140. const h = w(
  6141. () => a.options.map(
  6142. (S, $) => typeof S == "string" || typeof S == "number" ? {
  6143. props: {
  6144. value: S,
  6145. disabled: f.value
  6146. },
  6147. text: S.toString(),
  6148. html: void 0,
  6149. self: Symbol(`radioGroupOptionItem${$}`)
  6150. } : {
  6151. props: {
  6152. value: S[a.valueField],
  6153. disabled: S[a.disabledField],
  6154. ...S.props ? S.props : {}
  6155. },
  6156. text: S[a.textField],
  6157. html: S[a.htmlField],
  6158. self: Symbol(`radioGroupOptionItem${$}`)
  6159. }
  6160. )
  6161. ), B = w(() => ({
  6162. required: p.value,
  6163. ariaInvalid: a.ariaInvalid,
  6164. state: b.value,
  6165. validated: V.value,
  6166. buttons: d.value,
  6167. stacked: y.value,
  6168. size: a.size
  6169. })), _ = Dl(B), k = jl(B);
  6170. return t({
  6171. blur: () => {
  6172. c.value = !1;
  6173. },
  6174. focus: () => {
  6175. c.value = !0;
  6176. }
  6177. }), (S, $) => (m(), N("div", Q(v(_), {
  6178. id: v(i),
  6179. ref_key: "element",
  6180. ref: C,
  6181. role: "radiogroup",
  6182. class: [v(k), "bv-no-focus-ring"],
  6183. tabindex: "-1"
  6184. }), [
  6185. A(S.$slots, "first"),
  6186. (m(!0), N(ge, null, Te(h.value, (I) => (m(), x(Sn, Q({
  6187. key: I.self
  6188. }, I.props), {
  6189. default: R(() => [
  6190. I.html ? (m(), N("span", {
  6191. key: 0,
  6192. innerHTML: I.html
  6193. }, null, 8, Pu)) : (m(), N("span", {
  6194. key: 1,
  6195. textContent: Z(I.text)
  6196. }, null, 8, Nu))
  6197. ]),
  6198. _: 2
  6199. }, 1040))), 128)),
  6200. A(S.$slots, "default")
  6201. ], 16, Eu));
  6202. }
  6203. }), Lu = ["value", "disabled"], po = /* @__PURE__ */ q({
  6204. __name: "BFormSelectOption",
  6205. props: {
  6206. disabled: { type: [String, Boolean], default: !1 },
  6207. value: { default: void 0 }
  6208. },
  6209. setup(e) {
  6210. const t = e, o = r(() => t.disabled);
  6211. return (a, l) => (m(), N("option", {
  6212. value: a.value,
  6213. disabled: v(o)
  6214. }, [
  6215. A(a.$slots, "default")
  6216. ], 8, Lu));
  6217. }
  6218. }), Fu = ["label"], Cn = /* @__PURE__ */ q({
  6219. __name: "BFormSelectOptionGroup",
  6220. props: {
  6221. disabledField: { default: "disabled" },
  6222. htmlField: { default: "html" },
  6223. label: { default: void 0 },
  6224. options: { default: () => [] },
  6225. textField: { default: "text" },
  6226. valueField: { default: "value" }
  6227. },
  6228. setup(e) {
  6229. const t = e, o = w(
  6230. () => (
  6231. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  6232. no(t.options, "BFormSelectOptionGroup", t)
  6233. )
  6234. );
  6235. return (a, l) => (m(), N("optgroup", { label: a.label }, [
  6236. A(a.$slots, "first"),
  6237. (m(!0), N(ge, null, Te(o.value, (n, i) => (m(), x(po, Q({
  6238. key: i,
  6239. value: n.value,
  6240. disabled: n.disabled
  6241. }, a.$attrs, {
  6242. innerHTML: n.html || n.text
  6243. }), null, 16, ["value", "disabled", "innerHTML"]))), 128)),
  6244. A(a.$slots, "default")
  6245. ], 8, Fu));
  6246. }
  6247. }), Hu = ["id", "name", "form", "multiple", "size", "disabled", "required", "aria-required", "aria-invalid"], zu = /* @__PURE__ */ q({
  6248. __name: "BFormSelect",
  6249. props: {
  6250. ariaInvalid: { type: [String, Boolean], default: void 0 },
  6251. autofocus: { type: [String, Boolean], default: !1 },
  6252. disabled: { type: [String, Boolean], default: !1 },
  6253. disabledField: { default: "disabled" },
  6254. form: { default: void 0 },
  6255. htmlField: { default: "html" },
  6256. id: { default: void 0 },
  6257. labelField: { default: "label" },
  6258. modelValue: { default: "" },
  6259. multiple: { type: [String, Boolean], default: !1 },
  6260. name: { default: void 0 },
  6261. options: { default: () => [] },
  6262. optionsField: { default: "options" },
  6263. plain: { type: [String, Boolean], default: !1 },
  6264. required: { type: [String, Boolean], default: !1 },
  6265. selectSize: { default: 0 },
  6266. size: { default: "md" },
  6267. state: { type: [String, Boolean, null], default: null },
  6268. textField: { default: "text" },
  6269. valueField: { default: "value" }
  6270. },
  6271. emits: ["change", "input", "update:modelValue"],
  6272. setup(e, { expose: t, emit: o }) {
  6273. const a = e, l = o, n = ke(a, "modelValue", l), i = _e(() => a.id, "input"), s = r(() => a.autofocus), u = r(() => a.disabled), d = r(() => a.multiple), f = r(() => a.plain), g = r(() => a.required), p = r(() => a.state), y = he(() => a.selectSize), b = wt(p), V = W(null), { focused: C } = xe(V, {
  6274. initialValue: s.value
  6275. }), c = w(() => [
  6276. b.value,
  6277. {
  6278. "form-control": f.value,
  6279. [`form-control-${a.size}`]: a.size !== "md" && f.value,
  6280. "form-select": !f.value,
  6281. [`form-select-${a.size}`]: a.size !== "md" && !f.value
  6282. }
  6283. ]), h = E(
  6284. () => y.value || f.value ? y.value : void 0
  6285. ), B = Ca(() => a.ariaInvalid, p), _ = w(() => no(a.options, "BFormSelect", a)), k = w({
  6286. get: () => n.value,
  6287. // eslint-disable-next-line @typescript-eslint/no-explicit-any
  6288. set: (S) => {
  6289. l("input", S), n.value = S, Ne(() => {
  6290. l("change", S);
  6291. });
  6292. }
  6293. });
  6294. return t({
  6295. blur: () => {
  6296. C.value = !1;
  6297. },
  6298. element: V,
  6299. focus: () => {
  6300. C.value = !0;
  6301. }
  6302. }), (S, $) => ht((m(), N("select", {
  6303. id: v(i),
  6304. ref_key: "input",
  6305. ref: V,
  6306. "onUpdate:modelValue": $[0] || ($[0] = (I) => k.value = I),
  6307. class: j(c.value),
  6308. name: S.name,
  6309. form: S.form || void 0,
  6310. multiple: v(d) || void 0,
  6311. size: h.value,
  6312. disabled: v(u),
  6313. required: v(g) || void 0,
  6314. "aria-required": v(g) || void 0,
  6315. "aria-invalid": v(B)
  6316. }, [
  6317. A(S.$slots, "first"),
  6318. (m(!0), N(ge, null, Te(_.value, (I, T) => (m(), N(ge, { key: T }, [
  6319. Array.isArray(I.options) ? (m(), x(Cn, {
  6320. key: 0,
  6321. label: I.label,
  6322. options: I.options
  6323. }, null, 8, ["label", "options"])) : (m(), x(po, {
  6324. key: 1,
  6325. value: I.value,
  6326. disabled: I.disabled,
  6327. innerHTML: I.html || I.text
  6328. }, null, 8, ["value", "disabled", "innerHTML"]))
  6329. ], 64))), 128)),
  6330. A(S.$slots, "default")
  6331. ], 10, Hu)), [
  6332. [Wn, k.value]
  6333. ]);
  6334. }
  6335. }), xo = [
  6336. "ar",
  6337. "az",
  6338. "ckb",
  6339. "fa",
  6340. "he",
  6341. "ks",
  6342. "lrc",
  6343. "mzn",
  6344. "ps",
  6345. "sd",
  6346. "te",
  6347. "ug",
  6348. "ur",
  6349. "yi"
  6350. ].map((e) => e.toLowerCase()), Ru = (e) => {
  6351. const t = ca(e).toLowerCase().replace(Jn, "").split("-"), o = t.slice(0, 2).join("-"), [a] = t;
  6352. return xo.includes(o) || xo.includes(a);
  6353. }, xu = (e) => ds ? Po(e) ? e : { capture: !!e || !1 } : !!(Po(e) ? e.capture : e), Mu = (e, t, o, a) => {
  6354. e && e.addEventListener && e.addEventListener(t, o, xu(a));
  6355. }, Du = (e, t, o, a) => {
  6356. e && e.removeEventListener && e.removeEventListener(t, o, a);
  6357. }, Mo = (e, t) => {
  6358. (e ? Mu : Du)(...t);
  6359. }, na = (e, { preventDefault: t = !0, propagation: o = !0, immediatePropagation: a = !1 } = {}) => {
  6360. t && e.preventDefault(), o && e.stopPropagation(), a && e.stopImmediatePropagation();
  6361. }, Na = "ArrowDown", Do = "End", jo = "Home", qo = "PageDown", Go = "PageUp", Ia = "ArrowUp", ju = ["lang", "tabindex", "title"], qu = ["name", "form", "value"], Gu = ["id", "dir", "tabindex", "aria-label", "aria-invalid", "aria-required", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], je = {
  6362. min: 1,
  6363. max: 100,
  6364. step: 1,
  6365. repeatDelay: 500,
  6366. repeatInterval: 100,
  6367. repeatThreshold: 10,
  6368. repeatMultiplier: 4
  6369. }, Wu = /* @__PURE__ */ q({
  6370. __name: "BFormSpinbutton",
  6371. props: {
  6372. ariaControls: { default: void 0 },
  6373. ariaLabel: { default: void 0 },
  6374. disabled: { type: [String, Boolean], default: !1 },
  6375. form: { default: void 0 },
  6376. formatterFn: { type: Function, default: void 0 },
  6377. id: { default: void 0 },
  6378. inline: { type: [String, Boolean], default: !1 },
  6379. labelDecrement: { default: "Decrement" },
  6380. labelIncrement: { default: "Increment" },
  6381. locale: { default: "locale" },
  6382. max: { default: je.max },
  6383. min: { default: je.min },
  6384. modelValue: { default: null },
  6385. name: { default: void 0 },
  6386. placeholder: { default: void 0 },
  6387. readonly: { type: [String, Boolean], default: !1 },
  6388. repeatDelay: { default: je.repeatDelay },
  6389. repeatInterval: { default: je.repeatInterval },
  6390. repeatStepMultiplier: { default: je.repeatMultiplier },
  6391. repeatThreshold: { default: je.repeatThreshold },
  6392. required: { type: [String, Boolean], default: !1 },
  6393. size: { default: void 0 },
  6394. state: { type: [String, Boolean, null], default: null },
  6395. step: { default: je.step },
  6396. vertical: { type: [String, Boolean], default: !1 },
  6397. wrap: { type: [String, Boolean], default: !1 }
  6398. },
  6399. emits: ["change", "update:modelValue"],
  6400. setup(e, { emit: t }) {
  6401. const o = [Ia, Na, jo, Do, Go, qo], a = e, l = t, n = ke(a, "modelValue", l, { passive: !0 }), i = W(null), { focused: s } = xe(i), u = _e(() => a.id, "spinbutton"), d = r(() => a.disabled), f = r(() => a.inline), g = r(() => a.readonly), p = r(() => a.vertical), y = r(() => a.required), b = r(() => a.wrap), V = r(() => a.state), C = w(() => ({
  6402. disabled: d.value,
  6403. readonly: g.value,
  6404. focus: s.value,
  6405. "d-inline-flex": f.value || p.value,
  6406. "d-flex": !f.value && !p.value,
  6407. "align-items-stretch": !p.value,
  6408. "flex-column": p.value,
  6409. [`form-control-${a.size}`]: a.size !== void 0
  6410. })), c = w(() => ({
  6411. "d-flex": p.value,
  6412. "align-self-center": !p.value,
  6413. "align-items-center": p.value,
  6414. "border-top": p.value,
  6415. "border-bottom": p.value,
  6416. "border-start": !p.value,
  6417. "border-end": !p.value
  6418. }));
  6419. let h, B, _ = !1;
  6420. const k = he(() => a.step), S = E(
  6421. () => Number.isNaN(k.value) ? je.step : k.value
  6422. ), $ = he(() => a.min), I = E(
  6423. () => Number.isNaN($.value) ? je.min : $.value
  6424. ), T = he(() => a.max), O = E(() => {
  6425. const ie = S.value, ce = I.value;
  6426. return Math.floor((T.value - ce) / ie) * ie + ce;
  6427. }), F = he(() => a.repeatDelay, {
  6428. nanToZero: !0,
  6429. method: "parseInt"
  6430. }), K = E(
  6431. () => F.value > 0 ? F.value : je.repeatDelay
  6432. ), z = he(() => a.repeatInterval, {
  6433. nanToZero: !0,
  6434. method: "parseInt"
  6435. }), P = E(
  6436. () => z.value > 0 ? z.value : je.repeatInterval
  6437. ), D = he(() => a.repeatThreshold, {
  6438. nanToZero: !0,
  6439. method: "parseInt"
  6440. }), ae = E(
  6441. () => Math.max(
  6442. Number.isNaN(D.value) ? je.repeatThreshold : D.value,
  6443. 1
  6444. )
  6445. ), le = he(() => a.repeatStepMultiplier, {
  6446. nanToZero: !0,
  6447. method: "parseInt"
  6448. }), ve = E(
  6449. () => Math.max(
  6450. Number.isNaN(le.value) ? je.repeatMultiplier : le.value,
  6451. 1
  6452. )
  6453. ), Be = E(() => {
  6454. const ie = S.value;
  6455. return Math.floor(ie) === ie ? 0 : (ie.toString().split(".")[1] || "").length;
  6456. }), Ve = E(() => Math.pow(10, Be.value || 0)), oe = E(
  6457. () => n.value === null ? "" : n.value.toFixed(Be.value)
  6458. ), fe = w(() => {
  6459. const ie = [a.locale];
  6460. return new Intl.NumberFormat(ie).resolvedOptions().locale;
  6461. }), $e = w(
  6462. () => (
  6463. // TODO
  6464. Ru(fe.value)
  6465. )
  6466. ), we = () => new Intl.NumberFormat(fe.value, {
  6467. style: "decimal",
  6468. useGrouping: !1,
  6469. minimumIntegerDigits: 1,
  6470. minimumFractionDigits: Be.value,
  6471. maximumFractionDigits: Be.value,
  6472. notation: "standard"
  6473. }).format, M = E(() => a.formatterFn ?? we()), L = (ie) => {
  6474. let { value: ce } = n;
  6475. if (!d.value && ce !== null) {
  6476. const Ce = S.value * ie, Y = I.value, re = O.value, Ae = Ve.value, { wrap: He } = a;
  6477. ce = Math.round((ce - Y) / Ce) * Ce + Y + Ce, ce = Math.round(ce * Ae) / Ae, n.value = ce > re ? He ? Y : re : ce < Y ? He ? re : Y : ce;
  6478. }
  6479. }, U = (ie = 1) => {
  6480. if (n.value === null) {
  6481. n.value = I.value;
  6482. return;
  6483. }
  6484. L(1 * ie);
  6485. }, H = (ie = 1) => {
  6486. if (n.value === null) {
  6487. n.value = b.value ? O.value : I.value;
  6488. return;
  6489. }
  6490. L(-1 * ie);
  6491. };
  6492. qe(
  6493. o,
  6494. (ie) => {
  6495. const { code: ce, altKey: Ce, ctrlKey: Y, metaKey: re } = ie;
  6496. if (!(d.value || g.value || Ce || Y || re) && (na(ie, { propagation: !1 }), !_)) {
  6497. if (me(), [Ia, Na].includes(ce)) {
  6498. if (_ = !0, ce === Ia) {
  6499. G(ie, U);
  6500. return;
  6501. }
  6502. ce === Na && G(ie, H);
  6503. return;
  6504. }
  6505. if (ce === Go) {
  6506. U(ve.value);
  6507. return;
  6508. }
  6509. if (ce === qo) {
  6510. H(ve.value);
  6511. return;
  6512. }
  6513. if (ce === jo) {
  6514. n.value = I.value;
  6515. return;
  6516. }
  6517. ce === Do && (n.value = O.value);
  6518. }
  6519. },
  6520. { target: i, eventName: "keydown" }
  6521. ), qe(
  6522. o,
  6523. (ie) => {
  6524. const { altKey: ce, ctrlKey: Ce, metaKey: Y } = ie;
  6525. d.value || g.value || ce || Ce || Y || (na(ie, { propagation: !1 }), me(), _ = !1, l("change", n.value));
  6526. },
  6527. { target: i, eventName: "keyup" }
  6528. );
  6529. const G = (ie, ce) => {
  6530. const { type: Ce } = ie || {};
  6531. if (!d.value && !g.value) {
  6532. if (X(ie) && Ce === "mousedown" && ie.button)
  6533. return;
  6534. me(), ce(1);
  6535. const Y = ae.value, re = ve.value, Ae = K.value, He = P.value;
  6536. h = setTimeout(() => {
  6537. let Re = 0;
  6538. B = setInterval(() => {
  6539. ce(Re < Y ? 1 : re), Re++;
  6540. }, He);
  6541. }, Ae);
  6542. }
  6543. }, X = (ie) => ie.type === "mouseup" || ie.type === "mousedown", te = (ie) => {
  6544. X(ie) && ie.type === "mouseup" && ie.button || (na(ie, { propagation: !1 }), me(), be(!1), l("change", n.value));
  6545. }, be = (ie) => {
  6546. try {
  6547. Mo(ie, [document.body, "mouseup", te, !1]), Mo(ie, [document.body, "touchend", te, !1]);
  6548. } catch {
  6549. }
  6550. }, me = () => {
  6551. clearTimeout(h), clearInterval(B), h = void 0, B = void 0;
  6552. }, de = w(() => {
  6553. const ie = {
  6554. svg: {
  6555. xmlns: "http://www.w3.org/2000/svg",
  6556. width: "16",
  6557. height: "16",
  6558. fill: "currentColor",
  6559. class: "bi bi-plus",
  6560. viewBox: "0 0 16 16"
  6561. },
  6562. path: {
  6563. d: "M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"
  6564. }
  6565. }, ce = {
  6566. svg: {
  6567. xmlns: "http://www.w3.org/2000/svg",
  6568. width: "16",
  6569. height: "16",
  6570. fill: "currentColor",
  6571. class: "bi bi-dash",
  6572. viewBox: "0 0 16 16"
  6573. },
  6574. path: { d: "M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z" }
  6575. }, Ce = {
  6576. class: [{ "py-0": !p.value }, "btn", "btn-sm", "border-0", "rounded-0"],
  6577. tabindex: "-1",
  6578. type: "button",
  6579. disabled: d.value || g.value,
  6580. "aria-disabled": d.value || g.value ? !0 : void 0,
  6581. "aria-controls": u.value
  6582. }, Y = {
  6583. "aria-hidden": !0,
  6584. scale: s.value ? 1.5 : 1.25
  6585. }, re = (Re, kt) => {
  6586. !d.value && !g.value && (na(Re, { propagation: !1 }), be(!0), s.value = !0, G(Re, kt));
  6587. }, Ae = {
  6588. button: {
  6589. ...Ce,
  6590. "aria-label": a.labelIncrement || void 0,
  6591. "aria-keyshortcuts": "ArrowUp"
  6592. },
  6593. svg: {
  6594. ...Y,
  6595. ...ie.svg
  6596. },
  6597. path: {
  6598. ...ie.path
  6599. },
  6600. slot: {
  6601. name: "increment"
  6602. },
  6603. handler: (Re) => re(Re, U)
  6604. }, He = {
  6605. button: {
  6606. ...Ce,
  6607. "aria-label": a.labelDecrement || void 0,
  6608. "aria-keyshortcuts": "ArrowDown"
  6609. },
  6610. svg: {
  6611. ...Y,
  6612. ...ce.svg
  6613. },
  6614. path: {
  6615. ...ce.path
  6616. },
  6617. slot: {
  6618. name: "decrement"
  6619. },
  6620. handler: (Re) => re(Re, H)
  6621. };
  6622. return {
  6623. top: {
  6624. ...p.value ? Ae : He
  6625. },
  6626. bottom: {
  6627. ...p.value ? He : Ae
  6628. }
  6629. };
  6630. });
  6631. return (ie, ce) => (m(), N("div", {
  6632. ref_key: "element",
  6633. ref: i,
  6634. class: j(["b-form-spinbutton form-control", C.value]),
  6635. role: "group",
  6636. lang: fe.value,
  6637. tabindex: v(d) ? void 0 : "-1",
  6638. title: ie.ariaLabel,
  6639. onClick: ce[4] || (ce[4] = (Ce) => s.value = !0)
  6640. }, [
  6641. A(ie.$slots, de.value.top.slot.name, { hasFocus: v(s) }, () => [
  6642. ee("button", Q(de.value.top.button, {
  6643. onMousedown: ce[0] || (ce[0] = //@ts-ignore
  6644. (...Ce) => de.value.top.handler && de.value.top.handler(...Ce)),
  6645. onTouchstart: ce[1] || (ce[1] = //@ts-ignore
  6646. (...Ce) => de.value.top.handler && de.value.top.handler(...Ce))
  6647. }), [
  6648. (m(), N("svg", Se(Ee(de.value.top.svg)), [
  6649. ee("path", Se(Ee(de.value.top.path)), null, 16)
  6650. ], 16))
  6651. ], 16)
  6652. ]),
  6653. ie.name && !v(d) ? (m(), N("input", {
  6654. key: "hidden",
  6655. type: "hidden",
  6656. name: ie.name,
  6657. form: ie.form,
  6658. value: oe.value
  6659. }, null, 8, qu)) : J("", !0),
  6660. ee("output", {
  6661. id: v(u),
  6662. key: "output",
  6663. class: j(["flex-grow-1", c.value]),
  6664. dir: $e.value ? "rtl" : "ltr",
  6665. tabindex: v(d) ? void 0 : "0",
  6666. role: "spinbutton",
  6667. "aria-live": "off",
  6668. "aria-label": ie.ariaLabel || void 0,
  6669. "aria-invalid": v(V) === !1 || !v(n) !== null && v(y) ? !0 : void 0,
  6670. "aria-required": v(y) ? !0 : void 0,
  6671. "aria-valuemin": I.value,
  6672. "aria-valuemax": O.value,
  6673. "aria-valuenow": v(n) !== null ? v(n) : void 0,
  6674. "aria-valuetext": v(n) !== null ? M.value(v(n)) : void 0
  6675. }, [
  6676. ee("bdi", null, Z((v(n) !== null ? M.value(v(n)) : ie.placeholder) || ""), 1)
  6677. ], 10, Gu),
  6678. A(ie.$slots, de.value.bottom.slot.name, { hasFocus: v(s) }, () => [
  6679. ee("button", Q(de.value.bottom.button, {
  6680. onMousedown: ce[2] || (ce[2] = //@ts-ignore
  6681. (...Ce) => de.value.bottom.handler && de.value.bottom.handler(...Ce)),
  6682. onTouchstart: ce[3] || (ce[3] = //@ts-ignore
  6683. (...Ce) => de.value.bottom.handler && de.value.bottom.handler(...Ce))
  6684. }), [
  6685. (m(), N("svg", Se(Ee(de.value.bottom.svg)), [
  6686. ee("path", Se(Ee(de.value.bottom.path)), null, 16)
  6687. ], 16))
  6688. ], 16)
  6689. ])
  6690. ], 10, ju));
  6691. }
  6692. }), Uu = ["id"], wn = /* @__PURE__ */ q({
  6693. __name: "BFormTag",
  6694. props: {
  6695. disabled: { type: [String, Boolean], default: !1 },
  6696. id: { default: void 0 },
  6697. noRemove: { type: [String, Boolean], default: !1 },
  6698. pill: { type: [String, Boolean], default: !1 },
  6699. removeLabel: { default: "Remove tag" },
  6700. tag: { default: "span" },
  6701. title: { default: void 0 },
  6702. variant: { default: "secondary" }
  6703. },
  6704. emits: ["remove"],
  6705. setup(e, { emit: t }) {
  6706. const o = e, a = t, l = Me(), n = _e(() => o.id), i = r(() => o.disabled), s = r(() => o.noRemove), u = r(() => o.pill), d = w(
  6707. () => {
  6708. var p;
  6709. return ((((p = l.default) == null ? void 0 : p.call(l, {})[0].children) ?? "").toString() || o.title) ?? "";
  6710. }
  6711. ), f = E(() => `${n.value}taglabel__`), g = w(() => ({
  6712. [`text-bg-${o.variant}`]: o.variant !== null,
  6713. "rounded-pill": u.value,
  6714. disabled: i.value
  6715. }));
  6716. return (p, y) => (m(), x(se(p.tag), {
  6717. id: v(n),
  6718. title: d.value,
  6719. class: j(["badge b-form-tag d-inline-flex align-items-center mw-100", g.value]),
  6720. "aria-labelledby": f.value
  6721. }, {
  6722. default: R(() => [
  6723. ee("span", {
  6724. id: f.value,
  6725. class: "b-form-tag-content flex-grow-1 text-truncate"
  6726. }, [
  6727. A(p.$slots, "default", {}, () => [
  6728. ne(Z(d.value), 1)
  6729. ])
  6730. ], 8, Uu),
  6731. !v(i) && !v(s) ? (m(), x(Dt, {
  6732. key: 0,
  6733. "aria-keyshortcuts": "Delete",
  6734. "aria-label": p.removeLabel,
  6735. class: "b-form-tag-remove",
  6736. "aria-describedby": f.value,
  6737. "aria-controls": p.id,
  6738. onClick: y[0] || (y[0] = (b) => a("remove", d.value))
  6739. }, null, 8, ["aria-label", "aria-describedby", "aria-controls"])) : J("", !0)
  6740. ]),
  6741. _: 3
  6742. }, 8, ["id", "title", "class", "aria-labelledby"]));
  6743. }
  6744. }), Xu = ["id"], Ku = ["id", "for", "aria-live"], Yu = ["id", "aria-live"], Zu = ["id"], Ju = ["aria-controls"], Qu = {
  6745. role: "group",
  6746. class: "d-flex"
  6747. }, ed = ["id", "disabled", "value", "type", "placeholder", "form", "required", "aria-required"], td = ["disabled"], ad = {
  6748. "aria-live": "polite",
  6749. "aria-atomic": "true"
  6750. }, od = {
  6751. key: 0,
  6752. class: "d-block invalid-feedback"
  6753. }, ld = {
  6754. key: 1,
  6755. class: "form-text text-body-secondary"
  6756. }, nd = {
  6757. key: 2,
  6758. class: "form-text text-body-secondary"
  6759. }, sd = ["name", "value"], id = /* @__PURE__ */ q({
  6760. __name: "BFormTags",
  6761. props: {
  6762. addButtonText: { default: "Add" },
  6763. addButtonVariant: { default: "outline-secondary" },
  6764. addOnChange: { type: [String, Boolean], default: !1 },
  6765. autofocus: { type: [String, Boolean], default: !1 },
  6766. disabled: { type: [String, Boolean], default: !1 },
  6767. duplicateTagText: { default: "Duplicate tag(s)" },
  6768. form: { default: void 0 },
  6769. inputAttrs: { default: void 0 },
  6770. inputClass: { default: void 0 },
  6771. inputId: { default: void 0 },
  6772. inputType: { default: "text" },
  6773. invalidTagText: { default: "Invalid tag(s)" },
  6774. limit: { default: void 0 },
  6775. limitTagsText: { default: "Tag limit reached" },
  6776. modelValue: { default: () => [] },
  6777. name: { default: void 0 },
  6778. noAddOnEnter: { type: [String, Boolean], default: !1 },
  6779. noOuterFocus: { type: [String, Boolean], default: !1 },
  6780. noTagRemove: { type: [String, Boolean], default: !1 },
  6781. placeholder: { default: "Add tag..." },
  6782. removeOnDelete: { type: [String, Boolean], default: !1 },
  6783. required: { type: [String, Boolean], default: !1 },
  6784. separator: { default: void 0 },
  6785. size: { default: "md" },
  6786. state: { type: [String, Boolean, null], default: null },
  6787. tagClass: { default: void 0 },
  6788. tagPills: { type: [String, Boolean], default: !1 },
  6789. tagRemoveLabel: { default: void 0 },
  6790. tagRemovedLabel: { default: "Tag removed" },
  6791. tagValidator: { type: Function, default: () => !0 },
  6792. tagVariant: { default: "secondary" }
  6793. },
  6794. emits: ["blur", "focus", "focusin", "focusout", "input", "tag-state", "update:modelValue"],
  6795. setup(e, { expose: t, emit: o }) {
  6796. const a = e, l = o, n = ke(a, "modelValue", l), i = _e(), s = r(() => a.addOnChange), u = r(() => a.autofocus), d = r(() => a.disabled), f = r(() => a.noAddOnEnter), g = r(() => a.noOuterFocus), p = r(() => a.noTagRemove), y = r(() => a.removeOnDelete), b = r(() => a.required), V = r(() => a.state), C = r(() => a.tagPills), c = he(() => a.limit ?? NaN), h = wt(V), B = W(null), { focused: _ } = xe(B, {
  6797. initialValue: u.value
  6798. }), k = E(() => a.inputId || `${i.value}input__`), S = W(n.value), $ = W(""), I = W(n.value.length > 0), T = W(""), O = W([]), F = W([]), K = W([]), z = w(() => [
  6799. h.value,
  6800. {
  6801. [`form-control-${a.size}`]: a.size !== "md",
  6802. disabled: d.value,
  6803. focus: _.value
  6804. }
  6805. ]), P = w(() => S.value.includes($.value)), D = w(
  6806. () => $.value === "" ? !1 : !a.tagValidator($.value)
  6807. ), ae = E(() => S.value.length === c.value), le = E(() => !D.value && !P.value), ve = w(() => ({
  6808. addButtonText: a.addButtonText,
  6809. addButtonVariant: a.addButtonVariant,
  6810. addTag: U,
  6811. disableAddButton: le.value,
  6812. disabled: d.value,
  6813. duplicateTagText: a.duplicateTagText,
  6814. duplicateTags: K.value,
  6815. form: a.form,
  6816. inputAttrs: {
  6817. ...a.inputAttrs,
  6818. disabled: d.value,
  6819. form: a.form,
  6820. id: k,
  6821. value: $
  6822. },
  6823. inputHandlers: {
  6824. input: fe,
  6825. keydown: we,
  6826. change: $e
  6827. },
  6828. inputId: k,
  6829. inputType: a.inputType,
  6830. invalidTagText: a.invalidTagText,
  6831. invalidTags: F.value,
  6832. isDuplicate: P.value,
  6833. isInvalid: D.value,
  6834. isLimitReached: ae.value,
  6835. limitTagsText: a.limitTagsText,
  6836. limit: c.value,
  6837. noTagRemove: p.value,
  6838. placeholder: a.placeholder,
  6839. removeTag: H,
  6840. required: b.value,
  6841. separator: a.separator,
  6842. size: a.size,
  6843. state: V.value,
  6844. tagClass: a.tagClass,
  6845. tagPills: C.value,
  6846. tagRemoveLabel: a.tagRemoveLabel,
  6847. tagVariant: a.tagVariant,
  6848. tags: S.value
  6849. }));
  6850. ue(n, (G) => {
  6851. S.value = G;
  6852. });
  6853. const Be = (G) => {
  6854. if (d.value) {
  6855. G.target.blur();
  6856. return;
  6857. }
  6858. l("focusin", G);
  6859. }, Ve = (G) => {
  6860. d.value || g.value || (_.value = !0, l("focus", G));
  6861. }, oe = (G) => {
  6862. _.value = !1, l("blur", G);
  6863. }, fe = (G) => {
  6864. var te, be;
  6865. const X = typeof G == "string" ? G : G.target.value;
  6866. if (I.value = !1, (te = a.separator) != null && te.includes(X.charAt(0)) && X.length > 0) {
  6867. B.value && (B.value.value = "");
  6868. return;
  6869. }
  6870. if ($.value = X, (be = a.separator) != null && be.includes(X.charAt(X.length - 1))) {
  6871. U(X.slice(0, X.length - 1));
  6872. return;
  6873. }
  6874. O.value = a.tagValidator(X) && !P.value ? [X] : [], F.value = a.tagValidator(X) ? [] : [X], K.value = P.value ? [X] : [], l("tag-state", O.value, F.value, K.value);
  6875. }, $e = (G) => {
  6876. s.value && (fe(G), P.value || U($.value));
  6877. }, we = (G) => {
  6878. if (G.key === "Enter" && !f.value) {
  6879. U($.value);
  6880. return;
  6881. }
  6882. (G.key === "Backspace" || G.key === "Delete") && y.value && $.value === "" && I.value && S.value.length > 0 ? H(S.value[S.value.length - 1]) : I.value = !0;
  6883. };
  6884. qe(we, { target: B });
  6885. const M = w(() => {
  6886. if (a.separator)
  6887. return typeof a.separator == "string" ? a.separator : a.separator.join("");
  6888. }), L = w(() => {
  6889. if (M.value)
  6890. return new RegExp(`[${os(M.value)}]+`);
  6891. }), U = (G) => {
  6892. G = (G ?? $.value).trim();
  6893. const X = L.value ? G.split(L.value).map((me) => me.trim()) : [G], te = [];
  6894. for (const me of X)
  6895. if (!(me === "" || P.value || !a.tagValidator(me))) {
  6896. if (c.value && ae.value)
  6897. break;
  6898. te.push(me);
  6899. }
  6900. const be = [...n.value, ...te];
  6901. $.value = "", I.value = !0, n.value = be, l("input", be), _.value = !0;
  6902. }, H = (G) => {
  6903. const X = S.value.indexOf((G == null ? void 0 : G.toString()) ?? "");
  6904. T.value = S.value.splice(X, 1).toString(), n.value = S.value;
  6905. };
  6906. return t({
  6907. blur: () => {
  6908. _.value = !1;
  6909. },
  6910. element: B,
  6911. focus: () => {
  6912. _.value = !0;
  6913. }
  6914. }), (G, X) => (m(), N("div", {
  6915. id: v(i),
  6916. class: j(["b-form-tags form-control h-auto", z.value]),
  6917. role: "group",
  6918. tabindex: "-1",
  6919. onFocusin: Be,
  6920. onFocusout: X[1] || (X[1] = (te) => l("focusout", te))
  6921. }, [
  6922. ee("output", {
  6923. id: `${v(i)}selected_tags__`,
  6924. class: "visually-hidden",
  6925. for: k.value,
  6926. "aria-live": v(_) ? "polite" : "off",
  6927. "aria-atomic": "true",
  6928. "aria-relevant": "additions text"
  6929. }, Z(S.value.join(", ")), 9, Ku),
  6930. ee("div", {
  6931. id: `${v(i)}removed_tags__`,
  6932. role: "status",
  6933. "aria-live": v(_) ? "assertive" : "off",
  6934. "aria-atomic": "true",
  6935. class: "visually-hidden"
  6936. }, " (" + Z(G.tagRemovedLabel) + ") " + Z(T.value), 9, Yu),
  6937. A(G.$slots, "default", Se(Ee(ve.value)), () => [
  6938. ee("ul", {
  6939. id: `${v(i)}tag_list__`,
  6940. class: "b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center"
  6941. }, [
  6942. (m(!0), N(ge, null, Te(S.value, (te, be) => A(G.$slots, "tag", {
  6943. key: be,
  6944. tag: te,
  6945. tagClass: G.tagClass,
  6946. tagVariant: G.tagVariant,
  6947. tagPills: v(C),
  6948. removeTag: H
  6949. }, () => [
  6950. (m(), x(wn, {
  6951. key: te,
  6952. class: j(G.tagClass),
  6953. tag: "li",
  6954. variant: G.tagVariant,
  6955. pill: G.tagPills,
  6956. onRemove: H
  6957. }, {
  6958. default: R(() => [
  6959. ne(Z(te), 1)
  6960. ]),
  6961. _: 2
  6962. }, 1032, ["class", "variant", "pill"]))
  6963. ])), 128)),
  6964. ee("li", {
  6965. role: "none",
  6966. "aria-live": "off",
  6967. class: "b-from-tags-field flex-grow-1",
  6968. "aria-controls": `${v(i)}tag_list__`
  6969. }, [
  6970. ee("div", Qu, [
  6971. ee("input", Q({
  6972. id: k.value,
  6973. ref_key: "input",
  6974. ref: B,
  6975. disabled: v(d),
  6976. value: $.value,
  6977. type: G.inputType,
  6978. placeholder: G.placeholder,
  6979. class: "b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",
  6980. style: { outline: "currentcolor none 0px", "min-width": "5rem" }
  6981. }, G.inputAttrs, {
  6982. form: G.form,
  6983. required: v(b) || void 0,
  6984. "aria-required": v(b) || void 0,
  6985. onInput: fe,
  6986. onChange: $e,
  6987. onFocus: Ve,
  6988. onBlur: oe
  6989. }), null, 16, ed),
  6990. le.value ? (m(), N("button", {
  6991. key: 0,
  6992. type: "button",
  6993. class: j(["btn b-form-tags-button py-0", [
  6994. G.inputClass,
  6995. {
  6996. [`btn-${G.addButtonVariant}`]: G.addButtonVariant !== null,
  6997. "disabled invisible": $.value.length === 0
  6998. }
  6999. ]]),
  7000. style: { "font-size": "90%" },
  7001. disabled: v(d) || $.value.length === 0 || ae.value,
  7002. onClick: X[0] || (X[0] = (te) => U($.value))
  7003. }, [
  7004. A(G.$slots, "add-button-text", {}, () => [
  7005. ne(Z(G.addButtonText), 1)
  7006. ])
  7007. ], 10, td)) : J("", !0)
  7008. ])
  7009. ], 8, Ju)
  7010. ], 8, Zu),
  7011. ee("div", ad, [
  7012. D.value ? (m(), N("div", od, Z(G.invalidTagText) + ": " + Z($.value), 1)) : J("", !0),
  7013. P.value ? (m(), N("small", ld, Z(G.duplicateTagText) + ": " + Z($.value), 1)) : J("", !0),
  7014. S.value.length === G.limit ? (m(), N("small", nd, "Tag limit reached")) : J("", !0)
  7015. ])
  7016. ]),
  7017. G.name ? (m(!0), N(ge, { key: 0 }, Te(S.value, (te, be) => (m(), N("input", {
  7018. key: be,
  7019. type: "hidden",
  7020. name: G.name,
  7021. value: te
  7022. }, null, 8, sd))), 128)) : J("", !0)
  7023. ], 42, Xu));
  7024. }
  7025. }), rd = ["id", "name", "form", "value", "disabled", "placeholder", "required", "autocomplete", "readonly", "aria-required", "aria-invalid", "rows", "wrap"], ud = /* @__PURE__ */ q({
  7026. __name: "BFormTextarea",
  7027. props: {
  7028. noResize: { type: [String, Boolean], default: !1 },
  7029. rows: { default: 2 },
  7030. wrap: { default: "soft" },
  7031. ariaInvalid: { type: [String, Boolean], default: void 0 },
  7032. autocomplete: { default: void 0 },
  7033. autofocus: { type: [String, Boolean], default: !1 },
  7034. disabled: { type: [String, Boolean], default: !1 },
  7035. form: { default: void 0 },
  7036. debounce: { default: 0 },
  7037. debounceMaxWait: { default: NaN },
  7038. formatter: { type: Function, default: void 0 },
  7039. id: { default: void 0 },
  7040. lazy: { type: [String, Boolean], default: !1 },
  7041. lazyFormatter: { type: [String, Boolean], default: !1 },
  7042. list: { default: void 0 },
  7043. modelValue: { default: "" },
  7044. name: { default: void 0 },
  7045. number: { type: [String, Boolean], default: !1 },
  7046. placeholder: { default: void 0 },
  7047. plaintext: { type: [String, Boolean], default: !1 },
  7048. readonly: { type: [String, Boolean], default: !1 },
  7049. required: { type: [String, Boolean], default: !1 },
  7050. size: { default: void 0 },
  7051. state: { type: [String, Boolean, null], default: null },
  7052. trim: { type: [String, Boolean], default: !1 }
  7053. },
  7054. emits: ["blur", "change", "input", "update:modelValue"],
  7055. setup(e, { expose: t, emit: o }) {
  7056. const a = e, l = o, { input: n, computedId: i, computedAriaInvalid: s, onInput: u, onChange: d, onBlur: f, focus: g, blur: p } = ql(a, l), y = r(() => a.disabled), b = r(() => a.required), V = r(() => a.readonly), C = r(() => a.plaintext), c = r(() => a.noResize), h = r(() => a.state), B = wt(h), _ = w(() => [
  7057. B.value,
  7058. {
  7059. "form-control": !a.plaintext,
  7060. "form-control-plaintext": a.plaintext,
  7061. [`form-control-${a.size}`]: !!a.size
  7062. }
  7063. ]), k = w(() => ({
  7064. resize: c.value ? "none" : void 0
  7065. }));
  7066. return t({
  7067. blur: p,
  7068. element: n,
  7069. focus: g
  7070. }), (S, $) => (m(), N("textarea", {
  7071. id: v(i),
  7072. ref_key: "input",
  7073. ref: n,
  7074. class: j(_.value),
  7075. name: S.name || void 0,
  7076. form: S.form || void 0,
  7077. value: S.modelValue,
  7078. disabled: v(y),
  7079. placeholder: S.placeholder,
  7080. required: v(b) || void 0,
  7081. autocomplete: S.autocomplete || void 0,
  7082. readonly: v(V) || v(C),
  7083. "aria-required": S.required || void 0,
  7084. "aria-invalid": v(s),
  7085. rows: S.rows,
  7086. style: ze(k.value),
  7087. wrap: S.wrap || void 0,
  7088. onInput: $[0] || ($[0] = (I) => v(u)(I)),
  7089. onChange: $[1] || ($[1] = (I) => v(d)(I)),
  7090. onBlur: $[2] || ($[2] = (I) => v(f)(I))
  7091. }, null, 46, rd));
  7092. }
  7093. }), dd = {
  7094. key: 0,
  7095. class: "input-group-text"
  7096. }, cd = ["innerHTML"], fd = { key: 1 }, vd = {
  7097. key: 0,
  7098. class: "input-group-text"
  7099. }, pd = ["innerHTML"], md = { key: 1 }, gd = /* @__PURE__ */ q({
  7100. __name: "BInputGroup",
  7101. props: {
  7102. append: { default: void 0 },
  7103. appendHtml: { default: void 0 },
  7104. id: { default: void 0 },
  7105. prepend: { default: void 0 },
  7106. prependHtml: { default: void 0 },
  7107. size: { default: "md" },
  7108. tag: { default: "div" }
  7109. },
  7110. setup(e) {
  7111. const t = e, o = w(() => ({
  7112. [`input-group-${t.size}`]: t.size !== "md"
  7113. })), a = E(() => !!t.append || !!t.appendHtml), l = E(() => !!t.prepend || !!t.prependHtml);
  7114. return (n, i) => (m(), x(se(n.tag), {
  7115. id: n.id,
  7116. class: j(["input-group", o.value]),
  7117. role: "group"
  7118. }, {
  7119. default: R(() => [
  7120. A(n.$slots, "prepend", {}, () => [
  7121. l.value ? (m(), N("span", dd, [
  7122. n.prependHtml ? (m(), N("span", {
  7123. key: 0,
  7124. innerHTML: n.prependHtml
  7125. }, null, 8, cd)) : (m(), N("span", fd, Z(n.prepend), 1))
  7126. ])) : J("", !0)
  7127. ]),
  7128. A(n.$slots, "default"),
  7129. A(n.$slots, "append", {}, () => [
  7130. a.value ? (m(), N("span", vd, [
  7131. n.appendHtml ? (m(), N("span", {
  7132. key: 0,
  7133. innerHTML: n.appendHtml
  7134. }, null, 8, pd)) : (m(), N("span", md, Z(n.append), 1))
  7135. ])) : J("", !0)
  7136. ])
  7137. ]),
  7138. _: 3
  7139. }, 8, ["id", "class"]));
  7140. }
  7141. }), kn = /* @__PURE__ */ q({
  7142. __name: "BInputGroupText",
  7143. props: {
  7144. tag: { default: "div" },
  7145. text: { default: void 0 }
  7146. },
  7147. setup(e) {
  7148. return (t, o) => (m(), x(se(t.tag), { class: "input-group-text" }, {
  7149. default: R(() => [
  7150. A(t.$slots, "default", {}, () => [
  7151. ne(Z(t.text), 1)
  7152. ])
  7153. ]),
  7154. _: 3
  7155. }));
  7156. }
  7157. }), mo = /* @__PURE__ */ q({
  7158. __name: "BInputGroupAddon",
  7159. props: {
  7160. isText: { type: [String, Boolean], default: !1 }
  7161. },
  7162. setup(e) {
  7163. const t = e, o = r(() => t.isText);
  7164. return (a, l) => v(o) ? (m(), x(kn, { key: 0 }, {
  7165. default: R(() => [
  7166. A(a.$slots, "default")
  7167. ]),
  7168. _: 3
  7169. })) : A(a.$slots, "default", { key: 1 });
  7170. }
  7171. }), bd = /* @__PURE__ */ q({
  7172. __name: "BInputGroupAppend",
  7173. props: {
  7174. isText: { type: [String, Boolean], default: !1 }
  7175. },
  7176. setup(e) {
  7177. return (t, o) => (m(), x(mo, Se(Ee(t.$props)), {
  7178. default: R(() => [
  7179. A(t.$slots, "default")
  7180. ]),
  7181. _: 3
  7182. }, 16));
  7183. }
  7184. }), yd = /* @__PURE__ */ q({
  7185. __name: "BInputGroupPrepend",
  7186. props: {
  7187. isText: { type: [String, Boolean], default: !1 }
  7188. },
  7189. setup(e) {
  7190. return (t, o) => (m(), x(mo, Se(Ee(t.$props)), {
  7191. default: R(() => [
  7192. A(t.$slots, "default")
  7193. ]),
  7194. _: 3
  7195. }, 16));
  7196. }
  7197. }), hd = /* @__PURE__ */ q({
  7198. __name: "BListGroup",
  7199. props: {
  7200. flush: { type: [String, Boolean], default: !1 },
  7201. horizontal: { type: [String, Boolean], default: !1 },
  7202. numbered: { type: [String, Boolean], default: !1 },
  7203. tag: { default: "div" }
  7204. },
  7205. setup(e) {
  7206. const t = e, o = r(() => t.flush), a = r(() => t.numbered), l = r(() => t.horizontal), n = w(() => {
  7207. const s = o.value ? !1 : l.value;
  7208. return {
  7209. "list-group-flush": o.value,
  7210. "list-group-horizontal": s === !0,
  7211. [`list-group-horizontal-${s}`]: typeof s == "string",
  7212. "list-group-numbered": a.value
  7213. };
  7214. }), i = E(() => a.value === !0 ? "ol" : t.tag);
  7215. return at(Ql, {
  7216. numbered: a
  7217. }), (s, u) => (m(), x(se(i.value), {
  7218. class: j(["list-group", n.value])
  7219. }, {
  7220. default: R(() => [
  7221. A(s.$slots, "default")
  7222. ]),
  7223. _: 3
  7224. }, 8, ["class"]));
  7225. }
  7226. }), Bd = /* @__PURE__ */ q({
  7227. __name: "BListGroupItem",
  7228. props: {
  7229. action: { type: [String, Boolean], default: !1 },
  7230. button: { type: [String, Boolean], default: !1 },
  7231. tag: { default: "div" },
  7232. active: { type: [String, Boolean], default: !1 },
  7233. activeClass: { default: void 0 },
  7234. append: { type: [String, Boolean], default: void 0 },
  7235. disabled: { type: [String, Boolean], default: void 0 },
  7236. exactActiveClass: { default: void 0 },
  7237. href: { default: void 0 },
  7238. icon: { type: [String, Boolean], default: void 0 },
  7239. opacity: { default: void 0 },
  7240. opacityHover: { default: void 0 },
  7241. rel: { default: void 0 },
  7242. replace: { type: [String, Boolean], default: void 0 },
  7243. routerComponentName: { default: void 0 },
  7244. target: { default: void 0 },
  7245. to: { default: void 0 },
  7246. underlineOffset: { default: void 0 },
  7247. underlineOffsetHover: { default: void 0 },
  7248. underlineOpacity: { default: void 0 },
  7249. underlineOpacityHover: { default: void 0 },
  7250. underlineVariant: { default: void 0 },
  7251. variant: { default: void 0 }
  7252. },
  7253. setup(e) {
  7254. const t = e, o = Kt(), a = Ge(Ql, null), l = r(() => t.action), n = r(() => t.active), i = r(() => t.button), s = r(() => t.disabled), { computedLink: u } = Ct(t), d = E(() => !i.value && u.value), f = E(
  7255. () => a != null && a.numbered.value ? "li" : i.value ? "button" : d.value ? rt : t.tag
  7256. ), g = w(
  7257. () => l.value || d.value || i.value || ["a", "router-link", "button", "b-link"].includes(t.tag)
  7258. ), p = w(() => ({
  7259. [`list-group-item-${t.variant}`]: t.variant !== null && t.variant !== void 0,
  7260. "list-group-item-action": g.value,
  7261. active: n.value,
  7262. disabled: s.value
  7263. })), y = w(() => {
  7264. const b = {};
  7265. return i.value && ((!o || !o.type) && (b.type = "button"), s.value && (b.disabled = !0)), b;
  7266. });
  7267. return (b, V) => (m(), x(se(f.value), Q({
  7268. class: ["list-group-item", p.value],
  7269. "aria-current": v(n) ? !0 : void 0,
  7270. "aria-disabled": v(s) ? !0 : void 0,
  7271. target: d.value ? b.target : void 0,
  7272. href: v(i) ? void 0 : b.href,
  7273. to: v(i) ? void 0 : b.to
  7274. }, y.value), {
  7275. default: R(() => [
  7276. A(b.$slots, "default")
  7277. ]),
  7278. _: 3
  7279. }, 16, ["class", "aria-current", "aria-disabled", "target", "href", "to"]));
  7280. }
  7281. }), Ta = /* @__PURE__ */ q({
  7282. __name: "BOverlay",
  7283. props: {
  7284. bgColor: { default: void 0 },
  7285. blur: { default: "2px" },
  7286. fixed: { type: [String, Boolean], default: !1 },
  7287. noCenter: { type: [String, Boolean], default: !1 },
  7288. noFade: { type: [String, Boolean], default: !1 },
  7289. noSpinner: { type: [String, Boolean], default: !1 },
  7290. noWrap: { type: [String, Boolean], default: !1 },
  7291. opacity: { default: 0.85 },
  7292. overlayTag: { default: "div" },
  7293. show: { type: [String, Boolean], default: !1 },
  7294. spinnerSmall: { type: [String, Boolean], default: !1 },
  7295. spinnerType: { default: "border" },
  7296. spinnerVariant: { default: void 0 },
  7297. variant: { default: "light" },
  7298. wrapTag: { default: "div" },
  7299. zIndex: { default: 10 },
  7300. rounded: { type: [String, Number, Boolean], default: !1 },
  7301. roundedTop: { type: [String, Number, Boolean], default: void 0 },
  7302. roundedBottom: { type: [String, Number, Boolean], default: void 0 },
  7303. roundedStart: { type: [String, Number, Boolean], default: void 0 },
  7304. roundedEnd: { type: [String, Number, Boolean], default: void 0 }
  7305. },
  7306. emits: ["click", "hidden", "shown"],
  7307. setup(e, { emit: t }) {
  7308. const o = e, a = t, l = { top: 0, left: 0, bottom: 0, right: 0 }, n = r(() => o.fixed), i = r(() => o.noSpinner), s = r(() => o.noCenter), u = r(() => o.noWrap), d = r(() => o.show), f = r(() => o.spinnerSmall), g = r(() => o.rounded), p = r(() => o.roundedTop), y = r(() => o.roundedBottom), b = r(() => o.roundedStart), V = r(() => o.roundedEnd), C = io(() => ({
  7309. rounded: g.value,
  7310. roundedTop: p.value,
  7311. roundedBottom: y.value,
  7312. roundedStart: b.value,
  7313. roundedEnd: V.value
  7314. })), c = E(
  7315. () => o.variant !== null && !o.bgColor ? `bg-${o.variant}` : ""
  7316. ), h = E(() => d.value ? !0 : null), B = w(() => ({
  7317. type: o.spinnerType,
  7318. variant: o.spinnerVariant,
  7319. small: f.value
  7320. })), _ = w(() => ({
  7321. ...l,
  7322. zIndex: o.zIndex || 10
  7323. })), k = w(() => ({
  7324. "position-absolute": !u.value || !n.value,
  7325. "position-fixed": u.value && n.value
  7326. })), S = w(() => [c.value, C.value]), $ = w(() => ({
  7327. ...l,
  7328. opacity: o.opacity,
  7329. backgroundColor: o.bgColor || void 0,
  7330. backdropFilter: o.blur ? `blur(${o.blur})` : void 0
  7331. })), I = w(
  7332. () => s.value ? l : {
  7333. top: "50%",
  7334. left: "50%",
  7335. transform: "translateX(-50%) translateY(-50%)"
  7336. }
  7337. );
  7338. return (T, O) => (m(), x(se(T.wrapTag), {
  7339. class: "b-overlay-wrap position-relative",
  7340. "aria-busy": h.value
  7341. }, {
  7342. default: R(() => [
  7343. A(T.$slots, "default"),
  7344. ye(Mt, {
  7345. "no-fade": T.noFade,
  7346. "trans-props": { enterToClass: "show" },
  7347. name: "fade",
  7348. onOnAfterEnter: O[1] || (O[1] = (F) => a("shown")),
  7349. onOnAfterLeave: O[2] || (O[2] = (F) => a("hidden"))
  7350. }, {
  7351. default: R(() => [
  7352. v(d) ? (m(), x(se(T.overlayTag), {
  7353. key: 0,
  7354. class: j(["b-overlay", k.value]),
  7355. style: ze(_.value),
  7356. onClick: O[0] || (O[0] = (F) => a("click", F))
  7357. }, {
  7358. default: R(() => [
  7359. ee("div", {
  7360. class: j(["position-absolute", S.value]),
  7361. style: ze($.value)
  7362. }, null, 6),
  7363. ee("div", {
  7364. class: "position-absolute",
  7365. style: ze(I.value)
  7366. }, [
  7367. A(T.$slots, "overlay", Se(Ee(B.value)), () => [
  7368. v(i) ? J("", !0) : (m(), x(ka, Se(Q({ key: 0 }, B.value)), null, 16))
  7369. ])
  7370. ], 4)
  7371. ]),
  7372. _: 3
  7373. }, 8, ["class", "style"])) : J("", !0)
  7374. ]),
  7375. _: 3
  7376. }, 8, ["no-fade"])
  7377. ]),
  7378. _: 3
  7379. }, 8, ["aria-busy"]));
  7380. }
  7381. }), Sd = ["id", "aria-labelledby", "aria-describedby"], Cd = ["id"], Wo = 1056, wd = /* @__PURE__ */ q({
  7382. inheritAttrs: !1,
  7383. __name: "BModal",
  7384. props: {
  7385. autoFocus: { type: [String, Boolean], default: !0 },
  7386. autoFocusButton: { default: void 0 },
  7387. backdropVariant: { default: void 0 },
  7388. bodyBgVariant: { default: null },
  7389. bodyClass: { default: void 0 },
  7390. bodyScrolling: { type: [String, Boolean], default: !1 },
  7391. bodyTextVariant: { default: null },
  7392. bodyVariant: { default: null },
  7393. busy: { type: [String, Boolean], default: !1 },
  7394. buttonSize: { default: "md" },
  7395. cancelDisabled: { type: [String, Boolean], default: !1 },
  7396. cancelTitle: { default: "Cancel" },
  7397. cancelVariant: { default: "secondary" },
  7398. centered: { type: [String, Boolean], default: !1 },
  7399. contentClass: { default: void 0 },
  7400. dialogClass: { default: void 0 },
  7401. footerBgVariant: { default: null },
  7402. footerBorderVariant: { default: null },
  7403. footerClass: { default: void 0 },
  7404. footerTextVariant: { default: null },
  7405. footerVariant: { default: null },
  7406. fullscreen: { type: [String, Boolean], default: !1 },
  7407. headerBgVariant: { default: null },
  7408. headerBorderVariant: { default: null },
  7409. headerClass: { default: void 0 },
  7410. headerCloseClass: { default: void 0 },
  7411. headerCloseLabel: { default: "Close" },
  7412. headerCloseVariant: { default: "secondary" },
  7413. headerTextVariant: { default: null },
  7414. headerVariant: { default: null },
  7415. hideBackdrop: { type: [String, Boolean], default: !1 },
  7416. hideFooter: { type: [String, Boolean], default: !1 },
  7417. hideHeader: { type: [String, Boolean], default: !1 },
  7418. hideHeaderClose: { type: [String, Boolean], default: !1 },
  7419. id: { default: void 0 },
  7420. lazy: { type: [String, Boolean], default: !1 },
  7421. modalClass: { default: void 0 },
  7422. modelValue: { type: [String, Boolean], default: !1 },
  7423. noCloseOnBackdrop: { type: [String, Boolean], default: !1 },
  7424. noCloseOnEsc: { type: [String, Boolean], default: !1 },
  7425. noFade: { type: [String, Boolean], default: !1 },
  7426. okDisabled: { type: [String, Boolean], default: !1 },
  7427. okOnly: { type: [String, Boolean], default: !1 },
  7428. okTitle: { default: "Ok" },
  7429. okVariant: { default: "primary" },
  7430. scrollable: { type: [String, Boolean], default: !1 },
  7431. size: { default: "md" },
  7432. teleportDisabled: { type: [String, Boolean], default: !1 },
  7433. teleportTo: { default: "body" },
  7434. title: { default: void 0 },
  7435. titleClass: { default: void 0 },
  7436. titleSrOnly: { type: [String, Boolean], default: !1 },
  7437. titleTag: { default: "h5" }
  7438. },
  7439. emits: ["cancel", "close", "hidden", "hide", "hide-prevented", "ok", "show", "show-prevented", "shown", "update:modelValue"],
  7440. setup(e, { expose: t, emit: o }) {
  7441. const a = e, l = o, n = Me(), i = _e(() => a.id, "modal"), s = ke(a, "modelValue", l, { passive: !0 }), u = r(() => a.busy), d = r(() => a.lazy), f = r(() => a.cancelDisabled), g = r(() => a.centered), p = r(() => a.hideBackdrop), y = r(() => a.hideFooter), b = r(() => a.hideHeader), V = r(() => a.hideHeaderClose), C = r(s), c = r(() => a.noCloseOnBackdrop), h = r(() => a.noCloseOnEsc), B = r(() => a.noFade), _ = r(() => a.autoFocus), k = r(() => a.okDisabled), S = r(() => a.okOnly), $ = r(() => a.scrollable), I = r(() => a.titleSrOnly), T = r(() => a.teleportDisabled), O = r(() => a.bodyScrolling), F = r(() => a.fullscreen), K = W(null), z = W(null), P = W(null), D = W(null), ae = W(C.value), le = W(!1);
  7442. qe(
  7443. "Escape",
  7444. () => {
  7445. Y("esc");
  7446. },
  7447. { target: K }
  7448. ), Wl(C, O);
  7449. const { focused: ve } = xe(K, {
  7450. initialValue: C.value && a.autoFocusButton === void 0
  7451. }), { focused: Be } = xe(z, {
  7452. initialValue: C.value && a.autoFocusButton === "ok"
  7453. }), { focused: Ve } = xe(P, {
  7454. initialValue: C.value && a.autoFocusButton === "cancel"
  7455. }), { focused: oe } = xe(D, {
  7456. initialValue: C.value && a.autoFocusButton === "close"
  7457. }), fe = w(() => [
  7458. a.modalClass,
  7459. {
  7460. fade: !B.value,
  7461. show: ae.value
  7462. }
  7463. ]), $e = E(
  7464. () => d.value === !1 || d.value === !0 && le.value === !0 || d.value === !0 && C.value === !0
  7465. ), we = E(
  7466. () => a.backdropVariant !== void 0 ? a.backdropVariant : p.value ? "transparent" : "dark"
  7467. ), M = E(() => !Ie(n["header-close"])), L = w(() => [
  7468. a.dialogClass,
  7469. {
  7470. "modal-fullscreen": F.value === !0,
  7471. [`modal-fullscreen-${F.value}-down`]: typeof F.value == "string",
  7472. [`modal-${a.size}`]: a.size !== "md",
  7473. "modal-dialog-centered": g.value,
  7474. "modal-dialog-scrollable": $.value
  7475. }
  7476. ]), U = Qe(() => ({
  7477. bgVariant: a.bodyBgVariant,
  7478. textVariant: a.bodyTextVariant,
  7479. variant: a.bodyVariant
  7480. })), H = w(() => [a.bodyClass, U.value]), G = Qe(() => ({
  7481. bgVariant: a.headerBgVariant,
  7482. textVariant: a.headerTextVariant,
  7483. variant: a.headerVariant
  7484. })), X = w(() => [
  7485. a.headerClass,
  7486. G.value,
  7487. {
  7488. [`border-${a.headerBorderVariant}`]: a.headerBorderVariant !== null
  7489. }
  7490. ]), te = w(() => ({
  7491. variant: M.value ? a.headerCloseVariant : void 0,
  7492. class: a.headerCloseClass
  7493. })), be = Qe(() => ({
  7494. bgVariant: a.footerBgVariant,
  7495. textVariant: a.footerTextVariant,
  7496. variant: a.footerVariant
  7497. })), me = w(() => [
  7498. a.footerClass,
  7499. be.value,
  7500. {
  7501. [`border-${a.footerBorderVariant}`]: a.footerBorderVariant !== null
  7502. }
  7503. ]), de = w(() => [
  7504. a.titleClass,
  7505. {
  7506. "visually-hidden": I.value
  7507. }
  7508. ]), ie = E(() => f.value || u.value), ce = E(() => k.value || u.value), Ce = (pe, Pe = {}) => new Rt(pe, {
  7509. cancelable: !1,
  7510. target: K.value || null,
  7511. relatedTarget: null,
  7512. trigger: null,
  7513. ...Pe,
  7514. componentId: i.value
  7515. });
  7516. ue(C, (pe, Pe) => {
  7517. pe !== Pe && (pe === !0 ? re() : Y());
  7518. });
  7519. const Y = (pe = "") => {
  7520. if (pe === "backdrop" && c.value || pe === "esc" && h.value) {
  7521. l("hide-prevented");
  7522. return;
  7523. }
  7524. const Pe = Ce("hide", { cancelable: pe !== "", trigger: pe });
  7525. if (pe === "ok" && l(pe, Pe), pe === "cancel" && l(pe, Pe), pe === "close" && l(pe, Pe), l("hide", Pe), Pe.defaultPrevented) {
  7526. l("hide-prevented"), s.value || (s.value = !0);
  7527. return;
  7528. }
  7529. s.value && (s.value = !1);
  7530. }, re = () => {
  7531. const pe = Ce("show", { cancelable: !0 });
  7532. if (l("show", pe), pe.defaultPrevented) {
  7533. s.value && (s.value = !1), l("show-prevented");
  7534. return;
  7535. }
  7536. s.value || (s.value = !0);
  7537. }, Ae = () => {
  7538. _.value !== !1 && (a.autoFocusButton === "ok" ? Be.value = !0 : a.autoFocusButton === "close" ? oe.value = !0 : a.autoFocusButton === "cancel" ? Ve.value = !0 : ve.value = !0);
  7539. }, He = () => re(), Re = () => {
  7540. ae.value = !0, Ae(), l("shown", Ce("shown")), d.value === !0 && (le.value = !0);
  7541. }, kt = () => {
  7542. ae.value = !1;
  7543. }, Nn = () => {
  7544. l("hidden", Ce("hidden")), d.value === !0 && (le.value = !1);
  7545. }, { activePosition: In, activeModalCount: Ln } = Mi(ae), Fn = w(() => ({
  7546. // Make sure that newly opened modals have a higher z-index than currently active ones.
  7547. // All active modals have a z-index of ('defaultZIndex' - 'stackSize' - 'positionInStack').
  7548. //
  7549. // This means inactive modals will already be higher than active ones when opened.
  7550. "z-index": ae.value ? Wo - (Ln.value - In.value) : Wo
  7551. }));
  7552. Oe(K, "bv-toggle", () => {
  7553. C.value ? Y() : re();
  7554. });
  7555. const $t = da({
  7556. cancel: () => {
  7557. Y("cancel");
  7558. },
  7559. close: () => {
  7560. Y("close");
  7561. },
  7562. hide: Y,
  7563. ok: () => {
  7564. Y("ok");
  7565. },
  7566. visible: C
  7567. });
  7568. return t({
  7569. hide: Y,
  7570. id: i,
  7571. show: re
  7572. }), (pe, Pe) => (m(), x(zt, {
  7573. to: pe.teleportTo,
  7574. disabled: v(T)
  7575. }, [
  7576. ye(Mt, {
  7577. "no-fade": !0,
  7578. "trans-props": { enterToClass: "show" },
  7579. onBeforeEnter: He,
  7580. onAfterEnter: Re,
  7581. onLeave: kt,
  7582. onAfterLeave: Nn
  7583. }, {
  7584. default: R(() => [
  7585. ht(ee("div", Q({
  7586. id: v(i),
  7587. ref_key: "element",
  7588. ref: K,
  7589. class: ["modal", fe.value],
  7590. role: "dialog",
  7591. "aria-labelledby": v(b) ? void 0 : `${v(i)}-label`,
  7592. "aria-describedby": `${v(i)}-body`,
  7593. tabindex: "-1"
  7594. }, pe.$attrs, { style: Fn.value }), [
  7595. ee("div", {
  7596. class: j(["modal-dialog", L.value])
  7597. }, [
  7598. $e.value ? (m(), N("div", {
  7599. key: 0,
  7600. class: j(["modal-content", pe.contentClass])
  7601. }, [
  7602. v(b) ? J("", !0) : (m(), N("div", {
  7603. key: 0,
  7604. class: j(["modal-header", X.value])
  7605. }, [
  7606. A(pe.$slots, "header", Se(Ee($t)), () => [
  7607. (m(), x(se(pe.titleTag), {
  7608. id: `${v(i)}-label`,
  7609. class: j(["modal-title", de.value])
  7610. }, {
  7611. default: R(() => [
  7612. A(pe.$slots, "title", Se(Ee($t)), () => [
  7613. ne(Z(pe.title), 1)
  7614. ], !0)
  7615. ]),
  7616. _: 3
  7617. }, 8, ["id", "class"])),
  7618. v(V) ? J("", !0) : (m(), N(ge, { key: 0 }, [
  7619. M.value ? (m(), x(pt, Q({ key: 0 }, te.value, {
  7620. onClick: Pe[0] || (Pe[0] = (Jt) => Y("close"))
  7621. }), {
  7622. default: R(() => [
  7623. A(pe.$slots, "header-close", {}, void 0, !0)
  7624. ]),
  7625. _: 3
  7626. }, 16)) : (m(), x(Dt, Q({
  7627. key: 1,
  7628. "aria-label": pe.headerCloseLabel
  7629. }, te.value, {
  7630. onClick: Pe[1] || (Pe[1] = (Jt) => Y("close"))
  7631. }), null, 16, ["aria-label"]))
  7632. ], 64))
  7633. ], !0)
  7634. ], 2)),
  7635. ee("div", {
  7636. id: `${v(i)}-body`,
  7637. class: j(["modal-body", H.value])
  7638. }, [
  7639. A(pe.$slots, "default", Se(Ee($t)), void 0, !0)
  7640. ], 10, Cd),
  7641. v(y) ? J("", !0) : (m(), N("div", {
  7642. key: 1,
  7643. class: j(["modal-footer", me.value])
  7644. }, [
  7645. A(pe.$slots, "footer", Se(Ee($t)), () => [
  7646. A(pe.$slots, "cancel", Se(Ee($t)), () => [
  7647. v(S) ? J("", !0) : (m(), x(pt, {
  7648. key: 0,
  7649. ref_key: "cancelButton",
  7650. ref: P,
  7651. disabled: ie.value,
  7652. size: pe.buttonSize,
  7653. variant: pe.cancelVariant,
  7654. onClick: Pe[2] || (Pe[2] = (Jt) => Y("cancel"))
  7655. }, {
  7656. default: R(() => [
  7657. ne(Z(pe.cancelTitle), 1)
  7658. ]),
  7659. _: 1
  7660. }, 8, ["disabled", "size", "variant"]))
  7661. ], !0),
  7662. A(pe.$slots, "ok", Se(Ee($t)), () => [
  7663. ye(pt, {
  7664. ref_key: "okButton",
  7665. ref: z,
  7666. disabled: ce.value,
  7667. size: pe.buttonSize,
  7668. variant: pe.okVariant,
  7669. onClick: Pe[3] || (Pe[3] = (Jt) => Y("ok"))
  7670. }, {
  7671. default: R(() => [
  7672. ne(Z(pe.okTitle), 1)
  7673. ]),
  7674. _: 1
  7675. }, 8, ["disabled", "size", "variant"])
  7676. ], !0)
  7677. ], !0)
  7678. ], 2))
  7679. ], 2)) : J("", !0)
  7680. ], 2),
  7681. A(pe.$slots, "backdrop", {}, () => [
  7682. ye(Ta, {
  7683. variant: we.value,
  7684. show: v(C),
  7685. "no-spinner": "",
  7686. fixed: "",
  7687. "no-wrap": "",
  7688. blur: null,
  7689. onClick: Pe[4] || (Pe[4] = (Jt) => Y("backdrop"))
  7690. }, null, 8, ["variant", "show"])
  7691. ], !0)
  7692. ], 16, Sd), [
  7693. [ha, v(C)]
  7694. ])
  7695. ]),
  7696. _: 3
  7697. })
  7698. ], 8, ["to", "disabled"]));
  7699. }
  7700. });
  7701. const kd = /* @__PURE__ */ $a(wd, [["__scopeId", "data-v-2a759028"]]), $d = /* @__PURE__ */ q({
  7702. __name: "BNav",
  7703. props: {
  7704. align: { default: void 0 },
  7705. cardHeader: { type: [String, Boolean], default: !1 },
  7706. fill: { type: [String, Boolean], default: !1 },
  7707. justified: { type: [String, Boolean], default: !1 },
  7708. pills: { type: [String, Boolean], default: !1 },
  7709. small: { type: [String, Boolean], default: !1 },
  7710. tabs: { type: [String, Boolean], default: !1 },
  7711. tag: { default: "ul" },
  7712. underline: { type: [String, Boolean], default: !1 },
  7713. vertical: { type: [String, Boolean], default: !1 }
  7714. },
  7715. setup(e) {
  7716. const t = e, o = r(() => t.cardHeader), a = r(() => t.fill), l = r(() => t.justified), n = r(() => t.pills), i = r(() => t.small), s = r(() => t.tabs), u = r(() => t.vertical), d = Zt(() => t.align), f = r(() => t.underline), g = w(() => ({
  7717. "nav-tabs": s.value,
  7718. "nav-pills": n.value && !s.value,
  7719. "card-header-tabs": !u.value && o.value && s.value,
  7720. "card-header-pills": !u.value && o.value && n.value && !s.value,
  7721. "flex-column": u.value,
  7722. "nav-fill": !u.value && a.value,
  7723. "nav-justified": !u.value && l.value,
  7724. [d.value]: !u.value && t.align !== void 0,
  7725. small: i.value,
  7726. "nav-underline": f.value
  7727. }));
  7728. return (p, y) => (m(), x(se(p.tag), {
  7729. class: j(["nav", g.value])
  7730. }, {
  7731. default: R(() => [
  7732. A(p.$slots, "default")
  7733. ]),
  7734. _: 3
  7735. }, 8, ["class"]));
  7736. }
  7737. }), Td = { class: "d-flex flex-row align-items-center flex-wrap" }, _d = /* @__PURE__ */ q({
  7738. inheritAttrs: !1,
  7739. __name: "BNavForm",
  7740. props: {
  7741. role: { default: void 0 },
  7742. floating: { type: [String, Boolean], default: void 0 },
  7743. id: { default: void 0 },
  7744. novalidate: { type: [String, Boolean], default: void 0 },
  7745. validated: { type: [String, Boolean], default: void 0 }
  7746. },
  7747. emits: ["submit"],
  7748. setup(e, { emit: t }) {
  7749. const o = t, a = (l) => {
  7750. o("submit", l);
  7751. };
  7752. return (l, n) => (m(), N("li", Td, [
  7753. ye(bn, Q(l.$attrs, {
  7754. id: l.id,
  7755. floating: l.floating,
  7756. role: l.role,
  7757. novalidate: l.novalidate,
  7758. validated: l.validated,
  7759. class: "d-flex",
  7760. onSubmit: Bt(a, ["prevent"])
  7761. }), {
  7762. default: R(() => [
  7763. A(l.$slots, "default")
  7764. ]),
  7765. _: 3
  7766. }, 16, ["id", "floating", "role", "novalidate", "validated", "onSubmit"])
  7767. ]));
  7768. }
  7769. }), Vd = { class: "nav-item" }, Ad = /* @__PURE__ */ q({
  7770. __name: "BNavItem",
  7771. props: {
  7772. linkAttrs: { default: void 0 },
  7773. linkClass: { default: void 0 },
  7774. active: { type: [String, Boolean], default: void 0 },
  7775. activeClass: { default: void 0 },
  7776. append: { type: [String, Boolean], default: void 0 },
  7777. disabled: { type: [String, Boolean], default: void 0 },
  7778. exactActiveClass: { default: void 0 },
  7779. href: { default: void 0 },
  7780. icon: { type: [String, Boolean], default: void 0 },
  7781. opacity: { default: void 0 },
  7782. opacityHover: { default: void 0 },
  7783. rel: { default: void 0 },
  7784. replace: { type: [String, Boolean], default: void 0 },
  7785. routerComponentName: { default: void 0 },
  7786. target: { default: void 0 },
  7787. to: { default: void 0 },
  7788. underlineOffset: { default: void 0 },
  7789. underlineOffsetHover: { default: void 0 },
  7790. underlineOpacity: { default: void 0 },
  7791. underlineOpacityHover: { default: void 0 },
  7792. underlineVariant: { default: void 0 },
  7793. variant: { default: void 0 }
  7794. },
  7795. emits: ["click"],
  7796. setup(e, { emit: t }) {
  7797. const o = e, a = t, l = r(() => o.disabled), n = w(
  7798. () => fo(o, [
  7799. "active",
  7800. "activeClass",
  7801. "append",
  7802. "disabled",
  7803. "href",
  7804. "icon",
  7805. "opacity",
  7806. "opacityHover",
  7807. "rel",
  7808. "replace",
  7809. "routerComponentName",
  7810. "target",
  7811. "to",
  7812. "underlineOffset",
  7813. "underlineOffsetHover",
  7814. "underlineOpacity",
  7815. "underlineOpacityHover",
  7816. "underlineVariant",
  7817. "variant"
  7818. ])
  7819. );
  7820. return n.value.activeClass, (i, s) => (m(), N("li", Vd, [
  7821. ye(rt, Q({
  7822. class: ["nav-link", i.linkClass],
  7823. tabindex: v(l) ? -1 : void 0,
  7824. "aria-disabled": v(l) ? !0 : void 0
  7825. }, { ...n.value, ...i.linkAttrs }, {
  7826. onClick: s[0] || (s[0] = (u) => a("click", u))
  7827. }), {
  7828. default: R(() => [
  7829. A(i.$slots, "default")
  7830. ]),
  7831. _: 3
  7832. }, 16, ["class", "tabindex", "aria-disabled"])
  7833. ]));
  7834. }
  7835. }), Od = { class: "nav-item dropdown" }, Ed = /* @__PURE__ */ q({
  7836. __name: "BNavItemDropdown",
  7837. props: {
  7838. ariaLabel: { default: void 0 },
  7839. autoClose: { type: [Boolean, String], default: !0 },
  7840. boundary: { default: "clippingAncestors" },
  7841. boundaryPadding: { default: void 0 },
  7842. center: { type: [String, Boolean], default: !1 },
  7843. container: { default: void 0 },
  7844. disabled: { type: [String, Boolean], default: !1 },
  7845. dropend: { type: [String, Boolean], default: !1 },
  7846. dropstart: { type: [String, Boolean], default: !1 },
  7847. dropup: { type: [String, Boolean], default: !1 },
  7848. end: { type: [String, Boolean], default: !1 },
  7849. floatingMiddleware: { default: void 0 },
  7850. id: { default: void 0 },
  7851. isNav: { type: [String, Boolean], default: !0 },
  7852. lazy: { type: [String, Boolean], default: !1 },
  7853. menuClass: { default: void 0 },
  7854. modelValue: { type: [String, Boolean], default: !1 },
  7855. noCaret: { type: [String, Boolean], default: !1 },
  7856. noFlip: { type: [String, Boolean], default: !1 },
  7857. noShift: { type: [String, Boolean], default: !1 },
  7858. noSize: { type: [String, Boolean], default: !1 },
  7859. offset: { default: 0 },
  7860. role: { default: "menu" },
  7861. size: { default: "md" },
  7862. split: { type: [String, Boolean], default: !1 },
  7863. splitButtonType: { default: "button" },
  7864. splitClass: { default: void 0 },
  7865. splitDisabled: { type: [String, Boolean], default: void 0 },
  7866. splitHref: { default: void 0 },
  7867. splitTo: { default: void 0 },
  7868. splitVariant: { default: void 0 },
  7869. strategy: { default: "absolute" },
  7870. text: { default: void 0 },
  7871. toggleClass: { default: void 0 },
  7872. toggleText: { default: "Toggle dropdown" },
  7873. variant: { default: "link" }
  7874. },
  7875. emits: ["click", "hidden", "hide", "hide-prevented", "show", "show-prevented", "shown", "toggle", "update:modelValue"],
  7876. setup(e, { expose: t, emit: o }) {
  7877. const a = e, l = o, n = W(null), i = () => {
  7878. var d;
  7879. (d = n.value) == null || d.close();
  7880. }, s = () => {
  7881. var d;
  7882. (d = n.value) == null || d.open();
  7883. };
  7884. return t({
  7885. close: i,
  7886. open: s,
  7887. toggle: () => {
  7888. var d;
  7889. (d = n.value) == null || d.toggle();
  7890. }
  7891. }), (d, f) => (m(), N("li", Od, [
  7892. ye(gn, Q({
  7893. ref_key: "dropdown",
  7894. ref: n
  7895. }, a, {
  7896. "is-nav": "",
  7897. onShow: f[0] || (f[0] = (g) => l("show", g)),
  7898. onShown: f[1] || (f[1] = (g) => l("shown")),
  7899. onHide: f[2] || (f[2] = (g) => l("hide", g)),
  7900. onHidden: f[3] || (f[3] = (g) => l("hidden")),
  7901. onHidePrevented: f[4] || (f[4] = (g) => l("hide-prevented")),
  7902. onShowPrevented: f[5] || (f[5] = (g) => l("show-prevented")),
  7903. onClick: f[6] || (f[6] = (g) => l("click", g)),
  7904. onToggle: f[7] || (f[7] = (g) => l("toggle")),
  7905. "onUpdate:modelValue": f[8] || (f[8] = (g) => l("update:modelValue", g))
  7906. }), {
  7907. "button-content": R(() => [
  7908. A(d.$slots, "button-content")
  7909. ]),
  7910. "toggle-text": R(() => [
  7911. A(d.$slots, "toggle-text")
  7912. ]),
  7913. default: R(() => [
  7914. A(d.$slots, "default", {
  7915. hide: i,
  7916. show: s
  7917. })
  7918. ]),
  7919. _: 3
  7920. }, 16)
  7921. ]));
  7922. }
  7923. }), Pd = { class: "navbar-text" }, Nd = /* @__PURE__ */ q({
  7924. __name: "BNavText",
  7925. props: {
  7926. text: { default: void 0 }
  7927. },
  7928. setup(e) {
  7929. return (t, o) => (m(), N("li", Pd, [
  7930. A(t.$slots, "default", {}, () => [
  7931. ne(Z(t.text), 1)
  7932. ])
  7933. ]));
  7934. }
  7935. }), Id = /* @__PURE__ */ q({
  7936. __name: "BNavbar",
  7937. props: {
  7938. autoClose: { type: [String, Boolean], default: !0 },
  7939. container: { type: [String, Boolean], default: "fluid" },
  7940. fixed: { default: void 0 },
  7941. print: { type: [String, Boolean], default: !1 },
  7942. sticky: { default: void 0 },
  7943. tag: { default: "nav" },
  7944. toggleable: { type: [String, Boolean], default: !1 },
  7945. variant: { default: null }
  7946. },
  7947. setup(e) {
  7948. const t = e, o = r(() => t.container), a = r(() => t.autoClose), l = r(() => t.print), n = r(() => t.toggleable), i = E(() => t.tag === "nav" ? void 0 : "navigation"), s = xi(o), u = w(() => ({
  7949. "d-print": l.value,
  7950. [`sticky-${t.sticky}`]: t.sticky !== void 0,
  7951. [`bg-${t.variant}`]: t.variant !== null,
  7952. [`fixed-${t.fixed}`]: t.fixed !== void 0,
  7953. "navbar-expand": n.value === !1,
  7954. [`navbar-expand-${n.value}`]: typeof n.value == "string"
  7955. }));
  7956. return at(co, {
  7957. tag: E(() => t.tag),
  7958. autoClose: a
  7959. }), (d, f) => (m(), x(se(d.tag), {
  7960. class: j(["navbar", u.value]),
  7961. role: i.value
  7962. }, {
  7963. default: R(() => [
  7964. d.container !== !1 ? (m(), N("div", {
  7965. key: 0,
  7966. class: j(v(s))
  7967. }, [
  7968. A(d.$slots, "default")
  7969. ], 2)) : A(d.$slots, "default", { key: 1 })
  7970. ]),
  7971. _: 3
  7972. }, 8, ["class", "role"]));
  7973. }
  7974. }), Ld = /* @__PURE__ */ q({
  7975. __name: "BNavbarBrand",
  7976. props: {
  7977. tag: { default: "div" },
  7978. active: { type: [String, Boolean], default: void 0 },
  7979. activeClass: { default: void 0 },
  7980. append: { type: [String, Boolean], default: void 0 },
  7981. disabled: { type: [String, Boolean], default: void 0 },
  7982. exactActiveClass: { default: void 0 },
  7983. href: { default: void 0 },
  7984. icon: { type: [String, Boolean], default: void 0 },
  7985. opacity: { default: void 0 },
  7986. opacityHover: { default: void 0 },
  7987. rel: { default: void 0 },
  7988. replace: { type: [String, Boolean], default: void 0 },
  7989. routerComponentName: { default: void 0 },
  7990. target: { default: void 0 },
  7991. to: { default: void 0 },
  7992. underlineOffset: { default: void 0 },
  7993. underlineOffsetHover: { default: void 0 },
  7994. underlineOpacity: { default: void 0 },
  7995. underlineOpacityHover: { default: void 0 },
  7996. underlineVariant: { default: void 0 },
  7997. variant: { default: void 0 }
  7998. },
  7999. setup(e) {
  8000. const t = e, { computedLink: o, computedLinkProps: a } = Ct(t, [
  8001. "active",
  8002. "activeClass",
  8003. "append",
  8004. "disabled",
  8005. "href",
  8006. "rel",
  8007. "replace",
  8008. "routerComponentName",
  8009. "target",
  8010. "to",
  8011. "variant",
  8012. "opacity",
  8013. "opacityHover",
  8014. "underlineVariant",
  8015. "underlineOffset",
  8016. "underlineOffsetHover",
  8017. "underlineOpacity",
  8018. "underlineOpacityHover",
  8019. "icon"
  8020. ]), l = E(() => o.value ? rt : t.tag);
  8021. return (n, i) => (m(), x(se(l.value), Q({ class: "navbar-brand" }, v(a)), {
  8022. default: R(() => [
  8023. A(n.$slots, "default")
  8024. ]),
  8025. _: 3
  8026. }, 16));
  8027. }
  8028. }), Fd = /* @__PURE__ */ q({
  8029. __name: "BNavbarNav",
  8030. props: {
  8031. align: { default: void 0 },
  8032. fill: { type: [String, Boolean], default: !1 },
  8033. justified: { type: [String, Boolean], default: !1 },
  8034. small: { type: [String, Boolean], default: !1 },
  8035. tag: { default: "ul" }
  8036. },
  8037. setup(e) {
  8038. const t = e, o = r(() => t.fill), a = r(() => t.justified), l = r(() => t.small), n = Zt(() => t.align), i = w(() => ({
  8039. "nav-fill": o.value,
  8040. "nav-justified": a.value,
  8041. [n.value]: t.align !== void 0,
  8042. small: l.value
  8043. }));
  8044. return (s, u) => (m(), N("ul", {
  8045. class: j(["navbar-nav", i.value])
  8046. }, [
  8047. A(s.$slots, "default")
  8048. ], 2));
  8049. }
  8050. }), Uo = (e, t) => e.setAttribute("data-bs-theme", t), Hd = {
  8051. mounted(e, t) {
  8052. Uo(e, t.value);
  8053. },
  8054. updated(e, t) {
  8055. Uo(e, t.value);
  8056. }
  8057. }, zd = (e, t) => {
  8058. const { modifiers: o, arg: a, value: l } = e, n = Object.keys(o || {}), i = typeof l == "string" ? l.split(sa) : l;
  8059. if (Ss(t.tagName, "a")) {
  8060. const s = Ya(t, "href") || "";
  8061. Zn.test(s) && n.push(s.replace(Yn, ""));
  8062. }
  8063. return Array.prototype.concat.apply([], [a, i]).forEach((s) => typeof s == "string" && n.push(s)), n.filter((s, u, d) => s && d.indexOf(s) === u);
  8064. }, Rd = (e, t) => {
  8065. e.forEach((o) => {
  8066. const a = document.getElementById(o);
  8067. a !== null && a.dispatchEvent(new Event("bv-toggle"));
  8068. }), setTimeout(() => $n(e, t), 50);
  8069. }, $n = (e, t) => {
  8070. let o = !1;
  8071. e.forEach((a) => {
  8072. const l = document.getElementById(a);
  8073. l != null && l.classList.contains("show") && (o = !0), l != null && l.classList.contains("closing") && (o = !1);
  8074. }), t.setAttribute("aria-expanded", o ? "true" : "false"), t.classList.remove(o ? "collapsed" : "not-collapsed"), t.classList.add(o ? "not-collapsed" : "collapsed");
  8075. }, Xo = (e, t) => {
  8076. if (t.value === void 0 && Object.keys(t.modifiers || {}).length === 0)
  8077. return;
  8078. const o = zd(t, e);
  8079. e.__toggle && e.removeEventListener("click", e.__toggle), e.__toggle = () => Rd(o, e), e.addEventListener("click", e.__toggle), e.setAttribute("aria-controls", o.join(" ")), $n(o, e);
  8080. }, ja = {
  8081. mounted: Xo,
  8082. updated: Xo,
  8083. unmounted(e) {
  8084. e.removeEventListener("click", e.__toggle), e.removeAttribute("aria-controls"), e.removeAttribute("aria-expanded");
  8085. }
  8086. }, xd = {
  8087. mounted(e, t) {
  8088. if (!Ut(t.value))
  8089. return;
  8090. const a = ga(t.value, e);
  8091. !a.content && !a.title || (e.$__state = W({
  8092. ...Nt(t, e),
  8093. ...a
  8094. }), ba(e, t));
  8095. },
  8096. updated(e, t) {
  8097. if (!Ut(t.value))
  8098. return;
  8099. const a = ga(t.value, e);
  8100. if (!(!a.content && !a.title)) {
  8101. if (!e.$__state) {
  8102. e.$__state = W({
  8103. ...Nt(t, e),
  8104. ...a
  8105. }), ba(e, t);
  8106. return;
  8107. }
  8108. e.$__state.value = {
  8109. ...Nt(t, e),
  8110. ...a
  8111. };
  8112. }
  8113. },
  8114. beforeUnmount(e) {
  8115. Xl(e);
  8116. }
  8117. }, Md = {
  8118. mounted(e, t) {
  8119. const o = Ut(t.value);
  8120. if (!o)
  8121. return;
  8122. const a = ga(t.value, e);
  8123. !a.content && !a.title || (e.$__state = W({
  8124. noninteractive: !0,
  8125. ...Nt(t, e),
  8126. title: a.title ?? a.content ?? "",
  8127. tooltip: o
  8128. }), ba(e, t));
  8129. },
  8130. updated(e, t) {
  8131. const o = Ut(t.value);
  8132. if (!o)
  8133. return;
  8134. const a = ga(t.value, e);
  8135. if (!(!a.content && !a.title)) {
  8136. if (!e.$__state) {
  8137. e.$__state = W({
  8138. noninteractive: !0,
  8139. ...Nt(t, e),
  8140. title: a.title ?? a.content ?? "",
  8141. tooltip: o
  8142. }), ba(e, t);
  8143. return;
  8144. }
  8145. e.$__state.value = {
  8146. noninteractive: !0,
  8147. ...Nt(t, e),
  8148. title: a.title ?? a.content ?? "",
  8149. tooltip: o
  8150. };
  8151. }
  8152. },
  8153. beforeUnmount(e) {
  8154. Xl(e);
  8155. }
  8156. }, Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  8157. __proto__: null,
  8158. vBColorMode: Hd,
  8159. vBModal: ja,
  8160. vBPopover: xd,
  8161. vBToggle: ja,
  8162. vBTooltip: Md
  8163. }, Symbol.toStringTag, { value: "Module" })), Dd = ["disabled", "aria-label"], jd = /* @__PURE__ */ ee("span", { class: "navbar-toggler-icon" }, null, -1), qd = /* @__PURE__ */ q({
  8164. __name: "BNavbarToggle",
  8165. props: {
  8166. disabled: { type: [String, Boolean], default: !1 },
  8167. label: { default: "Toggle navigation" },
  8168. target: { default: void 0 }
  8169. },
  8170. emits: ["click"],
  8171. setup(e, { emit: t }) {
  8172. const o = e, a = t, l = r(() => o.disabled), n = w(() => ({
  8173. disabled: l.value
  8174. })), i = (s) => {
  8175. l.value || a("click", s);
  8176. };
  8177. return (s, u) => ht((m(), N("button", {
  8178. class: j(["navbar-toggler", n.value]),
  8179. type: "button",
  8180. disabled: v(l),
  8181. "aria-label": s.label,
  8182. onClick: i
  8183. }, [
  8184. A(s.$slots, "default", {}, () => [
  8185. jd
  8186. ])
  8187. ], 10, Dd)), [
  8188. [v(ja), v(l) ? void 0 : s.target]
  8189. ]);
  8190. }
  8191. }), Gd = ["id", "aria-labelledby"], Wd = ["id"], Ud = /* @__PURE__ */ q({
  8192. inheritAttrs: !1,
  8193. __name: "BOffcanvas",
  8194. props: {
  8195. backdrop: { type: [String, Boolean], default: !0 },
  8196. backdropVariant: { default: "dark" },
  8197. bodyClass: { default: void 0 },
  8198. bodyScrolling: { type: [String, Boolean], default: !1 },
  8199. footerClass: { default: void 0 },
  8200. headerClass: { default: void 0 },
  8201. headerCloseClass: { default: void 0 },
  8202. headerCloseLabel: { default: "Close" },
  8203. headerCloseVariant: { default: "secondary" },
  8204. id: { default: void 0 },
  8205. lazy: { type: [String, Boolean], default: !1 },
  8206. modelValue: { type: [String, Boolean], default: !1 },
  8207. noCloseOnBackdrop: { type: [String, Boolean], default: !1 },
  8208. noCloseOnEsc: { type: [String, Boolean], default: !1 },
  8209. noFocus: { type: [String, Boolean], default: !1 },
  8210. noHeader: { type: [String, Boolean], default: !1 },
  8211. noHeaderClose: { type: [String, Boolean], default: !1 },
  8212. placement: { default: "start" },
  8213. teleportDisabled: { type: [String, Boolean], default: !1 },
  8214. teleportTo: { default: "body" },
  8215. title: { default: void 0 }
  8216. },
  8217. emits: ["close", "esc", "hidden", "hide", "hide-prevented", "show", "show-prevented", "shown", "update:modelValue"],
  8218. setup(e, { expose: t, emit: o }) {
  8219. const a = e, l = o, n = Me(), i = ke(a, "modelValue", l, { passive: !0 }), s = r(i), u = r(() => a.bodyScrolling), d = r(() => a.backdrop), f = r(() => a.noHeaderClose), g = r(() => a.noHeader), p = r(() => a.noFocus), y = r(() => a.noCloseOnBackdrop), b = r(() => a.noCloseOnEsc), V = r(() => a.lazy), C = r(() => a.teleportDisabled), c = _e(() => a.id, "offcanvas");
  8220. Wl(s, u);
  8221. const h = W(null);
  8222. qe(
  8223. "Escape",
  8224. () => {
  8225. P("esc");
  8226. },
  8227. { target: h }
  8228. );
  8229. const { focused: B } = xe(h, {
  8230. initialValue: s.value && p.value === !1
  8231. }), _ = W(s.value), k = W(!1), S = E(() => d.value === !0 && s.value === !0), $ = E(
  8232. () => V.value === !1 || V.value === !0 && k.value === !0 || V.value === !0 && s.value === !0
  8233. ), I = E(() => !Ie(n["header-close"])), T = w(() => [
  8234. { "text-reset": !I.value },
  8235. a.headerCloseClass
  8236. ]), O = w(() => ({
  8237. variant: I.value ? a.headerCloseVariant : void 0,
  8238. class: T.value
  8239. })), F = E(() => !Ie(n.footer)), K = w(() => [
  8240. // props.responsive === undefined ? 'offcanvas' : `offcanvas-${props.responsive}`,
  8241. "offcanvas",
  8242. // Remove when above check is fixed
  8243. `offcanvas-${a.placement}`,
  8244. {
  8245. show: s.value && _.value === !0
  8246. }
  8247. ]), z = (oe, fe = {}) => new Rt(oe, {
  8248. cancelable: !1,
  8249. target: h.value || null,
  8250. relatedTarget: null,
  8251. trigger: null,
  8252. ...fe,
  8253. componentId: c.value
  8254. }), P = (oe = "") => {
  8255. if (oe === "backdrop" && y.value || oe === "esc" && b.value) {
  8256. l("hide-prevented");
  8257. return;
  8258. }
  8259. const fe = z("hide", { cancelable: oe !== "", trigger: oe });
  8260. if (oe === "close" && l(oe, fe), oe === "esc" && l(oe, fe), l("hide", fe), fe.defaultPrevented) {
  8261. l("hide-prevented");
  8262. return;
  8263. }
  8264. i.value = !1;
  8265. }, D = () => {
  8266. const oe = z("show", { cancelable: !0 });
  8267. if (l("show", oe), oe.defaultPrevented) {
  8268. i.value = !1, l("show-prevented");
  8269. return;
  8270. }
  8271. i.value = !0;
  8272. }, ae = () => {
  8273. Ne(() => {
  8274. p.value === !1 && (B.value = !0);
  8275. });
  8276. }, le = () => D(), ve = () => {
  8277. _.value = !0, ae(), l("shown", z("shown")), V.value === !0 && (k.value = !0);
  8278. }, Be = () => {
  8279. _.value = !1;
  8280. }, Ve = () => {
  8281. l("hidden", z("hidden")), V.value === !0 && (k.value = !1);
  8282. };
  8283. return Oe(h, "bv-toggle", () => {
  8284. s.value ? P() : D();
  8285. }), t({
  8286. hide: P,
  8287. show: D
  8288. }), (oe, fe) => (m(), x(zt, {
  8289. to: oe.teleportTo,
  8290. disabled: v(C)
  8291. }, [
  8292. ye(Mt, {
  8293. "no-fade": !0,
  8294. "trans-props": {
  8295. enterToClass: "showing",
  8296. enterFromClass: "",
  8297. leaveToClass: "hiding show",
  8298. leaveFromClass: "show"
  8299. },
  8300. onBeforeEnter: le,
  8301. onAfterEnter: ve,
  8302. onLeave: Be,
  8303. onAfterLeave: Ve
  8304. }, {
  8305. default: R(() => [
  8306. ht(ee("div", Q({
  8307. id: v(c),
  8308. ref_key: "element",
  8309. ref: h,
  8310. "aria-modal": "true",
  8311. role: "dialog",
  8312. class: K.value,
  8313. tabindex: "-1",
  8314. "aria-labelledby": `${v(c)}-offcanvas-label`,
  8315. "data-bs-backdrop": "false"
  8316. }, oe.$attrs), [
  8317. $.value ? (m(), N(ge, { key: 0 }, [
  8318. v(g) ? J("", !0) : (m(), N("div", {
  8319. key: 0,
  8320. class: j(["offcanvas-header", oe.headerClass])
  8321. }, [
  8322. A(oe.$slots, "header", {
  8323. visible: v(s),
  8324. placement: oe.placement,
  8325. hide: P
  8326. }, () => [
  8327. ee("h5", {
  8328. id: `${v(c)}-offcanvas-label`,
  8329. class: "offcanvas-title"
  8330. }, [
  8331. A(oe.$slots, "title", {
  8332. visible: v(s),
  8333. placement: oe.placement,
  8334. hide: P
  8335. }, () => [
  8336. ne(Z(oe.title), 1)
  8337. ])
  8338. ], 8, Wd),
  8339. v(f) ? J("", !0) : (m(), N(ge, { key: 0 }, [
  8340. I.value ? (m(), x(pt, Q({ key: 0 }, O.value, {
  8341. onClick: fe[0] || (fe[0] = ($e) => P("close"))
  8342. }), {
  8343. default: R(() => [
  8344. A(oe.$slots, "header-close")
  8345. ]),
  8346. _: 3
  8347. }, 16)) : (m(), x(Dt, Q({
  8348. key: 1,
  8349. "aria-label": oe.headerCloseLabel
  8350. }, O.value, {
  8351. onClick: fe[1] || (fe[1] = ($e) => P("close"))
  8352. }), null, 16, ["aria-label"]))
  8353. ], 64))
  8354. ])
  8355. ], 2)),
  8356. ee("div", {
  8357. class: j(["offcanvas-body", oe.bodyClass])
  8358. }, [
  8359. A(oe.$slots, "default", {
  8360. visible: v(s),
  8361. placement: oe.placement,
  8362. hide: P
  8363. })
  8364. ], 2),
  8365. F.value ? (m(), N("div", {
  8366. key: 1,
  8367. class: j(oe.footerClass)
  8368. }, [
  8369. A(oe.$slots, "footer", {
  8370. visible: v(s),
  8371. placement: oe.placement,
  8372. hide: P
  8373. })
  8374. ], 2)) : J("", !0)
  8375. ], 64)) : J("", !0)
  8376. ], 16, Gd), [
  8377. [ha, v(i)]
  8378. ])
  8379. ]),
  8380. _: 3
  8381. }),
  8382. A(oe.$slots, "backdrop", {}, () => [
  8383. ye(Ta, {
  8384. variant: oe.backdropVariant,
  8385. show: S.value,
  8386. fixed: "",
  8387. "no-wrap": "",
  8388. "no-spinner": "",
  8389. onClick: fe[2] || (fe[2] = ($e) => P("backdrop"))
  8390. }, null, 8, ["variant", "show"])
  8391. ])
  8392. ], 8, ["to", "disabled"]));
  8393. }
  8394. }), Xd = ["aria-disabled", "aria-label"], Kd = ["aria-hidden"], Yo = 20, Zo = 0, Yd = /* @__PURE__ */ q({
  8395. __name: "BPagination",
  8396. props: {
  8397. align: { default: "start" },
  8398. ariaControls: { default: void 0 },
  8399. ariaLabel: { default: "Pagination" },
  8400. disabled: { type: [String, Boolean], default: !1 },
  8401. ellipsisClass: { default: void 0 },
  8402. ellipsisText: { default: "…" },
  8403. firstClass: { default: void 0 },
  8404. firstNumber: { type: [String, Boolean], default: !1 },
  8405. firstText: { default: "«" },
  8406. hideEllipsis: { type: [String, Boolean], default: !1 },
  8407. hideGotoEndButtons: { type: [String, Boolean], default: !1 },
  8408. labelFirstPage: { default: "Go to first page" },
  8409. labelLastPage: { default: "Go to last page" },
  8410. labelNextPage: { default: "Go to next page" },
  8411. labelPage: { default: "Go to page" },
  8412. labelPrevPage: { default: "Go to previous page" },
  8413. lastClass: { default: void 0 },
  8414. lastNumber: { type: [String, Boolean], default: !1 },
  8415. lastText: { default: "»" },
  8416. limit: { default: 5 },
  8417. modelValue: { default: 1 },
  8418. nextClass: { default: void 0 },
  8419. nextText: { default: "›" },
  8420. pageClass: { default: void 0 },
  8421. perPage: { default: Yo },
  8422. pills: { type: [String, Boolean], default: !1 },
  8423. prevClass: { default: void 0 },
  8424. prevText: { default: "‹" },
  8425. size: { default: void 0 },
  8426. totalRows: { default: Zo }
  8427. },
  8428. emits: ["update:modelValue", "page-click"],
  8429. setup(e, { emit: t }) {
  8430. const a = e, l = t, n = ke(a, "modelValue", l), i = r(() => a.disabled), s = r(() => a.firstNumber), u = r(() => a.hideEllipsis), d = r(() => a.hideGotoEndButtons), f = r(() => a.lastNumber), g = r(() => a.pills), p = he(() => a.perPage, { nanToZero: !0, method: "parseInt" }), y = he(() => a.totalRows, { nanToZero: !0, method: "parseInt" }), b = he(n, { nanToZero: !0, method: "parseInt" }), V = E(() => Math.max(p.value || Yo, 1)), C = E(() => Math.max(y.value || Zo, 0)), c = E(() => Math.ceil(C.value / V.value)), h = E(() => a.align === "fill"), B = E(() => a.align === "fill" ? "start" : a.align), _ = Zt(B), k = (L) => L === b.value, S = (L) => i.value ? null : k(L) ? "0" : "-1", $ = (L) => i.value || k(L) || b.value < 1 || // Check if the number is out of bounds
  8431. L < 1 || L > c.value, I = w(() => $(1)), T = w(() => $(b.value - 1)), O = w(() => $(c.value)), F = w(() => $(b.value + 1)), K = (L, U) => ({
  8432. li: {
  8433. class: [
  8434. "page-item",
  8435. {
  8436. disabled: L,
  8437. "flex-fill": h.value,
  8438. "d-flex": h.value && !L
  8439. },
  8440. U
  8441. ]
  8442. },
  8443. button: {
  8444. is: L ? "span" : "button",
  8445. class: ["page-link", { "flex-grow-1": !L && h.value }],
  8446. "aria-label": a.labelFirstPage,
  8447. "aria-controls": a.ariaControls || void 0,
  8448. "aria-disabled": L ? !0 : void 0,
  8449. role: "menuitem",
  8450. type: L ? void 0 : "button",
  8451. tabindex: L ? void 0 : "-1"
  8452. }
  8453. }), z = w(() => K(I.value, a.firstClass)), P = w(() => K(T.value, a.prevClass)), D = w(() => K(F.value, a.nextClass)), ae = w(() => K(O.value, a.lastClass)), le = w(() => ({
  8454. li: {
  8455. class: [
  8456. "page-item",
  8457. "disabled",
  8458. "bv-d-xs-down-none",
  8459. h.value ? "flex-fill" : "",
  8460. a.ellipsisClass
  8461. ],
  8462. role: "separator"
  8463. },
  8464. span: {
  8465. class: ["page-link"]
  8466. }
  8467. })), ve = w(() => [
  8468. _.value,
  8469. {
  8470. [`pagination-${a.size}`]: a.size !== void 0,
  8471. "b-pagination-pills": g.value
  8472. }
  8473. ]), Be = w(() => {
  8474. let L;
  8475. return c.value - b.value + 2 < a.limit && a.limit > 3 ? L = c.value - oe.value + 1 : L = b.value - Math.floor(oe.value / 2), L < 1 ? L = 1 : L > c.value - oe.value && (L = c.value - oe.value + 1), a.limit <= 3 && f.value && c.value === L + oe.value - 1 && (L = Math.max(L - 1, 1)), L;
  8476. }), Ve = w(() => {
  8477. const L = c.value - b.value;
  8478. let U = !1;
  8479. return L + 2 < a.limit && a.limit > 3 ? a.limit > 3 && (U = !0) : a.limit > 3 && (U = !!(!u.value || s.value)), Be.value <= 1 && (U = !1), U && s.value && Be.value < 4 && (U = !1), U;
  8480. }), oe = w(() => {
  8481. let L = a.limit;
  8482. return c.value <= a.limit ? L = c.value : b.value < a.limit - 1 && a.limit > 3 ? ((!u.value || f.value) && (L = a.limit - (s.value ? 0 : 1)), L = Math.min(L, a.limit)) : c.value - b.value + 2 < a.limit && a.limit > 3 ? (!u.value || s.value) && (L = a.limit - (f.value ? 0 : 1)) : a.limit > 3 && (L = a.limit - (u.value ? 0 : 2)), L;
  8483. }), fe = w(() => {
  8484. const L = c.value - oe.value;
  8485. let U = !1;
  8486. b.value < a.limit - 1 && a.limit > 3 ? (!u.value || f.value) && (U = !0) : a.limit > 3 && (U = !!(!u.value || f.value)), Be.value > L && (U = !1);
  8487. const H = Be.value + oe.value - 1;
  8488. return U && f.value && H > c.value - 3 && (U = !1), U;
  8489. }), $e = w(() => ({
  8490. pageSize: V.value,
  8491. totalRows: y.value,
  8492. numberOfPages: c.value
  8493. })), we = (L, U) => {
  8494. if (U === b.value)
  8495. return;
  8496. const H = new dt("page-click", {
  8497. cancelable: !0,
  8498. target: L.target
  8499. });
  8500. l("page-click", H, U), !H.defaultPrevented && (n.value = U);
  8501. };
  8502. ue(b, (L) => {
  8503. const H = ((G, X) => {
  8504. const te = G || 1;
  8505. return te > X ? X : te < 1 ? 1 : te;
  8506. })(L, c.value);
  8507. H !== n.value && (n.value = H);
  8508. }), ue($e, (L, U) => {
  8509. (U.pageSize !== L.pageSize && U.totalRows === L.totalRows || U.numberOfPages !== L.numberOfPages && b.value > U.numberOfPages) && (n.value = 1);
  8510. });
  8511. const M = w(
  8512. () => Array.from({ length: oe.value }, (L, U) => ({
  8513. number: Be.value + U
  8514. }))
  8515. );
  8516. return (L, U) => (m(), N("ul", {
  8517. class: j(["pagination", ve.value]),
  8518. role: "menubar",
  8519. "aria-disabled": v(i),
  8520. "aria-label": L.ariaLabel || void 0
  8521. }, [
  8522. !v(d) && !v(s) ? (m(), N("li", Se(Q({ key: 0 }, z.value.li)), [
  8523. (m(), x(se(z.value.button.is), Q(z.value.button, {
  8524. onClick: U[0] || (U[0] = (H) => we(H, 1))
  8525. }), {
  8526. default: R(() => [
  8527. A(L.$slots, "first-text", {}, () => [
  8528. ne(Z(L.firstText), 1)
  8529. ])
  8530. ]),
  8531. _: 3
  8532. }, 16))
  8533. ], 16)) : J("", !0),
  8534. ee("li", Se(Ee(P.value.li)), [
  8535. (m(), x(se(P.value.button.is), Q(P.value.button, {
  8536. onClick: U[1] || (U[1] = (H) => we(H, v(b) - 1))
  8537. }), {
  8538. default: R(() => [
  8539. A(L.$slots, "prev-text", {}, () => [
  8540. ne(Z(L.prevText), 1)
  8541. ])
  8542. ]),
  8543. _: 3
  8544. }, 16))
  8545. ], 16),
  8546. Ve.value ? (m(), N("li", Se(Q({ key: 1 }, le.value.li)), [
  8547. ee("span", Se(Ee(le.value.span)), [
  8548. A(L.$slots, "ellipsis-text", {}, () => [
  8549. ne(Z(L.ellipsisText || "..."), 1)
  8550. ])
  8551. ], 16)
  8552. ], 16)) : J("", !0),
  8553. (m(!0), N(ge, null, Te(M.value, (H) => (m(), N("li", {
  8554. key: `page-${H.number}`,
  8555. class: j([
  8556. "page-item",
  8557. {
  8558. disabled: v(i),
  8559. active: k(H.number),
  8560. "flex-fill": h.value,
  8561. "d-flex": h.value && !v(i)
  8562. },
  8563. L.pageClass
  8564. ]),
  8565. role: "presentation",
  8566. "aria-hidden": v(i) || void 0
  8567. }, [
  8568. (m(), x(se(v(i) ? "span" : "button"), {
  8569. key: `page-${H.number}`,
  8570. class: j(["page-link", { "flex-grow-1": !v(i) && h.value }]),
  8571. "aria-controls": L.ariaControls || void 0,
  8572. "aria-disabled": v(i) ? !0 : void 0,
  8573. "aria-label": L.labelPage ? `${L.labelPage} ${H.number}` : void 0,
  8574. "aria-posinset": H.number,
  8575. "aria-checked": k(H.number),
  8576. "aria-setsize": c.value,
  8577. role: "menuitemradio",
  8578. type: v(i) ? void 0 : "button",
  8579. tabindex: S(H.number),
  8580. onClick: (G) => we(G, H.number)
  8581. }, {
  8582. default: R(() => [
  8583. A(L.$slots, "page", {
  8584. active: k(H.number),
  8585. disabled: v(i),
  8586. page: H.number,
  8587. index: H.number - 1,
  8588. content: H.number
  8589. }, () => [
  8590. ne(Z(H.number), 1)
  8591. ])
  8592. ]),
  8593. _: 2
  8594. }, 1032, ["class", "aria-controls", "aria-disabled", "aria-label", "aria-posinset", "aria-checked", "aria-setsize", "type", "tabindex", "onClick"]))
  8595. ], 10, Kd))), 128)),
  8596. fe.value ? (m(), N("li", Se(Q({ key: 2 }, le.value.li)), [
  8597. ee("span", Se(Ee(le.value.span)), [
  8598. A(L.$slots, "ellipsis-text", {}, () => [
  8599. ne(Z(L.ellipsisText || "..."), 1)
  8600. ])
  8601. ], 16)
  8602. ], 16)) : J("", !0),
  8603. ee("li", Se(Ee(D.value.li)), [
  8604. (m(), x(se(D.value.button.is), Q(D.value.button, {
  8605. onClick: U[2] || (U[2] = (H) => we(H, v(b) + 1))
  8606. }), {
  8607. default: R(() => [
  8608. A(L.$slots, "next-text", {}, () => [
  8609. ne(Z(L.nextText), 1)
  8610. ])
  8611. ]),
  8612. _: 3
  8613. }, 16))
  8614. ], 16),
  8615. !v(f) && !v(d) ? (m(), N("li", Se(Q({ key: 3 }, ae.value.li)), [
  8616. (m(), x(se(ae.value.button.is), Q(ae.value.button, {
  8617. onClick: U[3] || (U[3] = (H) => we(H, c.value))
  8618. }), {
  8619. default: R(() => [
  8620. A(L.$slots, "last-text", {}, () => [
  8621. ne(Z(L.lastText), 1)
  8622. ])
  8623. ]),
  8624. _: 3
  8625. }, 16))
  8626. ], 16)) : J("", !0)
  8627. ], 10, Xd));
  8628. }
  8629. }), Ue = /* @__PURE__ */ q({
  8630. inheritAttrs: !1,
  8631. __name: "BPlaceholder",
  8632. props: {
  8633. animation: { default: void 0 },
  8634. cols: { default: 12 },
  8635. size: { default: "md" },
  8636. tag: { default: "span" },
  8637. variant: { default: null },
  8638. width: { default: void 0 },
  8639. wrapperTag: { default: "span" }
  8640. },
  8641. setup(e) {
  8642. const t = e, o = E(
  8643. () => t.width === void 0 ? void 0 : typeof t.width == "number" ? t.width.toString() : t.width.replace("%", "")
  8644. ), a = E(
  8645. () => t.cols === void 0 ? void 0 : typeof t.cols == "number" ? t.cols.toString() : t.cols
  8646. ), l = w(() => ({
  8647. [`col-${a.value}`]: a.value !== void 0 && o.value === void 0,
  8648. [`bg-${t.variant}`]: t.variant !== null,
  8649. [`placeholder-${t.size}`]: t.size !== "md"
  8650. })), n = w(() => ({
  8651. [`placeholder-${t.animation}`]: t.animation !== void 0
  8652. })), i = w(() => ({
  8653. width: o.value === void 0 ? void 0 : `${o.value}%`
  8654. }));
  8655. return (s, u) => (m(), x(se(s.wrapperTag), {
  8656. class: j(n.value)
  8657. }, {
  8658. default: R(() => [
  8659. (m(), x(se(s.tag), Q(s.$attrs, {
  8660. class: ["placeholder", l.value],
  8661. style: i.value
  8662. }), null, 16, ["class", "style"]))
  8663. ]),
  8664. _: 1
  8665. }, 8, ["class"]));
  8666. }
  8667. }), Tn = /* @__PURE__ */ q({
  8668. __name: "BPlaceholderButton",
  8669. props: {
  8670. animation: { default: void 0 },
  8671. cols: { default: void 0 },
  8672. tag: { default: "div" },
  8673. variant: { default: "primary" },
  8674. width: { default: void 0 }
  8675. },
  8676. setup(e) {
  8677. const t = e, o = w(() => ({
  8678. [`btn-${t.variant}`]: t.variant !== null
  8679. }));
  8680. return (a, l) => (m(), x(Ue, {
  8681. class: j(["btn disabled", o.value]),
  8682. animation: a.animation,
  8683. width: a.width,
  8684. cols: a.cols,
  8685. tag: a.tag,
  8686. style: { cursor: "wait", "pointer-events": "auto" }
  8687. }, null, 8, ["class", "animation", "width", "cols", "tag"]));
  8688. }
  8689. }), Zd = /* @__PURE__ */ q({
  8690. __name: "BPlaceholderCard",
  8691. props: {
  8692. animation: { default: void 0 },
  8693. footerAnimation: { default: void 0 },
  8694. footerSize: { default: "md" },
  8695. footerVariant: { default: void 0 },
  8696. footerWidth: { default: 100 },
  8697. headerAnimation: { default: void 0 },
  8698. headerSize: { default: "md" },
  8699. headerVariant: { default: void 0 },
  8700. headerWidth: { default: 100 },
  8701. imgBlankColor: { default: "#868e96" },
  8702. imgBottom: { type: [String, Boolean], default: !1 },
  8703. imgHeight: { default: 100 },
  8704. imgSrc: { default: void 0 },
  8705. noButton: { type: [String, Boolean], default: !1 },
  8706. noFooter: { type: [String, Boolean], default: !1 },
  8707. noHeader: { type: [String, Boolean], default: !1 },
  8708. noImg: { type: [String, Boolean], default: !1 },
  8709. size: { default: "md" },
  8710. variant: { default: void 0 }
  8711. },
  8712. setup(e) {
  8713. const t = e, o = r(() => t.noButton), a = r(() => t.noHeader), l = r(() => t.noFooter), n = r(() => t.noImg), i = w(() => ({
  8714. animation: t.animation,
  8715. size: t.size,
  8716. variant: t.variant
  8717. })), s = E(() => o.value ? Ue : Tn);
  8718. return (u, d) => (m(), x(mn, { "img-bottom": u.imgBottom }, Ua({
  8719. default: R(() => [
  8720. A(u.$slots, "default", {}, () => [
  8721. ye(Ue, Q({ cols: "7" }, i.value), null, 16),
  8722. ye(Ue, Q({ cols: "4" }, i.value), null, 16),
  8723. ye(Ue, Q({ cols: "4" }, i.value), null, 16),
  8724. ye(Ue, Q({ cols: "6" }, i.value), null, 16),
  8725. ye(Ue, Q({ cols: "8" }, i.value), null, 16)
  8726. ])
  8727. ]),
  8728. _: 2
  8729. }, [
  8730. v(n) ? void 0 : {
  8731. name: "img",
  8732. fn: R(() => [
  8733. A(u.$slots, "img", {}, () => [
  8734. ye(ya, {
  8735. blank: !u.imgSrc,
  8736. "blank-color": u.imgBlankColor,
  8737. height: u.imgSrc ? void 0 : u.imgHeight,
  8738. src: u.imgSrc,
  8739. top: !u.imgBottom,
  8740. bottom: u.imgBottom,
  8741. style: { cursor: "wait" }
  8742. }, null, 8, ["blank", "blank-color", "height", "src", "top", "bottom"])
  8743. ])
  8744. ]),
  8745. key: "0"
  8746. },
  8747. v(a) ? void 0 : {
  8748. name: "header",
  8749. fn: R(() => [
  8750. A(u.$slots, "header", {}, () => [
  8751. ye(Ue, {
  8752. width: u.headerWidth,
  8753. variant: u.headerVariant,
  8754. animation: u.headerAnimation,
  8755. size: u.headerSize
  8756. }, null, 8, ["width", "variant", "animation", "size"])
  8757. ])
  8758. ]),
  8759. key: "1"
  8760. },
  8761. v(l) ? void 0 : {
  8762. name: "footer",
  8763. fn: R(() => [
  8764. A(u.$slots, "footer", {}, () => [
  8765. (m(), x(se(s.value), {
  8766. width: u.footerWidth,
  8767. animation: u.footerAnimation,
  8768. size: v(o) ? u.footerSize : void 0,
  8769. variant: u.footerVariant
  8770. }, null, 8, ["width", "animation", "size", "variant"]))
  8771. ])
  8772. ]),
  8773. key: "2"
  8774. }
  8775. ]), 1032, ["img-bottom"]));
  8776. }
  8777. }), go = /* @__PURE__ */ q({
  8778. __name: "BTableSimple",
  8779. props: {
  8780. bordered: { type: [String, Boolean], default: !1 },
  8781. borderless: { type: [String, Boolean], default: !1 },
  8782. borderVariant: { default: null },
  8783. captionTop: { type: [String, Boolean], default: !1 },
  8784. dark: { type: [String, Boolean], default: !1 },
  8785. fixed: { type: [String, Boolean], default: !1 },
  8786. hover: { type: [String, Boolean], default: !1 },
  8787. id: { default: void 0 },
  8788. noBorderCollapse: { type: [String, Boolean], default: !1 },
  8789. outlined: { type: [String, Boolean], default: !1 },
  8790. responsive: { type: [String, Boolean], default: !1 },
  8791. small: { type: [String, Boolean], default: !1 },
  8792. stacked: { type: [String, Boolean], default: !1 },
  8793. stickyHeader: { type: [String, Boolean], default: !1 },
  8794. striped: { type: [String, Boolean], default: !1 },
  8795. stripedColumns: { type: [String, Boolean], default: !1 },
  8796. tableClass: { default: void 0 },
  8797. variant: { default: null }
  8798. },
  8799. setup(e) {
  8800. const t = e, o = r(() => t.captionTop), a = r(() => t.borderless), l = r(() => t.bordered), n = r(() => t.dark), i = r(() => t.hover), s = r(() => t.small), u = r(() => t.striped), d = r(() => t.stickyHeader), f = r(() => t.stripedColumns), g = r(() => t.responsive), p = r(() => t.stacked), y = w(() => [
  8801. t.tableClass,
  8802. "table",
  8803. "b-table",
  8804. {
  8805. "table-bordered": l.value,
  8806. "table-borderless": a.value,
  8807. [`border-${t.borderVariant}`]: t.borderVariant !== null,
  8808. "caption-top": o.value,
  8809. "table-dark": n.value,
  8810. "table-hover": i.value,
  8811. "b-table-stacked": p.value === !0,
  8812. [`b-table-stacked-${p.value}`]: typeof p.value == "string",
  8813. "table-striped": u.value,
  8814. "table-sm": s.value,
  8815. [`table-${t.variant}`]: t.variant !== null,
  8816. "table-striped-columns": f.value
  8817. }
  8818. ]), b = w(() => ({
  8819. "table-responsive": g.value === !0,
  8820. [`table-responsive-${g.value}`]: typeof g.value == "string",
  8821. "b-table-sticky-header": d.value
  8822. }));
  8823. return (V, C) => V.responsive ? (m(), N("div", {
  8824. key: 1,
  8825. class: j(b.value)
  8826. }, [
  8827. ee("table", {
  8828. class: j(y.value)
  8829. }, [
  8830. A(V.$slots, "default")
  8831. ], 2)
  8832. ], 2)) : (m(), N("table", {
  8833. key: 0,
  8834. class: j(y.value)
  8835. }, [
  8836. A(V.$slots, "default")
  8837. ], 2));
  8838. }
  8839. }), Jd = /* @__PURE__ */ q({
  8840. __name: "BPlaceholderTable",
  8841. props: {
  8842. animation: { default: void 0 },
  8843. cellWidth: { default: 100 },
  8844. columns: { default: 5 },
  8845. footerAnimation: { default: void 0 },
  8846. footerCellWidth: { default: 100 },
  8847. footerColumns: { default: void 0 },
  8848. footerSize: { default: "md" },
  8849. footerVariant: { default: void 0 },
  8850. headerAnimation: { default: void 0 },
  8851. headerCellWidth: { default: 100 },
  8852. headerColumns: { default: void 0 },
  8853. headerSize: { default: "md" },
  8854. headerVariant: { default: void 0 },
  8855. hideHeader: { type: [String, Boolean], default: !1 },
  8856. rows: { default: 3 },
  8857. showFooter: { type: [String, Boolean], default: !1 },
  8858. size: { default: "md" },
  8859. variant: { default: void 0 }
  8860. },
  8861. setup(e) {
  8862. const t = e, o = he(() => t.columns), a = he(() => t.rows), l = E(() => t.headerColumns ?? NaN), n = E(() => t.footerColumns ?? NaN), i = he(l), s = he(n), u = E(() => o.value || 5), d = E(() => a.value || 3), f = E(
  8863. () => t.headerColumns === void 0 ? u.value : i.value
  8864. ), g = E(
  8865. () => t.footerColumns === void 0 ? u.value : s.value
  8866. ), p = r(() => t.hideHeader), y = r(() => t.showFooter);
  8867. return (b, V) => (m(), x(go, null, {
  8868. default: R(() => [
  8869. v(p) ? J("", !0) : A(b.$slots, "thead", { key: 0 }, () => [
  8870. ee("thead", null, [
  8871. ee("tr", null, [
  8872. (m(!0), N(ge, null, Te(f.value, (C, c) => (m(), N("th", { key: c }, [
  8873. ye(Ue, {
  8874. size: b.headerSize,
  8875. variant: b.headerVariant,
  8876. animation: b.headerAnimation,
  8877. width: b.headerCellWidth
  8878. }, null, 8, ["size", "variant", "animation", "width"])
  8879. ]))), 128))
  8880. ])
  8881. ])
  8882. ]),
  8883. A(b.$slots, "default", {}, () => [
  8884. ee("tbody", null, [
  8885. (m(!0), N(ge, null, Te(d.value, (C, c) => (m(), N("tr", { key: c }, [
  8886. (m(!0), N(ge, null, Te(u.value, (h, B) => (m(), N("td", { key: B }, [
  8887. ye(Ue, {
  8888. size: b.size,
  8889. variant: b.variant,
  8890. animation: b.animation,
  8891. width: b.cellWidth
  8892. }, null, 8, ["size", "variant", "animation", "width"])
  8893. ]))), 128))
  8894. ]))), 128))
  8895. ])
  8896. ]),
  8897. v(y) ? A(b.$slots, "tfoot", { key: 1 }, () => [
  8898. ee("tfoot", null, [
  8899. ee("tr", null, [
  8900. (m(!0), N(ge, null, Te(g.value, (C, c) => (m(), N("th", { key: c }, [
  8901. ye(Ue, {
  8902. size: b.footerSize,
  8903. variant: b.footerVariant,
  8904. animation: b.footerAnimation,
  8905. width: b.footerCellWidth
  8906. }, null, 8, ["size", "variant", "animation", "width"])
  8907. ]))), 128))
  8908. ])
  8909. ])
  8910. ]) : J("", !0)
  8911. ]),
  8912. _: 3
  8913. }));
  8914. }
  8915. }), Qd = /* @__PURE__ */ q({
  8916. __name: "BPlaceholderWrapper",
  8917. props: {
  8918. loading: { type: [String, Boolean], default: !1 }
  8919. },
  8920. setup(e) {
  8921. const t = e, o = r(() => t.loading);
  8922. return (a, l) => v(o) ? A(a.$slots, "loading", { key: 0 }) : A(a.$slots, "default", { key: 1 });
  8923. }
  8924. }), ec = ["aria-valuenow", "aria-valuemax"], _n = /* @__PURE__ */ q({
  8925. __name: "BProgressBar",
  8926. props: {
  8927. animated: { type: [String, Boolean], default: !1 },
  8928. label: { default: void 0 },
  8929. labelHtml: { default: void 0 },
  8930. max: { default: void 0 },
  8931. precision: { default: 0 },
  8932. showProgress: { type: [String, Boolean], default: !1 },
  8933. showValue: { type: [String, Boolean], default: !1 },
  8934. striped: { type: [String, Boolean], default: !1 },
  8935. value: { default: 0 },
  8936. variant: { default: null },
  8937. bgVariant: { default: null },
  8938. textVariant: { default: null }
  8939. },
  8940. setup(e) {
  8941. const t = e, o = Ge(Jl, null), a = r(() => t.animated), l = r(() => t.showProgress), n = r(() => t.showValue), i = r(() => t.striped), s = Qe(t), u = w(() => [
  8942. s.value,
  8943. {
  8944. "progress-bar-animated": a.value || (o == null ? void 0 : o.animated.value),
  8945. "progress-bar-striped": i.value || (o == null ? void 0 : o.striped.value) || a.value || (o == null ? void 0 : o.animated.value)
  8946. }
  8947. ]), d = he(() => t.precision), f = he(() => t.value), g = he(() => t.max ?? NaN), p = he(() => (o == null ? void 0 : o.max.value) ?? NaN), y = w(
  8948. () => t.labelHtml !== void 0 ? t.labelHtml : n.value || o != null && o.showValue.value ? f.value.toFixed(d.value) : l.value || o != null && o.showProgress.value ? (f.value * 100 / (g.value || 100)).toFixed(d.value) : t.label !== void 0 ? t.label : ""
  8949. ), b = w(
  8950. () => p.value ? `${f.value * 100 / p.value}%` : g.value ? `${f.value * 100 / g.value}%` : typeof t.value == "string" ? t.value : `${t.value}%`
  8951. );
  8952. return (V, C) => (m(), N("div", {
  8953. class: j(["progress-bar", u.value]),
  8954. role: "progressbar",
  8955. "aria-valuenow": V.value,
  8956. "aria-valuemin": "0",
  8957. "aria-valuemax": V.max,
  8958. style: ze({ width: b.value })
  8959. }, [
  8960. A(V.$slots, "default", {}, () => [
  8961. ne(Z(y.value), 1)
  8962. ])
  8963. ], 14, ec));
  8964. }
  8965. }), Vn = /* @__PURE__ */ q({
  8966. __name: "BProgress",
  8967. props: {
  8968. height: { default: void 0 },
  8969. animated: { type: [String, Boolean], default: void 0 },
  8970. max: { default: 100 },
  8971. precision: { default: void 0 },
  8972. showProgress: { type: [String, Boolean], default: void 0 },
  8973. showValue: { type: [String, Boolean], default: void 0 },
  8974. striped: { type: [String, Boolean], default: void 0 },
  8975. value: { default: void 0 },
  8976. variant: { default: void 0 },
  8977. bgVariant: { default: void 0 },
  8978. textVariant: { default: void 0 }
  8979. },
  8980. setup(e) {
  8981. const t = e, o = r(() => t.animated), a = r(() => t.showProgress), l = r(() => t.showValue), n = r(() => t.striped);
  8982. return at(Jl, {
  8983. animated: o,
  8984. max: E(() => t.max),
  8985. showProgress: a,
  8986. showValue: l,
  8987. striped: n
  8988. }), (i, s) => (m(), N("div", {
  8989. class: "progress",
  8990. style: ze({ height: i.height })
  8991. }, [
  8992. A(i.$slots, "default", {}, () => [
  8993. ye(_n, {
  8994. animated: i.animated,
  8995. max: i.max,
  8996. precision: i.precision,
  8997. "show-progress": i.showProgress,
  8998. "show-value": i.showValue,
  8999. striped: i.striped,
  9000. value: i.value,
  9001. variant: i.variant,
  9002. "text-variant": i.textVariant,
  9003. "bg-variant": i.bgVariant
  9004. }, null, 8, ["animated", "max", "precision", "show-progress", "show-value", "striped", "value", "variant", "text-variant", "bg-variant"])
  9005. ])
  9006. ], 4));
  9007. }
  9008. }), Jo = wa("cols", [""], { type: [String, Number], default: null }), tc = q({
  9009. name: "BRow",
  9010. slots: Object,
  9011. props: {
  9012. tag: { type: String, default: "div" },
  9013. gutterX: { type: String, default: null },
  9014. gutterY: { type: String, default: null },
  9015. noGutters: { type: [Boolean, String], default: !1 },
  9016. alignV: { type: String, default: null },
  9017. alignH: { type: String, default: null },
  9018. alignContent: { type: String, default: null },
  9019. ...Jo
  9020. },
  9021. setup(e) {
  9022. const t = r(() => e.noGutters), o = Zt(() => e.alignH), a = w(() => Kl(e, Jo, "cols", "row-cols"));
  9023. return {
  9024. computedClasses: w(() => [
  9025. a.value,
  9026. {
  9027. [`gx-${e.gutterX}`]: e.gutterX !== null,
  9028. [`gy-${e.gutterY}`]: e.gutterY !== null,
  9029. "g-0": t.value,
  9030. [`align-items-${e.alignV}`]: e.alignV !== null,
  9031. [o.value]: e.alignH !== null,
  9032. [`align-content-${e.alignContent}`]: e.alignContent !== null
  9033. }
  9034. ])
  9035. };
  9036. }
  9037. });
  9038. function ac(e, t, o, a, l, n) {
  9039. return m(), x(se(e.tag), {
  9040. class: j(["row", e.computedClasses])
  9041. }, {
  9042. default: R(() => [
  9043. A(e.$slots, "default")
  9044. ]),
  9045. _: 3
  9046. }, 8, ["class"]);
  9047. }
  9048. const oc = /* @__PURE__ */ $a(tc, [["render", ac]]), An = /* @__PURE__ */ q({
  9049. __name: "BTbody",
  9050. props: {
  9051. variant: { default: null }
  9052. },
  9053. setup(e) {
  9054. const t = e, o = w(() => ({
  9055. [`thead-${t.variant}`]: t.variant !== null
  9056. }));
  9057. return (a, l) => (m(), N("tbody", {
  9058. class: j(o.value)
  9059. }, [
  9060. A(a.$slots, "default")
  9061. ], 2));
  9062. }
  9063. }), lc = ["scope", "colspan", "rowspan", "data-label"], nc = { key: 0 }, Et = /* @__PURE__ */ q({
  9064. __name: "BTd",
  9065. props: {
  9066. colspan: { default: void 0 },
  9067. rowspan: { default: void 0 },
  9068. stackedHeading: { default: void 0 },
  9069. stickyColumn: { type: [String, Boolean], default: !1 },
  9070. variant: { default: null }
  9071. },
  9072. setup(e) {
  9073. const t = e, o = r(() => t.stickyColumn), a = w(() => ({
  9074. [`table-${t.variant}`]: t.variant !== null,
  9075. "b-table-sticky-column": o.value,
  9076. "table-b-table-default": o.value && t.variant === null
  9077. })), l = E(() => t.colspan ? "colspan" : t.rowspan ? "rowspan" : "col");
  9078. return (n, i) => (m(), N("td", {
  9079. scope: l.value,
  9080. class: j(a.value),
  9081. colspan: n.colspan,
  9082. rowspan: n.rowspan,
  9083. "data-label": n.stackedHeading
  9084. }, [
  9085. n.stackedHeading ? (m(), N("div", nc, [
  9086. A(n.$slots, "default")
  9087. ])) : A(n.$slots, "default", { key: 1 })
  9088. ], 10, lc));
  9089. }
  9090. }), qa = /* @__PURE__ */ q({
  9091. __name: "BTfoot",
  9092. props: {
  9093. variant: { default: null }
  9094. },
  9095. setup(e) {
  9096. const t = e, o = w(() => ({
  9097. [`table-${t.variant}`]: t.variant !== null
  9098. }));
  9099. return (a, l) => (m(), N("tfoot", {
  9100. class: j(o.value)
  9101. }, [
  9102. A(a.$slots, "default")
  9103. ], 2));
  9104. }
  9105. }), sc = ["scope", "colspan", "rowspan", "data-label"], ic = { key: 0 }, Ga = /* @__PURE__ */ q({
  9106. __name: "BTh",
  9107. props: {
  9108. colspan: { default: void 0 },
  9109. rowspan: { default: void 0 },
  9110. stackedHeading: { default: void 0 },
  9111. stickyColumn: { type: [String, Boolean], default: !1 },
  9112. variant: { default: null }
  9113. },
  9114. setup(e) {
  9115. const t = e, o = r(() => t.stickyColumn), a = w(() => ({
  9116. [`table-${t.variant}`]: t.variant !== null,
  9117. "b-table-sticky-column": o.value,
  9118. "table-b-table-default": o.value && t.variant === null
  9119. })), l = E(() => t.colspan ? "colspan" : t.rowspan ? "rowspan" : "col");
  9120. return (n, i) => (m(), N("th", {
  9121. scope: l.value,
  9122. class: j(a.value),
  9123. colspan: n.colspan,
  9124. rowspan: n.rowspan,
  9125. "data-label": n.stackedHeading
  9126. }, [
  9127. n.stackedHeading !== void 0 ? (m(), N("div", ic, [
  9128. A(n.$slots, "default")
  9129. ])) : A(n.$slots, "default", { key: 1 })
  9130. ], 10, sc));
  9131. }
  9132. }), On = /* @__PURE__ */ q({
  9133. __name: "BThead",
  9134. props: {
  9135. variant: { default: null }
  9136. },
  9137. setup(e) {
  9138. const t = e, o = w(() => ({
  9139. [`table-${t.variant}`]: t.variant !== null
  9140. }));
  9141. return (a, l) => (m(), N("thead", {
  9142. class: j(o.value)
  9143. }, [
  9144. A(a.$slots, "default")
  9145. ], 2));
  9146. }
  9147. }), lt = /* @__PURE__ */ q({
  9148. __name: "BTr",
  9149. props: {
  9150. variant: { default: null }
  9151. },
  9152. setup(e) {
  9153. const t = e, o = w(() => ({
  9154. [`table-${t.variant}`]: t.variant !== null
  9155. }));
  9156. return (a, l) => (m(), N("tr", {
  9157. class: j(o.value)
  9158. }, [
  9159. A(a.$slots, "default")
  9160. ], 2));
  9161. }
  9162. }), rc = {
  9163. key: 0,
  9164. class: "b-table-stacked-label"
  9165. }, uc = { class: "d-inline-flex flex-nowrap align-items-center gap-1" }, dc = { key: 2 }, En = /* @__PURE__ */ q({
  9166. __name: "BTableLite",
  9167. props: {
  9168. align: { default: void 0 },
  9169. caption: { default: void 0 },
  9170. captionHtml: { default: void 0 },
  9171. detailsTdClass: { default: void 0 },
  9172. emptyFilteredText: { default: "There are no records matching your request" },
  9173. emptyText: { default: "There are no records to show" },
  9174. fieldColumnClass: { type: [Function, String, Object, Array], default: void 0 },
  9175. fields: { default: () => [] },
  9176. footClone: { type: [String, Boolean], default: !1 },
  9177. footRowVariant: { default: void 0 },
  9178. footVariant: { default: void 0 },
  9179. headRowVariant: { default: void 0 },
  9180. headVariant: { default: void 0 },
  9181. items: { default: () => [] },
  9182. labelStacked: { type: [String, Boolean], default: !1 },
  9183. modelValue: { default: void 0 },
  9184. primaryKey: { default: void 0 },
  9185. showEmpty: { type: [String, Boolean], default: !1 },
  9186. tbodyClass: { default: void 0 },
  9187. tbodyTrAttr: { default: void 0 },
  9188. tbodyTrClass: { type: [Function, String, Object, Array], default: void 0 },
  9189. tfootClass: { default: void 0 },
  9190. tfootTrClass: { default: void 0 },
  9191. theadClass: { default: void 0 },
  9192. theadTrClass: { default: void 0 },
  9193. bordered: { type: [String, Boolean], default: void 0 },
  9194. borderless: { type: [String, Boolean], default: void 0 },
  9195. borderVariant: { default: void 0 },
  9196. captionTop: { type: [String, Boolean], default: void 0 },
  9197. dark: { type: [String, Boolean], default: void 0 },
  9198. fixed: { type: [String, Boolean], default: void 0 },
  9199. hover: { type: [String, Boolean], default: void 0 },
  9200. id: { default: void 0 },
  9201. noBorderCollapse: { type: [String, Boolean], default: void 0 },
  9202. outlined: { type: [String, Boolean], default: void 0 },
  9203. responsive: { type: [String, Boolean], default: void 0 },
  9204. small: { type: [String, Boolean], default: void 0 },
  9205. stacked: { type: [String, Boolean], default: void 0 },
  9206. stickyHeader: { type: [String, Boolean], default: void 0 },
  9207. striped: { type: [String, Boolean], default: void 0 },
  9208. stripedColumns: { type: [String, Boolean], default: void 0 },
  9209. tableClass: { default: void 0 },
  9210. variant: { default: void 0 }
  9211. },
  9212. emits: ["head-clicked", "row-clicked", "row-dbl-clicked", "row-hovered", "row-unhovered"],
  9213. setup(e, { emit: t }) {
  9214. const o = e, a = t, l = r(() => o.footClone), n = r(() => o.labelStacked), i = r(() => o.showEmpty), s = r(() => o.stacked), u = w(() => [
  9215. o.tableClass,
  9216. {
  9217. [`align-${o.align}`]: o.align !== void 0
  9218. }
  9219. ]), d = w(() => !o.fields.length && o.items.length ? Object.keys(o.items[0]).map((c) => {
  9220. const h = _a(c);
  9221. return {
  9222. key: c,
  9223. label: h,
  9224. tdAttr: s.value === !0 ? { "data-label": h } : void 0
  9225. };
  9226. }) : o.fields.map((c) => {
  9227. if (typeof c == "string") {
  9228. const h = _a(c);
  9229. return {
  9230. key: c,
  9231. label: h,
  9232. tdAttr: s.value === !0 ? { "data-label": h } : void 0
  9233. };
  9234. }
  9235. return {
  9236. ...c,
  9237. tdAttr: s.value === !0 ? { "data-label": _a(c.key), ...c.tdAttr } : c.tdAttr
  9238. };
  9239. })), f = E(() => d.value.length), g = (c, h, B) => {
  9240. const _ = No(c, h);
  9241. return B && typeof B == "function" ? B(_, h, c) : _;
  9242. }, p = (c, h, B = !1) => {
  9243. const _ = typeof c == "string" ? c : c.key;
  9244. a("head-clicked", _, c, h, B);
  9245. }, y = (c) => {
  9246. c._showDetails = !c._showDetails;
  9247. }, b = (c) => [
  9248. c.class,
  9249. c.thClass,
  9250. {
  9251. "b-table-sticky-column": c.stickyColumn
  9252. },
  9253. o.fieldColumnClass ? typeof o.fieldColumnClass == "function" ? o.fieldColumnClass(c) : o.fieldColumnClass : null
  9254. ], V = (c, h) => {
  9255. var B;
  9256. return [
  9257. c.class,
  9258. c.tdClass,
  9259. (B = h._cellVariants) != null && B[c.key] ? `table-${h._cellVariants[c.key]}` : null,
  9260. {
  9261. "b-table-sticky-column": c.stickyColumn
  9262. }
  9263. ];
  9264. }, C = (c, h) => o.tbodyTrClass ? typeof o.tbodyTrClass == "function" ? o.tbodyTrClass(c, h) : o.tbodyTrClass : null;
  9265. return (c, h) => (m(), x(go, {
  9266. id: c.id,
  9267. bordered: c.bordered,
  9268. borderless: c.borderless,
  9269. "border-variant": c.borderVariant,
  9270. "caption-top": c.captionTop,
  9271. dark: c.dark,
  9272. fixed: c.fixed,
  9273. hover: c.hover,
  9274. "no-border-collapse": c.noBorderCollapse,
  9275. outlined: c.outlined,
  9276. responsive: c.responsive,
  9277. small: c.small,
  9278. stacked: v(s),
  9279. "sticky-header": c.stickyHeader,
  9280. striped: c.striped,
  9281. "table-class": u.value,
  9282. variant: c.variant,
  9283. "striped-columns": c.stripedColumns
  9284. }, {
  9285. default: R(() => [
  9286. ye(On, {
  9287. variant: c.headVariant,
  9288. class: j(c.theadClass)
  9289. }, {
  9290. default: R(() => [
  9291. c.$slots["thead-top"] ? A(c.$slots, "thead-top", { key: 0 }) : J("", !0),
  9292. ye(lt, {
  9293. variant: c.headRowVariant,
  9294. class: j(c.theadTrClass)
  9295. }, {
  9296. default: R(() => [
  9297. (m(!0), N(ge, null, Te(d.value, (B) => (m(), x(Ga, Q({
  9298. key: B.key,
  9299. scope: "col",
  9300. class: b(B),
  9301. title: B.headerTitle,
  9302. variant: B.variant,
  9303. abbr: B.headerAbbr,
  9304. style: B.thStyle
  9305. }, B.thAttr, {
  9306. onClick: (_) => p(B, _)
  9307. }), {
  9308. default: R(() => [
  9309. A(c.$slots, c.$slots[`head(${B.key})`] ? `head(${B.key})` : "head()", {
  9310. label: B.label,
  9311. column: B.key,
  9312. field: B,
  9313. isFoot: !1
  9314. }, () => [
  9315. ne(Z(v(ia)(B)), 1)
  9316. ])
  9317. ]),
  9318. _: 2
  9319. }, 1040, ["class", "title", "variant", "abbr", "style", "onClick"]))), 128))
  9320. ]),
  9321. _: 3
  9322. }, 8, ["variant", "class"]),
  9323. c.$slots["thead-sub"] ? (m(), x(lt, { key: 1 }, {
  9324. default: R(() => [
  9325. (m(!0), N(ge, null, Te(d.value, (B) => (m(), x(Et, {
  9326. key: B.key,
  9327. scope: "col",
  9328. variant: B.variant,
  9329. class: j([B.class, B.thClass])
  9330. }, {
  9331. default: R(() => [
  9332. A(c.$slots, "thead-sub", Q({ items: d.value }, B), () => [
  9333. ne(Z(B.label), 1)
  9334. ])
  9335. ]),
  9336. _: 2
  9337. }, 1032, ["variant", "class"]))), 128))
  9338. ]),
  9339. _: 3
  9340. })) : J("", !0)
  9341. ]),
  9342. _: 3
  9343. }, 8, ["variant", "class"]),
  9344. ye(An, {
  9345. class: j(c.tbodyClass)
  9346. }, {
  9347. default: R(() => [
  9348. A(c.$slots, "custom-body", {
  9349. fields: d.value,
  9350. items: c.items,
  9351. columns: d.value.length
  9352. }, () => [
  9353. !v(s) && c.$slots["top-row"] ? (m(), x(lt, { key: 0 }, {
  9354. default: R(() => [
  9355. A(c.$slots, "top-row")
  9356. ]),
  9357. _: 3
  9358. })) : J("", !0),
  9359. (m(!0), N(ge, null, Te(c.items, (B, _) => (m(), N(ge, { key: _ }, [
  9360. ye(lt, {
  9361. class: j(C(B, "row")),
  9362. variant: B._rowVariant,
  9363. onClick: (k) => !v(ea)(k) && a("row-clicked", B, _, k),
  9364. onDblclick: (k) => !v(ea)(k) && a("row-dbl-clicked", B, _, k),
  9365. onMouseenter: (k) => !v(ea)(k) && a("row-hovered", B, _, k),
  9366. onMouseleave: (k) => !v(ea)(k) && a("row-unhovered", B, _, k)
  9367. }, {
  9368. default: R(() => [
  9369. (m(!0), N(ge, null, Te(d.value, (k) => {
  9370. var S;
  9371. return m(), x(Et, Q({
  9372. key: k.key,
  9373. variant: (S = B._cellVariants) != null && S[k.key] ? null : k.variant,
  9374. class: V(k, B)
  9375. }, k.tdAttr), {
  9376. default: R(() => [
  9377. v(s) && v(n) ? (m(), N("label", rc, Z(v(ia)(k)), 1)) : J("", !0),
  9378. A(c.$slots, c.$slots[`cell(${k.key})`] ? `cell(${k.key})` : "cell()", {
  9379. value: v(No)(B, k.key),
  9380. index: _,
  9381. item: B,
  9382. field: k,
  9383. items: c.items,
  9384. toggleDetails: () => {
  9385. y(B);
  9386. },
  9387. detailsShowing: B._showDetails ?? !1
  9388. }, () => [
  9389. ne(Z(g(B, k.key, k.formatter)), 1)
  9390. ])
  9391. ]),
  9392. _: 2
  9393. }, 1040, ["variant", "class"]);
  9394. }), 128))
  9395. ]),
  9396. _: 2
  9397. }, 1032, ["class", "variant", "onClick", "onDblclick", "onMouseenter", "onMouseleave"]),
  9398. B._showDetails === !0 && c.$slots["row-details"] ? (m(), x(lt, {
  9399. key: 0,
  9400. class: j(C(B, "row-details")),
  9401. variant: B._rowVariant
  9402. }, {
  9403. default: R(() => [
  9404. ye(Et, { colspan: f.value }, {
  9405. default: R(() => [
  9406. A(c.$slots, "row-details", {
  9407. item: B,
  9408. toggleDetails: () => {
  9409. y(B);
  9410. },
  9411. fields: c.fields,
  9412. index: _
  9413. })
  9414. ]),
  9415. _: 2
  9416. }, 1032, ["colspan"])
  9417. ]),
  9418. _: 2
  9419. }, 1032, ["class", "variant"])) : J("", !0)
  9420. ], 64))), 128)),
  9421. v(i) && c.items.length === 0 ? (m(), x(lt, {
  9422. key: 1,
  9423. class: "b-table-empty-slot"
  9424. }, {
  9425. default: R(() => [
  9426. ye(Et, { colspan: f.value }, {
  9427. default: R(() => [
  9428. A(c.$slots, "empty", { items: c.items }, () => [
  9429. ne(Z(c.emptyText), 1)
  9430. ])
  9431. ]),
  9432. _: 3
  9433. }, 8, ["colspan"])
  9434. ]),
  9435. _: 3
  9436. })) : J("", !0),
  9437. !v(s) && c.$slots["bottom-row"] ? (m(), x(lt, { key: 2 }, {
  9438. default: R(() => [
  9439. A(c.$slots, "bottom-row")
  9440. ]),
  9441. _: 3
  9442. })) : J("", !0)
  9443. ])
  9444. ]),
  9445. _: 3
  9446. }, 8, ["class"]),
  9447. v(l) ? (m(), x(qa, {
  9448. key: 0,
  9449. variant: c.footVariant,
  9450. class: j(c.tfootClass)
  9451. }, {
  9452. default: R(() => [
  9453. ye(lt, {
  9454. variant: c.footRowVariant,
  9455. class: j(c.tfootTrClass)
  9456. }, {
  9457. default: R(() => [
  9458. (m(!0), N(ge, null, Te(d.value, (B) => (m(), x(Ga, Q({
  9459. key: B.key,
  9460. scope: "col",
  9461. class: b(B),
  9462. title: B.headerTitle,
  9463. abbr: B.headerAbbr,
  9464. style: B.thStyle,
  9465. variant: B.variant
  9466. }, B.thAttr, {
  9467. onClick: (_) => p(B, _, !0)
  9468. }), {
  9469. default: R(() => [
  9470. ee("div", uc, [
  9471. ee("div", null, [
  9472. A(c.$slots, c.$slots[`foot(${B.key})`] ? `foot(${B.key})` : "foot()", {
  9473. label: B.label,
  9474. column: B.key,
  9475. field: B,
  9476. isFoot: !0
  9477. }, () => [
  9478. ne(Z(v(ia)(B)), 1)
  9479. ])
  9480. ])
  9481. ])
  9482. ]),
  9483. _: 2
  9484. }, 1040, ["class", "title", "abbr", "style", "variant", "onClick"]))), 128))
  9485. ]),
  9486. _: 3
  9487. }, 8, ["variant", "class"])
  9488. ]),
  9489. _: 3
  9490. }, 8, ["variant", "class"])) : c.$slots["custom-foot"] ? (m(), x(qa, { key: 1 }, {
  9491. default: R(() => [
  9492. A(c.$slots, "custom-foot", {
  9493. fields: d.value,
  9494. items: c.items,
  9495. columns: d.value.length
  9496. })
  9497. ]),
  9498. _: 3
  9499. })) : J("", !0),
  9500. c.$slots["table-caption"] || c.caption ? (m(), N("caption", dc, [
  9501. A(c.$slots, "table-caption", {}, () => [
  9502. ne(Z(c.caption), 1)
  9503. ])
  9504. ])) : J("", !0)
  9505. ]),
  9506. _: 3
  9507. }, 8, ["id", "bordered", "borderless", "border-variant", "caption-top", "dark", "fixed", "hover", "no-border-collapse", "outlined", "responsive", "small", "stacked", "sticky-header", "striped", "table-class", "variant", "striped-columns"]));
  9508. }
  9509. }), cc = /* @__PURE__ */ ee("path", {
  9510. "fill-rule": "evenodd",
  9511. d: "M8 12a.5.5 0 0 0 .5-.5V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V11.5a.5.5 0 0 0 .5.5z"
  9512. }, null, -1), fc = [
  9513. cc
  9514. ], vc = /* @__PURE__ */ ee("path", {
  9515. "fill-rule": "evenodd",
  9516. d: "M8 4a.5.5 0 0 1 .5.5v5.793l2.146-2.147a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 1 1 .708-.708L7.5 10.293V4.5A.5.5 0 0 1 8 4z"
  9517. }, null, -1), pc = [
  9518. vc
  9519. ], mc = { class: "d-flex align-items-center gap-2 mt-5" }, gc = /* @__PURE__ */ q({
  9520. __name: "BTable",
  9521. props: {
  9522. provider: { type: Function, default: void 0 },
  9523. sortCompare: { type: Function, default: void 0 },
  9524. noProvider: { default: void 0 },
  9525. noProviderPaging: { type: [String, Boolean], default: !1 },
  9526. noProviderSorting: { type: [String, Boolean], default: !1 },
  9527. noProviderFiltering: { type: [String, Boolean], default: !1 },
  9528. sortBy: { default: void 0 },
  9529. sortDesc: { type: [String, Boolean], default: !1 },
  9530. selectable: { type: [String, Boolean], default: !1 },
  9531. stickySelect: { type: [String, Boolean], default: !1 },
  9532. selectHead: { type: [Boolean, String], default: !0 },
  9533. selectMode: { default: "multi" },
  9534. selectionVariant: { default: "primary" },
  9535. busy: { type: [String, Boolean], default: !1 },
  9536. busyLoadingText: { default: "Loading..." },
  9537. perPage: { default: 1 / 0 },
  9538. currentPage: { default: 1 },
  9539. filter: { default: void 0 },
  9540. filterable: { default: void 0 },
  9541. selectedItems: { default: () => [] },
  9542. noSortableIcon: { type: [String, Boolean], default: !1 },
  9543. align: { default: void 0 },
  9544. caption: { default: void 0 },
  9545. captionHtml: { default: void 0 },
  9546. detailsTdClass: { default: void 0 },
  9547. emptyFilteredText: { default: void 0 },
  9548. emptyText: { default: void 0 },
  9549. fieldColumnClass: { type: [Function, String, Object, Array], default: void 0 },
  9550. fields: { default: () => [] },
  9551. footClone: { type: [String, Boolean], default: void 0 },
  9552. footRowVariant: { default: void 0 },
  9553. footVariant: { default: void 0 },
  9554. headRowVariant: { default: void 0 },
  9555. headVariant: { default: void 0 },
  9556. items: { default: () => [] },
  9557. labelStacked: { type: [String, Boolean], default: void 0 },
  9558. modelValue: { default: void 0 },
  9559. primaryKey: { default: void 0 },
  9560. showEmpty: { type: [String, Boolean], default: void 0 },
  9561. tbodyClass: { default: void 0 },
  9562. tbodyTrAttr: { default: void 0 },
  9563. tbodyTrClass: { type: [Function, String, Object, Array], default: void 0 },
  9564. tfootClass: { default: void 0 },
  9565. tfootTrClass: { default: void 0 },
  9566. theadClass: { default: void 0 },
  9567. theadTrClass: { default: void 0 },
  9568. bordered: { type: [String, Boolean], default: void 0 },
  9569. borderless: { type: [String, Boolean], default: void 0 },
  9570. borderVariant: { default: void 0 },
  9571. captionTop: { type: [String, Boolean], default: void 0 },
  9572. dark: { type: [String, Boolean], default: void 0 },
  9573. fixed: { type: [String, Boolean], default: void 0 },
  9574. hover: { type: [String, Boolean], default: void 0 },
  9575. id: { default: void 0 },
  9576. noBorderCollapse: { type: [String, Boolean], default: void 0 },
  9577. outlined: { type: [String, Boolean], default: void 0 },
  9578. responsive: { type: [String, Boolean], default: void 0 },
  9579. small: { type: [String, Boolean], default: void 0 },
  9580. stacked: { type: [String, Boolean], default: void 0 },
  9581. stickyHeader: { type: [String, Boolean], default: void 0 },
  9582. striped: { type: [String, Boolean], default: void 0 },
  9583. stripedColumns: { type: [String, Boolean], default: void 0 },
  9584. variant: { default: void 0 }
  9585. },
  9586. emits: ["filtered", "head-clicked", "row-clicked", "row-dbl-clicked", "row-hovered", "row-selected", "row-unhovered", "row-unselected", "selection", "sorted", "update:busy", "update:selectedItems", "update:sortDesc", "update:sortBy"],
  9587. setup(e, { expose: t, emit: o }) {
  9588. const a = e, l = o, n = ke(a, "sortBy", l, { passive: !0 }), i = ke(a, "busy", l, { passive: !0 }), s = ke(a, "sortDesc", l, { passive: !0 }), u = ke(a, "selectedItems", l, { passive: !0 }), d = w({
  9589. get: () => /* @__PURE__ */ new Set([...u.value]),
  9590. set: (M) => {
  9591. u.value = [...M];
  9592. }
  9593. }), f = {
  9594. add: (M) => {
  9595. const L = new Set(d.value);
  9596. L.add(M), d.value = L, l("row-selected", M);
  9597. },
  9598. clear: () => {
  9599. d.value.forEach((M) => {
  9600. l("row-unselected", M);
  9601. }), d.value = /* @__PURE__ */ new Set();
  9602. },
  9603. delete: (M) => {
  9604. const L = new Set(d.value);
  9605. L.delete(M), d.value = L, l("row-unselected", M);
  9606. },
  9607. /* TODO
  9608. This has method and the delete method suffer from an error when using a non-reactive source as the items prop
  9609. ```ts
  9610. const items = [{first_name: 'Geneva', last_name: 'Wilson', age: 89},{first_name: 'Jami', last_name: 'Carney', age: 38}]
  9611. ```
  9612. For some reason, the reference of the object gets lost. However, when you use an actual ref(), it works just fine
  9613. Getting the reference properly will fix all outstanding issues
  9614. */
  9615. has: (M) => d.value.has(M)
  9616. }, g = W([]), p = r(s), y = r(i), b = r(() => a.noProviderPaging), V = r(() => a.noProviderSorting), C = r(() => a.noProviderFiltering), c = r(() => a.selectable), h = r(() => a.noSortableIcon), B = he(() => a.perPage, { method: "parseInt" }), _ = he(() => a.currentPage, { method: "parseInt" }), k = E(() => !!a.filter), S = E(() => a.provider !== void 0), $ = E(() => d.value.size > 0), I = w(
  9617. () => n.value !== void 0 || a.fields.some((M) => typeof M == "string" ? !1 : M.sortable)
  9618. ), T = w(
  9619. () => a.fields.map(
  9620. (M) => typeof M == "string" ? M : {
  9621. ...M,
  9622. thAttr: {
  9623. "aria-sort": I.value === !1 ? void 0 : n.value !== M.key ? "none" : p.value === !0 ? "descending" : "ascending",
  9624. ...M.thAttr
  9625. }
  9626. }
  9627. )
  9628. ), O = w(() => ({
  9629. "b-table-busy": y.value,
  9630. "b-table-selectable": c.value,
  9631. "user-select-none": c.value && $.value
  9632. })), F = w(() => [
  9633. a.tbodyTrClass ? typeof a.tbodyTrClass == "function" ? a.tbodyTrClass(null, "table-busy") : a.tbodyTrClass : null
  9634. ]), K = (M) => [
  9635. {
  9636. "b-table-sortable-column": I.value && M.sortable
  9637. }
  9638. ], z = (M, L) => [
  9639. {
  9640. [`selected table-${a.selectionVariant}`]: c.value && M && f.has(M)
  9641. },
  9642. a.tbodyTrClass ? typeof a.tbodyTrClass == "function" ? a.tbodyTrClass(M, L) : a.tbodyTrClass : null
  9643. ], P = (M) => n.value !== M.key ? { opacity: 0.5 } : {}, D = w(() => {
  9644. const M = (H) => {
  9645. const G = n.value;
  9646. if (G === void 0)
  9647. return H;
  9648. const X = T.value.find((te) => typeof te == "string" ? !1 : te.key === G);
  9649. return typeof X != "string" && (X == null ? void 0 : X.sortable) === !1 ? H : [...H].sort((te, be) => {
  9650. if (a.sortCompare !== void 0)
  9651. return a.sortCompare(te, be, G, p.value);
  9652. const me = (de) => typeof de == "object" && de !== null ? JSON.stringify(de) : (de == null ? void 0 : de.toString()) ?? "";
  9653. return me(te[G]) > me(be[G]) ? p.value ? -1 : 1 : me(be[G]) > me(te[G]) ? p.value ? 1 : -1 : 0;
  9654. });
  9655. }, L = (H) => H.filter(
  9656. (G) => Object.entries(G).some(([X, te]) => {
  9657. var me, de;
  9658. return !te || X[0] === "_" || !((me = a.filterable) != null && me.includes(X)) ? !1 : (typeof te == "object" ? JSON.stringify(Object.values(te)) : te.toString()).toLowerCase().includes(((de = a.filter) == null ? void 0 : de.toLowerCase()) ?? "");
  9659. })
  9660. );
  9661. let U = S.value ? g.value : a.items;
  9662. return (k.value === !0 && !S.value || k.value === !0 && S.value && C.value) && (U = L(U)), (I.value === !0 && !S.value || I.value === !0 && S.value && V.value) && (U = M(U)), U;
  9663. }), ae = w(() => Number.isNaN(B.value) || S.value && !b.value ? D.value : D.value.slice(
  9664. (_.value - 1) * (B.value || 1 / 0),
  9665. _.value * (B.value || 1 / 0)
  9666. )), le = (M, L, U = !1, H = !1, G = !1) => {
  9667. if (c.value) {
  9668. if (a.selectMode === "single" || a.selectMode === "multi") {
  9669. if (U || H)
  9670. return;
  9671. f.has(M) ? f.delete(M) : (a.selectMode === "single" && f.clear(), f.add(M));
  9672. } else if (H || G)
  9673. f.has(M) ? f.delete(M) : f.add(M);
  9674. else if (U) {
  9675. const X = [...d.value].pop(), te = a.items.findIndex((de) => de === X), be = Math.min(te, L), me = Math.max(te, L);
  9676. a.items.slice(be, me + 1).forEach((de) => {
  9677. f.has(de) || f.add(de);
  9678. });
  9679. } else
  9680. f.clear(), f.add(M);
  9681. fe();
  9682. }
  9683. }, ve = (M, L, U) => {
  9684. le(M, L, U.shiftKey, U.ctrlKey, U.metaKey), l("row-clicked", M, L, U);
  9685. }, Be = (M) => {
  9686. if (!I.value)
  9687. return;
  9688. const L = typeof M == "string" ? M : M.key, U = typeof M == "string" ? !1 : M.sortable;
  9689. I.value === !0 && U === !0 && (n.value !== L ? (n.value = L, s.value = !1) : p.value === !1 ? s.value = !0 : (n.value = void 0, s.value = !1), l("sorted", L, n.value === void 0 ? !1 : !p.value));
  9690. }, Ve = (M, L, U, H = !1) => {
  9691. l("head-clicked", M, L, U, H), Be(L);
  9692. }, oe = async () => {
  9693. if (!S.value || a.provider === void 0 || y.value)
  9694. return;
  9695. i.value = !0;
  9696. const M = a.provider({
  9697. currentPage: _.value,
  9698. filter: a.filter,
  9699. sortBy: n.value,
  9700. sortDesc: a.sortDesc,
  9701. perPage: B.value
  9702. });
  9703. try {
  9704. const L = M instanceof Promise ? await M : M;
  9705. if (L === void 0)
  9706. return;
  9707. g.value = L;
  9708. } finally {
  9709. i.value = !1;
  9710. }
  9711. }, fe = () => {
  9712. c.value && l("selection", [...d.value]);
  9713. }, $e = async () => {
  9714. if (S.value) {
  9715. await oe();
  9716. return;
  9717. }
  9718. l("filtered", D.value);
  9719. }, we = async (M, L, U) => {
  9720. if (L === U)
  9721. return;
  9722. const H = (be) => {
  9723. var me;
  9724. return ((me = a.noProvider) == null ? void 0 : me.includes(be)) === !0;
  9725. }, G = (M === "currentPage" || M === "perPage") && (H("paging") || b.value === !0), X = M === "filter" && (H("filtering") || C.value === !0), te = (M === "sortBy" || M === "sortDesc") && (H("sorting") || V.value === !0);
  9726. G || X || te || (await oe(), M === "currentPage" || M === "perPage" || $e());
  9727. };
  9728. return ue(
  9729. () => a.filter,
  9730. (M, L) => {
  9731. we("filter", M, L), !(M === L || S.value) && (M || l("filtered", D.value));
  9732. }
  9733. ), ue(_, (M, L) => {
  9734. we("currentPage", M, L);
  9735. }), ue(B, (M, L) => {
  9736. we("perPage", M, L);
  9737. }), ue(n, (M, L) => {
  9738. we("sortBy", M, L);
  9739. }), ue(p, (M, L) => {
  9740. we("sortDesc", M, L);
  9741. }), ue(
  9742. () => a.provider,
  9743. (M) => {
  9744. if (M === void 0) {
  9745. g.value = [];
  9746. return;
  9747. }
  9748. oe();
  9749. }
  9750. ), st(oe), t({
  9751. // The row selection methods are really for compat. Users should probably use the v-model though
  9752. clearSelected: () => {
  9753. c.value && (f.clear(), fe());
  9754. },
  9755. refresh: oe,
  9756. selectAllRows: () => {
  9757. if (!c.value)
  9758. return;
  9759. const M = d.value.size > 0 ? [...d.value] : [];
  9760. d.value = /* @__PURE__ */ new Set([...D.value]), d.value.forEach((L) => {
  9761. M.includes(L) || l("row-selected", L);
  9762. }), fe();
  9763. },
  9764. selectRow: (M) => {
  9765. if (!c.value)
  9766. return;
  9767. const L = D.value[M];
  9768. !L || f.has(L) || (f.add(L), fe());
  9769. },
  9770. unselectRow: (M) => {
  9771. if (!c.value)
  9772. return;
  9773. const L = D.value[M];
  9774. !L || !f.has(L) || (f.delete(L), fe());
  9775. }
  9776. }), (M, L) => (m(), x(En, Q(a, {
  9777. "aria-busy": v(y),
  9778. items: ae.value,
  9779. fields: T.value,
  9780. "table-class": O.value,
  9781. "tbody-tr-class": z,
  9782. "field-column-class": K,
  9783. onHeadClicked: Ve,
  9784. onRowClicked: ve
  9785. }), Ua({
  9786. "head()": R((U) => [
  9787. ne(Z(v(ia)(U.field)) + " ", 1),
  9788. I.value && U.field.sortable && v(h) === !1 ? (m(), N(ge, { key: 0 }, [
  9789. v(p) ? A(M.$slots, "sortDesc", Se(Q({ key: 1 }, { ...U })), () => [
  9790. (m(), N("svg", {
  9791. style: ze(P(U.field)),
  9792. xmlns: "http://www.w3.org/2000/svg",
  9793. width: "16",
  9794. height: "16",
  9795. fill: "currentColor",
  9796. class: "bi bi-arrow-down-short",
  9797. viewBox: "0 0 16 16",
  9798. "aria-hidden": ""
  9799. }, pc, 4))
  9800. ]) : A(M.$slots, "sortAsc", Se(Q({ key: 0 }, { ...U })), () => [
  9801. (m(), N("svg", {
  9802. style: ze(P(U.field)),
  9803. xmlns: "http://www.w3.org/2000/svg",
  9804. width: "16",
  9805. height: "16",
  9806. fill: "currentColor",
  9807. class: "bi bi-arrow-up-short",
  9808. viewBox: "0 0 16 16",
  9809. "aria-hidden": ""
  9810. }, fc, 4))
  9811. ])
  9812. ], 64)) : J("", !0)
  9813. ]),
  9814. "custom-body": R((U) => [
  9815. v(y) ? (m(), x(lt, {
  9816. key: 0,
  9817. class: j(["b-table-busy-slot", F.value])
  9818. }, {
  9819. default: R(() => [
  9820. ye(Et, {
  9821. colspan: U.fields.length
  9822. }, {
  9823. default: R(() => [
  9824. A(M.$slots, "table-busy", {}, () => [
  9825. ye(Ta, { show: "" }, {
  9826. overlay: R(() => [
  9827. ee("div", mc, [
  9828. ye(ka),
  9829. ee("strong", null, Z(M.busyLoadingText), 1)
  9830. ])
  9831. ]),
  9832. _: 1
  9833. })
  9834. ])
  9835. ]),
  9836. _: 2
  9837. }, 1032, ["colspan"])
  9838. ]),
  9839. _: 2
  9840. }, 1032, ["class"])) : J("", !0)
  9841. ]),
  9842. _: 2
  9843. }, [
  9844. Te(M.$slots, (U, H) => ({
  9845. name: H,
  9846. fn: R((G) => [
  9847. A(M.$slots, H, Se(Ee(G)))
  9848. ])
  9849. }))
  9850. ]), 1040, ["aria-busy", "items", "fields", "table-class"]));
  9851. }
  9852. }), bc = /* @__PURE__ */ q({
  9853. inheritAttrs: !1,
  9854. __name: "BTab",
  9855. props: {
  9856. active: { type: [String, Boolean], default: !1 },
  9857. buttonId: { default: void 0 },
  9858. disabled: { type: [String, Boolean], default: !1 },
  9859. id: { default: void 0 },
  9860. lazy: { type: [String, Boolean], default: void 0 },
  9861. lazyOnce: { type: [String, Boolean], default: void 0 },
  9862. noBody: { type: [String, Boolean], default: !1 },
  9863. tag: { default: "div" },
  9864. title: { default: void 0 },
  9865. titleItemClass: { default: void 0 },
  9866. titleLinkAttributes: { default: void 0 },
  9867. titleLinkClass: { default: void 0 }
  9868. },
  9869. emits: ["update:active"],
  9870. setup(e, { emit: t }) {
  9871. const o = e, a = Me(), l = t, n = Ge(Zl, null), i = _e(() => o.id, "tabpane"), s = _e(() => o.buttonId, "tab"), u = r(() => o.active), d = r(() => o.disabled), f = r(() => o.lazyOnce ?? o.lazy), g = r(() => o.noBody), p = W(!1), y = W(null), { onClick: b, ...V } = Kt(), C = w(
  9872. () => ({
  9873. id: i.value,
  9874. buttonId: s.value,
  9875. disabled: d.value,
  9876. title: o.title,
  9877. titleComponent: a.title,
  9878. titleItemClass: o.titleItemClass,
  9879. titleLinkAttributes: o.titleLinkAttributes,
  9880. titleLinkClass: o.titleLinkClass,
  9881. onClick: b,
  9882. el: y.value
  9883. })
  9884. );
  9885. st(() => {
  9886. n && (n.registerTab(C), u.value && n.activateTab(i.value));
  9887. }), Un(() => {
  9888. n && n.unregisterTab(i.value);
  9889. });
  9890. const c = E(() => (n == null ? void 0 : n.activeId.value) === i.value), h = W(c.value), B = E(() => !!(n != null && n.lazy.value || f.value)), _ = E(() => o.lazyOnce !== void 0), k = E(() => c.value && !d.value), S = E(
  9891. () => k.value || !B.value || B.value && _.value && p.value
  9892. );
  9893. ue(c, (I) => {
  9894. if (I) {
  9895. l("update:active", !0), setTimeout(() => {
  9896. h.value = !0;
  9897. }, 0);
  9898. return;
  9899. }
  9900. h.value = !1, l("update:active", !1);
  9901. }), ue(u, (I) => {
  9902. if (n) {
  9903. if (!I) {
  9904. c.value && n.activateTab(void 0);
  9905. return;
  9906. }
  9907. n.activateTab(i.value);
  9908. }
  9909. });
  9910. const $ = w(() => [
  9911. {
  9912. active: c.value,
  9913. show: h.value,
  9914. "card-body": (n == null ? void 0 : n.card.value) && g.value === !1,
  9915. fade: !(n != null && n.noFade.value)
  9916. },
  9917. h.value && (n != null && n.activeTabClass) ? n.activeTabClass : null
  9918. ]);
  9919. return ue(S, (I) => {
  9920. I && !p.value && (p.value = !0);
  9921. }), (I, T) => (m(), x(se(I.tag), Q({
  9922. id: v(i),
  9923. ref_key: "el",
  9924. ref: y,
  9925. class: ["tab-pane", $.value],
  9926. role: "tabpanel",
  9927. "aria-labelledby": v(s)
  9928. }, V), {
  9929. default: R(() => [
  9930. S.value ? A(I.$slots, "default", { key: 0 }) : J("", !0)
  9931. ]),
  9932. _: 3
  9933. }, 16, ["id", "class", "aria-labelledby"]));
  9934. }
  9935. }), yc = ["aria-orientation"], hc = ["id", "aria-controls", "aria-selected", "onClick"], Bc = /* @__PURE__ */ q({
  9936. __name: "BTabs",
  9937. props: {
  9938. activeId: { default: void 0 },
  9939. activeNavItemClass: { default: void 0 },
  9940. activeTabClass: { default: void 0 },
  9941. align: { default: void 0 },
  9942. card: { type: [String, Boolean], default: !1 },
  9943. contentClass: { default: void 0 },
  9944. end: { type: [String, Boolean], default: !1 },
  9945. fill: { type: [String, Boolean], default: !1 },
  9946. id: { default: void 0 },
  9947. justified: { type: [String, Boolean], default: !1 },
  9948. lazy: { type: [String, Boolean], default: !1 },
  9949. modelValue: { default: -1 },
  9950. navClass: { default: void 0 },
  9951. navWrapperClass: { default: void 0 },
  9952. noFade: { type: [String, Boolean], default: !1 },
  9953. noNavStyle: { type: [String, Boolean], default: !1 },
  9954. pills: { type: [String, Boolean], default: !1 },
  9955. small: { type: [String, Boolean], default: !1 },
  9956. tag: { default: "div" },
  9957. vertical: { type: [String, Boolean], default: !1 }
  9958. },
  9959. emits: ["activate-tab", "click", "update:activeId", "update:modelValue"],
  9960. setup(e, { emit: t }) {
  9961. const o = e, a = t, l = ke(o, "modelValue", a, { passive: !0 }), n = ke(o, "activeId", a, { passive: !0 }), i = r(() => o.card), s = r(() => o.end), u = r(() => o.fill), d = r(() => o.justified), f = r(() => o.lazy), g = r(() => o.noFade), p = r(() => o.noNavStyle), y = r(() => o.pills), b = r(() => o.small), V = r(() => o.vertical), C = W([]), c = w(
  9962. () => C.value.map((z) => {
  9963. const P = v(z), D = P.id === n.value;
  9964. return {
  9965. ...P,
  9966. active: D,
  9967. navItemClasses: [
  9968. {
  9969. active: D,
  9970. disabled: P.disabled
  9971. },
  9972. D && o.activeNavItemClass ? o.activeNavItemClass : null,
  9973. P.titleLinkClass
  9974. ]
  9975. };
  9976. })
  9977. ), h = E(() => !(c != null && c.value && c.value.length > 0)), B = w(() => ({
  9978. "d-flex": V.value,
  9979. "align-items-start": V.value
  9980. })), _ = Zt(() => o.align), k = w(() => ({
  9981. "nav-pills": y.value,
  9982. "flex-column me-3": V.value,
  9983. [_.value]: o.align !== void 0,
  9984. "nav-fill": u.value,
  9985. "card-header-tabs": i.value,
  9986. "nav-justified": d.value,
  9987. "nav-tabs": !p.value && !y.value,
  9988. small: b.value
  9989. })), S = (z) => {
  9990. var P;
  9991. if (z !== void 0) {
  9992. const D = (P = c.value[z]) == null ? void 0 : P.id;
  9993. if (z > -1 && z < c.value.length && !c.value[z].disabled && (l.value < 0 || n.value !== D || l.value !== z)) {
  9994. const ae = new dt("activate-tab", { cancelable: !0 });
  9995. a("activate-tab", z, l.value, ae), ae.defaultPrevented || (n.value !== D && (n.value = D), l.value !== z && (l.value = z));
  9996. }
  9997. }
  9998. }, $ = (z, P) => {
  9999. var D, ae, le;
  10000. S(P), P >= 0 && !c.value[P].disabled && ((D = c.value[P]) != null && D.onClick) && typeof c.value[P].onClick == "function" && ((le = (ae = c.value[P]).onClick) == null || le.call(ae, z));
  10001. }, I = (z) => {
  10002. var P, D;
  10003. c.value.length <= 0 || (l.value = T(l.value + z, z), (D = document.getElementById((P = c.value[l.value]) == null ? void 0 : P.buttonId)) == null || D.focus());
  10004. }, T = (z, P) => {
  10005. if (c.value.length <= 0)
  10006. return -1;
  10007. let D = z;
  10008. const ae = c.value.map((ve) => !ve.disabled).lastIndexOf(!0), le = c.value.map((ve) => !ve.disabled).indexOf(!0);
  10009. for (; D >= le && D <= ae && c.value[D].disabled; )
  10010. D += P;
  10011. return D < le && (D = le), D >= ae && (D = ae), D;
  10012. };
  10013. ue(l, (z, P) => {
  10014. if (z === P || c.value.length <= 0)
  10015. return;
  10016. const D = T(z, z > P ? 1 : -1);
  10017. Ne(() => {
  10018. S(D);
  10019. });
  10020. }), ue(n, (z, P) => {
  10021. const D = c.value.findIndex((ae) => ae.id === z);
  10022. if (z !== P && !(c.value.length <= 0)) {
  10023. if (D === -1) {
  10024. S(T(0, 1));
  10025. return;
  10026. }
  10027. S(D);
  10028. }
  10029. });
  10030. const O = (z) => {
  10031. C.value.find((P) => P.value.id === z.value.id) ? C.value[C.value.findIndex((P) => P.value.id === z.value.id)] = z : C.value.push(z), C.value = C.value.sort((P, D) => {
  10032. if (!Node || !P.value.el || !D.value.el)
  10033. return 0;
  10034. const ae = P.value.el.compareDocumentPosition(D.value.el);
  10035. return ae & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : ae & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
  10036. });
  10037. }, F = (z) => {
  10038. C.value.find((P) => P.value.id === z) && C.value.splice(
  10039. C.value.findIndex((P) => P.value.id === z),
  10040. 1
  10041. );
  10042. };
  10043. ue(
  10044. C,
  10045. () => {
  10046. K();
  10047. },
  10048. { deep: !0 }
  10049. );
  10050. const K = () => {
  10051. var z;
  10052. if (c.value.length === 0) {
  10053. l.value = -1, n.value = void 0;
  10054. return;
  10055. }
  10056. if (l.value >= 0 && !n.value && (n.value = (z = c.value[l.value]) == null ? void 0 : z.id), c.value.find((P) => P.id === n.value)) {
  10057. S(c.value.findIndex((P) => P.id === n.value));
  10058. return;
  10059. }
  10060. S(c.value.map((P) => !P.disabled).indexOf(!0));
  10061. };
  10062. return at(Zl, {
  10063. lazy: f,
  10064. card: i,
  10065. noFade: g,
  10066. activeTabClass: E(() => o.activeTabClass),
  10067. registerTab: O,
  10068. unregisterTab: F,
  10069. activeId: n,
  10070. activateTab: (z) => {
  10071. const P = c.value.findIndex((D) => D.id === z);
  10072. if (z === void 0 || P === -1) {
  10073. S(T(0, 1));
  10074. return;
  10075. }
  10076. S(P);
  10077. }
  10078. }), (z, P) => (m(), x(se(z.tag), {
  10079. id: z.id,
  10080. class: j(["tabs", B.value])
  10081. }, {
  10082. default: R(() => [
  10083. v(s) ? (m(), N("div", {
  10084. key: 0,
  10085. class: j(["tab-content", z.contentClass])
  10086. }, [
  10087. A(z.$slots, "default"),
  10088. h.value ? (m(), N("div", {
  10089. key: "bv-empty-tab",
  10090. class: j(["tab-pane active", { "card-body": v(i) }])
  10091. }, [
  10092. A(z.$slots, "empty")
  10093. ], 2)) : J("", !0)
  10094. ], 2)) : J("", !0),
  10095. ee("div", {
  10096. class: j([z.navWrapperClass, { "card-header": v(i), "ms-auto": z.vertical && v(s) }])
  10097. }, [
  10098. ee("ul", {
  10099. class: j(["nav", [k.value, z.navClass]]),
  10100. role: "tablist",
  10101. "aria-orientation": z.vertical ? "vertical" : "horizontal"
  10102. }, [
  10103. A(z.$slots, "tabs-start"),
  10104. (m(!0), N(ge, null, Te(c.value, (D, ae) => (m(), N("li", {
  10105. key: D.id,
  10106. class: j(["nav-item", D.titleItemClass]),
  10107. role: "presentation"
  10108. }, [
  10109. ee("button", Q({
  10110. id: D.buttonId,
  10111. class: ["nav-link", D.navItemClasses],
  10112. role: "tab",
  10113. "aria-controls": D.id,
  10114. "aria-selected": D.active
  10115. }, D.titleLinkAttributes, {
  10116. onKeydown: [
  10117. P[0] || (P[0] = Qt(Bt((le) => I(-1), ["stop", "prevent"]), ["left"])),
  10118. P[1] || (P[1] = Qt(Bt((le) => I(1), ["stop", "prevent"]), ["right"])),
  10119. P[2] || (P[2] = Qt(Bt((le) => I(-999), ["stop", "prevent"]), ["page-up"])),
  10120. P[3] || (P[3] = Qt(Bt((le) => I(999), ["stop", "prevent"]), ["page-down"]))
  10121. ],
  10122. onClick: Bt((le) => $(le, ae), ["stop", "prevent"])
  10123. }), [
  10124. D.titleComponent ? (m(), x(se(D.titleComponent), { key: 0 })) : (m(), N(ge, { key: 1 }, [
  10125. ne(Z(D.title), 1)
  10126. ], 64))
  10127. ], 16, hc)
  10128. ], 2))), 128)),
  10129. A(z.$slots, "tabs-end")
  10130. ], 10, yc)
  10131. ], 2),
  10132. v(s) ? J("", !0) : (m(), N("div", {
  10133. key: 1,
  10134. class: j(["tab-content", z.contentClass])
  10135. }, [
  10136. A(z.$slots, "default"),
  10137. h.value ? (m(), N("div", {
  10138. key: "bv-empty-tab",
  10139. class: j(["tab-pane active", { "card-body": v(i) }])
  10140. }, [
  10141. A(z.$slots, "empty")
  10142. ], 2)) : J("", !0)
  10143. ], 2))
  10144. ]),
  10145. _: 3
  10146. }, 8, ["id", "class"]));
  10147. }
  10148. }), Sc = ["id", "role", "aria-live", "aria-atomic"], Cc = { class: "me-auto" }, Pn = /* @__PURE__ */ q({
  10149. __name: "BToast",
  10150. props: {
  10151. animation: { type: [String, Boolean], default: !0 },
  10152. autoHide: { type: [String, Boolean], default: !0 },
  10153. body: { default: void 0 },
  10154. bodyClass: { default: void 0 },
  10155. delay: { default: 5e3 },
  10156. headerClass: { default: void 0 },
  10157. headerTag: { default: "div" },
  10158. id: { default: void 0 },
  10159. interval: { default: 1e3 },
  10160. isStatus: { type: [String, Boolean], default: !1 },
  10161. modelValue: { type: [Boolean, Number], default: !1 },
  10162. noCloseButton: { type: [String, Boolean], default: !1 },
  10163. noFade: { type: [String, Boolean], default: !1 },
  10164. noHoverPause: { type: [String, Boolean], default: !1 },
  10165. progressProps: { default: void 0 },
  10166. showOnPause: { type: [String, Boolean], default: !0 },
  10167. solid: { type: [String, Boolean], default: !1 },
  10168. title: { default: void 0 },
  10169. toastClass: { default: void 0 },
  10170. variant: { default: void 0 },
  10171. bgVariant: { default: null },
  10172. textVariant: { default: null },
  10173. active: { type: [String, Boolean], default: void 0 },
  10174. activeClass: { default: void 0 },
  10175. append: { type: [String, Boolean], default: void 0 },
  10176. disabled: { type: [String, Boolean], default: void 0 },
  10177. exactActiveClass: { default: void 0 },
  10178. href: { default: void 0 },
  10179. icon: { type: [String, Boolean], default: void 0 },
  10180. opacity: { default: void 0 },
  10181. opacityHover: { default: void 0 },
  10182. rel: { default: void 0 },
  10183. replace: { type: [String, Boolean], default: void 0 },
  10184. routerComponentName: { default: void 0 },
  10185. target: { default: void 0 },
  10186. to: { default: void 0 },
  10187. underlineOffset: { default: void 0 },
  10188. underlineOffsetHover: { default: void 0 },
  10189. underlineOpacity: { default: void 0 },
  10190. underlineOpacityHover: { default: void 0 },
  10191. underlineVariant: { default: void 0 }
  10192. },
  10193. emits: ["close", "close-countdown", "closed", "destroyed", "update:modelValue"],
  10194. setup(e, { expose: t, emit: o }) {
  10195. const a = e, l = o, n = W(null), i = lo(n), s = ke(a, "modelValue", l), { computedLink: u, computedLinkProps: d } = Ct(a);
  10196. r(() => a.animation);
  10197. const f = r(() => a.isStatus);
  10198. r(() => a.autoHide);
  10199. const g = r(() => a.noCloseButton), p = r(() => a.noFade), y = r(() => a.noHoverPause), b = r(() => a.showOnPause), V = he(() => a.interval);
  10200. r(() => a.solid);
  10201. const C = Qe(a), c = E(() => typeof s.value == "boolean" ? 0 : s.value), {
  10202. isActive: h,
  10203. pause: B,
  10204. restart: _,
  10205. resume: k,
  10206. stop: S,
  10207. isPaused: $,
  10208. value: I
  10209. } = zl(c, V, {
  10210. immediate: typeof s.value == "number"
  10211. });
  10212. Xt(() => {
  10213. l("close-countdown", I.value);
  10214. });
  10215. const T = E(() => u.value ? rt : "div"), O = E(
  10216. () => typeof s.value == "boolean" ? s.value : h.value || b.value && $.value
  10217. );
  10218. ue(h, (P) => {
  10219. P === !1 && $.value === !1 && l("destroyed");
  10220. });
  10221. const F = w(() => [
  10222. C.value,
  10223. {
  10224. show: O.value
  10225. }
  10226. ]), K = () => {
  10227. l("close"), typeof s.value == "boolean" ? s.value = !1 : (s.value = 0, S()), l("closed");
  10228. }, z = () => {
  10229. y.value || B();
  10230. };
  10231. return ue(i, (P) => {
  10232. if (P) {
  10233. z();
  10234. return;
  10235. }
  10236. k();
  10237. }), Wa(S), t({
  10238. pause: B,
  10239. restart: _,
  10240. resume: k,
  10241. stop: S
  10242. }), (P, D) => (m(), x(Mt, { "no-fade": v(p) }, {
  10243. default: R(() => [
  10244. O.value ? (m(), N("div", {
  10245. key: 0,
  10246. id: P.id,
  10247. ref_key: "element",
  10248. ref: n,
  10249. class: j(["toast", [P.toastClass, F.value]]),
  10250. tabindex: "0",
  10251. role: O.value ? v(f) ? "status" : "alert" : void 0,
  10252. "aria-live": O.value ? v(f) ? "polite" : "assertive" : void 0,
  10253. "aria-atomic": O.value ? !0 : void 0
  10254. }, [
  10255. P.$slots.title || P.title ? (m(), x(se(P.headerTag), {
  10256. key: 0,
  10257. class: "toast-header"
  10258. }, {
  10259. default: R(() => [
  10260. A(P.$slots, "title", { hide: K }, () => [
  10261. ee("strong", Cc, Z(P.title), 1)
  10262. ]),
  10263. v(g) ? J("", !0) : (m(), x(Dt, {
  10264. key: 0,
  10265. onClick: K
  10266. }))
  10267. ]),
  10268. _: 3
  10269. })) : J("", !0),
  10270. P.$slots.default || P.body ? (m(), x(se(T.value), Q({
  10271. key: 1,
  10272. class: ["toast-body", P.bodyClass],
  10273. style: { display: "block" }
  10274. }, v(d), {
  10275. onClick: D[0] || (D[0] = (ae) => v(u) ? K : () => {
  10276. })
  10277. }), {
  10278. default: R(() => [
  10279. A(P.$slots, "default", { hide: K }, () => [
  10280. ne(Z(P.body), 1)
  10281. ])
  10282. ]),
  10283. _: 3
  10284. }, 16, ["class"])) : J("", !0),
  10285. typeof v(s) == "number" && P.progressProps !== void 0 ? (m(), x(Vn, {
  10286. key: 2,
  10287. animated: P.progressProps.animated,
  10288. precision: P.progressProps.precision,
  10289. "show-progress": P.progressProps.showProgress,
  10290. "show-value": P.progressProps.showValue,
  10291. striped: P.progressProps.striped,
  10292. variant: P.progressProps.variant,
  10293. max: v(s),
  10294. value: v(I),
  10295. height: "4px"
  10296. }, null, 8, ["animated", "precision", "show-progress", "show-value", "striped", "variant", "max", "value"])) : J("", !0)
  10297. ], 10, Sc)) : J("", !0)
  10298. ]),
  10299. _: 3
  10300. }, 8, ["no-fade"]));
  10301. }
  10302. }), wc = { id: "__BVID__toaster-container" }, kc = /* @__PURE__ */ q({
  10303. __name: "BToaster",
  10304. props: {
  10305. teleportDisabled: { type: [String, Boolean], default: !1 },
  10306. teleportTo: { default: "body" }
  10307. },
  10308. setup(e, { expose: t }) {
  10309. const o = e, a = r(() => o.teleportDisabled), l = {
  10310. "top-left": "top-0 start-0",
  10311. "top-center": "top-0 start-50 translate-middle-x",
  10312. "top-right": "top-0 end-0",
  10313. "middle-left": "top-50 start-0 translate-middle-y",
  10314. "middle-center": "top-50 start-50 translate-middle",
  10315. "middle-right": "top-50 end-0 translate-middle-y",
  10316. "bottom-left": "bottom-0 start-0",
  10317. "bottom-center": "bottom-0 start-50 translate-middle-x",
  10318. "bottom-right": "bottom-0 end-0"
  10319. }, { hide: n, toasts: i, show: s } = Ul(), u = (d) => nn(d, ["value", "self", "pos"]);
  10320. return t({
  10321. hide: n,
  10322. show: s
  10323. }), (d, f) => (m(), x(zt, {
  10324. to: d.teleportTo,
  10325. disabled: v(a)
  10326. }, [
  10327. ee("div", wc, [
  10328. (m(), N(ge, null, Te(l, (g, p) => ee("div", {
  10329. key: p,
  10330. class: j([g, "toast-container position-fixed p-3"])
  10331. }, [
  10332. (m(!0), N(ge, null, Te(v(i).filter((y) => y.pos === p), (y) => (m(), x(Pn, Q({
  10333. key: y.self,
  10334. modelValue: y.value,
  10335. "onUpdate:modelValue": (b) => y.value = b
  10336. }, u(y), {
  10337. onDestroyed: (b) => v(n)(y.self)
  10338. }), null, 16, ["modelValue", "onUpdate:modelValue", "onDestroyed"]))), 128))
  10339. ], 2)), 64))
  10340. ])
  10341. ], 8, ["to", "disabled"]));
  10342. }
  10343. }), $c = /* @__PURE__ */ q({
  10344. __name: "BTooltip",
  10345. props: {
  10346. boundary: {},
  10347. boundaryPadding: {},
  10348. click: { type: [String, Boolean], default: void 0 },
  10349. container: { default: void 0 },
  10350. content: { default: void 0 },
  10351. customClass: { default: void 0 },
  10352. delay: { default: void 0 },
  10353. floatingMiddleware: { default: void 0 },
  10354. hide: { type: [String, Boolean], default: void 0 },
  10355. html: { type: [String, Boolean], default: void 0 },
  10356. id: { default: void 0 },
  10357. inline: { type: [String, Boolean], default: void 0 },
  10358. manual: { type: [String, Boolean], default: void 0 },
  10359. modelValue: { type: [String, Boolean], default: void 0 },
  10360. noAutoClose: { type: [String, Boolean], default: void 0 },
  10361. noFade: { type: [String, Boolean], default: void 0 },
  10362. noFlip: { type: [String, Boolean], default: void 0 },
  10363. noHide: { type: [String, Boolean], default: void 0 },
  10364. noShift: { type: [String, Boolean], default: void 0 },
  10365. noSize: { type: [String, Boolean] },
  10366. noninteractive: { type: [String, Boolean], default: !0 },
  10367. offset: { default: void 0 },
  10368. placement: { default: void 0 },
  10369. persistent: { type: [String, Boolean] },
  10370. realtime: { type: [String, Boolean], default: void 0 },
  10371. reference: { default: void 0 },
  10372. strategy: { default: void 0 },
  10373. target: { default: void 0 },
  10374. title: { default: void 0 },
  10375. variant: { default: void 0 }
  10376. },
  10377. setup(e, { expose: t }) {
  10378. var a, l, n;
  10379. const o = W(null);
  10380. return t({
  10381. hide: (a = o.value) == null ? void 0 : a.hide,
  10382. show: (l = o.value) == null ? void 0 : l.show,
  10383. toggle: (n = o.value) == null ? void 0 : n.toggle
  10384. }), (i, s) => (m(), x(ro, Q({
  10385. ref_key: "popover",
  10386. ref: o,
  10387. tooltip: ""
  10388. }, i.$props), Ua({ _: 2 }, [
  10389. Te(i.$slots, (u, d) => ({
  10390. name: d,
  10391. fn: R((f) => [
  10392. A(i.$slots, d, Se(Ee(f)))
  10393. ])
  10394. }))
  10395. ]), 1040));
  10396. }
  10397. }), Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  10398. __proto__: null,
  10399. BAccordion: ar,
  10400. BAccordionItem: lr,
  10401. BAlert: rr,
  10402. BAvatar: fr,
  10403. BAvatarGroup: vr,
  10404. BBadge: pr,
  10405. BBreadcrumb: br,
  10406. BBreadcrumbItem: rn,
  10407. BButton: pt,
  10408. BButtonGroup: yr,
  10409. BButtonToolbar: Br,
  10410. BCard: mn,
  10411. BCardBody: vn,
  10412. BCardFooter: pn,
  10413. BCardGroup: wr,
  10414. BCardHeader: dn,
  10415. BCardImg: ya,
  10416. BCardSubtitle: fn,
  10417. BCardText: kr,
  10418. BCardTitle: cn,
  10419. BCarousel: Pr,
  10420. BCarouselSlide: Hr,
  10421. BCloseButton: Dt,
  10422. BCol: Gt,
  10423. BCollapse: sn,
  10424. BContainer: xr,
  10425. BDropdown: gn,
  10426. BDropdownDivider: qr,
  10427. BDropdownForm: Ur,
  10428. BDropdownGroup: Yr,
  10429. BDropdownHeader: Jr,
  10430. BDropdownItem: Qr,
  10431. BDropdownItemButton: au,
  10432. BDropdownText: nu,
  10433. BForm: bn,
  10434. BFormCheckbox: hn,
  10435. BFormCheckboxGroup: mu,
  10436. BFormFile: yu,
  10437. BFormFloatingLabel: uu,
  10438. BFormGroup: Tu,
  10439. BFormInput: Vu,
  10440. BFormInvalidFeedback: xa,
  10441. BFormRadio: Sn,
  10442. BFormRadioGroup: Iu,
  10443. BFormRow: ra,
  10444. BFormSelect: zu,
  10445. BFormSelectOption: po,
  10446. BFormSelectOptionGroup: Cn,
  10447. BFormSpinbutton: Wu,
  10448. BFormTag: wn,
  10449. BFormTags: id,
  10450. BFormText: Ma,
  10451. BFormTextarea: ud,
  10452. BFormValidFeedback: Da,
  10453. BImg: vo,
  10454. BInputGroup: gd,
  10455. BInputGroupAddon: mo,
  10456. BInputGroupAppend: bd,
  10457. BInputGroupPrepend: yd,
  10458. BInputGroupText: kn,
  10459. BLink: rt,
  10460. BListGroup: hd,
  10461. BListGroupItem: Bd,
  10462. BModal: kd,
  10463. BNav: $d,
  10464. BNavForm: _d,
  10465. BNavItem: Ad,
  10466. BNavItemDropdown: Ed,
  10467. BNavText: Nd,
  10468. BNavbar: Id,
  10469. BNavbarBrand: Ld,
  10470. BNavbarNav: Fd,
  10471. BNavbarToggle: qd,
  10472. BOffcanvas: Ud,
  10473. BOverlay: Ta,
  10474. BPagination: Yd,
  10475. BPlaceholder: Ue,
  10476. BPlaceholderButton: Tn,
  10477. BPlaceholderCard: Zd,
  10478. BPlaceholderTable: Jd,
  10479. BPlaceholderWrapper: Qd,
  10480. BPopover: ro,
  10481. BProgress: Vn,
  10482. BProgressBar: _n,
  10483. BRow: oc,
  10484. BSpinner: ka,
  10485. BTab: bc,
  10486. BTable: gc,
  10487. BTableLite: En,
  10488. BTableSimple: go,
  10489. BTabs: Bc,
  10490. BTbody: An,
  10491. BTd: Et,
  10492. BTfoot: qa,
  10493. BTh: Ga,
  10494. BThead: On,
  10495. BToast: Pn,
  10496. BToaster: kc,
  10497. BTooltip: $c,
  10498. BTr: lt,
  10499. BTransition: Mt
  10500. }, Symbol.toStringTag, { value: "Module" })), Vc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  10501. __proto__: null,
  10502. useBreadcrumb: Hl,
  10503. useColorMode: Ri,
  10504. useModal: Di,
  10505. useModalController: ji,
  10506. useToast: Ul
  10507. }, Symbol.toStringTag, { value: "Module" })), Ac = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  10508. __proto__: null,
  10509. BvCarouselEvent: ll,
  10510. BvEvent: dt,
  10511. BvTriggerableEvent: Rt
  10512. }, Symbol.toStringTag, { value: "Module" })), Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  10513. __proto__: null
  10514. }, Symbol.toStringTag, { value: "Module" })), Ec = {
  10515. install(e, t = { components: !0, directives: !0 }) {
  10516. const o = typeof t.components == "boolean" || typeof t.components > "u" ? { all: !0 } : t.components, a = Object.keys(Qo);
  10517. Io(o, a).forEach((i) => {
  10518. const s = Qo[i];
  10519. e.component(i, s);
  10520. });
  10521. const l = typeof (t == null ? void 0 : t.directives) == "boolean" || typeof t.directives > "u" ? { all: !0 } : t == null ? void 0 : t.directives, n = Object.keys(Ko);
  10522. Io(l, n).forEach((i) => {
  10523. const s = i.toLowerCase().startsWith("v") ? i.slice(1) : i, u = Ko[i];
  10524. e.directive(s, u);
  10525. });
  10526. }
  10527. };
  10528. export {
  10529. ar as BAccordion,
  10530. lr as BAccordionItem,
  10531. rr as BAlert,
  10532. fr as BAvatar,
  10533. vr as BAvatarGroup,
  10534. pr as BBadge,
  10535. br as BBreadcrumb,
  10536. rn as BBreadcrumbItem,
  10537. pt as BButton,
  10538. yr as BButtonGroup,
  10539. Br as BButtonToolbar,
  10540. mn as BCard,
  10541. vn as BCardBody,
  10542. pn as BCardFooter,
  10543. wr as BCardGroup,
  10544. dn as BCardHeader,
  10545. ya as BCardImg,
  10546. fn as BCardSubtitle,
  10547. kr as BCardText,
  10548. cn as BCardTitle,
  10549. Pr as BCarousel,
  10550. Hr as BCarouselSlide,
  10551. Dt as BCloseButton,
  10552. Gt as BCol,
  10553. sn as BCollapse,
  10554. xr as BContainer,
  10555. gn as BDropdown,
  10556. qr as BDropdownDivider,
  10557. Ur as BDropdownForm,
  10558. Yr as BDropdownGroup,
  10559. Jr as BDropdownHeader,
  10560. Qr as BDropdownItem,
  10561. au as BDropdownItemButton,
  10562. nu as BDropdownText,
  10563. bn as BForm,
  10564. hn as BFormCheckbox,
  10565. mu as BFormCheckboxGroup,
  10566. yu as BFormFile,
  10567. uu as BFormFloatingLabel,
  10568. Tu as BFormGroup,
  10569. Vu as BFormInput,
  10570. xa as BFormInvalidFeedback,
  10571. Sn as BFormRadio,
  10572. Iu as BFormRadioGroup,
  10573. ra as BFormRow,
  10574. zu as BFormSelect,
  10575. po as BFormSelectOption,
  10576. Cn as BFormSelectOptionGroup,
  10577. Wu as BFormSpinbutton,
  10578. wn as BFormTag,
  10579. id as BFormTags,
  10580. Ma as BFormText,
  10581. ud as BFormTextarea,
  10582. Da as BFormValidFeedback,
  10583. vo as BImg,
  10584. gd as BInputGroup,
  10585. mo as BInputGroupAddon,
  10586. bd as BInputGroupAppend,
  10587. yd as BInputGroupPrepend,
  10588. kn as BInputGroupText,
  10589. rt as BLink,
  10590. hd as BListGroup,
  10591. Bd as BListGroupItem,
  10592. kd as BModal,
  10593. $d as BNav,
  10594. _d as BNavForm,
  10595. Ad as BNavItem,
  10596. Ed as BNavItemDropdown,
  10597. Nd as BNavText,
  10598. Id as BNavbar,
  10599. Ld as BNavbarBrand,
  10600. Fd as BNavbarNav,
  10601. qd as BNavbarToggle,
  10602. Ud as BOffcanvas,
  10603. Ta as BOverlay,
  10604. Yd as BPagination,
  10605. Ue as BPlaceholder,
  10606. Tn as BPlaceholderButton,
  10607. Zd as BPlaceholderCard,
  10608. Jd as BPlaceholderTable,
  10609. Qd as BPlaceholderWrapper,
  10610. ro as BPopover,
  10611. Vn as BProgress,
  10612. _n as BProgressBar,
  10613. oc as BRow,
  10614. ka as BSpinner,
  10615. bc as BTab,
  10616. gc as BTable,
  10617. En as BTableLite,
  10618. go as BTableSimple,
  10619. Bc as BTabs,
  10620. An as BTbody,
  10621. Et as BTd,
  10622. qa as BTfoot,
  10623. Ga as BTh,
  10624. On as BThead,
  10625. Pn as BToast,
  10626. kc as BToaster,
  10627. $c as BTooltip,
  10628. lt as BTr,
  10629. Mt as BTransition,
  10630. Ec as BootstrapVueNext,
  10631. ll as BvCarouselEvent,
  10632. dt as BvEvent,
  10633. Rt as BvTriggerableEvent,
  10634. Qo as Components,
  10635. Vc as Composables,
  10636. Ko as Directives,
  10637. Oc as Types,
  10638. Ac as Utils,
  10639. Ec as default,
  10640. Hl as useBreadcrumb,
  10641. Ri as useColorMode,
  10642. Di as useModal,
  10643. ji as useModalController,
  10644. Ul as useToast,
  10645. Hd as vBColorMode,
  10646. ja as vBModal,
  10647. xd as vBPopover,
  10648. ja as vBToggle,
  10649. Md as vBTooltip
  10650. };
  10651. //# sourceMappingURL=bootstrap-vue-next.mjs.map