!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,function(){"use strict";const t="transitionend",e=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},i=t=>{const i=e(t);return i&&document.querySelector(i)?i:null},n=t=>{const i=e(t);return i?document.querySelector(i):null},o=e=>{e.dispatchEvent(new Event(t))},s=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>s(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,a=(t,e,i)=>{Object.keys(i).forEach(n=>{const o=i[n],r=e[n],a=r&&s(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(o).test(a))throw new TypeError(`${t.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${o}".`)})},l=t=>!(!s(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),c=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),d=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?d(t.parentNode):null},u=()=>{},p=t=>{t.offsetHeight},h=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},f=[],g=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=(()=>{const e=h();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=(()=>(e.fn[i]=n,t.jQueryInterface))}}),"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",()=>{f.forEach(t=>t())}),f.push(e)):e()},v=t=>{"function"==typeof t&&t()},b=(e,i,n=!0)=>{if(!n)return void v(e);const s=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),o=Number.parseFloat(i);return n||o?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeEventListener(t,a),v(e))};i.addEventListener(t,a),setTimeout(()=>{r||o(i)},s)},y=(t,e,i,n)=>{let o=t.indexOf(e);if(-1===o)return t[!i&&n?t.length-1:0];const s=t.length;return o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))]},_=/[^.]*(?=\..*)\.|.*/,w=/\..*/,x=/::\d+$/,k={};let T=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},S=/^(mouseenter|mouseleave)/i,$=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 E(t,e){return e&&`${e}::${T++}`||t.uidEvent||T++}function A(t){const e=E(t);return t.uidEvent=e,k[e]=k[e]||{},k[e]}function O(t,e,i=null){const n=Object.keys(t);for(let o=0,s=n.length;o<s;o++){const s=t[n[o]];if(s.originalHandler===e&&s.delegationSelector===i)return s}return null}function P(t,e,i){const n="string"==typeof e,o=n?i:e;let s=I(t);return $.has(s)||(s=t),[n,o,s]}function L(t,e,i,n,o){if("string"!=typeof e||!t)return;if(i||(i=n,n=null),S.test(e)){const t=t=>(function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)});n?n=t(n):i=t(i)}const[s,r,a]=P(e,i,n),l=A(t),c=l[a]||(l[a]={}),d=O(c,r,s?i:null);if(d)return void(d.oneOff=d.oneOff&&o);const u=E(r,e.replace(_,"")),p=s?function(t,e,i){return function n(o){const s=t.querySelectorAll(e);for(let{target:r}=o;r&&r!==this;r=r.parentNode)for(let a=s.length;a--;)if(s[a]===r)return o.delegateTarget=r,n.oneOff&&D.off(t,o.type,e,i),i.apply(r,[o]);return null}}(t,i,n):function(t,e){return function i(n){return n.delegateTarget=t,i.oneOff&&D.off(t,n.type,e),e.apply(t,[n])}}(t,i);p.delegationSelector=s?i:null,p.originalHandler=r,p.oneOff=o,p.uidEvent=u,c[u]=p,t.addEventListener(a,p,s)}function M(t,e,i,n,o){const s=O(e[i],n,o);s&&(t.removeEventListener(i,s,Boolean(o)),delete e[i][s.uidEvent])}function I(t){return t=t.replace(w,""),C[t]||t}const D={on(t,e,i,n){L(t,e,i,n,!1)},one(t,e,i,n){L(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[o,s,r]=P(e,i,n),a=r!==e,l=A(t),c=e.startsWith(".");if(void 0!==s){if(!l||!l[r])return;return void M(t,l,r,s,o?i:null)}c&&Object.keys(l).forEach(i=>{!function(t,e,i,n){const o=e[i]||{};Object.keys(o).forEach(s=>{if(s.includes(n)){const n=o[s];M(t,e,i,n.originalHandler,n.delegationSelector)}})}(t,l,i,e.slice(1))});const d=l[r]||{};Object.keys(d).forEach(i=>{const n=i.replace(x,"");if(!a||e.includes(n)){const e=d[i];M(t,l,r,e.originalHandler,e.delegationSelector)}})},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=h(),o=I(e),s=e!==o,r=$.has(o);let a,l=!0,c=!0,d=!1,u=null;return s&&n&&(a=n.Event(e,i),n(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented()),r?(u=document.createEvent("HTMLEvents")).initEvent(o,l,!0):u=new CustomEvent(e,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach(t=>{Object.defineProperty(u,t,{get:()=>i[t]})}),d&&u.preventDefault(),c&&t.dispatchEvent(u),u.defaultPrevented&&void 0!==a&&a.preventDefault(),u}},j=new Map,H={set(t,e,i){j.has(t)||j.set(t,new Map);const n=j.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)=>j.has(t)&&j.get(t).get(e)||null,remove(t,e){if(!j.has(t))return;const i=j.get(t);i.delete(e),0===i.size&&j.delete(t)}};class N{constructor(t){(t=r(t))&&(this._element=t,H.set(this._element,this.constructor.DATA_KEY,this))}dispose(){H.remove(this._element,this.constructor.DATA_KEY),D.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach(t=>{this[t]=null})}_queueCallback(t,e,i=!0){b(t,e,i)}static getInstance(t){return H.get(r(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.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const z=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,o=t.NAME;D.on(document,i,`[data-bs-dismiss="${o}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),c(this))return;const s=n(this)||this.closest(`.${o}`);t.getOrCreateInstance(s)[e]()})};class F extends N{static get NAME(){return"alert"}close(){if(D.trigger(this._element,"close.bs.alert").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(),D.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=F.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}z(F,"close"),m(F);const R='[data-bs-toggle="button"]';class B extends N{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=B.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}function W(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function q(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}D.on(document,"click.bs.button.data-api",R,t=>{t.preventDefault();const e=t.target.closest(R);B.getOrCreateInstance(e).toggle()}),m(B);const X={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${q(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${q(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter(t=>t.startsWith("bs")).forEach(i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),e[n]=W(t.dataset[i])}),e},getDataAttribute:(t,e)=>W(t.getAttribute(`data-bs-${q(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},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;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(e)&&i.push(n),n=n.parentNode;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=>!c(t)&&l(t))}},U="carousel",V={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},Q={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},K="next",G="prev",Z="left",J="right",tt={ArrowLeft:J,ArrowRight:Z},et="slid.bs.carousel",it="active",nt=".active.carousel-item";class ot extends N{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=Y.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return V}static get NAME(){return U}next(){this._slide(K)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(G)}pause(t){t||(this._isPaused=!0),Y.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(o(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=Y.findOne(nt,this._element);const e=this._getItemIndex(this._activeElement);if(t>this._items.length-1||t<0)return;if(this._isSliding)return void D.one(this._element,et,()=>this.to(t));if(e===t)return this.pause(),void this.cycle();const i=t>e?K:G;this._slide(i,this._items[t])}_getConfig(t){return t={...V,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(U,t,Q),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?J:Z)}_addEventListeners(){this._config.keyboard&&D.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(D.on(this._element,"mouseenter.bs.carousel",t=>this.pause(t)),D.on(this._element,"mouseleave.bs.carousel",t=>this.cycle(t))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&("pen"===t.pointerType||"touch"===t.pointerType),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},i=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},n=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(t=>this.cycle(t),500+this._config.interval))};Y.find(".carousel-item img",this._element).forEach(t=>{D.on(t,"dragstart.bs.carousel",t=>t.preventDefault())}),this._pointerEvent?(D.on(this._element,"pointerdown.bs.carousel",t=>e(t)),D.on(this._element,"pointerup.bs.carousel",t=>n(t)),this._element.classList.add("pointer-event")):(D.on(this._element,"touchstart.bs.carousel",t=>e(t)),D.on(this._element,"touchmove.bs.carousel",t=>i(t)),D.on(this._element,"touchend.bs.carousel",t=>n(t)))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=tt[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?Y.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){const i=t===K;return y(this._items,e,i,this._config.wrap)}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),n=this._getItemIndex(Y.findOne(nt,this._element));return D.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:n,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=Y.findOne(".active",this._indicatorsElement);e.classList.remove(it),e.removeAttribute("aria-current");const i=Y.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e<i.length;e++)if(Number.parseInt(i[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){i[e].classList.add(it),i[e].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||Y.findOne(nt,this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const i=this._directionToOrder(t),n=Y.findOne(nt,this._element),o=this._getItemIndex(n),s=e||this._getItemByOrder(i,n),r=this._getItemIndex(s),a=Boolean(this._interval),l=i===K,c=l?"carousel-item-start":"carousel-item-end",d=l?"carousel-item-next":"carousel-item-prev",u=this._orderToDirection(i);if(s&&s.classList.contains(it))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(s,u).defaultPrevented)return;if(!n||!s)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(s),this._activeElement=s;const h=()=>{D.trigger(this._element,et,{relatedTarget:s,direction:u,from:o,to:r})};if(this._element.classList.contains("slide")){s.classList.add(d),p(s),n.classList.add(c),s.classList.add(c);const t=()=>{s.classList.remove(c,d),s.classList.add(it),n.classList.remove(it,d,c),this._isSliding=!1,setTimeout(h,0)};this._queueCallback(t,n,!0)}else n.classList.remove(it),s.classList.add(it),this._isSliding=!1,h();a&&this.cycle()}_directionToOrder(t){return[J,Z].includes(t)?g()?t===Z?G:K:t===Z?K:G:t}_orderToDirection(t){return[K,G].includes(t)?g()?t===G?Z:J:t===G?J:Z:t}static carouselInterface(t,e){const i=ot.getOrCreateInstance(t,e);let{_config:n}=i;"object"==typeof e&&(n={...n,...e});const o="string"==typeof e?e:n.slide;if("number"==typeof e)i.to(e);else if("string"==typeof o){if(void 0===i[o])throw new TypeError(`No method named "${o}"`);i[o]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each(function(){ot.carouselInterface(this,t)})}static dataApiClickHandler(t){const e=n(this);if(!e||!e.classList.contains("carousel"))return;const i={...X.getDataAttributes(e),...X.getDataAttributes(this)},o=this.getAttribute("data-bs-slide-to");o&&(i.interval=!1),ot.carouselInterface(e,i),o&&ot.getInstance(e).to(o),t.preventDefault()}}D.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",ot.dataApiClickHandler),D.on(window,"load.bs.carousel.data-api",()=>{const t=Y.find('[data-bs-ride="carousel"]');for(let e=0,i=t.length;e<i;e++)ot.carouselInterface(t[e],ot.getInstance(t[e]))}),m(ot);const st="collapse",rt={toggle:!0,parent:null},at={toggle:"boolean",parent:"(null|element)"},lt="show",ct="collapse",dt="collapsing",ut="collapsed",pt=":scope .collapse .collapse",ht='[data-bs-toggle="collapse"]';class ft extends N{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=[];const n=Y.find(ht);for(let t=0,e=n.length;t<e;t++){const e=n[t],o=i(e),s=Y.find(o).filter(t=>t===this._element);null!==o&&s.length&&(this._selector=o,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return rt}static get NAME(){return st}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=Y.find(pt,this._config.parent);e=Y.find(".collapse.show, .collapse.collapsing",this._config.parent).filter(e=>!t.includes(e))}const i=Y.findOne(this._selector);if(e.length){const n=e.find(t=>i!==t);if((t=n?ft.getInstance(n):null)&&t._isTransitioning)return}if(D.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e.forEach(e=>{i!==e&&ft.getOrCreateInstance(e,{toggle:!1}).hide(),t||H.set(e,"bs.collapse",null)});const n=this._getDimension();this._element.classList.remove(ct),this._element.classList.add(dt),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(dt),this._element.classList.add(ct,lt),this._element.style[n]="",D.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(D.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,p(this._element),this._element.classList.add(dt),this._element.classList.remove(ct,lt);const e=this._triggerArray.length;for(let t=0;t<e;t++){const e=this._triggerArray[t],i=n(e);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(dt),this._element.classList.add(ct),D.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}_isShown(t=this._element){return t.classList.contains(lt)}_getConfig(t){return(t={...rt,...X.getDataAttributes(this._element),...t}).toggle=Boolean(t.toggle),t.parent=r(t.parent),a(st,t,at),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=Y.find(pt,this._config.parent);Y.find(ht,this._config.parent).filter(e=>!t.includes(e)).forEach(t=>{const e=n(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))})}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach(t=>{e?t.classList.remove(ut):t.classList.add(ut),t.setAttribute("aria-expanded",e)})}static jQueryInterface(t){return this.each(function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const i=ft.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}D.on(document,"click.bs.collapse.data-api",ht,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=i(this);Y.find(e).forEach(t=>{ft.getOrCreateInstance(t,{toggle:!1}).toggle()})}),m(ft);var gt="top",mt="bottom",vt="right",bt="left",yt="auto",_t=[gt,mt,vt,bt],wt="start",xt="end",kt="clippingParents",Tt="viewport",Ct="popper",St="reference",$t=_t.reduce(function(t,e){return t.concat([e+"-"+wt,e+"-"+xt])},[]),Et=[].concat(_t,[yt]).reduce(function(t,e){return t.concat([e,e+"-"+wt,e+"-"+xt])},[]),At="beforeRead",Ot="afterRead",Pt="beforeMain",Lt="afterMain",Mt="beforeWrite",It="afterWrite",Dt=[At,"read",Ot,Pt,"main",Lt,Mt,"write",It];function jt(t){return t?(t.nodeName||"").toLowerCase():null}function Ht(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Nt(t){return t instanceof Ht(t).Element||t instanceof Element}function zt(t){return t instanceof Ht(t).HTMLElement||t instanceof HTMLElement}function Ft(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Ht(t).ShadowRoot||t instanceof ShadowRoot)}const Rt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];zt(o)&&jt(o)&&(Object.assign(o.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],o=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});zt(n)&&jt(n)&&(Object.assign(n.style,s),Object.keys(o).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};function Bt(t){return t.split("-")[0]}function Wt(t,e){var i=t.getBoundingClientRect();return{width:i.width/1,height:i.height/1,top:i.top/1,right:i.right/1,bottom:i.bottom/1,left:i.left/1,x:i.left/1,y:i.top/1}}function qt(t){var e=Wt(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Xt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Ft(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Yt(t){return Ht(t).getComputedStyle(t)}function Ut(t){return["table","td","th"].indexOf(jt(t))>=0}function Vt(t){return((Nt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Qt(t){return"html"===jt(t)?t:t.assignedSlot||t.parentNode||(Ft(t)?t.host:null)||Vt(t)}function Kt(t){return zt(t)&&"fixed"!==Yt(t).position?t.offsetParent:null}function Gt(t){for(var e=Ht(t),i=Kt(t);i&&Ut(i)&&"static"===Yt(i).position;)i=Kt(i);return i&&("html"===jt(i)||"body"===jt(i)&&"static"===Yt(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&zt(t)&&"fixed"===Yt(t).position)return null;for(var i=Qt(t);zt(i)&&["html","body"].indexOf(jt(i))<0;){var n=Yt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Zt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var Jt=Math.max,te=Math.min,ee=Math.round;function ie(t,e,i){return Jt(t,te(e,i))}function ne(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function oe(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}const se={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,o=t.options,s=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Bt(i.placement),l=Zt(a),c=[bt,vt].indexOf(a)>=0?"height":"width";if(s&&r){var d=function(t,e){return ne("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:oe(t,_t))}(o.padding,i),u=qt(s),p="y"===l?gt:bt,h="y"===l?mt:vt,f=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],m=Gt(s),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=f/2-g/2,y=d[p],_=v-u[c]-d[h],w=v/2-u[c]/2+b,x=ie(y,w,_),k=l;i.modifiersData[n]=((e={})[k]=x,e.centerOffset=x-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Xt(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function re(t){return t.split("-")[1]}var ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function le(t){var e,i=t.popper,n=t.popperRect,o=t.placement,s=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,u=!0===d?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:ee(ee(e*n)/n)||0,y:ee(ee(i*n)/n)||0}}(r):"function"==typeof d?d(r):r,p=u.x,h=void 0===p?0:p,f=u.y,g=void 0===f?0:f,m=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),b=bt,y=gt,_=window;if(c){var w=Gt(i),x="clientHeight",k="clientWidth";w===Ht(i)&&"static"!==Yt(w=Vt(i)).position&&"absolute"===a&&(x="scrollHeight",k="scrollWidth"),w=w,o!==gt&&(o!==bt&&o!==vt||s!==xt)||(y=mt,g-=w[x]-n.height,g*=l?1:-1),o!==bt&&(o!==gt&&o!==mt||s!==xt)||(b=vt,h-=w[k]-n.width,h*=l?1:-1)}var T,C=Object.assign({position:a},c&&ae);return l?Object.assign({},C,((T={})[y]=v?"0":"",T[b]=m?"0":"",T.transform=(_.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",T)):Object.assign({},C,((e={})[y]=v?g+"px":"",e[b]=m?h+"px":"",e.transform="",e))}const ce={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=void 0===n||n,s=i.adaptive,r=void 0===s||s,a=i.roundOffsets,l=void 0===a||a,c={placement:Bt(e.placement),variation:re(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,le(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,le(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var de={passive:!0};const ue={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,s=void 0===o||o,r=n.resize,a=void 0===r||r,l=Ht(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach(function(t){t.addEventListener("scroll",i.update,de)}),a&&l.addEventListener("resize",i.update,de),function(){s&&c.forEach(function(t){t.removeEventListener("scroll",i.update,de)}),a&&l.removeEventListener("resize",i.update,de)}},data:{}};var pe={left:"right",right:"left",bottom:"top",top:"bottom"};function he(t){return t.replace(/left|right|bottom|top/g,function(t){return pe[t]})}var fe={start:"end",end:"start"};function ge(t){return t.replace(/start|end/g,function(t){return fe[t]})}function me(t){var e=Ht(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ve(t){return Wt(Vt(t)).left+me(t).scrollLeft}function be(t){var e=Yt(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function ye(t,e){var i;void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(jt(e))>=0?e.ownerDocument.body:zt(e)&&be(e)?e:t(Qt(e))}(t),o=n===(null==(i=t.ownerDocument)?void 0:i.body),s=Ht(n),r=o?[s].concat(s.visualViewport||[],be(n)?n:[]):n,a=e.concat(r);return o?a:a.concat(ye(Qt(r)))}function _e(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function we(t,e){return e===Tt?_e(function(t){var e=Ht(t),i=Vt(t),n=e.visualViewport,o=i.clientWidth,s=i.clientHeight,r=0,a=0;return n&&(o=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:o,height:s,x:r+ve(t),y:a}}(t)):zt(e)?function(t){var e=Wt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):_e(function(t){var e,i=Vt(t),n=me(t),o=null==(e=t.ownerDocument)?void 0:e.body,s=Jt(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Jt(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+ve(t),l=-n.scrollTop;return"rtl"===Yt(o||i).direction&&(a+=Jt(i.clientWidth,o?o.clientWidth:0)-s),{width:s,height:r,x:a,y:l}}(Vt(t)))}function xe(t){var e,i=t.reference,n=t.element,o=t.placement,s=o?Bt(o):null,r=o?re(o):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case gt:e={x:a,y:i.y-n.height};break;case mt:e={x:a,y:i.y+i.height};break;case vt:e={x:i.x+i.width,y:l};break;case bt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=s?Zt(s):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case wt:e[c]=e[c]-(i[d]/2-n[d]/2);break;case xt:e[c]=e[c]+(i[d]/2-n[d]/2)}}return e}function ke(t,e){void 0===e&&(e={});var i=e,n=i.placement,o=void 0===n?t.placement:n,s=i.boundary,r=void 0===s?kt:s,a=i.rootBoundary,l=void 0===a?Tt:a,c=i.elementContext,d=void 0===c?Ct:c,u=i.altBoundary,p=void 0!==u&&u,h=i.padding,f=void 0===h?0:h,g=ne("number"!=typeof f?f:oe(f,_t)),m=d===Ct?St:Ct,v=t.rects.popper,b=t.elements[p?m:d],y=function(t,e,i){var n="clippingParents"===e?function(t){var e=ye(Qt(t)),i=["absolute","fixed"].indexOf(Yt(t).position)>=0&&zt(t)?Gt(t):t;return Nt(i)?e.filter(function(t){return Nt(t)&&Xt(t,i)&&"body"!==jt(t)}):[]}(t):[].concat(e),o=[].concat(n,[i]),s=o[0],r=o.reduce(function(e,i){var n=we(t,i);return e.top=Jt(n.top,e.top),e.right=te(n.right,e.right),e.bottom=te(n.bottom,e.bottom),e.left=Jt(n.left,e.left),e},we(t,s));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}(Nt(b)?b:b.contextElement||Vt(t.elements.popper),r,l),_=Wt(t.elements.reference),w=xe({reference:_,element:v,strategy:"absolute",placement:o}),x=_e(Object.assign({},v,w)),k=d===Ct?x:_,T={top:y.top-k.top+g.top,bottom:k.bottom-y.bottom+g.bottom,left:y.left-k.left+g.left,right:k.right-y.right+g.right},C=t.modifiersData.offset;if(d===Ct&&C){var S=C[o];Object.keys(T).forEach(function(t){var e=[vt,mt].indexOf(t)>=0?1:-1,i=[gt,mt].indexOf(t)>=0?"y":"x";T[t]+=S[i]*e})}return T}const Te={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=i.mainAxis,s=void 0===o||o,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,d=i.boundary,u=i.rootBoundary,p=i.altBoundary,h=i.flipVariations,f=void 0===h||h,g=i.allowedAutoPlacements,m=e.options.placement,v=Bt(m),b=l||(v!==m&&f?function(t){if(Bt(t)===yt)return[];var e=he(t);return[ge(t),e,ge(e)]}(m):[he(m)]),y=[m].concat(b).reduce(function(t,i){return t.concat(Bt(i)===yt?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,o=i.boundary,s=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Et:l,d=re(n),u=d?a?$t:$t.filter(function(t){return re(t)===d}):_t,p=u.filter(function(t){return c.indexOf(t)>=0});0===p.length&&(p=u);var h=p.reduce(function(e,i){return e[i]=ke(t,{placement:i,boundary:o,rootBoundary:s,padding:r})[Bt(i)],e},{});return Object.keys(h).sort(function(t,e){return h[t]-h[e]})}(e,{placement:i,boundary:d,rootBoundary:u,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)},[]),_=e.rects.reference,w=e.rects.popper,x=new Map,k=!0,T=y[0],C=0;C<y.length;C++){var S=y[C],$=Bt(S),E=re(S)===wt,A=[gt,mt].indexOf($)>=0,O=A?"width":"height",P=ke(e,{placement:S,boundary:d,rootBoundary:u,altBoundary:p,padding:c}),L=A?E?vt:bt:E?mt:gt;_[O]>w[O]&&(L=he(L));var M=he(L),I=[];if(s&&I.push(P[$]<=0),a&&I.push(P[L]<=0,P[M]<=0),I.every(function(t){return t})){T=S,k=!1;break}x.set(S,I)}if(k)for(var D=function(t){var e=y.find(function(e){var i=x.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return T=e,"break"},j=f?3:1;j>0&&"break"!==D(j);j--);e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ce(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Se(t){return[gt,vt,mt,bt].some(function(e){return t[e]>=0})}const $e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,o=e.rects.popper,s=e.modifiersData.preventOverflow,r=ke(e,{elementContext:"reference"}),a=ke(e,{altBoundary:!0}),l=Ce(r,n),c=Ce(a,o,s),d=Se(l),u=Se(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}},Ee={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,o=i.offset,s=void 0===o?[0,0]:o,r=Et.reduce(function(t,i){return t[i]=function(t,e,i){var n=Bt(t),o=[bt,gt].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=s[0],a=s[1];return r=r||0,a=(a||0)*o,[bt,vt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,s),t},{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},Ae={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=xe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Oe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,o=i.mainAxis,s=void 0===o||o,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,u=i.padding,p=i.tether,h=void 0===p||p,f=i.tetherOffset,g=void 0===f?0:f,m=ke(e,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),v=Bt(e.placement),b=re(e.placement),y=!b,_=Zt(v),w="x"===_?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,T=e.rects.popper,C="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,S={x:0,y:0};if(x){if(s||a){var $="y"===_?gt:bt,E="y"===_?mt:vt,A="y"===_?"height":"width",O=x[_],P=x[_]+m[$],L=x[_]-m[E],M=h?-T[A]/2:0,I=b===wt?k[A]:T[A],D=b===wt?-T[A]:-k[A],j=e.elements.arrow,H=h&&j?qt(j):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=N[$],F=N[E],R=ie(0,k[A],H[A]),B=y?k[A]/2-M-R-z-C:I-R-z-C,W=y?-k[A]/2+M+R+F+C:D+R+F+C,q=e.elements.arrow&&Gt(e.elements.arrow),X=q?"y"===_?q.clientTop||0:q.clientLeft||0:0,Y=e.modifiersData.offset?e.modifiersData.offset[e.placement][_]:0,U=x[_]+B-Y-X,V=x[_]+W-Y;if(s){var Q=ie(h?te(P,U):P,O,h?Jt(L,V):L);x[_]=Q,S[_]=Q-O}if(a){var K="x"===_?gt:bt,G="x"===_?mt:vt,Z=x[w],J=Z+m[K],tt=Z-m[G],et=ie(h?te(J,U):J,Z,h?Jt(tt,V):tt);x[w]=et,S[w]=et-Z}}e.modifiersData[n]=S}},requiresIfExists:["offset"]};function Pe(t,e,i){void 0===i&&(i=!1);var n=zt(e);zt(e)&&function(t){var e=t.getBoundingClientRect();e.width,t.offsetWidth,e.height,t.offsetHeight}(e);var o,s,r=Vt(e),a=Wt(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&(("body"!==jt(e)||be(r))&&(l=(o=e)!==Ht(o)&&zt(o)?{scrollLeft:(s=o).scrollLeft,scrollTop:s.scrollTop}:me(o)),zt(e)?((c=Wt(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=ve(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Le(t){var e=new Map,i=new Set,n=[];return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||function t(o){i.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(n){if(!i.has(n)){var o=e.get(n);o&&t(o)}}),n.push(o)}(t)}),n}var Me={placement:"bottom",modifiers:[],strategy:"absolute"};function Ie(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function De(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,o=e.defaultOptions,s=void 0===o?Me:o;return function(t,e,i){void 0===i&&(i=s);var o,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Me,s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},s,a.options,o),a.scrollParents={reference:Nt(t)?ye(t):t.contextElement?ye(t.contextElement):[],popper:ye(e)};var r,c,p=function(t){var e=Le(t);return Dt.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}((r=[].concat(n,a.options.modifiers),c=r.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),Object.keys(c).map(function(t){return c[t]})));return a.orderedModifiers=p.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,o=t.effect;if("function"==typeof o){var s=o({state:a,name:e,instance:d,options:n});l.push(s||function(){})}}),d.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(Ie(e,i)){a.rects={reference:Pe(e,Gt(i),"fixed"===a.options.strategy),popper:qt(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],s=o.fn,r=o.options,l=void 0===r?{}:r,u=o.name;"function"==typeof s&&(a=s({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(t){d.forceUpdate(),t(a)})},function(){return r||(r=new Promise(function(t){Promise.resolve().then(function(){r=void 0,t(o())})})),r}),destroy:function(){u(),c=!0}};if(!Ie(t,e))return d;function u(){l.forEach(function(t){return t()}),l=[]}return d.setOptions(i).then(function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)}),d}}var je=De(),He=De({defaultModifiers:[ue,Ae,ce,Rt]}),Ne=De({defaultModifiers:[ue,Ae,ce,Rt,Ee,Te,Oe,se,$e]});const ze=Object.freeze({__proto__:null,popperGenerator:De,detectOverflow:ke,createPopperBase:je,createPopper:Ne,createPopperLite:He,top:gt,bottom:mt,right:vt,left:bt,auto:yt,basePlacements:_t,start:wt,end:xt,clippingParents:kt,viewport:Tt,popper:Ct,reference:St,variationPlacements:$t,placements:Et,beforeRead:At,read:"read",afterRead:Ot,beforeMain:Pt,main:"main",afterMain:Lt,beforeWrite:Mt,write:"write",afterWrite:It,modifierPhases:Dt,applyStyles:Rt,arrow:se,computeStyles:ce,eventListeners:ue,flip:Te,hide:$e,offset:Ee,popperOffsets:Ae,preventOverflow:Oe}),Fe="dropdown",Re="Escape",Be="Space",We="ArrowUp",qe="ArrowDown",Xe=new RegExp("ArrowUp|ArrowDown|Escape"),Ye="click.bs.dropdown.data-api",Ue="keydown.bs.dropdown.data-api",Ve="show",Qe='[data-bs-toggle="dropdown"]',Ke=".dropdown-menu",Ge=g()?"top-end":"top-start",Ze=g()?"top-start":"top-end",Je=g()?"bottom-end":"bottom-start",ti=g()?"bottom-start":"bottom-end",ei=g()?"left-start":"right-start",ii=g()?"right-start":"left-start",ni={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},oi={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class si extends N{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return ni}static get DefaultType(){return oi}static get NAME(){return Fe}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(D.trigger(this._element,"show.bs.dropdown",t).defaultPrevented)return;const e=si.getParentFromElement(this._element);this._inNavbar?X.setDataAttribute(this._menu,"popper","none"):this._createPopper(e),"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&[].concat(...document.body.children).forEach(t=>D.on(t,"mouseover",u)),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ve),this._element.classList.add(Ve),D.trigger(this._element,"shown.bs.dropdown",t)}hide(){if(c(this._element)||!this._isShown(this._menu))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){D.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>D.off(t,"mouseover",u)),this._popper&&this._popper.destroy(),this._menu.classList.remove(Ve),this._element.classList.remove(Ve),this._element.setAttribute("aria-expanded","false"),X.removeDataAttribute(this._menu,"popper"),D.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t={...this.constructor.Default,...X.getDataAttributes(this._element),...t},a(Fe,t,this.constructor.DefaultType),"object"==typeof t.reference&&!s(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Fe.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===ze)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:s(this._config.reference)?e=r(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find(t=>"applyStyles"===t.name&&!1===t.enabled);this._popper=Ne(e,this._menu,i),n&&X.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(Ve)}_getMenuElement(){return Y.next(this._element,Ke)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return ei;if(t.classList.contains("dropstart"))return ii;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Ze:Ge:e?ti:Je}_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"static"===this._config.display&&(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(l);i.length&&y(i,e,t===qe,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=si.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=Y.find(Qe);for(let i=0,n=e.length;i<n;i++){const n=si.getInstance(e[i]);if(!n||!1===n._config.autoClose)continue;if(!n._isShown())continue;const o={relatedTarget:n._element};if(t){const e=t.composedPath(),i=e.includes(n._menu);if(e.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if(n._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;"click"===t.type&&(o.clickEvent=t)}n._completeHide(o)}}static getParentFromElement(t){return n(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===Be||t.key!==Re&&(t.key!==qe&&t.key!==We||t.target.closest(Ke)):!Xe.test(t.key))return;const e=this.classList.contains(Ve);if(!e&&t.key===Re)return;if(t.preventDefault(),t.stopPropagation(),c(this))return;const i=this.matches(Qe)?this:Y.prev(this,Qe)[0],n=si.getOrCreateInstance(i);if(t.key!==Re)return t.key===We||t.key===qe?(e||n.show(),void n._selectMenuItem(t)):void(e&&t.key!==Be||si.clearMenus());n.hide()}}D.on(document,Ue,Qe,si.dataApiKeydownHandler),D.on(document,Ue,Ke,si.dataApiKeydownHandler),D.on(document,Ye,si.clearMenus),D.on(document,"keyup.bs.dropdown.data-api",si.clearMenus),D.on(document,Ye,Qe,function(t){t.preventDefault(),si.getOrCreateInstance(this).toggle()}),m(si);const ri=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ai=".sticky-top";class li{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,"paddingRight",e=>e+t),this._setElementAttributes(ri,"paddingRight",e=>e+t),this._setElementAttributes(ai,"marginRight",e=>e-t)}_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 o=window.getComputedStyle(t)[e];t.style[e]=`${i(Number.parseFloat(o))}px`})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(ri,"paddingRight"),this._resetElementAttributes(ai,"marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&X.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=X.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(X.removeDataAttribute(t,e),t.style[e]=i)})}_applyManipulationCallback(t,e){s(t)?e(t):Y.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const ci={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},di={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},ui="show",pi="mousedown.bs.backdrop";class hi{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&p(this._getElement()),this._getElement().classList.add(ui),this._emulateAnimation(()=>{v(t)})):v(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(ui),this._emulateAnimation(()=>{this.dispose(),v(t)})):v(t)}_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}_getConfig(t){return(t={...ci,..."object"==typeof t?t:{}}).rootElement=r(t.rootElement),a("backdrop",t,di),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),D.on(this._getElement(),pi,()=>{v(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(D.off(this._element,pi),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){b(t,this._getElement(),this._config.isAnimated)}}const fi={trapElement:null,autofocus:!0},gi={trapElement:"element",autofocus:"boolean"},mi=".bs.focustrap",vi="backward";class bi{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),D.off(document,mi),D.on(document,"focusin.bs.focustrap",t=>this._handleFocusin(t)),D.on(document,"keydown.tab.bs.focustrap",t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,D.off(document,mi))}_handleFocusin(t){const{target:e}=t,{trapElement:i}=this._config;if(e===document||e===i||i.contains(e))return;const n=Y.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===vi?n[n.length-1].focus():n[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?vi:"forward")}_getConfig(t){return t={...fi,..."object"==typeof t?t:{}},a("focustrap",t,gi),t}}const yi="modal",_i="Escape",wi={backdrop:!0,keyboard:!0,focus:!0},xi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},ki="hidden.bs.modal",Ti="show.bs.modal",Ci="resize.bs.modal",Si="click.dismiss.bs.modal",$i="keydown.dismiss.bs.modal",Ei="mousedown.dismiss.bs.modal",Ai="modal-open",Oi="show",Pi="modal-static";class Li extends N{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=Y.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new li}static get Default(){return wi}static get NAME(){return yi}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||D.trigger(this._element,Ti,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Ai),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),D.on(this._dialog,Ei,()=>{D.one(this._element,"mouseup.dismiss.bs.modal",t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)})}),this._showBackdrop(()=>this._showElement(t)))}hide(){if(!this._isShown||this._isTransitioning)return;if(D.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(Oi),D.off(this._element,Si),D.off(this._dialog,Ei),this._queueCallback(()=>this._hideModal(),this._element,t)}dispose(){[window,this._dialog].forEach(t=>D.off(t,".bs.modal")),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new hi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new bi({trapElement:this._element})}_getConfig(t){return t={...wi,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(yi,t,xi),t}_showElement(t){const e=this._isAnimated(),i=Y.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),e&&p(this._element),this._element.classList.add(Oi),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,D.trigger(this._element,"shown.bs.modal",{relatedTarget:t})},this._dialog,e)}_setEscapeEvent(){this._isShown?D.on(this._element,$i,t=>{this._config.keyboard&&t.key===_i?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==_i||this._triggerBackdropTransition()}):D.off(this._element,$i)}_setResizeEvent(){this._isShown?D.on(window,Ci,()=>this._adjustDialog()):D.off(window,Ci)}_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(Ai),this._resetAdjustments(),this._scrollBar.reset(),D.trigger(this._element,ki)})}_showBackdrop(t){D.on(this._element,Si,t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())}),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(D.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:t,scrollHeight:e,style:i}=this._element,n=e>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||t.contains(Pi)||(n||(i.overflowY="hidden"),t.add(Pi),this._queueCallback(()=>{t.remove(Pi),n||this._queueCallback(()=>{i.overflowY=""},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;(!i&&t&&!g()||i&&!t&&g())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!g()||!i&&t&&g())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=Li.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}})}}D.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(t){const e=n(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),D.one(e,Ti,t=>{t.defaultPrevented||D.one(e,ki,()=>{l(this)&&this.focus()})});const i=Y.findOne(".modal.show");i&&Li.getInstance(i).hide(),Li.getOrCreateInstance(e).toggle(this)}),z(Li),m(Li);const Mi="offcanvas",Ii={backdrop:!0,keyboard:!0,scroll:!1},Di={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},ji="show",Hi=".offcanvas.show",Ni="hidden.bs.offcanvas";class zi extends N{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Mi}static get Default(){return Ii}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||D.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new li).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(ji),this._queueCallback(()=>{this._config.scroll||this._focustrap.activate(),D.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(D.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(ji),this._backdrop.hide(),this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new li).reset(),D.trigger(this._element,Ni)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t={...Ii,...X.getDataAttributes(this._element),..."object"==typeof t?t:{}},a(Mi,t,Di),t}_initializeBackDrop(){return new hi({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new bi({trapElement:this._element})}_addEventListeners(){D.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()})}static jQueryInterface(t){return this.each(function(){const e=zi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}D.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(t){const e=n(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this))return;D.one(e,Ni,()=>{l(this)&&this.focus()});const i=Y.findOne(Hi);i&&i!==e&&zi.getInstance(i).hide(),zi.getOrCreateInstance(e).toggle(this)}),D.on(window,"load.bs.offcanvas.data-api",()=>Y.find(Hi).forEach(t=>zi.getOrCreateInstance(t).show())),z(zi),m(zi);const Fi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ri=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Bi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Wi=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!Fi.has(i)||Boolean(Ri.test(t.nodeValue)||Bi.test(t.nodeValue));const n=e.filter(t=>t instanceof RegExp);for(let t=0,e=n.length;t<e;t++)if(n[t].test(i))return!0;return!1};function qi(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"),o=[].concat(...n.body.querySelectorAll("*"));for(let t=0,i=o.length;t<i;t++){const i=o[t],n=i.nodeName.toLowerCase();if(!Object.keys(e).includes(n)){i.remove();continue}const s=[].concat(...i.attributes),r=[].concat(e["*"]||[],e[n]||[]);s.forEach(t=>{Wi(t,r)||i.removeAttribute(t.nodeName)})}return n.body.innerHTML}const Xi="tooltip",Yi=new Set(["sanitize","allowList","sanitizeFn"]),Ui={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Vi={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},Qi={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},Ki={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Gi="fade",Zi="show",Ji="show",tn="out",en=".tooltip-inner",nn=".modal",on="hide.bs.modal",sn="hover",rn="focus";class an extends N{constructor(t,e){if(void 0===ze)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Qi}static get NAME(){return Xi}static get Event(){return Ki}static get DefaultType(){return Ui}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(Zi))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),D.off(this._element.closest(nn),on,this._hideModalHandler),this.tip&&this.tip.remove(),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=D.trigger(this._element,this.constructor.Event.SHOW),e=d(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(en).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),o=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME);n.setAttribute("id",o),this._element.setAttribute("aria-describedby",o),this._config.animation&&n.classList.add(Gi);const s="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,r=this._getAttachment(s);this._addAttachmentClass(r);const{container:a}=this._config;H.set(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(n),D.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Ne(this._element,n,this._getPopperConfig(r)),n.classList.add(Zi);const l=this._resolvePossibleFunction(this._config.customClass);l&&n.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>{D.on(t,"mouseover",u)});const c=this.tip.classList.contains(Gi);this._queueCallback(()=>{const t=this._hoverState;this._hoverState=null,D.trigger(this._element,this.constructor.Event.SHOWN),t===tn&&this._leave(null,this)},this.tip,c)}hide(){if(!this._popper)return;const t=this.getTipElement();if(D.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(Zi),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach(t=>D.off(t,"mouseover",u)),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(Gi);this._queueCallback(()=>{this._isWithActiveTrigger()||(this._hoverState!==Ji&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),D.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())},this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(Gi,Zi),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),en)}_sanitizeAndSetContent(t,e,i){const n=Y.findOne(i,t);e||!n?this.setElementContent(n,e):n.remove()}setElementContent(t,e){if(null!==t)return s(e)?(e=r(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=qi(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_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:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Vi[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach(t=>{if("click"===t)D.on(this._element,this.constructor.Event.CLICK,this._config.selector,t=>this.toggle(t));else if("manual"!==t){const e=t===sn?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=t===sn?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;D.on(this._element,e,this._config.selector,t=>this._enter(t)),D.on(this._element,i,this._config.selector,t=>this._leave(t))}}),this._hideModalHandler=(()=>{this._element&&this.hide()}),D.on(this._element.closest(nn),on,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?rn:sn]=!0),e.getTipElement().classList.contains(Zi)||e._hoverState===Ji?e._hoverState=Ji:(clearTimeout(e._timeout),e._hoverState=Ji,e._config.delay&&e._config.delay.show?e._timeout=setTimeout(()=>{e._hoverState===Ji&&e.show()},e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?rn:sn]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=tn,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout(()=>{e._hoverState===tn&&e.hide()},e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=X.getDataAttributes(this._element);return Object.keys(e).forEach(t=>{Yi.has(t)&&delete e[t]}),(t={...this.constructor.Default,...e,..."object"==typeof t&&t?t:{}}).container=!1===t.container?document.body:r(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()),a(Xi,t,this.constructor.DefaultType),t.sanitize&&(t.template=qi(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=t.getAttribute("class").match(e);null!==i&&i.length>0&&i.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each(function(){const e=an.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}m(an);const ln={...an.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},cn={...an.DefaultType,content:"(string|element|function)"},dn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class un extends an{static get Default(){return ln}static get NAME(){return"popover"}static get Event(){return dn}static get DefaultType(){return cn}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(t,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each(function(){const e=un.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}m(un);const pn="scrollspy",hn={offset:10,method:"auto",target:""},fn={offset:"number",method:"string",target:"(string|element)"},gn="active",mn=".nav-link, .list-group-item, .dropdown-item",vn="position";class bn extends N{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,D.on(this._scrollElement,"scroll.bs.scrollspy",()=>this._process()),this.refresh(),this._process()}static get Default(){return hn}static get NAME(){return pn}refresh(){const t=this._scrollElement===this._scrollElement.window?"offset":vn,e="auto"===this._config.method?t:this._config.method,n=e===vn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Y.find(mn,this._config.target).map(t=>{const o=i(t),s=o?Y.findOne(o):null;if(s){const t=s.getBoundingClientRect();if(t.width||t.height)return[X[e](s).top+n,o]}return null}).filter(t=>t).sort((t,e)=>t[0]-e[0]).forEach(t=>{this._offsets.push(t[0]),this._targets.push(t[1])})}dispose(){D.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){return(t={...hn,...X.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}}).target=r(t.target)||document.documentElement,a(pn,t,fn),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}_activate(t){this._activeTarget=t,this._clear();const e=mn.split(",").map(e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`),i=Y.findOne(e.join(","),this._config.target);i.classList.add(gn),i.classList.contains("dropdown-item")?Y.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(gn):Y.parents(i,".nav, .list-group").forEach(t=>{Y.prev(t,".nav-link, .list-group-item").forEach(t=>t.classList.add(gn)),Y.prev(t,".nav-item").forEach(t=>{Y.children(t,".nav-link").forEach(t=>t.classList.add(gn))})}),D.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){Y.find(mn,this._config.target).filter(t=>t.classList.contains(gn)).forEach(t=>t.classList.remove(gn))}static jQueryInterface(t){return this.each(function(){const e=bn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}D.on(window,"load.bs.scrollspy.data-api",()=>{Y.find('[data-bs-spy="scroll"]').forEach(t=>new bn(t))}),m(bn);const yn="active",_n="fade",wn="show",xn=".active",kn=":scope > li > .active";class Tn extends N{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(yn))return;let t;const e=n(this._element),i=this._element.closest(".nav, .list-group");if(i){const e="UL"===i.nodeName||"OL"===i.nodeName?kn:xn;t=(t=Y.find(e,i))[t.length-1]}const o=t?D.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(D.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==o&&o.defaultPrevented)return;this._activate(this._element,i);const s=()=>{D.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),D.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,s):s()}_activate(t,e,i){const n=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?Y.children(e,xn):Y.find(kn,e))[0],o=i&&n&&n.classList.contains(_n),s=()=>this._transitionComplete(t,n,i);n&&o?(n.classList.remove(wn),this._queueCallback(s,t,!0)):s()}_transitionComplete(t,e,i){if(e){e.classList.remove(yn);const t=Y.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove(yn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(yn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),p(t),t.classList.contains(_n)&&t.classList.add(wn);let n=t.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&Y.find(".dropdown-toggle",e).forEach(t=>t.classList.add(yn)),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each(function(){const e=Tn.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}D.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this)||Tn.getOrCreateInstance(this).show()}),m(Tn);const Cn="toast",Sn="hide",$n="show",En="showing",An={animation:"boolean",autohide:"boolean",delay:"number"},On={animation:!0,autohide:!0,delay:5e3};class Pn extends N{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return An}static get Default(){return On}static get NAME(){return Cn}show(){D.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Sn),p(this._element),this._element.classList.add($n),this._element.classList.add(En),this._queueCallback(()=>{this._element.classList.remove(En),D.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this._element.classList.contains($n)&&(D.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(En),this._queueCallback(()=>{this._element.classList.add(Sn),this._element.classList.remove(En),this._element.classList.remove($n),D.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains($n)&&this._element.classList.remove($n),super.dispose()}_getConfig(t){return t={...On,...X.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},a(Cn,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){D.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),D.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),D.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),D.on(this._element,"focusout.bs.toast",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Pn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return z(Pn),m(Pn),{Alert:F,Button:B,Carousel:ot,Collapse:ft,Dropdown:si,Modal:Li,Offcanvas:zi,Popover:un,ScrollSpy:bn,Tab:Tn,Toast:Pn,Tooltip:an}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){function e(t){return r.raw?t:encodeURIComponent(t)}function i(t){return r.raw?t:decodeURIComponent(t)}function n(t){return e(r.json?JSON.stringify(t):String(t))}function o(e,i){var n=r.raw?e:function(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(s," ")),r.json?JSON.parse(t):t}catch(t){}}(e);return t.isFunction(i)?i(n):n}var s=/\+/g,r=t.cookie=function(s,a,l){if(arguments.length>1&&!t.isFunction(a)){if("number"==typeof(l=t.extend({},r.defaults,l)).expires){var c=l.expires,d=l.expires=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*c)}return document.cookie=[e(s),"=",n(a),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var u=s?void 0:{},p=document.cookie?document.cookie.split("; "):[],h=0,f=p.length;h<f;h++){var g=p[h].split("="),m=i(g.shift()),v=g.join("=");if(s===m){u=o(v,a);break}s||void 0===(v=o(v))||(u[m]=v)}return u};r.defaults={},t.removeCookie=function(e,i){return t.cookie(e,"",t.extend({},i,{expires:-1})),!t.cookie(e)}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(t,e,i){var n=g[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:t<0?0:n.max<t?n.max:t)}function i(t){var e=h(),i=e._rgba=[];return t=t.toLowerCase(),b(p,function(n,o){var s=(s=o.re.exec(t))&&o.parse(s);o=o.space||"rgba";if(s)return s=e[o](s),e[f[o].cache]=s[f[o].cache],i=e._rgba=s._rgba,!1}),i.length?("0,0,0,0"===i.join()&&l.extend(i,d.transparent),e):d[t]}function n(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function o(e){var i,n,o=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(o&&o.length&&o[0]&&o[o[0]])for(n=o.length;n--;)"string"==typeof o[i=o[n]]&&(s[t.camelCase(i)]=o[i]);else for(i in o)"string"==typeof o[i]&&(s[i]=o[i]);return s}function s(e,i,n,o){return t.isPlainObject(e)&&(e=(i=e).effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(o=i,n=null,i={}),"number"!=typeof i&&!t.fx.speeds[i]||(o=n,n=i,i={}),t.isFunction(n)&&(o=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=o||i.complete,e}function r(e){return!e||"number"==typeof e||t.fx.speeds[e]||"string"==typeof e&&!t.effects.effect[e]||t.isFunction(e)||"object"==typeof e&&!e.effect}function a(t,e){var i=e.outerWidth();e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}t.ui=t.ui||{},t.ui.version="1.12.1";var l,c,d,u,p,h,f,g,m,v,b,y,_,w,x,k,T,C,S,$,E,A="ui-effects-",O="ui-effects-style",P="ui-effects-animated",L=t;t.effects={effect:{}},u=/^([\-+])=\s*(\d+\.?\d*)/,p=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],h=(l=L).Color=function(t,e,i,n){return new l.Color.fn.parse(t,e,i,n)},f={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},g={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},m=h.support={},v=l("<p>")[0],b=l.each,v.style.cssText="background-color:rgba(1,1,1,.5)",m.rgba=-1<v.style.backgroundColor.indexOf("rgba"),b(f,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),h.fn=l.extend(h.prototype,{parse:function(t,n,o,s){if(t===c)return this._rgba=[null,null,null,null],this;(t.jquery||t.nodeType)&&(t=l(t).css(n),n=c);var r=this,a=l.type(t),u=this._rgba=[];return n!==c&&(t=[t,n,o,s],a="array"),"string"===a?this.parse(i(t)||d._default):"array"===a?(b(f.rgba.props,function(i,n){u[n.idx]=e(t[n.idx],n)}),this):"object"===a?(b(f,t instanceof h?function(e,i){t[i.cache]&&(r[i.cache]=t[i.cache].slice())}:function(i,n){var o=n.cache;b(n.props,function(i,s){if(!r[o]&&n.to){if("alpha"===i||null==t[i])return;r[o]=n.to(r._rgba)}r[o][s.idx]=e(t[i],s,!0)}),r[o]&&l.inArray(null,r[o].slice(0,3))<0&&(r[o][3]=1,n.from&&(r._rgba=n.from(r[o])))}),this):void 0},is:function(t){var e=h(t),i=!0,n=this;return b(f,function(t,o){var s,r=e[o.cache];return r&&(s=n[o.cache]||o.to&&o.to(n._rgba)||[],b(o.props,function(t,e){if(null!=r[e.idx])return i=r[e.idx]===s[e.idx]})),i}),i},_space:function(){var t=[],e=this;return b(f,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,i){var n=(a=h(t))._space(),o=f[n],s=(t=0===this.alpha()?h("transparent"):this)[o.cache]||o.to(t._rgba),r=s.slice(),a=a[o.cache];return b(o.props,function(t,n){var o=n.idx,l=s[o],c=a[o],d=g[n.type]||{};null!==c&&(null===l?r[o]=c:(d.mod&&(d.mod/2<c-l?l+=d.mod:d.mod/2<l-c&&(l-=d.mod)),r[o]=e((c-l)*i+l,n)))}),this[n](r)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),n=h(t)._rgba;return h(l.map(e,function(t,e){return(1-i)*n[e]+i*t}))},toRgbaString:function(){var t="rgba(",e=l.map(this._rgba,function(t,e){return null==t?2<e?1:0:t});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=l.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+l.map(e,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),h.fn.parse.prototype=h.fn,f.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,i=t[1]/255,n=t[2]/255,o=t[3],s=Math.max(e,i,n),r=Math.min(e,i,n),a=s-r,l=(t=.5*(l=s+r),i=r===s?0:e===s?60*(i-n)/a+360:i===s?60*(n-e)/a+120:60*(e-i)/a+240,0==a?0:t<=.5?a/l:a/(2-l));return[Math.round(i)%360,l,t,null==o?1:o]},f.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],o=t[2];t=t[3],o=2*o-(i=o<=.5?o*(1+i):o+i-o*i);return[Math.round(255*n(o,i,e+1/3)),Math.round(255*n(o,i,e)),Math.round(255*n(o,i,e-1/3)),t]},b(f,function(t,i){var n=i.props,o=i.cache,s=i.to,r=i.from;h.fn[t]=function(t){if(s&&!this[o]&&(this[o]=s(this._rgba)),t===c)return this[o].slice();var i,a=l.type(t),d="array"===a||"object"===a?t:arguments,u=this[o].slice();return b(n,function(t,i){null==(t=d["object"===a?t:i.idx])&&(t=u[i.idx]),u[i.idx]=e(t,i)}),r?((i=h(r(u)))[o]=u,i):h(u)},b(n,function(e,i){h.fn[e]||(h.fn[e]=function(n){var o,s=l.type(n),r="alpha"===e?this._hsla?"hsla":"rgba":t,a=this[r](),c=a[i.idx];return"undefined"===s?c:("function"===s&&(n=n.call(this,c),s=l.type(n)),null==n&&i.empty?this:("string"===s&&(o=u.exec(n))&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1)),a[i.idx]=n,this[r](a)))})})}),h.hook=function(t){t=t.split(" "),b(t,function(t,e){l.cssHooks[e]={set:function(t,n){var o,s,r="";if("transparent"!==n&&("string"!==l.type(n)||(o=i(n)))){if(n=h(o||n),!m.rgba&&1!==n._rgba[3]){for(s="backgroundColor"===e?t.parentNode:t;(""===r||"transparent"===r)&&s&&s.style;)try{r=l.css(s,"backgroundColor"),s=s.parentNode}catch(t){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{t.style[e]=n}catch(t){}}},l.fx.step[e]=function(t){t.colorInit||(t.start=h(t.elem,e),t.end=h(t.end),t.colorInit=!0),l.cssHooks[e].set(t.elem,t.start.transition(t.end,t.pos))}})},h.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),l.cssHooks.borderColor={expand:function(t){var e={};return b(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},d=l.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},x=["add","remove","toggle"],k={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(L.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,i,n,s){var r=t.speed(i,n,s);return this.queue(function(){var i=t(this),n=i.attr("class")||"",s=(s=r.children?i.find("*").addBack():i).map(function(){return{el:t(this),start:o(this)}}),a=function(){t.each(x,function(t,n){e[n]&&i[n+"Class"](e[n])})};a(),s=s.map(function(){return this.end=o(this.el[0]),this.diff=function(e,i){var n,o,s={};for(n in i)o=i[n],e[n]!==o&&(k[n]||!t.fx.step[n]&&isNaN(parseFloat(o))||(s[n]=o));return s}(this.start,this.end),this}),i.attr("class",n),s=s.map(function(){var e=this,i=t.Deferred(),n=t.extend({},r,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,s.get()).done(function(){a(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),r.complete.call(i[0])})})},t.fn.extend({addClass:(w=t.fn.addClass,function(e,i,n,o){return i?t.effects.animateClass.call(this,{add:e},i,n,o):w.apply(this,arguments)}),removeClass:(_=t.fn.removeClass,function(e,i,n,o){return 1<arguments.length?t.effects.animateClass.call(this,{remove:e},i,n,o):_.apply(this,arguments)}),toggleClass:(y=t.fn.toggleClass,function(e,i,n,o,s){return"boolean"==typeof i||void 0===i?n?t.effects.animateClass.call(this,i?{add:e}:{remove:e},n,o,s):y.apply(this,arguments):t.effects.animateClass.call(this,{toggle:e},i,n,o)}),switchClass:function(e,i,n,o,s){return t.effects.animateClass.call(this,{add:i,remove:e},n,o,s)}}),t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=(T=t.expr.filters.animated,function(e){return!!t(e).data(P)||T(e)})),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var i=0,n=e.length;i<n;i++)null!==e[i]&&t.data(A+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,o=e.length;n<o;n++)null!==e[n]&&(i=t.data(A+e[n]),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:e.width(),height:e.height()},s=document.activeElement;try{s.id}catch(n){s=document.body}return e.wrap(n),e[0]!==s&&!t.contains(e[0],s)||t(s).trigger("focus"),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(o),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),e[0]!==i&&!t.contains(e[0],i)||t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,n){return n||(n=i,i="effect"),t.effects.effect[e]=n,t.effects.effect[e].mode=i,n},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(e||100)/100:1;e="vertical"!==i?(e||100)/100:1;return{height:t.height()*e,width:t.width()*n,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*n}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();1<e&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(O,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(O)||"",t.removeData(O)},mode:function(t,e){return t=t.is(":hidden"),"toggle"===e&&(e=t?"show":"hide"),(t?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(e){var i,n=e.css("position"),o=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(A+"placeholder",i)),e.css({position:n,left:o.left,top:o.top}),i},removePlaceholder:function(t){var e=A+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,n,o){return o=o||{},t.each(i,function(t,i){var s=e.cssUnit(i);0<s[0]&&(o[i]=s[0]*n+s[1])}),o}}),t.fn.extend({effect:function(){function e(e){var i=t(this),n=t.effects.mode(i,d)||r;i.data(P,!0),u.push(n),r&&("show"===n||n===r&&"hide"===n)&&i.show(),r&&"none"===n||t.effects.saveStyle(i),t.isFunction(e)&&e()}function i(e){function i(){t.isFunction(c)&&c.call(s[0]),t.isFunction(e)&&e()}var s=t(this);n.mode=u.shift(),!1===t.uiBackCompat||r?"none"===n.mode?(s[d](),i()):o.call(s[0],n,function(){s.removeData(P),t.effects.cleanUp(s),"hide"===n.mode&&s.hide(),i()}):(s.is(":hidden")?"hide"===d:"show"===d)?(s[d](),i()):o.call(s[0],n,i)}var n=s.apply(this,arguments),o=t.effects.effect[n.effect],r=o.mode,a=n.queue,l=a||"fx",c=n.complete,d=n.mode,u=[];return t.fx.off||!o?d?this[d](n.duration,c):this.each(function(){c&&c.call(this)}):!1===a?this.each(e).each(i):this.queue(l,e).queue(l,i)},show:($=t.fn.show,function(t){if(r(t))return $.apply(this,arguments);var e=s.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}),hide:(S=t.fn.hide,function(t){if(r(t))return S.apply(this,arguments);var e=s.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}),toggle:(C=t.fn.toggle,function(t){if(r(t)||"boolean"==typeof t)return C.apply(this,arguments);var e=s.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(n=[parseFloat(i),e])}),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):a(this.css("clip"),this)},transfer:function(e,i){var n=t(this),o="fixed"===(l=t(e.to)).css("position"),s=t("body"),r=o?s.scrollTop():0,a=o?s.scrollLeft():0,l=(s={top:(s=l.offset()).top-r,left:s.left-a,height:l.innerHeight(),width:l.innerWidth()},n.offset()),c=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:l.top-r,left:l.left-a,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(s,e.duration,e.easing,function(){c.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=a(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})},E={},t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){E[e]=function(e){return Math.pow(e,t+2)}}),t.extend(E,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(E,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?i(2*t)/2:1-i(-2*t+2)/2}}),t.effects,t.effects.define("bounce",function(e,i){var n,o,s=t(this),r="hide"===(u=e.mode),a="show"===u,l=e.direction||"up",c=e.distance,d=e.times||5,u=2*d+(a||r?1:0),p=e.duration/u,h=e.easing,f="up"===l||"down"===l?"top":"left",g="up"===l||"left"===l,m=0;e=s.queue().length;for(t.effects.createPlaceholder(s),l=s.css(f),c=c||s["top"==f?"outerHeight":"outerWidth"]()/3,a&&((o={opacity:1})[f]=l,s.css("opacity",0).css(f,g?2*-c:2*c).animate(o,p,h)),r&&(c/=Math.pow(2,d-1)),(o={})[f]=l;m<d;m++)(n={})[f]=(g?"-=":"+=")+c,s.animate(n,p,h).animate(o,p,h),c=r?2*c:c/2;r&&((n={opacity:0})[f]=(g?"-=":"+=")+c,s.animate(n,p,h)),s.queue(i),t.effects.unshift(s,e,1+u)})}),"function"!=typeof window.initCookieConsent&&(window.initCookieConsent=function(t){var e,i,n,o,s,r,a,l,c,d,u,p,h,f,g,m,v={current_lang:"en",auto_language:null,autorun:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:window.location.hostname,cookie_path:"/",cookie_same_site:"Lax",use_rfc_cookie:!1,autoclear_cookies:!0,revision:0,script_selector:"data-cookiecategory"},b={},y={},_=!1,w=!1,x=!1,k=!1,T=!1,C=!0,S=!1,$=null,E=[],A=[],O=!1,P=[],L=[],M=[],I=[],D=[],j=document.documentElement,H=function(t,e){return Object.prototype.hasOwnProperty.call(e,t)?t:0<J(e).length?Object.prototype.hasOwnProperty.call(e,v.current_lang)?v.current_lang:J(e)[0]:void 0},N=function(){function t(t,i){var n=!1,o=!1;try{for(var s,r=t.querySelectorAll(e.join(':not([tabindex="-1"]), ')),a=r.length,l=0;l<a;)s=r[l].getAttribute("data-focus"),o||"1"!==s?"0"===s&&(n=r[l],o||"0"===r[l+1].getAttribute("data-focus")||(o=r[l+1])):o=r[l],l++}catch(i){return t.querySelectorAll(e.join(", "))}i[0]=r[0],i[1]=r[r.length-1],i[2]=n,i[3]=o}var e=["[href]","button","input","details",'[tabindex="0"]'];t(h,L),_&&t(u,P)},z="",F=function(e,o){(d=W("div")).id="cc--main",d.style.position="fixed",d.style.zIndex="1000000",d.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e';var s=d.children[0],r=v.current_lang,a="string"==typeof j.textContent?"textContent":"innerText";f=o,g=function(t){!0===t.force_consent&&tt(j,"force--consent");var e=t.languages[r].consent_modal.description;if(S&&(e=C?e.replace("{{revision_message}}",""):e.replace("{{revision_message}}",z||t.languages[r].consent_modal.revision_message||"")),u)m.innerHTML=e;else{u=W("div");var i=W("div"),n=W("div");m=W("div");var o=W("div"),l=W("div");u.id="cm",i.id="c-inr",n.id="c-inr-i",m.id="c-txt",o.id="c-bns",l.id="cm-ov",u.setAttribute("role","dialog"),u.setAttribute("aria-modal","true"),u.setAttribute("aria-hidden","false"),u.setAttribute("aria-labelledby","c-ttl"),u.setAttribute("aria-describedby","c-txt"),u.style.visibility=l.style.visibility="hidden",l.style.opacity=0;var c=t.languages[r].consent_modal.title;if(c){var d=W("div");d.id="c-ttl",d.setAttribute("role","heading"),d.setAttribute("aria-level","2"),d.insertAdjacentHTML("beforeend",c),n.appendChild(d)}if(m.insertAdjacentHTML("beforeend",e),n.appendChild(m),e=t.languages[r].consent_modal.primary_btn,c=t.languages[r].consent_modal.secondary_btn,e){var p,h=W("button");h.id="c-p-bn",h.className="c-bn",h[a]=t.languages[r].consent_modal.primary_btn.text,"accept_all"===e.role&&(p="all"),Z(h,"click",function(){b.hide(),b.accept(p)})}if(c){var f=W("button");f.id="c-s-bn",f.className="c-bn c_link",f[a]=t.languages[r].consent_modal.secondary_btn.text,"accept_necessary"===c.role?Z(f,"click",function(){b.hide(),b.accept([])}):Z(f,"click",function(){b.showSettings(0)})}(t=t.gui_options)&&t.consent_modal&&!0===t.consent_modal.swap_buttons?(c&&o.appendChild(f),e&&o.appendChild(h),o.className="swap"):(e&&o.appendChild(h),c&&o.appendChild(f)),i.appendChild(n),(e||c)&&i.appendChild(o),u.appendChild(i),s.appendChild(u),s.appendChild(l),_=!0}},e||g(o),p=W("div");var l=W("div"),c=W("div"),w=W("div");h=W("div");var x=W("div"),k=W("div"),T=W("button"),$=W("div"),E=W("div"),A=W("div");p.id="s-cnt",l.id="c-vln",w.id="c-s-in",c.id="cs",x.id="s-ttl",h.id="s-inr",k.id="s-hdr",E.id="s-bl",T.id="s-c-bn",A.id="cs-ov",$.id="s-c-bnc",T.className="c-bn",T.setAttribute("aria-label",o.languages[r].settings_modal.close_btn_label||"Close"),p.setAttribute("role","dialog"),p.setAttribute("aria-modal","true"),p.setAttribute("aria-hidden","true"),p.setAttribute("aria-labelledby","s-ttl"),x.setAttribute("role","heading"),p.style.visibility=A.style.visibility="hidden",A.style.opacity=0,$.appendChild(T),Z(l,"keydown",function(t){27===(t=t||window.event).keyCode&&b.hideSettings(0)},!0),Z(T,"click",function(){b.hideSettings(0)}),n=o.languages[v.current_lang].settings_modal.blocks,i=o.languages[v.current_lang].settings_modal.cookie_table_headers,T=n.length,x.insertAdjacentHTML("beforeend",o.languages[v.current_lang].settings_modal.title);for(var O=0;O<T;++O){var P=n[O].title,L=n[O].description,H=n[O].toggle,N=n[O].cookie_table,F=!0===o.remove_cookie_tables,R=L?"truthy":!F&&N&&"truthy",q=W("div"),X=W("div");if(L){var Y=W("div");Y.className="p",Y.insertAdjacentHTML("beforeend",L)}var U=W("div");if(U.className="title",q.className="c-bl",X.className="desc",void 0!==H){var V="c-ac-"+O,Q=W(R?"button":"div"),K=W("label"),G=W("input"),nt=W("span"),ot=W("span"),st=W("span"),rt=W("span");Q.className=R?"b-tl exp":"b-tl",K.className="b-tg",G.className="c-tgl",st.className="on-i",rt.className="off-i",nt.className="c-tg",ot.className="t-lb",R&&(Q.setAttribute("aria-expanded","false"),Q.setAttribute("aria-controls",V)),G.type="checkbox",nt.setAttribute("aria-hidden","true");var at=H.value;G.value=at,ot[a]=P,Q.insertAdjacentHTML("beforeend",P),U.appendChild(Q),nt.appendChild(st),nt.appendChild(rt),e?-1<B(y.level,at)?(G.checked=!0,M.push(!0)):M.push(!1):H.enabled?(G.checked=!0,M.push(!0)):M.push(!1),I.push(at),H.readonly?(G.disabled=!0,tt(nt,"c-ro"),D.push(!0)):D.push(!1),tt(X,"b-acc"),tt(U,"b-bn"),tt(q,"b-ex"),X.id=V,X.setAttribute("aria-hidden","true"),K.appendChild(G),K.appendChild(nt),K.appendChild(ot),U.appendChild(K),R&&function(t,e,i){Z(Q,"click",function(){it(e,"act")?(et(e,"act"),i.setAttribute("aria-expanded","false"),t.setAttribute("aria-hidden","true")):(tt(e,"act"),i.setAttribute("aria-expanded","true"),t.setAttribute("aria-hidden","false"))},!1)}(X,q,Q)}else P&&((R=W("div")).className="b-tl",R.setAttribute("role","heading"),R.setAttribute("aria-level","3"),R.insertAdjacentHTML("beforeend",P),U.appendChild(R));if(P&&q.appendChild(U),L&&X.appendChild(Y),!F&&void 0!==N){for(R=document.createDocumentFragment(),V=0;V<i.length;++V)K=W("th"),F=i[V],K.setAttribute("scope","col"),F&&(U=F&&J(F)[0],K[a]=i[V][U],R.appendChild(K));for((F=W("tr")).appendChild(R),(U=W("thead")).appendChild(F),(R=W("table")).appendChild(U),V=document.createDocumentFragment(),K=0;K<N.length;K++){for(G=W("tr"),nt=0;nt<i.length;++nt)(F=i[nt])&&(U=J(F)[0],(ot=W("td")).insertAdjacentHTML("beforeend",N[K][U]),ot.setAttribute("data-column",F[U]),G.appendChild(ot));V.appendChild(G)}(N=W("tbody")).appendChild(V),R.appendChild(N),X.appendChild(R)}(H&&P||!H&&(P||L))&&(q.appendChild(X),E.appendChild(q))}e=W("div"),Y=W("button"),T=W("button"),e.id="s-bns",Y.id="s-sv-bn",T.id="s-all-bn",Y.className="c-bn",T.className="c-bn",Y.insertAdjacentHTML("beforeend",o.languages[v.current_lang].settings_modal.save_settings_btn),T.insertAdjacentHTML("beforeend",o.languages[v.current_lang].settings_modal.accept_all_btn),e.appendChild(T),(o=o.languages[v.current_lang].settings_modal.reject_all_btn)&&((O=W("button")).id="s-rall-bn",O.className="c-bn",O.insertAdjacentHTML("beforeend",o),Z(O,"click",function(){b.hideSettings(),b.hide(),b.accept([])}),h.className="bns-t",e.appendChild(O)),e.appendChild(Y),Z(Y,"click",function(){b.hideSettings(),b.hide(),b.accept()}),Z(T,"click",function(){b.hideSettings(),b.hide(),b.accept("all")}),k.appendChild(x),k.appendChild($),h.appendChild(k),h.appendChild(E),h.appendChild(e),w.appendChild(h),c.appendChild(w),l.appendChild(c),p.appendChild(l),s.appendChild(p),s.appendChild(A),(t||document.body).appendChild(d)},R=function(t){var e=document.querySelectorAll(".c-tgl")||[],l=[],c=!1;if(0<e.length){for(var d=0;d<e.length;d++)-1!==B(t,I[d])?(e[d].checked=!0,M[d]||(l.push(I[d]),M[d]=!0)):(e[d].checked=!1,M[d]&&(l.push(I[d]),M[d]=!1));if(v.autoclear_cookies&&w&&0<l.length){e=n.length,d=-1;var u=K("","all"),p=[v.cookie_domain,"."+v.cookie_domain];if("www."===v.cookie_domain.slice(0,4)){var h=v.cookie_domain.substr(4);p.push(h),p.push("."+h)}for(h=0;h<e;h++){var f=n[h];if(Object.prototype.hasOwnProperty.call(f,"toggle")&&!M[++d]&&Object.prototype.hasOwnProperty.call(f,"cookie_table")&&-1<B(l,f.toggle.value)){var g=f.cookie_table,m=J(i[0])[0],_=g.length;"on_disable"===f.toggle.reload&&(c=!0);for(var x=0;x<_;x++){var k=g[x],T=[],S=k[m],E=k.is_regex||!1,A=k.domain||null;if(k=k.path||!1,A&&(p=[A,"."+A]),E)for(E=0;E<u.length;E++)u[E].match(S)&&T.push(u[E]);else-1<(S=B(u,S))&&T.push(u[S]);0<T.length&&(G(T,k,p),"on_clear"===f.toggle.reload&&(c=!0))}}}}}y={level:t,revision:v.revision,data:$,rfc_cookie:v.use_rfc_cookie},(!w||0<l.length||!C)&&(C=!0,a=V(U()),Q(v.cookie_name,JSON.stringify(y)),Y()),w?("function"==typeof s&&0<l.length&&s(y,l),c&&window.location.reload()):("function"==typeof r&&r(b.getUserPreferences(),y),"function"==typeof o&&o(y),w=!0)},B=function(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n]===e)return n;return-1},W=function(t){var e=document.createElement(t);return"button"===t&&e.setAttribute("type",t),e},q=function(){var t=!1,i=!1;Z(document,"keydown",function(n){"Tab"===(n=n||window.event).key&&(e&&(n.shiftKey?document.activeElement===e[0]&&(e[1].focus(),n.preventDefault()):document.activeElement===e[1]&&(e[0].focus(),n.preventDefault()),i||T||(i=!0,!t&&n.preventDefault(),n.shiftKey?e[3]?e[2]?e[2].focus():e[0].focus():e[1].focus():e[3]?e[3].focus():e[0].focus())),!i&&(t=!0))}),document.contains&&Z(d,"click",function(t){t=t||window.event,k?h.contains(t.target)?T=!0:(b.hideSettings(0),T=!1):x&&u.contains(t.target)&&(T=!0)},!0)},X=function(t,e){function i(t,e,i,n,o,s,r){if(s=s&&s.split(" ")||[],-1<B(e,o)&&(tt(t,o),("bar"!==o||"middle"!==s[0])&&-1<B(i,s[0])))for(e=0;e<s.length;e++)tt(t,s[e]);-1<B(n,r)&&tt(t,r)}if("object"==typeof t){var n=t.consent_modal;t=t.settings_modal,_&&n&&i(u,["box","bar","cloud"],["top","middle","bottom"],["zoom","slide"],n.layout,n.position,n.transition),!e&&t&&i(p,["bar"],["left","right"],["zoom","slide"],t.layout,t.position,t.transition)}};b.allowedCategory=function(t){return-1<B(JSON.parse(K(v.cookie_name,"one",!0)||"{}").level||[],t)},b.run=function(t){if(!document.getElementById("cc_div")&&(function(t){"number"==typeof t.cookie_expiration&&(v.cookie_expiration=t.cookie_expiration),"number"==typeof t.cookie_necessary_only_expiration&&(v.cookie_necessary_only_expiration=t.cookie_necessary_only_expiration),"boolean"==typeof t.autorun&&(v.autorun=t.autorun),"string"==typeof t.cookie_domain&&(v.cookie_domain=t.cookie_domain),"string"==typeof t.cookie_same_site&&(v.cookie_same_site=t.cookie_same_site),"string"==typeof t.cookie_path&&(v.cookie_path=t.cookie_path),"string"==typeof t.cookie_name&&(v.cookie_name=t.cookie_name),"function"==typeof t.onAccept&&(o=t.onAccept),"function"==typeof t.onFirstAction&&(r=t.onFirstAction),"function"==typeof t.onChange&&(s=t.onChange),"number"==typeof t.revision&&(-1<t.revision&&(v.revision=t.revision),S=!0),!0===t.autoclear_cookies&&(v.autoclear_cookies=!0),!0===t.use_rfc_cookie&&(v.use_rfc_cookie=!0),!0===t.hide_from_bots&&(O=navigator&&(navigator.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(navigator.userAgent)||navigator.webdriver)),v.page_scripts=!0===t.page_scripts,v.page_scripts_order=!1!==t.page_scripts_order,"browser"===t.auto_language||!0===t.auto_language?v.auto_language="browser":"document"===t.auto_language&&(v.auto_language="document");var e=t.languages;t=t.current_lang,"browser"===v.auto_language?(2<(t=navigator.language||navigator.browserLanguage).length&&(t=t[0]+t[1]),t=t.toLowerCase(),e=H(t,e)):e="document"===v.auto_language?H(document.documentElement.lang,e):"string"==typeof t?v.current_lang=H(t,e):v.current_lang,v.current_lang=e}(t),!O&&(y=JSON.parse(K(v.cookie_name,"one",!0)||"{}"),w=void 0!==y.level,$=void 0!==y.data?y.data:null,C=!("number"==typeof t.revision&&w&&-1<t.revision&&y.revision!==v.revision),F(!(_=!w||!C),t),function(t,e){if("string"!=typeof t||""===t||document.getElementById("cc--style"))e();else{var i=W("style");i.id="cc--style";var n=new XMLHttpRequest;n.onreadystatechange=function(){4===this.readyState&&200===this.status&&(i.setAttribute("type","text/css"),i.styleSheet?i.styleSheet.cssText=this.responseText:i.appendChild(document.createTextNode(this.responseText)),document.getElementsByTagName("head")[0].appendChild(i),e())},n.open("GET",t),n.send()}}(t.theme_css,function(){N(),X(t.gui_options),function(){for(var t=document.querySelectorAll('a[data-cc="c-settings"], button[data-cc="c-settings"]'),e=0;e<t.length;e++)t[e].setAttribute("aria-haspopup","dialog"),Z(t[e],"click",function(t){b.showSettings(0),t.preventDefault?t.preventDefault():t.returnValue=!1})}(),v.autorun&&_&&b.show(t.delay||0),setTimeout(function(){tt(d,"c--anim")},30),setTimeout(function(){q()},100)}),w&&C))){var e="boolean"==typeof y.rfc_cookie;(!e||e&&y.rfc_cookie!==v.use_rfc_cookie)&&(y.rfc_cookie=v.use_rfc_cookie,Q(v.cookie_name,JSON.stringify(y))),a=V(U()),Y(),"function"==typeof t.onAccept&&t.onAccept(y)}},b.showSettings=function(t){setTimeout(function(){tt(j,"show--settings"),p.setAttribute("aria-hidden","false"),k=!0,setTimeout(function(){x?c=document.activeElement:l=document.activeElement,0!==L.length&&(L[3]?L[3].focus():L[0].focus(),e=L)},200)},0<t?t:0)};var Y=function(){if(v.page_scripts){var t=document.querySelectorAll("script["+v.script_selector+"]"),e=v.page_scripts_order,i=y.level||[],n=function(t,o){if(o<t.length){var s=t[o],r=s.getAttribute(v.script_selector);if(-1<B(i,r)){s.type="text/javascript",s.removeAttribute(v.script_selector),r=s.getAttribute("data-src");var a=W("script");if(a.textContent=s.innerHTML,function(t,e){for(var i=e.attributes,n=i.length,o=0;o<n;o++)e=i[o],t.setAttribute(e.nodeName,e.nodeValue)}(a,s),r?a.src=r:r=s.src,r&&(e?a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,n(t,++o))}:a.onload=function(){a.onload=null,n(t,++o)}:r=!1),s.parentNode.replaceChild(a,s),r)return}n(t,++o)}};n(t,0)}};b.set=function(t,e){switch(t){case"data":t=e.value;var i=!1;if("update"===e.mode)if((e=typeof($=b.get("data"))==typeof t)&&"object"==typeof $)for(var n in!$&&($={}),t)$[n]!==t[n]&&($[n]=t[n],i=!0);else!e&&$||$===t||($=t,i=!0);else $=t,i=!0;return i&&(y.data=$,Q(v.cookie_name,JSON.stringify(y))),i;case"revision":return n=e.value,t=e.prompt_consent,e=e.message,d&&"number"==typeof n&&y.revision!==n?(S=!0,z=e,C=!1,v.revision=n,!0===t?(g(f),X(f.gui_options,!0),N(),b.show()):b.accept(),e=!0):e=!1,e;default:return!1}},b.get=function(t,e){return JSON.parse(K(e||v.cookie_name,"one",!0)||"{}")[t]},b.getConfig=function(t){return v[t]};var U=function(){return E=y.level||[],A=I.filter(function(t){return-1===B(E,t)}),{accepted:E,rejected:A}},V=function(t){var e="custom",i=D.filter(function(t){return!0===t}).length;return t.accepted.length===I.length?e="all":0<=t.rejected.length&&t.accepted.length===i&&(e="necessary"),e};b.getUserPreferences=function(){var t=U();return{accept_type:V(t),accepted_categories:t.accepted,rejected_categories:t.rejected}},b.loadScript=function(t,e,i){var n="function"==typeof e;if(document.querySelector('script[src="'+t+'"]'))n&&e();else{var o=W("script");if(i&&0<i.length)for(var s=0;s<i.length;++s)i[s]&&o.setAttribute(i[s].name,i[s].value);n&&(o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,e())}:o.onload=e),o.src=t,(document.head?document.head:document.getElementsByTagName("head")[0]).appendChild(o)}},b.updateScripts=function(){Y()},b.show=function(t){_&&setTimeout(function(){tt(j,"show--consent"),u.setAttribute("aria-hidden","false"),x=!0,setTimeout(function(){l=document.activeElement,e=P},200)},0<t?t:0)},b.hide=function(){_&&(et(j,"show--consent"),u.setAttribute("aria-hidden","true"),x=!1,setTimeout(function(){l.focus(),e=null},200))},b.hideSettings=function(){et(j,"show--settings"),k=!1,p.setAttribute("aria-hidden","true"),setTimeout(function(){x?(c&&c.focus(),e=P):(l.focus(),e=null),T=!1},200)},b.accept=function(t,e){var i=e||[];if(e=[],t=t||void 0)if("object"==typeof t&&"number"==typeof t.length)for(var n=0;n<t.length;n++)-1!==B(I,t[n])&&e.push(t[n]);else"string"==typeof t&&("all"===t?e=I.slice():-1!==B(I,t)&&e.push(t));else e=function(){for(var t=document.querySelectorAll(".c-tgl")||[],e=[],i=0;i<t.length;i++)t[i].checked&&e.push(t[i].value);return e}();if(1<=i.length)for(n=0;n<i.length;n++)e=e.filter(function(t){return t!==i[n]});for(n=0;n<I.length;n++)!0===D[n]&&-1===B(e,I[n])&&e.push(I[n]);R(e)},b.eraseCookies=function(t,e,i){var n=[];if(i=i?[i,"."+i]:[v.cookie_domain,"."+v.cookie_domain],"object"==typeof t&&0<t.length)for(var o=0;o<t.length;o++)this.validCookie(t[o])&&n.push(t[o]);else this.validCookie(t)&&n.push(t);G(n,e,i)};var Q=function(t,e){var i=v.cookie_expiration;"number"==typeof v.cookie_necessary_only_expiration&&"necessary"===a&&(i=v.cookie_necessary_only_expiration),e=v.use_rfc_cookie?encodeURIComponent(e):e;var n=new Date;n.setTime(n.getTime()+864e5*i),t=t+"="+(e||"")+(i="; expires="+n.toUTCString())+"; Path="+v.cookie_path+";",t+=" SameSite="+v.cookie_same_site+";",-1<window.location.hostname.indexOf(".")&&(t+=" Domain="+v.cookie_domain+";"),"https:"===window.location.protocol&&(t+=" Secure;"),document.cookie=t},K=function(t,e,i){var n;if("one"===e){if((n=(n=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)"))?i?n.pop():t:"")&&t===v.cookie_name){try{n=JSON.parse(n)}catch(t){try{n=JSON.parse(decodeURIComponent(n))}catch(t){n={}}}n=JSON.stringify(n)}}else if("all"===e)for(t=document.cookie.split(/;\s*/),n=[],e=0;e<t.length;e++)n.push(t[e].split("=")[0]);return n},G=function(t,e,i){e=e||"/";for(var n=0;n<t.length;n++)for(var o=0;o<i.length;o++)document.cookie=t[n]+"=; path="+e+(-1<i[o].indexOf(".")?"; domain="+i[o]:"")+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};b.validCookie=function(t){return""!==K(t,"one",!0)};var Z=function(t,e,i,n){t.addEventListener?!0===n?t.addEventListener(e,i,{passive:!0}):t.addEventListener(e,i,!1):t.attachEvent("on"+e,i)},J=function(t){if("object"==typeof t){var e=[],i=0;for(e[i++]in t);return e}},tt=function(t,e){t.classList?t.classList.add(e):it(t,e)||(t.className+=" "+e)},et=function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(\\s|^)"+e+"(\\s|$)")," ")},it=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))};return b}),function(t,e,i,n){"use strict";function o(t){var e=t.currentTarget,n=t.data?t.data.options:{},o=t.data?t.data.items:[],s="",r=0;t.preventDefault(),t.stopPropagation(),i(e).attr("data-fancybox")&&(s=i(e).data("fancybox")),s?r=(o=o.length?o.filter('[data-fancybox="'+s+'"]'):i("[data-fancybox="+s+"]")).index(e):o=[e],i.fancybox.open(o,n,r)}if(!i)return n;var s={speed:330,loop:!0,opacity:"auto",margin:[44,0],gutter:30,infobar:!0,buttons:!0,slideShow:!0,fullScreen:!0,thumbs:!0,closeBtn:!0,smallBtn:"auto",image:{preload:"auto",protect:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:!0,scrolling:"no",css:{}},baseClass:"",slideClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-controls"><div class="fancybox-infobar"><button data-fancybox-previous class="fancybox-button fancybox-button--left" title="Previous"></button><div class="fancybox-infobar__body"><span class="js-fancybox-index"></span>&nbsp;/&nbsp;<span class="js-fancybox-count"></span></div><button data-fancybox-next class="fancybox-button fancybox-button--right" title="Next"></button></div><div class="fancybox-buttons"><button data-fancybox-close class="fancybox-button fancybox-button--close" title="Close (Esc)"></button></div></div><div class="fancybox-slider-wrap"><div class="fancybox-slider"></div></div><div class="fancybox-caption-wrap"><div class="fancybox-caption"></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>The requested content cannot be loaded. <br /> Please try again later.<p></div>',closeTpl:'<button data-fancybox-close class="fancybox-close-small">×</button>',parentEl:"body",touch:!0,keyboard:!0,focus:!0,closeClickOutside:!0,beforeLoad:i.noop,afterLoad:i.noop,beforeMove:i.noop,afterMove:i.noop,onComplete:i.noop,onInit:i.noop,beforeClose:i.noop,afterClose:i.noop,onActivate:i.noop,onDeactivate:i.noop},r=i(t),a=i(e),l=0,c=function(t){return t&&t.hasOwnProperty&&t instanceof i},d=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)},u=function(n){var o;return"function"==typeof i&&n instanceof i&&(n=n[0]),(o=n.getBoundingClientRect()).bottom>0&&o.right>0&&o.left<(t.innerWidth||e.documentElement.clientWidth)&&o.top<(t.innerHeight||e.documentElement.clientHeight)},p=function(t,n,o){var r=this;r.opts=i.extend(!0,{index:o},s,n||{}),r.id=r.opts.id||++l,r.group=[],r.currIndex=parseInt(r.opts.index,10)||0,r.prevIndex=null,r.prevPos=null,r.currPos=0,r.firstRun=null,r.createGroup(t),r.group.length&&(r.$lastFocus=i(e.activeElement).blur(),r.elems={},r.slides={},r.init(t))};i.extend(p.prototype,{init:function(){var t,e,n=this;n.scrollTop=r.scrollTop(),n.scrollLeft=r.scrollLeft(),i.fancybox.isTouch||i("html").hasClass("fancybox-enabled")||(t=i("body").width(),i("html").addClass("fancybox-enabled"),(t=i("body").width()-t)>1&&i('<style id="fancybox-noscroll" type="text/css">').html(".compensate-for-scrollbar, .fancybox-enabled body { margin-right: "+t+"px; }").appendTo("head")),e=i(n.opts.baseTpl).attr("id","fancybox-container-"+n.id).data("FancyBox",n).addClass(n.opts.baseClass).hide().prependTo(n.opts.parentEl),n.$refs={container:e,bg:e.find(".fancybox-bg"),controls:e.find(".fancybox-controls"),buttons:e.find(".fancybox-buttons"),slider_wrap:e.find(".fancybox-slider-wrap"),slider:e.find(".fancybox-slider"),caption:e.find(".fancybox-caption")},n.trigger("onInit"),n.activate(),n.current||n.jumpTo(n.currIndex)},createGroup:function(t){var e=this,o=i.makeArray(t);i.each(o,function(t,o){var s,r,a,l,c={},d={},u=[];i.isPlainObject(o)?(c=o,d=o.opts||{}):"object"===i.type(o)&&i(o).length?(d="options"in(u=(s=i(o)).data())?u.options:{},d="object"===i.type(d)?d:{},c.type="type"in u?u.type:d.type,c.src="src"in u?u.src:d.src||s.attr("href"),d.width="width"in u?u.width:d.width,d.height="height"in u?u.height:d.height,d.thumb="thumb"in u?u.thumb:d.thumb,d.selector="selector"in u?u.selector:d.selector,"srcset"in u&&(d.image={srcset:u.srcset}),d.$orig=s):c={type:"html",content:o+""},c.opts=i.extend(!0,{},e.opts,d),r=c.type,a=c.src||"",r||(c.content?r="html":a.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?r="image":a.match(/\.(pdf)((\?|#).*)?$/i)?r="pdf":"#"===a.charAt(0)&&(r="inline"),c.type=r),c.index=e.group.length,c.opts.$orig&&!c.opts.$orig.length&&delete c.opts.$orig,!c.opts.$thumb&&c.opts.$orig&&(c.opts.$thumb=c.opts.$orig.find("img:first")),c.opts.$thumb&&!c.opts.$thumb.length&&delete c.opts.$thumb,"function"===i.type(c.opts.caption)?c.opts.caption=c.opts.caption.apply(o,[e,c]):"caption"in u?c.opts.caption=u.caption:d.$orig&&(c.opts.caption=s.attr("title")),c.opts.caption=c.opts.caption===n?"":c.opts.caption+"","ajax"===r&&((l=a.split(/\s+/,2)).length>1&&(c.src=l.shift(),c.opts.selector=l.shift())),"auto"==c.opts.smallBtn&&(i.inArray(r,["html","inline","ajax"])>-1?(c.opts.buttons=!1,c.opts.smallBtn=!0):c.opts.smallBtn=!1),"pdf"===r&&(c.type="iframe",c.opts.closeBtn=!0,c.opts.smallBtn=!1,c.opts.iframe.preload=!1),c.opts.modal&&i.extend(!0,c.opts,{infobar:0,buttons:0,keyboard:0,slideShow:0,fullScreen:0,closeClickOutside:0}),e.group.push(c)})},addEvents:function(){var n=this,o=function(){r.scrollTop(n.scrollTop).scrollLeft(n.scrollLeft),n.$refs.slider_wrap.show(),n.update()};n.removeEvents(),n.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),n.close(t)}).on("click.fb-previous","[data-fancybox-previous]",function(t){t.stopPropagation(),t.preventDefault(),n.previous()}).on("click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),n.next()}),i(t).on("orientationchange.fb resize.fb",function(t){d(function(){t&&t.originalEvent&&"orientationchange"==t.originalEvent.type?(n.$refs.slider_wrap.hide(),d(o)):o()})}),a.on("focusin.fb",function(t){var e;i.fancybox&&(!(e=i.fancybox.getInstance())||i(t.target).hasClass("fancybox-container")||i.contains(e.$refs.container[0],t.target)||(t.stopPropagation(),e.focus()))}),i(e).on("keydown.fb",function(t){var e=n.current,o=t.keyCode||t.which;if(e&&e.opts.keyboard&&!i(t.target).is("input")&&!i(t.target).is("textarea")){if(8===o||27===o)return t.preventDefault(),void n.close();switch(o){case 37:case 38:t.preventDefault(),n.previous();break;case 39:case 40:t.preventDefault(),n.next();break;case 80:case 32:t.preventDefault(),n.SlideShow&&(t.preventDefault(),n.SlideShow.toggle());break;case 70:n.FullScreen&&(t.preventDefault(),n.FullScreen.toggle());break;case 71:n.Thumbs&&(t.preventDefault(),n.Thumbs.toggle())}}})},removeEvents:function(){r.off("scroll.fb resize.fb orientationchange.fb"),a.off("keydown.fb focusin.fb click.fb-close"),this.$refs.container.off("click.fb-close click.fb-previous click.fb-next")},previous:function(t){this.jumpTo(this.currIndex-1,t)},next:function(t){this.jumpTo(this.currIndex+1,t)},jumpTo:function(t,e){var i,o,s,r,a=this;if(i=a.firstRun=null===a.firstRun,o=s=t=parseInt(t,10),r=!!a.current&&a.current.opts.loop,!a.isAnimating&&(o!=a.currIndex||i)){if(a.group.length>1&&r)o=(o%=a.group.length)<0?a.group.length+o:o,2==a.group.length?s=t-a.currIndex+a.currPos:(s=o-a.currIndex+a.currPos,Math.abs(a.currPos-(s+a.group.length))<Math.abs(a.currPos-s)?s+=a.group.length:Math.abs(a.currPos-(s-a.group.length))<Math.abs(a.currPos-s)&&(s-=a.group.length));else if(!a.group[o])return void a.update(!1,!1,e);a.current&&(a.current.$slide.removeClass("fancybox-slide--current fancybox-slide--complete"),a.updateSlide(a.current,!0)),a.prevIndex=a.currIndex,a.prevPos=a.currPos,a.currIndex=o,a.currPos=s,a.current=a.createSlide(s),a.group.length>1&&((a.opts.loop||s-1>=0)&&a.createSlide(s-1),(a.opts.loop||s+1<a.group.length)&&a.createSlide(s+1)),a.current.isMoved=!1,a.current.isComplete=!1,e=parseInt(e===n?1.5*a.current.opts.speed:e,10),a.trigger("beforeMove"),a.updateControls(),i&&(a.current.$slide.addClass("fancybox-slide--current"),a.$refs.container.show(),d(function(){a.$refs.bg.css("transition-duration",a.current.opts.speed+"ms"),a.$refs.container.addClass("fancybox-container--ready")})),a.update(!0,!1,i?0:e,function(){a.afterMove()}),a.loadSlide(a.current),i&&a.current.$ghost||a.preload()}},createSlide:function(t){var e,n,o,s=this;if(n=(n=t%s.group.length)<0?s.group.length+n:n,!s.slides[t]&&s.group[n]){if(s.opts.loop&&s.group.length>2)for(var r in s.slides)if(s.slides[r].index===n)return(o=s.slides[r]).pos=t,s.slides[t]=o,delete s.slides[r],s.updateSlide(o),o;e=i('<div class="fancybox-slide"></div>').appendTo(s.$refs.slider),s.slides[t]=i.extend(!0,{},s.group[n],{pos:t,$slide:e,isMoved:!1,isLoaded:!1})}return s.slides[t]},zoomInOut:function(t,e,n){var o,s,r,a=this,l=a.current,c=l.$placeholder,p=l.opts.opacity,h=l.opts.$thumb,f=h?h.offset():0,g=l.$slide.offset();return!(!(c&&l.isMoved&&f&&u(h))||"In"===t&&!a.firstRun||(i.fancybox.stop(c),a.isAnimating=!0,o={top:f.top-g.top+parseFloat(h.css("border-top-width")||0),left:f.left-g.left+parseFloat(h.css("border-left-width")||0),width:h.width(),height:h.height(),scaleX:1,scaleY:1},"auto"==p&&(p=Math.abs(l.width/l.height-o.width/o.height)>.1),"In"===t?(s=o,r=a.getFitPos(l),r.scaleX=r.width/s.width,r.scaleY=r.height/s.height,p&&(s.opacity=.1,r.opacity=1)):(s=i.fancybox.getTranslate(c),r=o,l.$ghost&&(l.$ghost.show(),l.$image&&l.$image.remove()),s.scaleX=s.width/r.width,s.scaleY=s.height/r.height,s.width=r.width,s.height=r.height,p&&(r.opacity=0)),a.updateCursor(r.width,r.height),delete r.width,delete r.height,i.fancybox.setTranslate(c,s),c.show(),a.trigger("beforeZoom"+t),d(function(){c.css("transition","all "+e+"ms"),i.fancybox.setTranslate(c,r),setTimeout(function(){d(function(){var e;c.css("transition","none"),(e=i.fancybox.getTranslate(c)).scaleX=1,e.scaleY=1,i.fancybox.setTranslate(c,e),a.trigger("afterZoom"+t),n.apply(a),a.isAnimating=!1})},e)}),0))},canPan:function(){var t=this.current,e=t.$placeholder,i=!1;return e&&(i=this.getFitPos(t),i=Math.abs(e.width()-i.width)>1||Math.abs(e.height()-i.height)>1),i},isScaledDown:function(){var t=this.current,e=t.$placeholder,n=!1;return e&&(n=(n=i.fancybox.getTranslate(e)).width<t.width||n.height<t.height),n},scaleToActual:function(t,e,o){var s,r,a,l,c,d=this,u=d.current,p=u.$placeholder,h=parseInt(u.$slide.width(),10),f=parseInt(u.$slide.height(),10),g=u.width,m=u.height;p&&(d.isAnimating=!0,t=t===n?.5*h:t,e=e===n?.5*f:e,l=g/(s=i.fancybox.getTranslate(p)).width,c=m/s.height,r=.5*h-.5*g,a=.5*f-.5*m,g>h&&((r=s.left*l-(t*l-t))>0&&(r=0),r<h-g&&(r=h-g)),m>f&&((a=s.top*c-(e*c-e))>0&&(a=0),a<f-m&&(a=f-m)),d.updateCursor(g,m),i.fancybox.animate(p,null,{top:a,left:r,scaleX:l,scaleY:c},o||u.opts.speed,function(){d.isAnimating=!1}))},scaleToFit:function(t){var e,n=this,o=n.current,s=o.$placeholder;s&&(n.isAnimating=!0,e=n.getFitPos(o),n.updateCursor(e.width,e.height),i.fancybox.animate(s,null,{top:e.top,left:e.left,scaleX:e.width/s.width(),scaleY:e.height/s.height()},t||o.opts.speed,function(){n.isAnimating=!1}))},getFitPos:function(t){var e,n,o,s,a,l=t.$placeholder||t.$content,c=t.width,d=t.height,u=t.opts.margin;return!(!l||!l.length||!c&&!d)&&("number"===i.type(u)&&(u=[u,u]),2==u.length&&(u=[u[0],u[1],u[0],u[1]]),r.width()<800&&(u=[0,0,0,0]),e=parseInt(t.$slide.width(),10)-(u[1]+u[3]),n=parseInt(t.$slide.height(),10)-(u[0]+u[2]),o=Math.min(1,e/c,n/d),s=Math.floor(o*c),a=Math.floor(o*d),{top:Math.floor(.5*(n-a))+u[0],left:Math.floor(.5*(e-s))+u[3],width:s,height:a})},update:function(t,e,n,o){var s=this,r=s.current.pos*Math.floor(s.current.$slide.width())*-1-s.current.pos*s.current.opts.gutter;!0!==s.isAnimating&&(n=parseInt(n,10)||0,i.fancybox.stop(s.$refs.slider),!1===t?s.updateSlide(s.current,e):i.each(s.slides,function(t,i){s.updateSlide(i,e)}),n?i.fancybox.animate(s.$refs.slider,null,{top:0,left:r},n,function(){s.current.isMoved=!0,"function"===i.type(o)&&o.apply(s)}):(i.fancybox.setTranslate(s.$refs.slider,{top:0,left:r}),s.current.isMoved=!0,"function"===i.type(o)&&o.apply(s)))},updateSlide:function(t,e){var n,o=this,s=t.$placeholder;(t=t||o.current)&&!o.isClosing&&((n=t.pos*Math.floor(t.$slide.width())+t.pos*t.opts.gutter)!==t.leftPos&&(i.fancybox.setTranslate(t.$slide,{top:0,left:n}),t.leftPos=n),!1!==e&&s&&(i.fancybox.setTranslate(s,o.getFitPos(t)),t.pos===o.currPos&&o.updateCursor()),t.$slide.trigger("refresh"),o.trigger("onUpdate",t))},updateCursor:function(t,e){var i=this,o=i.$refs.container.removeClass("fancybox-controls--canzoomIn fancybox-controls--canzoomOut fancybox-controls--canGrab");!i.isClosing&&i.opts.touch&&((t!==n&&e!==n?t<i.current.width&&e<i.current.height:i.isScaledDown())?o.addClass("fancybox-controls--canzoomIn"):i.group.length<2?o.addClass("fancybox-controls--canzoomOut"):o.addClass("fancybox-controls--canGrab"))},loadSlide:function(t){var e,n,o,s=this;if(t&&!t.isLoaded&&!t.isLoading){switch(t.isLoading=!0,s.trigger("beforeLoad",t),e=t.type,(n=t.$slide).off("refresh").trigger("onReset").addClass("fancybox-slide--"+(e||"unknown")).addClass(t.opts.slideClass),e){case"image":s.setImage(t);break;case"iframe":s.setIframe(t);break;case"html":s.setContent(t,t.content);break;case"inline":i(t.src).length?s.setContent(t,i(t.src)):s.setError(t);break;case"ajax":s.showLoading(t),o=i.ajax(i.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,i){"success"===i&&s.setContent(t,e)},error:function(e,i){e&&"abort"!==i&&s.setError(t)}})),n.one("onReset",function(){o.abort()});break;default:s.setError(t)}return!0}},setImage:function(e){var n,o,s,r,a=this,l=e.opts.image.srcset;if(!e.isLoaded||e.hasError){if(l){s=t.devicePixelRatio||1,r=t.innerWidth*s,(o=l.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,i){var n=parseInt(t.substring(0,t.length-1),10);return 0===i?e.url=t:void(n&&(e.value=n,e.postfix=t[t.length-1]))}),e})).sort(function(t,e){return t.value-e.value});for(var c=0;c<o.length;c++){var d=o[c];if("w"===d.postfix&&d.value>=r||"x"===d.postfix&&d.value>=s){n=d;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value))}e.$placeholder=i('<div class="fancybox-placeholder"></div>').hide().appendTo(e.$slide),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&(e.opts.thumb||e.opts.$thumb)?(e.width=e.opts.width,e.height=e.opts.height,e.$ghost=i("<img />").one("load error",function(){a.isClosing||(i("<img/>")[0].src=e.src,a.revealImage(e,function(){a.setBigImage(e),a.firstRun&&e.index===a.currIndex&&a.preload()}))}).addClass("fancybox-image").appendTo(e.$placeholder).attr("src",e.opts.thumb||e.opts.$thumb.attr("src"))):a.setBigImage(e)}else a.afterLoad(e)},setBigImage:function(t){var e=this,n=i("<img />");t.$image=n.one("error",function(){e.setError(t)}).one("load",function(){clearTimeout(t.timouts),t.timouts=null,e.isClosing||(t.width=this.naturalWidth,t.height=this.naturalHeight,t.opts.image.srcset&&n.attr("sizes","100vw").attr("srcset",t.opts.image.srcset),e.afterLoad(t),t.$ghost&&(t.timouts=setTimeout(function(){t.$ghost.hide()},350)))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$placeholder),n[0].complete?n.trigger("load"):n[0].error?n.trigger("error"):t.timouts=setTimeout(function(){n[0].complete||t.hasError||e.showLoading(t)},150),t.opts.image.protect&&i('<div class="fancybox-spaceball"></div>').appendTo(t.$placeholder).on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0})},revealImage:function(t,e){var n=this;return e=e||i.noop,"image"!==t.type||t.hasError||!0===t.isRevealed?void e.apply(n):(t.isRevealed=!0,void(t.pos===n.currPos&&n.zoomInOut("In",t.opts.speed,e)||(t.$ghost&&!t.isLoaded&&n.updateSlide(t,!0),t.pos===n.currPos?i.fancybox.animate(t.$placeholder,{opacity:0},{opacity:1},300,e):t.$placeholder.show(),e.apply(n))))},setIframe:function(t){var e,o=this,s=t.opts.iframe,r=t.$slide;t.$content=i('<div class="fancybox-content"></div>').css(s.css).appendTo(r),e=i(s.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",i.fancybox.isTouch?"auto":s.scrolling).appendTo(t.$content),s.preload?(t.$content.addClass("fancybox-tmp"),o.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),o.afterLoad(t)}),r.on("refresh.fb",function(){var i,o,r,a,l=t.$content;if(1===e[0].isReady){try{i=e.contents().find("body")}catch(t){}i&&i.length&&(s.css.width===n||s.css.height===n)&&(o=e[0].contentWindow.document.documentElement.scrollWidth,r=Math.ceil(i.outerWidth(!0)+(l.width()-o)),a=Math.ceil(i.outerHeight(!0)),l.css({width:s.css.width===n?r+(l.outerWidth()-l.innerWidth()):s.css.width,height:s.css.height===n?a+(l.outerHeight()-l.innerHeight()):s.css.height})),l.removeClass("fancybox-tmp")}})):this.afterLoad(t),e.attr("src",t.src),t.opts.smallBtn&&t.$content.prepend(t.opts.closeTpl),r.one("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}i(this).empty(),t.isLoaded=!1})},setContent:function(t,e){this.isClosing||(this.hideLoading(t),t.$slide.empty(),c(e)&&e.parent().length?(e.data("placeholder")&&e.parents(".fancybox-slide").trigger("onReset"),e.data({placeholder:i("<div></div>").hide().insertAfter(e)}).css("display","inline-block")):("string"===i.type(e)&&(3===(e=i("<div>").append(e).contents())[0].nodeType&&(e=i("<div>").html(e))),t.opts.selector&&(e=i("<div>").html(e).find(t.opts.selector))),t.$slide.one("onReset",function(){var n=c(e)?e.data("placeholder"):0;n&&(e.hide().replaceAll(n),e.data("placeholder",null)),t.hasError||(i(this).empty(),t.isLoaded=!1)}),t.$content=i(e).appendTo(t.$slide),!0===t.opts.smallBtn&&t.$content.find(".fancybox-close-small").remove().end().eq(0).append(t.opts.closeTpl),this.afterLoad(t))},setError:function(t){t.hasError=!0,this.setContent(t,t.opts.errorTpl)},showLoading:function(t){(t=t||this.current)&&!t.$spinner&&(t.$spinner=i(this.opts.spinnerTpl).appendTo(t.$slide))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.remove(),delete t.$spinner)},afterMove:function(){var t=this,e=t.current,n={};e&&(e.$slide.siblings().trigger("onReset"),i.each(t.slides,function(e,i){i.pos>=t.currPos-1&&i.pos<=t.currPos+1?n[i.pos]=i:i&&i.$slide.remove()}),t.slides=n,t.trigger("afterMove"),e.isLoaded&&t.complete())},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),t.$ghost||e.updateSlide(t,!0),t.index===e.currIndex&&t.isMoved?e.complete():t.$ghost||e.revealImage(t))},complete:function(){var t=this,e=t.current;t.revealImage(e,function(){e.isComplete=!0,e.$slide.addClass("fancybox-slide--complete"),t.updateCursor(),t.trigger("onComplete"),!e.opts.focus||"image"!==e.type&&"iframe"!==e.type||t.focus()})},preload:function(){var t,e,i=this;i.group.length<2||(t=i.slides[i.currPos+1],e=i.slides[i.currPos-1],t&&"image"===t.type&&i.loadSlide(t),e&&"image"===e.type&&i.loadSlide(e))},focus:function(){var t,e=this.current;(t=e&&e.isComplete?e.$slide.find('button,:input,[tabindex],a:not(".disabled")').filter(":visible:first"):null)&&t.length||(t=this.$refs.container),t.focus(),this.$refs.slider_wrap.scrollLeft(0),e&&e.$slide.scrollTop(0)},activate:function(){var t=this;i(".fancybox-container").each(function(){var e=i(this).data("FancyBox");e&&e.uid!==t.uid&&!e.isClosing&&e.trigger("onDeactivate")}),t.current&&(t.$refs.container.index()>0&&t.$refs.container.prependTo(e.body),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t){var e=this,n=e.current,o=n.opts.speed,s=i.proxy(function(){e.cleanUp(t)},this);return!e.isAnimating&&!e.isClosing&&(e.isClosing=!0,n.timouts&&clearTimeout(n.timouts),!0!==t&&i.fancybox.stop(e.$refs.slider),e.$refs.container.removeClass("fancybox-container--active").addClass("fancybox-container--closing"),n.$slide.removeClass("fancybox-slide--complete").siblings().remove(),n.isMoved||n.$slide.css("overflow","visible"),e.removeEvents(),e.hideLoading(n),e.hideControls(),e.updateCursor(),e.trigger("beforeClose",n,t),e.$refs.bg.css("transition-duration",o+"ms"),this.$refs.container.removeClass("fancybox-container--ready"),void(!0===t?setTimeout(s,o):e.zoomInOut("Out",o,s)||i.fancybox.animate(e.$refs.container,null,{opacity:0},o,"easeInSine",s)))},cleanUp:function(t){var e,n=this;n.$refs.slider.children().trigger("onReset"),n.$refs.container.empty().remove(),n.current=null,n.trigger("afterClose",t),(e=i.fancybox.getInstance())?e.activate():(i("html").removeClass("fancybox-enabled"),i("#fancybox-noscroll").remove()),n.$lastFocus&&n.$lastFocus.focus(),r.scrollTop(n.scrollTop).scrollLeft(n.scrollLeft)},trigger:function(t,e){var n=Array.prototype.slice.call(arguments,1),o=this,s=e&&e.opts?e:o.current;s?n.unshift(s):s=o,n.unshift(o),i.isFunction(s.opts[t])&&s.opts[t].apply(s,n),o.$refs.container.trigger(t+".fb",n)},toggleControls:function(t){this.isHiddenControls?this.updateControls(t):this.hideControls()},hideControls:function(){this.isHiddenControls=!0,this.$refs.container.removeClass("fancybox-show-controls"),this.$refs.container.removeClass("fancybox-show-caption")},updateControls:function(t){var e=this,n=e.$refs.container,o=e.$refs.caption,s=e.current,r=s.index,a=s.opts,l=a.caption;this.isHiddenControls&&!0!==t||(this.isHiddenControls=!1,e.$refs.container.addClass("fancybox-show-controls"),n.toggleClass("fancybox-show-infobar",!!a.infobar&&e.group.length>1).toggleClass("fancybox-show-buttons",!!a.buttons).toggleClass("fancybox-is-modal",!!a.modal),i(".fancybox-button--left",n).toggleClass("fancybox-button--disabled",!a.loop&&r<=0),i(".fancybox-button--right",n).toggleClass("fancybox-button--disabled",!a.loop&&r>=e.group.length-1),i(".fancybox-button--play",n).toggle(!!(a.slideShow&&e.group.length>1)),i(".fancybox-button--close",n).toggle(!!a.closeBtn),i(".js-fancybox-count",n).html(e.group.length),i(".js-fancybox-index",n).html(r+1),s.$slide.trigger("refresh"),o&&o.empty(),l&&l.length?(o.html(l),this.$refs.container.addClass("fancybox-show-caption "),e.$caption=o):this.$refs.container.removeClass("fancybox-show-caption"))}}),i.fancybox={version:"3.0.34",defaults:s,getInstance:function(t){var e=i('.fancybox-container:not(".fancybox-container--closing"):first').data("FancyBox"),n=Array.prototype.slice.call(arguments,1);return e instanceof p&&("string"===i.type(t)?e[t].apply(e,n):"function"===i.type(t)&&t.apply(e,n),e)},open:function(t,e,i){return new p(t,e,i)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close())},isTouch:e.createTouch!==n&&/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent),use3d:function(){var i=e.createElement("div");return t.getComputedStyle(i).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<=11)}(),getTranslate:function(t){var e,i;return!(!t||!t.length)&&(e=t.get(0).getBoundingClientRect(),(i=t.eq(0).css("transform"))&&-1!==i.indexOf("matrix")?i=(i=(i=i.split("(")[1]).split(")")[0]).split(","):i=[],i.length?i=(i=i.length>10?[i[13],i[12],i[0],i[5]]:[i[5],i[4],i[0],i[3]]).map(parseFloat):i=[0,0,1,1],{top:i[0],left:i[1],scaleX:i[2],scaleY:i[3],opacity:parseFloat(t.css("opacity")),width:e.width,height:e.height})},setTranslate:function(t,e){var i="",o={};if(t&&e)return e.left===n&&e.top===n||(i=(e.left===n?t.position().top:e.left)+"px, "+(e.top===n?t.position().top:e.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),e.scaleX!==n&&e.scaleY!==n&&(i=(i.length?i+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"),i.length&&(o.transform=i),e.opacity!==n&&(o.opacity=e.opacity),e.width!==n&&(o.width=e.width),e.height!==n&&(o.height=e.height),t.css(o)},easing:{easeOutCubic:function(t,e,i,n){return i*((t=t/n-1)*t*t+1)+e},easeInCubic:function(t,e,i,n){return i*(t/=n)*t*t+e},easeOutSine:function(t,e,i,n){return i*Math.sin(t/n*(Math.PI/2))+e},easeInSine:function(t,e,i,n){return-i*Math.cos(t/n*(Math.PI/2))+i+e}},stop:function(t){t.removeData("animateID")},animate:function(t,e,o,s,r,a){var l,c,u,p=this,h=null,f=0,g=function(){o.scaleX!==n&&o.scaleY!==n&&e&&e.width!==n&&e.height!==n&&(o.width=e.width*o.scaleX,o.height=e.height*o.scaleY,o.scaleX=1,o.scaleY=1),p.setTranslate(t,o),a()},m=function(i){if(l=[],c=0,t.length&&t.data("animateID")===u){if(i=i||Date.now(),h&&(c=i-h),h=i,(f+=c)>=s)return void g();for(var a in o)o.hasOwnProperty(a)&&e[a]!==n&&(e[a]==o[a]?l[a]=o[a]:l[a]=p.easing[r](f,e[a],o[a]-e[a],s));p.setTranslate(t,l),d(m)}};p.animateID=u=p.animateID===n?1:p.animateID+1,t.data("animateID",u),a===n&&"function"==i.type(r)&&(a=r,r=n),r||(r="easeOutCubic"),a=a||i.noop,e?this.setTranslate(t,e):e=this.getTranslate(t),s?(t.show(),d(m)):g()}},i.fn.fancybox=function(t){return this.off("click.fb-start").on("click.fb-start",{items:this,options:t||{}},o),this},i(e).on("click.fb-start","[data-fancybox]",o)}(window,document,window.jQuery),function(t){"use strict";var e=function(e,i,n){if(e)return n=n||"","object"===t.type(n)&&(n=t.param(n,!0)),t.each(i,function(t,i){e=e.replace("$"+t,i||"")}),n.length&&(e+=(e.indexOf("?")>0?"&":"?")+n),e},i={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}}};t(document).on("onInit.fb",function(n,o){t.each(o.group,function(n,o){var s,r,a,l,c,d,u=o.src||"",p=!1;o.type||(t.each(i,function(i,n){if(r=u.match(n.matcher),c={},d=i,r){if(p=n.type,n.paramPlace&&r[n.paramPlace]){"?"==(l=r[n.paramPlace])[0]&&(l=l.substring(1)),l=l.split("&");for(var h=0;h<l.length;++h){var f=l[h].split("=",2);2==f.length&&(c[f[0]]=decodeURIComponent(f[1].replace(/\+/g," ")))}}return a=t.extend(!0,{},n.params,o.opts[i],c),u="function"===t.type(n.url)?n.url.call(this,r,a,o):e(n.url,r,a),s="function"===t.type(n.thumb)?n.thumb.call(this,r,a,o):e(n.thumb,r),"vimeo"===d&&(u=u.replace("&%23","#")),!1}}),p?(o.src=u,o.type=p,o.opts.thumb||o.opts.$thumb&&o.opts.$thumb.length||(o.opts.thumb=s),"iframe"===p&&(t.extend(!0,o.opts,{iframe:{preload:!1,scrolling:"no"},smallBtn:!1,closeBtn:!0,fullScreen:!1,slideShow:!1}),o.opts.slideClass+=" fancybox-slide--video")):o.type="iframe")})})}(window.jQuery),function(t,e,i){"use strict";var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(e){t.setTimeout(e,1e3/60)},o=function(e){var i=[];for(var n in e=(e=e.originalEvent||e||t.e).touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e])e[n].pageX?i.push({x:e[n].pageX,y:e[n].pageY}):e[n].clientX&&i.push({x:e[n].clientX,y:e[n].clientY});return i},s=function(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){return t.is("a")||t.is("button")||t.is("input")||t.is("select")||t.is("textarea")||i.isFunction(t.get(0).onclick)},a=function(e){var i=t.getComputedStyle(e)["overflow-y"],n=t.getComputedStyle(e)["overflow-x"],o=("scroll"===i||"auto"===i)&&e.scrollHeight>e.clientHeight,s=("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth;return o||s},l=function(t){for(var e=!1;!(e=a(t.get(0)))&&((t=t.parent()).length&&!t.hasClass("fancybox-slider")&&!t.is("body")););return e},c=function(t){var e=this;e.instance=t,e.$wrap=t.$refs.slider_wrap,e.$slider=t.$refs.slider,e.$container=t.$refs.container,e.destroy(),e.$wrap.on("touchstart.fb mousedown.fb",i.proxy(e,"ontouchstart"))};c.prototype.destroy=function(){this.$wrap.off("touchstart.fb mousedown.fb touchmove.fb mousemove.fb touchend.fb touchcancel.fb mouseup.fb mouseleave.fb")},c.prototype.ontouchstart=function(e){var n=this,a=i(e.target),c=n.instance.current,d=c.$content||c.$placeholder;return n.startPoints=o(e),n.$target=a,n.$content=d,c.opts.touch?void(r(a)||r(a.parent())||l(a)&&!a.hasClass("fancybox-slide")||e.originalEvent&&2==e.originalEvent.button||(e.stopPropagation(),e.preventDefault(),!c||n.instance.isAnimating||n.instance.isClosing||!n.startPoints||n.startPoints.length>1&&!c.isMoved||(n.$wrap.off("touchmove.fb mousemove.fb",i.proxy(n,"ontouchmove")),n.$wrap.off("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",i.proxy(n,"ontouchend")),n.$wrap.on("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",i.proxy(n,"ontouchend")),n.$wrap.on("touchmove.fb mousemove.fb",i.proxy(n,"ontouchmove")),n.startTime=(new Date).getTime(),n.distanceX=n.distanceY=n.distance=0,n.canvasWidth=Math.round(c.$slide.width()),n.canvasHeight=Math.round(c.$slide.height()),n.canTap=!1,n.isPanning=!1,n.isSwiping=!1,n.isZooming=!1,n.sliderStartPos=i.fancybox.getTranslate(n.$slider),n.contentStartPos=i.fancybox.getTranslate(n.$content),n.contentLastPos=null,1!==n.startPoints.length||n.isZooming||(n.canTap=c.isMoved,"image"===c.type&&(n.contentStartPos.width>n.canvasWidth+1||n.contentStartPos.height>n.canvasHeight+1)?(i.fancybox.stop(n.$content),n.isPanning=!0):(i.fancybox.stop(n.$slider),n.isSwiping=!0),n.$container.addClass("fancybox-controls--isGrabbing")),2===n.startPoints.length&&c.isMoved&&!c.hasError&&"image"===c.type&&(c.isLoaded||c.$ghost)&&(n.isZooming=!0,n.isSwiping=!1,n.isPanning=!1,i.fancybox.stop(n.$content),n.centerPointStartX=.5*(n.startPoints[0].x+n.startPoints[1].x)-i(t).scrollLeft(),n.centerPointStartY=.5*(n.startPoints[0].y+n.startPoints[1].y)-i(t).scrollTop(),n.percentageOfImageAtPinchPointX=(n.centerPointStartX-n.contentStartPos.left)/n.contentStartPos.width,n.percentageOfImageAtPinchPointY=(n.centerPointStartY-n.contentStartPos.top)/n.contentStartPos.height,n.startDistanceBetweenFingers=s(n.startPoints[0],n.startPoints[1]))))):(n.endPoints=n.startPoints,n.ontap())},c.prototype.ontouchmove=function(t){var e=this;t.preventDefault(),e.newPoints=o(t),e.newPoints&&e.newPoints.length&&(e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe():e.isPanning?e.onPan():e.isZooming&&e.onZoom()))},c.prototype.onSwipe=function(){var e,o=this,s=o.isSwiping,r=o.sliderStartPos.left;!0===s?Math.abs(o.distance)>10&&(o.instance.group.length<2?o.isSwiping="y":!o.instance.current.isMoved||!1===o.instance.opts.touch.vertical||"auto"===o.instance.opts.touch.vertical&&i(t).width()>800?o.isSwiping="x":(e=Math.abs(180*Math.atan2(o.distanceY,o.distanceX)/Math.PI),o.isSwiping=e>45&&e<135?"y":"x"),o.canTap=!1,o.instance.current.isMoved=!1,o.startPoints=o.newPoints):("x"==s&&(!o.instance.current.opts.loop&&0===o.instance.current.index&&o.distanceX>0?r+=Math.pow(o.distanceX,.8):!o.instance.current.opts.loop&&o.instance.current.index===o.instance.group.length-1&&o.distanceX<0?r-=Math.pow(-o.distanceX,.8):r+=o.distanceX),o.sliderLastPos={top:"x"==s?0:o.sliderStartPos.top+o.distanceY,left:r},n(function(){i.fancybox.setTranslate(o.$slider,o.sliderLastPos)}))},c.prototype.onPan=function(){var t,e,o,s=this;s.canTap=!1,t=s.contentStartPos.width>s.canvasWidth?s.contentStartPos.left+s.distanceX:s.contentStartPos.left,e=s.contentStartPos.top+s.distanceY,(o=s.limitMovement(t,e,s.contentStartPos.width,s.contentStartPos.height)).scaleX=s.contentStartPos.scaleX,o.scaleY=s.contentStartPos.scaleY,s.contentLastPos=o,n(function(){i.fancybox.setTranslate(s.$content,s.contentLastPos)})},c.prototype.limitMovement=function(t,e,i,n){var o,s,r,a,l=this,c=l.canvasWidth,d=l.canvasHeight,u=l.contentStartPos.left,p=l.contentStartPos.top,h=l.distanceX,f=l.distanceY;return o=Math.max(0,.5*c-.5*i),s=Math.max(0,.5*d-.5*n),r=Math.min(c-i,.5*c-.5*i),a=Math.min(d-n,.5*d-.5*n),i>c&&(h>0&&t>o&&(t=o-1+Math.pow(-o+u+h,.8)||0),h<0&&t<r&&(t=r+1-Math.pow(r-u-h,.8)||0)),n>d&&(f>0&&e>s&&(e=s-1+Math.pow(-s+p+f,.8)||0),f<0&&e<a&&(e=a+1-Math.pow(a-p-f,.8)||0)),{top:e,left:t}},c.prototype.limitPosition=function(t,e,i,n){var o=this.canvasWidth,s=this.canvasHeight;return i>o?t=(t=t>0?0:t)<o-i?o-i:t:t=Math.max(0,o/2-i/2),n>s?e=(e=e>0?0:e)<s-n?s-n:e:e=Math.max(0,s/2-n/2),{top:e,left:t}},c.prototype.onZoom=function(){var e=this,o=e.contentStartPos.width,r=e.contentStartPos.height,a=e.contentStartPos.left,l=e.contentStartPos.top,c=s(e.newPoints[0],e.newPoints[1])/e.startDistanceBetweenFingers,d=Math.floor(o*c),u=Math.floor(r*c),p=(o-d)*e.percentageOfImageAtPinchPointX,h=(r-u)*e.percentageOfImageAtPinchPointY,f=(e.newPoints[0].x+e.newPoints[1].x)/2-i(t).scrollLeft(),g=(e.newPoints[0].y+e.newPoints[1].y)/2-i(t).scrollTop(),m=f-e.centerPointStartX,v={top:l+(h+(g-e.centerPointStartY)),left:a+(p+m),scaleX:e.contentStartPos.scaleX*c,scaleY:e.contentStartPos.scaleY*c};e.canTap=!1,e.newWidth=d,e.newHeight=u,e.contentLastPos=v,n(function(){i.fancybox.setTranslate(e.$content,e.contentLastPos)})},c.prototype.ontouchend=function(t){var e=this,n=e.instance.current,s=Math.max((new Date).getTime()-e.startTime,1),r=e.isSwiping,a=e.isPanning,l=e.isZooming;return e.endPoints=o(t),e.$container.removeClass("fancybox-controls--isGrabbing"),e.$wrap.off("touchmove.fb mousemove.fb",i.proxy(this,"ontouchmove")),e.$wrap.off("touchend.fb touchcancel.fb mouseup.fb mouseleave.fb",i.proxy(this,"ontouchend")),e.isSwiping=!1,e.isPanning=!1,e.isZooming=!1,e.canTap?e.ontap():(e.velocityX=e.distanceX/s*.5,e.velocityY=e.distanceY/s*.5,e.speed=n.opts.speed||330,e.speedX=Math.max(.75*e.speed,Math.min(1.5*e.speed,1/Math.abs(e.velocityX)*e.speed)),e.speedY=Math.max(.75*e.speed,Math.min(1.5*e.speed,1/Math.abs(e.velocityY)*e.speed)),void(a?e.endPanning():l?e.endZooming():e.endSwiping(r)))},c.prototype.endSwiping=function(t){var e=this;"y"==t&&Math.abs(e.distanceY)>50?(i.fancybox.animate(e.$slider,null,{top:e.sliderStartPos.top+e.distanceY+150*e.velocityY,left:e.sliderStartPos.left,opacity:0},e.speedY),e.instance.close(!0)):"x"==t&&e.distanceX>50?e.instance.previous(e.speedX):"x"==t&&e.distanceX<-50?e.instance.next(e.speedX):e.instance.update(!1,!0,Math.abs(e.distance)*e.speed/50)},c.prototype.endPanning=function(){var t,e,n,o=this;o.contentLastPos&&(t=o.contentLastPos.left+o.velocityX*o.speed*2,e=o.contentLastPos.top+o.velocityY*o.speed*2,(n=o.limitPosition(t,e,o.contentStartPos.width,o.contentStartPos.height)).width=o.contentStartPos.width,n.height=o.contentStartPos.height,i.fancybox.animate(o.$content,null,n,o.speed,"easeOutSine"))},c.prototype.endZooming=function(){var t,e,n,o,s=this,r=s.instance.current,a=s.newWidth,l=s.newHeight;s.contentLastPos&&(t=s.contentLastPos.left,o={top:e=s.contentLastPos.top,left:t,width:a,height:l,scaleX:1,scaleY:1},i.fancybox.setTranslate(s.$content,o),a<s.canvasWidth&&l<s.canvasHeight?s.instance.scaleToFit(150):a>r.width||l>r.height?s.instance.scaleToActual(s.centerPointStartX,s.centerPointStartY,150):(n=s.limitPosition(t,e,a,l),i.fancybox.animate(s.$content,null,n,s.speed,"easeOutSine")))},c.prototype.ontap=function(){var t=this,e=t.instance,n=e.current,o=t.endPoints[0].x,s=t.endPoints[0].y;if(o-=t.$wrap.offset().left,s-=t.$wrap.offset().top,e.SlideShow&&e.SlideShow.isActive&&e.SlideShow.stop(),!i.fancybox.isTouch)return n.opts.closeClickOutside&&t.$target.is(".fancybox-slide")?void e.close():void("image"==n.type&&n.isMoved&&(e.canPan()?e.scaleToFit():e.isScaledDown()?e.scaleToActual(o,s):e.group.length<2&&e.close()));if(t.tapped){if(clearTimeout(t.tapped),t.tapped=null,Math.abs(o-t.x)>50||Math.abs(s-t.y)>50||!n.isMoved)return this;"image"==n.type&&(n.isLoaded||n.$ghost)&&(e.canPan()?e.scaleToFit():e.isScaledDown()&&e.scaleToActual(o,s))}else t.x=o,t.y=s,t.tapped=setTimeout(function(){t.tapped=null,e.toggleControls(!0)},300);return this},i(e).on("onActivate.fb",function(t,e){e.Guestures||(e.Guestures=new c(e))}),i(e).on("beforeClose.fb",function(t,e){e.Guestures&&e.Guestures.destroy()})}(window,document,window.jQuery),function(t,e){"use strict";var i=function(t){this.instance=t,this.init()};e.extend(i.prototype,{timer:null,isActive:!1,$button:null,speed:3e3,init:function(){var t=this;t.$button=e('<button data-fancybox-play class="fancybox-button fancybox-button--play" title="Slideshow (P)"></button>').appendTo(t.instance.$refs.buttons),t.instance.$refs.container.on("click","[data-fancybox-play]",function(){t.toggle()})},set:function(){var t=this;t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currIndex<t.instance.group.length-1)?t.timer=setTimeout(function(){t.instance.next()},t.instance.current.opts.slideShow.speed||t.speed):t.stop()},clear:function(){clearTimeout(this.timer),this.timer=null},start:function(){var t=this;t.stop(),t.instance&&t.instance.current&&(t.instance.current.opts.loop||t.instance.currIndex<t.instance.group.length-1)&&(t.instance.$refs.container.on({"beforeLoad.fb.player":e.proxy(t,"clear"),"onComplete.fb.player":e.proxy(t,"set")}),t.isActive=!0,t.instance.current.isComplete&&t.set(),t.instance.$refs.container.trigger("onPlayStart"),t.$button.addClass("fancybox-button--pause"))},stop:function(){var t=this;t.clear(),t.instance.$refs.container.trigger("onPlayEnd").off(".player"),t.$button.removeClass("fancybox-button--pause"),t.isActive=!1},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on("onInit.fb",function(t,e){e.opts.slideShow&&!e.SlideShow&&e.group.length>1&&(e.SlideShow=new i(e))}),e(t).on("beforeClose.fb onDeactivate.fb",function(t,e){e.SlideShow&&e.SlideShow.stop()})}(document,window.jQuery),function(t,e){"use strict";var i=function(t){this.instance=t,this.init()};e.extend(i.prototype,{$button:null,init:function(){var i=this;i.isAvailable()&&(i.$button=e('<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="Full screen (F)"></button>').appendTo(i.instance.$refs.buttons),i.instance.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),i.toggle()}),e(t).on("onUpdate.fb",function(t,e){i.$button.toggle(!!e.current.opts.fullScreen),i.$button.toggleClass("fancybox-button-shrink",i.isActivated())}),e(t).on("afterClose.fb",function(){i.exit()}))},isAvailable:function(){var t=this.instance.$refs.container.get(0);return!!(t.requestFullscreen||t.msRequestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullscreen)},isActivated:function(){return!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)},launch:function(){var t=this.instance.$refs.container.get(0);t&&!this.instance.isClosing&&(t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen(t.ALLOW_KEYBOARD_INPUT))},exit:function(){t.exitFullscreen?t.exitFullscreen():t.msExitFullscreen?t.msExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen()},toggle:function(){this.isActivated()?this.exit():this.isAvailable()&&this.launch()}}),e(t).on("onInit.fb",function(t,e){e.opts.fullScreen&&!e.FullScreen&&(e.FullScreen=new i(e))})}(document,window.jQuery),function(t,e){"use strict";var i=function(t){this.instance=t,this.init()};e.extend(i.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,init:function(){var t=this;t.$button=e('<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="Thumbnails (G)"></button>').appendTo(this.instance.$refs.buttons).on("touchend click",function(e){e.stopPropagation(),e.preventDefault(),t.toggle()})},create:function(){var t,i,n=this.instance;this.$grid=e('<div class="fancybox-thumbs"></div>').appendTo(n.$refs.container),t="<ul>",e.each(n.group,function(e,n){(i=n.opts.thumb||(n.opts.$thumb?n.opts.$thumb.attr("src"):null))||"image"!==n.type||(i=n.src),i&&i.length&&(t+='<li data-index="'+e+'"  tabindex="0" class="fancybox-thumbs-loading"><img data-src="'+i+'" /></li>')}),t+="</ul>",this.$list=e(t).appendTo(this.$grid).on("click touchstart","li",function(){n.jumpTo(e(this).data("index"))}),this.$list.find("img").hide().one("load",function(){var t,i,n,o,s=e(this).parent().removeClass("fancybox-thumbs-loading"),r=s.outerWidth(),a=s.outerHeight();t=this.naturalWidth||this.width,o=(i=this.naturalHeight||this.height)/a,(n=t/r)>=1&&o>=1&&(n>o?(t/=o,i=a):(t=r,i/=n)),e(this).css({width:Math.floor(t),height:Math.floor(i),"margin-top":Math.min(0,Math.floor(.3*a-.3*i)),"margin-left":Math.min(0,Math.floor(.5*r-.5*t))}).show()}).each(function(){this.src=e(this).data("src")})},focus:function(){this.instance.current&&this.$list.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+this.instance.current.index+'"]').addClass("fancybox-thumbs-active").focus()},close:function(){this.$grid.hide()},update:function(){this.instance.$refs.container.toggleClass("fancybox-container--thumbs",this.isVisible),this.isVisible?(this.$grid||this.create(),this.$grid.show(),this.focus()):this.$grid&&this.$grid.hide(),this.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible?this.hide():this.show()}}),e(t).on("onInit.fb",function(t,e){var n=e.group[0],o=e.group[1];e.opts.thumbs&&!e.Thumbs&&e.group.length>1&&("image"==n.type||n.opts.thumb||n.opts.$thumb)&&("image"==o.type||o.opts.thumb||o.opts.$thumb)&&(e.Thumbs=new i(e))}),e(t).on("beforeMove.fb",function(t,e,i){var n=e.Thumbs;n&&(i.modal?(n.$button.hide(),n.hide()):(!0===e.opts.thumbs.showOnStart&&e.firstRun&&n.show(),n.$button.show(),n.isVisible&&n.focus()))}),e(t).on("beforeClose.fb",function(t,e){e.Thumbs&&e.Thumbs.isVisible&&!1!==e.opts.thumbs.hideOnClosing&&e.Thumbs.close(),e.Thumbs=null})}(document,window.jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};(e=function(){var e=0;return function(i,n){var o,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(i),appendDots:t(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.focussed=!1,s.interrupted=!1,s.hidden="hidden",s.paused=!0,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=t(i),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,o=t(i).data("slick")||{},s.options=t.extend({},s.defaults,n,o),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,void 0!==document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=t.proxy(s.autoPlay,s),s.autoPlayClear=t.proxy(s.autoPlayClear,s),s.autoPlayIterator=t.proxy(s.autoPlayIterator,s),s.changeSlide=t.proxy(s.changeSlide,s),s.clickHandler=t.proxy(s.clickHandler,s),s.selectHandler=t.proxy(s.selectHandler,s),s.setPosition=t.proxy(s.setPosition,s),s.swipeHandler=t.proxy(s.swipeHandler,s),s.dragHandler=t.proxy(s.dragHandler,s),s.keyHandler=t.proxy(s.keyHandler,s),s.instanceUid=e++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var o=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?t(e).appendTo(o.$slideTrack):n?t(e).insertBefore(o.$slides.eq(i)):t(e).insertAfter(o.$slides.eq(i)):!0===n?t(e).prependTo(o.$slideTrack):t(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),o.$slidesCache=o.$slides,o.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(e=-e),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,i):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),t({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),!1===o.options.vertical?(n[o.animType]="translate("+t+"px, 0px)",o.$slideTrack.css(n)):(n[o.animType]="translate(0px,"+t+"px)",o.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(o.applyTransition(),e=Math.ceil(e),!1===o.options.vertical?n[o.animType]="translate3d("+e+"px, 0px, 0px)":n[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(n),i&&setTimeout(function(){o.disableTransition(),i.call()},o.options.speed))},e.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=t(e).not(this.$slider)),e},e.prototype.asNavFor=function(e){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(!0===n.options.dots){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,o,s,r,a=this;if(n=document.createDocumentFragment(),s=a.$slider.children(),a.options.rows>1){for(r=a.options.slidesPerRow*a.options.rows,o=Math.ceil(s.length/r),t=0;t<o;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=t*r+(e*a.options.slidesPerRow+i);s.get(d)&&c.appendChild(s.get(d))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,o,s,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||t(window).width();if("window"===r.respondTo?s=c:"slider"===r.respondTo?s=l:"min"===r.respondTo&&(s=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(n in o=null,r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(!1===r.originalSettings.mobileFirst?s<r.breakpoints[n]&&(o=r.breakpoints[n]):s>r.breakpoints[n]&&(o=r.breakpoints[n]));null!==o?null!==r.activeBreakpoint?(o!==r.activeBreakpoint||i)&&(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===e&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=o),e||!1===a||r.$slider.trigger("breakpoint",[r,a])}},e.prototype.changeSlide=function(e,i){var n,o,s=this,r=t(e.currentTarget);switch(r.is("a")&&e.preventDefault(),r.is("li")||(r=r.closest("li")),n=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,e.data.message){case"previous":o=0===n?s.options.slidesToScroll:s.options.slidesToShow-n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-o,!1,i);break;case"next":o=0===n?s.options.slidesToScroll:n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+o,!1,i);break;case"index":var a=0===e.data.index?0:e.data.index||r.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(a),!1,i),r.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>1&&((t=e.$slides.children().children()).removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var n=t(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=n.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){return this.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,o,s=this,r=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,o=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?o=-1.5:1===s.options.slidesToShow&&(o=-2)),r=i*s.options.slidesToShow*o),s.slideCount%s.options.slidesToScroll!=0&&t+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(t>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(t-s.slideCount))*s.slideWidth*-1,r=(s.options.slidesToShow-(t-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,r=s.slideCount%s.options.slidesToScroll*i*-1))):t+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(t+s.options.slidesToShow-s.slideCount)*s.slideWidth,r=(t+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,r=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),e=!1===s.options.vertical?t*s.slideWidth*-1+s.slideOffset:t*i*-1+r,!0===s.options.variableWidth&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow),e=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===s.options.centerMode&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow+1),e=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(s.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){return this.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,o=[];for(!1===e.options.infinite?t=e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,t=2*e.slideCount);i<t;)o.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(o,s){if(s.offsetLeft-i+t(s).outerWidth()/2>-1*n.swipeLeft)return e=s,!1}),Math.abs(t(e).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),n=e.getNavigableIndexes().filter(function(t){return t>=0&&t<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){var o=n.indexOf(i);t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),-1!==o&&t(this).attr({"aria-describedby":"slick-slide-control"+e.instanceUid+o})}),e.$dots.attr("role","tablist").find("li").each(function(o){var s=n[o];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+o,"aria-controls":"slick-slide"+e.instanceUid+s,"aria-label":o+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=e.currentSlide,s=o+e.options.slidesToShow;o<s;o++)e.$slides.eq(o).attr("tabindex",0);e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),n=t(this).attr("data-srcset"),o=t(this).attr("data-sizes")||s.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){e.animate({opacity:0},100,function(){n&&(e.attr("srcset",n),o&&e.attr("sizes",o)),e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),s.$slider.trigger("lazyLoaded",[s,e,i])})},r.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,i])},r.src=i})}var i,n,o,s=this;if(!0===s.options.centerMode?!0===s.options.infinite?o=(n=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(n=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),o=s.options.slidesToShow/2+1+2+s.currentSlide):(n=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,o=Math.ceil(n+s.options.slidesToShow),!0===s.options.fade&&(n>0&&n--,o<=s.slideCount&&o++)),i=s.$slider.find(".slick-slide").slice(n,o),"anticipated"===s.options.lazyLoad)for(var r=n-1,a=o,l=s.$slider.find(".slick-slide"),c=0;c<s.options.slidesToScroll;c++)r<0&&(r=s.slideCount-1),i=(i=i.add(l.eq(r))).add(l.eq(a)),r--,a++;e(i),s.slideCount<=s.options.slidesToShow?e(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?e(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&e(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&t(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},e.prototype.prev=e.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,o,s,r,a=this,l=t("img[data-lazy]",a.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),o=i.attr("data-srcset"),s=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){o&&(i.attr("srcset",o),s&&i.attr("sizes",s)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){a.progressiveLazyLoad(e+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},r.src=n):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var i,n,o=this;n=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>n&&(o.currentSlide=n),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),i=o.currentSlide,o.destroy(!0),t.extend(o,o.initials,{currentSlide:i}),o.init(),e||o.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,o=this,s=o.options.responsive||null;if("array"===t.type(s)&&s.length){for(e in o.respondTo=o.options.respondTo||"window",s)if(n=o.breakpoints.length-1,s.hasOwnProperty(e)){for(i=s[e].breakpoint;n>=0;)o.breakpoints[n]&&o.breakpoints[n]===i&&o.breakpoints.splice(n,1),n--;o.breakpoints.push(i),o.breakpointSettings[i]=s[e].settings}o.breakpoints.sort(function(t,e){return o.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},e.prototype.setCSS=function(t){var e,i,n=this,o={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",o[n.positionProp]=t,!1===n.transformsEnabled?n.$slideTrack.css(o):(o={},!1===n.cssTransitions?(o[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(o)):(o[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(o)))},e.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each(function(n,o){e=i.slideWidth*n*-1,!0===i.options.rtl?t(o).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(o).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,o,s,r=this,a=!1;if("object"===t.type(arguments[0])?(n=arguments[0],a=arguments[1],s="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)r.options[n]=o;else if("multiple"===s)t.each(n,function(t,e){r.options[t]=e});else if("responsive"===s)for(i in o)if("array"!==t.type(r.options.responsive))r.options.responsive=[o[i]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===o[i].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(o[i])}a&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},e.prototype.setSlideClasses=function(t){var e,i,n,o,s=this;if(i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(t).addClass("slick-current"),!0===s.options.centerMode){var r=s.options.slidesToShow%2==0?1:0;e=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(t>=e&&t<=s.slideCount-1-e?s.$slides.slice(t-e+r,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=s.options.slidesToShow+t,i.slice(n-e+1+r,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):t===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=s.slideCount-s.options.slidesToShow?s.$slides.slice(t,t+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=s.slideCount%s.options.slidesToShow,n=!0===s.options.infinite?s.options.slidesToShow+t:t,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-t<s.options.slidesToShow?i.slice(n-(s.options.slidesToShow-o),n+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(i=null,o.slideCount>o.options.slidesToShow)){for(n=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-n;e-=1)i=e-1,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;e<n+o.slideCount;e+=1)i=e,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),o=parseInt(n.attr("data-slick-index"));o||(o=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(o,!1,!0):i.slideHandler(o)},e.prototype.slideHandler=function(t,e,i){var n,o,s,r,a,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),n=t,l=c.getLeft(n),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),o=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,o]),s=c.currentSlide,c.currentSlide=o,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(s),c.fadeSlide(o,function(){c.postSlide(o)})):c.postSlide(o),void c.animateHeight();!0!==i?c.animateSlide(l,function(){c.postSlide(o)}):c.postSlide(o)}},e.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(e,t),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0?!1===o.options.rtl?"left":"right":n<=360&&n>=315?!1===o.options.rtl?"left":"right":n>=135&&n<=225?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,o,s,r,a=this;return s=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||s&&1!==s.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==s?s[0].pageX:t.clientX,a.touchObject.curY=void 0!==s?s[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&r>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=r),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),o=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(o=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=e+n*o:a.swipeLeft=e+n*(a.$list.height()/a.listWidth)*o,!0===a.options.verticalSwiping&&(a.swipeLeft=e+n*o),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},e.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,o=arguments[0],s=Array.prototype.slice.call(arguments,1),r=n.length;for(t=0;t<r;t++)if("object"==typeof o||void 0===o?n[t].slick=new e(n[t],o):i=n[t].slick[o].apply(n[t].slick,s),void 0!==i)return i;return n}}),("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)})(["jquery"],function(t){return function(){function e(e,i){return e||(e=r()),(l=t("#"+e.containerId)).length?l:(i&&(l=function(e){return(l=t("<div/>").attr("id",e.containerId).addClass(e.positionClass)).appendTo(t(e.target)),l}(e)),l)}function i(e){for(var i=l.children(),o=i.length-1;o>=0;o--)n(t(i[o]),e)}function n(e,i,n){var o=!(!n||!n.force)&&n.force;return!(!e||!o&&0!==t(":focus",e).length||(e[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){a(e)}}),0))}function o(t){c&&c(t)}function s(i){function n(t){return null==t&&(t=""),t.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){var i=e&&!1!==f.closeMethod?f.closeMethod:f.hideMethod,n=e&&!1!==f.closeDuration?f.closeDuration:f.hideDuration,s=e&&!1!==f.closeEasing?f.closeEasing:f.hideEasing;if(!t(":focus",v).length||e)return clearTimeout(x.intervalId),v[i]({duration:n,easing:s,complete:function(){a(v),clearTimeout(m),f.onHidden&&"hidden"!==k.state&&f.onHidden(),k.state="hidden",k.endTime=new Date,o(k)}})}function c(){(f.timeOut>0||f.extendedTimeOut>0)&&(m=setTimeout(s,f.extendedTimeOut),x.maxHideTime=parseFloat(f.extendedTimeOut),x.hideEta=(new Date).getTime()+x.maxHideTime)}function p(){clearTimeout(m),x.hideEta=0,v.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function h(){var t=(x.hideEta-(new Date).getTime())/x.maxHideTime*100;_.width(t+"%")}var f=r(),g=i.iconClass||f.iconClass;if(void 0!==i.optionsOverride&&(f=t.extend(f,i.optionsOverride),g=i.optionsOverride.iconClass||g),!function(t,e){if(f.preventDuplicates){if(e.message===d)return!0;d=e.message}return!1}(0,i)){u++,l=e(f,!0);var m=null,v=t("<div/>"),b=t("<div/>"),y=t("<div/>"),_=t("<div/>"),w=t(f.closeHtml),x={intervalId:null,hideEta:null,maxHideTime:null},k={toastId:u,state:"visible",startTime:new Date,options:f,map:i};return i.iconClass&&v.addClass(f.toastClass).addClass(g),function(){if(i.title){var t=i.title;f.escapeHtml&&(t=n(i.title)),b.append(t).addClass(f.titleClass),v.append(b)}}(),function(){if(i.message){var t=i.message;f.escapeHtml&&(t=n(i.message)),y.append(t).addClass(f.messageClass),v.append(y)}}(),f.closeButton&&(w.addClass(f.closeClass).attr("role","button"),v.prepend(w)),f.progressBar&&(_.addClass(f.progressClass),v.prepend(_)),f.rtl&&v.addClass("rtl"),f.newestOnTop?l.prepend(v):l.append(v),function(){var t="";switch(i.iconClass){case"toast-success":case"toast-info":t="polite";break;default:t="assertive"}v.attr("aria-live",t)}(),v.hide(),v[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown}),f.timeOut>0&&(m=setTimeout(s,f.timeOut),x.maxHideTime=parseFloat(f.timeOut),x.hideEta=(new Date).getTime()+x.maxHideTime,f.progressBar&&(x.intervalId=setInterval(h,10))),f.closeOnHover&&v.hover(p,c),!f.onclick&&f.tapToDismiss&&v.click(s),f.closeButton&&w&&w.click(function(t){t.stopPropagation?t.stopPropagation():void 0!==t.cancelBubble&&!0!==t.cancelBubble&&(t.cancelBubble=!0),f.onCloseClick&&f.onCloseClick(t),s(!0)}),f.onclick&&v.click(function(t){f.onclick(t),s()}),o(k),f.debug&&console&&console.log(k),v}}function r(){return t.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},h.options)}function a(t){l||(l=e()),t.is(":visible")||(t.remove(),t=null,0===l.children().length&&(l.remove(),d=void 0))}var l,c,d,u=0,p={error:"error",info:"info",success:"success",warning:"warning"},h={clear:function(t,o){var s=r();l||e(s),n(t,s,o)||i(s)},remove:function(i){var n=r();return l||e(n),i&&0===t(":focus",i).length?void a(i):void(l.children().length&&l.remove())},error:function(t,e,i){return s({type:p.error,iconClass:r().iconClasses.error,message:t,optionsOverride:i,title:e})},getContainer:e,info:function(t,e,i){return s({type:p.info,iconClass:r().iconClasses.info,message:t,optionsOverride:i,title:e})},options:{},subscribe:function(t){c=t},success:function(t,e,i){return s({type:p.success,iconClass:r().iconClasses.success,message:t,optionsOverride:i,title:e})},version:"2.1.3",warning:function(t,e,i){return s({type:p.warning,iconClass:r().iconClasses.warning,message:t,optionsOverride:i,title:e})}};return h}()}),$(document).ready(function(){var t=$(".clickable"),e=t.attr("src");t.parent().append('<a href="'+e+'" data-fancybox></a>');var i=t.siblings();t.appendTo(i),$(".pencil").on("click",function(t){t.stopPropagation();var e=$(this).find(".translate_content");if(!$(e).hasClass("active")){$(e).addClass("active");var i=$(e).text(),n=$(e).data("id");$(e).html('<input  type="text" data-id="'+n+'" value="'+i+'">')}}),$(".fancybox").fancybox({showNavArrows:!0,closeBtn:!0,helpers:{title:{type:"inside"}}}),$(document).on("click",function(){var t=$(".translate_content");if($(t).hasClass("active")){$(t).removeClass("active");var e=$(t).find("input"),i=$(e).attr("value"),n=$(e).data("id");$(t).text(i),$.post(ROOT_DIR+"api/translation/fastSave",{id:n,value:i},function(t,e){alert("Data: "+t+"\nStatus: "+e)})}}),$(".admin-edit").on("click",function(t){t.preventDefault(),adminEditTranslateFront($(this).data("variant"),$(this).data("id")),$("#modalEditWindow").modal("show"),$(".close").on("click",function(){tinymce.remove()})}),$(".menu-content-edit").on("click",function(t){menuContentEditFront($(this).data("id")),$("#modalEditWindow").modal("show"),$(".close").on("click",function(){})}),$(window).trigger("resize")});