aboutsummaryrefslogtreecommitdiff
path: root/docs/js/main.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/js/main.min.js')
-rw-r--r--docs/js/main.min.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/js/main.min.js b/docs/js/main.min.js
index 5a96393..8875411 100644
--- a/docs/js/main.min.js
+++ b/docs/js/main.min.js
@@ -1,2 +1,2 @@
-function bruh_moment(){alert("this is a bruh moment")}function get_smiles_from_element_text(t){t=`https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/${document.getElementById(t).value}/property/CanonicalSMILES/JSON`;console.log(t),fetch(t).then(t=>t.json()).then(t=>{console.log("Aye, got that dub from PubChem"),document.getElementById("inputSMILES").value=t.PropertyTable.Properties[0].CanonicalSMILES}).catch(t=>{throw bruh_moment(),t})}function draw_me_like_one_of_your_french_girls(t){t.condense_abbreviations();var e=document.getElementById("draw-canvas-2");t.draw_to_canvas(e,-1,-1)}function calculate_and_disperse(t){try{var e=JSON.parse(t.get_descriptors())}catch(t){alert("oo wee, failed to calculate descriptors senpai")}let n=document.getElementById("analyse_table");var i=Object.keys(e);for(let t=0;t<i.length;t++){var o=i[t];console.log(o,e[o]);var r=n.insertRow(-1),a=r.insertCell(0),s=r.insertCell(-1),r=document.createTextNode(o),o=document.createTextNode(e[o]);a.appendChild(r),s.appendChild(o)}}function analyse_me_senpai(t){t=document.getElementById(t).value,t=Module.get_mol(t);draw_me_like_one_of_your_french_girls(t),calculate_and_disperse(t)}!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,i=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&0<=navigator.userAgent.indexOf(t[e]))return 1;return 0}();var o=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},i))}};function r(t){return t&&"[object Function]"==={}.toString.call(t)}function f(t,e){if(1!==t.nodeType)return[];t=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?t[e]:t}function u(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=f(t),n=e.overflow,i=e.overflowX,e=e.overflowY;return/(auto|scroll|overlay)/.test(n+e+i)?t:c(u(t))}function d(t){return t&&t.referenceNode?t.referenceNode:t}var e=n&&!(!window.MSInputMethodContext||!document.documentMode),a=n&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?e:10!==t&&e||a}function g(t){if(!t)return document.documentElement;for(var e=p(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===f(n,"position")?g(n):n:(t?t.ownerDocument:document).documentElement}function s(t){return null!==t.parentNode?s(t.parentNode):t}function h(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,n=document.createRange();n.setStart(i,0),n.setEnd(o,0);n=n.commonAncestorContainer;if(t!==n&&e!==n||i.contains(o))return"BODY"===(o=(i=n).nodeName)||"HTML"!==o&&g(i.firstElementChild)!==i?g(n):n;n=s(t);return n.host?h(n.host,e):h(t,s(e).host)}function m(t,e){var n="top"===(1<arguments.length&&void 0!==e?e:"top")?"scrollTop":"scrollLeft",e=t.nodeName;if("BODY"!==e&&"HTML"!==e)return t[n];e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[n]}function l(t,e){var n="x"===e?"Left":"Top",e="Left"==n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+e+"Width"])}function _(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],p(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function v(t){var e=t.body,n=t.documentElement,t=p(10)&&getComputedStyle(n);return{height:_("Height",e,n,t),width:_("Width",e,n,t)}}var b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t=function(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t};function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var E=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function T(t){return E({},t,{right:t.left+t.width,bottom:t.top+t.height})}function j(t){var e={};try{p(10)?(e=t.getBoundingClientRect(),n=m(t,"top"),i=m(t,"left"),e.top+=n,e.left+=i,e.bottom+=n,e.right+=i):e=t.getBoundingClientRect()}catch(t){}var n={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i="HTML"===t.nodeName?v(t.ownerDocument):{},e=i.width||t.clientWidth||n.width,i=i.height||t.clientHeight||n.height,e=t.offsetWidth-e,i=t.offsetHeight-i;return(e||i)&&(e-=l(t=f(t),"x"),i-=l(t,"y"),n.width-=e,n.height-=i),T(n)}function O(t,e,n){var i=2<arguments.length&&void 0!==n&&n,o=p(10),r="HTML"===e.nodeName,a=j(t),s=j(e),l=c(t),u=f(e),n=parseFloat(u.borderTopWidth),t=parseFloat(u.borderLeftWidth);i&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));a=T({top:a.top-s.top-n,left:a.left-s.left-t,width:a.width,height:a.height});return a.marginTop=0,a.marginLeft=0,!o&&r&&(r=parseFloat(u.marginTop),u=parseFloat(u.marginLeft),a.top-=n-r,a.bottom-=n-r,a.left-=t-u,a.right-=t-u,a.marginTop=r,a.marginLeft=u),a=(o&&!i?e.contains(l):e===l&&"BODY"!==l.nodeName)?function(t,e,n){var i=2<arguments.length&&void 0!==n&&n,n=m(e,"top"),e=m(e,"left"),i=i?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=e*i,t.right+=e*i,t}(a,e):a}function L(t){if(!t||!t.parentElement||p())return document.documentElement;for(var e=t.parentElement;e&&"none"===f(e,"transform");)e=e.parentElement;return e||document.documentElement}function C(t,e,n,i,o){var r=4<arguments.length&&void 0!==o&&o,a={top:0,left:0},s=r?L(t):h(t,d(e));"viewport"===i?a=function(t,e){var n=1<arguments.length&&void 0!==e&&e,i=t.ownerDocument.documentElement,o=O(t,i),r=Math.max(i.clientWidth,window.innerWidth||0),e=Math.max(i.clientHeight,window.innerHeight||0),t=n?0:m(i),i=n?0:m(i,"left");return T({top:t-o.top+o.marginTop,left:i-o.left+o.marginLeft,width:r,height:e})}(s,r):(o=void 0,"scrollParent"===i?"BODY"===(o=c(u(e))).nodeName&&(o=t.ownerDocument.documentElement):o="window"===i?t.ownerDocument.documentElement:i,l=O(o,s,r),"HTML"!==o.nodeName||function t(e){var n=e.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===f(e,"position"))return!0;e=u(e);return!!e&&t(e)}(s)?a=l:(t=(s=v(t.ownerDocument)).height,s=s.width,a.top+=l.top-l.marginTop,a.bottom=t+l.top,a.left+=l.left-l.marginLeft,a.right=s+l.left));var l="number"==typeof(n=n||0);return a.left+=l?n:n.left||0,a.top+=l?n:n.top||0,a.right-=l?n:n.right||0,a.bottom-=l?n:n.bottom||0,a}function D(t,e,n,i,o,r){r=5<arguments.length&&void 0!==r?r:0;if(-1===t.indexOf("auto"))return t;var o=C(n,i,r,o),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},e=Object.keys(a).map(function(t){return E({key:t},a[t],{area:(t=a[t]).width*t.height})}).sort(function(t,e){return e.area-t.area}),o=e.filter(function(t){var e=t.width,t=t.height;return e>=n.clientWidth&&t>=n.clientHeight}),e=(0<o.length?o:e)[0].key,t=t.split("-")[1];return e+(t?"-"+t:"")}function A(t,e,n,i){i=3<arguments.length&&void 0!==i?i:null;return O(n,i?L(e):h(e,d(n)),i)}function k(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),e=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+e,height:t.offsetHeight+n}}function S(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function N(t,e,n){n=n.split("-")[0];var i=k(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",t=r?"height":"width",r=r?"width":"height";return o[a]=e[a]+e[t]/2-i[t]/2,o[s]=n===s?e[s]-i[r]:e[S(s)],o}function x(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function P(t,n,e){return(void 0===e?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=x(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",e))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=t.function||t.fn;t.enabled&&r(e)&&(n.offsets.popper=T(n.offsets.popper),n.offsets.reference=T(n.offsets.reference),n=e(n,t))}),n}function I(t,n){return t.some(function(t){var e=t.name;return t.enabled&&e===n})}function M(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],o=o?""+o+n:t;if(void 0!==document.body.style[o])return o}return null}function q(t){t=t.ownerDocument;return t?t.defaultView:window}function B(t,e,n,i){n.updateBound=i,q(t).addEventListener("resize",n.updateBound,{passive:!0});t=c(t);return function t(e,n,i,o){var r="BODY"===e.nodeName,e=r?e.ownerDocument.defaultView:e;e.addEventListener(n,i,{passive:!0}),r||t(c(e.parentNode),n,i,o),o.push(e)}(t,"scroll",n.updateBound,n.scrollParents),n.scrollElement=t,n.eventsEnabled=!0,n}function H(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,q(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function F(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function W(n,i){Object.keys(i).forEach(function(t){var e="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&F(i[t])&&(e="px"),n.style[t]=i[t]+e})}var R=n&&/Firefox/i.test(navigator.userAgent);function Q(t,e,n){var i=x(t,function(t){return t.name===e}),o=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});return o||(t="`"+e+"`",console.warn("`"+n+"`"+" modifier is required by "+t+" modifier in order to work, be sure to include it before "+t+"!")),o}var U=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],z=U.slice(3);function Y(t,e){e=1<arguments.length&&void 0!==e&&e,t=z.indexOf(t),t=z.slice(t+1).concat(z.slice(0,t));return e?t.reverse():t}var K="flip",V="clockwise",X="counterclockwise";function G(t,o,r,e){var a=[0,0],s=-1!==["right","left"].indexOf(e),n=t.split(/(\+|\-)/).map(function(t){return t.trim()}),e=n.indexOf(x(n,function(t){return-1!==t.search(/,|\s/)}));n[e]&&-1===n[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");t=/\s*,\s*|\s+/;return(-1!==e?[n.slice(0,e).concat([n[e].split(t)[0]]),[n[e].split(t)[1]].concat(n.slice(e+1))]:[n]).map(function(t,e){var n=(1===e?!s:s)?"height":"width",i=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,i=!0,t):i?(t[t.length-1]+=e,i=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var o=+(r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],r=r[2];if(!o)return t;if(0!==r.indexOf("%"))return"vh"!==r&&"vw"!==r?o:("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;var a=void 0;switch(r){case"%p":a=n;break;case"%":case"%r":default:a=i}return T(a)[e]/100*o}(t,n,o,r)})}).forEach(function(n,i){n.forEach(function(t,e){F(t)&&(a[i]+=t*("-"===n[e-1]?-1:1))})}),a}var $={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e,n,i=t.placement,o=i.split("-")[0],r=i.split("-")[1];return r&&(e=(n=t.offsets).reference,i=n.popper,o=(n=-1!==["bottom","top"].indexOf(o))?"width":"height",o={start:w({},n=n?"left":"top",e[n]),end:w({},n,e[n]+e[o]-i[o])},t.offsets.popper=E({},i,o[r])),t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=(r=t.offsets).popper,e=r.reference,r=i.split("-")[0],i=void 0,i=F(+n)?[+n,0]:G(n,o,e,r);return"left"===r?(o.top+=i[0],o.left-=i[1]):"right"===r?(o.top+=i[0],o.left+=i[1]):"top"===r?(o.left+=i[0],o.top-=i[1]):"bottom"===r&&(o.left+=i[0],o.top+=i[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,i){var e=i.boundariesElement||g(t.instance.popper);t.instance.reference===e&&(e=g(e));var n=M("transform"),o=t.instance.popper.style,r=o.top,a=o.left,s=o[n];o.top="",o.left="",o[n]="";var l=C(t.instance.popper,t.instance.reference,i.padding,e,t.positionFixed);o.top=r,o.left=a,o[n]=s,i.boundaries=l;var s=i.priority,u=t.offsets.popper,c={primary:function(t){var e=u[t];return u[t]<l[t]&&!i.escapeWithReference&&(e=Math.max(u[t],l[t])),w({},t,e)},secondary:function(t){var e="right"===t?"left":"top",n=u[e];return u[t]>l[t]&&!i.escapeWithReference&&(n=Math.min(u[e],l[t]-("right"===t?u.width:u.height))),w({},e,n)}};return s.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=E({},u,c[e](t))}),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=(r=t.offsets).popper,n=r.reference,i=t.placement.split("-")[0],o=Math.floor,r=(a=-1!==["top","bottom"].indexOf(i))?"right":"bottom",i=a?"left":"top",a=a?"width":"height";return e[r]<o(n[i])&&(t.offsets.popper[i]=o(n[i])-e[a]),e[i]>o(n[r])&&(t.offsets.popper[i]=o(n[r])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(!Q(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=(c=t.offsets).popper,r=c.reference,a=-1!==["left","right"].indexOf(i),s=a?"height":"width",l=a?"Top":"Left",u=l.toLowerCase(),e=a?"left":"top",c=a?"bottom":"right",i=k(n)[s];return r[c]-i<o[u]&&(t.offsets.popper[u]-=o[u]-(r[c]-i)),r[u]+i>o[c]&&(t.offsets.popper[u]+=r[u]+i-o[c]),t.offsets.popper=T(t.offsets.popper),a=r[u]+r[s]/2-i/2,c=f(t.instance.popper),r=parseFloat(c["margin"+l]),l=parseFloat(c["border"+l+"Width"]),l=a-t.offsets.popper[u]-r-l,l=Math.max(Math.min(o[s]-i,l),0),t.arrowElement=n,t.offsets.arrow=(w(n={},u,Math.round(l)),w(n,e,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(u,c){if(I(u.instance.modifiers,"inner"))return u;if(u.flipped&&u.placement===u.originalPlacement)return u;var f=C(u.instance.popper,u.instance.reference,c.padding,c.boundariesElement,u.positionFixed),d=u.placement.split("-")[0],p=S(d),h=u.placement.split("-")[1]||"",m=[];switch(c.behavior){case K:m=[d,p];break;case V:m=Y(d);break;case X:m=Y(d,!0);break;default:m=c.behavior}return m.forEach(function(t,e){if(d!==t||m.length===e+1)return u;d=u.placement.split("-")[0],p=S(d);var n=u.offsets.popper,i=u.offsets.reference,o=Math.floor,r="left"===d&&o(n.right)>o(i.left)||"right"===d&&o(n.left)<o(i.right)||"top"===d&&o(n.bottom)>o(i.top)||"bottom"===d&&o(n.top)<o(i.bottom),a=o(n.left)<o(f.left),s=o(n.right)>o(f.right),l=o(n.top)<o(f.top),t=o(n.bottom)>o(f.bottom),i="left"===d&&a||"right"===d&&s||"top"===d&&l||"bottom"===d&&t,n=-1!==["top","bottom"].indexOf(d),o=!!c.flipVariations&&(n&&"start"===h&&a||n&&"end"===h&&s||!n&&"start"===h&&l||!n&&"end"===h&&t),l=!!c.flipVariationsByContent&&(n&&"start"===h&&s||n&&"end"===h&&a||!n&&"start"===h&&t||!n&&"end"===h&&l),l=o||l;(r||i||l)&&(u.flipped=!0,(r||i)&&(d=m[e+1]),l&&(h="end"===(l=h)?"start":"start"===l?"end":l),u.placement=d+(h?"-"+h:""),u.offsets.popper=E({},u.offsets.popper,N(u.instance.popper,u.offsets.reference,u.placement)),u=P(u.instance.modifiers,u,"flip"))}),u},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=(a=t.offsets).popper,o=a.reference,r=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[r?"left":"top"]=o[n]-(a?i[r?"width":"height"]:0),t.placement=S(e),t.offsets.popper=T(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Q(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=x(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper;void 0!==(h=x(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration)&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var r,a,s,l,u=void 0!==h?h:e.gpuAcceleration,c=g(t.instance.popper),f=j(c),d={position:o.position},p=(r=t,p=window.devicePixelRatio<2||!R,m=(l=r.offsets).popper,a=l.reference,s=Math.round,h=Math.floor,e=function(t){return t},o=s(a.width),l=s(m.width),a=-1!==["left","right"].indexOf(r.placement),r=-1!==r.placement.indexOf("-"),h=p?a||r||o%2==l%2?s:h:e,e=p?s:e,{left:h(o%2==1&&l%2==1&&!r&&p?m.left-1:m.left),top:e(m.top),bottom:e(m.bottom),right:h(m.right)}),e="bottom"===n?"top":"bottom",h="right"===i?"left":"right",m=M("transform"),n=void 0,i=void 0,i="bottom"==e?"HTML"===c.nodeName?-c.clientHeight+p.bottom:-f.height+p.bottom:p.top,n="right"==h?"HTML"===c.nodeName?-c.clientWidth+p.right:-f.width+p.right:p.left;return u&&m?(d[m]="translate3d("+n+"px, "+i+"px, 0)",d[e]=0,d[h]=0,d.willChange="transform"):(m="right"==h?-1:1,d[e]=i*("bottom"==e?-1:1),d[h]=n*m,d.willChange=e+", "+h),h={"x-placement":t.placement},t.attributes=E({},h,t.attributes),t.styles=E({},d,t.styles),t.arrowStyles=E({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return W(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&W(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,o){return o=A(o,e,t,n.positionFixed),t=D(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding),e.setAttribute("x-placement",t),W(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},t=(t(J,[{key:"update",value:function(){return function(){var t;this.state.isDestroyed||((t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=D(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=N(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=P(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,I(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[M("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return H.call(this)}}]),J);function J(t,e){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};b(this,J),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=o(this.update.bind(this)),this.options=E({},J.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(E({},J.Defaults.modifiers,i.modifiers)).forEach(function(t){n.options.modifiers[t]=E({},J.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return E({name:t},n.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&r(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners(),this.state.eventsEnabled=e}return t.Utils=("undefined"!=typeof window?window:global).PopperUtils,t.placements=U,t.Defaults=$,t}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Alert=e(t.Data,t.EventHandler,t.Base)}(this,function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=i(t),a=i(e);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(e,t){var n=!1,t=t+5;e.addEventListener(o,function t(){n=!0,e.removeEventListener(o,t)}),setTimeout(function(){n||e.dispatchEvent(new Event(o))},t)}var o="transitionend";document.documentElement.dir;var c,f,d,p="bs.alert",e="."+p,n=function(t){function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),l(e.prototype.constructor=e,i);var e,i,o=n.prototype;return o.close=function(t){var e=t?this._getRootElement(t):this._element,t=this._triggerCloseEvent(e);null===t||t.defaultPrevented||this._removeElement(e)},o._getRootElement=function(t){return function(t){t=function(t){var e=t.getAttribute("data-bs-target");if(!e||"#"===e){t=t.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;e=(t=t.includes("#")&&!t.startsWith("#")?"#"+t.split("#")[1]:t)&&"#"!==t?t.trim():null}return e}(t);return t?document.querySelector(t):null}(t)||t.closest(".alert")},o._triggerCloseEvent=function(t){return a.default.trigger(t,"close.bs.alert")},o._removeElement=function(t){var e,n=this;t.classList.remove("show"),t.classList.contains("fade")?(e=function(t){if(!t)return 0;var e=window.getComputedStyle(t),n=e.transitionDuration,i=e.transitionDelay,t=Number.parseFloat(n),e=Number.parseFloat(i);return t||e?(n=n.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(i))):0}(t),a.default.one(t,"transitionend",function(){return n._destroyElement(t)}),u(t,e)):this._destroyElement(t)},o._destroyElement=function(t){t.parentNode&&t.parentNode.removeChild(t),a.default.trigger(t,"closed.bs.alert")},n.jQueryInterface=function(e){return this.each(function(){var t=(t=r.default.getData(this,p))||new n(this);"close"===e&&t[e](this)})},n.handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},e=n,i=[{key:"DATA_KEY",get:function(){return p}}],(o=null)&&s(e.prototype,o),i&&s(e,i),n}(i(n).default);return a.default.on(document,"click.bs.alert.data-api",'[data-bs-dismiss="alert"]',n.handleDismiss(new n)),c="alert",f=n,d=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[c],n.fn[c]=f.jQueryInterface,n.fn[c].Constructor=f,n.fn[c].noConflict=function(){return n.fn[c]=e,f.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",d):d(),n}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Button=e(t.Data,t.EventHandler,t.Base)}(this,function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=i(t),e=i(e);function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}document.documentElement.dir;var o,l,u,c="bs.button",f='[data-bs-toggle="button"]',d=function(t){var e,n,i;function o(){return t.apply(this,arguments)||this}return n=t,(i=o).prototype=Object.create(n.prototype),s(i.prototype.constructor=i,n),o.prototype.toggle=function(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))},o.jQueryInterface=function(e){return this.each(function(){var t=(t=r.default.getData(this,c))||new o(this);"toggle"===e&&t[e]()})},e=o,i=[{key:"DATA_KEY",get:function(){return c}}],(n=null)&&a(e.prototype,n),i&&a(e,i),o}(i(n).default);return e.default.on(document,"click.bs.button.data-api",f,function(t){t.preventDefault();t=t.target.closest(f);(r.default.getData(t,c)||new d(t)).toggle()}),o="button",l=d,u=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[o],n.fn[o]=l.jQueryInterface,n.fn[o].Constructor=l,n.fn[o].noConflict=function(){return n.fn[o]=e,l.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",u):u(),d}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Carousel=e(t.Data,t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}(this,function(t,e,n,i,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=r(t),d=r(e),s=r(n),p=r(i);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){t.dispatchEvent(new Event(v))}function f(r,a,s){Object.keys(s).forEach(function(t){var e,n,i=s[t],o=a[t],e=o&&((n=o)[0]||n).nodeType?"element":null==(e=o)?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(i).test(e))throw new TypeError(r.toUpperCase()+': Option "'+t+'" provided type "'+e+'" but expected type "'+i+'".')})}var m,g,_,v="transitionend",b="rtl"===document.documentElement.dir,y="carousel",w="bs.carousel",E="."+w,i=".data-api",T={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},j={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},O="next",L="prev",C="slid"+E,D="active",A=".active.carousel-item",k=function(n){function r(t,e){t=n.call(this,t)||this;return t._items=null,t._interval=null,t._activeElement=null,t._isPaused=!1,t._isSliding=!1,t.touchTimeout=null,t.touchStartX=0,t.touchDeltaX=0,t._config=t._getConfig(e),t._indicatorsElement=p.default.findOne(".carousel-indicators",t._element),t._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,t._pointerEvent=Boolean(window.PointerEvent),t._addEventListeners(),t}e=n,(t=r).prototype=Object.create(e.prototype),c(t.prototype.constructor=t,e);var t,e,i=r.prototype;return i.next=function(){this._isSliding||this._slide(O)},i.nextWhenVisible=function(){!document.hidden&&function(t){if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){var e=getComputedStyle(t),t=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==t.display&&"hidden"!==e.visibility}return!1}(this._element)&&this.next()},i.prev=function(){this._isSliding||this._slide(L)},i.pause=function(t){t||(this._isPaused=!0),p.default.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(h(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},i.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},i.to=function(t){var e=this;this._activeElement=p.default.findOne(A,this._element);var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)d.default.one(this._element,C,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();this._slide(n<t?O:L,this._items[t])}},i.dispose=function(){n.prototype.dispose.call(this),d.default.off(this._element,E),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},i._getConfig=function(t){return t=u({},T,t),f(y,t,j),t},i._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);t<=40||(t=t/this.touchDeltaX,(this.touchDeltaX=0)<t&&(b?this.next():this.prev()),t<0&&(b?this.prev():this.next()))},i._addEventListeners=function(){var e=this;this._config.keyboard&&d.default.on(this._element,"keydown.bs.carousel",function(t){return e._keydown(t)}),"hover"===this._config.pause&&(d.default.on(this._element,"mouseenter.bs.carousel",function(t){return e.pause(t)}),d.default.on(this._element,"mouseleave.bs.carousel",function(t){return e.cycle(t)})),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()},i._addTouchEventListeners=function(){function t(t){!n._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType?n._pointerEvent||(n.touchStartX=t.touches[0].clientX):n.touchStartX=t.clientX}function e(t){!n._pointerEvent||"pen"!==t.pointerType&&"touch"!==t.pointerType||(n.touchDeltaX=t.clientX-n.touchStartX),n._handleSwipe(),"hover"===n._config.pause&&(n.pause(),n.touchTimeout&&clearTimeout(n.touchTimeout),n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval))}var n=this;p.default.find(".carousel-item img",this._element).forEach(function(t){d.default.on(t,"dragstart.bs.carousel",function(t){return t.preventDefault()})}),this._pointerEvent?(d.default.on(this._element,"pointerdown.bs.carousel",t),d.default.on(this._element,"pointerup.bs.carousel",e),this._element.classList.add("pointer-event")):(d.default.on(this._element,"touchstart.bs.carousel",t),d.default.on(this._element,"touchmove.bs.carousel",function(t){(t=t).touches&&1<t.touches.length?n.touchDeltaX=0:n.touchDeltaX=t.touches[0].clientX-n.touchStartX}),d.default.on(this._element,"touchend.bs.carousel",e))},i._keydown=function(t){/input|textarea/i.test(t.target.tagName)||("ArrowLeft"===t.key?(t.preventDefault(),b?this.next():this.prev()):"ArrowRight"===t.key&&(t.preventDefault(),b?this.prev():this.next()))},i._getItemIndex=function(t){return this._items=t&&t.parentNode?p.default.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)},i._getItemByDirection=function(t,e){var n=t===O,i=t===L,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;t=(o+(t===L?-1:1))%this._items.length;return-1==t?this._items[this._items.length-1]:this._items[t]},i._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(p.default.findOne(A,this._element));return d.default.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:i,to:n})},i._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var e=p.default.findOne(".active",this._indicatorsElement);e.classList.remove(D),e.removeAttribute("aria-current");for(var n=p.default.find("[data-bs-target]",this._indicatorsElement),i=0;i<n.length;i++)if(Number.parseInt(n[i].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){n[i].classList.add(D),n[i].setAttribute("aria-current","true");break}}},i._updateInterval=function(){var t=this._activeElement||p.default.findOne(A,this._element);t&&((t=Number.parseInt(t.getAttribute("data-bs-interval"),10))?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval)},i._slide=function(t,e){var n,i,o=this,r=p.default.findOne(A,this._element),a=this._getItemIndex(r),s=e||r&&this._getItemByDirection(t,r),l=this._getItemIndex(s),e=Boolean(this._interval),u=t===O?"carousel-item-start":"carousel-item-end",c=t===O?"carousel-item-next":"carousel-item-prev",f=t===O?"left":"right";s&&s.classList.contains(D)?this._isSliding=!1:this._triggerSlideEvent(s,f).defaultPrevented||r&&s&&(this._isSliding=!0,e&&this.pause(),this._setActiveIndicatorElement(s),this._activeElement=s,this._element.classList.contains("slide")?(s.classList.add(c),s.offsetHeight,r.classList.add(u),s.classList.add(u),t=function(t){if(!t)return 0;var e=window.getComputedStyle(t),n=e.transitionDuration,i=e.transitionDelay,t=Number.parseFloat(n),e=Number.parseFloat(i);return t||e?(n=n.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(i))):0}(r),d.default.one(r,"transitionend",function(){s.classList.remove(u,c),s.classList.add(D),r.classList.remove(D,c,u),o._isSliding=!1,setTimeout(function(){d.default.trigger(o._element,C,{relatedTarget:s,direction:f,from:a,to:l})},0)}),t=t,i=!1,t+=5,(n=r).addEventListener(v,function t(){i=!0,n.removeEventListener(v,t)}),setTimeout(function(){i||h(n)},t)):(r.classList.remove(D),s.classList.add(D),this._isSliding=!1,d.default.trigger(this._element,C,{relatedTarget:s,direction:f,from:a,to:l})),e&&this.cycle())},r.carouselInterface=function(t,e){var n=a.default.getData(t,w),i=u({},T,s.default.getDataAttributes(t));"object"==typeof e&&(i=u({},i,e));var o="string"==typeof e?e:i.slide,n=n||new r(t,i);if("number"==typeof e)n.to(e);else if("string"==typeof o){if(void 0===n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else i.interval&&i.ride&&(n.pause(),n.cycle())},r.jQueryInterface=function(t){return this.each(function(){r.carouselInterface(this,t)})},r.dataApiClickHandler=function(t){var e,n,i=function(t){t=function(t){var e=t.getAttribute("data-bs-target");if(!e||"#"===e){t=t.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;e=(t=t.includes("#")&&!t.startsWith("#")?"#"+t.split("#")[1]:t)&&"#"!==t?t.trim():null}return e}(t);return t?document.querySelector(t):null}(this);i&&i.classList.contains("carousel")&&(e=u({},s.default.getDataAttributes(i),s.default.getDataAttributes(this)),(n=this.getAttribute("data-bs-slide-to"))&&(e.interval=!1),r.carouselInterface(i,e),n&&a.default.getData(i,w).to(n),t.preventDefault())},t=r,e=[{key:"Default",get:function(){return T}},{key:"DATA_KEY",get:function(){return w}}],(i=null)&&l(t.prototype,i),e&&l(t,e),r}(r(o).default);return d.default.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",k.dataApiClickHandler),d.default.on(window,"load.bs.carousel.data-api",function(){for(var t=p.default.find('[data-bs-ride="carousel"]'),e=0,n=t.length;e<n;e++)k.carouselInterface(t[e],a.default.getData(t[e],w))}),m=y,g=k,_=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[m],n.fn[m]=g.jQueryInterface,n.fn[m].Constructor=g,n.fn[m].noConflict=function(){return n.fn[m]=e,g.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",_):_(),k}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Collapse=e(t.Data,t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}(this,function(t,e,n,i,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var s=r(t),l=r(e),c=r(n),f=r(i);function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(){return(p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=t.getAttribute("data-bs-target");if(!e||"#"===e){t=t.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;e=(t=t.includes("#")&&!t.startsWith("#")?"#"+t.split("#")[1]:t)&&"#"!==t?t.trim():null}return e}function m(t){return(t=a(t))&&document.querySelector(t)?t:null}function g(t){return(t=a(t))?document.querySelector(t):null}function _(t){if(!t)return 0;var e=(i=window.getComputedStyle(t)).transitionDuration,n=i.transitionDelay,t=Number.parseFloat(e),i=Number.parseFloat(n);return t||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0}function v(t){return(t[0]||t).nodeType}function b(e,t){var n=!1,t=t+5;e.addEventListener(u,function t(){n=!0,e.removeEventListener(u,t)}),setTimeout(function(){n||e.dispatchEvent(new Event(u))},t)}var u="transitionend";document.documentElement.dir;var y,w,E,T="collapse",j="bs.collapse",i="."+j,O={toggle:!0,parent:""},L={toggle:"boolean",parent:"(string|element)"},C="show",D="collapse",A="collapsing",k="collapsed",S='[data-bs-toggle="collapse"]',N=function(u){function a(e,t){var n=u.call(this,e)||this;n._isTransitioning=!1,n._config=n._getConfig(t),n._triggerArray=f.default.find(S+'[href="#'+e.id+'"],'+S+'[data-bs-target="#'+e.id+'"]');for(var i=f.default.find(S),o=0,r=i.length;o<r;o++){var a=i[o],s=m(a),l=f.default.find(s).filter(function(t){return t===e});null!==s&&l.length&&(n._selector=s,n._triggerArray.push(a))}return n._parent=n._config.parent?n._getParent():null,n._config.parent||n._addAriaAndCollapsedClass(n._element,n._triggerArray),n._config.toggle&&n.toggle(),n}e=u,(t=a).prototype=Object.create(e.prototype),h(t.prototype.constructor=t,e);var t,e,n=a.prototype;return n.toggle=function(){this._element.classList.contains(C)?this.hide():this.show()},n.show=function(){var e=this;if(!this._isTransitioning&&!this._element.classList.contains(C)){this._parent&&0===(n=f.default.find(".show, .collapsing",this._parent).filter(function(t){return"string"==typeof e._config.parent?t.getAttribute("data-bs-parent")===e._config.parent:t.classList.contains(D)})).length&&(n=null);var t,n,i=f.default.findOne(this._selector);if(n){var o,r=n.find(function(t){return i!==t});if((o=r?s.default.getData(r,j):null)&&o._isTransitioning)return}l.default.trigger(this._element,"show.bs.collapse").defaultPrevented||(n&&n.forEach(function(t){i!==t&&a.collapseInterface(t,"hide"),o||s.default.setData(t,j,null)}),t=this._getDimension(),this._element.classList.remove(D),this._element.classList.add(A),this._element.style[t]=0,this._triggerArray.length&&this._triggerArray.forEach(function(t){t.classList.remove(k),t.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0),r="scroll"+(t[0].toUpperCase()+t.slice(1)),n=_(this._element),l.default.one(this._element,"transitionend",function(){e._element.classList.remove(A),e._element.classList.add(D,C),e._element.style[t]="",e.setTransitioning(!1),l.default.trigger(e._element,"shown.bs.collapse")}),b(this._element,n),this._element.style[t]=this._element[r]+"px")}},n.hide=function(){var t=this;if(!this._isTransitioning&&this._element.classList.contains(C)&&!l.default.trigger(this._element,"hide.bs.collapse").defaultPrevented){var e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",this._element.offsetHeight,this._element.classList.add(A),this._element.classList.remove(D,C);var n=this._triggerArray.length;if(0<n)for(var i=0;i<n;i++){var o=this._triggerArray[i],r=g(o);r&&!r.classList.contains(C)&&(o.classList.add(k),o.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[e]="";e=_(this._element);l.default.one(this._element,"transitionend",function(){t.setTransitioning(!1),t._element.classList.remove(A),t._element.classList.add(D),l.default.trigger(t._element,"hidden.bs.collapse")}),b(this._element,e)}},n.setTransitioning=function(t){this._isTransitioning=t},n.dispose=function(){u.prototype.dispose.call(this),this._config=null,this._parent=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(t){var o,r,a;return(t=p({},O,t)).toggle=Boolean(t.toggle),o=T,r=t,a=L,Object.keys(a).forEach(function(t){var e,n=a[t],i=r[t],e=i&&v(i)?"element":null==(e=i)?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(e))throw new TypeError(o.toUpperCase()+': Option "'+t+'" provided type "'+e+'" but expected type "'+n+'".')}),t},n._getDimension=function(){return this._element.classList.contains("width")?"width":"height"},n._getParent=function(){var n=this,t=this._config.parent;return v(t)?void 0===t.jquery&&void 0===t[0]||(t=t[0]):t=f.default.findOne(t),f.default.find(S+'[data-bs-parent="'+t+'"]',t).forEach(function(t){var e=g(t);n._addAriaAndCollapsedClass(e,[t])}),t},n._addAriaAndCollapsedClass=function(t,e){var n;t&&e.length&&(n=t.classList.contains(C),e.forEach(function(t){n?t.classList.remove(k):t.classList.add(k),t.setAttribute("aria-expanded",n)}))},a.collapseInterface=function(t,e){var n=s.default.getData(t,j),i=p({},O,c.default.getDataAttributes(t),"object"==typeof e&&e?e:{});if(!n&&i.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(i.toggle=!1),n=n||new a(t,i),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}},a.jQueryInterface=function(t){return this.each(function(){a.collapseInterface(this,t)})},t=a,e=[{key:"Default",get:function(){return O}},{key:"DATA_KEY",get:function(){return j}}],(n=null)&&d(t.prototype,n),e&&d(t,e),a}(r(o).default);return l.default.on(document,"click.bs.collapse.data-api",S,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();var n=c.default.getDataAttributes(this),t=m(this);f.default.find(t).forEach(function(t){var e=s.default.getData(t,j),e=e?(null===e._parent&&"string"==typeof n.parent&&(e._config.parent=n.parent,e._parent=e._getParent()),"toggle"):n;N.collapseInterface(t,e)})}),y=T,w=N,E=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[y],n.fn[y]=w.jQueryInterface,n.fn[y].Constructor=w,n.fn[y].noConflict=function(){return n.fn[y]=e,w.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",E):E(),N}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core"),require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["@popperjs/core","./dom/data","./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Dropdown=e(t.Popper,t.Data,t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}(this,function(a,t,e,n,i,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function s(n){if(n&&n.__esModule)return n;var i=Object.create(null);return n&&Object.keys(n).forEach(function(t){var e;"default"!==t&&(e=Object.getOwnPropertyDescriptor(n,t),Object.defineProperty(i,t,e.get?e:{enumerable:!0,get:function(){return n[t]}}))}),i.default=n,Object.freeze(i)}var l=s(a),u=r(t),c=r(e),f=r(n),d=r(i),t=r(o);function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){return(t[0]||t).nodeType}function _(t){if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){var e=getComputedStyle(t),t=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==t.display&&"hidden"!==e.visibility}return!1}function v(){return function(){}}var b,y,w,e="rtl"===document.documentElement.dir,E="dropdown",T="bs.dropdown",j="."+T,n=".data-api",O="Escape",L="ArrowUp",C="ArrowDown",D=new RegExp(L+"|"+C+"|"+O),A="hide"+j,k="hidden"+j,i="click"+j+n,o="keydown"+j+n,S="disabled",N="show",x='[data-bs-toggle="dropdown"]',P=".dropdown-menu",I=e?"top-end":"top-start",M=e?"top-start":"top-end",q=e?"bottom-end":"bottom-start",B=e?"bottom-start":"bottom-end",H=e?"left-start":"right-start",F=e?"right-start":"left-start",W={offset:[0,2],flip:!0,boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null},R={offset:"(array|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)"},Q=function(n){function r(t,e){t=n.call(this,t)||this;return t._popper=null,t._config=t._getConfig(e),t._menu=t._getMenuElement(),t._inNavbar=t._detectNavbar(),t._addEventListeners(),t}e=n,(t=r).prototype=Object.create(e.prototype),m(t.prototype.constructor=t,e);var t,e,i=r.prototype;return i.toggle=function(){var t;this._element.disabled||this._element.classList.contains(S)||(t=this._element.classList.contains(N),r.clearMenus(),t||this.show())},i.show=function(){if(!(this._element.disabled||this._element.classList.contains(S)||this._menu.classList.contains(N))){var t=r.getParentFromElement(this._element),e={relatedTarget:this._element};if(!c.default.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._inNavbar)f.default.setDataAttribute(this._menu,"popper","none");else{if(void 0===l)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var n=this._element;"parent"===this._config.reference?n=t:g(this._config.reference)?(n=this._config.reference,void 0!==this._config.reference.jquery&&(n=this._config.reference[0])):"object"==typeof this._config.reference&&(n=this._config.reference);var i=this._getPopperConfig(),o=i.modifiers.find(function(t){return"applyStyles"===t.name&&!1===t.enabled});this._popper=a.createPopper(n,this._menu,i),o&&f.default.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&(t=[]).concat.apply(t,document.body.children).forEach(function(t){return c.default.on(t,"mouseover",null,v())}),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(N),this._element.classList.toggle(N),c.default.trigger(this._element,"shown.bs.dropdown",e)}}},i.hide=function(){var t;this._element.disabled||this._element.classList.contains(S)||!this._menu.classList.contains(N)||(t={relatedTarget:this._element},c.default.trigger(this._element,A,t).defaultPrevented||(this._popper&&this._popper.destroy(),this._menu.classList.toggle(N),this._element.classList.toggle(N),f.default.removeDataAttribute(this._menu,"popper"),c.default.trigger(this._element,k,t)))},i.dispose=function(){n.prototype.dispose.call(this),c.default.off(this._element,j),this._menu=null,this._popper&&(this._popper.destroy(),this._popper=null)},i.update=function(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()},i._addEventListeners=function(){var e=this;c.default.on(this._element,"click.bs.dropdown",function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},i._getConfig=function(t){var o,r,a;if(t=h({},this.constructor.Default,f.default.getDataAttributes(this._element),t),o=E,r=t,a=this.constructor.DefaultType,Object.keys(a).forEach(function(t){var e,n=a[t],i=r[t],e=i&&g(i)?"element":null==(e=i)?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(e))throw new TypeError(o.toUpperCase()+': Option "'+t+'" provided type "'+e+'" but expected type "'+n+'".')}),"object"==typeof t.reference&&!g(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(E.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.');return t},i._getMenuElement=function(){return d.default.next(this._element,P)[0]},i._getPlacement=function(){var t=this._element.parentNode;if(t.classList.contains("dropend"))return H;if(t.classList.contains("dropstart"))return F;var e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?M:I:e?B:q},i._detectNavbar=function(){return null!==this._element.closest(".navbar")},i._getOffset=function(){var e=this,n=this._config.offset;return"string"==typeof n?n.split(",").map(function(t){return Number.parseInt(t,10)}):"function"==typeof n?function(t){return n(t,e._element)}:n},i._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{altBoundary:this._config.flip,boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),h({},t,"function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig)},r.dropdownInterface=function(t,e){var n=(n=u.default.getData(t,T))||new r(t,"object"==typeof e?e:null);if("string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}},r.jQueryInterface=function(t){return this.each(function(){r.dropdownInterface(this,t)})},r.clearMenus=function(t){if(!t||2!==t.button&&("keyup"!==t.type||"Tab"===t.key))for(var e=d.default.find(x),n=0,i=e.length;n<i;n++){var o,r,a=u.default.getData(e[n],T),s={relatedTarget:e[n]};t&&"click"===t.type&&(s.clickEvent=t),a&&(o=a._menu,e[n].classList.contains(N)&&(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&"Tab"===t.key)&&o.contains(t.target)||c.default.trigger(e[n],A,s).defaultPrevented||("ontouchstart"in document.documentElement&&(r=[]).concat.apply(r,document.body.children).forEach(function(t){return c.default.off(t,"mouseover",null,v())}),e[n].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),o.classList.remove(N),e[n].classList.remove(N),f.default.removeDataAttribute(o,"popper"),c.default.trigger(e[n],k,s))))}},r.getParentFromElement=function(t){return function(t){t=function(t){var e=t.getAttribute("data-bs-target");if(!e||"#"===e){t=t.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;e=(t=t.includes("#")&&!t.startsWith("#")?"#"+t.split("#")[1]:t)&&"#"!==t?t.trim():null}return e}(t);return t?document.querySelector(t):null}(t)||t.parentNode},r.dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!("Space"===t.key||t.key!==O&&(t.key!==C&&t.key!==L||t.target.closest(P))):D.test(t.key))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!this.classList.contains(S))){var e=r.getParentFromElement(this),n=this.classList.contains(N);if(t.key===O)return(this.matches(x)?this:d.default.prev(this,x)[0]).focus(),void r.clearMenus();n||t.key!==L&&t.key!==C?n&&"Space"!==t.key?(n=d.default.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",e).filter(_)).length&&(e=n.indexOf(t.target),t.key===L&&0<e&&e--,t.key===C&&e<n.length-1&&e++,n[e=-1===e?0:e].focus()):r.clearMenus():(this.matches(x)?this:d.default.prev(this,x)[0]).click()}},t=r,e=[{key:"Default",get:function(){return W}},{key:"DefaultType",get:function(){return R}},{key:"DATA_KEY",get:function(){return T}}],(i=null)&&p(t.prototype,i),e&&p(t,e),r}(t.default);return c.default.on(document,o,x,Q.dataApiKeydownHandler),c.default.on(document,o,P,Q.dataApiKeydownHandler),c.default.on(document,i,Q.clearMenus),c.default.on(document,"keyup.bs.dropdown.data-api",Q.clearMenus),c.default.on(document,i,x,function(t){t.preventDefault(),t.stopPropagation(),Q.dropdownInterface(this,"toggle")}),c.default.on(document,i,".dropdown form",function(t){return t.stopPropagation()}),b=E,y=Q,w=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[b],n.fn[b]=y.jQueryInterface,n.fn[b].Constructor=y,n.fn[b].noConflict=function(){return n.fn[b]=e,y.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",w):w(),Q}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Modal=e(t.Data,t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}(this,function(t,e,n,i,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=r(t),s=r(e),l=r(n),u=r(i);function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(){return(f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){if(!t)return 0;var e=(i=window.getComputedStyle(t)).transitionDuration,n=i.transitionDelay,t=Number.parseFloat(e),i=Number.parseFloat(n);return t||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0}function h(e,t){var n=!1,t=t+5;e.addEventListener(y,function t(){n=!0,e.removeEventListener(y,t)}),setTimeout(function(){n||e.dispatchEvent(new Event(y))},t)}function m(r,a,s){Object.keys(s).forEach(function(t){var e,n,i=s[t],o=a[t],e=o&&((n=o)[0]||n).nodeType?"element":null==(e=o)?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(i).test(e))throw new TypeError(r.toUpperCase()+': Option "'+t+'" provided type "'+e+'" but expected type "'+i+'".')})}function g(t){return t.offsetHeight}var _,v,b,y="transitionend",w="rtl"===document.documentElement.dir,E="bs.modal",T="."+E,j={backdrop:!0,keyboard:!0,focus:!0},O={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},L="hidden"+T,C="show"+T,D="focusin"+T,A="resize"+T,k="click.dismiss"+T,S="keydown.dismiss"+T,N="mousedown.dismiss"+T,x="modal-open",P="fade",I="show",M="modal-static",q=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",B=".sticky-top",H=function(i){function o(t,e){var n=i.call(this,t)||this;return n._config=n._getConfig(e),n._dialog=u.default.findOne(".modal-dialog",t),n._backdrop=null,n._isShown=!1,n._isBodyOverflowing=!1,n._ignoreBackdropClick=!1,n._isTransitioning=!1,n._scrollbarWidth=0,n}e=i,(t=o).prototype=Object.create(e.prototype),d(t.prototype.constructor=t,e);var t,e,n=o.prototype;return n.toggle=function(t){return this._isShown?this.hide():this.show(t)},n.show=function(t){var e,n=this;this._isShown||this._isTransitioning||(this._element.classList.contains(P)&&(this._isTransitioning=!0),e=s.default.trigger(this._element,C,{relatedTarget:t}),this._isShown||e.defaultPrevented||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),s.default.on(this._element,k,'[data-bs-dismiss="modal"]',function(t){return n.hide(t)}),s.default.on(this._dialog,N,function(){s.default.one(n._element,"mouseup.dismiss.bs.modal",function(t){t.target===n._element&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)})))},n.hide=function(t){var e=this;t&&t.preventDefault(),this._isShown&&!this._isTransitioning&&(s.default.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,(t=this._element.classList.contains(P))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),s.default.off(document,D),this._element.classList.remove(I),s.default.off(this._element,k),s.default.off(this._dialog,N),t?(t=p(this._element),s.default.one(this._element,"transitionend",function(t){return e._hideModal(t)}),h(this._element,t)):this._hideModal()))},n.dispose=function(){[window,this._element,this._dialog].forEach(function(t){return s.default.off(t,T)}),i.prototype.dispose.call(this),s.default.off(document,D),this._config=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(t){return t=f({},j,t),m("modal",t,O),t},n._showElement=function(t){var e=this,n=this._element.classList.contains(P),i=u.default.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),n&&g(this._element),this._element.classList.add(I),this._config.focus&&this._enforceFocus();i=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,s.default.trigger(e._element,"shown.bs.modal",{relatedTarget:t})};n?(n=p(this._dialog),s.default.one(this._dialog,"transitionend",i),h(this._dialog,n)):i()},n._enforceFocus=function(){var e=this;s.default.off(document,D),s.default.on(document,D,function(t){document===t.target||e._element===t.target||e._element.contains(t.target)||e._element.focus()})},n._setEscapeEvent=function(){var e=this;this._isShown?s.default.on(this._element,S,function(t){e._config.keyboard&&"Escape"===t.key?(t.preventDefault(),e.hide()):e._config.keyboard||"Escape"!==t.key||e._triggerBackdropTransition()}):s.default.off(this._element,S)},n._setResizeEvent=function(){var t=this;this._isShown?s.default.on(window,A,function(){return t._adjustDialog()}):s.default.off(window,A)},n._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop(function(){document.body.classList.remove(x),t._resetAdjustments(),t._resetScrollbar(),s.default.trigger(t._element,L)})},n._removeBackdrop=function(){this._backdrop.parentNode.removeChild(this._backdrop),this._backdrop=null},n._showBackdrop=function(t){var e,n=this,i=this._element.classList.contains(P)?P:"";this._isShown&&this._config.backdrop?(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),document.body.appendChild(this._backdrop),s.default.on(this._element,k,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._triggerBackdropTransition():n.hide())}),i&&g(this._backdrop),this._backdrop.classList.add(I),i?(e=p(this._backdrop),s.default.one(this._backdrop,"transitionend",t),h(this._backdrop,e)):t()):!this._isShown&&this._backdrop?(this._backdrop.classList.remove(I),i=function(){n._removeBackdrop(),t()},this._element.classList.contains(P)?(e=p(this._backdrop),s.default.one(this._backdrop,"transitionend",i),h(this._backdrop,e)):i()):t()},n._triggerBackdropTransition=function(){var t,e,n=this;s.default.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented||((t=this._element.scrollHeight>document.documentElement.clientHeight)||(this._element.style.overflowY="hidden"),this._element.classList.add(M),e=p(this._dialog),s.default.off(this._element,"transitionend"),s.default.one(this._element,"transitionend",function(){n._element.classList.remove(M),t||(s.default.one(n._element,"transitionend",function(){n._element.style.overflowY=""}),h(n._element,e))}),h(this._element,e),this._element.focus())},n._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;(!this._isBodyOverflowing&&t&&!w||this._isBodyOverflowing&&!t&&w)&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),(this._isBodyOverflowing&&!t&&!w||!this._isBodyOverflowing&&t&&w)&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var e=this;this._isBodyOverflowing&&(this._setElementAttributes(q,"paddingRight",function(t){return t+e._scrollbarWidth}),this._setElementAttributes(B,"marginRight",function(t){return t-e._scrollbarWidth}),this._setElementAttributes("body","paddingRight",function(t){return t+e._scrollbarWidth})),document.body.classList.add(x)},n._setElementAttributes=function(t,i,o){u.default.find(t).forEach(function(t){var e=t.style[i],n=window.getComputedStyle(t)[i];l.default.setDataAttribute(t,i,e),t.style[i]=o(Number.parseFloat(n))+"px"})},n._resetScrollbar=function(){this._resetElementAttributes(q,"paddingRight"),this._resetElementAttributes(B,"marginRight"),this._resetElementAttributes("body","paddingRight")},n._resetElementAttributes=function(t,n){u.default.find(t).forEach(function(t){var e=l.default.getDataAttribute(t,n);void 0===e&&t===document.body?t.style[n]="":(l.default.removeDataAttribute(t,n),t.style[n]=e)})},n._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o.jQueryInterface=function(n,i){return this.each(function(){var t=a.default.getData(this,E),e=f({},j,l.default.getDataAttributes(this),"object"==typeof n&&n?n:{}),t=t||new o(this,e);if("string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](i)}})},t=o,e=[{key:"Default",get:function(){return j}},{key:"DATA_KEY",get:function(){return E}}],(n=null)&&c(t.prototype,n),e&&c(t,e),o}(r(o).default);return s.default.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(t){var e=this,n=function(t){t=function(t){var e=t.getAttribute("data-bs-target");if(!e||"#"===e){t=t.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;e=(t=t.includes("#")&&!t.startsWith("#")?"#"+t.split("#")[1]:t)&&"#"!==t?t.trim():null}return e}(t);return t?document.querySelector(t):null}(this);"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault(),s.default.one(n,C,function(t){t.defaultPrevented||s.default.one(n,L,function(){!function(t){if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){var e=getComputedStyle(t),t=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==t.display&&"hidden"!==e.visibility}return!1}(e)||e.focus()})});var i=a.default.getData(n,E);i||(t=f({},l.default.getDataAttributes(n),l.default.getDataAttributes(this)),i=new H(n,t)),i.toggle(this)}),_="modal",v=H,b=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[_],n.fn[_]=v.jQueryInterface,n.fn[_].Constructor=v,n.fn[_].noConflict=function(){return n.fn[_]=e,v.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",b):b(),H}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/selector-engine.js"),require("./tooltip.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/selector-engine","./tooltip"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Popover=e(t.Data,t.SelectorEngine,t.Tooltip)}(this,function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=i(t),a=i(e),n=i(n);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}document.documentElement.dir;var u,c,f,d="popover",p="bs.popover",h="."+p,m="bs-popover",g=new RegExp("(^|\\s)"+m+"\\S+","g"),_=o({},n.default.Default,{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),v=o({},n.default.DefaultType,{content:"(string|element|function)"}),b={HIDE:"hide"+h,HIDDEN:"hidden"+h,SHOW:"show"+h,SHOWN:"shown"+h,INSERTED:"inserted"+h,CLICK:"click"+h,FOCUSIN:"focusin"+h,FOCUSOUT:"focusout"+h,MOUSEENTER:"mouseenter"+h,MOUSELEAVE:"mouseleave"+h},n=function(t){function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),l(e.prototype.constructor=e,n);var e,n,o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.setContent=function(){var t=this.getTipElement();this.setElementContent(a.default.findOne(".popover-header",t),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(a.default.findOne(".popover-body",t),e),t.classList.remove("fade","show")},o._addAttachmentClass=function(t){this.getTipElement().classList.add(m+"-"+this.updateAttachment(t))},o._getContent=function(){return this._element.getAttribute("data-bs-content")||this.config.content},o._cleanTipClass=function(){var e=this.getTipElement(),t=e.getAttribute("class").match(g);null!==t&&0<t.length&&t.map(function(t){return t.trim()}).forEach(function(t){return e.classList.remove(t)})},i.jQueryInterface=function(n){return this.each(function(){var t=r.default.getData(this,p),e="object"==typeof n?n:null;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),r.default.setData(this,p,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},e=i,n=[{key:"Default",get:function(){return _}},{key:"NAME",get:function(){return d}},{key:"DATA_KEY",get:function(){return p}},{key:"Event",get:function(){return b}},{key:"EVENT_KEY",get:function(){return h}},{key:"DefaultType",get:function(){return v}}],(o=null)&&s(e.prototype,o),n&&s(e,n),i}(n.default);return u=d,c=n,f=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[u],n.fn[u]=c.jQueryInterface,n.fn[u].Constructor=c,n.fn[u].noConflict=function(){return n.fn[u]=e,c.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",f):f(),n}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).ScrollSpy=e(t.Data,t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}(this,function(t,e,n,i,o){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var a=r(t),s=r(e),l=r(n),u=r(i);function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(){return(f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){return(t[0]||t).nodeType}document.documentElement.dir;var h,m,g,_="scrollspy",v="bs.scrollspy",b="."+v,y={offset:10,method:"auto",target:""},w={offset:"number",method:"string",target:"(string|element)"},E="dropdown-item",T="active",j=".nav-link",O=".list-group-item",L="position",C=function(i){function n(t,e){var n=i.call(this,t)||this;return n._scrollElement="BODY"===t.tagName?window:t,n._config=n._getConfig(e),n._selector=n._config.target+" "+j+", "+n._config.target+" "+O+", "+n._config.target+" ."+E,n._offsets=[],n._targets=[],n._activeTarget=null,n._scrollHeight=0,s.default.on(n._scrollElement,"scroll.bs.scrollspy",function(){return n._process()}),n.refresh(),n._process(),n}e=i,(t=n).prototype=Object.create(e.prototype),d(t.prototype.constructor=t,e);var t,e,o=n.prototype;return o.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":L,i="auto"===this._config.method?t:this._config.method,o=i===L?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),u.default.find(this._selector).map(function(t){var e=function(t){t=function(t){var e=t.getAttribute("data-bs-target");if(!e||"#"===e){t=t.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;e=(t=t.includes("#")&&!t.startsWith("#")?"#"+t.split("#")[1]:t)&&"#"!==t?t.trim():null}return e}(t);return t&&document.querySelector(t)?t:null}(t),n=e?u.default.findOne(e):null;if(n){t=n.getBoundingClientRect();if(t.width||t.height)return[l.default[i](n).top+o,e]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},o.dispose=function(){i.prototype.dispose.call(this),s.default.off(this._scrollElement,b),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},o._getConfig=function(t){var e,o,r,a;return"string"!=typeof(t=f({},y,"object"==typeof t&&t?t:{})).target&&p(t.target)&&((e=t.target.id)||(e=function(t){for(;t+=Math.floor(1e6*Math.random()),document.getElementById(t););return t}(_),t.target.id=e),t.target="#"+e),o=_,r=t,a=w,Object.keys(a).forEach(function(t){var e,n=a[t],i=r[t],e=i&&p(i)?"element":null==(e=i)?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(e))throw new TypeError(o.toUpperCase()+': Option "'+t+'" provided type "'+e+'" but expected type "'+n+'".')}),t},o._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},o._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},o._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},o._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),n<=t){n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&(void 0===this._offsets[i+1]||t<this._offsets[i+1])&&this._activate(this._targets[i])}},o._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map(function(t){return t+'[data-bs-target="'+e+'"],'+t+'[href="'+e+'"]'}),t=u.default.findOne(t.join(","));t.classList.contains(E)?(u.default.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(T),t.classList.add(T)):(t.classList.add(T),u.default.parents(t,".nav, .list-group").forEach(function(t){u.default.prev(t,j+", "+O).forEach(function(t){return t.classList.add(T)}),u.default.prev(t,".nav-item").forEach(function(t){u.default.children(t,j).forEach(function(t){return t.classList.add(T)})})})),s.default.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})},o._clear=function(){u.default.find(this._selector).filter(function(t){return t.classList.contains(T)}).forEach(function(t){return t.classList.remove(T)})},n.jQueryInterface=function(e){return this.each(function(){var t=(t=a.default.getData(this,v))||new n(this,"object"==typeof e&&e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},t=n,e=[{key:"Default",get:function(){return y}},{key:"DATA_KEY",get:function(){return v}}],(o=null)&&c(t.prototype,o),e&&c(t,e),n}(r(o).default);return s.default.on(window,"load.bs.scrollspy.data-api",function(){u.default.find('[data-bs-spy="scroll"]').forEach(function(t){return new C(t,l.default.getDataAttributes(t))})}),h=_,m=C,g=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[h],n.fn[h]=m.jQueryInterface,n.fn[h].Constructor=m,n.fn[h].noConflict=function(){return n.fn[h]=e,m.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",g):g(),C}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Tab=e(t.Data,t.EventHandler,t.SelectorEngine,t.Base)}(this,function(t,e,n,i){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=o(t),a=o(e),s=o(n);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(e,t){var n=!1,t=t+5;e.addEventListener(f,function t(){n=!0,e.removeEventListener(f,t)}),setTimeout(function(){n||e.dispatchEvent(new Event(f))},t)}var f="transitionend";document.documentElement.dir;var d,p,h,m="bs.tab",n="."+m,g="active",_=".active",v=":scope > li > .active",b=function(t){function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),u(e.prototype.constructor=e,i);var e,i,o=n.prototype;return o.show=function(){var t,e,n,i,o=this;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(g)||this._element.classList.contains("disabled")||(t=function(t){t=function(t){var e=t.getAttribute("data-bs-target");if(!e||"#"===e){t=t.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;e=(t=t.includes("#")&&!t.startsWith("#")?"#"+t.split("#")[1]:t)&&"#"!==t?t.trim():null}return e}(t);return t?document.querySelector(t):null}(this._element),(i=this._element.closest(".nav, .list-group"))&&(n="UL"===i.nodeName||"OL"===i.nodeName?v:_,e=(e=s.default.find(n,i))[e.length-1]),n=e?a.default.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null,a.default.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==n&&n.defaultPrevented||(this._activate(this._element,i),i=function(){a.default.trigger(e,"hidden.bs.tab",{relatedTarget:o._element}),a.default.trigger(o._element,"shown.bs.tab",{relatedTarget:e})},t?this._activate(t,t.parentNode,i):i()))},o._activate=function(t,e,n){var i=this,o=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?s.default.children(e,_):s.default.find(v,e))[0],r=n&&o&&o.classList.contains("fade"),e=function(){return i._transitionComplete(t,o,n)};o&&r?(r=function(t){if(!t)return 0;var e=window.getComputedStyle(t),n=e.transitionDuration,i=e.transitionDelay,t=Number.parseFloat(n),e=Number.parseFloat(i);return t||e?(n=n.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(i))):0}(o),o.classList.remove("show"),a.default.one(o,"transitionend",e),c(o,r)):e()},o._transitionComplete=function(t,e,n){var i;e&&(e.classList.remove(g),(i=s.default.findOne(":scope > .dropdown-menu .active",e.parentNode))&&i.classList.remove(g),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)),t.classList.add(g),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),t.offsetHeight,t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&t.parentNode.classList.contains("dropdown-menu")&&(t.closest(".dropdown")&&s.default.find(".dropdown-toggle").forEach(function(t){return t.classList.add(g)}),t.setAttribute("aria-expanded",!0)),n&&n()},n.jQueryInterface=function(e){return this.each(function(){var t=r.default.getData(this,m)||new n(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},e=n,i=[{key:"DATA_KEY",get:function(){return m}}],(o=null)&&l(e.prototype,o),i&&l(e,i),n}(o(i).default);return a.default.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(t){t.preventDefault(),(r.default.getData(this,m)||new b(this)).show()}),d="tab",p=b,h=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[d],n.fn[d]=p.jQueryInterface,n.fn[d].Constructor=p,n.fn[d].noConflict=function(){return n.fn[d]=e,p.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",h):h(),b}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["./dom/data","./dom/event-handler","./dom/manipulator","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Toast=e(t.Data,t.EventHandler,t.Manipulator,t.Base)}(this,function(t,e,n,i){"use strict";function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=o(t),a=o(e),s=o(n);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){if(!t)return 0;var e=(i=window.getComputedStyle(t)).transitionDuration,n=i.transitionDelay,t=Number.parseFloat(e),i=Number.parseFloat(n);return t||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0}function d(e,t){var n=!1,t=t+5;e.addEventListener(h,function t(){n=!0,e.removeEventListener(h,t)}),setTimeout(function(){n||e.dispatchEvent(new Event(h))},t)}function p(r,a,s){Object.keys(s).forEach(function(t){var e,n,i=s[t],o=a[t],e=o&&((n=o)[0]||n).nodeType?"element":null==(e=o)?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(i).test(e))throw new TypeError(r.toUpperCase()+': Option "'+t+'" provided type "'+e+'" but expected type "'+i+'".')})}var h="transitionend";document.documentElement.dir;var m,g,_,v="bs.toast",n="."+v,b="click.dismiss"+n,y="show",w="showing",E={animation:"boolean",autohide:"boolean",delay:"number"},T={animation:!0,autohide:!0,delay:5e3},i=function(n){function i(t,e){t=n.call(this,t)||this;return t._config=t._getConfig(e),t._timeout=null,t._setListeners(),t}e=n,(t=i).prototype=Object.create(e.prototype),c(t.prototype.constructor=t,e);var t,e,o=i.prototype;return o.show=function(){var t,e,n=this;a.default.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),t=function(){n._element.classList.remove(w),n._element.classList.add(y),a.default.trigger(n._element,"shown.bs.toast"),n._config.autohide&&(n._timeout=setTimeout(function(){n.hide()},n._config.delay))},this._element.classList.remove("hide"),this._element.offsetHeight,this._element.classList.add(w),this._config.animation?(e=f(this._element),a.default.one(this._element,"transitionend",t),d(this._element,e)):t())},o.hide=function(){var t,e,n=this;this._element.classList.contains(y)&&(a.default.trigger(this._element,"hide.bs.toast").defaultPrevented||(t=function(){n._element.classList.add("hide"),a.default.trigger(n._element,"hidden.bs.toast")},this._element.classList.remove(y),this._config.animation?(e=f(this._element),a.default.one(this._element,"transitionend",t),d(this._element,e)):t()))},o.dispose=function(){this._clearTimeout(),this._element.classList.contains(y)&&this._element.classList.remove(y),a.default.off(this._element,b),n.prototype.dispose.call(this),this._config=null},o._getConfig=function(t){return t=u({},T,s.default.getDataAttributes(this._element),"object"==typeof t&&t?t:{}),p("toast",t,this.constructor.DefaultType),t},o._setListeners=function(){var t=this;a.default.on(this._element,b,'[data-bs-dismiss="toast"]',function(){return t.hide()})},o._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},i.jQueryInterface=function(e){return this.each(function(){var t=(t=r.default.getData(this,v))||new i(this,"object"==typeof e&&e);if("string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e](this)}})},t=i,e=[{key:"DefaultType",get:function(){return E}},{key:"Default",get:function(){return T}},{key:"DATA_KEY",get:function(){return v}}],(o=null)&&l(t.prototype,o),e&&l(t,e),i}(o(i).default);return m="toast",g=i,_=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[m],n.fn[m]=g.jQueryInterface,n.fn[m].Constructor=g,n.fn[m].noConflict=function(){return n.fn[m]=e,g.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",_):_(),i}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core"),require("./dom/data.js"),require("./dom/event-handler.js"),require("./dom/manipulator.js"),require("./dom/selector-engine.js"),require("./base-component.js")):"function"==typeof define&&define.amd?define(["@popperjs/core","./dom/data","./dom/event-handler","./dom/manipulator","./dom/selector-engine","./base-component"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).Tooltip=e(t.Popper,t.Data,t.EventHandler,t.Manipulator,t.SelectorEngine,t.Base)}(this,function(r,t,e,n,i,o){"use strict";function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function s(n){if(n&&n.__esModule)return n;var i=Object.create(null);return n&&Object.keys(n).forEach(function(t){var e;"default"!==t&&(e=Object.getOwnPropertyDescriptor(n,t),Object.defineProperty(i,t,e.get?e:{enumerable:!0,get:function(){return n[t]}}))}),i.default=n,Object.freeze(i)}var l=s(r),u=a(t),c=a(e),f=a(n),d=a(i),n=a(o);function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){if(!t)return 0;var e=(i=window.getComputedStyle(t)).transitionDuration,n=i.transitionDelay,t=Number.parseFloat(e),i=Number.parseFloat(n);return t||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0}function _(t){return(t[0]||t).nodeType}function v(e,t){var n=!1,t=t+5;e.addEventListener(w,function t(){n=!0,e.removeEventListener(w,t)}),setTimeout(function(){n||e.dispatchEvent(new Event(w))},t)}function b(t){return document.documentElement.attachShadow?"function"!=typeof t.getRootNode?t instanceof ShadowRoot?t:t.parentNode?b(t.parentNode):null:(t=t.getRootNode())instanceof ShadowRoot?t:null:null}function y(){return function(){}}var w="transitionend",i="rtl"===document.documentElement.dir,E=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),T=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,j=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,o={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function O(t,r,e){if(!t.length)return t;if(e&&"function"==typeof e)return e(t);for(var e=(new window.DOMParser).parseFromString(t,"text/html"),a=Object.keys(r),s=(t=[]).concat.apply(t,e.body.querySelectorAll("*")),n=function(t,e){var n=s[t],i=n.nodeName.toLowerCase();if(!a.includes(i))return n.parentNode.removeChild(n),"continue";var t=(t=[]).concat.apply(t,n.attributes),o=[].concat(r["*"]||[],r[i]||[]);t.forEach(function(t){!function(t,e){var n=t.nodeName.toLowerCase();if(e.includes(n))return!E.has(n)||Boolean(T.test(t.nodeValue)||j.test(t.nodeValue));for(var i=e.filter(function(t){return t instanceof RegExp}),o=0,r=i.length;o<r;o++)if(i[o].test(n))return!0;return!1}(t,o)&&n.removeAttribute(t.nodeName)})},i=0,o=s.length;i<o;i++)n(i);return e.body.innerHTML}var L,C,D,A="tooltip",k="bs.tooltip",S="."+k,N="bs-tooltip",x=new RegExp("(^|\\s)"+N+"\\S+","g"),P=new Set(["sanitize","allowList","sanitizeFn"]),I={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},M={AUTO:"auto",TOP:"top",RIGHT:i?"left":"right",BOTTOM:"bottom",LEFT:i?"right":"left"},q={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:o,popperConfig:null},B={HIDE:"hide"+S,HIDDEN:"hidden"+S,SHOW:"show"+S,SHOWN:"shown"+S,INSERTED:"inserted"+S,CLICK:"click"+S,FOCUSIN:"focusin"+S,FOCUSOUT:"focusout"+S,MOUSEENTER:"mouseenter"+S,MOUSELEAVE:"mouseleave"+S},H="fade",F="show",W="show",R="hover",Q="focus",n=function(n){function i(t,e){if(void 0===l)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(t=n.call(this,t)||this)._isEnabled=!0,t._timeout=0,t._hoverState="",t._activeTrigger={},t._popper=null,t.config=t._getConfig(e),t.tip=null,t._setListeners(),t}e=n,(t=i).prototype=Object.create(e.prototype),m(t.prototype.constructor=t,e);var t,e,o=i.prototype;return o.enable=function(){this._isEnabled=!0},o.disable=function(){this._isEnabled=!1},o.toggleEnabled=function(){this._isEnabled=!this._isEnabled},o.toggle=function(t){this._isEnabled&&(t?((t=this._initializeOnDelegatedTarget(t))._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)):this.getTipElement().classList.contains(F)?this._leave(null,this):this._enter(null,this))},o.dispose=function(){clearTimeout(this._timeout),c.default.off(this._element,this.constructor.EVENT_KEY),c.default.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,n.prototype.dispose.call(this)},o.show=function(){var t,e,n,i,o=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");this.isWithContent()&&this._isEnabled&&(n=c.default.trigger(this._element,this.constructor.Event.SHOW),t=(null===(e=b(this._element))?this._element.ownerDocument.documentElement:e).contains(this._element),!n.defaultPrevented&&t&&(e=this.getTipElement(),n=function(t){for(;t+=Math.floor(1e6*Math.random()),document.getElementById(t););return t}(this.constructor.NAME),e.setAttribute("id",n),this._element.setAttribute("aria-describedby",n),this.setContent(),this.config.animation&&e.classList.add(H),t="function"==typeof this.config.placement?this.config.placement.call(this,e,this._element):this.config.placement,n=this._getAttachment(t),this._addAttachmentClass(n),t=this._getContainer(),u.default.setData(e,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||t.appendChild(e),c.default.trigger(this._element,this.constructor.Event.INSERTED),this._popper=r.createPopper(this._element,e,this._getPopperConfig(n)),e.classList.add(F),(n="function"==typeof this.config.customClass?this.config.customClass():this.config.customClass)&&(e=e.classList).add.apply(e,n.split(" ")),"ontouchstart"in document.documentElement&&(i=[]).concat.apply(i,document.body.children).forEach(function(t){c.default.on(t,"mouseover",y())}),n=function(){var t=o._hoverState;o._hoverState=null,c.default.trigger(o._element,o.constructor.Event.SHOWN),"out"===t&&o._leave(null,o)},this.tip.classList.contains(H)?(i=g(this.tip),c.default.one(this.tip,"transitionend",n),v(this.tip,i)):n()))},o.hide=function(){var t,e,n,i=this;this._popper&&(t=this.getTipElement(),e=function(){i._hoverState!==W&&t.parentNode&&t.parentNode.removeChild(t),i._cleanTipClass(),i._element.removeAttribute("aria-describedby"),c.default.trigger(i._element,i.constructor.Event.HIDDEN),i._popper&&(i._popper.destroy(),i._popper=null)},c.default.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented||(t.classList.remove(F),"ontouchstart"in document.documentElement&&(n=[]).concat.apply(n,document.body.children).forEach(function(t){return c.default.off(t,"mouseover",y)}),this._activeTrigger.click=!1,this._activeTrigger[Q]=!1,this._activeTrigger[R]=!1,this.tip.classList.contains(H)?(n=g(t),c.default.one(t,"transitionend",e),v(t,n)):e(),this._hoverState=""))},o.update=function(){null!==this._popper&&this._popper.update()},o.isWithContent=function(){return Boolean(this.getTitle())},o.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip},o.setContent=function(){var t=this.getTipElement();this.setElementContent(d.default.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove(H,F)},o.setElementContent=function(t,e){if(null!==t)return"object"==typeof e&&_(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=O(e,this.config.allowList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)},o.getTitle=function(){return this._element.getAttribute("data-bs-original-title")||("function"==typeof this.config.title?this.config.title.call(this._element):this.config.title)},o.updateAttachment=function(t){return"right"===t?"end":"left"===t?"start":t},o._initializeOnDelegatedTarget=function(t,e){var n=this.constructor.DATA_KEY;return(e=e||u.default.getData(t.delegateTarget,n))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),u.default.setData(t.delegateTarget,n,e)),e},o._getOffset=function(){var e=this,n=this.config.offset;return"string"==typeof n?n.split(",").map(function(t){return Number.parseInt(t,10)}):"function"==typeof n?function(t){return n(t,e._element)}:n},o._getPopperConfig=function(t){var e=this,t={placement:t,modifiers:[{name:"flip",options:{altBoundary:!0,fallbackPlacements:this.config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this.config.boundary}},{name:"arrow",options:{element:"."+this.constructor.NAME+"-arrow"}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function(t){return e._handlePopperPlacementChange(t)}}],onFirstUpdate:function(t){t.options.placement!==t.placement&&e._handlePopperPlacementChange(t)}};return h({},t,"function"==typeof this.config.popperConfig?this.config.popperConfig(t):this.config.popperConfig)},o._addAttachmentClass=function(t){this.getTipElement().classList.add(N+"-"+this.updateAttachment(t))},o._getContainer=function(){return!1===this.config.container?document.body:_(this.config.container)?this.config.container:d.default.findOne(this.config.container)},o._getAttachment=function(t){return M[t.toUpperCase()]},o._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){var e;"click"===t?c.default.on(n._element,n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)}):"manual"!==t&&(e=t===R?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,t=t===R?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,c.default.on(n._element,e,n.config.selector,function(t){return n._enter(t)}),c.default.on(n._element,t,n.config.selector,function(t){return n._leave(t)}))}),this._hideModalHandler=function(){n._element&&n.hide()},c.default.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=h({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},o._fixTitle=function(){var t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");!t&&"string"==e||(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))},o._enter=function(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?Q:R]=!0),e.getTipElement().classList.contains(F)||e._hoverState===W?e._hoverState=W:(clearTimeout(e._timeout),e._hoverState=W,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===W&&e.show()},e.config.delay.show):e.show())},o._leave=function(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?Q:R]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},o._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},o._getConfig=function(t){var o,r,a,e=f.default.getDataAttributes(this._element);return Object.keys(e).forEach(function(t){P.has(t)&&delete e[t]}),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t=h({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),o=A,r=t,a=this.constructor.DefaultType,Object.keys(a).forEach(function(t){var e,n=a[t],i=r[t],e=i&&_(i)?"element":null==(e=i)?""+e:{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(e))throw new TypeError(o.toUpperCase()+': Option "'+t+'" provided type "'+e+'" but expected type "'+n+'".')}),t.sanitize&&(t.template=O(t.template,t.allowList,t.sanitizeFn)),t},o._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},o._cleanTipClass=function(){var e=this.getTipElement(),t=e.getAttribute("class").match(x);null!==t&&0<t.length&&t.map(function(t){return t.trim()}).forEach(function(t){return e.classList.remove(t)})},o._handlePopperPlacementChange=function(t){t=t.state;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))},i.jQueryInterface=function(n){return this.each(function(){var t=u.default.getData(this,k),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t=t||new i(this,e),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},t=i,e=[{key:"Default",get:function(){return q}},{key:"NAME",get:function(){return A}},{key:"DATA_KEY",get:function(){return k}},{key:"Event",get:function(){return B}},{key:"EVENT_KEY",get:function(){return S}},{key:"DefaultType",get:function(){return I}}],(o=null)&&p(t.prototype,o),e&&p(t,e),i}(n.default);return L=A,C=n,D=function(){var t,e,n=(t=window.jQuery)&&!document.body.hasAttribute("data-bs-no-jquery")?t:null;n&&(e=n.fn[L],n.fn[L]=C.jQueryInterface,n.fn[L].Constructor=C,n.fn[L].noConflict=function(){return n.fn[L]=e,C.jQueryInterface})},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",D):D(),n});
+function bruh_moment(){alert("this is a bruh moment")}const downloadToFile=(e,t,n)=>{const o=document.createElement("a");n=new Blob([e],{type:n});o.href=URL.createObjectURL(n),o.download=t,o.click(),URL.revokeObjectURL(o.href)};function get_smiles_from_element_text(e){e=`https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/${document.getElementById(e).value}/property/CanonicalSMILES/JSON`;console.log(e),fetch(e).then(e=>e.json()).then(e=>{console.log("Aye, got that dub from PubChem"),document.getElementById("inputSMILES").value=e.PropertyTable.Properties[0].CanonicalSMILES}).catch(e=>{throw bruh_moment(),e})}function draw_me_like_one_of_your_french_girls(e){e.condense_abbreviations();var t=document.getElementById("draw-output"),e=e.get_svg();t.outerHTML="<div id='drawing-1'>"+e+"</div>",document.getElementById("drawing-1").children[0].setAttribute("height","100%"),document.getElementById("drawing-1").children[0].setAttribute("width","100%")}function calculate_and_disperse(e){const t=["NumUnspecifiedAtomStereoCenters","NumAliphaticHeterocycles","NumSaturatedHeterocycles","NumAromaticHeterocycles","NumAmideBonds","NumAromaticRings","NumAliphaticRings","NumSaturatedRings","NumSpiroAtoms","NumBridgeheadAtoms","NumAtomStereoCenters"];try{var n=JSON.parse(e.get_descriptors())}catch(e){alert("oo wee, failed to calculate descriptors senpai")}let o=document.getElementById("analyse_table");var r=Object.keys(n);for(let e=0;e<r.length;e++){var a,d,i,l=r[e];-1!==t.indexOf(l)||(a=(i=o.insertRow(-1)).insertCell(0),d=i.insertCell(-1),i=document.createTextNode(l),l=document.createTextNode(n[l]),a.appendChild(i),d.appendChild(l))}}function convert_me_senpai(r){var a=OpenBabelModule();a.onRuntimeInitialized=function(){var e=new a.ObConversionWrapper;try{var t=r;e.setInFormat("","smiles");var n=new a.OBMol;e.readString(n,t),e.setOutFormat("","pdbqt");var o=e.writeString(n,!1);return document.getElementById("download-pdbqt").disabled=!1,o}finally{e.delete()}}}function analyse_me_senpai(e){var t=document.getElementById(e).value,e=Module.get_mol(t);draw_me_like_one_of_your_french_girls(e),calculate_and_disperse(e),smiles_text=convert_me_senpai(t)}function download_pdbqt(){var e;e=""===document.getElementById("inputName").value?"compound.pdbqt":`${document.getElementById("inputName").value}.pdbqt`;try{downloadToFile(smiles_text,e,"chemical/x-pdbqt")}catch(e){console.error(e),bruh_moment()}}
//# sourceMappingURL=main.min.js.map