mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-15 03:32:53 -06:00

* Replace masonry with gridstack * Initial work on dashboard widgets * Implement function to save dashboard layout * Define a default dashboard * Clean up widgets * Implement widget configuration views & forms * Permit merging dict value with existing dict in user config * Add widget deletion view * Enable HTMX for widget configuration * Implement view to add dashboard widgets * ObjectCountsWidget: Identify models by app_label & name * Add color customization to dashboard widgets * Introduce Dashboard model to store user dashboard layout & config * Clean up utility functions * Remove hard-coded API URL * Use fixed grid cell height * Add modal close button * Clean up dashboard views * Rebuild JS
8 lines
83 KiB
JavaScript
8 lines
83 KiB
JavaScript
(()=>{var hi=Object.defineProperty,so=Object.defineProperties;var oo=Object.getOwnPropertyDescriptors;var cn=Object.getOwnPropertySymbols;var ro=Object.prototype.hasOwnProperty,ao=Object.prototype.propertyIsEnumerable;var fn=(i,t,e)=>t in i?hi(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,_=(i,t)=>{for(var e in t||(t={}))ro.call(t,e)&&fn(i,e,t[e]);if(cn)for(var e of cn(t))ao.call(t,e)&&fn(i,e,t[e]);return i},He=(i,t)=>so(i,oo(t)),lo=i=>hi(i,"__esModule",{value:!0});var co=(i,t)=>{lo(i);for(var e in t)hi(i,e,{get:t[e],enumerable:!0})};var gi=(i,t,e)=>new Promise((n,s)=>{var o=l=>{try{a(e.next(l))}catch(u){s(u)}},r=l=>{try{a(e.throw(l))}catch(u){s(u)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,r);a((e=e.apply(i,t)).next())});var Qe={};co(Qe,{afterMain:()=>gn,afterRead:()=>pn,afterWrite:()=>vn,applyStyles:()=>Qt,arrow:()=>We,auto:()=>pe,basePlacements:()=>ct,beforeMain:()=>mn,beforeRead:()=>un,beforeWrite:()=>_n,bottom:()=>$,clippingParents:()=>_i,computeStyles:()=>Jt,createPopper:()=>ze,createPopperBase:()=>Cn,createPopperLite:()=>Ln,detectOverflow:()=>K,end:()=>Et,eventListeners:()=>te,flip:()=>Ye,hide:()=>qe,left:()=>D,main:()=>hn,modifierPhases:()=>vi,offset:()=>Ge,placements:()=>he,popper:()=>Lt,popperGenerator:()=>jt,popperOffsets:()=>ne,preventOverflow:()=>Xe,read:()=>dn,reference:()=>Ei,right:()=>x,start:()=>ot,top:()=>O,variationPlacements:()=>Be,viewport:()=>me,write:()=>En});var O="top",$="bottom",x="right",D="left",pe="auto",ct=[O,$,x,D],ot="start",Et="end",_i="clippingParents",me="viewport",Lt="popper",Ei="reference",Be=ct.reduce(function(i,t){return i.concat([t+"-"+ot,t+"-"+Et])},[]),he=[].concat(ct,[pe]).reduce(function(i,t){return i.concat([t,t+"-"+ot,t+"-"+Et])},[]),un="beforeRead",dn="read",pn="afterRead",mn="beforeMain",hn="main",gn="afterMain",_n="beforeWrite",En="write",vn="afterWrite",vi=[un,dn,pn,mn,hn,gn,_n,En,vn];function j(i){return i?(i.nodeName||"").toLowerCase():null}function N(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function z(i){var t=N(i).Element;return i instanceof t||i instanceof Element}function M(i){var t=N(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function zt(i){if(typeof ShadowRoot=="undefined")return!1;var t=N(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function fo(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},s=t.attributes[e]||{},o=t.elements[e];!M(o)||!j(o)||(Object.assign(o.style,n),Object.keys(s).forEach(function(r){var a=s[r];a===!1?o.removeAttribute(r):o.setAttribute(r,a===!0?"":a)}))})}function uo(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 s=t.elements[n],o=t.attributes[n]||{},r=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]),a=r.reduce(function(l,u){return l[u]="",l},{});!M(s)||!j(s)||(Object.assign(s.style,a),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}}var Qt={name:"applyStyles",enabled:!0,phase:"write",fn:fo,effect:uo,requires:["computeStyles"]};function k(i){return i.split("-")[0]}var nt=Math.max,Dt=Math.min,ft=Math.round;function Zt(){var i=navigator.userAgentData;return i!=null&&i.brands?i.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ge(){return!/^((?!chrome|android).)*safari/i.test(Zt())}function Q(i,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var n=i.getBoundingClientRect(),s=1,o=1;t&&M(i)&&(s=i.offsetWidth>0&&ft(n.width)/i.offsetWidth||1,o=i.offsetHeight>0&&ft(n.height)/i.offsetHeight||1);var r=z(i)?N(i):window,a=r.visualViewport,l=!ge()&&e,u=(n.left+(l&&a?a.offsetLeft:0))/s,f=(n.top+(l&&a?a.offsetTop:0))/o,d=n.width/s,m=n.height/o;return{width:d,height:m,top:f,right:u+d,bottom:f+m,left:u,x:u,y:f}}function xt(i){var t=Q(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 _e(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return!0;if(e&&zt(e)){var n=t;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function W(i){return N(i).getComputedStyle(i)}function bi(i){return["table","td","th"].indexOf(j(i))>=0}function H(i){return((z(i)?i.ownerDocument:i.document)||window.document).documentElement}function ut(i){return j(i)==="html"?i:i.assignedSlot||i.parentNode||(zt(i)?i.host:null)||H(i)}function bn(i){return!M(i)||W(i).position==="fixed"?null:i.offsetParent}function po(i){var t=/firefox/i.test(Zt()),e=/Trident/i.test(Zt());if(e&&M(i)){var n=W(i);if(n.position==="fixed")return null}var s=ut(i);for(zt(s)&&(s=s.host);M(s)&&["html","body"].indexOf(j(s))<0;){var o=W(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function st(i){for(var t=N(i),e=bn(i);e&&bi(e)&&W(e).position==="static";)e=bn(e);return e&&(j(e)==="html"||j(e)==="body"&&W(e).position==="static")?t:e||po(i)||t}function $t(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function Pt(i,t,e){return nt(i,Dt(t,e))}function Tn(i,t,e){var n=Pt(i,t,e);return n>e?e:n}function Ee(){return{top:0,right:0,bottom:0,left:0}}function ve(i){return Object.assign({},Ee(),i)}function be(i,t){return t.reduce(function(e,n){return e[n]=i,e},{})}var mo=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,ve(typeof t!="number"?t:be(t,ct))};function ho(i){var t,e=i.state,n=i.name,s=i.options,o=e.elements.arrow,r=e.modifiersData.popperOffsets,a=k(e.placement),l=$t(a),u=[D,x].indexOf(a)>=0,f=u?"height":"width";if(!(!o||!r)){var d=mo(s.padding,e),m=xt(o),p=l==="y"?O:D,b=l==="y"?$:x,g=e.rects.reference[f]+e.rects.reference[l]-r[l]-e.rects.popper[f],E=r[l]-e.rects.reference[l],A=st(o),C=A?l==="y"?A.clientHeight||0:A.clientWidth||0:0,L=g/2-E/2,v=d[p],T=C-m[f]-d[b],y=C/2-m[f]/2+L,S=Pt(v,y,T),P=l;e.modifiersData[n]=(t={},t[P]=S,t.centerOffset=S-y,t)}}function go(i){var t=i.state,e=i.options,n=e.element,s=n===void 0?"[data-popper-arrow]":n;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||!_e(t.elements.popper,s)||(t.elements.arrow=s))}var We={name:"arrow",enabled:!0,phase:"main",fn:ho,effect:go,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(i){return i.split("-")[1]}var _o={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Eo(i){var t=i.x,e=i.y,n=window,s=n.devicePixelRatio||1;return{x:ft(t*s)/s||0,y:ft(e*s)/s||0}}function yn(i){var t,e=i.popper,n=i.popperRect,s=i.placement,o=i.variation,r=i.offsets,a=i.position,l=i.gpuAcceleration,u=i.adaptive,f=i.roundOffsets,d=i.isFixed,m=r.x,p=m===void 0?0:m,b=r.y,g=b===void 0?0:b,E=typeof f=="function"?f({x:p,y:g}):{x:p,y:g};p=E.x,g=E.y;var A=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),L=D,v=O,T=window;if(u){var y=st(e),S="clientHeight",P="clientWidth";if(y===N(e)&&(y=H(e),W(y).position!=="static"&&a==="absolute"&&(S="scrollHeight",P="scrollWidth")),y=y,s===O||(s===D||s===x)&&o===Et){v=$;var I=d&&y===T&&T.visualViewport?T.visualViewport.height:y[S];g-=I-n.height,g*=l?1:-1}if(s===D||(s===O||s===$)&&o===Et){L=x;var R=d&&y===T&&T.visualViewport?T.visualViewport.width:y[P];p-=R-n.width,p*=l?1:-1}}var w=Object.assign({position:a},u&&_o),Y=f===!0?Eo({x:p,y:g}):{x:p,y:g};if(p=Y.x,g=Y.y,l){var B;return Object.assign({},w,(B={},B[v]=C?"0":"",B[L]=A?"0":"",B.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",B))}return Object.assign({},w,(t={},t[v]=C?g+"px":"",t[L]=A?p+"px":"",t.transform="",t))}function vo(i){var t=i.state,e=i.options,n=e.gpuAcceleration,s=n===void 0?!0:n,o=e.adaptive,r=o===void 0?!0:o,a=e.roundOffsets,l=a===void 0?!0:a;if(!1)var u;var f={placement:k(t.placement),variation:Z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yn(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yn(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Jt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:vo,data:{}};var Ke={passive:!0};function bo(i){var t=i.state,e=i.instance,n=i.options,s=n.scroll,o=s===void 0?!0:s,r=n.resize,a=r===void 0?!0:r,l=N(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",e.update,Ke)}),a&&l.addEventListener("resize",e.update,Ke),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",e.update,Ke)}),a&&l.removeEventListener("resize",e.update,Ke)}}var te={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bo,data:{}};var To={left:"right",right:"left",bottom:"top",top:"bottom"};function ee(i){return i.replace(/left|right|bottom|top/g,function(t){return To[t]})}var yo={start:"end",end:"start"};function Ue(i){return i.replace(/start|end/g,function(t){return yo[t]})}function It(i){var t=N(i),e=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:e,scrollTop:n}}function Rt(i){return Q(H(i)).left+It(i).scrollLeft}function Ti(i,t){var e=N(i),n=H(i),s=e.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var u=ge();(u||!u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Rt(i),y:l}}function yi(i){var t,e=H(i),n=It(i),s=(t=i.ownerDocument)==null?void 0:t.body,o=nt(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=nt(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Rt(i),l=-n.scrollTop;return W(s||e).direction==="rtl"&&(a+=nt(e.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function Mt(i){var t=W(i),e=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+n)}function Fe(i){return["html","body","#document"].indexOf(j(i))>=0?i.ownerDocument.body:M(i)&&Mt(i)?i:Fe(ut(i))}function vt(i,t){var e;t===void 0&&(t=[]);var n=Fe(i),s=n===((e=i.ownerDocument)==null?void 0:e.body),o=N(n),r=s?[o].concat(o.visualViewport||[],Mt(n)?n:[]):n,a=t.concat(r);return s?a:a.concat(vt(ut(r)))}function ie(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function Ao(i,t){var e=Q(i,!1,t==="fixed");return e.top=e.top+i.clientTop,e.left=e.left+i.clientLeft,e.bottom=e.top+i.clientHeight,e.right=e.left+i.clientWidth,e.width=i.clientWidth,e.height=i.clientHeight,e.x=e.left,e.y=e.top,e}function An(i,t,e){return t===me?ie(Ti(i,e)):z(t)?Ao(t,e):ie(yi(H(i)))}function wo(i){var t=vt(ut(i)),e=["absolute","fixed"].indexOf(W(i).position)>=0,n=e&&M(i)?st(i):i;return z(n)?t.filter(function(s){return z(s)&&_e(s,n)&&j(s)!=="body"}):[]}function Ai(i,t,e,n){var s=t==="clippingParents"?wo(i):[].concat(t),o=[].concat(s,[e]),r=o[0],a=o.reduce(function(l,u){var f=An(i,u,n);return l.top=nt(f.top,l.top),l.right=Dt(f.right,l.right),l.bottom=Dt(f.bottom,l.bottom),l.left=nt(f.left,l.left),l},An(i,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Te(i){var t=i.reference,e=i.element,n=i.placement,s=n?k(n):null,o=n?Z(n):null,r=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(s){case O:l={x:r,y:t.y-e.height};break;case $:l={x:r,y:t.y+t.height};break;case x:l={x:t.x+t.width,y:a};break;case D:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var u=s?$t(s):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case ot:l[u]=l[u]-(t[f]/2-e[f]/2);break;case Et:l[u]=l[u]+(t[f]/2-e[f]/2);break;default:}}return l}function K(i,t){t===void 0&&(t={});var e=t,n=e.placement,s=n===void 0?i.placement:n,o=e.strategy,r=o===void 0?i.strategy:o,a=e.boundary,l=a===void 0?_i:a,u=e.rootBoundary,f=u===void 0?me:u,d=e.elementContext,m=d===void 0?Lt:d,p=e.altBoundary,b=p===void 0?!1:p,g=e.padding,E=g===void 0?0:g,A=ve(typeof E!="number"?E:be(E,ct)),C=m===Lt?Ei:Lt,L=i.rects.popper,v=i.elements[b?C:m],T=Ai(z(v)?v:v.contextElement||H(i.elements.popper),l,f,r),y=Q(i.elements.reference),S=Te({reference:y,element:L,strategy:"absolute",placement:s}),P=ie(Object.assign({},L,S)),I=m===Lt?P:y,R={top:T.top-I.top+A.top,bottom:I.bottom-T.bottom+A.bottom,left:T.left-I.left+A.left,right:I.right-T.right+A.right},w=i.modifiersData.offset;if(m===Lt&&w){var Y=w[s];Object.keys(R).forEach(function(B){var wt=[x,$].indexOf(B)>=0?1:-1,St=[O,$].indexOf(B)>=0?"y":"x";R[B]+=Y[St]*wt})}return R}function wi(i,t){t===void 0&&(t={});var e=t,n=e.placement,s=e.boundary,o=e.rootBoundary,r=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,u=l===void 0?he:l,f=Z(n),d=f?a?Be:Be.filter(function(b){return Z(b)===f}):ct,m=d.filter(function(b){return u.indexOf(b)>=0});m.length===0&&(m=d);var p=m.reduce(function(b,g){return b[g]=K(i,{placement:g,boundary:s,rootBoundary:o,padding:r})[k(g)],b},{});return Object.keys(p).sort(function(b,g){return p[b]-p[g]})}function So(i){if(k(i)===pe)return[];var t=ee(i);return[Ue(i),t,Ue(t)]}function Oo(i){var t=i.state,e=i.options,n=i.name;if(!t.modifiersData[n]._skip){for(var s=e.mainAxis,o=s===void 0?!0:s,r=e.altAxis,a=r===void 0?!0:r,l=e.fallbackPlacements,u=e.padding,f=e.boundary,d=e.rootBoundary,m=e.altBoundary,p=e.flipVariations,b=p===void 0?!0:p,g=e.allowedAutoPlacements,E=t.options.placement,A=k(E),C=A===E,L=l||(C||!b?[ee(E)]:So(E)),v=[E].concat(L).reduce(function(Xt,_t){return Xt.concat(k(_t)===pe?wi(t,{placement:_t,boundary:f,rootBoundary:d,padding:u,flipVariations:b,allowedAutoPlacements:g}):_t)},[]),T=t.rects.reference,y=t.rects.popper,S=new Map,P=!0,I=v[0],R=0;R<v.length;R++){var w=v[R],Y=k(w),B=Z(w)===ot,wt=[O,$].indexOf(Y)>=0,St=wt?"width":"height",q=K(t,{placement:w,boundary:f,rootBoundary:d,altBoundary:m,padding:u}),it=wt?B?x:D:B?$:O;T[St]>y[St]&&(it=ee(it));var Re=ee(it),Ot=[];if(o&&Ot.push(q[Y]<=0),a&&Ot.push(q[it]<=0,q[Re]<=0),Ot.every(function(Xt){return Xt})){I=w,P=!1;break}S.set(w,Ot)}if(P)for(var Me=b?3:1,ui=function(_t){var de=v.find(function(ke){var Nt=S.get(ke);if(Nt)return Nt.slice(0,_t).every(function(di){return di})});if(de)return I=de,"break"},ue=Me;ue>0;ue--){var je=ui(ue);if(je==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var Ye={name:"flip",enabled:!0,phase:"main",fn:Oo,requiresIfExists:["offset"],data:{_skip:!1}};function wn(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 Sn(i){return[O,x,$,D].some(function(t){return i[t]>=0})}function No(i){var t=i.state,e=i.name,n=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=K(t,{elementContext:"reference"}),a=K(t,{altBoundary:!0}),l=wn(r,n),u=wn(a,s,o),f=Sn(l),d=Sn(u);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var qe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:No};function Co(i,t,e){var n=k(i),s=[D,O].indexOf(n)>=0?-1:1,o=typeof e=="function"?e(Object.assign({},t,{placement:i})):e,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[D,x].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}function Lo(i){var t=i.state,e=i.options,n=i.name,s=e.offset,o=s===void 0?[0,0]:s,r=he.reduce(function(f,d){return f[d]=Co(d,t.rects,o),f},{}),a=r[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=r}var Ge={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lo};function Do(i){var t=i.state,e=i.name;t.modifiersData[e]=Te({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ne={name:"popperOffsets",enabled:!0,phase:"read",fn:Do,data:{}};function Si(i){return i==="x"?"y":"x"}function xo(i){var t=i.state,e=i.options,n=i.name,s=e.mainAxis,o=s===void 0?!0:s,r=e.altAxis,a=r===void 0?!1:r,l=e.boundary,u=e.rootBoundary,f=e.altBoundary,d=e.padding,m=e.tether,p=m===void 0?!0:m,b=e.tetherOffset,g=b===void 0?0:b,E=K(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),A=k(t.placement),C=Z(t.placement),L=!C,v=$t(A),T=Si(v),y=t.modifiersData.popperOffsets,S=t.rects.reference,P=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Y={x:0,y:0};if(!!y){if(o){var B,wt=v==="y"?O:D,St=v==="y"?$:x,q=v==="y"?"height":"width",it=y[v],Re=it+E[wt],Ot=it-E[St],Me=p?-P[q]/2:0,ui=C===ot?S[q]:P[q],ue=C===ot?-P[q]:-S[q],je=t.elements.arrow,Xt=p&&je?xt(je):{width:0,height:0},_t=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ee(),de=_t[wt],ke=_t[St],Nt=Pt(0,S[q],Xt[q]),di=L?S[q]/2-Me-Nt-de-R.mainAxis:ui-Nt-de-R.mainAxis,Zs=L?-S[q]/2+Me+Nt+ke+R.mainAxis:ue+Nt+ke+R.mainAxis,pi=t.elements.arrow&&st(t.elements.arrow),Js=pi?v==="y"?pi.clientTop||0:pi.clientLeft||0:0,Ji=(B=w==null?void 0:w[v])!=null?B:0,to=it+di-Ji-Js,eo=it+Zs-Ji,tn=Pt(p?Dt(Re,to):Re,it,p?nt(Ot,eo):Ot);y[v]=tn,Y[v]=tn-it}if(a){var en,io=v==="x"?O:D,no=v==="x"?$:x,Ct=y[T],Ve=T==="y"?"height":"width",nn=Ct+E[io],sn=Ct-E[no],mi=[O,D].indexOf(A)!==-1,on=(en=w==null?void 0:w[T])!=null?en:0,rn=mi?nn:Ct-S[Ve]-P[Ve]-on+R.altAxis,an=mi?Ct+S[Ve]+P[Ve]-on-R.altAxis:sn,ln=p&&mi?Tn(rn,Ct,an):Pt(p?rn:nn,Ct,p?an:sn);y[T]=ln,Y[T]=ln-Ct}t.modifiersData[n]=Y}}var Xe={name:"preventOverflow",enabled:!0,phase:"main",fn:xo,requiresIfExists:["offset"]};function Oi(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Ni(i){return i===N(i)||!M(i)?It(i):Oi(i)}function $o(i){var t=i.getBoundingClientRect(),e=ft(t.width)/i.offsetWidth||1,n=ft(t.height)/i.offsetHeight||1;return e!==1||n!==1}function Ci(i,t,e){e===void 0&&(e=!1);var n=M(t),s=M(t)&&$o(t),o=H(t),r=Q(i,s,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!e)&&((j(t)!=="body"||Mt(o))&&(a=Ni(t)),M(t)?(l=Q(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Rt(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function Po(i){var t=new Map,e=new Set,n=[];i.forEach(function(o){t.set(o.name,o)});function s(o){e.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&s(l)}}),n.push(o)}return i.forEach(function(o){e.has(o.name)||s(o)}),n}function Li(i){var t=Po(i);return vi.reduce(function(e,n){return e.concat(t.filter(function(s){return s.phase===n}))},[])}function Di(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i())})})),t}}function xi(i){var t=i.reduce(function(e,n){var s=e[n.name];return e[n.name]=s?Object.assign({},s,n,{options:Object.assign({},s.options,n.options),data:Object.assign({},s.data,n.data)}):n,e},{});return Object.keys(t).map(function(e){return t[e]})}var On={placement:"bottom",modifiers:[],strategy:"absolute"};function Nn(){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 jt(i){i===void 0&&(i={});var t=i,e=t.defaultModifiers,n=e===void 0?[]:e,s=t.defaultOptions,o=s===void 0?On:s;return function(a,l,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},On,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],m=!1,p={state:f,setOptions:function(A){var C=typeof A=="function"?A(f.options):A;g(),f.options=Object.assign({},o,f.options,C),f.scrollParents={reference:z(a)?vt(a):a.contextElement?vt(a.contextElement):[],popper:vt(l)};var L=Li(xi([].concat(n,f.options.modifiers)));if(f.orderedModifiers=L.filter(function(w){return w.enabled}),!1){var v;if(getBasePlacement(f.options.placement)===auto)var T;var y,S,P,I,R}return b(),p.update()},forceUpdate:function(){if(!m){var A=f.elements,C=A.reference,L=A.popper;if(!!Nn(C,L)){f.rects={reference:Ci(C,st(L),f.options.strategy==="fixed"),popper:xt(L)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(w){return f.modifiersData[w.name]=Object.assign({},w.data)});for(var v=0,T=0;T<f.orderedModifiers.length;T++){if(f.reset===!0){f.reset=!1,T=-1;continue}var y=f.orderedModifiers[T],S=y.fn,P=y.options,I=P===void 0?{}:P,R=y.name;typeof S=="function"&&(f=S({state:f,options:I,name:R,instance:p})||f)}}}},update:Di(function(){return new Promise(function(E){p.forceUpdate(),E(f)})}),destroy:function(){g(),m=!0}};if(!Nn(a,l))return p;p.setOptions(u).then(function(E){!m&&u.onFirstUpdate&&u.onFirstUpdate(E)});function b(){f.orderedModifiers.forEach(function(E){var A=E.name,C=E.options,L=C===void 0?{}:C,v=E.effect;if(typeof v=="function"){var T=v({state:f,name:A,instance:p,options:L}),y=function(){};d.push(T||y)}})}function g(){d.forEach(function(E){return E()}),d=[]}return p}}var Cn=jt();var Io=[te,ne,Jt,Qt],Ln=jt({defaultModifiers:Io});var Ro=[te,ne,Jt,Qt,Ge,Ye,Xe,We,qe],ze=jt({defaultModifiers:Ro});var Mo=3,h={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!==Mo;)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[]}},jo=1e6,ko=1e3,$i="transitionend",Vo=i=>i==null?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),Dn=i=>{do i+=Math.floor(Math.random()*jo);while(document.getElementById(i));return i},xn=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},Pi=i=>{let t=xn(i);return t&&document.querySelector(t)?t:null},bt=i=>{let t=xn(i);return t?document.querySelector(t):null},Ho=i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i),n=Number.parseFloat(t),s=Number.parseFloat(e);return!n&&!s?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*ko)},$n=i=>{i.dispatchEvent(new Event($i))},Tt=i=>!i||typeof i!="object"?!1:(typeof i.jquery!="undefined"&&(i=i[0]),typeof i.nodeType!="undefined"),se=i=>Tt(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?h.findOne(i):null,dt=(i,t,e)=>{Object.keys(e).forEach(n=>{let s=e[n],o=t[n],r=o&&Tt(o)?"element":Vo(o);if(!new RegExp(s).test(r))throw new TypeError(`${i.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)})},Ze=i=>!Tt(i)||i.getClientRects().length===0?!1:getComputedStyle(i).getPropertyValue("visibility")==="visible",oe=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",Pn=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?Pn(i.parentNode):null},Je=()=>{},re=i=>i.offsetHeight,In=()=>{let{jQuery:i}=window;return i&&!document.body.hasAttribute("data-bs-no-jquery")?i:null},Ii=[],Bo=i=>{document.readyState==="loading"?(Ii.length||document.addEventListener("DOMContentLoaded",()=>{Ii.forEach(t=>t())}),Ii.push(i)):i()},F=()=>document.documentElement.dir==="rtl",J=i=>{Bo(()=>{let t=In();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)}})},kt=i=>{typeof i=="function"&&i()},Rn=(i,t,e=!0)=>{if(!e){kt(i);return}let n=5,s=Ho(t)+n,o=!1,r=({target:a})=>{a===t&&(o=!0,t.removeEventListener($i,r),kt(i))};t.addEventListener($i,r),setTimeout(()=>{o||$n(t)},s)},Mn=(i,t,e,n)=>{let s=i.indexOf(t);if(s===-1)return i[!e&&n?i.length-1:0];let o=i.length;return s+=e?1:-1,n&&(s=(s+o)%o),i[Math.max(0,Math.min(s,o-1))]},Wo=/[^.]*(?=\..*)\.|.*/,Ko=/\..*/,Uo=/::\d+$/,Ri={},jn=1,Fo={mouseenter:"mouseover",mouseleave:"mouseout"},Yo=/^(mouseenter|mouseleave)/i,kn=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 Vn(i,t){return t&&`${t}::${jn++}`||i.uidEvent||jn++}function Hn(i){let t=Vn(i);return i.uidEvent=t,Ri[t]=Ri[t]||{},Ri[t]}function qo(i,t){return function e(n){return n.delegateTarget=i,e.oneOff&&c.off(i,n.type,t),t.apply(i,[n])}}function Go(i,t,e){return function n(s){let o=i.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&c.off(i,s.type,t,e),e.apply(r,[s]);return null}}function Bn(i,t,e=null){let n=Object.keys(i);for(let s=0,o=n.length;s<o;s++){let r=i[n[s]];if(r.originalHandler===t&&r.delegationSelector===e)return r}return null}function Wn(i,t,e){let n=typeof t=="string",s=n?e:t,o=Un(i);return kn.has(o)||(o=i),[n,s,o]}function Kn(i,t,e,n,s){if(typeof t!="string"||!i)return;if(e||(e=n,n=null),Yo.test(t)){let p=b=>function(g){if(!g.relatedTarget||g.relatedTarget!==g.delegateTarget&&!g.delegateTarget.contains(g.relatedTarget))return b.call(this,g)};n?n=p(n):e=p(e)}let[o,r,a]=Wn(t,e,n),l=Hn(i),u=l[a]||(l[a]={}),f=Bn(u,r,o?e:null);if(f){f.oneOff=f.oneOff&&s;return}let d=Vn(r,t.replace(Wo,"")),m=o?Go(i,e,n):qo(i,e);m.delegationSelector=o?e:null,m.originalHandler=r,m.oneOff=s,m.uidEvent=d,u[d]=m,i.addEventListener(a,m,o)}function Mi(i,t,e,n,s){let o=Bn(t[e],n,s);!o||(i.removeEventListener(e,o,Boolean(s)),delete t[e][o.uidEvent])}function Xo(i,t,e,n){let s=t[e]||{};Object.keys(s).forEach(o=>{if(o.includes(n)){let r=s[o];Mi(i,t,e,r.originalHandler,r.delegationSelector)}})}function Un(i){return i=i.replace(Ko,""),Fo[i]||i}var c={on(i,t,e,n){Kn(i,t,e,n,!1)},one(i,t,e,n){Kn(i,t,e,n,!0)},off(i,t,e,n){if(typeof t!="string"||!i)return;let[s,o,r]=Wn(t,e,n),a=r!==t,l=Hn(i),u=t.startsWith(".");if(typeof o!="undefined"){if(!l||!l[r])return;Mi(i,l,r,o,s?e:null);return}u&&Object.keys(l).forEach(d=>{Xo(i,l,d,t.slice(1))});let f=l[r]||{};Object.keys(f).forEach(d=>{let m=d.replace(Uo,"");if(!a||t.includes(m)){let p=f[d];Mi(i,l,r,p.originalHandler,p.delegationSelector)}})},trigger(i,t,e){if(typeof t!="string"||!i)return null;let n=In(),s=Un(t),o=t!==s,r=kn.has(s),a,l=!0,u=!0,f=!1,d=null;return o&&n&&(a=n.Event(t,e),n(i).trigger(a),l=!a.isPropagationStopped(),u=!a.isImmediatePropagationStopped(),f=a.isDefaultPrevented()),r?(d=document.createEvent("HTMLEvents"),d.initEvent(s,l,!0)):d=new CustomEvent(t,{bubbles:l,cancelable:!0}),typeof e!="undefined"&&Object.keys(e).forEach(m=>{Object.defineProperty(d,m,{get(){return e[m]}})}),f&&d.preventDefault(),u&&i.dispatchEvent(d),d.defaultPrevented&&typeof a!="undefined"&&a.preventDefault(),d}},yt=new Map,Vt={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)}},zo="5.0.2",tt=class{constructor(t){t=se(t),!!t&&(this._element=t,Vt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Vt.remove(this._element,this.constructor.DATA_KEY),c.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,n=!0){Rn(t,e,n)}static getInstance(t){return Vt.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 zo}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}`}},Qo="alert",Zo="bs.alert",ji=`.${Zo}`,Jo=".data-api",tr='[data-bs-dismiss="alert"]',er=`close${ji}`,ir=`closed${ji}`,nr=`click${ji}${Jo}`,sr="alert",or="fade",rr="show",ae=class extends tt{static get NAME(){return Qo}close(t){let e=t?this._getRootElement(t):this._element,n=this._triggerCloseEvent(e);n===null||n.defaultPrevented||this._removeElement(e)}_getRootElement(t){return bt(t)||t.closest(`.${sr}`)}_triggerCloseEvent(t){return c.trigger(t,er)}_removeElement(t){t.classList.remove(rr);let e=t.classList.contains(or);this._queueCallback(()=>this._destroyElement(t),t,e)}_destroyElement(t){t.remove(),c.trigger(t,ir)}static jQueryInterface(t){return this.each(function(){let e=ae.getOrCreateInstance(this);t==="close"&&e[t](this)})}static handleDismiss(t){return function(e){e&&e.preventDefault(),t.close(this)}}};c.on(document,nr,tr,ae.handleDismiss(new ae));J(ae);var ar="button",lr="bs.button",cr=`.${lr}`,fr=".data-api",ur="active",Fn='[data-bs-toggle="button"]',dr=`click${cr}${fr}`,ye=class extends tt{static get NAME(){return ar}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ur))}static jQueryInterface(t){return this.each(function(){let e=ye.getOrCreateInstance(this);t==="toggle"&&e[t]()})}};c.on(document,dr,Fn,i=>{i.preventDefault();let t=i.target.closest(Fn);ye.getOrCreateInstance(t).toggle()});J(ye);function Yn(i){return i==="true"?!0:i==="false"?!1:i===Number(i).toString()?Number(i):i===""||i==="null"?null:i}function ki(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var V={setDataAttribute(i,t,e){i.setAttribute(`data-bs-${ki(t)}`,e)},removeDataAttribute(i,t){i.removeAttribute(`data-bs-${ki(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]=Yn(i.dataset[e])}),t},getDataAttribute(i,t){return Yn(i.getAttribute(`data-bs-${ki(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}}},qn="carousel",pr="bs.carousel",G=`.${pr}`,Gn=".data-api",mr="ArrowLeft",hr="ArrowRight",gr=500,_r=40,Xn={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Er={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Ht="next",Bt="prev",Wt="left",Ae="right",vr={[mr]:Ae,[hr]:Wt},br=`slide${G}`,zn=`slid${G}`,Tr=`keydown${G}`,yr=`mouseenter${G}`,Ar=`mouseleave${G}`,wr=`touchstart${G}`,Sr=`touchmove${G}`,Or=`touchend${G}`,Nr=`pointerdown${G}`,Cr=`pointerup${G}`,Lr=`dragstart${G}`,Dr=`load${G}${Gn}`,xr=`click${G}${Gn}`,$r="carousel",Kt="active",Pr="slide",Ir="carousel-item-end",Rr="carousel-item-start",Mr="carousel-item-next",jr="carousel-item-prev",kr="pointer-event",Vr=".active",ti=".active.carousel-item",Hr=".carousel-item",Br=".carousel-item img",Wr=".carousel-item-next, .carousel-item-prev",Kr=".carousel-indicators",Ur="[data-bs-target]",Fr="[data-bs-slide], [data-bs-slide-to]",Yr='[data-bs-ride="carousel"]',Qn="touch",Zn="pen",rt=class extends tt{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=h.findOne(Kr,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return Xn}static get NAME(){return qn}next(){this._slide(Ht)}nextWhenVisible(){!document.hidden&&Ze(this._element)&&this.next()}prev(){this._slide(Bt)}pause(t){t||(this._isPaused=!0),h.findOne(Wr,this._element)&&($n(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=h.findOne(ti,this._element);let e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding){c.one(this._element,zn,()=>this.to(t));return}if(e===t){this.pause(),this.cycle();return}let n=t>e?Ht:Bt;this._slide(n,this._items[t])}_getConfig(t){return t=_(_(_({},Xn),V.getDataAttributes(this._element)),typeof t=="object"?t:{}),dt(qn,t,Er),t}_handleSwipe(){let t=Math.abs(this.touchDeltaX);if(t<=_r)return;let e=t/this.touchDeltaX;this.touchDeltaX=0,!!e&&this._slide(e>0?Ae:Wt)}_addEventListeners(){this._config.keyboard&&c.on(this._element,Tr,t=>this._keydown(t)),this._config.pause==="hover"&&(c.on(this._element,yr,t=>this.pause(t)),c.on(this._element,Ar,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){let t=s=>{this._pointerEvent&&(s.pointerType===Zn||s.pointerType===Qn)?this.touchStartX=s.clientX:this._pointerEvent||(this.touchStartX=s.touches[0].clientX)},e=s=>{this.touchDeltaX=s.touches&&s.touches.length>1?0:s.touches[0].clientX-this.touchStartX},n=s=>{this._pointerEvent&&(s.pointerType===Zn||s.pointerType===Qn)&&(this.touchDeltaX=s.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(o=>this.cycle(o),gr+this._config.interval))};h.find(Br,this._element).forEach(s=>{c.on(s,Lr,o=>o.preventDefault())}),this._pointerEvent?(c.on(this._element,Nr,s=>t(s)),c.on(this._element,Cr,s=>n(s)),this._element.classList.add(kr)):(c.on(this._element,wr,s=>t(s)),c.on(this._element,Sr,s=>e(s)),c.on(this._element,Or,s=>n(s)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=vr[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?h.find(Hr,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){let n=t===Ht;return Mn(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){let n=this._getItemIndex(t),s=this._getItemIndex(h.findOne(ti,this._element));return c.trigger(this._element,br,{relatedTarget:t,direction:e,from:s,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){let e=h.findOne(Vr,this._indicatorsElement);e.classList.remove(Kt),e.removeAttribute("aria-current");let n=h.find(Ur,this._indicatorsElement);for(let s=0;s<n.length;s++)if(Number.parseInt(n[s].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){n[s].classList.add(Kt),n[s].setAttribute("aria-current","true");break}}}_updateInterval(){let t=this._activeElement||h.findOne(ti,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),s=h.findOne(ti,this._element),o=this._getItemIndex(s),r=e||this._getItemByOrder(n,s),a=this._getItemIndex(r),l=Boolean(this._interval),u=n===Ht,f=u?Rr:Ir,d=u?Mr:jr,m=this._orderToDirection(n);if(r&&r.classList.contains(Kt)){this._isSliding=!1;return}if(this._isSliding||this._triggerSlideEvent(r,m).defaultPrevented||!s||!r)return;this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(r),this._activeElement=r;let b=()=>{c.trigger(this._element,zn,{relatedTarget:r,direction:m,from:o,to:a})};if(this._element.classList.contains(Pr)){r.classList.add(d),re(r),s.classList.add(f),r.classList.add(f);let g=()=>{r.classList.remove(f,d),r.classList.add(Kt),s.classList.remove(Kt,d,f),this._isSliding=!1,setTimeout(b,0)};this._queueCallback(g,s,!0)}else s.classList.remove(Kt),r.classList.add(Kt),this._isSliding=!1,b();l&&this.cycle()}_directionToOrder(t){return[Ae,Wt].includes(t)?F()?t===Wt?Bt:Ht:t===Wt?Ht:Bt:t}_orderToDirection(t){return[Ht,Bt].includes(t)?F()?t===Bt?Wt:Ae:t===Bt?Ae:Wt:t}static carouselInterface(t,e){let n=rt.getOrCreateInstance(t,e),{_config:s}=n;typeof e=="object"&&(s=_(_({},s),e));let o=typeof e=="string"?e:s.slide;if(typeof e=="number")n.to(e);else if(typeof o=="string"){if(typeof n[o]=="undefined")throw new TypeError(`No method named "${o}"`);n[o]()}else s.interval&&s.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each(function(){rt.carouselInterface(this,t)})}static dataApiClickHandler(t){let e=bt(this);if(!e||!e.classList.contains($r))return;let n=_(_({},V.getDataAttributes(e)),V.getDataAttributes(this)),s=this.getAttribute("data-bs-slide-to");s&&(n.interval=!1),rt.carouselInterface(e,n),s&&rt.getInstance(e).to(s),t.preventDefault()}};c.on(document,xr,Fr,rt.dataApiClickHandler);c.on(window,Dr,()=>{let i=h.find(Yr);for(let t=0,e=i.length;t<e;t++)rt.carouselInterface(i[t],rt.getInstance(i[t]))});J(rt);var Jn="collapse",ts="bs.collapse",we=`.${ts}`,qr=".data-api",Vi={toggle:!0,parent:""},Gr={toggle:"boolean",parent:"(string|element)"},Xr=`show${we}`,zr=`shown${we}`,Qr=`hide${we}`,Zr=`hidden${we}`,Jr=`click${we}${qr}`,Ut="show",Se="collapse",ei="collapsing",ii="collapsed",es="width",ta="height",ea=".show, .collapsing",Oe='[data-bs-toggle="collapse"]',et=class extends tt{constructor(t,e){super(t);this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=h.find(`${Oe}[href="#${this._element.id}"],${Oe}[data-bs-target="#${this._element.id}"]`);let n=h.find(Oe);for(let s=0,o=n.length;s<o;s++){let r=n[s],a=Pi(r),l=h.find(a).filter(u=>u===this._element);a!==null&&l.length&&(this._selector=a,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 Vi}static get NAME(){return Jn}toggle(){this._element.classList.contains(Ut)?this.hide():this.show()}show(){if(this._isTransitioning||this._element.classList.contains(Ut))return;let t,e;this._parent&&(t=h.find(ea,this._parent).filter(u=>typeof this._config.parent=="string"?u.getAttribute("data-bs-parent")===this._config.parent:u.classList.contains(Se)),t.length===0&&(t=null));let n=h.findOne(this._selector);if(t){let u=t.find(f=>n!==f);if(e=u?et.getInstance(u):null,e&&e._isTransitioning)return}if(c.trigger(this._element,Xr).defaultPrevented)return;t&&t.forEach(u=>{n!==u&&et.collapseInterface(u,"hide"),e||Vt.set(u,ts,null)});let o=this._getDimension();this._element.classList.remove(Se),this._element.classList.add(ei),this._element.style[o]=0,this._triggerArray.length&&this._triggerArray.forEach(u=>{u.classList.remove(ii),u.setAttribute("aria-expanded",!0)}),this.setTransitioning(!0);let r=()=>{this._element.classList.remove(ei),this._element.classList.add(Se,Ut),this._element.style[o]="",this.setTransitioning(!1),c.trigger(this._element,zr)},l=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(r,this._element,!0),this._element.style[o]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._element.classList.contains(Ut)||c.trigger(this._element,Qr).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,re(this._element),this._element.classList.add(ei),this._element.classList.remove(Se,Ut);let n=this._triggerArray.length;if(n>0)for(let o=0;o<n;o++){let r=this._triggerArray[o],a=bt(r);a&&!a.classList.contains(Ut)&&(r.classList.add(ii),r.setAttribute("aria-expanded",!1))}this.setTransitioning(!0);let s=()=>{this.setTransitioning(!1),this._element.classList.remove(ei),this._element.classList.add(Se),c.trigger(this._element,Zr)};this._element.style[e]="",this._queueCallback(s,this._element,!0)}setTransitioning(t){this._isTransitioning=t}_getConfig(t){return t=_(_({},Vi),t),t.toggle=Boolean(t.toggle),dt(Jn,t,Gr),t}_getDimension(){return this._element.classList.contains(es)?es:ta}_getParent(){let{parent:t}=this._config;t=se(t);let e=`${Oe}[data-bs-parent="${t}"]`;return h.find(e,t).forEach(n=>{let s=bt(n);this._addAriaAndCollapsedClass(s,[n])}),t}_addAriaAndCollapsedClass(t,e){if(!t||!e.length)return;let n=t.classList.contains(Ut);e.forEach(s=>{n?s.classList.remove(ii):s.classList.add(ii),s.setAttribute("aria-expanded",n)})}static collapseInterface(t,e){let n=et.getInstance(t),s=_(_(_({},Vi),V.getDataAttributes(t)),typeof e=="object"&&e?e:{});if(!n&&s.toggle&&typeof e=="string"&&/show|hide/.test(e)&&(s.toggle=!1),n||(n=new et(t,s)),typeof e=="string"){if(typeof n[e]=="undefined")throw new TypeError(`No method named "${e}"`);n[e]()}}static jQueryInterface(t){return this.each(function(){et.collapseInterface(this,t)})}};c.on(document,Jr,Oe,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();let t=V.getDataAttributes(this),e=Pi(this);h.find(e).forEach(s=>{let o=et.getInstance(s),r;o?(o._parent===null&&typeof t.parent=="string"&&(o._config.parent=t.parent,o._parent=o._getParent()),r="toggle"):r=t,et.collapseInterface(s,r)})});J(et);var Hi="dropdown",ia="bs.dropdown",At=`.${ia}`,Bi=".data-api",ni="Escape",is="Space",ns="Tab",Wi="ArrowUp",si="ArrowDown",na=2,sa=new RegExp(`${Wi}|${si}|${ni}`),oa=`hide${At}`,ra=`hidden${At}`,aa=`show${At}`,la=`shown${At}`,ca=`click${At}`,ss=`click${At}${Bi}`,os=`keydown${At}${Bi}`,fa=`keyup${At}${Bi}`,pt="show",ua="dropup",da="dropend",pa="dropstart",ma="navbar",Ne='[data-bs-toggle="dropdown"]',Ki=".dropdown-menu",ha=".navbar-nav",ga=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",_a=F()?"top-end":"top-start",Ea=F()?"top-start":"top-end",va=F()?"bottom-end":"bottom-start",ba=F()?"bottom-start":"bottom-end",Ta=F()?"left-start":"right-start",ya=F()?"right-start":"left-start",Aa={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},wa={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},U=class extends tt{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 Aa}static get DefaultType(){return wa}static get NAME(){return Hi}toggle(){if(oe(this._element))return;if(this._element.classList.contains(pt)){this.hide();return}this.show()}show(){if(oe(this._element)||this._menu.classList.contains(pt))return;let t=U.getParentFromElement(this._element),e={relatedTarget:this._element};if(!c.trigger(this._element,aa,e).defaultPrevented){if(this._inNavbar)V.setDataAttribute(this._menu,"popper","none");else{if(typeof Qe=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let s=this._element;this._config.reference==="parent"?s=t:Tt(this._config.reference)?s=se(this._config.reference):typeof this._config.reference=="object"&&(s=this._config.reference);let o=this._getPopperConfig(),r=o.modifiers.find(a=>a.name==="applyStyles"&&a.enabled===!1);this._popper=ze(s,this._menu,o),r&&V.setDataAttribute(this._menu,"popper","static")}"ontouchstart"in document.documentElement&&!t.closest(ha)&&[].concat(...document.body.children).forEach(s=>c.on(s,"mouseover",Je)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.toggle(pt),this._element.classList.toggle(pt),c.trigger(this._element,la,e)}}hide(){if(oe(this._element)||!this._menu.classList.contains(pt))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(){c.on(this._element,ca,t=>{t.preventDefault(),this.toggle()})}_completeHide(t){c.trigger(this._element,oa,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(n=>c.off(n,"mouseover",Je)),this._popper&&this._popper.destroy(),this._menu.classList.remove(pt),this._element.classList.remove(pt),this._element.setAttribute("aria-expanded","false"),V.removeDataAttribute(this._menu,"popper"),c.trigger(this._element,ra,t))}_getConfig(t){if(t=_(_(_({},this.constructor.Default),V.getDataAttributes(this._element)),t),dt(Hi,t,this.constructor.DefaultType),typeof t.reference=="object"&&!Tt(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Hi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_getMenuElement(){return h.next(this._element,Ki)[0]}_getPlacement(){let t=this._element.parentNode;if(t.classList.contains(da))return Ta;if(t.classList.contains(pa))return ya;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(ua)?e?Ea:_a:e?ba:va}_detectNavbar(){return this._element.closest(`.${ma}`)!==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}]),_(_({},t),typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:e}){let n=h.find(ga,this._menu).filter(Ze);!n.length||Mn(n,e,t===si,!n.includes(e)).focus()}static dropdownInterface(t,e){let n=U.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(){U.dropdownInterface(this,t)})}static clearMenus(t){if(t&&(t.button===na||t.type==="keyup"&&t.key!==ns))return;let e=h.find(Ne);for(let n=0,s=e.length;n<s;n++){let o=U.getInstance(e[n]);if(!o||o._config.autoClose===!1||!o._element.classList.contains(pt))continue;let r={relatedTarget:o._element};if(t){let a=t.composedPath(),l=a.includes(o._menu);if(a.includes(o._element)||o._config.autoClose==="inside"&&!l||o._config.autoClose==="outside"&&l||o._menu.contains(t.target)&&(t.type==="keyup"&&t.key===ns||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;t.type==="click"&&(r.clickEvent=t)}o._completeHide(r)}}static getParentFromElement(t){return bt(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===is||t.key!==ni&&(t.key!==si&&t.key!==Wi||t.target.closest(Ki)):!sa.test(t.key))return;let e=this.classList.contains(pt);if(!e&&t.key===ni||(t.preventDefault(),t.stopPropagation(),oe(this)))return;let n=()=>this.matches(Ne)?this:h.prev(this,Ne)[0];if(t.key===ni){n().focus(),U.clearMenus();return}if(t.key===Wi||t.key===si){e||n().click(),U.getInstance(n())._selectMenuItem(t);return}(!e||t.key===is)&&U.clearMenus()}};c.on(document,os,Ne,U.dataApiKeydownHandler);c.on(document,os,Ki,U.dataApiKeydownHandler);c.on(document,ss,U.clearMenus);c.on(document,fa,U.clearMenus);c.on(document,ss,Ne,function(i){i.preventDefault(),U.dropdownInterface(this)});J(U);var rs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",as=".sticky-top",oi=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(rs,"paddingRight",e=>e+t),this._setElementAttributes(as,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){let s=this.getWidth(),o=r=>{if(r!==this._element&&window.innerWidth>r.clientWidth+s)return;this._saveInitialAttribute(r,e);let a=window.getComputedStyle(r)[e];r.style[e]=`${n(Number.parseFloat(a))}px`};this._applyManipulationCallback(t,o)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(rs,"paddingRight"),this._resetElementAttributes(as,"marginRight")}_saveInitialAttribute(t,e){let n=t.style[e];n&&V.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){let n=s=>{let o=V.getDataAttribute(s,e);typeof o=="undefined"?s.style.removeProperty(e):(V.removeDataAttribute(s,e),s.style[e]=o)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){Tt(t)?e(t):h.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}},Sa={isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},Oa={isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},ls="backdrop",Na="modal-backdrop",Ca="fade",cs="show",fs=`mousedown.bs.${ls}`,Ui=class{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){if(!this._config.isVisible){kt(t);return}this._append(),this._config.isAnimated&&re(this._getElement()),this._getElement().classList.add(cs),this._emulateAnimation(()=>{kt(t)})}hide(t){if(!this._config.isVisible){kt(t);return}this._getElement().classList.remove(cs),this._emulateAnimation(()=>{this.dispose(),kt(t)})}_getElement(){if(!this._element){let t=document.createElement("div");t.className=Na,this._config.isAnimated&&t.classList.add(Ca),this._element=t}return this._element}_getConfig(t){return t=_(_({},Sa),typeof t=="object"?t:{}),t.rootElement=se(t.rootElement),dt(ls,t,Oa),t}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),c.on(this._getElement(),fs,()=>{kt(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(c.off(this._element,fs),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){Rn(t,this._getElement(),this._config.isAnimated)}},us="modal",La="bs.modal",X=`.${La}`,Da=".data-api",ds="Escape",ps={backdrop:!0,keyboard:!0,focus:!0},xa={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},$a=`hide${X}`,Pa=`hidePrevented${X}`,ms=`hidden${X}`,hs=`show${X}`,Ia=`shown${X}`,ri=`focusin${X}`,gs=`resize${X}`,Fi=`click.dismiss${X}`,_s=`keydown.dismiss${X}`,Ra=`mouseup.dismiss${X}`,Es=`mousedown.dismiss${X}`,Ma=`click${X}${Da}`,vs="modal-open",ja="fade",bs="show",Yi="modal-static",ka=".modal-dialog",Va=".modal-body",Ha='[data-bs-toggle="modal"]',Ba='[data-bs-dismiss="modal"]',Ft=class extends tt{constructor(t,e){super(t);this._config=this._getConfig(e),this._dialog=h.findOne(ka,this._element),this._backdrop=this._initializeBackDrop(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new oi}static get Default(){return ps}static get NAME(){return us}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||c.trigger(this._element,hs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(vs),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),c.on(this._element,Fi,Ba,n=>this.hide(n)),c.on(this._dialog,Es,()=>{c.one(this._element,Ra,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||c.trigger(this._element,$a).defaultPrevented)return;this._isShown=!1;let n=this._isAnimated();n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),c.off(document,ri),this._element.classList.remove(bs),c.off(this._element,Fi),c.off(this._dialog,Es),this._queueCallback(()=>this._hideModal(),this._element,n)}dispose(){[window,this._dialog].forEach(t=>c.off(t,X)),this._backdrop.dispose(),super.dispose(),c.off(document,ri)}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ui({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_getConfig(t){return t=_(_(_({},ps),V.getDataAttributes(this._element)),typeof t=="object"?t:{}),dt(us,t,xa),t}_showElement(t){let e=this._isAnimated(),n=h.findOne(Va,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&&re(this._element),this._element.classList.add(bs),this._config.focus&&this._enforceFocus();let s=()=>{this._config.focus&&this._element.focus(),this._isTransitioning=!1,c.trigger(this._element,Ia,{relatedTarget:t})};this._queueCallback(s,this._dialog,e)}_enforceFocus(){c.off(document,ri),c.on(document,ri,t=>{document!==t.target&&this._element!==t.target&&!this._element.contains(t.target)&&this._element.focus()})}_setEscapeEvent(){this._isShown?c.on(this._element,_s,t=>{this._config.keyboard&&t.key===ds?(t.preventDefault(),this.hide()):!this._config.keyboard&&t.key===ds&&this._triggerBackdropTransition()}):c.off(this._element,_s)}_setResizeEvent(){this._isShown?c.on(window,gs,()=>this._adjustDialog()):c.off(window,gs)}_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(vs),this._resetAdjustments(),this._scrollBar.reset(),c.trigger(this._element,ms)})}_showBackdrop(t){c.on(this._element,Fi,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(ja)}_triggerBackdropTransition(){if(c.trigger(this._element,Pa).defaultPrevented)return;let{classList:e,scrollHeight:n,style:s}=this._element,o=n>document.documentElement.clientHeight;!o&&s.overflowY==="hidden"||e.contains(Yi)||(o||(s.overflowY="hidden"),e.add(Yi),this._queueCallback(()=>{e.remove(Yi),o||this._queueCallback(()=>{s.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&&!F()||n&&!t&&F())&&(this._element.style.paddingLeft=`${e}px`),(n&&!t&&!F()||!n&&t&&F())&&(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=Ft.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t](e)}})}};c.on(document,Ma,Ha,function(i){let t=bt(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),c.one(t,hs,n=>{n.defaultPrevented||c.one(t,ms,()=>{Ze(this)&&this.focus()})}),Ft.getOrCreateInstance(t).toggle(this)});J(Ft);var Ts="offcanvas",Wa="bs.offcanvas",mt=`.${Wa}`,ys=".data-api",Ka=`load${mt}${ys}`,Ua="Escape",As={backdrop:!0,keyboard:!0,scroll:!1},Fa={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},ws="show",Ss=".offcanvas.show",Ya=`show${mt}`,qa=`shown${mt}`,Ga=`hide${mt}`,Os=`hidden${mt}`,ai=`focusin${mt}`,Xa=`click${mt}${ys}`,za=`click.dismiss${mt}`,Qa=`keydown.dismiss${mt}`,Za='[data-bs-dismiss="offcanvas"]',Ja='[data-bs-toggle="offcanvas"]',Yt=class extends tt{constructor(t,e){super(t);this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._addEventListeners()}static get NAME(){return Ts}static get Default(){return As}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||c.trigger(this._element,Ya,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new oi().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(ws);let n=()=>{c.trigger(this._element,qa,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||c.trigger(this._element,Ga).defaultPrevented)return;c.off(document,ai),this._element.blur(),this._isShown=!1,this._element.classList.remove(ws),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 oi().reset(),c.trigger(this._element,Os)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),super.dispose(),c.off(document,ai)}_getConfig(t){return t=_(_(_({},As),V.getDataAttributes(this._element)),typeof t=="object"?t:{}),dt(Ts,t,Fa),t}_initializeBackDrop(){return new Ui({isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_enforceFocusOnElement(t){c.off(document,ai),c.on(document,ai,e=>{document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}),t.focus()}_addEventListeners(){c.on(this._element,za,Za,()=>this.hide()),c.on(this._element,Qa,t=>{this._config.keyboard&&t.key===Ua&&this.hide()})}static jQueryInterface(t){return this.each(function(){let e=Yt.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)}})}};c.on(document,Xa,Ja,function(i){let t=bt(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),oe(this))return;c.one(t,Os,()=>{Ze(this)&&this.focus()});let e=h.findOne(Ss);e&&e!==t&&Yt.getInstance(e).hide(),Yt.getOrCreateInstance(t).toggle(this)});c.on(window,Ka,()=>h.find(Ss).forEach(i=>Yt.getOrCreateInstance(i).show()));J(Yt);var tl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),el=/^aria-[\w-]*$/i,il=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,nl=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,sl=(i,t)=>{let e=i.nodeName.toLowerCase();if(t.includes(e))return tl.has(e)?Boolean(il.test(i.nodeValue)||nl.test(i.nodeValue)):!0;let n=t.filter(s=>s instanceof RegExp);for(let s=0,o=n.length;s<o;s++)if(n[s].test(e))return!0;return!1},ol={"*":["class","dir","id","lang","role",el],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 Ns(i,t,e){if(!i.length)return i;if(e&&typeof e=="function")return e(i);let s=new window.DOMParser().parseFromString(i,"text/html"),o=Object.keys(t),r=[].concat(...s.body.querySelectorAll("*"));for(let a=0,l=r.length;a<l;a++){let u=r[a],f=u.nodeName.toLowerCase();if(!o.includes(f)){u.remove();continue}let d=[].concat(...u.attributes),m=[].concat(t["*"]||[],t[f]||[]);d.forEach(p=>{sl(p,m)||u.removeAttribute(p.nodeName)})}return s.body.innerHTML}var Cs="tooltip",rl="bs.tooltip",at=`.${rl}`,Ls="bs-tooltip",al=new RegExp(`(^|\\s)${Ls}\\S+`,"g"),ll=new Set(["sanitize","allowList","sanitizeFn"]),cl={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)"},fl={AUTO:"auto",TOP:"top",RIGHT:F()?"left":"right",BOTTOM:"bottom",LEFT:F()?"right":"left"},ul={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:ol,popperConfig:null},dl={HIDE:`hide${at}`,HIDDEN:`hidden${at}`,SHOW:`show${at}`,SHOWN:`shown${at}`,INSERTED:`inserted${at}`,CLICK:`click${at}`,FOCUSIN:`focusin${at}`,FOCUSOUT:`focusout${at}`,MOUSEENTER:`mouseenter${at}`,MOUSELEAVE:`mouseleave${at}`},li="fade",Ds="modal",Ce="show",Le="show",qi="out",pl=".tooltip-inner",De="hover",Gi="focus",ml="click",hl="manual",ht=class extends tt{constructor(t,e){if(typeof Qe=="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 ul}static get NAME(){return Cs}static get Event(){return dl}static get DefaultType(){return cl}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(Ce)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),c.off(this._element.closest(`.${Ds}`),"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=c.trigger(this._element,this.constructor.Event.SHOW),e=Pn(this._element),n=e===null?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!n)return;let s=this.getTipElement(),o=Dn(this.constructor.NAME);s.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this.setContent(),this._config.animation&&s.classList.add(li);let r=typeof this._config.placement=="function"?this._config.placement.call(this,s,this._element):this._config.placement,a=this._getAttachment(r);this._addAttachmentClass(a);let{container:l}=this._config;Vt.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(l.appendChild(s),c.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=ze(this._element,s,this._getPopperConfig(a)),s.classList.add(Ce);let u=typeof this._config.customClass=="function"?this._config.customClass():this._config.customClass;u&&s.classList.add(...u.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(m=>{c.on(m,"mouseover",Je)});let f=()=>{let m=this._hoverState;this._hoverState=null,c.trigger(this._element,this.constructor.Event.SHOWN),m===qi&&this._leave(null,this)},d=this.tip.classList.contains(li);this._queueCallback(f,this.tip,d)}hide(){if(!this._popper)return;let t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==Le&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),c.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(c.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Ce),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(o=>c.off(o,"mouseover",Je)),this._activeTrigger[ml]=!1,this._activeTrigger[Gi]=!1,this._activeTrigger[De]=!1;let s=this.tip.classList.contains(li);this._queueCallback(e,this.tip,s),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(h.findOne(pl,t),this.getTitle()),t.classList.remove(li,Ce)}setElementContent(t,e){if(t!==null){if(Tt(e)){e=se(e),this._config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent;return}this._config.html?(this._config.sanitize&&(e=Ns(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||Vt.get(t.delegateTarget,n),e||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),Vt.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 _(_({},e),typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${Ls}-${this.updateAttachment(t)}`)}_getAttachment(t){return fl[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if(e==="click")c.on(this._element,this.constructor.Event.CLICK,this._config.selector,n=>this.toggle(n));else if(e!==hl){let n=e===De?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,s=e===De?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;c.on(this._element,n,this._config.selector,o=>this._enter(o)),c.on(this._element,s,this._config.selector,o=>this._leave(o))}}),this._hideModalHandler=()=>{this._element&&this.hide()},c.on(this._element.closest(`.${Ds}`),"hide.bs.modal",this._hideModalHandler),this._config.selector?this._config=He(_({},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"?Gi:De]=!0),e.getTipElement().classList.contains(Ce)||e._hoverState===Le){e._hoverState=Le;return}if(clearTimeout(e._timeout),e._hoverState=Le,!e._config.delay||!e._config.delay.show){e.show();return}e._timeout=setTimeout(()=>{e._hoverState===Le&&e.show()},e._config.delay.show)}_leave(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusout"?Gi:De]=e._element.contains(t.relatedTarget)),!e._isWithActiveTrigger()){if(clearTimeout(e._timeout),e._hoverState=qi,!e._config.delay||!e._config.delay.hide){e.hide();return}e._timeout=setTimeout(()=>{e._hoverState===qi&&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=V.getDataAttributes(this._element);return Object.keys(e).forEach(n=>{ll.has(n)&&delete e[n]}),t=_(_(_({},this.constructor.Default),e),typeof t=="object"&&t?t:{}),t.container=t.container===!1?document.body:se(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()),dt(Cs,t,this.constructor.DefaultType),t.sanitize&&(t.template=Ns(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(al);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]()}})}};J(ht);var gl="popover",_l="bs.popover",lt=`.${_l}`,xs="bs-popover",El=new RegExp(`(^|\\s)${xs}\\S+`,"g"),vl=He(_({},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>'}),bl=He(_({},ht.DefaultType),{content:"(string|element|function)"}),Tl={HIDE:`hide${lt}`,HIDDEN:`hidden${lt}`,SHOW:`show${lt}`,SHOWN:`shown${lt}`,INSERTED:`inserted${lt}`,CLICK:`click${lt}`,FOCUSIN:`focusin${lt}`,FOCUSOUT:`focusout${lt}`,MOUSEENTER:`mouseenter${lt}`,MOUSELEAVE:`mouseleave${lt}`},yl="fade",Al="show",$s=".popover-header",Ps=".popover-body",le=class extends ht{static get Default(){return vl}static get NAME(){return gl}static get Event(){return Tl}static get DefaultType(){return bl}isWithContent(){return this.getTitle()||this._getContent()}getTipElement(){return this.tip?this.tip:(this.tip=super.getTipElement(),this.getTitle()||h.findOne($s,this.tip).remove(),this._getContent()||h.findOne(Ps,this.tip).remove(),this.tip)}setContent(){let t=this.getTipElement();this.setElementContent(h.findOne($s,t),this.getTitle());let e=this._getContent();typeof e=="function"&&(e=e.call(this._element)),this.setElementContent(h.findOne(Ps,t),e),t.classList.remove(yl,Al)}_addAttachmentClass(t){this.getTipElement().classList.add(`${xs}-${this.updateAttachment(t)}`)}_getContent(){return this._element.getAttribute("data-bs-content")||this._config.content}_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))}static jQueryInterface(t){return this.each(function(){let e=le.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};J(le);var Xi="scrollspy",wl="bs.scrollspy",ci=`.${wl}`,Sl=".data-api",Is={offset:10,method:"auto",target:""},Ol={offset:"number",method:"string",target:"(string|element)"},Nl=`activate${ci}`,Cl=`scroll${ci}`,Ll=`load${ci}${Sl}`,Rs="dropdown-item",qt="active",Dl='[data-bs-spy="scroll"]',xl=".nav, .list-group",zi=".nav-link",$l=".nav-item",Ms=".list-group-item",Pl=".dropdown",Il=".dropdown-toggle",Rl="offset",js="position",xe=class extends tt{constructor(t,e){super(t);this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(e),this._selector=`${this._config.target} ${zi}, ${this._config.target} ${Ms}, ${this._config.target} .${Rs}`,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,c.on(this._scrollElement,Cl,()=>this._process()),this.refresh(),this._process()}static get Default(){return Is}static get NAME(){return Xi}refresh(){let t=this._scrollElement===this._scrollElement.window?Rl:js,e=this._config.method==="auto"?t:this._config.method,n=e===js?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),h.find(this._selector).map(o=>{let r=Pi(o),a=r?h.findOne(r):null;if(a){let l=a.getBoundingClientRect();if(l.width||l.height)return[V[e](a).top+n,r]}return null}).filter(o=>o).sort((o,r)=>o[0]-r[0]).forEach(o=>{this._offsets.push(o[0]),this._targets.push(o[1])})}dispose(){c.off(this._scrollElement,ci),super.dispose()}_getConfig(t){if(t=_(_(_({},Is),V.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),typeof t.target!="string"&&Tt(t.target)){let{id:e}=t.target;e||(e=Dn(Xi),t.target.id=e),t.target=`#${e}`}return dt(Xi,t,Ol),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 s=this._targets[this._targets.length-1];this._activeTarget!==s&&this._activate(s);return}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null,this._clear();return}for(let s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(typeof this._offsets[s+1]=="undefined"||t<this._offsets[s+1])&&this._activate(this._targets[s])}_activate(t){this._activeTarget=t,this._clear();let e=this._selector.split(",").map(s=>`${s}[data-bs-target="${t}"],${s}[href="${t}"]`),n=h.findOne(e.join(","));n.classList.contains(Rs)?(h.findOne(Il,n.closest(Pl)).classList.add(qt),n.classList.add(qt)):(n.classList.add(qt),h.parents(n,xl).forEach(s=>{h.prev(s,`${zi}, ${Ms}`).forEach(o=>o.classList.add(qt)),h.prev(s,$l).forEach(o=>{h.children(o,zi).forEach(r=>r.classList.add(qt))})})),c.trigger(this._scrollElement,Nl,{relatedTarget:t})}_clear(){h.find(this._selector).filter(t=>t.classList.contains(qt)).forEach(t=>t.classList.remove(qt))}static jQueryInterface(t){return this.each(function(){let e=xe.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};c.on(window,Ll,()=>{h.find(Dl).forEach(i=>new xe(i))});J(xe);var Ml="tab",jl="bs.tab",$e=`.${jl}`,kl=".data-api",Vl=`hide${$e}`,Hl=`hidden${$e}`,Bl=`show${$e}`,Wl=`shown${$e}`,Kl=`click${$e}${kl}`,Ul="dropdown-menu",Pe="active",ks="fade",Vs="show",Fl=".dropdown",Yl=".nav, .list-group",Hs=".active",Bs=":scope > li > .active",ql='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Gl=".dropdown-toggle",Xl=":scope > .dropdown-menu .active",ce=class extends tt{static get NAME(){return Ml}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Pe))return;let t,e=bt(this._element),n=this._element.closest(Yl);if(n){let a=n.nodeName==="UL"||n.nodeName==="OL"?Bs:Hs;t=h.find(a,n),t=t[t.length-1]}let s=t?c.trigger(t,Vl,{relatedTarget:this._element}):null;if(c.trigger(this._element,Bl,{relatedTarget:t}).defaultPrevented||s!==null&&s.defaultPrevented)return;this._activate(this._element,n);let r=()=>{c.trigger(t,Hl,{relatedTarget:this._element}),c.trigger(this._element,Wl,{relatedTarget:t})};e?this._activate(e,e.parentNode,r):r()}_activate(t,e,n){let o=(e&&(e.nodeName==="UL"||e.nodeName==="OL")?h.find(Bs,e):h.children(e,Hs))[0],r=n&&o&&o.classList.contains(ks),a=()=>this._transitionComplete(t,o,n);o&&r?(o.classList.remove(Vs),this._queueCallback(a,t,!0)):a()}_transitionComplete(t,e,n){if(e){e.classList.remove(Pe);let o=h.findOne(Xl,e.parentNode);o&&o.classList.remove(Pe),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!1)}t.classList.add(Pe),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!0),re(t),t.classList.contains(ks)&&t.classList.add(Vs);let s=t.parentNode;if(s&&s.nodeName==="LI"&&(s=s.parentNode),s&&s.classList.contains(Ul)){let o=t.closest(Fl);o&&h.find(Gl,o).forEach(r=>r.classList.add(Pe)),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each(function(){let e=ce.getOrCreateInstance(this);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};c.on(document,Kl,ql,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),oe(this))return;ce.getOrCreateInstance(this).show()});J(ce);var Ws="toast",zl="bs.toast",gt=`.${zl}`,Ql=`click.dismiss${gt}`,Zl=`mouseover${gt}`,Jl=`mouseout${gt}`,tc=`focusin${gt}`,ec=`focusout${gt}`,ic=`hide${gt}`,nc=`hidden${gt}`,sc=`show${gt}`,oc=`shown${gt}`,rc="fade",Ks="hide",Ie="show",Us="showing",ac={animation:"boolean",autohide:"boolean",delay:"number"},Fs={animation:!0,autohide:!0,delay:5e3},lc='[data-bs-dismiss="toast"]',Gt=class extends tt{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 ac}static get Default(){return Fs}static get NAME(){return Ws}show(){if(c.trigger(this._element,sc).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(rc);let e=()=>{this._element.classList.remove(Us),this._element.classList.add(Ie),c.trigger(this._element,oc),this._maybeScheduleHide()};this._element.classList.remove(Ks),re(this._element),this._element.classList.add(Us),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(Ie)||c.trigger(this._element,ic).defaultPrevented)return;let e=()=>{this._element.classList.add(Ks),c.trigger(this._element,nc)};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=_(_(_({},Fs),V.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),dt(Ws,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(){c.on(this._element,Ql,lc,()=>this.hide()),c.on(this._element,Zl,t=>this._onInteraction(t,!0)),c.on(this._element,Jl,t=>this._onInteraction(t,!1)),c.on(this._element,tc,t=>this._onInteraction(t,!0)),c.on(this._element,ec,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=Gt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};J(Gt);function Ys(i){return"error"in i}function fe(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 cc(i,t,e){return gi(this,null,function*(){let n=window.CSRF_TOKEN,s=new Headers({"X-CSRFToken":n}),o;typeof e!="undefined"&&(o=JSON.stringify(e),s.set("content-type","application/json"));let r=yield fetch(i,{method:t,body:o,headers:s,credentials:"same-origin"}),a=r.headers.get("Content-Type");if(typeof a=="string"&&a.includes("text"))return{error:yield r.text()};let l=yield r.json();return!r.ok&&Array.isArray(l)?{error:l.join(`
|
|
`)}:!r.ok&&"detail"in l?{error:l.detail}:l})}function qs(i){return gi(this,null,function*(){return yield cc(i,"GET")})}function*Qi(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function Gs(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of Qi("body > div#netbox-data > *")){let e=t.getAttribute(i);if(fe(e))return e}return null}function fc(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 fi(i){for(let t of Qi("div.card-overlay"))fc(t,i)}window.Collapse=et;window.Modal=Ft;window.Popover=le;window.Toast=Gt;window.Tooltip=ht;function Xs(i,t,e,n){let s="mdi-alert";switch(i){case"warning":s="mdi-alert";break;case"success":s="mdi-check-circle";break;case"info":s="mdi-information";break;case"danger":s="mdi-alert";break}let o=document.createElement("div");o.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 a=document.createElement("div");a.setAttribute("class",`toast-header bg-${i} text-body`);let l=document.createElement("i");l.setAttribute("class",`mdi ${s}`);let u=document.createElement("strong");u.setAttribute("class","me-auto ms-1"),u.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 d=document.createElement("div");if(d.setAttribute("class","toast-body"),a.appendChild(l),a.appendChild(u),typeof n!="undefined"){let p=document.createElement("small");p.setAttribute("class","text-muted"),a.appendChild(p)}return a.appendChild(f),d.innerText=e.trim(),r.appendChild(a),r.appendChild(d),o.appendChild(r),document.body.appendChild(o),new Gt(r)}var zs=new RegExp(/^([A-Z][A-Za-z]+)[^0-9]*([0-9/]+)$/),uc=new Map([["TwentyFiveGigE","Twe"]]);function Zi(i,t,e){var n,s;return(s=(n=i.querySelector(t))==null?void 0:n.getAttribute(e))!=null?s:null}function dc(i){var t;if(i===null)return i;if(i.match(zs)){let[e,n]=((t=i.match(zs))!=null?t:[]).slice(1,3);if(fe(e)&&fe(n))return`${uc.get(e)||e.slice(0,2)}${n}`}return i}function pc(i){var t,e;for(let[n,s]of Object.entries(i.get_lldp_neighbors_detail)){let[o]=n.split("."),r=document.getElementById(o);if(r!==null)for(let a of s){let l=r.querySelector("td.device"),u=r.querySelector("td.interface"),f=Zi(r,"td.configured_device","data"),d=Zi(r,"td.configured_chassis","data-chassis"),m=Zi(r,"td.configured_interface","data"),p=dc(m),b=(t=a.remote_system_name)!=null?t:"",g=(e=a.remote_port)!=null?e:"",[E]=b.split("."),[A]=g.split(".");l!==null&&(l.innerText=E),u!==null&&(u.innerText=A),!fe(f)&&fe(E)?r.classList.add("info"):(f===E||d===E)&&(m===A||p===A)?r.classList.add("success"):r.classList.add("danger")}}}function Qs(){fi("show");let i=Gs("object-url");i!==null&&qs(i).then(t=>{if(Ys(t)){Xs("danger","Error Retrieving LLDP Neighbor Information",t.error).show(),fi("hide");return}else pc(t)}).finally(()=>{fi("hide")})}document.readyState!=="loading"?Qs():document.addEventListener("DOMContentLoaded",Qs);})();
|
|
/*!
|
|
* 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)
|
|
*/
|