@rxap/ngx-oauth2-proxy 22.0.0-dev.0 → 22.0.0-dev.1

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 (81) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +62 -5
  4. package/compodoc/dependencies.html +108 -27
  5. package/compodoc/guards/oauth2ProxyGuard.html +293 -0
  6. package/compodoc/index.html +46 -5
  7. package/compodoc/injectables/GetOauth2ProxyUserProfileMethod.html +77 -17
  8. package/compodoc/injectables/Oauth2ProxyUserProfileDataSource.html +90 -11
  9. package/compodoc/interfaces/Oauth2ProxyUserProfile.html +153 -98
  10. package/compodoc/js/architecture-graph.js +288 -0
  11. package/compodoc/js/libs/bootstrap-native.js +4 -2
  12. package/compodoc/js/libs/jszip.min.js +13 -0
  13. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  14. package/compodoc/js/libs/tablesort.min.js +3 -3
  15. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  16. package/compodoc/js/libs/vis-network.min.js +78 -0
  17. package/compodoc/js/menu-wc.js +38 -12
  18. package/compodoc/js/menu.js +10 -11
  19. package/compodoc/js/routes/routes_index.js +1 -0
  20. package/compodoc/js/routes.js +142 -34
  21. package/compodoc/js/search/search-lunr.js +6 -8
  22. package/compodoc/js/search/search.js +118 -66
  23. package/compodoc/js/search/search_index.js +2 -2
  24. package/compodoc/js/tabs.js +98 -15
  25. package/compodoc/js/tree.js +44 -7
  26. package/compodoc/license.html +48 -6
  27. package/compodoc/llms.txt +50 -0
  28. package/compodoc/miscellaneous/functions.html +52 -9
  29. package/compodoc/miscellaneous/variables.html +50 -57
  30. package/compodoc/modules.html +44 -3
  31. package/compodoc/overview.html +62 -3
  32. package/compodoc/properties.html +45 -4
  33. package/compodoc/routes.html +227 -0
  34. package/compodoc/styles/compodoc.css +365 -44
  35. package/compodoc/styles/dark.css +16 -0
  36. package/compodoc/template-playground/default-templates.json +192 -0
  37. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  38. package/compodoc/template-playground/main.ts +9 -0
  39. package/compodoc/template-playground/template-editor.service.ts +173 -0
  40. package/compodoc/template-playground/template-playground.component.ts +614 -0
  41. package/compodoc/template-playground/template-playground.module.ts +29 -0
  42. package/compodoc/template-playground/zip-export.service.ts +86 -0
  43. package/compodoc/template-playground-app/app.js +1389 -0
  44. package/compodoc/template-playground-app/index.html +462 -0
  45. package/docs/documentation.json +1255 -738
  46. package/docs/html/assets/highlight.css +1 -1
  47. package/docs/html/assets/icons.js +1 -1
  48. package/docs/html/assets/icons.svg +1 -1
  49. package/docs/html/assets/main.js +5 -5
  50. package/docs/html/assets/navigation.js +1 -1
  51. package/docs/html/assets/search.js +1 -1
  52. package/docs/html/assets/style.css +265 -228
  53. package/docs/html/classes/GetOauth2ProxyUserProfileMethod.html +79 -3
  54. package/docs/html/classes/Oauth2ProxyUserProfileDataSource.html +730 -69
  55. package/docs/html/functions/provideOauth2Proxy.html +38 -1
  56. package/docs/html/functions/subscribeToLogoutEvent.html +42 -1
  57. package/docs/html/hierarchy.html +29 -0
  58. package/docs/html/index.html +40 -4
  59. package/docs/html/interfaces/Oauth2ProxyUserProfile.html +65 -5
  60. package/docs/html/modules.html +48 -1
  61. package/docs/html/variables/oauth2ProxyGuard.html +33 -0
  62. package/docs/markdown/README.md +1 -1
  63. package/docs/markdown/classes/GetOauth2ProxyUserProfileMethod.md +6 -6
  64. package/docs/markdown/classes/Oauth2ProxyUserProfileDataSource.md +156 -80
  65. package/docs/markdown/functions/provideOauth2Proxy.md +2 -2
  66. package/docs/markdown/functions/subscribeToLogoutEvent.md +3 -7
  67. package/docs/markdown/globals.md +6 -3
  68. package/docs/markdown/interfaces/Oauth2ProxyUserProfile.md +4 -4
  69. package/docs/markdown/variables/oauth2ProxyGuard.md +11 -0
  70. package/docs/wiki/Class.GetOauth2ProxyUserProfileMethod.md +5 -5
  71. package/docs/wiki/Class.Oauth2ProxyUserProfileDataSource.md +155 -79
  72. package/docs/wiki/Function.provideOauth2Proxy.md +1 -1
  73. package/docs/wiki/Function.subscribeToLogoutEvent.md +2 -6
  74. package/docs/wiki/Interface.Oauth2ProxyUserProfile.md +3 -3
  75. package/docs/wiki/Variable.oauth2ProxyGuard.md +7 -0
  76. package/docs/wiki/_Sidebar.md +4 -1
  77. package/docs/wiki/globals.md +5 -2
  78. package/package.json +20 -20
  79. package/docs/html/functions/oauth2ProxyGuard.html +0 -1
  80. package/docs/markdown/functions/oauth2ProxyGuard.md +0 -25
  81. package/docs/wiki/Function.oauth2ProxyGuard.md +0 -21
