1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Files
netbox-community-netbox/netbox/project-static/dist/status.js

32 lines
126 KiB
JavaScript

(()=>{var jo=Object.create;var ge=Object.defineProperty,ko=Object.defineProperties,Ho=Object.getOwnPropertyDescriptor,Wo=Object.getOwnPropertyDescriptors,Bo=Object.getOwnPropertyNames,Dn=Object.getOwnPropertySymbols,zo=Object.getPrototypeOf,Nn=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable;var xn=(i,t,e)=>t in i?ge(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,P=(i,t)=>{for(var e in t||(t={}))Nn.call(t,e)&&xn(i,e,t[e]);if(Dn)for(var e of Dn(t))Vo.call(t,e)&&xn(i,e,t[e]);return i},Fe=(i,t)=>ko(i,Wo(t)),Ln=i=>ge(i,"__esModule",{value:!0});var at=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),Yo=(i,t)=>{Ln(i);for(var e in t)ge(i,e,{get:t[e],enumerable:!0})},Fo=(i,t,e)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Bo(t))!Nn.call(i,n)&&n!=="default"&&ge(i,n,{get:()=>t[n],enumerable:!(e=Ho(t,n))||e.enumerable});return i},Bt=i=>Fo(Ln(ge(i!=null?jo(zo(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var $i=(i,t,e)=>new Promise((n,s)=>{var r=u=>{try{a(e.next(u))}catch(p){s(p)}},o=u=>{try{a(e.throw(u))}catch(p){s(p)}},a=u=>u.done?n(u.value):Promise.resolve(u.value).then(r,o);a((e=e.apply(i,t)).next())});var Mn=at((Di,Ni)=>{(function(i,t){typeof Di=="object"&&typeof Ni!="undefined"?Ni.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis!="undefined"?globalThis:i||self).dayjs=t()})(Di,function(){"use strict";var i=1e3,t=6e4,e=36e5,n="millisecond",s="second",r="minute",o="hour",a="day",u="week",p="month",f="quarter",v="year",d="date",m="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},c=function(C,$,A){var N=String(C);return!N||N.length>=$?C:""+Array($+1-N.length).join(A)+C},g={s:c,z:function(C){var $=-C.utcOffset(),A=Math.abs($),N=Math.floor(A/60),D=A%60;return($<=0?"+":"-")+c(N,2,"0")+":"+c(D,2,"0")},m:function C($,A){if($.date()<A.date())return-C(A,$);var N=12*(A.year()-$.year())+(A.month()-$.month()),D=$.clone().add(N,p),I=A-D<0,x=$.clone().add(N+(I?-1:1),p);return+(-(N+(A-D)/(I?D-x:x-D))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:p,y:v,w:u,d:a,D:d,h:o,m:r,s,ms:n,Q:f}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},b="en",_={};_[b]=l;var y=function(C){return C instanceof L},w=function(C,$,A){var N;if(!C)return b;if(typeof C=="string")_[C]&&(N=C),$&&(_[C]=$,N=C);else{var D=C.name;_[D]=C,N=D}return!A&&N&&(b=N),N||!A&&b},O=function(C,$){if(y(C))return C.clone();var A=typeof $=="object"?$:{};return A.date=C,A.args=arguments,new L(A)},S=g;S.l=w,S.i=y,S.w=function(C,$){return O(C,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var L=function(){function C(A){this.$L=w(A.locale,null,!0),this.parse(A)}var $=C.prototype;return $.parse=function(A){this.$d=function(N){var D=N.date,I=N.utc;if(D===null)return new Date(NaN);if(S.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var x=D.match(E);if(x){var j=x[2]-1||0,k=(x[7]||"0").substring(0,3);return I?new Date(Date.UTC(x[1],j,x[3]||1,x[4]||0,x[5]||0,x[6]||0,k)):new Date(x[1],j,x[3]||1,x[4]||0,x[5]||0,x[6]||0,k)}}return new Date(D)}(A),this.$x=A.x||{},this.init()},$.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},$.$utils=function(){return S},$.isValid=function(){return this.$d.toString()!==m},$.isSame=function(A,N){var D=O(A);return this.startOf(N)<=D&&D<=this.endOf(N)},$.isAfter=function(A,N){return O(A)<this.startOf(N)},$.isBefore=function(A,N){return this.endOf(N)<O(A)},$.$g=function(A,N,D){return S.u(A)?this[N]:this.set(D,A)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(A,N){var D=this,I=!!S.u(N)||N,x=S.p(A),j=function(mt,q){var et=S.w(D.$u?Date.UTC(D.$y,q,mt):new Date(D.$y,q,mt),D);return I?et:et.endOf(a)},k=function(mt,q){return S.w(D.toDate()[mt].apply(D.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(q)),D)},H=this.$W,V=this.$M,tt=this.$D,st="set"+(this.$u?"UTC":"");switch(x){case v:return I?j(1,0):j(31,11);case p:return I?j(1,V):j(0,V+1);case u:var rt=this.$locale().weekStart||0,J=(H<rt?H+7:H)-rt;return j(I?tt-J:tt+(6-J),V);case a:case d:return k(st+"Hours",0);case o:return k(st+"Minutes",1);case r:return k(st+"Seconds",2);case s:return k(st+"Milliseconds",3);default:return this.clone()}},$.endOf=function(A){return this.startOf(A,!1)},$.$set=function(A,N){var D,I=S.p(A),x="set"+(this.$u?"UTC":""),j=(D={},D[a]=x+"Date",D[d]=x+"Date",D[p]=x+"Month",D[v]=x+"FullYear",D[o]=x+"Hours",D[r]=x+"Minutes",D[s]=x+"Seconds",D[n]=x+"Milliseconds",D)[I],k=I===a?this.$D+(N-this.$W):N;if(I===p||I===v){var H=this.clone().set(d,1);H.$d[j](k),H.init(),this.$d=H.set(d,Math.min(this.$D,H.daysInMonth())).$d}else j&&this.$d[j](k);return this.init(),this},$.set=function(A,N){return this.clone().$set(A,N)},$.get=function(A){return this[S.p(A)]()},$.add=function(A,N){var D,I=this;A=Number(A);var x=S.p(N),j=function(V){var tt=O(I);return S.w(tt.date(tt.date()+Math.round(V*A)),I)};if(x===p)return this.set(p,this.$M+A);if(x===v)return this.set(v,this.$y+A);if(x===a)return j(1);if(x===u)return j(7);var k=(D={},D[r]=t,D[o]=e,D[s]=i,D)[x]||1,H=this.$d.getTime()+A*k;return S.w(H,this)},$.subtract=function(A,N){return this.add(-1*A,N)},$.format=function(A){var N=this,D=this.$locale();if(!this.isValid())return D.invalidDate||m;var I=A||"YYYY-MM-DDTHH:mm:ssZ",x=S.z(this),j=this.$H,k=this.$m,H=this.$M,V=D.weekdays,tt=D.months,st=function(q,et,Ht,Wt){return q&&(q[et]||q(N,I))||Ht[et].substr(0,Wt)},rt=function(q){return S.s(j%12||12,q,"0")},J=D.meridiem||function(q,et,Ht){var Wt=q<12?"AM":"PM";return Ht?Wt.toLowerCase():Wt},mt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:H+1,MM:S.s(H+1,2,"0"),MMM:st(D.monthsShort,H,tt,3),MMMM:st(tt,H),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:st(D.weekdaysMin,this.$W,V,2),ddd:st(D.weekdaysShort,this.$W,V,3),dddd:V[this.$W],H:String(j),HH:S.s(j,2,"0"),h:rt(1),hh:rt(2),a:J(j,k,!0),A:J(j,k,!1),m:String(k),mm:S.s(k,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:x};return I.replace(h,function(q,et){return et||mt[q]||x.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(A,N,D){var I,x=S.p(N),j=O(A),k=(j.utcOffset()-this.utcOffset())*t,H=this-j,V=S.m(this,j);return V=(I={},I[v]=V/12,I[p]=V,I[f]=V/3,I[u]=(H-k)/6048e5,I[a]=(H-k)/864e5,I[o]=H/e,I[r]=H/t,I[s]=H/i,I)[x]||H,D?V:S.a(V)},$.daysInMonth=function(){return this.endOf(p).$D},$.$locale=function(){return _[this.$L]},$.locale=function(A,N){if(!A)return this.$L;var D=this.clone(),I=w(A,N,!0);return I&&(D.$L=I),D},$.clone=function(){return S.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},C}(),R=L.prototype;return O.prototype=R,[["$ms",n],["$s",s],["$m",r],["$H",o],["$W",a],["$M",p],["$y",v],["$D",d]].forEach(function(C){R[C[1]]=function($){return this.$g($,C[0],C[1])}}),O.extend=function(C,$){return C.$i||(C($,L,O),C.$i=!0),O},O.locale=w,O.isDayjs=y,O.unix=function(C){return O(1e3*C)},O.en=_[b],O.Ls=_,O.p={},O})});var In=at((xi,Li)=>{(function(i,t){typeof xi=="object"&&typeof Li!="undefined"?Li.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis!="undefined"?globalThis:i||self).dayjs_plugin_utc=t()})(xi,function(){"use strict";var i="minute",t=/[+-]\d\d(?::?\d\d)?/g,e=/([+-]|\d\d)/g;return function(n,s,r){var o=s.prototype;r.utc=function(m){var E={date:m,utc:!0,args:arguments};return new s(E)},o.utc=function(m){var E=r(this.toDate(),{locale:this.$L,utc:!0});return m?E.add(this.utcOffset(),i):E},o.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var a=o.parse;o.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),a.call(this,m)};var u=o.init;o.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else u.call(this)};var p=o.utcOffset;o.utcOffset=function(m,E){var h=this.$utils().u;if(h(m))return this.$u?0:h(this.$offset)?p.call(this):this.$offset;if(typeof m=="string"&&(m=function(b){b===void 0&&(b="");var _=b.match(t);if(!_)return null;var y=(""+_[0]).match(e)||["-",0,0],w=y[0],O=60*+y[1]+ +y[2];return O===0?0:w==="+"?O:-O}(m))===null)return this;var l=Math.abs(m)<=16?60*m:m,c=this;if(E)return c.$offset=l,c.$u=m===0,c;if(m!==0){var g=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(c=this.local().add(l+g,i)).$offset=l,c.$x.$localOffset=g}else c=this.utc();return c};var f=o.format;o.format=function(m){var E=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,E)},o.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||new Date().getTimezoneOffset());return this.$d.valueOf()-6e4*m},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var v=o.toDate;o.toDate=function(m){return m==="s"&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var d=o.diff;o.diff=function(m,E,h){if(m&&this.$u===m.$u)return d.call(this,m,E,h);var l=this.local(),c=r(m).local();return d.call(l,c,E,h)}}})});var Pn=at((Mi,Ii)=>{(function(i,t){typeof Mi=="object"&&typeof Ii!="undefined"?Ii.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis!="undefined"?globalThis:i||self).dayjs_plugin_timezone=t()})(Mi,function(){"use strict";var i={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(e,n,s){var r,o=function(f,v,d){d===void 0&&(d={});var m=new Date(f);return function(E,h){h===void 0&&(h={});var l=h.timeZoneName||"short",c=E+"|"+l,g=t[c];return g||(g=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:E,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:l}),t[c]=g),g}(v,d).formatToParts(m)},a=function(f,v){for(var d=o(f,v),m=[],E=0;E<d.length;E+=1){var h=d[E],l=h.type,c=h.value,g=i[l];g>=0&&(m[g]=parseInt(c,10))}var b=m[3],_=b===24?0:b,y=m[0]+"-"+m[1]+"-"+m[2]+" "+_+":"+m[4]+":"+m[5]+":000",w=+f;return(s.utc(y).valueOf()-(w-=w%1e3))/6e4},u=n.prototype;u.tz=function(f,v){f===void 0&&(f=r);var d=this.utcOffset(),m=this.toDate(),E=m.toLocaleString("en-US",{timeZone:f}),h=Math.round((m-new Date(E))/1e3/60),l=s(E).$set("millisecond",this.$ms).utcOffset(15*-Math.round(m.getTimezoneOffset()/15)-h,!0);if(v){var c=l.utcOffset();l=l.add(d-c,"minute")}return l.$x.$timezone=f,l},u.offsetName=function(f){var v=this.$x.$timezone||s.tz.guess(),d=o(this.valueOf(),v,{timeZoneName:f}).find(function(m){return m.type.toLowerCase()==="timezonename"});return d&&d.value};var p=u.startOf;u.startOf=function(f,v){if(!this.$x||!this.$x.$timezone)return p.call(this,f,v);var d=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return p.call(d,f,v).tz(this.$x.$timezone,!0)},s.tz=function(f,v,d){var m=d&&v,E=d||v||r,h=a(+s(),E);if(typeof f!="string")return s(f).tz(E);var l=function(_,y,w){var O=_-60*y*1e3,S=a(O,w);if(y===S)return[O,y];var L=a(O-=60*(S-y)*1e3,w);return S===L?[O,S]:[_-60*Math.min(S,L)*1e3,Math.max(S,L)]}(s.utc(f,m).valueOf(),h,E),c=l[0],g=l[1],b=s(c).utcOffset(g);return b.$x.$timezone=E,b},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(f){r=f}}})});var Rn=at((Pi,Ri)=>{(function(i,t){typeof Pi=="object"&&typeof Ri!="undefined"?Ri.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis!="undefined"?globalThis:i||self).dayjs_plugin_duration=t()})(Pi,function(){"use strict";var i,t,e=1e3,n=6e4,s=36e5,r=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=31536e6,u=2592e6,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:a,months:u,days:r,hours:s,minutes:n,seconds:e,milliseconds:1,weeks:6048e5},v=function(b){return b instanceof g},d=function(b,_,y){return new g(b,y,_.$l)},m=function(b){return t.p(b)+"s"},E=function(b){return b<0},h=function(b){return E(b)?Math.ceil(b):Math.floor(b)},l=function(b){return Math.abs(b)},c=function(b,_){return b?E(b)?{negative:!0,format:""+l(b)+_}:{negative:!1,format:""+b+_}:{negative:!1,format:""}},g=function(){function b(y,w,O){var S=this;if(this.$d={},this.$l=O,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),w)return d(y*f[m(w)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach(function(C){S.$d[m(C)]=y[C]}),this.calMilliseconds(),this;if(typeof y=="string"){var L=y.match(p);if(L){var R=L.slice(2).map(function(C){return Number(C)});return this.$d.years=R[0],this.$d.months=R[1],this.$d.weeks=R[2],this.$d.days=R[3],this.$d.hours=R[4],this.$d.minutes=R[5],this.$d.seconds=R[6],this.calMilliseconds(),this}}return this}var _=b.prototype;return _.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce(function(w,O){return w+(y.$d[O]||0)*f[O]},0)},_.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=h(y/a),y%=a,this.$d.months=h(y/u),y%=u,this.$d.days=h(y/r),y%=r,this.$d.hours=h(y/s),y%=s,this.$d.minutes=h(y/n),y%=n,this.$d.seconds=h(y/e),y%=e,this.$d.milliseconds=y},_.toISOString=function(){var y=c(this.$d.years,"Y"),w=c(this.$d.months,"M"),O=+this.$d.days||0;this.$d.weeks&&(O+=7*this.$d.weeks);var S=c(O,"D"),L=c(this.$d.hours,"H"),R=c(this.$d.minutes,"M"),C=this.$d.seconds||0;this.$d.milliseconds&&(C+=this.$d.milliseconds/1e3);var $=c(C,"S"),A=y.negative||w.negative||S.negative||L.negative||R.negative||$.negative,N=L.format||R.format||$.format?"T":"",D=(A?"-":"")+"P"+y.format+w.format+S.format+N+L.format+R.format+$.format;return D==="P"||D==="-P"?"P0D":D},_.toJSON=function(){return this.toISOString()},_.format=function(y){var w=y||"YYYY-MM-DDTHH:mm:ss",O={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return w.replace(o,function(S,L){return L||String(O[S])})},_.as=function(y){return this.$ms/f[m(y)]},_.get=function(y){var w=this.$ms,O=m(y);return O==="milliseconds"?w%=1e3:w=O==="weeks"?h(w/f[O]):this.$d[O],w===0?0:w},_.add=function(y,w,O){var S;return S=w?y*f[m(w)]:v(y)?y.$ms:d(y,this).$ms,d(this.$ms+S*(O?-1:1),this)},_.subtract=function(y,w){return this.add(y,w,!0)},_.locale=function(y){var w=this.clone();return w.$l=y,w},_.clone=function(){return d(this.$ms,this)},_.humanize=function(y){return i().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},_.milliseconds=function(){return this.get("milliseconds")},_.asMilliseconds=function(){return this.as("milliseconds")},_.seconds=function(){return this.get("seconds")},_.asSeconds=function(){return this.as("seconds")},_.minutes=function(){return this.get("minutes")},_.asMinutes=function(){return this.as("minutes")},_.hours=function(){return this.get("hours")},_.asHours=function(){return this.as("hours")},_.days=function(){return this.get("days")},_.asDays=function(){return this.as("days")},_.weeks=function(){return this.get("weeks")},_.asWeeks=function(){return this.as("weeks")},_.months=function(){return this.get("months")},_.asMonths=function(){return this.as("months")},_.years=function(){return this.get("years")},_.asYears=function(){return this.as("years")},b}();return function(b,_,y){i=y,t=y().$utils(),y.duration=function(S,L){var R=y.locale();return d(S,{$l:R},L)},y.isDuration=v;var w=_.prototype.add,O=_.prototype.subtract;_.prototype.add=function(S,L){return v(S)&&(S=S.asMilliseconds()),w.bind(this)(S,L)},_.prototype.subtract=function(S,L){return v(S)&&(S=S.asMilliseconds()),O.bind(this)(S,L)}}})});var jn=at((ji,ki)=>{(function(i,t){typeof ji=="object"&&typeof ki!="undefined"?ki.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis!="undefined"?globalThis:i||self).dayjs_plugin_advancedFormat=t()})(ji,function(){"use strict";return function(i,t,e){var n=t.prototype,s=n.format;e.en.ordinal=function(r){var o=["th","st","nd","rd"],a=r%100;return"["+r+(o[(a-20)%10]||o[a]||o[0])+"]"},n.format=function(r){var o=this,a=this.$locale(),u=this.$utils(),p=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return a.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return a.ordinal(o.week(),"W");case"w":case"ww":return u.s(o.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(o.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(o.$H===0?24:o.$H),f==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1e3);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return f}});return s.bind(this)(p)}}})});var yn=at((Eo,gi)=>{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof gi=="object"&&gi.exports?gi.exports=t():i.EvEmitter=t()})(typeof window!="undefined"?window:Eo,function(){"use strict";function i(){}var t=i.prototype;return t.on=function(e,n){if(!(!e||!n)){var s=this._events=this._events||{},r=s[e]=s[e]||[];return r.indexOf(n)==-1&&r.push(n),this}},t.once=function(e,n){if(!(!e||!n)){this.on(e,n);var s=this._onceEvents=this._onceEvents||{},r=s[e]=s[e]||{};return r[n]=!0,this}},t.off=function(e,n){var s=this._events&&this._events[e];if(!(!s||!s.length)){var r=s.indexOf(n);return r!=-1&&s.splice(r,1),this}},t.emitEvent=function(e,n){var s=this._events&&this._events[e];if(!(!s||!s.length)){s=s.slice(0),n=n||[];for(var r=this._onceEvents&&this._onceEvents[e],o=0;o<s.length;o++){var a=s[o],u=r&&r[a];u&&(this.off(e,a),delete r[a]),a.apply(this,n)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},i})});var vi=at((_p,_i)=>{(function(i,t){typeof define=="function"&&define.amd?define(t):typeof _i=="object"&&_i.exports?_i.exports=t():i.getSize=t()})(window,function(){"use strict";function t(d){var m=parseFloat(d),E=d.indexOf("%")==-1&&!isNaN(m);return E&&m}function e(){}var n=typeof console=="undefined"?e:function(d){console.error(d)},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=s.length;function o(){for(var d={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},m=0;m<r;m++){var E=s[m];d[E]=0}return d}function a(d){var m=getComputedStyle(d);return m||n("Style returned "+m+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),m}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 m=document.body||document.documentElement;m.appendChild(d);var E=a(d);p=Math.round(t(E.width))==200,v.isBoxSizeOuter=p,m.removeChild(d)}}function v(d){if(f(),typeof d=="string"&&(d=document.querySelector(d)),!(!d||typeof d!="object"||!d.nodeType)){var m=a(d);if(m.display=="none")return o();var E={};E.width=d.offsetWidth,E.height=d.offsetHeight;for(var h=E.isBorderBox=m.boxSizing=="border-box",l=0;l<r;l++){var c=s[l],g=m[c],b=parseFloat(g);E[c]=isNaN(b)?0:b}var _=E.paddingLeft+E.paddingRight,y=E.paddingTop+E.paddingBottom,w=E.marginLeft+E.marginRight,O=E.marginTop+E.marginBottom,S=E.borderLeftWidth+E.borderRightWidth,L=E.borderTopWidth+E.borderBottomWidth,R=h&&p,C=t(m.width);C!==!1&&(E.width=C+(R?0:_+S));var $=t(m.height);return $!==!1&&(E.height=$+(R?0:y+L)),E.innerWidth=E.width-(_+S),E.innerHeight=E.height-(y+L),E.outerWidth=E.width+w,E.outerHeight=E.height+O,E}}return v})});var yo=at((vp,Ei)=>{(function(i,t){"use strict";typeof define=="function"&&define.amd?define(t):typeof Ei=="object"&&Ei.exports?Ei.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"],s=0;s<n.length;s++){var r=n[s],o=r+"MatchesSelector";if(e[o])return o}}();return function(n,s){return n[t](s)}})});var bo=at((Ep,yi)=>{(function(i,t){typeof define=="function"&&define.amd?define(["desandro-matches-selector/matches-selector"],function(e){return t(i,e)}):typeof yi=="object"&&yi.exports?yi.exports=t(i,yo()):i.fizzyUIUtils=t(i,i.matchesSelector)})(window,function(t,e){"use strict";var n={};n.extend=function(o,a){for(var u in a)o[u]=a[u];return o},n.modulo=function(o,a){return(o%a+a)%a};var s=Array.prototype.slice;n.makeArray=function(o){if(Array.isArray(o))return o;if(o==null)return[];var a=typeof o=="object"&&typeof o.length=="number";return a?s.call(o):[o]},n.removeFrom=function(o,a){var u=o.indexOf(a);u!=-1&&o.splice(u,1)},n.getParent=function(o,a){for(;o.parentNode&&o!=document.body;)if(o=o.parentNode,e(o,a))return o},n.getQueryElement=function(o){return typeof o=="string"?document.querySelector(o):o},n.handleEvent=function(o){var a="on"+o.type;this[a]&&this[a](o)},n.filterFindElements=function(o,a){o=n.makeArray(o);var u=[];return o.forEach(function(p){if(p instanceof HTMLElement){if(!a){u.push(p);return}e(p,a)&&u.push(p);for(var f=p.querySelectorAll(a),v=0;v<f.length;v++)u.push(f[v])}}),u},n.debounceMethod=function(o,a,u){u=u||100;var p=o.prototype[a],f=a+"Timeout";o.prototype[a]=function(){var v=this[f];clearTimeout(v);var d=arguments,m=this;this[f]=setTimeout(function(){p.apply(m,d),delete m[f]},u)}},n.docReady=function(o){var a=document.readyState;a=="complete"||a=="interactive"?setTimeout(o):document.addEventListener("DOMContentLoaded",o)},n.toDashed=function(o){return o.replace(/(.)([A-Z])/g,function(a,u,p){return u+"-"+p}).toLowerCase()};var r=t.console;return n.htmlInit=function(o,a){n.docReady(function(){var u=n.toDashed(a),p="data-"+u,f=document.querySelectorAll("["+p+"]"),v=document.querySelectorAll(".js-"+u),d=n.makeArray(f).concat(n.makeArray(v)),m=p+"-options",E=t.jQuery;d.forEach(function(h){var l=h.getAttribute(p)||h.getAttribute(m),c;try{c=l&&JSON.parse(l)}catch(b){r&&r.error("Error parsing "+p+" on "+h.className+": "+b);return}var g=new o(h,c);E&&E.data(h,a,g)})})},n})});var To=at((yp,bi)=>{(function(i,t){typeof define=="function"&&define.amd?define(["ev-emitter/ev-emitter","get-size/get-size"],t):typeof bi=="object"&&bi.exports?bi.exports=t(yn(),vi()):(i.Outlayer={},i.Outlayer.Item=t(i.EvEmitter,i.getSize))})(window,function(t,e){"use strict";function n(h){for(var l in h)return!1;return l=null,!0}var s=document.documentElement.style,r=typeof s.transition=="string"?"transition":"WebkitTransition",o=typeof s.transform=="string"?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],u={transform:o,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function p(h,l){!h||(this.element=h,this.layout=l,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 l="on"+h.type;this[l]&&this[l](h)},f.getSize=function(){this.size=e(this.element)},f.css=function(h){var l=this.element.style;for(var c in h){var g=u[c]||c;l[g]=h[c]}},f.getPosition=function(){var h=getComputedStyle(this.element),l=this.layout._getOption("originLeft"),c=this.layout._getOption("originTop"),g=h[l?"left":"right"],b=h[c?"top":"bottom"],_=parseFloat(g),y=parseFloat(b),w=this.layout.size;g.indexOf("%")!=-1&&(_=_/100*w.width),b.indexOf("%")!=-1&&(y=y/100*w.height),_=isNaN(_)?0:_,y=isNaN(y)?0:y,_-=l?w.paddingLeft:w.paddingRight,y-=c?w.paddingTop:w.paddingBottom,this.position.x=_,this.position.y=y},f.layoutPosition=function(){var h=this.layout.size,l={},c=this.layout._getOption("originLeft"),g=this.layout._getOption("originTop"),b=c?"paddingLeft":"paddingRight",_=c?"left":"right",y=c?"right":"left",w=this.position.x+h[b];l[_]=this.getXValue(w),l[y]="";var O=g?"paddingTop":"paddingBottom",S=g?"top":"bottom",L=g?"bottom":"top",R=this.position.y+h[O];l[S]=this.getYValue(R),l[L]="",this.css(l),this.emitEvent("layout",[this])},f.getXValue=function(h){var l=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!l?h/this.layout.size.width*100+"%":h+"px"},f.getYValue=function(h){var l=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&l?h/this.layout.size.height*100+"%":h+"px"},f._transitionTo=function(h,l){this.getPosition();var c=this.position.x,g=this.position.y,b=h==this.position.x&&l==this.position.y;if(this.setPosition(h,l),b&&!this.isTransitioning){this.layoutPosition();return}var _=h-c,y=l-g,w={};w.transform=this.getTranslate(_,y),this.transition({to:w,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.getTranslate=function(h,l){var c=this.layout._getOption("originLeft"),g=this.layout._getOption("originTop");return h=c?h:-h,l=g?l:-l,"translate3d("+h+"px, "+l+"px, 0)"},f.goTo=function(h,l){this.setPosition(h,l),this.layoutPosition()},f.moveTo=f._transitionTo,f.setPosition=function(h,l){this.position.x=parseFloat(h),this.position.y=parseFloat(l)},f._nonTransition=function(h){this.css(h.to),h.isCleaning&&this._removeStyles(h.to);for(var l in h.onTransitionEnd)h.onTransitionEnd[l].call(this)},f.transition=function(h){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(h);return}var l=this._transn;for(var c in h.onTransitionEnd)l.onEnd[c]=h.onTransitionEnd[c];for(c in h.to)l.ingProperties[c]=!0,h.isCleaning&&(l.clean[c]=!0);if(h.from){this.css(h.from);var g=this.element.offsetHeight;g=null}this.enableTransition(h.to),this.css(h.to),this.isTransitioning=!0};function v(h){return h.replace(/([A-Z])/g,function(l){return"-"+l.toLowerCase()})}var d="opacity,"+v(o);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(a,this,!1)}},f.onwebkitTransitionEnd=function(h){this.ontransitionend(h)},f.onotransitionend=function(h){this.ontransitionend(h)};var m={"-webkit-transform":"transform"};f.ontransitionend=function(h){if(h.target===this.element){var l=this._transn,c=m[h.propertyName]||h.propertyName;if(delete l.ingProperties[c],n(l.ingProperties)&&this.disableTransition(),c in l.clean&&(this.element.style[h.propertyName]="",delete l.clean[c]),c in l.onEnd){var g=l.onEnd[c];g.call(this),delete l.onEnd[c]}this.emitEvent("transitionEnd",[this])}},f.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},f._removeStyles=function(h){var l={};for(var c in h)l[c]="";this.css(l)};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(!r||!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,l={},c=this.getHideRevealTransitionEndProperty("visibleStyle");l[c]=this.onRevealTransitionEnd,this.transition({from:h.hiddenStyle,to:h.visibleStyle,isCleaning:!0,onTransitionEnd:l})},f.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.getHideRevealTransitionEndProperty=function(h){var l=this.layout.options[h];if(l.opacity)return"opacity";for(var c in l)return c},f.hide=function(){this.isHidden=!0,this.css({display:""});var h=this.layout.options,l={},c=this.getHideRevealTransitionEndProperty("hiddenStyle");l[c]=this.onHideTransitionEnd,this.transition({from:h.visibleStyle,to:h.hiddenStyle,isCleaning:!0,onTransitionEnd:l})},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 So=at((bp,Ti)=>{(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,s,r){return t(i,e,n,s,r)}):typeof Ti=="object"&&Ti.exports?Ti.exports=t(i,yn(),vi(),bo(),To()):i.Outlayer=t(i,i.EvEmitter,i.getSize,i.fizzyUIUtils,i.Outlayer.Item)})(window,function(t,e,n,s,r){"use strict";var o=t.console,a=t.jQuery,u=function(){},p=0,f={};function v(l,c){var g=s.getQueryElement(l);if(!g){o&&o.error("Bad element for "+this.constructor.namespace+": "+(g||l));return}this.element=g,a&&(this.$element=a(this.element)),this.options=s.extend({},this.constructor.defaults),this.option(c);var b=++p;this.element.outlayerGUID=b,f[b]=this,this._create();var _=this._getOption("initLayout");_&&this.layout()}v.namespace="outlayer",v.Item=r,v.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=v.prototype;s.extend(d,e.prototype),d.option=function(l){s.extend(this.options,l)},d._getOption=function(l){var c=this.constructor.compatOptions[l];return c&&this.options[c]!==void 0?this.options[c]:this.options[l]},v.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),s.extend(this.element.style,this.options.containerStyle);var l=this._getOption("resize");l&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(l){for(var c=this._filterFindItemElements(l),g=this.constructor.Item,b=[],_=0;_<c.length;_++){var y=c[_],w=new g(y,this);b.push(w)}return b},d._filterFindItemElements=function(l){return s.filterFindElements(l,this.options.itemSelector)},d.getItemElements=function(){return this.items.map(function(l){return l.element})},d.layout=function(){this._resetLayout(),this._manageStamps();var l=this._getOption("layoutInstant"),c=l!==void 0?l:!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(l,c){var g=this.options[l],b;g?(typeof g=="string"?b=this.element.querySelector(g):g instanceof HTMLElement&&(b=g),this[l]=b?n(b)[c]:g):this[l]=0},d.layoutItems=function(l,c){l=this._getItemsForLayout(l),this._layoutItems(l,c),this._postLayout()},d._getItemsForLayout=function(l){return l.filter(function(c){return!c.isIgnored})},d._layoutItems=function(l,c){if(this._emitCompleteOnItems("layout",l),!(!l||!l.length)){var g=[];l.forEach(function(b){var _=this._getItemLayoutPosition(b);_.item=b,_.isInstant=c||b.isLayoutInstant,g.push(_)},this),this._processLayoutQueue(g)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(l){this.updateStagger(),l.forEach(function(c,g){this._positionItem(c.item,c.x,c.y,c.isInstant,g)},this)},d.updateStagger=function(){var l=this.options.stagger;if(l==null){this.stagger=0;return}return this.stagger=h(l),this.stagger},d._positionItem=function(l,c,g,b,_){b?l.goTo(c,g):(l.stagger(_*this.stagger),l.moveTo(c,g))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var l=this._getOption("resizeContainer");if(!!l){var c=this._getContainerSize();c&&(this._setContainerMeasure(c.width,!0),this._setContainerMeasure(c.height,!1))}},d._getContainerSize=u,d._setContainerMeasure=function(l,c){if(l!==void 0){var g=this.size;g.isBorderBox&&(l+=c?g.paddingLeft+g.paddingRight+g.borderLeftWidth+g.borderRightWidth:g.paddingBottom+g.paddingTop+g.borderTopWidth+g.borderBottomWidth),l=Math.max(l,0),this.element.style[c?"width":"height"]=l+"px"}},d._emitCompleteOnItems=function(l,c){var g=this;function b(){g.dispatchEvent(l+"Complete",null,[c])}var _=c.length;if(!c||!_){b();return}var y=0;function w(){y++,y==_&&b()}c.forEach(function(O){O.once(l,w)})},d.dispatchEvent=function(l,c,g){var b=c?[c].concat(g):g;if(this.emitEvent(l,b),a)if(this.$element=this.$element||a(this.element),c){var _=a.Event(c);_.type=l,this.$element.trigger(_,g)}else this.$element.trigger(l,g)},d.ignore=function(l){var c=this.getItem(l);c&&(c.isIgnored=!0)},d.unignore=function(l){var c=this.getItem(l);c&&delete c.isIgnored},d.stamp=function(l){l=this._find(l),!!l&&(this.stamps=this.stamps.concat(l),l.forEach(this.ignore,this))},d.unstamp=function(l){l=this._find(l),!!l&&l.forEach(function(c){s.removeFrom(this.stamps,c),this.unignore(c)},this)},d._find=function(l){if(!!l)return typeof l=="string"&&(l=this.element.querySelectorAll(l)),l=s.makeArray(l),l},d._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var l=this.element.getBoundingClientRect(),c=this.size;this._boundingRect={left:l.left+c.paddingLeft+c.borderLeftWidth,top:l.top+c.paddingTop+c.borderTopWidth,right:l.right-(c.paddingRight+c.borderRightWidth),bottom:l.bottom-(c.paddingBottom+c.borderBottomWidth)}},d._manageStamp=u,d._getElementOffset=function(l){var c=l.getBoundingClientRect(),g=this._boundingRect,b=n(l),_={left:c.left-g.left-b.marginLeft,top:c.top-g.top-b.marginTop,right:g.right-c.right-b.marginRight,bottom:g.bottom-c.bottom-b.marginBottom};return _},d.handleEvent=s.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()},s.debounceMethod(v,"onresize",100),d.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},d.needsResizeLayout=function(){var l=n(this.element),c=this.size&&l;return c&&l.innerWidth!==this.size.innerWidth},d.addItems=function(l){var c=this._itemize(l);return c.length&&(this.items=this.items.concat(c)),c},d.appended=function(l){var c=this.addItems(l);!c.length||(this.layoutItems(c,!0),this.reveal(c))},d.prepended=function(l){var c=this._itemize(l);if(!!c.length){var g=this.items.slice(0);this.items=c.concat(g),this._resetLayout(),this._manageStamps(),this.layoutItems(c,!0),this.reveal(c),this.layoutItems(g)}},d.reveal=function(l){if(this._emitCompleteOnItems("reveal",l),!(!l||!l.length)){var c=this.updateStagger();l.forEach(function(g,b){g.stagger(b*c),g.reveal()})}},d.hide=function(l){if(this._emitCompleteOnItems("hide",l),!(!l||!l.length)){var c=this.updateStagger();l.forEach(function(g,b){g.stagger(b*c),g.hide()})}},d.revealItemElements=function(l){var c=this.getItems(l);this.reveal(c)},d.hideItemElements=function(l){var c=this.getItems(l);this.hide(c)},d.getItem=function(l){for(var c=0;c<this.items.length;c++){var g=this.items[c];if(g.element==l)return g}},d.getItems=function(l){l=s.makeArray(l);var c=[];return l.forEach(function(g){var b=this.getItem(g);b&&c.push(b)},this),c},d.remove=function(l){var c=this.getItems(l);this._emitCompleteOnItems("remove",c),!(!c||!c.length)&&c.forEach(function(g){g.remove(),s.removeFrom(this.items,g)},this)},d.destroy=function(){var l=this.element.style;l.height="",l.position="",l.width="",this.items.forEach(function(g){g.destroy()}),this.unbindResize();var c=this.element.outlayerGUID;delete f[c],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},v.data=function(l){l=s.getQueryElement(l);var c=l&&l.outlayerGUID;return c&&f[c]},v.create=function(l,c){var g=m(v);return g.defaults=s.extend({},v.defaults),s.extend(g.defaults,c),g.compatOptions=s.extend({},v.compatOptions),g.namespace=l,g.data=v.data,g.Item=m(r),s.htmlInit(g,l),a&&a.bridget&&a.bridget(l,g),g};function m(l){function c(){l.apply(this,arguments)}return c.prototype=Object.create(l.prototype),c.prototype.constructor=c,c}var E={ms:1,s:1e3};function h(l){if(typeof l=="number")return l;var c=l.match(/(^\d*\.?\d*)(\w*)/),g=c&&c[1],b=c&&c[2];if(!g.length)return 0;g=parseFloat(g);var _=E[b]||1;return g*_}return v.Item=r,v})});var Ao=at((Tp,Si)=>{(function(i,t){typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size"],t):typeof Si=="object"&&Si.exports?Si.exports=t(So(),vi()):i.Masonry=t(i.Outlayer,i.getSize)})(window,function(t,e){"use strict";var n=t.create("masonry");n.compatOptions.fitWidth="isFitWidth";var s=n.prototype;return s._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var r=0;r<this.cols;r++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},s.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var r=this.items[0],o=r&&r.element;this.columnWidth=o&&e(o).outerWidth||this.containerWidth}var a=this.columnWidth+=this.gutter,u=this.containerWidth+this.gutter,p=u/a,f=a-u%a,v=f&&f<1?"round":"floor";p=Math[v](p),this.cols=Math.max(p,1)},s.getContainerWidth=function(){var r=this._getOption("fitWidth"),o=r?this.element.parentNode:this.element,a=e(o);this.containerWidth=a&&a.innerWidth},s._getItemLayoutPosition=function(r){r.getSize();var o=r.size.outerWidth%this.columnWidth,a=o&&o<1?"round":"ceil",u=Math[a](r.size.outerWidth/this.columnWidth);u=Math.min(u,this.cols);for(var p=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",f=this[p](u,r),v={x:this.columnWidth*f.col,y:f.y},d=f.y+r.size.outerHeight,m=u+f.col,E=f.col;E<m;E++)this.colYs[E]=d;return v},s._getTopColPosition=function(r){var o=this._getTopColGroup(r),a=Math.min.apply(Math,o);return{col:o.indexOf(a),y:a}},s._getTopColGroup=function(r){if(r<2)return this.colYs;for(var o=[],a=this.cols+1-r,u=0;u<a;u++)o[u]=this._getColGroupY(u,r);return o},s._getColGroupY=function(r,o){if(o<2)return this.colYs[r];var a=this.colYs.slice(r,r+o);return Math.max.apply(Math,a)},s._getHorizontalColPosition=function(r,o){var a=this.horizontalColIndex%this.cols,u=r>1&&a+r>this.cols;a=u?0:a;var p=o.size.outerWidth&&o.size.outerHeight;return this.horizontalColIndex=p?a+r:this.horizontalColIndex,{col:a,y:this._getColGroupY(a,r)}},s._manageStamp=function(r){var o=e(r),a=this._getElementOffset(r),u=this._getOption("originLeft"),p=u?a.left:a.right,f=p+o.outerWidth,v=Math.floor(p/this.columnWidth);v=Math.max(0,v);var d=Math.floor(f/this.columnWidth);d-=f%this.columnWidth?0:1,d=Math.min(this.cols-1,d);for(var m=this._getOption("originTop"),E=(m?a.top:a.bottom)+o.outerHeight,h=v;h<=d;h++)this.colYs[h]=Math.max(E,this.colYs[h])},s._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var r={height:this.maxY};return this._getOption("fitWidth")&&(r.width=this._getContainerFitWidth()),r},s._getContainerFitWidth=function(){for(var r=0,o=this.cols;--o&&this.colYs[o]===0;)r++;return(this.cols-r)*this.columnWidth-this.gutter},s.needsResizeLayout=function(){var r=this.containerWidth;return this.getContainerWidth(),r!=this.containerWidth},n})});var wo=at(bn=>{"use strict";bn.parse=Gc;bn.serialize=Xc;var Uc=decodeURIComponent,Kc=encodeURIComponent,qc=/; */,Ai=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Gc(i,t){if(typeof i!="string")throw new TypeError("argument str must be a string");for(var e={},n=t||{},s=i.split(qc),r=n.decode||Uc,o=0;o<s.length;o++){var a=s[o],u=a.indexOf("=");if(!(u<0)){var p=a.substr(0,u).trim(),f=a.substr(++u,a.length).trim();f[0]=='"'&&(f=f.slice(1,-1)),e[p]==null&&(e[p]=Qc(f,r))}}return e}function Xc(i,t,e){var n=e||{},s=n.encode||Kc;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Ai.test(i))throw new TypeError("argument name is invalid");var r=s(t);if(r&&!Ai.test(r))throw new TypeError("argument val is invalid");var o=i+"="+r;if(n.maxAge!=null){var a=n.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(n.domain){if(!Ai.test(n.domain))throw new TypeError("option domain is invalid");o+="; Domain="+n.domain}if(n.path){if(!Ai.test(n.path))throw new TypeError("option path is invalid");o+="; Path="+n.path}if(n.expires){if(typeof n.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function Qc(i,t){try{return t(i)}catch(e){return i}}});var oe=Bt(Mn()),No=Bt(In()),xo=Bt(Pn()),Lo=Bt(Rn()),Mo=Bt(jn());var ni={};Yo(ni,{afterMain:()=>Vn,afterRead:()=>Wn,afterWrite:()=>Un,applyStyles:()=>re,arrow:()=>qe,auto:()=>_e,basePlacements:()=>St,beforeMain:()=>Bn,beforeRead:()=>kn,beforeWrite:()=>Yn,bottom:()=>K,clippingParents:()=>Hi,computeStyles:()=>ae,createPopper:()=>ii,createPopperBase:()=>ts,createPopperLite:()=>es,detectOverflow:()=>nt,end:()=>ve,eventListeners:()=>le,flip:()=>Ze,hide:()=>Je,left:()=>F,main:()=>zn,modifierPhases:()=>Bi,offset:()=>ti,placements:()=>ye,popper:()=>zt,popperGenerator:()=>Gt,popperOffsets:()=>fe,preventOverflow:()=>ei,read:()=>Hn,reference:()=>Wi,right:()=>Y,start:()=>_t,top:()=>B,variationPlacements:()=>Ue,viewport:()=>Ee,write:()=>Fn});var B="top",K="bottom",Y="right",F="left",_e="auto",St=[B,K,Y,F],_t="start",ve="end",Hi="clippingParents",Ee="viewport",zt="popper",Wi="reference",Ue=St.reduce(function(i,t){return i.concat([t+"-"+_t,t+"-"+ve])},[]),ye=[].concat(St,[_e]).reduce(function(i,t){return i.concat([t,t+"-"+_t,t+"-"+ve])},[]),kn="beforeRead",Hn="read",Wn="afterRead",Bn="beforeMain",zn="main",Vn="afterMain",Yn="beforeWrite",Fn="write",Un="afterWrite",Bi=[kn,Hn,Wn,Bn,zn,Vn,Yn,Fn,Un];function G(i){return i?(i.nodeName||"").toLowerCase():null}function z(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function At(i){var t=z(i).Element;return i instanceof t||i instanceof Element}function U(i){var t=z(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function Ke(i){if(typeof ShadowRoot=="undefined")return!1;var t=z(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function Uo(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},s=t.attributes[e]||{},r=t.elements[e];!U(r)||!G(r)||(Object.assign(r.style,n),Object.keys(s).forEach(function(o){var a=s[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function Ko(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],r=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]),a=o.reduce(function(u,p){return u[p]="",u},{});!U(s)||!G(s)||(Object.assign(s.style,a),Object.keys(r).forEach(function(u){s.removeAttribute(u)}))})}}var re={name:"applyStyles",enabled:!0,phase:"write",fn:Uo,effect:Ko,requires:["computeStyles"]};function X(i){return i.split("-")[0]}var $t=Math.round;function ut(i,t){t===void 0&&(t=!1);var e=i.getBoundingClientRect(),n=1,s=1;return U(i)&&t&&(n=e.width/i.offsetWidth||1,s=e.height/i.offsetHeight||1),{width:$t(e.width/n),height:$t(e.height/s),top:$t(e.top/s),right:$t(e.right/n),bottom:$t(e.bottom/s),left:$t(e.left/n),x:$t(e.left/n),y:$t(e.top/s)}}function Vt(i){var t=ut(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 be(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return!0;if(e&&Ke(e)){var n=t;do{if(n&&i.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function it(i){return z(i).getComputedStyle(i)}function zi(i){return["table","td","th"].indexOf(G(i))>=0}function Q(i){return((At(i)?i.ownerDocument:i.document)||window.document).documentElement}function wt(i){return G(i)==="html"?i:i.assignedSlot||i.parentNode||(Ke(i)?i.host:null)||Q(i)}function Kn(i){return!U(i)||it(i).position==="fixed"?null:i.offsetParent}function qo(i){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,e=navigator.userAgent.indexOf("Trident")!==-1;if(e&&U(i)){var n=it(i);if(n.position==="fixed")return null}for(var s=wt(i);U(s)&&["html","body"].indexOf(G(s))<0;){var r=it(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function gt(i){for(var t=z(i),e=Kn(i);e&&zi(e)&&it(e).position==="static";)e=Kn(e);return e&&(G(e)==="html"||G(e)==="body"&&it(e).position==="static")?t:e||qo(i)||t}function Yt(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}var ft=Math.max,Dt=Math.min,Te=Math.round;function Ft(i,t,e){return ft(i,Dt(t,e))}function Se(){return{top:0,right:0,bottom:0,left:0}}function Ae(i){return Object.assign({},Se(),i)}function we(i,t){return t.reduce(function(e,n){return e[n]=i,e},{})}var Go=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Ae(typeof t!="number"?t:we(t,St))};function Xo(i){var t,e=i.state,n=i.name,s=i.options,r=e.elements.arrow,o=e.modifiersData.popperOffsets,a=X(e.placement),u=Yt(a),p=[F,Y].indexOf(a)>=0,f=p?"height":"width";if(!(!r||!o)){var v=Go(s.padding,e),d=Vt(r),m=u==="y"?B:F,E=u==="y"?K:Y,h=e.rects.reference[f]+e.rects.reference[u]-o[u]-e.rects.popper[f],l=o[u]-e.rects.reference[u],c=gt(r),g=c?u==="y"?c.clientHeight||0:c.clientWidth||0:0,b=h/2-l/2,_=v[m],y=g-d[f]-v[E],w=g/2-d[f]/2+b,O=Ft(_,w,y),S=u;e.modifiersData[n]=(t={},t[S]=O,t.centerOffset=O-w,t)}}function Qo(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)||!be(t.elements.popper,s)||(t.elements.arrow=s))}var qe={name:"arrow",enabled:!0,phase:"main",fn:Xo,effect:Qo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};var Zo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Jo(i){var t=i.x,e=i.y,n=window,s=n.devicePixelRatio||1;return{x:Te(Te(t*s)/s)||0,y:Te(Te(e*s)/s)||0}}function qn(i){var t,e=i.popper,n=i.popperRect,s=i.placement,r=i.offsets,o=i.position,a=i.gpuAcceleration,u=i.adaptive,p=i.roundOffsets,f=p===!0?Jo(r):typeof p=="function"?p(r):r,v=f.x,d=v===void 0?0:v,m=f.y,E=m===void 0?0:m,h=r.hasOwnProperty("x"),l=r.hasOwnProperty("y"),c=F,g=B,b=window;if(u){var _=gt(e),y="clientHeight",w="clientWidth";_===z(e)&&(_=Q(e),it(_).position!=="static"&&(y="scrollHeight",w="scrollWidth")),_=_,s===B&&(g=K,E-=_[y]-n.height,E*=a?1:-1),s===F&&(c=Y,d-=_[w]-n.width,d*=a?1:-1)}var O=Object.assign({position:o},u&&Zo);if(a){var S;return Object.assign({},O,(S={},S[g]=l?"0":"",S[c]=h?"0":"",S.transform=(b.devicePixelRatio||1)<2?"translate("+d+"px, "+E+"px)":"translate3d("+d+"px, "+E+"px, 0)",S))}return Object.assign({},O,(t={},t[g]=l?E+"px":"",t[c]=h?d+"px":"",t.transform="",t))}function tr(i){var t=i.state,e=i.options,n=e.gpuAcceleration,s=n===void 0?!0:n,r=e.adaptive,o=r===void 0?!0:r,a=e.roundOffsets,u=a===void 0?!0:a;if(!1)var p;var f={placement:X(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,qn(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,qn(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 ae={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tr,data:{}};var Ge={passive:!0};function er(i){var t=i.state,e=i.instance,n=i.options,s=n.scroll,r=s===void 0?!0:s,o=n.resize,a=o===void 0?!0:o,u=z(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&p.forEach(function(f){f.addEventListener("scroll",e.update,Ge)}),a&&u.addEventListener("resize",e.update,Ge),function(){r&&p.forEach(function(f){f.removeEventListener("scroll",e.update,Ge)}),a&&u.removeEventListener("resize",e.update,Ge)}}var le={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:er,data:{}};var ir={left:"right",right:"left",bottom:"top",top:"bottom"};function ce(i){return i.replace(/left|right|bottom|top/g,function(t){return ir[t]})}var nr={start:"end",end:"start"};function Xe(i){return i.replace(/start|end/g,function(t){return nr[t]})}function Ut(i){var t=z(i),e=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:e,scrollTop:n}}function Kt(i){return ut(Q(i)).left+Ut(i).scrollLeft}function Vi(i){var t=z(i),e=Q(i),n=t.visualViewport,s=e.clientWidth,r=e.clientHeight,o=0,a=0;return n&&(s=n.width,r=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,a=n.offsetTop)),{width:s,height:r,x:o+Kt(i),y:a}}function Yi(i){var t,e=Q(i),n=Ut(i),s=(t=i.ownerDocument)==null?void 0:t.body,r=ft(e.scrollWidth,e.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=ft(e.scrollHeight,e.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+Kt(i),u=-n.scrollTop;return it(s||e).direction==="rtl"&&(a+=ft(e.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:a,y:u}}function qt(i){var t=it(i),e=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+s+n)}function Qe(i){return["html","body","#document"].indexOf(G(i))>=0?i.ownerDocument.body:U(i)&&qt(i)?i:Qe(wt(i))}function Nt(i,t){var e;t===void 0&&(t=[]);var n=Qe(i),s=n===((e=i.ownerDocument)==null?void 0:e.body),r=z(n),o=s?[r].concat(r.visualViewport||[],qt(n)?n:[]):n,a=t.concat(o);return s?a:a.concat(Nt(wt(o)))}function ue(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function sr(i){var t=ut(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 Gn(i,t){return t===Ee?ue(Vi(i)):U(t)?sr(t):ue(Yi(Q(i)))}function or(i){var t=Nt(wt(i)),e=["absolute","fixed"].indexOf(it(i).position)>=0,n=e&&U(i)?gt(i):i;return At(n)?t.filter(function(s){return At(s)&&be(s,n)&&G(s)!=="body"}):[]}function Fi(i,t,e){var n=t==="clippingParents"?or(i):[].concat(t),s=[].concat(n,[e]),r=s[0],o=s.reduce(function(a,u){var p=Gn(i,u);return a.top=ft(p.top,a.top),a.right=Dt(p.right,a.right),a.bottom=Dt(p.bottom,a.bottom),a.left=ft(p.left,a.left),a},Gn(i,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function vt(i){return i.split("-")[1]}function Oe(i){var t=i.reference,e=i.element,n=i.placement,s=n?X(n):null,r=n?vt(n):null,o=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,u;switch(s){case B:u={x:o,y:t.y-e.height};break;case K:u={x:o,y:t.y+t.height};break;case Y:u={x:t.x+t.width,y:a};break;case F:u={x:t.x-e.width,y:a};break;default:u={x:t.x,y:t.y}}var p=s?Yt(s):null;if(p!=null){var f=p==="y"?"height":"width";switch(r){case _t:u[p]=u[p]-(t[f]/2-e[f]/2);break;case ve:u[p]=u[p]+(t[f]/2-e[f]/2);break;default:}}return u}function nt(i,t){t===void 0&&(t={});var e=t,n=e.placement,s=n===void 0?i.placement:n,r=e.boundary,o=r===void 0?Hi:r,a=e.rootBoundary,u=a===void 0?Ee:a,p=e.elementContext,f=p===void 0?zt:p,v=e.altBoundary,d=v===void 0?!1:v,m=e.padding,E=m===void 0?0:m,h=Ae(typeof E!="number"?E:we(E,St)),l=f===zt?Wi:zt,c=i.elements.reference,g=i.rects.popper,b=i.elements[d?l:f],_=Fi(At(b)?b:b.contextElement||Q(i.elements.popper),o,u),y=ut(c),w=Oe({reference:y,element:g,strategy:"absolute",placement:s}),O=ue(Object.assign({},g,w)),S=f===zt?O:y,L={top:_.top-S.top+h.top,bottom:S.bottom-_.bottom+h.bottom,left:_.left-S.left+h.left,right:S.right-_.right+h.right},R=i.modifiersData.offset;if(f===zt&&R){var C=R[s];Object.keys(L).forEach(function($){var A=[Y,K].indexOf($)>=0?1:-1,N=[B,K].indexOf($)>=0?"y":"x";L[$]+=C[N]*A})}return L}function Ui(i,t){t===void 0&&(t={});var e=t,n=e.placement,s=e.boundary,r=e.rootBoundary,o=e.padding,a=e.flipVariations,u=e.allowedAutoPlacements,p=u===void 0?ye:u,f=vt(n),v=f?a?Ue:Ue.filter(function(E){return vt(E)===f}):St,d=v.filter(function(E){return p.indexOf(E)>=0});d.length===0&&(d=v);var m=d.reduce(function(E,h){return E[h]=nt(i,{placement:h,boundary:s,rootBoundary:r,padding:o})[X(h)],E},{});return Object.keys(m).sort(function(E,h){return m[E]-m[h]})}function rr(i){if(X(i)===_e)return[];var t=ce(i);return[Xe(i),t,Xe(t)]}function ar(i){var t=i.state,e=i.options,n=i.name;if(!t.modifiersData[n]._skip){for(var s=e.mainAxis,r=s===void 0?!0:s,o=e.altAxis,a=o===void 0?!0:o,u=e.fallbackPlacements,p=e.padding,f=e.boundary,v=e.rootBoundary,d=e.altBoundary,m=e.flipVariations,E=m===void 0?!0:m,h=e.allowedAutoPlacements,l=t.options.placement,c=X(l),g=c===l,b=u||(g||!E?[ce(l)]:rr(l)),_=[l].concat(b).reduce(function(rt,J){return rt.concat(X(J)===_e?Ui(t,{placement:J,boundary:f,rootBoundary:v,padding:p,flipVariations:E,allowedAutoPlacements:h}):J)},[]),y=t.rects.reference,w=t.rects.popper,O=new Map,S=!0,L=_[0],R=0;R<_.length;R++){var C=_[R],$=X(C),A=vt(C)===_t,N=[B,K].indexOf($)>=0,D=N?"width":"height",I=nt(t,{placement:C,boundary:f,rootBoundary:v,altBoundary:d,padding:p}),x=N?A?Y:F:A?K:B;y[D]>w[D]&&(x=ce(x));var j=ce(x),k=[];if(r&&k.push(I[$]<=0),a&&k.push(I[x]<=0,I[j]<=0),k.every(function(rt){return rt})){L=C,S=!1;break}O.set(C,k)}if(S)for(var H=E?3:1,V=function(J){var mt=_.find(function(q){var et=O.get(q);if(et)return et.slice(0,J).every(function(Ht){return Ht})});if(mt)return L=mt,"break"},tt=H;tt>0;tt--){var st=V(tt);if(st==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}var Ze={name:"flip",enabled:!0,phase:"main",fn:ar,requiresIfExists:["offset"],data:{_skip:!1}};function Xn(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 Qn(i){return[B,Y,K,F].some(function(t){return i[t]>=0})}function lr(i){var t=i.state,e=i.name,n=t.rects.reference,s=t.rects.popper,r=t.modifiersData.preventOverflow,o=nt(t,{elementContext:"reference"}),a=nt(t,{altBoundary:!0}),u=Xn(o,n),p=Xn(a,s,r),f=Qn(u),v=Qn(p);t.modifiersData[e]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":v})}var Je={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:lr};function cr(i,t,e){var n=X(i),s=[F,B].indexOf(n)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:i})):e,o=r[0],a=r[1];return o=o||0,a=(a||0)*s,[F,Y].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function ur(i){var t=i.state,e=i.options,n=i.name,s=e.offset,r=s===void 0?[0,0]:s,o=ye.reduce(function(f,v){return f[v]=cr(v,t.rects,r),f},{}),a=o[t.placement],u=a.x,p=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=o}var ti={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ur};function fr(i){var t=i.state,e=i.name;t.modifiersData[e]=Oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var fe={name:"popperOffsets",enabled:!0,phase:"read",fn:fr,data:{}};function Ki(i){return i==="x"?"y":"x"}function dr(i){var t=i.state,e=i.options,n=i.name,s=e.mainAxis,r=s===void 0?!0:s,o=e.altAxis,a=o===void 0?!1:o,u=e.boundary,p=e.rootBoundary,f=e.altBoundary,v=e.padding,d=e.tether,m=d===void 0?!0:d,E=e.tetherOffset,h=E===void 0?0:E,l=nt(t,{boundary:u,rootBoundary:p,padding:v,altBoundary:f}),c=X(t.placement),g=vt(t.placement),b=!g,_=Yt(c),y=Ki(_),w=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,L=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,R={x:0,y:0};if(!!w){if(r||a){var C=_==="y"?B:F,$=_==="y"?K:Y,A=_==="y"?"height":"width",N=w[_],D=w[_]+l[C],I=w[_]-l[$],x=m?-S[A]/2:0,j=g===_t?O[A]:S[A],k=g===_t?-S[A]:-O[A],H=t.elements.arrow,V=m&&H?Vt(H):{width:0,height:0},tt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Se(),st=tt[C],rt=tt[$],J=Ft(0,O[A],V[A]),mt=b?O[A]/2-x-J-st-L:j-J-st-L,q=b?-O[A]/2+x+J+rt+L:k+J+rt+L,et=t.elements.arrow&&gt(t.elements.arrow),Ht=et?_==="y"?et.clientTop||0:et.clientLeft||0:0,Wt=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,Sn=w[_]+mt-Wt-Ht,An=w[_]+q-Wt;if(r){var wn=Ft(m?Dt(D,Sn):D,N,m?ft(I,An):I);w[_]=wn,R[_]=wn-N}if(a){var Po=_==="x"?B:F,Ro=_==="x"?K:Y,Ye=w[y],On=Ye+l[Po],Cn=Ye-l[Ro],$n=Ft(m?Dt(On,Sn):On,Ye,m?ft(Cn,An):Cn);w[y]=$n,R[y]=$n-Ye}}t.modifiersData[n]=R}}var ei={name:"preventOverflow",enabled:!0,phase:"main",fn:dr,requiresIfExists:["offset"]};function qi(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Gi(i){return i===z(i)||!U(i)?Ut(i):qi(i)}function hr(i){var t=i.getBoundingClientRect(),e=t.width/i.offsetWidth||1,n=t.height/i.offsetHeight||1;return e!==1||n!==1}function Xi(i,t,e){e===void 0&&(e=!1);var n=U(t),s=U(t)&&hr(t),r=Q(t),o=ut(i,s),a={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!e)&&((G(t)!=="body"||qt(r))&&(a=Gi(t)),U(t)?(u=ut(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=Kt(r))),{x:o.left+a.scrollLeft-u.x,y:o.top+a.scrollTop-u.y,width:o.width,height:o.height}}function pr(i){var t=new Map,e=new Set,n=[];i.forEach(function(r){t.set(r.name,r)});function s(r){e.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!e.has(a)){var u=t.get(a);u&&s(u)}}),n.push(r)}return i.forEach(function(r){e.has(r.name)||s(r)}),n}function Qi(i){var t=pr(i);return Bi.reduce(function(e,n){return e.concat(t.filter(function(s){return s.phase===n}))},[])}function Zi(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i())})})),t}}function Ji(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 Zn={placement:"bottom",modifiers:[],strategy:"absolute"};function Jn(){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 Gt(i){i===void 0&&(i={});var t=i,e=t.defaultModifiers,n=e===void 0?[]:e,s=t.defaultOptions,r=s===void 0?Zn:s;return function(a,u,p){p===void 0&&(p=r);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zn,r),modifiersData:{},elements:{reference:a,popper:u},attributes:{},styles:{}},v=[],d=!1,m={state:f,setOptions:function(c){h(),f.options=Object.assign({},r,f.options,c),f.scrollParents={reference:At(a)?Nt(a):a.contextElement?Nt(a.contextElement):[],popper:Nt(u)};var g=Qi(Ji([].concat(n,f.options.modifiers)));if(f.orderedModifiers=g.filter(function(R){return R.enabled}),!1){var b;if(getBasePlacement(f.options.placement)===auto)var _;var y,w,O,S,L}return E(),m.update()},forceUpdate:function(){if(!d){var c=f.elements,g=c.reference,b=c.popper;if(!!Jn(g,b)){f.rects={reference:Xi(g,gt(b),f.options.strategy==="fixed"),popper:Vt(b)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(C){return f.modifiersData[C.name]=Object.assign({},C.data)});for(var _=0,y=0;y<f.orderedModifiers.length;y++){if(f.reset===!0){f.reset=!1,y=-1;continue}var w=f.orderedModifiers[y],O=w.fn,S=w.options,L=S===void 0?{}:S,R=w.name;typeof O=="function"&&(f=O({state:f,options:L,name:R,instance:m})||f)}}}},update:Zi(function(){return new Promise(function(l){m.forceUpdate(),l(f)})}),destroy:function(){h(),d=!0}};if(!Jn(a,u))return m;m.setOptions(p).then(function(l){!d&&p.onFirstUpdate&&p.onFirstUpdate(l)});function E(){f.orderedModifiers.forEach(function(l){var c=l.name,g=l.options,b=g===void 0?{}:g,_=l.effect;if(typeof _=="function"){var y=_({state:f,name:c,instance:m,options:b}),w=function(){};v.push(y||w)}})}function h(){v.forEach(function(l){return l()}),v=[]}return m}}var ts=Gt();var mr=[le,fe,ae,re],es=Gt({defaultModifiers:mr});var gr=[le,fe,ae,re,ti,Ze,ei,qe,Je],ii=Gt({defaultModifiers:gr});var _r=1e6,vr=1e3,tn="transitionend",Er=i=>i==null?`${i}`:{}.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),yr=i=>{do i+=Math.floor(Math.random()*_r);while(document.getElementById(i));return i},is=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},en=i=>{let t=is(i);return t&&document.querySelector(t)?t:null},xt=i=>{let t=is(i);return t?document.querySelector(t):null},br=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))*vr)},ns=i=>{i.dispatchEvent(new Event(tn))},Xt=i=>!i||typeof i!="object"?!1:(typeof i.jquery!="undefined"&&(i=i[0]),typeof i.nodeType!="undefined"),Lt=i=>Xt(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?document.querySelector(i):null,Et=(i,t,e)=>{Object.keys(e).forEach(n=>{let s=e[n],r=t[n],o=r&&Xt(r)?"element":Er(r);if(!new RegExp(s).test(o))throw new TypeError(`${i.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)})},Ce=i=>!Xt(i)||i.getClientRects().length===0?!1:getComputedStyle(i).getPropertyValue("visibility")==="visible",Qt=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",ss=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?ss(i.parentNode):null},si=()=>{},de=i=>{i.offsetHeight},os=()=>{let{jQuery:i}=window;return i&&!document.body.hasAttribute("data-bs-no-jquery")?i:null},nn=[],Tr=i=>{document.readyState==="loading"?(nn.length||document.addEventListener("DOMContentLoaded",()=>{nn.forEach(t=>t())}),nn.push(i)):i()},ot=()=>document.documentElement.dir==="rtl",dt=i=>{Tr(()=>{let t=os();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)}})},Zt=i=>{typeof i=="function"&&i()},rs=(i,t,e=!0)=>{if(!e){Zt(i);return}let n=5,s=br(t)+n,r=!1,o=({target:a})=>{a===t&&(r=!0,t.removeEventListener(tn,o),Zt(i))};t.addEventListener(tn,o),setTimeout(()=>{r||ns(t)},s)},as=(i,t,e,n)=>{let s=i.indexOf(t);if(s===-1)return i[!e&&n?i.length-1:0];let r=i.length;return s+=e?1:-1,n&&(s=(s+r)%r),i[Math.max(0,Math.min(s,r-1))]},Sr=/[^.]*(?=\..*)\.|.*/,Ar=/\..*/,wr=/::\d+$/,sn={},ls=1,Or={mouseenter:"mouseover",mouseleave:"mouseout"},Cr=/^(mouseenter|mouseleave)/i,cs=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 us(i,t){return t&&`${t}::${ls++}`||i.uidEvent||ls++}function fs(i){let t=us(i);return i.uidEvent=t,sn[t]=sn[t]||{},sn[t]}function $r(i,t){return function e(n){return n.delegateTarget=i,e.oneOff&&T.off(i,n.type,t),t.apply(i,[n])}}function Dr(i,t,e){return function n(s){let r=i.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(let a=r.length;a--;)if(r[a]===o)return s.delegateTarget=o,n.oneOff&&T.off(i,s.type,t,e),e.apply(o,[s]);return null}}function ds(i,t,e=null){let n=Object.keys(i);for(let s=0,r=n.length;s<r;s++){let o=i[n[s]];if(o.originalHandler===t&&o.delegationSelector===e)return o}return null}function hs(i,t,e){let n=typeof t=="string",s=n?e:t,r=ms(i);return cs.has(r)||(r=i),[n,s,r]}function ps(i,t,e,n,s){if(typeof t!="string"||!i)return;if(e||(e=n,n=null),Cr.test(t)){let m=E=>function(h){if(!h.relatedTarget||h.relatedTarget!==h.delegateTarget&&!h.delegateTarget.contains(h.relatedTarget))return E.call(this,h)};n?n=m(n):e=m(e)}let[r,o,a]=hs(t,e,n),u=fs(i),p=u[a]||(u[a]={}),f=ds(p,o,r?e:null);if(f){f.oneOff=f.oneOff&&s;return}let v=us(o,t.replace(Sr,"")),d=r?Dr(i,e,n):$r(i,e);d.delegationSelector=r?e:null,d.originalHandler=o,d.oneOff=s,d.uidEvent=v,p[v]=d,i.addEventListener(a,d,r)}function on(i,t,e,n,s){let r=ds(t[e],n,s);!r||(i.removeEventListener(e,r,Boolean(s)),delete t[e][r.uidEvent])}function Nr(i,t,e,n){let s=t[e]||{};Object.keys(s).forEach(r=>{if(r.includes(n)){let o=s[r];on(i,t,e,o.originalHandler,o.delegationSelector)}})}function ms(i){return i=i.replace(Ar,""),Or[i]||i}var T={on(i,t,e,n){ps(i,t,e,n,!1)},one(i,t,e,n){ps(i,t,e,n,!0)},off(i,t,e,n){if(typeof t!="string"||!i)return;let[s,r,o]=hs(t,e,n),a=o!==t,u=fs(i),p=t.startsWith(".");if(typeof r!="undefined"){if(!u||!u[o])return;on(i,u,o,r,s?e:null);return}p&&Object.keys(u).forEach(v=>{Nr(i,u,v,t.slice(1))});let f=u[o]||{};Object.keys(f).forEach(v=>{let d=v.replace(wr,"");if(!a||t.includes(d)){let m=f[v];on(i,u,o,m.originalHandler,m.delegationSelector)}})},trigger(i,t,e){if(typeof t!="string"||!i)return null;let n=os(),s=ms(t),r=t!==s,o=cs.has(s),a,u=!0,p=!0,f=!1,v=null;return r&&n&&(a=n.Event(t,e),n(i).trigger(a),u=!a.isPropagationStopped(),p=!a.isImmediatePropagationStopped(),f=a.isDefaultPrevented()),o?(v=document.createEvent("HTMLEvents"),v.initEvent(s,u,!0)):v=new CustomEvent(t,{bubbles:u,cancelable:!0}),typeof e!="undefined"&&Object.keys(e).forEach(d=>{Object.defineProperty(v,d,{get(){return e[d]}})}),f&&v.preventDefault(),p&&i.dispatchEvent(v),v.defaultPrevented&&typeof a!="undefined"&&a.preventDefault(),v}},Mt=new Map,$e={set(i,t,e){Mt.has(i)||Mt.set(i,new Map);let n=Mt.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 Mt.has(i)&&Mt.get(i).get(t)||null},remove(i,t){if(!Mt.has(i))return;let e=Mt.get(i);e.delete(t),e.size===0&&Mt.delete(i)}},xr="5.1.0",ht=class{constructor(t){t=Lt(t),!!t&&(this._element=t,$e.set(this._element,this.constructor.DATA_KEY,this))}dispose(){$e.remove(this._element,this.constructor.DATA_KEY),T.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,n=!0){rs(t,e,n)}static getInstance(t){return $e.get(Lt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return xr}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}`}},oi=(i,t="hide")=>{let e=`click.dismiss${i.EVENT_KEY}`,n=i.NAME;T.on(document,e,`[data-bs-dismiss="${n}"]`,function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),Qt(this))return;let r=xt(this)||this.closest(`.${n}`);i.getOrCreateInstance(r)[t]()})},Lr="alert",Mr="bs.alert",gs=`.${Mr}`,Ir=`close${gs}`,Pr=`closed${gs}`,Rr="fade",jr="show",De=class extends ht{static get NAME(){return Lr}close(){if(T.trigger(this._element,Ir).defaultPrevented)return;this._element.classList.remove(jr);let e=this._element.classList.contains(Rr);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),T.trigger(this._element,Pr),this.dispose()}static jQueryInterface(t){return this.each(function(){let e=De.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};oi(De,"close");dt(De);var kr="button",Hr="bs.button",Wr=`.${Hr}`,Br=".data-api",zr="active",_s='[data-bs-toggle="button"]',Vr=`click${Wr}${Br}`,Ne=class extends ht{static get NAME(){return kr}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(zr))}static jQueryInterface(t){return this.each(function(){let e=Ne.getOrCreateInstance(this);t==="toggle"&&e[t]()})}};T.on(document,Vr,_s,i=>{i.preventDefault();let t=i.target.closest(_s);Ne.getOrCreateInstance(t).toggle()});dt(Ne);function vs(i){return i==="true"?!0:i==="false"?!1:i===Number(i).toString()?Number(i):i===""||i==="null"?null:i}function rn(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var Z={setDataAttribute(i,t,e){i.setAttribute(`data-bs-${rn(t)}`,e)},removeDataAttribute(i,t){i.removeAttribute(`data-bs-${rn(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]=vs(i.dataset[e])}),t},getDataAttribute(i,t){return vs(i.getAttribute(`data-bs-${rn(t)}`))},offset(i){let t=i.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position(i){return{top:i.offsetTop,left:i.offsetLeft}}},Yr=3,M={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!==Yr;)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[]},focusableChildren(i){let t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(", ");return this.find(t,i).filter(e=>!Qt(e)&&Ce(e))}},Es="carousel",Fr="bs.carousel",lt=`.${Fr}`,ys=".data-api",Ur="ArrowLeft",Kr="ArrowRight",qr=500,Gr=40,bs={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Xr={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Jt="next",te="prev",ee="left",xe="right",Qr={[Ur]:xe,[Kr]:ee},Zr=`slide${lt}`,Ts=`slid${lt}`,Jr=`keydown${lt}`,ta=`mouseenter${lt}`,ea=`mouseleave${lt}`,ia=`touchstart${lt}`,na=`touchmove${lt}`,sa=`touchend${lt}`,oa=`pointerdown${lt}`,ra=`pointerup${lt}`,aa=`dragstart${lt}`,la=`load${lt}${ys}`,ca=`click${lt}${ys}`,ua="carousel",ie="active",fa="slide",da="carousel-item-end",ha="carousel-item-start",pa="carousel-item-next",ma="carousel-item-prev",ga="pointer-event",_a=".active",ri=".active.carousel-item",va=".carousel-item",Ea=".carousel-item img",ya=".carousel-item-next, .carousel-item-prev",ba=".carousel-indicators",Ta="[data-bs-target]",Sa="[data-bs-slide], [data-bs-slide-to]",Aa='[data-bs-ride="carousel"]',Ss="touch",As="pen",yt=class extends ht{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=M.findOne(ba,this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return bs}static get NAME(){return Es}next(){this._slide(Jt)}nextWhenVisible(){!document.hidden&&Ce(this._element)&&this.next()}prev(){this._slide(te)}pause(t){t||(this._isPaused=!0),M.findOne(ya,this._element)&&(ns(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=M.findOne(ri,this._element);let e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding){T.one(this._element,Ts,()=>this.to(t));return}if(e===t){this.pause(),this.cycle();return}let n=t>e?Jt:te;this._slide(n,this._items[t])}_getConfig(t){return t=P(P(P({},bs),Z.getDataAttributes(this._element)),typeof t=="object"?t:{}),Et(Es,t,Xr),t}_handleSwipe(){let t=Math.abs(this.touchDeltaX);if(t<=Gr)return;let e=t/this.touchDeltaX;this.touchDeltaX=0,!!e&&this._slide(e>0?xe:ee)}_addEventListeners(){this._config.keyboard&&T.on(this._element,Jr,t=>this._keydown(t)),this._config.pause==="hover"&&(T.on(this._element,ta,t=>this.pause(t)),T.on(this._element,ea,t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){let t=s=>{this._pointerEvent&&(s.pointerType===As||s.pointerType===Ss)?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===As||s.pointerType===Ss)&&(this.touchDeltaX=s.clientX-this.touchStartX),this._handleSwipe(),this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(r=>this.cycle(r),qr+this._config.interval))};M.find(Ea,this._element).forEach(s=>{T.on(s,aa,r=>r.preventDefault())}),this._pointerEvent?(T.on(this._element,oa,s=>t(s)),T.on(this._element,ra,s=>n(s)),this._element.classList.add(ga)):(T.on(this._element,ia,s=>t(s)),T.on(this._element,na,s=>e(s)),T.on(this._element,sa,s=>n(s)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=Qr[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?M.find(va,t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){let n=t===Jt;return as(this._items,e,n,this._config.wrap)}_triggerSlideEvent(t,e){let n=this._getItemIndex(t),s=this._getItemIndex(M.findOne(ri,this._element));return T.trigger(this._element,Zr,{relatedTarget:t,direction:e,from:s,to:n})}_setActiveIndicatorElement(t){if(this._indicatorsElement){let e=M.findOne(_a,this._indicatorsElement);e.classList.remove(ie),e.removeAttribute("aria-current");let n=M.find(Ta,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(ie),n[s].setAttribute("aria-current","true");break}}}_updateInterval(){let t=this._activeElement||M.findOne(ri,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=M.findOne(ri,this._element),r=this._getItemIndex(s),o=e||this._getItemByOrder(n,s),a=this._getItemIndex(o),u=Boolean(this._interval),p=n===Jt,f=p?ha:da,v=p?pa:ma,d=this._orderToDirection(n);if(o&&o.classList.contains(ie)){this._isSliding=!1;return}if(this._isSliding||this._triggerSlideEvent(o,d).defaultPrevented||!s||!o)return;this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;let E=()=>{T.trigger(this._element,Ts,{relatedTarget:o,direction:d,from:r,to:a})};if(this._element.classList.contains(fa)){o.classList.add(v),de(o),s.classList.add(f),o.classList.add(f);let h=()=>{o.classList.remove(f,v),o.classList.add(ie),s.classList.remove(ie,v,f),this._isSliding=!1,setTimeout(E,0)};this._queueCallback(h,s,!0)}else s.classList.remove(ie),o.classList.add(ie),this._isSliding=!1,E();u&&this.cycle()}_directionToOrder(t){return[xe,ee].includes(t)?ot()?t===ee?te:Jt:t===ee?Jt:te:t}_orderToDirection(t){return[Jt,te].includes(t)?ot()?t===te?ee:xe:t===te?xe:ee:t}static carouselInterface(t,e){let n=yt.getOrCreateInstance(t,e),{_config:s}=n;typeof e=="object"&&(s=P(P({},s),e));let r=typeof e=="string"?e:s.slide;if(typeof e=="number")n.to(e);else if(typeof r=="string"){if(typeof n[r]=="undefined")throw new TypeError(`No method named "${r}"`);n[r]()}else s.interval&&s.ride&&(n.pause(),n.cycle())}static jQueryInterface(t){return this.each(function(){yt.carouselInterface(this,t)})}static dataApiClickHandler(t){let e=xt(this);if(!e||!e.classList.contains(ua))return;let n=P(P({},Z.getDataAttributes(e)),Z.getDataAttributes(this)),s=this.getAttribute("data-bs-slide-to");s&&(n.interval=!1),yt.carouselInterface(e,n),s&&yt.getInstance(e).to(s),t.preventDefault()}};T.on(document,ca,Sa,yt.dataApiClickHandler);T.on(window,la,()=>{let i=M.find(Aa);for(let t=0,e=i.length;t<e;t++)yt.carouselInterface(i[t],yt.getInstance(i[t]))});dt(yt);var ws="collapse",Os="bs.collapse",Le=`.${Os}`,wa=".data-api",Cs={toggle:!0,parent:null},Oa={toggle:"boolean",parent:"(null|element)"},Ca=`show${Le}`,$a=`shown${Le}`,Da=`hide${Le}`,Na=`hidden${Le}`,xa=`click${Le}${wa}`,an="show",It="collapse",ai="collapsing",$s="collapsed",La="collapse-horizontal",Ma="width",Ia="height",Pa=".show, .collapsing",ln='[data-bs-toggle="collapse"]',Ot=class extends ht{constructor(t,e){super(t);this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=[];let n=M.find(ln);for(let s=0,r=n.length;s<r;s++){let o=n[s],a=en(o),u=M.find(a).filter(p=>p===this._element);a!==null&&u.length&&(this._selector=a,this._triggerArray.push(o))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Cs}static get NAME(){return ws}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[],e;if(this._config.parent){let p=M.find(`.${It} .${It}`,this._config.parent);t=M.find(Pa,this._config.parent).filter(f=>!p.includes(f))}let n=M.findOne(this._selector);if(t.length){let p=t.find(f=>n!==f);if(e=p?Ot.getInstance(p):null,e&&e._isTransitioning)return}if(T.trigger(this._element,Ca).defaultPrevented)return;t.forEach(p=>{n!==p&&Ot.getOrCreateInstance(p,{toggle:!1}).hide(),e||$e.set(p,Os,null)});let r=this._getDimension();this._element.classList.remove(It),this._element.classList.add(ai),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let o=()=>{this._isTransitioning=!1,this._element.classList.remove(ai),this._element.classList.add(It,an),this._element.style[r]="",T.trigger(this._element,$a)},u=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[u]}px`}hide(){if(this._isTransitioning||!this._isShown()||T.trigger(this._element,Da).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,de(this._element),this._element.classList.add(ai),this._element.classList.remove(It,an);let n=this._triggerArray.length;for(let r=0;r<n;r++){let o=this._triggerArray[r],a=xt(o);a&&!this._isShown(a)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;let s=()=>{this._isTransitioning=!1,this._element.classList.remove(ai),this._element.classList.add(It),T.trigger(this._element,Na)};this._element.style[e]="",this._queueCallback(s,this._element,!0)}_isShown(t=this._element){return t.classList.contains(an)}_getConfig(t){return t=P(P(P({},Cs),Z.getDataAttributes(this._element)),t),t.toggle=Boolean(t.toggle),t.parent=Lt(t.parent),Et(ws,t,Oa),t}_getDimension(){return this._element.classList.contains(La)?Ma:Ia}_initializeChildren(){if(!this._config.parent)return;let t=M.find(`.${It} .${It}`,this._config.parent);M.find(ln,this._config.parent).filter(e=>!t.includes(e)).forEach(e=>{let n=xt(e);n&&this._addAriaAndCollapsedClass([e],this._isShown(n))})}_addAriaAndCollapsedClass(t,e){!t.length||t.forEach(n=>{e?n.classList.remove($s):n.classList.add($s),n.setAttribute("aria-expanded",e)})}static jQueryInterface(t){return this.each(function(){let e={};typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1);let n=Ot.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t]()}})}};T.on(document,xa,ln,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();let t=en(this);M.find(t).forEach(n=>{Ot.getOrCreateInstance(n,{toggle:!1}).toggle()})});dt(Ot);var cn="dropdown",Ra="bs.dropdown",ne=`.${Ra}`,un=".data-api",li="Escape",Ds="Space",Ns="Tab",fn="ArrowUp",ci="ArrowDown",ja=2,ka=new RegExp(`${fn}|${ci}|${li}`),Ha=`hide${ne}`,Wa=`hidden${ne}`,Ba=`show${ne}`,za=`shown${ne}`,xs=`click${ne}${un}`,Ls=`keydown${ne}${un}`,Va=`keyup${ne}${un}`,he="show",Ya="dropup",Fa="dropend",Ua="dropstart",Ka="navbar",Me='[data-bs-toggle="dropdown"]',dn=".dropdown-menu",qa=".navbar-nav",Ga=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Xa=ot()?"top-end":"top-start",Qa=ot()?"top-start":"top-end",Za=ot()?"bottom-end":"bottom-start",Ja=ot()?"bottom-start":"bottom-end",tl=ot()?"left-start":"right-start",el=ot()?"right-start":"left-start",il={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},nl={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"},ct=class extends ht{constructor(t,e){super(t);this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return il}static get DefaultType(){return nl}static get NAME(){return cn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Qt(this._element)||this._isShown(this._menu))return;let t={relatedTarget:this._element};if(T.trigger(this._element,Ba,t).defaultPrevented)return;let n=ct.getParentFromElement(this._element);this._inNavbar?Z.setDataAttribute(this._menu,"popper","none"):this._createPopper(n),"ontouchstart"in document.documentElement&&!n.closest(qa)&&[].concat(...document.body.children).forEach(s=>T.on(s,"mouseover",si)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(he),this._element.classList.add(he),T.trigger(this._element,za,t)}hide(){if(Qt(this._element)||!this._isShown(this._menu))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()}_completeHide(t){T.trigger(this._element,Ha,t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(n=>T.off(n,"mouseover",si)),this._popper&&this._popper.destroy(),this._menu.classList.remove(he),this._element.classList.remove(he),this._element.setAttribute("aria-expanded","false"),Z.removeDataAttribute(this._menu,"popper"),T.trigger(this._element,Wa,t))}_getConfig(t){if(t=P(P(P({},this.constructor.Default),Z.getDataAttributes(this._element)),t),Et(cn,t,this.constructor.DefaultType),typeof t.reference=="object"&&!Xt(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${cn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(typeof ni=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=t:Xt(this._config.reference)?e=Lt(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);let n=this._getPopperConfig(),s=n.modifiers.find(r=>r.name==="applyStyles"&&r.enabled===!1);this._popper=ii(e,this._menu,n),s&&Z.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(he)}_getMenuElement(){return M.next(this._element,dn)[0]}_getPlacement(){let t=this._element.parentNode;if(t.classList.contains(Fa))return tl;if(t.classList.contains(Ua))return el;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Ya)?e?Qa:Xa:e?Ja:Za}_detectNavbar(){return this._element.closest(`.${Ka}`)!==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}]),P(P({},t),typeof this._config.popperConfig=="function"?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:e}){let n=M.find(Ga,this._menu).filter(Ce);!n.length||as(n,e,t===ci,!n.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){let e=ct.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t&&(t.button===ja||t.type==="keyup"&&t.key!==Ns))return;let e=M.find(Me);for(let n=0,s=e.length;n<s;n++){let r=ct.getInstance(e[n]);if(!r||r._config.autoClose===!1||!r._isShown())continue;let o={relatedTarget:r._element};if(t){let a=t.composedPath(),u=a.includes(r._menu);if(a.includes(r._element)||r._config.autoClose==="inside"&&!u||r._config.autoClose==="outside"&&u||r._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Ns||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;t.type==="click"&&(o.clickEvent=t)}r._completeHide(o)}}static getParentFromElement(t){return xt(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===Ds||t.key!==li&&(t.key!==ci&&t.key!==fn||t.target.closest(dn)):!ka.test(t.key))return;let e=this.classList.contains(he);if(!e&&t.key===li||(t.preventDefault(),t.stopPropagation(),Qt(this)))return;let n=this.matches(Me)?this:M.prev(this,Me)[0],s=ct.getOrCreateInstance(n);if(t.key===li){s.hide();return}if(t.key===fn||t.key===ci){e||s.show(),s._selectMenuItem(t);return}(!e||t.key===Ds)&&ct.clearMenus()}};T.on(document,Ls,Me,ct.dataApiKeydownHandler);T.on(document,Ls,dn,ct.dataApiKeydownHandler);T.on(document,xs,ct.clearMenus);T.on(document,Va,ct.clearMenus);T.on(document,xs,Me,function(i){i.preventDefault(),ct.getOrCreateInstance(this).toggle()});dt(ct);var Ms=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Is=".sticky-top",ui=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(Ms,"paddingRight",e=>e+t),this._setElementAttributes(Is,"marginRight",e=>e-t)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,n){let s=this.getWidth(),r=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+s)return;this._saveInitialAttribute(o,e);let a=window.getComputedStyle(o)[e];o.style[e]=`${n(Number.parseFloat(a))}px`};this._applyManipulationCallback(t,r)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(Ms,"paddingRight"),this._resetElementAttributes(Is,"marginRight")}_saveInitialAttribute(t,e){let n=t.style[e];n&&Z.setDataAttribute(t,e,n)}_resetElementAttributes(t,e){let n=s=>{let r=Z.getDataAttribute(s,e);typeof r=="undefined"?s.style.removeProperty(e):(Z.removeDataAttribute(s,e),s.style[e]=r)};this._applyManipulationCallback(t,n)}_applyManipulationCallback(t,e){Xt(t)?e(t):M.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}},sl={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},ol={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},Ps="backdrop",rl="fade",Rs="show",js=`mousedown.bs.${Ps}`,hn=class{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){if(!this._config.isVisible){Zt(t);return}this._append(),this._config.isAnimated&&de(this._getElement()),this._getElement().classList.add(Rs),this._emulateAnimation(()=>{Zt(t)})}hide(t){if(!this._config.isVisible){Zt(t);return}this._getElement().classList.remove(Rs),this._emulateAnimation(()=>{this.dispose(),Zt(t)})}_getElement(){if(!this._element){let t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(rl),this._element=t}return this._element}_getConfig(t){return t=P(P({},sl),typeof t=="object"?t:{}),t.rootElement=Lt(t.rootElement),Et(Ps,t,ol),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),T.on(this._getElement(),js,()=>{Zt(this._config.clickCallback)}),this._isAppended=!0)}dispose(){!this._isAppended||(T.off(this._element,js),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){rs(t,this._getElement(),this._config.isAnimated)}},al={trapElement:null,autofocus:!0},ll={trapElement:"element",autofocus:"boolean"},cl="focustrap",ul="bs.focustrap",fi=`.${ul}`,fl=`focusin${fi}`,dl=`keydown.tab${fi}`,hl="Tab",pl="forward",ks="backward",pn=class{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){let{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),T.off(document,fi),T.on(document,fl,n=>this._handleFocusin(n)),T.on(document,dl,n=>this._handleKeydown(n)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,T.off(document,fi))}_handleFocusin(t){let{target:e}=t,{trapElement:n}=this._config;if(e===document||e===n||n.contains(e))return;let s=M.focusableChildren(n);s.length===0?n.focus():this._lastTabNavDirection===ks?s[s.length-1].focus():s[0].focus()}_handleKeydown(t){t.key===hl&&(this._lastTabNavDirection=t.shiftKey?ks:pl)}_getConfig(t){return t=P(P({},al),typeof t=="object"?t:{}),Et(cl,t,ll),t}},Hs="modal",ml="bs.modal",pt=`.${ml}`,gl=".data-api",Ws="Escape",Bs={backdrop:!0,keyboard:!0,focus:!0},_l={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},vl=`hide${pt}`,El=`hidePrevented${pt}`,zs=`hidden${pt}`,Vs=`show${pt}`,yl=`shown${pt}`,Ys=`resize${pt}`,Fs=`click.dismiss${pt}`,Us=`keydown.dismiss${pt}`,bl=`mouseup.dismiss${pt}`,Ks=`mousedown.dismiss${pt}`,Tl=`click${pt}${gl}`,qs="modal-open",Sl="fade",Gs="show",mn="modal-static",Al=".modal-dialog",wl=".modal-body",Ol='[data-bs-toggle="modal"]',Pt=class extends ht{constructor(t,e){super(t);this._config=this._getConfig(e),this._dialog=M.findOne(Al,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new ui}static get Default(){return Bs}static get NAME(){return Hs}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||T.trigger(this._element,Vs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(qs),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),T.on(this._dialog,Ks,()=>{T.one(this._element,bl,n=>{n.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning||T.trigger(this._element,vl).defaultPrevented)return;this._isShown=!1;let e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(Gs),T.off(this._element,Fs),T.off(this._dialog,Ks),this._queueCallback(()=>this._hideModal(),this._element,e)}dispose(){[window,this._dialog].forEach(t=>T.off(t,pt)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new hn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new pn({trapElement:this._element})}_getConfig(t){return t=P(P(P({},Bs),Z.getDataAttributes(this._element)),typeof t=="object"?t:{}),Et(Hs,t,_l),t}_showElement(t){let e=this._isAnimated(),n=M.findOne(wl,this._dialog);(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE)&&document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,n&&(n.scrollTop=0),e&&de(this._element),this._element.classList.add(Gs);let s=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,T.trigger(this._element,yl,{relatedTarget:t})};this._queueCallback(s,this._dialog,e)}_setEscapeEvent(){this._isShown?T.on(this._element,Us,t=>{this._config.keyboard&&t.key===Ws?(t.preventDefault(),this.hide()):!this._config.keyboard&&t.key===Ws&&this._triggerBackdropTransition()}):T.off(this._element,Us)}_setResizeEvent(){this._isShown?T.on(window,Ys,()=>this._adjustDialog()):T.off(window,Ys)}_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(qs),this._resetAdjustments(),this._scrollBar.reset(),T.trigger(this._element,zs)})}_showBackdrop(t){T.on(this._element,Fs,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(Sl)}_triggerBackdropTransition(){if(T.trigger(this._element,El).defaultPrevented)return;let{classList:e,scrollHeight:n,style:s}=this._element,r=n>document.documentElement.clientHeight;!r&&s.overflowY==="hidden"||e.contains(mn)||(r||(s.overflowY="hidden"),e.add(mn),this._queueCallback(()=>{e.remove(mn),r||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&&!ot()||n&&!t&&ot())&&(this._element.style.paddingLeft=`${e}px`),(n&&!t&&!ot()||!n&&t&&ot())&&(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=Pt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]=="undefined")throw new TypeError(`No method named "${t}"`);n[t](e)}})}};T.on(document,Tl,Ol,function(i){let t=xt(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),T.one(t,Vs,n=>{n.defaultPrevented||T.one(t,zs,()=>{Ce(this)&&this.focus()})}),Pt.getOrCreateInstance(t).toggle(this)});oi(Pt);dt(Pt);var Xs="offcanvas",Cl="bs.offcanvas",se=`.${Cl}`,Qs=".data-api",$l=`load${se}${Qs}`,Dl="Escape",Zs={backdrop:!0,keyboard:!0,scroll:!1},Nl={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Js="show",xl="offcanvas-backdrop",to=".offcanvas.show",Ll=`show${se}`,Ml=`shown${se}`,Il=`hide${se}`,eo=`hidden${se}`,Pl=`click${se}${Qs}`,Rl=`keydown.dismiss${se}`,jl='[data-bs-toggle="offcanvas"]',Rt=class extends ht{constructor(t,e){super(t);this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Xs}static get Default(){return Zs}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||T.trigger(this._element,Ll,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||new ui().hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Js);let n=()=>{this._config.scroll||this._focustrap.activate(),T.trigger(this._element,Ml,{relatedTarget:t})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||T.trigger(this._element,Il).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(Js),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 ui().reset(),T.trigger(this._element,eo)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t=P(P(P({},Zs),Z.getDataAttributes(this._element)),typeof t=="object"?t:{}),Et(Xs,t,Nl),t}_initializeBackDrop(){return new hn({className:xl,isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new pn({trapElement:this._element})}_addEventListeners(){T.on(this._element,Rl,t=>{this._config.keyboard&&t.key===Dl&&this.hide()})}static jQueryInterface(t){return this.each(function(){let e=Rt.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)}})}};T.on(document,Pl,jl,function(i){let t=xt(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Qt(this))return;T.one(t,eo,()=>{Ce(this)&&this.focus()});let e=M.findOne(to);e&&e!==t&&Rt.getInstance(e).hide(),Rt.getOrCreateInstance(t).toggle(this)});T.on(window,$l,()=>M.find(to).forEach(i=>Rt.getOrCreateInstance(i).show()));oi(Rt);dt(Rt);var kl=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Hl=/^aria-[\w-]*$/i,Wl=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/i,Bl=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,zl=(i,t)=>{let e=i.nodeName.toLowerCase();if(t.includes(e))return kl.has(e)?Boolean(Wl.test(i.nodeValue)||Bl.test(i.nodeValue)):!0;let n=t.filter(s=>s instanceof RegExp);for(let s=0,r=n.length;s<r;s++)if(n[s].test(e))return!0;return!1},Vl={"*":["class","dir","id","lang","role",Hl],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 io(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"),r=Object.keys(t),o=[].concat(...s.body.querySelectorAll("*"));for(let a=0,u=o.length;a<u;a++){let p=o[a],f=p.nodeName.toLowerCase();if(!r.includes(f)){p.remove();continue}let v=[].concat(...p.attributes),d=[].concat(t["*"]||[],t[f]||[]);v.forEach(m=>{zl(m,d)||p.removeAttribute(m.nodeName)})}return s.body.innerHTML}var no="tooltip",Yl="bs.tooltip",bt=`.${Yl}`,Fl="bs-tooltip",Ul=new Set(["sanitize","allowList","sanitizeFn"]),Kl={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)"},ql={AUTO:"auto",TOP:"top",RIGHT:ot()?"left":"right",BOTTOM:"bottom",LEFT:ot()?"right":"left"},Gl={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:Vl,popperConfig:null},Xl={HIDE:`hide${bt}`,HIDDEN:`hidden${bt}`,SHOW:`show${bt}`,SHOWN:`shown${bt}`,INSERTED:`inserted${bt}`,CLICK:`click${bt}`,FOCUSIN:`focusin${bt}`,FOCUSOUT:`focusout${bt}`,MOUSEENTER:`mouseenter${bt}`,MOUSELEAVE:`mouseleave${bt}`},di="fade",Ql="modal",Ie="show",Pe="show",gn="out",Zl=".tooltip-inner",so=`.${Ql}`,oo="hide.bs.modal",Re="hover",_n="focus",Jl="click",tc="manual",Ct=class extends ht{constructor(t,e){if(typeof ni=="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 Gl}static get NAME(){return no}static get Event(){return Xl}static get DefaultType(){return Kl}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(Ie)){this._leave(null,this);return}this._enter(null,this)}}dispose(){clearTimeout(this._timeout),T.off(this._element.closest(so),oo,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=T.trigger(this._element,this.constructor.Event.SHOW),e=ss(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(),r=yr(this.constructor.NAME);s.setAttribute("id",r),this._element.setAttribute("aria-describedby",r),this._config.animation&&s.classList.add(di);let o=typeof this._config.placement=="function"?this._config.placement.call(this,s,this._element):this._config.placement,a=this._getAttachment(o);this._addAttachmentClass(a);let{container:u}=this._config;$e.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(u.append(s),T.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=ii(this._element,s,this._getPopperConfig(a)),s.classList.add(Ie);let p=this._resolvePossibleFunction(this._config.customClass);p&&s.classList.add(...p.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(d=>{T.on(d,"mouseover",si)});let f=()=>{let d=this._hoverState;this._hoverState=null,T.trigger(this._element,this.constructor.Event.SHOWN),d===gn&&this._leave(null,this)},v=this.tip.classList.contains(di);this._queueCallback(f,this.tip,v)}hide(){if(!this._popper)return;let t=this.getTipElement(),e=()=>{this._isWithActiveTrigger()||(this._hoverState!==Pe&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),T.trigger(this._element,this.constructor.Event.HIDDEN),this._popper&&(this._popper.destroy(),this._popper=null))};if(T.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Ie),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(r=>T.off(r,"mouseover",si)),this._activeTrigger[Jl]=!1,this._activeTrigger[_n]=!1,this._activeTrigger[Re]=!1;let s=this.tip.classList.contains(di);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");t.innerHTML=this._config.template;let e=t.children[0];return this.setContent(e),e.classList.remove(di,Ie),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),Zl)}_sanitizeAndSetContent(t,e,n){let s=M.findOne(n,t);if(!e&&s){s.remove();return}this.setElementContent(s,e)}setElementContent(t,e){if(t!==null){if(Xt(e)){e=Lt(e),this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent;return}this._config.html?(this._config.sanitize&&(e=io(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e}}getTitle(){let t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return t==="right"?"end":t==="left"?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_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}_resolvePossibleFunction(t){return typeof t=="function"?t.call(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 P(P({},e),typeof this._config.popperConfig=="function"?this._config.popperConfig(e):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return ql[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(e=>{if(e==="click")T.on(this._element,this.constructor.Event.CLICK,this._config.selector,n=>this.toggle(n));else if(e!==tc){let n=e===Re?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,s=e===Re?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;T.on(this._element,n,this._config.selector,r=>this._enter(r)),T.on(this._element,s,this._config.selector,r=>this._leave(r))}}),this._hideModalHandler=()=>{this._element&&this.hide()},T.on(this._element.closest(so),oo,this._hideModalHandler),this._config.selector?this._config=Fe(P({},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"?_n:Re]=!0),e.getTipElement().classList.contains(Ie)||e._hoverState===Pe){e._hoverState=Pe;return}if(clearTimeout(e._timeout),e._hoverState=Pe,!e._config.delay||!e._config.delay.show){e.show();return}e._timeout=setTimeout(()=>{e._hoverState===Pe&&e.show()},e._config.delay.show)}_leave(t,e){if(e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger[t.type==="focusout"?_n:Re]=e._element.contains(t.relatedTarget)),!e._isWithActiveTrigger()){if(clearTimeout(e._timeout),e._hoverState=gn,!e._config.delay||!e._config.delay.hide){e.hide();return}e._timeout=setTimeout(()=>{e._hoverState===gn&&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=Z.getDataAttributes(this._element);return Object.keys(e).forEach(n=>{Ul.has(n)&&delete e[n]}),t=P(P(P({},this.constructor.Default),e),typeof t=="object"&&t?t:{}),t.container=t.container===!1?document.body:Lt(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()),Et(no,t,this.constructor.DefaultType),t.sanitize&&(t.template=io(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){let t={};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=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),n=t.getAttribute("class").match(e);n!==null&&n.length>0&&n.map(s=>s.trim()).forEach(s=>t.classList.remove(s))}_getBasicClassPrefix(){return Fl}_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=Ct.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};dt(Ct);var ec="popover",ic="bs.popover",Tt=`.${ic}`,nc="bs-popover",sc=Fe(P({},Ct.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>'}),oc=Fe(P({},Ct.DefaultType),{content:"(string|element|function)"}),rc={HIDE:`hide${Tt}`,HIDDEN:`hidden${Tt}`,SHOW:`show${Tt}`,SHOWN:`shown${Tt}`,INSERTED:`inserted${Tt}`,CLICK:`click${Tt}`,FOCUSIN:`focusin${Tt}`,FOCUSOUT:`focusout${Tt}`,MOUSEENTER:`mouseenter${Tt}`,MOUSELEAVE:`mouseleave${Tt}`},ac=".popover-header",lc=".popover-body",hi=class extends Ct{static get Default(){return sc}static get NAME(){return ec}static get Event(){return rc}static get DefaultType(){return oc}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),ac),this._sanitizeAndSetContent(t,this._getContent(),lc)}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return nc}static jQueryInterface(t){return this.each(function(){let e=hi.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};dt(hi);var ro="scrollspy",cc="bs.scrollspy",pi=`.${cc}`,uc=".data-api",ao={offset:10,method:"auto",target:""},fc={offset:"number",method:"string",target:"(string|element)"},dc=`activate${pi}`,hc=`scroll${pi}`,pc=`load${pi}${uc}`,lo="dropdown-item",pe="active",mc='[data-bs-spy="scroll"]',gc=".nav, .list-group",vn=".nav-link",_c=".nav-item",co=".list-group-item",En=`${vn}, ${co}, .${lo}`,vc=".dropdown",Ec=".dropdown-toggle",yc="offset",uo="position",je=class extends ht{constructor(t,e){super(t);this._scrollElement=this._element.tagName==="BODY"?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,T.on(this._scrollElement,hc,()=>this._process()),this.refresh(),this._process()}static get Default(){return ao}static get NAME(){return ro}refresh(){let t=this._scrollElement===this._scrollElement.window?yc:uo,e=this._config.method==="auto"?t:this._config.method,n=e===uo?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),M.find(En,this._config.target).map(r=>{let o=en(r),a=o?M.findOne(o):null;if(a){let u=a.getBoundingClientRect();if(u.width||u.height)return[Z[e](a).top+n,o]}return null}).filter(r=>r).sort((r,o)=>r[0]-o[0]).forEach(r=>{this._offsets.push(r[0]),this._targets.push(r[1])})}dispose(){T.off(this._scrollElement,pi),super.dispose()}_getConfig(t){return t=P(P(P({},ao),Z.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),t.target=Lt(t.target)||document.documentElement,Et(ro,t,fc),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=En.split(",").map(s=>`${s}[data-bs-target="${t}"],${s}[href="${t}"]`),n=M.findOne(e.join(","),this._config.target);n.classList.add(pe),n.classList.contains(lo)?M.findOne(Ec,n.closest(vc)).classList.add(pe):M.parents(n,gc).forEach(s=>{M.prev(s,`${vn}, ${co}`).forEach(r=>r.classList.add(pe)),M.prev(s,_c).forEach(r=>{M.children(r,vn).forEach(o=>o.classList.add(pe))})}),T.trigger(this._scrollElement,dc,{relatedTarget:t})}_clear(){M.find(En,this._config.target).filter(t=>t.classList.contains(pe)).forEach(t=>t.classList.remove(pe))}static jQueryInterface(t){return this.each(function(){let e=je.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};T.on(window,pc,()=>{M.find(mc).forEach(i=>new je(i))});dt(je);var bc="tab",Tc="bs.tab",ke=`.${Tc}`,Sc=".data-api",Ac=`hide${ke}`,wc=`hidden${ke}`,Oc=`show${ke}`,Cc=`shown${ke}`,$c=`click${ke}${Sc}`,Dc="dropdown-menu",He="active",fo="fade",ho="show",Nc=".dropdown",xc=".nav, .list-group",po=".active",mo=":scope > li > .active",Lc='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Mc=".dropdown-toggle",Ic=":scope > .dropdown-menu .active",me=class extends ht{static get NAME(){return bc}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(He))return;let t,e=xt(this._element),n=this._element.closest(xc);if(n){let a=n.nodeName==="UL"||n.nodeName==="OL"?mo:po;t=M.find(a,n),t=t[t.length-1]}let s=t?T.trigger(t,Ac,{relatedTarget:this._element}):null;if(T.trigger(this._element,Oc,{relatedTarget:t}).defaultPrevented||s!==null&&s.defaultPrevented)return;this._activate(this._element,n);let o=()=>{T.trigger(t,wc,{relatedTarget:this._element}),T.trigger(this._element,Cc,{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,n){let r=(e&&(e.nodeName==="UL"||e.nodeName==="OL")?M.find(mo,e):M.children(e,po))[0],o=n&&r&&r.classList.contains(fo),a=()=>this._transitionComplete(t,r,n);r&&o?(r.classList.remove(ho),this._queueCallback(a,t,!0)):a()}_transitionComplete(t,e,n){if(e){e.classList.remove(He);let r=M.findOne(Ic,e.parentNode);r&&r.classList.remove(He),e.getAttribute("role")==="tab"&&e.setAttribute("aria-selected",!1)}t.classList.add(He),t.getAttribute("role")==="tab"&&t.setAttribute("aria-selected",!0),de(t),t.classList.contains(fo)&&t.classList.add(ho);let s=t.parentNode;if(s&&s.nodeName==="LI"&&(s=s.parentNode),s&&s.classList.contains(Dc)){let r=t.closest(Nc);r&&M.find(Mc,r).forEach(o=>o.classList.add(He)),t.setAttribute("aria-expanded",!0)}n&&n()}static jQueryInterface(t){return this.each(function(){let e=me.getOrCreateInstance(this);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t]()}})}};T.on(document,$c,Lc,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Qt(this))return;me.getOrCreateInstance(this).show()});dt(me);var go="toast",Pc="bs.toast",jt=`.${Pc}`,Rc=`mouseover${jt}`,jc=`mouseout${jt}`,kc=`focusin${jt}`,Hc=`focusout${jt}`,Wc=`hide${jt}`,Bc=`hidden${jt}`,zc=`show${jt}`,Vc=`shown${jt}`,Yc="fade",_o="hide",We="show",mi="showing",Fc={animation:"boolean",autohide:"boolean",delay:"number"},vo={animation:!0,autohide:!0,delay:5e3},kt=class extends ht{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 Fc}static get Default(){return vo}static get NAME(){return go}show(){if(T.trigger(this._element,zc).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Yc);let e=()=>{this._element.classList.remove(mi),T.trigger(this._element,Vc),this._maybeScheduleHide()};this._element.classList.remove(_o),de(this._element),this._element.classList.add(We),this._element.classList.add(mi),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this._element.classList.contains(We)||T.trigger(this._element,Wc).defaultPrevented)return;let e=()=>{this._element.classList.add(_o),this._element.classList.remove(mi),this._element.classList.remove(We),T.trigger(this._element,Bc)};this._element.classList.add(mi),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(We)&&this._element.classList.remove(We),super.dispose()}_getConfig(t){return t=P(P(P({},vo),Z.getDataAttributes(this._element)),typeof t=="object"&&t?t:{}),Et(go,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(){T.on(this._element,Rc,t=>this._onInteraction(t,!0)),T.on(this._element,jc,t=>this._onInteraction(t,!1)),T.on(this._element,kc,t=>this._onInteraction(t,!0)),T.on(this._element,Hc,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){let e=kt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]=="undefined")throw new TypeError(`No method named "${t}"`);e[t](this)}})}};oi(kt);dt(kt);var iu=Bt(Ao());var Oo=Bt(wo());function wi(i){return"error"in i}function Zc(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 Jc(){let{csrftoken:i}=Oo.default.parse(document.cookie);if(typeof i=="undefined")throw new Error("Invalid or missing CSRF token");return i}function tu(i,t,e){return $i(this,null,function*(){let n=Jc(),s=new Headers({"X-CSRFToken":n}),r;typeof e!="undefined"&&(r=JSON.stringify(e),s.set("content-type","application/json"));let o=yield fetch(i,{method:t,body:r,headers:s,credentials:"same-origin"}),a=o.headers.get("Content-Type");if(typeof a=="string"&&a.includes("text"))return{error:yield o.text()};let u=yield o.json();return!o.ok&&Array.isArray(u)?{error:u.join(`
`)}:!o.ok&&"detail"in u?{error:u.detail}:u})}function Co(i){return $i(this,null,function*(){return yield tu(i,"GET")})}function*Tn(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function $o(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of Tn("body > div#netbox-data > *")){let e=t.getAttribute(i);if(Zc(e))return e}return null}function eu(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 Oi(i){for(let t of Tn("div.card-overlay"))eu(t,i)}function W(i,t,e,n=[]){let s=document.createElement(i);if(t!==null)for(let r of Object.keys(t)){let o=r,a=t[o];o in s&&(s[o]=a)}s.classList.add(...e);for(let r of n)s.appendChild(r);return s}function Do(i){return i*(9/5)+32}window.Collapse=Ot;window.Modal=Pt;window.Toast=kt;window.Tooltip=Ct;function Ci(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 r=document.createElement("div");r.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let o=document.createElement("div");o.setAttribute("class",`toast bg-${i}`),o.setAttribute("role","alert"),o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true");let a=document.createElement("div");a.setAttribute("class",`toast-header bg-${i} text-body`);let u=document.createElement("i");u.setAttribute("class",`mdi ${s}`);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 v=document.createElement("div");if(v.setAttribute("class","toast-body"),a.appendChild(u),a.appendChild(p),typeof n!="undefined"){let m=document.createElement("small");m.setAttribute("class","text-muted"),a.appendChild(m)}return a.appendChild(f),v.innerText=e.trim(),o.appendChild(a),o.appendChild(v),r.appendChild(o),document.body.appendChild(r),new kt(o)}oe.default.extend(No.default);oe.default.extend(xo.default);oe.default.extend(Mo.default);oe.default.extend(Lo.default);var nu=["hostname","fqdn","vendor","model","serial_number","os_version"],su=["years","months","days","hours","minutes","seconds"];function ou(i){let t=new Date,e=t.getTimezoneOffset(),s=(0,oe.default)(t).subtract(i,"seconds"),r=s.tz("Etc/UTC").format("YYYY-MM-DD HH:MM:ss z"),o=null;e!==0&&(o=s.format("YYYY-MM-DD HH:MM:ss z"));let a=oe.default.duration(i,"seconds"),u=[];for(let f of su){let v=a[f]();if(v===1){let d=f.replace(/s$/,"");u=[...u,`${v} ${d}`]}else v>1&&(u=[...u,`${v} ${f}`])}let p="None";return u.length>0&&(p=u.join(", ")),{utc:r,zoned:o,duration:p}}function ru(i){for(let a of nu)if(a in i){let u=document.getElementById(a);u!==null&&(u.innerHTML=String(i[a]))}let{uptime:t}=i,{utc:e,zoned:n,duration:s}=ou(t),r=document.getElementById("uptime-duration");r!==null&&(r.innerHTML=s);let o=document.getElementById("uptime");o!==null&&(n===null?o.innerHTML=e:o.innerHTML=[n,`<span class="fst-italic d-block">${e}</span>`].join(""))}function Be(i,t,e){let n=W("th",{innerText:t},["border-end","text-end"]),s=W("th",{innerText:e},["border-start","text-start"]),r=W("tr",{},[],[n,s]);i.insertAdjacentElement("beforebegin",r)}function ze(i){let t=W("td",{colSpan:"2",innerText:"No Data"},["text-muted","text-center"]),e=W("tr",{},[],[t]);i!==null&&i.insertAdjacentElement("beforebegin",e)}function Ve(i){let t=document.getElementById(i);return t!==null?t.nextElementSibling:null}function au(i){let t=Ve("status-cpu");if(typeof i!="undefined"){if(t!==null){Be(t,"Name","Usage");for(let[e,n]of Object.entries(i)){let s=n["%usage"],r=W("td",{innerText:e},["border-end","text-end"]),o=W("td",{innerText:`${s} %`},["border-start","text-start"]),a=W("tr",{},[],[r,o]);t.insertAdjacentElement("beforebegin",a)}}}else ze(t)}function lu(i){let t=Ve("status-memory");if(typeof i!="undefined"){if(t!==null){Be(t,"Available","Used");let{available_ram:e,used_ram:n}=i,s=W("td",{innerText:e},["border-end","text-end"]),r=W("td",{innerText:n},["border-start","text-start"]),o=W("tr",{},[],[s,r]);t.insertAdjacentElement("beforebegin",o)}}else ze(t)}function cu(i){let t=Ve("status-temperature");if(typeof i!="undefined"){if(t!==null){Be(t,"Sensor","Value");for(let[e,n]of Object.entries(i)){let s=n.temperature,r=Do(s),o=`${s} \xB0C <span class="ms-1 text-muted small">${r} \xB0F</span>`,a=n.is_alert?"warning":n.is_critical?"danger":"success",u=W("td",{innerText:e},["border-end","text-end"]),p=W("td",{innerHTML:o},["border-start","text-start"]),f=W("tr",{},[`table-${a}`],[u,p]);t.insertAdjacentElement("beforebegin",f)}}}else ze(t)}function uu(i){let t=Ve("status-fans");if(typeof i!="undefined"){if(t!==null){Be(t,"Fan","Status");for(let[e,n]of Object.entries(i)){let{status:s}=n,r=W("i",{},["mdi","mdi-check-bold","text-success"]),o=W("i",{},["mdi","mdi-close","text-warning"]),a=W("td",{innerText:e},["border-end","text-end"]),u=W("td",{},["border-start","text-start"],[s?r:o]),p=W("tr",{},[`table-${s?"success":"warning"}`],[a,u]);t.insertAdjacentElement("beforebegin",p)}}}else ze(t)}function fu(i){let t=Ve("status-power");if(typeof i!="undefined"){if(t!==null){Be(t,"PSU","Status");for(let[e,n]of Object.entries(i)){let{status:s}=n,r=W("i",{},["mdi","mdi-check-bold","text-success"]),o=W("i",{},["mdi","mdi-close","text-warning"]),a=W("td",{innerText:e},["border-end","text-end"]),u=W("td",{},["border-start","text-start"],[s?r:o]),p=W("tr",{},[`table-${s?"success":"warning"}`],[a,u]);t.insertAdjacentElement("beforebegin",p)}}}else ze(t)}function du(i){let{cpu:t,memory:e,temperature:n,fans:s,power:r}=i;au(t),lu(e),cu(n),uu(s),fu(r)}function Io(){Oi("show");let i=$o("data-object-url");i!==null?Co(i).then(t=>{wi(t)?Ci("danger","Error Fetching Device Status",t.error).show():(wi(t.get_facts)?Ci("danger","Error Fetching Device Facts",t.get_facts.error).show():ru(t.get_facts),wi(t.get_environment)?Ci("danger","Error Fetching Device Environment Data",t.get_environment.error).show():du(t.get_environment))}).finally(()=>Oi("hide")):Oi("hide")}document.readyState!=="loading"?Io():document.addEventListener("DOMContentLoaded",Io);})();
/*!
* Bootstrap v5.1.0 (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
*/
/*!
* cookie
* Copyright(c) 2012-2014 Roman Shtylman
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/
/*!
* getSize v2.0.3
* measure size of elements
* MIT license
*/
//# sourceMappingURL=status.js.map