/*! * Bootstrap v5.0.0-beta1 (https://getbootstrap.com/) * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";function t(t,e){for(var i=0;i0,n._pointerEvent=Boolean(window.PointerEvent),n._addEventListeners(),n}n(s,t);var o=s.prototype;return o.next=function(){this._isSliding||this._slide("next")},o.nextWhenVisible=function(){!document.hidden&&m(this._element)&&this.next()},o.prev=function(){this._isSliding||this._slide("prev")},o.pause=function(t){t||(this._isPaused=!0),Y.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(u(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},o.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},o.to=function(t){var e=this;this._activeElement=Y.findOne(".active.carousel-item",this._element);var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)j.one(this._element,"slid.bs.carousel",(function(){return e.to(t)}));else{if(i===t)return this.pause(),void this.cycle();var n=t>i?"next":"prev";this._slide(n,this._items[t])}},o.dispose=function(){t.prototype.dispose.call(this),j.off(this._element,".bs.carousel"),this._items=null,this._config=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},o._getConfig=function(t){return t=i({},U,t),f(X,t,V),t},o._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},o._addEventListeners=function(){var t=this;this._config.keyboard&&j.on(this._element,"keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&(j.on(this._element,"mouseenter.bs.carousel",(function(e){return t.pause(e)})),j.on(this._element,"mouseleave.bs.carousel",(function(e){return t.cycle(e)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()},o._addTouchEventListeners=function(){var t=this,e=function(e){t._pointerEvent&&Q[e.pointerType.toUpperCase()]?t.touchStartX=e.clientX:t._pointerEvent||(t.touchStartX=e.touches[0].clientX)},i=function(e){t._pointerEvent&&Q[e.pointerType.toUpperCase()]&&(t.touchDeltaX=e.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};Y.find(".carousel-item img",this._element).forEach((function(t){j.on(t,"dragstart.bs.carousel",(function(t){return t.preventDefault()}))})),this._pointerEvent?(j.on(this._element,"pointerdown.bs.carousel",(function(t){return e(t)})),j.on(this._element,"pointerup.bs.carousel",(function(t){return i(t)})),this._element.classList.add("pointer-event")):(j.on(this._element,"touchstart.bs.carousel",(function(t){return e(t)})),j.on(this._element,"touchmove.bs.carousel",(function(e){return function(e){e.touches&&e.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.touches[0].clientX-t.touchStartX}(e)})),j.on(this._element,"touchend.bs.carousel",(function(t){return i(t)})))},o._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.key){case"ArrowLeft":t.preventDefault(),this.prev();break;case"ArrowRight":t.preventDefault(),this.next()}},o._getItemIndex=function(t){return this._items=t&&t.parentNode?Y.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)},o._getItemByDirection=function(t,e){var i="next"===t,n="prev"===t,s=this._getItemIndex(e),o=this._items.length-1;if((n&&0===s||i&&s===o)&&!this._config.wrap)return e;var r=(s+("prev"===t?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},o._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(Y.findOne(".active.carousel-item",this._element));return j.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:i})},o._setActiveIndicatorElement=function(t){if(this._indicatorsElement){for(var e=Y.find(".active",this._indicatorsElement),i=0;i0)for(var n=0;n=0}function yt(t){return((ut(t)?t.ownerDocument:t.document)||window.document).documentElement}function bt(t){return"html"===ct(t)?t:t.assignedSlot||t.parentNode||t.host||yt(t)}function wt(t){if(!dt(t)||"fixed"===_t(t).position)return null;var e=t.offsetParent;if(e){var i=yt(e);if("body"===ct(e)&&"static"===_t(e).position&&"static"!==_t(i).position)return i}return e}function Tt(t){for(var e=ht(t),i=wt(t);i&&vt(i)&&"static"===_t(i).position;)i=wt(i);return i&&"body"===ct(i)&&"static"===_t(i).position?e:i||function(t){for(var e=bt(t);dt(e)&&["html","body"].indexOf(ct(e))<0;){var i=_t(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}function xt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function kt(t,e,i){return Math.max(t,Math.min(e,i))}function St(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function Ct(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}var Et={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=i.elements.arrow,o=i.modifiersData.popperOffsets,r=ft(i.placement),a=xt(r),l=[st,nt].indexOf(r)>=0?"height":"width";if(s&&o){var c=i.modifiersData[n+"#persistent"].padding,h=mt(s),u="y"===a?et:st,d="y"===a?it:nt,p=i.rects.reference[l]+i.rects.reference[a]-o[a]-i.rects.popper[l],f=o[a]-i.rects.reference[a],m=Tt(s),g=m?"y"===a?m.clientHeight||0:m.clientWidth||0:0,_=p/2-f/2,v=c[u],y=g-h[l]-c[d],b=g/2-h[l]/2+_,w=kt(v,b,y),T=a;i.modifiersData[n]=((e={})[T]=w,e.centerOffset=w-b,e)}},effect:function(t){var e=t.state,i=t.options,n=t.name,s=i.element,o=void 0===s?"[data-popper-arrow]":s,r=i.padding,a=void 0===r?0:r;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&>(e.elements.popper,o)&&(e.elements.arrow=o,e.modifiersData[n+"#persistent"]={padding:St("number"!=typeof a?a:Ct(a,ot))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},Ot={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pt(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.offsets,r=t.position,a=t.gpuAcceleration,l=t.adaptive,c=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(o),h=c.x,u=c.y,d=o.hasOwnProperty("x"),p=o.hasOwnProperty("y"),f=st,m=et,g=window;if(l){var _=Tt(i);_===ht(i)&&(_=yt(i)),s===et&&(m=it,u-=_.clientHeight-n.height,u*=a?1:-1),s===st&&(f=nt,h-=_.clientWidth-n.width,h*=a?1:-1)}var v,y=Object.assign({position:r},l&&Ot);return a?Object.assign(Object.assign({},y),{},((v={})[m]=p?"0":"",v[f]=d?"0":"",v.transform=(g.devicePixelRatio||1)<2?"translate("+h+"px, "+u+"px)":"translate3d("+h+"px, "+u+"px, 0)",v)):Object.assign(Object.assign({},y),{},((e={})[m]=p?u+"px":"",e[f]=d?h+"px":"",e.transform="",e))}var At={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a={placement:ft(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Pt(Object.assign(Object.assign({},a),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Pt(Object.assign(Object.assign({},a),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},It={passive:!0},Dt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=ht(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,It)})),a&&l.addEventListener("resize",i.update,It),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,It)})),a&&l.removeEventListener("resize",i.update,It)}},data:{}},Lt={left:"right",right:"left",bottom:"top",top:"bottom"};function Mt(t){return t.replace(/left|right|bottom|top/g,(function(t){return Lt[t]}))}var zt={start:"end",end:"start"};function Rt(t){return t.replace(/start|end/g,(function(t){return zt[t]}))}function jt(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function Nt(t){var e=ht(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $t(t){return jt(yt(t)).left+Nt(t).scrollLeft}function Ft(t){var e=_t(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Wt(t,e){void 0===e&&(e=[]);var i=function t(e){return["html","body","#document"].indexOf(ct(e))>=0?e.ownerDocument.body:dt(e)&&Ft(e)?e:t(bt(e))}(t),n="body"===ct(i),s=ht(i),o=n?[s].concat(s.visualViewport||[],Ft(i)?i:[]):i,r=e.concat(o);return n?r:r.concat(Wt(bt(o)))}function Ht(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Bt(t,e){return"viewport"===e?Ht(function(t){var e=ht(t),i=yt(t),n=e.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+$t(t),y:a}}(t)):dt(e)?function(t){var e=jt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ht(function(t){var e=yt(t),i=Nt(t),n=t.ownerDocument.body,s=Math.max(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Math.max(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-i.scrollLeft+$t(t),a=-i.scrollTop;return"rtl"===_t(n||e).direction&&(r+=Math.max(e.clientWidth,n?n.clientWidth:0)-s),{width:s,height:o,x:r,y:a}}(yt(t)))}function qt(t){return t.split("-")[1]}function Yt(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?ft(s):null,r=s?qt(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case et:e={x:a,y:i.y-n.height};break;case it:e={x:a,y:i.y+i.height};break;case nt:e={x:i.x+i.width,y:l};break;case st:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?xt(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case"start":e[c]=Math.floor(e[c])-Math.floor(i[h]/2-n[h]/2);break;case"end":e[c]=Math.floor(e[c])+Math.ceil(i[h]/2-n[h]/2)}}return e}function Xt(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.boundary,r=void 0===o?"clippingParents":o,a=i.rootBoundary,l=void 0===a?"viewport":a,c=i.elementContext,h=void 0===c?"popper":c,u=i.altBoundary,d=void 0!==u&&u,p=i.padding,f=void 0===p?0:p,m=St("number"!=typeof f?f:Ct(f,ot)),g="popper"===h?"reference":"popper",_=t.elements.reference,v=t.rects.popper,y=t.elements[d?g:h],b=function(t,e,i){var n="clippingParents"===e?function(t){var e=Wt(bt(t)),i=["absolute","fixed"].indexOf(_t(t).position)>=0&&dt(t)?Tt(t):t;return ut(i)?e.filter((function(t){return ut(t)&>(t,i)&&"body"!==ct(t)})):[]}(t):[].concat(e),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(e,i){var n=Bt(t,i);return e.top=Math.max(n.top,e.top),e.right=Math.min(n.right,e.right),e.bottom=Math.min(n.bottom,e.bottom),e.left=Math.max(n.left,e.left),e}),Bt(t,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(ut(y)?y:y.contextElement||yt(t.elements.popper),r,l),w=jt(_),T=Yt({reference:w,element:v,strategy:"absolute",placement:s}),x=Ht(Object.assign(Object.assign({},v),T)),k="popper"===h?x:w,S={top:b.top-k.top+m.top,bottom:k.bottom-b.bottom+m.bottom,left:b.left-k.left+m.left,right:k.right-b.right+m.right},C=t.modifiersData.offset;if("popper"===h&&C){var E=C[s];Object.keys(S).forEach((function(t){var e=[nt,it].indexOf(t)>=0?1:-1,i=[et,it].indexOf(t)>=0?"y":"x";S[t]+=E[i]*e}))}return S}var Ut={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,u=i.rootBoundary,d=i.altBoundary,p=i.flipVariations,f=void 0===p||p,m=i.allowedAutoPlacements,g=e.options.placement,_=ft(g),v=l||(_!==g&&f?function(t){if("auto"===ft(t))return[];var e=Mt(t);return[Rt(t),e,Rt(e)]}(g):[Mt(g)]),y=[g].concat(v).reduce((function(t,i){return t.concat("auto"===ft(i)?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?at:l,h=qt(n),u=h?a?rt:rt.filter((function(t){return qt(t)===h})):ot,d=u.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=u);var p=d.reduce((function(e,i){return e[i]=Xt(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[ft(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:h,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),b=e.rects.reference,w=e.rects.popper,T=new Map,x=!0,k=y[0],S=0;S=0,A=P?"width":"height",I=Xt(e,{placement:C,boundary:h,rootBoundary:u,altBoundary:d,padding:c}),D=P?O?nt:st:O?it:et;b[A]>w[A]&&(D=Mt(D));var L=Mt(D),M=[];if(o&&M.push(I[E]<=0),a&&M.push(I[D]<=0,I[L]<=0),M.every((function(t){return t}))){k=C,x=!1;break}T.set(C,M)}if(x)for(var z=function(t){var e=y.find((function(e){var i=T.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return k=e,"break"},R=f?3:1;R>0&&"break"!==z(R);R--);e.placement!==k&&(e.modifiersData[n]._skip=!0,e.placement=k,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Vt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Qt(t){return[et,nt,it,st].some((function(e){return t[e]>=0}))}var Kt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Xt(e,{elementContext:"reference"}),a=Xt(e,{altBoundary:!0}),l=Vt(r,n),c=Vt(a,s,o),h=Qt(l),u=Qt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:u},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":h,"data-popper-escaped":u})}},Gt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=at.reduce((function(t,i){return t[i]=function(t,e,i){var n=ft(t),s=[st,et].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign(Object.assign({},e),{},{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[st,nt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},Zt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Yt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Jt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,u=i.padding,d=i.tether,p=void 0===d||d,f=i.tetherOffset,m=void 0===f?0:f,g=Xt(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:h}),_=ft(e.placement),v=qt(e.placement),y=!v,b=xt(_),w="x"===b?"y":"x",T=e.modifiersData.popperOffsets,x=e.rects.reference,k=e.rects.popper,S="function"==typeof m?m(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):m,C={x:0,y:0};if(T){if(o){var E="y"===b?et:st,O="y"===b?it:nt,P="y"===b?"height":"width",A=T[b],I=T[b]+g[E],D=T[b]-g[O],L=p?-k[P]/2:0,M="start"===v?x[P]:k[P],z="start"===v?-k[P]:-x[P],R=e.elements.arrow,j=p&&R?mt(R):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=N[E],F=N[O],W=kt(0,x[P],j[P]),H=y?x[P]/2-L-W-$-S:M-W-$-S,B=y?-x[P]/2+L+W+F+S:z+W+F+S,q=e.elements.arrow&&Tt(e.elements.arrow),Y=q?"y"===b?q.clientTop||0:q.clientLeft||0:0,X=e.modifiersData.offset?e.modifiersData.offset[e.placement][b]:0,U=T[b]+H-X-Y,V=T[b]+B-X,Q=kt(p?Math.min(I,U):I,A,p?Math.max(D,V):D);T[b]=Q,C[b]=Q-A}if(a){var K="x"===b?et:st,G="x"===b?it:nt,Z=T[w],J=kt(Z+g[K],Z,Z-g[G]);T[w]=J,C[w]=J-Z}e.modifiersData[n]=C}},requiresIfExists:["offset"]};function te(t,e,i){void 0===i&&(i=!1);var n,s,o=yt(e),r=jt(t),a=dt(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(a||!a&&!i)&&(("body"!==ct(e)||Ft(o))&&(l=(n=e)!==ht(n)&&dt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Nt(n)),dt(e)?((c=jt(e)).x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=$t(o))),{x:r.left+l.scrollLeft-c.x,y:r.top+l.scrollTop-c.y,width:r.width,height:r.height}}var ee={placement:"bottom",modifiers:[],strategy:"absolute"};function ie(){for(var t=arguments.length,e=new Array(t),i=0;i0&&o--,"ArrowDown"===t.key&&odocument.documentElement.clientHeight;e||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var i=h(this._dialog);j.off(this._element,"transitionend"),j.one(this._element,"transitionend",(function(){t._element.classList.remove("modal-static"),e||(j.one(t._element,"transitionend",(function(){t._element.style.overflowY=""})),p(t._element,i))})),p(this._element,i),this._element.focus()}},o._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;(!this._isBodyOverflowing&&t&&!b||this._isBodyOverflowing&&!t&&b)&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),(this._isBodyOverflowing&&!t&&!b||!this._isBodyOverflowing&&t&&b)&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},o._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},o._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",container:!1,fallbackPlacements:null,boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},De={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Le=function(t){function s(e,i){var n;if(void 0===ae)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");return(n=t.call(this,e)||this)._isEnabled=!0,n._timeout=0,n._hoverState="",n._activeTrigger={},n._popper=null,n.config=n._getConfig(i),n.tip=null,n._setListeners(),n}n(s,t);var o=s.prototype;return o.enable=function(){this._isEnabled=!0},o.disable=function(){this._isEnabled=!1},o.toggleEnabled=function(){this._isEnabled=!this._isEnabled},o.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=x(t.delegateTarget,e);i||(i=new this.constructor(t.delegateTarget,this._getDelegateConfig()),T(t.delegateTarget,e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(this.getTipElement().classList.contains("show"))return void this._leave(null,this);this._enter(null,this)}},o.dispose=function(){clearTimeout(this._timeout),j.off(this._element,this.constructor.EVENT_KEY),j.off(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.tip&&this.tip.parentNode.removeChild(this.tip),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.config=null,this.tip=null,t.prototype.dispose.call(this)},o.show=function(){var t=this;if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this._isEnabled){var e=j.trigger(this._element,this.constructor.Event.SHOW),i=function t(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var i=e.getRootNode();return i instanceof ShadowRoot?i:null}return e instanceof ShadowRoot?e:e.parentNode?t(e.parentNode):null}(this._element),n=null===i?this._element.ownerDocument.documentElement.contains(this._element):i.contains(this._element);if(e.defaultPrevented||!n)return;var s=this.getTipElement(),o=r(this.constructor.NAME);s.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&s.classList.add("fade");var a="function"==typeof this.config.placement?this.config.placement.call(this,s,this._element):this.config.placement,l=this._getAttachment(a);this._addAttachmentClass(l);var c=this._getContainer();T(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||c.appendChild(s),j.trigger(this._element,this.constructor.Event.INSERTED),this._popper=re(this._element,s,this._getPopperConfig(l)),s.classList.add("show");var u,d,f="function"==typeof this.config.customClass?this.config.customClass():this.config.customClass;f&&(u=s.classList).add.apply(u,f.split(" ")),"ontouchstart"in document.documentElement&&(d=[]).concat.apply(d,document.body.children).forEach((function(t){j.on(t,"mouseover",(function(){}))}));var m=function(){var e=t._hoverState;t._hoverState=null,j.trigger(t._element,t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(this.tip.classList.contains("fade")){var g=h(this.tip);j.one(this.tip,"transitionend",m),p(this.tip,g)}else m()}},o.hide=function(){var t=this;if(this._popper){var e=this.getTipElement(),i=function(){"show"!==t._hoverState&&e.parentNode&&e.parentNode.removeChild(e),t._cleanTipClass(),t._element.removeAttribute("aria-describedby"),j.trigger(t._element,t.constructor.Event.HIDDEN),t._popper&&(t._popper.destroy(),t._popper=null)};if(!j.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented){var n;if(e.classList.remove("show"),"ontouchstart"in document.documentElement&&(n=[]).concat.apply(n,document.body.children).forEach((function(t){return j.off(t,"mouseover",g)})),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this.tip.classList.contains("fade")){var s=h(e);j.one(e,"transitionend",i),p(e,s)}else i();this._hoverState=""}}},o.update=function(){null!==this._popper&&this._popper.update()},o.isWithContent=function(){return Boolean(this.getTitle())},o.getTipElement=function(){if(this.tip)return this.tip;var t=document.createElement("div");return t.innerHTML=this.config.template,this.tip=t.children[0],this.tip},o.setContent=function(){var t=this.getTipElement();this.setElementContent(Y.findOne(".tooltip-inner",t),this.getTitle()),t.classList.remove("fade","show")},o.setElementContent=function(t,e){if(null!==t)return"object"==typeof e&&d(e)?(e.jquery&&(e=e[0]),void(this.config.html?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.textContent=e.textContent)):void(this.config.html?(this.config.sanitize&&(e=Se(e,this.config.allowList,this.config.sanitizeFn)),t.innerHTML=e):t.textContent=e)},o.getTitle=function(){var t=this._element.getAttribute("data-bs-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this._element):this.config.title),t},o.updateAttachment=function(t){return"right"===t?"end":"left"===t?"start":t},o._getPopperConfig=function(t){var e=this,n={name:"flip",options:{altBoundary:!0}};return this.config.fallbackPlacements&&(n.options.fallbackPlacements=this.config.fallbackPlacements),i({},{placement:t,modifiers:[n,{name:"preventOverflow",options:{rootBoundary:this.config.boundary}},{name:"arrow",options:{element:"."+this.constructor.NAME+"-arrow"}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:function(t){return e._handlePopperPlacementChange(t)}}],onFirstUpdate:function(t){t.options.placement!==t.placement&&e._handlePopperPlacementChange(t)}},this.config.popperConfig)},o._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-tooltip-"+this.updateAttachment(t))},o._getContainer=function(){return!1===this.config.container?document.body:d(this.config.container)?this.config.container:Y.findOne(this.config.container)},o._getAttachment=function(t){return Ae[t.toUpperCase()]},o._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)j.on(t._element,t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var i="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,n="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;j.on(t._element,i,t.config.selector,(function(e){return t._enter(e)})),j.on(t._element,n,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t._element&&t.hide()},j.on(this._element.closest(".modal"),"hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=i({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},o._fixTitle=function(){var t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))},o._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||x(t.delegateTarget,i))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),T(t.delegateTarget,i,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e.getTipElement().classList.contains("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},o._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||x(t.delegateTarget,i))||(e=new this.constructor(t.delegateTarget,this._getDelegateConfig()),T(t.delegateTarget,i,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},o._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},o._getConfig=function(t){var e=q.getDataAttributes(this._element);return Object.keys(e).forEach((function(t){Oe.has(t)&&delete e[t]})),t&&"object"==typeof t.container&&t.container.jquery&&(t.container=t.container[0]),"number"==typeof(t=i({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),f(Ce,t,this.constructor.DefaultType),t.sanitize&&(t.template=Se(t.template,t.allowList,t.sanitizeFn)),t},o._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},o._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(Ee);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},o._handlePopperPlacementChange=function(t){var e=t.state;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))},s.jQueryInterface=function(t){return this.each((function(){var e=x(this,"bs.tooltip"),i="object"==typeof t&&t;if((e||!/dispose|hide/.test(t))&&(e||(e=new s(this,i)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},e(s,null,[{key:"Default",get:function(){return Ie}},{key:"NAME",get:function(){return Ce}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return De}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Pe}}]),s}(N);y((function(){var t=v();if(t){var e=t.fn[Ce];t.fn[Ce]=Le.jQueryInterface,t.fn[Ce].Constructor=Le,t.fn[Ce].noConflict=function(){return t.fn[Ce]=e,Le.jQueryInterface}}}));var Me="popover",ze=new RegExp("(^|\\s)bs-popover\\S+","g"),Re=i({},Le.Default,{placement:"right",trigger:"click",content:"",template:''}),je=i({},Le.DefaultType,{content:"(string|element|function)"}),Ne={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},$e=function(t){function i(){return t.apply(this,arguments)||this}n(i,t);var s=i.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.setContent=function(){var t=this.getTipElement();this.setElementContent(Y.findOne(".popover-header",t),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this._element)),this.setElementContent(Y.findOne(".popover-body",t),e),t.classList.remove("fade","show")},s._addAttachmentClass=function(t){this.getTipElement().classList.add("bs-popover-"+this.updateAttachment(t))},s._getContent=function(){return this._element.getAttribute("data-bs-content")||this.config.content},s._cleanTipClass=function(){var t=this.getTipElement(),e=t.getAttribute("class").match(ze);null!==e&&e.length>0&&e.map((function(t){return t.trim()})).forEach((function(e){return t.classList.remove(e)}))},i.jQueryInterface=function(t){return this.each((function(){var e=x(this,"bs.popover"),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new i(this,n),T(this,"bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},e(i,null,[{key:"Default",get:function(){return Re}},{key:"NAME",get:function(){return Me}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return Ne}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return je}}]),i}(Le);y((function(){var t=v();if(t){var e=t.fn[Me];t.fn[Me]=$e.jQueryInterface,t.fn[Me].Constructor=$e,t.fn[Me].noConflict=function(){return t.fn[Me]=e,$e.jQueryInterface}}}));var Fe="scrollspy",We={offset:10,method:"auto",target:""},He={offset:"number",method:"string",target:"(string|element)"},Be=function(t){function s(e,i){var n;return(n=t.call(this,e)||this)._scrollElement="BODY"===e.tagName?window:e,n._config=n._getConfig(i),n._selector=n._config.target+" .nav-link, "+n._config.target+" .list-group-item, "+n._config.target+" .dropdown-item",n._offsets=[],n._targets=[],n._activeTarget=null,n._scrollHeight=0,j.on(n._scrollElement,"scroll.bs.scrollspy",(function(t){return n._process(t)})),n.refresh(),n._process(),n}n(s,t);var o=s.prototype;return o.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?e:this._config.method,n="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Y.find(this._selector).map((function(t){var e=l(t),s=e?Y.findOne(e):null;if(s){var o=s.getBoundingClientRect();if(o.width||o.height)return[q[i](s).top+n,e]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},o.dispose=function(){t.prototype.dispose.call(this),j.off(this._scrollElement,".bs.scrollspy"),this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},o._getConfig=function(t){if("string"!=typeof(t=i({},We,"object"==typeof t&&t?t:{})).target&&d(t.target)){var e=t.target.id;e||(e=r(Fe),t.target.id=e),t.target="#"+e}return f(Fe,t,He),t},o._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},o._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},o._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},o._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&t>=this._offsets[s]&&(void 0===this._offsets[s+1]||t li > .active":".active";e=(e=Y.find(s,n))[e.length-1]}var o=null;if(e&&(o=j.trigger(e,"hide.bs.tab",{relatedTarget:this._element})),!(j.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==o&&o.defaultPrevented)){this._activate(this._element,n);var r=function(){j.trigger(e,"hidden.bs.tab",{relatedTarget:t._element}),j.trigger(t._element,"shown.bs.tab",{relatedTarget:e})};i?this._activate(i,i.parentNode,r):r()}}},s._activate=function(t,e,i){var n=this,s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?Y.children(e,".active"):Y.find(":scope > li > .active",e))[0],o=i&&s&&s.classList.contains("fade"),r=function(){return n._transitionComplete(t,s,i)};if(s&&o){var a=h(s);s.classList.remove("show"),j.one(s,"transitionend",r),p(s,a)}else r()},s._transitionComplete=function(t,e,i){if(e){e.classList.remove("active");var n=Y.findOne(":scope > .dropdown-menu .active",e.parentNode);n&&n.classList.remove("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),_(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&t.parentNode.classList.contains("dropdown-menu")&&(t.closest(".dropdown")&&Y.find(".dropdown-toggle").forEach((function(t){return t.classList.add("active")})),t.setAttribute("aria-expanded",!0)),i&&i()},i.jQueryInterface=function(t){return this.each((function(){var e=x(this,"bs.tab")||new i(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},e(i,null,[{key:"DATA_KEY",get:function(){return"bs.tab"}}]),i}(N);j.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){t.preventDefault(),(x(this,"bs.tab")||new qe(this)).show()})),y((function(){var t=v();if(t){var e=t.fn.tab;t.fn.tab=qe.jQueryInterface,t.fn.tab.Constructor=qe,t.fn.tab.noConflict=function(){return t.fn.tab=e,qe.jQueryInterface}}}));var Ye={animation:"boolean",autohide:"boolean",delay:"number"},Xe={animation:!0,autohide:!0,delay:5e3},Ue=function(t){function s(e,i){var n;return(n=t.call(this,e)||this)._config=n._getConfig(i),n._timeout=null,n._setListeners(),n}n(s,t);var o=s.prototype;return o.show=function(){var t=this;if(!j.trigger(this._element,"show.bs.toast").defaultPrevented){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var e=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),j.trigger(t._element,"shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),_(this._element),this._element.classList.add("showing"),this._config.animation){var i=h(this._element);j.one(this._element,"transitionend",e),p(this._element,i)}else e()}},o.hide=function(){var t=this;if(this._element.classList.contains("show")&&!j.trigger(this._element,"hide.bs.toast").defaultPrevented){var e=function(){t._element.classList.add("hide"),j.trigger(t._element,"hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=h(this._element);j.one(this._element,"transitionend",e),p(this._element,i)}else e()}},o.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),j.off(this._element,"click.dismiss.bs.toast"),t.prototype.dispose.call(this),this._config=null},o._getConfig=function(t){return t=i({},Xe,q.getDataAttributes(this._element),"object"==typeof t&&t?t:{}),f("toast",t,this.constructor.DefaultType),t},o._setListeners=function(){var t=this;j.on(this._element,"click.dismiss.bs.toast",'[data-bs-dismiss="toast"]',(function(){return t.hide()}))},o._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},s.jQueryInterface=function(t){return this.each((function(){var e=x(this,"bs.toast");if(e||(e=new s(this,"object"==typeof t&&t)),"string"==typeof t){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t](this)}}))},e(s,null,[{key:"DefaultType",get:function(){return Ye}},{key:"Default",get:function(){return Xe}},{key:"DATA_KEY",get:function(){return"bs.toast"}}]),s}(N);return y((function(){var t=v();if(t){var e=t.fn.toast;t.fn.toast=Ue.jQueryInterface,t.fn.toast.Constructor=Ue,t.fn.toast.noConflict=function(){return t.fn.toast=e,Ue.jQueryInterface}}})),{Alert:F,Button:W,Carousel:K,Collapse:tt,Dropdown:ve,Modal:we,Popover:$e,ScrollSpy:Be,Tab:qe,Toast:Ue,Tooltip:Le}})),function(t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("object"==typeof module&&module.exports){var e=require("jquery");t(e),module.exports=e}else t(jQuery)}((function(t){function e(t){this.init(t)}e.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",insertMode:"prepend",constructor:e,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(e){t.extend(this,e),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw(),this.el.trigger("circle-inited")},initWidget:function(){this.canvas||(this.canvas=t("")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var e=this.canvas;if(e.width=this.size,e.height=this.size,this.ctx=e.getContext("2d"),window.devicePixelRatio>1){var i=window.devicePixelRatio;e.style.width=e.style.height=this.size+"px",e.width=e.height=this.size*i,this.ctx.scale(i,i)}},initFill:function(){var e,i=this,n=this.fill,s=this.ctx,o=this.size;if(!n)throw Error("The fill is not specified!");if("string"==typeof n&&(n={color:n}),n.color&&(this.arcFill=n.color),n.gradient){var r=n.gradient;if(1==r.length)this.arcFill=r[0];else if(r.length>1){for(var a=n.gradientAngle||0,l=n.gradientDirection||[o/2*(1-Math.cos(a)),o/2*(1+Math.sin(a)),o/2*(1+Math.cos(a)),o/2*(1-Math.sin(a))],c=s.createLinearGradient.apply(s,l),h=0;h")[0];n.width=i.size,n.height=i.size,n.getContext("2d").drawImage(e,0,0,o,o),i.arcFill=i.ctx.createPattern(n,"no-repeat"),i.drawFrame(i.lastFrameValue)}n.image&&(n.image instanceof Image?e=n.image:(e=new Image).src=n.image,e.complete?p():e.onload=p)},draw:function(){this.animation?this.drawAnimated(this.value):this.drawFrame(this.value)},drawFrame:function(t){this.lastFrameValue=t,this.ctx.clearRect(0,0,this.size,this.size),this.drawEmptyArc(t),this.drawArc(t)},drawArc:function(t){if(0!==t){var e=this.ctx,i=this.radius,n=this.getThickness(),s=this.startAngle;e.save(),e.beginPath(),this.reverse?e.arc(i,i,i-n/2,s-2*Math.PI*t,s):e.arc(i,i,i-n/2,s,s+2*Math.PI*t),e.lineWidth=n,e.lineCap=this.lineCap,e.strokeStyle=this.arcFill,e.stroke(),e.restore()}},drawEmptyArc:function(t){var e=this.ctx,i=this.radius,n=this.getThickness(),s=this.startAngle;t<1&&(e.save(),e.beginPath(),t<=0?e.arc(i,i,i-n/2,0,2*Math.PI):this.reverse?e.arc(i,i,i-n/2,s,s-2*Math.PI*t):e.arc(i,i,i-n/2,s+2*Math.PI*t,s),e.lineWidth=n,e.strokeStyle=this.emptyFill,e.stroke(),e.restore())},drawAnimated:function(e){var i=this,n=this.el,s=t(this.canvas);s.stop(!0,!1),n.trigger("circle-animation-start"),s.css({animationProgress:0}).animate({animationProgress:1},t.extend({},this.animation,{step:function(t){var s=i.animationStartValue*(1-t)+e*t;i.drawFrame(s),n.trigger("circle-animation-progress",[t,s])}})).promise().always((function(){n.trigger("circle-animation-end")}))},getThickness:function(){return t.isNumeric(this.thickness)?this.thickness:this.size/14},getValue:function(){return this.value},setValue:function(t){this.animation&&(this.animationStartValue=this.lastFrameValue),this.value=t,this.draw()}},t.circleProgress={defaults:e.prototype},t.easing.circleProgressEasing=function(t){return t<.5?.5*(t*=2)*t*t:1-.5*(t=2-2*t)*t*t},t.fn.circleProgress=function(i,n){var s="circle-progress",o=this.data(s);if("widget"==i){if(!o)throw Error('Calling "widget" method on not initialized instance is forbidden');return o.canvas}if("value"==i){if(!o)throw Error('Calling "value" method on not initialized instance is forbidden');if(void 0===n)return o.getValue();var r=arguments[1];return this.each((function(){t(this).data(s).setValue(r)}))}return this.each((function(){var n=t(this),o=n.data(s),r=t.isPlainObject(i)?i:{};if(o)o.init(r);else{var a=t.extend({},n.data());"string"==typeof a.fill&&(a.fill=JSON.parse(a.fill)),"string"==typeof a.animation&&(a.animation=JSON.parse(a.animation)),(r=t.extend(a,r)).el=n,o=new e(r),n.data(s,o)}}))}})),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s