@@ -0,0 +1,288 @@
1
+ document.addEventListener("DOMContentLoaded", function () {
2
+ var container = document.getElementById("architecture-graph");
3
+ if (!container) {
4
+ return;
5
+ }
6
+ if (
7
+ typeof ARCHITECTURE_DEP_GRAPH === "undefined" ||
8
+ !ARCHITECTURE_DEP_GRAPH ||
9
+ !ARCHITECTURE_DEP_GRAPH.nodes
10
+ ) {
11
+ return;
12
+ }
13
+ if (typeof vis === "undefined" || !vis.Network) {
14
+ return;
15
+ }
16
+
17
+ var typeColors = {
18
+ component: "#10b39c",
19
+ directive: "#6747dd",
20
+ pipe: "#de3b91",
21
+ module: "#2973f0",
22
+ injectable: "#b77006",
23
+ };
24
+ var isDarkMode = function () {
25
+ return !!(document.body && document.body.classList.contains("dark"));
26
+ };
27
+ var getNodeTextColor = function () {
28
+ return isDarkMode() ? "#f0f0f0" : "#2d2d2d";
29
+ };
30
+ var getEdgeColor = function () {
31
+ return isDarkMode() ? "#b5b5b5" : "#8b8b8b";
32
+ };
33
+ var getEdgeOpacity = function () {
34
+ return isDarkMode() ? 0.8 : 0.65;
35
+ };
36
+
37
+ var allNodes = ARCHITECTURE_DEP_GRAPH.nodes.map(function (node) {
38
+ return {
39
+ id: node.id,
40
+ label: node.name,
41
+ type: node.type,
42
+ url: node.url,
43
+ };
44
+ });
45
+ var allEdges = ARCHITECTURE_DEP_GRAPH.edges.map(function (edge) {
46
+ return {
47
+ from: edge.source,
48
+ to: edge.target,
49
+ };
50
+ });
51
+
52
+ if (!allNodes.length || !allEdges.length) {
53
+ container.innerHTML =
54
+ '<p class="alert alert-warning">No dependency links to render.</p>';
55
+ return;
56
+ }
57
+
58
+ var degreeByNodeId = {};
59
+ allEdges.forEach(function (edge) {
60
+ degreeByNodeId[edge.from] = (degreeByNodeId[edge.from] || 0) + 1;
61
+ degreeByNodeId[edge.to] = (degreeByNodeId[edge.to] || 0) + 1;
62
+ });
63
+
64
+ allNodes = allNodes.map(function (node) {
65
+ var degree = degreeByNodeId[node.id] || 1;
66
+ return {
67
+ id: node.id,
68
+ label: node.label,
69
+ title: node.label + " (" + node.type + ")",
70
+ type: node.type,
71
+ url: node.url,
72
+ color: typeColors[node.type] || typeColors.module,
73
+ size: Math.min(30, 10 + degree * 1.3),
74
+ font: { color: getNodeTextColor(), size: 12 },
75
+ borderWidth: 1,
76
+ };
77
+ });
78
+
79
+ var activeTypes = {};
80
+ var knownTypes = ["component", "directive", "pipe", "module", "injectable"];
81
+ knownTypes.forEach(function (type) {
82
+ activeTypes[type] = true;
83
+ });
84
+
85
+ var nodeById = {};
86
+ allNodes.forEach(function (node) {
87
+ nodeById[node.id] = node;
88
+ });
89
+
90
+ var network;
91
+ var currentScale = 1;
92
+
93
+ var applyGraphTheme = function () {
94
+ var textColor = getNodeTextColor();
95
+ var edgeColor = getEdgeColor();
96
+ var edgeOpacity = getEdgeOpacity();
97
+
98
+ for (var i = 0; i < allNodes.length; i++) {
99
+ allNodes[i].font = allNodes[i].font || {};
100
+ allNodes[i].font.color = textColor;
101
+ }
102
+
103
+ if (network) {
104
+ network.setOptions({
105
+ edges: {
106
+ color: { color: edgeColor, opacity: edgeOpacity },
107
+ },
108
+ });
109
+ }
110
+ };
111
+
112
+ var getFilteredGraphData = function () {
113
+ var visibleNodes = allNodes.filter(function (node) {
114
+ return activeTypes[node.type];
115
+ });
116
+ var visibleNodeIds = {};
117
+ visibleNodes.forEach(function (node) {
118
+ visibleNodeIds[node.id] = true;
119
+ });
120
+ var visibleEdges = allEdges.filter(function (edge) {
121
+ return visibleNodeIds[edge.from] && visibleNodeIds[edge.to];
122
+ });
123
+ return { nodes: visibleNodes, edges: visibleEdges };
124
+ };
125
+
126
+ var renderFilteredGraph = function () {
127
+ var filtered = getFilteredGraphData();
128
+ network.setData({
129
+ nodes: new vis.DataSet(filtered.nodes),
130
+ edges: new vis.DataSet(filtered.edges),
131
+ });
132
+ network.stabilize(120);
133
+ };
134
+
135
+ var options = {
136
+ autoResize: true,
137
+ layout: {
138
+ improvedLayout: true,
139
+ },
140
+ interaction: {
141
+ hover: true,
142
+ dragView: true,
143
+ zoomView: true,
144
+ },
145
+ physics: {
146
+ enabled: true,
147
+ stabilization: {
148
+ enabled: true,
149
+ iterations: 180,
150
+ fit: true,
151
+ },
152
+ barnesHut: {
153
+ gravitationalConstant: -6000,
154
+ centralGravity: 0.35,
155
+ springLength: 130,
156
+ springConstant: 0.02,
157
+ damping: 0.2,
158
+ },
159
+ },
160
+ edges: {
161
+ arrows: { to: { enabled: true, scaleFactor: 0.6 } },
162
+ color: { color: getEdgeColor(), opacity: getEdgeOpacity() },
163
+ smooth: {
164
+ enabled: true,
165
+ type: "dynamic",
166
+ },
167
+ },
168
+ nodes: {
169
+ shape: "dot",
170
+ scaling: {
171
+ min: 9,
172
+ max: 32,
173
+ },
174
+ },
175
+ };
176
+
177
+ var initialData = getFilteredGraphData();
178
+ network = new vis.Network(
179
+ container,
180
+ {
181
+ nodes: new vis.DataSet(initialData.nodes),
182
+ edges: new vis.DataSet(initialData.edges),
183
+ },
184
+ options,
185
+ );
186
+
187
+ network.on("click", function (params) {
188
+ if (!params.nodes || params.nodes.length === 0) {
189
+ return;
190
+ }
191
+ var node = nodeById[params.nodes[0]];
192
+ if (node && node.url) {
193
+ document.location.href = node.url;
194
+ }
195
+ });
196
+
197
+ network.once("stabilizationIterationsDone", function () {
198
+ network.fit({ animation: { duration: 250, easingFunction: "easeOutQuad" } });
199
+ currentScale = 1;
200
+ });
201
+ applyGraphTheme();
202
+
203
+ var legendButtons = document.querySelectorAll("[data-architecture-filter]");
204
+ var updateLegendState = function () {
205
+ for (var i = 0; i < legendButtons.length; i++) {
206
+ var button = legendButtons[i];
207
+ var type = button.getAttribute("data-architecture-filter");
208
+ var active = !!activeTypes[type];
209
+ button.setAttribute("aria-pressed", active ? "true" : "false");
210
+ if (active) {
211
+ button.classList.remove("is-disabled");
212
+ } else {
213
+ button.classList.add("is-disabled");
214
+ }
215
+ }
216
+ };
217
+
218
+ for (var i = 0; i < legendButtons.length; i++) {
219
+ legendButtons[i].addEventListener("click", function (event) {
220
+ event.preventDefault();
221
+ var type = this.getAttribute("data-architecture-filter");
222
+ if (!type) {
223
+ return;
224
+ }
225
+
226
+ activeTypes[type] = !activeTypes[type];
227
+
228
+ var activeCount = 0;
229
+ knownTypes.forEach(function (entry) {
230
+ if (activeTypes[entry]) {
231
+ activeCount += 1;
232
+ }
233
+ });
234
+ if (activeCount === 0) {
235
+ knownTypes.forEach(function (entry) {
236
+ activeTypes[entry] = true;
237
+ });
238
+ }
239
+
240
+ updateLegendState();
241
+ renderFilteredGraph();
242
+ });
243
+ }
244
+ updateLegendState();
245
+
246
+ var zoomIn = document.getElementById("architecture-zoom-in");
247
+ var zoomOut = document.getElementById("architecture-zoom-out");
248
+ var reset = document.getElementById("architecture-reset");
249
+
250
+ if (zoomIn) {
251
+ zoomIn.addEventListener("click", function (ev) {
252
+ ev.preventDefault();
253
+ currentScale = Math.min(4, currentScale * 1.25);
254
+ network.moveTo({
255
+ scale: currentScale,
256
+ animation: { duration: 160, easingFunction: "easeOutQuad" },
257
+ });
258
+ });
259
+ }
260
+ if (zoomOut) {
261
+ zoomOut.addEventListener("click", function (ev) {
262
+ ev.preventDefault();
263
+ currentScale = Math.max(0.2, currentScale / 1.25);
264
+ network.moveTo({
265
+ scale: currentScale,
266
+ animation: { duration: 160, easingFunction: "easeOutQuad" },
267
+ });
268
+ });
269
+ }
270
+ if (reset) {
271
+ reset.addEventListener("click", function (ev) {
272
+ ev.preventDefault();
273
+ network.fit({ animation: { duration: 180, easingFunction: "easeOutQuad" } });
274
+ currentScale = 1;
275
+ });
276
+ }
277
+
278
+ if (window.MutationObserver && document.body) {
279
+ var bodyThemeObserver = new MutationObserver(function () {
280
+ applyGraphTheme();
281
+ renderFilteredGraph();
282
+ });
283
+ bodyThemeObserver.observe(document.body, {
284
+ attributes: true,
285
+ attributeFilter: ["class"],
286
+ });
287
+ }
288
+ });
@@ -1,2 +1,4 @@
1
- var BSN=function(H){"use strict";var Vc=Object.defineProperty;var Kc=(H,it,ct)=>it in H?Vc(H,it,{enumerable:!0,configurable:!0,writable:!0,value:ct}):H[it]=ct;var d=(H,it,ct)=>(Kc(H,typeof it!="symbol"?it+"":it,ct),ct);const it="aria-describedby",ct="aria-expanded",Se="aria-hidden",He="aria-modal",_s="aria-pressed",Ue="aria-selected",Bo="DOMContentLoaded",qe="focus",Qe="focusin",Bs="focusout",Pe="keydown",Ro="keyup",N="click",Rs="mousedown",Wo="hover",De="mouseenter",Ze="mouseleave",Fo="pointerdown",jo="pointermove",zo="pointerup",xe="resize",Ae="scroll",Ge="touchstart",Vo="dragstart",Je="ArrowDown",ts="ArrowUp",Ws="ArrowLeft",Fs="ArrowRight",es="Escape",Ko="transitionDuration",Xo="transitionDelay",ss="transitionend",js="transitionProperty",Yo=navigator.userAgentData,Le=Yo,{userAgent:Uo}=navigator,Ie=Uo,zs=/iPhone|iPad|iPod|Android/i;Le?Le.brands.some(t=>zs.test(t.brand)):zs.test(Ie);const Vs=/(iPhone|iPod|iPad)/,qo=Le?Le.brands.some(t=>Vs.test(t.brand)):Vs.test(Ie);Ie&&Ie.includes("Firefox");const{head:ke}=document;["webkitPerspective","perspective"].some(t=>t in ke.style);const Qo=(t,s,e,n)=>{const o=n||!1;t.addEventListener(s,e,o)},Zo=(t,s,e,n)=>{const o=n||!1;t.removeEventListener(s,e,o)},Go=(t,s,e,n)=>{const o=i=>{(i.target===t||i.currentTarget===t)&&(e.apply(t,[i]),Zo(t,s,o,n))};Qo(t,s,o,n)},le=()=>{};(()=>{let t=!1;try{const s=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});Go(document,Bo,le,s)}catch{}return t})(),["webkitTransform","transform"].some(t=>t in ke.style),["webkitAnimation","animation"].some(t=>t in ke.style),["webkitTransition","transition"].some(t=>t in ke.style);const at=(t,s)=>t.getAttribute(s),Ne=(t,s)=>t.hasAttribute(s),O=(t,s,e)=>t.setAttribute(s,e),At=(t,s)=>t.removeAttribute(s),f=(t,...s)=>{t.classList.add(...s)},b=(t,...s)=>{t.classList.remove(...s)},h=(t,s)=>t.classList.contains(s),de=t=>t!=null&&typeof t=="object"||!1,A=t=>de(t)&&typeof t.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(s=>t.nodeType===s)||!1,T=t=>A(t)&&t.nodeType===1||!1,jt=new Map,Lt={data:jt,set:(t,s,e)=>{T(t)&&(jt.has(s)||jt.set(s,new Map),jt.get(s).set(t,e))},getAllFor:t=>jt.get(t)||null,get:(t,s)=>{if(!T(t)||!s)return null;const e=Lt.getAllFor(s);return t&&e&&e.get(t)||null},remove:(t,s)=>{const e=Lt.getAllFor(s);!e||!T(t)||(e.delete(t),e.size===0&&jt.delete(s))}},F=(t,s)=>Lt.get(t,s),he=t=>typeof t=="string"||!1,ns=t=>de(t)&&t.constructor.name==="Window"||!1,Ks=t=>A(t)&&t.nodeType===9||!1,E=t=>ns(t)?t.document:Ks(t)?t:A(t)?t.ownerDocument:window.document,dt=(t,...s)=>Object.assign(t,...s),vt=t=>{if(!t)return;if(he(t))return E().createElement(t);const{tagName:s}=t,e=vt(s);if(!e)return;const n={...t};return delete n.tagName,dt(e,n)},w=(t,s)=>t.dispatchEvent(s),z=(t,s)=>{const e=getComputedStyle(t),n=s.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return e.getPropertyValue(n)},Jo=t=>{const s=z(t,js),e=z(t,Xo),n=e.includes("ms")?1:1e3,o=s&&s!=="none"?parseFloat(e)*n:0;return Number.isNaN(o)?0:o},zt=t=>{const s=z(t,js),e=z(t,Ko),n=e.includes("ms")?1:1e3,o=s&&s!=="none"?parseFloat(e)*n:0;return Number.isNaN(o)?0:o},P=(t,s)=>{let e=0;const n=new Event(ss),o=zt(t),i=Jo(t);if(o){const c=a=>{a.target===t&&(s.apply(t,[a]),t.removeEventListener(ss,c),e=1)};t.addEventListener(ss,c),setTimeout(()=>{e||w(t,n)},o+i+17)}else s.apply(t,[n])},ht=(t,s)=>t.focus(s),Xs=t=>["true",!0].includes(t)?!0:["false",!1].includes(t)?!1:["null","",null,void 0].includes(t)?null:t!==""&&!Number.isNaN(+t)?+t:t,Oe=t=>Object.entries(t),Vt=t=>t.toLowerCase(),ti=(t,s,e,n)=>{const o={...e},i={...t.dataset},c={...s},a={},l="title";return Oe(i).forEach(([r,g])=>{const p=n&&typeof r=="string"&&r.includes(n)?r.replace(n,"").replace(/[A-Z]/g,v=>Vt(v)):r;a[p]=Xs(g)}),Oe(o).forEach(([r,g])=>{o[r]=Xs(g)}),Oe(s).forEach(([r,g])=>{r in o?c[r]=o[r]:r in a?c[r]=a[r]:c[r]=r===l?at(t,l):g}),c},Ys=t=>Object.keys(t),$=(t,s)=>{const e=new CustomEvent(t,{cancelable:!0,bubbles:!0});return de(s)&&dt(e,s),e},tt={passive:!0},It=t=>t.offsetHeight,L=(t,s)=>{Oe(s).forEach(([e,n])=>{if(n&&he(e)&&e.includes("--"))t.style.setProperty(e,n);else{const o={};o[e]=n,dt(t.style,o)}})},os=t=>de(t)&&t.constructor.name==="Map"||!1,ei=t=>typeof t=="number"||!1,bt=new Map,u={set:(t,s,e,n)=>{T(t)&&(n&&n.length?(bt.has(t)||bt.set(t,new Map),bt.get(t).set(n,setTimeout(s,e))):bt.set(t,setTimeout(s,e)))},get:(t,s)=>{if(!T(t))return null;const e=bt.get(t);return s&&e&&os(e)?e.get(s)||null:ei(e)?e:null},clear:(t,s)=>{if(!T(t))return;const e=bt.get(t);s&&s.length&&os(e)?(clearTimeout(e.get(s)),e.delete(s),e.size===0&&bt.delete(t)):(clearTimeout(e),bt.delete(t))}},fe=(t,s)=>{const{width:e,height:n,top:o,right:i,bottom:c,left:a}=t.getBoundingClientRect();let l=1,r=1;if(s&&T(t)){const{offsetWidth:g,offsetHeight:p}=t;l=g>0?Math.round(e)/g:1,r=p>0?Math.round(n)/p:1}return{width:e/l,height:n/r,top:o/r,right:i/l,bottom:c/r,left:a/l,x:a/l,y:o/r}},wt=t=>E(t).body,ft=t=>E(t).documentElement,Us=t=>A(t)&&t.constructor.name==="ShadowRoot"||!1,si=t=>t.nodeName==="HTML"?t:T(t)&&t.assignedSlot||A(t)&&t.parentNode||Us(t)&&t.host||ft(t);let qs=0,Qs=0;const Kt=new Map,Zs=(t,s)=>{let e=s?qs:Qs;if(s){const n=Zs(t),o=Kt.get(n)||new Map;Kt.has(n)||Kt.set(n,o),os(o)&&!o.has(s)?(o.set(s,e),qs+=1):e=o.get(s)}else{const n=t.id||t;Kt.has(n)?e=Kt.get(n):(Kt.set(n,e),Qs+=1)}return e},Xt=t=>{var s;return t?Ks(t)?t.defaultView:A(t)?(s=t==null?void 0:t.ownerDocument)==null?void 0:s.defaultView:t:window},ni=t=>Array.isArray(t)||!1,Gs=t=>{if(!A(t))return!1;const{top:s,bottom:e}=fe(t),{clientHeight:n}=ft(t);return s<=n&&e>=0},oi=t=>typeof t=="function"||!1,ii=t=>de(t)&&t.constructor.name==="NodeList"||!1,Et=t=>ft(t).dir==="rtl",ci=t=>A(t)&&["TABLE","TD","TH"].includes(t.nodeName)||!1,M=(t,s)=>t?t.closest(s)||M(t.getRootNode().host,s):null,D=(t,s)=>T(t)?t:(A(s)?s:E()).querySelector(t),is=(t,s)=>(A(s)?s:E()).getElementsByTagName(t),et=(t,s)=>(A(s)?s:E()).querySelectorAll(t),gt=(t,s)=>(s&&A(s)?s:E()).getElementsByClassName(t),Js=(t,s)=>t.matches(s),Yt={},tn=t=>{const{type:s,currentTarget:e}=t;[...Yt[s]].forEach(([n,o])=>{e===n&&[...o].forEach(([i,c])=>{i.apply(n,[t]),typeof c=="object"&&c.once&&B(n,s,i,c)})})},_=(t,s,e,n)=>{Yt[s]||(Yt[s]=new Map);const o=Yt[s];o.has(t)||o.set(t,new Map);const i=o.get(t),{size:c}=i;i.set(e,n),c||t.addEventListener(s,tn,n)},B=(t,s,e,n)=>{const o=Yt[s],i=o&&o.get(t),c=i&&i.get(e),a=c!==void 0?c:n;i&&i.has(e)&&i.delete(e),o&&(!i||!i.size)&&o.delete(t),(!o||!o.size)&&delete Yt[s],(!i||!i.size)&&t.removeEventListener(s,tn,a)},W="fade",m="show",Me="data-bs-dismiss",_e="alert",en="Alert",ai="5.0.12";class st{constructor(s,e){d(this,"_toggleEventListeners",()=>{});const n=D(s);if(!n)throw he(s)?Error(`${this.name} Error: "${s}" is not a valid selector.`):Error(`${this.name} Error: your target is not an instance of HTMLElement.`);const o=Lt.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Ys(this.defaults).length?ti(n,this.defaults,e||{},"bs"):{},Lt.set(n,this.name,this)}get version(){return ai}get name(){return"BaseComponent"}get defaults(){return{}}dispose(){Lt.remove(this.element,this.name),Ys(this).forEach(s=>{delete this[s]})}}const ri=`.${_e}`,li=`[${Me}="${_e}"]`,di=t=>F(t,en),hi=t=>new Ut(t),sn=$(`close.bs.${_e}`),fi=$(`closed.bs.${_e}`),nn=t=>{const{element:s}=t;w(s,fi),t._toggleEventListeners(),t.dispose(),s.remove()};class Ut extends st{constructor(e){super(e);d(this,"dismiss");d(this,"close",()=>{const{element:e}=this;e&&h(e,m)&&(w(e,sn),sn.defaultPrevented||(b(e,m),h(e,W)?P(e,()=>nn(this)):nn(this)))});d(this,"_toggleEventListeners",e=>{const n=e?_:B,{dismiss:o,close:i}=this;o&&n(o,N,i)});this.dismiss=D(li,this.element),this._toggleEventListeners(!0)}get name(){return en}dispose(){this._toggleEventListeners(),super.dispose()}}d(Ut,"selector",ri),d(Ut,"init",hi),d(Ut,"getInstance",di);const C="active",rt="data-bs-toggle",gi="button",on="Button",pi=`[${rt}="${gi}"]`,ui=t=>F(t,on),mi=t=>new qt(t);class qt extends st{constructor(e){super(e);d(this,"isActive",!1);d(this,"toggle",e=>{e&&e.preventDefault();const{element:n,isActive:o}=this;!h(n,"disabled")&&!at(n,"disabled")&&((o?b:f)(n,C),O(n,_s,o?"false":"true"),this.isActive=h(n,C))});d(this,"_toggleEventListeners",e=>{(e?_:B)(this.element,N,this.toggle)});const{element:n}=this;this.isActive=h(n,C),O(n,_s,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return on}dispose(){this._toggleEventListeners(),super.dispose()}}d(qt,"selector",pi),d(qt,"init",mi),d(qt,"getInstance",ui);const cs="data-bs-target",kt="carousel",cn="Carousel",an="data-bs-parent",vi="data-bs-container",V=t=>{const s=[cs,an,vi,"href"],e=E(t);return s.map(n=>{const o=at(t,n);return o?n===an?M(t,o):D(o,e):null}).filter(n=>n)[0]},ge=`[data-bs-ride="${kt}"]`,Q=`${kt}-item`,as="data-bs-slide-to",$t="data-bs-slide",Tt="paused",rn={pause:"hover",keyboard:!1,touch:!0,interval:5e3},pt=t=>F(t,cn),bi=t=>new Qt(t);let pe=0,Be=0,rs=0;const ls=$(`slide.bs.${kt}`),ds=$(`slid.bs.${kt}`),ln=t=>{const{index:s,direction:e,element:n,slides:o,options:i}=t;if(t.isAnimating){const c=fs(t),a=e==="left"?"next":"prev",l=e==="left"?"start":"end";f(o[s],C),b(o[s],`${Q}-${a}`),b(o[s],`${Q}-${l}`),b(o[c],C),b(o[c],`${Q}-${l}`),w(n,ds),u.clear(n,$t),t.cycle&&!E(n).hidden&&i.interval&&!t.isPaused&&t.cycle()}};function wi(){const t=pt(this);t&&!t.isPaused&&!u.get(this,Tt)&&f(this,Tt)}function Ei(){const t=pt(this);t&&t.isPaused&&!u.get(this,Tt)&&t.cycle()}function $i(t){t.preventDefault();const s=M(this,ge)||V(this),e=pt(s);if(e&&!e.isAnimating){const n=+(at(this,as)||0);this&&!h(this,C)&&!Number.isNaN(n)&&e.to(n)}}function Ti(t){t.preventDefault();const s=M(this,ge)||V(this),e=pt(s);if(e&&!e.isAnimating){const n=at(this,$t);n==="next"?e.next():n==="prev"&&e.prev()}}const yi=({code:t,target:s})=>{const e=E(s),[n]=[...et(ge,e)].filter(i=>Gs(i)),o=pt(n);if(o&&!o.isAnimating&&!/textarea|input/i.test(s.nodeName)){const i=Et(n);t===(i?Fs:Ws)?o.prev():t===(i?Ws:Fs)&&o.next()}};function dn(t){const{target:s}=t,e=pt(this);e&&e.isTouch&&(e.indicator&&!e.indicator.contains(s)||!e.controls.includes(s))&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())}function Ci(t){const{target:s}=t,e=pt(this);if(e&&!e.isAnimating&&!e.isTouch){const{controls:n,indicators:o}=e;[...n,...o].every(i=>i===s||i.contains(s))||(pe=t.pageX,this.contains(s)&&(e.isTouch=!0,hn(e,!0)))}}const Si=t=>{Be=t.pageX},Hi=t=>{var o;const{target:s}=t,e=E(s),n=[...et(ge,e)].map(i=>pt(i)).find(i=>i.isTouch);if(n){const{element:i,index:c}=n,a=Et(i);rs=t.pageX,n.isTouch=!1,hn(n),!((o=e.getSelection())!=null&&o.toString().length)&&i.contains(s)&&Math.abs(pe-rs)>120&&(Be<pe?n.to(c+(a?-1:1)):Be>pe&&n.to(c+(a?1:-1))),pe=0,Be=0,rs=0}},hs=(t,s)=>{const{indicators:e}=t;[...e].forEach(n=>b(n,C)),t.indicators[s]&&f(e[s],C)},hn=(t,s)=>{const{element:e}=t,n=s?_:B;n(E(e),jo,Si,tt),n(E(e),zo,Hi,tt)},fs=t=>{const{slides:s,element:e}=t,n=D(`.${Q}.${C}`,e);return T(n)?[...s].indexOf(n):-1};class Qt extends st{constructor(e,n){super(e,n);d(this,"_toggleEventListeners",e=>{const{element:n,options:o,slides:i,controls:c,indicators:a}=this,{touch:l,pause:r,interval:g,keyboard:p}=o,v=e?_:B;r&&g&&(v(n,De,wi),v(n,Ze,Ei)),l&&i.length>2&&(v(n,Fo,Ci,tt),v(n,Ge,dn,{passive:!1}),v(n,Vo,dn,{passive:!1})),c.length&&c.forEach(k=>{k&&v(k,N,Ti)}),a.length&&a.forEach(k=>{v(k,N,$i)}),p&&v(E(n),Pe,yi)});const{element:o}=this;this.direction=Et(o)?"right":"left",this.isTouch=!1,this.slides=gt(Q,o);const{slides:i}=this;if(i.length>=2){const c=fs(this),a=[...i].find(g=>Js(g,`.${Q}-next,.${Q}-next`));this.index=c;const l=E(o);this.controls=[...et(`[${$t}]`,o),...et(`[${$t}][${cs}="#${o.id}"]`,l)].filter((g,p,v)=>p===v.indexOf(g)),this.indicator=D(`.${kt}-indicators`,o),this.indicators=[...this.indicator?et(`[${as}]`,this.indicator):[],...et(`[${as}][${cs}="#${o.id}"]`,l)].filter((g,p,v)=>p===v.indexOf(g));const{options:r}=this;this.options.interval=r.interval===!0?rn.interval:r.interval,a?this.index=[...i].indexOf(a):c<0&&(this.index=0,f(i[0],C),this.indicators.length&&hs(this,0)),this.indicators.length&&hs(this,this.index),this._toggleEventListeners(!0),r.interval&&this.cycle()}}get name(){return cn}get defaults(){return rn}get isPaused(){return h(this.element,Tt)}get isAnimating(){return D(`.${Q}-next,.${Q}-prev`,this.element)!==null}cycle(){const{element:e,options:n,isPaused:o,index:i}=this;u.clear(e,kt),o&&(u.clear(e,Tt),b(e,Tt)),u.set(e,()=>{this.element&&!this.isPaused&&!this.isTouch&&Gs(e)&&this.to(i+1)},n.interval,kt)}pause(){const{element:e,options:n}=this;!this.isPaused&&n.interval&&(f(e,Tt),u.set(e,()=>{},1,Tt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(e){const{element:n,slides:o,options:i}=this,c=fs(this),a=Et(n);let l=e;if(!this.isAnimating&&c!==l&&!u.get(n,$t)){c<l||c===0&&l===o.length-1?this.direction=a?"right":"left":(c>l||c===o.length-1&&l===0)&&(this.direction=a?"left":"right");const{direction:r}=this;l<0?l=o.length-1:l>=o.length&&(l=0);const g=r==="left"?"next":"prev",p=r==="left"?"start":"end",v={relatedTarget:o[l],from:c,to:l,direction:r};dt(ls,v),dt(ds,v),w(n,ls),ls.defaultPrevented||(this.index=l,hs(this,l),zt(o[l])&&h(n,"slide")?u.set(n,()=>{f(o[l],`${Q}-${g}`),It(o[l]),f(o[l],`${Q}-${p}`),f(o[c],`${Q}-${p}`),P(o[l],()=>this.slides&&this.slides.length&&ln(this))},0,$t):(f(o[l],C),b(o[c],C),u.set(n,()=>{u.clear(n,$t),n&&i.interval&&!this.isPaused&&this.cycle(),w(n,ds)},0,$t)))}}dispose(){const{isAnimating:e}=this,n={...this,isAnimating:e};this._toggleEventListeners(),super.dispose(),n.isAnimating&&P(n.slides[n.index],()=>{ln(n)})}}d(Qt,"selector",ge),d(Qt,"init",bi),d(Qt,"getInstance",pt);const Nt="collapsing",K="collapse",fn="Collapse",Pi=`.${K}`,gn=`[${rt}="${K}"]`,Di={parent:null},Re=t=>F(t,fn),xi=t=>new Zt(t),pn=$(`show.bs.${K}`),Ai=$(`shown.bs.${K}`),un=$(`hide.bs.${K}`),Li=$(`hidden.bs.${K}`),Ii=t=>{const{element:s,parent:e,triggers:n}=t;w(s,pn),pn.defaultPrevented||(u.set(s,le,17),e&&u.set(e,le,17),f(s,Nt),b(s,K),L(s,{height:`${s.scrollHeight}px`}),P(s,()=>{u.clear(s),e&&u.clear(e),n.forEach(o=>O(o,ct,"true")),b(s,Nt),f(s,K),f(s,m),L(s,{height:""}),w(s,Ai)}))},mn=t=>{const{element:s,parent:e,triggers:n}=t;w(s,un),un.defaultPrevented||(u.set(s,le,17),e&&u.set(e,le,17),L(s,{height:`${s.scrollHeight}px`}),b(s,K),b(s,m),f(s,Nt),It(s),L(s,{height:"0px"}),P(s,()=>{u.clear(s),e&&u.clear(e),n.forEach(o=>O(o,ct,"false")),b(s,Nt),f(s,K),L(s,{height:""}),w(s,Li)}))},ki=t=>{const{target:s}=t,e=s&&M(s,gn),n=e&&V(e),o=n&&Re(n);o&&o.toggle(),e&&e.tagName==="A"&&t.preventDefault()};class Zt extends st{constructor(e,n){super(e,n);d(this,"_toggleEventListeners",e=>{const n=e?_:B,{triggers:o}=this;o.length&&o.forEach(i=>n(i,N,ki))});const{element:o,options:i}=this,c=E(o);this.triggers=[...et(gn,c)].filter(a=>V(a)===o),this.parent=T(i.parent)?i.parent:he(i.parent)?V(o)||D(i.parent,c):null,this._toggleEventListeners(!0)}get name(){return fn}get defaults(){return Di}hide(){const{triggers:e,element:n}=this;u.get(n)||(mn(this),e.length&&e.forEach(o=>f(o,`${K}d`)))}show(){const{element:e,parent:n,triggers:o}=this;let i,c;n&&(i=[...et(`.${K}.${m}`,n)].find(a=>Re(a)),c=i&&Re(i)),(!n||!u.get(n))&&!u.get(e)&&(c&&i!==e&&(mn(c),c.triggers.forEach(a=>{f(a,`${K}d`)})),Ii(this),o.length&&o.forEach(a=>b(a,`${K}d`)))}toggle(){h(this.element,m)?this.hide():this.show()}dispose(){this._toggleEventListeners(),super.dispose()}}d(Zt,"selector",Pi),d(Zt,"init",xi),d(Zt,"getInstance",Re);const Ot=["dropdown","dropup","dropstart","dropend"],vn="Dropdown",bn="dropdown-menu",wn=t=>{const s=M(t,"A");return t.tagName==="A"&&Ne(t,"href")&&at(t,"href").slice(-1)==="#"||s&&Ne(s,"href")&&at(s,"href").slice(-1)==="#"},[nt,gs,ps,us]=Ot,En=`[${rt}="${nt}"]`,Gt=t=>F(t,vn),Ni=t=>new Jt(t),Oi=`${bn}-end`,$n=[nt,gs],Tn=[ps,us],yn=["A","BUTTON"],Mi={offset:5,display:"dynamic"},ms=$(`show.bs.${nt}`),Cn=$(`shown.bs.${nt}`),vs=$(`hide.bs.${nt}`),Sn=$(`hidden.bs.${nt}`),Hn=$(`updated.bs.${nt}`),Pn=t=>{const{element:s,menu:e,parentElement:n,options:o}=t,{offset:i}=o;if(z(e,"position")!=="static"){const c=Et(s),a=h(e,Oi);["margin","top","bottom","left","right"].forEach(R=>{const Pt={};Pt[R]="",L(e,Pt)});let r=Ot.find(R=>h(n,R))||nt;const g={dropdown:[i,0,0],dropup:[0,0,i],dropstart:c?[-1,0,0,i]:[-1,i,0],dropend:c?[-1,i,0]:[-1,0,0,i]},p={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:c?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:c?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:c?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:c?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:v,offsetHeight:k}=e,{clientWidth:J,clientHeight:y}=ft(s),{left:X,top:q,width:ce,height:mt}=fe(s),S=X-v-i<0,ot=X+v+ce+i>=J,lt=q+k+i>=y,j=q+k+mt+i>=y,Y=q-k-i<0,x=(!c&&a||c&&!a)&&X+ce-v<0,ae=(c&&a||!c&&!a)&&X+v>=J;if(Tn.includes(r)&&S&&ot&&(r=nt),r===ps&&(c?ot:S)&&(r=us),r===us&&(c?S:ot)&&(r=ps),r===gs&&Y&&!j&&(r=nt),r===nt&&j&&!Y&&(r=gs),Tn.includes(r)&&lt&&dt(p[r],{top:"auto",bottom:0}),$n.includes(r)&&(x||ae)){let R={left:"auto",right:"auto"};!x&&ae&&!c&&(R={left:"auto",right:0}),x&&!ae&&c&&(R={left:0,right:"auto"}),R&&dt(p[r],R)}const Ht=g[r];L(e,{...p[r],margin:`${Ht.map(R=>R&&`${R}px`).join(" ")}`}),$n.includes(r)&&a&&a&&L(e,p[!c&&x||c&&ae?"menuStart":"menuEnd"]),w(n,Hn)}},_i=t=>[...t.children].map(s=>{if(s&&yn.includes(s.tagName))return s;const{firstElementChild:e}=s;return e&&yn.includes(e.tagName)?e:null}).filter(s=>s),Dn=t=>{const{element:s,options:e}=t,n=t.open?_:B,o=E(s);n(o,N,xn),n(o,qe,xn),n(o,Pe,Ri),n(o,Ro,Wi),e.display==="dynamic"&&[Ae,xe].forEach(i=>{n(Xt(s),i,Fi,tt)})},We=t=>{const s=[...Ot,"btn-group","input-group"].map(e=>gt(`${e} ${m}`,E(t))).find(e=>e.length);if(s&&s.length)return[...s[0].children].find(e=>Ot.some(n=>n===at(e,rt)))},xn=t=>{const{target:s,type:e}=t;if(s&&T(s)){const n=We(s),o=n&&Gt(n);if(o){const{parentElement:i,menu:c}=o,a=i&&i.contains(s)&&(s.tagName==="form"||M(s,"form")!==null);[N,Rs].includes(e)&&wn(s)&&t.preventDefault(),!a&&e!==qe&&s!==n&&s!==c&&o.hide()}}},Bi=t=>{const{target:s}=t,e=s&&M(s,En),n=e&&Gt(e);n&&(t.stopPropagation(),n.toggle(),e&&wn(e)&&t.preventDefault())},Ri=t=>{[Je,ts].includes(t.code)&&t.preventDefault()};function Wi(t){const{code:s}=t,e=We(this),n=e&&Gt(e),{activeElement:o}=e&&E(e);if(n&&o){const{menu:i,open:c}=n,a=_i(i);if(a&&a.length&&[Je,ts].includes(s)){let l=a.indexOf(o);o===e?l=0:s===ts?l=l>1?l-1:0:s===Je&&(l=l<a.length-1?l+1:l),a[l]&&ht(a[l])}es===s&&c&&(n.toggle(),ht(e))}}function Fi(){const t=We(this),s=t&&Gt(t);s&&s.open&&Pn(s)}class Jt extends st{constructor(e,n){super(e,n);d(this,"_toggleEventListeners",e=>{(e?_:B)(this.element,N,Bi)});const{parentElement:o}=this.element,[i]=gt(bn,o);i&&(this.parentElement=o,this.menu=i,this._toggleEventListeners(!0))}get name(){return vn}get defaults(){return Mi}toggle(){this.open?this.hide():this.show()}show(){const{element:e,open:n,menu:o,parentElement:i}=this;if(!n){const c=We(e),a=c&&Gt(c);a&&a.hide(),[ms,Cn,Hn].forEach(l=>{l.relatedTarget=e}),w(i,ms),ms.defaultPrevented||(f(o,m),f(i,m),O(e,ct,"true"),Pn(this),this.open=!n,ht(e),Dn(this),w(i,Cn))}}hide(){const{element:e,open:n,menu:o,parentElement:i}=this;n&&([vs,Sn].forEach(c=>{c.relatedTarget=e}),w(i,vs),vs.defaultPrevented||(b(o,m),b(i,m),O(e,ct,"false"),this.open=!n,Dn(this),w(i,Sn)))}dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}d(Jt,"selector",En),d(Jt,"init",Ni),d(Jt,"getInstance",Gt);const U="modal",bs="Modal",ws="Offcanvas",ji="fixed-top",zi="fixed-bottom",An="sticky-top",Ln="position-sticky",In=t=>[...gt(ji,t),...gt(zi,t),...gt(An,t),...gt(Ln,t),...gt("is-fixed",t)],Vi=t=>{const s=wt(t);L(s,{paddingRight:"",overflow:""});const e=In(s);e.length&&e.forEach(n=>{L(n,{paddingRight:"",marginRight:""})})},kn=t=>{const{clientWidth:s}=ft(t),{innerWidth:e}=Xt(t);return Math.abs(e-s)},Nn=(t,s)=>{const e=wt(t),n=parseInt(z(e,"paddingRight"),10),i=z(e,"overflow")==="hidden"&&n?0:kn(t),c=In(e);s&&(L(e,{overflow:"hidden",paddingRight:`${n+i}px`}),c.length&&c.forEach(a=>{const l=z(a,"paddingRight");if(a.style.paddingRight=`${parseInt(l,10)+i}px`,[An,Ln].some(r=>h(a,r))){const r=z(a,"marginRight");a.style.marginRight=`${parseInt(r,10)-i}px`}}))},Z="offcanvas",yt=vt({tagName:"div",className:"popup-container"}),On=(t,s)=>{const e=A(s)&&s.nodeName==="BODY",n=A(s)&&!e?s:yt,o=e?s:wt(t);A(t)&&(n===yt&&o.append(yt),n.append(t))},Mn=(t,s)=>{const e=A(s)&&s.nodeName==="BODY",n=A(s)&&!e?s:yt;A(t)&&(t.remove(),n===yt&&!yt.children.length&&yt.remove())},Es=(t,s)=>{const e=A(s)&&s.nodeName!=="BODY"?s:yt;return A(t)&&e.contains(t)},_n="backdrop",Bn=`${U}-${_n}`,Rn=`${Z}-${_n}`,Wn=`.${U}.${m}`,$s=`.${Z}.${m}`,I=vt("div"),Mt=t=>D(`${Wn},${$s}`,E(t)),Ts=t=>{const s=t?Bn:Rn;[Bn,Rn].forEach(e=>{b(I,e)}),f(I,s)},Fn=(t,s,e)=>{Ts(e),On(I,wt(t)),s&&f(I,W)},jn=()=>{h(I,m)||(f(I,m),It(I))},Fe=()=>{b(I,m)},zn=t=>{Mt(t)||(b(I,W),Mn(I,wt(t)),Vi(t))},Vn=t=>T(t)&&z(t,"visibility")!=="hidden"&&t.offsetParent!==null,Ki=`.${U}`,Kn=`[${rt}="${U}"]`,Xi=`[${Me}="${U}"]`,Xn=`${U}-static`,Yi={backdrop:!0,keyboard:!0},ue=t=>F(t,bs),Ui=t=>new te(t),je=$(`show.bs.${U}`),Yn=$(`shown.bs.${U}`),ys=$(`hide.bs.${U}`),Un=$(`hidden.bs.${U}`),qn=t=>{const{element:s}=t,e=kn(s),{clientHeight:n,scrollHeight:o}=ft(s),{clientHeight:i,scrollHeight:c}=s,a=i!==c;if(!a&&e){const l=Et(s)?"paddingLeft":"paddingRight",r={};r[l]=`${e}px`,L(s,r)}Nn(s,a||n!==o)},Qn=(t,s)=>{const e=s?_:B,{element:n,update:o}=t;e(n,N,Zi),e(Xt(n),xe,o,tt),e(E(n),Pe,Qi)},Zn=t=>{const{triggers:s,element:e,relatedTarget:n}=t;zn(e),L(e,{paddingRight:"",display:""}),Qn(t);const o=je.relatedTarget||s.find(Vn);o&&ht(o),Un.relatedTarget=n,w(e,Un)},Gn=t=>{const{element:s,relatedTarget:e}=t;ht(s),Qn(t,!0),Yn.relatedTarget=e,w(s,Yn)},Jn=t=>{const{element:s,hasFade:e}=t;L(s,{display:"block"}),qn(t),Mt(s)||L(wt(s),{overflow:"hidden"}),f(s,m),At(s,Se),O(s,He,"true"),e?P(s,()=>Gn(t)):Gn(t)},to=t=>{const{element:s,options:e,hasFade:n}=t;e.backdrop&&n&&h(I,m)&&!Mt(s)?(Fe(),P(I,()=>Zn(t))):Zn(t)},qi=t=>{const{target:s}=t,e=s&&M(s,Kn),n=e&&V(e),o=n&&ue(n);o&&(e&&e.tagName==="A"&&t.preventDefault(),o.relatedTarget=e,o.toggle())},Qi=({code:t,target:s})=>{const e=D(Wn,E(s)),n=e&&ue(e);if(n){const{options:o}=n;o.keyboard&&t===es&&h(e,m)&&(n.relatedTarget=null,n.hide())}},Zi=t=>{var n,o;const{currentTarget:s}=t,e=s?ue(s):null;if(e&&s&&!u.get(s)){const{options:i,isStatic:c,modalDialog:a}=e,{backdrop:l}=i,{target:r}=t,g=(o=(n=E(s))==null?void 0:n.getSelection())==null?void 0:o.toString().length,p=a.contains(r),v=r&&M(r,Xi);c&&!p?u.set(s,()=>{f(s,Xn),P(a,()=>Gi(e))},17):(v||!g&&!c&&!p&&l)&&(e.relatedTarget=v||null,e.hide(),t.preventDefault())}},Gi=t=>{const{element:s,modalDialog:e}=t,n=(zt(e)||0)+17;b(s,Xn),u.set(s,()=>u.clear(s),n)};class te extends st{constructor(e,n){super(e,n);d(this,"update",()=>{h(this.element,m)&&qn(this)});d(this,"_toggleEventListeners",e=>{const n=e?_:B,{triggers:o}=this;o.length&&o.forEach(i=>n(i,N,qi))});const{element:o}=this,i=D(`.${U}-dialog`,o);i&&(this.modalDialog=i,this.triggers=[...et(Kn,E(o))].filter(c=>V(c)===o),this.isStatic=this.options.backdrop==="static",this.hasFade=h(o,W),this.relatedTarget=null,this._toggleEventListeners(!0))}get name(){return bs}get defaults(){return Yi}toggle(){h(this.element,m)?this.hide():this.show()}show(){const{element:e,options:n,hasFade:o,relatedTarget:i}=this,{backdrop:c}=n;let a=0;if(!h(e,m)&&(je.relatedTarget=i||void 0,w(e,je),!je.defaultPrevented)){const l=Mt(e);if(l&&l!==e){const r=ue(l)||F(l,ws);r&&r.hide()}c?(Es(I)?Ts(!0):Fn(e,o,!0),a=zt(I),jn(),setTimeout(()=>Jn(this),a)):(Jn(this),l&&h(I,m)&&Fe())}}hide(){const{element:e,hasFade:n,relatedTarget:o}=this;h(e,m)&&(ys.relatedTarget=o||void 0,w(e,ys),ys.defaultPrevented||(b(e,m),O(e,Se,"true"),At(e,He),n?P(e,()=>to(this)):to(this)))}dispose(){const e={...this},{element:n,modalDialog:o}=e,i=()=>super.dispose();this._toggleEventListeners(),this.hide(),h(n,"fade")?P(o,i):i()}}d(te,"selector",Ki),d(te,"init",Ui),d(te,"getInstance",ue);const Ji=`.${Z}`,Cs=`[${rt}="${Z}"]`,tc=`[${Me}="${Z}"]`,ze=`${Z}-toggling`,ec={backdrop:!0,keyboard:!0,scroll:!1},me=t=>F(t,ws),sc=t=>new ee(t),Ve=$(`show.bs.${Z}`),eo=$(`shown.bs.${Z}`),Ss=$(`hide.bs.${Z}`),so=$(`hidden.bs.${Z}`),nc=t=>{const{element:s}=t,{clientHeight:e,scrollHeight:n}=ft(s);Nn(s,e!==n)},no=(t,s)=>{const e=s?_:B,n=E(t.element);e(n,Pe,ac),e(n,N,cc)},oo=t=>{const{element:s,options:e}=t;e.scroll||(nc(t),L(wt(s),{overflow:"hidden"})),f(s,ze),f(s,m),L(s,{visibility:"visible"}),P(s,()=>rc(t))},oc=t=>{const{element:s,options:e}=t,n=Mt(s);s.blur(),!n&&e.backdrop&&h(I,m)&&Fe(),P(s,()=>lc(t))},ic=t=>{const s=M(t.target,Cs),e=s&&V(s),n=e&&me(e);n&&(n.relatedTarget=s,n.toggle(),s&&s.tagName==="A"&&t.preventDefault())},cc=t=>{const{target:s}=t,e=D($s,E(s)),n=D(tc,e),o=e&&me(e);if(o){const{options:i,triggers:c}=o,{backdrop:a}=i,l=M(s,Cs),r=E(e).getSelection();(!I.contains(s)||a!=="static")&&(!(r&&r.toString().length)&&(!e.contains(s)&&a&&(!l||c.includes(s))||n&&n.contains(s))&&(o.relatedTarget=n&&n.contains(s)?n:null,o.hide()),l&&l.tagName==="A"&&t.preventDefault())}},ac=({code:t,target:s})=>{const e=D($s,E(s)),n=e&&me(e);n&&n.options.keyboard&&t===es&&(n.relatedTarget=null,n.hide())},rc=t=>{const{element:s}=t;b(s,ze),At(s,Se),O(s,He,"true"),O(s,"role","dialog"),w(s,eo),no(t,!0),ht(s)},lc=t=>{const{element:s,triggers:e}=t;O(s,Se,"true"),At(s,He),At(s,"role"),L(s,{visibility:""});const n=Ve.relatedTarget||e.find(Vn);n&&ht(n),zn(s),w(s,so),b(s,ze),Mt(s)||no(t)};class ee extends st{constructor(e,n){super(e,n);d(this,"_toggleEventListeners",e=>{const n=e?_:B;this.triggers.forEach(o=>n(o,N,ic))});const{element:o}=this;this.triggers=[...et(Cs,E(o))].filter(i=>V(i)===o),this.relatedTarget=null,this._toggleEventListeners(!0)}get name(){return ws}get defaults(){return ec}toggle(){h(this.element,m)?this.hide():this.show()}show(){const{element:e,options:n,relatedTarget:o}=this;let i=0;if(!h(e,m)&&(Ve.relatedTarget=o||void 0,eo.relatedTarget=o||void 0,w(e,Ve),!Ve.defaultPrevented)){const c=Mt(e);if(c&&c!==e){const a=me(c)||F(c,bs);a&&a.hide()}n.backdrop?(Es(I)?Ts():Fn(e,!0),i=zt(I),jn(),setTimeout(()=>oo(this),i)):(oo(this),c&&h(I,m)&&Fe())}}hide(){const{element:e,relatedTarget:n}=this;h(e,m)&&(Ss.relatedTarget=n||void 0,so.relatedTarget=n||void 0,w(e,Ss),Ss.defaultPrevented||(f(e,ze),b(e,m),oc(this)))}dispose(){const e={...this},{element:n,options:o}=e,i=o.backdrop?zt(I):0,c=()=>setTimeout(()=>super.dispose(),i+17);this._toggleEventListeners(),this.hide(),h(n,m)?P(n,c):c()}}d(ee,"selector",Ji),d(ee,"init",sc),d(ee,"getInstance",me);const _t="popover",Ke="Popover",ut="tooltip",io=t=>{const s=t===ut,e=s?`${t}-inner`:`${t}-body`,n=s?"":`<h3 class="${t}-header"></h3>`,o=`<div class="${t}-arrow"></div>`,i=`<div class="${e}"></div>`;return`<div class="${t}" role="${ut}">${n+o+i}</div>`},co={top:"top",bottom:"bottom",left:"start",right:"end"},Hs=t=>{const s=/\b(top|bottom|start|end)+/,{element:e,tooltip:n,container:o,options:i,arrow:c}=t;if(n){const a={...co},l=Et(e);L(n,{top:"",left:"",right:"",bottom:""});const r=t.name===Ke,{offsetWidth:g,offsetHeight:p}=n,{clientWidth:v,clientHeight:k,offsetWidth:J}=ft(e);let{placement:y}=i;const{clientWidth:X,offsetWidth:q}=o,mt=z(o,"position")==="fixed",S=Math.abs(mt?X-q:v-J),ot=l&&mt?S:0,lt=v-(l?0:S)-1,{width:j,height:Y,left:x,right:ae,top:Ht}=fe(e,!0),{x:R,y:Pt}={x,y:Ht};L(c,{top:"",left:"",right:"",bottom:""});let Wt=0,Ee="",Dt=0,ks="",re="",Xe="",Ns="";const Ft=c.offsetWidth||0,xt=c.offsetHeight||0,Os=Ft/2;let $e=Ht-p-xt<0,Te=Ht+p+Y+xt>=k,ye=x-g-Ft<ot,Ce=x+g+j+Ft>=lt;const Ye=["left","right"],Ms=["top","bottom"];$e=Ye.includes(y)?Ht+Y/2-p/2-xt<0:$e,Te=Ye.includes(y)?Ht+p/2+Y/2+xt>=k:Te,ye=Ms.includes(y)?x+j/2-g/2<ot:ye,Ce=Ms.includes(y)?x+g/2+j/2>=lt:Ce,y=Ye.includes(y)&&ye&&Ce?"top":y,y=y==="top"&&$e?"bottom":y,y=y==="bottom"&&Te?"top":y,y=y==="left"&&ye?"right":y,y=y==="right"&&Ce?"left":y,n.className.includes(y)||(n.className=n.className.replace(s,a[y])),Ye.includes(y)?(y==="left"?Dt=R-g-(r?Ft:0):Dt=R+j+(r?Ft:0),$e&&Te?(Wt=0,Ee=0,re=Ht+Y/2-xt/2):$e?(Wt=Pt,Ee="",re=Y/2-Ft):Te?(Wt=Pt-p+Y,Ee="",re=p-Y/2-Ft):(Wt=Pt-p/2+Y/2,re=p/2-xt/2)):Ms.includes(y)&&(y==="top"?Wt=Pt-p-(r?xt:0):Wt=Pt+Y+(r?xt:0),ye?(Dt=0,Xe=R+j/2-Os):Ce?(Dt="auto",ks=0,Ns=j/2+lt-ae-Os):(Dt=R-g/2+j/2,Xe=g/2-Os)),L(n,{top:`${Wt}px`,bottom:Ee===""?"":`${Ee}px`,left:Dt==="auto"?Dt:`${Dt}px`,right:ks!==""?`${ks}px`:""}),T(c)&&(re!==""&&(c.style.top=`${re}px`),Xe!==""?c.style.left=`${Xe}px`:Ns!==""&&(c.style.right=`${Ns}px`));const zc=$(`updated.bs.${Vt(t.name)}`);w(e,zc)}},Ps={template:io(ut),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},ao="data-original-title",Bt="Tooltip",Ct=(t,s,e)=>{if(he(s)&&s.length){let n=s.trim();oi(e)&&(n=e(n));const i=new DOMParser().parseFromString(n,"text/html");t.append(...i.body.childNodes)}else T(s)?t.append(s):(ii(s)||ni(s)&&s.every(A))&&t.append(...s)},dc=t=>{const s=t.name===Bt,{id:e,element:n,options:o}=t,{title:i,placement:c,template:a,animation:l,customClass:r,sanitizeFn:g,dismissible:p,content:v,btnClose:k}=o,J=s?ut:_t,y={...co};let X=[],q=[];Et(n)&&(y.left="end",y.right="start");const ce=`bs-${J}-${y[c]}`;let mt;if(T(a))mt=a;else{const ot=vt("div");Ct(ot,a,g),mt=ot.firstChild}t.tooltip=T(mt)?mt.cloneNode(!0):void 0;const{tooltip:S}=t;if(S){O(S,"id",e),O(S,"role",ut);const ot=s?`${ut}-inner`:`${_t}-body`,lt=s?null:D(`.${_t}-header`,S),j=D(`.${ot}`,S);t.arrow=D(`.${J}-arrow`,S);const{arrow:Y}=t;if(T(i))X=[i.cloneNode(!0)];else{const x=vt("div");Ct(x,i,g),X=[...x.childNodes]}if(T(v))q=[v.cloneNode(!0)];else{const x=vt("div");Ct(x,v,g),q=[...x.childNodes]}if(p)if(i)if(T(k))X=[...X,k.cloneNode(!0)];else{const x=vt("div");Ct(x,k,g),X=[...X,x.firstChild]}else if(lt&&lt.remove(),T(k))q=[...q,k.cloneNode(!0)];else{const x=vt("div");Ct(x,k,g),q=[...q,x.firstChild]}s?i&&j&&Ct(j,i,g):(i&&lt&&Ct(lt,X,g),v&&j&&Ct(j,q,g),t.btn=D(".btn-close",S)||void 0),f(S,"position-fixed"),f(Y,"position-absolute"),h(S,J)||f(S,J),l&&!h(S,W)&&f(S,W),r&&!h(S,r)&&f(S,r),h(S,ce)||f(S,ce)}},hc=t=>{const s=["HTML","BODY"],e=[];let{parentNode:n}=t;for(;n&&!s.includes(n.nodeName);)n=si(n),Us(n)||ci(n)||e.push(n);return e.find((o,i)=>z(o,"position")!=="relative"&&e.slice(i+1).every(c=>z(c,"position")==="static")?o:null)||E(t).body},fc=`[${rt}="${ut}"],[data-tip="${ut}"]`,ro="title";let lo=t=>F(t,Bt);const gc=t=>new St(t),pc=t=>{const{element:s,tooltip:e,container:n,offsetParent:o}=t;At(s,it),Mn(e,n===o?n:o)},ve=t=>{const{tooltip:s,container:e,offsetParent:n}=t;return s&&Es(s,e===n?e:n)},uc=(t,s)=>{const{element:e}=t;t._toggleEventListeners(),Ne(e,ao)&&t.name===Bt&&uo(t),s&&s()},ho=(t,s)=>{const e=s?_:B,{element:n}=t;e(E(n),Ge,t.handleTouch,tt),[Ae,xe].forEach(o=>{e(Xt(n),o,t.update,tt)})},fo=t=>{const{element:s}=t,e=$(`shown.bs.${Vt(t.name)}`);ho(t,!0),w(s,e),u.clear(s,"in")},go=t=>{const{element:s}=t,e=$(`hidden.bs.${Vt(t.name)}`);ho(t),pc(t),w(s,e),u.clear(s,"out")},po=(t,s)=>{const e=s?_:B,{element:n,container:o,offsetParent:i}=t,{offsetHeight:c,scrollHeight:a}=o,l=M(n,`.${U}`),r=M(n,`.${Z}`),g=Xt(n),v=o===i&&c!==a?o:g;e(v,xe,t.update,tt),e(v,Ae,t.update,tt),l&&e(l,`hide.bs.${U}`,t.handleHide),r&&e(r,`hide.bs.${Z}`,t.handleHide)},uo=(t,s)=>{const e=[ao,ro],{element:n}=t;O(n,e[s?0:1],s||at(n,e[0])||""),At(n,e[s?1:0])};class St extends st{constructor(e,n){super(e,n);d(this,"handleFocus",()=>ht(this.element));d(this,"handleShow",()=>this.show());d(this,"handleHide",()=>this.hide());d(this,"update",()=>{Hs(this)});d(this,"toggle",()=>{const{tooltip:e}=this;e&&!ve(this)?this.show():this.hide()});d(this,"handleTouch",({target:e})=>{const{tooltip:n,element:o}=this;n&&n.contains(e)||e===o||e&&o.contains(e)||this.hide()});d(this,"_toggleEventListeners",e=>{const n=e?_:B,{element:o,options:i,btn:c}=this,{trigger:a}=i,r=!!(this.name!==Bt&&i.dismissible);a.includes("manual")||(this.enabled=!!e,a.split(" ").forEach(p=>{p===Wo?(n(o,Rs,this.handleShow),n(o,De,this.handleShow),r||(n(o,Ze,this.handleHide),n(E(o),Ge,this.handleTouch,tt))):p===N?n(o,p,r?this.handleShow:this.toggle):p===qe&&(n(o,Qe,this.handleShow),r||n(o,Bs,this.handleHide),qo&&n(o,N,this.handleFocus)),r&&c&&n(c,N,this.handleHide)}))});const{element:o}=this,i=this.name===Bt,c=i?ut:_t,a=i?Bt:Ke;lo=r=>F(r,a),this.enabled=!0,this.id=`${c}-${Zs(o,c)}`;const{options:l}=this;!l.title&&i||!i&&!l.content||(dt(Ps,{titleAttr:""}),Ne(o,ro)&&i&&typeof l.title=="string"&&uo(this,l.title),this.container=hc(o),this.offsetParent=["sticky","fixed"].some(r=>z(this.container,"position")===r)?this.container:E(this.element).body,dc(this),this._toggleEventListeners(!0))}get name(){return Bt}get defaults(){return Ps}show(){const{options:e,tooltip:n,element:o,container:i,offsetParent:c,id:a}=this,{animation:l}=e,r=u.get(o,"out"),g=i===c?i:c;u.clear(o,"out"),n&&!r&&!ve(this)&&u.set(o,()=>{const p=$(`show.bs.${Vt(this.name)}`);w(o,p),p.defaultPrevented||(On(n,g),O(o,it,`#${a}`),this.update(),po(this,!0),h(n,m)||f(n,m),l?P(n,()=>fo(this)):fo(this))},17,"in")}hide(){const{options:e,tooltip:n,element:o}=this,{animation:i,delay:c}=e;u.clear(o,"in"),n&&ve(this)&&u.set(o,()=>{const a=$(`hide.bs.${Vt(this.name)}`);w(o,a),a.defaultPrevented||(this.update(),b(n,m),po(this),i?P(n,()=>go(this)):go(this))},c+17,"out")}enable(){const{enabled:e}=this;e||(this._toggleEventListeners(!0),this.enabled=!e)}disable(){const{tooltip:e,options:n,enabled:o}=this,{animation:i}=n;o&&(e&&ve(this)&&i?(this.hide(),P(e,()=>this._toggleEventListeners())):this._toggleEventListeners(),this.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const{tooltip:e,options:n}=this,o={...this,name:this.name},i=()=>setTimeout(()=>uc(o,()=>super.dispose()),17);n.animation&&ve(o)?(this.options.delay=0,this.hide(),P(e,i)):i()}}d(St,"selector",fc),d(St,"init",gc),d(St,"getInstance",lo),d(St,"styleTip",Hs);const mc=`[${rt}="${_t}"],[data-tip="${_t}"]`,vc=dt({},Ps,{template:io(_t),content:"",dismissible:!1,btnClose:'<button class="btn-close" aria-label="Close"></button>'}),bc=t=>F(t,Ke),wc=t=>new Rt(t);class Rt extends St{constructor(e,n){super(e,n);d(this,"show",()=>{super.show();const{options:e,btn:n}=this;e.dismissible&&n&&setTimeout(()=>ht(n),17)})}get name(){return Ke}get defaults(){return vc}}d(Rt,"selector",mc),d(Rt,"init",wc),d(Rt,"getInstance",bc),d(Rt,"styleTip",Hs);const Ec="scrollspy",mo="ScrollSpy",$c='[data-bs-spy="scroll"]',Tc={offset:10,target:null},yc=t=>F(t,mo),Cc=t=>new se(t),vo=$(`activate.bs.${Ec}`),Sc=t=>{const{target:s,scrollTarget:e,options:n,itemsLength:o,scrollHeight:i,element:c}=t,{offset:a}=n,l=ns(e),r=s&&is("A",s),g=e?bo(e):i;if(t.scrollTop=l?e.scrollY:e.scrollTop,r&&(g!==i||o!==r.length)){let p,v,k;t.items=[],t.offsets=[],t.scrollHeight=g,t.maxScroll=t.scrollHeight-Hc(t),[...r].forEach(J=>{p=at(J,"href"),v=p&&p.charAt(0)==="#"&&p.slice(-1)!=="#"&&D(p,E(c)),v&&(t.items.push(J),k=fe(v),t.offsets.push((l?k.top+t.scrollTop:v.offsetTop)-a))}),t.itemsLength=t.items.length}},bo=t=>T(t)?t.scrollHeight:ft(t).scrollHeight,Hc=({element:t,scrollTarget:s})=>ns(s)?s.innerHeight:fe(t).height,wo=t=>{[...is("A",t)].forEach(s=>{h(s,C)&&b(s,C)})},Eo=(t,s)=>{const{target:e,element:n}=t;T(e)&&wo(e),t.activeItem=s,f(s,C);const o=[];let i=s;for(;i!==wt(n);)i=i.parentElement,(h(i,"nav")||h(i,"dropdown-menu"))&&o.push(i);o.forEach(c=>{const a=c.previousElementSibling;a&&!h(a,C)&&f(a,C)}),vo.relatedTarget=s,w(n,vo)};class se extends st{constructor(e,n){super(e,n);d(this,"refresh",()=>{const{target:e}=this;if(T(e)&&e.offsetHeight>0){Sc(this);const{scrollTop:n,maxScroll:o,itemsLength:i,items:c,activeItem:a}=this;if(n>=o){const r=c[i-1];a!==r&&Eo(this,r);return}const{offsets:l}=this;if(a&&n<l[0]&&l[0]>0){this.activeItem=null,e&&wo(e);return}c.forEach((r,g)=>{a!==r&&n>=l[g]&&(typeof l[g+1]>"u"||n<l[g+1])&&Eo(this,r)})}});d(this,"_toggleEventListeners",e=>{(e?_:B)(this.scrollTarget,Ae,this.refresh,tt)});const{element:o,options:i}=this;this.target=D(i.target,E(o)),this.target&&(this.scrollTarget=o.clientHeight<o.scrollHeight?o:Xt(o),this.scrollHeight=bo(this.scrollTarget),this._toggleEventListeners(!0),this.refresh())}get name(){return mo}get defaults(){return Tc}dispose(){this._toggleEventListeners(),super.dispose()}}d(se,"selector",$c),d(se,"init",Cc),d(se,"getInstance",yc);const be="tab",$o="Tab",To=`[${rt}="${be}"]`,yo=t=>F(t,$o),Pc=t=>new ne(t),Ds=$(`show.bs.${be}`),Co=$(`shown.bs.${be}`),xs=$(`hide.bs.${be}`),So=$(`hidden.bs.${be}`),we=new Map,Ho=t=>{const{tabContent:s,nav:e}=t;s&&h(s,Nt)&&(s.style.height="",b(s,Nt)),e&&u.clear(e)},Po=t=>{const{element:s,tabContent:e,content:n,nav:o}=t,{tab:i}=T(o)&&we.get(o)||{tab:null};if(e&&n&&h(n,W)){const{currentHeight:c,nextHeight:a}=we.get(s)||{currentHeight:0,nextHeight:0};c===a?Ho(t):setTimeout(()=>{e.style.height=`${a}px`,It(e),P(e,()=>Ho(t))},50)}else o&&u.clear(o);Co.relatedTarget=i,w(s,Co)},Do=t=>{const{element:s,content:e,tabContent:n,nav:o}=t,{tab:i,content:c}=o&&we.get(o)||{tab:null,content:null};let a=0;if(n&&e&&h(e,W)&&([c,e].forEach(l=>{T(l)&&f(l,"overflow-hidden")}),a=T(c)?c.scrollHeight:0),Ds.relatedTarget=i,So.relatedTarget=s,w(s,Ds),!Ds.defaultPrevented){if(e&&f(e,C),c&&b(c,C),n&&e&&h(e,W)){const l=e.scrollHeight;we.set(s,{currentHeight:a,nextHeight:l,tab:null,content:null}),f(n,Nt),n.style.height=`${a}px`,It(n),[c,e].forEach(r=>{r&&b(r,"overflow-hidden")})}e&&e&&h(e,W)?setTimeout(()=>{f(e,m),P(e,()=>{Po(t)})},1):(e&&f(e,m),Po(t)),i&&w(i,So)}},xo=t=>{const{nav:s}=t;if(!T(s))return{tab:null,content:null};const e=gt(C,s);let n=null;e.length===1&&!Ot.some(i=>h(e[0].parentElement,i))?[n]=e:e.length>1&&(n=e[e.length-1]);const o=T(n)?V(n):null;return{tab:n,content:o}},Ao=t=>{if(!T(t))return null;const s=M(t,`.${Ot.join(",.")}`);return s?D(`.${Ot[0]}-toggle`,s):null},Dc=t=>{const s=yo(t.target);s&&(t.preventDefault(),s.show())};class ne extends st{constructor(e){super(e);d(this,"_toggleEventListeners",e=>{(e?_:B)(this.element,N,Dc)});const{element:n}=this,o=V(n);if(o){const i=M(n,".nav"),c=M(o,".tab-content");this.nav=i,this.content=o,this.tabContent=c,this.dropdown=Ao(n);const{tab:a}=xo(this);if(i&&!a){const l=D(To,i),r=l&&V(l);r&&(f(l,C),f(r,m),f(r,C),O(n,Ue,"true"))}this._toggleEventListeners(!0)}}get name(){return $o}show(){const{element:e,content:n,nav:o,dropdown:i}=this;if(!(o&&u.get(o))&&!h(e,C)){const{tab:c,content:a}=xo(this);if(o&&we.set(o,{tab:c,content:a,currentHeight:0,nextHeight:0}),xs.relatedTarget=e,T(c)&&(w(c,xs),!xs.defaultPrevented)){f(e,C),O(e,Ue,"true");const l=T(c)&&Ao(c);if(l&&h(l,C)&&b(l,C),o){const r=()=>{c&&(b(c,C),O(c,Ue,"false")),i&&!h(i,C)&&f(i,C)};a&&(h(a,W)||n&&h(n,W))?u.set(o,r,1):r()}a&&(b(a,m),h(a,W)?P(a,()=>Do(this)):Do(this))}}}dispose(){this._toggleEventListeners(),super.dispose()}}d(ne,"selector",To),d(ne,"init",Pc),d(ne,"getInstance",yo);const G="toast",Lo="Toast",xc=`.${G}`,Ac=`[${Me}="${G}"]`,Io=`[${rt}="${G}"]`,oe="showing",ko="hide",Lc={animation:!0,autohide:!0,delay:5e3},As=t=>F(t,Lo),Ic=t=>new ie(t),No=$(`show.bs.${G}`),kc=$(`shown.bs.${G}`),Oo=$(`hide.bs.${G}`),Nc=$(`hidden.bs.${G}`),Mo=t=>{const{element:s,options:e}=t;b(s,oe),u.clear(s,oe),w(s,kc),e.autohide&&u.set(s,()=>t.hide(),e.delay,G)},_o=t=>{const{element:s}=t;b(s,oe),b(s,m),f(s,ko),u.clear(s,G),w(s,Nc)},Oc=t=>{const{element:s,options:e}=t;f(s,oe),e.animation?(It(s),P(s,()=>_o(t))):_o(t)},Mc=t=>{const{element:s,options:e}=t;u.set(s,()=>{b(s,ko),It(s),f(s,m),f(s,oe),e.animation?P(s,()=>Mo(t)):Mo(t)},17,oe)},_c=t=>{u.clear(t.element,G),t._toggleEventListeners()},Bc=t=>{const{target:s}=t,e=s&&M(s,Io),n=e&&V(e),o=n&&As(n);o&&(e&&e.tagName==="A"&&t.preventDefault(),o.relatedTarget=e,o.show())},Rc=t=>{const s=t.target,e=As(s),{type:n,relatedTarget:o}=t;e&&s!==o&&!s.contains(o)&&([De,Qe].includes(n)?u.clear(s,G):u.set(s,()=>e.hide(),e.options.delay,G))};class ie extends st{constructor(e,n){super(e,n);d(this,"show",()=>{const{element:e,isShown:n}=this;e&&!n&&(w(e,No),No.defaultPrevented||Mc(this))});d(this,"hide",()=>{const{element:e,isShown:n}=this;e&&n&&(w(e,Oo),Oo.defaultPrevented||Oc(this))});d(this,"_toggleEventListeners",e=>{const n=e?_:B,{element:o,triggers:i,dismiss:c,options:a,hide:l}=this;c&&n(c,N,l),a.autohide&&[Qe,Bs,De,Ze].forEach(r=>n(o,r,Rc)),i.length&&i.forEach(r=>n(r,N,Bc))});const{element:o,options:i}=this;i.animation&&!h(o,W)?f(o,W):!i.animation&&h(o,W)&&b(o,W),this.dismiss=D(Ac,o),this.triggers=[...et(Io,E(o))].filter(c=>V(c)===o),this._toggleEventListeners(!0)}get name(){return Lo}get defaults(){return Lc}get isShown(){return h(this.element,m)}dispose(){const{element:e,isShown:n}=this;n&&b(e,m),_c(this),super.dispose()}}d(ie,"selector",xc),d(ie,"init",Ic),d(ie,"getInstance",As);const Ls=new Map;[Ut,qt,Qt,Zt,Jt,te,ee,Rt,se,ne,ie,St].forEach(t=>Ls.set(t.prototype.name,t));const Wc=(t,s)=>{[...s].forEach(e=>t(e))},Fc=(t,s)=>{const e=Lt.getAllFor(t);e&&[...e].forEach(([n,o])=>{s.contains(n)&&o.dispose()})},Is=t=>{const s=t&&t.nodeName?t:document,e=[...is("*",s)];Ls.forEach(n=>{const{init:o,selector:i}=n;Wc(o,e.filter(c=>Js(c,i)))})},jc=t=>{const s=t&&t.nodeName?t:document;Ls.forEach(e=>{Fc(e.prototype.name,s)})};return document.body?Is():_(document,"DOMContentLoaded",()=>Is(),{once:!0}),H.Alert=Ut,H.Button=qt,H.Carousel=Qt,H.Collapse=Zt,H.Dropdown=Jt,H.Modal=te,H.Offcanvas=ee,H.Popover=Rt,H.ScrollSpy=se,H.Tab=ne,H.Toast=ie,H.Tooltip=St,H.initCallback=Is,H.removeDataAPI=jc,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),H}({});
2
- //# sourceMappingURL=bootstrap-native.js.map
1
+ /*! Bootstrap Native UMD v5.1.10 | thednp © 2026 | MIT-License */
2
+ "use strict";
3
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.BSN={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});let t=`aria-describedby`,n=`aria-expanded`,r=`aria-hidden`,i=`aria-modal`,a=`aria-pressed`,o=`aria-selected`,s=`focusin`,c=`focusout`,l=`keydown`,u=`click`,d=`mouseenter`,f=`mouseleave`,p=`touchstart`;`onmouseleave`in document;let m=`transitionend`,h=`transitionProperty`;navigator.userAgentData;let{userAgent:g}=navigator,ee=()=>{let e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},te=()=>{},ne=(e,t,n,r)=>{let i=r||!1;e.addEventListener(t,n,i)},_=(e,t,n,r)=>{let i=r||!1;e.removeEventListener(t,n,i)},v=(e,t)=>e.getAttribute(t),y=(e,t)=>e.hasAttribute(t),b=(e,t,n)=>e.setAttribute(t,n),x=(e,t)=>e.removeAttribute(t),S=(e,...t)=>{e.classList.add(...t)},C=(e,...t)=>{e.classList.remove(...t)},w=(e,t)=>e.classList.contains(t),{body:re}=document,{documentElement:ie}=document,{head:ae}=document,oe=e=>typeof e==`object`&&!!e||!1,T=e=>oe(e)&&typeof e.nodeType==`number`&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,E=e=>T(e)&&e.nodeType===1||!1,D=new Map,O={data:D,set:(e,t,n)=>{E(e)&&(D.has(t)||D.set(t,new Map),D.get(t).set(e,n))},getAllFor:e=>D.get(e)||null,get:(e,t)=>{if(!E(e)||!t)return null;let n=O.getAllFor(t);return e&&n&&n.get(e)||null},remove:(e,t)=>{let n=O.getAllFor(t);!n||!E(e)||(n.delete(e),n.size===0&&D.delete(t))}},k=(e,t)=>O.get(e,t),se=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>t===0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,``),A=e=>typeof e==`string`||!1,ce=e=>oe(e)&&e.constructor.name===`Window`||!1,le=e=>T(e)&&e.nodeType===9||!1,j=e=>le(e)?e:T(e)?e.ownerDocument:ce(e)?e.document:globalThis.document,M=(e,...t)=>Object.assign(e,...t),N=e=>{if(!e)return;if(A(e))return j().createElement(e);let{tagName:t}=e,n=N(t);if(!n)return;let r={...e};return delete r.tagName,M(n,r)},P=(e,t)=>e.dispatchEvent(t),F=(e,t,n)=>{let r=getComputedStyle(e,n),i=t.replace(`webkit`,`Webkit`).replace(/([A-Z])/g,`-$1`).toLowerCase();return r.getPropertyValue(i)},ue=e=>{let t=F(e,h),n=F(e,`transitionDelay`),r=n.includes(`ms`)?1:1e3,i=t&&t!==`none`?parseFloat(n)*r:0;return Number.isNaN(i)?0:i},de=e=>{let t=F(e,h),n=F(e,`transitionDuration`),r=n.includes(`ms`)?1:1e3,i=t&&t!==`none`?parseFloat(n)*r:0;return Number.isNaN(i)?0:i},I=(e,t)=>{let n=0,r=new Event(m),i=de(e),a=ue(e);if(i){let o=r=>{r.target===e&&(t.apply(e,[r]),e.removeEventListener(m,o),n=1)};e.addEventListener(m,o),setTimeout(()=>{n||P(e,r)},i+a+17)}else t.apply(e,[r])},fe=(e,t)=>e.focus(t),pe=e=>[`true`,!0].includes(e)?!0:[`false`,!1].includes(e)?!1:[`null`,``,null,void 0].includes(e)?null:e!==``&&!Number.isNaN(+e)?+e:e,me=e=>Object.entries(e),he=(e,t,n,r)=>{if(!E(e))return t;let i={...n},a={...e.dataset},o={...t},s={},c=`title`;return me(a).forEach(([e,t])=>{let n=r&&typeof e==`string`&&e.includes(r)?se(e.replace(r,``)):se(e);s[n]=pe(t)}),me(i).forEach(([e,t])=>{i[e]=pe(t)}),me(t).forEach(([t,n])=>{t in i?o[t]=i[t]:t in s?o[t]=s[t]:o[t]=t===c?v(e,c):n}),o},ge=e=>Object.keys(e),L=(e,t)=>{let n=new CustomEvent(e,{cancelable:!0,bubbles:!0});return oe(t)&&M(n,t),n},_e={passive:!0},ve=e=>e.offsetHeight,R=(e,t)=>{me(t).forEach(([t,n])=>{if(n&&A(t)&&t.includes(`--`))e.style.setProperty(t,n);else{let r={};r[t]=n,M(e.style,r)}})},ye=e=>oe(e)&&e.constructor.name===`Map`||!1,be=e=>typeof e==`number`||!1,xe=new Map,z={set:(e,t,n,r)=>{E(e)&&(r&&r.length?(xe.has(e)||xe.set(e,new Map),xe.get(e).set(r,setTimeout(t,n))):xe.set(e,setTimeout(t,n)))},get:(e,t)=>{if(!E(e))return null;let n=xe.get(e);return t&&n&&ye(n)?n.get(t)||null:be(n)?n:null},clear:(e,t)=>{if(!E(e))return;let n=xe.get(e);t&&t.length&&ye(n)?(clearTimeout(n.get(t)),n.delete(t),n.size===0&&xe.delete(e)):(clearTimeout(n),xe.delete(e))}},Se=e=>e.toLowerCase(),B=(e,t)=>(T(t)?t:j()).querySelectorAll(e),Ce=new Map;function we(e){let{shiftKey:t,code:n}=e,r=j(this),i=[...B(`a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]`,this)].filter(e=>!y(e,`disabled`)&&!v(e,`aria-hidden`));if(!i.length)return;let a=i[0],o=i[i.length-1];n===`Tab`&&(t&&r.activeElement===a?(o.focus(),e.preventDefault()):!t&&r.activeElement===o&&(a.focus(),e.preventDefault()))}let Te=e=>Ce.has(e)===!0,Ee=e=>{Te(e)||(ne(e,`keydown`,we),Ce.set(e,!0))},De=e=>{Te(e)&&(_(e,`keydown`,we),Ce.delete(e))},Oe=e=>{Te(e)?De(e):Ee(e)},V=e=>E(e)&&`offsetWidth`in e||!1,ke=(e,t)=>{let{width:n,height:r,top:i,right:a,bottom:o,left:s}=e.getBoundingClientRect(),c=1,l=1;if(t&&V(e)){let{offsetWidth:t,offsetHeight:i}=e;c=t>0?Math.round(n)/t:1,l=i>0?Math.round(r)/i:1}return{width:n/c,height:r/l,top:i/l,right:a/c,bottom:o/l,left:s/c,x:s/c,y:i/l}},Ae=e=>j(e).body,je=e=>j(e).documentElement,Me=e=>{let t=ce(e);return{x:t?e.scrollX:e.scrollLeft,y:t?e.scrollY:e.scrollTop}},Ne=e=>T(e)&&e.constructor.name===`ShadowRoot`||!1,Pe=e=>e.nodeName===`HTML`?e:E(e)&&e.assignedSlot||T(e)&&e.parentNode||Ne(e)&&e.host||je(e),Fe=e=>e?le(e)?e.defaultView:T(e)?e?.ownerDocument?.defaultView:e:window,Ie=e=>T(e)&&[`TABLE`,`TD`,`TH`].includes(e.nodeName)||!1,Le=(e,t)=>e.matches(t),Re=e=>{if(!V(e))return!1;let{width:t,height:n}=ke(e),{offsetWidth:r,offsetHeight:i}=e;return Math.round(t)!==r||Math.round(n)!==i},ze=(e,t,n)=>{let r=V(t),i=ke(e,r&&Re(t)),a={x:0,y:0};if(r){let e=ke(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}return{x:i.left+n.x-a.x,y:i.top+n.y-a.y,width:i.width,height:i.height}},Be=0,Ve=0,He=new Map,Ue=(e,t)=>{let n=t?Be:Ve;if(t){let r=Ue(e),i=He.get(r)||new Map;He.has(r)||He.set(r,i),ye(i)&&!i.has(t)?(i.set(t,n),Be+=1):n=i.get(t)}else{let t=e.id||e;He.has(t)?n=He.get(t):(He.set(t,n),Ve+=1)}return n},We=e=>Array.isArray(e)||!1,Ge=e=>{if(!T(e))return!1;let{top:t,bottom:n}=ke(e),{clientHeight:r}=je(e);return t<=r&&n>=0},Ke=e=>typeof e==`function`||!1,qe=e=>oe(e)&&e.constructor.name===`NodeList`||!1,Je=e=>je(e).dir===`rtl`,H=(e,t)=>!e||!t?null:e.closest(t)||H(e.getRootNode().host,t)||null,U=(e,t)=>E(e)?e:(E(t)?t:j()).querySelector(e),Ye=(e,t)=>(T(t)?t:j()).getElementsByTagName(e),Xe=(e,t)=>j(t).getElementById(e),Ze=(e,t)=>(t&&T(t)?t:j()).getElementsByClassName(e),Qe={},$e=e=>{let{type:t,currentTarget:n}=e;Qe[t].forEach((r,i)=>{n===i&&r.forEach((n,r)=>{r.apply(i,[e]),typeof n==`object`&&n.once&&G(i,t,r,n)})})},W=(e,t,n,r)=>{Qe[t]||(Qe[t]=new Map);let i=Qe[t];i.has(e)||i.set(e,new Map);let a=i.get(e),{size:o}=a;a.set(n,r),o||e.addEventListener(t,$e,r)},G=(e,t,n,r)=>{let i=Qe[t],a=i&&i.get(e),o=a&&a.get(n),s=o===void 0?r:o;a&&a.has(n)&&a.delete(n),i&&(!a||!a.size)&&i.delete(e),(!i||!i.size)&&delete Qe[t],(!a||!a.size)&&e.removeEventListener(t,$e,s)},et=`fade`,K=`show`,tt=`data-bs-dismiss`,nt=`alert`,rt=`Alert`,it=e=>w(e,`disabled`)||v(e,`disabled`)===`true`;var at=class{constructor(e,t){let n;try{if(E(e))n=e;else if(A(e)){if(n=U(e),!n)throw Error(`"${e}" is not a valid selector.`)}else throw Error(`your target is not an instance of HTMLElement.`)}catch(e){throw Error(`${this.name} Error: ${e.message}`)}let r=O.get(n,this.name);r&&r._toggleEventListeners(),this.element=n,this.options=this.defaults&&ge(this.defaults).length?he(n,this.defaults,t||{},`bs`):{},O.set(n,this.name,this)}get version(){return`5.1.10`}get name(){return`BaseComponent`}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){O.remove(this.element,this.name),ge(this).forEach(e=>{delete this[e]})}};let ot=`.${nt}`,st=`[${tt}="${nt}"]`,ct=e=>k(e,rt),lt=e=>new pt(e),ut=L(`close.bs.${nt}`),dt=L(`closed.bs.${nt}`),ft=e=>{let{element:t}=e;P(t,dt),e._toggleEventListeners(),e.dispose(),t.remove()};var pt=class extends at{static selector=ot;static init=lt;static getInstance=ct;dismiss;constructor(e){super(e),this.dismiss=U(st,this.element),this._toggleEventListeners(!0)}get name(){return rt}close=e=>{let{element:t,dismiss:n}=this;!t||!w(t,`show`)||e&&n&&it(n)||(P(t,ut),!ut.defaultPrevented&&(C(t,K),w(t,`fade`)?I(t,()=>ft(this)):ft(this)))};_toggleEventListeners=e=>{let t=e?W:G,{dismiss:n,close:r}=this;n&&t(n,u,r)};dispose(){this._toggleEventListeners(),super.dispose()}};let q=`active`,mt=`data-bs-toggle`,ht=`Button`,gt=`[${mt}="button"]`,_t=e=>k(e,ht),vt=e=>new yt(e);var yt=class extends at{static selector=gt;static init=vt;static getInstance=_t;constructor(e){super(e);let{element:t}=this;this.isActive=w(t,q),b(t,a,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return ht}toggle=e=>{e&&e.preventDefault();let{element:t,isActive:n}=this;it(t)||((n?C:S)(t,q),b(t,a,n?`false`:`true`),this.isActive=w(t,q))};_toggleEventListeners=e=>{(e?W:G)(this.element,u,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}};let bt=`data-bs-target`,xt=`carousel`,St=`Carousel`,J=e=>{let t=[bt,`data-bs-parent`,`data-bs-container`,`href`],n=j(e);return t.map(t=>{let r=v(e,t);return r?t===`data-bs-parent`?H(e,r):U(r,n):null}).filter(e=>e)[0]},Ct=`[data-bs-ride="${xt}"]`,wt=`${xt}-item`,Tt=`data-bs-slide-to`,Et=`data-bs-slide`,Dt=`paused`,Ot={pause:`hover`,keyboard:!1,touch:!0,interval:5e3},kt=e=>k(e,St),At=e=>new Yt(e),jt=0,Mt=0,Nt=0,Pt=L(`slide.bs.${xt}`),Ft=L(`slid.bs.${xt}`),It=e=>{let{index:t,direction:n,element:r,slides:i,options:a}=e;if(e.isAnimating){let o=Jt(e),s=n===`left`?`next`:`prev`,c=n===`left`?`start`:`end`;S(i[t],q),C(i[t],`${wt}-${s}`),C(i[t],`${wt}-${c}`),C(i[o],q),C(i[o],`${wt}-${c}`),P(r,Ft),z.clear(r,Et),e.cycle&&!j(r).hidden&&a.interval&&!e.isPaused&&e.cycle()}};function Lt(){let e=kt(this);e&&!e.isPaused&&!z.get(this,Dt)&&S(this,Dt)}function Rt(){let e=kt(this);e&&e.isPaused&&!z.get(this,Dt)&&e.cycle()}function zt(e){e.preventDefault();let t=H(this,Ct)||J(this),n=t&&kt(t);if(it(this)||!n||n.isAnimating)return;let r=Number(v(this,Tt)||0);this&&!w(this,`active`)&&!Number.isNaN(r)&&n.to(r)}function Bt(e){e.preventDefault();let t=H(this,Ct)||J(this),n=t&&kt(t);if(it(this)||!n||n.isAnimating)return;let r=v(this,Et);r===`next`?n.next():r===`prev`&&n.prev()}let Vt=({code:e,target:t})=>{let[n]=[...B(Ct,j(t))].filter(e=>Ge(e)),r=kt(n);if(!r||r.isAnimating||/textarea|input|select/i.test(t.nodeName))return;let i=Je(n);e===(i?`ArrowRight`:`ArrowLeft`)?r.prev():e===(i?`ArrowLeft`:`ArrowRight`)&&r.next()};function Ht(e){let{target:t}=e,n=kt(this);n&&n.isTouch&&!n.controls.includes(t)&&!n.controls.includes(t?.parentElement)&&(!n.indicator||!n.indicator.contains(t))&&e.preventDefault()}function Ut(e){let{target:t}=e,n=kt(this);if(!n||n.isAnimating||n.isTouch)return;let{controls:r,indicator:i}=n;![...r,i].every(e=>e&&(e===t||e.contains(t)))&&this.contains(t)&&(jt=e.pageX,n.isTouch=!0,qt(n,!0))}let Wt=e=>{Mt=e.pageX},Gt=e=>{let{target:t}=e,n=j(t),r=[...B(Ct,n)].map(e=>kt(e)).find(e=>e.isTouch);if(!r)return;let{element:i,index:a}=r,o=Je(i);Nt=e.pageX,r.isTouch=!1,qt(r),!n.getSelection()?.toString().length&&i.contains(t)&&Math.abs(jt-Nt)>120&&(Mt<jt?r.to(a+(o?-1:1)):Mt>jt&&r.to(a+(o?1:-1))),jt=0,Mt=0,Nt=0},Kt=(e,t)=>{let{indicators:n}=e;[...n].forEach(e=>C(e,q)),e.indicators[t]&&S(n[t],q)},qt=(e,t)=>{let{element:n}=e,r=t?W:G;r(j(n),`pointermove`,Wt,_e),r(j(n),`pointerup`,Gt,_e)},Jt=e=>{let{slides:t,element:n}=e,r=U(`.${wt}.${q}`,n);return r?[...t].indexOf(r):-1};var Yt=class extends at{static selector=Ct;static init=At;static getInstance=kt;constructor(e,t){super(e,t);let{element:n}=this;this.direction=Je(n)?`right`:`left`,this.isTouch=!1,this.slides=Ze(wt,n);let{slides:r}=this;if(r.length<2)return;let i=Jt(this),a=[...r].find(e=>Le(e,`.${wt}-next`));this.index=i;let o=j(n);this.controls=[...B(`[${Et}]`,n),...B(`[${Et}][${bt}="#${n.id}"]`,o)].filter((e,t,n)=>t===n.indexOf(e)),this.indicator=U(`.${xt}-indicators`,n),this.indicators=[...this.indicator?B(`[${Tt}]`,this.indicator):[],...B(`[${Tt}][${bt}="#${n.id}"]`,o)].filter((e,t,n)=>t===n.indexOf(e));let{options:s}=this;this.options.interval=s.interval===!0?Ot.interval:s.interval,a?this.index=[...r].indexOf(a):i<0&&(this.index=0,S(r[0],q),this.indicators.length&&Kt(this,0)),this.indicators.length&&Kt(this,this.index),this._toggleEventListeners(!0),s.interval&&this.cycle()}get name(){return St}get defaults(){return Ot}get isPaused(){return w(this.element,Dt)}get isAnimating(){return U(`.${wt}-next,.${wt}-prev`,this.element)!==null}cycle(){let{element:e,options:t,isPaused:n,index:r}=this;z.clear(e,xt),n&&(z.clear(e,Dt),C(e,Dt)),z.set(e,()=>{this.element&&!this.isPaused&&!this.isTouch&&Ge(e)&&this.to(r+1)},t.interval,xt)}pause(){let{element:e,options:t}=this;this.isPaused||!t.interval||(S(e,Dt),z.set(e,()=>{},1,Dt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(e){let{element:t,slides:n,options:r}=this,i=Jt(this),a=Je(t),o=e;if(this.isAnimating||i===o||z.get(t,Et))return;i<o||i===0&&o===n.length-1?this.direction=a?`right`:`left`:(i>o||i===n.length-1&&o===0)&&(this.direction=a?`left`:`right`);let{direction:s}=this;o<0?o=n.length-1:o>=n.length&&(o=0);let c=s===`left`?`next`:`prev`,l=s===`left`?`start`:`end`,u={relatedTarget:n[o],from:i,to:o,direction:s};M(Pt,u),M(Ft,u),P(t,Pt),!Pt.defaultPrevented&&(this.index=o,Kt(this,o),de(n[o])&&w(t,`slide`)?z.set(t,()=>{S(n[o],`${wt}-${c}`),ve(n[o]),S(n[o],`${wt}-${l}`),S(n[i],`${wt}-${l}`),I(n[o],()=>this.slides&&this.slides.length&&It(this))},0,Et):(S(n[o],q),C(n[i],q),z.set(t,()=>{z.clear(t,Et),t&&r.interval&&!this.isPaused&&this.cycle(),P(t,Ft)},0,Et)))}_toggleEventListeners=e=>{let{element:t,options:n,slides:r,controls:i,indicators:a}=this,{touch:o,pause:s,interval:c,keyboard:m}=n,h=e?W:G;s&&c&&(h(t,d,Lt),h(t,f,Rt)),o&&r.length>2&&(h(t,`pointerdown`,Ut,_e),h(t,p,Ht,{passive:!1}),h(t,`dragstart`,Ht,{passive:!1})),i.length&&i.forEach(e=>{h(e,u,Bt)}),a.length&&a.forEach(e=>{h(e,u,zt)}),m&&h(j(t),l,Vt)};dispose(){let{isAnimating:e}=this,t={...this,isAnimating:e};this._toggleEventListeners(),super.dispose(),t.isAnimating&&I(t.slides[t.index],()=>{It(t)})}};let Xt=`collapsing`,Y=`collapse`,Zt=`Collapse`,Qt=`.${Y}`,$t=`[${mt}="${Y}"]`,en={parent:null},tn=e=>k(e,Zt),nn=e=>new dn(e),rn=L(`show.bs.${Y}`),an=L(`shown.bs.${Y}`),on=L(`hide.bs.${Y}`),sn=L(`hidden.bs.${Y}`),cn=e=>{let{element:t,parent:r,triggers:i}=e;P(t,rn),rn.defaultPrevented||(z.set(t,te,17),r&&z.set(r,te,17),S(t,Xt),C(t,Y),R(t,{height:`${t.scrollHeight}px`}),I(t,()=>{z.clear(t),r&&z.clear(r),i.forEach(e=>b(e,n,`true`)),C(t,Xt),S(t,Y),S(t,K),R(t,{height:``}),P(t,an)}))},ln=e=>{let{element:t,parent:r,triggers:i}=e;P(t,on),on.defaultPrevented||(z.set(t,te,17),r&&z.set(r,te,17),R(t,{height:`${t.scrollHeight}px`}),C(t,Y),C(t,K),S(t,Xt),ve(t),R(t,{height:`0px`}),I(t,()=>{z.clear(t),r&&z.clear(r),i.forEach(e=>b(e,n,`false`)),C(t,Xt),S(t,Y),R(t,{height:``}),P(t,sn)}))},un=e=>{let{target:t}=e,n=t&&H(t,$t),r=n&&J(n),i=r&&tn(r);n&&it(n)||i&&(i.toggle(),n?.tagName===`A`&&e.preventDefault())};var dn=class extends at{static selector=Qt;static init=nn;static getInstance=tn;constructor(e,t){super(e,t);let{element:n,options:r}=this,i=j(n);this.triggers=[...B($t,i)].filter(e=>J(e)===n),this.parent=V(r.parent)?r.parent:A(r.parent)?J(n)||U(r.parent,i):null,this._toggleEventListeners(!0)}get name(){return Zt}get defaults(){return en}hide(){let{triggers:e,element:t}=this;z.get(t)||(ln(this),e.length&&e.forEach(e=>S(e,`${Y}d`)))}show(){let{element:e,parent:t,triggers:n}=this,r,i;t&&(r=[...B(`.${Y}.${K}`,t)].find(e=>tn(e)),i=r&&tn(r)),(!t||!z.get(t))&&!z.get(e)&&(i&&r!==e&&(ln(i),i.triggers.forEach(e=>{S(e,`${Y}d`)})),cn(this),n.length&&n.forEach(e=>C(e,`${Y}d`)))}toggle(){w(this.element,`show`)?this.hide():this.show()}_toggleEventListeners=e=>{let t=e?W:G,{triggers:n}=this;n.length&&n.forEach(e=>{t(e,u,un)})};dispose(){this._toggleEventListeners(),super.dispose()}},fn=`1.1.3`;let pn=`PositionObserver Error`;var mn=class{entries;static version=fn;_t;_r;_w;_h;_rm;_th;_c;constructor(e,t){if(!Ke(e))throw Error(`${pn}: ${e} is not a function.`);this.entries=new Map,this._c=e,this._t=0;let n=E(t?.root)?t.root:document?.documentElement;this._r=n,this._rm=t?.rootMargin,this._th=t?.threshold,this._w=n.clientWidth,this._h=n.clientHeight}observe=e=>{if(!E(e))throw Error(`${pn}: ${e} is not an instance of Element.`);this._r.contains(e)&&this._n(e).then(t=>{t.boundingClientRect&&!this.getEntry(e)&&this.entries.set(e,t),this._t||=requestAnimationFrame(this._rc)})};unobserve=e=>{this.entries.has(e)&&this.entries.delete(e)};_rc=()=>{if(!this.entries.size){this._t=0;return}let{clientWidth:e,clientHeight:t}=this._r,n=new Promise(n=>{let r=[];this.entries.forEach(({target:n,boundingClientRect:i})=>{this._r.contains(n)&&this._n(n).then(a=>{if(!a.isIntersecting)return;let{left:o,top:s}=a.boundingClientRect;(i.top!==s||i.left!==o||this._w!==e||this._h!==t)&&(this.entries.set(n,a),r.push(a))})}),this._w=e,this._h=t,n(r)});this._t=requestAnimationFrame(async()=>{let e=await n;e.length&&this._c(e,this),this._rc()})};_n=e=>new Promise(t=>{new IntersectionObserver(([e],n)=>{n.disconnect(),t(e)},{threshold:this._th,rootMargin:this._rm}).observe(e)});getEntry=e=>this.entries.get(e);disconnect=()=>{cancelAnimationFrame(this._t),this.entries.clear(),this._t=0}};let hn=[`dropdown`,`dropup`,`dropstart`,`dropend`],gn=`Dropdown`,_n=`dropdown-menu`,vn=e=>{let t=H(e,`A`);return e.tagName===`A`&&y(e,`href`)&&v(e,`href`)?.slice(-1)===`#`||t&&y(t,`href`)&&v(t,`href`)?.slice(-1)===`#`},[yn,bn,xn,Sn]=hn,Cn=`[${mt}="${yn}"]`,wn=e=>k(e,gn),Tn=e=>new Wn(e),En=`${_n}-end`,Dn=[yn,bn],On=[xn,Sn],kn=[`A`,`BUTTON`],An={offset:5,display:`dynamic`},jn=L(`show.bs.${yn}`),Mn=L(`shown.bs.${yn}`),Nn=L(`hide.bs.${yn}`),Pn=L(`hidden.bs.${yn}`),Fn=L(`updated.bs.${yn}`),In=e=>{let{element:t,menu:n,parentElement:r,options:i}=e,{offset:a}=i;if(F(n,`position`)===`static`)return;let o=Je(t),s=w(n,En);[`margin`,`top`,`bottom`,`left`,`right`].forEach(e=>{let t={};t[e]=``,R(n,t)});let c=hn.find(e=>w(r,e))||yn,l={dropdown:[a,0,0],dropup:[0,0,a],dropstart:o?[-1,0,0,a]:[-1,a,0],dropend:o?[-1,a,0]:[-1,0,0,a]},u={dropdown:{top:`100%`},dropup:{top:`auto`,bottom:`100%`},dropstart:o?{left:`100%`,right:`auto`}:{left:`auto`,right:`100%`},dropend:o?{left:`auto`,right:`100%`}:{left:`100%`,right:`auto`},menuStart:o?{right:`0`,left:`auto`}:{right:`auto`,left:`0`},menuEnd:o?{right:`auto`,left:`0`}:{right:`0`,left:`auto`}},{offsetWidth:d,offsetHeight:f}=n,{clientWidth:p,clientHeight:m}=je(t),{left:h,top:g,width:ee,height:te}=ke(t),ne=h-d-a<0,_=h+d+ee+a>=p,v=g+f+a>=m,y=g+f+te+a>=m,b=g-f-a<0,x=(!o&&s||o&&!s)&&h+ee-d<0,S=(o&&s||!o&&!s)&&h+d>=p;if(On.includes(c)&&ne&&_&&(c=yn),c===xn&&(o?_:ne)&&(c=Sn),c===Sn&&(o?ne:_)&&(c=xn),c===bn&&b&&!y&&(c=yn),c===yn&&y&&!b&&(c=bn),On.includes(c)&&v&&M(u[c],{top:`auto`,bottom:0}),Dn.includes(c)&&(x||S)){let e={left:`auto`,right:`auto`};!x&&S&&!o&&(e={left:`auto`,right:0}),x&&!S&&o&&(e={left:0,right:`auto`}),e&&M(u[c],e)}let C=l[c];R(n,{...u[c],margin:`${C.map(e=>e&&`${e}px`).join(` `)}`}),Dn.includes(c)&&s&&s&&R(n,u[!o&&x||o&&S?`menuStart`:`menuEnd`]),P(r,Fn)},Ln=e=>Array.from(e.children).map(e=>{if(e&&kn.includes(e.tagName))return e;let{firstElementChild:t}=e;return t&&kn.includes(t.tagName)?t:null}).filter(e=>e),Rn=e=>{let{element:t,options:n,menu:r}=e,i=e.open?W:G,a=j(t);i(a,u,Bn),i(a,`focus`,Bn),i(a,l,Hn),i(a,`keyup`,Un),n.display===`dynamic`&&(e.open?e._observer.observe(r):e._observer.disconnect())},zn=e=>{let t=[...hn,`btn-group`,`input-group`].map(t=>Ze(`${t} ${K}`,j(e))).find(e=>e.length);if(t&&t.length)return[...t[0].children].find(e=>hn.some(t=>t===v(e,mt)))},Bn=e=>{let{target:t,type:n}=e;if(!V(t))return;let r=zn(t),i=r&&wn(r);if(!i)return;let{parentElement:a,menu:o}=i,s=a&&a.contains(t)&&(t.tagName===`form`||H(t,`form`)!==null);[`click`,`mousedown`].includes(n)&&vn(t)&&e.preventDefault(),!s&&n!==`focus`&&t!==r&&t!==o&&i.hide()};function Vn(e){let t=wn(this);it(this)||t&&(e.stopPropagation(),t.toggle(),vn(this)&&e.preventDefault())}let Hn=e=>{[`ArrowDown`,`ArrowUp`].includes(e.code)&&e.preventDefault()};function Un(e){let{code:t}=e,n=zn(this);if(!n)return;let r=wn(n),{activeElement:i}=j(n);if(!r||!i)return;let{menu:a,open:o}=r,s=Ln(a);if(s&&s.length&&[`ArrowDown`,`ArrowUp`].includes(t)){let e=s.indexOf(i);i===n?e=0:t===`ArrowUp`?e=e>1?e-1:0:t===`ArrowDown`&&(e=e<s.length-1?e+1:e),s[e]&&fe(s[e])}t===`Escape`&&o&&(r.toggle(),fe(n))}var Wn=class extends at{static selector=Cn;static init=Tn;static getInstance=wn;constructor(e,t){super(e,t);let{parentElement:n}=this.element,[r]=Ze(_n,n);r&&(this.parentElement=n,this.menu=r,this._observer=new mn(()=>In(this)),this._toggleEventListeners(!0))}get name(){return gn}get defaults(){return An}toggle(){this.open?this.hide():this.show()}show(){let{element:e,open:t,menu:r,parentElement:i}=this;if(t)return;let a=zn(e),o=a&&wn(a);o&&o.hide(),[jn,Mn,Fn].forEach(t=>{t.relatedTarget=e}),P(i,jn),!jn.defaultPrevented&&(S(r,K),S(i,K),b(e,n,`true`),In(this),this.open=!t,fe(e),Rn(this),P(i,Mn))}hide(){let{element:e,open:t,menu:r,parentElement:i}=this;t&&([Nn,Pn].forEach(t=>{t.relatedTarget=e}),P(i,Nn),!Nn.defaultPrevented&&(C(r,K),C(i,K),b(e,n,`false`),this.open=!t,Rn(this),P(i,Pn)))}_toggleEventListeners=e=>{(e?W:G)(this.element,u,Vn)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}};let X=`modal`,Gn=`Modal`,Kn=`Offcanvas`,qn=e=>[...Ze(`fixed-top`,e),...Ze(`fixed-bottom`,e),...Ze(`sticky-top`,e),...Ze(`position-sticky`,e),...Ze(`is-fixed`,e)],Jn=e=>{let t=Ae(e);R(t,{paddingRight:``,overflow:``});let n=qn(t);n.length&&n.forEach(e=>{R(e,{paddingRight:``,marginRight:``})})},Yn=e=>{let{clientWidth:t}=je(e),{innerWidth:n}=Fe(e);return Math.abs(n-t)},Xn=(e,t)=>{let n=Ae(e),r=parseInt(F(n,`paddingRight`),10),i=F(n,`overflow`)===`hidden`&&r?0:Yn(e),a=qn(n);t&&(R(n,{overflow:`hidden`,paddingRight:`${r+i}px`}),a.length&&a.forEach(e=>{let t=F(e,`paddingRight`);if(e.style.paddingRight=`${parseInt(t,10)+i}px`,[`sticky-top`,`position-sticky`].some(t=>w(e,t))){let t=F(e,`marginRight`);e.style.marginRight=`${parseInt(t,10)-i}px`}}))},Z=`offcanvas`,Zn=N({tagName:`div`,className:`popup-container`}),Qn=(e,t)=>{let n=T(t)&&t.nodeName===`BODY`,r=T(t)&&!n?t:Zn,i=n?t:Ae(e);T(e)&&(r===Zn&&i.append(Zn),r.append(e))},$n=(e,t)=>{let n=T(t)&&t.nodeName===`BODY`,r=T(t)&&!n?t:Zn;T(e)&&(e.remove(),r===Zn&&!Zn.children.length&&Zn.remove())},er=(e,t)=>{let n=T(t)&&t.nodeName!==`BODY`?t:Zn;return T(e)&&n.contains(e)},tr=`backdrop`,nr=`${X}-${tr}`,rr=`${Z}-${tr}`,ir=`.${X}.${K}`,ar=`.${Z}.${K}`,Q=N(`div`),or=e=>U(`${ir},${ar}`,j(e)),sr=e=>{let t=e?nr:rr;[nr,rr].forEach(e=>{C(Q,e)}),S(Q,t)},cr=(e,t,n)=>{sr(n),Qn(Q,Ae(e)),t&&S(Q,et)},lr=()=>{w(Q,`show`)||(S(Q,K),ve(Q))},ur=()=>{C(Q,K)},dr=e=>{or(e)||(C(Q,et),$n(Q,Ae(e)),Jn(e))},fr=e=>V(e)&&F(e,`visibility`)!==`hidden`&&e.offsetParent!==null,pr=`.${X}`,mr=`[${mt}="${X}"]`,hr=`[${tt}="${X}"]`,gr=`${X}-static`,_r={backdrop:!0,keyboard:!0},vr=e=>k(e,Gn),yr=e=>new Pr(e),br=L(`show.bs.${X}`),xr=L(`shown.bs.${X}`),Sr=L(`hide.bs.${X}`),Cr=L(`hidden.bs.${X}`),wr=e=>{let{element:t}=e,n=Yn(t),{clientHeight:r,scrollHeight:i}=je(t),{clientHeight:a,scrollHeight:o}=t,s=a!==o;!s&&n&&R(t,{[Je(t)?`paddingLeft`:`paddingRight`]:`${n}px`}),Xn(t,s||r!==i)},Tr=(e,t)=>{let n=t?W:G,{element:r}=e;n(r,u,Mr),n(j(r),l,jr),t?e._observer.observe(r):e._observer.disconnect()},Er=e=>{let{triggers:t,element:n,relatedTarget:r}=e;dr(n),R(n,{paddingRight:``,display:``}),Tr(e);let i=br.relatedTarget||t.find(fr);i&&fe(i),Cr.relatedTarget=r||void 0,P(n,Cr),Oe(n)},Dr=e=>{let{element:t,relatedTarget:n}=e;fe(t),Tr(e,!0),xr.relatedTarget=n||void 0,P(t,xr),Oe(t)},Or=e=>{let{element:t,hasFade:n}=e;R(t,{display:`block`}),wr(e),or(t)||R(Ae(t),{overflow:`hidden`}),S(t,K),x(t,r),b(t,i,`true`),n?I(t,()=>Dr(e)):Dr(e)},kr=e=>{let{element:t,options:n,hasFade:r}=e;n.backdrop&&r&&w(Q,`show`)&&!or(t)?(ur(),I(Q,()=>Er(e))):Er(e)};function Ar(e){let t=J(this),n=t&&vr(t);it(this)||n&&(this.tagName===`A`&&e.preventDefault(),n.relatedTarget=this,n.toggle())}let jr=({code:e,target:t})=>{let n=U(ir,j(t)),r=n&&vr(n);if(!r)return;let{options:i}=r;i.keyboard&&e===`Escape`&&w(n,`show`)&&(r.relatedTarget=null,r.hide())},Mr=e=>{let{currentTarget:t}=e,n=t&&vr(t);if(!n||!t||z.get(t))return;let{options:r,isStatic:i,modalDialog:a}=n,{backdrop:o}=r,{target:s}=e,c=j(t)?.getSelection()?.toString().length,l=a.contains(s),u=s&&H(s,hr);i&&!l?z.set(t,()=>{S(t,gr),I(a,()=>Nr(n))},17):(u||!c&&!i&&!l&&o)&&(n.relatedTarget=u||null,n.hide(),e.preventDefault())},Nr=e=>{let{element:t,modalDialog:n}=e,r=(de(n)||0)+17;C(t,gr),z.set(t,()=>z.clear(t),r)};var Pr=class extends at{static selector=pr;static init=yr;static getInstance=vr;constructor(e,t){super(e,t);let{element:n}=this,r=U(`.${X}-dialog`,n);r&&(this.modalDialog=r,this.triggers=[...B(mr,j(n))].filter(e=>J(e)===n),this.isStatic=this.options.backdrop===`static`,this.hasFade=w(n,et),this.relatedTarget=null,this._observer=new ResizeObserver(()=>this.update()),this._toggleEventListeners(!0))}get name(){return Gn}get defaults(){return _r}toggle(){w(this.element,`show`)?this.hide():this.show()}show(){let{element:e,options:t,hasFade:n,relatedTarget:r}=this,{backdrop:i}=t,a=0;if(w(e,`show`)||(br.relatedTarget=r||void 0,P(e,br),br.defaultPrevented))return;let o=or(e);if(o&&o!==e){let e=vr(o)||k(o,`Offcanvas`);e&&e.hide()}i?(er(Q)?sr(!0):cr(e,n,!0),a=de(Q),lr(),setTimeout(()=>Or(this),a)):(Or(this),o&&w(Q,`show`)&&ur())}hide(){let{element:e,hasFade:t,relatedTarget:n}=this;w(e,`show`)&&(Sr.relatedTarget=n||void 0,P(e,Sr),!Sr.defaultPrevented&&(C(e,K),b(e,r,`true`),x(e,i),t?I(e,()=>kr(this)):kr(this)))}update=()=>{w(this.element,`show`)&&wr(this)};_toggleEventListeners=e=>{let t=e?W:G,{triggers:n}=this;n.length&&n.forEach(e=>{t(e,u,Ar)})};dispose(){let{modalDialog:e,hasFade:t}={...this},n=()=>setTimeout(()=>super.dispose(),17);this.hide(),this._toggleEventListeners(),t?I(e,n):n()}};let Fr=`.${Z}`,Ir=`[${mt}="${Z}"]`,Lr=`[${tt}="${Z}"]`,Rr=`${Z}-toggling`,zr={backdrop:!0,keyboard:!0,scroll:!1},Br=e=>k(e,Kn),Vr=e=>new ti(e),Hr=L(`show.bs.${Z}`),Ur=L(`shown.bs.${Z}`),Wr=L(`hide.bs.${Z}`),Gr=L(`hidden.bs.${Z}`),Kr=e=>{let{element:t}=e,{clientHeight:n,scrollHeight:r}=je(t);Xn(t,n!==r)},qr=(e,t)=>{let n=t?W:G,r=j(e.element);n(r,l,Qr),n(r,u,Zr)},Jr=e=>{let{element:t,options:n}=e;n.scroll||(Kr(e),R(Ae(t),{overflow:`hidden`})),S(t,Rr),S(t,K),R(t,{visibility:`visible`}),I(t,()=>$r(e))},Yr=e=>{let{element:t,options:n}=e,r=or(t);t.blur(),!r&&n.backdrop&&w(Q,`show`)&&ur(),I(t,()=>ei(e))};function Xr(e){let t=J(this),n=t&&Br(t);it(this)||n&&(n.relatedTarget=this,n.toggle(),this.tagName===`A`&&e.preventDefault())}let Zr=e=>{let{target:t}=e,n=U(ar,j(t));if(!n)return;let r=U(Lr,n),i=Br(n);if(!i)return;let{options:a,triggers:o}=i,{backdrop:s}=a,c=H(t,Ir),l=j(n).getSelection();if(Q.contains(t)&&s===`static`)return;let u=o.includes(t),d=r?.contains(t)||!1;!(l&&l.toString().length)&&(!n.contains(t)&&s&&(!c||u)||d)&&(i.relatedTarget=r&&d?r:void 0,i.hide()),c&&c.tagName===`A`&&e.preventDefault()},Qr=({code:e,target:t})=>{let n=U(ar,j(t)),r=n&&Br(n);r&&r.options.keyboard&&e===`Escape`&&(r.relatedTarget=void 0,r.hide())},$r=e=>{let{element:t}=e;C(t,Rr),x(t,r),b(t,i,`true`),b(t,`role`,`dialog`),P(t,Ur),qr(e,!0),fe(t),Oe(t)},ei=e=>{let{element:t,triggers:n}=e;b(t,r,`true`),x(t,i),x(t,`role`),R(t,{visibility:``});let a=Hr.relatedTarget||n.find(fr);a&&fe(a),dr(t),P(t,Gr),C(t,Rr),Oe(t),or(t)||qr(e)};var ti=class extends at{static selector=Fr;static init=Vr;static getInstance=Br;constructor(e,t){super(e,t);let{element:n}=this;this.triggers=[...B(Ir,j(n))].filter(e=>J(e)===n),this.relatedTarget=void 0,this._toggleEventListeners(!0)}get name(){return Kn}get defaults(){return zr}toggle(){w(this.element,`show`)?this.hide():this.show()}show(){let{element:e,options:t,relatedTarget:n}=this,r=0;if(w(e,`show`)||(Hr.relatedTarget=n||void 0,Ur.relatedTarget=n||void 0,P(e,Hr),Hr.defaultPrevented))return;let i=or(e);if(i&&i!==e){let e=Br(i)||k(i,`Modal`);e&&e.hide()}t.backdrop?(er(Q)?sr():cr(e,!0),r=de(Q),lr(),setTimeout(()=>Jr(this),r)):(Jr(this),i&&w(Q,`show`)&&ur())}hide(){let{element:e,relatedTarget:t}=this;w(e,`show`)&&(Wr.relatedTarget=t||void 0,Gr.relatedTarget=t||void 0,P(e,Wr),!Wr.defaultPrevented&&(S(e,Rr),C(e,K),Yr(this)))}_toggleEventListeners=e=>{let t=e?W:G;this.triggers.forEach(e=>{t(e,u,Xr)})};dispose(){let{element:e}=this,t=w(e,K),n=()=>setTimeout(()=>super.dispose(),1);this.hide(),this._toggleEventListeners(),t?I(e,n):n()}};let ni=`popover`,ri=`Popover`,ii=`tooltip`,ai=e=>{let t=e===ii,n=t?`${e}-inner`:`${e}-body`,r=t?``:`<h3 class="${e}-header"></h3>`,i=`<div class="${e}-arrow"></div>`,a=`<div class="${n}"></div>`;return`<div class="${e}" role="${ii}">${r+i+a}</div>`},oi={top:`top`,bottom:`bottom`,left:`start`,right:`end`},si=e=>{requestAnimationFrame(()=>{let t=/\b(top|bottom|start|end)+/,{element:n,tooltip:r,container:i,offsetParent:a,options:o,arrow:s}=e;if(!r)return;let c=Je(n),{x:l,y:u}=Me(a);R(r,{top:``,left:``,right:``,bottom:``});let{offsetWidth:d,offsetHeight:f}=r,{clientWidth:p,clientHeight:m,offsetWidth:h}=je(n),{placement:g}=o,{clientWidth:ee,offsetWidth:te}=i,ne=F(i,`position`)===`fixed`,_=Math.abs(ne?ee-te:p-h),v=c&&ne?_:0,y=p-(c?0:_)-1,{width:b,height:x,left:S,right:C,top:w}=e._observer.getEntry(n)?.boundingClientRect||ke(n,!0),{x:re,y:ie}=ze(n,a,{x:l,y:u});R(s,{top:``,left:``,right:``,bottom:``});let ae=0,oe=``,T=0,E=``,D=``,O=``,k=``,se=s.offsetWidth||0,A=s.offsetHeight||0,ce=se/2,le=w-f-A<0,j=w+f+x+A>=m,M=S-d-se<v,N=S+d+b+se>=y,ue=[`left`,`right`],de=[`top`,`bottom`];le=ue.includes(g)?w+x/2-f/2-A<0:le,j=ue.includes(g)?w+f/2+x/2+A>=m:j,M=de.includes(g)?S+b/2-d/2<v:M,N=de.includes(g)?S+d/2+b/2>=y:N,g=ue.includes(g)&&M&&N?`top`:g,g=g===`top`&&le?`bottom`:g,g=g===`bottom`&&j?`top`:g,g=g===`left`&&M?`right`:g,g=g===`right`&&N?`left`:g,r.className.includes(g)||(r.className=r.className.replace(t,oi[g])),ue.includes(g)?(T=g===`left`?re-d-se:re+b+se,le&&j?(ae=0,oe=0,D=ie+x/2-A/2):le?(ae=ie,oe=``,D=x/2-se):j?(ae=ie-f+x,oe=``,D=f-x/2-se):(ae=ie-f/2+x/2,D=f/2-A/2)):de.includes(g)&&(ae=g===`top`?ie-f-A:ie+x+A,M?(T=0,O=re+b/2-ce):N?(T=`auto`,E=0,k=b/2+y-C-ce):(T=re-d/2+b/2,O=d/2-ce)),R(r,{top:`${ae}px`,bottom:oe===``?``:`${oe}px`,left:T===`auto`?T:`${T}px`,right:E===``?``:`${E}px`}),V(s)&&(D!==``&&(s.style.top=`${D}px`),O===``?k!==``&&(s.style.right=`${k}px`):s.style.left=`${O}px`),P(n,L(`updated.bs.${Se(e.name)}`))})},ci={template:ai(ii),title:``,customClass:``,trigger:`hover focus`,placement:`top`,sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:``,dismissible:!1,btnClose:``},li=`Tooltip`,ui=(e,t,n)=>{if(A(t)&&t.length){let r=t.trim();Ke(n)&&(r=n(r));let i=new DOMParser().parseFromString(r,`text/html`);e.append(...i.body.childNodes)}else V(t)?e.append(t):(qe(t)||We(t)&&t.every(T))&&e.append(...t)},di=e=>{let t=e.name===li,{id:n,element:r,options:i}=e,{title:a,placement:o,template:s,animation:c,customClass:l,sanitizeFn:u,dismissible:d,content:f,btnClose:p}=i,m=t?ii:ni,h={...oi},g=[],ee=[];Je(r)&&(h.left=`end`,h.right=`start`);let te=`bs-${m}-${h[o]}`,ne;if(V(s))ne=s;else{let e=N(`div`);ui(e,s,u),ne=e.firstChild}if(!V(ne))return;e.tooltip=ne.cloneNode(!0);let{tooltip:_}=e;b(_,`id`,n),b(_,`role`,ii);let v=t?`${ii}-inner`:`${ni}-body`,y=t?null:U(`.${ni}-header`,_),x=U(`.${v}`,_);e.arrow=U(`.${m}-arrow`,_);let{arrow:C}=e;if(V(a))g=[a.cloneNode(!0)];else{let e=N(`div`);ui(e,a,u),g=[...[...e.childNodes]]}if(V(f))ee=[f.cloneNode(!0)];else{let e=N(`div`);ui(e,f,u),ee=[...[...e.childNodes]]}if(d)if(a)if(V(p))g=[...g,p.cloneNode(!0)];else{let e=N(`div`);ui(e,p,u),g=[...g,e.firstChild]}else if(y&&y.remove(),V(p))ee=[...ee,p.cloneNode(!0)];else{let e=N(`div`);ui(e,p,u),ee=[...ee,e.firstChild]}t?a&&x&&ui(x,a,u):(a&&y&&ui(y,g,u),f&&x&&ui(x,ee,u),e.btn=U(`.btn-close`,_)||void 0),S(_,`position-absolute`),S(C,`position-absolute`),w(_,m)||S(_,m),c&&!w(_,`fade`)&&S(_,et),l&&!w(_,l)&&S(_,l),w(_,te)||S(_,te)},fi=e=>{let t=[`HTML`,`BODY`],n=[],{parentNode:r}=e;for(;r&&!t.includes(r.nodeName);)r=Pe(r),Ne(r)||Ie(r)||n.push(r);return n.find((e,t)=>(F(e,`position`)!==`relative`||F(e,`position`)===`relative`&&e.offsetHeight!==e.scrollHeight)&&n.slice(t+1).every(e=>F(e,`position`)===`static`)?e:null)||j(e).body},pi=`[${mt}="${ii}"],[data-tip="${ii}"]`,mi=`title`,hi=e=>k(e,li),gi=e=>new Ti(e),_i=e=>{let{element:n,tooltip:r,container:i}=e;x(n,t),$n(r,i)},vi=e=>{let{tooltip:t,container:n}=e;return t&&er(t,n)},yi=(e,t)=>{let{element:n}=e;e._toggleEventListeners(),y(n,`data-original-title`)&&e.name===`Tooltip`&&wi(e),t&&t()},bi=(e,t)=>{let n=t?W:G,{element:r}=e;n(j(r),p,e.handleTouch,_e)},xi=e=>{let{element:t}=e,n=L(`shown.bs.${Se(e.name)}`);bi(e,!0),P(t,n),z.clear(t,`in`)},Si=e=>{let{element:t}=e,n=L(`hidden.bs.${Se(e.name)}`);bi(e),_i(e),P(t,n),z.clear(t,`out`)},Ci=(e,t)=>{let n=t?W:G,{element:r,tooltip:i}=e,a=H(r,`.${X}`),o=H(r,`.${Z}`);t?[r,i].forEach(t=>e._observer.observe(t)):e._observer.disconnect(),a&&n(a,`hide.bs.${X}`,e.handleHide),o&&n(o,`hide.bs.${Z}`,e.handleHide)},wi=(e,t)=>{let n=[`data-original-title`,mi],{element:r}=e;b(r,n[t?0:1],t||v(r,n[0])||``),x(r,n[t?1:0])};var Ti=class extends at{static selector=pi;static init=gi;static getInstance=hi;static styleTip=si;constructor(e,t){super(e,t);let{element:n}=this,r=this.name===li,i=r?ii:ni,a=r?li:ri;hi=e=>k(e,a),this.enabled=!0,this.id=`${i}-${Ue(n,i)}`;let{options:o}=this;if(!o.title&&r||!r&&!o.content)return;M(ci,{titleAttr:``}),y(n,mi)&&r&&typeof o.title==`string`&&wi(this,o.title);let s=fi(n),c=[`sticky`,`fixed`,`relative`].some(e=>F(s,`position`)===e)?s:Fe(n);this.container=s,this.offsetParent=c,di(this),this.tooltip&&(this._observer=new mn(()=>this.update()),this._toggleEventListeners(!0))}get name(){return li}get defaults(){return ci}handleFocus=()=>fe(this.element);handleShow=()=>this.show();show(){let{options:e,tooltip:n,element:r,container:i,id:a}=this,{animation:o}=e,s=z.get(r,`out`);z.clear(r,`out`),n&&!s&&!vi(this)&&z.set(r,()=>{let e=L(`show.bs.${Se(this.name)}`);P(r,e),e.defaultPrevented||(Qn(n,i),b(r,t,`#${a}`),this.update(),Ci(this,!0),w(n,`show`)||S(n,K),o?I(n,()=>xi(this)):xi(this))},17,`in`)}handleHide=()=>this.hide();hide(){let{options:e,tooltip:t,element:n}=this,{animation:r,delay:i}=e;z.clear(n,`in`),t&&vi(this)&&z.set(n,()=>{let e=L(`hide.bs.${Se(this.name)}`);P(n,e),e.defaultPrevented||(this.update(),C(t,K),Ci(this),r?I(t,()=>Si(this)):Si(this))},i+17,`out`)}update=()=>{si(this)};toggle=()=>{let{tooltip:e}=this;e&&!vi(this)?this.show():this.hide()};enable(){let{enabled:e}=this;e||(this._toggleEventListeners(!0),this.enabled=!e)}disable(){let{tooltip:e,enabled:t}=this;t&&(e&&vi(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!t)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:e})=>{let{tooltip:t,element:n}=this;t&&t.contains(e)||e===n||e&&n.contains(e)||this.hide()};_toggleEventListeners=e=>{let t=e?W:G,{element:n,options:r,btn:i}=this,{trigger:a}=r,o=!!(this.name!==`Tooltip`&&r.dismissible);a.includes(`manual`)||(this.enabled=!!e,a.split(` `).forEach(e=>{e===`hover`?(t(n,`mousedown`,this.handleShow),t(n,d,this.handleShow),o||(t(n,f,this.handleHide),t(j(n),p,this.handleTouch,_e))):e===`click`?t(n,e,o?this.handleShow:this.toggle):e===`focus`&&(t(n,s,this.handleShow),o||t(n,c,this.handleHide),ee()&&t(n,u,this.handleFocus)),o&&i&&t(i,u,this.handleHide)}))};dispose(){let{tooltip:e,options:t}=this,n={...this,name:this.name},r=()=>setTimeout(()=>yi(n,()=>super.dispose()),17);t.animation&&vi(n)?(this.options.delay=0,this.hide(),I(e,r)):r()}};let Ei=`[${mt}="${ni}"],[data-tip="${ni}"]`,Di=M({},ci,{template:ai(ni),content:``,dismissible:!1,btnClose:`<button class="btn-close position-absolute top-0 end-0 m-1" aria-label="Close"></button>`}),Oi=e=>k(e,ri),ki=e=>new Ai(e);var Ai=class extends Ti{static selector=Ei;static init=ki;static getInstance=Oi;static styleTip=si;constructor(e,t){super(e,t)}get name(){return ri}get defaults(){return Di}show=()=>{super.show();let{options:e,btn:t}=this;e.dismissible&&t&&setTimeout(()=>fe(t),17)}};let ji=`ScrollSpy`,Mi={offset:10,target:void 0},Ni=e=>k(e,ji),Pi=e=>new Bi(e),Fi=L(`activate.bs.scrollspy`),Ii=e=>{let{target:t,_itemsLength:n,_observables:r}=e,i=Ye(`A`,t),a=j(t);!i.length||n===r.size||(r.clear(),Array.from(i).forEach(t=>{let n=v(t,`href`)?.slice(1),r=n?.length?a.getElementById(n):null;r&&!it(t)&&e._observables.set(r,t)}),e._itemsLength=e._observables.size)},Li=e=>{Array.from(Ye(`A`,e)).forEach(e=>{w(e,`active`)&&C(e,q)})},Ri=(e,t)=>{let{target:n,element:r}=e;Li(n),e._activeItem=t,S(t,q);let i=t;for(;i!==n;)if(i=i.parentElement,[`nav`,`dropdown-menu`,`list-group`].some(e=>w(i,e))){let e=i.previousElementSibling;e&&!w(e,`active`)&&S(e,q)}Fi.relatedTarget=t,P(r,Fi)},zi=(e,t)=>{let{scrollTarget:n,element:r,options:i}=e;return(n===r?t.offsetTop:ke(t).top+n.scrollTop)-(i.offset||10)};var Bi=class extends at{static selector=`[data-bs-spy="scroll"]`;static init=Pi;static getInstance=Ni;constructor(e,t){super(e,t);let{element:n,options:r}=this,i=U(r.target,j(n));i&&(this.target=i,this.scrollTarget=n.clientHeight<n.scrollHeight?n:je(n),this._observables=new Map,this.refresh(),this._observer=new mn(()=>{requestAnimationFrame(()=>this.refresh?.())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return ji}get defaults(){return Mi}refresh=()=>{let{target:e,scrollTarget:t}=this;if(!e||e.offsetHeight===0)return;Ii(this);let{_itemsLength:n,_observables:r,_activeItem:i}=this;if(!n)return;let a=r.entries().toArray(),{scrollTop:o,scrollHeight:s,clientHeight:c}=t;if(o>=s-c){let e=a[n-1]?.[1];i!==e&&Ri(this,e);return}let l=a[0]?.[0]?zi(this,a[0][0]):null;if(l!==null&&o<l&&l>0){this._activeItem=null,Li(e);return}for(let e=0;e<n;e+=1){let[t,n]=a[e],r=zi(this,t),s=a[e+1]?.[0],c=s?zi(this,s):null;if(i!==n&&o>=r&&(c===null||o<c)){Ri(this,n);break}}};_scrollTo=e=>{let t=H(e.target,`[href]`),n=t&&v(t,`href`)?.slice(1),r=n&&Xe(n,this.target);r&&(this.scrollTarget.scrollTo({top:r.offsetTop,behavior:`smooth`}),e.preventDefault())};_toggleEventListeners=e=>{let{target:t,_observables:n,_observer:r,_scrollTo:i}=this;(e?W:G)(t,u,i),e?n?.forEach((e,t)=>r.observe(t)):r.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}};let Vi=`[${mt}="tab"]`,Hi=e=>k(e,`Tab`),Ui=e=>new ta(e),Wi=L(`show.bs.tab`),Gi=L(`shown.bs.tab`),Ki=L(`hide.bs.tab`),qi=L(`hidden.bs.tab`),Ji=new Map,Yi=e=>{let{tabContent:t,nav:n}=e;t&&w(t,`collapsing`)&&(t.style.height=``,C(t,Xt)),n&&z.clear(n)},Xi=e=>{let{element:t,tabContent:n,content:r,nav:i}=e,{tab:a}=V(i)&&Ji.get(i)||{tab:null};if(n&&r&&w(r,`fade`)){let{currentHeight:r,nextHeight:i}=Ji.get(t)||{currentHeight:0,nextHeight:0};r===i?Yi(e):setTimeout(()=>{n.style.height=`${i}px`,ve(n),I(n,()=>Yi(e))},50)}else i&&z.clear(i);Gi.relatedTarget=a,P(t,Gi)},Zi=e=>{let{element:t,content:n,tabContent:r,nav:i}=e,{tab:a,content:o}=i&&Ji.get(i)||{tab:null,content:null},s=0;if(r&&n&&w(n,`fade`)&&([o,n].forEach(e=>{e&&S(e,`overflow-hidden`)}),s=o?o.scrollHeight:0),Wi.relatedTarget=a,qi.relatedTarget=t,P(t,Wi),!Wi.defaultPrevented){if(n&&S(n,q),o&&C(o,q),r&&n&&w(n,`fade`)){let e=n.scrollHeight;Ji.set(t,{currentHeight:s,nextHeight:e,tab:null,content:null}),S(r,Xt),r.style.height=`${s}px`,ve(r),[o,n].forEach(e=>{e&&C(e,`overflow-hidden`)})}n&&n&&w(n,`fade`)?setTimeout(()=>{S(n,K),I(n,()=>{Xi(e)})},1):(n&&S(n,K),Xi(e)),a&&P(a,qi)}},Qi=e=>{let{nav:t}=e;if(!V(t))return{tab:null,content:null};let n=Ze(q,t),r=null;n.length===1&&!hn.some(e=>w(n[0].parentElement,e))?[r]=n:n.length>1&&(r=n[n.length-1]);let i=V(r)?J(r):null;return{tab:r,content:i}},$i=e=>{if(!V(e))return null;let t=H(e,`.${hn.join(`,.`)}`);return t?U(`.${hn[0]}-toggle`,t):null},ea=e=>{let t=H(e.target,Vi),n=t&&Hi(t);n&&(e.preventDefault(),n.show())};var ta=class extends at{static selector=Vi;static init=Ui;static getInstance=Hi;constructor(e){super(e);let{element:t}=this,n=J(t);if(!n)return;let r=H(t,`.nav`),i=H(n,`.tab-content`);this.nav=r,this.content=n,this.tabContent=i,this.dropdown=$i(t);let{tab:a}=Qi(this);if(r&&!a){let e=U(Vi,r),n=e&&J(e);n&&(S(e,q),S(n,K),S(n,q),b(t,o,`true`))}this._toggleEventListeners(!0)}get name(){return`Tab`}show(){let{element:e,content:t,nav:n,dropdown:r}=this;if(n&&z.get(n)||w(e,`active`))return;let{tab:i,content:a}=Qi(this);if(n&&i&&Ji.set(n,{tab:i,content:a,currentHeight:0,nextHeight:0}),Ki.relatedTarget=e,!V(i)||(P(i,Ki),Ki.defaultPrevented))return;S(e,q),b(e,o,`true`);let s=V(i)&&$i(i);if(s&&w(s,`active`)&&C(s,q),n){let e=()=>{i&&(C(i,q),b(i,o,`false`)),r&&!w(r,`active`)&&S(r,q)};a&&(w(a,`fade`)||t&&w(t,`fade`))?z.set(n,e,1):e()}a&&(C(a,K),w(a,`fade`)?I(a,()=>Zi(this)):Zi(this))}_toggleEventListeners=e=>{(e?W:G)(this.element,u,ea)};dispose(){this._toggleEventListeners(),super.dispose()}};let $=`toast`,na=`Toast`,ra=`.${$}`,ia=`[${tt}="${$}"]`,aa=`[${mt}="${$}"]`,oa=`showing`,sa=`hide`,ca={animation:!0,autohide:!0,delay:5e3},la=e=>k(e,na),ua=e=>new xa(e),da=L(`show.bs.${$}`),fa=L(`shown.bs.${$}`),pa=L(`hide.bs.${$}`),ma=L(`hidden.bs.${$}`),ha=e=>{let{element:t,options:n}=e;C(t,oa),z.clear(t,oa),P(t,fa),n.autohide&&z.set(t,()=>e.hide(),n.delay,$)},ga=e=>{let{element:t}=e;C(t,oa),C(t,K),S(t,sa),z.clear(t,$),P(t,ma)},_a=e=>{let{element:t,options:n}=e;S(t,oa),n.animation?(ve(t),I(t,()=>ga(e))):ga(e)},va=e=>{let{element:t,options:n}=e;z.set(t,()=>{C(t,sa),ve(t),S(t,K),S(t,oa),n.animation?I(t,()=>ha(e)):ha(e)},17,oa)};function ya(e){let t=J(this),n=t&&la(t);it(this)||n&&(this.tagName===`A`&&e.preventDefault(),n.relatedTarget=this,n.show())}let ba=e=>{let t=e.target,n=la(t),{type:r,relatedTarget:i}=e;!n||t===i||t.contains(i)||([`mouseenter`,`focusin`].includes(r)?z.clear(t,$):z.set(t,()=>n.hide(),n.options.delay,$))};var xa=class extends at{static selector=ra;static init=ua;static getInstance=la;constructor(e,t){super(e,t);let{element:n,options:r}=this;r.animation&&!w(n,`fade`)?S(n,et):!r.animation&&w(n,`fade`)&&C(n,et),this.dismiss=U(ia,n),this.triggers=[...B(aa,j(n))].filter(e=>J(e)===n),this._toggleEventListeners(!0)}get name(){return na}get defaults(){return ca}get isShown(){return w(this.element,K)}show=()=>{let{element:e,isShown:t}=this;!e||t||(P(e,da),da.defaultPrevented||va(this))};hide=()=>{let{element:e,isShown:t}=this;!e||!t||(P(e,pa),pa.defaultPrevented||_a(this))};_toggleEventListeners=e=>{let t=e?W:G,{element:n,triggers:r,dismiss:i,options:a,hide:o}=this;i&&t(i,u,o),a.autohide&&[s,c,d,f].forEach(e=>t(n,e,ba)),r.length&&r.forEach(e=>{t(e,u,ya)})};dispose(){let{element:e,isShown:t}=this;this._toggleEventListeners(),z.clear(e,$),t&&C(e,K),super.dispose()}};let Sa=new Map;[pt,yt,Yt,dn,Wn,Pr,ti,Ai,Bi,ta,xa,Ti].forEach(e=>Sa.set(e.prototype.name,e));let Ca=(e,t)=>{[...t].forEach(t=>e(t))},wa=(e,t)=>{let n=O.getAllFor(e);n&&[...n].forEach(([e,n])=>{t.contains(e)&&n.dispose()})},Ta=e=>{let t=[...Ye(`*`,e&&e.nodeName?e:document)];Sa.forEach(e=>{let{init:n,selector:r}=e;Ca(n,t.filter(e=>Le(e,r)))})};document.body?Ta():W(document,`DOMContentLoaded`,()=>Ta(),{once:!0}),e.Alert=pt,e.Button=yt,e.Carousel=Yt,e.Collapse=dn,e.Dropdown=Wn,e.Modal=Pr,e.Offcanvas=ti,e.Popover=Ai,e.ScrollSpy=Bi,e.Tab=ta,e.Toast=xa,e.Tooltip=Ti,e.initCallback=Ta,e.removeDataAPI=e=>{let t=e&&e.nodeName?e:document;Sa.forEach(e=>{wa(e.prototype.name,t)})}});
4
+ //# sourceMappingURL=bootstrap-native.min.js.map