v-sistec-features 1.31.13 → 1.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/DataAgenda/VDataAgenda.vue.d.ts +915 -0
  2. package/dist/DataAgenda/components/AgendaMatrix.vue.d.ts +64 -0
  3. package/dist/DataAgenda/components/AgendaMatrixBase.vue.d.ts +31 -0
  4. package/dist/DataAgenda/components/AgendaMatrixUnico.vue.d.ts +72 -0
  5. package/dist/DataAgenda/components/AgendaTabelaHorario.vue.d.ts +32 -0
  6. package/dist/DataAgenda/components/AgendaVueCal.vue.d.ts +94 -0
  7. package/dist/DataAgenda/components/BlocoArrastavel.vue.d.ts +37 -0
  8. package/dist/DataAgenda/components/HeaderCalendario.vue.d.ts +7 -0
  9. package/dist/DataAgenda/components/HeaderTabela.vue.d.ts +7 -0
  10. package/dist/DataAgenda/components/ModalDetalhesReserva.vue.d.ts +38 -0
  11. package/dist/DataAgenda/components/ModalReserva.vue.d.ts +157 -0
  12. package/dist/DataAgenda/composables/useAgenda.d.ts +24 -0
  13. package/dist/DataAgenda/composables/useCoresAgenda.d.ts +7 -0
  14. package/dist/DataAgenda/composables/useGradeCompartilhada.d.ts +23 -0
  15. package/dist/DataAgenda/composables/useSelecaoArrasto.d.ts +24 -0
  16. package/dist/DataAgenda/index.d.ts +2 -0
  17. package/dist/DataPageVue/components/VDataPage.vue.d.ts +50 -0
  18. package/dist/DataPageVue/index.d.ts +2 -0
  19. package/dist/DataPageVue/types/v-data-page.d.ts +53 -0
  20. package/dist/DatatableVue/components/SearchDatatable.vue.d.ts +28 -0
  21. package/dist/DatatableVue/components/VColumn.vue.d.ts +82 -0
  22. package/dist/DatatableVue/components/VColumnManager.vue.d.ts +21 -0
  23. package/dist/DatatableVue/components/VDataTable.vue.d.ts +57 -0
  24. package/dist/DatatableVue/components/VDataTableLoading.vue.d.ts +17 -0
  25. package/dist/DatatableVue/components/VOrderingIcon.vue.d.ts +10 -0
  26. package/dist/DatatableVue/components/VThDataTable.vue.d.ts +14 -0
  27. package/dist/DatatableVue/composables/useCheckBox.d.ts +11 -0
  28. package/dist/DatatableVue/composables/useDataTableConfig.d.ts +4 -0
  29. package/dist/DatatableVue/composables/useDataTableFetch.d.ts +17 -0
  30. package/dist/DatatableVue/composables/useExpandedItem.d.ts +6 -0
  31. package/dist/DatatableVue/composables/useImagePreview.d.ts +9 -0
  32. package/dist/DatatableVue/config/datatableConfig.d.ts +4 -0
  33. package/dist/DatatableVue/config/datatableDefaults.d.ts +7 -0
  34. package/dist/DatatableVue/index.d.ts +3 -0
  35. package/dist/DatatableVue/keys.d.ts +39 -0
  36. package/dist/DatatableVue/style/svgs.d.ts +20 -0
  37. package/dist/DatatableVue/types/v-data-table.d.ts +161 -0
  38. package/dist/Modals/components/BotaoFechar.vue.d.ts +36 -0
  39. package/dist/Modals/components/ModalAviso.vue.d.ts +184 -0
  40. package/dist/Modals/components/ModalBaseDefault.vue.d.ts +244 -0
  41. package/dist/Modals/components/ModalConfirmacao.vue.d.ts +184 -0
  42. package/dist/Modals/components/ModalConfirmacaoCheckbox.vue.d.ts +195 -0
  43. package/dist/Modals/components/ModalConfirmacaoInput.vue.d.ts +238 -0
  44. package/dist/Modals/components/ModalConfirmacaoSimples.vue.d.ts +187 -0
  45. package/dist/Modals/components/ModalInformacao.vue.d.ts +184 -0
  46. package/dist/Modals/components/ModalPerigo.vue.d.ts +175 -0
  47. package/dist/Modals/components/ModalSucesso.vue.d.ts +175 -0
  48. package/dist/Modals/components/interno/ModalDialogoInterno.vue.d.ts +205 -0
  49. package/dist/Modals/index.d.ts +12 -0
  50. package/dist/Modals.js +1361 -0
  51. package/dist/Pagination/Pagination.vue.d.ts +19 -0
  52. package/dist/Pagination/index.d.ts +2 -0
  53. package/dist/{Pagination-f4FVE5TX.js → Pagination-D96eBRod.js} +25 -25
  54. package/dist/Pagination.js +1 -1
  55. package/dist/{ar-Bg_10XBG.js → ar-CtSPmWrk.js} +0 -5
  56. package/dist/{bg-DyIRbFaU.js → bg-DwW4tkzm.js} +0 -5
  57. package/dist/{bn-DrKXkRvN.js → bn-Df__ccyH.js} +0 -5
  58. package/dist/{bs-BF8upphm.js → bs-j17x02qr.js} +0 -5
  59. package/dist/{ca-CGMnsdII.js → ca-B94lUx7c.js} +0 -5
  60. package/dist/core/index.d.ts +1 -0
  61. package/dist/core/plugin.d.ts +11 -0
  62. package/dist/core.js +1 -1
  63. package/dist/{cs-B-jeNB5o.js → cs-DeDzN7tG.js} +0 -5
  64. package/dist/{da-BoHemyXx.js → da-DMpC5y8O.js} +0 -5
  65. package/dist/datatableConfig-E5_08Ch4.js +4 -0
  66. package/dist/{de-DNAaiTrc.js → de-CCNUZSup.js} +0 -5
  67. package/dist/{el-Cpg3pI7i.js → el-C2kkX76k.js} +0 -5
  68. package/dist/{en-gb-KsKdvLmV.js → en-gb-sbYhvlrM.js} +0 -5
  69. package/dist/{es-COziTcsp.js → es-mNgFJGue.js} +0 -5
  70. package/dist/{et-BdTtu9t_.js → et-D0ro6m_Z.js} +0 -5
  71. package/dist/{fa-B1Ebp36t.js → fa-DYekHC6-.js} +0 -5
  72. package/dist/{fi-b4XodxNE.js → fi-CNexLCO_.js} +0 -5
  73. package/dist/{fr-BIx4sO6s.js → fr-CUXtdWLj.js} +0 -5
  74. package/dist/{he-rf_Y5d64.js → he-D4BblsAD.js} +0 -5
  75. package/dist/{hr-DOuJJGF3.js → hr-1MNJjxDo.js} +0 -5
  76. package/dist/{hu-DMc8kv_1.js → hu-BiG8mSvH.js} +0 -5
  77. package/dist/{id-DclBfDY0.js → id-CABEuSQB.js} +0 -5
  78. package/dist/iframeCommunicator/index.d.ts +2 -0
  79. package/dist/iframeCommunicator/useIframeCommunicator.d.ts +8 -0
  80. package/dist/iframeCommunicator/useThemeFromParent.d.ts +9 -0
  81. package/dist/index.d.ts +3 -140
  82. package/dist/index.js +1 -1
  83. package/dist/{is-hPcr999q.js → is-DBUkoxb1.js} +0 -5
  84. package/dist/{it-Dfz57Ogc.js → it-Am_Oo5d5.js} +0 -5
  85. package/dist/{ja-Da6Dbgu8.js → ja-C4aaunra.js} +0 -5
  86. package/dist/{ka-DK-BKZD4.js → ka-CkzS4fNj.js} +0 -5
  87. package/dist/{kaa-BVd8dKz3.js → kaa-GTw11GU-.js} +0 -5
  88. package/dist/{kk-eE3-SI4R.js → kk-BRFq2Ctd.js} +0 -5
  89. package/dist/{ko-CUMtwCHy.js → ko-BbgS6BMk.js} +0 -5
  90. package/dist/{ky-CCU0MYbD.js → ky-ClK6HL0m.js} +0 -5
  91. package/dist/{lt-CpbQmiiW.js → lt-BE0ahgri.js} +0 -5
  92. package/dist/{mn-YYwo93uK.js → mn-C-Ktk8ht.js} +0 -5
  93. package/dist/{nl-WqtgByJL.js → nl-BiG9OH1y.js} +0 -5
  94. package/dist/{no-BOG8-aOm.js → no-DVdX7xTS.js} +0 -5
  95. package/dist/{pl-BH4AyCMF.js → pl-y_N8wVAF.js} +0 -5
  96. package/dist/plugin-BZB7f-c3.js +3444 -0
  97. package/dist/{pt-br-siyrXjdv.js → pt-br-Cx8Akpcu.js} +0 -5
  98. package/dist/{pt-pt-siyrXjdv.js → pt-pt-Cx8Akpcu.js} +0 -5
  99. package/dist/{ro-C9fU41Qi.js → ro-FfAZHwo1.js} +0 -5
  100. package/dist/{ru-_d_rl3a5.js → ru-BCE9k5uo.js} +0 -5
  101. package/dist/{sk-ZT421l3d.js → sk-D-7bEf3b.js} +0 -5
  102. package/dist/{sl-Ct8Gi5v1.js → sl-DoVrM4Ht.js} +0 -5
  103. package/dist/{sq-Cw7PWK-V.js → sq-Du8jVeq7.js} +0 -5
  104. package/dist/{sr-DO-S1wn3.js → sr-DP3yke6-.js} +0 -5
  105. package/dist/{sv-NXMCPui2.js → sv-C2iGWFqL.js} +0 -5
  106. package/dist/toast/components/ToastComponent.vue.d.ts +6 -0
  107. package/dist/toast/index.d.ts +1 -0
  108. package/dist/toast/useToastStore.d.ts +11 -0
  109. package/dist/toast.js +2 -2
  110. package/dist/{tr-BpieMIth.js → tr-CvlANdCR.js} +0 -5
  111. package/dist/{uk-CqVU4EoZ.js → uk-CxFb8w2s.js} +0 -5
  112. package/dist/utils/svgFactory.d.ts +8 -0
  113. package/dist/{uz-CmcB22-w.js → uz-DmJPqTjK.js} +0 -5
  114. package/dist/{uz-cryl-C_GBVdXl.js → uz-cryl-Dt065WNc.js} +0 -5
  115. package/dist/v-sistec-features.css +1 -11
  116. package/dist/vDataAgenda.js +1877 -1885
  117. package/dist/vDataPage.js +31 -41
  118. package/dist/vDataTable.js +43 -43
  119. package/dist/{vi-C9wTd3fG.js → vi-B8R5Ozvj.js} +0 -5
  120. package/dist/{zh-cn-DY7nkJwf.js → zh-cn-DnUuIcqx.js} +0 -5
  121. package/dist/{zh-hk-KkazoDdS.js → zh-hk-mDkIkhi9.js} +0 -5
  122. package/package.json +5 -1
  123. package/src/DataAgenda/VDataAgenda.vue +233 -77
  124. package/src/DataAgenda/components/AgendaMatrix.vue +1 -0
  125. package/src/DataAgenda/components/AgendaMatrixBase.vue +357 -140
  126. package/src/DataAgenda/components/AgendaMatrixUnico.vue +1 -0
  127. package/src/DataAgenda/components/AgendaTabelaHorario.vue +489 -316
  128. package/src/DataAgenda/components/AgendaVueCal.vue +1 -0
  129. package/src/DataAgenda/index.ts +2 -1
  130. package/src/Modals/components/BotaoFechar.vue +74 -0
  131. package/src/Modals/components/ModalAviso.vue +129 -0
  132. package/src/Modals/components/ModalBaseDefault.vue +374 -0
  133. package/src/Modals/components/ModalConfirmacao.vue +129 -0
  134. package/src/Modals/components/ModalConfirmacaoCheckbox.vue +155 -0
  135. package/src/Modals/components/ModalConfirmacaoInput.vue +200 -0
  136. package/src/Modals/components/ModalConfirmacaoSimples.vue +306 -0
  137. package/src/Modals/components/ModalInformacao.vue +129 -0
  138. package/src/Modals/components/ModalPerigo.vue +123 -0
  139. package/src/Modals/components/ModalSucesso.vue +123 -0
  140. package/src/Modals/components/interno/ModalDialogoInterno.vue +365 -0
  141. package/src/Modals/index.ts +32 -0
  142. package/src/core/plugin.ts +34 -41
  143. package/src/types/global.d.ts +7 -1
  144. package/dist/Pagination.d.ts +0 -27
  145. package/dist/core.d.ts +0 -117
  146. package/dist/datatableConfig-BMFlKtgh.js +0 -4
  147. package/dist/iframeCommunicator.d.ts +0 -22
  148. package/dist/plugin-BwqrOSD_.js +0 -2097
  149. package/dist/toast.d.ts +0 -19
  150. package/dist/vDataAgenda.d.ts +0 -929
  151. package/dist/vDataPage.d.ts +0 -117
  152. package/dist/vDataTable.d.ts +0 -294
