bootstrap-italia 2.14.0 → 2.15.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.
@@ -1,8 +1,8 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@splidejs/splide"),require("@popperjs/core"),require("video.js"),require("animejs/lib/anime.es.js")):"function"==typeof define&&define.amd?define(["@splidejs/splide","@popperjs/core","video.js","animejs/lib/anime.es.js"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Splide,t.Popper,t.videojs,t.anime)}(this,(function(t,e,i,n){"use strict";function s(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const o=s(e);!function(){const t={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();const r="data-focus-mouse";class a{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((t=>{document.addEventListener(t,(t=>{this._usingMouse="mousedown"===t.type}))})),document.addEventListener("focusin",(t=>{this._usingMouse&&t.target&&t.target.setAttribute(r,!0)})),document.addEventListener("focusout",(t=>{t.target&&t.target.setAttribute(r,!1)}))}}new a;const l=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new a,window.BOOTSTRAP_ITALIA_VERSION="2.14.0")};l();const c={ck3:{}},u={rememberChoice:(t,e)=>{c.ck3[t]=e,localStorage.setItem("bs-ck3",JSON.stringify(c.ck3))},isChoiceRemembered:t=>(c.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),c.ck3[t]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},h=new Map,d={set(t,e,i){h.has(t)||h.set(t,new Map);const n=h.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>h.has(t)&&h.get(t).get(e)||null,remove(t,e){if(!h.has(t))return;const i=h.get(t);i.delete(e),0===i.size&&h.delete(t)}},f="transitionend",p=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},m=t=>{const e=p(t);return e&&document.querySelector(e)?e:null},g=t=>{const e=p(t);return e?document.querySelector(e):null},_=t=>!(!t||"object"!=typeof t)&&void 0!==t.nodeType,b=t=>_(t)?t:"string"==typeof t&&t.length>0?document.querySelector(t):null,v=t=>{if(!_(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},y=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),w=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?w(t.parentNode):null},E=()=>{},C=t=>{t.offsetHeight},S=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&"rtl"===document.documentElement.dir,k=t=>{"function"==typeof t&&t()},x=(t,e,i=!0)=>{if(!i)return void k(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const o=({target:i})=>{i===e&&(s=!0,e.removeEventListener(f,o),k(t))};e.addEventListener(f,o),setTimeout((()=>{s||e.dispatchEvent(new Event(f))}),n)},T=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},A=/[^.]*(?=\..*)\.|.*/,O=/\..*/,L=/::\d+$/,I={};let P=1;const M={mouseenter:"mouseover",mouseleave:"mouseout"},F=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 $(t,e){return e&&`${e}::${P++}`||t.uidEvent||P++}function j(t){const e=$(t);return t.uidEvent=e,I[e]=I[e]||{},I[e]}function N(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function D(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=(r=(r=t).replace(O,""),M[r]||r);var r;return F.has(o)||(o=t),[n,s,o]}function R(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=D(e,i,n);if(e in M){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=j(t),c=l[a]||(l[a]={}),u=N(c,r,o?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=$(r,e.replace(A,"")),d=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return W(s,{delegateTarget:r}),n.oneOff&&z.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return W(n,{delegateTarget:t}),i.oneOff&&z.off(t,n.type,e),e.apply(t,[n])}}(t,r);d.delegationSelector=o?i:null,d.callable=r,d.oneOff=s,d.uidEvent=h,c[h]=d,t.addEventListener(a,d,o)}function B(t,e,i,n,s){const o=N(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function V(t,e,i,n){const s=e[i]||{};for(const o of Object.keys(s))if(o.includes(n)){const n=s[o];B(t,e,i,n.callable,n.delegationSelector)}}const z={on(t,e,i,n){R(t,e,i,n,!1)},one(t,e,i,n){R(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=D(e,i,n),a=r!==e,l=j(t),c=l[r]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const i of Object.keys(l))V(t,l,i,e.slice(1));for(const i of Object.keys(c)){const n=i.replace(L,"");if(!a||e.includes(n)){const e=c[i];B(t,l,r,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;B(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;let n=new Event(e,{bubbles:!0,cancelable:!0});return n=W(n,i),t.dispatchEvent(n),n}};function W(t,e){for(const[i,n]of Object.entries(e||{}))try{t[i]=n}catch{Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function q(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function H(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const U={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${H(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${H(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=q(t.dataset[n])}return e},getDataAttribute:(t,e)=>q(t.getAttribute(`data-bs-${H(e)}`))};class G{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=_(e)?U.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},..._(e)?U.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const n of Object.keys(e)){const s=e[n],o=t[n],r=_(o)?"element":null==(i=o)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)}var i}}class K extends G{constructor(t,e){super(),(t=b(t))&&(this._element=t,this._config=this._getConfig(e),d.set(this._element,this.constructor.DATA_KEY,this))}dispose(){d.remove(this._element,this.constructor.DATA_KEY),z.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){x(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return d.get(b(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e: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(t){return`${t}${this.EVENT_KEY}`}}const Y={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!y(t)&&v(t)))}},Q={slideFocus:!1,rewind:!0,perMove:1,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",carousel:"Carosello",select:"Seleziona una slide da mostrare",slide:"slide",slideLabel:"%s di %s"}},X={"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 Z extends K{constructor(e){super(e),this._config=this._getConfig(),this._splide=new t(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let t=Object.assign({},Q);return Object.keys(X).forEach((e=>{this._element.classList.contains(e)&&(t=Object.assign({},t,X[e]))})),t}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(window,"load.bs.carousel.data-api",(()=>{Y.find("[data-bs-carousel-splide]").forEach((t=>{Z.getOrCreateInstance(t)}))}));const J=".bs.inputlabel",tt=`focus${J}`,et=`blur${J}`,it=`change${J}`,nt="active";class st{constructor(t){this._element=t,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=t=>{if("undefined"!=typeof window&&"undefined"!=typeof document)return document.querySelector("#"+CSS.escape(t.getAttribute("for")))};_init(){const t=this._getLabel();t&&!t.classList.contains(nt)&&(this._labelOut(),this._labelOver()),t&&null===t.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?z.on(this._element,et,(()=>{this._labelOut()})):(z.on(this._element,tt,(()=>{this._labelOut()})),z.on(this._element,et,(()=>{this._labelOver()})),z.on(this._element,it,(()=>{this._labelToggle()}))))}_getLabel(){return Y.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return"number"===this._element.getAttribute("type")?!this._element.value&&!this._element.getAttribute("placeholder")&&!this._element.validity.badInput:!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const t=this._getLabel();t&&t.classList.add(nt)}_labelOver(){if(this._isEmpty()){const t=this._getLabel();t&&t.classList.remove(nt)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const ot=".bs.inputnumber",rt=`click${ot}`,at=`change${ot}`,lt=`click${ot}.data-api`,ct=".input-number",ut='input[data-bs-input][type="number"]',ht='button[class^="input-number-"]';class dt extends K{constructor(t){super(t),this._wrapperElement=this._element.closest(ct),this._label=new st(t),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(Y.find(ht,this._wrapperElement).forEach((t=>{z.on(t,rt,(e=>{e.preventDefault(),this._incrDecr(t.classList.contains("input-number-sub")),this._label._labelOut()}))})),z.on(this._element,at,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let t=null;t="calc(70px + "+this._element.value.length+"ch)",t&&(this._element.style.width=t)}}_incrDecr(t){let e=0;if(!this._element.disabled&&!this._element.readonly&&(""!==this._element.value&&(e=parseFloat(this._element.value)),!isNaN(e))){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=e+i*(t?-1:1),z.trigger(this._element,at),z.trigger(this._element,"input")}}_checkLimit(){const t=parseFloat(this._element.value);if(!isNaN(t)){let e=t;const i=parseFloat(this._element.getAttribute("max")),n=parseFloat(this._element.getAttribute("min"));n&&t<n&&(e=n),i&&t>i&&(e=i),this._element.value=e}this._inputResize()}}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(ut+", label").forEach((function(t){const e=st.getInputFromLabel(t)||t;var i;(i=e)&&i.matches(ut)&&i.parentNode.querySelector(ht)&&dt.getOrCreateInstance(i)}))})),z.on(document,lt,ht,(function(){const t=this.closest(ct);if(t){const e=Y.findOne(ut,t);e&&dt.getOrCreateInstance(e)}})));const ft="show";class pt extends K{constructor(t){super(t),this._isShown=!t.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 t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(ft),this._queueCallback((()=>this._hideElement()),this._element,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),t&&C(this._element),this._element.classList.add(ft);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const t=g(this),e=pt.getOrCreateInstance(t);this.checked?e.show():e.hide()}));const mt=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;z.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),y(this))return;const s=g(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()}))},gt=".bs.notification",_t=`click${gt}.data-api`,bt=`hidden${gt}`,vt=`show${gt}`,yt={timeout:0},wt="show";class Et extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=this._element.classList.contains(wt),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(t,e){if(this._isShown||this._isTransitioning)return;const i=t||this._getElementTimeout(e);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(wt),this._queueCallback((()=>this._hideElement()),this._element,t)}toggle(t){this._isShown?this.hide():this.show(null,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(t){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),e&&C(this._element),this._element.classList.add(wt);this._queueCallback((()=>{this._isTransitioning=!1,t&&this._setTimeout(t,(()=>this.hide()))}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(t){return t={...yt,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_getElementTimeout(t){const e=t?parseInt(t.getAttribute("data-bs-timeout")):null;return e>0?e:this._config.timeout}_setTimeout(t,e){this._clearTimeout(),setTimeout(e,t)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,_t,'[data-bs-toggle="notification"]',(function(t){const e=g(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),z.one(e,vt,(t=>{t.defaultPrevented||z.one(e,bt,(()=>{v(this)&&this.focus()}))}));Et.getOrCreateInstance(e).toggle(this)})),mt(Et));const Ct="cookiebar",St=".bs.cookiebar",kt=".data-api",xt="cookies_consent",Tt=`close${St}`,At=`closed${St}`,Ot=`load${St}${kt}`,Lt=`click${St}${kt}`,It="show";class Pt extends K{constructor(t){super(t),this._isShown=this._element.classList.contains(It),this._isTransitioning=!1}static get NAME(){return Ct}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 t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(It),this._queueCallback((()=>this._hideElement()),this._element,t)}accept(t){t=t||this._element;const e=this._getRootElement(t);this._triggerCloseEvent(e).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=xt+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),t&&C(this._element),this._element.classList.add(It);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var t=new Date;t.setDate(t.getDate()+30);var e=escape("true")+"; expires="+t.toUTCString();"undefined"!=typeof document&&(document.cookie=xt+"="+e+"; path=/; SameSite=Strict")}_getRootElement(t){const e=g(t);let i=null;return e&&(i=e),i||(i=t.closest(".cookiebar")),i}_triggerCloseEvent(t){return z.trigger(t,Tt)}_removeElement(t){t.classList.remove(It),t.setAttribute("aria-hidden","true"),t.setAttribute("aria-live","off"),z.trigger(t,At),this.dispose()}static _handleAccept(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _handleConsent(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var t,e,i,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(e=n[t].substring(0,n[t].indexOf("=")),i=n[t].substring(n[t].indexOf("=")+1),(e=e.replace(/^\s+|\s+$/g,""))==xt)return unescape(i)}}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,Lt,'[data-bs-accept="cookiebar"]',(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),y(this))return;const e=g(this)||this.closest(`.${Ct}`);Pt.getOrCreateInstance(e).accept()})),z.on(window,Ot,(function(){if(!Pt._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((t=>{Pt.getOrCreateInstance(t).show()}))}})));const Mt=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},Ft=(t,e)=>{let i=null;return e.forEach(((e,n)=>{e===t&&(i=n)})),i},$t=(t,e,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=Ft(t,e);let s=null;if(i.isLimit&&i.isDirectionTop&&n>0)s=e[0];else if(i.isLimit&&n<e.length-1)s=e[e.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;s=e[0===n?e.length-1:n-1]}else{if(!i.loop&&n===e.length-1)return;s=e[n===e.length-1?0:n+1]}s&&s.focus()},jt="pagescroll-scroll-disabled";let Nt=!1,Dt="undefined"==typeof document?0:document.scrollingElement?document.scrollingElement.scrollTop:0;const Rt="undefined"==typeof document?null:document.querySelector("html");"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{Nt&&(document.scrollingElement.scrollTop=Dt)}));const Bt=".bs.navbarcollapsible",Vt=`click${Bt}.data-api`,zt=`click${Bt}`,Wt=`keyup${Bt}`,qt=`keydown${Bt}`,Ht=`hide${Bt}`,Ut=`hidden${Bt}`,Gt=`show${Bt}`,Kt=`shown${Bt}`,Yt=`resize${Bt}`,Qt="show",Xt="expanded",Zt=".close-menu",Jt=".nav-link",te=".nav-item .list-item",ee=".it-heading-link",ie=".it-footer-link";class ne extends K{constructor(t){super(t),this._isShown=this._element.classList.contains(Xt),this._isTransitioning=!1,this._isMobile=Mt(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=Y.findOne(".close-div button",this._element),this._btnBack=Y.findOne(".it-back-button",this._element),this._menuWrapper=Y.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=Y.find([Jt,te,ee,ie,Zt].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(t){if(this._isShown||this._isTransitioning)return;z.trigger(this._element,Gt,{relatedTarget:t}).defaultPrevented||(this._btnBack&&this._btnBack.classList.add(Qt),this._isShown=!0,"undefined"!=typeof document&&(Nt=!0,Dt=document.scrollingElement.scrollTop,Rt.classList.add(jt)),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;if(z.trigger(this._element,Ht).defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._btnBack&&this._btnBack.classList.remove(Qt),this._overlay&&this._overlay.classList.remove(Qt),this._element.classList.remove(Xt),"undefined"!=typeof document&&(Nt=!1,Rt.classList.remove(jt)),this._queueCallback((()=>this._hideElement()),this._menuWrapper,t)}toggle(t){this._isShown?this.hide():this.show(t)}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(z.off(window,Yt),super.dispose())}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(window,Yt,(()=>this._onResize())),this._overlay&&z.on(this._overlay,zt,(()=>this.hide())),z.on(this._btnClose,zt,(t=>{t.preventDefault(),this.hide()})),z.on(this._btnBack,zt,(t=>{t.preventDefault(),this.hide()})),this._menuItems.forEach((t=>{z.on(t,qt,(t=>this._isMobile&&this._onMenuItemKeyDown(t))),z.on(t,Wt,(t=>this._isMobile&&this._onMenuItemKeyUp(t))),z.on(t,zt,(t=>this._isMobile&&this._onMenuItemClick(t)))})))}_onResize(){this._isMobile=Mt()}_onMenuItemKeyUp(t){"Shift"===t.key&&(this._isKeyShift=!1)}_onMenuItemKeyDown(t){"Shift"===t.key&&(this._isKeyShift=!0),"Tab"===t.key&&(t.preventDefault(),this._focusNext())}_onMenuItemClick(t){this.currItemIdx=Ft(t.currentTarget,this._menuItems)}_isAnimated(){return!0}_isElementHidden(t){return null===t.offsetParent}_showElement(){const t=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"),t&&C(this._element),this._element.classList.add(Xt),this._overlay&&this._overlay.classList.add(Qt);this._queueCallback((()=>{this._isTransitioning=!1;const t=this._getNextVisibleItem(0);t.item&&(t.item.focus(),this._currItemIdx=t.index),z.trigger(this._element,Kt)}),this._menuWrapper,t)}_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,z.trigger(this._element,Ut)}_setOverlay(){this._overlay=Y.findOne(".overlay",this._element),this._isAnimated&&this._overlay.classList.add("fade")}_focusNext(){let t=this._currItemIdx+(this._isKeyShift?-1:1);t<0?t=this._menuItems.length-1:t>=this._menuItems.length&&(t=0);const e=this._getNextVisibleItem(t,this._isKeyShift);e.item&&(e.item.focus(),this._currItemIdx=e.index)}_getNextVisibleItem(t,e){let i=null,n=null,s=t,o=e?-1:1,r=!1;for(;!(i||s==t&&r);)s==t&&(r=!0),this._isElementHidden(this._menuItems[s])||(i=this._menuItems[s],n=s),s+=o,s<0?s=this._menuItems.length-1:s>=this._menuItems.length&&(s=0);return{item:i,index:n}}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,Vt,'[data-bs-toggle="navbarcollapsible"]',(function(t){const e=g(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),z.one(e,Gt,(t=>{t.defaultPrevented||z.one(e,Ut,(()=>{v(this)&&this.focus()}))}));ne.getOrCreateInstance(e).toggle(this)}));const se=".bs.accordion",oe=`keydown${se}`,re=`keydown${se}.data-api`,ae='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class le extends K{constructor(t){super(t),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(t,e,i){const n={ArrowDown:t=>this._focusNext(t),ArrowUp:t=>this._focusPrev(t),Home:t=>this._focusFirst(t),End:t=>this._focusLast(t)};"function"==typeof n[t]&&(i&&i.preventDefault(),n[t](e))}_bindEvents(){Y.find(ae,this._element).forEach((t=>{z.on(t,oe,(t=>{this.handleKeyDown(t.key,t.currentTarget,t)}))}))}_getHeadButtons(){return Y.find(":scope > "+ae,this._element)}_focusNext(t){$t(t,this._getHeadButtons(),{loop:!0})}_focusPrev(t){$t(t,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(t){$t(t,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(t){$t(t,this._getHeadButtons(),{isLimit:!0})}}var ce;"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,re,ae,(function(t){const e=this.closest(".accordion");if(e){le.getOrCreateInstance(e).handleKeyDown(t.key,this,t)}}));var ue=new Uint8Array(16);function he(){if(!ce&&!(ce="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 ce(ue)}const de=/^(?:[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 fe=[],pe=0;pe<256;++pe)fe.push((pe+256).toString(16).substr(1));function me(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(fe[t[e+0]]+fe[t[e+1]]+fe[t[e+2]]+fe[t[e+3]]+"-"+fe[t[e+4]]+fe[t[e+5]]+"-"+fe[t[e+6]]+fe[t[e+7]]+"-"+fe[t[e+8]]+fe[t[e+9]]+"-"+fe[t[e+10]]+fe[t[e+11]]+fe[t[e+12]]+fe[t[e+13]]+fe[t[e+14]]+fe[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&de.test(t)}(i))throw TypeError("Stringified UUID is invalid");return i}function ge(t,e,i){var n=(t=t||{}).random||(t.rng||he)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,me(n)}let _e=!1,be=[];class ve{constructor(t,e){this.id=t,this._callback=e}dispose(){ye(this.id)}_execute(t){this._callback(t)}}const ye=t=>{be=be.filter((e=>e.id!==t))},we=t=>{if("undefined"!=typeof document){if(be.length||"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("scroll",(t=>{_e||(window.requestAnimationFrame((()=>{be.forEach((e=>e.cb._execute(t))),_e=!1})),_e=!0)})),"function"==typeof t){const e=new ve(ge(),t);return be.push({id:e.id,cb:e}),e}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}},Ee={duration:800,easing:"easeInOutSine"},Ce=(t,e)=>{if("undefined"==typeof window||"undefined"==typeof document)return;const i=("object"==typeof e?e:{}).complete,s=window.document.scrollingElement||window.document.body||window.document.documentElement,o=s.style.scrollBehavior;e={scrollTop:t||0,...Ee,..."object"==typeof e?e:{}},s.style.scrollBehavior="auto",e.complete=t=>{s.style.scrollBehavior=o,"function"==typeof i&&i(t)},n({targets:s,...e})},Se="active",ke="ul.link-list",xe="a.nav-link",Te=`${xe}.${Se}`,Ae=`${xe}[href^="#"]`,Oe={scrollPadding:10,duration:800,easing:"easeInOutSine"};class Le extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._togglerElement=Y.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=Y.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(t){this._config.scrollPadding=t}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(t){return t={...Oe,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){this._scrollCb=we((()=>this._onScroll())),this._collapsible&&(z.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),z.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),Y.find(Ae,this._element).forEach((t=>{t.addEventListener("click",(()=>{const e=()=>this._scrollToHash(t.hash);this._isCollapseOpened?(this._callbackQueue.push(e),this._collapsible.hide()):e()}))})),"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(window,"load",(()=>{setTimeout((()=>this._onScroll()),150)}))}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const t=this._callbackQueue.shift();"function"==typeof t&&t()}this._isCollapseOpened=!1}_getParentLinks(t){const e=[];let i=t.closest(ke),n=null,s=!1;for(;i&&!s;){const t=i.closest("li.nav-link, li.nav-item");if(t){const i=t.querySelector(xe);i&&e.push(i)}n=i,i=(i.parentElement||i).closest(ke),i===n&&(s=!0)}return e}_decorateToggler(t){if(this._togglerElement){const e=Y.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(e),this._togglerElement.append(t)}}_scrollToHash(t){const e=Y.findOne(t,this._sectionContainer);e&&(Ce(e.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing}),history.pushState?history.pushState(null,null,t):location.hash=t)}_updateProgress(t){if(!t)return;const e=Y.find(".it-navscroll-progressbar");if(e){const i=Math.abs(t.getBoundingClientRect().top)/t.getBoundingClientRect().height*100,n=Math.min(100,Math.max(0,i));e.forEach((e=>{t.getBoundingClientRect().top<=0?(e.style.width=n+"%",e.setAttribute("aria-valuenow",n)):(e.style.width="0%",e.setAttribute("aria-valuenow",0))}))}}_onScroll(){const t=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const e=document.scrollingElement.scrollTop-t,i=Y.find(xe,this._element),n=this._getScrollPadding();Y.find(".it-page-section").forEach(((s,o)=>{if(s.offsetTop-t<=e+n&&(Y.find(Te,this._element).forEach((t=>{t.classList.remove(Se)})),o<i.length)){const t=i[o];this._getParentLinks(t).forEach((t=>{t.classList.add(Se)})),t.classList.add(Se),this._decorateToggler(t.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const t=Y.findOne(".navbar-collapsable",this._element);return t?ne.getOrCreateInstance(t):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}if("undefined"!=typeof window&&"undefined"!=typeof document){Y.find("[data-bs-navscroll]").map((t=>{Le.getOrCreateInstance(t)}))}const Ie=".bs.sticky",Pe=`resize${Ie}`,Me=`on${Ie}`,Fe=`off${Ie}`,$e="bs-is-sticky",je="bs-is-fixed",Ne='[data-bs-toggle="sticky"]',De={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class Re extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._isSticky=!1,this._wrapper=null,this._stickyTarget=Y.findOne(m(this._element),this._element)||this._element,this._stickyTargetMobile=Y.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=Mt(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(z.off(window,Pe),this._scrollCb.dispose(),super.dispose())}static get NAME(){return"sticky"}_getConfig(t){return t={...De,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(window,Pe,(()=>this._onResize())),this._scrollCb=we((()=>this._onScroll())))}_onResize(){this._isMobile=Mt(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let t=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach(((e,i)=>{const n=e.getBoundingClientRect();t-=n.height+(0===i?parseFloat(e.style.top):0)})),t>0?t:0}_cumulativeOffset(t){let e=0,i=0;do{e+=t.offsetTop||0,i+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const t=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>t?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let t=$e;this._isTypeSticky()||(t=je,this._wrapper=this._createWrapper()),this._element.classList.add(t),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",z.trigger(this._element,Me)}}_unsetSticky(){if(this._isSticky){let t=$e;this._isTypeSticky()||(t=je,this._destroyWrapper()),this._element.classList.remove(t),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,z.trigger(this._element,Fe)}}_createWrapper(){if("undefined"==typeof document)return;const t=document.createElement("div");return t.classList.add("bs-it-sticky-wrapper"),t.style.width="100%",t.style.height=this._element.getBoundingClientRect().height+"px",t.style.overflow="hidden",this._element.parentNode.insertBefore(t,this._element),t.appendChild(this._element),t}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return Y.find(Ne).filter((t=>{const e=Re.getInstance(t);return!(!e||!e._isSticky||t===this._element)}))}_getPositionTop(){let t=0;return this._config.stackable?(this._getStickySimblings().forEach(((e,i)=>{const n=e.getBoundingClientRect();t+=n.height+(0===i?parseFloat(e.style.top):0)})),t):t+this._config.paddingTop}}"undefined"!=typeof window&&"undefined"!=typeof document&&we((()=>{Y.find(Ne).map((t=>{Re.getOrCreateInstance(t)}))}));const Be="cloned-element",Ve=`.${Be}`,ze=new Map;class We{constructor(t){if(ze.get(t))return null;this._element=t,this._elementObj=Re.getOrCreateInstance(t),ze.set(t,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(t){return ze.get(t)||new this(t)}_bindEvents(){this._element.addEventListener("on.bs.sticky",(()=>this._toggleClonedElement(!0))),this._element.addEventListener("off.bs.sticky",(()=>this._toggleClonedElement(!1)))}_toggleClonedElement(t=!0){if(!v(Y.findOne(".custom-navbar-toggler",this._element))){const e=Y.findOne(".menu-wrapper",this._element);if(t){const t=Y.findOne(".it-brand-wrapper",this._element),i=Y.findOne(".it-search-wrapper",this._element),n=Y.findOne(".it-user-wrapper",this._element),s=t?t.cloneNode(!0):null,o=i?i.cloneNode(!0):null,r=n?n.cloneNode(!0):null;s&&e.insertBefore(s,e.childNodes[0]).classList.add(Be),o&&e.appendChild(o).classList.add(Be),r&&(e.appendChild(r).classList.add(Be),e.appendChild(r).classList.remove("show"))}else Y.find(Ve,this._element).forEach((t=>{t.parentElement.removeChild(t)}))}}}we((()=>{Y.find('.it-header-sticky [data-bs-toggle="sticky"]').map((t=>{We.getOrCreateInstance(t)}))}));var qe=Object.defineProperty,He=(t,e,i)=>(((t,e,i)=>{e in t?qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i})(t,"symbol"!=typeof e?e+"":e,i),i);const Ue=/^(([^<>()[\]\\.,;:\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,}))$/,Ge=/^-?[0-9]\d*$/,Ke=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,Ye=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,Qe=t=>"string"!=typeof t||""===t;var Xe=(t=>(t.Required="required",t.Email="email",t.MinLength="minLength",t.MaxLength="maxLength",t.Password="password",t.Number="number",t.Integer="integer",t.MaxNumber="maxNumber",t.MinNumber="minNumber",t.StrongPassword="strongPassword",t.CustomRegexp="customRegexp",t.MinFilesCount="minFilesCount",t.MaxFilesCount="maxFilesCount",t.Files="files",t))(Xe||{}),Ze=(t=>(t.Required="required",t))(Ze||{}),Je=(t=>(t.Label="label",t.LabelArrow="labelArrow",t))(Je||{});const ti=[{key:Xe.Required,dict:{en:"The field is required"}},{key:Xe.Email,dict:{en:"Email has invalid format"}},{key:Xe.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:Xe.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:Xe.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:Xe.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:Xe.Number,dict:{en:"Value should be a number"}},{key:Xe.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:Xe.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:Xe.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:Xe.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:Xe.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],ei=t=>"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then,ii=t=>Array.isArray(t)?t.filter((t=>t.length>0)):"string"==typeof t&&t.trim()?[...t.split(" ").filter((t=>t.length>0))]:[],ni=t=>t instanceof Element||t instanceof HTMLDocument,si={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,submitFormAutomatically:!1};class oi{constructor(t,e,i){He(this,"form",null),He(this,"fields",{}),He(this,"groupFields",{}),He(this,"errors",{}),He(this,"isValid",!1),He(this,"isSubmitted",!1),He(this,"globalConfig",si),He(this,"errorLabels",{}),He(this,"successLabels",{}),He(this,"eventListeners",[]),He(this,"dictLocale",ti),He(this,"currentLocale","en"),He(this,"customStyleTags",{}),He(this,"onSuccessCallback"),He(this,"onFailCallback"),He(this,"onValidateCallback"),He(this,"tooltips",[]),He(this,"lastScrollPosition"),He(this,"isScrollTick"),He(this,"fieldIds",new Map),He(this,"getKeyByFieldSelector",(t=>this.fieldIds.get(t))),He(this,"getFieldSelectorByKey",(t=>{for(const[e,i]of this.fieldIds)if(t===i)return e})),He(this,"getCompatibleFields",(()=>{const t={};return Object.keys(this.fields).forEach((e=>{let i=e;const n=this.getFieldSelectorByKey(e);"string"==typeof n&&(i=n),t[i]={...this.fields[e]}})),t})),He(this,"setKeyByFieldSelector",(t=>{if(this.fieldIds.has(t))return this.fieldIds.get(t);const e=String(this.fieldIds.size+1);return this.fieldIds.set(t,e),e})),He(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((t=>{t.refresh()}))})),He(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),He(this,"formSubmitHandler",(t=>{t.preventDefault(),this.isSubmitted=!0,this.validateHandler(t)})),He(this,"handleFieldChange",(t=>{let e;for(const i in this.fields){if(this.fields[i].elem===t){e=i;break}}e&&(this.fields[e].touched=!0,this.validateField(e,!0))})),He(this,"handleGroupChange",(t=>{let e;for(const i in this.groupFields){if(this.groupFields[i].elems.find((e=>e===t))){e=i;break}}e&&(this.groupFields[e].touched=!0,this.validateGroup(e,!0))})),He(this,"handlerChange",(t=>{t.target&&(this.handleFieldChange(t.target),this.handleGroupChange(t.target),this.renderErrors())})),this.initialize(t,e,i)}initialize(t,e,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=si,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof t){const e=document.querySelector(t);if(!e)throw Error(`Form with ${t} selector not found! Please check the form selector`);this.setForm(e)}else{if(!(t instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(t)}if(this.globalConfig={...si,...e},i&&(this.dictLocale=[...i,...ti]),this.isTooltip()){const t=document.createElement("style");t.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[Je.Label]=document.head.appendChild(t),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(t,e,i){var n;const s=null!=i?i:t;let o=null==(n=this.dictLocale.find((t=>t.key===s)))?void 0:n.dict[this.currentLocale];if(o||i&&(o=i),o&&void 0!==e)switch(t){case Xe.MaxLength:case Xe.MinLength:case Xe.MaxNumber:case Xe.MinNumber:case Xe.MinFilesCount:case Xe.MaxFilesCount:o=o.replace(":value",String(e))}return o||i||"Value is incorrect"}getFieldErrorMessage(t,e){const i="function"==typeof t.errorMessage?t.errorMessage(this.getElemValue(e),this.fields):t.errorMessage;return this.getLocalisedString(t.rule,t.value,i)}getFieldSuccessMessage(t,e){const i="function"==typeof t?t(this.getElemValue(e),this.fields):t;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(t){return this.getLocalisedString(t.rule,void 0,t.errorMessage)}getGroupSuccessMessage(t){if(t.successMessage)return this.getLocalisedString(void 0,void 0,t.successMessage)}setFieldInvalid(t,e){this.fields[t].isValid=!1,this.fields[t].errorMessage=this.getFieldErrorMessage(e,this.fields[t].elem)}setFieldValid(t,e){this.fields[t].isValid=!0,void 0!==e&&(this.fields[t].successMessage=this.getFieldSuccessMessage(e,this.fields[t].elem))}setGroupInvalid(t,e){this.groupFields[t].isValid=!1,this.groupFields[t].errorMessage=this.getGroupErrorMessage(e)}setGroupValid(t,e){this.groupFields[t].isValid=!0,this.groupFields[t].successMessage=this.getGroupSuccessMessage(e)}getElemValue(t){switch(t.type){case"checkbox":return t.checked;case"file":return t.files;default:return t.value}}validateGroupRule(t,e,i){if(i.rule===Ze.Required)e.every((t=>!t.checked))?this.setGroupInvalid(t,i):this.setGroupValid(t,i)}validateFieldRule(t,e,i,n=!1){const s=i.value,o=this.getElemValue(e);if(i.plugin){i.plugin(o,this.getCompatibleFields())||this.setFieldInvalid(t,i)}else{switch(i.rule){case Xe.Required:(t=>{let e=t;return"string"==typeof t&&(e=t.trim()),!e})(o)&&this.setFieldInvalid(t,i);break;case Xe.Email:if(Qe(o))break;r=o,Ue.test(r)||this.setFieldInvalid(t,i);break;case Xe.MaxLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Qe(o))break;((t,e)=>t.length>e)(o,s)&&this.setFieldInvalid(t,i);break;case Xe.MinLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Qe(o))break;((t,e)=>t.length<e)(o,s)&&this.setFieldInvalid(t,i);break;case Xe.Password:if(Qe(o))break;(t=>Ke.test(t))(o)||this.setFieldInvalid(t,i);break;case Xe.StrongPassword:if(Qe(o))break;(t=>Ye.test(t))(o)||this.setFieldInvalid(t,i);break;case Xe.Number:if(Qe(o))break;(t=>"string"==typeof t&&!isNaN(+t)&&!isNaN(parseFloat(t)))(o)||this.setFieldInvalid(t,i);break;case Xe.Integer:if(Qe(o))break;(t=>Ge.test(t))(o)||this.setFieldInvalid(t,i);break;case Xe.MaxNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Qe(o))break;const e=+o;(Number.isNaN(e)||((t,e)=>t>e)(e,s))&&this.setFieldInvalid(t,i);break}case Xe.MinNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Qe(o))break;const e=+o;(Number.isNaN(e)||((t,e)=>t<e)(e,s))&&this.setFieldInvalid(t,i);break}case Xe.CustomRegexp:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(t,i);let e;try{e=new RegExp(s)}catch(e){console.error(`Value for ${i.rule} rule for [${t}] should be a valid regexp. This field will be always invalid.`),this.setFieldInvalid(t,i);break}const n=String(o);""===n||e.test(n)||this.setFieldInvalid(t,i);break}case Xe.MinFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Number.isFinite(null==o?void 0:o.length)&&o.length<s){this.setFieldInvalid(t,i);break}break;case Xe.MaxFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Number.isFinite(null==o?void 0:o.length)&&o.length>s){this.setFieldInvalid(t,i);break}break;case Xe.Files:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(t,i);if("object"!=typeof s)return console.error(`Value for ${i.rule} rule for [${t}] field should be an object. This field will be always invalid.`),void this.setFieldInvalid(t,i);const e=s.files;if("object"!=typeof e)return console.error(`Value for ${i.rule} rule for [${t}] field should be an object with files array. This field will be always invalid.`),void this.setFieldInvalid(t,i);const n=(t,e)=>{const i=Number.isFinite(e.minSize)&&t.size<e.minSize,n=Number.isFinite(e.maxSize)&&t.size>e.maxSize,s=Array.isArray(e.names)&&!e.names.includes(t.name),o=Array.isArray(e.extensions)&&!e.extensions.includes(t.name.split(".")[t.name.split(".").length-1]),r=Array.isArray(e.types)&&!e.types.includes(t.type);return i||n||s||o||r};if("object"==typeof o&&null!==o)for(let s=0,r=o.length;s<r;++s){const r=o.item(s);if(!r){this.setFieldInvalid(t,i);break}if(n(r,e)){this.setFieldInvalid(t,i);break}}break}default:{if("function"!=typeof i.validator)return console.error(`Validator for custom rule for [${t}] field should be a function. This field will be always invalid.`),void this.setFieldInvalid(t,i);const e=i.validator(o,this.getCompatibleFields());if("boolean"!=typeof e&&"function"!=typeof e&&console.error(`Validator return value for [${t}] field should be boolean or function. It will be cast to boolean.`),"function"==typeof e){if(!n){this.fields[t].asyncCheckPending=!1;const n=e();return ei(n)?n.then((e=>{e||this.setFieldInvalid(t,i)})).catch((()=>{this.setFieldInvalid(t,i)})):(console.error(`Validator function for custom rule for [${t}] field should return a Promise. This field will be always invalid.`),void this.setFieldInvalid(t,i))}this.fields[t].asyncCheckPending=!0}e||this.setFieldInvalid(t,i)}}var r}}isFormValid(){let t=!0;for(let e=0,i=Object.values(this.fields).length;e<i;++e){const i=Object.values(this.fields)[e];if(void 0===i.isValid){t=void 0;break}if(!1===i.isValid){t=!1;break}}for(let e=0,i=Object.values(this.groupFields).length;e<i;++e){const i=Object.values(this.groupFields)[e];if(void 0===i.isValid){t=void 0;break}if(!1===i.isValid){t=!1;break}}return t}validateField(t,e=!1){var i;const n=this.fields[t];n.isValid=!0;const s=[];return[...n.rules].reverse().forEach((i=>{const o=this.validateFieldRule(t,n.elem,i,e);ei(o)&&s.push(o)})),n.isValid&&this.setFieldValid(t,null==(i=n.config)?void 0:i.successMessage),Promise.allSettled(s).finally((()=>{var t;e&&(null==(t=this.onValidateCallback)||t.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}revalidateField(t){if("string"!=typeof t&&!ni(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);return e&&this.fields[e]?new Promise((t=>{this.validateField(e,!0).finally((()=>{this.clearFieldStyle(e),this.clearFieldLabel(e),this.renderFieldError(e,!0),t(!!this.fields[e].isValid)}))})):(console.error("Field not found. Check the field selector."),Promise.reject())}revalidateGroup(t){if("string"!=typeof t&&!ni(t))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);return e&&this.groupFields[e]?new Promise((t=>{this.validateGroup(e).finally((()=>{this.clearFieldLabel(e),this.renderGroupError(e,!0),t(!!this.groupFields[e].isValid)}))})):(console.error("Group not found. Check the group selector."),Promise.reject())}validateGroup(t,e=!1){const i=this.groupFields[t],n=[];return[...i.rules].reverse().forEach((e=>{const s=this.validateGroupRule(t,i.elems,e);ei(s)&&n.push(s)})),Promise.allSettled(n).finally((()=>{var t;e&&(null==(t=this.onValidateCallback)||t.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}focusInvalidField(){for(const t in this.fields){const e=this.fields[t];if(!e.isValid){setTimeout((()=>e.elem.focus()),0);break}}}afterSubmitValidation(t=!1){this.renderErrors(t),this.globalConfig.focusInvalidField&&this.focusInvalidField()}validate(t=!1){return new Promise((e=>{const i=[];Object.keys(this.fields).forEach((t=>{const e=this.validateField(t);ei(e)&&i.push(e)})),Object.keys(this.groupFields).forEach((t=>{const e=this.validateGroup(t);ei(e)&&i.push(e)})),Promise.allSettled(i).then((()=>{var n;this.afterSubmitValidation(t),null==(n=this.onValidateCallback)||n.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}),e(!!i.length)}))}))}revalidate(){return new Promise((t=>{this.validateHandler(void 0,!0).finally((()=>{this.globalConfig.focusInvalidField&&this.focusInvalidField(),t(this.isValid)}))}))}validateHandler(t,e=!1){return this.globalConfig.lockForm&&this.lockForm(),this.validate(e).finally((()=>{var e,i,n;this.globalConfig.lockForm&&this.unlockForm(),this.isValid?(null==(e=this.onSuccessCallback)||e.call(this,t),this.globalConfig.submitFormAutomatically&&(null==(i=null==t?void 0:t.currentTarget)||i.submit())):null==(n=this.onFailCallback)||n.call(this,this.getCompatibleFields(),this.groupFields)}))}setForm(t){this.form=t,this.form.setAttribute("novalidate","novalidate"),this.removeListener("submit",this.form,this.formSubmitHandler),this.addListener("submit",this.form,this.formSubmitHandler)}addListener(t,e,i){e.addEventListener(t,i),this.eventListeners.push({type:t,elem:e,func:i})}removeListener(t,e,i){e.removeEventListener(t,i),this.eventListeners=this.eventListeners.filter((i=>i.type!==t||i.elem!==e))}addField(t,e,i){if("string"!=typeof t&&!ni(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let n;if(n="string"==typeof t?this.form.querySelector(t):t,!n)throw Error("Field doesn't exist in the DOM! Please check the field selector.");if(!Array.isArray(e)||!e.length)throw Error("Rules argument should be an array and should contain at least 1 element.");e.forEach((t=>{if(!("rule"in t||"validator"in t||"plugin"in t))throw Error("Rules argument must contain at least one rule or validator property.");if(!(t.validator||t.plugin||t.rule&&Object.values(Xe).includes(t.rule)))throw Error(`Rule should be one of these types: ${Object.values(Xe).join(", ")}. Provided value: ${t.rule}`)}));const s=this.setKeyByFieldSelector(t);return this.fields[s]={elem:n,rules:e,isValid:void 0,touched:!1,config:i},this.setListeners(n),(this.isSubmitted||this.globalConfig.validateBeforeSubmitting)&&this.validateField(s),this}removeField(t){if("string"!=typeof t&&!ni(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);if(!e||!this.fields[e])return console.error("Field not found. Check the field selector."),this;const i=this.getListenerType(this.fields[e].elem.type);return this.removeListener(i,this.fields[e].elem,this.handlerChange),this.clearErrors(),delete this.fields[e],this}removeGroup(t){if("string"!=typeof t)throw Error("Group selector is not valid. Please specify a string selector.");const e=this.getKeyByFieldSelector(t);return e&&this.groupFields[e]?(this.groupFields[e].elems.forEach((t=>{const e=this.getListenerType(t.type);this.removeListener(e,t,this.handlerChange)})),this.clearErrors(),delete this.groupFields[e],this):(console.error("Group not found. Check the group selector."),this)}addRequiredGroup(t,e,i,n){if("string"!=typeof t&&!ni(t))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");let s;if(s="string"==typeof t?this.form.querySelector(t):t,!s)throw Error("Group selector not found! Please check the group selector.");const o=s.querySelectorAll("input"),r=Array.from(o).filter((t=>{const e=((t,e)=>{const i=[...e].reverse();for(let e=0,n=i.length;e<n;++e){const n=i[e];for(const e in t){const i=t[e];if(i.groupElem===n)return[e,i]}}return null})(this.groupFields,(t=>{let e=t;const i=[];for(;e;)i.unshift(e),e=e.parentNode;return i})(t));return!e||e[1].elems.find((e=>e!==t))})),a=this.setKeyByFieldSelector(t);return this.groupFields[a]={rules:[{rule:Ze.Required,errorMessage:e,successMessage:n}],groupElem:s,elems:r,touched:!1,isValid:void 0,config:i},o.forEach((t=>{this.setListeners(t)})),this}getListenerType(t){switch(t){case"checkbox":case"select-one":case"file":case"radio":return"change";default:return"input"}}setListeners(t){const e=this.getListenerType(t.type);this.removeListener(e,t,this.handlerChange),this.addListener(e,t,this.handlerChange)}clearFieldLabel(t){var e,i;null==(e=this.errorLabels[t])||e.remove(),null==(i=this.successLabels[t])||i.remove()}clearFieldStyle(t){var e,i,n,s;const o=this.fields[t],r=(null==(e=o.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(r).forEach((t=>{o.elem.style[t]=""}));const a=(null==(i=o.config)?void 0:i.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(a).forEach((t=>{o.elem.style[t]=""})),o.elem.classList.remove(...ii((null==(n=o.config)?void 0:n.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...ii((null==(s=o.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}clearErrors(){var t,e;Object.keys(this.errorLabels).forEach((t=>this.errorLabels[t].remove())),Object.keys(this.successLabels).forEach((t=>this.successLabels[t].remove()));for(const t in this.fields)this.clearFieldStyle(t);for(const i in this.groupFields){const n=this.groupFields[i],s=(null==(t=n.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(s).forEach((t=>{n.elems.forEach((e=>{var i;e.style[t]="",e.classList.remove(...ii((null==(i=n.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const o=(null==(e=n.config)?void 0:e.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(o).forEach((t=>{n.elems.forEach((e=>{var i;e.style[t]="",e.classList.remove(...ii((null==(i=n.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}))}))}this.tooltips=[]}isTooltip(){return!!this.globalConfig.tooltip}lockForm(){const t=this.form.querySelectorAll("input, textarea, button, select");for(let e=0,i=t.length;e<i;++e)t[e].setAttribute("data-just-validate-fallback-disabled",t[e].disabled?"true":"false"),t[e].setAttribute("disabled","disabled"),t[e].style.pointerEvents="none",t[e].style.webkitFilter="grayscale(100%)",t[e].style.filter="grayscale(100%)"}unlockForm(){const t=this.form.querySelectorAll("input, textarea, button, select");for(let e=0,i=t.length;e<i;++e)"true"!==t[e].getAttribute("data-just-validate-fallback-disabled")&&t[e].removeAttribute("disabled"),t[e].style.pointerEvents="",t[e].style.webkitFilter="",t[e].style.filter=""}renderTooltip(t,e,i){var n;const{top:s,left:o,width:r,height:a}=t.getBoundingClientRect(),l=e.getBoundingClientRect(),c=i||(null==(n=this.globalConfig.tooltip)?void 0:n.position);switch(c){case"left":e.style.top=s+a/2-l.height/2+"px",e.style.left=o-l.width-5+"px";break;case"top":e.style.top=s-l.height-5+"px",e.style.left=o+r/2-l.width/2+"px";break;case"right":e.style.top=s+a/2-l.height/2+"px",e.style.left=`${o+r+5}px`;break;case"bottom":e.style.top=`${s+a+5}px`,e.style.left=o+r/2-l.width/2+"px"}e.dataset.direction=c;return{refresh:()=>{this.renderTooltip(t,e,i)}}}createErrorLabelElem(t,e,i){const n=document.createElement("div");n.innerHTML=e;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(...ii((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-${t}`),this.errorLabels[t]=n,n}createSuccessLabelElem(t,e,i){if(void 0===e)return null;const n=document.createElement("div");n.innerHTML=e;const s=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(n.style,s),n.classList.add(...ii((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(n.dataset.testId=`success-label-${t}`),this.successLabels[t]=n,n}renderErrorsContainer(t,e){const i=e||this.globalConfig.errorsContainer;if("string"==typeof i){const e=this.form.querySelector(i);if(e)return e.appendChild(t),!0;console.error(`Error container with ${i} selector not found. Errors will be rendered as usual`)}return i instanceof Element?(i.appendChild(t),!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(t,e,i,n){if(!n){if(this.renderErrorsContainer(e,i))return}t.appendChild(e)}renderFieldLabel(t,e,i,n){var s,o,r,a,l,c,u;if(!n){if(this.renderErrorsContainer(e,i))return}if("checkbox"===t.type||"radio"===t.type){const i=document.querySelector(`label[for="${t.getAttribute("id")}"]`);"label"===(null==(o=null==(s=t.parentElement)?void 0:s.tagName)?void 0:o.toLowerCase())?null==(a=null==(r=t.parentElement)?void 0:r.parentElement)||a.appendChild(e):i?null==(l=i.parentElement)||l.appendChild(e):null==(c=t.parentElement)||c.appendChild(e)}else null==(u=t.parentElement)||u.appendChild(e)}showLabels(t,e){Object.keys(t).forEach(((i,n)=>{const s=t[i],o=this.getKeyByFieldSelector(i);if(!o||!this.fields[o])return void console.error("Field not found. Check the field selector.");const r=this.fields[o];r.isValid=!e,this.clearFieldStyle(o),this.clearFieldLabel(o),this.renderFieldError(o,!1,s),0===n&&this.globalConfig.focusInvalidField&&setTimeout((()=>r.elem.focus()),0)}))}showErrors(t){if("object"!=typeof t)throw Error("[showErrors]: Errors should be an object with key: value format");this.showLabels(t,!0)}showSuccessLabels(t){if("object"!=typeof t)throw Error("[showSuccessLabels]: Labels should be an object with key: value format");this.showLabels(t,!1)}renderFieldError(t,e=!1,i){var n,s,o,r,a,l;const c=this.fields[t];if(!1===c.isValid&&(this.isValid=!1),void 0===c.isValid||!e&&!this.isSubmitted&&!c.touched&&void 0===i)return;if(c.isValid){if(!c.asyncCheckPending){const e=this.createSuccessLabelElem(t,void 0!==i?i:c.successMessage,c.config);e&&this.renderFieldLabel(c.elem,e,null==(n=c.config)?void 0:n.errorsContainer,!0),c.elem.classList.add(...ii((null==(s=c.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}c.elem.classList.add(...ii((null==(o=c.config)?void 0:o.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const u=this.createErrorLabelElem(t,void 0!==i?i:c.errorMessage,c.config);this.renderFieldLabel(c.elem,u,null==(r=c.config)?void 0:r.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(c.elem,u,null==(l=null==(a=c.config)?void 0:a.tooltip)?void 0:l.position))}renderGroupError(t,e=!0){var i,n,s,o;const r=this.groupFields[t];if(!1===r.isValid&&(this.isValid=!1),void 0===r.isValid||!e&&!this.isSubmitted&&!r.touched)return;if(r.isValid){r.elems.forEach((t=>{var e,i;Object.assign(t.style,(null==(e=r.config)?void 0:e.successFieldStyle)||this.globalConfig.successFieldStyle),t.classList.add(...ii((null==(i=r.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}));const e=this.createSuccessLabelElem(t,r.successMessage,r.config);return void(e&&this.renderGroupLabel(r.groupElem,e,null==(i=r.config)?void 0:i.errorsContainer,!0))}this.isValid=!1,r.elems.forEach((t=>{var e,i;Object.assign(t.style,(null==(e=r.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle),t.classList.add(...ii((null==(i=r.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}));const a=this.createErrorLabelElem(t,r.errorMessage,r.config);this.renderGroupLabel(r.groupElem,a,null==(n=r.config)?void 0:n.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(r.groupElem,a,null==(o=null==(s=r.config)?void 0:s.tooltip)?void 0:o.position))}renderErrors(t=!1){if(this.isSubmitted||t||this.globalConfig.validateBeforeSubmitting){this.clearErrors(),this.isValid=!0;for(const t in this.groupFields)this.renderGroupError(t);for(const t in this.fields)this.renderFieldError(t)}}destroy(){this.eventListeners.forEach((t=>{this.removeListener(t.type,t.elem,t.func)})),Object.keys(this.customStyleTags).forEach((t=>{this.customStyleTags[t].remove()})),this.clearErrors(),this.globalConfig.lockForm&&this.unlockForm()}refresh(){this.destroy(),this.form?(this.initialize(this.form,this.globalConfig),Object.keys(this.fields).forEach((t=>{const e=this.getFieldSelectorByKey(t);e&&this.addField(e,[...this.fields[t].rules],this.fields[t].config)}))):console.error("Cannot initialize the library! Form is not defined")}setCurrentLocale(t){"string"==typeof t||void 0===t?(this.currentLocale=t,this.isSubmitted&&this.validate()):console.error("Current locale should be a string")}onSuccess(t){return this.onSuccessCallback=t,this}onFail(t){return this.onFailCallback=t,this}onValidate(t){return this.onValidateCallback=t,this}}class ri{constructor(t,e,i,n,s){this.targetNode=t,this.classToWatch=e,this.classAddedCallback=i,this.classRemovedCallback=n,this.observer=null,this.lastClassState=t.classList.contains(this.classToWatch),this.ignoreToggle=!!s,this.init()}init(){this.observer=new MutationObserver((t=>this.mutationCallback(t))),this.observe()}observe(){this.observer.observe(this.targetNode,{attributes:!0})}disconnect(){this.observer.disconnect()}mutationCallback(t){for(let e of t)if("attributes"===e.type&&"class"===e.attributeName){let t=e.target.classList.contains(this.classToWatch);(this.ignoreToggle||this.lastClassState!==t)&&(this.lastClassState=t,t?"function"==typeof this.classAddedCallback&&this.classAddedCallback():"function"==typeof this.classRemovedCallback&&this.classRemovedCallback())}}}class ai{constructor(t,e,i,n){this.targetNode=t,this.contentSelector=e,this.contentAddedCallback=i,this.contentRemovedCallback=n,this.observer=null,this.init()}init(){this.observer=new MutationObserver((t=>this.mutationCallback(t))),this.observe()}observe(){this.observer.observe(this.targetNode,{childList:!0,subtree:!0})}disconnect(){this.observer.disconnect()}mutationCallback(t){for(let e of t)"childList"===e.type&&(e.addedNodes.forEach((t=>{this._callbackExec(t)})),e.removedNodes.forEach((t=>{this._callbackExec(t,!0)})))}_callbackExec(t,e){const i=t.matches&&t.matches(this.contentSelector)?[t]:t.querySelectorAll?t.querySelectorAll(this.contentSelector):null,n=e&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&n&&i.forEach((t=>n(t)))}}const li={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},ci="justvalidatebi";class ui extends K{constructor(t){super(t),this._label=new st(t),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&z.on(this._element,"change.bs.input",(()=>{this._handleFileDescription()}))}_handleFileDescription(){const t=[];let e="";Array.from(this._element.files).forEach((e=>{const i=Math.round(parseInt(e.size,10)/1024);t.push(e.name+" ("+i+"kb)")})),this._element.files.length>1&&(e=this._element.files.length+" file da caricare: ");const i=Y.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=e+t.join("; "))}}const hi=["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(t){(t=>{const e=!!hi.find((e=>t.matches(e))),i=!("number"!==t.getAttribute("type")||!t.parentNode.querySelector('button[class^="input-number-"]'));e||i||ui.getOrCreateInstance(t)})(st.getInputFromLabel(t)||t)}))}));var di="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fi(t,e){return t(e={exports:{}},e.exports),e.exports}var pi=fi((function(t,e){var i;globalThis,i=()=>(()=>{var t={8952:(t,e,i)=>{var n=i(4328),s=i(36),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(s(t)+" is not a function")}},6100:(t,e,i)=>{var n=i(7e3),s=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new s("Incorrect invocation")}},3951:(t,e,i)=>{var n=i(1632),s=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(s(t)+" is not an object")}},2504:(t,e,i)=>{var n=i(4096),s=i(2495),o=i(3556),r=function(t){return function(e,i,r){var a=n(e),l=o(a);if(0===l)return!t&&-1;var c,u=s(r,l);if(t&&i!=i){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===i)return t||u||0;return!t&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},6728:(t,e,i)=>{var n=i(3476),s=i(1432),o=TypeError,r=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(s(t)&&!r(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8696:(t,e,i)=>{var n=i(3951),s=i(3112);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){s(t,"throw",e)}}},1888:(t,e,i)=>{var n=i(1664),s=n({}.toString),o=n("".slice);t.exports=function(t){return o(s(t),8,-1)}},9968:(t,e,i)=>{var n=i(5152),s=i(9252),o=i(9444),r=i(8352);t.exports=function(t,e,i){for(var a=s(e),l=r.f,c=o.f,u=0;u<a.length;u++){var h=a[u];n(t,h)||i&&n(i,h)||l(t,h,c(e,h))}}},2272:(t,e,i)=>{var n=i(9957);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},3336:t=>{t.exports=function(t,e){return{value:t,done:e}}},3440:(t,e,i)=>{var n=i(3476),s=i(8352),o=i(9728);t.exports=n?function(t,e,i){return s.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},9728:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},92:(t,e,i)=>{var n=i(3476),s=i(8352),o=i(9728);t.exports=function(t,e,i){n?s.f(t,e,o(0,i)):t[e]=i}},2544:(t,e,i)=>{var n=i(5312),s=i(8352);t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),s.f(t,e,i)}},6076:(t,e,i)=>{var n=i(4328),s=i(8352),o=i(5312),r=i(4636);t.exports=function(t,e,i,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(n(i)&&o(i,c,a),a.global)l?t[e]=i:r(e,i);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:s.f(t,e,{value:i,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},4036:(t,e,i)=>{var n=i(6076);t.exports=function(t,e,i){for(var s in e)n(t,s,e[s],i);return t}},4636:(t,e,i)=>{var n=i(6420),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},3476:(t,e,i)=>{var n=i(9957);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8168:(t,e,i)=>{var n=i(6420),s=i(1632),o=n.document,r=s(o)&&s(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},4316:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},6064:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},8504:(t,e,i)=>{var n,s,o=i(6420),r=i(6064),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&r&&(!(n=r.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=r.match(/Chrome\/(\d+)/))&&(s=+n[1]),t.exports=s},8256:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9160:(t,e,i)=>{var n=i(6420),s=i(9444).f,o=i(3440),r=i(6076),a=i(4636),l=i(9968),c=i(6704);t.exports=function(t,e){var i,u,h,d,f,p=t.target,m=t.global,g=t.stat;if(i=m?n:g?n[p]||a(p,{}):n[p]&&n[p].prototype)for(u in e){if(d=e[u],h=t.dontCallGetSet?(f=s(i,u))&&f.value:i[u],!c(m?u:p+(g?".":"#")+u,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),r(i,u,d,t)}}},9957:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7332:(t,e,i)=>{var n=i(9957);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8448:(t,e,i)=>{var n=i(7332),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},6208:(t,e,i)=>{var n=i(3476),s=i(5152),o=Function.prototype,r=n&&Object.getOwnPropertyDescriptor,a=s(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&r(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},1664:(t,e,i)=>{var n=i(7332),s=Function.prototype,o=s.call,r=n&&s.bind.bind(o,o);t.exports=n?r:function(t){return function(){return o.apply(t,arguments)}}},5232:(t,e,i)=>{var n=i(6420),s=i(4328);t.exports=function(t,e){return arguments.length<2?(i=n[t],s(i)?i:void 0):n[t]&&n[t][e];var i}},6752:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},4504:(t,e,i)=>{var n=i(8952),s=i(9760);t.exports=function(t,e){var i=t[e];return s(i)?void 0:n(i)}},6420:function(t,e,i){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5152:(t,e,i)=>{var n=i(1664),s=i(4356),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(s(t),e)}},2560:t=>{t.exports={}},4168:(t,e,i)=>{var n=i(5232);t.exports=n("document","documentElement")},9888:(t,e,i)=>{var n=i(3476),s=i(9957),o=i(8168);t.exports=!n&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},5712:(t,e,i)=>{var n=i(1664),s=i(9957),o=i(1888),r=Object,a=n("".split);t.exports=s((function(){return!r("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):r(t)}:r},9112:(t,e,i)=>{var n=i(1664),s=i(4328),o=i(3976),r=n(Function.toString);s(o.inspectSource)||(o.inspectSource=function(t){return r(t)}),t.exports=o.inspectSource},9104:(t,e,i)=>{var n,s,o,r=i(4288),a=i(6420),l=i(1632),c=i(3440),u=i(5152),h=i(3976),d=i(6504),f=i(2560),p="Object already initialized",m=a.TypeError,g=a.WeakMap;if(r||h.state){var _=h.state||(h.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,n=function(t,e){if(_.has(t))throw new m(p);return e.facade=t,_.set(t,e),e},s=function(t){return _.get(t)||{}},o=function(t){return _.has(t)}}else{var b=d("state");f[b]=!0,n=function(t,e){if(u(t,b))throw new m(p);return e.facade=t,c(t,b,e),e},s=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:n,get:s,has:o,enforce:function(t){return o(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return i}}}},1432:(t,e,i)=>{var n=i(1888);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4328:t=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},6704:(t,e,i)=>{var n=i(9957),s=i(4328),o=/#|\.prototype\./,r=function(t,e){var i=l[a(t)];return i===u||i!==c&&(s(e)?n(e):!!e)},a=r.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=r.data={},c=r.NATIVE="N",u=r.POLYFILL="P";t.exports=r},9760:t=>{t.exports=function(t){return null==t}},1632:(t,e,i)=>{var n=i(4328);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},7048:t=>{t.exports=!1},7728:(t,e,i)=>{var n=i(5232),s=i(4328),o=i(7e3),r=i(6536),a=Object;t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&o(e.prototype,a(t))}},3112:(t,e,i)=>{var n=i(8448),s=i(3951),o=i(4504);t.exports=function(t,e,i){var r,a;s(t);try{if(!(r=o(t,"return"))){if("throw"===e)throw i;return i}r=n(r,t)}catch(t){a=!0,r=t}if("throw"===e)throw i;if(a)throw r;return s(r),i}},9724:(t,e,i)=>{var n=i(8448),s=i(9368),o=i(3440),r=i(4036),a=i(9972),l=i(9104),c=i(4504),u=i(336).IteratorPrototype,h=i(3336),d=i(3112),f=a("toStringTag"),p="IteratorHelper",m="WrapForValidIterator",g=l.set,_=function(t){var e=l.getterFor(t?m:p);return r(s(u),{next:function(){var i=e(this);if(t)return i.nextHandler();try{var n=i.done?void 0:i.nextHandler();return h(n,i.done)}catch(t){throw i.done=!0,t}},return:function(){var i=e(this),s=i.iterator;if(i.done=!0,t){var o=c(s,"return");return o?n(o,s):h(void 0,!0)}if(i.inner)try{d(i.inner.iterator,"normal")}catch(t){return d(s,"throw",t)}return d(s,"normal"),h(void 0,!0)}})},b=_(!0),v=_(!1);o(v,f,"Iterator Helper"),t.exports=function(t,e){var i=function(i,n){n?(n.iterator=i.iterator,n.next=i.next):n=i,n.type=e?m:p,n.nextHandler=t,n.counter=0,n.done=!1,g(this,n)};return i.prototype=e?b:v,i}},5792:(t,e,i)=>{var n=i(8448),s=i(8952),o=i(3951),r=i(6752),a=i(9724),l=i(8696),c=a((function(){var t=this.iterator,e=o(n(this.next,t));if(!(this.done=!!e.done))return l(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return o(this),s(t),new c(r(this),{mapper:t})}},336:(t,e,i)=>{var n,s,o,r=i(9957),a=i(4328),l=i(1632),c=i(9368),u=i(7796),h=i(6076),d=i(9972),f=i(7048),p=d("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(s=u(u(o)))!==Object.prototype&&(n=s):m=!0),!l(n)||r((function(){var t={};return n[p].call(t)!==t}))?n={}:f&&(n=c(n)),a(n[p])||h(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},3556:(t,e,i)=>{var n=i(7584);t.exports=function(t){return n(t.length)}},5312:(t,e,i)=>{var n=i(1664),s=i(9957),o=i(4328),r=i(5152),a=i(3476),l=i(6208).CONFIGURABLE,c=i(9112),u=i(9104),h=u.enforce,d=u.get,f=String,p=Object.defineProperty,m=n("".slice),g=n("".replace),_=n([].join),b=a&&!s((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),y=t.exports=function(t,e,i){"Symbol("===m(f(e),0,7)&&(e="["+g(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!r(t,"name")||l&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&i&&r(i,"arity")&&t.length!==i.arity&&p(t,"length",{value:i.arity});try{i&&r(i,"constructor")&&i.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=h(t);return r(n,"source")||(n.source=_(v,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&d(this).source||c(this)}),"toString")},1748:t=>{var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?i:e)(n)}},9368:(t,e,i)=>{var n,s=i(3951),o=i(2056),r=i(8256),a=i(2560),l=i(4168),c=i(8168),u=i(6504),h="prototype",d="script",f=u("IE_PROTO"),p=function(){},m=function(t){return"<"+d+">"+t+"</"+d+">"},g=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;_="undefined"!=typeof document?document.domain&&n?g(n):(e=c("iframe"),i="java"+d+":",e.style.display="none",l.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):g(n);for(var s=r.length;s--;)delete _[h][r[s]];return _()};a[f]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(p[h]=s(t),i=new p,p[h]=null,i[f]=t):i=_(),void 0===e?i:o.f(i,e)}},2056:(t,e,i)=>{var n=i(3476),s=i(1576),o=i(8352),r=i(3951),a=i(4096),l=i(1531);e.f=n&&!s?Object.defineProperties:function(t,e){r(t);for(var i,n=a(e),s=l(e),c=s.length,u=0;c>u;)o.f(t,i=s[u++],n[i]);return t}},8352:(t,e,i)=>{var n=i(3476),s=i(9888),o=i(1576),r=i(3951),a=i(88),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";e.f=n?o?function(t,e,i){if(r(t),e=a(e),r(i),"function"==typeof t&&"prototype"===e&&"value"in i&&f in i&&!i[f]){var n=u(t,e);n&&n[f]&&(t[e]=i.value,i={configurable:d in i?i[d]:n[d],enumerable:h in i?i[h]:n[h],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(r(t),e=a(e),r(i),s)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},9444:(t,e,i)=>{var n=i(3476),s=i(8448),o=i(8912),r=i(9728),a=i(4096),l=i(88),c=i(5152),u=i(9888),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=l(e),u)try{return h(t,e)}catch(t){}if(c(t,e))return r(!s(o.f,t,e),t[e])}},5048:(t,e,i)=>{var n=i(9008),s=i(8256).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},9392:(t,e)=>{e.f=Object.getOwnPropertySymbols},7796:(t,e,i)=>{var n=i(5152),s=i(4328),o=i(4356),r=i(6504),a=i(2272),l=r("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=o(t);if(n(e,l))return e[l];var i=e.constructor;return s(i)&&e instanceof i?i.prototype:e instanceof c?u:null}},7e3:(t,e,i)=>{var n=i(1664);t.exports=n({}.isPrototypeOf)},9008:(t,e,i)=>{var n=i(1664),s=i(5152),o=i(4096),r=i(2504).indexOf,a=i(2560),l=n([].push);t.exports=function(t,e){var i,n=o(t),c=0,u=[];for(i in n)!s(a,i)&&s(n,i)&&l(u,i);for(;e.length>c;)s(n,i=e[c++])&&(~r(u,i)||l(u,i));return u}},1531:(t,e,i)=>{var n=i(9008),s=i(8256);t.exports=Object.keys||function(t){return n(t,s)}},8912:(t,e)=>{var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!i.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},2104:(t,e,i)=>{var n=i(8448),s=i(4328),o=i(1632),r=TypeError;t.exports=function(t,e){var i,a;if("string"===e&&s(i=t.toString)&&!o(a=n(i,t)))return a;if(s(i=t.valueOf)&&!o(a=n(i,t)))return a;if("string"!==e&&s(i=t.toString)&&!o(a=n(i,t)))return a;throw new r("Can't convert object to primitive value")}},9252:(t,e,i)=>{var n=i(5232),s=i(1664),o=i(5048),r=i(9392),a=i(3951),l=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),i=r.f;return i?l(e,i(t)):e}},5436:(t,e,i)=>{var n=i(9760),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},6504:(t,e,i)=>{var n=i(4696),s=i(7776),o=n("keys");t.exports=function(t){return o[t]||(o[t]=s(t))}},3976:(t,e,i)=>{var n=i(7048),s=i(6420),o=i(4636),r="__core-js_shared__",a=t.exports=s[r]||o(r,{});(a.versions||(a.versions=[])).push({version:"3.36.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},4696:(t,e,i)=>{var n=i(3976);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},772:(t,e,i)=>{var n=i(8504),s=i(9957),o=i(6420).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2495:(t,e,i)=>{var n=i(6180),s=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?s(i+e,0):o(i,e)}},4096:(t,e,i)=>{var n=i(5712),s=i(5436);t.exports=function(t){return n(s(t))}},6180:(t,e,i)=>{var n=i(1748);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},7584:(t,e,i)=>{var n=i(6180),s=Math.min;t.exports=function(t){var e=n(t);return e>0?s(e,9007199254740991):0}},4356:(t,e,i)=>{var n=i(5436),s=Object;t.exports=function(t){return s(n(t))}},7024:(t,e,i)=>{var n=i(8448),s=i(1632),o=i(7728),r=i(4504),a=i(2104),l=i(9972),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!s(t)||o(t))return t;var i,l=r(t,u);if(l){if(void 0===e&&(e="default"),i=n(l,t,e),!s(i)||o(i))return i;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},88:(t,e,i)=>{var n=i(7024),s=i(7728);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},36:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},7776:(t,e,i)=>{var n=i(1664),s=0,o=Math.random(),r=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++s+o,36)}},6536:(t,e,i)=>{var n=i(772);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1576:(t,e,i)=>{var n=i(3476),s=i(9957);t.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4288:(t,e,i)=>{var n=i(6420),s=i(4328),o=n.WeakMap;t.exports=s(o)&&/native code/.test(String(o))},9972:(t,e,i)=>{var n=i(6420),s=i(4696),o=i(5152),r=i(7776),a=i(772),l=i(6536),c=n.Symbol,u=s("wks"),h=l?c.for||c:c&&c.withoutSetter||r;t.exports=function(t){return o(u,t)||(u[t]=a&&o(c,t)?c[t]:h("Symbol."+t)),u[t]}},4728:(t,e,i)=>{var n=i(9160),s=i(4356),o=i(3556),r=i(6728),a=i(4316);n({target:"Array",proto:!0,arity:1,forced:i(9957)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=s(this),i=o(e),n=arguments.length;a(i+n);for(var l=0;l<n;l++)e[i]=arguments[l],i++;return r(e,i),i}})},3536:(t,e,i)=>{var n=i(9160),s=i(6420),o=i(6100),r=i(3951),a=i(4328),l=i(7796),c=i(2544),u=i(92),h=i(9957),d=i(5152),f=i(9972),p=i(336).IteratorPrototype,m=i(3476),g=i(7048),_="constructor",b="Iterator",v=f("toStringTag"),y=TypeError,w=s[b],E=g||!a(w)||w.prototype!==p||!h((function(){w({})})),C=function(){if(o(this,p),l(this)===p)throw new y("Abstract class Iterator not directly constructable")},S=function(t,e){m?c(p,t,{configurable:!0,get:function(){return e},set:function(e){if(r(this),this===p)throw new y("You can't redefine this property");d(this,t)?this[t]=e:u(this,t,e)}}):p[t]=e};d(p,v)||S(v,b),!E&&d(p,_)&&p[_]!==Object||S(_,C),C.prototype=p,n({global:!0,constructor:!0,forced:E},{Iterator:C})},2144:(t,e,i)=>{var n=i(9160),s=i(8448),o=i(8952),r=i(3951),a=i(6752),l=i(9724),c=i(8696),u=i(7048),h=l((function(){for(var t,e,i=this.iterator,n=this.predicate,o=this.next;;){if(t=r(s(o,i)),this.done=!!t.done)return;if(e=t.value,c(i,n,[e,this.counter++],!0))return e}}));n({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(t){return r(this),o(t),new h(a(this),{predicate:t})}})},9080:(t,e,i)=>{var n=i(9160),s=i(5792);n({target:"Iterator",proto:!0,real:!0,forced:i(7048)},{map:s})}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,i),o.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{i.d(n,{default:()=>q}),i(3536),i(2144),i(9080);var t=function(){},e={},s=[],o=[];function r(i,n){var r,a,l,c,u=o;for(c=arguments.length;c-- >2;)s.push(arguments[c]);for(n&&null!=n.children&&(s.length||s.push(n.children),delete n.children);s.length;)if((a=s.pop())&&void 0!==a.pop)for(c=a.length;c--;)s.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof i)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&r?u[u.length-1]+=a:u===o?u=[a]:u.push(a),r=l;var h=new t;return h.nodeName=i,h.children=u,h.attributes=null==n?void 0:n,h.key=null==n?void 0:n.key,void 0!==e.vnode&&e.vnode(h),h}function a(t,e){for(var i in e)t[i]=e[i];return t}function l(t,e){t&&("function"==typeof t?t(e):t.current=e)}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function d(t){!t._dirty&&(t._dirty=!0)&&1==h.push(t)&&(e.debounceRendering||c)(f)}function f(){for(var t;t=h.pop();)t._dirty&&M(t)}function p(t,e,i){return"string"==typeof e||"number"==typeof e?void 0!==t.splitText:"string"==typeof e.nodeName?!t._componentConstructor&&m(t,e.nodeName):i||t._componentConstructor===e.nodeName}function m(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function g(t){var e=a({},t.attributes);e.children=t.children;var i=t.nodeName.defaultProps;if(void 0!==i)for(var n in i)void 0===e[n]&&(e[n]=i[n]);return e}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function b(t,e,i,n,s){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)l(i,null),l(n,t);else if("class"!==e||s)if("style"===e){if(n&&"string"!=typeof n&&"string"!=typeof i||(t.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof i)for(var o in i)o in n||(t.style[o]="");for(var o in n)t.style[o]="number"==typeof n[o]&&!1===u.test(o)?n[o]+"px":n[o]}}else if("dangerouslySetInnerHTML"===e)n&&(t.innerHTML=n.__html||"");else if("o"==e[0]&&"n"==e[1]){var r=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),n?i||t.addEventListener(e,v,r):t.removeEventListener(e,v,r),(t._listeners||(t._listeners={}))[e]=n}else if("list"!==e&&"type"!==e&&!s&&e in t){try{t[e]=null==n?"":n}catch(t){}null!=n&&!1!==n||"spellcheck"==e||t.removeAttribute(e)}else{var a=s&&e!==(e=e.replace(/^xlink:?/,""));null==n||!1===n?a?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof n&&(a?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),n):t.setAttribute(e,n))}else t.className=n||""}function v(t){return this._listeners[t.type](e.event&&e.event(t)||t)}var y=[],w=0,E=!1,C=!1;function S(){for(var t;t=y.shift();)e.afterMount&&e.afterMount(t),t.componentDidMount&&t.componentDidMount()}function k(t,e,i,n,s,o){w++||(E=null!=s&&void 0!==s.ownerSVGElement,C=null!=t&&!("__preactattr_"in t));var r=x(t,e,i,n,o);return s&&r.parentNode!==s&&s.appendChild(r),--w||(C=!1,o||S()),r}function x(t,e,i,n,s){var o=t,r=E;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||s)?t.nodeValue!=e&&(t.nodeValue=e):(o=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(o,t),T(t,!0))),o.__preactattr_=!0,o;var a,l,c=e.nodeName;if("function"==typeof c)return function(t,e,i,n){for(var s=t&&t._component,o=s,r=t,a=s&&t._componentConstructor===e.nodeName,l=a,c=g(e);s&&!l&&(s=s._parentComponent);)l=s.constructor===e.nodeName;return s&&l&&(!n||s._component)?(P(s,c,3,i,n),t=s.base):(o&&!a&&(F(o),t=r=null),s=L(e.nodeName,c,i),t&&!s.nextBase&&(s.nextBase=t,r=null),P(s,c,1,i,n),t=s.base,r&&t!==r&&(r._component=null,T(r,!1))),t}(t,e,i,n);if(E="svg"===c||"foreignObject"!==c&&E,c=String(c),(!t||!m(t,c))&&(a=c,(l=E?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,o=l,t)){for(;t.firstChild;)o.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(o,t),T(t,!0)}var u=o.firstChild,h=o.__preactattr_,d=e.children;if(null==h){h=o.__preactattr_={};for(var f=o.attributes,v=f.length;v--;)h[f[v].name]=f[v].value}return!C&&d&&1===d.length&&"string"==typeof d[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=d[0]&&(u.nodeValue=d[0]):(d&&d.length||null!=u)&&function(t,e,i,n,s){var o,r,a,l,c,u=t.childNodes,h=[],d={},f=0,m=0,g=u.length,b=0,v=e?e.length:0;if(0!==g)for(var y=0;y<g;y++){var w=u[y],E=w.__preactattr_;null!=(C=v&&E?w._component?w._component.__key:E.key:null)?(f++,d[C]=w):(E||(void 0!==w.splitText?!s||w.nodeValue.trim():s))&&(h[b++]=w)}if(0!==v)for(y=0;y<v;y++){var C;if(c=null,null!=(C=(l=e[y]).key))f&&void 0!==d[C]&&(c=d[C],d[C]=void 0,f--);else if(m<b)for(o=m;o<b;o++)if(void 0!==h[o]&&p(r=h[o],l,s)){c=r,h[o]=void 0,o===b-1&&b--,o===m&&m++;break}c=x(c,l,i,n),a=u[y],c&&c!==t&&c!==a&&(null==a?t.appendChild(c):c===a.nextSibling?_(a):t.insertBefore(c,a))}if(f)for(var y in d)void 0!==d[y]&&T(d[y],!1);for(;m<=b;)void 0!==(c=h[b--])&&T(c,!1)}(o,d,i,n,C||null!=h.dangerouslySetInnerHTML),function(t,e,i){var n;for(n in i)e&&null!=e[n]||null==i[n]||b(t,n,i[n],i[n]=void 0,E);for(n in e)"children"===n||"innerHTML"===n||n in i&&e[n]===("value"===n||"checked"===n?t[n]:i[n])||b(t,n,i[n],i[n]=e[n],E)}(o,e.attributes,h),E=r,o}function T(t,e){var i=t._component;i?F(i):(null!=t.__preactattr_&&l(t.__preactattr_.ref,null),!1!==e&&null!=t.__preactattr_||_(t),A(t))}function A(t){for(t=t.lastChild;t;){var e=t.previousSibling;T(t,!0),t=e}}var O=[];function L(t,e,i){var n,s=O.length;for(t.prototype&&t.prototype.render?(n=new t(e,i),$.call(n,e,i)):((n=new $(e,i)).constructor=t,n.render=I);s--;)if(O[s].constructor===t)return n.nextBase=O[s].nextBase,O.splice(s,1),n;return n}function I(t,e,i){return this.constructor(t,i)}function P(t,i,n,s,o){t._disable||(t._disable=!0,t.__ref=i.ref,t.__key=i.key,delete i.ref,delete i.key,void 0===t.constructor.getDerivedStateFromProps&&(!t.base||o?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(i,s)),s&&s!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=s),t.prevProps||(t.prevProps=t.props),t.props=i,t._disable=!1,0!==n&&(1!==n&&!1===e.syncComponentUpdates&&t.base?d(t):M(t,1,o)),l(t.__ref,t))}function M(t,i,n,s){if(!t._disable){var o,r,l,c=t.props,u=t.state,h=t.context,d=t.prevProps||c,f=t.prevState||u,p=t.prevContext||h,m=t.base,_=t.nextBase,b=m||_,v=t._component,E=!1,C=p;if(t.constructor.getDerivedStateFromProps&&(u=a(a({},u),t.constructor.getDerivedStateFromProps(c,u)),t.state=u),m&&(t.props=d,t.state=f,t.context=p,2!==i&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(c,u,h)?E=!0:t.componentWillUpdate&&t.componentWillUpdate(c,u,h),t.props=c,t.state=u,t.context=h),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!E){o=t.render(c,u,h),t.getChildContext&&(h=a(a({},h),t.getChildContext())),m&&t.getSnapshotBeforeUpdate&&(C=t.getSnapshotBeforeUpdate(d,f));var x,A,O=o&&o.nodeName;if("function"==typeof O){var I=g(o);(r=v)&&r.constructor===O&&I.key==r.__key?P(r,I,1,h,!1):(x=r,t._component=r=L(O,I,h),r.nextBase=r.nextBase||_,r._parentComponent=t,P(r,I,0,h,!1),M(r,1,n,!0)),A=r.base}else l=b,(x=v)&&(l=t._component=null),(b||1===i)&&(l&&(l._component=null),A=k(l,o,h,n||!m,b&&b.parentNode,!0));if(b&&A!==b&&r!==v){var $=b.parentNode;$&&A!==$&&($.replaceChild(A,b),x||(b._component=null,T(b,!1)))}if(x&&F(x),t.base=A,A&&!s){for(var j=t,N=t;N=N._parentComponent;)(j=N).base=A;A._component=j,A._componentConstructor=j.constructor}}for(!m||n?y.push(t):E||(t.componentDidUpdate&&t.componentDidUpdate(d,f,C),e.afterUpdate&&e.afterUpdate(t));t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);w||s||S()}}function F(t){e.beforeUnmount&&e.beforeUnmount(t);var i=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var n=t._component;n?F(n):i&&(null!=i.__preactattr_&&l(i.__preactattr_.ref,null),t.nextBase=i,_(i),O.push(t),A(i)),l(t.__ref,null)}function $(t,e){this._dirty=!0,this.context=e,this.props=t,this.state=this.state||{},this._renderCallbacks=[]}a($.prototype,{setState:function(t,e){this.prevState||(this.prevState=this.state),this.state=a(a({},this.state),"function"==typeof t?t(this.state,this.props):t),e&&this._renderCallbacks.push(e),d(this)},forceUpdate:function(t){t&&this._renderCallbacks.push(t),M(this,2)},render:function(){}}),i(4728);class j extends ${static defaultProps={tQueryTooShort:t=>`Type in ${t} or more characters for results`,tNoResults:()=>"No search results",tSelectedOption:(t,e,i)=>`${t} ${i+1} of ${e} is highlighted`,tResults:(t,e)=>`${t} ${1===t?"result":"results"} ${1===t?"is":"are"} available. ${e}`};state={bump:!1,debounced:!1};componentWillMount(){const t=this;this.debounceStatusUpdate=function(t){let e;return function(){const i=this,n=arguments;clearTimeout(e),e=setTimeout((function(){e=null,t.apply(i,n)}),1400)}}((function(){if(!t.state.debounced){const e=!t.props.isInFocus||t.props.validChoiceMade;t.setState((({bump:t})=>({bump:!t,debounced:!0,silenced:e})))}}))}componentWillReceiveProps({queryLength:t}){this.setState({debounced:!1})}render(){const{id:t,length:e,queryLength:i,minQueryLength:n,selectedOption:s,selectedOptionIndex:o,tQueryTooShort:a,tNoResults:l,tSelectedOption:c,tResults:u,className:h}=this.props,{bump:d,debounced:f,silenced:p}=this.state,m=i<n,g=0===e,_=s?c(s,e,o):"";let b=null;return b=m?a(n):g?l():u(e,_),this.debounceStatusUpdate(),r("div",{className:h,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"}},r("div",{id:t+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!p&&f&&d?b:""),r("div",{id:t+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},p||!f||d?"":b))}}const N=({className:t})=>r("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},r("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},r("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})));function D(){return D=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},D.apply(this,arguments)}const R={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function B(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}class V extends ${static defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:()=>{},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:()=>"No results found",tAssistiveHint:()=>"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:N,menuAttributes:{},inputClasses:null,hintClasses:null,menuClasses:null};elementReferences={};constructor(t){super(t),this.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0},this.handleComponentBlur=this.handleComponentBlur.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleUpArrow=this.handleUpArrow.bind(this),this.handleDownArrow=this.handleDownArrow.bind(this),this.handleEnter=this.handleEnter.bind(this),this.handlePrintableKey=this.handlePrintableKey.bind(this),this.handleListMouseLeave=this.handleListMouseLeave.bind(this),this.handleOptionBlur=this.handleOptionBlur.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleOptionMouseDown=this.handleOptionMouseDown.bind(this),this.handleOptionMouseEnter=this.handleOptionMouseEnter.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputFocus=this.handleInputFocus.bind(this),this.pollInputElement=this.pollInputElement.bind(this),this.getDirectInputChanges=this.getDirectInputChanges.bind(this)}isQueryAnOption(t,e){return-1!==e.map((t=>this.templateInputValue(t).toLowerCase())).indexOf(t.toLowerCase())}componentDidMount(){this.pollInputElement()}componentWillUnmount(){clearTimeout(this.$pollInput)}pollInputElement(){this.getDirectInputChanges(),this.$pollInput=setTimeout((()=>{this.pollInputElement()}),100)}getDirectInputChanges(){const t=this.elementReferences[-1];t&&t.value!==this.state.query&&this.handleInputChange({target:{value:t.value}})}componentDidUpdate(t,e){const{focused:i}=this.state,n=null===i,s=e.focused!==i;s&&!n&&this.elementReferences[i].focus();const o=-1===i,r=s&&null===e.focused;if(o&&r){const t=this.elementReferences[i];t.setSelectionRange(0,t.value.length)}}hasAutoselect(){return!B()&&this.props.autoselect}templateInputValue(t){const e=this.props.templates&&this.props.templates.inputValue;return e?e(t):t}templateSuggestion(t){const e=this.props.templates&&this.props.templates.suggestion;return e?e(t):t}handleComponentBlur(t){const{options:e,query:i,selected:n}=this.state;let s;this.props.confirmOnBlur?(s=t.query||i,this.props.onConfirm(e[n])):s=i,this.setState({focused:null,menuOpen:t.menuOpen||!1,query:s,selected:null,validChoiceMade:this.isQueryAnOption(s,e)})}handleListMouseLeave(t){this.setState({hovered:null})}handleOptionBlur(t,e){const{focused:i,menuOpen:n,options:s,selected:o}=this.state,r=null===t.relatedTarget,a=t.relatedTarget===this.elementReferences[-1],l=i!==e&&-1!==i;if(!l&&r||!l&&!a){const t=n&&B();this.handleComponentBlur({menuOpen:t,query:this.templateInputValue(s[o])})}}handleInputBlur(t){const{focused:e,menuOpen:i,options:n,query:s,selected:o}=this.state;if(-1===e){const t=i&&B(),e=B()?s:this.templateInputValue(n[o]);this.handleComponentBlur({menuOpen:t,query:e})}}handleInputChange(t){const{minLength:e,source:i,showAllValues:n}=this.props,s=this.hasAutoselect(),o=t.target.value,r=0===o.length,a=this.state.query!==o,l=o.length>=e;this.setState({query:o,ariaHint:r}),n||!r&&a&&l?i(o,(t=>{const e=t.length>0;this.setState({menuOpen:e,options:t,selected:s&&e?0:-1,validChoiceMade:!1})})):!r&&l||this.setState({menuOpen:!1,options:[]})}handleInputClick(t){this.handleInputChange(t)}handleInputFocus(t){const{query:e,validChoiceMade:i,options:n}=this.state,{minLength:s}=this.props,o=!i&&e.length>=s&&n.length>0;o?this.setState((({menuOpen:t})=>({focused:-1,menuOpen:o||t,selected:-1}))):this.setState({focused:-1})}handleOptionFocus(t){this.setState({focused:t,hovered:null,selected:t})}handleOptionMouseEnter(t,e){B()||this.setState({hovered:e})}handleOptionClick(t,e){const i=this.state.options[e],n=this.templateInputValue(i);this.props.onConfirm(i),this.setState({focused:-1,hovered:null,menuOpen:!1,query:n,selected:-1,validChoiceMade:!0}),this.forceUpdate()}handleOptionMouseDown(t){t.preventDefault()}handleUpArrow(t){t.preventDefault();const{menuOpen:e,selected:i}=this.state;-1!==i&&e&&this.handleOptionFocus(i-1)}handleDownArrow(t){if(t.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)t.preventDefault(),this.props.source("",(t=>{this.setState({menuOpen:!0,options:t,selected:0,focused:0,hovered:null})}));else if(!0===this.state.menuOpen){const{menuOpen:t,options:e,selected:i}=this.state;i!==e.length-1&&t&&this.handleOptionFocus(i+1)}}handleSpace(t){this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(t.preventDefault(),this.props.source("",(t=>{this.setState({menuOpen:!0,options:t})}))),-1!==this.state.focused&&(t.preventDefault(),this.handleOptionClick(t,this.state.focused))}handleEnter(t){this.state.menuOpen&&(t.preventDefault(),this.state.selected>=0&&this.handleOptionClick(t,this.state.selected))}handlePrintableKey(t){const e=this.elementReferences[-1];t.target===e||e.focus()}handleKeyDown(t){switch(R[t.keyCode]){case"up":this.handleUpArrow(t);break;case"down":this.handleDownArrow(t);break;case"space":this.handleSpace(t);break;case"enter":this.handleEnter(t);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:((e=t.keyCode)>47&&e<58||32===e||8===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223)&&this.handlePrintableKey(t)}var e}render(){const{cssNamespace:t,displayMenu:e,id:i,minLength:n,name:s,placeholder:o,required:a,showAllValues:l,tNoResults:c,tStatusQueryTooShort:u,tStatusNoResults:h,tStatusSelectedOption:d,tStatusResults:f,tAssistiveHint:p,dropdownArrow:m,menuAttributes:g,inputClasses:_,hintClasses:b,menuClasses:v}=this.props,{focused:y,hovered:w,menuOpen:E,options:C,query:S,selected:k,ariaHint:x,validChoiceMade:T}=this.state,A=this.hasAutoselect(),O=-1===y,L=0===C.length,I=0!==S.length,P=S.length>=n,M=this.props.showNoOptionsFound&&O&&L&&I&&P,F=`${t}__wrapper`,$=`${t}__status`,N=`${t}__dropdown-arrow-down`,R=-1!==y&&null!==y,V=`${t}__option`,z=`${t}__hint`,W=this.templateInputValue(C[k]),q=W&&0===W.toLowerCase().indexOf(S.toLowerCase())&&A?S+W.substr(S.length):"",H=i+"__assistiveHint",U={"aria-describedby":x?H:null,"aria-expanded":E?"true":"false","aria-activedescendant":R?`${i}__option--${y}`:null,"aria-controls":`${i}__listbox`,"aria-autocomplete":this.hasAutoselect()?"both":"list"};let G;l&&(G=m({className:N}),"string"==typeof G&&(G=r("div",{className:`${t}__dropdown-arrow-down-wrapper`,dangerouslySetInnerHTML:{__html:G}})));const K=`${t}__input`,Y=[K,this.props.showAllValues?`${K}--show-all-values`:`${K}--default`];null!==y&&Y.push(`${K}--focused`),_&&Y.push(_);const Q=`${t}__menu`,X=[Q,`${Q}--${e}`,`${Q}--${E||M?"visible":"hidden"}`];v&&X.push(v),(g?.class||g?.className)&&X.push(g?.class||g?.className);const Z={"aria-labelledby":i,...g,id:`${i}__listbox`,role:"listbox",className:X.join(" "),onMouseLeave:this.handleListMouseLeave};return delete Z.class,r("div",{className:F,onKeyDown:this.handleKeyDown},r(j,{id:i,length:C.length,queryLength:S.length,minQueryLength:n,selectedOption:this.templateInputValue(C[k]),selectedOptionIndex:k,validChoiceMade:T,isInFocus:null!==this.state.focused,tQueryTooShort:u,tNoResults:h,tSelectedOption:d,tResults:f,className:$}),q&&r("span",null,r("input",{className:[z,null===b?_:b].filter(Boolean).join(" "),readonly:!0,tabIndex:"-1",value:q})),r("input",D({},U,{autoComplete:"off",className:Y.join(" "),id:i,onClick:this.handleInputClick,onBlur:this.handleInputBlur},{onInput:this.handleInputChange},{onFocus:this.handleInputFocus,name:s,placeholder:o,ref:t=>{this.elementReferences[-1]=t},type:"text",role:"combobox",required:a,value:S})),G,r("ul",Z,C.map(((t,e)=>{const n=(-1===y?k===e:y===e)&&null===w?` ${V}--focused`:"",s=e%2?` ${V}--odd`:"",o=B()?`<span id=${i}__option-suffix--${e} 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"> ${e+1} of ${C.length}</span>`:"";return r("li",{"aria-selected":y===e?"true":"false",className:`${V}${n}${s}`,dangerouslySetInnerHTML:{__html:this.templateSuggestion(t)+o},id:`${i}__option--${e}`,key:e,onBlur:t=>this.handleOptionBlur(t,e),onClick:t=>this.handleOptionClick(t,e),onMouseDown:this.handleOptionMouseDown,onMouseEnter:t=>this.handleOptionMouseEnter(t,e),ref:t=>{this.elementReferences[e]=t},role:"option",tabIndex:"-1","aria-posinset":e+1,"aria-setsize":C.length})})),M&&r("li",{className:`${V} ${V}--no-results`,role:"option","aria-disabled":"true"},c())),r("span",{id:H,style:{display:"none"}},p()))}}function z(t){if(!t.element)throw new Error("element is not defined");if(!t.id)throw new Error("id is not defined");if(!t.source)throw new Error("source is not defined");Array.isArray(t.source)&&(t.source=W(t.source)),function(t,e,i){k(i,t,{},!1,e,!1)}(r(V,t),t.element)}const W=t=>(e,i)=>{i(t.filter((t=>-1!==t.toLowerCase().indexOf(e.toLowerCase()))))};z.enhanceSelectElement=t=>{if(!t.selectElement)throw new Error("selectElement is not defined");if(!t.source){const e=[].filter.call(t.selectElement.options,(e=>e.value||t.preserveNullOptions));t.source=e.map((t=>t.textContent||t.innerText))}if(t.onConfirm=t.onConfirm||(e=>{const i=[].filter.call(t.selectElement.options,(t=>(t.textContent||t.innerText)===e))[0];i&&(i.selected=!0)}),t.selectElement.value||void 0===t.defaultValue){const e=t.selectElement.options[t.selectElement.options.selectedIndex];t.defaultValue=e.textContent||e.innerText}void 0===t.name&&(t.name=""),void 0===t.id&&(void 0===t.selectElement.id?t.id="":t.id=t.selectElement.id),void 0===t.autoselect&&(t.autoselect=!0);const e=document.createElement("div");t.selectElement.parentNode.insertBefore(e,t.selectElement),z({...t,element:e}),t.selectElement.style.display="none",t.selectElement.id=t.selectElement.id+"-select"};const q=z})(),n.default})(),t.exports=i()}));pi.accessibleAutocomplete;const mi={autocomplete:[]},gi="autocomplete-list-show",_i="data-bs-autocomplete",bi="input["+_i+'][type="search"]';class vi extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._items=[],this._autocompleteElement=null,this._label=new st(t),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const t=this._element.value;
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@splidejs/splide"),require("@popperjs/core"),require("video.js"),require("animejs/lib/anime.es.js")):"function"==typeof define&&define.amd?define(["@splidejs/splide","@popperjs/core","video.js","animejs/lib/anime.es.js"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Splide,t.Popper,t.videojs,t.anime)}(this,(function(t,e,i,n){"use strict";function s(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}const o=s(e);!function(){const t={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,t)}catch(t){}globalThis.process={env:t}}();const r="data-focus-mouse";class a{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((t=>{document.addEventListener(t,(t=>{this._usingMouse="mousedown"===t.type}))})),document.addEventListener("focusin",(t=>{this._usingMouse&&t.target&&t.target.setAttribute(r,!0)})),document.addEventListener("focusout",(t=>{t.target&&t.target.setAttribute(r,!1)}))}}new a;const l=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new a,window.BOOTSTRAP_ITALIA_VERSION="2.15.1")};l();const c={ck3:{}},u={rememberChoice:(t,e)=>{c.ck3[t]=e,localStorage.setItem("bs-ck3",JSON.stringify(c.ck3))},isChoiceRemembered:t=>(c.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),c.ck3[t]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},h=new Map,d={set(t,e,i){h.has(t)||h.set(t,new Map);const n=h.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>h.has(t)&&h.get(t).get(e)||null,remove(t,e){if(!h.has(t))return;const i=h.get(t);i.delete(e),0===i.size&&h.delete(t)}},f="transitionend",p=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},m=t=>{const e=p(t);return e&&document.querySelector(e)?e:null},g=t=>{const e=p(t);return e?document.querySelector(e):null},_=t=>!(!t||"object"!=typeof t)&&void 0!==t.nodeType,b=t=>_(t)?t:"string"==typeof t&&t.length>0?document.querySelector(t):null,v=t=>{if(!_(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},y=t=>!t||t.nodeType!==Node.ELEMENT_NODE||(!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled"))),w=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?w(t.parentNode):null},E=()=>{},C=t=>{t.offsetHeight},S=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&"rtl"===document.documentElement.dir,k=t=>{"function"==typeof t&&t()},x=(t,e,i=!0)=>{if(!i)return void k(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const o=({target:i})=>{i===e&&(s=!0,e.removeEventListener(f,o),k(t))};e.addEventListener(f,o),setTimeout((()=>{s||e.dispatchEvent(new Event(f))}),n)},T=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},A=/[^.]*(?=\..*)\.|.*/,O=/\..*/,L=/::\d+$/,P={};let I=1;const M={mouseenter:"mouseover",mouseleave:"mouseout"},F=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 $(t,e){return e&&`${e}::${I++}`||t.uidEvent||I++}function j(t){const e=$(t);return t.uidEvent=e,P[e]=P[e]||{},P[e]}function N(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function D(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=(r=(r=t).replace(O,""),M[r]||r);var r;return F.has(o)||(o=t),[n,s,o]}function B(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=D(e,i,n);if(e in M){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=j(t),c=l[a]||(l[a]={}),u=N(c,r,o?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=$(r,e.replace(A,"")),d=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return W(s,{delegateTarget:r}),n.oneOff&&z.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return W(n,{delegateTarget:t}),i.oneOff&&z.off(t,n.type,e),e.apply(t,[n])}}(t,r);d.delegationSelector=o?i:null,d.callable=r,d.oneOff=s,d.uidEvent=h,c[h]=d,t.addEventListener(a,d,o)}function R(t,e,i,n,s){const o=N(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function V(t,e,i,n){const s=e[i]||{};for(const o of Object.keys(s))if(o.includes(n)){const n=s[o];R(t,e,i,n.callable,n.delegationSelector)}}const z={on(t,e,i,n){B(t,e,i,n,!1)},one(t,e,i,n){B(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=D(e,i,n),a=r!==e,l=j(t),c=l[r]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const i of Object.keys(l))V(t,l,i,e.slice(1));for(const i of Object.keys(c)){const n=i.replace(L,"");if(!a||e.includes(n)){const e=c[i];R(t,l,r,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;R(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;let n=new Event(e,{bubbles:!0,cancelable:!0});return n=W(n,i),t.dispatchEvent(n),n}};function W(t,e){for(const[i,n]of Object.entries(e||{}))try{t[i]=n}catch{Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function q(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function H(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const U={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${H(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${H(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=q(t.dataset[n])}return e},getDataAttribute:(t,e)=>q(t.getAttribute(`data-bs-${H(e)}`))};class G{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(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=_(e)?U.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},..._(e)?U.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const n of Object.keys(e)){const s=e[n],o=t[n],r=_(o)?"element":null==(i=o)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${r}" but expected type "${s}".`)}var i}}class Y extends G{constructor(t,e){super(),(t=b(t))&&(this._element=t,this._config=this._getConfig(e),d.set(this._element,this.constructor.DATA_KEY,this))}dispose(){d.remove(this._element,this.constructor.DATA_KEY),z.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){x(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return d.get(b(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e: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(t){return`${t}${this.EVENT_KEY}`}}const K={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!y(t)&&v(t)))}},Q={slideFocus:!1,rewind:!0,perMove:1,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",carousel:"Carosello",select:"Seleziona una slide da mostrare",slide:"slide",slideLabel:"%s di %s"}},X={"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 Z extends Y{constructor(e){super(e),this._config=this._getConfig(),this._splide=new t(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let t=Object.assign({},Q);return Object.keys(X).forEach((e=>{this._element.classList.contains(e)&&(t=Object.assign({},t,X[e]))})),t}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(window,"load.bs.carousel.data-api",(()=>{K.find("[data-bs-carousel-splide]").forEach((t=>{Z.getOrCreateInstance(t)}))}));const J=".bs.inputlabel",tt=`focus${J}`,et=`blur${J}`,it=`change${J}`,nt="active";class st{constructor(t){this._element=t,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=t=>{if("undefined"!=typeof window&&"undefined"!=typeof document)return document.querySelector("#"+CSS.escape(t.getAttribute("for")))};_init(){const t=this._getLabel();t&&!t.classList.contains(nt)&&(this._labelOut(),this._labelOver()),t&&null===t.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?z.on(this._element,et,(()=>{this._labelOut()})):(z.on(this._element,tt,(()=>{this._labelOut()})),z.on(this._element,et,(()=>{this._labelOver()})),z.on(this._element,it,(()=>{this._labelToggle()}))))}_getLabel(){return K.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return"number"===this._element.getAttribute("type")?!this._element.value&&!this._element.getAttribute("placeholder")&&!this._element.validity.badInput:!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const t=this._getLabel();t&&t.classList.add(nt)}_labelOver(){if(this._isEmpty()){const t=this._getLabel();t&&t.classList.remove(nt)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const ot=".bs.inputnumber",rt=`click${ot}`,at=`change${ot}`,lt=`click${ot}.data-api`,ct=".input-number",ut='input[data-bs-input][type="number"]',ht='button[class^="input-number-"]';class dt extends Y{constructor(t){super(t),this._wrapperElement=this._element.closest(ct),this._label=new st(t),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(K.find(ht,this._wrapperElement).forEach((t=>{z.on(t,rt,(e=>{e.preventDefault(),this._incrDecr(t.classList.contains("input-number-sub")),this._label._labelOut()}))})),z.on(this._element,at,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let t=null;t="calc(70px + "+this._element.value.length+"ch)",t&&(this._element.style.width=t)}}_incrDecr(t){let e=0;if(!this._element.disabled&&!this._element.readonly&&(""!==this._element.value&&(e=parseFloat(this._element.value)),!isNaN(e))){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=e+i*(t?-1:1),z.trigger(this._element,at),z.trigger(this._element,"input")}}_checkLimit(){const t=parseFloat(this._element.value);if(!isNaN(t)){let e=t;const i=parseFloat(this._element.getAttribute("max")),n=parseFloat(this._element.getAttribute("min"));n&&t<n&&(e=n),i&&t>i&&(e=i),this._element.value=e}this._inputResize()}}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(ut+", label").forEach((function(t){const e=st.getInputFromLabel(t)||t;var i;(i=e)&&i.matches(ut)&&i.parentNode.querySelector(ht)&&dt.getOrCreateInstance(i)}))})),z.on(document,lt,ht,(function(){const t=this.closest(ct);if(t){const e=K.findOne(ut,t);e&&dt.getOrCreateInstance(e)}})));const ft="show";class pt extends Y{constructor(t){super(t),this._isShown=!t.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 t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(ft),this._queueCallback((()=>this._hideElement()),this._element,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),t&&C(this._element),this._element.classList.add(ft);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const t=g(this),e=pt.getOrCreateInstance(t);this.checked?e.show():e.hide()}));const mt=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;z.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),y(this))return;const s=g(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()}))},gt=".bs.notification",_t=`click${gt}.data-api`,bt=`hidden${gt}`,vt=`show${gt}`,yt={timeout:0},wt="show";class Et extends Y{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=this._element.classList.contains(wt),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(t,e){if(this._isShown||this._isTransitioning)return;const i=t||this._getElementTimeout(e);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(wt),this._queueCallback((()=>this._hideElement()),this._element,t)}toggle(t){this._isShown?this.hide():this.show(null,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(t){const e=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),e&&C(this._element),this._element.classList.add(wt);this._queueCallback((()=>{this._isTransitioning=!1,t&&this._setTimeout(t,(()=>this.hide()))}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(t){return t={...yt,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_getElementTimeout(t){const e=t?parseInt(t.getAttribute("data-bs-timeout")):null;return e>0?e:this._config.timeout}_setTimeout(t,e){this._clearTimeout(),setTimeout(e,t)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,_t,'[data-bs-toggle="notification"]',(function(t){const e=g(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),z.one(e,vt,(t=>{t.defaultPrevented||z.one(e,bt,(()=>{v(this)&&this.focus()}))}));Et.getOrCreateInstance(e).toggle(this)})),mt(Et));const Ct="cookiebar",St=".bs.cookiebar",kt=".data-api",xt="cookies_consent",Tt=`close${St}`,At=`closed${St}`,Ot=`load${St}${kt}`,Lt=`click${St}${kt}`,Pt="show";class It extends Y{constructor(t){super(t),this._isShown=this._element.classList.contains(Pt),this._isTransitioning=!1}static get NAME(){return Ct}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 t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(Pt),this._queueCallback((()=>this._hideElement()),this._element,t)}accept(t){t=t||this._element;const e=this._getRootElement(t);this._triggerCloseEvent(e).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=xt+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),t&&C(this._element),this._element.classList.add(Pt);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var t=new Date;t.setDate(t.getDate()+30);var e=escape("true")+"; expires="+t.toUTCString();"undefined"!=typeof document&&(document.cookie=xt+"="+e+"; path=/; SameSite=Strict")}_getRootElement(t){const e=g(t);let i=null;return e&&(i=e),i||(i=t.closest(".cookiebar")),i}_triggerCloseEvent(t){return z.trigger(t,Tt)}_removeElement(t){t.classList.remove(Pt),t.setAttribute("aria-hidden","true"),t.setAttribute("aria-live","off"),z.trigger(t,At),this.dispose()}static _handleAccept(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _handleConsent(t){return function(e){e&&e.preventDefault(),t.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var t,e,i,n=document.cookie.split(";");for(t=0;t<n.length;t++)if(e=n[t].substring(0,n[t].indexOf("=")),i=n[t].substring(n[t].indexOf("=")+1),(e=e.replace(/^\s+|\s+$/g,""))==xt)return unescape(i)}}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,Lt,'[data-bs-accept="cookiebar"]',(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),y(this))return;const e=g(this)||this.closest(`.${Ct}`);It.getOrCreateInstance(e).accept()})),z.on(window,Ot,(function(){if(!It._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((t=>{It.getOrCreateInstance(t).show()}))}})));const Mt=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},Ft=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",$t=".sticky-top",jt="padding-right",Nt="margin-right";class Dt{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,jt,(e=>e+t)),this._setElementAttributes(Ft,jt,(e=>e+t)),this._setElementAttributes($t,Nt,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,jt),this._resetElementAttributes(Ft,jt),this._resetElementAttributes($t,Nt)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&U.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=U.getDataAttribute(t,e);null!==i?(U.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(_(t))e(t);else for(const i of K.find(t,this._element))e(i)}}const Bt=".bs.focustrap",Rt=`focusin${Bt}`,Vt=`keydown.tab${Bt}`,zt="backward",Wt={autofocus:!0,trapElement:null,initialFocus:null},qt={autofocus:"boolean",trapElement:"element",initialFocus:"(null|element|string|function)"};class Ht extends G{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null,this._affectedElements=[]}static get Default(){return Wt}static get DefaultType(){return qt}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._setInitialFocus(),z.off(document,Bt),z.on(document,Rt,(t=>this._handleFocusin(t))),z.on(document,Vt,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,z.off(document,Bt))}_setInitialFocus(){if(this._config.initialFocus){let t;t="function"==typeof this._config.initialFocus?this._config.initialFocus():this._config.initialFocus,t&&"function"==typeof t.focus?t.focus():this._config.trapElement.focus()}else this._config.trapElement.focus()}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=K.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===zt?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?zt:"forward")}}const Ut="backdrop",Gt="show",Yt=`mousedown.bs.${Ut}`,Kt={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Qt={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Xt extends G{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Kt}static get DefaultType(){return Qt}static get NAME(){return Ut}show(t){if(!this._config.isVisible)return void k(t);this._append();const e=this._getElement();this._config.isAnimated&&C(e),e.classList.add(Gt),this._emulateAnimation((()=>{k(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Gt),this._emulateAnimation((()=>{this.dispose(),k(t)}))):k(t)}dispose(){this._isAppended&&(z.off(this._element,Yt),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=b(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),z.on(t,Yt,(()=>{k(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){x(t,this._getElement(),this._config.isAnimated)}}const Zt=".bs.navbarcollapsible",Jt=`click${Zt}.data-api`,te=`click${Zt}`,ee=`keydown${Zt}`,ie=`hide${Zt}`,ne=`hidden${Zt}`,se=`show${Zt}`,oe=`shown${Zt}`,re=`resize${Zt}`,ae="navbar-open",le="show",ce="expanded",ue='[data-bs-toggle="navbarcollapsible"]',he=".close-menu",de=".nav-link",fe=".nav-item .list-item",pe=".it-heading-link",me=".it-footer-link",ge={backdrop:!0,focus:!0},_e={backdrop:"(boolean|string)",focus:"boolean"};class be extends Y{constructor(t,e){super(t,e),this._mainElement=K.findOne("main"),this._isNavbarOutsideMain=this._mainElement&&!this._mainElement.contains(this._element),this._parentElement=this._element.parentNode,this._isShown=this._element.classList.contains(ce),this._element.getAttribute("tabindex")||this._element.setAttribute("tabindex","-1"),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._scrollBar=new Dt,this._isTransitioning=!1,this._isMobile=Mt(),this._btnClose=K.findOne(".close-div button",this._element),this._btnBack=K.findOne(".it-back-button",this._element),this._menuWrapper=K.findOne(".menu-wrapper",this._element),this._menuItems=K.find([de,fe,pe,me,he].join(","),this._element),this._toggleButton=K.findOne(`${ue}[data-bs-target="#${this._element.id}"]`)||K.findOne(`${ue}[href="#${this._element.id}"]`),this._toggleButton&&(this._toggleButton.getAttribute("aria-expanded")||this._toggleButton.setAttribute("aria-expanded",this._isShown?"true":"false")),this._bindEvents()}static get Default(){return ge}static get DefaultType(){return _e}static get NAME(){return"navbarcollapsible"}toggle(t){this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;z.trigger(this._element,se,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),this._btnBack&&this._btnBack.classList.add(le),document.body.classList.add(ae),this._backdrop.show(),this._showElement(),this._toggleButton&&this._toggleButton.setAttribute("aria-expanded","true"))}hide(){if(!this._isShown||this._isTransitioning)return;z.trigger(this._element,ie).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._btnBack&&this._btnBack.classList.remove(le),this._element.classList.remove(ce),this._backdrop.hide(),this._queueCallback((()=>this._hideElement()),this._menuWrapper,this._isAnimated()),this._toggleButton&&this._toggleButton.setAttribute("aria-expanded","false"))}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(z.off(window,re),z.off(document,ee)),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){return new Xt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated(),className:"navbar-backdrop",rootElement:this._parentElement,clickCallback:()=>{this.hide()}})}_initializeFocusTrap(){return new Ht({trapElement:this._element,initialFocus:()=>this._btnClose||this._element.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')})}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(window,re,(()=>this._onResize())),z.on(document,ee,(t=>{this._isShown&&"Escape"===t.key&&this.hide()})),z.on(this._btnClose,te,(t=>{t.preventDefault(),this.hide()})),z.on(this._btnBack,te,(t=>{t.preventDefault(),this.hide()})),this._menuItems.forEach((t=>{z.on(t,ee,(t=>this._isMobile&&this._onMenuItemKeyDown(t)))})))}_onResize(){this._isMobile=Mt()}_onMenuItemKeyDown(t){"Escape"===t.key&&this.hide()}_isAnimated(){return!0}_isElementHidden(t){return null===t.offsetParent}_showElement(){this._element.style.display="block",this._element.getAttribute("aria-label")||this._element.getAttribute("aria-labelledby")||this._element.setAttribute("aria-label","Menu"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._mainElement&&this._isNavbarOutsideMain&&this._mainElement.setAttribute("inert",""),C(this._element),this._element.classList.add(ce);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,z.trigger(this._element,oe)}),this._menuWrapper,this._isAnimated())}_hideElement(){this._element.style.display="none",this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),document.body.classList.remove(ae),this._mainElement&&this._isNavbarOutsideMain&&this._mainElement.removeAttribute("inert"),this._scrollBar.reset(),this._isTransitioning=!1,z.trigger(this._element,ne)}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,Jt,ue,(function(t){const e=g(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),z.one(e,se,(t=>{t.defaultPrevented||z.one(e,ne,(()=>{v(this)&&this.focus()}))}));be.getOrCreateInstance(e).toggle(this)}));const ve=(t,e,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=((t,e)=>{let i=null;return e.forEach(((e,n)=>{e===t&&(i=n)})),i})(t,e);let s=null;if(i.isLimit&&i.isDirectionTop&&n>0)s=e[0];else if(i.isLimit&&n<e.length-1)s=e[e.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;s=e[0===n?e.length-1:n-1]}else{if(!i.loop&&n===e.length-1)return;s=e[n===e.length-1?0:n+1]}s&&s.focus()},ye=".bs.accordion",we=`keydown${ye}`,Ee=`keydown${ye}.data-api`,Ce='.accordion-item > .accordion-header [data-bs-toggle="collapse"]';class Se extends Y{constructor(t){super(t),this._bindEvents()}static get NAME(){return"accordion"}handleKeyDown(t,e,i){const n={ArrowDown:t=>this._focusNext(t),ArrowUp:t=>this._focusPrev(t),Home:t=>this._focusFirst(t),End:t=>this._focusLast(t)};"function"==typeof n[t]&&(i&&i.preventDefault(),n[t](e))}_bindEvents(){K.find(Ce,this._element).forEach((t=>{z.on(t,we,(t=>{this.handleKeyDown(t.key,t.currentTarget,t)}))}))}_getHeadButtons(){return K.find(":scope > "+Ce,this._element)}_focusNext(t){ve(t,this._getHeadButtons(),{loop:!0})}_focusPrev(t){ve(t,this._getHeadButtons(),{isDirectionTop:!0,loop:!0})}_focusFirst(t){ve(t,this._getHeadButtons(),{isDirectionTop:!0,isLimit:!0})}_focusLast(t){ve(t,this._getHeadButtons(),{isLimit:!0})}}var ke;"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,Ee,Ce,(function(t){const e=this.closest(".accordion");if(e){Se.getOrCreateInstance(e).handleKeyDown(t.key,this,t)}}));var xe=new Uint8Array(16);function Te(){if(!ke&&!(ke="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 ke(xe)}const Ae=/^(?:[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 Oe=[],Le=0;Le<256;++Le)Oe.push((Le+256).toString(16).substr(1));function Pe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(Oe[t[e+0]]+Oe[t[e+1]]+Oe[t[e+2]]+Oe[t[e+3]]+"-"+Oe[t[e+4]]+Oe[t[e+5]]+"-"+Oe[t[e+6]]+Oe[t[e+7]]+"-"+Oe[t[e+8]]+Oe[t[e+9]]+"-"+Oe[t[e+10]]+Oe[t[e+11]]+Oe[t[e+12]]+Oe[t[e+13]]+Oe[t[e+14]]+Oe[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&Ae.test(t)}(i))throw TypeError("Stringified UUID is invalid");return i}function Ie(t,e,i){var n=(t=t||{}).random||(t.rng||Te)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,Pe(n)}let Me=!1,Fe=[];class $e{constructor(t,e){this.id=t,this._callback=e}dispose(){je(this.id)}_execute(t){this._callback(t)}}const je=t=>{Fe=Fe.filter((e=>e.id!==t))},Ne=t=>{if("undefined"!=typeof document){if(Fe.length||"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("scroll",(t=>{Me||(window.requestAnimationFrame((()=>{Fe.forEach((e=>e.cb._execute(t))),Me=!1})),Me=!0)})),"function"==typeof t){const e=new $e(Ie(),t);return Fe.push({id:e.id,cb:e}),e}return console.error("[onDocumentScroll] the provided data has to be of type function"),null}},De={duration:800,easing:"easeInOutSine"},Be=(t,e)=>{if("undefined"==typeof window||"undefined"==typeof document)return;const i=("object"==typeof e?e:{}).complete,s=window.document.scrollingElement||window.document.body||window.document.documentElement,o=s.style.scrollBehavior;e={scrollTop:t||0,...De,..."object"==typeof e?e:{}},s.style.scrollBehavior="auto",e.complete=t=>{s.style.scrollBehavior=o,"function"==typeof i&&i(t)},n({targets:s,...e})},Re="active",Ve="ul.link-list",ze="a.nav-link",We=`${ze}.${Re}`,qe=`${ze}[href^="#"]`,He={scrollPadding:10,duration:800,easing:"easeInOutSine"};class Ue extends Y{constructor(t,e){super(t),this._config=this._getConfig(e),this._togglerElement=K.findOne(".custom-navbar-toggler",this._element),this._sectionContainer=K.findOne(".it-page-sections-container"),this._collapsible=this._getCollapsible(),this._isCollapseOpened=!1,this._callbackQueue=[],this._scrollCb=null;const i=K.findOne(".menu-wrapper",this._element);i&&!i.hasAttribute("tabindex")&&i.setAttribute("tabindex","-1"),this._bindEvents()}static get NAME(){return"navscroll"}setScrollPadding(t){this._config.scrollPadding=t}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(t){return t={...He,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){this._scrollCb=Ne((()=>this._onScroll())),this._collapsible&&(z.on(this._collapsible._element,"shown.bs.navbarcollapsible",(()=>this._onCollapseOpened())),z.on(this._collapsible._element,"hidden.bs.navbarcollapsible",(()=>this._onCollapseClosed()))),K.find(qe,this._element).forEach((t=>{t.addEventListener("click",(()=>{const e=()=>this._scrollToHash(t.hash);this._isCollapseOpened?(this._callbackQueue.push(e),this._collapsible.hide()):e()}))})),"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(window,"load",(()=>{setTimeout((()=>this._onScroll()),150)}))}_onCollapseOpened(){this._isCollapseOpened=!0}_onCollapseClosed(){for(;this._callbackQueue.length>0;){const t=this._callbackQueue.shift();"function"==typeof t&&t()}this._isCollapseOpened=!1}_getParentLinks(t){const e=[];let i=t.closest(Ve),n=null,s=!1;for(;i&&!s;){const t=i.closest("li.nav-link, li.nav-item");if(t){const i=t.querySelector(ze);i&&e.push(i)}n=i,i=(i.parentElement||i).closest(Ve),i===n&&(s=!0)}return e}_decorateToggler(t){if(this._togglerElement){const e=K.findOne(".it-list",this._togglerElement);this._togglerElement.innerText="",this._togglerElement.textContent="",this._togglerElement.append(e),this._togglerElement.append(t)}}_scrollToHash(t){if(!t||"#"===t)return;const e=this._sectionContainer?K.findOne(t,this._sectionContainer):K.findOne(t);e&&(Be(e.offsetTop-this._getScrollPadding(),{duration:this._config.duration,easing:this._config.easing,complete:()=>{const t=e.matches("h1, h2, h3, h4, h5, h6"),i=!e.hasAttribute("tabindex");i&&e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),i&&t&&setTimeout((()=>{e.removeAttribute("tabindex")}),500)}}),history.pushState?history.pushState(null,null,t):location.hash=t)}_updateProgress(t){if(!t)return;const e=K.find(".it-navscroll-progressbar");if(e){const i=Math.abs(t.getBoundingClientRect().top)/t.getBoundingClientRect().height*100,n=Math.min(100,Math.max(0,i));e.forEach((e=>{t.getBoundingClientRect().top<=0?(e.style.width=n+"%",e.setAttribute("aria-valuenow",n)):(e.style.width="0%",e.setAttribute("aria-valuenow",0))}))}}_onScroll(){const t=this._sectionContainer?this._sectionContainer.offsetTop:0;if("undefined"==typeof document)return;const e=document.scrollingElement.scrollTop-t,i=K.find(ze,this._element),n=this._getScrollPadding();K.find(".it-page-section").forEach(((s,o)=>{if(s.offsetTop-t<=e+n&&(K.find(We,this._element).forEach((t=>{t.classList.remove(Re)})),o<i.length)){const t=i[o];this._getParentLinks(t).forEach((t=>{t.classList.add(Re)})),t.classList.add(Re),this._decorateToggler(t.innerText)}})),this._updateProgress(this._sectionContainer)}_getCollapsible(){const t=K.findOne(".navbar-collapsable",this._element);return t?be.getOrCreateInstance(t):null}_getScrollPadding(){return"function"==typeof this._config.scrollPadding?this._config.scrollPadding():this._config.scrollPadding}}if("undefined"!=typeof window&&"undefined"!=typeof document){K.find("[data-bs-navscroll]").map((t=>{Ue.getOrCreateInstance(t)}))}const Ge=".bs.sticky",Ye=`resize${Ge}`,Ke=`on${Ge}`,Qe=`off${Ge}`,Xe="bs-is-sticky",Ze="bs-is-fixed",Je='[data-bs-toggle="sticky"]',ti={positionType:"sticky",stickyClassName:"",stackable:!1,paddingTop:0};class ei extends Y{constructor(t,e){super(t),this._config=this._getConfig(e),this._isSticky=!1,this._wrapper=null,this._stickyTarget=K.findOne(m(this._element),this._element)||this._element,this._stickyTargetMobile=K.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=Mt(),this._prevTop=0,this._onScroll(),this._bindEvents()}dispose(){"undefined"!=typeof window&&"undefined"!=typeof document&&(z.off(window,Ye),this._scrollCb.dispose(),super.dispose())}static get NAME(){return"sticky"}_getConfig(t){return t={...ti,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(window,Ye,(()=>this._onResize())),this._scrollCb=Ne((()=>this._onScroll())))}_onResize(){this._isMobile=Mt(),this._setLimit()}_onScroll(){this._checkSticky()}_setLimit(){this._stickyLimit=this._cumulativeOffset(this._stickyTarget).top,this._stickyLimitMobile=this._cumulativeOffset(this._stickyTargetMobile).top}_getLimit(){let t=this._isMobile?this._stickyLimitMobile:this._stickyLimit;return this._config.stackable&&this._getStickySimblings().forEach(((e,i)=>{const n=e.getBoundingClientRect();t-=n.height+(0===i?parseFloat(e.style.top):0)})),t>0?t:0}_cumulativeOffset(t){let e=0,i=0;do{e+=t.offsetTop||0,i+=t.offsetLeft||0,t=t.offsetParent}while(t);return{top:e,left:i}}_isTypeSticky(){return"sticky"===this._config.positionType}_checkSticky(){this._isSticky||this._setLimit();const t=this._getLimit();"undefined"!=typeof window&&window.pageYOffset>t?this._setSticky():this._unsetSticky()}_setSticky(){if(!this._isSticky){this._isSticky=!0;let t=Xe;this._isTypeSticky()||(t=Ze,this._wrapper=this._createWrapper()),this._element.classList.add(t),this._config.stickyClassName&&this._element.classList.add(this._config.stickyClassName),this._prevTop=this._element.style.top,this._element.style.top=this._getPositionTop()+"px",z.trigger(this._element,Ke)}}_unsetSticky(){if(this._isSticky){let t=Xe;this._isTypeSticky()||(t=Ze,this._destroyWrapper()),this._element.classList.remove(t),this._config.stickyClassName&&this._element.classList.remove(this._config.stickyClassName),this._element.style.top=this._prevTop,this._isSticky=!1,z.trigger(this._element,Qe)}}_createWrapper(){if("undefined"==typeof document)return;const t=document.createElement("div");return t.classList.add("bs-it-sticky-wrapper"),t.style.width="100%",t.style.height=this._element.getBoundingClientRect().height+"px",t.style.overflow="hidden",this._element.parentNode.insertBefore(t,this._element),t.appendChild(this._element),t}_destroyWrapper(){this._wrapper&&(this._wrapper.parentNode.insertBefore(this._element,this._wrapper),this._wrapper.remove())}_getStickySimblings(){return K.find(Je).filter((t=>{const e=ei.getInstance(t);return!(!e||!e._isSticky||t===this._element)}))}_getPositionTop(){let t=0;return this._config.stackable?(this._getStickySimblings().forEach(((e,i)=>{const n=e.getBoundingClientRect();t+=n.height+(0===i?parseFloat(e.style.top):0)})),t):t+this._config.paddingTop}}"undefined"!=typeof window&&"undefined"!=typeof document&&Ne((()=>{K.find(Je).map((t=>{ei.getOrCreateInstance(t)}))}));const ii="cloned-element",ni=`.${ii}`,si=new Map;class oi{constructor(t){if(si.get(t))return null;this._element=t,this._elementObj=ei.getOrCreateInstance(t),si.set(t,this._elementObj),this._bindEvents(),this._toggleClonedElement(this._element.classList.contains("is-sticky"))}static getOrCreateInstance(t){return si.get(t)||new this(t)}_bindEvents(){this._element.addEventListener("on.bs.sticky",(()=>this._toggleClonedElement(!0))),this._element.addEventListener("off.bs.sticky",(()=>this._toggleClonedElement(!1)))}_toggleClonedElement(t=!0){if(!v(K.findOne(".custom-navbar-toggler",this._element))){const e=K.findOne(".menu-wrapper",this._element);if(t){const t=K.findOne(".it-brand-wrapper",this._element),i=K.findOne(".it-search-wrapper",this._element),n=K.findOne(".it-user-wrapper",this._element),s=t?t.cloneNode(!0):null,o=i?i.cloneNode(!0):null,r=n?n.cloneNode(!0):null;s&&e.insertBefore(s,e.childNodes[0]).classList.add(ii),o&&e.appendChild(o).classList.add(ii),r&&(e.appendChild(r).classList.add(ii),e.appendChild(r).classList.remove("show"))}else K.find(ni,this._element).forEach((t=>{t.parentElement.removeChild(t)}))}}}Ne((()=>{K.find('.it-header-sticky [data-bs-toggle="sticky"]').map((t=>{oi.getOrCreateInstance(t)}))}));var ri=Object.defineProperty,ai=(t,e,i)=>(((t,e,i)=>{e in t?ri(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i})(t,"symbol"!=typeof e?e+"":e,i),i);const li=/^(([^<>()[\]\\.,;:\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,}))$/,ci=/^-?[0-9]\d*$/,ui=/^(?=.*[A-Za-z])(?=.*\d).{8,}$/,hi=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/,di=t=>"string"!=typeof t||""===t;var fi=(t=>(t.Required="required",t.Email="email",t.MinLength="minLength",t.MaxLength="maxLength",t.Password="password",t.Number="number",t.Integer="integer",t.MaxNumber="maxNumber",t.MinNumber="minNumber",t.StrongPassword="strongPassword",t.CustomRegexp="customRegexp",t.MinFilesCount="minFilesCount",t.MaxFilesCount="maxFilesCount",t.Files="files",t))(fi||{}),pi=(t=>(t.Required="required",t))(pi||{}),mi=(t=>(t.Label="label",t.LabelArrow="labelArrow",t))(mi||{});const gi=[{key:fi.Required,dict:{en:"The field is required"}},{key:fi.Email,dict:{en:"Email has invalid format"}},{key:fi.MaxLength,dict:{en:"The field must contain a maximum of :value characters"}},{key:fi.MinLength,dict:{en:"The field must contain a minimum of :value characters"}},{key:fi.Password,dict:{en:"Password must contain minimum eight characters, at least one letter and one number"}},{key:fi.StrongPassword,dict:{en:"Password should contain minimum eight characters, at least one uppercase letter, one lowercase letter, one number and one special character"}},{key:fi.Number,dict:{en:"Value should be a number"}},{key:fi.MaxNumber,dict:{en:"Number should be less or equal than :value"}},{key:fi.MinNumber,dict:{en:"Number should be more or equal than :value"}},{key:fi.MinFilesCount,dict:{en:"Files count should be more or equal than :value"}},{key:fi.MaxFilesCount,dict:{en:"Files count should be less or equal than :value"}},{key:fi.Files,dict:{en:"Uploaded files have one or several invalid properties (extension/size/type etc)."}}],_i=t=>"object"==typeof t&&null!==t&&"then"in t&&"function"==typeof t.then,bi=t=>Array.isArray(t)?t.filter((t=>t.length>0)):"string"==typeof t&&t.trim()?[...t.split(" ").filter((t=>t.length>0))]:[],vi=t=>t instanceof Element||t instanceof HTMLDocument,yi={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,submitFormAutomatically:!1};class wi{constructor(t,e,i){ai(this,"form",null),ai(this,"fields",{}),ai(this,"groupFields",{}),ai(this,"errors",{}),ai(this,"isValid",!1),ai(this,"isSubmitted",!1),ai(this,"globalConfig",yi),ai(this,"errorLabels",{}),ai(this,"successLabels",{}),ai(this,"eventListeners",[]),ai(this,"dictLocale",gi),ai(this,"currentLocale","en"),ai(this,"customStyleTags",{}),ai(this,"onSuccessCallback"),ai(this,"onFailCallback"),ai(this,"onValidateCallback"),ai(this,"tooltips",[]),ai(this,"lastScrollPosition"),ai(this,"isScrollTick"),ai(this,"fieldIds",new Map),ai(this,"getKeyByFieldSelector",(t=>this.fieldIds.get(t))),ai(this,"getFieldSelectorByKey",(t=>{for(const[e,i]of this.fieldIds)if(t===i)return e})),ai(this,"getCompatibleFields",(()=>{const t={};return Object.keys(this.fields).forEach((e=>{let i=e;const n=this.getFieldSelectorByKey(e);"string"==typeof n&&(i=n),t[i]={...this.fields[e]}})),t})),ai(this,"setKeyByFieldSelector",(t=>{if(this.fieldIds.has(t))return this.fieldIds.get(t);const e=String(this.fieldIds.size+1);return this.fieldIds.set(t,e),e})),ai(this,"refreshAllTooltips",(()=>{this.tooltips.forEach((t=>{t.refresh()}))})),ai(this,"handleDocumentScroll",(()=>{this.lastScrollPosition=window.scrollY,this.isScrollTick||(window.requestAnimationFrame((()=>{this.refreshAllTooltips(),this.isScrollTick=!1})),this.isScrollTick=!0)})),ai(this,"formSubmitHandler",(t=>{t.preventDefault(),this.isSubmitted=!0,this.validateHandler(t)})),ai(this,"handleFieldChange",(t=>{let e;for(const i in this.fields){if(this.fields[i].elem===t){e=i;break}}e&&(this.fields[e].touched=!0,this.validateField(e,!0))})),ai(this,"handleGroupChange",(t=>{let e;for(const i in this.groupFields){if(this.groupFields[i].elems.find((e=>e===t))){e=i;break}}e&&(this.groupFields[e].touched=!0,this.validateGroup(e,!0))})),ai(this,"handlerChange",(t=>{t.target&&(this.handleFieldChange(t.target),this.handleGroupChange(t.target),this.renderErrors())})),this.initialize(t,e,i)}initialize(t,e,i){if(this.form=null,this.errors={},this.isValid=!1,this.isSubmitted=!1,this.globalConfig=yi,this.errorLabels={},this.successLabels={},this.eventListeners=[],this.customStyleTags={},this.tooltips=[],this.currentLocale="en","string"==typeof t){const e=document.querySelector(t);if(!e)throw Error(`Form with ${t} selector not found! Please check the form selector`);this.setForm(e)}else{if(!(t instanceof HTMLFormElement))throw Error("Form selector is not valid. Please specify a string selector or a DOM element.");this.setForm(t)}if(this.globalConfig={...yi,...e},i&&(this.dictLocale=[...i,...gi]),this.isTooltip()){const t=document.createElement("style");t.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[mi.Label]=document.head.appendChild(t),this.addListener("scroll",document,this.handleDocumentScroll)}}getLocalisedString(t,e,i){var n;const s=null!=i?i:t;let o=null==(n=this.dictLocale.find((t=>t.key===s)))?void 0:n.dict[this.currentLocale];if(o||i&&(o=i),o&&void 0!==e)switch(t){case fi.MaxLength:case fi.MinLength:case fi.MaxNumber:case fi.MinNumber:case fi.MinFilesCount:case fi.MaxFilesCount:o=o.replace(":value",String(e))}return o||i||"Value is incorrect"}getFieldErrorMessage(t,e){const i="function"==typeof t.errorMessage?t.errorMessage(this.getElemValue(e),this.fields):t.errorMessage;return this.getLocalisedString(t.rule,t.value,i)}getFieldSuccessMessage(t,e){const i="function"==typeof t?t(this.getElemValue(e),this.fields):t;return this.getLocalisedString(void 0,void 0,i)}getGroupErrorMessage(t){return this.getLocalisedString(t.rule,void 0,t.errorMessage)}getGroupSuccessMessage(t){if(t.successMessage)return this.getLocalisedString(void 0,void 0,t.successMessage)}setFieldInvalid(t,e){this.fields[t].isValid=!1,this.fields[t].errorMessage=this.getFieldErrorMessage(e,this.fields[t].elem)}setFieldValid(t,e){this.fields[t].isValid=!0,void 0!==e&&(this.fields[t].successMessage=this.getFieldSuccessMessage(e,this.fields[t].elem))}setGroupInvalid(t,e){this.groupFields[t].isValid=!1,this.groupFields[t].errorMessage=this.getGroupErrorMessage(e)}setGroupValid(t,e){this.groupFields[t].isValid=!0,this.groupFields[t].successMessage=this.getGroupSuccessMessage(e)}getElemValue(t){switch(t.type){case"checkbox":return t.checked;case"file":return t.files;default:return t.value}}validateGroupRule(t,e,i){if(i.rule===pi.Required)e.every((t=>!t.checked))?this.setGroupInvalid(t,i):this.setGroupValid(t,i)}validateFieldRule(t,e,i,n=!1){const s=i.value,o=this.getElemValue(e);if(i.plugin){i.plugin(o,this.getCompatibleFields())||this.setFieldInvalid(t,i)}else{switch(i.rule){case fi.Required:(t=>{let e=t;return"string"==typeof t&&(e=t.trim()),!e})(o)&&this.setFieldInvalid(t,i);break;case fi.Email:if(di(o))break;r=o,li.test(r)||this.setFieldInvalid(t,i);break;case fi.MaxLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(di(o))break;((t,e)=>t.length>e)(o,s)&&this.setFieldInvalid(t,i);break;case fi.MinLength:if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(di(o))break;((t,e)=>t.length<e)(o,s)&&this.setFieldInvalid(t,i);break;case fi.Password:if(di(o))break;(t=>ui.test(t))(o)||this.setFieldInvalid(t,i);break;case fi.StrongPassword:if(di(o))break;(t=>hi.test(t))(o)||this.setFieldInvalid(t,i);break;case fi.Number:if(di(o))break;(t=>"string"==typeof t&&!isNaN(+t)&&!isNaN(parseFloat(t)))(o)||this.setFieldInvalid(t,i);break;case fi.Integer:if(di(o))break;(t=>ci.test(t))(o)||this.setFieldInvalid(t,i);break;case fi.MaxNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(di(o))break;const e=+o;(Number.isNaN(e)||((t,e)=>t>e)(e,s))&&this.setFieldInvalid(t,i);break}case fi.MinNumber:{if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(di(o))break;const e=+o;(Number.isNaN(e)||((t,e)=>t<e)(e,s))&&this.setFieldInvalid(t,i);break}case fi.CustomRegexp:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(t,i);let e;try{e=new RegExp(s)}catch(e){console.error(`Value for ${i.rule} rule for [${t}] should be a valid regexp. This field will be always invalid.`),this.setFieldInvalid(t,i);break}const n=String(o);""===n||e.test(n)||this.setFieldInvalid(t,i);break}case fi.MinFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Number.isFinite(null==o?void 0:o.length)&&o.length<s){this.setFieldInvalid(t,i);break}break;case fi.MaxFilesCount:if(void 0===s){console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),this.setFieldInvalid(t,i);break}if("number"!=typeof s){console.error(`Value for ${i.rule} rule for [${t}] field should be a number. The field will be always invalid.`),this.setFieldInvalid(t,i);break}if(Number.isFinite(null==o?void 0:o.length)&&o.length>s){this.setFieldInvalid(t,i);break}break;case fi.Files:{if(void 0===s)return console.error(`Value for ${i.rule} rule for [${t}] field is not defined. This field will be always invalid.`),void this.setFieldInvalid(t,i);if("object"!=typeof s)return console.error(`Value for ${i.rule} rule for [${t}] field should be an object. This field will be always invalid.`),void this.setFieldInvalid(t,i);const e=s.files;if("object"!=typeof e)return console.error(`Value for ${i.rule} rule for [${t}] field should be an object with files array. This field will be always invalid.`),void this.setFieldInvalid(t,i);const n=(t,e)=>{const i=Number.isFinite(e.minSize)&&t.size<e.minSize,n=Number.isFinite(e.maxSize)&&t.size>e.maxSize,s=Array.isArray(e.names)&&!e.names.includes(t.name),o=Array.isArray(e.extensions)&&!e.extensions.includes(t.name.split(".")[t.name.split(".").length-1]),r=Array.isArray(e.types)&&!e.types.includes(t.type);return i||n||s||o||r};if("object"==typeof o&&null!==o)for(let s=0,r=o.length;s<r;++s){const r=o.item(s);if(!r){this.setFieldInvalid(t,i);break}if(n(r,e)){this.setFieldInvalid(t,i);break}}break}default:{if("function"!=typeof i.validator)return console.error(`Validator for custom rule for [${t}] field should be a function. This field will be always invalid.`),void this.setFieldInvalid(t,i);const e=i.validator(o,this.getCompatibleFields());if("boolean"!=typeof e&&"function"!=typeof e&&console.error(`Validator return value for [${t}] field should be boolean or function. It will be cast to boolean.`),"function"==typeof e){if(!n){this.fields[t].asyncCheckPending=!1;const n=e();return _i(n)?n.then((e=>{e||this.setFieldInvalid(t,i)})).catch((()=>{this.setFieldInvalid(t,i)})):(console.error(`Validator function for custom rule for [${t}] field should return a Promise. This field will be always invalid.`),void this.setFieldInvalid(t,i))}this.fields[t].asyncCheckPending=!0}e||this.setFieldInvalid(t,i)}}var r}}isFormValid(){let t=!0;for(let e=0,i=Object.values(this.fields).length;e<i;++e){const i=Object.values(this.fields)[e];if(void 0===i.isValid){t=void 0;break}if(!1===i.isValid){t=!1;break}}for(let e=0,i=Object.values(this.groupFields).length;e<i;++e){const i=Object.values(this.groupFields)[e];if(void 0===i.isValid){t=void 0;break}if(!1===i.isValid){t=!1;break}}return t}validateField(t,e=!1){var i;const n=this.fields[t];n.isValid=!0;const s=[];return[...n.rules].reverse().forEach((i=>{const o=this.validateFieldRule(t,n.elem,i,e);_i(o)&&s.push(o)})),n.isValid&&this.setFieldValid(t,null==(i=n.config)?void 0:i.successMessage),Promise.allSettled(s).finally((()=>{var t;e&&(null==(t=this.onValidateCallback)||t.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}revalidateField(t){if("string"!=typeof t&&!vi(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);return e&&this.fields[e]?new Promise((t=>{this.validateField(e,!0).finally((()=>{this.clearFieldStyle(e),this.clearFieldLabel(e),this.renderFieldError(e,!0),t(!!this.fields[e].isValid)}))})):(console.error("Field not found. Check the field selector."),Promise.reject())}revalidateGroup(t){if("string"!=typeof t&&!vi(t))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);return e&&this.groupFields[e]?new Promise((t=>{this.validateGroup(e).finally((()=>{this.clearFieldLabel(e),this.renderGroupError(e,!0),t(!!this.groupFields[e].isValid)}))})):(console.error("Group not found. Check the group selector."),Promise.reject())}validateGroup(t,e=!1){const i=this.groupFields[t],n=[];return[...i.rules].reverse().forEach((e=>{const s=this.validateGroupRule(t,i.elems,e);_i(s)&&n.push(s)})),Promise.allSettled(n).finally((()=>{var t;e&&(null==(t=this.onValidateCallback)||t.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}))}))}focusInvalidField(){for(const t in this.fields){const e=this.fields[t];if(!e.isValid){setTimeout((()=>e.elem.focus()),0);break}}}afterSubmitValidation(t=!1){this.renderErrors(t),this.globalConfig.focusInvalidField&&this.focusInvalidField()}validate(t=!1){return new Promise((e=>{const i=[];Object.keys(this.fields).forEach((t=>{const e=this.validateField(t);_i(e)&&i.push(e)})),Object.keys(this.groupFields).forEach((t=>{const e=this.validateGroup(t);_i(e)&&i.push(e)})),Promise.allSettled(i).then((()=>{var n;this.afterSubmitValidation(t),null==(n=this.onValidateCallback)||n.call(this,{isValid:this.isFormValid(),isSubmitted:this.isSubmitted,fields:this.getCompatibleFields(),groups:{...this.groupFields}}),e(!!i.length)}))}))}revalidate(){return new Promise((t=>{this.validateHandler(void 0,!0).finally((()=>{this.globalConfig.focusInvalidField&&this.focusInvalidField(),t(this.isValid)}))}))}validateHandler(t,e=!1){return this.globalConfig.lockForm&&this.lockForm(),this.validate(e).finally((()=>{var e,i,n;this.globalConfig.lockForm&&this.unlockForm(),this.isValid?(null==(e=this.onSuccessCallback)||e.call(this,t),this.globalConfig.submitFormAutomatically&&(null==(i=null==t?void 0:t.currentTarget)||i.submit())):null==(n=this.onFailCallback)||n.call(this,this.getCompatibleFields(),this.groupFields)}))}setForm(t){this.form=t,this.form.setAttribute("novalidate","novalidate"),this.removeListener("submit",this.form,this.formSubmitHandler),this.addListener("submit",this.form,this.formSubmitHandler)}addListener(t,e,i){e.addEventListener(t,i),this.eventListeners.push({type:t,elem:e,func:i})}removeListener(t,e,i){e.removeEventListener(t,i),this.eventListeners=this.eventListeners.filter((i=>i.type!==t||i.elem!==e))}addField(t,e,i){if("string"!=typeof t&&!vi(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");let n;if(n="string"==typeof t?this.form.querySelector(t):t,!n)throw Error("Field doesn't exist in the DOM! Please check the field selector.");if(!Array.isArray(e)||!e.length)throw Error("Rules argument should be an array and should contain at least 1 element.");e.forEach((t=>{if(!("rule"in t||"validator"in t||"plugin"in t))throw Error("Rules argument must contain at least one rule or validator property.");if(!(t.validator||t.plugin||t.rule&&Object.values(fi).includes(t.rule)))throw Error(`Rule should be one of these types: ${Object.values(fi).join(", ")}. Provided value: ${t.rule}`)}));const s=this.setKeyByFieldSelector(t);return this.fields[s]={elem:n,rules:e,isValid:void 0,touched:!1,config:i},this.setListeners(n),(this.isSubmitted||this.globalConfig.validateBeforeSubmitting)&&this.validateField(s),this}removeField(t){if("string"!=typeof t&&!vi(t))throw Error("Field selector is not valid. Please specify a string selector or a valid DOM element.");const e=this.getKeyByFieldSelector(t);if(!e||!this.fields[e])return console.error("Field not found. Check the field selector."),this;const i=this.getListenerType(this.fields[e].elem.type);return this.removeListener(i,this.fields[e].elem,this.handlerChange),this.clearErrors(),delete this.fields[e],this}removeGroup(t){if("string"!=typeof t)throw Error("Group selector is not valid. Please specify a string selector.");const e=this.getKeyByFieldSelector(t);return e&&this.groupFields[e]?(this.groupFields[e].elems.forEach((t=>{const e=this.getListenerType(t.type);this.removeListener(e,t,this.handlerChange)})),this.clearErrors(),delete this.groupFields[e],this):(console.error("Group not found. Check the group selector."),this)}addRequiredGroup(t,e,i,n){if("string"!=typeof t&&!vi(t))throw Error("Group selector is not valid. Please specify a string selector or a valid DOM element.");let s;if(s="string"==typeof t?this.form.querySelector(t):t,!s)throw Error("Group selector not found! Please check the group selector.");const o=s.querySelectorAll("input"),r=Array.from(o).filter((t=>{const e=((t,e)=>{const i=[...e].reverse();for(let e=0,n=i.length;e<n;++e){const n=i[e];for(const e in t){const i=t[e];if(i.groupElem===n)return[e,i]}}return null})(this.groupFields,(t=>{let e=t;const i=[];for(;e;)i.unshift(e),e=e.parentNode;return i})(t));return!e||e[1].elems.find((e=>e!==t))})),a=this.setKeyByFieldSelector(t);return this.groupFields[a]={rules:[{rule:pi.Required,errorMessage:e,successMessage:n}],groupElem:s,elems:r,touched:!1,isValid:void 0,config:i},o.forEach((t=>{this.setListeners(t)})),this}getListenerType(t){switch(t){case"checkbox":case"select-one":case"file":case"radio":return"change";default:return"input"}}setListeners(t){const e=this.getListenerType(t.type);this.removeListener(e,t,this.handlerChange),this.addListener(e,t,this.handlerChange)}clearFieldLabel(t){var e,i;null==(e=this.errorLabels[t])||e.remove(),null==(i=this.successLabels[t])||i.remove()}clearFieldStyle(t){var e,i,n,s;const o=this.fields[t],r=(null==(e=o.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(r).forEach((t=>{o.elem.style[t]=""}));const a=(null==(i=o.config)?void 0:i.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(a).forEach((t=>{o.elem.style[t]=""})),o.elem.classList.remove(...bi((null==(n=o.config)?void 0:n.errorFieldCssClass)||this.globalConfig.errorFieldCssClass),...bi((null==(s=o.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}clearErrors(){var t,e;Object.keys(this.errorLabels).forEach((t=>this.errorLabels[t].remove())),Object.keys(this.successLabels).forEach((t=>this.successLabels[t].remove()));for(const t in this.fields)this.clearFieldStyle(t);for(const i in this.groupFields){const n=this.groupFields[i],s=(null==(t=n.config)?void 0:t.errorFieldStyle)||this.globalConfig.errorFieldStyle;Object.keys(s).forEach((t=>{n.elems.forEach((e=>{var i;e.style[t]="",e.classList.remove(...bi((null==(i=n.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}))}));const o=(null==(e=n.config)?void 0:e.successFieldStyle)||this.globalConfig.successFieldStyle||{};Object.keys(o).forEach((t=>{n.elems.forEach((e=>{var i;e.style[t]="",e.classList.remove(...bi((null==(i=n.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}))}))}this.tooltips=[]}isTooltip(){return!!this.globalConfig.tooltip}lockForm(){const t=this.form.querySelectorAll("input, textarea, button, select");for(let e=0,i=t.length;e<i;++e)t[e].setAttribute("data-just-validate-fallback-disabled",t[e].disabled?"true":"false"),t[e].setAttribute("disabled","disabled"),t[e].style.pointerEvents="none",t[e].style.webkitFilter="grayscale(100%)",t[e].style.filter="grayscale(100%)"}unlockForm(){const t=this.form.querySelectorAll("input, textarea, button, select");for(let e=0,i=t.length;e<i;++e)"true"!==t[e].getAttribute("data-just-validate-fallback-disabled")&&t[e].removeAttribute("disabled"),t[e].style.pointerEvents="",t[e].style.webkitFilter="",t[e].style.filter=""}renderTooltip(t,e,i){var n;const{top:s,left:o,width:r,height:a}=t.getBoundingClientRect(),l=e.getBoundingClientRect(),c=i||(null==(n=this.globalConfig.tooltip)?void 0:n.position);switch(c){case"left":e.style.top=s+a/2-l.height/2+"px",e.style.left=o-l.width-5+"px";break;case"top":e.style.top=s-l.height-5+"px",e.style.left=o+r/2-l.width/2+"px";break;case"right":e.style.top=s+a/2-l.height/2+"px",e.style.left=`${o+r+5}px`;break;case"bottom":e.style.top=`${s+a+5}px`,e.style.left=o+r/2-l.width/2+"px"}e.dataset.direction=c;return{refresh:()=>{this.renderTooltip(t,e,i)}}}createErrorLabelElem(t,e,i){const n=document.createElement("div");n.innerHTML=e;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(...bi((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-${t}`),this.errorLabels[t]=n,n}createSuccessLabelElem(t,e,i){if(void 0===e)return null;const n=document.createElement("div");n.innerHTML=e;const s=(null==i?void 0:i.successLabelStyle)||this.globalConfig.successLabelStyle;return Object.assign(n.style,s),n.classList.add(...bi((null==i?void 0:i.successLabelCssClass)||this.globalConfig.successLabelCssClass),"just-validate-success-label"),this.globalConfig.testingMode&&(n.dataset.testId=`success-label-${t}`),this.successLabels[t]=n,n}renderErrorsContainer(t,e){const i=e||this.globalConfig.errorsContainer;if("string"==typeof i){const e=this.form.querySelector(i);if(e)return e.appendChild(t),!0;console.error(`Error container with ${i} selector not found. Errors will be rendered as usual`)}return i instanceof Element?(i.appendChild(t),!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(t,e,i,n){if(!n){if(this.renderErrorsContainer(e,i))return}t.appendChild(e)}renderFieldLabel(t,e,i,n){var s,o,r,a,l,c,u;if(!n){if(this.renderErrorsContainer(e,i))return}if("checkbox"===t.type||"radio"===t.type){const i=document.querySelector(`label[for="${t.getAttribute("id")}"]`);"label"===(null==(o=null==(s=t.parentElement)?void 0:s.tagName)?void 0:o.toLowerCase())?null==(a=null==(r=t.parentElement)?void 0:r.parentElement)||a.appendChild(e):i?null==(l=i.parentElement)||l.appendChild(e):null==(c=t.parentElement)||c.appendChild(e)}else null==(u=t.parentElement)||u.appendChild(e)}showLabels(t,e){Object.keys(t).forEach(((i,n)=>{const s=t[i],o=this.getKeyByFieldSelector(i);if(!o||!this.fields[o])return void console.error("Field not found. Check the field selector.");const r=this.fields[o];r.isValid=!e,this.clearFieldStyle(o),this.clearFieldLabel(o),this.renderFieldError(o,!1,s),0===n&&this.globalConfig.focusInvalidField&&setTimeout((()=>r.elem.focus()),0)}))}showErrors(t){if("object"!=typeof t)throw Error("[showErrors]: Errors should be an object with key: value format");this.showLabels(t,!0)}showSuccessLabels(t){if("object"!=typeof t)throw Error("[showSuccessLabels]: Labels should be an object with key: value format");this.showLabels(t,!1)}renderFieldError(t,e=!1,i){var n,s,o,r,a,l;const c=this.fields[t];if(!1===c.isValid&&(this.isValid=!1),void 0===c.isValid||!e&&!this.isSubmitted&&!c.touched&&void 0===i)return;if(c.isValid){if(!c.asyncCheckPending){const e=this.createSuccessLabelElem(t,void 0!==i?i:c.successMessage,c.config);e&&this.renderFieldLabel(c.elem,e,null==(n=c.config)?void 0:n.errorsContainer,!0),c.elem.classList.add(...bi((null==(s=c.config)?void 0:s.successFieldCssClass)||this.globalConfig.successFieldCssClass))}return}c.elem.classList.add(...bi((null==(o=c.config)?void 0:o.errorFieldCssClass)||this.globalConfig.errorFieldCssClass));const u=this.createErrorLabelElem(t,void 0!==i?i:c.errorMessage,c.config);this.renderFieldLabel(c.elem,u,null==(r=c.config)?void 0:r.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(c.elem,u,null==(l=null==(a=c.config)?void 0:a.tooltip)?void 0:l.position))}renderGroupError(t,e=!0){var i,n,s,o;const r=this.groupFields[t];if(!1===r.isValid&&(this.isValid=!1),void 0===r.isValid||!e&&!this.isSubmitted&&!r.touched)return;if(r.isValid){r.elems.forEach((t=>{var e,i;Object.assign(t.style,(null==(e=r.config)?void 0:e.successFieldStyle)||this.globalConfig.successFieldStyle),t.classList.add(...bi((null==(i=r.config)?void 0:i.successFieldCssClass)||this.globalConfig.successFieldCssClass))}));const e=this.createSuccessLabelElem(t,r.successMessage,r.config);return void(e&&this.renderGroupLabel(r.groupElem,e,null==(i=r.config)?void 0:i.errorsContainer,!0))}this.isValid=!1,r.elems.forEach((t=>{var e,i;Object.assign(t.style,(null==(e=r.config)?void 0:e.errorFieldStyle)||this.globalConfig.errorFieldStyle),t.classList.add(...bi((null==(i=r.config)?void 0:i.errorFieldCssClass)||this.globalConfig.errorFieldCssClass))}));const a=this.createErrorLabelElem(t,r.errorMessage,r.config);this.renderGroupLabel(r.groupElem,a,null==(n=r.config)?void 0:n.errorsContainer),this.isTooltip()&&this.tooltips.push(this.renderTooltip(r.groupElem,a,null==(o=null==(s=r.config)?void 0:s.tooltip)?void 0:o.position))}renderErrors(t=!1){if(this.isSubmitted||t||this.globalConfig.validateBeforeSubmitting){this.clearErrors(),this.isValid=!0;for(const t in this.groupFields)this.renderGroupError(t);for(const t in this.fields)this.renderFieldError(t)}}destroy(){this.eventListeners.forEach((t=>{this.removeListener(t.type,t.elem,t.func)})),Object.keys(this.customStyleTags).forEach((t=>{this.customStyleTags[t].remove()})),this.clearErrors(),this.globalConfig.lockForm&&this.unlockForm()}refresh(){this.destroy(),this.form?(this.initialize(this.form,this.globalConfig),Object.keys(this.fields).forEach((t=>{const e=this.getFieldSelectorByKey(t);e&&this.addField(e,[...this.fields[t].rules],this.fields[t].config)}))):console.error("Cannot initialize the library! Form is not defined")}setCurrentLocale(t){"string"==typeof t||void 0===t?(this.currentLocale=t,this.isSubmitted&&this.validate()):console.error("Current locale should be a string")}onSuccess(t){return this.onSuccessCallback=t,this}onFail(t){return this.onFailCallback=t,this}onValidate(t){return this.onValidateCallback=t,this}}class Ei{constructor(t,e,i,n,s){this.targetNode=t,this.classToWatch=e,this.classAddedCallback=i,this.classRemovedCallback=n,this.observer=null,this.lastClassState=t.classList.contains(this.classToWatch),this.ignoreToggle=!!s,this.init()}init(){this.observer=new MutationObserver((t=>this.mutationCallback(t))),this.observe()}observe(){this.observer.observe(this.targetNode,{attributes:!0})}disconnect(){this.observer.disconnect()}mutationCallback(t){for(let e of t)if("attributes"===e.type&&"class"===e.attributeName){let t=e.target.classList.contains(this.classToWatch);(this.ignoreToggle||this.lastClassState!==t)&&(this.lastClassState=t,t?"function"==typeof this.classAddedCallback&&this.classAddedCallback():"function"==typeof this.classRemovedCallback&&this.classRemovedCallback())}}}class Ci{constructor(t,e,i,n){this.targetNode=t,this.contentSelector=e,this.contentAddedCallback=i,this.contentRemovedCallback=n,this.observer=null,this.init()}init(){this.observer=new MutationObserver((t=>this.mutationCallback(t))),this.observe()}observe(){this.observer.observe(this.targetNode,{childList:!0,subtree:!0})}disconnect(){this.observer.disconnect()}mutationCallback(t){for(let e of t)"childList"===e.type&&(e.addedNodes.forEach((t=>{this._callbackExec(t)})),e.removedNodes.forEach((t=>{this._callbackExec(t,!0)})))}_callbackExec(t,e){const i=t.matches&&t.matches(this.contentSelector)?[t]:t.querySelectorAll?t.querySelectorAll(this.contentSelector):null,n=e&&"function"==typeof this.contentRemovedCallback?this.contentRemovedCallback:"function"==typeof this.contentAddedCallback?this.contentAddedCallback:null;i&&n&&i.forEach((t=>n(t)))}}const Si={errorFieldCssClass:"is-invalid",errorLabelCssClass:"just-validate-error-label"},ki="justvalidatebi";class xi extends Y{constructor(t){super(t),this._label=new st(t),this._bindEvents()}static get NAME(){return"input"}_bindEvents(){"file"===this._element.getAttribute("type")&&z.on(this._element,"change.bs.input",(()=>{this._handleFileDescription()}))}_handleFileDescription(){const t=[];let e="";Array.from(this._element.files).forEach((e=>{const i=Math.round(parseInt(e.size,10)/1024);t.push(e.name+" ("+i+"kb)")})),this._element.files.length>1&&(e=this._element.files.length+" file da caricare: ");const i=K.findOne('label[for="'+this._element.getAttribute("id")+'"] label.form-file-name',this._element);i&&(i.innerText=e+t.join("; "))}}const Ti=["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(t){(t=>{const e=!!Ti.find((e=>t.matches(e))),i=!("number"!==t.getAttribute("type")||!t.parentNode.querySelector('button[class^="input-number-"]'));e||i||xi.getOrCreateInstance(t)})(st.getInputFromLabel(t)||t)}))}));var Ai="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Oi(t,e){return t(e={exports:{}},e.exports),e.exports}var Li=Oi((function(t,e){var i;globalThis,i=()=>(()=>{var t={8952:(t,e,i)=>{var n=i(4328),s=i(36),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(s(t)+" is not a function")}},6100:(t,e,i)=>{var n=i(7e3),s=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new s("Incorrect invocation")}},3951:(t,e,i)=>{var n=i(1632),s=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(s(t)+" is not an object")}},2504:(t,e,i)=>{var n=i(4096),s=i(2495),o=i(3556),r=function(t){return function(e,i,r){var a=n(e),l=o(a);if(0===l)return!t&&-1;var c,u=s(r,l);if(t&&i!=i){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((t||u in a)&&a[u]===i)return t||u||0;return!t&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},6728:(t,e,i)=>{var n=i(3476),s=i(1432),o=TypeError,r=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(s(t)&&!r(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8696:(t,e,i)=>{var n=i(3951),s=i(3112);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){s(t,"throw",e)}}},1888:(t,e,i)=>{var n=i(1664),s=n({}.toString),o=n("".slice);t.exports=function(t){return o(s(t),8,-1)}},9968:(t,e,i)=>{var n=i(5152),s=i(9252),o=i(9444),r=i(8352);t.exports=function(t,e,i){for(var a=s(e),l=r.f,c=o.f,u=0;u<a.length;u++){var h=a[u];n(t,h)||i&&n(i,h)||l(t,h,c(e,h))}}},2272:(t,e,i)=>{var n=i(9957);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},3336:t=>{t.exports=function(t,e){return{value:t,done:e}}},3440:(t,e,i)=>{var n=i(3476),s=i(8352),o=i(9728);t.exports=n?function(t,e,i){return s.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},9728:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},92:(t,e,i)=>{var n=i(3476),s=i(8352),o=i(9728);t.exports=function(t,e,i){n?s.f(t,e,o(0,i)):t[e]=i}},2544:(t,e,i)=>{var n=i(5312),s=i(8352);t.exports=function(t,e,i){return i.get&&n(i.get,e,{getter:!0}),i.set&&n(i.set,e,{setter:!0}),s.f(t,e,i)}},6076:(t,e,i)=>{var n=i(4328),s=i(8352),o=i(5312),r=i(4636);t.exports=function(t,e,i,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(n(i)&&o(i,c,a),a.global)l?t[e]=i:r(e,i);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:s.f(t,e,{value:i,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},4036:(t,e,i)=>{var n=i(6076);t.exports=function(t,e,i){for(var s in e)n(t,s,e[s],i);return t}},4636:(t,e,i)=>{var n=i(6420),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},3476:(t,e,i)=>{var n=i(9957);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8168:(t,e,i)=>{var n=i(6420),s=i(1632),o=n.document,r=s(o)&&s(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},4316:t=>{var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}},6064:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},8504:(t,e,i)=>{var n,s,o=i(6420),r=i(6064),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&r&&(!(n=r.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=r.match(/Chrome\/(\d+)/))&&(s=+n[1]),t.exports=s},8256:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9160:(t,e,i)=>{var n=i(6420),s=i(9444).f,o=i(3440),r=i(6076),a=i(4636),l=i(9968),c=i(6704);t.exports=function(t,e){var i,u,h,d,f,p=t.target,m=t.global,g=t.stat;if(i=m?n:g?n[p]||a(p,{}):n[p]&&n[p].prototype)for(u in e){if(d=e[u],h=t.dontCallGetSet?(f=s(i,u))&&f.value:i[u],!c(m?u:p+(g?".":"#")+u,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),r(i,u,d,t)}}},9957:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7332:(t,e,i)=>{var n=i(9957);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8448:(t,e,i)=>{var n=i(7332),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},6208:(t,e,i)=>{var n=i(3476),s=i(5152),o=Function.prototype,r=n&&Object.getOwnPropertyDescriptor,a=s(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&r(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},1664:(t,e,i)=>{var n=i(7332),s=Function.prototype,o=s.call,r=n&&s.bind.bind(o,o);t.exports=n?r:function(t){return function(){return o.apply(t,arguments)}}},5232:(t,e,i)=>{var n=i(6420),s=i(4328);t.exports=function(t,e){return arguments.length<2?(i=n[t],s(i)?i:void 0):n[t]&&n[t][e];var i}},6752:t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},4504:(t,e,i)=>{var n=i(8952),s=i(9760);t.exports=function(t,e){var i=t[e];return s(i)?void 0:n(i)}},6420:function(t,e,i){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},5152:(t,e,i)=>{var n=i(1664),s=i(4356),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(s(t),e)}},2560:t=>{t.exports={}},4168:(t,e,i)=>{var n=i(5232);t.exports=n("document","documentElement")},9888:(t,e,i)=>{var n=i(3476),s=i(9957),o=i(8168);t.exports=!n&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},5712:(t,e,i)=>{var n=i(1664),s=i(9957),o=i(1888),r=Object,a=n("".split);t.exports=s((function(){return!r("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?a(t,""):r(t)}:r},9112:(t,e,i)=>{var n=i(1664),s=i(4328),o=i(3976),r=n(Function.toString);s(o.inspectSource)||(o.inspectSource=function(t){return r(t)}),t.exports=o.inspectSource},9104:(t,e,i)=>{var n,s,o,r=i(4288),a=i(6420),l=i(1632),c=i(3440),u=i(5152),h=i(3976),d=i(6504),f=i(2560),p="Object already initialized",m=a.TypeError,g=a.WeakMap;if(r||h.state){var _=h.state||(h.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,n=function(t,e){if(_.has(t))throw new m(p);return e.facade=t,_.set(t,e),e},s=function(t){return _.get(t)||{}},o=function(t){return _.has(t)}}else{var b=d("state");f[b]=!0,n=function(t,e){if(u(t,b))throw new m(p);return e.facade=t,c(t,b,e),e},s=function(t){return u(t,b)?t[b]:{}},o=function(t){return u(t,b)}}t.exports={set:n,get:s,has:o,enforce:function(t){return o(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return i}}}},1432:(t,e,i)=>{var n=i(1888);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4328:t=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},6704:(t,e,i)=>{var n=i(9957),s=i(4328),o=/#|\.prototype\./,r=function(t,e){var i=l[a(t)];return i===u||i!==c&&(s(e)?n(e):!!e)},a=r.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=r.data={},c=r.NATIVE="N",u=r.POLYFILL="P";t.exports=r},9760:t=>{t.exports=function(t){return null==t}},1632:(t,e,i)=>{var n=i(4328);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},7048:t=>{t.exports=!1},7728:(t,e,i)=>{var n=i(5232),s=i(4328),o=i(7e3),r=i(6536),a=Object;t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&o(e.prototype,a(t))}},3112:(t,e,i)=>{var n=i(8448),s=i(3951),o=i(4504);t.exports=function(t,e,i){var r,a;s(t);try{if(!(r=o(t,"return"))){if("throw"===e)throw i;return i}r=n(r,t)}catch(t){a=!0,r=t}if("throw"===e)throw i;if(a)throw r;return s(r),i}},9724:(t,e,i)=>{var n=i(8448),s=i(9368),o=i(3440),r=i(4036),a=i(9972),l=i(9104),c=i(4504),u=i(336).IteratorPrototype,h=i(3336),d=i(3112),f=a("toStringTag"),p="IteratorHelper",m="WrapForValidIterator",g=l.set,_=function(t){var e=l.getterFor(t?m:p);return r(s(u),{next:function(){var i=e(this);if(t)return i.nextHandler();try{var n=i.done?void 0:i.nextHandler();return h(n,i.done)}catch(t){throw i.done=!0,t}},return:function(){var i=e(this),s=i.iterator;if(i.done=!0,t){var o=c(s,"return");return o?n(o,s):h(void 0,!0)}if(i.inner)try{d(i.inner.iterator,"normal")}catch(t){return d(s,"throw",t)}return d(s,"normal"),h(void 0,!0)}})},b=_(!0),v=_(!1);o(v,f,"Iterator Helper"),t.exports=function(t,e){var i=function(i,n){n?(n.iterator=i.iterator,n.next=i.next):n=i,n.type=e?m:p,n.nextHandler=t,n.counter=0,n.done=!1,g(this,n)};return i.prototype=e?b:v,i}},5792:(t,e,i)=>{var n=i(8448),s=i(8952),o=i(3951),r=i(6752),a=i(9724),l=i(8696),c=a((function(){var t=this.iterator,e=o(n(this.next,t));if(!(this.done=!!e.done))return l(t,this.mapper,[e.value,this.counter++],!0)}));t.exports=function(t){return o(this),s(t),new c(r(this),{mapper:t})}},336:(t,e,i)=>{var n,s,o,r=i(9957),a=i(4328),l=i(1632),c=i(9368),u=i(7796),h=i(6076),d=i(9972),f=i(7048),p=d("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(s=u(u(o)))!==Object.prototype&&(n=s):m=!0),!l(n)||r((function(){var t={};return n[p].call(t)!==t}))?n={}:f&&(n=c(n)),a(n[p])||h(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},3556:(t,e,i)=>{var n=i(7584);t.exports=function(t){return n(t.length)}},5312:(t,e,i)=>{var n=i(1664),s=i(9957),o=i(4328),r=i(5152),a=i(3476),l=i(6208).CONFIGURABLE,c=i(9112),u=i(9104),h=u.enforce,d=u.get,f=String,p=Object.defineProperty,m=n("".slice),g=n("".replace),_=n([].join),b=a&&!s((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),y=t.exports=function(t,e,i){"Symbol("===m(f(e),0,7)&&(e="["+g(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!r(t,"name")||l&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),b&&i&&r(i,"arity")&&t.length!==i.arity&&p(t,"length",{value:i.arity});try{i&&r(i,"constructor")&&i.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=h(t);return r(n,"source")||(n.source=_(v,"string"==typeof e?e:"")),t};Function.prototype.toString=y((function(){return o(this)&&d(this).source||c(this)}),"toString")},1748:t=>{var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?i:e)(n)}},9368:(t,e,i)=>{var n,s=i(3951),o=i(2056),r=i(8256),a=i(2560),l=i(4168),c=i(8168),u=i(6504),h="prototype",d="script",f=u("IE_PROTO"),p=function(){},m=function(t){return"<"+d+">"+t+"</"+d+">"},g=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;_="undefined"!=typeof document?document.domain&&n?g(n):(e=c("iframe"),i="java"+d+":",e.style.display="none",l.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):g(n);for(var s=r.length;s--;)delete _[h][r[s]];return _()};a[f]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(p[h]=s(t),i=new p,p[h]=null,i[f]=t):i=_(),void 0===e?i:o.f(i,e)}},2056:(t,e,i)=>{var n=i(3476),s=i(1576),o=i(8352),r=i(3951),a=i(4096),l=i(1531);e.f=n&&!s?Object.defineProperties:function(t,e){r(t);for(var i,n=a(e),s=l(e),c=s.length,u=0;c>u;)o.f(t,i=s[u++],n[i]);return t}},8352:(t,e,i)=>{var n=i(3476),s=i(9888),o=i(1576),r=i(3951),a=i(88),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";e.f=n?o?function(t,e,i){if(r(t),e=a(e),r(i),"function"==typeof t&&"prototype"===e&&"value"in i&&f in i&&!i[f]){var n=u(t,e);n&&n[f]&&(t[e]=i.value,i={configurable:d in i?i[d]:n[d],enumerable:h in i?i[h]:n[h],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(r(t),e=a(e),r(i),s)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},9444:(t,e,i)=>{var n=i(3476),s=i(8448),o=i(8912),r=i(9728),a=i(4096),l=i(88),c=i(5152),u=i(9888),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=l(e),u)try{return h(t,e)}catch(t){}if(c(t,e))return r(!s(o.f,t,e),t[e])}},5048:(t,e,i)=>{var n=i(9008),s=i(8256).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},9392:(t,e)=>{e.f=Object.getOwnPropertySymbols},7796:(t,e,i)=>{var n=i(5152),s=i(4328),o=i(4356),r=i(6504),a=i(2272),l=r("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=o(t);if(n(e,l))return e[l];var i=e.constructor;return s(i)&&e instanceof i?i.prototype:e instanceof c?u:null}},7e3:(t,e,i)=>{var n=i(1664);t.exports=n({}.isPrototypeOf)},9008:(t,e,i)=>{var n=i(1664),s=i(5152),o=i(4096),r=i(2504).indexOf,a=i(2560),l=n([].push);t.exports=function(t,e){var i,n=o(t),c=0,u=[];for(i in n)!s(a,i)&&s(n,i)&&l(u,i);for(;e.length>c;)s(n,i=e[c++])&&(~r(u,i)||l(u,i));return u}},1531:(t,e,i)=>{var n=i(9008),s=i(8256);t.exports=Object.keys||function(t){return n(t,s)}},8912:(t,e)=>{var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!i.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},2104:(t,e,i)=>{var n=i(8448),s=i(4328),o=i(1632),r=TypeError;t.exports=function(t,e){var i,a;if("string"===e&&s(i=t.toString)&&!o(a=n(i,t)))return a;if(s(i=t.valueOf)&&!o(a=n(i,t)))return a;if("string"!==e&&s(i=t.toString)&&!o(a=n(i,t)))return a;throw new r("Can't convert object to primitive value")}},9252:(t,e,i)=>{var n=i(5232),s=i(1664),o=i(5048),r=i(9392),a=i(3951),l=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),i=r.f;return i?l(e,i(t)):e}},5436:(t,e,i)=>{var n=i(9760),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},6504:(t,e,i)=>{var n=i(4696),s=i(7776),o=n("keys");t.exports=function(t){return o[t]||(o[t]=s(t))}},3976:(t,e,i)=>{var n=i(7048),s=i(6420),o=i(4636),r="__core-js_shared__",a=t.exports=s[r]||o(r,{});(a.versions||(a.versions=[])).push({version:"3.36.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},4696:(t,e,i)=>{var n=i(3976);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},772:(t,e,i)=>{var n=i(8504),s=i(9957),o=i(6420).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2495:(t,e,i)=>{var n=i(6180),s=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?s(i+e,0):o(i,e)}},4096:(t,e,i)=>{var n=i(5712),s=i(5436);t.exports=function(t){return n(s(t))}},6180:(t,e,i)=>{var n=i(1748);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},7584:(t,e,i)=>{var n=i(6180),s=Math.min;t.exports=function(t){var e=n(t);return e>0?s(e,9007199254740991):0}},4356:(t,e,i)=>{var n=i(5436),s=Object;t.exports=function(t){return s(n(t))}},7024:(t,e,i)=>{var n=i(8448),s=i(1632),o=i(7728),r=i(4504),a=i(2104),l=i(9972),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!s(t)||o(t))return t;var i,l=r(t,u);if(l){if(void 0===e&&(e="default"),i=n(l,t,e),!s(i)||o(i))return i;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},88:(t,e,i)=>{var n=i(7024),s=i(7728);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},36:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},7776:(t,e,i)=>{var n=i(1664),s=0,o=Math.random(),r=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++s+o,36)}},6536:(t,e,i)=>{var n=i(772);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1576:(t,e,i)=>{var n=i(3476),s=i(9957);t.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4288:(t,e,i)=>{var n=i(6420),s=i(4328),o=n.WeakMap;t.exports=s(o)&&/native code/.test(String(o))},9972:(t,e,i)=>{var n=i(6420),s=i(4696),o=i(5152),r=i(7776),a=i(772),l=i(6536),c=n.Symbol,u=s("wks"),h=l?c.for||c:c&&c.withoutSetter||r;t.exports=function(t){return o(u,t)||(u[t]=a&&o(c,t)?c[t]:h("Symbol."+t)),u[t]}},4728:(t,e,i)=>{var n=i(9160),s=i(4356),o=i(3556),r=i(6728),a=i(4316);n({target:"Array",proto:!0,arity:1,forced:i(9957)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=s(this),i=o(e),n=arguments.length;a(i+n);for(var l=0;l<n;l++)e[i]=arguments[l],i++;return r(e,i),i}})},3536:(t,e,i)=>{var n=i(9160),s=i(6420),o=i(6100),r=i(3951),a=i(4328),l=i(7796),c=i(2544),u=i(92),h=i(9957),d=i(5152),f=i(9972),p=i(336).IteratorPrototype,m=i(3476),g=i(7048),_="constructor",b="Iterator",v=f("toStringTag"),y=TypeError,w=s[b],E=g||!a(w)||w.prototype!==p||!h((function(){w({})})),C=function(){if(o(this,p),l(this)===p)throw new y("Abstract class Iterator not directly constructable")},S=function(t,e){m?c(p,t,{configurable:!0,get:function(){return e},set:function(e){if(r(this),this===p)throw new y("You can't redefine this property");d(this,t)?this[t]=e:u(this,t,e)}}):p[t]=e};d(p,v)||S(v,b),!E&&d(p,_)&&p[_]!==Object||S(_,C),C.prototype=p,n({global:!0,constructor:!0,forced:E},{Iterator:C})},2144:(t,e,i)=>{var n=i(9160),s=i(8448),o=i(8952),r=i(3951),a=i(6752),l=i(9724),c=i(8696),u=i(7048),h=l((function(){for(var t,e,i=this.iterator,n=this.predicate,o=this.next;;){if(t=r(s(o,i)),this.done=!!t.done)return;if(e=t.value,c(i,n,[e,this.counter++],!0))return e}}));n({target:"Iterator",proto:!0,real:!0,forced:u},{filter:function(t){return r(this),o(t),new h(a(this),{predicate:t})}})},9080:(t,e,i)=>{var n=i(9160),s=i(5792);n({target:"Iterator",proto:!0,real:!0,forced:i(7048)},{map:s})}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,i),o.exports}i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{i.d(n,{default:()=>q}),i(3536),i(2144),i(9080);var t=function(){},e={},s=[],o=[];function r(i,n){var r,a,l,c,u=o;for(c=arguments.length;c-- >2;)s.push(arguments[c]);for(n&&null!=n.children&&(s.length||s.push(n.children),delete n.children);s.length;)if((a=s.pop())&&void 0!==a.pop)for(c=a.length;c--;)s.push(a[c]);else"boolean"==typeof a&&(a=null),(l="function"!=typeof i)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(l=!1)),l&&r?u[u.length-1]+=a:u===o?u=[a]:u.push(a),r=l;var h=new t;return h.nodeName=i,h.children=u,h.attributes=null==n?void 0:n,h.key=null==n?void 0:n.key,void 0!==e.vnode&&e.vnode(h),h}function a(t,e){for(var i in e)t[i]=e[i];return t}function l(t,e){t&&("function"==typeof t?t(e):t.current=e)}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout,u=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,h=[];function d(t){!t._dirty&&(t._dirty=!0)&&1==h.push(t)&&(e.debounceRendering||c)(f)}function f(){for(var t;t=h.pop();)t._dirty&&M(t)}function p(t,e,i){return"string"==typeof e||"number"==typeof e?void 0!==t.splitText:"string"==typeof e.nodeName?!t._componentConstructor&&m(t,e.nodeName):i||t._componentConstructor===e.nodeName}function m(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function g(t){var e=a({},t.attributes);e.children=t.children;var i=t.nodeName.defaultProps;if(void 0!==i)for(var n in i)void 0===e[n]&&(e[n]=i[n]);return e}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function b(t,e,i,n,s){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)l(i,null),l(n,t);else if("class"!==e||s)if("style"===e){if(n&&"string"!=typeof n&&"string"!=typeof i||(t.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof i)for(var o in i)o in n||(t.style[o]="");for(var o in n)t.style[o]="number"==typeof n[o]&&!1===u.test(o)?n[o]+"px":n[o]}}else if("dangerouslySetInnerHTML"===e)n&&(t.innerHTML=n.__html||"");else if("o"==e[0]&&"n"==e[1]){var r=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),n?i||t.addEventListener(e,v,r):t.removeEventListener(e,v,r),(t._listeners||(t._listeners={}))[e]=n}else if("list"!==e&&"type"!==e&&!s&&e in t){try{t[e]=null==n?"":n}catch(t){}null!=n&&!1!==n||"spellcheck"==e||t.removeAttribute(e)}else{var a=s&&e!==(e=e.replace(/^xlink:?/,""));null==n||!1===n?a?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof n&&(a?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),n):t.setAttribute(e,n))}else t.className=n||""}function v(t){return this._listeners[t.type](e.event&&e.event(t)||t)}var y=[],w=0,E=!1,C=!1;function S(){for(var t;t=y.shift();)e.afterMount&&e.afterMount(t),t.componentDidMount&&t.componentDidMount()}function k(t,e,i,n,s,o){w++||(E=null!=s&&void 0!==s.ownerSVGElement,C=null!=t&&!("__preactattr_"in t));var r=x(t,e,i,n,o);return s&&r.parentNode!==s&&s.appendChild(r),--w||(C=!1,o||S()),r}function x(t,e,i,n,s){var o=t,r=E;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||s)?t.nodeValue!=e&&(t.nodeValue=e):(o=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(o,t),T(t,!0))),o.__preactattr_=!0,o;var a,l,c=e.nodeName;if("function"==typeof c)return function(t,e,i,n){for(var s=t&&t._component,o=s,r=t,a=s&&t._componentConstructor===e.nodeName,l=a,c=g(e);s&&!l&&(s=s._parentComponent);)l=s.constructor===e.nodeName;return s&&l&&(!n||s._component)?(I(s,c,3,i,n),t=s.base):(o&&!a&&(F(o),t=r=null),s=L(e.nodeName,c,i),t&&!s.nextBase&&(s.nextBase=t,r=null),I(s,c,1,i,n),t=s.base,r&&t!==r&&(r._component=null,T(r,!1))),t}(t,e,i,n);if(E="svg"===c||"foreignObject"!==c&&E,c=String(c),(!t||!m(t,c))&&(a=c,(l=E?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,o=l,t)){for(;t.firstChild;)o.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(o,t),T(t,!0)}var u=o.firstChild,h=o.__preactattr_,d=e.children;if(null==h){h=o.__preactattr_={};for(var f=o.attributes,v=f.length;v--;)h[f[v].name]=f[v].value}return!C&&d&&1===d.length&&"string"==typeof d[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=d[0]&&(u.nodeValue=d[0]):(d&&d.length||null!=u)&&function(t,e,i,n,s){var o,r,a,l,c,u=t.childNodes,h=[],d={},f=0,m=0,g=u.length,b=0,v=e?e.length:0;if(0!==g)for(var y=0;y<g;y++){var w=u[y],E=w.__preactattr_;null!=(C=v&&E?w._component?w._component.__key:E.key:null)?(f++,d[C]=w):(E||(void 0!==w.splitText?!s||w.nodeValue.trim():s))&&(h[b++]=w)}if(0!==v)for(y=0;y<v;y++){var C;if(c=null,null!=(C=(l=e[y]).key))f&&void 0!==d[C]&&(c=d[C],d[C]=void 0,f--);else if(m<b)for(o=m;o<b;o++)if(void 0!==h[o]&&p(r=h[o],l,s)){c=r,h[o]=void 0,o===b-1&&b--,o===m&&m++;break}c=x(c,l,i,n),a=u[y],c&&c!==t&&c!==a&&(null==a?t.appendChild(c):c===a.nextSibling?_(a):t.insertBefore(c,a))}if(f)for(var y in d)void 0!==d[y]&&T(d[y],!1);for(;m<=b;)void 0!==(c=h[b--])&&T(c,!1)}(o,d,i,n,C||null!=h.dangerouslySetInnerHTML),function(t,e,i){var n;for(n in i)e&&null!=e[n]||null==i[n]||b(t,n,i[n],i[n]=void 0,E);for(n in e)"children"===n||"innerHTML"===n||n in i&&e[n]===("value"===n||"checked"===n?t[n]:i[n])||b(t,n,i[n],i[n]=e[n],E)}(o,e.attributes,h),E=r,o}function T(t,e){var i=t._component;i?F(i):(null!=t.__preactattr_&&l(t.__preactattr_.ref,null),!1!==e&&null!=t.__preactattr_||_(t),A(t))}function A(t){for(t=t.lastChild;t;){var e=t.previousSibling;T(t,!0),t=e}}var O=[];function L(t,e,i){var n,s=O.length;for(t.prototype&&t.prototype.render?(n=new t(e,i),$.call(n,e,i)):((n=new $(e,i)).constructor=t,n.render=P);s--;)if(O[s].constructor===t)return n.nextBase=O[s].nextBase,O.splice(s,1),n;return n}function P(t,e,i){return this.constructor(t,i)}function I(t,i,n,s,o){t._disable||(t._disable=!0,t.__ref=i.ref,t.__key=i.key,delete i.ref,delete i.key,void 0===t.constructor.getDerivedStateFromProps&&(!t.base||o?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(i,s)),s&&s!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=s),t.prevProps||(t.prevProps=t.props),t.props=i,t._disable=!1,0!==n&&(1!==n&&!1===e.syncComponentUpdates&&t.base?d(t):M(t,1,o)),l(t.__ref,t))}function M(t,i,n,s){if(!t._disable){var o,r,l,c=t.props,u=t.state,h=t.context,d=t.prevProps||c,f=t.prevState||u,p=t.prevContext||h,m=t.base,_=t.nextBase,b=m||_,v=t._component,E=!1,C=p;if(t.constructor.getDerivedStateFromProps&&(u=a(a({},u),t.constructor.getDerivedStateFromProps(c,u)),t.state=u),m&&(t.props=d,t.state=f,t.context=p,2!==i&&t.shouldComponentUpdate&&!1===t.shouldComponentUpdate(c,u,h)?E=!0:t.componentWillUpdate&&t.componentWillUpdate(c,u,h),t.props=c,t.state=u,t.context=h),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!E){o=t.render(c,u,h),t.getChildContext&&(h=a(a({},h),t.getChildContext())),m&&t.getSnapshotBeforeUpdate&&(C=t.getSnapshotBeforeUpdate(d,f));var x,A,O=o&&o.nodeName;if("function"==typeof O){var P=g(o);(r=v)&&r.constructor===O&&P.key==r.__key?I(r,P,1,h,!1):(x=r,t._component=r=L(O,P,h),r.nextBase=r.nextBase||_,r._parentComponent=t,I(r,P,0,h,!1),M(r,1,n,!0)),A=r.base}else l=b,(x=v)&&(l=t._component=null),(b||1===i)&&(l&&(l._component=null),A=k(l,o,h,n||!m,b&&b.parentNode,!0));if(b&&A!==b&&r!==v){var $=b.parentNode;$&&A!==$&&($.replaceChild(A,b),x||(b._component=null,T(b,!1)))}if(x&&F(x),t.base=A,A&&!s){for(var j=t,N=t;N=N._parentComponent;)(j=N).base=A;A._component=j,A._componentConstructor=j.constructor}}for(!m||n?y.push(t):E||(t.componentDidUpdate&&t.componentDidUpdate(d,f,C),e.afterUpdate&&e.afterUpdate(t));t._renderCallbacks.length;)t._renderCallbacks.pop().call(t);w||s||S()}}function F(t){e.beforeUnmount&&e.beforeUnmount(t);var i=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var n=t._component;n?F(n):i&&(null!=i.__preactattr_&&l(i.__preactattr_.ref,null),t.nextBase=i,_(i),O.push(t),A(i)),l(t.__ref,null)}function $(t,e){this._dirty=!0,this.context=e,this.props=t,this.state=this.state||{},this._renderCallbacks=[]}a($.prototype,{setState:function(t,e){this.prevState||(this.prevState=this.state),this.state=a(a({},this.state),"function"==typeof t?t(this.state,this.props):t),e&&this._renderCallbacks.push(e),d(this)},forceUpdate:function(t){t&&this._renderCallbacks.push(t),M(this,2)},render:function(){}}),i(4728);class j extends ${static defaultProps={tQueryTooShort:t=>`Type in ${t} or more characters for results`,tNoResults:()=>"No search results",tSelectedOption:(t,e,i)=>`${t} ${i+1} of ${e} is highlighted`,tResults:(t,e)=>`${t} ${1===t?"result":"results"} ${1===t?"is":"are"} available. ${e}`};state={bump:!1,debounced:!1};componentWillMount(){const t=this;this.debounceStatusUpdate=function(t){let e;return function(){const i=this,n=arguments;clearTimeout(e),e=setTimeout((function(){e=null,t.apply(i,n)}),1400)}}((function(){if(!t.state.debounced){const e=!t.props.isInFocus||t.props.validChoiceMade;t.setState((({bump:t})=>({bump:!t,debounced:!0,silenced:e})))}}))}componentWillReceiveProps({queryLength:t}){this.setState({debounced:!1})}render(){const{id:t,length:e,queryLength:i,minQueryLength:n,selectedOption:s,selectedOptionIndex:o,tQueryTooShort:a,tNoResults:l,tSelectedOption:c,tResults:u,className:h}=this.props,{bump:d,debounced:f,silenced:p}=this.state,m=i<n,g=0===e,_=s?c(s,e,o):"";let b=null;return b=m?a(n):g?l():u(e,_),this.debounceStatusUpdate(),r("div",{className:h,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"}},r("div",{id:t+"__status--A",role:"status","aria-atomic":"true","aria-live":"polite"},!p&&f&&d?b:""),r("div",{id:t+"__status--B",role:"status","aria-atomic":"true","aria-live":"polite"},p||!f||d?"":b))}}const N=({className:t})=>r("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",className:t,focusable:"false"},r("g",{stroke:"none",fill:"none","fill-rule":"evenodd"},r("polygon",{fill:"#000000",points:"0 0 22 0 11 17"})));function D(){return D=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},D.apply(this,arguments)}const B={13:"enter",27:"escape",32:"space",38:"up",40:"down"};function R(){return"undefined"!=typeof navigator&&!(!navigator.userAgent.match(/(iPod|iPhone|iPad)/g)||!navigator.userAgent.match(/AppleWebKit/g))}class V extends ${static defaultProps={autoselect:!1,cssNamespace:"autocomplete",defaultValue:"",displayMenu:"inline",minLength:0,name:"input-autocomplete",placeholder:"",onConfirm:()=>{},confirmOnBlur:!0,showNoOptionsFound:!0,showAllValues:!1,required:!1,tNoResults:()=>"No results found",tAssistiveHint:()=>"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:N,menuAttributes:{},inputClasses:null,hintClasses:null,menuClasses:null};elementReferences={};constructor(t){super(t),this.state={focused:null,hovered:null,menuOpen:!1,options:t.defaultValue?[t.defaultValue]:[],query:t.defaultValue,validChoiceMade:!1,selected:null,ariaHint:!0},this.handleComponentBlur=this.handleComponentBlur.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleUpArrow=this.handleUpArrow.bind(this),this.handleDownArrow=this.handleDownArrow.bind(this),this.handleEnter=this.handleEnter.bind(this),this.handlePrintableKey=this.handlePrintableKey.bind(this),this.handleListMouseLeave=this.handleListMouseLeave.bind(this),this.handleOptionBlur=this.handleOptionBlur.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleOptionMouseDown=this.handleOptionMouseDown.bind(this),this.handleOptionMouseEnter=this.handleOptionMouseEnter.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.handleInputFocus=this.handleInputFocus.bind(this),this.pollInputElement=this.pollInputElement.bind(this),this.getDirectInputChanges=this.getDirectInputChanges.bind(this)}isQueryAnOption(t,e){return-1!==e.map((t=>this.templateInputValue(t).toLowerCase())).indexOf(t.toLowerCase())}componentDidMount(){this.pollInputElement()}componentWillUnmount(){clearTimeout(this.$pollInput)}pollInputElement(){this.getDirectInputChanges(),this.$pollInput=setTimeout((()=>{this.pollInputElement()}),100)}getDirectInputChanges(){const t=this.elementReferences[-1];t&&t.value!==this.state.query&&this.handleInputChange({target:{value:t.value}})}componentDidUpdate(t,e){const{focused:i}=this.state,n=null===i,s=e.focused!==i;s&&!n&&this.elementReferences[i].focus();const o=-1===i,r=s&&null===e.focused;if(o&&r){const t=this.elementReferences[i];t.setSelectionRange(0,t.value.length)}}hasAutoselect(){return!R()&&this.props.autoselect}templateInputValue(t){const e=this.props.templates&&this.props.templates.inputValue;return e?e(t):t}templateSuggestion(t){const e=this.props.templates&&this.props.templates.suggestion;return e?e(t):t}handleComponentBlur(t){const{options:e,query:i,selected:n}=this.state;let s;this.props.confirmOnBlur?(s=t.query||i,this.props.onConfirm(e[n])):s=i,this.setState({focused:null,menuOpen:t.menuOpen||!1,query:s,selected:null,validChoiceMade:this.isQueryAnOption(s,e)})}handleListMouseLeave(t){this.setState({hovered:null})}handleOptionBlur(t,e){const{focused:i,menuOpen:n,options:s,selected:o}=this.state,r=null===t.relatedTarget,a=t.relatedTarget===this.elementReferences[-1],l=i!==e&&-1!==i;if(!l&&r||!l&&!a){const t=n&&R();this.handleComponentBlur({menuOpen:t,query:this.templateInputValue(s[o])})}}handleInputBlur(t){const{focused:e,menuOpen:i,options:n,query:s,selected:o}=this.state;if(-1===e){const t=i&&R(),e=R()?s:this.templateInputValue(n[o]);this.handleComponentBlur({menuOpen:t,query:e})}}handleInputChange(t){const{minLength:e,source:i,showAllValues:n}=this.props,s=this.hasAutoselect(),o=t.target.value,r=0===o.length,a=this.state.query!==o,l=o.length>=e;this.setState({query:o,ariaHint:r}),n||!r&&a&&l?i(o,(t=>{const e=t.length>0;this.setState({menuOpen:e,options:t,selected:s&&e?0:-1,validChoiceMade:!1})})):!r&&l||this.setState({menuOpen:!1,options:[]})}handleInputClick(t){this.handleInputChange(t)}handleInputFocus(t){const{query:e,validChoiceMade:i,options:n}=this.state,{minLength:s}=this.props,o=!i&&e.length>=s&&n.length>0;o?this.setState((({menuOpen:t})=>({focused:-1,menuOpen:o||t,selected:-1}))):this.setState({focused:-1})}handleOptionFocus(t){this.setState({focused:t,hovered:null,selected:t})}handleOptionMouseEnter(t,e){R()||this.setState({hovered:e})}handleOptionClick(t,e){const i=this.state.options[e],n=this.templateInputValue(i);this.props.onConfirm(i),this.setState({focused:-1,hovered:null,menuOpen:!1,query:n,selected:-1,validChoiceMade:!0}),this.forceUpdate()}handleOptionMouseDown(t){t.preventDefault()}handleUpArrow(t){t.preventDefault();const{menuOpen:e,selected:i}=this.state;-1!==i&&e&&this.handleOptionFocus(i-1)}handleDownArrow(t){if(t.preventDefault(),this.props.showAllValues&&!1===this.state.menuOpen)t.preventDefault(),this.props.source("",(t=>{this.setState({menuOpen:!0,options:t,selected:0,focused:0,hovered:null})}));else if(!0===this.state.menuOpen){const{menuOpen:t,options:e,selected:i}=this.state;i!==e.length-1&&t&&this.handleOptionFocus(i+1)}}handleSpace(t){this.props.showAllValues&&!1===this.state.menuOpen&&""===this.state.query&&(t.preventDefault(),this.props.source("",(t=>{this.setState({menuOpen:!0,options:t})}))),-1!==this.state.focused&&(t.preventDefault(),this.handleOptionClick(t,this.state.focused))}handleEnter(t){this.state.menuOpen&&(t.preventDefault(),this.state.selected>=0&&this.handleOptionClick(t,this.state.selected))}handlePrintableKey(t){const e=this.elementReferences[-1];t.target===e||e.focus()}handleKeyDown(t){switch(B[t.keyCode]){case"up":this.handleUpArrow(t);break;case"down":this.handleDownArrow(t);break;case"space":this.handleSpace(t);break;case"enter":this.handleEnter(t);break;case"escape":this.handleComponentBlur({query:this.state.query});break;default:((e=t.keyCode)>47&&e<58||32===e||8===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223)&&this.handlePrintableKey(t)}var e}render(){const{cssNamespace:t,displayMenu:e,id:i,minLength:n,name:s,placeholder:o,required:a,showAllValues:l,tNoResults:c,tStatusQueryTooShort:u,tStatusNoResults:h,tStatusSelectedOption:d,tStatusResults:f,tAssistiveHint:p,dropdownArrow:m,menuAttributes:g,inputClasses:_,hintClasses:b,menuClasses:v}=this.props,{focused:y,hovered:w,menuOpen:E,options:C,query:S,selected:k,ariaHint:x,validChoiceMade:T}=this.state,A=this.hasAutoselect(),O=-1===y,L=0===C.length,P=0!==S.length,I=S.length>=n,M=this.props.showNoOptionsFound&&O&&L&&P&&I,F=`${t}__wrapper`,$=`${t}__status`,N=`${t}__dropdown-arrow-down`,B=-1!==y&&null!==y,V=`${t}__option`,z=`${t}__hint`,W=this.templateInputValue(C[k]),q=W&&0===W.toLowerCase().indexOf(S.toLowerCase())&&A?S+W.substr(S.length):"",H=i+"__assistiveHint",U={"aria-describedby":x?H:null,"aria-expanded":E?"true":"false","aria-activedescendant":B?`${i}__option--${y}`:null,"aria-controls":`${i}__listbox`,"aria-autocomplete":this.hasAutoselect()?"both":"list"};let G;l&&(G=m({className:N}),"string"==typeof G&&(G=r("div",{className:`${t}__dropdown-arrow-down-wrapper`,dangerouslySetInnerHTML:{__html:G}})));const Y=`${t}__input`,K=[Y,this.props.showAllValues?`${Y}--show-all-values`:`${Y}--default`];null!==y&&K.push(`${Y}--focused`),_&&K.push(_);const Q=`${t}__menu`,X=[Q,`${Q}--${e}`,`${Q}--${E||M?"visible":"hidden"}`];v&&X.push(v),(g?.class||g?.className)&&X.push(g?.class||g?.className);const Z={"aria-labelledby":i,...g,id:`${i}__listbox`,role:"listbox",className:X.join(" "),onMouseLeave:this.handleListMouseLeave};return delete Z.class,r("div",{className:F,onKeyDown:this.handleKeyDown},r(j,{id:i,length:C.length,queryLength:S.length,minQueryLength:n,selectedOption:this.templateInputValue(C[k]),selectedOptionIndex:k,validChoiceMade:T,isInFocus:null!==this.state.focused,tQueryTooShort:u,tNoResults:h,tSelectedOption:d,tResults:f,className:$}),q&&r("span",null,r("input",{className:[z,null===b?_:b].filter(Boolean).join(" "),readonly:!0,tabIndex:"-1",value:q})),r("input",D({},U,{autoComplete:"off",className:K.join(" "),id:i,onClick:this.handleInputClick,onBlur:this.handleInputBlur},{onInput:this.handleInputChange},{onFocus:this.handleInputFocus,name:s,placeholder:o,ref:t=>{this.elementReferences[-1]=t},type:"text",role:"combobox",required:a,value:S})),G,r("ul",Z,C.map(((t,e)=>{const n=(-1===y?k===e:y===e)&&null===w?` ${V}--focused`:"",s=e%2?` ${V}--odd`:"",o=R()?`<span id=${i}__option-suffix--${e} 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"> ${e+1} of ${C.length}</span>`:"";return r("li",{"aria-selected":y===e?"true":"false",className:`${V}${n}${s}`,dangerouslySetInnerHTML:{__html:this.templateSuggestion(t)+o},id:`${i}__option--${e}`,key:e,onBlur:t=>this.handleOptionBlur(t,e),onClick:t=>this.handleOptionClick(t,e),onMouseDown:this.handleOptionMouseDown,onMouseEnter:t=>this.handleOptionMouseEnter(t,e),ref:t=>{this.elementReferences[e]=t},role:"option",tabIndex:"-1","aria-posinset":e+1,"aria-setsize":C.length})})),M&&r("li",{className:`${V} ${V}--no-results`,role:"option","aria-disabled":"true"},c())),r("span",{id:H,style:{display:"none"}},p()))}}function z(t){if(!t.element)throw new Error("element is not defined");if(!t.id)throw new Error("id is not defined");if(!t.source)throw new Error("source is not defined");Array.isArray(t.source)&&(t.source=W(t.source)),function(t,e,i){k(i,t,{},!1,e,!1)}(r(V,t),t.element)}const W=t=>(e,i)=>{i(t.filter((t=>-1!==t.toLowerCase().indexOf(e.toLowerCase()))))};z.enhanceSelectElement=t=>{if(!t.selectElement)throw new Error("selectElement is not defined");if(!t.source){const e=[].filter.call(t.selectElement.options,(e=>e.value||t.preserveNullOptions));t.source=e.map((t=>t.textContent||t.innerText))}if(t.onConfirm=t.onConfirm||(e=>{const i=[].filter.call(t.selectElement.options,(t=>(t.textContent||t.innerText)===e))[0];i&&(i.selected=!0)}),t.selectElement.value||void 0===t.defaultValue){const e=t.selectElement.options[t.selectElement.options.selectedIndex];t.defaultValue=e.textContent||e.innerText}void 0===t.name&&(t.name=""),void 0===t.id&&(void 0===t.selectElement.id?t.id="":t.id=t.selectElement.id),void 0===t.autoselect&&(t.autoselect=!0);const e=document.createElement("div");t.selectElement.parentNode.insertBefore(e,t.selectElement),z({...t,element:e}),t.selectElement.style.display="none",t.selectElement.id=t.selectElement.id+"-select"};const q=z})(),n.default})(),t.exports=i()}));Li.accessibleAutocomplete;const Pi={autocomplete:[]},Ii="autocomplete-list-show",Mi="data-bs-autocomplete",Fi="input["+Mi+'][type="search"]';class $i extends Y{constructor(t,e){super(t),this._config=this._getConfig(e),this._items=[],this._autocompleteElement=null,this._label=new st(t),this._init(),this._bindEvents()}static get NAME(){return"inputsearchautocomplete"}search(){const t=this._element.value;
2
2
  //!!! $autocomplete.empty()
3
- this._autocompleteElement.innerHTML="",t?this._items.forEach((e=>{let i=new RegExp("("+t+")","gi"),n=e.text.replace(i,"<mark>$1</mark>"),s=e.label?"<em>"+e.label+"</em>":"",o=e.icon?e.icon:"",r=e.link?e.link:"#";-1!==n.toLowerCase().indexOf(t.toLowerCase())&&(this._autocompleteElement.classList.add(gi),this._autocompleteElement.appendChild(this._createOption(r,n,s,o)))})):this._autocompleteElement.classList.remove(gi)}_getConfig(t){return t={...mi,..."object"==typeof t?t:{}}}_getItems(){try{return JSON.parse(this._element.getAttribute(_i))}catch(t){return console.error("[InputSearchAutocomplete] invalid data provided for "+_i+" attribute",t),[]}}_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(){z.on(this._element,"keyup.bs.inputsearchautocomplete",(()=>this.search()))}_createOption(t,e,i,n){if("undefined"==typeof document)return;const s=document.createElement("li");return s.innerHTML=`<a href="${t}">\n ${n}\n <span class="autocomplete-list-text">\n <span>${e}</span>\n ${i}\n </span>\n </a>`,s}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(bi+", label").forEach((function(t){const e=st.getInputFromLabel(t)||t;var i;(i=e)&&i.matches(bi)&&vi.getOrCreateInstance(i)}))}));const yi=".bs.inputpassword",wi=".data-api",Ei={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."},Ci=`click${yi}`,Si=`keyup${yi}`,ki=`score${yi}`,xi=`text${yi}`,Ti=`suggs${yi}`,Ai=`click${yi}${wi}`,Oi=`mousedown${yi}${wi}`,Li=`keyup${yi}${wi}`,Ii='input[data-bs-input][type="password"]',Pi=".password-icon";class Mi extends K{constructor(t,e){super(t),this._config=this._getConfig(e),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 st(t),this._suggestions=[{key:"length",text:t=>t.suggestionLength.replace("{minLength}",t.minimumLength.toString()),test:(t,e)=>t.length>=e.minimumLength},{key:"uppercase",text:t=>t.suggestionUppercase,test:t=>/[A-Z]/.test(t)},{key:"lowercase",text:t=>t.suggestionLowercase,test:t=>/[a-z]/.test(t)},{key:"number",text:t=>t.suggestionNumber,test:t=>/[0-9]/.test(t)},{key:"special",text:t=>t.suggestionSpecial,test:t=>/[^A-Za-z0-9]/.test(t)}],this._init(),this._bindEvents()}static get NAME(){return"inputpassword"}_getConfig(t){return t={...Ei,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_init(){this._isCustom&&(this._handleAutofill(),this._showPwdElement=Y.findOne(Pi,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,{...U.getDataAttributes(this._textElement)})),this._suggsElement&&this._createsuggestionsList()))}_bindEvents(){this._isCustom&&(this._showPwdElement&&z.on(this._showPwdElement,Ci,(()=>this._toggleShowPassword())),this._meter&&(z.on(this._element,Si,(()=>this._checkPassword())),z.on(this._element,"input",(()=>this._checkPassword()))))}_handleAutofill(){const t=()=>{""!==this._element.value&&(this._label._labelOut(),this._checkPassword())};t(),setTimeout(t,100),z.on(this._element,"animationstart",(e=>{"onAutoFillStart"===e.animationName&&t()}))}_toggleShowPassword(){const t="password"===this._element.getAttribute("type");Y.find('[class^="password-icon"]',this._showPwdElement).forEach((t=>t.classList.toggle("d-none"))),this._element.setAttribute("type",t?"text":"password"),this._showPwdElement.setAttribute("aria-checked",t.toString())}_checkPassword(){const t=this._element.value,e=this._calculateScore(t);this._updateMeter(e),this._updateText(e,t),this._updateSuggestions(t)}_updateMeter(t){const e=t<0?0:t;this._colorBarElement&&(this._colorBarElement.classList.forEach((t=>{t.match(/(^|\s)bg-\S+/g)&&this._colorBarElement.classList.remove(t)})),this._colorBarElement.classList.add(`bg-${this._scoreColor(t)}`),this._colorBarElement.style.width=`${e}%`,this._colorBarElement.setAttribute("aria-valuenow",e)),z.trigger(this._element,ki)}_updateText(t,e){if(this._textElement){let i=this._scoreText(t);if(this._suggsElement){const{completedCount:t,totalCount:n}=this._getCompletedSuggestions(e),s=1===t?this._config.suggestionFollowed:this._config.suggestionFollowedPlural;i+=` ${t} ${this._config.suggestionOf} ${n} ${s}.`}this._textElement.textContent!==i&&(this._textElement.textContent=i,this._textElement.classList.forEach((t=>{t.match(/(^|\s)text-\S+/g)&&this._textElement.classList.remove(t)})),this._textElement.classList.add(`text-${this._scoreColor(t)}`),z.trigger(this._element,xi))}}_updateSuggestions(t){this._suggsElement&&(this._updateSuggestionsList(t),z.trigger(this._element,Ti))}_getCompletedSuggestions(t){let e=0;const i=this._suggestions.length;return this._suggestions.forEach((i=>{i.test(t,this._config)&&e++})),{completedCount:e,totalCount:i}}_createsuggestionsList(){if(this._suggsElement.querySelector(".password-suggestions"))return;const t=document.createElement("label");t.className="visually-hidden",t.htmlFor="suggestions",t.textContent=Ei.suggestionsLabel;const e=document.createElement("div");e.id="suggestions",e.className="password-suggestions",this._suggestions.forEach((t=>{const i=document.createElement("div");i.className="suggestion",i.dataset.suggestion=t.key;const n=this._createIconCheck(),s=document.createElement("span");s.textContent=t.text(this._config),i.appendChild(n),i.appendChild(s),e.appendChild(i)})),this._suggsElement.appendChild(t),this._suggsElement.appendChild(e)}_createIconCheck(){const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("class","icon icon-xs me-1 d-none"),t.setAttribute("aria-label",this._config.suggestionMetLabel),t.setAttribute("viewBox","0 0 24 24"),t.style.width="1em",t.style.height="1em";const e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",this._config.suggestionMetIconPath.trim()),t.appendChild(e),t}_updateSuggestionsList(t){this._suggsElement&&this._suggestions.forEach((e=>{const i=this._suggsElement.querySelector(`[data-suggestion="${e.key}"]`);if(i){const n=e.test(t,this._config),s=i.querySelector(".icon");s&&s.classList.toggle("d-none",!n)}}))}_scoreText(t){return-1===t?this._config.shortPass:-2===t?"":(t=t<0?0:t)<26||t<51?this._config.badPass:t<76?this._config.goodPass:this._config.strongPass}_scoreColor(t){return-1===t||-2===t||t<26?"danger":t<51?"warning":"success"}_calculateScore(t){var e=0;if(0===t.trim().length)return-2;if(t.length<this._config.minimumLength)return-1;e+=4*t.length,e+=this._checkRepetition(1,t).length-t.length,e+=this._checkRepetition(2,t).length-t.length,e+=this._checkRepetition(3,t).length-t.length,e+=this._checkRepetition(4,t).length-t.length,t.match(/(.*[0-9].*[0-9].*[0-9])/)&&(e+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),t.match(i)&&(e+=5),t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(e+=10),t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([a-zA-Z])/)&&(e+=15),(t.match(/^\w+$/)||t.match(/^\d+$/))&&(e-=10),e>100&&(e=100),e<0&&(e=0),e}_checkRepetition(t,e){for(var i="",n=!1,s=0;s<e.length;s++){n=!0;for(var o=0;o<t&&o+s+t<e.length;o++)n=n&&e.charAt(o+s)===e.charAt(o+s+t);o<t&&(n=!1),n?(s+=t-1,n=!1):i+=e.charAt(s)}return i}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=t=>t&&t.matches(Ii)?Mi.getOrCreateInstance(t):null,e=()=>{const t=Y.findOne(Ii);t&&Mi.getOrCreateInstance(t)};"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e),z.on(document,Oi,Ii+", label",(function(){const e=st.getInputFromLabel(this)||this;t(e)})),z.on(document,Li,Ii+", label",(function(){const e=st.getInputFromLabel(this)||this,i=t(e);i&&i._label&&i._label._labelOut()})),z.on(document,Ai,Pi,(function(){const t=this.parentNode&&this.parentNode.querySelector(Ii);t&&Mi.getOrCreateInstance(t)}))}var Fi,$i=fi((function(t,e){
3
+ this._autocompleteElement.innerHTML="",t?this._items.forEach((e=>{let i=new RegExp("("+t+")","gi"),n=e.text.replace(i,"<mark>$1</mark>"),s=e.label?"<em>"+e.label+"</em>":"",o=e.icon?e.icon:"",r=e.link?e.link:"#";-1!==n.toLowerCase().indexOf(t.toLowerCase())&&(this._autocompleteElement.classList.add(Ii),this._autocompleteElement.appendChild(this._createOption(r,n,s,o)))})):this._autocompleteElement.classList.remove(Ii)}_getConfig(t){return t={...Pi,..."object"==typeof t?t:{}}}_getItems(){try{return JSON.parse(this._element.getAttribute(Mi))}catch(t){return console.error("[InputSearchAutocomplete] invalid data provided for "+Mi+" attribute",t),[]}}_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(){z.on(this._element,"keyup.bs.inputsearchautocomplete",(()=>this.search()))}_createOption(t,e,i,n){if("undefined"==typeof document)return;const s=document.createElement("li");return s.innerHTML=`<a href="${t}">\n ${n}\n <span class="autocomplete-list-text">\n <span>${e}</span>\n ${i}\n </span>\n </a>`,s}}"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Fi+", label").forEach((function(t){const e=st.getInputFromLabel(t)||t;var i;(i=e)&&i.matches(Fi)&&$i.getOrCreateInstance(i)}))}));const ji=".bs.inputpassword",Ni=".data-api",Di={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."},Bi=`click${ji}`,Ri=`keyup${ji}`,Vi=`score${ji}`,zi=`text${ji}`,Wi=`suggs${ji}`,qi=`click${ji}${Ni}`,Hi=`mousedown${ji}${Ni}`,Ui=`keyup${ji}${Ni}`,Gi='input[data-bs-input][type="password"]',Yi=".password-icon";class Ki extends Y{constructor(t,e){super(t),this._config=this._getConfig(e),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 st(t),this._suggestions=[{key:"length",text:t=>t.suggestionLength.replace("{minLength}",t.minimumLength.toString()),test:(t,e)=>t.length>=e.minimumLength},{key:"uppercase",text:t=>t.suggestionUppercase,test:t=>/[A-Z]/.test(t)},{key:"lowercase",text:t=>t.suggestionLowercase,test:t=>/[a-z]/.test(t)},{key:"number",text:t=>t.suggestionNumber,test:t=>/[0-9]/.test(t)},{key:"special",text:t=>t.suggestionSpecial,test:t=>/[^A-Za-z0-9]/.test(t)}],this._init(),this._bindEvents()}static get NAME(){return"inputpassword"}_getConfig(t){return t={...Di,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_init(){this._isCustom&&(this._handleAutofill(),this._showPwdElement=K.findOne(Yi,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,{...U.getDataAttributes(this._textElement)})),this._suggsElement&&this._createsuggestionsList()))}_bindEvents(){this._isCustom&&(this._showPwdElement&&z.on(this._showPwdElement,Bi,(()=>this._toggleShowPassword())),this._meter&&(z.on(this._element,Ri,(()=>this._checkPassword())),z.on(this._element,"input",(()=>this._checkPassword()))))}_handleAutofill(){const t=()=>{""!==this._element.value&&(this._label._labelOut(),this._checkPassword())};t(),setTimeout(t,100),z.on(this._element,"animationstart",(e=>{"onAutoFillStart"===e.animationName&&t()}))}_toggleShowPassword(){const t="password"===this._element.getAttribute("type");K.find('[class^="password-icon"]',this._showPwdElement).forEach((t=>t.classList.toggle("d-none"))),this._element.setAttribute("type",t?"text":"password"),this._showPwdElement.setAttribute("aria-checked",t.toString())}_checkPassword(){const t=this._element.value,e=this._calculateScore(t);this._updateMeter(e),this._updateText(e,t),this._updateSuggestions(t)}_updateMeter(t){const e=t<0?0:t;this._colorBarElement&&(this._colorBarElement.classList.forEach((t=>{t.match(/(^|\s)bg-\S+/g)&&this._colorBarElement.classList.remove(t)})),this._colorBarElement.classList.add(`bg-${this._scoreColor(t)}`),this._colorBarElement.style.width=`${e}%`,this._colorBarElement.setAttribute("aria-valuenow",e)),z.trigger(this._element,Vi)}_updateText(t,e){if(this._textElement){let i=this._scoreText(t);if(this._suggsElement){const{completedCount:t,totalCount:n}=this._getCompletedSuggestions(e),s=1===t?this._config.suggestionFollowed:this._config.suggestionFollowedPlural;i+=` ${t} ${this._config.suggestionOf} ${n} ${s}.`}this._textElement.textContent!==i&&(this._textElement.textContent=i,this._textElement.classList.forEach((t=>{t.match(/(^|\s)text-\S+/g)&&this._textElement.classList.remove(t)})),this._textElement.classList.add(`text-${this._scoreColor(t)}`),z.trigger(this._element,zi))}}_updateSuggestions(t){this._suggsElement&&(this._updateSuggestionsList(t),z.trigger(this._element,Wi))}_getCompletedSuggestions(t){let e=0;const i=this._suggestions.length;return this._suggestions.forEach((i=>{i.test(t,this._config)&&e++})),{completedCount:e,totalCount:i}}_createsuggestionsList(){if(this._suggsElement.querySelector(".password-suggestions"))return;const t=document.createElement("label");t.className="visually-hidden",t.htmlFor="suggestions",t.textContent=Di.suggestionsLabel;const e=document.createElement("div");e.id="suggestions",e.className="password-suggestions",this._suggestions.forEach((t=>{const i=document.createElement("div");i.className="suggestion",i.dataset.suggestion=t.key;const n=this._createIconCheck(),s=document.createElement("span");s.textContent=t.text(this._config),i.appendChild(n),i.appendChild(s),e.appendChild(i)})),this._suggsElement.appendChild(t),this._suggsElement.appendChild(e)}_createIconCheck(){const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("class","icon icon-xs me-1 d-none"),t.setAttribute("aria-label",this._config.suggestionMetLabel),t.setAttribute("viewBox","0 0 24 24"),t.style.width="1em",t.style.height="1em";const e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",this._config.suggestionMetIconPath.trim()),t.appendChild(e),t}_updateSuggestionsList(t){this._suggsElement&&this._suggestions.forEach((e=>{const i=this._suggsElement.querySelector(`[data-suggestion="${e.key}"]`);if(i){const n=e.test(t,this._config),s=i.querySelector(".icon");s&&s.classList.toggle("d-none",!n)}}))}_scoreText(t){return-1===t?this._config.shortPass:-2===t?"":(t=t<0?0:t)<26||t<51?this._config.badPass:t<76?this._config.goodPass:this._config.strongPass}_scoreColor(t){return-1===t||-2===t||t<26?"danger":t<51?"warning":"success"}_calculateScore(t){var e=0;if(0===t.trim().length)return-2;if(t.length<this._config.minimumLength)return-1;e+=4*t.length,e+=this._checkRepetition(1,t).length-t.length,e+=this._checkRepetition(2,t).length-t.length,e+=this._checkRepetition(3,t).length-t.length,e+=this._checkRepetition(4,t).length-t.length,t.match(/(.*[0-9].*[0-9].*[0-9])/)&&(e+=5);var i=".*[!,@,#,$,%,^,&,*,?,_,~]";return i=new RegExp("("+i+i+")"),t.match(i)&&(e+=5),t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(e+=10),t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([0-9])/)&&(e+=15),t.match(/([!,@,#,$,%,^,&,*,?,_,~])/)&&t.match(/([a-zA-Z])/)&&(e+=15),(t.match(/^\w+$/)||t.match(/^\d+$/))&&(e-=10),e>100&&(e=100),e<0&&(e=0),e}_checkRepetition(t,e){for(var i="",n=!1,s=0;s<e.length;s++){n=!0;for(var o=0;o<t&&o+s+t<e.length;o++)n=n&&e.charAt(o+s)===e.charAt(o+s+t);o<t&&(n=!1),n?(s+=t-1,n=!1):i+=e.charAt(s)}return i}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=t=>t&&t.matches(Gi)?Ki.getOrCreateInstance(t):null,e=()=>{const t=K.findOne(Gi);t&&Ki.getOrCreateInstance(t)};"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e),z.on(document,Hi,Gi+", label",(function(){const e=st.getInputFromLabel(this)||this;t(e)})),z.on(document,Ui,Gi+", label",(function(){const e=st.getInputFromLabel(this)||this,i=t(e);i&&i._label&&i._label._labelOut()})),z.on(document,qi,Yi,(function(){const t=this.parentNode&&this.parentNode.querySelector(Gi);t&&Ki.getOrCreateInstance(t)}))}var Qi,Xi=Oi((function(t,e){
4
4
  /*! Shifty 2.20.4 - https://github.com/jeremyckahn/shifty */
5
- var i;i=function(){return(()=>{var t={720:(t,e,i)=>{i.r(e),i.d(e,{Scene:()=>le,Tweenable:()=>Et,interpolate:()=>ie,processTweens:()=>pt,setBezierFunction:()=>W,shouldScheduleUpdate:()=>_t,tween:()=>Ct,unsetBezierFunction:()=>q});var n={};i.r(n),i.d(n,{bounce:()=>$,bouncePast:()=>j,easeFrom:()=>D,easeFromTo:()=>N,easeInBack:()=>A,easeInCirc:()=>S,easeInCubic:()=>c,easeInExpo:()=>w,easeInOutBack:()=>L,easeInOutCirc:()=>x,easeInOutCubic:()=>h,easeInOutExpo:()=>C,easeInOutQuad:()=>l,easeInOutQuart:()=>p,easeInOutQuint:()=>_,easeInOutSine:()=>y,easeInQuad:()=>r,easeInQuart:()=>d,easeInQuint:()=>m,easeInSine:()=>b,easeOutBack:()=>O,easeOutBounce:()=>T,easeOutCirc:()=>k,easeOutCubic:()=>u,easeOutExpo:()=>E,easeOutQuad:()=>a,easeOutQuart:()=>f,easeOutQuint:()=>g,easeOutSine:()=>v,easeTo:()=>R,elastic:()=>I,linear:()=>o,swingFrom:()=>M,swingFromTo:()=>P,swingTo:()=>F});var s={};i.r(s),i.d(s,{afterTween:()=>Xt,beforeTween:()=>Qt,doesApply:()=>Kt,tweenCreated:()=>Yt});
5
+ var i;i=function(){return(()=>{var t={720:(t,e,i)=>{i.r(e),i.d(e,{Scene:()=>le,Tweenable:()=>Et,interpolate:()=>ie,processTweens:()=>pt,setBezierFunction:()=>W,shouldScheduleUpdate:()=>_t,tween:()=>Ct,unsetBezierFunction:()=>q});var n={};i.r(n),i.d(n,{bounce:()=>$,bouncePast:()=>j,easeFrom:()=>D,easeFromTo:()=>N,easeInBack:()=>A,easeInCirc:()=>S,easeInCubic:()=>c,easeInExpo:()=>w,easeInOutBack:()=>L,easeInOutCirc:()=>x,easeInOutCubic:()=>h,easeInOutExpo:()=>C,easeInOutQuad:()=>l,easeInOutQuart:()=>p,easeInOutQuint:()=>_,easeInOutSine:()=>y,easeInQuad:()=>r,easeInQuart:()=>d,easeInQuint:()=>m,easeInSine:()=>b,easeOutBack:()=>O,easeOutBounce:()=>T,easeOutCirc:()=>k,easeOutCubic:()=>u,easeOutExpo:()=>E,easeOutQuad:()=>a,easeOutQuart:()=>f,easeOutQuint:()=>g,easeOutSine:()=>v,easeTo:()=>B,elastic:()=>P,linear:()=>o,swingFrom:()=>M,swingFromTo:()=>I,swingTo:()=>F});var s={};i.r(s),i.d(s,{afterTween:()=>Xt,beforeTween:()=>Qt,doesApply:()=>Yt,tweenCreated:()=>Kt});
6
6
  /*!
7
7
  * All equations are adapted from Thomas Fuchs'
8
8
  * [Scripty2](https://github.com/madrobby/scripty2/blob/master/src/effects/transitions/penner.js).
@@ -16,4 +16,4 @@ var i;i=function(){return(()=>{var t={720:(t,e,i)=>{i.r(e),i.d(e,{Scene:()=>le,T
16
16
  * Open source under the BSD License.
17
17
  * Easing Equations (c) 2003 Robert Penner, all rights reserved.
18
18
  */
19
- var o=function(t){return t},r=function(t){return Math.pow(t,2)},a=function(t){return-(Math.pow(t-1,2)-1)},l=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},c=function(t){return Math.pow(t,3)},u=function(t){return Math.pow(t-1,3)+1},h=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},d=function(t){return Math.pow(t,4)},f=function(t){return-(Math.pow(t-1,4)-1)},p=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},m=function(t){return Math.pow(t,5)},g=function(t){return Math.pow(t-1,5)+1},_=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},b=function(t){return 1-Math.cos(t*(Math.PI/2))},v=function(t){return Math.sin(t*(Math.PI/2))},y=function(t){return-.5*(Math.cos(Math.PI*t)-1)},w=function(t){return 0===t?0:Math.pow(2,10*(t-1))},E=function(t){return 1===t?1:1-Math.pow(2,-10*t)},C=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},S=function(t){return-(Math.sqrt(1-t*t)-1)},k=function(t){return Math.sqrt(1-Math.pow(t-1,2))},x=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},T=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},A=function(t){var e=1.70158;return t*t*((e+1)*t-e)},O=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},L=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},I=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},P=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},M=function(t){var e=1.70158;return t*t*((e+1)*t-e)},F=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},$=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},j=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},N=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},D=function(t){return Math.pow(t,4)},R=function(t){return Math.pow(t,.25)};function B(t,e,i,n,s,o){var r,a,l=0,c=0,u=0,h=0,d=0,f=0,p=function(t){return((l*t+c)*t+u)*t},m=function(t){return(3*l*t+2*c)*t+u},g=function(t){return t>=0?t:0-t};return l=1-(u=3*e)-(c=3*(n-e)-u),h=1-(f=3*i)-(d=3*(s-i)-f),r=t,a=function(t){return 1/(200*t)}(o),function(t){return((h*t+d)*t+f)*t}(function(t,e){var i,n,s,o,r,a;for(s=t,a=0;a<8;a++){if(o=p(s)-t,g(o)<e)return s;if(r=m(s),g(r)<1e-6)break;s-=o/r}if((s=t)<(i=0))return i;if(s>(n=1))return n;for(;i<n;){if(o=p(s),g(o-t)<e)return s;t>o?i=s:n=s,s=.5*(n-i)+i}return s}(r,a))}var V,z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=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 B(s,t,e,i,n,1)}},W=function(t,e,i,n,s){var o=z(e,i,n,s);return o.displayName=t,o.x1=e,o.y1=i,o.x2=n,o.y2=s,Et.formulas[t]=o},q=function(t){return delete Et.formulas[t]};function H(t,e,i){return e&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function G(t){return function(t){if(Array.isArray(t))return K(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return K(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?K(t,e):void 0}}(t)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Y(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Q(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(i),!0).forEach((function(e){X(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Y(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function X(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Z,J,tt,et="linear",it=1e3/60,nt="undefined"!=typeof window?window:di,st="afterTween",ot="beforeTween",rt="string",at=nt.requestAnimationFrame||nt.webkitRequestAnimationFrame||nt.oRequestAnimationFrame||nt.msRequestAnimationFrame||nt.mozCancelRequestAnimationFrame&&nt.mozRequestAnimationFrame||setTimeout,lt=function(){},ct=null,ut=null,ht=Q({},n),dt=function(t,e,i,n,s,o,r){var a,l,c,u=t<o?0:(t-o)/s,h=!1;for(var d in r&&r.call&&(h=!0,a=r(u)),e)h||(a=((l=r[d]).call?l:ht[l])(u)),c=i[d],e[d]=c+(n[d]-c)*a;return e},ft=function(t,e){var i=t._timestamp,n=t._currentState,s=t._delay;if(!(e<i+s)){var o=t._duration,r=t._targetState,a=i+s+o,l=e>a?a:e;t._hasEnded=l>=a;var c=o-(a-l),u=t._filters.length>0;if(t._hasEnded)return t._render(r,t._data,c),t.stop(!0);u&&t._applyFilter(ot),l<i+s?i=o=l=1:i+=s,dt(l,n,t._originalState,r,o,i,t._easing),u&&t._applyFilter(st),t._render(n,t._data,c)}},pt=function(){for(var t,e=Et.now(),i=ct;i;)t=i._next,ft(i,e),i=t},mt=Date.now||function(){return+new Date},gt=!1,_t=function(t){t&&gt||(gt=t,t&&bt())},bt=function t(){Z=mt(),gt&&at.call(nt,t,it),pt()},vt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:et,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e))return z.apply(void 0,G(e));var n=U(e);if(ht[e])return ht[e];if(n===rt||"function"===n)for(var s in t)i[s]=e;else for(var o in t)i[o]=e[o]||et;return i},yt=function(t){t===ct?(ct=t._next)?ct._previous=null:ut=null:t===ut?(ut=t._previous)?ut._next=null:ct=null:(J=t._previous,tt=t._next,J._next=tt,tt._previous=J),t._previous=t._next=null},wt="function"==typeof Promise?Promise:null;V=Symbol.toStringTag;var Et=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),X(this,V,"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=e||{},this._originalState={},this._targetState={},this._start=lt,this._render=lt,this._promiseCtor=wt,i&&this.setConfig(i)}return H(t,[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var i=this._filters[e-e][t];i&&i(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var n in e)i[n]=e[n];var s=i.promise,o=void 0===s?this._promiseCtor:s,r=i.start,a=void 0===r?lt:r,l=i.finish,c=i.render,u=void 0===c?this._config.step||lt:c,h=i.step,d=void 0===h?lt:h;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=a,this._render=u||d,this._duration=i.duration||500,this._promiseCtor=o,l&&(this._resolve=l);var f=e.from,p=e.to,m=void 0===p?{}:p,g=this._currentState,_=this._originalState,b=this._targetState;for(var v in f)g[v]=f[v];var y=!1;for(var w in g){var E=g[w];y||U(E)!==rt||(y=!0),_[w]=E,b[w]=m.hasOwnProperty(w)?m[w]:E}if(this._easing=vt(this._currentState,i.easing,this._easing),this._filters.length=0,y){for(var C in t.filters)t.filters[C].doesApply(this)&&this._filters.push(t.filters[C]);this._applyFilter("tweenCreated")}return this}},{key:"then",value:function(t,e){var i=this;return this._promise=new this._promiseCtor((function(t,e){i._resolve=t,i._reject=e})),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return Q({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,yt(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===ct?(ct=this,ut=this):(this._previous=ut,ut._next=this,ut=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var i=t.now();return this._timestamp+e===0||(this._timestamp=i-e,ft(this,i)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,yt(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(ot),dt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(st),this._applyFilter("afterTweenEnd"))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=Q({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}]),t}();function Ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new Et;return e.tween(t),e.tweenable=e,e}X(Et,"now",(function(){return Z})),X(Et,"setScheduleFunction",(function(t){return at=t})),X(Et,"filters",{}),X(Et,"formulas",ht),_t(!0);var St,kt,xt=/(\d|-|\.)/,Tt=/([^\-0-9.]+)/g,At=/[0-9.-]+/g,Ot=(St=At.source,kt=/,\s*/.source,new RegExp("rgba?\\(".concat(St).concat(kt).concat(St).concat(kt).concat(St,"(").concat(kt).concat(St,")?\\)"),"g")),Lt=/^.*\(/,It=/#([0-9]|[a-f]){3,6}/gi,Pt="VAL",Mt=function(t,e){return t.map((function(t,i){return"_".concat(e,"_").concat(i)}))};function Ft(t){return parseInt(t,16)}var $t=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Ft(e.substr(0,2)),Ft(e.substr(2,2)),Ft(e.substr(4,2))]).join(","),")");var e},jt=function(t,e,i){var n=e.match(t),s=e.replace(t,Pt);return n&&n.forEach((function(t){return s=s.replace(Pt,i(t))})),s},Nt=function(t){for(var e in t){var i=t[e];"string"==typeof i&&i.match(It)&&(t[e]=jt(It,i,$t))}},Dt=function(t){var e=t.match(At),i=e.slice(0,3).map(Math.floor),n=t.match(Lt)[0];if(3===e.length)return"".concat(n).concat(i.join(","),")");if(4===e.length)return"".concat(n).concat(i.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Rt=function(t){return t.match(At)},Bt=function(t){var e,i,n={};for(var s in t){var o=t[s];"string"==typeof o&&(n[s]={formatString:(e=o,i=void 0,i=e.match(Tt),i?(1===i.length||e.charAt(0).match(xt))&&i.unshift(""):i=["",""],i.join(Pt)),chunkNames:Mt(Rt(o),s)})}return n},Vt=function(t,e){var i=function(i){Rt(t[i]).forEach((function(n,s){return t[e[i].chunkNames[s]]=+n})),delete t[i]};for(var n in e)i(n)},zt=function(t,e){var i={};return e.forEach((function(e){i[e]=t[e],delete t[e]})),i},Wt=function(t,e){return e.map((function(e){return t[e]}))},qt=function(t,e){return e.forEach((function(e){return t=t.replace(Pt,+e.toFixed(4))})),t},Ht=function(t,e){for(var i in e){var n=e[i],s=n.chunkNames,o=n.formatString,r=qt(o,Wt(zt(t,s),s));t[i]=jt(Ot,r,Dt)}},Ut=function(t,e){var i=function(i){var n=e[i].chunkNames,s=t[i];if("string"==typeof s){var o=s.split(" "),r=o[o.length-1];n.forEach((function(e,i){return t[e]=o[i]||r}))}else n.forEach((function(e){return t[e]=s}));delete t[i]};for(var n in e)i(n)},Gt=function(t,e){for(var i in e){var n=e[i].chunkNames,s=t[n[0]];t[i]="string"==typeof s?n.map((function(e){var i=t[e];return delete t[e],i})).join(" "):s}},Kt=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Yt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Nt),t._tokenData=Bt(e)}function Qt(t){var e=t._currentState,i=t._originalState,n=t._targetState,s=t._easing,o=t._tokenData;Ut(s,o),[e,i,n].forEach((function(t){return Vt(t,o)}))}function Xt(t){var e=t._currentState,i=t._originalState,n=t._targetState,s=t._easing,o=t._tokenData;[e,i,n].forEach((function(t){return Ht(t,o)})),Gt(s,o)}function Zt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Jt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var te=new Et,ee=Et.filters,ie=function(t,e,i,n){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(i),!0).forEach((function(e){Jt(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Zt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},t),r=vt(t,n);for(var a in te._filters.length=0,te.set({}),te._currentState=o,te._originalState=t,te._targetState=e,te._easing=r,ee)ee[a].doesApply(te)&&te._filters.push(ee[a]);te._applyFilter("tweenCreated"),te._applyFilter("beforeTween");var l=dt(i,o,t,e,1,s,r);return te._applyFilter("afterTween"),l};function ne(t){return function(t){if(Array.isArray(t))return se(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return se(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?se(t,e):void 0}}(t)||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 se(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function oe(t,e,i){return e&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}function re(t,e){var i=e.get(t);if(!i)throw new TypeError("attempted to get private field on non-instance");return i.get?i.get.call(t):i.value}var ae=new WeakMap,le=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ae.set(this,{writable:!0,value:[]});for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];i.forEach(this.add.bind(this))}return oe(t,[{key:"add",value:function(t){return re(this,ae).push(t),t}},{key:"remove",value:function(t){var e=re(this,ae).indexOf(t);return~e&&re(this,ae).splice(e,1),t}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return re(this,ae).some((function(t){return t.isPlaying()}))}},{key:"play",value:function(){return re(this,ae).forEach((function(t){return t.tween()})),this}},{key:"pause",value:function(){return re(this,ae).forEach((function(t){return t.pause()})),this}},{key:"resume",value:function(){return this.playingTweenables.forEach((function(t){return t.resume()})),this}},{key:"stop",value:function(t){return re(this,ae).forEach((function(e){return e.stop(t)})),this}},{key:"tweenables",get:function(){return ne(re(this,ae))}},{key:"playingTweenables",get:function(){return re(this,ae).filter((function(t){return!t.hasEnded()}))}},{key:"promises",get:function(){return re(this,ae).map((function(t){return t.then()}))}}]),t}();Et.filters.token=s}},e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={exports:{}};return t[n](s,s.exports,i),s.exports}return i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(720)})()},t.exports=i()}));(Fi=$i)&&Fi.__esModule&&Object.prototype.hasOwnProperty.call(Fi,"default")&&Fi.default;var ji=fi((function(t,e){var i="__lodash_hash_undefined__",n=9007199254740991,s="[object Arguments]",o="[object Function]",r="[object Object]",a=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[s]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[o]=c["[object Map]"]=c["[object Number]"]=c[r]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof di&&di&&di.Object===Object&&di,h="object"==typeof self&&self&&self.Object===Object&&self,d=u||h||Function("return this")(),f=e&&!e.nodeType&&e,p=f&&t&&!t.nodeType&&t,m=p&&p.exports===f,g=m&&u.process,_=function(){try{var t=p&&p.require&&p.require("util").types;return t||g&&g.binding&&g.binding("util")}catch(t){}}(),b=_&&_.isTypedArray;var v,y=Array.prototype,w=Function.prototype,E=Object.prototype,C=d["__core-js_shared__"],S=w.toString,k=E.hasOwnProperty,x=(v=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",T=E.toString,A=S.call(Object),O=RegExp("^"+S.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=m?d.Buffer:void 0,I=d.Symbol,P=d.Uint8Array;L&&L.allocUnsafe;var M,F,$=(M=Object.getPrototypeOf,F=Object,function(t){return M(F(t))}),j=Object.create,N=E.propertyIsEnumerable,D=y.splice,R=I?I.toStringTag:void 0,B=function(){try{var t=ht(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),V=L?L.isBuffer:void 0,z=Math.max,W=Date.now,q=ht(d,"Map"),H=ht(Object,"create"),U=function(){function t(){}return function(e){if(!Ct(e))return{};if(j)return j(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function G(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function K(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Y(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Q(t){var e=this.__data__=new K(t);this.size=e.size}function X(t,e){var i=bt(t),n=!i&&_t(t),s=!i&&!n&&yt(t),o=!i&&!n&&!s&&kt(t),r=i||n||s||o,a=r?function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}(t.length,String):[],l=a.length;for(var c in t)r&&("length"==c||s&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||dt(c,l))||a.push(c);return a}function Z(t,e,i){(void 0!==i&&!gt(t[e],i)||void 0===i&&!(e in t))&&et(t,e,i)}function J(t,e,i){var n=t[e];k.call(t,e)&&gt(n,i)&&(void 0!==i||e in t)||et(t,e,i)}function tt(t,e){for(var i=t.length;i--;)if(gt(t[i][0],e))return i;return-1}function et(t,e,i){"__proto__"==e&&B?B(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}G.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},G.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},G.prototype.get=function(t){var e=this.__data__;if(H){var n=e[t];return n===i?void 0:n}return k.call(e,t)?e[t]:void 0},G.prototype.has=function(t){var e=this.__data__;return H?void 0!==e[t]:k.call(e,t)},G.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=H&&void 0===e?i:e,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(t){var e=this.__data__,i=tt(e,t);return!(i<0)&&(i==e.length-1?e.pop():D.call(e,i,1),--this.size,!0)},K.prototype.get=function(t){var e=this.__data__,i=tt(e,t);return i<0?void 0:e[i][1]},K.prototype.has=function(t){return tt(this.__data__,t)>-1},K.prototype.set=function(t,e){var i=this.__data__,n=tt(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this},Y.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(q||K),string:new G}},Y.prototype.delete=function(t){var e=ut(this,t).delete(t);return this.size-=e?1:0,e},Y.prototype.get=function(t){return ut(this,t).get(t)},Y.prototype.has=function(t){return ut(this,t).has(t)},Y.prototype.set=function(t,e){var i=ut(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this},Q.prototype.clear=function(){this.__data__=new K,this.size=0},Q.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Q.prototype.get=function(t){return this.__data__.get(t)},Q.prototype.has=function(t){return this.__data__.has(t)},Q.prototype.set=function(t,e){var i=this.__data__;if(i instanceof K){var n=i.__data__;if(!q||n.length<199)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new Y(n)}return i.set(t,e),this.size=i.size,this};var it=function(t,e,i){for(var n=-1,s=Object(t),o=i(t),r=o.length;r--;){var a=o[++n];if(!1===e(s[a],a,s))break}return t};function nt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?function(t){var e=k.call(t,R),i=t[R];try{t[R]=void 0;var n=!0}catch(t){}var s=T.call(t);n&&(e?t[R]=i:delete t[R]);return s}(t):function(t){return T.call(t)}(t)}function st(t){return St(t)&&nt(t)==s}function ot(t){return!(!Ct(t)||function(t){return!!x&&x in t}(t))&&(wt(t)?O:a).test(function(t){if(null!=t){try{return S.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function rt(t){if(!Ct(t))return function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}(t);var e=ft(t),i=[];for(var n in t)("constructor"!=n||!e&&k.call(t,n))&&i.push(n);return i}function at(t,e,i,n,s){t!==e&&it(e,(function(o,a){if(s||(s=new Q),Ct(o))!function(t,e,i,n,s,o,a){var l=pt(t,i),c=pt(e,i),u=a.get(c);if(u)return void Z(t,i,u);var h=o?o(l,c,i+"",t,e,a):void 0,d=void 0===h;if(d){var f=bt(c),p=!f&&yt(c),m=!f&&!p&&kt(c);h=c,f||p||m?bt(l)?h=l:St(g=l)&&vt(g)?h=function(t,e){var i=-1,n=t.length;e||(e=Array(n));for(;++i<n;)e[i]=t[i];return e}(l):p?(d=!1,h=c.slice()):m?(d=!1,h=function(t){var e=(i=t.buffer,n=new i.constructor(i.byteLength),new P(n).set(new P(i)),n);var i,n;return new t.constructor(e,t.byteOffset,t.length)}(c)):h=[]:function(t){if(!St(t)||nt(t)!=r)return!1;var e=$(t);if(null===e)return!0;var i=k.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&S.call(i)==A}(c)||_t(c)?(h=l,_t(l)?h=function(t){return function(t,e,i){var n=!i;i||(i={});var s=-1,o=e.length;for(;++s<o;){var r=e[s],a=void 0;void 0===a&&(a=t[r]),n?et(i,r,a):J(i,r,a)}return i}(t,xt(t))}(l):Ct(l)&&!wt(l)||(h=function(t){return"function"!=typeof t.constructor||ft(t)?{}:U($(t))}(c))):d=!1}var g;d&&(a.set(c,h),s(h,c,n,o,a),a.delete(c));Z(t,i,h)}(t,e,a,i,at,n,s);else{var l=n?n(pt(t,a),o,a+"",t,e,s):void 0;void 0===l&&(l=o),Z(t,a,l)}}),xt)}function lt(t,e){return mt(function(t,e,i){return e=z(void 0===e?t.length-1:e,0),function(){for(var n=arguments,s=-1,o=z(n.length-e,0),r=Array(o);++s<o;)r[s]=n[e+s];s=-1;for(var a=Array(e+1);++s<e;)a[s]=n[s];return a[e]=i(r),function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}(t,this,a)}}(t,e,Ot),t+"")}var ct=B?function(t,e){return B(t,"toString",{configurable:!0,enumerable:!1,value:(i=e,function(){return i}),writable:!0});var i}:Ot;function ut(t,e){var i,n,s=t.__data__;return("string"==(n=typeof(i=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?s["string"==typeof e?"string":"hash"]:s.map}function ht(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return ot(i)?i:void 0}function dt(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&l.test(t))&&t>-1&&t%1==0&&t<e}function ft(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||E)}function pt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var mt=function(t){var e=0,i=0;return function(){var n=W(),s=16-(n-i);if(i=n,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ct);function gt(t,e){return t===e||t!=t&&e!=e}var _t=st(function(){return arguments}())?st:function(t){return St(t)&&k.call(t,"callee")&&!N.call(t,"callee")},bt=Array.isArray;function vt(t){return null!=t&&Et(t.length)&&!wt(t)}var yt=V||function(){return!1};function wt(t){if(!Ct(t))return!1;var e=nt(t);return e==o||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Et(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Ct(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function St(t){return null!=t&&"object"==typeof t}var kt=b?function(t){return function(e){return t(e)}}(b):function(t){return St(t)&&Et(t.length)&&!!c[nt(t)]};function xt(t){return vt(t)?X(t):rt(t)}var Tt,At=(Tt=function(t,e,i){at(t,e,i)},lt((function(t,e){var i=-1,n=e.length,s=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(s=Tt.length>3&&"function"==typeof s?(n--,s):void 0,o&&function(t,e,i){if(!Ct(i))return!1;var n=typeof e;return!!("number"==n?vt(i)&&dt(e,i.length):"string"==n&&e in i)&&gt(i[e],t)}(e[0],e[1],o)&&(s=n<3?void 0:s,n=1),t=Object(t);++i<n;){var r=e[i];r&&Tt(t,r,i,s)}return t})));function Ot(t){return t}t.exports=At})),Ni="Webkit Moz O ms".split(" ");function Di(t,e,i){for(var n=t.style,s=0;s<Ni.length;++s){n[Ni[s]+Ri(e)]=i}n[e]=i}function Ri(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Bi(t){return!function(t){return"[object Array]"===Object.prototype.toString.call(t)}(t)&&("object"===typeof t&&!!t)}function Vi(t,e){for(var i in t){if(t.hasOwnProperty(i))e(t[i],i)}}var zi={extend:ji,render:function(t,e){var i=t;for(var n in e)if(e.hasOwnProperty(n)){var s=e[n],o=new RegExp("\\{"+n+"\\}","g");i=i.replace(o,s)}return i},setStyle:Di,setStyles:function(t,e){Vi(e,(function(e,i){null!=e&&(Bi(e)&&!0===e.prefix?Di(t,i,e.value):t.style[i]=e)}))},capitalize:Ri,isString:function(t){return"string"==typeof t||t instanceof String},isFunction:function(t){return"function"==typeof t},isObject:Bi,forEachObject:Vi,floatEquals:function(t,e){return Math.abs(t-e)<.001},removeChildren:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}};zi.extend,zi.render,zi.setStyle,zi.setStyles,zi.capitalize,zi.isString,zi.isFunction,zi.isObject,zi.forEachObject,zi.floatEquals,zi.removeChildren;var Wi=$i.Tweenable,qi={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},Hi=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var n;i=zi.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),n=zi.isString(e)?document.querySelector(e):e,this.path=n,this._opts=i,this._tweenable=null;var s=this.path.getTotalLength();this.path.style.strokeDasharray=s+" "+s,this.set(0)};Hi.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},Hi.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(zi.isFunction(e)){var i=this._easing(this._opts.easing);e(this._calculateTo(t,i),this._opts.shape||this,this._opts.attachment)}},Hi.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},Hi.prototype.animate=function(t,e,i){e=e||{},zi.isFunction(e)&&(i=e,e={});var n=zi.extend({},e),s=zi.extend({},this._opts);e=zi.extend(s,e);var o=this._easing(e.easing),r=this._resolveFromAndTo(t,o,n);this.stop(),this.path.getBoundingClientRect();var a=this._getComputedDashOffset(),l=this._progressToOffset(t),c=this;this._tweenable=new Wi,this._tweenable.tween({from:zi.extend({offset:a},r.from),to:zi.extend({offset:l},r.to),duration:e.duration,delay:e.delay,easing:o,step:function(t){c.path.style.strokeDashoffset=t.offset;var i=e.shape||c;e.step(t,i,e.attachment)}}).then((function(t){zi.isFunction(i)&&i()})).catch((function(t){throw console.error("Error in tweening:",t),t}))},Hi.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},Hi.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},Hi.prototype._resolveFromAndTo=function(t,e,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},Hi.prototype._calculateFrom=function(t){return $i.interpolate(this._opts.from,this._opts.to,this.value(),t)},Hi.prototype._calculateTo=function(t,e){return $i.interpolate(this._opts.from,this._opts.to,t,e)},Hi.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},Hi.prototype._easing=function(t){return qi.hasOwnProperty(t)?qi[t]:t};var Ui=Hi,Gi="Object is destroyed",Ki=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=zi.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),zi.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),zi.isObject(i)&&zi.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var n,s=this._createSvgView(this._opts);if(!(n=zi.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=n,this._container.appendChild(s.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&zi.setStyles(s.svg,this._opts.svgStyle),this.svg=s.svg,this.path=s.path,this.trail=s.trail,this.text=null;var o=zi.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new Ui(s.path,o),zi.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};Ki.prototype.animate=function(t,e,i){if(null===this._progressPath)throw new Error(Gi);this._progressPath.animate(t,e,i)},Ki.prototype.stop=function(){if(null===this._progressPath)throw new Error(Gi);void 0!==this._progressPath&&this._progressPath.stop()},Ki.prototype.pause=function(){if(null===this._progressPath)throw new Error(Gi);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},Ki.prototype.resume=function(){if(null===this._progressPath)throw new Error(Gi);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},Ki.prototype.destroy=function(){if(null===this._progressPath)throw new Error(Gi);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)},Ki.prototype.set=function(t){if(null===this._progressPath)throw new Error(Gi);this._progressPath.set(t)},Ki.prototype.value=function(){if(null===this._progressPath)throw new Error(Gi);return void 0===this._progressPath?0:this._progressPath.value()},Ki.prototype.setText=function(t){if(null===this._progressPath)throw new Error(Gi);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),zi.isObject(t)?(zi.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},Ki.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var i=null;(t.trailColor||t.trailWidth)&&(i=this._createTrail(t),e.appendChild(i));var n=this._createPath(t);return e.appendChild(n),{svg:e,path:n,trail:i}},Ki.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},Ki.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},Ki.prototype._createTrail=function(t){var e=this._trailString(t),i=zi.extend({},t);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(e,i)},Ki.prototype._createPathElement=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",t),i.setAttribute("stroke",e.color),i.setAttribute("stroke-width",e.strokeWidth),e.fill?i.setAttribute("fill",e.fill):i.setAttribute("fill-opacity","0"),i},Ki.prototype._createTextContainer=function(t,e){var i=document.createElement("div");i.className=t.text.className;var n=t.text.style;return n&&(t.text.autoStyleContainer&&(e.style.position="relative"),zi.setStyles(i,n),n.color||(i.style.color=t.color)),this._initializeTextContainer(t,e,i),i},Ki.prototype._initializeTextContainer=function(t,e,i){},Ki.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},Ki.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},Ki.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),i=parseFloat(e.getPropertyValue("width"),10),n=parseFloat(e.getPropertyValue("height"),10);zi.floatEquals(this.containerAspectRatio,i/n)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",i/n),console.warn("Aspect ratio of should be",this.containerAspectRatio))}};var Yi=Ki,Qi=function(t,e){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,Yi.apply(this,arguments)};(Qi.prototype=new Yi).constructor=Qi,Qi.prototype._pathString=function(t){var e=t.strokeWidth;t.trailWidth&&t.trailWidth>t.strokeWidth&&(e=t.trailWidth);var i=50-e/2;return zi.render(this._pathTemplate,{radius:i,"2radius":2*i})},Qi.prototype._trailString=function(t){return this._pathString(t)};var Xi=Qi;const Zi={color:"#5C6F82",trailColor:"#D9DADB",strokeWidth:24,trailWidth:12,easing:"easeInOut",duration:1400,text:{autoStyleContainer:!1},animate:!0,value:0};class Ji extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._bar=null,this._init()}static get NAME(){return"progressdonut"}set(t){this._config.animate?this._bar.animate(t):this._bar.set(t)}dispose(){this._bar.destroy(),super.dispose()}_getConfig(t){return t={...Zi,step:this._getStepCallback(),...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_getStepCallback(){return(t,e)=>{const i=Math.round(100*e.value());e.setText(i+"%")}}_init(){this._bar=new Xi(this._element,this._config),this._config.value>0&&this.set(this._config.value)}}"undefined"!=typeof window&&"undefined"!=typeof document&&Y.find("[data-bs-progress-donut]").forEach((t=>{Ji.getOrCreateInstance(t)}));const tn="dragend",en="dragover",nn="dragenter",sn="dragleave",on="drop",rn="success",an="dragover",ln="loading",cn="[data-bs-upload-dragdrop]";class un extends K{constructor(t){super(t);const e=Y.findOne("[data-bs-progress-donut]",this._element);e&&(this._donut=Ji.getOrCreateInstance(e)),this._bindEvents()}static get NAME(){return"upload"}progress(t){this._donut.set(t)}start(){this.reset(),this._element.classList.add(ln)}success(){this._element.classList.remove(ln),this._element.classList.add(rn)}reset(){this._element.classList.remove(ln),this._element.classList.remove(rn),this._donut.set(0)}dispose(){this._donut.dispose(),super.dispose()}_bindEvents(){z.on(this._element,"drag",(t=>this._preventEvent(t))),z.on(this._element,"dragstart",(t=>this._preventEvent(t))),z.on(this._element,tn,(t=>this._preventEvent(t))),z.on(this._element,en,(t=>this._preventEvent(t))),z.on(this._element,nn,(t=>this._preventEvent(t))),z.on(this._element,sn,(t=>this._preventEvent(t))),z.on(this._element,on,(t=>this._preventEvent(t))),z.on(this._element,en,(()=>this._dropIn())),z.on(this._element,nn,(()=>this._dropIn())),z.on(this._element,sn,(()=>this._dropOut())),z.on(this._element,tn,(()=>this._dropOut())),z.on(this._element,on,(()=>this._dropOut())),z.on(this._element,on,(()=>this._drop()))}_preventEvent(t){t.preventDefault(),t.stopPropagation()}_dropIn(){this._isSuccess()||this._element.classList.add(an)}_dropOut(){this._isSuccess()||this._element.classList.remove(an)}_drop(){this._isSuccess()||this.start()}_isSuccess(){return this._element.classList.contains(rn)}}const hn=t=>{let e=t.matches&&t.matches(cn)?t:t.closest?t.closest(cn):null;return e&&un.getOrCreateInstance(e),null};"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("dragenter",(function(t){hn(t.target)})),z.on(document,"click.bs.upload.data-api",cn+" label",(function(){hn(this)})));const dn="back-to-top-show",fn={positionTop:0,scrollLimit:100,duration:800,easing:"easeInOutSine"};class pn extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._scrollCb=null,this._isAnim=!1,this._prevScrollBehavior="",this._bindEvents()}static get NAME(){return"backtotop"}show(){this._element.classList.contains(dn)||this._element.classList.add(dn)}hide(){this._element.classList.contains(dn)&&this._element.classList.remove(dn)}toggleShow(){"undefined"!=typeof document&&document.scrollingElement.scrollTop>this._config.scrollLimit?this.show():this.hide()}scrollToTop(){this._isAnim||(this._isAnim=!0,Ce(this._config.positionTop,{duration:this._config.duration,easing:this._config.easing,complete:()=>{this._isAnim=!1}}))}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(t){return t={...fn,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){this._scrollCb=we((()=>this.toggleShow())),z.on(this._element,"click.bs.backtotop",(t=>{t.preventDefault(),this.scrollToTop()}))}}we((()=>{Y.find('[data-bs-toggle="backtotop"]').map((t=>{pn.getOrCreateInstance(t)}))}));const mn=".bs.historyback",gn=`click${mn}`,_n=`click${mn}.data-api`;class bn extends K{constructor(t){super(t),this._bindEvents()}static get NAME(){return"historyback"}back(){"undefined"!=typeof window&&window.history.back()}_bindEvents(){z.on(this._element,gn,(t=>{t.preventDefault(),this.back()}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,_n,'[data-bs-toggle="historyback"]',(function(t){t.preventDefault();bn.getOrCreateInstance(this).back()}));const vn=".bs.historyback",yn=`click${vn}`,wn=`click${vn}.data-api`,En={duration:800,easing:"easeInOutSine"};class Cn extends K{constructor(t,e){super(t),this._config=this._getConfig(e),this._bindEvents()}static get NAME(){return"historyback"}goToTarget(){const t=g(this._element);t&&Ce(t.offsetTop,{duration:this._config.duration,easing:this._config.easing})}_getConfig(t){return t={...En,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){z.on(this._element,yn,(t=>{t.preventDefault(),this.goToTarget()}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,wn,'[data-bs-toggle="forward"]',(function(t){t.preventDefault();Cn.getOrCreateInstance(this).goToTarget()}));var Sn=function(t){return this._sizes=[],this._columns=[],this._container=null,this._count=null,this._width=0,this._removeListener=null,this._currentGutterX=null,this._currentGutterY=null,this._resizeTimeout=null,this.conf={baseWidth:255,gutterX:null,gutterY:null,gutter:10,container:null,minify:!0,ultimateGutter:5,surroundingGutter:!0,direction:"ltr",wedge:!1},this.init(t),this};Sn.prototype.init=function(t){for(var e in this.conf)null!=t[e]&&(this.conf[e]=t[e]);if(null!=this.conf.gutterX&&null!=this.conf.gutterY||(this.conf.gutterX=this.conf.gutterY=this.conf.gutter),this._currentGutterX=this.conf.gutterX,this._currentGutterY=this.conf.gutterY,this._container="object"==typeof this.conf.container&&this.conf.container.nodeName?this.conf.container:document.querySelector(this.conf.container),!this._container)throw new Error("Container not found or missing");var i=this.resizeThrottler.bind(this);window.addEventListener("resize",i),this._removeListener=function(){window.removeEventListener("resize",i),null!=this._resizeTimeout&&(window.clearTimeout(this._resizeTimeout),this._resizeTimeout=null)},this.layout()},Sn.prototype.reset=function(){this._sizes=[],this._columns=[],this._count=null,this._width=this._container.clientWidth;var t=this.conf.baseWidth;this._width<t&&(this._width=t,this._container.style.minWidth=t+"px"),1==this.getCount()?(this._currentGutterX=this.conf.ultimateGutter,this._count=1):this._width<this.conf.baseWidth+2*this._currentGutterX?this._currentGutterX=0:this._currentGutterX=this.conf.gutterX},Sn.prototype.getCount=function(){return this.conf.surroundingGutter?Math.floor((this._width-this._currentGutterX)/(this.conf.baseWidth+this._currentGutterX)):Math.floor((this._width+this._currentGutterX)/(this.conf.baseWidth+this._currentGutterX))},Sn.prototype.computeWidth=function(){var t;return t=this.conf.surroundingGutter?(this._width-this._currentGutterX)/this._count-this._currentGutterX:(this._width+this._currentGutterX)/this._count-this._currentGutterX,t=Number.parseFloat(t.toFixed(2))},Sn.prototype.layout=function(){if(this._container){this.reset(),null==this._count&&(this._count=this.getCount());for(var t=this.computeWidth(),e=0;e<this._count;e++)this._columns[e]=0;for(var i,n=this._container.children,s=0;s<n.length;s++)n[s].style.width=t+"px",this._sizes[s]=n[s].clientHeight;if(i="ltr"==this.conf.direction?this.conf.surroundingGutter?this._currentGutterX:0:this._width-(this.conf.surroundingGutter?this._currentGutterX:0),this._count>this._sizes.length){var o=this._sizes.length*(t+this._currentGutterX)-this._currentGutterX;!1===this.conf.wedge?i="ltr"==this.conf.direction?(this._width-o)/2:this._width-(this._width-o)/2:"ltr"==this.conf.direction||(i=this._width-this._currentGutterX)}for(var r=0;r<n.length;r++){var a,l=this.conf.minify?this.getShortest():this.getNextColumn(r),c=0;(this.conf.surroundingGutter||l!=this._columns.length)&&(c=this._currentGutterX),a="ltr"==this.conf.direction?i+(t+c)*l:i-(t+c)*l-t;var u=this._columns[l];n[r].style.transform="translate3d("+Math.round(a)+"px,"+Math.round(u)+"px,0)",this._columns[l]+=this._sizes[r]+(this._count>1?this.conf.gutterY:this.conf.ultimateGutter)}this._container.style.height=this._columns[this.getLongest()]-this._currentGutterY+"px"}else console.error("Container not found")},Sn.prototype.getNextColumn=function(t){return t%this._columns.length},Sn.prototype.getShortest=function(){for(var t=0,e=0;e<this._count;e++)this._columns[e]<this._columns[t]&&(t=e);return t},Sn.prototype.getLongest=function(){for(var t=0,e=0;e<this._count;e++)this._columns[e]>this._columns[t]&&(t=e);return t},Sn.prototype.resizeThrottler=function(){this._resizeTimeout||(this._resizeTimeout=setTimeout(function(){this._resizeTimeout=null,this._container.clientWidth!=this._width&&this.layout()}.bind(this),33))},Sn.prototype.destroy=function(){"function"==typeof this._removeListener&&this._removeListener();for(var t=this._container.children,e=0;e<t.length;e++)t[e].style.removeProperty("width"),t[e].style.removeProperty("transform");this._container.style.removeProperty("height"),this._container.style.removeProperty("min-width")};const kn="masonry-loader",xn=`.${kn}`,Tn={percentPosition:!0};class An extends K{constructor(t,e){super(t),"undefined"!=typeof window&&"undefined"!=typeof document&&(this._config=this._getConfig(e),this._masonry=null,this._images=Y.find("img",this._element),this._loadCounter=0,this._init())}static get NAME(){return"masonry"}dispose(){this._masonry&&(this._masonry.destroy(),this._masonry=null),super.dispose()}layout(){this._masonry&&this._masonry.layout()}_getConfig(t){return t={...Tn,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_init(){this._images.length>0?this._images.forEach((t=>{const e=new Image;e.onload=()=>this._onLoadEnd(),e.src=t.src})):this._initMasonry()}_onLoadEnd(){this._loadCounter++,this._loadCounter>=this._images.length&&this._initMasonry()}_initMasonry(){const t=this._config;t.container=this._element,this._masonry=new Sn(t)}_createLoader(){if("undefined"==typeof document)return;const t=document.createElement("div");return t.classList.add(kn,"fade","d-flex","justify-content-center","align-items-center"),t.innerHTML='<div class="progress-spinner progress-spinner-active"><span class="visually-hidden">Caricamento...</span></div>',this._element.appendChild(t),t}_getOrCreateLoader(){const t=Y.findOne(xn,this._element);return t||this._createLoader()}_destroyLoader(){const t=Y.findOne(xn,this._element);t&&t.remove()}_showLoader(){this._getOrCreateLoader().classList.add("show")}_hideLoader(){this._destroyLoader()}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=Y.find('[data-bs-toggle="masonry"]');t.length>0&&t.forEach((t=>{An.getOrCreateInstance(t)}))}const On=".bs.list",Ln=`click${On}`,In=`click${On}.data-api`,Pn="active",Mn="input[type=checkbox]";class Fn extends K{constructor(t){super(t),this._init()}static get NAME(){return"list"}toggleCheckbox(t){const e=Y.findOne("input",t);e&&(e.checked?(e.checked=!1,t.classList.remove(Pn)):(e.checked=!0,t.classList.add(Pn)))}_init(){this._initCheckbox()}_initCheckbox(){Y.find(Mn,this._element).forEach((t=>{z.on(t.closest("a"),Ln,(e=>{e.preventDefault(),this.toggleCheckbox(t.closest("a"))}))}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&Y.find("[data-bs-list-checkbox]").forEach((t=>{Y.find(Mn,t).forEach((e=>{z.one(e.closest("a"),In,(e=>{if(!Fn.getInstance(t)){e.preventDefault();Fn.getOrCreateInstance(t).toggleCheckbox(e.currentTarget)}}))}))}));const $n=".bs.transfer",jn=".data-api",Nn=`click${$n}${jn}`,Dn=`keyup${$n}${jn}`,Rn=`click${$n}`,Bn="active",Vn="source",zn="semi-checked",Wn="[data-bs-transfer]",qn=".transfer-header input",Hn=".transfer-group input",Un=".it-transfer-wrapper",Gn=".transfer-group",Kn=`${Un}.source`,Yn=`${Un}.target`,Qn=".form-check";class Xn extends K{constructor(t){super(t),this._addBtnElement=Y.findOne("a.transfer",this._element),this._invBtnElement=Y.findOne("a.backtransfer",this._element),this._resetBtnElement=Y.findOne("a.reset",this._element),this._listDefault={source:Y.find(Kn+" "+Gn+" "+Qn,this._element),target:Y.find(Yn+" "+Gn+" "+Qn,this._element)},this._bindEvents()}static get NAME(){return"transfer"}_bindEvents(){Y.find(qn,this._element).forEach((t=>{z.on(t,Rn,(()=>{this._checkListHeader(t.closest(Un))}))})),Y.find(Hn,this._element).forEach((t=>{z.on(t,Rn,(()=>{this._checkList(t.closest(Un))}))})),z.on(this._addBtnElement,Rn,(t=>{t.preventDefault(),this._disableElement(this._addBtnElement),this._addItems()})),z.on(this._invBtnElement,Rn,(t=>{t.preventDefault(),this._disableElement(this._invBtnElement),this._addItems(!0)})),z.on(this._resetBtnElement,Rn,(t=>{t.preventDefault(),this._disableElement(this._addBtnElement),this._disableElement(this._invBtnElement),this._disableElement(this._resetBtnElement),this._resetAll()}))}_disableElement(t){t.classList.remove(Bn),t.setAttribute("disabled","disabled"),t.setAttribute("aria-disabled","true")}_enableElement(t){t.classList.add(Bn),t.removeAttribute("disabled"),t.removeAttribute("aria-disabled")}_getScopeData(t){return{scope:t,list:Y.find(Hn,t),listChecked:Y.find(Hn+":checked",t),head:Y.findOne(".transfer-header",t),inputHead:Y.findOne(qn,t),labelNumHead:Y.findOne(".transfer-header span.num",t),group:Y.findOne(Gn,t)}}_checkList(t){const e=this._getScopeData(t);0==e.listChecked.length?(e.inputHead.classList.remove(zn),e.inputHead.checked=!0,t.classList.contains(Vn)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(e.listChecked.length==e.list.length?(e.inputHead.classList.remove(zn),e.inputHead.checked=!0):(e.inputHead.classList.add(zn),e.inputHead.checked=!1),t.classList.contains(Vn)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_checkListHeader(t){const e=this._getScopeData(t);e.listChecked.length>0?(e.list.forEach((t=>{t.checked=!1})),e.inputHead.classList.remove(zn),e.inputHead.checked=!1,t.classList.contains(Vn)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(e.list.forEach((t=>{t.checked=!0})),t.classList.contains(Vn)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_addItems(t){const e=this._getScopeData(Y.findOne(t?Yn:Kn,this._element)),i=this._getScopeData(Y.findOne(t?Kn:Yn,this._element)),n=e.listChecked,s=e.inputHead,o=e.labelNumHead,r=n.length,a=e.list.length,l=i.group,c=i.list.length+r,u=i.labelNumHead,h=i.inputHead;n.forEach((t=>{const e=t.closest(Qn);e.remove(),l.appendChild(e),t.checked=!1}));const d=a-r,f=c;o.innerText=d,u.innerText=f,0==d&&s.setAttribute("disabled",!0),f>0&&h.removeAttribute("disabled"),s.classList.remove(zn),s.checked=!1,this._enableElement(this._resetBtnElement)}_resetAll(){const t={source:this._getScopeData(Y.findOne(Kn,this._element)),target:this._getScopeData(Y.findOne(Yn,this._element))};Object.keys(t).forEach((e=>{t[e].list.forEach((t=>t.closest(Qn).remove()))})),Object.keys(t).forEach((e=>{this._listDefault[e].forEach((i=>{i.checked=!1,t[e].group.appendChild(i)})),t[e].labelNumHead.innerText=this._listDefault[e].length,t[e].inputHead.removeAttribute("disabled"),t[e].inputHead.classList.remove(zn),t[e].inputHead.checked=!1}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,Nn,Wn+" .form-check label",(function(){Xn.getOrCreateInstance(this.closest(Wn))})),z.on(document,Dn,Wn+" .form-check label",(function(){Xn.getOrCreateInstance(this.closest(Wn))})));const Zn=".bs.alert",Jn=`close${Zn}`,ts=`closed${Zn}`;class es extends K{static get NAME(){return"alert"}close(){if(z.trigger(this._element,Jn).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),z.trigger(this._element,ts),this.dispose()}}"undefined"!=typeof window&&"undefined"!=typeof document&&mt(es,"close");const is='[data-bs-toggle="button"]';class ns extends K{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,"click.bs.button.data-api",is,(t=>{t.preventDefault();const e=t.target.closest(is);ns.getOrCreateInstance(e).toggle()}));const ss=".bs.collapse",os=`show${ss}`,rs=`shown${ss}`,as=`hide${ss}`,ls=`hidden${ss}`,cs=`click${ss}.data-api`,us="show",hs="collapse",ds="collapsing",fs=`:scope .${hs} .${hs}`,ps='[data-bs-toggle="collapse"]',ms={parent:null,toggle:!0},gs={parent:"(null|element)",toggle:"boolean"};class _s extends K{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=Y.find(ps);for(const t of i){const e=m(t),i=Y.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ms}static get DefaultType(){return gs}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>_s.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(z.trigger(this._element,os).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(hs),this._element.classList.add(ds),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ds),this._element.classList.add(hs,us),this._element.style[e]="",z.trigger(this._element,rs)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(z.trigger(this._element,as).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,C(this._element),this._element.classList.add(ds),this._element.classList.remove(hs,us);for(const t of this._triggerArray){const e=g(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ds),this._element.classList.add(hs),z.trigger(this._element,ls)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(us)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=b(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ps);for(const e of t){const t=g(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=Y.find(fs,this._config.parent);return Y.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,cs,ps,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=m(this),i=Y.find(e);for(const t of i)_s.getOrCreateInstance(t,{toggle:!1}).toggle()}));const bs="dropdown",vs=".bs.dropdown",ys=".data-api",ws="ArrowUp",Es="ArrowDown",Cs=`hide${vs}`,Ss=`hidden${vs}`,ks=`show${vs}`,xs=`shown${vs}`,Ts=`click${vs}${ys}`,As=`keydown${vs}${ys}`,Os=`keyup${vs}${ys}`,Ls="show",Is='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ps=`${Is}.${Ls}`,Ms=".dropdown-menu",Fs=S()?"top-end":"top-start",$s=S()?"top-start":"top-end",js=S()?"bottom-end":"bottom-start",Ns=S()?"bottom-start":"bottom-end",Ds=S()?"left-start":"right-start",Rs=S()?"right-start":"left-start",Bs={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Vs={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class zs extends K{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=Y.next(this._element,Ms)[0]||Y.prev(this._element,Ms)[0]||Y.findOne(Ms,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Bs}static get DefaultType(){return Vs}static get NAME(){return bs}toggle(){return this._isShown()?this.hide():this.show()}show(){if(y(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!z.trigger(this._element,ks,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))z.on(t,"mouseover",E);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ls),this._element.classList.add(Ls),z.trigger(this._element,xs,t)}}hide(){if(y(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!z.trigger(this._element,Cs,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))z.off(t,"mouseover",E);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ls),this._element.classList.remove(Ls),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),z.trigger(this._element,Ss,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!_(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${bs.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===o)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:_(this._config.reference)?t=b(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=o.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ls)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Ds;if(t.classList.contains("dropstart"))return Rs;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?$s:Fs:e?Ns:js}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(U.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=Y.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>v(t)));i.length&&T(i,e,t===Es,!i.includes(e)).focus()}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=Y.find(Ps);for(const i of e){const e=zs.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[ws,Es].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Is)?this:Y.prev(this,Is)[0]||Y.next(this,Is)[0]||Y.findOne(Is,t.delegateTarget.parentNode),o=zs.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,As,Is,zs.dataApiKeydownHandler),z.on(document,As,Ms,zs.dataApiKeydownHandler),z.on(document,Ts,zs.clearMenus),z.on(document,Os,zs.clearMenus),z.on(document,Ts,Is,(function(t){t.preventDefault(),zs.getOrCreateInstance(this).toggle()})));const Ws=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",qs=".sticky-top",Hs="padding-right",Us="margin-right";class Gs{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Hs,(e=>e+t)),this._setElementAttributes(Ws,Hs,(e=>e+t)),this._setElementAttributes(qs,Us,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Hs),this._resetElementAttributes(Ws,Hs),this._resetElementAttributes(qs,Us)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&U.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=U.getDataAttribute(t,e);null!==i?(U.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(_(t))e(t);else for(const i of Y.find(t,this._element))e(i)}}const Ks="backdrop",Ys="show",Qs=`mousedown.bs.${Ks}`,Xs={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Zs={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Js extends G{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Xs}static get DefaultType(){return Zs}static get NAME(){return Ks}show(t){if(!this._config.isVisible)return void k(t);this._append();const e=this._getElement();this._config.isAnimated&&C(e),e.classList.add(Ys),this._emulateAnimation((()=>{k(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Ys),this._emulateAnimation((()=>{this.dispose(),k(t)}))):k(t)}dispose(){this._isAppended&&(z.off(this._element,Qs),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=b(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),z.on(t,Qs,(()=>{k(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){x(t,this._getElement(),this._config.isAnimated)}}const to=".bs.focustrap",eo=`focusin${to}`,io=`keydown.tab${to}`,no="backward",so={autofocus:!0,trapElement:null},oo={autofocus:"boolean",trapElement:"element"};class ro extends G{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return so}static get DefaultType(){return oo}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),z.off(document,to),z.on(document,eo,(t=>this._handleFocusin(t))),z.on(document,io,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,z.off(document,to))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=Y.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===no?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?no:"forward")}}const ao=".bs.modal",lo=`hide${ao}`,co=`hidePrevented${ao}`,uo=`hidden${ao}`,ho=`show${ao}`,fo=`shown${ao}`,po=`resize${ao}`,mo=`click.dismiss${ao}`,go=`mousedown.dismiss${ao}`,_o=`keydown.dismiss${ao}`,bo=`click${ao}.data-api`,vo="modal-open",yo="show",wo="modal-static",Eo={backdrop:!0,focus:!0,keyboard:!0},Co={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class So extends K{constructor(t,e){super(t,e),this._dialog=Y.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Gs,this._addEventListeners()}static get Default(){return Eo}static get DefaultType(){return Co}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;z.trigger(this._element,ho,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(vo),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;z.trigger(this._element,lo).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(yo),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){for(const t of[window,this._dialog])z.off(t,ao);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Js({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ro({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=Y.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),C(this._element),this._element.classList.add(yo);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,z.trigger(this._element,fo,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){z.on(this._element,_o,(t=>{if("Escape"===t.key)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),z.on(window,po,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),z.on(this._element,go,(t=>{z.one(this._element,mo,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(vo),this._resetAdjustments(),this._scrollBar.reset(),z.trigger(this._element,uo)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(z.trigger(this._element,co).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(wo)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(wo),this._queueCallback((()=>{this._element.classList.remove(wo),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=S()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=S()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,bo,'[data-bs-toggle="modal"]',(function(t){const e=g(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),z.one(e,ho,(t=>{t.defaultPrevented||z.one(e,uo,(()=>{v(this)&&this.focus()}))}));const i=Y.findOne(".modal.show");i&&So.getInstance(i).hide();So.getOrCreateInstance(e).toggle(this)})),mt(So));const ko=".bs.offcanvas",xo=".data-api",To=`load${ko}${xo}`,Ao="show",Oo="showing",Lo="hiding",Io=".offcanvas.show",Po=`show${ko}`,Mo=`shown${ko}`,Fo=`hide${ko}`,$o=`hidePrevented${ko}`,jo=`hidden${ko}`,No=`resize${ko}`,Do=`click${ko}${xo}`,Ro=`keydown.dismiss${ko}`,Bo={backdrop:!0,keyboard:!0,scroll:!1},Vo={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class zo extends K{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Bo}static get DefaultType(){return Vo}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(z.trigger(this._element,Po,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Gs).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Oo);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ao),this._element.classList.remove(Oo),z.trigger(this._element,Mo,{relatedTarget:t})}),this._element,!0)}hide(){if(!this._isShown)return;if(z.trigger(this._element,Fo).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Lo),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(Ao,Lo),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Gs).reset(),z.trigger(this._element,jo)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Js({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():z.trigger(this._element,$o)}:null})}_initializeFocusTrap(){return new ro({trapElement:this._element})}_addEventListeners(){z.on(this._element,Ro,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():z.trigger(this._element,$o))}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,Do,'[data-bs-toggle="offcanvas"]',(function(t){const e=g(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),y(this))return;z.one(e,jo,(()=>{v(this)&&this.focus()}));const i=Y.findOne(Io);i&&i!==e&&zo.getInstance(i).hide();zo.getOrCreateInstance(e).toggle(this)})),z.on(window,To,(()=>{for(const t of Y.find(Io))zo.getOrCreateInstance(t).show()})),z.on(window,No,(()=>{for(const t of Y.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&zo.getOrCreateInstance(t).hide()})),mt(zo));const Wo=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),qo=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ho=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Uo=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Wo.has(i)||Boolean(qo.test(t.nodeValue)||Ho.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Go={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};const Ko={allowList:Go,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Yo={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Qo={entry:"(string|element|function|null)",selector:"(string|element)"};class Xo extends G{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Ko}static get DefaultType(){return Yo}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Qo)}_setContent(t,e,i){const n=Y.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?_(e)?this._putElementInTemplate(b(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Uo(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Zo=new Set(["sanitize","allowList","sanitizeFn"]),Jo="fade",tr="show",er=".tooltip-inner",ir=".modal",nr="hide.bs.modal",sr="hover",or="focus",rr={AUTO:"auto",TOP:"top",RIGHT:S()?"left":"right",BOTTOM:"bottom",LEFT:S()?"right":"left"},ar={allowList:Go,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},lr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class cr extends K{constructor(t,e){if(void 0===o)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ar}static get DefaultType(){return lr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),z.off(this._element.closest(ir),nr,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=z.trigger(this._element,this.constructor.eventName("show")),e=(w(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),z.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(tr),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))z.on(t,"mouseover",E);document.addEventListener("keyup",(t=>{"Escape"===t.key&&this.hide()}),{once:!0});this._queueCallback((()=>{z.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(z.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(tr),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))z.off(t,"mouseover",E);this._activeTrigger.click=!1,this._activeTrigger[or]=!1,this._activeTrigger[sr]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),z.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Jo,tr),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Jo),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Xo({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[er]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Jo)}_isShown(){return this.tip&&this.tip.classList.contains(tr)}_createPopper(t){const e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=rr[e.toUpperCase()];return o.createPopper(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)z.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===sr?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===sr?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");z.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?or:sr]=!0,e._enter()})),z.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?or:sr]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},z.on(this._element.closest(ir),nr,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=U.getDataAttributes(this._element);for(const t of Object.keys(e))Zo.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:b(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}}const ur=".popover-header",hr=".popover-body",dr={...cr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},fr={...cr.DefaultType,content:"(null|string|element|function)"};const pr=".bs.scrollspy",mr=`activate${pr}`,gr=`click${pr}`,_r=`load${pr}.data-api`,br="active",vr="[href]",yr=".nav-link",wr=`${yr}, .nav-item > ${yr}, .list-group-item`,Er={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Cr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Sr extends K{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Er}static get DefaultType(){return Cr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=b(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(z.off(this._config.target,gr),z.on(this._config.target,gr,vr,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Y.find(vr,this._config.target);for(const e of t){if(!e.hash||y(e))continue;const t=Y.findOne(e.hash,this._element);v(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(br),this._activateParents(t),z.trigger(this._element,mr,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))Y.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(br);else for(const e of Y.parents(t,".nav, .list-group"))for(const t of Y.prev(e,wr))t.classList.add(br)}_clearActiveClass(t){t.classList.remove(br);const e=Y.find(`${vr}.${br}`,t);for(const t of e)t.classList.remove(br)}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(window,_r,(()=>{for(const t of Y.find('[data-bs-spy="scroll"]'))Sr.getOrCreateInstance(t)}));const kr=".bs.tab",xr=`hide${kr}`,Tr=`hidden${kr}`,Ar=`show${kr}`,Or=`shown${kr}`,Lr=`click${kr}`,Ir=`keydown${kr}`,Pr=`load${kr}`,Mr="ArrowLeft",Fr="ArrowRight",$r="ArrowUp",jr="ArrowDown",Nr="Enter",Dr=" ",Rr="active",Br="fade",Vr="show",zr=":not(.dropdown-toggle)",Wr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qr=`${`.nav-link${zr}, .list-group-item${zr}, [role="tab"]${zr}`}, ${Wr}`;class Hr extends K{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),z.on(this._element,Ir,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?z.trigger(e,xr,{relatedTarget:t}):null;z.trigger(t,Ar,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(Rr),this._activate(g(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),z.trigger(t,Or,{relatedTarget:e})):t.classList.add(Vr)}),t,t.classList.contains(Br))}_deactivate(t,e){if(!t)return;t.classList.remove(Rr),t.blur(),this._deactivate(g(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),z.trigger(t,Tr,{relatedTarget:e})):t.classList.remove(Vr)}),t,t.classList.contains(Br))}_keydown(t){if(![Mr,Fr,$r,jr,Nr,Dr].includes(t.key))return;if(t.stopPropagation(),t.preventDefault(),t.key===Nr||t.key===Dr)return void Hr.getOrCreateInstance(t.target).show();const e=[Fr,jr].includes(t.key),i=T(this._getChildren().filter((t=>!y(t))),t.target,e,!0);i&&i.focus({preventScroll:!0})}_getChildren(){return Y.find(qr,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=g(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=Y.findOne(t,i);s&&s.classList.toggle(n,e)};n(".dropdown-toggle",Rr),n(".dropdown-menu",Vr),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(Rr)}_getInnerElement(t){return t.matches(qr)?t:Y.findOne(qr,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,Lr,Wr,(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),y(this))return;Hr.getOrCreateInstance(this).dispose(),Hr.getOrCreateInstance(this).show()})),z.on(window,Pr,(()=>{for(const t of Y.find(Wr)){Hr.getOrCreateInstance(t).dispose(),Hr.getOrCreateInstance(t)}})));const Ur=".bs.toast",Gr=`mouseover${Ur}`,Kr=`mouseout${Ur}`,Yr=`focusin${Ur}`,Qr=`focusout${Ur}`,Xr=`hide${Ur}`,Zr=`hidden${Ur}`,Jr=`show${Ur}`,ta=`shown${Ur}`,ea="hide",ia="show",na="showing",sa={animation:"boolean",autohide:"boolean",delay:"number"},oa={animation:!0,autohide:!0,delay:5e3};class ra extends K{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return oa}static get DefaultType(){return sa}static get NAME(){return"toast"}show(){if(z.trigger(this._element,Jr).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(ea),C(this._element),this._element.classList.add(ia,na),this._queueCallback((()=>{this._element.classList.remove(na),z.trigger(this._element,ta),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(z.trigger(this._element,Xr).defaultPrevented)return;this._element.classList.add(na),this._queueCallback((()=>{this._element.classList.add(ea),this._element.classList.remove(na,ia),z.trigger(this._element,Zr)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ia),super.dispose()}isShown(){return this._element.classList.contains(ia)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){z.on(this._element,Gr,(t=>this._onInteraction(t,!0))),z.on(this._element,Kr,(t=>this._onInteraction(t,!1))),z.on(this._element,Yr,(t=>this._onInteraction(t,!0))),z.on(this._element,Qr,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}}"undefined"!=typeof window&&"undefined"!=typeof document&&mt(ra);const aa=t=>{const e=t.browser.IS_IOS||t.browser.IS_NATIVE_ANDROID,i=t.getTech("Tech");class n extends i{constructor(t,i){super(t,i),this.setPoster(t.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",e&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),n.isApiReady?this.initYTPlayer():n.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var t=n.apiReadyQueue.indexOf(this);-1!==t&&n.apiReadyQueue.splice(t,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),i.prototype.dispose.call(this)}createEl(){if("undefined"!=typeof document){var t=document.createElement("div");t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),t.setAttribute("class","vjs-tech");var i=document.createElement("div");if(i.appendChild(t),!e&&!this.options_.ytControls){var n=document.createElement("div");n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=function(){this.pause()}.bind(this),i.appendChild(n)}return i}}initYTPlayer(){var t={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(void 0!==this.options_.autohide&&(t.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(t.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(t.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(t.disablekb=this.options_.disablekb),void 0!==this.options_.color&&(t.color=this.options_.color),t.controls?void 0!==this.options_.fs&&(t.fs=this.options_.fs):t.fs=0,-1!==this.options_.source.src.indexOf("end=")){var e=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(e[1])}if(void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.hl?t.hl=this.options_.hl:void 0!==this.options_.language&&(t.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(t.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?t.list=this.options_.list:this.url&&void 0!==this.url.listId&&(t.list=this.url.listId),void 0!==this.options_.listType&&(t.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(t.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(t.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(t.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(t.rel=this.options_.rel),void 0!==this.options_.showinfo&&(t.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var i=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(i[1])}if(void 0!==this.options_.start&&(t.start=this.options_.start),void 0!==this.options_.theme&&(t.theme=this.options_.theme),void 0!==this.options_.customVars){var n=this.options_.customVars;Object.keys(n).forEach((function(e){t[e]=n[e]}))}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=t.list;var s={videoId:this.activeVideoId,playerVars:t,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};void 0!==this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(s.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,s)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger("ratechange")}onPlayerStateChange(t){var e=t.data;if(e!==this.lastState&&!this.errorNumber)switch(this.lastState=e,e){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}}onPlayerVolumeChange(){this.trigger("volumechange")}onPlayerError(t){this.errorNumber=t.data,this.trigger("pause"),this.trigger("error")}error(){var t=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:t,message:"Error while trying to play the video"};case 2:case 100:return{code:t,message:"Unable to find the video"};case 101:case 150:return{code:t,message:"Playback on other Websites has been disabled by the video owner."}}return{code:t,message:"YouTube unknown error ("+this.errorNumber+")"}}loadVideoById_(t){var e={videoId:t};this.options_.start&&(e.startSeconds=this.options_.start),this.options_.end&&(e.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(e)}cueVideoById_(t){var e={videoId:t};this.options_.start&&(e.startSeconds=this.options_.start),this.options_.end&&(e.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(e)}src(t){return t&&this.setSrc({src:t}),this.source}poster(){return e?null:this.poster_}setPoster(t){this.poster_=t}setSrc(t){t&&t.src&&(delete this.errorNumber,this.source=t,this.url=n.parseUrl(t.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!e?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(t){this.options_.autoplay=t}loop(){return this.options_.loop}setLoop(t){this.options_.loop=t}play(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?t.createTimeRange(0,this.ytPlayer.getDuration()):t.createTimeRange()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(t){this.ytPlayer&&this.ytPlayer.setPlaybackRate(t)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(t){this.ytPlayer&&this.ytPlayer.setVolume(100*t)}muted(){return!!this.ytPlayer&&this.ytPlayer.isMuted()}setMuted(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout((function(){this.trigger("volumechange")}),50))}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return t.createTimeRange();var e=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return t.createTimeRange(0,e)}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){if("undefined"!=typeof document)return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var e=new Image;e.onload=function(){if("naturalHeight"in e){if(e.naturalHeight<=90||e.naturalWidth<=120)return}else if(e.height<=90||e.width<=120)return;this.poster_=t,this.trigger("posterchange")}.bind(this),e.onerror=function(){},e.src=t}catch(t){}}}n.isSupported=function(){return!0},n.canPlaySource=function(t){return n.canPlayType(t.type)},n.canPlayType=function(t){return"video/youtube"===t},n.parseUrl=function(t){var e={videoId:null},i=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);i&&11===i[2].length&&(e.videoId=i[2]);return(i=t.match(/[?&]list=([^#\&\?]+)/))&&i[1]&&(e.listId=i[1]),e},n.apiReadyQueue=[],"undefined"!=typeof document&&(function(t,e){if("undefined"!=typeof document){var i=!1,n=document.createElement("script"),s=document.getElementsByTagName("script")[0];s&&(s.parentNode.insertBefore(n,s),n.onload=function(){i||(i=!0,e())},n.onreadystatechange=function(){i||"complete"!==this.readyState&&"loaded"!==this.readyState||(i=!0,e())},n.src=t)}}("https://www.youtube.com/iframe_api",(function(){YT.ready((function(){n.isApiReady=!0;for(var t=0;t<n.apiReadyQueue.length;++t)n.apiReadyQueue[t].initYTPlayer()}))})),function(){if("undefined"!=typeof document){var t=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }",e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),e.appendChild(i)}}()),void 0!==t.registerTech?t.registerTech("Youtube",n):t.registerComponent("Youtube",n)},la={languages:{it:{"Audio Player":"Lettore audio","Video Player":"Lettore video",Play:"Play",Pause:"Pausa",Replay:"Replay","Current Time":"Orario attuale",Duration:"Durata","Remaining Time":"Tempo rimanente","Stream Type":"Tipo di streaming",LIVE:"LIVE",Loaded:"Caricato",Progress:"Stato","Progress Bar":"Barra di avanzamento","progress bar timing: currentTime={1} duration={2}":"{1} di {2}",Fullscreen:"Schermo intero","Exit Fullscreen":"Chiudi Schermo intero",Mute:"Disattiva l’audio",Unmute:"Attiva l’audio","Playback Rate":"Velocità di riproduzione",Subtitles:"Sottotitoli","subtitles off":"Senza sottotitoli",Captions:"Sottotitoli non udenti","captions off":"Senza sottotitoli non udenti",Chapters:"Capitolo",Descriptions:"Descrizioni","descriptions off":"Descrizioni disattivate","Audio Track":"Traccia audio","Volume Level":"Livello del volume","You aborted the media playback":"La riproduzione del filmato è stata interrotta.","A network error caused the media download to fail part-way.":"Il download del filmato è stato interrotto a causa di un problema rete.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.","No compatible source was found for this media.":"Non ci sono fonti compatibili per questo filmato.","The media is encrypted and we do not have the keys to decrypt it.":"Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.","Play Video":"Riproduci il video",Close:"Chiudi","Close Modal Dialog":"Chiudi la finestra di dialogo","Modal Window":"Finestra di dialogo","This is a modal window":"Questa è una finestra di dialogo","This modal can be closed by pressing the Escape key or activating the close button.":"Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",", opens captions settings dialog":", aprire i parametri della trascrizione dei sottotitoli",", opens subtitles settings dialog":", aprire i parametri dei sottotitoli",", opens descriptions settings dialog":", aprire i parametri delle descrizioni",", selected":", selezionato","captions settings":"Parametri sottotitoli non udenti","subtitles settings":"Parametri sottotitoli","descriptions settings":"Parametri descrizioni",Text:"Testo",White:"Bianco",Black:"Nero",Red:"Rosso",Green:"Verde",Blue:"Blu",Yellow:"Giallo",Magenta:"Magenta",Cyan:"Ciano",Background:"Sfondo",Window:"Finestra",Transparent:"Trasparente","Semi-Transparent":"Semi-Trasparente",Opaque:"Opaco","Font Size":"Dimensione dei caratteri","Text Edge Style":"Stile dei bordi del testo",None:"Nessuno",Uniform:"Uniforme","Drop shadow":"Ombra","Font Family":"Carattere","Proportional Sans-Serif":"Sans-Serif proporzionale","Monospace Sans-Serif":"Sans-Serif monospaziato","Proportional Serif":"Serif proporzionale","Monospace Serif":"Serif monospaziato","Small Caps":"Maiuscoletto",Reset:"Reinizializza","restore all settings to the default values":"Ripristina i valori predefiniti per tutti i parametri",Done:"Fatto","Caption Settings Dialog":"Finestra di dialogo dei parametri della trascrizione dei sottotitoli","Beginning of dialog window. Escape will cancel and close the window.":"Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.","End of dialog window.":"Fine della finestra di dialogo.","{1} is loading.":"{1} in fase di caricamento.","Exit Picture-in-Picture":"Esci dalla modalità Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture",Color:"Colore",Opacity:"Opacità","Text Background":"Sfondo testo","Caption Area Background":"Sfondo area sottotitoli","Skip forward {1} seconds":"Avanti {1} secondi","Skip backward {1} seconds":"Indietro {1} secondi"}},language:"it"},ca={};"undefined"!=typeof window&&(window.videojs=i);class ua extends K{constructor(t,e){super(t),t.classList.add("video-js","vjs-theme-bootstrap-italia","vjs-fluid","vjs-big-play-centered"),this._config=this._getConfig(e),this.player=i(t,la)}setYouTubeVideo(t){aa(i),this.player.tech("youtube"),this.player.src({type:"video/youtube",src:t})}static get NAME(){return"videoplayer"}_getConfig(t){return t={...ca,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=Y.find("[data-bs-video]");t.length>0&&t.forEach((t=>{ua.getOrCreateInstance(t)}))}const ha="show";class da extends K{constructor(t,e){super(t.closest(".acceptoverlay")),this._overlayable=t.closest(".acceptoverlayable");const i=u.isChoiceRemembered(e.service);if(this._isShown=!0,this._toggleElement=t,this._element.classList.contains(ha)&&this._overlayable.classList.add(ha),i)return this.hide(),void setTimeout((()=>{this._toggleElement.dispatchEvent(new Event("click"))}),100);this._toggleElement.addEventListener("click",(()=>{this.hide(),this._remember=this._toggleElement.parentElement.querySelector("[data-bs-accept-remember]").checked,u.rememberChoice(e.service,this._remember)}))}static get NAME(){return"acceptoverlay"}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 t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(ha),this._overlayable.classList.remove(ha),this._queueCallback((()=>this._hideElement()),this._element,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),t&&C(this._element),this._element.classList.add(ha),this._overlayable.add(ha);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=Y.find("[data-bs-accept-from]");t.length>0&&t.forEach((t=>{da.getOrCreateInstance(t,{service:t.dataset.bsAcceptFrom})}))}l();const fa={Alert:es,Button:ns,Carousel:Z,Collapse:_s,Dropdown:zs,Modal:So,Offcanvas:zo,Popover:class extends cr{static get Default(){return dr}static get DefaultType(){return fr}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ur]:this._getTitle(),[hr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}},ScrollSpy:Sr,Tab:Hr,Toast:ra,Tooltip:cr,VideoPlayer:ua,AcceptOverlay:da,Accordion:le,BackToTop:pn,Cookiebar:Pt,Dimmer:pt,FormValidate:class{constructor(t,e,i){if(this.formSelector=t,"undefined"!=typeof window&&"undefined"!=typeof document)return this.target=document.querySelector(t),this.validate=null!=i?new oi(t,e,i):new oi(t,e),this.config=Object.assign({},li,this.validate.globalConfig),this.formItems=[],this.init(),this.validate}init(){this.target.querySelectorAll("input, select").forEach((t=>{const e=new ri(t,this.config.errorFieldCssClass,(()=>this.onInputError(t)),(()=>this.onInputErrorRemove(t)),!0);t.id||t.setAttribute("id",ci+"-input-"+Math.random()),this.formItems.push({item:t,watcher:e})}));this.target.querySelectorAll("fieldset").forEach((t=>{if(t.querySelectorAll("input[type=radio],input[type=checkbox]").length>0){const e=new ai(t,"."+this.config.errorLabelCssClass,(()=>this.onFieldsetError(t)),(()=>this.onFieldsetErrorRemove(t)));t.id||t.setAttribute("id",ci+"-fieldset-"+Math.random()),this.formItems.push({item:t,watcher:e})}}))}onInputError(t){const e=this.getErrorMessages(t),i=[];e.forEach(((e,n)=>{const s=t.id+"-error-"+n;e.setAttribute("id",s),i.push(s)})),i.length>0&&(t.setAttribute("aria-describedby",i.join(" ")),t.setAttribute("aria-invalid","true"))}onInputErrorRemove(t){t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid","false")}onFieldsetError(t){const e=this.getErrorMessages(t),i=[],n=[];if(e.forEach(((e,s)=>{const o=t.id+"-error-"+s;e.setAttribute("id",o),i.push(o),n.push(e.textContent)})),i.length>0){const e=t.querySelector("legend");e&&(e.setAttribute("aria-describedby",i.join(" ")),e.setAttribute("aria-invalid","true"))}}onFieldsetErrorRemove(t){const e=t.querySelector("legend");if(e){e.removeAttribute("aria-describedby"),e.setAttribute("aria-invalid","false");const t=e.querySelector(".sr-only-justvalidate-bi");t&&t.remove()}}getErrorMessages(t){let e=t,i=e.querySelectorAll("."+this.config.errorLabelCssClass);for(;null!=e&&0===i.length;)e=e.parentNode,i=e.querySelectorAll("."+this.config.errorLabelCssClass);return i}},Forward:Cn,HistoryBack:bn,Input:ui,InputNumber:dt,InputPassword:Mi,InputSearchAutocomplete:vi,List:Fn,Masonry:An,NavBarCollapsible:ne,NavScroll:Le,Notification:Et,ProgressDonut:Ji,SelectAutocomplete:class extends K{constructor(t,e){super(t),this._config=e||{},this._config.inputClasses="form-control",this._config.showNoOptionsFound=!0,this._config.hintClasses="app-hint",this._config.autoselect=!1,this._config.showAllValues=!1,this._config.templates=void 0,this._config.confirmOnBlur=!1,this._config.menuAttributes={},this._config.menuClasses=null,this._extraClasses=[],this._config.tAssistiveHint||(this._config.tAssistiveHint=()=>"Quando i risultati del completamento automatico sono disponibili, usa le frecce su e giù per rivedere e Invio per selezionare. Utenti di dispositivi touch, esplora tramite tocco o con gesti di scorrimento"),this._config.tNoResults||(this._config.tNoResults=()=>"Nessun risultato trovato"),this._config.tStatusQueryTooShort||(this._config.tStatusQueryTooShort=t=>`Digita ${t} o più caratteri per mostrare le opzioni di ricerca`),this._config.tStatusNoResults||(this._config.tStatusNoResults=()=>"Nessun risultato di ricerca"),this._config.tStatusSelectedOption||(this._config.tStatusSelectedOption=(t,e,i)=>`${t} ${i+1} di ${e} è sottolineato`),this._config.tStatusResults||(this._config.tStatusResults=(t,e)=>`${t} ${1===t?"risultato":"risultati"} ${1===t?"è":"sono"} ${1===t?"disponibile":"disponibili"}. ${e}`),"undefined"!=typeof document&&this._enhance()}static get NAME(){return"selectautocomplete"}_enhance(){const t=this._config.id,e=this._config.onConfirm;this._config.onConfirm=i=>{document.getElementById(t).value=i,document.getElementById(t).dispatchEvent(new Event("input")),e&&e(i)},pi(Object.assign({},{element:this._element,id:t},this._config)),setTimeout((()=>{this._inputField=document.getElementById(t),this._label=new st(this._inputField),this._inputField.addEventListener("focus",(()=>{this._extraClasses.forEach((t=>{this._inputField.classList.add(t)})),this._extraClasses=[]})),this._inputField.addEventListener("blur",(()=>{this._extraClasses.forEach((t=>{this._inputField.classList.add(t)})),this._extraClasses=[]})),function(t,e){const i=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"class"===t.attributeName&&e(t.oldValue,t.target)}))}));i.observe(t,{attributes:!0,attributeOldValue:!0}),i.disconnect}(this._inputField,(t=>{this._extraClasses=[],t!==this._inputField.classList.value&&t.split(" ").forEach((t=>{t.startsWith("autocomplete")||this._extraClasses.push(t)}))}))}),100)}},Sticky:Re,HeaderSticky:We,Transfer:Xn,UploadDragDrop:un,ValidatorSelectAutocomplete:(t,e={})=>(i,n)=>{let s=!1;const o=n[t];if(!o)throw new Error("ValidatorSelectAutocomplete: "+t+" not found as form field");return e.required||i?"undefined"!=typeof window&&"undefined"!=typeof document&&document.querySelector("#"+o.elem.id+"-select").querySelectorAll("option").forEach((t=>{t.text===i&&(s=!0)})):s=!0,s},loadFonts:(t="/node_modules/bootstrap-italia/dist/fonts")=>{if("undefined"==typeof window||"undefined"==typeof document)return;const e=document.createElement("style"),i=window.__PUBLIC_PATH__?window.__PUBLIC_PATH__:t;e.innerHTML=`\n /* Titillium+Web:300,400,600,700 */\n\n /* titillium-web-300 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-300italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 300;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-regular - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-700 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n /* titillium-web-600 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-600italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 600;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* Lora:400,700 */\n\n /* lora-regular - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-700 - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-italic - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* Roboto+Mono:400,700 */\n\n /* roboto-mono-regular - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-700 - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-italic - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n `,document.getElementsByTagName("head")[0].appendChild(e)},cookies:u};return fa}));
19
+ var o=function(t){return t},r=function(t){return Math.pow(t,2)},a=function(t){return-(Math.pow(t-1,2)-1)},l=function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},c=function(t){return Math.pow(t,3)},u=function(t){return Math.pow(t-1,3)+1},h=function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},d=function(t){return Math.pow(t,4)},f=function(t){return-(Math.pow(t-1,4)-1)},p=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},m=function(t){return Math.pow(t,5)},g=function(t){return Math.pow(t-1,5)+1},_=function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},b=function(t){return 1-Math.cos(t*(Math.PI/2))},v=function(t){return Math.sin(t*(Math.PI/2))},y=function(t){return-.5*(Math.cos(Math.PI*t)-1)},w=function(t){return 0===t?0:Math.pow(2,10*(t-1))},E=function(t){return 1===t?1:1-Math.pow(2,-10*t)},C=function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},S=function(t){return-(Math.sqrt(1-t*t)-1)},k=function(t){return Math.sqrt(1-Math.pow(t-1,2))},x=function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},T=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},A=function(t){var e=1.70158;return t*t*((e+1)*t-e)},O=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},L=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},P=function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},I=function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},M=function(t){var e=1.70158;return t*t*((e+1)*t-e)},F=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},$=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},j=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},N=function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},D=function(t){return Math.pow(t,4)},B=function(t){return Math.pow(t,.25)};function R(t,e,i,n,s,o){var r,a,l=0,c=0,u=0,h=0,d=0,f=0,p=function(t){return((l*t+c)*t+u)*t},m=function(t){return(3*l*t+2*c)*t+u},g=function(t){return t>=0?t:0-t};return l=1-(u=3*e)-(c=3*(n-e)-u),h=1-(f=3*i)-(d=3*(s-i)-f),r=t,a=function(t){return 1/(200*t)}(o),function(t){return((h*t+d)*t+f)*t}(function(t,e){var i,n,s,o,r,a;for(s=t,a=0;a<8;a++){if(o=p(s)-t,g(o)<e)return s;if(r=m(s),g(r)<1e-6)break;s-=o/r}if((s=t)<(i=0))return i;if(s>(n=1))return n;for(;i<n;){if(o=p(s),g(o-t)<e)return s;t>o?i=s:n=s,s=.5*(n-i)+i}return s}(r,a))}var V,z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.25,e=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 R(s,t,e,i,n,1)}},W=function(t,e,i,n,s){var o=z(e,i,n,s);return o.displayName=t,o.x1=e,o.y1=i,o.x2=n,o.y2=s,Et.formulas[t]=o},q=function(t){return delete Et.formulas[t]};function H(t,e,i){return e&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function G(t){return function(t){if(Array.isArray(t))return Y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Y(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Y(t,e):void 0}}(t)||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 Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function K(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Q(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?K(Object(i),!0).forEach((function(e){X(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):K(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function X(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Z,J,tt,et="linear",it=1e3/60,nt="undefined"!=typeof window?window:Ai,st="afterTween",ot="beforeTween",rt="string",at=nt.requestAnimationFrame||nt.webkitRequestAnimationFrame||nt.oRequestAnimationFrame||nt.msRequestAnimationFrame||nt.mozCancelRequestAnimationFrame&&nt.mozRequestAnimationFrame||setTimeout,lt=function(){},ct=null,ut=null,ht=Q({},n),dt=function(t,e,i,n,s,o,r){var a,l,c,u=t<o?0:(t-o)/s,h=!1;for(var d in r&&r.call&&(h=!0,a=r(u)),e)h||(a=((l=r[d]).call?l:ht[l])(u)),c=i[d],e[d]=c+(n[d]-c)*a;return e},ft=function(t,e){var i=t._timestamp,n=t._currentState,s=t._delay;if(!(e<i+s)){var o=t._duration,r=t._targetState,a=i+s+o,l=e>a?a:e;t._hasEnded=l>=a;var c=o-(a-l),u=t._filters.length>0;if(t._hasEnded)return t._render(r,t._data,c),t.stop(!0);u&&t._applyFilter(ot),l<i+s?i=o=l=1:i+=s,dt(l,n,t._originalState,r,o,i,t._easing),u&&t._applyFilter(st),t._render(n,t._data,c)}},pt=function(){for(var t,e=Et.now(),i=ct;i;)t=i._next,ft(i,e),i=t},mt=Date.now||function(){return+new Date},gt=!1,_t=function(t){t&&gt||(gt=t,t&&bt())},bt=function t(){Z=mt(),gt&&at.call(nt,t,it),pt()},vt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:et,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Array.isArray(e))return z.apply(void 0,G(e));var n=U(e);if(ht[e])return ht[e];if(n===rt||"function"===n)for(var s in t)i[s]=e;else for(var o in t)i[o]=e[o]||et;return i},yt=function(t){t===ct?(ct=t._next)?ct._previous=null:ut=null:t===ut?(ut=t._previous)?ut._next=null:ct=null:(J=t._previous,tt=t._next,J._next=tt,tt._previous=J),t._previous=t._next=null},wt="function"==typeof Promise?Promise:null;V=Symbol.toStringTag;var Et=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),X(this,V,"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=e||{},this._originalState={},this._targetState={},this._start=lt,this._render=lt,this._promiseCtor=wt,i&&this.setConfig(i)}return H(t,[{key:"_applyFilter",value:function(t){for(var e=this._filters.length;e>0;e--){var i=this._filters[e-e][t];i&&i(this)}}},{key:"tween",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return this._isPlaying&&this.stop(),!e&&this._config||this.setConfig(e),this._pausedAtTime=null,this._timestamp=t.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 e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=this._config;for(var n in e)i[n]=e[n];var s=i.promise,o=void 0===s?this._promiseCtor:s,r=i.start,a=void 0===r?lt:r,l=i.finish,c=i.render,u=void 0===c?this._config.step||lt:c,h=i.step,d=void 0===h?lt:h;this._data=i.data||i.attachment||this._data,this._isPlaying=!1,this._pausedAtTime=null,this._scheduleId=null,this._delay=e.delay||0,this._start=a,this._render=u||d,this._duration=i.duration||500,this._promiseCtor=o,l&&(this._resolve=l);var f=e.from,p=e.to,m=void 0===p?{}:p,g=this._currentState,_=this._originalState,b=this._targetState;for(var v in f)g[v]=f[v];var y=!1;for(var w in g){var E=g[w];y||U(E)!==rt||(y=!0),_[w]=E,b[w]=m.hasOwnProperty(w)?m[w]:E}if(this._easing=vt(this._currentState,i.easing,this._easing),this._filters.length=0,y){for(var C in t.filters)t.filters[C].doesApply(this)&&this._filters.push(t.filters[C]);this._applyFilter("tweenCreated")}return this}},{key:"then",value:function(t,e){var i=this;return this._promise=new this._promiseCtor((function(t,e){i._resolve=t,i._reject=e})),this._promise.then(t,e)}},{key:"catch",value:function(t){return this.then().catch(t)}},{key:"finally",value:function(t){return this.then().finally(t)}},{key:"get",value:function(){return Q({},this._currentState)}},{key:"set",value:function(t){this._currentState=t}},{key:"pause",value:function(){if(this._isPlaying)return this._pausedAtTime=t.now(),this._isPlaying=!1,yt(this),this}},{key:"resume",value:function(){return this._resume()}},{key:"_resume",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.now();return null===this._timestamp?this.tween():this._isPlaying?this._promise:(this._pausedAtTime&&(this._timestamp+=e-this._pausedAtTime,this._pausedAtTime=null),this._isPlaying=!0,null===ct?(ct=this,ut=this):(this._previous=ut,ut._next=this,ut=this),this)}},{key:"seek",value:function(e){e=Math.max(e,0);var i=t.now();return this._timestamp+e===0||(this._timestamp=i-e,ft(this,i)),this}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._isPlaying)return this;this._isPlaying=!1,yt(this);var e=this._filters.length>0;return t&&(e&&this._applyFilter(ot),dt(1,this._currentState,this._originalState,this._targetState,1,0,this._easing),e&&(this._applyFilter(st),this._applyFilter("afterTweenEnd"))),this._resolve&&this._resolve({data:this._data,state:this._currentState,tweenable:this}),this._resolve=null,this._reject=null,this}},{key:"cancel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._currentState,i=this._data;return this._isPlaying?(this._reject&&this._reject({data:i,state:e,tweenable:this}),this._resolve=null,this._reject=null,this.stop(t)):this}},{key:"isPlaying",value:function(){return this._isPlaying}},{key:"hasEnded",value:function(){return this._hasEnded}},{key:"setScheduleFunction",value:function(e){t.setScheduleFunction(e)}},{key:"data",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t&&(this._data=Q({},t)),this._data}},{key:"dispose",value:function(){for(var t in this)delete this[t]}}]),t}();function Ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new Et;return e.tween(t),e.tweenable=e,e}X(Et,"now",(function(){return Z})),X(Et,"setScheduleFunction",(function(t){return at=t})),X(Et,"filters",{}),X(Et,"formulas",ht),_t(!0);var St,kt,xt=/(\d|-|\.)/,Tt=/([^\-0-9.]+)/g,At=/[0-9.-]+/g,Ot=(St=At.source,kt=/,\s*/.source,new RegExp("rgba?\\(".concat(St).concat(kt).concat(St).concat(kt).concat(St,"(").concat(kt).concat(St,")?\\)"),"g")),Lt=/^.*\(/,Pt=/#([0-9]|[a-f]){3,6}/gi,It="VAL",Mt=function(t,e){return t.map((function(t,i){return"_".concat(e,"_").concat(i)}))};function Ft(t){return parseInt(t,16)}var $t=function(t){return"rgb(".concat((e=t,3===(e=e.replace(/#/,"")).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[Ft(e.substr(0,2)),Ft(e.substr(2,2)),Ft(e.substr(4,2))]).join(","),")");var e},jt=function(t,e,i){var n=e.match(t),s=e.replace(t,It);return n&&n.forEach((function(t){return s=s.replace(It,i(t))})),s},Nt=function(t){for(var e in t){var i=t[e];"string"==typeof i&&i.match(Pt)&&(t[e]=jt(Pt,i,$t))}},Dt=function(t){var e=t.match(At),i=e.slice(0,3).map(Math.floor),n=t.match(Lt)[0];if(3===e.length)return"".concat(n).concat(i.join(","),")");if(4===e.length)return"".concat(n).concat(i.join(","),",").concat(e[3],")");throw new Error("Invalid rgbChunk: ".concat(t))},Bt=function(t){return t.match(At)},Rt=function(t){var e,i,n={};for(var s in t){var o=t[s];"string"==typeof o&&(n[s]={formatString:(e=o,i=void 0,i=e.match(Tt),i?(1===i.length||e.charAt(0).match(xt))&&i.unshift(""):i=["",""],i.join(It)),chunkNames:Mt(Bt(o),s)})}return n},Vt=function(t,e){var i=function(i){Bt(t[i]).forEach((function(n,s){return t[e[i].chunkNames[s]]=+n})),delete t[i]};for(var n in e)i(n)},zt=function(t,e){var i={};return e.forEach((function(e){i[e]=t[e],delete t[e]})),i},Wt=function(t,e){return e.map((function(e){return t[e]}))},qt=function(t,e){return e.forEach((function(e){return t=t.replace(It,+e.toFixed(4))})),t},Ht=function(t,e){for(var i in e){var n=e[i],s=n.chunkNames,o=n.formatString,r=qt(o,Wt(zt(t,s),s));t[i]=jt(Ot,r,Dt)}},Ut=function(t,e){var i=function(i){var n=e[i].chunkNames,s=t[i];if("string"==typeof s){var o=s.split(" "),r=o[o.length-1];n.forEach((function(e,i){return t[e]=o[i]||r}))}else n.forEach((function(e){return t[e]=s}));delete t[i]};for(var n in e)i(n)},Gt=function(t,e){for(var i in e){var n=e[i].chunkNames,s=t[n[0]];t[i]="string"==typeof s?n.map((function(e){var i=t[e];return delete t[e],i})).join(" "):s}},Yt=function(t){for(var e in t._currentState)if("string"==typeof t._currentState[e])return!0;return!1};function Kt(t){var e=t._currentState;[e,t._originalState,t._targetState].forEach(Nt),t._tokenData=Rt(e)}function Qt(t){var e=t._currentState,i=t._originalState,n=t._targetState,s=t._easing,o=t._tokenData;Ut(s,o),[e,i,n].forEach((function(t){return Vt(t,o)}))}function Xt(t){var e=t._currentState,i=t._originalState,n=t._targetState,s=t._easing,o=t._tokenData;[e,i,n].forEach((function(t){return Ht(t,o)})),Gt(s,o)}function Zt(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Jt(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var te=new Et,ee=Et.filters,ie=function(t,e,i,n){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(i),!0).forEach((function(e){Jt(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Zt(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},t),r=vt(t,n);for(var a in te._filters.length=0,te.set({}),te._currentState=o,te._originalState=t,te._targetState=e,te._easing=r,ee)ee[a].doesApply(te)&&te._filters.push(ee[a]);te._applyFilter("tweenCreated"),te._applyFilter("beforeTween");var l=dt(i,o,t,e,1,s,r);return te._applyFilter("afterTween"),l};function ne(t){return function(t){if(Array.isArray(t))return se(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return se(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?se(t,e):void 0}}(t)||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 se(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function oe(t,e,i){return e&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}function re(t,e){var i=e.get(t);if(!i)throw new TypeError("attempted to get private field on non-instance");return i.get?i.get.call(t):i.value}var ae=new WeakMap,le=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ae.set(this,{writable:!0,value:[]});for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];i.forEach(this.add.bind(this))}return oe(t,[{key:"add",value:function(t){return re(this,ae).push(t),t}},{key:"remove",value:function(t){var e=re(this,ae).indexOf(t);return~e&&re(this,ae).splice(e,1),t}},{key:"empty",value:function(){return this.tweenables.map(this.remove.bind(this))}},{key:"isPlaying",value:function(){return re(this,ae).some((function(t){return t.isPlaying()}))}},{key:"play",value:function(){return re(this,ae).forEach((function(t){return t.tween()})),this}},{key:"pause",value:function(){return re(this,ae).forEach((function(t){return t.pause()})),this}},{key:"resume",value:function(){return this.playingTweenables.forEach((function(t){return t.resume()})),this}},{key:"stop",value:function(t){return re(this,ae).forEach((function(e){return e.stop(t)})),this}},{key:"tweenables",get:function(){return ne(re(this,ae))}},{key:"playingTweenables",get:function(){return re(this,ae).filter((function(t){return!t.hasEnded()}))}},{key:"promises",get:function(){return re(this,ae).map((function(t){return t.then()}))}}]),t}();Et.filters.token=s}},e={};function i(n){if(e[n])return e[n].exports;var s=e[n]={exports:{}};return t[n](s,s.exports,i),s.exports}return i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i(720)})()},t.exports=i()}));(Qi=Xi)&&Qi.__esModule&&Object.prototype.hasOwnProperty.call(Qi,"default")&&Qi.default;var Zi=Oi((function(t,e){var i="__lodash_hash_undefined__",n=9007199254740991,s="[object Arguments]",o="[object Function]",r="[object Object]",a=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[s]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[o]=c["[object Map]"]=c["[object Number]"]=c[r]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof Ai&&Ai&&Ai.Object===Object&&Ai,h="object"==typeof self&&self&&self.Object===Object&&self,d=u||h||Function("return this")(),f=e&&!e.nodeType&&e,p=f&&t&&!t.nodeType&&t,m=p&&p.exports===f,g=m&&u.process,_=function(){try{var t=p&&p.require&&p.require("util").types;return t||g&&g.binding&&g.binding("util")}catch(t){}}(),b=_&&_.isTypedArray;var v,y=Array.prototype,w=Function.prototype,E=Object.prototype,C=d["__core-js_shared__"],S=w.toString,k=E.hasOwnProperty,x=(v=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",T=E.toString,A=S.call(Object),O=RegExp("^"+S.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=m?d.Buffer:void 0,P=d.Symbol,I=d.Uint8Array;L&&L.allocUnsafe;var M,F,$=(M=Object.getPrototypeOf,F=Object,function(t){return M(F(t))}),j=Object.create,N=E.propertyIsEnumerable,D=y.splice,B=P?P.toStringTag:void 0,R=function(){try{var t=ht(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),V=L?L.isBuffer:void 0,z=Math.max,W=Date.now,q=ht(d,"Map"),H=ht(Object,"create"),U=function(){function t(){}return function(e){if(!Ct(e))return{};if(j)return j(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function G(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Y(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function K(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Q(t){var e=this.__data__=new Y(t);this.size=e.size}function X(t,e){var i=bt(t),n=!i&&_t(t),s=!i&&!n&&yt(t),o=!i&&!n&&!s&&kt(t),r=i||n||s||o,a=r?function(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}(t.length,String):[],l=a.length;for(var c in t)r&&("length"==c||s&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||dt(c,l))||a.push(c);return a}function Z(t,e,i){(void 0!==i&&!gt(t[e],i)||void 0===i&&!(e in t))&&et(t,e,i)}function J(t,e,i){var n=t[e];k.call(t,e)&&gt(n,i)&&(void 0!==i||e in t)||et(t,e,i)}function tt(t,e){for(var i=t.length;i--;)if(gt(t[i][0],e))return i;return-1}function et(t,e,i){"__proto__"==e&&R?R(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}G.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},G.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},G.prototype.get=function(t){var e=this.__data__;if(H){var n=e[t];return n===i?void 0:n}return k.call(e,t)?e[t]:void 0},G.prototype.has=function(t){var e=this.__data__;return H?void 0!==e[t]:k.call(e,t)},G.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=H&&void 0===e?i:e,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(t){var e=this.__data__,i=tt(e,t);return!(i<0)&&(i==e.length-1?e.pop():D.call(e,i,1),--this.size,!0)},Y.prototype.get=function(t){var e=this.__data__,i=tt(e,t);return i<0?void 0:e[i][1]},Y.prototype.has=function(t){return tt(this.__data__,t)>-1},Y.prototype.set=function(t,e){var i=this.__data__,n=tt(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this},K.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(q||Y),string:new G}},K.prototype.delete=function(t){var e=ut(this,t).delete(t);return this.size-=e?1:0,e},K.prototype.get=function(t){return ut(this,t).get(t)},K.prototype.has=function(t){return ut(this,t).has(t)},K.prototype.set=function(t,e){var i=ut(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this},Q.prototype.clear=function(){this.__data__=new Y,this.size=0},Q.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Q.prototype.get=function(t){return this.__data__.get(t)},Q.prototype.has=function(t){return this.__data__.has(t)},Q.prototype.set=function(t,e){var i=this.__data__;if(i instanceof Y){var n=i.__data__;if(!q||n.length<199)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new K(n)}return i.set(t,e),this.size=i.size,this};var it=function(t,e,i){for(var n=-1,s=Object(t),o=i(t),r=o.length;r--;){var a=o[++n];if(!1===e(s[a],a,s))break}return t};function nt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":B&&B in Object(t)?function(t){var e=k.call(t,B),i=t[B];try{t[B]=void 0;var n=!0}catch(t){}var s=T.call(t);n&&(e?t[B]=i:delete t[B]);return s}(t):function(t){return T.call(t)}(t)}function st(t){return St(t)&&nt(t)==s}function ot(t){return!(!Ct(t)||function(t){return!!x&&x in t}(t))&&(wt(t)?O:a).test(function(t){if(null!=t){try{return S.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function rt(t){if(!Ct(t))return function(t){var e=[];if(null!=t)for(var i in Object(t))e.push(i);return e}(t);var e=ft(t),i=[];for(var n in t)("constructor"!=n||!e&&k.call(t,n))&&i.push(n);return i}function at(t,e,i,n,s){t!==e&&it(e,(function(o,a){if(s||(s=new Q),Ct(o))!function(t,e,i,n,s,o,a){var l=pt(t,i),c=pt(e,i),u=a.get(c);if(u)return void Z(t,i,u);var h=o?o(l,c,i+"",t,e,a):void 0,d=void 0===h;if(d){var f=bt(c),p=!f&&yt(c),m=!f&&!p&&kt(c);h=c,f||p||m?bt(l)?h=l:St(g=l)&&vt(g)?h=function(t,e){var i=-1,n=t.length;e||(e=Array(n));for(;++i<n;)e[i]=t[i];return e}(l):p?(d=!1,h=c.slice()):m?(d=!1,h=function(t){var e=(i=t.buffer,n=new i.constructor(i.byteLength),new I(n).set(new I(i)),n);var i,n;return new t.constructor(e,t.byteOffset,t.length)}(c)):h=[]:function(t){if(!St(t)||nt(t)!=r)return!1;var e=$(t);if(null===e)return!0;var i=k.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&S.call(i)==A}(c)||_t(c)?(h=l,_t(l)?h=function(t){return function(t,e,i){var n=!i;i||(i={});var s=-1,o=e.length;for(;++s<o;){var r=e[s],a=void 0;void 0===a&&(a=t[r]),n?et(i,r,a):J(i,r,a)}return i}(t,xt(t))}(l):Ct(l)&&!wt(l)||(h=function(t){return"function"!=typeof t.constructor||ft(t)?{}:U($(t))}(c))):d=!1}var g;d&&(a.set(c,h),s(h,c,n,o,a),a.delete(c));Z(t,i,h)}(t,e,a,i,at,n,s);else{var l=n?n(pt(t,a),o,a+"",t,e,s):void 0;void 0===l&&(l=o),Z(t,a,l)}}),xt)}function lt(t,e){return mt(function(t,e,i){return e=z(void 0===e?t.length-1:e,0),function(){for(var n=arguments,s=-1,o=z(n.length-e,0),r=Array(o);++s<o;)r[s]=n[e+s];s=-1;for(var a=Array(e+1);++s<e;)a[s]=n[s];return a[e]=i(r),function(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}(t,this,a)}}(t,e,Ot),t+"")}var ct=R?function(t,e){return R(t,"toString",{configurable:!0,enumerable:!1,value:(i=e,function(){return i}),writable:!0});var i}:Ot;function ut(t,e){var i,n,s=t.__data__;return("string"==(n=typeof(i=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?s["string"==typeof e?"string":"hash"]:s.map}function ht(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return ot(i)?i:void 0}function dt(t,e){var i=typeof t;return!!(e=null==e?n:e)&&("number"==i||"symbol"!=i&&l.test(t))&&t>-1&&t%1==0&&t<e}function ft(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||E)}function pt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var mt=function(t){var e=0,i=0;return function(){var n=W(),s=16-(n-i);if(i=n,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(ct);function gt(t,e){return t===e||t!=t&&e!=e}var _t=st(function(){return arguments}())?st:function(t){return St(t)&&k.call(t,"callee")&&!N.call(t,"callee")},bt=Array.isArray;function vt(t){return null!=t&&Et(t.length)&&!wt(t)}var yt=V||function(){return!1};function wt(t){if(!Ct(t))return!1;var e=nt(t);return e==o||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Et(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function Ct(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function St(t){return null!=t&&"object"==typeof t}var kt=b?function(t){return function(e){return t(e)}}(b):function(t){return St(t)&&Et(t.length)&&!!c[nt(t)]};function xt(t){return vt(t)?X(t):rt(t)}var Tt,At=(Tt=function(t,e,i){at(t,e,i)},lt((function(t,e){var i=-1,n=e.length,s=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(s=Tt.length>3&&"function"==typeof s?(n--,s):void 0,o&&function(t,e,i){if(!Ct(i))return!1;var n=typeof e;return!!("number"==n?vt(i)&&dt(e,i.length):"string"==n&&e in i)&&gt(i[e],t)}(e[0],e[1],o)&&(s=n<3?void 0:s,n=1),t=Object(t);++i<n;){var r=e[i];r&&Tt(t,r,i,s)}return t})));function Ot(t){return t}t.exports=At})),Ji="Webkit Moz O ms".split(" ");function tn(t,e,i){for(var n=t.style,s=0;s<Ji.length;++s){n[Ji[s]+en(e)]=i}n[e]=i}function en(t){return t.charAt(0).toUpperCase()+t.slice(1)}function nn(t){return!function(t){return"[object Array]"===Object.prototype.toString.call(t)}(t)&&("object"===typeof t&&!!t)}function sn(t,e){for(var i in t){if(t.hasOwnProperty(i))e(t[i],i)}}var on={extend:Zi,render:function(t,e){var i=t;for(var n in e)if(e.hasOwnProperty(n)){var s=e[n],o=new RegExp("\\{"+n+"\\}","g");i=i.replace(o,s)}return i},setStyle:tn,setStyles:function(t,e){sn(e,(function(e,i){null!=e&&(nn(e)&&!0===e.prefix?tn(t,i,e.value):t.style[i]=e)}))},capitalize:en,isString:function(t){return"string"==typeof t||t instanceof String},isFunction:function(t){return"function"==typeof t},isObject:nn,forEachObject:sn,floatEquals:function(t,e){return Math.abs(t-e)<.001},removeChildren:function(t){for(;t.firstChild;)t.removeChild(t.firstChild)}};on.extend,on.render,on.setStyle,on.setStyles,on.capitalize,on.isString,on.isFunction,on.isObject,on.forEachObject,on.floatEquals,on.removeChildren;var rn=Xi.Tweenable,an={easeIn:"easeInCubic",easeOut:"easeOutCubic",easeInOut:"easeInOutCubic"},ln=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");var n;i=on.extend({delay:0,duration:800,easing:"linear",from:{},to:{},step:function(){}},i),n=on.isString(e)?document.querySelector(e):e,this.path=n,this._opts=i,this._tweenable=null;var s=this.path.getTotalLength();this.path.style.strokeDasharray=s+" "+s,this.set(0)};ln.prototype.value=function(){var t=this._getComputedDashOffset(),e=this.path.getTotalLength();return parseFloat((1-t/e).toFixed(6),10)},ln.prototype.set=function(t){this.stop(),this.path.style.strokeDashoffset=this._progressToOffset(t);var e=this._opts.step;if(on.isFunction(e)){var i=this._easing(this._opts.easing);e(this._calculateTo(t,i),this._opts.shape||this,this._opts.attachment)}},ln.prototype.stop=function(){this._stopTween(),this.path.style.strokeDashoffset=this._getComputedDashOffset()},ln.prototype.animate=function(t,e,i){e=e||{},on.isFunction(e)&&(i=e,e={});var n=on.extend({},e),s=on.extend({},this._opts);e=on.extend(s,e);var o=this._easing(e.easing),r=this._resolveFromAndTo(t,o,n);this.stop(),this.path.getBoundingClientRect();var a=this._getComputedDashOffset(),l=this._progressToOffset(t),c=this;this._tweenable=new rn,this._tweenable.tween({from:on.extend({offset:a},r.from),to:on.extend({offset:l},r.to),duration:e.duration,delay:e.delay,easing:o,step:function(t){c.path.style.strokeDashoffset=t.offset;var i=e.shape||c;e.step(t,i,e.attachment)}}).then((function(t){on.isFunction(i)&&i()})).catch((function(t){throw console.error("Error in tweening:",t),t}))},ln.prototype._getComputedDashOffset=function(){var t=window.getComputedStyle(this.path,null);return parseFloat(t.getPropertyValue("stroke-dashoffset"),10)},ln.prototype._progressToOffset=function(t){var e=this.path.getTotalLength();return e-t*e},ln.prototype._resolveFromAndTo=function(t,e,i){return i.from&&i.to?{from:i.from,to:i.to}:{from:this._calculateFrom(e),to:this._calculateTo(t,e)}},ln.prototype._calculateFrom=function(t){return Xi.interpolate(this._opts.from,this._opts.to,this.value(),t)},ln.prototype._calculateTo=function(t,e){return Xi.interpolate(this._opts.from,this._opts.to,t,e)},ln.prototype._stopTween=function(){null!==this._tweenable&&(this._tweenable.stop(!0),this._tweenable=null)},ln.prototype._easing=function(t){return an.hasOwnProperty(t)?an[t]:t};var cn=ln,un="Object is destroyed",hn=function t(e,i){if(!(this instanceof t))throw new Error("Constructor was called without new keyword");if(0!==arguments.length){this._opts=on.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),on.isObject(i)&&void 0!==i.svgStyle&&(this._opts.svgStyle=i.svgStyle),on.isObject(i)&&on.isObject(i.text)&&void 0!==i.text.style&&(this._opts.text.style=i.text.style);var n,s=this._createSvgView(this._opts);if(!(n=on.isString(e)?document.querySelector(e):e))throw new Error("Container does not exist: "+e);this._container=n,this._container.appendChild(s.svg),this._opts.warnings&&this._warnContainerAspectRatio(this._container),this._opts.svgStyle&&on.setStyles(s.svg,this._opts.svgStyle),this.svg=s.svg,this.path=s.path,this.trail=s.trail,this.text=null;var o=on.extend({attachment:void 0,shape:this},this._opts);this._progressPath=new cn(s.path,o),on.isObject(this._opts.text)&&null!==this._opts.text.value&&this.setText(this._opts.text.value)}};hn.prototype.animate=function(t,e,i){if(null===this._progressPath)throw new Error(un);this._progressPath.animate(t,e,i)},hn.prototype.stop=function(){if(null===this._progressPath)throw new Error(un);void 0!==this._progressPath&&this._progressPath.stop()},hn.prototype.pause=function(){if(null===this._progressPath)throw new Error(un);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.pause()},hn.prototype.resume=function(){if(null===this._progressPath)throw new Error(un);void 0!==this._progressPath&&this._progressPath._tweenable&&this._progressPath._tweenable.resume()},hn.prototype.destroy=function(){if(null===this._progressPath)throw new Error(un);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)},hn.prototype.set=function(t){if(null===this._progressPath)throw new Error(un);this._progressPath.set(t)},hn.prototype.value=function(){if(null===this._progressPath)throw new Error(un);return void 0===this._progressPath?0:this._progressPath.value()},hn.prototype.setText=function(t){if(null===this._progressPath)throw new Error(un);null===this.text&&(this.text=this._createTextContainer(this._opts,this._container),this._container.appendChild(this.text)),on.isObject(t)?(on.removeChildren(this.text),this.text.appendChild(t)):this.text.innerHTML=t},hn.prototype._createSvgView=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");this._initializeSvg(e,t);var i=null;(t.trailColor||t.trailWidth)&&(i=this._createTrail(t),e.appendChild(i));var n=this._createPath(t);return e.appendChild(n),{svg:e,path:n,trail:i}},hn.prototype._initializeSvg=function(t,e){t.setAttribute("viewBox","0 0 100 100")},hn.prototype._createPath=function(t){var e=this._pathString(t);return this._createPathElement(e,t)},hn.prototype._createTrail=function(t){var e=this._trailString(t),i=on.extend({},t);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(e,i)},hn.prototype._createPathElement=function(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d",t),i.setAttribute("stroke",e.color),i.setAttribute("stroke-width",e.strokeWidth),e.fill?i.setAttribute("fill",e.fill):i.setAttribute("fill-opacity","0"),i},hn.prototype._createTextContainer=function(t,e){var i=document.createElement("div");i.className=t.text.className;var n=t.text.style;return n&&(t.text.autoStyleContainer&&(e.style.position="relative"),on.setStyles(i,n),n.color||(i.style.color=t.color)),this._initializeTextContainer(t,e,i),i},hn.prototype._initializeTextContainer=function(t,e,i){},hn.prototype._pathString=function(t){throw new Error("Override this function for each progress bar")},hn.prototype._trailString=function(t){throw new Error("Override this function for each progress bar")},hn.prototype._warnContainerAspectRatio=function(t){if(this.containerAspectRatio){var e=window.getComputedStyle(t,null),i=parseFloat(e.getPropertyValue("width"),10),n=parseFloat(e.getPropertyValue("height"),10);on.floatEquals(this.containerAspectRatio,i/n)||(console.warn("Incorrect aspect ratio of container","#"+t.id,"detected:",e.getPropertyValue("width")+"(width)","/",e.getPropertyValue("height")+"(height)","=",i/n),console.warn("Aspect ratio of should be",this.containerAspectRatio))}};var dn=hn,fn=function(t,e){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,dn.apply(this,arguments)};(fn.prototype=new dn).constructor=fn,fn.prototype._pathString=function(t){var e=t.strokeWidth;t.trailWidth&&t.trailWidth>t.strokeWidth&&(e=t.trailWidth);var i=50-e/2;return on.render(this._pathTemplate,{radius:i,"2radius":2*i})},fn.prototype._trailString=function(t){return this._pathString(t)};var pn=fn;const mn={color:"#5C6F82",trailColor:"#D9DADB",strokeWidth:24,trailWidth:12,easing:"easeInOut",duration:1400,text:{autoStyleContainer:!1},animate:!0,value:0};class gn extends Y{constructor(t,e){super(t),this._config=this._getConfig(e),this._bar=null,this._init()}static get NAME(){return"progressdonut"}set(t){this._config.animate?this._bar.animate(t):this._bar.set(t)}dispose(){this._bar.destroy(),super.dispose()}_getConfig(t){return t={...mn,step:this._getStepCallback(),...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_getStepCallback(){return(t,e)=>{const i=Math.round(100*e.value());e.setText(i+"%")}}_init(){this._bar=new pn(this._element,this._config),this._config.value>0&&this.set(this._config.value)}}"undefined"!=typeof window&&"undefined"!=typeof document&&K.find("[data-bs-progress-donut]").forEach((t=>{gn.getOrCreateInstance(t)}));const _n="dragend",bn="dragover",vn="dragenter",yn="dragleave",wn="drop",En="success",Cn="dragover",Sn="loading",kn="[data-bs-upload-dragdrop]";class xn extends Y{constructor(t){super(t);const e=K.findOne("[data-bs-progress-donut]",this._element);e&&(this._donut=gn.getOrCreateInstance(e)),this._bindEvents()}static get NAME(){return"upload"}progress(t){this._donut.set(t)}start(){this.reset(),this._element.classList.add(Sn)}success(){this._element.classList.remove(Sn),this._element.classList.add(En)}reset(){this._element.classList.remove(Sn),this._element.classList.remove(En),this._donut.set(0)}dispose(){this._donut.dispose(),super.dispose()}_bindEvents(){z.on(this._element,"drag",(t=>this._preventEvent(t))),z.on(this._element,"dragstart",(t=>this._preventEvent(t))),z.on(this._element,_n,(t=>this._preventEvent(t))),z.on(this._element,bn,(t=>this._preventEvent(t))),z.on(this._element,vn,(t=>this._preventEvent(t))),z.on(this._element,yn,(t=>this._preventEvent(t))),z.on(this._element,wn,(t=>this._preventEvent(t))),z.on(this._element,bn,(()=>this._dropIn())),z.on(this._element,vn,(()=>this._dropIn())),z.on(this._element,yn,(()=>this._dropOut())),z.on(this._element,_n,(()=>this._dropOut())),z.on(this._element,wn,(()=>this._dropOut())),z.on(this._element,wn,(()=>this._drop()))}_preventEvent(t){t.preventDefault(),t.stopPropagation()}_dropIn(){this._isSuccess()||this._element.classList.add(Cn)}_dropOut(){this._isSuccess()||this._element.classList.remove(Cn)}_drop(){this._isSuccess()||this.start()}_isSuccess(){return this._element.classList.contains(En)}}const Tn=t=>{let e=t.matches&&t.matches(kn)?t:t.closest?t.closest(kn):null;return e&&xn.getOrCreateInstance(e),null};"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("dragenter",(function(t){Tn(t.target)})),z.on(document,"click.bs.upload.data-api",kn+" label",(function(){Tn(this)})));const An="back-to-top-show",On={positionTop:0,scrollLimit:100,duration:800,easing:"easeInOutSine"};class Ln extends Y{constructor(t,e){super(t),this._config=this._getConfig(e),this._scrollCb=null,this._isAnim=!1,this._prevScrollBehavior="",this._bindEvents()}static get NAME(){return"backtotop"}show(){this._element.classList.contains(An)||this._element.classList.add(An)}hide(){this._element.classList.contains(An)&&this._element.classList.remove(An)}toggleShow(){"undefined"!=typeof document&&document.scrollingElement.scrollTop>this._config.scrollLimit?this.show():this.hide()}scrollToTop(){this._isAnim||(this._isAnim=!0,Be(this._config.positionTop,{duration:this._config.duration,easing:this._config.easing,complete:()=>{this._isAnim=!1}}))}dispose(){this._scrollCb&&this._scrollCb.dispose(),super.dispose()}_getConfig(t){return t={...On,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){this._scrollCb=Ne((()=>this.toggleShow())),z.on(this._element,"click.bs.backtotop",(t=>{t.preventDefault(),this.scrollToTop()}))}}Ne((()=>{K.find('[data-bs-toggle="backtotop"]').map((t=>{Ln.getOrCreateInstance(t)}))}));const Pn=".bs.historyback",In=`click${Pn}`,Mn=`click${Pn}.data-api`;class Fn extends Y{constructor(t){super(t),this._bindEvents()}static get NAME(){return"historyback"}back(){"undefined"!=typeof window&&window.history.back()}_bindEvents(){z.on(this._element,In,(t=>{t.preventDefault(),this.back()}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,Mn,'[data-bs-toggle="historyback"]',(function(t){t.preventDefault();Fn.getOrCreateInstance(this).back()}));const $n=".bs.historyback",jn=`click${$n}`,Nn=`click${$n}.data-api`,Dn={duration:800,easing:"easeInOutSine"};class Bn extends Y{constructor(t,e){super(t),this._config=this._getConfig(e),this._bindEvents()}static get NAME(){return"historyback"}goToTarget(){const t=g(this._element);t&&Be(t.offsetTop,{duration:this._config.duration,easing:this._config.easing})}_getConfig(t){return t={...Dn,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_bindEvents(){z.on(this._element,jn,(t=>{t.preventDefault(),this.goToTarget()}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,Nn,'[data-bs-toggle="forward"]',(function(t){t.preventDefault();Bn.getOrCreateInstance(this).goToTarget()}));var Rn=function(t){return this._sizes=[],this._columns=[],this._container=null,this._count=null,this._width=0,this._removeListener=null,this._currentGutterX=null,this._currentGutterY=null,this._resizeTimeout=null,this.conf={baseWidth:255,gutterX:null,gutterY:null,gutter:10,container:null,minify:!0,ultimateGutter:5,surroundingGutter:!0,direction:"ltr",wedge:!1},this.init(t),this};Rn.prototype.init=function(t){for(var e in this.conf)null!=t[e]&&(this.conf[e]=t[e]);if(null!=this.conf.gutterX&&null!=this.conf.gutterY||(this.conf.gutterX=this.conf.gutterY=this.conf.gutter),this._currentGutterX=this.conf.gutterX,this._currentGutterY=this.conf.gutterY,this._container="object"==typeof this.conf.container&&this.conf.container.nodeName?this.conf.container:document.querySelector(this.conf.container),!this._container)throw new Error("Container not found or missing");var i=this.resizeThrottler.bind(this);window.addEventListener("resize",i),this._removeListener=function(){window.removeEventListener("resize",i),null!=this._resizeTimeout&&(window.clearTimeout(this._resizeTimeout),this._resizeTimeout=null)},this.layout()},Rn.prototype.reset=function(){this._sizes=[],this._columns=[],this._count=null,this._width=this._container.clientWidth;var t=this.conf.baseWidth;this._width<t&&(this._width=t,this._container.style.minWidth=t+"px"),1==this.getCount()?(this._currentGutterX=this.conf.ultimateGutter,this._count=1):this._width<this.conf.baseWidth+2*this._currentGutterX?this._currentGutterX=0:this._currentGutterX=this.conf.gutterX},Rn.prototype.getCount=function(){return this.conf.surroundingGutter?Math.floor((this._width-this._currentGutterX)/(this.conf.baseWidth+this._currentGutterX)):Math.floor((this._width+this._currentGutterX)/(this.conf.baseWidth+this._currentGutterX))},Rn.prototype.computeWidth=function(){var t;return t=this.conf.surroundingGutter?(this._width-this._currentGutterX)/this._count-this._currentGutterX:(this._width+this._currentGutterX)/this._count-this._currentGutterX,t=Number.parseFloat(t.toFixed(2))},Rn.prototype.layout=function(){if(this._container){this.reset(),null==this._count&&(this._count=this.getCount());for(var t=this.computeWidth(),e=0;e<this._count;e++)this._columns[e]=0;for(var i,n=this._container.children,s=0;s<n.length;s++)n[s].style.width=t+"px",this._sizes[s]=n[s].clientHeight;if(i="ltr"==this.conf.direction?this.conf.surroundingGutter?this._currentGutterX:0:this._width-(this.conf.surroundingGutter?this._currentGutterX:0),this._count>this._sizes.length){var o=this._sizes.length*(t+this._currentGutterX)-this._currentGutterX;!1===this.conf.wedge?i="ltr"==this.conf.direction?(this._width-o)/2:this._width-(this._width-o)/2:"ltr"==this.conf.direction||(i=this._width-this._currentGutterX)}for(var r=0;r<n.length;r++){var a,l=this.conf.minify?this.getShortest():this.getNextColumn(r),c=0;(this.conf.surroundingGutter||l!=this._columns.length)&&(c=this._currentGutterX),a="ltr"==this.conf.direction?i+(t+c)*l:i-(t+c)*l-t;var u=this._columns[l];n[r].style.transform="translate3d("+Math.round(a)+"px,"+Math.round(u)+"px,0)",this._columns[l]+=this._sizes[r]+(this._count>1?this.conf.gutterY:this.conf.ultimateGutter)}this._container.style.height=this._columns[this.getLongest()]-this._currentGutterY+"px"}else console.error("Container not found")},Rn.prototype.getNextColumn=function(t){return t%this._columns.length},Rn.prototype.getShortest=function(){for(var t=0,e=0;e<this._count;e++)this._columns[e]<this._columns[t]&&(t=e);return t},Rn.prototype.getLongest=function(){for(var t=0,e=0;e<this._count;e++)this._columns[e]>this._columns[t]&&(t=e);return t},Rn.prototype.resizeThrottler=function(){this._resizeTimeout||(this._resizeTimeout=setTimeout(function(){this._resizeTimeout=null,this._container.clientWidth!=this._width&&this.layout()}.bind(this),33))},Rn.prototype.destroy=function(){"function"==typeof this._removeListener&&this._removeListener();for(var t=this._container.children,e=0;e<t.length;e++)t[e].style.removeProperty("width"),t[e].style.removeProperty("transform");this._container.style.removeProperty("height"),this._container.style.removeProperty("min-width")};const Vn="masonry-loader",zn=`.${Vn}`,Wn={percentPosition:!0};class qn extends Y{constructor(t,e){super(t),"undefined"!=typeof window&&"undefined"!=typeof document&&(this._config=this._getConfig(e),this._masonry=null,this._images=K.find("img",this._element),this._loadCounter=0,this._init())}static get NAME(){return"masonry"}dispose(){this._masonry&&(this._masonry.destroy(),this._masonry=null),super.dispose()}layout(){this._masonry&&this._masonry.layout()}_getConfig(t){return t={...Wn,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}_init(){this._images.length>0?this._images.forEach((t=>{const e=new Image;e.onload=()=>this._onLoadEnd(),e.src=t.src})):this._initMasonry()}_onLoadEnd(){this._loadCounter++,this._loadCounter>=this._images.length&&this._initMasonry()}_initMasonry(){const t=this._config;t.container=this._element,this._masonry=new Rn(t)}_createLoader(){if("undefined"==typeof document)return;const t=document.createElement("div");return t.classList.add(Vn,"fade","d-flex","justify-content-center","align-items-center"),t.innerHTML='<div class="progress-spinner progress-spinner-active"><span class="visually-hidden">Caricamento...</span></div>',this._element.appendChild(t),t}_getOrCreateLoader(){const t=K.findOne(zn,this._element);return t||this._createLoader()}_destroyLoader(){const t=K.findOne(zn,this._element);t&&t.remove()}_showLoader(){this._getOrCreateLoader().classList.add("show")}_hideLoader(){this._destroyLoader()}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=K.find('[data-bs-toggle="masonry"]');t.length>0&&t.forEach((t=>{qn.getOrCreateInstance(t)}))}const Hn=".bs.list",Un=`click${Hn}`,Gn=`click${Hn}.data-api`,Yn="active",Kn="input[type=checkbox]";class Qn extends Y{constructor(t){super(t),this._init()}static get NAME(){return"list"}toggleCheckbox(t){const e=K.findOne("input",t);e&&(e.checked?(e.checked=!1,t.classList.remove(Yn)):(e.checked=!0,t.classList.add(Yn)))}_init(){this._initCheckbox()}_initCheckbox(){K.find(Kn,this._element).forEach((t=>{z.on(t.closest("a"),Un,(e=>{e.preventDefault(),this.toggleCheckbox(t.closest("a"))}))}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&K.find("[data-bs-list-checkbox]").forEach((t=>{K.find(Kn,t).forEach((e=>{z.one(e.closest("a"),Gn,(e=>{if(!Qn.getInstance(t)){e.preventDefault();Qn.getOrCreateInstance(t).toggleCheckbox(e.currentTarget)}}))}))}));const Xn=".bs.transfer",Zn=".data-api",Jn=`click${Xn}${Zn}`,ts=`keyup${Xn}${Zn}`,es=`click${Xn}`,is="active",ns="source",ss="semi-checked",os="[data-bs-transfer]",rs=".transfer-header input",as=".transfer-group input",ls=".it-transfer-wrapper",cs=".transfer-group",us=`${ls}.source`,hs=`${ls}.target`,ds=".form-check";class fs extends Y{constructor(t){super(t),this._addBtnElement=K.findOne("a.transfer",this._element),this._invBtnElement=K.findOne("a.backtransfer",this._element),this._resetBtnElement=K.findOne("a.reset",this._element),this._listDefault={source:K.find(us+" "+cs+" "+ds,this._element),target:K.find(hs+" "+cs+" "+ds,this._element)},this._bindEvents()}static get NAME(){return"transfer"}_bindEvents(){K.find(rs,this._element).forEach((t=>{z.on(t,es,(()=>{this._checkListHeader(t.closest(ls))}))})),K.find(as,this._element).forEach((t=>{z.on(t,es,(()=>{this._checkList(t.closest(ls))}))})),z.on(this._addBtnElement,es,(t=>{t.preventDefault(),this._disableElement(this._addBtnElement),this._addItems()})),z.on(this._invBtnElement,es,(t=>{t.preventDefault(),this._disableElement(this._invBtnElement),this._addItems(!0)})),z.on(this._resetBtnElement,es,(t=>{t.preventDefault(),this._disableElement(this._addBtnElement),this._disableElement(this._invBtnElement),this._disableElement(this._resetBtnElement),this._resetAll()}))}_disableElement(t){t.classList.remove(is),t.setAttribute("disabled","disabled"),t.setAttribute("aria-disabled","true")}_enableElement(t){t.classList.add(is),t.removeAttribute("disabled"),t.removeAttribute("aria-disabled")}_getScopeData(t){return{scope:t,list:K.find(as,t),listChecked:K.find(as+":checked",t),head:K.findOne(".transfer-header",t),inputHead:K.findOne(rs,t),labelNumHead:K.findOne(".transfer-header span.num",t),group:K.findOne(cs,t)}}_checkList(t){const e=this._getScopeData(t);0==e.listChecked.length?(e.inputHead.classList.remove(ss),e.inputHead.checked=!0,t.classList.contains(ns)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(e.listChecked.length==e.list.length?(e.inputHead.classList.remove(ss),e.inputHead.checked=!0):(e.inputHead.classList.add(ss),e.inputHead.checked=!1),t.classList.contains(ns)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_checkListHeader(t){const e=this._getScopeData(t);e.listChecked.length>0?(e.list.forEach((t=>{t.checked=!1})),e.inputHead.classList.remove(ss),e.inputHead.checked=!1,t.classList.contains(ns)?this._disableElement(this._addBtnElement):this._disableElement(this._invBtnElement)):(e.list.forEach((t=>{t.checked=!0})),t.classList.contains(ns)?this._enableElement(this._addBtnElement):this._enableElement(this._invBtnElement))}_addItems(t){const e=this._getScopeData(K.findOne(t?hs:us,this._element)),i=this._getScopeData(K.findOne(t?us:hs,this._element)),n=e.listChecked,s=e.inputHead,o=e.labelNumHead,r=n.length,a=e.list.length,l=i.group,c=i.list.length+r,u=i.labelNumHead,h=i.inputHead;n.forEach((t=>{const e=t.closest(ds);e.remove(),l.appendChild(e),t.checked=!1}));const d=a-r,f=c;o.innerText=d,u.innerText=f,0==d&&s.setAttribute("disabled",!0),f>0&&h.removeAttribute("disabled"),s.classList.remove(ss),s.checked=!1,this._enableElement(this._resetBtnElement)}_resetAll(){const t={source:this._getScopeData(K.findOne(us,this._element)),target:this._getScopeData(K.findOne(hs,this._element))};Object.keys(t).forEach((e=>{t[e].list.forEach((t=>t.closest(ds).remove()))})),Object.keys(t).forEach((e=>{this._listDefault[e].forEach((i=>{i.checked=!1,t[e].group.appendChild(i)})),t[e].labelNumHead.innerText=this._listDefault[e].length,t[e].inputHead.removeAttribute("disabled"),t[e].inputHead.classList.remove(ss),t[e].inputHead.checked=!1}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,Jn,os+" .form-check label",(function(){fs.getOrCreateInstance(this.closest(os))})),z.on(document,ts,os+" .form-check label",(function(){fs.getOrCreateInstance(this.closest(os))})));const ps=".bs.alert",ms=`close${ps}`,gs=`closed${ps}`;class _s extends Y{static get NAME(){return"alert"}close(){if(z.trigger(this._element,ms).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),z.trigger(this._element,gs),this.dispose()}}"undefined"!=typeof window&&"undefined"!=typeof document&&mt(_s,"close");const bs='[data-bs-toggle="button"]';class vs extends Y{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,"click.bs.button.data-api",bs,(t=>{t.preventDefault();const e=t.target.closest(bs);vs.getOrCreateInstance(e).toggle()}));const ys=".bs.collapse",ws=`show${ys}`,Es=`shown${ys}`,Cs=`hide${ys}`,Ss=`hidden${ys}`,ks=`click${ys}.data-api`,xs="show",Ts="collapse",As="collapsing",Os=`:scope .${Ts} .${Ts}`,Ls='[data-bs-toggle="collapse"]',Ps={parent:null,toggle:!0},Is={parent:"(null|element)",toggle:"boolean"};class Ms extends Y{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=K.find(Ls);for(const t of i){const e=m(t),i=K.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ps}static get DefaultType(){return Is}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>Ms.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(z.trigger(this._element,ws).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(Ts),this._element.classList.add(As),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(As),this._element.classList.add(Ts,xs),this._element.style[e]="",z.trigger(this._element,Es)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(z.trigger(this._element,Cs).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,C(this._element),this._element.classList.add(As),this._element.classList.remove(Ts,xs);for(const t of this._triggerArray){const e=g(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(As),this._element.classList.add(Ts),z.trigger(this._element,Ss)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(xs)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=b(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Ls);for(const e of t){const t=g(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=K.find(Os,this._config.parent);return K.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(document,ks,Ls,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=m(this),i=K.find(e);for(const t of i)Ms.getOrCreateInstance(t,{toggle:!1}).toggle()}));const Fs="dropdown",$s=".bs.dropdown",js=".data-api",Ns="ArrowUp",Ds="ArrowDown",Bs=`hide${$s}`,Rs=`hidden${$s}`,Vs=`show${$s}`,zs=`shown${$s}`,Ws=`click${$s}${js}`,qs=`keydown${$s}${js}`,Hs=`keyup${$s}${js}`,Us="show",Gs='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ys=`${Gs}.${Us}`,Ks=".dropdown-menu",Qs=S()?"top-end":"top-start",Xs=S()?"top-start":"top-end",Zs=S()?"bottom-end":"bottom-start",Js=S()?"bottom-start":"bottom-end",to=S()?"left-start":"right-start",eo=S()?"right-start":"left-start",io={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},no={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class so extends Y{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=K.next(this._element,Ks)[0]||K.prev(this._element,Ks)[0]||K.findOne(Ks,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return io}static get DefaultType(){return no}static get NAME(){return Fs}toggle(){return this._isShown()?this.hide():this.show()}show(){if(y(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!z.trigger(this._element,Vs,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))z.on(t,"mouseover",E);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Us),this._element.classList.add(Us),z.trigger(this._element,zs,t)}}hide(){if(y(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!z.trigger(this._element,Bs,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))z.off(t,"mouseover",E);this._popper&&this._popper.destroy(),this._menu.classList.remove(Us),this._element.classList.remove(Us),this._element.setAttribute("aria-expanded","false"),U.removeDataAttribute(this._menu,"popper"),z.trigger(this._element,Rs,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!_(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Fs.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===o)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:_(this._config.reference)?t=b(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=o.createPopper(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Us)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return to;if(t.classList.contains("dropstart"))return eo;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Xs:Qs:e?Js:Zs}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(U.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=K.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>v(t)));i.length&&T(i,e,t===Ds,!i.includes(e)).focus()}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=K.find(Ys);for(const i of e){const e=so.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Ns,Ds].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Gs)?this:K.prev(this,Gs)[0]||K.next(this,Gs)[0]||K.findOne(Gs,t.delegateTarget.parentNode),o=so.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,qs,Gs,so.dataApiKeydownHandler),z.on(document,qs,Ks,so.dataApiKeydownHandler),z.on(document,Ws,so.clearMenus),z.on(document,Hs,so.clearMenus),z.on(document,Ws,Gs,(function(t){t.preventDefault(),so.getOrCreateInstance(this).toggle()})));const oo=".bs.modal",ro=`hide${oo}`,ao=`hidePrevented${oo}`,lo=`hidden${oo}`,co=`show${oo}`,uo=`shown${oo}`,ho=`resize${oo}`,fo=`click.dismiss${oo}`,po=`mousedown.dismiss${oo}`,mo=`keydown.dismiss${oo}`,go=`click${oo}.data-api`,_o="modal-open",bo="show",vo="modal-static",yo={backdrop:!0,focus:!0,keyboard:!0},wo={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Eo extends Y{constructor(t,e){super(t,e),this._dialog=K.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Dt,this._addEventListeners()}static get Default(){return yo}static get DefaultType(){return wo}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||this._isTransitioning)return;z.trigger(this._element,co,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(_o),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;z.trigger(this._element,ro).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(bo),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){for(const t of[window,this._dialog])z.off(t,oo);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Xt({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ht({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=K.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),C(this._element),this._element.classList.add(bo);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,z.trigger(this._element,uo,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){z.on(this._element,mo,(t=>{if("Escape"===t.key)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),z.on(window,ho,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),z.on(this._element,po,(t=>{z.one(this._element,fo,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(_o),this._resetAdjustments(),this._scrollBar.reset(),z.trigger(this._element,lo)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(z.trigger(this._element,ao).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(vo)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(vo),this._queueCallback((()=>{this._element.classList.remove(vo),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=S()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=S()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,go,'[data-bs-toggle="modal"]',(function(t){const e=g(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),z.one(e,co,(t=>{t.defaultPrevented||z.one(e,lo,(()=>{v(this)&&this.focus()}))}));const i=K.findOne(".modal.show");i&&Eo.getInstance(i).hide();Eo.getOrCreateInstance(e).toggle(this)})),mt(Eo));const Co=".bs.offcanvas",So=".data-api",ko=`load${Co}${So}`,xo="show",To="showing",Ao="hiding",Oo=".offcanvas.show",Lo=`show${Co}`,Po=`shown${Co}`,Io=`hide${Co}`,Mo=`hidePrevented${Co}`,Fo=`hidden${Co}`,$o=`resize${Co}`,jo=`click${Co}${So}`,No=`keydown.dismiss${Co}`,Do={backdrop:!0,keyboard:!0,scroll:!1},Bo={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ro extends Y{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Do}static get DefaultType(){return Bo}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown)return;if(z.trigger(this._element,Lo,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Dt).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(To);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(xo),this._element.classList.remove(To),z.trigger(this._element,Po,{relatedTarget:t})}),this._element,!0)}hide(){if(!this._isShown)return;if(z.trigger(this._element,Io).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ao),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(xo,Ao),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Dt).reset(),z.trigger(this._element,Fo)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Xt({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():z.trigger(this._element,Mo)}:null})}_initializeFocusTrap(){return new Ht({trapElement:this._element})}_addEventListeners(){z.on(this._element,No,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():z.trigger(this._element,Mo))}))}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,jo,'[data-bs-toggle="offcanvas"]',(function(t){const e=g(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),y(this))return;z.one(e,Fo,(()=>{v(this)&&this.focus()}));const i=K.findOne(Oo);i&&i!==e&&Ro.getInstance(i).hide();Ro.getOrCreateInstance(e).toggle(this)})),z.on(window,ko,(()=>{for(const t of K.find(Oo))Ro.getOrCreateInstance(t).show()})),z.on(window,$o,(()=>{for(const t of K.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Ro.getOrCreateInstance(t).hide()})),mt(Ro));const Vo=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),zo=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Wo=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,qo=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Vo.has(i)||Boolean(zo.test(t.nodeValue)||Wo.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Ho={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};const Uo={allowList:Ho,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Go={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Yo={entry:"(string|element|function|null)",selector:"(string|element)"};class Ko extends G{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Uo}static get DefaultType(){return Go}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Yo)}_setContent(t,e,i){const n=K.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?_(e)?this._putElementInTemplate(b(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)qo(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Qo=new Set(["sanitize","allowList","sanitizeFn"]),Xo="fade",Zo="show",Jo=".tooltip-inner",tr=".modal",er="hide.bs.modal",ir="hover",nr="focus",sr={AUTO:"auto",TOP:"top",RIGHT:S()?"left":"right",BOTTOM:"bottom",LEFT:S()?"right":"left"},or={allowList:Ho,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},rr={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ar extends Y{constructor(t,e){if(void 0===o)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return or}static get DefaultType(){return rr}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),z.off(this._element.closest(tr),er,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=z.trigger(this._element,this.constructor.eventName("show")),e=(w(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),z.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(Zo),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))z.on(t,"mouseover",E);document.addEventListener("keyup",(t=>{"Escape"===t.key&&this.hide()}),{once:!0});this._queueCallback((()=>{z.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(z.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(Zo),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))z.off(t,"mouseover",E);this._activeTrigger.click=!1,this._activeTrigger[nr]=!1,this._activeTrigger[ir]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),z.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Xo,Zo),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Xo),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Ko({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Jo]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Xo)}_isShown(){return this.tip&&this.tip.classList.contains(Zo)}_createPopper(t){const e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=sr[e.toUpperCase()];return o.createPopper(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)z.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===ir?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===ir?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");z.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?nr:ir]=!0,e._enter()})),z.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?nr:ir]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},z.on(this._element.closest(tr),er,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=U.getDataAttributes(this._element);for(const t of Object.keys(e))Qo.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:b(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}}const lr=".popover-header",cr=".popover-body",ur={...ar.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},hr={...ar.DefaultType,content:"(null|string|element|function)"};const dr=".bs.scrollspy",fr=`activate${dr}`,pr=`click${dr}`,mr=`load${dr}.data-api`,gr="active",_r="[href]",br=".nav-link",vr=`${br}, .nav-item > ${br}, .list-group-item`,yr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},wr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Er extends Y{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return yr}static get DefaultType(){return wr}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=b(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(z.off(this._config.target,pr),z.on(this._config.target,pr,_r,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=K.find(_r,this._config.target);for(const e of t){if(!e.hash||y(e))continue;const t=K.findOne(e.hash,this._element);v(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(gr),this._activateParents(t),z.trigger(this._element,fr,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))K.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(gr);else for(const e of K.parents(t,".nav, .list-group"))for(const t of K.prev(e,vr))t.classList.add(gr)}_clearActiveClass(t){t.classList.remove(gr);const e=K.find(`${_r}.${gr}`,t);for(const t of e)t.classList.remove(gr)}}"undefined"!=typeof window&&"undefined"!=typeof document&&z.on(window,mr,(()=>{for(const t of K.find('[data-bs-spy="scroll"]'))Er.getOrCreateInstance(t)}));const Cr=".bs.tab",Sr=`hide${Cr}`,kr=`hidden${Cr}`,xr=`show${Cr}`,Tr=`shown${Cr}`,Ar=`click${Cr}`,Or=`keydown${Cr}`,Lr=`load${Cr}`,Pr="ArrowLeft",Ir="ArrowRight",Mr="ArrowUp",Fr="ArrowDown",$r="Enter",jr=" ",Nr="active",Dr="fade",Br="show",Rr=":not(.dropdown-toggle)",Vr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',zr=`${`.nav-link${Rr}, .list-group-item${Rr}, [role="tab"]${Rr}`}, ${Vr}`;class Wr extends Y{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),z.on(this._element,Or,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?z.trigger(e,Sr,{relatedTarget:t}):null;z.trigger(t,xr,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(Nr),this._activate(g(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),z.trigger(t,Tr,{relatedTarget:e})):t.classList.add(Br)}),t,t.classList.contains(Dr))}_deactivate(t,e){if(!t)return;t.classList.remove(Nr),t.blur(),this._deactivate(g(t));this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),z.trigger(t,kr,{relatedTarget:e})):t.classList.remove(Br)}),t,t.classList.contains(Dr))}_keydown(t){if(![Pr,Ir,Mr,Fr,$r,jr].includes(t.key))return;if(t.stopPropagation(),t.preventDefault(),t.key===$r||t.key===jr)return void Wr.getOrCreateInstance(t.target).show();const e=[Ir,Fr].includes(t.key),i=T(this._getChildren().filter((t=>!y(t))),t.target,e,!0);i&&i.focus({preventScroll:!0})}_getChildren(){return K.find(zr,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=g(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=K.findOne(t,i);s&&s.classList.toggle(n,e)};n(".dropdown-toggle",Nr),n(".dropdown-menu",Br),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(Nr)}_getInnerElement(t){return t.matches(zr)?t:K.findOne(zr,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}}"undefined"!=typeof window&&"undefined"!=typeof document&&(z.on(document,Ar,Vr,(function(t){if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),y(this))return;Wr.getOrCreateInstance(this).dispose(),Wr.getOrCreateInstance(this).show()})),z.on(window,Lr,(()=>{for(const t of K.find(Vr)){Wr.getOrCreateInstance(t).dispose(),Wr.getOrCreateInstance(t)}})));const qr=".bs.toast",Hr=`mouseover${qr}`,Ur=`mouseout${qr}`,Gr=`focusin${qr}`,Yr=`focusout${qr}`,Kr=`hide${qr}`,Qr=`hidden${qr}`,Xr=`show${qr}`,Zr=`shown${qr}`,Jr="hide",ta="show",ea="showing",ia={animation:"boolean",autohide:"boolean",delay:"number"},na={animation:!0,autohide:!0,delay:5e3};class sa extends Y{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return na}static get DefaultType(){return ia}static get NAME(){return"toast"}show(){if(z.trigger(this._element,Xr).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Jr),C(this._element),this._element.classList.add(ta,ea),this._queueCallback((()=>{this._element.classList.remove(ea),z.trigger(this._element,Zr),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(z.trigger(this._element,Kr).defaultPrevented)return;this._element.classList.add(ea),this._queueCallback((()=>{this._element.classList.add(Jr),this._element.classList.remove(ea,ta),z.trigger(this._element,Qr)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ta),super.dispose()}isShown(){return this._element.classList.contains(ta)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){z.on(this._element,Hr,(t=>this._onInteraction(t,!0))),z.on(this._element,Ur,(t=>this._onInteraction(t,!1))),z.on(this._element,Gr,(t=>this._onInteraction(t,!0))),z.on(this._element,Yr,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}}"undefined"!=typeof window&&"undefined"!=typeof document&&mt(sa);const oa=t=>{const e=t.browser.IS_IOS||t.browser.IS_NATIVE_ANDROID,i=t.getTech("Tech");class n extends i{constructor(t,i){super(t,i),this.setPoster(t.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",e&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),n.isApiReady?this.initYTPlayer():n.apiReadyQueue.push(this))}.bind(this))}dispose(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var t=n.apiReadyQueue.indexOf(this);-1!==t&&n.apiReadyQueue.splice(t,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),i.prototype.dispose.call(this)}createEl(){if("undefined"!=typeof document){var t=document.createElement("div");t.setAttribute("id",this.options_.techId),t.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),t.setAttribute("class","vjs-tech");var i=document.createElement("div");if(i.appendChild(t),!e&&!this.options_.ytControls){var n=document.createElement("div");n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=function(){this.pause()}.bind(this),i.appendChild(n)}return i}}initYTPlayer(){var t={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(void 0!==this.options_.autohide&&(t.autohide=this.options_.autohide),void 0!==this.options_.cc_load_policy&&(t.cc_load_policy=this.options_.cc_load_policy),void 0!==this.options_.ytControls&&(t.controls=this.options_.ytControls),void 0!==this.options_.disablekb&&(t.disablekb=this.options_.disablekb),void 0!==this.options_.color&&(t.color=this.options_.color),t.controls?void 0!==this.options_.fs&&(t.fs=this.options_.fs):t.fs=0,-1!==this.options_.source.src.indexOf("end=")){var e=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(e[1])}if(void 0!==this.options_.end&&(t.end=this.options_.end),void 0!==this.options_.hl?t.hl=this.options_.hl:void 0!==this.options_.language&&(t.hl=this.options_.language.substr(0,2)),void 0!==this.options_.iv_load_policy&&(t.iv_load_policy=this.options_.iv_load_policy),void 0!==this.options_.list?t.list=this.options_.list:this.url&&void 0!==this.url.listId&&(t.list=this.url.listId),void 0!==this.options_.listType&&(t.listType=this.options_.listType),void 0!==this.options_.modestbranding&&(t.modestbranding=this.options_.modestbranding),void 0!==this.options_.playlist&&(t.playlist=this.options_.playlist),void 0!==this.options_.playsinline&&(t.playsinline=this.options_.playsinline),void 0!==this.options_.rel&&(t.rel=this.options_.rel),void 0!==this.options_.showinfo&&(t.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var i=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(i[1])}if(void 0!==this.options_.start&&(t.start=this.options_.start),void 0!==this.options_.theme&&(t.theme=this.options_.theme),void 0!==this.options_.customVars){var n=this.options_.customVars;Object.keys(n).forEach((function(e){t[e]=n[e]}))}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=t.list;var s={videoId:this.activeVideoId,playerVars:t,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};void 0!==this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(s.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,s)}onPlayerReady(){this.options_.muted&&this.ytPlayer.mute(),this.ytPlayer.getAvailablePlaybackRates().length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)}onPlayerPlaybackQualityChange(){}onPlayerPlaybackRateChange(){this.trigger("ratechange")}onPlayerStateChange(t){var e=t.data;if(e!==this.lastState&&!this.errorNumber)switch(this.lastState=e,e){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}}onPlayerVolumeChange(){this.trigger("volumechange")}onPlayerError(t){this.errorNumber=t.data,this.trigger("pause"),this.trigger("error")}error(){var t=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:t,message:"Error while trying to play the video"};case 2:case 100:return{code:t,message:"Unable to find the video"};case 101:case 150:return{code:t,message:"Playback on other Websites has been disabled by the video owner."}}return{code:t,message:"YouTube unknown error ("+this.errorNumber+")"}}loadVideoById_(t){var e={videoId:t};this.options_.start&&(e.startSeconds=this.options_.start),this.options_.end&&(e.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(e)}cueVideoById_(t){var e={videoId:t};this.options_.start&&(e.startSeconds=this.options_.start),this.options_.end&&(e.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(e)}src(t){return t&&this.setSrc({src:t}),this.source}poster(){return e?null:this.poster_}setPoster(t){this.poster_=t}setSrc(t){t&&t.src&&(delete this.errorNumber,this.source=t,this.url=n.parseUrl(t.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!e?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))}autoplay(){return this.options_.autoplay}setAutoplay(t){this.options_.autoplay=t}loop(){return this.options_.loop}setLoop(t){this.options_.loop=t}play(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))}pause(){this.ytPlayer&&this.ytPlayer.pauseVideo()}paused(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING}currentTime(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0}setCurrentTime(t){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(t,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==t&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))}seeking(){return this.isSeeking}seekable(){return this.ytPlayer?t.createTimeRange(0,this.ytPlayer.getDuration()):t.createTimeRange()}onSeeked(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")}playbackRate(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1}setPlaybackRate(t){this.ytPlayer&&this.ytPlayer.setPlaybackRate(t)}duration(){return this.ytPlayer?this.ytPlayer.getDuration():0}currentSrc(){return this.source&&this.source.src}ended(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED}volume(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1}setVolume(t){this.ytPlayer&&this.ytPlayer.setVolume(100*t)}muted(){return!!this.ytPlayer&&this.ytPlayer.isMuted()}setMuted(t){this.ytPlayer&&(this.muted(!0),t?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout((function(){this.trigger("volumechange")}),50))}buffered(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return t.createTimeRange();var e=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return t.createTimeRange(0,e)}preload(){}load(){}reset(){}networkState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}}readyState(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}}supportsFullScreen(){if("undefined"!=typeof document)return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled}checkHighResPoster(){var t="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var e=new Image;e.onload=function(){if("naturalHeight"in e){if(e.naturalHeight<=90||e.naturalWidth<=120)return}else if(e.height<=90||e.width<=120)return;this.poster_=t,this.trigger("posterchange")}.bind(this),e.onerror=function(){},e.src=t}catch(t){}}}n.isSupported=function(){return!0},n.canPlaySource=function(t){return n.canPlayType(t.type)},n.canPlayType=function(t){return"video/youtube"===t},n.parseUrl=function(t){var e={videoId:null},i=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);i&&11===i[2].length&&(e.videoId=i[2]);return(i=t.match(/[?&]list=([^#\&\?]+)/))&&i[1]&&(e.listId=i[1]),e},n.apiReadyQueue=[],"undefined"!=typeof document&&(function(t,e){if("undefined"!=typeof document){var i=!1,n=document.createElement("script"),s=document.getElementsByTagName("script")[0];s&&(s.parentNode.insertBefore(n,s),n.onload=function(){i||(i=!0,e())},n.onreadystatechange=function(){i||"complete"!==this.readyState&&"loaded"!==this.readyState||(i=!0,e())},n.src=t)}}("https://www.youtube.com/iframe_api",(function(){YT.ready((function(){n.isApiReady=!0;for(var t=0;t<n.apiReadyQueue.length;++t)n.apiReadyQueue[t].initYTPlayer()}))})),function(){if("undefined"!=typeof document){var t=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }",e=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t)),e.appendChild(i)}}()),void 0!==t.registerTech?t.registerTech("Youtube",n):t.registerComponent("Youtube",n)},ra={languages:{it:{"Audio Player":"Lettore audio","Video Player":"Lettore video",Play:"Play",Pause:"Pausa",Replay:"Replay","Current Time":"Orario attuale",Duration:"Durata","Remaining Time":"Tempo rimanente","Stream Type":"Tipo di streaming",LIVE:"LIVE",Loaded:"Caricato",Progress:"Stato","Progress Bar":"Barra di avanzamento","progress bar timing: currentTime={1} duration={2}":"{1} di {2}",Fullscreen:"Schermo intero","Exit Fullscreen":"Chiudi Schermo intero",Mute:"Disattiva l’audio",Unmute:"Attiva l’audio","Playback Rate":"Velocità di riproduzione",Subtitles:"Sottotitoli","subtitles off":"Senza sottotitoli",Captions:"Sottotitoli non udenti","captions off":"Senza sottotitoli non udenti",Chapters:"Capitolo",Descriptions:"Descrizioni","descriptions off":"Descrizioni disattivate","Audio Track":"Traccia audio","Volume Level":"Livello del volume","You aborted the media playback":"La riproduzione del filmato è stata interrotta.","A network error caused the media download to fail part-way.":"Il download del filmato è stato interrotto a causa di un problema rete.","The media could not be loaded, either because the server or network failed or because the format is not supported.":"Il filmato non può essere caricato a causa di un errore nel server o nella rete o perché il formato non viene supportato.","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"La riproduzione del filmato è stata interrotta a causa di un file danneggiato o per l’utilizzo di impostazioni non supportate dal browser.","No compatible source was found for this media.":"Non ci sono fonti compatibili per questo filmato.","The media is encrypted and we do not have the keys to decrypt it.":"Il contenuto multimediale è criptato e non disponiamo delle chiavi per decifrarlo.","Play Video":"Riproduci il video",Close:"Chiudi","Close Modal Dialog":"Chiudi la finestra di dialogo","Modal Window":"Finestra di dialogo","This is a modal window":"Questa è una finestra di dialogo","This modal can be closed by pressing the Escape key or activating the close button.":"Questa finestra di dialogo può essere chiusa premendo sul tasto Esc o attivando il pulsante di chiusura.",", opens captions settings dialog":", aprire i parametri della trascrizione dei sottotitoli",", opens subtitles settings dialog":", aprire i parametri dei sottotitoli",", opens descriptions settings dialog":", aprire i parametri delle descrizioni",", selected":", selezionato","captions settings":"Parametri sottotitoli non udenti","subtitles settings":"Parametri sottotitoli","descriptions settings":"Parametri descrizioni",Text:"Testo",White:"Bianco",Black:"Nero",Red:"Rosso",Green:"Verde",Blue:"Blu",Yellow:"Giallo",Magenta:"Magenta",Cyan:"Ciano",Background:"Sfondo",Window:"Finestra",Transparent:"Trasparente","Semi-Transparent":"Semi-Trasparente",Opaque:"Opaco","Font Size":"Dimensione dei caratteri","Text Edge Style":"Stile dei bordi del testo",None:"Nessuno",Uniform:"Uniforme","Drop shadow":"Ombra","Font Family":"Carattere","Proportional Sans-Serif":"Sans-Serif proporzionale","Monospace Sans-Serif":"Sans-Serif monospaziato","Proportional Serif":"Serif proporzionale","Monospace Serif":"Serif monospaziato","Small Caps":"Maiuscoletto",Reset:"Reinizializza","restore all settings to the default values":"Ripristina i valori predefiniti per tutti i parametri",Done:"Fatto","Caption Settings Dialog":"Finestra di dialogo dei parametri della trascrizione dei sottotitoli","Beginning of dialog window. Escape will cancel and close the window.":"Inizio della finestra di dialogo. Il tasto Esc annullerà l’operazione e chiuderà la finestra.","End of dialog window.":"Fine della finestra di dialogo.","{1} is loading.":"{1} in fase di caricamento.","Exit Picture-in-Picture":"Esci dalla modalità Picture-in-Picture","Picture-in-Picture":"Picture-in-Picture",Color:"Colore",Opacity:"Opacità","Text Background":"Sfondo testo","Caption Area Background":"Sfondo area sottotitoli","Skip forward {1} seconds":"Avanti {1} secondi","Skip backward {1} seconds":"Indietro {1} secondi"}},language:"it"},aa={};"undefined"!=typeof window&&(window.videojs=i);class la extends Y{constructor(t,e){super(t),t.classList.add("video-js","vjs-theme-bootstrap-italia","vjs-fluid","vjs-big-play-centered"),this._config=this._getConfig(e),this.player=i(t,ra)}setYouTubeVideo(t){oa(i),this.player.tech("youtube"),this.player.src({type:"video/youtube",src:t})}static get NAME(){return"videoplayer"}_getConfig(t){return t={...aa,...U.getDataAttributes(this._element),..."object"==typeof t?t:{}}}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=K.find("[data-bs-video]");t.length>0&&t.forEach((t=>{la.getOrCreateInstance(t)}))}const ca="show";class ua extends Y{constructor(t,e){super(t.closest(".acceptoverlay")),this._overlayable=t.closest(".acceptoverlayable");const i=u.isChoiceRemembered(e.service);if(this._isShown=!0,this._toggleElement=t,this._element.classList.contains(ca)&&this._overlayable.classList.add(ca),i)return this.hide(),void setTimeout((()=>{this._toggleElement.dispatchEvent(new Event("click"))}),100);this._toggleElement.addEventListener("click",(()=>{this.hide(),this._remember=this._toggleElement.parentElement.querySelector("[data-bs-accept-remember]").checked,u.rememberChoice(e.service,this._remember)}))}static get NAME(){return"acceptoverlay"}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 t=this._isAnimated();t&&(this._isTransitioning=!0),this._element.classList.remove(ca),this._overlayable.classList.remove(ca),this._queueCallback((()=>this._hideElement()),this._element,t)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const t=this._isAnimated();this._element.removeAttribute("aria-hidden"),t&&C(this._element),this._element.classList.add(ca),this._overlayable.add(ca);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,t)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}if("undefined"!=typeof window&&"undefined"!=typeof document){const t=K.find("[data-bs-accept-from]");t.length>0&&t.forEach((t=>{ua.getOrCreateInstance(t,{service:t.dataset.bsAcceptFrom})}))}l();const ha={Alert:_s,Button:vs,Carousel:Z,Collapse:Ms,Dropdown:so,Modal:Eo,Offcanvas:Ro,Popover:class extends ar{static get Default(){return ur}static get DefaultType(){return hr}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[lr]:this._getTitle(),[cr]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}},ScrollSpy:Er,Tab:Wr,Toast:sa,Tooltip:ar,VideoPlayer:la,AcceptOverlay:ua,Accordion:Se,BackToTop:Ln,Cookiebar:It,Dimmer:pt,FormValidate:class{constructor(t,e,i){if(this.formSelector=t,"undefined"!=typeof window&&"undefined"!=typeof document)return this.target=document.querySelector(t),this.validate=null!=i?new wi(t,e,i):new wi(t,e),this.config=Object.assign({},Si,this.validate.globalConfig),this.formItems=[],this.init(),this.validate}init(){this.target.querySelectorAll("input, select").forEach((t=>{const e=new Ei(t,this.config.errorFieldCssClass,(()=>this.onInputError(t)),(()=>this.onInputErrorRemove(t)),!0);t.id||t.setAttribute("id",ki+"-input-"+Math.random()),this.formItems.push({item:t,watcher:e})}));this.target.querySelectorAll("fieldset").forEach((t=>{if(t.querySelectorAll("input[type=radio],input[type=checkbox]").length>0){const e=new Ci(t,"."+this.config.errorLabelCssClass,(()=>this.onFieldsetError(t)),(()=>this.onFieldsetErrorRemove(t)));t.id||t.setAttribute("id",ki+"-fieldset-"+Math.random()),this.formItems.push({item:t,watcher:e})}}))}onInputError(t){const e=this.getErrorMessages(t),i=[];e.forEach(((e,n)=>{const s=t.id+"-error-"+n;e.setAttribute("id",s),i.push(s)})),i.length>0&&(t.setAttribute("aria-describedby",i.join(" ")),t.setAttribute("aria-invalid","true"))}onInputErrorRemove(t){t.removeAttribute("aria-describedby"),t.setAttribute("aria-invalid","false")}onFieldsetError(t){const e=this.getErrorMessages(t),i=[],n=[];if(e.forEach(((e,s)=>{const o=t.id+"-error-"+s;e.setAttribute("id",o),i.push(o),n.push(e.textContent)})),i.length>0){const e=t.querySelector("legend");e&&(e.setAttribute("aria-describedby",i.join(" ")),e.setAttribute("aria-invalid","true"))}}onFieldsetErrorRemove(t){const e=t.querySelector("legend");if(e){e.removeAttribute("aria-describedby"),e.setAttribute("aria-invalid","false");const t=e.querySelector(".sr-only-justvalidate-bi");t&&t.remove()}}getErrorMessages(t){let e=t,i=e.querySelectorAll("."+this.config.errorLabelCssClass);for(;null!=e&&0===i.length;)e=e.parentNode,i=e.querySelectorAll("."+this.config.errorLabelCssClass);return i}},Forward:Bn,HistoryBack:Fn,Input:xi,InputNumber:dt,InputPassword:Ki,InputSearchAutocomplete:$i,List:Qn,Masonry:qn,NavBarCollapsible:be,NavScroll:Ue,Notification:Et,ProgressDonut:gn,SelectAutocomplete:class extends Y{constructor(t,e){super(t),this._config=e||{},this._config.inputClasses="form-control",this._config.showNoOptionsFound=!0,this._config.hintClasses="app-hint",this._config.autoselect=!1,this._config.showAllValues=!1,this._config.templates=void 0,this._config.confirmOnBlur=!1,this._config.menuAttributes={},this._config.menuClasses=null,this._extraClasses=[],this._config.tAssistiveHint||(this._config.tAssistiveHint=()=>"Quando i risultati del completamento automatico sono disponibili, usa le frecce su e giù per rivedere e Invio per selezionare. Utenti di dispositivi touch, esplora tramite tocco o con gesti di scorrimento"),this._config.tNoResults||(this._config.tNoResults=()=>"Nessun risultato trovato"),this._config.tStatusQueryTooShort||(this._config.tStatusQueryTooShort=t=>`Digita ${t} o più caratteri per mostrare le opzioni di ricerca`),this._config.tStatusNoResults||(this._config.tStatusNoResults=()=>"Nessun risultato di ricerca"),this._config.tStatusSelectedOption||(this._config.tStatusSelectedOption=(t,e,i)=>`${t} ${i+1} di ${e} è sottolineato`),this._config.tStatusResults||(this._config.tStatusResults=(t,e)=>`${t} ${1===t?"risultato":"risultati"} ${1===t?"è":"sono"} ${1===t?"disponibile":"disponibili"}. ${e}`),"undefined"!=typeof document&&this._enhance()}static get NAME(){return"selectautocomplete"}_enhance(){const t=this._config.id,e=this._config.onConfirm;this._config.onConfirm=i=>{document.getElementById(t).value=i,document.getElementById(t).dispatchEvent(new Event("input")),e&&e(i)},Li(Object.assign({},{element:this._element,id:t},this._config)),setTimeout((()=>{this._inputField=document.getElementById(t),this._label=new st(this._inputField),this._inputField.addEventListener("focus",(()=>{this._extraClasses.forEach((t=>{this._inputField.classList.add(t)})),this._extraClasses=[]})),this._inputField.addEventListener("blur",(()=>{this._extraClasses.forEach((t=>{this._inputField.classList.add(t)})),this._extraClasses=[]})),function(t,e){const i=new MutationObserver((t=>{t.forEach((t=>{"attributes"===t.type&&"class"===t.attributeName&&e(t.oldValue,t.target)}))}));i.observe(t,{attributes:!0,attributeOldValue:!0}),i.disconnect}(this._inputField,(t=>{this._extraClasses=[],t!==this._inputField.classList.value&&t.split(" ").forEach((t=>{t.startsWith("autocomplete")||this._extraClasses.push(t)}))}))}),100)}},Sticky:ei,HeaderSticky:oi,Transfer:fs,UploadDragDrop:xn,ValidatorSelectAutocomplete:(t,e={})=>(i,n)=>{let s=!1;const o=n[t];if(!o)throw new Error("ValidatorSelectAutocomplete: "+t+" not found as form field");return e.required||i?"undefined"!=typeof window&&"undefined"!=typeof document&&document.querySelector("#"+o.elem.id+"-select").querySelectorAll("option").forEach((t=>{t.text===i&&(s=!0)})):s=!0,s},loadFonts:(t="/node_modules/bootstrap-italia/dist/fonts")=>{if("undefined"==typeof window||"undefined"==typeof document)return;const e=document.createElement("style"),i=window.__PUBLIC_PATH__?window.__PUBLIC_PATH__:t;e.innerHTML=`\n /* Titillium+Web:300,400,600,700 */\n\n /* titillium-web-300 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-300italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 300;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-300italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-regular - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-regular.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-700 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-700italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n /* titillium-web-600 - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* titillium-web-600italic - latin-ext_latin */\n @font-face {\n font-family: 'Titillium Web';\n font-style: italic;\n font-weight: 600;\n font-display: swap;\n src: url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Titillium_Web/titillium-web-v10-latin-ext_latin-600italic.svg#TitilliumWeb') format('svg'); /* Legacy iOS */\n }\n\n /* Lora:400,700 */\n\n /* lora-regular - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-regular.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-700 - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-700.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-italic - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-italic.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* lora-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Lora';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Lora/lora-v20-latin-ext_latin-700italic.svg#Lora') format('svg'); /* Legacy iOS */\n }\n\n /* Roboto+Mono:400,700 */\n\n /* roboto-mono-regular - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-700 - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-italic - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: italic;\n font-weight: 400;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n\n /* roboto-mono-700italic - latin-ext_latin */\n @font-face {\n font-family: 'Roboto Mono';\n font-style: italic;\n font-weight: 700;\n font-display: swap;\n src: url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot'); /* IE9 Compat Modes */\n src: local(''),\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.woff') format('woff'), /* Modern Browsers */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */\n url('${i}/Roboto_Mono/roboto-mono-v13-latin-ext_latin-700italic.svg#RobotoMono') format('svg'); /* Legacy iOS */\n }\n `,document.getElementsByTagName("head")[0].appendChild(e)},cookies:u};return ha}));