bootstrap-italia 2.12.0 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/bootstrap-italia.min.css +1 -1
- package/dist/css/bootstrap-italia.min.css.map +1 -1
- package/dist/js/bootstrap-italia.bundle.min.js +1 -1
- package/dist/js/bootstrap-italia.min.js +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/src/js/version.js +1 -1
- package/src/scss/custom/_avatar.scss +75 -35
- package/src/scss/custom/_version.scss +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,(function(){"use strict";!function(){const e={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const e="data-focus-mouse",t="focus--mouse";class i{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((e=>{document.addEventListener(e,(e=>{this._usingMouse="mousedown"===e.type}))})),document.addEventListener("focusin",(i=>{this._usingMouse&&i.target&&(i.target.classList.add(t),i.target.setAttribute(e,!0))})),document.addEventListener("focusout",(i=>{i.target&&(i.target.classList.remove(t),i.target.setAttribute(e,!1))}))}}new i;const n=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new i,window.BOOTSTRAP_ITALIA_VERSION="2.12.0")};n();const s={ck3:{}},r={rememberChoice:(e,t)=>{s.ck3[e]=t,localStorage.setItem("bs-ck3",JSON.stringify(s.ck3))},isChoiceRemembered:e=>(s.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),s.ck3[e]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},o="splide",a=`data-${o}`,l={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function c(e){e.length=0}function u(e){return!f(e)&&"object"==typeof e}function h(e){return Array.isArray(e)}function d(e){return"string"==typeof e}function p(e){return void 0===e}function f(e){return null===e}function m(e){return e instanceof HTMLElement}function g(e){return h(e)?e:[e]}function y(e,t){g(e).forEach(t)}function _(e,t){return e.indexOf(t)>-1}function v(e,t){return e.push(...g(t)),e}const b=Array.prototype;function T(e,t,i){return b.slice.call(e,t,i)}function w(e,t,i){e&&y(t,(t=>{t&&e.classList[i?"add":"remove"](t)}))}function S(e,t){w(e,d(t)?t.split(" "):t,!0)}function E(e,t){y(t,e.appendChild.bind(e))}function C(e,t){y(e,(e=>{const i=t.parentNode;i&&i.insertBefore(e,t)}))}function k(e,t){return m(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function x(e,t){return e?T(e.children).filter((e=>k(e,t))):[]}function I(e,t){return t?x(e,t)[0]:e.firstElementChild}function A(e,t,i){if(e){let n=Object.keys(e);n=i?n.reverse():n;for(let i=0;i<n.length;i++){const s=n[i];if("__proto__"!==s&&!1===t(e[s],s))break}}return e}function L(e){return T(arguments,1).forEach((t=>{A(t,((i,n)=>{e[n]=t[n]}))})),e}function O(e,t){return A(t,((t,i)=>{h(t)?e[i]=t.slice():u(t)?e[i]=O(u(e[i])?e[i]:{},t):e[i]=t})),e}function P(e,t){e&&y(t,(t=>{e.removeAttribute(t)}))}function D(e,t,i){u(t)?A(t,((t,i)=>{D(e,i,t)})):f(i)?P(e,t):e.setAttribute(t,String(i))}function M(e,t,i){const n=document.createElement(e);return t&&(d(t)?S(n,t):D(n,t)),i&&E(i,n),n}function N(e,t,i){if(p(i))return getComputedStyle(e)[t];if(!f(i)){const{style:n}=e;i=`${i}`,n[t]!==i&&(n[t]=i)}}function R(e,t){N(e,"display",t)}function F(e,t){return e.getAttribute(t)}function B(e,t){return e&&e.classList.contains(t)}function U(e){return e.getBoundingClientRect()}function j(e){y(e,(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}))}function $(e){return I((new DOMParser).parseFromString(e,"text/html").body)}function q(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function H(e,t){return e&&e.querySelector(t)}function V(e,t){return T(e.querySelectorAll(t))}function z(e,t){w(e,t,!1)}function W(e){return d(e)?e:e?`${e}px`:""}function G(e,t=""){if(!e)throw new Error(`[${o}] ${t}`)}function X(e){setTimeout(e)}const K=()=>{};function Y(e){return requestAnimationFrame(e)}const{min:Q,max:J,floor:Z,ceil:ee,abs:te}=Math;function ie(e,t,i,n){const s=Q(t,i),r=J(t,i);return n?s<e&&e<r:s<=e&&e<=r}function ne(e,t,i){const n=Q(t,i),s=J(t,i);return Q(J(n,e),s)}function se(e){return+(e>0)-+(e<0)}function re(e,t){return y(t,(t=>{e=e.replace("%s",`${t}`)})),e}function oe(e){return e<10?`0${e}`:`${e}`}const ae={};const le="mounted",ce="ready",ue="move",he="moved",de="shifted",pe="click",fe="visible",me="hidden",ge="slide:keydown",ye="refresh",_e="updated",ve="resize",be="resized",Te="repositioned",we="scroll",Se="scrolled",Ee="destroy",Ce="navigation:mounted",ke="lazyload:loaded";function xe(e){const{event:t}=e,i={};let n=[];function s(e,t,i){r(e,t,((e,t)=>{n=n.filter((n=>!!(n[0]!==e||n[1]!==t||i&&n[2]!==i)||(e.removeEventListener(t,n[2],n[3]),!1)))}))}function r(e,t,i){y(e,(e=>{e&&t.split(" ").forEach(i.bind(null,e))}))}function o(){n=n.filter((e=>s(e[0],e[1]))),t.offBy(i)}return t.on(Ee,o,i),{on:function(e,n,s){t.on(e,n,i,s)},off:function(e){t.off(e,i)},emit:t.emit,bind:function(e,t,i,s){r(e,t,((e,t)=>{n.push([e,t,i,s]),e.addEventListener(t,i,s)}))},unbind:s,destroy:o}}function Ie(e,t,i,n){const{now:s}=Date;let r,o,a=0,l=!0,c=0;function u(){if(!l){const o=s()-r;if(o>=e?(a=1,r=s()):a=o/e,i&&i(a),1===a&&(t(),n&&++c>=n))return h();Y(u)}}function h(){l=!0}function d(){cancelAnimationFrame(o),a=0,o=0,l=!0}return{start:function(t){!t&&d(),r=s()-(t?a*e:0),l=!1,Y(u)},rewind:function(){r=s(),a=0,i&&i(a)},pause:h,cancel:d,set:function(t){e=t},isPaused:function(){return l}}}function Ae(e,t){let i;return function(){i||(i=Ie(0,(()=>{e.apply(this,arguments),i=null}),null,1),i.start())}}const Le="ttb",Oe={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};const Pe=o,De=`${o}__slider`,Me=`${o}__track`,Ne=`${o}__list`,Re=`${o}__slide`,Fe=`${Re}--clone`,Be=`${Re}__container`,Ue=`${o}__arrows`,je=`${o}__arrow`,$e=`${je}--prev`,qe=`${je}--next`,He=`${o}__pagination`,Ve=`${o}__progress`,ze=`${Ve}__bar`,We=`${o}__autoplay`,Ge=`${o}__play`,Xe=`${o}__pause`,Ke="is-active",Ye="is-prev",Qe="is-next",Je="is-visible",Ze="is-loading",et=[Ke,Je,Ye,Qe,Ze],tt={slide:Re,clone:Fe,arrows:Ue,arrow:je,prev:$e,next:qe,pagination:He,page:`${He}__page`,spinner:`${o}__spinner`};const it="role",nt="aria-controls",st="aria-current",rt="aria-label",ot="aria-hidden",at="tabindex",lt="aria-orientation",ct=[it,nt,st,rt,ot,lt,at,"disabled"],ut="slide",ht="loop",dt="fade";function pt(e,t,i,n){const{on:s,emit:r,bind:o,destroy:a}=xe(e),{Components:l,root:c,options:u}=e,{isNavigation:h,updateOnMove:d}=u,{resolve:p}=l.Direction,f=F(n,"style"),m=i>-1,g=I(n,`.${Be}`),y=u.focusableNodes&&V(n,u.focusableNodes);let _;function v(){const s=m?i:t,r=re(u.i18n.slideX,s+1),o=e.splides.map((e=>e.splide.root.id)).join(" ");D(n,rt,r),D(n,nt,o),D(n,it,"menuitem"),S(E())}function b(){_||T()}function T(){if(!_){const{index:i}=e;S(E()),function(e){const t=!e&&(!E()||m);D(n,ot,t||null),D(n,at,!t&&u.slideFocus?0:null),y&&y.forEach((e=>{D(e,at,t?-1:null)}));e!==B(n,Je)&&(w(n,Je,e),r(e?fe:me,C))}(function(){if(e.is(dt))return E();const t=U(l.Elements.track),i=U(n),s=p("left"),r=p("right");return Z(t[s])<=ee(i[s])&&Z(i[r])<=ee(t[r])}()),w(n,Ye,t===i-1),w(n,Qe,t===i+1)}}function S(e){e!==B(n,Ke)&&(w(n,Ke,e),h&&D(n,st,e||null),r(e?"active":"inactive",C))}function E(){const{index:n}=e;return n===t||u.cloneStatus&&n===i}const C={index:t,slideIndex:i,slide:n,container:g,isClone:m,mount:function(){m||(n.id=`${c.id}-slide${oe(t+1)}`),o(n,"click keydown",(e=>{r("click"===e.type?pe:ge,C,e)})),s([ye,Te,de,he,Se],T),s(Ce,v),d&&s(ue,b)},destroy:function(){_=!0,a(),z(n,et),P(n,ct),D(n,"style",f)},update:T,style:function(e,t,i){N(i&&g||n,e,t)},isWithin:function(i,n){let s=te(i-t);return m||!u.rewind&&!e.is(ht)||(s=Q(s,e.length-s)),s<=n}};return C}const ft=`${a}-interval`;const mt={passive:!1,capture:!0},gt="touchmove mousemove",yt="touchend touchcancel mouseup";const _t=["Left","Right","Up","Down"],vt="keydown";const bt=`${a}-lazy`,Tt=`${bt}-srcset`,wt=`[${bt}], [${Tt}]`;const St=[" ","Enter","Spacebar"];var Et=Object.freeze({__proto__:null,Options:function(e,t,i){const n=Ae(c);let s,r,o;function l(e){e&&removeEventListener("resize",n)}function c(){const t=(n=e=>e[1].matches,T(r).filter(n)[0]||[]);var n;t[0]!==o&&function(t){const n=i.breakpoints[t]||s;n.destroy?(e.options=s,e.destroy("completely"===n.destroy)):(e.state.is(5)&&(l(!0),e.mount()),e.options=n)}(o=t[0])}return{setup:function(){try{O(i,JSON.parse(F(e.root,a)))}catch(e){G(!1,e.message)}s=O({},i);const{breakpoints:t}=i;if(t){const e="min"===i.mediaQuery;r=Object.keys(t).sort(((t,i)=>e?+i-+t:+t-+i)).map((t=>[t,matchMedia(`(${e?"min":"max"}-width:${t}px)`)])),c()}},mount:function(){r&&addEventListener("resize",n)},destroy:l}},Direction:function(e,t,i){return{resolve:function(e,t){const{direction:n}=i;return Oe[e]["rtl"!==n||t?n===Le?0:-1:1]||e},orient:function(e){return e*("rtl"===i.direction?1:-1)}}},Elements:function(e,t,i){const{on:n}=xe(e),{root:s}=e,r={},a=[];let l,u,h,d;function p(){!function(){u=I(s,`.${De}`),h=H(s,`.${Me}`),d=I(h,`.${Ne}`),G(h&&d,"A track/list element is missing."),v(a,x(d,`.${Re}:not(.${Fe})`));const e=y(`.${We}`),t=y(`.${Ue}`);L(r,{root:s,slider:u,track:h,list:d,slides:a,arrows:t,autoplay:e,prev:H(t,`.${$e}`),next:H(t,`.${qe}`),bar:H(y(`.${Ve}`),`.${ze}`),play:H(e,`.${Ge}`),pause:H(e,`.${Xe}`)})}(),function(){const e=s.id||(t=o,`${t}${oe(ae[t]=(ae[t]||0)+1)}`);var t;s.id=e,h.id=h.id||`${e}-track`,d.id=d.id||`${e}-list`}(),S(s,l=_())}function f(){[s,h,d].forEach((e=>{P(e,"style")})),c(a),z(s,l)}function m(){f(),p()}function g(){z(s,l),S(s,l=_())}function y(e){return I(s,e)||I(u,e)}function _(){return[`${Pe}--${i.type}`,`${Pe}--${i.direction}`,i.drag&&`${Pe}--draggable`,i.isNavigation&&`${Pe}--nav`,Ke]}return L(r,{setup:p,mount:function(){n(ye,m,8),n(_e,g)},destroy:f})},Slides:function(e,t,i){const{on:n,emit:s,bind:r}=xe(e),{slides:o,list:a}=t.Elements,l=[];function u(){o.forEach(((e,t)=>{f(e,t,-1)}))}function h(){b((e=>{e.destroy()})),c(l)}function p(){h(),u()}function f(t,i,n){const s=pt(e,i,n,t);s.mount(),l.push(s)}function v(e){return e?T((e=>!e.isClone)):l}function b(e,t){v(t).forEach(e)}function T(e){return l.filter("function"==typeof e?e:t=>d(e)?k(t.slide,e):_(g(e),t.index))}return{mount:function(){u(),n(ye,p),n([le,ye],(()=>{l.sort(((e,t)=>e.index-t.index))}))},destroy:h,update:function(){b((e=>{e.update()}))},register:f,get:v,getIn:function(e){const{Controller:n}=t,s=n.toIndex(e),r=n.hasFocus()?1:i.perPage;return T((e=>ie(e.index,s,s+r-1)))},getAt:function(e){return T(e)[0]},add:function(e,t){y(e,(e=>{if(d(e)&&(e=$(e)),m(e)){const n=o[t];n?C(e,n):E(a,e),S(e,i.classes.slide),function(e,t){const i=V(e,"img");let{length:n}=i;n?i.forEach((e=>{r(e,"load error",(()=>{--n||t()}))})):t()}(e,s.bind(null,ve))}})),s(ye)},remove:function(e){j(T(e).map((e=>e.slide))),s(ye)},forEach:b,filter:T,style:function(e,t,i){b((n=>{n.style(e,t,i)}))},getLength:function(e){return e?o.length:l.length},isEnough:function(){return l.length>i.perPage}}},Layout:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{Slides:o}=t,{resolve:a}=t.Direction,{root:l,track:c,list:h}=t.Elements,{getAt:d}=o;let p,f;function m(){f=null,p=i.direction===Le,N(l,"maxWidth",W(i.width)),N(c,a("paddingLeft"),y(!1)),N(c,a("paddingRight"),y(!0)),g()}function g(){const e=U(l);f&&f.width===e.width&&f.height===e.height||(N(c,"height",function(){let e="";p&&(e=_(),G(e,"height or heightRatio is missing."),e=`calc(${e} - ${y(!1)} - ${y(!0)})`);return e}()),o.style(a("marginRight"),W(i.gap)),o.style("width",(i.autoWidth?"":W(i.fixedWidth)||(p?"":v()))||null),o.style("height",W(i.fixedHeight)||(p?i.autoHeight?"":v():_())||null,!0),f=e,r(be))}function y(e){const{padding:t}=i,n=a(e?"right":"left");return t&&W(t[n]||(u(t)?0:t))||"0px"}function _(){return W(i.height||U(h).width*i.heightRatio)}function v(){const e=W(i.gap);return`calc((100%${e&&` + ${e}`})/${i.perPage||1}${e&&` - ${e}`})`}function b(e,t){const i=d(e);if(i){const e=U(i.slide)[a("right")],n=U(h)[a("left")];return te(e-n)+(t?0:T())}return 0}function T(){const e=d(0);return e&&parseFloat(N(e.slide,a("marginRight")))||0}return{mount:function(){m(),s(window,"resize load",Ae(r.bind(this,ve))),n([_e,ye],m),n(ve,g)},listSize:function(){return U(h)[a("width")]},slideSize:function(e,t){const i=d(e||0);return i?U(i.slide)[a("width")]+(t?0:T()):0},sliderSize:function(){return b(e.length-1,!0)-b(-1,!0)},totalSize:b,getPadding:function(e){return parseFloat(N(c,a("padding"+(e?"Right":"Left"))))||0}}},Clones:function(e,t,i){const{on:n,emit:s}=xe(e),{Elements:r,Slides:o}=t,{resolve:a}=t.Direction,l=[];let u;function h(){(u=g())&&(!function(t){const n=o.get().slice(),{length:s}=n;if(s){for(;n.length<t;)v(n,n);v(n.slice(-t),n.slice(0,t)).forEach(((a,c)=>{const u=c<t,h=function(t,n){const s=t.cloneNode(!0);return S(s,i.classes.clone),s.id=`${e.root.id}-clone${oe(n+1)}`,s}(a.slide,c);u?C(h,n[0].slide):E(r.list,h),v(l,h),o.register(h,c-t+(u?0:s),a.index)}))}}(u),s(ve))}function p(){j(l),c(l)}function f(){p(),h()}function m(){u<g()&&s(ye)}function g(){let{clones:t}=i;if(e.is(ht)){if(!t){const n=function(e,t){if(d(t)){const i=M("div",{style:`width: ${t}; position: absolute;`},e);t=U(i).width,j(i)}return t}(r.list,i[a("fixedWidth")]);t=(n&&ee(U(r.track)[a("width")]/n)||i[a("autoWidth")]&&e.length||i.perPage)*(i.drag?(i.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){h(),n(ye,f),n([_e,ve],m)},destroy:p}},Move:function(e,t,i){const{on:n,emit:s}=xe(e),{slideSize:r,getPadding:o,totalSize:a,listSize:l,sliderSize:c}=t.Layout,{resolve:u,orient:h}=t.Direction,{list:d,track:f}=t.Elements;let m;function g(){S()||(t.Scroll.cancel(),y(e.index),s(Te))}function y(e){_(b(e,!0))}function _(t,i){if(!e.is(dt)){const n=i?t:function(t){if(e.is(ht)){const e=h(t-T()),i=E(!1,t)&&e<0,n=E(!0,t)&&e>0;(i||n)&&(t=v(t,n))}return t}(t);d.style.transform=`translate${u("X")}(${n}px)`,t!==n&&s(de)}}function v(e,t){const i=e-w(t),n=c();return e-=h(n*(ee(te(i)/n)||1))*(t?1:-1)}function b(t,n){const s=h(a(t-1)-function(e){const{focus:t}=i;return"center"===t?(l()-r(e,!0))/2:+t*r(e)||0}(t));return n?function(t){i.trimSpace&&e.is(ut)&&(t=ne(t,0,h(c()-l())));return t}(s):s}function T(){const e=u("left");return U(d)[e]-U(f)[e]+h(o(!1))}function w(e){return b(e?t.Controller.getEnd():0,!!i.trimSpace)}function S(){return e.state.is(4)&&i.waitForTransition}function E(e,t){t=p(t)?T():t;const i=!0!==e&&h(t)<h(w(!1)),n=!1!==e&&h(t)>h(w(!0));return i||n}return{mount:function(){m=t.Transition,n([le,be,_e,ye],g)},destroy:function(){P(d,"style")},move:function(n,r,o,a){if(!S()){const{set:l}=e.state,c=T();n!==r&&(m.cancel(),_(v(c,n>r),!0)),l(4),s(ue,r,o,n),m.start(r,(()=>{l(3),s(he,r,o,n),"move"===i.trimSpace&&n!==o&&c===T()?t.Controller.go(n>o?">":"<",!1,a):a&&a()}))}},jump:y,translate:_,shift:v,cancel:function(){_(T()),m.cancel()},toIndex:function(e){const i=t.Slides.get();let n=0,s=1/0;for(let t=0;t<i.length;t++){const r=i[t].index,o=te(b(r,!0)-e);if(!(o<=s))break;s=o,n=r}return n},toPosition:b,getPosition:T,getLimit:w,isBusy:S,exceededLimit:E}},Controller:function(e,t,i){const{on:n}=xe(e),{Move:s}=t,{getPosition:r,getLimit:o}=s,{isEnough:a,getLength:l}=t.Slides,c=e.is(ht),u=e.is(ut);let h,f,m,g=i.start||0,y=g;function _(){h=l(!0),f=i.perMove,m=i.perPage,g=ne(g,0,h-1)}function v(e,i,n,r,o){const a=i?e:I(e);t.Scroll.scroll(i||n?s.toPosition(a,!0):e,r,(()=>{A(s.toIndex(s.getPosition())),o&&o()}))}function b(e){return w(!1,e)}function T(e){return w(!0,e)}function w(e,t){const i=f||(L()?1:m),n=S(g+i*(e?-1:1),g);return-1!==n||!u||(s=r(),a=o(!e),l=1,te(s-a)<l)?t?n:C(n):e?0:E();var s,a,l}function S(e,t,n){if(a()){const s=E();e<0||e>s?e=ie(0,e,t,!0)||ie(s,t,e,!0)?k(x(e)):c?f||L()?e:e<0?-(h%m||m):h:i.rewind?e<0?s:0:-1:n||e===t||(e=f?e:k(x(t)+(e<t?-1:1)))}else e=-1;return e}function E(){let e=h-m;return(L()||c&&f)&&(e=h-1),J(e,0)}function C(e){return c?a()?e%h+(e<0?h:0):-1:e}function k(e){return ne(L()?e:m*e,0,E())}function x(e){return L()||(e=ie(e,h-m,h-1)?h-1:e,e=Z(e/m)),e}function I(e){const t=s.toIndex(e);return u?ne(t,0,E()):t}function A(e){e!==g&&(y=g,g=e)}function L(){return!p(i.focus)||i.isNavigation}return{mount:function(){_(),n([_e,ye],_,9)},go:function(e,t,n){const r=function(e){let t=g;if(d(e)){const[,i,n]=e.match(/([+\-<>])(\d+)?/)||[];"+"===i||"-"===i?t=S(g+ +`${i}${+n||1}`,g,!0):">"===i?t=n?k(+n):b(!0):"<"===i&&(t=T(!0))}else t=c?e:ne(e,0,E());return t}(e);if(i.useScroll)v(r,!0,!0,i.speed,n);else{const e=C(r);e>-1&&!s.isBusy()&&(t||e!==g)&&(A(e),s.move(r,e,y,n))}},scroll:v,getNext:b,getPrev:T,getAdjacent:w,getEnd:E,setIndex:A,getIndex:function(e){return e?y:g},toIndex:k,toPage:x,toDest:I,hasFocus:L}},Arrows:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{classes:o,i18n:a}=i,{Elements:l,Controller:c}=t;let u,h=l.arrows,d=l.prev,p=l.next;const f={};function m(){if(i.arrows&&(d&&p||(h=M("div",o.arrows),d=g(!0),p=g(!1),u=!0,E(h,[d,p]),C(h,I("slider"===i.arrows&&l.slider||e.root)))),d&&p)if(f.prev)R(h,!1===i.arrows?"none":"");else{const{id:e}=l.track;D(d,nt,e),D(p,nt,e),f.prev=d,f.next=p,function(){const{go:e}=c;n([le,he,_e,ye,Se],y),s(p,"click",(()=>{e(">",!0)})),s(d,"click",(()=>{e("<",!0)}))}(),r("arrows:mounted",d,p)}}function g(e){return $(`<button class="${o.arrow} ${e?o.prev:o.next}" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="${i.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"}" />`)}function y(){const t=e.index,i=c.getPrev(),n=c.getNext(),s=i>-1&&t<i?a.last:a.prev,o=n>-1&&t>n?a.first:a.next;d.disabled=i<0,p.disabled=n<0,D(d,rt,s),D(p,rt,o),r("arrows:updated",d,p,i,n)}return{arrows:f,mount:function(){m(),n(_e,m)},destroy:function(){u?j(h):(P(d,ct),P(p,ct))}}},Autoplay:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),o=Ie(i.interval,e.go.bind(e,">"),(function(e){const{bar:t}=l;t&&N(t,"width",100*e+"%"),r("autoplay:playing",e)})),{isPaused:a}=o,{Elements:l}=t;let c,u,h;function d(e){const t=e?"pause":"play",n=l[t];n&&(D(n,nt,l.track.id),D(n,rt,i.i18n[t]),s(n,"click",e?f:p))}function p(){a()&&t.Slides.isEnough()&&(o.start(!i.resetProgress),u=c=h=!1,r("autoplay:play"))}function f(e=!0){a()||(o.pause(),r("autoplay:pause")),h=e}function m(){h||(c||u?f(!1):p())}function g(){const n=t.Slides.getAt(e.index);o.set(n&&+F(n.slide,ft)||i.interval)}return{mount:function(){const{autoplay:e}=i;e&&(d(!0),d(!1),function(){const{root:e}=l;i.pauseOnHover&&s(e,"mouseenter mouseleave",(e=>{c="mouseenter"===e.type,m()}));i.pauseOnFocus&&s(e,"focusin focusout",(e=>{u="focusin"===e.type,m()}));n([ue,we,ye],o.rewind),n(ue,g)}(),"pause"!==e&&p())},destroy:o.cancel,play:p,pause:f,isPaused:a}},Cover:function(e,t,i){const{on:n}=xe(e);function s(e){t.Slides.forEach((t=>{const i=I(t.container||t.slide,"img");i&&i.src&&r(e,i,t)}))}function r(e,t,i){i.style("background",e?`center/cover no-repeat url("${t.src}")`:"",!0),R(t,e?"none":"")}return{mount:function(){i.cover&&(n(ke,((e,t)=>{r(!0,e,t)})),n([le,_e,ye],s.bind(null,!0)))},destroy:function(){s(!1)}}},Scroll:function(e,t,i){const{on:n,emit:s}=xe(e),{Move:r}=t,{getPosition:o,getLimit:a,exceededLimit:l}=r;let c,u;function h(t,n,f,m){const g=o();let y=1;var _;n=n||(_=te(t-g),J(_/1.5,800)),u=f,p(),c=Ie(n,d,(n=>{const s=o(),c=(g+(t-g)*function(e){const{easingFunc:t}=i;return t?t(e):1-Math.pow(1-e,4)}(n)-o())*y;var u;r.translate(s+c),e.is(ut)&&!m&&l()&&(y*=.6,te(c)<10&&(u=l(!1),h(a(!u),600,null,!0)))}),1),s(we),c.start()}function d(){const t=o(),i=r.toIndex(t);ie(i,0,e.length-1)||r.translate(r.shift(t,i>0),!0),u&&u(),s(Se)}function p(){c&&c.cancel()}function f(){c&&!c.isPaused()&&(p(),d())}return{mount:function(){n(ue,p),n([_e,ye],f)},destroy:p,scroll:h,cancel:f}},Drag:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Move:a,Scroll:l,Controller:c}=t,{track:h}=t.Elements,{resolve:d,orient:p}=t.Direction,{getPosition:f,exceededLimit:m}=a;let g,y,_,v,b,T,w,S,E,C=!1;function x(){const{drag:e}=i;F(!e),b="free"===e}function I(e){if(!S){const{noDrag:t}=i,n=R(e),s=!t||!k(e.target,t);w=!1,!s||!n&&e.button||(a.isBusy()?q(e,!0):(E=n?h:window,_=null,v=null,r(E,gt,A,mt),r(E,yt,L,mt),a.cancel(),l.cancel(),O(e)))}}function A(t){if(v||s("drag"),v=t,t.cancelable){const n=M(t)-M(y);if(T){a.translate(g+function(t){return t/(C&&e.is(ut)?5:1)}(n));const i=N(t)-N(y)>200,r=C!==(C=m());(i||r)&&O(t),s("dragging"),w=!0,q(t)}else{let{dragMinThreshold:e}=i;e=u(e)?e:{mouse:0,touch:+e||10},T=te(n)>(R(t)?e.touch:e.mouse),D()&&q(t)}}}function L(n){o(E,gt,A),o(E,yt,L);const{index:r}=e;if(v){if(T||n.cancelable&&D()){const s=function(t){if(e.is(ht)||!C){const e=y===v&&_||y,i=M(v)-M(e),n=N(t)-N(e),s=N(t)-N(v)<200;if(n&&s)return i/n}return 0}(n),o=function(e){return f()+se(e)*Q(te(e)*(i.flickPower||600),b?1/0:t.Layout.listSize()*(i.flickMaxPages||1))}(s);b?c.scroll(o):e.is(dt)?c.go(r+p(se(s))):c.go(c.toDest(o),!0),q(n)}s("dragged")}else b||f()===a.toPosition(r)||c.go(r,!0);T=!1}function O(e){_=y,y=e,g=f()}function P(e){!S&&w&&q(e,!0)}function D(){return te(M(v)-M(y))>te(M(v,!0)-M(y,!0))}function M(e,t){return(R(e)?e.touches[0]:e)[`page${d(t?"Y":"X")}`]}function N(e){return e.timeStamp}function R(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function F(e){S=e}return{mount:function(){r(h,gt,K,mt),r(h,yt,K,mt),r(h,"touchstart mousedown",I,mt),r(h,"click",P,{capture:!0}),r(h,"dragstart",q),n([le,_e],x)},disable:F,isDragging:function(){return T}}},Keyboard:function(e,t,i){const{on:n,bind:s,unbind:r}=xe(e),{root:o}=e,{resolve:a}=t.Direction;let l,c;function u(){const{keyboard:e}=i;e&&("focused"===e?(l=o,D(o,at,0)):l=window,s(l,vt,f))}function h(){r(l,vt),m(l)&&P(l,at)}function d(){const e=c;c=!0,X((()=>{c=e}))}function p(){h(),u()}function f(t){if(!c){const{key:i}=t,n=_(_t,i)?`Arrow${i}`:i;n===a("ArrowLeft")?e.go("<"):n===a("ArrowRight")&&e.go(">")}}return{mount:function(){u(),n(_e,p),n(ue,d)},destroy:h,disable:function(e){c=e}}},LazyLoad:function(e,t,i){const{on:n,off:s,bind:r,emit:o}=xe(e),a="sequential"===i.lazyLoad;let l=[],c=0;function u(){d(),h()}function h(){t.Slides.forEach((e=>{V(e.slide,wt).forEach((t=>{const n=F(t,bt),s=F(t,Tt);if(n!==t.src||s!==t.srcset){const r=i.classes.spinner,o=t.parentElement,a=I(o,`.${r}`)||M("span",r,o);D(a,it,"presentation"),l.push({_img:t,_Slide:e,src:n,srcset:s,_spinner:a}),!t.src&&R(t,"none")}}))})),a&&m()}function d(){c=0,l=[]}function p(){l=l.filter((t=>{const n=i.perPage*((i.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,n)||f(t)})),l.length||s(he)}function f(e){const{_img:t}=e;S(e._Slide.slide,Ze),r(t,"load error",(t=>{!function(e,t){const{_Slide:i}=e;z(i.slide,Ze),t||(j(e._spinner),R(e._img,""),o(ke,e._img,i),o(ve));a&&m()}(e,"error"===t.type)})),["srcset","src"].forEach((i=>{e[i]&&(D(t,i,e[i]),P(t,"src"===i?bt:Tt))}))}function m(){c<l.length&&f(l[c++])}return{mount:function(){i.lazyLoad&&(h(),n(ye,u),a||n([le,ye,he,Se],p))},destroy:d}},Pagination:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Slides:a,Elements:l,Controller:u}=t,{hasFocus:h,getIndex:d}=u,p=[];let f;function m(){g(),i.pagination&&a.isEnough()&&(!function(){const{length:t}=e,{classes:n,i18n:s,perPage:o}=i,c="slider"===i.pagination&&l.slider||l.root,u=h()?t:ee(t/o);f=M("ul",n.pagination,c);for(let e=0;e<u;e++){const t=M("li",null,f),i=M("button",{class:n.page,type:"button"},t),l=a.getIn(e).map((e=>e.slide.id)),c=!h()&&o>1?s.pageX:s.slideX;r(i,"click",y.bind(null,e)),D(i,nt,l.join(" ")),D(i,rt,re(c,e+1)),p.push({li:t,button:i,page:e})}}(),s("pagination:mounted",{list:f,items:p},_(e.index)),v())}function g(){f&&(j(f),p.forEach((e=>{o(e.button,"click")})),c(p),f=null)}function y(e){u.go(`>${e}`,!0,(()=>{const t=a.getAt(u.toIndex(e));var i;t&&((i=t.slide).setActive&&i.setActive()||i.focus({preventScroll:!0}))}))}function _(e){return p[u.toPage(e)]}function v(){const e=_(d(!0)),t=_(d());e&&(z(e.button,Ke),P(e.button,st)),t&&(S(t.button,Ke),D(t.button,st,!0)),s("pagination:updated",{list:f,items:p},e,t)}return{items:p,mount:function(){m(),n([_e,ye],m),n([ue,Se],v)},destroy:g,getAt:_,update:v}},Sync:function(e,t,i){const{list:n}=t.Elements,s=[];function r(){e.splides.forEach((t=>{var i;!t.isParent&&(i=t.splide,[e,i].forEach((t=>{const n=xe(t),r=t===e?i:e;n.on(ue,((e,t,i)=>{r.go(r.is(ht)?i:e)})),s.push(n)})))})),i.isNavigation&&function(){const t=xe(e),{on:i}=t;i(pe,l),i(ge,u),i([le,_e],a),D(n,it,"menu"),s.push(t),t.emit(Ce,e.splides)}()}function o(){P(n,ct),s.forEach((e=>{e.destroy()})),c(s)}function a(){D(n,lt,i.direction!==Le?"horizontal":null)}function l(t){e.go(t.index)}function u(e,t){_(St,t.key)&&(l(e),q(t))}return{mount:r,destroy:o,remount:function(){o(),r()}}},Wheel:function(e,t,i){const{bind:n}=xe(e);function s(n){if(n.cancelable){const{deltaY:s}=n;if(s){const r=s<0;e.go(r?"<":">"),function(n){return!i.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(n)}(r)&&q(n)}}}return{mount:function(){i.wheel&&n(t.Elements.track,"wheel",s,mt)}}}});const Ct={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:tt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function kt(e,t,i){const{on:n}=xe(e);return{mount:function(){n([le,ye],(()=>{X((()=>{t.Slides.style("transition",`opacity ${i.speed}ms ${i.easing}`)}))}))},start:function(e,i){const{track:n}=t.Elements;N(n,"height",W(U(n).height)),X((()=>{i(),N(n,"height","")}))},cancel:K}}function xt(e,t,i){const{bind:n}=xe(e),{Move:s,Controller:r}=t,{list:o}=t.Elements;let a;function l(){c("")}function c(e){N(o,"transition",e)}return{mount:function(){n(o,"transitionend",(e=>{e.target===o&&a&&(l(),a())}))},start:function(t,n){const o=s.toPosition(t,!0),l=s.getPosition(),u=function(t){const{rewindSpeed:n}=i;if(e.is(ut)&&n){const e=r.getIndex(!0),i=r.getEnd();if(0===e&&t>=i||e>=i&&0===t)return n}return i.speed}(t);te(o-l)>=1&&u>=1?(c(`transform ${u}ms ${i.easing}`),s.translate(o,!0),a=n):(s.jump(t),n())},cancel:l}}const It=class{constructor(e,t){this.event=function(){let e={};function t(t,n){i(t,((t,i)=>{const s=e[t];e[t]=s&&s.filter((e=>e._key?e._key!==n:n||e._namespace!==i))}))}function i(e,t){g(e).join(" ").split(" ").forEach((e=>{const i=e.split(".");t(i[0],i[1])}))}return{on:function(t,n,s,r=10){i(t,((t,i)=>{e[t]=e[t]||[],v(e[t],{_event:t,_callback:n,_namespace:i,_priority:r,_key:s}).sort(((e,t)=>e._priority-t._priority))}))},off:t,offBy:function(i){A(e,((e,n)=>{t(n,i)}))},emit:function(t){(e[t]||[]).forEach((e=>{e._callback.apply(e,T(arguments,1))}))},destroy:function(){e={}}}}(),this.Components={},this.state=function(e){let t=e;return{set:function(e){t=e},is:function(e){return _(g(e),t)}}}(1),this.splides=[],this._options={},this._Extensions={};const i=d(e)?H(document,e):e;G(i,`${i} is invalid.`),this.root=i,O(Ct,It.defaults),O(O(this._options,Ct),t||{})}mount(e,t){const{state:i,Components:n}=this;G(i.is([1,5]),"Already mounted!"),i.set(1),this._Components=n,this._Transition=t||this._Transition||(this.is(dt)?kt:xt),this._Extensions=e||this._Extensions;return A(L({},Et,this._Extensions,{Transition:this._Transition}),((e,t)=>{const i=e(this,n,this._options);n[t]=i,i.setup&&i.setup()})),A(n,(e=>{e.mount&&e.mount()})),this.emit(le),S(this.root,"is-initialized"),i.set(3),this.emit(ce),this}sync(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),e.Components.Sync.remount()),this}go(e){return this._Components.Controller.go(e),this}on(e,t){return this.event.on(e,t,null,20),this}off(e){return this.event.off(e),this}emit(e){return this.event.emit(e,...T(arguments,1)),this}add(e,t){return this._Components.Slides.add(e,t),this}remove(e){return this._Components.Slides.remove(e),this}is(e){return this._options.type===e}refresh(){return this.emit(ye),this}destroy(e=!0){const{event:t,state:i}=this;return i.is(1)?t.on(ce,this.destroy.bind(this,e),this):(A(this._Components,(t=>{t.destroy&&t.destroy(e)}),!0),t.emit(Ee),t.destroy(),e&&c(this.splides),i.set(5)),this}get options(){return this._options}set options(e){const{_options:t}=this;O(t,e),this.state.is(1)||this.emit(_e,t)}get length(){return this._Components.Slides.getLength(!0)}get index(){return this._Components.Controller.getIndex()}};let At=It;At.defaults={},At.STATES=l;const Lt=new Map,Ot={set(e,t,i){Lt.has(e)||Lt.set(e,new Map);const n=Lt.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>Lt.has(e)&&Lt.get(e).get(t)||null,remove(e,t){if(!Lt.has(e))return;const i=Lt.get(e);i.delete(t),0===i.size&&Lt.delete(e)}},Pt="transitionend",Dt=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},Mt=e=>{const t=Dt(e);return t&&document.querySelector(t)?t:null},Nt=e=>{const t=Dt(e);return t?document.querySelector(t):null},Rt=e=>{e.dispatchEvent(new Event(Pt))},Ft=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Bt=e=>Ft(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,Ut=e=>{if(!Ft(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},jt=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),$t=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?$t(e.parentNode):null},qt=()=>{},Ht=e=>{e.offsetHeight},Vt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,zt=[],Wt=()=>"rtl"===document.documentElement.dir,Gt=e=>{var t;t=()=>{const t=Vt();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(zt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of zt)e()})),zt.push(t)):t()},Xt=e=>{"function"==typeof e&&e()},Kt=(e,t,i=!0)=>{if(!i)return void Xt(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let s=!1;const r=({target:i})=>{i===t&&(s=!0,t.removeEventListener(Pt,r),Xt(e))};t.addEventListener(Pt,r),setTimeout((()=>{s||Rt(t)}),n)},Yt=(e,t,i,n)=>{const s=e.length;let r=e.indexOf(t);return-1===r?!i&&n?e[s-1]:e[0]:(r+=i?1:-1,n&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},Qt=/[^.]*(?=\..*)\.|.*/,Jt=/\..*/,Zt=/::\d+$/,ei={};let ti=1;const ii={mouseenter:"mouseover",mouseleave:"mouseout"},ni=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 si(e,t){return t&&`${t}::${ti++}`||e.uidEvent||ti++}function ri(e){const t=si(e);return e.uidEvent=t,ei[t]=ei[t]||{},ei[t]}function oi(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function ai(e,t,i){const n="string"==typeof t,s=n?i:t||i;let r=hi(e);return ni.has(r)||(r=e),[n,s,r]}function li(e,t,i,n,s){if("string"!=typeof t||!e)return;let[r,o,a]=ai(t,i,n);if(t in ii){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};o=e(o)}const l=ri(e),c=l[a]||(l[a]={}),u=oi(c,o,r?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=si(o,t.replace(Qt,"")),d=r?function(e,t,i){return function n(s){const r=e.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return pi(s,{delegateTarget:o}),n.oneOff&&di.off(e,s.type,t,i),i.apply(o,[s])}}(e,i,o):function(e,t){return function i(n){return pi(n,{delegateTarget:e}),i.oneOff&&di.off(e,n.type,t),t.apply(e,[n])}}(e,o);d.delegationSelector=r?i:null,d.callable=o,d.oneOff=s,d.uidEvent=h,c[h]=d,e.addEventListener(a,d,r)}function ci(e,t,i,n,s){const r=oi(t[i],n,s);r&&(e.removeEventListener(i,r,Boolean(s)),delete t[i][r.uidEvent])}function ui(e,t,i,n){const s=t[i]||{};for(const r of Object.keys(s))if(r.includes(n)){const n=s[r];ci(e,t,i,n.callable,n.delegationSelector)}}function hi(e){return e=e.replace(Jt,""),ii[e]||e}const di={on(e,t,i,n){li(e,t,i,n,!1)},one(e,t,i,n){li(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,r,o]=ai(t,i,n),a=o!==t,l=ri(e),c=l[o]||{},u=t.startsWith(".");if(void 0===r){if(u)for(const i of Object.keys(l))ui(e,l,i,t.slice(1));for(const i of Object.keys(c)){const n=i.replace(Zt,"");if(!a||t.includes(n)){const t=c[i];ci(e,l,o,t.callable,t.delegationSelector)}}}else{if(!Object.keys(c).length)return;ci(e,l,o,r,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=Vt();let s=null,r=!0,o=!0,a=!1;t!==hi(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),r=!s.isPropagationStopped(),o=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());let l=new Event(t,{bubbles:r,cancelable:!0});return l=pi(l,i),a&&l.preventDefault(),o&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function pi(e,t){for(const[i,n]of Object.entries(t||{}))try{e[i]=n}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function fi(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function mi(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const gi={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${mi(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${mi(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=fi(e.dataset[n])}return t},getDataAttribute:(e,t)=>fi(e.getAttribute(`data-bs-${mi(t)}`))};let yi=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Ft(t)?gi.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Ft(t)?gi.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const n of Object.keys(t)){const s=t[n],r=e[n],o=Ft(r)?"element":null==(i=r)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}};class _i extends yi{constructor(e,t){super(),(e=Bt(e))&&(this._element=e,this._config=this._getConfig(t),Ot.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ot.remove(this._element,this.constructor.DATA_KEY),di.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Kt(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ot.get(Bt(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.2.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const vi={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!jt(e)&&Ut(e)))}},bi={slideFocus:!0,i18n:{prev:"Slide precedente",next:"Slide successiva",first:"Vai alla prima slide",last:"Vai all’ultima slide",slideX:"Vai alla slide %s",pageX:"Vai a pagina %s",play:"Attiva autoplay",pause:"Pausa autoplay"}},Ti={"it-carousel-landscape-abstract-three-cols":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!1}}},"it-carousel-landscape-abstract-three-cols-arrow-visible":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!0,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!0},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!0}}},"it-big-img":{type:"loop",perPage:1,gap:48,padding:{left:320,right:320},arrows:!1,breakpoints:{768:{perPage:1,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:160,right:160},arrows:!1}}},"it-standard-image":{type:"loop",perPage:3,gap:24,padding:{left:48,right:48},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!1},992:{perPage:2,gap:24,padding:{left:48,right:48},arrows:!1}}},"it-carousel-landscape-abstract":{type:"slide",perPage:1,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:24,right:24},arrows:!1}}},"it-calendar-wrapper":{type:"slide",perPage:4,gap:0,padding:{left:0,right:0},arrows:!1,breakpoints:{560:{perPage:1,gap:0,padding:{left:24,right:24},arrows:!1},768:{perPage:2,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:3,gap:0,padding:{left:0,right:0},arrows:!1}}}};class wi extends _i{constructor(e){super(e),this._config=this._getConfig(),this._splide=new At(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let e=Object.assign({},bi);return Object.keys(Ti).forEach((t=>{this._element.classList.contains(t)&&(e=Object.assign({},e,Ti[t]))})),e}}di.on(window,"load.bs.carousel.data-api",(()=>{vi.find("[data-bs-carousel-splide]").forEach((e=>{wi.getOrCreateInstance(e)}))}));const Si=".bs.inputlabel",Ei=`focus${Si}`,Ci=`blur${Si}`,ki=`change${Si}`,xi="active";class Ii{constructor(e){this._element=e,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=e=>document.querySelector("#"+CSS.escape(e.getAttribute("for")));_init(){const e=this._getLabel();e&&!e.classList.contains(xi)&&(this._labelOut(),this._labelOver()),e&&null===e.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?di.on(this._element,Ci,(()=>{this._labelOut()})):(di.on(this._element,Ei,(()=>{this._labelOut()})),di.on(this._element,Ci,(()=>{this._labelOver()})),di.on(this._element,ki,(()=>{this._labelToggle()}))))}_getLabel(){return vi.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const e=this._getLabel();e&&e.classList.add(xi)}_labelOver(){if(this._isEmpty()){const e=this._getLabel();e&&e.classList.remove(xi)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const Ai=".bs.inputnumber",Li=`click${Ai}`,Oi=`change${Ai}`,Pi=`click${Ai}.data-api`,Di=".input-number",Mi='input[data-bs-input][type="number"]',Ni='button[class^="input-number-"]';class Ri extends _i{constructor(e){super(e),this._wrapperElement=this._element.closest(Di),this._label=new Ii(e),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(vi.find(Ni,this._wrapperElement).forEach((e=>{di.on(e,Li,(t=>{t.preventDefault(),this._incrDecr(e.classList.contains("input-number-sub")),this._label._labelOut()}))})),di.on(this._element,Oi,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let e=null;e="calc(70px + "+this._element.value.length+"ch)",e&&(this._element.style.width=e)}}_incrDecr(e){var t=0;if(""!==this._element.value&&(t=parseFloat(this._element.value)),!isNaN(t)){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=t+i*(e?-1:1),di.trigger(this._element,Oi),di.trigger(this._element,"input")}}_checkLimit(){const e=parseFloat(this._element.value);if(!isNaN(e)){let t=e;const i=parseFloat(this._element.getAttribute("max")),n=parseFloat(this._element.getAttribute("min"));n&&e<n&&(t=n),i&&e>i&&(t=i),this._element.value=t}this._inputResize()}}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Mi+", label").forEach((function(e){const t=Ii.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(Mi)&&i.parentNode.querySelector(Ni)&&Ri.getOrCreateInstance(i)}))})),di.on(document,Pi,Ni,(function(){const e=this.closest(Di);if(e){const t=vi.findOne(Mi,e);t&&Ri.getOrCreateInstance(t)}})));const Fi="show";class Bi extends _i{constructor(e){super(e),this._isShown=!e.matches("[aria-hidden=true]"),this._isTransitioning=!1}static get NAME(){return"dimmer"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(Fi),this._queueCallback((()=>this._hideElement()),this._element,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),e&&Ht(this._element),this._element.classList.add(Fi);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}di.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const e=Nt(this),t=Bi.getOrCreateInstance(e);this.checked?t.show():t.hide()}));const Ui=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;di.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),jt(this))return;const s=Nt(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()}))},ji=".bs.notification",$i=`click${ji}.data-api`,qi=`hidden${ji}`,Hi=`show${ji}`,Vi={timeout:0},zi="show";class Wi extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=this._element.classList.contains(zi),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(e,t){if(this._isShown||this._isTransitioning)return;const i=e||this._getElementTimeout(t);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(zi),this._queueCallback((()=>this._hideElement()),this._element,e)}toggle(e){this._isShown?this.hide():this.show(null,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(e){const t=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),t&&Ht(this._element),this._element.classList.add(zi);this._queueCallback((()=>{this._isTransitioning=!1,e&&this._setTimeout(e,(()=>this.hide()))}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(e){return e={...Vi,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_getElementTimeout(e){const t=e?parseInt(e.getAttribute("data-bs-timeout")):null;return t>0?t:this._config.timeout}_setTimeout(e,t){this._clearTimeout(),setTimeout(t,e)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}di.on(document,$i,'[data-bs-toggle="notification"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),di.one(t,Hi,(e=>{e.defaultPrevented||di.one(t,qi,(()=>{Ut(this)&&this.focus()}))}));Wi.getOrCreateInstance(t).toggle(this)})),Ui(Wi);const Gi="cookiebar",Xi=".bs.cookiebar",Ki=".data-api",Yi="cookies_consent",Qi=`close${Xi}`,Ji=`closed${Xi}`,Zi=`load${Xi}${Ki}`,en=`click${Xi}${Ki}`,tn="show";class nn extends _i{constructor(e){super(e),this._isShown=this._element.classList.contains(tn),this._isTransitioning=!1}static get NAME(){return Gi}static get VERSION(){return"5.0.0"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(tn),this._queueCallback((()=>this._hideElement()),this._element,e)}accept(e){e=e||this._element;const t=this._getRootElement(e);this._triggerCloseEvent(t).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=Yi+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),e&&Ht(this._element),this._element.classList.add(tn);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var e=new Date;e.setDate(e.getDate()+30);var t=escape("true")+"; expires="+e.toUTCString();"undefined"!=typeof document&&(document.cookie=Yi+"="+t+"; path=/; SameSite=Strict")}_getRootElement(e){const t=Nt(e);let i=null;return t&&(i=t),i||(i=e.closest(".cookiebar")),i}_triggerCloseEvent(e){return di.trigger(e,Qi)}_removeElement(e){e.classList.remove(tn),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-live","off"),di.trigger(e,Ji),this.dispose()}static _handleAccept(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _handleConsent(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var e,t,i,n=document.cookie.split(";");for(e=0;e<n.length;e++)if(t=n[e].substring(0,n[e].indexOf("=")),i=n[e].substring(n[e].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==Yi)return unescape(i)}}}di.on(document,en,'[data-bs-accept="cookiebar"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),jt(this))return;const t=Nt(this)||this.closest(`.${Gi}`);nn.getOrCreateInstance(t).accept()})),di.on(window,Zi,(function(){if(!nn._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((e=>{nn.getOrCreateInstance(e).show()}))}}));const sn=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},rn=(e,t)=>{let i=null;return t.forEach(((t,n)=>{t===e&&(i=n)})),i},on=(e,t,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=rn(e,t);let s=null;if(i.isLimit&&i.isDirectionTop&&n>0)s=t[0];else if(i.isLimit&&n<t.length-1)s=t[t.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;s=t[0===n?t.length-1:n-1]}else{if(!i.loop&&n===t.length-1)return;s=t[n===t.length-1?0:n+1]}s&&s.focus()},an="pagescroll-scroll-disabled";let ln=!1,cn="undefined"==typeof document?0:document.scrollingElement.scrollTop;const un="undefined"==typeof document?null:document.querySelector("html");"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{ln&&(document.scrollingElement.scrollTop=cn)}));const hn=".bs.navbarcollapsible",dn=`click${hn}.data-api`,pn=`click${hn}`,fn=`keyup${hn}`,mn=`keydown${hn}`,gn=`hide${hn}`,yn=`hidden${hn}`,_n=`show${hn}`,vn=`shown${hn}`,bn=`resize${hn}`,Tn="show",wn="expanded",Sn=".close-menu",En=".nav-link",Cn=".nav-item .list-item",kn=".it-heading-link",xn=".it-footer-link";class In extends _i{constructor(e){super(e),this._isShown=this._element.classList.contains(wn),this._isTransitioning=!1,this._isMobile=sn(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=vi.findOne(".close-div button",this._element),this._btnBack=vi.findOne(".it-back-button",this._element),this._menuWrapper=vi.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=vi.find([En,Cn,kn,xn,Sn].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(e){if(this._isShown||this._isTransitioning)return;di.trigger(this._element,_n,{relatedTarget:e}).defaultPrevented||(this._btnBack&&this._btnBack.classList.add(Tn),this._isShown=!0,"undefined"!=typeof document&&(ln=!0,cn=document.scrollingElement.scrollTop,un.classList.add(an)),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;if(di.trigger(this._element,gn).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._btnBack&&this._btnBack.classList.remove(Tn),this._overlay&&this._overlay.classList.remove(Tn),this._element.classList.remove(wn),"undefined"!=typeof document&&(ln=!1,un.classList.remove(an)),this._queueCallback((()=>this._hideElement()),this._menuWrapper,e)}toggle(e){this._isShown?this.hide():this.show(e)}dispose(){di.off(window,bn),super.dispose()}_bindEvents(){di.on(window,bn,(()=>this._onResize())),this._overlay&&di.on(this._overlay,pn,(()=>this.hide())),di.on(this._btnClose,pn,(e=>{e.preventDefault(),this.hide()})),di.on(this._btnBack,pn,(e=>{e.preventDefault(),this.hide()})),this._menuItems.forEach((e=>{di.on(e,mn,(e=>this._isMobile&&this._onMenuItemKeyDown(e))),di.on(e,fn,(e=>this._isMobile&&this._onMenuItemKeyUp(e))),di.on(e,pn,(e=>this._isMobile&&this._onMenuItemClick(e)))}))}_onResize(){this._isMobile=sn()}_onMenuItemKeyUp(e){"Shift"===e.key&&(this._isKeyShift=!1)}_onMenuItemKeyDown(e){"Shift"===e.key&&(this._isKeyShift=!0),"Tab"===e.key&&(e.preventDefault(),this._focusNext())}_onMenuItemClick(e){this.currItemIdx=rn(e.currentTarget,this._menuItems)}_isAnimated(){return!0}_isElementHidden(e){return null===e.offsetParent}_showElement(){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-expanded",!0),this._overlay&&(this._overlay.style.display="block"),e&&Ht(this._element),this._element.classList.add(wn),this._overlay&&this._overlay.classList.add(Tn);this._queueCallback((()=>{this._isTransitioning=!1;const e=this._getNextVisibleItem(0);e.item&&(e.item.focus(),this._currItemIdx=e.index),di.trigger(this._element,vn)}),this._menuWrapper,e)}_hideElement(){this._overlay&&(this._overlay.style.display="none"),this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-expanded"),this._isTransitioning=!1,di.trigger(this._element,yn)}_setOverlay(){this._overlay=vi.findOne(".overlay",this._element),this._isAnimated&&this._overlay.classList.add("fade")}_focusNext(){let e=this._currItemIdx+(this._isKeyShift?-1:1);e<0?e=this._menuItems.length-1:e>=this._menuItems.length&&(e=0);const t=this._getNextVisibleItem(e,this._isKeyShift);t.item&&(t.item.focus(),this._currItemIdx=t.index)}_getNextVisibleItem(e,t){let i=null,n=null,s=e,r=t?-1:1,o=!1;for(;!(i||s==e&&o);)s==e&&(o=!0),this._isElementHidden(this._menuItems[s])||(i=this._menuItems[s],n=s),s+=r,s<0?s=this._menuItems.length-1:s>=this._menuItems.length&&(s=0);return{item:i,index:n}}}di.on(document,dn,'[data-bs-toggle="navbarcollapsible"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),di.one(t,_n,(e=>{e.defaultPrevented||di.one(t,yn,(()=>{Ut(this)&&this.focus()}))}));In.getOrCreateInstance(t).toggle(this)}));const An=".bs.accordion",Ln=`keydown${An}`,On=`keydown${An}.data-api`,Pn='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class Dn extends _i{constructor(e){super(e),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(e,t,i){const n={ArrowDown:e=>this._focusNext(e),ArrowUp:e=>this._focusPrev(e),Home:e=>this._focusFirst(e),End:e=>this._focusLast(e)};"function"==typeof n[e]&&(i&&i.preventDefault(),n[e](t))}_bindEvents(){vi.find(Pn,this._element).forEach((e=>{di.on(e,Ln,(e=>{this.handleKeyDown(e.key,e.currentTarget,e)}))}))}_getHeadButtons(){return vi.find(":scope > "+Pn,this._element)}_focusNext(e){on(e,this._getHeadButtons(),{loop:!0})}_focusPrev(e){on(e,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(e){on(e,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(e){on(e,this._getHeadButtons(),{isLimit:!0})}}var Mn;di.on(document,On,Pn,(function(e){const t=this.closest(".accordion");if(t){Dn.getOrCreateInstance(t).handleKeyDown(e.key,this,e)}}));var Nn=new Uint8Array(16);function Rn(){if(!Mn&&!(Mn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mn(Nn)}const Fn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Bn=[],Un=0;Un<256;++Un)Bn.push((Un+256).toString(16).substr(1));function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Bn[e[t+0]]+Bn[e[t+1]]+Bn[e[t+2]]+Bn[e[t+3]]+"-"+Bn[e[t+4]]+Bn[e[t+5]]+"-"+Bn[e[t+6]]+Bn[e[t+7]]+"-"+Bn[e[t+8]]+Bn[e[t+9]]+"-"+Bn[e[t+10]]+Bn[e[t+11]]+Bn[e[t+12]]+Bn[e[t+13]]+Bn[e[t+14]]+Bn[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Fn.test(e)}(i))throw TypeError("Stringified UUID is invalid");return i}function $n(e,t,i){var n=(e=e||{}).random||(e.rng||Rn)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,jn(n)}let qn=!1,Hn=[];class Vn{constructor(e,t){this.id=e,this._callback=t}dispose(){zn(this.id)}_execute(e){this._callback(e)}}const zn=e=>{Hn=Hn.filter((t=>t.id!==e))},Wn=e=>{if("undefined"!=typeof document){if(Hn.length||document.addEventListener("scroll",(e=>{qn||(window.requestAnimationFrame((()=>{Hn.forEach((t=>t.cb._execute(e))),qn=!1})),qn=!0)})),"function"==typeof e){const t=new Vn($n(),e);return Hn.push({id:t.id,cb:t}),t}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}};var Gn={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Xn={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Kn=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Yn={CSS:{},springs:{}};function Qn(e,t,i){return Math.min(Math.max(e,t),i)}function Jn(e,t){return e.indexOf(t)>-1}function Zn(e,t){return e.apply(null,t)}var es={arr:function(e){return Array.isArray(e)},obj:function(e){return Jn(Object.prototype.toString.call(e),"Object")},pth:function(e){return es.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||es.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return es.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return es.hex(e)||es.rgb(e)||es.hsl(e)},key:function(e){return!Gn.hasOwnProperty(e)&&!Xn.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function ts(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function is(e,t){var i=ts(e),n=Qn(es.und(i[0])?1:i[0],.1,100),s=Qn(es.und(i[1])?100:i[1],.1,100),r=Qn(es.und(i[2])?10:i[2],.1,100),o=Qn(es.und(i[3])?0:i[3],.1,100),a=Math.sqrt(s/n),l=r/(2*Math.sqrt(s*n)),c=l<1?a*Math.sqrt(1-l*l):0,u=l<1?(l*a-o)/c:-o+a;function h(e){var i=t?t*e/1e3:e;return i=l<1?Math.exp(-i*l*a)*(1*Math.cos(c*i)+u*Math.sin(c*i)):(1+u*i)*Math.exp(-i*a),0===e||1===e?e:1-i}return t?h:function(){var t=Yn.springs[e];if(t)return t;for(var i=1/6,n=0,s=0;;)if(1===h(n+=i)){if(++s>=16)break}else s=0;var r=n*i*1e3;return Yn.springs[e]=r,r}}function ns(e){return void 0===e&&(e=10),function(t){return Math.ceil(Qn(t,1e-6,1)*e)*(1/e)}}var ss,rs,os=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function n(e){return 3*e}function s(e,s,r){return((t(s,r)*e+i(s,r))*e+n(s))*e}function r(e,s,r){return 3*t(s,r)*e*e+2*i(s,r)*e+n(s)}return function(t,i,n,o){if(0<=t&&t<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(t!==i||n!==o)for(var l=0;l<11;++l)a[l]=s(l*e,t,n);return function(e){return t===i&&n===o||0===e||1===e?e:s(c(e),i,o)}}function c(i){for(var o=0,l=1;10!==l&&a[l]<=i;++l)o+=e;--l;var c=o+(i-a[l])/(a[l+1]-a[l])*e,u=r(c,t,n);return u>=.001?function(e,t,i,n){for(var o=0;o<4;++o){var a=r(t,i,n);if(0===a)return t;t-=(s(t,i,n)-e)/a}return t}(i,c,t,n):0===u?c:function(e,t,i,n,r){var o,a,l=0;do{(o=s(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a}while(Math.abs(o)>1e-7&&++l<10);return a}(i,o,o+e,t,n)}}}(),as=(ss={linear:function(){return function(e){return e}}},rs={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Expo:function(){return function(e){return e?Math.pow(2,10*e-10):0}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var i=Qn(e,1,10),n=Qn(t,.1,2);return function(e){return 0===e||1===e?e:-i*Math.pow(2,10*(e-1))*Math.sin((e-1-n/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint"].forEach((function(e,t){rs[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(rs).forEach((function(e){var t=rs[e];ss["easeIn"+e]=t,ss["easeOut"+e]=function(e,i){return function(n){return 1-t(e,i)(1-n)}},ss["easeInOut"+e]=function(e,i){return function(n){return n<.5?t(e,i)(2*n)/2:1-t(e,i)(-2*n+2)/2}},ss["easeOutIn"+e]=function(e,i){return function(n){return n<.5?(1-t(e,i)(1-2*n))/2:(t(e,i)(2*n-1)+1)/2}}})),ss);function ls(e,t){if(es.fnc(e))return e;var i=e.split("(")[0],n=as[i],s=ts(e);switch(i){case"spring":return is(e,t);case"cubicBezier":return Zn(os,s);case"steps":return Zn(ns,s);default:return Zn(n,s)}}function cs(e){try{return document.querySelectorAll(e)}catch(e){return}}function us(e,t){for(var i=e.length,n=arguments.length>=2?arguments[1]:void 0,s=[],r=0;r<i;r++)if(r in e){var o=e[r];t.call(n,o,r,e)&&s.push(o)}return s}function hs(e){return e.reduce((function(e,t){return e.concat(es.arr(t)?hs(t):t)}),[])}function ds(e){return es.arr(e)?e:(es.str(e)&&(e=cs(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function ps(e,t){return e.some((function(e){return e===t}))}function fs(e){var t={};for(var i in e)t[i]=e[i];return t}function ms(e,t){var i=fs(e);for(var n in e)i[n]=t.hasOwnProperty(n)?t[n]:e[n];return i}function gs(e,t){var i=fs(e);for(var n in t)i[n]=es.und(e[n])?t[n]:e[n];return i}function ys(e){return es.rgb(e)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+i[1]+",1)":t:es.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,n){return t+t+i+i+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(i[1],16)+","+parseInt(i[2],16)+","+parseInt(i[3],16)+",1)"}(e):es.hsl(e)?function(e){var t,i,n,s=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(s[1],10)/360,o=parseInt(s[2],10)/100,a=parseInt(s[3],10)/100,l=s[4]||1;function c(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}if(0==o)t=i=n=a;else{var u=a<.5?a*(1+o):a+o-a*o,h=2*a-u;t=c(h,u,r+1/3),i=c(h,u,r),n=c(h,u,r-1/3)}return"rgba("+255*t+","+255*i+","+255*n+","+l+")"}(e):void 0;var t,i}function _s(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function vs(e,t){return es.fnc(e)?e(t.target,t.id,t.total):e}function bs(e,t){return e.getAttribute(t)}function Ts(e,t,i){if(ps([i,"deg","rad","turn"],_s(t)))return t;var n=Yn.CSS[t+i];if(!es.und(n))return n;var s=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(s),s.style.position="absolute",s.style.width=100+i;var o=100/s.offsetWidth;r.removeChild(s);var a=o*parseFloat(t);return Yn.CSS[t+i]=a,a}function ws(e,t,i){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return i?Ts(e,s,i):s}}function Ss(e,t){return es.dom(e)&&!es.inp(e)&&(!es.nil(bs(e,t))||es.svg(e)&&e[t])?"attribute":es.dom(e)&&ps(Kn,t)?"transform":es.dom(e)&&"transform"!==t&&ws(e,t)?"css":null!=e[t]?"object":void 0}function Es(e){if(es.dom(e)){for(var t,i=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,s=new Map;t=n.exec(i);)s.set(t[1],t[2]);return s}}function Cs(e,t,i,n){var s=Jn(t,"scale")?1:0+function(e){return Jn(e,"translate")||"perspective"===e?"px":Jn(e,"rotate")||Jn(e,"skew")?"deg":void 0}(t),r=Es(e).get(t)||s;return i&&(i.transforms.list.set(t,r),i.transforms.last=t),n?Ts(e,r,n):r}function ks(e,t,i,n){switch(Ss(e,t)){case"transform":return Cs(e,t,n,i);case"css":return ws(e,t,i);case"attribute":return bs(e,t);default:return e[t]||0}}function xs(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=_s(e)||0,s=parseFloat(t),r=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return s+r+n;case"-":return s-r+n;case"*":return s*r+n}}function Is(e,t){if(es.col(e))return ys(e);if(/\s/g.test(e))return e;var i=_s(e),n=i?e.substr(0,e.length-i.length):e;return t?n+t:n}function As(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Ls(e){for(var t,i=e.points,n=0,s=0;s<i.numberOfItems;s++){var r=i.getItem(s);s>0&&(n+=As(t,r)),t=r}return n}function Os(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*bs(e,"r")}(e);case"rect":return function(e){return 2*bs(e,"width")+2*bs(e,"height")}(e);case"line":return function(e){return As({x:bs(e,"x1"),y:bs(e,"y1")},{x:bs(e,"x2"),y:bs(e,"y2")})}(e);case"polyline":return Ls(e);case"polygon":return function(e){var t=e.points;return Ls(e)+As(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Ps(e,t){var i=t||{},n=i.el||function(e){for(var t=e.parentNode;es.svg(t)&&es.svg(t.parentNode);)t=t.parentNode;return t}(e),s=n.getBoundingClientRect(),r=bs(n,"viewBox"),o=s.width,a=s.height,l=i.viewBox||(r?r.split(" "):[0,0,o,a]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:o,h:a,vW:l[2],vH:l[3]}}function Ds(e,t,i){function n(i){void 0===i&&(i=0);var n=t+i>=1?t+i:0;return e.el.getPointAtLength(n)}var s=Ps(e.el,e.svg),r=n(),o=n(-1),a=n(1),l=i?1:s.w/s.vW,c=i?1:s.h/s.vH;switch(e.property){case"x":return(r.x-s.x)*l;case"y":return(r.y-s.y)*c;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function Ms(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=Is(es.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:es.str(e)||t?n.split(i):[]}}function Ns(e){return us(e?hs(es.arr(e)?e.map(ds):ds(e)):[],(function(e,t,i){return i.indexOf(e)===t}))}function Rs(e){var t=Ns(e);return t.map((function(e,i){return{target:e,id:i,total:t.length,transforms:{list:Es(e)}}}))}function Fs(e,t){var i=fs(t);if(/^spring/.test(i.easing)&&(i.duration=is(i.easing)),es.arr(e)){var n=e.length;2===n&&!es.obj(e[0])?e={value:e}:es.fnc(t.duration)||(i.duration=t.duration/n)}var s=es.arr(e)?e:[e];return s.map((function(e,i){var n=es.obj(e)&&!es.pth(e)?e:{value:e};return es.und(n.delay)&&(n.delay=i?0:t.delay),es.und(n.endDelay)&&(n.endDelay=i===s.length-1?t.endDelay:0),n})).map((function(e){return gs(e,i)}))}function Bs(e,t){var i=[],n=t.keyframes;for(var s in n&&(t=gs(function(e){for(var t=us(hs(e.map((function(e){return Object.keys(e)}))),(function(e){return es.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),i={},n=function(n){var s=t[n];i[s]=e.map((function(e){var t={};for(var i in e)es.key(i)?i==s&&(t.value=e[i]):t[i]=e[i];return t}))},s=0;s<t.length;s++)n(s);return i}(n),t)),t)es.key(s)&&i.push({name:s,tweens:Fs(t[s],e)});return i}function Us(e,t){var i;return e.tweens.map((function(n){var s=function(e,t){var i={};for(var n in e){var s=vs(e[n],t);es.arr(s)&&1===(s=s.map((function(e){return vs(e,t)}))).length&&(s=s[0]),i[n]=s}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(n,t),r=s.value,o=es.arr(r)?r[1]:r,a=_s(o),l=ks(t.target,e.name,a,t),c=i?i.to.original:l,u=es.arr(r)?r[0]:c,h=_s(u)||_s(l),d=a||h;return es.und(o)&&(o=c),s.from=Ms(u,d),s.to=Ms(xs(o,u),d),s.start=i?i.end:0,s.end=s.start+s.delay+s.duration+s.endDelay,s.easing=ls(s.easing,s.duration),s.isPath=es.pth(r),s.isPathTargetInsideSVG=s.isPath&&es.svg(t.target),s.isColor=es.col(s.from.original),s.isColor&&(s.round=1),i=s,s}))}var js={css:function(e,t,i){return e.style[t]=i},attribute:function(e,t,i){return e.setAttribute(t,i)},object:function(e,t,i){return e[t]=i},transform:function(e,t,i,n,s){if(n.list.set(t,i),t===n.last||s){var r="";n.list.forEach((function(e,t){r+=t+"("+e+") "})),e.style.transform=r}}};function $s(e,t){Rs(e).forEach((function(e){for(var i in t){var n=vs(t[i],e),s=e.target,r=_s(n),o=ks(s,i,r,e),a=xs(Is(n,r||_s(o)),o),l=Ss(s,i);js[l](s,i,a,e.transforms,!0)}}))}function qs(e,t){return us(hs(e.map((function(e){return t.map((function(t){return function(e,t){var i=Ss(e.target,t.name);if(i){var n=Us(t,e),s=n[n.length-1];return{type:i,property:t.name,animatable:e,tweens:n,duration:s.end,delay:n[0].delay,endDelay:s.endDelay}}}(e,t)}))}))),(function(e){return!es.und(e)}))}function Hs(e,t){var i=e.length,n=function(e){return e.timelineOffset?e.timelineOffset:0},s={};return s.duration=i?Math.max.apply(Math,e.map((function(e){return n(e)+e.duration}))):t.duration,s.delay=i?Math.min.apply(Math,e.map((function(e){return n(e)+e.delay}))):t.delay,s.endDelay=i?s.duration-Math.max.apply(Math,e.map((function(e){return n(e)+e.duration-e.endDelay}))):t.endDelay,s}var Vs=0;var zs=[],Ws=function(){var e;function t(i){for(var n=zs.length,s=0;s<n;){var r=zs[s];r.paused?(zs.splice(s,1),n--):(r.tick(i),s++)}e=s>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Xs.suspendWhenDocumentHidden&&(Gs()?e=cancelAnimationFrame(e):(zs.forEach((function(e){return e._onDocumentVisibility()})),Ws()))})),function(){e||Gs()&&Xs.suspendWhenDocumentHidden||!(zs.length>0)||(e=requestAnimationFrame(t))}}();function Gs(){return!!document&&document.hidden}function Xs(e){void 0===e&&(e={});var t,i=0,n=0,s=0,r=0,o=null;function a(e){var t=window.Promise&&new Promise((function(e){return o=e}));return e.finished=t,t}var l=function(e){var t=ms(Gn,e),i=ms(Xn,e),n=Bs(i,e),s=Rs(e.targets),r=qs(s,n),o=Hs(r,i),a=Vs;return Vs++,gs(t,{id:a,children:[],animatables:s,animations:r,duration:o.duration,delay:o.delay,endDelay:o.endDelay})}(e);function c(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function u(e){return l.reversed?l.duration-e:e}function h(){i=0,n=u(l.currentTime)*(1/Xs.speed)}function d(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,i=l.animations,n=i.length;t<n;){var s=i[t],r=s.animatable,o=s.tweens,a=o.length-1,c=o[a];a&&(c=us(o,(function(t){return e<t.end}))[0]||c);for(var u=Qn(e-c.start-c.delay,0,c.duration)/c.duration,h=isNaN(u)?1:c.easing(u),d=c.to.strings,p=c.round,f=[],m=c.to.numbers.length,g=void 0,y=0;y<m;y++){var _=void 0,v=c.to.numbers[y],b=c.from.numbers[y]||0;_=c.isPath?Ds(c.value,h*v,c.isPathTargetInsideSVG):b+h*(v-b),p&&(c.isColor&&y>2||(_=Math.round(_*p)/p)),f.push(_)}var T=d.length;if(T){g=d[0];for(var w=0;w<T;w++){d[w];var S=d[w+1],E=f[w];isNaN(E)||(g+=S?E+S:E+" ")}}else g=f[0];js[s.type](r.target,s.property,g,r.transforms),s.currentValue=g,t++}}function f(e){l[e]&&!l.passThrough&&l[e](l)}function m(e){var h=l.duration,m=l.delay,g=h-l.endDelay,y=u(e);l.progress=Qn(y/h*100,0,100),l.reversePlayback=y<l.currentTime,t&&function(e){if(l.reversePlayback)for(var i=r;i--;)d(e,t[i]);else for(var n=0;n<r;n++)d(e,t[n])}(y),!l.began&&l.currentTime>0&&(l.began=!0,f("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,f("loopBegin")),y<=m&&0!==l.currentTime&&p(0),(y>=g&&l.currentTime!==h||!h)&&p(h),y>m&&y<g?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,f("changeBegin")),f("change"),p(y)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,f("changeComplete")),l.currentTime=Qn(y,0,h),l.began&&f("update"),e>=h&&(n=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(i=s,f("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&c()):(l.paused=!0,l.completed||(l.completed=!0,f("loopComplete"),f("complete"),!l.passThrough&&"Promise"in window&&(o(),a(l)))))}return a(l),l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var i=r=t.length;i--;)l.children[i].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l._onDocumentVisibility=h,l.set=function(e,t){return $s(e,t),l},l.tick=function(e){s=e,i||(i=s),m((s+(n-i))*Xs.speed)},l.seek=function(e){m(u(e))},l.pause=function(){l.paused=!0,h()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,zs.push(l),h(),Ws())},l.reverse=function(){c(),l.completed=!l.reversed,h()},l.restart=function(){l.reset(),l.play()},l.remove=function(e){Ys(Ns(e),l)},l.reset(),l.autoplay&&l.play(),l}function Ks(e,t){for(var i=t.length;i--;)ps(e,t[i].animatable.target)&&t.splice(i,1)}function Ys(e,t){var i=t.animations,n=t.children;Ks(e,i);for(var s=n.length;s--;){var r=n[s],o=r.animations;Ks(e,o),o.length||r.children.length||n.splice(s,1)}i.length||n.length||t.pause()}Xs.version="3.2.1",Xs.speed=1,Xs.suspendWhenDocumentHidden=!0,Xs.running=zs,Xs.remove=function(e){for(var t=Ns(e),i=zs.length;i--;){Ys(t,zs[i])}},Xs.get=ks,Xs.set=$s,Xs.convertPx=Ts,Xs.path=function(e,t){var i=es.str(e)?cs(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:Ps(i),totalLength:Os(i)*(n/100)}}},Xs.setDashoffset=function(e){var t=Os(e);return e.setAttribute("stroke-dasharray",t),t},Xs.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?ls(t.easing):null,s=t.grid,r=t.axis,o=t.from||0,a="first"===o,l="center"===o,c="last"===o,u=es.arr(e),h=u?parseFloat(e[0]):parseFloat(e),d=u?parseFloat(e[1]):0,p=_s(u?e[1]:e)||0,f=t.start||0+(u?h:0),m=[],g=0;return function(e,t,y){if(a&&(o=0),l&&(o=(y-1)/2),c&&(o=y-1),!m.length){for(var _=0;_<y;_++){if(s){var v=l?(s[0]-1)/2:o%s[0],b=l?(s[1]-1)/2:Math.floor(o/s[0]),T=v-_%s[0],w=b-Math.floor(_/s[0]),S=Math.sqrt(T*T+w*w);"x"===r&&(S=-T),"y"===r&&(S=-w),m.push(S)}else m.push(Math.abs(o-_));g=Math.max.apply(Math,m)}n&&(m=m.map((function(e){return n(e/g)*g}))),"reverse"===i&&(m=m.map((function(e){return r?e<0?-1*e:-e:Math.abs(g-e)})))}return f+(u?(d-h)/g:h)*(Math.round(100*m[t])/100)+p}},Xs.timeline=function(e){void 0===e&&(e={});var t=Xs(e);return t.duration=0,t.add=function(i,n){var s=zs.indexOf(t),r=t.children;function o(e){e.passThrough=!0}s>-1&&zs.splice(s,1);for(var a=0;a<r.length;a++)o(r[a]);var l=gs(i,ms(Xn,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=es.und(n)?c:xs(n,c),o(t),t.seek(l.timelineOffset);var u=Xs(l);o(u),r.push(u);var h=Hs(r,e);return t.delay=h.delay,t.endDelay=h.endDelay,t.duration=h.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Xs.easing=ls,Xs.penner=as,Xs.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const Qs={duration:800,easing:"easeInOutSine"},Js=(e,t)=>{if("undefined"==typeof document)return;const i=("object"==typeof t?t:{}).complete,n=window.document.scrollingElement||window.document.body||window.document.documentElement,s=n.style.scrollBehavior;t={scrollTop:e||0,...Qs,..."object"==typeof t?t:{}},n.style.scrollBehavior="auto",t.complete=e=>{n.style.scrollBehavior=s,"function"==typeof i&&i(e)},Xs({targets:n,...t})},Zs="active",er="ul.link-list",tr="a.nav-link",ir=`${tr}.${Zs}`,nr=`${tr}[href^="#"]`,sr={scrollPadding:10,duration:800,easing:"easeInOutSine"};class rr extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._togglerElement=vi.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=vi.findOne(".it-page-sections-container"),this._collapsible=this._getCollapsible(),this._isCollapseOpened=!1,this._callbackQueue=[],this._scrollCb=null,this._bindEvents()}static get NAME(){return"navscroll"}setScrollPadding(e){this._config.scrollPadding=e}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(e){return e={...sr,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){this._scrollCb=Wn((()=>this._onScroll())),this._collapsible&&(di.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),di.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),vi.find(nr,this._element).forEach((e=>{e.addEventListener("click",(()=>{const t=()=>this._scrollToHash(e.hash);this._isCollapseOpened?(this._callbackQueue.push(t),this._collapsible.hide()):t()}))})),di.on(window,"load",(()=>{setTimeout((()=>this._onScroll()),150)}))}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const e=this._callbackQueue.shift();"function"==typeof e&&e()}this._isCollapseOpened=!1}_getParentLinks(e){const t=[];let i=e.closest(er),n=null,s=!1;for(;i&&!s;){const e=i.closest("li.nav-link, li.nav-item");if(e){const i=e.querySelector(tr);i&&t.push(i)}n=i,i=(i.parentElement||i).closest(er),i===n&&(s=!0)}return t}_decorateToggler(e){if(this._togglerElement){const t=vi.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(t),this._togglerElement.append(e)}}_scrollToHash(e){const t=vi.findOne(e,this._sectionContainer);t&&(Js(t.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing}),history.pushState?history.pushState(null,null,e):location.hash=e)}_updateProgress(e){if(!e)return;const t=vi.find(".it-navscroll-progressbar");if(t){const i=Math.abs(e.getBoundingClientRect().top)/e.getBoundingClientRect().height*100,n=Math.min(100,Math.max(0,i));t.forEach((t=>{e.getBoundingClientRect().top<=0?(t.style.width=n+"%",t.setAttribute("aria-valuenow",n)):(t.style.width="0%",t.setAttribute("aria-valuenow",0))}))}}_onScroll(){const e=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const t=document.scrollingElement.scrollTop-e,i=vi.find(tr,this._element),n=this._getScrollPadding();vi.find(".it-page-section").forEach(((s,r)=>{if(s.offsetTop-e<=t+n&&(vi.find(ir,this._element).forEach((e=>{e.classList.remove(Zs)})),r<i.length)){const e=i[r];this._getParentLinks(e).forEach((e=>{e.classList.add(Zs)})),e.classList.add(Zs),this._decorateToggler(e.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const e=vi.findOne(".navbar-collapsable",this._element);return e?In.getOrCreateInstance(e):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}vi.find("[data-bs-navscroll]").map((e=>{rr.getOrCreateInstance(e)}));const or=".bs.sticky",ar=`resize${or}`,lr=`on${or}`,cr=`off${or}`,ur="bs-is-sticky",hr="bs-is-fixed",dr='[data-bs-toggle="sticky"]',pr={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class fr extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._isSticky=!1,this._wrapper=null,this._stickyTarget=vi.findOne(Mt(this._element),this._element)||this._element,this._stickyTargetMobile=vi.findOne(this._element.getAttribute("data-bs-target-mobile"),this._element)||this._stickyTarget,this._stickyLimit=0,this._stickyLimitMobile=0,this._setLimit(),this._scrollCb=null,this._isMobile=sn(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){di.off(window,ar),this._scrollCb.dispose(),super.dispose()}static get NAME(){return"sticky"}_getConfig(e){return e={...pr,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){di.on(window,ar,(()=>this._onResize())),this._scrollCb=Wn((()=>this._onScroll()))}_onResize(){this._isMobile=sn(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let e=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach(((t,i)=>{const n=t.getBoundingClientRect();e-=n.height+(0===i?parseFloat(t.style.top):0)})),e>0?e:0}_cumulativeOffset(e){let t=0,i=0;do{t+=e.offsetTop||0,i+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const e=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>e?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let e=ur;this._isTypeSticky()||(e=hr,this._wrapper=this._createWrapper()),this._element.classList.add(e),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",di.trigger(this._element,lr)}}_unsetSticky(){if(this._isSticky){let e=ur;this._isTypeSticky()||(e=hr,this._destroyWrapper()),this._element.classList.remove(e),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,di.trigger(this._element,cr)}}_createWrapper(){if("undefined"==typeof document)return;const e=document.createElement("div");return e.classList.add("bs-it-sticky-wrapper"),e.style.width="100%",e.style.height=this._element.getBoundingClientRect().height+"px",e.style.overflow="hidden",this._element.parentNode.insertBefore(e,this._element),e.appendChild(this._element),e}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return vi.find(dr).filter((e=>{const t=fr.getInstance(e);return!(!t||!t._isSticky||e===this._element)}))}_getPositionTop(){let e=0;return this._config.stackable?(this._getStickySimblings().forEach(((t,i)=>{const n=t.getBoundingClientRect();e+=n.height+(0===i?parseFloat(t.style.top):0)})),e):e+this._config.paddingTop}}Wn((()=>{vi.find(dr).map((e=>{fr.getOrCreateInstance(e)}))}));const mr="cloned-element",gr=`.${mr}`,yr=new Map;class _r{constructor(e){if(yr.get(e))return null;this._element=e,this._elementObj=fr.getOrCreateInstance(e),yr.set(e,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(e){return yr.get(e)||new this(e)}_bindEvents(){this._element.addEventListener("on.bs.sticky",(()=>this._toggleClonedElement(!0))),this._element.addEventListener("off.bs.sticky",(()=>this._toggleClonedElement(!1)))}_toggleClonedElement(e=!0){if(!Ut(vi.findOne(".custom-navbar-toggler",this._element))){const t=vi.findOne(".menu-wrapper",this._element);if(e){const e=vi.findOne(".it-brand-wrapper",this._element),i=vi.findOne(".it-search-wrapper",this._element),n=vi.findOne(".it-user-wrapper",this._element),s=e?e.cloneNode(!0):null,r=i?i.cloneNode(!0):null,o=n?n.cloneNode(!0):null;s&&t.insertBefore(s,t.childNodes[0]).classList.add(mr),r&&t.appendChild(r).classList.add(mr),o&&(t.appendChild(o).classList.add(mr),t.appendChild(o).classList.remove("show"))}else vi.find(gr,this._element).forEach((e=>{e.parentElement.removeChild(e)}))}}}Wn((()=>{vi.find(".it-header-sticky").map((e=>{_r.getOrCreateInstance(e)}))}));var vr=Object.defineProperty,br=(e,t,i)=>(((e,t,i)=>{t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);const Tr=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,wr=/^[0-9]+$/,Sr=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,Er=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;var Cr=(e=>(e.Required="required",e.Email="email",e.MinLength="minLength",e.MaxLength="maxLength",e.Password="password",e.Number="number",e.MaxNumber="maxNumber",e.MinNumber="minNumber",e.StrongPassword="strongPassword",e.CustomRegexp="customRegexp",e.MinFilesCount="minFilesCount",e.MaxFilesCount="maxFilesCount",e.Files="files",e))(Cr||{}),kr=(e=>(e.Required="required",e))(kr||{}),xr=(e=>(e.Label="label",e.LabelArrow="labelArrow",e))(xr||{});const Ir=[{key:Cr.Required,dict:{en:"The field is required"}},{key:Cr.Email,dict:{en:"Email has invalid format"}},{key:Cr.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:Cr.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:Cr.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:Cr.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:Cr.Number,dict:{en:"Value should be a number"}},{key:Cr.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:Cr.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:Cr.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:Cr.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:Cr.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],Ar=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then,Lr=e=>Array.isArray(e)?e.filter((e=>e.length>0)):"string"==typeof e&&e.trim()?[...e.split(" ").filter((e=>e.length>0))]:[],Or=e=>e instanceof Element||e instanceof HTMLDocument,Pr={errorFieldStyle:{color:"#b81111",border:"1px solid #B81111"},errorFieldCssClass:"just-validate-error-field",successFieldCssClass:"just-validate-success-field",errorLabelStyle:{color:"#b81111"},errorLabelCssClass:"just-validate-error-label",successLabelCssClass:"just-validate-success-label",focusInvalidField:!0,lockForm:!0,testingMode:!1,validateBeforeSubmitting:!1};class Dr{constructor(e,t,i){br(this,"form",null),br(this,"fields",{}),br(this,"groupFields",{}),br(this,"errors",{}),br(this,"isValid",!1),br(this,"isSubmitted",!1),br(this,"globalConfig",Pr),br(this,"errorLabels",{}),br(this,"successLabels",{}),br(this,"eventListeners",[]),br(this,"dictLocale",Ir),br(this,"currentLocale","en"),br(this,"customStyleTags",{}),br(this,"onSuccessCallback"),br(this,"onFailCallback"),br(this,"tooltips",[]),br(this,"lastScrollPosition"),br(this,"isScrollTick"),br(this,"fieldIds",new Map),br(this,"getKeyByFieldSelector",(e=>this.fieldIds.get(e))),br(this,"getFieldSelectorByKey",(e=>{for(const[t,i]of this.fieldIds)if(e===i)return t})),br(this,"setKeyByFieldSelector",(e=>{if(this.fieldIds.has(e))return this.fieldIds.get(e);const t=String(this.fieldIds.size+1);return this.fieldIds.set(e,t),t})),br(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((e=>{e.refresh()}))})),br(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),br(this,"formSubmitHandler",(e=>{e.preventDefault(),this.isSubmitted=!0,this.validateHandler(e)})),br(this,"handleFieldChange",(e=>{let t;for(const i in this.fields){if(this.fields[i].elem===e){t=i;break}}t&&this.validateField(t,!0)})),br(this,"handleGroupChange",(e=>{let t,i;for(const n in this.groupFields){const s=this.groupFields[n];if(s.elems.find((t=>t===e))){t=s,i=n;break}}t&&i&&this.validateGroup(i,t)})),br(this,"handlerChange",(e=>{e.target&&(this.handleFieldChange(e.target),this.handleGroupChange(e.target),this.renderErrors())})),this.initialize(e,t,i)}initialize(e,t,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=Pr,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof e){const t=document.querySelector(e);if(!t)throw Error(`Form with ${e} selector not found! Please check the form selector`);this.setForm(t)}else{if(!(e instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(e)}if(this.globalConfig={...Pr,...t},i&&(this.dictLocale=[...i,...Ir]),this.isTooltip()){const e=document.createElement("style");e.textContent=".just-validate-error-label[data-tooltip=true]{position:fixed;padding:4px 8px;background:#423f3f;color:#fff;white-space:nowrap;z-index:10;border-radius:4px;transform:translateY(-5px)}.just-validate-error-label[data-tooltip=true]:before{content:'';width:0;height:0;border-left:solid 5px transparent;border-right:solid 5px transparent;border-bottom:solid 5px #423f3f;position:absolute;z-index:3;display:block;bottom:-5px;transform:rotate(180deg);left:calc(50% - 5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]{transform:translateX(-5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]:before{right:-7px;bottom:auto;left:auto;top:calc(50% - 2px);transform:rotate(90deg)}.just-validate-error-label[data-tooltip=true][data-direction=right]{transform:translateX(5px)}.just-validate-error-label[data-tooltip=true][data-direction=right]:before{right:auto;bottom:auto;left:-7px;top:calc(50% - 2px);transform:rotate(-90deg)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]{transform:translateY(5px)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]:before{right:auto;bottom:auto;left:calc(50% - 5px);top:-5px;transform:rotate(0)}",this.customStyleTags[xr.Label]=document.head.appendChild(e),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(e,t,i){var n;const s=null!=i?i:e;let r=null==(n=this.dictLocale.find((e=>e.key===s)))?void 0:n.dict[this.currentLocale];if(r||i&&(r=i),r&&void 0!==t)switch(e){case Cr.MaxLength:case Cr.MinLength:case Cr.MaxNumber:case Cr.MinNumber:case Cr.MinFilesCount:case Cr.MaxFilesCount:r=r.replace(":value",String(t))}return r||i||"Value is incorrect"}getFieldErrorMessage(e,t){const i="function"==typeof e.errorMessage?e.errorMessage(this.getElemValue(t),this.fields):e.errorMessage;return this.getLocalisedString(e.rule,e.value,i)}getFieldSuccessMessage(e,t){const i="function"==typeof e?e(this.getElemValue(t),this.fields):e;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(e){return this.getLocalisedString(e.rule,void 0,e.errorMessage)}getGroupSuccessMessage(e){if(e.successMessage)return this.getLocalisedString(void 0,void 0,e.successMessage)}setFieldInvalid(e,t){this.fields[e].isValid=!1,this.fields[e].errorMessage=this.getFieldErrorMessage(t,this.fields[e].elem)}setFieldValid(e,t){this.fields[e].isValid=!0,void 0!==t&&(this.fields[e].successMessage=this.getFieldSuccessMessage(t,this.fields[e].elem))}setGroupInvalid(e,t){this.groupFields[e].isValid=!1,this.groupFields[e].errorMessage=this.getGroupErrorMessage(t)}setGroupValid(e,t){this.groupFields[e].isValid=!0,this.groupFields[e].successMessage=this.getGroupSuccessMessage(t)}getElemValue(e){switch(e.type){case"checkbox":return e.checked;case"file":return e.files;default:return e.value}}validateGroupRule(e,t,i){if(i.rule===kr.Required)t.every((e=>!e.checked))?this.setGroupInvalid(e,i):this.setGroupValid(e,i)}validateFieldRule(e,t,i,n=!1){const s=i.value,r=this.getElemValue(t);if(i.plugin){i.plugin(r,this.fields)||this.setFieldInvalid(e,i)}else{switch(i.rule){case Cr.Required:(e=>{let t=e;return"string"==typeof e&&(t=e.trim()),!t})(r)&&this.setFieldInvalid(e,i);break;case Cr.Email:if("string"!=typeof r){this.setFieldInvalid(e,i);break}o=r,Tr.test(o)||this.setFieldInvalid(e,i);break;case Cr.MaxLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;((e,t)=>e.length>t)(r,s)&&this.setFieldInvalid(e,i);break;case Cr.MinLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;((e,t)=>e.length<t)(r,s)&&this.setFieldInvalid(e,i);break;case Cr.Password:if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;(e=>Sr.test(e))(r)||this.setFieldInvalid(e,i);break;case Cr.StrongPassword:if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;(e=>Er.test(e))(r)||this.setFieldInvalid(e,i);break;case Cr.Number:if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;(e=>wr.test(e))(r)||this.setFieldInvalid(e,i);break;case Cr.MaxNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;const t=+r;(Number.isNaN(t)||((e,t)=>e>t)(t,s))&&this.setFieldInvalid(e,i);break}case Cr.MinNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;const t=+r;(Number.isNaN(t)||((e,t)=>e<t)(t,s))&&this.setFieldInvalid(e,i);break}case Cr.CustomRegexp:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);let t;try{t=new RegExp(s)}catch(t){console.error(`Value for ${i.rule} rule for [${e}] should be a valid regexp. This field will be always invalid.`),this.setFieldInvalid(e,i);break}const n=String(r);""===n||t.test(n)||this.setFieldInvalid(e,i);break}case Cr.MinFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==r?void 0:r.length)&&r.length<s){this.setFieldInvalid(e,i);break}break;case Cr.MaxFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==r?void 0:r.length)&&r.length>s){this.setFieldInvalid(e,i);break}break;case Cr.Files:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);if("object"!=typeof s)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=s.files;if("object"!=typeof t)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object with files array. This field will be always invalid.`),void this.setFieldInvalid(e,i);const n=(e,t)=>{const i=Number.isFinite(t.minSize)&&e.size<t.minSize,n=Number.isFinite(t.maxSize)&&e.size>t.maxSize,s=Array.isArray(t.names)&&!t.names.includes(e.name),r=Array.isArray(t.extensions)&&!t.extensions.includes(e.name.split(".")[e.name.split(".").length-1]),o=Array.isArray(t.types)&&!t.types.includes(e.type);return i||n||s||r||o};if("object"==typeof r&&null!==r)for(let s=0,o=r.length;s<o;++s){const o=r.item(s);if(!o){this.setFieldInvalid(e,i);break}if(n(o,t)){this.setFieldInvalid(e,i);break}}break}default:{if("function"!=typeof i.validator)return console.error(`Validator for custom rule for [${e}] field should be a function. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=i.validator(r,this.fields);if("boolean"!=typeof t&&"function"!=typeof t&&console.error(`Validator return value for [${e}] field should be boolean or function. It will be cast to boolean.`),"function"==typeof t){if(!n){this.fields[e].asyncCheckPending=!1;const n=t();return Ar(n)?n.then((t=>{t||this.setFieldInvalid(e,i)})).catch((()=>{this.setFieldInvalid(e,i)})):(console.error(`Validator function for custom rule for [${e}] field should return a Promise. This field will be always invalid.`),void this.setFieldInvalid(e,i))}this.fields[e].asyncCheckPending=!0}t||this.setFieldInvalid(e,i)}}var o}}validateField(e,t=!1){var i;const n=this.fields[e];n.isValid=!0;const s=[];return[...n.rules].reverse().forEach((i=>{const r=this.validateFieldRule(e,n.elem,i,t);Ar(r)&&s.push(r)})),n.isValid&&this.setFieldValid(e,null==(i=n.config)?void 0:i.successMessage),Promise.allSettled(s)}revalidateField(e){if("string"!=typeof e&&!Or(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);return t&&this.fields[t]?new Promise((e=>{this.validateField(t,!0).finally((()=>{this.clearFieldStyle(t),this.clearFieldLabel(t),this.renderFieldError(t),e(!!this.fields[t].isValid)}))})):(console.error("Field not found. Check the field selector."),Promise.reject())}validateGroup(e,t){const i=[];return[...t.rules].reverse().forEach((n=>{const s=this.validateGroupRule(e,t.elems,n);Ar(s)&&i.push(s)})),Promise.allSettled(i)}focusInvalidField(){for(const e in this.fields){const t=this.fields[e];if(!t.isValid){setTimeout((()=>t.elem.focus()),0);break}}}afterSubmitValidation(e=!1){this.renderErrors(e),this.globalConfig.focusInvalidField&&this.focusInvalidField()}validate(e=!1){return new Promise((t=>{const i=[];Object.keys(this.fields).forEach((e=>{const t=this.validateField(e);Ar(t)&&i.push(t)})),Object.keys(this.groupFields).forEach((e=>{const t=this.groupFields[e],n=this.validateGroup(e,t);Ar(n)&&i.push(n)})),i.length?Promise.allSettled(i).then((()=>{this.afterSubmitValidation(e),t(!0)})):(this.afterSubmitValidation(e),t(!1))}))}revalidate(){return new Promise((e=>{this.validateHandler(void 0,!0).finally((()=>{this.globalConfig.focusInvalidField&&this.focusInvalidField(),e(this.isValid)}))}))}validateHandler(e,t=!1){return this.globalConfig.lockForm&&this.lockForm(),this.validate(t).finally((()=>{var t,i;this.globalConfig.lockForm&&this.unlockForm(),this.isValid?null==(t=this.onSuccessCallback)||t.call(this,e):null==(i=this.onFailCallback)||i.call(this,this.fields,this.groupFields)}))}setForm(e){this.form=e,this.form.setAttribute("novalidate","novalidate"),this.removeListener("submit",this.form,this.formSubmitHandler),this.addListener("submit",this.form,this.formSubmitHandler)}addListener(e,t,i){t.addEventListener(e,i),this.eventListeners.push({type:e,elem:t,func:i})}removeListener(e,t,i){t.removeEventListener(e,i),this.eventListeners=this.eventListeners.filter((i=>i.type!==e||i.elem!==t))}addField(e,t,i){if("string"!=typeof e&&!Or(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let n;if(n="string"==typeof e?this.form.querySelector(e):e,!n)throw Error("Field doesn't exist in the DOM! Please check the field selector.");if(!Array.isArray(t)||!t.length)throw Error("Rules argument should be an array and should contain at least 1 element.");t.forEach((e=>{if(!("rule"in e||"validator"in e||"plugin"in e))throw Error("Rules argument must contain at least one rule or validator property.");if(!(e.validator||e.plugin||e.rule&&Object.values(Cr).includes(e.rule)))throw Error(`Rule should be one of these types: ${Object.values(Cr).join(", ")}. Provided value: ${e.rule}`)}));const s=this.setKeyByFieldSelector(e);return this.fields[s]={elem:n,rules:t,isValid:void 0,config:i},this.setListeners(n),this.isSubmitted&&this.validate(),this}removeField(e){if("string"!=typeof e&&!Or(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);if(!t||!this.fields[t])return console.error("Field not found. Check the field selector."),this;const i=this.getListenerType(this.fields[t].elem.type);return this.removeListener(i,this.fields[t].elem,this.handlerChange),this.clearErrors(),delete this.fields[t],this}removeGroup(e){if("string"!=typeof e)throw Error("Group selector is not valid. Please specify a string selector.");const t=this.getKeyByFieldSelector(e);return t&&this.groupFields[t]?(this.groupFields[t].elems.forEach((e=>{const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange)})),this.clearErrors(),delete this.groupFields[t],this):(console.error("Group not found. Check the group selector."),this)}addRequiredGroup(e,t,i,n){if("string"!=typeof e)throw Error("Group selector is not valid. Please specify a string selector.");const s=this.form.querySelector(e);if(!s)throw Error(`Group with ${e} selector not found! Please check the group selector.`);const r=s.querySelectorAll("input"),o=Array.from(r).filter((e=>{const t=((e,t)=>{const i=[...t].reverse();for(let t=0,n=i.length;t<n;++t){const n=i[t];for(const t in e){const i=e[t];if(i.groupElem===n)return[t,i]}}return null})(this.groupFields,(e=>{let t=e;const i=[];for(;t;)i.unshift(t),t=t.parentNode;return i})(e));return!t||t[1].elems.find((t=>t!==e))})),a=this.setKeyByFieldSelector(e);return this.groupFields[a]={rules:[{rule:kr.Required,errorMessage:t,successMessage:n}],groupElem:s,elems:o,isDirty:!1,isValid:void 0,config:i},r.forEach((e=>{this.setListeners(e)})),this}getListenerType(e){switch(e){case"checkbox":case"select-one":case"file":case"radio":return"change";default:return"input"}}setListeners(e){const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange),this.addListener(t,e,this.handlerChange)}clearFieldLabel(e){var t,i;null==(t=this.errorLabels[e])||t.remove(),null==(i=this.successLabels[e])||i.remove()}clearFieldStyle(e){var t,i,n,s;const r=this.fields[e],o=(null==(t=r.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(o).forEach((e=>{r.elem.style[e]=""}));const a=(null==(i=r.config)?void 0:i.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(a).forEach((e=>{r.elem.style[e]=""})),r.elem.classList.remove(...Lr((null==(n=r.config)?void 0:n.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...Lr((null==(s=r.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}clearErrors(){var e,t;Object.keys(this.errorLabels).forEach((e=>this.errorLabels[e].remove())),Object.keys(this.successLabels).forEach((e=>this.successLabels[e].remove()));for(const e in this.fields)this.clearFieldStyle(e);for(const i in this.groupFields){const n=this.groupFields[i],s=(null==(e=n.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(s).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...Lr((null==(i=n.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const r=(null==(t=n.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(r).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...Lr((null==(i=n.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}))}))}this.tooltips=[]}isTooltip(){return!!this.globalConfig.tooltip}lockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)e[t].setAttribute("data-just-validate-fallback-disabled",e[t].disabled?"true":"false"),e[t].setAttribute("disabled","disabled"),e[t].style.pointerEvents="none",e[t].style.webkitFilter="grayscale(100%)",e[t].style.filter="grayscale(100%)"}unlockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)"true"!==e[t].getAttribute("data-just-validate-fallback-disabled")&&e[t].removeAttribute("disabled"),e[t].style.pointerEvents="",e[t].style.webkitFilter="",e[t].style.filter=""}renderTooltip(e,t,i){var n;const{top:s,left:r,width:o,height:a}=e.getBoundingClientRect(),l=t.getBoundingClientRect(),c=i||(null==(n=this.globalConfig.tooltip)?void 0:n.position);switch(c){case"left":t.style.top=s+a/2-l.height/2+"px",t.style.left=r-l.width-5+"px";break;case"top":t.style.top=s-l.height-5+"px",t.style.left=r+o/2-l.width/2+"px";break;case"right":t.style.top=s+a/2-l.height/2+"px",t.style.left=`${r+o+5}px`;break;case"bottom":t.style.top=`${s+a+5}px`,t.style.left=r+o/2-l.width/2+"px"}t.dataset.direction=c;return{refresh:()=>{this.renderTooltip(e,t,i)}}}createErrorLabelElem(e,t,i){const n=document.createElement("div");n.innerHTML=t;const s=this.isTooltip()?null==i?void 0:i.errorLabelStyle:(null==i?void 0:i.errorLabelStyle)||this.globalConfig.errorLabelStyle;return Object.assign(n.style,s),n.classList.add(...Lr((null==i?void 0:i.errorLabelCssClass)||this.globalConfig.errorLabelCssClass),"just-validate-error-label"),this.isTooltip()&&(n.dataset.tooltip="true"),this.globalConfig.testingMode&&(n.dataset.testId=`error-label-${e}`),this.errorLabels[e]=n,n}createSuccessLabelElem(e,t,i){if(void 0===t)return null;const n=document.createElement("div");n.innerHTML=t;const s=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(n.style,s),n.classList.add(...Lr((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(n.dataset.testId=`success-label-${e}`),this.successLabels[e]=n,n}renderErrorsContainer(e,t){const i=t||this.globalConfig.errorsContainer;if("string"==typeof i){const t=this.form.querySelector(i);if(t)return t.appendChild(e),!0;console.error(`Error container with ${i} selector not found. Errors will be rendered as usual`)}return i instanceof Element?(i.appendChild(e),!0):(void 0!==i&&console.error("Error container not found. It should be a string or existing Element. Errors will be rendered as usual"),!1)}renderGroupLabel(e,t,i,n){if(!n){if(this.renderErrorsContainer(t,i))return}e.appendChild(t)}renderFieldLabel(e,t,i,n){var s,r,o,a,l,c,u;if(!n){if(this.renderErrorsContainer(t,i))return}if("checkbox"===e.type||"radio"===e.type){const i=document.querySelector(`label[for="${e.getAttribute("id")}"]`);"label"===(null==(r=null==(s=e.parentElement)?void 0:s.tagName)?void 0:r.toLowerCase())?null==(a=null==(o=e.parentElement)?void 0:o.parentElement)||a.appendChild(t):i?null==(l=i.parentElement)||l.appendChild(t):null==(c=e.parentElement)||c.appendChild(t)}else null==(u=e.parentElement)||u.appendChild(t)}showLabels(e,t){Object.keys(e).forEach(((i,n)=>{const s=e[i],r=this.getKeyByFieldSelector(i);if(!r||!this.fields[r])return void console.error("Field not found. Check the field selector.");const o=this.fields[r];o.isValid=!t,this.clearFieldStyle(r),this.clearFieldLabel(r),this.renderFieldError(r,s),0===n&&this.globalConfig.focusInvalidField&&setTimeout((()=>o.elem.focus()),0)}))}showErrors(e){if("object"!=typeof e)throw Error("[showErrors]: Errors should be an object with key: value format");this.showLabels(e,!0)}showSuccessLabels(e){if("object"!=typeof e)throw Error("[showSuccessLabels]: Labels should be an object with key: value format");this.showLabels(e,!1)}renderFieldError(e,t){var i,n,s,r,o,a;const l=this.fields[e];if(void 0===l.isValid)return;if(l.isValid){if(!l.asyncCheckPending){const s=this.createSuccessLabelElem(e,void 0!==t?t:l.successMessage,l.config);s&&this.renderFieldLabel(l.elem,s,null==(i=l.config)?void 0:i.errorsContainer,!0),l.elem.classList.add(...Lr((null==(n=l.config)?void 0:n.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}this.isValid=!1,l.elem.classList.add(...Lr((null==(s=l.config)?void 0:s.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const c=this.createErrorLabelElem(e,void 0!==t?t:l.errorMessage,l.config);this.renderFieldLabel(l.elem,c,null==(r=l.config)?void 0:r.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(l.elem,c,null==(a=null==(o=l.config)?void 0:o.tooltip)?void 0:a.position))}renderGroupError(e){var t,i,n,s;const r=this.groupFields[e];if(void 0===r.isValid)return;if(r.isValid){r.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=r.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle),e.classList.add(...Lr((null==(i=r.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}));const i=this.createSuccessLabelElem(e,r.successMessage,r.config);return void(i&&this.renderGroupLabel(r.groupElem,i,null==(t=r.config)?void 0:t.errorsContainer,!0))}this.isValid=!1,r.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=r.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle),e.classList.add(...Lr((null==(i=r.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}));const o=this.createErrorLabelElem(e,r.errorMessage,r.config);this.renderGroupLabel(r.groupElem,o,null==(i=r.config)?void 0:i.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(r.groupElem,o,null==(s=null==(n=r.config)?void 0:n.tooltip)?void 0:s.position))}renderErrors(e=!1){if(this.isSubmitted||e||this.globalConfig.validateBeforeSubmitting){this.clearErrors(),this.isValid=!0;for(const e in this.groupFields)this.renderGroupError(e);for(const e in this.fields)this.renderFieldError(e)}}destroy(){this.eventListeners.forEach((e=>{this.removeListener(e.type,e.elem,e.func)})),Object.keys(this.customStyleTags).forEach((e=>{this.customStyleTags[e].remove()})),this.clearErrors(),this.globalConfig.lockForm&&this.unlockForm()}refresh(){this.destroy(),this.form?(this.initialize(this.form,this.globalConfig),Object.keys(this.fields).forEach((e=>{const t=this.getFieldSelectorByKey(e);t&&this.addField(t,[...this.fields[e].rules],this.fields[e].config)}))):console.error("Cannot initialize the library! Form is not defined")}setCurrentLocale(e){"string"==typeof e||void 0===e?(this.currentLocale=e,this.isSubmitted&&this.validate()):console.error("Current locale should be a string")}onSuccess(e){return this.onSuccessCallback=e,this}onFail(e){return this.onFailCallback=e,this}}class Mr{constructor(e,t,i,n,s){this.targetNode=e,this.classToWatch=t,this.classAddedCallback=i,this.classRemovedCallback=n,this.observer=null,this.lastClassState=e.classList.contains(this.classToWatch),this.ignoreToggle=!!s,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{attributes:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)if("attributes"===t.type&&"class"===t.attributeName){let e=t.target.classList.contains(this.classToWatch);(this.ignoreToggle||this.lastClassState!==e)&&(this.lastClassState=e,e?"function"==typeof this.classAddedCallback&&this.classAddedCallback():"function"==typeof this.classRemovedCallback&&this.classRemovedCallback())}}}class Nr{constructor(e,t,i,n){this.targetNode=e,this.contentSelector=t,this.contentAddedCallback=i,this.contentRemovedCallback=n,this.observer=null,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{childList:!0,subtree:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)"childList"===t.type&&(t.addedNodes.forEach((e=>{this._callbackExec(e)})),t.removedNodes.forEach((e=>{this._callbackExec(e,!0)})))}_callbackExec(e,t){const i=e.matches&&e.matches(this.contentSelector)?[e]:e.querySelectorAll?e.querySelectorAll(this.contentSelector):null,n=t&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&n&&i.forEach((e=>n(e)))}}const Rr={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},Fr="justvalidatebi";class Br extends _i{constructor(e){super(e),this._label=new Ii(e),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&di.on(this._element,"change.bs.input",(()=>{this._handleFileDescription()}))}_handleFileDescription(){const e=[];let t="";Array.from(this._element.files).forEach((t=>{const i=Math.round(parseInt(t.size,10)/1024);e.push(t.name+" ("+i+"kb)")})),this._element.files.length>1&&(t=this._element.files.length+" file da caricare: ");const i=vi.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=t+e.join("; "))}}const Ur=["select",'input[data-bs-input][type="password"]',"input.input-password[data-bs-input]",'input[data-bs-autocomplete][type="search"]','input[type="time"]','input[type="radio"]','input[type="checkbox"]'];"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("input, textarea, label").forEach((function(e){(e=>{const t=!!Ur.find((t=>e.matches(t))),i=!("number"!==e.getAttribute("type")||!e.parentNode.querySelector('button[class^="input-number-"]'));t||i||Br.getOrCreateInstance(e)})(Ii.getInputFromLabel(e)||e)}))}));var jr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function $r(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hr(e,t){return e(t={exports:{}},t.exports),t.exports}var Vr=Hr((function(e,t){var i;window,i=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=37)}([function(e,t,i){var n=i(1),s=i(6),r=i(7),o=i(16),a=i(18),l="prototype",c=function(e,t,i){var u,h,d,p,f=e&c.F,m=e&c.G,g=e&c.S,y=e&c.P,_=e&c.B,v=m?n:g?n[t]||(n[t]={}):(n[t]||{})[l],b=m?s:s[t]||(s[t]={}),T=b[l]||(b[l]={});for(u in m&&(i=t),i)d=((h=!f&&v&&void 0!==v[u])?v:i)[u],p=_&&h?a(d,n):y&&"function"==typeof d?a(Function.call,d):d,v&&o(v,u,d,e&c.U),b[u]!=d&&r(b,u,p),y&&T[u]!=d&&(T[u]=d)};n.core=s,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,i){e.exports=!i(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,i){i.r(t),i.d(t,"h",(function(){return a})),i.d(t,"createElement",(function(){return a})),i.d(t,"cloneElement",(function(){return u})),i.d(t,"Component",(function(){return M})),i.d(t,"render",(function(){return N})),i.d(t,"rerender",(function(){return f})),i.d(t,"options",(function(){return s}));var n=function(){},s={},r=[],o=[];function a(e,t){var i,a,l,c,u=o;for(c=arguments.length;2<c--;)r.push(arguments[c]);for(t&&null!=t.children&&(r.length||r.push(t.children),delete t.children);r.length;)if((a=r.pop())&&void 0!==a.pop)for(c=a.length;c--;)r.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&i?u[u.length-1]+=a:u===o?u=[a]:u.push(a),i=l;var h=new n;return h.nodeName=e,h.children=u,h.attributes=null==t?void 0:t,h.key=null==t?void 0:t.key,void 0!==s.vnode&&s.vnode(h),h}function l(e,t){for(var i in t)e[i]=t[i];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function u(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var h=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,d=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==d.push(e)&&(s.debounceRendering||c)(f)}function f(){var e,t=d;for(d=[];e=t.pop();)e._dirty&&P(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=l({},e.attributes);t.children=e.children;var i=e.nodeName.defaultProps;if(void 0!==i)for(var n in i)void 0===t[n]&&(t[n]=i[n]);return t}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,i,n,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)i&&i(null),n&&n(e);else if("class"!==t||s)if("style"===t){if(n&&"string"!=typeof n&&"string"!=typeof i||(e.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof i)for(var r in i)r in n||(e.style[r]="");for(var r in n)e.style[r]="number"==typeof n[r]&&!1===h.test(r)?n[r]+"px":n[r]}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),n?i||e.addEventListener(t,v,o):e.removeEventListener(t,v,o),(e._listeners||(e._listeners={}))[t]=n}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==n?"":n}catch(e){}null!=n&&!1!==n||"spellcheck"==t||e.removeAttribute(t)}else{var a=s&&t!==(t=t.replace(/^xlink:?/,""));null==n||!1===n?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof n&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):e.setAttribute(t,n))}else e.className=n||""}function v(e){return this._listeners[e.type](s.event&&s.event(e)||e)}var b=[],T=0,w=!1,S=!1;function E(){for(var e;e=b.pop();)s.afterMount&&s.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,i,n,s){var r=e,o=w;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),k(e,!0))),r.__preactattr_=!0,r;var a=t.nodeName;if("function"==typeof a)return function(e,t,i,n){for(var s=e&&e._component,r=s,o=e,a=s&&e._componentConstructor===t.nodeName,l=a,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!n||s._component)?(O(s,c,3,i,n),e=s.base):(r&&!a&&(D(r),e=o=null),s=A(t.nodeName,c,i),e&&!s.nextBase&&(s.nextBase=e,o=null),O(s,c,1,i,n),e=s.base,o&&e!==o&&(o._component=null,k(o,!1))),e}(e,t,i,n);if(w="svg"===a||"foreignObject"!==a&&w,a=String(a),(!e||!m(e,a))&&(r=function(e,t){var i=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return i.normalizedNodeName=e,i}(a,w),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),k(e,!0)}var l=r.firstChild,c=r.__preactattr_,u=t.children;if(null==c){c=r.__preactattr_={};for(var h=r.attributes,d=h.length;d--;)c[h[d].name]=h[d].value}return!S&&u&&1===u.length&&"string"==typeof u[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=u[0]&&(l.nodeValue=u[0]):(u&&u.length||null!=l)&&function(e,t,i,n,s){var r,o,a,l,c,u,h,d,p=e.childNodes,f=[],g={},_=0,v=0,b=p.length,T=0,w=t?t.length:0;if(0!==b)for(var S=0;S<b;S++){var E=p[S],x=E.__preactattr_;null!=(I=w&&x?E._component?E._component.__key:x.key:null)?(_++,g[I]=E):(x||(void 0!==E.splitText?!s||E.nodeValue.trim():s))&&(f[T++]=E)}if(0!==w)for(S=0;S<w;S++){var I;if(c=null,null!=(I=(l=t[S]).key))_&&void 0!==g[I]&&(c=g[I],g[I]=void 0,_--);else if(v<T)for(r=v;r<T;r++)if(void 0!==f[r]&&(u=o=f[r],d=s,"string"==typeof(h=l)||"number"==typeof h?void 0!==u.splitText:"string"==typeof h.nodeName?!u._componentConstructor&&m(u,h.nodeName):d||u._componentConstructor===h.nodeName)){c=o,f[r]=void 0,r===T-1&&T--,r===v&&v++;break}c=C(c,l,i,n),a=p[S],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?y(a):e.insertBefore(c,a))}if(_)for(var S in g)void 0!==g[S]&&k(g[S],!1);for(;v<=T;)void 0!==(c=f[T--])&&k(c,!1)}(r,u,i,n,S||null!=c.dangerouslySetInnerHTML),function(e,t,i){var n;for(n in i)t&&null!=t[n]||null==i[n]||_(e,n,i[n],i[n]=void 0,w);for(n in t)"children"===n||"innerHTML"===n||n in i&&t[n]===("value"===n||"checked"===n?e[n]:i[n])||_(e,n,i[n],i[n]=t[n],w)}(r,t.attributes,c),w=o,r}function k(e,t){var i=e._component;i?D(i):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||y(e),x(e))}function x(e){for(e=e.lastChild;e;){var t=e.previousSibling;k(e,!0),e=t}}var I=[];function A(e,t,i){var n,s=I.length;for(e.prototype&&e.prototype.render?(n=new e(t,i),M.call(n,t,i)):((n=new M(t,i)).constructor=e,n.render=L);s--;)if(I[s].constructor===e)return n.nextBase=I[s].nextBase,I.splice(s,1),n;return n}function L(e,t,i){return this.constructor(e,i)}function O(e,t,i,n,r){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,n)),n&&n!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=n),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==i&&(1!==i&&!1===s.syncComponentUpdates&&e.base?p(e):P(e,1,r)),e.__ref&&e.__ref(e))}function P(e,t,i,n){if(!e._disable){var r,o,a,c=e.props,u=e.state,h=e.context,d=e.prevProps||c,p=e.prevState||u,f=e.prevContext||h,m=e.base,y=e.nextBase,_=m||y,v=e._component,x=!1,I=f;if(e.constructor.getDerivedStateFromProps&&(u=l(l({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),m&&(e.props=d,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,h)?x=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,h),e.props=c,e.state=u,e.context=h),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!x){r=e.render(c,u,h),e.getChildContext&&(h=l(l({},h),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(I=e.getSnapshotBeforeUpdate(d,p));var L,M,N=r&&r.nodeName;if("function"==typeof N){var R=g(r);(o=v)&&o.constructor===N&&R.key==o.__key?O(o,R,1,h,!1):(L=o,e._component=o=A(N,R,h),o.nextBase=o.nextBase||y,o._parentComponent=e,O(o,R,0,h,!1),P(o,1,i,!0)),M=o.base}else a=_,(L=v)&&(a=e._component=null),(_||1===t)&&(a&&(a._component=null),M=function(e,t,i,n,s,r){T++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var o=C(e,t,i,n,r);return s&&o.parentNode!==s&&s.appendChild(o),--T||(S=!1),o}(a,r,h,i||!m,_&&_.parentNode,!0));if(_&&M!==_&&o!==v){var F=_.parentNode;F&&M!==F&&(F.replaceChild(M,_),L||(_._component=null,k(_,!1)))}if(L&&D(L),(e.base=M)&&!n){for(var B=e,U=e;U=U._parentComponent;)(B=U).base=M;M._component=B,M._componentConstructor=B.constructor}}for(!m||i?b.unshift(e):x||(e.componentDidUpdate&&e.componentDidUpdate(d,p,I),s.afterUpdate&&s.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);T||n||E()}}function D(e){s.beforeUnmount&&s.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var i=e._component;i?D(i):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),y(e.nextBase=t),I.push(e),x(t)),e.__ref&&e.__ref(null)}function M(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function N(e,t,i){return function(e,t,i,n,s,r){T++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var o=C(e,t,i,n,r);return s&&o.parentNode!==s&&s.appendChild(o),--T||(S=!1,E()),o}(i,e,{},!1,t,!1)}l(M.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),P(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:u,Component:M,render:N,rerender:f,options:s};t.default=R},function(e,t){var i=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(e,t,i){var n=i(8),s=i(40);e.exports=i(3)?function(e,t,i){return n.f(e,t,s(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var n=i(9),s=i(38),r=i(39),o=Object.defineProperty;t.f=i(3)?Object.defineProperty:function(e,t,i){if(n(e),t=r(t,!0),n(i),s)try{return o(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var n=i(2);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+n).toString(36))}},function(e,t,i){var n=i(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,i){var n=i(4);e.exports=function(e,t){return!!e&&n((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,i){var n=i(0);n(n.S+n.F,"Object",{assign:i(41)})},function(e,t,i){var n=i(2),s=i(1).document,r=n(s)&&n(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,i){var n=i(1),s=i(7),r=i(17),o=i(10)("src"),a="toString",l=Function[a],c=(""+l).split(a);i(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,i,a){var l="function"==typeof i;l&&(r(i,"name")||s(i,"name",t)),e[t]!==i&&(l&&(r(i,o)||s(i,o,e[t]?""+e[t]:c.join(String(t)))),e===n?e[t]=i:a?e[t]?e[t]=i:s(e,t,i):(delete e[t],s(e,t,i)))})(Function.prototype,a,(function(){return"function"==typeof this&&this[o]||l.call(this)}))},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var n=i(19);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,s){return e.call(t,i,n,s)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){var n=i(42),s=i(28);e.exports=Object.keys||function(e){return n(e,s)}},function(e,t,i){var n=i(11),s=i(12);e.exports=function(e){return n(s(e))}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var n=i(21),s=i(24),r=i(43);e.exports=function(e){return function(t,i,o){var a,l=n(t),c=s(l.length),u=r(o,c);if(e&&i!=i){for(;u<c;)if((a=l[u++])!=a)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}}},function(e,t,i){var n=i(25),s=Math.min;e.exports=function(e){return 0<e?s(n(e),9007199254740991):0}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?n:i)(e)}},function(e,t,i){var n=i(27)("keys"),s=i(10);e.exports=function(e){return n[e]||(n[e]=s(e))}},function(e,t,i){var n=i(6),s=i(1),r="__core-js_shared__",o=s[r]||(s[r]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:i(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,i){var n=i(12);e.exports=function(e){return Object(n(e))}},function(e,t,i){var n=i(8).f,s=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in s||i(3)&&n(s,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,i){var n=i(0),s=i(32)(1);n(n.P+n.F*!i(13)([].map,!0),"Array",{map:function(e){return s(this,e,arguments[1])}})},function(e,t,i){var n=i(18),s=i(11),r=i(29),o=i(24),a=i(47);e.exports=function(e,t){var i=1==e,l=2==e,c=3==e,u=4==e,h=6==e,d=5==e||h,p=t||a;return function(t,a,f){for(var m,g,y=r(t),_=s(y),v=n(a,f,3),b=o(_.length),T=0,w=i?p(t,b):l?p(t,0):void 0;T<b;T++)if((d||T in _)&&(g=v(m=_[T],T,y),e))if(i)w[T]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return T;case 2:w.push(m)}else if(u)return!1;return h?-1:c||u?u:w}}},function(e,t,i){var n=i(22);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,i){var n=i(27)("wks"),s=i(10),r=i(1).Symbol,o="function"==typeof r;(e.exports=function(e){return n[e]||(n[e]=o&&r[e]||(o?r:s)("Symbol."+e))}).store=n},function(e,t,i){var n=i(0),s=i(23)(!1),r=[].indexOf,o=!!r&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(o||!i(13)(r)),"Array",{indexOf:function(e){return o?r.apply(this,arguments)||0:s(this,e,arguments[1])}})},function(e,t,i){var n=i(0);n(n.S,"Object",{create:i(52)})},function(e,t,i){t.__esModule=!0,t.default=void 0,i(14),i(30),i(31),i(35),i(49),i(50);var n=i(5),s=function(e){return e&&e.__esModule?e:{default:e}}(i(51));function r(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=o(e.source)),(0,n.render)((0,n.createElement)(s.default,e),e.element)}var o=function(e){return function(t,i){i(e.filter((function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())})))}};r.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,(function(t){return t.value||e.preserveNullOptions}));e.source=t.map((function(e){return e.textContent||e.innerText}))}if(e.onConfirm=e.onConfirm||function(t){var i=[].filter.call(e.selectElement.options,(function(e){return(e.textContent||e.innerText)===t}))[0];i&&(i.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var i=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=i.textContent||i.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var n=document.createElement("div");e.selectElement.parentNode.insertBefore(n,e.selectElement),r(Object.assign({},e,{element:n})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=r;t.default=a},function(e,t,i){e.exports=!i(3)&&!i(4)((function(){return 7!=Object.defineProperty(i(15)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var n=i(2);e.exports=function(e,t){if(!n(e))return e;var i,s;if(t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;if("function"==typeof(i=e.valueOf)&&!n(s=i.call(e)))return s;if(!t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){var n=i(20),s=i(45),r=i(46),o=i(29),a=i(11),l=Object.assign;e.exports=!l||i(4)((function(){var e={},t={},i=Symbol(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach((function(e){t[e]=e})),7!=l({},e)[i]||Object.keys(l({},t)).join("")!=n}))?function(e,t){for(var i=o(e),l=arguments.length,c=1,u=s.f,h=r.f;c<l;)for(var d,p=a(arguments[c++]),f=u?n(p).concat(u(p)):n(p),m=f.length,g=0;g<m;)h.call(p,d=f[g++])&&(i[d]=p[d]);return i}:l},function(e,t,i){var n=i(17),s=i(21),r=i(23)(!1),o=i(26)("IE_PROTO");e.exports=function(e,t){var i,a=s(e),l=0,c=[];for(i in a)i!=o&&n(a,i)&&c.push(i);for(;t.length>l;)n(a,i=t[l++])&&(~r(c,i)||c.push(i));return c}},function(e,t,i){var n=i(25),s=Math.max,r=Math.min;e.exports=function(e,t){return(e=n(e))<0?s(e+t,0):r(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,i){var n=i(48);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,i){var n=i(2),s=i(33),r=i(34)("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),n(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,i){var n=i(0),s=i(32)(2);n(n.P+n.F*!i(13)([].filter,!0),"Array",{filter:function(e){return s(this,e,arguments[1])}})},function(e,t,i){var n=i(0);n(n.S,"Array",{isArray:i(33)})},function(e,t,i){t.__esModule=!0,t.default=void 0,i(14),i(36),i(30),i(31),i(35),i(55),i(58);var n=i(5),s=o(i(60)),r=o(i(61));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function u(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var h=function(e){function t(t){var i;return(i=e.call(this,t)||this).elementReferences={},i.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0},i.handleComponentBlur=i.handleComponentBlur.bind(l(l(i))),i.handleKeyDown=i.handleKeyDown.bind(l(l(i))),i.handleUpArrow=i.handleUpArrow.bind(l(l(i))),i.handleDownArrow=i.handleDownArrow.bind(l(l(i))),i.handleEnter=i.handleEnter.bind(l(l(i))),i.handlePrintableKey=i.handlePrintableKey.bind(l(l(i))),i.handleListMouseLeave=i.handleListMouseLeave.bind(l(l(i))),i.handleOptionBlur=i.handleOptionBlur.bind(l(l(i))),i.handleOptionClick=i.handleOptionClick.bind(l(l(i))),i.handleOptionFocus=i.handleOptionFocus.bind(l(l(i))),i.handleOptionMouseDown=i.handleOptionMouseDown.bind(l(l(i))),i.handleOptionMouseEnter=i.handleOptionMouseEnter.bind(l(l(i))),i.handleInputBlur=i.handleInputBlur.bind(l(l(i))),i.handleInputChange=i.handleInputChange.bind(l(l(i))),i.handleInputFocus=i.handleInputFocus.bind(l(l(i))),i.pollInputElement=i.pollInputElement.bind(l(l(i))),i.getDirectInputChanges=i.getDirectInputChanges.bind(l(l(i))),i}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var i=t.prototype;return i.isQueryAnOption=function(e,t){var i=this;return-1!==t.map((function(e){return i.templateInputValue(e).toLowerCase()})).indexOf(e.toLowerCase())},i.componentDidMount=function(){this.pollInputElement()},i.componentWillUnmount=function(){clearTimeout(this.$pollInput)},i.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout((function(){e.pollInputElement()}),100)},i.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},i.componentDidUpdate=function(e,t){var i=this.state.focused,n=null===i,s=t.focused!==i;s&&!n&&this.elementReferences[i].focus();var r=-1===i,o=s&&null===t.focused;if(r&&o){var a=this.elementReferences[i];a.setSelectionRange(0,a.value.length)}},i.hasAutoselect=function(){return!u()&&this.props.autoselect},i.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},i.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},i.handleComponentBlur=function(e){var t,i=this.state,n=i.options,s=i.query,r=i.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(n[r])):t=s,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,n)})},i.handleListMouseLeave=function(e){this.setState({hovered:null})},i.handleOptionBlur=function(e,t){var i=this.state,n=i.focused,s=i.menuOpen,r=i.options,o=i.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=n!==t&&-1!==n;if(!c&&a||!c&&!l){var h=s&&u();this.handleComponentBlur({menuOpen:h,query:this.templateInputValue(r[o])})}},i.handleInputBlur=function(e){var t=this.state,i=t.focused,n=t.menuOpen,s=t.options,r=t.query,o=t.selected;if(-1===i){var a=n&&u(),l=u()?r:this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:a,query:l})}},i.handleInputChange=function(e){var t=this,i=this.props,n=i.minLength,s=i.source,r=i.showAllValues,o=this.hasAutoselect(),a=e.target.value,l=0===a.length,c=this.state.query.length!==a.length,u=a.length>=n;this.setState({query:a,ariaHint:l}),r||!l&&c&&u?s(a,(function(e){var i=0<e.length;t.setState({menuOpen:i,options:e,selected:o&&i?0:-1,validChoiceMade:!1})})):!l&&u||this.setState({menuOpen:!1,options:[]})},i.handleInputClick=function(e){this.handleInputChange(e)},i.handleInputFocus=function(e){var t=this.state,i=t.query,n=t.validChoiceMade,s=t.options,r=this.props.minLength,o=!n&&i.length>=r&&0<s.length;o?this.setState((function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}})):this.setState({focused:-1})},i.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},i.handleOptionMouseEnter=function(e,t){u()||this.setState({hovered:t})},i.handleOptionClick=function(e,t){var i=this.state.options[t],n=this.templateInputValue(i);this.props.onConfirm(i),this.setState({focused:-1,hovered:null,menuOpen:!1,query:n,selected:-1,validChoiceMade:!0}),this.forceUpdate()},i.handleOptionMouseDown=function(e){e.preventDefault()},i.handleUpArrow=function(e){e.preventDefault();var t=this.state,i=t.menuOpen,n=t.selected;-1!==n&&i&&this.handleOptionFocus(n-1)},i.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})}));else if(!0===this.state.menuOpen){var i=this.state,n=i.menuOpen,s=i.options,r=i.selected;r!==s.length-1&&n&&this.handleOptionFocus(r+1)}},i.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e})}))),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},i.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},i.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},i.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},i.render=function(){var e,t=this,i=this.props,r=i.cssNamespace,o=i.displayMenu,l=i.id,c=i.minLength,h=i.name,d=i.placeholder,p=i.required,f=i.showAllValues,m=i.tNoResults,g=i.tStatusQueryTooShort,y=i.tStatusNoResults,_=i.tStatusSelectedOption,v=i.tStatusResults,b=i.tAssistiveHint,T=i.dropdownArrow,w=this.state,S=w.focused,E=w.hovered,C=w.menuOpen,k=w.options,x=w.query,I=w.selected,A=w.ariaHint,L=w.validChoiceMade,O=this.hasAutoselect(),P=-1===S,D=0===k.length,M=0!==x.length,N=x.length>=c,R=this.props.showNoOptionsFound&&P&&D&&M&&N,F=r+"__wrapper",B=r+"__input",U=null!==S?" "+B+"--focused":"",j=this.props.showAllValues?" "+B+"--show-all-values":" "+B+"--default",$=r+"__dropdown-arrow-down",q=-1!==S&&null!==S,H=r+"__menu",V=H+"--"+o,z=H+"--"+(C||R?"visible":"hidden"),W=r+"__option",G=r+"__hint",X=this.templateInputValue(k[I]),K=X&&0===X.toLowerCase().indexOf(x.toLowerCase())&&O?x+X.substr(x.length):"",Y=l+"__assistiveHint",Q=A?{"aria-describedby":Y}:null;return f&&"string"==typeof(e=T({className:$}))&&(e=(0,n.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,n.createElement)("div",{className:F,onKeyDown:this.handleKeyDown},(0,n.createElement)(s.default,{id:l,length:k.length,queryLength:x.length,minQueryLength:c,selectedOption:this.templateInputValue(k[I]),selectedOptionIndex:I,validChoiceMade:L,isInFocus:null!==this.state.focused,tQueryTooShort:g,tNoResults:y,tSelectedOption:_,tResults:v}),K&&(0,n.createElement)("span",null,(0,n.createElement)("input",{className:G,readonly:!0,tabIndex:"-1",value:K})),(0,n.createElement)("input",a({"aria-expanded":C?"true":"false","aria-activedescendant":!!q&&l+"__option--"+S,"aria-owns":l+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},Q,{autoComplete:"off",className:""+B+U+j,id:l,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:h,placeholder:d,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:p,value:x})),e,(0,n.createElement)("ul",{className:H+" "+V+" "+z,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:l+"__listbox",role:"listbox"},k.map((function(e,i){var s=(-1===S?I===i:S===i)&&null===E?" "+W+"--focused":"",r=i%2?" "+W+"--odd":"",o=u()?"<span id="+l+"__option-suffix--"+i+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(i+1)+" of "+k.length+"</span>":"";return(0,n.createElement)("li",{"aria-selected":S===i?"true":"false",className:""+W+s+r,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+o},id:l+"__option--"+i,key:i,onBlur:function(e){return t.handleOptionBlur(e,i)},onClick:function(e){return t.handleOptionClick(e,i)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,i)},ref:function(e){t.elementReferences[i]=e},role:"option",tabIndex:"-1","aria-posinset":i+1,"aria-setsize":k.length})})),R&&(0,n.createElement)("li",{className:W+" "+W+"--no-results"},m())),(0,n.createElement)("span",{id:Y,style:{display:"none"}},b()))},t}(n.Component);(t.default=h).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:r.default}},function(e,t,i){var n=i(9),s=i(53),r=i(28),o=i(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=i(15)("iframe"),n=r.length;for(t.style.display="none",i(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][r[n]];return c()};e.exports=Object.create||function(e,t){var i;return null!==e?(a[l]=n(e),i=new a,a[l]=null,i[o]=e):i=c(),void 0===t?i:s(i,t)}},function(e,t,i){var n=i(8),s=i(9),r=i(20);e.exports=i(3)?Object.defineProperties:function(e,t){s(e);for(var i,o=r(t),a=o.length,l=0;l<a;)n.f(e,i=o[l++],t[i]);return e}},function(e,t,i){var n=i(1).document;e.exports=n&&n.documentElement},function(e,t,i){var n=i(0);n(n.P,"Function",{bind:i(56)})},function(e,t,i){var n=i(19),s=i(2),r=i(57),o=[].slice,a={};e.exports=Function.bind||function(e){var t=n(this),i=o.call(arguments,1),l=function(){var n=i.concat(o.call(arguments));return this instanceof l?function(e,t,i){if(!(t in a)){for(var n=[],s=0;s<t;s++)n[s]="a["+s+"]";a[t]=Function("F,a","return new F("+n.join(",")+")")}return a[t](e,i)}(t,n.length,n):r(t,n,e)};return s(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,i){var n=void 0===i;switch(t.length){case 0:return n?e():e.call(i);case 1:return n?e(t[0]):e.call(i,t[0]);case 2:return n?e(t[0],t[1]):e.call(i,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(i,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(i,t[0],t[1],t[2],t[3])}return e.apply(i,t)}},function(e,t,i){i(59)("match",1,(function(e,t,i){return[function(i){var n=e(this),s=null==i?void 0:i[t];return void 0!==s?s.call(i,n):new RegExp(i)[t](String(n))},i]}))},function(e,t,i){var n=i(7),s=i(16),r=i(4),o=i(12),a=i(34);e.exports=function(e,t,i){var l=a(e),c=i(o,l,""[e]),u=c[0],h=c[1];r((function(){var t={};return t[l]=function(){return 7},7!=""[e](t)}))&&(s(String.prototype,e,u),n(RegExp.prototype,l,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,i){t.__esModule=!0,t.default=void 0,i(36);var n=i(5),s=function(e){function t(){for(var t,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return(t=e.call.apply(e,[this].concat(n))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var i=t.prototype;return i.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var i;return function(){var n=this,s=arguments;clearTimeout(i),i=setTimeout((function(){i=null,e.apply(n,s)}),t)}}((function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState((function(e){return{bump:!e.bump,debounced:!0,silenced:t}}))}}),1400)},i.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},i.render=function(){var e,t=this.props,i=t.id,s=t.length,r=t.queryLength,o=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,u=t.tNoResults,h=t.tSelectedOption,d=t.tResults,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,y=r<o,_=0===s,v=a?h(a,s,l):"";return e=y?c(o):_?u():d(s,v),this.debounceStatusUpdate(),(0,n.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,n.createElement)("div",{id:i+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?e:""),(0,n.createElement)("div",{id:i+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":e))},t}(n.Component);(t.default=s).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,i){return e+" "+(i+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,i){t.__esModule=!0,t.default=void 0;var n=i(5);t.default=function(e){var t=e.className;return(0,n.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,n.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,n.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default},e.exports=i()}));const zr=qr(Vr);const Wr={autocomplete:[]},Gr="autocomplete-list-show",Xr="data-bs-autocomplete",Kr="input["+Xr+'][type="search"]';class Yr extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._items=[],this._autocompleteElement=null,this._label=new Ii(e),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const e=this._element.value;
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,(function(){"use strict";!function(){const e={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const e="data-focus-mouse",t="focus--mouse";class i{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((e=>{document.addEventListener(e,(e=>{this._usingMouse="mousedown"===e.type}))})),document.addEventListener("focusin",(i=>{this._usingMouse&&i.target&&(i.target.classList.add(t),i.target.setAttribute(e,!0))})),document.addEventListener("focusout",(i=>{i.target&&(i.target.classList.remove(t),i.target.setAttribute(e,!1))}))}}new i;const n=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new i,window.BOOTSTRAP_ITALIA_VERSION="2.12.1")};n();const s={ck3:{}},r={rememberChoice:(e,t)=>{s.ck3[e]=t,localStorage.setItem("bs-ck3",JSON.stringify(s.ck3))},isChoiceRemembered:e=>(s.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),s.ck3[e]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},o="splide",a=`data-${o}`,l={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function c(e){e.length=0}function u(e){return!f(e)&&"object"==typeof e}function h(e){return Array.isArray(e)}function d(e){return"string"==typeof e}function p(e){return void 0===e}function f(e){return null===e}function m(e){return e instanceof HTMLElement}function g(e){return h(e)?e:[e]}function y(e,t){g(e).forEach(t)}function _(e,t){return e.indexOf(t)>-1}function v(e,t){return e.push(...g(t)),e}const b=Array.prototype;function T(e,t,i){return b.slice.call(e,t,i)}function w(e,t,i){e&&y(t,(t=>{t&&e.classList[i?"add":"remove"](t)}))}function S(e,t){w(e,d(t)?t.split(" "):t,!0)}function E(e,t){y(t,e.appendChild.bind(e))}function C(e,t){y(e,(e=>{const i=t.parentNode;i&&i.insertBefore(e,t)}))}function k(e,t){return m(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function x(e,t){return e?T(e.children).filter((e=>k(e,t))):[]}function I(e,t){return t?x(e,t)[0]:e.firstElementChild}function A(e,t,i){if(e){let n=Object.keys(e);n=i?n.reverse():n;for(let i=0;i<n.length;i++){const s=n[i];if("__proto__"!==s&&!1===t(e[s],s))break}}return e}function L(e){return T(arguments,1).forEach((t=>{A(t,((i,n)=>{e[n]=t[n]}))})),e}function O(e,t){return A(t,((t,i)=>{h(t)?e[i]=t.slice():u(t)?e[i]=O(u(e[i])?e[i]:{},t):e[i]=t})),e}function P(e,t){e&&y(t,(t=>{e.removeAttribute(t)}))}function D(e,t,i){u(t)?A(t,((t,i)=>{D(e,i,t)})):f(i)?P(e,t):e.setAttribute(t,String(i))}function M(e,t,i){const n=document.createElement(e);return t&&(d(t)?S(n,t):D(n,t)),i&&E(i,n),n}function N(e,t,i){if(p(i))return getComputedStyle(e)[t];if(!f(i)){const{style:n}=e;i=`${i}`,n[t]!==i&&(n[t]=i)}}function R(e,t){N(e,"display",t)}function F(e,t){return e.getAttribute(t)}function B(e,t){return e&&e.classList.contains(t)}function U(e){return e.getBoundingClientRect()}function j(e){y(e,(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}))}function $(e){return I((new DOMParser).parseFromString(e,"text/html").body)}function q(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function H(e,t){return e&&e.querySelector(t)}function V(e,t){return T(e.querySelectorAll(t))}function z(e,t){w(e,t,!1)}function W(e){return d(e)?e:e?`${e}px`:""}function G(e,t=""){if(!e)throw new Error(`[${o}] ${t}`)}function X(e){setTimeout(e)}const K=()=>{};function Y(e){return requestAnimationFrame(e)}const{min:Q,max:J,floor:Z,ceil:ee,abs:te}=Math;function ie(e,t,i,n){const s=Q(t,i),r=J(t,i);return n?s<e&&e<r:s<=e&&e<=r}function ne(e,t,i){const n=Q(t,i),s=J(t,i);return Q(J(n,e),s)}function se(e){return+(e>0)-+(e<0)}function re(e,t){return y(t,(t=>{e=e.replace("%s",`${t}`)})),e}function oe(e){return e<10?`0${e}`:`${e}`}const ae={};const le="mounted",ce="ready",ue="move",he="moved",de="shifted",pe="click",fe="visible",me="hidden",ge="slide:keydown",ye="refresh",_e="updated",ve="resize",be="resized",Te="repositioned",we="scroll",Se="scrolled",Ee="destroy",Ce="navigation:mounted",ke="lazyload:loaded";function xe(e){const{event:t}=e,i={};let n=[];function s(e,t,i){r(e,t,((e,t)=>{n=n.filter((n=>!!(n[0]!==e||n[1]!==t||i&&n[2]!==i)||(e.removeEventListener(t,n[2],n[3]),!1)))}))}function r(e,t,i){y(e,(e=>{e&&t.split(" ").forEach(i.bind(null,e))}))}function o(){n=n.filter((e=>s(e[0],e[1]))),t.offBy(i)}return t.on(Ee,o,i),{on:function(e,n,s){t.on(e,n,i,s)},off:function(e){t.off(e,i)},emit:t.emit,bind:function(e,t,i,s){r(e,t,((e,t)=>{n.push([e,t,i,s]),e.addEventListener(t,i,s)}))},unbind:s,destroy:o}}function Ie(e,t,i,n){const{now:s}=Date;let r,o,a=0,l=!0,c=0;function u(){if(!l){const o=s()-r;if(o>=e?(a=1,r=s()):a=o/e,i&&i(a),1===a&&(t(),n&&++c>=n))return h();Y(u)}}function h(){l=!0}function d(){cancelAnimationFrame(o),a=0,o=0,l=!0}return{start:function(t){!t&&d(),r=s()-(t?a*e:0),l=!1,Y(u)},rewind:function(){r=s(),a=0,i&&i(a)},pause:h,cancel:d,set:function(t){e=t},isPaused:function(){return l}}}function Ae(e,t){let i;return function(){i||(i=Ie(0,(()=>{e.apply(this,arguments),i=null}),null,1),i.start())}}const Le="ttb",Oe={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};const Pe=o,De=`${o}__slider`,Me=`${o}__track`,Ne=`${o}__list`,Re=`${o}__slide`,Fe=`${Re}--clone`,Be=`${Re}__container`,Ue=`${o}__arrows`,je=`${o}__arrow`,$e=`${je}--prev`,qe=`${je}--next`,He=`${o}__pagination`,Ve=`${o}__progress`,ze=`${Ve}__bar`,We=`${o}__autoplay`,Ge=`${o}__play`,Xe=`${o}__pause`,Ke="is-active",Ye="is-prev",Qe="is-next",Je="is-visible",Ze="is-loading",et=[Ke,Je,Ye,Qe,Ze],tt={slide:Re,clone:Fe,arrows:Ue,arrow:je,prev:$e,next:qe,pagination:He,page:`${He}__page`,spinner:`${o}__spinner`};const it="role",nt="aria-controls",st="aria-current",rt="aria-label",ot="aria-hidden",at="tabindex",lt="aria-orientation",ct=[it,nt,st,rt,ot,lt,at,"disabled"],ut="slide",ht="loop",dt="fade";function pt(e,t,i,n){const{on:s,emit:r,bind:o,destroy:a}=xe(e),{Components:l,root:c,options:u}=e,{isNavigation:h,updateOnMove:d}=u,{resolve:p}=l.Direction,f=F(n,"style"),m=i>-1,g=I(n,`.${Be}`),y=u.focusableNodes&&V(n,u.focusableNodes);let _;function v(){const s=m?i:t,r=re(u.i18n.slideX,s+1),o=e.splides.map((e=>e.splide.root.id)).join(" ");D(n,rt,r),D(n,nt,o),D(n,it,"menuitem"),S(E())}function b(){_||T()}function T(){if(!_){const{index:i}=e;S(E()),function(e){const t=!e&&(!E()||m);D(n,ot,t||null),D(n,at,!t&&u.slideFocus?0:null),y&&y.forEach((e=>{D(e,at,t?-1:null)}));e!==B(n,Je)&&(w(n,Je,e),r(e?fe:me,C))}(function(){if(e.is(dt))return E();const t=U(l.Elements.track),i=U(n),s=p("left"),r=p("right");return Z(t[s])<=ee(i[s])&&Z(i[r])<=ee(t[r])}()),w(n,Ye,t===i-1),w(n,Qe,t===i+1)}}function S(e){e!==B(n,Ke)&&(w(n,Ke,e),h&&D(n,st,e||null),r(e?"active":"inactive",C))}function E(){const{index:n}=e;return n===t||u.cloneStatus&&n===i}const C={index:t,slideIndex:i,slide:n,container:g,isClone:m,mount:function(){m||(n.id=`${c.id}-slide${oe(t+1)}`),o(n,"click keydown",(e=>{r("click"===e.type?pe:ge,C,e)})),s([ye,Te,de,he,Se],T),s(Ce,v),d&&s(ue,b)},destroy:function(){_=!0,a(),z(n,et),P(n,ct),D(n,"style",f)},update:T,style:function(e,t,i){N(i&&g||n,e,t)},isWithin:function(i,n){let s=te(i-t);return m||!u.rewind&&!e.is(ht)||(s=Q(s,e.length-s)),s<=n}};return C}const ft=`${a}-interval`;const mt={passive:!1,capture:!0},gt="touchmove mousemove",yt="touchend touchcancel mouseup";const _t=["Left","Right","Up","Down"],vt="keydown";const bt=`${a}-lazy`,Tt=`${bt}-srcset`,wt=`[${bt}], [${Tt}]`;const St=[" ","Enter","Spacebar"];var Et=Object.freeze({__proto__:null,Options:function(e,t,i){const n=Ae(c);let s,r,o;function l(e){e&&removeEventListener("resize",n)}function c(){const t=(n=e=>e[1].matches,T(r).filter(n)[0]||[]);var n;t[0]!==o&&function(t){const n=i.breakpoints[t]||s;n.destroy?(e.options=s,e.destroy("completely"===n.destroy)):(e.state.is(5)&&(l(!0),e.mount()),e.options=n)}(o=t[0])}return{setup:function(){try{O(i,JSON.parse(F(e.root,a)))}catch(e){G(!1,e.message)}s=O({},i);const{breakpoints:t}=i;if(t){const e="min"===i.mediaQuery;r=Object.keys(t).sort(((t,i)=>e?+i-+t:+t-+i)).map((t=>[t,matchMedia(`(${e?"min":"max"}-width:${t}px)`)])),c()}},mount:function(){r&&addEventListener("resize",n)},destroy:l}},Direction:function(e,t,i){return{resolve:function(e,t){const{direction:n}=i;return Oe[e]["rtl"!==n||t?n===Le?0:-1:1]||e},orient:function(e){return e*("rtl"===i.direction?1:-1)}}},Elements:function(e,t,i){const{on:n}=xe(e),{root:s}=e,r={},a=[];let l,u,h,d;function p(){!function(){u=I(s,`.${De}`),h=H(s,`.${Me}`),d=I(h,`.${Ne}`),G(h&&d,"A track/list element is missing."),v(a,x(d,`.${Re}:not(.${Fe})`));const e=y(`.${We}`),t=y(`.${Ue}`);L(r,{root:s,slider:u,track:h,list:d,slides:a,arrows:t,autoplay:e,prev:H(t,`.${$e}`),next:H(t,`.${qe}`),bar:H(y(`.${Ve}`),`.${ze}`),play:H(e,`.${Ge}`),pause:H(e,`.${Xe}`)})}(),function(){const e=s.id||(t=o,`${t}${oe(ae[t]=(ae[t]||0)+1)}`);var t;s.id=e,h.id=h.id||`${e}-track`,d.id=d.id||`${e}-list`}(),S(s,l=_())}function f(){[s,h,d].forEach((e=>{P(e,"style")})),c(a),z(s,l)}function m(){f(),p()}function g(){z(s,l),S(s,l=_())}function y(e){return I(s,e)||I(u,e)}function _(){return[`${Pe}--${i.type}`,`${Pe}--${i.direction}`,i.drag&&`${Pe}--draggable`,i.isNavigation&&`${Pe}--nav`,Ke]}return L(r,{setup:p,mount:function(){n(ye,m,8),n(_e,g)},destroy:f})},Slides:function(e,t,i){const{on:n,emit:s,bind:r}=xe(e),{slides:o,list:a}=t.Elements,l=[];function u(){o.forEach(((e,t)=>{f(e,t,-1)}))}function h(){b((e=>{e.destroy()})),c(l)}function p(){h(),u()}function f(t,i,n){const s=pt(e,i,n,t);s.mount(),l.push(s)}function v(e){return e?T((e=>!e.isClone)):l}function b(e,t){v(t).forEach(e)}function T(e){return l.filter("function"==typeof e?e:t=>d(e)?k(t.slide,e):_(g(e),t.index))}return{mount:function(){u(),n(ye,p),n([le,ye],(()=>{l.sort(((e,t)=>e.index-t.index))}))},destroy:h,update:function(){b((e=>{e.update()}))},register:f,get:v,getIn:function(e){const{Controller:n}=t,s=n.toIndex(e),r=n.hasFocus()?1:i.perPage;return T((e=>ie(e.index,s,s+r-1)))},getAt:function(e){return T(e)[0]},add:function(e,t){y(e,(e=>{if(d(e)&&(e=$(e)),m(e)){const n=o[t];n?C(e,n):E(a,e),S(e,i.classes.slide),function(e,t){const i=V(e,"img");let{length:n}=i;n?i.forEach((e=>{r(e,"load error",(()=>{--n||t()}))})):t()}(e,s.bind(null,ve))}})),s(ye)},remove:function(e){j(T(e).map((e=>e.slide))),s(ye)},forEach:b,filter:T,style:function(e,t,i){b((n=>{n.style(e,t,i)}))},getLength:function(e){return e?o.length:l.length},isEnough:function(){return l.length>i.perPage}}},Layout:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{Slides:o}=t,{resolve:a}=t.Direction,{root:l,track:c,list:h}=t.Elements,{getAt:d}=o;let p,f;function m(){f=null,p=i.direction===Le,N(l,"maxWidth",W(i.width)),N(c,a("paddingLeft"),y(!1)),N(c,a("paddingRight"),y(!0)),g()}function g(){const e=U(l);f&&f.width===e.width&&f.height===e.height||(N(c,"height",function(){let e="";p&&(e=_(),G(e,"height or heightRatio is missing."),e=`calc(${e} - ${y(!1)} - ${y(!0)})`);return e}()),o.style(a("marginRight"),W(i.gap)),o.style("width",(i.autoWidth?"":W(i.fixedWidth)||(p?"":v()))||null),o.style("height",W(i.fixedHeight)||(p?i.autoHeight?"":v():_())||null,!0),f=e,r(be))}function y(e){const{padding:t}=i,n=a(e?"right":"left");return t&&W(t[n]||(u(t)?0:t))||"0px"}function _(){return W(i.height||U(h).width*i.heightRatio)}function v(){const e=W(i.gap);return`calc((100%${e&&` + ${e}`})/${i.perPage||1}${e&&` - ${e}`})`}function b(e,t){const i=d(e);if(i){const e=U(i.slide)[a("right")],n=U(h)[a("left")];return te(e-n)+(t?0:T())}return 0}function T(){const e=d(0);return e&&parseFloat(N(e.slide,a("marginRight")))||0}return{mount:function(){m(),s(window,"resize load",Ae(r.bind(this,ve))),n([_e,ye],m),n(ve,g)},listSize:function(){return U(h)[a("width")]},slideSize:function(e,t){const i=d(e||0);return i?U(i.slide)[a("width")]+(t?0:T()):0},sliderSize:function(){return b(e.length-1,!0)-b(-1,!0)},totalSize:b,getPadding:function(e){return parseFloat(N(c,a("padding"+(e?"Right":"Left"))))||0}}},Clones:function(e,t,i){const{on:n,emit:s}=xe(e),{Elements:r,Slides:o}=t,{resolve:a}=t.Direction,l=[];let u;function h(){(u=g())&&(!function(t){const n=o.get().slice(),{length:s}=n;if(s){for(;n.length<t;)v(n,n);v(n.slice(-t),n.slice(0,t)).forEach(((a,c)=>{const u=c<t,h=function(t,n){const s=t.cloneNode(!0);return S(s,i.classes.clone),s.id=`${e.root.id}-clone${oe(n+1)}`,s}(a.slide,c);u?C(h,n[0].slide):E(r.list,h),v(l,h),o.register(h,c-t+(u?0:s),a.index)}))}}(u),s(ve))}function p(){j(l),c(l)}function f(){p(),h()}function m(){u<g()&&s(ye)}function g(){let{clones:t}=i;if(e.is(ht)){if(!t){const n=function(e,t){if(d(t)){const i=M("div",{style:`width: ${t}; position: absolute;`},e);t=U(i).width,j(i)}return t}(r.list,i[a("fixedWidth")]);t=(n&&ee(U(r.track)[a("width")]/n)||i[a("autoWidth")]&&e.length||i.perPage)*(i.drag?(i.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){h(),n(ye,f),n([_e,ve],m)},destroy:p}},Move:function(e,t,i){const{on:n,emit:s}=xe(e),{slideSize:r,getPadding:o,totalSize:a,listSize:l,sliderSize:c}=t.Layout,{resolve:u,orient:h}=t.Direction,{list:d,track:f}=t.Elements;let m;function g(){S()||(t.Scroll.cancel(),y(e.index),s(Te))}function y(e){_(b(e,!0))}function _(t,i){if(!e.is(dt)){const n=i?t:function(t){if(e.is(ht)){const e=h(t-T()),i=E(!1,t)&&e<0,n=E(!0,t)&&e>0;(i||n)&&(t=v(t,n))}return t}(t);d.style.transform=`translate${u("X")}(${n}px)`,t!==n&&s(de)}}function v(e,t){const i=e-w(t),n=c();return e-=h(n*(ee(te(i)/n)||1))*(t?1:-1)}function b(t,n){const s=h(a(t-1)-function(e){const{focus:t}=i;return"center"===t?(l()-r(e,!0))/2:+t*r(e)||0}(t));return n?function(t){i.trimSpace&&e.is(ut)&&(t=ne(t,0,h(c()-l())));return t}(s):s}function T(){const e=u("left");return U(d)[e]-U(f)[e]+h(o(!1))}function w(e){return b(e?t.Controller.getEnd():0,!!i.trimSpace)}function S(){return e.state.is(4)&&i.waitForTransition}function E(e,t){t=p(t)?T():t;const i=!0!==e&&h(t)<h(w(!1)),n=!1!==e&&h(t)>h(w(!0));return i||n}return{mount:function(){m=t.Transition,n([le,be,_e,ye],g)},destroy:function(){P(d,"style")},move:function(n,r,o,a){if(!S()){const{set:l}=e.state,c=T();n!==r&&(m.cancel(),_(v(c,n>r),!0)),l(4),s(ue,r,o,n),m.start(r,(()=>{l(3),s(he,r,o,n),"move"===i.trimSpace&&n!==o&&c===T()?t.Controller.go(n>o?">":"<",!1,a):a&&a()}))}},jump:y,translate:_,shift:v,cancel:function(){_(T()),m.cancel()},toIndex:function(e){const i=t.Slides.get();let n=0,s=1/0;for(let t=0;t<i.length;t++){const r=i[t].index,o=te(b(r,!0)-e);if(!(o<=s))break;s=o,n=r}return n},toPosition:b,getPosition:T,getLimit:w,isBusy:S,exceededLimit:E}},Controller:function(e,t,i){const{on:n}=xe(e),{Move:s}=t,{getPosition:r,getLimit:o}=s,{isEnough:a,getLength:l}=t.Slides,c=e.is(ht),u=e.is(ut);let h,f,m,g=i.start||0,y=g;function _(){h=l(!0),f=i.perMove,m=i.perPage,g=ne(g,0,h-1)}function v(e,i,n,r,o){const a=i?e:I(e);t.Scroll.scroll(i||n?s.toPosition(a,!0):e,r,(()=>{A(s.toIndex(s.getPosition())),o&&o()}))}function b(e){return w(!1,e)}function T(e){return w(!0,e)}function w(e,t){const i=f||(L()?1:m),n=S(g+i*(e?-1:1),g);return-1!==n||!u||(s=r(),a=o(!e),l=1,te(s-a)<l)?t?n:C(n):e?0:E();var s,a,l}function S(e,t,n){if(a()){const s=E();e<0||e>s?e=ie(0,e,t,!0)||ie(s,t,e,!0)?k(x(e)):c?f||L()?e:e<0?-(h%m||m):h:i.rewind?e<0?s:0:-1:n||e===t||(e=f?e:k(x(t)+(e<t?-1:1)))}else e=-1;return e}function E(){let e=h-m;return(L()||c&&f)&&(e=h-1),J(e,0)}function C(e){return c?a()?e%h+(e<0?h:0):-1:e}function k(e){return ne(L()?e:m*e,0,E())}function x(e){return L()||(e=ie(e,h-m,h-1)?h-1:e,e=Z(e/m)),e}function I(e){const t=s.toIndex(e);return u?ne(t,0,E()):t}function A(e){e!==g&&(y=g,g=e)}function L(){return!p(i.focus)||i.isNavigation}return{mount:function(){_(),n([_e,ye],_,9)},go:function(e,t,n){const r=function(e){let t=g;if(d(e)){const[,i,n]=e.match(/([+\-<>])(\d+)?/)||[];"+"===i||"-"===i?t=S(g+ +`${i}${+n||1}`,g,!0):">"===i?t=n?k(+n):b(!0):"<"===i&&(t=T(!0))}else t=c?e:ne(e,0,E());return t}(e);if(i.useScroll)v(r,!0,!0,i.speed,n);else{const e=C(r);e>-1&&!s.isBusy()&&(t||e!==g)&&(A(e),s.move(r,e,y,n))}},scroll:v,getNext:b,getPrev:T,getAdjacent:w,getEnd:E,setIndex:A,getIndex:function(e){return e?y:g},toIndex:k,toPage:x,toDest:I,hasFocus:L}},Arrows:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{classes:o,i18n:a}=i,{Elements:l,Controller:c}=t;let u,h=l.arrows,d=l.prev,p=l.next;const f={};function m(){if(i.arrows&&(d&&p||(h=M("div",o.arrows),d=g(!0),p=g(!1),u=!0,E(h,[d,p]),C(h,I("slider"===i.arrows&&l.slider||e.root)))),d&&p)if(f.prev)R(h,!1===i.arrows?"none":"");else{const{id:e}=l.track;D(d,nt,e),D(p,nt,e),f.prev=d,f.next=p,function(){const{go:e}=c;n([le,he,_e,ye,Se],y),s(p,"click",(()=>{e(">",!0)})),s(d,"click",(()=>{e("<",!0)}))}(),r("arrows:mounted",d,p)}}function g(e){return $(`<button class="${o.arrow} ${e?o.prev:o.next}" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="${i.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"}" />`)}function y(){const t=e.index,i=c.getPrev(),n=c.getNext(),s=i>-1&&t<i?a.last:a.prev,o=n>-1&&t>n?a.first:a.next;d.disabled=i<0,p.disabled=n<0,D(d,rt,s),D(p,rt,o),r("arrows:updated",d,p,i,n)}return{arrows:f,mount:function(){m(),n(_e,m)},destroy:function(){u?j(h):(P(d,ct),P(p,ct))}}},Autoplay:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),o=Ie(i.interval,e.go.bind(e,">"),(function(e){const{bar:t}=l;t&&N(t,"width",100*e+"%"),r("autoplay:playing",e)})),{isPaused:a}=o,{Elements:l}=t;let c,u,h;function d(e){const t=e?"pause":"play",n=l[t];n&&(D(n,nt,l.track.id),D(n,rt,i.i18n[t]),s(n,"click",e?f:p))}function p(){a()&&t.Slides.isEnough()&&(o.start(!i.resetProgress),u=c=h=!1,r("autoplay:play"))}function f(e=!0){a()||(o.pause(),r("autoplay:pause")),h=e}function m(){h||(c||u?f(!1):p())}function g(){const n=t.Slides.getAt(e.index);o.set(n&&+F(n.slide,ft)||i.interval)}return{mount:function(){const{autoplay:e}=i;e&&(d(!0),d(!1),function(){const{root:e}=l;i.pauseOnHover&&s(e,"mouseenter mouseleave",(e=>{c="mouseenter"===e.type,m()}));i.pauseOnFocus&&s(e,"focusin focusout",(e=>{u="focusin"===e.type,m()}));n([ue,we,ye],o.rewind),n(ue,g)}(),"pause"!==e&&p())},destroy:o.cancel,play:p,pause:f,isPaused:a}},Cover:function(e,t,i){const{on:n}=xe(e);function s(e){t.Slides.forEach((t=>{const i=I(t.container||t.slide,"img");i&&i.src&&r(e,i,t)}))}function r(e,t,i){i.style("background",e?`center/cover no-repeat url("${t.src}")`:"",!0),R(t,e?"none":"")}return{mount:function(){i.cover&&(n(ke,((e,t)=>{r(!0,e,t)})),n([le,_e,ye],s.bind(null,!0)))},destroy:function(){s(!1)}}},Scroll:function(e,t,i){const{on:n,emit:s}=xe(e),{Move:r}=t,{getPosition:o,getLimit:a,exceededLimit:l}=r;let c,u;function h(t,n,f,m){const g=o();let y=1;var _;n=n||(_=te(t-g),J(_/1.5,800)),u=f,p(),c=Ie(n,d,(n=>{const s=o(),c=(g+(t-g)*function(e){const{easingFunc:t}=i;return t?t(e):1-Math.pow(1-e,4)}(n)-o())*y;var u;r.translate(s+c),e.is(ut)&&!m&&l()&&(y*=.6,te(c)<10&&(u=l(!1),h(a(!u),600,null,!0)))}),1),s(we),c.start()}function d(){const t=o(),i=r.toIndex(t);ie(i,0,e.length-1)||r.translate(r.shift(t,i>0),!0),u&&u(),s(Se)}function p(){c&&c.cancel()}function f(){c&&!c.isPaused()&&(p(),d())}return{mount:function(){n(ue,p),n([_e,ye],f)},destroy:p,scroll:h,cancel:f}},Drag:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Move:a,Scroll:l,Controller:c}=t,{track:h}=t.Elements,{resolve:d,orient:p}=t.Direction,{getPosition:f,exceededLimit:m}=a;let g,y,_,v,b,T,w,S,E,C=!1;function x(){const{drag:e}=i;F(!e),b="free"===e}function I(e){if(!S){const{noDrag:t}=i,n=R(e),s=!t||!k(e.target,t);w=!1,!s||!n&&e.button||(a.isBusy()?q(e,!0):(E=n?h:window,_=null,v=null,r(E,gt,A,mt),r(E,yt,L,mt),a.cancel(),l.cancel(),O(e)))}}function A(t){if(v||s("drag"),v=t,t.cancelable){const n=M(t)-M(y);if(T){a.translate(g+function(t){return t/(C&&e.is(ut)?5:1)}(n));const i=N(t)-N(y)>200,r=C!==(C=m());(i||r)&&O(t),s("dragging"),w=!0,q(t)}else{let{dragMinThreshold:e}=i;e=u(e)?e:{mouse:0,touch:+e||10},T=te(n)>(R(t)?e.touch:e.mouse),D()&&q(t)}}}function L(n){o(E,gt,A),o(E,yt,L);const{index:r}=e;if(v){if(T||n.cancelable&&D()){const s=function(t){if(e.is(ht)||!C){const e=y===v&&_||y,i=M(v)-M(e),n=N(t)-N(e),s=N(t)-N(v)<200;if(n&&s)return i/n}return 0}(n),o=function(e){return f()+se(e)*Q(te(e)*(i.flickPower||600),b?1/0:t.Layout.listSize()*(i.flickMaxPages||1))}(s);b?c.scroll(o):e.is(dt)?c.go(r+p(se(s))):c.go(c.toDest(o),!0),q(n)}s("dragged")}else b||f()===a.toPosition(r)||c.go(r,!0);T=!1}function O(e){_=y,y=e,g=f()}function P(e){!S&&w&&q(e,!0)}function D(){return te(M(v)-M(y))>te(M(v,!0)-M(y,!0))}function M(e,t){return(R(e)?e.touches[0]:e)[`page${d(t?"Y":"X")}`]}function N(e){return e.timeStamp}function R(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function F(e){S=e}return{mount:function(){r(h,gt,K,mt),r(h,yt,K,mt),r(h,"touchstart mousedown",I,mt),r(h,"click",P,{capture:!0}),r(h,"dragstart",q),n([le,_e],x)},disable:F,isDragging:function(){return T}}},Keyboard:function(e,t,i){const{on:n,bind:s,unbind:r}=xe(e),{root:o}=e,{resolve:a}=t.Direction;let l,c;function u(){const{keyboard:e}=i;e&&("focused"===e?(l=o,D(o,at,0)):l=window,s(l,vt,f))}function h(){r(l,vt),m(l)&&P(l,at)}function d(){const e=c;c=!0,X((()=>{c=e}))}function p(){h(),u()}function f(t){if(!c){const{key:i}=t,n=_(_t,i)?`Arrow${i}`:i;n===a("ArrowLeft")?e.go("<"):n===a("ArrowRight")&&e.go(">")}}return{mount:function(){u(),n(_e,p),n(ue,d)},destroy:h,disable:function(e){c=e}}},LazyLoad:function(e,t,i){const{on:n,off:s,bind:r,emit:o}=xe(e),a="sequential"===i.lazyLoad;let l=[],c=0;function u(){d(),h()}function h(){t.Slides.forEach((e=>{V(e.slide,wt).forEach((t=>{const n=F(t,bt),s=F(t,Tt);if(n!==t.src||s!==t.srcset){const r=i.classes.spinner,o=t.parentElement,a=I(o,`.${r}`)||M("span",r,o);D(a,it,"presentation"),l.push({_img:t,_Slide:e,src:n,srcset:s,_spinner:a}),!t.src&&R(t,"none")}}))})),a&&m()}function d(){c=0,l=[]}function p(){l=l.filter((t=>{const n=i.perPage*((i.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,n)||f(t)})),l.length||s(he)}function f(e){const{_img:t}=e;S(e._Slide.slide,Ze),r(t,"load error",(t=>{!function(e,t){const{_Slide:i}=e;z(i.slide,Ze),t||(j(e._spinner),R(e._img,""),o(ke,e._img,i),o(ve));a&&m()}(e,"error"===t.type)})),["srcset","src"].forEach((i=>{e[i]&&(D(t,i,e[i]),P(t,"src"===i?bt:Tt))}))}function m(){c<l.length&&f(l[c++])}return{mount:function(){i.lazyLoad&&(h(),n(ye,u),a||n([le,ye,he,Se],p))},destroy:d}},Pagination:function(e,t,i){const{on:n,emit:s,bind:r,unbind:o}=xe(e),{Slides:a,Elements:l,Controller:u}=t,{hasFocus:h,getIndex:d}=u,p=[];let f;function m(){g(),i.pagination&&a.isEnough()&&(!function(){const{length:t}=e,{classes:n,i18n:s,perPage:o}=i,c="slider"===i.pagination&&l.slider||l.root,u=h()?t:ee(t/o);f=M("ul",n.pagination,c);for(let e=0;e<u;e++){const t=M("li",null,f),i=M("button",{class:n.page,type:"button"},t),l=a.getIn(e).map((e=>e.slide.id)),c=!h()&&o>1?s.pageX:s.slideX;r(i,"click",y.bind(null,e)),D(i,nt,l.join(" ")),D(i,rt,re(c,e+1)),p.push({li:t,button:i,page:e})}}(),s("pagination:mounted",{list:f,items:p},_(e.index)),v())}function g(){f&&(j(f),p.forEach((e=>{o(e.button,"click")})),c(p),f=null)}function y(e){u.go(`>${e}`,!0,(()=>{const t=a.getAt(u.toIndex(e));var i;t&&((i=t.slide).setActive&&i.setActive()||i.focus({preventScroll:!0}))}))}function _(e){return p[u.toPage(e)]}function v(){const e=_(d(!0)),t=_(d());e&&(z(e.button,Ke),P(e.button,st)),t&&(S(t.button,Ke),D(t.button,st,!0)),s("pagination:updated",{list:f,items:p},e,t)}return{items:p,mount:function(){m(),n([_e,ye],m),n([ue,Se],v)},destroy:g,getAt:_,update:v}},Sync:function(e,t,i){const{list:n}=t.Elements,s=[];function r(){e.splides.forEach((t=>{var i;!t.isParent&&(i=t.splide,[e,i].forEach((t=>{const n=xe(t),r=t===e?i:e;n.on(ue,((e,t,i)=>{r.go(r.is(ht)?i:e)})),s.push(n)})))})),i.isNavigation&&function(){const t=xe(e),{on:i}=t;i(pe,l),i(ge,u),i([le,_e],a),D(n,it,"menu"),s.push(t),t.emit(Ce,e.splides)}()}function o(){P(n,ct),s.forEach((e=>{e.destroy()})),c(s)}function a(){D(n,lt,i.direction!==Le?"horizontal":null)}function l(t){e.go(t.index)}function u(e,t){_(St,t.key)&&(l(e),q(t))}return{mount:r,destroy:o,remount:function(){o(),r()}}},Wheel:function(e,t,i){const{bind:n}=xe(e);function s(n){if(n.cancelable){const{deltaY:s}=n;if(s){const r=s<0;e.go(r?"<":">"),function(n){return!i.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(n)}(r)&&q(n)}}}return{mount:function(){i.wheel&&n(t.Elements.track,"wheel",s,mt)}}}});const Ct={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:tt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function kt(e,t,i){const{on:n}=xe(e);return{mount:function(){n([le,ye],(()=>{X((()=>{t.Slides.style("transition",`opacity ${i.speed}ms ${i.easing}`)}))}))},start:function(e,i){const{track:n}=t.Elements;N(n,"height",W(U(n).height)),X((()=>{i(),N(n,"height","")}))},cancel:K}}function xt(e,t,i){const{bind:n}=xe(e),{Move:s,Controller:r}=t,{list:o}=t.Elements;let a;function l(){c("")}function c(e){N(o,"transition",e)}return{mount:function(){n(o,"transitionend",(e=>{e.target===o&&a&&(l(),a())}))},start:function(t,n){const o=s.toPosition(t,!0),l=s.getPosition(),u=function(t){const{rewindSpeed:n}=i;if(e.is(ut)&&n){const e=r.getIndex(!0),i=r.getEnd();if(0===e&&t>=i||e>=i&&0===t)return n}return i.speed}(t);te(o-l)>=1&&u>=1?(c(`transform ${u}ms ${i.easing}`),s.translate(o,!0),a=n):(s.jump(t),n())},cancel:l}}const It=class{constructor(e,t){this.event=function(){let e={};function t(t,n){i(t,((t,i)=>{const s=e[t];e[t]=s&&s.filter((e=>e._key?e._key!==n:n||e._namespace!==i))}))}function i(e,t){g(e).join(" ").split(" ").forEach((e=>{const i=e.split(".");t(i[0],i[1])}))}return{on:function(t,n,s,r=10){i(t,((t,i)=>{e[t]=e[t]||[],v(e[t],{_event:t,_callback:n,_namespace:i,_priority:r,_key:s}).sort(((e,t)=>e._priority-t._priority))}))},off:t,offBy:function(i){A(e,((e,n)=>{t(n,i)}))},emit:function(t){(e[t]||[]).forEach((e=>{e._callback.apply(e,T(arguments,1))}))},destroy:function(){e={}}}}(),this.Components={},this.state=function(e){let t=e;return{set:function(e){t=e},is:function(e){return _(g(e),t)}}}(1),this.splides=[],this._options={},this._Extensions={};const i=d(e)?H(document,e):e;G(i,`${i} is invalid.`),this.root=i,O(Ct,It.defaults),O(O(this._options,Ct),t||{})}mount(e,t){const{state:i,Components:n}=this;G(i.is([1,5]),"Already mounted!"),i.set(1),this._Components=n,this._Transition=t||this._Transition||(this.is(dt)?kt:xt),this._Extensions=e||this._Extensions;return A(L({},Et,this._Extensions,{Transition:this._Transition}),((e,t)=>{const i=e(this,n,this._options);n[t]=i,i.setup&&i.setup()})),A(n,(e=>{e.mount&&e.mount()})),this.emit(le),S(this.root,"is-initialized"),i.set(3),this.emit(ce),this}sync(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),e.Components.Sync.remount()),this}go(e){return this._Components.Controller.go(e),this}on(e,t){return this.event.on(e,t,null,20),this}off(e){return this.event.off(e),this}emit(e){return this.event.emit(e,...T(arguments,1)),this}add(e,t){return this._Components.Slides.add(e,t),this}remove(e){return this._Components.Slides.remove(e),this}is(e){return this._options.type===e}refresh(){return this.emit(ye),this}destroy(e=!0){const{event:t,state:i}=this;return i.is(1)?t.on(ce,this.destroy.bind(this,e),this):(A(this._Components,(t=>{t.destroy&&t.destroy(e)}),!0),t.emit(Ee),t.destroy(),e&&c(this.splides),i.set(5)),this}get options(){return this._options}set options(e){const{_options:t}=this;O(t,e),this.state.is(1)||this.emit(_e,t)}get length(){return this._Components.Slides.getLength(!0)}get index(){return this._Components.Controller.getIndex()}};let At=It;At.defaults={},At.STATES=l;const Lt=new Map,Ot={set(e,t,i){Lt.has(e)||Lt.set(e,new Map);const n=Lt.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>Lt.has(e)&&Lt.get(e).get(t)||null,remove(e,t){if(!Lt.has(e))return;const i=Lt.get(e);i.delete(t),0===i.size&&Lt.delete(e)}},Pt="transitionend",Dt=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},Mt=e=>{const t=Dt(e);return t&&document.querySelector(t)?t:null},Nt=e=>{const t=Dt(e);return t?document.querySelector(t):null},Rt=e=>{e.dispatchEvent(new Event(Pt))},Ft=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Bt=e=>Ft(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,Ut=e=>{if(!Ft(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},jt=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),$t=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?$t(e.parentNode):null},qt=()=>{},Ht=e=>{e.offsetHeight},Vt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,zt=[],Wt=()=>"rtl"===document.documentElement.dir,Gt=e=>{var t;t=()=>{const t=Vt();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(zt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of zt)e()})),zt.push(t)):t()},Xt=e=>{"function"==typeof e&&e()},Kt=(e,t,i=!0)=>{if(!i)return void Xt(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let s=!1;const r=({target:i})=>{i===t&&(s=!0,t.removeEventListener(Pt,r),Xt(e))};t.addEventListener(Pt,r),setTimeout((()=>{s||Rt(t)}),n)},Yt=(e,t,i,n)=>{const s=e.length;let r=e.indexOf(t);return-1===r?!i&&n?e[s-1]:e[0]:(r+=i?1:-1,n&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},Qt=/[^.]*(?=\..*)\.|.*/,Jt=/\..*/,Zt=/::\d+$/,ei={};let ti=1;const ii={mouseenter:"mouseover",mouseleave:"mouseout"},ni=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 si(e,t){return t&&`${t}::${ti++}`||e.uidEvent||ti++}function ri(e){const t=si(e);return e.uidEvent=t,ei[t]=ei[t]||{},ei[t]}function oi(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function ai(e,t,i){const n="string"==typeof t,s=n?i:t||i;let r=hi(e);return ni.has(r)||(r=e),[n,s,r]}function li(e,t,i,n,s){if("string"!=typeof t||!e)return;let[r,o,a]=ai(t,i,n);if(t in ii){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};o=e(o)}const l=ri(e),c=l[a]||(l[a]={}),u=oi(c,o,r?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=si(o,t.replace(Qt,"")),d=r?function(e,t,i){return function n(s){const r=e.querySelectorAll(t);for(let{target:o}=s;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return pi(s,{delegateTarget:o}),n.oneOff&&di.off(e,s.type,t,i),i.apply(o,[s])}}(e,i,o):function(e,t){return function i(n){return pi(n,{delegateTarget:e}),i.oneOff&&di.off(e,n.type,t),t.apply(e,[n])}}(e,o);d.delegationSelector=r?i:null,d.callable=o,d.oneOff=s,d.uidEvent=h,c[h]=d,e.addEventListener(a,d,r)}function ci(e,t,i,n,s){const r=oi(t[i],n,s);r&&(e.removeEventListener(i,r,Boolean(s)),delete t[i][r.uidEvent])}function ui(e,t,i,n){const s=t[i]||{};for(const r of Object.keys(s))if(r.includes(n)){const n=s[r];ci(e,t,i,n.callable,n.delegationSelector)}}function hi(e){return e=e.replace(Jt,""),ii[e]||e}const di={on(e,t,i,n){li(e,t,i,n,!1)},one(e,t,i,n){li(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,r,o]=ai(t,i,n),a=o!==t,l=ri(e),c=l[o]||{},u=t.startsWith(".");if(void 0===r){if(u)for(const i of Object.keys(l))ui(e,l,i,t.slice(1));for(const i of Object.keys(c)){const n=i.replace(Zt,"");if(!a||t.includes(n)){const t=c[i];ci(e,l,o,t.callable,t.delegationSelector)}}}else{if(!Object.keys(c).length)return;ci(e,l,o,r,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=Vt();let s=null,r=!0,o=!0,a=!1;t!==hi(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),r=!s.isPropagationStopped(),o=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());let l=new Event(t,{bubbles:r,cancelable:!0});return l=pi(l,i),a&&l.preventDefault(),o&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function pi(e,t){for(const[i,n]of Object.entries(t||{}))try{e[i]=n}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function fi(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function mi(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const gi={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${mi(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${mi(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=fi(e.dataset[n])}return t},getDataAttribute:(e,t)=>fi(e.getAttribute(`data-bs-${mi(t)}`))};let yi=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Ft(t)?gi.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Ft(t)?gi.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const n of Object.keys(t)){const s=t[n],r=e[n],o=Ft(r)?"element":null==(i=r)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}};class _i extends yi{constructor(e,t){super(),(e=Bt(e))&&(this._element=e,this._config=this._getConfig(t),Ot.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Ot.remove(this._element,this.constructor.DATA_KEY),di.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Kt(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Ot.get(Bt(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.2.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const vi={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!jt(e)&&Ut(e)))}},bi={slideFocus:!0,i18n:{prev:"Slide precedente",next:"Slide successiva",first:"Vai alla prima slide",last:"Vai all’ultima slide",slideX:"Vai alla slide %s",pageX:"Vai a pagina %s",play:"Attiva autoplay",pause:"Pausa autoplay"}},Ti={"it-carousel-landscape-abstract-three-cols":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!1}}},"it-carousel-landscape-abstract-three-cols-arrow-visible":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!0,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!0},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!0}}},"it-big-img":{type:"loop",perPage:1,gap:48,padding:{left:320,right:320},arrows:!1,breakpoints:{768:{perPage:1,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:160,right:160},arrows:!1}}},"it-standard-image":{type:"loop",perPage:3,gap:24,padding:{left:48,right:48},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!1},992:{perPage:2,gap:24,padding:{left:48,right:48},arrows:!1}}},"it-carousel-landscape-abstract":{type:"slide",perPage:1,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:24,right:24},arrows:!1}}},"it-calendar-wrapper":{type:"slide",perPage:4,gap:0,padding:{left:0,right:0},arrows:!1,breakpoints:{560:{perPage:1,gap:0,padding:{left:24,right:24},arrows:!1},768:{perPage:2,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:3,gap:0,padding:{left:0,right:0},arrows:!1}}}};class wi extends _i{constructor(e){super(e),this._config=this._getConfig(),this._splide=new At(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let e=Object.assign({},bi);return Object.keys(Ti).forEach((t=>{this._element.classList.contains(t)&&(e=Object.assign({},e,Ti[t]))})),e}}di.on(window,"load.bs.carousel.data-api",(()=>{vi.find("[data-bs-carousel-splide]").forEach((e=>{wi.getOrCreateInstance(e)}))}));const Si=".bs.inputlabel",Ei=`focus${Si}`,Ci=`blur${Si}`,ki=`change${Si}`,xi="active";class Ii{constructor(e){this._element=e,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=e=>document.querySelector("#"+CSS.escape(e.getAttribute("for")));_init(){const e=this._getLabel();e&&!e.classList.contains(xi)&&(this._labelOut(),this._labelOver()),e&&null===e.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?di.on(this._element,Ci,(()=>{this._labelOut()})):(di.on(this._element,Ei,(()=>{this._labelOut()})),di.on(this._element,Ci,(()=>{this._labelOver()})),di.on(this._element,ki,(()=>{this._labelToggle()}))))}_getLabel(){return vi.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const e=this._getLabel();e&&e.classList.add(xi)}_labelOver(){if(this._isEmpty()){const e=this._getLabel();e&&e.classList.remove(xi)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const Ai=".bs.inputnumber",Li=`click${Ai}`,Oi=`change${Ai}`,Pi=`click${Ai}.data-api`,Di=".input-number",Mi='input[data-bs-input][type="number"]',Ni='button[class^="input-number-"]';class Ri extends _i{constructor(e){super(e),this._wrapperElement=this._element.closest(Di),this._label=new Ii(e),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(vi.find(Ni,this._wrapperElement).forEach((e=>{di.on(e,Li,(t=>{t.preventDefault(),this._incrDecr(e.classList.contains("input-number-sub")),this._label._labelOut()}))})),di.on(this._element,Oi,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let e=null;e="calc(70px + "+this._element.value.length+"ch)",e&&(this._element.style.width=e)}}_incrDecr(e){var t=0;if(""!==this._element.value&&(t=parseFloat(this._element.value)),!isNaN(t)){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=t+i*(e?-1:1),di.trigger(this._element,Oi),di.trigger(this._element,"input")}}_checkLimit(){const e=parseFloat(this._element.value);if(!isNaN(e)){let t=e;const i=parseFloat(this._element.getAttribute("max")),n=parseFloat(this._element.getAttribute("min"));n&&e<n&&(t=n),i&&e>i&&(t=i),this._element.value=t}this._inputResize()}}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Mi+", label").forEach((function(e){const t=Ii.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(Mi)&&i.parentNode.querySelector(Ni)&&Ri.getOrCreateInstance(i)}))})),di.on(document,Pi,Ni,(function(){const e=this.closest(Di);if(e){const t=vi.findOne(Mi,e);t&&Ri.getOrCreateInstance(t)}})));const Fi="show";class Bi extends _i{constructor(e){super(e),this._isShown=!e.matches("[aria-hidden=true]"),this._isTransitioning=!1}static get NAME(){return"dimmer"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(Fi),this._queueCallback((()=>this._hideElement()),this._element,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),e&&Ht(this._element),this._element.classList.add(Fi);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}di.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const e=Nt(this),t=Bi.getOrCreateInstance(e);this.checked?t.show():t.hide()}));const Ui=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;di.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),jt(this))return;const s=Nt(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()}))},ji=".bs.notification",$i=`click${ji}.data-api`,qi=`hidden${ji}`,Hi=`show${ji}`,Vi={timeout:0},zi="show";class Wi extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=this._element.classList.contains(zi),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(e,t){if(this._isShown||this._isTransitioning)return;const i=e||this._getElementTimeout(t);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(zi),this._queueCallback((()=>this._hideElement()),this._element,e)}toggle(e){this._isShown?this.hide():this.show(null,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(e){const t=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),t&&Ht(this._element),this._element.classList.add(zi);this._queueCallback((()=>{this._isTransitioning=!1,e&&this._setTimeout(e,(()=>this.hide()))}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(e){return e={...Vi,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_getElementTimeout(e){const t=e?parseInt(e.getAttribute("data-bs-timeout")):null;return t>0?t:this._config.timeout}_setTimeout(e,t){this._clearTimeout(),setTimeout(t,e)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}di.on(document,$i,'[data-bs-toggle="notification"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),di.one(t,Hi,(e=>{e.defaultPrevented||di.one(t,qi,(()=>{Ut(this)&&this.focus()}))}));Wi.getOrCreateInstance(t).toggle(this)})),Ui(Wi);const Gi="cookiebar",Xi=".bs.cookiebar",Ki=".data-api",Yi="cookies_consent",Qi=`close${Xi}`,Ji=`closed${Xi}`,Zi=`load${Xi}${Ki}`,en=`click${Xi}${Ki}`,tn="show";class nn extends _i{constructor(e){super(e),this._isShown=this._element.classList.contains(tn),this._isTransitioning=!1}static get NAME(){return Gi}static get VERSION(){return"5.0.0"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(tn),this._queueCallback((()=>this._hideElement()),this._element,e)}accept(e){e=e||this._element;const t=this._getRootElement(e);this._triggerCloseEvent(t).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=Yi+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),e&&Ht(this._element),this._element.classList.add(tn);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var e=new Date;e.setDate(e.getDate()+30);var t=escape("true")+"; expires="+e.toUTCString();"undefined"!=typeof document&&(document.cookie=Yi+"="+t+"; path=/; SameSite=Strict")}_getRootElement(e){const t=Nt(e);let i=null;return t&&(i=t),i||(i=e.closest(".cookiebar")),i}_triggerCloseEvent(e){return di.trigger(e,Qi)}_removeElement(e){e.classList.remove(tn),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-live","off"),di.trigger(e,Ji),this.dispose()}static _handleAccept(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _handleConsent(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var e,t,i,n=document.cookie.split(";");for(e=0;e<n.length;e++)if(t=n[e].substring(0,n[e].indexOf("=")),i=n[e].substring(n[e].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==Yi)return unescape(i)}}}di.on(document,en,'[data-bs-accept="cookiebar"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),jt(this))return;const t=Nt(this)||this.closest(`.${Gi}`);nn.getOrCreateInstance(t).accept()})),di.on(window,Zi,(function(){if(!nn._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((e=>{nn.getOrCreateInstance(e).show()}))}}));const sn=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},rn=(e,t)=>{let i=null;return t.forEach(((t,n)=>{t===e&&(i=n)})),i},on=(e,t,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=rn(e,t);let s=null;if(i.isLimit&&i.isDirectionTop&&n>0)s=t[0];else if(i.isLimit&&n<t.length-1)s=t[t.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;s=t[0===n?t.length-1:n-1]}else{if(!i.loop&&n===t.length-1)return;s=t[n===t.length-1?0:n+1]}s&&s.focus()},an="pagescroll-scroll-disabled";let ln=!1,cn="undefined"==typeof document?0:document.scrollingElement.scrollTop;const un="undefined"==typeof document?null:document.querySelector("html");"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{ln&&(document.scrollingElement.scrollTop=cn)}));const hn=".bs.navbarcollapsible",dn=`click${hn}.data-api`,pn=`click${hn}`,fn=`keyup${hn}`,mn=`keydown${hn}`,gn=`hide${hn}`,yn=`hidden${hn}`,_n=`show${hn}`,vn=`shown${hn}`,bn=`resize${hn}`,Tn="show",wn="expanded",Sn=".close-menu",En=".nav-link",Cn=".nav-item .list-item",kn=".it-heading-link",xn=".it-footer-link";class In extends _i{constructor(e){super(e),this._isShown=this._element.classList.contains(wn),this._isTransitioning=!1,this._isMobile=sn(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=vi.findOne(".close-div button",this._element),this._btnBack=vi.findOne(".it-back-button",this._element),this._menuWrapper=vi.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=vi.find([En,Cn,kn,xn,Sn].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(e){if(this._isShown||this._isTransitioning)return;di.trigger(this._element,_n,{relatedTarget:e}).defaultPrevented||(this._btnBack&&this._btnBack.classList.add(Tn),this._isShown=!0,"undefined"!=typeof document&&(ln=!0,cn=document.scrollingElement.scrollTop,un.classList.add(an)),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;if(di.trigger(this._element,gn).defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._btnBack&&this._btnBack.classList.remove(Tn),this._overlay&&this._overlay.classList.remove(Tn),this._element.classList.remove(wn),"undefined"!=typeof document&&(ln=!1,un.classList.remove(an)),this._queueCallback((()=>this._hideElement()),this._menuWrapper,e)}toggle(e){this._isShown?this.hide():this.show(e)}dispose(){di.off(window,bn),super.dispose()}_bindEvents(){di.on(window,bn,(()=>this._onResize())),this._overlay&&di.on(this._overlay,pn,(()=>this.hide())),di.on(this._btnClose,pn,(e=>{e.preventDefault(),this.hide()})),di.on(this._btnBack,pn,(e=>{e.preventDefault(),this.hide()})),this._menuItems.forEach((e=>{di.on(e,mn,(e=>this._isMobile&&this._onMenuItemKeyDown(e))),di.on(e,fn,(e=>this._isMobile&&this._onMenuItemKeyUp(e))),di.on(e,pn,(e=>this._isMobile&&this._onMenuItemClick(e)))}))}_onResize(){this._isMobile=sn()}_onMenuItemKeyUp(e){"Shift"===e.key&&(this._isKeyShift=!1)}_onMenuItemKeyDown(e){"Shift"===e.key&&(this._isKeyShift=!0),"Tab"===e.key&&(e.preventDefault(),this._focusNext())}_onMenuItemClick(e){this.currItemIdx=rn(e.currentTarget,this._menuItems)}_isAnimated(){return!0}_isElementHidden(e){return null===e.offsetParent}_showElement(){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-expanded",!0),this._overlay&&(this._overlay.style.display="block"),e&&Ht(this._element),this._element.classList.add(wn),this._overlay&&this._overlay.classList.add(Tn);this._queueCallback((()=>{this._isTransitioning=!1;const e=this._getNextVisibleItem(0);e.item&&(e.item.focus(),this._currItemIdx=e.index),di.trigger(this._element,vn)}),this._menuWrapper,e)}_hideElement(){this._overlay&&(this._overlay.style.display="none"),this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-expanded"),this._isTransitioning=!1,di.trigger(this._element,yn)}_setOverlay(){this._overlay=vi.findOne(".overlay",this._element),this._isAnimated&&this._overlay.classList.add("fade")}_focusNext(){let e=this._currItemIdx+(this._isKeyShift?-1:1);e<0?e=this._menuItems.length-1:e>=this._menuItems.length&&(e=0);const t=this._getNextVisibleItem(e,this._isKeyShift);t.item&&(t.item.focus(),this._currItemIdx=t.index)}_getNextVisibleItem(e,t){let i=null,n=null,s=e,r=t?-1:1,o=!1;for(;!(i||s==e&&o);)s==e&&(o=!0),this._isElementHidden(this._menuItems[s])||(i=this._menuItems[s],n=s),s+=r,s<0?s=this._menuItems.length-1:s>=this._menuItems.length&&(s=0);return{item:i,index:n}}}di.on(document,dn,'[data-bs-toggle="navbarcollapsible"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),di.one(t,_n,(e=>{e.defaultPrevented||di.one(t,yn,(()=>{Ut(this)&&this.focus()}))}));In.getOrCreateInstance(t).toggle(this)}));const An=".bs.accordion",Ln=`keydown${An}`,On=`keydown${An}.data-api`,Pn='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class Dn extends _i{constructor(e){super(e),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(e,t,i){const n={ArrowDown:e=>this._focusNext(e),ArrowUp:e=>this._focusPrev(e),Home:e=>this._focusFirst(e),End:e=>this._focusLast(e)};"function"==typeof n[e]&&(i&&i.preventDefault(),n[e](t))}_bindEvents(){vi.find(Pn,this._element).forEach((e=>{di.on(e,Ln,(e=>{this.handleKeyDown(e.key,e.currentTarget,e)}))}))}_getHeadButtons(){return vi.find(":scope > "+Pn,this._element)}_focusNext(e){on(e,this._getHeadButtons(),{loop:!0})}_focusPrev(e){on(e,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(e){on(e,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(e){on(e,this._getHeadButtons(),{isLimit:!0})}}var Mn;di.on(document,On,Pn,(function(e){const t=this.closest(".accordion");if(t){Dn.getOrCreateInstance(t).handleKeyDown(e.key,this,e)}}));var Nn=new Uint8Array(16);function Rn(){if(!Mn&&!(Mn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mn(Nn)}const Fn=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Bn=[],Un=0;Un<256;++Un)Bn.push((Un+256).toString(16).substr(1));function jn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Bn[e[t+0]]+Bn[e[t+1]]+Bn[e[t+2]]+Bn[e[t+3]]+"-"+Bn[e[t+4]]+Bn[e[t+5]]+"-"+Bn[e[t+6]]+Bn[e[t+7]]+"-"+Bn[e[t+8]]+Bn[e[t+9]]+"-"+Bn[e[t+10]]+Bn[e[t+11]]+Bn[e[t+12]]+Bn[e[t+13]]+Bn[e[t+14]]+Bn[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Fn.test(e)}(i))throw TypeError("Stringified UUID is invalid");return i}function $n(e,t,i){var n=(e=e||{}).random||(e.rng||Rn)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,jn(n)}let qn=!1,Hn=[];class Vn{constructor(e,t){this.id=e,this._callback=t}dispose(){zn(this.id)}_execute(e){this._callback(e)}}const zn=e=>{Hn=Hn.filter((t=>t.id!==e))},Wn=e=>{if("undefined"!=typeof document){if(Hn.length||document.addEventListener("scroll",(e=>{qn||(window.requestAnimationFrame((()=>{Hn.forEach((t=>t.cb._execute(e))),qn=!1})),qn=!0)})),"function"==typeof e){const t=new Vn($n(),e);return Hn.push({id:t.id,cb:t}),t}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}};var Gn={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},Xn={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},Kn=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Yn={CSS:{},springs:{}};function Qn(e,t,i){return Math.min(Math.max(e,t),i)}function Jn(e,t){return e.indexOf(t)>-1}function Zn(e,t){return e.apply(null,t)}var es={arr:function(e){return Array.isArray(e)},obj:function(e){return Jn(Object.prototype.toString.call(e),"Object")},pth:function(e){return es.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||es.svg(e)},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return void 0===e},nil:function(e){return es.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return es.hex(e)||es.rgb(e)||es.hsl(e)},key:function(e){return!Gn.hasOwnProperty(e)&&!Xn.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function ts(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function is(e,t){var i=ts(e),n=Qn(es.und(i[0])?1:i[0],.1,100),s=Qn(es.und(i[1])?100:i[1],.1,100),r=Qn(es.und(i[2])?10:i[2],.1,100),o=Qn(es.und(i[3])?0:i[3],.1,100),a=Math.sqrt(s/n),l=r/(2*Math.sqrt(s*n)),c=l<1?a*Math.sqrt(1-l*l):0,u=l<1?(l*a-o)/c:-o+a;function h(e){var i=t?t*e/1e3:e;return i=l<1?Math.exp(-i*l*a)*(1*Math.cos(c*i)+u*Math.sin(c*i)):(1+u*i)*Math.exp(-i*a),0===e||1===e?e:1-i}return t?h:function(){var t=Yn.springs[e];if(t)return t;for(var i=1/6,n=0,s=0;;)if(1===h(n+=i)){if(++s>=16)break}else s=0;var r=n*i*1e3;return Yn.springs[e]=r,r}}function ns(e){return void 0===e&&(e=10),function(t){return Math.ceil(Qn(t,1e-6,1)*e)*(1/e)}}var ss,rs,os=function(){var e=.1;function t(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function n(e){return 3*e}function s(e,s,r){return((t(s,r)*e+i(s,r))*e+n(s))*e}function r(e,s,r){return 3*t(s,r)*e*e+2*i(s,r)*e+n(s)}return function(t,i,n,o){if(0<=t&&t<=1&&0<=n&&n<=1){var a=new Float32Array(11);if(t!==i||n!==o)for(var l=0;l<11;++l)a[l]=s(l*e,t,n);return function(e){return t===i&&n===o||0===e||1===e?e:s(c(e),i,o)}}function c(i){for(var o=0,l=1;10!==l&&a[l]<=i;++l)o+=e;--l;var c=o+(i-a[l])/(a[l+1]-a[l])*e,u=r(c,t,n);return u>=.001?function(e,t,i,n){for(var o=0;o<4;++o){var a=r(t,i,n);if(0===a)return t;t-=(s(t,i,n)-e)/a}return t}(i,c,t,n):0===u?c:function(e,t,i,n,r){var o,a,l=0;do{(o=s(a=t+(i-t)/2,n,r)-e)>0?i=a:t=a}while(Math.abs(o)>1e-7&&++l<10);return a}(i,o,o+e,t,n)}}}(),as=(ss={linear:function(){return function(e){return e}}},rs={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Expo:function(){return function(e){return e?Math.pow(2,10*e-10):0}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var i=Qn(e,1,10),n=Qn(t,.1,2);return function(e){return 0===e||1===e?e:-i*Math.pow(2,10*(e-1))*Math.sin((e-1-n/(2*Math.PI)*Math.asin(1/i))*(2*Math.PI)/n)}}},["Quad","Cubic","Quart","Quint"].forEach((function(e,t){rs[e]=function(){return function(e){return Math.pow(e,t+2)}}})),Object.keys(rs).forEach((function(e){var t=rs[e];ss["easeIn"+e]=t,ss["easeOut"+e]=function(e,i){return function(n){return 1-t(e,i)(1-n)}},ss["easeInOut"+e]=function(e,i){return function(n){return n<.5?t(e,i)(2*n)/2:1-t(e,i)(-2*n+2)/2}},ss["easeOutIn"+e]=function(e,i){return function(n){return n<.5?(1-t(e,i)(1-2*n))/2:(t(e,i)(2*n-1)+1)/2}}})),ss);function ls(e,t){if(es.fnc(e))return e;var i=e.split("(")[0],n=as[i],s=ts(e);switch(i){case"spring":return is(e,t);case"cubicBezier":return Zn(os,s);case"steps":return Zn(ns,s);default:return Zn(n,s)}}function cs(e){try{return document.querySelectorAll(e)}catch(e){return}}function us(e,t){for(var i=e.length,n=arguments.length>=2?arguments[1]:void 0,s=[],r=0;r<i;r++)if(r in e){var o=e[r];t.call(n,o,r,e)&&s.push(o)}return s}function hs(e){return e.reduce((function(e,t){return e.concat(es.arr(t)?hs(t):t)}),[])}function ds(e){return es.arr(e)?e:(es.str(e)&&(e=cs(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function ps(e,t){return e.some((function(e){return e===t}))}function fs(e){var t={};for(var i in e)t[i]=e[i];return t}function ms(e,t){var i=fs(e);for(var n in e)i[n]=t.hasOwnProperty(n)?t[n]:e[n];return i}function gs(e,t){var i=fs(e);for(var n in t)i[n]=es.und(e[n])?t[n]:e[n];return i}function ys(e){return es.rgb(e)?(i=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(t=e))?"rgba("+i[1]+",1)":t:es.hex(e)?function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,i,n){return t+t+i+i+n+n})),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgba("+parseInt(i[1],16)+","+parseInt(i[2],16)+","+parseInt(i[3],16)+",1)"}(e):es.hsl(e)?function(e){var t,i,n,s=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),r=parseInt(s[1],10)/360,o=parseInt(s[2],10)/100,a=parseInt(s[3],10)/100,l=s[4]||1;function c(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}if(0==o)t=i=n=a;else{var u=a<.5?a*(1+o):a+o-a*o,h=2*a-u;t=c(h,u,r+1/3),i=c(h,u,r),n=c(h,u,r-1/3)}return"rgba("+255*t+","+255*i+","+255*n+","+l+")"}(e):void 0;var t,i}function _s(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function vs(e,t){return es.fnc(e)?e(t.target,t.id,t.total):e}function bs(e,t){return e.getAttribute(t)}function Ts(e,t,i){if(ps([i,"deg","rad","turn"],_s(t)))return t;var n=Yn.CSS[t+i];if(!es.und(n))return n;var s=document.createElement(e.tagName),r=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;r.appendChild(s),s.style.position="absolute",s.style.width=100+i;var o=100/s.offsetWidth;r.removeChild(s);var a=o*parseFloat(t);return Yn.CSS[t+i]=a,a}function ws(e,t,i){if(t in e.style){var n=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),s=e.style[t]||getComputedStyle(e).getPropertyValue(n)||"0";return i?Ts(e,s,i):s}}function Ss(e,t){return es.dom(e)&&!es.inp(e)&&(!es.nil(bs(e,t))||es.svg(e)&&e[t])?"attribute":es.dom(e)&&ps(Kn,t)?"transform":es.dom(e)&&"transform"!==t&&ws(e,t)?"css":null!=e[t]?"object":void 0}function Es(e){if(es.dom(e)){for(var t,i=e.style.transform||"",n=/(\w+)\(([^)]*)\)/g,s=new Map;t=n.exec(i);)s.set(t[1],t[2]);return s}}function Cs(e,t,i,n){var s=Jn(t,"scale")?1:0+function(e){return Jn(e,"translate")||"perspective"===e?"px":Jn(e,"rotate")||Jn(e,"skew")?"deg":void 0}(t),r=Es(e).get(t)||s;return i&&(i.transforms.list.set(t,r),i.transforms.last=t),n?Ts(e,r,n):r}function ks(e,t,i,n){switch(Ss(e,t)){case"transform":return Cs(e,t,n,i);case"css":return ws(e,t,i);case"attribute":return bs(e,t);default:return e[t]||0}}function xs(e,t){var i=/^(\*=|\+=|-=)/.exec(e);if(!i)return e;var n=_s(e)||0,s=parseFloat(t),r=parseFloat(e.replace(i[0],""));switch(i[0][0]){case"+":return s+r+n;case"-":return s-r+n;case"*":return s*r+n}}function Is(e,t){if(es.col(e))return ys(e);if(/\s/g.test(e))return e;var i=_s(e),n=i?e.substr(0,e.length-i.length):e;return t?n+t:n}function As(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Ls(e){for(var t,i=e.points,n=0,s=0;s<i.numberOfItems;s++){var r=i.getItem(s);s>0&&(n+=As(t,r)),t=r}return n}function Os(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*bs(e,"r")}(e);case"rect":return function(e){return 2*bs(e,"width")+2*bs(e,"height")}(e);case"line":return function(e){return As({x:bs(e,"x1"),y:bs(e,"y1")},{x:bs(e,"x2"),y:bs(e,"y2")})}(e);case"polyline":return Ls(e);case"polygon":return function(e){var t=e.points;return Ls(e)+As(t.getItem(t.numberOfItems-1),t.getItem(0))}(e)}}function Ps(e,t){var i=t||{},n=i.el||function(e){for(var t=e.parentNode;es.svg(t)&&es.svg(t.parentNode);)t=t.parentNode;return t}(e),s=n.getBoundingClientRect(),r=bs(n,"viewBox"),o=s.width,a=s.height,l=i.viewBox||(r?r.split(" "):[0,0,o,a]);return{el:n,viewBox:l,x:l[0]/1,y:l[1]/1,w:o,h:a,vW:l[2],vH:l[3]}}function Ds(e,t,i){function n(i){void 0===i&&(i=0);var n=t+i>=1?t+i:0;return e.el.getPointAtLength(n)}var s=Ps(e.el,e.svg),r=n(),o=n(-1),a=n(1),l=i?1:s.w/s.vW,c=i?1:s.h/s.vH;switch(e.property){case"x":return(r.x-s.x)*l;case"y":return(r.y-s.y)*c;case"angle":return 180*Math.atan2(a.y-o.y,a.x-o.x)/Math.PI}}function Ms(e,t){var i=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,n=Is(es.pth(e)?e.totalLength:e,t)+"";return{original:n,numbers:n.match(i)?n.match(i).map(Number):[0],strings:es.str(e)||t?n.split(i):[]}}function Ns(e){return us(e?hs(es.arr(e)?e.map(ds):ds(e)):[],(function(e,t,i){return i.indexOf(e)===t}))}function Rs(e){var t=Ns(e);return t.map((function(e,i){return{target:e,id:i,total:t.length,transforms:{list:Es(e)}}}))}function Fs(e,t){var i=fs(t);if(/^spring/.test(i.easing)&&(i.duration=is(i.easing)),es.arr(e)){var n=e.length;2===n&&!es.obj(e[0])?e={value:e}:es.fnc(t.duration)||(i.duration=t.duration/n)}var s=es.arr(e)?e:[e];return s.map((function(e,i){var n=es.obj(e)&&!es.pth(e)?e:{value:e};return es.und(n.delay)&&(n.delay=i?0:t.delay),es.und(n.endDelay)&&(n.endDelay=i===s.length-1?t.endDelay:0),n})).map((function(e){return gs(e,i)}))}function Bs(e,t){var i=[],n=t.keyframes;for(var s in n&&(t=gs(function(e){for(var t=us(hs(e.map((function(e){return Object.keys(e)}))),(function(e){return es.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),i={},n=function(n){var s=t[n];i[s]=e.map((function(e){var t={};for(var i in e)es.key(i)?i==s&&(t.value=e[i]):t[i]=e[i];return t}))},s=0;s<t.length;s++)n(s);return i}(n),t)),t)es.key(s)&&i.push({name:s,tweens:Fs(t[s],e)});return i}function Us(e,t){var i;return e.tweens.map((function(n){var s=function(e,t){var i={};for(var n in e){var s=vs(e[n],t);es.arr(s)&&1===(s=s.map((function(e){return vs(e,t)}))).length&&(s=s[0]),i[n]=s}return i.duration=parseFloat(i.duration),i.delay=parseFloat(i.delay),i}(n,t),r=s.value,o=es.arr(r)?r[1]:r,a=_s(o),l=ks(t.target,e.name,a,t),c=i?i.to.original:l,u=es.arr(r)?r[0]:c,h=_s(u)||_s(l),d=a||h;return es.und(o)&&(o=c),s.from=Ms(u,d),s.to=Ms(xs(o,u),d),s.start=i?i.end:0,s.end=s.start+s.delay+s.duration+s.endDelay,s.easing=ls(s.easing,s.duration),s.isPath=es.pth(r),s.isPathTargetInsideSVG=s.isPath&&es.svg(t.target),s.isColor=es.col(s.from.original),s.isColor&&(s.round=1),i=s,s}))}var js={css:function(e,t,i){return e.style[t]=i},attribute:function(e,t,i){return e.setAttribute(t,i)},object:function(e,t,i){return e[t]=i},transform:function(e,t,i,n,s){if(n.list.set(t,i),t===n.last||s){var r="";n.list.forEach((function(e,t){r+=t+"("+e+") "})),e.style.transform=r}}};function $s(e,t){Rs(e).forEach((function(e){for(var i in t){var n=vs(t[i],e),s=e.target,r=_s(n),o=ks(s,i,r,e),a=xs(Is(n,r||_s(o)),o),l=Ss(s,i);js[l](s,i,a,e.transforms,!0)}}))}function qs(e,t){return us(hs(e.map((function(e){return t.map((function(t){return function(e,t){var i=Ss(e.target,t.name);if(i){var n=Us(t,e),s=n[n.length-1];return{type:i,property:t.name,animatable:e,tweens:n,duration:s.end,delay:n[0].delay,endDelay:s.endDelay}}}(e,t)}))}))),(function(e){return!es.und(e)}))}function Hs(e,t){var i=e.length,n=function(e){return e.timelineOffset?e.timelineOffset:0},s={};return s.duration=i?Math.max.apply(Math,e.map((function(e){return n(e)+e.duration}))):t.duration,s.delay=i?Math.min.apply(Math,e.map((function(e){return n(e)+e.delay}))):t.delay,s.endDelay=i?s.duration-Math.max.apply(Math,e.map((function(e){return n(e)+e.duration-e.endDelay}))):t.endDelay,s}var Vs=0;var zs=[],Ws=function(){var e;function t(i){for(var n=zs.length,s=0;s<n;){var r=zs[s];r.paused?(zs.splice(s,1),n--):(r.tick(i),s++)}e=s>0?requestAnimationFrame(t):void 0}return"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){Xs.suspendWhenDocumentHidden&&(Gs()?e=cancelAnimationFrame(e):(zs.forEach((function(e){return e._onDocumentVisibility()})),Ws()))})),function(){e||Gs()&&Xs.suspendWhenDocumentHidden||!(zs.length>0)||(e=requestAnimationFrame(t))}}();function Gs(){return!!document&&document.hidden}function Xs(e){void 0===e&&(e={});var t,i=0,n=0,s=0,r=0,o=null;function a(e){var t=window.Promise&&new Promise((function(e){return o=e}));return e.finished=t,t}var l=function(e){var t=ms(Gn,e),i=ms(Xn,e),n=Bs(i,e),s=Rs(e.targets),r=qs(s,n),o=Hs(r,i),a=Vs;return Vs++,gs(t,{id:a,children:[],animatables:s,animations:r,duration:o.duration,delay:o.delay,endDelay:o.endDelay})}(e);function c(){var e=l.direction;"alternate"!==e&&(l.direction="normal"!==e?"normal":"reverse"),l.reversed=!l.reversed,t.forEach((function(e){return e.reversed=l.reversed}))}function u(e){return l.reversed?l.duration-e:e}function h(){i=0,n=u(l.currentTime)*(1/Xs.speed)}function d(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){for(var t=0,i=l.animations,n=i.length;t<n;){var s=i[t],r=s.animatable,o=s.tweens,a=o.length-1,c=o[a];a&&(c=us(o,(function(t){return e<t.end}))[0]||c);for(var u=Qn(e-c.start-c.delay,0,c.duration)/c.duration,h=isNaN(u)?1:c.easing(u),d=c.to.strings,p=c.round,f=[],m=c.to.numbers.length,g=void 0,y=0;y<m;y++){var _=void 0,v=c.to.numbers[y],b=c.from.numbers[y]||0;_=c.isPath?Ds(c.value,h*v,c.isPathTargetInsideSVG):b+h*(v-b),p&&(c.isColor&&y>2||(_=Math.round(_*p)/p)),f.push(_)}var T=d.length;if(T){g=d[0];for(var w=0;w<T;w++){d[w];var S=d[w+1],E=f[w];isNaN(E)||(g+=S?E+S:E+" ")}}else g=f[0];js[s.type](r.target,s.property,g,r.transforms),s.currentValue=g,t++}}function f(e){l[e]&&!l.passThrough&&l[e](l)}function m(e){var h=l.duration,m=l.delay,g=h-l.endDelay,y=u(e);l.progress=Qn(y/h*100,0,100),l.reversePlayback=y<l.currentTime,t&&function(e){if(l.reversePlayback)for(var i=r;i--;)d(e,t[i]);else for(var n=0;n<r;n++)d(e,t[n])}(y),!l.began&&l.currentTime>0&&(l.began=!0,f("begin")),!l.loopBegan&&l.currentTime>0&&(l.loopBegan=!0,f("loopBegin")),y<=m&&0!==l.currentTime&&p(0),(y>=g&&l.currentTime!==h||!h)&&p(h),y>m&&y<g?(l.changeBegan||(l.changeBegan=!0,l.changeCompleted=!1,f("changeBegin")),f("change"),p(y)):l.changeBegan&&(l.changeCompleted=!0,l.changeBegan=!1,f("changeComplete")),l.currentTime=Qn(y,0,h),l.began&&f("update"),e>=h&&(n=0,l.remaining&&!0!==l.remaining&&l.remaining--,l.remaining?(i=s,f("loopComplete"),l.loopBegan=!1,"alternate"===l.direction&&c()):(l.paused=!0,l.completed||(l.completed=!0,f("loopComplete"),f("complete"),!l.passThrough&&"Promise"in window&&(o(),a(l)))))}return a(l),l.reset=function(){var e=l.direction;l.passThrough=!1,l.currentTime=0,l.progress=0,l.paused=!0,l.began=!1,l.loopBegan=!1,l.changeBegan=!1,l.completed=!1,l.changeCompleted=!1,l.reversePlayback=!1,l.reversed="reverse"===e,l.remaining=l.loop,t=l.children;for(var i=r=t.length;i--;)l.children[i].reset();(l.reversed&&!0!==l.loop||"alternate"===e&&1===l.loop)&&l.remaining++,p(l.reversed?l.duration:0)},l._onDocumentVisibility=h,l.set=function(e,t){return $s(e,t),l},l.tick=function(e){s=e,i||(i=s),m((s+(n-i))*Xs.speed)},l.seek=function(e){m(u(e))},l.pause=function(){l.paused=!0,h()},l.play=function(){l.paused&&(l.completed&&l.reset(),l.paused=!1,zs.push(l),h(),Ws())},l.reverse=function(){c(),l.completed=!l.reversed,h()},l.restart=function(){l.reset(),l.play()},l.remove=function(e){Ys(Ns(e),l)},l.reset(),l.autoplay&&l.play(),l}function Ks(e,t){for(var i=t.length;i--;)ps(e,t[i].animatable.target)&&t.splice(i,1)}function Ys(e,t){var i=t.animations,n=t.children;Ks(e,i);for(var s=n.length;s--;){var r=n[s],o=r.animations;Ks(e,o),o.length||r.children.length||n.splice(s,1)}i.length||n.length||t.pause()}Xs.version="3.2.1",Xs.speed=1,Xs.suspendWhenDocumentHidden=!0,Xs.running=zs,Xs.remove=function(e){for(var t=Ns(e),i=zs.length;i--;){Ys(t,zs[i])}},Xs.get=ks,Xs.set=$s,Xs.convertPx=Ts,Xs.path=function(e,t){var i=es.str(e)?cs(e)[0]:e,n=t||100;return function(e){return{property:e,el:i,svg:Ps(i),totalLength:Os(i)*(n/100)}}},Xs.setDashoffset=function(e){var t=Os(e);return e.setAttribute("stroke-dasharray",t),t},Xs.stagger=function(e,t){void 0===t&&(t={});var i=t.direction||"normal",n=t.easing?ls(t.easing):null,s=t.grid,r=t.axis,o=t.from||0,a="first"===o,l="center"===o,c="last"===o,u=es.arr(e),h=u?parseFloat(e[0]):parseFloat(e),d=u?parseFloat(e[1]):0,p=_s(u?e[1]:e)||0,f=t.start||0+(u?h:0),m=[],g=0;return function(e,t,y){if(a&&(o=0),l&&(o=(y-1)/2),c&&(o=y-1),!m.length){for(var _=0;_<y;_++){if(s){var v=l?(s[0]-1)/2:o%s[0],b=l?(s[1]-1)/2:Math.floor(o/s[0]),T=v-_%s[0],w=b-Math.floor(_/s[0]),S=Math.sqrt(T*T+w*w);"x"===r&&(S=-T),"y"===r&&(S=-w),m.push(S)}else m.push(Math.abs(o-_));g=Math.max.apply(Math,m)}n&&(m=m.map((function(e){return n(e/g)*g}))),"reverse"===i&&(m=m.map((function(e){return r?e<0?-1*e:-e:Math.abs(g-e)})))}return f+(u?(d-h)/g:h)*(Math.round(100*m[t])/100)+p}},Xs.timeline=function(e){void 0===e&&(e={});var t=Xs(e);return t.duration=0,t.add=function(i,n){var s=zs.indexOf(t),r=t.children;function o(e){e.passThrough=!0}s>-1&&zs.splice(s,1);for(var a=0;a<r.length;a++)o(r[a]);var l=gs(i,ms(Xn,e));l.targets=l.targets||e.targets;var c=t.duration;l.autoplay=!1,l.direction=t.direction,l.timelineOffset=es.und(n)?c:xs(n,c),o(t),t.seek(l.timelineOffset);var u=Xs(l);o(u),r.push(u);var h=Hs(r,e);return t.delay=h.delay,t.endDelay=h.endDelay,t.duration=h.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t},Xs.easing=ls,Xs.penner=as,Xs.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e};const Qs={duration:800,easing:"easeInOutSine"},Js=(e,t)=>{if("undefined"==typeof document)return;const i=("object"==typeof t?t:{}).complete,n=window.document.scrollingElement||window.document.body||window.document.documentElement,s=n.style.scrollBehavior;t={scrollTop:e||0,...Qs,..."object"==typeof t?t:{}},n.style.scrollBehavior="auto",t.complete=e=>{n.style.scrollBehavior=s,"function"==typeof i&&i(e)},Xs({targets:n,...t})},Zs="active",er="ul.link-list",tr="a.nav-link",ir=`${tr}.${Zs}`,nr=`${tr}[href^="#"]`,sr={scrollPadding:10,duration:800,easing:"easeInOutSine"};class rr extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._togglerElement=vi.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=vi.findOne(".it-page-sections-container"),this._collapsible=this._getCollapsible(),this._isCollapseOpened=!1,this._callbackQueue=[],this._scrollCb=null,this._bindEvents()}static get NAME(){return"navscroll"}setScrollPadding(e){this._config.scrollPadding=e}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(e){return e={...sr,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){this._scrollCb=Wn((()=>this._onScroll())),this._collapsible&&(di.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),di.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),vi.find(nr,this._element).forEach((e=>{e.addEventListener("click",(()=>{const t=()=>this._scrollToHash(e.hash);this._isCollapseOpened?(this._callbackQueue.push(t),this._collapsible.hide()):t()}))})),di.on(window,"load",(()=>{setTimeout((()=>this._onScroll()),150)}))}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const e=this._callbackQueue.shift();"function"==typeof e&&e()}this._isCollapseOpened=!1}_getParentLinks(e){const t=[];let i=e.closest(er),n=null,s=!1;for(;i&&!s;){const e=i.closest("li.nav-link, li.nav-item");if(e){const i=e.querySelector(tr);i&&t.push(i)}n=i,i=(i.parentElement||i).closest(er),i===n&&(s=!0)}return t}_decorateToggler(e){if(this._togglerElement){const t=vi.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(t),this._togglerElement.append(e)}}_scrollToHash(e){const t=vi.findOne(e,this._sectionContainer);t&&(Js(t.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing}),history.pushState?history.pushState(null,null,e):location.hash=e)}_updateProgress(e){if(!e)return;const t=vi.find(".it-navscroll-progressbar");if(t){const i=Math.abs(e.getBoundingClientRect().top)/e.getBoundingClientRect().height*100,n=Math.min(100,Math.max(0,i));t.forEach((t=>{e.getBoundingClientRect().top<=0?(t.style.width=n+"%",t.setAttribute("aria-valuenow",n)):(t.style.width="0%",t.setAttribute("aria-valuenow",0))}))}}_onScroll(){const e=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const t=document.scrollingElement.scrollTop-e,i=vi.find(tr,this._element),n=this._getScrollPadding();vi.find(".it-page-section").forEach(((s,r)=>{if(s.offsetTop-e<=t+n&&(vi.find(ir,this._element).forEach((e=>{e.classList.remove(Zs)})),r<i.length)){const e=i[r];this._getParentLinks(e).forEach((e=>{e.classList.add(Zs)})),e.classList.add(Zs),this._decorateToggler(e.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const e=vi.findOne(".navbar-collapsable",this._element);return e?In.getOrCreateInstance(e):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}vi.find("[data-bs-navscroll]").map((e=>{rr.getOrCreateInstance(e)}));const or=".bs.sticky",ar=`resize${or}`,lr=`on${or}`,cr=`off${or}`,ur="bs-is-sticky",hr="bs-is-fixed",dr='[data-bs-toggle="sticky"]',pr={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class fr extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._isSticky=!1,this._wrapper=null,this._stickyTarget=vi.findOne(Mt(this._element),this._element)||this._element,this._stickyTargetMobile=vi.findOne(this._element.getAttribute("data-bs-target-mobile"),this._element)||this._stickyTarget,this._stickyLimit=0,this._stickyLimitMobile=0,this._setLimit(),this._scrollCb=null,this._isMobile=sn(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){di.off(window,ar),this._scrollCb.dispose(),super.dispose()}static get NAME(){return"sticky"}_getConfig(e){return e={...pr,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){di.on(window,ar,(()=>this._onResize())),this._scrollCb=Wn((()=>this._onScroll()))}_onResize(){this._isMobile=sn(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let e=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach(((t,i)=>{const n=t.getBoundingClientRect();e-=n.height+(0===i?parseFloat(t.style.top):0)})),e>0?e:0}_cumulativeOffset(e){let t=0,i=0;do{t+=e.offsetTop||0,i+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const e=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>e?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let e=ur;this._isTypeSticky()||(e=hr,this._wrapper=this._createWrapper()),this._element.classList.add(e),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",di.trigger(this._element,lr)}}_unsetSticky(){if(this._isSticky){let e=ur;this._isTypeSticky()||(e=hr,this._destroyWrapper()),this._element.classList.remove(e),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,di.trigger(this._element,cr)}}_createWrapper(){if("undefined"==typeof document)return;const e=document.createElement("div");return e.classList.add("bs-it-sticky-wrapper"),e.style.width="100%",e.style.height=this._element.getBoundingClientRect().height+"px",e.style.overflow="hidden",this._element.parentNode.insertBefore(e,this._element),e.appendChild(this._element),e}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return vi.find(dr).filter((e=>{const t=fr.getInstance(e);return!(!t||!t._isSticky||e===this._element)}))}_getPositionTop(){let e=0;return this._config.stackable?(this._getStickySimblings().forEach(((t,i)=>{const n=t.getBoundingClientRect();e+=n.height+(0===i?parseFloat(t.style.top):0)})),e):e+this._config.paddingTop}}Wn((()=>{vi.find(dr).map((e=>{fr.getOrCreateInstance(e)}))}));const mr="cloned-element",gr=`.${mr}`,yr=new Map;class _r{constructor(e){if(yr.get(e))return null;this._element=e,this._elementObj=fr.getOrCreateInstance(e),yr.set(e,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(e){return yr.get(e)||new this(e)}_bindEvents(){this._element.addEventListener("on.bs.sticky",(()=>this._toggleClonedElement(!0))),this._element.addEventListener("off.bs.sticky",(()=>this._toggleClonedElement(!1)))}_toggleClonedElement(e=!0){if(!Ut(vi.findOne(".custom-navbar-toggler",this._element))){const t=vi.findOne(".menu-wrapper",this._element);if(e){const e=vi.findOne(".it-brand-wrapper",this._element),i=vi.findOne(".it-search-wrapper",this._element),n=vi.findOne(".it-user-wrapper",this._element),s=e?e.cloneNode(!0):null,r=i?i.cloneNode(!0):null,o=n?n.cloneNode(!0):null;s&&t.insertBefore(s,t.childNodes[0]).classList.add(mr),r&&t.appendChild(r).classList.add(mr),o&&(t.appendChild(o).classList.add(mr),t.appendChild(o).classList.remove("show"))}else vi.find(gr,this._element).forEach((e=>{e.parentElement.removeChild(e)}))}}}Wn((()=>{vi.find(".it-header-sticky").map((e=>{_r.getOrCreateInstance(e)}))}));var vr=Object.defineProperty,br=(e,t,i)=>(((e,t,i)=>{t in e?vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);const Tr=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,wr=/^[0-9]+$/,Sr=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,Er=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/;var Cr=(e=>(e.Required="required",e.Email="email",e.MinLength="minLength",e.MaxLength="maxLength",e.Password="password",e.Number="number",e.MaxNumber="maxNumber",e.MinNumber="minNumber",e.StrongPassword="strongPassword",e.CustomRegexp="customRegexp",e.MinFilesCount="minFilesCount",e.MaxFilesCount="maxFilesCount",e.Files="files",e))(Cr||{}),kr=(e=>(e.Required="required",e))(kr||{}),xr=(e=>(e.Label="label",e.LabelArrow="labelArrow",e))(xr||{});const Ir=[{key:Cr.Required,dict:{en:"The field is required"}},{key:Cr.Email,dict:{en:"Email has invalid format"}},{key:Cr.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:Cr.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:Cr.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:Cr.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:Cr.Number,dict:{en:"Value should be a number"}},{key:Cr.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:Cr.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:Cr.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:Cr.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:Cr.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],Ar=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then,Lr=e=>Array.isArray(e)?e.filter((e=>e.length>0)):"string"==typeof e&&e.trim()?[...e.split(" ").filter((e=>e.length>0))]:[],Or=e=>e instanceof Element||e instanceof HTMLDocument,Pr={errorFieldStyle:{color:"#b81111",border:"1px solid #B81111"},errorFieldCssClass:"just-validate-error-field",successFieldCssClass:"just-validate-success-field",errorLabelStyle:{color:"#b81111"},errorLabelCssClass:"just-validate-error-label",successLabelCssClass:"just-validate-success-label",focusInvalidField:!0,lockForm:!0,testingMode:!1,validateBeforeSubmitting:!1};class Dr{constructor(e,t,i){br(this,"form",null),br(this,"fields",{}),br(this,"groupFields",{}),br(this,"errors",{}),br(this,"isValid",!1),br(this,"isSubmitted",!1),br(this,"globalConfig",Pr),br(this,"errorLabels",{}),br(this,"successLabels",{}),br(this,"eventListeners",[]),br(this,"dictLocale",Ir),br(this,"currentLocale","en"),br(this,"customStyleTags",{}),br(this,"onSuccessCallback"),br(this,"onFailCallback"),br(this,"tooltips",[]),br(this,"lastScrollPosition"),br(this,"isScrollTick"),br(this,"fieldIds",new Map),br(this,"getKeyByFieldSelector",(e=>this.fieldIds.get(e))),br(this,"getFieldSelectorByKey",(e=>{for(const[t,i]of this.fieldIds)if(e===i)return t})),br(this,"setKeyByFieldSelector",(e=>{if(this.fieldIds.has(e))return this.fieldIds.get(e);const t=String(this.fieldIds.size+1);return this.fieldIds.set(e,t),t})),br(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((e=>{e.refresh()}))})),br(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),br(this,"formSubmitHandler",(e=>{e.preventDefault(),this.isSubmitted=!0,this.validateHandler(e)})),br(this,"handleFieldChange",(e=>{let t;for(const i in this.fields){if(this.fields[i].elem===e){t=i;break}}t&&this.validateField(t,!0)})),br(this,"handleGroupChange",(e=>{let t,i;for(const n in this.groupFields){const s=this.groupFields[n];if(s.elems.find((t=>t===e))){t=s,i=n;break}}t&&i&&this.validateGroup(i,t)})),br(this,"handlerChange",(e=>{e.target&&(this.handleFieldChange(e.target),this.handleGroupChange(e.target),this.renderErrors())})),this.initialize(e,t,i)}initialize(e,t,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=Pr,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof e){const t=document.querySelector(e);if(!t)throw Error(`Form with ${e} selector not found! Please check the form selector`);this.setForm(t)}else{if(!(e instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(e)}if(this.globalConfig={...Pr,...t},i&&(this.dictLocale=[...i,...Ir]),this.isTooltip()){const e=document.createElement("style");e.textContent=".just-validate-error-label[data-tooltip=true]{position:fixed;padding:4px 8px;background:#423f3f;color:#fff;white-space:nowrap;z-index:10;border-radius:4px;transform:translateY(-5px)}.just-validate-error-label[data-tooltip=true]:before{content:'';width:0;height:0;border-left:solid 5px transparent;border-right:solid 5px transparent;border-bottom:solid 5px #423f3f;position:absolute;z-index:3;display:block;bottom:-5px;transform:rotate(180deg);left:calc(50% - 5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]{transform:translateX(-5px)}.just-validate-error-label[data-tooltip=true][data-direction=left]:before{right:-7px;bottom:auto;left:auto;top:calc(50% - 2px);transform:rotate(90deg)}.just-validate-error-label[data-tooltip=true][data-direction=right]{transform:translateX(5px)}.just-validate-error-label[data-tooltip=true][data-direction=right]:before{right:auto;bottom:auto;left:-7px;top:calc(50% - 2px);transform:rotate(-90deg)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]{transform:translateY(5px)}.just-validate-error-label[data-tooltip=true][data-direction=bottom]:before{right:auto;bottom:auto;left:calc(50% - 5px);top:-5px;transform:rotate(0)}",this.customStyleTags[xr.Label]=document.head.appendChild(e),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(e,t,i){var n;const s=null!=i?i:e;let r=null==(n=this.dictLocale.find((e=>e.key===s)))?void 0:n.dict[this.currentLocale];if(r||i&&(r=i),r&&void 0!==t)switch(e){case Cr.MaxLength:case Cr.MinLength:case Cr.MaxNumber:case Cr.MinNumber:case Cr.MinFilesCount:case Cr.MaxFilesCount:r=r.replace(":value",String(t))}return r||i||"Value is incorrect"}getFieldErrorMessage(e,t){const i="function"==typeof e.errorMessage?e.errorMessage(this.getElemValue(t),this.fields):e.errorMessage;return this.getLocalisedString(e.rule,e.value,i)}getFieldSuccessMessage(e,t){const i="function"==typeof e?e(this.getElemValue(t),this.fields):e;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(e){return this.getLocalisedString(e.rule,void 0,e.errorMessage)}getGroupSuccessMessage(e){if(e.successMessage)return this.getLocalisedString(void 0,void 0,e.successMessage)}setFieldInvalid(e,t){this.fields[e].isValid=!1,this.fields[e].errorMessage=this.getFieldErrorMessage(t,this.fields[e].elem)}setFieldValid(e,t){this.fields[e].isValid=!0,void 0!==t&&(this.fields[e].successMessage=this.getFieldSuccessMessage(t,this.fields[e].elem))}setGroupInvalid(e,t){this.groupFields[e].isValid=!1,this.groupFields[e].errorMessage=this.getGroupErrorMessage(t)}setGroupValid(e,t){this.groupFields[e].isValid=!0,this.groupFields[e].successMessage=this.getGroupSuccessMessage(t)}getElemValue(e){switch(e.type){case"checkbox":return e.checked;case"file":return e.files;default:return e.value}}validateGroupRule(e,t,i){if(i.rule===kr.Required)t.every((e=>!e.checked))?this.setGroupInvalid(e,i):this.setGroupValid(e,i)}validateFieldRule(e,t,i,n=!1){const s=i.value,r=this.getElemValue(t);if(i.plugin){i.plugin(r,this.fields)||this.setFieldInvalid(e,i)}else{switch(i.rule){case Cr.Required:(e=>{let t=e;return"string"==typeof e&&(t=e.trim()),!t})(r)&&this.setFieldInvalid(e,i);break;case Cr.Email:if("string"!=typeof r){this.setFieldInvalid(e,i);break}o=r,Tr.test(o)||this.setFieldInvalid(e,i);break;case Cr.MaxLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;((e,t)=>e.length>t)(r,s)&&this.setFieldInvalid(e,i);break;case Cr.MinLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;((e,t)=>e.length<t)(r,s)&&this.setFieldInvalid(e,i);break;case Cr.Password:if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;(e=>Sr.test(e))(r)||this.setFieldInvalid(e,i);break;case Cr.StrongPassword:if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;(e=>Er.test(e))(r)||this.setFieldInvalid(e,i);break;case Cr.Number:if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;(e=>wr.test(e))(r)||this.setFieldInvalid(e,i);break;case Cr.MaxNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;const t=+r;(Number.isNaN(t)||((e,t)=>e>t)(t,s))&&this.setFieldInvalid(e,i);break}case Cr.MinNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if("string"!=typeof r){this.setFieldInvalid(e,i);break}if(""===r)break;const t=+r;(Number.isNaN(t)||((e,t)=>e<t)(t,s))&&this.setFieldInvalid(e,i);break}case Cr.CustomRegexp:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);let t;try{t=new RegExp(s)}catch(t){console.error(`Value for ${i.rule} rule for [${e}] should be a valid regexp. This field will be always invalid.`),this.setFieldInvalid(e,i);break}const n=String(r);""===n||t.test(n)||this.setFieldInvalid(e,i);break}case Cr.MinFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==r?void 0:r.length)&&r.length<s){this.setFieldInvalid(e,i);break}break;case Cr.MaxFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(e,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${e}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(e,i);break}if(Number.isFinite(null==r?void 0:r.length)&&r.length>s){this.setFieldInvalid(e,i);break}break;case Cr.Files:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${e}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(e,i);if("object"!=typeof s)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=s.files;if("object"!=typeof t)return console.error(`Value for ${i.rule} rule for [${e}] field should be an object with files array. This field will be always invalid.`),void this.setFieldInvalid(e,i);const n=(e,t)=>{const i=Number.isFinite(t.minSize)&&e.size<t.minSize,n=Number.isFinite(t.maxSize)&&e.size>t.maxSize,s=Array.isArray(t.names)&&!t.names.includes(e.name),r=Array.isArray(t.extensions)&&!t.extensions.includes(e.name.split(".")[e.name.split(".").length-1]),o=Array.isArray(t.types)&&!t.types.includes(e.type);return i||n||s||r||o};if("object"==typeof r&&null!==r)for(let s=0,o=r.length;s<o;++s){const o=r.item(s);if(!o){this.setFieldInvalid(e,i);break}if(n(o,t)){this.setFieldInvalid(e,i);break}}break}default:{if("function"!=typeof i.validator)return console.error(`Validator for custom rule for [${e}] field should be a function. This field will be always invalid.`),void this.setFieldInvalid(e,i);const t=i.validator(r,this.fields);if("boolean"!=typeof t&&"function"!=typeof t&&console.error(`Validator return value for [${e}] field should be boolean or function. It will be cast to boolean.`),"function"==typeof t){if(!n){this.fields[e].asyncCheckPending=!1;const n=t();return Ar(n)?n.then((t=>{t||this.setFieldInvalid(e,i)})).catch((()=>{this.setFieldInvalid(e,i)})):(console.error(`Validator function for custom rule for [${e}] field should return a Promise. This field will be always invalid.`),void this.setFieldInvalid(e,i))}this.fields[e].asyncCheckPending=!0}t||this.setFieldInvalid(e,i)}}var o}}validateField(e,t=!1){var i;const n=this.fields[e];n.isValid=!0;const s=[];return[...n.rules].reverse().forEach((i=>{const r=this.validateFieldRule(e,n.elem,i,t);Ar(r)&&s.push(r)})),n.isValid&&this.setFieldValid(e,null==(i=n.config)?void 0:i.successMessage),Promise.allSettled(s)}revalidateField(e){if("string"!=typeof e&&!Or(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);return t&&this.fields[t]?new Promise((e=>{this.validateField(t,!0).finally((()=>{this.clearFieldStyle(t),this.clearFieldLabel(t),this.renderFieldError(t),e(!!this.fields[t].isValid)}))})):(console.error("Field not found. Check the field selector."),Promise.reject())}validateGroup(e,t){const i=[];return[...t.rules].reverse().forEach((n=>{const s=this.validateGroupRule(e,t.elems,n);Ar(s)&&i.push(s)})),Promise.allSettled(i)}focusInvalidField(){for(const e in this.fields){const t=this.fields[e];if(!t.isValid){setTimeout((()=>t.elem.focus()),0);break}}}afterSubmitValidation(e=!1){this.renderErrors(e),this.globalConfig.focusInvalidField&&this.focusInvalidField()}validate(e=!1){return new Promise((t=>{const i=[];Object.keys(this.fields).forEach((e=>{const t=this.validateField(e);Ar(t)&&i.push(t)})),Object.keys(this.groupFields).forEach((e=>{const t=this.groupFields[e],n=this.validateGroup(e,t);Ar(n)&&i.push(n)})),i.length?Promise.allSettled(i).then((()=>{this.afterSubmitValidation(e),t(!0)})):(this.afterSubmitValidation(e),t(!1))}))}revalidate(){return new Promise((e=>{this.validateHandler(void 0,!0).finally((()=>{this.globalConfig.focusInvalidField&&this.focusInvalidField(),e(this.isValid)}))}))}validateHandler(e,t=!1){return this.globalConfig.lockForm&&this.lockForm(),this.validate(t).finally((()=>{var t,i;this.globalConfig.lockForm&&this.unlockForm(),this.isValid?null==(t=this.onSuccessCallback)||t.call(this,e):null==(i=this.onFailCallback)||i.call(this,this.fields,this.groupFields)}))}setForm(e){this.form=e,this.form.setAttribute("novalidate","novalidate"),this.removeListener("submit",this.form,this.formSubmitHandler),this.addListener("submit",this.form,this.formSubmitHandler)}addListener(e,t,i){t.addEventListener(e,i),this.eventListeners.push({type:e,elem:t,func:i})}removeListener(e,t,i){t.removeEventListener(e,i),this.eventListeners=this.eventListeners.filter((i=>i.type!==e||i.elem!==t))}addField(e,t,i){if("string"!=typeof e&&!Or(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let n;if(n="string"==typeof e?this.form.querySelector(e):e,!n)throw Error("Field doesn't exist in the DOM! Please check the field selector.");if(!Array.isArray(t)||!t.length)throw Error("Rules argument should be an array and should contain at least 1 element.");t.forEach((e=>{if(!("rule"in e||"validator"in e||"plugin"in e))throw Error("Rules argument must contain at least one rule or validator property.");if(!(e.validator||e.plugin||e.rule&&Object.values(Cr).includes(e.rule)))throw Error(`Rule should be one of these types: ${Object.values(Cr).join(", ")}. Provided value: ${e.rule}`)}));const s=this.setKeyByFieldSelector(e);return this.fields[s]={elem:n,rules:t,isValid:void 0,config:i},this.setListeners(n),this.isSubmitted&&this.validate(),this}removeField(e){if("string"!=typeof e&&!Or(e))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const t=this.getKeyByFieldSelector(e);if(!t||!this.fields[t])return console.error("Field not found. Check the field selector."),this;const i=this.getListenerType(this.fields[t].elem.type);return this.removeListener(i,this.fields[t].elem,this.handlerChange),this.clearErrors(),delete this.fields[t],this}removeGroup(e){if("string"!=typeof e)throw Error("Group selector is not valid. Please specify a string selector.");const t=this.getKeyByFieldSelector(e);return t&&this.groupFields[t]?(this.groupFields[t].elems.forEach((e=>{const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange)})),this.clearErrors(),delete this.groupFields[t],this):(console.error("Group not found. Check the group selector."),this)}addRequiredGroup(e,t,i,n){if("string"!=typeof e)throw Error("Group selector is not valid. Please specify a string selector.");const s=this.form.querySelector(e);if(!s)throw Error(`Group with ${e} selector not found! Please check the group selector.`);const r=s.querySelectorAll("input"),o=Array.from(r).filter((e=>{const t=((e,t)=>{const i=[...t].reverse();for(let t=0,n=i.length;t<n;++t){const n=i[t];for(const t in e){const i=e[t];if(i.groupElem===n)return[t,i]}}return null})(this.groupFields,(e=>{let t=e;const i=[];for(;t;)i.unshift(t),t=t.parentNode;return i})(e));return!t||t[1].elems.find((t=>t!==e))})),a=this.setKeyByFieldSelector(e);return this.groupFields[a]={rules:[{rule:kr.Required,errorMessage:t,successMessage:n}],groupElem:s,elems:o,isDirty:!1,isValid:void 0,config:i},r.forEach((e=>{this.setListeners(e)})),this}getListenerType(e){switch(e){case"checkbox":case"select-one":case"file":case"radio":return"change";default:return"input"}}setListeners(e){const t=this.getListenerType(e.type);this.removeListener(t,e,this.handlerChange),this.addListener(t,e,this.handlerChange)}clearFieldLabel(e){var t,i;null==(t=this.errorLabels[e])||t.remove(),null==(i=this.successLabels[e])||i.remove()}clearFieldStyle(e){var t,i,n,s;const r=this.fields[e],o=(null==(t=r.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(o).forEach((e=>{r.elem.style[e]=""}));const a=(null==(i=r.config)?void 0:i.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(a).forEach((e=>{r.elem.style[e]=""})),r.elem.classList.remove(...Lr((null==(n=r.config)?void 0:n.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...Lr((null==(s=r.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}clearErrors(){var e,t;Object.keys(this.errorLabels).forEach((e=>this.errorLabels[e].remove())),Object.keys(this.successLabels).forEach((e=>this.successLabels[e].remove()));for(const e in this.fields)this.clearFieldStyle(e);for(const i in this.groupFields){const n=this.groupFields[i],s=(null==(e=n.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(s).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...Lr((null==(i=n.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const r=(null==(t=n.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(r).forEach((e=>{n.elems.forEach((t=>{var i;t.style[e]="",t.classList.remove(...Lr((null==(i=n.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}))}))}this.tooltips=[]}isTooltip(){return!!this.globalConfig.tooltip}lockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)e[t].setAttribute("data-just-validate-fallback-disabled",e[t].disabled?"true":"false"),e[t].setAttribute("disabled","disabled"),e[t].style.pointerEvents="none",e[t].style.webkitFilter="grayscale(100%)",e[t].style.filter="grayscale(100%)"}unlockForm(){const e=this.form.querySelectorAll("input, textarea, button, select");for(let t=0,i=e.length;t<i;++t)"true"!==e[t].getAttribute("data-just-validate-fallback-disabled")&&e[t].removeAttribute("disabled"),e[t].style.pointerEvents="",e[t].style.webkitFilter="",e[t].style.filter=""}renderTooltip(e,t,i){var n;const{top:s,left:r,width:o,height:a}=e.getBoundingClientRect(),l=t.getBoundingClientRect(),c=i||(null==(n=this.globalConfig.tooltip)?void 0:n.position);switch(c){case"left":t.style.top=s+a/2-l.height/2+"px",t.style.left=r-l.width-5+"px";break;case"top":t.style.top=s-l.height-5+"px",t.style.left=r+o/2-l.width/2+"px";break;case"right":t.style.top=s+a/2-l.height/2+"px",t.style.left=`${r+o+5}px`;break;case"bottom":t.style.top=`${s+a+5}px`,t.style.left=r+o/2-l.width/2+"px"}t.dataset.direction=c;return{refresh:()=>{this.renderTooltip(e,t,i)}}}createErrorLabelElem(e,t,i){const n=document.createElement("div");n.innerHTML=t;const s=this.isTooltip()?null==i?void 0:i.errorLabelStyle:(null==i?void 0:i.errorLabelStyle)||this.globalConfig.errorLabelStyle;return Object.assign(n.style,s),n.classList.add(...Lr((null==i?void 0:i.errorLabelCssClass)||this.globalConfig.errorLabelCssClass),"just-validate-error-label"),this.isTooltip()&&(n.dataset.tooltip="true"),this.globalConfig.testingMode&&(n.dataset.testId=`error-label-${e}`),this.errorLabels[e]=n,n}createSuccessLabelElem(e,t,i){if(void 0===t)return null;const n=document.createElement("div");n.innerHTML=t;const s=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(n.style,s),n.classList.add(...Lr((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(n.dataset.testId=`success-label-${e}`),this.successLabels[e]=n,n}renderErrorsContainer(e,t){const i=t||this.globalConfig.errorsContainer;if("string"==typeof i){const t=this.form.querySelector(i);if(t)return t.appendChild(e),!0;console.error(`Error container with ${i} selector not found. Errors will be rendered as usual`)}return i instanceof Element?(i.appendChild(e),!0):(void 0!==i&&console.error("Error container not found. It should be a string or existing Element. Errors will be rendered as usual"),!1)}renderGroupLabel(e,t,i,n){if(!n){if(this.renderErrorsContainer(t,i))return}e.appendChild(t)}renderFieldLabel(e,t,i,n){var s,r,o,a,l,c,u;if(!n){if(this.renderErrorsContainer(t,i))return}if("checkbox"===e.type||"radio"===e.type){const i=document.querySelector(`label[for="${e.getAttribute("id")}"]`);"label"===(null==(r=null==(s=e.parentElement)?void 0:s.tagName)?void 0:r.toLowerCase())?null==(a=null==(o=e.parentElement)?void 0:o.parentElement)||a.appendChild(t):i?null==(l=i.parentElement)||l.appendChild(t):null==(c=e.parentElement)||c.appendChild(t)}else null==(u=e.parentElement)||u.appendChild(t)}showLabels(e,t){Object.keys(e).forEach(((i,n)=>{const s=e[i],r=this.getKeyByFieldSelector(i);if(!r||!this.fields[r])return void console.error("Field not found. Check the field selector.");const o=this.fields[r];o.isValid=!t,this.clearFieldStyle(r),this.clearFieldLabel(r),this.renderFieldError(r,s),0===n&&this.globalConfig.focusInvalidField&&setTimeout((()=>o.elem.focus()),0)}))}showErrors(e){if("object"!=typeof e)throw Error("[showErrors]: Errors should be an object with key: value format");this.showLabels(e,!0)}showSuccessLabels(e){if("object"!=typeof e)throw Error("[showSuccessLabels]: Labels should be an object with key: value format");this.showLabels(e,!1)}renderFieldError(e,t){var i,n,s,r,o,a;const l=this.fields[e];if(void 0===l.isValid)return;if(l.isValid){if(!l.asyncCheckPending){const s=this.createSuccessLabelElem(e,void 0!==t?t:l.successMessage,l.config);s&&this.renderFieldLabel(l.elem,s,null==(i=l.config)?void 0:i.errorsContainer,!0),l.elem.classList.add(...Lr((null==(n=l.config)?void 0:n.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}this.isValid=!1,l.elem.classList.add(...Lr((null==(s=l.config)?void 0:s.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const c=this.createErrorLabelElem(e,void 0!==t?t:l.errorMessage,l.config);this.renderFieldLabel(l.elem,c,null==(r=l.config)?void 0:r.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(l.elem,c,null==(a=null==(o=l.config)?void 0:o.tooltip)?void 0:a.position))}renderGroupError(e){var t,i,n,s;const r=this.groupFields[e];if(void 0===r.isValid)return;if(r.isValid){r.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=r.config)?void 0:t.successFieldStyle)||this.globalConfig.successFieldStyle),e.classList.add(...Lr((null==(i=r.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}));const i=this.createSuccessLabelElem(e,r.successMessage,r.config);return void(i&&this.renderGroupLabel(r.groupElem,i,null==(t=r.config)?void 0:t.errorsContainer,!0))}this.isValid=!1,r.elems.forEach((e=>{var t,i;Object.assign(e.style,(null==(t=r.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle),e.classList.add(...Lr((null==(i=r.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}));const o=this.createErrorLabelElem(e,r.errorMessage,r.config);this.renderGroupLabel(r.groupElem,o,null==(i=r.config)?void 0:i.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(r.groupElem,o,null==(s=null==(n=r.config)?void 0:n.tooltip)?void 0:s.position))}renderErrors(e=!1){if(this.isSubmitted||e||this.globalConfig.validateBeforeSubmitting){this.clearErrors(),this.isValid=!0;for(const e in this.groupFields)this.renderGroupError(e);for(const e in this.fields)this.renderFieldError(e)}}destroy(){this.eventListeners.forEach((e=>{this.removeListener(e.type,e.elem,e.func)})),Object.keys(this.customStyleTags).forEach((e=>{this.customStyleTags[e].remove()})),this.clearErrors(),this.globalConfig.lockForm&&this.unlockForm()}refresh(){this.destroy(),this.form?(this.initialize(this.form,this.globalConfig),Object.keys(this.fields).forEach((e=>{const t=this.getFieldSelectorByKey(e);t&&this.addField(t,[...this.fields[e].rules],this.fields[e].config)}))):console.error("Cannot initialize the library! Form is not defined")}setCurrentLocale(e){"string"==typeof e||void 0===e?(this.currentLocale=e,this.isSubmitted&&this.validate()):console.error("Current locale should be a string")}onSuccess(e){return this.onSuccessCallback=e,this}onFail(e){return this.onFailCallback=e,this}}class Mr{constructor(e,t,i,n,s){this.targetNode=e,this.classToWatch=t,this.classAddedCallback=i,this.classRemovedCallback=n,this.observer=null,this.lastClassState=e.classList.contains(this.classToWatch),this.ignoreToggle=!!s,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{attributes:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)if("attributes"===t.type&&"class"===t.attributeName){let e=t.target.classList.contains(this.classToWatch);(this.ignoreToggle||this.lastClassState!==e)&&(this.lastClassState=e,e?"function"==typeof this.classAddedCallback&&this.classAddedCallback():"function"==typeof this.classRemovedCallback&&this.classRemovedCallback())}}}class Nr{constructor(e,t,i,n){this.targetNode=e,this.contentSelector=t,this.contentAddedCallback=i,this.contentRemovedCallback=n,this.observer=null,this.init()}init(){this.observer=new MutationObserver((e=>this.mutationCallback(e))),this.observe()}observe(){this.observer.observe(this.targetNode,{childList:!0,subtree:!0})}disconnect(){this.observer.disconnect()}mutationCallback(e){for(let t of e)"childList"===t.type&&(t.addedNodes.forEach((e=>{this._callbackExec(e)})),t.removedNodes.forEach((e=>{this._callbackExec(e,!0)})))}_callbackExec(e,t){const i=e.matches&&e.matches(this.contentSelector)?[e]:e.querySelectorAll?e.querySelectorAll(this.contentSelector):null,n=t&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&n&&i.forEach((e=>n(e)))}}const Rr={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},Fr="justvalidatebi";class Br extends _i{constructor(e){super(e),this._label=new Ii(e),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&di.on(this._element,"change.bs.input",(()=>{this._handleFileDescription()}))}_handleFileDescription(){const e=[];let t="";Array.from(this._element.files).forEach((t=>{const i=Math.round(parseInt(t.size,10)/1024);e.push(t.name+" ("+i+"kb)")})),this._element.files.length>1&&(t=this._element.files.length+" file da caricare: ");const i=vi.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=t+e.join("; "))}}const Ur=["select",'input[data-bs-input][type="password"]',"input.input-password[data-bs-input]",'input[data-bs-autocomplete][type="search"]','input[type="time"]','input[type="radio"]','input[type="checkbox"]'];"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("input, textarea, label").forEach((function(e){(e=>{const t=!!Ur.find((t=>e.matches(t))),i=!("number"!==e.getAttribute("type")||!e.parentNode.querySelector('button[class^="input-number-"]'));t||i||Br.getOrCreateInstance(e)})(Ii.getInputFromLabel(e)||e)}))}));var jr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function $r(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function qr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hr(e,t){return e(t={exports:{}},t.exports),t.exports}var Vr=Hr((function(e,t){var i;window,i=function(){return function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=37)}([function(e,t,i){var n=i(1),s=i(6),r=i(7),o=i(16),a=i(18),l="prototype",c=function(e,t,i){var u,h,d,p,f=e&c.F,m=e&c.G,g=e&c.S,y=e&c.P,_=e&c.B,v=m?n:g?n[t]||(n[t]={}):(n[t]||{})[l],b=m?s:s[t]||(s[t]={}),T=b[l]||(b[l]={});for(u in m&&(i=t),i)d=((h=!f&&v&&void 0!==v[u])?v:i)[u],p=_&&h?a(d,n):y&&"function"==typeof d?a(Function.call,d):d,v&&o(v,u,d,e&c.U),b[u]!=d&&r(b,u,p),y&&T[u]!=d&&(T[u]=d)};n.core=s,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,i){e.exports=!i(4)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,i){i.r(t),i.d(t,"h",(function(){return a})),i.d(t,"createElement",(function(){return a})),i.d(t,"cloneElement",(function(){return u})),i.d(t,"Component",(function(){return M})),i.d(t,"render",(function(){return N})),i.d(t,"rerender",(function(){return f})),i.d(t,"options",(function(){return s}));var n=function(){},s={},r=[],o=[];function a(e,t){var i,a,l,c,u=o;for(c=arguments.length;2<c--;)r.push(arguments[c]);for(t&&null!=t.children&&(r.length||r.push(t.children),delete t.children);r.length;)if((a=r.pop())&&void 0!==a.pop)for(c=a.length;c--;)r.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&i?u[u.length-1]+=a:u===o?u=[a]:u.push(a),i=l;var h=new n;return h.nodeName=e,h.children=u,h.attributes=null==t?void 0:t,h.key=null==t?void 0:t.key,void 0!==s.vnode&&s.vnode(h),h}function l(e,t){for(var i in t)e[i]=t[i];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function u(e,t){return a(e.nodeName,l(l({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}var h=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,d=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==d.push(e)&&(s.debounceRendering||c)(f)}function f(){var e,t=d;for(d=[];e=t.pop();)e._dirty&&P(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=l({},e.attributes);t.children=e.children;var i=e.nodeName.defaultProps;if(void 0!==i)for(var n in i)void 0===t[n]&&(t[n]=i[n]);return t}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,i,n,s){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)i&&i(null),n&&n(e);else if("class"!==t||s)if("style"===t){if(n&&"string"!=typeof n&&"string"!=typeof i||(e.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof i)for(var r in i)r in n||(e.style[r]="");for(var r in n)e.style[r]="number"==typeof n[r]&&!1===h.test(r)?n[r]+"px":n[r]}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var o=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),n?i||e.addEventListener(t,v,o):e.removeEventListener(t,v,o),(e._listeners||(e._listeners={}))[t]=n}else if("list"!==t&&"type"!==t&&!s&&t in e){try{e[t]=null==n?"":n}catch(e){}null!=n&&!1!==n||"spellcheck"==t||e.removeAttribute(t)}else{var a=s&&t!==(t=t.replace(/^xlink:?/,""));null==n||!1===n?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof n&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):e.setAttribute(t,n))}else e.className=n||""}function v(e){return this._listeners[e.type](s.event&&s.event(e)||e)}var b=[],T=0,w=!1,S=!1;function E(){for(var e;e=b.pop();)s.afterMount&&s.afterMount(e),e.componentDidMount&&e.componentDidMount()}function C(e,t,i,n,s){var r=e,o=w;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||s)?e.nodeValue!=t&&(e.nodeValue=t):(r=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(r,e),k(e,!0))),r.__preactattr_=!0,r;var a=t.nodeName;if("function"==typeof a)return function(e,t,i,n){for(var s=e&&e._component,r=s,o=e,a=s&&e._componentConstructor===t.nodeName,l=a,c=g(t);s&&!l&&(s=s._parentComponent);)l=s.constructor===t.nodeName;return s&&l&&(!n||s._component)?(O(s,c,3,i,n),e=s.base):(r&&!a&&(D(r),e=o=null),s=A(t.nodeName,c,i),e&&!s.nextBase&&(s.nextBase=e,o=null),O(s,c,1,i,n),e=s.base,o&&e!==o&&(o._component=null,k(o,!1))),e}(e,t,i,n);if(w="svg"===a||"foreignObject"!==a&&w,a=String(a),(!e||!m(e,a))&&(r=function(e,t){var i=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return i.normalizedNodeName=e,i}(a,w),e)){for(;e.firstChild;)r.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(r,e),k(e,!0)}var l=r.firstChild,c=r.__preactattr_,u=t.children;if(null==c){c=r.__preactattr_={};for(var h=r.attributes,d=h.length;d--;)c[h[d].name]=h[d].value}return!S&&u&&1===u.length&&"string"==typeof u[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=u[0]&&(l.nodeValue=u[0]):(u&&u.length||null!=l)&&function(e,t,i,n,s){var r,o,a,l,c,u,h,d,p=e.childNodes,f=[],g={},_=0,v=0,b=p.length,T=0,w=t?t.length:0;if(0!==b)for(var S=0;S<b;S++){var E=p[S],x=E.__preactattr_;null!=(I=w&&x?E._component?E._component.__key:x.key:null)?(_++,g[I]=E):(x||(void 0!==E.splitText?!s||E.nodeValue.trim():s))&&(f[T++]=E)}if(0!==w)for(S=0;S<w;S++){var I;if(c=null,null!=(I=(l=t[S]).key))_&&void 0!==g[I]&&(c=g[I],g[I]=void 0,_--);else if(v<T)for(r=v;r<T;r++)if(void 0!==f[r]&&(u=o=f[r],d=s,"string"==typeof(h=l)||"number"==typeof h?void 0!==u.splitText:"string"==typeof h.nodeName?!u._componentConstructor&&m(u,h.nodeName):d||u._componentConstructor===h.nodeName)){c=o,f[r]=void 0,r===T-1&&T--,r===v&&v++;break}c=C(c,l,i,n),a=p[S],c&&c!==e&&c!==a&&(null==a?e.appendChild(c):c===a.nextSibling?y(a):e.insertBefore(c,a))}if(_)for(var S in g)void 0!==g[S]&&k(g[S],!1);for(;v<=T;)void 0!==(c=f[T--])&&k(c,!1)}(r,u,i,n,S||null!=c.dangerouslySetInnerHTML),function(e,t,i){var n;for(n in i)t&&null!=t[n]||null==i[n]||_(e,n,i[n],i[n]=void 0,w);for(n in t)"children"===n||"innerHTML"===n||n in i&&t[n]===("value"===n||"checked"===n?e[n]:i[n])||_(e,n,i[n],i[n]=t[n],w)}(r,t.attributes,c),w=o,r}function k(e,t){var i=e._component;i?D(i):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||y(e),x(e))}function x(e){for(e=e.lastChild;e;){var t=e.previousSibling;k(e,!0),e=t}}var I=[];function A(e,t,i){var n,s=I.length;for(e.prototype&&e.prototype.render?(n=new e(t,i),M.call(n,t,i)):((n=new M(t,i)).constructor=e,n.render=L);s--;)if(I[s].constructor===e)return n.nextBase=I[s].nextBase,I.splice(s,1),n;return n}function L(e,t,i){return this.constructor(e,i)}function O(e,t,i,n,r){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||r?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,n)),n&&n!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=n),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==i&&(1!==i&&!1===s.syncComponentUpdates&&e.base?p(e):P(e,1,r)),e.__ref&&e.__ref(e))}function P(e,t,i,n){if(!e._disable){var r,o,a,c=e.props,u=e.state,h=e.context,d=e.prevProps||c,p=e.prevState||u,f=e.prevContext||h,m=e.base,y=e.nextBase,_=m||y,v=e._component,x=!1,I=f;if(e.constructor.getDerivedStateFromProps&&(u=l(l({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),m&&(e.props=d,e.state=p,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,h)?x=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,h),e.props=c,e.state=u,e.context=h),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!x){r=e.render(c,u,h),e.getChildContext&&(h=l(l({},h),e.getChildContext())),m&&e.getSnapshotBeforeUpdate&&(I=e.getSnapshotBeforeUpdate(d,p));var L,M,N=r&&r.nodeName;if("function"==typeof N){var R=g(r);(o=v)&&o.constructor===N&&R.key==o.__key?O(o,R,1,h,!1):(L=o,e._component=o=A(N,R,h),o.nextBase=o.nextBase||y,o._parentComponent=e,O(o,R,0,h,!1),P(o,1,i,!0)),M=o.base}else a=_,(L=v)&&(a=e._component=null),(_||1===t)&&(a&&(a._component=null),M=function(e,t,i,n,s,r){T++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var o=C(e,t,i,n,r);return s&&o.parentNode!==s&&s.appendChild(o),--T||(S=!1),o}(a,r,h,i||!m,_&&_.parentNode,!0));if(_&&M!==_&&o!==v){var F=_.parentNode;F&&M!==F&&(F.replaceChild(M,_),L||(_._component=null,k(_,!1)))}if(L&&D(L),(e.base=M)&&!n){for(var B=e,U=e;U=U._parentComponent;)(B=U).base=M;M._component=B,M._componentConstructor=B.constructor}}for(!m||i?b.unshift(e):x||(e.componentDidUpdate&&e.componentDidUpdate(d,p,I),s.afterUpdate&&s.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);T||n||E()}}function D(e){s.beforeUnmount&&s.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var i=e._component;i?D(i):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),y(e.nextBase=t),I.push(e),x(t)),e.__ref&&e.__ref(null)}function M(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function N(e,t,i){return function(e,t,i,n,s,r){T++||(w=null!=s&&void 0!==s.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var o=C(e,t,i,n,r);return s&&o.parentNode!==s&&s.appendChild(o),--T||(S=!1,E()),o}(i,e,{},!1,t,!1)}l(M.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),p(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),P(this,2)},render:function(){}});var R={h:a,createElement:a,cloneElement:u,Component:M,render:N,rerender:f,options:s};t.default=R},function(e,t){var i=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=i)},function(e,t,i){var n=i(8),s=i(40);e.exports=i(3)?function(e,t,i){return n.f(e,t,s(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){var n=i(9),s=i(38),r=i(39),o=Object.defineProperty;t.f=i(3)?Object.defineProperty:function(e,t,i){if(n(e),t=r(t,!0),n(i),s)try{return o(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var n=i(2);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var i=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+n).toString(36))}},function(e,t,i){var n=i(22);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,i){var n=i(4);e.exports=function(e,t){return!!e&&n((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,i){var n=i(0);n(n.S+n.F,"Object",{assign:i(41)})},function(e,t,i){var n=i(2),s=i(1).document,r=n(s)&&n(s.createElement);e.exports=function(e){return r?s.createElement(e):{}}},function(e,t,i){var n=i(1),s=i(7),r=i(17),o=i(10)("src"),a="toString",l=Function[a],c=(""+l).split(a);i(6).inspectSource=function(e){return l.call(e)},(e.exports=function(e,t,i,a){var l="function"==typeof i;l&&(r(i,"name")||s(i,"name",t)),e[t]!==i&&(l&&(r(i,o)||s(i,o,e[t]?""+e[t]:c.join(String(t)))),e===n?e[t]=i:a?e[t]?e[t]=i:s(e,t,i):(delete e[t],s(e,t,i)))})(Function.prototype,a,(function(){return"function"==typeof this&&this[o]||l.call(this)}))},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var n=i(19);e.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,s){return e.call(t,i,n,s)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,i){var n=i(42),s=i(28);e.exports=Object.keys||function(e){return n(e,s)}},function(e,t,i){var n=i(11),s=i(12);e.exports=function(e){return n(s(e))}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var n=i(21),s=i(24),r=i(43);e.exports=function(e){return function(t,i,o){var a,l=n(t),c=s(l.length),u=r(o,c);if(e&&i!=i){for(;u<c;)if((a=l[u++])!=a)return!0}else for(;u<c;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}}},function(e,t,i){var n=i(25),s=Math.min;e.exports=function(e){return 0<e?s(n(e),9007199254740991):0}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?n:i)(e)}},function(e,t,i){var n=i(27)("keys"),s=i(10);e.exports=function(e){return n[e]||(n[e]=s(e))}},function(e,t,i){var n=i(6),s=i(1),r="__core-js_shared__",o=s[r]||(s[r]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:i(44)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,i){var n=i(12);e.exports=function(e){return Object(n(e))}},function(e,t,i){var n=i(8).f,s=Function.prototype,r=/^\s*function ([^ (]*)/;"name"in s||i(3)&&n(s,"name",{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(e){return""}}})},function(e,t,i){var n=i(0),s=i(32)(1);n(n.P+n.F*!i(13)([].map,!0),"Array",{map:function(e){return s(this,e,arguments[1])}})},function(e,t,i){var n=i(18),s=i(11),r=i(29),o=i(24),a=i(47);e.exports=function(e,t){var i=1==e,l=2==e,c=3==e,u=4==e,h=6==e,d=5==e||h,p=t||a;return function(t,a,f){for(var m,g,y=r(t),_=s(y),v=n(a,f,3),b=o(_.length),T=0,w=i?p(t,b):l?p(t,0):void 0;T<b;T++)if((d||T in _)&&(g=v(m=_[T],T,y),e))if(i)w[T]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return T;case 2:w.push(m)}else if(u)return!1;return h?-1:c||u?u:w}}},function(e,t,i){var n=i(22);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,i){var n=i(27)("wks"),s=i(10),r=i(1).Symbol,o="function"==typeof r;(e.exports=function(e){return n[e]||(n[e]=o&&r[e]||(o?r:s)("Symbol."+e))}).store=n},function(e,t,i){var n=i(0),s=i(23)(!1),r=[].indexOf,o=!!r&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(o||!i(13)(r)),"Array",{indexOf:function(e){return o?r.apply(this,arguments)||0:s(this,e,arguments[1])}})},function(e,t,i){var n=i(0);n(n.S,"Object",{create:i(52)})},function(e,t,i){t.__esModule=!0,t.default=void 0,i(14),i(30),i(31),i(35),i(49),i(50);var n=i(5),s=function(e){return e&&e.__esModule?e:{default:e}}(i(51));function r(e){if(!e.element)throw new Error("element is not defined");if(!e.id)throw new Error("id is not defined");if(!e.source)throw new Error("source is not defined");Array.isArray(e.source)&&(e.source=o(e.source)),(0,n.render)((0,n.createElement)(s.default,e),e.element)}var o=function(e){return function(t,i){i(e.filter((function(e){return-1!==e.toLowerCase().indexOf(t.toLowerCase())})))}};r.enhanceSelectElement=function(e){if(!e.selectElement)throw new Error("selectElement is not defined");if(!e.source){var t=[].filter.call(e.selectElement.options,(function(t){return t.value||e.preserveNullOptions}));e.source=t.map((function(e){return e.textContent||e.innerText}))}if(e.onConfirm=e.onConfirm||function(t){var i=[].filter.call(e.selectElement.options,(function(e){return(e.textContent||e.innerText)===t}))[0];i&&(i.selected=!0)},e.selectElement.value||void 0===e.defaultValue){var i=e.selectElement.options[e.selectElement.options.selectedIndex];e.defaultValue=i.textContent||i.innerText}void 0===e.name&&(e.name=""),void 0===e.id&&(void 0===e.selectElement.id?e.id="":e.id=e.selectElement.id),void 0===e.autoselect&&(e.autoselect=!0);var n=document.createElement("div");e.selectElement.parentNode.insertBefore(n,e.selectElement),r(Object.assign({},e,{element:n})),e.selectElement.style.display="none",e.selectElement.id=e.selectElement.id+"-select"};var a=r;t.default=a},function(e,t,i){e.exports=!i(3)&&!i(4)((function(){return 7!=Object.defineProperty(i(15)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var n=i(2);e.exports=function(e,t){if(!n(e))return e;var i,s;if(t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;if("function"==typeof(i=e.valueOf)&&!n(s=i.call(e)))return s;if(!t&&"function"==typeof(i=e.toString)&&!n(s=i.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){var n=i(20),s=i(45),r=i(46),o=i(29),a=i(11),l=Object.assign;e.exports=!l||i(4)((function(){var e={},t={},i=Symbol(),n="abcdefghijklmnopqrst";return e[i]=7,n.split("").forEach((function(e){t[e]=e})),7!=l({},e)[i]||Object.keys(l({},t)).join("")!=n}))?function(e,t){for(var i=o(e),l=arguments.length,c=1,u=s.f,h=r.f;c<l;)for(var d,p=a(arguments[c++]),f=u?n(p).concat(u(p)):n(p),m=f.length,g=0;g<m;)h.call(p,d=f[g++])&&(i[d]=p[d]);return i}:l},function(e,t,i){var n=i(17),s=i(21),r=i(23)(!1),o=i(26)("IE_PROTO");e.exports=function(e,t){var i,a=s(e),l=0,c=[];for(i in a)i!=o&&n(a,i)&&c.push(i);for(;t.length>l;)n(a,i=t[l++])&&(~r(c,i)||c.push(i));return c}},function(e,t,i){var n=i(25),s=Math.max,r=Math.min;e.exports=function(e,t){return(e=n(e))<0?s(e+t,0):r(e,t)}},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,i){var n=i(48);e.exports=function(e,t){return new(n(e))(t)}},function(e,t,i){var n=i(2),s=i(33),r=i(34)("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),n(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},function(e,t,i){var n=i(0),s=i(32)(2);n(n.P+n.F*!i(13)([].filter,!0),"Array",{filter:function(e){return s(this,e,arguments[1])}})},function(e,t,i){var n=i(0);n(n.S,"Array",{isArray:i(33)})},function(e,t,i){t.__esModule=!0,t.default=void 0,i(14),i(36),i(30),i(31),i(35),i(55),i(58);var n=i(5),s=o(i(60)),r=o(i(61));function o(e){return e&&e.__esModule?e:{default:e}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function u(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}var h=function(e){function t(t){var i;return(i=e.call(this,t)||this).elementReferences={},i.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0},i.handleComponentBlur=i.handleComponentBlur.bind(l(l(i))),i.handleKeyDown=i.handleKeyDown.bind(l(l(i))),i.handleUpArrow=i.handleUpArrow.bind(l(l(i))),i.handleDownArrow=i.handleDownArrow.bind(l(l(i))),i.handleEnter=i.handleEnter.bind(l(l(i))),i.handlePrintableKey=i.handlePrintableKey.bind(l(l(i))),i.handleListMouseLeave=i.handleListMouseLeave.bind(l(l(i))),i.handleOptionBlur=i.handleOptionBlur.bind(l(l(i))),i.handleOptionClick=i.handleOptionClick.bind(l(l(i))),i.handleOptionFocus=i.handleOptionFocus.bind(l(l(i))),i.handleOptionMouseDown=i.handleOptionMouseDown.bind(l(l(i))),i.handleOptionMouseEnter=i.handleOptionMouseEnter.bind(l(l(i))),i.handleInputBlur=i.handleInputBlur.bind(l(l(i))),i.handleInputChange=i.handleInputChange.bind(l(l(i))),i.handleInputFocus=i.handleInputFocus.bind(l(l(i))),i.pollInputElement=i.pollInputElement.bind(l(l(i))),i.getDirectInputChanges=i.getDirectInputChanges.bind(l(l(i))),i}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var i=t.prototype;return i.isQueryAnOption=function(e,t){var i=this;return-1!==t.map((function(e){return i.templateInputValue(e).toLowerCase()})).indexOf(e.toLowerCase())},i.componentDidMount=function(){this.pollInputElement()},i.componentWillUnmount=function(){clearTimeout(this.$pollInput)},i.pollInputElement=function(){var e=this;this.getDirectInputChanges(),this.$pollInput=setTimeout((function(){e.pollInputElement()}),100)},i.getDirectInputChanges=function(){var e=this.elementReferences[-1];e&&e.value!==this.state.query&&this.handleInputChange({target:{value:e.value}})},i.componentDidUpdate=function(e,t){var i=this.state.focused,n=null===i,s=t.focused!==i;s&&!n&&this.elementReferences[i].focus();var r=-1===i,o=s&&null===t.focused;if(r&&o){var a=this.elementReferences[i];a.setSelectionRange(0,a.value.length)}},i.hasAutoselect=function(){return!u()&&this.props.autoselect},i.templateInputValue=function(e){var t=this.props.templates&&this.props.templates.inputValue;return t?t(e):e},i.templateSuggestion=function(e){var t=this.props.templates&&this.props.templates.suggestion;return t?t(e):e},i.handleComponentBlur=function(e){var t,i=this.state,n=i.options,s=i.query,r=i.selected;this.props.confirmOnBlur?(t=e.query||s,this.props.onConfirm(n[r])):t=s,this.setState({focused:null,menuOpen:e.menuOpen||!1,query:t,selected:null,validChoiceMade:this.isQueryAnOption(t,n)})},i.handleListMouseLeave=function(e){this.setState({hovered:null})},i.handleOptionBlur=function(e,t){var i=this.state,n=i.focused,s=i.menuOpen,r=i.options,o=i.selected,a=null===e.relatedTarget,l=e.relatedTarget===this.elementReferences[-1],c=n!==t&&-1!==n;if(!c&&a||!c&&!l){var h=s&&u();this.handleComponentBlur({menuOpen:h,query:this.templateInputValue(r[o])})}},i.handleInputBlur=function(e){var t=this.state,i=t.focused,n=t.menuOpen,s=t.options,r=t.query,o=t.selected;if(-1===i){var a=n&&u(),l=u()?r:this.templateInputValue(s[o]);this.handleComponentBlur({menuOpen:a,query:l})}},i.handleInputChange=function(e){var t=this,i=this.props,n=i.minLength,s=i.source,r=i.showAllValues,o=this.hasAutoselect(),a=e.target.value,l=0===a.length,c=this.state.query.length!==a.length,u=a.length>=n;this.setState({query:a,ariaHint:l}),r||!l&&c&&u?s(a,(function(e){var i=0<e.length;t.setState({menuOpen:i,options:e,selected:o&&i?0:-1,validChoiceMade:!1})})):!l&&u||this.setState({menuOpen:!1,options:[]})},i.handleInputClick=function(e){this.handleInputChange(e)},i.handleInputFocus=function(e){var t=this.state,i=t.query,n=t.validChoiceMade,s=t.options,r=this.props.minLength,o=!n&&i.length>=r&&0<s.length;o?this.setState((function(e){var t=e.menuOpen;return{focused:-1,menuOpen:o||t,selected:-1}})):this.setState({focused:-1})},i.handleOptionFocus=function(e){this.setState({focused:e,hovered:null,selected:e})},i.handleOptionMouseEnter=function(e,t){u()||this.setState({hovered:t})},i.handleOptionClick=function(e,t){var i=this.state.options[t],n=this.templateInputValue(i);this.props.onConfirm(i),this.setState({focused:-1,hovered:null,menuOpen:!1,query:n,selected:-1,validChoiceMade:!0}),this.forceUpdate()},i.handleOptionMouseDown=function(e){e.preventDefault()},i.handleUpArrow=function(e){e.preventDefault();var t=this.state,i=t.menuOpen,n=t.selected;-1!==n&&i&&this.handleOptionFocus(n-1)},i.handleDownArrow=function(e){var t=this;if(e.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e,selected:0,focused:0,hovered:null})}));else if(!0===this.state.menuOpen){var i=this.state,n=i.menuOpen,s=i.options,r=i.selected;r!==s.length-1&&n&&this.handleOptionFocus(r+1)}},i.handleSpace=function(e){var t=this;this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(e.preventDefault(),this.props.source("",(function(e){t.setState({menuOpen:!0,options:e})}))),-1!==this.state.focused&&(e.preventDefault(),this.handleOptionClick(e,this.state.focused))},i.handleEnter=function(e){this.state.menuOpen&&(e.preventDefault(),0<=this.state.selected&&this.handleOptionClick(e,this.state.selected))},i.handlePrintableKey=function(e){var t=this.elementReferences[-1];e.target===t||t.focus()},i.handleKeyDown=function(e){switch(c[e.keyCode]){case"up":this.handleUpArrow(e);break;case"down":this.handleDownArrow(e);break;case"space":this.handleSpace(e);break;case"enter":this.handleEnter(e);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:(function(e){return 47<e&&e<58||32===e||8===e||64<e&&e<91||95<e&&e<112||185<e&&e<193||218<e&&e<223})(e.keyCode)&&this.handlePrintableKey(e)}},i.render=function(){var e,t=this,i=this.props,r=i.cssNamespace,o=i.displayMenu,l=i.id,c=i.minLength,h=i.name,d=i.placeholder,p=i.required,f=i.showAllValues,m=i.tNoResults,g=i.tStatusQueryTooShort,y=i.tStatusNoResults,_=i.tStatusSelectedOption,v=i.tStatusResults,b=i.tAssistiveHint,T=i.dropdownArrow,w=this.state,S=w.focused,E=w.hovered,C=w.menuOpen,k=w.options,x=w.query,I=w.selected,A=w.ariaHint,L=w.validChoiceMade,O=this.hasAutoselect(),P=-1===S,D=0===k.length,M=0!==x.length,N=x.length>=c,R=this.props.showNoOptionsFound&&P&&D&&M&&N,F=r+"__wrapper",B=r+"__input",U=null!==S?" "+B+"--focused":"",j=this.props.showAllValues?" "+B+"--show-all-values":" "+B+"--default",$=r+"__dropdown-arrow-down",q=-1!==S&&null!==S,H=r+"__menu",V=H+"--"+o,z=H+"--"+(C||R?"visible":"hidden"),W=r+"__option",G=r+"__hint",X=this.templateInputValue(k[I]),K=X&&0===X.toLowerCase().indexOf(x.toLowerCase())&&O?x+X.substr(x.length):"",Y=l+"__assistiveHint",Q=A?{"aria-describedby":Y}:null;return f&&"string"==typeof(e=T({className:$}))&&(e=(0,n.createElement)("div",{className:r+"__dropdown-arrow-down-wrapper",dangerouslySetInnerHTML:{__html:e}})),(0,n.createElement)("div",{className:F,onKeyDown:this.handleKeyDown},(0,n.createElement)(s.default,{id:l,length:k.length,queryLength:x.length,minQueryLength:c,selectedOption:this.templateInputValue(k[I]),selectedOptionIndex:I,validChoiceMade:L,isInFocus:null!==this.state.focused,tQueryTooShort:g,tNoResults:y,tSelectedOption:_,tResults:v}),K&&(0,n.createElement)("span",null,(0,n.createElement)("input",{className:G,readonly:!0,tabIndex:"-1",value:K})),(0,n.createElement)("input",a({"aria-expanded":C?"true":"false","aria-activedescendant":!!q&&l+"__option--"+S,"aria-owns":l+"__listbox","aria-autocomplete":this.hasAutoselect()?"both":"list"},Q,{autoComplete:"off",className:""+B+U+j,id:l,onClick:function(e){return t.handleInputClick(e)},onBlur:this.handleInputBlur},function(e){return{onInput:e}}(this.handleInputChange),{onFocus:this.handleInputFocus,name:h,placeholder:d,ref:function(e){t.elementReferences[-1]=e},type:"text",role:"combobox",required:p,value:x})),e,(0,n.createElement)("ul",{className:H+" "+V+" "+z,onMouseLeave:function(e){return t.handleListMouseLeave(e)},id:l+"__listbox",role:"listbox"},k.map((function(e,i){var s=(-1===S?I===i:S===i)&&null===E?" "+W+"--focused":"",r=i%2?" "+W+"--odd":"",o=u()?"<span id="+l+"__option-suffix--"+i+' style="border:0;clip:rect(0 0 0 0);height:1px;marginBottom:-1px;marginRight:-1px;overflow:hidden;padding:0;position:absolute;whiteSpace:nowrap;width:1px"> '+(i+1)+" of "+k.length+"</span>":"";return(0,n.createElement)("li",{"aria-selected":S===i?"true":"false",className:""+W+s+r,dangerouslySetInnerHTML:{__html:t.templateSuggestion(e)+o},id:l+"__option--"+i,key:i,onBlur:function(e){return t.handleOptionBlur(e,i)},onClick:function(e){return t.handleOptionClick(e,i)},onMouseDown:t.handleOptionMouseDown,onMouseEnter:function(e){return t.handleOptionMouseEnter(e,i)},ref:function(e){t.elementReferences[i]=e},role:"option",tabIndex:"-1","aria-posinset":i+1,"aria-setsize":k.length})})),R&&(0,n.createElement)("li",{className:W+" "+W+"--no-results"},m())),(0,n.createElement)("span",{id:Y,style:{display:"none"}},b()))},t}(n.Component);(t.default=h).defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:function(){},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:function(){return"No results found"},tAssistiveHint:function(){return"When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures."},dropdownArrow:r.default}},function(e,t,i){var n=i(9),s=i(53),r=i(28),o=i(26)("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=i(15)("iframe"),n=r.length;for(t.style.display="none",i(54).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c[l][r[n]];return c()};e.exports=Object.create||function(e,t){var i;return null!==e?(a[l]=n(e),i=new a,a[l]=null,i[o]=e):i=c(),void 0===t?i:s(i,t)}},function(e,t,i){var n=i(8),s=i(9),r=i(20);e.exports=i(3)?Object.defineProperties:function(e,t){s(e);for(var i,o=r(t),a=o.length,l=0;l<a;)n.f(e,i=o[l++],t[i]);return e}},function(e,t,i){var n=i(1).document;e.exports=n&&n.documentElement},function(e,t,i){var n=i(0);n(n.P,"Function",{bind:i(56)})},function(e,t,i){var n=i(19),s=i(2),r=i(57),o=[].slice,a={};e.exports=Function.bind||function(e){var t=n(this),i=o.call(arguments,1),l=function(){var n=i.concat(o.call(arguments));return this instanceof l?function(e,t,i){if(!(t in a)){for(var n=[],s=0;s<t;s++)n[s]="a["+s+"]";a[t]=Function("F,a","return new F("+n.join(",")+")")}return a[t](e,i)}(t,n.length,n):r(t,n,e)};return s(t.prototype)&&(l.prototype=t.prototype),l}},function(e,t){e.exports=function(e,t,i){var n=void 0===i;switch(t.length){case 0:return n?e():e.call(i);case 1:return n?e(t[0]):e.call(i,t[0]);case 2:return n?e(t[0],t[1]):e.call(i,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(i,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(i,t[0],t[1],t[2],t[3])}return e.apply(i,t)}},function(e,t,i){i(59)("match",1,(function(e,t,i){return[function(i){var n=e(this),s=null==i?void 0:i[t];return void 0!==s?s.call(i,n):new RegExp(i)[t](String(n))},i]}))},function(e,t,i){var n=i(7),s=i(16),r=i(4),o=i(12),a=i(34);e.exports=function(e,t,i){var l=a(e),c=i(o,l,""[e]),u=c[0],h=c[1];r((function(){var t={};return t[l]=function(){return 7},7!=""[e](t)}))&&(s(String.prototype,e,u),n(RegExp.prototype,l,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,i){t.__esModule=!0,t.default=void 0,i(36);var n=i(5),s=function(e){function t(){for(var t,i=arguments.length,n=new Array(i),s=0;s<i;s++)n[s]=arguments[s];return(t=e.call.apply(e,[this].concat(n))||this).state={bump:!1,debounced:!1},t}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(t,e);var i=t.prototype;return i.componentWillMount=function(){var e=this;this.debounceStatusUpdate=function(e,t){var i;return function(){var n=this,s=arguments;clearTimeout(i),i=setTimeout((function(){i=null,e.apply(n,s)}),t)}}((function(){if(!e.state.debounced){var t=!e.props.isInFocus||e.props.validChoiceMade;e.setState((function(e){return{bump:!e.bump,debounced:!0,silenced:t}}))}}),1400)},i.componentWillReceiveProps=function(e){e.queryLength,this.setState({debounced:!1})},i.render=function(){var e,t=this.props,i=t.id,s=t.length,r=t.queryLength,o=t.minQueryLength,a=t.selectedOption,l=t.selectedOptionIndex,c=t.tQueryTooShort,u=t.tNoResults,h=t.tSelectedOption,d=t.tResults,p=this.state,f=p.bump,m=p.debounced,g=p.silenced,y=r<o,_=0===s,v=a?h(a,s,l):"";return e=y?c(o):_?u():d(s,v),this.debounceStatusUpdate(),(0,n.createElement)("div",{style:{border:"0",clip:"rect(0 0 0 0)",height:"1px",marginBottom:"-1px",marginRight:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},(0,n.createElement)("div",{id:i+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!g&&m&&f?e:""),(0,n.createElement)("div",{id:i+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},g||!m||f?"":e))},t}(n.Component);(t.default=s).defaultProps={tQueryTooShort:function(e){return"Type in "+e+" or more characters for results"},tNoResults:function(){return"No search results"},tSelectedOption:function(e,t,i){return e+" "+(i+1)+" of "+t+" is highlighted"},tResults:function(e,t){return e+" "+(1===e?"result":"results")+" "+(1===e?"is":"are")+" available. "+t}}},function(e,t,i){t.__esModule=!0,t.default=void 0;var n=i(5);t.default=function(e){var t=e.className;return(0,n.createElement)("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},(0,n.createElement)("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},(0,n.createElement)("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})))}}]).default},e.exports=i()}));const zr=qr(Vr);const Wr={autocomplete:[]},Gr="autocomplete-list-show",Xr="data-bs-autocomplete",Kr="input["+Xr+'][type="search"]';class Yr extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._items=[],this._autocompleteElement=null,this._label=new Ii(e),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const e=this._element.value;
|
|
2
2
|
//!!! $autocomplete.empty()
|
|
3
3
|
this._autocompleteElement.innerHTML="",e?this._items.forEach((t=>{let i=new RegExp("("+e+")","gi"),n=t.text.replace(i,"<mark>$1</mark>"),s=t.label?"<em>"+t.label+"</em>":"",r=t.icon?t.icon:"",o=t.link?t.link:"#";-1!==n.toLowerCase().indexOf(e.toLowerCase())&&(this._autocompleteElement.classList.add(Gr),this._autocompleteElement.appendChild(this._createOption(o,n,s,r)))})):this._autocompleteElement.classList.remove(Gr)}_getConfig(e){return e={...Wr,..."object"==typeof e?e:{}}}_getItems(){try{return JSON.parse(this._element.getAttribute(Xr))}catch(e){return console.error("[InputSearchAutocomplete] invalid data provided for "+Xr+" attribute",e),[]}}_init(){if(this._element.classList.contains("autocomplete")){if("undefined"==typeof document)return;this._items=this._getItems(),this._autocompleteElement=document.createElement("ul"),this._autocompleteElement.classList.add("autocomplete-list"),this._element.parentNode.insertBefore(this._autocompleteElement,this._element.nextSibling)}}_bindEvents(){di.on(this._element,"keyup.bs.inputsearchautocomplete",(()=>this.search()))}_createOption(e,t,i,n){if("undefined"==typeof document)return;const s=document.createElement("li");return s.innerHTML=`<a href="${e}">\n ${n}\n <span class="autocomplete-list-text">\n <span>${t}</span>\n ${i}\n </span>\n </a>`,s}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Kr+", label").forEach((function(e){const t=Ii.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(Kr)&&Yr.getOrCreateInstance(i)}))}));const Qr=".bs.inputpassword",Jr=".data-api",Zr={shortPass:"Password troppo breve",badPass:"Password debole.",goodPass:"Password abbastanza sicura.",strongPass:"Password sicura.",minimumLength:8,suggestionsLabel:"Suggerimenti per una buona password:",suggestionFollowed:"suggerimenti seguito",suggestionFollowedPlural:"suggerimenti seguiti",suggestionOf:"di",suggestionMetLabel:"Soddisfatto: ",suggestionMetIconPath:"\n M9.6 16.9 4 11.4l.8-.7 4.8 4.8 8.5-8.4.7.7-9.2 9.1z\n ",suggestionLength:"Almeno {minLength} caratteri.",suggestionUppercase:"Una o più maiuscole.",suggestionLowercase:"Una o più minuscole.",suggestionNumber:"Uno o più numeri.",suggestionSpecial:"Uno o più caratteri speciali."},eo=`click${Qr}`,to=`keyup${Qr}`,io=`score${Qr}`,no=`text${Qr}`,so=`suggs${Qr}`,ro=`click${Qr}${Jr}`,oo=`mousedown${Qr}${Jr}`,ao=`keyup${Qr}${Jr}`,lo='input[data-bs-input][type="password"]',co=".password-icon";class uo extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._isCustom=this._element.classList.contains("input-password"),this._meter=this._element.parentNode.querySelector(".password-strength-meter"),this._grayBarElement=null,this._colorBarElement=null,this._textElement=null,this._suggsElement=null,this._showPwdElement=null,this._text={},this._label=new Ii(e),this._suggestions=[{key:"length",text:e=>e.suggestionLength.replace("{minLength}",e.minimumLength.toString()),test:(e,t)=>e.length>=t.minimumLength},{key:"uppercase",text:e=>e.suggestionUppercase,test:e=>/[A-Z]/.test(e)},{key:"lowercase",text:e=>e.suggestionLowercase,test:e=>/[a-z]/.test(e)},{key:"number",text:e=>e.suggestionNumber,test:e=>/[0-9]/.test(e)},{key:"special",text:e=>e.suggestionSpecial,test:e=>/[^A-Za-z0-9]/.test(e)}],this._init(),this._bindEvents()}static get NAME(){return"inputpassword"}_getConfig(e){return e={...Zr,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_init(){this._isCustom&&(this._handleAutofill(),this._showPwdElement=vi.findOne(co,this._element.parentNode),this._meter&&(this._grayBarElement=this._meter.querySelector(".password-meter"),this._colorBarElement=this._meter.querySelector(".progress-bar"),this._textElement=this._meter.querySelector(".strength-meter-info"),this._suggsElement=this._meter.querySelector(".strenght-meter-suggestions"),this._textElement&&(this._config=Object.assign({},this._config,{...gi.getDataAttributes(this._textElement)})),this._suggsElement&&this._createsuggestionsList()))}_bindEvents(){this._isCustom&&(this._showPwdElement&&di.on(this._showPwdElement,eo,(()=>this._toggleShowPassword())),this._meter&&(di.on(this._element,to,(()=>this._checkPassword())),di.on(this._element,"input",(()=>this._checkPassword()))))}_handleAutofill(){const e=()=>{""!==this._element.value&&(this._label._labelOut(),this._checkPassword())};e(),setTimeout(e,100),di.on(this._element,"animationstart",(t=>{"onAutoFillStart"===t.animationName&&e()}))}_toggleShowPassword(){const e="password"===this._element.getAttribute("type");vi.find('[class^="password-icon"]',this._showPwdElement).forEach((e=>e.classList.toggle("d-none"))),this._element.setAttribute("type",e?"text":"password"),this._showPwdElement.setAttribute("aria-checked",e.toString())}_checkPassword(){const e=this._element.value,t=this._calculateScore(e);this._updateMeter(t),this._updateText(t,e),this._updateSuggestions(e)}_updateMeter(e){const t=e<0?0:e;this._colorBarElement&&(this._colorBarElement.classList.forEach((e=>{e.match(/(^|\s)bg-\S+/g)&&this._colorBarElement.classList.remove(e)})),this._colorBarElement.classList.add(`bg-${this._scoreColor(e)}`),this._colorBarElement.style.width=`${t}%`,this._colorBarElement.setAttribute("aria-valuenow",t)),di.trigger(this._element,io)}_updateText(e,t){if(this._textElement){let i=this._scoreText(e);if(this._suggsElement){const{completedCount:e,totalCount:n}=this._getCompletedSuggestions(t),s=1===e?this._config.suggestionFollowed:this._config.suggestionFollowedPlural;i+=` ${e} ${this._config.suggestionOf} ${n} ${s}.`}this._textElement.textContent!==i&&(this._textElement.textContent=i,this._textElement.classList.forEach((e=>{e.match(/(^|\s)text-\S+/g)&&this._textElement.classList.remove(e)})),this._textElement.classList.add(`text-${this._scoreColor(e)}`),di.trigger(this._element,no))}}_updateSuggestions(e){this._suggsElement&&(this._updateSuggestionsList(e),di.trigger(this._element,so))}_getCompletedSuggestions(e){let t=0;const i=this._suggestions.length;return this._suggestions.forEach((i=>{i.test(e,this._config)&&t++})),{completedCount:t,totalCount:i}}_createsuggestionsList(){if(this._suggsElement.querySelector(".password-suggestions"))return;const e=document.createElement("label");e.className="visually-hidden",e.htmlFor="suggestions",e.textContent=Zr.suggestionsLabel;const t=document.createElement("div");t.id="suggestions",t.className="password-suggestions",this._suggestions.forEach((e=>{const i=document.createElement("div");i.className="suggestion",i.dataset.suggestion=e.key;const n=this._createIconCheck(),s=document.createElement("span");s.textContent=e.text(this._config),i.appendChild(n),i.appendChild(s),t.appendChild(i)})),this._suggsElement.appendChild(e),this._suggsElement.appendChild(t)}_createIconCheck(){const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("class","icon icon-xs me-1 d-none"),e.setAttribute("aria-label",this._config.suggestionMetLabel),e.setAttribute("viewBox","0 0 24 24"),e.style.width="1em",e.style.height="1em";const t=document.createElementNS("http://www.w3.org/2000/svg","path");return t.setAttribute("d",this._config.suggestionMetIconPath.trim()),e.appendChild(t),e}_updateSuggestionsList(e){this._suggsElement&&this._suggestions.forEach((t=>{const i=this._suggsElement.querySelector(`[data-suggestion="${t.key}"]`);if(i){const n=t.test(e,this._config),s=i.querySelector(".icon");s&&s.classList.toggle("d-none",!n)}}))}_scoreText(e){return-1===e?this._config.shortPass:-2===e?"":(e=e<0?0:e)<26||e<51?this._config.badPass:e<76?this._config.goodPass:this._config.strongPass}_scoreColor(e){return-1===e||-2===e||e<26?"danger":e<51?"warning":"success"}_calculateScore(e){var t=0;if(0===e.trim().length)return-2;if(e.length<this._config.minimumLength)return-1;t+=4*e.length,t+=this._checkRepetition(1,e).length-e.length,t+=this._checkRepetition(2,e).length-e.length,t+=this._checkRepetition(3,e).length-e.length,t+=this._checkRepetition(4,e).length-e.length,e.match(/(.*[0-9].*[0-9].*[0-9])/)&&(t+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),e.match(i)&&(t+=5),e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(t+=10),e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)&&(t+=15),e.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&e.match(/([0-9])/)&&(t+=15),e.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&e.match(/([a-zA-Z])/)&&(t+=15),(e.match(/^\w+$/)||e.match(/^\d+$/))&&(t-=10),t>100&&(t=100),t<0&&(t=0),t}_checkRepetition(e,t){for(var i="",n=!1,s=0;s<t.length;s++){n=!0;for(var r=0;r<e&&r+s+e<t.length;r++)n=n&&t.charAt(r+s)===t.charAt(r+s+e);r<e&&(n=!1),n?(s+=e-1,n=!1):i+=t.charAt(s)}return i}}const ho=e=>e&&e.matches(lo)?uo.getOrCreateInstance(e):null,po=()=>{const e=vi.findOne(lo);e&&uo.getOrCreateInstance(e)};"loading"!==document.readyState?po():document.addEventListener("DOMContentLoaded",po),di.on(document,oo,lo+", label",(function(){const e=Ii.getInputFromLabel(this)||this;ho(e)})),di.on(document,ao,lo+", label",(function(){const e=Ii.getInputFromLabel(this)||this,t=ho(e);t&&t._label&&t._label._labelOut()})),di.on(document,ro,co,(function(){const e=this.parentNode&&this.parentNode.querySelector(lo);e&&uo.getOrCreateInstance(e)}));var fo=Hr((function(e,t){e.exports=function(){function e(t,i,n){function s(o,a){if(!i[o]){if(!t[o]){if(!a&&$r)return $r();if(r)return r(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[o]={exports:{}};t[o][0].call(c.exports,(function(e){return s(t[o][1][e]||e)}),c,c.exports,e,t,i,n)}return i[o].exports}for(var r=$r,o=0;o<n.length;o++)s(n[o]);return s}return e}()({1:[function(e,t,i){(function(e){(function(){var n=200,s="__lodash_hash_undefined__",r=800,o=16,a=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",h="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",m="[object GeneratorFunction]",g="[object Map]",y="[object Number]",_="[object Null]",v="[object Object]",b="[object Proxy]",T="[object RegExp]",w="[object Set]",S="[object String]",E="[object Undefined]",C="[object WeakMap]",k="[object ArrayBuffer]",x="[object DataView]",I="[object Float64Array]",A="[object Int8Array]",L="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",D="[object Uint8ClampedArray]",M="[object Uint16Array]",N="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,B=/^(?:0|[1-9]\d*)$/,U={};U["[object Float32Array]"]=U[I]=U[A]=U[L]=U[O]=U[P]=U[D]=U[M]=U[N]=!0,U[l]=U[c]=U[k]=U[h]=U[x]=U[d]=U[p]=U[f]=U[g]=U[y]=U[v]=U[T]=U[w]=U[S]=U[C]=!1;var j="object"==typeof e&&e&&e.Object===Object&&e,$="object"==typeof self&&self&&self.Object===Object&&self,q=j||$||Function("return this")(),H="object"==typeof i&&i&&!i.nodeType&&i,V=H&&"object"==typeof t&&t&&!t.nodeType&&t,z=V&&V.exports===H,W=z&&j.process,G=function(){try{var e=V&&V.require&&V.require("util").types;return e||W&&W.binding&&W.binding("util")}catch(e){}}(),X=G&&G.isTypedArray;function K(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Y(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}function Q(e){return function(t){return e(t)}}function J(e,t){return null==e?void 0:e[t]}function Z(e,t){return function(i){return e(t(i))}}var ee,te=Array.prototype,ie=Function.prototype,ne=Object.prototype,se=q["__core-js_shared__"],re=ie.toString,oe=ne.hasOwnProperty,ae=(ee=/[^.]+$/.exec(se&&se.keys&&se.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",le=ne.toString,ce=re.call(Object),ue=RegExp("^"+re.call(oe).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),he=z?q.Buffer:void 0,de=q.Symbol,pe=q.Uint8Array;he&&he.allocUnsafe;var fe=Z(Object.getPrototypeOf,Object),me=Object.create,ge=ne.propertyIsEnumerable,ye=te.splice,_e=de?de.toStringTag:void 0,ve=function(){try{var e=_t(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),be=he?he.isBuffer:void 0,Te=Math.max,we=Date.now,Se=_t(q,"Map"),Ee=_t(Object,"create"),Ce=function(){function e(){}return function(t){if(!$t(t))return{};if(me)return me(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}();function ke(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function xe(){this.__data__=Ee?Ee(null):{},this.size=0}function Ie(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Ae(e){var t=this.__data__;if(Ee){var i=t[e];return i===s?void 0:i}return oe.call(t,e)?t[e]:void 0}function Le(e){var t=this.__data__;return Ee?void 0!==t[e]:oe.call(t,e)}function Oe(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Ee&&void 0===t?s:t,this}function Pe(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function De(){this.__data__=[],this.size=0}function Me(e){var t=this.__data__,i=Ze(t,e);return!(i<0||(i==t.length-1?t.pop():ye.call(t,i,1),--this.size,0))}function Ne(e){var t=this.__data__,i=Ze(t,e);return i<0?void 0:t[i][1]}function Re(e){return Ze(this.__data__,e)>-1}function Fe(e,t){var i=this.__data__,n=Ze(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}function Be(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function Ue(){this.size=0,this.__data__={hash:new ke,map:new(Se||Pe),string:new ke}}function je(e){var t=yt(this,e).delete(e);return this.size-=t?1:0,t}function $e(e){return yt(this,e).get(e)}function qe(e){return yt(this,e).has(e)}function He(e,t){var i=yt(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this}function Ve(e){var t=this.__data__=new Pe(e);this.size=t.size}function ze(){this.__data__=new Pe,this.size=0}function We(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}function Ge(e){return this.__data__.get(e)}function Xe(e){return this.__data__.has(e)}function Ke(e,t){var i=this.__data__;if(i instanceof Pe){var s=i.__data__;if(!Se||s.length<n-1)return s.push([e,t]),this.size=++i.size,this;i=this.__data__=new Be(s)}return i.set(e,t),this.size=i.size,this}function Ye(e,t){var i=Nt(e),n=!i&&Mt(e),s=!i&&!n&&Bt(e),r=!i&&!n&&!s&&Vt(e),o=i||n||s||r,a=o?Y(e.length,String):[],l=a.length;for(var c in e)o&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Tt(c,l))||a.push(c);return a}function Qe(e,t,i){(void 0!==i&&!Dt(e[t],i)||void 0===i&&!(t in e))&&et(e,t,i)}function Je(e,t,i){var n=e[t];oe.call(e,t)&&Dt(n,i)&&(void 0!==i||t in e)||et(e,t,i)}function Ze(e,t){for(var i=e.length;i--;)if(Dt(e[i][0],t))return i;return-1}function et(e,t,i){"__proto__"==t&&ve?ve(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}ke.prototype.clear=xe,ke.prototype.delete=Ie,ke.prototype.get=Ae,ke.prototype.has=Le,ke.prototype.set=Oe,Pe.prototype.clear=De,Pe.prototype.delete=Me,Pe.prototype.get=Ne,Pe.prototype.has=Re,Pe.prototype.set=Fe,Be.prototype.clear=Ue,Be.prototype.delete=je,Be.prototype.get=$e,Be.prototype.has=qe,Be.prototype.set=He,Ve.prototype.clear=ze,Ve.prototype.delete=We,Ve.prototype.get=Ge,Ve.prototype.has=Xe,Ve.prototype.set=Ke;var tt=gt();function it(e){return null==e?void 0===e?E:_:_e&&_e in Object(e)?vt(e):xt(e)}function nt(e){return qt(e)&&it(e)==l}function st(e){return!(!$t(e)||Et(e))&&(Ut(e)?ue:F).test(Pt(e))}function rt(e){return qt(e)&&jt(e.length)&&!!U[it(e)]}function ot(e){if(!$t(e))return kt(e);var t=Ct(e),i=[];for(var n in e)("constructor"!=n||!t&&oe.call(e,n))&&i.push(n);return i}function at(e,t,i,n,s){e!==t&&tt(t,(function(r,o){if(s||(s=new Ve),$t(r))lt(e,t,o,i,at,n,s);else{var a=n?n(At(e,o),r,o+"",e,t,s):void 0;void 0===a&&(a=r),Qe(e,o,a)}}),Wt)}function lt(e,t,i,n,s,r,o){var a=At(e,i),l=At(t,i),c=o.get(l);if(c)Qe(e,i,c);else{var u=r?r(a,l,i+"",e,t,o):void 0,h=void 0===u;if(h){var d=Nt(l),p=!d&&Bt(l),f=!d&&!p&&Vt(l);u=l,d||p||f?Nt(a)?u=a:Ft(a)?u=pt(a):p?(h=!1,u=ut(l)):f?(h=!1,u=dt(l)):u=[]:Ht(l)||Mt(l)?(u=a,Mt(a)?u=zt(a):$t(a)&&!Ut(a)||(u=bt(l))):h=!1}h&&(o.set(l,u),s(u,l,n,r,o),o.delete(l)),Qe(e,i,u)}}function ct(e,t){return Lt(It(e,t,Kt),e+"")}function ut(e,t){return e.slice()}function ht(e){var t=new e.constructor(e.byteLength);return new pe(t).set(new pe(e)),t}function dt(e,t){var i=ht(e.buffer);return new e.constructor(i,e.byteOffset,e.length)}function pt(e,t){var i=-1,n=e.length;for(t||(t=Array(n));++i<n;)t[i]=e[i];return t}function ft(e,t,i,n){var s=!i;i||(i={});for(var r=-1,o=t.length;++r<o;){var a=t[r],l=void 0;void 0===l&&(l=e[a]),s?et(i,a,l):Je(i,a,l)}return i}function mt(e){return ct((function(t,i){var n=-1,s=i.length,r=s>1?i[s-1]:void 0,o=s>2?i[2]:void 0;for(r=e.length>3&&"function"==typeof r?(s--,r):void 0,o&&wt(i[0],i[1],o)&&(r=s<3?void 0:r,s=1),t=Object(t);++n<s;){var a=i[n];a&&e(t,a,n,r)}return t}))}function gt(e){return function(e,t,i){for(var n=-1,s=Object(e),r=i(e),o=r.length;o--;){var a=r[++n];if(!1===t(s[a],a,s))break}return e}}function yt(e,t){var i=e.__data__;return St(t)?i["string"==typeof t?"string":"hash"]:i.map}function _t(e,t){var i=J(e,t);return st(i)?i:void 0}function vt(e){var t=oe.call(e,_e),i=e[_e];try{e[_e]=void 0;var n=!0}catch(e){}var s=le.call(e);return n&&(t?e[_e]=i:delete e[_e]),s}function bt(e){return"function"!=typeof e.constructor||Ct(e)?{}:Ce(fe(e))}function Tt(e,t){var i=typeof e;return!!(t=null==t?a:t)&&("number"==i||"symbol"!=i&&B.test(e))&&e>-1&&e%1==0&&e<t}function wt(e,t,i){if(!$t(i))return!1;var n=typeof t;return!!("number"==n?Rt(i)&&Tt(t,i.length):"string"==n&&t in i)&&Dt(i[t],e)}function St(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Et(e){return!!ae&&ae in e}function Ct(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ne)}function kt(e){var t=[];if(null!=e)for(var i in Object(e))t.push(i);return t}function xt(e){return le.call(e)}function It(e,t,i){return t=Te(void 0===t?e.length-1:t,0),function(){for(var n=arguments,s=-1,r=Te(n.length-t,0),o=Array(r);++s<r;)o[s]=n[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=n[s];return a[t]=i(o),K(e,this,a)}}function At(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Lt=Ot(ve?function(e,t){return ve(e,"toString",{configurable:!0,enumerable:!1,value:Xt(t),writable:!0})}:Kt);function Ot(e){var t=0,i=0;return function(){var n=we(),s=o-(n-i);if(i=n,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Pt(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Dt(e,t){return e===t||e!=e&&t!=t}var Mt=nt(function(){return arguments}())?nt:function(e){return qt(e)&&oe.call(e,"callee")&&!ge.call(e,"callee")},Nt=Array.isArray;function Rt(e){return null!=e&&jt(e.length)&&!Ut(e)}function Ft(e){return qt(e)&&Rt(e)}var Bt=be||Yt;function Ut(e){if(!$t(e))return!1;var t=it(e);return t==f||t==m||t==u||t==b}function jt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function $t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qt(e){return null!=e&&"object"==typeof e}function Ht(e){if(!qt(e)||it(e)!=v)return!1;var t=fe(e);if(null===t)return!0;var i=oe.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&re.call(i)==ce}var Vt=X?Q(X):rt;function zt(e){return ft(e,Wt(e))}function Wt(e){return Rt(e)?Ye(e):ot(e)}var Gt=mt((function(e,t,i){at(e,t,i)}));function Xt(e){return function(){return e}}function Kt(e){return e}function Yt(){return!1}t.exports=Gt}).call(this)}).call(this,void 0!==jr?jr:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,i){var n,s;n=self,s=function(){return function(){var e={720:function(e,t,i){i.r(t),i.d(t,{Scene:function(){return at},Tweenable:function(){return Ce},interpolate:function(){return tt},processTweens:function(){return ye},setBezierFunction:function(){return H},shouldScheduleUpdate:function(){return be},tween:function(){return ke},unsetBezierFunction:function(){return V}});var n={};i.r(n),i.d(n,{bounce:function(){return N},bouncePast:function(){return R},easeFrom:function(){return B},easeFromTo:function(){return F},easeInBack:function(){return I},easeInCirc:function(){return E},easeInCubic:function(){return c},easeInExpo:function(){return T},easeInOutBack:function(){return L},easeInOutCirc:function(){return k},easeInOutCubic:function(){return h},easeInOutExpo:function(){return S},easeInOutQuad:function(){return l},easeInOutQuart:function(){return f},easeInOutQuint:function(){return y},easeInOutSine:function(){return b},easeInQuad:function(){return o},easeInQuart:function(){return d},easeInQuint:function(){return m},easeInSine:function(){return _},easeOutBack:function(){return A},easeOutBounce:function(){return x},easeOutCirc:function(){return C},easeOutCubic:function(){return u},easeOutExpo:function(){return w},easeOutQuad:function(){return a},easeOutQuart:function(){return p},easeOutQuint:function(){return g},easeOutSine:function(){return v},easeTo:function(){return U},elastic:function(){return O},linear:function(){return r},swingFrom:function(){return D},swingFromTo:function(){return P},swingTo:function(){return M}});var s={};i.r(s),i.d(s,{afterTween:function(){return Ke},beforeTween:function(){return Xe},doesApply:function(){return We},tweenCreated:function(){return Ge}});var r=function(e){return e},o=function(e){return Math.pow(e,2)},a=function(e){return-(Math.pow(e-1,2)-1)},l=function(e){return(e/=.5)<1?.5*Math.pow(e,2):-.5*((e-=2)*e-2)},c=function(e){return Math.pow(e,3)},u=function(e){return Math.pow(e-1,3)+1},h=function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},d=function(e){return Math.pow(e,4)},p=function(e){return-(Math.pow(e-1,4)-1)},f=function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},m=function(e){return Math.pow(e,5)},g=function(e){return Math.pow(e-1,5)+1},y=function(e){return(e/=.5)<1?.5*Math.pow(e,5):.5*(Math.pow(e-2,5)+2)},_=function(e){return 1-Math.cos(e*(Math.PI/2))},v=function(e){return Math.sin(e*(Math.PI/2))},b=function(e){return-.5*(Math.cos(Math.PI*e)-1)},T=function(e){return 0===e?0:Math.pow(2,10*(e-1))},w=function(e){return 1===e?1:1-Math.pow(2,-10*e)},S=function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},E=function(e){return-(Math.sqrt(1-e*e)-1)},C=function(e){return Math.sqrt(1-Math.pow(e-1,2))},k=function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},x=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},I=function(e){var t=1.70158;return e*e*((t+1)*e-t)},A=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},L=function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},O=function(e){return-1*Math.pow(4,-8*e)*Math.sin((6*e-1)*(2*Math.PI)/2)+1},P=function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},D=function(e){var t=1.70158;return e*e*((t+1)*e-t)},M=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},N=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},R=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?2-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?2-(7.5625*(e-=2.25/2.75)*e+.9375):2-(7.5625*(e-=2.625/2.75)*e+.984375)},F=function(e){return(e/=.5)<1?.5*Math.pow(e,4):-.5*((e-=2)*Math.pow(e,3)-2)},B=function(e){return Math.pow(e,4)},U=function(e){return Math.pow(e,.25)};function j(e,t,i,n,s,r){var o,a,l,c,u,h=0,d=0,p=0,f=function(e){return((h*e+d)*e+p)*e},m=function(e){return(3*h*e+2*d)*e+p},g=function(e){return e>=0?e:0-e};return h=1-(p=3*t)-(d=3*(n-t)-p),l=1-(u=3*i)-(c=3*(s-i)-u),o=e,a=function(e){return 1/(200*e)}(r),function(e){return((l*e+c)*e+u)*e}(function(e,t){var i,n,s,r,o,a;for(s=e,a=0;a<8;a++){if(r=f(s)-e,g(r)<t)return s;if(o=m(s),g(o)<1e-6)break;s-=r/o}if((s=e)<(i=0))return i;if(s>(n=1))return n;for(;i<n;){if(r=f(s),g(r-e)<t)return s;e>r?i=s:n=s,s=.5*(n-i)+i}return s}(o,a))}var $,q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.25,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.75,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75;return function(s){return j(s,e,t,i,n,1)}},H=function(e,t,i,n,s){var r=q(t,i,n,s);return r.displayName=e,r.x1=t,r.y1=i,r.x2=n,r.y2=s,Ce.formulas[e]=r},V=function(e){return delete Ce.formulas[e]};function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function X(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return K(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?K(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Q(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(i),!0).forEach((function(t){J(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function J(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Z,ee,te,ie="linear",ne="undefined"!=typeof window?window:i.g,se="afterTween",re="afterTweenEnd",oe="beforeTween",ae="tweenCreated",le="function",ce="string",ue=ne.requestAnimationFrame||ne.webkitRequestAnimationFrame||ne.oRequestAnimationFrame||ne.msRequestAnimationFrame||ne.mozCancelRequestAnimationFrame&&ne.mozRequestAnimationFrame||setTimeout,he=function(){},de=null,pe=null,fe=Q({},n),me=function(e,t,i,n,s,r,o){var a,l,c,u=e<r?0:(e-r)/s,h=!1;for(var d in o&&o.call&&(h=!0,a=o(u)),t)h||(a=((l=o[d]).call?l:fe[l])(u)),c=i[d],t[d]=c+(n[d]-c)*a;return t},ge=function(e,t){var i=e._timestamp,n=e._currentState,s=e._delay;if(!(t<i+s)){var r=e._duration,o=e._targetState,a=i+s+r,l=t>a?a:t;e._hasEnded=l>=a;var c=r-(a-l),u=e._filters.length>0;if(e._hasEnded)return e._render(o,e._data,c),e.stop(!0);u&&e._applyFilter(oe),l<i+s?i=r=l=1:i+=s,me(l,n,e._originalState,o,r,i,e._easing),u&&e._applyFilter(se),e._render(n,e._data,c)}},ye=function(){for(var e,t=Ce.now(),i=de;i;)e=i._next,ge(i,t),i=e},_e=Date.now||function(){return+new Date},ve=!1,be=function(e){e&&ve||(ve=e,e&&Te())},Te=function e(){Z=_e(),ve&&ue.call(ne,e,16.666666666666668),ye()},we=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(t))return q.apply(void 0,X(t));var n=G(t);if(fe[t])return fe[t];if(n===ce||n===le)for(var s in e)i[s]=t;else for(var r in e)i[r]=t[r]||ie;return i},Se=function(e){e===de?(de=e._next)?de._previous=null:pe=null:e===pe?(pe=e._previous)?pe._next=null:de=null:(ee=e._previous,te=e._next,ee._next=te,te._previous=ee),e._previous=e._next=null},Ee="function"==typeof Promise?Promise:null;$=Symbol.toStringTag;var Ce=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;z(this,e),J(this,$,"Promise"),this._config={},this._data={},this._delay=0,this._filters=[],this._next=null,this._previous=null,this._timestamp=null,this._hasEnded=!1,this._resolve=null,this._reject=null,this._currentState=t||{},this._originalState={},this._targetState={},this._start=he,this._render=he,this._promiseCtor=Ee,i&&this.setConfig(i)}var t;return t=[{key:"_applyFilter",value:function(e){for(var t=this._filters.length;t>0;t--){var i=this._filters[t-t][e];i&&i(this)}}},{key:"tween",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!t&&this._config||this.setConfig(t),this._pausedAtTime=null,this._timestamp=e.now(),this._start(this.get(),this._data),this._delay&&this._render(this._currentState,this._data,0),this._resume(this._timestamp)}},{key:"setConfig",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var n in t)i[n]=t[n];var s=i.promise,r=void 0===s?this._promiseCtor:s,o=i.start,a=void 0===o?he:o,l=i.finish,c=i.render,u=void 0===c?this._config.step||he:c,h=i.step,d=void 0===h?he:h;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=t.delay||0,this._start=a,this._render=u||d,this._duration=i.duration||500,this._promiseCtor=r,l&&(this._resolve=l);var p=t.from,f=t.to,m=void 0===f?{}:f,g=this._currentState,y=this._originalState,_=this._targetState;for(var v in p)g[v]=p[v];var b=!1;for(var T in g){var w=g[T];b||G(w)!==ce||(b=!0),y[T]=w,_[T]=m.hasOwnProperty(T)?m[T]:w}if(this._easing=we(this._currentState,i.easing,this._easing),this._filters.length=0,b){for(var S in e.filters)e.filters[S].doesApply(this)&&this._filters.push(e.filters[S]);this._applyFilter(ae)}return this}},{key:"then",value:function(e,t){var i=this;return this._promise=new this._promiseCtor((function(e,t){i._resolve=e,i._reject=t})),this._promise.then(e,t)}},{key:"catch",value:function(e){return this.then().catch(e)}},{key:"finally",value:function(e){return this.then().finally(e)}},{key:"get",value:function(){return Q({},this._currentState)}},{key:"set",value:function(e){this._currentState=e}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=e.now(),this._isPlaying=!1,Se(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=t-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===de?(de=this,pe=this):(this._previous=pe,pe._next=this,pe=this),this)}},{key:"seek",value:function(t){t=Math.max(t,0);var i=e.now();return this._timestamp+t===0||(this._timestamp=i-t,ge(this,i)),this}},{key:"stop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,Se(this);var t=this._filters.length>0;return e&&(t&&this._applyFilter(oe),me(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),t&&(this._applyFilter(se),this._applyFilter(re))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:t,tweenable:this}),this._resolve=null,this._reject=null,this.stop(e)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(t){e.setScheduleFunction(t)}},{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e&&(this._data=Q({},e)),this._data}},{key:"dispose",value:function(){for(var e in this)delete this[e]}}],t&&W(e.prototype,t),e}();function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new Ce;return t.tween(e),t.tweenable=t,t}J(Ce,"now",(function(){return Z})),J(Ce,"setScheduleFunction",(function(e){return ue=e})),J(Ce,"filters",{}),J(Ce,"formulas",fe),be(!0);var xe,Ie,Ae=/(\d|-|\.)/,Le=/([^\-0-9.]+)/g,Oe=/[0-9.-]+/g,Pe=(xe=Oe.source,Ie=/,\s*/.source,new RegExp("rgba?\\(".concat(xe).concat(Ie).concat(xe).concat(Ie).concat(xe,"(").concat(Ie).concat(xe,")?\\)"),"g")),De=/^.*\(/,Me=/#([0-9]|[a-f]){3,6}/gi,Ne="VAL",Re=function(e,t){return e.map((function(e,i){return"_".concat(t,"_").concat(i)}))};function Fe(e){return parseInt(e,16)}var Be=function(e){return"rgb(".concat((t=e,3===(t=t.replace(/#/,"")).length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]),[Fe(t.substr(0,2)),Fe(t.substr(2,2)),Fe(t.substr(4,2))]).join(","),")");var t},Ue=function(e,t,i){var n=t.match(e),s=t.replace(e,Ne);return n&&n.forEach((function(e){return s=s.replace(Ne,i(e))})),s},je=function(e){for(var t in e){var i=e[t];"string"==typeof i&&i.match(Me)&&(e[t]=Ue(Me,i,Be))}},$e=function(e){var t=e.match(Oe),i=t.slice(0,3).map(Math.floor),n=e.match(De)[0];if(3===t.length)return"".concat(n).concat(i.join(","),")");if(4===t.length)return"".concat(n).concat(i.join(","),",").concat(t[3],")");throw new Error("Invalid rgbChunk: ".concat(e))},qe=function(e){return e.match(Oe)},He=function(e,t){var i={};return t.forEach((function(t){i[t]=e[t],delete e[t]})),i},Ve=function(e,t){return t.map((function(t){return e[t]}))},ze=function(e,t){return t.forEach((function(t){return e=e.replace(Ne,+t.toFixed(4))})),e},We=function(e){for(var t in e._currentState)if("string"==typeof e._currentState[t])return!0;return!1};function Ge(e){var t=e._currentState;[t,e._originalState,e._targetState].forEach(je),e._tokenData=function(e){var t,i,n={};for(var s in e){var r=e[s];"string"==typeof r&&(n[s]={formatString:(t=r,i=void 0,i=t.match(Le),i?(1===i.length||t.charAt(0).match(Ae))&&i.unshift(""):i=["",""],i.join(Ne)),chunkNames:Re(qe(r),s)})}return n}(t)}function Xe(e){var t=e._currentState,i=e._originalState,n=e._targetState,s=e._easing,r=e._tokenData;!function(e,t){var i=function(i){var n=t[i].chunkNames,s=e[i];if("string"==typeof s){var r=s.split(" "),o=r[r.length-1];n.forEach((function(t,i){return e[t]=r[i]||o}))}else n.forEach((function(t){return e[t]=s}));delete e[i]};for(var n in t)i(n)}(s,r),[t,i,n].forEach((function(e){return function(e,t){var i=function(i){qe(e[i]).forEach((function(n,s){return e[t[i].chunkNames[s]]=+n})),delete e[i]};for(var n in t)i(n)}(e,r)}))}function Ke(e){var t=e._currentState,i=e._originalState,n=e._targetState,s=e._easing,r=e._tokenData;[t,i,n].forEach((function(e){return function(e,t){for(var i in t){var n=t[i],s=n.chunkNames,r=n.formatString,o=ze(r,Ve(He(e,s),s));e[i]=Ue(Pe,o,$e)}}(e,r)})),function(e,t){for(var i in t){var n=t[i].chunkNames,s=e[n[0]];e[i]="string"==typeof s?n.map((function(t){var i=e[t];return delete e[t],i})).join(" "):s}}(s,r)}function Ye(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Qe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(i),!0).forEach((function(t){Je(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ye(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Je(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var Ze=new Ce,et=Ce.filters,tt=function(e,t,i,n){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=Qe({},e),o=we(e,n);for(var a in Ze._filters.length=0,Ze.set({}),Ze._currentState=r,Ze._originalState=e,Ze._targetState=t,Ze._easing=o,et)et[a].doesApply(Ze)&&Ze._filters.push(et[a]);Ze._applyFilter("tweenCreated"),Ze._applyFilter("beforeTween");var l=me(i,r,e,t,1,s,o);return Ze._applyFilter("afterTween"),l};function it(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function st(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rt(e,t){var i=t.get(e);if(!i)throw new TypeError("attempted to get private field on non-instance");return i.get?i.get.call(e):i.value}var ot=new WeakMap,at=function(){function e(){nt(this,e),ot.set(this,{writable:!0,value:[]});for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];i.forEach(this.add.bind(this))}var t;return(t=[{key:"add",value:function(e){return rt(this,ot).push(e),e}},{key:"remove",value:function(e){var t=rt(this,ot).indexOf(e);return~t&&rt(this,ot).splice(t,1),e}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return rt(this,ot).some((function(e){return e.isPlaying()}))}},{key:"play",value:function(){return rt(this,ot).forEach((function(e){return e.tween()})),this}},{key:"pause",value:function(){return rt(this,ot).forEach((function(e){return e.pause()})),this}},{key:"resume",value:function(){return this.playingTweenables.forEach((function(e){return e.resume()})),this}},{key:"stop",value:function(e){return rt(this,ot).forEach((function(t){return t.stop(e)})),this}},{key:"tweenables",get:function(){return function(e){if(Array.isArray(e))return it(e)}(e=rt(this,ot))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return it(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?it(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();var e}},{key:"playingTweenables",get:function(){return rt(this,ot).filter((function(e){return!e.hasEnded()}))}},{key:"promises",get:function(){return rt(this,ot).map((function(e){return e.then()}))}}])&&st(e.prototype,t),e}();Ce.filters.token=s}},t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={exports:{}};return e[n](s,s.exports,i),s.exports}return i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i(720)}()},"object"==typeof i&&"object"==typeof t?t.exports=s():"object"==typeof i?i.shifty=s():n.shifty=s()},{}],3:[function(e,t,i){var n=e("./shape"),s=e("./utils"),r=function(e,t){this._pathTemplate="M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}",this.containerAspectRatio=1,n.apply(this,arguments)};r.prototype=new n,r.prototype.constructor=r,r.prototype._pathString=function(e){var t=e.strokeWidth;e.trailWidth&&e.trailWidth>e.strokeWidth&&(t=e.trailWidth);var i=50-t/2;return s.render(this._pathTemplate,{radius:i,"2radius":2*i})},r.prototype._trailString=function(e){return this._pathString(e)},t.exports=r},{"./shape":8,"./utils":10}],4:[function(e,t,i){var n=e("./shape"),s=e("./utils"),r=function(e,t){this._pathTemplate=t.vertical?"M {center},100 L {center},0":"M 0,{center} L 100,{center}",n.apply(this,arguments)};r.prototype=new n,r.prototype.constructor=r,r.prototype._initializeSvg=function(e,t){var i=t.vertical?"0 0 "+t.strokeWidth+" 100":"0 0 100 "+t.strokeWidth;e.setAttribute("viewBox",i),e.setAttribute("preserveAspectRatio","none")},r.prototype._pathString=function(e){return s.render(this._pathTemplate,{center:e.strokeWidth/2})},r.prototype._trailString=function(e){return this._pathString(e)},t.exports=r},{"./shape":8,"./utils":10}],5:[function(e,t,i){t.exports={Line:e("./line"),Circle:e("./circle"),SemiCircle:e("./semicircle"),Square:e("./square"),Path:e("./path"),Shape:e("./shape"),utils:e("./utils")}},{"./circle":3,"./line":4,"./path":6,"./semicircle":7,"./shape":8,"./square":9,"./utils":10}],6:[function(e,t,i){var n=e("shifty"),s=e("./utils"),r=n.Tweenable,o={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},a=function e(t,i){if(!(this instanceof e))throw new Error("Constructor was called without new keyword");var n;i=s.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),n=s.isString(t)?document.querySelector(t):t,this.path=n,this._opts=i,this._tweenable=null;var r=this.path.getTotalLength();this.path.style.strokeDasharray=r+" "+r,this.set(0)};a.prototype.value=function(){var e=this._getComputedDashOffset(),t=this.path.getTotalLength();return parseFloat((1-e/t).toFixed(6),10)},a.prototype.set=function(e){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(e);var t=this._opts.step;if(s.isFunction(t)){var i=this._easing(this._opts.easing);t(this._calculateTo(e,i),this._opts.shape||this,this._opts.attachment)}},a.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},a.prototype.animate=function(e,t,i){t=t||{},s.isFunction(t)&&(i=t,t={});var n=s.extend({},t),o=s.extend({},this._opts);t=s.extend(o,t);var a=this._easing(t.easing),l=this._resolveFromAndTo(e,a,n);this.stop(),this.path.getBoundingClientRect();var c=this._getComputedDashOffset(),u=this._progressToOffset(e),h=this;this._tweenable=new r,this._tweenable.tween({from:s.extend({offset:c},l.from),to:s.extend({offset:u},l.to),duration:t.duration,delay:t.delay,easing:a,step:function(e){h.path.style.strokeDashoffset=e.offset;var i=t.shape||h;t.step(e,i,t.attachment)}}).then((function(e){s.isFunction(i)&&i()})).catch((function(e){throw console.error("Error in tweening:",e),e}))},a.prototype._getComputedDashOffset=function(){var e=window.getComputedStyle(this.path,null);return parseFloat(e.getPropertyValue("stroke-dashoffset"),10)},a.prototype._progressToOffset=function(e){var t=this.path.getTotalLength();return t-e*t},a.prototype._resolveFromAndTo=function(e,t,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(t),to:this._calculateTo(e,t)}},a.prototype._calculateFrom=function(e){return n.interpolate(this._opts.from,this._opts.to,this.value(),e)},a.prototype._calculateTo=function(e,t){return n.interpolate(this._opts.from,this._opts.to,e,t)},a.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},a.prototype._easing=function(e){return o.hasOwnProperty(e)?o[e]:e},t.exports=a},{"./utils":10,shifty:2}],7:[function(e,t,i){var n=e("./shape"),s=e("./circle"),r=e("./utils"),o=function(e,t){this._pathTemplate="M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0",this.containerAspectRatio=2,n.apply(this,arguments)};o.prototype=new n,o.prototype.constructor=o,o.prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 50")},o.prototype._initializeTextContainer=function(e,t,i){e.text.style&&(i.style.top="auto",i.style.bottom="0",e.text.alignToBottom?r.setStyle(i,"transform","translate(-50%, 0)"):r.setStyle(i,"transform","translate(-50%, 50%)"))},o.prototype._pathString=s.prototype._pathString,o.prototype._trailString=s.prototype._trailString,t.exports=o},{"./circle":3,"./shape":8,"./utils":10}],8:[function(e,t,i){var n=e("./path"),s=e("./utils"),r="Object is destroyed",o=function e(t,i){if(!(this instanceof e))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=s.extend({color:"#555",strokeWidth:1,trailColor:null,trailWidth:null,fill:null,text:{style:{color:null,position:"absolute",left:"50%",top:"50%",padding:0,margin:0,transform:{prefix:!0,value:"translate(-50%, -50%)"}},autoStyleContainer:!0,alignToBottom:!0,value:null,className:"progressbar-text"},svgStyle:{display:"block",width:"100%"},warnings:!1},i,!0),s.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),s.isObject(i)&&s.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var r,o=this._createSvgView(this._opts);if(!(r=s.isString(t)?document.querySelector(t):t))throw new Error("Container does not exist: "+t);this._container=r,this._container.appendChild(o.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&s.setStyles(o.svg,this._opts.svgStyle),this.svg=o.svg,this.path=o.path,this.trail=o.trail,this.text=null;var a=s.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new n(o.path,a),s.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};o.prototype.animate=function(e,t,i){if(null===this._progressPath)throw new Error(r);this._progressPath.animate(e,t,i)},o.prototype.stop=function(){if(null===this._progressPath)throw new Error(r);void 0!==this._progressPath&&this._progressPath.stop()},o.prototype.pause=function(){if(null===this._progressPath)throw new Error(r);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},o.prototype.resume=function(){if(null===this._progressPath)throw new Error(r);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},o.prototype.destroy=function(){if(null===this._progressPath)throw new Error(r);this.stop(),this.svg.parentNode.removeChild(this.svg),this.svg=null,this.path=null,this.trail=null,this._progressPath=null,null!==this.text&&(this.text.parentNode.removeChild(this.text),this.text=null)},o.prototype.set=function(e){if(null===this._progressPath)throw new Error(r);this._progressPath.set(e)},o.prototype.value=function(){if(null===this._progressPath)throw new Error(r);return void 0===this._progressPath?0:this._progressPath.value()},o.prototype.setText=function(e){if(null===this._progressPath)throw new Error(r);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),s.isObject(e)?(s.removeChildren(this.text),this.text.appendChild(e)):this.text.innerHTML=e},o.prototype._createSvgView=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(t,e);var i=null;(e.trailColor||e.trailWidth)&&(i=this._createTrail(e),t.appendChild(i));var n=this._createPath(e);return t.appendChild(n),{svg:t,path:n,trail:i}},o.prototype._initializeSvg=function(e,t){e.setAttribute("viewBox","0 0 100 100")},o.prototype._createPath=function(e){var t=this._pathString(e);return this._createPathElement(t,e)},o.prototype._createTrail=function(e){var t=this._trailString(e),i=s.extend({},e);return i.trailColor||(i.trailColor="#eee"),i.trailWidth||(i.trailWidth=i.strokeWidth),i.color=i.trailColor,i.strokeWidth=i.trailWidth,i.fill=null,this._createPathElement(t,i)},o.prototype._createPathElement=function(e,t){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",e),i.setAttribute("stroke",t.color),i.setAttribute("stroke-width",t.strokeWidth),t.fill?i.setAttribute("fill",t.fill):i.setAttribute("fill-opacity","0"),i},o.prototype._createTextContainer=function(e,t){var i=document.createElement("div");i.className=e.text.className;var n=e.text.style;return n&&(e.text.autoStyleContainer&&(t.style.position="relative"),s.setStyles(i,n),n.color||(i.style.color=e.color)),this._initializeTextContainer(e,t,i),i},o.prototype._initializeTextContainer=function(e,t,i){},o.prototype._pathString=function(e){throw new Error("Override this function for each progress bar")},o.prototype._trailString=function(e){throw new Error("Override this function for each progress bar")},o.prototype._warnContainerAspectRatio=function(e){if(this.containerAspectRatio){var t=window.getComputedStyle(e,null),i=parseFloat(t.getPropertyValue("width"),10),n=parseFloat(t.getPropertyValue("height"),10);s.floatEquals(this.containerAspectRatio,i/n)||(console.warn("Incorrect aspect ratio of container","#"+e.id,"detected:",t.getPropertyValue("width")+"(width)","/",t.getPropertyValue("height")+"(height)","=",i/n),console.warn("Aspect ratio of should be",this.containerAspectRatio))}},t.exports=o},{"./path":6,"./utils":10}],9:[function(e,t,i){var n=e("./shape"),s=e("./utils"),r=function(e,t){this._pathTemplate="M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}",this._trailTemplate="M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}",n.apply(this,arguments)};r.prototype=new n,r.prototype.constructor=r,r.prototype._pathString=function(e){var t=100-e.strokeWidth/2;return s.render(this._pathTemplate,{width:t,strokeWidth:e.strokeWidth,halfOfStrokeWidth:e.strokeWidth/2})},r.prototype._trailString=function(e){var t=100-e.strokeWidth/2;return s.render(this._trailTemplate,{width:t,strokeWidth:e.strokeWidth,halfOfStrokeWidth:e.strokeWidth/2,startMargin:e.strokeWidth/2-e.trailWidth/2})},t.exports=r},{"./shape":8,"./utils":10}],10:[function(e,t,i){var n=e("lodash.merge"),s="Webkit Moz O ms".split(" "),r=.001;function o(e,t){var i=e;for(var n in t)if(t.hasOwnProperty(n)){var s=t[n],r=new RegExp("\\{"+n+"\\}","g");i=i.replace(r,s)}return i}function a(e,t,i){for(var n=e.style,r=0;r<s.length;++r)n[s[r]+c(t)]=i;n[t]=i}function l(e,t){f(t,(function(t,i){null!=t&&(p(t)&&!0===t.prefix?a(e,i,t.value):e.style[i]=t)}))}function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e){return"string"==typeof e||e instanceof String}function h(e){return"function"==typeof e}function d(e){return"[object Array]"===Object.prototype.toString.call(e)}function p(e){return!d(e)&&"object"==typeof e&&!!e}function f(e,t){for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)}function m(e,t){return Math.abs(e-t)<r}function g(e){for(;e.firstChild;)e.removeChild(e.firstChild)}t.exports={extend:n,render:o,setStyle:a,setStyles:l,capitalize:c,isString:u,isFunction:h,isObject:p,forEachObject:f,floatEquals:m,removeChildren:g}},{"lodash.merge":1}]},{},[5])(5)}));const mo=qr(fo),go={color:"#5C6F82",trailColor:"#D9DADB",strokeWidth:24,trailWidth:12,easing:"easeInOut",duration:1400,text:{autoStyleContainer:!1},animate:!0,value:0};class yo extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._bar=null,this._init()}static get NAME(){return"progressdonut"}set(e){this._config.animate?this._bar.animate(e):this._bar.set(e)}dispose(){this._bar.destroy(),super.dispose()}_getConfig(e){return e={...go,step:this._getStepCallback(),...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_getStepCallback(){return(e,t)=>{const i=Math.round(100*t.value());t.setText(i+"%")}}_init(){this._bar=new mo.Circle(this._element,this._config),this._config.value>0&&this.set(this._config.value)}}vi.find("[data-bs-progress-donut]").forEach((e=>{yo.getOrCreateInstance(e)}));const _o="dragend",vo="dragover",bo="dragenter",To="dragleave",wo="drop",So="success",Eo="dragover",Co="loading",ko="[data-bs-upload-dragdrop]";class xo extends _i{constructor(e){super(e);const t=vi.findOne("[data-bs-progress-donut]",this._element);t&&(this._donut=yo.getOrCreateInstance(t)),this._bindEvents()}static get NAME(){return"upload"}progress(e){this._donut.set(e)}start(){this.reset(),this._element.classList.add(Co)}success(){this._element.classList.remove(Co),this._element.classList.add(So)}reset(){this._element.classList.remove(Co),this._element.classList.remove(So),this._donut.set(0)}dispose(){this._donut.dispose(),super.dispose()}_bindEvents(){di.on(this._element,"drag",(e=>this._preventEvent(e))),di.on(this._element,"dragstart",(e=>this._preventEvent(e))),di.on(this._element,_o,(e=>this._preventEvent(e))),di.on(this._element,vo,(e=>this._preventEvent(e))),di.on(this._element,bo,(e=>this._preventEvent(e))),di.on(this._element,To,(e=>this._preventEvent(e))),di.on(this._element,wo,(e=>this._preventEvent(e))),di.on(this._element,vo,(()=>this._dropIn())),di.on(this._element,bo,(()=>this._dropIn())),di.on(this._element,To,(()=>this._dropOut())),di.on(this._element,_o,(()=>this._dropOut())),di.on(this._element,wo,(()=>this._dropOut())),di.on(this._element,wo,(()=>this._drop()))}_preventEvent(e){e.preventDefault(),e.stopPropagation()}_dropIn(){this._isSuccess()||this._element.classList.add(Eo)}_dropOut(){this._isSuccess()||this._element.classList.remove(Eo)}_drop(){this._isSuccess()||this.start()}_isSuccess(){return this._element.classList.contains(So)}}const Io=e=>{let t=e.matches&&e.matches(ko)?e:e.closest?e.closest(ko):null;return t&&xo.getOrCreateInstance(t),null};"undefined"!=typeof document&&(document.addEventListener("dragenter",(function(e){Io(e.target)})),di.on(document,"click.bs.upload.data-api",ko+" label",(function(){Io(this)})));const Ao="back-to-top-show",Lo={positionTop:0,scrollLimit:100,duration:800,easing:"easeInOutSine"};class Oo extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._scrollCb=null,this._isAnim=!1,this._prevScrollBehavior="",this._bindEvents()}static get NAME(){return"backtotop"}show(){this._element.classList.contains(Ao)||this._element.classList.add(Ao)}hide(){this._element.classList.contains(Ao)&&this._element.classList.remove(Ao)}toggleShow(){"undefined"!=typeof document&&document.scrollingElement.scrollTop>this._config.scrollLimit?this.show():this.hide()}scrollToTop(){this._isAnim||(this._isAnim=!0,Js(this._config.positionTop,{duration:this._config.duration,easing:this._config.easing,complete:()=>{this._isAnim=!1}}))}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(e){return e={...Lo,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){this._scrollCb=Wn((()=>this.toggleShow())),di.on(this._element,"click.bs.backtotop",(e=>{e.preventDefault(),this.scrollToTop()}))}}Wn((()=>{vi.find('[data-bs-toggle="backtotop"]').map((e=>{Oo.getOrCreateInstance(e)}))}));const Po=".bs.historyback",Do=`click${Po}`,Mo=`click${Po}.data-api`;class No extends _i{constructor(e){super(e),this._bindEvents()}static get NAME(){return"historyback"}back(){"undefined"!=typeof window&&window.history.back()}_bindEvents(){di.on(this._element,Do,(e=>{e.preventDefault(),this.back()}))}}di.on(document,Mo,'[data-bs-toggle="historyback"]',(function(e){e.preventDefault();No.getOrCreateInstance(this).back()}));const Ro=".bs.historyback",Fo=`click${Ro}`,Bo=`click${Ro}.data-api`,Uo={duration:800,easing:"easeInOutSine"};class jo extends _i{constructor(e,t){super(e),this._config=this._getConfig(t),this._bindEvents()}static get NAME(){return"historyback"}goToTarget(){const e=Nt(this._element);e&&Js(e.offsetTop,{duration:this._config.duration,easing:this._config.easing})}_getConfig(e){return e={...Uo,...gi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_bindEvents(){di.on(this._element,Fo,(e=>{e.preventDefault(),this.goToTarget()}))}}di.on(document,Bo,'[data-bs-toggle="forward"]',(function(e){e.preventDefault();jo.getOrCreateInstance(this).goToTarget()}));var $o=Hr((function(e){!function(t,i){e.exports?e.exports=i():t.EvEmitter=i()}("undefined"!=typeof window?window:jr,(function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],s=0;s<i.length;s++){var r=i[s];n&&n[r]&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}))})),qo=Hr((function(e){
|
|
4
4
|
/*!
|