@@ -1,2097 +0,0 @@
1
- import Wr from "v-required";
2
- import Rr from "vue-toastification";
3
- import { D as Br } from "./datatableConfig-BMFlKtgh.js";
4
- function Vr(M, ye) {
5
- for (var S = 0; S < ye.length; S++) {
6
- const B = ye[S];
7
- if (typeof B != "string" && !Array.isArray(B)) {
8
- for (const he in B)
9
- if (he !== "default" && !(he in M)) {
10
- const D = Object.getOwnPropertyDescriptor(B, he);
11
- D && Object.defineProperty(M, he, D.get ? D : {
12
- enumerable: !0,
13
- get: () => B[he]
14
- });
15
- }
16
- }
17
- }
18
- return Object.freeze(Object.defineProperty(M, Symbol.toStringTag, { value: "Module" }));
19
- }
20
- function Ur(M) {
21
- return M && M.__esModule && Object.prototype.hasOwnProperty.call(M, "default") ? M.default : M;
22
- }
23
- var ot = { exports: {} };
24
- /*!
25
- * Tabler v1.4.0 (https://tabler.io)
26
- * Copyright 2018-2025 The Tabler Authors
27
- * Copyright 2018-2025 codecalm.net Paweł Kuna
28
- * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
29
- */
30
- var Kr = ot.exports, hs;
31
- function Qr() {
32
- return hs || (hs = 1, (function(M, ye) {
33
- (function(S, B) {
34
- B(ye);
35
- })(Kr, function(S) {
36
- const B = document.querySelectorAll('[data-bs-toggle="autosize"]');
37
- B.length && B.forEach(function(i) {
38
- window.autosize && window.autosize(i);
39
- });
40
- const he = document.querySelectorAll("[data-countup]");
41
- he.length && he.forEach(function(i) {
42
- let e = {};
43
- try {
44
- const n = i.getAttribute("data-countup") ? JSON.parse(i.getAttribute("data-countup")) : {};
45
- e = Object.assign({ enableScrollSpy: !0 }, n);
46
- } catch {
47
- }
48
- const t = parseInt(i.innerHTML, 10);
49
- if (window.countUp && window.countUp.CountUp) {
50
- const n = new window.countUp.CountUp(i, t, e);
51
- n.error || n.start();
52
- }
53
- }), [].slice.call(document.querySelectorAll("[data-mask]")).map(function(i) {
54
- window.IMask && new window.IMask(i, { mask: i.dataset.mask, lazy: i.dataset["mask-visible"] === "true" });
55
- });
56
- var D = "top", H = "bottom", q = "right", P = "left", rt = "auto", De = [D, H, q, P], we = "start", Ie = "end", gi = "clippingParents", xt = "viewport", Pe = "popper", _i = "reference", kt = De.reduce(function(i, e) {
57
- return i.concat([e + "-" + we, e + "-" + Ie]);
58
- }, []), St = [].concat(De, [rt]).reduce(function(i, e) {
59
- return i.concat([e, e + "-" + we, e + "-" + Ie]);
60
- }, []), bi = "beforeRead", vi = "read", yi = "afterRead", wi = "beforeMain", Ai = "main", Ei = "afterMain", Ti = "beforeWrite", Ci = "write", Oi = "afterWrite", xi = [bi, vi, yi, wi, Ai, Ei, Ti, Ci, Oi];
61
- function ee(i) {
62
- return i ? (i.nodeName || "").toLowerCase() : null;
63
- }
64
- function z(i) {
65
- if (i == null) return window;
66
- if (i.toString() !== "[object Window]") {
67
- var e = i.ownerDocument;
68
- return e && e.defaultView || window;
69
- }
70
- return i;
71
- }
72
- function Ae(i) {
73
- return i instanceof z(i).Element || i instanceof Element;
74
- }
75
- function V(i) {
76
- return i instanceof z(i).HTMLElement || i instanceof HTMLElement;
77
- }
78
- function Lt(i) {
79
- return typeof ShadowRoot < "u" && (i instanceof z(i).ShadowRoot || i instanceof ShadowRoot);
80
- }
81
- const $t = { name: "applyStyles", enabled: !0, phase: "write", fn: function(i) {
82
- var e = i.state;
83
- Object.keys(e.elements).forEach(function(t) {
84
- var n = e.styles[t] || {}, s = e.attributes[t] || {}, o = e.elements[t];
85
- V(o) && ee(o) && (Object.assign(o.style, n), Object.keys(s).forEach(function(r) {
86
- var a = s[r];
87
- a === !1 ? o.removeAttribute(r) : o.setAttribute(r, a === !0 ? "" : a);
88
- }));
89
- });
90
- }, effect: function(i) {
91
- var e = i.state, t = { popper: { position: e.options.strategy, left: "0", top: "0", margin: "0" }, arrow: { position: "absolute" }, reference: {} };
92
- return Object.assign(e.elements.popper.style, t.popper), e.styles = t, e.elements.arrow && Object.assign(e.elements.arrow.style, t.arrow), function() {
93
- Object.keys(e.elements).forEach(function(n) {
94
- var s = e.elements[n], o = e.attributes[n] || {}, r = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : t[n]).reduce(function(a, c) {
95
- return a[c] = "", a;
96
- }, {});
97
- V(s) && ee(s) && (Object.assign(s.style, r), Object.keys(o).forEach(function(a) {
98
- s.removeAttribute(a);
99
- }));
100
- });
101
- };
102
- }, requires: ["computeStyles"] };
103
- function te(i) {
104
- return i.split("-")[0];
105
- }
106
- var Ee = Math.max, at = Math.min, Ne = Math.round;
107
- function Dt() {
108
- var i = navigator.userAgentData;
109
- return i != null && i.brands && Array.isArray(i.brands) ? i.brands.map(function(e) {
110
- return e.brand + "/" + e.version;
111
- }).join(" ") : navigator.userAgent;
112
- }
113
- function ki() {
114
- return !/^((?!chrome|android).)*safari/i.test(Dt());
115
- }
116
- function je(i, e, t) {
117
- e === void 0 && (e = !1), t === void 0 && (t = !1);
118
- var n = i.getBoundingClientRect(), s = 1, o = 1;
119
- e && V(i) && (s = i.offsetWidth > 0 && Ne(n.width) / i.offsetWidth || 1, o = i.offsetHeight > 0 && Ne(n.height) / i.offsetHeight || 1);
120
- var r = (Ae(i) ? z(i) : window).visualViewport, a = !ki() && t, c = (n.left + (a && r ? r.offsetLeft : 0)) / s, h = (n.top + (a && r ? r.offsetTop : 0)) / o, d = n.width / s, u = n.height / o;
121
- return { width: d, height: u, top: h, right: c + d, bottom: h + u, left: c, x: c, y: h };
122
- }
123
- function It(i) {
124
- var e = je(i), t = i.offsetWidth, n = i.offsetHeight;
125
- return Math.abs(e.width - t) <= 1 && (t = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), { x: i.offsetLeft, y: i.offsetTop, width: t, height: n };
126
- }
127
- function Si(i, e) {
128
- var t = e.getRootNode && e.getRootNode();
129
- if (i.contains(e)) return !0;
130
- if (t && Lt(t)) {
131
- var n = e;
132
- do {
133
- if (n && i.isSameNode(n)) return !0;
134
- n = n.parentNode || n.host;
135
- } while (n);
136
- }
137
- return !1;
138
- }
139
- function oe(i) {
140
- return z(i).getComputedStyle(i);
141
- }
142
- function fs(i) {
143
- return ["table", "td", "th"].indexOf(ee(i)) >= 0;
144
- }
145
- function de(i) {
146
- return ((Ae(i) ? i.ownerDocument : i.document) || window.document).documentElement;
147
- }
148
- function lt(i) {
149
- return ee(i) === "html" ? i : i.assignedSlot || i.parentNode || (Lt(i) ? i.host : null) || de(i);
150
- }
151
- function Li(i) {
152
- return V(i) && oe(i).position !== "fixed" ? i.offsetParent : null;
153
- }
154
- function Ge(i) {
155
- for (var e = z(i), t = Li(i); t && fs(t) && oe(t).position === "static"; ) t = Li(t);
156
- return t && (ee(t) === "html" || ee(t) === "body" && oe(t).position === "static") ? e : t || (function(n) {
157
- var s = /firefox/i.test(Dt());
158
- if (/Trident/i.test(Dt()) && V(n) && oe(n).position === "fixed") return null;
159
- var o = lt(n);
160
- for (Lt(o) && (o = o.host); V(o) && ["html", "body"].indexOf(ee(o)) < 0; ) {
161
- var r = oe(o);
162
- if (r.transform !== "none" || r.perspective !== "none" || r.contain === "paint" || ["transform", "perspective"].indexOf(r.willChange) !== -1 || s && r.willChange === "filter" || s && r.filter && r.filter !== "none") return o;
163
- o = o.parentNode;
164
- }
165
- return null;
166
- })(i) || e;
167
- }
168
- function Pt(i) {
169
- return ["top", "bottom"].indexOf(i) >= 0 ? "x" : "y";
170
- }
171
- function Je(i, e, t) {
172
- return Ee(i, at(e, t));
173
- }
174
- function $i(i) {
175
- return Object.assign({}, { top: 0, right: 0, bottom: 0, left: 0 }, i);
176
- }
177
- function Di(i, e) {
178
- return e.reduce(function(t, n) {
179
- return t[n] = i, t;
180
- }, {});
181
- }
182
- const Ii = { name: "arrow", enabled: !0, phase: "main", fn: function(i) {
183
- var e, t = i.state, n = i.name, s = i.options, o = t.elements.arrow, r = t.modifiersData.popperOffsets, a = te(t.placement), c = Pt(a), h = [P, q].indexOf(a) >= 0 ? "height" : "width";
184
- if (o && r) {
185
- var d = (function(O, T) {
186
- return $i(typeof (O = typeof O == "function" ? O(Object.assign({}, T.rects, { placement: T.placement })) : O) != "number" ? O : Di(O, De));
187
- })(s.padding, t), u = It(o), b = c === "y" ? D : P, p = c === "y" ? H : q, g = t.rects.reference[h] + t.rects.reference[c] - r[c] - t.rects.popper[h], m = r[c] - t.rects.reference[c], _ = Ge(o), C = _ ? c === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, k = g / 2 - m / 2, y = d[b], A = C - u[h] - d[p], v = C / 2 - u[h] / 2 + k, w = Je(y, v, A), E = c;
188
- t.modifiersData[n] = ((e = {})[E] = w, e.centerOffset = w - v, e);
189
- }
190
- }, effect: function(i) {
191
- var e = i.state, t = i.options.element, n = t === void 0 ? "[data-popper-arrow]" : t;
192
- n != null && (typeof n != "string" || (n = e.elements.popper.querySelector(n))) && Si(e.elements.popper, n) && (e.elements.arrow = n);
193
- }, requires: ["popperOffsets"], requiresIfExists: ["preventOverflow"] };
194
- function Me(i) {
195
- return i.split("-")[1];
196
- }
197
- var ps = { top: "auto", right: "auto", bottom: "auto", left: "auto" };
198
- function Pi(i) {
199
- var e, t = i.popper, n = i.popperRect, s = i.placement, o = i.variation, r = i.offsets, a = i.position, c = i.gpuAcceleration, h = i.adaptive, d = i.roundOffsets, u = i.isFixed, b = r.x, p = b === void 0 ? 0 : b, g = r.y, m = g === void 0 ? 0 : g, _ = typeof d == "function" ? d({ x: p, y: m }) : { x: p, y: m };
200
- p = _.x, m = _.y;
201
- var C = r.hasOwnProperty("x"), k = r.hasOwnProperty("y"), y = P, A = D, v = window;
202
- if (h) {
203
- var w = Ge(t), E = "clientHeight", O = "clientWidth";
204
- w === z(t) && oe(w = de(t)).position !== "static" && a === "absolute" && (E = "scrollHeight", O = "scrollWidth"), (s === D || (s === P || s === q) && o === Ie) && (A = H, m -= (u && w === v && v.visualViewport ? v.visualViewport.height : w[E]) - n.height, m *= c ? 1 : -1), s !== P && (s !== D && s !== H || o !== Ie) || (y = q, p -= (u && w === v && v.visualViewport ? v.visualViewport.width : w[O]) - n.width, p *= c ? 1 : -1);
205
- }
206
- var T, $ = Object.assign({ position: a }, h && ps), R = d === !0 ? (function(Z, N) {
207
- var X = Z.x, Y = Z.y, L = N.devicePixelRatio || 1;
208
- return { x: Ne(X * L) / L || 0, y: Ne(Y * L) / L || 0 };
209
- })({ x: p, y: m }, z(t)) : { x: p, y: m };
210
- return p = R.x, m = R.y, c ? Object.assign({}, $, ((T = {})[A] = k ? "0" : "", T[y] = C ? "0" : "", T.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", T)) : Object.assign({}, $, ((e = {})[A] = k ? m + "px" : "", e[y] = C ? p + "px" : "", e.transform = "", e));
211
- }
212
- const Nt = { name: "computeStyles", enabled: !0, phase: "beforeWrite", fn: function(i) {
213
- var e = i.state, t = i.options, n = t.gpuAcceleration, s = n === void 0 || n, o = t.adaptive, r = o === void 0 || o, a = t.roundOffsets, c = a === void 0 || a, h = { placement: te(e.placement), variation: Me(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: s, isFixed: e.options.strategy === "fixed" };
214
- e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Pi(Object.assign({}, h, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: r, roundOffsets: c })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Pi(Object.assign({}, h, { offsets: e.modifiersData.arrow, position: "absolute", adaptive: !1, roundOffsets: c })))), e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-placement": e.placement });
215
- }, data: {} };
216
- var ct = { passive: !0 };
217
- const jt = { name: "eventListeners", enabled: !0, phase: "write", fn: function() {
218
- }, effect: function(i) {
219
- var e = i.state, t = i.instance, n = i.options, s = n.scroll, o = s === void 0 || s, r = n.resize, a = r === void 0 || r, c = z(e.elements.popper), h = [].concat(e.scrollParents.reference, e.scrollParents.popper);
220
- return o && h.forEach(function(d) {
221
- d.addEventListener("scroll", t.update, ct);
222
- }), a && c.addEventListener("resize", t.update, ct), function() {
223
- o && h.forEach(function(d) {
224
- d.removeEventListener("scroll", t.update, ct);
225
- }), a && c.removeEventListener("resize", t.update, ct);
226
- };
227
- }, data: {} };
228
- var ms = { left: "right", right: "left", bottom: "top", top: "bottom" };
229
- function ut(i) {
230
- return i.replace(/left|right|bottom|top/g, function(e) {
231
- return ms[e];
232
- });
233
- }
234
- var gs = { start: "end", end: "start" };
235
- function Ni(i) {
236
- return i.replace(/start|end/g, function(e) {
237
- return gs[e];
238
- });
239
- }
240
- function Mt(i) {
241
- var e = z(i);
242
- return { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
243
- }
244
- function Ft(i) {
245
- return je(de(i)).left + Mt(i).scrollLeft;
246
- }
247
- function Ht(i) {
248
- var e = oe(i), t = e.overflow, n = e.overflowX, s = e.overflowY;
249
- return /auto|scroll|overlay|hidden/.test(t + s + n);
250
- }
251
- function ji(i) {
252
- return ["html", "body", "#document"].indexOf(ee(i)) >= 0 ? i.ownerDocument.body : V(i) && Ht(i) ? i : ji(lt(i));
253
- }
254
- function Ze(i, e) {
255
- var t;
256
- e === void 0 && (e = []);
257
- var n = ji(i), s = n === ((t = i.ownerDocument) == null ? void 0 : t.body), o = z(n), r = s ? [o].concat(o.visualViewport || [], Ht(n) ? n : []) : n, a = e.concat(r);
258
- return s ? a : a.concat(Ze(lt(r)));
259
- }
260
- function qt(i) {
261
- return Object.assign({}, i, { left: i.x, top: i.y, right: i.x + i.width, bottom: i.y + i.height });
262
- }
263
- function Mi(i, e, t) {
264
- return e === xt ? qt((function(n, s) {
265
- var o = z(n), r = de(n), a = o.visualViewport, c = r.clientWidth, h = r.clientHeight, d = 0, u = 0;
266
- if (a) {
267
- c = a.width, h = a.height;
268
- var b = ki();
269
- (b || !b && s === "fixed") && (d = a.offsetLeft, u = a.offsetTop);
270
- }
271
- return { width: c, height: h, x: d + Ft(n), y: u };
272
- })(i, t)) : Ae(e) ? (function(n, s) {
273
- var o = je(n, !1, s === "fixed");
274
- return o.top = o.top + n.clientTop, o.left = o.left + n.clientLeft, o.bottom = o.top + n.clientHeight, o.right = o.left + n.clientWidth, o.width = n.clientWidth, o.height = n.clientHeight, o.x = o.left, o.y = o.top, o;
275
- })(e, t) : qt((function(n) {
276
- var s, o = de(n), r = Mt(n), a = (s = n.ownerDocument) == null ? void 0 : s.body, c = Ee(o.scrollWidth, o.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), h = Ee(o.scrollHeight, o.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), d = -r.scrollLeft + Ft(n), u = -r.scrollTop;
277
- return oe(a || o).direction === "rtl" && (d += Ee(o.clientWidth, a ? a.clientWidth : 0) - c), { width: c, height: h, x: d, y: u };
278
- })(de(i)));
279
- }
280
- function Fi(i) {
281
- var e, t = i.reference, n = i.element, s = i.placement, o = s ? te(s) : null, r = s ? Me(s) : null, a = t.x + t.width / 2 - n.width / 2, c = t.y + t.height / 2 - n.height / 2;
282
- switch (o) {
283
- case D:
284
- e = { x: a, y: t.y - n.height };
285
- break;
286
- case H:
287
- e = { x: a, y: t.y + t.height };
288
- break;
289
- case q:
290
- e = { x: t.x + t.width, y: c };
291
- break;
292
- case P:
293
- e = { x: t.x - n.width, y: c };
294
- break;
295
- default:
296
- e = { x: t.x, y: t.y };
297
- }
298
- var h = o ? Pt(o) : null;
299
- if (h != null) {
300
- var d = h === "y" ? "height" : "width";
301
- switch (r) {
302
- case we:
303
- e[h] = e[h] - (t[d] / 2 - n[d] / 2);
304
- break;
305
- case Ie:
306
- e[h] = e[h] + (t[d] / 2 - n[d] / 2);
307
- }
308
- }
309
- return e;
310
- }
311
- function Fe(i, e) {
312
- e === void 0 && (e = {});
313
- var t = e, n = t.placement, s = n === void 0 ? i.placement : n, o = t.strategy, r = o === void 0 ? i.strategy : o, a = t.boundary, c = a === void 0 ? gi : a, h = t.rootBoundary, d = h === void 0 ? xt : h, u = t.elementContext, b = u === void 0 ? Pe : u, p = t.altBoundary, g = p !== void 0 && p, m = t.padding, _ = m === void 0 ? 0 : m, C = $i(typeof _ != "number" ? _ : Di(_, De)), k = b === Pe ? _i : Pe, y = i.rects.popper, A = i.elements[g ? k : b], v = (function(N, X, Y, L) {
314
- var ne = X === "clippingParents" ? (function(x) {
315
- var j = Ze(lt(x)), G = ["absolute", "fixed"].indexOf(oe(x).position) >= 0 && V(x) ? Ge(x) : x;
316
- return Ae(G) ? j.filter(function(ve) {
317
- return Ae(ve) && Si(ve, G) && ee(ve) !== "body";
318
- }) : [];
319
- })(N) : [].concat(X), se = [].concat(ne, [Y]), Ye = se[0], I = se.reduce(function(x, j) {
320
- var G = Mi(N, j, L);
321
- return x.top = Ee(G.top, x.top), x.right = at(G.right, x.right), x.bottom = at(G.bottom, x.bottom), x.left = Ee(G.left, x.left), x;
322
- }, Mi(N, Ye, L));
323
- return I.width = I.right - I.left, I.height = I.bottom - I.top, I.x = I.left, I.y = I.top, I;
324
- })(Ae(A) ? A : A.contextElement || de(i.elements.popper), c, d, r), w = je(i.elements.reference), E = Fi({ reference: w, element: y, placement: s }), O = qt(Object.assign({}, y, E)), T = b === Pe ? O : w, $ = { top: v.top - T.top + C.top, bottom: T.bottom - v.bottom + C.bottom, left: v.left - T.left + C.left, right: T.right - v.right + C.right }, R = i.modifiersData.offset;
325
- if (b === Pe && R) {
326
- var Z = R[s];
327
- Object.keys($).forEach(function(N) {
328
- var X = [q, H].indexOf(N) >= 0 ? 1 : -1, Y = [D, H].indexOf(N) >= 0 ? "y" : "x";
329
- $[N] += Z[Y] * X;
330
- });
331
- }
332
- return $;
333
- }
334
- function _s(i, e) {
335
- e === void 0 && (e = {});
336
- var t = e, n = t.placement, s = t.boundary, o = t.rootBoundary, r = t.padding, a = t.flipVariations, c = t.allowedAutoPlacements, h = c === void 0 ? St : c, d = Me(n), u = d ? a ? kt : kt.filter(function(g) {
337
- return Me(g) === d;
338
- }) : De, b = u.filter(function(g) {
339
- return h.indexOf(g) >= 0;
340
- });
341
- b.length === 0 && (b = u);
342
- var p = b.reduce(function(g, m) {
343
- return g[m] = Fe(i, { placement: m, boundary: s, rootBoundary: o, padding: r })[te(m)], g;
344
- }, {});
345
- return Object.keys(p).sort(function(g, m) {
346
- return p[g] - p[m];
347
- });
348
- }
349
- const Hi = { name: "flip", enabled: !0, phase: "main", fn: function(i) {
350
- var e = i.state, t = i.options, n = i.name;
351
- if (!e.modifiersData[n]._skip) {
352
- for (var s = t.mainAxis, o = s === void 0 || s, r = t.altAxis, a = r === void 0 || r, c = t.fallbackPlacements, h = t.padding, d = t.boundary, u = t.rootBoundary, b = t.altBoundary, p = t.flipVariations, g = p === void 0 || p, m = t.allowedAutoPlacements, _ = e.options.placement, C = te(_), k = c || (C !== _ && g ? (function(x) {
353
- if (te(x) === rt) return [];
354
- var j = ut(x);
355
- return [Ni(x), j, Ni(j)];
356
- })(_) : [ut(_)]), y = [_].concat(k).reduce(function(x, j) {
357
- return x.concat(te(j) === rt ? _s(e, { placement: j, boundary: d, rootBoundary: u, padding: h, flipVariations: g, allowedAutoPlacements: m }) : j);
358
- }, []), A = e.rects.reference, v = e.rects.popper, w = /* @__PURE__ */ new Map(), E = !0, O = y[0], T = 0; T < y.length; T++) {
359
- var $ = y[T], R = te($), Z = Me($) === we, N = [D, H].indexOf(R) >= 0, X = N ? "width" : "height", Y = Fe(e, { placement: $, boundary: d, rootBoundary: u, altBoundary: b, padding: h }), L = N ? Z ? q : P : Z ? H : D;
360
- A[X] > v[X] && (L = ut(L));
361
- var ne = ut(L), se = [];
362
- if (o && se.push(Y[R] <= 0), a && se.push(Y[L] <= 0, Y[ne] <= 0), se.every(function(x) {
363
- return x;
364
- })) {
365
- O = $, E = !1;
366
- break;
367
- }
368
- w.set($, se);
369
- }
370
- if (E) for (var Ye = function(x) {
371
- var j = y.find(function(G) {
372
- var ve = w.get(G);
373
- if (ve) return ve.slice(0, x).every(function(Tt) {
374
- return Tt;
375
- });
376
- });
377
- if (j) return O = j, "break";
378
- }, I = g ? 3 : 1; I > 0 && Ye(I) !== "break"; I--) ;
379
- e.placement !== O && (e.modifiersData[n]._skip = !0, e.placement = O, e.reset = !0);
380
- }
381
- }, requiresIfExists: ["offset"], data: { _skip: !1 } };
382
- function qi(i, e, t) {
383
- return t === void 0 && (t = { x: 0, y: 0 }), { top: i.top - e.height - t.y, right: i.right - e.width + t.x, bottom: i.bottom - e.height + t.y, left: i.left - e.width - t.x };
384
- }
385
- function zi(i) {
386
- return [D, q, H, P].some(function(e) {
387
- return i[e] >= 0;
388
- });
389
- }
390
- const Wi = { name: "hide", enabled: !0, phase: "main", requiresIfExists: ["preventOverflow"], fn: function(i) {
391
- var e = i.state, t = i.name, n = e.rects.reference, s = e.rects.popper, o = e.modifiersData.preventOverflow, r = Fe(e, { elementContext: "reference" }), a = Fe(e, { altBoundary: !0 }), c = qi(r, n), h = qi(a, s, o), d = zi(c), u = zi(h);
392
- e.modifiersData[t] = { referenceClippingOffsets: c, popperEscapeOffsets: h, isReferenceHidden: d, hasPopperEscaped: u }, e.attributes.popper = Object.assign({}, e.attributes.popper, { "data-popper-reference-hidden": d, "data-popper-escaped": u });
393
- } }, Ri = { name: "offset", enabled: !0, phase: "main", requires: ["popperOffsets"], fn: function(i) {
394
- var e = i.state, t = i.options, n = i.name, s = t.offset, o = s === void 0 ? [0, 0] : s, r = St.reduce(function(d, u) {
395
- return d[u] = (function(b, p, g) {
396
- var m = te(b), _ = [P, D].indexOf(m) >= 0 ? -1 : 1, C = typeof g == "function" ? g(Object.assign({}, p, { placement: b })) : g, k = C[0], y = C[1];
397
- return k = k || 0, y = (y || 0) * _, [P, q].indexOf(m) >= 0 ? { x: y, y: k } : { x: k, y };
398
- })(u, e.rects, o), d;
399
- }, {}), a = r[e.placement], c = a.x, h = a.y;
400
- e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += c, e.modifiersData.popperOffsets.y += h), e.modifiersData[n] = r;
401
- } }, zt = { name: "popperOffsets", enabled: !0, phase: "read", fn: function(i) {
402
- var e = i.state, t = i.name;
403
- e.modifiersData[t] = Fi({ reference: e.rects.reference, element: e.rects.popper, placement: e.placement });
404
- }, data: {} }, Bi = { name: "preventOverflow", enabled: !0, phase: "main", fn: function(i) {
405
- var e = i.state, t = i.options, n = i.name, s = t.mainAxis, o = s === void 0 || s, r = t.altAxis, a = r !== void 0 && r, c = t.boundary, h = t.rootBoundary, d = t.altBoundary, u = t.padding, b = t.tether, p = b === void 0 || b, g = t.tetherOffset, m = g === void 0 ? 0 : g, _ = Fe(e, { boundary: c, rootBoundary: h, padding: u, altBoundary: d }), C = te(e.placement), k = Me(e.placement), y = !k, A = Pt(C), v = A === "x" ? "y" : "x", w = e.modifiersData.popperOffsets, E = e.rects.reference, O = e.rects.popper, T = typeof m == "function" ? m(Object.assign({}, e.rects, { placement: e.placement })) : m, $ = typeof T == "number" ? { mainAxis: T, altAxis: T } : Object.assign({ mainAxis: 0, altAxis: 0 }, T), R = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, Z = { x: 0, y: 0 };
406
- if (w) {
407
- if (o) {
408
- var N, X = A === "y" ? D : P, Y = A === "y" ? H : q, L = A === "y" ? "height" : "width", ne = w[A], se = ne + _[X], Ye = ne - _[Y], I = p ? -O[L] / 2 : 0, x = k === we ? E[L] : O[L], j = k === we ? -O[L] : -E[L], G = e.elements.arrow, ve = p && G ? It(G) : { width: 0, height: 0 }, Tt = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : { top: 0, right: 0, bottom: 0, left: 0 }, Zn = Tt[X], es = Tt[Y], Ct = Je(0, E[L], ve[L]), Pr = y ? E[L] / 2 - I - Ct - Zn - $.mainAxis : x - Ct - Zn - $.mainAxis, Nr = y ? -E[L] / 2 + I + Ct + es + $.mainAxis : j + Ct + es + $.mainAxis, fi = e.elements.arrow && Ge(e.elements.arrow), jr = fi ? A === "y" ? fi.clientTop || 0 : fi.clientLeft || 0 : 0, ts = (N = R?.[A]) != null ? N : 0, Mr = ne + Nr - ts, is = Je(p ? at(se, ne + Pr - ts - jr) : se, ne, p ? Ee(Ye, Mr) : Ye);
409
- w[A] = is, Z[A] = is - ne;
410
- }
411
- if (a) {
412
- var ns, Fr = A === "x" ? D : P, Hr = A === "x" ? H : q, $e = w[v], Ot = v === "y" ? "height" : "width", ss = $e + _[Fr], os = $e - _[Hr], pi = [D, P].indexOf(C) !== -1, rs = (ns = R?.[v]) != null ? ns : 0, as = pi ? ss : $e - E[Ot] - O[Ot] - rs + $.altAxis, ls = pi ? $e + E[Ot] + O[Ot] - rs - $.altAxis : os, cs = p && pi ? (function(qr, zr, mi) {
413
- var us = Je(qr, zr, mi);
414
- return us > mi ? mi : us;
415
- })(as, $e, ls) : Je(p ? as : ss, $e, p ? ls : os);
416
- w[v] = cs, Z[v] = cs - $e;
417
- }
418
- e.modifiersData[n] = Z;
419
- }
420
- }, requiresIfExists: ["offset"] };
421
- function bs(i, e, t) {
422
- t === void 0 && (t = !1);
423
- var n, s, o = V(e), r = V(e) && (function(u) {
424
- var b = u.getBoundingClientRect(), p = Ne(b.width) / u.offsetWidth || 1, g = Ne(b.height) / u.offsetHeight || 1;
425
- return p !== 1 || g !== 1;
426
- })(e), a = de(e), c = je(i, r, t), h = { scrollLeft: 0, scrollTop: 0 }, d = { x: 0, y: 0 };
427
- return (o || !o && !t) && ((ee(e) !== "body" || Ht(a)) && (h = (n = e) !== z(n) && V(n) ? { scrollLeft: (s = n).scrollLeft, scrollTop: s.scrollTop } : Mt(n)), V(e) ? ((d = je(e, !0)).x += e.clientLeft, d.y += e.clientTop) : a && (d.x = Ft(a))), { x: c.left + h.scrollLeft - d.x, y: c.top + h.scrollTop - d.y, width: c.width, height: c.height };
428
- }
429
- function vs(i) {
430
- var e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), n = [];
431
- function s(o) {
432
- t.add(o.name), [].concat(o.requires || [], o.requiresIfExists || []).forEach(function(r) {
433
- if (!t.has(r)) {
434
- var a = e.get(r);
435
- a && s(a);
436
- }
437
- }), n.push(o);
438
- }
439
- return i.forEach(function(o) {
440
- e.set(o.name, o);
441
- }), i.forEach(function(o) {
442
- t.has(o.name) || s(o);
443
- }), n;
444
- }
445
- var Vi = { placement: "bottom", modifiers: [], strategy: "absolute" };
446
- function Ui() {
447
- for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++) e[t] = arguments[t];
448
- return !e.some(function(n) {
449
- return !(n && typeof n.getBoundingClientRect == "function");
450
- });
451
- }
452
- function ht(i) {
453
- i === void 0 && (i = {});
454
- var e = i, t = e.defaultModifiers, n = t === void 0 ? [] : t, s = e.defaultOptions, o = s === void 0 ? Vi : s;
455
- return function(r, a, c) {
456
- c === void 0 && (c = o);
457
- var h, d, u = { placement: "bottom", orderedModifiers: [], options: Object.assign({}, Vi, o), modifiersData: {}, elements: { reference: r, popper: a }, attributes: {}, styles: {} }, b = [], p = !1, g = { state: u, setOptions: function(_) {
458
- var C = typeof _ == "function" ? _(u.options) : _;
459
- m(), u.options = Object.assign({}, o, u.options, C), u.scrollParents = { reference: Ae(r) ? Ze(r) : r.contextElement ? Ze(r.contextElement) : [], popper: Ze(a) };
460
- var k, y, A = (function(v) {
461
- var w = vs(v);
462
- return xi.reduce(function(E, O) {
463
- return E.concat(w.filter(function(T) {
464
- return T.phase === O;
465
- }));
466
- }, []);
467
- })((k = [].concat(n, u.options.modifiers), y = k.reduce(function(v, w) {
468
- var E = v[w.name];
469
- return v[w.name] = E ? Object.assign({}, E, w, { options: Object.assign({}, E.options, w.options), data: Object.assign({}, E.data, w.data) }) : w, v;
470
- }, {}), Object.keys(y).map(function(v) {
471
- return y[v];
472
- })));
473
- return u.orderedModifiers = A.filter(function(v) {
474
- return v.enabled;
475
- }), u.orderedModifiers.forEach(function(v) {
476
- var w = v.name, E = v.options, O = E === void 0 ? {} : E, T = v.effect;
477
- if (typeof T == "function") {
478
- var $ = T({ state: u, name: w, instance: g, options: O });
479
- b.push($ || function() {
480
- });
481
- }
482
- }), g.update();
483
- }, forceUpdate: function() {
484
- if (!p) {
485
- var _ = u.elements, C = _.reference, k = _.popper;
486
- if (Ui(C, k)) {
487
- u.rects = { reference: bs(C, Ge(k), u.options.strategy === "fixed"), popper: It(k) }, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(T) {
488
- return u.modifiersData[T.name] = Object.assign({}, T.data);
489
- });
490
- for (var y = 0; y < u.orderedModifiers.length; y++) if (u.reset !== !0) {
491
- var A = u.orderedModifiers[y], v = A.fn, w = A.options, E = w === void 0 ? {} : w, O = A.name;
492
- typeof v == "function" && (u = v({ state: u, options: E, name: O, instance: g }) || u);
493
- } else u.reset = !1, y = -1;
494
- }
495
- }
496
- }, update: (h = function() {
497
- return new Promise(function(_) {
498
- g.forceUpdate(), _(u);
499
- });
500
- }, function() {
501
- return d || (d = new Promise(function(_) {
502
- Promise.resolve().then(function() {
503
- d = void 0, _(h());
504
- });
505
- })), d;
506
- }), destroy: function() {
507
- m(), p = !0;
508
- } };
509
- if (!Ui(r, a)) return g;
510
- function m() {
511
- b.forEach(function(_) {
512
- return _();
513
- }), b = [];
514
- }
515
- return g.setOptions(c).then(function(_) {
516
- !p && c.onFirstUpdate && c.onFirstUpdate(_);
517
- }), g;
518
- };
519
- }
520
- var ys = ht(), ws = ht({ defaultModifiers: [jt, zt, Nt, $t] }), Wt = ht({ defaultModifiers: [jt, zt, Nt, $t, Ri, Hi, Bi, Ii, Wi] });
521
- const Ki = Object.freeze(Object.defineProperty({ __proto__: null, afterMain: Ei, afterRead: yi, afterWrite: Oi, applyStyles: $t, arrow: Ii, auto: rt, basePlacements: De, beforeMain: wi, beforeRead: bi, beforeWrite: Ti, bottom: H, clippingParents: gi, computeStyles: Nt, createPopper: Wt, createPopperBase: ys, createPopperLite: ws, detectOverflow: Fe, end: Ie, eventListeners: jt, flip: Hi, hide: Wi, left: P, main: Ai, modifierPhases: xi, offset: Ri, placements: St, popper: Pe, popperGenerator: ht, popperOffsets: zt, preventOverflow: Bi, read: vi, reference: _i, right: q, start: we, top: D, variationPlacements: kt, viewport: xt, write: Ci }, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ new Map(), Rt = { set(i, e, t) {
522
- fe.has(i) || fe.set(i, /* @__PURE__ */ new Map());
523
- const n = fe.get(i);
524
- n.has(e) || n.size === 0 ? n.set(e, t) : console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);
525
- }, get: (i, e) => fe.has(i) && fe.get(i).get(e) || null, remove(i, e) {
526
- if (!fe.has(i)) return;
527
- const t = fe.get(i);
528
- t.delete(e), t.size === 0 && fe.delete(i);
529
- } }, Bt = "transitionend", Qi = (i) => (i && window.CSS && window.CSS.escape && (i = i.replace(/#([^\s"#']+)/g, (e, t) => `#${CSS.escape(t)}`)), i), As = (i) => i == null ? `${i}` : Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(), Xi = (i) => {
530
- i.dispatchEvent(new Event(Bt));
531
- }, re = (i) => !(!i || typeof i != "object") && (i.jquery !== void 0 && (i = i[0]), i.nodeType !== void 0), pe = (i) => re(i) ? i.jquery ? i[0] : i : typeof i == "string" && i.length > 0 ? document.querySelector(Qi(i)) : null, He = (i) => {
532
- if (!re(i) || i.getClientRects().length === 0) return !1;
533
- const e = getComputedStyle(i).getPropertyValue("visibility") === "visible", t = i.closest("details:not([open])");
534
- if (!t) return e;
535
- if (t !== i) {
536
- const n = i.closest("summary");
537
- if (n && n.parentNode !== t || n === null) return !1;
538
- }
539
- return e;
540
- }, me = (i) => !i || i.nodeType !== Node.ELEMENT_NODE || !!i.classList.contains("disabled") || (i.disabled !== void 0 ? i.disabled : i.hasAttribute("disabled") && i.getAttribute("disabled") !== "false"), Yi = (i) => {
541
- if (!document.documentElement.attachShadow) return null;
542
- if (typeof i.getRootNode == "function") {
543
- const e = i.getRootNode();
544
- return e instanceof ShadowRoot ? e : null;
545
- }
546
- return i instanceof ShadowRoot ? i : i.parentNode ? Yi(i.parentNode) : null;
547
- }, dt = () => {
548
- }, et = (i) => {
549
- i.offsetHeight;
550
- }, Gi = () => window.jQuery && !document.body.hasAttribute("data-bs-no-jquery") ? window.jQuery : null, Vt = [], U = () => document.documentElement.dir === "rtl", K = (i) => {
551
- var e;
552
- e = () => {
553
- const t = Gi();
554
- if (t) {
555
- const n = i.NAME, s = t.fn[n];
556
- t.fn[n] = i.jQueryInterface, t.fn[n].Constructor = i, t.fn[n].noConflict = () => (t.fn[n] = s, i.jQueryInterface);
557
- }
558
- }, document.readyState === "loading" ? (Vt.length || document.addEventListener("DOMContentLoaded", () => {
559
- for (const t of Vt) t();
560
- }), Vt.push(e)) : e();
561
- }, F = (i, e = [], t = i) => typeof i == "function" ? i.call(...e) : t, Ji = (i, e, t = !0) => {
562
- if (!t) return void F(i);
563
- const n = ((r) => {
564
- if (!r) return 0;
565
- let { transitionDuration: a, transitionDelay: c } = window.getComputedStyle(r);
566
- const h = Number.parseFloat(a), d = Number.parseFloat(c);
567
- return h || d ? (a = a.split(",")[0], c = c.split(",")[0], 1e3 * (Number.parseFloat(a) + Number.parseFloat(c))) : 0;
568
- })(e) + 5;
569
- let s = !1;
570
- const o = ({ target: r }) => {
571
- r === e && (s = !0, e.removeEventListener(Bt, o), F(i));
572
- };
573
- e.addEventListener(Bt, o), setTimeout(() => {
574
- s || Xi(e);
575
- }, n);
576
- }, Ut = (i, e, t, n) => {
577
- const s = i.length;
578
- let o = i.indexOf(e);
579
- return o === -1 ? !t && n ? i[s - 1] : i[0] : (o += t ? 1 : -1, n && (o = (o + s) % s), i[Math.max(0, Math.min(o, s - 1))]);
580
- }, Es = /[^.]*(?=\..*)\.|.*/, Ts = /\..*/, Cs = /::\d+$/, Kt = {};
581
- /*!
582
- * Bootstrap v5.3.7 (https://getbootstrap.com/)
583
- * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
584
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
585
- */
586
- let Zi = 1;
587
- const en = { mouseenter: "mouseover", mouseleave: "mouseout" }, Os = /* @__PURE__ */ new Set(["click", "dblclick", "mouseup", "mousedown", "contextmenu", "mousewheel", "DOMMouseScroll", "mouseover", "mouseout", "mousemove", "selectstart", "selectend", "keydown", "keypress", "keyup", "orientationchange", "touchstart", "touchmove", "touchend", "touchcancel", "pointerdown", "pointermove", "pointerup", "pointerleave", "pointercancel", "gesturestart", "gesturechange", "gestureend", "focus", "blur", "change", "reset", "select", "submit", "focusin", "focusout", "load", "unload", "beforeunload", "resize", "move", "DOMContentLoaded", "readystatechange", "error", "abort", "scroll"]);
588
- function tn(i, e) {
589
- return e && `${e}::${Zi++}` || i.uidEvent || Zi++;
590
- }
591
- function nn(i) {
592
- const e = tn(i);
593
- return i.uidEvent = e, Kt[e] = Kt[e] || {}, Kt[e];
594
- }
595
- function sn(i, e, t = null) {
596
- return Object.values(i).find((n) => n.callable === e && n.delegationSelector === t);
597
- }
598
- function on(i, e, t) {
599
- const n = typeof e == "string", s = n ? t : e || t;
600
- let o = an(i);
601
- return Os.has(o) || (o = i), [n, s, o];
602
- }
603
- function rn(i, e, t, n, s) {
604
- if (typeof e != "string" || !i) return;
605
- let [o, r, a] = on(e, t, n);
606
- e in en && (r = ((g) => function(m) {
607
- if (!m.relatedTarget || m.relatedTarget !== m.delegateTarget && !m.delegateTarget.contains(m.relatedTarget)) return g.call(this, m);
608
- })(r));
609
- const c = nn(i), h = c[a] || (c[a] = {}), d = sn(h, r, o ? t : null);
610
- if (d) return void (d.oneOff = d.oneOff && s);
611
- const u = tn(r, e.replace(Es, "")), b = o ? /* @__PURE__ */ (function(p, g, m) {
612
- return function _(C) {
613
- const k = p.querySelectorAll(g);
614
- for (let { target: y } = C; y && y !== this; y = y.parentNode) for (const A of k) if (A === y) return Xt(C, { delegateTarget: y }), _.oneOff && l.off(p, C.type, g, m), m.apply(y, [C]);
615
- };
616
- })(i, t, r) : /* @__PURE__ */ (function(p, g) {
617
- return function m(_) {
618
- return Xt(_, { delegateTarget: p }), m.oneOff && l.off(p, _.type, g), g.apply(p, [_]);
619
- };
620
- })(i, r);
621
- b.delegationSelector = o ? t : null, b.callable = r, b.oneOff = s, b.uidEvent = u, h[u] = b, i.addEventListener(a, b, o);
622
- }
623
- function Qt(i, e, t, n, s) {
624
- const o = sn(e[t], n, s);
625
- o && (i.removeEventListener(t, o, !!s), delete e[t][o.uidEvent]);
626
- }
627
- function xs(i, e, t, n) {
628
- const s = e[t] || {};
629
- for (const [o, r] of Object.entries(s)) o.includes(n) && Qt(i, e, t, r.callable, r.delegationSelector);
630
- }
631
- function an(i) {
632
- return i = i.replace(Ts, ""), en[i] || i;
633
- }
634
- const l = { on(i, e, t, n) {
635
- rn(i, e, t, n, !1);
636
- }, one(i, e, t, n) {
637
- rn(i, e, t, n, !0);
638
- }, off(i, e, t, n) {
639
- if (typeof e != "string" || !i) return;
640
- const [s, o, r] = on(e, t, n), a = r !== e, c = nn(i), h = c[r] || {}, d = e.startsWith(".");
641
- if (o === void 0) {
642
- if (d) for (const u of Object.keys(c)) xs(i, c, u, e.slice(1));
643
- for (const [u, b] of Object.entries(h)) {
644
- const p = u.replace(Cs, "");
645
- a && !e.includes(p) || Qt(i, c, r, b.callable, b.delegationSelector);
646
- }
647
- } else {
648
- if (!Object.keys(h).length) return;
649
- Qt(i, c, r, o, s ? t : null);
650
- }
651
- }, trigger(i, e, t) {
652
- if (typeof e != "string" || !i) return null;
653
- const n = Gi();
654
- let s = null, o = !0, r = !0, a = !1;
655
- e !== an(e) && n && (s = n.Event(e, t), n(i).trigger(s), o = !s.isPropagationStopped(), r = !s.isImmediatePropagationStopped(), a = s.isDefaultPrevented());
656
- const c = Xt(new Event(e, { bubbles: o, cancelable: !0 }), t);
657
- return a && c.preventDefault(), r && i.dispatchEvent(c), c.defaultPrevented && s && s.preventDefault(), c;
658
- } };
659
- function Xt(i, e = {}) {
660
- for (const [t, n] of Object.entries(e)) try {
661
- i[t] = n;
662
- } catch {
663
- Object.defineProperty(i, t, { configurable: !0, get: () => n });
664
- }
665
- return i;
666
- }
667
- function ln(i) {
668
- if (i === "true") return !0;
669
- if (i === "false") return !1;
670
- if (i === Number(i).toString()) return Number(i);
671
- if (i === "" || i === "null") return null;
672
- if (typeof i != "string") return i;
673
- try {
674
- return JSON.parse(decodeURIComponent(i));
675
- } catch {
676
- return i;
677
- }
678
- }
679
- function Yt(i) {
680
- return i.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
681
- }
682
- const ae = { setDataAttribute(i, e, t) {
683
- i.setAttribute(`data-bs-${Yt(e)}`, t);
684
- }, removeDataAttribute(i, e) {
685
- i.removeAttribute(`data-bs-${Yt(e)}`);
686
- }, getDataAttributes(i) {
687
- if (!i) return {};
688
- const e = {}, t = Object.keys(i.dataset).filter((n) => n.startsWith("bs") && !n.startsWith("bsConfig"));
689
- for (const n of t) {
690
- let s = n.replace(/^bs/, "");
691
- s = s.charAt(0).toLowerCase() + s.slice(1), e[s] = ln(i.dataset[n]);
692
- }
693
- return e;
694
- }, getDataAttribute: (i, e) => ln(i.getAttribute(`data-bs-${Yt(e)}`)) };
695
- class tt {
696
- static get Default() {
697
- return {};
698
- }
699
- static get DefaultType() {
700
- return {};
701
- }
702
- static get NAME() {
703
- throw new Error('You have to implement the static method "NAME", for each component!');
704
- }
705
- _getConfig(e) {
706
- return e = this._mergeConfigObj(e), e = this._configAfterMerge(e), this._typeCheckConfig(e), e;
707
- }
708
- _configAfterMerge(e) {
709
- return e;
710
- }
711
- _mergeConfigObj(e, t) {
712
- const n = re(t) ? ae.getDataAttribute(t, "config") : {};
713
- return { ...this.constructor.Default, ...typeof n == "object" ? n : {}, ...re(t) ? ae.getDataAttributes(t) : {}, ...typeof e == "object" ? e : {} };
714
- }
715
- _typeCheckConfig(e, t = this.constructor.DefaultType) {
716
- for (const [n, s] of Object.entries(t)) {
717
- const o = e[n], r = re(o) ? "element" : As(o);
718
- if (!new RegExp(s).test(r)) throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`);
719
- }
720
- }
721
- }
722
- class J extends tt {
723
- constructor(e, t) {
724
- super(), (e = pe(e)) && (this._element = e, this._config = this._getConfig(t), Rt.set(this._element, this.constructor.DATA_KEY, this));
725
- }
726
- dispose() {
727
- Rt.remove(this._element, this.constructor.DATA_KEY), l.off(this._element, this.constructor.EVENT_KEY);
728
- for (const e of Object.getOwnPropertyNames(this)) this[e] = null;
729
- }
730
- _queueCallback(e, t, n = !0) {
731
- Ji(e, t, n);
732
- }
733
- _getConfig(e) {
734
- return e = this._mergeConfigObj(e, this._element), e = this._configAfterMerge(e), this._typeCheckConfig(e), e;
735
- }
736
- static getInstance(e) {
737
- return Rt.get(pe(e), this.DATA_KEY);
738
- }
739
- static getOrCreateInstance(e, t = {}) {
740
- return this.getInstance(e) || new this(e, typeof t == "object" ? t : null);
741
- }
742
- static get VERSION() {
743
- return "5.3.7";
744
- }
745
- static get DATA_KEY() {
746
- return `bs.${this.NAME}`;
747
- }
748
- static get EVENT_KEY() {
749
- return `.${this.DATA_KEY}`;
750
- }
751
- static eventName(e) {
752
- return `${e}${this.EVENT_KEY}`;
753
- }
754
- }
755
- const Gt = (i) => {
756
- let e = i.getAttribute("data-bs-target");
757
- if (!e || e === "#") {
758
- let t = i.getAttribute("href");
759
- if (!t || !t.includes("#") && !t.startsWith(".")) return null;
760
- t.includes("#") && !t.startsWith("#") && (t = `#${t.split("#")[1]}`), e = t && t !== "#" ? t.trim() : null;
761
- }
762
- return e ? e.split(",").map((t) => Qi(t)).join(",") : null;
763
- }, f = { find: (i, e = document.documentElement) => [].concat(...Element.prototype.querySelectorAll.call(e, i)), findOne: (i, e = document.documentElement) => Element.prototype.querySelector.call(e, i), children: (i, e) => [].concat(...i.children).filter((t) => t.matches(e)), parents(i, e) {
764
- const t = [];
765
- let n = i.parentNode.closest(e);
766
- for (; n; ) t.push(n), n = n.parentNode.closest(e);
767
- return t;
768
- }, prev(i, e) {
769
- let t = i.previousElementSibling;
770
- for (; t; ) {
771
- if (t.matches(e)) return [t];
772
- t = t.previousElementSibling;
773
- }
774
- return [];
775
- }, next(i, e) {
776
- let t = i.nextElementSibling;
777
- for (; t; ) {
778
- if (t.matches(e)) return [t];
779
- t = t.nextElementSibling;
780
- }
781
- return [];
782
- }, focusableChildren(i) {
783
- const e = ["a", "button", "input", "textarea", "select", "details", "[tabindex]", '[contenteditable="true"]'].map((t) => `${t}:not([tabindex^="-"])`).join(",");
784
- return this.find(e, i).filter((t) => !me(t) && He(t));
785
- }, getSelectorFromElement(i) {
786
- const e = Gt(i);
787
- return e && f.findOne(e) ? e : null;
788
- }, getElementFromSelector(i) {
789
- const e = Gt(i);
790
- return e ? f.findOne(e) : null;
791
- }, getMultipleElementsFromSelector(i) {
792
- const e = Gt(i);
793
- return e ? f.find(e) : [];
794
- } }, ft = (i, e = "hide") => {
795
- const t = `click.dismiss${i.EVENT_KEY}`, n = i.NAME;
796
- l.on(document, t, `[data-bs-dismiss="${n}"]`, function(s) {
797
- if (["A", "AREA"].includes(this.tagName) && s.preventDefault(), me(this)) return;
798
- const o = f.getElementFromSelector(this) || this.closest(`.${n}`);
799
- i.getOrCreateInstance(o)[e]();
800
- });
801
- }, cn = ".bs.alert", ks = `close${cn}`, Ss = `closed${cn}`;
802
- class qe extends J {
803
- static get NAME() {
804
- return "alert";
805
- }
806
- close() {
807
- if (l.trigger(this._element, ks).defaultPrevented) return;
808
- this._element.classList.remove("show");
809
- const e = this._element.classList.contains("fade");
810
- this._queueCallback(() => this._destroyElement(), this._element, e);
811
- }
812
- _destroyElement() {
813
- this._element.remove(), l.trigger(this._element, Ss), this.dispose();
814
- }
815
- static jQueryInterface(e) {
816
- return this.each(function() {
817
- const t = qe.getOrCreateInstance(this);
818
- if (typeof e == "string") {
819
- if (t[e] === void 0 || e.startsWith("_") || e === "constructor") throw new TypeError(`No method named "${e}"`);
820
- t[e](this);
821
- }
822
- });
823
- }
824
- }
825
- ft(qe, "close"), K(qe);
826
- const un = '[data-bs-toggle="button"]';
827
- class ze extends J {
828
- static get NAME() {
829
- return "button";
830
- }
831
- toggle() {
832
- this._element.setAttribute("aria-pressed", this._element.classList.toggle("active"));
833
- }
834
- static jQueryInterface(e) {
835
- return this.each(function() {
836
- const t = ze.getOrCreateInstance(this);
837
- e === "toggle" && t[e]();
838
- });
839
- }
840
- }
841
- l.on(document, "click.bs.button.data-api", un, (i) => {
842
- i.preventDefault();
843
- const e = i.target.closest(un);
844
- ze.getOrCreateInstance(e).toggle();
845
- }), K(ze);
846
- const We = ".bs.swipe", Ls = `touchstart${We}`, $s = `touchmove${We}`, Ds = `touchend${We}`, Is = `pointerdown${We}`, Ps = `pointerup${We}`, Ns = { endCallback: null, leftCallback: null, rightCallback: null }, js = { endCallback: "(function|null)", leftCallback: "(function|null)", rightCallback: "(function|null)" };
847
- class pt extends tt {
848
- constructor(e, t) {
849
- super(), this._element = e, e && pt.isSupported() && (this._config = this._getConfig(t), this._deltaX = 0, this._supportPointerEvents = !!window.PointerEvent, this._initEvents());
850
- }
851
- static get Default() {
852
- return Ns;
853
- }
854
- static get DefaultType() {
855
- return js;
856
- }
857
- static get NAME() {
858
- return "swipe";
859
- }
860
- dispose() {
861
- l.off(this._element, We);
862
- }
863
- _start(e) {
864
- this._supportPointerEvents ? this._eventIsPointerPenTouch(e) && (this._deltaX = e.clientX) : this._deltaX = e.touches[0].clientX;
865
- }
866
- _end(e) {
867
- this._eventIsPointerPenTouch(e) && (this._deltaX = e.clientX - this._deltaX), this._handleSwipe(), F(this._config.endCallback);
868
- }
869
- _move(e) {
870
- this._deltaX = e.touches && e.touches.length > 1 ? 0 : e.touches[0].clientX - this._deltaX;
871
- }
872
- _handleSwipe() {
873
- const e = Math.abs(this._deltaX);
874
- if (e <= 40) return;
875
- const t = e / this._deltaX;
876
- this._deltaX = 0, t && F(t > 0 ? this._config.rightCallback : this._config.leftCallback);
877
- }
878
- _initEvents() {
879
- this._supportPointerEvents ? (l.on(this._element, Is, (e) => this._start(e)), l.on(this._element, Ps, (e) => this._end(e)), this._element.classList.add("pointer-event")) : (l.on(this._element, Ls, (e) => this._start(e)), l.on(this._element, $s, (e) => this._move(e)), l.on(this._element, Ds, (e) => this._end(e)));
880
- }
881
- _eventIsPointerPenTouch(e) {
882
- return this._supportPointerEvents && (e.pointerType === "pen" || e.pointerType === "touch");
883
- }
884
- static isSupported() {
885
- return "ontouchstart" in document.documentElement || navigator.maxTouchPoints > 0;
886
- }
887
- }
888
- const ge = ".bs.carousel", hn = ".data-api", Ms = "ArrowLeft", Fs = "ArrowRight", it = "next", Re = "prev", Be = "left", mt = "right", Hs = `slide${ge}`, Jt = `slid${ge}`, qs = `keydown${ge}`, zs = `mouseenter${ge}`, Ws = `mouseleave${ge}`, Rs = `dragstart${ge}`, Bs = `load${ge}${hn}`, Vs = `click${ge}${hn}`, dn = "carousel", gt = "active", fn = ".active", pn = ".carousel-item", Us = fn + pn, Ks = { [Ms]: mt, [Fs]: Be }, Qs = { interval: 5e3, keyboard: !0, pause: "hover", ride: !1, touch: !0, wrap: !0 }, Xs = { interval: "(number|boolean)", keyboard: "boolean", pause: "(string|boolean)", ride: "(boolean|string)", touch: "boolean", wrap: "boolean" };
889
- class Te extends J {
890
- constructor(e, t) {
891
- super(e, t), this._interval = null, this._activeElement = null, this._isSliding = !1, this.touchTimeout = null, this._swipeHelper = null, this._indicatorsElement = f.findOne(".carousel-indicators", this._element), this._addEventListeners(), this._config.ride === dn && this.cycle();
892
- }
893
- static get Default() {
894
- return Qs;
895
- }
896
- static get DefaultType() {
897
- return Xs;
898
- }
899
- static get NAME() {
900
- return "carousel";
901
- }
902
- next() {
903
- this._slide(it);
904
- }
905
- nextWhenVisible() {
906
- !document.hidden && He(this._element) && this.next();
907
- }
908
- prev() {
909
- this._slide(Re);
910
- }
911
- pause() {
912
- this._isSliding && Xi(this._element), this._clearInterval();
913
- }
914
- cycle() {
915
- this._clearInterval(), this._updateInterval(), this._interval = setInterval(() => this.nextWhenVisible(), this._config.interval);
916
- }
917
- _maybeEnableCycle() {
918
- this._config.ride && (this._isSliding ? l.one(this._element, Jt, () => this.cycle()) : this.cycle());
919
- }
920
- to(e) {
921
- const t = this._getItems();
922
- if (e > t.length - 1 || e < 0) return;
923
- if (this._isSliding) return void l.one(this._element, Jt, () => this.to(e));
924
- const n = this._getItemIndex(this._getActive());
925
- if (n === e) return;
926
- const s = e > n ? it : Re;
927
- this._slide(s, t[e]);
928
- }
929
- dispose() {
930
- this._swipeHelper && this._swipeHelper.dispose(), super.dispose();
931
- }
932
- _configAfterMerge(e) {
933
- return e.defaultInterval = e.interval, e;
934
- }
935
- _addEventListeners() {
936
- this._config.keyboard && l.on(this._element, qs, (e) => this._keydown(e)), this._config.pause === "hover" && (l.on(this._element, zs, () => this.pause()), l.on(this._element, Ws, () => this._maybeEnableCycle())), this._config.touch && pt.isSupported() && this._addTouchEventListeners();
937
- }
938
- _addTouchEventListeners() {
939
- for (const t of f.find(".carousel-item img", this._element)) l.on(t, Rs, (n) => n.preventDefault());
940
- const e = { leftCallback: () => this._slide(this._directionToOrder(Be)), rightCallback: () => this._slide(this._directionToOrder(mt)), endCallback: () => {
941
- this._config.pause === "hover" && (this.pause(), this.touchTimeout && clearTimeout(this.touchTimeout), this.touchTimeout = setTimeout(() => this._maybeEnableCycle(), 500 + this._config.interval));
942
- } };
943
- this._swipeHelper = new pt(this._element, e);
944
- }
945
- _keydown(e) {
946
- if (/input|textarea/i.test(e.target.tagName)) return;
947
- const t = Ks[e.key];
948
- t && (e.preventDefault(), this._slide(this._directionToOrder(t)));
949
- }
950
- _getItemIndex(e) {
951
- return this._getItems().indexOf(e);
952
- }
953
- _setActiveIndicatorElement(e) {
954
- if (!this._indicatorsElement) return;
955
- const t = f.findOne(fn, this._indicatorsElement);
956
- t.classList.remove(gt), t.removeAttribute("aria-current");
957
- const n = f.findOne(`[data-bs-slide-to="${e}"]`, this._indicatorsElement);
958
- n && (n.classList.add(gt), n.setAttribute("aria-current", "true"));
959
- }
960
- _updateInterval() {
961
- const e = this._activeElement || this._getActive();
962
- if (!e) return;
963
- const t = Number.parseInt(e.getAttribute("data-bs-interval"), 10);
964
- this._config.interval = t || this._config.defaultInterval;
965
- }
966
- _slide(e, t = null) {
967
- if (this._isSliding) return;
968
- const n = this._getActive(), s = e === it, o = t || Ut(this._getItems(), n, s, this._config.wrap);
969
- if (o === n) return;
970
- const r = this._getItemIndex(o), a = (u) => l.trigger(this._element, u, { relatedTarget: o, direction: this._orderToDirection(e), from: this._getItemIndex(n), to: r });
971
- if (a(Hs).defaultPrevented || !n || !o) return;
972
- const c = !!this._interval;
973
- this.pause(), this._isSliding = !0, this._setActiveIndicatorElement(r), this._activeElement = o;
974
- const h = s ? "carousel-item-start" : "carousel-item-end", d = s ? "carousel-item-next" : "carousel-item-prev";
975
- o.classList.add(d), et(o), n.classList.add(h), o.classList.add(h), this._queueCallback(() => {
976
- o.classList.remove(h, d), o.classList.add(gt), n.classList.remove(gt, d, h), this._isSliding = !1, a(Jt);
977
- }, n, this._isAnimated()), c && this.cycle();
978
- }
979
- _isAnimated() {
980
- return this._element.classList.contains("slide");
981
- }
982
- _getActive() {
983
- return f.findOne(Us, this._element);
984
- }
985
- _getItems() {
986
- return f.find(pn, this._element);
987
- }
988
- _clearInterval() {
989
- this._interval && (clearInterval(this._interval), this._interval = null);
990
- }
991
- _directionToOrder(e) {
992
- return U() ? e === Be ? Re : it : e === Be ? it : Re;
993
- }
994
- _orderToDirection(e) {
995
- return U() ? e === Re ? Be : mt : e === Re ? mt : Be;
996
- }
997
- static jQueryInterface(e) {
998
- return this.each(function() {
999
- const t = Te.getOrCreateInstance(this, e);
1000
- if (typeof e != "number") {
1001
- if (typeof e == "string") {
1002
- if (t[e] === void 0 || e.startsWith("_") || e === "constructor") throw new TypeError(`No method named "${e}"`);
1003
- t[e]();
1004
- }
1005
- } else t.to(e);
1006
- });
1007
- }
1008
- }
1009
- l.on(document, Vs, "[data-bs-slide], [data-bs-slide-to]", function(i) {
1010
- const e = f.getElementFromSelector(this);
1011
- if (!e || !e.classList.contains(dn)) return;
1012
- i.preventDefault();
1013
- const t = Te.getOrCreateInstance(e), n = this.getAttribute("data-bs-slide-to");
1014
- return n ? (t.to(n), void t._maybeEnableCycle()) : ae.getDataAttribute(this, "slide") === "next" ? (t.next(), void t._maybeEnableCycle()) : (t.prev(), void t._maybeEnableCycle());
1015
- }), l.on(window, Bs, () => {
1016
- const i = f.find('[data-bs-ride="carousel"]');
1017
- for (const e of i) Te.getOrCreateInstance(e);
1018
- }), K(Te);
1019
- const nt = ".bs.collapse", Ys = `show${nt}`, Gs = `shown${nt}`, Js = `hide${nt}`, Zs = `hidden${nt}`, eo = `click${nt}.data-api`, Zt = "show", Ve = "collapse", _t = "collapsing", to = `:scope .${Ve} .${Ve}`, ei = '[data-bs-toggle="collapse"]', io = { parent: null, toggle: !0 }, no = { parent: "(null|element)", toggle: "boolean" };
1020
- class Ce extends J {
1021
- constructor(e, t) {
1022
- super(e, t), this._isTransitioning = !1, this._triggerArray = [];
1023
- const n = f.find(ei);
1024
- for (const s of n) {
1025
- const o = f.getSelectorFromElement(s), r = f.find(o).filter((a) => a === this._element);
1026
- o !== null && r.length && this._triggerArray.push(s);
1027
- }
1028
- this._initializeChildren(), this._config.parent || this._addAriaAndCollapsedClass(this._triggerArray, this._isShown()), this._config.toggle && this.toggle();
1029
- }
1030
- static get Default() {
1031
- return io;
1032
- }
1033
- static get DefaultType() {
1034
- return no;
1035
- }
1036
- static get NAME() {
1037
- return "collapse";
1038
- }
1039
- toggle() {
1040
- this._isShown() ? this.hide() : this.show();
1041
- }
1042
- show() {
1043
- if (this._isTransitioning || this._isShown()) return;
1044
- let e = [];
1045
- if (this._config.parent && (e = this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((s) => s !== this._element).map((s) => Ce.getOrCreateInstance(s, { toggle: !1 }))), e.length && e[0]._isTransitioning || l.trigger(this._element, Ys).defaultPrevented) return;
1046
- for (const s of e) s.hide();
1047
- const t = this._getDimension();
1048
- this._element.classList.remove(Ve), this._element.classList.add(_t), this._element.style[t] = 0, this._addAriaAndCollapsedClass(this._triggerArray, !0), this._isTransitioning = !0;
1049
- const n = `scroll${t[0].toUpperCase() + t.slice(1)}`;
1050
- this._queueCallback(() => {
1051
- this._isTransitioning = !1, this._element.classList.remove(_t), this._element.classList.add(Ve, Zt), this._element.style[t] = "", l.trigger(this._element, Gs);
1052
- }, this._element, !0), this._element.style[t] = `${this._element[n]}px`;
1053
- }
1054
- hide() {
1055
- if (this._isTransitioning || !this._isShown() || l.trigger(this._element, Js).defaultPrevented) return;
1056
- const e = this._getDimension();
1057
- this._element.style[e] = `${this._element.getBoundingClientRect()[e]}px`, et(this._element), this._element.classList.add(_t), this._element.classList.remove(Ve, Zt);
1058
- for (const t of this._triggerArray) {
1059
- const n = f.getElementFromSelector(t);
1060
- n && !this._isShown(n) && this._addAriaAndCollapsedClass([t], !1);
1061
- }
1062
- this._isTransitioning = !0, this._element.style[e] = "", this._queueCallback(() => {
1063
- this._isTransitioning = !1, this._element.classList.remove(_t), this._element.classList.add(Ve), l.trigger(this._element, Zs);
1064
- }, this._element, !0);
1065
- }
1066
- _isShown(e = this._element) {
1067
- return e.classList.contains(Zt);
1068
- }
1069
- _configAfterMerge(e) {
1070
- return e.toggle = !!e.toggle, e.parent = pe(e.parent), e;
1071
- }
1072
- _getDimension() {
1073
- return this._element.classList.contains("collapse-horizontal") ? "width" : "height";
1074
- }
1075
- _initializeChildren() {
1076
- if (!this._config.parent) return;
1077
- const e = this._getFirstLevelChildren(ei);
1078
- for (const t of e) {
1079
- const n = f.getElementFromSelector(t);
1080
- n && this._addAriaAndCollapsedClass([t], this._isShown(n));
1081
- }
1082
- }
1083
- _getFirstLevelChildren(e) {
1084
- const t = f.find(to, this._config.parent);
1085
- return f.find(e, this._config.parent).filter((n) => !t.includes(n));
1086
- }
1087
- _addAriaAndCollapsedClass(e, t) {
1088
- if (e.length) for (const n of e) n.classList.toggle("collapsed", !t), n.setAttribute("aria-expanded", t);
1089
- }
1090
- static jQueryInterface(e) {
1091
- const t = {};
1092
- return typeof e == "string" && /show|hide/.test(e) && (t.toggle = !1), this.each(function() {
1093
- const n = Ce.getOrCreateInstance(this, t);
1094
- if (typeof e == "string") {
1095
- if (n[e] === void 0) throw new TypeError(`No method named "${e}"`);
1096
- n[e]();
1097
- }
1098
- });
1099
- }
1100
- }
1101
- l.on(document, eo, ei, function(i) {
1102
- (i.target.tagName === "A" || i.delegateTarget && i.delegateTarget.tagName === "A") && i.preventDefault();
1103
- for (const e of f.getMultipleElementsFromSelector(this)) Ce.getOrCreateInstance(e, { toggle: !1 }).toggle();
1104
- }), K(Ce);
1105
- const mn = "dropdown", Oe = ".bs.dropdown", ti = ".data-api", so = "ArrowUp", gn = "ArrowDown", oo = `hide${Oe}`, ro = `hidden${Oe}`, ao = `show${Oe}`, lo = `shown${Oe}`, _n = `click${Oe}${ti}`, bn = `keydown${Oe}${ti}`, co = `keyup${Oe}${ti}`, Ue = "show", xe = '[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)', uo = `${xe}.${Ue}`, bt = ".dropdown-menu", ho = U() ? "top-end" : "top-start", fo = U() ? "top-start" : "top-end", po = U() ? "bottom-end" : "bottom-start", mo = U() ? "bottom-start" : "bottom-end", go = U() ? "left-start" : "right-start", _o = U() ? "right-start" : "left-start", bo = { autoClose: !0, boundary: "clippingParents", display: "dynamic", offset: [0, 2], popperConfig: null, reference: "toggle" }, vo = { autoClose: "(boolean|string)", boundary: "(string|element)", display: "string", offset: "(array|string|function)", popperConfig: "(null|object|function)", reference: "(string|element|object)" };
1106
- class W extends J {
1107
- constructor(e, t) {
1108
- super(e, t), this._popper = null, this._parent = this._element.parentNode, this._menu = f.next(this._element, bt)[0] || f.prev(this._element, bt)[0] || f.findOne(bt, this._parent), this._inNavbar = this._detectNavbar();
1109
- }
1110
- static get Default() {
1111
- return bo;
1112
- }
1113
- static get DefaultType() {
1114
- return vo;
1115
- }
1116
- static get NAME() {
1117
- return mn;
1118
- }
1119
- toggle() {
1120
- return this._isShown() ? this.hide() : this.show();
1121
- }
1122
- show() {
1123
- if (me(this._element) || this._isShown()) return;
1124
- const e = { relatedTarget: this._element };
1125
- if (!l.trigger(this._element, ao, e).defaultPrevented) {
1126
- if (this._createPopper(), "ontouchstart" in document.documentElement && !this._parent.closest(".navbar-nav")) for (const t of [].concat(...document.body.children)) l.on(t, "mouseover", dt);
1127
- this._element.focus(), this._element.setAttribute("aria-expanded", !0), this._menu.classList.add(Ue), this._element.classList.add(Ue), l.trigger(this._element, lo, e);
1128
- }
1129
- }
1130
- hide() {
1131
- if (me(this._element) || !this._isShown()) return;
1132
- const e = { relatedTarget: this._element };
1133
- this._completeHide(e);
1134
- }
1135
- dispose() {
1136
- this._popper && this._popper.destroy(), super.dispose();
1137
- }
1138
- update() {
1139
- this._inNavbar = this._detectNavbar(), this._popper && this._popper.update();
1140
- }
1141
- _completeHide(e) {
1142
- if (!l.trigger(this._element, oo, e).defaultPrevented) {
1143
- if ("ontouchstart" in document.documentElement) for (const t of [].concat(...document.body.children)) l.off(t, "mouseover", dt);
1144
- this._popper && this._popper.destroy(), this._menu.classList.remove(Ue), this._element.classList.remove(Ue), this._element.setAttribute("aria-expanded", "false"), ae.removeDataAttribute(this._menu, "popper"), l.trigger(this._element, ro, e), this._element.focus();
1145
- }
1146
- }
1147
- _getConfig(e) {
1148
- if (typeof (e = super._getConfig(e)).reference == "object" && !re(e.reference) && typeof e.reference.getBoundingClientRect != "function") throw new TypeError(`${mn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);
1149
- return e;
1150
- }
1151
- _createPopper() {
1152
- if (Ki === void 0) throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");
1153
- let e = this._element;
1154
- this._config.reference === "parent" ? e = this._parent : re(this._config.reference) ? e = pe(this._config.reference) : typeof this._config.reference == "object" && (e = this._config.reference);
1155
- const t = this._getPopperConfig();
1156
- this._popper = Wt(e, this._menu, t);
1157
- }
1158
- _isShown() {
1159
- return this._menu.classList.contains(Ue);
1160
- }
1161
- _getPlacement() {
1162
- const e = this._parent;
1163
- if (e.classList.contains("dropend")) return go;
1164
- if (e.classList.contains("dropstart")) return _o;
1165
- if (e.classList.contains("dropup-center")) return "top";
1166
- if (e.classList.contains("dropdown-center")) return "bottom";
1167
- const t = getComputedStyle(this._menu).getPropertyValue("--bs-position").trim() === "end";
1168
- return e.classList.contains("dropup") ? t ? fo : ho : t ? mo : po;
1169
- }
1170
- _detectNavbar() {
1171
- return this._element.closest(".navbar") !== null;
1172
- }
1173
- _getOffset() {
1174
- const { offset: e } = this._config;
1175
- return typeof e == "string" ? e.split(",").map((t) => Number.parseInt(t, 10)) : typeof e == "function" ? (t) => e(t, this._element) : e;
1176
- }
1177
- _getPopperConfig() {
1178
- const e = { placement: this._getPlacement(), modifiers: [{ name: "preventOverflow", options: { boundary: this._config.boundary } }, { name: "offset", options: { offset: this._getOffset() } }] };
1179
- return (this._inNavbar || this._config.display === "static") && (ae.setDataAttribute(this._menu, "popper", "static"), e.modifiers = [{ name: "applyStyles", enabled: !1 }]), { ...e, ...F(this._config.popperConfig, [void 0, e]) };
1180
- }
1181
- _selectMenuItem({ key: e, target: t }) {
1182
- const n = f.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", this._menu).filter((s) => He(s));
1183
- n.length && Ut(n, t, e === gn, !n.includes(t)).focus();
1184
- }
1185
- static jQueryInterface(e) {
1186
- return this.each(function() {
1187
- const t = W.getOrCreateInstance(this, e);
1188
- if (typeof e == "string") {
1189
- if (t[e] === void 0) throw new TypeError(`No method named "${e}"`);
1190
- t[e]();
1191
- }
1192
- });
1193
- }
1194
- static clearMenus(e) {
1195
- if (e.button === 2 || e.type === "keyup" && e.key !== "Tab") return;
1196
- const t = f.find(uo);
1197
- for (const n of t) {
1198
- const s = W.getInstance(n);
1199
- if (!s || s._config.autoClose === !1) continue;
1200
- const o = e.composedPath(), r = o.includes(s._menu);
1201
- if (o.includes(s._element) || s._config.autoClose === "inside" && !r || s._config.autoClose === "outside" && r || s._menu.contains(e.target) && (e.type === "keyup" && e.key === "Tab" || /input|select|option|textarea|form/i.test(e.target.tagName))) continue;
1202
- const a = { relatedTarget: s._element };
1203
- e.type === "click" && (a.clickEvent = e), s._completeHide(a);
1204
- }
1205
- }
1206
- static dataApiKeydownHandler(e) {
1207
- const t = /input|textarea/i.test(e.target.tagName), n = e.key === "Escape", s = [so, gn].includes(e.key);
1208
- if (!s && !n || t && !n) return;
1209
- e.preventDefault();
1210
- const o = this.matches(xe) ? this : f.prev(this, xe)[0] || f.next(this, xe)[0] || f.findOne(xe, e.delegateTarget.parentNode), r = W.getOrCreateInstance(o);
1211
- if (s) return e.stopPropagation(), r.show(), void r._selectMenuItem(e);
1212
- r._isShown() && (e.stopPropagation(), r.hide(), o.focus());
1213
- }
1214
- }
1215
- l.on(document, bn, xe, W.dataApiKeydownHandler), l.on(document, bn, bt, W.dataApiKeydownHandler), l.on(document, _n, W.clearMenus), l.on(document, co, W.clearMenus), l.on(document, _n, xe, function(i) {
1216
- i.preventDefault(), W.getOrCreateInstance(this).toggle();
1217
- }), K(W);
1218
- const vn = "backdrop", yn = "show", wn = `mousedown.bs.${vn}`, yo = { className: "modal-backdrop", clickCallback: null, isAnimated: !1, isVisible: !0, rootElement: "body" }, wo = { className: "string", clickCallback: "(function|null)", isAnimated: "boolean", isVisible: "boolean", rootElement: "(element|string)" };
1219
- class An extends tt {
1220
- constructor(e) {
1221
- super(), this._config = this._getConfig(e), this._isAppended = !1, this._element = null;
1222
- }
1223
- static get Default() {
1224
- return yo;
1225
- }
1226
- static get DefaultType() {
1227
- return wo;
1228
- }
1229
- static get NAME() {
1230
- return vn;
1231
- }
1232
- show(e) {
1233
- if (!this._config.isVisible) return void F(e);
1234
- this._append();
1235
- const t = this._getElement();
1236
- this._config.isAnimated && et(t), t.classList.add(yn), this._emulateAnimation(() => {
1237
- F(e);
1238
- });
1239
- }
1240
- hide(e) {
1241
- this._config.isVisible ? (this._getElement().classList.remove(yn), this._emulateAnimation(() => {
1242
- this.dispose(), F(e);
1243
- })) : F(e);
1244
- }
1245
- dispose() {
1246
- this._isAppended && (l.off(this._element, wn), this._element.remove(), this._isAppended = !1);
1247
- }
1248
- _getElement() {
1249
- if (!this._element) {
1250
- const e = document.createElement("div");
1251
- e.className = this._config.className, this._config.isAnimated && e.classList.add("fade"), this._element = e;
1252
- }
1253
- return this._element;
1254
- }
1255
- _configAfterMerge(e) {
1256
- return e.rootElement = pe(e.rootElement), e;
1257
- }
1258
- _append() {
1259
- if (this._isAppended) return;
1260
- const e = this._getElement();
1261
- this._config.rootElement.append(e), l.on(e, wn, () => {
1262
- F(this._config.clickCallback);
1263
- }), this._isAppended = !0;
1264
- }
1265
- _emulateAnimation(e) {
1266
- Ji(e, this._getElement(), this._config.isAnimated);
1267
- }
1268
- }
1269
- const vt = ".bs.focustrap", Ao = `focusin${vt}`, Eo = `keydown.tab${vt}`, En = "backward", To = { autofocus: !0, trapElement: null }, Co = { autofocus: "boolean", trapElement: "element" };
1270
- class Tn extends tt {
1271
- constructor(e) {
1272
- super(), this._config = this._getConfig(e), this._isActive = !1, this._lastTabNavDirection = null;
1273
- }
1274
- static get Default() {
1275
- return To;
1276
- }
1277
- static get DefaultType() {
1278
- return Co;
1279
- }
1280
- static get NAME() {
1281
- return "focustrap";
1282
- }
1283
- activate() {
1284
- this._isActive || (this._config.autofocus && this._config.trapElement.focus(), l.off(document, vt), l.on(document, Ao, (e) => this._handleFocusin(e)), l.on(document, Eo, (e) => this._handleKeydown(e)), this._isActive = !0);
1285
- }
1286
- deactivate() {
1287
- this._isActive && (this._isActive = !1, l.off(document, vt));
1288
- }
1289
- _handleFocusin(e) {
1290
- const { trapElement: t } = this._config;
1291
- if (e.target === document || e.target === t || t.contains(e.target)) return;
1292
- const n = f.focusableChildren(t);
1293
- n.length === 0 ? t.focus() : this._lastTabNavDirection === En ? n[n.length - 1].focus() : n[0].focus();
1294
- }
1295
- _handleKeydown(e) {
1296
- e.key === "Tab" && (this._lastTabNavDirection = e.shiftKey ? En : "forward");
1297
- }
1298
- }
1299
- const Cn = ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", On = ".sticky-top", yt = "padding-right", xn = "margin-right";
1300
- class ii {
1301
- constructor() {
1302
- this._element = document.body;
1303
- }
1304
- getWidth() {
1305
- const e = document.documentElement.clientWidth;
1306
- return Math.abs(window.innerWidth - e);
1307
- }
1308
- hide() {
1309
- const e = this.getWidth();
1310
- this._disableOverFlow(), this._setElementAttributes(this._element, yt, (t) => t + e), this._setElementAttributes(Cn, yt, (t) => t + e), this._setElementAttributes(On, xn, (t) => t - e);
1311
- }
1312
- reset() {
1313
- this._resetElementAttributes(this._element, "overflow"), this._resetElementAttributes(this._element, yt), this._resetElementAttributes(Cn, yt), this._resetElementAttributes(On, xn);
1314
- }
1315
- isOverflowing() {
1316
- return this.getWidth() > 0;
1317
- }
1318
- _disableOverFlow() {
1319
- this._saveInitialAttribute(this._element, "overflow"), this._element.style.overflow = "hidden";
1320
- }
1321
- _setElementAttributes(e, t, n) {
1322
- const s = this.getWidth();
1323
- this._applyManipulationCallback(e, (o) => {
1324
- if (o !== this._element && window.innerWidth > o.clientWidth + s) return;
1325
- this._saveInitialAttribute(o, t);
1326
- const r = window.getComputedStyle(o).getPropertyValue(t);
1327
- o.style.setProperty(t, `${n(Number.parseFloat(r))}px`);
1328
- });
1329
- }
1330
- _saveInitialAttribute(e, t) {
1331
- const n = e.style.getPropertyValue(t);
1332
- n && ae.setDataAttribute(e, t, n);
1333
- }
1334
- _resetElementAttributes(e, t) {
1335
- this._applyManipulationCallback(e, (n) => {
1336
- const s = ae.getDataAttribute(n, t);
1337
- s !== null ? (ae.removeDataAttribute(n, t), n.style.setProperty(t, s)) : n.style.removeProperty(t);
1338
- });
1339
- }
1340
- _applyManipulationCallback(e, t) {
1341
- if (re(e)) t(e);
1342
- else for (const n of f.find(e, this._element)) t(n);
1343
- }
1344
- }
1345
- const Q = ".bs.modal", Oo = `hide${Q}`, xo = `hidePrevented${Q}`, kn = `hidden${Q}`, Sn = `show${Q}`, ko = `shown${Q}`, So = `resize${Q}`, Lo = `click.dismiss${Q}`, $o = `mousedown.dismiss${Q}`, Do = `keydown.dismiss${Q}`, Io = `click${Q}.data-api`, Ln = "modal-open", $n = "show", ni = "modal-static", Po = { backdrop: !0, focus: !0, keyboard: !0 }, No = { backdrop: "(boolean|string)", focus: "boolean", keyboard: "boolean" };
1346
- class _e extends J {
1347
- constructor(e, t) {
1348
- super(e, t), this._dialog = f.findOne(".modal-dialog", this._element), this._backdrop = this._initializeBackDrop(), this._focustrap = this._initializeFocusTrap(), this._isShown = !1, this._isTransitioning = !1, this._scrollBar = new ii(), this._addEventListeners();
1349
- }
1350
- static get Default() {
1351
- return Po;
1352
- }
1353
- static get DefaultType() {
1354
- return No;
1355
- }
1356
- static get NAME() {
1357
- return "modal";
1358
- }
1359
- toggle(e) {
1360
- return this._isShown ? this.hide() : this.show(e);
1361
- }
1362
- show(e) {
1363
- this._isShown || this._isTransitioning || l.trigger(this._element, Sn, { relatedTarget: e }).defaultPrevented || (this._isShown = !0, this._isTransitioning = !0, this._scrollBar.hide(), document.body.classList.add(Ln), this._adjustDialog(), this._backdrop.show(() => this._showElement(e)));
1364
- }
1365
- hide() {
1366
- this._isShown && !this._isTransitioning && (l.trigger(this._element, Oo).defaultPrevented || (this._isShown = !1, this._isTransitioning = !0, this._focustrap.deactivate(), this._element.classList.remove($n), this._queueCallback(() => this._hideModal(), this._element, this._isAnimated())));
1367
- }
1368
- dispose() {
1369
- l.off(window, Q), l.off(this._dialog, Q), this._backdrop.dispose(), this._focustrap.deactivate(), super.dispose();
1370
- }
1371
- handleUpdate() {
1372
- this._adjustDialog();
1373
- }
1374
- _initializeBackDrop() {
1375
- return new An({ isVisible: !!this._config.backdrop, isAnimated: this._isAnimated() });
1376
- }
1377
- _initializeFocusTrap() {
1378
- return new Tn({ trapElement: this._element });
1379
- }
1380
- _showElement(e) {
1381
- document.body.contains(this._element) || document.body.append(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0;
1382
- const t = f.findOne(".modal-body", this._dialog);
1383
- t && (t.scrollTop = 0), et(this._element), this._element.classList.add($n), this._queueCallback(() => {
1384
- this._config.focus && this._focustrap.activate(), this._isTransitioning = !1, l.trigger(this._element, ko, { relatedTarget: e });
1385
- }, this._dialog, this._isAnimated());
1386
- }
1387
- _addEventListeners() {
1388
- l.on(this._element, Do, (e) => {
1389
- e.key === "Escape" && (this._config.keyboard ? this.hide() : this._triggerBackdropTransition());
1390
- }), l.on(window, So, () => {
1391
- this._isShown && !this._isTransitioning && this._adjustDialog();
1392
- }), l.on(this._element, $o, (e) => {
1393
- l.one(this._element, Lo, (t) => {
1394
- this._element === e.target && this._element === t.target && (this._config.backdrop !== "static" ? this._config.backdrop && this.hide() : this._triggerBackdropTransition());
1395
- });
1396
- });
1397
- }
1398
- _hideModal() {
1399
- this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._isTransitioning = !1, this._backdrop.hide(() => {
1400
- document.body.classList.remove(Ln), this._resetAdjustments(), this._scrollBar.reset(), l.trigger(this._element, kn);
1401
- });
1402
- }
1403
- _isAnimated() {
1404
- return this._element.classList.contains("fade");
1405
- }
1406
- _triggerBackdropTransition() {
1407
- if (l.trigger(this._element, xo).defaultPrevented) return;
1408
- const e = this._element.scrollHeight > document.documentElement.clientHeight, t = this._element.style.overflowY;
1409
- t === "hidden" || this._element.classList.contains(ni) || (e || (this._element.style.overflowY = "hidden"), this._element.classList.add(ni), this._queueCallback(() => {
1410
- this._element.classList.remove(ni), this._queueCallback(() => {
1411
- this._element.style.overflowY = t;
1412
- }, this._dialog);
1413
- }, this._dialog), this._element.focus());
1414
- }
1415
- _adjustDialog() {
1416
- const e = this._element.scrollHeight > document.documentElement.clientHeight, t = this._scrollBar.getWidth(), n = t > 0;
1417
- if (n && !e) {
1418
- const s = U() ? "paddingLeft" : "paddingRight";
1419
- this._element.style[s] = `${t}px`;
1420
- }
1421
- if (!n && e) {
1422
- const s = U() ? "paddingRight" : "paddingLeft";
1423
- this._element.style[s] = `${t}px`;
1424
- }
1425
- }
1426
- _resetAdjustments() {
1427
- this._element.style.paddingLeft = "", this._element.style.paddingRight = "";
1428
- }
1429
- static jQueryInterface(e, t) {
1430
- return this.each(function() {
1431
- const n = _e.getOrCreateInstance(this, e);
1432
- if (typeof e == "string") {
1433
- if (n[e] === void 0) throw new TypeError(`No method named "${e}"`);
1434
- n[e](t);
1435
- }
1436
- });
1437
- }
1438
- }
1439
- l.on(document, Io, '[data-bs-toggle="modal"]', function(i) {
1440
- const e = f.getElementFromSelector(this);
1441
- ["A", "AREA"].includes(this.tagName) && i.preventDefault(), l.one(e, Sn, (n) => {
1442
- n.defaultPrevented || l.one(e, kn, () => {
1443
- He(this) && this.focus();
1444
- });
1445
- });
1446
- const t = f.findOne(".modal.show");
1447
- t && _e.getInstance(t).hide(), _e.getOrCreateInstance(e).toggle(this);
1448
- }), ft(_e), K(_e);
1449
- const le = ".bs.offcanvas", Dn = ".data-api", jo = `load${le}${Dn}`, In = "show", Pn = "showing", Nn = "hiding", jn = ".offcanvas.show", Mo = `show${le}`, Fo = `shown${le}`, Ho = `hide${le}`, Mn = `hidePrevented${le}`, Fn = `hidden${le}`, qo = `resize${le}`, zo = `click${le}${Dn}`, Wo = `keydown.dismiss${le}`, Ro = { backdrop: !0, keyboard: !0, scroll: !1 }, Bo = { backdrop: "(boolean|string)", keyboard: "boolean", scroll: "boolean" };
1450
- class ie extends J {
1451
- constructor(e, t) {
1452
- super(e, t), this._isShown = !1, this._backdrop = this._initializeBackDrop(), this._focustrap = this._initializeFocusTrap(), this._addEventListeners();
1453
- }
1454
- static get Default() {
1455
- return Ro;
1456
- }
1457
- static get DefaultType() {
1458
- return Bo;
1459
- }
1460
- static get NAME() {
1461
- return "offcanvas";
1462
- }
1463
- toggle(e) {
1464
- return this._isShown ? this.hide() : this.show(e);
1465
- }
1466
- show(e) {
1467
- this._isShown || l.trigger(this._element, Mo, { relatedTarget: e }).defaultPrevented || (this._isShown = !0, this._backdrop.show(), this._config.scroll || new ii().hide(), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.classList.add(Pn), this._queueCallback(() => {
1468
- this._config.scroll && !this._config.backdrop || this._focustrap.activate(), this._element.classList.add(In), this._element.classList.remove(Pn), l.trigger(this._element, Fo, { relatedTarget: e });
1469
- }, this._element, !0));
1470
- }
1471
- hide() {
1472
- this._isShown && (l.trigger(this._element, Ho).defaultPrevented || (this._focustrap.deactivate(), this._element.blur(), this._isShown = !1, this._element.classList.add(Nn), this._backdrop.hide(), this._queueCallback(() => {
1473
- this._element.classList.remove(In, Nn), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._config.scroll || new ii().reset(), l.trigger(this._element, Fn);
1474
- }, this._element, !0)));
1475
- }
1476
- dispose() {
1477
- this._backdrop.dispose(), this._focustrap.deactivate(), super.dispose();
1478
- }
1479
- _initializeBackDrop() {
1480
- const e = !!this._config.backdrop;
1481
- return new An({ className: "offcanvas-backdrop", isVisible: e, isAnimated: !0, rootElement: this._element.parentNode, clickCallback: e ? () => {
1482
- this._config.backdrop !== "static" ? this.hide() : l.trigger(this._element, Mn);
1483
- } : null });
1484
- }
1485
- _initializeFocusTrap() {
1486
- return new Tn({ trapElement: this._element });
1487
- }
1488
- _addEventListeners() {
1489
- l.on(this._element, Wo, (e) => {
1490
- e.key === "Escape" && (this._config.keyboard ? this.hide() : l.trigger(this._element, Mn));
1491
- });
1492
- }
1493
- static jQueryInterface(e) {
1494
- return this.each(function() {
1495
- const t = ie.getOrCreateInstance(this, e);
1496
- if (typeof e == "string") {
1497
- if (t[e] === void 0 || e.startsWith("_") || e === "constructor") throw new TypeError(`No method named "${e}"`);
1498
- t[e](this);
1499
- }
1500
- });
1501
- }
1502
- }
1503
- l.on(document, zo, '[data-bs-toggle="offcanvas"]', function(i) {
1504
- const e = f.getElementFromSelector(this);
1505
- if (["A", "AREA"].includes(this.tagName) && i.preventDefault(), me(this)) return;
1506
- l.one(e, Fn, () => {
1507
- He(this) && this.focus();
1508
- });
1509
- const t = f.findOne(jn);
1510
- t && t !== e && ie.getInstance(t).hide(), ie.getOrCreateInstance(e).toggle(this);
1511
- }), l.on(window, jo, () => {
1512
- for (const i of f.find(jn)) ie.getOrCreateInstance(i).show();
1513
- }), l.on(window, qo, () => {
1514
- for (const i of f.find("[aria-modal][class*=show][class*=offcanvas-]")) getComputedStyle(i).position !== "fixed" && ie.getOrCreateInstance(i).hide();
1515
- }), ft(ie), K(ie);
1516
- const Hn = { "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i], a: ["target", "href", "title", "rel"], area: [], b: [], br: [], col: [], code: [], dd: [], div: [], dl: [], dt: [], em: [], hr: [], h1: [], h2: [], h3: [], h4: [], h5: [], h6: [], i: [], img: ["src", "srcset", "alt", "title", "width", "height"], li: [], ol: [], p: [], pre: [], s: [], small: [], span: [], sub: [], sup: [], strong: [], u: [], ul: [] }, Vo = /* @__PURE__ */ new Set(["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"]), Uo = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i, Ko = (i, e) => {
1517
- const t = i.nodeName.toLowerCase();
1518
- return e.includes(t) ? !Vo.has(t) || !!Uo.test(i.nodeValue) : e.filter((n) => n instanceof RegExp).some((n) => n.test(t));
1519
- }, Qo = { allowList: Hn, content: {}, extraClass: "", html: !1, sanitize: !0, sanitizeFn: null, template: "<div></div>" }, Xo = { allowList: "object", content: "object", extraClass: "(string|function)", html: "boolean", sanitize: "boolean", sanitizeFn: "(null|function)", template: "string" }, Yo = { entry: "(string|element|function|null)", selector: "(string|element)" };
1520
- class Go extends tt {
1521
- constructor(e) {
1522
- super(), this._config = this._getConfig(e);
1523
- }
1524
- static get Default() {
1525
- return Qo;
1526
- }
1527
- static get DefaultType() {
1528
- return Xo;
1529
- }
1530
- static get NAME() {
1531
- return "TemplateFactory";
1532
- }
1533
- getContent() {
1534
- return Object.values(this._config.content).map((e) => this._resolvePossibleFunction(e)).filter(Boolean);
1535
- }
1536
- hasContent() {
1537
- return this.getContent().length > 0;
1538
- }
1539
- changeContent(e) {
1540
- return this._checkContent(e), this._config.content = { ...this._config.content, ...e }, this;
1541
- }
1542
- toHtml() {
1543
- const e = document.createElement("div");
1544
- e.innerHTML = this._maybeSanitize(this._config.template);
1545
- for (const [s, o] of Object.entries(this._config.content)) this._setContent(e, o, s);
1546
- const t = e.children[0], n = this._resolvePossibleFunction(this._config.extraClass);
1547
- return n && t.classList.add(...n.split(" ")), t;
1548
- }
1549
- _typeCheckConfig(e) {
1550
- super._typeCheckConfig(e), this._checkContent(e.content);
1551
- }
1552
- _checkContent(e) {
1553
- for (const [t, n] of Object.entries(e)) super._typeCheckConfig({ selector: t, entry: n }, Yo);
1554
- }
1555
- _setContent(e, t, n) {
1556
- const s = f.findOne(n, e);
1557
- s && ((t = this._resolvePossibleFunction(t)) ? re(t) ? this._putElementInTemplate(pe(t), s) : this._config.html ? s.innerHTML = this._maybeSanitize(t) : s.textContent = t : s.remove());
1558
- }
1559
- _maybeSanitize(e) {
1560
- return this._config.sanitize ? (function(t, n, s) {
1561
- if (!t.length) return t;
1562
- if (s && typeof s == "function") return s(t);
1563
- const o = new window.DOMParser().parseFromString(t, "text/html"), r = [].concat(...o.body.querySelectorAll("*"));
1564
- for (const a of r) {
1565
- const c = a.nodeName.toLowerCase();
1566
- if (!Object.keys(n).includes(c)) {
1567
- a.remove();
1568
- continue;
1569
- }
1570
- const h = [].concat(...a.attributes), d = [].concat(n["*"] || [], n[c] || []);
1571
- for (const u of h) Ko(u, d) || a.removeAttribute(u.nodeName);
1572
- }
1573
- return o.body.innerHTML;
1574
- })(e, this._config.allowList, this._config.sanitizeFn) : e;
1575
- }
1576
- _resolvePossibleFunction(e) {
1577
- return F(e, [void 0, this]);
1578
- }
1579
- _putElementInTemplate(e, t) {
1580
- if (this._config.html) return t.innerHTML = "", void t.append(e);
1581
- t.textContent = e.textContent;
1582
- }
1583
- }
1584
- const Jo = /* @__PURE__ */ new Set(["sanitize", "allowList", "sanitizeFn"]), si = "fade", wt = "show", Zo = ".tooltip-inner", qn = ".modal", zn = "hide.bs.modal", st = "hover", oi = "focus", ri = "click", er = { AUTO: "auto", TOP: "top", RIGHT: U() ? "left" : "right", BOTTOM: "bottom", LEFT: U() ? "right" : "left" }, tr = { allowList: Hn, animation: !0, boundary: "clippingParents", container: !1, customClass: "", delay: 0, fallbackPlacements: ["top", "right", "bottom", "left"], html: !1, offset: [0, 6], placement: "top", popperConfig: null, sanitize: !0, sanitizeFn: null, selector: !1, template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', title: "", trigger: "hover focus" }, ir = { allowList: "object", animation: "boolean", boundary: "(string|element)", container: "(string|element|boolean)", customClass: "(string|function)", delay: "(number|object)", fallbackPlacements: "array", html: "boolean", offset: "(array|string|function)", placement: "(string|function)", popperConfig: "(null|object|function)", sanitize: "boolean", sanitizeFn: "(null|function)", selector: "(string|boolean)", template: "string", title: "(string|element|function)", trigger: "string" };
1585
- class ce extends J {
1586
- constructor(e, t) {
1587
- if (Ki === void 0) throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");
1588
- super(e, t), this._isEnabled = !0, this._timeout = 0, this._isHovered = null, this._activeTrigger = {}, this._popper = null, this._templateFactory = null, this._newContent = null, this.tip = null, this._setListeners(), this._config.selector || this._fixTitle();
1589
- }
1590
- static get Default() {
1591
- return tr;
1592
- }
1593
- static get DefaultType() {
1594
- return ir;
1595
- }
1596
- static get NAME() {
1597
- return "tooltip";
1598
- }
1599
- enable() {
1600
- this._isEnabled = !0;
1601
- }
1602
- disable() {
1603
- this._isEnabled = !1;
1604
- }
1605
- toggleEnabled() {
1606
- this._isEnabled = !this._isEnabled;
1607
- }
1608
- toggle() {
1609
- this._isEnabled && (this._isShown() ? this._leave() : this._enter());
1610
- }
1611
- dispose() {
1612
- clearTimeout(this._timeout), l.off(this._element.closest(qn), zn, this._hideModalHandler), this._element.getAttribute("data-bs-original-title") && this._element.setAttribute("title", this._element.getAttribute("data-bs-original-title")), this._disposePopper(), super.dispose();
1613
- }
1614
- show() {
1615
- if (this._element.style.display === "none") throw new Error("Please use show on visible elements");
1616
- if (!this._isWithContent() || !this._isEnabled) return;
1617
- const e = l.trigger(this._element, this.constructor.eventName("show")), t = (Yi(this._element) || this._element.ownerDocument.documentElement).contains(this._element);
1618
- if (e.defaultPrevented || !t) return;
1619
- this._disposePopper();
1620
- const n = this._getTipElement();
1621
- this._element.setAttribute("aria-describedby", n.getAttribute("id"));
1622
- const { container: s } = this._config;
1623
- if (this._element.ownerDocument.documentElement.contains(this.tip) || (s.append(n), l.trigger(this._element, this.constructor.eventName("inserted"))), this._popper = this._createPopper(n), n.classList.add(wt), "ontouchstart" in document.documentElement) for (const o of [].concat(...document.body.children)) l.on(o, "mouseover", dt);
1624
- this._queueCallback(() => {
1625
- l.trigger(this._element, this.constructor.eventName("shown")), this._isHovered === !1 && this._leave(), this._isHovered = !1;
1626
- }, this.tip, this._isAnimated());
1627
- }
1628
- hide() {
1629
- if (this._isShown() && !l.trigger(this._element, this.constructor.eventName("hide")).defaultPrevented) {
1630
- if (this._getTipElement().classList.remove(wt), "ontouchstart" in document.documentElement) for (const e of [].concat(...document.body.children)) l.off(e, "mouseover", dt);
1631
- this._activeTrigger[ri] = !1, this._activeTrigger[oi] = !1, this._activeTrigger[st] = !1, this._isHovered = null, this._queueCallback(() => {
1632
- this._isWithActiveTrigger() || (this._isHovered || this._disposePopper(), this._element.removeAttribute("aria-describedby"), l.trigger(this._element, this.constructor.eventName("hidden")));
1633
- }, this.tip, this._isAnimated());
1634
- }
1635
- }
1636
- update() {
1637
- this._popper && this._popper.update();
1638
- }
1639
- _isWithContent() {
1640
- return !!this._getTitle();
1641
- }
1642
- _getTipElement() {
1643
- return this.tip || (this.tip = this._createTipElement(this._newContent || this._getContentForTemplate())), this.tip;
1644
- }
1645
- _createTipElement(e) {
1646
- const t = this._getTemplateFactory(e).toHtml();
1647
- if (!t) return null;
1648
- t.classList.remove(si, wt), t.classList.add(`bs-${this.constructor.NAME}-auto`);
1649
- const n = ((s) => {
1650
- do
1651
- s += Math.floor(1e6 * Math.random());
1652
- while (document.getElementById(s));
1653
- return s;
1654
- })(this.constructor.NAME).toString();
1655
- return t.setAttribute("id", n), this._isAnimated() && t.classList.add(si), t;
1656
- }
1657
- setContent(e) {
1658
- this._newContent = e, this._isShown() && (this._disposePopper(), this.show());
1659
- }
1660
- _getTemplateFactory(e) {
1661
- return this._templateFactory ? this._templateFactory.changeContent(e) : this._templateFactory = new Go({ ...this._config, content: e, extraClass: this._resolvePossibleFunction(this._config.customClass) }), this._templateFactory;
1662
- }
1663
- _getContentForTemplate() {
1664
- return { [Zo]: this._getTitle() };
1665
- }
1666
- _getTitle() {
1667
- return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute("data-bs-original-title");
1668
- }
1669
- _initializeOnDelegatedTarget(e) {
1670
- return this.constructor.getOrCreateInstance(e.delegateTarget, this._getDelegateConfig());
1671
- }
1672
- _isAnimated() {
1673
- return this._config.animation || this.tip && this.tip.classList.contains(si);
1674
- }
1675
- _isShown() {
1676
- return this.tip && this.tip.classList.contains(wt);
1677
- }
1678
- _createPopper(e) {
1679
- const t = F(this._config.placement, [this, e, this._element]), n = er[t.toUpperCase()];
1680
- return Wt(this._element, e, this._getPopperConfig(n));
1681
- }
1682
- _getOffset() {
1683
- const { offset: e } = this._config;
1684
- return typeof e == "string" ? e.split(",").map((t) => Number.parseInt(t, 10)) : typeof e == "function" ? (t) => e(t, this._element) : e;
1685
- }
1686
- _resolvePossibleFunction(e) {
1687
- return F(e, [this._element, this._element]);
1688
- }
1689
- _getPopperConfig(e) {
1690
- const t = { placement: e, modifiers: [{ name: "flip", options: { fallbackPlacements: this._config.fallbackPlacements } }, { name: "offset", options: { offset: this._getOffset() } }, { name: "preventOverflow", options: { boundary: this._config.boundary } }, { name: "arrow", options: { element: `.${this.constructor.NAME}-arrow` } }, { name: "preSetPlacement", enabled: !0, phase: "beforeMain", fn: (n) => {
1691
- this._getTipElement().setAttribute("data-popper-placement", n.state.placement);
1692
- } }] };
1693
- return { ...t, ...F(this._config.popperConfig, [void 0, t]) };
1694
- }
1695
- _setListeners() {
1696
- const e = this._config.trigger.split(" ");
1697
- for (const t of e) if (t === "click") l.on(this._element, this.constructor.eventName("click"), this._config.selector, (n) => {
1698
- const s = this._initializeOnDelegatedTarget(n);
1699
- s._activeTrigger[ri] = !(s._isShown() && s._activeTrigger[ri]), s.toggle();
1700
- });
1701
- else if (t !== "manual") {
1702
- const n = t === st ? this.constructor.eventName("mouseenter") : this.constructor.eventName("focusin"), s = t === st ? this.constructor.eventName("mouseleave") : this.constructor.eventName("focusout");
1703
- l.on(this._element, n, this._config.selector, (o) => {
1704
- const r = this._initializeOnDelegatedTarget(o);
1705
- r._activeTrigger[o.type === "focusin" ? oi : st] = !0, r._enter();
1706
- }), l.on(this._element, s, this._config.selector, (o) => {
1707
- const r = this._initializeOnDelegatedTarget(o);
1708
- r._activeTrigger[o.type === "focusout" ? oi : st] = r._element.contains(o.relatedTarget), r._leave();
1709
- });
1710
- }
1711
- this._hideModalHandler = () => {
1712
- this._element && this.hide();
1713
- }, l.on(this._element.closest(qn), zn, this._hideModalHandler);
1714
- }
1715
- _fixTitle() {
1716
- const e = this._element.getAttribute("title");
1717
- e && (this._element.getAttribute("aria-label") || this._element.textContent.trim() || this._element.setAttribute("aria-label", e), this._element.setAttribute("data-bs-original-title", e), this._element.removeAttribute("title"));
1718
- }
1719
- _enter() {
1720
- this._isShown() || this._isHovered ? this._isHovered = !0 : (this._isHovered = !0, this._setTimeout(() => {
1721
- this._isHovered && this.show();
1722
- }, this._config.delay.show));
1723
- }
1724
- _leave() {
1725
- this._isWithActiveTrigger() || (this._isHovered = !1, this._setTimeout(() => {
1726
- this._isHovered || this.hide();
1727
- }, this._config.delay.hide));
1728
- }
1729
- _setTimeout(e, t) {
1730
- clearTimeout(this._timeout), this._timeout = setTimeout(e, t);
1731
- }
1732
- _isWithActiveTrigger() {
1733
- return Object.values(this._activeTrigger).includes(!0);
1734
- }
1735
- _getConfig(e) {
1736
- const t = ae.getDataAttributes(this._element);
1737
- for (const n of Object.keys(t)) Jo.has(n) && delete t[n];
1738
- return e = { ...t, ...typeof e == "object" && e ? e : {} }, e = this._mergeConfigObj(e), e = this._configAfterMerge(e), this._typeCheckConfig(e), e;
1739
- }
1740
- _configAfterMerge(e) {
1741
- return e.container = e.container === !1 ? document.body : pe(e.container), typeof e.delay == "number" && (e.delay = { show: e.delay, hide: e.delay }), typeof e.title == "number" && (e.title = e.title.toString()), typeof e.content == "number" && (e.content = e.content.toString()), e;
1742
- }
1743
- _getDelegateConfig() {
1744
- const e = {};
1745
- for (const [t, n] of Object.entries(this._config)) this.constructor.Default[t] !== n && (e[t] = n);
1746
- return e.selector = !1, e.trigger = "manual", e;
1747
- }
1748
- _disposePopper() {
1749
- this._popper && (this._popper.destroy(), this._popper = null), this.tip && (this.tip.remove(), this.tip = null);
1750
- }
1751
- static jQueryInterface(e) {
1752
- return this.each(function() {
1753
- const t = ce.getOrCreateInstance(this, e);
1754
- if (typeof e == "string") {
1755
- if (t[e] === void 0) throw new TypeError(`No method named "${e}"`);
1756
- t[e]();
1757
- }
1758
- });
1759
- }
1760
- }
1761
- K(ce);
1762
- const nr = ".popover-header", sr = ".popover-body", or = { ...ce.Default, content: "", offset: [0, 8], placement: "right", template: '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>', trigger: "click" }, rr = { ...ce.DefaultType, content: "(null|string|element|function)" };
1763
- class Ke extends ce {
1764
- static get Default() {
1765
- return or;
1766
- }
1767
- static get DefaultType() {
1768
- return rr;
1769
- }
1770
- static get NAME() {
1771
- return "popover";
1772
- }
1773
- _isWithContent() {
1774
- return this._getTitle() || this._getContent();
1775
- }
1776
- _getContentForTemplate() {
1777
- return { [nr]: this._getTitle(), [sr]: this._getContent() };
1778
- }
1779
- _getContent() {
1780
- return this._resolvePossibleFunction(this._config.content);
1781
- }
1782
- static jQueryInterface(e) {
1783
- return this.each(function() {
1784
- const t = Ke.getOrCreateInstance(this, e);
1785
- if (typeof e == "string") {
1786
- if (t[e] === void 0) throw new TypeError(`No method named "${e}"`);
1787
- t[e]();
1788
- }
1789
- });
1790
- }
1791
- }
1792
- K(Ke);
1793
- const ai = ".bs.scrollspy", ar = `activate${ai}`, Wn = `click${ai}`, lr = `load${ai}.data-api`, Qe = "active", li = "[href]", Rn = ".nav-link", cr = `${Rn}, .nav-item > ${Rn}, .list-group-item`, ur = { offset: null, rootMargin: "0px 0px -25%", smoothScroll: !1, target: null, threshold: [0.1, 0.5, 1] }, hr = { offset: "(number|null)", rootMargin: "string", smoothScroll: "boolean", target: "element", threshold: "array" };
1794
- class Xe extends J {
1795
- constructor(e, t) {
1796
- super(e, t), this._targetLinks = /* @__PURE__ */ new Map(), this._observableSections = /* @__PURE__ */ new Map(), this._rootElement = getComputedStyle(this._element).overflowY === "visible" ? null : this._element, this._activeTarget = null, this._observer = null, this._previousScrollData = { visibleEntryTop: 0, parentScrollTop: 0 }, this.refresh();
1797
- }
1798
- static get Default() {
1799
- return ur;
1800
- }
1801
- static get DefaultType() {
1802
- return hr;
1803
- }
1804
- static get NAME() {
1805
- return "scrollspy";
1806
- }
1807
- refresh() {
1808
- this._initializeTargetsAndObservables(), this._maybeEnableSmoothScroll(), this._observer ? this._observer.disconnect() : this._observer = this._getNewObserver();
1809
- for (const e of this._observableSections.values()) this._observer.observe(e);
1810
- }
1811
- dispose() {
1812
- this._observer.disconnect(), super.dispose();
1813
- }
1814
- _configAfterMerge(e) {
1815
- return e.target = pe(e.target) || document.body, e.rootMargin = e.offset ? `${e.offset}px 0px -30%` : e.rootMargin, typeof e.threshold == "string" && (e.threshold = e.threshold.split(",").map((t) => Number.parseFloat(t))), e;
1816
- }
1817
- _maybeEnableSmoothScroll() {
1818
- this._config.smoothScroll && (l.off(this._config.target, Wn), l.on(this._config.target, Wn, li, (e) => {
1819
- const t = this._observableSections.get(e.target.hash);
1820
- if (t) {
1821
- e.preventDefault();
1822
- const n = this._rootElement || window, s = t.offsetTop - this._element.offsetTop;
1823
- if (n.scrollTo) return void n.scrollTo({ top: s, behavior: "smooth" });
1824
- n.scrollTop = s;
1825
- }
1826
- }));
1827
- }
1828
- _getNewObserver() {
1829
- const e = { root: this._rootElement, threshold: this._config.threshold, rootMargin: this._config.rootMargin };
1830
- return new IntersectionObserver((t) => this._observerCallback(t), e);
1831
- }
1832
- _observerCallback(e) {
1833
- const t = (r) => this._targetLinks.get(`#${r.target.id}`), n = (r) => {
1834
- this._previousScrollData.visibleEntryTop = r.target.offsetTop, this._process(t(r));
1835
- }, s = (this._rootElement || document.documentElement).scrollTop, o = s >= this._previousScrollData.parentScrollTop;
1836
- this._previousScrollData.parentScrollTop = s;
1837
- for (const r of e) {
1838
- if (!r.isIntersecting) {
1839
- this._activeTarget = null, this._clearActiveClass(t(r));
1840
- continue;
1841
- }
1842
- const a = r.target.offsetTop >= this._previousScrollData.visibleEntryTop;
1843
- if (o && a) {
1844
- if (n(r), !s) return;
1845
- } else o || a || n(r);
1846
- }
1847
- }
1848
- _initializeTargetsAndObservables() {
1849
- this._targetLinks = /* @__PURE__ */ new Map(), this._observableSections = /* @__PURE__ */ new Map();
1850
- const e = f.find(li, this._config.target);
1851
- for (const t of e) {
1852
- if (!t.hash || me(t)) continue;
1853
- const n = f.findOne(decodeURI(t.hash), this._element);
1854
- He(n) && (this._targetLinks.set(decodeURI(t.hash), t), this._observableSections.set(t.hash, n));
1855
- }
1856
- }
1857
- _process(e) {
1858
- this._activeTarget !== e && (this._clearActiveClass(this._config.target), this._activeTarget = e, e.classList.add(Qe), this._activateParents(e), l.trigger(this._element, ar, { relatedTarget: e }));
1859
- }
1860
- _activateParents(e) {
1861
- if (e.classList.contains("dropdown-item")) f.findOne(".dropdown-toggle", e.closest(".dropdown")).classList.add(Qe);
1862
- else for (const t of f.parents(e, ".nav, .list-group")) for (const n of f.prev(t, cr)) n.classList.add(Qe);
1863
- }
1864
- _clearActiveClass(e) {
1865
- e.classList.remove(Qe);
1866
- const t = f.find(`${li}.${Qe}`, e);
1867
- for (const n of t) n.classList.remove(Qe);
1868
- }
1869
- static jQueryInterface(e) {
1870
- return this.each(function() {
1871
- const t = Xe.getOrCreateInstance(this, e);
1872
- if (typeof e == "string") {
1873
- if (t[e] === void 0 || e.startsWith("_") || e === "constructor") throw new TypeError(`No method named "${e}"`);
1874
- t[e]();
1875
- }
1876
- });
1877
- }
1878
- }
1879
- l.on(window, lr, () => {
1880
- for (const i of f.find('[data-bs-spy="scroll"]')) Xe.getOrCreateInstance(i);
1881
- }), K(Xe);
1882
- const ke = ".bs.tab", dr = `hide${ke}`, fr = `hidden${ke}`, pr = `show${ke}`, mr = `shown${ke}`, gr = `click${ke}`, _r = `keydown${ke}`, br = `load${ke}`, vr = "ArrowLeft", Bn = "ArrowRight", yr = "ArrowUp", Vn = "ArrowDown", ci = "Home", Un = "End", Se = "active", Kn = "fade", ui = "show", Qn = ".dropdown-toggle", hi = `:not(${Qn})`, Xn = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]', di = `.nav-link${hi}, .list-group-item${hi}, [role="tab"]${hi}, ${Xn}`, wr = `.${Se}[data-bs-toggle="tab"], .${Se}[data-bs-toggle="pill"], .${Se}[data-bs-toggle="list"]`;
1883
- class ue extends J {
1884
- constructor(e) {
1885
- super(e), this._parent = this._element.closest('.list-group, .nav, [role="tablist"]'), this._parent && (this._setInitialAttributes(this._parent, this._getChildren()), l.on(this._element, _r, (t) => this._keydown(t)));
1886
- }
1887
- static get NAME() {
1888
- return "tab";
1889
- }
1890
- show() {
1891
- const e = this._element;
1892
- if (this._elemIsActive(e)) return;
1893
- const t = this._getActiveElem(), n = t ? l.trigger(t, dr, { relatedTarget: e }) : null;
1894
- l.trigger(e, pr, { relatedTarget: t }).defaultPrevented || n && n.defaultPrevented || (this._deactivate(t, e), this._activate(e, t));
1895
- }
1896
- _activate(e, t) {
1897
- e && (e.classList.add(Se), this._activate(f.getElementFromSelector(e)), this._queueCallback(() => {
1898
- e.getAttribute("role") === "tab" ? (e.removeAttribute("tabindex"), e.setAttribute("aria-selected", !0), this._toggleDropDown(e, !0), l.trigger(e, mr, { relatedTarget: t })) : e.classList.add(ui);
1899
- }, e, e.classList.contains(Kn)));
1900
- }
1901
- _deactivate(e, t) {
1902
- e && (e.classList.remove(Se), e.blur(), this._deactivate(f.getElementFromSelector(e)), this._queueCallback(() => {
1903
- e.getAttribute("role") === "tab" ? (e.setAttribute("aria-selected", !1), e.setAttribute("tabindex", "-1"), this._toggleDropDown(e, !1), l.trigger(e, fr, { relatedTarget: t })) : e.classList.remove(ui);
1904
- }, e, e.classList.contains(Kn)));
1905
- }
1906
- _keydown(e) {
1907
- if (![vr, Bn, yr, Vn, ci, Un].includes(e.key)) return;
1908
- e.stopPropagation(), e.preventDefault();
1909
- const t = this._getChildren().filter((s) => !me(s));
1910
- let n;
1911
- if ([ci, Un].includes(e.key)) n = t[e.key === ci ? 0 : t.length - 1];
1912
- else {
1913
- const s = [Bn, Vn].includes(e.key);
1914
- n = Ut(t, e.target, s, !0);
1915
- }
1916
- n && (n.focus({ preventScroll: !0 }), ue.getOrCreateInstance(n).show());
1917
- }
1918
- _getChildren() {
1919
- return f.find(di, this._parent);
1920
- }
1921
- _getActiveElem() {
1922
- return this._getChildren().find((e) => this._elemIsActive(e)) || null;
1923
- }
1924
- _setInitialAttributes(e, t) {
1925
- this._setAttributeIfNotExists(e, "role", "tablist");
1926
- for (const n of t) this._setInitialAttributesOnChild(n);
1927
- }
1928
- _setInitialAttributesOnChild(e) {
1929
- e = this._getInnerElement(e);
1930
- const t = this._elemIsActive(e), n = this._getOuterElement(e);
1931
- e.setAttribute("aria-selected", t), n !== e && this._setAttributeIfNotExists(n, "role", "presentation"), t || e.setAttribute("tabindex", "-1"), this._setAttributeIfNotExists(e, "role", "tab"), this._setInitialAttributesOnTargetPanel(e);
1932
- }
1933
- _setInitialAttributesOnTargetPanel(e) {
1934
- const t = f.getElementFromSelector(e);
1935
- t && (this._setAttributeIfNotExists(t, "role", "tabpanel"), e.id && this._setAttributeIfNotExists(t, "aria-labelledby", `${e.id}`));
1936
- }
1937
- _toggleDropDown(e, t) {
1938
- const n = this._getOuterElement(e);
1939
- if (!n.classList.contains("dropdown")) return;
1940
- const s = (o, r) => {
1941
- const a = f.findOne(o, n);
1942
- a && a.classList.toggle(r, t);
1943
- };
1944
- s(Qn, Se), s(".dropdown-menu", ui), n.setAttribute("aria-expanded", t);
1945
- }
1946
- _setAttributeIfNotExists(e, t, n) {
1947
- e.hasAttribute(t) || e.setAttribute(t, n);
1948
- }
1949
- _elemIsActive(e) {
1950
- return e.classList.contains(Se);
1951
- }
1952
- _getInnerElement(e) {
1953
- return e.matches(di) ? e : f.findOne(di, e);
1954
- }
1955
- _getOuterElement(e) {
1956
- return e.closest(".nav-item, .list-group-item") || e;
1957
- }
1958
- static jQueryInterface(e) {
1959
- return this.each(function() {
1960
- const t = ue.getOrCreateInstance(this);
1961
- if (typeof e == "string") {
1962
- if (t[e] === void 0 || e.startsWith("_") || e === "constructor") throw new TypeError(`No method named "${e}"`);
1963
- t[e]();
1964
- }
1965
- });
1966
- }
1967
- }
1968
- l.on(document, gr, Xn, function(i) {
1969
- ["A", "AREA"].includes(this.tagName) && i.preventDefault(), me(this) || ue.getOrCreateInstance(this).show();
1970
- }), l.on(window, br, () => {
1971
- for (const i of f.find(wr)) ue.getOrCreateInstance(i);
1972
- }), K(ue);
1973
- const be = ".bs.toast", Ar = `mouseover${be}`, Er = `mouseout${be}`, Tr = `focusin${be}`, Cr = `focusout${be}`, Or = `hide${be}`, xr = `hidden${be}`, kr = `show${be}`, Sr = `shown${be}`, Yn = "hide", At = "show", Et = "showing", Lr = { animation: "boolean", autohide: "boolean", delay: "number" }, $r = { animation: !0, autohide: !0, delay: 5e3 };
1974
- class Le extends J {
1975
- constructor(e, t) {
1976
- super(e, t), this._timeout = null, this._hasMouseInteraction = !1, this._hasKeyboardInteraction = !1, this._setListeners();
1977
- }
1978
- static get Default() {
1979
- return $r;
1980
- }
1981
- static get DefaultType() {
1982
- return Lr;
1983
- }
1984
- static get NAME() {
1985
- return "toast";
1986
- }
1987
- show() {
1988
- l.trigger(this._element, kr).defaultPrevented || (this._clearTimeout(), this._config.animation && this._element.classList.add("fade"), this._element.classList.remove(Yn), et(this._element), this._element.classList.add(At, Et), this._queueCallback(() => {
1989
- this._element.classList.remove(Et), l.trigger(this._element, Sr), this._maybeScheduleHide();
1990
- }, this._element, this._config.animation));
1991
- }
1992
- hide() {
1993
- this.isShown() && (l.trigger(this._element, Or).defaultPrevented || (this._element.classList.add(Et), this._queueCallback(() => {
1994
- this._element.classList.add(Yn), this._element.classList.remove(Et, At), l.trigger(this._element, xr);
1995
- }, this._element, this._config.animation)));
1996
- }
1997
- dispose() {
1998
- this._clearTimeout(), this.isShown() && this._element.classList.remove(At), super.dispose();
1999
- }
2000
- isShown() {
2001
- return this._element.classList.contains(At);
2002
- }
2003
- _maybeScheduleHide() {
2004
- this._config.autohide && (this._hasMouseInteraction || this._hasKeyboardInteraction || (this._timeout = setTimeout(() => {
2005
- this.hide();
2006
- }, this._config.delay)));
2007
- }
2008
- _onInteraction(e, t) {
2009
- switch (e.type) {
2010
- case "mouseover":
2011
- case "mouseout":
2012
- this._hasMouseInteraction = t;
2013
- break;
2014
- case "focusin":
2015
- case "focusout":
2016
- this._hasKeyboardInteraction = t;
2017
- }
2018
- if (t) return void this._clearTimeout();
2019
- const n = e.relatedTarget;
2020
- this._element === n || this._element.contains(n) || this._maybeScheduleHide();
2021
- }
2022
- _setListeners() {
2023
- l.on(this._element, Ar, (e) => this._onInteraction(e, !0)), l.on(this._element, Er, (e) => this._onInteraction(e, !1)), l.on(this._element, Tr, (e) => this._onInteraction(e, !0)), l.on(this._element, Cr, (e) => this._onInteraction(e, !1));
2024
- }
2025
- _clearTimeout() {
2026
- clearTimeout(this._timeout), this._timeout = null;
2027
- }
2028
- static jQueryInterface(e) {
2029
- return this.each(function() {
2030
- const t = Le.getOrCreateInstance(this, e);
2031
- if (typeof e == "string") {
2032
- if (t[e] === void 0) throw new TypeError(`No method named "${e}"`);
2033
- t[e](this);
2034
- }
2035
- });
2036
- }
2037
- }
2038
- ft(Le), K(Le);
2039
- const Dr = Object.freeze(Object.defineProperty({ __proto__: null, Alert: qe, Button: ze, Carousel: Te, Collapse: Ce, Dropdown: W, Modal: _e, Offcanvas: ie, Popover: Ke, ScrollSpy: Xe, Tab: ue, Toast: Le, Tooltip: ce }, Symbol.toStringTag, { value: "Module" }));
2040
- [].slice.call(document.querySelectorAll('[data-bs-toggle="dropdown"]')).map(function(i) {
2041
- let e = { boundary: i.getAttribute("data-bs-boundary") === "viewport" ? document.querySelector(".btn") : "clippingParents" };
2042
- return new W(i, e);
2043
- }), [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(function(i) {
2044
- let e = { delay: { show: 50, hide: 50 }, html: i.getAttribute("data-bs-html") === "true", placement: i.getAttribute("data-bs-placement") ?? "auto" };
2045
- return new ce(i, e);
2046
- }), [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map(function(i) {
2047
- let e = { delay: { show: 50, hide: 50 }, html: i.getAttribute("data-bs-html") === "true", placement: i.getAttribute("data-bs-placement") ?? "auto" };
2048
- return new Ke(i, e);
2049
- }), [].slice.call(document.querySelectorAll('[data-bs-toggle="switch-icon"]')).map(function(i) {
2050
- i.addEventListener("click", (e) => {
2051
- e.stopPropagation(), i.classList.toggle("active");
2052
- });
2053
- }), (() => {
2054
- const i = window.location.hash;
2055
- i && [].slice.call(document.querySelectorAll('[data-bs-toggle="tab"]')).filter((e) => e.hash === i).map((e) => {
2056
- new ue(e).show();
2057
- });
2058
- })(), [].slice.call(document.querySelectorAll('[data-bs-toggle="toast"]')).map(function(i) {
2059
- if (!i.hasAttribute("data-bs-target")) return;
2060
- const e = new Le(i.getAttribute("data-bs-target"));
2061
- i.addEventListener("click", () => {
2062
- e.show();
2063
- });
2064
- });
2065
- const Gn = "tblr-", Jn = (i, e) => {
2066
- const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i);
2067
- return t ? `rgba(${parseInt(t[1], 16)}, ${parseInt(t[2], 16)}, ${parseInt(t[3], 16)}, ${e})` : null;
2068
- }, Ir = Object.freeze(Object.defineProperty({ __proto__: null, getColor: (i, e = 1) => {
2069
- const t = getComputedStyle(document.body).getPropertyValue(`--${Gn}${i}`).trim();
2070
- return e !== 1 ? Jn(t, e) : t;
2071
- }, hexToRgba: Jn, prefix: Gn }, Symbol.toStringTag, { value: "Module" }));
2072
- S.Alert = qe, S.Button = ze, S.Carousel = Te, S.Collapse = Ce, S.Dropdown = W, S.Modal = _e, S.Offcanvas = ie, S.Popover = Ke, S.ScrollSpy = Xe, S.Tab = ue, S.Toast = Le, S.Tooltip = ce, S.bootstrap = Dr, S.tabler = Ir, Object.defineProperty(S, Symbol.toStringTag, { value: "Module" });
2073
- });
2074
- })(ot, ot.exports)), ot.exports;
2075
- }
2076
- var ds = Qr();
2077
- const Xr = /* @__PURE__ */ Ur(ds), Yr = /* @__PURE__ */ Vr({
2078
- __proto__: null,
2079
- default: Xr
2080
- }, [ds]), Gr = {
2081
- transition: "Vue-Toastification__bounce",
2082
- maxToasts: 20,
2083
- newestOnTop: !0,
2084
- toastClassName: "custom-toast-class"
2085
- }, ta = {
2086
- // até o momento não usamos opções nem o app, mas deixei aqui caso precise no futuro
2087
- install: (M, ye = {}) => {
2088
- window.bootstrap = Yr, M.directive("required", Wr);
2089
- const S = { ...Gr, ...ye.toast };
2090
- M.use(Rr, S);
2091
- const B = ye.dataTable || {};
2092
- M.provide(Br, B);
2093
- }
2094
- };
2095
- export {
2096
- ta as S
2097
- };