mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
25 lines
105 KiB
JavaScript
25 lines
105 KiB
JavaScript
(()=>{var ds=Object.create;var ce=Object.defineProperty,hs=Object.defineProperties,ps=Object.getOwnPropertyDescriptor,ms=Object.getOwnPropertyDescriptors,gs=Object.getOwnPropertyNames,hn=Object.getOwnPropertySymbols,_s=Object.getPrototypeOf,pn=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable;var mn=(i,t,e)=>t in i?ce(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,O=(i,t)=>{for(var e in t||(t={}))pn.call(t,e)&&mn(i,e,t[e]);if(hn)for(var e of hn(t))Es.call(t,e)&&mn(i,e,t[e]);return i},je=(i,t)=>hs(i,ms(t)),gn=i=>ce(i,"__esModule",{value:!0});var Ot=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),vs=(i,t)=>{gn(i);for(var e in t)ce(i,e,{get:t[e],enumerable:!0})},ys=(i,t,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of gs(t))!pn.call(i,n)&&n!=="default"&&ce(i,n,{get:()=>t[n],enumerable:!(e=ps(t,n))||e.enumerable});return i},Ts=i=>ys(gn(ce(i!=null?ds(_s(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var Ti=(i,t,e)=>new Promise((n,o)=>{var s=u=>{try{l(e.next(u))}catch(p){o(p)}},r=u=>{try{l(e.throw(u))}catch(p){o(p)}},l=u=>u.done?n(u.value):Promise.resolve(u.value).then(s,r);l((e=e.apply(i,t)).next())});var nn=Ot((Zo,li)=>{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof li=="object"&&li.exports?li.exports=t():i.EvEmitter=t()})(typeof window!="undefined"?window:Zo,function(){"use strict";function i(){}var t=i.prototype;return t.on=function(e,n){if(!(!e||!n)){var o=this._events=this._events||{},s=o[e]=o[e]||[];return s.indexOf(n)==-1&&s.push(n),this}},t.once=function(e,n){if(!(!e||!n)){this.on(e,n);var o=this._onceEvents=this._onceEvents||{},s=o[e]=o[e]||{};return s[n]=!0,this}},t.off=function(e,n){var o=this._events&&this._events[e];if(!(!o||!o.length)){var s=o.indexOf(n);return s!=-1&&o.splice(s,1),this}},t.emitEvent=function(e,n){var o=this._events&&this._events[e];if(!(!o||!o.length)){o=o.slice(0),n=n||[];for(var s=this._onceEvents&&this._onceEvents[e],r=0;r<o.length;r++){var l=o[r],u=s&&s[l];u&&(this.off(e,l),delete s[l]),l.apply(this,n)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},i})});var ui=Ot((xh,ci)=>{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof ci=="object"&&ci.exports?ci.exports=t():i.getSize=t()})(window,function(){"use strict";function t(d){var v=parseFloat(d),E=d.indexOf("%")==-1&&!isNaN(v);return E&&v}function e(){}var n=typeof console=="undefined"?e:function(d){console.error(d)},o=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],s=o.length;function r(){for(var d={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},v=0;v<s;v++){var E=o[v];d[E]=0}return d}function l(d){var v=getComputedStyle(d);return v||n("Style returned "+v+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),v}var u=!1,p;function f(){if(!u){u=!0;var d=document.createElement("div");d.style.width="200px",d.style.padding="1px 2px 3px 4px",d.style.borderStyle="solid",d.style.borderWidth="1px 2px 3px 4px",d.style.boxSizing="border-box";var v=document.body||document.documentElement;v.appendChild(d);var E=l(d);p=Math.round(t(E.width))==200,_.isBoxSizeOuter=p,v.removeChild(d)}}function _(d){if(f(),typeof d=="string"&&(d=document.querySelector(d)),!(!d||typeof d!="object"||!d.nodeType)){var v=l(d);if(v.display=="none")return r();var E={};E.width=d.offsetWidth,E.height=d.offsetHeight;for(var h=E.isBorderBox=v.boxSizing=="border-box",a=0;a<s;a++){var c=o[a],m=v[c],T=parseFloat(m);E[c]=isNaN(T)?0:T}var y=E.paddingLeft+E.paddingRight,S=E.paddingTop+E.paddingBottom,A=E.marginLeft+E.marginRight,C=E.marginTop+E.marginBottom,w=E.borderLeftWidth+E.borderRightWidth,N=E.borderTopWidth+E.borderBottomWidth,L=h&&p,M=t(v.width);M!==!1&&(E.width=M+(L?0:y+w));var q=t(v.height);return q!==!1&&(E.height=q+(L?0:S+N)),E.innerWidth=E.width-(y+w),E.innerHeight=E.height-(S+N),E.outerWidth=E.width+A,E.outerHeight=E.height+C,E}}return _})});var Jo=Ot((Dh,fi)=>{(function(i,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof fi=="object"&&fi.exports?fi.exports=t():i.matchesSelector=t()})(window,function(){"use strict";var t=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var n=["webkit","moz","ms","o"],o=0;o<n.length;o++){var s=n[o],r=s+"MatchesSelector";if(e[r])return r}}();return function(n,o){return n[t](o)}})});var ts=Ot((Ih,di)=>{(function(i,t){typeof define=="function"&&define.amd?define(["desandro-matches-selector/matches-selector"],function(e){return t(i,e)}):typeof di=="object"&&di.exports?di.exports=t(i,Jo()):i.fizzyUIUtils=t(i,i.matchesSelector)})(window,function(t,e){"use strict";var n={};n.extend=function(r,l){for(var u in l)r[u]=l[u];return r},n.modulo=function(r,l){return(r%l+l)%l};var o=Array.prototype.slice;n.makeArray=function(r){if(Array.isArray(r))return r;if(r==null)return[];var l=typeof r=="object"&&typeof r.length=="number";return l?o.call(r):[r]},n.removeFrom=function(r,l){var u=r.indexOf(l);u!=-1&&r.splice(u,1)},n.getParent=function(r,l){for(;r.parentNode&&r!=document.body;)if(r=r.parentNode,e(r,l))return r},n.getQueryElement=function(r){return typeof r=="string"?document.querySelector(r):r},n.handleEvent=function(r){var l="on"+r.type;this[l]&&this[l](r)},n.filterFindElements=function(r,l){r=n.makeArray(r);var u=[];return r.forEach(function(p){if(p instanceof HTMLElement){if(!l){u.push(p);return}e(p,l)&&u.push(p);for(var f=p.querySelectorAll(l),_=0;_<f.length;_++)u.push(f[_])}}),u},n.debounceMethod=function(r,l,u){u=u||100;var p=r.prototype[l],f=l+"Timeout";r.prototype[l]=function(){var _=this[f];clearTimeout(_);var d=arguments,v=this;this[f]=setTimeout(function(){p.apply(v,d),delete v[f]},u)}},n.docReady=function(r){var l=document.readyState;l=="complete"||l=="interactive"?setTimeout(r):document.addEventListener("DOMContentLoaded",r)},n.toDashed=function(r){return r.replace(/(.)([A-Z])/g,function(l,u,p){return u+"-"+p}).toLowerCase()};var s=t.console;return n.htmlInit=function(r,l){n.docReady(function(){var u=n.toDashed(l),p="data-"+u,f=document.querySelectorAll("["+p+"]"),_=document.querySelectorAll(".js-"+u),d=n.makeArray(f).concat(n.makeArray(_)),v=p+"-options",E=t.jQuery;d.forEach(function(h){var a=h.getAttribute(p)||h.getAttribute(v),c;try{c=a&&JSON.parse(a)}catch(T){s&&s.error("Error parsing "+p+" on "+h.className+": "+T);return}var m=new r(h,c);E&&E.data(h,l,m)})})},n})});var es=Ot((Ph,hi)=>{(function(i,t){typeof define=="function"&&define.amd?define(["ev-emitter/ev-emitter","get-size/get-size"],t):typeof hi=="object"&&hi.exports?hi.exports=t(nn(),ui()):(i.Outlayer={},i.Outlayer.Item=t(i.EvEmitter,i.getSize))})(window,function(t,e){"use strict";function n(h){for(var a in h)return!1;return a=null,!0}var o=document.documentElement.style,s=typeof o.transition=="string"?"transition":"WebkitTransition",r=typeof o.transform=="string"?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:r,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"};function p(h,a){!h||(this.element=h,this.layout=a,this.position={x:0,y:0},this._create())}var f=p.prototype=Object.create(t.prototype);f.constructor=p,f._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},f.handleEvent=function(h){var a="on"+h.type;this[a]&&this[a](h)},f.getSize=function(){this.size=e(this.element)},f.css=function(h){var a=this.element.style;for(var c in h){var m=u[c]||c;a[m]=h[c]}},f.getPosition=function(){var h=getComputedStyle(this.element),a=this.layout._getOption("originLeft"),c=this.layout._getOption("originTop"),m=h[a?"left":"right"],T=h[c?"top":"bottom"],y=parseFloat(m),S=parseFloat(T),A=this.layout.size;m.indexOf("%")!=-1&&(y=y/100*A.width),T.indexOf("%")!=-1&&(S=S/100*A.height),y=isNaN(y)?0:y,S=isNaN(S)?0:S,y-=a?A.paddingLeft:A.paddingRight,S-=c?A.paddingTop:A.paddingBottom,this.position.x=y,this.position.y=S},f.layoutPosition=function(){var h=this.layout.size,a={},c=this.layout._getOption("originLeft"),m=this.layout._getOption("originTop"),T=c?"paddingLeft":"paddingRight",y=c?"left":"right",S=c?"right":"left",A=this.position.x+h[T];a[y]=this.getXValue(A),a[S]="";var C=m?"paddingTop":"paddingBottom",w=m?"top":"bottom",N=m?"bottom":"top",L=this.position.y+h[C];a[w]=this.getYValue(L),a[N]="",this.css(a),this.emitEvent("layout",[this])},f.getXValue=function(h){var a=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!a?h/this.layout.size.width*100+"%":h+"px"},f.getYValue=function(h){var a=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&a?h/this.layout.size.height*100+"%":h+"px"},f._transitionTo=function(h,a){this.getPosition();var c=this.position.x,m=this.position.y,T=h==this.position.x&&a==this.position.y;if(this.setPosition(h,a),T&&!this.isTransitioning){this.layoutPosition();return}var y=h-c,S=a-m,A={};A.transform=this.getTranslate(y,S),this.transition({to:A,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.getTranslate=function(h,a){var c=this.layout._getOption("originLeft"),m=this.layout._getOption("originTop");return h=c?h:-h,a=m?a:-a,"translate3d("+h+"px, "+a+"px, 0)"},f.goTo=function(h,a){this.setPosition(h,a),this.layoutPosition()},f.moveTo=f._transitionTo,f.setPosition=function(h,a){this.position.x=parseFloat(h),this.position.y=parseFloat(a)},f._nonTransition=function(h){this.css(h.to),h.isCleaning&&this._removeStyles(h.to);for(var a in h.onTransitionEnd)h.onTransitionEnd[a].call(this)},f.transition=function(h){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(h);return}var a=this._transn;for(var c in h.onTransitionEnd)a.onEnd[c]=h.onTransitionEnd[c];for(c in h.to)a.ingProperties[c]=!0,h.isCleaning&&(a.clean[c]=!0);if(h.from){this.css(h.from);var m=this.element.offsetHeight;m=null}this.enableTransition(h.to),this.css(h.to),this.isTransitioning=!0};function _(h){return h.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}var d="opacity,"+_(r);f.enableTransition=function(){if(!this.isTransitioning){var h=this.layout.options.transitionDuration;h=typeof h=="number"?h+"ms":h,this.css({transitionProperty:d,transitionDuration:h,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},f.onwebkitTransitionEnd=function(h){this.ontransitionend(h)},f.onotransitionend=function(h){this.ontransitionend(h)};var v={"-webkit-transform":"transform"};f.ontransitionend=function(h){if(h.target===this.element){var a=this._transn,c=v[h.propertyName]||h.propertyName;if(delete a.ingProperties[c],n(a.ingProperties)&&this.disableTransition(),c in a.clean&&(this.element.style[h.propertyName]="",delete a.clean[c]),c in a.onEnd){var m=a.onEnd[c];m.call(this),delete a.onEnd[c]}this.emitEvent("transitionEnd",[this])}},f.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},f._removeStyles=function(h){var a={};for(var c in h)a[c]="";this.css(a)};var E={transitionProperty:"",transitionDuration:"",transitionDelay:""};return f.removeTransitionStyles=function(){this.css(E)},f.stagger=function(h){h=isNaN(h)?0:h,this.staggerDelay=h+"ms"},f.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},f.remove=function(){if(!s||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()}),this.hide()},f.reveal=function(){delete this.isHidden,this.css({display:""});var h=this.layout.options,a={},c=this.getHideRevealTransitionEndProperty("visibleStyle");a[c]=this.onRevealTransitionEnd,this.transition({from:h.hiddenStyle,to:h.visibleStyle,isCleaning:!0,onTransitionEnd:a})},f.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.getHideRevealTransitionEndProperty=function(h){var a=this.layout.options[h];if(a.opacity)return"opacity";for(var c in a)return c},f.hide=function(){this.isHidden=!0,this.css({display:""});var h=this.layout.options,a={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");a[c]=this.onHideTransitionEnd,this.transition({from:h.visibleStyle,to:h.hiddenStyle,isCleaning:!0,onTransitionEnd:a})},f.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},p})});var is=Ot((Rh,pi)=>{(function(i,t){"use strict";typeof define=="function"&&define.amd?define(["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(e,n,o,s){return t(i,e,n,o,s)}):typeof pi=="object"&&pi.exports?pi.exports=t(i,nn(),ui(),ts(),es()):i.Outlayer=t(i,i.EvEmitter,i.getSize,i.fizzyUIUtils,i.Outlayer.Item)})(window,function(t,e,n,o,s){"use strict";var r=t.console,l=t.jQuery,u=function(){},p=0,f={};function _(a,c){var m=o.getQueryElement(a);if(!m){r&&r.error("Bad element for "+this.constructor.namespace+": "+(m||a));return}this.element=m,l&&(this.$element=l(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(c);var T=++p;this.element.outlayerGUID=T,f[T]=this,this._create();var y=this._getOption("initLayout");y&&this.layout()}_.namespace="outlayer",_.Item=s,_.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=_.prototype;o.extend(d,e.prototype),d.option=function(a){o.extend(this.options,a)},d._getOption=function(a){var c=this.constructor.compatOptions[a];return c&&this.options[c]!==void 0?this.options[c]:this.options[a]},_.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var a=this._getOption("resize");a&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(a){for(var c=this._filterFindItemElements(a),m=this.constructor.Item,T=[],y=0;y<c.length;y++){var S=c[y],A=new m(S,this);T.push(A)}return T},d._filterFindItemElements=function(a){return o.filterFindElements(a,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(a){return a.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var a=this._getOption("layoutInstant"),c=a!==void 0?a:!this._isLayoutInited;this.layoutItems(this.items,c),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=n(this.element)},d._getMeasurement=function(a,c){var m=this.options[a],T;m?(typeof m=="string"?T=this.element.querySelector(m):m instanceof HTMLElement&&(T=m),this[a]=T?n(T)[c]:m):this[a]=0},d.layoutItems=function(a,c){a=this._getItemsForLayout(a),this._layoutItems(a,c),this._postLayout()},d._getItemsForLayout=function(a){return a.filter(function(c){return!c.isIgnored})},d._layoutItems=function(a,c){if(this._emitCompleteOnItems("layout",a),!(!a||!a.length)){var m=[];a.forEach(function(T){var y=this._getItemLayoutPosition(T);y.item=T,y.isInstant=c||T.isLayoutInstant,m.push(y)},this),this._processLayoutQueue(m)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(a){this.updateStagger(),a.forEach(function(c,m){this._positionItem(c.item,c.x,c.y,c.isInstant,m)},this)},d.updateStagger=function(){var a=this.options.stagger;if(a==null){this.stagger=0;return}return this.stagger=h(a),this.stagger},d._positionItem=function(a,c,m,T,y){T?a.goTo(c,m):(a.stagger(y*this.stagger),a.moveTo(c,m))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var a=this._getOption("resizeContainer");if(!!a){var c=this._getContainerSize();c&&(this._setContainerMeasure(c.width,!0),this._setContainerMeasure(c.height,!1))}},d._getContainerSize=u,d._setContainerMeasure=function(a,c){if(a!==void 0){var m=this.size;m.isBorderBox&&(a+=c?m.paddingLeft+m.paddingRight+m.borderLeftWidth+m.borderRightWidth:m.paddingBottom+m.paddingTop+m.borderTopWidth+m.borderBottomWidth),a=Math.max(a,0),this.element.style[c?"width":"height"]=a+"px"}},d._emitCompleteOnItems=function(a,c){var m=this;function T(){m.dispatchEvent(a+"Complete",null,[c])}var y=c.length;if(!c||!y){T();return}var S=0;function A(){S++,S==y&&T()}c.forEach(function(C){C.once(a,A)})},d.dispatchEvent=function(a,c,m){var T=c?[c].concat(m):m;if(this.emitEvent(a,T),l)if(this.$element=this.$element||l(this.element),c){var y=l.Event(c);y.type=a,this.$element.trigger(y,m)}else this.$element.trigger(a,m)},d.ignore=function(a){var c=this.getItem(a);c&&(c.isIgnored=!0)},d.unignore=function(a){var c=this.getItem(a);c&&delete c.isIgnored},d.stamp=function(a){a=this._find(a),!!a&&(this.stamps=this.stamps.concat(a),a.forEach(this.ignore,this))},d.unstamp=function(a){a=this._find(a),!!a&&a.forEach(function(c){o.removeFrom(this.stamps,c),this.unignore(c)},this)},d._find=function(a){if(!!a)return typeof a=="string"&&(a=this.element.querySelectorAll(a)),a=o.makeArray(a),a},d._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var a=this.element.getBoundingClientRect(),c=this.size;this._boundingRect={left:a.left+c.paddingLeft+c.borderLeftWidth,top:a.top+c.paddingTop+c.borderTopWidth,right:a.right-(c.paddingRight+c.borderRightWidth),bottom:a.bottom-(c.paddingBottom+c.borderBottomWidth)}},d._manageStamp=u,d._getElementOffset=function(a){var c=a.getBoundingClientRect(),m=this._boundingRect,T=n(a),y={left:c.left-m.left-T.marginLeft,top:c.top-m.top-T.marginTop,right:m.right-c.right-T.marginRight,bottom:m.bottom-c.bottom-T.marginBottom};return y},d.handleEvent=o.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},o.debounceMethod(_,"onresize",100),d.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},d.needsResizeLayout=function(){var a=n(this.element),c=this.size&&a;return c&&a.innerWidth!==this.size.innerWidth},d.addItems=function(a){var c=this._itemize(a);return c.length&&(this.items=this.items.concat(c)),c},d.appended=function(a){var c=this.addItems(a);!c.length||(this.layoutItems(c,!0),this.reveal(c))},d.prepended=function(a){var c=this._itemize(a);if(!!c.length){var m=this.items.slice(0);this.items=c.concat(m),this._resetLayout(),this._manageStamps(),this.layoutItems(c,!0),this.reveal(c),this.layoutItems(m)}},d.reveal=function(a){if(this._emitCompleteOnItems("reveal",a),!(!a||!a.length)){var c=this.updateStagger();a.forEach(function(m,T){m.stagger(T*c),m.reveal()})}},d.hide=function(a){if(this._emitCompleteOnItems("hide",a),!(!a||!a.length)){var c=this.updateStagger();a.forEach(function(m,T){m.stagger(T*c),m.hide()})}},d.revealItemElements=function(a){var c=this.getItems(a);this.reveal(c)},d.hideItemElements=function(a){var c=this.getItems(a);this.hide(c)},d.getItem=function(a){for(var c=0;c<this.items.length;c++){var m=this.items[c];if(m.element==a)return m}},d.getItems=function(a){a=o.makeArray(a);var c=[];return a.forEach(function(m){var T=this.getItem(m);T&&c.push(T)},this),c},d.remove=function(a){var c=this.getItems(a);this._emitCompleteOnItems("remove",c),!(!c||!c.length)&&c.forEach(function(m){m.remove(),o.removeFrom(this.items,m)},this)},d.destroy=function(){var a=this.element.style;a.height="",a.position="",a.width="",this.items.forEach(function(m){m.destroy()}),this.unbindResize();var c=this.element.outlayerGUID;delete f[c],delete this.element.outlayerGUID,l&&l.removeData(this.element,this.constructor.namespace)},_.data=function(a){a=o.getQueryElement(a);var c=a&&a.outlayerGUID;return c&&f[c]},_.create=function(a,c){var m=v(_);return m.defaults=o.extend({},_.defaults),o.extend(m.defaults,c),m.compatOptions=o.extend({},_.compatOptions),m.namespace=a,m.data=_.data,m.Item=v(s),o.htmlInit(m,a),l&&l.bridget&&l.bridget(a,m),m};function v(a){function c(){a.apply(this,arguments)}return c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c}var E={ms:1,s:1e3};function h(a){if(typeof a=="number")return a;var c=a.match(/(^\d*\.?\d*)(\w*)/),m=c&&c[1],T=c&&c[2];if(!m.length)return 0;m=parseFloat(m);var y=E[T]||1;return m*y}return _.Item=s,_})});var ns=Ot(($h,mi)=>{(function(i,t){typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size"],t):typeof mi=="object"&&mi.exports?mi.exports=t(is(),ui()):i.Masonry=t(i.Outlayer,i.getSize)})(window,function(t,e){"use strict";var n=t.create("masonry");n.compatOptions.fitWidth="isFitWidth";var o=n.prototype;return o._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var s=0;s<this.cols;s++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var s=this.items[0],r=s&&s.element;this.columnWidth=r&&e(r).outerWidth||this.containerWidth}var l=this.columnWidth+=this.gutter,u=this.containerWidth+this.gutter,p=u/l,f=l-u%l,_=f&&f<1?"round":"floor";p=Math[_](p),this.cols=Math.max(p,1)},o.getContainerWidth=function(){var s=this._getOption("fitWidth"),r=s?this.element.parentNode:this.element,l=e(r);this.containerWidth=l&&l.innerWidth},o._getItemLayoutPosition=function(s){s.getSize();var r=s.size.outerWidth%this.columnWidth,l=r&&r<1?"round":"ceil",u=Math[l](s.size.outerWidth/this.columnWidth);u=Math.min(u,this.cols);for(var p=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",f=this[p](u,s),_={x:this.columnWidth*f.col,y:f.y},d=f.y+s.size.outerHeight,v=u+f.col,E=f.col;E<v;E++)this.colYs[E]=d;return _},o._getTopColPosition=function(s){var r=this._getTopColGroup(s),l=Math.min.apply(Math,r);return{col:r.indexOf(l),y:l}},o._getTopColGroup=function(s){if(s<2)return this.colYs;for(var r=[],l=this.cols+1-s,u=0;u<l;u++)r[u]=this._getColGroupY(u,s);return r},o._getColGroupY=function(s,r){if(r<2)return this.colYs[s];var l=this.colYs.slice(s,s+r);return Math.max.apply(Math,l)},o._getHorizontalColPosition=function(s,r){var l=this.horizontalColIndex%this.cols,u=s>1&&l+s>this.cols;l=u?0:l;var p=r.size.outerWidth&&r.size.outerHeight;return this.horizontalColIndex=p?l+s:this.horizontalColIndex,{col:l,y:this._getColGroupY(l,s)}},o._manageStamp=function(s){var r=e(s),l=this._getElementOffset(s),u=this._getOption("originLeft"),p=u?l.left:l.right,f=p+r.outerWidth,_=Math.floor(p/this.columnWidth);_=Math.max(0,_);var d=Math.floor(f/this.columnWidth);d-=f%this.columnWidth?0:1,d=Math.min(this.cols-1,d);for(var v=this._getOption("originTop"),E=(v?l.top:l.bottom)+r.outerHeight,h=_;h<=d;h++)this.colYs[h]=Math.max(E,this.colYs[h])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var s={height:this.maxY};return this._getOption("fitWidth")&&(s.width=this._getContainerFitWidth()),s},o._getContainerFitWidth=function(){for(var s=0,r=this.cols;--r&&this.colYs[r]===0;)s++;return(this.cols-s)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var s=this.containerWidth;return this.getContainerWidth(),s!=this.containerWidth},n})});var Ge={};vs(Ge,{afterMain:()=>bn,afterRead:()=>vn,afterWrite:()=>On,applyStyles:()=>Gt,arrow:()=>We,auto:()=>ue,basePlacements:()=>at,beforeMain:()=>yn,beforeRead:()=>_n,beforeWrite:()=>An,bottom:()=>$,clippingParents:()=>bi,computeStyles:()=>Xt,createPopper:()=>qe,createPopperBase:()=>Pn,createPopperLite:()=>Rn,detectOverflow:()=>V,end:()=>fe,eventListeners:()=>Qt,flip:()=>Fe,hide:()=>Ye,left:()=>P,main:()=>Tn,modifierPhases:()=>Si,offset:()=>Ke,placements:()=>he,popper:()=>wt,popperGenerator:()=>Pt,popperOffsets:()=>te,preventOverflow:()=>Ue,read:()=>En,reference:()=>Ai,right:()=>I,start:()=>it,top:()=>x,variationPlacements:()=>ke,viewport:()=>de,write:()=>Sn});var x="top",$="bottom",I="right",P="left",ue="auto",at=[x,$,I,P],it="start",fe="end",bi="clippingParents",de="viewport",wt="popper",Ai="reference",ke=at.reduce(function(i,t){return i.concat([t+"-"+it,t+"-"+fe])},[]),he=[].concat(at,[ue]).reduce(function(i,t){return i.concat([t,t+"-"+it,t+"-"+fe])},[]),_n="beforeRead",En="read",vn="afterRead",yn="beforeMain",Tn="main",bn="afterMain",An="beforeWrite",Sn="write",On="afterWrite",Si=[_n,En,vn,yn,Tn,bn,An,Sn,On];function j(i){return i?(i.nodeName||"").toLowerCase():null}function D(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function lt(i){var t=D(i).Element;return i instanceof t||i instanceof Element}function R(i){var t=D(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function He(i){if(typeof ShadowRoot=="undefined")return!1;var t=D(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function bs(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},s=t.elements[e];!R(s)||!j(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(r){var l=o[r];l===!1?s.removeAttribute(r):s.setAttribute(r,l===!0?"":l)}))})}function As(i){var t=i.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],s=t.attributes[n]||{},r=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]),l=r.reduce(function(u,p){return u[p]="",u},{});!R(o)||!j(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(u){o.removeAttribute(u)}))})}}var Gt={name:"applyStyles",enabled:!0,phase:"write",fn:bs,effect:As,requires:["computeStyles"]};function k(i){return i.split("-")[0]}var mt=Math.round;function G(i,t){t===void 0&&(t=!1);var e=i.getBoundingClientRect(),n=1,o=1;return R(i)&&t&&(n=e.width/i.offsetWidth||1,o=e.height/i.offsetHeight||1),{width:mt(e.width/n),height:mt(e.height/o),top:mt(e.top/o),right:mt(e.right/n),bottom:mt(e.bottom/o),left:mt(e.left/n),x:mt(e.left/n),y:mt(e.top/o)}}function Ct(i){var t=G(i),e=i.offsetWidth,n=i.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:i.offsetLeft,y:i.offsetTop,width:e,height:n}}function pe(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return!0;if(e&&He(e)){var n=t;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function B(i){return D(i).getComputedStyle(i)}function Oi(i){return["table","td","th"].indexOf(j(i))>=0}function W(i){return((lt(i)?i.ownerDocument:i.document)||window.document).documentElement}function ct(i){return j(i)==="html"?i:i.assignedSlot||i.parentNode||(He(i)?i.host:null)||W(i)}function wn(i){return!R(i)||B(i).position==="fixed"?null:i.offsetParent}function Ss(i){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,e=navigator.userAgent.indexOf("Trident")!==-1;if(e&&R(i)){var n=B(i);if(n.position==="fixed")return null}for(var o=ct(i);R(o)&&["html","body"].indexOf(j(o))<0;){var s=B(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function tt(i){for(var t=D(i),e=wn(i);e&&Oi(e)&&B(e).position==="static";)e=wn(e);return e&&(j(e)==="html"||j(e)==="body"&&B(e).position==="static")?t:e||Ss(i)||t}function Lt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}var X=Math.max,gt=Math.min,me=Math.round;function Nt(i,t,e){return X(i,gt(t,e))}function ge(){return{top:0,right:0,bottom:0,left:0}}function _e(i){return Object.assign({},ge(),i)}function Ee(i,t){return t.reduce(function(e,n){return e[n]=i,e},{})}var Os=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,_e(typeof t!="number"?t:Ee(t,at))};function ws(i){var t,e=i.state,n=i.name,o=i.options,s=e.elements.arrow,r=e.modifiersData.popperOffsets,l=k(e.placement),u=Lt(l),p=[P,I].indexOf(l)>=0,f=p?"height":"width";if(!(!s||!r)){var _=Os(o.padding,e),d=Ct(s),v=u==="y"?x:P,E=u==="y"?$:I,h=e.rects.reference[f]+e.rects.reference[u]-r[u]-e.rects.popper[f],a=r[u]-e.rects.reference[u],c=tt(s),m=c?u==="y"?c.clientHeight||0:c.clientWidth||0:0,T=h/2-a/2,y=_[v],S=m-d[f]-_[E],A=m/2-d[f]/2+T,C=Nt(y,A,S),w=u;e.modifiersData[n]=(t={},t[w]=C,t.centerOffset=C-A,t)}}function Cs(i){var t=i.state,e=i.options,n=e.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!pe(t.elements.popper,o)||(t.elements.arrow=o))}var We={name:"arrow",enabled:!0,phase:"main",fn:ws,effect:Cs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var Ls={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ns(i){var t=i.x,e=i.y,n=window,o=n.devicePixelRatio||1;return{x:me(me(t*o)/o)||0,y:me(me(e*o)/o)||0}}function Cn(i){var t,e=i.popper,n=i.popperRect,o=i.placement,s=i.offsets,r=i.position,l=i.gpuAcceleration,u=i.adaptive,p=i.roundOffsets,f=p===!0?Ns(s):typeof p=="function"?p(s):s,_=f.x,d=_===void 0?0:_,v=f.y,E=v===void 0?0:v,h=s.hasOwnProperty("x"),a=s.hasOwnProperty("y"),c=P,m=x,T=window;if(u){var y=tt(e),S="clientHeight",A="clientWidth";y===D(e)&&(y=W(e),B(y).position!=="static"&&(S="scrollHeight",A="scrollWidth")),y=y,o===x&&(m=$,E-=y[S]-n.height,E*=l?1:-1),o===P&&(c=I,d-=y[A]-n.width,d*=l?1:-1)}var C=Object.assign({position:r},u&&Ls);if(l){var w;return Object.assign({},C,(w={},w[m]=a?"0":"",w[c]=h?"0":"",w.transform=(T.devicePixelRatio||1)<2?"translate("+d+"px, "+E+"px)":"translate3d("+d+"px, "+E+"px, 0)",w))}return Object.assign({},C,(t={},t[m]=a?E+"px":"",t[c]=h?d+"px":"",t.transform="",t))}function xs(i){var t=i.state,e=i.options,n=e.gpuAcceleration,o=n===void 0?!0:n,s=e.adaptive,r=s===void 0?!0:s,l=e.roundOffsets,u=l===void 0?!0:l;if(!1)var p;var f={placement:k(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Cn(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Cn(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Xt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xs,data:{}};var Be={passive:!0};function Ds(i){var t=i.state,e=i.instance,n=i.options,o=n.scroll,s=o===void 0?!0:o,r=n.resize,l=r===void 0?!0:r,u=D(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(f){f.addEventListener("scroll",e.update,Be)}),l&&u.addEventListener("resize",e.update,Be),function(){s&&p.forEach(function(f){f.removeEventListener("scroll",e.update,Be)}),l&&u.removeEventListener("resize",e.update,Be)}}var Qt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ds,data:{}};var Is={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(i){return i.replace(/left|right|bottom|top/g,function(t){return Is[t]})}var Ps={start:"end",end:"start"};function Ve(i){return i.replace(/start|end/g,function(t){return Ps[t]})}function xt(i){var t=D(i),e=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:e,scrollTop:n}}function Dt(i){return G(W(i)).left+xt(i).scrollLeft}function wi(i){var t=D(i),e=W(i),n=t.visualViewport,o=e.clientWidth,s=e.clientHeight,r=0,l=0;return n&&(o=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,l=n.offsetTop)),{width:o,height:s,x:r+Dt(i),y:l}}function Ci(i){var t,e=W(i),n=xt(i),o=(t=i.ownerDocument)==null?void 0:t.body,s=X(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=X(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Dt(i),u=-n.scrollTop;return B(o||e).direction==="rtl"&&(l+=X(e.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:l,y:u}}function It(i){var t=B(i),e=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+o+n)}function ze(i){return["html","body","#document"].indexOf(j(i))>=0?i.ownerDocument.body:R(i)&&It(i)?i:ze(ct(i))}function _t(i,t){var e;t===void 0&&(t=[]);var n=ze(i),o=n===((e=i.ownerDocument)==null?void 0:e.body),s=D(n),r=o?[s].concat(s.visualViewport||[],It(n)?n:[]):n,l=t.concat(r);return o?l:l.concat(_t(ct(r)))}function Jt(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Rs(i){var t=G(i);return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function Ln(i,t){return t===de?Jt(wi(i)):R(t)?Rs(t):Jt(Ci(W(i)))}function $s(i){var t=_t(ct(i)),e=["absolute","fixed"].indexOf(B(i).position)>=0,n=e&&R(i)?tt(i):i;return lt(n)?t.filter(function(o){return lt(o)&&pe(o,n)&&j(o)!=="body"}):[]}function Li(i,t,e){var n=t==="clippingParents"?$s(i):[].concat(t),o=[].concat(n,[e]),s=o[0],r=o.reduce(function(l,u){var p=Ln(i,u);return l.top=X(p.top,l.top),l.right=gt(p.right,l.right),l.bottom=gt(p.bottom,l.bottom),l.left=X(p.left,l.left),l},Ln(i,s));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function nt(i){return i.split("-")[1]}function ve(i){var t=i.reference,e=i.element,n=i.placement,o=n?k(n):null,s=n?nt(n):null,r=t.x+t.width/2-e.width/2,l=t.y+t.height/2-e.height/2,u;switch(o){case x:u={x:r,y:t.y-e.height};break;case $:u={x:r,y:t.y+t.height};break;case I:u={x:t.x+t.width,y:l};break;case P:u={x:t.x-e.width,y:l};break;default:u={x:t.x,y:t.y}}var p=o?Lt(o):null;if(p!=null){var f=p==="y"?"height":"width";switch(s){case it:u[p]=u[p]-(t[f]/2-e[f]/2);break;case fe:u[p]=u[p]+(t[f]/2-e[f]/2);break;default:}}return u}function V(i,t){t===void 0&&(t={});var e=t,n=e.placement,o=n===void 0?i.placement:n,s=e.boundary,r=s===void 0?bi:s,l=e.rootBoundary,u=l===void 0?de:l,p=e.elementContext,f=p===void 0?wt:p,_=e.altBoundary,d=_===void 0?!1:_,v=e.padding,E=v===void 0?0:v,h=_e(typeof E!="number"?E:Ee(E,at)),a=f===wt?Ai:wt,c=i.elements.reference,m=i.rects.popper,T=i.elements[d?a:f],y=Li(lt(T)?T:T.contextElement||W(i.elements.popper),r,u),S=G(c),A=ve({reference:S,element:m,strategy:"absolute",placement:o}),C=Jt(Object.assign({},m,A)),w=f===wt?C:S,N={top:y.top-w.top+h.top,bottom:w.bottom-y.bottom+h.bottom,left:y.left-w.left+h.left,right:w.right-y.right+h.right},L=i.modifiersData.offset;if(f===wt&&L){var M=L[o];Object.keys(N).forEach(function(q){var F=[I,$].indexOf(q)>=0?1:-1,bt=[x,$].indexOf(q)>=0?"y":"x";N[q]+=M[bt]*F})}return N}function Ni(i,t){t===void 0&&(t={});var e=t,n=e.placement,o=e.boundary,s=e.rootBoundary,r=e.padding,l=e.flipVariations,u=e.allowedAutoPlacements,p=u===void 0?he:u,f=nt(n),_=f?l?ke:ke.filter(function(E){return nt(E)===f}):at,d=_.filter(function(E){return p.indexOf(E)>=0});d.length===0&&(d=_);var v=d.reduce(function(E,h){return E[h]=V(i,{placement:h,boundary:o,rootBoundary:s,padding:r})[k(h)],E},{});return Object.keys(v).sort(function(E,h){return v[E]-v[h]})}function Ms(i){if(k(i)===ue)return[];var t=Zt(i);return[Ve(i),t,Ve(t)]}function js(i){var t=i.state,e=i.options,n=i.name;if(!t.modifiersData[n]._skip){for(var o=e.mainAxis,s=o===void 0?!0:o,r=e.altAxis,l=r===void 0?!0:r,u=e.fallbackPlacements,p=e.padding,f=e.boundary,_=e.rootBoundary,d=e.altBoundary,v=e.flipVariations,E=v===void 0?!0:v,h=e.allowedAutoPlacements,a=t.options.placement,c=k(a),m=c===a,T=u||(m||!E?[Zt(a)]:Ms(a)),y=[a].concat(T).reduce(function(St,et){return St.concat(k(et)===ue?Ni(t,{placement:et,boundary:f,rootBoundary:_,padding:p,flipVariations:E,allowedAutoPlacements:h}):et)},[]),S=t.rects.reference,A=t.rects.popper,C=new Map,w=!0,N=y[0],L=0;L<y.length;L++){var M=y[L],q=k(M),F=nt(M)===it,bt=[x,$].indexOf(q)>=0,le=bt?"width":"height",Yt=V(t,{placement:M,boundary:f,rootBoundary:_,altBoundary:d,padding:p}),At=bt?F?I:P:F?$:x;S[le]>A[le]&&(At=Zt(At));var _i=Zt(At),Kt=[];if(s&&Kt.push(Yt[q]<=0),l&&Kt.push(Yt[At]<=0,Yt[_i]<=0),Kt.every(function(St){return St})){N=M,w=!1;break}C.set(M,Kt)}if(w)for(var Pe=E?3:1,Ei=function(et){var $e=y.find(function(vi){var qt=C.get(vi);if(qt)return qt.slice(0,et).every(function(yi){return yi})});if($e)return N=$e,"break"},Ut=Pe;Ut>0;Ut--){var Re=Ei(Ut);if(Re==="break")break}t.placement!==N&&(t.modifiersData[n]._skip=!0,t.placement=N,t.reset=!0)}}var Fe={name:"flip",enabled:!0,phase:"main",fn:js,requiresIfExists:["offset"],data:{_skip:!1}};function Nn(i,t,e){return e===void 0&&(e={x:0,y:0}),{top:i.top-t.height-e.y,right:i.right-t.width+e.x,bottom:i.bottom-t.height+e.y,left:i.left-t.width-e.x}}function xn(i){return[x,I,$,P].some(function(t){return i[t]>=0})}function ks(i){var t=i.state,e=i.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,r=V(t,{elementContext:"reference"}),l=V(t,{altBoundary:!0}),u=Nn(r,n),p=Nn(l,o,s),f=xn(u),_=xn(p);t.modifiersData[e]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:_},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":_})}var Ye={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ks};function Hs(i,t,e){var n=k(i),o=[P,x].indexOf(n)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},t,{placement:i})):e,r=s[0],l=s[1];return r=r||0,l=(l||0)*o,[P,I].indexOf(n)>=0?{x:l,y:r}:{x:r,y:l}}function Ws(i){var t=i.state,e=i.options,n=i.name,o=e.offset,s=o===void 0?[0,0]:o,r=he.reduce(function(f,_){return f[_]=Hs(_,t.rects,s),f},{}),l=r[t.placement],u=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=r}var Ke={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ws};function Bs(i){var t=i.state,e=i.name;t.modifiersData[e]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var te={name:"popperOffsets",enabled:!0,phase:"read",fn:Bs,data:{}};function xi(i){return i==="x"?"y":"x"}function Vs(i){var t=i.state,e=i.options,n=i.name,o=e.mainAxis,s=o===void 0?!0:o,r=e.altAxis,l=r===void 0?!1:r,u=e.boundary,p=e.rootBoundary,f=e.altBoundary,_=e.padding,d=e.tether,v=d===void 0?!0:d,E=e.tetherOffset,h=E===void 0?0:E,a=V(t,{boundary:u,rootBoundary:p,padding:_,altBoundary:f}),c=k(t.placement),m=nt(t.placement),T=!m,y=Lt(c),S=xi(y),A=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,N=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,L={x:0,y:0};if(!!A){if(s||l){var M=y==="y"?x:P,q=y==="y"?$:I,F=y==="y"?"height":"width",bt=A[y],le=A[y]+a[M],Yt=A[y]-a[q],At=v?-w[F]/2:0,_i=m===it?C[F]:w[F],Kt=m===it?-w[F]:-C[F],Pe=t.elements.arrow,Ei=v&&Pe?Ct(Pe):{width:0,height:0},Ut=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ge(),Re=Ut[M],St=Ut[q],et=Nt(0,C[F],Ei[F]),$e=T?C[F]/2-At-et-Re-N:_i-et-Re-N,vi=T?-C[F]/2+At+et+St+N:Kt+et+St+N,qt=t.elements.arrow&&tt(t.elements.arrow),yi=qt?y==="y"?qt.clientTop||0:qt.clientLeft||0:0,rn=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0,an=A[y]+$e-rn-yi,ln=A[y]+vi-rn;if(s){var cn=Nt(v?gt(le,an):le,bt,v?X(Yt,ln):Yt);A[y]=cn,L[y]=cn-bt}if(l){var us=y==="x"?x:P,fs=y==="x"?$:I,Me=A[S],un=Me+a[us],fn=Me-a[fs],dn=Nt(v?gt(un,an):un,Me,v?X(fn,ln):fn);A[S]=dn,L[S]=dn-Me}}t.modifiersData[n]=L}}var Ue={name:"preventOverflow",enabled:!0,phase:"main",fn:Vs,requiresIfExists:["offset"]};function Di(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Ii(i){return i===D(i)||!R(i)?xt(i):Di(i)}function zs(i){var t=i.getBoundingClientRect(),e=t.width/i.offsetWidth||1,n=t.height/i.offsetHeight||1;return e!==1||n!==1}function Pi(i,t,e){e===void 0&&(e=!1);var n=R(t),o=R(t)&&zs(t),s=W(t),r=G(i,o),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!e)&&((j(t)!=="body"||It(s))&&(l=Ii(t)),R(t)?(u=G(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Dt(s))),{x:r.left+l.scrollLeft-u.x,y:r.top+l.scrollTop-u.y,width:r.width,height:r.height}}function Fs(i){var t=new Map,e=new Set,n=[];i.forEach(function(s){t.set(s.name,s)});function o(s){e.add(s.name);var r=[].concat(s.requires||[],s.requiresIfExists||[]);r.forEach(function(l){if(!e.has(l)){var u=t.get(l);u&&o(u)}}),n.push(s)}return i.forEach(function(s){e.has(s.name)||o(s)}),n}function Ri(i){var t=Fs(i);return Si.reduce(function(e,n){return e.concat(t.filter(function(o){return o.phase===n}))},[])}function $i(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i())})})),t}}function Mi(i){var t=i.reduce(function(e,n){var o=e[n.name];return e[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,e},{});return Object.keys(t).map(function(e){return t[e]})}var Dn={placement:"bottom",modifiers:[],strategy:"absolute"};function In(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Pt(i){i===void 0&&(i={});var t=i,e=t.defaultModifiers,n=e===void 0?[]:e,o=t.defaultOptions,s=o===void 0?Dn:o;return function(l,u,p){p===void 0&&(p=s);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dn,s),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},_=[],d=!1,v={state:f,setOptions:function(c){h(),f.options=Object.assign({},s,f.options,c),f.scrollParents={reference:lt(l)?_t(l):l.contextElement?_t(l.contextElement):[],popper:_t(u)};var m=Ri(Mi([].concat(n,f.options.modifiers)));if(f.orderedModifiers=m.filter(function(L){return L.enabled}),!1){var T;if(getBasePlacement(f.options.placement)===auto)var y;var S,A,C,w,N}return E(),v.update()},forceUpdate:function(){if(!d){var c=f.elements,m=c.reference,T=c.popper;if(!!In(m,T)){f.rects={reference:Pi(m,tt(T),f.options.strategy==="fixed"),popper:Ct(T)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(M){return f.modifiersData[M.name]=Object.assign({},M.data)});for(var y=0,S=0;S<f.orderedModifiers.length;S++){if(f.reset===!0){f.reset=!1,S=-1;continue}var A=f.orderedModifiers[S],C=A.fn,w=A.options,N=w===void 0?{}:w,L=A.name;typeof C=="function"&&(f=C({state:f,options:N,name:L,instance:v})||f)}}}},update:$i(function(){return new Promise(function(a){v.forceUpdate(),a(f)})}),destroy:function(){h(),d=!0}};if(!In(l,u))return v;v.setOptions(p).then(function(a){!d&&p.onFirstUpdate&&p.onFirstUpdate(a)});function E(){f.orderedModifiers.forEach(function(a){var c=a.name,m=a.options,T=m===void 0?{}:m,y=a.effect;if(typeof y=="function"){var S=y({state:f,name:c,instance:v,options:T}),A=function(){};_.push(S||A)}})}function h(){_.forEach(function(a){return a()}),_=[]}return v}}var Pn=Pt();var Ys=[Qt,te,Xt,Gt],Rn=Pt({defaultModifiers:Ys});var Ks=[Qt,te,Xt,Gt,Ke,Fe,Ue,We,Ye],qe=Pt({defaultModifiers:Ks});var Us=3,b={find(i,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,i))},findOne(i,t=document.documentElement){return Element.prototype.querySelector.call(t,i)},children(i,t){return[].concat(...i.children).filter(e=>e.matches(t))},parents(i,t){let e=[],n=i.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&n.nodeType!==Us;)n.matches(t)&&e.push(n),n=n.parentNode;return e},prev(i,t){let e=i.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(i,t){let e=i.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]}},qs=1e6,Gs=1e3,ji="transitionend",Xs=i=>i==null?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),$n=i=>{do i+=Math.floor(Math.random()*qs);while(document.getElementById(i));return i},Mn=i=>{let t=i.getAttribute("data-bs-target");if(!t||t==="#"){let e=i.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t},ki=i=>{let t=Mn(i);return t&&document.querySelector(t)?t:null},Et=i=>{let t=Mn(i);return t?document.querySelector(t):null},Qs=i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i),n=Number.parseFloat(t),o=Number.parseFloat(e);return!n&&!o?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Gs)},jn=i=>{i.dispatchEvent(new Event(ji))},vt=i=>!i||typeof i!="object"?!1:(typeof i.jquery!="undefined"&&(i=i[0]),typeof i.nodeType!="undefined"),ee=i=>vt(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?b.findOne(i):null,ut=(i,t,e)=>{Object.keys(e).forEach(n=>{let o=e[n],s=t[n],r=s&&vt(s)?"element":Xs(s);if(!new RegExp(o).test(r))throw new TypeError(`${i.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${o}".`)})},Xe=i=>!vt(i)||i.getClientRects().length===0?!1:getComputedStyle(i).getPropertyValue("visibility")==="visible",ie=i=>!i||i.nodeType!==Node.ELEMENT_NODE||i.classList.contains("disabled")?!0:typeof i.disabled!="undefined"?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false",kn=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){let t=i.getRootNode();return t instanceof ShadowRoot?t:null}return i instanceof ShadowRoot?i:i.parentNode?kn(i.parentNode):null},Qe=()=>{},ne=i=>i.offsetHeight,Hn=()=>{let{jQuery:i}=window;return i&&!document.body.hasAttribute("data-bs-no-jquery")?i:null},Hi=[],Zs=i=>{document.readyState==="loading"?(Hi.length||document.addEventListener("DOMContentLoaded",()=>{Hi.forEach(t=>t())}),Hi.push(i)):i()},Y=()=>document.documentElement.dir==="rtl",Q=i=>{Zs(()=>{let t=Hn();if(t){let e=i.NAME,n=t.fn[e];t.fn[e]=i.jQueryInterface,t.fn[e].Constructor=i,t.fn[e].noConflict=()=>(t.fn[e]=n,i.jQueryInterface)}})},Rt=i=>{typeof i=="function"&&i()},Wn=(i,t,e=!0)=>{if(!e){Rt(i);return}let n=5,o=Qs(t)+n,s=!1,r=({target:l})=>{l===t&&(s=!0,t.removeEventListener(ji,r),Rt(i))};t.addEventListener(ji,r),setTimeout(()=>{s||jn(t)},o)},Bn=(i,t,e,n)=>{let o=i.indexOf(t);if(o===-1)return i[!e&&n?i.length-1:0];let s=i.length;return o+=e?1:-1,n&&(o=(o+s)%s),i[Math.max(0,Math.min(o,s-1))]},Js=/[^.]*(?=\..*)\.|.*/,tr=/\..*/,er=/::\d+$/,Wi={},Vn=1,ir={mouseenter:"mouseover",mouseleave:"mouseout"},nr=/^(mouseenter|mouseleave)/i,zn=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Fn(i,t){return t&&`${t}::${Vn++}`||i.uidEvent||Vn++}function Yn(i){let t=Fn(i);return i.uidEvent=t,Wi[t]=Wi[t]||{},Wi[t]}function or(i,t){return function e(n){return n.delegateTarget=i,e.oneOff&&g.off(i,n.type,t),t.apply(i,[n])}}function sr(i,t,e){return function n(o){let s=i.querySelectorAll(t);for(let{target:r}=o;r&&r!==this;r=r.parentNode)for(let l=s.length;l--;)if(s[l]===r)return o.delegateTarget=r,n.oneOff&&g.off(i,o.type,t,e),e.apply(r,[o]);return null}}function Kn(i,t,e=null){let n=Object.keys(i);for(let o=0,s=n.length;o<s;o++){let r=i[n[o]];if(r.originalHandler===t&&r.delegationSelector===e)return r}return null}function Un(i,t,e){let n=typeof t=="string",o=n?e:t,s=Gn(i);return zn.has(s)||(s=i),[n,o,s]}function qn(i,t,e,n,o){if(typeof t!="string"||!i)return;if(e||(e=n,n=null),nr.test(t)){let v=E=>function(h){if(!h.relatedTarget||h.relatedTarget!==h.delegateTarget&&!h.delegateTarget.contains(h.relatedTarget))return E.call(this,h)};n?n=v(n):e=v(e)}let[s,r,l]=Un(t,e,n),u=Yn(i),p=u[l]||(u[l]={}),f=Kn(p,r,s?e:null);if(f){f.oneOff=f.oneOff&&o;return}let _=Fn(r,t.replace(Js,"")),d=s?sr(i,e,n):or(i,e);d.delegationSelector=s?e:null,d.originalHandler=r,d.oneOff=o,d.uidEvent=_,p[_]=d,i.addEventListener(l,d,s)}function Bi(i,t,e,n,o){let s=Kn(t[e],n,o);!s||(i.removeEventListener(e,s,Boolean(o)),delete t[e][s.uidEvent])}function rr(i,t,e,n){let o=t[e]||{};Object.keys(o).forEach(s=>{if(s.includes(n)){let r=o[s];Bi(i,t,e,r.originalHandler,r.delegationSelector)}})}function Gn(i){return i=i.replace(tr,""),ir[i]||i}var g={on(i,t,e,n){qn(i,t,e,n,!1)},one(i,t,e,n){qn(i,t,e,n,!0)},off(i,t,e,n){if(typeof t!="string"||!i)return;let[o,s,r]=Un(t,e,n),l=r!==t,u=Yn(i),p=t.startsWith(".");if(typeof s!="undefined"){if(!u||!u[r])return;Bi(i,u,r,s,o?e:null);return}p&&Object.keys(u).forEach(_=>{rr(i,u,_,t.slice(1))});let f=u[r]||{};Object.keys(f).forEach(_=>{let d=_.replace(er,"");if(!l||t.includes(d)){let v=f[_];Bi(i,u,r,v.originalHandler,v.delegationSelector)}})},trigger(i,t,e){if(typeof t!="string"||!i)return null;let n=Hn(),o=Gn(t),s=t!==o,r=zn.has(o),l,u=!0,p=!0,f=!1,_=null;return s&&n&&(l=n.Event(t,e),n(i).trigger(l),u=!l.isPropagationStopped(),p=!l.isImmediatePropagationStopped(),f=l.isDefaultPrevented()),r?(_=document.createEvent("HTMLEvents"),_.initEvent(o,u,!0)):_=new CustomEvent(t,{bubbles:u,cancelable:!0}),typeof e!="undefined"&&Object.keys(e).forEach(d=>{Object.defineProperty(_,d,{get(){return e[d]}})}),f&&_.preventDefault(),p&&i.dispatchEvent(_),_.defaultPrevented&&typeof l!="undefined"&&l.preventDefault(),_}},yt=new Map,$t={set(i,t,e){yt.has(i)||yt.set(i,new Map);let n=yt.get(i);if(!n.has(t)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(t,e)},get(i,t){return yt.has(i)&&yt.get(i).get(t)||null},remove(i,t){if(!yt.has(i))return;let e=yt.get(i);e.delete(t),e.size===0&&yt.delete(i)}},ar="5.0.2",Z=class{constructor(t){t=ee(t),!!t&&(this._element=t,$t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){$t.remove(this._element,this.constructor.DATA_KEY),g.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,n=!0){Wn(t,e,n)}static getInstance(t){return $t.get(t,this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return ar}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}},lr="alert",cr="bs.alert",Vi=`.${cr}`,ur=".data-api",fr='[data-bs-dismiss="alert"]',dr=`close${Vi}`,hr=`closed${Vi}`,pr=`click${Vi}${ur}`,mr="alert",gr="fade",_r="show",oe=class extends Z{static get NAME(){return lr}close(t){let e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);n===null||n.defaultPrevented||this._removeElement(e)}_getRootElement(t){return Et(t)||t.closest(`.${mr}`)}_triggerCloseEvent(t){return g.trigger(t,dr)}_removeElement(t){t.classList.remove(_r);let e=t.classList.contains(gr);this._queueCallback(()=>this._destroyElement(t),t,e)}_destroyElement(t){t.remove(),g.trigger(t,hr)}static jQueryInterface(t){return this.each(function(){let e=oe.getOrCreateInstance(this);t==="close"&&e[t](this)})}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}};g.on(document,pr,fr,oe.handleDismiss(new oe));Q(oe);var Er="button",vr="bs.button",yr=`.${vr}`,Tr=".data-api",br="active",Xn='[data-bs-toggle="button"]',Ar=`click${yr}${Tr}`,ye=class extends Z{static get NAME(){return Er}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(br))}static jQueryInterface(t){return this.each(function(){let e=ye.getOrCreateInstance(this);t==="toggle"&&e[t]()})}};g.on(document,Ar,Xn,i=>{i.preventDefault();let t=i.target.closest(Xn);ye.getOrCreateInstance(t).toggle()});Q(ye);function Qn(i){return i==="true"?!0:i==="false"?!1:i===Number(i).toString()?Number(i):i===""||i==="null"?null:i}function zi(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var H={setDataAttribute(i,t,e){i.setAttribute(`data-bs-${zi(t)}`,e)},removeDataAttribute(i,t){i.removeAttribute(`data-bs-${zi(t)}`)},getDataAttributes(i){if(!i)return{};let t={};return Object.keys(i.dataset).filter(e=>e.startsWith("bs")).forEach(e=>{let n=e.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=Qn(i.dataset[e])}),t},getDataAttribute(i,t){return Qn(i.getAttribute(`data-bs-${zi(t)}`))},offset(i){let t=i.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},position(i){return{top:i.offsetTop,left:i.offsetLeft}}},Zn="carousel",Sr="bs.carousel",K=`.${Sr}`,Jn=".data-api",Or="ArrowLeft",wr="ArrowRight",Cr=500,Lr=40,to={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Nr={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Mt="next",jt="prev",kt="left",Te="right",xr={[Or]:Te,[wr]:kt},Dr=`slide${K}`,eo=`slid${K}`,Ir=`keydown${K}`,Pr=`mouseenter${K}`,Rr=`mouseleave${K}`,$r=`touchstart${K}`,Mr=`touchmove${K}`,jr=`touchend${K}`,kr=`pointerdown${K}`,Hr=`pointerup${K}`,Wr=`dragstart${K}`,Br=`load${K}${Jn}`,Vr=`click${K}${Jn}`,zr="carousel",Ht="active",Fr="slide",Yr="carousel-item-end",Kr="carousel-item-start",Ur="carousel-item-next",qr="carousel-item-prev",Gr="pointer-event",Xr=".active",Ze=".active.carousel-item",Qr=".carousel-item",Zr=".carousel-item img",Jr=".carousel-item-next, .carousel-item-prev",ta=".carousel-indicators",ea="[data-bs-target]",ia="[data-bs-slide], [data-bs-slide-to]",na='[data-bs-ride="carousel"]',io="touch",no="pen",ot=class extends Z{constructor(t,e){super(t);this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=b.findOne(ta,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return to}static get NAME(){return Zn}next(){this._slide(Mt)}nextWhenVisible(){!document.hidden&&Xe(this._element)&&this.next()}prev(){this._slide(jt)}pause(t){t||(this._isPaused=!0),b.findOne(Jr,this._element)&&(jn(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(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))}to(t){this._activeElement=b.findOne(Ze,this._element);let e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding){g.one(this._element,eo,()=>this.to(t));return}if(e===t){this.pause(),this.cycle();return}let n=t>e?Mt:jt;this._slide(n,this._items[t])}_getConfig(t){return t=O(O(O({},to),H.getDataAttributes(this._element)),typeof t=="object"?t:{}),ut(Zn,t,Nr),t}_handleSwipe(){let t=Math.abs(this.touchDeltaX);if(t<=Lr)return;let e=t/this.touchDeltaX;this.touchDeltaX=0,!!e&&this._slide(e>0?Te:kt)}_addEventListeners(){this._config.keyboard&&g.on(this._element,Ir,t=>this._keydown(t)),this._config.pause==="hover"&&(g.on(this._element,Pr,t=>this.pause(t)),g.on(this._element,Rr,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){let t=o=>{this._pointerEvent&&(o.pointerType===no||o.pointerType===io)?this.touchStartX=o.clientX:this._pointerEvent||(this.touchStartX=o.touches[0].clientX)},e=o=>{this.touchDeltaX=o.touches&&o.touches.length>1?0:o.touches[0].clientX-this.touchStartX},n=o=>{this._pointerEvent&&(o.pointerType===no||o.pointerType===io)&&(this.touchDeltaX=o.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(s=>this.cycle(s),Cr+this._config.interval))};b.find(Zr,this._element).forEach(o=>{g.on(o,Wr,s=>s.preventDefault())}),this._pointerEvent?(g.on(this._element,kr,o=>t(o)),g.on(this._element,Hr,o=>n(o)),this._element.classList.add(Gr)):(g.on(this._element,$r,o=>t(o)),g.on(this._element,Mr,o=>e(o)),g.on(this._element,jr,o=>n(o)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=xr[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?b.find(Qr,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){let n=t===Mt;return Bn(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){let n=this._getItemIndex(t),o=this._getItemIndex(b.findOne(Ze,this._element));return g.trigger(this._element,Dr,{relatedTarget:t,direction:e,from:o,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){let e=b.findOne(Xr,this._indicatorsElement);e.classList.remove(Ht),e.removeAttribute("aria-current");let n=b.find(ea,this._indicatorsElement);for(let o=0;o<n.length;o++)if(Number.parseInt(n[o].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){n[o].classList.add(Ht),n[o].setAttribute("aria-current","true");break}}}_updateInterval(){let t=this._activeElement||b.findOne(Ze,this._element);if(!t)return;let e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){let n=this._directionToOrder(t),o=b.findOne(Ze,this._element),s=this._getItemIndex(o),r=e||this._getItemByOrder(n,o),l=this._getItemIndex(r),u=Boolean(this._interval),p=n===Mt,f=p?Kr:Yr,_=p?Ur:qr,d=this._orderToDirection(n);if(r&&r.classList.contains(Ht)){this._isSliding=!1;return}if(this._isSliding||this._triggerSlideEvent(r,d).defaultPrevented||!o||!r)return;this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r;let E=()=>{g.trigger(this._element,eo,{relatedTarget:r,direction:d,from:s,to:l})};if(this._element.classList.contains(Fr)){r.classList.add(_),ne(r),o.classList.add(f),r.classList.add(f);let h=()=>{r.classList.remove(f,_),r.classList.add(Ht),o.classList.remove(Ht,_,f),this._isSliding=!1,setTimeout(E,0)};this._queueCallback(h,o,!0)}else o.classList.remove(Ht),r.classList.add(Ht),this._isSliding=!1,E();u&&this.cycle()}_directionToOrder(t){return[Te,kt].includes(t)?Y()?t===kt?jt:Mt:t===kt?Mt:jt:t}_orderToDirection(t){return[Mt,jt].includes(t)?Y()?t===jt?kt:Te:t===jt?Te:kt:t}static carouselInterface(t,e){let n=ot.getOrCreateInstance(t,e),{_config:o}=n;typeof e=="object"&&(o=O(O({},o),e));let s=typeof e=="string"?e:o.slide;if(typeof e=="number")n.to(e);else if(typeof s=="string"){if(typeof n[s]=="undefined")throw new TypeError(`No method named "${s}"`);n[s]()}else o.interval&&o.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each(function(){ot.carouselInterface(this,t)})}static dataApiClickHandler(t){let e=Et(this);if(!e||!e.classList.contains(zr))return;let n=O(O({},H.getDataAttributes(e)),H.getDataAttributes(this)),o=this.getAttribute("data-bs-slide-to");o&&(n.interval=!1),ot.carouselInterface(e,n),o&&ot.getInstance(e).to(o),t.preventDefault()}};g.on(document,Vr,ia,ot.dataApiClickHandler);g.on(window,Br,()=>{let i=b.find(na);for(let t=0,e=i.length;t<e;t++)ot.carouselInterface(i[t],ot.getInstance(i[t]))});Q(ot);var oo="collapse",so="bs.collapse",be=`.${so}`,oa=".data-api",Fi={toggle:!0,parent:""},sa={toggle:"boolean",parent:"(string|element)"},ra=`show${be}`,aa=`shown${be}`,la=`hide${be}`,ca=`hidden${be}`,ua=`click${be}${oa}`,Wt="show",Ae="collapse",Je="collapsing",ti="collapsed",ro="width",fa="height",da=".show, .collapsing",Se='[data-bs-toggle="collapse"]',J=class extends Z{constructor(t,e){super(t);this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=b.find(`${Se}[href="#${this._element.id}"],${Se}[data-bs-target="#${this._element.id}"]`);let n=b.find(Se);for(let o=0,s=n.length;o<s;o++){let r=n[o],l=ki(r),u=b.find(l).filter(p=>p===this._element);l!==null&&u.length&&(this._selector=l,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}static get Default(){return Fi}static get NAME(){return oo}toggle(){this._element.classList.contains(Wt)?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(Wt))return;let t,e;this._parent&&(t=b.find(da,this._parent).filter(p=>typeof this._config.parent=="string"?p.getAttribute("data-bs-parent")===this._config.parent:p.classList.contains(Ae)),t.length===0&&(t=null));let n=b.findOne(this._selector);if(t){let p=t.find(f=>n!==f);if(e=p?J.getInstance(p):null,e&&e._isTransitioning)return}if(g.trigger(this._element,ra).defaultPrevented)return;t&&t.forEach(p=>{n!==p&&J.collapseInterface(p,"hide"),e||$t.set(p,so,null)});let s=this._getDimension();this._element.classList.remove(Ae),this._element.classList.add(Je),this._element.style[s]=0,this._triggerArray.length&&this._triggerArray.forEach(p=>{p.classList.remove(ti),p.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);let r=()=>{this._element.classList.remove(Je),this._element.classList.add(Ae,Wt),this._element.style[s]="",this.setTransitioning(!1),g.trigger(this._element,aa)},u=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[s]=`${this._element[u]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains(Wt)||g.trigger(this._element,la).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,ne(this._element),this._element.classList.add(Je),this._element.classList.remove(Ae,Wt);let n=this._triggerArray.length;if(n>0)for(let s=0;s<n;s++){let r=this._triggerArray[s],l=Et(r);l&&!l.classList.contains(Wt)&&(r.classList.add(ti),r.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);let o=()=>{this.setTransitioning(!1),this._element.classList.remove(Je),this._element.classList.add(Ae),g.trigger(this._element,ca)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return t=O(O({},Fi),t),t.toggle=Boolean(t.toggle),ut(oo,t,sa),t}_getDimension(){return this._element.classList.contains(ro)?ro:fa}_getParent(){let{parent:t}=this._config;t=ee(t);let e=`${Se}[data-bs-parent="${t}"]`;return b.find(e,t).forEach(n=>{let o=Et(n);this._addAriaAndCollapsedClass(o,[n])}),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;let n=t.classList.contains(Wt);e.forEach(o=>{n?o.classList.remove(ti):o.classList.add(ti),o.setAttribute("aria-expanded",n)})}static collapseInterface(t,e){let n=J.getInstance(t),o=O(O(O({},Fi),H.getDataAttributes(t)),typeof e=="object"&&e?e:{});if(!n&&o.toggle&&typeof e=="string"&&/show|hide/.test(e)&&(o.toggle=!1),n||(n=new J(t,o)),typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each(function(){J.collapseInterface(this,t)})}};g.on(document,ua,Se,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();let t=H.getDataAttributes(this),e=ki(this);b.find(e).forEach(o=>{let s=J.getInstance(o),r;s?(s._parent===null&&typeof t.parent=="string"&&(s._config.parent=t.parent,s._parent=s._getParent()),r="toggle"):r=t,J.collapseInterface(o,r)})});Q(J);var Yi="dropdown",ha="bs.dropdown",Tt=`.${ha}`,Ki=".data-api",ei="Escape",ao="Space",lo="Tab",Ui="ArrowUp",ii="ArrowDown",pa=2,ma=new RegExp(`${Ui}|${ii}|${ei}`),ga=`hide${Tt}`,_a=`hidden${Tt}`,Ea=`show${Tt}`,va=`shown${Tt}`,ya=`click${Tt}`,co=`click${Tt}${Ki}`,uo=`keydown${Tt}${Ki}`,Ta=`keyup${Tt}${Ki}`,ft="show",ba="dropup",Aa="dropend",Sa="dropstart",Oa="navbar",Oe='[data-bs-toggle="dropdown"]',qi=".dropdown-menu",wa=".navbar-nav",Ca=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",La=Y()?"top-end":"top-start",Na=Y()?"top-start":"top-end",xa=Y()?"bottom-end":"bottom-start",Da=Y()?"bottom-start":"bottom-end",Ia=Y()?"left-start":"right-start",Pa=Y()?"right-start":"left-start",Ra={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},$a={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},z=class extends Z{constructor(t,e){super(t);this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}static get Default(){return Ra}static get DefaultType(){return $a}static get NAME(){return Yi}toggle(){if(ie(this._element))return;if(this._element.classList.contains(ft)){this.hide();return}this.show()}show(){if(ie(this._element)||this._menu.classList.contains(ft))return;let t=z.getParentFromElement(this._element),e={relatedTarget:this._element};if(!g.trigger(this._element,Ea,e).defaultPrevented){if(this._inNavbar)H.setDataAttribute(this._menu,"popper","none");else{if(typeof Ge=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let o=this._element;this._config.reference==="parent"?o=t:vt(this._config.reference)?o=ee(this._config.reference):typeof this._config.reference=="object"&&(o=this._config.reference);let s=this._getPopperConfig(),r=s.modifiers.find(l=>l.name==="applyStyles"&&l.enabled===!1);this._popper=qe(o,this._menu,s),r&&H.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(wa)&&[].concat(...document.body.children).forEach(o=>g.on(o,"mouseover",Qe)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(ft),this._element.classList.toggle(ft),g.trigger(this._element,va,e)}}hide(){if(ie(this._element)||!this._menu.classList.contains(ft))return;let t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_addEventListeners(){g.on(this._element,ya,t=>{t.preventDefault(),this.toggle()})}_completeHide(t){g.trigger(this._element,ga,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(n=>g.off(n,"mouseover",Qe)),this._popper&&this._popper.destroy(),this._menu.classList.remove(ft),this._element.classList.remove(ft),this._element.setAttribute("aria-expanded","false"),H.removeDataAttribute(this._menu,"popper"),g.trigger(this._element,_a,t))}_getConfig(t){if(t=O(O(O({},this.constructor.Default),H.getDataAttributes(this._element)),t),ut(Yi,t,this.constructor.DefaultType),typeof t.reference=="object"&&!vt(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Yi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return b.next(this._element,qi)[0]}_getPlacement(){let t=this._element.parentNode;if(t.classList.contains(Aa))return Ia;if(t.classList.contains(Sa))return Pa;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(ba)?e?Na:La:e?Da:xa}_detectNavbar(){return this._element.closest(`.${Oa}`)!==null}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){let t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return this._config.display==="static"&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),O(O({},t),typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:e}){let n=b.find(Ca,this._menu).filter(Xe);!n.length||Bn(n,e,t===ii,!n.includes(e)).focus()}static dropdownInterface(t,e){let n=z.getOrCreateInstance(t,e);if(typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each(function(){z.dropdownInterface(this,t)})}static clearMenus(t){if(t&&(t.button===pa||t.type==="keyup"&&t.key!==lo))return;let e=b.find(Oe);for(let n=0,o=e.length;n<o;n++){let s=z.getInstance(e[n]);if(!s||s._config.autoClose===!1||!s._element.classList.contains(ft))continue;let r={relatedTarget:s._element};if(t){let l=t.composedPath(),u=l.includes(s._menu);if(l.includes(s._element)||s._config.autoClose==="inside"&&!u||s._config.autoClose==="outside"&&u||s._menu.contains(t.target)&&(t.type==="keyup"&&t.key===lo||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;t.type==="click"&&(r.clickEvent=t)}s._completeHide(r)}}static getParentFromElement(t){return Et(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===ao||t.key!==ei&&(t.key!==ii&&t.key!==Ui||t.target.closest(qi)):!ma.test(t.key))return;let e=this.classList.contains(ft);if(!e&&t.key===ei||(t.preventDefault(),t.stopPropagation(),ie(this)))return;let n=()=>this.matches(Oe)?this:b.prev(this,Oe)[0];if(t.key===ei){n().focus(),z.clearMenus();return}if(t.key===Ui||t.key===ii){e||n().click(),z.getInstance(n())._selectMenuItem(t);return}(!e||t.key===ao)&&z.clearMenus()}};g.on(document,uo,Oe,z.dataApiKeydownHandler);g.on(document,uo,qi,z.dataApiKeydownHandler);g.on(document,co,z.clearMenus);g.on(document,Ta,z.clearMenus);g.on(document,co,Oe,function(i){i.preventDefault(),z.dropdownInterface(this)});Q(z);var fo=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ho=".sticky-top",ni=class{constructor(){this._element=document.body}getWidth(){let t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",e=>e+t),this._setElementAttributes(fo,"paddingRight",e=>e+t),this._setElementAttributes(ho,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){let o=this.getWidth(),s=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+o)return;this._saveInitialAttribute(r,e);let l=window.getComputedStyle(r)[e];r.style[e]=`${n(Number.parseFloat(l))}px`};this._applyManipulationCallback(t,s)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(fo,"paddingRight"),this._resetElementAttributes(ho,"marginRight")}_saveInitialAttribute(t,e){let n=t.style[e];n&&H.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){let n=o=>{let s=H.getDataAttribute(o,e);typeof s=="undefined"?o.style.removeProperty(e):(H.removeDataAttribute(o,e),o.style[e]=s)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){vt(t)?e(t):b.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}},Ma={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},ja={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},po="backdrop",ka="modal-backdrop",Ha="fade",mo="show",go=`mousedown.bs.${po}`,Gi=class{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){if(!this._config.isVisible){Rt(t);return}this._append(),this._config.isAnimated&&ne(this._getElement()),this._getElement().classList.add(mo),this._emulateAnimation(()=>{Rt(t)})}hide(t){if(!this._config.isVisible){Rt(t);return}this._getElement().classList.remove(mo),this._emulateAnimation(()=>{this.dispose(),Rt(t)})}_getElement(){if(!this._element){let t=document.createElement("div");t.className=ka,this._config.isAnimated&&t.classList.add(Ha),this._element=t}return this._element}_getConfig(t){return t=O(O({},Ma),typeof t=="object"?t:{}),t.rootElement=ee(t.rootElement),ut(po,t,ja),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),g.on(this._getElement(),go,()=>{Rt(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(g.off(this._element,go),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){Wn(t,this._getElement(),this._config.isAnimated)}},_o="modal",Wa="bs.modal",U=`.${Wa}`,Ba=".data-api",Eo="Escape",vo={backdrop:!0,keyboard:!0,focus:!0},Va={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},za=`hide${U}`,Fa=`hidePrevented${U}`,yo=`hidden${U}`,To=`show${U}`,Ya=`shown${U}`,oi=`focusin${U}`,bo=`resize${U}`,Xi=`click.dismiss${U}`,Ao=`keydown.dismiss${U}`,Ka=`mouseup.dismiss${U}`,So=`mousedown.dismiss${U}`,Ua=`click${U}${Ba}`,Oo="modal-open",qa="fade",wo="show",Qi="modal-static",Ga=".modal-dialog",Xa=".modal-body",Qa='[data-bs-toggle="modal"]',Za='[data-bs-dismiss="modal"]',Bt=class extends Z{constructor(t,e){super(t);this._config=this._getConfig(e),this._dialog=b.findOne(Ga,this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new ni}static get Default(){return vo}static get NAME(){return _o}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||g.trigger(this._element,To,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Oo),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),g.on(this._element,Xi,Za,n=>this.hide(n)),g.on(this._dialog,So,()=>{g.one(this._element,Ka,n=>{n.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(t){if(t&&["A","AREA"].includes(t.target.tagName)&&t.preventDefault(),!this._isShown||this._isTransitioning||g.trigger(this._element,za).defaultPrevented)return;this._isShown=!1;let n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),g.off(document,oi),this._element.classList.remove(wo),g.off(this._element,Xi),g.off(this._dialog,So),this._queueCallback(()=>this._hideModal(),this._element,n)}dispose(){[window,this._dialog].forEach(t=>g.off(t,U)),this._backdrop.dispose(),super.dispose(),g.off(document,oi)}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Gi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t=O(O(O({},vo),H.getDataAttributes(this._element)),typeof t=="object"?t:{}),ut(_o,t,Va),t}_showElement(t){let e=this._isAnimated(),n=b.findOne(Xa,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,n&&(n.scrollTop=0),e&&ne(this._element),this._element.classList.add(wo),this._config.focus&&this._enforceFocus();let o=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,g.trigger(this._element,Ya,{relatedTarget:t})};this._queueCallback(o,this._dialog,e)}_enforceFocus(){g.off(document,oi),g.on(document,oi,t=>{document!==t.target&&this._element!==t.target&&!this._element.contains(t.target)&&this._element.focus()})}_setEscapeEvent(){this._isShown?g.on(this._element,Ao,t=>{this._config.keyboard&&t.key===Eo?(t.preventDefault(),this.hide()):!this._config.keyboard&&t.key===Eo&&this._triggerBackdropTransition()}):g.off(this._element,Ao)}_setResizeEvent(){this._isShown?g.on(window,bo,()=>this._adjustDialog()):g.off(window,bo)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Oo),this._resetAdjustments(),this._scrollBar.reset(),g.trigger(this._element,yo)})}_showBackdrop(t){g.on(this._element,Xi,e=>{if(this._ignoreBackdropClick){this._ignoreBackdropClick=!1;return}e.target===e.currentTarget&&(this._config.backdrop===!0?this.hide():this._config.backdrop==="static"&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains(qa)}_triggerBackdropTransition(){if(g.trigger(this._element,Fa).defaultPrevented)return;let{classList:e,scrollHeight:n,style:o}=this._element,s=n>document.documentElement.clientHeight;!s&&o.overflowY==="hidden"||e.contains(Qi)||(s||(o.overflowY="hidden"),e.add(Qi),this._queueCallback(()=>{e.remove(Qi),s||this._queueCallback(()=>{o.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;(!n&&t&&!Y()||n&&!t&&Y())&&(this._element.style.paddingLeft=`${e}px`),(n&&!t&&!Y()||!n&&t&&Y())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){let n=Bt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t](e)}})}};g.on(document,Ua,Qa,function(i){let t=Et(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),g.one(t,To,n=>{n.defaultPrevented||g.one(t,yo,()=>{Xe(this)&&this.focus()})}),Bt.getOrCreateInstance(t).toggle(this)});Q(Bt);var Co="offcanvas",Ja="bs.offcanvas",dt=`.${Ja}`,Lo=".data-api",tl=`load${dt}${Lo}`,el="Escape",No={backdrop:!0,keyboard:!0,scroll:!1},il={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},xo="show",Do=".offcanvas.show",nl=`show${dt}`,ol=`shown${dt}`,sl=`hide${dt}`,Io=`hidden${dt}`,si=`focusin${dt}`,rl=`click${dt}${Lo}`,al=`click.dismiss${dt}`,ll=`keydown.dismiss${dt}`,cl='[data-bs-dismiss="offcanvas"]',ul='[data-bs-toggle="offcanvas"]',Vt=class extends Z{constructor(t,e){super(t);this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return Co}static get Default(){return No}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||g.trigger(this._element,nl,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new ni().hide(),this._enforceFocusOnElement(this._element)),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(xo);let n=()=>{g.trigger(this._element,ol,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||g.trigger(this._element,sl).defaultPrevented)return;g.off(document,si),this._element.blur(),this._isShown=!1,this._element.classList.remove(xo),this._backdrop.hide();let e=()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||new ni().reset(),g.trigger(this._element,Io)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),super.dispose(),g.off(document,si)}_getConfig(t){return t=O(O(O({},No),H.getDataAttributes(this._element)),typeof t=="object"?t:{}),ut(Co,t,il),t}_initializeBackDrop(){return new Gi({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){g.off(document,si),g.on(document,si,e=>{document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}),t.focus()}_addEventListeners(){g.on(this._element,al,cl,()=>this.hide()),g.on(this._element,ll,t=>{this._config.keyboard&&t.key===el&&this.hide()})}static jQueryInterface(t){return this.each(function(){let e=Vt.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};g.on(document,rl,ul,function(i){let t=Et(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),ie(this))return;g.one(t,Io,()=>{Xe(this)&&this.focus()});let e=b.findOne(Do);e&&e!==t&&Vt.getInstance(e).hide(),Vt.getOrCreateInstance(t).toggle(this)});g.on(window,tl,()=>b.find(Do).forEach(i=>Vt.getOrCreateInstance(i).show()));Q(Vt);var fl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),dl=/^aria-[\w-]*$/i,hl=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,pl=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,ml=(i,t)=>{let e=i.nodeName.toLowerCase();if(t.includes(e))return fl.has(e)?Boolean(hl.test(i.nodeValue)||pl.test(i.nodeValue)):!0;let n=t.filter(o=>o instanceof RegExp);for(let o=0,s=n.length;o<s;o++)if(n[o].test(e))return!0;return!1},gl={"*":["class","dir","id","lang","role",dl],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 Po(i,t,e){if(!i.length)return i;if(e&&typeof e=="function")return e(i);let o=new window.DOMParser().parseFromString(i,"text/html"),s=Object.keys(t),r=[].concat(...o.body.querySelectorAll("*"));for(let l=0,u=r.length;l<u;l++){let p=r[l],f=p.nodeName.toLowerCase();if(!s.includes(f)){p.remove();continue}let _=[].concat(...p.attributes),d=[].concat(t["*"]||[],t[f]||[]);_.forEach(v=>{ml(v,d)||p.removeAttribute(v.nodeName)})}return o.body.innerHTML}var Ro="tooltip",_l="bs.tooltip",st=`.${_l}`,$o="bs-tooltip",El=new RegExp(`(^|\\s)${$o}\\S+`,"g"),vl=new Set(["sanitize","allowList","sanitizeFn"]),yl={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)"},Tl={AUTO:"auto",TOP:"top",RIGHT:Y()?"left":"right",BOTTOM:"bottom",LEFT:Y()?"right":"left"},bl={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:gl,popperConfig:null},Al={HIDE:`hide${st}`,HIDDEN:`hidden${st}`,SHOW:`show${st}`,SHOWN:`shown${st}`,INSERTED:`inserted${st}`,CLICK:`click${st}`,FOCUSIN:`focusin${st}`,FOCUSOUT:`focusout${st}`,MOUSEENTER:`mouseenter${st}`,MOUSELEAVE:`mouseleave${st}`},ri="fade",Mo="modal",we="show",Ce="show",Zi="out",Sl=".tooltip-inner",Le="hover",Ji="focus",Ol="click",wl="manual",ht=class extends Z{constructor(t,e){if(typeof Ge=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t);this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return bl}static get NAME(){return Ro}static get Event(){return Al}static get DefaultType(){return yl}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(!!this._isEnabled)if(t){let e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(we)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),g.off(this._element.closest(`.${Mo}`),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.remove(),this._popper&&this._popper.destroy(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this.isWithContent()&&this._isEnabled))return;let t=g.trigger(this._element,this.constructor.Event.SHOW),e=kn(this._element),n=e===null?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;let o=this.getTipElement(),s=$n(this.constructor.NAME);o.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this.setContent(),this._config.animation&&o.classList.add(ri);let r=typeof this._config.placement=="function"?this._config.placement.call(this,o,this._element):this._config.placement,l=this._getAttachment(r);this._addAttachmentClass(l);let{container:u}=this._config;$t.set(o,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(u.appendChild(o),g.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=qe(this._element,o,this._getPopperConfig(l)),o.classList.add(we);let p=typeof this._config.customClass=="function"?this._config.customClass():this._config.customClass;p&&o.classList.add(...p.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(d=>{g.on(d,"mouseover",Qe)});let f=()=>{let d=this._hoverState;this._hoverState=null,g.trigger(this._element,this.constructor.Event.SHOWN),d===Zi&&this._leave(null,this)},_=this.tip.classList.contains(ri);this._queueCallback(f,this.tip,_)}hide(){if(!this._popper)return;let t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==Ce&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),g.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(g.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(we),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(s=>g.off(s,"mouseover",Qe)),this._activeTrigger[Ol]=!1,this._activeTrigger[Ji]=!1,this._activeTrigger[Le]=!1;let o=this.tip.classList.contains(ri);this._queueCallback(e,this.tip,o),this._hoverState=""}update(){this._popper!==null&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;let t=document.createElement("div");return t.innerHTML=this._config.template,this.tip=t.children[0],this.tip}setContent(){let t=this.getTipElement();this.setElementContent(b.findOne(Sl,t),this.getTitle()),t.classList.remove(ri,we)}setElementContent(t,e){if(t!==null){if(vt(e)){e=ee(e),this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent;return}this._config.html?(this._config.sanitize&&(e=Po(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e}}getTitle(){let t=this._element.getAttribute("data-bs-original-title");return t||(t=typeof this._config.title=="function"?this._config.title.call(this._element):this._config.title),t}updateAttachment(t){return t==="right"?"end":t==="left"?"start":t}_initializeOnDelegatedTarget(t,e){let n=this.constructor.DATA_KEY;return e=e||$t.get(t.delegateTarget,n),e||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),$t.set(t.delegateTarget,n,e)),e}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(t){let e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:n=>this._handlePopperPlacementChange(n)}],onFirstUpdate:n=>{n.options.placement!==n.placement&&this._handlePopperPlacementChange(n)}};return O(O({},e),typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${$o}-${this.updateAttachment(t)}`)}_getAttachment(t){return Tl[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if(e==="click")g.on(this._element,this.constructor.Event.CLICK,this._config.selector,n=>this.toggle(n));else if(e!==wl){let n=e===Le?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,o=e===Le?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;g.on(this._element,n,this._config.selector,s=>this._enter(s)),g.on(this._element,o,this._config.selector,s=>this._leave(s))}}),this._hideModalHandler=()=>{this._element&&this.hide()},g.on(this._element.closest(`.${Mo}`),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config=je(O({},this._config),{trigger:"manual",selector:""}):this._fixTitle()}_fixTitle(){let t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||e!=="string")&&(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",""))}_enter(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusin"?Ji:Le]=!0),e.getTipElement().classList.contains(we)||e._hoverState===Ce){e._hoverState=Ce;return}if(clearTimeout(e._timeout),e._hoverState=Ce,!e._config.delay||!e._config.delay.show){e.show();return}e._timeout=setTimeout(()=>{e._hoverState===Ce&&e.show()},e._config.delay.show)}_leave(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusout"?Ji:Le]=e._element.contains(t.relatedTarget)),!e._isWithActiveTrigger()){if(clearTimeout(e._timeout),e._hoverState=Zi,!e._config.delay||!e._config.delay.hide){e.hide();return}e._timeout=setTimeout(()=>{e._hoverState===Zi&&e.hide()},e._config.delay.hide)}}_isWithActiveTrigger(){for(let t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){let e=H.getDataAttributes(this._element);return Object.keys(e).forEach(n=>{vl.has(n)&&delete e[n]}),t=O(O(O({},this.constructor.Default),e),typeof t=="object"&&t?t:{}),t.container=t.container===!1?document.body:ee(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),ut(Ro,t,this.constructor.DefaultType),t.sanitize&&(t.template=Po(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){let t={};if(this._config)for(let e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){let t=this.getTipElement(),e=t.getAttribute("class").match(El);e!==null&&e.length>0&&e.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}_handlePopperPlacementChange(t){let{state:e}=t;!e||(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}static jQueryInterface(t){return this.each(function(){let e=ht.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};Q(ht);var Cl="popover",Ll="bs.popover",rt=`.${Ll}`,jo="bs-popover",Nl=new RegExp(`(^|\\s)${jo}\\S+`,"g"),xl=je(O({},ht.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>'}),Dl=je(O({},ht.DefaultType),{content:"(string|element|function)"}),Il={HIDE:`hide${rt}`,HIDDEN:`hidden${rt}`,SHOW:`show${rt}`,SHOWN:`shown${rt}`,INSERTED:`inserted${rt}`,CLICK:`click${rt}`,FOCUSIN:`focusin${rt}`,FOCUSOUT:`focusout${rt}`,MOUSEENTER:`mouseenter${rt}`,MOUSELEAVE:`mouseleave${rt}`},Pl="fade",Rl="show",ko=".popover-header",Ho=".popover-body",se=class extends ht{static get Default(){return xl}static get NAME(){return Cl}static get Event(){return Il}static get DefaultType(){return Dl}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip?this.tip:(this.tip=super.getTipElement(),this.getTitle()||b.findOne(ko,this.tip).remove(),this._getContent()||b.findOne(Ho,this.tip).remove(),this.tip)}setContent(){let t=this.getTipElement();this.setElementContent(b.findOne(ko,t),this.getTitle());let e=this._getContent();typeof e=="function"&&(e=e.call(this._element)),this.setElementContent(b.findOne(Ho,t),e),t.classList.remove(Pl,Rl)}_addAttachmentClass(t){this.getTipElement().classList.add(`${jo}-${this.updateAttachment(t)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_cleanTipClass(){let t=this.getTipElement(),e=t.getAttribute("class").match(Nl);e!==null&&e.length>0&&e.map(n=>n.trim()).forEach(n=>t.classList.remove(n))}static jQueryInterface(t){return this.each(function(){let e=se.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};Q(se);var tn="scrollspy",$l="bs.scrollspy",ai=`.${$l}`,Ml=".data-api",Wo={offset:10,method:"auto",target:""},jl={offset:"number",method:"string",target:"(string|element)"},kl=`activate${ai}`,Hl=`scroll${ai}`,Wl=`load${ai}${Ml}`,Bo="dropdown-item",zt="active",Bl='[data-bs-spy="scroll"]',Vl=".nav, .list-group",en=".nav-link",zl=".nav-item",Vo=".list-group-item",Fl=".dropdown",Yl=".dropdown-toggle",Kl="offset",zo="position",Ne=class extends Z{constructor(t,e){super(t);this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} ${en}, ${this._config.target} ${Vo}, ${this._config.target} .${Bo}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,g.on(this._scrollElement,Hl,()=>this._process()),this.refresh(),this._process()}static get Default(){return Wo}static get NAME(){return tn}refresh(){let t=this._scrollElement===this._scrollElement.window?Kl:zo,e=this._config.method==="auto"?t:this._config.method,n=e===zo?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),b.find(this._selector).map(s=>{let r=ki(s),l=r?b.findOne(r):null;if(l){let u=l.getBoundingClientRect();if(u.width||u.height)return[H[e](l).top+n,r]}return null}).filter(s=>s).sort((s,r)=>s[0]-r[0]).forEach(s=>{this._offsets.push(s[0]),this._targets.push(s[1])})}dispose(){g.off(this._scrollElement,ai),super.dispose()}_getConfig(t){if(t=O(O(O({},Wo),H.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),typeof t.target!="string"&&vt(t.target)){let{id:e}=t.target;e||(e=$n(tn),t.target.id=e),t.target=`#${e}`}return ut(tn,t,jl),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){let t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){let o=this._targets[this._targets.length-1];this._activeTarget!==o&&this._activate(o);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(let o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(typeof this._offsets[o+1]=="undefined"||t<this._offsets[o+1])&&this._activate(this._targets[o])}_activate(t){this._activeTarget=t,this._clear();let e=this._selector.split(",").map(o=>`${o}[data-bs-target="${t}"],${o}[href="${t}"]`),n=b.findOne(e.join(","));n.classList.contains(Bo)?(b.findOne(Yl,n.closest(Fl)).classList.add(zt),n.classList.add(zt)):(n.classList.add(zt),b.parents(n,Vl).forEach(o=>{b.prev(o,`${en}, ${Vo}`).forEach(s=>s.classList.add(zt)),b.prev(o,zl).forEach(s=>{b.children(s,en).forEach(r=>r.classList.add(zt))})})),g.trigger(this._scrollElement,kl,{relatedTarget:t})}_clear(){b.find(this._selector).filter(t=>t.classList.contains(zt)).forEach(t=>t.classList.remove(zt))}static jQueryInterface(t){return this.each(function(){let e=Ne.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};g.on(window,Wl,()=>{b.find(Bl).forEach(i=>new Ne(i))});Q(Ne);var Ul="tab",ql="bs.tab",xe=`.${ql}`,Gl=".data-api",Xl=`hide${xe}`,Ql=`hidden${xe}`,Zl=`show${xe}`,Jl=`shown${xe}`,tc=`click${xe}${Gl}`,ec="dropdown-menu",De="active",Fo="fade",Yo="show",ic=".dropdown",nc=".nav, .list-group",Ko=".active",Uo=":scope > li > .active",oc='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',sc=".dropdown-toggle",rc=":scope > .dropdown-menu .active",re=class extends Z{static get NAME(){return Ul}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(De))return;let t,e=Et(this._element),n=this._element.closest(nc);if(n){let l=n.nodeName==="UL"||n.nodeName==="OL"?Uo:Ko;t=b.find(l,n),t=t[t.length-1]}let o=t?g.trigger(t,Xl,{relatedTarget:this._element}):null;if(g.trigger(this._element,Zl,{relatedTarget:t}).defaultPrevented||o!==null&&o.defaultPrevented)return;this._activate(this._element,n);let r=()=>{g.trigger(t,Ql,{relatedTarget:this._element}),g.trigger(this._element,Jl,{relatedTarget:t})};e?this._activate(e,e.parentNode,r):r()}_activate(t,e,n){let s=(e&&(e.nodeName==="UL"||e.nodeName==="OL")?b.find(Uo,e):b.children(e,Ko))[0],r=n&&s&&s.classList.contains(Fo),l=()=>this._transitionComplete(t,s,n);s&&r?(s.classList.remove(Yo),this._queueCallback(l,t,!0)):l()}_transitionComplete(t,e,n){if(e){e.classList.remove(De);let s=b.findOne(rc,e.parentNode);s&&s.classList.remove(De),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!1)}t.classList.add(De),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!0),ne(t),t.classList.contains(Fo)&&t.classList.add(Yo);let o=t.parentNode;if(o&&o.nodeName==="LI"&&(o=o.parentNode),o&&o.classList.contains(ec)){let s=t.closest(ic);s&&b.find(sc,s).forEach(r=>r.classList.add(De)),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each(function(){let e=re.getOrCreateInstance(this);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};g.on(document,tc,oc,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),ie(this))return;re.getOrCreateInstance(this).show()});Q(re);var qo="toast",ac="bs.toast",pt=`.${ac}`,lc=`click.dismiss${pt}`,cc=`mouseover${pt}`,uc=`mouseout${pt}`,fc=`focusin${pt}`,dc=`focusout${pt}`,hc=`hide${pt}`,pc=`hidden${pt}`,mc=`show${pt}`,gc=`shown${pt}`,_c="fade",Go="hide",Ie="show",Xo="showing",Ec={animation:"boolean",autohide:"boolean",delay:"number"},Qo={animation:!0,autohide:!0,delay:5e3},vc='[data-bs-dismiss="toast"]',Ft=class extends Z{constructor(t,e){super(t);this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Ec}static get Default(){return Qo}static get NAME(){return qo}show(){if(g.trigger(this._element,mc).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(_c);let e=()=>{this._element.classList.remove(Xo),this._element.classList.add(Ie),g.trigger(this._element,gc),this._maybeScheduleHide()};this._element.classList.remove(Go),ne(this._element),this._element.classList.add(Xo),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(Ie)||g.trigger(this._element,hc).defaultPrevented)return;let e=()=>{this._element.classList.add(Go),g.trigger(this._element,pc)};this._element.classList.remove(Ie),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(Ie)&&this._element.classList.remove(Ie),super.dispose()}_getConfig(t){return t=O(O(O({},Qo),H.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),ut(qo,t,this.constructor.DefaultType),t}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e;break}if(e){this._clearTimeout();return}let n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){g.on(this._element,lc,vc,()=>this.hide()),g.on(this._element,cc,t=>this._onInteraction(t,!0)),g.on(this._element,uc,t=>this._onInteraction(t,!1)),g.on(this._element,fc,t=>this._onInteraction(t,!0)),g.on(this._element,dc,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=Ft.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};Q(Ft);var bc=Ts(ns());function os(i){return"error"in i}function ae(i){let t=["","null","undefined"];return Array.isArray(i)?i.length>0:typeof i=="string"&&!t.includes(i)||typeof i=="number"||typeof i=="boolean"?!0:typeof i=="object"&&i!==null}function yc(i,t,e){return Ti(this,null,function*(){let n=window.CSRF_TOKEN,o=new Headers({"X-CSRFToken":n}),s;typeof e!="undefined"&&(s=JSON.stringify(e),o.set("content-type","application/json"));let r=yield fetch(i,{method:t,body:s,headers:o,credentials:"same-origin"}),l=r.headers.get("Content-Type");if(typeof l=="string"&&l.includes("text"))return{error:yield r.text()};let u=yield r.json();return!r.ok&&Array.isArray(u)?{error:u.join(`
|
|
`)}:!r.ok&&"detail"in u?{error:u.detail}:u})}function ss(i){return Ti(this,null,function*(){return yield yc(i,"GET")})}function*on(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function rs(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of on("body > div#netbox-data > *")){let e=t.getAttribute(i);if(ae(e))return e}return null}function Tc(i,t){i!==null&&(typeof t=="undefined"?window.getComputedStyle(i).display==="none"?i.style.display="":i.style.display="none":t==="show"?i.style.display="":i.style.display="none")}function gi(i){for(let t of on("div.card-overlay"))Tc(t,i)}window.Collapse=J;window.Modal=Bt;window.Popover=se;window.Toast=Ft;window.Tooltip=ht;function as(i,t,e,n){let o="mdi-alert";switch(i){case"warning":o="mdi-alert";break;case"success":o="mdi-check-circle";break;case"info":o="mdi-information";break;case"danger":o="mdi-alert";break}let s=document.createElement("div");s.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let r=document.createElement("div");r.setAttribute("class",`toast bg-${i}`),r.setAttribute("role","alert"),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true");let l=document.createElement("div");l.setAttribute("class",`toast-header bg-${i} text-body`);let u=document.createElement("i");u.setAttribute("class",`mdi ${o}`);let p=document.createElement("strong");p.setAttribute("class","me-auto ms-1"),p.innerText=t;let f=document.createElement("button");f.setAttribute("type","button"),f.setAttribute("class","btn-close"),f.setAttribute("data-bs-dismiss","toast"),f.setAttribute("aria-label","Close");let _=document.createElement("div");if(_.setAttribute("class","toast-body"),l.appendChild(u),l.appendChild(p),typeof n!="undefined"){let v=document.createElement("small");v.setAttribute("class","text-muted"),l.appendChild(v)}return l.appendChild(f),_.innerText=e.trim(),r.appendChild(l),r.appendChild(_),s.appendChild(r),document.body.appendChild(s),new Ft(r)}var ls=new RegExp(/^([A-Z][A-Za-z]+)[^0-9]*([0-9/]+)$/),Ac=new Map([["TwentyFiveGigE","Twe"]]);function sn(i,t,e){var n,o;return(o=(n=i.querySelector(t))==null?void 0:n.getAttribute(e))!=null?o:null}function Sc(i){var t;if(i===null)return i;if(i.match(ls)){let[e,n]=((t=i.match(ls))!=null?t:[]).slice(1,3);if(ae(e)&&ae(n))return`${Ac.get(e)||e.slice(0,2)}${n}`}return i}function Oc(i){var t,e;for(let[n,o]of Object.entries(i.get_lldp_neighbors_detail)){let[s]=n.split("."),r=document.getElementById(s);if(r!==null)for(let l of o){let u=r.querySelector("td.device"),p=r.querySelector("td.interface"),f=sn(r,"td.configured_device","data"),_=sn(r,"td.configured_chassis","data-chassis"),d=sn(r,"td.configured_interface","data"),v=Sc(d),E=(t=l.remote_system_name)!=null?t:"",h=(e=l.remote_port)!=null?e:"",[a]=E.split("."),[c]=h.split(".");u!==null&&(u.innerText=a),p!==null&&(p.innerText=c),!ae(f)&&ae(a)?r.classList.add("info"):(f===a||_===a)&&(d===c||v===c)?r.classList.add("success"):r.classList.add("danger")}}}function cs(){gi("show");let i=rs("object-url");i!==null&&ss(i).then(t=>{if(os(t)){as("danger","Error Retrieving LLDP Neighbor Information",t.error).show(),gi("hide");return}else Oc(t)}).finally(()=>{gi("hide")})}document.readyState!=="loading"?cs():document.addEventListener("DOMContentLoaded",cs);})();
|
|
/*!
|
|
* Bootstrap v5.0.2 (https://getbootstrap.com/)
|
|
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
*/
|
|
/*!
|
|
* Masonry v4.2.2
|
|
* Cascading grid layout library
|
|
* https://masonry.desandro.com
|
|
* MIT License
|
|
* by David DeSandro
|
|
*/
|
|
/*!
|
|
* Outlayer v2.1.1
|
|
* the brains and guts of a layout library
|
|
* MIT license
|
|
*/
|
|
/*!
|
|
* getSize v2.0.3
|
|
* measure size of elements
|
|
* MIT license
|
|
*/
|